fansunited-frontend-components 0.0.91 → 0.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +139 -146
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +14 -20
  5. package/CompetitionStatistics.js +27 -27
  6. package/CompetitorCard.js +895 -891
  7. package/Discussion.js +1 -1
  8. package/EitherOrPlay.js +1 -1
  9. package/EventCard.js +1496 -1572
  10. package/EventGamePlay.js +1 -1
  11. package/Leaderboard.js +249 -257
  12. package/List.js +319 -436
  13. package/MatchQuizPlay.js +1 -1
  14. package/Odds.js +30 -30
  15. package/PersonalityQuizPlay.js +1 -1
  16. package/PickThePair.js +627 -693
  17. package/PlayerOfTheMatch.js +256 -279
  18. package/PollVote.js +1 -1
  19. package/Predictor.js +19443 -2
  20. package/README.md +59 -2
  21. package/Standings.js +94 -99
  22. package/TopX.js +5871 -6987
  23. package/chunks/ChanceGameEmbedVariant-C3NGwvTF.js +21 -0
  24. package/chunks/OddsSkeleton-Bav8FHHN.js +26 -0
  25. package/chunks/{OddsStrip-c9Y8VgmW.js → OddsStrip-CviVfQI4.js} +51 -53
  26. package/chunks/{PickOneOfX-DbBYeZnU.js → PickOneOfX-a6Dv0-rR.js} +210 -212
  27. package/chunks/index-0ezhEUTz.js +4 -0
  28. package/chunks/index-B1d9q8fX.js +4 -0
  29. package/chunks/index-BP0pvFJ4.js +4 -0
  30. package/chunks/index-CSrBHonD.js +4 -0
  31. package/chunks/index-Ckyyw-I8.js +4 -0
  32. package/chunks/index-DAu5SkP8.js +4 -0
  33. package/chunks/index-yjMVOgwO.js +4 -0
  34. package/chunks/{main-BgDvdmc8.js → main-CFwRpvUi.js} +219 -238
  35. package/chunks/{main-bAzdlcP_.js → main-D9tFZv2q.js} +272 -308
  36. package/chunks/{main-BV-r09In.js → main-DPWm9Ema.js} +419 -434
  37. package/chunks/{main-DSQ1vaFe.js → main-Dj4Manb5.js} +386 -406
  38. package/chunks/{main-DcPlB4Wk.js → main-Dmc68oMQ.js} +730 -1093
  39. package/chunks/{main-D_Rq1xVm.js → main-DsAnwwP4.js} +1677 -2002
  40. package/chunks/{main-CA5G2ZQX.js → main-dwV_55lz.js} +409 -432
  41. package/chunks/main-eAQMCxQ7.js +1949 -0
  42. package/index.js +40 -44
  43. package/package.json +13 -5
  44. package/chunks/AccessTime-BVP1qnmC.js +0 -10
  45. package/chunks/AlertMessage-aNev3ob9.js +0 -318
  46. package/chunks/Avatar-Ck9sDlUF.js +0 -353
  47. package/chunks/Button-C5sVDXUr.js +0 -665
  48. package/chunks/Card-DMO0MtFg.js +0 -196
  49. package/chunks/CardActions-CniskUBs.js +0 -140
  50. package/chunks/CardContent-DSmkIh5e.js +0 -106
  51. package/chunks/ChanceGameEmbedVariant-C9U7q27r.js +0 -913
  52. package/chunks/CheckCircle-BLQUgEFO.js +0 -8
  53. package/chunks/Chip-CbmpDsTx.js +0 -365
  54. package/chunks/CircularProgress-BCucLg2A.js +0 -317
  55. package/chunks/Close-BJaeWPmO.js +0 -9
  56. package/chunks/Close-Bn_Gk4s2.js +0 -8
  57. package/chunks/CollectLeadForm-e59gRdao.js +0 -3419
  58. package/chunks/ConsentsList-ByAN0_kp.js +0 -339
  59. package/chunks/DirectionScope-Ty03Pl0K.js +0 -36
  60. package/chunks/Divider-D-SATYZX.js +0 -166
  61. package/chunks/Edit-uzcXQ0W4.js +0 -99
  62. package/chunks/EmojiEvents-DzZMpyj0.js +0 -8
  63. package/chunks/FavoriteBorder-Dz8YRmah.js +0 -11
  64. package/chunks/FormControl-CApGuvy1.js +0 -656
  65. package/chunks/FormControlContext-Ct0huDDM.js +0 -6
  66. package/chunks/FormLabel-BhUVGv0u.js +0 -130
  67. package/chunks/GlobalStyles-BiXuRSRs.js +0 -12
  68. package/chunks/InlineSpinner-BIQuuKyA.js +0 -28
  69. package/chunks/Input-C1c9bTgf.js +0 -391
  70. package/chunks/KeyboardArrowDown-BBL6SAyg.js +0 -11
  71. package/chunks/KeyboardArrowRight-DQMFvDqL.js +0 -11
  72. package/chunks/Link-IhyfKeZX.js +0 -319
  73. package/chunks/ListItemButton-C6H1ykg-.js +0 -1151
  74. package/chunks/ModalClose-COLCM3hQ.js +0 -153
  75. package/chunks/ModalDialog-19Yt0pTv.js +0 -880
  76. package/chunks/NotFoundSkeleton-B7aXpJX0.js +0 -83
  77. package/chunks/Notification-DPPIzFpw.js +0 -614
  78. package/chunks/OddsSkeleton-BdKCmc4R.js +0 -137
  79. package/chunks/OverlayScoreStateSkeleton-CGiMhlGz.js +0 -154
  80. package/chunks/OverlayScoreStateWrapperSkeleton-mzBPgf_P.js +0 -81
  81. package/chunks/OverlaySignInSkeleton-DnxRxCfU.js +0 -518
  82. package/chunks/OverlaySkeleton-bXtFE1Y6.js +0 -1193
  83. package/chunks/Person-CuxlprBB.js +0 -8
  84. package/chunks/PersonOutline-BViWQgNV.js +0 -8
  85. package/chunks/Popper-B-W5OzQt.js +0 -1263
  86. package/chunks/Portal-C1ku1V2Y.js +0 -74
  87. package/chunks/Portal-C49jCyHC.js +0 -66
  88. package/chunks/Predictor-DGjo_dOB.js +0 -19512
  89. package/chunks/PrizeCard-BIJVHmYW.js +0 -36064
  90. package/chunks/Search-RBBj-3Z1.js +0 -14
  91. package/chunks/Select-Be-2TLJx.js +0 -1165
  92. package/chunks/Sheet-DHMJRANx.js +0 -132
  93. package/chunks/SignInCta-Bz6nl2c-.js +0 -79
  94. package/chunks/Spinner-DQytYdCL.js +0 -39
  95. package/chunks/SportsSoccer-Dwp9CkcQ.js +0 -20
  96. package/chunks/Stack-Dx-77BoB.js +0 -169
  97. package/chunks/StandardContentSkeleton-DV_CkaNl.js +0 -57
  98. package/chunks/Table-D3ou_zxz.js +0 -394
  99. package/chunks/Tabs-D32XKc8G.js +0 -1084
  100. package/chunks/Textarea-HrQcjIXY.js +0 -475
  101. package/chunks/TimerOutlined-mHIHDBDv.js +0 -8
  102. package/chunks/Tooltip-iozKqko2.js +0 -535
  103. package/chunks/Typography-CHHyHOvn.js +0 -775
  104. package/chunks/areArraysEqual-B3mXtHvh.js +0 -6
  105. package/chunks/colorInversionUtils-CJrDu9ZF.js +0 -347
  106. package/chunks/createSvgIcon-D7NSIoD-.js +0 -2813
  107. package/chunks/createSvgIcon-DVhK14Wp.js +0 -206
  108. package/chunks/dividerClasses-CpWiK9X3.js +0 -9
  109. package/chunks/elementAcceptingRef-B8Ay5UA0.js +0 -25
  110. package/chunks/enums-B1lTCQvC.js +0 -15
  111. package/chunks/formLabelClasses-Bb77PWNt.js +0 -9
  112. package/chunks/getReactElementRef-B3MFPBbS.js +0 -21
  113. package/chunks/helpers-BjZ558HQ.js +0 -558
  114. package/chunks/index-BKdbemPX.js +0 -4
  115. package/chunks/index-BL8osWuT.js +0 -4
  116. package/chunks/index-BXktLXqU.js +0 -4
  117. package/chunks/index-BoKBAjSl.js +0 -4
  118. package/chunks/index-DhEpZQT8.js +0 -4
  119. package/chunks/index-DzjRMnaE.js +0 -11
  120. package/chunks/index-WsrzdqEQ.js +0 -4
  121. package/chunks/index-ibZpQ0KD.js +0 -4
  122. package/chunks/index-qjOOEhVr.js +0 -1040
  123. package/chunks/main-Ig2neK0P.js +0 -2759
  124. package/chunks/ownerWindow-PI509BpA.js +0 -7
  125. package/chunks/searchEntities-SJcoznz0.js +0 -38
  126. package/chunks/sportsEvents-CGX-WkNB.js +0 -27
  127. package/chunks/useButton-BdGcfaoz.js +0 -106
  128. package/chunks/useConsents-6ZATswQ4.js +0 -1168
  129. package/chunks/useControlled-BYdyS7Pn.js +0 -31
  130. package/chunks/useEmbedCode-DCWnWGak.js +0 -31
  131. package/chunks/useEventCallback-D-FE-RIP.js +0 -14
  132. package/chunks/useForwardedInput-DFaOgtZp.js +0 -180
  133. package/chunks/useImageVariant-B_dj28Qx.js +0 -15
  134. package/chunks/useInfoPage-BHdgKdme.js +0 -50
  135. package/chunks/useParticipationDraft-BO1gUTVy.js +0 -307
  136. package/chunks/useSwitch-DeOFp4Ck.js +0 -66
  137. package/chunks/variantColorInheritance-DZr7CNx6.js +0 -30
  138. package/chunks/visuallyHidden-B8J7BVSJ.js +0 -14
package/CompetitorCard.js CHANGED
@@ -1,28 +1,23 @@
1
1
  import { jsx as s, jsxs as w, Fragment as Ce } from "react/jsx-runtime";
2
- import M, { useState as P, useCallback as St, useEffect as J, useRef as wt, useMemo as Ne } from "react";
3
- import { a as he, g as bo, u as To, f as Ao, d as _o, b as Fo, v as Eo, Q as $o, z as ie, B as m, i as je, y as Bo, m as Lo, p as Ro, o as Wo, q as Mo, r as Do, C as Ho, s as zo, E as No, t as Oo, w as Po } from "./chunks/PrizeCard-BIJVHmYW.js";
4
- import { S as Cn } from "./chunks/Spinner-DQytYdCL.js";
5
- import { createPortal as Uo } from "react-dom";
6
- import { f as Go } from "./chunks/searchEntities-SJcoznz0.js";
7
- import { O as jo, u as Vo } from "./chunks/OddsStrip-c9Y8VgmW.js";
8
- import { h as sn } from "./chunks/helpers-BjZ558HQ.js";
9
- import { S as Ko } from "./chunks/Sheet-DHMJRANx.js";
10
- import { N as Yo } from "./chunks/NotFoundSkeleton-B7aXpJX0.js";
11
- import { D as In, B as Z } from "./chunks/DirectionScope-Ty03Pl0K.js";
12
- import { T as qo } from "./chunks/Tooltip-iozKqko2.js";
13
- import { T } from "./chunks/Typography-CHHyHOvn.js";
2
+ import M, { useState as P, useCallback as wt, useEffect as Q, useRef as kt, useMemo as Oe } from "react";
3
+ import { Sheet as Ao, Tooltip as _o, Box as m, Typography as T, GlobalStyles as Fo } from "@mui/joy";
4
+ import { fetchSearchEntitiesByIds as Eo, useColors as $o, useFontFamily as Bo, useCornerRadius as Lo, useSpacingScale as Ro, hexToRgb as an, NotFoundSkeleton as Wo, useConstantContext as Mo, ConstantsContext as Do, useDirection as Ho, toIntlLocale as ie, DirectionalIcon as vn, Spinner as bn, isMobile as je, BidiIsolate as Z, bidiIsolate as zo, isExtraSmall as Oo, getLanguageDirection as No, initializeI18n as Po, applyDirectionToMount as Uo, widgetCacheKey as Go, createWidgetCache as jo, ContainerProvider as Vo, ThemeProvider as Ko, ConstantsProvider as Yo } from "fansunited-frontend-core";
5
+ import { useTranslation as he } from "react-i18next";
6
+ import { O as qo, u as Xo } from "./chunks/OddsStrip-CviVfQI4.js";
14
7
  import { c as Ie } from "./chunks/createLucideIcon-YBRjY5Kl.js";
15
- import { U as Xo } from "./chunks/users-wbJRbqW8.js";
8
+ import { U as Jo } from "./chunks/users-wbJRbqW8.js";
16
9
  import { C as Qo } from "./chunks/chevron-left-CxfCSZcr.js";
17
- import { X as Jo } from "./chunks/x-CK4GYo7T.js";
18
- import { G as Zo } from "./chunks/GlobalStyles-BiXuRSRs.js";
10
+ import { X as Zo } from "./chunks/x-CK4GYo7T.js";
11
+ import "fansunited-sdk-esm";
12
+ import { CacheProvider as ei } from "@emotion/react";
13
+ import { createPortal as ti } from "react-dom";
19
14
  /**
20
15
  * @license lucide-react v0.454.0 - ISC
21
16
  *
22
17
  * This source code is licensed under the ISC license.
23
18
  * See the LICENSE file in the root directory of this source tree.
24
19
  */
25
- const ei = Ie("ArrowRight", [
20
+ const ni = Ie("ArrowRight", [
26
21
  ["path", { d: "M5 12h14", key: "1ays0h" }],
27
22
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
28
23
  ]);
@@ -32,7 +27,7 @@ const ei = Ie("ArrowRight", [
32
27
  * This source code is licensed under the ISC license.
33
28
  * See the LICENSE file in the root directory of this source tree.
34
29
  */
35
- const ti = Ie("CalendarDays", [
30
+ const oi = Ie("CalendarDays", [
36
31
  ["path", { d: "M8 2v4", key: "1cmpym" }],
37
32
  ["path", { d: "M16 2v4", key: "4m81vk" }],
38
33
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
@@ -50,7 +45,7 @@ const ti = Ie("CalendarDays", [
50
45
  * This source code is licensed under the ISC license.
51
46
  * See the LICENSE file in the root directory of this source tree.
52
47
  */
53
- const ni = Ie("ChartColumn", [
48
+ const ii = Ie("ChartColumn", [
54
49
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
55
50
  ["path", { d: "M18 17V9", key: "2bz60n" }],
56
51
  ["path", { d: "M13 17V5", key: "1frdt8" }],
@@ -62,14 +57,14 @@ const ni = Ie("ChartColumn", [
62
57
  * This source code is licensed under the ISC license.
63
58
  * See the LICENSE file in the root directory of this source tree.
64
59
  */
65
- const oi = Ie("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
60
+ const ri = Ie("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
66
61
  /**
67
62
  * @license lucide-react v0.454.0 - ISC
68
63
  *
69
64
  * This source code is licensed under the ISC license.
70
65
  * See the LICENSE file in the root directory of this source tree.
71
66
  */
72
- const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) => {
67
+ const si = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ai = (e) => {
73
68
  try {
74
69
  const t = e.helpers.getSDKConfiguration();
75
70
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
@@ -79,22 +74,22 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
79
74
  }, Ve = async (e, t, n) => {
80
75
  const o = /* @__PURE__ */ new Map();
81
76
  if (t.filter(Boolean).length === 0) return o;
82
- const i = ri(e);
83
- return i && (await Go(i, t, { signal: n })).forEach((a) => o.set(a.id, a)), o;
84
- }, vn = (e) => (e ?? "").split("-")[0].toUpperCase(), Q = (e, t) => {
77
+ const i = ai(e);
78
+ return i && (await Eo(i, t, { signal: n })).forEach((a) => o.set(a.id, a)), o;
79
+ }, Tn = (e) => (e ?? "").split("-")[0].toUpperCase(), J = (e, t) => {
85
80
  var i, r;
86
81
  if (!e) return null;
87
- const n = vn(t);
82
+ const n = Tn(t);
88
83
  return ((r = (i = e.translations) == null ? void 0 : i.find(
89
84
  (a) => {
90
85
  var l;
91
86
  return ((l = a.language) == null ? void 0 : l.toUpperCase()) === n;
92
87
  }
93
88
  )) == null ? void 0 : r.name) ?? e.name ?? null;
94
- }, bn = (e, t) => {
89
+ }, An = (e, t) => {
95
90
  var i;
96
91
  if (!e) return null;
97
- const n = vn(t), o = (i = e.translations) == null ? void 0 : i.find(
92
+ const n = Tn(t), o = (i = e.translations) == null ? void 0 : i.find(
98
93
  (r) => {
99
94
  var a;
100
95
  return ((a = r.language) == null ? void 0 : a.toUpperCase()) === n;
@@ -105,13 +100,13 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
105
100
  var n, o;
106
101
  const t = e == null ? void 0 : e.assets;
107
102
  return t ? ((n = t.find((i) => i.key === "LOGO")) == null ? void 0 : n.value) ?? ((o = t.find((i) => i.key === "HEADSHOT")) == null ? void 0 : o.value) ?? null : null;
108
- }, si = (e, t) => ((e == null ? void 0 : e.related) ?? []).filter((n) => {
103
+ }, li = (e, t) => ((e == null ? void 0 : e.related) ?? []).filter((n) => {
109
104
  var o;
110
105
  return ((o = n.relationship) == null ? void 0 : o.toUpperCase()) === t.toUpperCase();
111
- }).map((n) => n.related_id).filter((n) => !!n), ai = "COMPETITOR", li = (e) => {
106
+ }).map((n) => n.related_id).filter((n) => !!n), ci = "COMPETITOR", di = (e) => {
112
107
  var t;
113
- return ((t = e == null ? void 0 : e.content_type) == null ? void 0 : t.toUpperCase()) === ai;
114
- }, ci = (e) => {
108
+ return ((t = e == null ? void 0 : e.content_type) == null ? void 0 : t.toUpperCase()) === ci;
109
+ }, mi = (e) => {
115
110
  var t;
116
111
  return /(^|_)TEAM(_|$)/.test(((t = e.type) == null ? void 0 : t.toUpperCase()) ?? "") ? "TEAM" : "ATHLETE";
117
112
  }, Y = (e) => {
@@ -122,7 +117,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
122
117
  if (!t) return null;
123
118
  const n = t.startsWith("#") ? t : `#${t}`;
124
119
  return /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.test(n) ? n.length === 4 ? `#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}` : n : null;
125
- }, di = (e) => {
120
+ }, ui = (e) => {
126
121
  var r;
127
122
  const n = ((e == null ? void 0 : e.additional_information) ?? []).find(
128
123
  (a) => /^(FOUNDED|FOUNDATION|FOUNDED_YEAR|ESTABLISHED)$/i.test((a == null ? void 0 : a.key) ?? "")
@@ -130,71 +125,71 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
130
125
  if (!o) return null;
131
126
  const i = Number(o);
132
127
  return i >= 1700 && i <= (/* @__PURE__ */ new Date()).getFullYear() ? o : null;
133
- }, mi = (e, t, n, o) => {
134
- var p, f, g;
135
- const i = ci(e), r = Y(Q(e, n)) ?? o.unknownCompetitor, a = Y(e.country_id), l = a ? {
128
+ }, hi = (e, t, n, o) => {
129
+ var g, h, f;
130
+ const i = mi(e), r = Y(J(e, n)) ?? o.unknownCompetitor, a = Y(e.country_id), l = a ? {
136
131
  id: a,
137
- name: Y(Q(t, n)),
132
+ name: Y(J(t, n)),
138
133
  flag: Y(t == null ? void 0 : t.flag)
139
- } : null, c = ((p = e.metadata) == null ? void 0 : p.branding) ?? null, d = de(c == null ? void 0 : c.primary_color), h = de(c == null ? void 0 : c.secondary_color), S = de(c == null ? void 0 : c.tertiary_color);
134
+ } : null, c = ((g = e.metadata) == null ? void 0 : g.branding) ?? null, d = de(c == null ? void 0 : c.primary_color), p = de(c == null ? void 0 : c.secondary_color), S = de(c == null ? void 0 : c.tertiary_color);
140
135
  return {
141
136
  id: e.id,
142
137
  kind: i,
143
- sport: ((f = Y(e.sport)) == null ? void 0 : f.toUpperCase()) ?? null,
138
+ sport: ((h = Y(e.sport)) == null ? void 0 : h.toUpperCase()) ?? null,
144
139
  name: r,
145
140
  threeLetterCode: Y(e.three_letter_code),
146
141
  image: ve(e),
147
- gender: ((g = Y(e.gender)) == null ? void 0 : g.toUpperCase()) ?? null,
142
+ gender: ((f = Y(e.gender)) == null ? void 0 : f.toUpperCase()) ?? null,
148
143
  position: i === "ATHLETE" ? Y(e.position) : null,
149
144
  dateOfBirth: i === "ATHLETE" ? Y(e.date_of_birth) : null,
150
- founded: di(e),
145
+ founded: ui(e),
151
146
  countryId: a,
152
147
  country: l,
153
- branding: d || h || S ? { primary: d, secondary: h, tertiary: S } : null
148
+ branding: d || p || S ? { primary: d, secondary: p, tertiary: S } : null
154
149
  };
155
- }, ui = (e, t, n) => {
156
- const { t: o } = he("common"), [i, r] = P(null), [a, l] = P(!0), [c, d] = P(!1), [h, S] = P(!1), p = St(
157
- async (f) => {
150
+ }, pi = (e, t, n) => {
151
+ const { t: o } = he("common"), [i, r] = P(null), [a, l] = P(!0), [c, d] = P(!1), [p, S] = P(!1), g = wt(
152
+ async (h) => {
158
153
  l(!0), d(!1), S(!1);
159
154
  try {
160
- const g = await Ve(e, [t], f);
161
- if (f.aborted) return;
162
- const x = g.get(t);
163
- if (!x || !li(x)) {
155
+ const f = await Ve(e, [t], h);
156
+ if (h.aborted) return;
157
+ const x = f.get(t);
158
+ if (!x || !di(x)) {
164
159
  r(null), S(!0);
165
160
  return;
166
161
  }
167
162
  r(
168
- mi(x, void 0, n, {
163
+ hi(x, void 0, n, {
169
164
  unknownCompetitor: o("eventCard.unknownCompetitor")
170
165
  })
171
166
  );
172
- } catch (g) {
173
- if (f.aborted || (g == null ? void 0 : g.name) === "AbortError") return;
167
+ } catch (f) {
168
+ if (h.aborted || (f == null ? void 0 : f.name) === "AbortError") return;
174
169
  r(null), d(!0);
175
170
  } finally {
176
- f.aborted || l(!1);
171
+ h.aborted || l(!1);
177
172
  }
178
173
  },
179
174
  [e, t, n, o]
180
175
  );
181
- return J(() => {
176
+ return Q(() => {
182
177
  if (!e || !t) {
183
178
  l(!1), S(!t);
184
179
  return;
185
180
  }
186
- const f = new AbortController();
187
- return p(f.signal), () => f.abort();
188
- }, [e, t, p]), { data: i, loading: a, error: c, notFound: h };
189
- }, Tn = "https://sports.fansunitedapi.com/v1", An = (e) => {
181
+ const h = new AbortController();
182
+ return g(h.signal), () => h.abort();
183
+ }, [e, t, g]), { data: i, loading: a, error: c, notFound: p };
184
+ }, _n = "https://sports.fansunitedapi.com/v1", Fn = (e) => {
190
185
  try {
191
186
  const t = e.helpers.getSDKConfiguration();
192
187
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
193
188
  } catch {
194
189
  return null;
195
190
  }
196
- }, hi = async (e, t, n, o = !1) => {
197
- const i = An(e);
191
+ }, fi = async (e, t, n, o = !1) => {
192
+ const i = Fn(e);
198
193
  if (!i || !t) return null;
199
194
  const r = new URLSearchParams({
200
195
  key: i.apiKey,
@@ -202,15 +197,15 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
202
197
  });
203
198
  o && r.set("disable_cache", String(Date.now()));
204
199
  const a = await fetch(
205
- `${Tn}/teams/${encodeURIComponent(t)}?${r.toString()}`,
200
+ `${_n}/teams/${encodeURIComponent(t)}?${r.toString()}`,
206
201
  { signal: n }
207
202
  );
208
203
  if (!a.ok) throw new Error(`Sports API responded ${a.status}`);
209
204
  const l = await a.json(), c = (l == null ? void 0 : l.data) ?? l;
210
205
  return c != null && c.team_id ? c : null;
211
- }, pi = async (e, t, n) => {
206
+ }, gi = async (e, t, n) => {
212
207
  var r;
213
- const o = An(e);
208
+ const o = Fn(e);
214
209
  if (!o || !t) return null;
215
210
  const i = new URLSearchParams({
216
211
  key: o.apiKey,
@@ -220,7 +215,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
220
215
  });
221
216
  try {
222
217
  const a = await fetch(
223
- `${Tn}/events/${encodeURIComponent(t)}?${i.toString()}`,
218
+ `${_n}/events/${encodeURIComponent(t)}?${i.toString()}`,
224
219
  { signal: n }
225
220
  );
226
221
  if (!a.ok) return null;
@@ -229,14 +224,14 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
229
224
  } catch {
230
225
  return null;
231
226
  }
232
- }, z = "all", fi = "fb:c:224", ee = (e) => !!e && e !== fi, kt = (e, t) => /^(HOCKEY|ICE_HOCKEY)$/.test((e ?? "").toUpperCase()) ? t.won * 2 + t.lostInOvertime : t.won * 3 + t.drawn, Ct = (e, t) => e - t, me = (e) => e > 0 ? `+${e}` : String(e), _n = (e, t) => t > 0 ? (e / t).toFixed(2) : "0.00", It = (e, t) => t > 0 ? Math.round(e / t * 100) : 0, X = (e, t) => `${t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0}%`, gi = (e) => {
227
+ }, z = "all", yi = "fb:c:224", ee = (e) => !!e && e !== yi, Ct = (e, t) => /^(HOCKEY|ICE_HOCKEY)$/.test((e ?? "").toUpperCase()) ? t.won * 2 + t.lostInOvertime : t.won * 3 + t.drawn, It = (e, t) => e - t, me = (e) => e > 0 ? `+${e}` : String(e), En = (e, t) => t > 0 ? (e / t).toFixed(2) : "0.00", vt = (e, t) => t > 0 ? Math.round(e / t * 100) : 0, X = (e, t) => `${t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0}%`, xi = (e) => {
233
228
  let t = 0;
234
229
  for (const n of e) {
235
230
  if (n !== "W") break;
236
231
  t += 1;
237
232
  }
238
233
  return t;
239
- }, yi = 3, xi = 10, Si = 5, wi = (e) => typeof e != "number" || !Number.isFinite(e) ? Si : Math.min(xi, Math.max(yi, Math.round(e))), an = (e, t) => ({
234
+ }, Si = 3, wi = 10, ki = 5, Ci = (e) => typeof e != "number" || !Number.isFinite(e) ? ki : Math.min(wi, Math.max(Si, Math.round(e))), ln = (e, t) => ({
240
235
  won: e.won + t.won,
241
236
  drawn: e.drawn + t.drawn,
242
237
  lost: e.lost + t.lost,
@@ -250,7 +245,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
250
245
  goalsFor: 0,
251
246
  goalsAgainst: 0,
252
247
  points: 0
253
- }, ln = (e, t) => ({
248
+ }, cn = (e, t) => ({
254
249
  played: e.played + t.played,
255
250
  won: e.won + t.won,
256
251
  drawn: e.drawn + t.drawn,
@@ -258,9 +253,9 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
258
253
  goalsFor: e.goalsFor + t.goalsFor,
259
254
  goalsAgainst: e.goalsAgainst + t.goalsAgainst,
260
255
  points: e.points + t.points,
261
- home: an(e.home, t.home),
262
- away: an(e.away, t.away)
263
- }), ki = {
256
+ home: ln(e.home, t.home),
257
+ away: ln(e.away, t.away)
258
+ }), Ii = {
264
259
  played: 0,
265
260
  won: 0,
266
261
  drawn: 0,
@@ -270,36 +265,36 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
270
265
  points: 0,
271
266
  home: gt,
272
267
  away: gt
273
- }, Ci = (e, t) => {
274
- const n = () => ({ ...gt }), o = n(), i = n();
275
- let r = 0, a = 0, l = 0, c = 0, d = 0, h = 0;
276
- for (const p of e) {
277
- if (p.status !== "finished" || p.outcome === null) continue;
278
- const f = p.isHome ? o : i;
279
- r += 1, p.outcome === "W" ? (a += 1, f.won += 1) : p.outcome === "L" ? (c += 1, f.lost += 1) : (l += 1, f.drawn += 1), d += p.ownScore ?? 0, h += p.opponentScore ?? 0, f.goalsFor += p.ownScore ?? 0, f.goalsAgainst += p.opponentScore ?? 0;
268
+ }, vi = (e, t) => {
269
+ const n = () => ({ ...gt }), o = n(), i = n(), r = { home: 0, away: 0 };
270
+ let a = 0, l = 0, c = 0, d = 0, p = 0, S = 0;
271
+ for (const h of e) {
272
+ if (h.status !== "finished" || h.outcome === null) continue;
273
+ const f = h.isHome ? o : i;
274
+ a += 1, h.outcome === "W" ? (l += 1, f.won += 1) : h.outcome === "L" ? (d += 1, f.lost += 1, h.afterOvertime && (r[h.isHome ? "home" : "away"] += 1)) : (c += 1, f.drawn += 1), p += h.ownScore ?? 0, S += h.opponentScore ?? 0, f.goalsFor += h.ownScore ?? 0, f.goalsAgainst += h.opponentScore ?? 0;
280
275
  }
281
- const S = (p) => kt(t, { ...p, lostInOvertime: 0 });
282
- return o.points = S(o), i.points = S(i), {
283
- played: r,
284
- won: a,
285
- drawn: l,
286
- lost: c,
287
- goalsFor: d,
288
- goalsAgainst: h,
289
- points: S({ won: a, drawn: l }),
276
+ const g = (h, f) => Ct(t, { ...h, lostInOvertime: f });
277
+ return o.points = g(o, r.home), i.points = g(i, r.away), {
278
+ played: a,
279
+ won: l,
280
+ drawn: c,
281
+ lost: d,
282
+ goalsFor: p,
283
+ goalsAgainst: S,
284
+ points: g({ won: l, drawn: c }, r.home + r.away),
290
285
  home: o,
291
286
  away: i
292
287
  };
293
- }, cn = (e, t, n) => `${n.homeShort} ${e} · ${n.awayShort} ${t}`, vt = (e, t = /* @__PURE__ */ new Date()) => {
288
+ }, dn = (e, t, n) => `${n.homeShort} ${e} · ${n.awayShort} ${t}`, bt = (e, t = /* @__PURE__ */ new Date()) => {
294
289
  if (!e) return null;
295
290
  const n = new Date(e);
296
291
  if (Number.isNaN(n.getTime())) return null;
297
292
  let o = t.getFullYear() - n.getFullYear();
298
293
  return t.getMonth() > n.getMonth() || t.getMonth() === n.getMonth() && t.getDate() >= n.getDate() || (o -= 1), o >= 0 ? o : null;
299
- }, bt = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((t) => {
294
+ }, Tt = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((t) => {
300
295
  var n;
301
296
  return ((n = t[0]) == null ? void 0 : n.toUpperCase()) ?? "";
302
- }).join(""), Ii = ({
297
+ }).join(""), bi = ({
303
298
  live: e,
304
299
  last: t,
305
300
  next: n,
@@ -314,15 +309,15 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
314
309
  if (!e) return null;
315
310
  const t = e.split(":");
316
311
  return t.length > 3 ? t.slice(0, 3).join(":") : e;
317
- }, Fn = (e) => {
312
+ }, $n = (e) => {
318
313
  if (!e) return null;
319
314
  const t = e.split(":");
320
315
  return t.length > 3 ? t.slice(3).join(":") : null;
321
- }, dn = (e) => {
316
+ }, mn = (e) => {
322
317
  var n, o;
323
- const t = (o = (n = Fn(e)) == null ? void 0 : n.match(/\d{4}/)) == null ? void 0 : o[0];
318
+ const t = (o = (n = $n(e)) == null ? void 0 : n.match(/\d{4}/)) == null ? void 0 : o[0];
324
319
  return t ? Number(t) : null;
325
- }, En = (e, t) => {
320
+ }, Bn = (e, t) => {
326
321
  const n = (e ?? "").toUpperCase();
327
322
  if (/(FINISHED|FINAL|ENDED|AET|PEN)/.test(n)) return "finished";
328
323
  if (/(LIVE|INPROGRESS|IN_PROGRESS|PLAYING|HALFTIME)/.test(n))
@@ -334,9 +329,9 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
334
329
  if (!Number.isNaN(o)) return o > Date.now() ? "upcoming" : "finished";
335
330
  }
336
331
  return "upcoming";
337
- }, vi = (e) => /(overtime|extra_time|penalt|shootout|_ot|_so)/.test(
332
+ }, Ti = (e) => /(overtime|extra_time|penalt|shootout|_ot|_so)/.test(
338
333
  (e ?? "").toLowerCase()
339
- ), bi = (e, t) => e === null || t === null ? null : e > t ? "W" : e < t ? "L" : "D", Ti = (e) => {
334
+ ), un = (e, t) => e === null || t === null ? null : e > t ? "W" : e < t ? "L" : "D", Ai = (e) => {
340
335
  const t = e.trim().split(/\s+/).filter(Boolean);
341
336
  return t.length >= 2 ? t.slice(0, 3).map((n) => n[0]).join("").toUpperCase() : e.slice(0, 3).toUpperCase();
342
337
  }, Ke = (e, t) => {
@@ -344,84 +339,93 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
344
339
  (r) => ee(r.competition_id)
345
340
  ), o = /* @__PURE__ */ new Set();
346
341
  t.forEach((r) => {
347
- const a = dn(r);
342
+ const a = mn(r);
348
343
  a !== null && o.add(a);
349
344
  });
350
345
  const i = /* @__PURE__ */ new Set();
351
346
  return n.forEach((r) => {
352
347
  var a;
353
- r.season_id && En((a = r.status) == null ? void 0 : a.type, r.date ?? null) !== "finished" && i.add(r.season_id);
348
+ r.season_id && Bn((a = r.status) == null ? void 0 : a.type, r.date ?? null) !== "finished" && i.add(r.season_id);
354
349
  }), n.filter((r) => {
355
350
  if (!r.season_id) return !0;
356
351
  const a = r.competition_id ? t.get(r.competition_id) : void 0;
357
352
  if (a) return r.season_id === a;
358
- const l = dn(r.season_id);
353
+ const l = mn(r.season_id);
359
354
  return l !== null && o.has(l) ? !0 : i.has(r.season_id);
360
355
  });
361
- }, $n = (e) => {
356
+ }, Ln = (e) => {
362
357
  const t = /* @__PURE__ */ new Set();
363
358
  return (e ?? []).forEach((n) => {
364
359
  var o, i;
365
360
  ee(n.competition_id) && ((o = n.competitor_one) != null && o.id && t.add(n.competitor_one.id), (i = n.competitor_two) != null && i.id && t.add(n.competitor_two.id), n.competition_id && t.add(n.competition_id));
366
361
  }), Array.from(t);
367
- }, mn = (e) => {
362
+ }, hn = (e) => {
368
363
  if (e == null || e === "") return null;
369
364
  const t = Number(e);
370
365
  return Number.isFinite(t) ? t : null;
371
- }, Bn = (e, t, { language: n, teamId: o, unknownOpponent: i }) => (e ?? []).map((r) => {
372
- var u, b, F, _, L, D, B, W;
366
+ }, yt = (e) => [
367
+ hn(e == null ? void 0 : e.competitor_one),
368
+ hn(e == null ? void 0 : e.competitor_two)
369
+ ], _i = ([e, t]) => e !== null && t !== null, Fi = (e) => {
370
+ const t = yt(e == null ? void 0 : e.result);
371
+ return _i(t) ? t : yt(e == null ? void 0 : e.full_time);
372
+ }, Rn = (e, t, { language: n, teamId: o, unknownOpponent: i }) => (e ?? []).map((r) => {
373
+ var _, L, D, B, W;
373
374
  if (!r.id || !ee(r.competition_id)) return null;
374
- const a = ((u = r.competitor_one) == null ? void 0 : u.id) ?? null, l = ((b = r.competitor_two) == null ? void 0 : b.id) ?? null, c = a === o;
375
+ const a = ((_ = r.competitor_one) == null ? void 0 : _.id) ?? null, l = ((L = r.competitor_two) == null ? void 0 : L.id) ?? null, c = a === o;
375
376
  if (!c && l !== o) return null;
376
- const d = c ? l : a, h = d ? t.get(d) : void 0, S = Q(h, n) ?? i, p = r.date ?? null, f = En((F = r.status) == null ? void 0 : F.type, p), g = mn((L = (_ = r.score) == null ? void 0 : _.full_time) == null ? void 0 : L.competitor_one), x = mn((B = (D = r.score) == null ? void 0 : D.full_time) == null ? void 0 : B.competitor_two), y = c ? g : x, k = c ? x : g, I = r.competition_id ?? null, C = I ? t.get(I) : void 0;
377
+ const d = c ? l : a, p = d ? t.get(d) : void 0, S = J(p, n) ?? i, g = r.date ?? null, h = Bn((D = r.status) == null ? void 0 : D.type, g), [f, x] = Fi(r.score), y = c ? f : x, k = c ? x : f, [v, C] = yt((B = r.score) == null ? void 0 : B.penalties);
378
+ let u = h === "finished" ? un(y, k) : null;
379
+ u === "D" && (u = un(c ? v : C, c ? C : v) ?? u);
380
+ const b = r.competition_id ?? null, E = b ? t.get(b) : void 0;
377
381
  return {
378
382
  id: r.id,
379
- date: p,
380
- status: f,
381
- competitionId: I,
382
- competitionName: Q(C, n),
383
+ date: g,
384
+ status: h,
385
+ competitionId: b,
386
+ competitionName: J(E, n),
383
387
  seasonId: r.season_id ?? null,
384
388
  isHome: c,
385
389
  opponentId: d,
386
390
  opponentName: S,
387
- opponentShortName: (h == null ? void 0 : h.three_letter_code) ?? bn(h, n) ?? Ti(S),
388
- opponentLogo: ve(h),
391
+ opponentShortName: (p == null ? void 0 : p.three_letter_code) ?? An(p, n) ?? Ai(S),
392
+ opponentLogo: ve(p),
389
393
  ownScore: y,
390
394
  opponentScore: k,
391
395
  // Only a finished fixture has an outcome: a live 1-1 is not a draw yet.
392
- outcome: f === "finished" ? bi(y, k) : null,
393
- afterOvertime: f === "finished" && vi((W = r.status) == null ? void 0 : W.sub_type)
396
+ outcome: u,
397
+ afterOvertime: h === "finished" && Ti((W = r.status) == null ? void 0 : W.sub_type)
394
398
  };
395
- }).filter((r) => r !== null), Ai = (e, t) => new Date(t.date ?? 0).getTime() - new Date(e.date ?? 0).getTime(), _i = (e, t) => new Date(e.date ?? 0).getTime() - new Date(t.date ?? 0).getTime(), Ln = (e) => ({
396
- results: e.filter((t) => t.status === "finished").sort(Ai),
397
- upcoming: e.filter((t) => t.status === "upcoming").sort(_i),
399
+ }).filter((r) => r !== null), Ei = (e, t) => new Date(t.date ?? 0).getTime() - new Date(e.date ?? 0).getTime(), $i = (e, t) => new Date(e.date ?? 0).getTime() - new Date(t.date ?? 0).getTime(), Wn = (e) => ({
400
+ results: e.filter((t) => t.status === "finished").sort(Ei),
401
+ upcoming: e.filter((t) => t.status === "upcoming").sort($i),
398
402
  live: e.find((t) => t.status === "live") ?? null
399
- }), Rn = (e) => {
403
+ }), Mn = (e) => {
400
404
  const t = /* @__PURE__ */ new Map();
401
405
  return (e ?? []).forEach((n) => {
402
406
  const o = n.competition_id;
403
407
  o && n.season_id && !t.has(o) && t.set(o, n.season_id);
404
408
  }), t;
405
- }, Wn = (e, t, { language: n, countryId: o, seasons: i, weight: r }) => Array.from(e).map((a) => {
409
+ }, Dn = (e, t, { language: n, countryId: o, seasons: i, weight: r }) => Array.from(e).map((a) => {
406
410
  var d;
407
- const l = t.get(a), c = Q(l, n) ?? a;
411
+ const l = t.get(a), c = J(l, n) ?? a;
408
412
  return {
409
413
  id: a,
410
414
  name: c,
411
- shortName: bn(l, n) ?? c,
415
+ shortName: An(l, n) ?? c,
412
416
  logo: ve(l),
413
417
  seasonId: i.get(a) ?? null,
414
418
  // A competition whose COUNTRY relation matches the competitor's own country. Cup and
415
419
  // continental competitions relate to a different country entity, so this cleanly separates
416
420
  // "LaLiga" from "Champions League" without hardcoding either.
417
- domestic: !!o && si(l, "COUNTRY").includes(o),
421
+ domestic: !!o && li(l, "COUNTRY").includes(o),
418
422
  cup: ((d = l == null ? void 0 : l.format) == null ? void 0 : d.toUpperCase()) === "CUP"
419
423
  };
420
424
  }).sort((a, l) => {
421
425
  if (a.domestic !== l.domestic) return a.domestic ? -1 : 1;
422
426
  const c = r(l.id) - r(a.id);
423
427
  return c !== 0 ? c : a.name.localeCompare(l.name);
424
- }), Mn = (e) => ({
428
+ }), Hn = (e) => ({
425
429
  id: z,
426
430
  name: e,
427
431
  shortName: e,
@@ -431,22 +435,22 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
431
435
  // "All" sums a league season with whatever cup runs there are, and the league points in it are
432
436
  // still real — it is only a competition that awards none at all that has to hide them.
433
437
  cup: !1
434
- }), Oe = (e) => {
438
+ }), Ne = (e) => {
435
439
  const t = Number(e);
436
440
  return Number.isFinite(t) ? t : 0;
437
441
  }, R = (e, t) => {
438
442
  var n;
439
- return Oe(((n = e == null ? void 0 : e.find((o) => o.key === t)) == null ? void 0 : n.value) ?? null);
440
- }, Dn = (e) => {
443
+ return Ne(((n = e == null ? void 0 : e.find((o) => o.key === t)) == null ? void 0 : n.value) ?? null);
444
+ }, zn = (e) => {
441
445
  const t = /* @__PURE__ */ new Map();
442
446
  return ((e == null ? void 0 : e.team_stats) ?? []).forEach((n) => {
443
447
  const o = be(n.season_id);
444
448
  o && n.season_id && !t.has(o) && t.set(o, n.season_id);
445
449
  }), t;
446
- }, Fi = (e) => {
450
+ }, Bi = (e) => {
447
451
  if (!e) return [];
448
452
  const t = new Set(
449
- $n(Ke(e == null ? void 0 : e.events, Dn(e)))
453
+ Ln(Ke(e == null ? void 0 : e.events, zn(e)))
450
454
  );
451
455
  return (e.team_stats ?? []).forEach((n) => {
452
456
  const o = be(n.season_id);
@@ -455,46 +459,46 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
455
459
  }, Pe = (e, t) => {
456
460
  for (const n of t) {
457
461
  const o = e == null ? void 0 : e.find((i) => i.key === n);
458
- if (o) return Oe(o.value);
462
+ if (o) return Ne(o.value);
459
463
  }
460
464
  return 0;
461
- }, Hn = (e, t = "") => R(e, `${t}won`) + Pe(e, [`${t}won_ot`, `${t}won_extratime`]) + Pe(e, [`${t}won_penalty`, `${t}won_pen`]), Tt = (e, t = "") => Pe(e, [`${t}lost_ot`, `${t}lost_extratime`]) + Pe(e, [`${t}lost_penalty`, `${t}lost_pen`]), yt = (e, t = "") => R(e, `${t}lost`) + Tt(e, t), Ue = (e, t, n, o) => {
465
+ }, On = (e, t = "") => R(e, `${t}won`) + Pe(e, [`${t}won_ot`, `${t}won_extratime`]) + Pe(e, [`${t}won_penalty`, `${t}won_pen`]), At = (e, t = "") => Pe(e, [`${t}lost_ot`, `${t}lost_extratime`]) + Pe(e, [`${t}lost_penalty`, `${t}lost_pen`]), xt = (e, t = "") => R(e, `${t}lost`) + At(e, t), Ue = (e, t, n, o) => {
462
466
  const i = e == null ? void 0 : e.find((a) => a.key === t);
463
- if (i) return Oe(i.value);
467
+ if (i) return Ne(i.value);
464
468
  const r = e == null ? void 0 : e.find((a) => a.key === n);
465
- return r ? Math.round(Oe(r.value) * o) : 0;
466
- }, un = (e, t) => {
467
- const n = e.statistics, o = `${t}_`, i = Hn(n, o), r = R(n, `${o}draw`), a = R(n, `${o}mp`) || i + r + yt(n, o);
469
+ return r ? Math.round(Ne(r.value) * o) : 0;
470
+ }, pn = (e, t) => {
471
+ const n = e.statistics, o = `${t}_`, i = On(n, o), r = R(n, `${o}draw`), a = R(n, `${o}mp`) || i + r + xt(n, o);
468
472
  return {
469
473
  won: i,
470
474
  drawn: r,
471
- lost: yt(n, o),
475
+ lost: xt(n, o),
472
476
  goalsFor: Ue(n, `${o}goals_scored`, `${o}avg_pts_scored`, a),
473
477
  goalsAgainst: Ue(n, `${o}goals_allowed`, `${o}avg_pts_allowed`, a),
474
- points: kt(e.sport, {
478
+ points: Ct(e.sport, {
475
479
  won: i,
476
480
  drawn: r,
477
- lostInOvertime: Tt(n, o)
481
+ lostInOvertime: At(n, o)
478
482
  })
479
483
  };
480
484
  }, pt = (e) => {
481
- const t = e.statistics, n = Hn(t), o = R(t, "draw"), i = R(t, "matches_played");
485
+ const t = e.statistics, n = On(t), o = R(t, "draw"), i = R(t, "matches_played");
482
486
  return {
483
487
  played: i,
484
488
  won: n,
485
489
  drawn: o,
486
- lost: yt(t),
490
+ lost: xt(t),
487
491
  goalsFor: Ue(t, "goals_scored", "avg_pts_scored", i),
488
492
  goalsAgainst: Ue(t, "goals_allowed", "avg_pts_allowed", i),
489
- points: kt(e.sport, {
493
+ points: Ct(e.sport, {
490
494
  won: n,
491
495
  drawn: o,
492
- lostInOvertime: Tt(t)
496
+ lostInOvertime: At(t)
493
497
  }),
494
- home: un(e, "home"),
495
- away: un(e, "away")
498
+ home: pn(e, "home"),
499
+ away: pn(e, "away")
496
500
  };
497
- }, Ei = (e) => e.won + e.drawn + e.lost === e.played, $i = (e, t = [], n) => {
501
+ }, Li = (e) => e.won + e.drawn + e.lost === e.played, Ri = (e, t = [], n) => {
498
502
  const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
499
503
  if (((e == null ? void 0 : e.team_stats) ?? []).forEach((a) => {
500
504
  const l = be(a.season_id);
@@ -505,7 +509,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
505
509
  const c = i.get(l);
506
510
  i.set(
507
511
  l,
508
- c ? ln(c, pt(a)) : pt(a)
512
+ c ? cn(c, pt(a)) : pt(a)
509
513
  );
510
514
  }
511
515
  }), i.forEach((a, l) => {
@@ -514,23 +518,23 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
514
518
  ...o.keys(),
515
519
  ...t.map((a) => a.competitionId).filter((a) => !!a && ee(a))
516
520
  ])).forEach((a) => {
517
- const l = o.get(a), c = Ci(
521
+ const l = o.get(a), c = vi(
518
522
  t.filter((d) => d.competitionId === a),
519
523
  n
520
524
  );
521
- (!l || c.played > l.played || !Ei(l) && c.played >= l.played) && (c.played > 0 ? o.set(a, c) : l || o.delete(a));
525
+ (!l || c.played > l.played || !Li(l) && c.played >= l.played) && (c.played > 0 ? o.set(a, c) : l || o.delete(a));
522
526
  }), o.size > 0) {
523
527
  const a = Array.from(o.values()).reduce(
524
- ln,
525
- ki
528
+ cn,
529
+ Ii
526
530
  );
527
531
  o.set(z, a);
528
532
  }
529
533
  return o;
530
- }, Bi = (e) => {
534
+ }, Wi = (e) => {
531
535
  const t = (e ?? "").toLowerCase();
532
536
  return t.includes("keep") || t.includes("goal") ? "keeper" : t.includes("defend") || t.includes("back") ? "defender" : t.includes("forward") || t.includes("attack") || t.includes("strik") ? "forward" : "midfielder";
533
- }, zn = Bi, Li = {
537
+ }, Nn = Wi, Mi = {
534
538
  apps: 0,
535
539
  starts: 0,
536
540
  minutes: 0,
@@ -540,7 +544,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
540
544
  redCards: 0,
541
545
  cleanSheets: 0,
542
546
  goalsConceded: 0
543
- }, Ri = (e) => ({
547
+ }, Di = (e) => ({
544
548
  apps: R(e.statistics, "appearances"),
545
549
  starts: R(e.statistics, "first_lineup_appearances"),
546
550
  minutes: R(e.statistics, "minutes"),
@@ -550,7 +554,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
550
554
  redCards: R(e.statistics, "red_cards"),
551
555
  cleanSheets: R(e.statistics, "clean_sheets"),
552
556
  goalsConceded: R(e.statistics, "goals_conceded")
553
- }), Wi = (e, t) => ({
557
+ }), Hi = (e, t) => ({
554
558
  apps: e.apps + t.apps,
555
559
  starts: e.starts + t.starts,
556
560
  minutes: e.minutes + t.minutes,
@@ -560,58 +564,58 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
560
564
  redCards: e.redCards + t.redCards,
561
565
  cleanSheets: e.cleanSheets + t.cleanSheets,
562
566
  goalsConceded: e.goalsConceded + t.goalsConceded
563
- }), Mi = () => ({ ...Li }), Di = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
567
+ }), zi = () => ({ ...Mi }), Oi = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
564
568
  const n = be(t.season_id);
565
569
  return !t.athlete_id || !n || !ee(n) ? null : {
566
570
  athleteId: t.athlete_id,
567
571
  competitionId: n,
568
- stats: Ri(t)
572
+ stats: Di(t)
569
573
  };
570
- }).filter((t) => t !== null), Hi = (e, t, n) => {
574
+ }).filter((t) => t !== null), Ni = (e, t, n) => {
571
575
  if (!(e != null && e.team_id)) return null;
572
- const { language: o, teamId: i, countryId: r, sport: a, labels: l } = n, c = Ke(e.events, Dn(e)), d = Bn(c, t, {
576
+ const { language: o, teamId: i, countryId: r, sport: a, labels: l } = n, c = Ke(e.events, zn(e)), d = Rn(c, t, {
573
577
  language: o,
574
578
  teamId: i,
575
579
  unknownOpponent: l.unknownOpponent
576
- }), h = $i(e, d, a), S = /* @__PURE__ */ new Set();
577
- h.forEach((y, k) => {
580
+ }), p = Ri(e, d, a), S = /* @__PURE__ */ new Set();
581
+ p.forEach((y, k) => {
578
582
  k !== z && S.add(k);
579
583
  }), c.forEach((y) => {
580
584
  y.competition_id && S.add(y.competition_id);
581
585
  });
582
- const p = Wn(
586
+ const g = Dn(
583
587
  S,
584
588
  t,
585
589
  {
586
590
  language: o,
587
591
  countryId: r,
588
- seasons: Rn(c),
592
+ seasons: Mn(c),
589
593
  weight: (y) => {
590
594
  var k;
591
- return ((k = h.get(y)) == null ? void 0 : k.played) ?? 0;
595
+ return ((k = p.get(y)) == null ? void 0 : k.played) ?? 0;
592
596
  }
593
597
  }
594
- ), { results: f, upcoming: g, live: x } = Ln(d);
598
+ ), { results: h, upcoming: f, live: x } = Wn(d);
595
599
  return {
596
600
  teamId: e.team_id,
597
- competitions: [Mn(l.allCompetitions), ...p],
598
- statsByCompetition: h,
599
- results: f,
600
- upcoming: g,
601
+ competitions: [Hn(l.allCompetitions), ...g],
602
+ statsByCompetition: p,
603
+ results: h,
604
+ upcoming: f,
601
605
  live: x,
602
- athleteStats: Di(e)
606
+ athleteStats: Oi(e)
603
607
  };
604
- }, zi = (e, t, n, o, i, r) => {
605
- const { t: a } = he("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: h, sport: S } = r, [p, f] = P(null), [g, x] = P(null), [y, k] = P(l), [I, C] = P(!1), u = wt(i);
608
+ }, Pi = (e, t, n, o, i, r) => {
609
+ const { t: a } = he("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: p, sport: S } = r, [g, h] = P(null), [f, x] = P(null), [y, k] = P(l), [v, C] = P(!1), u = kt(i);
606
610
  u.current = i;
607
- const b = St(
611
+ const b = wt(
608
612
  async (_, L) => {
609
613
  if (t) {
610
614
  L || (k(!0), C(!1));
611
615
  try {
612
- const D = await hi(e, t, _, L);
616
+ const D = await fi(e, t, _, L);
613
617
  if (_.aborted) return;
614
- const B = Fi(D);
618
+ const B = Bi(D);
615
619
  c && n && B.push(n);
616
620
  let W = /* @__PURE__ */ new Map();
617
621
  try {
@@ -627,11 +631,11 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
627
631
  // Through the resolver, not the raw field: the country carries its translations the
628
632
  // same way every other entity does, and reading `name` renders "Spain" on a
629
633
  // Bulgarian card.
630
- name: Q(V, o),
634
+ name: J(V, o),
631
635
  flag: V.flag ?? null
632
636
  } : null
633
- ), f(
634
- Hi(D, W, {
637
+ ), h(
638
+ Ni(D, W, {
635
639
  language: o,
636
640
  teamId: t,
637
641
  countryId: n,
@@ -652,31 +656,31 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
652
656
  },
653
657
  [e, t, n, c, o, S, a]
654
658
  );
655
- J(() => {
659
+ Q(() => {
656
660
  if (!l || !e || !t) {
657
- f(null), x(null), k(!1);
661
+ h(null), x(null), k(!1);
658
662
  return;
659
663
  }
660
664
  const _ = new AbortController();
661
665
  return b(_.signal, !1), () => _.abort();
662
666
  }, [l, e, t, b]);
663
- const F = !!(p != null && p.live);
664
- return J(() => {
665
- if (!l || !F || !d || h <= 0) return;
666
- const _ = new AbortController(), L = setInterval(() => b(_.signal, !0), h);
667
+ const E = !!(g != null && g.live);
668
+ return Q(() => {
669
+ if (!l || !E || !d || p <= 0) return;
670
+ const _ = new AbortController(), L = setInterval(() => b(_.signal, !0), p);
667
671
  return () => {
668
672
  _.abort(), clearInterval(L);
669
673
  };
670
- }, [l, F, d, h, b]), { profile: p, country: g, loading: y, error: I };
671
- }, Ni = "https://sports.fansunitedapi.com/v1", Oi = (e) => {
674
+ }, [l, E, d, p, b]), { profile: g, country: f, loading: y, error: v };
675
+ }, Ui = "https://sports.fansunitedapi.com/v1", Gi = (e) => {
672
676
  try {
673
677
  const t = e.helpers.getSDKConfiguration();
674
678
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
675
679
  } catch {
676
680
  return null;
677
681
  }
678
- }, Pi = async (e, t, n, o = !1) => {
679
- const i = Oi(e);
682
+ }, ji = async (e, t, n, o = !1) => {
683
+ const i = Gi(e);
680
684
  if (!i || !t) return null;
681
685
  const r = new URLSearchParams({
682
686
  key: i.apiKey,
@@ -684,13 +688,13 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
684
688
  });
685
689
  o && r.set("disable_cache", String(Date.now()));
686
690
  const a = await fetch(
687
- `${Ni}/athletes/${encodeURIComponent(t)}?${r.toString()}`,
691
+ `${Ui}/athletes/${encodeURIComponent(t)}?${r.toString()}`,
688
692
  { signal: n }
689
693
  );
690
694
  if (!a.ok) throw new Error(`Sports API responded ${a.status}`);
691
695
  const l = await a.json(), c = (l == null ? void 0 : l.data) ?? l;
692
696
  return c != null && c.athlete_id ? c : null;
693
- }, Nn = {
697
+ }, Pn = {
694
698
  apps: 0,
695
699
  starts: 0,
696
700
  benchApps: 0,
@@ -706,9 +710,9 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
706
710
  captain: 0,
707
711
  cleanSheets: 0,
708
712
  goalsConceded: 0
709
- }, Ui = () => ({
710
- ...Nn
711
- }), Gi = (e) => ({
713
+ }, Vi = () => ({
714
+ ...Pn
715
+ }), Ki = (e) => ({
712
716
  apps: R(e.statistics, "appearances"),
713
717
  starts: R(e.statistics, "first_lineup_appearances"),
714
718
  benchApps: R(e.statistics, "bench_appearances"),
@@ -724,7 +728,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
724
728
  captain: R(e.statistics, "captain"),
725
729
  cleanSheets: R(e.statistics, "clean_sheets"),
726
730
  goalsConceded: R(e.statistics, "goals_conceded")
727
- }), hn = (e, t) => ({
731
+ }), fn = (e, t) => ({
728
732
  apps: e.apps + t.apps,
729
733
  starts: e.starts + t.starts,
730
734
  benchApps: e.benchApps + t.benchApps,
@@ -745,12 +749,12 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
745
749
  return !n || !ee(n) ? null : { competitionId: n, entry: t };
746
750
  }).filter(
747
751
  (t) => t !== null
748
- ), On = (e) => {
752
+ ), Un = (e) => {
749
753
  const t = /* @__PURE__ */ new Map();
750
754
  return Te(e).forEach(({ competitionId: n, entry: o }) => {
751
755
  o.season_id && !t.has(n) && t.set(n, o.season_id);
752
756
  }), t;
753
- }, ji = (e) => {
757
+ }, Yi = (e) => {
754
758
  const t = /* @__PURE__ */ new Map();
755
759
  Te(e).forEach(({ entry: i }) => {
756
760
  if (!i.team_id) return;
@@ -764,31 +768,31 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
764
768
  return t.forEach((i, r) => {
765
769
  i > o && (n = r, o = i);
766
770
  }), n;
767
- }, Vi = (e) => {
771
+ }, qi = (e) => {
768
772
  if (!e) return [];
769
773
  const t = new Set(
770
- $n(Ke(e.events, On(e)))
774
+ Ln(Ke(e.events, Un(e)))
771
775
  );
772
776
  return Te(e).forEach(({ competitionId: n, entry: o }) => {
773
777
  t.add(n), o.team_id && t.add(o.team_id);
774
778
  }), Array.from(t);
775
- }, Ki = (e) => {
779
+ }, Xi = (e) => {
776
780
  const t = /* @__PURE__ */ new Map();
777
781
  if (Te(e).forEach(({ competitionId: n, entry: o }) => {
778
- const i = t.get(n) ?? Ui();
782
+ const i = t.get(n) ?? Vi();
779
783
  t.set(
780
784
  n,
781
- hn(i, Gi(o))
785
+ fn(i, Ki(o))
782
786
  );
783
787
  }), t.size > 0) {
784
788
  const n = Array.from(t.values()).reduce(
785
- hn,
786
- Nn
789
+ fn,
790
+ Pn
787
791
  );
788
792
  t.set(z, n);
789
793
  }
790
794
  return t;
791
- }, Yi = (e) => {
795
+ }, Ji = (e) => {
792
796
  const t = /* @__PURE__ */ new Map();
793
797
  return e.forEach((n) => {
794
798
  n.competitionId && t.set(
@@ -796,15 +800,15 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
796
800
  (t.get(n.competitionId) ?? 0) + 1
797
801
  );
798
802
  }), t.set(z, e.length), t;
799
- }, qi = (e, t, n, o) => {
800
- var d, h, S;
803
+ }, Qi = (e, t, n, o) => {
804
+ var d, p, S;
801
805
  if (!e) return null;
802
806
  const i = t.get(e), r = ((d = i == null ? void 0 : i.metadata) == null ? void 0 : d.branding) ?? null, a = de(r == null ? void 0 : r.primary_color), l = de(r == null ? void 0 : r.secondary_color), c = de(r == null ? void 0 : r.tertiary_color);
803
807
  return {
804
808
  id: e,
805
809
  kind: "TEAM",
806
- sport: ((h = i == null ? void 0 : i.sport) == null ? void 0 : h.toUpperCase()) ?? null,
807
- name: Q(i, n) ?? o,
810
+ sport: ((p = i == null ? void 0 : i.sport) == null ? void 0 : p.toUpperCase()) ?? null,
811
+ name: J(i, n) ?? o,
808
812
  threeLetterCode: (i == null ? void 0 : i.three_letter_code) ?? null,
809
813
  image: ve(i),
810
814
  gender: ((S = i == null ? void 0 : i.gender) == null ? void 0 : S.toUpperCase()) ?? null,
@@ -815,71 +819,71 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
815
819
  country: null,
816
820
  branding: a || l || c ? { primary: a, secondary: l, tertiary: c } : null
817
821
  };
818
- }, Xi = (e, t, n) => {
822
+ }, Zi = (e, t, n) => {
819
823
  if (!(e != null && e.athlete_id)) return null;
820
- const { language: o, labels: i } = n, r = ji(e), a = qi(r, t, o, i.unknownCompetitor), l = Ki(e), c = Ke(e.events, On(e)), { results: d, upcoming: h, live: S } = r ? Ln(
821
- Bn(c, t, {
824
+ const { language: o, labels: i } = n, r = Yi(e), a = Qi(r, t, o, i.unknownCompetitor), l = Xi(e), c = Ke(e.events, Un(e)), { results: d, upcoming: p, live: S } = r ? Wn(
825
+ Rn(c, t, {
822
826
  language: o,
823
827
  teamId: r,
824
828
  unknownOpponent: i.unknownOpponent
825
829
  })
826
- ) : { results: [], upcoming: [], live: null }, p = Yi(d), f = /* @__PURE__ */ new Set();
830
+ ) : { results: [], upcoming: [], live: null }, g = Ji(d), h = /* @__PURE__ */ new Set();
827
831
  l.forEach((y, k) => {
828
- k !== z && f.add(k);
832
+ k !== z && h.add(k);
829
833
  }), c.forEach((y) => {
830
- y.competition_id && f.add(y.competition_id);
834
+ y.competition_id && h.add(y.competition_id);
831
835
  });
832
- const g = Wn(f, t, {
836
+ const f = Dn(h, t, {
833
837
  language: o,
834
838
  // The CLUB's country decides which competition is domestic, not the athlete's own — a Brazilian
835
839
  // at Barcelona plays a Spanish domestic league, and his passport does not change that.
836
840
  countryId: (a == null ? void 0 : a.countryId) ?? null,
837
- seasons: Rn(c),
838
- weight: (y) => p.get(y) ?? 0
839
- }), x = Te(e).map(({ entry: y }) => Fn(y.season_id)).find((y) => !!y) ?? null;
841
+ seasons: Mn(c),
842
+ weight: (y) => g.get(y) ?? 0
843
+ }), x = Te(e).map(({ entry: y }) => $n(y.season_id)).find((y) => !!y) ?? null;
840
844
  return {
841
845
  athleteId: e.athlete_id,
842
846
  teamId: r,
843
847
  team: a,
844
- competitions: [Mn(i.allCompetitions), ...g],
848
+ competitions: [Hn(i.allCompetitions), ...f],
845
849
  statsByCompetition: l,
846
- teamPlayedByCompetition: p,
850
+ teamPlayedByCompetition: g,
847
851
  season: x,
848
852
  results: d,
849
- upcoming: h,
853
+ upcoming: p,
850
854
  live: S
851
855
  };
852
- }, Qi = (e, t, n, o, i, r) => {
853
- const { t: a } = he("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: h } = r, [S, p] = P(null), [f, g] = P(null), [x, y] = P(l), [k, I] = P(!1), C = wt(i);
856
+ }, er = (e, t, n, o, i, r) => {
857
+ const { t: a } = he("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: p } = r, [S, g] = P(null), [h, f] = P(null), [x, y] = P(l), [k, v] = P(!1), C = kt(i);
854
858
  C.current = i;
855
- const u = St(
856
- async (F, _) => {
859
+ const u = wt(
860
+ async (E, _) => {
857
861
  if (t) {
858
- _ || (y(!0), I(!1));
862
+ _ || (y(!0), v(!1));
859
863
  try {
860
- const L = await Pi(e, t, F, _);
861
- if (F.aborted) return;
862
- const D = Vi(L);
864
+ const L = await ji(e, t, E, _);
865
+ if (E.aborted) return;
866
+ const D = qi(L);
863
867
  c && n && D.push(n);
864
868
  let B = /* @__PURE__ */ new Map();
865
869
  try {
866
- B = await Ve(e, D, F);
870
+ B = await Ve(e, D, E);
867
871
  } catch {
868
872
  B = /* @__PURE__ */ new Map();
869
873
  }
870
- if (F.aborted) return;
874
+ if (E.aborted) return;
871
875
  const W = c && n ? B.get(n) : void 0;
872
- g(
876
+ f(
873
877
  n && W ? {
874
878
  id: n,
875
879
  // Through the resolver, not the raw field: the country carries its translations the
876
880
  // same way every other entity does, and reading `name` renders "Spain" on a
877
881
  // Bulgarian card.
878
- name: Q(W, o),
882
+ name: J(W, o),
879
883
  flag: W.flag ?? null
880
884
  } : null
881
- ), p(
882
- Xi(L, B, {
885
+ ), g(
886
+ Zi(L, B, {
883
887
  language: o,
884
888
  labels: {
885
889
  unknownOpponent: a("eventCard.unknownCompetitor"),
@@ -887,134 +891,134 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
887
891
  allCompetitions: C.current("allCompetitions")
888
892
  }
889
893
  })
890
- ), I(!1);
894
+ ), v(!1);
891
895
  } catch (L) {
892
- if (F.aborted || (L == null ? void 0 : L.name) === "AbortError") return;
893
- _ || I(!0);
896
+ if (E.aborted || (L == null ? void 0 : L.name) === "AbortError") return;
897
+ _ || v(!0);
894
898
  } finally {
895
- !F.aborted && !_ && y(!1);
899
+ !E.aborted && !_ && y(!1);
896
900
  }
897
901
  }
898
902
  },
899
903
  [e, t, n, c, o, a]
900
904
  );
901
- J(() => {
905
+ Q(() => {
902
906
  if (!l || !e || !t) {
903
- p(null), g(null), y(!1);
907
+ g(null), f(null), y(!1);
904
908
  return;
905
909
  }
906
- const F = new AbortController();
907
- return u(F.signal, !1), () => F.abort();
910
+ const E = new AbortController();
911
+ return u(E.signal, !1), () => E.abort();
908
912
  }, [l, e, t, u]);
909
913
  const b = !!(S != null && S.live);
910
- return J(() => {
911
- if (!l || !b || !d || h <= 0) return;
912
- const F = new AbortController(), _ = setInterval(() => u(F.signal, !0), h);
914
+ return Q(() => {
915
+ if (!l || !b || !d || p <= 0) return;
916
+ const E = new AbortController(), _ = setInterval(() => u(E.signal, !0), p);
913
917
  return () => {
914
- F.abort(), clearInterval(_);
918
+ E.abort(), clearInterval(_);
915
919
  };
916
- }, [l, b, d, h, u]), { profile: S, country: f, loading: x, error: k };
917
- }, Ji = (e, t, n, o, i) => {
920
+ }, [l, b, d, p, u]), { profile: S, country: h, loading: x, error: k };
921
+ }, tr = (e, t, n, o, i) => {
918
922
  const [r, a] = P(
919
923
  /* @__PURE__ */ new Map()
920
- ), [l, c] = P(!1), [d, h] = P(null), S = wt(null), p = Ne(
924
+ ), [l, c] = P(!1), [d, p] = P(null), S = kt(null), g = Oe(
921
925
  () => Array.from(new Set(t.map((k) => k.athleteId))),
922
926
  [t]
923
- ), g = `${Ne(() => [...p].sort().join(","), [p])}|${o}`;
924
- J(() => {
925
- if (!i || !e || p.length === 0 || S.current === g) return;
927
+ ), f = `${Oe(() => [...g].sort().join(","), [g])}|${o}`;
928
+ Q(() => {
929
+ if (!i || !e || g.length === 0 || S.current === f) return;
926
930
  const k = new AbortController();
927
- return c(!0), Ve(e, p, k.signal).then((I) => {
928
- k.signal.aborted || (S.current = g, a(I));
931
+ return c(!0), Ve(e, g, k.signal).then((v) => {
932
+ k.signal.aborted || (S.current = f, a(v));
929
933
  }).catch(() => {
930
934
  }).finally(() => {
931
- k.signal.aborted || (h(g), c(!1));
935
+ k.signal.aborted || (p(f), c(!1));
932
936
  }), () => k.abort();
933
- }, [i, e, p, g]);
934
- const x = i && p.length > 0 && d !== g;
935
- return { players: Ne(() => {
937
+ }, [i, e, g, f]);
938
+ const x = i && g.length > 0 && d !== f;
939
+ return { players: Oe(() => {
936
940
  if (r.size === 0) return [];
937
941
  const k = /* @__PURE__ */ new Map();
938
- return t.forEach((I) => {
939
- if (n !== z && I.competitionId !== n)
942
+ return t.forEach((v) => {
943
+ if (n !== z && v.competitionId !== n)
940
944
  return;
941
- const C = k.get(I.athleteId) ?? Mi();
942
- k.set(I.athleteId, Wi(C, I.stats));
943
- }), Array.from(k.entries()).map(([I, C]) => {
944
- const u = r.get(I), b = Q(u, o);
945
+ const C = k.get(v.athleteId) ?? zi();
946
+ k.set(v.athleteId, Hi(C, v.stats));
947
+ }), Array.from(k.entries()).map(([v, C]) => {
948
+ const u = r.get(v), b = J(u, o);
945
949
  return !u || !b ? null : {
946
- id: I,
950
+ id: v,
947
951
  name: b,
948
- position: zn(u.position),
952
+ position: Nn(u.position),
949
953
  dateOfBirth: u.date_of_birth ?? null,
950
954
  headshot: ve(u),
951
955
  stats: C
952
956
  };
953
- }).filter((I) => I !== null);
957
+ }).filter((v) => v !== null);
954
958
  }, [r, t, n, o]), loading: l || x };
955
- }, Zi = 45, ft = 90, er = 15, tr = (e, t) => {
959
+ }, nr = 45, ft = 90, or = 15, ir = (e, t) => {
956
960
  if ((e ?? "").toLowerCase() !== "football") return null;
957
961
  const n = (t ?? "").toLowerCase();
958
962
  if (!n) return null;
959
963
  const o = n.match(/^(\d+)(?:st|nd|rd|th)_(half|overtime)$/);
960
964
  if (o && o[2] === "half") {
961
965
  const r = Number(o[1]);
962
- return r === 1 ? 0 : r === 2 ? Zi : null;
966
+ return r === 1 ? 0 : r === 2 ? nr : null;
963
967
  }
964
968
  const i = n.match(/^extra_time_(\d+)$/);
965
969
  if (i) {
966
970
  const r = Number(i[1]);
967
- return r === 1 ? ft : r === 2 ? ft + er : null;
971
+ return r === 1 ? ft : r === 2 ? ft + or : null;
968
972
  }
969
973
  return n.startsWith("extra_time") ? ft : null;
970
- }, nr = /^(running|started|in_progress|active|live)$/, or = (e) => nr.test((e ?? "").toLowerCase()), ir = 120, rr = (e, t, n, o) => {
974
+ }, rr = /^(running|started|in_progress|active|live)$/, sr = (e) => rr.test((e ?? "").toLowerCase()), ar = 120, lr = (e, t, n, o) => {
971
975
  const { enabled: i, refreshInterval: r } = o, [a, l] = P(null), [c, d] = P(0);
972
- if (J(() => {
976
+ if (Q(() => {
973
977
  if (!i || !e || !t) {
974
978
  l(null);
975
979
  return;
976
980
  }
977
- const p = new AbortController(), f = async () => {
981
+ const g = new AbortController(), h = async () => {
978
982
  var C;
979
- const x = await pi(e, t, p.signal);
980
- if (p.signal.aborted) return;
981
- const y = x == null ? void 0 : x.timing, k = Number((y == null ? void 0 : y.current_minute) ?? 0), I = Number((y == null ? void 0 : y.played_seconds) ?? 0);
982
- if (!y || k <= 0 && I <= 0) {
983
+ const x = await gi(e, t, g.signal);
984
+ if (g.signal.aborted) return;
985
+ const y = x == null ? void 0 : x.timing, k = Number((y == null ? void 0 : y.current_minute) ?? 0), v = Number((y == null ? void 0 : y.played_seconds) ?? 0);
986
+ if (!y || k <= 0 && v <= 0) {
983
987
  l(null);
984
988
  return;
985
989
  }
986
990
  l({
987
991
  minute: k,
988
- playedSeconds: I,
989
- running: or(y.clock_status),
992
+ playedSeconds: v,
993
+ running: sr(y.clock_status),
990
994
  subType: ((C = x == null ? void 0 : x.status) == null ? void 0 : C.sub_type) ?? null
991
995
  });
992
996
  };
993
- f();
994
- const g = r > 0 ? setInterval(f, r) : null;
997
+ h();
998
+ const f = r > 0 ? setInterval(h, r) : null;
995
999
  return () => {
996
- p.abort(), g && clearInterval(g);
1000
+ g.abort(), f && clearInterval(f);
997
1001
  };
998
- }, [i, e, t, r]), J(() => {
1002
+ }, [i, e, t, r]), Q(() => {
999
1003
  if (d(0), !(a != null && a.running)) return;
1000
- let p = 0;
1001
- const f = setInterval(() => {
1002
- p += 1, d(p), p >= ir && clearInterval(f);
1004
+ let g = 0;
1005
+ const h = setInterval(() => {
1006
+ g += 1, d(g), g >= ar && clearInterval(h);
1003
1007
  }, 1e3);
1004
- return () => clearInterval(f);
1008
+ return () => clearInterval(h);
1005
1009
  }, [a]), !a) return null;
1006
- const h = tr(n, a.subType);
1007
- if (h === null) return null;
1010
+ const p = ir(n, a.subType);
1011
+ if (p === null) return null;
1008
1012
  const S = Math.max(0, a.playedSeconds) % 60;
1009
- return h + a.minute + Math.floor((S + c) / 60);
1013
+ return p + a.minute + Math.floor((S + c) / 60);
1010
1014
  }, $ = () => {
1011
- const e = bo(), t = To(), n = Ao(), o = _o(), i = `rgba(${sn(e.textSecondary)}, 0.62)`;
1015
+ const e = $o(), t = Bo(), n = Lo(), o = Ro(), i = `rgba(${an(e.textSecondary)}, 0.62)`;
1012
1016
  return {
1013
1017
  fonts: t,
1014
1018
  spacing: o,
1015
1019
  radius: n,
1016
1020
  /** A theme colour at reduced opacity — soft fills, hover washes, chip backgrounds. */
1017
- tint: (r, a) => `rgba(${sn(r)}, ${a})`,
1021
+ tint: (r, a) => `rgba(${an(r)}, ${a})`,
1018
1022
  colors: {
1019
1023
  /** Card background. */
1020
1024
  surface: e.surface,
@@ -1038,22 +1042,22 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1038
1042
  danger: e.palette.danger.plainColor
1039
1043
  }
1040
1044
  };
1041
- }, sr = (e, t) => t ? e.replace(
1045
+ }, cr = (e, t) => t ? e.replace(
1042
1046
  /\{\{\s*(\w+)\s*\}\}/g,
1043
1047
  (n, o) => o in t ? String(t[o]) : n
1044
- ) : e, pn = (e, t) => {
1048
+ ) : e, gn = (e, t) => {
1045
1049
  const n = e == null ? void 0 : e[t];
1046
1050
  return typeof n == "string" && n.trim().length > 0 ? n : null;
1047
- }, Pn = (e) => {
1051
+ }, Gn = (e) => {
1048
1052
  const { t } = he("common");
1049
- return Ne(() => {
1053
+ return Oe(() => {
1050
1054
  const n = (o, i) => {
1051
- const r = pn(e, o);
1052
- return r !== null ? sr(r, i) : t(`competitorCard.${o}`, i ?? {});
1055
+ const r = gn(e, o);
1056
+ return r !== null ? cr(r, i) : t(`competitorCard.${o}`, i ?? {});
1053
1057
  };
1054
- return n.optional = (o) => pn(e, o), n;
1058
+ return n.optional = (o) => gn(e, o), n;
1055
1059
  }, [e, t]);
1056
- }, ar = (e, t) => {
1060
+ }, dr = (e, t) => {
1057
1061
  switch (e) {
1058
1062
  case "keeper":
1059
1063
  return t("goalkeepers");
@@ -1064,7 +1068,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1064
1068
  default:
1065
1069
  return t("midfielders");
1066
1070
  }
1067
- }, Un = () => {
1071
+ }, jn = () => {
1068
1072
  const { t: e } = he("common");
1069
1073
  return (t) => e(`potm.${t}`, {
1070
1074
  defaultValue: t.charAt(0).toUpperCase() + t.slice(1)
@@ -1076,7 +1080,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1076
1080
  }) => {
1077
1081
  const { colors: o, fonts: i, radius: r, tint: a } = $();
1078
1082
  return /* @__PURE__ */ s(
1079
- Ko,
1083
+ Ao,
1080
1084
  {
1081
1085
  variant: "outlined",
1082
1086
  sx: {
@@ -1097,10 +1101,10 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1097
1101
  children: e
1098
1102
  }
1099
1103
  );
1100
- }, lr = ({ labels: e }) => {
1101
- const t = Pn(e);
1104
+ }, mr = ({ labels: e }) => {
1105
+ const t = Gn(e);
1102
1106
  return /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
1103
- Yo,
1107
+ Wo,
1104
1108
  {
1105
1109
  notFoundTitle: t("notFound"),
1106
1110
  notFoundMessage: t("notFoundDescription")
@@ -1113,13 +1117,13 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1113
1117
  maxWidthEm: o = 16,
1114
1118
  fontSize: i = "0.75em"
1115
1119
  }) => {
1116
- const { colors: r, fonts: a, radius: l, tint: c } = $(), { shadowRootElement: d } = Fo(Eo), h = $o();
1120
+ const { colors: r, fonts: a, radius: l, tint: c } = $(), { shadowRootElement: d } = Mo(Do), p = Ho();
1117
1121
  return e ? /* @__PURE__ */ s(
1118
- qo,
1122
+ _o,
1119
1123
  {
1120
1124
  title: e,
1121
1125
  placement: n,
1122
- direction: h,
1126
+ direction: p,
1123
1127
  variant: "soft",
1124
1128
  arrow: !0,
1125
1129
  disablePortal: !d,
@@ -1147,34 +1151,34 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1147
1151
  if (!e) return null;
1148
1152
  const t = new Date(e);
1149
1153
  return Number.isNaN(t.getTime()) ? null : t;
1150
- }, Gn = (e, t) => {
1154
+ }, Vn = (e, t) => {
1151
1155
  const n = Ae(e);
1152
1156
  return n ? n.toLocaleTimeString(ie(t), {
1153
1157
  hour: "2-digit",
1154
1158
  minute: "2-digit",
1155
1159
  hour12: !1
1156
1160
  }) : null;
1157
- }, cr = (e, t) => {
1161
+ }, ur = (e, t) => {
1158
1162
  const n = Ae(e);
1159
1163
  return n ? n.toLocaleDateString(ie(t), { day: "numeric" }) : null;
1160
- }, dr = (e, t) => {
1164
+ }, hr = (e, t) => {
1161
1165
  const n = Ae(e);
1162
1166
  return n ? n.toLocaleDateString(ie(t), { month: "short" }) : null;
1163
- }, mr = (e, t) => {
1167
+ }, pr = (e, t) => {
1164
1168
  const n = Ae(e);
1165
1169
  return n ? n.toLocaleDateString(ie(t), {
1166
1170
  weekday: "short",
1167
1171
  day: "numeric",
1168
1172
  month: "short"
1169
1173
  }) : null;
1170
- }, ur = (e, t) => {
1174
+ }, fr = (e, t) => {
1171
1175
  const n = Ae(e);
1172
1176
  return n ? n.toLocaleDateString(ie(t), {
1173
1177
  day: "numeric",
1174
1178
  month: "short",
1175
1179
  year: "numeric"
1176
1180
  }) : null;
1177
- }, v = (e, t) => e.toLocaleString(ie(t)), At = (e, t) => `${e.toLocaleString(ie(t))}%`, _t = (e) => e ? e.slice(0, 10) : null, jn = (e, t) => ({
1181
+ }, I = (e, t) => e.toLocaleString(ie(t)), _t = (e, t) => `${e.toLocaleString(ie(t))}%`, Ft = (e) => e ? e.slice(0, 10) : null, Kn = (e, t) => ({
1178
1182
  display: "inline-flex",
1179
1183
  alignItems: "center",
1180
1184
  gap: "0.375em",
@@ -1191,7 +1195,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1191
1195
  lineHeight: 1.45,
1192
1196
  color: e.dim,
1193
1197
  whiteSpace: "nowrap"
1194
- }), Vn = () => {
1198
+ }), Yn = () => {
1195
1199
  const { colors: e, fonts: t } = $();
1196
1200
  return (n, o) => /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.125em" }, children: [
1197
1201
  /* @__PURE__ */ s(
@@ -1221,8 +1225,8 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1221
1225
  }
1222
1226
  ) : null
1223
1227
  ] });
1224
- }, Kn = ({ chip: e }) => {
1225
- const { colors: t, fonts: n } = $(), o = Vn(), i = !!e.title || !!e.detail, r = /* @__PURE__ */ w(m, { sx: { ...jn(t, i), fontFamily: n.secondary }, children: [
1228
+ }, qn = ({ chip: e }) => {
1229
+ const { colors: t, fonts: n } = $(), o = Yn(), i = !!e.title || !!e.detail, r = /* @__PURE__ */ w(m, { sx: { ...Kn(t, i), fontFamily: n.secondary }, children: [
1226
1230
  /* @__PURE__ */ s(
1227
1231
  m,
1228
1232
  {
@@ -1240,8 +1244,8 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1240
1244
  e.text
1241
1245
  ] });
1242
1246
  return i ? /* @__PURE__ */ s(j, { title: o(e.title ?? e.text, e.detail), fontSize: "1em", children: r }) : r;
1243
- }, Yn = ({ yellowCards: e, redCards: t, label: n, language: o }) => {
1244
- const { colors: i, fonts: r } = $(), a = Vn(), l = (c, d) => `${c}: ${v(d, o)}`;
1247
+ }, Xn = ({ yellowCards: e, redCards: t, label: n, language: o }) => {
1248
+ const { colors: i, fonts: r } = $(), a = Yn(), l = (c, d) => `${c}: ${I(d, o)}`;
1245
1249
  return /* @__PURE__ */ s(
1246
1250
  j,
1247
1251
  {
@@ -1253,7 +1257,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1253
1257
  ].join(" · ")
1254
1258
  ),
1255
1259
  fontSize: "1em",
1256
- children: /* @__PURE__ */ w(m, { sx: { ...jn(i, !0), fontFamily: r.secondary, fontWeight: 400 }, children: [
1260
+ children: /* @__PURE__ */ w(m, { sx: { ...Kn(i, !0), fontFamily: r.secondary, fontWeight: 400 }, children: [
1257
1261
  /* @__PURE__ */ s(
1258
1262
  m,
1259
1263
  {
@@ -1266,7 +1270,7 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1266
1270
  }
1267
1271
  }
1268
1272
  ),
1269
- /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: i.text }, children: v(e, o) }),
1273
+ /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: i.text }, children: I(e, o) }),
1270
1274
  /* @__PURE__ */ s(
1271
1275
  m,
1272
1276
  {
@@ -1280,15 +1284,15 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1280
1284
  }
1281
1285
  }
1282
1286
  ),
1283
- /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: i.text }, children: v(t, o) })
1287
+ /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: i.text }, children: I(t, o) })
1284
1288
  ] })
1285
1289
  }
1286
1290
  );
1287
1291
  }, ne = M.forwardRef(
1288
1292
  ({ cta: e, children: t, sx: n, hoverSx: o, ...i }, r) => {
1289
1293
  const a = (d) => {
1290
- var h;
1291
- (h = i.onClick) == null || h.call(i, d), e.onClick && (e.href && d.preventDefault(), e.onClick());
1294
+ var p;
1295
+ (p = i.onClick) == null || p.call(i, d), e.onClick && (e.href && d.preventDefault(), e.onClick());
1292
1296
  }, l = e.interactive ? { cursor: "pointer", ...o ? { "&:hover": o } : {} } : { cursor: "default" }, c = {
1293
1297
  ...i,
1294
1298
  ref: r,
@@ -1326,53 +1330,53 @@ const ii = Ie("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) =
1326
1330
  }
1327
1331
  );
1328
1332
  ne.displayName = "LinkSurface";
1329
- const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1333
+ const gr = /\{(\w+)\}/g, yr = (e, t) => e.replace(gr, (n, o) => {
1330
1334
  const i = t[o];
1331
1335
  return encodeURIComponent(i ?? "");
1332
1336
  }), Ye = (e, t) => {
1333
- const n = ((e == null ? void 0 : e.url) ?? "").trim(), o = n ? pr(n, t) : null, i = (e == null ? void 0 : e.onClick) ?? null;
1337
+ const n = ((e == null ? void 0 : e.url) ?? "").trim(), o = n ? yr(n, t) : null, i = (e == null ? void 0 : e.onClick) ?? null;
1334
1338
  return {
1335
1339
  href: o,
1336
1340
  target: (e == null ? void 0 : e.target) ?? null,
1337
1341
  onClick: i,
1338
1342
  interactive: !!o || !!i
1339
1343
  };
1340
- }, xt = (e) => {
1344
+ }, St = (e) => {
1341
1345
  const t = e.trim().replace(/^#/, ""), n = t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : t;
1342
1346
  return /^[0-9a-f]{6}$/i.test(n) ? [
1343
1347
  parseInt(n.slice(0, 2), 16),
1344
1348
  parseInt(n.slice(2, 4), 16),
1345
1349
  parseInt(n.slice(4, 6), 16)
1346
1350
  ] : null;
1347
- }, fn = (e) => {
1348
- const t = xt(e);
1351
+ }, yn = (e) => {
1352
+ const t = St(e);
1349
1353
  if (!t) return null;
1350
1354
  const [n, o, i] = t.map((r) => {
1351
1355
  const a = r / 255;
1352
1356
  return a <= 0.03928 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
1353
1357
  });
1354
1358
  return 0.2126 * n + 0.7152 * o + 0.0722 * i;
1355
- }, Ft = (e, t) => {
1356
- const n = fn(e), o = fn(t);
1359
+ }, Et = (e, t) => {
1360
+ const n = yn(e), o = yn(t);
1357
1361
  if (n === null || o === null) return null;
1358
1362
  const [i, r] = n >= o ? [n, o] : [o, n];
1359
1363
  return (i + 0.05) / (r + 0.05);
1360
- }, fr = 1.35, gr = 60, yr = (e, t) => {
1361
- const n = xt(e), o = xt(t);
1364
+ }, xr = 1.35, Sr = 60, wr = (e, t) => {
1365
+ const n = St(e), o = St(t);
1362
1366
  return !n || !o ? null : Math.hypot(
1363
1367
  n[0] - o[0],
1364
1368
  n[1] - o[1],
1365
1369
  n[2] - o[2]
1366
1370
  );
1367
- }, qn = (e, t, n = fr) => {
1368
- const o = Ft(e, t);
1371
+ }, Jn = (e, t, n = xr) => {
1372
+ const o = Et(e, t);
1369
1373
  if (o === null || o >= n) return !0;
1370
- const i = yr(e, t);
1371
- return i !== null && i >= gr;
1372
- }, Et = (e, t) => {
1374
+ const i = wr(e, t);
1375
+ return i !== null && i >= Sr;
1376
+ }, $t = (e, t) => {
1373
1377
  let n = t[0], o = -1;
1374
1378
  for (const i of t) {
1375
- const r = e.map((l) => Ft(i, l)).filter((l) => l !== null);
1379
+ const r = e.map((l) => Et(i, l)).filter((l) => l !== null);
1376
1380
  if (r.length === 0) continue;
1377
1381
  const a = Math.min(...r);
1378
1382
  a > o && (o = a, n = i);
@@ -1382,40 +1386,40 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1382
1386
  branding: e,
1383
1387
  hasBranding: t,
1384
1388
  styles: n
1385
- }) => t && (e == null ? void 0 : e.primary) || n.colors.primary, $t = (e) => {
1389
+ }) => t && (e == null ? void 0 : e.primary) || n.colors.primary, Bt = (e) => {
1386
1390
  var t;
1387
1391
  return e.hasBranding && ((t = e.branding) == null ? void 0 : t.secondary) || _e(e);
1388
1392
  }, oe = (e) => {
1389
1393
  const { branding: t, hasBranding: n, styles: o } = e;
1390
- return !n || !(t != null && t.primary) ? o.colors.primary : qn(t.primary, o.colors.surface) ? t.primary : o.colors.primary;
1391
- }, xr = 4.5, Sr = (e) => [
1394
+ return !n || !(t != null && t.primary) ? o.colors.primary : Jn(t.primary, o.colors.surface) ? t.primary : o.colors.primary;
1395
+ }, kr = 4.5, Cr = (e) => [
1392
1396
  e.colors.onPrimary,
1393
1397
  e.colors.text,
1394
1398
  e.colors.surface
1395
- ], gn = (e, t) => {
1396
- const n = t.map((o) => Ft(e, o)).filter((o) => o !== null);
1399
+ ], xn = (e, t) => {
1400
+ const n = t.map((o) => Et(e, o)).filter((o) => o !== null);
1397
1401
  return n.length === 0 ? null : Math.min(...n);
1398
- }, wr = (e, t) => {
1399
- const n = t.colors.onPrimary, o = gn(n, e);
1400
- if (o === null || o >= kr)
1402
+ }, Ir = (e, t) => {
1403
+ const n = t.colors.onPrimary, o = xn(n, e);
1404
+ if (o === null || o >= vr)
1401
1405
  return { ink: n, readable: !0 };
1402
- const i = Et(e, Sr(t)), r = gn(i, e);
1403
- return { ink: i, readable: r === null || r >= xr };
1404
- }, Xn = (e, t) => {
1406
+ const i = $t(e, Cr(t)), r = xn(i, e);
1407
+ return { ink: i, readable: r === null || r >= kr };
1408
+ }, Qn = (e, t) => {
1405
1409
  if (t != null && t.trim()) return !1;
1406
1410
  const { styles: n } = e;
1407
- return !qn(_e(e), n.colors.surface);
1408
- }, kr = 2.2, qe = (e, t) => {
1411
+ return !Jn(_e(e), n.colors.surface);
1412
+ }, vr = 2.2, qe = (e, t) => {
1409
1413
  const { styles: n } = e;
1410
- return t != null && t.trim() ? n.colors.onPrimary : wr([_e(e), $t(e)], n).ink;
1411
- }, Qn = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${$t(e)}, ${_e(e)})`, Jn = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${_e(e)}, ${$t(e)})`, Zn = (e) => `0 0.5em 1.25em -0.625em ${e.styles.tint(oe(e), 0.6)}`, eo = (e, t) => {
1414
+ return t != null && t.trim() ? n.colors.onPrimary : Ir([_e(e), Bt(e)], n).ink;
1415
+ }, Zn = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${Bt(e)}, ${_e(e)})`, eo = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${_e(e)}, ${Bt(e)})`, to = (e) => `0 0.5em 1.25em -0.625em ${e.styles.tint(oe(e), 0.6)}`, no = (e, t) => {
1412
1416
  if (t != null && t.trim()) return t;
1413
1417
  const { styles: n } = e, o = n.tint(oe(e), 0.08), i = n.tint(oe(e), 0.08);
1414
1418
  return `linear-gradient(to bottom right, ${o} 0%, ${n.colors.surface} 45%, ${n.colors.surface} 55%, ${i} 100%)`;
1415
- }, to = 90, Cr = (e) => Math.max(0, e) * to, no = (e, t) => {
1416
- const n = Cr(e);
1419
+ }, oo = 90, br = (e) => Math.max(0, e) * oo, io = (e, t) => {
1420
+ const n = br(e);
1417
1421
  return n > 0 && t < n ? n : null;
1418
- }, oo = (e) => Math.max(0, e.apps - e.starts), io = (e) => e.goals + e.assists, Bt = (e, t, n = 2) => (t > 0 ? e / t * to : 0).toFixed(n), ke = (e, t) => t > 0 ? (e / t).toFixed(2) : null, Ge = (e, t) => t > 0 ? Math.round(e / t) : null, Ir = ({
1422
+ }, ro = (e) => Math.max(0, e.apps - e.starts), so = (e) => e.goals + e.assists, Lt = (e, t, n = 2) => (t > 0 ? e / t * oo : 0).toFixed(n), ke = (e, t) => t > 0 ? (e / t).toFixed(2) : null, Ge = (e, t) => t > 0 ? Math.round(e / t) : null, Tr = ({
1419
1423
  player: e,
1420
1424
  competitorId: t,
1421
1425
  teamPlayed: n,
@@ -1425,13 +1429,13 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1425
1429
  backgroundGradient: a,
1426
1430
  cta: l
1427
1431
  }) => {
1428
- const { colors: c, fonts: d, radius: h, tint: S } = $(), p = Un(), f = oe(r), g = Et(
1429
- [f],
1432
+ const { colors: c, fonts: d, radius: p, tint: S } = $(), g = jn(), h = oe(r), f = $t(
1433
+ [h],
1430
1434
  [c.onPrimary, c.text, c.surface]
1431
- ), x = e.position === "keeper", { stats: y } = e, k = vt(e.dateOfBirth), I = no(n, y.minutes), C = Math.max(0, y.apps - y.starts), u = x ? { value: y.cleanSheets, caption: i("cleanSheets") } : y.goals > 0 ? { value: y.goals, caption: i("goals") } : y.assists > 0 ? { value: y.assists, caption: i("assists") } : { value: y.minutes, caption: i("minutes") }, b = (B, W) => `${B}: ${v(W, o)}`, F = x ? [
1435
+ ), x = e.position === "keeper", { stats: y } = e, k = bt(e.dateOfBirth), v = io(n, y.minutes), C = Math.max(0, y.apps - y.starts), u = x ? { value: y.cleanSheets, caption: i("cleanSheets") } : y.goals > 0 ? { value: y.goals, caption: i("goals") } : y.assists > 0 ? { value: y.assists, caption: i("assists") } : { value: y.minutes, caption: i("minutes") }, b = (B, W) => `${B}: ${I(W, o)}`, E = x ? [
1432
1436
  {
1433
1437
  key: "conceded",
1434
- value: v(y.goalsConceded, o),
1438
+ value: I(y.goalsConceded, o),
1435
1439
  text: i("goalsConcededShort"),
1436
1440
  title: i("goalsConceded")
1437
1441
  },
@@ -1447,7 +1451,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1447
1451
  },
1448
1452
  {
1449
1453
  key: "minPerApp",
1450
- value: y.apps > 0 ? v(Math.round(y.minutes / y.apps), o) : "0",
1454
+ value: y.apps > 0 ? I(Math.round(y.minutes / y.apps), o) : "0",
1451
1455
  text: i("minutesPerAppearanceShort"),
1452
1456
  title: i("minutesPerAppearance"),
1453
1457
  detail: [
@@ -1458,19 +1462,19 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1458
1462
  ] : [
1459
1463
  {
1460
1464
  key: "goals",
1461
- value: v(y.goals, o),
1465
+ value: I(y.goals, o),
1462
1466
  text: i("goalsShort"),
1463
1467
  title: i("goals")
1464
1468
  },
1465
1469
  {
1466
1470
  key: "assists",
1467
- value: v(y.assists, o),
1471
+ value: I(y.assists, o),
1468
1472
  text: i("assistsShort"),
1469
1473
  title: i("assists")
1470
1474
  },
1471
1475
  {
1472
1476
  key: "minPerGoal",
1473
- value: y.goals > 0 ? v(Math.round(y.minutes / y.goals), o) : "–",
1477
+ value: y.goals > 0 ? I(Math.round(y.minutes / y.goals), o) : "–",
1474
1478
  text: i("minutesPerGoalShort"),
1475
1479
  title: i("minutesPerGoal"),
1476
1480
  detail: [
@@ -1480,7 +1484,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1480
1484
  },
1481
1485
  {
1482
1486
  key: "minPerApp",
1483
- value: y.apps > 0 ? v(Math.round(y.minutes / y.apps), o) : "0",
1487
+ value: y.apps > 0 ? I(Math.round(y.minutes / y.apps), o) : "0",
1484
1488
  text: i("minutesPerAppearanceShort"),
1485
1489
  title: i("minutesPerAppearance"),
1486
1490
  detail: [
@@ -1521,8 +1525,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1521
1525
  marginBlockEnd: "0.5em",
1522
1526
  marginInline: "0.625em",
1523
1527
  padding: "0.875em",
1524
- borderRadius: h.lg,
1525
- background: eo(r, a),
1528
+ borderRadius: p.lg,
1529
+ background: no(r, a),
1526
1530
  border: `1px solid ${c.border}`,
1527
1531
  display: "flex",
1528
1532
  flexDirection: "column",
@@ -1549,9 +1553,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1549
1553
  fontSize: "0.875em",
1550
1554
  fontWeight: 600,
1551
1555
  color: c.dim,
1552
- boxShadow: `0 0 0 0.125em ${c.surface}, 0 0 0 0.25em ${f}`
1556
+ boxShadow: `0 0 0 0.125em ${c.surface}, 0 0 0 0.25em ${h}`
1553
1557
  },
1554
- children: e.headshot ? "" : bt(e.name)
1558
+ children: e.headshot ? "" : Tt(e.name)
1555
1559
  }
1556
1560
  ),
1557
1561
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.125em", minWidth: 0 }, children: [
@@ -1582,7 +1586,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1582
1586
  color: c.dim
1583
1587
  },
1584
1588
  children: [
1585
- p(e.position),
1589
+ g(e.position),
1586
1590
  k !== null ? i("years", { count: k }) : null
1587
1591
  ].filter(Boolean).join(" · ")
1588
1592
  }
@@ -1608,10 +1612,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1608
1612
  fontWeight: 800,
1609
1613
  lineHeight: 1.05,
1610
1614
  letterSpacing: "-0.02em",
1611
- color: f,
1615
+ color: h,
1612
1616
  fontVariantNumeric: "tabular-nums"
1613
1617
  },
1614
- children: v(u.value, o)
1618
+ children: I(u.value, o)
1615
1619
  }
1616
1620
  ),
1617
1621
  /* @__PURE__ */ s(
@@ -1637,8 +1641,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1637
1641
  L(
1638
1642
  D(
1639
1643
  i("minutesPlayed"),
1640
- v(y.minutes, o),
1641
- I === null ? null : v(I, o)
1644
+ I(y.minutes, o),
1645
+ v === null ? null : I(v, o)
1642
1646
  ),
1643
1647
  /* @__PURE__ */ s(
1644
1648
  m,
@@ -1654,9 +1658,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1654
1658
  {
1655
1659
  sx: {
1656
1660
  height: "100%",
1657
- width: I === null ? "100%" : X(y.minutes, I),
1661
+ width: v === null ? "100%" : X(y.minutes, v),
1658
1662
  borderRadius: "999px",
1659
- backgroundColor: f,
1663
+ backgroundColor: h,
1660
1664
  transition: "width 400ms ease"
1661
1665
  }
1662
1666
  }
@@ -1667,8 +1671,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1667
1671
  L(
1668
1672
  D(
1669
1673
  i("appearances"),
1670
- v(y.apps, o),
1671
- v(n, o)
1674
+ I(y.apps, o),
1675
+ I(n, o)
1672
1676
  ),
1673
1677
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
1674
1678
  /* @__PURE__ */ w(
@@ -1688,7 +1692,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1688
1692
  {
1689
1693
  sx: {
1690
1694
  width: X(y.starts, Math.max(1, n)),
1691
- backgroundColor: f,
1695
+ backgroundColor: h,
1692
1696
  transition: "width 400ms ease"
1693
1697
  }
1694
1698
  }
@@ -1698,7 +1702,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1698
1702
  {
1699
1703
  sx: {
1700
1704
  width: X(C, Math.max(1, n)),
1701
- backgroundColor: f,
1705
+ backgroundColor: h,
1702
1706
  opacity: 0.35,
1703
1707
  transition: "width 400ms ease"
1704
1708
  }
@@ -1735,12 +1739,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1735
1739
  width: "0.5em",
1736
1740
  height: "0.5em",
1737
1741
  borderRadius: "50%",
1738
- backgroundColor: f,
1742
+ backgroundColor: h,
1739
1743
  opacity: B.opacity
1740
1744
  }
1741
1745
  }
1742
1746
  ),
1743
- /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: c.text }, children: v(B.value, o) }),
1747
+ /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: c.text }, children: I(B.value, o) }),
1744
1748
  B.text
1745
1749
  ]
1746
1750
  },
@@ -1751,9 +1755,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1751
1755
  ] })
1752
1756
  ),
1753
1757
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.375em", alignItems: "center" }, children: [
1754
- F.map((B) => /* @__PURE__ */ s(Kn, { chip: B }, B.key)),
1758
+ E.map((B) => /* @__PURE__ */ s(qn, { chip: B }, B.key)),
1755
1759
  /* @__PURE__ */ s(
1756
- Yn,
1760
+ Xn,
1757
1761
  {
1758
1762
  yellowCards: y.yellowCards,
1759
1763
  redCards: y.redCards,
@@ -1775,9 +1779,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1775
1779
  width: "100%",
1776
1780
  paddingBlock: "0.5em",
1777
1781
  paddingInline: "1em",
1778
- borderRadius: h.xs,
1779
- backgroundColor: f,
1780
- color: g,
1782
+ borderRadius: p.xs,
1783
+ backgroundColor: h,
1784
+ color: f,
1781
1785
  fontFamily: d.primary,
1782
1786
  fontSize: "0.8125em",
1783
1787
  fontWeight: 600,
@@ -1786,7 +1790,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1786
1790
  hoverSx: { opacity: 0.9 },
1787
1791
  children: [
1788
1792
  i("fullProfile"),
1789
- /* @__PURE__ */ s(In, { children: /* @__PURE__ */ s(ei, { size: 14, "aria-hidden": !0 }) })
1793
+ /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(ni, { size: 14, "aria-hidden": !0 }) })
1790
1794
  ]
1791
1795
  }
1792
1796
  ) : null
@@ -1809,12 +1813,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1809
1813
  children: e
1810
1814
  }
1811
1815
  );
1812
- }, vr = [
1816
+ }, Ar = [
1813
1817
  "keeper",
1814
1818
  "defender",
1815
1819
  "midfielder",
1816
1820
  "forward"
1817
- ], br = ({
1821
+ ], _r = ({
1818
1822
  players: e,
1819
1823
  loading: t,
1820
1824
  competitorId: n,
@@ -1825,20 +1829,20 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1825
1829
  config: l,
1826
1830
  dense: c = !1
1827
1831
  }) => {
1828
- const { colors: d, fonts: h, radius: S, tint: p } = $(), [f, g] = M.useState(null);
1832
+ const { colors: d, fonts: p, radius: S, tint: g } = $(), [h, f] = M.useState(null);
1829
1833
  if (t && e.length === 0)
1830
- return /* @__PURE__ */ s(Cn, { my: 3 });
1834
+ return /* @__PURE__ */ s(bn, { my: 3 });
1831
1835
  if (e.length === 0)
1832
1836
  return /* @__PURE__ */ s(pe, { children: r("noData") });
1833
- const x = c ? "minmax(0, 1fr) 2em 2em 2em" : "minmax(0, 1fr) 2.25em 2.25em 2.25em", y = vr.map((k) => ({
1837
+ const x = c ? "minmax(0, 1fr) 2em 2em 2em" : "minmax(0, 1fr) 2.25em 2.25em 2.25em", y = Ar.map((k) => ({
1834
1838
  position: k,
1835
- players: e.filter((I) => I.position === k).sort((I, C) => C.stats.minutes - I.stats.minutes)
1839
+ players: e.filter((v) => v.position === k).sort((v, C) => C.stats.minutes - v.stats.minutes)
1836
1840
  })).filter((k) => k.players.length > 0);
1837
1841
  return /* @__PURE__ */ s(m, { sx: { display: "flex", flexDirection: "column", gap: "0.875em" }, children: y.map((k) => {
1838
- const I = k.position === "keeper", C = [
1842
+ const v = k.position === "keeper", C = [
1839
1843
  { short: r("appearancesShort"), long: r("appearances") },
1840
- I ? { short: r("cleanSheetsShort"), long: r("cleanSheets") } : { short: r("goalsShort"), long: r("goals") },
1841
- I ? { short: r("goalsConcededShort"), long: r("goalsConceded") } : { short: r("assistsShort"), long: r("assists") }
1844
+ v ? { short: r("cleanSheetsShort"), long: r("cleanSheets") } : { short: r("goalsShort"), long: r("goals") },
1845
+ v ? { short: r("goalsConcededShort"), long: r("goalsConceded") } : { short: r("assistsShort"), long: r("assists") }
1842
1846
  ];
1843
1847
  return /* @__PURE__ */ w(
1844
1848
  m,
@@ -1860,7 +1864,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1860
1864
  T,
1861
1865
  {
1862
1866
  sx: {
1863
- fontFamily: h.primary,
1867
+ fontFamily: p.primary,
1864
1868
  fontSize: "0.75em",
1865
1869
  fontWeight: 600,
1866
1870
  lineHeight: 1.35,
@@ -1868,14 +1872,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1868
1872
  textTransform: "uppercase",
1869
1873
  color: d.dim
1870
1874
  },
1871
- children: ar(k.position, r)
1875
+ children: dr(k.position, r)
1872
1876
  }
1873
1877
  ),
1874
1878
  C.map((u) => /* @__PURE__ */ s(j, { title: u.long, children: /* @__PURE__ */ s(
1875
1879
  T,
1876
1880
  {
1877
1881
  sx: {
1878
- fontFamily: h.primary,
1882
+ fontFamily: p.primary,
1879
1883
  fontSize: "0.6875em",
1880
1884
  fontWeight: 600,
1881
1885
  lineHeight: 1.45,
@@ -1890,10 +1894,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1890
1894
  }
1891
1895
  ),
1892
1896
  k.players.map((u) => {
1893
- const b = f === u.id, F = vt(u.dateOfBirth), _ = [
1897
+ const b = h === u.id, E = bt(u.dateOfBirth), _ = [
1894
1898
  u.stats.apps,
1895
- I ? u.stats.cleanSheets : u.stats.goals,
1896
- I ? u.stats.goalsConceded : u.stats.assists
1899
+ v ? u.stats.cleanSheets : u.stats.goals,
1900
+ v ? u.stats.goalsConceded : u.stats.assists
1897
1901
  ];
1898
1902
  return /* @__PURE__ */ w(M.Fragment, { children: [
1899
1903
  /* @__PURE__ */ w(
@@ -1905,7 +1909,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1905
1909
  // The row itself always expands — a configured `playerCTA` becomes the
1906
1910
  // "Full profile" button INSIDE the card, so opening a player never
1907
1911
  // navigates away from the widget unexpectedly.
1908
- onClick: () => g(b ? null : u.id),
1912
+ onClick: () => f(b ? null : u.id),
1909
1913
  interactive: !0
1910
1914
  },
1911
1915
  "aria-expanded": b,
@@ -1920,7 +1924,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1920
1924
  borderRadius: S.sm,
1921
1925
  backgroundColor: b ? d.inner : "transparent"
1922
1926
  },
1923
- hoverSx: { backgroundColor: p(d.text, 0.05) },
1927
+ hoverSx: { backgroundColor: g(d.text, 0.05) },
1924
1928
  children: [
1925
1929
  /* @__PURE__ */ w(
1926
1930
  m,
@@ -1947,12 +1951,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1947
1951
  display: "flex",
1948
1952
  alignItems: "center",
1949
1953
  justifyContent: "center",
1950
- fontFamily: h.primary,
1954
+ fontFamily: p.primary,
1951
1955
  fontSize: "0.6875em",
1952
1956
  fontWeight: 600,
1953
1957
  color: d.dim
1954
1958
  },
1955
- children: u.headshot ? "" : bt(u.name)
1959
+ children: u.headshot ? "" : Tt(u.name)
1956
1960
  }
1957
1961
  ),
1958
1962
  /* @__PURE__ */ w(
@@ -1968,7 +1972,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1968
1972
  T,
1969
1973
  {
1970
1974
  sx: {
1971
- fontFamily: h.primary,
1975
+ fontFamily: p.primary,
1972
1976
  fontSize: "0.875em",
1973
1977
  fontWeight: 600,
1974
1978
  lineHeight: 1.45,
@@ -1981,16 +1985,16 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
1981
1985
  children: u.name
1982
1986
  }
1983
1987
  ),
1984
- F !== null ? /* @__PURE__ */ s(
1988
+ E !== null ? /* @__PURE__ */ s(
1985
1989
  T,
1986
1990
  {
1987
1991
  sx: {
1988
- fontFamily: h.secondary,
1992
+ fontFamily: p.secondary,
1989
1993
  fontSize: "0.6875em",
1990
1994
  lineHeight: 1.3,
1991
1995
  color: d.dim
1992
1996
  },
1993
- children: r("years", { count: F })
1997
+ children: r("years", { count: E })
1994
1998
  }
1995
1999
  ) : null
1996
2000
  ]
@@ -2003,7 +2007,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2003
2007
  T,
2004
2008
  {
2005
2009
  sx: {
2006
- fontFamily: h.primary,
2010
+ fontFamily: p.primary,
2007
2011
  fontSize: "0.8125em",
2008
2012
  fontWeight: 600,
2009
2013
  lineHeight: 1.55,
@@ -2011,7 +2015,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2011
2015
  textAlign: "end",
2012
2016
  fontVariantNumeric: "tabular-nums"
2013
2017
  },
2014
- children: v(L, i)
2018
+ children: I(L, i)
2015
2019
  },
2016
2020
  D
2017
2021
  ))
@@ -2019,7 +2023,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2019
2023
  }
2020
2024
  ),
2021
2025
  b ? /* @__PURE__ */ s(
2022
- Ir,
2026
+ Tr,
2023
2027
  {
2024
2028
  player: u,
2025
2029
  competitorId: n,
@@ -2038,7 +2042,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2038
2042
  k.position
2039
2043
  );
2040
2044
  }) });
2041
- }, Tr = 8, yn = 3.5, Ar = ({
2045
+ }, Fr = 8, Sn = 3.5, Er = ({
2042
2046
  competitions: e,
2043
2047
  statsByCompetition: t,
2044
2048
  position: n,
@@ -2046,36 +2050,36 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2046
2050
  language: i,
2047
2051
  dense: r = !1
2048
2052
  }) => {
2049
- const { colors: a, fonts: l, radius: c, tint: d } = $(), h = n === "keeper", p = e.filter(
2053
+ const { colors: a, fonts: l, radius: c, tint: d } = $(), p = n === "keeper", g = e.filter(
2050
2054
  (u) => u.id !== z
2051
2055
  ).filter(
2052
2056
  (u) => t.has(u.id)
2053
2057
  );
2054
- if (p.length === 0)
2058
+ if (g.length === 0)
2055
2059
  return /* @__PURE__ */ s(pe, { children: o("noData") });
2056
- const f = p.map((u) => ({
2060
+ const h = g.map((u) => ({
2057
2061
  key: u.id,
2058
2062
  label: u.shortName,
2059
2063
  full: u.name,
2060
2064
  logo: u.logo,
2061
2065
  stats: t.get(u.id),
2062
2066
  total: !1
2063
- })), g = t.get(z);
2064
- g && p.length > 1 && f.push({
2067
+ })), f = t.get(z);
2068
+ f && g.length > 1 && h.push({
2065
2069
  key: z,
2066
2070
  label: o("total"),
2067
2071
  full: o("total"),
2068
2072
  logo: null,
2069
- stats: g,
2073
+ stats: f,
2070
2074
  total: !0
2071
2075
  });
2072
- const x = (u) => v(u, i), y = (u) => u === null ? "–" : v(u, i), k = [
2076
+ const x = (u) => I(u, i), y = (u) => u === null ? "–" : I(u, i), k = [
2073
2077
  { key: "apps", label: o("appearances"), value: (u) => x(u.apps) },
2074
2078
  { key: "starts", label: o("startingAppearances"), value: (u) => x(u.starts) },
2075
2079
  {
2076
2080
  key: "subs",
2077
2081
  label: o("substituteAppearances"),
2078
- value: (u) => x(oo(u))
2082
+ value: (u) => x(ro(u))
2079
2083
  },
2080
2084
  { key: "minutes", label: o("minutesPlayed"), value: (u) => x(u.minutes) },
2081
2085
  {
@@ -2083,7 +2087,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2083
2087
  label: o("minutesPerAppearance"),
2084
2088
  value: (u) => y(Ge(u.minutes, u.apps))
2085
2089
  },
2086
- ...h ? [
2090
+ ...p ? [
2087
2091
  {
2088
2092
  key: "cleanSheets",
2089
2093
  label: o("cleanSheets"),
@@ -2135,14 +2139,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2135
2139
  { key: "yellowCards", label: o("yellowCards"), value: (u) => x(u.yellowCards) },
2136
2140
  { key: "redCards", label: o("redCards"), value: (u) => x(u.redCards) },
2137
2141
  { key: "captain", label: o("captain"), value: (u) => x(u.captain) }
2138
- ], I = `minmax(0, 1fr) repeat(${f.length}, ${yn}em)`, C = `${Tr + f.length * yn}em`;
2142
+ ], v = `minmax(0, 1fr) repeat(${h.length}, ${Sn}em)`, C = `${Fr + h.length * Sn}em`;
2139
2143
  return /* @__PURE__ */ s(m, { sx: { overflowX: "auto", overscrollBehavior: "contain" }, children: /* @__PURE__ */ w(m, { sx: { minWidth: C }, children: [
2140
2144
  /* @__PURE__ */ w(
2141
2145
  m,
2142
2146
  {
2143
2147
  sx: {
2144
2148
  display: "grid",
2145
- gridTemplateColumns: I,
2149
+ gridTemplateColumns: v,
2146
2150
  alignItems: "center",
2147
2151
  gap: "0.5em",
2148
2152
  paddingBlock: "0.375em",
@@ -2165,7 +2169,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2165
2169
  children: o("statistic")
2166
2170
  }
2167
2171
  ),
2168
- f.map((u) => /* @__PURE__ */ s(j, { title: u.full, children: /* @__PURE__ */ w(
2172
+ h.map((u) => /* @__PURE__ */ s(j, { title: u.full, children: /* @__PURE__ */ w(
2169
2173
  m,
2170
2174
  {
2171
2175
  sx: {
@@ -2222,7 +2226,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2222
2226
  {
2223
2227
  sx: {
2224
2228
  display: "grid",
2225
- gridTemplateColumns: I,
2229
+ gridTemplateColumns: v,
2226
2230
  alignItems: "center",
2227
2231
  gap: "0.5em",
2228
2232
  paddingBlock: "0.4375em",
@@ -2245,40 +2249,40 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2245
2249
  children: u.label
2246
2250
  }
2247
2251
  ),
2248
- f.map((F) => /* @__PURE__ */ s(
2252
+ h.map((E) => /* @__PURE__ */ s(
2249
2253
  T,
2250
2254
  {
2251
2255
  sx: {
2252
2256
  fontFamily: l.primary,
2253
2257
  fontSize: "0.8125em",
2254
2258
  // The total is the column the eye lands on, so it carries the weight.
2255
- fontWeight: F.total ? 700 : 500,
2259
+ fontWeight: E.total ? 700 : 500,
2256
2260
  lineHeight: 1.4,
2257
2261
  color: a.text,
2258
2262
  textAlign: "end",
2259
2263
  fontVariantNumeric: "tabular-nums"
2260
2264
  },
2261
- children: u.value(F.stats)
2265
+ children: u.value(E.stats)
2262
2266
  },
2263
- F.key
2267
+ E.key
2264
2268
  ))
2265
2269
  ]
2266
2270
  },
2267
2271
  u.key
2268
2272
  ))
2269
2273
  ] }) });
2270
- }, _r = 0.38, Fr = ({
2274
+ }, $r = 0.38, Br = ({
2271
2275
  competitor: e,
2272
2276
  size: t,
2273
2277
  fallbackUrl: n,
2274
2278
  shadow: o = !1,
2275
2279
  badgeUrl: i
2276
2280
  }) => {
2277
- const { colors: r, fonts: a } = $(), [l, c] = M.useState(!1), d = e.kind === "ATHLETE", h = l ? n : e.image ?? n, S = h ? /* @__PURE__ */ s(
2281
+ const { colors: r, fonts: a } = $(), [l, c] = M.useState(!1), d = e.kind === "ATHLETE", p = l ? n : e.image ?? n, S = p ? /* @__PURE__ */ s(
2278
2282
  m,
2279
2283
  {
2280
2284
  component: "img",
2281
- src: h,
2285
+ src: p,
2282
2286
  alt: e.name,
2283
2287
  loading: "lazy",
2284
2288
  onError: () => c(!0),
@@ -2313,11 +2317,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2313
2317
  color: r.dim,
2314
2318
  lineHeight: 1
2315
2319
  },
2316
- children: bt(e.name)
2320
+ children: Tt(e.name)
2317
2321
  }
2318
2322
  );
2319
2323
  if (!i) return S;
2320
- const p = t * _r;
2324
+ const g = t * $r;
2321
2325
  return /* @__PURE__ */ w(m, { sx: { position: "relative", flexShrink: 0, display: "flex" }, children: [
2322
2326
  S,
2323
2327
  /* @__PURE__ */ s(
@@ -2330,21 +2334,21 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2330
2334
  sx: {
2331
2335
  position: "absolute",
2332
2336
  // Logical insets, so the badge sits on the trailing corner in Arabic too.
2333
- insetInlineEnd: `${-p * 0.18}em`,
2334
- insetBlockEnd: `${-p * 0.15}em`,
2335
- width: `${p}em`,
2336
- height: `${p}em`,
2337
+ insetInlineEnd: `${-g * 0.18}em`,
2338
+ insetBlockEnd: `${-g * 0.15}em`,
2339
+ width: `${g}em`,
2340
+ height: `${g}em`,
2337
2341
  objectFit: "contain",
2338
2342
  // The badge is a transparent PNG over a photo, so it needs its own opaque disc to read.
2339
2343
  backgroundColor: r.surface,
2340
2344
  borderRadius: "50%",
2341
- padding: `${p * 0.1}em`,
2345
+ padding: `${g * 0.1}em`,
2342
2346
  boxShadow: "0 0.0625em 0.1875em rgba(0, 0, 0, 0.3)"
2343
2347
  }
2344
2348
  }
2345
2349
  )
2346
2350
  ] });
2347
- }, Lt = (e, t) => e === "stacked" || e === "responsive" && t, Xe = ({
2351
+ }, Rt = (e, t) => e === "stacked" || e === "responsive" && t, Xe = ({
2348
2352
  competitor: e,
2349
2353
  subtitle: t,
2350
2354
  layout: n,
@@ -2355,20 +2359,20 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2355
2359
  background: l,
2356
2360
  crestShadow: c = !1,
2357
2361
  onBackgroundColor: d,
2358
- nameFontSize: h,
2362
+ nameFontSize: p,
2359
2363
  defaultImagePlaceholderUrl: S,
2360
- badgeUrl: p,
2361
- edgeColor: f,
2362
- children: g
2364
+ badgeUrl: g,
2365
+ edgeColor: h,
2366
+ children: f
2363
2367
  }) => {
2364
- const { colors: x, fonts: y, spacing: k, tint: I } = $(), C = je(), u = d ?? x.text, b = d ? I(d, 0.75) : x.dim, F = /* @__PURE__ */ s(
2365
- Fr,
2368
+ const { colors: x, fonts: y, spacing: k, tint: v } = $(), C = je(), u = d ?? x.text, b = d ? v(d, 0.75) : x.dim, E = /* @__PURE__ */ s(
2369
+ Br,
2366
2370
  {
2367
2371
  competitor: e,
2368
2372
  size: r,
2369
2373
  fallbackUrl: S,
2370
2374
  shadow: c,
2371
- badgeUrl: p
2375
+ badgeUrl: g
2372
2376
  }
2373
2377
  ), _ = /* @__PURE__ */ w(
2374
2378
  m,
@@ -2385,7 +2389,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2385
2389
  {
2386
2390
  sx: {
2387
2391
  fontFamily: y.primary,
2388
- fontSize: h,
2392
+ fontSize: p,
2389
2393
  fontWeight: n === "stacked" || l ? 700 : 600,
2390
2394
  lineHeight: 1.25,
2391
2395
  letterSpacing: l ? "-0.01em" : void 0,
@@ -2431,7 +2435,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2431
2435
  padding: a,
2432
2436
  ...l ? { background: l } : {},
2433
2437
  ...d ? { color: d } : {},
2434
- ...f ? { borderBlockEnd: `1px solid ${f}` } : {}
2438
+ ...h ? { borderBlockEnd: `1px solid ${h}` } : {}
2435
2439
  },
2436
2440
  children: [
2437
2441
  /* @__PURE__ */ w(
@@ -2446,31 +2450,31 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2446
2450
  maxWidth: "100%"
2447
2451
  },
2448
2452
  children: [
2449
- F,
2453
+ E,
2450
2454
  _
2451
2455
  ]
2452
2456
  }
2453
2457
  ),
2454
- g,
2458
+ f,
2455
2459
  i
2456
2460
  ]
2457
2461
  }
2458
2462
  );
2459
- const L = !Lt(o, C);
2463
+ const L = !Rt(o, C);
2460
2464
  return /* @__PURE__ */ w(
2461
2465
  m,
2462
2466
  {
2463
2467
  sx: {
2464
2468
  display: "flex",
2465
2469
  flexDirection: "column",
2466
- gap: g ? "1.25em" : 0,
2470
+ gap: f ? "1.25em" : 0,
2467
2471
  padding: a,
2468
2472
  ...l ? { background: l } : {},
2469
2473
  // The design sets `color:#fff` on the header wrapper, so everything inside it — the hero's
2470
2474
  // stat tiles included — inherits it. Without this they inherit the card's body colour and
2471
2475
  // render near-black on the gradient.
2472
2476
  ...d ? { color: d } : {},
2473
- ...f ? { borderBlockEnd: `1px solid ${f}` } : {}
2477
+ ...h ? { borderBlockEnd: `1px solid ${h}` } : {}
2474
2478
  },
2475
2479
  children: [
2476
2480
  /* @__PURE__ */ w(
@@ -2494,7 +2498,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2494
2498
  minWidth: 0
2495
2499
  },
2496
2500
  children: [
2497
- F,
2501
+ E,
2498
2502
  _
2499
2503
  ]
2500
2504
  }
@@ -2503,11 +2507,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2503
2507
  ]
2504
2508
  }
2505
2509
  ),
2506
- g
2510
+ f
2507
2511
  ]
2508
2512
  }
2509
2513
  );
2510
- }, Qe = ({
2514
+ }, Je = ({
2511
2515
  view: e,
2512
2516
  onToggle: t,
2513
2517
  appearance: n,
@@ -2518,17 +2522,17 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2518
2522
  onColor: l,
2519
2523
  stacked: c = !1
2520
2524
  }) => {
2521
- const { colors: d, fonts: h, radius: S, tint: p } = $(), f = l ?? d.onPrimary;
2525
+ const { colors: d, fonts: p, radius: S, tint: g } = $(), h = l ?? d.onPrimary;
2522
2526
  if (!o && !i) return null;
2523
- const g = n === "onBrand" || n === "block", x = n === "icon", y = (I, C, u) => {
2524
- const b = e === I, F = /* @__PURE__ */ s(
2527
+ const f = n === "onBrand" || n === "block", x = n === "icon", y = (v, C, u) => {
2528
+ const b = e === v, E = /* @__PURE__ */ s(
2525
2529
  m,
2526
2530
  {
2527
2531
  component: "button",
2528
2532
  type: "button",
2529
2533
  "aria-pressed": b,
2530
2534
  "aria-label": x ? C : void 0,
2531
- onClick: () => t(I),
2535
+ onClick: () => t(v),
2532
2536
  sx: {
2533
2537
  display: "flex",
2534
2538
  alignItems: "center",
@@ -2536,7 +2540,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2536
2540
  gap: "0.5em",
2537
2541
  cursor: "pointer",
2538
2542
  whiteSpace: "nowrap",
2539
- fontFamily: h.primary,
2543
+ fontFamily: p.primary,
2540
2544
  borderStyle: "solid",
2541
2545
  borderWidth: "1px",
2542
2546
  transition: "background-color 150ms ease, opacity 150ms ease",
@@ -2555,12 +2559,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2555
2559
  borderRadius: S.xs,
2556
2560
  ...n === "block" ? { width: "100%" } : {}
2557
2561
  },
2558
- ...g ? {
2562
+ ...f ? {
2559
2563
  // On the branded header a theme colour would either vanish into the club's own or
2560
2564
  // fight it, so the unfilled state is a frost of the header's own ink.
2561
- backgroundColor: b ? d.primary : p(f, 0.15),
2562
- borderColor: b ? "transparent" : p(f, 0.2),
2563
- color: b ? d.onPrimary : f
2565
+ backgroundColor: b ? d.primary : g(h, 0.15),
2566
+ borderColor: b ? "transparent" : g(h, 0.2),
2567
+ color: b ? d.onPrimary : h
2564
2568
  } : {
2565
2569
  backgroundColor: b ? d.primary : "transparent",
2566
2570
  color: b ? d.onPrimary : d.text,
@@ -2572,7 +2576,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2572
2576
  children: x ? u : C
2573
2577
  }
2574
2578
  );
2575
- return /* @__PURE__ */ s(j, { title: x ? C : null, children: F }, I);
2579
+ return /* @__PURE__ */ s(j, { title: x ? C : null, children: E }, v);
2576
2580
  }, k = n === "block" || c;
2577
2581
  return /* @__PURE__ */ w(
2578
2582
  m,
@@ -2586,11 +2590,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2586
2590
  ...n === "block" ? { width: "100%" } : {}
2587
2591
  },
2588
2592
  children: [
2589
- o ? y("fixtures", a.fixtures, /* @__PURE__ */ s(ti, { size: 14, "aria-hidden": !0 })) : null,
2593
+ o ? y("fixtures", a.fixtures, /* @__PURE__ */ s(oi, { size: 14, "aria-hidden": !0 })) : null,
2590
2594
  i ? y(
2591
2595
  r,
2592
2596
  a.secondary,
2593
- r === "squad" ? /* @__PURE__ */ s(Xo, { size: 14, "aria-hidden": !0 }) : /* @__PURE__ */ s(ni, { size: 14, "aria-hidden": !0 })
2597
+ r === "squad" ? /* @__PURE__ */ s(Jo, { size: 14, "aria-hidden": !0 }) : /* @__PURE__ */ s(ii, { size: 14, "aria-hidden": !0 })
2594
2598
  ) : null
2595
2599
  ]
2596
2600
  }
@@ -2653,7 +2657,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2653
2657
  }
2654
2658
  },
2655
2659
  children: [
2656
- /* @__PURE__ */ s(In, { children: /* @__PURE__ */ s(Qo, { size: 14, "aria-hidden": !0 }) }),
2660
+ /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(Qo, { size: 14, "aria-hidden": !0 }) }),
2657
2661
  e
2658
2662
  ]
2659
2663
  }
@@ -2666,7 +2670,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2666
2670
  ]
2667
2671
  }
2668
2672
  );
2669
- }, Je = ({
2673
+ }, Qe = ({
2670
2674
  competitions: e,
2671
2675
  selectedId: t,
2672
2676
  onSelect: n,
@@ -2674,24 +2678,24 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2674
2678
  allLabel: i,
2675
2679
  onColor: r
2676
2680
  }) => {
2677
- const { colors: a, fonts: l, radius: c, tint: d } = $(), h = r ?? a.onPrimary, S = Et([h], [a.surface, a.text]);
2681
+ const { colors: a, fonts: l, radius: c, tint: d } = $(), p = r ?? a.onPrimary, S = $t([p], [a.surface, a.text]);
2678
2682
  if (e.length < 2) return null;
2679
- const p = o === "rail";
2683
+ const g = o === "rail";
2680
2684
  return /* @__PURE__ */ s(
2681
2685
  m,
2682
2686
  {
2683
2687
  sx: {
2684
2688
  display: "flex",
2685
- flexDirection: p ? "column" : "row",
2686
- gap: p ? "0.125em" : "0.25em",
2689
+ flexDirection: g ? "column" : "row",
2690
+ gap: g ? "0.125em" : "0.25em",
2687
2691
  flexWrap: "nowrap",
2688
- ...p ? {
2692
+ ...g ? {
2689
2693
  flexShrink: 0,
2690
2694
  width: "100%",
2691
2695
  padding: "0.25em",
2692
2696
  borderRadius: c.md,
2693
- backgroundColor: d(h, 0.1),
2694
- border: `1px solid ${d(h, 0.18)}`
2697
+ backgroundColor: d(p, 0.1),
2698
+ border: `1px solid ${d(p, 0.18)}`
2695
2699
  } : {
2696
2700
  // A scroll rail, not a wrapping row. A competitor can be in five competitions, whose
2697
2701
  // full names are far wider than a sidebar card — wrapping would push the statistics
@@ -2714,14 +2718,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2714
2718
  "&::-webkit-scrollbar": { display: "none" }
2715
2719
  }
2716
2720
  },
2717
- children: e.map((f) => {
2718
- const g = f.id === t, x = f.id === z ? i : o === "pills" ? f.shortName : f.name, y = /* @__PURE__ */ w(
2721
+ children: e.map((h) => {
2722
+ const f = h.id === t, x = h.id === z ? i : o === "pills" ? h.shortName : h.name, y = /* @__PURE__ */ w(
2719
2723
  m,
2720
2724
  {
2721
2725
  component: "button",
2722
2726
  type: "button",
2723
- "aria-pressed": g,
2724
- onClick: () => n(f.id),
2727
+ "aria-pressed": f,
2728
+ onClick: () => n(h.id),
2725
2729
  sx: {
2726
2730
  display: "flex",
2727
2731
  alignItems: "center",
@@ -2732,38 +2736,38 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2732
2736
  fontWeight: o === "pills" ? 600 : 500,
2733
2737
  lineHeight: 1.35,
2734
2738
  whiteSpace: "nowrap",
2735
- paddingBlock: p ? "0.5em" : "0.125em",
2736
- paddingInline: p ? "0.75em" : o === "pills" ? "0.65em" : "0.5em",
2739
+ paddingBlock: g ? "0.5em" : "0.125em",
2740
+ paddingInline: g ? "0.75em" : o === "pills" ? "0.65em" : "0.5em",
2737
2741
  borderRadius: o === "pills" ? "999px" : c.xs,
2738
2742
  textAlign: "start",
2739
2743
  // On the rail the list is a fixed width, so a long name truncates. On the scrolling
2740
2744
  // row it must NOT: a pill that shrinks to "Gree…" defeats the scroll it was given —
2741
2745
  // the point is to reach the whole name, not to fit every name on screen at once.
2742
- ...p ? { minWidth: 0 } : { flexShrink: 0 },
2746
+ ...g ? { minWidth: 0 } : { flexShrink: 0 },
2743
2747
  // Entity text: a competition name comes from the API in whatever language it has.
2744
2748
  unicodeBidi: "plaintext",
2745
- ...p ? {
2749
+ ...g ? {
2746
2750
  width: "100%",
2747
2751
  border: "none",
2748
2752
  // The selected pill is the rail's ink at full strength, which inverts with it:
2749
2753
  // white on a dark club gradient, dark on a light one. `colors.surface` would be
2750
2754
  // a white pill on a white rail for a club like Real Madrid.
2751
- backgroundColor: g ? h : "transparent",
2752
- color: g ? S : d(h, 0.9),
2755
+ backgroundColor: f ? p : "transparent",
2756
+ color: f ? S : d(p, 0.9),
2753
2757
  "&:hover": {
2754
- backgroundColor: g ? h : d(h, 0.12)
2758
+ backgroundColor: f ? p : d(p, 0.12)
2755
2759
  }
2756
2760
  } : {
2757
- border: `1px solid ${g ? a.primary : a.border}`,
2758
- backgroundColor: g ? a.primary : "transparent",
2759
- color: g ? a.onPrimary : a.dim,
2761
+ border: `1px solid ${f ? a.primary : a.border}`,
2762
+ backgroundColor: f ? a.primary : "transparent",
2763
+ color: f ? a.onPrimary : a.dim,
2760
2764
  "&:hover": {
2761
- backgroundColor: g ? a.primary : d(a.text, 0.06)
2765
+ backgroundColor: f ? a.primary : d(a.text, 0.06)
2762
2766
  }
2763
2767
  }
2764
2768
  },
2765
2769
  children: [
2766
- p ? /* @__PURE__ */ s(
2770
+ g ? /* @__PURE__ */ s(
2767
2771
  m,
2768
2772
  {
2769
2773
  "aria-hidden": !0,
@@ -2772,7 +2776,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2772
2776
  height: "0.375em",
2773
2777
  borderRadius: "50%",
2774
2778
  flexShrink: 0,
2775
- backgroundColor: g ? a.primary : d(h, 0.45)
2779
+ backgroundColor: f ? a.primary : d(p, 0.45)
2776
2780
  }
2777
2781
  }
2778
2782
  ) : null,
@@ -2783,7 +2787,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2783
2787
  sx: {
2784
2788
  whiteSpace: "nowrap",
2785
2789
  // Truncation belongs to the rail alone — see the button's own note.
2786
- ...p ? { overflow: "hidden", textOverflow: "ellipsis" } : {}
2790
+ ...g ? { overflow: "hidden", textOverflow: "ellipsis" } : {}
2787
2791
  },
2788
2792
  children: x
2789
2793
  }
@@ -2794,15 +2798,15 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2794
2798
  return /* @__PURE__ */ s(
2795
2799
  j,
2796
2800
  {
2797
- title: x === f.name ? null : f.name,
2801
+ title: x === h.name ? null : h.name,
2798
2802
  children: y
2799
2803
  },
2800
- f.id
2804
+ h.id
2801
2805
  );
2802
2806
  })
2803
2807
  }
2804
2808
  );
2805
- }, Er = ({
2809
+ }, Lr = ({
2806
2810
  fixture: e,
2807
2811
  competitor: t,
2808
2812
  language: n,
@@ -2812,15 +2816,15 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2812
2816
  athleteId: a,
2813
2817
  dense: l = !1
2814
2818
  }) => {
2815
- const { colors: c, fonts: d, radius: h, tint: S } = $(), p = Ye(i, {
2819
+ const { colors: c, fonts: d, radius: p, tint: S } = $(), g = Ye(i, {
2816
2820
  matchId: e.id,
2817
2821
  competitorId: t.id,
2818
2822
  opponentId: e.opponentId,
2819
2823
  competitionId: e.competitionId,
2820
2824
  seasonId: e.seasonId,
2821
- date: _t(e.date),
2825
+ date: Ft(e.date),
2822
2826
  athleteId: a
2823
- }), f = e.isHome ? o("home") : o("away"), g = r ? [f, e.competitionName].filter(Boolean).join(" · ") : f, x = e.isHome ? e.ownScore : e.opponentScore, y = e.isHome ? e.opponentScore : e.ownScore, k = e.outcome === "W" ? o("wonShort") : e.outcome === "L" ? o("lostShort") : o("drawnShort"), I = e.status === "upcoming" ? { text: Gn(e.date, n) ?? "", color: c.text } : {
2827
+ }), h = e.isHome ? o("home") : o("away"), f = r ? [h, e.competitionName].filter(Boolean).join(" · ") : h, x = e.isHome ? e.ownScore : e.opponentScore, y = e.isHome ? e.opponentScore : e.ownScore, k = e.outcome === "W" ? o("wonShort") : e.outcome === "L" ? o("lostShort") : o("drawnShort"), v = e.status === "upcoming" ? { text: Vn(e.date, n) ?? "", color: c.text } : {
2824
2828
  // The score is the REGULATION one, so a result settled later says so.
2825
2829
  text: [
2826
2830
  `${k} ${x ?? "?"}-${y ?? "?"}`,
@@ -2831,8 +2835,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2831
2835
  return /* @__PURE__ */ w(
2832
2836
  ne,
2833
2837
  {
2834
- cta: p,
2835
- title: p.href ?? void 0,
2838
+ cta: g,
2839
+ title: g.href ?? void 0,
2836
2840
  sx: {
2837
2841
  display: "grid",
2838
2842
  gridTemplateColumns: l ? "2.125em 1.5em minmax(0, 1fr) auto" : "2.5em 1.75em minmax(0, 1fr) auto",
@@ -2842,7 +2846,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2842
2846
  paddingBlock: l ? "0.375em" : "0.5em",
2843
2847
  paddingInline: l ? "0.5em" : "0.625em",
2844
2848
  border: `1px solid ${c.border}`,
2845
- borderRadius: h.sm,
2849
+ borderRadius: p.sm,
2846
2850
  backgroundColor: c.surface
2847
2851
  },
2848
2852
  hoverSx: { backgroundColor: S(c.text, 0.05) },
@@ -2858,7 +2862,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2858
2862
  lineHeight: 1.25,
2859
2863
  color: c.text
2860
2864
  },
2861
- children: cr(e.date, n) ?? ""
2865
+ children: ur(e.date, n) ?? ""
2862
2866
  }
2863
2867
  ),
2864
2868
  /* @__PURE__ */ s(
@@ -2870,7 +2874,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2870
2874
  lineHeight: 1.3,
2871
2875
  color: c.dim
2872
2876
  },
2873
- children: dr(e.date, n) ?? ""
2877
+ children: hr(e.date, n) ?? ""
2874
2878
  }
2875
2879
  )
2876
2880
  ] }),
@@ -2921,7 +2925,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2921
2925
  textOverflow: "ellipsis",
2922
2926
  unicodeBidi: "plaintext"
2923
2927
  },
2924
- children: g
2928
+ children: f
2925
2929
  }
2926
2930
  )
2927
2931
  ] }),
@@ -2933,17 +2937,17 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2933
2937
  fontSize: "0.875em",
2934
2938
  fontWeight: 700,
2935
2939
  lineHeight: 1.45,
2936
- color: I.color,
2940
+ color: v.color,
2937
2941
  whiteSpace: "nowrap",
2938
2942
  fontVariantNumeric: "tabular-nums"
2939
2943
  },
2940
- children: /* @__PURE__ */ s(Z, { children: I.text })
2944
+ children: /* @__PURE__ */ s(Z, { children: v.text })
2941
2945
  }
2942
2946
  )
2943
2947
  ]
2944
2948
  }
2945
2949
  );
2946
- }, xn = 5, Ze = ({
2950
+ }, wn = 5, Ze = ({
2947
2951
  upcoming: e,
2948
2952
  results: t,
2949
2953
  competitor: n,
@@ -2955,9 +2959,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2955
2959
  athleteId: c,
2956
2960
  dense: d = !1
2957
2961
  }) => {
2958
- const { colors: h, fonts: S } = $(), [p, f] = M.useState(!1), [g, x] = M.useState(!1), y = (C, u, b, F) => {
2962
+ const { colors: p, fonts: S } = $(), [g, h] = M.useState(!1), [f, x] = M.useState(!1), y = (C, u, b, E) => {
2959
2963
  if (u.length === 0) return null;
2960
- const _ = u.length > xn, L = b || !_ ? u : u.slice(0, xn), D = b && _;
2964
+ const _ = u.length > wn, L = b || !_ ? u : u.slice(0, wn), D = b && _;
2961
2965
  return /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.375em" }, children: [
2962
2966
  /* @__PURE__ */ s(
2963
2967
  T,
@@ -2969,7 +2973,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2969
2973
  lineHeight: 1.35,
2970
2974
  letterSpacing: "0.05em",
2971
2975
  textTransform: "uppercase",
2972
- color: h.dim,
2976
+ color: p.dim,
2973
2977
  paddingInline: "0.125em",
2974
2978
  textAlign: l === "center" ? "center" : l === "right" ? "end" : "start"
2975
2979
  },
@@ -2992,7 +2996,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
2992
2996
  } : {}
2993
2997
  },
2994
2998
  children: L.map((B) => /* @__PURE__ */ s(
2995
- Er,
2999
+ Lr,
2996
3000
  {
2997
3001
  fixture: B,
2998
3002
  competitor: n,
@@ -3012,12 +3016,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3012
3016
  {
3013
3017
  component: "button",
3014
3018
  type: "button",
3015
- onClick: () => F(!b),
3019
+ onClick: () => E(!b),
3016
3020
  sx: {
3017
3021
  alignSelf: "center",
3018
3022
  border: "none",
3019
3023
  backgroundColor: "transparent",
3020
- color: h.dim,
3024
+ color: p.dim,
3021
3025
  cursor: "pointer",
3022
3026
  fontFamily: S.primary,
3023
3027
  fontSize: "0.75em",
@@ -3026,7 +3030,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3026
3030
  paddingBlock: "0.25em",
3027
3031
  paddingInline: "0.5em",
3028
3032
  borderRadius: "0.25em",
3029
- "&:hover": { color: h.text }
3033
+ "&:hover": { color: p.text }
3030
3034
  },
3031
3035
  children: b ? i("showFewer") : i("showAll", { count: u.length })
3032
3036
  }
@@ -3035,17 +3039,17 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3035
3039
  }, k = y(
3036
3040
  i("upcoming"),
3037
3041
  e,
3038
- p,
3039
- f
3040
- ), I = y(
3042
+ g,
3043
+ h
3044
+ ), v = y(
3041
3045
  i("results"),
3042
3046
  t,
3043
- g,
3047
+ f,
3044
3048
  x
3045
3049
  );
3046
- return !k && !I ? /* @__PURE__ */ s(pe, { children: i("noData") }) : /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.75em" }, children: [
3050
+ return !k && !v ? /* @__PURE__ */ s(pe, { children: i("noData") }) : /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.75em" }, children: [
3047
3051
  k,
3048
- I
3052
+ v
3049
3053
  ] });
3050
3054
  }, et = ({ children: e }) => {
3051
3055
  const { colors: t, fonts: n } = $();
@@ -3062,14 +3066,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3062
3066
  children: e
3063
3067
  }
3064
3068
  ) : null;
3065
- }, $r = ({
3069
+ }, Rr = ({
3066
3070
  title: e,
3067
3071
  align: t,
3068
3072
  trailing: n,
3069
3073
  color: o,
3070
3074
  stackTrailing: i = !1
3071
3075
  }) => {
3072
- const { colors: r, fonts: a } = $(), l = t === "center" ? "center" : t === "right" ? "end" : "start", c = t === "center" ? "center" : t === "right" ? "flex-end" : "flex-start", d = !!n && (i || t === "right"), h = t === "center" && !!n && !d;
3076
+ const { colors: r, fonts: a } = $(), l = t === "center" ? "center" : t === "right" ? "end" : "start", c = t === "center" ? "center" : t === "right" ? "flex-end" : "flex-start", d = !!n && (i || t === "right"), p = t === "center" && !!n && !d;
3073
3077
  return /* @__PURE__ */ w(
3074
3078
  m,
3075
3079
  {
@@ -3079,7 +3083,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3079
3083
  flexDirection: "column",
3080
3084
  alignItems: "stretch",
3081
3085
  gap: "0.5em"
3082
- } : h ? {
3086
+ } : p ? {
3083
3087
  display: "grid",
3084
3088
  gridTemplateColumns: "minmax(0, 1fr) auto minmax(0, 1fr)",
3085
3089
  alignItems: "center",
@@ -3115,7 +3119,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3115
3119
  // `auto` rather than a zero basis: with a zero basis the title carries no weight when the
3116
3120
  // row has to give ground, so a wide control beside it would take the whole row and leave
3117
3121
  // the title at nothing. On its own width it wraps instead, and the control shrinks too.
3118
- ...h ? { gridColumn: 2 } : { flex: "1 1 auto" },
3122
+ ...p ? { gridColumn: 2 } : { flex: "1 1 auto" },
3119
3123
  minWidth: 0
3120
3124
  },
3121
3125
  children: e
@@ -3133,7 +3137,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3133
3137
  minWidth: 0,
3134
3138
  // Stacked, the control sits under the title and follows its alignment.
3135
3139
  ...d ? { justifyContent: c } : {},
3136
- ...h ? { gridColumn: 3, justifySelf: "end" } : {}
3140
+ ...p ? { gridColumn: 3, justifySelf: "end" } : {}
3137
3141
  },
3138
3142
  children: n
3139
3143
  }
@@ -3141,7 +3145,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3141
3145
  ]
3142
3146
  }
3143
3147
  );
3144
- }, Rt = ({
3148
+ }, Wt = ({
3145
3149
  title: e,
3146
3150
  align: t,
3147
3151
  children: n,
@@ -3152,7 +3156,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3152
3156
  paddingBlockEnd: l,
3153
3157
  background: c,
3154
3158
  borderBlockStart: d = !1,
3155
- stackTrailing: h = !1
3159
+ stackTrailing: p = !1
3156
3160
  }) => /* @__PURE__ */ w(
3157
3161
  m,
3158
3162
  {
@@ -3166,18 +3170,18 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3166
3170
  },
3167
3171
  children: [
3168
3172
  e ? /* @__PURE__ */ s(
3169
- $r,
3173
+ Rr,
3170
3174
  {
3171
3175
  title: e,
3172
3176
  align: t,
3173
3177
  trailing: o,
3174
- stackTrailing: h
3178
+ stackTrailing: p
3175
3179
  }
3176
3180
  ) : null,
3177
3181
  n
3178
3182
  ]
3179
3183
  }
3180
- ), Br = /^(AMERICAN_FOOTBALL|BASKETBALL|RUGBY(_|$)|AUSTRALIAN_FOOTBALL)/, Lr = (e) => Br.test((e ?? "").toUpperCase()), Wt = (e, t) => Lr(e) ? {
3184
+ ), Wr = /^(AMERICAN_FOOTBALL|BASKETBALL|RUGBY(_|$)|AUSTRALIAN_FOOTBALL)/, Mr = (e) => Wr.test((e ?? "").toUpperCase()), Mt = (e, t) => Mr(e) ? {
3181
3185
  scored: t("pointsFor"),
3182
3186
  conceded: t("pointsAgainst"),
3183
3187
  forLong: t("pointsFor"),
@@ -3195,7 +3199,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3195
3199
  againstShort: t("goalsAgainstShort"),
3196
3200
  difference: t("goalDifference"),
3197
3201
  differenceShort: t("goalDifferenceShort")
3198
- }, Sn = ({
3202
+ }, kn = ({
3199
3203
  stats: e,
3200
3204
  label: t,
3201
3205
  language: n,
@@ -3204,22 +3208,22 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3204
3208
  showGoalDifference: r = !0,
3205
3209
  sport: a
3206
3210
  }) => {
3207
- const { colors: l, fonts: c, tint: d } = $(), h = Wt(a, t), S = Ct(e.goalsFor, e.goalsAgainst), p = Math.max(e.goalsFor, e.goalsAgainst, 1), f = [
3211
+ const { colors: l, fonts: c, tint: d } = $(), p = Mt(a, t), S = It(e.goalsFor, e.goalsAgainst), g = Math.max(e.goalsFor, e.goalsAgainst, 1), h = [
3208
3212
  { key: "won", count: e.won, color: l.success, text: t("won") },
3209
3213
  { key: "drawn", count: e.drawn, color: l.dim, text: t("drawn") },
3210
3214
  { key: "lost", count: e.lost, color: l.danger, text: t("lost") }
3211
- ], g = [
3215
+ ], f = [
3212
3216
  {
3213
3217
  key: "scored",
3214
- text: h.forShort,
3215
- title: `${h.scored}: ${v(e.goalsFor, n)}`,
3218
+ text: p.forShort,
3219
+ title: `${p.scored}: ${I(e.goalsFor, n)}`,
3216
3220
  value: e.goalsFor,
3217
3221
  color: oe(o)
3218
3222
  },
3219
3223
  {
3220
3224
  key: "conceded",
3221
- text: h.againstShort,
3222
- title: `${h.conceded}: ${v(e.goalsAgainst, n)}`,
3225
+ text: p.againstShort,
3226
+ title: `${p.conceded}: ${I(e.goalsAgainst, n)}`,
3223
3227
  value: e.goalsAgainst,
3224
3228
  color: l.dim
3225
3229
  }
@@ -3256,7 +3260,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3256
3260
  lineHeight: 1.35,
3257
3261
  color: l.text
3258
3262
  },
3259
- children: `${v(e.played, n)} ${t("played").toLowerCase()}`
3263
+ children: `${I(e.played, n)} ${t("played").toLowerCase()}`
3260
3264
  }
3261
3265
  ),
3262
3266
  i ? /* @__PURE__ */ s(
@@ -3270,7 +3274,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3270
3274
  color: l.dim,
3271
3275
  whiteSpace: "nowrap"
3272
3276
  },
3273
- children: `${At(It(e.won, e.played), n)} ${t("winRate")}`
3277
+ children: `${_t(vt(e.won, e.played), n)} ${t("winRate")}`
3274
3278
  }
3275
3279
  ) : null
3276
3280
  ]
@@ -3287,10 +3291,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3287
3291
  backgroundColor: l.inner,
3288
3292
  gap: "0.125em"
3289
3293
  },
3290
- children: f.map((x) => /* @__PURE__ */ s(
3294
+ children: h.map((x) => /* @__PURE__ */ s(
3291
3295
  j,
3292
3296
  {
3293
- title: `${x.text} ${v(x.count, n)}`,
3297
+ title: `${x.text} ${I(x.count, n)}`,
3294
3298
  children: /* @__PURE__ */ s(
3295
3299
  m,
3296
3300
  {
@@ -3306,7 +3310,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3306
3310
  ))
3307
3311
  }
3308
3312
  ),
3309
- /* @__PURE__ */ s(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.75em" }, children: f.map((x) => /* @__PURE__ */ w(
3313
+ /* @__PURE__ */ s(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.75em" }, children: h.map((x) => /* @__PURE__ */ w(
3310
3314
  m,
3311
3315
  {
3312
3316
  sx: {
@@ -3333,7 +3337,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3333
3337
  }
3334
3338
  }
3335
3339
  ),
3336
- /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: l.text }, children: v(x.count, n) }),
3340
+ /* @__PURE__ */ s(m, { component: "span", sx: { fontWeight: 700, color: l.text }, children: I(x.count, n) }),
3337
3341
  x.text
3338
3342
  ]
3339
3343
  },
@@ -3341,7 +3345,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3341
3345
  )) })
3342
3346
  ] }),
3343
3347
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
3344
- g.map((x) => /* @__PURE__ */ w(
3348
+ f.map((x) => /* @__PURE__ */ w(
3345
3349
  m,
3346
3350
  {
3347
3351
  sx: {
@@ -3380,7 +3384,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3380
3384
  {
3381
3385
  sx: {
3382
3386
  height: "100%",
3383
- width: X(x.value, p),
3387
+ width: X(x.value, g),
3384
3388
  borderRadius: "999px",
3385
3389
  backgroundColor: x.color,
3386
3390
  transition: "width 400ms ease"
@@ -3401,7 +3405,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3401
3405
  textAlign: "end",
3402
3406
  fontVariantNumeric: "tabular-nums"
3403
3407
  },
3404
- children: v(x.value, n)
3408
+ children: I(x.value, n)
3405
3409
  }
3406
3410
  )
3407
3411
  ]
@@ -3411,7 +3415,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3411
3415
  r ? /* @__PURE__ */ s(m, { sx: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ s(
3412
3416
  j,
3413
3417
  {
3414
- title: `${h.difference}: ${Bo(me(S))}`,
3418
+ title: `${p.difference}: ${zo(me(S))}`,
3415
3419
  children: /* @__PURE__ */ w(
3416
3420
  m,
3417
3421
  {
@@ -3432,7 +3436,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3432
3436
  },
3433
3437
  children: [
3434
3438
  /* @__PURE__ */ s(Z, { children: me(S) }),
3435
- h.differenceShort
3439
+ p.differenceShort
3436
3440
  ]
3437
3441
  }
3438
3442
  )
@@ -3442,7 +3446,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3442
3446
  ]
3443
3447
  }
3444
3448
  );
3445
- }, Rr = ({
3449
+ }, Dr = ({
3446
3450
  stats: e,
3447
3451
  label: t,
3448
3452
  language: n,
@@ -3465,9 +3469,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3465
3469
  paddingInline: c ? "1em" : "0.75em",
3466
3470
  borderRadius: l.lg,
3467
3471
  alignSelf: c ? "stretch" : "flex-start",
3468
- background: Jn(o, i),
3472
+ background: eo(o, i),
3469
3473
  color: qe(o, i),
3470
- boxShadow: Zn(o)
3474
+ boxShadow: to(o)
3471
3475
  },
3472
3476
  children: [
3473
3477
  /* @__PURE__ */ s(
@@ -3482,7 +3486,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3482
3486
  color: "inherit",
3483
3487
  fontVariantNumeric: "tabular-nums"
3484
3488
  },
3485
- children: v(e.points, n)
3489
+ children: I(e.points, n)
3486
3490
  }
3487
3491
  ),
3488
3492
  /* @__PURE__ */ s(
@@ -3514,81 +3518,81 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3514
3518
  opacity: 0.85,
3515
3519
  whiteSpace: "nowrap"
3516
3520
  },
3517
- children: `${_n(e.points, e.played)} ${t("perGame")}`
3521
+ children: `${En(e.points, e.played)} ${t("perGame")}`
3518
3522
  }
3519
3523
  )
3520
3524
  ]
3521
3525
  }
3522
3526
  );
3523
- }, Wr = ({
3527
+ }, Hr = ({
3524
3528
  stats: e,
3525
3529
  label: t,
3526
3530
  language: n,
3527
3531
  showPoints: o = !0,
3528
3532
  sport: i
3529
3533
  }) => {
3530
- const { colors: r, fonts: a, radius: l } = $(), c = Wt(i, t), d = (g) => cn(
3531
- v(g(e.home), n),
3532
- v(g(e.away), n),
3534
+ const { colors: r, fonts: a, radius: l } = $(), c = Mt(i, t), d = (f) => dn(
3535
+ I(f(e.home), n),
3536
+ I(f(e.away), n),
3533
3537
  { homeShort: t("homeShort"), awayShort: t("awayShort") }
3534
- ), h = Ct(e.goalsFor, e.goalsAgainst), S = (g) => cn(me(g(e.home)), me(g(e.away)), {
3538
+ ), p = It(e.goalsFor, e.goalsAgainst), S = (f) => dn(me(f(e.home)), me(f(e.away)), {
3535
3539
  homeShort: t("homeShort"),
3536
3540
  awayShort: t("awayShort")
3537
- }), p = [
3541
+ }), g = [
3538
3542
  {
3539
3543
  key: "played",
3540
- value: v(e.played, n),
3544
+ value: I(e.played, n),
3541
3545
  short: t("playedShort"),
3542
3546
  long: t("played"),
3543
- split: d((g) => g.won + g.drawn + g.lost),
3547
+ split: d((f) => f.won + f.drawn + f.lost),
3544
3548
  color: r.text
3545
3549
  },
3546
3550
  {
3547
3551
  key: "won",
3548
- value: v(e.won, n),
3552
+ value: I(e.won, n),
3549
3553
  short: t("wonShort"),
3550
3554
  long: t("won"),
3551
- split: d((g) => g.won),
3555
+ split: d((f) => f.won),
3552
3556
  color: r.success
3553
3557
  },
3554
3558
  {
3555
3559
  key: "drawn",
3556
- value: v(e.drawn, n),
3560
+ value: I(e.drawn, n),
3557
3561
  short: t("drawnShort"),
3558
3562
  long: t("drawn"),
3559
- split: d((g) => g.drawn),
3563
+ split: d((f) => f.drawn),
3560
3564
  color: r.text
3561
3565
  },
3562
3566
  {
3563
3567
  key: "lost",
3564
- value: v(e.lost, n),
3568
+ value: I(e.lost, n),
3565
3569
  short: t("lostShort"),
3566
3570
  long: t("lost"),
3567
- split: d((g) => g.lost),
3571
+ split: d((f) => f.lost),
3568
3572
  color: r.danger
3569
3573
  },
3570
3574
  {
3571
3575
  key: "gf",
3572
- value: v(e.goalsFor, n),
3576
+ value: I(e.goalsFor, n),
3573
3577
  short: c.forShort,
3574
3578
  long: c.forLong,
3575
- split: d((g) => g.goalsFor),
3579
+ split: d((f) => f.goalsFor),
3576
3580
  color: r.text
3577
3581
  },
3578
3582
  {
3579
3583
  key: "ga",
3580
- value: v(e.goalsAgainst, n),
3584
+ value: I(e.goalsAgainst, n),
3581
3585
  short: c.againstShort,
3582
3586
  long: c.againstLong,
3583
- split: d((g) => g.goalsAgainst),
3587
+ split: d((f) => f.goalsAgainst),
3584
3588
  color: r.text
3585
3589
  },
3586
3590
  {
3587
3591
  key: "gd",
3588
- value: me(h),
3592
+ value: me(p),
3589
3593
  short: c.differenceShort,
3590
3594
  long: c.difference,
3591
- split: S((g) => g.goalsFor - g.goalsAgainst),
3595
+ split: S((f) => f.goalsFor - f.goalsAgainst),
3592
3596
  color: r.text,
3593
3597
  /** GD is the one signed cell, so it is the one that needs a bidi isolate. */
3594
3598
  isolate: !0
@@ -3596,14 +3600,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3596
3600
  ...o ? [
3597
3601
  {
3598
3602
  key: "pts",
3599
- value: v(e.points, n),
3603
+ value: I(e.points, n),
3600
3604
  short: t("pointsShort"),
3601
3605
  long: t("points"),
3602
- split: S((g) => g.points),
3606
+ split: S((f) => f.points),
3603
3607
  color: r.text
3604
3608
  }
3605
3609
  ] : []
3606
- ], f = [
3610
+ ], h = [
3607
3611
  { key: "won", count: e.won, color: r.success, text: t("won") },
3608
3612
  { key: "drawn", count: e.drawn, color: r.dim, text: t("drawn") },
3609
3613
  { key: "lost", count: e.lost, color: r.danger, text: t("lost") }
@@ -3614,13 +3618,13 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3614
3618
  {
3615
3619
  sx: {
3616
3620
  display: "grid",
3617
- gridTemplateColumns: `repeat(${p.length}, minmax(0, 1fr))`,
3621
+ gridTemplateColumns: `repeat(${g.length}, minmax(0, 1fr))`,
3618
3622
  border: `1px solid ${r.border}`,
3619
3623
  borderRadius: l.sm,
3620
3624
  overflow: "hidden",
3621
3625
  backgroundColor: r.surface
3622
3626
  },
3623
- children: p.map((g, x) => /* @__PURE__ */ s(j, { title: `${g.long} — ${g.split}`, children: /* @__PURE__ */ w(
3627
+ children: g.map((f, x) => /* @__PURE__ */ s(j, { title: `${f.long} — ${f.split}`, children: /* @__PURE__ */ w(
3624
3628
  m,
3625
3629
  {
3626
3630
  sx: {
@@ -3645,11 +3649,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3645
3649
  fontWeight: 700,
3646
3650
  lineHeight: 1.2,
3647
3651
  letterSpacing: "-0.01em",
3648
- color: g.color,
3652
+ color: f.color,
3649
3653
  whiteSpace: "nowrap",
3650
3654
  fontVariantNumeric: "tabular-nums"
3651
3655
  },
3652
- children: g.isolate ? /* @__PURE__ */ s(Z, { children: g.value }) : g.value
3656
+ children: f.isolate ? /* @__PURE__ */ s(Z, { children: f.value }) : f.value
3653
3657
  }
3654
3658
  ),
3655
3659
  /* @__PURE__ */ s(
@@ -3665,12 +3669,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3665
3669
  color: r.dim,
3666
3670
  whiteSpace: "nowrap"
3667
3671
  },
3668
- children: g.short
3672
+ children: f.short
3669
3673
  }
3670
3674
  )
3671
3675
  ]
3672
3676
  }
3673
- ) }, g.key))
3677
+ ) }, f.key))
3674
3678
  }
3675
3679
  ),
3676
3680
  /* @__PURE__ */ w(m, { sx: { display: "flex", alignItems: "center", gap: "0.5em" }, children: [
@@ -3686,22 +3690,22 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3686
3690
  backgroundColor: r.inner,
3687
3691
  gap: "0.0625em"
3688
3692
  },
3689
- children: f.map((g) => /* @__PURE__ */ s(
3693
+ children: h.map((f) => /* @__PURE__ */ s(
3690
3694
  j,
3691
3695
  {
3692
- title: `${g.text} ${v(g.count, n)}`,
3696
+ title: `${f.text} ${I(f.count, n)}`,
3693
3697
  children: /* @__PURE__ */ s(
3694
3698
  m,
3695
3699
  {
3696
3700
  sx: {
3697
- width: X(g.count, e.played),
3698
- backgroundColor: g.color,
3701
+ width: X(f.count, e.played),
3702
+ backgroundColor: f.color,
3699
3703
  transition: "width 400ms ease"
3700
3704
  }
3701
3705
  }
3702
3706
  )
3703
3707
  },
3704
- g.key
3708
+ f.key
3705
3709
  ))
3706
3710
  }
3707
3711
  ),
@@ -3718,21 +3722,21 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3718
3722
  fontVariantNumeric: "tabular-nums"
3719
3723
  },
3720
3724
  children: [
3721
- `${At(It(e.won, e.played), n)} ${t("won").toLowerCase()}`,
3722
- o ? `${_n(e.points, e.played)} ${t("pointsShort").toLowerCase()}` : null
3725
+ `${_t(vt(e.won, e.played), n)} ${t("won").toLowerCase()}`,
3726
+ o ? `${En(e.points, e.played)} ${t("pointsShort").toLowerCase()}` : null
3723
3727
  ].filter(Boolean).join(" · ")
3724
3728
  }
3725
3729
  )
3726
3730
  ] })
3727
3731
  ] });
3728
- }, Mr = ({
3732
+ }, zr = ({
3729
3733
  stats: e,
3730
3734
  teamPlayed: t,
3731
3735
  label: n,
3732
3736
  language: o,
3733
3737
  branding: i
3734
3738
  }) => {
3735
- const { colors: r, fonts: a, tint: l } = $(), c = oe(i), d = no(t, e.minutes), h = oo(e), S = (f, g, x) => /* @__PURE__ */ w(
3739
+ const { colors: r, fonts: a, tint: l } = $(), c = oe(i), d = io(t, e.minutes), p = ro(e), S = (h, f, x) => /* @__PURE__ */ w(
3736
3740
  m,
3737
3741
  {
3738
3742
  sx: {
@@ -3746,13 +3750,13 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3746
3750
  color: r.dim
3747
3751
  },
3748
3752
  children: [
3749
- /* @__PURE__ */ s(m, { component: "span", children: f }),
3750
- /* @__PURE__ */ s(m, { component: "span", sx: { color: r.text, fontWeight: 600 }, children: x === null ? g : n("ofTotal", { value: g, total: x }) })
3753
+ /* @__PURE__ */ s(m, { component: "span", children: h }),
3754
+ /* @__PURE__ */ s(m, { component: "span", sx: { color: r.text, fontWeight: 600 }, children: x === null ? f : n("ofTotal", { value: f, total: x }) })
3751
3755
  ]
3752
3756
  }
3753
- ), p = [
3757
+ ), g = [
3754
3758
  { key: "starts", value: e.starts, text: n("starts"), opacity: 1 },
3755
- { key: "subs", value: h, text: n("subs"), opacity: 0.35 }
3759
+ { key: "subs", value: p, text: n("subs"), opacity: 0.35 }
3756
3760
  ];
3757
3761
  return /* @__PURE__ */ w(
3758
3762
  m,
@@ -3767,8 +3771,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3767
3771
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
3768
3772
  S(
3769
3773
  n("minutesPlayed"),
3770
- v(e.minutes, o),
3771
- d === null ? null : v(d, o)
3774
+ I(e.minutes, o),
3775
+ d === null ? null : I(d, o)
3772
3776
  ),
3773
3777
  /* @__PURE__ */ s(
3774
3778
  m,
@@ -3797,8 +3801,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3797
3801
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
3798
3802
  S(
3799
3803
  n("appearances"),
3800
- v(e.apps, o),
3801
- v(t, o)
3804
+ I(e.apps, o),
3805
+ I(t, o)
3802
3806
  ),
3803
3807
  /* @__PURE__ */ w(
3804
3808
  m,
@@ -3826,7 +3830,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3826
3830
  m,
3827
3831
  {
3828
3832
  sx: {
3829
- width: X(h, Math.max(1, t)),
3833
+ width: X(p, Math.max(1, t)),
3830
3834
  backgroundColor: c,
3831
3835
  opacity: 0.35,
3832
3836
  transition: "width 400ms ease"
@@ -3850,7 +3854,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3850
3854
  color: r.dim
3851
3855
  },
3852
3856
  children: [
3853
- p.map((f) => /* @__PURE__ */ w(
3857
+ g.map((h) => /* @__PURE__ */ w(
3854
3858
  m,
3855
3859
  {
3856
3860
  sx: {
@@ -3868,7 +3872,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3868
3872
  height: "0.5em",
3869
3873
  borderRadius: "50%",
3870
3874
  backgroundColor: c,
3871
- opacity: f.opacity
3875
+ opacity: h.opacity
3872
3876
  }
3873
3877
  }
3874
3878
  ),
@@ -3877,13 +3881,13 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3877
3881
  {
3878
3882
  component: "span",
3879
3883
  sx: { fontWeight: 700, color: r.text },
3880
- children: v(f.value, o)
3884
+ children: I(h.value, o)
3881
3885
  }
3882
3886
  ),
3883
- f.text
3887
+ h.text
3884
3888
  ]
3885
3889
  },
3886
- f.key
3890
+ h.key
3887
3891
  )),
3888
3892
  e.captain > 0 ? /* @__PURE__ */ w(
3889
3893
  m,
@@ -3900,7 +3904,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3900
3904
  {
3901
3905
  component: "span",
3902
3906
  sx: { fontWeight: 700, color: r.text },
3903
- children: v(e.captain, o)
3907
+ children: I(e.captain, o)
3904
3908
  }
3905
3909
  ),
3906
3910
  n("asCaptain")
@@ -3914,16 +3918,16 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3914
3918
  ]
3915
3919
  }
3916
3920
  );
3917
- }, Dr = ({
3921
+ }, Or = ({
3918
3922
  stats: e,
3919
3923
  position: t,
3920
3924
  label: n,
3921
3925
  language: o
3922
3926
  }) => {
3923
- const i = t === "keeper", r = (c, d) => `${c}: ${v(d, o)}`, a = (c) => c === null ? "–" : v(c, o), l = i ? [
3927
+ const i = t === "keeper", r = (c, d) => `${c}: ${I(d, o)}`, a = (c) => c === null ? "–" : I(c, o), l = i ? [
3924
3928
  {
3925
3929
  key: "conceded",
3926
- value: v(e.goalsConceded, o),
3930
+ value: I(e.goalsConceded, o),
3927
3931
  text: n("goalsConcededShort"),
3928
3932
  title: n("goalsConceded")
3929
3933
  },
@@ -3950,14 +3954,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3950
3954
  ] : [
3951
3955
  {
3952
3956
  key: "assists",
3953
- value: v(e.assists, o),
3957
+ value: I(e.assists, o),
3954
3958
  // No tooltip: the chip already reads "3 Assists", and a hover repeating "Assists" would
3955
3959
  // say nothing. Every other chip here abbreviates or derives, which is what earns one.
3956
3960
  text: n("assists")
3957
3961
  },
3958
3962
  {
3959
3963
  key: "goalContributions",
3960
- value: Bt(io(e), e.minutes),
3964
+ value: Lt(so(e), e.minutes),
3961
3965
  text: n("goalContributionsShort"),
3962
3966
  title: n("goalContributions"),
3963
3967
  detail: [
@@ -3979,7 +3983,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3979
3983
  ];
3980
3984
  return !i && e.penaltiesTaken > 0 && l.push({
3981
3985
  key: "penalties",
3982
- value: `${v(e.penaltiesScored, o)}/${v(
3986
+ value: `${I(e.penaltiesScored, o)}/${I(
3983
3987
  e.penaltiesTaken,
3984
3988
  o
3985
3989
  )}`,
@@ -3994,9 +3998,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
3994
3998
  {
3995
3999
  sx: { display: "flex", flexWrap: "wrap", gap: "0.375em", alignItems: "center" },
3996
4000
  children: [
3997
- l.map((c) => /* @__PURE__ */ s(Kn, { chip: c }, c.key)),
4001
+ l.map((c) => /* @__PURE__ */ s(qn, { chip: c }, c.key)),
3998
4002
  /* @__PURE__ */ s(
3999
- Yn,
4003
+ Xn,
4000
4004
  {
4001
4005
  yellowCards: e.yellowCards,
4002
4006
  redCards: e.redCards,
@@ -4007,7 +4011,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4007
4011
  ]
4008
4012
  }
4009
4013
  );
4010
- }, Hr = ({
4014
+ }, Nr = ({
4011
4015
  stats: e,
4012
4016
  position: t,
4013
4017
  label: n,
@@ -4023,7 +4027,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4023
4027
  } : {
4024
4028
  value: e.goals,
4025
4029
  caption: n("goals"),
4026
- rate: `${Bt(e.goals, e.minutes)} ${n("per90")}`
4030
+ rate: `${Lt(e.goals, e.minutes)} ${n("per90")}`
4027
4031
  };
4028
4032
  return /* @__PURE__ */ w(
4029
4033
  m,
@@ -4039,9 +4043,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4039
4043
  paddingInline: d ? "1em" : "0.75em",
4040
4044
  borderRadius: c.lg,
4041
4045
  alignSelf: d ? "stretch" : "flex-start",
4042
- background: Jn(i, r),
4046
+ background: eo(i, r),
4043
4047
  color: qe(i, r),
4044
- boxShadow: Zn(i)
4048
+ boxShadow: to(i)
4045
4049
  },
4046
4050
  children: [
4047
4051
  /* @__PURE__ */ s(
@@ -4056,7 +4060,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4056
4060
  color: "inherit",
4057
4061
  fontVariantNumeric: "tabular-nums"
4058
4062
  },
4059
- children: v(S.value, o)
4063
+ children: I(S.value, o)
4060
4064
  }
4061
4065
  ),
4062
4066
  /* @__PURE__ */ s(
@@ -4095,50 +4099,50 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4095
4099
  ]
4096
4100
  }
4097
4101
  );
4098
- }, zr = ({
4102
+ }, Pr = ({
4099
4103
  stats: e,
4100
4104
  position: t,
4101
4105
  label: n,
4102
4106
  language: o,
4103
4107
  branding: i
4104
4108
  }) => {
4105
- const { colors: r, fonts: a, radius: l } = $(), c = oe(i), d = t === "keeper", h = (p, f) => `${p}: ${v(f, o)}`, S = [
4109
+ const { colors: r, fonts: a, radius: l } = $(), c = oe(i), d = t === "keeper", p = (g, h) => `${g}: ${I(h, o)}`, S = [
4106
4110
  {
4107
4111
  key: "apps",
4108
- value: v(e.apps, o),
4112
+ value: I(e.apps, o),
4109
4113
  short: n("appearancesShort"),
4110
4114
  long: n("appearances"),
4111
4115
  color: r.text
4112
4116
  },
4113
4117
  d ? {
4114
4118
  key: "cleanSheets",
4115
- value: v(e.cleanSheets, o),
4119
+ value: I(e.cleanSheets, o),
4116
4120
  short: n("cleanSheetsShort"),
4117
4121
  long: n("cleanSheets"),
4118
4122
  color: c
4119
4123
  } : {
4120
4124
  key: "goals",
4121
- value: v(e.goals, o),
4125
+ value: I(e.goals, o),
4122
4126
  short: n("goalsShort"),
4123
4127
  long: n("goals"),
4124
4128
  color: c
4125
4129
  },
4126
4130
  d ? {
4127
4131
  key: "conceded",
4128
- value: v(e.goalsConceded, o),
4132
+ value: I(e.goalsConceded, o),
4129
4133
  short: n("goalsConcededShort"),
4130
4134
  long: n("goalsConceded"),
4131
4135
  color: r.text
4132
4136
  } : {
4133
4137
  key: "assists",
4134
- value: v(e.assists, o),
4138
+ value: I(e.assists, o),
4135
4139
  short: n("assistsShort"),
4136
4140
  long: n("assists"),
4137
4141
  color: r.text
4138
4142
  },
4139
4143
  {
4140
4144
  key: "minutes",
4141
- value: v(e.minutes, o),
4145
+ value: I(e.minutes, o),
4142
4146
  short: n("minutesShort"),
4143
4147
  long: n("minutesPlayed"),
4144
4148
  color: r.text
@@ -4149,19 +4153,19 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4149
4153
  short: n("perGame"),
4150
4154
  long: n("goalsConcededPerGame"),
4151
4155
  detail: [
4152
- h(n("goalsConceded"), e.goalsConceded),
4153
- h(n("appearances"), e.apps)
4156
+ p(n("goalsConceded"), e.goalsConceded),
4157
+ p(n("appearances"), e.apps)
4154
4158
  ].join(" · "),
4155
4159
  color: r.text
4156
4160
  } : {
4157
4161
  key: "goalContributions",
4158
- value: Bt(io(e), e.minutes, 1),
4162
+ value: Lt(so(e), e.minutes, 1),
4159
4163
  short: n("goalContributionsShort"),
4160
4164
  long: n("goalContributions"),
4161
4165
  detail: [
4162
- h(n("goals"), e.goals),
4163
- h(n("assists"), e.assists),
4164
- h(n("minutesPlayed"), e.minutes)
4166
+ p(n("goals"), e.goals),
4167
+ p(n("assists"), e.assists),
4168
+ p(n("minutesPlayed"), e.minutes)
4165
4169
  ].join(" · "),
4166
4170
  color: r.text
4167
4171
  }
@@ -4177,10 +4181,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4177
4181
  overflow: "hidden",
4178
4182
  backgroundColor: r.surface
4179
4183
  },
4180
- children: S.map((p, f) => /* @__PURE__ */ s(
4184
+ children: S.map((g, h) => /* @__PURE__ */ s(
4181
4185
  j,
4182
4186
  {
4183
- title: p.detail ? `${p.long} — ${p.detail}` : p.long,
4187
+ title: g.detail ? `${g.long} — ${g.detail}` : g.long,
4184
4188
  children: /* @__PURE__ */ w(
4185
4189
  m,
4186
4190
  {
@@ -4194,7 +4198,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4194
4198
  minWidth: 0,
4195
4199
  cursor: "help",
4196
4200
  // A logical border, so the dividers fall between cells in both directions.
4197
- ...f > 0 ? { borderInlineStart: `1px solid ${r.border}` } : {}
4201
+ ...h > 0 ? { borderInlineStart: `1px solid ${r.border}` } : {}
4198
4202
  },
4199
4203
  children: [
4200
4204
  /* @__PURE__ */ s(
@@ -4206,11 +4210,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4206
4210
  fontWeight: 700,
4207
4211
  lineHeight: 1.2,
4208
4212
  letterSpacing: "-0.01em",
4209
- color: p.color,
4213
+ color: g.color,
4210
4214
  whiteSpace: "nowrap",
4211
4215
  fontVariantNumeric: "tabular-nums"
4212
4216
  },
4213
- children: p.value
4217
+ children: g.value
4214
4218
  }
4215
4219
  ),
4216
4220
  /* @__PURE__ */ s(
@@ -4229,18 +4233,18 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4229
4233
  textOverflow: "ellipsis",
4230
4234
  maxWidth: "100%"
4231
4235
  },
4232
- children: p.short
4236
+ children: g.short
4233
4237
  }
4234
4238
  )
4235
4239
  ]
4236
4240
  }
4237
4241
  )
4238
4242
  },
4239
- p.key
4243
+ g.key
4240
4244
  ))
4241
4245
  }
4242
4246
  );
4243
- }, wn = ({
4247
+ }, Cn = ({
4244
4248
  fixture: e,
4245
4249
  competitor: t,
4246
4250
  language: n,
@@ -4248,9 +4252,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4248
4252
  label: i,
4249
4253
  children: r
4250
4254
  }) => {
4251
- const { colors: a, fonts: l } = $(), c = e.isHome ? t.name : e.opponentName, d = e.isHome ? e.opponentName : t.name, h = e.isHome ? t.image : e.opponentLogo, S = e.isHome ? e.opponentLogo : t.image, p = e.isHome ? e.ownScore : e.opponentScore, f = e.isHome ? e.opponentScore : e.ownScore, g = ur(e.date, n), x = [
4255
+ const { colors: a, fonts: l } = $(), c = e.isHome ? t.name : e.opponentName, d = e.isHome ? e.opponentName : t.name, p = e.isHome ? t.image : e.opponentLogo, S = e.isHome ? e.opponentLogo : t.image, g = e.isHome ? e.ownScore : e.opponentScore, h = e.isHome ? e.opponentScore : e.ownScore, f = fr(e.date, n), x = [
4252
4256
  o ? e.competitionName : null,
4253
- g,
4257
+ f,
4254
4258
  // Where the hover has room to say it in full, it does — the strip only had space for "OT".
4255
4259
  e.afterOvertime ? i("afterOvertime") : null
4256
4260
  ].filter(Boolean).join(" • "), y = (C, u) => C ? /* @__PURE__ */ s(
@@ -4302,7 +4306,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4302
4306
  )
4303
4307
  ]
4304
4308
  }
4305
- ), I = /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.375em" }, children: [
4309
+ ), v = /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.375em" }, children: [
4306
4310
  x ? /* @__PURE__ */ s(
4307
4311
  T,
4308
4312
  {
@@ -4328,7 +4332,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4328
4332
  gap: "0.5em"
4329
4333
  },
4330
4334
  children: [
4331
- k(c, h, "start"),
4335
+ k(c, p, "start"),
4332
4336
  /* @__PURE__ */ s(
4333
4337
  T,
4334
4338
  {
@@ -4341,7 +4345,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4341
4345
  whiteSpace: "nowrap",
4342
4346
  fontVariantNumeric: "tabular-nums"
4343
4347
  },
4344
- children: /* @__PURE__ */ s(Z, { children: `${p ?? "?"} – ${f ?? "?"}` })
4348
+ children: /* @__PURE__ */ s(Z, { children: `${g ?? "?"} – ${h ?? "?"}` })
4345
4349
  }
4346
4350
  ),
4347
4351
  k(d, S, "end")
@@ -4349,8 +4353,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4349
4353
  }
4350
4354
  )
4351
4355
  ] });
4352
- return /* @__PURE__ */ s(j, { title: I, maxWidthEm: 16, fontSize: "1em", children: r });
4353
- }, ro = ({
4356
+ return /* @__PURE__ */ s(j, { title: v, maxWidthEm: 16, fontSize: "1em", children: r });
4357
+ }, ao = ({
4354
4358
  fixtures: e,
4355
4359
  competitor: t,
4356
4360
  language: n,
@@ -4361,9 +4365,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4361
4365
  onBrand: l = !1,
4362
4366
  onColor: c,
4363
4367
  dotSize: d = "1.625em",
4364
- athleteId: h
4368
+ athleteId: p
4365
4369
  }) => {
4366
- const { colors: S, fonts: p, radius: f, tint: g } = $(), x = c ?? S.onPrimary;
4370
+ const { colors: S, fonts: g, radius: h, tint: f } = $(), x = c ?? S.onPrimary;
4367
4371
  if (e.length === 0) return null;
4368
4372
  const y = (C) => C === "W" ? S.success : C === "L" ? S.danger : S.dim, k = (C) => {
4369
4373
  const u = {
@@ -4372,19 +4376,19 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4372
4376
  color: S.onPrimary,
4373
4377
  "aria-hidden": !0
4374
4378
  };
4375
- return C === "W" ? /* @__PURE__ */ s(oi, { ...u }) : C === "L" ? /* @__PURE__ */ s(Jo, { ...u }) : /* @__PURE__ */ s(ii, { ...u });
4376
- }, I = (C) => {
4379
+ return C === "W" ? /* @__PURE__ */ s(ri, { ...u }) : C === "L" ? /* @__PURE__ */ s(Zo, { ...u }) : /* @__PURE__ */ s(si, { ...u });
4380
+ }, v = (C) => {
4377
4381
  const u = Ye(r, {
4378
4382
  matchId: C.id,
4379
4383
  competitorId: t.id,
4380
4384
  opponentId: C.opponentId,
4381
4385
  competitionId: C.competitionId,
4382
4386
  seasonId: C.seasonId,
4383
- date: _t(C.date),
4384
- athleteId: h
4387
+ date: Ft(C.date),
4388
+ athleteId: p
4385
4389
  }), b = `${C.ownScore ?? "?"}-${C.opponentScore ?? "?"}`;
4386
4390
  return i === "dots" ? /* @__PURE__ */ s(
4387
- wn,
4391
+ Cn,
4388
4392
  {
4389
4393
  fixture: C,
4390
4394
  competitor: t,
@@ -4405,7 +4409,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4405
4409
  alignItems: "center",
4406
4410
  justifyContent: "center",
4407
4411
  backgroundColor: y(C.outcome),
4408
- ...l ? { boxShadow: `0 0 0 0.125em ${g(x, 0.25)}` } : {}
4412
+ ...l ? { boxShadow: `0 0 0 0.125em ${f(x, 0.25)}` } : {}
4409
4413
  },
4410
4414
  hoverSx: { opacity: 0.85 },
4411
4415
  children: k(C.outcome)
@@ -4423,7 +4427,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4423
4427
  borderRadius: "0.25em",
4424
4428
  backgroundColor: l ? x : S.text,
4425
4429
  color: l ? y(C.outcome) : S.surface,
4426
- fontFamily: p.primary,
4430
+ fontFamily: g.primary,
4427
4431
  fontSize: "0.5em",
4428
4432
  fontWeight: 700,
4429
4433
  lineHeight: 1.4,
@@ -4437,7 +4441,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4437
4441
  },
4438
4442
  C.id
4439
4443
  ) : /* @__PURE__ */ s(
4440
- wn,
4444
+ Cn,
4441
4445
  {
4442
4446
  fixture: C,
4443
4447
  competitor: t,
@@ -4454,16 +4458,16 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4454
4458
  alignItems: "center",
4455
4459
  paddingBlock: "0.5em",
4456
4460
  paddingInline: "0.25em",
4457
- borderRadius: f.sm,
4461
+ borderRadius: h.sm,
4458
4462
  backgroundColor: S.inner
4459
4463
  },
4460
- hoverSx: { backgroundColor: g(S.text, 0.1) },
4464
+ hoverSx: { backgroundColor: f(S.text, 0.1) },
4461
4465
  children: [
4462
4466
  /* @__PURE__ */ s(
4463
4467
  T,
4464
4468
  {
4465
4469
  sx: {
4466
- fontFamily: p.primary,
4470
+ fontFamily: g.primary,
4467
4471
  fontSize: "0.875em",
4468
4472
  fontWeight: 700,
4469
4473
  lineHeight: 1.45,
@@ -4477,7 +4481,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4477
4481
  T,
4478
4482
  {
4479
4483
  sx: {
4480
- fontFamily: p.secondary,
4484
+ fontFamily: g.secondary,
4481
4485
  fontSize: "0.625em",
4482
4486
  lineHeight: 1.4,
4483
4487
  color: S.dim,
@@ -4514,7 +4518,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4514
4518
  gap: "0.375em",
4515
4519
  minWidth: 0
4516
4520
  },
4517
- children: e.map(I)
4521
+ children: e.map(v)
4518
4522
  }
4519
4523
  ) : /* @__PURE__ */ s(
4520
4524
  m,
@@ -4526,10 +4530,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4526
4530
  gridTemplateColumns: "repeat(5, minmax(0, 1fr))",
4527
4531
  gap: "0.25em"
4528
4532
  },
4529
- children: e.map(I)
4533
+ children: e.map(v)
4530
4534
  }
4531
4535
  );
4532
- }, Nr = ({
4536
+ }, Ur = ({
4533
4537
  sizeEm: e = 0.375,
4534
4538
  color: t
4535
4539
  }) => {
@@ -4548,7 +4552,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4548
4552
  }
4549
4553
  }
4550
4554
  );
4551
- }, kn = ({ label: e }) => {
4555
+ }, In = ({ label: e }) => {
4552
4556
  const { colors: t, fonts: n } = $();
4553
4557
  return /* @__PURE__ */ w(
4554
4558
  m,
@@ -4570,12 +4574,12 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4570
4574
  whiteSpace: "nowrap"
4571
4575
  },
4572
4576
  children: [
4573
- /* @__PURE__ */ s(Nr, { sizeEm: 0.42, color: "#fff" }),
4577
+ /* @__PURE__ */ s(Ur, { sizeEm: 0.42, color: "#fff" }),
4574
4578
  e
4575
4579
  ]
4576
4580
  }
4577
4581
  );
4578
- }, Or = ({
4582
+ }, Gr = ({
4579
4583
  fixture: e,
4580
4584
  competitor: t,
4581
4585
  language: n,
@@ -4586,24 +4590,24 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4586
4590
  odds: l,
4587
4591
  oddsConfig: c,
4588
4592
  onAddToBetslip: d,
4589
- liveMinute: h,
4593
+ liveMinute: p,
4590
4594
  showCompetition: S,
4591
- athleteId: p,
4592
- compact: f = !1,
4593
- dense: g = !1
4595
+ athleteId: g,
4596
+ compact: h = !1,
4597
+ dense: f = !1
4594
4598
  }) => {
4595
- const { colors: x, fonts: y, radius: k, tint: I } = $(), { t: C } = he("common"), u = e.isHome ? t.name : e.opponentName, b = e.isHome ? e.opponentName : t.name, F = e.isHome ? t.image : e.opponentLogo, _ = e.isHome ? e.opponentLogo : t.image, L = e.isHome ? e.ownScore : e.opponentScore, D = e.isHome ? e.opponentScore : e.ownScore, B = e.status === "upcoming", W = e.status === "live", V = Gn(e.date, n), Fe = [mr(e.date, n), S ? e.competitionName : null].filter(Boolean).join(" • "), Ee = B ? V ?? "" : `${L ?? 0} – ${D ?? 0}`, $e = h !== null ? C("eventCard.minute", { n: h }) : o("live"), U = B ? o("kickOff") : e.afterOvertime ? (
4599
+ const { colors: x, fonts: y, radius: k, tint: v } = $(), { t: C } = he("common"), u = e.isHome ? t.name : e.opponentName, b = e.isHome ? e.opponentName : t.name, E = e.isHome ? t.image : e.opponentLogo, _ = e.isHome ? e.opponentLogo : t.image, L = e.isHome ? e.ownScore : e.opponentScore, D = e.isHome ? e.opponentScore : e.ownScore, B = e.status === "upcoming", W = e.status === "live", V = Vn(e.date, n), Fe = [pr(e.date, n), S ? e.competitionName : null].filter(Boolean).join(" • "), Ee = B ? V ?? "" : `${L ?? 0} – ${D ?? 0}`, $e = p !== null ? C("eventCard.minute", { n: p }) : o("live"), U = B ? o("kickOff") : e.afterOvertime ? (
4596
4600
  // The scoreline above is the regulation one; "Full time" would be claiming it was the end.
4597
4601
  o("afterOvertime")
4598
- ) : o("fullTime"), re = e.outcome === "W" ? { text: o("win"), color: x.success } : e.outcome === "L" ? { text: o("loss"), color: x.danger } : e.outcome === "D" ? { text: o("draw"), color: x.dim } : null, E = Ye(a, {
4602
+ ) : o("fullTime"), re = e.outcome === "W" ? { text: o("win"), color: x.success } : e.outcome === "L" ? { text: o("loss"), color: x.danger } : e.outcome === "D" ? { text: o("draw"), color: x.dim } : null, F = Ye(a, {
4599
4603
  matchId: e.id,
4600
4604
  competitorId: t.id,
4601
4605
  opponentId: e.opponentId,
4602
4606
  competitionId: e.competitionId,
4603
4607
  seasonId: e.seasonId,
4604
- date: _t(e.date),
4605
- athleteId: p
4606
- }), se = (le, G, N) => le ? /* @__PURE__ */ s(
4608
+ date: Ft(e.date),
4609
+ athleteId: g
4610
+ }), se = (le, G, O) => le ? /* @__PURE__ */ s(
4607
4611
  m,
4608
4612
  {
4609
4613
  component: "img",
@@ -4611,15 +4615,15 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4611
4615
  alt: G,
4612
4616
  loading: "lazy",
4613
4617
  sx: {
4614
- width: N,
4615
- height: N,
4618
+ width: O,
4619
+ height: O,
4616
4620
  objectFit: "contain",
4617
4621
  flexShrink: 0,
4618
4622
  display: "block",
4619
4623
  filter: "drop-shadow(0 0.125em 0.25em rgba(0, 0, 0, 0.12))"
4620
4624
  }
4621
4625
  }
4622
- ) : /* @__PURE__ */ s(m, { sx: { width: N, height: N, flexShrink: 0 } }), ae = (le, G) => /* @__PURE__ */ s(
4626
+ ) : /* @__PURE__ */ s(m, { sx: { width: O, height: O, flexShrink: 0 } }), ae = (le, G) => /* @__PURE__ */ s(
4623
4627
  T,
4624
4628
  {
4625
4629
  sx: {
@@ -4645,16 +4649,16 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4645
4649
  width: "100%",
4646
4650
  position: "relative",
4647
4651
  overflow: "hidden",
4648
- background: eo(i, r),
4652
+ background: no(i, r),
4649
4653
  border: `1px solid ${x.border}`,
4650
- borderRadius: f ? k.md : k.lg,
4654
+ borderRadius: h ? k.md : k.lg,
4651
4655
  display: "flex",
4652
4656
  flexDirection: "column",
4653
4657
  transition: "border-color 150ms ease, box-shadow 150ms ease",
4654
- ...E.interactive ? {
4658
+ ...F.interactive ? {
4655
4659
  "&:hover": {
4656
4660
  borderColor: x.dim,
4657
- boxShadow: `0 0.25em 0.75em -0.25em ${I(x.text, 0.18)}`
4661
+ boxShadow: `0 0.25em 0.75em -0.25em ${v(x.text, 0.18)}`
4658
4662
  }
4659
4663
  } : {}
4660
4664
  },
@@ -4662,10 +4666,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4662
4666
  /* @__PURE__ */ s(
4663
4667
  ne,
4664
4668
  {
4665
- cta: E,
4669
+ cta: F,
4666
4670
  sx: { display: "block", width: "100%" },
4667
- title: E.href ?? void 0,
4668
- children: f ? /* @__PURE__ */ w(
4671
+ title: F.href ?? void 0,
4672
+ children: h ? /* @__PURE__ */ w(
4669
4673
  m,
4670
4674
  {
4671
4675
  sx: {
@@ -4687,7 +4691,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4687
4691
  minWidth: 0
4688
4692
  },
4689
4693
  children: [
4690
- se(F, u, "1.75em"),
4694
+ se(E, u, "1.75em"),
4691
4695
  ae(u, "start")
4692
4696
  ]
4693
4697
  }
@@ -4703,7 +4707,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4703
4707
  minWidth: "3.5em"
4704
4708
  },
4705
4709
  children: [
4706
- W ? /* @__PURE__ */ s(kn, { label: $e }) : null,
4710
+ W ? /* @__PURE__ */ s(In, { label: $e }) : null,
4707
4711
  /* @__PURE__ */ s(
4708
4712
  T,
4709
4713
  {
@@ -4806,7 +4810,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4806
4810
  paddingInline: "0.5em",
4807
4811
  borderRadius: "999px",
4808
4812
  flexShrink: 0,
4809
- backgroundColor: I(re.color, 0.15),
4813
+ backgroundColor: v(re.color, 0.15),
4810
4814
  color: re.color,
4811
4815
  fontFamily: y.primary,
4812
4816
  fontSize: "0.6875em",
@@ -4843,7 +4847,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4843
4847
  minWidth: 0
4844
4848
  },
4845
4849
  children: [
4846
- se(F, u, "3.25em"),
4850
+ se(E, u, "3.25em"),
4847
4851
  ae(u, "center")
4848
4852
  ]
4849
4853
  }
@@ -4864,7 +4868,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4864
4868
  ...W ? { paddingBlockEnd: "1em" } : {}
4865
4869
  },
4866
4870
  children: [
4867
- W ? /* @__PURE__ */ s(kn, { label: $e }) : null,
4871
+ W ? /* @__PURE__ */ s(In, { label: $e }) : null,
4868
4872
  /* @__PURE__ */ s(
4869
4873
  T,
4870
4874
  {
@@ -4927,11 +4931,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4927
4931
  }
4928
4932
  ),
4929
4933
  l && B ? /* @__PURE__ */ s(
4930
- jo,
4934
+ qo,
4931
4935
  {
4932
4936
  odds: l,
4933
4937
  market: (c == null ? void 0 : c.market) ?? "FT_1X2",
4934
- size: f ? "compact" : g ? "dense" : "default",
4938
+ size: h ? "compact" : f ? "dense" : "default",
4935
4939
  mode: c == null ? void 0 : c.mode,
4936
4940
  flashInterval: c == null ? void 0 : c.flashInterval,
4937
4941
  labels: { title: o("oddsTitle") },
@@ -4941,7 +4945,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4941
4945
  ]
4942
4946
  }
4943
4947
  );
4944
- }, Pr = ({ side: e, onSelect: t, labels: n }) => {
4948
+ }, jr = ({ side: e, onSelect: t, labels: n }) => {
4945
4949
  const { colors: o, fonts: i, radius: r } = $(), a = (l, c) => {
4946
4950
  const d = e === l;
4947
4951
  return /* @__PURE__ */ s(
@@ -4986,17 +4990,17 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
4986
4990
  ]
4987
4991
  }
4988
4992
  );
4989
- }, Ur = (e, t) => t === "stats" ? e.showStats : t === "form" ? e.showForm : e.showFeaturedMatch && !!e.featured, Mt = (e, t, n) => {
4993
+ }, Vr = (e, t) => t === "stats" ? e.showStats : t === "form" ? e.showForm : e.showFeaturedMatch && !!e.featured, Dt = (e, t, n) => {
4990
4994
  const { spacing: o } = $();
4991
- if (t.sections.find((r) => Ur(e, r)) === n)
4995
+ if (t.sections.find((r) => Vr(e, r)) === n)
4992
4996
  return t.compact ? o.sm : o.md;
4993
- }, Gr = ({ props: e, options: t }) => {
4997
+ }, Kr = ({ props: e, options: t }) => {
4994
4998
  var c;
4995
4999
  const { athleteStats: n, label: o, language: i, teamPlayed: r, position: a } = e;
4996
5000
  if (!n) return /* @__PURE__ */ s(pe, { children: o("noData") });
4997
5001
  if (t.athleteStatsLayout === "row")
4998
5002
  return /* @__PURE__ */ s(m, { sx: { marginBlockStart: "0.5em" }, children: /* @__PURE__ */ s(
4999
- zr,
5003
+ Pr,
5000
5004
  {
5001
5005
  stats: n,
5002
5006
  position: a,
@@ -5006,7 +5010,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5006
5010
  }
5007
5011
  ) });
5008
5012
  const l = /* @__PURE__ */ s(
5009
- Mr,
5013
+ zr,
5010
5014
  {
5011
5015
  stats: n,
5012
5016
  teamPlayed: r,
@@ -5035,7 +5039,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5035
5039
  },
5036
5040
  children: [
5037
5041
  /* @__PURE__ */ s(
5038
- Hr,
5042
+ Nr,
5039
5043
  {
5040
5044
  stats: n,
5041
5045
  position: a,
@@ -5051,7 +5055,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5051
5055
  }
5052
5056
  ) : l,
5053
5057
  /* @__PURE__ */ s(
5054
- Dr,
5058
+ Or,
5055
5059
  {
5056
5060
  stats: n,
5057
5061
  position: a,
@@ -5062,11 +5066,11 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5062
5066
  ]
5063
5067
  }
5064
5068
  );
5065
- }, jr = ({ props: e, options: t }) => {
5069
+ }, Yr = ({ props: e, options: t }) => {
5066
5070
  var r;
5067
5071
  const { stats: n, label: o, language: i } = e;
5068
5072
  return n ? t.statsLayout === "row" ? /* @__PURE__ */ s(
5069
- Wr,
5073
+ Hr,
5070
5074
  {
5071
5075
  stats: n,
5072
5076
  label: o,
@@ -5087,7 +5091,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5087
5091
  },
5088
5092
  children: [
5089
5093
  e.showPoints ? /* @__PURE__ */ s(
5090
- Rr,
5094
+ Dr,
5091
5095
  {
5092
5096
  stats: n,
5093
5097
  label: o,
@@ -5098,7 +5102,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5098
5102
  }
5099
5103
  ) : null,
5100
5104
  /* @__PURE__ */ s(
5101
- Sn,
5105
+ kn,
5102
5106
  {
5103
5107
  stats: n,
5104
5108
  label: o,
@@ -5110,7 +5114,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5110
5114
  ]
5111
5115
  }
5112
5116
  ) : /* @__PURE__ */ s(m, { sx: { marginBlockStart: "0.5em" }, children: /* @__PURE__ */ s(
5113
- Sn,
5117
+ kn,
5114
5118
  {
5115
5119
  stats: n,
5116
5120
  label: o,
@@ -5122,10 +5126,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5122
5126
  }
5123
5127
  ) }) : /* @__PURE__ */ s(pe, { children: o("noData") });
5124
5128
  }, tt = ({ props: e, options: t }) => {
5125
- const n = Mt(e, t, "stats"), o = Lo(), { label: i, titleAlign: r } = e;
5129
+ const n = Dt(e, t, "stats"), o = Oo(), { label: i, titleAlign: r } = e;
5126
5130
  if (!e.showStats) return null;
5127
5131
  const a = t.switcherOnTitleRow !== !1 && e.showCompetitionSwitcher ? /* @__PURE__ */ s(
5128
- Je,
5132
+ Qe,
5129
5133
  {
5130
5134
  competitions: e.competitions,
5131
5135
  selectedId: e.selectedCompetitionId,
@@ -5135,7 +5139,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5135
5139
  }
5136
5140
  ) : null;
5137
5141
  return /* @__PURE__ */ s(
5138
- Rt,
5142
+ Wt,
5139
5143
  {
5140
5144
  title: i("statsTitle"),
5141
5145
  align: r,
@@ -5144,24 +5148,24 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5144
5148
  paddingInline: t.paddingInline,
5145
5149
  paddingBlockEnd: t.paddingBlockEnd,
5146
5150
  paddingBlockStart: n,
5147
- children: e.kind === "ATHLETE" ? /* @__PURE__ */ s(Gr, { props: e, options: t }) : /* @__PURE__ */ s(jr, { props: e, options: t })
5151
+ children: e.kind === "ATHLETE" ? /* @__PURE__ */ s(Kr, { props: e, options: t }) : /* @__PURE__ */ s(Yr, { props: e, options: t })
5148
5152
  }
5149
5153
  );
5150
- }, Dt = ({ props: e, options: t }) => {
5151
- var f;
5152
- const { colors: n, fonts: o } = $(), i = Mt(e, t, "form"), { form: r, label: a, language: l, titleAlign: c } = e;
5154
+ }, Ht = ({ props: e, options: t }) => {
5155
+ var h;
5156
+ const { colors: n, fonts: o } = $(), i = Dt(e, t, "form"), { form: r, label: a, language: l, titleAlign: c } = e;
5153
5157
  if (!e.showForm) return null;
5154
- const d = t.formAppearance === "tiles", h = e.kind === "ATHLETE", S = e.streak > 1 && !(h && d), p = r.length === 0 ? "" : [
5155
- h && d ? a("teamResults", { team: e.fixtureCompetitor.name }) : null,
5158
+ const d = t.formAppearance === "tiles", p = e.kind === "ATHLETE", S = e.streak > 1 && !(p && d), g = r.length === 0 ? "" : [
5159
+ p && d ? a("teamResults", { team: e.fixtureCompetitor.name }) : null,
5156
5160
  S ? `${a("wonShort")}${e.streak}` : null,
5157
5161
  d ? a("formOrder") : null
5158
5162
  ].filter(Boolean).join(" · ");
5159
5163
  return /* @__PURE__ */ s(
5160
- Rt,
5164
+ Wt,
5161
5165
  {
5162
5166
  title: a("formTitle"),
5163
5167
  align: c,
5164
- trailing: p ? /* @__PURE__ */ s(
5168
+ trailing: g ? /* @__PURE__ */ s(
5165
5169
  T,
5166
5170
  {
5167
5171
  sx: {
@@ -5174,25 +5178,25 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5174
5178
  overflow: "hidden",
5175
5179
  textOverflow: "ellipsis",
5176
5180
  // The club's name is entity text, so it reads in its own direction.
5177
- ...h && d ? { unicodeBidi: "plaintext" } : {},
5181
+ ...p && d ? { unicodeBidi: "plaintext" } : {},
5178
5182
  ...S ? { cursor: "help" } : {}
5179
5183
  },
5180
5184
  title: S ? a("streak", { count: e.streak }) : void 0,
5181
- children: p
5185
+ children: g
5182
5186
  }
5183
5187
  ) : null,
5184
5188
  paddingInline: t.paddingInline,
5185
5189
  paddingBlockEnd: t.paddingBlockEnd,
5186
5190
  paddingBlockStart: i,
5187
5191
  children: r.length === 0 ? /* @__PURE__ */ s(pe, { children: a("noData") }) : /* @__PURE__ */ s(
5188
- ro,
5192
+ ao,
5189
5193
  {
5190
5194
  fixtures: r,
5191
5195
  competitor: e.fixtureCompetitor,
5192
5196
  language: l,
5193
5197
  label: a,
5194
5198
  appearance: t.formAppearance,
5195
- cta: (f = e.formConfig) == null ? void 0 : f.matchCTA,
5199
+ cta: (h = e.formConfig) == null ? void 0 : h.matchCTA,
5196
5200
  athleteId: e.linkAthleteId,
5197
5201
  showCompetition: e.selectedCompetitionId === z,
5198
5202
  dotSize: t.compact ? "1.375em" : "1.625em"
@@ -5202,16 +5206,16 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5202
5206
  );
5203
5207
  }, nt = ({ props: e, options: t }) => {
5204
5208
  var c, d;
5205
- const n = Mt(e, t, "featured"), { featured: o, label: i, language: r, titleAlign: a } = e;
5209
+ const n = Dt(e, t, "featured"), { featured: o, label: i, language: r, titleAlign: a } = e;
5206
5210
  if (!e.showFeaturedMatch || !o) return null;
5207
5211
  const l = i.optional("matchTitle") ?? (e.featuredSide === "live" ? i("liveMatchTitle") : e.featuredSide === "last" ? i("lastMatchTitle") : i("nextMatchTitle"));
5208
5212
  return /* @__PURE__ */ s(
5209
- Rt,
5213
+ Wt,
5210
5214
  {
5211
5215
  title: l,
5212
5216
  align: a,
5213
5217
  trailing: e.showFeaturedToggle ? /* @__PURE__ */ s(
5214
- Pr,
5218
+ jr,
5215
5219
  {
5216
5220
  side: e.featuredSide,
5217
5221
  onSelect: e.onSelectFeaturedSide,
@@ -5222,7 +5226,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5222
5226
  paddingBlockEnd: t.paddingBlockEnd,
5223
5227
  paddingBlockStart: n,
5224
5228
  children: /* @__PURE__ */ s(
5225
- Or,
5229
+ Gr,
5226
5230
  {
5227
5231
  fixture: o,
5228
5232
  competitor: e.fixtureCompetitor,
@@ -5243,7 +5247,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5243
5247
  )
5244
5248
  }
5245
5249
  );
5246
- }, Vr = (e) => {
5250
+ }, qr = (e) => {
5247
5251
  var S;
5248
5252
  const t = $(), { colors: n, spacing: o, tint: i } = t, { label: r, competitor: a } = e, l = {
5249
5253
  sections: ["stats", "form", "featured"],
@@ -5258,8 +5262,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5258
5262
  paddingBlockEnd: o.lg,
5259
5263
  statsLayout: "tile",
5260
5264
  athleteStatsLayout: "tile"
5261
- }, c = Lt(e.ctaLayout, je()), d = e.selectedCompetitionId === z, h = /* @__PURE__ */ s(
5262
- Je,
5265
+ }, c = Rt(e.ctaLayout, je()), d = e.selectedCompetitionId === z, p = /* @__PURE__ */ s(
5266
+ Qe,
5263
5267
  {
5264
5268
  competitions: e.competitions,
5265
5269
  selectedId: e.selectedCompetitionId,
@@ -5283,7 +5287,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5283
5287
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
5284
5288
  badgeUrl: e.crestBadgeUrl,
5285
5289
  actions: /* @__PURE__ */ s(
5286
- Qe,
5290
+ Je,
5287
5291
  {
5288
5292
  view: e.view,
5289
5293
  onToggle: e.onToggleView,
@@ -5299,7 +5303,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5299
5303
  ),
5300
5304
  e.view === "overview" ? /* @__PURE__ */ w(Ce, { children: [
5301
5305
  /* @__PURE__ */ s(tt, { props: e, options: l }),
5302
- /* @__PURE__ */ s(Dt, { props: e, options: l }),
5306
+ /* @__PURE__ */ s(Ht, { props: e, options: l }),
5303
5307
  /* @__PURE__ */ s(nt, { props: e, options: l })
5304
5308
  ] }) : null,
5305
5309
  e.view === "fixtures" ? /* @__PURE__ */ w(
@@ -5316,7 +5320,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5316
5320
  {
5317
5321
  label: r("back"),
5318
5322
  onClick: e.onBackToOverview,
5319
- trailing: h
5323
+ trailing: p
5320
5324
  }
5321
5325
  ),
5322
5326
  /* @__PURE__ */ s(
@@ -5350,7 +5354,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5350
5354
  {
5351
5355
  label: r("back"),
5352
5356
  onClick: e.onBackToOverview,
5353
- trailing: e.secondaryView === "squad" ? h : /* @__PURE__ */ s(et, { children: e.seasonCaption })
5357
+ trailing: e.secondaryView === "squad" ? p : /* @__PURE__ */ s(et, { children: e.seasonCaption })
5354
5358
  }
5355
5359
  ),
5356
5360
  e.secondaryPanel
@@ -5358,7 +5362,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5358
5362
  }
5359
5363
  ) : null
5360
5364
  ] });
5361
- }, so = ({ tiles: e, color: t, size: n = "lg" }) => {
5365
+ }, lo = ({ tiles: e, color: t, size: n = "lg" }) => {
5362
5366
  const { fonts: o, radius: i, tint: r } = $(), a = n === "lg";
5363
5367
  return e.length === 0 ? null : /* @__PURE__ */ s(m, { sx: { display: "flex", gap: a ? "0.5em" : "0.375em", width: "100%" }, children: e.map((l) => /* @__PURE__ */ w(
5364
5368
  m,
@@ -5417,7 +5421,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5417
5421
  },
5418
5422
  l.key
5419
5423
  )) });
5420
- }, Kr = ({
5424
+ }, Xr = ({
5421
5425
  stats: e,
5422
5426
  label: t,
5423
5427
  language: n,
@@ -5430,24 +5434,24 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5430
5434
  ...i ? [
5431
5435
  {
5432
5436
  key: "points",
5433
- value: v(e.points, n),
5437
+ value: I(e.points, n),
5434
5438
  caption: t("points")
5435
5439
  }
5436
5440
  ] : [],
5437
5441
  {
5438
5442
  key: "winRate",
5439
- value: At(It(e.won, e.played), n),
5443
+ value: _t(vt(e.won, e.played), n),
5440
5444
  caption: t("winRate")
5441
5445
  },
5442
5446
  {
5443
5447
  key: "gd",
5444
- value: me(Ct(e.goalsFor, e.goalsAgainst)),
5445
- caption: Wt(r, t).differenceShort,
5448
+ value: me(It(e.goalsFor, e.goalsAgainst)),
5449
+ caption: Mt(r, t).differenceShort,
5446
5450
  isolate: !0
5447
5451
  }
5448
5452
  ];
5449
- return /* @__PURE__ */ s(so, { tiles: a, color: o });
5450
- }, ao = ({
5453
+ return /* @__PURE__ */ s(lo, { tiles: a, color: o });
5454
+ }, co = ({
5451
5455
  stats: e,
5452
5456
  position: t,
5453
5457
  label: n,
@@ -5459,36 +5463,36 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5459
5463
  const l = t === "keeper", c = [
5460
5464
  l ? {
5461
5465
  key: "cleanSheets",
5462
- value: v(e.cleanSheets, o),
5466
+ value: I(e.cleanSheets, o),
5463
5467
  caption: n("cleanSheetsShort")
5464
5468
  } : {
5465
5469
  key: "goals",
5466
- value: v(e.goals, o),
5470
+ value: I(e.goals, o),
5467
5471
  caption: n("goals")
5468
5472
  },
5469
5473
  l ? {
5470
5474
  key: "conceded",
5471
- value: v(e.goalsConceded, o),
5475
+ value: I(e.goalsConceded, o),
5472
5476
  caption: n("goalsConcededShort")
5473
5477
  } : {
5474
5478
  key: "assists",
5475
- value: v(e.assists, o),
5479
+ value: I(e.assists, o),
5476
5480
  caption: n("assists")
5477
5481
  },
5478
5482
  {
5479
5483
  key: "apps",
5480
- value: v(e.apps, o),
5484
+ value: I(e.apps, o),
5481
5485
  caption: n("appearancesShort")
5482
5486
  },
5483
5487
  {
5484
5488
  key: "minutes",
5485
- value: v(e.minutes, o),
5489
+ value: I(e.minutes, o),
5486
5490
  caption: n("minutes")
5487
5491
  }
5488
5492
  ].slice(0, r);
5489
- return /* @__PURE__ */ s(so, { tiles: c, color: i, size: a });
5490
- }, Yr = (e) => {
5491
- var p, f;
5493
+ return /* @__PURE__ */ s(lo, { tiles: c, color: i, size: a });
5494
+ }, Jr = (e) => {
5495
+ var g, h;
5492
5496
  const t = $(), { spacing: n } = t, { label: o, competitor: i } = e, r = {
5493
5497
  branding: e.brandingColors,
5494
5498
  hasBranding: e.hasBranding,
@@ -5502,8 +5506,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5502
5506
  paddingBlockEnd: n.lg,
5503
5507
  statsLayout: "barsOnly",
5504
5508
  athleteStatsLayout: "barsOnly"
5505
- }, l = qe(r, e.headerBackgroundGradient), c = Lt(e.ctaLayout, je()), d = e.selectedCompetitionId === z, h = /* @__PURE__ */ s(
5506
- Je,
5509
+ }, l = qe(r, e.headerBackgroundGradient), c = Rt(e.ctaLayout, je()), d = e.selectedCompetitionId === z, p = /* @__PURE__ */ s(
5510
+ Qe,
5507
5511
  {
5508
5512
  competitions: e.competitions,
5509
5513
  selectedId: e.selectedCompetitionId,
@@ -5512,7 +5516,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5512
5516
  allLabel: e.label("allCompetitions")
5513
5517
  }
5514
5518
  ), S = e.showStats ? e.kind === "ATHLETE" ? e.athleteStats && /* @__PURE__ */ s(
5515
- ao,
5519
+ co,
5516
5520
  {
5517
5521
  stats: e.athleteStats,
5518
5522
  position: e.position,
@@ -5521,7 +5525,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5521
5525
  color: l
5522
5526
  }
5523
5527
  ) : e.stats && /* @__PURE__ */ s(
5524
- Kr,
5528
+ Xr,
5525
5529
  {
5526
5530
  stats: e.stats,
5527
5531
  label: o,
@@ -5541,15 +5545,15 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5541
5545
  ctaLayout: e.ctaLayout,
5542
5546
  imageSize: 4,
5543
5547
  padding: n.lg,
5544
- background: Qn(r, e.headerBackgroundGradient),
5545
- edgeColor: Xn(r, e.headerBackgroundGradient) ? t.colors.border : null,
5548
+ background: Zn(r, e.headerBackgroundGradient),
5549
+ edgeColor: Qn(r, e.headerBackgroundGradient) ? t.colors.border : null,
5546
5550
  crestShadow: !0,
5547
5551
  onBackgroundColor: l,
5548
5552
  nameFontSize: "1.625em",
5549
5553
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
5550
5554
  badgeUrl: e.crestBadgeUrl,
5551
5555
  actions: /* @__PURE__ */ s(
5552
- Qe,
5556
+ Je,
5553
5557
  {
5554
5558
  view: e.view,
5555
5559
  onToggle: e.onToggleView,
@@ -5603,14 +5607,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5603
5607
  },
5604
5608
  children: [
5605
5609
  /* @__PURE__ */ s(
5606
- ro,
5610
+ ao,
5607
5611
  {
5608
5612
  fixtures: e.form,
5609
5613
  competitor: e.fixtureCompetitor,
5610
5614
  language: e.language,
5611
5615
  label: o,
5612
5616
  appearance: "dots",
5613
- cta: (p = e.formConfig) == null ? void 0 : p.matchCTA,
5617
+ cta: (g = e.formConfig) == null ? void 0 : g.matchCTA,
5614
5618
  athleteId: e.linkAthleteId,
5615
5619
  showCompetition: e.selectedCompetitionId === z,
5616
5620
  onBrand: !0,
@@ -5659,7 +5663,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5659
5663
  {
5660
5664
  label: o("back"),
5661
5665
  onClick: e.onBackToOverview,
5662
- trailing: h
5666
+ trailing: p
5663
5667
  }
5664
5668
  ),
5665
5669
  /* @__PURE__ */ s(
@@ -5670,7 +5674,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5670
5674
  competitor: e.fixtureCompetitor,
5671
5675
  language: e.language,
5672
5676
  label: o,
5673
- cta: (f = e.fixturesConfig) == null ? void 0 : f.matchCTA,
5677
+ cta: (h = e.fixturesConfig) == null ? void 0 : h.matchCTA,
5674
5678
  showCompetition: d,
5675
5679
  athleteId: e.linkAthleteId,
5676
5680
  align: e.titleAlign
@@ -5693,7 +5697,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5693
5697
  {
5694
5698
  label: o("back"),
5695
5699
  onClick: e.onBackToOverview,
5696
- trailing: e.secondaryView === "squad" ? h : /* @__PURE__ */ s(et, { children: e.seasonCaption })
5700
+ trailing: e.secondaryView === "squad" ? p : /* @__PURE__ */ s(et, { children: e.seasonCaption })
5697
5701
  }
5698
5702
  ),
5699
5703
  e.secondaryPanel
@@ -5701,7 +5705,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5701
5705
  }
5702
5706
  ) : null
5703
5707
  ] });
5704
- }, qr = "30em", Xr = (e) => {
5708
+ }, Qr = "30em", Zr = (e) => {
5705
5709
  var d;
5706
5710
  const t = $(), { colors: n, spacing: o } = t, { label: i, competitor: r } = e, a = {
5707
5711
  sections: ["stats", "form", "featured"],
@@ -5717,7 +5721,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5717
5721
  paddingBlockEnd: o.sm,
5718
5722
  statsLayout: "row",
5719
5723
  athleteStatsLayout: "row"
5720
- }, l = e.selectedCompetitionId === z, c = (h, S) => /* @__PURE__ */ w(
5724
+ }, l = e.selectedCompetitionId === z, c = (p, S) => /* @__PURE__ */ w(
5721
5725
  m,
5722
5726
  {
5723
5727
  sx: {
@@ -5726,7 +5730,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5726
5730
  display: "flex",
5727
5731
  flexDirection: "column",
5728
5732
  gap: "0.375em",
5729
- maxHeight: qr,
5733
+ maxHeight: Qr,
5730
5734
  overflowY: "auto",
5731
5735
  overscrollBehavior: "contain"
5732
5736
  },
@@ -5740,7 +5744,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5740
5744
  trailing: S
5741
5745
  }
5742
5746
  ),
5743
- h
5747
+ p
5744
5748
  ]
5745
5749
  }
5746
5750
  );
@@ -5758,7 +5762,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5758
5762
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
5759
5763
  badgeUrl: e.crestBadgeUrl,
5760
5764
  actions: /* @__PURE__ */ s(
5761
- Qe,
5765
+ Je,
5762
5766
  {
5763
5767
  view: e.view,
5764
5768
  onToggle: e.onToggleView,
@@ -5774,7 +5778,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5774
5778
  ),
5775
5779
  e.view === "overview" ? /* @__PURE__ */ w(Ce, { children: [
5776
5780
  /* @__PURE__ */ s(m, { sx: { borderBlockStart: `1px solid ${n.border}` }, children: /* @__PURE__ */ s(tt, { props: e, options: a }) }),
5777
- /* @__PURE__ */ s(Dt, { props: e, options: a }),
5781
+ /* @__PURE__ */ s(Ht, { props: e, options: a }),
5778
5782
  /* @__PURE__ */ s(nt, { props: e, options: a })
5779
5783
  ] }) : null,
5780
5784
  e.view === "fixtures" ? c(
@@ -5799,8 +5803,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5799
5803
  e.secondaryView === "seasonStats" ? /* @__PURE__ */ s(et, { children: e.seasonCaption }) : void 0
5800
5804
  ) : null
5801
5805
  ] });
5802
- }, Qr = "35em", Jr = (e) => {
5803
- var p;
5806
+ }, es = "35em", ts = (e) => {
5807
+ var g;
5804
5808
  const t = $(), { colors: n, spacing: o } = t, { label: i, competitor: r } = e, a = je(), l = {
5805
5809
  branding: e.brandingColors,
5806
5810
  hasBranding: e.hasBranding,
@@ -5819,7 +5823,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5819
5823
  pointsTileSize: "md",
5820
5824
  // The rail already owns the switcher.
5821
5825
  switcherOnTitleRow: !1
5822
- }, d = qe(l, e.headerBackgroundGradient), h = e.selectedCompetitionId === z, S = (f, g) => /* @__PURE__ */ w(
5826
+ }, d = qe(l, e.headerBackgroundGradient), p = e.selectedCompetitionId === z, S = (h, f) => /* @__PURE__ */ w(
5823
5827
  m,
5824
5828
  {
5825
5829
  sx: {
@@ -5828,7 +5832,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5828
5832
  display: "flex",
5829
5833
  flexDirection: "column",
5830
5834
  gap: "0.375em",
5831
- maxHeight: a ? "none" : Qr,
5835
+ maxHeight: a ? "none" : es,
5832
5836
  overflowY: a ? "visible" : "auto",
5833
5837
  overscrollBehavior: "contain"
5834
5838
  },
@@ -5839,10 +5843,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5839
5843
  label: i("back"),
5840
5844
  onClick: e.onBackToOverview,
5841
5845
  sticky: !a,
5842
- trailing: g
5846
+ trailing: f
5843
5847
  }
5844
5848
  ),
5845
- f
5849
+ h
5846
5850
  ]
5847
5851
  }
5848
5852
  );
@@ -5867,10 +5871,10 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5867
5871
  justifyContent: "center",
5868
5872
  gap: o.lg,
5869
5873
  padding: o.md,
5870
- background: Qn(l, e.headerBackgroundGradient),
5874
+ background: Zn(l, e.headerBackgroundGradient),
5871
5875
  color: d,
5872
5876
  // The rail meets the column beside it, so its edge is the inline one.
5873
- ...Xn(l, e.headerBackgroundGradient) ? { borderInlineEnd: `1px solid ${n.border}` } : {}
5877
+ ...Qn(l, e.headerBackgroundGradient) ? { borderInlineEnd: `1px solid ${n.border}` } : {}
5874
5878
  },
5875
5879
  children: [
5876
5880
  /* @__PURE__ */ s(
@@ -5888,7 +5892,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5888
5892
  defaultImagePlaceholderUrl: e.defaultImagePlaceholderUrl,
5889
5893
  badgeUrl: e.crestBadgeUrl,
5890
5894
  actions: /* @__PURE__ */ s(m, { sx: { width: "100%" }, children: /* @__PURE__ */ s(
5891
- Qe,
5895
+ Je,
5892
5896
  {
5893
5897
  view: e.view,
5894
5898
  onToggle: e.onToggleView,
@@ -5904,7 +5908,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5904
5908
  }
5905
5909
  ) }),
5906
5910
  children: e.kind === "ATHLETE" && e.showStats && e.athleteStats ? /* @__PURE__ */ s(
5907
- ao,
5911
+ co,
5908
5912
  {
5909
5913
  stats: e.athleteStats,
5910
5914
  position: e.position,
@@ -5918,7 +5922,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5918
5922
  }
5919
5923
  ),
5920
5924
  e.showCompetitionSwitcher ? /* @__PURE__ */ s(
5921
- Je,
5925
+ Qe,
5922
5926
  {
5923
5927
  competitions: e.competitions,
5924
5928
  selectedId: e.selectedCompetitionId,
@@ -5944,7 +5948,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5944
5948
  children: [
5945
5949
  e.view === "overview" ? /* @__PURE__ */ w(Ce, { children: [
5946
5950
  /* @__PURE__ */ s(tt, { props: e, options: c }),
5947
- /* @__PURE__ */ s(Dt, { props: e, options: c }),
5951
+ /* @__PURE__ */ s(Ht, { props: e, options: c }),
5948
5952
  /* @__PURE__ */ s(nt, { props: e, options: c })
5949
5953
  ] }) : null,
5950
5954
  e.view === "fixtures" ? S(
@@ -5956,8 +5960,8 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5956
5960
  competitor: e.fixtureCompetitor,
5957
5961
  language: e.language,
5958
5962
  label: i,
5959
- cta: (p = e.fixturesConfig) == null ? void 0 : p.matchCTA,
5960
- showCompetition: h,
5963
+ cta: (g = e.fixturesConfig) == null ? void 0 : g.matchCTA,
5964
+ showCompetition: p,
5961
5965
  athleteId: e.linkAthleteId,
5962
5966
  align: e.titleAlign,
5963
5967
  dense: !0
@@ -5974,7 +5978,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5974
5978
  ]
5975
5979
  }
5976
5980
  ) });
5977
- }, Zr = ({
5981
+ }, ns = ({
5978
5982
  entityId: e,
5979
5983
  sdk: t,
5980
5984
  language: n,
@@ -5985,19 +5989,19 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
5985
5989
  ctaLayout: l = "responsive",
5986
5990
  titlePosition: c = "left",
5987
5991
  showCompetitionSwitcher: d = !0,
5988
- showStats: h = !0,
5992
+ showStats: p = !0,
5989
5993
  stats: S,
5990
- showForm: p = !0,
5991
- form: f,
5992
- showFeaturedMatch: g = !0,
5994
+ showForm: g = !0,
5995
+ form: h,
5996
+ showFeaturedMatch: f = !0,
5993
5997
  featuredMatch: x,
5994
5998
  showOdds: y = !1,
5995
5999
  odds: k,
5996
- showFixtures: I = !0,
6000
+ showFixtures: v = !0,
5997
6001
  fixtures: C,
5998
6002
  showSquad: u = !0,
5999
6003
  squad: b,
6000
- showSeasonStats: F = !0,
6004
+ showSeasonStats: E = !0,
6001
6005
  hasBranding: _ = !0,
6002
6006
  headerBackgroundGradient: L,
6003
6007
  liveRefresh: D = !0,
@@ -6005,50 +6009,50 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6005
6009
  labels: W,
6006
6010
  onAddToBetslip: V
6007
6011
  }) => {
6008
- var Yt, qt, Xt, Qt, Jt, Zt, en, tn, nn, on;
6009
- const ot = $(), { colors: Fe, fonts: Ee, spacing: $e } = ot, U = Pn(W), re = Un(), {
6010
- data: E,
6012
+ var qt, Xt, Jt, Qt, Zt, en, tn, nn, on, rn;
6013
+ const ot = $(), { colors: Fe, fonts: Ee, spacing: $e } = ot, U = Gn(W), re = jn(), {
6014
+ data: F,
6011
6015
  loading: se,
6012
6016
  error: ae,
6013
6017
  notFound: le
6014
- } = ui(t, e, n), G = (E == null ? void 0 : E.kind) === "TEAM", N = (E == null ? void 0 : E.kind) === "ATHLETE", Ht = {
6018
+ } = pi(t, e, n), G = (F == null ? void 0 : F.kind) === "TEAM", O = (F == null ? void 0 : F.kind) === "ATHLETE", zt = {
6015
6019
  withCountry: i,
6016
6020
  liveRefresh: D,
6017
6021
  refreshInterval: B,
6018
- sport: (E == null ? void 0 : E.sport) ?? null
6019
- }, Be = zi(
6022
+ sport: (F == null ? void 0 : F.sport) ?? null
6023
+ }, Be = Pi(
6020
6024
  t,
6021
- G ? (E == null ? void 0 : E.id) ?? null : null,
6022
- (E == null ? void 0 : E.countryId) ?? null,
6025
+ G ? (F == null ? void 0 : F.id) ?? null : null,
6026
+ (F == null ? void 0 : F.countryId) ?? null,
6023
6027
  n,
6024
6028
  U,
6025
- { enabled: !!G, ...Ht }
6026
- ), Le = Qi(
6029
+ { enabled: !!G, ...zt }
6030
+ ), Le = er(
6027
6031
  t,
6028
- N ? (E == null ? void 0 : E.id) ?? null : null,
6029
- (E == null ? void 0 : E.countryId) ?? null,
6032
+ O ? (F == null ? void 0 : F.id) ?? null : null,
6033
+ (F == null ? void 0 : F.countryId) ?? null,
6030
6034
  n,
6031
6035
  U,
6032
- { enabled: !!N, ...Ht }
6033
- ), H = Be.profile, A = Le.profile, lo = G ? Be.loading : N ? Le.loading : !1, co = G ? Be.error : N ? Le.error : !1, it = G ? !!H : !!A, zt = G ? Be.country : Le.country, [Nt, rt] = M.useState("overview"), [q, Ot] = M.useState(z), [mo, uo] = M.useState(
6036
+ { enabled: !!O, ...zt }
6037
+ ), H = Be.profile, A = Le.profile, mo = G ? Be.loading : O ? Le.loading : !1, uo = G ? Be.error : O ? Le.error : !1, it = G ? !!H : !!A, Ot = G ? Be.country : Le.country, [Nt, rt] = M.useState("overview"), [q, Pt] = M.useState(z), [ho, po] = M.useState(
6034
6038
  (x == null ? void 0 : x.type) === "last" ? "last" : "next"
6035
6039
  );
6036
6040
  M.useEffect(() => {
6037
6041
  rt("overview");
6038
6042
  }, [e]);
6039
- const ce = (H == null ? void 0 : H.competitions) ?? (A == null ? void 0 : A.competitions) ?? [], st = (H == null ? void 0 : H.results) ?? (A == null ? void 0 : A.results) ?? [], at = (H == null ? void 0 : H.upcoming) ?? (A == null ? void 0 : A.upcoming) ?? [], Re = (H == null ? void 0 : H.live) ?? (A == null ? void 0 : A.live) ?? null, Pt = ((Yt = Re ?? at[0] ?? st[0]) == null ? void 0 : Yt.competitionId) ?? null, We = Pt && ((qt = ce.find((O) => O.id === Pt)) == null ? void 0 : qt.id) || ((Xt = ce[1]) == null ? void 0 : Xt.id) || z, lt = M.useMemo(() => {
6040
- const O = ce.findIndex(
6041
- (rn) => rn.id === We && rn.id !== z
6043
+ const ce = (H == null ? void 0 : H.competitions) ?? (A == null ? void 0 : A.competitions) ?? [], st = (H == null ? void 0 : H.results) ?? (A == null ? void 0 : A.results) ?? [], at = (H == null ? void 0 : H.upcoming) ?? (A == null ? void 0 : A.upcoming) ?? [], Re = (H == null ? void 0 : H.live) ?? (A == null ? void 0 : A.live) ?? null, Ut = ((qt = Re ?? at[0] ?? st[0]) == null ? void 0 : qt.competitionId) ?? null, We = Ut && ((Xt = ce.find((N) => N.id === Ut)) == null ? void 0 : Xt.id) || ((Jt = ce[1]) == null ? void 0 : Jt.id) || z, lt = M.useMemo(() => {
6044
+ const N = ce.findIndex(
6045
+ (sn) => sn.id === We && sn.id !== z
6042
6046
  );
6043
- if (O < 1) return ce;
6047
+ if (N < 1) return ce;
6044
6048
  const we = [...ce];
6045
- return we.splice(1, 0, ...we.splice(O, 1)), we;
6046
- }, [ce, We]), Me = (H == null ? void 0 : H.teamId) ?? (A == null ? void 0 : A.athleteId) ?? null, Ut = M.useRef(null);
6049
+ return we.splice(1, 0, ...we.splice(N, 1)), we;
6050
+ }, [ce, We]), Me = (H == null ? void 0 : H.teamId) ?? (A == null ? void 0 : A.athleteId) ?? null, Gt = M.useRef(null);
6047
6051
  M.useEffect(() => {
6048
- !Me || Ut.current === Me || (Ut.current = Me, Ot(We));
6052
+ !Me || Gt.current === Me || (Gt.current = Me, Pt(We));
6049
6053
  }, [Me, We]);
6050
6054
  const fe = M.useCallback(
6051
- (O) => q === z || O.competitionId === q,
6055
+ (N) => q === z || N.competitionId === q,
6052
6056
  [q]
6053
6057
  ), ge = M.useMemo(
6054
6058
  () => st.filter(fe),
@@ -6057,35 +6061,35 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6057
6061
  () => at.filter(fe),
6058
6062
  [at, fe]
6059
6063
  ), ye = Re && fe(Re) ? Re : null, dt = M.useMemo(
6060
- () => ge.slice(0, wi(f == null ? void 0 : f.maxItems)),
6061
- [ge, f == null ? void 0 : f.maxItems]
6062
- ), ho = M.useMemo(
6063
- () => gi(
6064
- dt.map((O) => O.outcome).filter((O) => O !== null)
6064
+ () => ge.slice(0, Ci(h == null ? void 0 : h.maxItems)),
6065
+ [ge, h == null ? void 0 : h.maxItems]
6066
+ ), fo = M.useMemo(
6067
+ () => xi(
6068
+ dt.map((N) => N.outcome).filter((N) => N !== null)
6065
6069
  ),
6066
6070
  [dt]
6067
- ), { fixture: xe, side: po } = Ii({
6071
+ ), { fixture: xe, side: go } = bi({
6068
6072
  live: ye,
6069
6073
  last: ge[0],
6070
6074
  next: ct[0],
6071
- preferred: mo
6072
- }), fo = rr(
6075
+ preferred: ho
6076
+ }), yo = lr(
6073
6077
  t,
6074
6078
  (ye == null ? void 0 : ye.id) ?? null,
6075
- ((Qt = E == null ? void 0 : E.sport) == null ? void 0 : Qt.toLowerCase()) ?? null,
6079
+ ((Qt = F == null ? void 0 : F.sport) == null ? void 0 : Qt.toLowerCase()) ?? null,
6076
6080
  { enabled: !!ye, refreshInterval: B }
6077
- ), go = (k == null ? void 0 : k.market) ?? "FT_1X2", Se = (xe == null ? void 0 : xe.status) === "upcoming" ? xe.id : null, { odds: yo } = Vo(t, Se ? [Se] : [], {
6081
+ ), xo = (k == null ? void 0 : k.market) ?? "FT_1X2", Se = (xe == null ? void 0 : xe.status) === "upcoming" ? xe.id : null, { odds: So } = Xo(t, Se ? [Se] : [], {
6078
6082
  enabled: y && !!Se,
6079
- markets: [go],
6083
+ markets: [xo],
6080
6084
  // Decides whether the fixture is priced three ways or two.
6081
- sport: (E == null ? void 0 : E.sport) ?? null,
6085
+ sport: (F == null ? void 0 : F.sport) ?? null,
6082
6086
  pollingIntervalMs: k == null ? void 0 : k.pollingInterval,
6083
6087
  operators: k == null ? void 0 : k.operators,
6084
6088
  affiliateId: k == null ? void 0 : k.affiliateId,
6085
6089
  affiliateIds: k == null ? void 0 : k.affiliateIds
6086
- }), xo = Se && yo.get(Se) || null, mt = (H == null ? void 0 : H.statsByCompetition.get(q)) ?? null, De = mt && mt.played > 0 ? mt : null, So = (A == null ? void 0 : A.statsByCompetition.get(q)) ?? null, ut = lt.find(
6087
- (O) => O.id === q
6088
- ), Gt = N ? (A == null ? void 0 : A.teamPlayedByCompetition.get(q)) ?? 0 : (De == null ? void 0 : De.played) ?? 0, { players: wo, loading: ko } = Ji(
6090
+ }), wo = Se && So.get(Se) || null, mt = (H == null ? void 0 : H.statsByCompetition.get(q)) ?? null, De = mt && mt.played > 0 ? mt : null, ko = (A == null ? void 0 : A.statsByCompetition.get(q)) ?? null, ut = lt.find(
6091
+ (N) => N.id === q
6092
+ ), jt = O ? (A == null ? void 0 : A.teamPlayedByCompetition.get(q)) ?? 0 : (De == null ? void 0 : De.played) ?? 0, { players: Co, loading: Io } = tr(
6089
6093
  t,
6090
6094
  (H == null ? void 0 : H.athleteStats) ?? [],
6091
6095
  q,
@@ -6093,9 +6097,9 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6093
6097
  // The lookup only fires once the visitor actually opens the panel.
6094
6098
  Nt === "squad" && !!G
6095
6099
  );
6096
- if (se || lo)
6097
- return /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(Cn, { my: 6 }) });
6098
- if (ae || co && !it)
6100
+ if (se || mo)
6101
+ return /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(bn, { my: 6 }) });
6102
+ if (ae || uo && !it)
6099
6103
  return /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
6100
6104
  T,
6101
6105
  {
@@ -6109,54 +6113,54 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6109
6113
  children: U("loadFailed")
6110
6114
  }
6111
6115
  ) });
6112
- if (le || !E) return /* @__PURE__ */ s(lr, { labels: W });
6113
- const K = zt ? { ...E, country: zt } : E, ht = zn(E.position), jt = vt(E.dateOfBirth), Vt = (N ? [
6114
- E.position ? re(ht) : null,
6115
- ((Jt = A == null ? void 0 : A.team) == null ? void 0 : Jt.name) ?? null,
6116
- jt !== null ? U("years", { count: jt }) : null,
6117
- i ? ((Zt = K.country) == null ? void 0 : Zt.name) ?? null : null
6116
+ if (le || !F) return /* @__PURE__ */ s(mr, { labels: W });
6117
+ const K = Ot ? { ...F, country: Ot } : F, ht = Nn(F.position), Vt = bt(F.dateOfBirth), Kt = (O ? [
6118
+ F.position ? re(ht) : null,
6119
+ ((Zt = A == null ? void 0 : A.team) == null ? void 0 : Zt.name) ?? null,
6120
+ Vt !== null ? U("years", { count: Vt }) : null,
6121
+ i ? ((en = K.country) == null ? void 0 : en.name) ?? null : null
6118
6122
  ] : [
6119
6123
  // A national side IS its country, so naming it again reads as "Spain — Spain".
6120
- i && ((en = K.country) == null ? void 0 : en.name) !== K.name ? ((tn = K.country) == null ? void 0 : tn.name) ?? null : null,
6124
+ i && ((tn = K.country) == null ? void 0 : tn.name) !== K.name ? ((nn = K.country) == null ? void 0 : nn.name) ?? null : null,
6121
6125
  K.founded ? U("established", { year: K.founded }) : null
6122
- ]).filter((O) => !!O), He = N ? !!(A != null && A.teamId) : !!G, Co = (N ? A == null ? void 0 : A.team : null) ?? K, Kt = N ? ((nn = A == null ? void 0 : A.team) == null ? void 0 : nn.branding) ?? null : K.branding, Io = N ? "seasonStats" : "squad", vo = { branding: Kt, hasBranding: _, styles: ot }, ze = {
6126
+ ]).filter((N) => !!N), He = O ? !!(A != null && A.teamId) : !!G, vo = (O ? A == null ? void 0 : A.team : null) ?? K, Yt = O ? ((on = A == null ? void 0 : A.team) == null ? void 0 : on.branding) ?? null : K.branding, bo = O ? "seasonStats" : "squad", To = { branding: Yt, hasBranding: _, styles: ot }, ze = {
6123
6127
  competitor: K,
6124
- kind: E.kind,
6125
- fixtureCompetitor: Co,
6126
- crestBadgeUrl: N ? ((on = A == null ? void 0 : A.team) == null ? void 0 : on.image) ?? null : null,
6127
- linkAthleteId: N ? E.id : null,
6128
- brandingColors: Kt,
6129
- subtitle: Vt.length > 0 ? Vt.join(N ? " · " : " • ") : null,
6128
+ kind: F.kind,
6129
+ fixtureCompetitor: vo,
6130
+ crestBadgeUrl: O ? ((rn = A == null ? void 0 : A.team) == null ? void 0 : rn.image) ?? null : null,
6131
+ linkAthleteId: O ? F.id : null,
6132
+ brandingColors: Yt,
6133
+ subtitle: Kt.length > 0 ? Kt.join(O ? " · " : " • ") : null,
6130
6134
  language: n,
6131
6135
  label: U,
6132
6136
  titleAlign: c,
6133
6137
  view: Nt,
6134
- onToggleView: (O) => rt((we) => we === O ? "overview" : O),
6138
+ onToggleView: (N) => rt((we) => we === N ? "overview" : N),
6135
6139
  onBackToOverview: () => rt("overview"),
6136
6140
  competitions: lt,
6137
6141
  selectedCompetitionId: q,
6138
- onSelectCompetition: Ot,
6142
+ onSelectCompetition: Pt,
6139
6143
  stats: De,
6140
- athleteStats: So,
6141
- teamPlayed: Gt,
6144
+ athleteStats: ko,
6145
+ teamPlayed: jt,
6142
6146
  position: ht,
6143
6147
  seasonCaption: A != null && A.season ? U("season", { season: A.season }) : null,
6144
6148
  form: dt,
6145
- streak: ho,
6149
+ streak: fo,
6146
6150
  featured: xe,
6147
- featuredSide: po,
6148
- onSelectFeaturedSide: uo,
6151
+ featuredSide: go,
6152
+ onSelectFeaturedSide: po,
6149
6153
  // Only with something on both sides. A toggle whose other side is empty would land back on the
6150
6154
  // fixture already showing, so it would read as a control that does nothing.
6151
6155
  showFeaturedToggle: ((x == null ? void 0 : x.toggle) ?? !0) && ge.length > 0 && ct.length > 0,
6152
- liveMinute: fo,
6153
- odds: xo,
6156
+ liveMinute: yo,
6157
+ odds: wo,
6154
6158
  upcoming: ct,
6155
6159
  results: ge,
6156
- secondaryView: Io,
6157
- secondaryLabel: U(N ? "seasonStats" : "squad"),
6158
- secondaryPanel: N ? /* @__PURE__ */ s(
6159
- Ar,
6160
+ secondaryView: bo,
6161
+ secondaryLabel: U(O ? "seasonStats" : "squad"),
6162
+ secondaryPanel: O ? /* @__PURE__ */ s(
6163
+ Er,
6160
6164
  {
6161
6165
  competitions: lt,
6162
6166
  statsByCompetition: (A == null ? void 0 : A.statsByCompetition) ?? /* @__PURE__ */ new Map(),
@@ -6166,29 +6170,29 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6166
6170
  dense: o === "compact" || o === "horizontal"
6167
6171
  }
6168
6172
  ) : /* @__PURE__ */ s(
6169
- br,
6173
+ _r,
6170
6174
  {
6171
- players: wo,
6172
- loading: ko,
6175
+ players: Co,
6176
+ loading: Io,
6173
6177
  competitorId: K.id,
6174
- teamPlayed: Gt,
6178
+ teamPlayed: jt,
6175
6179
  language: n,
6176
6180
  label: U,
6177
- branding: vo,
6181
+ branding: To,
6178
6182
  config: b,
6179
6183
  dense: o === "compact" || o === "horizontal"
6180
6184
  }
6181
6185
  ),
6182
- showStats: h && it,
6186
+ showStats: p && it,
6183
6187
  showPoints: !(ut != null && ut.cup),
6184
6188
  showCompetitionSwitcher: d && it,
6185
- showForm: p && He,
6186
- showFeaturedMatch: g && He,
6189
+ showForm: g && He,
6190
+ showFeaturedMatch: f && He,
6187
6191
  showOdds: y && He,
6188
- showFixtures: I && He,
6189
- showSecondary: N ? F && !!A : u && !!G,
6192
+ showFixtures: v && He,
6193
+ showSecondary: O ? E && !!A : u && !!G,
6190
6194
  statsConfig: S,
6191
- formConfig: f,
6195
+ formConfig: h,
6192
6196
  matchConfig: x,
6193
6197
  fixturesConfig: C,
6194
6198
  squadConfig: b,
@@ -6200,21 +6204,21 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6200
6204
  headerLayout: a,
6201
6205
  ctaLayout: l
6202
6206
  };
6203
- return o === "hero" ? /* @__PURE__ */ s(Yr, { ...ze }) : o === "compact" ? /* @__PURE__ */ s(Xr, { ...ze }) : o === "horizontal" ? /* @__PURE__ */ s(Jr, { ...ze }) : /* @__PURE__ */ s(Vr, { ...ze });
6204
- }, es = (e) => {
6205
- const [t, n] = M.useState(!1), [o, i] = M.useState(!1), r = Ro(e.language), a = M.useRef(
6207
+ return o === "hero" ? /* @__PURE__ */ s(Jr, { ...ze }) : o === "compact" ? /* @__PURE__ */ s(Zr, { ...ze }) : o === "horizontal" ? /* @__PURE__ */ s(ts, { ...ze }) : /* @__PURE__ */ s(qr, { ...ze });
6208
+ }, os = (e) => {
6209
+ const [t, n] = M.useState(!1), [o, i] = M.useState(!1), r = No(e.language), a = M.useRef(
6206
6210
  `competitor-card-shadow-root-${Math.random().toString(36).substring(2, 11)}`
6207
- ), l = M.useRef(null), c = M.useRef(null), d = M.useRef(null), [h, S] = M.useState(null);
6211
+ ), l = M.useRef(null), c = M.useRef(null), d = M.useRef(null), [p, S] = M.useState(null);
6208
6212
  M.useEffect(() => {
6209
- Wo(e.language || "en").finally(() => i(!0));
6213
+ Po(e.language || "en").finally(() => i(!0));
6210
6214
  }, [e.language]), M.useEffect(() => {
6211
6215
  if (!l.current) return;
6212
6216
  l.current.shadowRoot ? (c.current = l.current.shadowRoot, d.current = c.current.getElementById(
6213
6217
  a.current
6214
- ), d.current || (d.current = document.createElement("div"), d.current.id = a.current, d.current.style.height = "100%", c.current.appendChild(d.current))) : (c.current = l.current.attachShadow({ mode: "open" }), d.current = document.createElement("div"), d.current.id = a.current, d.current.style.height = "100%", c.current.appendChild(d.current)), Mo(d.current, r);
6215
- const x = Po("competitor-card", r);
6218
+ ), d.current || (d.current = document.createElement("div"), d.current.id = a.current, d.current.style.height = "100%", c.current.appendChild(d.current))) : (c.current = l.current.attachShadow({ mode: "open" }), d.current = document.createElement("div"), d.current.id = a.current, d.current.style.height = "100%", c.current.appendChild(d.current)), Uo(d.current, r);
6219
+ const x = Go("competitor-card", r);
6216
6220
  return S(
6217
- (y) => (y == null ? void 0 : y.key) === x ? y : Do(
6221
+ (y) => (y == null ? void 0 : y.key) === x ? y : jo(
6218
6222
  "competitor-card",
6219
6223
  c.current,
6220
6224
  r
@@ -6223,26 +6227,26 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6223
6227
  n(!1);
6224
6228
  };
6225
6229
  }, [r]);
6226
- const p = e.themeOptions, f = /* @__PURE__ */ s(
6230
+ const g = e.themeOptions, h = /* @__PURE__ */ s(
6227
6231
  m,
6228
6232
  {
6229
6233
  ref: l,
6230
6234
  lang: e.language || "en",
6231
6235
  sx: { height: "100%", display: "block" }
6232
6236
  }
6233
- ), g = t && o && d.current && h ? Uo(
6237
+ ), f = t && o && d.current && p ? ti(
6234
6238
  // Keyed on the cache, not on `direction`: it must change in the same render that adopts
6235
6239
  // the new cache, or CssVarsProvider writes its CSS variables into the outgoing cache and
6236
6240
  // never repeats.
6237
- /* @__PURE__ */ s(Ho, { value: h, children: /* @__PURE__ */ s(zo, { containerRef: l, children: /* @__PURE__ */ s(
6238
- No,
6241
+ /* @__PURE__ */ s(ei, { value: p, children: /* @__PURE__ */ s(Vo, { containerRef: l, children: /* @__PURE__ */ s(
6242
+ Ko,
6239
6243
  {
6240
- customTheme: p,
6241
- mode: p == null ? void 0 : p.mode,
6244
+ customTheme: g,
6245
+ mode: g == null ? void 0 : g.mode,
6242
6246
  shadowRootElement: d.current,
6243
6247
  direction: r,
6244
6248
  children: /* @__PURE__ */ w(
6245
- Oo,
6249
+ Yo,
6246
6250
  {
6247
6251
  shadowRootElement: d.current,
6248
6252
  leadPhoneCountryCode: null,
@@ -6251,7 +6255,7 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6251
6255
  direction: r,
6252
6256
  children: [
6253
6257
  /* @__PURE__ */ s(
6254
- Zo,
6258
+ Fo,
6255
6259
  {
6256
6260
  styles: {
6257
6261
  "@keyframes cc-pulse": {
@@ -6266,14 +6270,14 @@ const hr = /\{(\w+)\}/g, pr = (e, t) => e.replace(hr, (n, o) => {
6266
6270
  }
6267
6271
  )
6268
6272
  }
6269
- ) }) }, h.key),
6273
+ ) }) }, p.key),
6270
6274
  d.current
6271
6275
  ) : null;
6272
6276
  return /* @__PURE__ */ w(Ce, { children: [
6273
- f,
6274
- g
6277
+ h,
6278
+ f
6275
6279
  ] });
6276
- }, ts = (e) => /* @__PURE__ */ s(es, { ...e, children: /* @__PURE__ */ s(Zr, { ...e }) }), ks = ts;
6280
+ }, is = (e) => /* @__PURE__ */ s(os, { ...e, children: /* @__PURE__ */ s(ns, { ...e }) }), Ss = is;
6277
6281
  export {
6278
- ks as CompetitorCard
6282
+ Ss as CompetitorCard
6279
6283
  };