fansunited-data-layer 0.0.6 → 0.0.8
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/README.md +44 -0
- package/dist/client.cjs +6 -0
- package/dist/client.d.ts +20 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +392 -0
- package/dist/fansunited-data-layer.cjs +1 -0
- package/dist/fansunited-data-layer.js +467 -855
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +8 -3
- package/dist/fansunited-data-layer.umd.cjs +0 -6
|
@@ -1,70 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
z = e;
|
|
1
|
+
let p = null;
|
|
2
|
+
function Z(t) {
|
|
3
|
+
p = t;
|
|
5
4
|
}
|
|
6
|
-
function
|
|
7
|
-
if (!
|
|
5
|
+
function i() {
|
|
6
|
+
if (!p)
|
|
8
7
|
throw new Error(
|
|
9
8
|
"Data layer config not initialized. Call setConfig() in your root layout."
|
|
10
9
|
);
|
|
11
|
-
return
|
|
10
|
+
return p;
|
|
12
11
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
12
|
+
function w() {
|
|
13
|
+
return p !== null;
|
|
15
14
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
const { sportal365Sports:
|
|
20
|
-
if (!
|
|
15
|
+
function A(t) {
|
|
16
|
+
const e = t.replace(/\/$/, "");
|
|
17
|
+
function o() {
|
|
18
|
+
const { sportal365Sports: s } = i();
|
|
19
|
+
if (!s)
|
|
21
20
|
throw new Error("Sportal365 Sports API configuration is missing");
|
|
22
|
-
const
|
|
23
|
-
return `Basic ${btoa(
|
|
21
|
+
const a = `${s.username}:${s.password}`;
|
|
22
|
+
return `Basic ${btoa(a)}`;
|
|
24
23
|
}
|
|
25
|
-
function
|
|
26
|
-
return `${
|
|
24
|
+
function n(s) {
|
|
25
|
+
return `${e}${s}`;
|
|
27
26
|
}
|
|
28
27
|
return {
|
|
29
|
-
async get(
|
|
30
|
-
const { sportal365Sports:
|
|
31
|
-
if (!
|
|
28
|
+
async get(s) {
|
|
29
|
+
const { sportal365Sports: a } = i();
|
|
30
|
+
if (!a)
|
|
32
31
|
throw new Error("Sportal365 Sports API configuration is missing");
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
-
for (const [
|
|
36
|
-
|
|
37
|
-
const
|
|
32
|
+
const d = new URL(n(s.path));
|
|
33
|
+
if (s.params)
|
|
34
|
+
for (const [l, m] of Object.entries(s.params))
|
|
35
|
+
m !== void 0 && (Array.isArray(m) ? m.length > 0 && d.searchParams.set(l, m.join(",")) : d.searchParams.set(l, m));
|
|
36
|
+
const c = await fetch(d.toString(), {
|
|
38
37
|
method: "GET",
|
|
39
38
|
headers: {
|
|
40
|
-
Authorization:
|
|
39
|
+
Authorization: o(),
|
|
41
40
|
"Content-Type": "application/json",
|
|
42
|
-
"X-Project":
|
|
41
|
+
"X-Project": a.projectId
|
|
43
42
|
},
|
|
44
|
-
signal:
|
|
43
|
+
signal: a.timeout ? AbortSignal.timeout(a.timeout) : void 0
|
|
45
44
|
});
|
|
46
|
-
if (!
|
|
47
|
-
throw new Error(`Sportal365 API error: ${
|
|
48
|
-
return
|
|
45
|
+
if (!c.ok)
|
|
46
|
+
throw new Error(`Sportal365 API error: ${c.status} ${c.statusText}`);
|
|
47
|
+
return c.json();
|
|
49
48
|
}
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
|
-
const
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
51
|
+
const O = "https://football.api.sportal365.com", v = "https://standing.api.sportal365.com", u = A(O);
|
|
52
|
+
function f(t) {
|
|
53
|
+
if (t)
|
|
55
54
|
return {
|
|
56
|
-
id:
|
|
57
|
-
name:
|
|
58
|
-
slug:
|
|
59
|
-
position:
|
|
60
|
-
gender:
|
|
61
|
-
assets:
|
|
62
|
-
photo:
|
|
63
|
-
photoTransparent:
|
|
55
|
+
id: t.id,
|
|
56
|
+
name: t.name,
|
|
57
|
+
slug: t.slug,
|
|
58
|
+
position: t.position,
|
|
59
|
+
gender: t.gender,
|
|
60
|
+
assets: t.assets ? {
|
|
61
|
+
photo: t.assets.thumb?.url,
|
|
62
|
+
photoTransparent: t.assets.thumb_transparent_background?.url
|
|
64
63
|
} : void 0
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
|
-
const
|
|
66
|
+
const L = {
|
|
68
67
|
// Scoring events
|
|
69
68
|
GOAL: "GOAL",
|
|
70
69
|
PENALTY_GOAL: "PENALTY_GOAL",
|
|
@@ -89,20 +88,20 @@ const Se = {
|
|
|
89
88
|
PENALTY_MISSED: "PENALTY_MISSED",
|
|
90
89
|
PENALTY_SAVED: "PENALTY_SAVED"
|
|
91
90
|
};
|
|
92
|
-
function
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
id:
|
|
96
|
-
type:
|
|
97
|
-
competitorPosition:
|
|
98
|
-
minute:
|
|
99
|
-
injuryMinute:
|
|
100
|
-
primaryPlayer:
|
|
101
|
-
secondaryPlayer:
|
|
102
|
-
score:
|
|
103
|
-
} : (console.warn(`Unknown event type: ${
|
|
104
|
-
}
|
|
105
|
-
function
|
|
91
|
+
function g(t) {
|
|
92
|
+
const e = L[t.type_code];
|
|
93
|
+
return e ? {
|
|
94
|
+
id: t.id,
|
|
95
|
+
type: e,
|
|
96
|
+
competitorPosition: t.team_position === "HOME" ? "ONE" : "TWO",
|
|
97
|
+
minute: t.minute,
|
|
98
|
+
injuryMinute: t.injury_minute,
|
|
99
|
+
primaryPlayer: f(t.primary_player),
|
|
100
|
+
secondaryPlayer: f(t.secondary_player),
|
|
101
|
+
score: t.score ? { competitorOne: String(t.score.home), competitorTwo: String(t.score.away) } : void 0
|
|
102
|
+
} : (console.warn(`Unknown event type: ${t.type_code}`), null);
|
|
103
|
+
}
|
|
104
|
+
function k(t) {
|
|
106
105
|
return {
|
|
107
106
|
code: {
|
|
108
107
|
FINISHED: "finished",
|
|
@@ -113,486 +112,486 @@ function ke(e) {
|
|
|
113
112
|
POSTPONED: "postponed",
|
|
114
113
|
UNKNOWN: "not_started",
|
|
115
114
|
ABANDONED: "abandoned"
|
|
116
|
-
}[
|
|
117
|
-
name:
|
|
118
|
-
shortName:
|
|
119
|
-
type:
|
|
115
|
+
}[t.type] ?? "not_started",
|
|
116
|
+
name: t.name,
|
|
117
|
+
shortName: t.short_name,
|
|
118
|
+
type: t.type
|
|
120
119
|
};
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function y(t) {
|
|
123
122
|
return {
|
|
124
|
-
id:
|
|
125
|
-
name:
|
|
126
|
-
shortName:
|
|
127
|
-
threeLetterCode:
|
|
128
|
-
slug:
|
|
129
|
-
type:
|
|
130
|
-
gender:
|
|
131
|
-
assets:
|
|
132
|
-
logo:
|
|
133
|
-
homeKit:
|
|
134
|
-
awayKit:
|
|
135
|
-
squadImage:
|
|
123
|
+
id: t.id,
|
|
124
|
+
name: t.name,
|
|
125
|
+
shortName: t.short_name ?? void 0,
|
|
126
|
+
threeLetterCode: t.three_letter_code,
|
|
127
|
+
slug: t.slug,
|
|
128
|
+
type: t.type ?? "club",
|
|
129
|
+
gender: t.gender,
|
|
130
|
+
assets: t.assets ? {
|
|
131
|
+
logo: t.assets.logo?.url,
|
|
132
|
+
homeKit: t.assets.home_kit?.url,
|
|
133
|
+
awayKit: t.assets.away_kit?.url,
|
|
134
|
+
squadImage: t.assets.squad_image?.url
|
|
136
135
|
} : void 0,
|
|
137
|
-
metadata:
|
|
136
|
+
metadata: t.shirt_color ? { shirtColor: t.shirt_color } : void 0
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
|
-
function
|
|
139
|
+
function I(t) {
|
|
141
140
|
return {
|
|
142
|
-
kickoffTime: new Date(
|
|
143
|
-
currentMinute:
|
|
144
|
-
phaseStartedAt:
|
|
145
|
-
finishedAt:
|
|
146
|
-
firstHalfStartedAt:
|
|
147
|
-
secondHalfStartedAt:
|
|
148
|
-
extraTimeFirstHalfStartedAt:
|
|
149
|
-
extraTimeSecondHalfStartedAt:
|
|
141
|
+
kickoffTime: new Date(t.kickoff_time),
|
|
142
|
+
currentMinute: t.minute?.regular_time,
|
|
143
|
+
phaseStartedAt: t.phase_started_at ? new Date(t.phase_started_at) : void 0,
|
|
144
|
+
finishedAt: t.finished_at ? new Date(t.finished_at) : void 0,
|
|
145
|
+
firstHalfStartedAt: t.first_half_started_at ? new Date(t.first_half_started_at) : void 0,
|
|
146
|
+
secondHalfStartedAt: t.second_half_started_at ? new Date(t.second_half_started_at) : void 0,
|
|
147
|
+
extraTimeFirstHalfStartedAt: t.extra_time_first_half_started_at ? new Date(t.extra_time_first_half_started_at) : void 0,
|
|
148
|
+
extraTimeSecondHalfStartedAt: t.extra_time_second_half_started_at ? new Date(t.extra_time_second_half_started_at) : void 0
|
|
150
149
|
};
|
|
151
150
|
}
|
|
152
|
-
function
|
|
153
|
-
if (!
|
|
154
|
-
const
|
|
151
|
+
function C(t) {
|
|
152
|
+
if (!t) return;
|
|
153
|
+
const e = (n) => n ? { competitorOne: String(n.home), competitorTwo: String(n.away) } : void 0, o = t.total ?? t.regular_time;
|
|
155
154
|
return {
|
|
156
|
-
competitorOne:
|
|
157
|
-
competitorTwo:
|
|
155
|
+
competitorOne: o?.home != null ? String(o.home) : null,
|
|
156
|
+
competitorTwo: o?.away != null ? String(o.away) : null,
|
|
158
157
|
breakdown: {
|
|
159
|
-
total: t
|
|
160
|
-
halfTime: t
|
|
161
|
-
regularTime: t
|
|
162
|
-
extraTime: t
|
|
163
|
-
penaltyShootout: t
|
|
164
|
-
aggregate: t
|
|
158
|
+
total: e(t.total),
|
|
159
|
+
halfTime: e(t.half_time),
|
|
160
|
+
regularTime: e(t.regular_time),
|
|
161
|
+
extraTime: e(t.extra_time),
|
|
162
|
+
penaltyShootout: e(t.penalty_shootout),
|
|
163
|
+
aggregate: e(t.aggregate)
|
|
165
164
|
}
|
|
166
165
|
};
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
167
|
+
function N(t) {
|
|
168
|
+
if (t)
|
|
170
169
|
return {
|
|
171
|
-
id: e.id,
|
|
172
|
-
name: e.name,
|
|
173
|
-
slug: e.slug,
|
|
174
|
-
assets: e.assets?.image?.url ? { image: e.assets.image.url } : void 0
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
function Re(e) {
|
|
178
|
-
if (e?.length)
|
|
179
|
-
return e.map((t) => ({
|
|
180
170
|
id: t.id,
|
|
181
171
|
name: t.name,
|
|
182
172
|
slug: t.slug,
|
|
183
|
-
|
|
184
|
-
|
|
173
|
+
assets: t.assets?.image?.url ? { image: t.assets.image.url } : void 0
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function b(t) {
|
|
177
|
+
if (t?.length)
|
|
178
|
+
return t.map((e) => ({
|
|
179
|
+
id: e.id,
|
|
180
|
+
name: e.name,
|
|
181
|
+
slug: e.slug,
|
|
182
|
+
role: e.role ?? "REFEREE",
|
|
183
|
+
gender: e.gender
|
|
185
184
|
}));
|
|
186
185
|
}
|
|
187
|
-
function
|
|
188
|
-
if (!
|
|
189
|
-
const { tournament:
|
|
186
|
+
function D(t) {
|
|
187
|
+
if (!t.season?.tournament) return;
|
|
188
|
+
const { tournament: e, ...o } = t.season;
|
|
190
189
|
return {
|
|
191
|
-
id:
|
|
192
|
-
name:
|
|
193
|
-
slug:
|
|
194
|
-
type:
|
|
195
|
-
region:
|
|
196
|
-
country:
|
|
197
|
-
id:
|
|
198
|
-
name:
|
|
199
|
-
code:
|
|
200
|
-
flag:
|
|
190
|
+
id: e.id,
|
|
191
|
+
name: e.name,
|
|
192
|
+
slug: e.slug,
|
|
193
|
+
type: e.type,
|
|
194
|
+
region: e.region,
|
|
195
|
+
country: e.country ? {
|
|
196
|
+
id: e.country.id,
|
|
197
|
+
name: e.country.name,
|
|
198
|
+
code: e.country.code ?? void 0,
|
|
199
|
+
flag: e.country.assets?.flag?.url
|
|
201
200
|
} : void 0,
|
|
202
201
|
season: {
|
|
203
|
-
id:
|
|
204
|
-
name:
|
|
205
|
-
status:
|
|
202
|
+
id: o.id,
|
|
203
|
+
name: o.name,
|
|
204
|
+
status: o.status
|
|
206
205
|
},
|
|
207
|
-
stage:
|
|
208
|
-
id:
|
|
209
|
-
name:
|
|
210
|
-
type:
|
|
206
|
+
stage: t.stage ? {
|
|
207
|
+
id: t.stage.id,
|
|
208
|
+
name: t.stage.name,
|
|
209
|
+
type: t.stage.type
|
|
211
210
|
} : void 0,
|
|
212
|
-
assets:
|
|
211
|
+
assets: e.assets?.logo?.url ? { logo: e.assets.logo.url } : void 0
|
|
213
212
|
};
|
|
214
213
|
}
|
|
215
|
-
function
|
|
216
|
-
if (!
|
|
217
|
-
const
|
|
214
|
+
function P(t) {
|
|
215
|
+
if (!t.winner?.match?.id) return;
|
|
216
|
+
const e = {
|
|
218
217
|
"Regular Time": "REGULAR_TIME",
|
|
219
218
|
"Extra Time": "EXTRA_TIME",
|
|
220
219
|
Penalties: "PENALTIES"
|
|
221
220
|
};
|
|
222
221
|
return {
|
|
223
|
-
competitorId:
|
|
224
|
-
reason:
|
|
225
|
-
aggregate: !!
|
|
222
|
+
competitorId: t.winner.match.id,
|
|
223
|
+
reason: t.winner.match.reason?.name ? e[t.winner.match.reason.name] : void 0,
|
|
224
|
+
aggregate: !!t.winner.aggregate
|
|
226
225
|
};
|
|
227
226
|
}
|
|
228
|
-
function
|
|
227
|
+
function S(t) {
|
|
229
228
|
return {
|
|
230
|
-
id:
|
|
231
|
-
slug:
|
|
232
|
-
status:
|
|
233
|
-
timing:
|
|
234
|
-
competitorOne:
|
|
235
|
-
competitorTwo:
|
|
236
|
-
competition:
|
|
237
|
-
round:
|
|
238
|
-
id:
|
|
239
|
-
key:
|
|
240
|
-
name:
|
|
241
|
-
type:
|
|
229
|
+
id: t.id,
|
|
230
|
+
slug: t.slug,
|
|
231
|
+
status: k(t.status),
|
|
232
|
+
timing: I(t),
|
|
233
|
+
competitorOne: y(t.home_team),
|
|
234
|
+
competitorTwo: y(t.away_team),
|
|
235
|
+
competition: D(t),
|
|
236
|
+
round: t.round ? {
|
|
237
|
+
id: t.round.id ?? t.round.key,
|
|
238
|
+
key: t.round.key,
|
|
239
|
+
name: t.round.name,
|
|
240
|
+
type: t.round.type ?? "REGULAR"
|
|
242
241
|
} : void 0,
|
|
243
|
-
group:
|
|
244
|
-
id:
|
|
245
|
-
name:
|
|
242
|
+
group: t.group ? {
|
|
243
|
+
id: t.group.id,
|
|
244
|
+
name: t.group.name
|
|
246
245
|
} : void 0,
|
|
247
|
-
venue:
|
|
248
|
-
officials:
|
|
249
|
-
spectators:
|
|
250
|
-
score:
|
|
251
|
-
mainEvents:
|
|
252
|
-
penaltyShootoutEvents:
|
|
253
|
-
winner:
|
|
254
|
-
coverage:
|
|
255
|
-
lineupStatus:
|
|
246
|
+
venue: N(t.venue),
|
|
247
|
+
officials: b(t.referees),
|
|
248
|
+
spectators: t.spectators ?? void 0,
|
|
249
|
+
score: C(t.score),
|
|
250
|
+
mainEvents: t.main_events?.map(g).filter((e) => e !== null),
|
|
251
|
+
penaltyShootoutEvents: t.penalty_shootout_events?.map(g).filter((e) => e !== null),
|
|
252
|
+
winner: P(t),
|
|
253
|
+
coverage: t.coverage === "NOT_LIVE" ? "UNKNOWN" : t.coverage,
|
|
254
|
+
lineupStatus: t.lineup_status === "UNCONFIRMED" ? "EXPECTED" : t.lineup_status
|
|
256
255
|
};
|
|
257
256
|
}
|
|
258
|
-
function
|
|
259
|
-
const
|
|
257
|
+
function R(t) {
|
|
258
|
+
const e = t.player;
|
|
260
259
|
return {
|
|
261
|
-
id:
|
|
262
|
-
name:
|
|
263
|
-
slug:
|
|
264
|
-
position:
|
|
265
|
-
shirtNumber:
|
|
266
|
-
positionX:
|
|
267
|
-
positionY:
|
|
268
|
-
country:
|
|
269
|
-
id:
|
|
270
|
-
name:
|
|
271
|
-
code:
|
|
260
|
+
id: e.id,
|
|
261
|
+
name: e.name,
|
|
262
|
+
slug: e.slug,
|
|
263
|
+
position: e.position,
|
|
264
|
+
shirtNumber: t.shirt_number,
|
|
265
|
+
positionX: t.position_x ?? void 0,
|
|
266
|
+
positionY: t.position_y ?? void 0,
|
|
267
|
+
country: e.country ? {
|
|
268
|
+
id: e.country.id,
|
|
269
|
+
name: e.country.name,
|
|
270
|
+
code: e.country.code
|
|
272
271
|
} : void 0,
|
|
273
|
-
birthdate:
|
|
274
|
-
profile:
|
|
275
|
-
height:
|
|
276
|
-
weight:
|
|
272
|
+
birthdate: e.birthdate,
|
|
273
|
+
profile: e.profile ? {
|
|
274
|
+
height: e.profile.height,
|
|
275
|
+
weight: e.profile.weight
|
|
277
276
|
} : void 0,
|
|
278
|
-
events:
|
|
277
|
+
events: t.events?.map(g).filter((o) => o !== null)
|
|
279
278
|
};
|
|
280
279
|
}
|
|
281
|
-
function
|
|
282
|
-
const
|
|
283
|
-
for (const
|
|
284
|
-
const
|
|
285
|
-
|
|
280
|
+
function h(t) {
|
|
281
|
+
const e = [], o = [];
|
|
282
|
+
for (const n of t.players) {
|
|
283
|
+
const s = R(n);
|
|
284
|
+
n.type.category === "start" ? e.push(s) : n.type.category === "sub" && o.push(s);
|
|
286
285
|
}
|
|
287
286
|
return {
|
|
288
|
-
competitorId:
|
|
289
|
-
formation:
|
|
290
|
-
coach:
|
|
291
|
-
id:
|
|
292
|
-
name:
|
|
293
|
-
slug:
|
|
294
|
-
country:
|
|
295
|
-
id:
|
|
296
|
-
name:
|
|
297
|
-
code:
|
|
287
|
+
competitorId: t.team_id,
|
|
288
|
+
formation: t.formation,
|
|
289
|
+
coach: t.coach ? {
|
|
290
|
+
id: t.coach.id,
|
|
291
|
+
name: t.coach.name,
|
|
292
|
+
slug: t.coach.slug,
|
|
293
|
+
country: t.coach.country ? {
|
|
294
|
+
id: t.coach.country.id,
|
|
295
|
+
name: t.coach.country.name,
|
|
296
|
+
code: t.coach.country.code
|
|
298
297
|
} : void 0,
|
|
299
|
-
birthdate:
|
|
298
|
+
birthdate: t.coach.birthdate
|
|
300
299
|
} : void 0,
|
|
301
|
-
starters:
|
|
302
|
-
substitutes:
|
|
300
|
+
starters: e,
|
|
301
|
+
substitutes: o
|
|
303
302
|
};
|
|
304
303
|
}
|
|
305
|
-
function
|
|
304
|
+
function F(t) {
|
|
306
305
|
return {
|
|
307
|
-
matchId:
|
|
308
|
-
confirmed:
|
|
309
|
-
competitorOne:
|
|
310
|
-
competitorTwo:
|
|
306
|
+
matchId: t.match_id,
|
|
307
|
+
confirmed: t.status === "CONFIRMED",
|
|
308
|
+
competitorOne: h(t.home_team),
|
|
309
|
+
competitorTwo: h(t.away_team)
|
|
311
310
|
};
|
|
312
311
|
}
|
|
313
|
-
function
|
|
314
|
-
return
|
|
315
|
-
}
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
312
|
+
function r(t, e, o, n) {
|
|
313
|
+
return e == null ? null : { key: t, value: String(e), label: o, unit: n };
|
|
314
|
+
}
|
|
315
|
+
function E(t, e) {
|
|
316
|
+
const o = (e.shots_on ?? 0) + (e.shots_off ?? 0) + (e.shots_blocked ?? 0), n = [
|
|
317
|
+
r("possession", e.possession, "Possession", "%"),
|
|
318
|
+
r("shots_total", o, "Shots"),
|
|
319
|
+
r("shots_on_target", e.shots_on, "Shots on Target"),
|
|
320
|
+
r("shots_off_target", e.shots_off, "Shots off Target"),
|
|
321
|
+
r("shots_blocked", e.shots_blocked, "Shots Blocked"),
|
|
322
|
+
r("corners", e.corners, "Corner Kicks"),
|
|
323
|
+
r("goal_kicks", e.goal_kicks, "Goal Kicks"),
|
|
324
|
+
r("throw_ins", e.throw_in, "Throw Ins"),
|
|
325
|
+
r("offsides", e.offside, "Offsides"),
|
|
326
|
+
r("fouls", e.fouls_committed, "Fouls"),
|
|
327
|
+
r("yellow_cards", e.yellow_cards, "Yellow Cards"),
|
|
328
|
+
r("passes", e.pass, "Passes"),
|
|
329
|
+
r("crosses", e.crosses, "Crosses")
|
|
331
330
|
];
|
|
332
331
|
return {
|
|
333
|
-
competitorId:
|
|
334
|
-
statistics:
|
|
332
|
+
competitorId: t,
|
|
333
|
+
statistics: n.filter((s) => s !== null)
|
|
335
334
|
};
|
|
336
335
|
}
|
|
337
|
-
function
|
|
338
|
-
const
|
|
339
|
-
if (!
|
|
336
|
+
function M(t) {
|
|
337
|
+
const e = t.find((n) => n.home_team), o = t.find((n) => !n.home_team);
|
|
338
|
+
if (!e || !o)
|
|
340
339
|
throw new Error("Missing competitor statistics");
|
|
341
340
|
return {
|
|
342
|
-
competitorOne:
|
|
343
|
-
competitorTwo:
|
|
341
|
+
competitorOne: E(String(e.team.id), e.statistics),
|
|
342
|
+
competitorTwo: E(String(o.team.id), o.statistics)
|
|
344
343
|
};
|
|
345
344
|
}
|
|
346
|
-
function
|
|
347
|
-
const
|
|
345
|
+
function U(t) {
|
|
346
|
+
const e = t.urls?.find((o) => o.app_type === "desktop")?.url;
|
|
348
347
|
return {
|
|
349
|
-
id:
|
|
350
|
-
name:
|
|
351
|
-
code:
|
|
352
|
-
value:
|
|
353
|
-
odds:
|
|
354
|
-
oddsOld:
|
|
355
|
-
movement:
|
|
356
|
-
url:
|
|
348
|
+
id: t.id,
|
|
349
|
+
name: t.name,
|
|
350
|
+
code: t.code,
|
|
351
|
+
value: t.value ?? void 0,
|
|
352
|
+
odds: t.odds,
|
|
353
|
+
oddsOld: t.odds_old,
|
|
354
|
+
movement: t.movement === "STABLE" ? "NONE" : t.movement,
|
|
355
|
+
url: e
|
|
357
356
|
};
|
|
358
357
|
}
|
|
359
|
-
function
|
|
358
|
+
function $(t) {
|
|
360
359
|
return {
|
|
361
360
|
type: {
|
|
362
|
-
id:
|
|
363
|
-
code:
|
|
364
|
-
name:
|
|
361
|
+
id: t.type.id,
|
|
362
|
+
code: t.type.code,
|
|
363
|
+
name: t.type.name
|
|
365
364
|
},
|
|
366
365
|
period: {
|
|
367
|
-
id:
|
|
368
|
-
type:
|
|
369
|
-
name:
|
|
366
|
+
id: t.scope.id,
|
|
367
|
+
type: t.scope.type,
|
|
368
|
+
name: t.scope.name
|
|
370
369
|
},
|
|
371
|
-
selections:
|
|
370
|
+
selections: t.selections.map(U)
|
|
372
371
|
};
|
|
373
372
|
}
|
|
374
|
-
function
|
|
373
|
+
function Y(t) {
|
|
375
374
|
return {
|
|
376
375
|
operator: {
|
|
377
|
-
id:
|
|
378
|
-
name:
|
|
379
|
-
url:
|
|
380
|
-
branding:
|
|
381
|
-
backgroundColor:
|
|
382
|
-
textColor:
|
|
383
|
-
logo:
|
|
376
|
+
id: t.bookmaker.id,
|
|
377
|
+
name: t.bookmaker.name,
|
|
378
|
+
url: t.bookmaker.url,
|
|
379
|
+
branding: t.bookmaker.branding ? {
|
|
380
|
+
backgroundColor: t.bookmaker.branding.background_color,
|
|
381
|
+
textColor: t.bookmaker.branding.text_color,
|
|
382
|
+
logo: t.bookmaker.assets?.[0]?.logo
|
|
384
383
|
} : void 0
|
|
385
384
|
},
|
|
386
|
-
type:
|
|
387
|
-
markets:
|
|
385
|
+
type: t.type,
|
|
386
|
+
markets: t.markets.map($)
|
|
388
387
|
};
|
|
389
388
|
}
|
|
390
|
-
function
|
|
389
|
+
function G(t, e) {
|
|
391
390
|
return {
|
|
392
|
-
matchId:
|
|
393
|
-
operators:
|
|
391
|
+
matchId: t,
|
|
392
|
+
operators: e.map(Y)
|
|
394
393
|
};
|
|
395
394
|
}
|
|
396
|
-
function
|
|
397
|
-
if (
|
|
395
|
+
function T(t) {
|
|
396
|
+
if (t == null || t === "")
|
|
398
397
|
return;
|
|
399
|
-
const
|
|
400
|
-
return isNaN(
|
|
398
|
+
const e = typeof t == "number" ? t : parseInt(t, 10);
|
|
399
|
+
return isNaN(e) ? void 0 : e;
|
|
401
400
|
}
|
|
402
|
-
function
|
|
401
|
+
function H(t) {
|
|
403
402
|
return {
|
|
404
|
-
externalId:
|
|
405
|
-
minute:
|
|
406
|
-
addedTime:
|
|
407
|
-
text:
|
|
408
|
-
details:
|
|
403
|
+
externalId: t.external_id,
|
|
404
|
+
minute: T(t.elapsed),
|
|
405
|
+
addedTime: T(t.elapsed_plus),
|
|
406
|
+
text: t.auto_text,
|
|
407
|
+
details: t.details,
|
|
409
408
|
meta: {
|
|
410
|
-
type:
|
|
411
|
-
commentaryType:
|
|
412
|
-
subtype1:
|
|
413
|
-
subtype2:
|
|
414
|
-
timestamp:
|
|
409
|
+
type: t.type,
|
|
410
|
+
commentaryType: t.commentary_type,
|
|
411
|
+
subtype1: t.subtype_1,
|
|
412
|
+
subtype2: t.subtype_2,
|
|
413
|
+
timestamp: t.incident_timestamp
|
|
415
414
|
}
|
|
416
415
|
};
|
|
417
416
|
}
|
|
418
|
-
async function
|
|
419
|
-
const { sportal365Sports:
|
|
420
|
-
path: `/v2/matches/${
|
|
417
|
+
async function tt(t, e = {}) {
|
|
418
|
+
const { sportal365Sports: o } = i(), n = await u.get({
|
|
419
|
+
path: `/v2/matches/${t}`,
|
|
421
420
|
params: {
|
|
422
|
-
language_code:
|
|
423
|
-
odd_client:
|
|
424
|
-
odd_type:
|
|
425
|
-
scope_type:
|
|
426
|
-
odd_format:
|
|
427
|
-
market_types:
|
|
428
|
-
bookmaker_ids:
|
|
429
|
-
optional_data:
|
|
421
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en",
|
|
422
|
+
odd_client: e.oddClient,
|
|
423
|
+
odd_type: e.oddType,
|
|
424
|
+
scope_type: e.scopeType,
|
|
425
|
+
odd_format: e.oddFormat,
|
|
426
|
+
market_types: e.marketTypes,
|
|
427
|
+
bookmaker_ids: e.bookmakerIds,
|
|
428
|
+
optional_data: e.optionalData
|
|
430
429
|
}
|
|
431
430
|
});
|
|
432
|
-
return
|
|
431
|
+
return S(n);
|
|
433
432
|
}
|
|
434
|
-
async function
|
|
435
|
-
const { sportal365Sports:
|
|
436
|
-
return (await
|
|
437
|
-
path: `/v2/matches/${
|
|
433
|
+
async function et(t, e = {}) {
|
|
434
|
+
const { sportal365Sports: o } = i();
|
|
435
|
+
return (await u.get({
|
|
436
|
+
path: `/v2/matches/${t}/events`,
|
|
438
437
|
params: {
|
|
439
|
-
language_code:
|
|
438
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en"
|
|
440
439
|
}
|
|
441
|
-
})).events.map(
|
|
440
|
+
})).events.map(g).filter((s) => s !== null);
|
|
442
441
|
}
|
|
443
|
-
async function
|
|
444
|
-
const { sportal365Sports:
|
|
445
|
-
path: `/v2/matches/${
|
|
442
|
+
async function ot(t, e = {}) {
|
|
443
|
+
const { sportal365Sports: o } = i(), n = await u.get({
|
|
444
|
+
path: `/v2/matches/${t}/lineups`,
|
|
446
445
|
params: {
|
|
447
|
-
language_code:
|
|
446
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en"
|
|
448
447
|
}
|
|
449
448
|
});
|
|
450
|
-
return
|
|
449
|
+
return F(n);
|
|
451
450
|
}
|
|
452
|
-
async function
|
|
453
|
-
const { sportal365Sports:
|
|
454
|
-
path: `/v2/matches/${
|
|
451
|
+
async function nt(t, e = {}) {
|
|
452
|
+
const { sportal365Sports: o } = i(), n = await u.get({
|
|
453
|
+
path: `/v2/matches/${t}`,
|
|
455
454
|
params: {
|
|
456
|
-
language_code:
|
|
457
|
-
odd_client:
|
|
458
|
-
odd_type:
|
|
459
|
-
scope_type:
|
|
460
|
-
odd_format:
|
|
461
|
-
market_types:
|
|
462
|
-
bookmaker_ids:
|
|
455
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en",
|
|
456
|
+
odd_client: e.oddClient ?? o?.oddClient,
|
|
457
|
+
odd_type: e.oddType,
|
|
458
|
+
scope_type: e.scopeType ?? "ALL",
|
|
459
|
+
odd_format: e.oddFormat ?? "DECIMAL",
|
|
460
|
+
market_types: e.marketTypes,
|
|
461
|
+
bookmaker_ids: e.bookmakerIds
|
|
463
462
|
}
|
|
464
463
|
});
|
|
465
|
-
return
|
|
464
|
+
return G(t, n.odds ?? []);
|
|
466
465
|
}
|
|
467
|
-
async function st(
|
|
468
|
-
const { sportal365Sports:
|
|
469
|
-
path: `/events/${
|
|
466
|
+
async function st(t, e = {}) {
|
|
467
|
+
const { sportal365Sports: o } = i(), n = await u.get({
|
|
468
|
+
path: `/events/${t}/teamstats`,
|
|
470
469
|
params: {
|
|
471
|
-
language_code:
|
|
470
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en"
|
|
472
471
|
}
|
|
473
472
|
});
|
|
474
|
-
return
|
|
473
|
+
return M(n);
|
|
475
474
|
}
|
|
476
|
-
async function
|
|
477
|
-
const { sportal365Sports:
|
|
478
|
-
return (await
|
|
479
|
-
path: `/matches/${
|
|
475
|
+
async function at(t, e = {}) {
|
|
476
|
+
const { sportal365Sports: o } = i();
|
|
477
|
+
return (await u.get({
|
|
478
|
+
path: `/matches/${t}/commentary`,
|
|
480
479
|
params: {
|
|
481
|
-
language_code:
|
|
480
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en"
|
|
482
481
|
}
|
|
483
|
-
})).map(
|
|
482
|
+
})).map(H);
|
|
484
483
|
}
|
|
485
|
-
async function
|
|
486
|
-
const { sportal365Sports:
|
|
487
|
-
return (await
|
|
484
|
+
async function rt(t) {
|
|
485
|
+
const { sportal365Sports: e } = i();
|
|
486
|
+
return (await u.get({
|
|
488
487
|
path: "/v2/matches",
|
|
489
488
|
params: {
|
|
490
|
-
language_code:
|
|
491
|
-
limit:
|
|
492
|
-
offset:
|
|
489
|
+
language_code: t.languageCode ?? e?.languageCode ?? "en",
|
|
490
|
+
limit: t.limit.toString(),
|
|
491
|
+
offset: t.offset.toString(),
|
|
493
492
|
// Competition filters
|
|
494
|
-
tournament_ids:
|
|
495
|
-
season_ids:
|
|
496
|
-
stage_ids:
|
|
497
|
-
group_ids:
|
|
498
|
-
round_ids:
|
|
499
|
-
round_filter:
|
|
493
|
+
tournament_ids: t.tournamentIds,
|
|
494
|
+
season_ids: t.seasonIds,
|
|
495
|
+
stage_ids: t.stageIds,
|
|
496
|
+
group_ids: t.groupIds,
|
|
497
|
+
round_ids: t.roundIds,
|
|
498
|
+
round_filter: t.roundFilter,
|
|
500
499
|
// Time filters
|
|
501
|
-
from_kickoff_time:
|
|
502
|
-
to_kickoff_time:
|
|
500
|
+
from_kickoff_time: t.fromKickoffTime,
|
|
501
|
+
to_kickoff_time: t.toKickoffTime,
|
|
503
502
|
// Entity filters
|
|
504
|
-
team_ids:
|
|
505
|
-
team_ids_operator:
|
|
506
|
-
referee_id:
|
|
507
|
-
venue_id:
|
|
508
|
-
player_id:
|
|
503
|
+
team_ids: t.teamIds,
|
|
504
|
+
team_ids_operator: t.teamIdsOperator,
|
|
505
|
+
referee_id: t.refereeId,
|
|
506
|
+
venue_id: t.venueId,
|
|
507
|
+
player_id: t.playerId,
|
|
509
508
|
// Status filters
|
|
510
|
-
status_types:
|
|
511
|
-
status_codes:
|
|
509
|
+
status_types: t.statusTypes,
|
|
510
|
+
status_codes: t.statusCodes,
|
|
512
511
|
// Odds
|
|
513
|
-
odd_client:
|
|
514
|
-
odd_type:
|
|
515
|
-
scope_type:
|
|
516
|
-
odd_format:
|
|
517
|
-
market_types:
|
|
518
|
-
bookmaker_ids:
|
|
512
|
+
odd_client: t.oddClient ?? e?.oddClient,
|
|
513
|
+
odd_type: t.oddType,
|
|
514
|
+
scope_type: t.scopeType,
|
|
515
|
+
odd_format: t.oddFormat,
|
|
516
|
+
market_types: t.marketTypes,
|
|
517
|
+
bookmaker_ids: t.bookmakerIds,
|
|
519
518
|
// Sorting and optional data
|
|
520
|
-
sort_direction:
|
|
521
|
-
optional_data:
|
|
519
|
+
sort_direction: t.sortDirection,
|
|
520
|
+
optional_data: t.optionalData
|
|
522
521
|
}
|
|
523
|
-
})).matches.map(
|
|
522
|
+
})).matches.map(S);
|
|
524
523
|
}
|
|
525
|
-
function
|
|
524
|
+
function x(t) {
|
|
526
525
|
return {
|
|
527
|
-
id:
|
|
528
|
-
name:
|
|
529
|
-
shortName:
|
|
530
|
-
threeLetterCode:
|
|
531
|
-
slug:
|
|
532
|
-
type:
|
|
533
|
-
gender:
|
|
534
|
-
country:
|
|
535
|
-
id:
|
|
536
|
-
name:
|
|
537
|
-
code:
|
|
538
|
-
flag:
|
|
526
|
+
id: t.id,
|
|
527
|
+
name: t.name,
|
|
528
|
+
shortName: t.short_name ?? void 0,
|
|
529
|
+
threeLetterCode: t.three_letter_code,
|
|
530
|
+
slug: t.slug,
|
|
531
|
+
type: t.type === "placeholder" ? "club" : t.type,
|
|
532
|
+
gender: t.gender,
|
|
533
|
+
country: t.country ? {
|
|
534
|
+
id: t.country.id,
|
|
535
|
+
name: t.country.name,
|
|
536
|
+
code: t.country.code ?? void 0,
|
|
537
|
+
flag: t.country.assets?.flag?.url
|
|
539
538
|
} : void 0,
|
|
540
|
-
assets:
|
|
541
|
-
logo:
|
|
542
|
-
homeKit:
|
|
543
|
-
awayKit:
|
|
544
|
-
squadImage:
|
|
539
|
+
assets: t.assets ? {
|
|
540
|
+
logo: t.assets.logo?.url,
|
|
541
|
+
homeKit: t.assets.home_kit?.url,
|
|
542
|
+
awayKit: t.assets.away_kit?.url,
|
|
543
|
+
squadImage: t.assets.squad_image?.url
|
|
545
544
|
} : void 0
|
|
546
545
|
};
|
|
547
546
|
}
|
|
548
|
-
async function
|
|
549
|
-
const { sportal365Sports:
|
|
550
|
-
path: `/v2/teams/${
|
|
547
|
+
async function it(t, e = {}) {
|
|
548
|
+
const { sportal365Sports: o } = i(), n = await u.get({
|
|
549
|
+
path: `/v2/teams/${t}`,
|
|
551
550
|
params: {
|
|
552
|
-
language_code:
|
|
551
|
+
language_code: e.languageCode ?? o?.languageCode ?? "en",
|
|
553
552
|
optional_data: "form"
|
|
554
553
|
}
|
|
555
554
|
});
|
|
556
|
-
return
|
|
555
|
+
return x(n);
|
|
557
556
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
560
|
-
const { sportal365Sports:
|
|
561
|
-
if (!
|
|
557
|
+
const K = v.replace(/\/$/, "");
|
|
558
|
+
function W() {
|
|
559
|
+
const { sportal365Sports: t } = i();
|
|
560
|
+
if (!t)
|
|
562
561
|
throw new Error("Sportal365 Sports API configuration is missing");
|
|
563
|
-
const
|
|
564
|
-
return `Basic ${btoa(
|
|
562
|
+
const e = `${t.username}:${t.password}`;
|
|
563
|
+
return `Basic ${btoa(e)}`;
|
|
565
564
|
}
|
|
566
|
-
function
|
|
567
|
-
return `${
|
|
565
|
+
function j(t) {
|
|
566
|
+
return `${K}${t}`;
|
|
568
567
|
}
|
|
569
|
-
const
|
|
570
|
-
async get(
|
|
571
|
-
const { sportal365Sports:
|
|
572
|
-
if (!
|
|
568
|
+
const B = {
|
|
569
|
+
async get(t) {
|
|
570
|
+
const { sportal365Sports: e } = i();
|
|
571
|
+
if (!e)
|
|
573
572
|
throw new Error("Sportal365 Sports API configuration is missing");
|
|
574
|
-
const
|
|
575
|
-
if (
|
|
576
|
-
for (const [
|
|
577
|
-
|
|
578
|
-
const
|
|
573
|
+
const o = new URL(j(t.path));
|
|
574
|
+
if (t.params)
|
|
575
|
+
for (const [s, a] of Object.entries(t.params))
|
|
576
|
+
a !== void 0 && (Array.isArray(a) ? a.length > 0 && o.searchParams.set(s, a.join(",")) : o.searchParams.set(s, a));
|
|
577
|
+
const n = await fetch(o.toString(), {
|
|
579
578
|
method: "GET",
|
|
580
579
|
headers: {
|
|
581
|
-
Authorization:
|
|
580
|
+
Authorization: W(),
|
|
582
581
|
"Content-Type": "application/json",
|
|
583
|
-
"X-Project":
|
|
582
|
+
"X-Project": e.projectId
|
|
584
583
|
// Standings API uses X-Project
|
|
585
584
|
},
|
|
586
|
-
signal:
|
|
585
|
+
signal: e.timeout ? AbortSignal.timeout(e.timeout) : void 0
|
|
587
586
|
});
|
|
588
|
-
if (!
|
|
589
|
-
const
|
|
590
|
-
throw new Error(`Sportal365 Standings API error: ${
|
|
587
|
+
if (!n.ok) {
|
|
588
|
+
const s = await n.text();
|
|
589
|
+
throw new Error(`Sportal365 Standings API error: ${n.status} ${n.statusText} - ${s}`);
|
|
591
590
|
}
|
|
592
|
-
return
|
|
591
|
+
return n.json();
|
|
593
592
|
}
|
|
594
593
|
};
|
|
595
|
-
function
|
|
594
|
+
function V(t) {
|
|
596
595
|
return {
|
|
597
596
|
RANK: "rank",
|
|
598
597
|
PLAYED: "played",
|
|
@@ -603,9 +602,9 @@ function He(e) {
|
|
|
603
602
|
GOALS_AGAINST: "goalsAgainst",
|
|
604
603
|
GOAL_DIFFERENCE: "goalDifference",
|
|
605
604
|
POINTS: "points"
|
|
606
|
-
}[
|
|
605
|
+
}[t] ?? t.toLowerCase();
|
|
607
606
|
}
|
|
608
|
-
function
|
|
607
|
+
function _(t) {
|
|
609
608
|
return {
|
|
610
609
|
CHAMPIONS_LEAGUE: "championsLeague",
|
|
611
610
|
EUROPA_LEAGUE: "europaLeague",
|
|
@@ -613,10 +612,10 @@ function w(e) {
|
|
|
613
612
|
RELEGATION: "relegation",
|
|
614
613
|
PLAYOFF: "playoff",
|
|
615
614
|
PROMOTION: "promotion"
|
|
616
|
-
}[
|
|
615
|
+
}[t] ?? t.toLowerCase().replace(/_/g, "");
|
|
617
616
|
}
|
|
618
|
-
function
|
|
619
|
-
switch (
|
|
617
|
+
function X(t) {
|
|
618
|
+
switch (t) {
|
|
620
619
|
case "win":
|
|
621
620
|
return "W";
|
|
622
621
|
case "loss":
|
|
@@ -625,490 +624,103 @@ function Be(e) {
|
|
|
625
624
|
return "D";
|
|
626
625
|
}
|
|
627
626
|
}
|
|
628
|
-
function
|
|
629
|
-
if (!
|
|
627
|
+
function q(t, e) {
|
|
628
|
+
if (!e || e.length === 0)
|
|
630
629
|
return;
|
|
631
|
-
const
|
|
632
|
-
const
|
|
630
|
+
const o = e.map((s) => {
|
|
631
|
+
const a = s.participants.find((c) => c.id !== t) ?? s.participants[0], d = s.result?.[0]?.results?.map((c) => c.value).join("-") ?? void 0;
|
|
633
632
|
return {
|
|
634
|
-
matchId:
|
|
635
|
-
result:
|
|
636
|
-
score:
|
|
633
|
+
matchId: s.id,
|
|
634
|
+
result: X(s.outcome),
|
|
635
|
+
score: d,
|
|
637
636
|
opponent: {
|
|
638
|
-
id:
|
|
639
|
-
name:
|
|
640
|
-
logo:
|
|
637
|
+
id: a.id,
|
|
638
|
+
name: a.name,
|
|
639
|
+
logo: a.display_asset?.url ?? a.assets?.logo?.url
|
|
641
640
|
},
|
|
642
|
-
date: new Date(
|
|
643
|
-
competition:
|
|
644
|
-
id:
|
|
645
|
-
name:
|
|
641
|
+
date: new Date(s.start_time),
|
|
642
|
+
competition: s.competition ? {
|
|
643
|
+
id: s.competition.id,
|
|
644
|
+
name: s.competition.name
|
|
646
645
|
} : void 0
|
|
647
646
|
};
|
|
648
|
-
}),
|
|
647
|
+
}), n = o.map((s) => s.result).join("");
|
|
649
648
|
return {
|
|
650
|
-
competitorId:
|
|
651
|
-
results:
|
|
652
|
-
formString:
|
|
649
|
+
competitorId: t,
|
|
650
|
+
results: o,
|
|
651
|
+
formString: n
|
|
653
652
|
};
|
|
654
653
|
}
|
|
655
|
-
function
|
|
654
|
+
function z(t) {
|
|
656
655
|
return {
|
|
657
|
-
key:
|
|
658
|
-
name:
|
|
659
|
-
position:
|
|
656
|
+
key: _(t.standing_api_rule_type),
|
|
657
|
+
name: t.name,
|
|
658
|
+
position: t.type
|
|
660
659
|
};
|
|
661
660
|
}
|
|
662
|
-
function
|
|
663
|
-
const
|
|
664
|
-
let
|
|
665
|
-
for (const
|
|
666
|
-
const
|
|
667
|
-
|
|
661
|
+
function J(t) {
|
|
662
|
+
const e = {};
|
|
663
|
+
let o = 0;
|
|
664
|
+
for (const d of t.columns) {
|
|
665
|
+
const c = V(d.type.code), l = parseInt(d.value, 10);
|
|
666
|
+
d.type.code === "RANK" ? o = l : e[c] = isNaN(l) ? void 0 : l;
|
|
668
667
|
}
|
|
669
|
-
const
|
|
668
|
+
const n = t.rules?.length > 0 ? t.rules.map((d) => _(d.standing_api_rule_type)) : void 0, s = q(t.team.id, t.form), a = t.team.assets?.logo?.url;
|
|
670
669
|
return {
|
|
671
|
-
rank:
|
|
670
|
+
rank: o,
|
|
672
671
|
competitor: {
|
|
673
|
-
id:
|
|
674
|
-
name:
|
|
675
|
-
shortName:
|
|
676
|
-
logo:
|
|
672
|
+
id: t.team.id,
|
|
673
|
+
name: t.team.name,
|
|
674
|
+
shortName: t.team.short_name ?? void 0,
|
|
675
|
+
logo: a
|
|
677
676
|
},
|
|
678
|
-
stats:
|
|
679
|
-
form:
|
|
680
|
-
rules:
|
|
677
|
+
stats: e,
|
|
678
|
+
form: s,
|
|
679
|
+
rules: n
|
|
681
680
|
};
|
|
682
681
|
}
|
|
683
|
-
function
|
|
684
|
-
const
|
|
685
|
-
for (const
|
|
686
|
-
if (
|
|
687
|
-
for (const
|
|
688
|
-
const
|
|
689
|
-
|
|
682
|
+
function Q(t) {
|
|
683
|
+
const e = t.map(J), o = /* @__PURE__ */ new Map();
|
|
684
|
+
for (const n of t)
|
|
685
|
+
if (n.rules)
|
|
686
|
+
for (const s of n.rules) {
|
|
687
|
+
const a = _(s.standing_api_rule_type);
|
|
688
|
+
o.has(a) || o.set(a, z(s));
|
|
690
689
|
}
|
|
691
690
|
return {
|
|
692
|
-
entries:
|
|
691
|
+
entries: e,
|
|
693
692
|
metadata: {
|
|
694
|
-
legend: Array.from(
|
|
693
|
+
legend: Array.from(o.values())
|
|
695
694
|
}
|
|
696
695
|
};
|
|
697
696
|
}
|
|
698
|
-
async function
|
|
699
|
-
const
|
|
697
|
+
async function dt(t) {
|
|
698
|
+
const o = (await B.get({
|
|
700
699
|
path: "/standings/football",
|
|
701
700
|
params: {
|
|
702
|
-
stage_id:
|
|
703
|
-
coverage_type:
|
|
704
|
-
optional_data:
|
|
701
|
+
stage_id: t.stageId,
|
|
702
|
+
coverage_type: t.coverageType ?? "ALL",
|
|
703
|
+
optional_data: t.optionalData
|
|
705
704
|
}
|
|
706
705
|
})).data?.[0];
|
|
707
|
-
if (!
|
|
706
|
+
if (!o?.standings?.length)
|
|
708
707
|
return { entries: [], metadata: { legend: [] } };
|
|
709
|
-
const
|
|
710
|
-
return
|
|
711
|
-
}
|
|
712
|
-
var q = { exports: {} }, I = {};
|
|
713
|
-
var ue;
|
|
714
|
-
function Je() {
|
|
715
|
-
if (ue) return I;
|
|
716
|
-
ue = 1;
|
|
717
|
-
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
718
|
-
function n(r, a, s) {
|
|
719
|
-
var m = null;
|
|
720
|
-
if (s !== void 0 && (m = "" + s), a.key !== void 0 && (m = "" + a.key), "key" in a) {
|
|
721
|
-
s = {};
|
|
722
|
-
for (var p in a)
|
|
723
|
-
p !== "key" && (s[p] = a[p]);
|
|
724
|
-
} else s = a;
|
|
725
|
-
return a = s.ref, {
|
|
726
|
-
$$typeof: e,
|
|
727
|
-
type: r,
|
|
728
|
-
key: m,
|
|
729
|
-
ref: a !== void 0 ? a : null,
|
|
730
|
-
props: s
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
return I.Fragment = t, I.jsx = n, I.jsxs = n, I;
|
|
734
|
-
}
|
|
735
|
-
var D = {};
|
|
736
|
-
var le;
|
|
737
|
-
function Xe() {
|
|
738
|
-
return le || (le = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
739
|
-
function e(o) {
|
|
740
|
-
if (o == null) return null;
|
|
741
|
-
if (typeof o == "function")
|
|
742
|
-
return o.$$typeof === B ? null : o.displayName || o.name || null;
|
|
743
|
-
if (typeof o == "string") return o;
|
|
744
|
-
switch (o) {
|
|
745
|
-
case R:
|
|
746
|
-
return "Fragment";
|
|
747
|
-
case j:
|
|
748
|
-
return "Profiler";
|
|
749
|
-
case F:
|
|
750
|
-
return "StrictMode";
|
|
751
|
-
case U:
|
|
752
|
-
return "Suspense";
|
|
753
|
-
case W:
|
|
754
|
-
return "SuspenseList";
|
|
755
|
-
case H:
|
|
756
|
-
return "Activity";
|
|
757
|
-
}
|
|
758
|
-
if (typeof o == "object")
|
|
759
|
-
switch (typeof o.tag == "number" && console.error(
|
|
760
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
761
|
-
), o.$$typeof) {
|
|
762
|
-
case M:
|
|
763
|
-
return "Portal";
|
|
764
|
-
case $:
|
|
765
|
-
return o.displayName || "Context";
|
|
766
|
-
case Y:
|
|
767
|
-
return (o._context.displayName || "Context") + ".Consumer";
|
|
768
|
-
case A:
|
|
769
|
-
var i = o.render;
|
|
770
|
-
return o = o.displayName, o || (o = i.displayName || i.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
771
|
-
case G:
|
|
772
|
-
return i = o.displayName || null, i !== null ? i : e(o.type) || "Memo";
|
|
773
|
-
case C:
|
|
774
|
-
i = o._payload, o = o._init;
|
|
775
|
-
try {
|
|
776
|
-
return e(o(i));
|
|
777
|
-
} catch {
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
return null;
|
|
781
|
-
}
|
|
782
|
-
function t(o) {
|
|
783
|
-
return "" + o;
|
|
784
|
-
}
|
|
785
|
-
function n(o) {
|
|
786
|
-
try {
|
|
787
|
-
t(o);
|
|
788
|
-
var i = !1;
|
|
789
|
-
} catch {
|
|
790
|
-
i = !0;
|
|
791
|
-
}
|
|
792
|
-
if (i) {
|
|
793
|
-
i = console;
|
|
794
|
-
var l = i.error, g = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
795
|
-
return l.call(
|
|
796
|
-
i,
|
|
797
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
798
|
-
g
|
|
799
|
-
), t(o);
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
function r(o) {
|
|
803
|
-
if (o === R) return "<>";
|
|
804
|
-
if (typeof o == "object" && o !== null && o.$$typeof === C)
|
|
805
|
-
return "<...>";
|
|
806
|
-
try {
|
|
807
|
-
var i = e(o);
|
|
808
|
-
return i ? "<" + i + ">" : "<...>";
|
|
809
|
-
} catch {
|
|
810
|
-
return "<...>";
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
function a() {
|
|
814
|
-
var o = P.A;
|
|
815
|
-
return o === null ? null : o.getOwner();
|
|
816
|
-
}
|
|
817
|
-
function s() {
|
|
818
|
-
return Error("react-stack-top-frame");
|
|
819
|
-
}
|
|
820
|
-
function m(o) {
|
|
821
|
-
if (c.call(o, "key")) {
|
|
822
|
-
var i = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
823
|
-
if (i && i.isReactWarning) return !1;
|
|
824
|
-
}
|
|
825
|
-
return o.key !== void 0;
|
|
826
|
-
}
|
|
827
|
-
function p(o, i) {
|
|
828
|
-
function l() {
|
|
829
|
-
E || (E = !0, console.error(
|
|
830
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
831
|
-
i
|
|
832
|
-
));
|
|
833
|
-
}
|
|
834
|
-
l.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
835
|
-
get: l,
|
|
836
|
-
configurable: !0
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
function v() {
|
|
840
|
-
var o = e(this.type);
|
|
841
|
-
return K[o] || (K[o] = !0, console.error(
|
|
842
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
843
|
-
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
844
|
-
}
|
|
845
|
-
function k(o, i, l, g, V, X) {
|
|
846
|
-
var _ = l.ref;
|
|
847
|
-
return o = {
|
|
848
|
-
$$typeof: L,
|
|
849
|
-
type: o,
|
|
850
|
-
key: i,
|
|
851
|
-
props: l,
|
|
852
|
-
_owner: g
|
|
853
|
-
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(o, "ref", {
|
|
854
|
-
enumerable: !1,
|
|
855
|
-
get: v
|
|
856
|
-
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
857
|
-
configurable: !1,
|
|
858
|
-
enumerable: !1,
|
|
859
|
-
writable: !0,
|
|
860
|
-
value: 0
|
|
861
|
-
}), Object.defineProperty(o, "_debugInfo", {
|
|
862
|
-
configurable: !1,
|
|
863
|
-
enumerable: !1,
|
|
864
|
-
writable: !0,
|
|
865
|
-
value: null
|
|
866
|
-
}), Object.defineProperty(o, "_debugStack", {
|
|
867
|
-
configurable: !1,
|
|
868
|
-
enumerable: !1,
|
|
869
|
-
writable: !0,
|
|
870
|
-
value: V
|
|
871
|
-
}), Object.defineProperty(o, "_debugTask", {
|
|
872
|
-
configurable: !1,
|
|
873
|
-
enumerable: !1,
|
|
874
|
-
writable: !0,
|
|
875
|
-
value: X
|
|
876
|
-
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
877
|
-
}
|
|
878
|
-
function d(o, i, l, g, V, X) {
|
|
879
|
-
var _ = i.children;
|
|
880
|
-
if (_ !== void 0)
|
|
881
|
-
if (g)
|
|
882
|
-
if (u(_)) {
|
|
883
|
-
for (g = 0; g < _.length; g++)
|
|
884
|
-
x(_[g]);
|
|
885
|
-
Object.freeze && Object.freeze(_);
|
|
886
|
-
} else
|
|
887
|
-
console.error(
|
|
888
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
889
|
-
);
|
|
890
|
-
else x(_);
|
|
891
|
-
if (c.call(i, "key")) {
|
|
892
|
-
_ = e(o);
|
|
893
|
-
var N = Object.keys(i).filter(function(pe) {
|
|
894
|
-
return pe !== "key";
|
|
895
|
-
});
|
|
896
|
-
g = 0 < N.length ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}", oe[_ + g] || (N = 0 < N.length ? "{" + N.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
897
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
898
|
-
let props = %s;
|
|
899
|
-
<%s {...props} />
|
|
900
|
-
React keys must be passed directly to JSX without using spread:
|
|
901
|
-
let props = %s;
|
|
902
|
-
<%s key={someKey} {...props} />`,
|
|
903
|
-
g,
|
|
904
|
-
_,
|
|
905
|
-
N,
|
|
906
|
-
_
|
|
907
|
-
), oe[_ + g] = !0);
|
|
908
|
-
}
|
|
909
|
-
if (_ = null, l !== void 0 && (n(l), _ = "" + l), m(i) && (n(i.key), _ = "" + i.key), "key" in i) {
|
|
910
|
-
l = {};
|
|
911
|
-
for (var Z in i)
|
|
912
|
-
Z !== "key" && (l[Z] = i[Z]);
|
|
913
|
-
} else l = i;
|
|
914
|
-
return _ && p(
|
|
915
|
-
l,
|
|
916
|
-
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
917
|
-
), k(
|
|
918
|
-
o,
|
|
919
|
-
_,
|
|
920
|
-
l,
|
|
921
|
-
a(),
|
|
922
|
-
V,
|
|
923
|
-
X
|
|
924
|
-
);
|
|
925
|
-
}
|
|
926
|
-
function x(o) {
|
|
927
|
-
S(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === C && (o._payload.status === "fulfilled" ? S(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
928
|
-
}
|
|
929
|
-
function S(o) {
|
|
930
|
-
return typeof o == "object" && o !== null && o.$$typeof === L;
|
|
931
|
-
}
|
|
932
|
-
var b = ge, L = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), Y = Symbol.for("react.consumer"), $ = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), P = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, c = Object.prototype.hasOwnProperty, u = Array.isArray, f = console.createTask ? console.createTask : function() {
|
|
933
|
-
return null;
|
|
934
|
-
};
|
|
935
|
-
b = {
|
|
936
|
-
react_stack_bottom_frame: function(o) {
|
|
937
|
-
return o();
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
|
-
var E, K = {}, ee = b.react_stack_bottom_frame.bind(
|
|
941
|
-
b,
|
|
942
|
-
s
|
|
943
|
-
)(), te = f(r(s)), oe = {};
|
|
944
|
-
D.Fragment = R, D.jsx = function(o, i, l) {
|
|
945
|
-
var g = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
946
|
-
return d(
|
|
947
|
-
o,
|
|
948
|
-
i,
|
|
949
|
-
l,
|
|
950
|
-
!1,
|
|
951
|
-
g ? Error("react-stack-top-frame") : ee,
|
|
952
|
-
g ? f(r(o)) : te
|
|
953
|
-
);
|
|
954
|
-
}, D.jsxs = function(o, i, l) {
|
|
955
|
-
var g = 1e4 > P.recentlyCreatedOwnerStacks++;
|
|
956
|
-
return d(
|
|
957
|
-
o,
|
|
958
|
-
i,
|
|
959
|
-
l,
|
|
960
|
-
!0,
|
|
961
|
-
g ? Error("react-stack-top-frame") : ee,
|
|
962
|
-
g ? f(r(o)) : te
|
|
963
|
-
);
|
|
964
|
-
};
|
|
965
|
-
})()), D;
|
|
966
|
-
}
|
|
967
|
-
var de;
|
|
968
|
-
function Ze() {
|
|
969
|
-
return de || (de = 1, process.env.NODE_ENV === "production" ? q.exports = Je() : q.exports = Xe()), q.exports;
|
|
970
|
-
}
|
|
971
|
-
var Qe = Ze();
|
|
972
|
-
const fe = _e(null);
|
|
973
|
-
function dt() {
|
|
974
|
-
const e = ye(fe);
|
|
975
|
-
if (!e)
|
|
976
|
-
throw new Error("useCompetition must be used within CompetitionProvider");
|
|
977
|
-
return e;
|
|
978
|
-
}
|
|
979
|
-
function mt({
|
|
980
|
-
competitionId: e,
|
|
981
|
-
seasonId: t,
|
|
982
|
-
stageId: n,
|
|
983
|
-
matches: r,
|
|
984
|
-
standings: a,
|
|
985
|
-
previousSeasons: s,
|
|
986
|
-
config: m,
|
|
987
|
-
autoRefresh: p = !0,
|
|
988
|
-
refreshInterval: v = 3e4,
|
|
989
|
-
children: k
|
|
990
|
-
}) {
|
|
991
|
-
const [d, x] = ne(r), [S, b] = ne(a);
|
|
992
|
-
Q(() => {
|
|
993
|
-
x(r);
|
|
994
|
-
}, [r]), Q(() => {
|
|
995
|
-
b(a);
|
|
996
|
-
}, [a]), Q(() => {
|
|
997
|
-
if (!p || !d.some((f) => f.status.code === "live")) return;
|
|
998
|
-
const u = setInterval(async () => {
|
|
999
|
-
console.log("[CompetitionProvider] Auto-refresh triggered for live matches");
|
|
1000
|
-
}, v);
|
|
1001
|
-
return () => clearInterval(u);
|
|
1002
|
-
}, [p, v, d]);
|
|
1003
|
-
const L = y((c) => d.find((u) => u.id === c), [d]), M = y(
|
|
1004
|
-
(c) => d.filter((u) => u.competitorOne.id === c || u.competitorTwo.id === c),
|
|
1005
|
-
[d]
|
|
1006
|
-
), R = y(
|
|
1007
|
-
(c) => d.filter((u) => u.timing.kickoffTime.toISOString().startsWith(c)),
|
|
1008
|
-
[d]
|
|
1009
|
-
), F = y(
|
|
1010
|
-
(c) => d.filter((u) => u.round?.id === c),
|
|
1011
|
-
[d]
|
|
1012
|
-
), j = y(() => d.filter((c) => c.status.code === "live"), [d]), Y = y(
|
|
1013
|
-
(c) => {
|
|
1014
|
-
const u = /* @__PURE__ */ new Date();
|
|
1015
|
-
let f = d.filter((E) => E.status.code === "not_started" && E.timing.kickoffTime > u);
|
|
1016
|
-
return c && (f = f.filter((E) => E.competitorOne.id === c || E.competitorTwo.id === c)), f.sort((E, K) => E.timing.kickoffTime.getTime() - K.timing.kickoffTime.getTime());
|
|
1017
|
-
},
|
|
1018
|
-
[d]
|
|
1019
|
-
), $ = y(
|
|
1020
|
-
(c) => {
|
|
1021
|
-
let u = d.filter((f) => f.status.code === "finished");
|
|
1022
|
-
return c && (u = u.filter((f) => f.competitorOne.id === c || f.competitorTwo.id === c)), u.sort((f, E) => E.timing.kickoffTime.getTime() - f.timing.kickoffTime.getTime());
|
|
1023
|
-
},
|
|
1024
|
-
[d]
|
|
1025
|
-
), A = y(
|
|
1026
|
-
(c) => S.find((u) => u.competitor.id === c),
|
|
1027
|
-
[S]
|
|
1028
|
-
), U = y((c) => A(c)?.form?.formString, [A]), W = y((c) => A(c)?.stats, [A]), G = y(
|
|
1029
|
-
(c) => [...S].sort((u, f) => u.rank - f.rank).slice(0, c),
|
|
1030
|
-
[S]
|
|
1031
|
-
), C = y(
|
|
1032
|
-
(c) => [...S].sort((u, f) => f.rank - u.rank).slice(0, c),
|
|
1033
|
-
[S]
|
|
1034
|
-
), H = y(
|
|
1035
|
-
(c) => s?.find((u) => u.id === c)?.matches,
|
|
1036
|
-
[s]
|
|
1037
|
-
), B = y(
|
|
1038
|
-
(c) => s?.find((u) => u.id === c)?.standings,
|
|
1039
|
-
[s]
|
|
1040
|
-
), P = he(
|
|
1041
|
-
() => ({
|
|
1042
|
-
// Core identifiers
|
|
1043
|
-
competitionId: e,
|
|
1044
|
-
seasonId: t,
|
|
1045
|
-
stageId: n,
|
|
1046
|
-
// Core data
|
|
1047
|
-
matches: d,
|
|
1048
|
-
standings: S,
|
|
1049
|
-
// Historical data
|
|
1050
|
-
previousSeasons: s,
|
|
1051
|
-
// Custom configuration
|
|
1052
|
-
config: m,
|
|
1053
|
-
// Match helpers
|
|
1054
|
-
getMatch: L,
|
|
1055
|
-
getMatchesByTeam: M,
|
|
1056
|
-
getMatchesByDate: R,
|
|
1057
|
-
getMatchesByRound: F,
|
|
1058
|
-
getLiveMatches: j,
|
|
1059
|
-
getUpcomingMatches: Y,
|
|
1060
|
-
getFinishedMatches: $,
|
|
1061
|
-
// Standings helpers
|
|
1062
|
-
getTeamStanding: A,
|
|
1063
|
-
getTeamForm: U,
|
|
1064
|
-
getTeamStats: W,
|
|
1065
|
-
getTopTeams: G,
|
|
1066
|
-
getBottomTeams: C,
|
|
1067
|
-
// Historical helpers
|
|
1068
|
-
getSeasonMatches: H,
|
|
1069
|
-
getSeasonStandings: B
|
|
1070
|
-
}),
|
|
1071
|
-
[
|
|
1072
|
-
e,
|
|
1073
|
-
t,
|
|
1074
|
-
n,
|
|
1075
|
-
d,
|
|
1076
|
-
S,
|
|
1077
|
-
s,
|
|
1078
|
-
m,
|
|
1079
|
-
L,
|
|
1080
|
-
M,
|
|
1081
|
-
R,
|
|
1082
|
-
F,
|
|
1083
|
-
j,
|
|
1084
|
-
Y,
|
|
1085
|
-
$,
|
|
1086
|
-
A,
|
|
1087
|
-
U,
|
|
1088
|
-
W,
|
|
1089
|
-
G,
|
|
1090
|
-
C,
|
|
1091
|
-
H,
|
|
1092
|
-
B
|
|
1093
|
-
]
|
|
1094
|
-
);
|
|
1095
|
-
return /* @__PURE__ */ Qe.jsx(fe.Provider, { value: P, children: k });
|
|
708
|
+
const n = o.standings[0];
|
|
709
|
+
return n?.standing?.length ? Q(n.standing) : { entries: [], metadata: { legend: [] } };
|
|
1096
710
|
}
|
|
1097
|
-
const
|
|
711
|
+
const ct = "0.0.2";
|
|
1098
712
|
export {
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
at as getFootballMatchOdds,
|
|
713
|
+
i as getConfig,
|
|
714
|
+
tt as getFootballMatch,
|
|
715
|
+
at as getFootballMatchCommentary,
|
|
716
|
+
et as getFootballMatchEvents,
|
|
717
|
+
ot as getFootballMatchLineups,
|
|
718
|
+
nt as getFootballMatchOdds,
|
|
1106
719
|
st as getFootballMatchStatistics,
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
ft as version
|
|
720
|
+
rt as getFootballMatches,
|
|
721
|
+
dt as getFootballStandings,
|
|
722
|
+
it as getFootballTeam,
|
|
723
|
+
w as isConfigured,
|
|
724
|
+
Z as setConfig,
|
|
725
|
+
ct as version
|
|
1114
726
|
};
|