!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]="c78ef0c2-fae7-46d1-9a16-af362aeccca7",e._sentryDebugIdIdentifier="sentry-dbid-c78ef0c2-fae7-46d1-9a16-af362aeccca7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8702,9097],{3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var s=n(64082),a=n(6029),l=n(99064),i=n(43451);function r(e){var{height:t=800,width:n="100%",rowHeight:r=45,wrapperStyle:o={},rows:d,animate:u=!1,rowGap:c=8,uniqueKey:m}=e,x=(0,s.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,a.jsx)(l.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},x,{style:o},{children:(0,a.jsx)(i.D,Object.assign({animate:u,width:n,height:d&&r?d*(r+c):t,uniqueKey:m},{children:(0,a.jsx)(a.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,a.jsx)("rect",{x:0,y:t*(r+c),width:"100%",height:r},t)):(0,a.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},4740:(e,t,n)=>{"use strict";n.d(t,{N:()=>m});var s=n(6029),a=n(94446),l=n(89875),i=n(76356),r=n(65078),o=n(16620),d=n(48886),u=n(82707),c=n(24159);let m=e=>{let{playerStatsOnEvent:t,index:n}=e,{event:m,player:x}=t,{openEventPlayerStatistics:h}=(0,o.d)(),[p,g]=(0,r.jr)(m,"homeScore","awayScore",m),[j,v]=(0,r.jr)(m,"homeTeam","awayTeam",m);return(0,s.jsx)(u.tj,{event:m,onClick:e=>{e.preventDefault(),h({event:m,player:x},d._.TopStats)},children:(0,s.jsxs)(i.so,{h:"5xl",p:"lg",pl:n?"sm":"lg",align:"center",_hover:{background:"surface.s2"},children:[n&&(0,s.jsx)(l.EY,{w:"lg",mr:"sm",textStyle:"body.small",textAlign:"center",children:n}),(0,s.jsx)(a.t,{id:x.id,name:x.name,size:40,mr:"lg"}),(0,s.jsxs)(i.az,{flexGrow:"1",flexShrink:"1",flexBasis:"[auto]",children:[(0,s.jsx)(l.EY,{display:"block",children:(0,s.jsx)(c.c,{entity:x})}),(0,s.jsxs)(i.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)(l.EY,{mx:"sm",display:"block",textStyle:"display.micro",lineHeight:"1",children:[p.display," - ",g.display]}),(0,s.jsx)(a.p,{size:16,id:v.id,name:v.name})]})]}),(0,s.jsx)(i.az,{alignSelf:"stretch",my:"auto",children:(0,s.jsx)(l.EY,{children:e.children})})]})})}},4866:(e,t,n)=>{"use strict";n.d(t,{e:()=>a.e,w:()=>s.w});var s=n(53192),a=n(33480)},5961:(e,t,n)=>{"use strict";n.d(t,{IJ:()=>x});let s=(e,t)=>t?{0:e?"var(--graphics-terrain-footballLineups)":"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"}:{0:"#f8d496",.05:"#fee644",.25:"#ff9000",.4:"#fc6800",.6:"#f00800",.75:"#cc0600",.85:"#b00400",.99:"#940000",1:"#780000"},a=e=>e?{MAX_POINT_VALUE:6,WIDTH:160,HEIGHT:100}:{MAX_POINT_VALUE:9,WIDTH:500,HEIGHT:363};function l(e,t){let n=[];for(let s=0;s2&&void 0!==arguments[2]?arguments[2]:10,s=[],a=1/n;for(let n=0;n<=e;n+=a)s.push(Math.exp(-n*n/(2*t*t)));return s},r=(e,t,n,s)=>Math.sqrt(Math.pow(n-e,2)+Math.pow(s-t,2)),o=(e,t,n)=>{let{width:s,height:a,influenceRadius:i,precisionLevel:o=10}=n,d=l(s,a);for(let n=0;n{let{height:s,width:a,gradientScaleFactor:l,gradientRange:i}=n,r=document.createElement("canvas");r.height=s,r.width=a;let o=r.getContext("2d");if(!o)throw Error("No heatmap canvas context found");let d=o.getImageData(0,0,a,s),u=d.data;for(let n=0;n{let s=Math.round(t),a=Math.round(n),l=Math.round(e);return ls?l:s:a},c=(e,t)=>{let{width:n,height:s,isFlipped:a=!1,pointMaximum:i=100,widthScaleFactor:r=1.6,heightScaleFactor:o=1,pointValue:d=1}=t,c=l(n,s);return e.forEach(e=>{let t=a?i-e.x:e.x,l=a?e.y:i-e.y,m=u(t*r,0,n-1),x=u(l*o,0,s-1);c[m][x]+=d*(e.count||1)}),c},m=(e,t,n,r,u)=>{let{containerId:m,isAway:x=!1,width:h,height:p,numberOfMatches:g,shootMapType:j=1,precisionLevel:v=10,isTransparentBackground:y}=n,{HEIGHT:f,WIDTH:b,MAX_POINT_VALUE:T}=a(e),w=document.getElementById(m);if(!w)throw Error("No DOM container element for HeatMap provided");let C=e?function(e){let t=14;return e&&e>1&&(t=Math.round((1-Math.pow(e/38,.28))*10+4)),t}(g||1):function(e){let t=20;return e>82?Math.round((1-Math.pow(e/110,.1))*8+12):Math.round((1-Math.pow(e/82,.1))*8+12)}(g||1),S=e?c(t,{isFlipped:x,width:b,height:f}):function(e,t,n,s){let a=l(n+1,s+1);return e.forEach(e=>{let{x:n,y:s,made:l,missed:i}=e;switch(t){case 1:a[n- -250][s- -40]+=l+i;break;case 2:a[n- -250][s- -40]+=l;break;default:a[n- -250][s- -40]+=i}}),a}(t,j,b,f);!e&&g&&g>5&&function(e,t,n,s){let a,l,i,r,o,d;for(r=0;r<=100;r++){for(a=0,l=0,i=0,o=2;o<=10;o++)++i,a+=s[r][80-o],l+=s[r][80+o];for(d=0;d<=2;d++)s[r][e+d]=(a+l)/(2*i),s[r][e-d]=(a+l)/(2*i)}}(80,2,0,S);let I=function(e,t,n,a,l){let i=document.createElement("canvas");i.width=1,i.height=1e3;let r=i.getContext("2d");if(!r)throw Error("No color gradient context for heatmap found");let o=r.createLinearGradient(0,0,1,1e3),d=s(l,n);return Object.keys(d).forEach(e=>{let n=d[e],s=Number(e);a&&s<.2?o.addColorStop(s,t.setAlpha(n,s+.2)):o.addColorStop(s,t.setAlpha(n,1))}),r.fillStyle=o,r.fillRect(0,0,1,e),r.getImageData(0,0,1,e).data}(1e3,r,e,y,u),_=d(o(S,i(C,C/3,v),{width:b,height:f,influenceRadius:C,precisionLevel:v}),I,{height:f,width:b,gradientScaleFactor:1e3/T,gradientRange:1e3}),A=document.createElement("canvas");A.height=p,A.width=h;let k=A.getContext("2d");if(!k)throw Error("Heatmap canvas context not found");k.drawImage(_,0,0,h,p),w.innerHTML="",w.appendChild(A)};function x(e,t,n,s){try{m(!0,e,t,n,s)}catch(e){console.error("In render football heatmap",e)}}},6244:(e,t,n)=>{"use strict";n.d(t,{l:()=>u,W:()=>c});var s=n(6029),a=n(21377),l=n(89875),i=n(62042),r=n(76356),o=n(67628);let d=(0,i.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[a.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[a.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[a.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[a.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[a.QWe.Grass]:{bg:"tennis.terrain.grass"},[a.QWe.Clay]:{bg:"tennis.terrain.clay"},[a.QWe.RedClay]:{bg:"tennis.terrain.clay"},[a.QWe.SyntheticOutdoor]:{bg:"tennis.terrain.default"},default:{bg:"tennis.terrain.default"}}}}),u=(0,r.I4)("div",d),c=e=>{let{groundType:t}=e;return t?(0,s.jsx)(u,{groundType:t,children:(0,s.jsx)(l.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,s.jsx)(o.n,{id:t})})}):null}},11506:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Q});var s=n(6029),a=n(21377),l=n(4967),i=n(55729),r=n(90248),o=n(45860),d=n(75751),u=n(6354),c=n(79528),m=n(19944),x=n(83260),h=n(69435),p=n(86679),g=n(83318),j=n(97150),v=n(42078),y=n(77235),f=n(59721),b=n(76356),T=n(99064),w=n(68543),C=n(3539),S=n(50433);function I(e){let{standings:t,hasHomeAwayStandings:n}=(0,i.useContext)(h.P),l=t.find(t=>t.id===e.tableId);return l?(0,s.jsx)(C.d,{...e,children:(0,s.jsx)(w.A,{children:n?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(T.tU.Panel,{tabKey:"all",children:(0,s.jsx)(S.G,{tableName:l.name,...e,type:a.lpv.Total})}),(0,s.jsx)(T.tU.Panel,{tabKey:"home",children:(0,s.jsx)(S.G,{tableName:l.name,...e,type:a.lpv.Home,loaderHeight:l.rows.length})}),(0,s.jsx)(T.tU.Panel,{tabKey:"away",children:(0,s.jsx)(S.G,{tableName:l.name,...e,type:a.lpv.Away,loaderHeight:l.rows.length})})]}):(0,s.jsx)(S.G,{tableName:l.name,type:a.lpv.Total,...e})})}):null}var _=n(89875),A=n(65789),k=n(11033),z=n(65457),M=n(82287),R=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"},Y={1:"AFC",2:"NFC"};function P(e,t){return t.findIndex(e=>["AMERICAN","NATIONAL"].includes(e.name))>-1?E[e]:Y[e]}var H=n(67149);let N=e=>{let{tab:t}=e,{standings:n,seasonId:l,isStandingsTableEmpty:r}=(0,i.useContext)(h.P),o=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 l?(0,s.jsx)(s.Fragment,{children:o.map((e,t)=>{let[n,l]=(0,H.Yp)(e.rows);return(0,s.jsx)(A.Zp,{children:(0,s.jsxs)(b.so,{direction:"column",py:"xs",children:[(0,s.jsxs)(b.so,{align:"center",px:"sm",pt:"sm",columnGap:"md",children:[(0,s.jsx)(f.e,{id:g.nJ,name:e.name,w:40,h:40}),(0,s.jsx)(_.EY,{textStyle:"display.large",children:e.name})]}),(0,s.jsxs)(M.C.Provider,{value:{colors:n,texts:l},children:[(0,s.jsx)(S.G,{tableName:e.name,type:a.lpv.Total}),!r&&(0,s.jsx)(k.K,{rows:e.rows,descriptions:e.descriptions,tieBreakingRule:e.tieBreakingRule,defaultOpenedFirstRules:0===t})]})]})},e.id)})}):null},F=()=>{let{standings:e,displayType:t,setDisplayType:n}=(0,i.useContext)(h.P),[a,l]=(0,i.useState)(R.AFC);return(0,s.jsxs)(b.so,{direction:"column",gap:"sm",children:[(0,s.jsx)(A.Zp,{children:(0,s.jsxs)(b.so,{p:"sm",justify:"space-between",children:[(0,s.jsx)("div",{children:(0,s.jsxs)(T.tU,{variant:"secondary",value:a,onChange:e=>l(e),children:[(0,s.jsx)(T.tU.Tab,{children:P(R.AFC,e)}),(0,s.jsx)(T.tU.Tab,{children:P(R.NFC,e)}),(0,s.jsx)(T.tU.Tab,{children:(0,s.jsx)(r.A,{id:"standings.overall"})})]})}),(0,s.jsx)(z.A,{displayType:t,setDisplayType:n,items:["short","form"],isNarrowLayout:!0})]})}),(0,s.jsx)(N,{tab:a})]})};var q=n(2438);function D(e){let{branding:t}=e,{isNarrowLayout:n,uniqueTournamentId:a,standings:l,seasonId:o}=(0,i.useContext)(h.P),[d,u]=(0,i.useState)(l[0]);if((0,i.useEffect)(()=>{u(l[0])},[l,o]),!d)return null;if(a===g.nJ&&n)return(0,s.jsx)(F,{});let c=(0,s.jsx)(b.az,{p:"sm",children:(0,s.jsx)(T.ms,{items:l,initialSelectedItem:d,selectedItem:d,renderItem:(e,t)=>{if(t&&e){var n,a;return(0,s.jsxs)(b.so,{align:"center",children:[(0,s.jsx)(b.az,{children:(0,s.jsx)(f.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)(b.az,{children:e.name})]})}return(0,s.jsx)(q.v,{table:e})},onSelectedItemChange:e=>{let{selectedItem:t}=e;null!==t&&u(t)}})});return(0,s.jsx)(I,{tableId:d.id,subheader:c,hasDropdown:!0,title:n?void 0:(0,s.jsx)(r.A,{id:"tournament.standings"}),branding:t})}var L=n(7263),O=n(31215);function W(e){let{sport:t,branding:n}=e,{uniqueTournamentId:l,tournamentId:r,seasonId:d,standings:u}=(0,i.useContext)(h.P),{data:c}=(0,o.Ay)(l&&d?[a.V3t.seasonRounds(l,d),"HEAD"]:null,{fetcher:L.n}),{data:m}=(0,o.Ay)(l&&d?[a.V3t.seasonGroups(l,d),"HEAD"]:null,{fetcher:L.n});return c&&m?(0,s.jsx)(b.so,{direction:"column",gap:{base:"sm",md:"md"},children:u.map(e=>(0,s.jsx)(I,{tableId:e.id,hasRounds:c&&m,subheader:(0,s.jsx)(b.az,{pt:"md",px:"sm",pb:"xs",children:(0,s.jsx)(O.A,{tournamentId:r,uniqueTournamentId:l,tournamentName:(0,s.jsx)(q.v,{table:e})})}),branding:n,sport:t},e.id))}):(0,s.jsx)(D,{branding:n})}function Q(e){let{uniqueTournament:t,seasonId:n,selectedSeason:f,isNarrowLayout:b}=e,{initialStandings:T}=(0,i.useContext)(u.O),[w,C]=(0,x.A)(g.s4,"short"),[S,_]=(0,i.useState)(),{data:A,error:k}=(0,o.Ay)(a.V3t.standings(t.id,n,a.lpv.Total),{keepPreviousData:!0}),z=(null==A?void 0:A.standings)||T||[],{hasGroups:M,hasDropdown:R,showHorizontalStandings:E,hasHomeAwayStandings:Y}=function(e){let{standings:t,uniqueTournamentId:n,seasonId:s}=e,{initialHasHomeAway:l}=(0,i.useContext)(u.O),{hasHomeAway:r}=(0,p.A)({hasHomeAway:{route:a.V3t.standings(n,s,a.lpv.Home)}},[n,s]),o=n===a.G6l.Euro||n===a.G6l.CopaAmerica||n===a.G6l.ClubWorldCup,[d,c]=(0,i.useMemo)(()=>{let e,n=!1;for(let s=0,a=t.length;s1;return[n,s]},[t]);return{hasDropdown:c,hasGroups:d,showHorizontalStandings:o,hasHomeAwayStandings:null!=r?r:l}}({uniqueTournamentId:t.id,seasonId:n,standings:z}),{events:P}=(0,m.Y)(t.id,(0,l.UG)(new Date),E),H=(0,c.b)(t.id,"standings");return k?null:(null==z?void 0:z.length)&&void 0!==Y?(0,s.jsx)(d.t,{tag:"StandingsContainer",children:(0,s.jsx)(h.P.Provider,{value:{isNarrowLayout:!!b,uniqueTournamentId:t.id,seasonId:n,displayType:w,setDisplayType:C,standings:z,displayTypeOptions:[...a.ur4],homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!!t.hasPerformanceGraphFeature,tournamentId:E?(0,j.h)(P):void 0,hasHomeAwayStandings:Y,selectedSeason:f,isStandingsTableEmpty:S,setIsStandingsTableEmpty:_},children:E?(0,s.jsx)(y.A,{branding:H,utId:t.id}):M?(0,s.jsx)(W,{sport:t.category.sport.slug,branding:H}):R?(0,s.jsx)(D,{branding:H}):(0,s.jsx)(I,{tableId:z[0].id,hasDropdown:R,title:b?void 0:(0,s.jsx)(r.A,{id:"tournament.standings"}),hasDefaultRightTeamInPerformanceGraph:!0,branding:H})})}):(0,s.jsx)(v.d,{noSeasonPicker:!0,isNarrowLayout:b,branding:H})}},15771:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(87827),l=n(21377),i=n(98516),r=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(r.I)[0],n){case l.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,i.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,i.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 l.QCR.Basketball:var x=d;switch(x){case"points":case"pointsAgainst":case"plusMinus":case"assists":case"rebounds":case"defensiveRebounds":case"offensiveRebounds":case"steals":case"turnovers":case"blocks":case"fastbreakPoints":return(0,i.M)(t[x]/t.matches,1);case"fieldGoalsPercentage":case"fieldGoalsPercentageAgainst":case"freeThrowsPercentage":case"threePointsPercentage":case"threePointsPercentageAgainst":return"".concat((0,i.M)(t[x],1),"%");default:return o(t[x])}case l.QCR.Handball:return["goalsScored","goalsConceded","fastbreakGoals","steals","twoMinutePenalties","goalsInPowerplay","shorthandedGoals"].includes(u=d)?(0,i.M)(t[u]/t.matches,1):["shootingPercentage"].includes(u)?(0,i.M)(t[u],1)+"%":"sevenMetersScored"===u?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):o(t[u]);case l.QCR.IceHockey:return["powerPlayPercentage","faceOffPercentage","penaltyKillPercentage"].includes(c=d)?(0,i.M)(t[c],1)+"%":"sevenMetersScored"===c?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):(0,i.M)(t[c]/t.matches,1);case l.QCR.Tennis:var h=d;switch(h){case"firstServePercentage":case"firstServePointsWonPercentage":case"secondServePercentage":case"secondServePointsWonPercentage":return(0,i.M)(t[h],1)+"%";case"avgAces":case"avgDoubleFaults":return(0,i.M)(t[h],1);case"breakPointsSavedPercentage":if(isNaN(t.opponentBreakPointsTotal)||isNaN(t.opponentBreakPointsScored))return 0;let p=t.opponentBreakPointsTotal-t.opponentBreakPointsScored;return"".concat(p,"/").concat(t.opponentBreakPointsTotal," (").concat((0,i.M)(t[h],1),"%)");case"breakPointsSavedConvertedPercentage":if(isNaN(t.breakPointsScored)||isNaN(t.breakPointsTotal))return 0;return"".concat(t.breakPointsScored,"/").concat(t.breakPointsTotal," (").concat((0,i.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,i.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:()=>r,fz:()=>o,hE:()=>d});var s=n(6029),a=n(89875),l=n(90248),i=n(55803);function r(e){let{children:t,title:n,titleValues:r,titleHidden:o}=e;return t?(0,s.jsxs)(i.E,{children:[!o&&n&&(0,s.jsx)(a.H2,{textStyle:"display.medium",mb:"md",children:(0,s.jsx)(l.A,{id:n,values:r})}),t]}):null}function o(e){let{id:t,values:n}=e,i={...n||{},bold:function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.d(t,{A:()=>o});var s=n(21377),a=n(55729),l=n(45860),i=n(62859),r=n(34209);function o(e){let{uniqueTournamentId:t,seasonId:n,division:o}=e,d=(0,a.useContext)(i.Ws),{types:u,currentType:c,setCurrentType:m,isLoading:x,isError:h}=(0,r.A)(t,n,d,"team"),p=d===s.QCR.Tennis?"mainDraw":c,g=t&&n&&!x?s.V3t.topTeams(t,n,p,o):null,{data:j,error:v}=(0,l.Ay)(g),y=null==j?void 0:j.topTeams,f=y?Object.keys(y):[],[b,T]=(0,a.useState)(""),w=y&&b&&y[b]?y[b].map(e=>({team:e.team,stats:e.statistics})):[];return(0,a.useEffect)(()=>{T("")},[t]),(0,a.useEffect)(()=>{f.length&&!b&&T(f[0])},[null==f?void 0:f.length]),{topTeams:y,stats:f,activeStat:b,setActiveStat:T,types:u,activeType:c,setActiveType:m,activeTeams:w,isError:!!v||h,isLoading:(!j||!b)&&!v}}},25635:(e,t,n)=>{"use strict";n.d(t,{d:()=>r});var s=n(64082),a=n(6029),l=n(21377),i=n(99064);function r(e){var{id:t,name:n,size:r=56,placeholder:o="/static/images/placeholders/manager.svg",style:d,className:u,grayscale:c}=e,m=(0,s.T)(e,["id","name","size","placeholder","style","className","grayscale"]);let x=m.w||m.width||r,h=m.h||m.height||r;return(0,a.jsx)(i._V,Object.assign({fallback:(0,a.jsx)(i._V,{br:"50%",style:d,w:x,h:h,src:o,alt:n}),src:t?l.ql2.image(t):"",alt:n,w:x,h:h,br:"50%",style:d,className:u,isGrayscale:c},m))}},28167:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tournament",function(){return n(32154)}])},32154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>sD});var s=n(6029),a=n(21377),l=n(95669),i=n.n(l),r=n(19643),o=n(50417),d=n(73088),u=n(52951),c=n(947),m=n(58771),x=n(26331),h=n(97047);function p(e){let{uniqueTournament:t}=e,n=(0,c.A)(),l=(0,x.A)(),r=t.category,o=r.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(l,"eventList",{sport:o.slug}).route)},{"@type":"ListItem",position:2,name:n.formatMessage({id:r.slug}),item:"".concat(a.VTF).concat(d.z.getTranslatedRoute(l,"eventList.category",{sport:o.slug,category:r.slug}).route)},{"@type":"ListItem",position:3,name:t.name}]},p={"@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(r.slug,"/").concat(t.slug,"/").concat(t.id),sameAs:(0,h._z)(t.id,l)};return(0,s.jsxs)(i(),{children:[(0,s.jsx)("script",{...(0,m.QQ)(u)}),",",(0,s.jsx)("script",{...(0,m.QQ)(p)}),","]})}var g=n(18741),j=n(82707);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")?a.YT8.Female:e.includes("Mixed")?a.YT8.Mixed:e.includes("Boys")?"B":e.includes("Girls")?"G":a.YT8.Male,T=e=>e.includes("Doubles")?"D":"S";function w(e){let t=f(e.uniqueTournament.id);if(!t)return null;let n=b(e.uniqueTournament.name),a=T(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),I=n(33752),_=n(62859),A=n(19451),k=n(39676),z=n(29129),M=n(42678),R=n(98449),E=n(53486),Y=n(8973),P=n(59684),H=n(58047),N=n(27289),F=n(86679),q=n(30479),D=n(32523),L=n(78383),O=n.n(L),W=n(71024),Q=n.n(W),G=n(65789),U=n(75751),B=n(60988),V=n(42621),K=n(49249),Z=n(70010),X=n(61090),J=n(89875),$=n(23727),ee=n(36937),et=n(65078),en=n(54075),es=n(93338);function ea(e){let{rating:t,round:n}=e,{formattedRating:a,ratingColorKey:l}=(0,en.M)(n&&t?Math.round(t):t);return(0,s.jsx)(C.ov,{style:{backgroundColor:es.S.var("colors.rating".concat(l.replace("scoreRating","")))},h:"xl",w:"xl",br:"md",children:(0,s.jsx)(J.EY,{textStyle:"table.small",color:"onColor.primary",children:a})})}let el=e=>{let{ordinal:t,event:n,rating:a}=e,l=(0,et.AR)(n);return(0,s.jsx)(_.y$.Provider,{value:l,children:(0,s.jsx)(j.tj,{event:n,children:(0,s.jsxs)(C.so,{h:"4xl",py:"[6px]",px:"lg",justify:"space-between",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(C.so,{h:"100%",align:"center",children:[(0,s.jsxs)(J.Ym,{minW:"xl",textAlign:"center",textStyle:"body.small",display:"block",children:[t,"."]}),(0,s.jsx)(C.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",mx:"sm"}),(0,s.jsx)(ee.g,{})]}),(0,s.jsxs)(C.so,{align:"center",children:[(0,s.jsx)(ee.$,{}),(0,s.jsx)(C.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",ml:"sm",mr:"md"}),(0,s.jsx)(ea,{rating:a})]})]})})})},ei=e=>{let{rankings:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)(el,{ordinal:t+1,rating:e.rating,event:e.event},"rated-event-".concat(t)))})};var er=n(59721),eo=n(90248),ed=n(54053),eu=n(52695),ec=n(45860);function em(e){let{data:t,isLoading:n}=(0,ec.Ay)(e?a.bnp.fanRatingRanking(e):null,{dedupingInterval:6e4});return{ranking:(null==t?void 0:t.ranking)||[],isLoading:n}}let ex=e=>{let{uniqueTournament:t,seasonId:n,isOpen:a,setIsOpen:l}=e,{ranking:i}=em(n);return(0,s.jsx)(ed.A,{isOpen:a,setIsOpen:l,header:(0,s.jsxs)(C.so,{p:{md:"lg"},align:"center",gap:"sm",w:{md:"[320px]"},children:[(0,s.jsx)(er.e,{id:t.id,name:t.name}),(0,s.jsxs)(C.so,{direction:"column",children:[(0,s.jsx)(J.EY,{textStyle:"display.large",children:(0,s.jsx)(eu.O,{uniqueTournament:t})}),(0,s.jsx)(J.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(eo.A,{id:"bestRatedFanMatches"})})]})]}),children:(0,s.jsx)(C.az,{w:{md:"[360px]"},maxH:{md:"[512px]"},children:(0,s.jsx)(ei,{rankings:i})})})};function eh(e){let{seasonId:t,uniqueTournament:n}=e,{ranking:a,isLoading:l}=em(t),[i,r]=(0,S.useState)(!1),{isMobile:o}=(0,J.$c)(),d=o?3:10;if(!t||!l&&!a.length||l)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)(ei,{rankings:u}):(0,s.jsx)(D.E,{uniqueKey:"all-rated-games-cl",pt:"xs",rows:d,rowHeight:44,rowGap:4}),(0,s.jsx)(ex,{seasonId:t,uniqueTournament:n,isOpen:i,setIsOpen:r}),(0,s.jsx)(G.Zp.Footer,{ctaParams:c?{messageId:"all_rated_matches",onClick:()=>r(!0),icon:$.X.Right}:void 0})]})}var ep=n(73463),eg=n(99326),ej=n(10778),ev=n(79368),ey=n(22088),ef=n(11506),eb=n(78177),eT=n(82554),ew=n(23685),eC=n(79528),eS=n(99064),eI=n(99397),e_=n(4967),eA=n(69559),ek=n(74761),ez=n(56602),eM=n(32427),eR=n(94493),eE=n(98516),eY=n(4740);let eP=(e,t)=>{switch(e){case"goalkeeperEfficiencyPercentage":return"".concat((0,eE.M)(100*t,2),"%");case"expectedGoals":case"expectedAssists":case"goalsPrevented":return(0,eE.M)(t,2);case"secondsPlayed":return(0,e_.OV)(t);default:return t}},eH=e=>{var t;let{topStatistics:n}=e,l=(0,eA.o)(),i=Object.keys(n||{}),r=i.includes(a.iLq.Rating)||!i.length?a.iLq.Rating:i[0],[o,d]=(0,S.useState)(n?r:null),[u,c]=(0,S.useState)(!1),m=n&&o&&n[o]||[],x=m.length>5,h=u?m:m.slice(0,5);return(0,S.useEffect)(()=>{d(r)},[n]),(0,S.useEffect)(()=>{n&&!o&&d(r)},[!!n]),(0,s.jsxs)(U.t,{tag:"TopStatsList",children:[(0,s.jsxs)(C.so,{px:"sm",align:"center",children:[!!i.length&&(0,s.jsx)(eS.ms,{items:i,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&d(t)},selectedItem:o,renderItem:e=>e?(0,s.jsx)(eR.w,{id:e}):e||""}),o===a.iLq.Rating&&(0,s.jsx)(C.az,{ml:"sm",children:(0,s.jsx)(ez.D,{type:ez.D.type.SpecificRatingPlayer,rating:null==(t=h[0])?void 0:t.statistic,renderImage:e=>{var t;return(0,s.jsx)(eI.t,{id:null==(t=h[0])?void 0:t.player.id,...e})}})})]}),o===a.iLq.Rating&&l===a.QCR.Football&&(0,s.jsx)(ek.$,{mx:"sm",messageId:"rating_top_stats_general",children:(0,s.jsx)(eo.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)(eY.N,{playerStatsOnEvent:e,index:t+1,children:o===a.iLq.Rating?(0,s.jsx)(eI.G,{rating:e.statistic}):eP(o,e.statistic)},"".concat(e.player.id,"-").concat(t)))}):(0,s.jsx)(eM.H,{}),(0,s.jsx)(G.Zp.Footer,{ctaParams:x?{messageId:u?"show_less":"show_more",onClick:()=>c(e=>!e),icon:u?$.X.Up:$.X.Down}:void 0})]})]})};var eN=n(90863),eF=n(34209);let eq=e=>{let{uniqueTournamentId:t,seasonId:n}=e,l=(0,S.useContext)(_.Ws),{types:i,currentType:r,setCurrentType:o,isLoading:d}=(0,eF.A)(t,n,l,"player"),u=d?{}:{uniqueTournamentId:t,seasonId:n,type:l===a.QCR.Basketball||l===a.QCR.IceHockey?r:void 0},{isError:c,topPlayersPerGame:m}=(0,eN.A)(u);return c?null:(0,s.jsx)(U.t,{tag:"TopStatsList",children:(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"top_stats"}),(0,s.jsxs)(C.so,{direction:"column",gap:"sm",pt:"sm",children:[!!(i.length&&r)&&(0,s.jsx)(eS.tU,{variant:"secondary",value:r,onChange:e=>o(e),children:(0,s.jsx)(C.so,{px:"sm",children:i.map(e=>(0,s.jsx)(eS.tU.Tab,{tabKey:e,children:(0,s.jsx)(eo.A,{id:e})},e))})}),(0,s.jsx)(eH,{topStatistics:null==m?void 0:m.topPlayers})]})]})})};var eD=n(33144),eL=n(57869),eO=n(79977);function eW(e){let{types:t,activeType:n,setActiveType:a=O(),stats:l,activeStat:i,setActiveStat:r,sport:o,firstTeam:d}=e,u=(0,eL.g)(o),c=u?u.map(e=>l.includes(e)?e:void 0):l;return(0,s.jsxs)(s.Fragment,{children:[!!t&&t.length>1&&!!n&&(0,s.jsx)(eS.tU,{variant:"secondary",value:n,onChange:e=>a(e),children:(0,s.jsx)(C.so,{px:"sm",children:t.map(e=>(0,s.jsx)(eS.tU.Tab,{tabKey:e,children:(0,s.jsx)(eo.A,{id:e})},e))})}),(0,s.jsxs)(C.so,{px:"sm",align:"center",children:[!!(null==l?void 0:l.length)&&(0,s.jsx)(eS.ms,{items:c,renderItem:e=>e?(0,s.jsx)(eO.A,{id:e}):null,initialSelectedItem:i,selectedItem:i,onSelectedItemChange:e=>{e.selectedItem&&r(e.selectedItem)}}),"avgRating"===i&&(0,s.jsx)(C.az,{ml:"sm",children:(0,s.jsx)(ez.D,{type:ez.D.type.AverageRatingTeam,rating:null==d?void 0:d.stats.avgRating,renderImage:e=>(0,s.jsx)(eD.p,{id:null==d?void 0:d.team.id,...e})})})]})]})}var eQ=n(15771),eG=n(94604);function eU(){return(0,s.jsx)(C.az,{children:Array.from({length:5}).map((e,t)=>(0,s.jsx)(C.az,{h:"5xl"},t))})}function eB(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 l=e.team;return(0,s.jsx)(j.gT,{sport:a,team:l,children:(0,s.jsxs)(C.so,{h:"5xl",align:"center",gap:"sm",px:"sm",_hover:{bg:"surface.s2"},cursor:"pointer",children:[(0,s.jsx)(J.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)(eD.p,{id:l.id,size:40}),(0,s.jsx)(J.EY,{ml:"lg",display:"block",children:(0,s.jsx)(eG.Rm,{team:l})})]}),(0,s.jsx)(C.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(J.EY,{children:(0,s.jsx)(eQ.A,{stat:e.stats,selectedStat:n,sport:a})})})]})},l.id)})}):(0,s.jsx)(eU,{})}var eV=n(25459);let eK=e=>{let{uniqueTournamentId:t,seasonId:n,gender:l=a.YT8.Male}=e,i=(0,eV.A)({uniqueTournamentId:t,seasonId:n}),[r,o]=(0,S.useState)(!1),d=(0,S.useContext)(_.Ws),u=d===a.QCR.Tennis;if(i.isError)return null;let c=r?i.activeTeams:i.activeTeams.slice(0,5),m=c.length!==i.activeTeams.length||r;return(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:u?"top_players":"top_teams",values:{gender:l}}),(0,s.jsxs)(C.so,{direction:"column",pt:"sm",gap:"sm",children:[(0,s.jsx)(eW,{stats:i.stats,activeStat:i.activeStat,setActiveStat:i.setActiveStat,types:i.types,activeType:i.activeType,setActiveType:i.setActiveType,sport:d,firstTeam:i.activeTeams[0]}),"avgRating"===i.activeStat&&(0,s.jsx)(ek.$,{mx:"sm",messageId:"rating_top_teams_general",children:(0,s.jsx)(eo.A,{id:"rating_top_teams_specific"})}),(0,s.jsx)(eB,{teams:c,activeStat:i.activeStat,sport:d})]}),(0,s.jsx)(G.Zp.Footer,{ctaParams:m?{messageId:r?"show_less":"show_more",onClick:()=>o(e=>!e),icon:r?$.X.Up:$.X.Down}:void 0})]})};function eZ(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),l=0;ln((0,td.oU)(e.featuredEvents))});return(0,s.jsx)(to.S,{isLoading:i,events:(null==l?void 0:l.featuredEvents)||[]})}var tc=n(4866),tm=n(14419),tx=n(34884),th=n(46009),tp=n(64073),tg=n(69212),tj=n(54409),tv=n(70679),ty=n(61836);function tf(e){let{isOpen:t,setIsOpen:n,editorData:a}=e;return(0,s.jsx)(ed.A,{isOpen:t,setIsOpen:n,header:(0,s.jsx)(J.EY,{textStyle:"display.large",lineHeight:"24px",display:"block",p:"lg",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(eo.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,ty.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)(tv.A,{src:e.imageURL,size:32}),(0,s.jsx)(J.EY,{textStyle:"table.medium",truncate:!0,children:e.nickname})]}),(0,s.jsx)(tj.CCT,{fill:"primary.default"})]})},e.id))})}var tb=n(3167),tT=n(48127),tw=n(6244),tC=n(45546);let tS=[8,17,23,34,35],tI=e=>{let{uniqueTournamentId:t,seasonYear:n}=e;return n&&tS.includes(t)?(0,s.jsxs)(s.Fragment,{children:[" ",(0,tC.b0)(n).join("/")]}):null};function t_(e){var t;let{uniqueTournament:n,seasons:l,seasonId:i,onSeasonChange:r}=e,o=(0,tg.N)(n),d=!!(l.length&&i&&i===l[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),{data:u}=(0,ec.Ay)(a.V3t.seasonEditors(n.id,i)),[c,m]=(0,S.useState)(!1),x=(0,S.useMemo)(()=>l.find(e=>e.id===i),[i,l]),h=null==u?void 0:u.editors,p={nickname:(null==u?void 0:u.organizations.length)?null==u?void 0:u.organizations[0].name:(null==h?void 0:h.length)===1?h[0].editorName:void 0,numberOfEditors:null==h?void 0:h.length,eventLocation:(null==h?void 0:h.length)===1?"editor_league":void 0,hasStarted:!0,isInLeagueHeader:!0,isOrganization:!!(null==u?void 0:u.organizations.length),userId:h&&h.length>1||null==h||null==(t=h[0])?void 0:t.id,onClick:h&&h.length>1&&!(null==u?void 0:u.organizations.length)?()=>m(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tm.Fs,{image:(0,s.jsx)(tc.e,{id:n.id,name:n.name,w:"100%",h:"100%"}),name:(0,s.jsxs)(s.Fragment,{children:[o," ",(0,s.jsx)(tI,{uniqueTournamentId:n.id,seasonYear:null==x?void 0:x.year})]}),titleLabel:(0,s.jsx)(tw.W,{groundType:n.groundType}),subtitleItems:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.so,{align:"center",gap:"sm",children:[(0,s.jsx)(tc.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:32,h:32}),(0,s.jsx)(J.EY,{textStyle:"display.medium",children:(0,s.jsx)(R.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})})]}),i&&(0,s.jsx)(C.az,{position:"relative",zIndex:"fixed",children:(0,s.jsx)(tT.s,{seasonId:i,seasons:l,onSeasonChange:r},n.id)})]}),actions:(0,s.jsxs)(s.Fragment,{children:[!!(null==u?void 0:u.editors.length)&&(0,s.jsx)(tx.i,{...p}),(0,s.jsx)(th.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament,isNewButton:!0})]}),footer:d&&(0,s.jsx)(tb.G,{start:n.startDateTimestamp,end:n.endDateTimestamp,c:"onSurface.nLv1"})}),(0,s.jsxs)(tp.K,{id:n.id,name:o,entity:a.bq7.Tournaments,type:Y.b.UniqueTournament,children:[(0,s.jsx)(tc.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(J.EY,{textStyle:"display.medium",color:"primary.default",mr:"lg",children:o})]}),(0,s.jsx)(tf,{isOpen:c,setIsOpen:m,editorData:u})]})}var tA=n(90436),tk=n.n(tA),tz=n(9922),tM=n.n(tz),tR=n(95816),tE=n.n(tR),tY=n(98423);let tP=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)(J.EY,{children:t})]})};function tH(e){let{title:t,tournaments:n,teams:a,sport:l}=e,i=[];(null==n?void 0:n.length)&&i.push(...n.map(e=>(0,s.jsx)(j.tQ,{tournament:e,children:(0,s.jsx)(tP,{image:(0,s.jsx)(tY.e,{...e}),name:(0,s.jsx)(eu.O,{uniqueTournament:e})})},e.id)));let r=null==a?void 0:a.filter(Boolean);return((null==r?void 0:r.length)&&i.push(...r.map(e=>(0,s.jsx)(j.gT,{sport:l,team:e,children:(0,s.jsx)(tP,{image:(0,s.jsx)(tY.p,{...e}),name:(0,s.jsx)(eG.Rm,{team:e})})},e.id))),i.length)?(0,s.jsxs)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},pb:"md",children:[(0,s.jsx)(J.EY,{p:["sm","lg"],pb:"sm",textStyle:"display.small",display:"block",children:(0,s.jsx)(eo.A,{id:t})}),i]}):null}var tN=n(85685);let tF=JSON.parse('{"Division level":"divisionLevel","Number of rounds":"numberOfRounds","averageGoals":"football_avg_goals","homeTeamWins":"home_team_wins","Draws":"draws","awayTeamWins":"away_team_wins","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 tq=n(27892);let tD=e=>{let{id:t}=e;return(0,s.jsx)(eo.A,{id:(0,tq.O)(tF,t)})};function tL(e){let{facts:t,isCurrentSeason:n}=e;return(0,s.jsxs)(C.az,{pb:"sm",children:[(0,s.jsx)(J.EY,{pt:"lg",px:{mdDown:"sm",md:"lg"},pb:"sm",textStyle:"display.small",textTransform:"capitalize",display:"block",children:(0,s.jsx)(eo.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)(J.EY,{children:(0,s.jsx)(tD,{id:e})}),(0,s.jsx)(J.EY,{children:"totalPrizeMoney"===e&&t.totalPrizeMoney?(0,s.jsx)(tN.o,{parsedMoney:(0,a.oaz)(t.totalPrizeMoney)}):t[e]})]},e):null)]})}function tO(e){let{countries:t,city:n}=e,a=(null==t?void 0:t.length)?t.join(", "):null,l=((null==t?void 0:t.length)||0)>1,i=(n||"").split(",").length>1;return a||n?(0,s.jsxs)(C.az,{pb:"sm",children:[(0,s.jsx)(J.EY,{pt:"lg",px:{mdDown:"sm",md:"lg"},pb:"sm",textStyle:"display.small",textTransform:"capitalize",display:"block",children:(0,s.jsx)(eo.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)(J.EY,{children:(0,s.jsx)(eo.A,{id:l?"countries":"country"})}),(0,s.jsx)(J.EY,{textAlign:"end",children:a})]}),n&&(0,s.jsxs)(C.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(J.EY,{children:(0,s.jsx)(eo.A,{id:i?"cities":"city"})}),(0,s.jsx)(J.EY,{textAlign:"end",children:n})]})]}):null}function tW(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)(eD.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(J.Ym,{px:"sm",mt:"xs",textStyle:"display.small",textAlign:"center",children:(0,s.jsx)(eG.Rm,{team:t})}),(0,s.jsx)(J.EY,{px:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",h:a?"2xl":"xs",textAlign:"center",children:a})]})})})}function tQ(e){return(0,s.jsxs)(C.so,{align:"center",justify:"center",direction:"column",py:"md",children:[(0,s.jsx)(J.EY,{display:"block",textStyle:"assistive.micro",color:"neutrals.nLv3",textTransform:"uppercase",children:e.label}),(0,s.jsx)(J.EY,{display:"block",textStyle:"display.medium",children:e.value})]})}function tG(e){let{titleHolder:t,mostTitlesTeams:n,titleHolderTitles:l,mostTitles:i,sport:r,totalPrizeMoney:o,numberOfCompetitors:d,numberOfSets:u}=e,m=(0,c.A)(),x=l?"".concat(m.formatMessage({id:"title_holder"})," (").concat(l,")"):m.formatMessage({id:"title_holder"}),h=i&&i>1?"".concat(m.formatMessage({id:"most_titles"})," (").concat(i,")"):"",p=r===a.QCR.Tennis&&!!u||!!o||!!d;return p||t||n?(0,s.jsxs)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},p:"sm",children:[(0,s.jsx)(C.az,{display:["none","block"],children:(0,s.jsx)(J.EY,{textStyle:"display.small",pt:"sm",pb:"xs",px:"sm",display:"block",children:(0,s.jsx)(eo.A,{id:"titles"})})}),(0,s.jsxs)(C.so,{wrap:"wrap",align:"center",justify:"space-around",children:[t&&(0,s.jsx)(tW,{team:t,sport:r,text:x}),n?n.map(e=>(0,s.jsx)(tW,{team:e,sport:r,text:h},e.id)):void 0]}),p&&(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)(tQ,{label:(0,s.jsx)(eo.A,{id:"sets"}),value:u}),o&&(0,s.jsx)(tQ,{label:(0,s.jsx)(eo.A,{id:"totalPrizeMoney"}),value:(0,s.jsx)(tN.o,{parsedMoney:(0,a.oaz)(o)})}),d&&(0,s.jsx)(tQ,{label:(0,s.jsx)(eo.A,{id:"competitors"}),value:d})]})})]}):null}let tU=["id","newcomersUpperDivision","newcomersLowerDivision","newcomersOther","totalPrizeMoneyCurrency","totalPrizeMoney","hostCity","hostCities","hostCountries"],tB=(e,t)=>{let n=Math.round(100*e);return t?"".concat(n,"%"):n/100};function tV(e){var t,n;let{tournament:l,info:i,seasonId:r,isCurrentSeason:o}=e,d=l.category.sport.slug,u={sport:d,category:l.category.slug},c=null==(t=(0,ec.Ay)(r?a.V3t.info(l.id,r):null,{fallbackData:o&&i?{info:i}:void 0}).data)?void 0:t.info,m=(0,S.useMemo)(()=>(function(e,t){if(void 0===e)return null;let n=Object.keys(e).filter(e=>-1===tU.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=tB(n.goals/a);e={goals:e.goals,averageGoals:t,...e}}return n.yellowCards&&(e.yellowCards=tB(n.yellowCards/a)),n.redCards&&(e.redCards=tB(n.redCards/a)),n.homeTeamWins&&(e.homeTeamWins=tB(n.homeTeamWins/a,!0)),n.awayTeamWins&&(e.awayTeamWins=tB(n.awayTeamWins/a,!0)),n.draws&&(e.draws=tB(n.draws/a,!0)),e}return{...n,...s}})(c,l),[r,c]),x={},h=null;d===a.QCR.Tennis?((null==m?void 0:m.totalPrizeMoney)&&(x.totalPrizeMoney=tM()(m.totalPrizeMoney)),x.numberOfCompetitors=tM()(null==m?void 0:m.numberOfCompetitors),x.numberOfSets=tM()(null==m?void 0:m.numberOfSets),m&&(null==(h=tM()(m))||delete h.totalPrizeMoney,null==h||delete h.numberOfCompetitors,null==h||delete h.numberOfSets,null==h||delete h.groundType)):m&&(h={...m});let p=o?l.titleHolder||(null==c?void 0:c.winner):void 0,g=o?l.mostTitlesTeams:void 0,j=[...[{title:"tournament.upperDivision",tournaments:l.upperDivisions},{title:"newcomers_upper",teams:null==c?void 0:c.newcomersUpperDivision},{title:"lower_division",tournaments:l.lowerDivisions},{title:"newcomers_lower",teams:null==c?void 0:c.newcomersLowerDivision},{title:"tournament.newcomersOther",teams:null==c?void 0:c.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)(tH,{...e,...u},e.title):null}),tE()(h)?null:(0,s.jsx)(tL,{facts:h,isCurrentSeason:o},h.id),(null==c?void 0:c.hostCountries.length)||(null==c?void 0:c.hostCity)?(0,s.jsx)(tO,{countries:null==c?void 0:c.hostCountries,city:null==c?void 0:c.hostCity},c.id):null].filter(e=>!!e),v=!!p||!!(null==g?void 0:g.length)||!!(null==(n=l.linkedUniqueTournaments)?void 0:n.length),y=!!j.length;return v||y?(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.leagueInfo"}),(0,s.jsxs)(C.so,{direction:{mdDown:"column"},p:"sm",gap:"sm",children:[v&&(0,s.jsxs)(C.so,{w:{mdDown:"100%",md:y?"1/2":"100%"},direction:"column",gap:"sm",children:[(0,s.jsx)(tG,{titleHolder:p,titleHolderTitles:l.titleHolderTitles,mostTitlesTeams:g,mostTitles:l.mostTitles,sport:d,...x}),(0,s.jsx)(tH,{title:"tournament.sameDivision",tournaments:l.linkedUniqueTournaments,...u})]}),v&&y&&(0,s.jsx)(C.so,{direction:"column",gap:"sm",w:{mdDown:"100%",md:"1/2"},children:j.map(e=>(0,s.jsx)(C.az,{bg:"surface.s2",br:{mdDown:"sm",md:"lg"},children:e},null==e?void 0:e.key))}),!v&&y&&tk()(j,Math.ceil(j.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 tK=n(21501),tZ=n(22648),tX=n(9127),tJ=n(62827);let t$=e=>{let{options:t,value:n,onChange:a}=e,l=(0,c.A)(),[i]=(0,S.useState)(Math.random());return(0,s.jsx)(C.so,{gap:"sm",children:t.map(e=>(0,s.jsx)(eS.a,{id:""===e.value?"all-".concat(i):"".concat(String(e.value),"-").concat(i),name:"statistics",label:l.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 t0=function(e){return e.GT="GT",e.LT="LT",e.EQ="EQ",e.IN="in",e}({});let t1=[{label:"basic.all",value:"total"},{label:"per_match",value:"perGame"},{label:"per_90_mins",value:"per90"}],t9=[{label:"all_players",value:""},{label:"stats.playersWithMinApps",value:"filtered"}],t2=[{label:"standings.overall",value:""},{label:"home",value:"home"},{label:"away",value:"away"}],t5=[{label:"basic.all",value:""},{label:"stats.moreThan",value:t0.GT},{label:"stats.equals",value:t0.EQ},{label:"stats.lessThan",value:t0.LT}],t4=[{label:"basic.all",value:""},{label:"stats.both",value:"Both"},{label:"basic.right",value:"Right"},{label:"basic.left",value:"Left"}],t8=[{label:"G",value:"G"},{label:"D",value:"D"},{label:"M",value:"M"},{label:"F",value:"F"}],t6=[{label:"basic.all",value:""},{label:"select",value:"choose"}],t3=e=>{let{value:t,optionType:n}=e;switch(n){case"nationalities":return(0,s.jsx)(eS._V,{width:"18",height:"18",src:(0,a.RHm)(t),alt:""});case"teams":return(0,s.jsx)(eD.p,{size:18,id:Number.parseInt(t,10)});default:return null}},t7=e=>{let{values:t,options:n,onChange:a,optionsType:l,labelOnly:i=!1,TransComponent:r=eG.lC}=e;return(0,s.jsx)(C.so,{wrap:"wrap",children:n.map((e,n)=>{let o=t.includes(e.value);return(0,s.jsx)(eS.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)(C.so,{align:"center",gap:"xs",children:[!i&&l&&(0,s.jsx)(t3,{value:e.value,optionType:l}),(0,s.jsx)(J.EY,{maxW:"[148px]",display:"block",truncate:!0,textStyle:"body.small",children:(0,s.jsx)(r,{original:e.label,id:e.label})})]})},n)})})},ne=e=>{let{options:t,name:n,values:a,label:l,onChange:i}=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)(J.EY,{textStyle:"display.small",pl:"lg",children:(0,s.jsx)(eo.A,{id:l})}),(0,s.jsxs)(C.so,{align:"center",px:"sm",children:[(0,s.jsx)(eS.Sc,{name:n,id:"all",px:"sm",py:"xs",h:"34",gap:"sm",checked:a.length===t.length,onChange:()=>i(t.map(e=>e.value)),children:(0,s.jsx)(eo.A,{id:"select_all"})}),(0,s.jsx)(eS.Sc,{name:n,id:"none",px:"sm",py:"xs",h:"34",gap:"sm",checked:!a.length,onChange:()=>i([]),children:(0,s.jsx)(eo.A,{id:"deselect_all"})})]})]}),(0,s.jsx)(t7,{values:a,optionsType:n,options:t,onChange:e=>i(e)})]})},nt="sofa.leagueStatsFilters",nn=e=>{(0,tJ.kH)(nt,JSON.stringify(e))},ns=()=>{let e=(0,tJ._9)(nt);return e?JSON.parse(e):null},na=(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:l,setQuantity:i}=e,r=(0,S.useRef)(null),o=!n;return(0,s.jsxs)(C.so,{align:"center",ml:"md",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:t})}),(0,s.jsx)(J.ms,{label:t,items:t5,selectedItem:t5.find(e=>e.value===n)||t5[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(eo.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=r.current)||e.focus()},0))}}),(0,s.jsx)(C.I4.input,{ref:r,type:"text",br:"sm",value:l||"",onChange:e=>{i(e.target.value)},h:"2xl",disabled:o,border:"1px solid {colors.neutrals.nLv4}",bg:o?"surface.s2":"surface.s1",color:"neutrals.nLv1",px:"sm",maxW:"4xl",pattern:"\\d*",style:{opacity:o?.7:1,cursor:o?"not-allowed":"pointer"}})]})};function ni(e){let{groups:t,values:n,onChange:l}=e,[i,r]=(0,S.useState)(""),o=t[i];return(0,s.jsxs)("div",{children:[(0,s.jsx)(C.so,{mb:"sm",gap:"sm",wrap:"wrap",children:Object.keys(t).map(e=>{let t=e===i,n="defence"===e?"defense":e;return(0,s.jsxs)(J.$n,{size:"tertiary",variant:"clear",onClick:()=>{i===e?r(""):r(e)},py:"md",children:[(0,s.jsx)(eo.A,{id:n,values:{gender:a.YT8.Male}}),t?(0,s.jsx)(tj.t8v,{ml:"xs"}):(0,s.jsx)(tj.QtO,{ml:"xs"})]},e)})}),(0,s.jsx)(tX.m.div,{initial:{height:0,opacity:0},animate:i?{height:"auto",opacity:1}:{height:0,opacity:0},children:(0,s.jsx)(t7,{labelOnly:!0,options:(null==o?void 0:o.map(e=>({value:e,label:e})))||[],values:n,onChange:l,TransComponent:eR.w})}),(0,s.jsx)(C.so,{mt:"sm",gap:"sm",wrap:"wrap",children:n.map(e=>(0,s.jsxs)(J.$n,{onClick:()=>{l(n.filter(t=>t!==e))},size:"tertiary",colorPalette:"neutral",py:"2xs",children:[(0,s.jsx)(eR.w,{id:"rating"===e?"average_sofascore_rating":e,children:e=>(0,s.jsx)(s.Fragment,{children:e})}),(0,s.jsx)(tj.zQC,{icon:"close",width:"12",height:"12",ml:"sm"})]},e))})]})}let nr={accumulation:t1[0].value,location:t2[0].value,appearancesRelation:void 0,appearancesQuantity:void 0,ageRelation:void 0,ageQuantity:void 0,positions:t8.map(e=>e.value),foot:t4[0].value,selectNationalities:"",nationalities:[],selectTeams:"",teams:[],fields:["goals","successfulDribbles","tackles","assists","accuratePassesPercentage","rating"]};function no(e){var t;let{groups:n,hideHomeAndAway:a,setFilter:l,...i}=e,[r,o]=(0,S.useState)((null==(t=ns())?void 0:t.accumulation)||nr.accumulation),[d,u]=(0,S.useState)(nr.location),[m,x]=(0,S.useState)(nr.appearancesRelation),[h,p]=(0,S.useState)(nr.appearancesQuantity),[g,j]=(0,S.useState)(nr.ageRelation),[v,y]=(0,S.useState)(nr.ageQuantity),[f,b]=(0,S.useState)(nr.positions),[T,w]=(0,S.useState)(nr.foot),[I,_]=(0,S.useState)(nr.selectNationalities),[A,k]=(0,S.useState)(nr.nationalities),[z,M]=(0,S.useState)(nr.selectTeams),[R,E]=(0,S.useState)(nr.teams),[Y,P]=(0,S.useState)(nr.fields),H=(0,c.A)(),N=(0,S.useRef)();return(0,S.useEffect)(()=>{l({accumulation:r,location:d,appearancesRelation:m,appearancesQuantity:h,ageRelation:g,ageQuantity:v,positions:f,foot:T,nationalities:A,teams:R,fields:Y})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"[34px]",children:[!a&&(0,s.jsx)(t$,{value:d,options:t2,onChange:u}),(0,s.jsx)(nl,{label:"match_appearances",relation:m,setRelation:x,quantity:h,setQuantity:p}),(0,s.jsxs)(C.so,{align:"center",my:"[1px]",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"accumulation"})}),(0,s.jsx)(J.ms,{label:H.formatMessage({id:"accumulation"}),items:t1,initialSelectedItem:t1.find(e=>e.value===r)||t1[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(eo.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t.value)},alignRight:!0})]})]}),(0,s.jsx)(eS.cG,{}),(0,s.jsxs)(C.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"[34px]",children:[(0,s.jsx)(nl,{label:"stats.age",relation:g,setRelation:j,quantity:v,setQuantity:y}),(0,s.jsxs)(C.so,{align:"center",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"position"})}),(0,s.jsx)(C.so,{align:"center",children:t8.map(e=>{let t=f.includes(e.value);return(0,s.jsx)(eS.Sc,{name:e.value,checked:t,px:"sm",py:"xs",h:"34",gap:"sm",onChange:()=>{b(t?f.filter(t=>t!==e.value):[...f,e.value])},children:e.label},e.value)})})]}),(0,s.jsxs)(C.so,{align:"center",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"player_preferred_foot"})}),(0,s.jsx)(J.ms,{label:H.formatMessage({id:"player_preferred_foot"}),items:t4,initialSelectedItem:t4.find(e=>e.value===T)||t4[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(eo.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&w(t.value)},alignRight:!0})]})]}),(0,s.jsx)(eS.cG,{}),(0,s.jsxs)(C.so,{align:"center",justify:"space-between",px:"sm",my:"xs",minH:"[34px]",children:[i.nationalities.length>0&&(0,s.jsxs)(C.so,{align:"center",px:"md",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"nationality"})}),(0,s.jsx)(t$,{value:I,options:t6,onChange:_})]}),(0,s.jsxs)(C.so,{align:"center",px:"md",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"team"})}),(0,s.jsx)(t$,{value:z,options:t6,onChange:M})]})]}),!!I&&(0,s.jsx)(tX.m.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},children:(0,s.jsx)(ne,{label:"nationality",name:"nationalities",values:A,options:i.nationalities,onChange:k})}),!!z&&(0,s.jsx)(tX.m.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},children:(0,s.jsx)(ne,{label:"team",name:"teams",values:R,options:i.teams,onChange:E})}),!!n&&(0,s.jsx)(C.az,{bg:"surface.s2",br:"md",mx:"md",mt:"xs",mb:"md",p:"sm",pb:"lg",children:(0,s.jsx)(ni,{groups:n,values:Y,onChange:async e=>{e.length<=6?P(e):(await (0,tJ.Mx)(N.current),N.current=await (0,tJ.MZ)((0,s.jsxs)(C.so,{dir:document.dir,align:"center",children:[(0,s.jsx)(tj.G_L,{fill:"onColor.primary",mr:"lg"}),(0,s.jsx)(J.EY,{display:"block",color:"onColor.primary",textStyle:"body.medium",children:(0,s.jsx)(eo.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.jsxs)(C.so,{px:"md",gap:"sm",mb:"md",children:[(0,s.jsxs)(J.$n,{onClick:()=>{let e={accumulation:r,location:d,appearancesRelation:m,appearancesQuantity:h,ageRelation:g,ageQuantity:v,positions:f,foot:T,selectNationalities:I,nationalities:A,selectTeams:z,teams:R,fields:Y};l(e),nn(e)},children:[(0,s.jsx)(eo.A,{id:"apply"}),(0,s.jsx)(tj.VsF,{width:16,height:16,ml:"xs",mt:"-2"})]}),(0,s.jsxs)(J.$n,{colorPalette:"neutral",onClick:()=>{let e={...nr,fields:Y};o(e.accumulation),u(e.location),x(e.appearancesRelation),p(e.appearancesQuantity),j(e.ageRelation),y(e.ageQuantity),b(e.positions),w(e.foot),_(e.selectNationalities),k(e.nationalities),M(e.selectTeams),E(e.teams),P(e.fields),l(e),nn(e)},children:[(0,s.jsx)(eo.A,{id:"clear_filters"}),(0,s.jsx)(tj.xV8,{width:16,height:16,ml:"xs",mt:"-2"})]})]})]})}function nd(e){var t,n;let{setFilter:a}=e,[l,i]=(0,S.useState)((null==(t=ns())?void 0:t.accumulation)||t1[0].value),[r,o]=(0,S.useState)((null==(n=ns())?void 0:n.minApps)||""),d=(0,c.A)();return(0,S.useEffect)(()=>{a({accumulation:l,minApps:r}),nn({accumulation:l,minApps:r})},[l,r]),(0,s.jsxs)(C.so,{align:"center",justify:"space-between",px:"sm",my:"xs",children:[(0,s.jsxs)(C.so,{align:"center",gap:"sm",children:[(0,s.jsx)(t$,{value:r,options:t9,onChange:o}),(0,s.jsx)(C.az,{children:(0,s.jsx)(eS.AM,{children:(0,s.jsx)(eS.AM.Content,{minW:"280",children:(0,s.jsx)(eo.A,{id:"stats.playersWithMinAppsDescription"})})})})]}),(0,s.jsxs)(C.so,{align:"center",gap:"sm",children:[(0,s.jsx)(J.EY,{textStyle:"assistive.default",children:(0,s.jsx)(eo.A,{id:"accumulation"})}),(0,s.jsx)(J.ms,{label:d.formatMessage({id:"accumulation"}),items:t1,initialSelectedItem:t1.find(e=>e.value===l)||t1[0],renderItem:e=>(null==e?void 0:e.label)?(0,s.jsx)(eo.A,{id:null==e?void 0:e.label}):"",onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&i(t.value)},alignRight:!0})]})]})}let nu=e=>{let{currentPage:t,totalPages:n,selectPage:a}=e,l=t>0&&t+1<=n,i=t>0&&t-1>0,r=na(t,n);return(0,s.jsxs)(C.so,{py:"lg",align:"center",justify:"center",children:[(0,s.jsx)(J.K0,{size:"primary",variant:"clear",disabled:!i,onClick:()=>{i&&a(t-1)},children:(0,s.jsx)(tj.zQC,{icon:"chevron-left"})}),(0,s.jsx)(C.so,{children:r.map((e,n)=>{let l=r[n+1]||e+1,i=e===t;return(0,s.jsxs)(S.Fragment,{children:[(0,s.jsx)(J.$n,{size:"secondary",variant:i?"filled":"clear",mx:"xs",onClick:()=>{e!==t&&a(e)},children:e}),e+1!==l&&(0,s.jsx)(J.EY,{textStyle:"display.medium",mx:"xs",mt:"sm",color:"neutrals.nLv3",children:"..."})]},e)})}),(0,s.jsx)(J.K0,{size:"primary",variant:"clear",disabled:!l,onClick:()=>{l&&a(t+1)},children:(0,s.jsx)(tj.zQC,{icon:"chevron-right"})})]})};var nc=n(40237),nm=n(62042),nx=n(76868),nh=n(24159);let np=(0,nm.JB)({slots:["table","headRow","bodyRow","playerLink"],base:{table:{width:"100%",borderCollapse:"collapse",borderSpacing:"0",textAlign:"center",textStyle:"body.small",tableLayout:"fixed","& th, & td":{py:"xs",px:"[6px]",border:"1px solid {colors.neutrals.nLv4}",textOverflow:"ellipsis",overflow:"hidden","&:first-child":{borderStart:"none"},"&:last-child":{borderEnd:"none"}},"& th":{color:"neutrals.nLv3",height:"5xl",position:"relative"}},headRow:{"&:nth-child(odd)":{bg:"surface.s2"}},bodyRow:{"&:nth-child(even)":{bg:"surface.s2"}},playerLink:{color:{base:"neutrals.nLv1",_hover:"primary.default"},display:"inherit"}}}),ng=e=>{let{header:t,data:n,activeTab:l,onSortClick:i,sort:r,indexOffset:o=0}=e,d=(0,c.A)(),{table:u,headRow:m,bodyRow:x,playerLink:h}=np();return n.length?(0,s.jsxs)("table",{className:u,children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:m,children:[(0,s.jsx)(C.I4.th,{w:"2xl",children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:"#"})}),(0,s.jsx)(C.I4.th,{w:"3xl",px:"0!",children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:(0,s.jsx)(eo.A,{id:"team"})})}),(0,s.jsx)(C.I4.th,{w:"[120px]",textAlign:"start",children:(0,s.jsx)("span",{style:{position:"relative",top:-8},children:(0,s.jsx)(eo.A,{id:"basic.name"})})}),t.map(e=>(0,s.jsx)(eR.w,{id:"rating"===e?"average_sofascore_rating":e,children:t=>(0,s.jsxs)(C.I4.th,{w:"auto",cursor:"pointer",px:"0!",title:t.toString(),onClick:()=>{i(r==="-".concat(e)?e:"-".concat(e),l)},children:[(0,s.jsx)(J.EY,{lineClamp:2,position:"relative",top:"-sm",textStyle:"body.small",color:"[inherit]",textAlign:"center",children:t}),(0,s.jsx)(tj.Bfd,{className:(0,nm.AH)({position:"absolute",bottom:"xs",left:"[calc(50% - 8px)]",transformOrigin:"center center"}),w:16,h:16,fill:-1!==r.indexOf(e)?"primary.default":"onSurface.nLv4",style:{transform:r===e?"rotate(180deg)":void 0}})]})},e))]})}),(0,s.jsx)("tbody",{children:n.map((e,n)=>(0,s.jsxs)("tr",{className:x,children:[(0,s.jsx)(C.I4.td,{w:"2xl",px:"0!",children:o+n+1}),(0,s.jsx)(C.I4.td,{w:"3xl",title:d.formatMessage({id:e.team.slug,defaultMessage:e.team.name}),children:(0,s.jsx)(j.gT,{team:e.team,sport:a.QCR.Football,style:{display:"block"},children:(0,s.jsx)(nc.p,{id:e.team.id,className:(0,nm.AH)({_hover:{opacity:.8},display:"inline-block",verticalAlign:"middle"}),name:e.team.name,size:21})})}),(0,s.jsx)(C.I4.td,{w:"[150px]",textAlign:"start",title:e.player.name,children:(0,s.jsx)(j.uc,{className:h,player:e.player,sportSlug:a.QCR.Football,children:(0,s.jsx)(nh.c,{entity:e.player})})}),t.map(t=>{let n="rating"===t?e[t]:null;return(0,s.jsx)(C.I4.td,{w:"auto",children:n?(0,s.jsx)(C.so,{justify:"center",children:(0,s.jsx)(nc.G,{rating:n,format:"sideBox"})}):(0,s.jsx)(s.Fragment,{children:e[t]})},t)})]},e.player.id))})]}):(0,s.jsx)(nx.p,{graphic:"no-statistics",descriptionMessageId:"stats.noResults"})},nj="goalkeeper",nv="detailed",ny=["summary","attack","defence","passing",nj,nv],nf={summary:"-rating",attack:"-goals",defence:"-tackles",passing:"-bigChancesCreated",[nj]:"-saves",[nv]:"-rating"},nb={summary:"statistics_general",attack:"attack",defence:"defense",goalkeeper:"goalkeeping",detailed:"detailed"},nT={limit:20},nw=(e,t,n)=>{let s="object"==typeof n?n.join("~"):String(n);return"".concat(e,".").concat(t,".").concat(s)},nC=e=>{let{uniqueTournamentId:t,seasonId:n,sport:l}=e,[i,r]=(0,S.useState)(),[o,d]=(0,S.useState)(ny[0]),[u,c]=(0,S.useState)(nT),[m,x]=(0,S.useState)(),[h,p]=(0,S.useState)(),[g,j]=(0,S.useState)(nf),v=(0,tK.ZC)(o),y=o===nv,f=(0,S.useCallback)(function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-rating";if(!i)return;x(void 0),p(void 0);let r={...nT,order:l,filtersConditions:[]};if(s>1&&(r.offset=(s-1)*20),o===nj&&r.filtersConditions.push(nw("position",t0.IN,"G")),e.accumulation&&(r.accumulation=e.accumulation),y){var d,u;e.fields&&(r.fields=e.fields.join(",")),e.location&&r.filtersConditions.push(nw("type",t0.EQ,e.location)),e.appearancesRelation&&e.appearancesQuantity&&r.filtersConditions.push(nw("appearances",e.appearancesRelation,e.appearancesQuantity)),e.ageRelation&&e.ageQuantity&&r.filtersConditions.push(nw("age",e.ageRelation,e.ageQuantity)),e.positions&&r.filtersConditions.push(nw("position",t0.IN,e.positions)),e.foot&&r.filtersConditions.push(nw("preferredFoot",t0.EQ,e.foot)),e.selectTeams&&(null==(d=e.teams)?void 0:d.length)&&r.filtersConditions.push(nw("team",t0.IN,e.teams)),e.selectNationalities&&(null==(u=e.nationalities)?void 0:u.length)&&r.filtersConditions.push(nw("nationality",t0.IN,e.nationalities))}else r.group=o,e.minApps&&(r.minApps="yes");r.filtersConditions.length&&(r.filters=r.filtersConditions.join(",")),delete r.filtersConditions,a.jFR.fetchTournamentStatistics(t,n,r).then(e=>{x(e.results),p({page:e.page,pages:e.pages})}).catch(console.error)},[t,n,i,o,g,y]),b=(0,S.useCallback)(e=>{h&&(p({page:e,pages:h.pages}),f(u,e,g[o]))},[f,h,g,y]),T=(0,S.useCallback)(e=>{c(e),f(e,1,g[o])},[f]),w=(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=>{r({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(ny[0]),c(nT),x(void 0),p(void 0),j(nf),f(u)}).catch(e=>{r(void 0),console.error(e)})},[t,n]),(0,S.useEffect)(()=>{v===nv||y||f(u,1,g[o])},[o]),!i||l!==a.QCR.Football)return null;let{nationalities:I,statisticsGroups:_,teams:A,hideHomeAndAway:k}=i,z=y?u.fields||[]:_[o];return(0,s.jsx)(U.t,{tag:"LeagueStats",children:(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"player_stats"}),(0,s.jsxs)(eS.tU,{onChange:e=>{d(e)},value:o,variant:"tertiary",children:[(0,s.jsx)(C.az,{px:"lg",py:"sm",children:ny.map(e=>{var t;return(0,s.jsx)(eS.tU.Tab,{tabKey:e,children:(0,s.jsx)(eo.A,{id:null!=(t=nb[e])?t:e})},"tab-"+e)})}),o===nv?(0,s.jsx)(no,{nationalities:I,teams:A,groups:_.detailed,setFilter:T,hideHomeAndAway:k}):(0,s.jsx)(nd,{setFilter:T}),ny.map(e=>(0,s.jsx)(eS.tU.Panel,{tabKey:e,children:(0,s.jsxs)("div",{style:{minHeight:364},children:[!m&&(0,s.jsx)(C.az,{style:{height:725},children:(0,s.jsx)(tZ.a,{padding:294})}),m&&(0,s.jsx)(ng,{sort:g[o],activeTab:o,onSortClick:w,header:z,data:m,indexOffset:h?Math.max(20*(h.page-1),0):0}),h&&h.pages>1&&(0,s.jsx)(nu,{currentPage:h.page,totalPages:h.pages,selectPage:b})]})},e))]})]})})};var nS=n(78259),nI=n(83260);let n_=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"})})]})})},nA=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"})})]})})},nk=e=>{let{isOpen:t,setIsOpen:n}=e;return(0,s.jsx)(ed.A,{isOpen:t,setIsOpen:n,header:(0,s.jsx)(J.EY,{display:"block",textStyle:"display.large",color:"neutrals.nLv1",p:{md:"lg"},children:(0,s.jsx)(eo.A,{id:"player_of_the_season_title"})}),children:(0,s.jsxs)(C.so,{direction:"column",p:"lg",pt:"0",gap:"lg",maxW:{md:"[320px]"},children:[(0,s.jsx)(C.so,{width:"100%",justify:"center",bgColor:"surface.s0",br:"sm",p:"lg",children:(0,s.jsx)("img",{width:264,height:183,src:"/static/images/player-of-the-season-award.png",alt:"Sofascore player of the season award"})}),(0,s.jsxs)(C.I4.a,{href:"https://corporate.sofascore.com/about/rating",rel:"noreferrer",textStyle:"display.small",color:"primary.default",target:"_blank",display:"flex",gap:"xs",cursor:"pointer",alignItems:"center",hideBelow:"md",children:[(0,s.jsx)(eo.A,{id:"rating_learn_more_button"}),(0,s.jsx)(tj.CCT,{fill:"primary.default",width:16,height:16})]}),(0,s.jsx)(J.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(eo.A,{id:"rating_player_of_the_season_body_1"})}),(0,s.jsx)(J.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(eo.A,{id:"rating_player_of_the_season_body_2"})}),(0,s.jsx)(J.$n,{onClick:()=>{window.open("https://corporate.sofascore.com/about/rating","_blank"),n(!1)},mt:"lg",display:{md:"none"},children:(0,s.jsx)(eo.A,{id:"learn_more_button"})})]})})},nz=e=>{var t,n;let{uniqueTournamentId:l,seasonId:i,showLoader:r}=e,[o,d]=(0,S.useState)(!1),{data:u,isLoading:c,error:m}=(0,ec.Ay)(i?a.V3t.playerOfTheSeason(l,i):null),[x,h]=(0,nI.A)("playerOfTheSeason",{uniqueTournamentId:l,seasonId:i,playerId:null==u?void 0:u.player.id});if((0,S.useEffect)(()=>{i&&!m&&r&&!c&&(0,ty.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[l,i,m,r,c]),(0,S.useEffect)(()=>{h({uniqueTournamentId:l,seasonId:i,playerId:null==u?void 0:u.player.id})},[l,i,null==u?void 0:u.player.id]),m||!r&&!u)return null;let p=a.V3t.image(l),g=u&&a.qvj.image(u.player.id);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.az,{position:"relative",br:["lg","xl"],elevation:"2",h:"[152px]",overflow:"hidden",children:[(0,s.jsxs)(C.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",children:[(0,s.jsx)(C.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",transform:"scale(1.5)",style:{filter:"blur(50px)",backgroundImage:"url(".concat(p,")"),backgroundSize:"100% 100%",backgroundPosition:"center center"}}),(0,s.jsxs)(C.so,{position:"absolute",top:"0",left:"0",w:"100%",justify:"space-between",br:"lg",elevation:"3",opacity:"0.1",children:[(0,s.jsx)(n_,{}),(0,s.jsx)(nA,{})]})]}),(0,s.jsxs)(C.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"lg",pt:"md",bg:"overlay.darken3",children:[(0,s.jsxs)(C.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(C.so,{align:"center",gap:"lg",children:[(0,s.jsx)(tj.gWL,{w:24,h:24,fill:"white"}),(0,s.jsx)(J.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,s.jsx)(eo.A,{id:"player_of_the_season",values:{gender:null!=(t=null==u?void 0:u.team.gender)?t:a.YT8.Male}})})]}),(0,s.jsx)(tj.G_L,{cursor:"pointer",fill:"onColor.primary",onClick:()=>d(!0)})]}),c?(0,s.jsx)(tZ.a,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(C.so,{w:"100%",justify:"space-between",align:"center",zIndex:"button",children:[(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,ty.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(C.so,{align:"center",children:[(0,s.jsx)(nS.tg,{src:g,size:48}),(0,s.jsxs)(C.az,{ml:"sm",children:[(0,s.jsx)(J.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(null==u?void 0:u.player)&&(0,s.jsx)(nh.c,{entity:null==u?void 0:u.player})}),(0,s.jsxs)(C.so,{mt:"xs",align:"center",children:[(0,s.jsx)(nS.pY,{id:null==u?void 0:u.team.id,size:16}),(0,s.jsx)(J.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",ml:"xs",mt:"2xs",children:(null==u?void 0:u.team)&&(0,s.jsx)(nh.c,{entity:null==u?void 0:u.team})})]})]})]})}),(0,s.jsx)(nS.GW,{rating:null==u?void 0:u.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,s.jsx)(C.so,{w:"100%",justify:"center",align:"center",zIndex:"button",children:(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:a.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,ty.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(C.so,{align:"center",cursor:"pointer",children:[(0,s.jsx)(J.Ym,{ml:"sm",textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(eo.A,{id:"see_player_statistics",values:{gender:null!=(n=null==u?void 0:u.team.gender)?n:a.YT8.Male}})}),(0,s.jsx)(tj.CCT,{fill:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,s.jsx)(nk,{isOpen:o,setIsOpen:d})]})},nM=e=>{var t,n,l;let{uniqueTournamentId:i,seasonId:r}=e,[o,d]=(0,S.useState)(!1),u=(0,S.useContext)(_.Ws),{data:c,error:m,isLoading:x}=(0,ec.Ay)(r?a.V3t.playerOfTheSeasonRace(i,r):null);if(m||!c||!(null==(t=c.topPlayers.rating)?void 0:t.length))return null;let h=null==c?void 0:c.topPlayers.rating,p=null!=(l=null==(n=h[0].team)?void 0:n.gender)?l:a.YT8.Male;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{title:(0,s.jsxs)(C.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(C.so,{align:"center",gap:"lg",children:[(0,s.jsx)(tj.gWL,{w:24,h:24,fill:"onSurface.nLv1"}),(0,s.jsx)(J.EY,{textStyle:"display.medium",children:(0,s.jsx)(eo.A,{id:"player_of_the_season_race",values:{gender:p}})})]}),(0,s.jsx)(tj.G_L,{cursor:"pointer",fill:"onSurface.nLv1",onClick:()=>d(!0)})]})}),(0,s.jsx)(C.so,{direction:"column",overflow:"hidden",pb:{base:"lg",mdDown:"0"},children:x?(0,s.jsx)(C.so,{justify:"center",align:"center",w:"100%",children:(0,s.jsx)(tZ.a,{})}):null==h?void 0:h.map((e,t)=>(0,s.jsx)(j.uc,{player:e.player,sportSlug:u,hash:"tab:statistics",onClick:()=>{(0,ty.ke)({action:"click",location:"league_details",type:"player_of_the_season_race"})},children:(0,s.jsxs)(C.so,{w:"100%",justify:"space-between",align:"center",h:"5xl",px:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(C.so,{align:"center",children:[(0,s.jsx)(J.EY,{display:"block",w:"lg",h:"lg",mr:"xs",children:t+1}),(0,s.jsx)(nS.tg,{id:e.player.id,name:e.player.name,size:40}),(0,s.jsxs)(C.az,{flexGrow:1,ml:"lg",children:[(0,s.jsx)(J.EY,{display:"block",children:e.player&&(0,s.jsx)(nh.c,{entity:e.player})}),(0,s.jsxs)(C.so,{align:"center",mt:"xs",children:[e.team&&(0,s.jsx)(nS.pY,{id:e.team.id,size:16,name:e.player.name}),(0,s.jsx)(J.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",ml:"xs",children:(null==e?void 0:e.team)&&(0,s.jsx)(nh.c,{entity:null==e?void 0:e.team})})]})]})]}),(0,s.jsx)(nS.GW,{rating:null==e?void 0:e.statistics.rating,format:"sideBox"})]})},t))}),r&&(0,s.jsx)(C.I4.a,{onClick:()=>{window.location.hash="id:".concat(r,",tab:top_players")},hideFrom:"md",children:(0,s.jsx)(G.Zp.Footer,{ctaParams:{messageId:"view_top_players",values:{gender:p},icon:$.X.Right}})})]}),(0,s.jsx)(nk,{isOpen:o,setIsOpen:d})]})};var nR=n(77015),nE=n(75414);let nY=e=>{let{player:t,team:n,popularityRanking:l}=e,i=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)(J.EY,{textStyle:"body.small",children:l})}),(0,s.jsxs)(C.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:[(0,s.jsx)(nR.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)(nR.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)(J.EY,{lineHeight:"md",children:(0,s.jsx)(nh.c,{entity:t})}),(0,s.jsx)(J.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(eo.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(J.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,nE.A)(t.userCount)})}})})]})]}),i&&(0,s.jsx)(th.e,{entity:a.bq7.Players,id:t.id,location:Y.y.PopularPlayers,type:Y.b.Player})]})})};function nP(e){let{popularPlayers:t}=e,[n,a]=(0,S.useState)(!1),l=t.length>5,i=n?t:t.slice(0,5);return(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.popularPlayers"}),i.map((e,t)=>(0,s.jsx)(nY,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(G.Zp.Footer,{ctaParams:l?{messageId:n?"show_less":"show_more",onClick:()=>a(e=>!e),icon:n?$.X.Up:$.X.Down}:void 0})]})}function nH(e){let{popularPlayers:t,uniqueTournament:n}=e,[a,l]=(0,S.useState)(!1),i=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"}),i.map((e,t)=>(0,s.jsx)(nY,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(G.Zp.Footer,{ctaParams:{messageId:"basic.seeAllPlayers",onClick:()=>l(e=>!e),icon:$.X.Right}})]}),(0,s.jsxs)(eS.Xn,{isOpen:a,onClose:()=>l(!1),children:[(0,s.jsx)(eS.Xn.Header,{children:(0,s.jsxs)(C.so,{children:[(0,s.jsx)(C.so,{children:(0,s.jsx)(er.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)(J.H3,{textStyle:"display.large",children:n.name}),(0,s.jsx)(J.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(eo.A,{id:"tournament.popularPlayers"})})]})]})}),(0,s.jsx)(eS.Xn.Content,{children:(0,s.jsx)(C.so,{h:"100%",w:"100%",direction:"column",children:t.map((e,t)=>(0,s.jsx)(nY,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id))})})]})]})}function nN(e){let{uniqueTournament:t,seasonId:n}=e,l=56953===n&&t.id===a.G6l.Euro||57114===n&&t.id===a.G6l.CopaAmerica,{data:i}=(0,ec.Ay)(l?a.V3t.topFollowedPlayers(t.id,n):null);return i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C.az,{hideBelow:"md",maxW:"[440px]",children:(0,s.jsx)(nP,{popularPlayers:null==i?void 0:i.topFollowedPlayers})}),(0,s.jsx)(C.az,{display:{md:"none"},children:(0,s.jsx)(nH,{popularPlayers:null==i?void 0:i.topFollowedPlayers,uniqueTournament:t})})]}):null}let nF=e=>{let{team:t,popularityRanking:n}=e,l=(0,eA.o)();return(0,s.jsx)(j.gT,{team:t,sport:l,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)(J.EY,{textStyle:"body.small",color:"neutrals.nLv1",children:n})}),(0,s.jsx)(C.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:(0,s.jsx)(eD.p,{id:t.id,name:t.name,size:40})}),(0,s.jsxs)(C.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(J.EY,{lineHeight:"md",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(nh.c,{entity:t})}),(0,s.jsx)(J.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(eo.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(J.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,nE.A)(t.userCount)})}})})]})]}),(0,s.jsx)(th.e,{entity:a.bq7.Teams,id:t.id,location:Y.y.PopularTeams,type:Y.b.Team})]})})};function nq(e){let{uniqueTournament:t,seasonId:n}=e,l=74858===n&&t.id===a.G6l.SofascoreClubNXTU14,{data:i}=(0,ec.Ay)(l?a.V3t.topFollowedTeams(t.id,n):null),r=(null==i?void 0:i.topFollowedTeams)||[],{isMobile:o}=(0,J.$c)(),[d,u]=(0,S.useState)(!1),c=[...r].slice(0,o?3:5);return r.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(G.Zp,{children:[(0,s.jsx)(G.Zp.Header,{titleId:"tournament.popularTeams"}),(!o&&d?r:c).map((e,t)=>(0,s.jsx)(nF,{team:e,popularityRanking:t+1},e.id)),(0,s.jsx)(G.Zp.Footer,{ctaParams:c.lengthu(e=>!e),icon:o?$.X.Right:d?$.X.Up:$.X.Down}})]}),o&&(0,s.jsxs)(eS.Xn,{isOpen:d,onClose:()=>u(!1),children:[(0,s.jsx)(eS.Xn.Header,{children:(0,s.jsxs)(C.so,{children:[(0,s.jsx)(C.so,{children:(0,s.jsx)(er.e,{id:t.id,h:"56px",w:"56px"})}),(0,s.jsxs)(C.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(J.H3,{textStyle:"display.large",color:"neutrals.nLv1",children:t.name}),(0,s.jsx)(J.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(eo.A,{id:"tournament.popularTeams"})})]})]})}),(0,s.jsx)(eS.Xn.Content,{children:(0,s.jsx)(C.so,{h:"100%",w:"100%",direction:"column",pb:"xl",children:r.map((e,t)=>(0,s.jsx)(nF,{team:e,popularityRanking:t+1},e.id))})})]})]}):null}var nD=n(78144),nL=n(61703),nO=n(47530),nW=n(52827),nQ=n(45749),nG=n(10794),nU=n(85625),nB=n(95868);let nV=e=>{let{tournamentId:t,roundId:n,eventHighlights:a}=e,{isMobile:l}=(0,J.$c)(),i=(0,nB.MB)({type:"multiple",location:nU.D.TournamentPage,tournamentId:t,roundId:n,screen:l?"mobile":"desktop",eventId:null});(0,nQ.P)({containerId:i,storyIds:a.map(e=>{let{sdkId:t}=e;return t}),location:nU.D.TournamentPage});let r=(0,nW.i)(i);return(0,s.jsx)(C.az,{ref:r,id:i,h:"[188px]"})};function nK(e){let{uniqueTournamentId:t,seasonId:n,rounds:l,showPicker:i,selectedRound:r,setSelectedRound:o,sportSlug:d}=e,{eventHighlights:u,isLoading:c,isError:m}=function(e){let{eventId:t,uniqueTournamentId:n,seasonId:s,roundId:l}=e,i=(0,tr.d4)(nG.LQ),{data:r,isLoading:o,error:d}=(0,ec.Ay)(i&&n&&s&&l?a.vCt.tournamentRoundVideoHighlights(i,n,s,l):null);return{eventHighlights:null==r?void 0:r.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==r?void 0:r.eventRoundId}),[x,h]=(0,S.useState)(!1),p=[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==r?void 0:r.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)(J.EY,{textStyle:i?"display.medium":"display.small",children:(0,s.jsx)(eo.A,{id:p})}),i&&r&&(0,s.jsx)(eS.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t)},initialSelectedItem:r,renderItem:e=>e?(0,s.jsx)(nO.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0})]}),(0,s.jsx)(C.az,{minH:"[188px]",position:"relative",children:x||!(null==r?void 0:r.eventRoundId)||c?null:(0,s.jsx)(nV,{tournamentId:t,roundId:null==r?void 0:r.eventRoundId,eventHighlights:u||[]})})]})}var nZ=n(90510),nX=n(16620),nJ=n(8298),n$=n(79387);let n0=(e,t,n)=>{let{uniqueTournamentId:s,uniqueTournamentName:l,uniqueTournamentSlug:i,categorySlug:r,sport:o,seasonId:u,roundId:c}=e,m="sofa-totw-embed-".concat(s,"-").concat(u,"-").concat(c),x=(0,A.vf)(t.locale),h="".concat(a.yuv).concat(x?"/".concat(x):"","/embed/unique-tournament/").concat(s,"/season/").concat(u,"/round/").concat(c,"/teamOfTheWeek"),p="?showCompetitionLogo=true&widgetTheme=light&widgetTitle=".concat(encodeURIComponent(l)),g=(0,a.Lo9)(d.z.getTranslatedRoute(n,"uniqueTournament",{sport:o,category:r,tournament:i,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
")},n1=function(e){let t=(0,c.A)(),n=(0,x.A)();return(0,s.jsx)(n$.C,{callToAction:(0,s.jsx)(eo.A,{id:"team_of_the_week_embed"}),embedString:n0(e,t,n),px:"0",my:"0"})};function n9(e){let{uniqueTournament:t,seasonId:n,selectedRound:l,setSelectedRound:i,rounds:r,showPicker:o,isRoundLoading:d}=e,{setTotwUrl:u}=(0,nX.d)(),c=(null==l?void 0:l.roundName.toLowerCase())==="season",m=(null==l?void 0:l.totwRoundId)&&n?a.V3t.teamOfTheWeekRoundDetails(t.id,n,l.totwRoundId):null,{data:x,isLoading:h}=(0,ec.Ay)(m);(0,S.useEffect)(()=>(u(m),()=>u(null)),[l]);let p=d||h;return p||x?(0,s.jsxs)(C.az,{children:[(0,s.jsx)(G.Zp.Header,{titleId:c?"tournament.teamOfTheSeason":"team_of_the_week",variant:"left-aligned-desktop",actionComponent:o&&l?(0,s.jsx)(eS.ms,{items:r,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&i(t)},initialSelectedItem:l,selectedItem:l,renderItem:e=>e?(0,s.jsx)(nO.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):(0,s.jsx)(C.az,{h:"2xl"})}),(0,s.jsxs)(G.BU,{children:[(0,s.jsx)(ek.$,{messageId:c?"rating_team_of_the_season":"rating_team_of_the_week"}),(0,s.jsxs)(C.az,{children:[(0,s.jsx)(nJ.I,{...x,isSeason:c}),(null==l?void 0:l.totwCreatedTimestamp)?(0,s.jsxs)(J.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,s.jsx)(eo.A,{id:"published"}),":"," ",(0,s.jsx)(nZ.XU,{value:1e3*l.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,s.jsx)(C.az,{h:"2xl"})]}),p&&(0,s.jsx)(C.az,{h:"4xl",bg:"surface.s2",br:"lg",hideBelow:"md"}),n&&l&&!p&&(0,s.jsx)(n1,{uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,sport:t.category.sport.slug,seasonId:n,roundId:l.totwRoundId})]})]}):null}function n2(e){let{uniqueTournament:t,seasonId:n,sportSlug:l}=e,i=t.id,{rounds:r,isLoading:o,selectedRound:d,setSelectedRound:u,hasWSC:c,hasTOTW:m}=function(e,t){var n;let s=(0,tr.d4)(nG.LQ),[l,i]=(0,S.useState)(void 0),r=t?a.V3t.teamOfTheWeekRounds(e,t):null,{data:o,isLoading:d}=(0,ec.Ay)(r),u=(null==o?void 0:o.rounds)||[],c=t&&s?a.vCt.tournamentRoundsWithVideoHighlights(s,e,t):null,{data:m,isLoading:x}=(0,ec.Ay)(c),h=(null==m?void 0:m.rounds.filter(e=>!u.find(t=>t.roundId===(null==e?void 0:e.eventRoundId))))||[],p=Array.from(new Set([...u.map(e=>e.roundSlug),...h.map(e=>e.roundSlug)])).map(e=>{var t;let n=u.find(t=>t.roundSlug===e),s=h.find(t=>t.roundSlug===e),a=(null==n?void 0:n.roundId)||(null==s?void 0:s.eventRoundId);return{eventRoundId:a,roundName:(null==n?void 0:n.roundName)||(null==s?void 0:s.eventRoundName)||a.toString(),roundSlug:(null==n?void 0:n.roundSlug)||(null==s?void 0:s.roundSlug),startDateTimestamp:null!=(t=(null==n?void 0:n.startDateTimestamp)||(null==s?void 0:s.startDateTimestamp))?t:null==n?void 0:n.createdAtTimestamp,totwRoundId:null==n?void 0:n.id,totwCreatedTimestamp:null==n?void 0:n.createdAtTimestamp}}).sort((e,t)=>{var n;return e.startDateTimestamp&&t.startDateTimestamp?t.startDateTimestamp-e.startDateTimestamp:null!=(n=t.startDateTimestamp)?n:0});return(0,S.useEffect)(()=>{i(p[0])},[t,null==(n=p[0])?void 0:n.roundSlug]),{rounds:p,isLoading:x||d,selectedRound:l,setSelectedRound:i,hasWSC:!!(null==m?void 0:m.rounds.length),hasTOTW:!!u.length}}(i,n),x=(0,eC.b)(i,"teamOfTheWeek"),h=l===a.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",p=n?(0,s.jsx)(nK,{uniqueTournamentId:i,seasonId:n,selectedRound:d,setSelectedRound:u,rounds:r,showPicker:!m,sportSlug:l}):null,g=(0,s.jsx)(n9,{uniqueTournament:t,seasonId:n,showPicker:!c,isRoundLoading:o,rounds:r,selectedRound:d,setSelectedRound:u});if(!o&&!m&&!c)return null;if(m&&c)return(0,s.jsx)(G.Zp,{children:(0,s.jsxs)(nL.b,{branding:x,entityId:i,location:"league_totw",children:[(0,s.jsx)(G.Zp.Header,{titleId:h,variant:"left-aligned",actionComponent:d?(0,s.jsx)(eS.ms,{items:r,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&u(t)},initialSelectedItem:d,renderItem:e=>e?(0,s.jsx)(nO.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):void 0}),p,g]})});if(m)return(0,s.jsx)(G.Zp,{children:(0,s.jsx)(nL.b,{branding:x,entityId:i,location:"league_totw",children:g})});if(c)return(0,s.jsx)(G.Zp,{children:p});if(l===a.QCR.Football)return(0,s.jsx)(G.Zp,{children:(0,s.jsx)(nL.b,{branding:x,entityId:i,location:"league_totw",children:g})});else return null}var n5=n(52363);let n4=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey],n8=[a.QCR.Football,a.QCR.Handball,a.QCR.Basketball,a.QCR.IceHockey,a.QCR.Tennis],n6=Q()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]},ssr:!1,loading:()=>(0,s.jsx)(D.E,{uniqueKey:"unique-tournament-media-cl-2",br:"lg"})}),n3=Q()(()=>Promise.all([n.e(4591),n.e(4824),n.e(3003)]).then(n.bind(n,73003)),{loadableGenerated:{webpack:()=>[73003]},loading:()=>(0,s.jsx)(ti.A,{})}),n7=Q()(()=>n.e(4672).then(n.bind(n,54672)),{loadableGenerated:{webpack:()=>[54672]},ssr:!1}),se=[1,133,16];function st(e){var t,n;let{uniqueTournament:l,seasons:i,info:r,seo:o,activeSeasonId:d,setActiveSeasonId:u=O(),hasEvents:c}=e,m=ev.zK[l.id],x=m&&(null==m?void 0:m.historyHighlightsEndYear),h=ey.excludedSeasonIds.includes(d),p=l.category.sport.slug,g=p===a.QCR.Football,j=i[0],v=i.find(e=>e.id===d),y=i[1]?i[1].name:"",f=(null==j?void 0:j.id)===d,b=se.includes(l.id),T=!!d&&n4.includes(p),w=n8.includes(p),S=(0,eC.b)(l.id,"banner"),{hasMedia:I,hasPlayerOfTheSeason:_}=(0,F.A)({hasMedia:{route:a.V3t.media(l.id)},hasPlayerOfTheSeason:{route:a.V3t.playerOfTheSeason(l.id,d),skipCheck:!d}},[d]),z=(null==(t=i[0])?void 0:t.id)===d;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t_,{uniqueTournament:l,seasons:i,seasonId:d,onSeasonChange:u}),(0,s.jsxs)(Z.xA,{py:"md",children:[(0,s.jsxs)(Z.fv,{flexGrow:1,children:[(!z||c||!d)&&(0,s.jsx)(U.t,{tag:"UniqueTournamentEventList",children:(0,s.jsx)(B.MC.Provider,{value:{isNarrow:!0,isShort:a.HwS.includes(p),location:Y.y.MatchesSection},children:d?(0,s.jsx)(n7,{uniqueTournamentId:l.id,seasonId:d},"UniqueTournamentEventList"):(0,s.jsx)(ep.A,{entity:a.wNW.UniqueTournament,id:l.id})})}),(0,s.jsx)(n5.Br,{uniqueTournamentId:l.id}),d&&(0,s.jsx)(nD.default,{uniqueTournamentId:l.id,seasonId:d}),g&&_&&(0,s.jsx)(nz,{uniqueTournamentId:l.id,seasonId:d,showLoader:!!(!f||l.endDateTimestamp&&(null==l?void 0:l.endDateTimestamp)n.e(5151).then(n.bind(n,45151)),{loadableGenerated:{webpack:()=>[45151]}}),sm=Q()(()=>n.e(4672).then(n.bind(n,54672)),{loadableGenerated:{webpack:()=>[54672]},ssr:!1});function sx(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.Matches,children:(0,s.jsx)(U.t,{tag:"UniqueTournamentEventList",children:n?(0,s.jsx)(sm,{uniqueTournamentId:t.id,seasonId:n},"UniqueTournamentEventList"):(0,s.jsx)(sc,{entity:a.wNW.UniqueTournament,id:t.id})})})}let sh=Q()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]}});function sp(e){let{id:t}=e;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.Media,children:(0,s.jsx)(G.BU,{children:(0,s.jsx)(sh,{uniqueTournamentId:t,hideTitle:!0})})})}let sg=Q()(()=>Promise.resolve().then(n.bind(n,78144)),{loadableGenerated:{webpack:()=>[78144]}});function sj(e){let{id:t,seasonId:n}=e;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.PowerRankings,children:(0,s.jsx)(G.BU,{children:(0,s.jsx)(sg,{uniqueTournamentId:t,seasonId:n})})})}let sv=Q()(()=>Promise.resolve().then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]}});function sy(e){let{uniqueTournament:t,seasonId:n,seo:a,lastSeasonName:l,info:i,currentSeason:r,selectedSeason:o}=e,d=(0,eC.b)(t.id,"standings");return(0,s.jsxs)(eS.tU.Panel,{tabKey:H.x.Standings,children:[d&&(0,s.jsx)(ss.O,{entityId:t.id,branding:d,bannerText:d.standingsText,location:"league_standings"}),(0,s.jsxs)(G.BU,{children:[(0,s.jsx)(sv,{uniqueTournament:t,seasonId:n,selectedSeason:o,isNarrowLayout:!0}),(0,s.jsx)(eg.pk,{utIds:[t.id]}),(0,s.jsx)(tl,{info:i,seo:a,details:t,season:r,lastSeason:l})]})]})}var sf=n(46664);let sb=Q()(()=>n.e(6344).then(n.bind(n,86344)),{loadableGenerated:{webpack:()=>[86344]}});function sT(e){let{uniqueTournament:t,seasonId:n}=e,l=(0,S.useContext)(_.Ws)===a.QCR.Tennis;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.TopPlayers,children:l?(0,s.jsx)(sf.default,{uniqueTournamentId:t.id,seasonId:n}):(0,s.jsx)(sb,{uTournamentId:t.id,seasonId:n,gender:t.gender})})}let sw=Q()(()=>n.e(5470).then(n.bind(n,25470)),{loadableGenerated:{webpack:()=>[25470]}});function sC(e){let{uniqueTournament:t,seasonId:n,gender:l=a.YT8.Male}=e;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.TopStats,children:(0,s.jsx)(sw,{uniqueTournamentId:t.id,seasonId:n,gender:l})})}let sS=Q()(()=>Promise.resolve().then(n.bind(n,46664)),{loadableGenerated:{webpack:()=>[46664]}});function sI(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(eS.tU.Panel,{tabKey:H.x.TopTeams,children:(0,s.jsx)(sS,{uniqueTournamentId:t.id,seasonId:n})})}function s_(e){var t;let{uniqueTournament:n,seasons:l,seasonId:i,onSeasonChange:r}=e,{isMobile:o}=(0,J.$c)(),d=(0,tK.hX)(),u=(0,tg.N)(n),c=!!(l.length&&i&&i===l[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),m=!o&&!d,x=n.id===a.G6l.WorldCup,{data:h}=(0,ec.Ay)(a.V3t.seasonEditors(n.id,i)),[p,g]=(0,S.useState)(!1),j=(0,S.useMemo)(()=>l.find(e=>e.id===i),[i,l]),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)(eS.az,{bg:"surface.s1",px:["lg",0],br:[void 0,"xl"],elevation:[void 0,3],position:"relative",children:[(0,s.jsxs)(tm.z4,{bgImageSrc:a.V3t.image(n.id),minH:[80,void 0],children:[(0,s.jsx)(eS.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)(tc.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)(eS.az,{flex:"1 1 auto",mr:[0,"lg"],children:[(0,s.jsxs)(eS.so,{align:"center",mt:["xs","sm"],wrap:"wrap",minH:"36",w:"100%",justify:"space-between",children:[(0,s.jsxs)(eS.az,{children:[(0,s.jsxs)(eS.so,{align:"center",children:[(0,s.jsxs)(eS.EY,{as:"h2",m:"0",font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],children:[u,(0,s.jsx)(tI,{uniqueTournamentId:n.id,seasonYear:null==j?void 0:j.year})]}),(0,s.jsx)(eS.az,{d:["none","inline-block"],mx:"sm",style:{verticalAlign:"middle"},children:(0,s.jsx)(tw.W,{groundType:n.groundType})}),m&&(0,s.jsx)(th.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament,isOnOverlay:!0})]}),(0,s.jsx)(eS.so,{w:"100%",align:"center",justify:"space-between",children:(0,s.jsxs)(eS.so,{align:"center",children:[(0,s.jsx)(tc.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:[16,32],h:[16,32],mr:"sm"}),(0,s.jsxs)(eS.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[" ",x?(0,s.jsx)(eS.EY,{as:"h3",font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],my:["sm",0],children:(0,s.jsx)(eo.A,{id:"wc.history.title"})}):(0,s.jsx)(R.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})]}),i&&(0,s.jsx)(eS.az,{position:"relative",zIndex:eS.Py.Fixed,children:(0,s.jsx)(tT.s,{seasonId:i,seasons:l,onSeasonChange:r},n.id)})]})})]}),!m&&(0,s.jsx)(th.e,{id:n.id,entity:a.bq7.Tournaments,location:Y.y.Header,type:Y.b.UniqueTournament})]}),!m&&(0,s.jsx)(eS.az,{d:["block","none"],mt:"sm",children:(0,s.jsx)(tw.W,{groundType:n.groundType})}),c?(0,s.jsx)(eS.az,{d:["none","block"],children:(0,s.jsx)(tb.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})}):null]}),m&&(0,s.jsxs)(tp.K,{id:n.id,name:u,entity:a.bq7.Tournaments,type:Y.b.UniqueTournament,children:[(0,s.jsx)(tc.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(eS.EY,{font:"display.medium",color:"primary.default",mr:"lg",children:u})]}),m&&!!(null==h?void 0:h.editors.length)&&(0,s.jsx)(eS.az,{mt:"xs",children:(0,s.jsx)(tx.i,{...y})})]}),c&&(0,s.jsx)(eS.az,{d:["block","none"],px:"sm",pb:"xs",children:(0,s.jsx)(tb.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})})]}),!m&&!!(null==h?void 0:h.editors.length)&&(0,s.jsx)(eS.az,{bg:"surface.s1",borderTop:"onSurface.nLv4",px:"sm",pt:"sm",children:(0,s.jsx)(tx.i,{...y})}),(0,s.jsx)(tf,{isOpen:p,setIsOpen:g,editorData:h})]})}var sA=n(6354);function sk(e){var t,n,l;let{uniqueTournament:i,seasons:r,activeSeasonId:o,setActiveSeasonId:d=O(),info:u,seo:c,activeTab:m,setActiveTab:x,hasStandingsData:h,hasEvents:p}=e,g=i.category.sport.slug,j=g===a.QCR.Tennis,v=r[0],y=r.find(e=>e.id===o),f=r[1]?r[1].name:"",{initialStandings:b}=(0,S.useContext)(sA.O),T=j||!o||!n8.includes(g),{data:w}=(0,ec.Ay)(o&&n4.includes(g)?a.V3t.seasonTypes(i.id,o,"player"):null),{hasKnockoutTab:I,hasTopPlayersTab:_,hasTeamSeasonTypes:A,hasMediaTab:z,hasPowerRankings:M}=(0,F.A)({hasKnockoutTab:{route:a.V3t.cupTrees(i.id,o),skipCheck:!o},hasTopPlayersTab:{route:a.V3t.seasonTypes(i.id,o,j?"team":"player"),skipCheck:!o||!(0,eT.w)(g,!0)},hasTeamSeasonTypes:{route:a.V3t.seasonTypes(i.id,o,"team"),skipCheck:T},hasMediaTab:{route:a.V3t.media(i.id)},hasPowerRankings:{route:a.V3t.powerRankingRounds(i.id,o)}},[o]),{data:R}=(0,ec.Ay)(T||!A?null:a.V3t.seasonTypes(i.id,o,"team")),{hasTopStatsTab:E}=(0,F.A)({hasTopStatsTab:{route:a.V3t.topPlayersPerGame(i.id,o,"all",(null==w?void 0:w.types[0])||a.Vw_.overall),skipCheck:!o||!n4.includes(g)||!(null==w||null==(t=w.types)?void 0:t[0])}},[w,o]),{hasTopTeamsTab:Y}=(0,F.A)({hasTopTeamsTab:{route:a.V3t.topTeams(i.id,o,(null==R?void 0:R.types[0])||a.Vw_.overall),skipCheck:T||!(null==R?void 0:R.types.length)}},[R,o]),P=!!(null==b?void 0:b.length)||h,N=(null==(n=r[0])?void 0:n.id)!==o||p||!o,q=[{tabKey:H.x.Standings,item:"app.standings",isHidden:!P},{tabKey:H.x.Details,item:"details"},{tabKey:H.x.Matches,item:"matches",values:{sport:(0,tJ.ap)(g)},isHidden:!N},{tabKey:H.x.Knockout,item:"knockout",isHidden:!I},{tabKey:H.x.TopPlayers,item:"top_players",values:{gender:null!=(l=i.gender)?l:"M"},isHidden:!_},{tabKey:H.x.TopStats,item:"top_stats",isHidden:!E},{tabKey:H.x.TopTeams,item:"top_teams",isHidden:!Y},{tabKey:H.x.Media,item:"media",isHidden:!z},{tabKey:H.x.PowerRankings,item:"Power Rankings",isHidden:!M}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(s_,{uniqueTournament:i,seasons:r,seasonId:o,onSeasonChange:d}),(0,s.jsxs)(sn.A,{id:i.id,location:sn.C.UniqueTournamentPage,seasonId:o,initialTabKey:m,customControls:[m,x],tabs:q,children:[P&&(0,s.jsx)(sy,{uniqueTournament:i,seasonId:o,seo:c,lastSeasonName:f,currentSeason:v,selectedSeason:y,info:u}),(0,s.jsx)(sd,{uniqueTournament:i,seasonId:o,currentSeason:v,lastSeasonName:f,info:u,seo:c,onPowerRankingsClick:()=>x(H.x.PowerRankings),showAbout:!P}),N&&(0,s.jsx)(sx,{uniqueTournament:i,seasonId:o}),I&&(0,s.jsx)(su.A,{uniqueTournament:i,seasonId:o,sport:g}),_&&(0,s.jsx)(sT,{uniqueTournament:i,seasonId:o}),E&&(0,s.jsx)(sC,{uniqueTournament:i,seasonId:o,gender:i.gender}),Y&&(0,s.jsx)(sI,{uniqueTournament:i,seasonId:o}),z&&(0,s.jsx)(sp,{id:i.id}),M&&(0,s.jsx)(sj,{id:i.id,seasonId:o})]}),(0,s.jsx)(n5.hz,{uniqueTournamentId:i.id}),(0,s.jsx)(C.az,{mb:"sm",children:(0,s.jsx)(k.iN,{id:k.Rj.MOBILE_ENTITY_BOTTOM})})]})}let sz={"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"},sM={1858:{id:"headerTitle.tt.bundesliga"},2122:{id:"headerTitle.tt.cl",values:{gender:a.YT8.Male}},9500:{id:"headerTitle.tt.cl",values:{gender:a.YT8.Female}},11457:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Male,type:"D"}},11458:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Female,type:"D"}},11459:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Mixed,type:"D"}},11455:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Male,type:"S"}},11456:{id:"headerTitle.tt.ec",values:{gender:a.YT8.Female,type:"S"}},9550:{id:"headerTitle.tt.ettu",values:{gender:a.YT8.Male}},9534:{id:"headerTitle.tt.ettu",values:{gender:a.YT8.Female}},564:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Male,type:"S"}},565:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Female,type:"S"}},1121:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Male,type:"T"}},1123:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:a.YT8.Female,type:"T"}},11579:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Male,type:"S"}},11586:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Female,type:"S"}},11587:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Mixed,type:"D"}},11580:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Male,type:"D"}},11585:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:a.YT8.Female,type:"D"}},1966:{id:"headerTitle.tt.wc",values:{gender:a.YT8.Male}},1964:{id:"headerTitle.tt.wc",values:{gender:a.YT8.Female}},11604:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Male,type:"S"}},10698:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Female,type:"S"}},10697:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Mixed,type:"D"}},10699:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Male,type:"D"}},10700:{id:"headerTitle.tt.junior.wc",values:{gender:a.YT8.Female,type:"D"}},15004:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:a.YT8.Male}},15007:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:a.YT8.Female}},15005:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:a.YT8.Male}},15009:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:a.YT8.Female}},15001:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:a.YT8.Male}},15068:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:a.YT8.Female}}};function sR(e){let{uniqueTournament:t,year:n}=e,{meta:l,seoContent:i}=(0,S.useContext)(u.xV),r=(0,c.A)(),o=(0,tg.N)(t);if(null==i?void 0:i.heading)return(0,s.jsx)(s.Fragment,{children:i.heading});if(l&&l.h1)return(0,s.jsx)(s.Fragment,{children:l.h1});if(t.id===a.G6l.Euro&&n)return(0,s.jsx)(eo.A,{id:"headerTitle.ut.euro",values:{year:n}});if(t.id===a.G6l.WorldCup)return(0,s.jsx)(eo.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:r.formatMessage({id:"headerTitle.tennis.v2"},n).trim()});if(sz[e])return(0,s.jsx)(s.Fragment,{children:r.formatMessage({id:sz[e]},n).trim()})}return d===a.QCR.TableTennis&&sM[t.id]?(0,s.jsx)(eo.A,{id:sM[t.id].id,values:sM[t.id].values}):(0,s.jsx)(eo.A,{id:"headerTitle.standings",values:{item:o}})}function sE(e){var t,n,l,i;let{uniqueTournament:r,seasons:o,initialStandings:d,initialHasHomeAway:u,hasEvents:c}=e,m=!!(null==d?void 0:d.length),x=r.category.sport.slug,[h,p]=(0,S.useState)(m?H.x.Standings:H.x.Details),g=(0,S.useMemo)(()=>{var e;return{id:null==(e=o[0])?void 0:e.id,tab:h}},[null==(t=o[0])?void 0:t.id]),[v,y]=(0,q.Ay)({routeKey:"uniqueTournament",params:{sport:x,category:r.category.slug,tournament:r.slug,id:r.id}},g),f=null==v?void 0:v.id,b=o.find(e=>e.id===f),T=e=>y("id",null==e?void 0:e.toString()),{hasStandingsData:w}=(0,F.A)({hasStandingsData:{route:a.V3t.standings(r.id,f),skipCheck:!f}},[f]);(0,S.useEffect)(()=>{void 0!==w&&p(w?H.x.Standings:H.x.Details)},[w]),(0,S.useEffect)(()=>{if(!o.find(e=>e.id===Number(f))){var e;T(null==(e=o[0])?void 0:e.id)}},[r.id]),(0,S.useEffect)(()=>{o.length>0&&""===window.location.hash&&T(o[0].id)},[]);let D=(0,s.jsx)(C.az,{bg:{mdDown:"surface.s1"},children:(0,s.jsxs)(I.B,{children:[(0,s.jsx)(I.B.Item,{children:(0,s.jsx)(j.di,{translatedParams:{sport:x},children:(0,s.jsx)(N.o,{sportSlug:x})})}),(0,s.jsx)(I.B.Item,{children:(0,s.jsx)(j.Z6,{category:r.category,children:(0,s.jsx)(R.m,{...r.category,uniqueTournament:r})})}),(0,s.jsx)(I.B.Title,{children:(0,s.jsx)(sR,{uniqueTournament:r,year:null==(n=o[0])?void 0:n.year})})]})});return(0,s.jsx)(sA.O.Provider,{value:{uniqueTournamentId:r.id,uniqueTournamentName:r.name,seasonId:null==b?void 0:b.id,editor:null==b?void 0:b.editor,initialStandings:f===(null==(l=o[0])?void 0:l.id)?d:void 0,initialHasHomeAway:f===(null==(i=o[0])?void 0:i.id)?u:void 0},children:(0,s.jsx)(E.MC.Provider,{value:{isShort:a.HwS.includes(x),location:Y.y.MatchesSection},children:(0,s.jsxs)(_.Ws.Provider,{value:x,children:[(0,s.jsx)(M.$B,{children:(0,s.jsxs)(z.YW,{children:[D,(0,s.jsx)(sk,{...e,activeSeasonId:f?Number(f):void 0,setActiveSeasonId:T,activeTab:(null==v?void 0:v.tab)||h,setActiveTab:e=>y("tab",e),hasStandingsData:w,hasEvents:c})]})}),(0,s.jsx)(M.h6,{children:(0,s.jsxs)(k.JR,{route:A.xW.UniqueTournament,children:[D,(0,s.jsx)(st,{...e,activeSeasonId:f?Number(f):void 0,setActiveSeasonId:T,hasEvents:c})]})}),(0,s.jsx)(P.A,{entity:a.bq7.MutedTournaments,entityGroup:"tournament",id:r.id,entityTournamentId:r.id})]})})})}var sY=n(71937),sP=n(25862),sH=n(65097);let sN=[a.QCR.Football,a.QCR.Tennis],sF={2122:{competitionName:"Champions League",gender:a.YT8.Male,type:"none"},9500:{competitionName:"Champions League",gender:a.YT8.Female,type:"none"},11457:{competitionName:"European Championship",gender:a.YT8.Male,type:"D"},11458:{competitionName:"European Championship",gender:a.YT8.Female,type:"D"},11459:{competitionName:"European Championship",gender:a.YT8.Mixed,type:"D"},11455:{competitionName:"European Championship",gender:a.YT8.Male,type:"S"},11456:{competitionName:"European Championship",gender:a.YT8.Female,type:"S"},9550:{competitionName:"ETTU Cup",gender:a.YT8.Male,type:"none"},9534:{competitionName:"ETTU Cup",gender:a.YT8.Female,type:"none"},564:{competitionName:"Olympic games",gender:a.YT8.Male,type:"S"},565:{competitionName:"Olympic games",gender:a.YT8.Female,type:"S"},1121:{competitionName:"Olympic games",gender:a.YT8.Male,type:"T"},1123:{competitionName:"Olympic games",gender:a.YT8.Female,type:"T"},11579:{competitionName:"World Championships",gender:a.YT8.Male,type:"S"},11586:{competitionName:"World Championships",gender:a.YT8.Female,type:"S"},11587:{competitionName:"World Championships",gender:a.YT8.Mixed,type:"D"},11580:{competitionName:"World Championships",gender:a.YT8.Male,type:"D"},11585:{competitionName:"World Championships",gender:a.YT8.Female,type:"D"},1966:{competitionName:"World Cup",gender:a.YT8.Male,type:"none"},1964:{competitionName:"World Cup",gender:a.YT8.Female,type:"none"},11604:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10698:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10697:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10699:{competitionName:"World Junior Championship",gender:void 0,type:"none"},10700:{competitionName:"World Junior Championship",gender:void 0,type:"none"},15004:{competitionName:"Setka Cup",gender:a.YT8.Male,type:"none"},15007:{competitionName:"Setka Cup",gender:a.YT8.Female,type:"none"},15005:{competitionName:"TT Cup",gender:a.YT8.Male,type:"none"},15009:{competitionName:"TT Cup",gender:a.YT8.Female,type:"none"},15001:{competitionName:"Ukraine Win Cup",gender:a.YT8.Male,type:"none"},15068:{competitionName:"Ukraine Win Cup",gender:a.YT8.Female,type:"none"}},sq=[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 sD(e){var t;if("error"in e)return(0,s.jsx)(sH.default,{statusCode:404});let{uniqueTournament:n,seasons:l,seo:c,info:m,params:x,meta:h,seoContent:g,locale:j,standings:v,hasHomeAwayStandings:y,hasEvents:b}=e;if(!n)return null;let T=n.category.sport.slug,w=n.id===a.G6l.Euro,C=n.id===a.G6l.WorldCup,S=w&&l.length?"Euro ".concat(l[0].year):n.name,I=w&&l.length?"European Championship ".concat(l[0].year):n.name,_=sF[n.id]||void 0,A=sN.includes(T)||!!g||_||f(n.id),k=(null==(t=n.category.alpha2)?void 0:t.toLowerCase())||"",z=!h&&(l.every(e=>e.editor)?!(0,r.N)(k,j):!A||(0,o.v)(T,j));return(0,s.jsxs)(u.an,{value:{meta:h,seoContent:g},children:[(0,s.jsxs)(i(),{children:[z&&(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"}),(0,s.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(d.z.getTranslatedCanonicalRoute(j,"uniqueTournament",x).route)}),(0,s.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/league/".concat(x.id)})]}),(0,s.jsx)(p,{uniqueTournament:n}),(0,s.jsx)(u.Ay,{metaKey:_?"standings.tabletennis":"standings",titleKey:C?"ut.worldCup":w?"ut.euro":void 0,descriptionKey:C?"ut.worldCup":w?"ut.euro":void 0,values:{item:S,fullItem:I,..._||{}}}),(0,s.jsx)(sE,{uniqueTournament:n,seasons:l,seo:c,info:m,initialStandings:v,initialHasHomeAway:y,hasEvents:b})]})}sD.getInitialProps=sY.A.getInitialPageProps(e=>async t=>{let{query:n,req:s,res:l,...i}=t,r=s?s._originalUrl:i.asPath,o=d.z.getCurrentLocale(r),u=s&&s.params?s.params:n,c=Number(u.id),m=d.z.getSportKey(u.sport,o);try{let t,n,s,i,[r,x,h,p,g]=await Promise.allSettled([a.jFR.fetchUniqueTournamentDetails(c),a.jFR.fetchUniqueTournamentSeasons(c),a.jFR.fetchUniqueTournamentSeo(c),a.sdF.getEntityMeta("uniquetournament",c,o),sq.includes(m)?a.sdF.getSeoContent(a.wNW.UniqueTournament,c,o):Promise.reject()]);if("rejected"===r.status)throw Error("Unique tournament does not exist");let j=r.value.uniqueTournament,v="fulfilled"===x.status?x.value.seasons:[];l&&j.category.sport.slug===a.QCR.MMA&&(l.writeHead(301,{Location:d.z.getTranslatedRoute(o,"mma.organisation",{organisationId:j.id,slug:j.slug,sport:j.category.sport.slug}).route}),l.end()),l&&(j.slug!==u.tournament||j.category.slug!==u.category)&&(l.writeHead(301,{Location:d.z.getTranslatedRoute(o,"uniqueTournament",{...u,category:j.category.slug,tournament:j.slug}).route}),l.end());let y=v.length?v[0].id:void 0;if(y){let[e,l,r,o,d]=await Promise.allSettled([a.jFR.fetchUniqueTournamentInfo(c,y),a.jFR.fetchStandings(c,y),(0,a.m_X)(a.V3t.standings(c,y,a.lpv.Home)),(0,a.m_X)(a.V3t.events(c,y,!0)),(0,a.m_X)(a.V3t.events(c,y))]);t="fulfilled"===e.status?e.value.info:void 0,n="fulfilled"===l.status?l.value.standings:void 0,s="fulfilled"===r.status&&r.value,i="fulfilled"===o.status&&"fulfilled"===d.status?o.value||d.value:void 0}let f="fulfilled"===h.status?h.value.meta:void 0,b="fulfilled"===p.status?p.value.entityMeta:void 0,T="fulfilled"===g.status?g.value.content:void 0;return e.dispatch((0,sP.Vy)(j.category.sport.slug)),{uniqueTournament:j,seasons:v,seo:f,info:t,params:u,meta:b,seoContent:T,locale:o,standings:n,hasHomeAwayStandings:s,hasEvents:i}}catch(e){return l&&(l.statusCode=404),{error:e}}})},32312:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var s=n(6029),a=n(89875),l=n(76356),i=n(90248);let r=()=>(0,s.jsxs)(l.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)(l.az,{flexGrow:1,flexShrink:1,ml:"lg",children:(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,s.jsx)(i.A,{id:"team"})})}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,s.jsx)(i.A,{id:"Pts"})})]})},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>s.E});var s=n(3881)},33243:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(91816),l=n(99064),i=n(947),r=n(50774);function o(e){let{person:t,hasImg:n,isLast:i,formattedRole:r}=e;return(0,s.jsxs)(l.so,{hoverBg:"surface.s2",children:[(0,s.jsx)(l.az,{px:"lg",py:"sm",children:(0,s.jsx)(a.d,{size:40,id:n?t.id:void 0,name:t.name})}),(0,s.jsx)(l.so,{borderBottom:i?void 0:"onSurface.nLv4",align:"center",flex:"1 1 auto",mr:"lg",children:(0,s.jsxs)(l.az,{flex:"1 1 auto",children:[(0,s.jsx)(l.so,{title:t.name,align:"center",children:(0,s.jsx)(l.EY,{font:"body.medium",color:"onSurface.nLv1",mr:"xs",pr:"xs",children:t.name})}),r&&(0,s.jsx)(l.EY,{font:"assistive.default",color:"onSurface.nLv3",mx:"xxs",ml:"xs",children:r})]})})]},t.id)}function d(e){let{supportStaff:t,manager:n}=e,a=(0,i.A)();return(0,s.jsxs)(l.az,{pb:["sm","md"],children:[n&&(0,s.jsx)(o,{person:n,hasImg:!0,isLast:0===t.length,formattedRole:a.formatMessage({id:"manager"})}),null==t?void 0:t.map((e,n)=>{let l=n===t.length-1,i=(0,r.u)(e.role),d=a.formatMessage({id:i});return(0,s.jsx)(o,{person:e,isLast:l,formattedRole:d!==i?d:void 0},e.id)})]})}},34884:(e,t,n)=>{"use strict";n.d(t,{i:()=>c});var s=n(6029),a=n(89875),l=n(76356),i=n(90248),r=n(65789),o=n(54409),d=n(82707),u=n(61836);function c(e){let{numberOfEditors:t,isOrganization:n,eventLocation:c,nickname:m,userId:x,hasStarted:h,isInLeagueHeader:p,onClick:g}=e,{isDesktop:j}=(0,a.$c)(),v=m?(0,s.jsx)(i.A,{id:h?"edited_by":"event.createdBy",values:{nickname:m}}):(0,s.jsx)(i.A,{id:"edited_by_more_editors",values:{number:t}}),y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"primary.default",children:v}),(0,s.jsx)(o._jO,{ml:"sm",height:16,width:16,fill:"primary.default"})]}),f=(0,s.jsxs)(a.$n,{size:"secondary",children:[v,(0,s.jsx)(o._jO,{})]});return m||t?(0,s.jsx)(r.Zp,{variant:"desktop-only",children:(0,s.jsx)(l.so,{justify:"flex-end",align:"center",px:{md:"lg"},py:{md:"sm"},children:g?(0,s.jsx)(l.az,{cursor:"pointer",onClick:g,children:p&&j?f:y}):n?(0,s.jsx)("a",{href:"https://torneo.sofascore.com/",target:"_blank",rel:"noreferrer",children:p&&j?f:y}):(0,s.jsx)(d.N_,{routeKey:"user",params:{userId:x},onClick:()=>(0,u.Zs)(c),children:p&&j?f:y})})}):null}},42021:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var s=n(6029),a=n(89875),l=n(55729),i=n(90248),r=n(54409),o=n(54053);let d=()=>{let[e,t]=(0,l.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:(0,s.jsx)(r.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:(0,s.jsx)(i.A,{id:"sofascore_power_rankings"})}),children:(0,s.jsx)(a.EY,{display:"block",maxW:{md:"[312px]"},px:"lg",textStyle:"body.mediumParagraph",children:(0,s.jsx)(i.A,{id:"power_rankings_description"})})})]})}},42360:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(6029),a=n(76356),l=n(65789);function i(){return(0,s.jsx)(l.Zp,{children:(0,s.jsx)(a.az,{h:"[762px]"})})}},43783:(e,t,n)=>{"use strict";n.d(t,{Q:()=>l});var s=n(21377),a=n(45860);function l(e,t,n){var l,i;let{data:r}=(0,a.Ay)(s.V3t.powerRankingRounds(e,t)),o=n||(null==r||null==(i=r.powerRankingRounds)||null==(l=i[0])?void 0:l.id),{data:d}=(0,a.Ay)(o?s.V3t.powerRankings(e,t,o):null);return{rankings:null==d?void 0:d.powerRankings,rounds:null==r?void 0:r.powerRankingRounds}}},45749:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var s=n(55729),a=n(85625),l=n(95868);let i=null,r=!1;async function o(){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,l.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function d(e){let{containerId:t,storyIds:n,location:d}=e,[u,c]=(0,s.useState)(r);(0,s.useEffect)(()=>{o();let e=()=>{r=!0,c(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[]),(0,s.useEffect)(()=>{if(!(null==n?void 0:n.length)||!i||!u||!t||!(0,l.R5)(t))return;let{eventId:e}=(0,l.Hw)(t);try{let s=i.Theme(d===a.D.TournamentPage?"row-rectangle":"row-rectangle-horizontal","story");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,{dataSource:i.DataSourceBuilder().ids({ids:n}),theme:s,maxDisplayItemsCount:e?1:void 0})}catch(e){console.error(e)}},[n.length,t,u])}},46664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Y});var s=n(6029),a=n(98423),l=n(21377),i=n(89875),r=n(76356),o=n(99064),d=n(55729),u=n(947),c=n(90248),m=n(65789),x=n(62859),h=n(74761),p=n(97918),g=n(57869),j=n(73404),v=n(56602),y=n(27892),f=n(12047),b=n(33144),T=n(82707),w=n(15771),C=n(94604);function S(){return(0,s.jsx)(r.az,{children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(r.az,{h:"5xl"},t))})}function I(e){let{teams:t,selectedStat:n,showFullListWithIndexes:a,sport:l,children:o}=e,d=a?t:t.slice(0,3);return(null==t?void 0:t.length)&&n?(0,s.jsxs)(r.az,{pb:"sm",children:[d.map((e,t)=>(0,s.jsx)(T.gT,{sport:l,team:e.team,children:(0,s.jsxs)(r.so,{h:"5xl",align:"center",gap:"sm",px:"lg",_hover:{bg:"surface.s2"},cursor:"pointer",children:[a&&(0,s.jsx)(i.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,s.jsxs)(r.so,{grow:1,align:"center",children:[(0,s.jsx)(b.p,{id:e.team.id,size:40}),(0,s.jsx)(i.EY,{ml:"lg",display:"block",children:(0,s.jsx)(C.Rm,{team:e.team})})]}),(0,s.jsx)(r.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(i.EY,{children:(0,s.jsx)(w.A,{stat:e.statistics,selectedStat:n,sport:l})})})]})},e.team.id)),o]}):(0,s.jsx)(S,{})}var _=n(45860),A=n(25459),k=n(79977),z=n(62666),M=n(6354);let R=e=>{let{options:t,sport:n}=e,a=(0,f.Ay)();return(0,s.jsx)(o.PI,{top:a,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:e=>(0,s.jsx)(r.az,{borderBottom:e?void 0:"1px solid {colors.neutrals.nLv4}",elevation:e?"2":void 0,children:(0,s.jsx)(p.F,{items:t,sport:n,asCard:!1})})})};function E(e){let{division:t,setDivision:n,divisions:u}=e,{uniqueTournamentId:c,uniqueTournamentName:m}=(0,d.useContext)(M.O);return(0,s.jsx)(o.ms,{items:[void 0,...u],renderItem:e=>(0,s.jsxs)(r.so,{align:"center",gap:"sm",children:[(0,s.jsx)(a.e,{id:c,size:24}),(0,s.jsx)(i.EY,{lineHeight:1,children:e?l.Wb[e]:null!=m?m:"-"})]}),selectedItem:t,onSelectedItemChange:e=>{var t;n(null!=(t=e.selectedItem)?t:void 0)}})}let Y=e=>{let{uniqueTournamentId:t,seasonId:n}=e,p=(0,u.A)(),f=(0,d.useContext)(x.Ws),[b,T]=(0,d.useState)(!1),[w,C]=(0,d.useState)(""),[S,M]=(0,d.useState)([]),{division:Y,setDivision:P,divisions:H}=function(e,t){let[n,s]=(0,d.useState)(),{data:a,isLoading:i,error:r}=(0,_.Ay)(e&&t?l.V3t.divisions(e,t):null);if(i||r||!a)return{division:n,setDivision:s,divisions:[]};let o=function(e){let t=[],n=[];for(let{conference:s,divisions:a}of e.divisions)t.push(s),n.push(...a);return[...t,...n]}(a);return 35115===t&&(o=["central-division"]),{division:n,setDivision:s,divisions:o}}(t,n),N=(0,A.A)({uniqueTournamentId:t,seasonId:n,division:Y}),F=f===l.QCR.Tennis,q=f?(0,g.f)(f):null,{topTeams:D,stats:L,types:O,activeType:W,setActiveType:Q}=N,G=null==L?void 0:L.map(e=>({value:e,label:F?p.formatMessage({id:(0,y.O)(l.QCR.Tennis,e)}):(0,j.b)(p,e,null==q?void 0:q.includes(e))})),U=(e,t)=>{T(!0),C(e),M(t)};return(0,s.jsxs)(s.Fragment,{children:[!!H.length&&(0,s.jsx)(r.so,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(E,{division:Y,setDivision:P,divisions:H})}),!!O&&O.length>1&&!!W&&(0,s.jsx)(r.az,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(z.A,{selectedType:W,setSelectedType:Q,types:O})}),(0,s.jsx)(R,{options:G,sport:f}),(0,s.jsx)(m.BU,{children:!!(null==G?void 0:G.length)&&G.map(e=>{var t,n,l;let o=D&&e&&D[e.value]||[],d=(0,g.g)(f);return((null==d?void 0:d.includes(e.value))||!d)&&(0,s.jsx)(m.Zp,{children:(0,s.jsxs)(r.az,{id:null==(t=e.value)?void 0:t.toLowerCase(),children:[(0,s.jsxs)(r.so,{align:"center",justify:"space-between",p:"lg",pr:"xs",children:[(0,s.jsxs)(r.so,{align:"center",children:[(0,s.jsx)(i.EY,{textStyle:"display.small",children:(0,s.jsx)(k.A,{id:e.value})}),"avgRating"===e.value&&(0,s.jsx)(v.D,{type:v.D.type.AverageRatingTeam,rating:null==o||null==(l=o[0])||null==(n=l.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)(i.$n,{size:"tertiary",variant:"clear",onClick:()=>U(e.value,o),children:(0,s.jsx)(i.EY,{textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(c.A,{id:"see_all"})})})]}),(0,s.jsx)(I,{teams:o,selectedStat:e.value,sport:f,children:"avgRating"===e.value&&(0,s.jsx)(h.$,{mx:"sm",messageId:"rating_top_teams_general"})})]})},e.value)})}),(0,s.jsxs)(o.Xn,{isOpen:b,onClose:e=>{null==e||e.stopPropagation(),T(!1)},children:[(0,s.jsx)(o.Xn.Header,{children:(0,s.jsx)(i.EY,{textStyle:"display.medium",display:"block",mb:"md",children:(0,s.jsx)(k.A,{id:w})})}),(0,s.jsxs)(o.Xn.Content,{children:["avgRating"===w&&(0,s.jsx)(h.$,{mx:"sm",mb:"sm",messageId:"rating_top_teams_specific"}),(0,s.jsx)(I,{teams:S,selectedStat:w,showFullListWithIndexes:!0,sport:f})]})]})]})}},48127:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var s=n(6029),a=n(99064),l=n(13731),i=n.n(l),r=n(59018),o=n.n(r);function d(e){let{onSeasonChange:t,seasons:n,seasonId:l,alignRight:r}=e,d=i()(n,"year"),u=o()(n.map(e=>e.year)),c=n.find(e=>e.id===l)||n[0],m=c&&d[c.year],x=(null==m?void 0:m.length)>1;return(0,s.jsxs)(a.so,{wrap:"wrap",flex:["1 1 100%",void 0],mt:[0,"sm","xs"],zIndex:a.Py.Dropdown,children:[(0,s.jsx)(a.ms,{mr:"sm",items:u,selectedItem:(null==c?void 0:c.year)||u[0],onSelectedItemChange:e=>{let{selectedItem:n}=e;if(n&&d[n]){let e=d[n];e.length&&t(e[0].id)}},alignRight:r}),x&&(0,s.jsx)(a.ms,{items:m,selectedItem:c,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)(a.EY,{font:"body.small",color:"inherit",maxW:t?96:void 0,block:!0,ellipsis:!0,children:n.replace(c.year,"")})}return""},alignRight:!0,mt:[0,"sm",0]},c.year)]})}},48702:(e,t,n)=>{"use strict";n.d(t,{e:()=>s});let s=(0,n(55729).createContext)({})},49679:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var s=n(6029),a=n(32523),l=n(76356),i=n(33144),r=n(21377),o=n(89875),d=n(82707),u=n(94604);function c(e){return(0,s.jsx)(d.gT,{team:e.team,sport:r.QCR.Football,children:(0,s.jsxs)(l.so,{align:"center",px:"sm",py:"sm",_hover:{bg:"surface.s2"},children:[(0,s.jsx)(o.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",children:e.rank}),(0,s.jsx)(i.p,{ml:"lg",mr:"sm",id:e.team.id,national:!0,size:32}),(0,s.jsx)(l.az,{flexGrow:"1",flexShrink:"1",children:(0,s.jsx)(o.EY,{textStyle:"table.medium",children:(0,s.jsx)(u.Rm,{team:e.team})})}),(0,s.jsx)(l.az,{children:(0,s.jsx)(o.EY,{textStyle:"table.medium",children:e.points})})]})})}let m=e=>{let{rankings:t}=e;return(0,s.jsx)(l.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})})}},50774:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,u:()=>l});var s=n(6029),a=n(90248);let l=e=>e.replaceAll("-","_"),i=e=>{let{role:t}=e;return(0,s.jsx)(a.A,{id:l(t)})}},52827:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var s=n(1815),a=n(61836),l=n(95868);function i(e){let t=(0,l.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)},54686:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(18612),l=n(21377),i=n(99064);let r=e=>{let{start:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("rect",{x:"16",y:t+12,width:"38",height:"10"}),(0,s.jsx)("rect",{x:"16",y:t+24,width:"38",height:"10"}),(0,s.jsx)("rect",{x:"68",y:t+8,width:"1",height:"28"}),(0,s.jsx)("rect",{x:"79",y:t+8,rx:"2",ry:"2",width:148,height:"12"}),(0,s.jsx)("rect",{x:"79",y:t+24,rx:"2",ry:"2",width:172,height:"12"})]})},o=e=>{let{start:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"34",cy:t+22,r:"16"}),(0,s.jsx)("rect",{x:"68",y:t+8,rx:"2",ry:"2",width:56,height:"12"}),(0,s.jsx)("rect",{x:"68",y:t+24,rx:"2",ry:"2",width:220,height:"12"}),(0,s.jsx)(r,{start:t+44}),(0,s.jsx)("rect",{x:0,y:t+88+4,height:1,width:991})]})};function d(e){let{sport:t,initialEventCount:n=9,isHomePage:r}=e;return(0,s.jsx)(i.az,{overflow:"hidden",children:(0,s.jsx)(a.D,{height:r?t===l.QCR.Football?3500:1024:96*n,uniqueKey:"list-cl",children:Array.from({length:n}).map((e,t)=>(0,s.jsx)(o,{start:99*t+0},t))})})}},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:"- ",mr:"sm"},"& + li":{marginTop:"sm"}}}}})},57869:(e,t,n)=>{"use strict";n.d(t,{f:()=>l,g:()=>a});var s=n(21377);function a(e){return e===s.QCR.IceHockey?["powerPlayPercentage","penaltyKillPercentage","goals","goalsAgainst","shots","shotsAgainst","hits","blocks","faceOffPercentage","penaltyMinutes"]:null}function l(e){return e===s.QCR.IceHockey?["goals","goalsAgainst","shots","shotsAgainst","hits","blocks","penaltyMinutes"]:null}},59754:(e,t,n)=>{"use strict";n.d(t,{C:()=>l,Z:()=>i});var s=n(494),a=n(151);let l=(e,t,n)=>{var s,a,l;let i=null==(s=e.tournament.uniqueTournament)?void 0:s.id;if(i&&(null==n||null==(l=n.uniqueTournaments)||null==(a=l[i])?void 0:a[t]))return null==n?void 0:n.uniqueTournaments[i]},i=(e,t)=>l(e,t,(0,s.d4)(a.g))},64073:(e,t,n)=>{"use strict";n.d(t,{K:()=>f});var s=n(6029),a=n(89875),l=n(76356),i=n(9127),r=n(90112),o=n(12364),d=n.n(o),u=n(55729),c=n(90248),m=n(494),x=n(83201),h=n(54409),p=n(8973),g=n(83260),j=n(12759),v=n(46009);let y=(0,i.m)(l.az);function f(e){let{id:t,name:n,entity:i,children:o,threshold:f=144,type:b}=e,[T,w]=(0,u.useState)(0),[C,S]=(0,g.A)("sticky_follow_header_closed_".concat(i),!1),I=(0,j.Pz)(i),_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,s]=(0,u.useState)(e);return(0,u.useEffect)(()=>{let n=setTimeout(()=>{s(e)},t);return()=>clearTimeout(n)},[e]),n}((0,m.d4)(e=>e.favorites.lists[I[0]].includes(t)||2===I.length&&e.favorites.lists[I[1]].includes(t)));return(0,u.useEffect)(()=>{if(C)return;let e=d()(()=>{window.requestAnimationFrame(()=>{w(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[T,C]),(0,s.jsx)(r.N,{children:T>f&&!_&&(0,s.jsx)(y,{position:"fixed",left:"0",right:"0",mt:"0 !important",h:"[168px]",bg:"surface.sp",textAlign:"center",initial:{top:-160,opacity:0},animate:{top:0,opacity:1},exit:{top:-160,opacity:0},transition:{type:"spring",bounce:.3,restDelta:.5},zIndex:"subheader",elevation:"3",children:(0,s.jsx)(l.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,s.jsx)(x.m,{h:"5xl",py:"sm",children:(0,s.jsxs)(l.so,{h:"[40px]",children:[(0,s.jsx)(l.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,s.jsxs)(l.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[o,(0,s.jsx)(v.e,{id:t,entity:i,type:b,location:p.y.FloatingHeader})]})}),(0,s.jsx)(l.so,{align:"center",flex:"[1 1 50%]",children:(0,s.jsx)(a.EY,{textStyle:"assistive.default",ml:"lg",children:(0,s.jsx)(c.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,s.jsx)(l.so,{align:"center",children:(0,s.jsx)(a.$n,{variant:"clear",p:"0",onClick:()=>{S(!0),w(0)},children:(0,s.jsx)(h.zQC,{icon:"close"})})})]})})})})})}},70115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),a=n(99064),l=n(71024),i=n.n(l),r=n(58047);let o=i()(()=>Promise.all([n.e(4824),n.e(8718)]).then(n.bind(n,63848)),{loadableGenerated:{webpack:()=>[63848]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:l}=e;return(0,s.jsx)(a.tU.Panel,{tabKey:r.x.Knockout,children:(0,s.jsx)(o,{sport:l,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},73404:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,b:()=>c});var s=n(6029),a=n(99064),l=n(55729),i=n(90248),r=n(50677),o=n(27892),d=n(57869),u=n(65789);function c(e,t,n,s,a){let l=a?(0,o.O)(r,t,s):t,i=e.formatMessage({id:"".concat(l)});if(n){let t=e.formatMessage({id:"per_match"}).toLocaleLowerCase();i=i.concat(" ").concat(t)}return i}function m(e){let{items:t,sport:n,asCard:r=!0}=e,[o,c]=(0,l.useState)(0),m=n?(0,d.g)(n):null,x=t.filter(e=>!m||m.includes(e.value)).sort((e,t)=>e.label.localeCompare(t.label));(0,l.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:!!r,children:(0,s.jsx)(a.az,{p:"sm",children:(0,s.jsx)(a.ms,{items:x,renderItem:(e,t)=>t?(0,s.jsx)(i.A,{id:"quick_find"}):(null==e?void 0:e.label)||null,onSelectedItemChange:e=>{e.selectedItem&&h(e.selectedItem)},forceMenuBelow:!0})})})}},73463:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var s=n(6029),a=n(21377),l=n(89875),i=n(76356),r=n(55729),o=n(90248),d=n(65789),u=n(62859),c=n(54409),m=n(75751),x=n(53486),h=n(75508),p=n(26413),g=n(62827),j=n(99064);let v={singles:"tennis_singles",doubles:"tennis_doubles",all:"basic.all"},y=e=>{let{onTabChange:t,value:n}=e;return(0,s.jsx)(j.tU,{variant:"quaternary",value:n,onChange:t,children:(0,s.jsx)(j.tU.List,{px:"lg",py:"sm",children:Object.values(a.nJ5).map(e=>(0,s.jsx)(j.tU.Tab,{tabKey:e,children:(0,s.jsx)(o.A,{id:v[e]})},"tab-".concat(e)))})})};var f=n(6354),b=n(99325);let T=e=>{let{listRef:t,hasPreviousPage:n,hasNextPage:d,toNextPage:m,toPreviousPage:x,events:p,eventCell:g,isPlayer:j,transfers:v,children:b,setMatchesTypeFilter:T,matchesTypeFilter:w}=e,{isMobile:C}=(0,l.$c)(),S=(0,r.useContext)(u.Ws),I=(0,r.useContext)(f.O),_=I.editor&&I.seasonId&&I.uniqueTournamentId,A=j?p.filter(e=>!e.isAwarded):p;return(0,s.jsxs)("div",{ref:t,children:[S===a.QCR.Tennis&&T&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"}),(0,s.jsx)(y,{value:null!=w?w:a.nJ5.All,onTabChange:e=>{null==T||T(e===a.nJ5.All?void 0:e)}}),!C&&(0,s.jsx)(i.cG,{color:"neutrals.nLv4",borderBlockEndStyle:"solid"})]}),(n||d)&&(0,s.jsxs)(i.so,{py:"sm",px:"lg",justify:"space-between",minH:"[50px]",children:[(0,s.jsx)(i.az,{children:n&&(0,s.jsxs)(l.$n,{variant:"outline",h:"2xl",py:"xs",px:"sm",onClick:x,children:[(0,s.jsx)(c.pa2,{fill:"primary.default",mr:"xs"}),(0,s.jsx)(l.EY,{textStyle:"action.button.secondary",color:"primary.default",children:(0,s.jsx)(o.A,{id:"previous"})})]})}),(0,s.jsx)(i.az,{children:d&&(0,s.jsxs)(l.$n,{variant:"outline",h:"2xl",py:"xs",px:"sm",onClick:m,children:[(0,s.jsx)(l.EY,{textStyle:"action.button.secondary",color:"primary.default",children:(0,s.jsx)(o.A,{id:"next"})}),(0,s.jsx)(c.CCT,{fill:"primary.default",ml:"xs"})]})})]}),(0,s.jsxs)(i.az,{minH:{base:"auto",md:"[600px]"},pt:"2xs",pb:{base:"sm",md:_?"sm":"3xl"},br:{mdDown:"lg"},borderTop:{md:"1px solid {colors.neutrals.nLv4}"},children:[(0,s.jsx)(h.b,{events:A,isMobile:C,eventCell:g,isEventCellFactory:j,transfers:v}),b]})]})};function w(e){let{entity:t,id:n,seasonId:l,player:o,hideHeader:c,transfers:h,hasSingles:j,hasDoubles:v}=e,[y,w]=(0,r.useState)(void 0),C=(0,r.useContext)(f.O),S=(0,r.useContext)(u.Ws),I=C.editor&&C.seasonId&&C.uniqueTournamentId,_=110*!!I,A=(0,r.useRef)(null),k=e=>{let{managedTeamMap:s,playedForTeamMap:l}=e;return(e,i)=>t===a.wNW.Team?e===n:t===a.wNW.Manager&&s&&i?e===s[i]:t===a.wNW.Player&&!!l&&!!i&&e===l[i]},z=(e,n,s,l,i)=>t===a.wNW.Team&&n?(0,x.ey)({isReferenceTeamId:k({playedForTeamMap:n})}):t===a.wNW.Manager&&s?(0,x.ey)({isReferenceTeamId:k({managedTeamMap:s}),incidentsMap:i,entity:t}):t===a.wNW.Player?t=>{var s,a,r,d;return(0,x.G)({rating:null==(s=e[t])?void 0:s.rating,points:null!=(r=null==e||null==(a=e[t])?void 0:a.points)?r:0,isOnBench:null!=(d=null==l?void 0:l[t])&&d,playedFor:n?n[t]:void 0,incidents:i?i[t]:void 0,player:o,isReferenceTeamId:k({playedForTeamMap:n})})}:x.gY,M=t===a.wNW.Player;return(0,s.jsx)(m.t,{tag:"EventListContainer",children:(0,s.jsx)(p.w,{entity:t,id:n,seasonId:l,matchesTypeFilter:j&&v?y:void 0,children:e=>{let{events:t,toNextPage:n,toPreviousPage:a,hasNextPage:l,hasPreviousPage:r,managedTeamMap:o,statisticsMap:u,playedForTeamMap:m,incidentsMap:x,onBenchMap:p}=e,f=z(u,m,o,p,x);return(0,s.jsxs)(d.HH,{isCard:!c,children:[!c&&(0,s.jsx)(d.Zp.Header,{titleId:"matches",values:{sport:(0,g.ap)(S)}}),(0,s.jsx)(T,{listRef:A,hasPreviousPage:r,hasNextPage:l,toNextPage:n,toPreviousPage:a,events:t,eventCell:f,isPlayer:M,transfers:h,matchesTypeFilter:j&&v?y:void 0,setMatchesTypeFilter:j&&v?w:void 0,children:I&&(0,s.jsx)(i.az,{style:{height:_},p:"sm",children:(0,s.jsx)(b.G,{tournamentId:C.uniqueTournamentId,seasonId:C.seasonId})})})]})}})})}},74761:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var s=n(6029),a=n(89875),l=n(62042),i=n(76356),r=n(90248),o=n(83260),d=n(54409);function u(e){let{messageId:t,children:n,onClick:u,...c}=e,[m,x,h]=(0,o.A)(t,!1);return!h||m?null:(0,s.jsxs)(i.so,{align:"center",bg:"surface.s2",br:"lg",py:"sm",pl:"lg",className:(0,l.AH)(c),children:[(0,s.jsx)(i.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",children:[(0,s.jsx)(r.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),n=0;n{null==u||u(),x(!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)}}},75508:(e,t,n)=>{"use strict";n.d(t,{b:()=>p});var s=n(6029),a=n(99064),l=n(65789),i=n(53486),r=n(54686),o=n(33144),d=n(4967),u=n(90510),c=n(54409),m=n(82967);let x=e=>{var t,n,l,i;let{transfers:r,firstEventTimestamp:x,secondEventTimestamp:h,descending:p}=e;if(!r)return null;let g=r.find(e=>p?e.transferDateTimestamp<=x&&e.transferDateTimestamp>=h:e.transferDateTimestamp>=x&&e.transferDateTimestamp<=h);return(0,s.jsxs)(a.az,{id:"player-transfer",display:g?"box":"none",mt:"sm",children:[(0,s.jsx)(a.so,{w:"100%",align:"end",px:"md",justify:"center",children:(0,s.jsx)(o.p,{id:p?null==g||null==(t=g.transferTo)?void 0:t.id:null==g||null==(n=g.transferFrom)?void 0:n.id,size:32,mx:"auto"})}),(0,s.jsxs)(a.so,{w:"100%",align:"center",position:"relative",children:[(null==g?void 0:g.transferDateTimestamp)&&(0,s.jsx)(a.EY,{color:"onSurface.nLv3",fontSize:12,as:"div",position:"absolute",left:"md",bottom:"lg",children:(0,s.jsx)(u.XU,{value:new Date((null==g?void 0:g.transferDateTimestamp)*1e3),...d.or.fullDate})}),(0,s.jsx)(a.cG,{color:"onSurface.nLv4",w:"100%"}),(0,s.jsx)(a.az,{w:24,h:24,style:{transform:"\n rotate(".concat(180*!!p,"deg)")},children:(0,s.jsx)(c.QFN,{fill:"onSurface.nLv1",width:24,height:24})}),g&&(0,s.jsxs)(a.so,{position:"absolute",right:"md",bottom:"lg",children:[(0,s.jsx)(a.EY,{color:"onSurface.nLv3",fontSize:12,as:"div",mr:"sm",children:(0,s.jsx)(m.u,{transfer:g})}),(0,s.jsx)(a.EY,{fontSize:12,color:"secondary.default",as:"div",children:g.transferFeeDescription})]}),(0,s.jsx)(a.cG,{color:"onSurface.nLv4",w:"100%"})]}),(0,s.jsx)(a.so,{w:"100%",align:"end",px:"md",position:"relative",justify:"center",children:(0,s.jsx)(o.p,{id:p?null==g||null==(l=g.transferFrom)?void 0:l.id:null==g||null==(i=g.transferTo)?void 0:i.id,size:32,mx:"auto"})})]})};var h=n(31254);function p(e){let{events:t,header:n,descending:o,isMobile:d,isNarrow:u,isShort:c,transfers:m,eventCell:p,isEventCellFactory:g,triggerIndex:j,triggerRef:v,hideHeader:y,location:f,asCards:b,numberOfEvents:T}=e,w=n||h.sm;if(!t||!t.length)return(0,s.jsx)(r.A,{initialEventCount:T});let C=t.sort((e,t)=>o?e.startTimestamp>=t.startTimestamp?-1:1:e.startTimestamp>=t.startTimestamp?1:-1).slice(0,T),S=[];return C.forEach((e,t)=>{let n=e.tournament.id;S.length&&S[S.length-1].tournamentId===n?S[S.length-1].events.push(e):S.push({tournamentId:e.tournament.id,events:[e],startIndex:t})}),(0,s.jsx)(a.so,{direction:"column",p:b?"sm":void 0,gap:b?"sm":void 0,children:S.map((e,n)=>(0,s.jsx)(l.HH,{isCard:!!b,children:(0,s.jsx)(a.az,{pb:b?"sm":void 0,pt:b?"xs":void 0,children:e.events.map((n,l)=>{var r;let h=g&&"function"==typeof p?p(n.id):p||i.gY;return(0,s.jsxs)(a.az,{ref:l+e.startIndex===j?v:void 0,children:[0===l&&!y&&(0,s.jsx)(w,{tournament:n.tournament,sport:n.tournament.category.sport,startTimestamp:n.startTimestamp}),(0,s.jsx)(h,{event:n,isMobile:d,isNarrow:u,isShort:c,location:f}),(0,s.jsx)(x,{transfers:m,firstEventTimestamp:n.startTimestamp,secondEventTimestamp:null==(r=t[l+1])?void 0:r.startTimestamp,descending:o})]},n.id)})})},"".concat(e.tournamentId,"-").concat(n)))})}},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:()=>g});var s=n(6029),a=n(89875),l=n(99064),i=n(55729),r=n(90248),o=n(65789),d=n(23727),u=n(75751),c=n(47530),m=n(43783),x=n(49679),h=n(42021),p=n(32312);function g(e){let{isMobile:t}=(0,a.$c)(),[n,g]=(0,i.useState)(t),[j,v]=(0,i.useState)(),{rankings:y,rounds:f}=(0,m.Q)(e.uniqueTournamentId,e.seasonId,j);if((0,i.useEffect)(()=>f&&v(f[0].id),[f]),!(null==f?void 0:f.length))return null;let b=!t&&!!y&&y.length>5;return(0,s.jsx)(u.t,{tag:"PowerRankings",children:(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{title:(0,s.jsx)(r.A,{id:"sofascore_power_rankings"}),actionComponent:(0,s.jsx)(h.h,{})}),f&&j&&(0,s.jsx)(l.az,{mb:"sm",p:"sm",children:(0,s.jsx)(l.ms,{items:f,initialSelectedItem:f[0],onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&v(t.id)},renderItem:e=>(0,s.jsx)(c.DT,{round:null==e?void 0:e.round})})}),(0,s.jsx)(p.i,{}),(0,s.jsx)(x.a,{rankings:null==y?void 0:y.slice(0,n?y.length:5)}),(0,s.jsx)(o.Zp.Footer,{ctaParams:b?{messageId:n?"show_less":"show_more",onClick:()=>g(e=>!e),icon:n?d.X.Up:d.X.Down}:void 0})]})})}},79528:(e,t,n)=>{"use strict";n.d(t,{b:()=>l});var s=n(494),a=n(151);let l=(e,t)=>{var n,l;let i=(0,s.d4)(a.g);if(e&&(null==i||null==(l=i.uniqueTournaments)||null==(n=l[e])?void 0:n[t]))return null==i?void 0:i.uniqueTournaments[e]}},79977:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(6029),a=n(89875),l=n(55729),i=n(90248),r=n(62859),o=n(57869),d=n(27892);let u=JSON.parse('{"basketball":{"fastbreakPoints":"basketball_fast_break_points"},"tennis":{"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"},"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","cleanSheets":"football_clean_sheets"}');function c(e){let{id:t}=e,n=(0,l.useContext)(r.Ws),c=n?(0,o.f)(n):null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{id:(0,d.O)(u,t,n)}),(null==c?void 0:c.includes(t))&&(0,s.jsxs)(a.EY,{textStyle:"[inherit]",textTransform:"lowercase",children:[" ",(0,s.jsx)(i.A,{id:"per_match"})]})]})}},82967:(e,t,n)=>{"use strict";n.d(t,{N:()=>o,u:()=>d});var s=n(6029),a=n(21377),l=n(90248),i=n(85685);let r={1:"transfer_loan",2:"transfer_end_of_loan",3:"transfer_transfer",4:"player.endOfCareer",5:"player.draft",6:"player.released",7:"player.signed"},o=e=>{let{transfer:t}=e;if(void 0!==t.transferFeeRaw&&t.transferFeeRaw.value>0)return(0,s.jsx)(i.o,{parsedMoney:(0,a.oaz)(t.transferFeeRaw)});switch(t.type){case a.uDD.Draft:if(void 0===t.round||void 0===t.pick)return null;return(0,s.jsx)(l.A,{id:"player.draftInfo",values:{round:t.round,pick:t.pick}});case a.uDD.EndOfLoan:case a.uDD.EndOfCareer:return null;case a.uDD.Transfer:if(void 0!==t.transferFeeRaw&&0===t.transferFeeRaw.value&&"Free"===t.transferFeeDescription)return(0,s.jsx)(l.A,{id:"transfer_free"});if(void 0===t.transferFeeDescription||"Unknown"===t.transferFeeDescription)return(0,s.jsx)(l.A,{id:"player.transfer.unknown"});return null;default:return null}},d=e=>{let{transfer:t}=e;return(0,s.jsx)(l.A,{id:r[t.type]})}},85625:(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}({})},90863:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(21377),a=n(45860);let l=function(e){let{uniqueTournamentId:t,seasonId:n,position:l="all",type:i=s.Vw_.overall}=e,r=t&&n?s.V3t.topPlayersPerGame(t,n,l,i):null,{data:o,error:d}=(0,a.Ay)(r);return{topPlayersPerGame:o,isError:d}}},91816:(e,t,n)=>{"use strict";n.d(t,{d:()=>s.d});var s=n(25635)},95868:(e,t,n)=>{"use strict";n.d(t,{MB:()=>r,Hw:()=>o,hT:()=>u,R5:()=>d});var s=n(61836),a=n(85625);let l="___sofa-wsc___",i=e=>{let t=new RegExp("".concat(l,"(.*?)").concat(l)),n=e.match(t);return n?n[1]:""},r=e=>{let{type:t,location:n,tournamentId:s,roundId:a,eventId:i,screen:r}=e;return"".concat(l).concat(r,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(a,"--").concat(i).concat(l)},o=e=>{let[t,n,s,a,l,r]=i(e||"").split("--");return{screen:t,type:n,location:s,tournamentId:Number(a),roundId:"null"===l||"undefined"===l?null:Number(l),eventId:"null"===r||"undefined"===r?null:Number(r)}},d=e=>{let{screen:t,type:n,location:s,tournamentId:l,roundId:i,eventId:r}=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(l)));else if(i&&isNaN(Number(i)));else if(!(r&&isNaN(Number(r))))return!0}throw Error(d)},u=e=>{var t,n;let a=null==(t=e.detail)?void 0:t.eventData,l=(null==a?void 0:a.widget_id)||(null==a?void 0:a.origin_widget_id),i=null==(n=e.detail)?void 0:n.eventType;if(i&&l){let{eventId:e,tournamentId:t,location:n}=o(l);switch(i){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})}}}},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)},99325:(e,t,n)=>{"use strict";n.d(t,{G:()=>d});var s=n(6029),a=n(21377),l=n(947),i=n(90248),r=n(79387),o=n(19451);let d=e=>{let{tournamentId:t,seasonId:n}=e,{locale:d}=(0,l.A)(),u=(0,o.vf)(d),c="".concat(a.yuv).concat(u?"/".concat(u):"","/embed/unique-tournament/").concat(t,"/season/").concat(n,"/editorFixtures"),m="sofa-fixtures-embed-".concat(t,"-").concat(n),x='');return(0,s.jsx)(r.C,{callToAction:(0,s.jsx)(i.A,{id:"fixtures.embedCTA"}),embedString:x})}},99397:(e,t,n)=>{"use strict";n.d(t,{G:()=>a.A,t:()=>s.t});var s=n(91407),a=n(94400)}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,9888,6591,395,4632,3170,4316,6618,4312,3338,4977,346,988,8217,9907,8017,9462,1254,1350,6467,9536,4025,200,5221,9216,2088,986,7528,2451,9984,3621,636,6593,8792],()=>t(28167)),_N_E=e.O()}]);