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.
- package/Betslip.d.ts +5 -0
- package/Betslip.d.ts.map +1 -0
- package/Betslip.js +5 -0
- package/ChanceGame.js +87 -86
- package/ClassicQuizPlay.js +174 -173
- package/CollectLead.js +33 -32
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +171 -170
- package/EventGamePlay.js +25 -24
- package/Leaderboard.js +88 -87
- package/MatchQuizPlay.js +28 -27
- package/PersonalityQuizPlay.js +21 -20
- package/PickThePair.js +87 -86
- package/PollVote.js +19 -18
- package/Predictor.js +4756 -4693
- package/README.md +523 -1
- package/chunks/{AlertMessage-Ds45MBHB.js → AlertMessage-CQ9WJHSb.js} +25 -24
- package/chunks/{ArrowRightAlt-DKADQN2o.js → ArrowRightAlt-C1U8SNu-.js} +5 -5
- package/chunks/{Avatar-K1EWhhkA.js → Avatar-COVJnfGS.js} +79 -78
- package/chunks/Button-COvmPv4P.js +2270 -0
- package/chunks/{ChanceGameEmbedVariant-DqFg4YKU.js → ChanceGameEmbedVariant-lfZlSATv.js} +44 -43
- package/chunks/{CheckCircle-CV9iMpkZ.js → CheckCircle-h7-xLUq-.js} +27 -26
- package/chunks/{Close-C6Cw96SJ.js → Close-BTC6xyyj.js} +1 -1
- package/chunks/{Close-BHp4N1-6.js → Close-DBaorsP1.js} +1 -1
- package/chunks/{CollectLeadForm-DnLKA8qz.js → CollectLeadForm-O7Cpe0ix.js} +128 -127
- package/chunks/{Divider-BvUimRFw.js → Divider-DBCeQt9x.js} +15 -14
- package/chunks/{Edit-CZ3ni-Ur.js → Edit-BwwxJdNv.js} +35 -34
- package/chunks/{EmojiEvents-DpmLq98V.js → EmojiEvents-DVPGlTU_.js} +3 -3
- package/chunks/{FavoriteBorder-DUK_DrY4.js → FavoriteBorder-BnhfbKy1.js} +1 -1
- package/chunks/{FormControl-BUItlVIg.js → FormControl-COjw1gQd.js} +38 -37
- package/chunks/{FormLabel-CeTNPUn7.js → FormLabel-e5_v5cjP.js} +18 -17
- package/chunks/{Input-MJCQcYzo.js → Input-er-Yyqtt.js} +17 -16
- package/chunks/{KeyboardArrowDown-SZpn2GhJ.js → KeyboardArrowDown-BeaYH92n.js} +1 -1
- package/chunks/{ModalDialog-Cfgv9UAA.js → ModalDialog-XkhZtgYm.js} +58 -57
- package/chunks/{NotFoundSkeleton-Cs6DtD9u.js → NotFoundSkeleton-C71TRYl5.js} +95 -94
- package/chunks/{Notification-pcKtlRms.js → Notification-CkPupg9q.js} +57 -56
- package/chunks/{OverlayApiErrorSkeleton-Dl3s5Oaf.js → OverlayApiErrorSkeleton-CkuDu9uV.js} +20 -19
- package/chunks/{OverlayLeadAfterCollection-F2TAV9wK.js → OverlayLeadAfterCollection-Dkxl4cKn.js} +28 -27
- package/chunks/{OverlayScoreStateSkeleton-LQ0svzeX.js → OverlayScoreStateSkeleton-RauDjIg5.js} +16 -15
- package/chunks/{Person-BGdniS_p.js → Person-WCt2MN5j.js} +32 -31
- package/chunks/{PickOneOfX-Ci4ZJf7G.js → PickOneOfX-DabfTR2W.js} +8 -7
- package/chunks/{Popper-DOVSI4rJ.js → Popper-OPgbZzY7.js} +127 -126
- package/chunks/{Portal-Cs0dgwmH.js → Portal-BQilulgu.js} +5 -5
- package/chunks/{PrizeCard-DF3QxwQJ.js → PrizeCard-DgHyperX.js} +5238 -6653
- package/chunks/{Select-BHeTdOYr.js → Select-9gmhEo71.js} +133 -132
- package/chunks/{Spinner-DbUB64Gj.js → Spinner-BoysVPn7.js} +12 -11
- package/chunks/{SplitLeadAfterCollection-DSw6X5fx.js → SplitLeadAfterCollection-C5oCDYT1.js} +15 -14
- package/chunks/{Stack-BpHk5eb0.js → Stack-INH9bhkC.js} +30 -29
- package/chunks/{StandardContentSkeleton-Bae1LLQ_.js → StandardContentSkeleton-DsAhzMfU.js} +1 -1
- package/chunks/{Tabs-hwJ7jsUl.js → Tabs-DaVatjCJ.js} +60 -59
- package/chunks/{Textarea-zOtMdgc5.js → Textarea-DeMxp3Zn.js} +48 -47
- package/chunks/{TimerOutlined-DWE7f0YX.js → TimerOutlined-DJh2vL3s.js} +3 -3
- package/chunks/{helpers-NuC1SzL3.js → helpers-Bd9FT9hj.js} +1 -1
- package/chunks/{index-D1K1OB4p.js → index-5MPtbA_r.js} +255 -239
- package/chunks/index-BjfKDjAM.js +4 -0
- package/chunks/main-DDb9jezz.js +1758 -0
- package/chunks/{main-hB01WcoP.js → main-DWw1vqVY.js} +38 -37
- package/chunks/{useEventCallback-CizlfWBo.js → useEventCallback-vbTEFVPa.js} +8 -7
- package/chunks/{useForwardedInput-RWDntqBU.js → useForwardedInput-DumYVfgj.js} +26 -25
- package/chunks/{useImageVariant-Cex1eIqq.js → useImageVariant-B1ObJh_B.js} +1 -1
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +5 -3
- package/package.json +5 -1
- package/chunks/index-BaypiKlO.js +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
for (var
|
|
3
|
-
},
|
|
4
|
-
if (e && typeof e == "object" || typeof e == "function") for (let d of
|
|
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
|
-
},
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
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
|
|
27
|
+
var O;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
O = Promise;
|
|
30
30
|
} catch {
|
|
31
|
-
|
|
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
|
|
41
|
+
var a, p;
|
|
42
42
|
if (typeof s != "object") return s;
|
|
43
|
-
if (h(s, d))
|
|
44
|
-
else if (h(s, c))
|
|
45
|
-
else if (h(s,
|
|
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))
|
|
53
|
-
else if (r.__isRegExp(s))
|
|
54
|
-
else if (r.__isDate(s))
|
|
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 ?
|
|
57
|
-
h(s, Error) ?
|
|
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
|
|
61
|
-
if (
|
|
62
|
-
N.push(s), D.push(
|
|
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
|
-
|
|
66
|
+
a.set(w, H);
|
|
67
67
|
}), h(s, c) && s.forEach(function(M) {
|
|
68
68
|
var G = C(M, o - 1);
|
|
69
|
-
|
|
69
|
+
a.add(G);
|
|
70
70
|
});
|
|
71
|
-
for (var
|
|
71
|
+
for (var T in s) {
|
|
72
72
|
var I;
|
|
73
|
-
|
|
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),
|
|
76
|
-
var P = L[
|
|
77
|
-
b && !b.enumerable && !S || (
|
|
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),
|
|
80
|
-
var F = x[
|
|
81
|
-
b && b.enumerable || (
|
|
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
|
|
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
|
|
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 =
|
|
113
|
+
return r.__getRegExpFlags = f, r;
|
|
114
114
|
}();
|
|
115
|
-
typeof e == "object" && e.exports && (e.exports =
|
|
116
|
-
}),
|
|
117
|
-
var
|
|
118
|
-
return Function.prototype.apply.call(s, o,
|
|
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
|
-
|
|
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
|
|
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 ||
|
|
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 ||
|
|
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 = [],
|
|
157
|
-
var
|
|
158
|
-
if (
|
|
159
|
-
else if (!
|
|
160
|
-
if (
|
|
161
|
-
var
|
|
162
|
-
if (o.length > 0 && (
|
|
163
|
-
var I = new Error("Unhandled error." + (
|
|
164
|
-
throw I.context =
|
|
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 =
|
|
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),
|
|
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,
|
|
173
|
-
var
|
|
174
|
-
if (i(
|
|
175
|
-
else if (typeof I == "function" ? I =
|
|
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
|
|
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,
|
|
191
|
-
var
|
|
192
|
-
return
|
|
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
|
|
200
|
-
if (i(o),
|
|
201
|
-
if (
|
|
202
|
-
if (
|
|
203
|
-
else if (typeof
|
|
204
|
-
for (
|
|
205
|
-
I =
|
|
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 (
|
|
209
|
-
|
|
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,
|
|
214
|
-
if (
|
|
215
|
-
if (
|
|
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
|
|
218
|
-
for (
|
|
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 =
|
|
222
|
-
else if (o !== void 0) for (
|
|
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,
|
|
226
|
-
var
|
|
227
|
-
if (
|
|
228
|
-
var
|
|
229
|
-
return
|
|
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
|
|
242
|
-
if (typeof
|
|
243
|
-
if (
|
|
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
|
|
252
|
-
return
|
|
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),
|
|
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(
|
|
264
|
-
function
|
|
265
|
-
s.removeListener(o,
|
|
263
|
+
return new Promise(function(a, p) {
|
|
264
|
+
function R(I) {
|
|
265
|
+
s.removeListener(o, T), p(I);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
typeof s.removeListener == "function" && s.removeListener("error",
|
|
267
|
+
function T() {
|
|
268
|
+
typeof s.removeListener == "function" && s.removeListener("error", R), a([].slice.call(arguments));
|
|
269
269
|
}
|
|
270
|
-
C(s, o,
|
|
270
|
+
C(s, o, T, { once: !0 }), o !== "error" && V(s, R, { once: !0 });
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function V(s, o,
|
|
274
|
-
typeof s.on == "function" && C(s, "error", o,
|
|
273
|
+
function V(s, o, a) {
|
|
274
|
+
typeof s.on == "function" && C(s, "error", o, a);
|
|
275
275
|
}
|
|
276
|
-
function C(s, o,
|
|
277
|
-
if (typeof s.on == "function")
|
|
278
|
-
else if (typeof s.addEventListener == "function") s.addEventListener(o, function T
|
|
279
|
-
|
|
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
|
-
}),
|
|
283
|
+
}), ht = U((t, e) => {
|
|
284
284
|
(function() {
|
|
285
|
-
var
|
|
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
|
-
},
|
|
288
|
-
h =
|
|
289
|
-
class r extends
|
|
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(...
|
|
293
|
+
_ = this[l], this[l] = function(...f) {
|
|
294
294
|
var u, E, y, v;
|
|
295
|
-
if (y =
|
|
296
|
-
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 _(...
|
|
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, _,
|
|
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 = {},
|
|
314
|
-
if (u = i[
|
|
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
|
|
321
|
-
if (c(this, r), this.options.maxKeys > -1 && this.stats.keys >= this.options.maxKeys) throw
|
|
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, _,
|
|
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 (
|
|
329
|
-
if (y = i[
|
|
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, _,
|
|
337
|
-
for (c(this, r), Array.isArray(i) || (i = [i]), l = 0,
|
|
338
|
-
if (u = i[
|
|
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, _,
|
|
381
|
+
var l, _, f;
|
|
382
382
|
c(this, r), _ = this.data;
|
|
383
|
-
for (l in _)
|
|
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,
|
|
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
|
|
399
|
-
return c(this, r), this.options.useClones || (_ = !1), u = Date.now(),
|
|
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
|
-
}),
|
|
428
|
+
}), ut = U((t, e) => {
|
|
429
429
|
(function() {
|
|
430
|
-
var
|
|
431
|
-
|
|
430
|
+
var n;
|
|
431
|
+
n = e.exports = ht(), n.version = "5.1.2";
|
|
432
432
|
}).call(t);
|
|
433
|
-
}),
|
|
434
|
-
function
|
|
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
|
-
|
|
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
|
|
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
|
|
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 (
|
|
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
|
|
452
|
-
return c && `${c[
|
|
451
|
+
let O = k[this.idSchema];
|
|
452
|
+
return c && `${c[O]}` === h && c.resource === n;
|
|
453
453
|
}) : null;
|
|
454
|
-
}, this.getEntity = async (
|
|
454
|
+
}, this.getEntity = async (n, h, d) => {
|
|
455
455
|
let c = m.nodeCache.get("ids");
|
|
456
|
-
return c ? Array.isArray(
|
|
456
|
+
return c ? Array.isArray(n) ? [] : null : Array.isArray(n) ? c.filter((O) => {
|
|
457
457
|
let r = k[d];
|
|
458
|
-
return
|
|
459
|
-
}) : c.find((
|
|
458
|
+
return O && n.includes(`${O[r]}`) && O.resource === h;
|
|
459
|
+
}) : c.find((O) => {
|
|
460
460
|
let r = k[d];
|
|
461
|
-
return
|
|
461
|
+
return O && `${O[r]}` === n && O.resource === h;
|
|
462
462
|
});
|
|
463
|
-
}, this.checkForExistingIdObjs = async (
|
|
463
|
+
}, this.checkForExistingIdObjs = async (n, h) => {
|
|
464
464
|
let d = k[h], c = {};
|
|
465
|
-
for (let
|
|
466
|
-
let r =
|
|
467
|
-
c[
|
|
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 (
|
|
471
|
-
let c = k[d],
|
|
472
|
-
return r ? (Object.keys(
|
|
473
|
-
let l =
|
|
474
|
-
r.forEach((
|
|
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 ===
|
|
476
|
+
u === f[O] && i === f.resource && (_[E] = f[c]);
|
|
477
477
|
});
|
|
478
478
|
}), A[i] = _;
|
|
479
479
|
}), A) : null;
|
|
480
|
-
}, this.addIdMapping = async (
|
|
480
|
+
}, this.addIdMapping = async (n) => {
|
|
481
481
|
let h = m.nodeCache.get("ids");
|
|
482
|
-
h.push(
|
|
483
|
-
}, this.addIdMappings = async (
|
|
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, ...
|
|
486
|
-
}, this.addTopIdMappings = async (
|
|
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((
|
|
491
|
-
} else m.nodeCache.set("ids",
|
|
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 (
|
|
494
|
-
m.nodeCache.set("profile",
|
|
495
|
-
}, this.getOwnProfile = async () => m.nodeCache.get("profile"), this.getProfileCountries = async () => m.nodeCache.get("profile_countries"), this.setProfileCountries = async (
|
|
496
|
-
m.nodeCache.set("profile_countries",
|
|
497
|
-
}, this.getProfileStats = async () => m.nodeCache.get("profile_stats"), this.setProfileStats = async (
|
|
498
|
-
m.nodeCache.set("profile_stats",
|
|
499
|
-
}, this.getProfileBadges = async () => m.nodeCache.get("profile_badges"), this.setProfileBadges = async (
|
|
500
|
-
m.nodeCache.set("profile_badges",
|
|
501
|
-
}, this.getFootballCountries = async () => m.nodeCache.get("football_countries"), this.setFootballCountries = async (
|
|
502
|
-
m.nodeCache.set("football_countries",
|
|
503
|
-
}, this.getCompetitions = async (
|
|
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 ?
|
|
506
|
-
}, this.setCompetitions = async (
|
|
507
|
-
m.nodeCache.set("football_competitions",
|
|
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
|
|
510
|
-
return
|
|
511
|
-
}, this.getClientFeatures = async () => m.nodeCache.get("client"), this.setClientFeatures = async (
|
|
512
|
-
m.nodeCache.set("client",
|
|
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 (
|
|
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 = (
|
|
519
|
-
switch (
|
|
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
|
|
537
|
-
var
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
553
|
+
}, St = class {
|
|
554
554
|
constructor() {
|
|
555
555
|
this.timeTiebreaker = !1;
|
|
556
556
|
}
|
|
557
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
573
|
+
}, Kt = class extends Dt {
|
|
574
574
|
constructor() {
|
|
575
575
|
super(...arguments), this.rules = "";
|
|
576
576
|
}
|
|
577
|
-
},
|
|
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
|
-
},
|
|
581
|
+
}, Xt = class extends gt {
|
|
582
582
|
constructor() {
|
|
583
583
|
super(...arguments), this.rules = null, this.questions = [], this.personaResults = [];
|
|
584
584
|
}
|
|
585
|
-
},
|
|
585
|
+
}, zt = class {
|
|
586
586
|
constructor() {
|
|
587
587
|
this.personalityQuizId = null, this.userId = null, this.questions = [], this.personas = [], this.attempts = null;
|
|
588
588
|
}
|
|
589
|
-
},
|
|
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
|
-
},
|
|
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
|
|
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
|
-
},
|
|
612
|
+
}, Jt = class extends Vt {
|
|
598
613
|
constructor() {
|
|
599
614
|
super(...arguments), this.adContent = null;
|
|
600
615
|
}
|
|
601
|
-
},
|
|
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
|
-
},
|
|
620
|
+
}, Zt = class extends Mt {
|
|
606
621
|
constructor() {
|
|
607
622
|
super(...arguments), this.rules = null;
|
|
608
623
|
}
|
|
609
|
-
},
|
|
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
|
-
},
|
|
628
|
+
}, $t = class extends Gt {
|
|
614
629
|
constructor() {
|
|
615
630
|
super(...arguments), this.previousVotes = [], this.attempts = null;
|
|
616
631
|
}
|
|
617
|
-
},
|
|
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,
|
|
622
|
-
var h, d, c,
|
|
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) + ((
|
|
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,
|
|
626
|
-
var h, d, c,
|
|
627
|
-
return
|
|
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
|
|
630
|
-
return ((
|
|
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
|
|
633
|
-
if (((
|
|
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 (((
|
|
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 (((
|
|
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 (((
|
|
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,
|
|
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 =
|
|
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) =>
|
|
659
|
-
let d = /* @__PURE__ */ new Map(), c = h === "one_goal" ? 1 : h === "two_goals" ? 2 : 3,
|
|
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 =
|
|
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 &&
|
|
668
|
-
}), g.transformPlayerMarketResult(
|
|
669
|
-
}, g.transformPlayerMarketResult = (e) => e.map((
|
|
670
|
-
Object.keys(new
|
|
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
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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
|
-
|
|
704
|
+
qt as y,
|
|
705
|
+
Kt as z
|
|
690
706
|
};
|