!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]="7eb08681-737a-4948-b277-4402a05b3b8f",e._sentryDebugIdIdentifier="sentry-dbid-7eb08681-737a-4948-b277-4402a05b3b8f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[323],{151:(e,t,n)=>{n.d(t,{g:()=>s});let s=e=>e.branding.config},4696:(e,t,n)=>{n.d(t,{M:()=>s});var s=function(e){return e.All="all",e.Total="total",e.PerGame="perGame",e}({})},10292:(e,t,n)=>{n.d(t,{t:()=>s.t});var s=n(91407)},14004:(e,t,n)=>{n.d(t,{B:()=>u});var s=n(6029),l=n(41249),a=n(78383),r=n.n(a),i=n(90248),o=n(41735),d=n(54917);let c=(0,o.default)(l.so).withConfig({componentId:"NoScrollbarFlex"}).withConfig({componentId:"sc-1ca057e1-0"})(["&::-webkit-scrollbar{display:none;}&{-ms-overflow-style:none;scrollbar-width:none;}"]);function u(e){let{activePosition:t,setActivePosition:n=r(),positions:a}=e;return(0,s.jsxs)(c,{gap:"sm",style:{overflowX:"scroll"},children:[(0,s.jsx)(l.vu,{isActive:!t,onClick:()=>n(void 0),children:(0,s.jsx)(i.A,{id:"allPositions"})}),a.map(e=>(0,s.jsx)(l.vu,{isActive:t===e,onClick:()=>n(e),children:(0,s.jsx)(d.F,{id:e})},e))]})}},18645:(e,t,n)=>{n.d(t,{eD:()=>a.e,pY:()=>l.p,tg:()=>s.t});var s=n(91407),l=n(91603),a=n(33480)},19673:(e,t,n)=>{n.d(t,{y:()=>s});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")}},22037:(e,t,n)=>{n.d(t,{A:()=>j,T:()=>g});var s=n(6029),l=n(21377),a=n(95083),r=n(76356),i=n(41249),o=n(55729),d=n(90248),c=n(65789),u=n(62859),m=n(14004),x=n(7322),p=n(40745),h=n(43750);let g=[l.QCR.Cricket];function j(e){let{seasons:t,tournaments:n,selectedTournamentId:j,onTournamentSelect:f,selectedSeasonId:y,onSeasonSelect:b,showStatSwitcher:v,statItems:w,selectedStat:S,onSelectedStat:_,activePosition:C,setActivePosition:k,positions:A,types:T,activeType:I,setActiveType:z,showListHeader:E,selectedPlayerFilter:P,setSelectedPlayerFilter:R,playerFilterOptions:L,showPlayerFilter:F,forceSeasonPickerMenusBelow:M}=e,H=(0,o.useContext)(u.Ws),N=-1!==g.indexOf(H),D=!!(null==A?void 0:A.length)&&H===l.QCR.Football;return(0,s.jsxs)(c.BU,{children:[(0,s.jsxs)(r.so,{gap:"xs",children:[t&&n&&j&&y&&f&&b&&(0,s.jsx)(p.A,{seasons:t,tournaments:n,selectedTournamentId:j,onTournamentSelect:f,selectedSeasonId:y,onSeasonSelect:b,forceMenusBelow:M}),F&&void 0!==P&&L&&R&&(0,s.jsx)(i.ms,{items:L,renderItem:e=>e?(0,s.jsx)(d.A,{id:e.description}):"",initialSelectedItem:L[P],selectedItem:L.find(e=>e.id===P),onSelectedItemChange:e=>{let{selectedItem:t}=e;return t&&R(t.id)},selectedElement:L[P].name})]}),!!((null==T?void 0:T.length)&&I)&&(0,s.jsx)(i.tU,{variant:"secondary",value:I,onChange:e=>z?z(e):void 0,children:(0,s.jsx)(r.so,{align:"center",children:T.map(e=>(0,s.jsx)(i.tU.Tab,{tabKey:e,children:(0,s.jsx)(d.A,{id:e})},e))})}),v&&!!w.length&&(0,s.jsxs)(r.so,{align:"center",children:[(0,s.jsx)(i.ms,{items:w,renderItem:e=>(null==e?void 0:e.label)||"",initialSelectedItem:w[0],selectedItem:S,onSelectedItemChange:e=>{e.selectedItem&&(null==_||_(e.selectedItem))},"data-testid":"top_stat_selector"}),(null==S?void 0:S.value)===l.iLq.Rating&&(0,s.jsx)(r.az,{ml:"sm",children:(0,s.jsx)(x.D,{type:x.D.type.AverageRatingPlayer,rating:10})})]}),D&&(0,s.jsx)(r.az,{hideFrom:"md",children:(0,s.jsx)(m.B,{activePosition:C,setActivePosition:k,positions:A})}),E&&N&&(0,s.jsxs)(r.so,{align:"center",justify:"space-between",pt:"sm",pl:"xs",pr:"sm",children:[(0,s.jsx)(a.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",mr:"lg",children:"#"}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(null==S?void 0:S.value)?(0,s.jsx)(h.Z,{sport:H,selectedStat:S.value}):null==S?void 0:S.label})]})]})}},23685:(e,t,n)=>{n.d(t,{Y:()=>f});var s=n(6029),l=n(21377),a=n(95083),r=n(76356),i=n(71024),o=n.n(i),d=n(90248),c=n(494),u=n(54409),m=n(1815),x=n(49254),p=n(76410),h=n(10794),g=n(94842);let j=o()(()=>n.e(1489).then(n.bind(n,31489)),{loadableGenerated:{webpack:()=>[31489]},ssr:!1}),f=e=>{let{utId:t,location:n}=e,i=(0,c.d4)(h.LQ),o=(0,m.e)(()=>(0,p.Z1)({type:"banner",name:"nba_league_pass",location:n}),{delay:500,sendInterval:3e4});return i&&x.p.includes(i)&&t===l.G6l.NBA&&(0,x.O)(new Date().getTime())?(0,s.jsx)(r.az,{w:"100%",minH:"11xl",children:(0,s.jsx)(g.N,{onClick:()=>(0,p.AW)({type:"banner",name:"nba_league_pass",location:n}),children:(0,s.jsxs)(r.so,{ref:o,w:"100%",minH:"11xl",p:"lg",br:"lg",gap:"xs",elevation:"2",justify:"space-between",align:"center",style:{background:"url(/static/images/nba-league-pass/banner.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},children:[(0,s.jsxs)(r.az,{children:[(0,s.jsxs)(r.so,{direction:"column",gap:"xs",children:[(0,s.jsx)(a.EY,{textStyle:"display.small",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_title"})}),(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_body_long"})})]}),(0,s.jsxs)(a.$n,{variant:"filled",size:"tertiary",bg:"surface.s1",color:"primary.default",mt:"md",children:[(0,s.jsx)("span",{children:(0,s.jsx)(d.A,{id:"claim_offer"})}),(0,s.jsx)(u.HW5,{h:16,w:16,fill:"primary.default"})]})]}),(0,s.jsx)(r.az,{w:"5xl",h:"5xl",children:(0,s.jsx)(j,{size:56})})]})})}):null}},23879:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(6029),l=n(94446),a=n(95083),r=n(76356),i=n(70591),o=n(43750),d=n(24159),c=n(54917),u=n(94604),m=n(30971),x=n(22037);function p(e){let{player:t,index:n,selectedStat:p,forceTeamName:h,sport:g}=e,{position:j}=t.player,f=-1!==x.T.indexOf(g);return(0,s.jsx)(i.uc,{player:t.player,sportSlug:g,children:(0,s.jsxs)(r.so,{h:"5xl",p:"lg",pl:n?"sm":"lg",align:"center",_hover:{bg:"surface.s2"},children:[n&&(0,s.jsx)(a.EY,{mr:"sm",textStyle:"body.small",color:"neutrals.nLv1",textAlign:"center",w:"lg",children:n}),(0,s.jsx)(l.t,{id:t.player.id,name:t.player.name,size:40,mr:"lg"}),(0,s.jsxs)(r.az,{flexGrow:1,children:[(0,s.jsx)(a.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,s.jsx)(d.c,{entity:t.player,short:f})}),(0,s.jsxs)(r.so,{align:"center",children:[t.team&&(0,s.jsx)(l.p,{size:16,id:t.team.id,name:t.team.name}),(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:"16px",ml:t.team?"xs":void 0,children:h&&t.team?(0,s.jsx)(u.Rm,{team:t.team}):j?(0,s.jsx)(c.F,{id:j}):""})]})]}),(0,s.jsx)(a.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:f?(0,s.jsx)(o.O,{sport:g,selectedStat:p,stat:t.statistics}):(0,s.jsx)(m.A,{sport:g,selectedStat:p,stat:t.statistics})})]})})}},31112:(e,t,n)=>{n.d(t,{w:()=>a});var s=n(6029),l=n(76410);let a=e=>{let{children:t,branding:n,noLink:a,entityId:r,location:i,type:o}=e;return n.url&&!a?(0,s.jsx)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{i&&r&&(0,l.md)({id:r,location:i,provider:n.brand.slug,type:o})},children:t}):(0,s.jsx)(s.Fragment,{children:t})}},31653:(e,t,n)=>{n.d(t,{K:()=>a});var s=n(21377),l=n(19168);let a=e=>{let t=e[e.length-1],n=e.find(e=>e.status.type===s.XUj.InProgress);if(n)return n.id;let a=Date.now()/1e3,r=[...e].sort((e,t)=>Math.abs(e.startTimestamp-a)-Math.abs(t.startTimestamp-a)),i=r.find(e=>e.status.type!==s.XUj.Finished&&!(0,l.sw)(e));return i?t=i:r.length&&(t=r[0]),t.id}},32427:(e,t,n)=>{n.d(t,{H:()=>r});var s=n(6029),l=n(76356),a=n(65834);let r=e=>{let{rows:t=a.z}=e;return(0,s.jsxs)(l.az,{children:[[...Array(t)].map((e,t)=>(0,s.jsx)(l.az,{h:"5xl"},"player-list-cl-".concat(t))),(0,s.jsx)(l.az,{h:"3xl"})," "]})}},34209:(e,t,n)=>{n.d(t,{A:()=>i});var s=n(21377),l=n(55729),a=n(45860),r=n(38709);let i=function(e,t,n,i){let o=e&&t&&i?s.V3t.seasonTypes(e,t,i):null,{data:d,error:c}=(0,a.Ay)(o),u=(0,r.o)(null==d?void 0:d.types),[m,x]=(0,l.useState)();return(0,l.useEffect)(()=>{!m&&u.length&&x(u[0])},[null==u?void 0:u.length,n]),{types:u,currentType:u.length?m:void 0,setCurrentType:x,isError:!!c||!o,isLoading:!!o&&!d&&!c}}},36326:(e,t,n)=>{n.d(t,{FV:()=>l,L3:()=>s,R3:()=>d,TH:()=>a,b6:()=>i,ie:()=>r,pu:()=>o});let s=void 0,l=-1,a="all";var r=function(e){return e[e.AllClubCompetitions=0]="AllClubCompetitions",e[e.DomesticLeagues=1]="DomesticLeagues",e[e.DomesticCups=2]="DomesticCups",e[e.InternationalCompetitions=3]="InternationalCompetitions",e[e.NationalTeamCompetitions=4]="NationalTeamCompetitions",e}({});let i=[{id:0,name:"football_all_club_competitions"},{id:1,name:"football_domestic_leagues"},{id:2,name:"football_domestic_cups"},{id:3,name:"football_international_competitions"},{id:4,name:"football_national_competitions"}],o=[{id:"overall",name:"total"},{id:"home",name:"standings.home"},{id:"away",name:"away"}],d={id:-1,name:"all_teams"}},38709:(e,t,n)=>{n.d(t,{o:()=>a});var s=n(21377);let l=[s.Vw_.overall,s.Vw_.regularSeason,s.Vw_.playoffs];function a(e){if(!e)return[];let t=e.filter(e=>l.includes(e));return t.length>1||1===t.length&&t[0]!==s.Vw_.overall?t:[]}},40745:(e,t,n)=>{n.d(t,{A:()=>C});var s=n(6029),l=n(59721),a=n(21377),r=n(95083),i=n(76356),o=n(41249),d=n(12364),c=n.n(d),u=n(55729),m=n(90248),x=n(947),p=n(36326),h=n(76410),g=n(52695),j=n(62859),f=n(4696);let y=[f.M.PerGame,f.M.Total],b=e=>{let{maxW:t,children:n}=e;return(0,s.jsx)(r.Ym,{textStyle:"body.medium",color:"neutrals.nLv1",lineHeight:1,truncate:!!t,style:{maxWidth:t},children:n})},v=e=>{switch(e){case 2e3:return"tennisTournaments.p2000";case 1e3:return"tennisTournaments.p1000";case 500:return"tennisTournaments.p500";case 250:return"tennisTournaments.p250";default:return}},w=(e,t,n,a)=>{if(!e)return null;let o=n>=40||!t,d=o&&t?n:void 0;return(0,s.jsxs)(i.so,{justify:"space-between",align:"center",w:"100%",gap:"lg",children:[(0,s.jsxs)(i.so,{align:"center",gap:"lg",children:[(0,s.jsx)(l.e,{id:e.id,size:24},e.id),o&&(0,s.jsx)(b,{maxW:d,children:(0,s.jsx)(g.O,{uniqueTournament:e})})]}),a&&e.ranking&&!t&&(0,s.jsx)(i.az,{w:"4xl",br:"md",style:{backgroundColor:v(e.ranking)},children:(0,s.jsx)(r.EY,{textStyle:"assistive.default",color:"onColor.primary",lineHeight:1,textAlign:"center",display:"block",truncate:!0,children:e.ranking})})]})},S=e=>(0,s.jsx)(b,{children:null==e?void 0:e.year}),_=(e,t)=>{let n={[f.M.PerGame]:t?"per_game_stats_short":"stats.perGame",[f.M.Total]:t?"total_stats_short":"total",[f.M.All]:"basic.all"};return(0,s.jsx)(b,{children:(0,s.jsx)(m.A,{id:e?n[e]:" "})})};function C(e){let t=(0,u.useRef)(null),[n,l]=(0,u.useState)(0),{mediaBreakpoint:d}=(0,r.$c)(),m=(0,u.useContext)(j.Ws)===a.QCR.Tennis,g=(0,x.A)(),b=[...new Set(e.tournaments.map(e=>e.year))].map(e=>({id:Number(e),year:e})),v=e.hasSeasonalStats&&m?[{id:p.FV,name:g.formatMessage({id:"tennis_all_tournaments"})},...e.tournaments]:e.tournaments,C=v[0],k=e.selectedTournamentId==p.FV,A=k?b:e.seasons,T=k?b[0]:e.seasons[0],I=A.find(t=>t.id==e.selectedSeasonId),z=n-4-140-88-118*!!e.showSeasonDisplay,E=e.hasDefaultDisplay?f.M.All:f.M.PerGame,P=e.hasDefaultDisplay?[f.M.All,...y]:y,R=c()(()=>{var e,s;let a=null==t||null==(s=t.current)||null==(e=s.getBoundingClientRect())?void 0:e.width;a&&a!==n&&l(a)},100);(0,u.useEffect)(()=>(addEventListener("resize",R),()=>{removeEventListener("resize",R)}),[]),(0,u.useEffect)(()=>{R()},[!!(null==t?void 0:t.current)]);let L=t=>{if(!(t===f.M.All?"all":t===f.M.Total?"total":t===f.M.PerGame?"per_game":void 0)||!e.displayEventParam)return};return(0,s.jsxs)(i.so,{ref:t,gap:"xs","data-testid":"tournament_season_selector",children:[(0,s.jsx)(o.ms,{items:v,renderItem:(t,n)=>w(t,!!n,z,e.showTournamentRanking),initialSelectedItem:C,selectedItem:v.find(t=>t.id===e.selectedTournamentId),onSelectedItemChange:t=>{var n;e.onTournamentSelect(Number(null==(n=t.selectedItem)?void 0:n.id)),m&&(0,h.ke)({action:"click",location:"team_statistics",type:"tournament_filter"})},forceMenuBelow:e.forceMenusBelow}),(0,s.jsx)(o.ms,{items:A,renderItem:S,initialSelectedItem:T,selectedItem:I,onSelectedItemChange:t=>{var n;e.onSeasonSelect(Number(null==(n=t.selectedItem)?void 0:n.id)),m&&(0,h.ke)({action:"click",location:"team_statistics",type:"year_filter"})},forceMenuBelow:e.forceMenusBelow,alignRight:"xxs"===d&&z>=40}),e.showSeasonDisplay&&(0,s.jsx)(o.ms,{items:P,renderItem:(e,t)=>_(e,t),initialSelectedItem:E,selectedItem:e.selectedDisplay,onSelectedItemChange:t=>{var n;L(t.selectedItem),null==(n=e.onDisplaySelect)||n.call(e,t.selectedItem||E)},forceMenuBelow:e.forceMenusBelow,alignRight:!0})]})}},42078:(e,t,n)=>{n.d(t,{d:()=>m});var s=n(6029),l=n(76356),a=n(41249),r=n(55729),i=n(90248),o=n(65789),d=n(62859),c=n(85568),u=n(66757);let m=e=>{var t;let{noSeasonPicker:n,isNarrowLayout:m,branding:x,numberOfRows:p=20}=e,{event:h}=(0,r.useContext)(d.y$),g=null==h||null==(t=h.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,s.jsxs)(l.so,{direction:"column",gap:["sm","md"],children:[(0,s.jsxs)(o.Zp,{isInverseDesktop:m,children:[!m&&(0,s.jsx)(c.U,{titleId:"app.standings",branding:x}),(0,s.jsxs)(l.az,{children:[!n&&(0,s.jsx)(l.az,{h:"4xl"}),(0,s.jsx)(a.tU,{variant:"secondary",children:(0,s.jsx)(l.so,{h:"[53px]",p:"sm",justify:"space-between",children:(0,s.jsxs)(l.az,{children:[(0,s.jsx)(a.tU.Tab,{tabKey:1,children:(0,s.jsx)(i.A,{id:"basic.all"})}),(0,s.jsx)(a.tU.Tab,{tabKey:2,children:(0,s.jsx)(i.A,{id:"standings.home"})}),(0,s.jsx)(a.tU.Tab,{tabKey:3,children:(0,s.jsx)(i.A,{id:"away"})})]})})}),(0,s.jsx)(l.az,{h:"2xl"}),(0,s.jsx)(u.e,{rows:p}),(0,s.jsx)(l.az,{h:"[92px]"}),(0,s.jsx)(l.az,{p:"sm",children:(0,s.jsx)(l.az,{h:"4xl",bg:"surface.s2",br:"lg"})})]})]}),g&&(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(o.Zp.Header,{titleId:"standings_tracker_title"}),(0,s.jsx)(l.az,{h:"[542px]"})]})]})}},42621:(e,t,n)=>{n.d(t,{q:()=>s.q});var s=n(1440)},43750:(e,t,n)=>{n.d(t,{O:()=>y,Z:()=>f});var s=n(6029),l=n(21377),a=n(76356),r=n(98516);let i=(0,a.I4)(a.so,{base:{"& > .item + .item":{marginLeft:"xs"},"& > .item":{minWidth:"[28px]",textAlign:"center"},"& > .item.long":{minWidth:"[36px]"},"& > .item.extra-long":{minWidth:"3xl"}}}),o={stat:"matches",label:"M"},d={stat:"battingInnings",label:"I"},c={stat:"runsScored",label:"R"},u={stat:"battingAverage",label:"AVG",class:"item extra-long",decimals:2},m={stat:"bowlingMatches",label:"M"},x={stat:"overs",label:"O",decimals:1,class:"item long"},p={stat:"wickets",label:"W"},h={stat:"bowlingAverage",label:"AVG",class:"item extra-long",decimals:2},g={[l.QCR.Cricket]:{runsScored:[{stat:"battingMatches",label:"M"},d,u,c],highestScore:[{stat:"highestScoreBattingBalls",label:"Balls",class:"item long"},{stat:"highestScoreBattingStrikeRate",label:"SR",class:"item extra-long",decimals:2},{stat:"highestScoreVsTeamName",label:"Vs",class:"item extra-long"},{stat:"highestScore",label:"HS",class:"item extra-long"}],battingAverage:[o,d,c,u],battingStrikeRate:[o,d,c,{stat:"battingStrikeRate",label:"SR",class:"item extra-long",decimals:2}],hundreds:[o,d,c,{stat:"hundreds",label:"100s",class:"item long"}],nineties:[o,d,c,{stat:"nineties",label:"90s"}],fifties:[o,d,c,{stat:"fifties",label:"50s"}],fours:[o,d,c,{stat:"fours",label:"4s"}],sixes:[o,d,c,{stat:"sixes",label:"6s"}],wickets:[m,x,p,h],bowlingAverage:[o,x,p,h],bowling:[{stat:"bowlingBestVsTeamName",label:"Vs",class:"item extra-long"},{stat:"bowling",label:"BBI",class:"item long"}],fiveWicketsHaul:[m,x,p,{stat:"fiveWicketsHaul",label:"5Wkts",class:"item extra-long"}],economy:[o,x,p,{stat:"economy",label:"ER",class:"item long"}],bowlingStrikeRate:[o,x,p,{stat:"bowlingStrikeRate",label:"SR",class:"item long",decimals:2}]}};function j(e){let{config:t,stats:n}=e,l=n[t.stat]||0;return void 0!==t.decimals?(0,s.jsx)(s.Fragment,{children:(0,r.M)(l,t.decimals)}):(0,s.jsx)(s.Fragment,{children:l})}function f(e){let t=g[e.sport][e.selectedStat];return t?(0,s.jsx)(i,{justify:"flex-end",align:"center",children:t.map(e=>(0,s.jsx)("div",{className:e.class||"item",children:e.label},e.stat))}):null}function y(e){let t=g[e.sport][e.selectedStat];return t?(0,s.jsx)(i,{children:t.map(t=>(0,s.jsx)("div",{className:t.class||"item",children:(0,s.jsx)(j,{stats:e.stat,config:t})},t.stat))}):null}},45152:(e,t,n)=>{n.d(t,{S:()=>b});var s=n(6029),l=n(65789),a=n(73045),r=n(41249),i=n(90248),o=n(62859),d=n(54409),c=n(98449),u=n(40364),m=n(65078),x=n(70591),p=n(47530),h=n(10234);let g=e=>{let{event:t,hideTitle:n,hasCta:l=!1,onClick:o}=e;return(0,s.jsxs)(x.tj,{event:t,onClick:o,children:[(0,s.jsxs)(r.az,{br:["sm","lg"],bg:"surface.s2",hoverBg:"onSurface.nLv4",minH:102+32*!n,children:[!n&&(0,s.jsxs)(r.so,{pt:"sm",align:"center",px:"lg",children:[t.tournament.uniqueTournament?(0,s.jsx)(a.e,{id:t.tournament.uniqueTournament.id,size:24}):(0,s.jsx)(a.l,{id:t.tournament.id,size:24}),(0,s.jsxs)(r.EY,{as:"bdi",ml:"sm",block:!0,font:"assistive.default",color:"onSurface.nLv3",children:[(0,s.jsx)(c.m,{slug:t.tournament.category.slug,name:t.tournament.category.name,uniqueTournament:t.tournament.uniqueTournament}),", ",(0,s.jsx)(h.J,{tournament:t.tournament}),t.roundInfo&&(0,s.jsxs)(s.Fragment,{children:[", ",(0,s.jsx)(p.DT,{round:t.roundInfo})]})]})]}),(0,s.jsx)(u.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})]}),l&&(0,s.jsxs)(r.so,{px:"lg",py:"lg",justify:"center",cursor:"pointer",children:[(0,s.jsx)(r.EY,{color:"primary.default",font:"display.small",children:(0,s.jsx)(i.A,{id:"see_all"})}),(0,s.jsx)(d.CCT,{fill:"primary.default",ml:"xs"})]})]})};function j(e){let{event:t,...n}=e,{event:l,leftTeam:a,rightTeam:r,leftScore:i,rightScore:d}=(0,m.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,s.jsx)(o.y$.Provider,{value:{event:t,leftTeam:a,rightTeam:r,leftScore:i,rightScore:d},children:(0,s.jsx)(g,{event:{...t,...l},...n})}):null}var f=n(76356);let y=e=>(0,s.jsxs)(f.az,{br:"lg",bg:"surface.s2",minH:e.hideTitle?"[134px]":"11xl",children:[(0,s.jsx)(f.az,{h:"[134px]"}),e.showCta&&(0,s.jsx)(f.az,{h:"2xl"})]});function b(e){let{titleId:t="featured",titleValues:n,hideEventTitle:a,showCta:r,ignoreCardLayout:i,isLoading:o,events:d,onEventClick:c,children:u}=e,m=d.filter(e=>!!e);if(!m.length&&!o)return null;let x=(0,s.jsx)(s.Fragment,{children:m.length?m.map(e=>(0,s.jsx)(j,{hideTitle:a,hasCta:r,event:e,onClick:()=>null==c?void 0:c(e)},e.id)):(0,s.jsx)(y,{hideTitle:a,showCta:r})});return i?(0,s.jsxs)(s.Fragment,{children:[x,u]}):(0,s.jsxs)(l.Zp,{children:[(0,s.jsx)(l.Zp.Header,{titleId:t,values:n,as:"h3"}),(0,s.jsxs)(l.BU,{children:[x,u]})]})}},45546:(e,t,n)=>{n.d(t,{UW:()=>a,b0:()=>s,jt:()=>l});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]},l=(e,t)=>s(t.year)[0]-s(e.year)[0],a=e=>{let t=[];for(let n=0,s=e.tournamentSeasons.length;ne.id===l.id);if(!a){let e=t.push(l);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}},46171:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(21377),l=n(45860);let a=function(e){let{seasonId:t,teamId:n,uTournamentId:a,type:r=s.Vw_.overall,position:i}=e,o=n?s.cWY.topPlayers.bind(null,n,a,t):i?s.V3t.topPlayers.bind(null,a,t,r,i):s.V3t.topPlayers.bind(null,a,t),{data:d,error:c,isLoading:u}=(0,l.Ay)(a&&t?o(r):null);return{topPlayers:(null==d?void 0:d.topPlayers)||{},isLoading:u,isError:c}}},51372:(e,t,n)=>{n.d(t,{O:()=>x});var s=n(6029),l=n(21377),a=n(76356),r=n(41249),i=n(90248),o=n(41735),d=n(26471),c=n(31112),u=n(26331),m=n(76410);let x=e=>{let{entityId:t,branding:n,children:x,bannerText:p,noLink:h,location:g,...j}=e,f=(0,u.A)(),y=(0,o.useTheme)(),b=(null==p?void 0:p[f.slice(0,2)])||(null==p?void 0:p.en),v=(0,d.A)(()=>{t&&g&&!h&&(0,m.N9)({id:t,location:g,provider:n.brand.slug,type:"stripe"})},{deps:[t,n.brand.slug,g]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.w,{branding:n,noLink:h,type:"stripe",entityId:t,location:g,children:(0,s.jsxs)(a.so,{ref:v,h:"xl",justify:"center",align:"center",gap:"xs",style:{backgroundColor:n.brand.color[y.name]},...j,children:[(0,s.jsx)(a.so,{justify:"flex-end",flexGrow:1,flexShrink:1,flexBasis:"xl",children:(0,s.jsx)(a.az,{textStyle:"assistive.micro",whiteSpace:"nowrap",style:{color:n.brand.textColor[y.name]},children:(0,s.jsx)(i.A,{id:"powered_by"})})}),(0,s.jsx)(a.so,{justify:"flex-start",flexGrow:1,flexShrink:1,flexBasis:"xl",children:(0,s.jsx)(r._V,{h:16,alt:n.brand.name,src:l.UpI.brandLogo(n.brand.id)})})]})}),b&&(0,s.jsx)(a.az,{pt:"sm",textStyle:"assistive.default",textAlign:"center",color:"neutrals.nLv3",children:b})]})}},59542:(e,t,n)=>{n.d(t,{S:()=>g,T:()=>h});var s=n(6029),l=n(95083),a=n(76356),r=n(71024),i=n.n(r),o=n(55729),d=n(90248),c=n(54053),u=n(1300),m=n(76410),x=n(94842);let p=i()(()=>n.e(1489).then(n.bind(n,31489)),{loadableGenerated:{webpack:()=>[31489]},ssr:!1}),h=e=>{let{isOpen:t,setIsOpen:n,location:r}=e,{isDesktop:i}=(0,l.$c)(),u={backgroundImage:"url(/static/images/nba-league-pass/modal.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,o.useEffect)(()=>{t&&(0,m.Z1)({type:"bottom_sheet",name:"nba_league_pass",location:r})},[t]),!t)return null;let h=()=>n(!1);return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(c.A,{isOpen:t,setIsOpen:n,sheetBgImage:"/static/images/nba-league-pass/modal.png",footer:null,renderAdPlaceholder:!1,sheetStyles:u,width:360,children:(0,s.jsxs)(a.az,{style:i?u:void 0,br:"lg",children:[(0,s.jsx)(a.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,s.jsx)(a.az,{w:"4xl",h:"4xl",children:(0,s.jsx)(p,{size:48})})}),(0,s.jsxs)(a.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,s.jsxs)(a.so,{direction:"column",gap:"lg",children:[(0,s.jsx)(a.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_title"})}),(0,s.jsx)(a.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"league_pass_promo_body_long"})})]}),(0,s.jsxs)(a.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,s.jsx)(l.$n,{children:(0,s.jsx)(x.N,{onClick:()=>{(0,m.AW)({type:"bottom_sheet",name:"nba_league_pass",location:r}),h()},children:(0,s.jsx)(a.az,{color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"claim_offer"})})})}),(0,s.jsx)(l.$n,{variant:"clear",color:"onColor.primary",onClick:h,children:(0,s.jsx)(d.A,{id:"maybe_later"})})]})]})]})})})},g=e=>{let{utId:t,location:n}=e,{isNBAModalOpen:l,setIsNBAModalOpen:a}=(0,u.z)(t);return l?(0,s.jsx)(h,{isOpen:l,setIsOpen:a,location:n}):null}},59684:(e,t,n)=>{n.d(t,{A:()=>z});var s=n(6029),l=n(21377),a=n(70116),r=n(59542),i=n(1300),o=n(41249),d=n(90248),c=n(18645);let u=e=>{let{entityId:t,entity:n}=e;switch(n){case l.bq7.MutedPlayers:return(0,s.jsx)(c.tg,{id:t,size:40});case l.bq7.MutedTeams:return(0,s.jsx)(c.pY,{id:t,size:40});case l.bq7.MutedTournaments:return(0,s.jsx)(c.eD,{id:t,size:40});default:return null}};var m=n(494),x=n(54409),p=n(70757),h=n(76410),g=n(8973);let j=e=>{switch(e){case"player":return g.b.Player;case"team":return g.b.Team;case"tournament":return g.b.UniqueTournament;default:return}},f=e=>{let{id:t,entity:n,entityGroup:l,onClick:a}=e,r=(0,m.wA)(),i=j(l);return(0,s.jsx)(o.$n,{onClick:()=>{i&&(0,h.g2)({id:t,type:i,location:g.y.Popup,isFollowed:!0}),r((0,p.UQ)(n,t)),a()},size:"md",py:"sm",pr:"md",children:(0,s.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,s.jsx)(o.EY,{block:!0,c:"onColor.primary",font:"button.primary",children:(0,s.jsx)(d.A,{id:"button_favourite"})}),(0,s.jsx)(x.zQC,{icon:"follow-default",className:"follow-indicator-icon",width:"24",height:"24",fill:"onColor.primary"})]})})};var y=n(4967),b=n(55729),v=n(19168);let w="follow.entity.popup.",S="".concat(w,"dontShowAgain");if(!(0,l.S$s)())try{let e=(0,v.yN)("".concat(w,"organization"));null!=e&&Object.values(e).some(e=>"number"==typeof e)&&(0,v.UI)("".concat(w,"organization"))}catch(e){console.error("Error reading from localStorage:",e)}let _=e=>{try{let t="".concat(w).concat(e);for(let e=0;e{switch(e){case"player":return"add_favorite_player";case"team":return"add_favorite_team";case"tournament":return"add_favorite_league";default:return""}},k=(e,t,n)=>{let s="".concat(w).concat(t),[l,a]=(0,v.yR)(s,{}),[r,i]=(0,v.yR)("".concat(s,"_queue"),[]),[o,d]=(0,b.useState)(!1),[c,u]=(0,b.useState)(!1),[x,p]=(0,v.yR)("".concat(S,".").concat(t),!1),[g,j]=(0,v.yR)("".concat(s,"_pausedUntil"),void 0),f=(0,m.d4)(t=>t.favorites.lists[e].includes(n)||t.favorites.lists.favoriteLeagues.includes(n));(0,b.useEffect)(()=>{o&&(0,h.Ex)({id:n,source:"other",type:C(t)})},[o]),(0,b.useEffect)(()=>{if(x||g&&Date.now()e!==n):[...r];e.push(n);let t=l[n]?{count:l[n].count+1,timestamp:Date.now()}:{count:1,timestamp:Date.now()};if(4===t.count){let{[n]:t,...s}=l;a(s),i(e.filter(e=>e!==n)),d(!0);return}if(e.length>20){let s=e.shift(),{[s]:r,...i}=l;a({...i,[n]:t})}else a({...l,[n]:t});i(e)},[n]);let k=()=>{d(!1);let{[n]:e,...s}=l;a(s),c||j(Date.now()+y.d_),_(t)},A=()=>{c&&p(!0),_(t)};return{isOpen:o,handleNoThanksClose:()=>{c&&A(),k(),(0,h.t9)({action:"close",choice:c?"no_show_again":"show_again",id:n,source:"other",type:C(t)})},handleClose:()=>{d(!1)},isDontShowAgainSelected:c,toggleIsDontShowAgainSelected:()=>{u(!c)}}},A=e=>{let{entityId:t,entityGroup:n,entity:l}=e,{isOpen:a,handleNoThanksClose:r,handleClose:i,isDontShowAgainSelected:c,toggleIsDontShowAgainSelected:m}=k(l,n,t);return(0,s.jsxs)(o.aF,{p:"lg",gap:"sm",maxW:380,isOpen:a,children:[(0,s.jsxs)(o.az,{children:[(0,s.jsxs)(o.so,{direction:"row",justify:"flex-start",align:"center",gap:12,children:[(0,s.jsx)(u,{entityId:t,entity:l}),(0,s.jsx)(o.EY,{font:"display.large",color:"onSurface.nLv1",lineHeight:"18px",children:(0,s.jsx)(d.A,{id:"popover_favourites_proposal"})})]}),(0,s.jsx)(o.EY,{mt:"lg",mb:"sm",block:!0,children:(0,s.jsx)(d.A,{id:"popover_favourites_proposal_description"})}),(0,s.jsx)(o.Sc,{checked:c,onChange:m,px:0,py:"md",children:(0,s.jsx)(o.EY,{children:(0,s.jsx)(d.A,{id:"exit_checkbox"})})})]}),(0,s.jsxs)(o.az,{alignSelf:"flex-end",pt:"lg",children:[(0,s.jsx)(o.$n,{variant:"unshielded",mr:"sm",onClick:r,children:(0,s.jsx)(d.A,{id:"button_not_now"})}),(0,s.jsx)(f,{id:t,entity:l,entityGroup:n,onClick:i})]})]})},T=e=>{let{children:t,entity:n,id:l}=e,a=(0,m.d4)(e=>e.favorites.lists[n].includes(l)||e.favorites.lists.favoriteLeagues.includes(l));return!(0,m.d4)(e=>{var t;return null==(t=e.favorites._persist)?void 0:t.rehydrated})||a?null:(0,s.jsx)(s.Fragment,{children:t})},I={[l.bq7.MutedTournaments]:"league_screen",[l.bq7.Tournaments]:"league_screen",[l.bq7.MutedTeams]:"team_screen",[l.bq7.Teams]:"team_screen",[l.bq7.MutedPlayers]:"player_screen",[l.bq7.Players]:"player_screen"},z=e=>{let{entityGroup:t,entity:n,id:l,entityTournamentId:o}=e,{priorityModal:d}=(0,a.Z)(),{isNBAModalOpen:c,setIsNBAModalOpen:u}=(0,i.z)(o);return c&&I[n]?(0,s.jsx)(r.T,{isOpen:c,setIsOpen:u,location:I[n]}):d?null:(0,s.jsx)(T,{entity:n,id:l,children:(0,s.jsx)(A,{entity:n,entityId:l,entityGroup:t})})}},59721:(e,t,n)=>{n.d(t,{e:()=>s.e});var s=n(33480)},61090:(e,t,n)=>{n.d(t,{m:()=>x});var s=n(6029),l=n(21377),a=n(76356),r=n(494),i=n(26471),o=n(51372),d=n(31112),c=n(77988),u=n(76410),m=n(10794);let x=e=>{let{entity:t,id:n,branding:x,location:p}=e,h=(0,r.d4)(m.LQ),g=(0,i.A)(()=>{p&&(0,u.N9)({id:n,location:p,provider:x.brand.slug,type:"banner"})},{deps:[n,x.brand.slug,p]});return(0,s.jsx)(d.w,{branding:x,type:"banner",entityId:n,location:p,children:(0,s.jsx)(a.so,{justify:"center",children:(0,s.jsxs)(a.az,{ref:g,position:"relative",maxW:"[700px]",flexGrow:1,br:{base:"lg",md:"xl"},overflow:"hidden",children:[(0,s.jsx)(o.O,{branding:x,noLink:!0}),(0,s.jsx)(a.az,{h:"9xl",style:{background:"url(".concat(l.UpI.brandingBanner(x.brand.id,t,n),")"),backgroundSize:"auto 100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),x.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,c.g)(h),"+"]})})]})})})}},64073:(e,t,n)=>{n.d(t,{K:()=>b});var s=n(6029),l=n(95083),a=n(76356),r=n(9127),i=n(90112),o=n(12364),d=n.n(o),c=n(55729),u=n(90248),m=n(494),x=n(91729),p=n(54409),h=n(8973),g=n(19168),j=n(12759),f=n(46009);let y=(0,r.m)(a.az);function b(e){let{id:t,name:n,entity:r,children:o,threshold:b=144,type:v}=e,[w,S]=(0,c.useState)(0),[_,C]=(0,g.yR)("sticky_follow_header_closed_".concat(r),!1),k=(0,j.Pz)(r),A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,s]=(0,c.useState)(e);return(0,c.useEffect)(()=>{let n=setTimeout(()=>{s(e)},t);return()=>clearTimeout(n)},[e]),n}((0,m.d4)(e=>e.favorites.lists[k[0]].includes(t)||2===k.length&&e.favorites.lists[k[1]].includes(t)));return(0,c.useEffect)(()=>{if(_)return;let e=d()(()=>{window.requestAnimationFrame(()=>{S(window.scrollY)})},300);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[w,_]),(0,s.jsx)(i.N,{children:w>b&&!A&&(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)(x.m,{h:"56",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)(f.e,{id:t,entity:r,type:v,location:h.y.FloatingHeader})]})}),(0,s.jsx)(a.so,{align:"center",flex:"[1 1 50%]",children:(0,s.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"lg",children:(0,s.jsx)(u.A,{id:"add_to_favorites_text",values:{name:n}})})}),(0,s.jsx)(a.so,{align:"center",children:(0,s.jsx)(l.$n,{variant:"clear",p:"0",onClick:()=>{C(!0),S(0)},children:(0,s.jsx)(p.zQC,{icon:"close"})})})]})})})})})}},65834:(e,t,n)=>{n.d(t,{A:()=>l,z:()=>s});let s=5,l=[{id:0,name:"50%",description:"at_least_50"},{id:1,name:"All",description:"stats.allPlayers"}]},66757:(e,t,n)=>{n.d(t,{e:()=>o});var s=n(6029),l=n(18612),a=n(76356),r=n(55729);function i(e){let{rows:t,rowHeight:n}=e;return(0,s.jsx)(l.D,{animate:!0,height:t*n,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let l=t*n;return(0,s.jsxs)(r.Fragment,{children:[(0,s.jsx)("circle",{cx:20,cy:l+n/2,r:12}),(0,s.jsx)("rect",{x:40,y:l+8,width:"calc(100% - 48px)",height:n-16})]},l)})})}function o(e){let{rows:t=12}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.az,{hideBelow:"md",children:(0,s.jsx)(i,{rowHeight:32,rows:t})}),(0,s.jsx)(a.az,{hideFrom:"md",children:(0,s.jsx)(i,{rowHeight:48,rows:t})})]})}},77988:(e,t,n)=>{n.d(t,{A:()=>h,g:()=>p});var s=n(6029),l=n(41249),a=n(90248),r=n(494),i=n(2294),o=n(10794);let d={AU:"www.gamblinghelponline.org.au",BG:"nss-bg.org/hi-kodeks",GB:"www.begambleaware.org",NL:"hands24x7.nl"},c={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 m(){let e=(0,r.d4)(i.a5);return(null==e?void 0:e.oddsMayDiffer)?(0,s.jsxs)("span",{children:[(0,s.jsx)("br",{}),(0,s.jsx)(a.A,{id:"disclaimer_odds_may_differ"})]}):null}function x(e){let{standalone:t}=e,n=(0,r.d4)(o.LQ),l=n&&d[n];return l?(0,s.jsxs)("span",{children:[t?"":", ",(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:l}})]}):null}let p=e=>e&&u[e.toUpperCase()]?u[e.toUpperCase()]:18;function h(e){let t,n=(0,r.d4)(o.LQ),i=(0,r.d4)(o.zj);return n&&i?t=c["".concat(n,"-").concat(i)]||c[n]:n&&(t=c[n]),(0,s.jsxs)(l.EY,{font:"assistive.micro",color:"onSurface.nLv3",pr:"sm","data-qa-id":"gamble-responsibly",...e,children:[t?(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:t}}):(0,s.jsx)(a.A,{id:"gamble_responsibly",values:{age:p(n)}}),(0,s.jsx)(x,{}),(0,s.jsx)(m,{})]})}},78177:(e,t,n)=>{n.d(t,{O:()=>_,s:()=>k});var s=n(6029),l=n(21377),a=n(55729),r=n(62859),i=n(75751),o=n(95816),d=n.n(o),c=n(65789),u=n(23727),m=n(22037),x=n(23879),p=n(32427),h=n(76356);let g=[l.QCR.Basketball,l.QCR.AmericanFootball,l.QCR.IceHockey];function j(e){let{sport:t}=e;return(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"top_players"}),(0,s.jsx)(h.az,{style:{height:g.includes(t)?84:72},bg:"surface.s2",br:"sm",m:"sm"}),(0,s.jsx)(p.H,{rows:5})]})}var f=n(65834),y=n(52854);function b(e){let{topPlayers:t,isTournament:n,types:i,activePosition:o,setActivePosition:h,activeType:g,setActiveType:b,seasons:v,selectedSeasonId:w,onSeasonSelect:S,tournaments:_,selectedTournamentId:C,onTournamentSelect:k,showPlayerFilter:A=!1}=e,T=(0,a.useContext)(r.Ws),[I,z]=(0,a.useState)(!1),[E,P]=(0,a.useState)(f.A[0].id),{statItems:R,selectedStat:L,setSelectedStat:F}=(0,y.k)(Object.keys(t),T),M=1,H=n&&T===l.QCR.Handball;(0,a.useEffect)(()=>{z(!1)},[null==L?void 0:L.value]);let N=Array.from(new Set((t[null==L?void 0:L.value]||[]).map(e=>e.player.position))).sort(()=>-1),D=(t&&t[null==L?void 0:L.value]||[]).filter(e=>o?e.player.position===o:!!E||e.playedEnough),W=d()(D)||!L,q=D.length>f.z;return W||!D.length?(0,s.jsx)(j,{sport:T}):(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"top_players"}),W?(0,s.jsx)(p.H,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.A,{showStatSwitcher:!0,statItems:R,selectedStat:L,onSelectedStat:F,positions:N,activePosition:o,setActivePosition:h,types:i,activeType:g,setActiveType:b,seasons:v,selectedSeasonId:w,onSeasonSelect:S,tournaments:_,selectedTournamentId:C,onTournamentSelect:k,selectedPlayerFilter:E,setSelectedPlayerFilter:P,playerFilterOptions:f.A,showPlayerFilter:A,showListHeader:!0}),D.slice(0,f.z).map(e=>(0,s.jsx)(x.A,{sport:T,player:e,index:M++,selectedStat:L.value,forceTeamName:H},"".concat(L.value,"-").concat(e.player.id))),(0,s.jsx)(s.Fragment,{children:I&&D.slice(f.z).map(e=>(0,s.jsx)(x.A,{player:e,index:M++,sport:T,selectedStat:L.value,forceTeamName:H},"".concat(L.value,"-").concat(e.player.id)))})]}),(0,s.jsx)(c.Zp.Footer,{ctaParams:q?{messageId:I?"show_less":"show_more",onClick:()=>z(e=>!e),icon:I?u.X.Up:u.X.Down}:void 0})]})}var v=n(80249),w=n(46171),S=n(38709);let _=function(e){let{teamId:t}=e,n=l.cWY.seasons(t),o=(0,a.useContext)(r.Ws),[d,c]=(0,a.useState)(),[u,m]=(0,a.useState)(),[x,p]=(0,a.useState)(),[h,g]=(0,a.useState)(),[f,y,{seasonsData:_,seasonsLoadError:C,isSeasonLoading:k}]=(0,v.D)({route:n,selectedTournamentId:d,selectedSeasonId:u,setSelectedTournament:c,setSelectedSeason:m}),{topPlayers:A,isError:T}=(0,w.A)({teamId:t,seasonId:u,uTournamentId:d,type:h}),I=Object.keys(A),z="".concat(t,"-").concat(I.toString());if((0,a.useEffect)(()=>{d&&u&&-1!==d&&g(null==_?void 0:_.typesMap[d][u][0])},[d,u,o]),C||T||-1===d)return null;if(!d||!u||k)return(0,s.jsx)(j,{sport:o});let E=(0,S.o)(null==_?void 0:_.typesMap[d][u]);return(0,s.jsx)(i.t,{tag:"TeamTopPlayers",children:(0,s.jsx)(b,{topPlayers:A,seasons:y,tournaments:f,selectedSeasonId:u,selectedTournamentId:d,onSeasonSelect:m,onTournamentSelect:c,activePosition:x,setActivePosition:p,types:E,activeType:h,setActiveType:g,showPlayerFilter:!0},z)})};var C=n(34209);let k=function(e){let{uTournamentId:t,seasonId:n}=e,o=(0,a.useContext)(r.Ws),[d,c]=(0,a.useState)(),{types:u,currentType:m,setCurrentType:x,isError:p,isLoading:h}=(0,C.A)(t,n,o,"player"),g=h?{}:{uTournamentId:t,seasonId:n,type:m,position:null==d?void 0:d.toLowerCase()},{topPlayers:j,isError:f}=(0,w.A)(g),y=Object.keys(j),v="".concat(t,"-").concat(y.toString()),S=(0,a.useCallback)(e=>{c(null!=e?e:l.ypd.All)},[]);return f||p?null:(0,s.jsx)(i.t,{tag:"TournamentTopPlayers",children:(0,s.jsx)(b,{topPlayers:j,types:u,activeType:m,setActiveType:x,activePosition:d,setActivePosition:S},v)})}},80249:(e,t,n)=>{n.d(t,{D:()=>i});var s=n(21377),l=n(55729),a=n(45860),r=n(62859);function i(e){let{route:t,selectedTournamentId:n,selectedSeasonId:i,setSelectedTournament:o,setSelectedSeason:d}=e,{data:c,error:u,isLoading:m}=(0,a.Ay)(t),x=(0,l.useContext)(r.Ws)===s.QCR.Tennis;return(0,l.useMemo)(()=>{if(!c)return[null,null,{seasonsData:c,seasonsLoadError:u}];let e=c.uniqueTournamentSeasons,t=e.map(e=>({id:e.uniqueTournament.id,name:e.uniqueTournament.name,ranking:e.uniqueTournament.tennisPoints,year:e.seasons[0].year})),s=t&&[...new Set(t.map(e=>e.year))].map(e=>({id:Number(e),year:e}));n||o(s&&x?-1:e[0].uniqueTournament.id),i||d(s&&x?s[0].id:e[0].seasons[0].id);let l=0;if(c){let t=e.find(e=>e.uniqueTournament.id===n);if(t){let n=e.indexOf(t);n>-1&&d(e[l=n].seasons[0].id)}}return[t,e[l].seasons,{seasonsData:c,seasonsLoadError:u,isSeasonLoading:m}]},[c,n,u])}},82554:(e,t,n)=>{n.d(t,{w:()=>a});var s=n(21377);let l=[s.QCR.AmericanFootball,s.QCR.Basketball,s.QCR.Cricket,s.QCR.Football,s.QCR.Handball,s.QCR.IceHockey,s.QCR.Minifootball];function a(e,t){return(!t||e!==s.QCR.AmericanFootball)&&l.includes(e)}n(73959)},85568:(e,t,n)=>{n.d(t,{U:()=>i});var s=n(6029),l=n(95083),a=n(13030),r=n(51372);let i=e=>{let{branding:t,location:n,entityId:i,...o}=e,{isDesktop:d}=(0,l.$c)();return d&&t?(0,s.jsx)(a.A.Header,{...o,variant:"left-aligned",actionComponent:(0,s.jsx)(r.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:n,entityId:i})}):(0,s.jsx)(a.A.Header,{...o})}},91407:(e,t,n)=>{n.d(t,{t:()=>i});var s=n(64082),l=n(6029),a=n(21377),r=n(41249);let i=e=>{var{id:t,name:n,size:i=56,style:o,className:d,grayscale:c,isFantasy:u,placeholder:m="/static/images/placeholders/player.svg"}=e,x=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let p=x.w||x.width||i,h=x.h||x.height||i;return(0,l.jsx)(r._V,Object.assign({fallback:(0,l.jsx)(r._V,{style:Object.assign({borderRadius:"50%"},o),w:p,h:h,src:m,alt:n}),src:t?a.qvj.image(t,u):"",alt:n,w:p,h:h,br:"50%",border:"onSurface.nLv4",style:o,className:d,isGrayscale:c},x))}},93471:(e,t,n)=>{n.d(t,{A:()=>A});var s=n(6029),l=n(21377),a=n(95083),r=n(41249),i=n(71024),o=n.n(i),d=n(55729),c=n(90248),u=n(65789),m=n(62859),x=n(54409),p=n(75751),h=n(42621),g=n(22648),j=n(53486),f=n(75508),y=n(26413),b=n(19168),v=n(31653),w=n(6354),S=n(99325);let _=o()(()=>Promise.all([n.e(8446),n.e(5938),n.e(3338),n.e(3752),n.e(364),n.e(2905),n.e(7256),n.e(574),n.e(7545),n.e(2753),n.e(9264),n.e(4985),n.e(1072),n.e(1682),n.e(7319),n.e(7229),n.e(2017),n.e(1584),n.e(3289)]).then(n.bind(n,77990)),{loadableGenerated:{webpack:()=>[77990]},loading:()=>(0,s.jsx)(r.so,{w:"100%",h:"50%",children:(0,s.jsx)(g.a,{})})}),C=e=>{let{listRef:t,hasPreviousPage:n,hasNextPage:l,onNavigatorClickHandler:i,toNextPage:o,toPreviousPage:u,events:m,eventCell:p,isPlayer:h,showWidget:g,lastClickedEventId:j,clicked:y,determineFirstEvent:b,onClick:v,updateWidgetHeight:S,transfers:_,children:C}=e,{isMobile:k}=(0,a.$c)(),A=(0,d.useContext)(w.O),T=A.editor&&A.seasonId&&A.uniqueTournamentId,I=h?m.filter(e=>!e.isAwarded):m;return(0,d.useEffect)(()=>{S()},[null==I?void 0:I.length,n,l,g]),(0,s.jsxs)("div",{ref:t,children:[(n||l)&&(0,s.jsxs)(r.so,{py:"sm",px:"lg",borderTop:[void 0,"onSurface.nLv4"],justify:"space-between",minH:"50",children:[(0,s.jsx)(r.az,{children:n&&(0,s.jsxs)(r.$n,{variant:"outline",h:"32",py:"xs",px:"sm",onClick:()=>i(u),children:[(0,s.jsx)(x.pa2,{fill:"primary.default",mr:"xs"}),(0,s.jsx)(r.EY,{font:"button.secondary",color:"primary.default",children:(0,s.jsx)(c.A,{id:"basic.previous"})})]})}),(0,s.jsx)(r.az,{children:l&&(0,s.jsxs)(r.$n,{variant:"outline",h:"32",py:"xs",px:"sm",onClick:()=>i(o),children:[(0,s.jsx)(r.EY,{font:"button.secondary",color:"primary.default",children:(0,s.jsx)(c.A,{id:"basic.next"})}),(0,s.jsx)(x.CCT,{fill:"primary.default",ml:"xs"})]})})]}),(0,s.jsxs)(r.az,{minH:["auto",600],pt:"xxs",pb:["sm",T?"sm":"40px"],br:["lg",void 0],borderTop:[void 0,"onSurface.nLv4"],children:[(0,s.jsx)(f.b,{events:I,isMobile:k,eventCell:p,onClick:v,isEventCellFactory:h,transfers:_,lastClickedEvent:k?void 0:g&&y?j:g?b(m):void 0}),C]})]})},k=e=>{let{widgetHeight:t,lastClickedEventId:n,showWidget:l,closeWidget:i}=e;return(0,s.jsx)(r.az,{display:["none","block"],borderTop:"onSurface.nLv4",borderLeft:"onSurface.nLv4",w:"50%",h:t,pb:"xl",children:n&&l&&(0,s.jsx)(a.Ee,{h:"100%",resetDeps:[n],children:(0,s.jsx)(h.q,{persist:!0,children:(0,s.jsx)(_,{eventId:n,onClose:i,noElevation:!0})})})})};function A(e){let{entity:t,id:n,seasonId:a,player:i,hideHeader:o,transfers:c}=e,[x,h]=(0,d.useState)(!0),[g,f]=(0,d.useState)(!1),[_,A]=(0,d.useState)(),[T,I]=(0,d.useState)(0),z=(0,d.useContext)(w.O),E=(0,d.useContext)(m.Ws),P=z.editor&&z.seasonId&&z.uniqueTournamentId,R=110*!!P,L=(0,d.useRef)(null),F=(e,t,n)=>{!n&&(e.preventDefault(),_!==t?(A(t),h(!0),_&&f(!0)):h(e=>!e))},M=()=>{var e;let t=null==(e=L.current)?void 0:e.clientHeight;t&&t!==T&&I(t+R)},H=e=>{if(null==e?void 0:e.length){M();let t=(0,v.K)(e);return t!==_&&A(t),t}};(0,d.useEffect)(()=>{f(!1),A(void 0)},[n]);let N=async e=>{g||f(!0),await e(),M()},D=()=>h(!1),W=e=>{let{managedTeamMap:s,playedForTeamMap:a}=e;return(e,r)=>t===l.wNW.Team?e===n:t===l.wNW.Manager&&s&&r?e===s[r]:t===l.wNW.Player&&!!a&&!!r&&e===a[r]},q=(e,n,s,a,r)=>t===l.wNW.Team&&n?(0,j.ey)({isReferenceTeamId:W({playedForTeamMap:n})}):t===l.wNW.Manager&&s?(0,j.ey)({isReferenceTeamId:W({managedTeamMap:s}),incidentsMap:r,entity:t}):t===l.wNW.Player?t=>{var s,l,o,d;return(0,j.G)({rating:null==(s=e[t])?void 0:s.rating,points:null!=(o=null==e||null==(l=e[t])?void 0:l.points)?o:0,isOnBench:null!=(d=null==a?void 0:a[t])&&d,playedFor:n?n[t]:void 0,incidents:r?r[t]:void 0,player:i,isReferenceTeamId:W({playedForTeamMap:n})})}:j.gY,B=t===l.wNW.Player;return(0,s.jsx)(p.t,{tag:"EventListContainer",children:(0,s.jsx)(y.w,{entity:t,id:n,seasonId:a,children:e=>{let{events:t,toNextPage:n,toPreviousPage:l,hasNextPage:a,hasPreviousPage:i,managedTeamMap:d,statisticsMap:m,playedForTeamMap:p,incidentsMap:h,onBenchMap:j}=e,f=q(m,p,d,j,h);return(0,s.jsxs)(u.HH,{isCard:!o,children:[!o&&(0,s.jsx)(u.Zp.Header,{titleId:"matches",values:{sport:(0,b.ap)(E)}}),(0,s.jsxs)(r.so,{children:[(0,s.jsx)(r.az,{w:"50%",children:(0,s.jsx)(C,{listRef:L,hasPreviousPage:i,hasNextPage:a,onNavigatorClickHandler:N,toNextPage:n,toPreviousPage:l,events:t,eventCell:f,isPlayer:B,showWidget:x,lastClickedEventId:_,clicked:g,determineFirstEvent:H,transfers:c,onClick:F,updateWidgetHeight:M,children:P&&(0,s.jsx)(r.az,{h:R,p:"sm",children:(0,s.jsx)(S.G,{tournamentId:z.uniqueTournamentId,seasonId:z.seasonId})})})}),(0,s.jsx)(k,{lastClickedEventId:_,widgetHeight:T,showWidget:x,closeWidget:D})]})]})}})})}},94842:(e,t,n)=>{n.d(t,{N:()=>l});var s=n(6029);let l=e=>{let{children:t,onClick:n}=e;return(0,s.jsx)("a",{href:"https://nba.sjv.io/c/5441787/2176796/16284",target:"_blank",rel:"noopener",onClick:n,children:t})}},99325:(e,t,n)=>{n.d(t,{G:()=>d});var s=n(6029),l=n(21377),a=n(947),r=n(90248),i=n(79387),o=n(19451);let d=e=>{let{tournamentId:t,seasonId:n}=e,{locale:d}=(0,a.A)(),c=(0,o.vf)(d),u="".concat(l.yuv).concat(c?"/".concat(c):"","/embed/unique-tournament/").concat(t,"/season/").concat(n,"/editorFixtures"),m="sofa-fixtures-embed-".concat(t,"-").concat(n),x='');return(0,s.jsx)(i.C,{callToAction:(0,s.jsx)(r.A,{id:"fixtures.embedCTA"}),embedString:x})}}}]);