!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]="ea436d55-b672-48e9-8478-b5d8de7ce187",e._sentryDebugIdIdentifier="sentry-dbid-ea436d55-b672-48e9-8478-b5d8de7ce187")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9097],{4740:(e,t,n)=>{"use strict";n.d(t,{N:()=>m});var s=n(6029),a=n(94446),i=n(95083),r=n(76356),l=n(65078),o=n(16620),d=n(48886),u=n(70591),c=n(24159);let m=e=>{let{playerStatsOnEvent:t,index:n}=e,{event:m,player:p}=t,{openEventPlayerStatistics:h}=(0,o.d)(),[x,g]=(0,l.jr)(m,"homeScore","awayScore",m),[j,v]=(0,l.jr)(m,"homeTeam","awayTeam",m);return(0,s.jsx)(u.tj,{event:m,onClick:e=>{e.preventDefault(),h({event:m,player:p},d._.TopStats)},children:(0,s.jsxs)(r.so,{h:"5xl",p:"lg",pl:n?"sm":"lg",align:"center",_hover:{background:"surface.s2"},children:[n&&(0,s.jsx)(i.EY,{w:"lg",mr:"sm",textStyle:"body.small",color:"neutrals.nLv1",textAlign:"center",children:n}),(0,s.jsx)(a.t,{id:p.id,name:p.name,size:40,mr:"lg"}),(0,s.jsxs)(r.az,{flexGrow:"1",flexShrink:"1",flexBasis:"[auto]",children:[(0,s.jsx)(i.EY,{display:"block",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(c.c,{entity:p})}),(0,s.jsxs)(r.so,{p:"xs",mt:"2xs",align:"center",br:"xs",bg:"surface.s2",style:{display:"inline-flex"},children:[(0,s.jsx)(a.p,{size:16,id:j.id,name:j.name}),(0,s.jsxs)(i.EY,{mx:"sm",display:"block",textStyle:"display.micro",lineHeight:"1",children:[x.display," - ",g.display]}),(0,s.jsx)(a.p,{size:16,id:v.id,name:v.name})]})]}),(0,s.jsx)(r.az,{alignSelf:"stretch",my:"auto",children:(0,s.jsx)(i.EY,{color:"neutrals.nLv1",textStyle:"body.medium",children:e.children})})]})})}},9922:(e,t,n)=>{var s=n(22346);e.exports=function(e){return s(e,5)}},11061:(e,t,n)=>{var s=n(22479),a=1/0;e.exports=function(e){return e?(e=s(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},11506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>G});var s=n(6029),a=n(21377),i=n(4967),r=n(55729),l=n(90248),o=n(45860),d=n(75751),u=n(14861),c=n(6354),m=n(79528),p=n(19944),h=n(19168),x=n(91816),g=n(7263),j=n(83318),v=n(97150),y=n(42078),f=n(77235),b=n(59721),w=n(76356),T=n(41249),C=n(68543),S=n(53422),k=n(75493),I=n(50433);function _(e){let{standings:t,uniqueTournamentId:n,seasonId:i,hasHomeAwayStandings:l}=(0,r.useContext)(x.P),{hasRounds:o,tableIndex:d}=e,u=t[d],c=e.sport===a.QCR.IceHockey;return(0,s.jsx)(S.d,{...e,children:l||e.hasRounds?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(w.az,{display:{base:"block",md:"flex"},children:[(0,s.jsx)(w.az,{flexGrow:1,flexBasis:"[1px]",overflow:"hidden",children:(0,s.jsxs)(T.tU,{variant:"secondary",children:[(0,s.jsx)(C.A,{}),(0,s.jsx)(T.tU.Panel,{tabKey:1,children:(0,s.jsx)(I.G,{...e,type:a.lpv.Total})}),(0,s.jsx)(T.tU.Panel,{tabKey:2,children:(0,s.jsx)(I.G,{...e,type:a.lpv.Home,loaderHeight:u.rows.length})}),(0,s.jsx)(T.tU.Panel,{tabKey:3,children:(0,s.jsx)(I.G,{...e,type:a.lpv.Away,loaderHeight:u.rows.length})})]})}),o&&n&&i&&!c&&(0,s.jsx)(w.az,{flexBasis:"[268px]",flexShrink:1,mr:{md:"xs"},children:(0,s.jsx)(k.A,{uniqueTournamentId:n,tournamentId:u.tournament.id,seasonId:i})})]})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.A,{}),(0,s.jsx)(I.G,{type:a.lpv.Total,...e})]})})}var A=n(95083),z=n(65789),R=n(11033),M=n(65457),P=n(82287),H=function(e){return e[e.AFC=1]="AFC",e[e.NFC=2]="NFC",e[e.OVERALL=3]="OVERALL",e}({});let E={1:"American",2:"National"},L={1:"AFC",2:"NFC"};function q(e,t){return t.findIndex(e=>["AMERICAN","NATIONAL"].includes(e.name))>-1?E[e]:L[e]}var F=n(67149);let N=e=>{let{tab:t}=e,{standings:n,seasonId:i}=(0,r.useContext)(x.P),l=function(e,t){return 3===e?t.filter(e=>!(e.name.includes("AFC")||e.name.includes("NFC")||e.name.includes("AMERICAN")||e.name.includes("NATIONAL"))):1===e?t.filter(e=>e.name.includes("AFC")||e.name.includes("AMERICAN")):t.filter(e=>e.name.includes("NFC")||e.name.includes("NATIONAL"))}(t,n);return i?(0,s.jsx)(s.Fragment,{children:l.map((e,t)=>{let[i,r]=(0,F.Yp)(e.rows);return(0,s.jsx)(z.Zp,{children:(0,s.jsxs)(w.so,{direction:"column",py:"xs",children:[(0,s.jsxs)(w.so,{align:"center",px:"sm",pt:"sm",columnGap:"md",children:[(0,s.jsx)(b.e,{id:j.nJ,name:e.name,w:40,h:40}),(0,s.jsx)(A.EY,{textStyle:"display.large",children:e.name})]}),(0,s.jsxs)(P.C.Provider,{value:{colors:i,texts:r},children:[(0,s.jsx)(I.G,{type:a.lpv.Total,tableIndex:n.findIndex(t=>t.id===e.id)}),(0,s.jsx)(R.K,{rows:e.rows,descriptions:e.descriptions,tieBreakingRule:e.tieBreakingRule,defaultOpenedFirstRules:0===t})]})]})},e.id)})}):null},D=()=>{let{standings:e,displayType:t,setDisplayType:n}=(0,r.useContext)(x.P),[a,i]=(0,r.useState)(H.AFC);return(0,s.jsxs)(w.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(z.Zp,{children:(0,s.jsxs)(w.so,{p:"sm",justify:"space-between",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(T.tU,{variant:"secondary",value:a,onChange:e=>i(e),children:[(0,s.jsx)(T.tU.Tab,{children:q(H.AFC,e)}),(0,s.jsx)(T.tU.Tab,{children:q(H.NFC,e)}),(0,s.jsx)(T.tU.Tab,{children:(0,s.jsx)(l.A,{id:"standings.overall"})})]})}),(0,s.jsx)(M.A,{displayType:t,setDisplayType:n,items:["short","form"],isNarrowLayout:!0})]})}),(0,s.jsx)(N,{tab:a})]})};var O=n(2438);function Q(e){let{branding:t}=e,{isNarrowLayout:n,uniqueTournamentId:a,standings:i,seasonId:o}=(0,r.useContext)(x.P),[d,u]=(0,r.useState)(0),c=i[d];if((0,r.useEffect)(()=>{u(0)},[o]),!c)return null;if(a===j.nJ&&n)return(0,s.jsx)(D,{});let m=(0,s.jsx)(w.az,{px:"sm",pt:"sm",children:(0,s.jsx)(T.ms,{items:i,initialSelectedItem:i[d],selectedItem:c,renderItem:(e,t)=>{if(t&&e){var n,a;return(0,s.jsxs)(w.so,{align:"center",children:[(0,s.jsx)(w.az,{children:(0,s.jsx)(b.e,{id:(null==(n=e.tournament.uniqueTournament)?void 0:n.id)||e.tournament.id,name:null==(a=e.tournament.uniqueTournament)?void 0:a.name,size:24,ml:"-4",mr:"4"})}),(0,s.jsx)(w.az,{children:e.name})]})}return(0,s.jsx)(O.v,{table:e})},onSelectedItemChange:e=>{let{selectedItemIndex:t}=e;"number"==typeof t&&u(t)}})});return(0,s.jsx)(_,{tableIndex:d,subheader:m,hasDropdown:!0,title:n?void 0:(0,s.jsx)(l.A,{id:"tournament.standings"}),branding:t})}function Y(e){let{sport:t,branding:n}=e,{uniqueTournamentId:i,seasonId:l,standings:d}=(0,r.useContext)(x.P),{data:u}=(0,o.Ay)(i&&l?[a.V3t.seasonRounds(i,l),"HEAD"]:null,{fetcher:g.n}),{data:c}=(0,o.Ay)(i&&l?[a.V3t.seasonGroups(i,l),"HEAD"]:null,{fetcher:g.n});return u&&c?(0,s.jsx)(s.Fragment,{children:d.map((e,a)=>(0,s.jsx)(_,{tableIndex:a,hasRounds:u&&c,title:(0,s.jsx)(O.v,{table:e}),branding:n,sport:t},e.id))}):(0,s.jsx)(Q,{branding:n})}function G(e){let{uniqueTournament:t,seasonId:n,currentSeason:b,isNarrowLayout:w,hideAd:T}=e,{initialStandings:C}=(0,r.useContext)(c.O),[S,k]=(0,h.yR)(j.s4,"short"),{data:I,error:A}=(0,o.Ay)(a.V3t.standings(t.id,n,a.lpv.Total),{keepPreviousData:!0}),z=(null==I?void 0:I.standings)||C||[],{hasGroups:R,hasDropdown:M,showHorizontalStandings:P,hasHomeAwayStandings:H}=function(e){let{standings:t,uniqueTournamentId:n,seasonId:s}=e,{initialHasHomeAway:i}=(0,r.useContext)(c.O),{data:l}=(0,o.Ay)([a.V3t.standings(n,s,a.lpv.Home),"HEAD"],{fetcher:g.n}),d=n===a.G6l.Euro||n===a.G6l.CopaAmerica,[u,m]=(0,r.useMemo)(()=>{let e,n=!1;for(let s=0,a=t.length;s1;return[n,s]},[t]);return{hasDropdown:m,hasGroups:u,showHorizontalStandings:d,hasHomeAwayStandings:l||i}}({uniqueTournamentId:t.id,seasonId:n,standings:z}),{events:E}=(0,p.Y)(t.id,(0,i.UG)(new Date),P),L=(0,m.b)(t.id,"standings");return A||void 0===H||!C?null:(null==z?void 0:z.length)?(0,s.jsx)(d.t,{tag:"StandingsContainer",children:(0,s.jsxs)(x.P.Provider,{value:{isNarrowLayout:!!w,uniqueTournamentId:t.id,seasonId:n,displayType:S,setDisplayType:k,standings:z,displayTypeOptions:[...a.ur4],homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!!t.hasPerformanceGraphFeature,tournamentId:P?(0,v.h)(E):void 0,hasHomeAwayStandings:H,currentSeason:b},children:[P?(0,s.jsx)(f.A,{branding:L,utId:t.id}):R?(0,s.jsx)(Y,{sport:t.category.sport.slug,branding:L}):M?(0,s.jsx)(Q,{branding:L}):(0,s.jsx)(_,{tableIndex:0,hasDropdown:M,title:w?void 0:(0,s.jsx)(l.A,{id:"tournament.standings"}),hasDefaultRightTeamInPerformanceGraph:!0,branding:L}),!T&&(0,s.jsx)(u.i,{id:"tournament.DESKTOP_MID"})]})}):(0,s.jsx)(y.d,{noSeasonPicker:!0,isNarrowLayout:w,branding:L})}},11773:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,sf:()=>o});var s=n(6029),a=n(21377),i=n(41249),r=n(41735),l=n(67628);let o={[a.QWe.HardcourtIndoor]:"terrain.hardcourtIndoor",[a.QWe.HardcourtOutdoor]:"terrain.hardcourtOutdoor",[a.QWe.Grass]:"terrain.grass",[a.QWe.Clay]:"terrain.clay",[a.QWe.RedClay]:"terrain.clay"},d=(0,r.default)(i.az).withConfig({componentId:"sc-49373ef6-0"})(["display:inline-block;border-radius:",";padding-left:",";padding-right:",";background-color:",";height:",";"],e=>e.theme.spacing.md,e=>e.theme.spacing.sm,e=>e.theme.spacing.sm,e=>{var t,n;return null!=(n=null==(t=e.theme.colors)?void 0:t[o[e.groundType]])?n:e.theme.colors.neutral.default},e=>e.theme.spacing.lg),u=e=>{let{groundType:t,...n}=e;return t?(0,s.jsx)(d,{groundType:t,...n,children:(0,s.jsx)(i.EY,{as:"div",font:"assistive.default",h:"lg",color:"surface.s1",children:(0,s.jsx)(l.n,{id:t})})}):null}},12453:(e,t,n)=>{"use strict";n.d(t,{L:()=>c});var s=n(6029),a=n(59721),i=n(41249),r=n(90248),l=n(54053),o=n(52695),d=n(51616),u=n(78813);let c=e=>{let{uniqueTournament:t,seasonId:n,isOpen:c,setIsOpen:m}=e,{ranking:p}=(0,u.X)(n);return(0,s.jsx)(l.A,{isOpen:c,setIsOpen:m,header:(0,s.jsxs)(i.so,{p:[0,"lg"],align:"center",gap:"sm",w:[void 0,320],children:[(0,s.jsx)(a.e,{id:t.id,name:t.name}),(0,s.jsxs)(i.so,{direction:"column",children:[(0,s.jsx)(i.EY,{font:"display.large",children:(0,s.jsx)(o.O,{uniqueTournament:t})}),(0,s.jsx)(i.EY,{font:"assistive.default",c:"onSurface.nLv3",children:(0,s.jsx)(r.A,{id:"bestRatedFanMatches"})})]})]}),children:(0,s.jsx)(i.az,{w:[void 0,360],maxH:[void 0,512],children:(0,s.jsx)(d.t,{rankings:p})})})}},13731:(e,t,n)=>{var s=n(53325),a=n(25725),i=Object.prototype.hasOwnProperty;e.exports=a(function(e,t,n){i.call(e,n)?e[n].push(t):s(e,n,[t])})},15684:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(6029),a=n(54075),i=n(41249);function r(e){let{rating:t,round:n}=e,{formattedRating:r,ratingColorKey:l}=(0,a.M)(n&&t?Math.round(t):t);return(0,s.jsx)(i.so,{bg:l,h:24,w:24,align:"center",justify:"center",br:12,children:(0,s.jsx)(i.EY,{font:"table.small",color:"onColor.primary",children:r})})}},15771:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(87827),i=n(21377),r=n(98516),l=n(52854);let o=e=>Math.round((e+Number.EPSILON)*100)/100,d=function(e){let{stat:t,sport:n}=e,{selectedStat:d}=e;switch(d=d.split(l.I)[0],n){case i.QCR.Football:var u,c,m=d;switch(m){case"accuratePasses":case"accurateLongBalls":case"accurateCrosses":case"shots":case"shotsOnTarget":case"successfulDribbles":case"tackles":case"interceptions":case"clearances":case"corners":case"fouls":return t?(0,r.M)(t[m]/t.matches,1):0;case"avgRating":return t?(0,s.jsx)(a.G,{format:"sideBox",rating:o(t[m])}):0;case"averageBallPossession":return t?"".concat((0,r.M)(t.averageBallPossession,1),"%"):0;case"penaltyGoals":return t?t.penaltiesTaken?"".concat(t.penaltyGoals," / ").concat(t.penaltiesTaken):t.penaltyGoals:0;case"penaltyGoalsConceded":return t?"".concat(t.penaltyGoalsConceded," / ").concat(t.penaltiesCommited):0;default:return t?o(t[m]):0}case i.QCR.Basketball:var p=d;switch(p){case"points":case"pointsAgainst":case"plusMinus":case"assists":case"rebounds":case"defensiveRebounds":case"offensiveRebounds":case"steals":case"turnovers":case"blocks":case"fastbreakPoints":return(0,r.M)(t[p]/t.matches,1);case"fieldGoalsPercentage":case"fieldGoalsPercentageAgainst":case"freeThrowsPercentage":case"threePointsPercentage":case"threePointsPercentageAgainst":return"".concat((0,r.M)(t[p],1),"%");default:return o(t[p])}case i.QCR.Handball:return["goalsScored","goalsConceded","fastbreakGoals","steals","twoMinutePenalties","goalsInPowerplay","shorthandedGoals"].includes(u=d)?(0,r.M)(t[u]/t.matches,1):["shootingPercentage"].includes(u)?(0,r.M)(t[u],1)+"%":"sevenMetersScored"===u?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):o(t[u]);case i.QCR.IceHockey:return["powerPlayPercentage","faceOffPercentage","penaltyKillPercentage"].includes(c=d)?(0,r.M)(t[c],1)+"%":"sevenMetersScored"===c?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):(0,r.M)(t[c]/t.matches,1);case i.QCR.Tennis:var h=d;switch(h){case"firstServePercentage":case"firstServePointsWonPercentage":case"secondServePercentage":case"secondServePointsWonPercentage":return(0,r.M)(t[h],1)+"%";case"avgAces":case"avgDoubleFaults":return(0,r.M)(t[h],1);case"breakPointsSavedPercentage":if(isNaN(t.opponentBreakPointsTotal)||isNaN(t.opponentBreakPointsScored))return 0;let x=t.opponentBreakPointsTotal-t.opponentBreakPointsScored;return"".concat(x,"/").concat(t.opponentBreakPointsTotal," (").concat((0,r.M)(t[h],1),"%)");case"breakPointsSavedConvertedPercentage":if(isNaN(t.breakPointsScored)||isNaN(t.breakPointsTotal))return 0;return"".concat(t.breakPointsScored,"/").concat(t.breakPointsTotal," (").concat((0,r.M)(t[h],1),"%)");case"tiebreakWinPercentage":let{tiebreaksWon:g,tiebreakLosses:j}=t;if(isNaN(g)||isNaN(j))return 0;let v=g+j;if(v>0)return"".concat(g,"/").concat(v," (").concat((0,r.M)(t[h],1),"%)");return"".concat(g,"/").concat(v," (0%)");default:return o(t[h])}default:return o(t[d])}}},18741:(e,t,n)=>{"use strict";n.d(t,{E5:()=>l,fz:()=>o,hE:()=>d});var s=n(6029),a=n(95083),i=n(90248),r=n(55803);function l(e){let{children:t,title:n,titleValues:l,titleHidden:o}=e;return t?(0,s.jsxs)(r.E,{"data-qa-id":"seo-about",children:[!o&&n&&(0,s.jsx)(a.H2,{textStyle:"display.medium",mb:"md",children:(0,s.jsx)(i.A,{id:n,values:l})}),t]}):null}function o(e){let{id:t,values:n}=e,r={...n||{},bold:function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.d(t,{N:()=>a});var s=n(93839);function a(e,t){return"en"===t||t===s.vo[e]}},25459:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(21377),a=n(55729),i=n(45860),r=n(62859),l=n(34209);function o(e){let{uniqueTournamentId:t,seasonId:n}=e,o=(0,a.useContext)(r.Ws),{types:d,currentType:u,setCurrentType:c,isLoading:m,isError:p}=(0,l.A)(t,n,o,"team"),h=o===s.QCR.Tennis?"mainDraw":u,x=t&&n&&!m?s.V3t.topTeams(t,n,h):null,{data:g,error:j}=(0,i.Ay)(x),v=null==g?void 0:g.topTeams,y=v?Object.keys(v):[],[f,b]=(0,a.useState)(""),w=v&&f&&v[f]?v[f].map(e=>({team:e.team,stats:e.statistics})):[];return(0,a.useEffect)(()=>{b("")},[t]),(0,a.useEffect)(()=>{y.length&&!f&&b(y[0])},[null==y?void 0:y.length]),{topTeams:v,stats:y,activeStat:f,setActiveStat:b,types:d,activeType:u,setActiveType:c,activeTeams:w,isError:!!j||p,isLoading:(!g||!f)&&!j}}},25725:(e,t,n)=>{var s=n(81648),a=n(78492),i=n(68988),r=n(91544);e.exports=function(e,t){return function(n,l){var o=r(n)?s:a,d=t?t():{};return o(n,e,i(l,2),d)}}},28167:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tournament",function(){return n(89722)}])},32312:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var s=n(6029),a=n(95083),i=n(76356),r=n(90248);let l=()=>(0,s.jsxs)(i.so,{px:"sm",mt:"sm",h:"xl",children:[(0,s.jsx)(a.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",children:"#"}),(0,s.jsx)(i.az,{flexGrow:1,flexShrink:1,ml:"lg",children:(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,s.jsx)(r.A,{id:"team"})})}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,s.jsx)(r.A,{id:"Pts"})})]})},34884:(e,t,n)=>{"use strict";n.d(t,{i:()=>m});var s=n(6029),a=n(95083),i=n(41249),r=n(55729),l=n(90248),o=n(41735),d=n(54409),u=n(70591),c=n(76410);function m(e){let{numberOfEditors:t,isOrganization:n,eventLocation:m,nickname:p,userId:h,hasStarted:x,isInLeagueHeader:g,onClick:j}=e,v=(0,r.useContext)(o.ThemeContext),{isDesktop:y}=(0,a.$c)(),f=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.EY,{font:"assistive.default",color:g&&y?"onColor.primary":"primary.default",children:p?(0,s.jsx)(l.A,{id:x?"edited_by":"event.createdBy",values:{nickname:p}}):(0,s.jsx)(l.A,{id:"edited_by_more_editors",values:{number:t}})}),(0,s.jsx)(d._jO,{ml:"sm",height:16,width:16,fill:g&&y?"onColor.primary":"primary.default"})]}),b=(0,s.jsx)(i.$n,{tertiary:!0,style:{background:v.colors.overlay.darken1},border:"0",children:f});return p||t?(0,s.jsx)(i.so,{justify:"flex-end",align:"center",p:"xs",children:j?(0,s.jsx)(i.az,{cursor:"pointer",onClick:j,children:g&&y?b:f}):n?(0,s.jsx)("a",{href:"https://editor.sofascore.com/",target:"_blank",rel:"noreferrer",children:g&&y?b:f}):(0,s.jsx)(u.N_,{routeKey:"user",params:{userId:h},onClick:()=>(0,c.Zs)(m),children:g&&y?b:f})}):null}},42021:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var s=n(6029),a=n(95083),i=n(55729),r=n(90248),l=n(54409),o=n(54053);let d=()=>{let[e,t]=(0,i.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:(0,s.jsx)(l.G_L,{fill:"onSurface.nLv1"})}),(0,s.jsx)(o.A,{isOpen:e,setIsOpen:t,header:(0,s.jsx)(a.EY,{p:{md:"lg"},textStyle:"display.large",display:"block",children:"Sofascore Power Rankings"}),children:(0,s.jsx)(a.EY,{display:"block",maxW:{md:"[312px]"},px:"lg",textStyle:"body.mediumParagraph",children:(0,s.jsx)(r.A,{id:"power_rankings_description"})})})]})}},42360:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(6029),a=n(76356),i=n(65789);function r(){return(0,s.jsx)(i.Zp,{children:(0,s.jsx)(a.az,{h:"[762px]"})})}},43783:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var s=n(21377),a=n(45860);function i(e,t,n){var i,r;let{data:l}=(0,a.Ay)(s.V3t.powerRankingRounds(e,t)),o=n||(null==l||null==(r=l.powerRankingRounds)||null==(i=r[0])?void 0:i.id),{data:d}=(0,a.Ay)(o?s.V3t.powerRankings(e,t,o):null);return{rankings:null==d?void 0:d.powerRankings,rounds:null==l?void 0:l.powerRankingRounds}}},45749:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var s=n(55729),a=n(95868);let i=null,r=!1;async function l(){if(!i)try{i=(await n.e(5831).then(n.t.bind(n,61985,23))).default,await i.Initialize("3de57cc21a364c9c918d8899d0aee6bf",{shouldModifyUrlWithStoryId:!1}),i.addDelegateListener(i.Delegations.onEventTriggered,a.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function o(e){let{containerId:t,storyIds:n}=e,[o,d]=(0,s.useState)(r);(0,s.useEffect)(()=>{l();let e=()=>{r=!0,d(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[]),(0,s.useEffect)(()=>{if(!(null==n?void 0:n.length)||!i||!o||!t||!(0,a.R5)(t))return;let{eventId:e}=(0,a.Hw)(t);try{let s=i.Theme("row-rectangle");s.layoutStyle.labelStyle.isVisible=!e,s.layoutStyle.statusLiveStyle.isVisible=!1,s.layoutStyle.statusUnreadStyle.isVisible=!1,s.layoutStyle.statusLiveUnreadStyle.isVisible=!1,s.layoutStyle.borderRadius=e?"0":"12px",s.layoutStyle.horizontalItemsSpacing=4,i.WidgetRowView(t,{storyIds:n,theme:s,maxDisplayItemsCount:e?1:void 0})}catch(e){console.error(e)}},[n.length,t,o])}},47953:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});let s={firstServePercentage:"tennis_first_serve",firstServePointsWonPercentage:"tennis_first_serve_points_won",secondServePercentage:"tennis_second_serve",secondServePointsWonPercentage:"tennis_second_serve_points",avgAces:"tennis_average_aces_per_match",avgDoubleFaults:"tennis_average_double_faults_per_match",breakPointsSavedPercentage:"break_points_saved",breakPointsSavedConvertedPercentage:"break_points_converted",tiebreakWinPercentage:"tennis_tiebreaks_won"}},48127:(e,t,n)=>{"use strict";n.d(t,{s:()=>c});var s=n(6029),a=n(95083),i=n(21501),r=n(41249),l=n(13731),o=n.n(l),d=n(59018),u=n.n(d);function c(e){let{onSeasonChange:t,seasons:n,seasonId:l,alignRight:d}=e,c=o()(n,"year"),m=u()(n.map(e=>e.year)),p=n.find(e=>e.id===l)||n[0],h=p&&c[p.year],x=(null==h?void 0:h.length)>1,{isMobile:g}=(0,a.$c)(),j=!(0,i.hX)()&&!g;return(0,s.jsxs)(r.so,{wrap:"wrap",flex:["1 1 100%",void 0],mt:[0,"sm","xs"],zIndex:r.Py.Dropdown,children:[(0,s.jsx)(r.ms,{mr:"sm",items:m,selectedItem:(null==p?void 0:p.year)||m[0],onSelectedItemChange:e=>{let{selectedItem:n}=e;if(n&&c[n]){let e=c[n];e.length&&t(e[0].id)}},alignRight:d,isOnColor:j}),x&&(0,s.jsx)(r.ms,{items:h,selectedItem:p,onSelectedItemChange:e=>{let{selectedItem:n}=e;n&&t(n.id)},renderItem:(e,t)=>{if(e){let n=(null==e?void 0:e.name)||"";return(0,s.jsx)(r.EY,{font:"body.small",color:"inherit",maxW:t?96:void 0,block:!0,ellipsis:!0,children:n.replace(p.year,"")})}return""},alignRight:!0,isOnColor:j,mt:[0,"sm",0]},p.year)]})}},49679:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var s=n(6029),a=n(32523),i=n(76356),r=n(33144),l=n(21377),o=n(95083),d=n(70591),u=n(94604);function c(e){return(0,s.jsx)(d.gT,{team:e.team,sport:l.QCR.Football,children:(0,s.jsxs)(i.so,{align:"center",px:"sm",py:"sm",_hover:{bg:"surface.s2"},children:[(0,s.jsx)(o.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv1",children:e.rank}),(0,s.jsx)(r.p,{ml:"lg",mr:"sm",id:e.team.id,national:!0,size:32}),(0,s.jsx)(i.az,{flexGrow:"1",flexShrink:"1",children:(0,s.jsx)(o.EY,{textStyle:"table.medium",color:"neutrals.nLv1",children:(0,s.jsx)(u.Rm,{team:e.team})})}),(0,s.jsx)(i.az,{children:(0,s.jsx)(o.EY,{textStyle:"table.medium",color:"neutrals.nLv1",children:e.points})})]})})}let m=e=>{let{rankings:t}=e;return(0,s.jsx)(i.az,{minH:"[192px]",children:t?t.map(e=>(0,s.jsx)(c,{...e},e.rank)):(0,s.jsx)(a.E,{uniqueKey:"power-ranking-list-cl",pt:"xs",rows:4,rowHeight:44,rowGap:4,animate:!0})})}},51616:(e,t,n)=>{"use strict";n.d(t,{t:()=>c});var s=n(6029),a=n(41249),i=n(62859),r=n(36937),l=n(65078),o=n(70591),d=n(15684);let u=e=>{let{ordinal:t,event:n,rating:u}=e,c=(0,l.AR)(n);return(0,s.jsx)(i.y$.Provider,{value:c,children:(0,s.jsx)(o.tj,{event:n,children:(0,s.jsxs)(a.so,{h:48,py:6,px:"lg",justify:"space-between",hoverBg:"surface.s2",children:[(0,s.jsxs)(a.so,{h:"100%",align:"center",children:[(0,s.jsxs)(a.EY,{minW:24,align:"center",font:"body.small",color:"onSurface.nLv1",as:"bdi",display:"block",children:[t,"."]}),(0,s.jsx)(a.cG,{vertical:!0,mx:"sm"}),(0,s.jsx)(r.g,{})]}),(0,s.jsxs)(a.so,{align:"center",children:[(0,s.jsx)(r.$,{}),(0,s.jsx)(a.cG,{vertical:!0,ml:"sm",mr:"md"}),(0,s.jsx)(a.az,{children:(0,s.jsx)(d.A,{rating:u})})]})]})})})},c=e=>{let{rankings:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)(u,{ordinal:t+1,rating:e.rating,event:e.event},"rated-event-".concat(t)))})}},52827:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var s=n(1815),a=n(76410),i=n(95868);function r(e){let t=(0,i.Hw)(e);return(0,s.e)(()=>(0,a.WG)({id:t.eventId||t.tournamentId,location:t.location}))}},54075:(e,t,n)=>{"use strict";n.d(t,{M:()=>s.MR});var s=n(19991)},55803:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});let s=(0,n(76356).I4)("div",{base:{bg:"surface.s1",border:"1px solid surface.s2",br:"lg",p:"lg",elevation:"2","& a":{color:"primary.default"},"& p":{margin:"0",paddingTop:"sm",paddingBottom:"md"},"& ul":{margin:"0",paddingBottom:"md",listStyleType:"none","& > li":{display:"flex","&:before":{content:"- ",marginRight:"sm"},"& + li":{marginTop:"sm"}}}}})},57869:(e,t,n)=>{"use strict";n.d(t,{f:()=>i,g:()=>a});var s=n(21377);function a(e){return e===s.QCR.IceHockey?["powerPlayPercentage","shots","shotsAgainst","faceOffPercentage","penaltyMinutes"]:null}function i(e){return e===s.QCR.IceHockey?["shots","shotsAgainst","penaltyMinutes"]:null}},59754:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>r});var s=n(494),a=n(151);let i=(e,t,n)=>{var s,a,i;let r=null==(s=e.tournament.uniqueTournament)?void 0:s.id;if(r&&(null==n||null==(i=n.uniqueTournaments)||null==(a=i[r])?void 0:a[t]))return null==n?void 0:n.uniqueTournaments[r]},r=(e,t)=>i(e,t,(0,s.d4)(a.g))},63942:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var s=n(6029),a=n(33144),i=n(21377),r=n(95083),l=n(76356),o=n(41249),d=n(55729),u=n(947),c=n(90248),m=n(65789),p=n(62859),h=n(74761),x=n(97918),g=n(57869),j=n(73404),v=n(7322),y=n(12047),f=n(70591),b=n(15771),w=n(94604);function T(){return(0,s.jsx)(l.az,{children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(l.az,{h:"5xl"},t))})}function C(e){let{teams:t,selectedStat:n,showFullListWithIndexes:i,sport:o,children:d}=e,u=i?t:t.slice(0,3);return(null==t?void 0:t.length)&&n?(0,s.jsxs)(l.az,{pb:"sm",children:[u.map((e,t)=>(0,s.jsx)(f.gT,{sport:o,team:e.team,children:(0,s.jsxs)(l.so,{h:"5xl",align:"center",gap:"sm",px:"lg",_hover:{bg:"surface.s2"},cursor:"pointer",children:[i&&(0,s.jsx)(r.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,s.jsxs)(l.so,{grow:1,align:"center",children:[(0,s.jsx)(a.p,{id:e.team.id,size:40}),(0,s.jsx)(r.EY,{ml:"lg",display:"block",children:(0,s.jsx)(w.Rm,{team:e.team})})]}),(0,s.jsx)(l.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(r.EY,{children:(0,s.jsx)(b.A,{stat:e.statistics,selectedStat:n,sport:o})})})]})},e.team.id)),d]}):(0,s.jsx)(T,{})}var S=n(25459),k=n(47953),I=n(79977);let _=e=>{let{options:t,sport:n}=e,a=(0,y.Ay)();return(0,s.jsx)(o.PI,{top:a,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:e=>(0,s.jsx)(l.az,{borderBottom:e?void 0:"1px solid {colors.neutrals.nLv4}",elevation:e?"2":void 0,children:(0,s.jsx)(x.F,{items:t,sport:n,asCard:!1})})})},A=e=>{var t;let{uniqueTournamentId:n,seasonId:x}=e,y=(0,u.A)(),f=(0,S.A)({uniqueTournamentId:n,seasonId:x}),b=(0,d.useContext)(p.Ws),[w,T]=(0,d.useState)(!1),[A,z]=(0,d.useState)(""),[R,M]=(0,d.useState)([]),P=b===i.QCR.Tennis,H=b?(0,g.f)(b):null;if(f.isError)return null;let E=null==(t=f.stats)?void 0:t.map(e=>({value:e,label:P?y.formatMessage({id:k.k[e]}):(0,j.b)(y,e,null==H?void 0:H.includes(e))})),L=(e,t)=>{T(!0),z(e),M(t)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_,{options:E,sport:b}),(0,s.jsxs)(m.BU,{children:[!!(null==E?void 0:E.length)&&E.map(e=>{var t,n,i;let o=(null==f?void 0:f.topTeams)&&e&&f.topTeams[e.value]||[],d=(0,g.g)(b);return((null==d?void 0:d.includes(e.value))||!d)&&(0,s.jsx)(m.Zp,{children:(0,s.jsxs)(l.az,{id:null==(t=e.value)?void 0:t.toLowerCase(),children:[(0,s.jsxs)(l.so,{align:"center",justify:"space-between",p:"lg",pr:"xs",children:[(0,s.jsxs)(l.so,{align:"center",children:[(0,s.jsxs)(r.EY,{textStyle:"display.small",color:"neutrals.nLv1",children:[P?(0,s.jsx)(c.A,{id:k.k[e.value]}):(0,s.jsx)(I.A,{id:e.value}),(null==H?void 0:H.includes(e.value))&&(0,s.jsxs)(r.EY,{textStyle:"display.small",color:"neutrals.nLv1",textTransform:"lowercase",children:[" ",(0,s.jsx)(c.A,{id:"stats.perGame"})]})]}),"avgRating"===e.value&&(0,s.jsx)(v.D,{type:v.D.type.AverageRatingTeam,rating:null==o||null==(i=o[0])||null==(n=i.statistics)?void 0:n.avgRating,renderImage:e=>{var t;return(0,s.jsx)(a.p,{id:null==o||null==(t=o[0])?void 0:t.team.id,...e})}})]}),(0,s.jsx)(r.$n,{size:"tertiary",variant:"clear",onClick:()=>L(e.value,o),children:(0,s.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(c.A,{id:"see_all"})})})]}),(0,s.jsx)(C,{teams:o,selectedStat:e.value,sport:b,children:"avgRating"===e.value&&(0,s.jsx)(h.$,{mx:"sm",messageId:"rating_top_teams_general"})})]})},e.value)}),(0,s.jsxs)(o.Xn,{isOpen:w,onClose:e=>{null==e||e.stopPropagation(),T(!1)},children:[(0,s.jsx)(o.Xn.Header,{children:(0,s.jsx)(r.EY,{textStyle:"display.medium",color:"neutrals.nLv1",display:"block",mb:"md",children:(0,s.jsx)(c.A,{id:P?k.k[A]:A})})}),(0,s.jsxs)(o.Xn.Content,{children:["avgRating"===A&&(0,s.jsx)(h.$,{mx:"sm",mb:"sm",messageId:"rating_top_teams_specific"}),(0,s.jsx)(C,{teams:R,selectedStat:A,showFullListWithIndexes:!0,sport:b})]})]})]})]})}},70115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(41249),i=n(71024),r=n.n(i),l=n(28132);let o=r()(()=>Promise.all([n.e(4824),n.e(2342)]).then(n.bind(n,85912)),{loadableGenerated:{webpack:()=>[85912]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:i}=e;return(0,s.jsx)(a.tU.Panel,{tabKey:l.H.Knockout,children:(0,s.jsx)(o,{sport:i,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},71484:(e,t,n)=>{"use strict";n.d(t,{D:()=>s});var s=function(e){return e.MainScreen="main_screen",e.EventPage="event_page",e.TournamentPage="league_screen",e.DetailsTab="details",e.MediaTab="media",e}({})},73404:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,b:()=>c});var s=n(6029),a=n(41249),i=n(55729),r=n(90248),l=n(50677),o=n(27892),d=n(57869),u=n(65789);function c(e,t,n,s,a){let i=a?(0,o.O)(l,t,s):t,r=e.formatMessage({id:"".concat(i)});if(n){let t=e.formatMessage({id:"stats.perGame"}).toLocaleLowerCase();r=r.concat(" ").concat(t)}return r}function m(e){let{items:t,sport:n,asCard:l=!0}=e,[o,c]=(0,i.useState)(0),m=n?(0,d.g)(n):null,p=t.filter(e=>!m||m.includes(e.value)).sort((e,t)=>e.label.localeCompare(t.label));(0,i.useEffect)(()=>{window.scrollTo({top:o,behavior:"smooth"})},[o]);let h=e=>{var t;let n=document.getElementById(null==(t=e.value)?void 0:t.toLowerCase());if(n){let e=document.body.getBoundingClientRect().top,t=n.getBoundingClientRect().top-e-105;o>t&&(t-=96),c(t)}};return(0,s.jsx)(u.HH,{isCard:!!l,children:(0,s.jsx)(a.az,{p:"sm",children:(0,s.jsx)(a.ms,{items:p,renderItem:(e,t)=>t?(0,s.jsx)(r.A,{id:"quick_find"}):(null==e?void 0:e.label)||null,onSelectedItemChange:e=>{e.selectedItem&&h(e.selectedItem)},forceMenuBelow:!0})})})}},74761:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var s=n(6029),a=n(95083),i=n(62042),r=n(76356),l=n(90248),o=n(19168),d=n(54409);function u(e){let{messageId:t,children:n,onClick:u,...c}=e,[m,p]=(0,o.yR)(t,!1);return m?null:(0,s.jsxs)(r.so,{align:"center",bg:"surface.s2",br:"lg",py:"sm",pl:"lg",className:(0,i.AH)(c),children:[(0,s.jsx)(r.az,{children:(0,s.jsx)(d.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsxs)(a.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),n=0;n{null==u||u(),p(!0)},children:(0,s.jsx)(d.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv1"})})]})}},75414:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=function(e){switch(!0){case e<1e3:return"".concat(e);case e<1e4&&e/1e3%1>=.1:let t="".concat((e/1e3).toPrecision(2));return t.endsWith(".0")&&(t=t.substring(0,t.length-2)),"".concat(t,"k");case e<1e6:let n=Math.round(e/1e3);if(1e3===n)return"1M";return"".concat(n,"k");case e<1e7:let s=(e/1e5).toFixed();return s=s.endsWith("0")?s.substring(0,s.length-1):"".concat(s[0],".").concat(s[1]),"".concat(s,"M");case e<1e8:return"".concat(Math.round(e/1e6),"M");case e<1e9:let a=Math.round(e/1e6);if(1e3===a)return"1B";return"".concat(a,"M");default:return"".concat(e)}}},77015:(e,t,n)=>{"use strict";n.d(t,{t:()=>a.t,w:()=>s.w});var s=n(53192),a=n(91407)},78144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var s=n(6029),a=n(95083),i=n(41249),r=n(55729),l=n(65789),o=n(23727),d=n(75751),u=n(47530),c=n(43783),m=n(49679),p=n(42021),h=n(32312);function x(e){let{isMobile:t}=(0,a.$c)(),[n,x]=(0,r.useState)(t),[g,j]=(0,r.useState)(),{rankings:v,rounds:y}=(0,c.Q)(e.uniqueTournamentId,e.seasonId,g);if((0,r.useEffect)(()=>y&&j(y[0].id),[y]),!(null==y?void 0:y.length))return null;let f=!t&&!!v&&v.length>5;return(0,s.jsx)(d.t,{tag:"PowerRankings",children:(0,s.jsxs)(l.Zp,{children:[(0,s.jsx)(l.Zp.Header,{title:"Sofascore Power Rankings",actionComponent:(0,s.jsx)(p.h,{})}),y&&g&&(0,s.jsx)(i.az,{mb:"sm",p:"sm",children:(0,s.jsx)(i.ms,{items:y,initialSelectedItem:y[0],onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&j(t.id)},renderItem:e=>(0,s.jsx)(u.DT,{round:null==e?void 0:e.round})})}),(0,s.jsx)(h.i,{}),(0,s.jsx)(m.a,{rankings:null==v?void 0:v.slice(0,n?v.length:5)}),(0,s.jsx)(l.Zp.Footer,{ctaParams:f?{messageId:n?"show_less":"show_more",onClick:()=>x(e=>!e),icon:n?o.X.Up:o.X.Down}:void 0})]})})}},78492:(e,t,n)=>{var s=n(50956);e.exports=function(e,t,n,a){return s(e,function(e,s,i){t(a,e,n(e),i)}),a}},78813:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var s=n(21377),a=n(45860);function i(e){let{data:t,isLoading:n}=(0,a.Ay)(e?s.bnp.fanRatingRanking(e):null,{dedupingInterval:6e4});return{ranking:(null==t?void 0:t.ranking)||[],isLoading:n}}},79528:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});var s=n(494),a=n(151);let i=(e,t)=>{var n,i;let r=(0,s.d4)(a.g);if(e&&(null==r||null==(i=r.uniqueTournaments)||null==(n=i[e])?void 0:n[t]))return null==r?void 0:r.uniqueTournaments[e]}},79977:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(55729),i=n(90248),r=n(62859),l=n(27892);let o=JSON.parse('{"basketball":{"fastbreakPoints":"basketball_fast_break_points"},"avgRating":"average_sofascore_rating","goalsScored":"football_goals_scored","goalsConceded":"football_goals_conceded","bigChances":"football_big_chances","bigChancesMissed":"football_big_chances_missed","hitWoodwork":"football_hit_woodwork","yellowCards":"yellow_cards","redCards":"red_cards","averageBallPossession":"football_ball_possession","accuratePasses":"football_accurate_passes","shots":"football_shots","shotsOnTarget":"football_shots_on_goal","tackles":"football_tackles","interceptions":"football_interceptions","clearances":"football_clearances","fouls":"football_fouls","penaltyGoals":"football_penalty_goals","assists":"football_assists"}');function d(e){let{id:t}=e,n=(0,a.useContext)(r.Ws);return(0,s.jsx)(i.A,{id:(0,l.O)(o,t,n)})}},81648:e=>{e.exports=function(e,t,n,s){for(var a=-1,i=null==e?0:e.length;++a{e.exports=function(e,t,n){var s=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++s{"use strict";n.r(t),n.d(t,{default:()=>sB});var s=n(6029),a=n(21377),i=n(95669),r=n.n(i),l=n(19643),o=n(50417),d=n(73088),u=n(52951),c=n(947),m=n(58771),p=n(26331),h=n(97047);function x(e){let{uniqueTournament:t}=e,n=(0,c.A)(),i=(0,p.A)(),l=t.category,o=l.sport,u={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(o.slug)}),item:"".concat(a.VTF).concat(d.z.getTranslatedRoute(i,"eventList",{sport:o.slug}).route)},{"@type":"ListItem",position:2,name:n.formatMessage({id:l.slug}),item:"".concat(a.VTF).concat(d.z.getTranslatedRoute(i,"eventList.category",{sport:o.slug,category:l.slug}).route)},{"@type":"ListItem",position:3,name:t.name}]},x={"@context":"https://schema.org","@type":"SportsOrganization",name:t.name,sport:o.name,logo:a.V3t.image(t.id),url:"https://www.sofascore.com/tournament/".concat(o.slug,"/").concat(l.slug,"/").concat(t.slug,"/").concat(t.id),sameAs:(0,h._z)(t.id,i)};return(0,s.jsxs)(r(),{children:[(0,s.jsx)("script",{...(0,m.QQ)(u)}),",",(0,s.jsx)("script",{...(0,m.QQ)(x)}),","]})}var g=n(18741),j=n(70591);function v(){return(0,s.jsx)(g.fz,{id:"about.table.tennis.1",values:{ttlink:function(){for(var e=arguments.length,t=Array(e),n=0;n{switch(e){case 14749:case 14751:case 14747:case 14750:case 14748:return"ITTF Challenge Plus Oman Open";case 14691:case 14693:case 14689:case 14692:case 14690:return"ITTF Challenge Plus Portugal Open";case 14754:case 14752:case 14755:case 14753:return"ITTF Challenge Polish Open";case 14668:case 14666:case 14669:case 14664:case 14667:case 14665:return"ITTF Challenge Spanish Open";default:return null}},b=e=>e.includes("Women")?"F":e.includes("Mixed")?"X":e.includes("Boys")?"B":e.includes("Girls")?"G":"M",w=e=>e.includes("Doubles")?"D":"S";function T(e){let t=f(e.uniqueTournament.id);if(!t)return null;let n=b(e.uniqueTournament.name),a=w(e.uniqueTournament.name);return(0,s.jsxs)(y.J,{children:[(0,s.jsx)(g.fz,{id:"about.tt.ittf.challenge.1",values:{gender:n,type:a,tournamentName:t}}),(0,s.jsx)(v,{})]})}var C=n(76356),S=n(55729),k=n(33752),I=n(62859),_=n(29129),A=n(42678),z=n(98449),R=n(53486),M=n(8973),P=n(59684),H=n(28132),E=n(27289),L=n(86679),q=n(30479),F=n(32523),N=n(4967),D=n(78383),O=n.n(D),Q=n(71024),Y=n.n(Q),G=n(65789),W=n(75751),B=n(42621),U=n(14861),K=n(61090),V=n(95083),Z=n(23727),X=n(51616),J=n(12453),$=n(78813);function ee(e){let{seasonId:t,uniqueTournament:n}=e,{ranking:a,isLoading:i}=(0,$.X)(t),[r,l]=(0,S.useState)(!1),{isMobile:o}=(0,V.$c)(),d=o?3:10;if(!t||!i&&!a.length||i)return null;let u=a.slice(0,d),c=a.length>d;return(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"bestRatedFanMatches"}),u.length?(0,s.jsx)(X.t,{rankings:u}):(0,s.jsx)(F.E,{uniqueKey:"all-rated-games-cl",pt:"xs",rows:d,rowHeight:44,rowGap:4}),(0,s.jsx)(J.L,{seasonId:t,uniqueTournament:n,isOpen:r,setIsOpen:l}),(0,s.jsx)(G.Zp.Footer,{ctaParams:c?{messageId:"event.allRated",onClick:()=>l(!0),icon:Z.X.Right}:void 0})]})}var et=n(93471),en=n(47550),es=n(10778),ea=n(79368),ei=n(61777),er=n(11506),el=n(78177),eo=n(82554),ed=n(21501),eu=n(76410);let ec=[21559,21560,21561],em=()=>(0,s.jsx)("svg",{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",children:(0,s.jsx)("path",{d:"M0.0285624 8.37741C0.0285624 8.37741 -0.035703 8.22345 0.0285624 8.1593L5.07982 3.11725C5.07982 3.11725 5.23405 3.0531 5.29832 3.11725L6.36512 4.18211C6.44224 4.25909 6.44224 4.32324 6.36512 4.40021L1.32672 9.44227C1.2496 9.51924 1.17248 9.51924 1.09537 9.44227L0.0285624 8.37741ZM7.17487 2.32181H1.36528C1.26246 2.32181 1.19819 2.25766 1.19819 2.16785V0.653956C1.19819 0.564148 1.27531 0.5 1.35243 0.5H8.07458C8.16455 0.5 8.21596 0.5 8.29308 0.576978L8.93573 1.21846C8.93573 1.21846 9 1.29544 9 1.35959V8.12081C9 8.21062 8.92288 8.27477 8.84576 8.27477H7.3291C7.22628 8.27477 7.17487 8.21062 7.17487 8.10798V2.32181Z",fill:"white"})}),ep=()=>((0,S.useEffect)(()=>{(0,eu.ke)({action:"impression",location:"league_details",type:"banner_kutija_sibica"})},[]),(0,s.jsx)("a",{href:"https://www.entrio.hr/event/mnt-kutija-sibica-2024-powered-by-powerade-zavrsnica-21625/?utm_source=sofascore&utm_medium=sof_web",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,eu.ke)({action:"click",location:"league_details",type:"banner_kutija_sibica"})},children:(0,s.jsx)("bdi",{children:(0,s.jsx)(G.Zp,{children:(0,s.jsxs)(C.so,{backgroundImage:"url(/static/images/kutija-sibica/kutija_bg.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",minH:{base:"[148px]",lg:"[162px]"},p:{base:"md",lg:"lg"},align:"center",justify:"space-between",br:{mdDown:"lg",md:"xl"},overflow:"hidden",children:[(0,s.jsxs)(C.so,{direction:"column",gap:"sm",flexGrow:1,flexShrink:1,flexBasis:"[150px]",maxW:"[214px]",children:[(0,s.jsx)(V.EY,{display:"block",textStyle:"display.extraLarge",color:"onColor.primary",textAlign:"left",children:"Navijaj na Kutiji šibica i uživo! \uD83D\uDD25"}),(0,s.jsx)(V.$n,{w:"100%",variant:"clear",size:"secondary",bg:"[#E82F34]",textTransform:"none",children:(0,s.jsxs)(C.so,{justify:"center",align:"center",gap:"sm",children:[(0,s.jsx)(V.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",children:"Kupi ulaznice"}),(0,s.jsx)(em,{})]})})]}),(0,s.jsx)(C.az,{backgroundImage:"url(/static/images/kutija-sibica/kutija_logo.svg)",backgroundSize:"cover",backgroundRepeat:"no-repeat",h:{base:"[128px]",lg:"[134px]"},w:{base:"[110px]",lg:"[114px]"}})]})})})})),eh=e=>{let{uniqueTournamentId:t}=e,n=(0,ed.hX)();return ec.includes(t)?n?(0,s.jsx)(G.Zp,{children:(0,s.jsx)(C.az,{h:{base:"[148px]",lg:"[162px]"}})}):(new Date().getTime(),new Date("2024-12-15 12:00:00").getTime(),new Date("2024-12-28 12:00:00").getTime(),(0,s.jsx)(ep,{})):null};var ex=n(23685),eg=n(79528),ej=n(41249),ev=n(90248),ey=n(99397),ef=n(69559),eb=n(74761),ew=n(7322),eT=n(32427),eC=n(94493),eS=n(98516),ek=n(4740);let eI=(e,t)=>{switch(e){case"goalkeeperEfficiencyPercentage":return"".concat((0,eS.M)(100*t,2),"%");case"expectedGoals":case"expectedAssists":case"goalsPrevented":return(0,eS.M)(t,2);case"secondsPlayed":return(0,N.OV)(t);default:return t}},e_=e=>{var t;let{topStatistics:n}=e,i=(0,ef.o)(),r=Object.keys(n||{}),l=r.includes(a.iLq.Rating)||!r.length?a.iLq.Rating:r[0],[o,d]=(0,S.useState)(n?l:null),[u,c]=(0,S.useState)(!1),m=n&&o&&n[o]||[],p=m.length>5,h=u?m:m.slice(0,5);return(0,S.useEffect)(()=>{d(l)},[n]),(0,S.useEffect)(()=>{n&&!o&&d(l)},[!!n]),(0,s.jsxs)(W.t,{tag:"TopStatsList",children:[(0,s.jsxs)(C.so,{px:"sm",align:"center",children:[!!r.length&&(0,s.jsx)(ej.ms,{items:r,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&d(t)},selectedItem:o,renderItem:e=>e?(0,s.jsx)(eC.w,{id:e}):e||"","data-testid":"top_stat_selector"}),o===a.iLq.Rating&&(0,s.jsx)(C.az,{ml:"sm",children:(0,s.jsx)(ew.D,{type:ew.D.type.SpecificRatingPlayer,rating:null==(t=h[0])?void 0:t.statistic,renderImage:e=>{var t;return(0,s.jsx)(ey.t,{id:null==(t=h[0])?void 0:t.player.id,...e})}})})]}),o===a.iLq.Rating&&i===a.QCR.Football&&(0,s.jsx)(eb.$,{mx:"sm",messageId:"rating_top_stats_general",children:(0,s.jsx)(ev.A,{id:"rating_top_stats_specific"})}),(0,s.jsxs)(C.az,{children:[n&&o?(0,s.jsx)(C.az,{children:h.map((e,t)=>(0,s.jsx)(ek.N,{playerStatsOnEvent:e,index:t+1,children:o===a.iLq.Rating?(0,s.jsx)(ey.G,{rating:e.statistic}):eI(o,e.statistic)},"".concat(e.player.id,"-").concat(t)))}):(0,s.jsx)(eT.H,{}),(0,s.jsx)(G.Zp.Footer,{ctaParams:p?{messageId:u?"show_less":"show_more",onClick:()=>c(e=>!e),icon:u?Z.X.Up:Z.X.Down}:void 0})]})]})};var eA=n(90863),ez=n(34209);let eR=e=>{let{uniqueTournamentId:t,seasonId:n}=e,i=(0,S.useContext)(I.Ws),{types:r,currentType:l,setCurrentType:o,isLoading:d}=(0,ez.A)(t,n,i,"player"),u=d?{}:{uniqueTournamentId:t,seasonId:n,type:i===a.QCR.Basketball||i===a.QCR.IceHockey?l:void 0},{isError:c,topPlayersPerGame:m}=(0,eA.A)(u);return c?null:(0,s.jsx)(W.t,{tag:"TopStatsList",children:(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.topStatsTitle"}),(0,s.jsxs)(C.so,{direction:"column",gap:"sm",pt:"sm",children:[!!(r.length&&l)&&(0,s.jsx)(ej.tU,{variant:"secondary",value:l,onChange:e=>o(e),children:(0,s.jsx)(C.so,{px:"sm",children:r.map(e=>(0,s.jsx)(ej.tU.Tab,{tabKey:e,children:(0,s.jsx)(ev.A,{id:e})},e))})}),(0,s.jsx)(e_,{topStatistics:null==m?void 0:m.topPlayers})]})]})})};var eM=n(33144),eP=n(57869),eH=n(79977),eE=n(47953);function eL(e){let{types:t,activeType:n,setActiveType:i=O(),stats:r,activeStat:l,setActiveStat:o,sport:d,firstTeam:u}=e,c=(0,eP.g)(d),m=d===a.QCR.Tennis,p=c?c.map(e=>r.includes(e)?e:void 0):r,h=(0,eP.f)(d);return(0,s.jsxs)(s.Fragment,{children:[!!((null==t?void 0:t.length)&&n)&&(0,s.jsx)(ej.tU,{variant:"secondary",value:n,onChange:e=>i(e),children:(0,s.jsx)(C.so,{px:"sm",children:t.map(e=>(0,s.jsx)(ej.tU.Tab,{tabKey:e,children:(0,s.jsx)(ev.A,{id:e})},e))})}),(0,s.jsxs)(C.so,{px:"sm",align:"center",children:[!!(null==r?void 0:r.length)&&(0,s.jsx)(ej.ms,{items:p,renderItem:e=>{if(!e)return null;{let t=m?eE.k[e]:e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eH.A,{id:t})," ",(null==h?void 0:h.includes(e))&&(0,s.jsx)(V.EY,{textTransform:"lowercase",children:(0,s.jsx)(ev.A,{id:"stats.perGame"})})]})}},initialSelectedItem:l,selectedItem:l,onSelectedItemChange:e=>{e.selectedItem&&o(e.selectedItem)},"data-testid":"top_stat_selector"}),"avgRating"===l&&(0,s.jsx)(C.az,{ml:"sm",children:(0,s.jsx)(ew.D,{type:ew.D.type.AverageRatingTeam,rating:null==u?void 0:u.stats.avgRating,renderImage:e=>(0,s.jsx)(eM.p,{id:null==u?void 0:u.team.id,...e})})})]})]})}var eq=n(15771),eF=n(94604);function eN(){return(0,s.jsx)(C.az,{children:Array.from({length:5}).map((e,t)=>(0,s.jsx)(C.az,{h:"5xl"},t))})}function eD(e){let{teams:t,activeStat:n,sport:a}=e;return(null==t?void 0:t.length)&&n?(0,s.jsx)(C.az,{children:t.map((e,t)=>{let i=e.team;return(0,s.jsx)(j.gT,{sport:a,team:i,children:(0,s.jsxs)(C.so,{h:"5xl",align:"center",gap:"sm",px:"sm",_hover:{bg:"surface.s2"},cursor:"pointer",children:[(0,s.jsx)(V.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,s.jsxs)(C.so,{grow:1,align:"center",children:[(0,s.jsx)(eM.p,{id:i.id,size:40}),(0,s.jsx)(V.EY,{ml:"lg",display:"block",children:(0,s.jsx)(eF.Rm,{team:i})})]}),(0,s.jsx)(C.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(V.EY,{children:(0,s.jsx)(eq.A,{stat:e.stats,selectedStat:n,sport:a})})})]})},i.id)})}):(0,s.jsx)(eN,{})}var eO=n(25459);let eQ=e=>{let{uniqueTournamentId:t,seasonId:n}=e,i=(0,eO.A)({uniqueTournamentId:t,seasonId:n}),[r,l]=(0,S.useState)(!1),o=(0,S.useContext)(I.Ws),d=o===a.QCR.Tennis;if(i.isError)return null;let u=r?i.activeTeams:i.activeTeams.slice(0,5),c=u.length!==i.activeTeams.length||r;return(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:d?"top_players":"tournament.topTeams"}),(0,s.jsxs)(C.so,{direction:"column",pt:"sm",gap:"sm",children:[(0,s.jsx)(eL,{stats:i.stats,activeStat:i.activeStat,setActiveStat:i.setActiveStat,types:i.types,activeType:i.activeType,setActiveType:i.setActiveType,sport:o,firstTeam:i.activeTeams[0]}),"avgRating"===i.activeStat&&(0,s.jsx)(eb.$,{mx:"sm",messageId:"rating_top_teams_general",children:(0,s.jsx)(ev.A,{id:"rating_top_teams_specific"})}),(0,s.jsx)(eD,{teams:u,activeStat:i.activeStat,sport:o})]}),(0,s.jsx)(G.Zp.Footer,{ctaParams:c?{messageId:r?"show_less":"show_more",onClick:()=>l(e=>!e),icon:r?Z.X.Up:Z.X.Down}:void 0})]})};function eY(e){let{team:t}=e;return t?(0,s.jsx)(g.fz,{id:"about.title.holder",values:{teamlink:function(){for(var e=arguments.length,n=Array(e),i=0;in((0,ta.oU)(e.featuredEvents))});return(0,s.jsx)(ts.S,{isLoading:r,events:(null==i?void 0:i.featuredEvents)||[]})}var tr=n(4866),tl=n(42901),to=n(34884),td=n(46009),tu=n(64073),tc=n(69212),tm=n(54409),tp=n(54053),th=n(70679);function tx(e){let{isOpen:t,setIsOpen:n,editorData:a}=e;return(0,s.jsx)(tp.A,{isOpen:t,setIsOpen:n,header:(0,s.jsx)(V.EY,{textStyle:"display.large",color:"neutrals.nLv1",lineHeight:"24px",display:"block",p:"lg",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(ev.A,{id:"competition_editors_list_title"})}),children:null==a?void 0:a.editors.map(e=>(0,s.jsx)(j.N_,{routeKey:"user",params:{userId:e.id},onClick:()=>(0,eu.Zs)("editor_league_modal"),children:(0,s.jsxs)(C.so,{align:"center",justify:"space-between",h:"5xl",px:"lg",py:"md",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(C.so,{align:"center",gap:"lg",children:[(0,s.jsx)(th.A,{src:e.imageURL,size:32}),(0,s.jsx)(V.EY,{color:"neutrals.nLv1",textStyle:"table.medium",truncate:!0,children:e.nickname})]}),(0,s.jsx)(tm.CCT,{fill:"primary.default"})]})},e.id))})}var tg=n(3167),tj=n(48127),tv=n(11773),ty=n(45546);let tf=[8,17,23,34,35],tb=e=>{let{uniqueTournamentId:t,seasonYear:n}=e;return n&&tf.includes(t)?(0,s.jsxs)(s.Fragment,{children:[" ",(0,ty.b0)(n).join("/")]}):null};function tw(e){var t;let{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}=e,{isMobile:o}=(0,V.$c)(),d=(0,ed.hX)(),u=(0,tc.N)(n),c=!!(i.length&&r&&r===i[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),m=!o&&!d,p=16===n.id,{data:h}=(0,tn.Ay)(a.V3t.seasonEditors(n.id,r)),[x,g]=(0,S.useState)(!1),j=(0,S.useMemo)(()=>i.find(e=>e.id===r),[r,i]),v=null==h?void 0:h.editors,y={nickname:(null==h?void 0:h.organizations.length)?null==h?void 0:h.organizations[0].name:(null==v?void 0:v.length)===1?v[0].editorName:void 0,numberOfEditors:null==v?void 0:v.length,eventLocation:(null==v?void 0:v.length)===1?"editor_league":void 0,hasStarted:!0,isInLeagueHeader:!0,isOrganization:!!(null==h?void 0:h.organizations.length),userId:v&&v.length>1||null==v||null==(t=v[0])?void 0:t.id,onClick:v&&v.length>1&&!(null==h?void 0:h.organizations.length)?()=>g(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ej.az,{bg:"surface.s1",px:["lg",0],br:[void 0,"xl"],elevation:[void 0,3],position:"relative",children:[(0,s.jsxs)(tl.z,{bgImageSrc:a.V3t.image(n.id),minH:[80,void 0],children:[(0,s.jsx)(ej.az,{br:"xs",w:[48,112],h:[48,112],ml:[0,"md"],mr:["md","xl"],bg:[void 0,"surface.s1"],elevation:[void 0,2],children:(0,s.jsx)(tr.e,{id:n.id,name:n.name,w:[48,88],h:[48,88],m:[0,"md"],mr:["xs","md"],style:{verticalAlign:"top"}})}),(0,s.jsxs)(ej.az,{flex:"1 1 auto",mr:[0,"lg"],children:[(0,s.jsxs)(ej.so,{align:"center",mt:["xs","sm"],wrap:"wrap",minH:"36",w:"100%",justify:"space-between",children:[(0,s.jsxs)(ej.az,{children:[(0,s.jsxs)(ej.so,{children:[(0,s.jsxs)(ej.EY,{as:"h2",m:"0",font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[u,(0,s.jsx)(tb,{uniqueTournamentId:n.id,seasonYear:null==j?void 0:j.year}),(0,s.jsx)(ej.az,{d:["none","inline-block"],children:(0,s.jsx)(tv.Ay,{groundType:n.groundType,ml:"sm",style:{verticalAlign:"middle"}})})]}),m&&(0,s.jsx)(td.e,{id:n.id,entity:a.bq7.Tournaments,location:M.y.Header,type:M.b.UniqueTournament,isOnOverlay:!0})]}),(0,s.jsx)(ej.so,{w:"100%",align:"center",justify:"space-between",children:(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(tr.w,{flag:n.category.flag,alpha2:n.category.alpha2,name:n.category.name,w:[16,32],h:[16,32],mr:"sm"}),(0,s.jsxs)(ej.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[" ",p?(0,s.jsx)(ej.EY,{as:"h3",font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],my:["sm",0],children:(0,s.jsx)(ev.A,{id:"wc.history.title"})}):(0,s.jsx)(z.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})]}),r&&(0,s.jsx)(ej.az,{position:"relative",zIndex:ej.Py.Fixed,children:(0,s.jsx)(tj.s,{seasonId:r,seasons:i,onSeasonChange:l},n.id)})]})})]}),!m&&(0,s.jsx)(td.e,{id:n.id,entity:a.bq7.Tournaments,location:M.y.Header,type:M.b.UniqueTournament})]}),!m&&(0,s.jsx)(ej.az,{d:["block","none"],children:(0,s.jsx)(tv.Ay,{groundType:n.groundType,mt:"sm"})}),c?(0,s.jsx)(ej.az,{d:["none","block"],children:(0,s.jsx)(tg.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})}):null]}),m&&(0,s.jsxs)(tu.K,{id:n.id,name:u,entity:a.bq7.Tournaments,type:M.b.UniqueTournament,children:[(0,s.jsx)(tr.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(ej.EY,{font:"display.medium",color:"primary.default",mr:"lg",children:u})]}),m&&!!(null==h?void 0:h.editors.length)&&(0,s.jsx)(ej.az,{mt:"xs",children:(0,s.jsx)(to.i,{...y})})]}),c&&(0,s.jsx)(ej.az,{d:["block","none"],px:"sm",pb:"xs",children:(0,s.jsx)(tg.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})})]}),!m&&!!(null==h?void 0:h.editors.length)&&(0,s.jsx)(ej.az,{bg:"surface.s1",borderTop:"onSurface.nLv4",px:"sm",pt:"sm",children:(0,s.jsx)(to.i,{...y})}),(0,s.jsx)(tx,{isOpen:x,setIsOpen:g,editorData:h})]})}var tT=n(90436),tC=n.n(tT),tS=n(9922),tk=n.n(tS),tI=n(95816),t_=n.n(tI),tA=n(98423),tz=n(52695);let tR=e=>{let{name:t,image:n}=e;return(0,s.jsxs)(C.so,{_hover:{bg:"surface.s2"},px:{mdDown:"sm",md:"lg"},py:"sm",gap:"lg",align:"center",children:[n,(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:t})]})};function tM(e){let{title:t,tournaments:n,teams:a,sport:i}=e,r=[];(null==n?void 0:n.length)&&r.push(...n.map(e=>(0,s.jsx)(j.tQ,{tournament:e,children:(0,s.jsx)(tR,{image:(0,s.jsx)(tA.e,{...e}),name:(0,s.jsx)(tz.O,{uniqueTournament:e})})},e.id)));let l=null==a?void 0:a.filter(Boolean);return((null==l?void 0:l.length)&&r.push(...l.map(e=>(0,s.jsx)(j.gT,{sport:i,team:e,children:(0,s.jsx)(tR,{image:(0,s.jsx)(tA.p,{...e}),name:(0,s.jsx)(eF.Rm,{team:e})})},e.id))),r.length)?(0,s.jsxs)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},pb:"md",children:[(0,s.jsx)(V.EY,{p:["sm","lg"],pb:"sm",textStyle:"display.small",color:"neutrals.nLv1",display:"block",children:(0,s.jsx)(ev.A,{id:t})}),r]}):null}var tP=n(85685);let tH=JSON.parse('{"Division level":"divisionLevel","Number of rounds":"numberOfRounds","Average goals":"averageGoals","Home team wins":"homeTeamWins","Draws":"draws","Away team wins":"awayTeamWins","Yellow cards":"yellow_cards","yellowCards":"football_yellow_cards","redCards":"red_cards","Total prize money":"totalPrizeMoney","Ground type":"surface","Start date":"startDate","End date":"endDate","Continent":"continent","Number of sets":"numberOfSets","Prize currency":"prizeCurrency","Number of competitors":"numberOfCompetitors"}');var tE=n(27892);let tL=e=>{let{id:t}=e;return(0,s.jsx)(ev.A,{id:(0,tE.O)(tH,t)})};function tq(e){let{facts:t,isCurrentSeason:n}=e;return(0,s.jsxs)(C.az,{pb:"sm",children:[(0,s.jsx)(V.EY,{pt:"lg",px:{mdDown:"sm",md:"lg"},pb:"sm",textStyle:"display.small",textTransform:"capitalize",display:"block",children:(0,s.jsx)(ev.A,{id:"tournament.facts"})}),Object.keys(t).map(e=>"winner"!==e&&void 0!==t[e]&&("numberOfCompetitors"!==e||n)&&"groundType"!==e?(0,s.jsxs)(C.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",align:"center",children:[(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(tL,{id:e})}),(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:"totalPrizeMoney"===e&&t.totalPrizeMoney?(0,s.jsx)(tP.o,{parsedMoney:(0,a.oaz)(t.totalPrizeMoney)}):t[e]})]},e):null)]})}function tF(e){let{countries:t,city:n}=e,a=(null==t?void 0:t.length)?t.join(", "):null,i=((null==t?void 0:t.length)||0)>1,r=(n||"").split(",").length>1;return a||n?(0,s.jsxs)(C.az,{pb:"sm",children:[(0,s.jsx)(V.EY,{pt:"lg",px:{mdDown:"sm",md:"lg"},pb:"sm",textStyle:"display.small",color:"neutrals.nLv1",textTransform:"capitalize",display:"block",children:(0,s.jsx)(ev.A,{id:"tournament.host"})}),a&&(0,s.jsxs)(C.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(ev.A,{id:i?"countries":"country"})}),(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",textAlign:"right",children:a})]}),n&&(0,s.jsxs)(C.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(ev.A,{id:r?"cities":"city"})}),(0,s.jsx)(V.EY,{textStyle:"body.medium",color:"neutrals.nLv1",textAlign:"right",children:n})]})]}):null}function tN(e){let{team:t,sport:n,text:a}=e;return(0,s.jsx)(C.az,{children:(0,s.jsx)(j.gT,{team:t,sport:n,children:(0,s.jsxs)(C.so,{pt:"sm",direction:"column",align:"center",children:[(0,s.jsx)(eM.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(V.Ym,{px:"sm",mt:"xs",textStyle:"display.small",color:"neutrals.nLv1",textAlign:"center",children:(0,s.jsx)(eF.Rm,{team:t})}),(0,s.jsx)(V.EY,{px:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",h:a?"2xl":"xs",textAlign:"center",children:a})]})})})}function tD(e){return(0,s.jsxs)(C.so,{align:"center",justify:"center",direction:"column",py:"md",children:[(0,s.jsx)(V.EY,{display:"block",textStyle:"assistive.micro",color:"neutrals.nLv3",textTransform:"uppercase",children:e.label}),(0,s.jsx)(V.EY,{display:"block",textStyle:"display.medium",color:"neutrals.nLv1",children:e.value})]})}function tO(e){let{titleHolder:t,mostTitlesTeams:n,titleHolderTitles:i,mostTitles:r,sport:l,totalPrizeMoney:o,numberOfCompetitors:d,numberOfSets:u}=e,m=(0,c.A)(),p=i?"".concat(m.formatMessage({id:"tournament.titleHolder"})," (").concat(i,")"):m.formatMessage({id:"tournament.titleHolder"}),h=r&&r>1?"".concat(m.formatMessage({id:"tournament.mostTitles"})," (").concat(r,")"):"",x=l===a.QCR.Tennis&&!!u||!!o||!!d;return x||t||n?(0,s.jsxs)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},p:"sm","data-testid":"titles_container",children:[(0,s.jsx)(C.az,{display:["none","block"],children:(0,s.jsx)(V.EY,{textStyle:"display.small",color:"neutrals.nLv1",pt:"sm",pb:"xs",px:"sm",display:"block",children:(0,s.jsx)(ev.A,{id:"tournament.titles"})})}),(0,s.jsxs)(C.so,{wrap:"wrap",align:"center",justify:"space-around",children:[t&&(0,s.jsx)(tN,{team:t,sport:l,text:p}),n?n.map(e=>(0,s.jsx)(tN,{team:e,sport:l,text:h},e.id)):void 0]}),x&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(C.so,{justify:"space-evenly",align:"center",borderTop:"1px solid {colors.neutrals.nLv4}",children:[u&&(0,s.jsx)(tD,{label:(0,s.jsx)(ev.A,{id:"sets"}),value:u}),o&&(0,s.jsx)(tD,{label:(0,s.jsx)(ev.A,{id:"totalPrizeMoney"}),value:(0,s.jsx)(tP.o,{parsedMoney:(0,a.oaz)(o)})}),d&&(0,s.jsx)(tD,{label:(0,s.jsx)(ev.A,{id:"competitors"}),value:d})]})})]}):null}let tQ=["id","newcomersUpperDivision","newcomersLowerDivision","newcomersOther","totalPrizeMoneyCurrency","totalPrizeMoney","hostCity","hostCities","hostCountries"],tY=(e,t)=>{let n=Math.round(100*e);return t?"".concat(n,"%"):n/100};function tG(e){var t;let{tournament:n,info:i,seasonId:r,isCurrentSeason:l}=e,o=n.category.sport.slug,d={sport:o,category:n.category.slug},u=null==(t=(0,tn.Ay)(r?a.V3t.info(n.id,r):null,{fallbackData:l&&i?{info:i}:void 0}).data)?void 0:t.info,c=(0,S.useMemo)(()=>(function(e,t){if(void 0===e)return null;let n=Object.keys(e).filter(e=>-1===tQ.indexOf(e)).reduce((t,n)=>(Array.isArray(e[n])?e[n].length&&(t[n]=e[n].join(", ")):"totalPrizeMoneyRaw"===n&&void 0!==e.totalPrizeMoneyRaw?t.totalPrizeMoney=e.totalPrizeMoneyRaw:t[n]=e[n],t),{}),s={};t&&(t.groundType&&(s.groundType=t.groundType),t.numberOfSets&&(s.numberOfSets=t.numberOfSets),t.tier&&(s.tier=t.tier));let a=(n.homeTeamWins||0)+(n.awayTeamWins||0)+(n.draws||0);if(a){let e={...n,...s};if(n.goals){let t=tY(n.goals/a);e={goals:e.goals,averageGoals:t,...e}}return n.yellowCards&&(e.yellowCards=tY(n.yellowCards/a)),n.redCards&&(e.redCards=tY(n.redCards/a)),n.homeTeamWins&&(e.homeTeamWins=tY(n.homeTeamWins/a,!0)),n.awayTeamWins&&(e.awayTeamWins=tY(n.awayTeamWins/a,!0)),n.draws&&(e.draws=tY(n.draws/a,!0)),e}return{...n,...s}})(u,n),[r,u]),m={},p=null;o===a.QCR.Tennis?((null==c?void 0:c.totalPrizeMoney)&&(m.totalPrizeMoney=tk()(c.totalPrizeMoney)),m.numberOfCompetitors=tk()(null==c?void 0:c.numberOfCompetitors),m.numberOfSets=tk()(null==c?void 0:c.numberOfSets),c&&(null==(p=tk()(c))||delete p.totalPrizeMoney,null==p||delete p.numberOfCompetitors,null==p||delete p.numberOfSets,null==p||delete p.groundType)):c&&(p={...c});let h=l?n.titleHolder||(null==u?void 0:u.winner):void 0,x=l?n.mostTitlesTeams:void 0,g=[{title:"tournament.upperDivision",tournaments:n.upperDivisions},{title:"tournament.newComersUpperDivision",teams:null==u?void 0:u.newcomersUpperDivision},{title:"tournament.lowerDivision",tournaments:n.lowerDivisions},{title:"tournament.newComersLowerDivision",teams:null==u?void 0:u.newcomersLowerDivision},{title:"tournament.newcomersOther",teams:null==u?void 0:u.newcomersOther}].map(e=>{var t,n;return(null==(t=e.tournaments)?void 0:t.length)||(null==(n=e.teams)?void 0:n.length)?(0,s.jsx)(tM,{...e,...d},e.title):null}),j=[t_()(p)?null:(0,s.jsx)(tq,{facts:p,isCurrentSeason:l},p.id),(null==u?void 0:u.hostCountries.length)||(null==u?void 0:u.hostCity)?(0,s.jsx)(tF,{countries:null==u?void 0:u.hostCountries,city:null==u?void 0:u.hostCity},u.id):null],v=[h,x,...n.linkedUniqueTournaments||[]].filter(Boolean),y=[...g,...j].filter(e=>!!e),f=!!v.length,b=!!y.length;return f||b?(0,s.jsxs)(G.Zp,{"data-testid":"league_info",children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.leagueInfo"}),(0,s.jsxs)(C.so,{direction:{mdDown:"column"},p:"sm",gap:"sm",children:[f&&(0,s.jsxs)(C.so,{w:{mdDown:"100%",md:b?"1/2":"100%"},direction:"column",gap:"sm",children:[(0,s.jsx)(tO,{titleHolder:h,titleHolderTitles:n.titleHolderTitles,mostTitlesTeams:x,mostTitles:n.mostTitles,sport:o,...m}),(0,s.jsx)(tM,{title:"tournament.sameDivision",tournaments:n.linkedUniqueTournaments,...d})]}),f&&b&&(0,s.jsx)(C.so,{direction:"column",gap:"sm",w:{mdDown:"100%",md:"1/2"},children:y.map(e=>(0,s.jsx)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},children:e},null==e?void 0:e.key))}),!f&&b&&tC()(y,Math.ceil(y.length/2)).map(e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},w:"100%",children:e.map(e=>(0,s.jsx)(s.Fragment,{children:e}))})}))]})]}):null}var tW=n(22648),tB=n(9127),tU=n(19168);let tK=e=>{let{options:t,value:n,onChange:a}=e,i=(0,c.A)(),[r]=(0,S.useState)(Math.random());return(0,s.jsx)(C.so,{gap:"sm",children:t.map(e=>(0,s.jsx)(ej.a,{id:""===e.value?"all-".concat(r):"".concat(String(e.value),"-").concat(r),name:"statistics",label:i.formatMessage({id:e.label}),value:e.value,checked:n===e.value,onChange:()=>{a(e.value)},gap:"sm",px:"sm",py:"xs",m:"1px"},String(e.value)))})};var tV=function(e){return e.GT="GT",e.LT="LT",e.EQ="EQ",e.IN="in",e}({});let tZ=[{label:"basic.all",value:"total"},{label:"stats.perGame",value:"perGame"},{label:"stats.per90",value:"per90"}],tX=[{label:"stats.allPlayers",value:""},{label:"stats.playersWithMinApps",value:"filtered"}],tJ=[{label:"standings.overall",value:""},{label:"details.home",value:"home"},{label:"away",value:"away"}],t$=[{label:"basic.all",value:""},{label:"stats.moreThan",value:tV.GT},{label:"stats.equals",value:tV.EQ},{label:"stats.lessThan",value:tV.LT}],t0=[{label:"basic.all",value:""},{label:"stats.both",value:"Both"},{label:"basic.right",value:"Right"},{label:"basic.left",value:"Left"}],t1=[{label:"G",value:"G"},{label:"D",value:"D"},{label:"M",value:"M"},{label:"F",value:"F"}],t5=[{label:"basic.all",value:""},{label:"stats.choose",value:"choose"}],t9=e=>{let{value:t,optionType:n}=e;switch(n){case"nationalities":return(0,s.jsx)(ej._V,{width:"18",height:"18",src:"/static/images/flags/".concat(t.toLowerCase(),".png"),alt:""});case"teams":return(0,s.jsx)(eM.p,{size:18,id:Number.parseInt(t,10)});default:return null}},t2=e=>{let{values:t,options:n,onChange:a,optionsType:i,labelOnly:r=!1,TransComponent:l=eF.lC}=e;return(0,s.jsx)(ej.so,{wrap:"wrap",children:n.map((e,n)=>{let o=t.includes(e.value);return(0,s.jsx)(ej.Sc,{w:"25%",gap:"sm",h:"32",py:"sm",size:18,name:e.label,id:e.value,checked:o,onChange:()=>{a(o?t.filter(t=>t!==e.value):[...t,e.value])},children:(0,s.jsxs)(ej.so,{align:"center",children:[!r&&i&&(0,s.jsx)(t9,{value:e.value,optionType:i}),(0,s.jsx)(ej.EY,{ml:r?0:"xs",maxW:"148",block:!0,ellipsis:!0,font:"body.small",color:"onSurface.nLv1",children:(0,s.jsx)(l,{original:e.label,id:e.label})})]})},n)})})},t4=e=>{let{options:t,name:n,values:a,label:i,onChange:r}=e;return(0,s.jsxs)(C.az,{bg:"surface.s2",br:"md",mx:"md",mt:"xs",mb:"md",p:"sm",pb:"lg",children:[(0,s.jsxs)(C.so,{align:"center",justify:"space-between",py:"sm",children:[(0,s.jsx)(V.EY,{textStyle:"display.small",color:"neutrals.nLv1",pl:"lg",children:(0,s.jsx)(ev.A,{id:i})}),(0,s.jsxs)(C.so,{align:"center",px:"sm",children:[(0,s.jsx)(ej.Sc,{name:n,id:"all",px:"sm",py:"xs",h:"34",gap:"sm",checked:a.length===t.length,onChange:()=>r(t.map(e=>e.value)),children:(0,s.jsx)(ev.A,{id:"basic.selectAll"})}),(0,s.jsx)(ej.Sc,{name:n,id:"none",px:"sm",py:"xs",h:"34",gap:"sm",checked:!a.length,onChange:()=>r([]),children:(0,s.jsx)(ev.A,{id:"basic.deselectAll"})})]})]}),(0,s.jsx)(t2,{values:a,optionsType:n,options:t,onChange:e=>r(e)})]})},t7="sofa.leagueStatsFilters",t3=e=>{(0,tU.kH)(t7,JSON.stringify(e))},t6=()=>{let e=(0,tU._9)(t7);return e?JSON.parse(e):null},t8=(e,t)=>{let n=[];return e<1||t<1?[]:e>t?1!==t?[1,t]:[1]:(e>2&&n.push(1),e>1&&n.push(e-1),n.push(e),e{let{label:t,relation:n,setRelation:a,quantity:i,setQuantity:r}=e,l=(0,S.useRef)(null),o=!n;return(0,s.jsxs)(C.so,{align:"center",ml:"md",children:[(0,s.jsx)(V.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:t})}),(0,s.jsx)(ej.ms,{items:t$,selectedItem:t$.find(e=>e.value===n)||t$[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(ev.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&(a(t.value),t.value&&window.setTimeout(()=>{var e;null==(e=l.current)||e.focus()},0))}}),(0,s.jsx)(ej.az,{ref:l,as:"input",type:"text",br:"sm",value:i||"",onChange:e=>{r(e.target.value)},ml:"sm",h:"32",disabled:o,border:"1px solid onSurface.nLv4",bg:o?"surface.s2":"surface.s1",color:"onSurface.nLv1",px:"sm",maxW:"48",pattern:"\\d*",style:{opacity:o?.7:1,cursor:o?"not-allowed":"pointer"}})]})};function nt(e){let{groups:t,values:n,onChange:a}=e,[i,r]=(0,S.useState)(""),l=[];Object.keys(t).forEach(e=>{let t=e===i;l.push((0,s.jsxs)(ej.$n,{onClick:()=>{i===e?r(""):r(e)},children:[(0,s.jsx)(ev.A,{id:e}),t?(0,s.jsx)(tm.t8v,{ml:"xs"}):(0,s.jsx)(tm.QtO,{ml:"xs"})]},e))});let o=t[i];return(0,s.jsxs)("div",{children:[(0,s.jsx)(ej.e2,{mb:"sm",variant:"unshielded",tertiary:!0,children:l}),(0,s.jsx)(tB.m.div,{initial:{height:0,opacity:0},animate:i?{height:"auto",opacity:1}:{height:0,opacity:0},children:(0,s.jsx)(t2,{labelOnly:!0,options:(null==o?void 0:o.map(e=>({value:e,label:e})))||[],values:n,onChange:a,TransComponent:eC.w})}),(0,s.jsx)(ej.e2,{mt:"md",py:"xxs",px:"sm",tertiary:!0,colorScheme:"neutral",children:n.map(e=>(0,s.jsxs)(ej.$n,{onClick:()=>{a(n.filter(t=>t!==e))},children:[(0,s.jsx)(eC.w,{id:"rating"===e?"average_sofascore_rating":e,children:e=>(0,s.jsx)(s.Fragment,{children:e})}),(0,s.jsx)(tm.zQC,{icon:"close",width:"12",height:"12",ml:"sm"})]},e))})]})}let nn={accumulation:tZ[0].value,location:tJ[0].value,appearancesRelation:void 0,appearancesQuantity:void 0,ageRelation:void 0,ageQuantity:void 0,positions:t1.map(e=>e.value),foot:t0[0].value,selectNationalities:"",nationalities:[],selectTeams:"",teams:[],fields:["goals","successfulDribbles","tackles","assists","accuratePassesPercentage","rating"]};function ns(e){var t;let{groups:n,hideHomeAndAway:a,setFilter:i,...r}=e,[l,o]=(0,S.useState)((null==(t=t6())?void 0:t.accumulation)||nn.accumulation),[d,u]=(0,S.useState)(nn.location),[c,m]=(0,S.useState)(nn.appearancesRelation),[p,h]=(0,S.useState)(nn.appearancesQuantity),[x,g]=(0,S.useState)(nn.ageRelation),[j,v]=(0,S.useState)(nn.ageQuantity),[y,f]=(0,S.useState)(nn.positions),[b,w]=(0,S.useState)(nn.foot),[T,C]=(0,S.useState)(nn.selectNationalities),[k,I]=(0,S.useState)(nn.nationalities),[_,A]=(0,S.useState)(nn.selectTeams),[z,R]=(0,S.useState)(nn.teams),[M,P]=(0,S.useState)(nn.fields),H=(0,S.useRef)();return(0,S.useEffect)(()=>{i({accumulation:l,location:d,appearancesRelation:c,appearancesQuantity:p,ageRelation:x,ageQuantity:j,positions:y,foot:b,nationalities:k,teams:z,fields:M})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ej.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"34",children:[!a&&(0,s.jsx)(tK,{value:d,options:tJ,onChange:u}),(0,s.jsx)(ne,{label:"stats.appearances",relation:c,setRelation:m,quantity:p,setQuantity:h}),(0,s.jsxs)(ej.so,{align:"center",my:"1",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"stats.accumulation"})}),(0,s.jsx)(ej.ms,{items:tZ,initialSelectedItem:tZ.find(e=>e.value===l)||tZ[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(ev.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t.value)},alignRight:!0})]})]}),(0,s.jsx)(ej.cG,{}),(0,s.jsxs)(ej.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"34",children:[(0,s.jsx)(ne,{label:"stats.age",relation:x,setRelation:g,quantity:j,setQuantity:v}),(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"position"})}),(0,s.jsx)(ej.so,{align:"center",children:t1.map(e=>{let t=y.includes(e.value);return(0,s.jsx)(ej.Sc,{name:e.value,checked:t,px:"sm",py:"xs",h:"34",gap:"sm",onChange:()=>{f(t?y.filter(t=>t!==e.value):[...y,e.value])},children:e.label},e.value)})})]}),(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"player_preferred_foot"})}),(0,s.jsx)(ej.ms,{items:t0,initialSelectedItem:t0.find(e=>e.value===b)||t0[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(ev.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&w(t.value)},alignRight:!0})]})]}),(0,s.jsx)(ej.cG,{}),(0,s.jsxs)(ej.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"34",children:[r.nationalities.length>0&&(0,s.jsxs)(ej.so,{align:"center",px:"md",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"nationality"})}),(0,s.jsx)(tK,{value:T,options:t5,onChange:C})]}),(0,s.jsxs)(ej.so,{align:"center",px:"md",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"team"})}),(0,s.jsx)(tK,{value:_,options:t5,onChange:A})]})]}),!!T&&(0,s.jsx)(tB.m.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},children:(0,s.jsx)(t4,{label:"nationality",name:"nationalities",values:k,options:r.nationalities,onChange:I})}),!!_&&(0,s.jsx)(tB.m.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},children:(0,s.jsx)(t4,{label:"team",name:"teams",values:z,options:r.teams,onChange:R})}),!!n&&(0,s.jsx)(ej.az,{bg:"surface.s2",br:"md",mx:"md",mt:"xs",mb:"md",p:"sm",pb:"lg",children:(0,s.jsx)(nt,{groups:n,values:M,onChange:async e=>{e.length<=6?P(e):(await (0,tU.Mx)(H.current),H.current=await (0,tU.MZ)((0,s.jsxs)(ej.so,{dir:document.dir,align:"center",children:[(0,s.jsx)(tm.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(ej.EY,{block:!0,color:"onColor.primary",font:"body.medium",children:(0,s.jsx)(ev.A,{id:"error_max_fields",defaultMessage:"Maximum number of filter fields already selected"})})]}),{autoClose:3e3,closeButton:!1,className:"sofa-toast--info",position:"bottom-center"}))}})}),(0,s.jsx)(ej.e2,{size:"md",children:(0,s.jsxs)(ej.az,{mx:"md",mb:"md",children:[(0,s.jsxs)(ej.$n,{onClick:()=>{let e={accumulation:l,location:d,appearancesRelation:c,appearancesQuantity:p,ageRelation:x,ageQuantity:j,positions:y,foot:b,selectNationalities:T,nationalities:k,selectTeams:_,teams:z,fields:M};i(e),t3(e)},children:[(0,s.jsx)(ev.A,{id:"basic.apply"}),(0,s.jsx)(tm.VsF,{width:16,height:16,ml:"xs",mt:"-2"})]}),(0,s.jsxs)(ej.$n,{colorScheme:"neutral",onClick:()=>{let e={...nn,fields:M};o(e.accumulation),u(e.location),m(e.appearancesRelation),h(e.appearancesQuantity),g(e.ageRelation),v(e.ageQuantity),f(e.positions),w(e.foot),C(e.selectNationalities),I(e.nationalities),A(e.selectTeams),R(e.teams),P(e.fields),i(e),t3(e)},children:[(0,s.jsx)(ev.A,{id:"stats.clearFilters"}),(0,s.jsx)(tm.xV8,{width:16,height:16,ml:"xs",mt:"-2"})]})]})})]})}function na(e){var t,n;let{setFilter:a}=e,[i,r]=(0,S.useState)((null==(t=t6())?void 0:t.accumulation)||tZ[0].value),[l,o]=(0,S.useState)((null==(n=t6())?void 0:n.minApps)||"");return(0,S.useEffect)(()=>{a({accumulation:i,minApps:l}),t3({accumulation:i,minApps:l})},[i,l]),(0,s.jsxs)(ej.so,{align:"center",justify:"space-between",px:"sm",my:"xs",children:[(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(tK,{value:l,options:tX,onChange:o}),(0,s.jsx)(ej.az,{ml:"sm",children:(0,s.jsx)(ej.AM,{children:(0,s.jsx)(ej.AM.Content,{minW:"280",children:(0,s.jsx)(ev.A,{id:"stats.playersWithMinAppsDescription"})})})})]}),(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(ej.EY,{font:"assistive.default",color:"onSurface.nLv1",mr:"sm",children:(0,s.jsx)(ev.A,{id:"stats.accumulation"})}),(0,s.jsx)(ej.ms,{items:tZ,initialSelectedItem:tZ.find(e=>e.value===i)||tZ[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(ev.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&r(t.value)},alignRight:!0})]})]})}let ni=e=>{let{currentPage:t,totalPages:n,selectPage:a}=e,i=t>0&&t+1<=n,r=t>0&&t-1>0,l=t8(t,n);return(0,s.jsxs)(C.so,{py:"lg",align:"center",justify:"center",children:[(0,s.jsx)(V.K0,{size:"primary",variant:"clear",disabled:!r,onClick:()=>{r&&a(t-1)},children:(0,s.jsx)(tm.zQC,{icon:"chevron-left"})}),(0,s.jsx)(C.so,{children:l.map((e,n)=>{let i=l[n+1]||e+1,r=e===t;return(0,s.jsxs)(S.Fragment,{children:[(0,s.jsx)(V.$n,{size:"secondary",variant:r?"filled":"clear",mx:"xs",onClick:()=>{e!==t&&a(e)},children:e}),e+1!==i&&(0,s.jsx)(V.EY,{textStyle:"display.medium",mx:"xs",mt:"sm",color:"neutrals.nLv3",children:"..."})]},e)})}),(0,s.jsx)(V.K0,{size:"primary",variant:"clear",disabled:!i,onClick:()=>{i&&a(t+1)},children:(0,s.jsx)(tm.zQC,{icon:"chevron-right"})})]})};var nr=n(87827),nl=n(76868),no=n(24159);let nd=(0,e5.css)(["width:48px;"]),nu=e5.default.th.withConfig({componentId:"sc-67e6dd27-0"})(["",""],nd),nc=e5.default.td.withConfig({componentId:"sc-67e6dd27-1"})(["",""],nd),nm=(0,e5.css)(["width:48px;"]),np=e5.default.th.withConfig({componentId:"sc-67e6dd27-2"})(["",""],nm),nh=e5.default.td.withConfig({componentId:"sc-67e6dd27-3"})([""," > a{display:block;:hover{opacity:0.8;}}"],nm),nx=(0,e5.css)(["width:150px;text-align:left;"]),ng=e5.default.th.withConfig({componentId:"sc-67e6dd27-4"})(["",""],nx),nj=e5.default.td.withConfig({componentId:"sc-67e6dd27-5"})(["",";> a{font:",";color:",";}"],nx,e=>e.theme.typography.font.body.small,e=>e.theme.colors.onSurface.nLv1),nv=e5.default.th.withConfig({componentId:"sc-67e6dd27-6"})(["cursor:pointer;width:auto;"]),ny=e5.default.td.withConfig({componentId:"sc-67e6dd27-7"})(["width:auto;"]),nf=(0,e5.css)(["padding:4px 6px;border:1px solid ",";text-overflow:ellipsis;overflow:hidden;"],e=>e.theme.colors.onSurface.nLv4),nb=(0,e5.css)(["background:",";"],e=>e.theme.colors.surface.s2),nw=e5.default.table.withConfig({componentId:"sc-67e6dd27-8"})(["width:100%;border-collapse:collapse;border-spacing:0;text-align:center;font:",";table-layout:fixed;thead tr{:nth-child(odd){",";}}tbody tr{:nth-child(even){",";}}th{"," font:",";color:",";height:56px;position:relative;&:first-child{border-left:none;}&:last-child{border-right:none;}}td{"," white-space:nowrap;&:first-child{border-left:none;}&:last-child{border-right:none;}}a{cursor:pointer;&:hover{color:",";}}"],e=>e.theme.typography.font.body.small,nb,nb,nf,e=>e.theme.typography.font.body.small,e=>e.theme.colors.onSurface.nLv3,nf,e=>e.theme.colors.primary.default),nT=(0,e5.default)(tm.Bfd).withConfig({componentId:"sc-67e6dd27-9"})(["position:absolute;width:16px;height:16px;bottom:4px;left:calc(50% - 8px);transform-origin:center center;",""],e=>(0,tU.QX)(!!e.$isRotated,90)),nC=(0,e5.default)(eM.p).withConfig({componentId:"sc-67e6dd27-10"})(["display:inline-block;vertical-align:middle;:hover{opacity:0.8;}"]),nS=e=>{let{header:t,data:n,activeTab:i,onSortClick:r,sort:l,indexOffset:o=0}=e,d=(0,c.A)();return n.length?(0,s.jsxs)(nw,{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)(nu,{children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:"#"})}),(0,s.jsx)(np,{children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:(0,s.jsx)(ev.A,{id:"team"})})}),(0,s.jsx)(ng,{children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:(0,s.jsx)(ev.A,{id:"basic.name"})})}),t.map(e=>(0,s.jsx)(eC.w,{id:"rating"===e?"average_sofascore_rating":e,children:n=>(0,s.jsxs)(nv,{columns:t.length,title:n.toString(),onClick:()=>{r(l==="-".concat(e)?e:"-".concat(e),i)},children:[(0,s.jsx)(V.EY,{lineClamp:2,position:"relative",top:"-sm",textStyle:"body.small",color:"[inherit]",textAlign:"center",children:n}),(0,s.jsx)(nT,{fill:-1!==l.indexOf(e)?"primary.default":"onSurface.nLv4",$isRotated:l===e})]})},e))]})}),(0,s.jsx)("tbody",{children:n.map((e,n)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)(nc,{style:{width:35},children:o+n+1}),(0,s.jsx)(nh,{title:d.formatMessage({id:e.team.slug,defaultMessage:e.team.name}),children:(0,s.jsx)(t=>(0,s.jsx)(j.gT,{team:e.team,sport:a.QCR.Football,...t}),{children:(0,s.jsx)(nC,{id:e.team.id,name:e.team.name,size:21})})}),(0,s.jsx)(nj,{title:e.player.name,children:(0,s.jsx)(t=>(0,s.jsx)(j.uc,{player:e.player,...t,style:{display:"inherit"},sportSlug:a.QCR.Football}),{children:(0,s.jsx)(no.c,{entity:e.player})})}),t.map(n=>{let a="rating"===n?e[n]:null;return(0,s.jsx)(ny,{columns:t.length,children:a?(0,s.jsx)(C.so,{justify:"center",children:(0,s.jsx)(nr.G,{rating:a,format:"sideBox"})}):(0,s.jsx)(s.Fragment,{children:e[n]})},n)})]},e.player.id))})]}):(0,s.jsx)(nl.p,{graphic:"no-statistics",descriptionMessageId:"stats.noResults"})},nk="goalkeeper",nI="detailed",n_=["summary","attack","defence","passing",nk,nI],nA={summary:"-rating",attack:"-goals",defence:"-tackles",passing:"-bigChancesCreated",[nk]:"-saves",[nI]:"-rating"},nz={summary:"statistics_general",attack:"attacking",defence:"defending",goalkeeper:"goalkeeping",detailed:"stats.detailed"},nR={limit:20},nM=(e,t,n)=>{let s="object"==typeof n?n.join("~"):String(n);return"".concat(e,".").concat(t,".").concat(s)},nP=e=>{let{uniqueTournamentId:t,seasonId:n,sport:i}=e,[r,l]=(0,S.useState)(),[o,d]=(0,S.useState)(n_[0]),[u,c]=(0,S.useState)(nR),[m,p]=(0,S.useState)(),[h,x]=(0,S.useState)(),[g,j]=(0,S.useState)(nA),v=(0,ed.ZC)(o),y=o===nI,f=(0,S.useCallback)(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-rating";if(!r)return;p(void 0),x(void 0);let l={...nR,order:i,filtersConditions:[]};if(s>1&&(l.offset=(s-1)*20),o===nk&&l.filtersConditions.push(nM("position",tV.IN,"G")),e.accumulation&&(l.accumulation=e.accumulation),y){var d,u;e.fields&&(l.fields=e.fields.join(",")),e.location&&l.filtersConditions.push(nM("type",tV.EQ,e.location)),e.appearancesRelation&&e.appearancesQuantity&&l.filtersConditions.push(nM("appearances",e.appearancesRelation,e.appearancesQuantity)),e.ageRelation&&e.ageQuantity&&l.filtersConditions.push(nM("age",e.ageRelation,e.ageQuantity)),e.positions&&l.filtersConditions.push(nM("position",tV.IN,e.positions)),e.foot&&l.filtersConditions.push(nM("preferredFoot",tV.EQ,e.foot)),e.selectTeams&&(null==(d=e.teams)?void 0:d.length)&&l.filtersConditions.push(nM("team",tV.IN,e.teams)),e.selectNationalities&&(null==(u=e.nationalities)?void 0:u.length)&&l.filtersConditions.push(nM("nationality",tV.IN,e.nationalities))}else l.group=o,e.minApps&&(l.minApps="yes");l.filtersConditions.length&&(l.filters=l.filtersConditions.join(",")),delete l.filtersConditions,a.jFR.fetchTournamentStatistics(t,n,l).then(e=>{p(e.results),x({page:e.page,pages:e.pages})}).catch(console.error)},[t,n,r,o,g,y]),b=(0,S.useCallback)(e=>{h&&(x({page:e,pages:h.pages}),f(u,e,g[o]))},[f,h,g,y]),w=(0,S.useCallback)(e=>{c(e),f(e,1,g[o])},[f]),T=(0,S.useCallback)((e,t)=>{let n={...g};n[t]=e,j(n),f(u,1,e)},[f,u]);if((0,S.useEffect)(()=>{a.jFR.fetchTournamentStatisticsInfo(t,n).then(e=>{l({statisticsGroups:e.statisticsGroups,hideHomeAndAway:e.hideHomeAndAway,hasNationalities:!!e.nationalities,teams:e.teams.map(e=>({value:String(e.id),label:e.shortName||e.name})),nationalities:e.nationalities?Object.keys(e.nationalities).map(t=>({value:t,label:e.nationalities[t]})):[]}),d(n_[0]),c(nR),p(void 0),x(void 0),j(nA),f(u)}).catch(e=>{l(void 0),console.error(e)})},[t,n]),(0,S.useEffect)(()=>{v===nI||y||f(u,1,g[o])},[o]),!r||i!==a.QCR.Football)return null;let{nationalities:k,statisticsGroups:I,teams:_,hideHomeAndAway:A}=r,z=y?u.fields||[]:I[o];return(0,s.jsx)(W.t,{tag:"LeagueStats",children:(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"player_stats"}),(0,s.jsxs)(ej.tU,{onChange:e=>{d(e)},value:o,variant:"tertiary",children:[(0,s.jsx)(C.az,{px:"lg",py:"sm",children:n_.map(e=>{var t;return(0,s.jsx)(ej.tU.Tab,{tabKey:e,children:(0,s.jsx)(ev.A,{id:null!=(t=nz[e])?t:e})},"tab-"+e)})}),o===nI?(0,s.jsx)(ns,{nationalities:k,teams:_,groups:I.detailed,setFilter:w,hideHomeAndAway:A}):(0,s.jsx)(na,{setFilter:w}),n_.map(e=>(0,s.jsx)(ej.tU.Panel,{tabKey:e,children:(0,s.jsxs)("div",{style:{minHeight:364},children:[!m&&(0,s.jsx)(tW.a,{padding:294}),m&&(0,s.jsx)(nS,{sort:g[o],activeTab:o,onSortClick:T,header:z,data:m,indexOffset:h?Math.max(20*(h.page-1),0):0}),h&&h.pages>1&&(0,s.jsx)(ni,{currentPage:h.page,totalPages:h.pages,selectPage:b})]})},e))]})]})})};var nH=n(78259);let nE=e=>{let{fill:t="white"}=e;return(0,s.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M56.988 114h19v19h-19z"}),(0,s.jsx)("g",{opacity:".8",children:(0,s.jsx)("path",{d:"M38 133h19v19H38zM57 133h19v19H57zM95 133h19v19H95zM38 114h19v19H38zM76 95h19v19H76zM95 95h19v19H95zM57 57h19v19H57zM95 57h19v19H95zM114 57h19v19h-19zM0 0h19v19H0zM57 0h19v19H57z"})}),(0,s.jsx)("g",{opacity:".5",children:(0,s.jsx)("path",{d:"M19 133h19v19H19zM114 133h19v19h-19zM76 114h19v19H76zM0 95h19v19H0zM57 95h19v19H57zM76 76h19v19H76zM95 76h19v19H95zM38 57h19v19H38zM76 57h19v19H76zM38 38h19v19H38zM76 38h19v19H76zM0 19h19v19H0z"})})]})})},nL=e=>{let{fill:t="white"}=e;return(0,s.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,s.jsx)("path",{d:"M76.012 114h-19v19h19z"}),(0,s.jsx)("g",{opacity:".5",children:(0,s.jsx)("path",{d:"M114 133H95v19h19zM19 133H0v19h19zM57 114H38v19h19zM133 95h-19v19h19zM76 95H57v19h19zM57 76H38v19h19zM38 76H19v19h19zM95 57H76v19h19zM57 57H38v19h19zM95 38H76v19h19zM57 38H38v19h19zM133 19h-19v19h19z"})}),(0,s.jsx)("g",{opacity:".8",children:(0,s.jsx)("path",{d:"M95 133H76v19h19zM76 133H57v19h19zM38 133H19v19h19zM95 114H76v19h19zM57 95H38v19h19zM38 95H19v19h19zM76 57H57v19h19zM38 57H19v19h19zM19 57H0v19h19zM133 0h-19v19h19zM76 0H57v19h19z"})})]})})},nq=e5.default.div.withConfig({componentId:"sc-3f4a6dc9-0"})(["position:absolute;width:100%;height:100%;background-image:",";background-size:100% 100%;background-position:center center;filter:blur(50px);overflow:hidden;border-radius:",";transform:scale(1.5);"],e=>e.bgImageSrc?"url(".concat(e.bgImageSrc,")"):"none",e=>e.theme.spacing.lg),nF=(0,e5.default)(ej.az).withConfig({componentId:"sc-3f4a6dc9-1"})(["position:absolute;width:100%;height:100%;overflow:hidden;border-radius:",";"],e=>e.br||e.theme.spacing.lg),nN=e=>{let{uniqueTournamentId:t,seasonId:n,showLoader:i}=e,[r,l]=(0,S.useState)(!1),{data:o,isLoading:d,error:u}=(0,tn.Ay)(n?a.V3t.playerOfTheSeason(t,n):null),[c,m]=(0,tU.yR)("playerOfTheSeason",{uniqueTournamentId:t,seasonId:n,playerId:null==o?void 0:o.player.id});if((0,S.useEffect)(()=>{n&&!u&&i&&!d&&(0,eu.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[t,n,u,i,d]),(0,S.useEffect)(()=>{m({uniqueTournamentId:t,seasonId:n,playerId:null==o?void 0:o.player.id})},[t,n,null==o?void 0:o.player.id]),u||!i&&!o)return null;let p=a.V3t.image(t),h=o&&a.qvj.image(o.player.id);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ej.az,{position:"relative",br:["lg","xl"],elevation:2,h:"152px",overflow:"hidden","data-testid":"pots_container",children:[(0,s.jsxs)(nF,{br:16,children:[(0,s.jsx)(nq,{bgImageSrc:p}),(0,s.jsxs)(ej.so,{position:"absolute",top:0,left:0,w:"100%",justify:"space-between",br:"lg",elevation:3,style:{opacity:.1},children:[(0,s.jsx)(nE,{}),(0,s.jsx)(nL,{})]})]}),(0,s.jsxs)(ej.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"md lg",pb:"lg",bg:"overlay.darken3",children:[(0,s.jsxs)(ej.so,{w:"100%",justify:"space-between",zIndex:1,children:[(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(tm.gWL,{w:24,h:24,fill:"white"}),(0,s.jsx)(ej.EY,{font:"display.medium",color:"onColor.primary",ml:"sm",children:(0,s.jsx)(ev.A,{id:"details.playerOfTheSeason"})})]}),(0,s.jsx)(tm.G_L,{cursor:"pointer",fill:"onColor.primary",onClick:()=>l(!0)})]}),d?(0,s.jsx)(tW.a,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ej.so,{w:"100%",justify:"space-between",align:"center",zIndex:1,children:[(0,s.jsx)(j.uc,{player:null==o?void 0:o.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,eu.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(ej.so,{align:"center",children:[(0,s.jsx)(nH.tg,{src:h,size:48}),(0,s.jsxs)(ej.az,{ml:"sm",children:[(0,s.jsx)(ej.EY,{as:"div",font:"display.medium",color:"onColor.primary",children:(null==o?void 0:o.player)&&(0,s.jsx)(no.c,{entity:null==o?void 0:o.player})}),(0,s.jsxs)(ej.so,{mt:"xs",align:"center",children:[(0,s.jsx)(nH.pY,{id:null==o?void 0:o.team.id,size:16}),(0,s.jsx)(ej.EY,{as:"div",fontSize:12,fontWeight:500,color:"onColor.primary",ml:"xs",mt:"xxs",children:(null==o?void 0:o.team)&&(0,s.jsx)(no.c,{entity:null==o?void 0:o.team})})]})]})]})}),(0,s.jsx)(nH.GW,{rating:null==o?void 0:o.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,s.jsx)(ej.so,{w:"100%",justify:"center",align:"center",zIndex:1,children:(0,s.jsx)(j.uc,{player:null==o?void 0:o.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,eu.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(ej.so,{align:"center",cursor:"pointer",children:[(0,s.jsx)(ej.EY,{as:"bdi",ml:"sm",font:"display.small",color:"onColor.primary",children:(0,s.jsx)(ev.A,{id:"details.seePlayerStats"})}),(0,s.jsx)(tm.CCT,{fill:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,s.jsx)(ej.aF,{isOpen:r,children:(0,s.jsx)(ej.so,{align:"center",justify:"center",children:(0,s.jsxs)(ej.az,{bg:"surface.s1",br:"lg",p:"lg",maxW:"300",children:[(0,s.jsx)(ej.EY,{as:"h4",font:"display.large",color:"onSurface.nLv1",m:"0",mb:"md",children:(0,s.jsx)(ev.A,{id:"details.playerOfTheSeason"})}),(0,s.jsx)("p",{children:(0,s.jsx)(ej.EY,{font:"body.mediumParagraph",color:"onSurface.nLv1",children:(0,s.jsx)(ev.A,{id:"details.playerOfTheSeason.description"})})}),(0,s.jsx)(ej.so,{justify:"flex-end",children:(0,s.jsx)(ej.$n,{variant:"unshielded",onClick:e=>{l(!1),e.stopPropagation()},children:(0,s.jsx)(ev.A,{id:"close_window_button"})})})]})})})]})};var nD=n(77015),nO=n(75414);let nQ=e=>{let{player:t,team:n,popularityRanking:i}=e,r=a.USm.includes(n.sport.slug);return(0,s.jsx)(j.uc,{player:t,sportSlug:n.sport.slug,children:(0,s.jsxs)(C.so,{flexGrow:"1",align:"center",w:"100%",px:"lg",py:"sm",cursor:"pointer",_hover:{bg:"surface.s2"},direction:"row",justify:"space-between",children:[(0,s.jsxs)(C.so,{children:[(0,s.jsx)(C.so,{w:"lg",align:"center",justify:"center",children:(0,s.jsx)(V.EY,{textStyle:"body.small",color:"neutrals.nLv1",children:i})}),(0,s.jsxs)(C.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:[(0,s.jsx)(nD.t,{id:t.id,name:t.name,size:40}),t.country&&(0,s.jsx)(C.so,{position:"absolute",bottom:"[0px]",right:"[0px]",children:(0,s.jsx)(nD.w,{alpha2:t.country.alpha2,h:"16px",w:"16px"})})]}),(0,s.jsxs)(C.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(V.EY,{lineHeight:"md",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(no.c,{entity:t})}),(0,s.jsx)(V.EY,{display:"block",mt:"xs",textAlign:"right",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(ev.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(V.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,nO.A)(t.userCount)})}})})]})]}),r&&(0,s.jsx)(td.e,{entity:a.bq7.Players,id:t.id,location:M.y.PopularPlayers,type:M.b.Player})]})})};function nY(e){let{popularPlayers:t}=e,[n,a]=(0,S.useState)(!1),i=t.length>5,r=n?t:t.slice(0,5);return(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(nQ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(G.Zp.Footer,{ctaParams:i?{messageId:n?"show_less":"show_more",onClick:()=>a(e=>!e),icon:n?Z.X.Up:Z.X.Down}:void 0})]})}var nG=n(59721);function nW(e){let{popularPlayers:t,uniqueTournament:n}=e,[a,i]=(0,S.useState)(!1),r=null==t?void 0:t.slice(0,3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(nQ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(G.Zp.Footer,{ctaParams:{messageId:"basic.seeAllPlayers",onClick:()=>i(e=>!e),icon:Z.X.Right}})]}),(0,s.jsxs)(ej.Xn,{isOpen:a,onClose:()=>i(!1),children:[(0,s.jsx)(ej.Xn.Header,{children:(0,s.jsxs)(C.so,{children:[(0,s.jsx)(C.so,{children:(0,s.jsx)(nG.e,{id:n.id,h:"56px",w:"56px"})}),(0,s.jsxs)(C.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(V.H3,{textStyle:"display.large",color:"neutrals.nLv1",children:n.name}),(0,s.jsx)(V.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(ev.A,{id:"tournament.popularPlayers"})})]})]})}),(0,s.jsx)(ej.Xn.Content,{children:(0,s.jsx)(C.so,{h:"100%",w:"100%",direction:"column",children:t.map((e,t)=>(0,s.jsx)(nQ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id))})})]})]})}function nB(e){let{data:t}=(0,tn.Ay)(a.V3t.topFollowedPlayers(e.uniqueTournament.id,e.seasonId));return t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.az,{hideBelow:"md",maxW:"[440px]",children:(0,s.jsx)(nY,{popularPlayers:null==t?void 0:t.topFollowedPlayers})}),(0,s.jsx)(C.az,{display:{md:"none"},children:(0,s.jsx)(nW,{popularPlayers:null==t?void 0:t.topFollowedPlayers,uniqueTournament:e.uniqueTournament})})]}):null}var nU=n(78144),nK=n(61703),nV=n(47530),nZ=n(52827),nX=n(45749),nJ=n(10794),n$=n(71484),n0=n(95868);let n1=e=>{let{tournamentId:t,roundId:n,eventHighlights:a}=e,{isMobile:i}=(0,V.$c)(),r=(0,n0.MB)({type:"multiple",location:n$.D.TournamentPage,tournamentId:t,roundId:n,screen:i?"mobile":"desktop",eventId:null});(0,nX.P)({containerId:r,storyIds:a.map(e=>{let{sdkId:t}=e;return t})});let l=(0,nZ.i)(r);return(0,s.jsx)(C.az,{ref:l,id:r,h:"[188px]"})};function n5(e){let{uniqueTournamentId:t,seasonId:n,rounds:i,showPicker:r,selectedRound:l,setSelectedRound:o,sportSlug:d}=e,{eventHighlights:u,isLoading:c,isError:m}=function(e){let{eventId:t,uniqueTournamentId:n,seasonId:s,roundId:i}=e,r=(0,tt.d4)(nJ.LQ),{data:l,isLoading:o,error:d}=(0,tn.Ay)(r&&n&&s&&i?a.vCt.tournamentRoundVideoHighlights(r,n,s,i):null);return{eventHighlights:null==l?void 0:l.sportVideoHighlights.filter(e=>{var n;return!t||(null==(n=e.game)?void 0:n.eventId)===t}),isError:d,isLoading:o}}({uniqueTournamentId:t,seasonId:n,roundId:null==l?void 0:l.eventRoundId}),[p,h]=(0,S.useState)(!1),x=[a.QCR.Basketball,a.QCR.AmericanFootball].includes(d)?"game_highlights_title":"match_highlights_title";return((0,S.useEffect)(()=>{h(!0),setTimeout(()=>{h(!1)},0)},[null==l?void 0:l.eventRoundId]),m)?null:(0,s.jsxs)(C.az,{p:"sm",children:[(0,s.jsxs)(C.so,{justify:"space-between",align:"center",p:"sm",mb:"sm",children:[(0,s.jsx)(V.EY,{textStyle:r?"display.medium":"display.small",color:"neutrals.nLv1",children:(0,s.jsx)(ev.A,{id:x})}),r&&l&&(0,s.jsx)(ej.ms,{items:i,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t)},initialSelectedItem:l,renderItem:e=>e?(0,s.jsx)(nV.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0,"data-testid":"totw-dropdown"})]}),(0,s.jsx)(C.az,{minH:"[188px]",position:"relative",children:p||!(null==l?void 0:l.eventRoundId)||c?null:(0,s.jsx)(n1,{tournamentId:t,roundId:null==l?void 0:l.eventRoundId,eventHighlights:u||[]})})]})}var n9=n(90510),n2=n(16620),n4=n(13349),n7=n(79387),n3=n(19451);let n6=(e,t,n)=>{let{uniqueTournamentId:s,uniqueTournamentName:i,uniqueTournamentSlug:r,categorySlug:l,sport:o,seasonId:u,roundId:c}=e,m="sofa-totw-embed-".concat(s,"-").concat(u,"-").concat(c),p=(0,n3.vf)(t.locale),h="".concat(a.yuv).concat(p?"/".concat(p):"","/embed/unique-tournament/").concat(s,"/season/").concat(u,"/round/").concat(c,"/teamOfTheWeek"),x="?showCompetitionLogo=true&widgetTheme=light&widgetTitle=".concat(encodeURIComponent(i)),g=(0,a.Lo9)(d.z.getTranslatedRoute(n,"uniqueTournament",{sport:o,category:l,tournament:r,id:s},(0,q.HL)({id:u})).route,{isApiRoute:!1}),j='Sofascore'),v=t.formatMessage({id:"tournament.totw.backLink",defaultMessage:"Team of the Week provided by ".concat(j)},{linkToSofascore:j});return'\n
\n ').concat(v,"\n
")},n8=function(e){let t=(0,c.A)(),n=(0,p.A)();return(0,s.jsx)(n7.C,{callToAction:(0,s.jsx)(ev.A,{id:"tournament.totw.embedCTA"}),embedString:n6(e,t,n),px:0,my:0})};function se(e){let{uniqueTournament:t,seasonId:n,selectedRound:i,setSelectedRound:r,rounds:l,showPicker:o,isRoundLoading:d}=e,{setTotwUrl:u}=(0,n2.d)(),c=(null==i?void 0:i.roundName.toLowerCase())==="season",m=(null==i?void 0:i.totwRoundId)&&n?a.V3t.teamOfTheWeekRoundDetails(t.id,n,i.totwRoundId):null,{data:p,isLoading:h}=(0,tn.Ay)(m);(0,S.useEffect)(()=>(u(m),()=>u(null)),[i]);let x=d||h;return x||p?(0,s.jsxs)(C.az,{"data-testid":"totw_container",children:[(0,s.jsx)(G.Zp.Header,{titleId:c?"tournament.teamOfTheSeason":"tournament.teamOfTheWeek",variant:"left-aligned-desktop",actionComponent:o&&i?(0,s.jsx)(ej.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&r(t)},initialSelectedItem:i,selectedItem:i,renderItem:e=>e?(0,s.jsx)(nV.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0,"data-testid":"totw-dropdown"}):(0,s.jsx)(C.az,{h:"2xl"})}),(0,s.jsxs)(G.BU,{children:[(0,s.jsx)(eb.$,{messageId:c?"rating_team_of_the_season":"rating_team_of_the_week"}),(0,s.jsxs)(C.az,{children:[(0,s.jsx)(n4.I,{...p,isSeason:c}),(null==i?void 0:i.totwCreatedTimestamp)?(0,s.jsxs)(V.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"right",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,s.jsx)(ev.A,{id:"basic.published"}),":"," ",(0,s.jsx)(n9.XU,{value:1e3*i.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,s.jsx)(C.az,{h:"2xl"})]}),x&&(0,s.jsx)(C.az,{h:"4xl",bg:"surface.s2",br:"lg",hideBelow:"md"}),n&&i&&!x&&(0,s.jsx)(n8,{uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,sport:t.category.sport.slug,seasonId:n,roundId:i.totwRoundId})]})]}):null}function st(e){let{uniqueTournament:t,seasonId:n,sportSlug:i}=e,r=t.id,{rounds:l,isLoading:o,selectedRound:d,setSelectedRound:u,hasWSC:c,hasTOTW:m}=function(e,t){var n;let s=(0,tt.d4)(nJ.LQ),[i,r]=(0,S.useState)(void 0),l=t&&s?a.vCt.tournamentRoundsWithVideoHighlights(s,e,t):null,{data:o,isLoading:d}=(0,tn.Ay)(l),u=(null==o?void 0:o.rounds)||[],c=t?a.V3t.teamOfTheWeekRounds(e,t):null,{data:m,isLoading:p}=(0,tn.Ay)(c),h=(null==m?void 0:m.rounds)||[],x=Array.from(new Set([...u.map(e=>e.roundSlug),...h.map(e=>e.roundSlug)])).map(e=>{let t=h.find(t=>t.roundSlug===e),n=u.find(t=>t.roundSlug===e),s=(null==t?void 0:t.roundId)||(null==n?void 0:n.eventRoundId);return{eventRoundId:s,roundName:(null==t?void 0:t.roundName)||(null==n?void 0:n.eventRoundName)||s.toString(),roundSlug:(null==t?void 0:t.roundSlug)||(null==n?void 0:n.roundSlug),totwRoundId:null==t?void 0:t.id,totwCreatedTimestamp:null==t?void 0:t.createdAtTimestamp}}).sort((e,t)=>t.eventRoundId-e.eventRoundId);return(0,S.useEffect)(()=>{r(x[0])},[t,null==(n=x[0])?void 0:n.roundSlug]),{rounds:x,isLoading:d||p,selectedRound:i,setSelectedRound:r,hasWSC:!!u.length,hasTOTW:!!h.length}}(r,n),p=(0,eg.b)(r,"teamOfTheWeek"),h=i===a.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",x=n?(0,s.jsx)(n5,{uniqueTournamentId:r,seasonId:n,selectedRound:d,setSelectedRound:u,rounds:l,showPicker:!m,sportSlug:i}):null,g=(0,s.jsx)(se,{uniqueTournament:t,seasonId:n,showPicker:!c,isRoundLoading:o,rounds:l,selectedRound:d,setSelectedRound:u});if(!o&&!m&&!c)return null;if(m&&c)return(0,s.jsx)(G.Zp,{children:(0,s.jsxs)(nK.b,{branding:p,entityId:r,location:"league_totw",children:[(0,s.jsx)(G.Zp.Header,{titleId:h,variant:"left-aligned",actionComponent:d?(0,s.jsx)(ej.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&u(t)},initialSelectedItem:d,renderItem:e=>e?(0,s.jsx)(nV.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0,"data-testid":"totw-dropdown"}):void 0}),x,g]})});if(m)return(0,s.jsx)(G.Zp,{children:(0,s.jsx)(nK.b,{branding:p,entityId:r,location:"league_totw",children:g})});if(c)return(0,s.jsx)(G.Zp,{children:x});if(i===a.QCR.Football)return(0,s.jsx)(G.Zp,{children:(0,s.jsx)(nK.b,{branding:p,entityId:r,location:"league_totw",children:g})});else return null}let sn=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey],ss=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey,a.QCR.Tennis],sa=Y()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]},ssr:!1,loading:()=>(0,s.jsx)(F.E,{uniqueKey:"unique-tournament-media-cl-2",br:"lg"})}),si=Y()(()=>Promise.all([n.e(4313),n.e(4824),n.e(3003)]).then(n.bind(n,73003)),{loadableGenerated:{webpack:()=>[73003]},loading:()=>(0,s.jsx)(te.A,{})}),sr=Y()(()=>Promise.all([n.e(7256),n.e(7545),n.e(2753),n.e(1072),n.e(1682),n.e(7319),n.e(7229),n.e(2017),n.e(1584),n.e(1870)]).then(n.bind(n,54672)),{loadableGenerated:{webpack:()=>[54672]},ssr:!1}),sl=[1,133,16];function so(e){let{uniqueTournament:t,seasons:n,info:i,seo:r,activeSeasonId:l,setActiveSeasonId:o=O()}=e,d=(0,ea.Oj)(t.id),u=d&&(0,ea.ib)((0,N.UG)(new Date),d)&&(null==d?void 0:d.historyHighlightsEndYear),c=t.startDateTimestamp&&new Date().getTime()>1e3*t.startDateTimestamp,m=u&&!c,p=u&&c,h=ei.excludedSeasonIds.includes(l),x=t.category.sport.slug,g=x===a.QCR.Football,j=n[0],v=n[1]?n[1].name:"",y=(null==j?void 0:j.id)===l,f=sl.includes(t.id),b=!!l&&sn.includes(x),w=ss.includes(x),T=56953===l&&1===t.id||57114===l&&133===t.id,S=(0,eg.b)(t.id,"banner"),{hasMedia:k,hasPlayerOfTheSeason:I}=(0,L.A)({hasMedia:{route:a.V3t.media(t.id)},hasPlayerOfTheSeason:{route:a.V3t.playerOfTheSeason(t.id,l),skipCheck:!l}},[l]);return(0,s.jsxs)(C.az,{pb:"md",children:[(0,s.jsxs)(_.xA,{children:[(0,s.jsxs)(_.fv,{grow:2,children:[(0,s.jsx)(tw,{uniqueTournament:t,seasons:n,seasonId:l,onSeasonChange:o}),l&&(0,s.jsxs)(C.so,{direction:f?"column-reverse":"column",gap:"md",children:[(0,s.jsx)(er.default,{uniqueTournament:t,seasonId:l,currentSeason:j}),(0,s.jsx)(si,{uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:l,sport:x})]}),(0,s.jsx)(W.t,{tag:"UniqueTournamentEventList",children:l?(0,s.jsx)(sr,{uniqueTournamentId:t.id,seasonId:l},"UniqueTournamentEventList"):(0,s.jsx)(G.Zp,{children:(0,s.jsx)(et.A,{entity:a.wNW.UniqueTournament,id:t.id})})}),(0,s.jsx)(tG,{"data-key":"UTInfo",tournament:t,info:i,seasonId:l,isCurrentSeason:y},"UTInfo"),!h&&l&&(0,s.jsx)(B.q,{persist:!0,children:(0,s.jsx)(nP,{uniqueTournamentId:t.id,seasonId:l,sport:x},l)})]}),(0,s.jsxs)(_.fv,{grow:1,children:[(0,s.jsx)(eh,{uniqueTournamentId:t.id}),m&&(0,s.jsx)(G.Zp,{children:(0,s.jsx)(C.az,{br:"xl",overflow:"hidden",children:(0,s.jsx)(es.j,{uniqueTournament:t,tournament:d,seasons:n})})}),l&&(0,s.jsx)(nU.default,{uniqueTournamentId:t.id,seasonId:l}),g&&I&&(0,s.jsx)(nN,{uniqueTournamentId:t.id,seasonId:l,showLoader:!!(!y||t.endDateTimestamp&&(null==t?void 0:t.endDateTimestamp)n.e(5151).then(n.bind(n,45151)),{loadableGenerated:{webpack:()=>[45151]}}),sy=Y()(()=>Promise.all([n.e(7256),n.e(7545),n.e(2753),n.e(1072),n.e(1682),n.e(7319),n.e(7229),n.e(2017),n.e(1584),n.e(1870)]).then(n.bind(n,54672)),{loadableGenerated:{webpack:()=>[54672]},ssr:!1});function sf(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.Matches,children:(0,s.jsx)(W.t,{tag:"UniqueTournamentEventList",children:n?(0,s.jsx)(sy,{uniqueTournamentId:t.id,seasonId:n},"UniqueTournamentEventList"):(0,s.jsx)(sv,{entity:a.wNW.UniqueTournament,id:t.id})})})}let sb=Y()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]}});function sw(e){let{id:t}=e;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.Media,children:(0,s.jsx)(G.BU,{children:(0,s.jsx)(sb,{uniqueTournamentId:t,hideTitle:!0})})})}let sT=Y()(()=>Promise.resolve().then(n.bind(n,78144)),{loadableGenerated:{webpack:()=>[78144]}});function sC(e){let{id:t,seasonId:n}=e;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.PowerRankings,children:(0,s.jsx)(G.BU,{children:(0,s.jsx)(sT,{uniqueTournamentId:t,seasonId:n})})})}let sS=Y()(()=>Promise.resolve().then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]}});function sk(e){let{uniqueTournament:t,seasonId:n,seo:a,lastSeasonName:i,info:r,currentSeason:l}=e,o=(0,eg.b)(t.id,"standings");return(0,s.jsxs)(ej.tU.Panel,{tabKey:H.H.Standings,children:[o&&(0,s.jsx)(su.O,{entityId:t.id,branding:o,bannerText:o.standingsText,location:"league_standings"}),(0,s.jsxs)(G.BU,{children:[(0,s.jsx)(sS,{uniqueTournament:t,seasonId:n,currentSeason:l,isNarrowLayout:!0}),(0,s.jsx)(en.pk,{utIds:[t.id]}),(0,s.jsx)(e8,{info:r,seo:a,details:t,season:l,lastSeason:i})]})]})}var sI=n(63942);let s_=Y()(()=>n.e(6344).then(n.bind(n,86344)),{loadableGenerated:{webpack:()=>[86344]}});function sA(e){let{uniqueTournament:t,seasonId:n}=e,i=(0,S.useContext)(I.Ws)===a.QCR.Tennis;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.TopPlayers,children:i?(0,s.jsx)(sI.default,{uniqueTournamentId:t.id,seasonId:n}):(0,s.jsx)(s_,{uTournamentId:t.id,seasonId:n})})}let sz=Y()(()=>n.e(4225).then(n.bind(n,54225)),{loadableGenerated:{webpack:()=>[54225]}});function sR(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.TopStats,children:(0,s.jsx)(sz,{uniqueTournamentId:t.id,seasonId:n})})}let sM=Y()(()=>Promise.resolve().then(n.bind(n,63942)),{loadableGenerated:{webpack:()=>[63942]}});function sP(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(ej.tU.Panel,{tabKey:H.H.TopTeams,children:(0,s.jsx)(sM,{uniqueTournamentId:t.id,seasonId:n})})}var sH=n(6354);function sE(e){var t;let{uniqueTournament:n,seasons:i,activeSeasonId:r,setActiveSeasonId:l=O(),info:o,seo:d,activeTab:u,setActiveTab:c,hasStandingsData:m}=e,p=n.category.sport.slug,h=p===a.QCR.Tennis,x=i[0],g=i[1]?i[1].name:"",{initialStandings:j}=(0,S.useContext)(sH.O),{data:v}=(0,tn.Ay)(r&&sn.includes(p)?a.V3t.seasonTypes(n.id,r,"player"):null),{hasKnockoutTab:y,hasTopPlayersTab:f,hasTopTeamsTab:b,hasMediaTab:w,hasPowerRankings:T}=(0,L.A)({hasKnockoutTab:{route:a.V3t.cupTrees(n.id,r),skipCheck:!r},hasTopPlayersTab:{route:a.V3t.seasonTypes(n.id,r,h?"team":"player"),skipCheck:!r||!(0,eo.w)(p,!0)},hasTopTeamsTab:{route:a.V3t.seasonTypes(n.id,r,"team"),skipCheck:h||!r||!ss.includes(p)},hasMediaTab:{route:a.V3t.media(n.id)},hasPowerRankings:{route:a.V3t.powerRankingRounds(n.id,r)}},[r]),{hasTopStatsTab:C}=(0,L.A)({hasTopStatsTab:{route:a.V3t.topPlayersPerGame(n.id,r,a.ypd.All,(null==v?void 0:v.types[0])||a.Vw_.overall),skipCheck:!r||!sn.includes(p)||!(null==v||null==(t=v.types)?void 0:t[0])}},[v,r]),k=!!(null==j?void 0:j.length)||m,I=[{tabKey:H.H.Standings,item:"app.standings",isHidden:!k},{tabKey:H.H.Details,item:"details"},{tabKey:H.H.Matches,item:"matches",values:{sport:(0,tU.ap)(p)}},{tabKey:H.H.Knockout,item:"knockout",isHidden:!y},{tabKey:H.H.TopPlayers,item:"top_players",isHidden:!f},{tabKey:H.H.TopStats,item:"tournament.topStatsTitle",isHidden:!C},{tabKey:H.H.TopTeams,item:"tournament.topTeams",isHidden:!b},{tabKey:H.H.Media,item:"media",isHidden:!w},{tabKey:H.H.PowerRankings,item:"Power Rankings",isHidden:!T}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tw,{uniqueTournament:n,seasons:i,seasonId:r,onSeasonChange:l}),(0,s.jsxs)(sd.A,{id:n.id,location:sd.m.UniqueTournamentPage,seasonId:r,initialTabKey:u,customControls:[u,c],tabs:I,children:[k&&(0,s.jsx)(sk,{uniqueTournament:n,seasonId:r,seo:d,lastSeasonName:g,currentSeason:x,info:o}),(0,s.jsx)(sg,{uniqueTournament:n,seasonId:r,currentSeason:x,lastSeasonName:g,info:o,seo:d,onPowerRankingsClick:()=>c(H.H.PowerRankings),showAbout:!k}),(0,s.jsx)(sf,{uniqueTournament:n,seasonId:r}),y&&(0,s.jsx)(sj.A,{uniqueTournament:n,seasonId:r,sport:p}),f&&(0,s.jsx)(sA,{uniqueTournament:n,seasonId:r}),C&&(0,s.jsx)(sR,{uniqueTournament:n,seasonId:r}),b&&(0,s.jsx)(sP,{uniqueTournament:n,seasonId:r}),w&&(0,s.jsx)(sw,{id:n.id}),T&&(0,s.jsx)(sC,{id:n.id,seasonId:r})]}),(0,s.jsx)(U.i,{id:"tournament.MOBILE_BOTTOM",mb:"sm"})]})}let sL={"davis-cup":"headerTitle.davis",challenger:"headerTitle.challenger",atp:"headerTitle.tennis.v1",wta:"headerTitle.tennis.v1","itf-men":"headerTitle.tennis.v1","itf-women":"headerTitle.tennis.v1"},sq={1858:{id:"headerTitle.tt.bundesliga"},2122:{id:"headerTitle.tt.cl",values:{gender:"M"}},9500:{id:"headerTitle.tt.cl",values:{gender:"F"}},11457:{id:"headerTitle.tt.ec",values:{gender:"M",type:"D"}},11458:{id:"headerTitle.tt.ec",values:{gender:"F",type:"D"}},11459:{id:"headerTitle.tt.ec",values:{gender:"X",type:"D"}},11455:{id:"headerTitle.tt.ec",values:{gender:"M",type:"S"}},11456:{id:"headerTitle.tt.ec",values:{gender:"F",type:"S"}},9550:{id:"headerTitle.tt.ettu",values:{gender:"M"}},9534:{id:"headerTitle.tt.ettu",values:{gender:"F"}},564:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:"M",type:"S"}},565:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:"F",type:"S"}},1121:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:"M",type:"T"}},1123:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:"F",type:"T"}},11579:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:"M",type:"S"}},11586:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:"F",type:"S"}},11587:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:"X",type:"D"}},11580:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:"M",type:"D"}},11585:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:"F",type:"D"}},1966:{id:"headerTitle.tt.wc",values:{gender:"M"}},1964:{id:"headerTitle.tt.wc",values:{gender:"F"}},11604:{id:"headerTitle.tt.junior.wc",values:{gender:"M",type:"S"}},10698:{id:"headerTitle.tt.junior.wc",values:{gender:"F",type:"S"}},10697:{id:"headerTitle.tt.junior.wc",values:{gender:"X",type:"D"}},10699:{id:"headerTitle.tt.junior.wc",values:{gender:"M",type:"D"}},10700:{id:"headerTitle.tt.junior.wc",values:{gender:"F",type:"D"}},15004:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:"M"}},15007:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:"F"}},15005:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:"M"}},15009:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:"F"}},15001:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:"M"}},15068:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:"F"}}};function sF(e){let{uniqueTournament:t,year:n}=e,{meta:i,seoContent:r}=(0,S.useContext)(u.xV),l=(0,c.A)(),o=(0,tc.N)(t);if(null==r?void 0:r.heading)return(0,s.jsx)(s.Fragment,{children:r.heading});if(i&&i.h1)return(0,s.jsx)(s.Fragment,{children:i.h1});if(1===t.id&&n)return(0,s.jsx)(ev.A,{id:"headerTitle.ut.euro",values:{year:n}});if(16===t.id)return(0,s.jsx)(ev.A,{id:"headerTitle.ut.worldCup"});let d=t.category.sport.slug;if(d===a.QCR.Tennis){let e=t.category.slug,n={categoryName:"itf-men"===e||"itf-women"===e?"ITF":t.category.name,tournamentName:t.name};if(0===n.tournamentName.indexOf(n.categoryName)&&(n.categoryName=""),2361===t.id||2600===t.id)return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:"headerTitle.tennis.v2"},n).trim()});if(sL[e])return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:sL[e]},n).trim()})}return d===a.QCR.TableTennis&&sq[t.id]?(0,s.jsx)(ev.A,{id:sq[t.id].id,values:sq[t.id].values}):(0,s.jsx)(ev.A,{id:"headerTitle.standings",values:{item:o}})}function sN(e){var t,n;let{uniqueTournament:i,seasons:r,initialStandings:l,initialHasHomeAway:o}=e,d=!!(null==l?void 0:l.length),u=i.category.sport.slug,[c,m]=(0,S.useState)(d?H.H.Standings:H.H.Details),p=(0,S.useMemo)(()=>{var e;return{id:null==(e=r[0])?void 0:e.id,tab:c}},[null==(t=r[0])?void 0:t.id]),[h,x]=(0,q.Ay)({routeKey:"uniqueTournament",params:{sport:u,category:i.category.slug,tournament:i.slug,id:i.id}},p),g=null==h?void 0:h.id,v=r.find(e=>e.id===g),y=e=>x("id",null==e?void 0:e.toString()),{hasStandingsData:f}=(0,L.A)({hasStandingsData:{route:a.V3t.standings(i.id,g),skipCheck:!g}},[g]);return(0,S.useEffect)(()=>{void 0!==f&&m(f?H.H.Standings:H.H.Details)},[f]),(0,S.useEffect)(()=>{if(!r.find(e=>e.id===Number(g))){var e;y(null==(e=r[0])?void 0:e.id)}},[i.id]),(0,S.useEffect)(()=>{r.length>0&&""===window.location.hash&&y(r[0].id)},[]),(0,s.jsx)(_.Ay,{children:(0,s.jsx)(sH.O.Provider,{value:{uniqueTournamentId:i.id,uniqueTournamentName:i.name,seasonId:null==v?void 0:v.id,editor:null==v?void 0:v.editor,initialStandings:l,initialHasHomeAway:o},children:(0,s.jsx)(R.MC.Provider,{value:{isShort:a.HwS.includes(u),location:M.y.MatchesSection},children:(0,s.jsxs)(I.Ws.Provider,{value:u,children:[(0,s.jsx)(C.az,{bg:{mdDown:"surface.s1"},children:(0,s.jsxs)(k.B,{children:[(0,s.jsx)(k.B.Item,{children:(0,s.jsx)(j.di,{translatedParams:{sport:u},children:(0,s.jsx)(E.o,{sportSlug:u})})}),(0,s.jsx)(k.B.Item,{children:(0,s.jsx)(j.Z6,{category:i.category,children:(0,s.jsx)(z.m,{...i.category,uniqueTournament:i})})}),(0,s.jsx)(k.B.Title,{children:(0,s.jsx)(sF,{uniqueTournament:i,year:null==(n=r[0])?void 0:n.year})})]})}),(0,s.jsx)(A.$B,{children:(0,s.jsx)(sE,{...e,activeSeasonId:g?Number(g):void 0,setActiveSeasonId:y,activeTab:(null==h?void 0:h.tab)||c,setActiveTab:e=>x("tab",e),hasStandingsData:f})}),(0,s.jsx)(A.h6,{children:(0,s.jsx)(so,{...e,activeSeasonId:g?Number(g):void 0,setActiveSeasonId:y})}),(0,s.jsx)(P.A,{entity:a.bq7.MutedTournaments,entityGroup:"tournament",id:i.id,entityTournamentId:i.id})]})})})})}var sD=n(71937),sO=n(25862),sQ=n(65097);let sY=[a.QCR.Football,a.QCR.Tennis],sG={2122:{competitionName:"Champions League",gender:"M",type:"none"},9500:{competitionName:"Champions League",gender:"F",type:"none"},11457:{competitionName:"European Championship",gender:"M",type:"D"},11458:{competitionName:"European Championship",gender:"F",type:"D"},11459:{competitionName:"European Championship",gender:"x",type:"D"},11455:{competitionName:"European Championship",gender:"M",type:"S"},11456:{competitionName:"European Championship",gender:"F",type:"S"},9550:{competitionName:"ETTU Cup",gender:"M",type:"none"},9534:{competitionName:"ETTU Cup",gender:"F",type:"none"},564:{competitionName:"Olympic games",gender:"m",type:"S"},565:{competitionName:"Olympic games",gender:"f",type:"S"},1121:{competitionName:"Olympic games",gender:"m",type:"T"},1123:{competitionName:"Olympic games",gender:"f",type:"T"},11579:{competitionName:"World Championships",gender:"m",type:"S"},11586:{competitionName:"World Championships",gender:"f",type:"S"},11587:{competitionName:"World Championships",gender:"x",type:"D"},11580:{competitionName:"World Championships",gender:"m",type:"D"},11585:{competitionName:"World Championships",gender:"f",type:"D"},1966:{competitionName:"World Cup",gender:"m",type:"none"},1964:{competitionName:"World Cup",gender:"f",type:"none"},11604:{competitionName:"World Junior Championship",gender:"none",type:"none"},10698:{competitionName:"World Junior Championship",gender:"none",type:"none"},10697:{competitionName:"World Junior Championship",gender:"none",type:"none"},10699:{competitionName:"World Junior Championship",gender:"none",type:"none"},10700:{competitionName:"World Junior Championship",gender:"none",type:"none"},15004:{competitionName:"Setka Cup",gender:"m",type:"none"},15007:{competitionName:"Setka Cup",gender:"f",type:"none"},15005:{competitionName:"TT Cup",gender:"m",type:"none"},15009:{competitionName:"TT Cup",gender:"f",type:"none"},15001:{competitionName:"Ukraine Win Cup",gender:"m",type:"none"},15068:{competitionName:"Ukraine Win Cup",gender:"f",type:"none"}},sW=[a.QCR.Football,a.QCR.Basketball,a.QCR.Cricket,a.QCR.Darts,a.QCR.IceHockey,a.QCR.Handball,a.QCR.Volleyball,a.QCR.Rugby,a.QCR.AmericanFootball,a.QCR.Baseball];function sB(e){var t;if("error"in e)return(0,s.jsx)(sQ.default,{statusCode:404});let{uniqueTournament:n,seasons:a,seo:i,info:c,params:m,meta:p,seoContent:h,locale:g,standings:j,hasHomeAwayStandings:v}=e;if(!n)return null;let y=n.category.sport.slug,b=1===n.id,w=16===n.id,T=b&&a.length?"Euro ".concat(a[0].year):n.name,C=b&&a.length?"European Championship ".concat(a[0].year):n.name,S=sG[n.id]||void 0,k=sY.includes(y)||!!h||S||f(n.id),I=(null==(t=n.category.alpha2)?void 0:t.toLowerCase())||"",_=!p&&(a.every(e=>e.editor)?!(0,l.N)(I,g):!k||(0,o.v)(y,g));return(0,s.jsxs)(u.an,{value:{meta:p,seoContent:h},children:[(0,s.jsxs)(r(),{children:[_&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(d.z.getTranslatedCanonicalRoute(g,"uniqueTournament",m).route)}),(0,s.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/league/".concat(m.id)})]}),(0,s.jsx)(x,{uniqueTournament:n}),(0,s.jsx)(u.Ay,{metaKey:S?"standings.tabletennis":"standings",titleKey:w?"ut.worldCup":b?"ut.euro":void 0,descriptionKey:w?"ut.worldCup":b?"ut.euro":void 0,values:{item:T,fullItem:C,...S||{}}}),(0,s.jsx)(sN,{uniqueTournament:n,seasons:a,seo:i,info:c,initialStandings:j,initialHasHomeAway:v})]})}sB.getInitialProps=sD.A.getInitialPageProps(e=>async t=>{let{query:n,req:s,res:i,...r}=t,l=s?s._originalUrl:r.asPath,o=d.z.getCurrentLocale(l),u=s&&s.params?s.params:n,c=Number(u.id),m=d.z.getSportKey(u.sport,o);try{let t,n,s,[r,l,p,h,x]=await Promise.allSettled([a.jFR.fetchUniqueTournamentDetails(c),a.jFR.fetchUniqueTournamentSeasons(c),a.jFR.fetchUniqueTournamentSeo(c),a.sdF.getEntityMeta("uniquetournament",c,o),sW.includes(m)?a.sdF.getSeoContent(a.wNW.UniqueTournament,c,o):Promise.reject()]);if("rejected"===r.status)throw Error("Unique tournament does not exist");let g=r.value.uniqueTournament,j="fulfilled"===l.status?l.value.seasons:[];i&&g.category.sport.slug===a.QCR.MMA&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"mma.organisation",{organisationId:g.id,slug:g.slug,sport:g.category.sport.slug}).route}),i.end()),i&&(g.slug!==u.tournament||g.category.slug!==u.category)&&(i.writeHead(301,{Location:d.z.getTranslatedRoute(o,"uniqueTournament",{...u,category:g.category.slug,tournament:g.slug}).route}),i.end());let v=j.length?j[0].id:void 0;if(v){let[e,i,r]=await Promise.allSettled([a.jFR.fetchUniqueTournamentInfo(c,v),a.jFR.fetchStandings(c,v),(0,a.m_X)(a.V3t.standings(c,v,a.lpv.Home))]);t="fulfilled"===e.status?e.value.info:void 0,n="fulfilled"===i.status?i.value.standings:void 0,s="fulfilled"===r.status&&r.value}let y="fulfilled"===p.status?p.value.meta:void 0,f="fulfilled"===h.status?h.value.entityMeta:void 0,b="fulfilled"===x.status?x.value.content:void 0;return e.dispatch((0,sO.Vy)(g.category.sport.slug)),{uniqueTournament:g,seasons:j,seo:y,info:t,params:u,meta:f,seoContent:b,locale:o,standings:n,hasHomeAwayStandings:s}}catch(e){return i&&(i.statusCode=404),{error:e}}})},90436:(e,t,n)=>{var s=n(88165),a=n(48877),i=n(98888),r=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?a(e,t,n):void 0===t)?1:l(i(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var d=0,u=0,c=Array(r(o/t));d{"use strict";n.d(t,{A:()=>i});var s=n(21377),a=n(45860);let i=function(e){let{uniqueTournamentId:t,seasonId:n,position:i=s.ypd.All,type:r=s.Vw_.overall}=e,l=t&&n?s.V3t.topPlayersPerGame(t,n,i,r):null,{data:o,error:d}=(0,a.Ay)(l);return{topPlayersPerGame:o,isError:d}}},95868:(e,t,n)=>{"use strict";n.d(t,{MB:()=>l,Hw:()=>o,hT:()=>u,R5:()=>d});var s=n(76410),a=n(71484);let i="___sofa-wsc___",r=e=>{let t=new RegExp("".concat(i,"(.*?)").concat(i)),n=e.match(t);return n?n[1]:""},l=e=>{let{type:t,location:n,tournamentId:s,roundId:a,eventId:r,screen:l}=e;return"".concat(i).concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(a,"--").concat(r).concat(i)},o=e=>{let[t,n,s,a,i,l]=r(e||"").split("--");return{screen:t,type:n,location:s,tournamentId:Number(a),roundId:"null"===i||"undefined"===i?null:Number(i),eventId:"null"===l||"undefined"===l?null:Number(l)}},d=e=>{let{screen:t,type:n,location:s,tournamentId:i,roundId:r,eventId:l}=o(e),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(n)&&["mobile","desktop"].includes(t)&&Object.values(a.D).includes(s)){if(isNaN(Number(i)));else if(r&&isNaN(Number(r)));else if(!(l&&isNaN(Number(l))))return!0}throw Error(d)},u=e=>{var t,n;let a=null==(t=e.detail)?void 0:t.eventData,i=(null==a?void 0:a.widget_id)||(null==a?void 0:a.origin_widget_id),r=null==(n=e.detail)?void 0:n.eventType;if(r&&i){let{eventId:e,tournamentId:t,location:n}=o(i);switch(r){case"widget_click":(0,s.kA)({id:e||t,location:n});break;case"story_exit":(0,s.G9)({id:e||t,location:n,timeOnScreen:a.content_duration_viewed})}}}},97047:(e,t,n)=>{"use strict";n.d(t,{WG:()=>d,YL:()=>c,_z:()=>u,lE:()=>a,o_:()=>i});let s={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},a=e=>e&&(s[e]||e),i=e=>{if(e)return"M"===e?"Male":"F"===e?"Female":void 0},r={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"}},o={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"}},d=(e,t)=>{var n;return null==(n=r[t])?void 0:n[e]},u=(e,t)=>{var n;return null==(n=l[t])?void 0:n[e]},c=(e,t)=>{var n;return null==(n=o[t])?void 0:n[e]}},97918:(e,t,n)=>{"use strict";n.d(t,{F:()=>s.A});var s=n(73404)},98423:(e,t,n)=>{"use strict";n.d(t,{e:()=>a.e,p:()=>s.p});var s=n(91603),a=n(33480)},98888:(e,t,n)=>{var s=n(11061);e.exports=function(e){var t=s(e),n=t%1;return t==t?n?t-n:t:0}},99397:(e,t,n)=>{"use strict";n.d(t,{G:()=>a.A,t:()=>s.t});var s=n(91407),a=n(12605)}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,395,4632,3170,6618,2111,756,3797,2062,5938,1105,3338,3752,364,2905,9347,1254,574,3231,9623,9264,7717,4985,323,405,6298,636,6593,8792],()=>t(28167)),_N_E=e.O()}]);