!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="45fb3d91-c04a-488b-aa07-4b78ed2ccb10",e._sentryDebugIdIdentifier="sentry-dbid-45fb3d91-c04a-488b-aa07-4b78ed2ccb10")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547,5729,7887,8056],{1139:(e,t,a)=>{var s=a(68988),n=a(20648);e.exports=function(e,t){return n(e,s(t,2))}},1689:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(6029),n=a(36729),r=a(56591);a(14632);var o=a(55729),l=a(41735),i=a(77552),c=a(72555);let d=[100,100,100,100,100],u=(e,t)=>{switch(e){case c.eM.AVG:return{fill:t.colors.surface.s2,stroke:t.colors.sofaSingles.value};case c.eM.BASE:return{fill:t.colors.secondary.highlight,stroke:t.colors.secondary.default};case c.eM.COMPARE:return{fill:t.colors.primary.highlight,stroke:t.colors.primary.default};case c.eM.COMPARE_SELF:return{fill:t.colors.surface.s2,stroke:t.colors.neutral.default};default:return{fill:"transparent",stroke:"transparent"}}},p=(e,t,a)=>{let s=e.selectAll("polygon").data(t,(e,t)=>t.toString());s.enter().append("polygon").merge(s).transition("Pentagon transition").ease(n.wq).duration(400).attr("points",e=>{let t=e?(0,c.mc)(e).map(e=>e.value):d;return(0,c.cS)((0,c.tO)(t))}).attr("opacity",e=>+(null!==e)).attr("fill",e=>a.getColorFromVar(u(null==e?void 0:e.__type,a).fill)).attr("stroke",e=>a.getColorFromVar(u(null==e?void 0:e.__type,a).stroke))};function m(e){let{data:t,onGraphClick:a}=e,n=(0,o.useContext)(l.ThemeContext),[c,d]=(0,o.useState)(),u=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(c)p(c,t,n);else{let e=u.current;d((0,r.A)(e).append("g").on("click",a))}},[c,t]),(0,s.jsx)(i.A,{ref:u})}},3898:(e,t,a)=>{"use strict";a.d(t,{dq:()=>s.default,OE:()=>i,mw:()=>d.TeamMedia,in:()=>c});var s=a(5884),n=a(6029),r=a(21377),o=a(45860),l=a(17239);function i(e){let{playerId:t}=e,{data:a}=(0,o.Ay)(r.qvj.media(t));return a?(0,n.jsx)(l.$,{highlights:a.media}):null}function c(e){let{tournamentId:t,...a}=e,{data:s}=(0,o.Ay)(r.yKR.media(t));return s&&s.media.length?(0,n.jsx)(l.$,{highlights:s.media,mb:"md",...a}):null}a(55342),a(8056);var d=a(35729)},5884:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>l});var s=a(6029),n=a(21377),r=a(45860),o=a(17239);function l(e){let{eventId:t,hideTitle:a,isInWidget:l}=e,{data:i}=(0,r.Ay)(n.bnp.eventHighlights(t));return i?(0,s.jsx)(o.$,{highlights:i.highlights,hideTitle:a,isInWidget:l}):null}},5961:(e,t,a)=>{"use strict";a.d(t,{IJ:()=>m});let s=(e,t)=>t?{0:e?"var(--graphics-terrain-footballLineups)":"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"}:{0:"#f8d496",.05:"#fee644",.25:"#ff9000",.4:"#fc6800",.6:"#f00800",.75:"#cc0600",.85:"#b00400",.99:"#940000",1:"#780000"},n=e=>e?{MAX_POINT_VALUE:6,WIDTH:160,HEIGHT:100}:{MAX_POINT_VALUE:9,WIDTH:500,HEIGHT:363};function r(e,t){let a=[];for(let s=0;s2&&void 0!==arguments[2]?arguments[2]:10,s=[],n=1/a;for(let a=0;a<=e;a+=n)s.push(Math.exp(-a*a/(2*t*t)));return s},l=(e,t,a,s)=>Math.sqrt(Math.pow(a-e,2)+Math.pow(s-t,2)),i=(e,t,a)=>{let{width:s,height:n,influenceRadius:o,precisionLevel:i=10}=a,c=r(s,n);for(let a=0;a{let{height:s,width:n,gradientScaleFactor:r,gradientRange:o}=a,l=document.createElement("canvas");l.height=s,l.width=n;let i=l.getContext("2d");if(!i)throw Error("No heatmap canvas context found");let c=i.getImageData(0,0,n,s),d=c.data;for(let a=0;a{let s=Math.round(t),n=Math.round(a),r=Math.round(e);return rs?r:s:n},u=(e,t)=>{let{width:a,height:s,isFlipped:n=!1,pointMaximum:o=100,widthScaleFactor:l=1.6,heightScaleFactor:i=1,pointValue:c=1}=t,u=r(a,s);return e.forEach(e=>{let t=n?o-e.x:e.x,r=n?e.y:o-e.y,p=d(t*l,0,a-1),m=d(r*i,0,s-1);u[p][m]+=c*(e.count||1)}),u},p=(e,t,a,l,d)=>{let{containerId:p,isAway:m=!1,width:h,height:g,numberOfMatches:f,shootMapType:y=1,precisionLevel:x=10,isTransparentBackground:_}=a,{HEIGHT:v,WIDTH:j,MAX_POINT_VALUE:b}=n(e),k=document.getElementById(p);if(!k)throw Error("No DOM container element for HeatMap provided");let w=e?function(e){let t=14;return e&&e>1&&(t=Math.round((1-Math.pow(e/38,.28))*10+4)),t}(f||1):function(e){let t=20;return e>82?Math.round((1-Math.pow(e/110,.1))*8+12):Math.round((1-Math.pow(e/82,.1))*8+12)}(f||1),T=e?u(t,{isFlipped:m,width:j,height:v}):function(e,t,a,s){let n=r(a+1,s+1);return e.forEach(e=>{let{x:a,y:s,made:r,missed:o}=e;switch(t){case 1:n[a- -250][s- -40]+=r+o;break;case 2:n[a- -250][s- -40]+=r;break;default:n[a- -250][s- -40]+=o}}),n}(t,y,j,v);!e&&f&&f>5&&function(e,t,a,s){let n,r,o,l,i,c;for(l=0;l<=100;l++){for(n=0,r=0,o=0,i=2;i<=10;i++)++o,n+=s[l][80-i],r+=s[l][80+i];for(c=0;c<=2;c++)s[l][e+c]=(n+r)/(2*o),s[l][e-c]=(n+r)/(2*o)}}(80,2,0,T);let C=function(e,t,a,n,r){let o=document.createElement("canvas");o.width=1,o.height=1e3;let l=o.getContext("2d");if(!l)throw Error("No color gradient context for heatmap found");let i=l.createLinearGradient(0,0,1,1e3),c=s(r,a);return Object.keys(c).forEach(e=>{let a=c[e],s=Number(e);n&&s<.2?i.addColorStop(s,t.setAlpha(a,s+.2)):i.addColorStop(s,t.setAlpha(a,1))}),l.fillStyle=i,l.fillRect(0,0,1,e),l.getImageData(0,0,1,e).data}(1e3,l,e,_,d),S=c(i(T,o(w,w/3,x),{width:j,height:v,influenceRadius:w,precisionLevel:x}),C,{height:v,width:j,gradientScaleFactor:1e3/b,gradientRange:1e3}),A=document.createElement("canvas");A.height=g,A.width=h;let M=A.getContext("2d");if(!M)throw Error("Heatmap canvas context not found");M.drawImage(S,0,0,h,g),k.innerHTML="",k.appendChild(A)};function m(e,t,a,s){try{p(!0,e,t,a,s)}catch(e){console.error("In render football heatmap",e)}}},6675:(e,t,a)=>{"use strict";a.d(t,{T2:()=>m,N9:()=>g,Od:()=>x,Vd:()=>y}),a(72653);var s=a(6029),n=a(21377),r=a(4967),o=a(95669),l=a.n(o),i=a(947),c=a(58771),d=a(26331),u=a(73088),p=a(97047);function m(e){var t;let{manager:a}=e,o=(0,i.A)(),m=(0,d.A)(),h=a.dateOfBirthTimestamp,g={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:o.formatMessage({id:"sport.".concat(a.sport.slug)}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(m,"eventList",{sport:a.sport.slug}).route)},{"@type":"ListItem",position:2,name:a.name}]},f={"@context":"https://schema.org","@type":"Person",name:a.name,birthDate:h?r.pp(h).toISOString():void 0,url:"https://www.sofascore.com/manager/".concat(a.slug,"/").concat(a.id),nationality:a.country&&{"@type":"Country",name:a.country.name},affiliation:(null==(t=a.teams)?void 0:t[0])&&{"@type":"Organization",name:a.teams[0].name,sameAs:(0,p.WG)(a.teams[0].id,m)}};return(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,c.QQ)(g)}),",",(0,s.jsx)("script",{...(0,c.QQ)(f)}),","]})}var h=a(84942);function g(e){let{player:t}=e,a=(0,i.A)(),o=(0,d.A)(),m=(0,h.s)(t,o),g=t.dateOfBirthTimestamp,f=t.team.primaryUniqueTournament,y=1,x=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.team.sport.slug)}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"eventList",{sport:t.team.sport.slug}).route)}];f&&(x.push({"@type":"ListItem",position:++y,name:a.formatMessage({id:f.category.slug}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"eventList.category",{sport:f.category.sport.slug,category:f.category.slug}).route)}),x.push({"@type":"ListItem",position:++y,name:f.name,item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"uniqueTournament",{sport:f.category.sport.slug,category:f.category.slug,tournament:f.slug,id:f.id}).route)})),x.push({"@type":"ListItem",position:++y,name:m});let _={"@context":"https://schema.org","@type":"Person",name:m,birthDate:g?r.pp(g).toISOString():void 0,url:"https://www.sofascore.com/player/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name},affiliation:t.team&&{"@type":"Organization",name:t.team.name,sameAs:(0,p.WG)(t.team.id,o)},gender:(0,p.o_)(t.team.gender),height:t.height?"".concat(t.height," cm"):void 0,sameAs:(0,p.YL)(t.id,o)};return(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:x})}),",",(0,s.jsx)("script",{...(0,c.QQ)(_)}),","]})}var f=a(85905);function y(e){var t,a,o,m;let{team:g,players:y}=e,x=(0,i.A)(),_=(0,d.A)(),v=(0,h.s)(g,_);if(g.type!==n.YVh.Regular)return null;let j=g.sport,b=(null==(t=g.venue)?void 0:t.country.alpha2)||g.country.alpha2||g.category.alpha2||(null==(a=g.primaryUniqueTournament)?void 0:a.category.alpha2),k=(0,p.o_)(g.gender),w=g.foundationDateTimestamp,T=g.primaryUniqueTournament,C=1,S=[{"@type":"ListItem",position:1,name:x.formatMessage({id:"sport.".concat(j.slug)}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(_,"eventList",{sport:j.slug}).route)},{"@type":"ListItem",position:++C,name:x.formatMessage({id:g.category.slug}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(_,"eventList.category",{sport:g.category.sport.slug,category:g.category.slug}).route)}];T&&S.push({"@type":"ListItem",position:++C,name:T.name,item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(_,"uniqueTournament",{sport:T.category.sport.slug,category:T.category.slug,tournament:T.slug,id:T.id}).route)}),S.push({"@type":"ListItem",position:++C,name:v});let A={"@context":"https://schema.org","@type":"SportsTeam",name:g.fullName,sport:g.sport.name,gender:k,foundingDate:w?r.pp(w).toISOString():void 0,logo:n.cWY.image(g.id),url:"https://www.sofascore.com/team/".concat(g.sport.slug,"/").concat(g.slug,"/").concat(g.id),sameAs:(0,p.WG)(g.id,_)};return g.manager&&(A.coach={"@type":"Person",name:g.manager.name}),y&&(0,f.TE)(j,y)&&(A.athlete=y.players.map(e=>{let t=e.player,a=t.dateOfBirthTimestamp;return{"@type":"Person",name:(0,h.s)(t,_),birthDate:a?r.pp(a).toISOString():void 0,nationality:t.country&&{"@type":"Country",name:t.country.name},gender:k,sameAs:(0,p.YL)(t.id,_)}})),b&&(A.address={"@type":"PostalAddress",addressCountry:(0,p.lE)(b),addressLocality:null==(m=g.venue)||null==(o=m.city)?void 0:o.name}),T&&(A.memberOf={"@type":"SportsOrganization",name:T.name,sameAs:(0,p._z)(T.id,_)}),(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:S})}),",",(0,s.jsx)("script",{...(0,c.QQ)(A)}),","]})}function x(e){let{referee:t}=e,a=(0,i.A)(),o=(0,d.A)(),p=t.dateOfBirthTimestamp,m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.sport.slug)}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"eventList",{sport:t.sport.slug}).route)},{"@type":"ListItem",position:2,name:t.name}]},h={"@context":"https://schema.org","@type":"Person",name:t.name,birthDate:p?r.pp(p).toISOString():void 0,url:"https://www.sofascore.com/referee/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name}};return(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,c.QQ)(m)}),",",(0,s.jsx)("script",{...(0,c.QQ)(h)}),","]})}},8056:(e,t,a)=>{"use strict";a.r(t),a.d(t,{UniqueTournamentMedia:()=>l,default:()=>i});var s=a(6029),n=a(21377),r=a(45860),o=a(17239);function l(e){let{uniqueTournamentId:t,hideTitle:a}=e,{data:l}=(0,r.Ay)(n.V3t.media(t));return l&&l.media.length?(0,s.jsx)(o.$,{highlights:l.media,hideTitle:a}):null}let i=l},9489:(e,t,a)=>{"use strict";a.d(t,{R:()=>c});var s=a(6029),n=a(55729),r=a(90248),o=a(62859);let l=JSON.parse('{"football":{"attackGroup":"attacking","attackingGroup":"football_attacking","cardsGroup":"cards","defenceGroup":"defending","defensiveDefendingGroup":"defensiveDefending","defendingGroup":"defending","duelsGroup":"football_duels","goalkeeperGroup":"goalkeeping","goalkeeperOtherGroup":"goalkeeperOther","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"football"}},"otherGroup":"miscellaneous_statistics","otherPerGameGroup":"other_per_game","passesGroup":"pass_accuracy","passingGroup":"passing","summaryGroup":"statistics_general","offensiveGroup":"offensive","creativityGroup":"player_ability_creativity","defensiveGroup":"defensive","shootingGroup":"football_shooting_category","teamPlayGroup":"football_team_play_category","additionalGroup":"football_additional_category"},"basketball":{"defenseGroup":"defending","extraGroup":"extra","matchesGroup":{"id":"matches","values":{"sport":"basketball"}},"offenseGroup":"americanFootball.offense","otherGroup":"miscellaneous_statistics","pointsGroup":"points","reboundsGroup":"rebounds","summaryGroup":"statistics_general","pointsPerGameGroup":"points_per_game","reboundsPerGameGroup":"rebounds_per_game","otherPerGameGroup":"other_per_game"},"american-football":{"defensiveGroup":"defensive","fieldGoalKickersGroup":"fieldGoalKickers","fumblesGroup":"fumbles","interceptionsGroup":"football_interceptions","kickReturnsGroup":"kickReturns","kickingGroup":"kicking","kickoffGroup":"kickoff","matchesGroup":{"id":"matches","values":{"sport":"american_football"}},"passingGroup":"passing","puntReturnsGroup":"puntReturns","puntingGroup":"punting","receivingGroup":"receiving","rushingGroup":"rushing","gamesGroup":"am_football_games_tab"},"ice-hockey":{"attackingGroup":"attacking","goaliesGroup":"legend_hockey_goalies","goalkeeperGroup":"goalkeeping","goalkeepingGroup":"goalkeeping","matchesGroup":{"id":"matches","values":{"sport":"ice_hockey"}},"otherGroup":"miscellaneous_statistics","penaltyGroup":"penalty","pointsGroup":"points","savesGroup":"player_ability_saves","scoringGroup":"scoring","skatersGroup":"legend_hockey_skaters","summaryGroup":"statistics_general","timeGroup":"time","overallGroup":"ice_hockey_stat_category_overall","defensiveGroup":"ice_hockey_stat_category_defensive","powerPlayGroup":"ice_hockey_stat_category_power_play","shorthandedGroup":"ice_hockey_stat_category_shorthanded","evenGroup":"ice_hockey_stat_category_even_strength","faceOffGroup":"ice_hockey_stat_category_faceoff"},"handball":{"attackingGroup":"attacking","goalkeepersGroup":"stats.goalkeepers","goalkeepingGroup":"goalkeeping","otherGroup":"miscellaneous_statistics","playersGroup":"players"},"baseball":{"battingGroup":"baseball_group_batting","fieldingGroup":"baseball_group_fielding","pitchingGroup":"baseball_group_pitching"},"futsal":{"matchesGroup":{"id":"matches","values":{"sport":"futsal"}},"summaryGroup":"statistics_general"},"tennis":{"serve":"tennis_service_stat","pressureMetrics":"tennis_pressure_metrics","miscellaneous_statistics":"miscellaneous_statistics"}}');var i=a(27892);let c=e=>{let{id:t}=e,a=(0,n.useContext)(o.Ws);return(0,s.jsx)(r.A,{id:(0,i.O)(l,t,a),values:(0,i.B)(l,t,a)})}},10383:(e,t,a)=>{"use strict";a.d(t,{R:()=>o,h:()=>i});var s=a(4696),n=a(98516);let r=(e,t)=>{let a=e[t.key],s="";if(t.totalKey){let r=e[t.totalKey];s=r?" (".concat((0,n.M)(100*a/r),"%)"):" (0%)"}else if(t.percentageKey){let a=e[t.percentageKey];s=" (".concat(a?(0,n.M)(a):0,"%)")}else if(t.reverseKey){let r=e[t.reverseKey];s=" (".concat((0,n.M)(100*a/(a+r)),"%)")}return s},o=(e,t,a)=>{var o,l,i;let c="number"==typeof t.decimals?t.decimals:1,d=e[t.key];if(void 0!==d){if(a===s.M.Total&&t.displayType&&t.displayType.length>0)return(null==(i=t.displayType)?void 0:i.includes(s.M.Total))?d:void 0;if(a!==s.M.PerGame||(null==(o=t.displayType)?void 0:o.includes(s.M.PerGame))){if(t.perGame||(null==(l=t.displayType)?void 0:l.includes(s.M.PerGame))){if(void 0===e.appearances)return;let a=r(e,t);return"".concat((0,n.M)(d/e.appearances,c)).concat(a)}if(t.percentageKey){let a=e[t.percentageKey]?(0,n.M)(e[t.percentageKey],c):0,s="number"==typeof t.decimals?(0,n.M)(d,c):d;return t.showValue?"".concat(s," (").concat(a,"%)"):"".concat(a,"%")}if(t.totalKey){let a=e[t.totalKey],s=t.showPercentage?r(e,t):"";return a?"".concat(d,"/").concat(a," ").concat(s):"".concat(d," ").concat(s)}if("firstServePercentage"===t.key){if(isNaN(e.firstServeTotal)||isNaN(e.firstServePointsTotal))return 0;if(0===e.firstServeTotal)return"0%";let t=e.firstServePointsTotal/e.firstServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("winRatio"===t.key)return isNaN(e.wins)||isNaN(e.matches)?0:"".concat(e.wins,"/").concat(e.matches," (").concat(Math.round(10*d)/10,"%)");if("firstServePointsWonPercentage"===t.key){if(isNaN(e.firstServePointsScored)||isNaN(e.firstServePointsTotal))return 0;if(0===e.firstServePointsTotal)return"0%";let t=e.firstServePointsScored/e.firstServePointsTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("secondServePercentage"===t.key){if(isNaN(e.secondServeTotal)||isNaN(e.secondServePointsTotal))return 0;if(0===e.secondServeTotal)return"0%";let t=e.secondServePointsTotal/e.secondServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("secondServePointsWonPercentage"===t.key){if(isNaN(e.secondServePointsScored)||isNaN(e.secondServePointsTotal))return 0;if(0===e.secondServePointsTotal)return"0%";let t=e.secondServePointsScored/e.secondServeTotal*100;return"".concat(Math.round(10*t)/10,"%")}if("avgAces"===t.key){if(isNaN(e.aces)||isNaN(e.matches))return 0;if(0===e.matches)return"0%";let t=e.aces/e.matches;return"".concat(Math.round(10*t)/10)}if("avgDoubleFaults"===t.key){if(isNaN(e.doubleFaults)||isNaN(e.matches))return 0;if(0===e.matches)return"0%";let t=e.doubleFaults/e.matches;return"".concat(Math.round(10*t)/10)}if("breakPointsSavedPercentage"===t.key){if(isNaN(e.opponentBreakPointsTotal)||isNaN(e.opponentBreakPointsScored))return 0;let t=e.opponentBreakPointsTotal-e.opponentBreakPointsScored,a=Math.round(10*e.breakPointsSavedPercentage)/10;return"".concat(t,"/").concat(e.opponentBreakPointsTotal," (").concat(a,"%)")}if("breakPointsSavedConvertedPercentage"===t.key){if(isNaN(e.breakPointsTotal)||isNaN(e.breakPointsScored))return 0;let t=Math.round(10*e.breakPointsSavedConvertedPercentage)/10;return"".concat(e.breakPointsScored,"/").concat(e.breakPointsTotal," (").concat(t,"%)")}if("tiebreakWinPercentage"===t.key){if(isNaN(e.tiebreaksWon)||isNaN(e.tiebreakLosses)||isNaN(e.tiebreakWinPercentage))return 0;let t=e.tiebreaksWon+e.tiebreakLosses;return t>0?"".concat(e.tiebreaksWon,"/").concat(t," (").concat(Math.round(10*e.tiebreakWinPercentage)/10,"%)"):"".concat(e.tiebreaksWon,"/").concat(t)}if("number"==typeof t.decimals)return["savePercentage","powerPlaySavePercentage","shortHandedSavePercentage","evenSavePercentage"].includes(t.key)?1===d?"1.00":".".concat((0,n.M)(d,c).slice(2)):"".concat((0,n.M)(d,c)).concat(t.sufix||"");return"".concat(d," ").concat(t.sufix||"")}}};function l(e){let t=Math.round(e),a=Math.floor(t/60),s=Math.floor(t%60).toString().padStart(2,"0");return"".concat(a,":").concat(s)}let i=e=>{let t={...e};return e.secondsPlayed&&(t.minutesPlayed=e.secondsPlayed/60),e.timeOnIce&&(t.timeOnIce=l(e.timeOnIce/e.appearances)),e.powerPlayTimeOnIce&&(t.powerPlayTimeOnIce=l(e.powerPlayTimeOnIce/e.appearances)),e.evenTimeOnIce&&(t.evenTimeOnIce=l(e.evenTimeOnIce/e.appearances)),e.shortHandedTimeOnIce&&(t.shortHandedTimeOnIce=l(e.shortHandedTimeOnIce/e.appearances)),t}},13731:(e,t,a)=>{var s=a(53325),n=a(25725),r=Object.prototype.hasOwnProperty;e.exports=n(function(e,t,a){r.call(e,a)?e[a].push(t):s(e,a,[t])})},14196:(e,t,a)=>{"use strict";a.d(t,{v:()=>n});var s=a(21377);let n=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Football]},14352:(e,t,a)=>{"use strict";a.d(t,{s:()=>d});var s=a(42330),n=a(55094),r=a(43479);function o(e,t){[...t].reverse().forEach(a=>{let s=e.getVariant(a);s&&(0,n.U)(e,s),e.variantChildren&&e.variantChildren.forEach(e=>{o(e,t)})})}function l(){let e=!1,t=new Set,a={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(a,n){(0,s.V)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return t.forEach(e=>{o.push((0,r._)(e,a,{transitionOverride:n}))}),Promise.all(o)},set:a=>((0,s.V)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,s;t=e,Array.isArray(s=a)?o(t,s):"string"==typeof s?o(t,[s]):(0,n.U)(t,s)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,a.stop()})};return a}var i=a(44033),c=a(2274);let d=function(){let e=(0,i.M)(l);return(0,c.E)(e.mount,[]),e}},15204:(e,t,a)=>{"use strict";a.d(t,{Eg:()=>l,RL:()=>r,aM:()=>o,nM:()=>n});var s=a(21377);let n={[s.Edk.Miss]:"football_outcome_missed",[s.Edk.Post]:"football_shot_outcome_post",[s.Edk.Save]:"football_outcome_saved",[s.Edk.Block]:"football_outcome_blocked",[s.Edk.Goal]:"goal"},r={[s.OWQ.Regular]:"football_situation_open_play",[s.OWQ.FastBreak]:"football_situation_fast_break",[s.OWQ.SetPiece]:"shot_situation_set_piece",[s.OWQ.Corner]:"football_situation_from_corner",[s.OWQ.FreeKick]:"shot_situation_free_kick",[s.OWQ.Assisted]:"football_situation_assisted",[s.OWQ.Scramble]:"shot_situation_scramble",[s.OWQ.ThrowInSetPiece]:"shot_situation_throw_in",[s.OWQ.Penalty]:"shot_situation_penalty",[s.OWQ.OwnGoal]:"ownGoal",[s.OWQ.Shootout]:"shot_situation_shootout"},o={[s.FwN.Head]:"type_of_shot_head",[s.FwN.LeftFoot]:"type_of_shot_left_footed",[s.FwN.RightFoot]:"type_of_shot_right_footed",[s.FwN.Other]:"type_of_shot_other_body_part"},l={[s.fj2.CloseLeft]:"goal_zone_close_left",[s.fj2.CloseHighLeft]:"goal_zone_close_left_and_high",[s.fj2.CloseRight]:"goal_zone_close_right",[s.fj2.CloseHighRight]:"goal_zone_close_right_and_high",[s.fj2.CloseHigh]:"goal_zone_close_high",[s.fj2.Left]:"goal_zone_left",[s.fj2.High]:"goal_zone_high",[s.fj2.Right]:"goal_zone_right",[s.fj2.LowLeft]:"goal_zone_low_left",[s.fj2.HighLeft]:"goal_zone_high_left",[s.fj2.LowCentre]:"goal_zone_low_centre",[s.fj2.HighCentre]:"goal_zone_high_centre",[s.fj2.LowRight]:"goal_zone_low_right",[s.fj2.HighRight]:"goal_zone_high_right"}},17239:(e,t,a)=>{"use strict";a.d(t,{$:()=>C});var s=a(6029),n=a(4967),r=a(41249),o=a(55729),l=a(90248),i=a(494),c=a(41735),d=a(65789),u=a(54409),p=a(75751),m=a(47146),h=a(76410),g=a(10794);let f=(0,c.default)(r.az).withConfig({componentId:"sc-c5b73d7d-0"})(["width:144px;height:80px;position:absolute;top:0;left:0;background:",";display:grid;svg{margin:auto;}"],e=>e.theme.colors.overlay.darken1),y=(0,c.default)(r.az).withConfig({componentId:"sc-c5b73d7d-1"})(["a:visited{.media-component-seen-notice{color:"," !important;}}img{display:block;border-radius:",";}"],e=>e.theme.colors.neutral.default,e=>e.theme.spacing.xxs);var x=a(21377);let _=/sofascore.com\/news\//g,v=[x.zut.MEDIA_VIDEO,x.zut.MEDIA_NEWS_VIDEO,x.zut.MEDIA_YOUTUBE_VIDEO],j=e=>_.test(e),b=e=>-1!==v.indexOf(e),k=e=>{let t=document.createElement("a");return t.href=e,t.host},w=e=>{if(e){let a=k(e);if("www.youtube.com"===a){let t=new URL(e).searchParams.get("v");return"https://img.youtube.com/vi/".concat(t,"/0.jpg")}if("youtu.be"===a){var t;let a=null==(t=new URL(e).pathname)?void 0:t.slice(1);return"https://img.youtube.com/vi/".concat(a,"/0.jpg")}}},T=()=>{let e=(0,o.useContext)(c.ThemeContext);return(0,s.jsx)(r.az,{w:"144",h:"80",bg:"onSurface.nLv4",display:"grid",br:"xxs",children:(0,s.jsx)(u.dwH,{m:"auto",fill:null==e?void 0:e.colors.onSurface.nLv4})})},C=e=>{let{highlights:t,hideTitle:a,isInWidget:o}=e,c=function(e){let{media:t,selectedLocale:a,geoIPAlpha2:s,n=10}=e;return t.sort((e,t)=>t.createdAtTimestamp-e.createdAtTimestamp).filter(e=>!e.forCountries||!e.forCountries.length||-1!==e.forCountries.indexOf(a.toUpperCase())||-1!==e.forCountries.indexOf(s.toUpperCase())).slice(0,n)}({media:[...t],selectedLocale:(0,i.d4)(g.JV),geoIPAlpha2:(0,i.d4)(g.LQ)||""});return c.length?(0,s.jsx)(p.t,{tag:"Media",children:(0,s.jsxs)(d.Zp,{isInverseDesktop:o,children:[!a&&(0,s.jsx)(d.Zp.Header,{titleId:"media",as:"h4"}),(0,s.jsx)(y,{pt:["sm",o?"sm":0],pb:["sm",o?"sm":"lg"],children:(0,s.jsx)(d.BU,{children:c.map(e=>(0,s.jsx)(r.az,{children:(0,s.jsxs)(r.so,{as:"a",href:e.url,target:"_blank",rel:e.doFollow||j(e.url)?void 0:"nofollow",onClick:()=>(0,h.Xy)(e.title),children:[(0,s.jsxs)(r.az,{position:"relative",children:[(0,s.jsx)(r._V,{src:e.thumbnailUrl||w(e.url),width:"144",height:"80",fallback:(0,s.jsx)(T,{}),alt:"thumbnail"}),b(e.mediaType)&&(0,s.jsx)(f,{children:(0,s.jsx)(u.reY,{fill:"white"})})]}),(0,s.jsxs)(r.so,{direction:"column",justify:"space-between",maxW:"calc(100% - 144px)",grow:1,pl:"lg",children:[(0,s.jsxs)(r.az,{children:[(0,s.jsx)(r.EY,{block:!0,as:"bdi",className:"media-component-title",font:"display.small",color:"onSurface.nLv1",w:"100%",lineClamp:2,children:e.title}),(0,s.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",w:"100%",mt:"xs",lineClamp:1,children:e.subtitle})]}),(0,s.jsx)(r.az,{children:(0,s.jsxs)(r.so,{justify:"space-between",children:[(0,s.jsx)(r.EY,{as:"bdi",font:"body.small",color:"onSurface.nLv3",w:"100%",mt:"xs",textTransform:"firstLetter",ellipsis:!0,children:(0,s.jsx)(m.v,{timestamp:(0,n.pp)(e.createdAtTimestamp).getTime()})}),(0,s.jsx)(r.EY,{font:"body.small",className:"media-component-seen-notice",color:"transparent",w:"100%",mt:"xs",style:{textAlign:"right",userSelect:"none"},"aria-hidden":"true",ellipsis:!0,children:(0,s.jsx)(l.A,{id:"basic.seen"})})]})})]})]})},e.id))})})]})}):null}},17561:(e,t,a)=>{var s={"./american-football":[38061,8061],"./american-football.ts":[38061,8061],"./basketball":[45120,5120],"./basketball.ts":[45120,5120],"./football":[93862,3862],"./football.ts":[93862,3862],"./futsal":[7738,7738],"./futsal.ts":[7738,7738],"./handball":[70447,447],"./handball.ts":[70447,447],"./ice-hockey":[6776,6776],"./ice-hockey.ts":[6776,6776]};function n(e){if(!a.o(s,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],n=t[0];return a.e(t[1]).then(()=>a(n))}n.keys=()=>Object.keys(s),n.id=17561,e.exports=n},18916:(e,t,a)=>{"use strict";a.d(t,{F0:()=>n,N8:()=>o,qT:()=>r});var s=a(21377);let n=[s.QCR.Football,s.QCR.Futsal,s.QCR.Handball,s.QCR.Basketball,s.QCR.AmericanFootball,s.QCR.IceHockey,s.QCR.Tennis],r=[s.QCR.AmericanFootball,s.QCR.Handball,s.QCR.Baseball],o=["overall","playoffs","regularSeason","top16"]},19643:(e,t,a)=>{"use strict";a.d(t,{N:()=>n});var s=a(93839);function n(e,t){return"en"===t||t===s.vo[e]}},20648:(e,t,a)=>{var s=a(57760),n=0/0;e.exports=function(e,t){var a=null==e?0:e.length;return a?s(e,t)/a:n}},25399:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>t8});var s=a(6029),n=a(21377),r=a(19451),o=a(73088),l=a(52951),i=a(55729),c=a(62859),d=a(28860),u=a(42678),p=a(59684),m=a(41249),h=a(71024),g=a.n(h),f=a(65789),y=a(29129),x=a(93471),_=a(87996),v=a(14196),j=a(33752),b=a(98449),k=a(70591),w=a(27289),T=a(52695);function C(e){var t;let{player:a,sport:n,uniqueTournament:r}=e,{seoContent:o}=(0,i.useContext)(l.xV);return(0,s.jsxs)(j.B,{children:[(0,s.jsx)(j.B.Item,{children:(0,s.jsx)(k.di,{translatedParams:{sport:n.slug},children:(0,s.jsx)(w.o,{sportSlug:n.slug})})}),r?(0,s.jsx)(j.B.Item,{children:(0,s.jsx)(k.Z6,{category:r.category,children:(0,s.jsx)(b.m,{slug:null==r?void 0:r.category.slug,name:(null==r?void 0:r.category.name)||(null==(t=a.team.country)?void 0:t.name)||"N/A"})})}):null,r?(0,s.jsx)(j.B.Item,{children:(0,s.jsx)(k.tQ,{tournament:r,children:(0,s.jsx)(T.O,{uniqueTournament:r})})}):null,(0,s.jsx)(j.B.Title,{children:(null==o?void 0:o.heading)||"".concat(a.name," - Sofascore")})]})}var S=a(75751),A=a(8329),M=a(4967),z=a(947),P=a(90510),E=a(90248),K=a(54409),L=a(3518),I=a(54917),R=a(19168),G=a(55938);let H=e=>{let{label:t,value:a,inLine:n,children:r,onClick:o}=e;return a||r?(0,s.jsxs)(m.az,{w:n?"auto":"33%",pt:"md",pb:10,px:"lg",onClick:o,cursor:o?"pointer":void 0,children:[(0,s.jsx)(m.EY,{font:"assistive.micro",color:"onSurface.nLv3",align:"center",mb:"xxs",as:"div",textTransform:"uppercase",children:t}),(0,s.jsx)(m.EY,{font:"display.medium",color:"onSurface.nLv1",align:"center",as:"div",children:a||r})]}):null},F=e=>{var t;let{player:a,inLine:r}=e,o=(0,z.A)(),l=(0,i.useContext)(c.Ws),[d,u]=(0,i.useState)(!1),p=(0,s.jsx)(P.XU,{value:new Date(1e3*a.dateOfBirthTimestamp),...M.or.dateWithShortMonth,timeZone:"UTC"}),h=[n.QCR.Handball,n.QCR.Football,n.QCR.Basketball,n.QCR.IceHockey,n.QCR.Baseball,n.QCR.AmericanFootball].includes(l),g=async()=>{d||(u(!0),setTimeout(()=>{u(!1)},3e3),await (0,R.MZ)((0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(K.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(m.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,s.jsx)(I.F,{id:a.position,sport:l})})]})))};return(0,s.jsxs)(m.so,{justify:r?"space-around":void 0,wrap:"wrap",children:[(null==(t=a.country)?void 0:t.alpha2)&&(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:"nationality"}),inLine:r,children:(0,s.jsxs)(m.so,{align:"center",justify:"center",gap:"xs",children:[(0,s.jsx)(A.w,{alpha2:a.country.alpha2,name:a.country.alpha2,size:16,national:!0}),(0,s.jsx)("span",{children:(0,G.KH)(a.country.alpha2)})]})}),a.deceased&&a.dateOfBirthTimestamp&&(0,s.jsx)(H,{label:p,value:(0,s.jsx)(E.A,{id:"deceasedYear",values:{year:a.dateOfDeathTimestamp?(0,s.jsx)(P.XU,{value:1e3*a.dateOfDeathTimestamp,year:"numeric"}):void 0}}),inLine:r}),a.dateOfBirthTimestamp&&!a.deceased&&(0,s.jsx)(H,{label:p,value:"".concat((0,M.KW)(a.dateOfBirthTimestamp)," ").concat(o.formatMessage({id:"years_short"})),inLine:r}),a.height&&(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:"player_height"}),value:(0,s.jsx)(L.Z,{value:a.height,fromUnit:"cm"}),inLine:r}),a.preferredFoot&&(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:"player_preferred_foot"}),value:o.formatMessage({id:"foot.".concat(a.preferredFoot.toLowerCase()),defaultMessage:a.preferredFoot}),inLine:r}),a.position&&(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:"position"}),value:(0,s.jsx)(I.F,{id:a.position,short:!0}),inLine:r,onClick:h?g:void 0}),a.cricketPlayerInfo&&Object.keys(a.cricketPlayerInfo).filter(e=>!e.startsWith("is")).map(e=>{let t=a.cricketPlayerInfo[e];return(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:e}),value:(0,s.jsx)(E.A,{id:t}),inLine:r},e)}),(0,s.jsx)(H,{label:(0,s.jsx)(E.A,{id:"player_shirt_number"}),value:a.jerseyNumber,inLine:r})]})};var O=a(70862);function D(e){let{player:t}=e;return(0,s.jsx)(m.az,{w:["100%","50%"],p:[0,"sm"],children:(0,s.jsx)(f.Zp,{isInverseDesktop:!0,children:(0,s.jsxs)(m.so,{direction:"column",gap:"lg",pt:"md",px:"lg",pb:"lg",br:"sm",children:[(0,s.jsxs)(m.so,{direction:"row",justify:"space-between",align:"center",children:[(0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(K.p5Z,{fill:"error.default"}),(0,s.jsx)(m.EY,{font:"display.medium",color:"error.default",pl:"sm",children:(0,s.jsx)(O.o,{id:t.injury.status})})]}),(0,s.jsxs)(m.so,{direction:"column",align:"flex-end",children:[(0,s.jsx)(m.EY,{font:"body.small",color:"onSurface.nLv3",pl:"sm",children:(0,s.jsx)(E.A,{id:"lastUpdated"})}),(0,s.jsx)(m.EY,{font:"body.small",color:"onSurface.nLv3",pl:"sm",children:(0,s.jsx)(P.XU,{value:new Date(1e3*t.injury.updateDateTimestamp),...M.or.dateWithShortMonth,timeZone:"UTC"})})]})]}),(0,s.jsxs)(m.so,{direction:"row",justify:"space-between",align:"center",children:[(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,s.jsx)(E.A,{id:"details"})}),(0,s.jsx)(m.EY,{font:"body.medium",children:(0,s.jsx)(O.o,{id:t.injury.reason})})]}),(0,s.jsxs)(m.so,{direction:"row",justify:"space-between",align:"center",children:[(0,s.jsx)(m.EY,{font:"body.medium",children:(0,s.jsx)(E.A,{id:"startDate"})}),(0,s.jsx)(m.EY,{font:"body.medium",children:(0,s.jsx)(P.XU,{value:new Date(1e3*t.injury.startDateTimestamp),...M.or.dateWithShortMonth,timeZone:"UTC"})})]})]})})})}var Y=a(33144),B=a(94604);let V=e=>{let{player:t,expectedTransfer:a}=e,n=t.team.disabled?null:{sport:t.team.sport.slug,team:t.team},r=n?k.gT:i.Fragment,o=(0,i.useContext)(c.Ws),l=t.retired||"no-team"===t.team.slug;return(0,s.jsxs)(m.so,{justify:"space-between",children:[(0,s.jsx)(r,{sport:null==n?void 0:n.sport,team:null==n?void 0:n.team,children:(0,s.jsxs)(m.so,{py:"sm",px:["sm","lg"],align:"center",cursor:l?"default":"pointer",children:[(0,s.jsx)(m.az,{w:"40",h:"40",children:(0,s.jsx)(Y.p,{id:t.retired?-1:t.team.id,name:t.retired?void 0:t.team.slug,size:40})}),(0,s.jsxs)(m.az,{ml:"lg",children:[(0,s.jsx)(m.EY,{font:"display.medium",color:"onSurface.nLv1",hover:!l,as:"div",children:t.retired?(0,s.jsx)(E.A,{id:"player.retired"}):(0,s.jsx)(B.Rm,{team:t.team})}),t.contractUntilTimestamp&&(0,s.jsxs)(m.EY,{lineHeight:"16px",font:"assistive.default",color:"onSurface.nLv3",as:"div",children:[(0,s.jsx)(E.A,{id:"contract_until"})," ",(0,s.jsx)(P.XU,{value:1e3*t.contractUntilTimestamp,...M.or.dateWithShortMonth,timeZone:"UTC"})]})]})]})}),a&&!t.retired&&(0,s.jsxs)(m.az,{p:"sm",pr:"lg",children:[(0,s.jsxs)(m.so,{mb:"xxs",gap:"xxs",align:"center",children:[a.transferFrom&&(0,s.jsx)(k.gT,{team:a.transferFrom,sport:o,children:(0,s.jsx)(Y.p,{id:a.transferFrom.id,name:a.transferFrom.name,size:20})}),(0,s.jsx)(K.ZmP,{fill:"onSurface.nLv1"}),a.transferTo&&(0,s.jsx)(k.gT,{team:a.transferTo,sport:o,children:(0,s.jsx)(Y.p,{id:a.transferTo.id,name:a.transferTo.name,size:20})})]}),(0,s.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",align:"right",as:"div",children:(0,s.jsx)(P.XU,{value:new Date(1e3*a.transferDateTimestamp),...M.or.dateWithShortMonth})})]})]})};var Q=a(21501),N=a(80932);a(93024);var W=a(77552);a(1689);var U=a(47430);function q(){return(0,s.jsxs)(f.Zp,{children:[(0,s.jsx)(f.Zp.Header,{titleId:"player.info.attributeOverview",actionComponent:(0,s.jsx)(U.A,{attributes:[]})}),(0,s.jsxs)(m.so,{direction:"column",gap:"lg",pt:"md",pb:"lg",px:"sm",children:[(0,s.jsx)(m.az,{maxW:360,w:"fit-content",pt:"xl",mb:"sm",mx:"auto",children:(0,s.jsx)(m.az,{mx:[78,78,86],children:(0,s.jsx)(W.A,{})})}),(0,s.jsx)(m.so,{justify:"center",py:"sm",children:(0,s.jsx)(m.az,{w:360,h:36,bg:"surface.s2",br:"lg"})}),(0,s.jsx)(m.az,{h:64,bg:"surface.s2",br:"md"}),(0,s.jsxs)(m.so,{align:"center",gap:"sm",px:"sm",children:[(0,s.jsx)(K.G_L,{minW:24,fill:"onSurface.nLv1"}),(0,s.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:"24px",children:(0,s.jsx)(E.A,{id:"click_for_average_values"})})]})]})]})}let Z=g()(()=>a.e(5571).then(a.bind(a,55571)),{loadableGenerated:{webpack:()=>[55571]},ssr:!1,loading:()=>(0,s.jsx)(q,{})});function $(e){let{player:t}=e,{pentagons:a,isPentagonDataLoading:n,isError:r}=(0,N.s)(t.id),o=(0,Q.hX)(),l=(null==a?void 0:a.playerPentagons.length)&&0!==a.playerPentagons[0].yearShift?null:a;return r||null===l&&!n?null:(0,s.jsxs)(f.Zp,{children:[(o||n)&&(0,s.jsx)(q,{}),!o&&!n&&!!l&&(0,s.jsx)(Z,{basePlayer:t,basePentagons:l})]})}var X=a(45860),J=a(79392),ee=function(e){return e.strengths="strengths",e.weaknesses="weaknesses",e}(ee||{});function et(e){let{characteristics:t,type:a}=e;return t.length?(0,s.jsx)(m.az,{children:t.map(e=>(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",textTransform:"firstLetter",block:!0,mb:"xs",children:(0,s.jsx)(E.A,{id:e})},e))}):(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",block:!0,children:(0,s.jsx)(E.A,{id:"player.info.noOutstanding",values:{characteristic:(0,s.jsx)(m.EY,{textTransform:"lowercase",children:(0,s.jsx)(E.A,{id:"player.".concat(a)})})}})})}let ea=(0,i.memo)(e=>{let{strengths:t,weaknesses:a}=e;return(0,s.jsxs)(m.so,{minH:172,direction:"column",justify:"space-between",border:"1",children:[(0,s.jsxs)(m.az,{pb:"xl",children:[(0,s.jsx)(m.EY,{font:"display.small",color:"success.default",mb:"sm",as:"div",children:(0,s.jsx)(E.A,{id:"player.strengths"})}),(0,s.jsx)(et,{characteristics:t,type:"strengths"})]}),(0,s.jsxs)(m.az,{pb:"xl",children:[(0,s.jsx)(m.EY,{font:"display.small",color:"error.default",mb:"sm",as:"div",children:(0,s.jsx)(E.A,{id:"player.weaknesses"})}),(0,s.jsx)(et,{characteristics:a,type:"weaknesses"})]})]})},function(e,t){return e.player.id===t.player.id}),es={1:"anchorPlay",2:"penaltyTaking",3:"directFreeKicks",4:"longShots",5:"finishing",6:"passing",7:"playmaking",9:"tackling",10:"ballInterception",11:"consistency",12:"crossing",13:"football_long_balls",14:"ballControl",15:"groundDuels",16:"aerialDuels",17:"errorProneness",18:"Discipline",19:"penaltySaving",20:"reflexes",21:"runsOut",22:"highClaims",23:"handling",24:"longShotsSaving",25:"positioning",26:"highPressing"};var en=a(41735);let er=function(e){let{children:t}=e,a=(0,i.useContext)(en.ThemeContext);return(0,s.jsxs)("svg",{width:"120",height:"180",viewBox:"0 0 120 180",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,s.jsx)("rect",{fill:a.colors.graphicsTerrain.football,width:"120",height:"180",rx:"4"}),(0,s.jsx)("path",{stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round",d:"M4 4h112v86H4z"}),(0,s.jsx)("path",{d:"M72 90c0-6.627-5.373-12-12-12s-12 5.373-12 12M31 4h58v26H31zM50 30c.156.28.322.555.499.82 2.084 3.13 5.562 5.18 9.5 5.18 3.942 0 7.422-2.052 9.505-5.184.176-.264.34-.537.496-.816",stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round",d:"M46 4h28v8H46z"}),(0,s.jsx)("circle",{cx:"1",cy:"1",r:"1",transform:"translate(59 22)",fill:a.colors.surface.s1}),(0,s.jsx)("path",{d:"M4 8a4 4 0 0 0 4-4M112 4a4 4 0 0 0 4 4",stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round",d:"M4 176h112V90H4z"}),(0,s.jsx)("path",{d:"M72 90c0 6.627-5.373 12-12 12s-12-5.373-12-12M31 176h58v-26H31zM50 150c.156-.28.322-.555.499-.82 2.084-3.13 5.562-5.18 9.5-5.18 3.942 0 7.422 2.052 9.505 5.184.176.264.34.537.496.816",stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round"}),(0,s.jsx)("path",{stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round",d:"M46 176h28v-8H46z"}),(0,s.jsx)("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(1 0 0 -1 59 158)",fill:a.colors.surface.s1}),(0,s.jsx)("path",{d:"M4 172a4 4 0 0 1 4 4M112 176a4 4 0 0 1 4-4",stroke:a.colors.surface.s1,strokeWidth:"2",strokeLinejoin:"round"})]})]}),(0,s.jsx)("g",{style:{top:0,left:0,background:"red"},width:"100%",height:"100%",children:t})]})},eo={gk:{x:60,y:164,color:1},dl:{x:25,y:146,color:2},dc:{x:60,y:146,color:2},dr:{x:95,y:146,color:2},dm:{x:60,y:118,color:3},ml:{x:25,y:90,color:3},mc:{x:60,y:90,color:3},mr:{x:95,y:90,color:3},am:{x:60,y:62,color:3},lw:{x:25,y:34,color:4},rw:{x:95,y:34,color:4},st:{x:60,y:20,color:4}},el=en.default.g.withConfig({componentId:"sc-f11cf694-0"})(["text{font-family:'Sofascore Sans';font-size:12px;font-weight:500;}"]),ei=(e,t)=>{switch(e){case 1:return t.colors.sofaSingles.value;case 2:return t.colors.primary.default;case 3:return t.colors.secondary.default;case 4:return t.colors.error.default;default:return t.colors.neutral.default}};function ec(e){let{position:t,attr:a}=e,n=(0,i.useContext)(en.ThemeContext);return(0,s.jsxs)(el,{children:[(0,s.jsx)("circle",{cx:a.x,cy:a.y,r:"12",fill:n.colors.surface.s1}),(0,s.jsx)("text",{y:a.y,x:a.x,fill:ei(a.color,n),dy:"4",textAnchor:"middle",children:t.toUpperCase()})]})}let ed=function(e){let{positions:t}=e;return(0,s.jsx)(er,{children:t&&t.map(e=>(0,s.jsx)(ec,{position:e,attr:eo[e.toLowerCase()]},e))})},eu=e=>es[e.type],ep=Object.entries({[n.ypd.Striker]:"playerPosition.forward",[n.ypd.LeftWinger]:"playerPosition.forward",[n.ypd.RightWinger]:"playerPosition.forward",[n.ypd.AttackingMidfielder]:"playerPosition.midfield",[n.ypd.MidfielderLeft]:"playerPosition.midfield",[n.ypd.MidfielderCenter]:"playerPosition.midfield",[n.ypd.MidfielderRight]:"playerPosition.midfield",[n.ypd.DefensiveMidfielder]:"playerPosition.midfield",[n.ypd.DefenderLeft]:"playerPosition.defender",[n.ypd.DefenderCenter]:"playerPosition.defender",[n.ypd.DefenderRight]:"playerPosition.defender",[n.ypd.Goalkeeper]:"playerPosition.goalkeeper"}).reduce((e,t)=>{var a;let[s,r]=t,o=e.findIndex(e=>e.color===r),l=null==(a=Object.entries(n.ypd).find(e=>{let[t,a]=e;return a===s}))?void 0:a[0];if(!l)return e;let i={short:s.toUpperCase(),long:l.charAt(0).toLowerCase()+l.slice(1)};return -1===o?e.push({color:r,options:[i]}):e[o].options.push(i),e},[]);function em(e){let{player:t}=e,a=t.team.sport.slug===n.QCR.Football,r=(0,Q.hX)(),[o,l]=(0,i.useState)(!1),{data:c,error:d,isLoading:u}=(0,X.Ay)(n.qvj.characteristics(t.id)),p=!c&&!d;if(r||u)return(0,s.jsx)(f.Zp,{isInverseDesktop:!0,children:(0,s.jsx)(m.az,{h:212})});if(d)return null;let h=!p&&!c||c&&0===c.positions.length||!a,g=t.retired||t.deceased;return g&&h?null:(0,s.jsx)(S.t,{tag:"CharacteristicsContainer",children:(0,s.jsxs)(f.Zp,{isInverseDesktop:!0,children:[(0,s.jsxs)(m.so,{p:"lg",gap:"sm",align:"center",justify:g?"center":"space-between",children:[!g&&(0,s.jsx)(ea,{player:t,weaknesses:c.negative.map(eu),strengths:c.positive.map(eu)}),!h&&(0,s.jsx)(m.az,{onClick:()=>l(!0),cursor:"pointer",children:(0,s.jsx)(ed,{positions:c.positions})})]}),(0,s.jsx)(J.A,{isOpen:o,setIsOpen:l,header:"playerPositions",children:ep.map((e,t)=>(0,s.jsxs)(m.az,{children:[e.options.map(t=>(0,s.jsxs)(m.so,{mb:"sm",justify:"space-between",px:"md",children:[(0,s.jsx)(m.EY,{c:e.color,font:"body.medium",fontWeight:"bold",children:t.short}),(0,s.jsx)(m.EY,{c:"onSurface.nLv2",font:"body.medium",children:(0,s.jsx)(E.A,{id:t.long})})]},t.short)),t!==ep.length-1&&(0,s.jsx)(m.cG,{my:"md"})]},e.color))})]})})}var eh=a(99397),eg=a(95083),ef=a(95816),ey=a.n(ef),ex=a(7322),e_=a(90536),ev=a(54075),ej=a(97481),eb=a.n(ej),ek=a(28446);let ew=(0,ek.A)().domain([5,9]).range([0,108]);var eT=a(56591);let eC=en.default.svg.withConfig({componentId:"sc-d652293c-0"})(["position:absolute;top:44px;left:",";height:","px;pointer-events:none;"],e=>e.theme.spacing.sm,()=>108);function eS(e){let{injuries:t,transfers:a,yearAvgRating:n,containerId:r,graphId:o}=e,l=(0,i.useContext)(en.ThemeContext);return(0,Q.st)(()=>{let e=(0,eT.A)("#".concat(r));e.append("defs").attr("id","mainDefs");let s=document.getElementById(o);if(!s)return;let i=s.clientWidth-20;e.style("width","".concat(i,"px")).style("overflow","visible"),"rtl"===l.settings.textDirection&&e.style("transform","scaleX(-1)"),function(e,t,a,s){let{formattedRating:n,ratingColorKey:r}=(0,ev.M)(a,"sideBox"),o=ew(Number(n)),[l,i]=r.split("."),c=s.colors[l][i],d=e.selectAll("line.avg-line").data([{x1:0,x2:t,y1:o,y2:o}]);d.enter().append("line").merge(d).attr("stroke",c).classed("avg-line",!0).style("stroke-dasharray","3, 4").style("stroke-width",2).attr("y1",e=>108-e.y1).attr("y2",e=>108-e.y2).attr("x1",e=>e.x1).attr("x2",e=>e.x2)}(e,i,n,l),(null==t?void 0:t.length)&&function(e,t,a,s,n){let r=s.colors.error.default,o=(0,ek.A)().domain(e_.aQ()).range([0,t]).clamp(!0),l=a.map(e=>{let t=o(1e3*e.timestamp),a=o((e.timestamp+Number(e.value))*1e3);return{y:0,x:t<0?0:t,width:t<0?a:a-t,height:108}}),i=(0,eT.A)("#".concat(n,"-defs")).selectAll("clipPath").data(l);i.exit().remove(),i.enter().append("clipPath").attr("id",(e,t)=>"round-corner-".concat(t)).append("rect").merge(i).each(function(e){("rect"===this.nodeName?(0,eT.A)(this):(0,eT.A)(this).selectChild("rect")).attr("width",e.width).attr("height",e.height+2).attr("rx",2).attr("ry",2).attr("x",e.x).attr("y",e.y)});let c=e.selectAll("rect.bar").data(l);c.exit().remove(),c.enter().append("rect").classed("bar",!0).merge(c).attr("y",e=>e.y).attr("x",e=>e.x).attr("width",e=>e.width).attr("height",e=>e.height).attr("fill",r).attr("opacity",.15).attr("clip-path",(e,t)=>"url(#round-corner-".concat(t,")"));let d=e.selectAll("svg.injury").data(l);d.exit().remove(),d.enter().append("svg").attr("width",24).attr("height",24).attr("viewBox","0 0 24 24").merge(d).attr("y",0).attr("x",e=>e.x+e.width/2-12).classed("injury",!0).append("path").attr("d","M15 4.5V9h4.5v6h-4.501L15 19.5H9L8.999 15H4.5V9H9V4.5h6z").attr("fill",r)}(e,i,t,l,o),(null==a?void 0:a.length)&&function(e,t,a,s){let n=s.colors.primary.default,r=(0,ek.A)().domain(e_.aQ()).range([0,t]),o=e.selectAll("line.transfer-date").data(a),l=e.selectAll("svg.transfer").data(a);o.exit().remove(),l.exit().remove(),o.enter().append("line").merge(o).attr("stroke",n).classed("transfer-date",!0).style("stroke-width",2).attr("y1",22).attr("y2",108).attr("x1",e=>r(1e3*e.timestamp)).attr("x2",e=>r(1e3*e.timestamp)),l.enter().append("svg").attr("width",24).attr("height",24).attr("viewBox","0 0 24 24").merge(l).attr("y",0).attr("x",e=>r(1e3*e.timestamp)-12).classed("transfer",!0).append("path").attr("d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 16h-1v-4.5H5v-3h7V6h1l7 6-7 6z").attr("fill",n)}(e,i,a,l)},100,[n]),(0,s.jsx)(eC,{id:r})}function eA(){return(0,s.jsxs)(m.az,{pb:18,pt:"xxl",ml:["xs",-2,"xs"],children:[(0,s.jsxs)(m.so,{align:"flex-end",gap:"xxs",children:[(0,s.jsx)(m.az,{h:18,w:6,bg:"scoreRating.s80",br:"2px 2px 0 0"}),(0,s.jsx)(m.EY,{font:"table.small",color:"scoreRating.s80",children:"8"})]}),(0,s.jsxs)(m.so,{align:"flex-end",gap:"xxs",children:[(0,s.jsx)(m.az,{h:36,w:6,bg:"scoreRating.s70"}),(0,s.jsx)(m.EY,{font:"table.small",color:"scoreRating.s70",children:"7"})]}),(0,s.jsx)(m.az,{h:18,w:6,bg:"scoreRating.s65"}),(0,s.jsxs)(m.so,{align:"flex-end",gap:"xxs",children:[(0,s.jsx)(m.az,{h:18,w:6,bg:"scoreRating.s60"}),(0,s.jsx)(m.EY,{font:"table.small",color:"scoreRating.s60",children:"6"})]}),(0,s.jsx)(m.az,{h:18,w:6,bg:"scoreRating.s10"})]})}function eM(e){let{showInjury:t,showTransfer:a}=e,{isMobile:n}=(0,eg.$c)();return(0,s.jsxs)(m.az,{px:"lg",pb:"lg",children:[(0,s.jsxs)(m.EY,{lineHeight:"24px",font:"assistive.default",color:"onSurface.nLv3",as:"div",children:[(0,s.jsx)(K.wjs,{mr:"sm",fill:"secondary.default"}),(0,s.jsx)(E.A,{id:"player.swapSummaryValues",values:{isMobile:n}})]}),(0,s.jsxs)(m.so,{gap:"xxl",my:"md",children:[t&&(0,s.jsxs)(m.so,{children:[(0,s.jsxs)(m.az,{position:"relative",w:24,h:24,mr:"sm",children:[(0,s.jsx)(m.az,{position:"absolute",w:24,h:24,bg:"error.default",style:{opacity:.15},br:"xxs"}),(0,s.jsx)(K.p5Z,{position:"absolute",fill:"error.default",width:24,height:24})]}),(0,s.jsx)(m.EY,{lineHeight:"24px",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(E.A,{id:"player.injuryPeriod"})})]}),a&&(0,s.jsxs)(m.EY,{lineHeight:"24px",font:"assistive.default",color:"onSurface.nLv3",textTransform:"capitalize",children:[(0,s.jsx)(K.G4W,{fill:"primary.default",mr:"sm",width:24,height:24}),(0,s.jsx)(E.A,{id:"player.transferLoan"})]})]})]})}function ez(e){let{month:t,avgRating:a,appearances:n,showAppearances:r,showMonth:o}=e,l=(0,z.A)(),[i,c]=t.split("-").map(Number),d=new Date(i,c,0).getTime(),{formattedRating:u,ratingColorKey:p}=(0,ev.M)(a),h=ew(Number(u));return(0,s.jsxs)(m.so,{direction:"column",justify:"space-between",px:"xs",grow:1,children:[(0,s.jsx)(m.EY,{h:16,align:"center",font:"assistive.default",color:"onSurface.nLv3",mb:"lg",as:"div",children:o&&l.formatDate(d,{month:"short"}).slice(0,3)}),(0,s.jsx)(m.so,{h:108,direction:"column",justify:"flex-end",mb:"xs",children:(0,s.jsx)(m.az,{h:"".concat(h,"%"),bg:p,br:"2px 2px 0 0"})}),a&&(!r||n)?r?(0,s.jsx)(m.EY,{font:"table.small",color:"onSurface.nLv3",align:"center",as:"div",children:n}):(0,s.jsx)(m.EY,{font:"table.small",color:p,align:"center",lineClamp:1,as:"div",children:u}):(0,s.jsx)(m.EY,{font:"table.small",color:"onSurface.nLv3",align:"center",as:"div",children:"-"})]})}let eP=function(e){var t,a;let[r,o]=(0,i.useState)(!1),l=(0,i.useMemo)(()=>{let t=e_.o5(),a=e_.mR(e.summary);return eb()(t,a)},[e.summary]),c=Object.keys(l).sort(),d=c.map(e=>{let t=l[e];return(null==t?void 0:t.length)?e_.AG(t.map(e=>e.value)):0}),u=(0,i.useCallback)(()=>o(e=>!e),[]),p=null==(t=e.summary)?void 0:t.filter(e=>e.type===n.XFZ.Injury),h=null==(a=e.summary)?void 0:a.filter(e=>e.type===n.XFZ.Transfer);return(0,s.jsxs)(m.az,{children:[(0,s.jsx)(m.az,{p:"sm",children:(0,s.jsxs)(m.az,{id:"LYS-graph-root",bg:"surface.s2",br:"md",cursor:"pointer",onClick:u,children:[(0,s.jsxs)(m.so,{id:e.graphId,py:"md",px:"xs",position:"relative",children:[c.map((e,t)=>{var a;return(0,s.jsx)(m.az,{w:"".concat(100/c.length,"%"),children:(0,s.jsx)(ez,{month:e,avgRating:d[t],appearances:(null==(a=l[e])?void 0:a.length)||0,showAppearances:r,showMonth:t%2!=0})},e)}),(0,s.jsx)(eA,{}),(0,s.jsx)(eS,{injuries:p,transfers:h,yearAvgRating:e.yearAvgRating,containerId:e.containerId,graphId:e.graphId})]}),(0,s.jsx)(m.EY,{font:"assistive.micro",color:"onSurface.nLv3",p:"sm",pt:0,pb:"lg",as:"div",children:(0,s.jsx)(E.A,{id:r?"player.summaryNumber":"player.summaryAvg"})})]})}),(0,s.jsx)(eM,{showInjury:!!(null==p?void 0:p.length),showTransfer:!!(null==h?void 0:h.length)})]})};var eE=a(12605),eK=a(33480),eL=a(13731),eI=a.n(eL),eR=a(1139),eG=a.n(eR),eH=a(26194),eF=a.n(eH),eO=a(80734),eD=a(42621);function eY(e){let{uniqueTournamentsMap:t,summary:a}=e,n=Object.values(t),r=a.filter(e=>e.uniqueTournamentId),o=eI()(r,"uniqueTournamentId");n=eF()(n,e=>-1*o[e.id].length);let l=Object.keys(t).reduce((e,t)=>{let a=eG()(o[t],e=>Number(e.value));return e[t]=a,e},{}),i=e=>o[e].length;return(0,s.jsx)(m.az,{pb:"md",children:(0,s.jsx)(eO.n,{children:n.map((e,t)=>(0,s.jsx)(k.tQ,{tournament:e,"data-testid":"summary_tournament_row",children:(0,s.jsxs)(m.so,{px:"lg",hoverBg:"surface.s2",cursor:"pointer",gap:"lg",align:"center",children:[(0,s.jsx)(eK.e,{id:e.id,size:40}),(0,s.jsxs)(m.so,{grow:1,borderTop:t?"onSurface.nLv4":void 0,gap:"lg",align:"center",children:[(0,s.jsxs)(m.az,{py:"sm",grow:1,children:[(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",mb:"xs",as:"div",children:(0,s.jsx)(T.O,{uniqueTournament:e})}),(0,s.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",textTransform:"capitalize",children:(0,s.jsx)(E.A,{id:"player.tournamentAppearances",values:{number:i(e.id)}})})]}),(0,s.jsx)(eD.q,{persist:!0,children:(0,s.jsx)(eE.A,{rating:l[e.id],format:"sideBox"})})]})]})},e.id))})})}var eB=a(49337);function eV(e){let{player:t,lastYearSummary:a,uniqueTournamentsMap:r,containerId:o,graphId:l}=e,{isDesktop:i}=(0,eg.$c)();if(!(null==a?void 0:a.length))return null;let c=(0,e_.AG)(a.filter(e=>e.type===n.XFZ.Event).map(e=>e.value));return(0,s.jsxs)(S.t,{tag:"LastYearSummary",children:[(0,s.jsxs)(m.az,{w:"100%","data-testid":"player_summary",children:[(0,s.jsxs)(m.so,{h:"46",px:"lg",pt:"lg",align:"center",justify:"space-between",children:[(0,s.jsxs)(m.so,{gap:"xs",align:"center",children:[(0,s.jsx)(m.EY,{d:"inline-block",font:"display.small",color:"onSurface.nLv1",lineHeight:"24px",as:"span",children:(0,s.jsx)(E.A,{id:"player.summaryLast12"})}),(0,s.jsx)(ex.D,{type:ex.D.type.AverageRatingPlayer,rating:c,renderImage:e=>(0,s.jsx)(eh.t,{id:t.id,...e})})]}),(0,s.jsx)(m.$n,{variant:"unshielded",colorScheme:"neutral",p:"xs",mr:"-8",onClick:(0,eB.W)(i),children:(0,s.jsx)(eh.G,{rating:c,format:"sideBox"})})]}),(0,s.jsx)(eP,{summary:a,yearAvgRating:c,containerId:o,graphId:l})]}),!ey()(r)&&(0,s.jsx)(eY,{summary:a,uniqueTournamentsMap:r})]})}var eQ=a(78383),eN=a.n(eQ),eW=a(85685),eU=a(39021),eq=function(e){return e.HIGHER="UP",e.LOWER="DOWN",e}(eq||{});let eZ=e=>"".concat(e.vote).concat(":").concat(e.proposedMarketValue),e$=e=>{let[t,a]=e.split(":");return{proposedMarketValue:Number(a),vote:t}};function eX(e){let{currencySign:t,selected:a,inverted:n,voted:r,vote:o}=e;return(0,s.jsxs)(m.so,{bg:"surface.s1",br:"50%",align:"center",justify:"center",w:48,h:48,elevation:2,onClick:()=>{a||r||(o(),(0,R.MZ)((0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(K.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(m.EY,{block:!0,color:"onColor.primary",font:"display.small",children:(0,s.jsx)(E.A,{id:"player.thanksForContribution"})})]}),{autoClose:3e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"}))},direction:n?"column-reverse":"column",cursor:r?"default":"pointer",p:6,border:a?"primary.default":void 0,children:[(0,s.jsx)(K.tSt,{fill:n?"error.default":"success.default",style:{transform:"rotate(".concat(180*!!n,"deg)")}}),(0,s.jsx)(m.az,{my:"xs",br:"50%",bg:"neutral.default",h:16,w:16,children:(0,s.jsx)(m.EY,{lineHeight:"16px",font:"assistive.default",color:"surface.s1",align:"center",as:"div",children:t})})]})}function eJ(e){let{playerId:t,proposedMarketValueRaw:a}=e,r=(0,n.oaz)(a),{canUserVote:o,voteRecord:l,voteHigher:i,voteLower:c}=function(e,t){let[a,s]=(0,eU.A)("pv_".concat(e),null),n=a?e$(a):null,r=(null==n?void 0:n.proposedMarketValue)!==t.value,o=e=>{r&&t&&s(eZ({vote:e,proposedMarketValue:t.value}))};return{canUserVote:r,voteRecord:n,voteHigher:()=>o("UP"),voteLower:()=>o("DOWN")}}(t,a),d=!o&&(null==l?void 0:l.vote)==="DOWN",u=!o&&(null==l?void 0:l.vote)==="UP";return(0,s.jsxs)(m.so,{gap:"sm",children:[(0,s.jsx)(eX,{vote:i,currencySign:r.currencySign,selected:u,voted:!o}),(0,s.jsx)(eX,{vote:c,currencySign:r.currencySign,selected:d,voted:!o,inverted:!0})]})}let e0=function(e){let t=(0,Q.hX)(),a=(0,n.oaz)(e.proposedMarketValueRaw);return(0,s.jsx)(m.az,{p:["sm",0],mb:"sm",children:(0,s.jsxs)(m.so,{p:"sm",br:"lg",bg:"surface.s2",children:[(0,s.jsxs)(m.az,{py:"sm",px:"md",children:[(0,s.jsx)(m.EY,{font:"assistive.micro",color:"onSurface.nLv3",mb:"xxs",align:"center",as:"div",textTransform:"uppercase",children:(0,s.jsx)(E.A,{id:"market_value"})}),(0,s.jsx)(m.EY,{font:"display.medium",color:"sofaSingles.value",align:"center",as:"div",children:(0,s.jsx)(eW.o,{parsedMoney:a})})]}),(0,s.jsx)(m.cG,{vertical:!0}),(0,s.jsxs)(m.so,{grow:1,align:"center",justify:"space-between",children:[(0,s.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv1",px:"sm",as:"div",children:(0,s.jsx)(E.A,{id:"is_market_value_higher_or_lower"})}),t?(0,s.jsxs)(m.so,{gap:"sm",children:[(0,s.jsx)(eX,{vote:eN(),currencySign:a.currencySign,selected:!1,voted:!1}),(0,s.jsx)(eX,{vote:eN(),currencySign:a.currencySign,selected:!1,voted:!1,inverted:!0})]}):(0,s.jsx)(eJ,{...e})]})]})})};function e1(e){let{player:t,lastYearSummary:a,expectedTransfer:r,hasPentagon:o,uniqueTournamentsMap:l}=e,{slug:i}=t.team.sport,c=i===n.QCR.Football,d=i===n.QCR.Cricket,u=i===n.QCR.IceHockey,p=i===n.QCR.Basketball,h=!!(t.injury&&(u||p)),g=t.team.primaryUniqueTournament&&t.proposedMarketValueRaw;return(0,s.jsx)(S.t,{tag:"PlayerDetailsMobile",children:(0,s.jsxs)(m.so,{direction:"column",gap:"sm","data-testid":"player_info",children:[!t.deceased&&(0,s.jsx)(f.Zp,{children:(0,s.jsx)(V,{player:t,expectedTransfer:r})}),(0,s.jsxs)(f.Zp,{children:[(0,s.jsx)(F,{player:t,inLine:!c&&!d&&!u||u&&!t.injury}),g&&(0,s.jsx)(e0,{playerId:t.id,proposedMarketValueRaw:t.proposedMarketValueRaw})]}),!!a&&(0,s.jsx)(f.Zp,{children:(0,s.jsx)(eV,{player:t,lastYearSummary:a,uniqueTournamentsMap:l,containerId:"LYS-incidents-mobile",graphId:"js-LYS-ref-graph-mobile"})}),o&&(0,s.jsx)($,{player:t}),c&&(0,s.jsx)(em,{player:t}),h&&(0,s.jsx)(D,{player:t})]})})}function e2(e){let{player:t,lastYearSummary:a,expectedTransfer:r,uniqueTournamentsMap:o}=e,{slug:l}=t.team.sport,i=l===n.QCR.Football,c=l===n.QCR.Cricket,d=l===n.QCR.IceHockey,u=l===n.QCR.Basketball,p=!!(t.injury&&(d||u)),h=t.team.primaryUniqueTournament&&t.proposedMarketValueRaw,g=!!a;return(0,s.jsx)(S.t,{tag:"PlayerDetailsDesktop",children:(0,s.jsx)(f.Zp,{children:(0,s.jsxs)(m.so,{children:[(0,s.jsxs)(m.az,{w:["100%",i||p?"50%":"100%"],"data-testid":"player_info",p:"sm",children:[!t.deceased&&(0,s.jsx)(V,{player:t,expectedTransfer:r}),(0,s.jsx)(F,{player:t,inLine:!i&&!c&&!d&&!u||!p}),h&&(0,s.jsx)(e0,{playerId:t.id,proposedMarketValueRaw:t.proposedMarketValueRaw}),g&&(0,s.jsx)(em,{player:t})]}),i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.cG,{vertical:!0}),(0,s.jsx)(m.so,{direction:"column",w:["100%","50%"],children:g?(0,s.jsx)(eV,{player:t,lastYearSummary:a,uniqueTournamentsMap:o,containerId:"LYS-incidents-mobile",graphId:"js-LYS-ref-graph-mobile"}):(0,s.jsx)(m.az,{p:"sm",children:(0,s.jsx)(em,{player:t})})})]}),p&&(0,s.jsx)(D,{player:t})]})})})}var e9=a(94446),e5=a(494),e3=a(18040),e4=a(42901),e8=a(46009),e6=a(64073),e7=a(8973),te=a(7263),tt=a(10794),ta=a(24159),ts=a(51246);let tn=e=>{let{id:t,slug:a}=e,{isMobile:n}=(0,eg.$c)();return(0,s.jsx)(k.N_,{routeKey:"manager",params:{id:t,slug:a},children:(0,s.jsxs)(m.so,{px:"md",py:"xs",bg:["primary.default","overlay.darken1"],align:"center",br:"lg",children:[(0,s.jsx)(m.EY,{lineHeight:"16px",font:"assistive.default",c:["surface.s1","onColor.primary"],mr:"xxs",children:(0,s.jsx)(E.A,{id:"manager.profile"})}),(0,s.jsx)(K.CCT,{fill:n?"surface.s1":"onColor.primary"})]})})},tr=e=>{let{id:t,sport:a}=e,{data:r}=(0,X.Ay)([n.qvj.uniqueTournamentSeasons(t),"HEAD"],{fetcher:te.n});return r?(0,s.jsx)(e3.O,{routeKey:"player.compare",query:{leftPlayerId:t},params:{sport:a},Icon:K.cSg,children:(0,s.jsx)(E.A,{id:"compare"})}):null},to=function(e){var t,a;let{player:o}=e,{isDesktop:l}=(0,eg.$c)(),i=n.USm.includes(o.team.sport.slug),c=(0,e5.d4)(tt.JV),d=null==(a=o.country)||null==(t=a.alpha2)?void 0:t.toLowerCase(),u=o.team.id&&!(o.retired||"no-team"===o.team.slug)?n.cWY.image(o.team.id):d?"/static/images/flags/".concat(d,".png"):void 0,p=o.team.sport.slug,h=(0,M.KW)(o.dateOfBirthTimestamp),g=o.deceased,f=o.retired,y=r.Gh.includes(p);return(0,s.jsx)(e4.z,{bgImageSrc:u,flexProps:{px:0,py:0},elevation:[void 0,2],children:(0,s.jsxs)(m.so,{w:"100%",bg:["surface.s1",void 0],justify:"space-between",align:"center",p:["lg","xl"],pr:["lg","sm"],children:[(0,s.jsxs)(m.so,{grow:2,w:"100%",align:"center",children:[(0,s.jsx)(e9.t,{id:o.id,name:o.slug,size:112,mr:["lg","xl"],grayscale:o.deceased}),(0,s.jsxs)(m.so,{align:"flex-start",direction:"column",children:[(0,s.jsxs)(m.so,{gap:"sm",align:"center",mb:["xxs","sm"],children:[(0,s.jsx)(m.EY,{font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],m:0,as:"h2","data-testid":"player_name",ellipsis:!0,whiteSpace:"nowrap",overflow:"hidden",maxW:"400px",children:(0,s.jsx)(ta.c,{entity:o})}),l&&!g&&!f&&(0,s.jsx)(e8.e,{id:o.id,entity:n.bq7.Players,location:e7.y.Header,type:e7.b.Player,isOnOverlay:!0})]}),(0,s.jsxs)(m.so,{wrap:"wrap",align:"center",gap:"md",children:[o.deceased&&(0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(e9.p,{id:o.team.id,name:o.team.name,national:o.team.national,size:l?32:16,mr:"xs"}),(0,s.jsx)(m.EY,{font:["assistive.default","display.medium"],c:["onSurface.nLv3","onColor.primary"],children:(0,s.jsx)(E.A,{id:"deceasedYear",values:{year:void 0}})})]}),y&&(0,s.jsx)(tr,{id:o.id,sport:p}),o.managerId&&(0,s.jsx)(tn,{id:o.managerId,slug:p})]})]})]}),l?(0,s.jsxs)(m.so,{direction:"column",display:["none","flex"],justify:"center",grow:1,children:[i&&!g&&!f&&(0,s.jsx)(m.az,{children:(0,s.jsxs)(e6.K,{id:o.id,name:o.name,entity:n.bq7.Players,type:e7.b.Player,children:[(0,s.jsx)(e9.t,{size:32,mr:"sm",style:{verticalAlign:"top"},id:o.id,name:o.slug,grayscale:o.deceased}),(0,s.jsx)(m.EY,{font:"display.medium",color:"primary.default",mr:"sm",children:(0,s.jsx)(ta.c,{entity:o})})]})}),h>=16&&(0,s.jsx)(ts.Ay,{player:o,locale:c})]}):(0,s.jsx)(m.az,{children:!g&&!f&&(0,s.jsx)(e8.e,{id:o.id,entity:n.bq7.Players,location:e7.y.Header,type:e7.b.Player})})]})})};var tl=a(84942);function ti(e){let t=(0,z.A)(),a=(0,tl.s)(e.team,t.locale),r=t.formatMessage({id:e.team.slug,defaultMessage:a});return(0,s.jsx)(k.gT,{team:e.team,sport:n.QCR.Football,children:(0,s.jsxs)(m.so,{px:"lg",py:"sm",justify:"space-between",hoverBg:"surface.s2",cursor:"pointer",children:[(0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(Y.p,{national:!0,size:40,id:e.team.id}),(0,s.jsxs)(m.az,{ml:"lg",children:[(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",mb:"xs",as:"div",children:r}),(0,s.jsxs)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:[(0,s.jsx)(E.A,{id:"debut"}),":\xa0",(0,s.jsx)(P.XU,{value:new Date(1e3*e.debutTimestamp),timeZone:"UTC",...M.or.dateWithShortMonth})]})]})]}),(0,s.jsxs)(m.so,{align:"center",children:[(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",w:24,as:"div",align:"right",children:e.appearances}),(0,s.jsx)(m.EY,{font:"body.medium",color:"onSurface.nLv1",w:24,as:"div",align:"right",ml:"xl",children:e.goals})]})]})})}let tc=function(e){var t;let{playerId:a}=e,{data:r}=(0,X.Ay)(n.qvj.nationalTeamStatistics(a));return(null==r||null==(t=r.statistics)?void 0:t.length)?(0,s.jsxs)(f.Zp,{children:[(0,s.jsx)(m.EY,{font:"display.medium",color:"onSurface.nLv1",as:"div",px:"lg",pt:"md",pb:"xs",align:"center",children:(0,s.jsx)(E.A,{id:"player.nationalTeam"})}),(0,s.jsxs)(m.az,{pb:[0,"lg"],children:[(0,s.jsxs)(m.so,{p:"lg",pb:"sm",justify:"flex-end",align:"center",children:[(0,s.jsx)(m.EY,{font:"body.small",color:"onSurface.nLv3",children:(0,s.jsx)(E.A,{id:"appearances"})}),(0,s.jsx)(m.az,{bg:"onSurface.nLv3",w:1,h:14,mx:"xs"}),(0,s.jsx)(m.EY,{font:"body.small",color:"onSurface.nLv3",children:(0,s.jsx)(E.A,{id:"goals"})})]}),(0,s.jsx)(m.az,{children:r.statistics.map(e=>(0,s.jsx)(ti,{...e},e.team.id))})]})]}):null};var td=a(14861),tu=a(47550),tp=a(84677),tm=a(57258);let th=e=>{let{labelId:t,value:a,prefix:n="",sufix:r="",withPrecision:o=!1}=e;return(0,s.jsxs)(m.az,{w:"33.33%",py:"md",children:[(0,s.jsx)(m.EY,{font:"assistive.micro",color:"onSurface.nLv3",textTransform:"uppercase",align:"center",block:!0,children:(0,s.jsx)(E.A,{id:t})}),(0,s.jsxs)(m.EY,{align:"center",font:"display.medium",block:!0,children:[void 0!==a?n:"","number"==typeof a&&o?a.toFixed(tm.J$):null!=a?a:"-",void 0!==a?r:""]})]})};function tg(e){let{fantasyPlayer:t,asCard:a}=e;return t?(0,s.jsxs)(f.HH,{isCard:a,children:[a?(0,s.jsx)(f.Zp.Header,{titleId:"overview"}):(0,s.jsx)(m.EY,{font:"display.small",px:"lg",pt:"sm",block:!0,children:(0,s.jsx)(E.A,{id:"overview"})}),(0,s.jsx)(m.az,{p:"sm",children:(0,s.jsxs)(m.so,{bg:"surface.s2",br:"lg",wrap:"wrap",children:[(0,s.jsx)(th,{labelId:"pts_per_match",value:t.averageScore,withPrecision:!0}),(0,s.jsx)(th,{labelId:"player_form",value:t.form,withPrecision:!0}),(0,s.jsx)(th,{labelId:"total_pts",value:t.totalScore}),(0,s.jsx)(th,{labelId:"player_price",value:t.price,prefix:tm.lU,sufix:"M",withPrecision:!0}),(0,s.jsx)(th,{labelId:"selected",value:t.ownedPercentage,sufix:"%",withPrecision:!0}),(0,s.jsx)(th,{labelId:"position",value:(0,s.jsx)(I.F,{id:t.position,fantasyShort:!0})})]})})]}):null}var tf=a(54053),ty=a(65078),tx=a(34041),t_=a(51942),tv=a(30479);let tj=e=>{var t,a;let{fixture:r,playerId:o,teamId:l}=e,[c,d]=(0,i.useState)(!1),u=(0,ty.g3)(),{data:p}=(0,X.Ay)(c?n.lVT.eventPointsBreakdown(r.eventId,o):null,{refreshInterval:3e4}),h=u?r.awayTeamId:r.homeTeamId,g=u?r.homeTeamId:r.awayTeamId,f=null!=(t=u?r.awayScore:r.homeScore)?t:"",y=null!=(a=u?r.homeScore:r.awayScore)?a:"",x=f===y,_=h===l&&f>y||g===l&&fd(!0),children:j}),(0,s.jsxs)(tf.A,{isOpen:c,setIsOpen:d,children:[(0,s.jsxs)(m.az,{w:tm.or,p:"lg",children:[(0,s.jsx)(m.EY,{font:"display.medium",block:!0,children:(0,s.jsx)(E.A,{id:"points_breakdown"})}),(0,s.jsx)(m.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(tu.f5,{fantasyRound:r.fantasyRound,isShort:!0})})]}),(0,s.jsx)(t_.GE,{fixture:r,points:null==p?void 0:p.points})]})]}):(0,s.jsx)(k.N_,{routeKey:"event",params:{id:r.eventCustomId,name:r.eventSlug},hash:(0,tv.HL)({id:r.eventId}),children:j})};function tb(e){let{fantasyPlayer:t,asCard:a}=e,{data:r}=(0,X.Ay)(n.lVT.playerFormAndFixtures(t.id,!0)),o=[...(null==r?void 0:r.form)||[],...(null==r?void 0:r.fixtures)||[]].sort((e,t)=>e.eventStartTimestamp-t.eventStartTimestamp);return o.length?(0,s.jsxs)(f.HH,{isCard:a,children:[a?(0,s.jsx)(f.Zp.Header,{titleId:"season_results"}):(0,s.jsx)(m.EY,{font:"display.small",px:"lg",pt:"sm",block:!0,children:(0,s.jsx)(E.A,{id:"season_results"})}),(0,s.jsx)(m.az,{py:"sm",children:o.map(e=>(0,s.jsx)(tj,{fixture:e,teamId:t.team.id,playerId:t.player.id},e.eventStartTimestamp))})]}):null}function tk(e){let{playerId:t,inMobilePanel:a}=e,[r,o]=(0,i.useState)(),{data:l}=(0,X.Ay)(r?n.lVT.competitionPlayer(r.fantasyPlayerId):null),{data:c}=(0,X.Ay)(n.lVT.playerCompetitions(t)),d=(null==c?void 0:c.competitions)||[];if((0,i.useEffect)(()=>{o(d[0])},[d.length,t]),!r)return null;let u=(0,s.jsx)(m.ms,{items:d||[],renderItem:e=>(0,s.jsx)("span",{children:null==e?void 0:e.seasonName}),selectedItem:r,onSelectedItemChange:e=>o(e.selectedItem||void 0)});return(0,s.jsx)(f.HH,{isCard:!a,children:(0,s.jsxs)(m.so,{direction:"column",p:["sm",0],gap:["sm",0],children:[a?(0,s.jsx)(f.Zp,{children:(0,s.jsx)(m.az,{p:"sm",children:u})}):(0,s.jsx)(f.Zp.Header,{titleId:"fantasy_statistics",actionComponent:u,variant:"left-aligned-desktop"}),(0,s.jsx)(tg,{fantasyPlayer:null==l?void 0:l.player,asCard:!!a}),!!l&&(0,s.jsx)(tb,{fantasyPlayer:l.player,asCard:!!a})]})})}var tw=a(3898),tT=a(23685),tC=a(86679),tS=a(56566),tA=a(69739);let tM=(0,i.memo)(function(e){var t;let{sport:a,player:r,hasPentagon:o}=e,{isFantasyEnabled:l,showFantasyEntry:i}=(0,tp.t)(),{showFantasyStatistics:c}=(0,tC.A)({showFantasyStatistics:{route:n.lVT.playerCompetitions(r.id),skipCheck:!l}},[r.id,l]);return(0,s.jsxs)(S.t,{tag:"PlayerSidebar",children:[o&&(0,s.jsx)($,{player:r}),(0,s.jsx)(tA.default,{player:r,sport:a}),(0,s.jsx)(tT.Y,{utId:null==(t=r.team.primaryUniqueTournament)?void 0:t.id,location:"player_screen"}),c&&(0,s.jsx)(s.Fragment,{children:i?(0,s.jsx)(tk,{playerId:r.id}):(0,s.jsx)(tu.pk,{utIds:null})}),(0,s.jsx)(tS.A,{player:r}),(0,s.jsx)(eD.q,{persist:!0,children:(0,s.jsx)(tw.OE,{playerId:r.id})}),(0,s.jsx)(td.i,{id:"player.DESKTOP_SIDEBAR"})]})},function(e,t){return e.player.id===t.player.id}),tz=()=>(0,s.jsxs)(f.Zp,{children:[(0,s.jsx)(f.Zp.Header,{titleId:"player.transferHistory"}),(0,s.jsxs)(m.so,{direction:["column","row"],children:[(0,s.jsx)(m.az,{w:["100%","50%"],h:[278,328],p:"sm",children:(0,s.jsx)(m.az,{h:174,bg:"surface.s2",br:"lg"})}),(0,s.jsx)(m.az,{w:["100%","50%"],borderTop:["onSurface.nLv4",void 0],mt:["sm",0],pt:["sm",0],pb:"lg",h:[337,328]})]})]}),tP=g()(()=>a.e(3699).then(a.bind(a,23699)),{loadableGenerated:{webpack:()=>[23699]},ssr:!1,loading:()=>(0,s.jsx)(tz,{})});function tE(e){let{player:t,transfers:a,...r}=e,o=t.team.sport,l=t.team.primaryUniqueTournament,i=o.slug===n.QCR.Football,c=o.slug===n.QCR.Basketball,d=v.v.includes(o.slug),u=a?a.sort((e,t)=>t.transferDateTimestamp-e.transferDateTimestamp):null,p=u&&1e3*u[0].transferDateTimestamp>Date.now()?u[0]:null;return(0,s.jsxs)(y.Ay,{pb:"md",children:[(0,s.jsx)(C,{player:t,sport:o,uniqueTournament:l}),(0,s.jsxs)(y.xA,{children:[(0,s.jsxs)(y.fv,{grow:2,children:[(0,s.jsx)(to,{player:t}),(0,s.jsx)(e2,{player:t,expectedTransfer:p,...r}),d&&(0,s.jsx)(_.default,{player:t,asCard:!0}),(0,s.jsx)(f.Zp,{children:(0,s.jsx)(m.az,{className:"player-matches-section",children:(0,s.jsx)(x.A,{id:t.id,entity:n.wNW.Player,player:t,transfers:a})})}),(i||c)&&(0,s.jsx)(tP,{playerId:t.id,transfers:a,sport:t.team.sport.slug,proposedMarketValueRaw:t.proposedMarketValueRaw}),(0,s.jsx)(tc,{playerId:t.id})]}),(0,s.jsx)(y.fv,{grow:1,children:(0,s.jsx)(tM,{player:t,sport:o.slug,hasPentagon:r.hasPentagon})})]})]})}var tK=a(96913),tL=a(28132);let tI=g()(()=>a.e(3699).then(a.bind(a,23699)),{loadableGenerated:{webpack:()=>[23699]},ssr:!1,loading:()=>(0,s.jsx)(tz,{})});function tR(e){var t;let{player:a,transfers:r,...o}=e,l=a.team.sport.slug===n.QCR.Football,i=a.team.sport.slug===n.QCR.Basketball,c=a.team.sport.slug===n.QCR.AmericanFootball,d=r?r.sort((e,t)=>t.transferDateTimestamp-e.transferDateTimestamp):null,u=d&&1e3*d[0].transferDateTimestamp>Date.now()?d[0]:null;return(0,s.jsx)(m.tU.Panel,{tabKey:i||c?tL.H.Info:tL.H.Details,children:(0,s.jsxs)(f.BU,{children:[(0,s.jsx)(e1,{player:a,expectedTransfer:u,...o}),(l||i)&&(0,s.jsx)(tI,{playerId:a.id,transfers:r,sport:a.team.sport.slug,proposedMarketValueRaw:a.proposedMarketValueRaw}),(0,s.jsx)(tT.Y,{utId:null==(t=a.team.primaryUniqueTournament)?void 0:t.id,location:"player_screen"}),(0,s.jsx)(tc,{playerId:a.id}),(0,s.jsx)(tS.A,{player:a})]})})}function tG(e){let{playerId:t}=e;return(0,s.jsx)(m.tU.Panel,{tabKey:tL.H.PlayerFantasy,children:(0,s.jsx)(tk,{playerId:t,inMobilePanel:!0})})}var tH=a(76868);let tF=e=>{let[t,a]=(0,i.useState)(void 0),{data:s,isLoading:r}=(0,X.Ay)(n.qvj.uniqueTournaments(e));return{selectedTournament:t,setSelectedTournament:a,uniqueTournaments:(null==s?void 0:s.uniqueTournaments)||[],isFetching:r}},tO=g()(()=>a.e(3572).then(a.bind(a,93572)),{loadableGenerated:{webpack:()=>[93572]}});function tD(e){let{player:t,transfers:a}=e,{hasMatches:r}=(0,tC.A)({hasMatches:{route:n.qvj.events(t.id)}}),o=tF(t.id);return(0,s.jsx)(m.tU.Panel,{tabKey:tL.H.Matches,children:r?(0,s.jsx)(tO,{id:t.id,entity:n.wNW.Player,player:t,transfers:a,playerFilters:o}):(0,s.jsx)(m.az,{p:"sm",children:(0,s.jsx)(f.Zp,{children:(0,s.jsx)(tH.p,{graphic:"no-events",titleMessageId:"basic.noEvents",descriptionMessageId:"eventList.noAvailableEvents"})})})})}let tY=g()(()=>Promise.resolve().then(a.bind(a,69739)),{loadableGenerated:{webpack:()=>[69739]}});function tB(e){let{player:t,sport:a}=e;return(0,s.jsx)(m.tU.Panel,{tabKey:[n.QCR.AmericanFootball,n.QCR.Basketball].includes(a)?tL.H.Season:tL.H.Statistics,children:(0,s.jsx)(tY,{player:t,sport:t.team.sport.slug,asCards:!0})})}function tV(e,t){return[n.QCR.AmericanFootball,n.QCR.Basketball].includes(e)?t.find(e=>e.tabKey===tL.H.Season&&!1===e.isHidden)?tL.H.Season:tL.H.Info:tL.H.Details}var tQ=a(18916);let tN=g()(()=>Promise.resolve().then(a.bind(a,87996)),{loadableGenerated:{webpack:()=>[87996]}});function tW(e){let{player:t}=e;return(0,s.jsx)(m.tU.Panel,{tabKey:tL.H.Career,children:(0,s.jsx)(tN,{player:t})})}function tU(e){var t;let{player:a,transfers:o,...l}=e,i=a.team.sport,c=a.team.primaryUniqueTournament,{isFantasyEnabled:d,showFantasyEntry:u}=(0,tp.t)(),[p,h]=(0,tv.Ay)({routeKey:r.xW.Player,params:{slug:a.slug,id:a.id}}),{hasStatisticsTab:g,hasFantasyData:f}=(0,tC.A)({hasStatisticsTab:{route:n.qvj.uniqueTournamentSeasons(a.id),skipCheck:!tQ.F0.includes(i.slug)},hasFantasyData:{route:n.lVT.playerCompetitions(a.id),skipCheck:!d}},[a.id,d]),y=u&&f,x=v.v.includes(i.slug)&&g,_=(t=i.slug,[n.QCR.AmericanFootball,n.QCR.Basketball].includes(t)?[{tabKey:tL.H.Season,item:"season",isHidden:!g},{tabKey:tL.H.Matches,item:"games",values:{sport:(0,R.ap)(t)}},{tabKey:tL.H.Career,item:"am_football_career_tab",isHidden:!x},{tabKey:tL.H.Info,item:"info"},{tabKey:tL.H.PlayerFantasy,item:"fantasy_game",isHidden:!y}]:[{tabKey:tL.H.Details,item:"details"},{tabKey:tL.H.Statistics,item:"statistics",isHidden:!g},{tabKey:tL.H.Matches,item:"matches",values:{sport:(0,R.ap)(t)}},{tabKey:tL.H.Career,item:"am_football_career_tab",isHidden:!x},{tabKey:tL.H.PlayerFantasy,item:"fantasy_game",isHidden:!y}]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C,{player:a,sport:i,uniqueTournament:c}),(0,s.jsx)(to,{player:a}),(0,s.jsx)(tK.A,{id:a.id,location:tK.m.PlayerPage,initialTabKey:(null==p?void 0:p.tab)||tV(i.slug,_),customControls:[(null==p?void 0:p.tab)||tV(i.slug,_),e=>h("tab",e)],tabs:_,children:(0,s.jsxs)(m.az,{bg:"surface.s0",children:[(0,s.jsx)(tR,{player:a,transfers:o,...l}),g&&(0,s.jsx)(tB,{player:a,sport:i.slug}),x&&(0,s.jsx)(tW,{player:a}),(0,s.jsx)(tD,{player:a,transfers:o}),y&&(0,s.jsx)(tG,{playerId:a.id})]})})]})}var tq=a(95669),tZ=a.n(tq),t$=a(19643),tX=a(50417),tJ=a(26331),t0=a(6675);function t1(e){var t,a;let{player:n}=e,r=(0,tJ.A)(),i=n.team.sport.slug,c=o.z.getTranslatedCanonicalRoute(r,"player",{id:n.id,slug:n.slug,sport:i}).route,d=null!=(a=null==(t=n.country.alpha2)?void 0:t.toLowerCase())?a:"",u=n.createdByEditor?!(0,t$.N)(d,r):(0,tX.v)(i,r);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(tZ(),{children:[(0,s.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(c)}),u&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsx)(t0.N9,{player:n}),(0,s.jsx)(l.Ay,{metaKey:"player",values:{player:(0,tl.s)(n,r),team:(0,tl.s)(n.team,r)}})]})}let t2=(0,i.memo)(function(e){var t;let{player:a}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t1,{player:a}),(0,s.jsxs)(c.Ws.Provider,{value:a.team.sport.slug,children:[(0,s.jsx)(u.$B,{children:(0,s.jsx)(tU,{...e})}),(0,s.jsx)(u.h6,{children:(0,s.jsx)(tE,{...e})}),(0,s.jsx)(d.X,{}),(0,s.jsx)(p.A,{entity:n.bq7.MutedPlayers,entityGroup:"player",id:a.id,entityTournamentId:null==(t=a.team.primaryUniqueTournament)?void 0:t.id})]})]})},function(e,t){return e.player.id===t.player.id});var t9=a(70389),t5=a(71937),t3=a(25862),t4=a(65097);function t8(e){return"error"in e?(0,s.jsx)(t4.default,{statusCode:e.error.code||404}):(0,s.jsx)(l.an,{value:{seoContent:e.seoContent},children:(0,s.jsx)(t2,{...e})})}t8.getInitialProps=t5.A.getInitialPageProps(e=>async function(t){let{req:s,res:l,query:i,...c}=t,d=s?s._originalUrl:c.asPath,u=o.z.getCurrentLocale(d),p=s&&s.params?s.params:i,m=Number(p.id),h=p.slug,[g,f,y,x,_]=await Promise.allSettled([n.uuS.fetchPlayerDetails(m),n.uuS.fetchPlayerTransferHistory(m),n.uuS.hasPlayerPentagon(m),n.uuS.fetchPlayerLastYearSummary(m),n.sdF.getSeoContent(n.wNW.Player,m,u)]);try{let t,s;if("rejected"===g.status)throw Error(g.reason);"fulfilled"===x.status&&x.value.summary.length&&(t=x.value.summary,s=x.value.uniqueTournamentsMap);let n=g.value.player,i="fulfilled"===f.status?f.value.transferHistory:void 0,c="fulfilled"===_.status?_.value.content:void 0,d="fulfilled"===y.status&&y.value,v=p.sport||n.team.sport.slug;if(!r.Hk.includes(v))throw Error("Unsupported sport");let j=!!p.sport,b=r.hL.includes(v);l&&((n.slug!==h||n.id!==m)&&(l.writeHead(301,{Location:o.z.getTranslatedRoute(u,"player",{id:n.id,slug:n.slug,sport:v}).route}),l.end()),!j&&b&&(l.writeHead(301,{Location:o.z.getTranslatedRoute(u,"player",{id:n.id,slug:n.slug,sport:v}).route}),l.end()));let k=(await a(69099)("./route.player".concat(j?"":".old",".json"))).default;return e.dispatch((0,t9.Od)(k)),e.dispatch((0,t3.Vy)(v)),{player:n,transfers:i,seoContent:c,lastYearSummary:t,uniqueTournamentsMap:s,hasPentagon:d}}catch(e){return{error:{code:404}}}})},25725:(e,t,a)=>{var s=a(81648),n=a(78492),r=a(68988),o=a(91544);e.exports=function(e,t){return function(a,l){var i=o(a)?s:n,c=t?t():{};return i(a,e,r(l,2),c)}}},26194:(e,t,a)=>{var s=a(83965),n=a(37390),r=a(45895),o=a(48877);e.exports=r(function(e,t){if(null==e)return[];var a=t.length;return a>1&&o(e,t[0],t[1])?t=[]:a>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),n(e,s(t,1),[])})},28860:(e,t,a)=>{"use strict";a.d(t,{X:()=>_,r:()=>g});var s=a(6029),n=a(21377),r=a(95083),o=a(41249),l=a(55729),i=a(90248),c=a(54409),d=a(54053),u=a(26331),p=a(19168),m=a(71393);let h=(0,a(41735).default)(o.so).withConfig({componentId:"sc-8a28b6f4-0"})(["position:relative;::before{content:'';display:block;position:absolute;top:0;left:0;width:calc(100% - ","px);height:calc(50% - ","px);border-top:","px solid ",";border-left:","px solid ",";}::after{content:'';display:block;position:absolute;bottom:0;right:0;width:calc(100% - ","px);height:calc(50% - ","px);border-right:","px solid ",";border-bottom:","px solid ",";}"],e=>e.borderWidth,e=>e.borderWidth,e=>e.borderWidth,e=>e.borderColor,e=>e.borderWidth,e=>e.borderColor,e=>e.borderWidth,e=>e.borderWidth,e=>e.borderWidth,e=>e.borderColor,e=>e.borderWidth,e=>e.borderColor);function g(e){let{rating:t=10,fontSize:a,borderWidth:n,borderColor:r,backgroundColor:l="scoreRating.s90"}=e;return(0,s.jsx)(h,{w:"88",h:"88",bg:l,align:"center",justify:"center",borderWidth:n||5,borderColor:r||"white",children:(0,s.jsx)(o.EY,{font:"display.large",color:"onColor.primary",align:"center",fontSize:a,children:t})})}var f=a(62859),y=a(19673);let x="rating_intro_displayed";function _(){let[e,t]=(0,l.useState)(!1),{isDesktop:a}=(0,r.$c)(),h=(0,l.useContext)(f.Ws),_=(0,u.A)(),v=(0,y.y)(_);return(0,l.useEffect)(()=>{!((0,m.m)()||h!==n.QCR.Football||new Date>=new Date("2024-10-01"))&&((0,p.yN)(x)||(t(!0),(0,p.IO)(x,!0)))},[]),(0,s.jsxs)(d.A,{header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.so,{position:"relative",align:"center",justify:"center",py:"36",bg:"#f0eedf",br:"lg lg 0 0",mt:[-34,0],mx:[-16,0],children:(0,s.jsx)(g,{rating:5.3,fontSize:42,borderWidth:2,borderColor:"black",backgroundColor:"#b53932"})}),(0,s.jsxs)(o.az,{py:"lg",px:"lg",maxW:["auto",312],children:[(0,s.jsx)(o.EY,{textTransform:"uppercase",font:"assistive.micro",children:(0,s.jsx)(i.A,{id:"whats_new"})}),(0,s.jsx)(o.EY,{m:"0",textTransform:"capitalize",as:"h3",font:["display.extraLarge","display.large"],children:(0,s.jsx)(i.A,{id:"rating_intro_modal_title"})})]})]}),isOpen:e,setIsOpen:t,children:[(0,s.jsxs)(o.az,{as:"ul",py:"sm",m:"0",px:"lg",maxW:["auto",312],children:[(0,s.jsxs)(o.so,{as:"li",align:"flex-start",mb:"lg",children:[(0,s.jsx)(o.az,{w:"32",h:"32",br:"50%",bg:"primary.highlight",flex:"0 0 32px",children:(0,s.jsx)(c.Abd,{m:"xs",w:"24",h:"24",fill:"primary.default"})}),(0,s.jsxs)(o.az,{ml:"lg",children:[(0,s.jsx)(o.EY,{as:"h4",m:"0",font:"display.small",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_enhanced_algorithm"})}),(0,s.jsx)(o.EY,{as:"p",m:"0",pt:"xs",font:"body.mediumParagraph",c:"onSurface.nLv3",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_enhanced_algorithm_text"})})]})]}),(0,s.jsxs)(o.so,{as:"li",align:"flex-start",mb:"lg",children:[(0,s.jsx)(o.az,{w:"32",h:"32",br:"50%",bg:"primary.highlight",flex:"0 0 32px",children:(0,s.jsx)(c.G_L,{m:"xs",w:"24",h:"24",fill:"primary.default"})}),(0,s.jsxs)(o.az,{ml:"lg",children:[(0,s.jsx)(o.EY,{as:"h4",m:"0",font:"display.small",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_informative_insights"})}),(0,s.jsx)(o.EY,{as:"p",m:"0",pt:"xs",font:"body.mediumParagraph",c:"onSurface.nLv3",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_informative_insights_text"})})]})]}),(0,s.jsxs)(o.so,{as:"li",align:"flex-start",mb:"lg",children:[(0,s.jsx)(o.az,{w:"32",h:"32",br:"50%",bg:"primary.highlight",flex:"0 0 32px",children:(0,s.jsxs)("svg",{style:{margin:4},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M15.3599 7C16.962 7 18.5 8.07866 18.5 10.314V13.1471C18.5 15.4343 17.0773 16.5 15.3599 16.5C13.6297 16.5 12.207 15.5123 12.207 13.1471V10.314C12.207 8.14364 13.745 7 15.3599 7ZM16.8594 10.4829C16.8594 9.19631 16.2571 8.55951 15.3599 8.55951C14.4627 8.55951 13.8476 9.19631 13.8476 10.4829V13.0431C13.8476 14.3167 14.4627 14.9405 15.3599 14.9405C16.2571 14.9405 16.8594 14.3167 16.8594 13.0431V10.4829Z",fill:"var(--primary-default)"}),(0,s.jsx)("path",{d:"M5.5 16.2401V14.9405C5.5 14.8626 5.55127 14.8106 5.62817 14.8106H7.70445V9.9761H5.62817C5.55127 9.9761 5.5 9.92412 5.5 9.84614V8.54655C5.5 8.46858 5.55127 8.41659 5.62817 8.41659H7.14052C7.49938 8.41659 7.73008 8.23465 7.73008 7.81878V7.25996C7.73008 7.18198 7.78135 7.13 7.85825 7.13H9.2168C9.2937 7.13 9.34497 7.18198 9.34497 7.25996V14.8106H11.3956C11.4725 14.8106 11.5238 14.8626 11.5238 14.9405V16.2401C11.5238 16.3181 11.4725 16.3701 11.3956 16.3701H5.62817C5.55127 16.3701 5.5 16.3181 5.5 16.2401Z",fill:"var(--primary-default)"}),(0,s.jsx)("rect",{x:"2",y:"20",width:"20",height:"2",fill:"var(--primary-default)"}),(0,s.jsx)("rect",{x:"20",y:"15",width:"2",height:"7",fill:"var(--primary-default)"}),(0,s.jsx)("rect",{x:"2",y:"2",width:"2",height:"7",fill:"var(--primary-default)"}),(0,s.jsx)("rect",{x:"2",y:"2",width:"20",height:"2",fill:"var(--primary-default)"})]})}),(0,s.jsxs)(o.az,{ml:"lg",flex:"1 1 auto",children:[(0,s.jsx)(o.EY,{as:"h4",m:"0",font:"display.small",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_visual_tweaks"})}),(0,s.jsx)(o.EY,{as:"p",m:"0",pt:"xs",font:"body.mediumParagraph",c:"onSurface.nLv3",children:(0,s.jsx)(i.A,{id:"rating_intro_modal_visual_tweaks_text"})})]})]})]}),a?(0,s.jsx)(o.az,{p:"lg",children:(0,s.jsxs)(o.EY,{block:!0,as:"a",color:"primary.default",font:"display.small",href:v,target:"_blank",onClick:()=>{t(!1)},children:[(0,s.jsx)(i.A,{id:"rating_learn_more_button"}),(0,s.jsx)(c.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})}):(0,s.jsx)(o.$n,{onClick:()=>{window.open(v,"_blank"),t(!1)},mx:"lg",mt:"lg",w:"calc(100% - 32px)",children:(0,s.jsx)(i.A,{id:"learn_more"})})]})}},34041:(e,t,a)=>{"use strict";a.d(t,{DK:()=>s.D,EM:()=>s.E,UI:()=>n.U});var s=a(12471),n=a(81213)},34264:(e,t,a)=>{"use strict";a.d(t,{HU:()=>c.HU,KG:()=>i,Sz:()=>c.Sz,Bg:()=>c.Bg});var s=a(6029),n=a(78383),r=a.n(n),o=a(93024),l=a(1689);function i(e){let{attributes:t,pentagonLayers:a,isAnotherPlayerCompare:n,onGraphClick:i=r()}=e;return(0,s.jsx)(o.A,{data:t,isAnotherPlayerCompare:n,children:(0,s.jsx)(l.A,{data:a,onGraphClick:i})})}var c=a(72555)},35729:(e,t,a)=>{"use strict";a.r(t),a.d(t,{TeamMedia:()=>i,default:()=>c});var s=a(6029),n=a(21377),r=a(45860),o=a(17239),l=a(11998);function i(e){let{teamId:t,hideTitle:a}=e,{data:i,isLoading:c,error:d}=(0,r.Ay)(n.cWY.media(t));return c?(0,s.jsx)(l.n,{}):!i||d?null:(0,s.jsx)(o.$,{highlights:i.media,hideTitle:a})}let c=i},39895:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(90142),n=a(6029),r=a(60449),o=a.n(r),l=a(55729),i=a(41735);a(82823);var c=a(83509),d=a(63296);let u=i.default.svg.withConfig({componentId:"SvgWrapper"})` ${c.G} ${d.x} ${e=>e.isRtl&&"\n transform: scaleX(-1);\n "} `,p=e=>{var{fill:t,fillOpacity:a,width:r=24,height:c=24,viewBox:d="0 0 24 24",title:p,children:m,style:h={},isRtlPrevented:g}=e,f=(0,s.T)(e,["fill","fillOpacity","width","height","viewBox","title","children","style","isRtlPrevented"]);let y=(0,l.useContext)(i.ThemeContext),x=o()(y.colors,t||"",t),{transform:_}=h,v=(0,s.T)(h,["transform"]),j="rtl"===y.settings.textDirection&&!g;return(0,n.jsxs)(u,Object.assign({width:r,height:c,viewBox:d,fill:x,style:h},f,{isRtl:j},{children:[p&&(0,n.jsx)("title",{children:p}),l.Children.map(m,e=>{let t=Object.assign(Object.assign({},f),{style:v,fill:x,fillOpacity:a});return t["data-testid"]=void 0,(0,l.isValidElement)(e)?(0,l.cloneElement)(e,t):e})]}))}},47430:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var s=a(6029),n=a(41249),r=a(55729),o=a(90248),l=a(54409),i=a(54053),c=a(34264),d=a(72555);let u=e=>{let{attributes:t}=e,[a,u]=(0,r.useState)(!1);return t?(0,s.jsxs)(n.az,{position:"relative",children:[(0,s.jsx)(l.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClick:()=>u(!0)}),(0,s.jsx)(i.A,{isOpen:a,setIsOpen:u,header:"player.info.attributeOverview",children:(0,s.jsxs)(n.az,{px:"lg",children:[(0,s.jsx)(n.EY,{font:"body.medium",color:"onSurface.nLv1",mb:"lg",w:280,as:"div",children:(0,s.jsx)(o.A,{id:"player.info.attributeOverviewDescription"})}),t.sort().map(e=>{var t;return(0,s.jsxs)(n.az,{py:"sm",children:[(0,s.jsx)(n.EY,{font:"assistive.default",color:"onSurface.nLv3",textTransform:"uppercase",mr:"lg",children:c.HU[e]}),(0,s.jsx)(n.EY,{font:"body.small",color:"onSurface.nLv1",children:(0,s.jsx)(o.A,{id:null!=(t=d.Q1[e])?t:e})})]},e)})]})})]}):null}},49337:(e,t,a)=>{"use strict";function s(e){return function(){if(e){let e=document.querySelector(".player-matches-section");e&&e.scrollIntoView({behavior:"smooth",block:"nearest"});return}let t=document.querySelector('[data-tabid="matches"]');t&&t.click()}}a.d(t,{W:()=>s})},50284:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/player",function(){return a(25399)}])},51246:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>h,mb:()=>p,op:()=>m});var s=a(6029),n=a(21377),r=a(41249),o=a(55729),l=a(90248),i=a(42525),c=a(19451),d=a(84942),u=a(19168);let p="_player_has_form",m="_player_has_pentagon",h=function(e){let{player:t,locale:a}=e,[h,g]=(0,o.useState)(void 0),[f,y]=(0,o.useState)(void 0),x=(0,c.vf)(a),_="".concat(n.yuv).concat(x?"/".concat(x):"","/embed/player/").concat(t.id,"?widgetTheme=light"),v="sofa-player-embed-".concat(t.id),j="height:".concat(418+232*!!h+180*!!f,"px!important;max-width:730px!important;width:100%!important;"),b=''),k=(0,d.s)(t,a),w=async()=>{let e=await (0,u._9)(t.id+p),a=await (0,u._9)(t.id+m);y("true"===e),g("true"===a)};return(0,o.useEffect)(()=>{y(void 0),g(void 0)},[t.id]),(0,s.jsx)(r.az,{w:"100%",display:["none","block"],children:(0,s.jsx)(i.C,{id:"player_"+t.id.toString(),callToAction:(0,s.jsx)(l.A,{id:"player_info_embed",values:{playerName:k}}),embedString:b,inverted:!0,onCallToActionClick:w})})}},54075:(e,t,a)=>{"use strict";a.d(t,{M:()=>s.MR});var s=a(19991)},55342:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(6029),n=a(21377),r=a(45860),o=a(65789),l=a(17239);function i(e){let{id:t,isDesktop:a}=e,{data:i}=(0,r.Ay)(n.dVR.highlights(t));return i&&i.highlights.length?(0,s.jsx)(o.BU,{children:(0,s.jsx)(l.$,{highlights:i.highlights,hideTitle:!0,isInWidget:a})}):null}},57760:e=>{e.exports=function(e,t){for(var a,s=-1,n=e.length;++s{"use strict";a.d(t,{d:()=>i});var s=a(6029),n=a(95083),r=a(76356),o=a(90248),l=a(54409);let i=e=>{let{isOpen:t,onClick:a}=e;return(0,s.jsx)(r.so,{align:"center",justify:"center",p:"lg",children:(0,s.jsx)(r.I4.button,{onClick:a,padding:"0",cursor:"pointer",children:(0,s.jsxs)(r.so,{align:"center",children:[(0,s.jsx)(n.EY,{lineHeight:"16px",textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(o.A,{id:t?"show_less":"show_more"})}),t?(0,s.jsx)(l.t8v,{fill:"primary.default",ml:"xs"}):(0,s.jsx)(l.QtO,{fill:"primary.default",ml:"xs"})]})})})}},63296:(e,t,a)=>{"use strict";a.d(t,{x:()=>i});var s=a(83217),n=a(60449),r=a.n(n);a(82823);let o={xxs:"2px",xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"24px",xxl:"32px"},l=e=>"string"==typeof e?e.split(" ").map(e=>r()(o,e,e)).join(" "):e,i=(0,s.n)({h:{property:"height",domain:"spacing"},maxH:{property:"maxHeight",domain:"spacing"},minH:{property:"minHeight",domain:"spacing"},w:{property:"width",domain:"spacing"},maxW:{property:"maxWidth",domain:"spacing"},minW:{property:"minWidth",domain:"spacing"},m:{property:"margin",domain:"spacing",transform:l},mt:{property:"marginTop",domain:"spacing"},mb:{property:"marginBottom",domain:"spacing"},ml:{property:"marginLeft",domain:"spacing",rtlProperty:"marginRight"},mr:{property:"marginRight",domain:"spacing",rtlProperty:"marginLeft"},mx:{properties:["marginLeft","marginRight"],domain:"spacing"},my:{properties:["marginTop","marginBottom"],domain:"spacing"},p:{property:"padding",domain:"spacing",transform:l},pt:{property:"paddingTop",domain:"spacing"},pb:{property:"paddingBottom",domain:"spacing"},pl:{property:"paddingLeft",domain:"spacing",rtlProperty:"paddingRight"},pr:{property:"paddingRight",domain:"spacing",rtlProperty:"paddingLeft"},px:{properties:["paddingLeft","paddingRight"],domain:"spacing"},py:{properties:["paddingTop","paddingBottom"],domain:"spacing"}})},65577:(e,t,a)=>{"use strict";a.d(t,{$7:()=>c,$u:()=>i,Ay:()=>u,Co:()=>o,o_:()=>l,uv:()=>d});var s=a(6029),n=a(90547),r=a(41735);let o=8,l=328,i=e=>(0,s.jsx)("svg",{width:"100%",viewBox:"-".concat(o," -").concat(o," ").concat(l+2*o," ").concat(139+2*o),children:e.children}),c=e=>{let{fill:t}=e,a=(0,r.useTheme)();return(0,s.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54z",fill:t||a.colors.surface.s2,fillRule:"evenodd"})},d=e=>{let{fill:t}=e,a=(0,r.useTheme)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{x:l/2-12,y:57.5,fill:"onSurface.nLv1"}),(0,s.jsxs)("g",{fill:t||a.colors.onSurface.nLv1,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54zm0 1H25.23C11.878 1 1.052 11.972 1.052 25.305v88.171C1.051 126.81 11.877 138 25.231 138h277.538c13.354 0 24.18-11.19 24.18-24.524v-88.17C326.949 11.971 316.123 1 302.769 1z"}),(0,s.jsx)("path",{d:"M16 2h1.05v135H16zM118.5 0h1.05v138.77h-1.05zM1 91.959 16 87v1.06L1.023 93zM15.992 50.95 1 46v1.057L16 52z"}),(0,s.jsx)("path",{d:"M26.992 69.5c0-3.043-1.406-5.843-3.908-7.887l-.139-.113h-5.953v1l5.7.02c1.993 1.788 3.216 4.132 3.3 6.678v.302c0 2.63-1.228 5.135-3.3 7.011l-5.7-.011v1h5.956l.139-.116c2.471-2.054 3.905-4.894 3.905-7.884zM12 63h4v.929h-3V75.07h3V76h-4zM28 33.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,s.jsx)("path",{d:"M50 33.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM48.5 56.77v5.256h1.05v-5.257zM54.5 56.775v5.257h1.05v-5.257zM48.5 5v5.256h1.05V5zM54.5 5v5.256h1.05V5zM28 105.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,s.jsx)("path",{d:"M50 105.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM54.5 128.8v5.256h1.05V128.8zM48.5 128.8v5.256h1.05V128.8zM54.5 77v5.256h1.05V77zM48.5 77v5.256h1.05V77zM126 105.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM126.05 33.5c0-1.104.894-2 1.997-2 1.102 0 1.996.896 1.996 2 0 1.105-.894 2-1.996 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.447-1-.996-1a.998.998 0 0 0-.997 1zM312.05 2H311v135h1.05zM209.55 0h-1.05v139h1.05z"}),(0,s.jsx)("path",{d:"M327 91.959 312 87v1.06L326.977 93zM312.008 50.95 327 46v1.057L312 52zM301 69.5c0-3.043 1.406-5.843 3.908-7.887l.139-.113H311v1l-5.7.02c-1.993 1.788-3.216 4.132-3.3 6.678v.302c0 2.63 1.228 5.135 3.3 7.011l5.7-.011v1h-5.955l-.14-.116C302.434 75.33 301 72.49 301 69.5zM316 63h-4v.929h3V75.07h-3V76h4zM301 105.5c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-.991 0c0 12.703-10.298 23-23 23-12.703 0-23-10.297-23-23s10.297-23 23-23c12.702 0 23 10.297 23 23z"}),(0,s.jsx)("path",{d:"M278.994 105.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 128.8v5.256h-1.05V128.8zM274.55 128.8v5.256h-1.05V128.8zM280.55 77v5.256h-1.05V77zM274.55 77v5.256h-1.05V77zM301 33.499c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-1 0c0 12.703-10.297 23-23 23s-23-10.297-23-23 10.297-23 23-23 23 10.297 23 23z"}),(0,s.jsx)("path",{d:"M278.994 33.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 56.77v5.256h-1.05V56.77zM274.55 56.77v5.256h-1.05V56.77zM280.55 5.262v5.257h-1.05V5.262zM274.55 5.262v5.257h-1.05V5.262zM201.992 105.5a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM201.992 33.508a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM148 138c0-8.837 7.163-16 16-16s16 7.163 16 16h-1c0-8.332-6.668-15-15-15s-15 6.668-15 15h-1zM140.042 69.5c0-13.232 10.726-23.958 23.958-23.958 13.232 0 23.958 10.726 23.958 23.958 0 13.232-10.726 23.958-23.958 23.958-13.232 0-23.958-10.726-23.958-23.958zm-1.042 0c0 13.807 11.193 25 25 25s25-11.193 25-25-11.193-25-25-25-25 11.193-25 25z"}),(0,s.jsx)("path",{d:"M162.003 69.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM163.5 2h1v4.355h-1zM163.5 10.71h1v4.355h-1zM163.5 19.42h1v4.354h-1zM163.5 28.13h1v4.354h-1zM163.5 36.839h1v4.355h-1zM163.5 45.548h1v4.355h-1zM163.5 54.258h1v4.355h-1zM163.5 62.968h1v4.355h-1zM163.5 71.677h1v4.355h-1zM163.5 80.387h1v4.355h-1zM163.5 89.097h1v4.355h-1zM163.5 97.806h1v4.355h-1zM163.5 106.516h1v4.355h-1zM163.5 115.226h1v4.355h-1zM163.5 123.935h1v4.355h-1zM163.5 132.645h1V137h-1z"})]})]})};function u(e){let{children:t}=e;return(0,s.jsxs)(i,{children:[(0,s.jsx)(c,{}),(0,s.jsx)(d,{}),t]})}},69099:(e,t,a)=>{var s={"./route.player.compare.json":[62786,2786],"./route.player.json":[41971,1971],"./route.player.old.json":[54584,4584]};function n(e){if(!a.o(s,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],n=t[0];return a.e(t[1]).then(()=>a.t(n,19))}n.keys=()=>Object.keys(s),n.id=69099,e.exports=n},69739:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>e7});var s,n=a(6029),r=a(21377),o=a(21501),l=a(76356),i=a(41249),c=a(55729),d=a(90248),u=a(65789),p=a(75751),m=a(40745),h=a(64082),g=a(41735);!function(e){e.Made="made",e.Missed="missed",e.Total="total"}(s||(s={}));var f=a(97043),y=a(73276),x=a(43139);let _={0:"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"},v=(e,t,a,s)=>{let n=(0,x.A)([0,a],[0,240]),r=(0,x.A)([0,s],[0,102]);return[Math.round(n.invert(e)),Math.round(r.invert(t))]},j=(e,t,a)=>{switch(e){case s.Total:return t+a;case s.Made:return t;case s.Missed:return a;default:return 0}},b=(e,{containerId:t,width:a,height:n,numberOfMatches:r,shotType:o=s.Total,precisionLevel:l=f.K,isTransparentBackground:i},c)=>{let d=document.getElementById(t);if(!d)throw Error("No DOM container element for HeatMap provided");let u=function(e){return e>82?Math.round((1-Math.pow(e/110,.28))*15+5):Math.round((1-Math.pow(e/82,.28))*15+5)}(r||1),p=function(e,t,a,s){let n=(0,y.Cl)(241,103);return e.forEach(({x:e,y:a,made:s,missed:r})=>{let o=j(t,s,r),[l,i]=v(e,a,240,102);n[l][i]=o}),n}(e,o,240,102),m=(0,y.m3)(1e3,_,i,c.setAlpha,.1),h=(0,y.RK)(u,u/3,l),g=(0,y.t6)(p,h,{width:240,height:102,influenceRadius:u,precisionLevel:l}),x=(0,y.Gj)(g,m,{height:102,width:240,gradientScaleFactor:1e3/9,gradientRange:1e3}),b=document.createElement("canvas");b.height=n,b.width=a,b.style.borderRadius="inherit";let k=b.getContext("2d");if(!k)throw Error("Heatmap canvas context not found");k.drawImage(x,0,0,a,n),d.innerHTML="",d.appendChild(b)},k=e=>{let{containerId:t,width:a,height:s,coordinates:r,numberOfMatches:o,shotType:l,isTransparentBackground:d}=e,u=(0,h.T)(e,["containerId","width","height","coordinates","numberOfMatches","shotType","isTransparentBackground"]),p=(0,g.useTheme)();return(0,c.useEffect)(()=>{a&&function(e,t,a){try{b(e,t,a)}catch(e){console.error("In render ice-hockey heatmap",e)}}(r,{containerId:t,width:a,height:s,shotType:l,numberOfMatches:o,precisionLevel:10,isTransparentBackground:!!d},p)},[a,s,r,o,d,l,p.name]),(0,n.jsx)(i.az,Object.assign({id:t,w:a,h:s,position:"absolute",borderRadius:"xs"},u))};var w=a(78383),T=a.n(w),C=a(45860),S=a(46170),A=a(65577),M=a(83351),z=a(19168),P=a(54409);function E(e){let{isOpen:t,setIsOpen:a,...s}=e;return(0,n.jsxs)(i.so,{align:"center",px:"lg",py:"sm",h:"48px",gap:"sm",cursor:"pointer",overflow:"hidden",style:{userSelect:"none"},onClick:()=>{a(e=>!e)},...s,children:[(0,n.jsx)(P.baM,{}),(0,n.jsx)(i.EY,{as:"div",ellipsis:!0,font:"display.small",color:"onSurface.nLv1",style:{flexGrow:1},children:(0,n.jsx)(d.A,{id:"hockey_shot_heatmap"})}),(0,n.jsx)(P.zQC,{icon:t?"chevron-up":"chevron-down",fill:"onSurface.nLv1"})]})}let K=e=>{let{containerId:t,appearances:a,data:s,isOpen:r,setIsOpen:l}=e,[d,p]=(0,c.useState)(),{selectedType:m,setSelectedType:h,getNextType:f}=(0,M.U)(),y=(0,c.useRef)(null);(0,o.st)(()=>{var e,t;return p({width:Math.round(((null==(e=y.current)?void 0:e.getBoundingClientRect().width)||0)-16),height:Math.round(((null==(t=y.current)?void 0:t.getBoundingClientRect().height)||0)-16)})},100,[r]);let{colors:x}=(0,g.useTheme)();return(0,n.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,n.jsx)(E,{isOpen:r,setIsOpen:l}),r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M.k,{selectedType:m,setSelectedType:h}),(0,n.jsx)(i.so,{justify:"center",children:(0,n.jsx)(S.Bt,{direction:"right",style:{transform:void 0},fill:x.onSurface.nLv3})}),(0,n.jsx)(i.so,{justify:"center",pb:"sm",children:(0,n.jsxs)(i.az,{ref:y,maxW:416,grow:1,position:"relative",cursor:"pointer",onClick:()=>h(e=>f(e)),children:[(0,n.jsx)(A.$u,{children:(0,n.jsx)(A.$7,{fill:"none"})}),d&&d.height>0&&d.width>0&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(k,{containerId:t,width:d.width,height:d.height,coordinates:s.shotActions,numberOfMatches:a,shotType:m,isTransparentBackground:!0,top:"sm",left:"sm"})}),(0,n.jsx)(i.az,{position:"absolute",w:"100%",h:"100%",top:0,children:(0,n.jsx)(A.$u,{children:(0,n.jsx)(A.uv,{})})})]})})]})]})},L=e=>{let{player:t,uniqueTournamentId:a,seasonId:s,type:o}=e,[l,c]=(0,z.yR)("ice.hockey.season.player.shot.heatmap.open",!0),{data:d,isLoading:p}=(0,C.Ay)(r.qvj.seasonShootmap(t.id,s,a,o));if(!d)return p?(0,n.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,n.jsx)(E,{isOpen:l,setIsOpen:T()}),l&&(0,n.jsx)(i.az,{h:275})]}):null;let m="ice-hockey-season-heatmap-".concat(a,"-").concat(s,"-").concat(t.id);return(0,n.jsx)(K,{containerId:m,appearances:e.appearances,data:d,isOpen:l,setIsOpen:c})};var I=a(18916),R=a(14196),G=a(12047),H=a(95543),F=a(4696);let O=(0,g.default)(i.so).withConfig({componentId:"sc-ab344bcd-0"})(["position:relative;::before{content:'';display:block;position:absolute;top:0;left:0;width:calc(100% - 1px);height:20%;border-top:1px solid ",";border-left:1px solid ",";transform:translate3d(0,0,0);}::after{content:'';display:block;position:absolute;bottom:0;right:0;width:calc(100% - 1px);height:20%;border-right:1px solid ",";border-bottom:1px solid ",";transform:translate3d(0,0,0);}"],e=>e.theme.colors.neutral.default,e=>e.theme.colors.neutral.default,e=>e.theme.colors.neutral.default,e=>e.theme.colors.neutral.default),D=e=>{let{name:t,appearances:a,statistic:s,selectedDisplay:r}=e,o=r===F.M.Total?s.value:(0,H.M)(s.value/a,1),l=r===F.M.Total?s.rankTotal:s.rankPerGame;return(0,n.jsxs)(i.so,{direction:"column",align:"center",gap:"xs",flex:"1 1 0px",children:[(0,n.jsx)(i.EY,{font:"assistive.micro",color:"onSurface.nLv3",align:"center",block:!0,textTransform:"uppercase",children:(0,n.jsx)(d.A,{id:t})}),(0,n.jsxs)(O,{direction:"column",align:"center",py:"sm",px:"md",bg:["surface.s2","surface.s1"],w:56,children:[(0,n.jsx)(i.EY,{font:"display.large",children:o}),(0,n.jsxs)(i.EY,{font:"assistive.default",children:["#",l]})]})]})},Y=e=>{let{data:t,error:a}=(0,C.Ay)(function(e){return void 0===e.selectedType?null:r.qvj.seasonStatistics(e.playerId,e.uniqueTournamentId,e.seasonId,e.selectedType)}(e)),s=null==t?void 0:t.highlighted;if(a||!s)return null;let o=function(e,t){var a,s;let n=t===F.M.PerGame?"rankPerGame":"rankTotal",r=null==(a=e.highlighted)?void 0:a.blocks,o=null==(s=e.highlighted)?void 0:s.steals,l=["points","rebounds","assists"];return void 0!==r&&void 0!==o&&l.push(r[n]>o[n]?"steals":"blocks"),l}(t,e.selectedDisplay);return(0,n.jsx)(u.Zp,{isInverseDesktop:!0,children:(0,n.jsx)(i.so,{p:"md",align:"flex-end",children:o.map(a=>(0,n.jsx)(D,{name:a,appearances:t.statistics.appearances,selectedDisplay:e.selectedDisplay,statistic:s[a]},a))})})};var B=a(95083),V=a(32615),Q=a(82021),N=a(32335),W=a(58926);let U=g.default.div.withConfig({componentId:"sc-cb9d08d4-0"})(["height:24px;width:24px;border-radius:50%;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;svg{fill:",";width:16px;height:16px;}",""],e=>e.theme.colors.onSurface.nLv1,e=>e.active&&"background-color: ".concat(e.theme.colors.onSurface.nLv1,"; svg { fill: ").concat(e.theme.colors.surface.s1,"!important; }")),q=function(e){let{playerShotActions:t,tournamentData:a,setHasEmptyAreas:s}=e,r=(0,g.useTheme)(),[o,l]=(0,c.useState)(Q.E.Percentage),d=()=>{switch(o){case Q.E.Percentage:return Q.E.Difference;case Q.E.Difference:return Q.E.Total;case Q.E.Total:default:return Q.E.Percentage}},u=t.shotActions,p=a.shotActionAreas,{totalStatistics:m,statsByAreas:h,differencesByAreas:f,hasEmpty:y}=(0,c.useMemo)(()=>N.aggregateAreaStatistics(u,p),[u,p]),x=N.getColorsForAreaShotmap(h,m,p,r,5);return(0,c.useEffect)(()=>{s(y)},[y,s]),(0,n.jsxs)(i.so,{w:"100%",justify:"center",align:"center",px:24,children:[(0,n.jsxs)(i.so,{w:32,minW:32,direction:"column",align:"center",gap:"xl",children:[(0,n.jsx)(U,{onClick:()=>l(Q.E.Percentage),active:o===Q.E.Percentage,children:(0,n.jsx)(P.U1y,{})}),(0,n.jsx)(U,{onClick:()=>l(Q.E.Difference),active:o===Q.E.Difference,children:(0,n.jsx)(P.Z3_,{})}),(0,n.jsx)(U,{onClick:()=>l(Q.E.Total),active:o===Q.E.Total,children:(0,n.jsx)(P.JFH,{})})]}),(0,n.jsx)(i.az,{maxW:280,onClick:()=>{l(d())},cursor:"pointer",style:{userSelect:"none"},children:(0,n.jsx)(V.A,{courtColors:x,areaStatistics:N.getPlayerAreaShotmapState(o,h,f,m)})}),(0,n.jsx)(i.so,{w:32,minW:32,direction:"column",align:"center",children:(0,n.jsx)(W.A,{totalHeight:144,boxWidth:12})})]})};var Z=a(69627);let $=e=>{let{id:t,uniqueTournamentId:a,seasonId:s,shotCoordinates:r,numberOfMatches:o}=e,l="basketball-season-shotmap-".concat(a,"-").concat(s,"-").concat(t),{selectedType:c,setSelectedType:d,getNextType:u}=(0,M.U)();return(0,n.jsxs)(i.az,{children:[(0,n.jsx)(M.k,{selectedType:c,setSelectedType:d}),(0,n.jsx)(i.so,{w:"100%",justify:"center",align:"center",px:56,children:(0,n.jsx)(i.so,{onClick:()=>d(e=>u(e)),cursor:"pointer",maxW:280,children:(0,n.jsx)(Z.O,{canvasId:l,shotCoordinates:Z.b.getHeatmapState(c,r),numberOfMatches:o,shotType:c})})})]})};var X=a(39021);function J(e){let{isOpen:t,setIsOpen:a}=e;return(0,n.jsxs)(i.so,{py:"md",pb:"xs",px:"lg",align:"center",justify:"space-between",cursor:"pointer",onClick:()=>a(!t),children:[(0,n.jsxs)(i.so,{align:"center",children:[(0,n.jsx)(i.az,{display:["block","none"],h:48,py:"sm",children:(0,n.jsx)(P.I,{fill:"graphicsTerrain.basketball",mr:"sm"})}),(0,n.jsx)(i.EY,{lineHeight:"24px",font:"display.small",color:"onSurface.nLv1",children:(0,n.jsx)(d.A,{id:"player.seasonalShotMap"})})]}),(0,n.jsx)(P.zQC,{icon:"chevron-up",fill:"onSurface.nLv1",style:{transition:"0.2s all",transform:"rotate(".concat(180*!t,"deg)")}})]})}function ee(e){let{playerId:t,selectedType:a,uniqueTournamentId:s,seasonId:o}=e,[l,m]=(0,c.useState)(),[h,g]=(0,c.useState)(),[f,y]=(0,X.A)("PLAYER_SEASON_SHOOTMAP_TOGGLE",!0),x=(0,c.useRef)(null),{isMobile:_}=(0,B.$c)(),[v,j]=(0,c.useState)(!1),b=o&&s&&a,k=b?r.qvj.seasonShootmap(t,o,s,a):null,w=b?r.V3t.seasonShotAreas(s,o,"player",a):null,{isLoading:S,error:A}=(0,C.Ay)(k,{fetcher:async e=>{if(!b)return null;let t=(0,r.TtD)(e),a=(0,r.TtD)(w);return{shootMap:await t,shotActions:await a}},dedupingInterval:200,onSuccess:e=>{g(null==e?void 0:e.shootMap),m(null==e?void 0:e.shotActions)},onError:()=>{g(void 0),m(void 0)}});return h&&l?(0,n.jsx)(p.t,{tag:"SeasonShotMap",children:(0,n.jsx)(u.Zp,{isInverseDesktop:!0,children:(0,n.jsxs)(i.az,{ref:x,w:"100%",pb:f?"sm":0,children:[(0,n.jsx)(J,{isOpen:f,setIsOpen:y}),f&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($,{shotCoordinates:h.shotActions,numberOfMatches:h.appearances,uniqueTournamentId:s,seasonId:o,id:t}),(0,n.jsx)(i.cG,{my:"lg"}),(0,n.jsx)(q,{id:t,tournamentData:l,playerShotActions:h,setHasEmptyAreas:j}),(0,n.jsx)(i.EY,{px:"lg",mt:"xl",mb:"xs",font:"assistive.default",color:"onSurface.nLv3",as:"div",children:(0,n.jsx)(d.A,{id:"shot_map_description"})}),v&&(0,n.jsxs)(i.so,{h:"24px",align:"center",gap:"sm",px:"lg",children:[(0,n.jsx)(W.z,{height:12,width:20,alpha:0}),(0,n.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"shotmap_minimum_shots"})})]}),(0,n.jsxs)(i.EY,{lineHeight:"24px",font:"assistive.default",color:"onSurface.nLv3",px:"lg",py:"md",as:"div",children:[(0,n.jsx)(P.wjs,{mr:"sm",fill:"secondary.default"}),(0,n.jsx)(d.A,{id:"player.swapBasketballAreaValues",values:{isMobile:_}})]})]})]})})}):!A||S?(0,n.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,n.jsx)(J,{isOpen:f,setIsOpen:T()}),f&&(0,n.jsx)(i.az,{h:734})]}):null}let et={[r.QCR.Football]:328,[r.QCR.Basketball]:272,[r.QCR.AmericanFootball]:272,[r.QCR.IceHockey]:328,[r.QCR.Futsal]:400,[r.QCR.Handball]:104};var ea=a(74761),es=a(51246),en=a(16620),er=a(48886),eo=a(33144),el=a(4967),ei=a(90510);let ec=e=>{let{ratings:t,shouldDisplayArrows:a,onLabelClick:s,onArrowClick:r,prevDisabled:o,nextDisabled:l}=e;return(0,n.jsxs)(i.so,{h:64,children:[a&&(0,n.jsx)(i.az,{as:"button",position:"absolute",left:-12,top:-4,cursor:"pointer",onClick:()=>r("prev"),disabled:o,children:(0,n.jsx)(P.pa2,{fill:o?"onSurface.nLv3":"primary.default",w:20,h:20})}),t.map((e,a)=>(0,n.jsxs)(i.az,{w:"".concat(100/t.length,"%"),textAlign:"center",onClick:()=>s(e.eventId),cursor:"pointer",children:[(0,n.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",align:"center",mb:"sm",as:"div",children:(0,n.jsx)(ei.XU,{value:(0,el.pp)(e.startTimestamp),day:"numeric",month:"short"})}),(0,n.jsx)(eo.p,{id:e.opponent.id,name:e.opponent.name,size:24})]},"label-".concat(a))),a&&(0,n.jsx)(i.az,{as:"button",position:"absolute",right:-12,top:-4,cursor:"pointer",onClick:()=>r("next"),disabled:l,children:(0,n.jsx)(P.CCT,{fill:l?"onSurface.nLv3":"primary.default",w:20,h:20})})]})};var ed=a(12605),eu=a(19991);let ep=e=>{let{delay:t,children:a}=e,[s,r]=(0,c.useState)(!1);return((0,c.useEffect)(()=>{let e=setTimeout(()=>{r(!0)},t);return()=>clearTimeout(e)},[t]),s)?(0,n.jsx)(n.Fragment,{children:a}):null};var em=a(28446),eh=function(e){return e.Amazing="9.0",e.Great="8.0",e.Good="7.0",e.Mediocre="6.5",e.Underwhelming="6.0",e.Bad="5.0",e}({});let eg={"5.0":8,"6.0":10,"6.5":18,"7.0":18,"8.0":10,"9.0":8},ef=Object.values(eg).reduce((e,t)=>e+t,0),ey=e=>{let t=Object.keys(eg),a=Object.values(eg);if(e===t[t.length-1])return[ef-a[a.length-1],ef];let s=t.indexOf(e);return[a.reduce((e,t,a)=>aa<=s?e+t:e,0)]},ex=(e,t,a)=>{let s=(0,em.A)();return s.range(ey(t)),s.domain([Number(t),Number(a)]),s(e)-1},e_=e=>{if(isNaN(e)||0===e)return .25*ef;if(ee.delay),eb=e=>{let{ratings:t,onRatingClick:a,averageRating:s}=e,r=(0,eu.MR)(s,"sideBox");return(0,n.jsxs)(i.so,{h:ef,position:"relative",my:"xs",children:[t.map((e,s)=>(0,n.jsx)(ej,{delay:165*s,w:"".concat(100/t.length,"%"),textAlign:"center",position:"relative",zIndex:i.Py.Button,style:{transition:"margin-top 0.2s ease-in-out"},mt:ef-e_(Number((0,eu.MR)(e.rating).formattedRating))-13,onClick:()=>a(e.eventId),children:(0,n.jsx)(ep,{delay:165*s,children:(0,n.jsx)(i.az,{w:24,mx:"auto",children:(0,n.jsx)(ed.A,{rating:e.rating,cursor:"pointer"})})})},"plot-".concat(s))),!!s&&(0,n.jsx)(ej,{delay:165*t.length,position:"absolute",bottom:0,left:0,mb:e_(Number(r.formattedRating)),w:"100%",h:2,bg:r.ratingColorKey,style:{transition:"margin-bottom 0.2s ease-in-out",transformOrigin:"left"}}),(0,n.jsxs)(i.az,{position:"absolute",top:0,right:0,children:[(0,n.jsx)(i.az,{h:eg[eh.Amazing],w:6,bg:(0,eu.Et)(eh.Amazing),br:"1px 1px 0 0"}),(0,n.jsx)(i.az,{h:eg[eh.Great],w:6,bg:(0,eu.Et)(eh.Great)}),(0,n.jsx)(i.az,{h:eg[eh.Good],w:6,bg:(0,eu.Et)(eh.Good)}),(0,n.jsx)(i.az,{h:eg[eh.Mediocre],w:6,bg:(0,eu.Et)(eh.Mediocre)}),(0,n.jsx)(i.az,{h:eg[eh.Underwhelming],w:6,bg:(0,eu.Et)(eh.Underwhelming)}),(0,n.jsx)(i.az,{h:eg[eh.Bad],w:6,bg:(0,eu.Et)(eh.Bad),br:"0 0 1px 1px"})]})]})},ek=e=>{let[t,a]=(0,c.useState)(1),s=e.length,n=Math.ceil(s/5);return(0,c.useEffect)(()=>{a(1)},[e]),{onArrowClick:e=>{let s=Math.max(t-1,1),r=Math.min(t+1,n);a("prev"===e?r:s)},slicedRatings:function(e,t,a){let s=[...t].reverse();if(a<=5)return s;let n=Math.max(a-5*e,0),r=Math.max(a-(e-1)*5,5);return s.slice(n,r)}(t,e,s),shouldDisplayArrows:s>5,prevDisabled:t===n,nextDisabled:1===t}},ew=e=>{let{player:t,ratings:a,averageRating:s}=e,{slicedRatings:o,shouldDisplayArrows:l,onArrowClick:c,prevDisabled:d,nextDisabled:u}=ek(a),{openEventPlayerStatistics:p}=(0,en.d)(),m=e=>{r.nk6.fetchEvent(e).then(e=>{let{event:a}=e;return p({event:a,player:t},er._.PlayerRating)}).catch(console.error)};return(0,n.jsxs)(i.az,{position:"relative",px:"lg",children:[(0,n.jsx)(ec,{ratings:o,onLabelClick:m,onArrowClick:c,shouldDisplayArrows:l,prevDisabled:d,nextDisabled:u}),(0,n.jsx)(eb,{ratings:o,averageRating:s,onRatingClick:m})]})};var eT=a(99397),eC=a(7322),eS=a(49337);let eA=e=>{let{player:t,averageRating:a}=e,{isDesktop:s}=(0,B.$c)();return(0,n.jsxs)(i.so,{justify:"space-between",align:"center",children:[(0,n.jsxs)(i.so,{gap:"xs",align:"center",children:[(0,n.jsx)(i.EY,{font:"display.small",color:"onSurface.nLv1",children:(0,n.jsx)(d.A,{id:"average_sofascore_rating"})}),(0,n.jsx)(eC.D,{type:eC.D.type.AverageRatingPlayer,rating:a,renderImage:e=>(0,n.jsx)(eT.t,{id:t.id,...e})})]}),(0,n.jsx)(i.$n,{variant:"unshielded",colorScheme:"neutral",p:"xs",mr:"-8",onClick:(0,eS.W)(s),children:(0,n.jsx)(eT.G,{rating:a,format:"sideBox"})})]})},eM=e=>{let{player:t,ratings:a,averageRating:s}=e,[r]=(0,z.yR)("rating_top_players_general",!1);return((0,c.useEffect)(()=>{(0,z.kH)(t.id+es.mb,"true")},[t.id]),void 0===a)?(0,n.jsx)(i.az,{h:r?211:276,bg:"surface.s2",br:"lg"}):(0,n.jsx)(p.t,{tag:"PlayerRating",children:(0,n.jsx)(u.Zp,{isInverseDesktop:!0,children:(0,n.jsxs)(i.so,{direction:"column",gap:"lg",p:"md",children:[(0,n.jsx)(eA,{player:t,averageRating:s}),(0,n.jsx)(ew,{player:t,ratings:a,averageRating:s}),!r&&(0,n.jsx)(ea.$,{bg:["surface.s2","surface.s1"],br:"sm",messageId:"rating_top_players_general"})]})})})};var ez=a(1217);let eP=e=>{let{heatMapData:t}=e,[a,s]=(0,z.yR)("football-player-heatmap-open",!0);return t&&(0,ez.O8)(t.points)?(0,n.jsx)(p.t,{tag:"SeasonHeatMap",children:(0,n.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,n.jsxs)(l.so,{justify:"space-between",align:"center",px:"lg",py:"sm",cursor:"pointer",onClick:()=>s(e=>!e),children:[(0,n.jsxs)(l.so,{align:"center",children:[(0,n.jsx)(l.az,{hideFrom:"md",h:"4xl",py:"sm",children:(0,n.jsx)(P.omw,{fill:"graphicsTerrain.football",mr:"sm",h:32})}),(0,n.jsx)(B.EY,{textStyle:"display.small",color:"neutrals.nLv1",children:(0,n.jsx)(d.A,{id:"player.seasonalHeatMap"})})]}),(0,n.jsx)(P.zQC,{icon:"chevron-up",fill:"onSurface.nLv1",style:{transition:"0.2s all",transform:"rotate(".concat(180*!a,"deg)")}})]}),a&&(0,n.jsx)(l.az,{p:"sm",children:(0,n.jsx)(S.GP,{containerId:"player-page-heatmap",dataPoints:t.points,numberOfMatches:t.matches})})]})}):null};var eE=a(76410);let eK=(0,g.css)(["cursor:pointer;transition:all 200ms ease-in-out;"]),eL=g.default.svg.withConfig({componentId:"sc-397037af-0"})([""," &:hover{fill:",";}"],eK,e=>e.theme.colors.primary.default);g.default.circle.withConfig({componentId:"sc-397037af-1"})([""," stroke:",";&:hover{stroke:",";}"],eK,e=>e.isSelected?e.theme.colors.primary.default:"#054683",e=>e.theme.colors.primary.default);let eI=e=>{let{coordinate:t,outcome:a,onSelectShot:s,isSelected:o}=e,l=(0,g.useTheme)(),i=a===r.Edk.Goal,c=a===r.Edk.Save,d=i?l.colors.secondary.default:c?l.colors.alert.default:l.colors.error.default;return(0,n.jsx)(eL,{isSelected:o,onClick:s,width:16,height:16,viewBox:"0 0 ".concat(16," ").concat(16),x:t.x-8,y:t.y-8,children:(0,n.jsxs)("g",{transform:"rotate(90 8 8)",fill:"none",fillRule:"evenodd",children:[(0,n.jsx)("circle",{fill:"#fff",transform:"rotate(90 8 8)",cx:8,cy:8,r:8}),(0,n.jsx)("path",{d:"M2.335 2.347c3.112-3.13 8.197-3.13 11.33 0 3.113 3.108 3.113 8.185 0 11.314-3.133 3.129-8.197 3.108-11.33 0-3.113-3.108-3.113-8.206 0-11.314zm8.82-.477C8.56.544 5.28.98 3.122 3.134a6.887 6.887 0 0 0-1.266 8.02l1.35-.56 2.199 2.197-.56 1.347a6.945 6.945 0 0 0 8.03-1.264c2.159-2.176 2.574-5.45 1.267-8.04l-1.35.559-2.199-2.197zm.56 6.072 1.037 2.631-2.179 2.176-2.615-1.015.685-3.088 3.072-.704zM5.28 3.279l2.594 1.099-.56 2.942-2.967.539-1.08-2.57 2.013-2.01z",fill:d})]})})};var eR=a(98516);let eG=(e,t)=>"".concat((0,eR.M)(0===t?0:e/t*100),"%"),eH=e=>{let{scored:t,attempts:a}=e;return(0,n.jsxs)(i.az,{bg:["surface.s2","surface.s1"],p:"lg",br:"sm",children:[(0,n.jsxs)(i.so,{align:"center",justify:"space-between",mb:"md",children:[(0,n.jsx)(i.EY,{children:(0,n.jsx)(d.A,{id:"football_penalty_goals"})}),(0,n.jsxs)(i.EY,{children:[t,"/",a]})]}),(0,n.jsxs)(i.so,{align:"center",justify:"space-between",children:[(0,n.jsx)(i.EY,{children:(0,n.jsx)(d.A,{id:"player.info.penaltyConversion"})}),(0,n.jsx)(i.EY,{children:eG(t,a)})]})]})};var eF=a(15204);let eO=e=>{let{outcome:t,zone:a}=e;return(0,n.jsxs)(i.so,{p:"sm",my:"md",children:[(0,n.jsxs)(i.so,{direction:"column",justify:"center",align:"center",w:"50%",children:[(0,n.jsx)(i.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"shot_outcome"})}),(0,n.jsx)(i.EY,{font:"display.small",children:t?(0,n.jsx)(d.A,{id:eF.nM[t]}):(0,n.jsx)("span",{children:"-"})})]}),(0,n.jsxs)(i.so,{direction:"column",justify:"center",align:"center",w:"50%",children:[(0,n.jsx)(i.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"goal_zone"})}),(0,n.jsx)(i.EY,{font:"display.small",children:a?(0,n.jsx)(d.A,{id:eF.Eg[a]}):(0,n.jsx)("span",{children:"-"})})]})]})};var eD=a(70591);let eY=e=>{let{event:t}=e,{winnerCode:a,startTimestamp:s,homeTeam:o,awayTeam:l,homeScore:c,awayScore:d}=t;return(0,n.jsx)(eD.tj,{event:t,children:(0,n.jsxs)(i.so,{direction:"column",align:"center",gap:6,children:[(0,n.jsxs)(i.so,{align:"center",color:"onSurface.nLv3",children:[(0,n.jsx)(eo.p,{id:o.id,size:20,name:o.name,mr:"md"}),(0,n.jsx)(i.EY,{font:"display.small",as:"div",color:a===r.Jfo.Right||a===r.Jfo.Draw?"inherit":"onSurface.nLv1",children:c.display}),(0,n.jsx)(i.EY,{as:"div",mx:2,color:"inherit",children:"-"}),(0,n.jsx)(i.EY,{font:"display.small",as:"div",color:a===r.Jfo.Left||a===r.Jfo.Draw?"inherit":"onSurface.nLv1",children:d.display}),(0,n.jsx)(eo.p,{id:l.id,size:20,name:l.name,ml:"md"})]}),(0,n.jsx)(i.EY,{font:"assistive.default",color:"onSurface.nLv3",children:(0,n.jsx)(ei.XU,{value:1e3*s,...el.or.fullDate})})]})})};var eB=a(9127),eV=a(14352);let eQ=(0,g.default)(eB.m.g).withConfig({componentId:"sc-348752ea-0"})(["pointer-events:none;"]);function eN(e){let{coordinate:t}=e,a=(0,c.useContext)(g.ThemeContext),s=(0,eV.s)();return(0,c.useEffect)(()=>{(async()=>{await s.start({cx:t.x,cy:t.y,fill:"#FFF"},{duration:.3})})().catch()},[t]),(0,c.useEffect)(()=>{(async()=>{await s.start({strokeOpacity:1},{duration:.5})})().catch()},[]),(0,n.jsx)(eQ,{children:(0,n.jsx)(eB.m.circle,{fill:"transparent",initial:{strokeOpacity:0},r:10,stroke:a.colors.primary.default,strokeWidth:"1.25",strokeOpacity:"1",animate:s})})}let eW=e=>{let{containerWidth:t}=e,a=(0,g.useTheme)();return(0,n.jsx)("svg",{x:(t-186)/2,y:44,width:186,height:98,viewBox:"0 0 168 89",children:(0,n.jsx)("path",{d:"M166.73.995a3.86 3.86 0 0 0-.55-.442c-.056-.055-.056-.055-.11-.055-.551-.332-1.212-.498-1.927-.498H3.963c-.66 0-1.266.166-1.816.442-.055 0-.055.056-.11.056-.11.055-.22.11-.33.22A3.963 3.963 0 0 0 0 3.98v84.965h7.926l11.725-7.85h128.804l11.614 7.794.11.111H167.996V3.98A3.673 3.673 0 0 0 166.73.995zM12.825 19.127l.33 8.07-5.229.664V13.875l4.9 5.252zm119.722 47.595v-9.01h16.458l-.33 9.01h-16.128zm-112.896 0-.33-9.01h16.128v9.01H19.65zm-6.495-38.53.33 8.845-5.615 1.438V28.91l5.285-.718zm41.503-9.397v8.181H36.44v-8.181h18.22zm19.21 0v8.181H55.65v-8.181h18.22zm19.266 0v8.181H74.916v-8.181h18.22zm19.21 0v8.181H94.127v-8.181h18.22zm19.211 0v8.181h-18.22v-8.181h18.22zm17.56 37.922h-16.514v-9.232h16.899l-.385 9.232zm-129.85 0-.33-9.232h16.513v9.232H19.266zM149.83 37.645l-.33 8.845h-16.899v-8.845h17.23zm-18.275 8.845h-18.22v-8.845h18.22v8.845zm-19.21 0h-18.22v-8.845h18.22v8.845zm-19.21 0h-18.22v-8.845h18.219v8.845zm.99-9.84v-8.734h18.22v8.734h-18.22zm-.99 0h-18.22v-8.734h18.219v8.734zm-19.266 0H55.65v-8.734h18.22v8.734zm0 .995v8.845H55.65v-8.845h18.22zM54.66 46.49H36.44v-8.845h18.22v8.845zm-19.211 0H18.88l-.33-8.845h16.899v8.845zm.99.995h18.22v9.232H36.44v-9.232zm19.211 0h18.22v9.232H55.65v-9.232zm19.21 0h18.22v9.232H74.861v-9.232zm19.266 0h18.22v9.232h-18.22v-9.232zm19.21 0h18.22v9.232h-18.22v-9.232zm41.45-9.397 5.283 1.326v9.398l-5.614-1.88.33-8.844zm.054-.995.33-8.845 4.9.663v9.564l-5.23-1.382zm-4.954-.443h-17.284v-8.734h17.67l-.386 8.734zm-18.33 0h-18.22v-8.734h18.22v8.734zM54.66 27.916v8.734H36.44v-8.734h18.22zM35.45 36.65H18.495l-.33-8.734h17.284v8.734zm-21.853 1.438.33 8.844-6 1.99v-9.397l5.67-1.437zm.385 9.84.33 9.12-6.44 2.267v-9.398l6.11-1.99zm22.458 9.784h18.22v9.01H36.44v-9.01zm19.211 0h18.22v9.01H55.65v-9.01zm19.21 0h18.22v9.01H74.861v-9.01zm19.266 0h18.22v9.01h-18.22v-9.01zm19.21 0h18.22v9.01h-18.22v-9.01zm41.064-9.73 5.67 1.88v9.342l-6.055-2.156.385-9.065zm5.67-33.665v13.544l-4.844-.663.33-8.071 4.513-4.81zm-9.798 12.604h-17.725V18.74h18.055l-.33 8.181zM113.887 16.75l4.294-8.79h20.531l-6.495 8.79h-18.33zm-1.1 0h-18.33l2.917-8.79h19.65l-4.238 8.79zm-19.376 0H74.53l-2.918-8.79h24.77l-2.972 8.79zm-19.872 0H55.21l-4.293-8.79h19.651l2.972 8.79zm-19.43 0h-18.33l-6.495-8.79h20.531l4.294 8.79zM35.449 26.92h-17.34l-.33-8.181h17.67v8.181zM7.926 60.365l6.44-2.322.386 9.509-6.826 2.874v-10.06zm12.22 18.685-.44-11.333h15.743V79.05H20.146zM36.44 67.717h18.22V79.05H36.44V67.717zm19.211 0h18.22V79.05H55.65V67.717zm19.21 0h18.22V79.05H74.86V67.717zm19.266 0h18.22V79.05h-18.22V67.717zm19.21 0h18.22V79.05h-18.22V67.717zm19.211 0h16.073l-.44 11.333h-15.633V67.717zm21.468-9.618 6.054 2.156V70.26l-6.44-2.708.386-9.453zm4.954-49.862-8.037 8.513h-17.504l6.495-8.79h18.165c.33.056.605.11.88.277zM9.908 8.016h18.165l6.495 8.789H17.449L9.303 8.126c.165-.11.385-.11.605-.11zM7.926 82.919V71.476l6.881-2.93.385 9.509-7.266 4.864zM153.19 78.22l.385-9.618 6.495 2.764v11.498l-6.88-4.644z",fill:a.colors.onSurface.nLv1,fillRule:"evenodd"})})},eU=g.default.rect.withConfig({componentId:"sc-f87fc6f9-0"})(["fill:",";@media (max-width:","px){fill:",";}"],e=>e.theme.colors.surface.s1,e=>e.theme.breakpoints.sizes.mdMax,e=>e.theme.colors.surface.s2),eq=g.default.rect.withConfig({componentId:"sc-f87fc6f9-1"})(["fill:",";"],e=>e.theme.colors.graphicsTerrain.football),eZ=e=>{let{containerWidth:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eU,{y:"0",width:t,height:132}),(0,n.jsx)(eq,{y:132,width:t,height:40})]})},e$=(0,g.default)(i.tU.Tab).withConfig({componentId:"sc-46b7a9aa-0"})(["&:hover{background-color:"," !important;}"],e=>e.theme.colors.surface.s2),eX=(e,t,a)=>{let s=1.36*t+8;return s<=16&&(s=16),s>=136&&(s=136),{x:2.8*e+(a&&a>280?(a-280)/2:0),y:s}},eJ={all:"basic.all",[r.Edk.Goal]:"goal",[r.Edk.Miss]:"football_outcome_missed",[r.Edk.Save]:"football_outcome_saved"},e0=e=>{let{penaltyHistory:t,playerId:a}=e,s=(0,c.useRef)(null),[r,l]=(0,c.useState)(0),[u,p]=(0,c.useState)(0),[m,h]=(0,c.useState)("all"),g=t&&t.penalties.length>0?t.penalties.filter(e=>"all"===m||("miss"===m?"post"===e.outcome||"miss"===e.outcome:m===e.outcome)).reverse():[],f=g&&g.length>0?g.length-1:0;(0,c.useEffect)(()=>{p(f)},[m]),(0,c.useEffect)(()=>{h("all"),p(f)},[t]),(0,o.st)(()=>{var e;l((null==(e=s.current)?void 0:e.getBoundingClientRect().width)||0)});let y=g[u],x=e=>{p(e),(0,eE.W2)({action:"shot_click",id:a})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.tU,{variant:"tertiary",value:m,onChange:e=>h(e),children:(0,n.jsx)(i.so,{h:48,align:"center",children:Object.entries(eJ).map(e=>{let[a,s]=e;return(0,n.jsx)(e$,{tabKey:a,disabled:"all"!==a&&(!t||("miss"===a?!t.penalties.some(e=>"post"===e.outcome||"miss"===e.outcome):!t.penalties.some(e=>e.outcome===a))),children:(0,n.jsx)(d.A,{id:s})},a)})})}),(0,n.jsx)(i.az,{mx:"sm",children:(0,n.jsx)(i.VQ,{controls:[u,e=>{p(e),(0,eE.W2)({action:"arrow_click",id:a})}],align:"flex-start",h:44,mt:"lg",mb:"sm",buttonProps:{variant:"unshielded"},circular:!0,disabled:g.length<=1,children:g.length>0?g.map(e=>(0,n.jsx)(eY,{event:e.event},e.id)):(0,n.jsx)(i.EY,{align:["center","center",void 0],mt:["sm",0,"sm"],font:"assistive.default",color:"onSurface.nLv3",children:(0,n.jsx)(d.A,{id:"empty_season_penalty_shotmap"})})})}),(0,n.jsx)(i.az,{ref:s,br:"sm",overflow:"hidden",children:(0,n.jsxs)("svg",{width:r,height:172,viewBox:"0 0 ".concat(r," ").concat(172),children:[(0,n.jsx)(eZ,{containerWidth:r}),(0,n.jsx)(eW,{containerWidth:r}),g.map((e,t)=>t!==u?(0,n.jsx)(eI,{outcome:e.outcome,coordinate:eX(e.x,e.y,r),onSelectShot:()=>x(t)},e.id):null),y&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eN,{coordinate:eX(y.x,y.y,r)}),(0,n.jsx)(eI,{outcome:y.outcome,coordinate:eX(y.x,y.y,r),onSelectShot:()=>x(u)})]})]})}),(0,n.jsx)(eO,{outcome:y&&y.outcome,zone:y&&y.zone}),(0,n.jsx)(eH,{scored:t?t.scored:0,attempts:t?t.attempts:0})]})},e1=e=>{let{penaltyHistory:t,playerId:a}=e,[s,r]=(0,z.yR)("penalty_history_tab_opened",!0);return null===t?null:(0,n.jsx)(p.t,{tag:"SeasonPenaltyHistory",children:(0,n.jsxs)(u.Zp,{isInverseDesktop:!0,children:[(0,n.jsxs)(i.so,{px:"lg",py:"md",pb:"xs",align:"center",justify:"space-between",cursor:"pointer",onClick:()=>r(e=>!e),children:[(0,n.jsxs)(i.so,{align:"center",children:[(0,n.jsx)(i.so,{display:["flex","none"],align:"center",h:48,children:(0,n.jsx)(P.vXJ,{fill:"graphicsTerrain.football",mr:"sm",h:32})}),(0,n.jsx)(i.EY,{lineHeight:"24px",font:"display.small",color:"onSurface.nLv1",children:(0,n.jsx)(d.A,{id:"season_penalty_shotmap"})})]}),(0,n.jsx)(P.zQC,{icon:"chevron-up",fill:"onSurface.nLv1",style:{transition:"0.2s all",transform:"rotate(".concat(180*!s,"deg)")}})]}),s&&(0,n.jsx)(i.az,{p:"sm",children:(0,n.jsx)(e0,{penaltyHistory:t,playerId:a})})]})})};var e2=a(76533),e9=a(9489),e5=a(10383);let e3=e=>{let{statistics:t,selectedDisplay:a,group:s,groupName:o,sport:p,index:m}=e,[h,g]=(0,z.yR)("playerSeasonStatistics.".concat(o),0===m),f=(0,c.useRef)(h),y=(0,c.useMemo)(()=>I.qT.includes(p)?s.every(e=>!t[e.key]):s.every(e=>void 0===t[e.key]),[s,p,t,o,m,a]),x=s.map(e=>{let s=e.translationKey||e.key,n=(0,e5.R)(t,e,a);return n||0===n?{stat:e,nameKey:s,formattedValue:n}:null});return y||x.every(e=>null===e)?null:(0,n.jsx)(u.Zp,{isInverseDesktop:!0,children:(0,n.jsxs)(i.nD.Item,{defaultOpened:f.current,children:[(0,n.jsx)(i.nD.Trigger,{bg:"inherit",onClick:()=>g(e=>!e),children:(0,n.jsxs)(B.EY,{textStyle:"display.small",children:[(0,n.jsx)(e9.R,{id:o}),p===r.QCR.Basketball&&a===F.M.All&&("pointsGroup"===o||"reboundsGroup"===o||"otherGroup"===o)&&(0,n.jsx)(B.EY,{textStyle:"display.small",textTransform:"lowercase",children:(0,n.jsx)(d.A,{id:"stats.perGame",children:e=>(0,n.jsxs)(n.Fragment,{children:[" (",e,")"]})})})]})}),(0,n.jsx)(i.nD.Content,{children:(0,n.jsx)(l.az,{pb:"sm",children:x.map(e=>{if(e&&(!e.stat.isHideZeroStat||"0"!==String(e.formattedValue).trim()))return(0,n.jsxs)(l.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,n.jsx)(B.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:"minutesPlayed"===e.nameKey&&a===F.M.All?(0,n.jsx)(e2.E,{id:"minutesPerGame"}):(0,n.jsx)(e2.E,{id:e.nameKey})}),(0,n.jsx)(B.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:e.formattedValue})]},e.stat.translationKey||e.stat.key)})})})]})})},e4=e=>{let{statistics:t,position:s,sport:r,hasTrajectoryData:o,selectedDisplay:d}=e,[u,m]=(0,c.useState)();(0,c.useEffect)(()=>{let e=async()=>{try{let e=await a(17561)("./".concat(r));m(e.default)}catch(e){m(void 0)}};I.F0.includes(r)&&e()},[r]);let h=(0,c.useMemo)(()=>(0,e5.h)(t),[t]);if(!u)return(0,n.jsx)(l.az,{bg:"surface.s2",br:"lg",style:{height:et[r]}});let g=u[s]||u.default,f=["penaltyGoals","penaltyConversion"],y=o?{...g,attackingGroup:g.attackingGroup.filter(e=>!f.includes(e.key))}:g;return(0,n.jsx)(p.t,{tag:"PlayerSeasonStatistics",children:(0,n.jsx)(i.nD,{children:Object.keys(y).map((e,t)=>(0,n.jsx)(e3,{statistics:h,selectedDisplay:d,group:y[e],groupName:e,sport:r,index:t},e))})})},e8={[r.QCR.Football]:700,[r.QCR.Basketball]:1200,[r.QCR.AmericanFootball]:272,[r.QCR.IceHockey]:712,[r.QCR.Futsal]:400,[r.QCR.Handball]:104},e6=e=>{let{children:t}=e,a=(0,G.Ay)();return(0,n.jsx)(i.PI,{top:a,bg:"surface.s1",p:"sm",zIndex:i.Py.Sticky-1,children:t})};function e7(e){var t;let{player:a,sport:s,asCards:h}=e,g=s===r.QCR.Basketball,f=s===r.QCR.AmericanFootball,y=s===r.QCR.IceHockey,x=!I.F0.includes(s),_=(0,o.hX)(),{utSeasonsResponse:v,isLoadingUTSeasons:j,selectedUniqueTournamentId:b,selectedSeasonId:k,seasonTypes:w,selectedSeasonType:T,selectedDisplay:S,ratings:A,statistics:M,heatMapData:P,penaltyShotmap:E,setUniqueTournamentId:K,setSeasonId:G,setSeasonType:H,setSeasonDisplay:O}=function(e,t){let a=t===r.QCR.Football,[s,n]=(0,c.useState)(),[o,l]=(0,c.useState)(),[i,d]=(0,c.useState)(),[u,p]=(0,c.useState)(),[m,h]=(0,c.useState)(F.M.All),g=(0,z.yN)("playerOfTheSeason")||{},f=g.playerId===e?g:{},{data:y,isLoading:x}=(0,C.Ay)(r.qvj.uniqueTournamentSeasons(e)),_=(e,t,a)=>{let s=function(e,t,a){let s=t&&a&&e?e[t][a]:void 0;return s&&s.filter(e=>I.N8.indexOf(e)>-1)}(e,t,a);n(t),l(a),d(s),p(s&&s[0])};(0,c.useEffect)(()=>{if(y){var e,t;let a=null==y?void 0:y.uniqueTournamentSeasons,s=null==y?void 0:y.typesMap,n=null!=(e=f.seasonId)?e:a&&a[0].seasons[0].id;_(s,null!=(t=f.uniqueTournamentId)?t:a&&a[0].uniqueTournament.id,n)}},[y]);let v=r.Xbb.includes(t)&&s&&o,{data:j,error:b}=(0,C.Ay)(v?r.qvj.ratings(e,o,s):null,{dedupingInterval:200}),k=s&&o&&u,{data:w,error:T}=(0,C.Ay)(k?r.qvj.seasonStatistics(e,s,o,u):null,{dedupingInterval:200}),S=a&&s&&o&&u,{data:A,error:M}=(0,C.Ay)(S?r.qvj.seasonHeatmap(e,o,s,u):null),P=a&&s&&o,{data:E,error:K}=(0,C.Ay)(P?r.qvj.penaltyHistory(e,s,o):null);return{utSeasonsResponse:y,isLoadingUTSeasons:x,seasonTypes:i,selectedSeasonId:o,selectedUniqueTournamentId:s,selectedSeasonType:u,selectedDisplay:m,ratings:b||!v?null:null==j?void 0:j.seasonRatings,statistics:T||!k?null:null==w?void 0:w.statistics,heatMapData:M||!P?null:A,penaltyShotmap:K||!S?null:E,setUniqueTournamentId:e=>{var t;let a=null==y||null==(t=y.uniqueTournamentSeasons.find(t=>t.uniqueTournament.id===e))?void 0:t.seasons[0].id;_(null==y?void 0:y.typesMap,e,a)},setSeasonId:e=>{_(null==y?void 0:y.typesMap,s,e)},setSeasonType:p,setSeasonDisplay:h}}(a.id,s),D=(0,c.useCallback)(e=>{w&&H(w[e])},[w]);if(x)return null;if(!v||!b||!k)return _||v||j?(0,n.jsxs)(u.HH,{isCard:!h,children:[!h&&(0,n.jsx)(u.Zp.Header,{titleId:R.v.includes(s)?"season":"player_stats",variant:"left-aligned"}),(0,n.jsxs)(u.BU,{children:[(0,n.jsx)(l.az,{h:"2xl",bg:"surface.s2",br:"sm"}),(g||f||y)&&(0,n.jsx)(l.az,{h:"[50px]",bg:"surface.s2",br:"lg"}),r.Xbb.includes(s)&&(0,n.jsx)(l.az,{h:"[275px]",bg:"surface.s2",br:"lg"}),(0,n.jsx)(l.az,{bg:"surface.s2",br:"lg",style:{height:"".concat(e8[s])}})]})]}):null;let B=Number(null==M?void 0:M.appearances),V=(0,n.jsx)(m.A,{seasons:(null==(t=v.uniqueTournamentSeasons.find(e=>e.uniqueTournament.id===b))?void 0:t.seasons)||[],selectedSeasonId:k,hasDefaultDisplay:!0,onSeasonSelect:G,tournaments:v.uniqueTournamentSeasons.map(e=>e.uniqueTournament),selectedTournamentId:b,onTournamentSelect:K,selectedDisplay:S,onDisplaySelect:O,showSeasonDisplay:g,displayEventParam:{playerId:a.id}});return(0,n.jsx)(p.t,{tag:"PlayerStatistics",children:(0,n.jsxs)(u.HH,{isCard:!h,children:[!h&&(0,n.jsx)(u.Zp.Header,{titleId:R.v.includes(s)?"season":"player_stats",variant:"left-aligned"}),h&&(0,n.jsx)(e6,{children:V}),(0,n.jsxs)(u.BU,{children:[!h&&(0,n.jsx)(n.Fragment,{children:V}),w&&(0,n.jsxs)(n.Fragment,{children:[(w.length>1||(null==w?void 0:w[0])==="regularSeason")&&(0,n.jsx)(u.Zp,{isInverseDesktop:!0,children:(0,n.jsx)(l.so,{justify:R.v.includes(s)?"flex-start":"center",p:"sm",children:(0,n.jsx)(i.tU,{variant:"secondary",children:w.map((e,t)=>(0,n.jsx)(i.tU.Tab,{onClick:()=>D(t),children:(0,n.jsx)(d.A,{id:e})},e))},k)})}),null!==A&&(0,n.jsx)(eM,{player:a,ratings:A,averageRating:null==M?void 0:M.rating}),null!==P&&(P?(0,n.jsx)(eP,{heatMapData:P}):(0,n.jsx)(l.az,{h:"[300px]",bg:"surface.s2",br:"lg"})),g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ee,{playerId:a.id,selectedType:T,seasonId:k,uniqueTournamentId:b}),(0,n.jsx)(Y,{playerId:a.id,selectedType:T,selectedDisplay:S,seasonId:k,uniqueTournamentId:b})]}),s===r.QCR.IceHockey&&T&&B>0&&(0,n.jsx)(L,{player:a,uniqueTournamentId:b,seasonId:k,type:T,appearances:B}),null!==M&&(M?(0,n.jsx)(e4,{position:a.position,sport:s,statistics:M,hasTrajectoryData:null!==E,selectedDisplay:g?S:void 0}):(0,n.jsx)(l.az,{bg:"surface.s2",br:"lg",style:{height:"".concat(et[s])}})),E&&(0,n.jsx)(l.az,{md:{borderTop:"1px solid {colors.neutrals.nLv4}",pt:"sm"},children:(0,n.jsx)(e1,{penaltyHistory:E,playerId:a.id})})]})]})]})})}},72555:(e,t,a)=>{"use strict";a.d(t,{Bg:()=>h,HU:()=>r,Q1:()=>n,Sz:()=>m,TC:()=>p,W6:()=>u,cS:()=>d,eM:()=>o,mc:()=>i,tO:()=>c});let s=[["attacking","saves"],["runsOut","technical","anticipation","runs-out"],["tactical"],["defending","ballDistribution","ball-distribution"],["creativity","aerial"]],n={attacking:"attacking",creativity:"player_ability_creativity",defending:"defending",tactical:"player_ability_tactical",technical:"player_ability_technical",aerial:"player_ability_aerial_reach",anticipation:"player_ability_anticipation",ballDistribution:"player_ability_ball_distribution",saves:"player_ability_saves"},r={saves:"SAV",anticipation:"ANT",tactical:"TAC",ballDistribution:"BAL",aerial:"AER",attacking:"ATT",technical:"TEC",defending:"DEF",creativity:"CRE"},o={AVG:Symbol("AVG"),BASE:Symbol("BASE"),COMPARE:Symbol("COMPARE"),COMPARE_SELF:Symbol("COMPARE_SELF")};function l(e){return Math.PI/180*e}function i(e){let t=[];return s.forEach((a,s)=>{a.forEach(a=>{a in e&&(t[s]={value:e[a],name:a})})}),t}function c(e){return e.map((e,t)=>(function(e,t){let a=-(100*Math.cos(l(72*t)));return[100*Math.sin(l(72*t)),a].map(t=>t*e/100+100)})(Number(e),t))}function d(e){return e.reduce((e,t)=>"".concat(e).concat(t[0],",").concat(t[1]," "),"").trim()}function u(e){return e>=90?"colors.rating.s90":e>=80?"colors.rating.s80":e>=70?"colors.rating.s70":e>=65?"colors.rating.s65":e>=60?"colors.rating.s60":e>=10?"colors.rating.s10":"colors.rating.s00"}function p(e){return e?{playerPentagons:e.playerAttributeOverviews,averagePentagons:e.averageAttributeOverviews}:null}function m(e,t){return e.find(e=>e.yearShift===t)||null}function h(e,t,a,s){let n=[],r=[],{playerPentagons:l,averagePentagons:c}={...e};if(null==l?void 0:l.length){let e=m(l,t?a:0);if(e&&(e.__type=o.BASE),n.push(e?i(e):null),r.push(e),s)r.push(null);else{let e=null,s=null;t?t&&(e=m(t.playerPentagons,a))&&(e.__type=o.COMPARE,s=i(e)):a?(e=m(l,a))&&(e.__type=o.COMPARE_SELF,s=i(e)):(null==c?void 0:c.length)&&((e=c[0]).__type=o.AVG),n.push(s),r.push(e)}r.reverse()}return{attributes:n,pentagonLayers:r}}},72653:(e,t,a)=>{"use strict";a.d(t,{A:()=>f});var s=a(6029),n=a(21377),r=a(4967),o=a(95669),l=a.n(o),i=a(947),c=a(58771),d=a(26331),u=a(73088),p=a(97047);let m=(e,t,a)=>e.type===n.YVh.Person?{"@type":"Person",name:e.name}:{"@type":"SportsTeam",sport:t.name,name:e.name,logo:n.cWY.image(e.id),url:"https://www.sofascore.com/team/".concat(t.slug,"/").concat(e.slug,"/").concat(e.id),sameAs:(0,p.WG)(e.id,a)},h=(e,t)=>{var a,s,n,r,o;let l=(null==(a=e.tournament.uniqueTournament)?void 0:a.name)||e.tournament.name,i=(null==(s=e.season)?void 0:s.year)||(null==(n=e.season)?void 0:n.name)||t.getFullYear()||"",c=(e.tournament.roundPrefix||"")+" "+((null==(r=e.roundInfo)?void 0:r.name)||((null==(o=e.roundInfo)?void 0:o.round)?"Round ".concat(e.roundInfo.round):""));return"".concat(l," ").concat(i," ").concat(c.trim()).trim()},g=e=>{switch(e.status.type){case n.XUj.Canceled:case n.XUj.Suspended:return"EventCancelled";case n.XUj.Postponed:return"EventPostponed";default:return"EventScheduled"}};function f(e){let{event:t}=e,a=(0,i.A)(),o=(0,d.A)(),f=t.tournament.category.sport,y=r.pp(t.startTimestamp),x=h(t,y),_=t.tournament.category,v=t.tournament.uniqueTournament,j=1,b=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(f.slug)}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"eventList",{sport:f.slug}).route)},{"@type":"ListItem",position:++j,name:a.formatMessage({id:_.slug}),item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"eventList.category",{sport:_.sport.slug,category:_.slug}).route)}];v&&b.push({"@type":"ListItem",position:++j,name:v.name,item:"".concat(n.VTF).concat(u.z.getTranslatedRoute(o,"uniqueTournament",{sport:v.category.sport.slug,category:v.category.slug,tournament:v.slug,id:v.id}).route)}),b.push({"@type":"ListItem",position:++j,name:"".concat(t.homeTeam.name," - ").concat(t.awayTeam.name)});let k={"@context":"https://schema.org","@type":"SportsEvent",name:"".concat(t.homeTeam.name," vs ").concat(t.awayTeam.name),eventStatus:g(t),description:x,homeTeam:m(t.homeTeam,f,o),awayTeam:m(t.awayTeam,f,o),startDate:y.toISOString(),sport:f.name};if(t.venue){var w,T,C;k.location=[{"@type":"Place",name:null==(w=t.venue)?void 0:w.stadium.name,maximumAttendeeCapacity:null==(T=t.venue)?void 0:T.stadium.capacity,address:{"@type":"PronounceableText"}}],t.venue.city.name&&k.location.concat({"@type":"Place",name:t.venue.city.name}),t.venue.country.alpha2&&k.location.concat({"@type":"Country",name:(0,p.lE)(null==(C=t.venue)?void 0:C.country.alpha2)})}else t.tournament.category.alpha2&&(k.location={"@type":"Country",name:(0,p.lE)(t.tournament.category.alpha2)});return(0,s.jsxs)(l(),{children:[(0,s.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:b})}),",",(0,s.jsx)("script",{...(0,c.QQ)(k)}),","]})}},74761:(e,t,a)=>{"use strict";a.d(t,{$:()=>d});var s=a(6029),n=a(95083),r=a(62042),o=a(76356),l=a(90248),i=a(19168),c=a(54409);function d(e){let{messageId:t,children:a,onClick:d,...u}=e,[p,m]=(0,i.yR)(t,!1);return p?null:(0,s.jsxs)(o.so,{align:"center",bg:"surface.s2",br:"lg",py:"sm",pl:"lg",className:(0,r.AH)(u),children:[(0,s.jsx)(o.az,{children:(0,s.jsx)(c.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsxs)(n.EY,{w:"100%",mx:"lg",my:"0",textStyle:"body.small",color:"neutrals.nLv1",children:[(0,s.jsx)(l.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),a=0;a{null==d||d(),m(!0)},children:(0,s.jsx)(c.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv1"})})]})}},76533:(e,t,a)=>{"use strict";a.d(t,{E:()=>c});var s=a(6029),n=a(55729),r=a(90248),o=a(62859),l=a(16533),i=a(27892);let c=e=>{let{id:t,values:a}=e,c=(0,n.useContext)(o.Ws);return(0,s.jsx)(r.A,{id:(0,i.O)(l,t,c),values:null!=a?a:(0,i.B)(l,t,c)})}},77552:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(6029),n=a(55729),r=a(41735);let o=(0,n.forwardRef)((e,t)=>{let{children:a,...o}=e,{colors:l}=(0,n.useContext)(r.ThemeContext);return(0,s.jsxs)("svg",{height:o.height||"100%",width:o.width||"100%",viewBox:"0 0 200 200",strokeWidth:"2",...o,ref:t,children:[(0,s.jsx)("polygon",{fill:o.fill||l.surface.s2,points:"100,0 195.10565162951534,69.09830056250526 158.77852522924732, 180.90169943749473 41.2214747707527,180.90169943749476 4.894348370484636,69.09830056250527"}),a]})})},78492:(e,t,a)=>{var s=a(50956);e.exports=function(e,t,a,n){return s(e,function(e,s,r){t(n,e,a(e),r)}),n}},80734:(e,t,a)=>{"use strict";a.d(t,{n:()=>i});var s=a(6029),n=a(21501),r=a(76356),o=a(55729),l=a(58775);function i(e){let t=1===o.Children.count(e.children),a=(0,n.hX)()&&e.openOnServer,[i,c]=(0,o.useState)(a||!1);return(0,s.jsxs)(r.az,{children:[(0,s.jsx)(r.az,{children:e.children[0]}),(0,s.jsx)(r.az,{display:i?"initial":"none",children:e.children.slice(1)}),!t&&(0,s.jsx)(l.d,{isOpen:i,onClick:()=>c(e=>!e)})]})}},80932:(e,t,a)=>{"use strict";a.d(t,{s:()=>i});var s=a(21377),n=a(55729),r=a(45860),o=a(62859),l=a(72555);function i(e){let t=(0,n.useContext)(o.Ws)===s.QCR.Football,{data:a,isLoading:i,error:c}=(0,r.Ay)(t&&e?s.qvj.pentagon(e):null);return{pentagons:!c&&a?(0,l.TC)(a):null,isPentagonDataLoading:i,isError:c}}},81648:e=>{e.exports=function(e,t,a,s){for(var n=-1,r=null==e?0:e.length;++n{"use strict";var s;!function(e){e[e.Backdrop=0]="Backdrop",e[e.Button=1]="Button",e[e.Sticky=99]="Sticky",e[e.Dropdown=100]="Dropdown",e[e.Fixed=101]="Fixed",e[e.Popover=102]="Popover",e[e.Subheader=103]="Subheader",e[e.Header=104]="Header",e[e.MobileMenu=105]="MobileMenu",e[e.BottomNavigation=106]="BottomNavigation",e[e.FloatingCTA=107]="FloatingCTA",e[e.ModalBackdrop=108]="ModalBackdrop",e[e.Modal=109]="Modal",e[e.Alert=110]="Alert"}(s||(s={}))},83217:(e,t,a)=>{"use strict";a.d(t,{n:()=>p});var s=a(60449),n=a.n(s);let r=/Max/,o=(e,t)=>t[e]?`${r.test(e)?"max-width":"min-width"}: ${t[e]}px`:e,l={2:["mdMax","mdMin"],3:["mdMax",["mdMin","lgMax"],"lgMin"],4:["smMax",["smMin","mdMax"],["mdMin","lgMax"],"lgMin"],5:["xsMax",["xsMin","smMax"],["smMin","mdMax"],["mdMin","lgMax"],"lgMin"]},i=(e,t)=>{if(!t)return e;let a=n()(t,e,e);return"number"==typeof e?a=`${e}px`:"string"!=typeof e||isNaN(+e)||(a=`${e}px`),a},c=e=>"left"===e?"right":"right"===e?"left":e,d=(e,t,a)=>{let s={};return e.forEach(e=>{if(a){let n=s[a];n?n[e]=t:s[a]={[e]:t}}else s[e]=t}),s},u=(e,t)=>Array.isArray(e)?`@media ${e.map(e=>`(${o(e,t)})`).join(" and ")}`:`@media (${o(e,t)})`,p=e=>t=>{let a=t.theme.settings.textDirection,s=t.theme.breakpoints.sizes;return Object.keys(e).reduce((r,o)=>{let p=e[o],m="rtl"===a&&!["ltr","auto"].includes(t.dir),h=m&&"object"==typeof p&&"rtlProperty"in p,g=m&&"object"==typeof p&&p.rtlTransform,f="object"==typeof p&&"function"==typeof p.rtlTransform?p.rtlTransform:c,y=n()(p,h?"rtlProperty":"property",o),x=n()(p,"properties",[y]);if(void 0===t[o])return r;let _=n()(p,"transform",i),v=n()(p,"selector"),j="object"==typeof p?n()(t.theme,p.domain||"",void 0):void 0;if(Array.isArray(t[o]))l[t[o].length].forEach((e,a)=>{let n=r[u(e,s)],l=_(t[o][a],j);m&&g&&(l=f(l,j)),n=n?Object.assign(Object.assign({},n),d(x,l,v)):d(x,l,v),r[u(e,s)]=n});else{let e=_(t[o],j);m&&g&&(e=f(e,j)),Object.assign(r,d(x,e,v))}return r},{})}},83509:(e,t,a)=>{"use strict";a.d(t,{G:()=>s});let s=(0,a(83217).n)({position:!0,top:{domain:"spacing"},right:{domain:"spacing",rtlProperty:"left"},bottom:{domain:"spacing"},left:{domain:"spacing",rtlProperty:"right"},inset:{domain:"spacing"},zIndex:!0})},87996:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>tQ});var s=a(6029),n=a(65789),r=a(75751),o=a(41249),l=a(55729),i=a(19168);let c=(0,l.createContext)({seenDisclaimer:!1,onDisclaimerSeen:()=>null}),d=e=>{let{children:t}=e,[a,n]=(0,i.yR)("career_statistics_football_disclaimer",!1);return(0,s.jsx)(c.Provider,{value:{seenDisclaimer:a,onDisclaimerSeen:()=>n(!0)},children:t})},u=()=>(0,l.useContext)(c),p=e=>{let{children:t}=e;return(0,s.jsx)(d,{children:(0,s.jsx)(o.so,{direction:"column",bg:["surface.s0",void 0],p:["sm",0],gap:["sm",0],children:t})})};var m=a(95083),h=a(21377),g=a(69559),f=a(36326);let y=(0,l.createContext)(void 0),x=e=>{let{children:t,player:a,uniqueTournaments:n,typesMap:r}=e,[o,i]=(0,l.useState)([]);return(0,s.jsx)(y.Provider,{value:{player:a,uniqueTournaments:n,typesMap:r,playerTeams:o,onChangePlayerTeams:e=>i(function(e){return 1===e.length?e:[f.R3,...e.sort((e,t)=>e.name.localeCompare(t.name))]}(e))},children:t})},_=()=>{let e=(0,l.useContext)(y);if(!e)throw Error();return{...e}};var v=function(e){return e.RegularSeason="regularSeason",e.Playoffs="playoffs",e.Overall="overall",e}({}),j=function(e){return e.Total="total",e.PerGame="perGame",e.Per90Min="per90Min",e}({}),b=function(e){return e.Overall="overall",e.Home="home",e.Away="away",e}({});function k(e){return e===h.QCR.Basketball?j.PerGame:j.Total}function w(e){if(e===h.QCR.Football)return b.Overall}let T=(0,l.createContext)(void 0),C=e=>{let{children:t}=e,a=(0,g.o)(),{player:n}=_(),[r,o]=(0,l.useState)({selectedHomeAway:w(a),selectedTeam:f.L3,selectedMode:k(a)});return(0,l.useEffect)(()=>{o({selectedMode:k(a),selectedTeam:f.L3,selectedHomeAway:w(a)})},[n]),(0,s.jsx)(T.Provider,{value:{filters:r,onFilterChange:(e,t)=>{o(a=>({...a,[e]:t}))},onFiltersChange:e=>o(e)},children:t})},S=()=>{let e=(0,l.useContext)(T);if(void 0===e)throw Error();return{...e}};function A(e,t){if(!e||e.id===f.FV)return[];let a=t[e.id];return void 0!==a?[...new Set(a)]:[]}let M=(0,l.createContext)(void 0),z=e=>{let{children:t}=e,a=(0,g.o)(),{player:n,uniqueTournaments:r,typesMap:o}=_(),[i,c]=(0,l.useState)(),[d,u]=(0,l.useState)(),[p,m]=(0,l.useState)(),[y,x]=(0,l.useState)();return(0,l.useEffect)(()=>{u(function(e,t){if(e!==h.QCR.Football&&t.length>0)return t[0]}(a,r)),m(function(e,t,a){if(e!==h.QCR.Football&&t.length>0)return A(t[0],a)[0]}(a,r,o)),x(void 0),a===h.QCR.Football&&c(f.b6[0])},[n]),(0,s.jsx)(M.Provider,{value:{selectors:{selectedUT:d,selectedSeasonType:p,selectedCategory:y,selectedCompetitionCategory:i},handlers:{setSelectedCategory:x,setSelectedCompetitionCategory:c,setSelectedUT:u,setSelectedSeasonType:m}},children:t})},P=()=>{let e=(0,l.useContext)(M);if(void 0===e)throw Error();return{...e}},E=e=>e.reduce((e,t)=>{switch(t.type){case h.Ylj.DomesticLeague:e.domesticLeagues.push(t);break;case h.Ylj.DomesticCup:e.domesticCups.push(t);break;case h.Ylj.InternationalCup:e.internationalCompetitions.push(t);break;case h.Ylj.National:e.nationalTeamCompetitions.push(t);break;default:e.other.push(t)}return e},{domesticLeagues:[],domesticCups:[],internationalCompetitions:[],nationalTeamCompetitions:[],other:[]});var K=a(90248);let L=e=>{let{competitionCategory:t}=e;return t?(0,s.jsx)(o.so,{align:"center",children:(0,s.jsx)(o.EY,{as:"bdi",lineHeight:"16px",font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,children:(0,s.jsx)(K.A,{id:t.name})})}):null};var I=a(59721),R=a(24159);let G=e=>{let{ut:t,selected:a,hasSeasonType:n}=e;return t?(0,s.jsxs)(o.so,{align:"center",gap:"sm",minW:24,children:[(0,s.jsx)(I.e,{id:t.id,size:24},t.id),(0,s.jsx)(o.EY,{as:"bdi",lineHeight:"16px",font:"body.medium",color:"onSurface.nLv1",maxW:[a?t.id!==f.FV&&n?60:200:void 0,void 0],ellipsis:!0,children:t.id===f.FV?(0,s.jsx)(K.A,{id:t.name}):(0,s.jsx)(R.c,{entity:t})})]}):null},H=()=>{var e;let{uniqueTournaments:t}=_(),{selectors:a,handlers:n}=P(),{onFilterChange:r}=S(),l=E(t),i=function(e,t){if(void 0===e)return[];let a=[];switch(e){case f.ie.DomesticLeagues:a=[{id:f.FV,name:"all_domestic_leagues"},...t.domesticLeagues];break;case f.ie.DomesticCups:a=[{id:f.FV,name:"all_domestic_cups"},...t.domesticCups];break;case f.ie.InternationalCompetitions:a=[{id:f.FV,name:"all_international_competitions"},...t.internationalCompetitions];break;case f.ie.NationalTeamCompetitions:a=[{id:f.FV,name:"all_national_team_competitions"},...t.nationalTeamCompetitions];break;default:a=[]}return a.length<=2?a.slice(1):a}(null==(e=a.selectedCompetitionCategory)?void 0:e.id,l);return(0,s.jsxs)(o.so,{gap:"md",children:[(0,s.jsx)(o.ms,{items:f.b6,selectedItem:a.selectedCompetitionCategory,renderItem:(e,t)=>(0,s.jsx)(L,{competitionCategory:e,selected:t}),onSelectedItemChange:e=>{if(!e.selectedItem)return;let t=e.selectedItem||void 0;r("selectedTeam",void 0),n.setSelectedUT(void 0),n.setSelectedCompetitionCategory(t)}}),i.length>0&&(0,s.jsx)(o.ms,{items:i,selectedItem:a.selectedUT||i[0],renderItem:(e,t)=>(0,s.jsx)(G,{ut:e,selected:t}),isDisabled:1===i.length,onSelectedItemChange:e=>{if(e.selectedItem){let t=e.selectedItem.id===f.FV?void 0:e.selectedItem;r("selectedTeam",void 0),n.setSelectedUT(t)}}})]})},F={[f.ie.AllClubCompetitions]:"football_all_club_competitions",[f.ie.DomesticLeagues]:"all_domestic_leagues",[f.ie.DomesticCups]:"all_domestic_cups",[f.ie.InternationalCompetitions]:"all_international_competitions",[f.ie.NationalTeamCompetitions]:"all_national_team_competitions"},O=e=>{var t,a;let{competition:n,uniqueTournament:r,onClick:l}=e,{onFilterChange:i}=S(),{selectors:c,handlers:d}=P();return void 0!==n?(0,s.jsxs)(o.so,{px:"lg",py:"md",gap:"lg",bg:(null==(t=c.selectedCompetitionCategory)?void 0:t.id)===n.id?"surface.s0":"surface.s1",align:"center",onClick:()=>{i("selectedTeam",void 0),d.setSelectedUT(void 0),d.setSelectedCompetitionCategory(n),null==l||l()},children:[(0,s.jsx)(o._V,{width:24,height:24,src:"/static/images/placeholders/tournament.svg",alt:F[n.id]}),(0,s.jsx)(o.EY,{children:(0,s.jsx)(K.A,{id:F[n.id]})})]}):void 0!==r?(0,s.jsxs)(o.so,{px:"lg",py:"md",gap:"lg",bg:(null==(a=c.selectedUT)?void 0:a.id)===r.id?"surface.s0":"surface.s1",align:"center",onClick:()=>{i("selectedTeam",void 0),d.setSelectedUT(r),d.setSelectedCompetitionCategory(void 0),null==l||l()},children:[(0,s.jsx)(I.e,{id:r.id,width:24,height:24}),(0,s.jsx)(o.EY,{children:r.name})]}):null},D=e=>{let{item:t,uniqueTournaments:a,onTournamentChange:n,defaultOpened:r}=e;return(0,s.jsxs)(o.nD.Item,{borderBottom:"onSurface.nLv4",defaultOpened:r,children:[(0,s.jsx)(o.nD.Trigger,{px:"lg",py:"md",children:(0,s.jsx)(o.EY,{font:"display.small",children:(0,s.jsx)(K.A,{id:t.name})})}),(0,s.jsxs)(o.nD.Content,{children:[(0,s.jsx)(O,{competition:t,onClick:n}),a.map(e=>(0,s.jsx)(O,{uniqueTournament:e,onClick:n},e.id))]})]})},Y=e=>{var t,a,n,r,l,i;let{onTournamentChange:c}=e,{selectors:d}=P(),{uniqueTournaments:u}=_(),{domesticLeagues:p,domesticCups:m,internationalCompetitions:h}=E(u);return(0,s.jsxs)(o.so,{direction:"column",py:"md",children:[(0,s.jsx)(O,{competition:f.b6[0],onClick:c}),(0,s.jsx)(o.cG,{}),(0,s.jsxs)(o.nD,{type:"single",children:[p.length>0&&(0,s.jsx)(D,{defaultOpened:(null==(t=d.selectedUT)?void 0:t.type)==="domestic-league"||(null==(a=d.selectedCompetitionCategory)?void 0:a.id)===f.ie.DomesticLeagues,item:f.b6[1],uniqueTournaments:p,onTournamentChange:c}),m.length>0&&(0,s.jsx)(D,{defaultOpened:(null==(n=d.selectedUT)?void 0:n.type)==="domestic-cup"||(null==(r=d.selectedCompetitionCategory)?void 0:r.id)===f.ie.DomesticCups,item:f.b6[2],uniqueTournaments:m,onTournamentChange:c}),h.length>0&&(0,s.jsx)(D,{defaultOpened:(null==(l=d.selectedUT)?void 0:l.type)==="international-cup"||(null==(i=d.selectedCompetitionCategory)?void 0:i.id)===f.ie.InternationalCompetitions,item:f.b6[3],uniqueTournaments:h,onTournamentChange:c})]})]})},B=e=>{let{onTournamentChange:t}=e,{uniqueTournaments:a}=_(),{nationalTeamCompetitions:n}=E(a);return(0,s.jsxs)(o.so,{direction:"column",py:"md",children:[(0,s.jsx)(O,{competition:f.b6[4],onClick:t}),n.map(e=>(0,s.jsx)(O,{uniqueTournament:e,onClick:t},e.id))]})};var V=function(e){return e[e.Club=0]="Club",e[e.National=1]="National",e}(V||{});let Q=e=>{let{onTournamentChange:t}=e;let{uniqueTournaments:a}=_(),{selectors:n}=P(),r=a.some(e=>e.type===h.Ylj.National),l=function(e,t){return+((null==e?void 0:e.type)==="national"||(null==t?void 0:t.id)===f.ie.NationalTeamCompetitions)}(n.selectedUT,n.selectedCompetitionCategory);return(0,s.jsxs)(o.tU,{initialValue:l,variant:"secondary",fullWidthTabs:!0,children:[r&&(0,s.jsxs)(o.tU.List,{px:"md",children:[(0,s.jsx)(o.tU.Tab,{tabKey:0,children:(0,s.jsx)(K.A,{id:"lineups_chip_club"})}),(0,s.jsx)(o.az,{w:"lg"}),(0,s.jsx)(o.tU.Tab,{tabKey:1,children:(0,s.jsx)(K.A,{id:"player.nationalTeam"})})]}),(0,s.jsx)(o.tU.Panel,{tabKey:0,children:(0,s.jsx)(Y,{onTournamentChange:t})}),(0,s.jsx)(o.tU.Panel,{tabKey:1,children:(0,s.jsx)(B,{onTournamentChange:t})})]})};var N=a(54409);let W=e=>{let{selectedUT:t,selectedCompetitionCategory:a}=e;return void 0!==t?(0,s.jsx)(K.A,{id:t.name}):void 0!==a?(0,s.jsx)(K.A,{id:a.name}):null},U=e=>{let{onClick:t}=e,{selectors:a}=P();return(0,s.jsxs)(o.so,{as:"button",align:"center",px:"sm",py:"xs",bg:"surface.s2",br:"sm",onClick:t,gap:"sm",children:[a.selectedUT&&(0,s.jsx)(I.e,{id:a.selectedUT.id,w:20,h:20}),(0,s.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv1",lineHeight:1,children:(0,s.jsx)(W,{selectedUT:a.selectedUT,selectedCompetitionCategory:a.selectedCompetitionCategory})}),(0,s.jsx)(N.QFN,{fill:"onSurface.nLv1"})]})},q=()=>{let[e,t]=(0,l.useState)(!1),a=()=>t(e=>!e);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(U,{onClick:a}),(0,s.jsxs)(o.Xn,{isOpen:e,onClose:a,fullHeight:!0,children:[(0,s.jsx)(o.Xn.Header,{children:(0,s.jsx)(o.EY,{font:"display.large",children:(0,s.jsx)(K.A,{id:"select_competition"})})}),(0,s.jsx)(o.Xn.Content,{children:(0,s.jsx)(Q,{onTournamentChange:a})})]})]})},Z=()=>{let{isMobile:e}=(0,m.$c)();return e?(0,s.jsx)(q,{}):(0,s.jsx)(H,{})},$=e=>{let{seasonType:t}=e;return t?(0,s.jsx)(o.EY,{block:!0,as:"bdi",font:"body.medium",color:"onSurface.nLv1",lineHeight:"16px",ellipsis:!0,children:(0,s.jsx)(K.A,{id:t})}):null},X=()=>{let{uniqueTournaments:e,typesMap:t}=_(),{selectors:a,handlers:n}=P(),{onFilterChange:r}=S(),l=A(a.selectedUT,t),i=l.length>0&&!l.includes("overall");return(0,s.jsxs)(o.so,{gap:"md",children:[(0,s.jsx)(o.ms,{items:e,selectedItem:a.selectedUT,renderItem:(e,t)=>(0,s.jsx)(G,{ut:e,selected:t,hasSeasonType:i}),onSelectedItemChange:e=>{let a=e.selectedItem||void 0,s=A(a,t),o=s.length>0?s[0]:void 0;r("selectedTeam",void 0),n.setSelectedUT(a),n.setSelectedSeasonType(o)}}),i&&(0,s.jsx)(o.ms,{items:l,isDisabled:1===l.length,selectedItem:a.selectedSeasonType,renderItem:e=>(0,s.jsx)($,{seasonType:e}),onSelectedItemChange:e=>{let t=e.selectedItem||void 0;n.setSelectedSeasonType(t)}})]})},J=()=>(0,g.o)()===h.QCR.Football?(0,s.jsx)(Z,{}):(0,s.jsx)(X,{}),ee=e=>{let{onFilterClick:t}=e,a=(0,g.o)(),{filters:n}=S(),{playerTeams:r}=_(),l=n.selectedTeam!==f.L3&&1!==r.length||n.selectedMode!==k(a)||n.selectedHomeAway!==w(a);return(0,s.jsx)("div",{children:(0,s.jsx)(o.so,{as:"button",cursor:"pointer",p:"xs",bg:l?"primary.highlight":"surface.s2",color:l?"primary.default":"onSurface.nLv1",justify:"center",align:"center",br:"sm",onClick:t,children:(0,s.jsx)(N.yRN,{fill:"currentcolor"})})})},et=e=>{let{position:t}=e,a=(0,g.o)(),{isMobile:n}=(0,m.$c)(),{seenDisclaimer:r,onDisclaimerSeen:l}=u();return a!==h.QCR.Football||n&&"top"===t&&r||n&&"bottom"===t&&!r||!n&&"bottom"===t?null:(0,s.jsx)(o.az,{px:[0,"md"],mb:["sm","md"],children:(0,s.jsxs)(o.so,{p:"md",gap:"md",bg:["surface.s1","surface.s2"],align:"center",br:"md",justify:"space-between",children:[(0,s.jsxs)(o.so,{gap:"md",align:"center",children:[(0,s.jsx)(N.G_L,{fill:"onSurface.nLv3"}),(0,s.jsx)(o.EY,{lineHeight:1,children:(0,s.jsx)(K.A,{id:"football_career_stats_data_info"})})]}),n&&!r&&"top"===t&&(0,s.jsx)(N.zQC,{icon:"close",fill:"onSurface.nLv1",cursor:"pointer",onClick:l})]})})};var ea=a(33144),es=a(947);let en={overall:"total",home:"standings.home",away:"away"},er=()=>{let e=(0,g.o)(),{filters:t,onFilterChange:a}=S();return e===h.QCR.Football&&t.selectedHomeAway?(0,s.jsxs)(o.so,{align:"center",gap:"lg",children:[(0,s.jsx)(o.EY,{font:"display.micro",lineHeight:1,children:(0,s.jsx)(K.A,{id:"filter_option_home_away"})}),(0,s.jsx)(o.ms,{selectedItem:f.pu.find(e=>e.id===t.selectedHomeAway),items:f.pu,onSelectedItemChange:e=>{e.selectedItem&&a("selectedHomeAway",e.selectedItem.id)},renderItem:e=>null===e?(0,s.jsx)("div",{}):(0,s.jsx)(K.A,{id:en[e.id]})})]}):null},eo=e=>{let{team:t}=e;return t?(0,s.jsx)(o.so,{align:"center",gap:"sm",minW:24,children:-1===t.id?(0,s.jsx)(o.EY,{as:"bdi",lineHeight:"16px",font:"body.medium",color:"onSurface.nLv1",children:(0,s.jsx)(K.A,{id:"all_teams"})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ea.p,{id:t.id,size:24}),(0,s.jsx)(o.EY,{as:"bdi",lineHeight:"16px",font:"body.medium",color:"onSurface.nLv1",children:(0,s.jsx)(R.c,{entity:t})})]})}):(0,s.jsx)(K.A,{id:"all_teams"})},el=()=>{var e;let t=(0,g.o)(),{formatMessage:a}=(0,es.A)(),{playerTeams:n}=_(),{filters:r,onFilterChange:l}=S();return(0,s.jsxs)(o.so,{px:"md",pt:"md",gap:"lg",justify:"space-between",wrap:"wrap",children:[(0,s.jsxs)(o.so,{gap:"lg",align:"center",children:[(0,s.jsx)(o.EY,{font:"display.micro",children:(0,s.jsx)(K.A,{id:"team"})}),(0,s.jsx)(o.ms,{items:n,isDisabled:1===n.length,selectedItem:r.selectedTeam||n[0],renderItem:(e,t)=>(0,s.jsx)(eo,{team:e,isSelected:t}),onSelectedItemChange:e=>{if(void 0===e||null===e.selectedItem||-1===e.selectedItem.id)return void l("selectedTeam",void 0);l("selectedTeam",e.selectedItem)}},null==(e=r.selectedTeam)?void 0:e.id)]}),(0,s.jsx)(er,{}),(0,s.jsxs)(o.so,{gap:"lg",align:"center",children:[(0,s.jsx)(o.a,{id:"per-game",name:"mode",label:a({id:t===h.QCR.Football?"stats.per90":"stats.perGame"}),value:t===h.QCR.Football?j.Per90Min:j.PerGame,checked:r.selectedMode===(t===h.QCR.Football?j.Per90Min:j.PerGame),onChange:e=>l("selectedMode",e.target.value),gap:"sm",cursor:"pointer"}),(0,s.jsx)(o.a,{id:"total",name:"mode",label:a({id:"total"}),value:j.Total,checked:r.selectedMode===j.Total,onChange:e=>l("selectedMode",e.target.value),gap:"sm",cursor:"pointer"})]})]})},ei=e=>{let{onClose:t}=e,a=(0,g.o)(),{formatMessage:n}=(0,es.A)(),{playerTeams:r}=_(),{filters:i,onFiltersChange:c}=S(),[d,u]=(0,l.useState)({selectedHomeAway:i.selectedHomeAway,selectedTeam:i.selectedTeam,selectedMode:i.selectedMode});return(0,s.jsxs)(o.Xn,{isOpen:!0,fullHeight:!0,onClose:t,children:[(0,s.jsx)(o.Xn.Header,{children:(0,s.jsx)(o.EY,{font:"display.large",children:(0,s.jsx)(K.A,{id:"filter"})})}),(0,s.jsx)(o.Xn.Content,{children:(0,s.jsxs)(o.so,{direction:"column",justify:"space-between",children:[(0,s.jsxs)(o.so,{direction:"column",px:"md",gap:"xl",children:[(0,s.jsx)(o.jT,{label:(0,s.jsx)(K.A,{id:"team"}),value:d.selectedTeam||r[0],disabled:1===r.length,onChange:e=>{if(void 0===e||e.id===f.FV)return void u(e=>({...e,selectedTeam:void 0}));u(t=>({...t,selectedTeam:e}))},options:r,getOptionLabel:e=>-1===e.id?n({id:e.name}):e.name,renderOption:e=>(0,s.jsxs)(o.so,{gap:"md",align:"center",p:"md",h:48,children:[e.id!==f.FV&&(0,s.jsx)(ea.p,{id:e.id,name:e.name,w:24,h:24}),e.id!==f.FV?e.name:(0,s.jsx)(K.A,{id:"all_teams"})]}),clearable:!1,zIndex:o.Py.Modal}),a===h.QCR.Football&&(0,s.jsx)(o.jT,{label:(0,s.jsx)(K.A,{id:"filter_option_home_away"}),value:f.pu.find(e=>e.id===d.selectedHomeAway),options:f.pu,getOptionLabel:e=>n({id:e.name}),clearable:!1,zIndex:o.Py.Modal,renderOption:e=>(0,s.jsx)(o.so,{gap:"md",align:"center",p:"md",h:48,children:(0,s.jsx)(K.A,{id:e.name})}),onChange:e=>e&&u(t=>({...t,selectedHomeAway:e.id}))}),(0,s.jsxs)(o.so,{direction:"column",gap:"lg",children:[(0,s.jsx)(o.EY,{font:"display.micro",children:(0,s.jsx)(K.A,{id:"per_mode"})}),(0,s.jsx)(o.a,{id:"per-game",name:"mode",label:n({id:a===h.QCR.Football?"stats.per90":"stats.perGame"}),value:a===h.QCR.Football?j.Per90Min:j.PerGame,checked:d.selectedMode===(a===h.QCR.Football?j.Per90Min:j.PerGame),onChange:e=>u(t=>({...t,selectedMode:e.target.value})),gap:"sm",cursor:"pointer"}),(0,s.jsx)(o.a,{id:"total",name:"mode",label:n({id:"total"}),value:j.Total,checked:d.selectedMode===j.Total,onChange:e=>u(t=>({...t,selectedMode:e.target.value})),gap:"sm",cursor:"pointer"})]})]}),(0,s.jsxs)(o.so,{px:"md",pb:"xl",justify:"space-between",position:"absolute",bottom:0,left:0,w:"100%",children:[(0,s.jsx)(o.$n,{variant:"outline",onClick:()=>{u({selectedHomeAway:w(a),selectedMode:k(a),selectedTeam:f.L3})},w:120,disabled:function(e,t,a){return t.selectedMode===e.selectedMode&&t.selectedTeam===e.selectedTeam&&(a!==h.QCR.Football||t.selectedHomeAway===e.selectedHomeAway)&&e.selectedMode===k(a)&&e.selectedTeam===f.L3&&(a!==h.QCR.Football||e.selectedHomeAway===w(a))}(i,d,a),children:(0,s.jsx)(K.A,{id:"basic.reset"})}),(0,s.jsx)(o.$n,{onClick:()=>{c(d),t()},w:120,children:(0,s.jsx)(K.A,{id:"basic.apply"})})]})]})})]})},ec=e=>{let{opened:t,onClose:a}=e,{isDesktop:n}=(0,m.$c)();return t?n?(0,s.jsx)(el,{}):(0,s.jsx)(ei,{onClose:a}):null},ed=()=>{let{isMobile:e}=(0,m.$c)(),[t,a]=(0,l.useState)(!e);return(0,s.jsxs)(o.so,{direction:"column",borderBottom:[void 0,"onSurface.nLv4"],py:[0,"md"],children:[(0,s.jsx)(et,{position:"top"}),(0,s.jsxs)(o.so,{bg:"surface.s1",br:"lg",elevation:[2,void 0],gap:"md",justify:"space-between",px:["sm","md"],py:["sm",0],children:[(0,s.jsx)(J,{}),(0,s.jsx)(ee,{onFilterClick:()=>a(e=>!e)})]}),(0,s.jsx)(ec,{opened:t,onClose:()=>a(!1)})]})};var eu=a(76356),ep=a(76868);let em=()=>(0,s.jsx)(ep.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"empty_filters_text"});var eh=a(9489);let eg=e=>{let{categories:t}=e,{selectors:a,handlers:n}=P();return 0===t.length?null:(0,s.jsx)(o.az,{px:"sm",pt:"md",mx:-8,children:(0,s.jsx)(o.tU,{variant:"tertiary",value:a.selectedCategory,onChange:e=>{"string"==typeof e&&n.setSelectedCategory(e)},children:(0,s.jsx)(o.tU.List,{children:t.map((e,a)=>(0,s.jsx)(o.tU.Tab,{tabKey:e,ml:0===a?"sm":void 0,mr:a===t.length-1?"sm":void 0,children:(0,s.jsx)(eh.R,{id:e})},e))})})})};var ef=a(12047),ey=a(41735);let ex=e=>{let{onClick:t,arrowDirection:a}=e,{isMobile:n}=(0,m.$c)(),{settings:r}=(0,ey.useTheme)();return(0,s.jsx)(o.so,{children:(0,s.jsx)(o.$n,{variant:"unshielded",size:"xs",p:"0",border:"none",onClick:t,style:{userSelect:"none",cursor:"pointer",border:"none",boxShadow:"none"},children:(0,s.jsx)(o.so,{align:"center",justify:"center",children:n?(0,s.jsx)(N.Bfd,{fill:"onSurface.nLv3",width:8,height:8,style:e_(a,r.textDirection)}):(0,s.jsx)(N.QtO,{fill:"primary.default",width:16,height:16,style:e_(a,r.textDirection)})})})})};function e_(e,t){return"rtl"===t?{transform:"right"===e?"rotate(90deg)":"rotate(270deg)"}:{transform:"right"===e?"rotate(270deg)":"rotate(90deg)"}}let ev=e=>{let{onLeftClick:t}=e,a=(0,ef.Ay)({isInMobileTabs:!0});return(0,s.jsx)(o.az,{position:["sticky","static"],top:a,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:(0,s.jsxs)(o.so,{h:42,justify:"space-between",align:"center",children:[(0,s.jsxs)(o.so,{overflowX:"hidden",gap:"sm",children:[(0,s.jsx)(o.EY,{block:!0,font:"display.small",color:"onSurface.nLv3",ellipsis:!0,lineHeight:1,w:40,children:(0,s.jsx)(K.A,{id:"year_label"})}),(0,s.jsx)(o.EY,{block:!0,font:"display.small",color:"onSurface.nLv3",ellipsis:!0,lineHeight:1,children:(0,s.jsx)(K.A,{id:"team"})})]}),t&&(0,s.jsx)(ex,{arrowDirection:"left",onClick:t})]})})};var ej=a(98423);let eb=(0,l.createContext)(void 0),ek=e=>{let{children:t,rows:a}=e,n=(0,g.o)(),[r,o]=(0,l.useState)({}),i=e=>{o(t=>({...t,[e]:!t[e]}))};return(0,l.useEffect)(()=>{(null==a?void 0:a.length)>0&&n===h.QCR.Football&&i(a[0].year)},[]),(0,s.jsx)(eb.Provider,{value:{extendedRowsRecord:r,updateExtendedRowsRecord:i},children:t})},ew=()=>{let e=(0,l.useContext)(eb);if(!e)throw Error();return e},eT=e=>{let{row:t,lastElement:a}=e,{selectors:n}=P(),{extendedRowsRecord:r,updateExtendedRowsRecord:l}=ew(),i=t.year===f.TH,c=(void 0===n.selectedUT||n.selectedUT.id===f.FV)&&r[t.year],d=c?40*(t.competitionRows.length+1):40;return(0,s.jsxs)(o.so,{h:d,direction:"column",borderBottom:a?void 0:"onSurface.nLv4",justify:"center",children:[(0,s.jsxs)(o.so,{align:"center",gap:"sm",h:40,children:[(0,s.jsx)(o.EY,{block:!0,font:"display.small",color:"onSurface.nLv1",align:"left",w:40,lineHeight:1,children:i?(0,s.jsx)(K.A,{id:"basic.all"}):t.year}),(0,s.jsxs)(o.so,{align:"center",gap:["xs","sm"],children:[[...t.teams].reverse().map(e=>(0,s.jsx)(ej.p,{id:e.id,size:16},"".concat(t.id,"-").concat(e.id))),t.competitionRows.length>0?(0,s.jsx)(o.so,{onClick:()=>l(t.year),cursor:"pointer",children:c?(0,s.jsx)(N.t8v,{fill:"onSurface.nLv1"}):(0,s.jsx)(N.QtO,{fill:"onSurface.nLv1"})}):null]})]}),c&&(0,s.jsx)(o.so,{direction:"column",children:t.competitionRows.map(e=>(0,s.jsxs)(o.so,{h:40,gap:"sm",align:"center",children:[(0,s.jsx)(ej.e,{id:e.uniqueTournament.id,size:16}),(0,s.jsxs)(o.EY,{font:"display.micro",lineHeight:1,overflowWrap:"break-word",children:[e.uniqueTournament.name," ",void 0!==e.seasonType&&[v.RegularSeason,v.Playoffs].includes(e.seasonType)&&(0,s.jsxs)(s.Fragment,{children:["(",(0,s.jsx)(K.A,{id:e.seasonType}),")"]})]})]},"".concat(t.id,"-").concat(e.uniqueTournament.id,"-").concat(e.seasonType)))})]})},eC=e=>{let{rows:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,a)=>(0,s.jsx)(eT,{row:e,lastElement:a===t.length-1},e.id))})},eS=e=>{let{rows:t,onLeftClick:a}=e;return(0,s.jsxs)(o.so,{direction:"column",grow:1,children:[(0,s.jsx)(ev,{onLeftClick:a}),(0,s.jsx)(eC,{rows:t})]})},eA=(0,ey.default)(o.az).withConfig({componentId:"sc-c2c19408-0"})(["::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"]),eM=e=>{let{scrollRef:t,statistics:a,onHeaderScroll:n}=e,r=(0,ef.Ay)({isInMobileTabs:!0}),l=(0,es.A)();return(0,s.jsx)(o.az,{position:["sticky","static"],bg:"surface.s1",top:r,zIndex:o.Py.Sticky-1,children:(0,s.jsx)(eA,{overflowX:"auto",ref:t,onScroll:n,children:(0,s.jsx)(o.so,{align:"center",h:42,children:a.map((e,t)=>(0,s.jsxs)(o.so,{minW:44,align:"center",title:l.formatMessage({id:e.translationKey||e.key}),children:[(0,s.jsx)(o.EY,{block:!0,font:"tab.secondary",color:"onSurface.nLv3",align:"center",w:"100%",children:(0,s.jsx)(K.A,{id:e.shortTranslationKey})}),t!==a.length-1&&(0,s.jsx)(o.cG,{vertical:!0})]},e.key))})})})};var ez=a(87827);let eP=e=>{let{statistic:t,displayValue:a,allRow:n}=e;return t&&"rating"===t.key?(0,s.jsx)(ez.G,{rating:a,decimalPoints:2}):void 0===a?(0,s.jsx)(s.Fragment,{children:"-"}):(0,s.jsx)(o.EY,{font:"body.medium",color:"onSurface.nLv1",fontWeight:n?"bold":"regular",children:a})},eE=e=>{let{row:t,lastElement:a}=e,{selectors:n}=P(),{extendedRowsRecord:r}=ew(),l=(void 0===n.selectedUT||n.selectedUT.id===f.FV)&&r[t.year];return(0,s.jsxs)(o.so,{direction:"column",children:[(0,s.jsx)(o.so,{children:t.values.map((e,n)=>(0,s.jsx)(o.so,{h:40,minW:44,align:"center",justify:"center",borderBottom:l||a?void 0:"onSurface.nLv4",children:(0,s.jsx)(eP,{statistic:t.statistics[n],displayValue:e,allRow:"all"===t.id})},"".concat(t.id,"-").concat(n)))}),l&&(0,s.jsx)(o.so,{direction:"column",children:t.competitionRows.map((e,n)=>(0,s.jsx)(o.so,{children:e.values.map((r,l)=>(0,s.jsx)(o.so,{h:40,minW:44,align:"center",justify:"center",borderBottom:n!==t.competitionRows.length-1||a?void 0:"onSurface.nLv4",children:(0,s.jsx)(eP,{statistic:e.statistics[l],displayValue:r})},"".concat(t.id,"-").concat(e.id,"-").concat(l)))},"".concat(t.id,"-").concat(n)))})]})},eK=e=>{let{rows:t,scrollRef:a,onBodyScroll:n}=e;return(0,s.jsx)(eA,{overflowX:"auto",ref:a,onScroll:n,children:(0,s.jsx)(o.so,{direction:"column",children:t.map((e,a)=>(0,s.jsx)(eE,{row:e,lastElement:a===t.length-1},e.id))})})},eL=e=>{let{headerScrollRef:t,bodyScrollRef:a,onHeaderScroll:n,onBodyScroll:r,rows:l,statistics:i}=e;return(0,s.jsxs)(o.so,{direction:"column",maxW:function(e){var t;let a;return[(a=0,e.forEach(e=>{e.teams.length>a&&(a=e.teams.length)}),(t=a)>=5)?132:t>=3?176:220,352,528]}(l),children:[(0,s.jsx)(eM,{scrollRef:t,onHeaderScroll:n,statistics:i}),(0,s.jsx)(eK,{scrollRef:a,onBodyScroll:r,rows:l})]})};var eI=a(21501);let eR=()=>{let e=(0,ey.useTheme)(),{selectors:t}=P(),a=(0,l.useRef)(!1),s=(0,l.useRef)(null),n=(0,l.useRef)(null),[r,o]=(0,l.useState)({left:!1,right:!1}),i=(0,l.useCallback)(()=>{if(!s.current)return;let e=Math.abs(s.current.scrollLeft),t=s.current.scrollWidth;o({left:e>0,right:e+s.current.clientWidth+1<=t})},[]),c=(0,l.useCallback)((e,t)=>{s.current&&n.current&&(a.current=!0,s.current.scroll({left:e,behavior:"smooth"}),n.current.scroll({left:e,behavior:"smooth"}),setTimeout(()=>{a.current=!1},t))},[]),d=(0,l.useCallback)(()=>{c(0,750)},[c]),u=(0,l.useCallback)(()=>{s.current&&n.current&&(a.current||(n.current.scrollLeft=s.current.scrollLeft),i())},[i]),p=(0,l.useCallback)(()=>{s.current&&n.current&&(a.current||(s.current.scrollLeft=n.current.scrollLeft),i())},[i]),m=(0,l.useCallback)(t=>{c("rtl"===e.settings.textDirection?Math.min(-t,0):Math.max(t,0),750)},[e.settings.textDirection,c]),h=(0,l.useCallback)(()=>{s.current&&m((Math.abs(s.current.scrollLeft)||0)-132)},[m]),g=(0,l.useCallback)(()=>{s.current&&m((Math.abs(s.current.scrollLeft)||0)+132)},[m]);return(0,eI.st)(i,void 0),(0,l.useEffect)(()=>{i(),d()},[t.selectedCategory,d,i]),{headerScrollRef:s,bodyScrollRef:n,onBodyScroll:p,onHeaderScroll:u,resetScroll:d,onLeftClick:r.left?h:void 0,onRightClick:r.right?g:void 0}},eG=e=>{let{statistics:t,rows:a}=e,n=(0,ef.Ay)({isInMobileTabs:!0}),{headerScrollRef:r,bodyScrollRef:l,onRightClick:i,onLeftClick:c,onHeaderScroll:d,onBodyScroll:u}=eR();return(0,s.jsx)(ek,{rows:a,children:(0,s.jsxs)(o.so,{w:"100%",h:"100%",pl:"md",pr:[0,"xxs"],children:[(0,s.jsxs)(o.so,{justify:"space-between",w:"100%",children:[(0,s.jsx)(eS,{rows:a,onLeftClick:c}),(0,s.jsx)(eL,{headerScrollRef:r,bodyScrollRef:l,onHeaderScroll:d,onBodyScroll:u,rows:a,statistics:t})]}),(0,s.jsx)(o.so,{minW:[8,16],h:42,align:"center",justify:"center",position:["sticky","static"],top:n,children:i&&(0,s.jsx)(ex,{arrowDirection:"right",onClick:i})})]})})},eH=e=>{let{statistics:t}=e;return(0,s.jsx)(o.az,{pb:[0,"lg"],bg:[void 0,"surface.s2"],children:t.map(e=>(0,s.jsxs)(o.so,{gap:"lg",px:[0,"lg"],py:"sm",children:[(0,s.jsx)(o.EY,{block:!0,font:"assistive.default",color:"onSurface.nLv3",w:"36px",children:(0,s.jsx)(K.A,{id:e.shortTranslationKey})}),(0,s.jsx)(o.EY,{font:"body.small",color:"onSurface.nLv1",children:(0,s.jsx)(K.A,{id:e.translationKey})})]},e.key))})},eF=e=>{let{statistics:t}=e;return(0,s.jsxs)(o.az,{pb:"lg",borderTop:"onSurface.nLv4",children:[(0,s.jsx)(o.EY,{block:!0,font:"display.small",color:"onSurface.nLv1",pt:"lg",pb:"sm",children:(0,s.jsx)(K.A,{id:"legend"})}),(0,s.jsx)(eH,{statistics:t})]})},eO=e=>{let{statistics:t}=e;return(0,s.jsx)(o.az,{children:(0,s.jsx)(o.nD,{children:(0,s.jsxs)(o.nD.Item,{br:"md",overflow:"hidden",children:[(0,s.jsx)(o.nD.Trigger,{bg:"surface.s2",children:(0,s.jsx)(o.EY,{font:"display.small",color:"onSurface.nLv1",children:(0,s.jsx)(K.A,{id:"legend"})})}),(0,s.jsx)(o.nD.Content,{children:(0,s.jsx)(eH,{statistics:t})})]})})})},eD=e=>{let{statistics:t}=e,{isDesktop:a}=(0,m.$c)();return(0,s.jsx)(o.az,{px:"md",pb:"md",children:a?(0,s.jsx)(eO,{statistics:t}):(0,s.jsx)(eF,{statistics:t})})},eY=e=>{let{data:t}=e;return(0,s.jsxs)(o.so,{w:"100%",grow:1,direction:"column",gap:"sm",children:[(0,s.jsxs)(o.so,{direction:"column",bg:["surface.s1",void 0],br:["lg",void 0],elevation:[2,void 0],w:"100%",grow:1,children:[(0,s.jsx)(eg,{categories:t.categories}),(0,s.jsxs)(o.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(eG,{statistics:t.statistics,rows:t.rows}),(0,s.jsx)(eD,{statistics:t.statistics})]})]}),(0,s.jsx)(et,{position:"bottom"})]})};var eB=a(45860);let eV=(e,t,a,s)=>e===h.QCR.Football&&s.selectedHomeAway?h.qvj.allCompetitionsStatistics(t.id,s.selectedHomeAway):h.qvj.allCompetitionsStatistics(t.id);var eQ=a(29911),eN=a(95543);let eW=(e,t,a)=>{let s=t.minutesPlayed,n=t.appearances,r=t[e.key],o=a.mode===j.PerGame,l=a.mode===j.Per90Min;if(void 0!==r){if(l&&!e.neverPerGame&&s){let t="minutesPlayed"===e.key?r/n:r/s*90,a=t>0&&t<.1?2:e.decimals||1;return(0,eN.M)(t,a)}if(o&&!e.neverPerGame&&void 0!==n){let t=r/n,a=t>0&&t<.1?2:e.decimals||1;return(0,eN.M)(t,a)}if(e.decimals){let t=r>0&&r<.1?2:e.decimals||1;return(0,eN.M)(r,t)}return r>=1e4?(0,eN.M)(r/1e3,1)+"k":r.toString()}},eU=(e,t)=>{switch(e.key){case"puntingTouchbacksPercentage":if(!t.puntingTouchbacks||!t.puntingTotal)return;return t.puntingTouchbacks/(t.puntingTotal/100);case"puntingInside20Percentage":if(!t.puntingInside20||!t.puntingTotal)return;return t.puntingInside20/(t.puntingTotal/100);case"minutesPlayed":if(!t.secondsPlayed)return;return Math.round(t.secondsPlayed/60);case"plusMinus":if(!t.plusMinus)return;return t.plusMinus/t.appearances;case"goalInvolvements":if(void 0===t.goals&&void 0===t.assists)return;return(t.goals||0)+(t.assists||0);case"expectedGoalInvolvements":if(void 0===t.expectedGoals&&void 0===t.expectedAssists)return;return(t.expectedGoals||0)+(t.expectedAssists||0);case"savesPercentage":if(!t.saves||!t.goalsConceded)return;return t.saves/(t.saves+t.goalsConceded)*100;case"penaltySavePercentage":if(!t.penaltySave||!t.penaltyFaced)return;return t.penaltySave/t.penaltyFaced*100;case"accurateCrossesPercentage":if(!t.accurateCrosses||!t.totalCross)return;return 100*t.accurateCrosses/t.totalCross;case"accurateLongBallsPercentage":if(!t.accurateLongBalls||!t.totalLongBalls)return;return 100*t.accurateLongBalls/t.totalLongBalls;case"accuratePassesPercentage":if(!t.accuratePasses||!t.totalPasses)return;return 100*t.accuratePasses/t.totalPasses;case"rating":if(!t.totalRating||!t.countRating)return;return t.totalRating/t.countRating;case"expectedGoalsConceded":if(!t.goalsConceded||!t.goalsPrevented)return;return t.goalsConceded+t.goalsPrevented;default:return}},eq=(e,t,a)=>{let s=eU(e,t);if(void 0!==s)return eW(e,{...t,[e.key]:s},a)},eZ=(e,t,a)=>e.composite?eq(e,t,a):eW(e,t,a),e$=(e,t)=>e.values.slice(1).some(e=>void 0!==e),eX=(e,t,a)=>e.map(e=>eZ(e,t,a)),eJ=(e,t,a)=>({id:f.TH,year:f.TH,teams:[],values:eX(e,t,a),competitionRows:[],statistics:e}),e0=(e,t,a)=>({id:(0,eQ.A)(),year:t.year,teams:t.teams,values:eX(e,t.statistics,a),statistics:e,competitionRows:t.competitionRows.map(t=>({id:t.id,uniqueTournament:t.uniqueTournament,values:eX(e,t.statistics,a),statistics:e,seasonType:t.seasonType}))}),e1=(e,t,a)=>t.map(t=>e0(e,t,a)).filter(e=>e$(e,a)),e2={key:"appearances",translationKey:"am_foot_games_played",shortTranslationKey:"am_foot_games_played_short",neverPerGame:!0},e9=[e2,{key:"passingCompletions",translationKey:"am_football_completed_passes_long",shortTranslationKey:"am_football_completed_passes_short"},{key:"passingAttempts",translationKey:"am_football_attempted_passes_long",shortTranslationKey:"am_football_attempted_passes_short"},{key:"passingCompletionPercentage",translationKey:"am_football_completion_pct_long",shortTranslationKey:"am_football_completion_pct_short",neverPerGame:!0,decimals:1},{key:"passingYards",translationKey:"am_football_passing_yards_long",shortTranslationKey:"am_football_passing_yards_short"},{key:"passingYardsPerAttempt",translationKey:"am_football_average_passing_yards_per_attempt_long",shortTranslationKey:"am_football_average_passing_yards_per_attempt_short",neverPerGame:!0,decimals:1},{key:"passingTouchdowns",translationKey:"am_football_passing_touchdowns_long",shortTranslationKey:"am_football_passing_touchdowns_short"},{key:"passingInterceptions",translationKey:"am_football_interceptions_thrown_long",shortTranslationKey:"am_football_interceptions_thrown_short"},{key:"passingLongest",translationKey:"am_football_longest_pass_long",shortTranslationKey:"am_football_longest_pass_short",neverPerGame:!0},{key:"passingSacked",translationKey:"am_football_quarterback_sacked_long",shortTranslationKey:"am_football_quarterback_sacked_short",decimals:1},{key:"passingFirstDowns",translationKey:"american_football_passing_first_downs",shortTranslationKey:"am_football_passing_first_downs_short"},{key:"passingPasserRating",translationKey:"legend_am_foot_pass_rating",shortTranslationKey:"am_football_passer_rating_short",neverPerGame:!0,decimals:1}],e5=[e2,{key:"rushingAttempts",translationKey:"am_football_rushing_attempts_long",shortTranslationKey:"am_football_rushing_attempts_short"},{key:"rushingYards",translationKey:"am_football_rushing_yards_long",shortTranslationKey:"am_football_rushing_yards_short"},{key:"rushingYardsPerAttempt",translationKey:"am_football_average_rushing_yards_per_attempt_long",shortTranslationKey:"am_football_average_rushing_yards_per_attempt_short",neverPerGame:!0,decimals:1},{key:"rushingTouchdowns",translationKey:"am_football_rushing_touchdowns_long",shortTranslationKey:"am_football_rushing_touchdowns_short"},{key:"rushingLongest",translationKey:"am_football_longest_rush_long",shortTranslationKey:"am_football_longest_rush_short",neverPerGame:!0},{key:"rushingFirstDowns",translationKey:"am_football_rushing_first_downs_long",shortTranslationKey:"am_football_rushing_first_downs_short"},{key:"fumbleFumbles",translationKey:"legend_am_foot_fumbles",shortTranslationKey:"legend_am_foot_fumbles_short"}],e3=[e2,{key:"receivingReceptions",translationKey:"am_football_receptions_long",shortTranslationKey:"am_football_receptions_short"},{key:"receivingTargets",translationKey:"am_football_receiving_targets_long",shortTranslationKey:"am_football_receiving_targets_short"},{key:"receivingYards",translationKey:"am_football_receiving_yards_long",shortTranslationKey:"am_football_receiving_yards_short"},{key:"receivingYardsPerReception",translationKey:"am_football_average_yards_per_reception_long",shortTranslationKey:"am_football_average_yards_per_reception_short",neverPerGame:!0,decimals:1},{key:"receivingTouchdowns",translationKey:"am_football_receiving_touchdowns_long",shortTranslationKey:"am_football_receiving_touchdowns_short"},{key:"receivingLongest",translationKey:"am_football_longest_reception_long",shortTranslationKey:"am_football_longest_reception_short",neverPerGame:!0},{key:"receivingFirstDowns",translationKey:"am_football_receiving_1_downs_long",shortTranslationKey:"am_football_receiving_1_downs_short"}],e4=[e2,{key:"defensiveCombineTackles",translationKey:"am_football_total_tackles_long",shortTranslationKey:"am_football_total_tackles_short"},{key:"defensiveTotalTackles",translationKey:"am_football_solo_tackles_long",shortTranslationKey:"am_football_solo_tackles_short"},{key:"defensiveAssistTackles",translationKey:"am_football_assisted_tackles_long",shortTranslationKey:"am_football_assisted_tackles_short"},{key:"defensiveSacks",translationKey:"legend_am_foot_sacks",shortTranslationKey:"am_football_sacks_short",decimals:1},{key:"defensiveForcedFumbles",translationKey:"am_football_forced_fumbles_long",shortTranslationKey:"am_football_forced_fumbles_short"},{key:"defensiveInterceptions",translationKey:"am_football_interceptions_long",shortTranslationKey:"am_football_interceptions_short"},{key:"defensiveInterceptionsYards",translationKey:"am_football_interception_return_yards_long",shortTranslationKey:"am_football_interception_return_yards_short"},{key:"defensiveInterceptionsYardsAvg",translationKey:"am_football_average_interception_return_yards_long",shortTranslationKey:"am_football_average_interception_return_yards_short",neverPerGame:!0,decimals:1},{key:"defensiveInterceptionsTouchdowns",translationKey:"am_football_interception_touchdowns",shortTranslationKey:"am_football_interception_touchdowns_short"},{key:"defensivePassesDefensed",translationKey:"am_football_passes_defended_long",shortTranslationKey:"am_football_passes_defended_short"}],e8=[e2,{key:"puntingTotal",translationKey:"am_football_punts_long",shortTranslationKey:"am_football_punts_short"},{key:"puntingYardsPerPuntAvg",translationKey:"am_football_average_punt_yards_long",shortTranslationKey:"am_football_average_punt_yards_short",neverPerGame:!0,decimals:1},{key:"puntingLongest",translationKey:"am_football_longest_punt_long",shortTranslationKey:"am_football_longest_punt_short",neverPerGame:!0},{key:"puntingTouchbacks",translationKey:"am_football_touchbacks_long",shortTranslationKey:"am_football_touchbacks_short"},{key:"puntingTouchbacksPercentage",translationKey:"am_football_touchback_percentage_long",shortTranslationKey:"am_football_touchback_percentage_short",neverPerGame:!0,decimals:1,composite:!0},{key:"puntingInside20",translationKey:"am_football_punts_inside_20_long",shortTranslationKey:"am_football_punts_inside_20_short"},{key:"puntingInside20Percentage",translationKey:"am_football_punts_inside_20_percent_long",shortTranslationKey:"am_football_punts_inside_20_percent_short",neverPerGame:!0,composite:!0},{key:"puntsNetYardsPerPuntAvg",translationKey:"am_football_net_average_punt_yards_long",shortTranslationKey:"am_football_net_average_punt_yards_short",neverPerGame:!0,decimals:1}],e6=[e2,{key:"kickingFgMade",translationKey:"am_football_field_goals_made_long",shortTranslationKey:"am_football_field_goals_made_short"},{key:"kickingFgAttempts",translationKey:"am_football_field_goals_attempted_long",shortTranslationKey:"am_football_field_goals_attempted_short"},{key:"kickingFgPercentage",translationKey:"am_football_field_goal_percentage_long",shortTranslationKey:"am_football_field_goal_percentage_short",neverPerGame:!0},{key:"kickingFgMade1to19",translationKey:"am_football_1_19_yard_field_goals_long",shortTranslationKey:"am_football_1_19_yard_field_goals_short"},{key:"kickingFgMade20to29",translationKey:"am_football_20_29_yard_field_goals_long",shortTranslationKey:"am_football_20_29_yard_field_goals_short"},{key:"kickingFgMade30to39",translationKey:"am_football_30_39_yard_field_goals_long",shortTranslationKey:"am_football_30_39_yard_field_goals_short"},{key:"kickingFgMade40to49",translationKey:"am_football_40_49_yard_field_goals_long",shortTranslationKey:"am_football_40_49_yard_field_goals_short"},{key:"kickingFgMade50plus",translationKey:"am_football_over_50_yard_field_goals_long",shortTranslationKey:"am_football_over_50_yard_field_goals_short"},{key:"kickingFgLong",translationKey:"legend_am_foot_longest_field_goal_made",shortTranslationKey:"am_football_longest_field_goal_made_short",neverPerGame:!0},{key:"kickingExtraMade",translationKey:"am_football_extra_points_made_long",shortTranslationKey:"am_football_extra_points_made_short"},{key:"kickingExtraAttempts",translationKey:"am_football_extra_points_attempted_long",shortTranslationKey:"am_football_extra_points_attempted_short"},{key:"kickingTotalPoints",translationKey:"am_football_total_kicking_points_long",shortTranslationKey:"am_football_total_kicking_points_short"}],e7=[e2,{key:"kickReturnsTotal",translationKey:"am_football_attempted_kick_returns_long",shortTranslationKey:"am_football_attempted_kick_returns_short"},{key:"kickReturnsYards",translationKey:"am_football_kick_return_yards_long",shortTranslationKey:"am_football_kick_return_yards_short"},{key:"kickReturnsAverageYards",translationKey:"am_football_average_kick_return_yards_long",shortTranslationKey:"am_football_average_kick_return_yards_short"},{key:"kickReturnsTouchdowns",translationKey:"legend_am_foot_kick_return_touchdowns",shortTranslationKey:"am_football_kick_return_touchdowns"},{key:"kickReturnsFairCatches",translationKey:"am_football_fair_catch_kick",shortTranslationKey:"am_football_fair_catch_kick_short"},{key:"kickReturnsLong",translationKey:"kick_returns_longest",shortTranslationKey:"kick_returns_longest_short"}],te=[e2,{key:"puntReturnsTotal",translationKey:"am_football_attempted_punt_returns_long",shortTranslationKey:"am_football_attempted_punt_returns_short"},{key:"puntReturnsYards",translationKey:"am_football_punt_return_yards_long",shortTranslationKey:"am_football_punt_return_yards_short"},{key:"puntReturnsAverageYards",translationKey:"am_football_average_punt_return_yards_long",shortTranslationKey:"am_football_average_punt_return_yards_short"},{key:"puntReturnsTouchdowns",translationKey:"legend_am_foot_punt_return_touchdowns",shortTranslationKey:"legend_am_foot_punt_return_touchdowns_short"},{key:"puntReturnsFairCatches",translationKey:"am_football_fair_catch_punt",shortTranslationKey:"am_football_fair_catch_punt_short"},{key:"puntReturnsLong",translationKey:"punt_returns_longest",shortTranslationKey:"punt_returns_longest_short"}],tt={passing:e9,rushing:e5,receiving:e3,defensive:e4,punting:e8,kicking:e6,kickReturns:e7,puntReturns:te},ta={receiving:e3,rushing:e5,passing:e9,defensive:e4,punting:e8,kicking:e6,kickReturns:e7,puntReturns:te},ts={rushing:e5,receiving:e3,passing:e9,defensive:e4,punting:e8,kicking:e6,kickReturns:e7,puntReturns:te},tn={defensive:e4,passing:e9,rushing:e5,receiving:e3,punting:e8,kicking:e6,kickReturns:e7,puntReturns:te},tr={QB:tt,WR:ta,TE:ta,RB:ts,FB:ts,SS:tn,SAF:tn,FS:tn,DL:tn,DB:tn,CB:tn,NT:tn,DT:tn,DE:tn,OLB:tn,MLB:tn,LB:tn,ILB:tn,P:{punting:e8,kicking:e6,passing:e9,rushing:e5,receiving:e3,defensive:e4,kickReturns:e7,puntReturns:te},K:{kicking:e6,punting:e8,passing:e9,rushing:e5,receiving:e3,defensive:e4,kickReturns:e7,puntReturns:te}},to=e=>{var t;return null!=(t=tr[e])?t:tt},tl=(e,t,a)=>{var s;if(!e.position)throw Error("Am. football player must have position defined!");let n=to(e.position),r=Object.keys(n),o={};r.forEach(e=>{let s=e1(n[e],t.seasons,a);s.length>0&&(o[e]=s)});let l=[],i=Object.keys(o),c=a.category||i[0];return void 0!==c&&(null==(s=o[c])?void 0:s.length)>0&&(l.push(eJ(n[c],t.all,a)),l.push(...o[c])),{categories:i,rows:[...l],statistics:void 0!==c?n[c]:[]}},ti=[{key:"appearances",translationKey:"basketball_games_played",shortTranslationKey:"basketball_games_played_short",neverPerGame:!0},{key:"minutesPlayed",translationKey:"minutes",shortTranslationKey:"basketball_lineups_minutes_played",composite:!0},{key:"points",translationKey:"points",shortTranslationKey:"basketball_lineups_points"},{key:"rebounds",translationKey:"rebounds",shortTranslationKey:"basketball_lineups_rebounds"},{key:"assists",translationKey:"football_assists",shortTranslationKey:"basketball_lineups_assists"},{key:"steals",translationKey:"steals",shortTranslationKey:"basketball_lineups_steals"},{key:"blocks",translationKey:"blocks",shortTranslationKey:"basketball_lineups_blocks"},{key:"personalFouls",translationKey:"basketball_personal_fouls",shortTranslationKey:"basketball_personal_fouls_short"},{key:"turnovers",translationKey:"turnovers",shortTranslationKey:"basketball_lineups_turnovers"},{key:"offensiveRebounds",translationKey:"offensive_rebounds",shortTranslationKey:"basketball_lineups_off_rebounds"},{key:"defensiveRebounds",translationKey:"defensive_rebounds",shortTranslationKey:"basketball_lineups_def_rebounds"},{key:"fieldGoalsMade",translationKey:"field_goals",shortTranslationKey:"basketball_lineups_field_goals"},{key:"fieldGoalAttempts",translationKey:"basketball_field_goals_attempted",shortTranslationKey:"basketball_field_goals_attempted_short"},{key:"fieldGoalsPercentage",translationKey:"field_goals_percentage",shortTranslationKey:"basketball_lineups_field_goals_pct",neverPerGame:!0,decimals:1},{key:"freeThrowsMade",translationKey:"free_throws",shortTranslationKey:"basketball_lineups_free_throws"},{key:"freeThrowAttempts",translationKey:"basketball_free_throws_attempted",shortTranslationKey:"basketball_free_throws_attempted_short"},{key:"freeThrowsPercentage",translationKey:"free_throws_percentage",shortTranslationKey:"basketball_lineups_free_throw_pct",neverPerGame:!0,decimals:1},{key:"threePointsMade",translationKey:"three_pointers",shortTranslationKey:"basketball_lineups_three_pointers"},{key:"threePointAttempts",translationKey:"basketball_three_points_attempted",shortTranslationKey:"basketball_three_points_attempted_short"},{key:"threePointsPercentage",translationKey:"three_points_percentage",shortTranslationKey:"basketball_lineups_three_point_pct",neverPerGame:!0,decimals:1},{key:"plusMinus",translationKey:"basketball_plus_minus",shortTranslationKey:"basketball_plus_minus_short",neverPerGame:!0,composite:!0,decimals:1},{key:"doubleDoubles",translationKey:"doubleDoubles",shortTranslationKey:"basketball_double_double_short",neverPerGame:!0},{key:"tripleDoubles",translationKey:"tripleDoubles",shortTranslationKey:"basketball_triple_double_short",neverPerGame:!0}],tc=()=>ti,td=(e,t)=>{let a=tc(),s=e1(a,e.seasons,t);return{categories:[],rows:[eJ(a,e.all,t),...s],statistics:a}},tu={key:"appearances",translationKey:"matches_played",shortTranslationKey:"matches_played_short",neverPerGame:!0},tp={key:"minutesPlayed",translationKey:"minutes_played",shortTranslationKey:"basketball_lineups_minutes_played"},tm={key:"goals",translationKey:"goals",shortTranslationKey:"goals_short"},th={key:"assists",translationKey:"football_assists",shortTranslationKey:"basketball_lineups_assists"},tg={key:"rating",translationKey:"average_sofascore_rating",shortTranslationKey:"average_sofascore_rating_short",decimals:2,neverPerGame:!0,composite:!0},tf={key:"accuratePasses",translationKey:"football_accurate_passes",shortTranslationKey:"football_accurate_passes_short"},ty={key:"accuratePassesPercentage",translationKey:"football_passing_accuracy_percentage",shortTranslationKey:"football_pass_accuracy_percentage_short",decimals:1,neverPerGame:!0,composite:!0},tx={key:"accurateLongBalls",translationKey:"football_accurate_long_balls",shortTranslationKey:"football_accurate_long_balls_short"},t_={key:"accurateLongBallsPercentage",translationKey:"football_long_balls_accuracy_percentage",shortTranslationKey:"football_long_balls_accuracy_percentage_short",decimals:1,neverPerGame:!0,composite:!0},tv={key:"cleanSheet",translationKey:"cleanSheets",shortTranslationKey:"football_clean_sheets_short"},tj={key:"yellowCards",translationKey:"football_yellow_cards",shortTranslationKey:"football_yellow_cards_short"},tb={key:"redCards",translationKey:"red_cards",shortTranslationKey:"football_red_cards_short"},tk={key:"errorLeadToGoal",translationKey:"errors_leading_to_goal",shortTranslationKey:"football_errors_to_goal_short"},tw={key:"dribbledPast",translationKey:"dribbledPast",shortTranslationKey:"football_dribbled_past_short"},tT={key:"tackles",translationKey:"football_tackles",shortTranslationKey:"football_tackles_short"},tC={key:"interceptions",translationKey:"football_interceptions",shortTranslationKey:"am_football_interceptions_short"},tS={key:"aerialDuelsWon",translationKey:"aerialDuelsWon",shortTranslationKey:"football_aerial_duels_won_short"},tA={key:"goalsConceded",translationKey:"football_goals_conceded",shortTranslationKey:"football_goals_conceded_short"},tM={summaryGroup:[tu,tp,tm,th,tg],shootingGroup:[tu,tm,{key:"totalShots",translationKey:"football_total_shots",shortTranslationKey:"football_total_shots_short"},{key:"shotsOnTarget",translationKey:"football_shots_on_goal",shortTranslationKey:"football_shots_on_target_short"},{key:"bigChancesMissed",translationKey:"football_big_chances_missed",shortTranslationKey:"football_big_chances_missed_short"}],teamPlayGroup:[tu,th,{key:"keyPasses",translationKey:"keyPasses",shortTranslationKey:"football_key_passes_short"},{key:"bigChancesCreated",translationKey:"bigChancesCreated",shortTranslationKey:"football_big_chances_created_short"},{key:"successfulDribbles",translationKey:"successfulDribbles",shortTranslationKey:"football_successful_dribbles_short"}],passingGroup:[tu,tf,ty,tx,t_,{key:"accurateCrosses",translationKey:"football_accurate_crosses",shortTranslationKey:"football_accurate_crosses_short"},{key:"accurateCrossesPercentage",translationKey:"football_crossing_accuracy_percentage",shortTranslationKey:"football_crossing_accuracy_percentage_short",decimals:1,neverPerGame:!0,composite:!0}],defendingGroup:[tu,tv,tj,tb,tk,tw,tT,tC,{key:"blockedShots",translationKey:"football_blocked_shots",shortTranslationKey:"football_blocked_shots_short"},tS],additionalGroup:[tu,tm,{key:"expectedGoals",translationKey:"football_expected_goals",shortTranslationKey:"football_expected_goals_short",decimals:2},th,{key:"expectedAssists",translationKey:"football_expected_assists",shortTranslationKey:"football_expected_assists_short",decimals:2},{key:"goalInvolvements",translationKey:"football_goal_involvements",shortTranslationKey:"football_goal_involvements_short",composite:!0},{key:"expectedGoalInvolvements",translationKey:"football_expected_goal_involvements",shortTranslationKey:"football_expected_goal_involvements_short",composite:!0,decimals:2}]},tz={summaryGroup:[tu,tp,tv,tA,tg],goalkeepingGroup:[tu,{key:"saves",translationKey:"player_ability_saves",shortTranslationKey:"saves_short"},{key:"savesPercentage",translationKey:"football_saves_percentage",shortTranslationKey:"football_saves_percentage_short",composite:!0,decimals:1,neverPerGame:!0},{key:"penaltySave",translationKey:"penaltiesSaved",shortTranslationKey:"football_penalties_saved_short"},{key:"penaltySavePercentage",translationKey:"football_penalty_save_percentage",shortTranslationKey:"football_penalty_save_percentage_short",composite:!0,decimals:1,neverPerGame:!0}],passingGroup:[tu,tf,ty,tx,t_],defendingGroup:[tu,tv,tj,tb,tk,tw,tT,tC,tS],attackingGroup:[tu,tm,th],additionalGroup:[tu,tA,{key:"expectedGoalsConceded",translationKey:"football_expected_goals_conceded",shortTranslationKey:"football_expected_goals_conceded_short",composite:!0,decimals:1},{key:"goalsPrevented",translationKey:"football_goals_prevented",shortTranslationKey:"GP",decimals:2}]},tP=e=>"G"===e?tz:tM,tE=(e,t,a)=>{var s;if(!e.position)throw Error("Football player must have position defined!");let n=tP(e.position),r=Object.keys(n),o={};r.forEach(e=>{let s=e1(n[e],t.seasons,a);s.length>0&&(o[e]=s)});let l=[],i=Object.keys(o),c=a.category||i[0];return void 0!==c&&(null==(s=o[c])?void 0:s.length)>0&&l.push(...o[c]),{categories:i,rows:[...l],statistics:void 0!==c?n[c]:[]}},tK=e=>{let{sport:t,player:a,response:s,config:n}=e;switch(t){case h.QCR.AmericanFootball:return tl(a,s,n);case h.QCR.Basketball:return td(s,n);case h.QCR.Football:return tE(a,s,n);default:throw Error("This sport is not supported yet!")}},tL=["fieldGoalsPercentage","freeThrowsPercentage","threePointsPercentage","passingCompletionPercentage","kickingFgPercentage","puntingTouchbacksPercentage","puntingInside20Percentage"];function tI(e){let t={},a={};for(let s of e)for(let[e,n]of Object.entries(s.statistics))"number"==typeof n&&(t[e]=(t[e]||0)+n,tL.includes(e)&&(a[e]=(a[e]||0)+1));for(let e of Object.keys(a))t[e]/=a[e];return t}let tR={[f.ie.DomesticLeagues]:h.Ylj.DomesticLeague,[f.ie.DomesticCups]:h.Ylj.DomesticCup,[f.ie.InternationalCompetitions]:h.Ylj.InternationalCup,[f.ie.NationalTeamCompetitions]:h.Ylj.National,[f.ie.AllClubCompetitions]:e=>e!==h.Ylj.National},tG=(e,t,a,s)=>{if(void 0!==t){let n=function(e,t,a){let{selectedUT:s,selectedCompetitionCategory:n}=a;if(e===h.QCR.Football){if(s)return t.filter(e=>e.uniqueTournament.id===a.selectedUT.id);if(n)return t.filter(e=>{if(void 0===e.uniqueTournament.competitionType)return!1;let t=tR[n.id];return"function"==typeof t?t(e.uniqueTournament.competitionType):e.uniqueTournament.competitionType===t})}let r=(null==s?void 0:s.id)!==f.FV?t.filter(e=>e.uniqueTournament.id===(null==s?void 0:s.id)):t;return a.selectedSeasonType?r.filter(e=>e.statistics.type===a.selectedSeasonType):r}(e,t.seasons,s),r=function(e,t,a,s){var n;let r=t;return e===h.QCR.Basketball&&(null==(n=s.selectedUT)?void 0:n.id)===f.FV&&(r=r.filter(e=>!e.team.national)),a.selectedTeam&&(r=r.filter(e=>{var t;return e.team.id===(null==(t=a.selectedTeam)?void 0:t.id)})),r}(e,n,a,s),o=tI(r),l=function(e,t,a){var s;let n=new Map,r=t;return e===h.QCR.Basketball&&(null==(s=a.selectedUT)?void 0:s.id)===f.FV&&(r=t.filter(e=>!e.team.national)),(r=void 0!==a.selectedUT&&a.selectedUT.id!==f.FV?r.filter(e=>e.uniqueTournament.id===a.selectedUT.id):r).forEach(e=>{n.has(e.team.id)||n.set(e.team.id,e.team)}),Array.from(n.values())}(e,n,s);return{all:o,seasons:function(e,t){let a=new Map;for(let s of e){a.has(s.year)||a.set(s.year,{seasons:[],teams:[],competitionRows:[]});let e=a.get(s.year);if(e.seasons.push(s),e.teams.some(e=>e.id===s.team.id)||e.teams.push(s.team),void 0!==s.previousTeams)for(let t of s.previousTeams)e.teams.find(e=>e.id===t.id)||e.teams.push(t);if(void 0!==s.uniqueTournament&&(void 0===t||t.id===f.FV)){let t=s.uniqueTournament.id,a=s.statistics.type,n=e.competitionRows.findIndex(e=>e.id===t&&e.seasonType===a);if(n>-1){let s=e.seasons.filter(e=>e.uniqueTournament.id===t&&e.statistics.type===a);e.competitionRows[n]={...e.competitionRows[n],statistics:tI(s)}}else e.competitionRows.push({id:s.uniqueTournament.id,uniqueTournament:s.uniqueTournament,statistics:s.statistics,seasonType:s.statistics.type})}}return Array.from(a.entries()).map(e=>{let[t,a]=e;return{year:t,statistics:tI(a.seasons),teams:a.teams,competitionRows:a.competitionRows}})}(r,s.selectedUT),teams:l}}return{all:{},seasons:[],teams:[]}},tH=()=>{let e=(0,g.o)(),{filters:t}=S(),{player:a,onChangePlayerTeams:s}=_(),{selectors:n,handlers:r}=P(),{data:o,isLoading:i,error:c}=(0,eB.Ay)(eV(e,a,n,t),{keepPreviousData:!0}),d=(0,l.useMemo)(()=>tG(e,o,t,n),[e,o,t.selectedTeam,n.selectedUT,n.selectedSeasonType,n.selectedCompetitionCategory]),u=(0,l.useMemo)(()=>tK({sport:e,player:a,response:d,config:{category:n.selectedCategory,mode:t.selectedMode}}),[d,t.selectedMode,n.selectedCategory,n.selectedSeasonType,n.selectedCompetitionCategory]);return(0,l.useEffect)(()=>{s(d.teams)},[d]),(0,l.useEffect)(()=>{void 0===n.selectedCategory&&u.categories.length>0&&r.setSelectedCategory(u.categories[0]),void 0!==n.selectedCategory&&0===u.rows.length&&r.setSelectedCategory(u.categories[0])},[u]),{data:u,loading:i,error:c}},tF=()=>{let{data:e,loading:t,error:a}=tH();return t?(0,s.jsx)(eu.az,{h:"[600px]"}):a||!e?null:0===e.rows.length?(0,s.jsx)(em,{}):(0,s.jsx)(eY,{data:e})},tO=()=>(0,s.jsxs)(p,{children:[(0,s.jsx)(ed,{}),(0,s.jsx)(tF,{})]});function tD(e){let{asCard:t}=e,a=(0,g.o)(),{isDesktop:r}=(0,m.$c)();return(0,s.jsxs)(n.HH,{isCard:!!t,children:[r&&(0,s.jsx)(n.Zp.Header,{titleId:"am_football_career_tab"}),(0,s.jsxs)(eu.so,{direction:"column",gap:"md",p:"md",borderBottom:{base:void 0,md:"[1px solid]"},borderColor:{base:void 0,md:"neutrals.nLv4"},children:[a===h.QCR.Football&&r&&(0,s.jsx)(eu.az,{h:"4xl",bg:"surface.s2",br:"md"}),(0,s.jsx)(eu.az,{h:"2xl",bg:"surface.s2",br:"md"}),(0,s.jsxs)(eu.so,{align:"center",gap:"lg",children:[(0,s.jsx)(m.EY,{textStyle:"display.micro",display:"block",children:(0,s.jsx)(K.A,{id:"team"})}),(0,s.jsx)(eu.az,{h:"2xl",bg:"surface.s2",br:"md",flexGrow:1})]})]}),(0,s.jsx)(eu.az,{h:"[600px]"})]})}let tY=[10415],tB=(e,t)=>{let a=[...new Map(t.map(e=>[e.uniqueTournament.id,e])).values()].filter(e=>!tY.includes(e.uniqueTournament.id)).map(e=>({id:e.uniqueTournament.id,name:e.uniqueTournament.name,type:e.uniqueTournament.competitionType}));return e===h.QCR.Basketball?1!==a.length?[...a,{id:f.FV,name:"all_competitions"}]:a:[...a]},tV=e=>{let t=(0,g.o)(),{data:a,isLoading:s,error:n}=(0,eB.Ay)(h.qvj.uniqueTournamentSeasonsStatistics(e.id),{revalidateOnMount:!0});return s?{isLoading:s}:a&&!n?{uniqueTournaments:tB(t,a.seasons),typesMap:a.typesMap}:void 0},tQ=e=>{let{player:t,asCard:a}=e,o=tV(t);return o?o.isLoading?(0,s.jsx)(tD,{asCard:a}):(0,s.jsx)(r.t,{tag:"PlayerCareerStatistics",children:(0,s.jsx)(x,{player:t,uniqueTournaments:o.uniqueTournaments,typesMap:o.typesMap,children:(0,s.jsx)(z,{children:(0,s.jsx)(C,{children:(0,s.jsxs)(n.HH,{isCard:!!a,children:[a&&(0,s.jsx)(n.Zp.Header,{titleId:"am_football_career_tab"}),(0,s.jsx)(tO,{})]})})})})}):null}},90142:(e,t,a)=>{"use strict";function s(e,t){var a={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&0>t.indexOf(s)&&(a[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(e);nt.indexOf(s[n])&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(a[s[n]]=e[s[n]])}return a}a.d(t,{T:()=>s}),"function"==typeof SuppressedError&&SuppressedError},90536:(e,t,a)=>{"use strict";a.d(t,{AG:()=>o,Ve:()=>l,aQ:()=>d,mR:()=>i,o5:()=>c});var s=a(21377),n=a(13731),r=a.n(n);let o=e=>e.reduce((e,t)=>e+Number(t),0)/e.length,l=e=>"".concat(e.getFullYear(),"-").concat(9>e.getMonth()?"0":"").concat(e.getMonth()+1);function i(e){let t=e.filter(e=>e.type===s.XFZ.Event);return r()(t,e=>l(new Date(1e3*e.timestamp)))}function c(){let e={},t=new Date;for(let a=0;a<12;a++)e[l(t)]=void 0,t.setMonth(t.getMonth()-1);return e}function d(){let e=new Date;return[new Date(e.getFullYear(),e.getMonth()-11,1).getTime(),new Date(e.getFullYear(),e.getMonth()+1,0).getTime()]}},90547:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>o});var s=a(90142),n=a(6029),r=a(39895);function o(e){var{fillOpacity:t=".06"}=e,a=(0,s.T)(e,["fillOpacity"]);return(0,n.jsx)(r.A,Object.assign({width:24,height:24,viewBox:"0 0 24 24",fillOpacity:t},a,{children:(0,n.jsx)("path",{d:"M23.824 12c.097 0 .176.079.176.176v11.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 23.824v-5.648C0 18.08.079 18 .176 18h17.648a.176.176 0 0 0 .176-.176v-5.648c0-.097.079-.176.176-.176zm0-12c.097 0 .176.079.176.176v5.648a.176.176 0 0 1-.176.176H6.176A.176.176 0 0 0 6 6.176v5.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 11.824V.176C0 .08.079 0 .176 0z",fill:a.fill,fillRule:"evenodd"})}))}},93024:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var s=a(6029),n=a(95083),r=a(76356),o=a(93338),l=a(41249),i=a(41735),c=a(72555);let d=(0,i.default)(l.az).withConfig({componentId:"sc-c4ed9fbb-0"})([".attacking,.saves{top:0;left:48px;transform:translate(10px,-100%);padding-bottom:",";}.creativity,.aerial{top:34%;left:0;transform:translate(-100%,-50%);}.runsOut,.technical,.anticipation,.runs-out{top:34.5%;right:0;transform:translate(100%,-50%);}.defending,.ballDistribution,.ball.distribution{bottom:-8px;right:80%;transform:translate(10px,0);}.tactical{bottom:-8px;left:80%;transform:translate(-10px,0);}.runsOut,.technical,.anticipation,.runs-out,.tactical{flex-direction:"," !important;> *{margin-left:0;&:first-child{margin-right:0;}}}.defending,.ballDistribution,.ball.distribution{@media screen and (max-width:335px){transform:translate(10px,3px);}}.tactical{@media screen and (max-width:335px){transform:translate(-10px,3px);}}"],e=>e.theme.spacing.xs,e=>e.isRTL?"row":"row-reverse"),u=e=>{let{value:t,isAnotherPlayerCompare:a,main:l,isComparing:i}=e;return(0,s.jsx)(r.az,{w:"[20px]",h:"[20px]",br:"xs",style:{background:a?o.S.var("colors.surface.s2"):i?l?o.S.var("colors.secondary.default"):o.S.var("colors.neutral.default"):o.S.var((0,c.W6)(t))},children:(0,s.jsx)(n.EY,{lineHeight:"20px",textStyle:"table.small",color:a?l?"secondary.default":"primary.default":"surface.s1",display:"block",textAlign:"center",children:t})})},p=function(e){let{data:t,isAnotherPlayerCompare:a,children:o}=e,[l,p]=t,{settings:m}=(0,i.useTheme)(),h="rtl"===m.textDirection;return l?(0,s.jsx)(r.az,{maxW:"[360px]",w:"fit",style:{paddingTop:28},mx:"auto",mb:"sm",children:(0,s.jsxs)(d,{position:"relative",style:{margin:"0 ".concat(86,"px")},isRTL:h,children:[o,l.map((e,t)=>(0,s.jsxs)(r.so,{direction:{_ltr:"row",_rtl:"row-reverse"},position:"absolute",className:e.name,gap:"xs",children:[(0,s.jsx)(n.EY,{lineHeight:"".concat(20,"px"),textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"uppercase",children:c.HU[e.name]}),(0,s.jsxs)(r.so,{gap:"xs",children:[(0,s.jsx)(u,{isAnotherPlayerCompare:a,value:e.value,isComparing:!!(p&&p[t]),main:!0}),p&&p[t]&&(0,s.jsx)(u,{isAnotherPlayerCompare:a,value:p[t].value,isComparing:!0})]})]},e.name))]})}):null}},97047:(e,t,a)=>{"use strict";a.d(t,{WG:()=>c,YL:()=>u,_z:()=>d,lE:()=>n,o_:()=>r});let s={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},n=e=>e&&(s[e]||e),r=e=>{if(e)return"M"===e?"Male":"F"===e?"Female":void 0},o={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},l={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},i={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},c=(e,t)=>{var a;return null==(a=o[t])?void 0:a[e]},d=(e,t)=>{var a;return null==(a=l[t])?void 0:a[e]},u=(e,t)=>{var a;return null==(a=i[t])?void 0:a[e]}},98423:(e,t,a)=>{"use strict";a.d(t,{e:()=>n.e,p:()=>s.p});var s=a(91603),n=a(33480)},99397:(e,t,a)=>{"use strict";a.d(t,{G:()=>n.A,t:()=>s.t});var s=a(91407),n=a(12605)}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,395,4632,6618,2111,3139,756,3797,2062,5938,1105,3338,3752,364,2905,9347,7256,1254,574,3231,9623,7717,323,5905,9561,3419,636,6593,8792],()=>t(50284)),_N_E=e.O()}]);