!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0b8012cd-f37c-4a86-ac08-72e75f208a24",e._sentryDebugIdIdentifier="sentry-dbid-0b8012cd-f37c-4a86-ac08-72e75f208a24")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{3167:(e,n,t)=>{t.d(n,{G:()=>h});var s=t(6029),i=t(41249),r=t(83170),a=t(55729),o=t(90510),l=t(41735);let d=(0,l.keyframes)(["from{width:0;}to{width:",";}"],e=>e.width),u=(0,l.default)(i.az).withConfig({componentId:"sc-a90f0ad-0"})(["position:absolute;height:6px;width:",";animation:"," 0.3s linear;"],e=>e.width,d),c=(0,r.A)().range([0,100]);function h(e){let{start:n=0,c:t=["onSurface.nLv1","onColor.primary"],bg:r="overlay.darken1",end:l,datesProps:d,...h}=e,[m,x]=(0,a.useState)(0),p=Date.now()/1e3;(0,a.useEffect)(()=>{setTimeout(()=>{e.end&&x(e.end)},1e3)},[e.end]),c.domain([n,m]).clamp(!0);let f=c(p);return(0,s.jsx)(i.so,{mt:["sm","md"],mb:["md",0],...h,children:(0,s.jsxs)(i.az,{flex:"1 1 auto",children:[(0,s.jsx)(i.az,{br:"sm",h:"6",bg:r,position:"relative",overflow:"hidden",children:n>0&&m>0&&(0,s.jsx)(u,{width:f+"%",bg:t},m)}),(0,s.jsxs)(i.so,{justify:"space-between",mt:"xxs",...d,children:[(0,s.jsx)(i.EY,{font:"body.small",c:t,children:(0,s.jsx)(o.XU,{value:1e3*n,day:"numeric",month:"short"})}),(0,s.jsx)(i.EY,{font:"body.small",c:t,children:(0,s.jsx)(o.XU,{value:1e3*(e.end||m),day:"numeric",month:"short"})})]})]})})}},10778:(e,n,t)=>{t.d(n,{j:()=>P});var s=t(6029),i=t(32523),r=t(21377),a=t(44194),o=t(41249),l=t(55729),d=t(90248),u=t(494),c=t(45860),h=t(41248),m=t(33144),x=t(62859),p=t(54409),f=t(60988),g=t(65078),j=t(75436),v=t(70591),y=t(28132),b=t(13349),w=t(47530),I=t(94604),S=t(86679);let T=["Final","Semifinal","Semifinals","Match for 3rd place"],k=e=>{let{seasonId:n,uniqueTournamentId:t,...i}=e,{data:a,isLoading:l}=(0,c.Ay)(r.V3t.info(t,n)),u=null==a?void 0:a.info.winner;return l||u?(0,s.jsxs)(o.so,{h:64,bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:[void 0,"lg"],...i,children:[(0,s.jsxs)(o.az,{h:56,w:56,position:"relative",children:[(0,s.jsx)(p.HeH,{height:56,width:56}),u&&(0,s.jsx)(m.p,{size:20,name:u.name,id:u.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),u&&(0,s.jsxs)(o.az,{children:[(0,s.jsx)(o.EY,{as:"div",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(d.A,{id:"winner"})}),(0,s.jsx)(o.EY,{as:"div",font:"display.medium",mt:"xs",children:(0,s.jsx)(I.Rm,{team:u})})]})]}):null},z=()=>{let[e,n]=(0,l.useState)(!1);return(0,s.jsx)(o.AM,{closeOnOutsideClick:!0,controls:[e,n],children:(0,s.jsxs)(o.AM.Content,{w:"260px",right:[-8,0,-20,0],elevation:3,children:[(0,s.jsx)(o.az,{px:"xs",pt:"sm",children:(0,s.jsx)(d.A,{id:"rating_team_of_the_tournament",values:{bold:function(){for(var e=arguments.length,n=Array(e),t=0;tn(!1),children:(0,s.jsx)(d.A,{id:"ok_got_it_button"})})})]})})},E=e=>{let{seasonId:n,uniqueTournamentId:t,...i}=e,{data:a,isLoading:l}=(0,c.Ay)(r.V3t.teamOfTheSeason(t,n));return a||l?(0,s.jsxs)(o.az,{...i,children:[(0,s.jsxs)(o.so,{h:40,justify:"space-between",px:"sm",children:[(0,s.jsx)(o.EY,{as:"div",font:"display.small",h:"40px",pt:"lg",children:(0,s.jsx)(d.A,{id:"team_of_the_tournament"})}),(0,s.jsx)(o.az,{h:"24px",w:"24px",mt:"md",children:(0,s.jsx)(z,{})})]}),(0,s.jsx)(o.az,{h:"360px",mt:[0,"sm"],children:a&&(0,s.jsx)(b.I,{formation:a.formation,players:a.players,isSeason:!0})})]}):null},C=e=>{let{event:n}=e,{event:t,leftTeam:i,rightTeam:r,leftScore:a,rightScore:o}=(0,g.AR)(n);return(0,s.jsx)(x.y$.Provider,{value:{event:t,leftTeam:i,rightTeam:r,leftScore:a,rightScore:o,location:x.cb.MainList},children:(0,s.jsx)(v.tj,{event:t,children:(0,s.jsx)(f.n6,{event:t,style:{margin:"0 -8px"}})})})},A=e=>{let{uniqueTournament:n,seasonId:t,uniqueTournamentId:i,...u}=e,{isDesktop:h}=(0,a.$c)(),{data:m,isLoading:x}=(0,c.Ay)(r.V3t.events(i,t,!0,0)),{hasTopStats:f}=(0,S.A)({hasTopStats:{route:r.V3t.topPlayersPerGame(i,t,"all",r.Vw_.overall)}}),g=null==m?void 0:m.events.filter(e=>{var n;return(null==(n=e.roundInfo)?void 0:n.name)&&T.includes(e.roundInfo.name)}).reverse();return(null==g?void 0:g.length)||x?(0,s.jsxs)(o.az,{...u,minH:"248px",children:[(0,s.jsx)(o.EY,{as:"div",font:"display.small",h:"40px",px:"sm",pt:"lg",align:["center","left"],children:(0,s.jsx)(d.A,{id:"final_matches_title"})}),(0,s.jsx)(o.az,{h:x?"208px":void 0,children:null==g?void 0:g.map((e,n)=>{var t,i;return(0,s.jsxs)(l.Fragment,{children:[(null==(t=e.roundInfo)?void 0:t.name)&&(0===n||(null==(i=g[n-1].roundInfo)?void 0:i.name)!==e.roundInfo.name)&&(0,s.jsx)(o.EY,{as:"div",h:"32px",px:["sm",0],pt:"sm",font:"assistive.default",color:"onSurface.nLv3",children:(0,s.jsx)(w.__,{name:e.roundInfo.name})}),(0,s.jsx)(C,{event:e},e.id)]},e.id)})}),(0,s.jsx)(j.S,{uniqueTournament:n,seasonId:t,tab:h?void 0:f?y.H.TopStats:y.H.Details,children:(0,s.jsxs)(o.so,{justify:"center",pt:"md",h:"48px",children:[(0,s.jsx)(o.EY,{as:"div",color:"primary.default",font:"display.small",children:(0,s.jsx)(d.A,{id:"see_historical_details_button"})}),(0,s.jsx)(p.CCT,{fill:"primary.default"})]})})]}):null},_=e=>{let{uniqueTournament:n,season:t,tournament:i}=e;return(0,s.jsxs)(o.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:["lg",0],children:[(0,s.jsx)(k,{uniqueTournamentId:i.id,seasonId:t.id}),(0,s.jsx)(E,{uniqueTournamentId:i.id,seasonId:t.id,mt:"sm"}),(0,s.jsx)(A,{uniqueTournament:n,uniqueTournamentId:i.id,seasonId:t.id,mt:"sm"})]})};var F=t(21501);let Y=e=>{let{season:n,isSelected:t,onClick:i}=e,[r,l]=(0,F.c9)([]);return(0,a.rF)(r,"history-highlights-picker",[t],()=>!!t),(0,s.jsx)(o.az,{userSelect:"none",ref:l,bg:t?"onColor.primary":"onColor.highlight.nLv1",onClick:t?void 0:i,cursor:t?void 0:"pointer",h:"32px",minW:"46px",px:"sm",br:"sm",children:(0,s.jsx)(o.so,{h:"100%",align:"center",justify:"center",children:(0,s.jsx)(o.EY,{as:"div",font:"tab.secondary",whiteSpace:"nowrap",color:t?"primary.default":"onColor.primary",children:n.year})})})};var R=t(10794),L=t(12047);let H=(e,n,t)=>{var s,i;let r=null!=(i=null==(s=e.defaultHistoryHighlightsYearPerCountry)?void 0:s[t||""])?i:e.historyHighlightsEndYear;return r?Math.max(n.findIndex(e=>e.year===r),0):0},D=e=>{let{seasons:n,tournament:t,uniqueTournament:i}=e,r=(0,u.d4)(R.LQ),[c,m]=(0,l.useState)(()=>H(t,n,r));(0,l.useEffect)(()=>{m(H(t,n,r))},[t.id,r]);let x=(0,L.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,s.jsxs)(o.az,{position:"relative",children:[(0,s.jsx)(o.az,{position:["sticky",void 0],top:x-40,zIndex:o.Py.Sticky,children:(0,s.jsxs)(h.W,{h:88,tournament:t,children:[(0,s.jsx)(o.EY,{pt:"lg",h:"40px",as:"div",align:"center",font:"display.medium",color:"onColor.primary",children:(0,s.jsx)(d.A,{id:"history_highlights_title"})}),(0,s.jsx)(a.tR,{showButtons:"always",buttonStyle:"clipped",colorPalette:"onColor",scrollFactor:.7,scrollableContainerId:"history-highlights-picker",children:(0,s.jsx)(o.so,{minW:"fit-content",h:"48px",justify:"space-between",align:"center",px:"lg",gap:"lg",children:n.map((e,n)=>(0,s.jsx)(Y,{season:e,isSelected:n===c,onClick:()=>m(n)},e.id))})})]})}),(0,s.jsx)(_,{uniqueTournament:i,season:n[c],tournament:t})]})},P=e=>{let{tournament:n,uniqueTournament:t,seasons:a=[]}=e,{data:o,isLoading:l}=(0,c.Ay)(r.V3t.seasons(n.id),{fallbackData:{seasons:a}}),d=null==o?void 0:o.seasons.filter(e=>e.id!==n.seasonId&&n.historyHighlightsEndYear&&e.year>=n.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,s.jsx)(D,{uniqueTournament:t,tournament:n,seasons:d}):l?(0,s.jsx)(i.E,{uniqueKey:"history-highlights-container-cl",h:"888px"}):null}},13349:(e,n,t)=>{t.d(n,{I:()=>f});var s=t(6029),i=t(76356),r=t(75751),a=t(22648),o=t(24985),l=t(90715),d=t(78259),u=t(41249),c=t(16620),h=t(48886),m=t(70591),x=t(24159);let p=e=>{let{player:n,team:t,rating:i,event:r,textW:a,isSeason:o,isSmall:l}=e,{openEventPlayerStatistics:p}=(0,c.d)(),f=l?16:24,g=l?32:40,j=l?56:72,v=o||l?"sm":void 0,y=!o||l?24:28;return n?(0,s.jsx)(m.N_,{routeKey:"player",params:{id:n.id,slug:n.slug},onClick:e=>{r&&n&&(e.preventDefault(),e.stopPropagation(),p({event:r,player:n},h._.TeamOfTheWeek))},children:(0,s.jsxs)(u.so,{position:"relative",align:"center",direction:"column",textAlign:"center",w:j,h:72,children:[(0,s.jsx)(u.so,{my:"xs",children:(0,s.jsx)(d.tg,{id:n.id,name:n.name,size:g})}),(0,s.jsx)(u.so,{grow:1,align:"center",children:(0,s.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",block:!0,ellipsis:!l,w:a,lineClamp:l?2:void 0,overflowWrap:"anywhere",verticalAlign:"middle",children:(0,s.jsx)(x.c,{entity:n,short:!0})})}),t&&(0,s.jsx)(u.az,{position:"absolute",top:24,right:0,children:(0,s.jsx)(d.pY,{id:t.id,name:t.name,size:f})}),(0,s.jsx)(u.az,{position:"absolute",top:y,left:0,children:(0,s.jsx)(d.GW,{rating:i,decimalPoints:o?2:1,size:v})})]})}):null},f=e=>{let{formation:n,players:t,isSeason:d}=e,u=null==n?void 0:n.includes("5");return(0,s.jsx)(r.t,{tag:"TOTW",children:(0,s.jsxs)(i.az,{position:"relative",h:"[368px]",children:[(0,s.jsx)(i.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",children:n&&t?(0,l.V)(n,t).map((e,n)=>(0,s.jsx)(i.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map(n=>(0,s.jsx)(p,{...n,textW:280/e.length,isSeason:d,isSmall:u},n.id))},n)):(0,s.jsx)(i.so,{h:"[360px]",justify:"center",align:"center",children:(0,s.jsx)(a.a,{})})}),(0,s.jsx)(i.az,{position:"absolute",top:"-2xs",left:"-2xs",w:"[calc(100% + 4px)]",h:"[calc(100% + 4px)]",border:"2px solid rgba(164, 169, 179, 0.3)"}),(0,s.jsx)(o.g9,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})]})})}},19944:(e,n,t)=>{t.d(n,{Y:()=>a});var s=t(21377),i=t(4967),r=t(45860);let a=function(e,n){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=t&&void 0!==n,{data:o,error:l,isLoading:d}=(0,r.Ay)(a?s.V3t.scheduledEvents(e,n):null);return{events:(null==o?void 0:o.events.filter(e=>(0,i.yk)(e.startTimestamp,Date.parse("".concat(n,"T12:00")))))||[],error:l,isLoading:d}}},41248:(e,n,t)=>{t.d(n,{W:()=>l});var s=t(6029),i=t(41249),r=t(41735);let a=(0,r.default)(i.az).withConfig({componentId:"FeaturedTournamentBackgroundContainer"}).withConfig({componentId:"sc-b415e48f-0"})(["background-image:url(/static/images/featured-tournament/",".webp);background-size:105% 105%;background-position:center center;overflow:hidden;opacity:0.8;"],e=>e.tournament.msgKey),o=(0,r.default)(i.az).withConfig({componentId:"FeaturedTournamentOverlayContainer"}).withConfig({componentId:"sc-b415e48f-1"})(["background:linear-gradient(to bottom,rgba(0,0,0,0),"," 100%);"],e=>e.theme.colors.overlay.darken2),l=e=>{let{tournament:n,children:t,h:r,...l}=e;return(0,s.jsxs)(i.az,{position:"relative",overflow:"hidden",h:r,bg:"graphicsTerrain.dark",...l,children:[(0,s.jsx)(a,{tournament:n,h:r,children:(0,s.jsx)(o,{h:r})}),(0,s.jsx)(i.az,{position:"absolute",h:r,inset:0,children:t})]})}},50433:(e,n,t)=>{t.d(n,{G:()=>c});var s=t(6029),i=t(21377),r=t(55729),a=t(45860),o=t(7079),l=t(66757),d=t(91816),u=t(67149);function c(e){let{loaderHeight:n,tableIndex:t,type:c}=e,{uniqueTournamentId:h,seasonId:m,standings:x}=(0,r.useContext)(d.P),{data:p,error:f}=(0,a.Ay)(h&&m?i.V3t.standings(h,m,c):null,{refreshInterval:3e4}),g=(null==p?void 0:p.standings)||(c===i.lpv.Total?x:void 0),{data:j}=(0,a.Ay)(h&&m?i.V3t.teamEvents(h,m,c):null,{refreshInterval:3e4});if(f)return null;if(!g)return(0,s.jsx)(l.e,{rows:n});let v=(0,u.OL)(g,g)[t],y=j?j.tournamentTeamEvents[v.tournament.id]:void 0;return(0,s.jsx)(o.X,{type:c,table:g[t],teamEvents:y})}},75436:(e,n,t)=>{t.d(n,{S:()=>r});var s=t(6029),i=t(70591);let r=e=>{let{uniqueTournament:n,seasonId:t,tab:r,onClick:a,children:o}=e;return n?(0,s.jsx)(i.tQ,{tournament:n,seasonId:t,hash:r?"id:".concat(t,",tab:").concat(r):"id:".concat(t),onClick:a,children:o}):(0,s.jsx)(s.Fragment,{children:o})}},75493:(e,n,t)=>{t.d(n,{A:()=>j});var s=t(6029),i=t(21377),r=t(4967),a=t(44194),o=t(76356),l=t(41249),d=t(55729),u=t(494),c=t(45860),h=t(22648),m=t(8703),x=t(53486),p=t(47530);let f=(e,n)=>{let t=(0,r.ZV)(),s=1/0,i=0;return[e.filter(e=>!e.name).map((e,r)=>({round:e,events:n.filter(e=>{if(e.roundInfo){let n=Math.abs(e.startTimestamp-t);return ne.events.length),i]},g=e=>{let{rounds:n,closestRound:t}=e,[i,r]=(0,d.useState)(n[t-1]?t-1:n.length-1),u=n[i];return u?(0,s.jsxs)(o.az,{flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},h:"100%",bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md",children:[(0,s.jsx)(l.VQ,{centerVertically:!0,controls:[i,r],children:n.map(e=>(0,s.jsx)(a.EY,{textStyle:"display.small",children:(0,s.jsx)(p.DT,{round:e.round})},e.round.round))}),(0,s.jsx)(o.az,{children:u.events.map(e=>(0,s.jsx)(x.n6,{event:e,isNarrow:!0,isShort:!0,hideIncidentIcons:!0},e.id))})]}):(0,s.jsx)(o.az,{hideBelow:"md",h:"[136px]",flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md"})},j=(0,u.Ng)(null,m.AD)(function(e){let{uniqueTournamentId:n,tournamentId:t,seasonId:r,refreshEvents:a,stopRefreshingEvents:l,setEvents:u}=e,[m,x]=(0,d.useState)(!1),{data:p,error:j}=(0,c.Ay)(i.V3t.seasonRounds(n,r)),{data:v,error:y,isValidating:b}=(0,c.Ay)(i.yKR.seasonEvents(t,r),{onSuccess:e=>{let{events:n}=e;u(n),a({entities:n.filter(e=>e.status.type!==i.XUj.Finished).map(e=>e.id),refreshTaskId:"".concat(i.bq7.Tournaments,"-").concat(t)},{fetchFunction:()=>i.IwS.fetchTournamentSeasonEvents(t,r)}),x(!0)}});if((0,d.useEffect)(()=>()=>{l("".concat(i.bq7.Tournaments,"-").concat(t))},[r]),b)return(0,s.jsxs)(o.az,{flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},h:"100%",bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md",children:[(0,s.jsx)("div",{}),(0,s.jsx)("aside",{children:(0,s.jsx)(h.a,{})})]});if(!(p&&p.rounds&&v&&v.events&&m)||y||j)return(0,s.jsx)(o.az,{hideBelow:"md",h:"100%",flexShrink:{base:0,md:1},flexBasis:{md:"[256px]"},w:{md:"[256px]"},bg:"surface.s2",br:"sm",p:"sm",mx:"sm",mt:"xs",mb:"md"});let[w,I]=f(p.rounds,v.events);return(0,s.jsx)(g,{rounds:w,closestRound:I})})},77235:(e,n,t)=>{t.d(n,{A:()=>I});var s=t(6029),i=t(21377),r=t(44194),a=t(21501),o=t(41249),l=t(55729),d=t(45860),u=t(65789),c=t(85568),h=t(7263),m=t(47530),x=t(82287),p=t(91816),f=t(11033),g=t(65457),j=t(75493),v=t(50433);let y="horiz-standings";function b(e){let{isSelected:n,onClick:t,children:i}=e,[l,d]=(0,a.c9)([]);return(0,r.rF)(l,y,[n],()=>!!n),(0,s.jsx)(o.az,{ref:d,children:(0,s.jsx)(o.so,{h:32,minW:68,px:"sm",br:"sm",userSelect:"none",bg:n?"primary.highlight":"surface.s2",border:n?"1.5px solid primary.highlight":"1.5px solid transparent",onClick:n?void 0:t,cursor:"pointer",justify:"center",align:"center",children:(0,s.jsx)(o.EY,{font:"tab.secondary",color:n?"primary.default":"onSurface.nLv1",ellipsis:!0,textTransform:"uppercase",children:i})})})}function w(e){let{selectedIndex:n,setSelectedIndex:t}=e,{uniqueTournamentId:a,seasonId:u,standings:c,isNarrowLayout:x,displayType:f,setDisplayType:w}=(0,l.useContext)(p.P),{isDesktop:I}=(0,r.$c)(),{data:S}=(0,d.Ay)(I&&a&&u?[i.V3t.seasonRounds(a,u),"HEAD"]:null,{fetcher:h.n});return(0,s.jsxs)(o.az,{grow:1,overflow:"hidden",children:[(0,s.jsx)(o.so,{align:"center",p:"sm",children:(0,s.jsx)(r.tR,{scrollableContainerId:y,buttonStyle:"solid",showButtons:"desktop",children:(0,s.jsx)(o.so,{minW:"fit-content",justify:"flex-start",gap:"sm",children:c.map((e,i)=>(0,s.jsx)(b,{isSelected:n===i,onClick:()=>t(i),children:(0,s.jsx)(m.__,{name:e.tournament.groupName||e.tournament.name})},e.id))})})}),x&&(0,s.jsx)(g.u,{displayType:f,setDisplayType:w,isNarrowLayout:x}),(0,s.jsxs)(o.so,{children:[(0,s.jsx)(o.az,{grow:1,bg:["surface.s2",void 0],br:"lg",mx:["sm",0],mt:"sm",children:(0,s.jsx)(v.G,{type:i.lpv.Total,tableIndex:n})}),S&&c[n].tournament.isGroup&&a&&u&&(0,s.jsx)(o.az,{basis:268,shrink:1,children:(0,s.jsx)(j.A,{uniqueTournamentId:a,tournamentId:c[n].tournament.id,seasonId:u})})]})]})}function I(e){let{branding:n,utId:t}=e,{seasonId:i,standings:r,tournamentId:a}=(0,l.useContext)(p.P),[o,d]=(0,l.useState)(0);if((0,l.useEffect)(()=>{d(Math.max(r.findIndex(e=>e.tournament.id===a),0))},[i,a]),!r[o])return null;let h=r[o];return(0,s.jsxs)(u.Zp,{children:[(0,s.jsx)(c.U,{entityId:t,titleId:"tournament.standings",visibility:"desktop-only",branding:n,location:"league_standings"}),(0,s.jsxs)(x.R,{standings:h,children:[(0,s.jsx)(w,{selectedIndex:o,setSelectedIndex:d}),(0,s.jsx)(f.c,{rows:h.rows,descriptions:h.descriptions,tieBreakingRule:h.tieBreakingRule,defaultOpenedFirstRules:!0})]})]})}},78259:(e,n,t)=>{t.d(n,{GW:()=>i.A,pY:()=>r.p,tg:()=>s.t});var s=t(91407),i=t(12605),r=t(91603)},79368:(e,n,t)=>{t.d(n,{LS:()=>w,Oj:()=>b,SR:()=>y,lU:()=>p,sZ:()=>v,zK:()=>f});var s=t(6029),i=t(4967),r=t(44194),a=t(59018),o=t.n(a),l=t(81278),d=t(55729),u=t(494),c=t(19451),h=t(10794),m=t(55938),x=t(39021);let p=(0,d.createContext)({}),f={1:{id:1,slug:"euro-2024",seasonId:56953,msgKey:"football_euro_2024_tournament",showCupTreeFrom:"2024-06-29",analyticsName:"euro",historyHighlightsEndYear:"1980",defaultHistoryHighlightsYearPerCountry:{BE:"1980",DE:"1996",IT:"2000",CZ:"1996",FR:"1984",PT:"2004",DK:"1992",ES:"2008",NL:"1988",IE:"1988",UK:"1996",RO:"2000",GR:"2004",SE:"1992",CH:"1996",BG:"1996",RU:"2008",HR:"1996",TR:"2008",NO:"2000",SI:"2000",LV:"2004",AT:"2008",PL:"2012",UA:"2012",SK:"2016",RS:"2000",HU:"2016",IS:"2016",AL:"2016",FI:"2020",MK:"2020",GB:"1996"},visibleFrom:"2024-06-03",visibleTo:"2024-07-21",defaultFrom:"2024-06-14"},133:{id:133,slug:"copa-2024",seasonId:57114,msgKey:"football_copa_2024_tournament",analyticsName:"copa",showCupTreeFrom:"2024-07-04",visibleFrom:"2024-06-03",visibleTo:"2024-07-21",defaultFrom:"2024-06-14"}},g=(e,n)=>(!n.visibleTo||!(e>=n.visibleTo))&&(!n.visibleFrom||!(e(()=>{try{let n=e?(0,m.BJ)(e):void 0;if((null==n?void 0:n.continent)==="South America"||(null==n?void 0:n.continent)==="North America")return[133,1]}catch(e){}return[1,133]})().map(e=>f[e]).filter(e=>void 0!==e&&g((0,i.UG)(new Date),e)),v=e=>{let{children:n}=e,[t,i]=(0,x.A)("selected.featured.tournament",void 0),[a,m]=(0,x.A)("ignored.featured.tournaments",[]),g=(0,u.d4)(h.LQ),v=j(g),{isMobile:y}=(0,r.$c)(),b=(0,l.useRouter)().pathname;(0,d.useEffect)(()=>{t&&m(e=>o()([...e,t]))},[t]),(0,d.useEffect)(()=>{m(e=>e.filter(e=>!!f[e]))},[]),(0,d.useEffect)(()=>{try{localStorage.removeItem("mobile-view-2024-06")}catch(e){}},[]),(0,d.useEffect)(()=>{if(g&&y&&b!==c.xW.FeaturedTournament&&(!t||!v.find(e=>e.id===t))){if(0===v.length)return void i(void 0);let e=v[0];i(e.id),m(n=>[...n,e.id])}},[g,v.length,b]);let w=v.filter(e=>e.id!==t&&!a.includes(e.id));return(0,s.jsx)(p.Provider,{value:{tournament:t?f[t]:void 0,allTournaments:v,setSelectedTournamentId:i,newTournaments:w,addIgnoredTournament:e=>m(n=>o()([...n,e]))},children:n})},y=e=>j((0,u.d4)(h.LQ)).filter(n=>g(e,n)&&g((0,i.UG)(new Date),n)),b=e=>f[e],w=()=>(0,d.useContext)(p)},97150:(e,n,t)=>{t.d(n,{h:()=>i});var s=t(21377);let i=e=>{var n;let t=null==e?void 0:e.filter(e=>e.status.type===s.XUj.InProgress),i=null==e?void 0:e.filter(e=>e.status.type===s.XUj.NotStarted&&e.hasEventPlayerStatistics);return[...((null==t?void 0:t.length)>0?t:i.length>0?i:e).map(e=>e.tournament.id).reduce((e,n)=>{var t;return e.set(n,(null!=(t=e.get(n))?t:0)+1),e},new Map)].reduce((e,n)=>n[1]>e[1]?n:e,[void 0,0])[0]}}}]);