!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]="6229ed25-b169-4e93-9edb-eed4a86b1645",e._sentryDebugIdIdentifier="sentry-dbid-6229ed25-b169-4e93-9edb-eed4a86b1645")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29097],{151:(e,t,n)=>{"use strict";n.d(t,{g:()=>s});let s=e=>e.branding.config},1840:(e,t,n)=>{"use strict";n.d(t,{z:()=>h,K:()=>j});var s=n(6029),i=n(76356),a=n(55729),r=n(494),l=n(48683),o=n(62859),d=n(77988),u=n(28349);let c=e=>{let{}=e;return(0,s.jsx)(u.EY,{display:"block",px:"lg",py:"sm",textStyle:"body.small",color:"neutrals.nLv3",textAlign:"center",children:"Juego Responsable - BAP: EL JUEGO COMPULSIVO ES PERJUDICIAL PARA VOS Y TU FAMILIA +18, Linea gratuita de orientacion al jugado problematico 0800-444-4000 BAC: EL JUEGO COMPULSIVO ES PERJUDICIAL PARA VOS Y TU FAMILIA +18, Linea gratuita de orientacion al jugado problematico 0800-666-6006"})};var m=n(44450),p=n(2294),x=n(10794);let g=e=>{let{provider:t}=e;return(0,s.jsx)(i.az,{position:"relative",px:"lg",py:"sm",children:(0,s.jsx)(d.A,{provider:t})})},h=e=>{let{showTailingRegulation:t,provider:n}=e,a=(0,r.d4)(x.LQ);return(0,r.d4)(p.BF)?null:"GR"===a&&t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.so,{justify:"center",children:(0,s.jsx)(m.A,{})}),(0,s.jsx)(g,{provider:n})]}):"AR"===a?(0,s.jsxs)(i.BJ,{gap:"sm",children:[(0,s.jsx)(g,{provider:n}),(0,s.jsx)(c,{})]}):(0,s.jsx)(g,{provider:n})},j=e=>{let{showTailingRegulation:t,provider:n}=e,{event:d}=(0,a.useContext)(o.y$),u=(0,r.d4)((0,p.Ul)(d)),c=(0,r.d4)((0,p.bS)(d)),m=(0,r.d4)(p.BF);return u||c||m?(0,s.jsx)(l.Zp,{children:(0,s.jsx)(i.az,{p:"xs",children:(0,s.jsx)(h,{showTailingRegulation:t,provider:n})})}):null}},3881:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var s=n(64082),i=n(6029),a=n(99064),r=n(43451);function l(e){var{height:t=800,width:n="100%",rowHeight:l=45,wrapperStyle:o={},rows:d,animate:u=!1,rowGap:c=8,uniqueKey:m}=e,p=(0,s.T)(e,["height","width","rowHeight","wrapperStyle","rows","animate","rowGap","uniqueKey"]);return 0===t?null:(0,i.jsx)(a.az,Object.assign({maxW:"100%",bg:"surface.s1",overflow:"hidden"},p,{style:o},{children:(0,i.jsx)(r.D,Object.assign({animate:u,width:n,height:d&&l?d*(l+c):t,uniqueKey:m},{children:(0,i.jsx)(i.Fragment,{children:d?Array(d).fill(null).map((e,t)=>(0,i.jsx)("rect",{x:0,y:t*(l+c),width:"100%",height:l},t)):(0,i.jsx)("rect",{x:0,y:0,width:"100%",height:t})})}))}))}},4866:(e,t,n)=>{"use strict";n.d(t,{e:()=>i.e,w:()=>s.w});var s=n(53192),i=n(33480)},6244:(e,t,n)=>{"use strict";n.d(t,{l:()=>u,W:()=>c});var s=n(6029),i=n(21377),a=n(28349),r=n(62042),l=n(76356),o=n(67628);let d=(0,r.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[i.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[i.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[i.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[i.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[i.QWe.Grass]:{bg:"tennis.terrain.grass"},[i.QWe.Clay]:{bg:"tennis.terrain.clay"},[i.QWe.RedClay]:{bg:"tennis.terrain.clay"},[i.QWe.SyntheticOutdoor]:{bg:"tennis.terrain.default"},default:{bg:"tennis.terrain.default"}}}}),u=(0,l.I4)("div",d),c=e=>{let{groundType:t}=e;return t?(0,s.jsx)(u,{groundType:t,children:(0,s.jsx)(a.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,s.jsx)(o.n,{id:t})})}):null}},7926:(e,t,n)=>{"use strict";n.d(t,{w:()=>m});var s=n(6029),i=n(21377),a=n(494),r=n(62859),l=n(1840),o=n(5546),d=n(85517),u=n(10794);let c=e=>{let{event:t}=e,n=(0,a.d4)(u.LQ),r=(0,o.F0)(t),{featuredOdds:c,error:m}=(0,d.A)(r,t.id,t.status.type===i.XUj.InProgress,null==r?void 0:r.featuredOddsType);return r&&!m&&c&&n?(0,s.jsx)(l.K,{provider:r}):null},m=e=>{let{event:t}=e;return(0,s.jsx)(r.y$.Provider,{value:{event:t,location:r.cb.FeaturedMatch,leftTeam:t.homeTeam,rightTeam:t.awayTeam,leftScore:t.homeScore,rightScore:t.awayScore},children:(0,s.jsx)(c,{event:t})})}},8960:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,d:()=>c});var s=n(21377),i=n(494),a=n(45860),r=n(19451),l=n(2294),o=n(10794),d=n(30479);let u=(e,t)=>{let[n]=(0,d.Ay)({routeKey:r.xW.Betting,params:{}}),i=(null==n?void 0:n.boostId)?+n.boostId:void 0,l=null==t?void 0:t.betBoosts.find(e=>e.event.id===i),{data:o}=(0,a.Ay)(i&&!l?s.bnp.betBoost(i,e):null);return{selectedBoost:null==o?void 0:o.betBoost,selectedEventId:i}},c=()=>{let e=(0,i.d4)(o.LQ);return(0,i.d4)(l.Zw)&&"IT"!==e}},9922:(e,t,n)=>{var s=n(22346);e.exports=function(e){return s(e,5)}},11061:(e,t,n)=>{var s=n(22479),i=1/0;e.exports=function(e){return e?(e=s(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},13731:(e,t,n)=>{var s=n(53325),i=n(25725),a=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])})},15771:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),i=n(87827),a=n(21377),r=n(98516),l=n(52854);let o=e=>Math.round((e+Number.EPSILON)*100)/100,d=function(e){let{stat:t,sport:n}=e,{selectedStat:d}=e;switch(d=d.split(l.I)[0],n){case a.QCR.Football:var u,c,m=d;switch(m){case"accuratePasses":case"accurateLongBalls":case"accurateCrosses":case"shots":case"shotsOnTarget":case"successfulDribbles":case"tackles":case"interceptions":case"clearances":case"corners":case"fouls":return t?(0,r.M)(t[m]/t.matches,1):0;case"avgRating":return t?(0,s.jsx)(i.G,{format:"sideBox",rating:o(t[m])}):0;case"averageBallPossession":return t?"".concat((0,r.M)(t.averageBallPossession,1),"%"):0;case"penaltyGoals":return t?t.penaltiesTaken?"".concat(t.penaltyGoals," / ").concat(t.penaltiesTaken):t.penaltyGoals:0;case"penaltyGoalsConceded":return t?"".concat(t.penaltyGoalsConceded," / ").concat(t.penaltiesCommited):0;case"kilometersCovered":return t?"".concat((0,r.M)(t.kilometersCovered/t.matches,1)," km"):0;case"numberOfSprints":return t?"".concat((0,r.M)(t.numberOfSprints/t.matches,1)):0;default:return t?o(t[m]):0}case a.QCR.Basketball:var p=d;switch(p){case"points":case"pointsAgainst":case"plusMinus":case"assists":case"rebounds":case"defensiveRebounds":case"offensiveRebounds":case"steals":case"turnovers":case"blocks":case"fastbreakPoints":return(0,r.M)(t[p]/t.matches,1);case"fieldGoalsPercentage":case"fieldGoalsPercentageAgainst":case"freeThrowsPercentage":case"threePointsPercentage":case"threePointsPercentageAgainst":return"".concat((0,r.M)(t[p],1),"%");default:return o(t[p])}case a.QCR.Handball:return["goalsScored","goalsConceded","fastbreakGoals","steals","twoMinutePenalties","goalsInPowerplay","shorthandedGoals"].includes(u=d)?(0,r.M)(t[u]/t.matches,1):["shootingPercentage"].includes(u)?(0,r.M)(t[u],1)+"%":"sevenMetersScored"===u?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):o(t[u]);case a.QCR.IceHockey:return["powerPlayPercentage","faceOffPercentage","penaltyKillPercentage"].includes(c=d)?(0,r.M)(t[c],1)+"%":"sevenMetersScored"===c?"".concat(t.sevenMetersScored,"/").concat(t.sevenMetersTotal):(0,r.M)(t[c]/t.matches,1);case a.QCR.Tennis:var x=d;switch(x){case"firstServePercentage":case"firstServePointsWonPercentage":case"secondServePercentage":case"secondServePointsWonPercentage":return(0,r.M)(t[x],1)+"%";case"avgAces":case"avgDoubleFaults":return(0,r.M)(t[x],1);case"breakPointsSavedPercentage":if(isNaN(t.opponentBreakPointsTotal)||isNaN(t.opponentBreakPointsScored))return 0;let g=t.opponentBreakPointsTotal-t.opponentBreakPointsScored;return"".concat(g,"/").concat(t.opponentBreakPointsTotal," (").concat((0,r.M)(t[x],1),"%)");case"breakPointsSavedConvertedPercentage":if(isNaN(t.breakPointsScored)||isNaN(t.breakPointsTotal))return 0;return"".concat(t.breakPointsScored,"/").concat(t.breakPointsTotal," (").concat((0,r.M)(t[x],1),"%)");case"tiebreakWinPercentage":let{tiebreaksWon:h,tiebreakLosses:j}=t;if(isNaN(h)||isNaN(j))return 0;let v=h+j;if(v>0)return"".concat(h,"/").concat(v," (").concat((0,r.M)(t[x],1),"%)");return"".concat(h,"/").concat(v," (0%)");default:return o(t[x])}default:return o(t[d])}}},18741:(e,t,n)=>{"use strict";n.d(t,{E5:()=>l,fz:()=>o,hE:()=>d});var s=n(6029),i=n(28349),a=n(90248),r=n(55803);function l(e){let{children:t,title:n,titleValues:l,titleHidden:o}=e;return t?(0,s.jsxs)(r.E,{children:[!o&&n&&(0,s.jsx)(i.H2,{textStyle:"display.medium",mb:"md",children:(0,s.jsx)(a.A,{id:n,values:l})}),t]}):null}function o(e){let{id:t,values:n}=e,r={...n||{},bold:function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.d(t,{N:()=>i});var s=n(93839);function i(e,t){return"en"===t||t===s.vo[e]}},19673:(e,t,n)=>{"use strict";function s(e){let t=(null==e?void 0:e.toLowerCase())||"",n=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(n?"/".concat(t):"","/about/rating")}n.d(t,{y:()=>s})},25459:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(21377),i=n(55729),a=n(45860),r=n(62859),l=n(34209);function o(e){let{uniqueTournamentId:t,seasonId:n,division:o,overrideSeasonType:d}=e,u=(0,i.useContext)(r.Ws),{types:c,currentType:m,setCurrentType:p,isLoading:x,isError:g}=(0,l.A)(t,n,u,"team",d),h=u===s.QCR.Tennis?"mainDraw":m,j=t&&n&&!x?s.V3t.topTeams(t,n,h,o):null,{data:v,error:y}=(0,a.Ay)(j),f=null==v?void 0:v.topTeams,b=f?Object.keys(f):[],[T,w]=(0,i.useState)(""),_=f&&T&&f[T]?f[T].map(e=>({team:e.team,stats:e.statistics})):[];return(0,i.useEffect)(()=>{w("")},[t]),(0,i.useEffect)(()=>{b.length&&!T&&w(b[0])},[null==b?void 0:b.length]),{topTeams:f,stats:b,activeStat:T,setActiveStat:w,types:c,activeType:m,setActiveType:p,activeTeams:_,isError:!!y||g,isLoading:(!v||!T)&&!y}}},25725:(e,t,n)=>{var s=n(81648),i=n(78492),a=n(68988),r=n(91544);e.exports=function(e,t){return function(n,l){var o=r(n)?s:i,d=t?t():{};return o(n,e,a(l,2),d)}}},28167:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tournament",function(){return n(97742)}])},32312:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var s=n(6029),i=n(28349),a=n(76356),r=n(90248);let l=()=>(0,s.jsxs)(a.so,{px:"sm",mt:"sm",h:"xl",children:[(0,s.jsx)(i.EY,{minW:"xl",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",children:"#"}),(0,s.jsx)(a.az,{flexGrow:1,flexShrink:1,ml:"lg",children:(0,s.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(0,s.jsx)(r.A,{id:"team"})})}),(0,s.jsx)(i.EY,{textStyle:"table.medium",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,s.jsx)(r.A,{id:"Pts"})})]})},32523:(e,t,n)=>{"use strict";n.d(t,{E:()=>s.E});var s=n(3881)},34209:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(21377),i=n(55729),a=n(45860),r=n(38709);let l=function(e,t,n,l,o){let d=e&&t&&l?s.V3t.seasonTypes(e,t,l):null,{data:u,error:c}=(0,a.Ay)(d),m=(0,r.o)(null==u?void 0:u.types),[p,x]=(0,i.useState)(o||m[0]);return(0,i.useEffect)(()=>{!p&&m.length&&x(m[0])},[null==m?void 0:m.length,n]),(0,i.useEffect)(()=>{o&&x(o)},[o]),{types:m,currentType:m.length?p:void 0,setCurrentType:x,isError:!!c||!d,isLoading:!!d&&!u&&!c}}},34851:(e,t,n)=>{"use strict";n.d(t,{J:()=>s});var s=function(e){return e[e.SpecificRatingPlayer=0]="SpecificRatingPlayer",e[e.AverageRatingTeam=1]="AverageRatingTeam",e[e.AverageRating=2]="AverageRating",e[e.AverageRatingTeamLineups=3]="AverageRatingTeamLineups",e[e.AverageRatingPlayer=4]="AverageRatingPlayer",e}({})},34884:(e,t,n)=>{"use strict";n.d(t,{i:()=>m});var s=n(6029),i=n(28349),a=n(76356),r=n(947),l=n(48683),o=n(68228),d=n(54409),u=n(13266),c=n(61836);function m(e){let{numberOfEditors:t,isOrganization:n,eventLocation:m,nickname:p,userId:x,hasStarted:g,isInLeagueHeader:h,onClick:j}=e,v=(0,r.A)(),{isDesktop:y}=(0,i.$c)(),f=p?v.formatMessage({id:g?"edited_by":"event.createdBy"},{nickname:p}):v.formatMessage({id:"edited_by_more_editors"},{number:t}),b=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"primary.default",children:f}),(0,s.jsx)(d._jO,{ml:"sm",height:16,width:16,fill:"primary.default"})]}),T=(0,s.jsx)(o.u,{onClick:j,label:f,children:(0,s.jsx)(d._jO,{})}),w=h&&y?T:b;return p||t?(0,s.jsx)(l.Zp,{variant:h?"never":"desktop-only",children:(0,s.jsx)(a.so,{justify:"flex-end",align:"center",md:h?void 0:{px:"lg",py:"sm"},children:j?w:n?(0,s.jsx)("a",{href:"https://torneo.sofascore.com/",target:"_blank",rel:"noreferrer",children:w}):(0,s.jsx)(u.N_,{routeKey:"user",params:{userId:x},onClick:()=>(0,c.Zs)(m),children:w})})}):null}},35399:(e,t,n)=>{"use strict";n.d(t,{f:()=>a,s:()=>i});var s=n(21377);let i=[s.QCR.Football,s.QCR.Handball,s.QCR.Basketball,s.QCR.IceHockey,s.QCR.Volleyball],a=[s.QCR.Football,s.QCR.Handball,s.QCR.Basketball,s.QCR.IceHockey,s.QCR.Tennis,s.QCR.Volleyball]},38377:(e,t,n)=>{"use strict";n.d(t,{Y:()=>k});var s=n(6029),i=n(21377),a=n(494),r=n(62859),l=n(73586),o=n(62213),d=n(5546),u=n(85517),c=n(10794),m=n(76356),p=n(41618),x=n(38136),g=n(44450),h=n(89439),j=n(20306),v=n(65078),y=n(49821),f=n(4236);let b=e=>{let{market:t,provider:n}=e,i=(0,v.g3)(),a=(0,f.nu)(t.choices,i).map(e=>(0,f.vT)(e,n.oddsOffset||0)),{ref:r,makeOnClick:l}=(0,y.kW)({type:y.jF.Featured,marketName:t.marketName,isComparison:!1,countryOddsProvider:n,deps:[t.marketName]});return(0,s.jsx)(m.so,{gap:"sm",flexGrow:1,ref:r,children:a.map(e=>(0,s.jsx)(j.G,{choice:e,isLive:t.isLive,betSlipLink:(0,f.Iz)(e,t,n),onClick:l(t.marketName,y.ki.OddsValue,n),branded:n.branded,secondary:!0},e.name))})};var T=n(60320);let w=e=>{let{market:t,country:n,countryOddsProvider:i}=e;return(0,s.jsxs)(m.BJ,{gap:"sm",children:[(0,s.jsxs)(m.so,{gap:"sm",children:[(0,s.jsx)(b,{market:t,provider:i}),(0,s.jsx)(p.r,{size:"48x20",selectedProvider:i})]}),(0,s.jsxs)(m.so,{justify:h.I.includes(n)?"space-between":"center",align:"center",children:[(0,s.jsx)(T.N,{market:t}),(0,s.jsx)(x.V,{})]}),(0,s.jsx)(g.A,{})]})},_=e=>{let{event:t}=e,n=(0,a.d4)(c.LQ),r=(0,d.Ae)(),{featuredOdds:m,error:p}=(0,u.A)(r,t.id,t.status.type===i.XUj.InProgress,null==r?void 0:r.featuredOddsType);return r&&!p&&m&&n?(0,s.jsx)(l.S,{countryOddsProvider:r,event:t,fallback:{},hasCTALoader:!!n&&o.fe.includes(n),isNewOddsComparisonPreview:!0,children:(0,s.jsx)(w,{market:m,country:n,countryOddsProvider:r})}):null},k=e=>{let{event:t}=e;return(0,s.jsx)(r.y$.Provider,{value:{event:t,location:r.cb.FeaturedMatch,leftTeam:t.homeTeam,rightTeam:t.awayTeam,leftScore:t.homeScore,rightScore:t.awayScore},children:(0,s.jsx)(_,{event:t})})}},38709:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var s=n(21377);let i=[s.Vw_.overall,s.Vw_.regularSeason,s.Vw_.playoffs];function a(e){if(!e)return[];let t=e.filter(e=>i.includes(e));return t.length>1||1===t.length&&t[0]!==s.Vw_.overall?t:[]}},41618:(e,t,n)=>{"use strict";n.d(t,{r:()=>c,$:()=>p});var s=n(6029),i=n(21377),a=n(28349),r=n(76356),l=n(55729),o=n(62859),d=n(61836),u=n(49821);function c(e){let{selectedProvider:t,location:n,onClick:c,logClick:m=!0,size:p="56x28"}=e,x=null==t?void 0:t.provider,g=null==t?void 0:t.branded,h=null==t?void 0:t.provider.slug,{location:j}=(0,l.useContext)(o.y$),[v,y]=p.split("x"),f=n||j;return x&&g?(0,s.jsx)(r.I4.a,{display:"flex",justifyContent:"center",alignItems:"center",br:"xs",rel:"noopener noreferrer",target:"_blank",href:t.defaultBetSlipLink||x.defaultBetSlipLink,onClick:e=>{e.stopPropagation(),null==c||c(),m&&(0,d.Fe)({location:f,provider:h,position:u.ki.ProviderLogo})},style:{background:x.colors.primary,width:"".concat(v,"px"),height:"".concat(y,"px")},children:(0,s.jsx)(a._V,{src:i.npy.providerImage(x.id),alt:x.name||"",style:{width:"".concat(v,"px"),height:"auto"}})}):null}var m=n(90248);let p=e=>{let{provider:t}=e;return(null==t?void 0:t.branded)?(0,s.jsxs)(r.so,{justify:"center",align:"center",ml:"lg",children:[(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"sm",truncate:!0,children:(0,s.jsx)(m.A,{id:"featured_by"})}),(0,s.jsx)(c,{selectedProvider:t,size:"48x24"})]}):null}},41896:(e,t,n)=>{"use strict";n.d(t,{N:()=>I});var s=n(6029),i=n(947),a=n(28349),r=n(76356),l=n(55729),o=n(90248),d=n(54053),u=n(61836);let c=e=>{let{url:t,onClick:n,textId:i="claim_offer",isNegative:l=!1}=e;return(0,s.jsx)(a.$n,{bg:l?"onColor.primary":"primary.default",children:(0,s.jsx)(r.I4.a,{color:l?"graphics.dark":"onColor.primary",h:"100%",w:"100%",display:"flex",justifyContent:"center",alignItems:"center",href:t,target:"_blank",rel:"noopener",onClick:n,children:(0,s.jsx)(o.A,{id:i})})})},m=e=>{let{logoUrl:t,promotionName:n,bgImageUrl:i,title:m,description:p,isOpen:x,setIsOpen:g,url:h,location:j,actionButtonId:v,isNegative:y,logoStyle:f}=e,{isDesktop:b}=(0,a.$c)(),T={backgroundImage:"url(".concat(i,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,l.useEffect)(()=>{x&&(0,u.Z1)({type:"bottom_sheet",name:n,location:j})},[x]),!x)return null;let w=()=>g(!1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(d.A,{isOpen:x,setIsOpen:g,footer:null,renderAdPlaceholder:!1,sheetStyles:T,modalContentStyles:T,width:360,bottomSheetSize:"large",isNegative:!0,isBottomSheetLocked:!0,children:(0,s.jsxs)(r.so,{direction:"column",justifyContent:"space-between",h:"100%",style:b?T:void 0,br:"lg",children:[(0,s.jsx)(r.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,s.jsx)(r.az,{w:"4xl",h:"4xl",children:(0,s.jsx)(a._V,{src:t,height:"4xl",width:"4xl",alt:n,style:f})})}),(0,s.jsxs)(r.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,s.jsxs)(r.so,{direction:"column",gap:"lg",children:[(0,s.jsx)(r.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:m}),(0,s.jsx)(r.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:p})]}),(0,s.jsxs)(r.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,s.jsx)(c,{url:h,onClick:()=>{(0,u.AW)({type:"bottom_sheet",name:n,location:j}),w()},textId:v,isNegative:y}),(0,s.jsx)(a.$n,{variant:"clear",color:"onColor.primary",onClick:w,children:(0,s.jsx)(o.A,{id:"maybe_later"})})]})]})]})})})};var p=n(66062);let x=e=>{let{isOpen:t,setIsOpen:n,location:a}=e,r=(0,i.A)();return(0,s.jsx)(m,{logoUrl:"/static/images/courtside-1891/logo.png",bgImageUrl:"/static/images/courtside-1891/modal-bg.png",promotionName:p.d.promotionName,title:r.formatMessage({id:"euro_basket_promo_drawer_header"}),description:r.formatMessage({id:"euro_basket_promo_drawer_body"}),url:p.d.url,isOpen:t,setIsOpen:n,location:a})},g=e=>{let{isOpen:t,setIsOpen:n,location:a}=e,r=(0,i.A)();return(0,s.jsx)(m,{logoUrl:"/static/images/utr/logo.png",bgImageUrl:"/static/images/utr/utr-bottom-sheet.png",promotionName:p.nE.promotionName,title:r.formatMessage({id:"utr_bottom_sheet_header"}),description:r.formatMessage({id:"utr_bottom_sheet_body"}),actionButtonId:"learn_more_button",url:p.nE.url,isOpen:t,setIsOpen:n,location:a,logoStyle:{width:"57px",height:"32px"},isNegative:!0})};var h=n(83151),j=n(21501),v=n(494),y=n(41888),f=n(70116),b=n(10794),T=n(62827),w=n(83260),_=n(89606),k=n(32097);let S=(e,t)=>{let n=new Date().getTime();if(!e.hasModal||!e.modalCooldown||e.maxTotalViews&&(null==t?void 0:t.totalViews)&&e.maxTotalViews>t.totalViews)return!1;let s=null==t?void 0:t.lastView;return!s||n-s>e.modalCooldown},C=e=>{let t=(0,j.hX)(),{priorityModal:n,setModalAvailable:s,dismiss:i,isDismissed:a}=(0,f.Z)(),r=(0,v.d4)(b.LQ),[o,d]=(0,T.bL)("promotion-in-session",void 0),[u,c]=(0,l.useState)(!1),[m,x]=(0,l.useState)(!1),[g,h,C]=(0,w.A)("last-view-per-promotion",{}),I=t||!C?void 0:p.jI.find(n=>(0,_.y)(n,t,r)&&(0,k.H)(e,n)&&S(n,g[n.id]));return(0,l.useEffect)(()=>{I?s(y.w.PromotionModal,!0):n||a||s(y.w.PromotionModal,!1)},[I]),(0,l.useEffect)(()=>{if(n===y.w.PromotionModal&&I){let e=new Date().getTime();d(I.id),c(!0),x(!0),h(t=>{var n,s;let i=Object.keys(t).filter(e=>!!p.jI.find(t=>t.id===e)),a={};return i.forEach(e=>{a[e]=t[e]}),a[I.id]={lastView:e,totalViews:(null!=(s=null==(n=t[I.id])?void 0:n.totalViews)?s:0)+1},a})}},[n]),(0,l.useEffect)(()=>{!u&&m&&i()},[u]),{promotion:o,isOpen:u,setIsOpen:c}},I=e=>{let{page:t}=e,{promotion:n,isOpen:i,setIsOpen:a}=C(t);if(n&&i)switch(n){case h.v.Courtside1891:return(0,s.jsx)(x,{isOpen:i,setIsOpen:a,location:t.location});case h.v.Utr:return(0,s.jsx)(g,{isOpen:i,setIsOpen:a,location:t.location})}return null}},42021:(e,t,n)=>{"use strict";n.d(t,{h:()=>d});var s=n(6029),i=n(28349),a=n(55729),r=n(90248),l=n(54409),o=n(54053);let d=()=>{let[e,t]=(0,a.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{onClick:()=>t(!0),children:(0,s.jsx)(l.G_L,{fill:"onSurface.nLv1"})}),(0,s.jsx)(o.A,{isOpen:e,setIsOpen:t,header:"sofascore_power_rankings",children:(0,s.jsx)(i.EY,{display:"block",maxW:{md:"[312px]"},px:"lg",textStyle:"body.mediumParagraph",children:(0,s.jsx)(r.A,{id:"power_rankings_description"})})})]})}},43783:(e,t,n)=>{"use strict";n.d(t,{Q:()=>a});var s=n(21377),i=n(45860);function a(e,t,n){var a,r;let{data:l}=(0,i.Ay)(s.V3t.powerRankingRounds(e,t)),o=n||(null==l||null==(r=l.powerRankingRounds)||null==(a=r[0])?void 0:a.id),{data:d}=(0,i.Ay)(o?s.V3t.powerRankings(e,t,o):null);return{rankings:null==d?void 0:d.powerRankings,rounds:null==l?void 0:l.powerRankingRounds}}},44450:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var s=n(6029),i=n(494),a=n(10794),r=n(28349),l=n(76356),o=n(54409);function d(){return(0,s.jsx)("a",{href:"https://certifications.gamingcommission.gov.gr/publicRecordsOnline/SitePages/KatoxoiAdeiasOnline.aspx",target:"_blank",rel:"nofollow noopener noreferrer",children:(0,s.jsxs)(l.so,{minH:"4xl",align:"center",gap:"md",px:"lg",children:[(0,s.jsx)(l.az,{h:"xl",w:"xl",children:(0,s.jsx)(o.OE_,{w:"24px",h:"24px",fill:"onSurface.nLv3",fillOpacity:1})}),(0,s.jsx)(r.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:"21+ | ΚΙΝΔΥΝΟΣ ΕΘΙΣΜΟΥ & ΑΠΩΛΕΙΑΣ ΠΕΡΙΟΥΣΙΑΣ | ΠΑΙΞΕ ΥΠΕΥΘΥΝΑ & ΜΕ ΑΣΦΑΛΕΙΑ |"})]})})}function u(){return"GR"===(0,i.d4)(a.LQ)?(0,s.jsx)(d,{}):null}},45152:(e,t,n)=>{"use strict";n.d(t,{S:()=>f});var s=n(6029),i=n(48683),a=n(73045),r=n(28349),l=n(76356),o=n(90248),d=n(62859),u=n(54409),c=n(98449),m=n(9536),p=n(65078),x=n(13266),g=n(47530),h=n(10234);let j=e=>{var t;let{event:n,hideTitle:d,hasCta:p=!1,onClick:j}=e;return(0,s.jsxs)(l.az,{children:[(0,s.jsx)(i.Zp,{children:(0,s.jsxs)(l.BJ,{gap:"xs",_hover:{bg:"surface.s2"},br:"sm",style:{minHeight:102+32*!d},children:[!d&&n.tournament.uniqueTournament&&(0,s.jsx)(x.tQ,{tournament:n.tournament.uniqueTournament,seasonId:null==(t=n.season)?void 0:t.id,children:(0,s.jsxs)(l.so,{justify:"space-between",align:"center",gap:"xs",children:[(0,s.jsxs)(l.so,{align:"center",pt:"sm",px:"lg",children:[n.tournament.uniqueTournament?(0,s.jsx)(a.e,{id:n.tournament.uniqueTournament.id,size:24}):(0,s.jsx)(a.l,{id:n.tournament.id,size:24}),(0,s.jsxs)(r.Ym,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:"sm",display:"block",children:[(0,s.jsx)(c.m,{slug:n.tournament.category.slug,name:n.tournament.category.name,uniqueTournament:n.tournament.uniqueTournament}),", ",(0,s.jsx)(h.J,{tournament:n.tournament}),n.roundInfo&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(g.DT,{round:n.roundInfo})]})]})]}),(0,s.jsx)(u.CCT,{w:24,h:24,fill:"primary.default"})]})}),(0,s.jsx)(x.tj,{event:n,onClick:j,children:(0,s.jsx)(m.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})})]})}),p&&(0,s.jsxs)(l.so,{justify:"center",py:"lg",px:"lg",cursor:"pointer",children:[(0,s.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(o.A,{id:"see_all"})}),(0,s.jsx)(u.CCT,{fill:"primary.default",ml:"xs"})]})]})};function v(e){let{event:t,...n}=e,{event:i,leftTeam:a,rightTeam:r,leftScore:l,rightScore:o}=(0,p.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,s.jsx)(d.y$.Provider,{value:{event:t,leftTeam:a,rightTeam:r,leftScore:l,rightScore:o},children:(0,s.jsx)(j,{event:{...t,...i},...n})}):null}let y=e=>(0,s.jsxs)(l.az,{br:"sm",bg:"surface.s2",minH:e.hideTitle?"[134px]":"11xl",children:[(0,s.jsx)(l.az,{h:"[134px]"}),e.showCta&&(0,s.jsx)(l.az,{h:"2xl"})]});function f(e){let{titleId:t="featured",titleValues:n,hideEventTitle:a,hideCardHeader:r,showCta:l,ignoreCardLayout:o,isLoading:d,events:u,onEventClick:c,children:m}=e,p=u.filter(e=>!!e);if(!p.length&&!d)return null;let x=(0,s.jsx)(s.Fragment,{children:p.length?p.map(e=>(0,s.jsx)(v,{hideTitle:a,hasCta:l,event:e,onClick:()=>null==c?void 0:c(e)},e.id)):(0,s.jsx)(y,{hideTitle:a,showCta:l})});return o?(0,s.jsxs)(s.Fragment,{children:[x,m]}):(0,s.jsx)(i.Zp,{children:(0,s.jsxs)(i.WC,{variant:"square",children:[!r&&(0,s.jsx)(i.Zp.Header,{titleId:t,values:n,as:"h3"}),(0,s.jsxs)(i.BU,{children:[x,m]})]})})}},45546:(e,t,n)=>{"use strict";n.d(t,{UW:()=>a,b0:()=>s,jt:()=>i});let s=e=>{let t=[],n=e.match(/\d{4}/g)||e.match(/\d{2}/g);return null==n||n.forEach(e=>{let n=+e;2===e.length&&(n=70>+e?+"20".concat(e):+"19".concat(e)),t.push(isNaN(n)?0:n)}),t.length?t:[0]},i=(e,t)=>s(t.year)[0]-s(e.year)[0],a=e=>{let t=[];for(let n=0,s=e.tournamentSeasons.length;ne.id===i.id);if(!a){let e=t.push(i);a=t[e-1]}a.seasons=a.seasons||{},a.tournaments=a.tournaments||{},s.seasons.forEach(e=>{(null==a?void 0:a.seasons[e.id])?a.tournaments[e.id]=[...a.tournaments[e.id],s.tournament]:(a.seasons[e.id]=e,a.tournaments[e.id]=[s.tournament])})}return t}},45749:(e,t,n)=>{"use strict";n.d(t,{P:()=>d});var s=n(55729),i=n(85625),a=n(95868);let r=null,l=!1;async function o(){if(!r)try{r=(await n.e(55831).then(n.t.bind(n,61985,23))).default,await r.Initialize("3de57cc21a364c9c918d8899d0aee6bf",{shouldModifyUrlWithStoryId:!1}),r.addDelegateListener(r.Delegations.onEventTriggered,a.hT)}catch(e){return console.error("WSC SDK initialization error:",e),!1}return!0}function d(e){let{containerId:t,storyIds:n,location:d,reloadTrigger:u,setErrorOccurred:c}=e,[m,p]=(0,s.useState)(l);(0,s.useEffect)(()=>{o();let e=()=>{l=!0,p(!0)};return document.addEventListener("onBlazeSDKConnect",e),()=>{document.removeEventListener("onBlazeSDKConnect",e)}},[u]),(0,s.useEffect)(()=>{if(!(null==n?void 0:n.length)||!r||!m||!t||!(0,a.R5)(t))return;r.addDelegateListener(r.Delegations.onErrorThrown,()=>{c(!0)});let{eventId:e}=(0,a.HK)(t,"wsc");try{let s=r.Theme(d===i.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,r.WidgetRowView(t,{dataSource:r.DataSourceBuilder().ids({ids:n}),theme:s,maxDisplayItemsCount:e?1:void 0}),c(!1)}catch(e){c(!0),console.error(e)}},[n.length,t,m])}},46664:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var s=n(6029),i=n(98423),a=n(21377),r=n(28349),l=n(76356),o=n(99064),d=n(55729),u=n(947),c=n(90248),m=n(48683),p=n(62859),x=n(74761),g=n(97918),h=n(57869),j=n(73404),v=n(56602),y=n(27892),f=n(12047),b=n(33144),T=n(13266),w=n(15771),_=n(94604);function k(){return(0,s.jsx)(l.az,{children:Array.from({length:3}).map((e,t)=>(0,s.jsx)(l.az,{h:"5xl"},t))})}function S(e){let{teams:t,selectedStat:n,showFullListWithIndexes:i,sport:a,children:o}=e,d=i?t:t.slice(0,3);return(null==t?void 0:t.length)&&n?(0,s.jsxs)(l.az,{pb:"sm",children:[d.map((e,t)=>(0,s.jsx)(T.gT,{sport:a,team:e.team,children:(0,s.jsxs)(l.so,{h:"5xl",align:"center",gap:"sm",px:"lg",_hover:{bg:"surface.s2"},cursor:"pointer",children:[i&&(0,s.jsx)(r.EY,{textStyle:"body.small",w:"lg",textAlign:"center",display:"block",children:t+1}),(0,s.jsxs)(l.so,{grow:1,align:"center",children:[(0,s.jsx)(b.p,{id:e.team.id,size:40}),(0,s.jsx)(r.EY,{ml:"lg",display:"block",children:(0,s.jsx)(_.Rm,{team:e.team})})]}),(0,s.jsx)(l.so,{minW:"6xl",justify:"flex-end",children:(0,s.jsx)(r.EY,{children:(0,s.jsx)(w.A,{stat:e.statistics,selectedStat:n,sport:a})})})]})},e.team.id)),o]}):(0,s.jsx)(k,{})}var C=n(45860),I=n(25459),A=n(79977),z=n(62666),M=n(6354);let P=e=>{let{options:t,sport:n}=e,i=(0,f.Ay)();return(0,s.jsx)(o.PI,{top:i,bg:"surface.s1",zIndex:o.Py.Sticky-1,children:e=>(0,s.jsx)(l.az,{borderBottom:e?void 0:"1px solid {colors.neutrals.nLv4}",elevation:e?"2":void 0,children:(0,s.jsx)(g.F,{items:t,sport:n})})})};function R(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)(l.so,{align:"center",gap:"sm",children:[(0,s.jsx)(i.e,{id:c,size:24}),(0,s.jsx)(r.EY,{lineHeight:1,children:e?a.Wb[e]:null!=m?m:"-"})]}),selectedItem:t,onSelectedItemChange:e=>{var t;n(null!=(t=e.selectedItem)?t:void 0)}})}let E=e=>{let{uniqueTournamentId:t,seasonId:n}=e,o=(0,u.A)(),g=(0,d.useContext)(p.Ws),[f,b]=(0,d.useState)(!1),[T,w]=(0,d.useState)(""),[_,k]=(0,d.useState)([]),{division:M,setDivision:E,divisions:Y}=function(e,t){let[n,s]=(0,d.useState)(),{data:i,isLoading:r,error:l}=(0,C.Ay)(e&&t?a.V3t.divisions(e,t):null);if(r||l||!i)return{division:n,setDivision:s,divisions:[]};let o=function(e){let t=[],n=[];for(let{conference:s,divisions:i}of e.divisions)t.push(s),n.push(...i);return[...t,...n]}(i);return 35115===t&&(o=["central-division"]),{division:n,setDivision:s,divisions:o}}(t,n),q=(0,I.A)({uniqueTournamentId:t,seasonId:n,division:M}),H=g===a.QCR.Tennis,F=g?(0,h.f)(g):null,{topTeams:L,stats:O,types:N,activeType:D,setActiveType:W}=q,B=null==O?void 0:O.map(e=>({value:e,label:H?o.formatMessage({id:(0,y.O)(a.QCR.Tennis,e)}):(0,j.b)(o,e,null==F?void 0:F.includes(e))})),Q=(e,t)=>{b(!0),w(e),k(t)};return(0,s.jsxs)(s.Fragment,{children:[!!Y.length&&(0,s.jsx)(l.so,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(R,{division:M,setDivision:E,divisions:Y})}),!!N&&N.length>1&&!!D&&(0,s.jsx)(l.az,{hideFrom:"md",bg:"surface.s1",p:"sm",elevation:"2",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,s.jsx)(z.A,{selectedType:D,setSelectedType:W,types:N})}),(0,s.jsx)(P,{options:B,sport:g}),(0,s.jsx)(m.BU,{children:!!(null==B?void 0:B.length)&&B.map(e=>{var t,n,a;let o=L&&e&&L[e.value]||[],d=(0,h.g)(g);return((null==d?void 0:d.includes(e.value))||!d)&&(0,s.jsx)(m.Zp,{children:(0,s.jsxs)(l.az,{id:null==(t=e.value)?void 0:t.toLowerCase(),children:[(0,s.jsxs)(l.so,{align:"center",justify:"space-between",p:"lg",pr:"xs",children:[(0,s.jsxs)(l.so,{align:"center",children:[(0,s.jsx)(r.EY,{textStyle:"display.small",children:(0,s.jsx)(A.A,{id:e.value})}),"avgRating"===e.value&&(0,s.jsx)(v.D,{type:v.D.type.AverageRatingTeam,rating:null==o||null==(a=o[0])||null==(n=a.statistics)?void 0:n.avgRating,renderImage:e=>{var t;return(0,s.jsx)(i.p,{id:null==o||null==(t=o[0])?void 0:t.team.id,...e})}})]}),(0,s.jsx)(r.$n,{size:"tertiary",variant:"clear",onClick:()=>Q(e.value,o),children:(0,s.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(c.A,{id:"see_all"})})})]}),(0,s.jsx)(S,{teams:o,selectedStat:e.value,sport:g,children:"avgRating"===e.value&&(0,s.jsx)(x.$,{mx:"sm",messageId:"rating_top_teams_general"})})]})},e.value)})}),(0,s.jsxs)(r.Xn,{isOpen:f,onClose:()=>{b(!1)},title:(0,s.jsx)(A.A,{id:T}),size:"contentFit",children:["avgRating"===T&&(0,s.jsx)(x.$,{mx:"sm",mb:"sm",messageId:"rating_top_teams_specific"}),(0,s.jsx)(S,{teams:_,selectedStat:T,showFullListWithIndexes:!0,sport:g})]})]})}},48127:(e,t,n)=>{"use strict";n.d(t,{s:()=>d});var s=n(6029),i=n(99064),a=n(13731),r=n.n(a),l=n(59018),o=n.n(l);function d(e){let{onSeasonChange:t,seasons:n,seasonId:a,alignRight:l}=e,d=r()(n,"year"),u=o()(n.map(e=>e.year)),c=n.find(e=>e.id===a)||n[0],m=c&&d[c.year],p=(null==m?void 0:m.length)>1;return(0,s.jsxs)(i.so,{wrap:"wrap",flex:["1 1 100%",void 0],mt:[0,"sm","xs"],zIndex:i.Py.Dropdown,children:[(0,s.jsx)(i.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:l}),p&&(0,s.jsx)(i.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)(i.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)]})}},49679:(e,t,n)=>{"use strict";n.d(t,{a:()=>m});var s=n(6029),i=n(32523),a=n(76356),r=n(33144),l=n(21377),o=n(28349),d=n(13266),u=n(94604);function c(e){return(0,s.jsx)(d.gT,{team:e.team,sport:l.QCR.Football,children:(0,s.jsxs)(a.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)(r.p,{ml:"lg",mr:"sm",id:e.team.id,national:!0,size:32}),(0,s.jsx)(a.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)(a.az,{children:(0,s.jsx)(o.EY,{textStyle:"table.medium",children:e.points})})]})})}let m=e=>{let{rankings:t}=e;return(0,s.jsx)(a.az,{minH:"[192px]",children:t?t.map(e=>(0,s.jsx)(c,{...e},e.rank)):(0,s.jsx)(i.E,{uniqueKey:"power-ranking-list-cl",pt:"xs",rows:4,rowHeight:44,rowGap:4,animate:!0})})}},52827:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});var s=n(1815),i=n(61836),a=n(95868);function r(e,t,n){let r=(0,a.HK)(e,n);return(0,s.e)(()=>t?(0,i.LJ)({id:r.eventId||r.tournamentId,location:r.location}):(0,i.WG)({id:r.eventId||r.tournamentId,location:r.location,provider:n}))}},52854:(e,t,n)=>{"use strict";n.d(t,{I:()=>r,k:()=>o});var s=n(55729),i=n(947),a=n(73959);let r="-playoffs",l=(e,t,n)=>{let s=t.split(r),i=s[0],l=s.length>1;return{label:(0,a.y)(e,i,n,l),value:t}};function o(e,t){var n;let[a,r]=(0,s.useState)({label:"",value:""}),[o,d]=(0,s.useState)(),u=(0,i.A)(),c=e.map(e=>l(u,e,t));return(0,s.useEffect)(()=>{var e,t;if((null==(e=c[0])?void 0:e.value)!==(null==o?void 0:o.value)||!a.value&&c.length&&c[0]){let e=c.find(e=>"rating"===e.value);r(null!=(t=null!=e?e:c[0])?t:{label:"",value:""}),d(null!=e?e:c[0])}},[c.length,null==(n=c[0])?void 0:n.value]),{selectedStat:a,setSelectedStat:r,statItems:c}}},54075:(e,t,n)=>{"use strict";n.d(t,{M:()=>s.MR});var s=n(19991)},55803:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});let s=(0,n(76356).I4)("div",{base:{bg:"surface.s1",border:"1px solid surface.s2",br:"lg",p:"lg",elevation:"2","& a":{color:"primary.default"},"& p":{margin:"0",paddingTop:"sm",paddingBottom:"md"},"& ul":{margin:"0",paddingBottom:"md",listStyleType:"none","& > li":{display:"flex","&:before":{content:"- ",mr:"sm"},"& + li":{marginTop:"sm"}}}}})},56602:(e,t,n)=>{"use strict";n.d(t,{D:()=>I});var s=n(6029),i=n(87827),a=n(21377),r=n(28349),l=n(62042),o=n(76356),d=n(55729),u=n(947),c=n(90248),m=n(54409),p=n(54053),x=n(26331),g=n(62859),h=n(34851),j=n(19991),v=n(99064),y=n(28446),f=n(41735);let b=e=>(0,f.keyframes)(["from{left:0;}to{left:",";}"],e),T=(0,f.default)(v.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>b(e.ratingPosition)),w=["3.0","6.0","6.5","7.0","8.0","9.0"],_=(0,y.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function k(e){let{rating:t,format:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(v.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[w.map((e,t)=>(0,s.jsx)(v.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,j.Et)(e),h:"16"},e)),t&&(0,s.jsx)(T,{position:"absolute",top:"-2",ratingPosition:_(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,s.jsx)(v.so,{justify:"space-between",children:[...w,"10"].map(e=>(0,s.jsxs)(v.EY,{color:(0,j.Et)(e),font:"tab.secondary",children:[e,"sideBox"===n&&"10"!==e?"0":""]},e))})]})}var S=n(19673);let C=(0,l.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function I(e){let{type:t,rating:n=10,renderImage:l,children:j}=e,v=(0,u.A)(),[y,f]=(0,d.useState)(!1),{isDesktop:b}=(0,r.$c)(),T=(0,d.useContext)(g.Ws)===a.QCR.Football,w=(0,x.A)(),_=(0,S.y)(w),I="",A="box",z="sofascore_rating",M="";switch(t){case h.J.SpecificRatingPlayer:I="rating_general_text",M=[v.formatMessage({id:"rating_top_stats_general"}),v.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case h.J.AverageRatingTeam:I="average_team_rating_text",A="sideBox",M=[v.formatMessage({id:"rating_top_teams_general"}),v.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case h.J.AverageRating:I="average_team_rating_match",A="sideBox",z="average_sofascore_rating";break;case h.J.AverageRatingTeamLineups:I="average_team_rating_text",A="sideBox";break;case h.J.AverageRatingPlayer:I="average_player_rating_text",A="sideBox"}return(0,s.jsxs)(s.Fragment,{children:["function"==typeof j?(0,s.jsx)(s.Fragment,{children:j({isOpen:y,setIsOpen:f})}):null!=j?j:(0,s.jsx)(r.m_,{label:M,strategy:""!==M&&b?"hover":"controlled",isVisible:!1,children:(0,s.jsx)(r.K0,{mx:"xs",variant:"clear",onClick:()=>{f(!0)},children:(0,s.jsx)(m.G_L,{fill:"onSurface.nLv1"})})}),(0,s.jsxs)(p.A,{header:(0,s.jsx)(r.H3,{p:"lg",textStyle:"display.large",children:(0,s.jsx)(c.A,{id:z})}),isOpen:y,setIsOpen:f,footer:(0,s.jsx)(o.so,{justify:"flex-end",m:T?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,s.jsx)(r.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{f(!1)},variant:b?"clear":void 0,children:(0,s.jsx)(c.A,{id:"ok_got_it_button"})})}),children:[(0,s.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:T?void 0:{mdDown:"2xl"},children:[I&&(0,s.jsx)(c.A,{id:I,values:{break:e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})}}),(0,s.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,s.jsx)(o.az,{className:"sideBox"===A?C:void 0,children:(0,s.jsx)(i.G,{size:"xl",rating:n,format:A})}),null==l?void 0:l({size:40,ml:"lg"})]}),(0,s.jsx)(k,{rating:n,format:A})]}),T&&(0,s.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,s.jsxs)(r.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:_,target:"_blank",onClick:()=>{f(!1)},children:[(0,s.jsx)(c.A,{id:"rating_learn_more_button"}),(0,s.jsx)(m.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}I.type=h.J},57869:(e,t,n)=>{"use strict";n.d(t,{f:()=>a,g:()=>i});var s=n(21377);function i(e){return e===s.QCR.IceHockey?["powerPlayPercentage","penaltyKillPercentage","goals","goalsAgainst","shots","shotsAgainst","hits","blocks","faceOffPercentage","penaltyMinutes"]:null}function a(e){return e===s.QCR.IceHockey?["goals","goalsAgainst","shots","shotsAgainst","hits","blocks","penaltyMinutes"]:null}},61090:(e,t,n)=>{"use strict";n.d(t,{m:()=>p});var s=n(6029),i=n(21377),a=n(76356),r=n(494),l=n(26471),o=n(51372),d=n(31112),u=n(77988),c=n(61836),m=n(10794);let p=e=>{let{entity:t,id:n,branding:p,location:x}=e,g=(0,r.d4)(m.LQ),h=(0,l.A)(()=>{x&&(0,c.N9)({id:n,location:x,provider:p.brand.slug,type:"banner"})},{deps:[n,p.brand.slug,x]});return(0,s.jsx)(d.w,{branding:p,type:"banner",entityId:n,location:x,children:(0,s.jsx)(a.so,{justify:"center",children:(0,s.jsxs)(a.az,{ref:h,position:"relative",maxW:"[700px]",flexGrow:1,br:{base:"lg",md:"xl"},overflow:"hidden",children:[(0,s.jsx)(o.O,{branding:p,noLink:!0}),(0,s.jsx)(a.az,{h:"9xl",style:{background:"url(".concat(i.UpI.brandingBanner(p.brand.id,t,n),")"),backgroundSize:"auto 100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),p.brand.showBettingAge&&(0,s.jsx)(a.so,{h:"xl",w:"xl",br:"50%",bg:"[rgba(255, 255, 255, 0.1)]",justify:"center",align:"center",position:"absolute",bottom:"sm",right:"sm",children:(0,s.jsxs)(a.az,{textAlign:"center",h:"md",color:"onColor.primary",textStyle:"assistive.micro",children:[(0,u.g)(g),"+"]})})]})})})}},62666:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(6029),i=n(99064),a=n(90248);function r(e){let{types:t,selectedType:n,setSelectedType:r}=e;return(null==t?void 0:t.length)&&n?(0,s.jsx)(i.tU,{variant:"secondary",value:n,onChange:e=>r?r(e):void 0,children:t.map(e=>(0,s.jsx)(i.tU.Tab,{tabKey:e,children:(0,s.jsx)(a.A,{id:e})},e))}):null}},70115:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(6029),i=n(99064),a=n(71024),r=n.n(a),l=n(58047);let o=r()(()=>Promise.all([n.e(31844),n.e(40774),n.e(21646)]).then(n.bind(n,63848)),{loadableGenerated:{webpack:()=>[63848]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:a}=e;return(0,s.jsx)(i.tU.Panel,{tabKey:l.x.Knockout,children:(0,s.jsx)(o,{sport:a,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},73045:(e,t,n)=>{"use strict";n.d(t,{e:()=>i.e,l:()=>s.l});var s=n(37721),i=n(33480)},73404:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,b:()=>c});var s=n(6029),i=n(76356),a=n(99064),r=n(55729),l=n(90248),o=n(50677),d=n(27892),u=n(57869);function c(e,t,n,s,i){let a=i?(0,d.O)(o,t,s):t,r=e.formatMessage({id:"".concat(a)});if(n){let t=e.formatMessage({id:"per_match"}).toLocaleLowerCase();r=r.concat(" ").concat(t)}return r}function m(e){let{items:t,sport:n}=e,[o,d]=(0,r.useState)(0),c=n?(0,u.g)(n):null,m=t.filter(e=>!c||c.includes(e.value)).sort((e,t)=>e.label.localeCompare(t.label));(0,r.useEffect)(()=>{window.scrollTo({top:o,behavior:"smooth"})},[o]);let p=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),d(t)}};return(0,s.jsx)(i.az,{p:"sm",children:(0,s.jsx)(a.ms,{items:m,renderItem:(e,t)=>t?(0,s.jsx)(l.A,{id:"quick_find"}):(null==e?void 0:e.label)||null,onSelectedItemChange:e=>{e.selectedItem&&p(e.selectedItem)},forceMenuBelow:!0})})}},74761:(e,t,n)=>{"use strict";n.d(t,{$:()=>u});var s=n(6029),i=n(28349),a=n(62042),r=n(76356),l=n(90248),o=n(83260),d=n(54409);function u(e){let{messageId:t,children:n,onClick:u,...c}=e,[m,p,x]=(0,o.A)(t,!1);return!x||m?null:(0,s.jsxs)(r.so,{align:"center",bg:"surface.s2",br:"sm",py:"sm",pl:"lg",className:(0,a.AH)(c),children:[(0,s.jsx)(r.az,{children:(0,s.jsx)(d.G_L,{fill:"onSurface.nLv3"})}),(0,s.jsxs)(i.EY,{w:"100%",mx:"lg",my:"0",textStyle:"body.small",children:[(0,s.jsx)(l.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),n=0;n{null==u||u(),p(!0)},children:(0,s.jsx)(d.zQC,{icon:"close",width:"16",height:"16",fill:"onSurface.nLv1"})})]})}},75414:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});let s=function(e){switch(!0){case e<1e3:return"".concat(e);case e<1e4&&e/1e3%1>=.1:let t="".concat((e/1e3).toPrecision(2));return t.endsWith(".0")&&(t=t.substring(0,t.length-2)),"".concat(t,"k");case e<1e6:let n=Math.round(e/1e3);if(1e3===n)return"1M";return"".concat(n,"k");case e<1e7:let s=(e/1e5).toFixed();return s=s.endsWith("0")?s.substring(0,s.length-1):"".concat(s[0],".").concat(s[1]),"".concat(s,"M");case e<1e8:return"".concat(Math.round(e/1e6),"M");case e<1e9:let i=Math.round(e/1e6);if(1e3===i)return"1B";return"".concat(i,"M");default:return"".concat(e)}}},77015:(e,t,n)=>{"use strict";n.d(t,{t:()=>i.t,w:()=>s.w});var s=n(53192),i=n(91407)},77988:(e,t,n)=>{"use strict";n.d(t,{A:()=>x,g:()=>p});var s=n(6029),i=n(28349),a=n(90248),r=n(494),l=n(10794);let o={AU:"www.gamblinghelponline.org.au",BG:"nss-bg.org/hi-kodeks",GB:"www.begambleaware.org",NL:"hands24x7.nl"},d={DE:"18+ | Erlaubt (Whitelist) | Suchtrisiko | www.buwei.de",NL:"Wat kost gokken jou? Stop op tijd. 18+",CA:"19+. Gambling can be addictive, please play responsibly.
Eligible iGames conducted and managed by iGO are only available to those physically present in the Province of Ontario.",US:"21+. Gambling Problem?
Call 1-800-GAMBLER",SE:"18+. st\xf6dlinjen.se. Spela ansvarsfullt.",DK:"18+ | Regler og vilk\xe5r g\xe6lder | Spil ansvarligt | Selvudeluk via ROFUS.nu | StopSpillet.dk",TR:"İddaa oranları anlık olarak değişiklik g\xf6sterebilmektedir."},u={BE:21,GR:21,CA:19};function c(e){let{countryOddsProvider:t}=e;return(null==t?void 0:t.oddsMayDiffer)?(0,s.jsxs)("span",{children:[(0,s.jsx)("br",{}),(0,s.jsx)(a.A,{id:"disclaimer_odds_may_differ"})]}):null}function m(){let e=(0,r.d4)(l.LQ),t=e&&o[e];return t?(0,s.jsxs)("span",{children:[", ",(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})]}):null}let p=e=>e&&u[e.toUpperCase()]?u[e.toUpperCase()]:18;function x(e){let t,{provider:n}=e,o=(0,r.d4)(l.LQ),u=(0,r.d4)(l.zj);return o&&u?t=d["".concat(o,"-").concat(u)]||d[o]:o&&(t=d[o]),(0,s.jsxs)(i.EY,{display:"block",textStyle:"body.small",textAlign:"center",color:"neutrals.nLv3",pr:"sm",children:[t?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:t}}):(0,s.jsx)(a.A,{id:"gamble_responsibly",values:{age:p(o)}}),(0,s.jsx)(m,{}),(0,s.jsx)(c,{countryOddsProvider:n})]})}},78144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=n(6029),i=n(28349),a=n(99064),r=n(55729),l=n(90248),o=n(48683),d=n(23727),u=n(75751),c=n(47530),m=n(43783),p=n(49679),x=n(42021),g=n(32312);function h(e){let{isMobile:t}=(0,i.$c)(),[n,h]=(0,r.useState)(t),[j,v]=(0,r.useState)(),{rankings:y,rounds:f}=(0,m.Q)(e.uniqueTournamentId,e.seasonId,j);if((0,r.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)(l.A,{id:"sofascore_power_rankings"}),actionComponent:(0,s.jsx)(x.h,{})}),f&&j&&(0,s.jsx)(a.az,{mb:"sm",p:"sm",children:(0,s.jsx)(a.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)(g.i,{}),(0,s.jsx)(p.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:()=>h(e=>!e),icon:n?d.X.Up:d.X.Down}:void 0})]})})}},78492:(e,t,n)=>{var s=n(50956);e.exports=function(e,t,n,i){return s(e,function(e,s,a){t(i,e,n(e),a)}),i}},79528:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var s=n(494),i=n(151);let a=(e,t)=>{var n,a;let r=(0,s.d4)(i.g);if(e&&(null==r||null==(a=r.uniqueTournaments)||null==(n=a[e])?void 0:n[t]))return null==r?void 0:r.uniqueTournaments[e]}},79977:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=n(6029),i=n(28349),a=n(55729),r=n(90248),l=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"},"volleyball":{"pointsTotal":"volleyball_points","aces":"volleyball_aces","serveEfficiency":"volleyball_serve_efficiency_percentage","blockPoints":"volleyball_block_points","attackPoints":"volleyball_attack_points","attacksEfficiency":"volleyball_attack_efficiency_percentage","attackErrors":"volleyball_attack_errors","serveErrors":"volleyball_serve_errors","receptionErrors":"volleyball_reception_errors","attacksBlocked":"volleyball_attacks_blocked"},"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","kilometersCovered":"football_running_distance_covered_per_match","numberOfSprints":"football_running_number_of_sprints_per_match","successfulDribbles":"football_successful_dribbles"}');function c(e){let{id:t}=e,n=(0,a.useContext)(l.Ws),c=n?(0,o.f)(n):null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.A,{id:(0,d.O)(u,t,n)}),(null==c?void 0:c.includes(t))&&(0,s.jsxs)(i.EY,{textStyle:"[inherit]",textTransform:"lowercase",children:[" ",(0,s.jsx)(r.A,{id:"per_match"})]})]})}},80925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});let s=(e,t)=>{let n=null==e?void 0:e.provider,s=null==e?void 0:e.fallbackProvider;return t&&(null==n?void 0:n.liveOddsFrom)?[null==n?void 0:n.liveOddsFrom.id,null==s?void 0:s.id]:(null==n?void 0:n.oddsFrom)?[null==n?void 0:n.oddsFrom.id,null==s?void 0:s.id]:[null==n?void 0:n.id,null==s?void 0:s.id]}},81648:e=>{e.exports=function(e,t,n,s){for(var i=-1,a=null==e?0:e.length;++i{"use strict";n.d(t,{w:()=>a});var s=n(21377);let i=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Cricket,s.QCR.Football,s.QCR.Handball,s.QCR.IceHockey,s.QCR.Minifootball,s.QCR.Tennis,s.QCR.Volleyball];function a(e){return i.includes(e)}n(73959)},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}({})},86454:(e,t,n)=>{"use strict";n.d(t,{K:()=>f});var s=n(6029),i=n(28349),a=n(76356),r=n(9127),l=n(90112),o=n(12364),d=n.n(o),u=n(55729),c=n(90248),m=n(494),p=n(83201),x=n(54409),g=n(8973),h=n(83260),j=n(12759),v=n(46009);let y=(0,r.m)(a.az);function f(e){let{id:t,name:n,entity:r,children:o,threshold:f=144,type:b}=e,[T,w]=(0,u.useState)(0),[_,k]=(0,h.A)("sticky_follow_header_closed_".concat(r),!1),S=(0,j.Pz)(r),C=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[S[0]].includes(t)||2===S.length&&e.favorites.lists[S[1]].includes(t)));return(0,u.useEffect)(()=>{if(_)return;let e=d()(()=>{window.requestAnimationFrame(()=>{w(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[T,_]),(0,s.jsx)(l.N,{children:T>f&&!C&&(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)(a.az,{position:"absolute",bottom:"0",left:"0",right:"0",children:(0,s.jsx)(p.m,{h:"5xl",py:"sm",children:(0,s.jsxs)(a.so,{h:"[40px]",children:[(0,s.jsx)(a.so,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},justify:"flex-end",align:"center",flex:"[1 1 50%]",children:(0,s.jsxs)(a.so,{backgroundColor:"surface.s2",align:"center",px:"sm",py:"xs",br:"lg",cursor:"pointer",children:[o,(0,s.jsx)(v.e,{id:t,entity:r,type:b,location:g.y.FloatingHeader})]})}),(0,s.jsx)(a.so,{align:"center",flex:"[1 1 50%]",children:(0,s.jsx)(i.EY,{textStyle:"assistive.default",ml:"lg",children:(0,s.jsx)(c.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,s.jsx)(a.so,{align:"center",children:(0,s.jsx)(i.$n,{variant:"clear",p:"0",onClick:()=>{k(!0),w(0)},children:(0,s.jsx)(x.zQC,{icon:"close"})})})]})})})})})}},88165:e=>{e.exports=function(e,t,n){var s=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++s{var s=n(88165),i=n(48877),a=n(98888),r=Math.ceil,l=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:l(a(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var d=0,u=0,c=Array(r(o/t));d{"use strict";n.d(t,{TW:()=>l,HK:()=>o,hT:()=>u,R5:()=>d});var s=n(61836),i=n(85625);let a="___sofa-wsc___",r=e=>{let t=new RegExp("".concat(a,"(.*?)").concat(a)),n=e.match(t);return n?n[1]:""},l=e=>{let{type:t,location:n,tournamentId:s,roundId:i,eventId:r,screen:l,provider:o}=e;return"wsc"===o?"".concat(a).concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(i,"--").concat(r).concat(a):"".concat(l,"--").concat(t,"--").concat(n,"--").concat(s,"--").concat(i,"--").concat(r)},o=(e,t)=>{let[n,s,i,a,l,o]=("wsc"===t?r(e||""):e).split("--");return{screen:n,type:s,location:i,tournamentId:Number(a),roundId:"null"===l||"undefined"===l?null:Number(l),eventId:"null"===o||"undefined"===o?null:Number(o)}},d=e=>{let{screen:t,type:n,location:s,tournamentId:a,roundId:r,eventId:l}=o(e,"wsc"),d="Invalid WSC widget containerId: ".concat(e);if(e&&["single","multiple"].includes(n)&&["mobile","desktop"].includes(t)&&Object.values(i.D).includes(s)){if(isNaN(Number(a)));else if(r&&isNaN(Number(r)));else if(!(l&&isNaN(Number(l))))return!0}throw Error(d)},u=e=>{var t,n;let i=null==(t=e.detail)?void 0:t.eventData,a=(null==i?void 0:i.widget_id)||(null==i?void 0:i.origin_widget_id),r=null==(n=e.detail)?void 0:n.eventType;if(r&&a){let{eventId:e,tournamentId:t,location:n}=o(a,"wsc");switch(r){case"widget_click":(0,s.kA)({id:e||t,location:n,provider:"wsc"});break;case"story_exit":(0,s.G9)({id:e||t,location:n,timeOnScreen:i.content_duration_viewed})}}}},96003:(e,t,n)=>{"use strict";n.d(t,{J:()=>s,x:()=>i});let s="bonus-odds-cta-seen",i="bet-boost-cta-seen"},97047:(e,t,n)=>{"use strict";n.d(t,{WG:()=>u,YL:()=>m,_z:()=>c,lE:()=>a,o_:()=>r});var s=n(21377);let i={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},a=e=>e&&(i[e]||e),r=e=>{if(e)return e===s.YT8.Male?"Male":e===s.YT8.Female?"Female":void 0},l={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},o={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},d={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},u=(e,t)=>{var n;return null==(n=l[t])?void 0:n[e]},c=(e,t)=>{var n;return null==(n=o[t])?void 0:n[e]},m=(e,t)=>{var n;return null==(n=d[t])?void 0:n[e]}},97742:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>n8});var s=n(6029),i=n(21377),a=n(95669),r=n.n(a),l=n(19643),o=n(50417),d=n(73088),u=n(52951),c=n(947),m=n(58771),p=n(26331),x=n(97047);function g(e){let{uniqueTournament:t}=e,n=(0,c.A)(),a=(0,p.A)(),l=t.category,o=l.sport,u={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(o.slug)}),item:"".concat(i.VTF).concat(d.z.getTranslatedRoute(a,"eventList",{sport:o.slug}).route)},{"@type":"ListItem",position:2,name:n.formatMessage({id:l.slug}),item:"".concat(i.VTF).concat(d.z.getTranslatedRoute(a,"eventList.category",{sport:o.slug,category:l.slug}).route)},{"@type":"ListItem",position:3,name:t.name}]},g={"@context":"https://schema.org","@type":"SportsOrganization",name:t.name,sport:o.name,logo:i.V3t.image(t.id),url:"https://www.sofascore.com/tournament/".concat(o.slug,"/").concat(l.slug,"/").concat(t.slug,"/").concat(t.id),sameAs:(0,x._z)(t.id,a)};return(0,s.jsxs)(r(),{children:[(0,s.jsx)("script",{...(0,m.QQ)(u)}),",",(0,s.jsx)("script",{...(0,m.QQ)(g)}),","]})}var h=n(18741),j=n(13266);function v(){return(0,s.jsx)(h.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")?i.YT8.Female:e.includes("Mixed")?i.YT8.Mixed:e.includes("Boys")?"B":e.includes("Girls")?"G":i.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),i=T(e.uniqueTournament.name);return(0,s.jsxs)(y.J,{children:[(0,s.jsx)(h.fz,{id:"about.tt.ittf.challenge.1",values:{gender:n,type:i,tournamentName:t}}),(0,s.jsx)(v,{})]})}var _=n(76356),k=n(55729),S=n(33752),C=n(62859),I=n(19451),A=n(39676),z=n(29129),M=n(42678),P=n(98449),R=n(95211),E=n(8973),Y=n(21295),q=n(58047),H=n(41896),F=n(61836),L=n(27289),O=n(86679),N=n(30479),D=n(90248),W=n(69212);let B={"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"},Q={1858:{id:"headerTitle.tt.bundesliga"},2122:{id:"headerTitle.tt.cl",values:{gender:i.YT8.Male}},9500:{id:"headerTitle.tt.cl",values:{gender:i.YT8.Female}},11457:{id:"headerTitle.tt.ec",values:{gender:i.YT8.Male,type:"D"}},11458:{id:"headerTitle.tt.ec",values:{gender:i.YT8.Female,type:"D"}},11459:{id:"headerTitle.tt.ec",values:{gender:i.YT8.Mixed,type:"D"}},11455:{id:"headerTitle.tt.ec",values:{gender:i.YT8.Male,type:"S"}},11456:{id:"headerTitle.tt.ec",values:{gender:i.YT8.Female,type:"S"}},9550:{id:"headerTitle.tt.ettu",values:{gender:i.YT8.Male}},9534:{id:"headerTitle.tt.ettu",values:{gender:i.YT8.Female}},564:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:i.YT8.Male,type:"S"}},565:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:i.YT8.Female,type:"S"}},1121:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:i.YT8.Male,type:"T"}},1123:{id:"headerTitle.tt.oly.wcships",values:{comp:"O",gender:i.YT8.Female,type:"T"}},11579:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:i.YT8.Male,type:"S"}},11586:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:i.YT8.Female,type:"S"}},11587:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:i.YT8.Mixed,type:"D"}},11580:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:i.YT8.Male,type:"D"}},11585:{id:"headerTitle.tt.oly.wcships",values:{comp:"WC",gender:i.YT8.Female,type:"D"}},1966:{id:"headerTitle.tt.wc",values:{gender:i.YT8.Male}},1964:{id:"headerTitle.tt.wc",values:{gender:i.YT8.Female}},11604:{id:"headerTitle.tt.junior.wc",values:{gender:i.YT8.Male,type:"S"}},10698:{id:"headerTitle.tt.junior.wc",values:{gender:i.YT8.Female,type:"S"}},10697:{id:"headerTitle.tt.junior.wc",values:{gender:i.YT8.Mixed,type:"D"}},10699:{id:"headerTitle.tt.junior.wc",values:{gender:i.YT8.Male,type:"D"}},10700:{id:"headerTitle.tt.junior.wc",values:{gender:i.YT8.Female,type:"D"}},15004:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:i.YT8.Male}},15007:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"S",gender:i.YT8.Female}},15005:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:i.YT8.Male}},15009:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"TT",gender:i.YT8.Female}},15001:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:i.YT8.Male}},15068:{id:"headerTitle.tt.setka.tt.uwc",values:{comp:"UWC",gender:i.YT8.Female}}};function U(e){let{uniqueTournament:t,year:n}=e,{meta:a,seoContent:r}=(0,k.useContext)(u.xV),l=(0,c.A)(),o=(0,W.N)(t);if(null==r?void 0:r.heading)return(0,s.jsx)(s.Fragment,{children:r.heading});if(a&&a.h1)return(0,s.jsx)(s.Fragment,{children:a.h1});if(t.id===i.G6l.Euro&&n)return(0,s.jsx)(D.A,{id:"headerTitle.ut.euro",values:{year:n}});if(t.id===i.G6l.WorldCup)return(0,s.jsx)(D.A,{id:"headerTitle.ut.worldCup"});let d=t.category.sport.slug;if(d===i.QCR.Tennis){let e=t.category.slug,n={categoryName:"itf-men"===e||"itf-women"===e?"ITF":t.category.name,tournamentName:t.name};if(0===n.tournamentName.indexOf(n.categoryName)&&(n.categoryName=""),2361===t.id||2600===t.id)return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:"headerTitle.tennis.v2"},n).trim()});if(B[e])return(0,s.jsx)(s.Fragment,{children:l.formatMessage({id:B[e]},n).trim()})}return d===i.QCR.TableTennis&&Q[t.id]?(0,s.jsx)(D.A,{id:Q[t.id].id,values:Q[t.id].values}):(0,s.jsx)(D.A,{id:"headerTitle.standings",values:{item:o}})}var V=n(6354);let G=(e,t)=>{var n,s,i,a,r,l,o;return!!(null==e?void 0:e.winner)||!!(null==e||null==(n=e.newcomersUpperDivision)?void 0:n.length)||!!(null==e||null==(s=e.newcomersLowerDivision)?void 0:s.length)||!!(null==e||null==(i=e.newcomersOther)?void 0:i.length)||!!(null==e||null==(a=e.hostCountries)?void 0:a.length)||!!(null==e?void 0:e.hostCity)||!!(null==e?void 0:e.tier)||!!(null==t||null==(r=t.lowerDivisions)?void 0:r.length)||!!(null==t||null==(l=t.upperDivisions)?void 0:l.length)||!!(null==t||null==(o=t.linkedUniqueTournaments)?void 0:o.length)},K=e=>{var t;return!!(null==e||null==(t=e.mostTitlesTeams)?void 0:t.length)||!!(null==e?void 0:e.titleHolder)};var Z=n(78383),J=n.n(Z),X=n(48683),$=n(70010),ee=n(38296),et=n(32523),en=n(71024),es=n.n(en),ei=n(75751),ea=n(60988),er=n(42621),el=n(49249),eo=n(61090),ed=n(28349),eu=n(23727),ec=n(36937),em=n(65078),ep=n(54075),ex=n(93338);function eg(e){let{rating:t,round:n}=e,{formattedRating:i,ratingColorKey:a}=(0,ep.M)(n&&t?Math.round(t):t);return(0,s.jsx)(_.ov,{style:{backgroundColor:ex.S.var("colors.rating".concat(a.replace("scoreRating","")))},h:"xl",w:"xl",br:"md",children:(0,s.jsx)(ed.EY,{textStyle:"table.small",color:"onColor.primary",children:i})})}let eh=e=>{let{ordinal:t,event:n,rating:i}=e,a=(0,em.AR)(n);return(0,s.jsx)(C.y$.Provider,{value:a,children:(0,s.jsx)(j.tj,{event:n,children:(0,s.jsxs)(_.so,{h:"4xl",py:"[6px]",px:"lg",justify:"space-between",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(_.so,{h:"100%",align:"center",children:[(0,s.jsxs)(ed.Ym,{minW:"xl",textAlign:"center",textStyle:"body.small",display:"block",children:[t,"."]}),(0,s.jsx)(_.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",mx:"sm"}),(0,s.jsx)(ec.g,{})]}),(0,s.jsxs)(_.so,{align:"center",children:[(0,s.jsx)(ec.$,{}),(0,s.jsx)(_.cG,{color:"neutrals.nLv4",orientation:"vertical",borderInlineEndStyle:"solid",ml:"sm",mr:"md"}),(0,s.jsx)(eg,{rating:i})]})]})})})},ej=e=>{let{rankings:t}=e;return(0,s.jsx)(s.Fragment,{children:t.map((e,t)=>(0,s.jsx)(eh,{ordinal:t+1,rating:e.rating,event:e.event},"rated-event-".concat(t)))})};var ev=n(59721),ey=n(54053),ef=n(52695),eb=n(45860);function eT(e){let{data:t,isLoading:n}=(0,eb.Ay)(e?i.bnp.fanRatingRanking(e):null,{dedupingInterval:6e4});return{ranking:(null==t?void 0:t.ranking)||[],isLoading:n}}let ew=e=>{let{uniqueTournament:t,seasonId:n,isOpen:i,setIsOpen:a}=e,{ranking:r}=eT(n);return(0,s.jsx)(ey.A,{isOpen:i,setIsOpen:a,header:(0,s.jsxs)(_.so,{p:"lg",py:{mdDown:"sm"},align:"center",gap:"sm",w:{md:"[320px]"},children:[(0,s.jsx)(ev.e,{id:t.id,name:t.name}),(0,s.jsxs)(_.so,{direction:"column",children:[(0,s.jsx)(ed.EY,{textStyle:"display.large",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(D.A,{id:"bestRatedFanMatches"})})]})]}),children:(0,s.jsx)(_.az,{w:{md:"[360px]"},maxH:{md:"[512px]"},children:(0,s.jsx)(ej,{rankings:r})})})};function e_(e){let{seasonId:t,uniqueTournament:n}=e,{ranking:i,isLoading:a}=eT(t),[r,l]=(0,k.useState)(!1),{isMobile:o}=(0,ed.$c)(),d=o?3:10;if(!t||!a&&!i.length||a)return null;let u=i.slice(0,d),c=i.length>d;return(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{titleId:"bestRatedFanMatches"}),u.length?(0,s.jsx)(ej,{rankings:u}):(0,s.jsx)(et.E,{uniqueKey:"all-rated-games-cl",pt:"xs",rows:d,rowHeight:44,rowGap:4}),(0,s.jsx)(ew,{seasonId:t,uniqueTournament:n,isOpen:r,setIsOpen:l}),(0,s.jsx)(X.Zp.Footer,{ctaParams:c?{messageId:"all_rated_matches",onClick:()=>l(!0),icon:eu.X.Right}:void 0})]})}var ek=n(73463),eS=n(91294),eC=n(10778),eI=n(79368),eA=n(60908),ez=n(85238),eM=n(23685),eP=n(79528),eR=n(494),eE=n(45152),eY=n(38377),eq=n(89489);function eH(e){let{uniqueTournamentId:t}=e,n=(0,eR.wA)(),{data:a,isLoading:r}=(0,eb.Ay)(i.V3t.featuredEvents(t),{onSuccess:e=>n((0,eq.oU)(e.featuredEvents))});return(0,s.jsx)(s.Fragment,{children:null==a?void 0:a.featuredEvents.map(e=>(0,s.jsx)(eE.S,{isLoading:r,events:[e],hideEventTitle:!0,children:(0,s.jsx)(eY.Y,{event:e})},e.id))})}var eF=n(78259),eL=n(54409),eO=n(22648),eN=n(24159),eD=n(83260);let eW=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"})})]})})},eB=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"})})]})})},eQ=e=>{let{isOpen:t,setIsOpen:n}=e;return(0,s.jsx)(ey.A,{isOpen:t,setIsOpen:n,header:"player_of_the_season_title",children:(0,s.jsxs)(_.so,{direction:"column",p:"lg",pt:"0",gap:"lg",maxW:{md:"[320px]"},children:[(0,s.jsx)(_.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)(_.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)(D.A,{id:"rating_learn_more_button"}),(0,s.jsx)(eL.CCT,{fill:"primary.default",width:16,height:16})]}),(0,s.jsx)(ed.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(D.A,{id:"rating_player_of_the_season_body_1"})}),(0,s.jsx)(ed.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,s.jsx)(D.A,{id:"rating_player_of_the_season_body_2"})}),(0,s.jsx)(ed.$n,{onClick:()=>{window.open("https://corporate.sofascore.com/about/rating","_blank"),n(!1)},mt:"lg",display:{md:"none"},children:(0,s.jsx)(D.A,{id:"learn_more_button"})})]})})},eU=e=>{var t,n;let{uniqueTournamentId:a,seasonId:r,showLoader:l}=e,[o,d]=(0,k.useState)(!1),{data:u,isLoading:c,error:m}=(0,eb.Ay)(r?i.V3t.playerOfTheSeason(a,r):null),[p,x]=(0,eD.A)("playerOfTheSeason",{uniqueTournamentId:a,seasonId:r,playerId:null==u?void 0:u.player.id});if((0,k.useEffect)(()=>{r&&!m&&l&&!c&&(0,F.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[a,r,m,l,c]),(0,k.useEffect)(()=>{x({uniqueTournamentId:a,seasonId:r,playerId:null==u?void 0:u.player.id})},[a,r,null==u?void 0:u.player.id]),m||!l&&!u)return null;let g=i.V3t.image(a),h=u&&i.qvj.image(u.player.id);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.az,{position:"relative",br:["lg","xl"],elevation:"2",h:"[152px]",overflow:"hidden",children:[(0,s.jsxs)(_.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",children:[(0,s.jsx)(_.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",transform:"scale(1.5)",style:{filter:"blur(50px)",backgroundImage:"url(".concat(g,")"),backgroundSize:"100% 100%",backgroundPosition:"center center"}}),(0,s.jsxs)(_.so,{position:"absolute",top:"0",left:"0",w:"100%",justify:"space-between",br:"lg",elevation:"3",opacity:"0.1",children:[(0,s.jsx)(eW,{}),(0,s.jsx)(eB,{})]})]}),(0,s.jsxs)(_.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"lg",pt:"md",bg:"overlay.darken3",children:[(0,s.jsxs)(_.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(_.so,{align:"center",gap:"lg",children:[(0,s.jsx)(eL.gWL,{w:24,h:24,fill:"white"}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,s.jsx)(D.A,{id:"player_of_the_season",values:{gender:null!=(t=null==u?void 0:u.team.gender)?t:i.YT8.Male}})})]}),(0,s.jsx)(eL.G_L,{cursor:"pointer",fill:"onColor.primary",onClick:()=>d(!0)})]}),c?(0,s.jsx)(eO.a,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.so,{w:"100%",justify:"space-between",align:"center",zIndex:"button",children:[(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:i.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(_.so,{align:"center",children:[(0,s.jsx)(eF.tg,{src:h,size:48}),(0,s.jsxs)(_.az,{ml:"sm",children:[(0,s.jsx)(ed.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(null==u?void 0:u.player)&&(0,s.jsx)(eN.c,{entity:null==u?void 0:u.player})}),(0,s.jsxs)(_.so,{mt:"xs",align:"center",children:[(0,s.jsx)(eF.pY,{id:null==u?void 0:u.team.id,size:16}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",ml:"xs",mt:"2xs",children:(null==u?void 0:u.team)&&(0,s.jsx)(eN.c,{entity:null==u?void 0:u.team})})]})]})]})}),(0,s.jsx)(eF.GW,{rating:null==u?void 0:u.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,s.jsx)(_.so,{w:"100%",justify:"center",align:"center",zIndex:"button",children:(0,s.jsx)(j.uc,{player:null==u?void 0:u.player,sportSlug:i.QCR.Football,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,s.jsxs)(_.so,{align:"center",cursor:"pointer",children:[(0,s.jsx)(ed.Ym,{ml:"sm",textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(D.A,{id:"see_player_statistics",values:{gender:null!=(n=null==u?void 0:u.team.gender)?n:i.YT8.Male}})}),(0,s.jsx)(eL.CCT,{fill:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,s.jsx)(eQ,{isOpen:o,setIsOpen:d})]})},eV=e=>{var t,n,a;let{uniqueTournamentId:r,seasonId:l}=e,[o,d]=(0,k.useState)(!1),u=(0,k.useContext)(C.Ws),{data:c,error:m,isLoading:p}=(0,eb.Ay)(l?i.V3t.playerOfTheSeasonRace(r,l):null);if(m||!c||!(null==(t=c.topPlayers.rating)?void 0:t.length))return null;let x=null==c?void 0:c.topPlayers.rating,g=null!=(a=null==(n=x[0].team)?void 0:n.gender)?a:i.YT8.Male;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{title:(0,s.jsxs)(_.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,s.jsxs)(_.so,{align:"center",gap:"lg",children:[(0,s.jsx)(eL.gWL,{w:24,h:24,fill:"onSurface.nLv1"}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",children:(0,s.jsx)(D.A,{id:"player_of_the_season_race",values:{gender:g}})})]}),(0,s.jsx)(eL.G_L,{cursor:"pointer",fill:"onSurface.nLv1",onClick:()=>d(!0)})]})}),(0,s.jsx)(_.so,{direction:"column",overflow:"hidden",pb:{base:"lg",mdDown:"0"},children:p?(0,s.jsx)(_.so,{justify:"center",align:"center",w:"100%",children:(0,s.jsx)(eO.a,{})}):null==x?void 0:x.map((e,t)=>(0,s.jsx)(j.uc,{player:e.player,sportSlug:u,hash:"tab:statistics",onClick:()=>{(0,F.ke)({action:"click",location:"league_details",type:"player_of_the_season_race"})},children:(0,s.jsxs)(_.so,{w:"100%",justify:"space-between",align:"center",h:"5xl",px:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(_.so,{align:"center",children:[(0,s.jsx)(ed.EY,{display:"block",w:"lg",h:"lg",mr:"xs",children:t+1}),(0,s.jsx)(eF.tg,{id:e.player.id,name:e.player.name,size:40}),(0,s.jsxs)(_.az,{flexGrow:1,ml:"lg",children:[(0,s.jsx)(ed.EY,{display:"block",children:e.player&&(0,s.jsx)(eN.c,{entity:e.player})}),(0,s.jsxs)(_.so,{align:"center",mt:"xs",children:[e.team&&(0,s.jsx)(eF.pY,{id:e.team.id,size:16,name:e.player.name}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",ml:"xs",children:(null==e?void 0:e.team)&&(0,s.jsx)(eN.c,{entity:null==e?void 0:e.team})})]})]})]}),(0,s.jsx)(eF.GW,{rating:null==e?void 0:e.statistics.rating,format:"sideBox"})]})},t))}),l&&(0,s.jsx)(_.I4.a,{onClick:()=>{window.location.hash="id:".concat(l,",tab:top_players")},hideFrom:"md",children:(0,s.jsx)(X.Zp.Footer,{ctaParams:{messageId:"view_top_players",values:{gender:g},icon:eu.X.Right}})})]}),(0,s.jsx)(eQ,{isOpen:o,setIsOpen:d})]})};var eG=n(77015),eK=n(46009),eZ=n(75414);let eJ=e=>{let{player:t,team:n,popularityRanking:a}=e,r=i.USm.includes(n.sport.slug);return(0,s.jsx)(j.uc,{player:t,sportSlug:n.sport.slug,children:(0,s.jsxs)(_.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)(_.so,{children:[(0,s.jsx)(_.so,{w:"lg",align:"center",justify:"center",children:(0,s.jsx)(ed.EY,{textStyle:"body.small",children:a})}),(0,s.jsxs)(_.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:[(0,s.jsx)(eG.t,{id:t.id,name:t.name,size:40}),t.country&&(0,s.jsx)(_.so,{position:"absolute",bottom:"[0px]",right:"[0px]",children:(0,s.jsx)(eG.w,{alpha2:t.country.alpha2,h:"16px",w:"16px"})})]}),(0,s.jsxs)(_.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(ed.EY,{lineHeight:"md",children:(0,s.jsx)(eN.c,{entity:t})}),(0,s.jsx)(ed.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(D.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eZ.A)(t.userCount)})}})})]})]}),r&&(0,s.jsx)(eK.e,{entity:i.bq7.Players,id:t.id,location:E.y.PopularPlayers,type:E.b.Player})]})})};function eX(e){let{popularPlayers:t}=e,[n,i]=(0,k.useState)(!1),a=t.length>5,r=n?t:t.slice(0,5);return(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(eJ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(X.Zp.Footer,{ctaParams:a?{messageId:n?"show_less":"show_more",onClick:()=>i(e=>!e),icon:n?eu.X.Up:eu.X.Down}:void 0})]})}let e$=e=>{let{uniqueTournament:t}=e;return(0,s.jsxs)(_.so,{p:"lg",children:[(0,s.jsx)(_.so,{children:(0,s.jsx)(ev.e,{id:t.id,h:"56px",w:"56px"})}),(0,s.jsxs)(_.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(ed.H3,{textStyle:"display.large",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(D.A,{id:"tournament.popularPlayers"})})]})]})};function e0(e){let{popularPlayers:t,uniqueTournament:n}=e,[i,a]=(0,k.useState)(!1),r=null==t?void 0:t.slice(0,3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{titleId:"tournament.popularPlayers"}),r.map((e,t)=>(0,s.jsx)(eJ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id)),(0,s.jsx)(X.Zp.Footer,{ctaParams:{messageId:"basic.seeAllPlayers",onClick:()=>a(e=>!e),icon:eu.X.Right}})]}),(0,s.jsx)(ed.Xn,{isOpen:i,onClose:()=>a(!1),header:(0,s.jsx)(e$,{uniqueTournament:n}),size:"contentFit",children:(0,s.jsx)(_.so,{h:"100%",w:"100%",direction:"column",children:t.map((e,t)=>(0,s.jsx)(eJ,{team:e.team,player:e.player,popularityRanking:t+1},e.player.id))})})]})}function e1(e){let{uniqueTournament:t,seasonId:n}=e,a=56953===n&&t.id===i.G6l.Euro||57114===n&&t.id===i.G6l.CopaAmerica,{data:r}=(0,eb.Ay)(a?i.V3t.topFollowedPlayers(t.id,n):null);return r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.az,{hideBelow:"md",maxW:"[440px]",children:(0,s.jsx)(eX,{popularPlayers:null==r?void 0:r.topFollowedPlayers})}),(0,s.jsx)(_.az,{display:{md:"none"},children:(0,s.jsx)(e0,{popularPlayers:null==r?void 0:r.topFollowedPlayers,uniqueTournament:t})})]}):null}var e9=n(33144),e4=n(69559);let e3=e=>{let{team:t,popularityRanking:n}=e,a=(0,e4.o)();return(0,s.jsx)(j.gT,{team:t,sport:a,children:(0,s.jsxs)(_.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)(_.so,{children:[(0,s.jsx)(_.so,{w:"lg",align:"center",justify:"center",children:(0,s.jsx)(ed.EY,{textStyle:"body.small",color:"neutrals.nLv1",children:n})}),(0,s.jsx)(_.az,{position:"relative",w:"3xl",h:"3xl",mx:"md",children:(0,s.jsx)(e9.p,{id:t.id,name:t.name,size:40})}),(0,s.jsxs)(_.so,{direction:"column",justify:"center",align:"flex-start",children:[(0,s.jsx)(ed.EY,{lineHeight:"md",textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(eN.c,{entity:t})}),(0,s.jsx)(ed.EY,{display:"block",mt:"xs",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"capitalize",children:(0,s.jsx)(D.A,{id:"basic.followersWithCount",values:{n:(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,eZ.A)(t.userCount)})}})})]})]}),(0,s.jsx)(eK.e,{entity:i.bq7.Teams,id:t.id,location:E.y.PopularTeams,type:E.b.Team})]})})},e6=e=>{let{uniqueTournament:t}=e;return(0,s.jsxs)(_.so,{p:"lg",children:[(0,s.jsx)(_.so,{children:(0,s.jsx)(ev.e,{id:t.id,h:"56px",w:"56px"})}),(0,s.jsxs)(_.so,{direction:"column",align:"flex-start",justify:"center",ml:"sm",children:[(0,s.jsx)(ed.H3,{textStyle:"display.large",color:"neutrals.nLv1",children:(0,s.jsx)(ef.O,{uniqueTournament:t})}),(0,s.jsx)(ed.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,s.jsx)(D.A,{id:"tournament.popularTeams"})})]})]})};function e5(e){let{uniqueTournament:t,seasonId:n}=e,a=74858===n&&t.id===i.G6l.SofascoreClubNXTU14,{data:r}=(0,eb.Ay)(a?i.V3t.topFollowedTeams(t.id,n):null),l=(null==r?void 0:r.topFollowedTeams)||[],{isMobile:o}=(0,ed.$c)(),[d,u]=(0,k.useState)(!1),c=[...l].slice(0,o?3:5);return l.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{titleId:"tournament.popularTeams"}),(!o&&d?l:c).map((e,t)=>(0,s.jsx)(e3,{team:e,popularityRanking:t+1},e.id)),(0,s.jsx)(X.Zp.Footer,{ctaParams:c.lengthu(e=>!e),icon:o?eu.X.Right:d?eu.X.Up:eu.X.Down}})]}),o&&(0,s.jsx)(ed.Xn,{isOpen:d,onClose:()=>u(!1),header:(0,s.jsx)(e6,{uniqueTournament:t}),children:(0,s.jsx)(_.so,{h:"100%",w:"100%",direction:"column",pb:"xl",children:l.map((e,t)=>(0,s.jsx)(e3,{team:e,popularityRanking:t+1},e.id))})})]}):null}var e8=n(78144),e2=n(99064),e7=n(61703),te=n(47530),tt=n(52827),tn=n(45749),ts=n(10794),ti=n(85625),ta=n(95868);let tr=e=>{let{tournamentId:t,roundId:n,eventHighlights:i}=e,{isMobile:a}=(0,ed.$c)(),[r,l]=(0,k.useState)(!1),o=(0,ta.TW)({type:"multiple",location:ti.D.TournamentPage,tournamentId:t,roundId:n,screen:a?"mobile":"desktop",eventId:null,provider:"wsc"});(0,tn.P)({containerId:o,storyIds:i.map(e=>{let{sdkId:t}=e;return t}),location:ti.D.TournamentPage,setErrorOccurred:l});let d=(0,tt.i)(o,r,"wsc");return r?null:(0,s.jsx)(_.az,{ref:d,id:o,h:"[188px]"})};function tl(e){let{uniqueTournamentId:t,seasonId:n,rounds:a,showPicker:r,selectedRound:l,setSelectedRound:o,sportSlug:d}=e,{eventHighlights:u,isLoading:c,isError:m}=function(e){let{eventId:t,uniqueTournamentId:n,seasonId:s,roundId:a}=e,r=(0,eR.d4)(ts.LQ),{data:l,isLoading:o,error:d}=(0,eb.Ay)(r&&n&&s&&a?i.vCt.tournamentRoundVideoHighlights(r,n,s,a):null);return{eventHighlights:null==l?void 0:l.sportVideoHighlights.filter(e=>{var n;return!t||(null==(n=e.game)?void 0:n.eventId)===t}),isError:d,isLoading:o}}({uniqueTournamentId:t,seasonId:n,roundId:null==l?void 0:l.eventRoundId}),[p,x]=(0,k.useState)(!1),g=[i.QCR.Basketball,i.QCR.AmericanFootball].includes(d)?"game_highlights_title":"match_highlights_title";return((0,k.useEffect)(()=>{x(!0),setTimeout(()=>{x(!1)},0)},[null==l?void 0:l.eventRoundId]),m)?null:(0,s.jsxs)(_.az,{p:"sm",children:[(0,s.jsxs)(_.so,{justify:"space-between",align:"center",p:"sm",mb:"sm",children:[(0,s.jsx)(ed.EY,{textStyle:r?"display.medium":"display.small",children:(0,s.jsx)(D.A,{id:g})}),r&&l&&(0,s.jsx)(e2.ms,{items:a,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&o(t)},initialSelectedItem:l,renderItem:e=>e?(0,s.jsx)(te.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0})]}),(0,s.jsx)(_.az,{minH:"[188px]",position:"relative",children:p||!(null==l?void 0:l.eventRoundId)||c?null:(0,s.jsx)(tr,{tournamentId:t,roundId:null==l?void 0:l.eventRoundId,eventHighlights:u||[]})})]})}var to=n(90510),td=n(74761),tu=n(16620),tc=n(8298),tm=n(31844);let tp=(e,t,n)=>{let{uniqueTournamentId:s,uniqueTournamentName:a,uniqueTournamentSlug:r,categorySlug:l,sport:o,seasonId:u,roundId:c}=e,m="sofa-totw-embed-".concat(s,"-").concat(u,"-").concat(c),p=(0,I.vf)(t.locale),x="".concat(i.yuv).concat(p?"/".concat(p):"","/embed/unique-tournament/").concat(s,"/season/").concat(u,"/round/").concat(c,"/teamOfTheWeek"),g="?showCompetitionLogo=true&widgetTheme=light&widgetTitle=".concat(encodeURIComponent(a)),h=(0,i.Lo9)(d.z.getTranslatedRoute(n,"uniqueTournament",{sport:o,category:l,tournament:r,id:s},(0,N.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
")},tx=function(e){let t=(0,c.A)(),n=(0,p.A)();return(0,s.jsx)(tm.C,{callToAction:(0,s.jsx)(D.A,{id:"team_of_the_week_embed"}),embedString:tp(e,t,n),px:"0",my:"0"})};function tg(e){let{uniqueTournament:t,seasonId:n,selectedRound:a,setSelectedRound:r,rounds:l,showPicker:o,isRoundLoading:d}=e,{setTotwUrl:u}=(0,tu.d)(),c=(null==a?void 0:a.roundName.toLowerCase())==="season",m=(null==a?void 0:a.totwRoundId)&&n?i.V3t.teamOfTheWeekRoundDetails(t.id,n,a.totwRoundId):null,{data:p,isLoading:x}=(0,eb.Ay)(m);(0,k.useEffect)(()=>(u(m),()=>u(null)),[a]);let g=d||x;return g||p?(0,s.jsxs)(_.az,{children:[(0,s.jsx)(X.Zp.Header,{titleId:c?"tournament.teamOfTheSeason":"team_of_the_week",variant:"left-aligned-desktop",actionComponent:o&&a?(0,s.jsx)(e2.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&r(t)},initialSelectedItem:a,selectedItem:a,renderItem:e=>e?(0,s.jsx)(te.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):(0,s.jsx)(_.az,{h:"2xl"})}),(0,s.jsxs)(X.BU,{children:[(0,s.jsx)(td.$,{messageId:c?"rating_team_of_the_season":"rating_team_of_the_week"}),(0,s.jsxs)(_.az,{children:[(0,s.jsx)(tc.I,{...p,isSeason:c}),(null==a?void 0:a.totwCreatedTimestamp)?(0,s.jsxs)(ed.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,s.jsx)(D.A,{id:"published"}),":"," ",(0,s.jsx)(to.XU,{value:1e3*a.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,s.jsx)(_.az,{h:"2xl"})]}),g&&(0,s.jsx)(_.az,{h:"4xl",bg:"surface.s2",br:"lg",hideBelow:"md"}),n&&a&&!g&&(0,s.jsx)(tx,{uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,sport:t.category.sport.slug,seasonId:n,roundId:a.totwRoundId})]})]}):null}function th(e){let{uniqueTournament:t,seasonId:n,sportSlug:a}=e,r=t.id,{rounds:l,isLoading:o,selectedRound:d,setSelectedRound:u,hasWSC:c,hasTOTW:m}=function(e,t){var n;let s=(0,eR.d4)(ts.LQ),[a,r]=(0,k.useState)(void 0),l=t?i.V3t.teamOfTheWeekRounds(e,t):null,{data:o,isLoading:d}=(0,eb.Ay)(l),u=(null==o?void 0:o.rounds)||[],c=t&&s?i.vCt.tournamentRoundsWithVideoHighlights(s,e,t):null,{data:m,isLoading:p}=(0,eb.Ay)(c),x=(null==m?void 0:m.rounds.filter(e=>!u.find(t=>t.roundId===(null==e?void 0:e.eventRoundId))))||[],g=Array.from(new Set([...u.map(e=>e.roundSlug),...x.map(e=>e.roundSlug)])).map(e=>{var t;let n=u.find(t=>t.roundSlug===e),s=x.find(t=>t.roundSlug===e),i=(null==n?void 0:n.roundId)||(null==s?void 0:s.eventRoundId);return{eventRoundId:i,roundName:(null==n?void 0:n.roundName)||(null==s?void 0:s.eventRoundName)||i.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,k.useEffect)(()=>{r(g[0])},[t,null==(n=g[0])?void 0:n.roundSlug]),{rounds:g,isLoading:p||d,selectedRound:a,setSelectedRound:r,hasWSC:!!(null==m?void 0:m.rounds.length),hasTOTW:!!u.length}}(r,n),p=(0,eP.b)(r,"teamOfTheWeek"),x=a===i.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",g=n?(0,s.jsx)(tl,{uniqueTournamentId:r,seasonId:n,selectedRound:d,setSelectedRound:u,rounds:l,showPicker:!m,sportSlug:a}):null,h=(0,s.jsx)(tg,{uniqueTournament:t,seasonId:n,showPicker:!c,isRoundLoading:o,rounds:l,selectedRound:d,setSelectedRound:u});if(!o&&!m&&!c)return null;if(m&&c)return(0,s.jsxs)(e7.b,{branding:p,entityId:r,location:"league_totw",children:[(0,s.jsx)(X.Zp.Header,{titleId:x,variant:"left-aligned",actionComponent:d?(0,s.jsx)(e2.ms,{items:l,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&u(t)},initialSelectedItem:d,renderItem:e=>e?(0,s.jsx)(te.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):void 0}),g,h]});if(m)return(0,s.jsx)(e7.b,{branding:p,entityId:r,location:"league_totw",children:h});if(c)return(0,s.jsx)(X.Zp,{children:g});if(a===i.QCR.Football)return(0,s.jsx)(e7.b,{branding:p,entityId:r,location:"league_totw",children:h});else return null}var tj=n(52363);let tv=es()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]},ssr:!1,loading:()=>(0,s.jsx)(et.E,{uniqueKey:"unique-tournament-media-cl-2",br:"lg"})}),ty=es()(()=>n.e(97565).then(n.bind(n,97565)),{loadableGenerated:{webpack:()=>[97565]},ssr:!1});function tf(e){var t;let{uniqueTournament:n,seasons:a,activeSeasonId:r,hasEvents:l,hasPlayerOfTheSeason:o,hasMedia:d}=e,u=eI.zK[n.id],c=u&&(null==u?void 0:u.historyHighlightsEndYear),m=n.category.sport.slug,p=m===i.QCR.Football,x=a[0],g=(null==x?void 0:x.id)===r,h=(0,eP.b)(n.id,"banner"),j=(null==(t=a[0])?void 0:t.id)===r;return(0,s.jsxs)(s.Fragment,{children:[g&&(0,s.jsx)(eH,{uniqueTournamentId:n.id}),(!j||l||!r)&&(0,s.jsx)(ei.t,{tag:"UniqueTournamentEventList",children:(0,s.jsx)(ea.MC.Provider,{value:{isNarrow:!0,isShort:i.HwS.includes(m),location:E.y.MatchesSection},children:r?(0,s.jsx)(ty,{uniqueTournamentId:n.id,seasonId:r},"UniqueTournamentEventList-".concat(n.id,"-").concat(r)):(0,s.jsx)(ek.A,{entity:i.wNW.UniqueTournament,id:n.id})})}),(0,s.jsx)(tj.Br,{uniqueTournamentId:n.id}),r&&(0,s.jsx)(e8.default,{uniqueTournamentId:n.id,seasonId:r}),p&&o&&(0,s.jsx)(eU,{uniqueTournamentId:n.id,seasonId:r,showLoader:!!(!g||n.endDateTimestamp&&(null==n?void 0:n.endDateTimestamp){let{name:t,image:n}=e;return(0,s.jsxs)(_.so,{_hover:{bg:"surface.s2"},px:{mdDown:"sm",md:"lg"},py:"xs",gap:"lg",align:"center",children:[n,(0,s.jsx)(ed.EY,{children:t})]})};function tZ(e){let{title:t,tournaments:n,teams:i,sport:a}=e,r=[];(null==n?void 0:n.length)&&r.push(...n.map(e=>(0,s.jsx)(j.tQ,{tournament:e,children:(0,s.jsx)(tK,{image:(0,s.jsx)(tG.e,{size:32,...e}),name:(0,s.jsx)(ef.O,{uniqueTournament:e})})},e.id)));let l=null==i?void 0:i.filter(Boolean);return((null==l?void 0:l.length)&&r.push(...l.map(e=>(0,s.jsx)(j.gT,{sport:a,team:e,children:(0,s.jsx)(tK,{image:(0,s.jsx)(tG.p,{size:32,...e}),name:(0,s.jsx)(tb.Rm,{team:e})})},e.id))),r.length)?(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{titleId:t}),r,(0,s.jsx)(X.Zp.Footer,{})]}):null}var tJ=n(85685);let tX=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 t$=n(27892);let t0=e=>{let{id:t}=e;return(0,s.jsx)(D.A,{id:(0,t$.O)(tX,t)})};function t1(e){let{facts:t,isCurrentSeason:n}=e;return Object.keys(t).some(e=>"winner"!==e&&"groundType"!==e&&void 0!==t[e]&&!("numberOfCompetitors"===e&&!n))?(0,s.jsxs)(_.az,{pb:"sm",children:[(0,s.jsx)(X.Zp.Header,{title:(0,s.jsx)(ed.EY,{textTransform:"capitalize",textStyle:"display.medium",lineHeight:"24px",children:(0,s.jsx)(D.A,{id:"tournament.facts"})})}),Object.keys(t).map(e=>"winner"!==e&&void 0!==t[e]&&("numberOfCompetitors"!==e||n)&&"groundType"!==e?(0,s.jsxs)(_.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",align:"center",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(t0,{id:e})}),(0,s.jsx)(ed.EY,{children:"totalPrizeMoney"===e&&t.totalPrizeMoney?(0,s.jsx)(tJ.o,{parsedMoney:(0,i.oaz)(t.totalPrizeMoney)}):t[e]})]},e):null)]}):null}function t9(e){let{countries:t,city:n}=e,i=(null==t?void 0:t.length)?t.join(", "):null,a=((null==t?void 0:t.length)||0)>1,r=(n||"").split(",").length>1;return i||n?(0,s.jsxs)(_.az,{pb:"sm",children:[(0,s.jsx)(X.Zp.Header,{titleId:"tournament.host"}),i&&(0,s.jsxs)(_.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(D.A,{id:a?"countries":"country"})}),(0,s.jsx)(ed.EY,{textAlign:"end",children:i})]}),n&&(0,s.jsxs)(_.so,{py:"sm",px:{mdDown:"sm",md:"lg"},justify:"space-between",gap:"lg",children:[(0,s.jsx)(ed.EY,{children:(0,s.jsx)(D.A,{id:r?"cities":"city"})}),(0,s.jsx)(ed.EY,{textAlign:"end",children:n})]})]}):null}function t4(e){let{team:t,sport:n,text:i}=e;return(0,s.jsx)(_.az,{children:(0,s.jsx)(j.gT,{team:t,sport:n,children:(0,s.jsxs)(_.so,{pt:"sm",direction:"column",align:"center",children:[(0,s.jsx)(e9.p,{size:40,id:t.id,name:t.name}),(0,s.jsx)(ed.Ym,{px:"sm",mt:"xs",textStyle:"display.small",textAlign:"center",children:(0,s.jsx)(tb.Rm,{team:t})}),(0,s.jsx)(ed.EY,{px:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",mt:"xs",h:i?"2xl":"xs",textAlign:"center",children:i})]})})})}function t3(e){return(0,s.jsxs)(_.so,{align:"center",justify:"center",direction:"column",py:"md",children:[(0,s.jsx)(ed.EY,{display:"block",textStyle:"assistive.micro",color:"neutrals.nLv3",textTransform:"uppercase",children:e.label}),(0,s.jsx)(ed.EY,{display:"block",textStyle:"display.medium",children:e.value})]})}function t6(e){let{titleHolder:t,mostTitlesTeams:n,titleHolderTitles:a,mostTitles:r,sport:l,totalPrizeMoney:o,numberOfCompetitors:d,numberOfSets:u}=e,m=(0,c.A)(),p=a?"".concat(m.formatMessage({id:"title_holder"})," (").concat(a,")"):m.formatMessage({id:"title_holder"}),x=r&&r>1?"".concat(m.formatMessage({id:"most_titles"})," (").concat(r,")"):"",g=l===i.QCR.Tennis&&!!u||!!o||!!d;return g||t||n?(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(_.az,{display:["none","block"],children:(0,s.jsx)(X.Zp.Header,{titleId:"titles"})}),(0,s.jsxs)(_.so,{wrap:"wrap",align:"center",p:"sm",justify:"space-around",children:[t&&(0,s.jsx)(t4,{team:t,sport:l,text:p}),n?n.map(e=>(0,s.jsx)(t4,{team:e,sport:l,text:x},e.id)):void 0]}),g&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(_.so,{justify:"space-evenly",align:"center",borderTop:"1px solid {colors.neutrals.nLv4}",children:[u&&(0,s.jsx)(t3,{label:(0,s.jsx)(D.A,{id:"sets"}),value:u}),o&&(0,s.jsx)(t3,{label:(0,s.jsx)(D.A,{id:"totalPrizeMoney"}),value:(0,s.jsx)(tJ.o,{parsedMoney:(0,i.oaz)(o)})}),d&&(0,s.jsx)(t3,{label:(0,s.jsx)(D.A,{id:"competitors"}),value:d})]})})]}):null}let t5=["id","newcomersUpperDivision","newcomersLowerDivision","newcomersOther","totalPrizeMoneyCurrency","totalPrizeMoney","hostCity","hostCities","hostCountries"],t8=(e,t)=>{let n=Math.round(100*e);return t?"".concat(n,"%"):n/100};function t2(e,t){if(void 0===e)return null;let n=Object.keys(e).filter(e=>-1===t5.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 i=(n.homeTeamWins||0)+(n.awayTeamWins||0)+(n.draws||0);if(i){let e={...n,...s};if(n.goals){let t=t8(n.goals/i);e={goals:e.goals,averageGoals:t,...e}}return n.yellowCards&&(e.yellowCards=t8(n.yellowCards/i)),n.redCards&&(e.redCards=t8(n.redCards/i)),n.homeTeamWins&&(e.homeTeamWins=t8(n.homeTeamWins/i,!0)),n.awayTeamWins&&(e.awayTeamWins=t8(n.awayTeamWins/i,!0)),n.draws&&(e.draws=t8(n.draws/i,!0)),e}return{...n,...s}}let t7=e=>{let{children:t}=e;return(0,s.jsx)(_.az,{_lastOfType:{h:"100%",bg:"surface.s1"},children:t})};function ne(e){var t,n,a;let{tournament:r,info:l,seasonId:o,isCurrentSeason:d}=e,u=r.category.sport.slug,c={sport:u,category:r.category.slug},m=null==(t=(0,eb.Ay)(o?i.V3t.info(r.id,o):null,{fallbackData:d&&l?{info:l}:void 0}).data)?void 0:t.info,p=(0,k.useMemo)(()=>t2(m,r),[o,m]),x={},g={};u===i.QCR.Tennis?((null==p?void 0:p.totalPrizeMoney)&&(x.totalPrizeMoney=tQ()(p.totalPrizeMoney)),x.numberOfCompetitors=tQ()(null==p?void 0:p.numberOfCompetitors),x.numberOfSets=tQ()(null==p?void 0:p.numberOfSets),p&&(null==(g=tQ()(p))||delete g.totalPrizeMoney,null==g||delete g.numberOfCompetitors,null==g||delete g.numberOfSets,null==g||delete g.groundType)):p&&(g={...p});let h=d?r.titleHolder||(null==m?void 0:m.winner):void 0,j=d?r.mostTitlesTeams:void 0,v=[...[{title:"tournament.upperDivision",tournaments:r.upperDivisions},{title:"newcomers_upper",teams:null==m?void 0:m.newcomersUpperDivision},{title:"lower_division",tournaments:r.lowerDivisions},{title:"newcomers_lower",teams:null==m?void 0:m.newcomersLowerDivision},{title:"tournament.newcomersOther",teams:null==m?void 0:m.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)(tZ,{...e,...c},e.title):null}),!tV()(g)&&Object.keys(g).some(e=>"winner"!==e&&"groundType"!==e&&void 0!==g[e]&&!("numberOfCompetitors"===e&&!d))?(0,s.jsx)(t1,{facts:g,isCurrentSeason:d},g.id):null,(null==m?void 0:m.hostCountries.length)||(null==m?void 0:m.hostCity)?(0,s.jsx)(t9,{countries:null==m?void 0:m.hostCountries,city:null==m?void 0:m.hostCity},m.id):null].filter(e=>!!e),y=!!h||!!(null==j?void 0:j.length)||!!(null==(n=r.linkedUniqueTournaments)?void 0:n.length),f=!!v.length;return y||f?(0,s.jsxs)(X.Zp,{variant:"mobile-only",children:[(0,s.jsx)(_.az,{hideFrom:"md",children:(0,s.jsx)(X.Zp.Header,{titleId:"tournament.leagueInfo"})}),(0,s.jsx)(X.WC,{variant:"inverse-mobile",children:(0,s.jsx)(X.WC,{variant:"square-desktop",children:(0,s.jsxs)(_.so,{mdDown:{p:"sm",gap:"sm",flexDirection:"column"},md:{gap:"[1px]",bg:"neutrals.nLv4",br:"lg",mt:"sm"},overflow:"hidden",children:[y&&(0,s.jsx)(_.so,{w:"100%",direction:"column",gap:{base:"sm",md:"[1px]"},children:(0,s.jsxs)(t7,{children:[(0,s.jsx)(t6,{titleHolder:h,titleHolderTitles:r.titleHolderTitles,mostTitlesTeams:j,mostTitles:r.mostTitles,sport:u,...x}),r.linkedUniqueTournaments&&(null==(a=r.linkedUniqueTournaments)?void 0:a.length)>0&&(0,s.jsx)(X.Zp,{children:(0,s.jsx)(tZ,{title:"tournament.sameDivision",tournaments:r.linkedUniqueTournaments,...c})})]})}),y&&f&&(0,s.jsx)(_.so,{direction:"column",gap:{base:"sm",md:"[1px]"},w:"100%",children:v.map(e=>(0,s.jsx)(t7,{children:(0,s.jsx)(X.Zp,{children:e})},null==e?void 0:e.key))}),!y&&f&&tW()(v,Math.ceil(v.length/2)).map((e,t)=>(0,s.jsx)(_.so,{w:"100%",gap:{base:"sm",md:"[1px]"},direction:"column",children:e.map((e,t)=>(0,s.jsx)(t7,{children:(0,s.jsx)(X.Zp,{children:e},"element-".concat(t))},null==e?void 0:e.key))},"group-".concat(t)))]})})})]}):null}function nt(e){let{uniqueTournament:t,seasonId:n,info:i,isCurrentSeason:a}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Details,children:(0,s.jsx)(ne,{tournament:t,info:i,seasonId:n,isCurrentSeason:a})})}let nn=es()(()=>Promise.all([n.e(14591),n.e(40774),n.e(73003)]).then(n.bind(n,73003)),{loadableGenerated:{webpack:()=>[73003]},loading:()=>(0,s.jsx)(_.az,{h:"[500px]"})});function ns(e){var t;let{uniqueTournament:n,seasonId:i}=e,a=n.category.sport.slug;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Knockout,children:(0,s.jsx)(_.az,{overflow:"hidden",borderBottomRadius:"lg",children:(0,s.jsx)(X.WC,{variant:"square",children:(0,s.jsx)(nn,{uniqueTournamentId:null==n?void 0:n.id,uniqueTournamentSlug:null==n?void 0:n.slug,categorySlug:null==(t=n.category)?void 0:t.slug,seasonId:i,sport:a})})})})}var ni=n(7926);let na=e=>{let{uniqueTournamentId:t}=e,{data:n}=(0,eb.Ay)(i.V3t.featuredEvents(t));return n?(0,s.jsx)(ni.w,{event:n.featuredEvents[0]}):null};var nr=n(4866),nl=n(14419),no=n(34884),nd=n(86454),nu=n(70679);function nc(e){let{isOpen:t,setIsOpen:n,editorData:i}=e;return(0,s.jsx)(ey.A,{isOpen:t,setIsOpen:n,header:"competition_editors_list_title",children:null==i?void 0:i.editors.map(e=>(0,s.jsx)(j.N_,{routeKey:"user",params:{userId:e.id},onClick:()=>(0,F.Zs)("editor_league_modal"),children:(0,s.jsxs)(_.so,{align:"center",justify:"space-between",h:"5xl",px:"lg",py:"md",_hover:{bg:"surface.s2"},children:[(0,s.jsxs)(_.so,{align:"center",gap:"lg",children:[(0,s.jsx)(nu.A,{src:e.imageURL,size:32}),(0,s.jsx)(ed.EY,{textStyle:"table.medium",truncate:!0,children:e.nickname})]}),(0,s.jsx)(eL.CCT,{fill:"primary.default"})]})},e.id))})}var nm=n(3167),np=n(48127),nx=n(6244),ng=n(45546);let nh=[8,17,23,34,35],nj=e=>{let{uniqueTournamentId:t,seasonYear:n}=e;return n&&nh.includes(t)?(0,s.jsxs)(s.Fragment,{children:[" ",(0,ng.b0)(n).join("/")]}):null};function nv(e){var t;let{uniqueTournament:n,seasons:a,seasonId:r,onSeasonChange:l}=e,o=(0,c.A)(),d=(0,W.N)(n),u=!!(a.length&&r&&r===a[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),{data:m}=(0,eb.Ay)(i.V3t.seasonEditors(n.id,r)),[p,x]=(0,k.useState)(!1),g=(0,k.useMemo)(()=>a.find(e=>e.id===r),[r,a]),h=null==m?void 0:m.editors,j={nickname:(null==m?void 0:m.organizations.length)?null==m?void 0:m.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==m?void 0:m.organizations.length),userId:h&&h.length>1||null==h||null==(t=h[0])?void 0:t.id,onClick:h&&h.length>1&&!(null==m?void 0:m.organizations.length)?()=>x(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nl.Fs,{image:(0,s.jsx)(nr.e,{id:n.id,name:n.name,w:"100%",h:"100%"}),name:(0,s.jsxs)(s.Fragment,{children:[d," ",(0,s.jsx)(nj,{uniqueTournamentId:n.id,seasonYear:null==g?void 0:g.year})]}),titleLabel:(0,s.jsx)(nx.W,{groundType:n.groundType}),subtitleItems:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(_.so,{align:"center",gap:"sm",children:[(0,s.jsx)(nr.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:32,h:32}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",children:(0,s.jsx)(P.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})})]}),r&&(0,s.jsx)(_.az,{position:"relative",zIndex:"fixed",children:(0,s.jsx)(np.s,{seasonId:r,seasons:a,onSeasonChange:l},n.id)})]}),actions:[!!(null==m?void 0:m.editors.length)&&(0,s.jsx)(no.i,{...j}),(0,s.jsx)(ed.m_,{label:o.formatMessage({id:"button_favourite"}),placement:"bottom",strategy:"hover",children:(0,s.jsx)(eK.e,{id:n.id,entity:i.bq7.Tournaments,location:E.y.Header,type:E.b.UniqueTournament,isNewButton:!0})},"follow-button-".concat(n.id))],footer:u&&(0,s.jsx)(nm.G,{start:n.startDateTimestamp,end:n.endDateTimestamp,c:"onSurface.nLv1",flex:"1"})}),(0,s.jsxs)(nd.K,{id:n.id,name:d,entity:i.bq7.Tournaments,type:E.b.UniqueTournament,children:[(0,s.jsx)(nr.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(ed.EY,{textStyle:"display.medium",color:"primary.default",mr:"lg",children:d})]}),(0,s.jsx)(nc,{isOpen:p,setIsOpen:x,editorData:m})]})}var ny=n(82554),nf=n(35399);let nb=es()(()=>Promise.all([n.e(56591),n.e(14632),n.e(26618),n.e(1949),n.e(73231),n.e(70986),n.e(98016)]).then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]},ssr:!1,loading:()=>(0,s.jsx)(_.az,{h:"[500px]"})});function nT(e){let{uniqueTournament:t,seasonId:n,seasons:i}=e,a=i.find(e=>e.id===n);return n?(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Standings,children:(0,s.jsx)(X.WC,{variant:"square",children:(0,s.jsx)(nb,{uniqueTournament:t,seasonId:n,selectedSeason:a})})}):(0,s.jsx)(_.az,{h:"[500px]"})}let nw=es()(()=>Promise.all([n.e(54366),n.e(22088),n.e(23879),n.e(90850),n.e(42282)]).then(n.bind(n,44560)),{loadableGenerated:{webpack:()=>[44560]},ssr:!1,loading:()=>(0,s.jsx)(_.az,{h:"[500px]"})});function n_(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Statistics,children:(0,s.jsx)(nw,{uniqueTournament:t,seasonId:n})})}function nk(e){var t;let{uniqueTournament:n,seasons:a,info:r,seo:l,activeSeasonId:o,setActiveSeasonId:d=J(),hasEvents:u,activeTab:c,setActiveTab:m,hasInitialStandings:p}=e,x=a[0],g=a[1]?a[1].name:"",h=(null==x?void 0:x.id)===o,{hasStandingsTab:j,hasKnockoutTab:v,hasStatisticsTab:y,hasPlayerOfTheSeason:f,hasMedia:b,hasDetailsTab:T}=function(e,t,n){var s;let{initialStandings:a}=(0,k.useContext)(V.O),r=e.category.sport.slug,l=r===i.QCR.Tennis,o=l||!t||!nf.f.includes(r),{data:d}=(0,eb.Ay)(t&&nf.s.includes(r)?i.V3t.seasonTypes(e.id,t,"player"):null),{hasStandingsData:u,hasKnockoutTab:c,hasTopPlayersTab:m,hasTennisTopPlayers:p,hasTeamSeasonTypes:x,hasMedia:g,hasPlayerOfTheSeason:h}=(0,O.A)({hasKnockoutTab:{route:i.V3t.cupTrees(e.id,t),skipCheck:!t},hasTopPlayersTab:{route:i.V3t.seasonTypes(e.id,t,l?"team":"player"),skipCheck:!t||!(0,ny.w)(r)},hasTennisTopPlayers:{route:i.V3t.topTeams(e.id,t,"mainDraw"),skipCheck:!t||!(0,ny.w)(r)},hasTeamSeasonTypes:{route:i.V3t.seasonTypes(e.id,t,"team"),skipCheck:o},hasMediaTab:{route:i.V3t.media(e.id)},hasPowerRankings:{route:i.V3t.powerRankingRounds(e.id,t)},hasMedia:{route:i.V3t.media(e.id)},hasPlayerOfTheSeason:{route:i.V3t.playerOfTheSeason(e.id,t),skipCheck:!t},hasStandingsData:{route:i.V3t.standings(e.id,t),skipCheck:!t}},[t]),{hasTopStatsTab:j}=(0,O.A)({hasTopStatsTab:{route:i.V3t.topPlayersPerGame(e.id,t,"all",(null==d?void 0:d.types[0])||i.Vw_.overall),skipCheck:!t||!nf.s.includes(r)||!(null==d||null==(s=d.types)?void 0:s[0])}},[t,d]),{data:v}=(0,eb.Ay)(o||!x?null:i.V3t.seasonTypes(e.id,t,"team")),{hasTopTeamsTab:y}=(0,O.A)({hasTopTeamsTab:{route:i.V3t.topTeams(e.id,t,(null==v?void 0:v.types[0])||i.Vw_.overall),skipCheck:o||!(null==v?void 0:v.types.length)}},[v,t]),{data:f}=(0,eb.Ay)(i.V3t.info(e.id,t)),b=null==f?void 0:f.info,T=t2(b,e),w=n&&K(e)||G(b,e)||r===i.QCR.Football&&!!T;return{hasKnockoutTab:!!c,hasStatisticsTab:!!(j||y||m||p),hasStandingsTab:!!((null==a?void 0:a.length)||u),hasMedia:!!g,hasPlayerOfTheSeason:!!h,hasDetailsTab:!!w,hasTennisTopPlayers:!!p}}(n,o,h),w=[{tabKey:q.x.Standings,item:"app.standings",isHidden:!j},{tabKey:q.x.Knockout,item:"knockout",isHidden:!v},{tabKey:q.x.Statistics,item:"statistics",isHidden:!y},{tabKey:q.x.Details,item:"details",isHidden:!T}],_=w.some(e=>!e.isHidden&&e.tabKey===c)?c:null==(t=w.find(e=>!e.isHidden))?void 0:t.tabKey;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nv,{uniqueTournament:n,seasons:a,seasonId:o,onSeasonChange:d}),(0,s.jsxs)($.xA,{py:"md",gap:"md",children:[(0,s.jsxs)($.fv,{flexGrow:1,children:[(0,s.jsx)(tf,{hasEvents:u,hasMedia:b,hasPlayerOfTheSeason:f,activeSeasonId:o,uniqueTournament:n,seasons:a}),(0,s.jsx)(na,{uniqueTournamentId:n.id}),(0,s.jsx)(A.Aq,{route:I.xW.UniqueTournament})]}),(0,s.jsxs)($.fv,{flexGrow:2,children:[(0,s.jsx)(X.Zp,{children:(0,s.jsxs)(ee.A,{id:n.id,location:q.C.UniqueTournamentPage,initialTabKey:_,tabs:w,customControls:[_,m],children:[v&&(0,s.jsx)(ns,{uniqueTournament:n,seasonId:o}),(p||j)&&(0,s.jsx)(nT,{uniqueTournament:n,seasonId:o,seasons:a}),y&&(0,s.jsx)(n_,{seasonId:o,uniqueTournament:n}),T&&(0,s.jsx)(nt,{info:r,isCurrentSeason:h,uniqueTournament:n,seasonId:o})]})}),(0,s.jsx)(tN,{info:r,seo:l,details:n,season:x,lastSeason:g})]})]})]})}var nS=n(62827),nC=n(51372),nI=n(43783),nA=n(49679),nz=n(42021),nM=n(32312);function nP(e){let{rankings:t,rounds:n}=(0,nI.Q)(e.uniqueTournamentId,e.seasonId);return(null==n?void 0:n.length)?(0,s.jsx)(ei.t,{tag:"PowerRankingsCTA",children:(0,s.jsxs)(X.Zp,{children:[(0,s.jsx)(X.Zp.Header,{title:(0,s.jsx)(D.A,{id:"sofascore_power_rankings"}),actionComponent:(0,s.jsx)(nz.h,{})}),(0,s.jsx)(nM.i,{}),(0,s.jsx)(nA.a,{rankings:null==t?void 0:t.slice(0,4)}),(0,s.jsx)(X.Zp.Footer,{ctaParams:{messageId:"power_rankings_cta",onClick:e.onClick,icon:eu.X.Right}})]})}):null}function nR(e){let{uniqueTournament:t,seasonId:n,info:a,seo:r,currentSeason:l,lastSeasonName:o,showAbout:d,onPowerRankingsClick:u}=e,c=(null==l?void 0:l.id)===n,m=t.category.sport.slug===i.QCR.Football,p=(0,eP.b)(t.id,"header"),x=(0,eP.b)(t.id,"banner");return(0,s.jsxs)(e2.tU.Panel,{tabKey:q.x.Details,children:[p&&(0,s.jsx)(nC.O,{entityId:t.id,branding:p,location:"league_details"}),(0,s.jsxs)(X.BU,{children:[(0,s.jsx)(tj.Br,{uniqueTournamentId:t.id}),(0,s.jsx)(A.iN,{id:A.Rj.MOBILE_ENTITY_TOP}),m&&(0,s.jsx)(eU,{uniqueTournamentId:t.id,seasonId:n,showLoader:!!(!c||t.endDateTimestamp&&(null==t?void 0:t.endDateTimestamp)n.e(45151).then(n.bind(n,45151)),{loadableGenerated:{webpack:()=>[45151]}}),nq=es()(()=>n.e(97565).then(n.bind(n,97565)),{loadableGenerated:{webpack:()=>[97565]},ssr:!1});function nH(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Matches,children:(0,s.jsx)(ei.t,{tag:"UniqueTournamentEventList",children:n?(0,s.jsx)(nq,{uniqueTournamentId:t.id,seasonId:n},"UniqueTournamentEventList"):(0,s.jsx)(nY,{entity:i.wNW.UniqueTournament,id:t.id})})})}let nF=es()(()=>n.e(8056).then(n.bind(n,8056)),{loadableGenerated:{webpack:()=>[8056]}});function nL(e){let{id:t}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.Media,children:(0,s.jsx)(X.BU,{children:(0,s.jsx)(nF,{uniqueTournamentId:t,hideTitle:!0})})})}let nO=es()(()=>Promise.resolve().then(n.bind(n,78144)),{loadableGenerated:{webpack:()=>[78144]}});function nN(e){let{id:t,seasonId:n}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.PowerRankings,children:(0,s.jsx)(X.BU,{children:(0,s.jsx)(nO,{uniqueTournamentId:t,seasonId:n})})})}let nD=es()(()=>Promise.all([n.e(56591),n.e(14632),n.e(26618),n.e(1949),n.e(73231),n.e(70986),n.e(98016)]).then(n.bind(n,11506)),{loadableGenerated:{webpack:()=>[11506]}});function nW(e){let{uniqueTournament:t,seasonId:n,seo:i,lastSeasonName:a,info:r,currentSeason:l,selectedSeason:o}=e,d=(0,eP.b)(t.id,"standings");return(0,s.jsxs)(e2.tU.Panel,{tabKey:q.x.Standings,children:[d&&(0,s.jsx)(nC.O,{entityId:t.id,branding:d,bannerText:d.standingsText,location:"league_standings"}),(0,s.jsxs)(X.BU,{children:[(0,s.jsx)(nD,{uniqueTournament:t,seasonId:n,selectedSeason:o,isNarrowLayout:!0}),(0,s.jsx)(eS.pk,{utIds:[t.id]}),(0,s.jsx)(tN,{info:r,seo:i,details:t,season:l,lastSeason:a})]})]})}var nB=n(46664);let nQ=es()(()=>Promise.all([n.e(23879),n.e(79369)]).then(n.bind(n,86344)),{loadableGenerated:{webpack:()=>[86344]}});function nU(e){let{uniqueTournament:t,seasonId:n}=e,a=(0,k.useContext)(C.Ws)===i.QCR.Tennis;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.TopPlayers,children:a?(0,s.jsx)(nB.default,{uniqueTournamentId:t.id,seasonId:n}):(0,s.jsx)(nQ,{uTournamentId:t.id,seasonId:n,gender:t.gender})})}let nV=es()(()=>n.e(25470).then(n.bind(n,25470)),{loadableGenerated:{webpack:()=>[25470]}});function nG(e){let{uniqueTournament:t,seasonId:n,gender:a=i.YT8.Male}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.TopStats,children:(0,s.jsx)(nV,{uniqueTournamentId:t.id,seasonId:n,gender:a})})}let nK=es()(()=>Promise.resolve().then(n.bind(n,46664)),{loadableGenerated:{webpack:()=>[46664]}});function nZ(e){let{uniqueTournament:t,seasonId:n}=e;return(0,s.jsx)(e2.tU.Panel,{tabKey:q.x.TopTeams,children:(0,s.jsx)(nK,{uniqueTournamentId:t.id,seasonId:n})})}var nJ=n(21501);function nX(e){var t;let{uniqueTournament:n,seasons:a,seasonId:r,onSeasonChange:l}=e,{isMobile:o}=(0,ed.$c)(),d=(0,nJ.hX)(),u=(0,W.N)(n),c=!!(a.length&&r&&r===a[0].id)&&!!(n.startDateTimestamp&&n.startDateTimestamp!==n.endDateTimestamp),m=!o&&!d,p=n.id===i.G6l.WorldCup,{data:x}=(0,eb.Ay)(i.V3t.seasonEditors(n.id,r)),[g,h]=(0,k.useState)(!1),j=(0,k.useMemo)(()=>a.find(e=>e.id===r),[r,a]),v=null==x?void 0:x.editors,y={nickname:(null==x?void 0:x.organizations.length)?null==x?void 0:x.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==x?void 0:x.organizations.length),userId:v&&v.length>1||null==v||null==(t=v[0])?void 0:t.id,onClick:v&&v.length>1&&!(null==x?void 0:x.organizations.length)?()=>h(!0):void 0};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e2.az,{bg:"surface.s1",px:["lg",0],br:[void 0,"xl"],elevation:[void 0,3],position:"relative",children:[(0,s.jsxs)(nl.z4,{bgImageSrc:i.V3t.image(n.id),minH:[80,void 0],children:[(0,s.jsx)(e2.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)(nr.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)(e2.az,{flex:"1 1 auto",mr:[0,"lg"],children:[(0,s.jsxs)(e2.so,{align:"center",mt:["xs","sm"],wrap:"wrap",minH:"36",w:"100%",justify:"space-between",children:[(0,s.jsxs)(e2.az,{children:[(0,s.jsxs)(e2.so,{align:"center",children:[(0,s.jsxs)(e2.EY,{as:"h2",m:"0",font:["display.large","display.extraLarge"],c:["onSurface.nLv1","onColor.primary"],children:[u,(0,s.jsx)(nj,{uniqueTournamentId:n.id,seasonYear:null==j?void 0:j.year})]}),(0,s.jsx)(e2.az,{d:["none","inline-block"],mx:"sm",style:{verticalAlign:"middle"},children:(0,s.jsx)(nx.W,{groundType:n.groundType})}),m&&(0,s.jsx)(eK.e,{id:n.id,entity:i.bq7.Tournaments,location:E.y.Header,type:E.b.UniqueTournament,isOnOverlay:!0})]}),(0,s.jsx)(e2.so,{w:"100%",align:"center",justify:"space-between",children:(0,s.jsxs)(e2.so,{align:"center",children:[(0,s.jsx)(nr.w,{alpha2:n.category.alpha2,name:n.category.name,categoryId:n.category.id,w:[16,32],h:[16,32],mr:"sm"}),(0,s.jsxs)(e2.EY,{font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],mr:"sm",children:[" ",p?(0,s.jsx)(e2.EY,{as:"h3",font:["body.medium","display.medium"],c:["onSurface.nLv1","onColor.primary"],my:["sm",0],children:(0,s.jsx)(D.A,{id:"wc.history.title"})}):(0,s.jsx)(P.m,{slug:n.category.slug,name:n.category.name,uniqueTournament:n})]}),r&&(0,s.jsx)(e2.az,{position:"relative",zIndex:e2.Py.Fixed,children:(0,s.jsx)(np.s,{seasonId:r,seasons:a,onSeasonChange:l},n.id)})]})})]}),!m&&(0,s.jsx)(eK.e,{id:n.id,entity:i.bq7.Tournaments,location:E.y.Header,type:E.b.UniqueTournament})]}),!m&&(0,s.jsx)(e2.az,{d:["block","none"],mt:"sm",children:(0,s.jsx)(nx.W,{groundType:n.groundType})}),c?(0,s.jsx)(e2.az,{d:["none","block"],children:(0,s.jsx)(nm.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})}):null]}),m&&(0,s.jsxs)(nd.K,{id:n.id,name:u,entity:i.bq7.Tournaments,type:E.b.UniqueTournament,children:[(0,s.jsx)(nr.e,{size:32,mr:"lg",style:{verticalAlign:"top"},id:n.id,name:n.slug}),(0,s.jsx)(e2.EY,{font:"display.medium",color:"primary.default",mr:"lg",children:u})]}),m&&!!(null==x?void 0:x.editors.length)&&(0,s.jsx)(e2.az,{mt:"xs",children:(0,s.jsx)(no.i,{...y})})]}),c&&(0,s.jsx)(e2.az,{d:["block","none"],px:"sm",pb:"xs",children:(0,s.jsx)(nm.G,{start:n.startDateTimestamp,end:n.endDateTimestamp})})]}),!m&&!!(null==x?void 0:x.editors.length)&&(0,s.jsx)(e2.az,{bg:"surface.s1",borderTop:"onSurface.nLv4",px:"sm",pt:"sm",children:(0,s.jsx)(no.i,{...y})}),(0,s.jsx)(nc,{isOpen:g,setIsOpen:h,editorData:x})]})}function n$(e){var t,n,a;let{uniqueTournament:r,seasons:l,activeSeasonId:o,setActiveSeasonId:d=J(),info:u,seo:c,activeTab:m,setActiveTab:p,hasStandingsData:x,hasEvents:g}=e,h=r.category.sport.slug,j=h===i.QCR.Tennis,v=l[0],y=l.find(e=>e.id===o),f=l[1]?l[1].name:"",{initialStandings:b}=(0,k.useContext)(V.O),T=j||!o||!nf.f.includes(h),{data:w}=(0,eb.Ay)(o&&nf.s.includes(h)?i.V3t.seasonTypes(r.id,o,"player"):null),{hasKnockoutTab:S,hasTopPlayersTab:C,hasTeamSeasonTypes:I,hasMediaTab:z,hasPowerRankings:M}=(0,O.A)({hasKnockoutTab:{route:i.V3t.cupTrees(r.id,o),skipCheck:!o},hasTopPlayersTab:{route:i.V3t.seasonTypes(r.id,o,j?"team":"player"),skipCheck:!o||!(0,ny.w)(h)},hasTeamSeasonTypes:{route:i.V3t.seasonTypes(r.id,o,"team"),skipCheck:T},hasMediaTab:{route:i.V3t.media(r.id)},hasPowerRankings:{route:i.V3t.powerRankingRounds(r.id,o)}},[o]),{data:P}=(0,eb.Ay)(T||!I?null:i.V3t.seasonTypes(r.id,o,"team")),{hasTopStatsTab:R}=(0,O.A)({hasTopStatsTab:{route:i.V3t.topPlayersPerGame(r.id,o,"all",(null==w?void 0:w.types[0])||i.Vw_.overall),skipCheck:!o||!nf.s.includes(h)||!(null==w||null==(t=w.types)?void 0:t[0])}},[w,o]),{hasTopTeamsTab:E}=(0,O.A)({hasTopTeamsTab:{route:i.V3t.topTeams(r.id,o,(null==P?void 0:P.types[0])||i.Vw_.overall),skipCheck:T||!(null==P?void 0:P.types.length)}},[P,o]),Y=!!(null==b?void 0:b.length)||x,H=(null==(n=l[0])?void 0:n.id)!==o||g||!o,F=[{tabKey:q.x.Standings,item:"app.standings",isHidden:!Y},{tabKey:q.x.Details,item:"details"},{tabKey:q.x.Matches,item:"matches",values:{sport:(0,nS.ap)(h)},isHidden:!H},{tabKey:q.x.Knockout,item:"knockout",isHidden:!S},{tabKey:q.x.TopPlayers,item:"top_players",values:{gender:null!=(a=r.gender)?a:"M"},isHidden:!C},{tabKey:q.x.TopStats,item:"top_stats",isHidden:!R},{tabKey:q.x.TopTeams,item:"top_teams",isHidden:!E},{tabKey:q.x.Media,item:"media",isHidden:!z},{tabKey:q.x.PowerRankings,item:"Power Rankings",isHidden:!M}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nX,{uniqueTournament:r,seasons:l,seasonId:o,onSeasonChange:d}),(0,s.jsxs)(ee.A,{id:r.id,location:ee.C.UniqueTournamentPage,seasonId:o,initialTabKey:m,customControls:[m,p],tabs:F,children:[Y&&(0,s.jsx)(nW,{uniqueTournament:r,seasonId:o,seo:c,lastSeasonName:f,currentSeason:v,selectedSeason:y,info:u}),(0,s.jsx)(nR,{uniqueTournament:r,seasonId:o,currentSeason:v,lastSeasonName:f,info:u,seo:c,onPowerRankingsClick:()=>p(q.x.PowerRankings),showAbout:!Y}),H&&(0,s.jsx)(nH,{uniqueTournament:r,seasonId:o}),S&&(0,s.jsx)(nE.A,{uniqueTournament:r,seasonId:o,sport:h}),C&&(0,s.jsx)(nU,{uniqueTournament:r,seasonId:o}),R&&(0,s.jsx)(nG,{uniqueTournament:r,seasonId:o,gender:r.gender}),E&&(0,s.jsx)(nZ,{uniqueTournament:r,seasonId:o}),z&&(0,s.jsx)(nL,{id:r.id}),M&&(0,s.jsx)(nN,{id:r.id,seasonId:o})]}),(0,s.jsx)(tj.hz,{uniqueTournamentId:r.id}),(0,s.jsx)(_.az,{mb:"sm",children:(0,s.jsx)(A.iN,{id:A.Rj.MOBILE_ENTITY_BOTTOM})})]})}function n0(e){var t,n,a,r;let{uniqueTournament:l,seasons:o,initialStandings:d,initialHasHomeAway:u,hasEvents:c,hasCupTree:m,info:p}=e,x=!!(null==d?void 0:d.length),g=l.category.sport.slug,h=()=>G(p,l)?q.x.Details:x?q.x.Standings:m?q.x.Knockout:q.x.Details,[v,y]=(0,k.useState)(h()),f=(0,k.useMemo)(()=>{var e;return{id:null==(e=o[0])?void 0:e.id,tab:v}},[null==(t=o[0])?void 0:t.id]),[b,T]=(0,N.Ay)({routeKey:"uniqueTournament",params:{sport:g,category:l.category.slug,tournament:l.slug,id:l.id}},f),w=null==b?void 0:b.id,D=o.find(e=>e.id===w),W=e=>T("id",null==e?void 0:e.toString()),{hasStandingsData:B}=(0,O.A)({hasStandingsData:{route:i.V3t.standings(l.id,w),skipCheck:!w}},[w]);(0,k.useEffect)(()=>{void 0!==B&&y(B?q.x.Standings:h())},[B]),(0,k.useEffect)(()=>{if(!o.find(e=>e.id===Number(w))){var e;W(null==(e=o[0])?void 0:e.id)}},[l.id]),(0,k.useEffect)(()=>{o.length>0&&""===window.location.hash&&W(o[0].id)},[]);let Q=(0,s.jsx)(_.az,{bg:{mdDown:"surface.s1"},children:(0,s.jsxs)(S.B,{children:[(0,s.jsx)(S.B.Item,{children:(0,s.jsx)(j.di,{translatedParams:{sport:g},children:(0,s.jsx)(L.o,{sportSlug:g})})}),(0,s.jsx)(S.B.Item,{children:(0,s.jsx)(j.Z6,{category:l.category,children:(0,s.jsx)(P.m,{...l.category,uniqueTournament:l})})}),(0,s.jsx)(S.B.Title,{children:(0,s.jsx)(U,{uniqueTournament:l,year:null==(n=o[0])?void 0:n.year})})]})});return(0,s.jsx)(V.O.Provider,{value:{uniqueTournamentId:l.id,uniqueTournamentName:l.name,seasonId:null==D?void 0:D.id,editor:null==D?void 0:D.editor,initialStandings:w===(null==(a=o[0])?void 0:a.id)?d:void 0,initialHasHomeAway:w===(null==(r=o[0])?void 0:r.id)?u:void 0},children:(0,s.jsx)(R.MC.Provider,{value:{isShort:i.HwS.includes(g),location:E.y.MatchesSection},children:(0,s.jsxs)(C.Ws.Provider,{value:g,children:[(0,s.jsx)(M.$B,{children:(0,s.jsxs)(z.YW,{children:[Q,(0,s.jsx)(n$,{...e,activeSeasonId:w?Number(w):void 0,setActiveSeasonId:W,activeTab:(null==b?void 0:b.tab)||v,setActiveTab:e=>T("tab",e),hasStandingsData:B,hasEvents:c})]})}),(0,s.jsx)(M.h6,{children:(0,s.jsxs)(A.JR,{route:I.xW.UniqueTournament,children:[Q,(0,s.jsx)(nk,{...e,activeSeasonId:w?Number(w):void 0,setActiveSeasonId:W,hasEvents:c,hasInitialStandings:x,activeTab:(null==b?void 0:b.tab)||v,setActiveTab:e=>T("tab",e)})]})}),(0,s.jsx)(Y.A,{entity:i.bq7.MutedTournaments,entityGroup:"tournament",id:l.id,entityTournamentId:l.id}),(0,s.jsx)(H.N,{page:{location:F.XN.LeagueScreen,entity:l}})]})})})}var n1=n(71937),n9=n(25862),n4=n(65097);let n3=[i.QCR.Football,i.QCR.Tennis],n6={2122:{competitionName:"Champions League",gender:i.YT8.Male,type:"none"},9500:{competitionName:"Champions League",gender:i.YT8.Female,type:"none"},11457:{competitionName:"European Championship",gender:i.YT8.Male,type:"D"},11458:{competitionName:"European Championship",gender:i.YT8.Female,type:"D"},11459:{competitionName:"European Championship",gender:i.YT8.Mixed,type:"D"},11455:{competitionName:"European Championship",gender:i.YT8.Male,type:"S"},11456:{competitionName:"European Championship",gender:i.YT8.Female,type:"S"},9550:{competitionName:"ETTU Cup",gender:i.YT8.Male,type:"none"},9534:{competitionName:"ETTU Cup",gender:i.YT8.Female,type:"none"},564:{competitionName:"Olympic games",gender:i.YT8.Male,type:"S"},565:{competitionName:"Olympic games",gender:i.YT8.Female,type:"S"},1121:{competitionName:"Olympic games",gender:i.YT8.Male,type:"T"},1123:{competitionName:"Olympic games",gender:i.YT8.Female,type:"T"},11579:{competitionName:"World Championships",gender:i.YT8.Male,type:"S"},11586:{competitionName:"World Championships",gender:i.YT8.Female,type:"S"},11587:{competitionName:"World Championships",gender:i.YT8.Mixed,type:"D"},11580:{competitionName:"World Championships",gender:i.YT8.Male,type:"D"},11585:{competitionName:"World Championships",gender:i.YT8.Female,type:"D"},1966:{competitionName:"World Cup",gender:i.YT8.Male,type:"none"},1964:{competitionName:"World Cup",gender:i.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:i.YT8.Male,type:"none"},15007:{competitionName:"Setka Cup",gender:i.YT8.Female,type:"none"},15005:{competitionName:"TT Cup",gender:i.YT8.Male,type:"none"},15009:{competitionName:"TT Cup",gender:i.YT8.Female,type:"none"},15001:{competitionName:"Ukraine Win Cup",gender:i.YT8.Male,type:"none"},15068:{competitionName:"Ukraine Win Cup",gender:i.YT8.Female,type:"none"}},n5=[i.QCR.Football,i.QCR.Basketball,i.QCR.Cricket,i.QCR.Darts,i.QCR.IceHockey,i.QCR.Handball,i.QCR.Volleyball,i.QCR.Rugby,i.QCR.AmericanFootball,i.QCR.Baseball];function n8(e){var t;if("error"in e)return(0,s.jsx)(n4.default,{statusCode:404});let{uniqueTournament:n,seasons:a,seo:c,info:m,params:p,meta:x,seoContent:h,locale:j,standings:v,hasHomeAwayStandings:y,hasEvents:b,hasCupTree:T}=e;if(!n)return null;let w=n.category.sport.slug,_=n.id===i.G6l.Euro,k=n.id===i.G6l.WorldCup,S=_&&a.length?"Euro ".concat(a[0].year):n.name,C=_&&a.length?"European Championship ".concat(a[0].year):n.name,I=n6[n.id]||void 0,A=n3.includes(w)||!!h||I||f(n.id),z=(null==(t=n.category.alpha2)?void 0:t.toLowerCase())||"",M=!x&&(a.every(e=>e.editor)?!(0,l.N)(z,j):!A||(0,o.v)(w,j));return(0,s.jsxs)(u.an,{value:{meta:x,seoContent:h},children:[(0,s.jsxs)(r(),{children:[M&&(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",p).route)}),(0,s.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/league/".concat(p.id)})]}),(0,s.jsx)(g,{uniqueTournament:n}),(0,s.jsx)(u.Ay,{metaKey:I?"standings.tabletennis":"standings",titleKey:k?"ut.worldCup":_?"ut.euro":void 0,descriptionKey:k?"ut.worldCup":_?"ut.euro":void 0,values:{item:S,fullItem:C,...I||{}}}),(0,s.jsx)(n0,{uniqueTournament:n,seasons:a,seo:c,info:m,initialStandings:v,initialHasHomeAway:y,hasEvents:b,hasCupTree:T})]})}n8.getInitialProps=n1.A.getInitialPageProps(e=>async t=>{let{query:n,req:s,res:a,...r}=t,l=s?s._originalUrl:r.asPath,o=d.z.getCurrentLocale(l),u=s&&s.params?s.params:n,c=Number(u.id),m=d.z.getSportKey(u.sport,o);try{let t,n,s,r,l,[p,x,g,h,j]=await Promise.allSettled([i.jFR.fetchUniqueTournamentDetails(c),i.jFR.fetchUniqueTournamentSeasons(c),i.jFR.fetchUniqueTournamentSeo(c),i.sdF.getEntityMeta("uniquetournament",c,o),n5.includes(m)?i.sdF.getSeoContent(i.wNW.UniqueTournament,c,o):Promise.reject()]);if("rejected"===p.status)throw Error("Unique tournament does not exist");let v=p.value.uniqueTournament,y="fulfilled"===x.status?x.value.seasons:[];a&&v.category.sport.slug===i.QCR.MMA&&(a.writeHead(301,{Location:d.z.getTranslatedRoute(o,"mma.organisation",{organisationId:v.id,slug:v.slug,sport:v.category.sport.slug}).route}),a.end()),a&&(v.slug!==u.tournament||v.category.slug!==u.category)&&(a.writeHead(301,{Location:d.z.getTranslatedRoute(o,"uniqueTournament",{...u,category:v.category.slug,tournament:v.slug}).route}),a.end());let f=y.length?y[0].id:void 0;if(f){let[e,a,o,d,u,m]=await Promise.allSettled([i.jFR.fetchUniqueTournamentInfo(c,f),i.jFR.fetchStandings(c,f),(0,i.m_X)(i.V3t.standings(c,f,i.lpv.Home)),(0,i.m_X)(i.V3t.events(c,f,!0)),(0,i.m_X)(i.V3t.events(c,f)),(0,i.m_X)(i.V3t.cupTrees(c,f))]);t="fulfilled"===e.status?e.value.info:void 0,n="fulfilled"===a.status?a.value.standings:void 0,s="fulfilled"===o.status&&o.value,r="fulfilled"===d.status&&"fulfilled"===u.status?d.value||u.value:void 0,l="fulfilled"===m.status}let b="fulfilled"===g.status?g.value.meta:void 0,T="fulfilled"===h.status?h.value.entityMeta:void 0,w="fulfilled"===j.status?j.value.content:void 0;return e.dispatch((0,n9.Vy)(v.category.sport.slug)),{uniqueTournament:v,seasons:y,seo:b,info:t,params:u,meta:T,seoContent:w,locale:o,standings:n,hasHomeAwayStandings:s,hasEvents:r,hasCupTree:l}}catch(e){return a&&(a.statusCode=404),{error:e}}})},97918:(e,t,n)=>{"use strict";n.d(t,{F:()=>s.A});var s=n(73404)},98095:(e,t,n)=>{"use strict";n.d(t,{j:()=>l});var s=n(4967),i=n(45860),a=n(86056);let r=e=>fetch(e,{method:"HEAD",cache:"no-store"});function l(){let{data:e,error:t,isLoading:n}=(0,i.Ay)(a.sp,{fetcher:r,dedupingInterval:s.d_});return{isLoading:n,hasAdBlock:!!(null==e?void 0:e.redirected)||void 0!==t}}},98423:(e,t,n)=>{"use strict";n.d(t,{e:()=>i.e,p:()=>s.p});var s=n(91603),i=n(33480)},98888:(e,t,n)=>{var s=n(11061);e.exports=function(e){var t=s(e),n=t%1;return t==t?n?t-n:t:0}}},e=>{var t=t=>e(e.s=t);e.O(0,[14092,19888,10395,83170,58621,84977,50346,60988,4283,31844,90431,1140,51386,39462,18017,23822,31254,31218,9536,61876,57632,88744,5563,19622,34633,90636,46593,38792],()=>t(28167)),_N_E=e.O()}]);