fansunited-frontend-components 0.0.86 → 0.0.87

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 (127) hide show
  1. package/Betslip.js +1 -1
  2. package/ChanceGame.js +10 -10
  3. package/ClassicQuizPlay.js +1 -1
  4. package/CollectLead.js +7 -7
  5. package/CompetitionStatistics.d.ts +5 -0
  6. package/CompetitionStatistics.d.ts.map +1 -0
  7. package/CompetitionStatistics.js +2802 -0
  8. package/CompetitorCard.js +637 -656
  9. package/Discussion.js +1 -1
  10. package/EitherOrPlay.js +1 -1
  11. package/EventCard.js +40 -47
  12. package/EventGamePlay.js +1 -1
  13. package/Leaderboard.js +13 -13
  14. package/List.js +15 -15
  15. package/MatchQuizPlay.js +1 -1
  16. package/PersonalityQuizPlay.js +1 -1
  17. package/PickThePair.js +11 -11
  18. package/PlayerOfTheMatch.js +22 -22
  19. package/PollVote.js +1 -1
  20. package/Predictor.js +1 -1
  21. package/README.md +138 -3
  22. package/Standings.js +10 -10
  23. package/TopX.js +38 -37
  24. package/chunks/{AccessTime-DZsXIVlS.js → AccessTime-DnYmc2y3.js} +1 -1
  25. package/chunks/{AlertMessage-mdjyklCX.js → AlertMessage-DaxNsecq.js} +21 -20
  26. package/chunks/{Avatar-D3yp-aRF.js → Avatar-CmxmG17Y.js} +3 -3
  27. package/chunks/{Button-Ba88lSnz.js → Button-ClWJ5CUf.js} +3 -3
  28. package/chunks/{Card-ZbfN9iNz.js → Card-BAIFE-g5.js} +12 -11
  29. package/chunks/{CardActions-CmWWezXa.js → CardActions-UK4_wiGW.js} +11 -11
  30. package/chunks/{CardContent-DxoVbjf2.js → CardContent-BKLKsqNJ.js} +2 -2
  31. package/chunks/{ChanceGameEmbedVariant-s8IuiPTs.js → ChanceGameEmbedVariant-BkX-XQ-f.js} +10 -10
  32. package/chunks/{CheckCircle-BG2qEsq1.js → CheckCircle-DPspFBOU.js} +1 -1
  33. package/chunks/{Chip-dm_ka0yY.js → Chip-06eY-2lp.js} +38 -37
  34. package/chunks/{Close-Da_jsGnv.js → Close-C04vOO5T.js} +1 -1
  35. package/chunks/{Close-y509nyXQ.js → Close-DFwlCPON.js} +1 -1
  36. package/chunks/{CollectLeadForm-CQLR-11r.js → CollectLeadForm-CNl5gQZc.js} +46 -45
  37. package/chunks/{ConsentsList-C-U7raxx.js → ConsentsList-CccpD61h.js} +6 -6
  38. package/chunks/{DirectionScope-naCviTG1.js → DirectionScope-8YC2_4GO.js} +1 -1
  39. package/chunks/{Divider-DQT1c9FQ.js → Divider-DWIh5AWp.js} +3 -3
  40. package/chunks/{Edit-DaTdMbng.js → Edit-CMe6gWEl.js} +8 -8
  41. package/chunks/{EmojiEvents-DFNrzPuy.js → EmojiEvents-CRgQHdIP.js} +1 -1
  42. package/chunks/{FavoriteBorder-CbmeWW2T.js → FavoriteBorder-4LopuXjl.js} +1 -1
  43. package/chunks/{FormControl-DgzOlvzS.js → FormControl-DVXYjXgr.js} +12 -12
  44. package/chunks/{FormLabel-BSFhHZnm.js → FormLabel-D5Fg4BoV.js} +3 -3
  45. package/chunks/{GlobalStyles-DMO_VrN7.js → GlobalStyles-Cu-OUtHY.js} +1 -1
  46. package/chunks/{InlineSpinner-BDGu6S9a.js → InlineSpinner-BqP-sRnL.js} +2 -2
  47. package/chunks/{Input-Cb3solC7.js → Input-BOvLXH0a.js} +19 -18
  48. package/chunks/{KeyboardArrowDown-p7zQXgQW.js → KeyboardArrowDown-BQz06NpG.js} +1 -1
  49. package/chunks/{KeyboardArrowRight-CxFWmjUb.js → KeyboardArrowRight-CMArGhjp.js} +1 -1
  50. package/chunks/{Link-5-5Tkbsx.js → Link-C73EMUDp.js} +17 -16
  51. package/chunks/{ListItemButton-ClXre7Xx.js → ListItemButton-6Dx_qKG9.js} +20 -19
  52. package/chunks/{ModalClose-DvCxOJfi.js → ModalClose-DCM0NGvd.js} +6 -6
  53. package/chunks/{ModalDialog-BfVORTO9.js → ModalDialog-CaSBYjVn.js} +22 -22
  54. package/chunks/{NotFoundSkeleton-CBL3Q0e2.js → NotFoundSkeleton-D34gqMWJ.js} +2 -2
  55. package/chunks/{Notification-DEfeZ_zB.js → Notification-Q_rv7f9m.js} +20 -19
  56. package/chunks/{OverlayScoreStateSkeleton-BfWHiCoT.js → OverlayScoreStateSkeleton-k9CYtDkE.js} +4 -4
  57. package/chunks/{OverlayScoreStateWrapperSkeleton-DGCoxYU_.js → OverlayScoreStateWrapperSkeleton-B8wadyuJ.js} +1 -1
  58. package/chunks/{OverlaySignInSkeleton-Bjs-kbH_.js → OverlaySignInSkeleton-D_idxb5n.js} +4 -4
  59. package/chunks/{OverlaySkeleton-CYq0fXsc.js → OverlaySkeleton-m-qkzhXB.js} +9 -9
  60. package/chunks/{Person-BvTGLIe1.js → Person-utLXm1J4.js} +1 -1
  61. package/chunks/{PersonOutline-DylGIHBz.js → PersonOutline-lhMwfisr.js} +1 -1
  62. package/chunks/{PickOneOfX-Cw5YmUZK.js → PickOneOfX-DRiLtqqV.js} +3 -3
  63. package/chunks/{Popper-CiuNPpkb.js → Popper-Bdn0wHi9.js} +3 -3
  64. package/chunks/{Portal-DzlKOG-O.js → Portal-BEroYNyJ.js} +11 -11
  65. package/chunks/{Portal-IratSYID.js → Portal-BdRuZNR8.js} +1 -1
  66. package/chunks/{Predictor-C3Kr_dEA.js → Predictor-Bn2zkvlD.js} +2007 -2011
  67. package/chunks/{PrizeCard-CwEzUVMJ.js → PrizeCard-nRBh9VU_.js} +4084 -2173
  68. package/chunks/{Search-B7BcOoCG.js → Search-B-Xqc3De.js} +1 -1
  69. package/chunks/{Select-oNgIy1H3.js → Select-CmHfLRTg.js} +25 -24
  70. package/chunks/{Sheet-DVdyMkHi.js → Sheet-Q5izbz85.js} +18 -17
  71. package/chunks/{SignInCta-DcNkObOQ.js → SignInCta-FBCz227A.js} +3 -3
  72. package/chunks/{Spinner-DBETUiAV.js → Spinner-wUVcNUtR.js} +2 -2
  73. package/chunks/{SportsSoccer-DGQ7NYD7.js → SportsSoccer-Dq3Azbu-.js} +1 -1
  74. package/chunks/{Stack-CppwMpFB.js → Stack-CY7bQJ7u.js} +19 -19
  75. package/chunks/{StandardContentSkeleton-B8nlGHR6.js → StandardContentSkeleton-Bm_8xH6p.js} +1 -1
  76. package/chunks/{Table-Dk1ukQa6.js → Table-Cew1z7pw.js} +2 -2
  77. package/chunks/{Tabs-CmFfmpyp.js → Tabs-DuqeCPIW.js} +19 -18
  78. package/chunks/{Textarea-BRHSeC7k.js → Textarea-Dwn6AF-Z.js} +3 -3
  79. package/chunks/{TimerOutlined-iVv_QE1G.js → TimerOutlined-HGpj-FEQ.js} +1 -1
  80. package/chunks/{Tooltip-BaFJF8Hm.js → Tooltip-Boqkti8t.js} +44 -43
  81. package/chunks/Typography-DaXtC0md.js +1086 -0
  82. package/chunks/{WorkspacePremiumOutlined-CgWyDKg5.js → WorkspacePremiumOutlined-OHYXXF58.js} +1 -1
  83. package/chunks/colorInversionUtils-BPGyYARg.js +347 -0
  84. package/chunks/{createSvgIcon-BkXgNHbb.js → createSvgIcon-DaCJY2eU.js} +1 -1
  85. package/chunks/{createSvgIcon-DvpPe0m8.js → createSvgIcon-mpOIuxRM.js} +2 -2
  86. package/chunks/{dividerClasses-_a2MkLdj.js → dividerClasses-D8aWZR-L.js} +1 -1
  87. package/chunks/{elementAcceptingRef-CFCF4JTN.js → elementAcceptingRef-DhvOV1kD.js} +1 -1
  88. package/chunks/{formLabelClasses-DnxGgDxQ.js → formLabelClasses-DrWVkeKS.js} +1 -1
  89. package/chunks/{helpers-BVcELFvC.js → helpers-CqPvv3gw.js} +1 -1
  90. package/chunks/index-BI_1_9JX.js +4 -0
  91. package/chunks/index-CBD3UTgX.js +4 -0
  92. package/chunks/index-CDxdDU5W.js +4 -0
  93. package/chunks/index-CR9X9c_3.js +4 -0
  94. package/chunks/index-DLWjbTmD.js +4 -0
  95. package/chunks/index-DVzuyb5J.js +4 -0
  96. package/chunks/{index-Jo_fbxsQ.js → index-iWn7Rdh9.js} +1 -1
  97. package/chunks/index-kvAqk2tW.js +4 -0
  98. package/chunks/{main-CpERt7cC.js → main-BOQ_5kqd.js} +30 -30
  99. package/chunks/{main-CpXKD7Ei.js → main-BRCfR5lM.js} +76 -75
  100. package/chunks/{main-RD9fUvtz.js → main-C6bG2zD0.js} +28 -28
  101. package/chunks/{main-Che3VjMd.js → main-CB6OELiE.js} +19 -19
  102. package/chunks/{main-f7EUpatJ.js → main-DgcqQ3D5.js} +22 -22
  103. package/chunks/{main-DZoTUuoz.js → main-Dn5EUDh-.js} +34 -34
  104. package/chunks/{main-NkO906fN.js → main-DoPO3SkP.js} +3 -3
  105. package/chunks/{main-P_iMTyYG.js → main-DyQtrmbq.js} +25 -25
  106. package/chunks/searchEntities-SJcoznz0.js +38 -0
  107. package/chunks/{useButton-Qs8SQ3Oc.js → useButton-4zMfywSn.js} +5 -4
  108. package/chunks/{useConsents-DPYMv1XL.js → useConsents-C9bnFES_.js} +12 -12
  109. package/chunks/{useEventCallback-CdVOlM24.js → useEventCallback-D-URXDH4.js} +1 -1
  110. package/chunks/{useForwardedInput-D_hsYWHs.js → useForwardedInput-Bm2kgM0U.js} +2 -2
  111. package/chunks/{useImageVariant-DKmsQtyv.js → useImageVariant-Bwh3HQQD.js} +1 -1
  112. package/chunks/{useParticipationDraft-D9mIeJ3U.js → useParticipationDraft-ZkV4H6kC.js} +6 -6
  113. package/chunks/{useSwitch-CqvwWw9p.js → useSwitch-CIN7Th7t.js} +24 -23
  114. package/components.d.ts +2 -1
  115. package/components.d.ts.map +1 -1
  116. package/index.d.ts +1 -0
  117. package/index.d.ts.map +1 -1
  118. package/index.js +14 -12
  119. package/package.json +6 -2
  120. package/chunks/Typography-Du02dCpZ.js +0 -1429
  121. package/chunks/index-4WCNqsoq.js +0 -4
  122. package/chunks/index-7NrjBlB3.js +0 -4
  123. package/chunks/index-Blkau85P.js +0 -4
  124. package/chunks/index-CnOFf4hs.js +0 -4
  125. package/chunks/index-CwIKdVGP.js +0 -4
  126. package/chunks/index-DjIGlrHG.js +0 -4
  127. package/chunks/index-a8UF4nkE.js +0 -4
package/CompetitorCard.js CHANGED
@@ -1,27 +1,28 @@
1
1
  import { jsx as s, jsxs as w, Fragment as xe } from "react/jsx-runtime";
2
2
  import H, { useState as G, useCallback as Ve, useEffect as ne, useRef as Ke, useMemo as Ne } from "react";
3
- import { a as Se, g as vo, u as bo, f as Ao, d as To, b as _o, v as Eo, Q as Fo, z as me, B as m, i as Ye, y as $o, m as Lo, p as Bo, o as Ro, q as Wo, r as Mo, C as Do, s as Ho, E as Oo, t as zo, w as No } from "./chunks/PrizeCard-CwEzUVMJ.js";
4
- import { S as In } from "./chunks/Spinner-DBETUiAV.js";
3
+ import { a as Se, g as vo, u as bo, f as To, d as Ao, b as _o, v as Fo, Q as Eo, z as me, B as m, i as Ye, y as $o, m as Lo, p as Bo, o as Ro, q as Wo, r as Mo, C as Do, s as Ho, E as Oo, t as zo, w as No } from "./chunks/PrizeCard-nRBh9VU_.js";
4
+ import { S as In } from "./chunks/Spinner-wUVcNUtR.js";
5
5
  import { createPortal as Po } from "react-dom";
6
- import { p as Uo, c as jo, d as Go } from "./chunks/index-D-yn2UCo.js";
7
- import { h as sn } from "./chunks/helpers-BVcELFvC.js";
8
- import { S as Vo } from "./chunks/Sheet-DVdyMkHi.js";
9
- import { N as Ko } from "./chunks/NotFoundSkeleton-CBL3Q0e2.js";
10
- import { D as vn, B as oe } from "./chunks/DirectionScope-naCviTG1.js";
11
- import { T as Yo } from "./chunks/Tooltip-BaFJF8Hm.js";
12
- import { T as A } from "./chunks/Typography-Du02dCpZ.js";
13
- import { c as Ae } from "./chunks/createLucideIcon-YBRjY5Kl.js";
14
- import { U as qo } from "./chunks/users-wbJRbqW8.js";
15
- import { C as Xo } from "./chunks/chevron-left-CxfCSZcr.js";
16
- import { X as Jo } from "./chunks/x-CK4GYo7T.js";
17
- import { G as Qo } from "./chunks/GlobalStyles-DMO_VrN7.js";
6
+ import { f as Uo } from "./chunks/searchEntities-SJcoznz0.js";
7
+ import { p as jo, c as Go, d as Vo } from "./chunks/index-D-yn2UCo.js";
8
+ import { h as sn } from "./chunks/helpers-CqPvv3gw.js";
9
+ import { S as Ko } from "./chunks/Sheet-Q5izbz85.js";
10
+ import { N as Yo } from "./chunks/NotFoundSkeleton-D34gqMWJ.js";
11
+ import { D as vn, B as oe } from "./chunks/DirectionScope-8YC2_4GO.js";
12
+ import { T as qo } from "./chunks/Tooltip-Boqkti8t.js";
13
+ import { T } from "./chunks/Typography-DaXtC0md.js";
14
+ import { c as Te } from "./chunks/createLucideIcon-YBRjY5Kl.js";
15
+ import { U as Xo } from "./chunks/users-wbJRbqW8.js";
16
+ import { C as Jo } from "./chunks/chevron-left-CxfCSZcr.js";
17
+ import { X as Qo } from "./chunks/x-CK4GYo7T.js";
18
+ import { G as Zo } from "./chunks/GlobalStyles-Cu-OUtHY.js";
18
19
  /**
19
20
  * @license lucide-react v0.454.0 - ISC
20
21
  *
21
22
  * This source code is licensed under the ISC license.
22
23
  * See the LICENSE file in the root directory of this source tree.
23
24
  */
24
- const Zo = Ae("ArrowRight", [
25
+ const ei = Te("ArrowRight", [
25
26
  ["path", { d: "M5 12h14", key: "1ays0h" }],
26
27
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
27
28
  ]);
@@ -31,7 +32,7 @@ const Zo = Ae("ArrowRight", [
31
32
  * This source code is licensed under the ISC license.
32
33
  * See the LICENSE file in the root directory of this source tree.
33
34
  */
34
- const ei = Ae("CalendarDays", [
35
+ const ti = Te("CalendarDays", [
35
36
  ["path", { d: "M8 2v4", key: "1cmpym" }],
36
37
  ["path", { d: "M16 2v4", key: "4m81vk" }],
37
38
  ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
@@ -49,7 +50,7 @@ const ei = Ae("CalendarDays", [
49
50
  * This source code is licensed under the ISC license.
50
51
  * See the LICENSE file in the root directory of this source tree.
51
52
  */
52
- const ti = Ae("ChartColumn", [
53
+ const ni = Te("ChartColumn", [
53
54
  ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
54
55
  ["path", { d: "M18 17V9", key: "2bz60n" }],
55
56
  ["path", { d: "M13 17V5", key: "1frdt8" }],
@@ -61,14 +62,14 @@ const ti = Ae("ChartColumn", [
61
62
  * This source code is licensed under the ISC license.
62
63
  * See the LICENSE file in the root directory of this source tree.
63
64
  */
64
- const ni = Ae("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
65
+ const oi = Te("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
65
66
  /**
66
67
  * @license lucide-react v0.454.0 - ISC
67
68
  *
68
69
  * This source code is licensed under the ISC license.
69
70
  * See the LICENSE file in the root directory of this source tree.
70
71
  */
71
- const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "https://search.fansunitedapi.com/v1", ri = 200, si = 3, ai = (e) => {
72
+ const ii = Te("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ri = (e) => {
72
73
  try {
73
74
  const t = e.helpers.getSDKConfiguration();
74
75
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
@@ -76,30 +77,10 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
76
77
  return null;
77
78
  }
78
79
  }, qe = async (e, t, n) => {
79
- var l, c;
80
- const o = /* @__PURE__ */ new Map(), i = Array.from(new Set(t.filter(Boolean)));
81
- if (i.length === 0) return o;
82
- const r = ai(e);
83
- if (!r) return o;
84
- const a = Math.min(ri, i.length * 2 + 10);
85
- for (let d = 1; d <= si; d += 1) {
86
- const u = new URLSearchParams({
87
- key: r.apiKey,
88
- client_id: r.clientId,
89
- ids: i.join(","),
90
- limit: String(a),
91
- ...d > 1 ? { page: String(d) } : {}
92
- }), S = await fetch(
93
- `${ii}/entities/search?${u.toString()}`,
94
- { signal: n }
95
- );
96
- if (!S.ok) throw new Error(`Search API responded ${S.status}`);
97
- const p = await S.json();
98
- if ((p.data ?? []).forEach((f) => {
99
- f != null && f.id && o.set(f.id, f);
100
- }), o.size >= i.length || d >= (((c = (l = p.meta) == null ? void 0 : l.pagination) == null ? void 0 : c.number_of_pages) ?? 1)) break;
101
- }
102
- return o;
80
+ const o = /* @__PURE__ */ new Map();
81
+ if (t.filter(Boolean).length === 0) return o;
82
+ const i = ri(e);
83
+ return i && (await Uo(i, t, { signal: n })).forEach((a) => o.set(a.id, a)), o;
103
84
  }, bn = (e) => (e ?? "").split("-")[0].toUpperCase(), ie = (e, t) => {
104
85
  var i, r;
105
86
  if (!e) return null;
@@ -110,7 +91,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
110
91
  return ((l = a.language) == null ? void 0 : l.toUpperCase()) === n;
111
92
  }
112
93
  )) == null ? void 0 : r.name) ?? e.name ?? null;
113
- }, An = (e, t) => {
94
+ }, Tn = (e, t) => {
114
95
  var i;
115
96
  if (!e) return null;
116
97
  const n = bn(t), o = (i = e.translations) == null ? void 0 : i.find(
@@ -120,17 +101,17 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
120
101
  }
121
102
  );
122
103
  return (o == null ? void 0 : o.short_name) ?? (o == null ? void 0 : o.name) ?? e.short_name ?? null;
123
- }, Te = (e) => {
104
+ }, Ae = (e) => {
124
105
  var n, o;
125
106
  const t = e == null ? void 0 : e.assets;
126
107
  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;
127
- }, li = (e, t) => ((e == null ? void 0 : e.related) ?? []).filter((n) => {
108
+ }, si = (e, t) => ((e == null ? void 0 : e.related) ?? []).filter((n) => {
128
109
  var o;
129
110
  return ((o = n.relationship) == null ? void 0 : o.toUpperCase()) === t.toUpperCase();
130
- }).map((n) => n.related_id).filter((n) => !!n), ci = "COMPETITOR", di = (e) => {
111
+ }).map((n) => n.related_id).filter((n) => !!n), ai = "COMPETITOR", li = (e) => {
131
112
  var t;
132
- return ((t = e == null ? void 0 : e.content_type) == null ? void 0 : t.toUpperCase()) === ci;
133
- }, mi = (e) => {
113
+ return ((t = e == null ? void 0 : e.content_type) == null ? void 0 : t.toUpperCase()) === ai;
114
+ }, ci = (e) => {
134
115
  var t;
135
116
  return /(^|_)TEAM(_|$)/.test(((t = e.type) == null ? void 0 : t.toUpperCase()) ?? "") ? "TEAM" : "ATHLETE";
136
117
  }, Z = (e) => {
@@ -141,7 +122,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
141
122
  if (!t) return null;
142
123
  const n = t.startsWith("#") ? t : `#${t}`;
143
124
  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;
144
- }, ui = (e) => {
125
+ }, di = (e) => {
145
126
  var r;
146
127
  const n = ((e == null ? void 0 : e.additional_information) ?? []).find(
147
128
  (a) => /^(FOUNDED|FOUNDATION|FOUNDED_YEAR|ESTABLISHED)$/i.test((a == null ? void 0 : a.key) ?? "")
@@ -149,50 +130,50 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
149
130
  if (!o) return null;
150
131
  const i = Number(o);
151
132
  return i >= 1700 && i <= (/* @__PURE__ */ new Date()).getFullYear() ? o : null;
152
- }, hi = (e, t, n, o) => {
153
- var p, f, g;
154
- const i = mi(e), r = Z(ie(e, n)) ?? o.unknownCompetitor, a = Z(e.country_id), l = a ? {
133
+ }, mi = (e, t, n, o) => {
134
+ var f, g, p;
135
+ const i = ci(e), r = Z(ie(e, n)) ?? o.unknownCompetitor, a = Z(e.country_id), l = a ? {
155
136
  id: a,
156
137
  name: Z(ie(t, n)),
157
138
  flag: Z(t == null ? void 0 : t.flag)
158
- } : null, c = ((p = e.metadata) == null ? void 0 : p.branding) ?? null, d = fe(c == null ? void 0 : c.primary_color), u = fe(c == null ? void 0 : c.secondary_color), S = fe(c == null ? void 0 : c.tertiary_color);
139
+ } : null, c = ((f = e.metadata) == null ? void 0 : f.branding) ?? null, d = fe(c == null ? void 0 : c.primary_color), u = fe(c == null ? void 0 : c.secondary_color), S = fe(c == null ? void 0 : c.tertiary_color);
159
140
  return {
160
141
  id: e.id,
161
142
  kind: i,
162
- sport: ((f = Z(e.sport)) == null ? void 0 : f.toUpperCase()) ?? null,
143
+ sport: ((g = Z(e.sport)) == null ? void 0 : g.toUpperCase()) ?? null,
163
144
  name: r,
164
145
  threeLetterCode: Z(e.three_letter_code),
165
- image: Te(e),
166
- gender: ((g = Z(e.gender)) == null ? void 0 : g.toUpperCase()) ?? null,
146
+ image: Ae(e),
147
+ gender: ((p = Z(e.gender)) == null ? void 0 : p.toUpperCase()) ?? null,
167
148
  position: i === "ATHLETE" ? Z(e.position) : null,
168
149
  dateOfBirth: i === "ATHLETE" ? Z(e.date_of_birth) : null,
169
- founded: ui(e),
150
+ founded: di(e),
170
151
  countryId: a,
171
152
  country: l,
172
153
  branding: d || u || S ? { primary: d, secondary: u, tertiary: S } : null
173
154
  };
174
- }, pi = (e, t, n) => {
175
- const { t: o } = Se("common"), [i, r] = G(null), [a, l] = G(!0), [c, d] = G(!1), [u, S] = G(!1), p = Ve(
176
- async (f) => {
155
+ }, ui = (e, t, n) => {
156
+ const { t: o } = Se("common"), [i, r] = G(null), [a, l] = G(!0), [c, d] = G(!1), [u, S] = G(!1), f = Ve(
157
+ async (g) => {
177
158
  l(!0), d(!1), S(!1);
178
159
  try {
179
- const g = await qe(e, [t], f);
180
- if (f.aborted) return;
181
- const y = g.get(t);
182
- if (!y || !di(y)) {
160
+ const p = await qe(e, [t], g);
161
+ if (g.aborted) return;
162
+ const y = p.get(t);
163
+ if (!y || !li(y)) {
183
164
  r(null), S(!0);
184
165
  return;
185
166
  }
186
167
  r(
187
- hi(y, void 0, n, {
168
+ mi(y, void 0, n, {
188
169
  unknownCompetitor: o("eventCard.unknownCompetitor")
189
170
  })
190
171
  );
191
- } catch (g) {
192
- if (f.aborted || (g == null ? void 0 : g.name) === "AbortError") return;
172
+ } catch (p) {
173
+ if (g.aborted || (p == null ? void 0 : p.name) === "AbortError") return;
193
174
  r(null), d(!0);
194
175
  } finally {
195
- f.aborted || l(!1);
176
+ g.aborted || l(!1);
196
177
  }
197
178
  },
198
179
  [e, t, n, o]
@@ -202,17 +183,17 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
202
183
  l(!1), S(!t);
203
184
  return;
204
185
  }
205
- const f = new AbortController();
206
- return p(f.signal), () => f.abort();
207
- }, [e, t, p]), { data: i, loading: a, error: c, notFound: u };
208
- }, Tn = "https://sports.fansunitedapi.com/v1", _n = (e) => {
186
+ const g = new AbortController();
187
+ return f(g.signal), () => g.abort();
188
+ }, [e, t, f]), { data: i, loading: a, error: c, notFound: u };
189
+ }, An = "https://sports.fansunitedapi.com/v1", _n = (e) => {
209
190
  try {
210
191
  const t = e.helpers.getSDKConfiguration();
211
192
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
212
193
  } catch {
213
194
  return null;
214
195
  }
215
- }, fi = async (e, t, n, o = !1) => {
196
+ }, hi = async (e, t, n, o = !1) => {
216
197
  const i = _n(e);
217
198
  if (!i || !t) return null;
218
199
  const r = new URLSearchParams({
@@ -221,13 +202,13 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
221
202
  });
222
203
  o && r.set("disable_cache", String(Date.now()));
223
204
  const a = await fetch(
224
- `${Tn}/teams/${encodeURIComponent(t)}?${r.toString()}`,
205
+ `${An}/teams/${encodeURIComponent(t)}?${r.toString()}`,
225
206
  { signal: n }
226
207
  );
227
208
  if (!a.ok) throw new Error(`Sports API responded ${a.status}`);
228
209
  const l = await a.json(), c = (l == null ? void 0 : l.data) ?? l;
229
210
  return c != null && c.team_id ? c : null;
230
- }, gi = async (e, t, n) => {
211
+ }, pi = async (e, t, n) => {
231
212
  var r;
232
213
  const o = _n(e);
233
214
  if (!o || !t) return null;
@@ -239,7 +220,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
239
220
  });
240
221
  try {
241
222
  const a = await fetch(
242
- `${Tn}/events/${encodeURIComponent(t)}?${i.toString()}`,
223
+ `${An}/events/${encodeURIComponent(t)}?${i.toString()}`,
243
224
  { signal: n }
244
225
  );
245
226
  if (!a.ok) return null;
@@ -248,14 +229,14 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
248
229
  } catch {
249
230
  return null;
250
231
  }
251
- }, N = "all", yi = "fb:c:224", ae = (e) => !!e && e !== yi, kt = (e, t) => /^(HOCKEY|ICE_HOCKEY)$/.test((e ?? "").toUpperCase()) ? t.won * 2 + t.lostInOvertime : t.won * 3 + t.drawn, Ct = (e, t) => e - t, ge = (e) => e > 0 ? `+${e}` : String(e), En = (e, t) => t > 0 ? (e / t).toFixed(2) : "0.00", It = (e, t) => t > 0 ? Math.round(e / t * 100) : 0, te = (e, t) => `${t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0}%`, xi = (e) => {
232
+ }, N = "all", fi = "fb:c:224", ae = (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, ge = (e) => e > 0 ? `+${e}` : String(e), Fn = (e, t) => t > 0 ? (e / t).toFixed(2) : "0.00", It = (e, t) => t > 0 ? Math.round(e / t * 100) : 0, te = (e, t) => `${t > 0 ? Math.min(100, Math.max(0, Math.round(e / t * 100))) : 0}%`, gi = (e) => {
252
233
  let t = 0;
253
234
  for (const n of e) {
254
235
  if (n !== "W") break;
255
236
  t += 1;
256
237
  }
257
238
  return t;
258
- }, Si = 3, wi = 10, ki = 5, Ci = (e) => typeof e != "number" || !Number.isFinite(e) ? ki : Math.min(wi, Math.max(Si, Math.round(e))), an = (e, 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) => ({
259
240
  won: e.won + t.won,
260
241
  drawn: e.drawn + t.drawn,
261
242
  lost: e.lost + t.lost,
@@ -279,7 +260,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
279
260
  points: e.points + t.points,
280
261
  home: an(e.home, t.home),
281
262
  away: an(e.away, t.away)
282
- }), Ii = {
263
+ }), ki = {
283
264
  played: 0,
284
265
  won: 0,
285
266
  drawn: 0,
@@ -289,15 +270,15 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
289
270
  points: 0,
290
271
  home: xt,
291
272
  away: xt
292
- }, vi = (e, t) => {
273
+ }, Ci = (e, t) => {
293
274
  const n = () => ({ ...xt }), o = n(), i = n();
294
275
  let r = 0, a = 0, l = 0, c = 0, d = 0, u = 0;
295
- for (const p of e) {
296
- if (p.status !== "finished" || p.outcome === null) continue;
297
- const f = p.isHome ? o : i;
298
- 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, u += p.opponentScore ?? 0, f.goalsFor += p.ownScore ?? 0, f.goalsAgainst += p.opponentScore ?? 0;
276
+ for (const f of e) {
277
+ if (f.status !== "finished" || f.outcome === null) continue;
278
+ const g = f.isHome ? o : i;
279
+ r += 1, f.outcome === "W" ? (a += 1, g.won += 1) : f.outcome === "L" ? (c += 1, g.lost += 1) : (l += 1, g.drawn += 1), d += f.ownScore ?? 0, u += f.opponentScore ?? 0, g.goalsFor += f.ownScore ?? 0, g.goalsAgainst += f.opponentScore ?? 0;
299
280
  }
300
- const S = (p) => kt(t, { ...p, lostInOvertime: 0 });
281
+ const S = (f) => kt(t, { ...f, lostInOvertime: 0 });
301
282
  return o.points = S(o), i.points = S(i), {
302
283
  played: r,
303
284
  won: a,
@@ -318,7 +299,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
318
299
  }, bt = (e) => e.split(/\s+/).filter(Boolean).slice(0, 2).map((t) => {
319
300
  var n;
320
301
  return ((n = t[0]) == null ? void 0 : n.toUpperCase()) ?? "";
321
- }).join(""), bi = ({
302
+ }).join(""), Ii = ({
322
303
  live: e,
323
304
  last: t,
324
305
  next: n,
@@ -333,13 +314,13 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
333
314
  if (!e) return null;
334
315
  const t = e.split(":");
335
316
  return t.length > 3 ? t.slice(0, 3).join(":") : e;
336
- }, Fn = (e) => {
317
+ }, En = (e) => {
337
318
  if (!e) return null;
338
319
  const t = e.split(":");
339
320
  return t.length > 3 ? t.slice(3).join(":") : null;
340
321
  }, dn = (e) => {
341
322
  var n, o;
342
- const t = (o = (n = Fn(e)) == null ? void 0 : n.match(/\d{4}/)) == null ? void 0 : o[0];
323
+ const t = (o = (n = En(e)) == null ? void 0 : n.match(/\d{4}/)) == null ? void 0 : o[0];
343
324
  return t ? Number(t) : null;
344
325
  }, $n = (e, t) => {
345
326
  const n = (e ?? "").toUpperCase();
@@ -353,9 +334,9 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
353
334
  if (!Number.isNaN(o)) return o > Date.now() ? "upcoming" : "finished";
354
335
  }
355
336
  return "upcoming";
356
- }, Ai = (e) => /(overtime|extra_time|penalt|shootout|_ot|_so)/.test(
337
+ }, vi = (e) => /(overtime|extra_time|penalt|shootout|_ot|_so)/.test(
357
338
  (e ?? "").toLowerCase()
358
- ), Ti = (e, t) => e === null || t === null ? null : e > t ? "W" : e < t ? "L" : "D", _i = (e) => {
339
+ ), bi = (e, t) => e === null || t === null ? null : e > t ? "W" : e < t ? "L" : "D", Ti = (e) => {
359
340
  const t = e.trim().split(/\s+/).filter(Boolean);
360
341
  return t.length >= 2 ? t.slice(0, 3).map((n) => n[0]).join("").toUpperCase() : e.slice(0, 3).toUpperCase();
361
342
  }, Xe = (e, t) => {
@@ -388,32 +369,32 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
388
369
  const t = Number(e);
389
370
  return Number.isFinite(t) ? t : null;
390
371
  }, Bn = (e, t, { language: n, teamId: o, unknownOpponent: i }) => (e ?? []).map((r) => {
391
- var h, v, E, T, R, D, L, W;
372
+ var h, v, F, A, R, D, L, W;
392
373
  if (!r.id || !ae(r.competition_id)) return null;
393
374
  const a = ((h = r.competitor_one) == null ? void 0 : h.id) ?? null, l = ((v = r.competitor_two) == null ? void 0 : v.id) ?? null, c = a === o;
394
375
  if (!c && l !== o) return null;
395
- const d = c ? l : a, u = d ? t.get(d) : void 0, S = ie(u, n) ?? i, p = r.date ?? null, f = $n((E = r.status) == null ? void 0 : E.type, p), g = mn((R = (T = r.score) == null ? void 0 : T.full_time) == null ? void 0 : R.competitor_one), y = mn((L = (D = r.score) == null ? void 0 : D.full_time) == null ? void 0 : L.competitor_two), x = c ? g : y, k = c ? y : g, I = r.competition_id ?? null, C = I ? t.get(I) : void 0;
376
+ const d = c ? l : a, u = d ? t.get(d) : void 0, S = ie(u, n) ?? i, f = r.date ?? null, g = $n((F = r.status) == null ? void 0 : F.type, f), p = mn((R = (A = r.score) == null ? void 0 : A.full_time) == null ? void 0 : R.competitor_one), y = mn((L = (D = r.score) == null ? void 0 : D.full_time) == null ? void 0 : L.competitor_two), x = c ? p : y, k = c ? y : p, I = r.competition_id ?? null, C = I ? t.get(I) : void 0;
396
377
  return {
397
378
  id: r.id,
398
- date: p,
399
- status: f,
379
+ date: f,
380
+ status: g,
400
381
  competitionId: I,
401
382
  competitionName: ie(C, n),
402
383
  seasonId: r.season_id ?? null,
403
384
  isHome: c,
404
385
  opponentId: d,
405
386
  opponentName: S,
406
- opponentShortName: (u == null ? void 0 : u.three_letter_code) ?? An(u, n) ?? _i(S),
407
- opponentLogo: Te(u),
387
+ opponentShortName: (u == null ? void 0 : u.three_letter_code) ?? Tn(u, n) ?? Ti(S),
388
+ opponentLogo: Ae(u),
408
389
  ownScore: x,
409
390
  opponentScore: k,
410
391
  // Only a finished fixture has an outcome: a live 1-1 is not a draw yet.
411
- outcome: f === "finished" ? Ti(x, k) : null,
412
- afterOvertime: f === "finished" && Ai((W = r.status) == null ? void 0 : W.sub_type)
392
+ outcome: g === "finished" ? bi(x, k) : null,
393
+ afterOvertime: g === "finished" && vi((W = r.status) == null ? void 0 : W.sub_type)
413
394
  };
414
- }).filter((r) => r !== null), Ei = (e, t) => new Date(t.date ?? 0).getTime() - new Date(e.date ?? 0).getTime(), Fi = (e, t) => new Date(e.date ?? 0).getTime() - new Date(t.date ?? 0).getTime(), Rn = (e) => ({
415
- results: e.filter((t) => t.status === "finished").sort(Ei),
416
- upcoming: e.filter((t) => t.status === "upcoming").sort(Fi),
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(), Rn = (e) => ({
396
+ results: e.filter((t) => t.status === "finished").sort(Ai),
397
+ upcoming: e.filter((t) => t.status === "upcoming").sort(_i),
417
398
  live: e.find((t) => t.status === "live") ?? null
418
399
  }), Wn = (e) => {
419
400
  const t = /* @__PURE__ */ new Map();
@@ -427,13 +408,13 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
427
408
  return {
428
409
  id: a,
429
410
  name: c,
430
- shortName: An(l, n) ?? c,
431
- logo: Te(l),
411
+ shortName: Tn(l, n) ?? c,
412
+ logo: Ae(l),
432
413
  seasonId: i.get(a) ?? null,
433
414
  // A competition whose COUNTRY relation matches the competitor's own country. Cup and
434
415
  // continental competitions relate to a different country entity, so this cleanly separates
435
416
  // "LaLiga" from "Champions League" without hardcoding either.
436
- domestic: !!o && li(l, "COUNTRY").includes(o),
417
+ domestic: !!o && si(l, "COUNTRY").includes(o),
437
418
  cup: ((d = l == null ? void 0 : l.format) == null ? void 0 : d.toUpperCase()) === "CUP"
438
419
  };
439
420
  }).sort((a, l) => {
@@ -462,7 +443,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
462
443
  const o = _e(n.season_id);
463
444
  o && n.season_id && !t.has(o) && t.set(o, n.season_id);
464
445
  }), t;
465
- }, $i = (e) => {
446
+ }, Fi = (e) => {
466
447
  if (!e) return [];
467
448
  const t = new Set(
468
449
  Ln(Xe(e == null ? void 0 : e.events, Hn(e)))
@@ -477,7 +458,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
477
458
  if (o) return Pe(o.value);
478
459
  }
479
460
  return 0;
480
- }, On = (e, t = "") => M(e, `${t}won`) + Ue(e, [`${t}won_ot`, `${t}won_extratime`]) + Ue(e, [`${t}won_penalty`, `${t}won_pen`]), At = (e, t = "") => Ue(e, [`${t}lost_ot`, `${t}lost_extratime`]) + Ue(e, [`${t}lost_penalty`, `${t}lost_pen`]), St = (e, t = "") => M(e, `${t}lost`) + At(e, t), je = (e, t, n, o) => {
461
+ }, On = (e, t = "") => M(e, `${t}won`) + Ue(e, [`${t}won_ot`, `${t}won_extratime`]) + Ue(e, [`${t}won_penalty`, `${t}won_pen`]), Tt = (e, t = "") => Ue(e, [`${t}lost_ot`, `${t}lost_extratime`]) + Ue(e, [`${t}lost_penalty`, `${t}lost_pen`]), St = (e, t = "") => M(e, `${t}lost`) + Tt(e, t), je = (e, t, n, o) => {
481
462
  const i = e == null ? void 0 : e.find((a) => a.key === t);
482
463
  if (i) return Pe(i.value);
483
464
  const r = e == null ? void 0 : e.find((a) => a.key === n);
@@ -493,7 +474,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
493
474
  points: kt(e.sport, {
494
475
  won: i,
495
476
  drawn: r,
496
- lostInOvertime: At(n, o)
477
+ lostInOvertime: Tt(n, o)
497
478
  })
498
479
  };
499
480
  }, gt = (e) => {
@@ -508,12 +489,12 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
508
489
  points: kt(e.sport, {
509
490
  won: n,
510
491
  drawn: o,
511
- lostInOvertime: At(t)
492
+ lostInOvertime: Tt(t)
512
493
  }),
513
494
  home: un(e, "home"),
514
495
  away: un(e, "away")
515
496
  };
516
- }, Li = (e) => e.won + e.drawn + e.lost === e.played, Bi = (e, t = [], n) => {
497
+ }, Ei = (e) => e.won + e.drawn + e.lost === e.played, $i = (e, t = [], n) => {
517
498
  const o = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
518
499
  if (((e == null ? void 0 : e.team_stats) ?? []).forEach((a) => {
519
500
  const l = _e(a.season_id);
@@ -533,23 +514,23 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
533
514
  ...o.keys(),
534
515
  ...t.map((a) => a.competitionId).filter((a) => !!a && ae(a))
535
516
  ])).forEach((a) => {
536
- const l = o.get(a), c = vi(
517
+ const l = o.get(a), c = Ci(
537
518
  t.filter((d) => d.competitionId === a),
538
519
  n
539
520
  );
540
- (!l || c.played > l.played || !Li(l) && c.played >= l.played) && (c.played > 0 ? o.set(a, c) : l || o.delete(a));
521
+ (!l || c.played > l.played || !Ei(l) && c.played >= l.played) && (c.played > 0 ? o.set(a, c) : l || o.delete(a));
541
522
  }), o.size > 0) {
542
523
  const a = Array.from(o.values()).reduce(
543
524
  ln,
544
- Ii
525
+ ki
545
526
  );
546
527
  o.set(N, a);
547
528
  }
548
529
  return o;
549
- }, Ri = (e) => {
530
+ }, Li = (e) => {
550
531
  const t = (e ?? "").toLowerCase();
551
532
  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";
552
- }, zn = Ri, Wi = {
533
+ }, zn = Li, Bi = {
553
534
  apps: 0,
554
535
  starts: 0,
555
536
  minutes: 0,
@@ -559,7 +540,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
559
540
  redCards: 0,
560
541
  cleanSheets: 0,
561
542
  goalsConceded: 0
562
- }, Mi = (e) => ({
543
+ }, Ri = (e) => ({
563
544
  apps: M(e.statistics, "appearances"),
564
545
  starts: M(e.statistics, "first_lineup_appearances"),
565
546
  minutes: M(e.statistics, "minutes"),
@@ -569,7 +550,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
569
550
  redCards: M(e.statistics, "red_cards"),
570
551
  cleanSheets: M(e.statistics, "clean_sheets"),
571
552
  goalsConceded: M(e.statistics, "goals_conceded")
572
- }), Di = (e, t) => ({
553
+ }), Wi = (e, t) => ({
573
554
  apps: e.apps + t.apps,
574
555
  starts: e.starts + t.starts,
575
556
  minutes: e.minutes + t.minutes,
@@ -579,26 +560,26 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
579
560
  redCards: e.redCards + t.redCards,
580
561
  cleanSheets: e.cleanSheets + t.cleanSheets,
581
562
  goalsConceded: e.goalsConceded + t.goalsConceded
582
- }), Hi = () => ({ ...Wi }), Oi = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
563
+ }), Mi = () => ({ ...Bi }), Di = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
583
564
  const n = _e(t.season_id);
584
565
  return !t.athlete_id || !n || !ae(n) ? null : {
585
566
  athleteId: t.athlete_id,
586
567
  competitionId: n,
587
- stats: Mi(t)
568
+ stats: Ri(t)
588
569
  };
589
- }).filter((t) => t !== null), zi = (e, t, n) => {
570
+ }).filter((t) => t !== null), Hi = (e, t, n) => {
590
571
  if (!(e != null && e.team_id)) return null;
591
572
  const { language: o, teamId: i, countryId: r, sport: a, labels: l } = n, c = Xe(e.events, Hn(e)), d = Bn(c, t, {
592
573
  language: o,
593
574
  teamId: i,
594
575
  unknownOpponent: l.unknownOpponent
595
- }), u = Bi(e, d, a), S = /* @__PURE__ */ new Set();
576
+ }), u = $i(e, d, a), S = /* @__PURE__ */ new Set();
596
577
  u.forEach((x, k) => {
597
578
  k !== N && S.add(k);
598
579
  }), c.forEach((x) => {
599
580
  x.competition_id && S.add(x.competition_id);
600
581
  });
601
- const p = Mn(
582
+ const f = Mn(
602
583
  S,
603
584
  t,
604
585
  {
@@ -610,35 +591,35 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
610
591
  return ((k = u.get(x)) == null ? void 0 : k.played) ?? 0;
611
592
  }
612
593
  }
613
- ), { results: f, upcoming: g, live: y } = Rn(d);
594
+ ), { results: g, upcoming: p, live: y } = Rn(d);
614
595
  return {
615
596
  teamId: e.team_id,
616
- competitions: [Dn(l.allCompetitions), ...p],
597
+ competitions: [Dn(l.allCompetitions), ...f],
617
598
  statsByCompetition: u,
618
- results: f,
619
- upcoming: g,
599
+ results: g,
600
+ upcoming: p,
620
601
  live: y,
621
- athleteStats: Oi(e)
602
+ athleteStats: Di(e)
622
603
  };
623
- }, Ni = (e, t, n, o, i, r) => {
624
- const { t: a } = Se("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: u, sport: S } = r, [p, f] = G(null), [g, y] = G(null), [x, k] = G(l), [I, C] = G(!1), h = Ke(i);
604
+ }, Oi = (e, t, n, o, i, r) => {
605
+ const { t: a } = Se("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: u, sport: S } = r, [f, g] = G(null), [p, y] = G(null), [x, k] = G(l), [I, C] = G(!1), h = Ke(i);
625
606
  h.current = i;
626
607
  const v = Ve(
627
- async (T, R) => {
608
+ async (A, R) => {
628
609
  if (t) {
629
610
  R || (k(!0), C(!1));
630
611
  try {
631
- const D = await fi(e, t, T, R);
632
- if (T.aborted) return;
633
- const L = $i(D);
612
+ const D = await hi(e, t, A, R);
613
+ if (A.aborted) return;
614
+ const L = Fi(D);
634
615
  c && n && L.push(n);
635
616
  let W = /* @__PURE__ */ new Map();
636
617
  try {
637
- W = await qe(e, L, T);
618
+ W = await qe(e, L, A);
638
619
  } catch {
639
620
  W = /* @__PURE__ */ new Map();
640
621
  }
641
- if (T.aborted) return;
622
+ if (A.aborted) return;
642
623
  const U = c && n ? W.get(n) : void 0;
643
624
  y(
644
625
  n && U ? {
@@ -649,8 +630,8 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
649
630
  name: ie(U, o),
650
631
  flag: U.flag ?? null
651
632
  } : null
652
- ), f(
653
- zi(D, W, {
633
+ ), g(
634
+ Hi(D, W, {
654
635
  language: o,
655
636
  teamId: t,
656
637
  countryId: n,
@@ -662,10 +643,10 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
662
643
  })
663
644
  ), C(!1);
664
645
  } catch (D) {
665
- if (T.aborted || (D == null ? void 0 : D.name) === "AbortError") return;
646
+ if (A.aborted || (D == null ? void 0 : D.name) === "AbortError") return;
666
647
  R || C(!0);
667
648
  } finally {
668
- !T.aborted && !R && k(!1);
649
+ !A.aborted && !R && k(!1);
669
650
  }
670
651
  }
671
652
  },
@@ -673,29 +654,29 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
673
654
  );
674
655
  ne(() => {
675
656
  if (!l || !e || !t) {
676
- f(null), y(null), k(!1);
657
+ g(null), y(null), k(!1);
677
658
  return;
678
659
  }
679
- const T = new AbortController();
680
- return v(T.signal, !1), () => T.abort();
660
+ const A = new AbortController();
661
+ return v(A.signal, !1), () => A.abort();
681
662
  }, [l, e, t, v]);
682
- const E = !!(p != null && p.live);
663
+ const F = !!(f != null && f.live);
683
664
  return ne(() => {
684
- if (!l || !E || !d || u <= 0) return;
685
- const T = new AbortController(), R = setInterval(() => v(T.signal, !0), u);
665
+ if (!l || !F || !d || u <= 0) return;
666
+ const A = new AbortController(), R = setInterval(() => v(A.signal, !0), u);
686
667
  return () => {
687
- T.abort(), clearInterval(R);
668
+ A.abort(), clearInterval(R);
688
669
  };
689
- }, [l, E, d, u, v]), { profile: p, country: g, loading: x, error: I };
690
- }, Pi = "https://sports.fansunitedapi.com/v1", Ui = (e) => {
670
+ }, [l, F, d, u, v]), { profile: f, country: p, loading: x, error: I };
671
+ }, zi = "https://sports.fansunitedapi.com/v1", Ni = (e) => {
691
672
  try {
692
673
  const t = e.helpers.getSDKConfiguration();
693
674
  return !(t != null && t.apiKey) || !(t != null && t.clientId) ? null : { apiKey: t.apiKey, clientId: t.clientId };
694
675
  } catch {
695
676
  return null;
696
677
  }
697
- }, ji = async (e, t, n, o = !1) => {
698
- const i = Ui(e);
678
+ }, Pi = async (e, t, n, o = !1) => {
679
+ const i = Ni(e);
699
680
  if (!i || !t) return null;
700
681
  const r = new URLSearchParams({
701
682
  key: i.apiKey,
@@ -703,7 +684,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
703
684
  });
704
685
  o && r.set("disable_cache", String(Date.now()));
705
686
  const a = await fetch(
706
- `${Pi}/athletes/${encodeURIComponent(t)}?${r.toString()}`,
687
+ `${zi}/athletes/${encodeURIComponent(t)}?${r.toString()}`,
707
688
  { signal: n }
708
689
  );
709
690
  if (!a.ok) throw new Error(`Sports API responded ${a.status}`);
@@ -725,9 +706,9 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
725
706
  captain: 0,
726
707
  cleanSheets: 0,
727
708
  goalsConceded: 0
728
- }, Gi = () => ({
709
+ }, Ui = () => ({
729
710
  ...Nn
730
- }), Vi = (e) => ({
711
+ }), ji = (e) => ({
731
712
  apps: M(e.statistics, "appearances"),
732
713
  starts: M(e.statistics, "first_lineup_appearances"),
733
714
  benchApps: M(e.statistics, "bench_appearances"),
@@ -759,19 +740,19 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
759
740
  captain: e.captain + t.captain,
760
741
  cleanSheets: e.cleanSheets + t.cleanSheets,
761
742
  goalsConceded: e.goalsConceded + t.goalsConceded
762
- }), Ee = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
743
+ }), Fe = (e) => ((e == null ? void 0 : e.athlete_stats) ?? []).map((t) => {
763
744
  const n = _e(t.season_id);
764
745
  return !n || !ae(n) ? null : { competitionId: n, entry: t };
765
746
  }).filter(
766
747
  (t) => t !== null
767
748
  ), Pn = (e) => {
768
749
  const t = /* @__PURE__ */ new Map();
769
- return Ee(e).forEach(({ competitionId: n, entry: o }) => {
750
+ return Fe(e).forEach(({ competitionId: n, entry: o }) => {
770
751
  o.season_id && !t.has(n) && t.set(n, o.season_id);
771
752
  }), t;
772
- }, Ki = (e) => {
753
+ }, Gi = (e) => {
773
754
  const t = /* @__PURE__ */ new Map();
774
- Ee(e).forEach(({ entry: i }) => {
755
+ Fe(e).forEach(({ entry: i }) => {
775
756
  if (!i.team_id) return;
776
757
  const r = M(i.statistics, "minutes");
777
758
  t.set(
@@ -783,21 +764,21 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
783
764
  return t.forEach((i, r) => {
784
765
  i > o && (n = r, o = i);
785
766
  }), n;
786
- }, Yi = (e) => {
767
+ }, Vi = (e) => {
787
768
  if (!e) return [];
788
769
  const t = new Set(
789
770
  Ln(Xe(e.events, Pn(e)))
790
771
  );
791
- return Ee(e).forEach(({ competitionId: n, entry: o }) => {
772
+ return Fe(e).forEach(({ competitionId: n, entry: o }) => {
792
773
  t.add(n), o.team_id && t.add(o.team_id);
793
774
  }), Array.from(t);
794
- }, qi = (e) => {
775
+ }, Ki = (e) => {
795
776
  const t = /* @__PURE__ */ new Map();
796
- if (Ee(e).forEach(({ competitionId: n, entry: o }) => {
797
- const i = t.get(n) ?? Gi();
777
+ if (Fe(e).forEach(({ competitionId: n, entry: o }) => {
778
+ const i = t.get(n) ?? Ui();
798
779
  t.set(
799
780
  n,
800
- hn(i, Vi(o))
781
+ hn(i, ji(o))
801
782
  );
802
783
  }), t.size > 0) {
803
784
  const n = Array.from(t.values()).reduce(
@@ -807,7 +788,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
807
788
  t.set(N, n);
808
789
  }
809
790
  return t;
810
- }, Xi = (e) => {
791
+ }, Yi = (e) => {
811
792
  const t = /* @__PURE__ */ new Map();
812
793
  return e.forEach((n) => {
813
794
  n.competitionId && t.set(
@@ -815,7 +796,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
815
796
  (t.get(n.competitionId) ?? 0) + 1
816
797
  );
817
798
  }), t.set(N, e.length), t;
818
- }, Ji = (e, t, n, o) => {
799
+ }, qi = (e, t, n, o) => {
819
800
  var d, u, S;
820
801
  if (!e) return null;
821
802
  const i = t.get(e), r = ((d = i == null ? void 0 : i.metadata) == null ? void 0 : d.branding) ?? null, a = fe(r == null ? void 0 : r.primary_color), l = fe(r == null ? void 0 : r.secondary_color), c = fe(r == null ? void 0 : r.tertiary_color);
@@ -825,7 +806,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
825
806
  sport: ((u = i == null ? void 0 : i.sport) == null ? void 0 : u.toUpperCase()) ?? null,
826
807
  name: ie(i, n) ?? o,
827
808
  threeLetterCode: (i == null ? void 0 : i.three_letter_code) ?? null,
828
- image: Te(i),
809
+ image: Ae(i),
829
810
  gender: ((S = i == null ? void 0 : i.gender) == null ? void 0 : S.toUpperCase()) ?? null,
830
811
  position: null,
831
812
  dateOfBirth: null,
@@ -834,61 +815,61 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
834
815
  country: null,
835
816
  branding: a || l || c ? { primary: a, secondary: l, tertiary: c } : null
836
817
  };
837
- }, Qi = (e, t, n) => {
818
+ }, Xi = (e, t, n) => {
838
819
  if (!(e != null && e.athlete_id)) return null;
839
- const { language: o, labels: i } = n, r = Ki(e), a = Ji(r, t, o, i.unknownCompetitor), l = qi(e), c = Xe(e.events, Pn(e)), { results: d, upcoming: u, live: S } = r ? Rn(
820
+ const { language: o, labels: i } = n, r = Gi(e), a = qi(r, t, o, i.unknownCompetitor), l = Ki(e), c = Xe(e.events, Pn(e)), { results: d, upcoming: u, live: S } = r ? Rn(
840
821
  Bn(c, t, {
841
822
  language: o,
842
823
  teamId: r,
843
824
  unknownOpponent: i.unknownOpponent
844
825
  })
845
- ) : { results: [], upcoming: [], live: null }, p = Xi(d), f = /* @__PURE__ */ new Set();
826
+ ) : { results: [], upcoming: [], live: null }, f = Yi(d), g = /* @__PURE__ */ new Set();
846
827
  l.forEach((x, k) => {
847
- k !== N && f.add(k);
828
+ k !== N && g.add(k);
848
829
  }), c.forEach((x) => {
849
- x.competition_id && f.add(x.competition_id);
830
+ x.competition_id && g.add(x.competition_id);
850
831
  });
851
- const g = Mn(f, t, {
832
+ const p = Mn(g, t, {
852
833
  language: o,
853
834
  // The CLUB's country decides which competition is domestic, not the athlete's own — a Brazilian
854
835
  // at Barcelona plays a Spanish domestic league, and his passport does not change that.
855
836
  countryId: (a == null ? void 0 : a.countryId) ?? null,
856
837
  seasons: Wn(c),
857
- weight: (x) => p.get(x) ?? 0
858
- }), y = Ee(e).map(({ entry: x }) => Fn(x.season_id)).find((x) => !!x) ?? null;
838
+ weight: (x) => f.get(x) ?? 0
839
+ }), y = Fe(e).map(({ entry: x }) => En(x.season_id)).find((x) => !!x) ?? null;
859
840
  return {
860
841
  athleteId: e.athlete_id,
861
842
  teamId: r,
862
843
  team: a,
863
- competitions: [Dn(i.allCompetitions), ...g],
844
+ competitions: [Dn(i.allCompetitions), ...p],
864
845
  statsByCompetition: l,
865
- teamPlayedByCompetition: p,
846
+ teamPlayedByCompetition: f,
866
847
  season: y,
867
848
  results: d,
868
849
  upcoming: u,
869
850
  live: S
870
851
  };
871
- }, Zi = (e, t, n, o, i, r) => {
872
- const { t: a } = Se("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: u } = r, [S, p] = G(null), [f, g] = G(null), [y, x] = G(l), [k, I] = G(!1), C = Ke(i);
852
+ }, Ji = (e, t, n, o, i, r) => {
853
+ const { t: a } = Se("common"), { enabled: l, withCountry: c, liveRefresh: d, refreshInterval: u } = r, [S, f] = G(null), [g, p] = G(null), [y, x] = G(l), [k, I] = G(!1), C = Ke(i);
873
854
  C.current = i;
874
855
  const h = Ve(
875
- async (E, T) => {
856
+ async (F, A) => {
876
857
  if (t) {
877
- T || (x(!0), I(!1));
858
+ A || (x(!0), I(!1));
878
859
  try {
879
- const R = await ji(e, t, E, T);
880
- if (E.aborted) return;
881
- const D = Yi(R);
860
+ const R = await Pi(e, t, F, A);
861
+ if (F.aborted) return;
862
+ const D = Vi(R);
882
863
  c && n && D.push(n);
883
864
  let L = /* @__PURE__ */ new Map();
884
865
  try {
885
- L = await qe(e, D, E);
866
+ L = await qe(e, D, F);
886
867
  } catch {
887
868
  L = /* @__PURE__ */ new Map();
888
869
  }
889
- if (E.aborted) return;
870
+ if (F.aborted) return;
890
871
  const W = c && n ? L.get(n) : void 0;
891
- g(
872
+ p(
892
873
  n && W ? {
893
874
  id: n,
894
875
  // Through the resolver, not the raw field: the country carries its translations the
@@ -897,8 +878,8 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
897
878
  name: ie(W, o),
898
879
  flag: W.flag ?? null
899
880
  } : null
900
- ), p(
901
- Qi(R, L, {
881
+ ), f(
882
+ Xi(R, L, {
902
883
  language: o,
903
884
  labels: {
904
885
  unknownOpponent: a("eventCard.unknownCompetitor"),
@@ -908,10 +889,10 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
908
889
  })
909
890
  ), I(!1);
910
891
  } catch (R) {
911
- if (E.aborted || (R == null ? void 0 : R.name) === "AbortError") return;
912
- T || I(!0);
892
+ if (F.aborted || (R == null ? void 0 : R.name) === "AbortError") return;
893
+ A || I(!0);
913
894
  } finally {
914
- !E.aborted && !T && x(!1);
895
+ !F.aborted && !A && x(!1);
915
896
  }
916
897
  }
917
898
  },
@@ -919,46 +900,46 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
919
900
  );
920
901
  ne(() => {
921
902
  if (!l || !e || !t) {
922
- p(null), g(null), x(!1);
903
+ f(null), p(null), x(!1);
923
904
  return;
924
905
  }
925
- const E = new AbortController();
926
- return h(E.signal, !1), () => E.abort();
906
+ const F = new AbortController();
907
+ return h(F.signal, !1), () => F.abort();
927
908
  }, [l, e, t, h]);
928
909
  const v = !!(S != null && S.live);
929
910
  return ne(() => {
930
911
  if (!l || !v || !d || u <= 0) return;
931
- const E = new AbortController(), T = setInterval(() => h(E.signal, !0), u);
912
+ const F = new AbortController(), A = setInterval(() => h(F.signal, !0), u);
932
913
  return () => {
933
- E.abort(), clearInterval(T);
914
+ F.abort(), clearInterval(A);
934
915
  };
935
- }, [l, v, d, u, h]), { profile: S, country: f, loading: y, error: k };
936
- }, er = (e, t, n, o, i) => {
916
+ }, [l, v, d, u, h]), { profile: S, country: g, loading: y, error: k };
917
+ }, Qi = (e, t, n, o, i) => {
937
918
  const [r, a] = G(
938
919
  /* @__PURE__ */ new Map()
939
- ), [l, c] = G(!1), [d, u] = G(null), S = Ke(null), p = Ne(
920
+ ), [l, c] = G(!1), [d, u] = G(null), S = Ke(null), f = Ne(
940
921
  () => Array.from(new Set(t.map((k) => k.athleteId))),
941
922
  [t]
942
- ), g = `${Ne(() => [...p].sort().join(","), [p])}|${o}`;
923
+ ), p = `${Ne(() => [...f].sort().join(","), [f])}|${o}`;
943
924
  ne(() => {
944
- if (!i || !e || p.length === 0 || S.current === g) return;
925
+ if (!i || !e || f.length === 0 || S.current === p) return;
945
926
  const k = new AbortController();
946
- return c(!0), qe(e, p, k.signal).then((I) => {
947
- k.signal.aborted || (S.current = g, a(I));
927
+ return c(!0), qe(e, f, k.signal).then((I) => {
928
+ k.signal.aborted || (S.current = p, a(I));
948
929
  }).catch(() => {
949
930
  }).finally(() => {
950
- k.signal.aborted || (u(g), c(!1));
931
+ k.signal.aborted || (u(p), c(!1));
951
932
  }), () => k.abort();
952
- }, [i, e, p, g]);
953
- const y = i && p.length > 0 && d !== g;
933
+ }, [i, e, f, p]);
934
+ const y = i && f.length > 0 && d !== p;
954
935
  return { players: Ne(() => {
955
936
  if (r.size === 0) return [];
956
937
  const k = /* @__PURE__ */ new Map();
957
938
  return t.forEach((I) => {
958
939
  if (n !== N && I.competitionId !== n)
959
940
  return;
960
- const C = k.get(I.athleteId) ?? Hi();
961
- k.set(I.athleteId, Di(C, I.stats));
941
+ const C = k.get(I.athleteId) ?? Mi();
942
+ k.set(I.athleteId, Wi(C, I.stats));
962
943
  }), Array.from(k.entries()).map(([I, C]) => {
963
944
  const h = r.get(I), v = ie(h, o);
964
945
  return !h || !v ? null : {
@@ -966,40 +947,40 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
966
947
  name: v,
967
948
  position: zn(h.position),
968
949
  dateOfBirth: h.date_of_birth ?? null,
969
- headshot: Te(h),
950
+ headshot: Ae(h),
970
951
  stats: C
971
952
  };
972
953
  }).filter((I) => I !== null);
973
954
  }, [r, t, n, o]), loading: l || y };
974
- }, tr = 3e4, ze = {
955
+ }, Zi = 3e4, ze = {
975
956
  threeWay: { code: "FT_1X2", outcomes: ["1", "X", "2"] },
976
957
  twoWay: { code: "WINNER_OT", outcomes: ["1", "2"] }
977
- }, nr = /* @__PURE__ */ new Set(["FOOTBALL", "HOCKEY", "ICE_HOCKEY"]), or = (e) => nr.has((e ?? "").toUpperCase()) ? [ze.threeWay, ze.twoWay] : [ze.twoWay, ze.threeWay], ir = (e, t) => {
958
+ }, er = /* @__PURE__ */ new Set(["FOOTBALL", "HOCKEY", "ICE_HOCKEY"]), tr = (e) => er.has((e ?? "").toUpperCase()) ? [ze.threeWay, ze.twoWay] : [ze.twoWay, ze.threeWay], nr = (e, t) => {
978
959
  const n = (e || t || "").trim().toUpperCase();
979
960
  return n === "1" || n === "HOME" || n === "HOME_TEAM" ? "1" : n === "X" || n === "DRAW" ? "X" : n === "2" || n === "AWAY" || n === "AWAY_TEAM" ? "2" : null;
980
961
  }, pn = (e) => {
981
962
  if (!Array.isArray(e)) return null;
982
963
  const t = e.find((n) => typeof (n == null ? void 0 : n.url) == "string" && n.url);
983
964
  return t ? t.url : null;
984
- }, rr = (e, t, n) => {
965
+ }, or = (e, t, n) => {
985
966
  const {
986
967
  enabled: o,
987
968
  sport: i,
988
- pollingIntervalMs: r = tr,
969
+ pollingIntervalMs: r = Zi,
989
970
  operators: a,
990
971
  affiliateId: l,
991
972
  affiliateIds: c
992
- } = n, [d, u] = G(null), S = Ke(/* @__PURE__ */ new Map()), p = (a ?? []).join(","), f = `${l ?? ""}|${JSON.stringify(c ?? {})}`, g = Ve(async () => {
973
+ } = n, [d, u] = G(null), S = Ke(/* @__PURE__ */ new Map()), f = (a ?? []).join(","), g = `${l ?? ""}|${JSON.stringify(c ?? {})}`, p = Ve(async () => {
993
974
  var y, x;
994
975
  if (!e || !t) {
995
976
  u(null);
996
977
  return;
997
978
  }
998
979
  try {
999
- const k = or(i), I = {
1000
- oddType: Uo.PRE_EVENT,
1001
- scopeType: jo.ORDINARY_TIME,
1002
- oddFormat: Go.DECIMAL,
980
+ const k = tr(i), I = {
981
+ oddType: jo.PRE_EVENT,
982
+ scopeType: Go.ORDINARY_TIME,
983
+ oddFormat: Vo.DECIMAL,
1003
984
  // Both, so one request settles it whichever way the sport is priced. The SDK requires a
1004
985
  // market list — an omitted `marketTypes` matches nothing at all rather than everything.
1005
986
  marketTypes: k.map((v) => v.code),
@@ -1008,7 +989,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1008
989
  ...c && Object.keys(c).length ? { affiliateIds: c } : {}
1009
990
  }, C = await e.odds.getByMatchIds([t], I), h = (C == null ? void 0 : C.get(t)) ?? [];
1010
991
  for (const v of h) {
1011
- const E = k.map((B) => ({
992
+ const F = k.map((B) => ({
1012
993
  candidate: B,
1013
994
  market: (v.markets ?? []).find(
1014
995
  (O) => {
@@ -1017,14 +998,14 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1017
998
  }
1018
999
  )
1019
1000
  })).find((B) => !!B.market);
1020
- if (!(E != null && E.market)) continue;
1021
- const { candidate: T, market: R } = E, D = [];
1001
+ if (!(F != null && F.market)) continue;
1002
+ const { candidate: A, market: R } = F, D = [];
1022
1003
  if ((R.selections ?? []).forEach((B) => {
1023
- const O = ir(B == null ? void 0 : B.code, B == null ? void 0 : B.name);
1004
+ const O = nr(B == null ? void 0 : B.code, B == null ? void 0 : B.name);
1024
1005
  if (!O) return;
1025
1006
  const K = Number(B == null ? void 0 : B.odds);
1026
1007
  if (!Number.isFinite(K) || K <= 0) return;
1027
- const j = `${O}`, J = S.current.get(j), F = ((B == null ? void 0 : B.movement) ?? "").toUpperCase(), re = F === "UP" || F === "DOWN" ? F.toLowerCase() : J === void 0 || J === K ? "none" : K > J ? "up" : "down";
1008
+ const j = `${O}`, J = S.current.get(j), E = ((B == null ? void 0 : B.movement) ?? "").toUpperCase(), re = E === "UP" || E === "DOWN" ? E.toLowerCase() : J === void 0 || J === K ? "none" : K > J ? "up" : "down";
1028
1009
  D.some((se) => se.label === O) || D.push({
1029
1010
  label: O,
1030
1011
  value: K.toFixed(2),
@@ -1032,11 +1013,11 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1032
1013
  change: re,
1033
1014
  url: pn(B == null ? void 0 : B.urls)
1034
1015
  });
1035
- }), !T.outcomes.every(
1016
+ }), !A.outcomes.every(
1036
1017
  (B) => D.some((O) => O.label === B)
1037
1018
  )) continue;
1038
1019
  const W = new Map(
1039
- T.outcomes.map((B, O) => [B, O])
1020
+ A.outcomes.map((B, O) => [B, O])
1040
1021
  );
1041
1022
  D.sort(
1042
1023
  (B, O) => (W.get(B.label) ?? 0) - (W.get(O.label) ?? 0)
@@ -1044,7 +1025,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1044
1025
  const U = v.bookmaker, Y = ((U == null ? void 0 : U.assets) ?? [])[0];
1045
1026
  u({
1046
1027
  matchId: t,
1047
- market: T.code,
1028
+ market: A.code,
1048
1029
  operator: U ? {
1049
1030
  name: U.name ?? "",
1050
1031
  logo: (Y == null ? void 0 : Y.transparentBackgroundUrl) || (Y == null ? void 0 : Y.logo) || null,
@@ -1060,7 +1041,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1060
1041
  } catch {
1061
1042
  u(null);
1062
1043
  }
1063
- }, [e, t, i, p, f]);
1044
+ }, [e, t, i, f, g]);
1064
1045
  return ne(() => {
1065
1046
  if (!o || !t) {
1066
1047
  u(null), S.current = /* @__PURE__ */ new Map();
@@ -1068,7 +1049,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1068
1049
  }
1069
1050
  let y = !1;
1070
1051
  const x = () => {
1071
- y || g();
1052
+ y || p();
1072
1053
  };
1073
1054
  if (x(), r <= 0) return () => {
1074
1055
  y = !0;
@@ -1077,33 +1058,33 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1077
1058
  return () => {
1078
1059
  y = !0, clearInterval(k);
1079
1060
  };
1080
- }, [o, t, r, g]), d;
1081
- }, sr = 45, yt = 90, ar = 15, lr = (e, t) => {
1061
+ }, [o, t, r, p]), d;
1062
+ }, ir = 45, yt = 90, rr = 15, sr = (e, t) => {
1082
1063
  if ((e ?? "").toLowerCase() !== "football") return null;
1083
1064
  const n = (t ?? "").toLowerCase();
1084
1065
  if (!n) return null;
1085
1066
  const o = n.match(/^(\d+)(?:st|nd|rd|th)_(half|overtime)$/);
1086
1067
  if (o && o[2] === "half") {
1087
1068
  const r = Number(o[1]);
1088
- return r === 1 ? 0 : r === 2 ? sr : null;
1069
+ return r === 1 ? 0 : r === 2 ? ir : null;
1089
1070
  }
1090
1071
  const i = n.match(/^extra_time_(\d+)$/);
1091
1072
  if (i) {
1092
1073
  const r = Number(i[1]);
1093
- return r === 1 ? yt : r === 2 ? yt + ar : null;
1074
+ return r === 1 ? yt : r === 2 ? yt + rr : null;
1094
1075
  }
1095
1076
  return n.startsWith("extra_time") ? yt : null;
1096
- }, cr = /^(running|started|in_progress|active|live)$/, dr = (e) => cr.test((e ?? "").toLowerCase()), mr = 120, ur = (e, t, n, o) => {
1077
+ }, ar = /^(running|started|in_progress|active|live)$/, lr = (e) => ar.test((e ?? "").toLowerCase()), cr = 120, dr = (e, t, n, o) => {
1097
1078
  const { enabled: i, refreshInterval: r } = o, [a, l] = G(null), [c, d] = G(0);
1098
1079
  if (ne(() => {
1099
1080
  if (!i || !e || !t) {
1100
1081
  l(null);
1101
1082
  return;
1102
1083
  }
1103
- const p = new AbortController(), f = async () => {
1084
+ const f = new AbortController(), g = async () => {
1104
1085
  var C;
1105
- const y = await gi(e, t, p.signal);
1106
- if (p.signal.aborted) return;
1086
+ const y = await pi(e, t, f.signal);
1087
+ if (f.signal.aborted) return;
1107
1088
  const x = y == null ? void 0 : y.timing, k = Number((x == null ? void 0 : x.current_minute) ?? 0), I = Number((x == null ? void 0 : x.played_seconds) ?? 0);
1108
1089
  if (!x || k <= 0 && I <= 0) {
1109
1090
  l(null);
@@ -1112,29 +1093,29 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1112
1093
  l({
1113
1094
  minute: k,
1114
1095
  playedSeconds: I,
1115
- running: dr(x.clock_status),
1096
+ running: lr(x.clock_status),
1116
1097
  subType: ((C = y == null ? void 0 : y.status) == null ? void 0 : C.sub_type) ?? null
1117
1098
  });
1118
1099
  };
1119
- f();
1120
- const g = r > 0 ? setInterval(f, r) : null;
1100
+ g();
1101
+ const p = r > 0 ? setInterval(g, r) : null;
1121
1102
  return () => {
1122
- p.abort(), g && clearInterval(g);
1103
+ f.abort(), p && clearInterval(p);
1123
1104
  };
1124
1105
  }, [i, e, t, r]), ne(() => {
1125
1106
  if (d(0), !(a != null && a.running)) return;
1126
- let p = 0;
1127
- const f = setInterval(() => {
1128
- p += 1, d(p), p >= mr && clearInterval(f);
1107
+ let f = 0;
1108
+ const g = setInterval(() => {
1109
+ f += 1, d(f), f >= cr && clearInterval(g);
1129
1110
  }, 1e3);
1130
- return () => clearInterval(f);
1111
+ return () => clearInterval(g);
1131
1112
  }, [a]), !a) return null;
1132
- const u = lr(n, a.subType);
1113
+ const u = sr(n, a.subType);
1133
1114
  if (u === null) return null;
1134
1115
  const S = Math.max(0, a.playedSeconds) % 60;
1135
1116
  return u + a.minute + Math.floor((S + c) / 60);
1136
1117
  }, $ = () => {
1137
- const e = vo(), t = bo(), n = Ao(), o = To(), i = `rgba(${sn(e.textSecondary)}, 0.62)`;
1118
+ const e = vo(), t = bo(), n = To(), o = Ao(), i = `rgba(${sn(e.textSecondary)}, 0.62)`;
1138
1119
  return {
1139
1120
  fonts: t,
1140
1121
  spacing: o,
@@ -1164,7 +1145,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1164
1145
  danger: e.palette.danger.plainColor
1165
1146
  }
1166
1147
  };
1167
- }, hr = (e, t) => t ? e.replace(
1148
+ }, mr = (e, t) => t ? e.replace(
1168
1149
  /\{\{\s*(\w+)\s*\}\}/g,
1169
1150
  (n, o) => o in t ? String(t[o]) : n
1170
1151
  ) : e, fn = (e, t) => {
@@ -1175,11 +1156,11 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1175
1156
  return Ne(() => {
1176
1157
  const n = (o, i) => {
1177
1158
  const r = fn(e, o);
1178
- return r !== null ? hr(r, i) : t(`competitorCard.${o}`, i ?? {});
1159
+ return r !== null ? mr(r, i) : t(`competitorCard.${o}`, i ?? {});
1179
1160
  };
1180
1161
  return n.optional = (o) => fn(e, o), n;
1181
1162
  }, [e, t]);
1182
- }, pr = (e, t) => {
1163
+ }, ur = (e, t) => {
1183
1164
  switch (e) {
1184
1165
  case "keeper":
1185
1166
  return t("goalkeepers");
@@ -1202,7 +1183,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1202
1183
  }) => {
1203
1184
  const { colors: o, fonts: i, radius: r, tint: a } = $();
1204
1185
  return /* @__PURE__ */ s(
1205
- Vo,
1186
+ Ko,
1206
1187
  {
1207
1188
  variant: "outlined",
1208
1189
  sx: {
@@ -1223,10 +1204,10 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1223
1204
  children: e
1224
1205
  }
1225
1206
  );
1226
- }, fr = ({ labels: e }) => {
1207
+ }, hr = ({ labels: e }) => {
1227
1208
  const t = Un(e);
1228
1209
  return /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(
1229
- Ko,
1210
+ Yo,
1230
1211
  {
1231
1212
  notFoundTitle: t("notFound"),
1232
1213
  notFoundMessage: t("notFoundDescription")
@@ -1239,9 +1220,9 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1239
1220
  maxWidthEm: o = 16,
1240
1221
  fontSize: i = "0.75em"
1241
1222
  }) => {
1242
- const { colors: r, fonts: a, radius: l, tint: c } = $(), { shadowRootElement: d } = _o(Eo), u = Fo();
1223
+ const { colors: r, fonts: a, radius: l, tint: c } = $(), { shadowRootElement: d } = _o(Fo), u = Eo();
1243
1224
  return e ? /* @__PURE__ */ s(
1244
- Yo,
1225
+ qo,
1245
1226
  {
1246
1227
  title: e,
1247
1228
  placement: n,
@@ -1269,38 +1250,38 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1269
1250
  children: t
1270
1251
  }
1271
1252
  ) : t;
1272
- }, Fe = (e) => {
1253
+ }, Ee = (e) => {
1273
1254
  if (!e) return null;
1274
1255
  const t = new Date(e);
1275
1256
  return Number.isNaN(t.getTime()) ? null : t;
1276
1257
  }, Gn = (e, t) => {
1277
- const n = Fe(e);
1258
+ const n = Ee(e);
1278
1259
  return n ? n.toLocaleTimeString(me(t), {
1279
1260
  hour: "2-digit",
1280
1261
  minute: "2-digit",
1281
1262
  hour12: !1
1282
1263
  }) : null;
1283
- }, gr = (e, t) => {
1284
- const n = Fe(e);
1264
+ }, pr = (e, t) => {
1265
+ const n = Ee(e);
1285
1266
  return n ? n.toLocaleDateString(me(t), { day: "numeric" }) : null;
1286
- }, yr = (e, t) => {
1287
- const n = Fe(e);
1267
+ }, fr = (e, t) => {
1268
+ const n = Ee(e);
1288
1269
  return n ? n.toLocaleDateString(me(t), { month: "short" }) : null;
1289
- }, xr = (e, t) => {
1290
- const n = Fe(e);
1270
+ }, gr = (e, t) => {
1271
+ const n = Ee(e);
1291
1272
  return n ? n.toLocaleDateString(me(t), {
1292
1273
  weekday: "short",
1293
1274
  day: "numeric",
1294
1275
  month: "short"
1295
1276
  }) : null;
1296
- }, Sr = (e, t) => {
1297
- const n = Fe(e);
1277
+ }, yr = (e, t) => {
1278
+ const n = Ee(e);
1298
1279
  return n ? n.toLocaleDateString(me(t), {
1299
1280
  day: "numeric",
1300
1281
  month: "short",
1301
1282
  year: "numeric"
1302
1283
  }) : null;
1303
- }, b = (e, t) => e.toLocaleString(me(t)), Tt = (e, t) => `${e.toLocaleString(me(t))}%`, _t = (e) => e ? e.slice(0, 10) : null, Vn = (e, t) => ({
1284
+ }, b = (e, t) => e.toLocaleString(me(t)), At = (e, t) => `${e.toLocaleString(me(t))}%`, _t = (e) => e ? e.slice(0, 10) : null, Vn = (e, t) => ({
1304
1285
  display: "inline-flex",
1305
1286
  alignItems: "center",
1306
1287
  gap: "0.375em",
@@ -1321,7 +1302,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1321
1302
  const { colors: e, fonts: t } = $();
1322
1303
  return (n, o) => /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.125em" }, children: [
1323
1304
  /* @__PURE__ */ s(
1324
- A,
1305
+ T,
1325
1306
  {
1326
1307
  sx: {
1327
1308
  fontFamily: t.primary,
@@ -1334,7 +1315,7 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1334
1315
  }
1335
1316
  ),
1336
1317
  o ? /* @__PURE__ */ s(
1337
- A,
1318
+ T,
1338
1319
  {
1339
1320
  sx: {
1340
1321
  fontFamily: t.secondary,
@@ -1452,11 +1433,11 @@ const oi = Ae("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]), ii = "http
1452
1433
  }
1453
1434
  );
1454
1435
  ce.displayName = "LinkSurface";
1455
- const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1436
+ const xr = /\{(\w+)\}/g, Sr = (e, t) => e.replace(xr, (n, o) => {
1456
1437
  const i = t[o];
1457
1438
  return encodeURIComponent(i ?? "");
1458
1439
  }), Je = (e, t) => {
1459
- const n = ((e == null ? void 0 : e.url) ?? "").trim(), o = n ? kr(n, t) : null, i = (e == null ? void 0 : e.onClick) ?? null;
1440
+ const n = ((e == null ? void 0 : e.url) ?? "").trim(), o = n ? Sr(n, t) : null, i = (e == null ? void 0 : e.onClick) ?? null;
1460
1441
  return {
1461
1442
  href: o,
1462
1443
  target: (e == null ? void 0 : e.target) ?? null,
@@ -1478,27 +1459,27 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1478
1459
  return a <= 0.03928 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
1479
1460
  });
1480
1461
  return 0.2126 * n + 0.7152 * o + 0.0722 * i;
1481
- }, Et = (e, t) => {
1462
+ }, Ft = (e, t) => {
1482
1463
  const n = gn(e), o = gn(t);
1483
1464
  if (n === null || o === null) return null;
1484
1465
  const [i, r] = n >= o ? [n, o] : [o, n];
1485
1466
  return (i + 0.05) / (r + 0.05);
1486
- }, Cr = 1.35, Ir = 60, vr = (e, t) => {
1467
+ }, wr = 1.35, kr = 60, Cr = (e, t) => {
1487
1468
  const n = wt(e), o = wt(t);
1488
1469
  return !n || !o ? null : Math.hypot(
1489
1470
  n[0] - o[0],
1490
1471
  n[1] - o[1],
1491
1472
  n[2] - o[2]
1492
1473
  );
1493
- }, Xn = (e, t, n = Cr) => {
1494
- const o = Et(e, t);
1474
+ }, Xn = (e, t, n = wr) => {
1475
+ const o = Ft(e, t);
1495
1476
  if (o === null || o >= n) return !0;
1496
- const i = vr(e, t);
1497
- return i !== null && i >= Ir;
1498
- }, Ft = (e, t) => {
1477
+ const i = Cr(e, t);
1478
+ return i !== null && i >= kr;
1479
+ }, Et = (e, t) => {
1499
1480
  let n = t[0], o = -1;
1500
1481
  for (const i of t) {
1501
- const r = e.map((l) => Et(i, l)).filter((l) => l !== null);
1482
+ const r = e.map((l) => Ft(i, l)).filter((l) => l !== null);
1502
1483
  if (r.length === 0) continue;
1503
1484
  const a = Math.min(...r);
1504
1485
  a > o && (o = a, n = i);
@@ -1514,34 +1495,34 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1514
1495
  }, de = (e) => {
1515
1496
  const { branding: t, hasBranding: n, styles: o } = e;
1516
1497
  return !n || !(t != null && t.primary) ? o.colors.primary : Xn(t.primary, o.colors.surface) ? t.primary : o.colors.primary;
1517
- }, br = 4.5, Ar = (e) => [
1498
+ }, Ir = 4.5, vr = (e) => [
1518
1499
  e.colors.onPrimary,
1519
1500
  e.colors.text,
1520
1501
  e.colors.surface
1521
1502
  ], yn = (e, t) => {
1522
- const n = t.map((o) => Et(e, o)).filter((o) => o !== null);
1503
+ const n = t.map((o) => Ft(e, o)).filter((o) => o !== null);
1523
1504
  return n.length === 0 ? null : Math.min(...n);
1524
- }, Tr = (e, t) => {
1505
+ }, br = (e, t) => {
1525
1506
  const n = t.colors.onPrimary, o = yn(n, e);
1526
- if (o === null || o >= _r)
1507
+ if (o === null || o >= Tr)
1527
1508
  return { ink: n, readable: !0 };
1528
- const i = Ft(e, Ar(t)), r = yn(i, e);
1529
- return { ink: i, readable: r === null || r >= br };
1509
+ const i = Et(e, vr(t)), r = yn(i, e);
1510
+ return { ink: i, readable: r === null || r >= Ir };
1530
1511
  }, Jn = (e, t) => {
1531
1512
  if (t != null && t.trim()) return !1;
1532
1513
  const { styles: n } = e;
1533
1514
  return !Xn($e(e), n.colors.surface);
1534
- }, _r = 2.2, Qe = (e, t) => {
1515
+ }, Tr = 2.2, Qe = (e, t) => {
1535
1516
  const { styles: n } = e;
1536
- return t != null && t.trim() ? n.colors.onPrimary : Tr([$e(e), $t(e)], n).ink;
1517
+ return t != null && t.trim() ? n.colors.onPrimary : br([$e(e), $t(e)], n).ink;
1537
1518
  }, Qn = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${$t(e)}, ${$e(e)})`, Zn = (e, t) => t != null && t.trim() ? t : `linear-gradient(to bottom right, ${$e(e)}, ${$t(e)})`, eo = (e) => `0 0.5em 1.25em -0.625em ${e.styles.tint(de(e), 0.6)}`, to = (e, t) => {
1538
1519
  if (t != null && t.trim()) return t;
1539
1520
  const { styles: n } = e, o = n.tint(de(e), 0.08), i = n.tint(de(e), 0.08);
1540
1521
  return `linear-gradient(to bottom right, ${o} 0%, ${n.colors.surface} 45%, ${n.colors.surface} 55%, ${i} 100%)`;
1541
- }, no = 90, Er = (e) => Math.max(0, e) * no, oo = (e, t) => {
1542
- const n = Er(e);
1522
+ }, no = 90, Ar = (e) => Math.max(0, e) * no, oo = (e, t) => {
1523
+ const n = Ar(e);
1543
1524
  return n > 0 && t < n ? n : null;
1544
- }, io = (e) => Math.max(0, e.apps - e.starts), ro = (e) => e.goals + e.assists, Lt = (e, t, n = 2) => (t > 0 ? e / t * no : 0).toFixed(n), be = (e, t) => t > 0 ? (e / t).toFixed(2) : null, Ge = (e, t) => t > 0 ? Math.round(e / t) : null, Fr = ({
1525
+ }, io = (e) => Math.max(0, e.apps - e.starts), ro = (e) => e.goals + e.assists, Lt = (e, t, n = 2) => (t > 0 ? e / t * no : 0).toFixed(n), be = (e, t) => t > 0 ? (e / t).toFixed(2) : null, Ge = (e, t) => t > 0 ? Math.round(e / t) : null, _r = ({
1545
1526
  player: e,
1546
1527
  competitorId: t,
1547
1528
  teamPlayed: n,
@@ -1551,10 +1532,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1551
1532
  backgroundGradient: a,
1552
1533
  cta: l
1553
1534
  }) => {
1554
- const { colors: c, fonts: d, radius: u, tint: S } = $(), p = jn(), f = de(r), g = Ft(
1555
- [f],
1535
+ const { colors: c, fonts: d, radius: u, tint: S } = $(), f = jn(), g = de(r), p = Et(
1536
+ [g],
1556
1537
  [c.onPrimary, c.text, c.surface]
1557
- ), y = e.position === "keeper", { stats: x } = e, k = vt(e.dateOfBirth), I = oo(n, x.minutes), C = Math.max(0, x.apps - x.starts), h = y ? { value: x.cleanSheets, caption: i("cleanSheets") } : x.goals > 0 ? { value: x.goals, caption: i("goals") } : x.assists > 0 ? { value: x.assists, caption: i("assists") } : { value: x.minutes, caption: i("minutes") }, v = (L, W) => `${L}: ${b(W, o)}`, E = y ? [
1538
+ ), y = e.position === "keeper", { stats: x } = e, k = vt(e.dateOfBirth), I = oo(n, x.minutes), C = Math.max(0, x.apps - x.starts), h = y ? { value: x.cleanSheets, caption: i("cleanSheets") } : x.goals > 0 ? { value: x.goals, caption: i("goals") } : x.assists > 0 ? { value: x.assists, caption: i("assists") } : { value: x.minutes, caption: i("minutes") }, v = (L, W) => `${L}: ${b(W, o)}`, F = y ? [
1558
1539
  {
1559
1540
  key: "conceded",
1560
1541
  value: b(x.goalsConceded, o),
@@ -1614,7 +1595,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1614
1595
  v(i("appearances"), x.apps)
1615
1596
  ].join(" · ")
1616
1597
  }
1617
- ], T = Je(l, {
1598
+ ], A = Je(l, {
1618
1599
  athleteId: e.id,
1619
1600
  competitorId: t
1620
1601
  }), R = (L, W) => /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
@@ -1675,14 +1656,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1675
1656
  fontSize: "0.875em",
1676
1657
  fontWeight: 600,
1677
1658
  color: c.dim,
1678
- boxShadow: `0 0 0 0.125em ${c.surface}, 0 0 0 0.25em ${f}`
1659
+ boxShadow: `0 0 0 0.125em ${c.surface}, 0 0 0 0.25em ${g}`
1679
1660
  },
1680
1661
  children: e.headshot ? "" : bt(e.name)
1681
1662
  }
1682
1663
  ),
1683
1664
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.125em", minWidth: 0 }, children: [
1684
1665
  /* @__PURE__ */ s(
1685
- A,
1666
+ T,
1686
1667
  {
1687
1668
  sx: {
1688
1669
  fontFamily: d.primary,
@@ -1699,7 +1680,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1699
1680
  }
1700
1681
  ),
1701
1682
  /* @__PURE__ */ s(
1702
- A,
1683
+ T,
1703
1684
  {
1704
1685
  sx: {
1705
1686
  fontFamily: d.secondary,
@@ -1708,7 +1689,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1708
1689
  color: c.dim
1709
1690
  },
1710
1691
  children: [
1711
- p(e.position),
1692
+ f(e.position),
1712
1693
  k !== null ? i("years", { count: k }) : null
1713
1694
  ].filter(Boolean).join(" · ")
1714
1695
  }
@@ -1726,7 +1707,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1726
1707
  },
1727
1708
  children: [
1728
1709
  /* @__PURE__ */ s(
1729
- A,
1710
+ T,
1730
1711
  {
1731
1712
  sx: {
1732
1713
  fontFamily: d.primary,
@@ -1734,14 +1715,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1734
1715
  fontWeight: 800,
1735
1716
  lineHeight: 1.05,
1736
1717
  letterSpacing: "-0.02em",
1737
- color: f,
1718
+ color: g,
1738
1719
  fontVariantNumeric: "tabular-nums"
1739
1720
  },
1740
1721
  children: b(h.value, o)
1741
1722
  }
1742
1723
  ),
1743
1724
  /* @__PURE__ */ s(
1744
- A,
1725
+ T,
1745
1726
  {
1746
1727
  sx: {
1747
1728
  fontFamily: d.secondary,
@@ -1782,7 +1763,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1782
1763
  height: "100%",
1783
1764
  width: I === null ? "100%" : te(x.minutes, I),
1784
1765
  borderRadius: "999px",
1785
- backgroundColor: f,
1766
+ backgroundColor: g,
1786
1767
  transition: "width 400ms ease"
1787
1768
  }
1788
1769
  }
@@ -1814,7 +1795,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1814
1795
  {
1815
1796
  sx: {
1816
1797
  width: te(x.starts, Math.max(1, n)),
1817
- backgroundColor: f,
1798
+ backgroundColor: g,
1818
1799
  transition: "width 400ms ease"
1819
1800
  }
1820
1801
  }
@@ -1824,7 +1805,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1824
1805
  {
1825
1806
  sx: {
1826
1807
  width: te(C, Math.max(1, n)),
1827
- backgroundColor: f,
1808
+ backgroundColor: g,
1828
1809
  opacity: 0.35,
1829
1810
  transition: "width 400ms ease"
1830
1811
  }
@@ -1861,7 +1842,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1861
1842
  width: "0.5em",
1862
1843
  height: "0.5em",
1863
1844
  borderRadius: "50%",
1864
- backgroundColor: f,
1845
+ backgroundColor: g,
1865
1846
  opacity: L.opacity
1866
1847
  }
1867
1848
  }
@@ -1877,7 +1858,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1877
1858
  ] })
1878
1859
  ),
1879
1860
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.375em", alignItems: "center" }, children: [
1880
- E.map((L) => /* @__PURE__ */ s(Yn, { chip: L }, L.key)),
1861
+ F.map((L) => /* @__PURE__ */ s(Yn, { chip: L }, L.key)),
1881
1862
  /* @__PURE__ */ s(
1882
1863
  qn,
1883
1864
  {
@@ -1888,11 +1869,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1888
1869
  }
1889
1870
  )
1890
1871
  ] }),
1891
- T.interactive ? /* @__PURE__ */ w(
1872
+ A.interactive ? /* @__PURE__ */ w(
1892
1873
  ce,
1893
1874
  {
1894
- cta: T,
1895
- title: T.href ?? void 0,
1875
+ cta: A,
1876
+ title: A.href ?? void 0,
1896
1877
  sx: {
1897
1878
  display: "flex",
1898
1879
  alignItems: "center",
@@ -1902,8 +1883,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1902
1883
  paddingBlock: "0.5em",
1903
1884
  paddingInline: "1em",
1904
1885
  borderRadius: u.xs,
1905
- backgroundColor: f,
1906
- color: g,
1886
+ backgroundColor: g,
1887
+ color: p,
1907
1888
  fontFamily: d.primary,
1908
1889
  fontSize: "0.8125em",
1909
1890
  fontWeight: 600,
@@ -1912,7 +1893,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1912
1893
  hoverSx: { opacity: 0.9 },
1913
1894
  children: [
1914
1895
  i("fullProfile"),
1915
- /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(Zo, { size: 14, "aria-hidden": !0 }) })
1896
+ /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(ei, { size: 14, "aria-hidden": !0 }) })
1916
1897
  ]
1917
1898
  }
1918
1899
  ) : null
@@ -1922,7 +1903,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1922
1903
  }, we = ({ children: e }) => {
1923
1904
  const { colors: t, fonts: n } = $();
1924
1905
  return /* @__PURE__ */ s(
1925
- A,
1906
+ T,
1926
1907
  {
1927
1908
  sx: {
1928
1909
  fontFamily: n.secondary,
@@ -1935,12 +1916,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1935
1916
  children: e
1936
1917
  }
1937
1918
  );
1938
- }, $r = [
1919
+ }, Fr = [
1939
1920
  "keeper",
1940
1921
  "defender",
1941
1922
  "midfielder",
1942
1923
  "forward"
1943
- ], Lr = ({
1924
+ ], Er = ({
1944
1925
  players: e,
1945
1926
  loading: t,
1946
1927
  competitorId: n,
@@ -1951,12 +1932,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1951
1932
  config: l,
1952
1933
  dense: c = !1
1953
1934
  }) => {
1954
- const { colors: d, fonts: u, radius: S, tint: p } = $(), [f, g] = H.useState(null);
1935
+ const { colors: d, fonts: u, radius: S, tint: f } = $(), [g, p] = H.useState(null);
1955
1936
  if (t && e.length === 0)
1956
1937
  return /* @__PURE__ */ s(In, { my: 3 });
1957
1938
  if (e.length === 0)
1958
1939
  return /* @__PURE__ */ s(we, { children: r("noData") });
1959
- const y = c ? "minmax(0, 1fr) 2em 2em 2em" : "minmax(0, 1fr) 2.25em 2.25em 2.25em", x = $r.map((k) => ({
1940
+ const y = c ? "minmax(0, 1fr) 2em 2em 2em" : "minmax(0, 1fr) 2.25em 2.25em 2.25em", x = Fr.map((k) => ({
1960
1941
  position: k,
1961
1942
  players: e.filter((I) => I.position === k).sort((I, C) => C.stats.minutes - I.stats.minutes)
1962
1943
  })).filter((k) => k.players.length > 0);
@@ -1983,7 +1964,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1983
1964
  },
1984
1965
  children: [
1985
1966
  /* @__PURE__ */ s(
1986
- A,
1967
+ T,
1987
1968
  {
1988
1969
  sx: {
1989
1970
  fontFamily: u.primary,
@@ -1994,11 +1975,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
1994
1975
  textTransform: "uppercase",
1995
1976
  color: d.dim
1996
1977
  },
1997
- children: pr(k.position, r)
1978
+ children: ur(k.position, r)
1998
1979
  }
1999
1980
  ),
2000
1981
  C.map((h) => /* @__PURE__ */ s(X, { title: h.long, children: /* @__PURE__ */ s(
2001
- A,
1982
+ T,
2002
1983
  {
2003
1984
  sx: {
2004
1985
  fontFamily: u.primary,
@@ -2016,7 +1997,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2016
1997
  }
2017
1998
  ),
2018
1999
  k.players.map((h) => {
2019
- const v = f === h.id, E = vt(h.dateOfBirth), T = [
2000
+ const v = g === h.id, F = vt(h.dateOfBirth), A = [
2020
2001
  h.stats.apps,
2021
2002
  I ? h.stats.cleanSheets : h.stats.goals,
2022
2003
  I ? h.stats.goalsConceded : h.stats.assists
@@ -2031,7 +2012,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2031
2012
  // The row itself always expands — a configured `playerCTA` becomes the
2032
2013
  // "Full profile" button INSIDE the card, so opening a player never
2033
2014
  // navigates away from the widget unexpectedly.
2034
- onClick: () => g(v ? null : h.id),
2015
+ onClick: () => p(v ? null : h.id),
2035
2016
  interactive: !0
2036
2017
  },
2037
2018
  "aria-expanded": v,
@@ -2046,7 +2027,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2046
2027
  borderRadius: S.sm,
2047
2028
  backgroundColor: v ? d.inner : "transparent"
2048
2029
  },
2049
- hoverSx: { backgroundColor: p(d.text, 0.05) },
2030
+ hoverSx: { backgroundColor: f(d.text, 0.05) },
2050
2031
  children: [
2051
2032
  /* @__PURE__ */ w(
2052
2033
  m,
@@ -2091,7 +2072,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2091
2072
  },
2092
2073
  children: [
2093
2074
  /* @__PURE__ */ s(
2094
- A,
2075
+ T,
2095
2076
  {
2096
2077
  sx: {
2097
2078
  fontFamily: u.primary,
@@ -2107,8 +2088,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2107
2088
  children: h.name
2108
2089
  }
2109
2090
  ),
2110
- E !== null ? /* @__PURE__ */ s(
2111
- A,
2091
+ F !== null ? /* @__PURE__ */ s(
2092
+ T,
2112
2093
  {
2113
2094
  sx: {
2114
2095
  fontFamily: u.secondary,
@@ -2116,7 +2097,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2116
2097
  lineHeight: 1.3,
2117
2098
  color: d.dim
2118
2099
  },
2119
- children: r("years", { count: E })
2100
+ children: r("years", { count: F })
2120
2101
  }
2121
2102
  ) : null
2122
2103
  ]
@@ -2125,8 +2106,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2125
2106
  ]
2126
2107
  }
2127
2108
  ),
2128
- T.map((R, D) => /* @__PURE__ */ s(
2129
- A,
2109
+ A.map((R, D) => /* @__PURE__ */ s(
2110
+ T,
2130
2111
  {
2131
2112
  sx: {
2132
2113
  fontFamily: u.primary,
@@ -2145,7 +2126,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2145
2126
  }
2146
2127
  ),
2147
2128
  v ? /* @__PURE__ */ s(
2148
- Fr,
2129
+ _r,
2149
2130
  {
2150
2131
  player: h,
2151
2132
  competitorId: n,
@@ -2164,7 +2145,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2164
2145
  k.position
2165
2146
  );
2166
2147
  }) });
2167
- }, Br = 8, xn = 3.5, Rr = ({
2148
+ }, $r = 8, xn = 3.5, Lr = ({
2168
2149
  competitions: e,
2169
2150
  statsByCompetition: t,
2170
2151
  position: n,
@@ -2172,27 +2153,27 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2172
2153
  language: i,
2173
2154
  dense: r = !1
2174
2155
  }) => {
2175
- const { colors: a, fonts: l, radius: c, tint: d } = $(), u = n === "keeper", p = e.filter(
2156
+ const { colors: a, fonts: l, radius: c, tint: d } = $(), u = n === "keeper", f = e.filter(
2176
2157
  (h) => h.id !== N
2177
2158
  ).filter(
2178
2159
  (h) => t.has(h.id)
2179
2160
  );
2180
- if (p.length === 0)
2161
+ if (f.length === 0)
2181
2162
  return /* @__PURE__ */ s(we, { children: o("noData") });
2182
- const f = p.map((h) => ({
2163
+ const g = f.map((h) => ({
2183
2164
  key: h.id,
2184
2165
  label: h.shortName,
2185
2166
  full: h.name,
2186
2167
  logo: h.logo,
2187
2168
  stats: t.get(h.id),
2188
2169
  total: !1
2189
- })), g = t.get(N);
2190
- g && p.length > 1 && f.push({
2170
+ })), p = t.get(N);
2171
+ p && f.length > 1 && g.push({
2191
2172
  key: N,
2192
2173
  label: o("total"),
2193
2174
  full: o("total"),
2194
2175
  logo: null,
2195
- stats: g,
2176
+ stats: p,
2196
2177
  total: !0
2197
2178
  });
2198
2179
  const y = (h) => b(h, i), x = (h) => h === null ? "–" : b(h, i), k = [
@@ -2261,7 +2242,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2261
2242
  { key: "yellowCards", label: o("yellowCards"), value: (h) => y(h.yellowCards) },
2262
2243
  { key: "redCards", label: o("redCards"), value: (h) => y(h.redCards) },
2263
2244
  { key: "captain", label: o("captain"), value: (h) => y(h.captain) }
2264
- ], I = `minmax(0, 1fr) repeat(${f.length}, ${xn}em)`, C = `${Br + f.length * xn}em`;
2245
+ ], I = `minmax(0, 1fr) repeat(${g.length}, ${xn}em)`, C = `${$r + g.length * xn}em`;
2265
2246
  return /* @__PURE__ */ s(m, { sx: { overflowX: "auto", overscrollBehavior: "contain" }, children: /* @__PURE__ */ w(m, { sx: { minWidth: C }, children: [
2266
2247
  /* @__PURE__ */ w(
2267
2248
  m,
@@ -2277,7 +2258,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2277
2258
  },
2278
2259
  children: [
2279
2260
  /* @__PURE__ */ s(
2280
- A,
2261
+ T,
2281
2262
  {
2282
2263
  sx: {
2283
2264
  fontFamily: l.primary,
@@ -2291,7 +2272,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2291
2272
  children: o("statistic")
2292
2273
  }
2293
2274
  ),
2294
- f.map((h) => /* @__PURE__ */ s(X, { title: h.full, children: /* @__PURE__ */ w(
2275
+ g.map((h) => /* @__PURE__ */ s(X, { title: h.full, children: /* @__PURE__ */ w(
2295
2276
  m,
2296
2277
  {
2297
2278
  sx: {
@@ -2319,7 +2300,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2319
2300
  }
2320
2301
  ) : null,
2321
2302
  /* @__PURE__ */ s(
2322
- A,
2303
+ T,
2323
2304
  {
2324
2305
  sx: {
2325
2306
  fontFamily: l.primary,
@@ -2359,7 +2340,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2359
2340
  },
2360
2341
  children: [
2361
2342
  /* @__PURE__ */ s(
2362
- A,
2343
+ T,
2363
2344
  {
2364
2345
  sx: {
2365
2346
  fontFamily: l.secondary,
@@ -2371,29 +2352,29 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2371
2352
  children: h.label
2372
2353
  }
2373
2354
  ),
2374
- f.map((E) => /* @__PURE__ */ s(
2375
- A,
2355
+ g.map((F) => /* @__PURE__ */ s(
2356
+ T,
2376
2357
  {
2377
2358
  sx: {
2378
2359
  fontFamily: l.primary,
2379
2360
  fontSize: "0.8125em",
2380
2361
  // The total is the column the eye lands on, so it carries the weight.
2381
- fontWeight: E.total ? 700 : 500,
2362
+ fontWeight: F.total ? 700 : 500,
2382
2363
  lineHeight: 1.4,
2383
2364
  color: a.text,
2384
2365
  textAlign: "end",
2385
2366
  fontVariantNumeric: "tabular-nums"
2386
2367
  },
2387
- children: h.value(E.stats)
2368
+ children: h.value(F.stats)
2388
2369
  },
2389
- E.key
2370
+ F.key
2390
2371
  ))
2391
2372
  ]
2392
2373
  },
2393
2374
  h.key
2394
2375
  ))
2395
2376
  ] }) });
2396
- }, Wr = 0.38, Mr = ({
2377
+ }, Br = 0.38, Rr = ({
2397
2378
  competitor: e,
2398
2379
  size: t,
2399
2380
  fallbackUrl: n,
@@ -2443,7 +2424,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2443
2424
  }
2444
2425
  );
2445
2426
  if (!i) return S;
2446
- const p = t * Wr;
2427
+ const f = t * Br;
2447
2428
  return /* @__PURE__ */ w(m, { sx: { position: "relative", flexShrink: 0, display: "flex" }, children: [
2448
2429
  S,
2449
2430
  /* @__PURE__ */ s(
@@ -2456,15 +2437,15 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2456
2437
  sx: {
2457
2438
  position: "absolute",
2458
2439
  // Logical insets, so the badge sits on the trailing corner in Arabic too.
2459
- insetInlineEnd: `${-p * 0.18}em`,
2460
- insetBlockEnd: `${-p * 0.15}em`,
2461
- width: `${p}em`,
2462
- height: `${p}em`,
2440
+ insetInlineEnd: `${-f * 0.18}em`,
2441
+ insetBlockEnd: `${-f * 0.15}em`,
2442
+ width: `${f}em`,
2443
+ height: `${f}em`,
2463
2444
  objectFit: "contain",
2464
2445
  // The badge is a transparent PNG over a photo, so it needs its own opaque disc to read.
2465
2446
  backgroundColor: r.surface,
2466
2447
  borderRadius: "50%",
2467
- padding: `${p * 0.1}em`,
2448
+ padding: `${f * 0.1}em`,
2468
2449
  boxShadow: "0 0.0625em 0.1875em rgba(0, 0, 0, 0.3)"
2469
2450
  }
2470
2451
  }
@@ -2483,20 +2464,20 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2483
2464
  onBackgroundColor: d,
2484
2465
  nameFontSize: u,
2485
2466
  defaultImagePlaceholderUrl: S,
2486
- badgeUrl: p,
2487
- edgeColor: f,
2488
- children: g
2467
+ badgeUrl: f,
2468
+ edgeColor: g,
2469
+ children: p
2489
2470
  }) => {
2490
- const { colors: y, fonts: x, spacing: k, tint: I } = $(), C = Ye(), h = d ?? y.text, v = d ? I(d, 0.75) : y.dim, E = /* @__PURE__ */ s(
2491
- Mr,
2471
+ const { colors: y, fonts: x, spacing: k, tint: I } = $(), C = Ye(), h = d ?? y.text, v = d ? I(d, 0.75) : y.dim, F = /* @__PURE__ */ s(
2472
+ Rr,
2492
2473
  {
2493
2474
  competitor: e,
2494
2475
  size: r,
2495
2476
  fallbackUrl: S,
2496
2477
  shadow: c,
2497
- badgeUrl: p
2478
+ badgeUrl: f
2498
2479
  }
2499
- ), T = /* @__PURE__ */ w(
2480
+ ), A = /* @__PURE__ */ w(
2500
2481
  m,
2501
2482
  {
2502
2483
  sx: {
@@ -2507,7 +2488,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2507
2488
  },
2508
2489
  children: [
2509
2490
  /* @__PURE__ */ s(
2510
- A,
2491
+ T,
2511
2492
  {
2512
2493
  sx: {
2513
2494
  fontFamily: x.primary,
@@ -2528,7 +2509,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2528
2509
  }
2529
2510
  ),
2530
2511
  t ? /* @__PURE__ */ s(
2531
- A,
2512
+ T,
2532
2513
  {
2533
2514
  sx: {
2534
2515
  fontFamily: x.secondary,
@@ -2557,7 +2538,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2557
2538
  padding: a,
2558
2539
  ...l ? { background: l } : {},
2559
2540
  ...d ? { color: d } : {},
2560
- ...f ? { borderBlockEnd: `1px solid ${f}` } : {}
2541
+ ...g ? { borderBlockEnd: `1px solid ${g}` } : {}
2561
2542
  },
2562
2543
  children: [
2563
2544
  /* @__PURE__ */ w(
@@ -2572,12 +2553,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2572
2553
  maxWidth: "100%"
2573
2554
  },
2574
2555
  children: [
2575
- E,
2576
- T
2556
+ F,
2557
+ A
2577
2558
  ]
2578
2559
  }
2579
2560
  ),
2580
- g,
2561
+ p,
2581
2562
  i
2582
2563
  ]
2583
2564
  }
@@ -2589,14 +2570,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2589
2570
  sx: {
2590
2571
  display: "flex",
2591
2572
  flexDirection: "column",
2592
- gap: g ? "1.25em" : 0,
2573
+ gap: p ? "1.25em" : 0,
2593
2574
  padding: a,
2594
2575
  ...l ? { background: l } : {},
2595
2576
  // The design sets `color:#fff` on the header wrapper, so everything inside it — the hero's
2596
2577
  // stat tiles included — inherits it. Without this they inherit the card's body colour and
2597
2578
  // render near-black on the gradient.
2598
2579
  ...d ? { color: d } : {},
2599
- ...f ? { borderBlockEnd: `1px solid ${f}` } : {}
2580
+ ...g ? { borderBlockEnd: `1px solid ${g}` } : {}
2600
2581
  },
2601
2582
  children: [
2602
2583
  /* @__PURE__ */ w(
@@ -2620,8 +2601,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2620
2601
  minWidth: 0
2621
2602
  },
2622
2603
  children: [
2623
- E,
2624
- T
2604
+ F,
2605
+ A
2625
2606
  ]
2626
2607
  }
2627
2608
  ),
@@ -2629,7 +2610,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2629
2610
  ]
2630
2611
  }
2631
2612
  ),
2632
- g
2613
+ p
2633
2614
  ]
2634
2615
  }
2635
2616
  );
@@ -2644,10 +2625,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2644
2625
  onColor: l,
2645
2626
  stacked: c = !1
2646
2627
  }) => {
2647
- const { colors: d, fonts: u, radius: S, tint: p } = $(), f = l ?? d.onPrimary;
2628
+ const { colors: d, fonts: u, radius: S, tint: f } = $(), g = l ?? d.onPrimary;
2648
2629
  if (!o && !i) return null;
2649
- const g = n === "onBrand" || n === "block", y = n === "icon", x = (I, C, h) => {
2650
- const v = e === I, E = /* @__PURE__ */ s(
2630
+ const p = n === "onBrand" || n === "block", y = n === "icon", x = (I, C, h) => {
2631
+ const v = e === I, F = /* @__PURE__ */ s(
2651
2632
  m,
2652
2633
  {
2653
2634
  component: "button",
@@ -2681,12 +2662,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2681
2662
  borderRadius: S.xs,
2682
2663
  ...n === "block" ? { width: "100%" } : {}
2683
2664
  },
2684
- ...g ? {
2665
+ ...p ? {
2685
2666
  // On the branded header a theme colour would either vanish into the club's own or
2686
2667
  // fight it, so the unfilled state is a frost of the header's own ink.
2687
- backgroundColor: v ? d.primary : p(f, 0.15),
2688
- borderColor: v ? "transparent" : p(f, 0.2),
2689
- color: v ? d.onPrimary : f
2668
+ backgroundColor: v ? d.primary : f(g, 0.15),
2669
+ borderColor: v ? "transparent" : f(g, 0.2),
2670
+ color: v ? d.onPrimary : g
2690
2671
  } : {
2691
2672
  backgroundColor: v ? d.primary : "transparent",
2692
2673
  color: v ? d.onPrimary : d.text,
@@ -2698,7 +2679,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2698
2679
  children: y ? h : C
2699
2680
  }
2700
2681
  );
2701
- return /* @__PURE__ */ s(X, { title: y ? C : null, children: E }, I);
2682
+ return /* @__PURE__ */ s(X, { title: y ? C : null, children: F }, I);
2702
2683
  }, k = n === "block" || c;
2703
2684
  return /* @__PURE__ */ w(
2704
2685
  m,
@@ -2712,11 +2693,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2712
2693
  ...n === "block" ? { width: "100%" } : {}
2713
2694
  },
2714
2695
  children: [
2715
- o ? x("fixtures", a.fixtures, /* @__PURE__ */ s(ei, { size: 14, "aria-hidden": !0 })) : null,
2696
+ o ? x("fixtures", a.fixtures, /* @__PURE__ */ s(ti, { size: 14, "aria-hidden": !0 })) : null,
2716
2697
  i ? x(
2717
2698
  r,
2718
2699
  a.secondary,
2719
- r === "squad" ? /* @__PURE__ */ s(qo, { size: 14, "aria-hidden": !0 }) : /* @__PURE__ */ s(ti, { size: 14, "aria-hidden": !0 })
2700
+ r === "squad" ? /* @__PURE__ */ s(Xo, { size: 14, "aria-hidden": !0 }) : /* @__PURE__ */ s(ni, { size: 14, "aria-hidden": !0 })
2720
2701
  ) : null
2721
2702
  ]
2722
2703
  }
@@ -2779,7 +2760,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2779
2760
  }
2780
2761
  },
2781
2762
  children: [
2782
- /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(Xo, { size: 14, "aria-hidden": !0 }) }),
2763
+ /* @__PURE__ */ s(vn, { children: /* @__PURE__ */ s(Jo, { size: 14, "aria-hidden": !0 }) }),
2783
2764
  e
2784
2765
  ]
2785
2766
  }
@@ -2800,18 +2781,18 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2800
2781
  allLabel: i,
2801
2782
  onColor: r
2802
2783
  }) => {
2803
- const { colors: a, fonts: l, radius: c, tint: d } = $(), u = r ?? a.onPrimary, S = Ft([u], [a.surface, a.text]);
2784
+ const { colors: a, fonts: l, radius: c, tint: d } = $(), u = r ?? a.onPrimary, S = Et([u], [a.surface, a.text]);
2804
2785
  if (e.length < 2) return null;
2805
- const p = o === "rail";
2786
+ const f = o === "rail";
2806
2787
  return /* @__PURE__ */ s(
2807
2788
  m,
2808
2789
  {
2809
2790
  sx: {
2810
2791
  display: "flex",
2811
- flexDirection: p ? "column" : "row",
2812
- gap: p ? "0.125em" : "0.25em",
2792
+ flexDirection: f ? "column" : "row",
2793
+ gap: f ? "0.125em" : "0.25em",
2813
2794
  flexWrap: "nowrap",
2814
- ...p ? {
2795
+ ...f ? {
2815
2796
  flexShrink: 0,
2816
2797
  width: "100%",
2817
2798
  padding: "0.25em",
@@ -2840,14 +2821,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2840
2821
  "&::-webkit-scrollbar": { display: "none" }
2841
2822
  }
2842
2823
  },
2843
- children: e.map((f) => {
2844
- const g = f.id === t, y = f.id === N ? i : o === "pills" ? f.shortName : f.name, x = /* @__PURE__ */ w(
2824
+ children: e.map((g) => {
2825
+ const p = g.id === t, y = g.id === N ? i : o === "pills" ? g.shortName : g.name, x = /* @__PURE__ */ w(
2845
2826
  m,
2846
2827
  {
2847
2828
  component: "button",
2848
2829
  type: "button",
2849
- "aria-pressed": g,
2850
- onClick: () => n(f.id),
2830
+ "aria-pressed": p,
2831
+ onClick: () => n(g.id),
2851
2832
  sx: {
2852
2833
  display: "flex",
2853
2834
  alignItems: "center",
@@ -2858,38 +2839,38 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2858
2839
  fontWeight: o === "pills" ? 600 : 500,
2859
2840
  lineHeight: 1.35,
2860
2841
  whiteSpace: "nowrap",
2861
- paddingBlock: p ? "0.5em" : "0.125em",
2862
- paddingInline: p ? "0.75em" : o === "pills" ? "0.65em" : "0.5em",
2842
+ paddingBlock: f ? "0.5em" : "0.125em",
2843
+ paddingInline: f ? "0.75em" : o === "pills" ? "0.65em" : "0.5em",
2863
2844
  borderRadius: o === "pills" ? "999px" : c.xs,
2864
2845
  textAlign: "start",
2865
2846
  // On the rail the list is a fixed width, so a long name truncates. On the scrolling
2866
2847
  // row it must NOT: a pill that shrinks to "Gree…" defeats the scroll it was given —
2867
2848
  // the point is to reach the whole name, not to fit every name on screen at once.
2868
- ...p ? { minWidth: 0 } : { flexShrink: 0 },
2849
+ ...f ? { minWidth: 0 } : { flexShrink: 0 },
2869
2850
  // Entity text: a competition name comes from the API in whatever language it has.
2870
2851
  unicodeBidi: "plaintext",
2871
- ...p ? {
2852
+ ...f ? {
2872
2853
  width: "100%",
2873
2854
  border: "none",
2874
2855
  // The selected pill is the rail's ink at full strength, which inverts with it:
2875
2856
  // white on a dark club gradient, dark on a light one. `colors.surface` would be
2876
2857
  // a white pill on a white rail for a club like Real Madrid.
2877
- backgroundColor: g ? u : "transparent",
2878
- color: g ? S : d(u, 0.9),
2858
+ backgroundColor: p ? u : "transparent",
2859
+ color: p ? S : d(u, 0.9),
2879
2860
  "&:hover": {
2880
- backgroundColor: g ? u : d(u, 0.12)
2861
+ backgroundColor: p ? u : d(u, 0.12)
2881
2862
  }
2882
2863
  } : {
2883
- border: `1px solid ${g ? a.primary : a.border}`,
2884
- backgroundColor: g ? a.primary : "transparent",
2885
- color: g ? a.onPrimary : a.dim,
2864
+ border: `1px solid ${p ? a.primary : a.border}`,
2865
+ backgroundColor: p ? a.primary : "transparent",
2866
+ color: p ? a.onPrimary : a.dim,
2886
2867
  "&:hover": {
2887
- backgroundColor: g ? a.primary : d(a.text, 0.06)
2868
+ backgroundColor: p ? a.primary : d(a.text, 0.06)
2888
2869
  }
2889
2870
  }
2890
2871
  },
2891
2872
  children: [
2892
- p ? /* @__PURE__ */ s(
2873
+ f ? /* @__PURE__ */ s(
2893
2874
  m,
2894
2875
  {
2895
2876
  "aria-hidden": !0,
@@ -2898,7 +2879,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2898
2879
  height: "0.375em",
2899
2880
  borderRadius: "50%",
2900
2881
  flexShrink: 0,
2901
- backgroundColor: g ? a.primary : d(u, 0.45)
2882
+ backgroundColor: p ? a.primary : d(u, 0.45)
2902
2883
  }
2903
2884
  }
2904
2885
  ) : null,
@@ -2909,7 +2890,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2909
2890
  sx: {
2910
2891
  whiteSpace: "nowrap",
2911
2892
  // Truncation belongs to the rail alone — see the button's own note.
2912
- ...p ? { overflow: "hidden", textOverflow: "ellipsis" } : {}
2893
+ ...f ? { overflow: "hidden", textOverflow: "ellipsis" } : {}
2913
2894
  },
2914
2895
  children: y
2915
2896
  }
@@ -2920,15 +2901,15 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2920
2901
  return /* @__PURE__ */ s(
2921
2902
  X,
2922
2903
  {
2923
- title: y === f.name ? null : f.name,
2904
+ title: y === g.name ? null : g.name,
2924
2905
  children: x
2925
2906
  },
2926
- f.id
2907
+ g.id
2927
2908
  );
2928
2909
  })
2929
2910
  }
2930
2911
  );
2931
- }, Dr = ({
2912
+ }, Wr = ({
2932
2913
  fixture: e,
2933
2914
  competitor: t,
2934
2915
  language: n,
@@ -2938,7 +2919,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2938
2919
  athleteId: a,
2939
2920
  dense: l = !1
2940
2921
  }) => {
2941
- const { colors: c, fonts: d, radius: u, tint: S } = $(), p = Je(i, {
2922
+ const { colors: c, fonts: d, radius: u, tint: S } = $(), f = Je(i, {
2942
2923
  matchId: e.id,
2943
2924
  competitorId: t.id,
2944
2925
  opponentId: e.opponentId,
@@ -2946,7 +2927,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2946
2927
  seasonId: e.seasonId,
2947
2928
  date: _t(e.date),
2948
2929
  athleteId: a
2949
- }), f = e.isHome ? o("home") : o("away"), g = r ? [f, e.competitionName].filter(Boolean).join(" · ") : f, y = e.isHome ? e.ownScore : e.opponentScore, x = 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 } : {
2930
+ }), g = e.isHome ? o("home") : o("away"), p = r ? [g, e.competitionName].filter(Boolean).join(" · ") : g, y = e.isHome ? e.ownScore : e.opponentScore, x = 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 } : {
2950
2931
  // The score is the REGULATION one, so a result settled later says so.
2951
2932
  text: [
2952
2933
  `${k} ${y ?? "?"}-${x ?? "?"}`,
@@ -2957,8 +2938,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2957
2938
  return /* @__PURE__ */ w(
2958
2939
  ce,
2959
2940
  {
2960
- cta: p,
2961
- title: p.href ?? void 0,
2941
+ cta: f,
2942
+ title: f.href ?? void 0,
2962
2943
  sx: {
2963
2944
  display: "grid",
2964
2945
  gridTemplateColumns: l ? "2.125em 1.5em minmax(0, 1fr) auto" : "2.5em 1.75em minmax(0, 1fr) auto",
@@ -2975,7 +2956,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2975
2956
  children: [
2976
2957
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column" }, children: [
2977
2958
  /* @__PURE__ */ s(
2978
- A,
2959
+ T,
2979
2960
  {
2980
2961
  sx: {
2981
2962
  fontFamily: d.primary,
@@ -2984,11 +2965,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2984
2965
  lineHeight: 1.25,
2985
2966
  color: c.text
2986
2967
  },
2987
- children: gr(e.date, n) ?? ""
2968
+ children: pr(e.date, n) ?? ""
2988
2969
  }
2989
2970
  ),
2990
2971
  /* @__PURE__ */ s(
2991
- A,
2972
+ T,
2992
2973
  {
2993
2974
  sx: {
2994
2975
  fontFamily: d.secondary,
@@ -2996,7 +2977,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
2996
2977
  lineHeight: 1.3,
2997
2978
  color: c.dim
2998
2979
  },
2999
- children: yr(e.date, n) ?? ""
2980
+ children: fr(e.date, n) ?? ""
3000
2981
  }
3001
2982
  )
3002
2983
  ] }),
@@ -3018,7 +2999,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3018
2999
  ) : /* @__PURE__ */ s(m, { "aria-hidden": !0, sx: { width: l ? "1.5em" : "1.75em" } }),
3019
3000
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", minWidth: 0 }, children: [
3020
3001
  /* @__PURE__ */ s(
3021
- A,
3002
+ T,
3022
3003
  {
3023
3004
  sx: {
3024
3005
  fontFamily: d.primary,
@@ -3035,7 +3016,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3035
3016
  }
3036
3017
  ),
3037
3018
  /* @__PURE__ */ s(
3038
- A,
3019
+ T,
3039
3020
  {
3040
3021
  sx: {
3041
3022
  fontFamily: d.secondary,
@@ -3047,12 +3028,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3047
3028
  textOverflow: "ellipsis",
3048
3029
  unicodeBidi: "plaintext"
3049
3030
  },
3050
- children: g
3031
+ children: p
3051
3032
  }
3052
3033
  )
3053
3034
  ] }),
3054
3035
  /* @__PURE__ */ s(
3055
- A,
3036
+ T,
3056
3037
  {
3057
3038
  sx: {
3058
3039
  fontFamily: d.primary,
@@ -3081,12 +3062,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3081
3062
  athleteId: c,
3082
3063
  dense: d = !1
3083
3064
  }) => {
3084
- const { colors: u, fonts: S } = $(), [p, f] = H.useState(!1), [g, y] = H.useState(!1), x = (C, h, v, E) => {
3065
+ const { colors: u, fonts: S } = $(), [f, g] = H.useState(!1), [p, y] = H.useState(!1), x = (C, h, v, F) => {
3085
3066
  if (h.length === 0) return null;
3086
- const T = h.length > Sn, R = v || !T ? h : h.slice(0, Sn), D = v && T;
3067
+ const A = h.length > Sn, R = v || !A ? h : h.slice(0, Sn), D = v && A;
3087
3068
  return /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.375em" }, children: [
3088
3069
  /* @__PURE__ */ s(
3089
- A,
3070
+ T,
3090
3071
  {
3091
3072
  sx: {
3092
3073
  fontFamily: S.primary,
@@ -3118,7 +3099,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3118
3099
  } : {}
3119
3100
  },
3120
3101
  children: R.map((L) => /* @__PURE__ */ s(
3121
- Dr,
3102
+ Wr,
3122
3103
  {
3123
3104
  fixture: L,
3124
3105
  competitor: n,
@@ -3133,12 +3114,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3133
3114
  ))
3134
3115
  }
3135
3116
  ),
3136
- T ? /* @__PURE__ */ s(
3117
+ A ? /* @__PURE__ */ s(
3137
3118
  m,
3138
3119
  {
3139
3120
  component: "button",
3140
3121
  type: "button",
3141
- onClick: () => E(!v),
3122
+ onClick: () => F(!v),
3142
3123
  sx: {
3143
3124
  alignSelf: "center",
3144
3125
  border: "none",
@@ -3161,12 +3142,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3161
3142
  }, k = x(
3162
3143
  i("upcoming"),
3163
3144
  e,
3164
- p,
3165
- f
3145
+ f,
3146
+ g
3166
3147
  ), I = x(
3167
3148
  i("results"),
3168
3149
  t,
3169
- g,
3150
+ p,
3170
3151
  y
3171
3152
  );
3172
3153
  return !k && !I ? /* @__PURE__ */ s(we, { children: i("noData") }) : /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.75em" }, children: [
@@ -3176,7 +3157,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3176
3157
  }, ot = ({ children: e }) => {
3177
3158
  const { colors: t, fonts: n } = $();
3178
3159
  return e ? /* @__PURE__ */ s(
3179
- A,
3160
+ T,
3180
3161
  {
3181
3162
  sx: {
3182
3163
  fontFamily: n.secondary,
@@ -3188,7 +3169,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3188
3169
  children: e
3189
3170
  }
3190
3171
  ) : null;
3191
- }, Hr = ({
3172
+ }, Mr = ({
3192
3173
  title: e,
3193
3174
  align: t,
3194
3175
  trailing: n,
@@ -3221,7 +3202,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3221
3202
  },
3222
3203
  children: [
3223
3204
  /* @__PURE__ */ s(
3224
- A,
3205
+ T,
3225
3206
  {
3226
3207
  sx: {
3227
3208
  fontFamily: a.primary,
@@ -3292,7 +3273,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3292
3273
  },
3293
3274
  children: [
3294
3275
  e ? /* @__PURE__ */ s(
3295
- Hr,
3276
+ Mr,
3296
3277
  {
3297
3278
  title: e,
3298
3279
  align: t,
@@ -3303,7 +3284,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3303
3284
  n
3304
3285
  ]
3305
3286
  }
3306
- ), Or = /^(AMERICAN_FOOTBALL|BASKETBALL|RUGBY(_|$)|AUSTRALIAN_FOOTBALL)/, zr = (e) => Or.test((e ?? "").toUpperCase()), Wt = (e, t) => zr(e) ? {
3287
+ ), Dr = /^(AMERICAN_FOOTBALL|BASKETBALL|RUGBY(_|$)|AUSTRALIAN_FOOTBALL)/, Hr = (e) => Dr.test((e ?? "").toUpperCase()), Wt = (e, t) => Hr(e) ? {
3307
3288
  scored: t("pointsFor"),
3308
3289
  conceded: t("pointsAgainst"),
3309
3290
  forLong: t("pointsFor"),
@@ -3330,11 +3311,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3330
3311
  showGoalDifference: r = !0,
3331
3312
  sport: a
3332
3313
  }) => {
3333
- const { colors: l, fonts: c, tint: d } = $(), u = Wt(a, t), S = Ct(e.goalsFor, e.goalsAgainst), p = Math.max(e.goalsFor, e.goalsAgainst, 1), f = [
3314
+ const { colors: l, fonts: c, tint: d } = $(), u = Wt(a, t), S = Ct(e.goalsFor, e.goalsAgainst), f = Math.max(e.goalsFor, e.goalsAgainst, 1), g = [
3334
3315
  { key: "won", count: e.won, color: l.success, text: t("won") },
3335
3316
  { key: "drawn", count: e.drawn, color: l.dim, text: t("drawn") },
3336
3317
  { key: "lost", count: e.lost, color: l.danger, text: t("lost") }
3337
- ], g = [
3318
+ ], p = [
3338
3319
  {
3339
3320
  key: "scored",
3340
3321
  text: u.forShort,
@@ -3373,7 +3354,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3373
3354
  },
3374
3355
  children: [
3375
3356
  /* @__PURE__ */ s(
3376
- A,
3357
+ T,
3377
3358
  {
3378
3359
  sx: {
3379
3360
  fontFamily: c.primary,
@@ -3386,7 +3367,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3386
3367
  }
3387
3368
  ),
3388
3369
  i ? /* @__PURE__ */ s(
3389
- A,
3370
+ T,
3390
3371
  {
3391
3372
  sx: {
3392
3373
  fontFamily: c.secondary,
@@ -3396,7 +3377,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3396
3377
  color: l.dim,
3397
3378
  whiteSpace: "nowrap"
3398
3379
  },
3399
- children: `${Tt(It(e.won, e.played), n)} ${t("winRate")}`
3380
+ children: `${At(It(e.won, e.played), n)} ${t("winRate")}`
3400
3381
  }
3401
3382
  ) : null
3402
3383
  ]
@@ -3413,7 +3394,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3413
3394
  backgroundColor: l.inner,
3414
3395
  gap: "0.125em"
3415
3396
  },
3416
- children: f.map((y) => /* @__PURE__ */ s(
3397
+ children: g.map((y) => /* @__PURE__ */ s(
3417
3398
  X,
3418
3399
  {
3419
3400
  title: `${y.text} ${b(y.count, n)}`,
@@ -3432,7 +3413,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3432
3413
  ))
3433
3414
  }
3434
3415
  ),
3435
- /* @__PURE__ */ s(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.75em" }, children: f.map((y) => /* @__PURE__ */ w(
3416
+ /* @__PURE__ */ s(m, { sx: { display: "flex", flexWrap: "wrap", gap: "0.75em" }, children: g.map((y) => /* @__PURE__ */ w(
3436
3417
  m,
3437
3418
  {
3438
3419
  sx: {
@@ -3467,7 +3448,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3467
3448
  )) })
3468
3449
  ] }),
3469
3450
  /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.3125em" }, children: [
3470
- g.map((y) => /* @__PURE__ */ w(
3451
+ p.map((y) => /* @__PURE__ */ w(
3471
3452
  m,
3472
3453
  {
3473
3454
  sx: {
@@ -3478,7 +3459,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3478
3459
  },
3479
3460
  children: [
3480
3461
  /* @__PURE__ */ s(X, { title: y.title, children: /* @__PURE__ */ s(
3481
- A,
3462
+ T,
3482
3463
  {
3483
3464
  sx: {
3484
3465
  fontFamily: c.secondary,
@@ -3506,7 +3487,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3506
3487
  {
3507
3488
  sx: {
3508
3489
  height: "100%",
3509
- width: te(y.value, p),
3490
+ width: te(y.value, f),
3510
3491
  borderRadius: "999px",
3511
3492
  backgroundColor: y.color,
3512
3493
  transition: "width 400ms ease"
@@ -3516,7 +3497,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3516
3497
  }
3517
3498
  ),
3518
3499
  /* @__PURE__ */ s(
3519
- A,
3500
+ T,
3520
3501
  {
3521
3502
  sx: {
3522
3503
  fontFamily: c.primary,
@@ -3568,7 +3549,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3568
3549
  ]
3569
3550
  }
3570
3551
  );
3571
- }, Nr = ({
3552
+ }, Or = ({
3572
3553
  stats: e,
3573
3554
  label: t,
3574
3555
  language: n,
@@ -3597,7 +3578,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3597
3578
  },
3598
3579
  children: [
3599
3580
  /* @__PURE__ */ s(
3600
- A,
3581
+ T,
3601
3582
  {
3602
3583
  sx: {
3603
3584
  fontFamily: a.primary,
@@ -3612,7 +3593,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3612
3593
  }
3613
3594
  ),
3614
3595
  /* @__PURE__ */ s(
3615
- A,
3596
+ T,
3616
3597
  {
3617
3598
  sx: {
3618
3599
  fontFamily: a.primary,
@@ -3628,7 +3609,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3628
3609
  }
3629
3610
  ),
3630
3611
  /* @__PURE__ */ s(
3631
- A,
3612
+ T,
3632
3613
  {
3633
3614
  sx: {
3634
3615
  marginBlockStart: c ? "0.375em" : "0.25em",
@@ -3640,33 +3621,33 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3640
3621
  opacity: 0.85,
3641
3622
  whiteSpace: "nowrap"
3642
3623
  },
3643
- children: `${En(e.points, e.played)} ${t("perGame")}`
3624
+ children: `${Fn(e.points, e.played)} ${t("perGame")}`
3644
3625
  }
3645
3626
  )
3646
3627
  ]
3647
3628
  }
3648
3629
  );
3649
- }, Pr = ({
3630
+ }, zr = ({
3650
3631
  stats: e,
3651
3632
  label: t,
3652
3633
  language: n,
3653
3634
  showPoints: o = !0,
3654
3635
  sport: i
3655
3636
  }) => {
3656
- const { colors: r, fonts: a, radius: l } = $(), c = Wt(i, t), d = (g) => cn(
3657
- b(g(e.home), n),
3658
- b(g(e.away), n),
3637
+ const { colors: r, fonts: a, radius: l } = $(), c = Wt(i, t), d = (p) => cn(
3638
+ b(p(e.home), n),
3639
+ b(p(e.away), n),
3659
3640
  { homeShort: t("homeShort"), awayShort: t("awayShort") }
3660
- ), u = Ct(e.goalsFor, e.goalsAgainst), S = (g) => cn(ge(g(e.home)), ge(g(e.away)), {
3641
+ ), u = Ct(e.goalsFor, e.goalsAgainst), S = (p) => cn(ge(p(e.home)), ge(p(e.away)), {
3661
3642
  homeShort: t("homeShort"),
3662
3643
  awayShort: t("awayShort")
3663
- }), p = [
3644
+ }), f = [
3664
3645
  {
3665
3646
  key: "played",
3666
3647
  value: b(e.played, n),
3667
3648
  short: t("playedShort"),
3668
3649
  long: t("played"),
3669
- split: d((g) => g.won + g.drawn + g.lost),
3650
+ split: d((p) => p.won + p.drawn + p.lost),
3670
3651
  color: r.text
3671
3652
  },
3672
3653
  {
@@ -3674,7 +3655,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3674
3655
  value: b(e.won, n),
3675
3656
  short: t("wonShort"),
3676
3657
  long: t("won"),
3677
- split: d((g) => g.won),
3658
+ split: d((p) => p.won),
3678
3659
  color: r.success
3679
3660
  },
3680
3661
  {
@@ -3682,7 +3663,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3682
3663
  value: b(e.drawn, n),
3683
3664
  short: t("drawnShort"),
3684
3665
  long: t("drawn"),
3685
- split: d((g) => g.drawn),
3666
+ split: d((p) => p.drawn),
3686
3667
  color: r.text
3687
3668
  },
3688
3669
  {
@@ -3690,7 +3671,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3690
3671
  value: b(e.lost, n),
3691
3672
  short: t("lostShort"),
3692
3673
  long: t("lost"),
3693
- split: d((g) => g.lost),
3674
+ split: d((p) => p.lost),
3694
3675
  color: r.danger
3695
3676
  },
3696
3677
  {
@@ -3698,7 +3679,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3698
3679
  value: b(e.goalsFor, n),
3699
3680
  short: c.forShort,
3700
3681
  long: c.forLong,
3701
- split: d((g) => g.goalsFor),
3682
+ split: d((p) => p.goalsFor),
3702
3683
  color: r.text
3703
3684
  },
3704
3685
  {
@@ -3706,7 +3687,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3706
3687
  value: b(e.goalsAgainst, n),
3707
3688
  short: c.againstShort,
3708
3689
  long: c.againstLong,
3709
- split: d((g) => g.goalsAgainst),
3690
+ split: d((p) => p.goalsAgainst),
3710
3691
  color: r.text
3711
3692
  },
3712
3693
  {
@@ -3714,7 +3695,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3714
3695
  value: ge(u),
3715
3696
  short: c.differenceShort,
3716
3697
  long: c.difference,
3717
- split: S((g) => g.goalsFor - g.goalsAgainst),
3698
+ split: S((p) => p.goalsFor - p.goalsAgainst),
3718
3699
  color: r.text,
3719
3700
  /** GD is the one signed cell, so it is the one that needs a bidi isolate. */
3720
3701
  isolate: !0
@@ -3725,11 +3706,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3725
3706
  value: b(e.points, n),
3726
3707
  short: t("pointsShort"),
3727
3708
  long: t("points"),
3728
- split: S((g) => g.points),
3709
+ split: S((p) => p.points),
3729
3710
  color: r.text
3730
3711
  }
3731
3712
  ] : []
3732
- ], f = [
3713
+ ], g = [
3733
3714
  { key: "won", count: e.won, color: r.success, text: t("won") },
3734
3715
  { key: "drawn", count: e.drawn, color: r.dim, text: t("drawn") },
3735
3716
  { key: "lost", count: e.lost, color: r.danger, text: t("lost") }
@@ -3740,13 +3721,13 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3740
3721
  {
3741
3722
  sx: {
3742
3723
  display: "grid",
3743
- gridTemplateColumns: `repeat(${p.length}, minmax(0, 1fr))`,
3724
+ gridTemplateColumns: `repeat(${f.length}, minmax(0, 1fr))`,
3744
3725
  border: `1px solid ${r.border}`,
3745
3726
  borderRadius: l.sm,
3746
3727
  overflow: "hidden",
3747
3728
  backgroundColor: r.surface
3748
3729
  },
3749
- children: p.map((g, y) => /* @__PURE__ */ s(X, { title: `${g.long} — ${g.split}`, children: /* @__PURE__ */ w(
3730
+ children: f.map((p, y) => /* @__PURE__ */ s(X, { title: `${p.long} — ${p.split}`, children: /* @__PURE__ */ w(
3750
3731
  m,
3751
3732
  {
3752
3733
  sx: {
@@ -3763,7 +3744,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3763
3744
  },
3764
3745
  children: [
3765
3746
  /* @__PURE__ */ s(
3766
- A,
3747
+ T,
3767
3748
  {
3768
3749
  sx: {
3769
3750
  fontFamily: a.primary,
@@ -3771,15 +3752,15 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3771
3752
  fontWeight: 700,
3772
3753
  lineHeight: 1.2,
3773
3754
  letterSpacing: "-0.01em",
3774
- color: g.color,
3755
+ color: p.color,
3775
3756
  whiteSpace: "nowrap",
3776
3757
  fontVariantNumeric: "tabular-nums"
3777
3758
  },
3778
- children: g.isolate ? /* @__PURE__ */ s(oe, { children: g.value }) : g.value
3759
+ children: p.isolate ? /* @__PURE__ */ s(oe, { children: p.value }) : p.value
3779
3760
  }
3780
3761
  ),
3781
3762
  /* @__PURE__ */ s(
3782
- A,
3763
+ T,
3783
3764
  {
3784
3765
  sx: {
3785
3766
  fontFamily: a.secondary,
@@ -3791,12 +3772,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3791
3772
  color: r.dim,
3792
3773
  whiteSpace: "nowrap"
3793
3774
  },
3794
- children: g.short
3775
+ children: p.short
3795
3776
  }
3796
3777
  )
3797
3778
  ]
3798
3779
  }
3799
- ) }, g.key))
3780
+ ) }, p.key))
3800
3781
  }
3801
3782
  ),
3802
3783
  /* @__PURE__ */ w(m, { sx: { display: "flex", alignItems: "center", gap: "0.5em" }, children: [
@@ -3812,27 +3793,27 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3812
3793
  backgroundColor: r.inner,
3813
3794
  gap: "0.0625em"
3814
3795
  },
3815
- children: f.map((g) => /* @__PURE__ */ s(
3796
+ children: g.map((p) => /* @__PURE__ */ s(
3816
3797
  X,
3817
3798
  {
3818
- title: `${g.text} ${b(g.count, n)}`,
3799
+ title: `${p.text} ${b(p.count, n)}`,
3819
3800
  children: /* @__PURE__ */ s(
3820
3801
  m,
3821
3802
  {
3822
3803
  sx: {
3823
- width: te(g.count, e.played),
3824
- backgroundColor: g.color,
3804
+ width: te(p.count, e.played),
3805
+ backgroundColor: p.color,
3825
3806
  transition: "width 400ms ease"
3826
3807
  }
3827
3808
  }
3828
3809
  )
3829
3810
  },
3830
- g.key
3811
+ p.key
3831
3812
  ))
3832
3813
  }
3833
3814
  ),
3834
3815
  /* @__PURE__ */ s(
3835
- A,
3816
+ T,
3836
3817
  {
3837
3818
  sx: {
3838
3819
  fontFamily: a.secondary,
@@ -3844,21 +3825,21 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3844
3825
  fontVariantNumeric: "tabular-nums"
3845
3826
  },
3846
3827
  children: [
3847
- `${Tt(It(e.won, e.played), n)} ${t("won").toLowerCase()}`,
3848
- o ? `${En(e.points, e.played)} ${t("pointsShort").toLowerCase()}` : null
3828
+ `${At(It(e.won, e.played), n)} ${t("won").toLowerCase()}`,
3829
+ o ? `${Fn(e.points, e.played)} ${t("pointsShort").toLowerCase()}` : null
3849
3830
  ].filter(Boolean).join(" · ")
3850
3831
  }
3851
3832
  )
3852
3833
  ] })
3853
3834
  ] });
3854
- }, Ur = ({
3835
+ }, Nr = ({
3855
3836
  stats: e,
3856
3837
  teamPlayed: t,
3857
3838
  label: n,
3858
3839
  language: o,
3859
3840
  branding: i
3860
3841
  }) => {
3861
- const { colors: r, fonts: a, tint: l } = $(), c = de(i), d = oo(t, e.minutes), u = io(e), S = (f, g, y) => /* @__PURE__ */ w(
3842
+ const { colors: r, fonts: a, tint: l } = $(), c = de(i), d = oo(t, e.minutes), u = io(e), S = (g, p, y) => /* @__PURE__ */ w(
3862
3843
  m,
3863
3844
  {
3864
3845
  sx: {
@@ -3872,11 +3853,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3872
3853
  color: r.dim
3873
3854
  },
3874
3855
  children: [
3875
- /* @__PURE__ */ s(m, { component: "span", children: f }),
3876
- /* @__PURE__ */ s(m, { component: "span", sx: { color: r.text, fontWeight: 600 }, children: y === null ? g : n("ofTotal", { value: g, total: y }) })
3856
+ /* @__PURE__ */ s(m, { component: "span", children: g }),
3857
+ /* @__PURE__ */ s(m, { component: "span", sx: { color: r.text, fontWeight: 600 }, children: y === null ? p : n("ofTotal", { value: p, total: y }) })
3877
3858
  ]
3878
3859
  }
3879
- ), p = [
3860
+ ), f = [
3880
3861
  { key: "starts", value: e.starts, text: n("starts"), opacity: 1 },
3881
3862
  { key: "subs", value: u, text: n("subs"), opacity: 0.35 }
3882
3863
  ];
@@ -3976,7 +3957,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3976
3957
  color: r.dim
3977
3958
  },
3978
3959
  children: [
3979
- p.map((f) => /* @__PURE__ */ w(
3960
+ f.map((g) => /* @__PURE__ */ w(
3980
3961
  m,
3981
3962
  {
3982
3963
  sx: {
@@ -3994,7 +3975,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
3994
3975
  height: "0.5em",
3995
3976
  borderRadius: "50%",
3996
3977
  backgroundColor: c,
3997
- opacity: f.opacity
3978
+ opacity: g.opacity
3998
3979
  }
3999
3980
  }
4000
3981
  ),
@@ -4003,13 +3984,13 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4003
3984
  {
4004
3985
  component: "span",
4005
3986
  sx: { fontWeight: 700, color: r.text },
4006
- children: b(f.value, o)
3987
+ children: b(g.value, o)
4007
3988
  }
4008
3989
  ),
4009
- f.text
3990
+ g.text
4010
3991
  ]
4011
3992
  },
4012
- f.key
3993
+ g.key
4013
3994
  )),
4014
3995
  e.captain > 0 ? /* @__PURE__ */ w(
4015
3996
  m,
@@ -4040,7 +4021,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4040
4021
  ]
4041
4022
  }
4042
4023
  );
4043
- }, jr = ({
4024
+ }, Pr = ({
4044
4025
  stats: e,
4045
4026
  position: t,
4046
4027
  label: n,
@@ -4133,7 +4114,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4133
4114
  ]
4134
4115
  }
4135
4116
  );
4136
- }, Gr = ({
4117
+ }, Ur = ({
4137
4118
  stats: e,
4138
4119
  position: t,
4139
4120
  label: n,
@@ -4171,7 +4152,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4171
4152
  },
4172
4153
  children: [
4173
4154
  /* @__PURE__ */ s(
4174
- A,
4155
+ T,
4175
4156
  {
4176
4157
  sx: {
4177
4158
  fontFamily: l.primary,
@@ -4186,7 +4167,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4186
4167
  }
4187
4168
  ),
4188
4169
  /* @__PURE__ */ s(
4189
- A,
4170
+ T,
4190
4171
  {
4191
4172
  sx: {
4192
4173
  fontFamily: l.primary,
@@ -4203,7 +4184,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4203
4184
  }
4204
4185
  ),
4205
4186
  /* @__PURE__ */ s(
4206
- A,
4187
+ T,
4207
4188
  {
4208
4189
  sx: {
4209
4190
  marginBlockStart: d ? "0.375em" : "0.25em",
@@ -4221,14 +4202,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4221
4202
  ]
4222
4203
  }
4223
4204
  );
4224
- }, Vr = ({
4205
+ }, jr = ({
4225
4206
  stats: e,
4226
4207
  position: t,
4227
4208
  label: n,
4228
4209
  language: o,
4229
4210
  branding: i
4230
4211
  }) => {
4231
- const { colors: r, fonts: a, radius: l } = $(), c = de(i), d = t === "keeper", u = (p, f) => `${p}: ${b(f, o)}`, S = [
4212
+ const { colors: r, fonts: a, radius: l } = $(), c = de(i), d = t === "keeper", u = (f, g) => `${f}: ${b(g, o)}`, S = [
4232
4213
  {
4233
4214
  key: "apps",
4234
4215
  value: b(e.apps, o),
@@ -4303,10 +4284,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4303
4284
  overflow: "hidden",
4304
4285
  backgroundColor: r.surface
4305
4286
  },
4306
- children: S.map((p, f) => /* @__PURE__ */ s(
4287
+ children: S.map((f, g) => /* @__PURE__ */ s(
4307
4288
  X,
4308
4289
  {
4309
- title: p.detail ? `${p.long} — ${p.detail}` : p.long,
4290
+ title: f.detail ? `${f.long} — ${f.detail}` : f.long,
4310
4291
  children: /* @__PURE__ */ w(
4311
4292
  m,
4312
4293
  {
@@ -4320,11 +4301,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4320
4301
  minWidth: 0,
4321
4302
  cursor: "help",
4322
4303
  // A logical border, so the dividers fall between cells in both directions.
4323
- ...f > 0 ? { borderInlineStart: `1px solid ${r.border}` } : {}
4304
+ ...g > 0 ? { borderInlineStart: `1px solid ${r.border}` } : {}
4324
4305
  },
4325
4306
  children: [
4326
4307
  /* @__PURE__ */ s(
4327
- A,
4308
+ T,
4328
4309
  {
4329
4310
  sx: {
4330
4311
  fontFamily: a.primary,
@@ -4332,15 +4313,15 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4332
4313
  fontWeight: 700,
4333
4314
  lineHeight: 1.2,
4334
4315
  letterSpacing: "-0.01em",
4335
- color: p.color,
4316
+ color: f.color,
4336
4317
  whiteSpace: "nowrap",
4337
4318
  fontVariantNumeric: "tabular-nums"
4338
4319
  },
4339
- children: p.value
4320
+ children: f.value
4340
4321
  }
4341
4322
  ),
4342
4323
  /* @__PURE__ */ s(
4343
- A,
4324
+ T,
4344
4325
  {
4345
4326
  sx: {
4346
4327
  fontFamily: a.secondary,
@@ -4355,14 +4336,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4355
4336
  textOverflow: "ellipsis",
4356
4337
  maxWidth: "100%"
4357
4338
  },
4358
- children: p.short
4339
+ children: f.short
4359
4340
  }
4360
4341
  )
4361
4342
  ]
4362
4343
  }
4363
4344
  )
4364
4345
  },
4365
- p.key
4346
+ f.key
4366
4347
  ))
4367
4348
  }
4368
4349
  );
@@ -4374,9 +4355,9 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4374
4355
  label: i,
4375
4356
  children: r
4376
4357
  }) => {
4377
- const { colors: a, fonts: l } = $(), c = e.isHome ? t.name : e.opponentName, d = e.isHome ? e.opponentName : t.name, u = 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 = Sr(e.date, n), y = [
4358
+ const { colors: a, fonts: l } = $(), c = e.isHome ? t.name : e.opponentName, d = e.isHome ? e.opponentName : t.name, u = e.isHome ? t.image : e.opponentLogo, S = e.isHome ? e.opponentLogo : t.image, f = e.isHome ? e.ownScore : e.opponentScore, g = e.isHome ? e.opponentScore : e.ownScore, p = yr(e.date, n), y = [
4378
4359
  o ? e.competitionName : null,
4379
- g,
4360
+ p,
4380
4361
  // Where the hover has room to say it in full, it does — the strip only had space for "OT".
4381
4362
  e.afterOvertime ? i("afterOvertime") : null
4382
4363
  ].filter(Boolean).join(" • "), x = (C, h) => C ? /* @__PURE__ */ s(
@@ -4409,7 +4390,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4409
4390
  children: [
4410
4391
  x(h, C),
4411
4392
  /* @__PURE__ */ s(
4412
- A,
4393
+ T,
4413
4394
  {
4414
4395
  sx: {
4415
4396
  fontFamily: l.primary,
@@ -4430,7 +4411,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4430
4411
  }
4431
4412
  ), I = /* @__PURE__ */ w(m, { sx: { display: "flex", flexDirection: "column", gap: "0.375em" }, children: [
4432
4413
  y ? /* @__PURE__ */ s(
4433
- A,
4414
+ T,
4434
4415
  {
4435
4416
  sx: {
4436
4417
  fontFamily: l.secondary,
@@ -4456,7 +4437,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4456
4437
  children: [
4457
4438
  k(c, u, "start"),
4458
4439
  /* @__PURE__ */ s(
4459
- A,
4440
+ T,
4460
4441
  {
4461
4442
  sx: {
4462
4443
  fontFamily: l.primary,
@@ -4467,7 +4448,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4467
4448
  whiteSpace: "nowrap",
4468
4449
  fontVariantNumeric: "tabular-nums"
4469
4450
  },
4470
- children: /* @__PURE__ */ s(oe, { children: `${p ?? "?"} – ${f ?? "?"}` })
4451
+ children: /* @__PURE__ */ s(oe, { children: `${f ?? "?"} – ${g ?? "?"}` })
4471
4452
  }
4472
4453
  ),
4473
4454
  k(d, S, "end")
@@ -4489,7 +4470,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4489
4470
  dotSize: d = "1.625em",
4490
4471
  athleteId: u
4491
4472
  }) => {
4492
- const { colors: S, fonts: p, radius: f, tint: g } = $(), y = c ?? S.onPrimary;
4473
+ const { colors: S, fonts: f, radius: g, tint: p } = $(), y = c ?? S.onPrimary;
4493
4474
  if (e.length === 0) return null;
4494
4475
  const x = (C) => C === "W" ? S.success : C === "L" ? S.danger : S.dim, k = (C) => {
4495
4476
  const h = {
@@ -4498,7 +4479,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4498
4479
  color: S.onPrimary,
4499
4480
  "aria-hidden": !0
4500
4481
  };
4501
- return C === "W" ? /* @__PURE__ */ s(ni, { ...h }) : C === "L" ? /* @__PURE__ */ s(Jo, { ...h }) : /* @__PURE__ */ s(oi, { ...h });
4482
+ return C === "W" ? /* @__PURE__ */ s(oi, { ...h }) : C === "L" ? /* @__PURE__ */ s(Qo, { ...h }) : /* @__PURE__ */ s(ii, { ...h });
4502
4483
  }, I = (C) => {
4503
4484
  const h = Je(r, {
4504
4485
  matchId: C.id,
@@ -4531,7 +4512,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4531
4512
  alignItems: "center",
4532
4513
  justifyContent: "center",
4533
4514
  backgroundColor: x(C.outcome),
4534
- ...l ? { boxShadow: `0 0 0 0.125em ${g(y, 0.25)}` } : {}
4515
+ ...l ? { boxShadow: `0 0 0 0.125em ${p(y, 0.25)}` } : {}
4535
4516
  },
4536
4517
  hoverSx: { opacity: 0.85 },
4537
4518
  children: k(C.outcome)
@@ -4549,7 +4530,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4549
4530
  borderRadius: "0.25em",
4550
4531
  backgroundColor: l ? y : S.text,
4551
4532
  color: l ? x(C.outcome) : S.surface,
4552
- fontFamily: p.primary,
4533
+ fontFamily: f.primary,
4553
4534
  fontSize: "0.5em",
4554
4535
  fontWeight: 700,
4555
4536
  lineHeight: 1.4,
@@ -4580,16 +4561,16 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4580
4561
  alignItems: "center",
4581
4562
  paddingBlock: "0.5em",
4582
4563
  paddingInline: "0.25em",
4583
- borderRadius: f.sm,
4564
+ borderRadius: g.sm,
4584
4565
  backgroundColor: S.inner
4585
4566
  },
4586
- hoverSx: { backgroundColor: g(S.text, 0.1) },
4567
+ hoverSx: { backgroundColor: p(S.text, 0.1) },
4587
4568
  children: [
4588
4569
  /* @__PURE__ */ s(
4589
- A,
4570
+ T,
4590
4571
  {
4591
4572
  sx: {
4592
- fontFamily: p.primary,
4573
+ fontFamily: f.primary,
4593
4574
  fontSize: "0.875em",
4594
4575
  fontWeight: 700,
4595
4576
  lineHeight: 1.45,
@@ -4600,10 +4581,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4600
4581
  }
4601
4582
  ),
4602
4583
  /* @__PURE__ */ w(
4603
- A,
4584
+ T,
4604
4585
  {
4605
4586
  sx: {
4606
- fontFamily: p.secondary,
4587
+ fontFamily: f.secondary,
4607
4588
  fontSize: "0.625em",
4608
4589
  lineHeight: 1.4,
4609
4590
  color: S.dim,
@@ -4655,7 +4636,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4655
4636
  children: e.map(I)
4656
4637
  }
4657
4638
  );
4658
- }, Kr = 3e3, Yr = ({
4639
+ }, Gr = 3e3, Vr = ({
4659
4640
  odds: e,
4660
4641
  config: t,
4661
4642
  label: n,
@@ -4663,22 +4644,22 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4663
4644
  compact: i = !1,
4664
4645
  dense: r = !1
4665
4646
  }) => {
4666
- const { colors: a, fonts: l, radius: c } = $(), d = i ? "1.625em" : r ? "1.75em" : "2em", u = ((t == null ? void 0 : t.mode) ?? (i ? "flash" : "default")) === "flash", S = (t == null ? void 0 : t.flashInterval) ?? Kr, [p, f] = H.useState(!1);
4647
+ const { colors: a, fonts: l, radius: c } = $(), d = i ? "1.625em" : r ? "1.75em" : "2em", u = ((t == null ? void 0 : t.mode) ?? (i ? "flash" : "default")) === "flash", S = (t == null ? void 0 : t.flashInterval) ?? Gr, [f, g] = H.useState(!1);
4667
4648
  H.useEffect(() => {
4668
4649
  if (!u) return;
4669
4650
  const k = setInterval(
4670
- () => f((I) => !I),
4651
+ () => g((I) => !I),
4671
4652
  S
4672
4653
  );
4673
4654
  return () => clearInterval(k);
4674
4655
  }, [u, S]);
4675
- const g = e.operator, y = (k) => g ? /* @__PURE__ */ w(
4656
+ const p = e.operator, y = (k) => p ? /* @__PURE__ */ w(
4676
4657
  m,
4677
4658
  {
4678
- component: g.url ? "a" : "div",
4679
- href: g.url ?? void 0,
4680
- target: g.url ? "_blank" : void 0,
4681
- rel: g.url ? "noopener noreferrer" : void 0,
4659
+ component: p.url ? "a" : "div",
4660
+ href: p.url ?? void 0,
4661
+ target: p.url ? "_blank" : void 0,
4662
+ rel: p.url ? "noopener noreferrer" : void 0,
4682
4663
  sx: {
4683
4664
  display: "flex",
4684
4665
  alignItems: "center",
@@ -4693,24 +4674,24 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4693
4674
  whiteSpace: "nowrap",
4694
4675
  // The operator's brand colours are DATA, not theme — the point of the box is that it is
4695
4676
  // recognisably theirs.
4696
- backgroundColor: g.backgroundColor ?? a.inner,
4697
- color: g.textColor ?? a.text,
4677
+ backgroundColor: p.backgroundColor ?? a.inner,
4678
+ color: p.textColor ?? a.text,
4698
4679
  // The chip is a logo, not a reading surface: 7em of a narrow column is a third of the
4699
4680
  // strip spent on it, which is what left "30.00 ↑" crowding its own border.
4700
4681
  ...k ? { flex: 1 } : { maxWidth: r ? "5.25em" : "7em", width: "100%" }
4701
4682
  },
4702
4683
  children: [
4703
- g.logo ? /* @__PURE__ */ s(
4684
+ p.logo ? /* @__PURE__ */ s(
4704
4685
  m,
4705
4686
  {
4706
4687
  component: "img",
4707
- src: g.logo,
4708
- alt: g.name,
4688
+ src: p.logo,
4689
+ alt: p.name,
4709
4690
  loading: "lazy",
4710
4691
  sx: { height: "100%", width: "auto", objectFit: "contain" }
4711
4692
  }
4712
4693
  ) : /* @__PURE__ */ s(
4713
- A,
4694
+ T,
4714
4695
  {
4715
4696
  sx: {
4716
4697
  fontFamily: l.primary,
@@ -4721,11 +4702,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4721
4702
  whiteSpace: "nowrap",
4722
4703
  unicodeBidi: "plaintext"
4723
4704
  },
4724
- children: g.name
4705
+ children: p.name
4725
4706
  }
4726
4707
  ),
4727
4708
  i && u ? /* @__PURE__ */ s(
4728
- A,
4709
+ T,
4729
4710
  {
4730
4711
  sx: {
4731
4712
  fontFamily: l.secondary,
@@ -4829,13 +4810,13 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4829
4810
  ...i ? { height: "2.5em" } : {},
4830
4811
  borderBlockStart: `1px solid ${a.border}`
4831
4812
  },
4832
- children: u ? p && g ? y(!0) : e.values.map(x) : /* @__PURE__ */ w(xe, { children: [
4813
+ children: u ? f && p ? y(!0) : e.values.map(x) : /* @__PURE__ */ w(xe, { children: [
4833
4814
  y(!1),
4834
4815
  e.values.map(x)
4835
4816
  ] })
4836
4817
  }
4837
4818
  );
4838
- }, qr = ({
4819
+ }, Kr = ({
4839
4820
  sizeEm: e = 0.375,
4840
4821
  color: t
4841
4822
  }) => {
@@ -4876,12 +4857,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4876
4857
  whiteSpace: "nowrap"
4877
4858
  },
4878
4859
  children: [
4879
- /* @__PURE__ */ s(qr, { sizeEm: 0.42, color: "#fff" }),
4860
+ /* @__PURE__ */ s(Kr, { sizeEm: 0.42, color: "#fff" }),
4880
4861
  e
4881
4862
  ]
4882
4863
  }
4883
4864
  );
4884
- }, Xr = ({
4865
+ }, Yr = ({
4885
4866
  fixture: e,
4886
4867
  competitor: t,
4887
4868
  language: n,
@@ -4894,21 +4875,21 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4894
4875
  onAddToBetslip: d,
4895
4876
  liveMinute: u,
4896
4877
  showCompetition: S,
4897
- athleteId: p,
4898
- compact: f = !1,
4899
- dense: g = !1
4878
+ athleteId: f,
4879
+ compact: g = !1,
4880
+ dense: p = !1
4900
4881
  }) => {
4901
- const { colors: y, fonts: x, radius: k, tint: I } = $(), { t: C } = Se("common"), h = e.isHome ? t.name : e.opponentName, v = e.isHome ? e.opponentName : t.name, E = e.isHome ? t.image : e.opponentLogo, T = e.isHome ? e.opponentLogo : t.image, R = e.isHome ? e.ownScore : e.opponentScore, D = e.isHome ? e.opponentScore : e.ownScore, L = e.status === "upcoming", W = e.status === "live", U = Gn(e.date, n), B = [xr(e.date, n), S ? e.competitionName : null].filter(Boolean).join(" • "), O = L ? U ?? "" : `${R ?? 0} – ${D ?? 0}`, K = u !== null ? C("eventCard.minute", { n: u }) : o("live"), j = L ? o("kickOff") : e.afterOvertime ? (
4882
+ const { colors: y, fonts: x, radius: k, tint: I } = $(), { t: C } = Se("common"), h = e.isHome ? t.name : e.opponentName, v = e.isHome ? e.opponentName : t.name, F = e.isHome ? t.image : e.opponentLogo, A = e.isHome ? e.opponentLogo : t.image, R = e.isHome ? e.ownScore : e.opponentScore, D = e.isHome ? e.opponentScore : e.ownScore, L = e.status === "upcoming", W = e.status === "live", U = Gn(e.date, n), B = [gr(e.date, n), S ? e.competitionName : null].filter(Boolean).join(" • "), O = L ? U ?? "" : `${R ?? 0} – ${D ?? 0}`, K = u !== null ? C("eventCard.minute", { n: u }) : o("live"), j = L ? o("kickOff") : e.afterOvertime ? (
4902
4883
  // The scoreline above is the regulation one; "Full time" would be claiming it was the end.
4903
4884
  o("afterOvertime")
4904
- ) : o("fullTime"), J = e.outcome === "W" ? { text: o("win"), color: y.success } : e.outcome === "L" ? { text: o("loss"), color: y.danger } : e.outcome === "D" ? { text: o("draw"), color: y.dim } : null, F = Je(a, {
4885
+ ) : o("fullTime"), J = e.outcome === "W" ? { text: o("win"), color: y.success } : e.outcome === "L" ? { text: o("loss"), color: y.danger } : e.outcome === "D" ? { text: o("draw"), color: y.dim } : null, E = Je(a, {
4905
4886
  matchId: e.id,
4906
4887
  competitorId: t.id,
4907
4888
  opponentId: e.opponentId,
4908
4889
  competitionId: e.competitionId,
4909
4890
  seasonId: e.seasonId,
4910
4891
  date: _t(e.date),
4911
- athleteId: p
4892
+ athleteId: f
4912
4893
  }), re = (ue, q, P) => ue ? /* @__PURE__ */ s(
4913
4894
  m,
4914
4895
  {
@@ -4926,7 +4907,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4926
4907
  }
4927
4908
  }
4928
4909
  ) : /* @__PURE__ */ s(m, { sx: { width: P, height: P, flexShrink: 0 } }), se = (ue, q) => /* @__PURE__ */ s(
4929
- A,
4910
+ T,
4930
4911
  {
4931
4912
  sx: {
4932
4913
  fontFamily: x.primary,
@@ -4953,11 +4934,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4953
4934
  overflow: "hidden",
4954
4935
  background: to(i, r),
4955
4936
  border: `1px solid ${y.border}`,
4956
- borderRadius: f ? k.md : k.lg,
4937
+ borderRadius: g ? k.md : k.lg,
4957
4938
  display: "flex",
4958
4939
  flexDirection: "column",
4959
4940
  transition: "border-color 150ms ease, box-shadow 150ms ease",
4960
- ...F.interactive ? {
4941
+ ...E.interactive ? {
4961
4942
  "&:hover": {
4962
4943
  borderColor: y.dim,
4963
4944
  boxShadow: `0 0.25em 0.75em -0.25em ${I(y.text, 0.18)}`
@@ -4968,10 +4949,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4968
4949
  /* @__PURE__ */ s(
4969
4950
  ce,
4970
4951
  {
4971
- cta: F,
4952
+ cta: E,
4972
4953
  sx: { display: "block", width: "100%" },
4973
- title: F.href ?? void 0,
4974
- children: f ? /* @__PURE__ */ w(
4954
+ title: E.href ?? void 0,
4955
+ children: g ? /* @__PURE__ */ w(
4975
4956
  m,
4976
4957
  {
4977
4958
  sx: {
@@ -4993,7 +4974,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
4993
4974
  minWidth: 0
4994
4975
  },
4995
4976
  children: [
4996
- re(E, h, "1.75em"),
4977
+ re(F, h, "1.75em"),
4997
4978
  se(h, "start")
4998
4979
  ]
4999
4980
  }
@@ -5011,7 +4992,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5011
4992
  children: [
5012
4993
  W ? /* @__PURE__ */ s(Cn, { label: K }) : null,
5013
4994
  /* @__PURE__ */ s(
5014
- A,
4995
+ T,
5015
4996
  {
5016
4997
  sx: {
5017
4998
  fontFamily: x.primary,
@@ -5027,7 +5008,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5027
5008
  }
5028
5009
  ),
5029
5010
  W ? null : /* @__PURE__ */ s(
5030
- A,
5011
+ T,
5031
5012
  {
5032
5013
  sx: {
5033
5014
  fontFamily: x.secondary,
@@ -5055,7 +5036,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5055
5036
  flexDirection: "row-reverse"
5056
5037
  },
5057
5038
  children: [
5058
- re(T, v, "1.75em"),
5039
+ re(A, v, "1.75em"),
5059
5040
  se(v, "end")
5060
5041
  ]
5061
5042
  }
@@ -5086,7 +5067,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5086
5067
  },
5087
5068
  children: [
5088
5069
  /* @__PURE__ */ s(
5089
- A,
5070
+ T,
5090
5071
  {
5091
5072
  sx: {
5092
5073
  fontFamily: x.secondary,
@@ -5149,7 +5130,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5149
5130
  minWidth: 0
5150
5131
  },
5151
5132
  children: [
5152
- re(E, h, "3.25em"),
5133
+ re(F, h, "3.25em"),
5153
5134
  se(h, "center")
5154
5135
  ]
5155
5136
  }
@@ -5172,7 +5153,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5172
5153
  children: [
5173
5154
  W ? /* @__PURE__ */ s(Cn, { label: K }) : null,
5174
5155
  /* @__PURE__ */ s(
5175
- A,
5156
+ T,
5176
5157
  {
5177
5158
  sx: {
5178
5159
  fontFamily: x.primary,
@@ -5190,7 +5171,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5190
5171
  }
5191
5172
  ),
5192
5173
  W ? null : /* @__PURE__ */ s(
5193
- A,
5174
+ T,
5194
5175
  {
5195
5176
  sx: {
5196
5177
  fontFamily: x.secondary,
@@ -5219,7 +5200,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5219
5200
  minWidth: 0
5220
5201
  },
5221
5202
  children: [
5222
- re(T, v, "3.25em"),
5203
+ re(A, v, "3.25em"),
5223
5204
  se(v, "center")
5224
5205
  ]
5225
5206
  }
@@ -5233,20 +5214,20 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5233
5214
  }
5234
5215
  ),
5235
5216
  l && L ? /* @__PURE__ */ s(
5236
- Yr,
5217
+ Vr,
5237
5218
  {
5238
5219
  odds: l,
5239
5220
  config: c,
5240
5221
  label: o,
5241
5222
  onAddToBetslip: d,
5242
- compact: f,
5243
- dense: g
5223
+ compact: g,
5224
+ dense: p
5244
5225
  }
5245
5226
  ) : null
5246
5227
  ]
5247
5228
  }
5248
5229
  );
5249
- }, Jr = ({ side: e, onSelect: t, labels: n }) => {
5230
+ }, qr = ({ side: e, onSelect: t, labels: n }) => {
5250
5231
  const { colors: o, fonts: i, radius: r } = $(), a = (l, c) => {
5251
5232
  const d = e === l;
5252
5233
  return /* @__PURE__ */ s(
@@ -5291,17 +5272,17 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5291
5272
  ]
5292
5273
  }
5293
5274
  );
5294
- }, Qr = (e, t) => t === "stats" ? e.showStats : t === "form" ? e.showForm : e.showFeaturedMatch && !!e.featured, Mt = (e, t, n) => {
5275
+ }, Xr = (e, t) => t === "stats" ? e.showStats : t === "form" ? e.showForm : e.showFeaturedMatch && !!e.featured, Mt = (e, t, n) => {
5295
5276
  const { spacing: o } = $();
5296
- if (t.sections.find((r) => Qr(e, r)) === n)
5277
+ if (t.sections.find((r) => Xr(e, r)) === n)
5297
5278
  return t.compact ? o.sm : o.md;
5298
- }, Zr = ({ props: e, options: t }) => {
5279
+ }, Jr = ({ props: e, options: t }) => {
5299
5280
  var c;
5300
5281
  const { athleteStats: n, label: o, language: i, teamPlayed: r, position: a } = e;
5301
5282
  if (!n) return /* @__PURE__ */ s(we, { children: o("noData") });
5302
5283
  if (t.athleteStatsLayout === "row")
5303
5284
  return /* @__PURE__ */ s(m, { sx: { marginBlockStart: "0.5em" }, children: /* @__PURE__ */ s(
5304
- Vr,
5285
+ jr,
5305
5286
  {
5306
5287
  stats: n,
5307
5288
  position: a,
@@ -5311,7 +5292,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5311
5292
  }
5312
5293
  ) });
5313
5294
  const l = /* @__PURE__ */ s(
5314
- Ur,
5295
+ Nr,
5315
5296
  {
5316
5297
  stats: n,
5317
5298
  teamPlayed: r,
@@ -5340,7 +5321,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5340
5321
  },
5341
5322
  children: [
5342
5323
  /* @__PURE__ */ s(
5343
- Gr,
5324
+ Ur,
5344
5325
  {
5345
5326
  stats: n,
5346
5327
  position: a,
@@ -5356,7 +5337,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5356
5337
  }
5357
5338
  ) : l,
5358
5339
  /* @__PURE__ */ s(
5359
- jr,
5340
+ Pr,
5360
5341
  {
5361
5342
  stats: n,
5362
5343
  position: a,
@@ -5367,11 +5348,11 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5367
5348
  ]
5368
5349
  }
5369
5350
  );
5370
- }, es = ({ props: e, options: t }) => {
5351
+ }, Qr = ({ props: e, options: t }) => {
5371
5352
  var r;
5372
5353
  const { stats: n, label: o, language: i } = e;
5373
5354
  return n ? t.statsLayout === "row" ? /* @__PURE__ */ s(
5374
- Pr,
5355
+ zr,
5375
5356
  {
5376
5357
  stats: n,
5377
5358
  label: o,
@@ -5392,7 +5373,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5392
5373
  },
5393
5374
  children: [
5394
5375
  e.showPoints ? /* @__PURE__ */ s(
5395
- Nr,
5376
+ Or,
5396
5377
  {
5397
5378
  stats: n,
5398
5379
  label: o,
@@ -5449,14 +5430,14 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5449
5430
  paddingInline: t.paddingInline,
5450
5431
  paddingBlockEnd: t.paddingBlockEnd,
5451
5432
  paddingBlockStart: n,
5452
- children: e.kind === "ATHLETE" ? /* @__PURE__ */ s(Zr, { props: e, options: t }) : /* @__PURE__ */ s(es, { props: e, options: t })
5433
+ children: e.kind === "ATHLETE" ? /* @__PURE__ */ s(Jr, { props: e, options: t }) : /* @__PURE__ */ s(Qr, { props: e, options: t })
5453
5434
  }
5454
5435
  );
5455
5436
  }, Dt = ({ props: e, options: t }) => {
5456
- var f;
5437
+ var g;
5457
5438
  const { colors: n, fonts: o } = $(), i = Mt(e, t, "form"), { form: r, label: a, language: l, titleAlign: c } = e;
5458
5439
  if (!e.showForm) return null;
5459
- const d = t.formAppearance === "tiles", u = e.kind === "ATHLETE", S = e.streak > 1 && !(u && d), p = r.length === 0 ? "" : [
5440
+ const d = t.formAppearance === "tiles", u = e.kind === "ATHLETE", S = e.streak > 1 && !(u && d), f = r.length === 0 ? "" : [
5460
5441
  u && d ? a("teamResults", { team: e.fixtureCompetitor.name }) : null,
5461
5442
  S ? `${a("wonShort")}${e.streak}` : null,
5462
5443
  d ? a("formOrder") : null
@@ -5466,8 +5447,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5466
5447
  {
5467
5448
  title: a("formTitle"),
5468
5449
  align: c,
5469
- trailing: p ? /* @__PURE__ */ s(
5470
- A,
5450
+ trailing: f ? /* @__PURE__ */ s(
5451
+ T,
5471
5452
  {
5472
5453
  sx: {
5473
5454
  fontFamily: o.secondary,
@@ -5483,7 +5464,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5483
5464
  ...S ? { cursor: "help" } : {}
5484
5465
  },
5485
5466
  title: S ? a("streak", { count: e.streak }) : void 0,
5486
- children: p
5467
+ children: f
5487
5468
  }
5488
5469
  ) : null,
5489
5470
  paddingInline: t.paddingInline,
@@ -5497,7 +5478,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5497
5478
  language: l,
5498
5479
  label: a,
5499
5480
  appearance: t.formAppearance,
5500
- cta: (f = e.formConfig) == null ? void 0 : f.matchCTA,
5481
+ cta: (g = e.formConfig) == null ? void 0 : g.matchCTA,
5501
5482
  athleteId: e.linkAthleteId,
5502
5483
  showCompetition: e.selectedCompetitionId === N,
5503
5484
  dotSize: t.compact ? "1.375em" : "1.625em"
@@ -5516,7 +5497,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5516
5497
  title: l,
5517
5498
  align: a,
5518
5499
  trailing: e.showFeaturedToggle ? /* @__PURE__ */ s(
5519
- Jr,
5500
+ qr,
5520
5501
  {
5521
5502
  side: e.featuredSide,
5522
5503
  onSelect: e.onSelectFeaturedSide,
@@ -5527,7 +5508,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5527
5508
  paddingBlockEnd: t.paddingBlockEnd,
5528
5509
  paddingBlockStart: n,
5529
5510
  children: /* @__PURE__ */ s(
5530
- Xr,
5511
+ Yr,
5531
5512
  {
5532
5513
  fixture: o,
5533
5514
  competitor: e.fixtureCompetitor,
@@ -5548,7 +5529,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5548
5529
  )
5549
5530
  }
5550
5531
  );
5551
- }, ts = (e) => {
5532
+ }, Zr = (e) => {
5552
5533
  var S;
5553
5534
  const t = $(), { colors: n, spacing: o, tint: i } = t, { label: r, competitor: a } = e, l = {
5554
5535
  sections: ["stats", "form", "featured"],
@@ -5683,7 +5664,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5683
5664
  },
5684
5665
  children: [
5685
5666
  /* @__PURE__ */ s(
5686
- A,
5667
+ T,
5687
5668
  {
5688
5669
  sx: {
5689
5670
  fontFamily: o.primary,
@@ -5699,7 +5680,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5699
5680
  }
5700
5681
  ),
5701
5682
  /* @__PURE__ */ s(
5702
- A,
5683
+ T,
5703
5684
  {
5704
5685
  sx: {
5705
5686
  fontFamily: o.secondary,
@@ -5722,7 +5703,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5722
5703
  },
5723
5704
  l.key
5724
5705
  )) });
5725
- }, ns = ({
5706
+ }, es = ({
5726
5707
  stats: e,
5727
5708
  label: t,
5728
5709
  language: n,
@@ -5741,7 +5722,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5741
5722
  ] : [],
5742
5723
  {
5743
5724
  key: "winRate",
5744
- value: Tt(It(e.won, e.played), n),
5725
+ value: At(It(e.won, e.played), n),
5745
5726
  caption: t("winRate")
5746
5727
  },
5747
5728
  {
@@ -5792,8 +5773,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5792
5773
  }
5793
5774
  ].slice(0, r);
5794
5775
  return /* @__PURE__ */ s(ao, { tiles: c, color: i, size: a });
5795
- }, os = (e) => {
5796
- var p, f;
5776
+ }, ts = (e) => {
5777
+ var f, g;
5797
5778
  const t = $(), { spacing: n } = t, { label: o, competitor: i } = e, r = {
5798
5779
  branding: e.brandingColors,
5799
5780
  hasBranding: e.hasBranding,
@@ -5826,7 +5807,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5826
5807
  color: l
5827
5808
  }
5828
5809
  ) : e.stats && /* @__PURE__ */ s(
5829
- ns,
5810
+ es,
5830
5811
  {
5831
5812
  stats: e.stats,
5832
5813
  label: o,
@@ -5880,7 +5861,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5880
5861
  },
5881
5862
  children: [
5882
5863
  /* @__PURE__ */ s(
5883
- A,
5864
+ T,
5884
5865
  {
5885
5866
  sx: {
5886
5867
  fontFamily: t.fonts.primary,
@@ -5915,7 +5896,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5915
5896
  language: e.language,
5916
5897
  label: o,
5917
5898
  appearance: "dots",
5918
- cta: (p = e.formConfig) == null ? void 0 : p.matchCTA,
5899
+ cta: (f = e.formConfig) == null ? void 0 : f.matchCTA,
5919
5900
  athleteId: e.linkAthleteId,
5920
5901
  showCompetition: e.selectedCompetitionId === N,
5921
5902
  onBrand: !0,
@@ -5923,7 +5904,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5923
5904
  }
5924
5905
  ),
5925
5906
  e.streak > 1 ? /* @__PURE__ */ s(
5926
- A,
5907
+ T,
5927
5908
  {
5928
5909
  sx: {
5929
5910
  marginInlineStart: "auto",
@@ -5975,7 +5956,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
5975
5956
  competitor: e.fixtureCompetitor,
5976
5957
  language: e.language,
5977
5958
  label: o,
5978
- cta: (f = e.fixturesConfig) == null ? void 0 : f.matchCTA,
5959
+ cta: (g = e.fixturesConfig) == null ? void 0 : g.matchCTA,
5979
5960
  showCompetition: d,
5980
5961
  athleteId: e.linkAthleteId,
5981
5962
  align: e.titleAlign
@@ -6006,7 +5987,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6006
5987
  }
6007
5988
  ) : null
6008
5989
  ] });
6009
- }, is = "30em", rs = (e) => {
5990
+ }, ns = "30em", os = (e) => {
6010
5991
  var d;
6011
5992
  const t = $(), { colors: n, spacing: o } = t, { label: i, competitor: r } = e, a = {
6012
5993
  sections: ["stats", "form", "featured"],
@@ -6031,7 +6012,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6031
6012
  display: "flex",
6032
6013
  flexDirection: "column",
6033
6014
  gap: "0.375em",
6034
- maxHeight: is,
6015
+ maxHeight: ns,
6035
6016
  overflowY: "auto",
6036
6017
  overscrollBehavior: "contain"
6037
6018
  },
@@ -6104,8 +6085,8 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6104
6085
  e.secondaryView === "seasonStats" ? /* @__PURE__ */ s(ot, { children: e.seasonCaption }) : void 0
6105
6086
  ) : null
6106
6087
  ] });
6107
- }, ss = "35em", as = (e) => {
6108
- var p;
6088
+ }, is = "35em", rs = (e) => {
6089
+ var f;
6109
6090
  const t = $(), { colors: n, spacing: o } = t, { label: i, competitor: r } = e, a = Ye(), l = {
6110
6091
  branding: e.brandingColors,
6111
6092
  hasBranding: e.hasBranding,
@@ -6124,7 +6105,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6124
6105
  pointsTileSize: "md",
6125
6106
  // The rail already owns the switcher.
6126
6107
  switcherOnTitleRow: !1
6127
- }, d = Qe(l, e.headerBackgroundGradient), u = e.selectedCompetitionId === N, S = (f, g) => /* @__PURE__ */ w(
6108
+ }, d = Qe(l, e.headerBackgroundGradient), u = e.selectedCompetitionId === N, S = (g, p) => /* @__PURE__ */ w(
6128
6109
  m,
6129
6110
  {
6130
6111
  sx: {
@@ -6133,7 +6114,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6133
6114
  display: "flex",
6134
6115
  flexDirection: "column",
6135
6116
  gap: "0.375em",
6136
- maxHeight: a ? "none" : ss,
6117
+ maxHeight: a ? "none" : is,
6137
6118
  overflowY: a ? "visible" : "auto",
6138
6119
  overscrollBehavior: "contain"
6139
6120
  },
@@ -6144,10 +6125,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6144
6125
  label: i("back"),
6145
6126
  onClick: e.onBackToOverview,
6146
6127
  sticky: !a,
6147
- trailing: g
6128
+ trailing: p
6148
6129
  }
6149
6130
  ),
6150
- f
6131
+ g
6151
6132
  ]
6152
6133
  }
6153
6134
  );
@@ -6261,7 +6242,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6261
6242
  competitor: e.fixtureCompetitor,
6262
6243
  language: e.language,
6263
6244
  label: i,
6264
- cta: (p = e.fixturesConfig) == null ? void 0 : p.matchCTA,
6245
+ cta: (f = e.fixturesConfig) == null ? void 0 : f.matchCTA,
6265
6246
  showCompetition: u,
6266
6247
  athleteId: e.linkAthleteId,
6267
6248
  align: e.titleAlign,
@@ -6279,7 +6260,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6279
6260
  ]
6280
6261
  }
6281
6262
  ) });
6282
- }, ls = ({
6263
+ }, ss = ({
6283
6264
  entityId: e,
6284
6265
  sdk: t,
6285
6266
  language: n,
@@ -6292,18 +6273,18 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6292
6273
  showCompetitionSwitcher: d = !0,
6293
6274
  showStats: u = !0,
6294
6275
  stats: S,
6295
- showForm: p = !0,
6296
- form: f,
6297
- showFeaturedMatch: g = !0,
6276
+ showForm: f = !0,
6277
+ form: g,
6278
+ showFeaturedMatch: p = !0,
6298
6279
  featuredMatch: y,
6299
- showOdds: x = !0,
6280
+ showOdds: x = !1,
6300
6281
  odds: k,
6301
6282
  showFixtures: I = !0,
6302
6283
  fixtures: C,
6303
6284
  showSquad: h = !0,
6304
6285
  squad: v,
6305
- showSeasonStats: E = !0,
6306
- hasBranding: T = !0,
6286
+ showSeasonStats: F = !0,
6287
+ hasBranding: A = !0,
6307
6288
  headerBackgroundGradient: R,
6308
6289
  liveRefresh: D = !0,
6309
6290
  refreshInterval: L = 3e4,
@@ -6312,26 +6293,26 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6312
6293
  }) => {
6313
6294
  var Yt, qt, Xt, Jt, Qt, Zt, en, tn, nn, on;
6314
6295
  const Y = $(), { colors: B, fonts: O, spacing: K } = Y, j = Un(W), J = jn(), {
6315
- data: F,
6296
+ data: E,
6316
6297
  loading: re,
6317
6298
  error: se,
6318
6299
  notFound: ue
6319
- } = pi(t, e, n), q = (F == null ? void 0 : F.kind) === "TEAM", P = (F == null ? void 0 : F.kind) === "ATHLETE", Ht = {
6300
+ } = ui(t, e, n), q = (E == null ? void 0 : E.kind) === "TEAM", P = (E == null ? void 0 : E.kind) === "ATHLETE", Ht = {
6320
6301
  withCountry: i,
6321
6302
  liveRefresh: D,
6322
6303
  refreshInterval: L,
6323
- sport: (F == null ? void 0 : F.sport) ?? null
6324
- }, Le = Ni(
6304
+ sport: (E == null ? void 0 : E.sport) ?? null
6305
+ }, Le = Oi(
6325
6306
  t,
6326
- q ? (F == null ? void 0 : F.id) ?? null : null,
6327
- (F == null ? void 0 : F.countryId) ?? null,
6307
+ q ? (E == null ? void 0 : E.id) ?? null : null,
6308
+ (E == null ? void 0 : E.countryId) ?? null,
6328
6309
  n,
6329
6310
  j,
6330
6311
  { enabled: !!q, ...Ht }
6331
- ), Be = Zi(
6312
+ ), Be = Ji(
6332
6313
  t,
6333
- P ? (F == null ? void 0 : F.id) ?? null : null,
6334
- (F == null ? void 0 : F.countryId) ?? null,
6314
+ P ? (E == null ? void 0 : E.id) ?? null : null,
6315
+ (E == null ? void 0 : E.countryId) ?? null,
6335
6316
  n,
6336
6317
  j,
6337
6318
  { enabled: !!P, ...Ht }
@@ -6362,34 +6343,34 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6362
6343
  () => ct.filter(ke),
6363
6344
  [ct, ke]
6364
6345
  ), Ie = Re && ke(Re) ? Re : null, ut = H.useMemo(
6365
- () => Ce.slice(0, Ci(f == null ? void 0 : f.maxItems)),
6366
- [Ce, f == null ? void 0 : f.maxItems]
6346
+ () => Ce.slice(0, wi(g == null ? void 0 : g.maxItems)),
6347
+ [Ce, g == null ? void 0 : g.maxItems]
6367
6348
  ), po = H.useMemo(
6368
- () => xi(
6349
+ () => gi(
6369
6350
  ut.map((V) => V.outcome).filter((V) => V !== null)
6370
6351
  ),
6371
6352
  [ut]
6372
- ), { fixture: pe, side: fo } = bi({
6353
+ ), { fixture: pe, side: fo } = Ii({
6373
6354
  live: Ie,
6374
6355
  last: Ce[0],
6375
6356
  next: mt[0],
6376
6357
  preferred: uo
6377
- }), go = ur(
6358
+ }), go = dr(
6378
6359
  t,
6379
6360
  (Ie == null ? void 0 : Ie.id) ?? null,
6380
- ((Jt = F == null ? void 0 : F.sport) == null ? void 0 : Jt.toLowerCase()) ?? null,
6361
+ ((Jt = E == null ? void 0 : E.sport) == null ? void 0 : Jt.toLowerCase()) ?? null,
6381
6362
  { enabled: !!Ie, refreshInterval: L }
6382
- ), yo = rr(t, (pe == null ? void 0 : pe.id) ?? null, {
6363
+ ), yo = or(t, (pe == null ? void 0 : pe.id) ?? null, {
6383
6364
  enabled: x && !!pe && pe.status === "upcoming",
6384
6365
  // Decides whether the fixture is priced three ways or two — see `marketOrder`.
6385
- sport: (F == null ? void 0 : F.sport) ?? null,
6366
+ sport: (E == null ? void 0 : E.sport) ?? null,
6386
6367
  pollingIntervalMs: k == null ? void 0 : k.pollingInterval,
6387
6368
  operators: k == null ? void 0 : k.operators,
6388
6369
  affiliateId: k == null ? void 0 : k.affiliateId,
6389
6370
  affiliateIds: k == null ? void 0 : k.affiliateIds
6390
6371
  }), ht = (z == null ? void 0 : z.statsByCompetition.get(ee)) ?? null, De = ht && ht.played > 0 ? ht : null, xo = (_ == null ? void 0 : _.statsByCompetition.get(ee)) ?? null, pt = dt.find(
6391
6372
  (V) => V.id === ee
6392
- ), jt = P ? (_ == null ? void 0 : _.teamPlayedByCompetition.get(ee)) ?? 0 : (De == null ? void 0 : De.played) ?? 0, { players: So, loading: wo } = er(
6373
+ ), jt = P ? (_ == null ? void 0 : _.teamPlayedByCompetition.get(ee)) ?? 0 : (De == null ? void 0 : De.played) ?? 0, { players: So, loading: wo } = Qi(
6393
6374
  t,
6394
6375
  (z == null ? void 0 : z.athleteStats) ?? [],
6395
6376
  ee,
@@ -6401,7 +6382,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6401
6382
  return /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(In, { my: 6 }) });
6402
6383
  if (se || mo && !st)
6403
6384
  return /* @__PURE__ */ s(le, { children: /* @__PURE__ */ s(
6404
- A,
6385
+ T,
6405
6386
  {
6406
6387
  sx: {
6407
6388
  fontFamily: O.secondary,
@@ -6413,9 +6394,9 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6413
6394
  children: j("loadFailed")
6414
6395
  }
6415
6396
  ) });
6416
- if (ue || !F) return /* @__PURE__ */ s(fr, { labels: W });
6417
- const Q = Ot ? { ...F, country: Ot } : F, ft = zn(F.position), Gt = vt(F.dateOfBirth), Vt = (P ? [
6418
- F.position ? J(ft) : null,
6397
+ if (ue || !E) return /* @__PURE__ */ s(hr, { labels: W });
6398
+ const Q = Ot ? { ...E, country: Ot } : E, ft = zn(E.position), Gt = vt(E.dateOfBirth), Vt = (P ? [
6399
+ E.position ? J(ft) : null,
6419
6400
  ((Qt = _ == null ? void 0 : _.team) == null ? void 0 : Qt.name) ?? null,
6420
6401
  Gt !== null ? j("years", { count: Gt }) : null,
6421
6402
  i ? ((Zt = Q.country) == null ? void 0 : Zt.name) ?? null : null
@@ -6423,12 +6404,12 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6423
6404
  // A national side IS its country, so naming it again reads as "Spain — Spain".
6424
6405
  i && ((en = Q.country) == null ? void 0 : en.name) !== Q.name ? ((tn = Q.country) == null ? void 0 : tn.name) ?? null : null,
6425
6406
  Q.founded ? j("established", { year: Q.founded }) : null
6426
- ]).filter((V) => !!V), He = P ? !!(_ != null && _.teamId) : !!q, ko = (P ? _ == null ? void 0 : _.team : null) ?? Q, Kt = P ? ((nn = _ == null ? void 0 : _.team) == null ? void 0 : nn.branding) ?? null : Q.branding, Co = P ? "seasonStats" : "squad", Io = { branding: Kt, hasBranding: T, styles: Y }, Oe = {
6407
+ ]).filter((V) => !!V), He = P ? !!(_ != null && _.teamId) : !!q, ko = (P ? _ == null ? void 0 : _.team : null) ?? Q, Kt = P ? ((nn = _ == null ? void 0 : _.team) == null ? void 0 : nn.branding) ?? null : Q.branding, Co = P ? "seasonStats" : "squad", Io = { branding: Kt, hasBranding: A, styles: Y }, Oe = {
6427
6408
  competitor: Q,
6428
- kind: F.kind,
6409
+ kind: E.kind,
6429
6410
  fixtureCompetitor: ko,
6430
6411
  crestBadgeUrl: P ? ((on = _ == null ? void 0 : _.team) == null ? void 0 : on.image) ?? null : null,
6431
- linkAthleteId: P ? F.id : null,
6412
+ linkAthleteId: P ? E.id : null,
6432
6413
  brandingColors: Kt,
6433
6414
  subtitle: Vt.length > 0 ? Vt.join(P ? " · " : " • ") : null,
6434
6415
  language: n,
@@ -6460,7 +6441,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6460
6441
  secondaryView: Co,
6461
6442
  secondaryLabel: j(P ? "seasonStats" : "squad"),
6462
6443
  secondaryPanel: P ? /* @__PURE__ */ s(
6463
- Rr,
6444
+ Lr,
6464
6445
  {
6465
6446
  competitions: dt,
6466
6447
  statsByCompetition: (_ == null ? void 0 : _.statsByCompetition) ?? /* @__PURE__ */ new Map(),
@@ -6470,7 +6451,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6470
6451
  dense: o === "compact" || o === "horizontal"
6471
6452
  }
6472
6453
  ) : /* @__PURE__ */ s(
6473
- Lr,
6454
+ Er,
6474
6455
  {
6475
6456
  players: So,
6476
6457
  loading: wo,
@@ -6486,26 +6467,26 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6486
6467
  showStats: u && st,
6487
6468
  showPoints: !(pt != null && pt.cup),
6488
6469
  showCompetitionSwitcher: d && st,
6489
- showForm: p && He,
6490
- showFeaturedMatch: g && He,
6470
+ showForm: f && He,
6471
+ showFeaturedMatch: p && He,
6491
6472
  showOdds: x && He,
6492
6473
  showFixtures: I && He,
6493
- showSecondary: P ? E && !!_ : h && !!q,
6474
+ showSecondary: P ? F && !!_ : h && !!q,
6494
6475
  statsConfig: S,
6495
- formConfig: f,
6476
+ formConfig: g,
6496
6477
  matchConfig: y,
6497
6478
  fixturesConfig: C,
6498
6479
  squadConfig: v,
6499
6480
  oddsConfig: k,
6500
6481
  onAddToBetslip: U,
6501
- hasBranding: T,
6482
+ hasBranding: A,
6502
6483
  headerBackgroundGradient: R,
6503
6484
  defaultImagePlaceholderUrl: r,
6504
6485
  headerLayout: a,
6505
6486
  ctaLayout: l
6506
6487
  };
6507
- return o === "hero" ? /* @__PURE__ */ s(os, { ...Oe }) : o === "compact" ? /* @__PURE__ */ s(rs, { ...Oe }) : o === "horizontal" ? /* @__PURE__ */ s(as, { ...Oe }) : /* @__PURE__ */ s(ts, { ...Oe });
6508
- }, cs = (e) => {
6488
+ return o === "hero" ? /* @__PURE__ */ s(ts, { ...Oe }) : o === "compact" ? /* @__PURE__ */ s(os, { ...Oe }) : o === "horizontal" ? /* @__PURE__ */ s(rs, { ...Oe }) : /* @__PURE__ */ s(Zr, { ...Oe });
6489
+ }, as = (e) => {
6509
6490
  const [t, n] = H.useState(!1), [o, i] = H.useState(!1), r = Bo(e.language), a = H.useRef(
6510
6491
  `competitor-card-shadow-root-${Math.random().toString(36).substring(2, 11)}`
6511
6492
  ), l = H.useRef(null), c = H.useRef(null), d = H.useRef(null), [u, S] = H.useState(null);
@@ -6527,15 +6508,15 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6527
6508
  n(!1);
6528
6509
  };
6529
6510
  }, [r]);
6530
- const p = e.themeOptions, f = /* @__PURE__ */ s(m, { ref: l, sx: { height: "100%", display: "block" } }), g = t && o && d.current && u ? Po(
6511
+ const f = e.themeOptions, g = /* @__PURE__ */ s(m, { ref: l, sx: { height: "100%", display: "block" } }), p = t && o && d.current && u ? Po(
6531
6512
  // Keyed on the cache, not on `direction`: it must change in the same render that adopts
6532
6513
  // the new cache, or CssVarsProvider writes its CSS variables into the outgoing cache and
6533
6514
  // never repeats.
6534
6515
  /* @__PURE__ */ s(Do, { value: u, children: /* @__PURE__ */ s(Ho, { containerRef: l, children: /* @__PURE__ */ s(
6535
6516
  Oo,
6536
6517
  {
6537
- customTheme: p,
6538
- mode: p == null ? void 0 : p.mode,
6518
+ customTheme: f,
6519
+ mode: f == null ? void 0 : f.mode,
6539
6520
  shadowRootElement: d.current,
6540
6521
  direction: r,
6541
6522
  children: /* @__PURE__ */ w(
@@ -6548,7 +6529,7 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6548
6529
  direction: r,
6549
6530
  children: [
6550
6531
  /* @__PURE__ */ s(
6551
- Qo,
6532
+ Zo,
6552
6533
  {
6553
6534
  styles: {
6554
6535
  "@keyframes cc-pulse": {
@@ -6567,10 +6548,10 @@ const wr = /\{(\w+)\}/g, kr = (e, t) => e.replace(wr, (n, o) => {
6567
6548
  d.current
6568
6549
  ) : null;
6569
6550
  return /* @__PURE__ */ w(xe, { children: [
6570
- f,
6571
- g
6551
+ g,
6552
+ p
6572
6553
  ] });
6573
- }, ds = (e) => /* @__PURE__ */ s(cs, { ...e, children: /* @__PURE__ */ s(ls, { ...e }) }), Es = ds;
6554
+ }, ls = (e) => /* @__PURE__ */ s(as, { ...e, children: /* @__PURE__ */ s(ss, { ...e }) }), _s = ls;
6574
6555
  export {
6575
- Es as CompetitorCard
6556
+ _s as CompetitorCard
6576
6557
  };