fansunited-frontend-components 0.0.49 → 0.0.52

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 (67) hide show
  1. package/Betslip.d.ts +5 -0
  2. package/Betslip.d.ts.map +1 -0
  3. package/Betslip.js +5 -0
  4. package/ChanceGame.js +87 -86
  5. package/ClassicQuizPlay.js +174 -173
  6. package/CollectLead.js +33 -32
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +171 -170
  9. package/EventGamePlay.js +25 -24
  10. package/Leaderboard.js +88 -87
  11. package/MatchQuizPlay.js +28 -27
  12. package/PersonalityQuizPlay.js +21 -20
  13. package/PickThePair.js +87 -86
  14. package/PollVote.js +19 -18
  15. package/Predictor.js +4756 -4693
  16. package/README.md +523 -1
  17. package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
  18. package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
  19. package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
  20. package/chunks/Button-COvmPv4P.js +2270 -0
  21. package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
  22. package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
  23. package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
  24. package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
  25. package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
  26. package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
  27. package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
  28. package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
  29. package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
  30. package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
  31. package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
  32. package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
  33. package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
  34. package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
  35. package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
  36. package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
  37. package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
  38. package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
  39. package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
  40. package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
  41. package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
  42. package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
  43. package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
  44. package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
  45. package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
  46. package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
  47. package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
  48. package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
  49. package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
  50. package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
  51. package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
  52. package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
  53. package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
  54. package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
  55. package/chunks/index-BjfKDjAM.js +4 -0
  56. package/chunks/main-DDb9jezz.js +1758 -0
  57. package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
  58. package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
  59. package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
  60. package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
  61. package/components.d.ts +2 -1
  62. package/components.d.ts.map +1 -1
  63. package/index.d.ts +1 -0
  64. package/index.d.ts.map +1 -1
  65. package/index.js +5 -3
  66. package/package.json +5 -1
  67. package/chunks/index-BaypiKlO.js +0 -4
@@ -1,12 +1,12 @@
1
- var X = Object.create, W = Object.defineProperty, z = Object.getOwnPropertyDescriptor, q = Object.getOwnPropertyNames, Q = Object.getPrototypeOf, J = Object.prototype.hasOwnProperty, U = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), Z = (t, e) => {
2
- for (var a in e) W(t, a, { get: e[a], enumerable: !0 });
3
- }, $ = (t, e, a, h) => {
4
- if (e && typeof e == "object" || typeof e == "function") for (let d of q(e)) !J.call(t, d) && d !== a && W(t, d, { get: () => e[d], enumerable: !(h = z(e, d)) || h.enumerable });
1
+ var J = Object.create, B = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, $ = Object.getOwnPropertyNames, tt = Object.getPrototypeOf, et = Object.prototype.hasOwnProperty, U = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), st = (t, e) => {
2
+ for (var n in e) B(t, n, { get: e[n], enumerable: !0 });
3
+ }, it = (t, e, n, h) => {
4
+ if (e && typeof e == "object" || typeof e == "function") for (let d of $(e)) !et.call(t, d) && d !== n && B(t, d, { get: () => e[d], enumerable: !(h = Z(e, d)) || h.enumerable });
5
5
  return t;
6
- }, tt = (t, e, a) => (a = t != null ? X(Q(t)) : {}, $(!t || !t.__esModule ? W(a, "default", { value: t, enumerable: !0 }) : a, t)), et = {};
7
- Z(et, { default: () => st });
8
- var st, it = U((t, e) => {
9
- var a = function() {
6
+ }, rt = (t, e, n) => (n = t != null ? J(tt(t)) : {}, it(!t || !t.__esModule ? B(n, "default", { value: t, enumerable: !0 }) : n, t)), nt = {};
7
+ st(nt, { default: () => at });
8
+ var at, ot = U((t, e) => {
9
+ var n = function() {
10
10
  function h(u, E) {
11
11
  return E != null && u instanceof E;
12
12
  }
@@ -24,11 +24,11 @@ var st, it = U((t, e) => {
24
24
  c = function() {
25
25
  };
26
26
  }
27
- var R;
27
+ var O;
28
28
  try {
29
- R = Promise;
29
+ O = Promise;
30
30
  } catch {
31
- R = function() {
31
+ O = function() {
32
32
  };
33
33
  }
34
34
  function r(u, E, y, v, S) {
@@ -38,49 +38,49 @@ var st, it = U((t, e) => {
38
38
  function C(s, o) {
39
39
  if (s === null) return null;
40
40
  if (o === 0) return s;
41
- var n, f;
41
+ var a, p;
42
42
  if (typeof s != "object") return s;
43
- if (h(s, d)) n = new d();
44
- else if (h(s, c)) n = new c();
45
- else if (h(s, R)) n = new R(function(M, G) {
43
+ if (h(s, d)) a = new d();
44
+ else if (h(s, c)) a = new c();
45
+ else if (h(s, O)) a = new O(function(M, G) {
46
46
  s.then(function(w) {
47
47
  M(C(w, o - 1));
48
48
  }, function(w) {
49
49
  G(C(w, o - 1));
50
50
  });
51
51
  });
52
- else if (r.__isArray(s)) n = [];
53
- else if (r.__isRegExp(s)) n = new RegExp(s.source, p(s)), s.lastIndex && (n.lastIndex = s.lastIndex);
54
- else if (r.__isDate(s)) n = new Date(s.getTime());
52
+ else if (r.__isArray(s)) a = [];
53
+ else if (r.__isRegExp(s)) a = new RegExp(s.source, f(s)), s.lastIndex && (a.lastIndex = s.lastIndex);
54
+ else if (r.__isDate(s)) a = new Date(s.getTime());
55
55
  else {
56
- if (V && Buffer.isBuffer(s)) return Buffer.allocUnsafe ? n = Buffer.allocUnsafe(s.length) : n = new Buffer(s.length), s.copy(n), n;
57
- h(s, Error) ? n = Object.create(s) : typeof v > "u" ? (f = Object.getPrototypeOf(s), n = Object.create(f)) : (n = Object.create(v), f = v);
56
+ if (V && Buffer.isBuffer(s)) return Buffer.allocUnsafe ? a = Buffer.allocUnsafe(s.length) : a = new Buffer(s.length), s.copy(a), a;
57
+ h(s, Error) ? a = Object.create(s) : typeof v > "u" ? (p = Object.getPrototypeOf(s), a = Object.create(p)) : (a = Object.create(v), p = v);
58
58
  }
59
59
  if (E) {
60
- var T = N.indexOf(s);
61
- if (T != -1) return D[T];
62
- N.push(s), D.push(n);
60
+ var R = N.indexOf(s);
61
+ if (R != -1) return D[R];
62
+ N.push(s), D.push(a);
63
63
  }
64
64
  h(s, d) && s.forEach(function(M, G) {
65
65
  var w = C(G, o - 1), H = C(M, o - 1);
66
- n.set(w, H);
66
+ a.set(w, H);
67
67
  }), h(s, c) && s.forEach(function(M) {
68
68
  var G = C(M, o - 1);
69
- n.add(G);
69
+ a.add(G);
70
70
  });
71
- for (var O in s) {
71
+ for (var T in s) {
72
72
  var I;
73
- f && (I = Object.getOwnPropertyDescriptor(f, O)), !(I && I.set == null) && (n[O] = C(s[O], o - 1));
73
+ p && (I = Object.getOwnPropertyDescriptor(p, T)), !(I && I.set == null) && (a[T] = C(s[T], o - 1));
74
74
  }
75
- if (Object.getOwnPropertySymbols) for (var L = Object.getOwnPropertySymbols(s), O = 0; O < L.length; O++) {
76
- var P = L[O], b = Object.getOwnPropertyDescriptor(s, P);
77
- b && !b.enumerable && !S || (n[P] = C(s[P], o - 1), b.enumerable || Object.defineProperty(n, P, { enumerable: !1 }));
75
+ if (Object.getOwnPropertySymbols) for (var L = Object.getOwnPropertySymbols(s), T = 0; T < L.length; T++) {
76
+ var P = L[T], b = Object.getOwnPropertyDescriptor(s, P);
77
+ b && !b.enumerable && !S || (a[P] = C(s[P], o - 1), b.enumerable || Object.defineProperty(a, P, { enumerable: !1 }));
78
78
  }
79
- if (S) for (var x = Object.getOwnPropertyNames(s), O = 0; O < x.length; O++) {
80
- var F = x[O], b = Object.getOwnPropertyDescriptor(s, F);
81
- b && b.enumerable || (n[F] = C(s[F], o - 1), Object.defineProperty(n, F, { enumerable: !1 }));
79
+ if (S) for (var x = Object.getOwnPropertyNames(s), T = 0; T < x.length; T++) {
80
+ var F = x[T], b = Object.getOwnPropertyDescriptor(s, F);
81
+ b && b.enumerable || (a[F] = C(s[F], o - 1), Object.defineProperty(a, F, { enumerable: !1 }));
82
82
  }
83
- return n;
83
+ return a;
84
84
  }
85
85
  return C(u, y);
86
86
  }
@@ -106,18 +106,18 @@ var st, it = U((t, e) => {
106
106
  return typeof u == "object" && A(u) === "[object RegExp]";
107
107
  }
108
108
  r.__isRegExp = _;
109
- function p(u) {
109
+ function f(u) {
110
110
  var E = "";
111
111
  return u.global && (E += "g"), u.ignoreCase && (E += "i"), u.multiline && (E += "m"), E;
112
112
  }
113
- return r.__getRegExpFlags = p, r;
113
+ return r.__getRegExpFlags = f, r;
114
114
  }();
115
- typeof e == "object" && e.exports && (e.exports = a);
116
- }), rt = U((t, e) => {
117
- var a = typeof Reflect == "object" ? Reflect : null, h = a && typeof a.apply == "function" ? a.apply : function(s, o, n) {
118
- return Function.prototype.apply.call(s, o, n);
115
+ typeof e == "object" && e.exports && (e.exports = n);
116
+ }), lt = U((t, e) => {
117
+ var n = typeof Reflect == "object" ? Reflect : null, h = n && typeof n.apply == "function" ? n.apply : function(s, o, a) {
118
+ return Function.prototype.apply.call(s, o, a);
119
119
  }, d;
120
- a && typeof a.ownKeys == "function" ? d = a.ownKeys : Object.getOwnPropertySymbols ? d = function(s) {
120
+ n && typeof n.ownKeys == "function" ? d = n.ownKeys : Object.getOwnPropertySymbols ? d = function(s) {
121
121
  return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
122
122
  } : d = function(s) {
123
123
  return Object.getOwnPropertyNames(s);
@@ -125,7 +125,7 @@ var st, it = U((t, e) => {
125
125
  function c(s) {
126
126
  console && console.warn && console.warn(s);
127
127
  }
128
- var R = Number.isNaN || function(s) {
128
+ var O = Number.isNaN || function(s) {
129
129
  return s !== s;
130
130
  };
131
131
  function r() {
@@ -139,12 +139,12 @@ var st, it = U((t, e) => {
139
139
  Object.defineProperty(r, "defaultMaxListeners", { enumerable: !0, get: function() {
140
140
  return A;
141
141
  }, set: function(s) {
142
- if (typeof s != "number" || s < 0 || R(s)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + s + ".");
142
+ if (typeof s != "number" || s < 0 || O(s)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + s + ".");
143
143
  A = s;
144
144
  } }), r.init = function() {
145
145
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
146
146
  }, r.prototype.setMaxListeners = function(s) {
147
- if (typeof s != "number" || s < 0 || R(s)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
147
+ if (typeof s != "number" || s < 0 || O(s)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + s + ".");
148
148
  return this._maxListeners = s, this;
149
149
  };
150
150
  function l(s) {
@@ -153,26 +153,26 @@ var st, it = U((t, e) => {
153
153
  r.prototype.getMaxListeners = function() {
154
154
  return l(this);
155
155
  }, r.prototype.emit = function(s) {
156
- for (var o = [], n = 1; n < arguments.length; n++) o.push(arguments[n]);
157
- var f = s === "error", T = this._events;
158
- if (T !== void 0) f = f && T.error === void 0;
159
- else if (!f) return !1;
160
- if (f) {
161
- var O;
162
- if (o.length > 0 && (O = o[0]), O instanceof Error) throw O;
163
- var I = new Error("Unhandled error." + (O ? " (" + O.message + ")" : ""));
164
- throw I.context = O, I;
156
+ for (var o = [], a = 1; a < arguments.length; a++) o.push(arguments[a]);
157
+ var p = s === "error", R = this._events;
158
+ if (R !== void 0) p = p && R.error === void 0;
159
+ else if (!p) return !1;
160
+ if (p) {
161
+ var T;
162
+ if (o.length > 0 && (T = o[0]), T instanceof Error) throw T;
163
+ var I = new Error("Unhandled error." + (T ? " (" + T.message + ")" : ""));
164
+ throw I.context = T, I;
165
165
  }
166
- var L = T[s];
166
+ var L = R[s];
167
167
  if (L === void 0) return !1;
168
168
  if (typeof L == "function") h(L, this, o);
169
- else for (var P = L.length, b = v(L, P), n = 0; n < P; ++n) h(b[n], this, o);
169
+ else for (var P = L.length, b = v(L, P), a = 0; a < P; ++a) h(b[a], this, o);
170
170
  return !0;
171
171
  };
172
- function _(s, o, n, f) {
173
- var T, O, I;
174
- if (i(n), O = s._events, O === void 0 ? (O = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (O.newListener !== void 0 && (s.emit("newListener", o, n.listener ? n.listener : n), O = s._events), I = O[o]), I === void 0) I = O[o] = n, ++s._eventsCount;
175
- else if (typeof I == "function" ? I = O[o] = f ? [n, I] : [I, n] : f ? I.unshift(n) : I.push(n), T = l(s), T > 0 && I.length > T && !I.warned) {
172
+ function _(s, o, a, p) {
173
+ var R, T, I;
174
+ if (i(a), T = s._events, T === void 0 ? (T = s._events = /* @__PURE__ */ Object.create(null), s._eventsCount = 0) : (T.newListener !== void 0 && (s.emit("newListener", o, a.listener ? a.listener : a), T = s._events), I = T[o]), I === void 0) I = T[o] = a, ++s._eventsCount;
175
+ else if (typeof I == "function" ? I = T[o] = p ? [a, I] : [I, a] : p ? I.unshift(a) : I.push(a), R = l(s), R > 0 && I.length > R && !I.warned) {
176
176
  I.warned = !0;
177
177
  var L = new Error("Possible EventEmitter memory leak detected. " + I.length + " " + String(o) + " listeners added. Use emitter.setMaxListeners() to increase limit");
178
178
  L.name = "MaxListenersExceededWarning", L.emitter = s, L.type = o, L.count = I.length, c(L);
@@ -184,49 +184,49 @@ var st, it = U((t, e) => {
184
184
  }, r.prototype.on = r.prototype.addListener, r.prototype.prependListener = function(s, o) {
185
185
  return _(this, s, o, !0);
186
186
  };
187
- function p() {
187
+ function f() {
188
188
  if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
189
189
  }
190
- function u(s, o, n) {
191
- var f = { fired: !1, wrapFn: void 0, target: s, type: o, listener: n }, T = p.bind(f);
192
- return T.listener = n, f.wrapFn = T, T;
190
+ function u(s, o, a) {
191
+ var p = { fired: !1, wrapFn: void 0, target: s, type: o, listener: a }, R = f.bind(p);
192
+ return R.listener = a, p.wrapFn = R, R;
193
193
  }
194
194
  r.prototype.once = function(s, o) {
195
195
  return i(o), this.on(s, u(this, s, o)), this;
196
196
  }, r.prototype.prependOnceListener = function(s, o) {
197
197
  return i(o), this.prependListener(s, u(this, s, o)), this;
198
198
  }, r.prototype.removeListener = function(s, o) {
199
- var n, f, T, O, I;
200
- if (i(o), f = this._events, f === void 0) return this;
201
- if (n = f[s], n === void 0) return this;
202
- if (n === o || n.listener === o) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete f[s], f.removeListener && this.emit("removeListener", s, n.listener || o));
203
- else if (typeof n != "function") {
204
- for (T = -1, O = n.length - 1; O >= 0; O--) if (n[O] === o || n[O].listener === o) {
205
- I = n[O].listener, T = O;
199
+ var a, p, R, T, I;
200
+ if (i(o), p = this._events, p === void 0) return this;
201
+ if (a = p[s], a === void 0) return this;
202
+ if (a === o || a.listener === o) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete p[s], p.removeListener && this.emit("removeListener", s, a.listener || o));
203
+ else if (typeof a != "function") {
204
+ for (R = -1, T = a.length - 1; T >= 0; T--) if (a[T] === o || a[T].listener === o) {
205
+ I = a[T].listener, R = T;
206
206
  break;
207
207
  }
208
- if (T < 0) return this;
209
- T === 0 ? n.shift() : S(n, T), n.length === 1 && (f[s] = n[0]), f.removeListener !== void 0 && this.emit("removeListener", s, I || o);
208
+ if (R < 0) return this;
209
+ R === 0 ? a.shift() : S(a, R), a.length === 1 && (p[s] = a[0]), p.removeListener !== void 0 && this.emit("removeListener", s, I || o);
210
210
  }
211
211
  return this;
212
212
  }, r.prototype.off = r.prototype.removeListener, r.prototype.removeAllListeners = function(s) {
213
- var o, n, f;
214
- if (n = this._events, n === void 0) return this;
215
- if (n.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : n[s] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete n[s]), this;
213
+ var o, a, p;
214
+ if (a = this._events, a === void 0) return this;
215
+ if (a.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : a[s] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete a[s]), this;
216
216
  if (arguments.length === 0) {
217
- var T = Object.keys(n), O;
218
- for (f = 0; f < T.length; ++f) O = T[f], O !== "removeListener" && this.removeAllListeners(O);
217
+ var R = Object.keys(a), T;
218
+ for (p = 0; p < R.length; ++p) T = R[p], T !== "removeListener" && this.removeAllListeners(T);
219
219
  return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
220
220
  }
221
- if (o = n[s], typeof o == "function") this.removeListener(s, o);
222
- else if (o !== void 0) for (f = o.length - 1; f >= 0; f--) this.removeListener(s, o[f]);
221
+ if (o = a[s], typeof o == "function") this.removeListener(s, o);
222
+ else if (o !== void 0) for (p = o.length - 1; p >= 0; p--) this.removeListener(s, o[p]);
223
223
  return this;
224
224
  };
225
- function E(s, o, n) {
226
- var f = s._events;
227
- if (f === void 0) return [];
228
- var T = f[o];
229
- return T === void 0 ? [] : typeof T == "function" ? n ? [T.listener || T] : [T] : n ? N(T) : v(T, T.length);
225
+ function E(s, o, a) {
226
+ var p = s._events;
227
+ if (p === void 0) return [];
228
+ var R = p[o];
229
+ return R === void 0 ? [] : typeof R == "function" ? a ? [R.listener || R] : [R] : a ? N(R) : v(R, R.length);
230
230
  }
231
231
  r.prototype.listeners = function(s) {
232
232
  return E(this, s, !0);
@@ -238,9 +238,9 @@ var st, it = U((t, e) => {
238
238
  function y(s) {
239
239
  var o = this._events;
240
240
  if (o !== void 0) {
241
- var n = o[s];
242
- if (typeof n == "function") return 1;
243
- if (n !== void 0) return n.length;
241
+ var a = o[s];
242
+ if (typeof a == "function") return 1;
243
+ if (a !== void 0) return a.length;
244
244
  }
245
245
  return 0;
246
246
  }
@@ -248,56 +248,56 @@ var st, it = U((t, e) => {
248
248
  return this._eventsCount > 0 ? d(this._events) : [];
249
249
  };
250
250
  function v(s, o) {
251
- for (var n = new Array(o), f = 0; f < o; ++f) n[f] = s[f];
252
- return n;
251
+ for (var a = new Array(o), p = 0; p < o; ++p) a[p] = s[p];
252
+ return a;
253
253
  }
254
254
  function S(s, o) {
255
255
  for (; o + 1 < s.length; o++) s[o] = s[o + 1];
256
256
  s.pop();
257
257
  }
258
258
  function N(s) {
259
- for (var o = new Array(s.length), n = 0; n < o.length; ++n) o[n] = s[n].listener || s[n];
259
+ for (var o = new Array(s.length), a = 0; a < o.length; ++a) o[a] = s[a].listener || s[a];
260
260
  return o;
261
261
  }
262
262
  function D(s, o) {
263
- return new Promise(function(n, f) {
264
- function T(I) {
265
- s.removeListener(o, O), f(I);
263
+ return new Promise(function(a, p) {
264
+ function R(I) {
265
+ s.removeListener(o, T), p(I);
266
266
  }
267
- function O() {
268
- typeof s.removeListener == "function" && s.removeListener("error", T), n([].slice.call(arguments));
267
+ function T() {
268
+ typeof s.removeListener == "function" && s.removeListener("error", R), a([].slice.call(arguments));
269
269
  }
270
- C(s, o, O, { once: !0 }), o !== "error" && V(s, T, { once: !0 });
270
+ C(s, o, T, { once: !0 }), o !== "error" && V(s, R, { once: !0 });
271
271
  });
272
272
  }
273
- function V(s, o, n) {
274
- typeof s.on == "function" && C(s, "error", o, n);
273
+ function V(s, o, a) {
274
+ typeof s.on == "function" && C(s, "error", o, a);
275
275
  }
276
- function C(s, o, n, f) {
277
- if (typeof s.on == "function") f.once ? s.once(o, n) : s.on(o, n);
278
- else if (typeof s.addEventListener == "function") s.addEventListener(o, function T(O) {
279
- f.once && s.removeEventListener(o, T), n(O);
276
+ function C(s, o, a, p) {
277
+ if (typeof s.on == "function") p.once ? s.once(o, a) : s.on(o, a);
278
+ else if (typeof s.addEventListener == "function") s.addEventListener(o, function R(T) {
279
+ p.once && s.removeEventListener(o, R), a(T);
280
280
  });
281
281
  else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof s);
282
282
  }
283
- }), nt = U((t, e) => {
283
+ }), ht = U((t, e) => {
284
284
  (function() {
285
- var a, h, d = [].splice, c = function(r, A) {
285
+ var n, h, d = [].splice, c = function(r, A) {
286
286
  if (!(r instanceof A)) throw new Error("Bound instance method accessed before binding");
287
- }, R = [].indexOf;
288
- h = it(), a = rt().EventEmitter, e.exports = (function() {
289
- class r extends a {
287
+ }, O = [].indexOf;
288
+ h = ot(), n = lt().EventEmitter, e.exports = (function() {
289
+ class r extends n {
290
290
  constructor(i = {}) {
291
291
  super(), this.get = this.get.bind(this), this.mget = this.mget.bind(this), this.set = this.set.bind(this), this.mset = this.mset.bind(this), this.del = this.del.bind(this), this.take = this.take.bind(this), this.ttl = this.ttl.bind(this), this.getTtl = this.getTtl.bind(this), this.keys = this.keys.bind(this), this.has = this.has.bind(this), this.getStats = this.getStats.bind(this), this.flushAll = this.flushAll.bind(this), this.flushStats = this.flushStats.bind(this), this.close = this.close.bind(this), this._checkData = this._checkData.bind(this), this._check = this._check.bind(this), this._isInvalidKey = this._isInvalidKey.bind(this), this._wrap = this._wrap.bind(this), this._getValLength = this._getValLength.bind(this), this._error = this._error.bind(this), this._initErrors = this._initErrors.bind(this), this.options = i, this._initErrors(), this.data = {}, this.options = Object.assign({ forceString: !1, objectValueSize: 80, promiseValueSize: 80, arrayValueSize: 40, stdTTL: 0, checkperiod: 600, useClones: !0, deleteOnExpire: !0, enableLegacyCallbacks: !1, maxKeys: -1 }, this.options), this.options.enableLegacyCallbacks && (console.warn("WARNING! node-cache legacy callback support will drop in v6.x"), ["get", "mget", "set", "del", "ttl", "getTtl", "keys", "has"].forEach((l) => {
292
292
  var _;
293
- _ = this[l], this[l] = function(...p) {
293
+ _ = this[l], this[l] = function(...f) {
294
294
  var u, E, y, v;
295
- if (y = p, [...p] = y, [u] = d.call(p, -1), typeof u == "function") try {
296
- v = _(...p), u(null, v);
295
+ if (y = f, [...f] = y, [u] = d.call(f, -1), typeof u == "function") try {
296
+ v = _(...f), u(null, v);
297
297
  } catch (S) {
298
298
  E = S, u(E);
299
299
  }
300
- else return _(...p, u);
300
+ else return _(...f, u);
301
301
  };
302
302
  })), this.stats = { hits: 0, misses: 0, keys: 0, ksize: 0, vsize: 0 }, this.validKeyTypes = ["string", "number"], this._checkData();
303
303
  }
@@ -308,34 +308,34 @@ var st, it = U((t, e) => {
308
308
  this.stats.misses++;
309
309
  }
310
310
  mget(i) {
311
- var l, _, p, u, E, y;
311
+ var l, _, f, u, E, y;
312
312
  if (c(this, r), !Array.isArray(i)) throw l = this._error("EKEYSTYPE"), l;
313
- for (y = {}, p = 0, E = i.length; p < E; p++) {
314
- if (u = i[p], (_ = this._isInvalidKey(u)) != null) throw _;
313
+ for (y = {}, f = 0, E = i.length; f < E; f++) {
314
+ if (u = i[f], (_ = this._isInvalidKey(u)) != null) throw _;
315
315
  this.data[u] != null && this._check(u, this.data[u]) ? (this.stats.hits++, y[u] = this._unwrap(this.data[u])) : this.stats.misses++;
316
316
  }
317
317
  return y;
318
318
  }
319
319
  set(i, l, _) {
320
- var p, u, E;
321
- if (c(this, r), this.options.maxKeys > -1 && this.stats.keys >= this.options.maxKeys) throw p = this._error("ECACHEFULL"), p;
320
+ var f, u, E;
321
+ if (c(this, r), this.options.maxKeys > -1 && this.stats.keys >= this.options.maxKeys) throw f = this._error("ECACHEFULL"), f;
322
322
  if (this.options.forceString, _ == null && (_ = this.options.stdTTL), (u = this._isInvalidKey(i)) != null) throw u;
323
323
  return E = !1, this.data[i] && (E = !0, this.stats.vsize -= this._getValLength(this._unwrap(this.data[i], !1))), this.data[i] = this._wrap(l, _), this.stats.vsize += this._getValLength(l), E || (this.stats.ksize += this._getKeyLength(i), this.stats.keys++), this.emit("set", i, l), !0;
324
324
  }
325
325
  mset(i) {
326
- var l, _, p, u, E, y, v, S, N, D;
326
+ var l, _, f, u, E, y, v, S, N, D;
327
327
  if (c(this, r), this.options.maxKeys > -1 && this.stats.keys + i.length >= this.options.maxKeys) throw l = this._error("ECACHEFULL"), l;
328
- for (p = 0, v = i.length; p < v; p++) {
329
- if (y = i[p], { key: E, val: D, ttl: N } = y, N && typeof N != "number") throw l = this._error("ETTLTYPE"), l;
328
+ for (f = 0, v = i.length; f < v; f++) {
329
+ if (y = i[f], { key: E, val: D, ttl: N } = y, N && typeof N != "number") throw l = this._error("ETTLTYPE"), l;
330
330
  if ((_ = this._isInvalidKey(E)) != null) throw _;
331
331
  }
332
332
  for (u = 0, S = i.length; u < S; u++) y = i[u], { key: E, val: D, ttl: N } = y, this.set(E, D, N);
333
333
  return !0;
334
334
  }
335
335
  del(i) {
336
- var l, _, p, u, E, y;
337
- for (c(this, r), Array.isArray(i) || (i = [i]), l = 0, p = 0, E = i.length; p < E; p++) {
338
- if (u = i[p], (_ = this._isInvalidKey(u)) != null) throw _;
336
+ var l, _, f, u, E, y;
337
+ for (c(this, r), Array.isArray(i) || (i = [i]), l = 0, f = 0, E = i.length; f < E; f++) {
338
+ if (u = i[f], (_ = this._isInvalidKey(u)) != null) throw _;
339
339
  this.data[u] != null && (this.stats.vsize -= this._getValLength(this._unwrap(this.data[u], !1)), this.stats.ksize -= this._getKeyLength(u), this.stats.keys--, l++, y = this.data[u], delete this.data[u], this.emit("del", u, y.v));
340
340
  }
341
341
  return l;
@@ -378,9 +378,9 @@ var st, it = U((t, e) => {
378
378
  c(this, r), this._killCheckPeriod();
379
379
  }
380
380
  _checkData(i = !0) {
381
- var l, _, p;
381
+ var l, _, f;
382
382
  c(this, r), _ = this.data;
383
- for (l in _) p = _[l], this._check(l, p);
383
+ for (l in _) f = _[l], this._check(l, f);
384
384
  i && this.options.checkperiod > 0 && (this.checkTimeout = setTimeout(this._checkData, this.options.checkperiod * 1e3, i), this.checkTimeout != null && this.checkTimeout.unref != null && this.checkTimeout.unref());
385
385
  }
386
386
  _killCheckPeriod() {
@@ -392,11 +392,11 @@ var st, it = U((t, e) => {
392
392
  }
393
393
  _isInvalidKey(i) {
394
394
  var l;
395
- if (c(this, r), l = typeof i, R.call(this.validKeyTypes, l) < 0) return this._error("EKEYTYPE", { type: typeof i });
395
+ if (c(this, r), l = typeof i, O.call(this.validKeyTypes, l) < 0) return this._error("EKEYTYPE", { type: typeof i });
396
396
  }
397
397
  _wrap(i, l, _ = !0) {
398
- var p, u, E;
399
- return c(this, r), this.options.useClones || (_ = !1), u = Date.now(), p = 0, E = 1e3, l === 0 ? p = 0 : l ? p = u + l * E : this.options.stdTTL === 0 ? p = this.options.stdTTL : p = u + this.options.stdTTL * E, { t: p, v: _ ? h(i) : i };
398
+ var f, u, E;
399
+ return c(this, r), this.options.useClones || (_ = !1), u = Date.now(), f = 0, E = 1e3, l === 0 ? f = 0 : l ? f = u + l * E : this.options.stdTTL === 0 ? f = this.options.stdTTL : f = u + this.options.stdTTL * E, { t: f, v: _ ? h(i) : i };
400
400
  }
401
401
  _unwrap(i, l = !0) {
402
402
  return this.options.useClones || (l = !1), i.v != null ? l ? h(i.v) : i.v : null;
@@ -425,98 +425,98 @@ var st, it = U((t, e) => {
425
425
  return r.prototype._ERRORS = { ENOTFOUND: "Key `__key` not found", ECACHEFULL: "Cache max keys amount exceeded", EKEYTYPE: "The key argument has to be of type `string` or `number`. Found: `__key`", EKEYSTYPE: "The keys argument has to be an array.", ETTLTYPE: "The ttl argument has to be a number." }, r;
426
426
  }).call(this);
427
427
  }).call(t);
428
- }), at = U((t, e) => {
428
+ }), ut = U((t, e) => {
429
429
  (function() {
430
- var a;
431
- a = e.exports = nt(), a.version = "5.1.2";
430
+ var n;
431
+ n = e.exports = ht(), n.version = "5.1.2";
432
432
  }).call(t);
433
- }), ot = ((t) => (t.EN = "en", t.BG = "bg", t.RO = "ro", t.EL = "el", t.SK = "sk", t.PT = "pt", t.SR = "sr", t.HU = "hu", t.SV = "sv", t.ES = "es", t.FR = "fr", t.NL = "nl", t.DE = "de", t.IT = "it", t.AR = "ar", t))(ot || {}), lt = ((t) => (t.DEV = "dev", t.PROD = "prod", t.STAGING = "staging", t))(lt || {}), ht = ((t) => (t.NATIVE = "native", t.ENETPULSE = "enetpulse", t.SPORTRADAR = "sportradar", t.SPORTAL_365 = "sportal365", t.API_FOOTBALL = "api_football", t))(ht || {}), ut = ((t) => (t.DEFAULT = "default", t.STANDARD = "standard", t))(ut || {}), ct = ((t) => (t.FT_1X2 = "FT_1X2", t.HT_1X2 = "HT_1X2", t.BOTH_TEAMS_SCORE = "BOTH_TEAMS_SCORE", t.DOUBLE_CHANCE = "DOUBLE_CHANCE", t.HT_FT = "HT_FT", t.PLAYER_SCORE = "PLAYER_SCORE", t.PLAYER_YELLOW_CARD = "PLAYER_YELLOW_CARD", t.PLAYER_RED_CARD = "PLAYER_RED_CARD", t.RED_CARD_MATCH = "RED_CARD_MATCH", t.PENALTY_MATCH = "PENALTY_MATCH", t.PLAYER_SCORE_FIRST_GOAL = "PLAYER_SCORE_FIRST_GOAL", t.CORNERS_MATCH = "CORNERS_MATCH", t.CORRECT_SCORE = "CORRECT_SCORE", t.CORRECT_SCORE_ADVANCED = "CORRECT_SCORE_ADVANCED", t.CORRECT_SCORE_HT = "CORRECT_SCORE_HT", t.PLAYER_SCORE_HATTRICK = "PLAYER_SCORE_HATTRICK", t.PLAYER_SCORE_TWICE = "PLAYER_SCORE_TWICE", t.OVER_GOALS_0_5 = "OVER_GOALS_0_5", t.OVER_GOALS_1_5 = "OVER_GOALS_1_5", t.OVER_GOALS_2_5 = "OVER_GOALS_2_5", t.OVER_GOALS_3_5 = "OVER_GOALS_3_5", t.OVER_GOALS_4_5 = "OVER_GOALS_4_5", t.OVER_GOALS_5_5 = "OVER_GOALS_5_5", t.OVER_GOALS_6_5 = "OVER_GOALS_6_5", t.OVER_CORNERS_6_5 = "OVER_CORNERS_6_5", t.OVER_CORNERS_7_5 = "OVER_CORNERS_7_5", t.OVER_CORNERS_8_5 = "OVER_CORNERS_8_5", t.OVER_CORNERS_9_5 = "OVER_CORNERS_9_5", t.OVER_CORNERS_10_5 = "OVER_CORNERS_10_5", t.OVER_CORNERS_11_5 = "OVER_CORNERS_11_5", t.OVER_CORNERS_12_5 = "OVER_CORNERS_12_5", t.OVER_CORNERS_13_5 = "OVER_CORNERS_13_5", t))(ct || {});
434
- function B(t) {
433
+ }), ct = ((t) => (t.EN = "en", t.BG = "bg", t.RO = "ro", t.EL = "el", t.SK = "sk", t.PT = "pt", t.SR = "sr", t.HU = "hu", t.SV = "sv", t.ES = "es", t.FR = "fr", t.NL = "nl", t.DE = "de", t.IT = "it", t.AR = "ar", t))(ct || {}), _t = ((t) => (t.DEV = "dev", t.PROD = "prod", t.STAGING = "staging", t))(_t || {}), dt = ((t) => (t.NATIVE = "native", t.ENETPULSE = "enetpulse", t.SPORTRADAR = "sportradar", t.SPORTAL_365 = "sportal365", t.API_FOOTBALL = "api_football", t))(dt || {}), Et = ((t) => (t.DEFAULT = "default", t.STANDARD = "standard", t))(Et || {}), pt = ((t) => (t.FT_1X2 = "FT_1X2", t.HT_1X2 = "HT_1X2", t.BOTH_TEAMS_SCORE = "BOTH_TEAMS_SCORE", t.DOUBLE_CHANCE = "DOUBLE_CHANCE", t.HT_FT = "HT_FT", t.PLAYER_SCORE = "PLAYER_SCORE", t.PLAYER_YELLOW_CARD = "PLAYER_YELLOW_CARD", t.PLAYER_RED_CARD = "PLAYER_RED_CARD", t.RED_CARD_MATCH = "RED_CARD_MATCH", t.PENALTY_MATCH = "PENALTY_MATCH", t.PLAYER_SCORE_FIRST_GOAL = "PLAYER_SCORE_FIRST_GOAL", t.CORNERS_MATCH = "CORNERS_MATCH", t.CORRECT_SCORE = "CORRECT_SCORE", t.CORRECT_SCORE_ADVANCED = "CORRECT_SCORE_ADVANCED", t.CORRECT_SCORE_HT = "CORRECT_SCORE_HT", t.PLAYER_SCORE_HATTRICK = "PLAYER_SCORE_HATTRICK", t.PLAYER_SCORE_TWICE = "PLAYER_SCORE_TWICE", t.OVER_GOALS_0_5 = "OVER_GOALS_0_5", t.OVER_GOALS_1_5 = "OVER_GOALS_1_5", t.OVER_GOALS_2_5 = "OVER_GOALS_2_5", t.OVER_GOALS_3_5 = "OVER_GOALS_3_5", t.OVER_GOALS_4_5 = "OVER_GOALS_4_5", t.OVER_GOALS_5_5 = "OVER_GOALS_5_5", t.OVER_GOALS_6_5 = "OVER_GOALS_6_5", t.OVER_CORNERS_6_5 = "OVER_CORNERS_6_5", t.OVER_CORNERS_7_5 = "OVER_CORNERS_7_5", t.OVER_CORNERS_8_5 = "OVER_CORNERS_8_5", t.OVER_CORNERS_9_5 = "OVER_CORNERS_9_5", t.OVER_CORNERS_10_5 = "OVER_CORNERS_10_5", t.OVER_CORNERS_11_5 = "OVER_CORNERS_11_5", t.OVER_CORNERS_12_5 = "OVER_CORNERS_12_5", t.OVER_CORNERS_13_5 = "OVER_CORNERS_13_5", t))(pt || {});
434
+ function j(t) {
435
435
  this.message = t;
436
436
  }
437
- B.prototype = new Error(), B.prototype.name = "InvalidCharacterError";
437
+ j.prototype = new Error(), j.prototype.name = "InvalidCharacterError";
438
438
  typeof window < "u" && window.atob && window.atob.bind(window);
439
439
  function K(t) {
440
440
  this.message = t;
441
441
  }
442
442
  K.prototype = new Error(), K.prototype.name = "InvalidTokenError";
443
- var _t = ((t) => (t[t.BAD_METHOD_CALL = 400] = "BAD_METHOD_CALL", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t))(_t || {}), dt = ((t) => (t.INVALID_TEMPLATE = "INVALID_TEMPLATE", t.INVALID_PREDICTION = "INVALID_PREDICTION", t.INVALID_MARKET = "INVALID_MARKET", t.INVALID_FIELD = "INVALID_FIELD", t.INVALID_TYPE = "INVALID_TYPE", t.EXCEEDED_LENGTH = "EXCEEDED_LENGTH", t.INVALID_TOKEN = "invalid_token", t.UNAUTHORIZED = "unauthorized", t.INVALID_FILTERS = "invalid_filters", t.INVALID_AVATAR = "invalid_avatar", t.INVALID_METHOD_CALL = "invalid_method_call", t.INVALID_LIMIT = "invalid_limit", t.INVALID_TEMPLATE_GROUP_ID = "invalid_template_group_id", t.INVALID_TEMPLATE_GROUP_FILTERS = "invalid_template_group_filters", t.INVALID_PAGE_NUMBER = "invalid_page_number", t.INVALID_DISCUSSION_IDS = "invalid_discussion_ids", t.ID_MAPPING_NOT_FOUND = "id_mapping_not_found", t.INVALID_COMPETITION_ID = "invalid_competition_id", t.INVALID_TEAM_ID = "invalid_team_id", t.INVALID_IDS = "invalid_ids", t.INVALID_INPUT_PROVIDER = "invalid_input_provider", t.INVALID_OUTPUT_PROVIDER = "invalid_output_provider", t.INVALID_MATCH_SUMMARY = "invalid_match_summary", t.INVALID_MATCH_SUMMARY_PREDICTIONS = "invalid_match_summary_predictions", t.INVALID_MATCH_SUMMARY_PREDICTIONS_KEYS = "invalid_match_summary_predictions_keys", t.ENTITY_IDS_NOT_FOUND = "entity_ids_not_found", t.MATCH_IDS_NOT_FOUND = "match_ids_not_found", t.INVALID_MATCH_IDS = "invalid_match_ids", t.ODD_CLIENT_CONFIGURATION_NOT_FOUND = "odd_client_configuration_not_found", t))(dt || {}), k = { native: "id", sportradar: "sportradar_id", sportal365: "sportal365_id", enetpulse: "enetpulse_id", api_football: "api_football_id" };
443
+ var ft = ((t) => (t[t.BAD_METHOD_CALL = 400] = "BAD_METHOD_CALL", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t))(ft || {}), Tt = ((t) => (t.INVALID_TEMPLATE = "INVALID_TEMPLATE", t.INVALID_PREDICTION = "INVALID_PREDICTION", t.INVALID_MARKET = "INVALID_MARKET", t.INVALID_FIELD = "INVALID_FIELD", t.INVALID_TYPE = "INVALID_TYPE", t.EXCEEDED_LENGTH = "EXCEEDED_LENGTH", t.INVALID_TOKEN = "invalid_token", t.UNAUTHORIZED = "unauthorized", t.INVALID_FILTERS = "invalid_filters", t.INVALID_AVATAR = "invalid_avatar", t.INVALID_METHOD_CALL = "invalid_method_call", t.INVALID_LIMIT = "invalid_limit", t.INVALID_TEMPLATE_GROUP_ID = "invalid_template_group_id", t.INVALID_TEMPLATE_GROUP_FILTERS = "invalid_template_group_filters", t.INVALID_PAGE_NUMBER = "invalid_page_number", t.INVALID_DISCUSSION_IDS = "invalid_discussion_ids", t.ID_MAPPING_NOT_FOUND = "id_mapping_not_found", t.INVALID_COMPETITION_ID = "invalid_competition_id", t.INVALID_TEAM_ID = "invalid_team_id", t.INVALID_IDS = "invalid_ids", t.INVALID_INPUT_PROVIDER = "invalid_input_provider", t.INVALID_OUTPUT_PROVIDER = "invalid_output_provider", t.INVALID_MATCH_SUMMARY = "invalid_match_summary", t.INVALID_MATCH_SUMMARY_PREDICTIONS = "invalid_match_summary_predictions", t.INVALID_MATCH_SUMMARY_PREDICTIONS_KEYS = "invalid_match_summary_predictions_keys", t.ENTITY_IDS_NOT_FOUND = "entity_ids_not_found", t.MATCH_IDS_NOT_FOUND = "match_ids_not_found", t.INVALID_MATCH_IDS = "invalid_match_ids", t.ODD_CLIENT_CONFIGURATION_NOT_FOUND = "odd_client_configuration_not_found", t))(Tt || {}), k = { native: "id", sportradar: "sportradar_id", sportal365: "sportal365_id", enetpulse: "enetpulse_id", api_football: "api_football_id" };
444
444
  (/* @__PURE__ */ new Map()).set("FT_1X2", "fullTimeOneXTwo").set("HT_1X2", "halfTimeOneXTwo").set("BOTH_TEAMS_SCORE", "bothTeamsScore").set("DOUBLE_CHANCE", "doubleChance").set("HT_FT", "halfTimeFullTime").set("PLAYER_SCORE", "playerScore").set("PLAYER_YELLOW_CARD", "playerYellowCard").set("PLAYER_RED_CARD", "playerRedCard").set("RED_CARD_MATCH", "redCardMatch").set("PENALTY_MATCH", "penaltyMatch").set("PLAYER_SCORE_FIRST_GOAL", "playerScoreFirstGoal").set("CORNERS_MATCH", "cornersMatch").set("CORRECT_SCORE", "correctScore").set("CORRECT_SCORE_ADVANCED", "correctScoreAdvanced").set("CORRECT_SCORE_HT", "correctScoreHalfTime").set("PLAYER_SCORE_HATTRICK", "playerScoreHattrick").set("PLAYER_SCORE_TWICE", "playerScoreTwice").set("OVER_GOALS_0_5", "overZeroPointFiveGoals").set("OVER_GOALS_1_5", "overOnePointFiveGoals").set("OVER_GOALS_2_5", "overTwoPointFiveGoals").set("OVER_GOALS_3_5", "overThreePointFiveGoals").set("OVER_GOALS_4_5", "overFourPointFiveGoals").set("OVER_GOALS_5_5", "overFivePointFiveGoals").set("OVER_GOALS_6_5", "overSixPointFiveGoals").set("OVER_CORNERS_6_5", "overSixPointFiveCorners").set("OVER_CORNERS_7_5", "overSevenPointFiveCorners").set("OVER_CORNERS_8_5", "overEightPointFiveCorners").set("OVER_CORNERS_9_5", "overNinePointFiveCorners").set("OVER_CORNERS_10_5", "overTenPointFiveCorners").set("OVER_CORNERS_11_5", "overElevenPointFiveCorners").set("OVER_CORNERS_12_5", "overTwelvePointFiveCorners").set("OVER_CORNERS_13_5", "overThirteenPointFiveCorners");
445
- var Et = ((t) => (t.INVALID_MATCH_ID = "Match id is invalid!", t.INVALID_PLAYER_ID = "Player id is invalid!", t.QUERY_PARAM_MATCH_IDS_EXCEEDED = "Maximum matchIds in PredictionFilters should be 10 or less.", t.QUERY_PARAM_FILTERS_LIMIT_EXCEEDED = "Maximum limit for filtering games is 50 or less.", t.INVALID_FIXTURES_FIELD = "Fixtures field is invalid. For more information please visit our documentation", t.INVALID_TOKEN = "Invalid JWT token is provided", t.EXPIRED_TOKEN = "The provided JWT token is expired", t.ENTITIES_NEEDED = "At least one of footballCompetitions, footballTeams or footballPlayers properties should be provided for filters.", t.ENTITIES_FOLLOWS_FILTERS_EXCEEDED = "Maximum length per entity should be 24 or less.", t.INVALID_TYPE = "You have provided invalid type. The valid type is ", t.INVALID_VALUE = "You have provided invalid value. The valid value is ", t.INVALID_AVATAR = "Invalid URL syntax for avatar image.", t.INVALID_GET_PROFILES_METHOD_CALL = "The method 'getByIds' from Profile namespace is not called correctly. You need to provide 'profileIds' OR 'search' parameters to the method, but you can't use both of them or neither of them.", t.INVALID_LIMIT = "Invalid limit. The maximum limit is: ", t.INVALID_LIMIT_TYPE = "Invalid limit type. The proper type is number.", t.FILTER_COMBINATION_ERROR = "You need to use both 'entityIds' and 'entityType' filters together", t.INVALID_ENTITY_TYPE = "Invalid 'entityType' filter. Please use one of the following valid options: competition, team, or player", t.INVALID_TEMPLATE_GROUP_ID = "There is no group in this template with the provided groupId", t.INVALID_TEMPLATE_GROUP_FILTERS = "The provided template group has no filters", t.INVALID_PAGE_NUMBER = "Invalid page number provided. Use number between 1 and max number of pages.", t.INVALID_DISCUSSION_IDS = "Invalid discussion ids argument. Please provide at least one discussion id in an array", t.EXCEEDED_DISCUSSION_IDS = "Maximum number of discussion ids exceeded. The maximum number of discussion ids is 50. You can use 'getPostsCountExtended' method for more than 50 discussion ids.", t.EXCEEDED_EXTENDED_DISCUSSION_IDS = "Maximum number of discussion ids exceeded. The maximum number of discussion ids is: ", t.ID_MAPPING_NOT_FOUND = "No ID mappings are available for the provided ID. ID argument: ", t.INVALID_PARAM = "Invalid parameter provided. Please check the following parameter: ", t.INVALID_COMPETITION_ID = "Invalid competition ID provided. Please provide a valid competition ID.", t.INVALID_TEAM_ID = "Invalid team ID provided. Please provide a valid team ID.", t.INVALID_OR_EMPTY_IDS = "Invalid or empty IDs provided. Please provide at least one ID.", t.INVALID_PROVIDER = "Invalid provider. The valid providers are: 'native', 'enetpulse', 'sportal365', 'sportradar' and 'api_football'.", t.INVALID_OUTPUT_PROVIDER = "Invalid output provider. The output can not be the same as the input provider.", t.MATCH_SUMMARY_REQUIRED = "Match summary is required.", t.MATCH_SUMMARY_PREDICTIONS_REQUIRED = "Predictions in match summary are required.", t.INVALID_MATCH_SUMMARY_PREDICTIONS_KEYS = "Keys in predictions in match summary are invalid. The valid ones are: ", t.INVALID_COLLECT_LEAD_METHOD_CALL = "The method 'collectLead' from Profile namespace is not called correctly. You need to provide 'requestBody' parameter to the method.", t.REQUIRED_FIXTURES_FIELD = "Fixtures field is required and should contain at least one fixtures object. For more information please visit our documentation", t.INVALID_TIEBREAKER_FIELD = "Tiebreaker field is invalid. It should contain statTotal key with integer value. For more information please visit our documentation", t.ENTITY_IDS_NOT_FOUND = "Some of the sport entity IDs were not found for the provided id schema", t.MATCH_IDS_NOT_FOUND = "Some of the match IDs were not found for the provided id schema", t.INVALID_STANDING_PREDICTION_ARGUMENT = "The prediction argument is invalid. For more information please visit our documentation", t.INVALID_MAP_PLAYERS_ROLES_KEYS = "The keys in the players roles map are not part of the valid keys. The valid keys are: ", t.INVALID_MAP_PLAYERS_ROLES_VALUES = "The values in the map are not valid. The valid ones are: ", t.INVALID_MATCH_IDS = "Match IDs are invalid!", t.MISSING_ODD_CLIENT_CONFIGURATION = "Odds namespace requires oddClient configuration to be set", t.INVALID_COLLECT_CONSENTS_METHOD_CALL = "The method 'collectConsents' from Profile namespace is not called correctly. You need to provide 'consents' parameter to the method.", t))(Et || {}), ft = ((t) => (t.LIKE = "like", t.DISLIKE = "dislike", t.PAGE_VIEW = "page_view", t.CONTENT_CONSUMED = "content_consumed", t.SHARE = "share", t.COMMENT = "comment", t.CLICK_AD = "click_ad", t.PREDICTION_MADE = "prediction_made", t.CONVERT = "convert", t.MANAGE_INTERESTS = "manage_interests", t.GAME_PARTICIPATION = "game_participation", t.ARTICLE_CONSUMED = "article_consumed", t.VIDEO_CONSUMED = "video_consumed", t.SHORT_VIDEO_CONSUMED = "short_video_consumed", t.LONG_VIDEO_CONSUMED = "long_video_consumed", t.AUDIO_CONSUMED = "audio_consumed", t.GALLERY_CONSUMED = "gallery_consumed", t.IMAGE_CONSUMED = "image_consumed", t.POLL_PARTICIPATION = "poll_participation", t))(ft || {}), pt = tt(at()), m;
445
+ var Ot = ((t) => (t.INVALID_MATCH_ID = "Match id is invalid!", t.INVALID_PLAYER_ID = "Player id is invalid!", t.QUERY_PARAM_MATCH_IDS_EXCEEDED = "Maximum matchIds in PredictionFilters should be 10 or less.", t.QUERY_PARAM_FILTERS_LIMIT_EXCEEDED = "Maximum limit for filtering games is 50 or less.", t.INVALID_FIXTURES_FIELD = "Fixtures field is invalid. For more information please visit our documentation", t.INVALID_TOKEN = "Invalid JWT token is provided", t.EXPIRED_TOKEN = "The provided JWT token is expired", t.ENTITIES_NEEDED = "At least one of footballCompetitions, footballTeams or footballPlayers properties should be provided for filters.", t.ENTITIES_FOLLOWS_FILTERS_EXCEEDED = "Maximum length per entity should be 24 or less.", t.INVALID_TYPE = "You have provided invalid type. The valid type is ", t.INVALID_VALUE = "You have provided invalid value. The valid value is ", t.INVALID_AVATAR = "Invalid URL syntax for avatar image.", t.INVALID_GET_PROFILES_METHOD_CALL = "The method 'getByIds' from Profile namespace is not called correctly. You need to provide 'profileIds' OR 'search' parameters to the method, but you can't use both of them or neither of them.", t.INVALID_LIMIT = "Invalid limit. The maximum limit is: ", t.INVALID_LIMIT_TYPE = "Invalid limit type. The proper type is number.", t.FILTER_COMBINATION_ERROR = "You need to use both 'entityIds' and 'entityType' filters together", t.INVALID_ENTITY_TYPE = "Invalid 'entityType' filter. Please use one of the following valid options: competition, team, or player", t.INVALID_TEMPLATE_GROUP_ID = "There is no group in this template with the provided groupId", t.INVALID_TEMPLATE_GROUP_FILTERS = "The provided template group has no filters", t.INVALID_PAGE_NUMBER = "Invalid page number provided. Use number between 1 and max number of pages.", t.INVALID_DISCUSSION_IDS = "Invalid discussion ids argument. Please provide at least one discussion id in an array", t.EXCEEDED_DISCUSSION_IDS = "Maximum number of discussion ids exceeded. The maximum number of discussion ids is 50. You can use 'getPostsCountExtended' method for more than 50 discussion ids.", t.EXCEEDED_EXTENDED_DISCUSSION_IDS = "Maximum number of discussion ids exceeded. The maximum number of discussion ids is: ", t.ID_MAPPING_NOT_FOUND = "No ID mappings are available for the provided ID. ID argument: ", t.INVALID_PARAM = "Invalid parameter provided. Please check the following parameter: ", t.INVALID_COMPETITION_ID = "Invalid competition ID provided. Please provide a valid competition ID.", t.INVALID_TEAM_ID = "Invalid team ID provided. Please provide a valid team ID.", t.INVALID_OR_EMPTY_IDS = "Invalid or empty IDs provided. Please provide at least one ID.", t.INVALID_PROVIDER = "Invalid provider. The valid providers are: 'native', 'enetpulse', 'sportal365', 'sportradar' and 'api_football'.", t.INVALID_OUTPUT_PROVIDER = "Invalid output provider. The output can not be the same as the input provider.", t.MATCH_SUMMARY_REQUIRED = "Match summary is required.", t.MATCH_SUMMARY_PREDICTIONS_REQUIRED = "Predictions in match summary are required.", t.INVALID_MATCH_SUMMARY_PREDICTIONS_KEYS = "Keys in predictions in match summary are invalid. The valid ones are: ", t.INVALID_COLLECT_LEAD_METHOD_CALL = "The method 'collectLead' from Profile namespace is not called correctly. You need to provide 'requestBody' parameter to the method.", t.REQUIRED_FIXTURES_FIELD = "Fixtures field is required and should contain at least one fixtures object. For more information please visit our documentation", t.INVALID_TIEBREAKER_FIELD = "Tiebreaker field is invalid. It should contain statTotal key with integer value. For more information please visit our documentation", t.ENTITY_IDS_NOT_FOUND = "Some of the sport entity IDs were not found for the provided id schema", t.MATCH_IDS_NOT_FOUND = "Some of the match IDs were not found for the provided id schema", t.INVALID_STANDING_PREDICTION_ARGUMENT = "The prediction argument is invalid. For more information please visit our documentation", t.INVALID_MAP_PLAYERS_ROLES_KEYS = "The keys in the players roles map are not part of the valid keys. The valid keys are: ", t.INVALID_MAP_PLAYERS_ROLES_VALUES = "The values in the map are not valid. The valid ones are: ", t.INVALID_MATCH_IDS = "Match IDs are invalid!", t.MISSING_ODD_CLIENT_CONFIGURATION = "Odds namespace requires oddClient configuration to be set", t.INVALID_COLLECT_CONSENTS_METHOD_CALL = "The method 'collectConsents' from Profile namespace is not called correctly. You need to provide 'consents' parameter to the method.", t))(Ot || {}), Rt = ((t) => (t.LIKE = "like", t.DISLIKE = "dislike", t.PAGE_VIEW = "page_view", t.CONTENT_CONSUMED = "content_consumed", t.SHARE = "share", t.COMMENT = "comment", t.CLICK_AD = "click_ad", t.PREDICTION_MADE = "prediction_made", t.CONVERT = "convert", t.MANAGE_INTERESTS = "manage_interests", t.GAME_PARTICIPATION = "game_participation", t.ARTICLE_CONSUMED = "article_consumed", t.VIDEO_CONSUMED = "video_consumed", t.SHORT_VIDEO_CONSUMED = "short_video_consumed", t.LONG_VIDEO_CONSUMED = "long_video_consumed", t.AUDIO_CONSUMED = "audio_consumed", t.GALLERY_CONSUMED = "gallery_consumed", t.IMAGE_CONSUMED = "image_consumed", t.POLL_PARTICIPATION = "poll_participation", t))(Rt || {}), mt = rt(ut()), m;
446
446
  m = class {
447
447
  constructor(e) {
448
- this.profileTTL = 600, this.clientTTL = 14400, this.profileBadgesTTL = 3600, this.idMappingsExpiration = 0, this.idSchema = "", this.clearData = async () => m.nodeCache.flushAll(), this.getEntityById = async (a, h) => {
448
+ this.profileTTL = 600, this.clientTTL = 14400, this.profileBadgesTTL = 3600, this.idMappingsExpiration = 0, this.idSchema = "", this.clearData = async () => m.nodeCache.flushAll(), this.getEntityById = async (n, h) => {
449
449
  let d = m.nodeCache.get("ids");
450
450
  return d ? d.find((c) => {
451
- let R = k[this.idSchema];
452
- return c && `${c[R]}` === h && c.resource === a;
451
+ let O = k[this.idSchema];
452
+ return c && `${c[O]}` === h && c.resource === n;
453
453
  }) : null;
454
- }, this.getEntity = async (a, h, d) => {
454
+ }, this.getEntity = async (n, h, d) => {
455
455
  let c = m.nodeCache.get("ids");
456
- return c ? Array.isArray(a) ? [] : null : Array.isArray(a) ? c.filter((R) => {
456
+ return c ? Array.isArray(n) ? [] : null : Array.isArray(n) ? c.filter((O) => {
457
457
  let r = k[d];
458
- return R && a.includes(`${R[r]}`) && R.resource === h;
459
- }) : c.find((R) => {
458
+ return O && n.includes(`${O[r]}`) && O.resource === h;
459
+ }) : c.find((O) => {
460
460
  let r = k[d];
461
- return R && `${R[r]}` === a && R.resource === h;
461
+ return O && `${O[r]}` === n && O.resource === h;
462
462
  });
463
- }, this.checkForExistingIdObjs = async (a, h) => {
463
+ }, this.checkForExistingIdObjs = async (n, h) => {
464
464
  let d = k[h], c = {};
465
- for (let R of Object.keys(a)) {
466
- let r = a[R], A = (await this.getEntity(r, R, h)).map((l) => l[d]), i = a[R].filter((l) => !A.includes(l));
467
- c[R] = r.map((l) => i.includes(l) ? { id: l, exists: !1 } : { id: l, exists: !0 });
465
+ for (let O of Object.keys(n)) {
466
+ let r = n[O], A = (await this.getEntity(r, O, h)).map((l) => l[d]), i = n[O].filter((l) => !A.includes(l));
467
+ c[O] = r.map((l) => i.includes(l) ? { id: l, exists: !1 } : { id: l, exists: !0 });
468
468
  }
469
469
  return c;
470
- }, this.getIdsByType = async (a, h, d) => {
471
- let c = k[d], R = k[h], r = m.nodeCache.get("ids"), A = {};
472
- return r ? (Object.keys(a).forEach((i) => {
473
- let l = a[i], _ = [];
474
- r.forEach((p) => {
470
+ }, this.getIdsByType = async (n, h, d) => {
471
+ let c = k[d], O = k[h], r = m.nodeCache.get("ids"), A = {};
472
+ return r ? (Object.keys(n).forEach((i) => {
473
+ let l = n[i], _ = [];
474
+ r.forEach((f) => {
475
475
  l.forEach((u, E) => {
476
- u === p[R] && i === p.resource && (_[E] = p[c]);
476
+ u === f[O] && i === f.resource && (_[E] = f[c]);
477
477
  });
478
478
  }), A[i] = _;
479
479
  }), A) : null;
480
- }, this.addIdMapping = async (a) => {
480
+ }, this.addIdMapping = async (n) => {
481
481
  let h = m.nodeCache.get("ids");
482
- h.push(a), m.nodeCache.set("ids", h);
483
- }, this.addIdMappings = async (a) => {
482
+ h.push(n), m.nodeCache.set("ids", h);
483
+ }, this.addIdMappings = async (n) => {
484
484
  let h = m.nodeCache.get("ids");
485
- h = [...h, ...a], m.nodeCache.set("ids", h);
486
- }, this.addTopIdMappings = async (a) => {
485
+ h = [...h, ...n], m.nodeCache.set("ids", h);
486
+ }, this.addTopIdMappings = async (n) => {
487
487
  let h = m.nodeCache.get("ids"), d = 604800;
488
488
  if (h) {
489
489
  let c = JSON.parse(JSON.stringify(h));
490
- c = c.filter((R) => R.resource !== "match"), a = a.filter((R) => R.resource === "match"), c = [...c, ...a], m.nodeCache.set("ids", c);
491
- } else m.nodeCache.set("ids", a);
490
+ c = c.filter((O) => O.resource !== "match"), n = n.filter((O) => O.resource === "match"), c = [...c, ...n], m.nodeCache.set("ids", c);
491
+ } else m.nodeCache.set("ids", n);
492
492
  this.idMappingsExpiration = Math.floor(Date.now() / 1e3) + d;
493
- }, this.setOwnProfile = async (a) => {
494
- m.nodeCache.set("profile", a, this.profileTTL);
495
- }, this.getOwnProfile = async () => m.nodeCache.get("profile"), this.getProfileCountries = async () => m.nodeCache.get("profile_countries"), this.setProfileCountries = async (a) => {
496
- m.nodeCache.set("profile_countries", a);
497
- }, this.getProfileStats = async () => m.nodeCache.get("profile_stats"), this.setProfileStats = async (a) => {
498
- m.nodeCache.set("profile_stats", a, this.profileTTL);
499
- }, this.getProfileBadges = async () => m.nodeCache.get("profile_badges"), this.setProfileBadges = async (a) => {
500
- m.nodeCache.set("profile_badges", a, this.profileBadgesTTL);
501
- }, this.getFootballCountries = async () => m.nodeCache.get("football_countries"), this.setFootballCountries = async (a) => {
502
- m.nodeCache.set("football_countries", a);
503
- }, this.getCompetitions = async (a) => {
493
+ }, this.setOwnProfile = async (n) => {
494
+ m.nodeCache.set("profile", n, this.profileTTL);
495
+ }, this.getOwnProfile = async () => m.nodeCache.get("profile"), this.getProfileCountries = async () => m.nodeCache.get("profile_countries"), this.setProfileCountries = async (n) => {
496
+ m.nodeCache.set("profile_countries", n);
497
+ }, this.getProfileStats = async () => m.nodeCache.get("profile_stats"), this.setProfileStats = async (n) => {
498
+ m.nodeCache.set("profile_stats", n, this.profileTTL);
499
+ }, this.getProfileBadges = async () => m.nodeCache.get("profile_badges"), this.setProfileBadges = async (n) => {
500
+ m.nodeCache.set("profile_badges", n, this.profileBadgesTTL);
501
+ }, this.getFootballCountries = async () => m.nodeCache.get("football_countries"), this.setFootballCountries = async (n) => {
502
+ m.nodeCache.set("football_countries", n);
503
+ }, this.getCompetitions = async (n) => {
504
504
  let h = m.nodeCache.get("football_competitions");
505
- return h ? a ? a.competitionSearchFilter(h) : h : null;
506
- }, this.setCompetitions = async (a) => {
507
- m.nodeCache.set("football_competitions", a);
505
+ return h ? n ? n.competitionSearchFilter(h) : h : null;
506
+ }, this.setCompetitions = async (n) => {
507
+ m.nodeCache.set("football_competitions", n);
508
508
  }, this.getCompetitionsLength = async () => {
509
- let a = m.nodeCache.get("football_competitions");
510
- return a ? a.length : 0;
511
- }, this.getClientFeatures = async () => m.nodeCache.get("client"), this.setClientFeatures = async (a) => {
512
- m.nodeCache.set("client", a, this.clientTTL);
509
+ let n = m.nodeCache.get("football_competitions");
510
+ return n ? n.length : 0;
511
+ }, this.getClientFeatures = async () => m.nodeCache.get("client"), this.setClientFeatures = async (n) => {
512
+ m.nodeCache.set("client", n, this.clientTTL);
513
513
  }, this.deleteClientFeatures = async () => {
514
514
  m.nodeCache.del("client");
515
- }, this.getExpiration = async (a, h) => {
515
+ }, this.getExpiration = async (n, h) => {
516
516
  let d = this.getKeyFromExpirationType(h);
517
517
  return d === "ids" ? this.idMappingsExpiration : m.nodeCache.getTtl(d);
518
- }, this.getKeyFromExpirationType = (a) => {
519
- switch (a) {
518
+ }, this.getKeyFromExpirationType = (n) => {
519
+ switch (n) {
520
520
  case "profile":
521
521
  return "profile";
522
522
  case "statistics":
@@ -533,16 +533,16 @@ m = class {
533
533
  static getInstance(e) {
534
534
  return m.instance || (m.instance = new m(e), m.nodeCache.options.useClones = !1), m.instance;
535
535
  }
536
- }, m.nodeCache = new pt.default();
537
- var Ot = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(Ot || {}), Rt = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(Rt || {}), Ht = class {
536
+ }, m.nodeCache = new mt.default();
537
+ var At = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(At || {}), It = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(It || {}), Ut = class {
538
538
  constructor() {
539
539
  this.id = null, this.title = null, this.description = null, this.images = null, this.rules = null, this.customFields = null, this.type = "EVENT", this.status = null, this.related = [], this.tiebreaker = null, this.predictionsCutoff = null, this.fixtures = [], this.flags = null, this.language = null, this.branding = null, this.brandingId = null, this.createdAt = null, this.updatedAt = null;
540
540
  }
541
- }, Tt = ((t) => (t.BOOLEAN = "BOOLEAN", t.NUMBER = "NUMBER", t.ENUM = "ENUM", t.FREE_INPUT = "FREE_INPUT", t))(Tt || {}), mt = ((t) => (t.PARTICIPANT_ONE = "PARTICIPANT_ONE", t.PARTICIPANT_TWO = "PARTICIPANT_TWO", t.DRAW = "DRAW", t))(mt || {}), At = ((t) => (t.OPEN = "OPEN", t.LIVE = "LIVE", t.PENDING = "PENDING", t.CANCELED = "CANCELED", t.CLOSED = "CLOSED", t.SETTLED = "SETTLED", t))(At || {}), Ut = class {
541
+ }, yt = ((t) => (t.BOOLEAN = "BOOLEAN", t.NUMBER = "NUMBER", t.ENUM = "ENUM", t.FREE_INPUT = "FREE_INPUT", t))(yt || {}), vt = ((t) => (t.PARTICIPANT_ONE = "PARTICIPANT_ONE", t.PARTICIPANT_TWO = "PARTICIPANT_TWO", t.DRAW = "DRAW", t))(vt || {}), Ct = ((t) => (t.OPEN = "OPEN", t.LIVE = "LIVE", t.PENDING = "PENDING", t.CANCELED = "CANCELED", t.CLOSED = "CLOSED", t.SETTLED = "SETTLED", t))(Ct || {}), jt = class {
542
542
  constructor() {
543
543
  this.fixtures = [];
544
544
  }
545
- }, It = class {
545
+ }, Lt = class {
546
546
  constructor() {
547
547
  this.minutesPlayed = null, this.yellowCards = null, this.redCards = null, this.goals = null, this.penaltyGoals = null, this.penaltyCommitted = null, this.penaltyWon = null, this.penaltyMissed = null, this.penaltySaved = null, this.penaltyReceived = null, this.ownGoals = null, this.assists = null, this.cleanSheets = null, this.shots = null, this.shotsOn = null, this.shotsBlocked = null, this.offsides = null, this.foulsCommitted = null, this.foulsWon = null, this.tackles = null, this.tacklesBlocks = null, this.tacklesInterceptions = null, this.concededGoals = null, this.caughtBall = null, this.saves = null, this.passes = null, this.crosses = null, this.interceptions = null, this.keyPasses = null, this.passesAccuracy = null, this.duels = null, this.duelsWon = null, this.dribblesAttempts = null, this.dribblesSuccess = null, this.dribblesPast = null;
548
548
  }
@@ -550,15 +550,15 @@ var Ot = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIAL
550
550
  constructor() {
551
551
  this.main = null, this.cover = null, this.mobile = null;
552
552
  }
553
- }, yt = class {
553
+ }, St = class {
554
554
  constructor() {
555
555
  this.timeTiebreaker = !1;
556
556
  }
557
- }, vt = class {
557
+ }, Nt = class {
558
558
  constructor() {
559
559
  this.id = null, this.title = null, this.alternativeTitle = null, this.description = null, this.type = null, this.images = new Y(), this.participationCount = null, this.questionsCount = null, this.status = null, this.language = null, this.authRequirement = null, this.flags = null, this.customFields = null, this.labels = null, this.branding = null, this.brandingId = null, this.related = [], this.time = null, this.points = null, this.scored = !1, this.maxAttempts = null, this.averageScore = null, this.perfectScore = null, this.adContent = null, this.context = null, this.createdAt = null, this.updatedAt = null;
560
560
  }
561
- }, Bt = class extends vt {
561
+ }, Bt = class extends Nt {
562
562
  constructor() {
563
563
  super(...arguments), this.rules = null, this.questions = [];
564
564
  }
@@ -566,125 +566,141 @@ var Ot = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIAL
566
566
  constructor() {
567
567
  this.classicQuizId = null, this.classicQuizModel = null, this.correct = null, this.classicQuizQuestions = null, this.personalBest = null, this.points = null, this.answers = [], this.attempts = 0;
568
568
  }
569
- }, Ct = class {
569
+ }, Dt = class {
570
570
  constructor() {
571
571
  this.id = "", this.title = "", this.alternativeTitle = "", this.description = "", this.images = new Y(), this.flags = [], this.status = "", this.language = "", this.authRequirement = null, this.winningCondition = "", this.lives = 0, this.time = 0, this.points = [], this.customFields = null, this.branding = null, this.brandingId = null, this.labels = null, this.adContent = "", this.context = null, this.type = "", this.related = [], this.totalParticipationsCount = 0, this.totalUsersCount = 0, this.finishedParticipationsCount = 0, this.averageStartedParticipationsCount = 0, this.averageFinishedParticipationsCount = 0, this.createdAt = "", this.updatedAt = "";
572
572
  }
573
- }, jt = class extends Ct {
573
+ }, Kt = class extends Dt {
574
574
  constructor() {
575
575
  super(...arguments), this.rules = "";
576
576
  }
577
- }, Lt = class {
577
+ }, gt = class {
578
578
  constructor() {
579
579
  this.id = null, this.title = null, this.alternativeTitle = null, this.description = null, this.images = new Y(), this.participationCount = null, this.status = null, this.language = null, this.authRequirement = null, this.flags = null, this.customFields = null, this.labels = null, this.branding = null, this.brandingId = null, this.related = [], this.time = null, this.preferencesEnabled = !1, this.maxAttempts = null, this.adContent = null, this.context = null, this.createdAt = null, this.updatedAt = null;
580
580
  }
581
- }, Kt = class extends Lt {
581
+ }, Xt = class extends gt {
582
582
  constructor() {
583
583
  super(...arguments), this.rules = null, this.questions = [], this.personaResults = [];
584
584
  }
585
- }, Xt = class {
585
+ }, zt = class {
586
586
  constructor() {
587
587
  this.personalityQuizId = null, this.userId = null, this.questions = [], this.personas = [], this.attempts = null;
588
588
  }
589
- }, St = ((t) => (t.PRE_EVENT = "PRE_EVENT", t.LIVE = "LIVE", t.ALL = "ALL", t))(St || {}), Nt = ((t) => (t.ORDINARY_TIME = "ORDINARY_TIME", t.FULL_TIME = "FULL_TIME", t))(Nt || {}), Dt = ((t) => (t.DECIMAL = "DECIMAL", t.MONEYLINE = "MONEYLINE", t.FRACTIONAL = "FRACTIONAL", t))(Dt || {}), gt = ((t) => (t.FT_1X2 = "FT_1X2", t.DOUBLE_CHANCE = "DOUBLE_CHANCE", t.HT_FT = "HT_FT", t.BOTH_TEAMS_SCORE = "BOTH_TEAMS_SCORE", t.CORRECT_SCORE = "CORRECT_SCORE", t.PLAYER_SCORE_FIRST_GOAL = "PLAYER_SCORE_FIRST_GOAL", t.PLAYER_SCORE = "PLAYER_SCORE", t.PLAYER_RED_CARD = "PLAYER_RED_CARD", t.PLAYER_YELLOW_CARD = "PLAYER_YELLOW_CARD", t.OVER_GOALS_0_5 = "OVER_GOALS_0_5", t.OVER_GOALS_1_5 = "OVER_GOALS_1_5", t.OVER_GOALS_2_5 = "OVER_GOALS_2_5", t.OVER_GOALS_3_5 = "OVER_GOALS_3_5", t.OVER_GOALS_4_5 = "OVER_GOALS_4_5", t.OVER_GOALS_5_5 = "OVER_GOALS_5_5", t))(gt || {}), zt = class {
589
+ }, X = ((t) => (t.PRE_EVENT = "PRE_EVENT", t.LIVE = "LIVE", t.ALL = "ALL", t))(X || {}), z = ((t) => (t.ORDINARY_TIME = "ORDINARY_TIME", t.FULL_TIME = "FULL_TIME", t))(z || {}), q = ((t) => (t.DECIMAL = "DECIMAL", t.MONEYLINE = "MONEYLINE", t.FRACTIONAL = "FRACTIONAL", t))(q || {}), Q = ((t) => (t.FT_1X2 = "FT_1X2", t.DOUBLE_CHANCE = "DOUBLE_CHANCE", t.HT_FT = "HT_FT", t.BOTH_TEAMS_SCORE = "BOTH_TEAMS_SCORE", t.CORRECT_SCORE = "CORRECT_SCORE", t.PLAYER_SCORE_FIRST_GOAL = "PLAYER_SCORE_FIRST_GOAL", t.PLAYER_SCORE = "PLAYER_SCORE", t.PLAYER_RED_CARD = "PLAYER_RED_CARD", t.PLAYER_YELLOW_CARD = "PLAYER_YELLOW_CARD", t.OVER_GOALS_0_5 = "OVER_GOALS_0_5", t.OVER_GOALS_1_5 = "OVER_GOALS_1_5", t.OVER_GOALS_2_5 = "OVER_GOALS_2_5", t.OVER_GOALS_3_5 = "OVER_GOALS_3_5", t.OVER_GOALS_4_5 = "OVER_GOALS_4_5", t.OVER_GOALS_5_5 = "OVER_GOALS_5_5", t))(Q || {}), bt = { FT_1X2: "1x2", DOUBLE_CHANCE: "DOUBLE_CHANCE", HT_FT: "FIRST_HALF_AND_FINAL_RESULT", BOTH_TEAMS_SCORE: "BOTH_TO_SCORE", CORRECT_SCORE: "CORRECT_SCORE", PLAYER_SCORE_FIRST_GOAL: "FIRST_PLAYER_TO_SCORE", PLAYER_SCORE: "PLAYER_TO_SCORE_DURING_GAME", PLAYER_RED_CARD: "PLAYER_TO_RECEIVE_CARD", PLAYER_YELLOW_CARD: "PLAYER_TO_RECEIVE_CARD" }, qt = class {
590
+ constructor(t) {
591
+ this.oddType = "PRE_EVENT", this.scopeType = "ORDINARY_TIME", this.oddFormat = "DECIMAL", this.marketTypes = ["FT_1X2"], this.validateFilters(t);
592
+ }
593
+ constructFiltersUrl() {
594
+ let t = this.marketTypes.map((e) => this.mapToSportal365Market(e));
595
+ return `&odd_type=${this.oddType}&scope_type=${this.scopeType}&odd_format=${this.oddFormat}&market_types=${t.join(",")}`;
596
+ }
597
+ validateFilters(t) {
598
+ let e = Object.values(X), n = Object.values(z), h = Object.values(q), d = Object.values(Q);
599
+ t != null && t.oddType && (e.includes(t.oddType) ? this.oddType = t.oddType : console.warn(`The filter "oddType" is NOT valid and therefore it will be set to PRE_EVENT. The VALID values are : ${e.join(", ")}`)), t != null && t.scopeType && (n.includes(t.scopeType) ? this.scopeType = t.scopeType : console.warn(`The filter "scopeType" is NOT valid and therefore it will be set to ORDINARY_TIME. The VALID values are : ${n.join(", ")}`)), t != null && t.oddFormat && (h.includes(t.oddFormat) ? this.oddFormat = t.oddFormat : console.warn(`The filter "oddFormat" is NOT valid and therefore it will be set to DECIMAL. The VALID values are : ${h.join(", ")}`)), t != null && t.marketTypes && Array.isArray(t == null ? void 0 : t.marketTypes) && (t == null ? void 0 : t.marketTypes.length) > 0 && (t.marketTypes.every((c) => d.includes(c)) ? this.marketTypes = t.marketTypes : console.warn(`The filter "marketTypes" is NOT valid and therefore it will be set to FT_1X2. The VALID values are : ${d.join(", ")}`));
600
+ }
601
+ mapToSportal365Market(t) {
602
+ return t.startsWith("OVER_GOALS_") ? "OVER_UNDER" : bt[t];
603
+ }
604
+ }, Qt = class {
590
605
  constructor() {
591
606
  this.gameInstanceId = null, this.fixtures = null;
592
607
  }
593
- }, bt = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(bt || {}), Pt = class {
608
+ }, Pt = ((t) => (t.ACTIVE = "ACTIVE", t.WON = "WON", t.LOST = "LOST", t.PARTIALLY_WON = "PARTIALLY_WON", t.CANCELED = "CANCELED", t))(Pt || {}), Vt = class {
594
609
  constructor() {
595
- this.id = null, this.title = null, this.description = null, this.type = null, this.status = null, this.authRequirement = null, this.scheduleOpenAt = null, this.predictionsCutoff = null, this.fixtures = [], this.tiebreaker = new yt(), this.participantsCount = 0, this.related = [], this.excludedProfileIds = null, this.rules = null, this.labels = null, this.customFields = null, this.branding = null, this.brandingId = null, this.flags = null, this.language = null, this.images = new Y(), this.createdAt = null, this.updatedAt = null;
610
+ this.id = null, this.title = null, this.description = null, this.type = null, this.status = null, this.authRequirement = null, this.scheduleOpenAt = null, this.predictionsCutoff = null, this.fixtures = [], this.tiebreaker = new St(), this.participantsCount = 0, this.related = [], this.excludedProfileIds = null, this.rules = null, this.labels = null, this.customFields = null, this.branding = null, this.brandingId = null, this.flags = null, this.language = null, this.images = new Y(), this.createdAt = null, this.updatedAt = null;
596
611
  }
597
- }, qt = class extends Pt {
612
+ }, Jt = class extends Vt {
598
613
  constructor() {
599
614
  super(...arguments), this.adContent = null;
600
615
  }
601
- }, Vt = class {
616
+ }, Mt = class {
602
617
  constructor() {
603
618
  this.id = null, this.title = null, this.alternativeTitle = null, this.description = null, this.type = null, this.images = new Y(), this.status = null, this.language = null, this.authRequirement = null, this.totalVotes = null, this.flags = [], this.customFields = null, this.branding = null, this.brandingId = null, this.embedCode = null, this.labels = null, this.adContent = null, this.context = null, this.options = [], this.related = [], this.preferencesEnabled = !1, this.multipleChoice = !1, this.maxMultipleChoiceOptions = null, this.participationCount = 0, this.maxAttempts = 0, this.externalActivity = null, this.createdAt = null, this.updatedAt = null;
604
619
  }
605
- }, Qt = class extends Vt {
620
+ }, Zt = class extends Mt {
606
621
  constructor() {
607
622
  super(...arguments), this.rules = null;
608
623
  }
609
- }, Mt = class {
624
+ }, Gt = class {
610
625
  constructor() {
611
626
  this.id = null, this.pollId = null, this.optionId = null, this.optionIds = [], this.userId = null, this.createdAt = null;
612
627
  }
613
- }, Jt = class extends Mt {
628
+ }, $t = class extends Gt {
614
629
  constructor() {
615
630
  super(...arguments), this.previousVotes = [], this.attempts = null;
616
631
  }
617
- }, Gt = ((t) => (t.LIKE = "like", t.DISLIKE = "dislike", t.SHARE = "share", t.COMMENT = "comment", t.PREDICTION_MADE = "prediction_made", t))(Gt || {}), wt = ((t) => (t.CORRECT = "CORRECT", t.INCORRECT = "INCORRECT", t.PARTIALLY_CORRECT = "PARTIALLY_CORRECT", t.NOT_VERIFIED = "NOT_VERIFIED", t))(wt || {}), Ft = ((t) => (t.ONE = "1", t.X = "x", t.TWO = "2", t))(Ft || {}), kt = ((t) => (t.ONE_X = "1x", t.X_TWO = "x2", t.ONE_TWO = "12", t))(kt || {}), xt = ((t) => (t.ONE_ONE = "1/1", t.ONE_X = "1/x", t.ONE_TWO = "1/2", t.X_ONE = "x/1", t.X_X = "x/x", t.X_TWO = "x/2", t.TWO_ONE = "2/1", t.TWO_X = "2/x", t.TWO_TWO = "2/2", t))(xt || {}), Yt = ((t) => (t.NONE = "none", t.FINISHED = "finished", t.CANCELLED = "cancelled", t.POSTPONED = "postponed", t.NOT_STARTED = "not_started", t.FIRST_HALF = "1st_half", t.SECOND_HALF = "2nd_half", t.FINISHED_AFTER_AWARDED_WIN = "finished_after_awarded_win", t.TO_FINISH = "to_finish", t.FINISHED_AET = "finished_aet", t.HALFTIME = "halftime", t.FINISHED_AP = "finished_ap", t.INTERRUPTED = "interrupted", t.KICK_OFF_DELAYED = "kick_off_delayed", t.ABANDONED = "abandoned", t.WAITING_FOR_PENALTY = "waiting_for_penalty", t.PENALTY = "penalty", t.PAUSE = "pause", t.EXTRA_TIME_1ST_HALF = "extra_time_1st_half", t.EXTRA_TIME_END_OF_1ST_HALF = "extra_time_end_of_1st_half", t.EXTRA_TIME_2ND_HALF = "extra_time_2nd_half", t.WAITING_FOR_EXTRA_TIME = "waiting_for_extra_time", t.NO_INFO_YET = "no_info_yet", t.AWAITING_INFO = "awaiting_info", t.FINISHED_ASG = "finished_asg", t))(Yt || {}), g;
632
+ }, wt = ((t) => (t.LIKE = "like", t.DISLIKE = "dislike", t.SHARE = "share", t.COMMENT = "comment", t.PREDICTION_MADE = "prediction_made", t))(wt || {}), Ft = ((t) => (t.CORRECT = "CORRECT", t.INCORRECT = "INCORRECT", t.PARTIALLY_CORRECT = "PARTIALLY_CORRECT", t.NOT_VERIFIED = "NOT_VERIFIED", t))(Ft || {}), kt = ((t) => (t.ONE = "1", t.X = "x", t.TWO = "2", t))(kt || {}), xt = ((t) => (t.ONE_X = "1x", t.X_TWO = "x2", t.ONE_TWO = "12", t))(xt || {}), Yt = ((t) => (t.ONE_ONE = "1/1", t.ONE_X = "1/x", t.ONE_TWO = "1/2", t.X_ONE = "x/1", t.X_X = "x/x", t.X_TWO = "x/2", t.TWO_ONE = "2/1", t.TWO_X = "2/x", t.TWO_TWO = "2/2", t))(Yt || {}), Ht = ((t) => (t.NONE = "none", t.FINISHED = "finished", t.CANCELLED = "cancelled", t.POSTPONED = "postponed", t.NOT_STARTED = "not_started", t.FIRST_HALF = "1st_half", t.SECOND_HALF = "2nd_half", t.FINISHED_AFTER_AWARDED_WIN = "finished_after_awarded_win", t.TO_FINISH = "to_finish", t.FINISHED_AET = "finished_aet", t.HALFTIME = "halftime", t.FINISHED_AP = "finished_ap", t.INTERRUPTED = "interrupted", t.KICK_OFF_DELAYED = "kick_off_delayed", t.ABANDONED = "abandoned", t.WAITING_FOR_PENALTY = "waiting_for_penalty", t.PENALTY = "penalty", t.PAUSE = "pause", t.EXTRA_TIME_1ST_HALF = "extra_time_1st_half", t.EXTRA_TIME_END_OF_1ST_HALF = "extra_time_end_of_1st_half", t.EXTRA_TIME_2ND_HALF = "extra_time_2nd_half", t.WAITING_FOR_EXTRA_TIME = "waiting_for_extra_time", t.NO_INFO_YET = "no_info_yet", t.AWAITING_INFO = "awaiting_info", t.FINISHED_ASG = "finished_asg", t))(Ht || {}), g;
618
633
  g = class {
619
634
  constructor() {
620
635
  }
621
- static createMatchMarketsResultsModel(e, a) {
622
- var h, d, c, R, r, A, i, l, _, p, u, E, y, v, S, N, D, V, C, s, o, n, f, T, O, I, L, P, b, x, F, M, G, w, H, j;
623
- return { FT_1X2: this.createOneXTwoResult(e.scores, "full_time"), HT_1X2: this.createOneXTwoResult(e.scores, "half_time"), BOTH_TEAMS_SCORE: e.scores.ftScore.homeGoals > 0 && e.scores.ftScore.awayGoals > 0, DOUBLE_CHANCE: this.createDoubleChanceResult(e.scores), HT_FT: this.createHalfTimeFullTimeResult(e.scores), RED_CARD_MATCH: this.createMarketResultByCriteria(e, "red_card"), PENALTY_MATCH: this.createMarketResultByCriteria(e, "penalty"), CORNERS_MATCH: isNaN(((d = (h = e.stats) == null ? void 0 : h.corners) == null ? void 0 : d.homeTeam) + ((R = (c = e.stats) == null ? void 0 : c.corners) == null ? void 0 : R.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam, PLAYER_YELLOW_CARD: this.createPlayersMarketsResults(e, a, "yellow_card"), PLAYER_RED_CARD: this.createPlayersMarketsResults(e, a, "red_card"), PLAYER_SCORE_FIRST_GOAL: this.createPlayersMarketsResults(e, a, "first_goal"), PLAYER_SCORE: this.createPlayersMarketsResults(e, a, "one_goal"), PLAYER_SCORE_TWICE: this.createPlayersMarketsResults(e, a, "two_goals"), PLAYER_SCORE_HATTRICK: this.createPlayersMarketsResults(e, a, "hattrick"), CORRECT_SCORE: { homeGoals: e.scores.ftScore.homeGoals, awayGoals: e.scores.ftScore.awayGoals }, CORRECT_SCORE_ADVANCED: { homeGoals: e.scores.ftScore.homeGoals, awayGoals: e.scores.ftScore.awayGoals }, CORRECT_SCORE_HT: { homeGoals: e.scores.htScore.homeGoals, awayGoals: e.scores.htScore.awayGoals }, OVER_GOALS_0_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 0, OVER_GOALS_1_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 1, OVER_GOALS_2_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 2, OVER_GOALS_3_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 3, OVER_GOALS_4_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 4, OVER_GOALS_5_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 5, OVER_GOALS_6_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 6, OVER_CORNERS_6_5: isNaN(((A = (r = e.stats) == null ? void 0 : r.corners) == null ? void 0 : A.homeTeam) + ((l = (i = e.stats) == null ? void 0 : i.corners) == null ? void 0 : l.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 6, OVER_CORNERS_7_5: isNaN(((p = (_ = e.stats) == null ? void 0 : _.corners) == null ? void 0 : p.homeTeam) + ((E = (u = e.stats) == null ? void 0 : u.corners) == null ? void 0 : E.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 7, OVER_CORNERS_8_5: isNaN(((v = (y = e.stats) == null ? void 0 : y.corners) == null ? void 0 : v.homeTeam) + ((N = (S = e.stats) == null ? void 0 : S.corners) == null ? void 0 : N.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 8, OVER_CORNERS_9_5: isNaN(((V = (D = e.stats) == null ? void 0 : D.corners) == null ? void 0 : V.homeTeam) + ((s = (C = e.stats) == null ? void 0 : C.corners) == null ? void 0 : s.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 9, OVER_CORNERS_10_5: isNaN(((n = (o = e.stats) == null ? void 0 : o.corners) == null ? void 0 : n.homeTeam) + ((T = (f = e.stats) == null ? void 0 : f.corners) == null ? void 0 : T.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 10, OVER_CORNERS_11_5: isNaN(((I = (O = e.stats) == null ? void 0 : O.corners) == null ? void 0 : I.homeTeam) + ((P = (L = e.stats) == null ? void 0 : L.corners) == null ? void 0 : P.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 11, OVER_CORNERS_12_5: isNaN(((x = (b = e.stats) == null ? void 0 : b.corners) == null ? void 0 : x.homeTeam) + ((M = (F = e.stats) == null ? void 0 : F.corners) == null ? void 0 : M.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 12, OVER_CORNERS_13_5: isNaN(((w = (G = e.stats) == null ? void 0 : G.corners) == null ? void 0 : w.homeTeam) + ((j = (H = e.stats) == null ? void 0 : H.corners) == null ? void 0 : j.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 13 };
636
+ static createMatchMarketsResultsModel(e, n) {
637
+ var h, d, c, O, r, A, i, l, _, f, u, E, y, v, S, N, D, V, C, s, o, a, p, R, T, I, L, P, b, x, F, M, G, w, H, W;
638
+ return { FT_1X2: this.createOneXTwoResult(e.scores, "full_time"), HT_1X2: this.createOneXTwoResult(e.scores, "half_time"), BOTH_TEAMS_SCORE: e.scores.ftScore.homeGoals > 0 && e.scores.ftScore.awayGoals > 0, DOUBLE_CHANCE: this.createDoubleChanceResult(e.scores), HT_FT: this.createHalfTimeFullTimeResult(e.scores), RED_CARD_MATCH: this.createMarketResultByCriteria(e, "red_card"), PENALTY_MATCH: this.createMarketResultByCriteria(e, "penalty"), CORNERS_MATCH: isNaN(((d = (h = e.stats) == null ? void 0 : h.corners) == null ? void 0 : d.homeTeam) + ((O = (c = e.stats) == null ? void 0 : c.corners) == null ? void 0 : O.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam, PLAYER_YELLOW_CARD: this.createPlayersMarketsResults(e, n, "yellow_card"), PLAYER_RED_CARD: this.createPlayersMarketsResults(e, n, "red_card"), PLAYER_SCORE_FIRST_GOAL: this.createPlayersMarketsResults(e, n, "first_goal"), PLAYER_SCORE: this.createPlayersMarketsResults(e, n, "one_goal"), PLAYER_SCORE_TWICE: this.createPlayersMarketsResults(e, n, "two_goals"), PLAYER_SCORE_HATTRICK: this.createPlayersMarketsResults(e, n, "hattrick"), CORRECT_SCORE: { homeGoals: e.scores.ftScore.homeGoals, awayGoals: e.scores.ftScore.awayGoals }, CORRECT_SCORE_ADVANCED: { homeGoals: e.scores.ftScore.homeGoals, awayGoals: e.scores.ftScore.awayGoals }, CORRECT_SCORE_HT: { homeGoals: e.scores.htScore.homeGoals, awayGoals: e.scores.htScore.awayGoals }, OVER_GOALS_0_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 0, OVER_GOALS_1_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 1, OVER_GOALS_2_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 2, OVER_GOALS_3_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 3, OVER_GOALS_4_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 4, OVER_GOALS_5_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 5, OVER_GOALS_6_5: e.scores.ftScore.homeGoals + e.scores.ftScore.awayGoals > 6, OVER_CORNERS_6_5: isNaN(((A = (r = e.stats) == null ? void 0 : r.corners) == null ? void 0 : A.homeTeam) + ((l = (i = e.stats) == null ? void 0 : i.corners) == null ? void 0 : l.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 6, OVER_CORNERS_7_5: isNaN(((f = (_ = e.stats) == null ? void 0 : _.corners) == null ? void 0 : f.homeTeam) + ((E = (u = e.stats) == null ? void 0 : u.corners) == null ? void 0 : E.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 7, OVER_CORNERS_8_5: isNaN(((v = (y = e.stats) == null ? void 0 : y.corners) == null ? void 0 : v.homeTeam) + ((N = (S = e.stats) == null ? void 0 : S.corners) == null ? void 0 : N.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 8, OVER_CORNERS_9_5: isNaN(((V = (D = e.stats) == null ? void 0 : D.corners) == null ? void 0 : V.homeTeam) + ((s = (C = e.stats) == null ? void 0 : C.corners) == null ? void 0 : s.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 9, OVER_CORNERS_10_5: isNaN(((a = (o = e.stats) == null ? void 0 : o.corners) == null ? void 0 : a.homeTeam) + ((R = (p = e.stats) == null ? void 0 : p.corners) == null ? void 0 : R.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 10, OVER_CORNERS_11_5: isNaN(((I = (T = e.stats) == null ? void 0 : T.corners) == null ? void 0 : I.homeTeam) + ((P = (L = e.stats) == null ? void 0 : L.corners) == null ? void 0 : P.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 11, OVER_CORNERS_12_5: isNaN(((x = (b = e.stats) == null ? void 0 : b.corners) == null ? void 0 : x.homeTeam) + ((M = (F = e.stats) == null ? void 0 : F.corners) == null ? void 0 : M.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 12, OVER_CORNERS_13_5: isNaN(((w = (G = e.stats) == null ? void 0 : G.corners) == null ? void 0 : w.homeTeam) + ((W = (H = e.stats) == null ? void 0 : H.corners) == null ? void 0 : W.awayTeam)) ? null : e.stats.corners.homeTeam + e.stats.corners.awayTeam > 13 };
624
639
  }
625
- }, g.createOneXTwoResult = (e, a) => {
626
- var h, d, c, R;
627
- return a === "full_time" ? e.ftScore.homeGoals > e.ftScore.awayGoals ? "1" : e.ftScore.homeGoals === e.ftScore.awayGoals ? "x" : "2" : ((h = e == null ? void 0 : e.htScore) == null ? void 0 : h.homeGoals) > ((d = e == null ? void 0 : e.htScore) == null ? void 0 : d.awayGoals) ? "1" : ((c = e == null ? void 0 : e.htScore) == null ? void 0 : c.homeGoals) === ((R = e == null ? void 0 : e.htScore) == null ? void 0 : R.awayGoals) ? "x" : "2";
640
+ }, g.createOneXTwoResult = (e, n) => {
641
+ var h, d, c, O;
642
+ return n === "full_time" ? e.ftScore.homeGoals > e.ftScore.awayGoals ? "1" : e.ftScore.homeGoals === e.ftScore.awayGoals ? "x" : "2" : ((h = e == null ? void 0 : e.htScore) == null ? void 0 : h.homeGoals) > ((d = e == null ? void 0 : e.htScore) == null ? void 0 : d.awayGoals) ? "1" : ((c = e == null ? void 0 : e.htScore) == null ? void 0 : c.homeGoals) === ((O = e == null ? void 0 : e.htScore) == null ? void 0 : O.awayGoals) ? "x" : "2";
628
643
  }, g.createDoubleChanceResult = (e) => {
629
- var a, h, d, c;
630
- return ((a = e == null ? void 0 : e.ftScore) == null ? void 0 : a.homeGoals) > ((h = e == null ? void 0 : e.ftScore) == null ? void 0 : h.awayGoals) ? ["1x", "12"] : ((d = e == null ? void 0 : e.ftScore) == null ? void 0 : d.homeGoals) === ((c = e == null ? void 0 : e.ftScore) == null ? void 0 : c.awayGoals) ? ["1x", "x2"] : ["x2", "12"];
644
+ var n, h, d, c;
645
+ return ((n = e == null ? void 0 : e.ftScore) == null ? void 0 : n.homeGoals) > ((h = e == null ? void 0 : e.ftScore) == null ? void 0 : h.awayGoals) ? ["1x", "12"] : ((d = e == null ? void 0 : e.ftScore) == null ? void 0 : d.homeGoals) === ((c = e == null ? void 0 : e.ftScore) == null ? void 0 : c.awayGoals) ? ["1x", "x2"] : ["x2", "12"];
631
646
  }, g.createHalfTimeFullTimeResult = (e) => {
632
- var a, h, d, c, R, r, A, i, l, _, p, u, E, y, v, S, N, D, V, C, s, o, n, f;
633
- if (((a = e == null ? void 0 : e.htScore) == null ? void 0 : a.homeGoals) > ((h = e == null ? void 0 : e.htScore) == null ? void 0 : h.awayGoals)) {
647
+ var n, h, d, c, O, r, A, i, l, _, f, u, E, y, v, S, N, D, V, C, s, o, a, p;
648
+ if (((n = e == null ? void 0 : e.htScore) == null ? void 0 : n.homeGoals) > ((h = e == null ? void 0 : e.htScore) == null ? void 0 : h.awayGoals)) {
634
649
  if (((d = e == null ? void 0 : e.ftScore) == null ? void 0 : d.homeGoals) > ((c = e == null ? void 0 : e.ftScore) == null ? void 0 : c.awayGoals)) return "1/1";
635
- if (((R = e == null ? void 0 : e.ftScore) == null ? void 0 : R.homeGoals) === ((r = e == null ? void 0 : e.ftScore) == null ? void 0 : r.awayGoals)) return "1/x";
650
+ if (((O = e == null ? void 0 : e.ftScore) == null ? void 0 : O.homeGoals) === ((r = e == null ? void 0 : e.ftScore) == null ? void 0 : r.awayGoals)) return "1/x";
636
651
  if (((A = e == null ? void 0 : e.ftScore) == null ? void 0 : A.homeGoals) < ((i = e == null ? void 0 : e.ftScore) == null ? void 0 : i.awayGoals)) return "1/2";
637
652
  }
638
653
  if (((l = e == null ? void 0 : e.htScore) == null ? void 0 : l.homeGoals) === ((_ = e == null ? void 0 : e.htScore) == null ? void 0 : _.awayGoals)) {
639
- if (((p = e == null ? void 0 : e.ftScore) == null ? void 0 : p.homeGoals) > ((u = e == null ? void 0 : e.ftScore) == null ? void 0 : u.awayGoals)) return "x/1";
654
+ if (((f = e == null ? void 0 : e.ftScore) == null ? void 0 : f.homeGoals) > ((u = e == null ? void 0 : e.ftScore) == null ? void 0 : u.awayGoals)) return "x/1";
640
655
  if (((E = e == null ? void 0 : e.ftScore) == null ? void 0 : E.homeGoals) === ((y = e == null ? void 0 : e.ftScore) == null ? void 0 : y.awayGoals)) return "x/x";
641
656
  if (((v = e == null ? void 0 : e.ftScore) == null ? void 0 : v.homeGoals) < ((S = e == null ? void 0 : e.ftScore) == null ? void 0 : S.awayGoals)) return "x/2";
642
657
  }
643
658
  if (((N = e == null ? void 0 : e.htScore) == null ? void 0 : N.homeGoals) < ((D = e == null ? void 0 : e.htScore) == null ? void 0 : D.awayGoals)) {
644
659
  if (((V = e == null ? void 0 : e.ftScore) == null ? void 0 : V.homeGoals) > ((C = e == null ? void 0 : e.ftScore) == null ? void 0 : C.awayGoals)) return "2/1";
645
660
  if (((s = e == null ? void 0 : e.ftScore) == null ? void 0 : s.homeGoals) === ((o = e == null ? void 0 : e.ftScore) == null ? void 0 : o.awayGoals)) return "2/x";
646
- if (((n = e == null ? void 0 : e.ftScore) == null ? void 0 : n.homeGoals) < ((f = e == null ? void 0 : e.ftScore) == null ? void 0 : f.awayGoals)) return "2/2";
661
+ if (((a = e == null ? void 0 : e.ftScore) == null ? void 0 : a.homeGoals) < ((p = e == null ? void 0 : e.ftScore) == null ? void 0 : p.awayGoals)) return "2/2";
647
662
  }
648
- }, g.createMarketResultByCriteria = (e, a) => !e.timeline || !e.timeline.length ? null : a === "red_card" ? e.timeline.filter((h) => Number(h.minute) <= 90).some((h) => h.type === "red_card") : e.timeline.filter((h) => Number(h.minute) <= 90).some((h) => h.type.startsWith(a)), g.createPlayersMarketsResults = (e, a, h) => {
663
+ }, g.createMarketResultByCriteria = (e, n) => !e.timeline || !e.timeline.length ? null : n === "red_card" ? e.timeline.filter((h) => Number(h.minute) <= 90).some((h) => h.type === "red_card") : e.timeline.filter((h) => Number(h.minute) <= 90).some((h) => h.type.startsWith(n)), g.createPlayersMarketsResults = (e, n, h) => {
649
664
  if (!e.timeline || !e.timeline.length) return h === "first_goal" ? null : [];
650
665
  if (h === "first_goal") {
651
666
  let r = e.timeline.find((A) => A.type === "goal" || A.type === "penalty_goal" || A.type === "own_goal") || null;
652
667
  if (r) {
653
- let A = a[r.player.id];
668
+ let A = n[r.player.id];
654
669
  return { playerId: r.type === "goal" || r.type === "penalty_goal" ? r.player.id : "OWN_GOAL", playerModel: A };
655
670
  }
656
671
  return null;
657
672
  }
658
- if (h === "yellow_card" || h === "red_card") return g.transformPlayerMarketResult(e.timeline.filter((r) => Number(r.minute) <= 90).filter((r) => r.type === h).map((r) => a[r.player.id]));
659
- let d = /* @__PURE__ */ new Map(), c = h === "one_goal" ? 1 : h === "two_goals" ? 2 : 3, R = [];
673
+ if (h === "yellow_card" || h === "red_card") return g.transformPlayerMarketResult(e.timeline.filter((r) => Number(r.minute) <= 90).filter((r) => r.type === h).map((r) => n[r.player.id]));
674
+ let d = /* @__PURE__ */ new Map(), c = h === "one_goal" ? 1 : h === "two_goals" ? 2 : 3, O = [];
660
675
  return e.timeline.filter((r) => Number(r.minute) <= 90).filter((r) => r.type === "goal" || r.type === "penalty_goal").forEach((r) => {
661
- let A = a[r.player.id];
676
+ let A = n[r.player.id];
662
677
  if (d.has(r.player.id)) {
663
678
  let i = d.get(r.player.id);
664
679
  i.push(A), d.set(r.player.id, i);
665
680
  } else d.set(r.player.id, [A]);
666
681
  }), d.forEach((r) => {
667
- r.length >= c && R.push(r[0]);
668
- }), g.transformPlayerMarketResult(R);
669
- }, g.transformPlayerMarketResult = (e) => e.map((a) => ({ playerId: a.id, playerModel: a }));
670
- Object.keys(new It());
682
+ r.length >= c && O.push(r[0]);
683
+ }), g.transformPlayerMarketResult(O);
684
+ }, g.transformPlayerMarketResult = (e) => e.map((n) => ({ playerId: n.id, playerModel: n }));
685
+ Object.keys(new Lt());
671
686
  (/* @__PURE__ */ new Map()).set("minutesPlayed", "Minutes Played").set("cleanSheets", "Clean Sheets").set("concededGoals", "Goals Conceded").set("saves", "Saves").set("penaltySaved", "Penalties Saved").set("penaltyCommitted", "Penalties Committed").set("yellowCards", "Yellow Cards").set("redCards", "Red Cards").set("assists", "Assists").set("foulsCommitted", "Fouls Committed").set("ownGoals", "Own Goals").set("goals", "Goals").set("tackles", "Tackles").set("shotsOn", "Shots On Target").set("penaltyGoals", "Penalty Goals").set("penaltyWon", "Penalty Won").set("penaltyMissed", "Penalty Missed").set("penaltySaved", "Penalty Saved").set("penaltyReceived", "Penalty Received").set("shots", "Shots").set("shotsBlocked", "Shots Blocked").set("offsides", "Offsides").set("foulsWon", "Fouls Won").set("tacklesBlocks", "Tackles Blocks").set("tacklesInterceptions", "Tackles Interceptions").set("caughtBall", "Caught Ball").set("passes", "Passes").set("crosses", "Crosses").set("interceptions", "Interceptions").set("keyPasses", "Key Passes").set("passesAccuracy", "Passes Accuracy").set("duels", "Duels").set("duelsWon", "Duels Won").set("dribblesAttempts", "Dribbles Attempts").set("dribblesSuccess", "Dribbles Success").set("dribblesPast", "Dribbles Past");
672
687
  export {
673
- Ht as E,
674
- Tt as a,
675
- gt as b,
676
- Jt as c,
677
- Dt as d,
678
- St as e,
679
- Xt as l,
680
- Ut as m,
681
- Qt as n,
682
- ct as o,
683
- qt as p,
684
- zt as r,
685
- Kt as s,
686
- Nt as u,
688
+ Ut as E,
689
+ yt as a,
690
+ Q as b,
691
+ $t as c,
692
+ q as d,
693
+ X as e,
694
+ zt as l,
695
+ jt as m,
696
+ Zt as n,
697
+ pt as o,
698
+ Jt as p,
699
+ Qt as r,
700
+ Xt as s,
701
+ z as u,
687
702
  Wt as v,
688
703
  Bt as x,
689
- jt as z
704
+ qt as y,
705
+ Kt as z
690
706
  };