!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]="12137abd-bc43-4d10-a939-f131e1d4c385",e._sentryDebugIdIdentifier="sentry-dbid-12137abd-bc43-4d10-a939-f131e1d4c385")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53813],{6354:(e,t,s)=>{s.d(t,{O:()=>n});let n=(0,s(55729).createContext)({})},19944:(e,t,s)=>{s.d(t,{Y:()=>i});var n=s(21377),r=s(4967),l=s(45860);let i=function(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=s&&void 0!==t,{data:a,error:o,isLoading:d}=(0,l.Ay)(i?n.V3t.scheduledEvents(e,t):null);return{events:(null==a?void 0:a.events.filter(e=>(0,r.yk)(e.startTimestamp,Date.parse("".concat(t,"T12:00")))))||[],error:o,isLoading:d}}},21075:(e,t,s)=>{s.d(t,{n:()=>q});var n=s(6029),r=s(33144),l=s(21377),i=s(28349),a=s(76356),o=s(55729),d=s(90510),c=s(62859),u=s(87930),x=s(65078),p=s(8973),m=s(39969),h=s(13266),j=s(47530),g=s(87763),v=s(94604),y=s(62827),f=s(4967),b=s(90248),w=s(494),T=s(41618),S=s(62213),k=s(85517),I=s(49821),C=s(4236),E=s(61836),z=s(10794),A=s(28600),_=s(62042),D=s(75791),B=s(31253);let L=(e,t,s)=>(0,_.AH)({display:"flex",justifyContent:"space-evenly",alignItems:"center",flex:"1",minW:"[0px]",minH:"[20px]",border:t?"1px solid":void 0,borderColor:t?"primary.default":s?"neutrals.nLv4":void 0,borderRadius:"xs",backgroundColor:"surface.s1",overflow:"hidden",_hover:{backgroundColor:e?"surface.s2":void 0}}),O=e=>{let{betSlipLink:t,onClick:s,title:r,clickable:l,winning:i,children:o,isOddsBranded:d}=e;return l&&t?(0,n.jsx)(a.I4.a,{href:t,target:"_blank",rel:"nofollow noopener noreferrer",onClick:s,title:r,className:L(l,i,d),children:o}):(0,n.jsx)(a.I4.div,{className:L(l,i),onClick:s,children:o})};function P(e){let{choice:t,isLive:s,betSlipLink:r,branded:l,onClick:o,isOddsBranded:d}=e,c=!!(r&&l);return(0,n.jsxs)(O,{clickable:c,title:t.name,betSlipLink:r,onClick:o,winning:t.winning,isOddsBranded:d,children:[(0,n.jsx)(i.EY,{display:"block",minW:"lg",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",truncate:!0,children:(0,n.jsx)(A.G,{id:t.name})}),(0,n.jsxs)(a.so,{minW:"2xl",justify:"center",align:"center",gap:"2xs",children:[(0,n.jsx)(a.az,{mt:1===t.change?"2xs":void 0,children:(0,n.jsx)(B.A,{change:t.change})}),(0,n.jsx)(i.EY,{display:"block",textStyle:"display.micro",color:s?"status.val":"neutrals.nLv1",children:(0,n.jsx)(D.c,{fractionalValue:t.fractionalValue})})]})]})}let Y=e=>{let{countryOddsProvider:t,setHasSelectedDayOdds:s,isOddsBranded:r}=e,{event:d}=(0,o.useContext)(c.y$),{featuredOdds:u,error:x}=(0,k.A)(t,d.id,d.status.type===l.XUj.InProgress,t.featuredOddsType);if((0,o.useEffect)(()=>{u&&s(!0)},[u]),!u&&!x)return d.startTimestamp*f.Z2-4*f.d_(0,E.Sj)({position:e,provider:t.provider.slug});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.so,{gap:"xs",pt:"md",pb:"xs",align:"center",children:[(0,n.jsx)(i.EY,{textStyle:"display.micro",children:(0,n.jsx)(A.f,{id:u.marketName})}),u.choiceGroup&&(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(A.f,{id:u.choiceGroup})}),u.isLive&&(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"status.val",children:(0,n.jsx)(b.A,{id:"live"})})]}),(0,n.jsxs)(a.so,{pb:"sm",pt:"xs",gap:"lg",children:[(0,n.jsx)(a.so,{gap:"sm",grow:1,overflow:"hidden",children:u.choices.map(e=>(0,n.jsx)(P,{choice:e,isLive:u.isLive,betSlipLink:t&&(0,C.Iz)(e,u,t),branded:null==t?void 0:t.branded,onClick:()=>p(I.ki.OddsValue),isOddsBranded:r},e.name))}),(0,n.jsx)(a.az,{h:"[20px]",w:"4xl",children:(0,n.jsx)(T.r,{size:"48x20",selectedProvider:t,onClick:()=>p(I.ki.ProviderLogo),logClick:!1})})]})]})},N=e=>{let{event:t}=(0,o.useContext)(c.y$),s=(0,w.d4)(z.LQ),r=(0,w.d4)(z.dg);return s&&S.aZ.includes(s)&&S.S1.includes(t.status.type)||s&&S.ZN.includes(s)&&!r||t.homeTeam.disabled||t.awayTeam.disabled?null:(0,n.jsx)(Y,{...e})},R=e=>{let{preferDate:t}=e,{event:s,leftTeam:r,rightTeam:l}=(0,o.useContext)(c.y$);return(0,n.jsxs)(a.so,{h:"3xl",justify:"space-between",align:"center",children:[(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:t?(0,n.jsx)(d.XU,{value:1e3*s.startTimestamp}):(0,n.jsxs)(n.Fragment,{children:[s.tournament.isGroup&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.__,{name:s.tournament.groupName||s.tournament.name}),",\xa0"]}),(0,n.jsx)(j.DT,{round:s.roundInfo})]})}),(0,n.jsx)(a.az,{onClick:e=>{e.preventDefault(),e.stopPropagation()},position:"relative",children:(0,n.jsx)(m.h,{id:s.id,type:p.b.Event,location:p.y.Header,tournament:s.tournament,leftTeam:r,rightTeam:l})})]})},U=e=>{let{event:t}=e;return(0,n.jsx)(a.so,{justify:"center",align:"center",children:(0,n.jsx)(a.az,{bg:"status.error.default",px:"sm",br:"sm",h:"[16px]",mb:"sm",children:(0,n.jsx)(i.EY,{display:"block",color:"surface.s1",textStyle:"assistive.default",children:(0,n.jsx)(g.fP,{id:t.status.description})})})})},F=()=>{let{event:e,leftTeam:t,rightTeam:s}=(0,o.useContext)(c.y$),x=e.status.type===l.XUj.NotStarted||(0,y.sw)(e);return(0,n.jsxs)(a.so,{justify:"space-between",py:"sm",children:[(0,n.jsxs)(a.so,{gap:"lg",w:"5xl",flexGrow:1,align:"center",justify:"flex-end",overflow:"hidden",children:[(0,n.jsx)(i.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,n.jsx)(v.Rm,{team:t,short:!0})}),(0,n.jsx)(r.p,{id:t.id,name:t.name,size:32})]}),(0,n.jsxs)(a.so,{maxW:"[100px]",minW:"fit",px:"lg",grow:1,overflow:"hidden",justify:"center",align:"center",children:[!x&&(0,n.jsx)(u.A,{isSmall:!0,shortStatus:!0}),x&&(0,n.jsx)(i.EY,{display:"block",textAlign:"center",textStyle:"display.medium",color:"neutrals.nLv3",children:(0,n.jsx)(d.ib,{value:1e3*e.startTimestamp})})]}),(0,n.jsxs)(a.so,{gap:"lg",w:"5xl",grow:1,align:"center",overflow:"hidden",children:[(0,n.jsx)(r.p,{id:s.id,name:s.name,size:32}),(0,n.jsx)(i.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,n.jsx)(v.Rm,{team:s,short:!0})})]})]})},q=e=>{let{event:t,countryOddsProvider:s,setHasSelectedDayOdds:r,preferDateInHeader:l,isOddsBranded:i}=e,{event:o,...d}=(0,x.mJ)(t.id,{event:t,shouldRefresh:!0}),u=o||t,p=(0,y.sw)(u);return(0,n.jsx)(c.y$.Provider,{value:{event:u,...d,location:c.cb.SpecialEventWidget},children:(0,n.jsxs)(a.az,{minH:"10xl",px:"lg",pb:"sm",bg:"surface.s2",br:{base:"md",md:"lg"},children:[(0,n.jsxs)(h.tj,{event:u,children:[(0,n.jsx)(R,{preferDate:l}),p&&(0,n.jsx)(U,{event:u}),(0,n.jsx)(F,{})]}),s&&(0,n.jsx)(N,{countryOddsProvider:s,setHasSelectedDayOdds:r,isOddsBranded:i})]})})}},21319:(e,t,s)=>{s.d(t,{H:()=>u});var n=s(6029),r=s(28349),l=s(76356),i=s(90248),a=s(85986),o=s(25022),d=s(53214);function c(e){var t,s;let{block:a,placementBlock:o,inCard:c}=e,u=null==(t=a.participants[0])?void 0:t.winner,x=null==(s=a.participants[1])?void 0:s.winner;return(0,n.jsxs)(l.so,{align:"center",justify:"center",position:"relative",children:[(0,n.jsx)(d.b8,{block:a,inCard:c}),(u||x)&&(0,n.jsx)(l.az,{position:"absolute",right:x?"[calc(50% - 90px)]":void 0,left:x?void 0:"[calc(50% - 90px)]",children:(0,n.jsx)(d.Xs,{})}),o&&(0,n.jsxs)(l.az,{position:"absolute",right:x?void 0:"[calc(50% - 130px)]",left:x?"[calc(50% - 130px)]":void 0,children:[(0,n.jsx)(d.b8,{block:o,hideTopConnector:!0,hideBottomConnector:!0,inCard:c}),(0,n.jsx)(r.EY,{display:"block",textAlign:"center",textStyle:"assistive.micro",color:"neutrals.nLv3",mt:"-md",children:(0,n.jsx)(i.A,{id:"3rdPlace"})})]})]})}function u(e){let{cupTree:t,inCard:s}=e,{sport:r}=(0,a.B)(),i=(0,o.TI)(t,r,null);return(0,n.jsxs)(l.az,{overflow:s?"hidden":"scroll",children:[(0,n.jsx)(d.Bg,{tree:i.left,inCard:s}),(0,n.jsx)(c,{block:i,placementBlock:i.thirdPlaceBlock,inCard:s}),(0,n.jsx)(d.Bg,{tree:i.right,initialOrientation:"bottom",inCard:s})]})}},42078:(e,t,s)=>{s.d(t,{d:()=>c});var n=s(6029),r=s(76356),l=s(55729),i=s(48683),a=s(62859),o=s(85568),d=s(66757);let c=e=>{var t;let{noSeasonPicker:s,isNarrowLayout:c,isInlineLayout:u,branding:x,numberOfRows:p=20,noTitle:m=!1}=e,{event:h}=(0,l.useContext)(a.y$),j=null==h||null==(t=h.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,n.jsxs)(r.so,{direction:"column",gap:["sm","md"],children:[(0,n.jsxs)(i.Zp,{variant:u?"never":void 0,children:[!c&&!u&&m&&(0,n.jsx)(o.U,{titleId:"app.standings",branding:x}),(0,n.jsxs)(r.az,{children:[!s&&(0,n.jsx)(r.az,{h:"4xl"}),(0,n.jsx)(r.az,{h:"2xl"}),(0,n.jsx)(r.az,{h:"2xl"}),(0,n.jsx)(d.e,{rows:p}),(0,n.jsx)(r.az,{h:"[92px]"}),(0,n.jsx)(r.az,{p:"sm",children:(0,n.jsx)(r.az,{h:"4xl",bg:"surface.s2",br:"lg"})})]})]}),j&&(0,n.jsxs)(i.Zp,{variant:u?"never":void 0,children:[!u&&(0,n.jsx)(i.Zp.Header,{titleId:"standings_tracker_title"}),(0,n.jsx)(r.az,{h:"[542px]"})]})]})}},42525:(e,t,s)=>{s.d(t,{C:()=>p,P:()=>x});var n=s(6029),r=s(28349),l=s(76356),i=s(93338),a=s(55729),o=s(90248),d=s(54409),c=s(62827);let u=(0,l.I4)("input",{base:{width:"100%",height:"2xl",paddingInlineEnd:"3xl",bg:"surface.s2",textStyle:"assistive.default",color:"neutrals.nLv3",border:"1px solid",borderColor:"neutrals.nLv4",borderRadius:"sm",textOverflow:"ellipsis",outline:"none",cursor:"pointer",transitionProperty:"[box-shadow, background-color]",transitionDuration:"[300ms]",_focus:{outline:"none",bg:"neutral.highlight",boxShadow:"[0 0 0 3px]",boxShadowColor:"neutral.highlight"}}});function x(e){let{embedString:t,onToggle:s}=e,[x,p]=(0,a.useState)(!1),m=(0,a.useCallback)(async e=>{x||(p(!0),setTimeout(()=>{p(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(t),(0,c.MZ)((0,n.jsxs)(l.so,{align:"center",children:[(0,n.jsx)(d.G_L,{fill:"surface.s1",mr:"lg"}),(0,n.jsx)(r.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,n.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[t,x]);return(0,n.jsxs)(l.az,{position:"relative",mx:{base:"[0px]",md:"xs"},my:"xs",children:[(0,n.jsx)(u,{id:t,type:"text",readOnly:!0,value:t,onClick:m,onBlur:s}),(0,n.jsx)("label",{htmlFor:t,children:(0,n.jsx)(d.i2C,{width:"24",height:"24",fill:i.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function p(e){let{id:t,callToAction:s,embedString:o,inverted:c,inHeader:u,onCallToActionClick:p,...m}=e,[h,j]=(0,a.useState)(!1),{isMobile:g}=(0,r.$c)();return(0,a.useEffect)(()=>{j(!1)},[t]),g?null:(0,n.jsx)(l.az,{px:"sm",mt:"sm",...m,children:(0,n.jsxs)(l.az,{cursor:"pointer",bg:{md:c?void 0:"surface.s2"},_hover:{bg:u?"primary.highlight":void 0},br:"sm",p:{md:u?"xs":"sm"},children:[(0,n.jsxs)(l.so,{justify:"flex-end",align:"center",onClick:()=>{j(!h),null==p||p()},children:[(0,n.jsx)(r.EY,{color:c?"onColor.primary":"action.primary.default",pt:"sm",px:"sm",pb:u&&h?"xs":"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:s}),(0,n.jsx)(l.az,{flexShrink:0,children:(0,n.jsx)(d.zQC,{icon:h?"chevron-up":"chevron-down",width:24,height:24,fill:c?i.S.var("colors.onColor.primary"):i.S.var("colors.action.primary.default"),mx:"xs"})})]}),h&&(0,n.jsx)(x,{embedString:o})]})})}},50433:(e,t,s)=>{s.d(t,{G:()=>u});var n=s(6029),r=s(21377),l=s(55729),i=s(45860),a=s(76868),o=s(7079),d=s(66757),c=s(69435);function u(e){let{tableName:t,loaderHeight:s,type:u}=e,{uniqueTournamentId:x,seasonId:p,standings:m,hasHomeAwayStandings:h,setIsStandingsTableEmpty:j}=(0,l.useContext)(c.P),{data:g,error:v}=(0,i.Ay)(x&&p?r.V3t.standings(x,p,u):null,{refreshInterval:3e4}),y=(null==g?void 0:g.standings)||(u===r.lpv.Total?m:void 0),{data:f}=(0,i.Ay)(x&&p?r.V3t.teamEvents(x,p,u):null,{refreshInterval:3e4});if((0,l.useEffect)(()=>{h&&j&&y&&j(void 0===y.find(e=>e.name===t))},[y,t]),v)return null;if(!y)return(0,n.jsx)(d.e,{rows:s});let b=y.find(e=>e.name===t);if(!b)return(0,n.jsx)(a.p,{graphic:"no-standings",descriptionMessageId:"empty_recent_searches_title"});let w=f?f.tournamentTeamEvents[b.tournament.id]:void 0;return(0,n.jsx)(o.X,{type:u,table:b,teamEvents:w})}},62221:(e,t,s)=>{s.d(t,{C:()=>l});var n=s(55729),r=s(25022);let l=e=>{var t;let[s,l]=(0,n.useState)(0),[i,a]=(0,n.useState)(!0),[o,d]=(0,n.useState)(0);(0,n.useEffect)(()=>{let t=null==e?void 0:e[s];t&&("number"==typeof t.currentRound?d(t.currentRound-1):t.rounds.length>=1&&d(t.rounds.length-1))},[s]);let c=e[s],u=c.rounds.filter(r.bs),x={...c,rounds:u},p=u.length>0&&(0,r.P4)(x,null==(t=e[s])?void 0:t.rounds);return{cupTrees:e,knockoutPartCupTree:x,selectedCupTree:c,enableCompactView:p,renderKnockout:i,setRenderKnockout:a,selectedRoundIndex:o,setSelectedRoundIndex:d,selectedTreeIndex:s,setSelectedTreeIndex:l}}},66268:(e,t,s)=>{s.d(t,{Bd:()=>eh,Or:()=>ev,SR:()=>ey.SR,LS:()=>ey.LS});var n=s(6029),r=s(21377),l=s(21501),i=s(76356),a=s(55729),o=s(90248),d=s(33752),c=s(48683),u=s(49249),x=s(39676),p=s(28349),m=s(75751),h=s(85986),j=s(95195),g=s(62221),v=s(21319),y=s(25022),f=s(47530);let b=e=>{var t;let{uniqueTournamentId:s,seasonId:r,sport:l,cupTrees:a}=e,{knockoutPartCupTree:d,selectedCupTree:u,enableCompactView:x,renderKnockout:j}=(0,g.C)(a);if(!d||!x||!j)return null;let b=null==(t=u.rounds.find(e=>e.order===u.currentRound))?void 0:t.description;return(0,n.jsx)(m.t,{tag:"MobileCupTree",children:(0,n.jsx)(h.J,{sport:l,tournamentId:s,seasonId:r,sourceTreeId:u.id,sourceTreeName:u.name,showSingleParticipantByeBlocks:u.showSingleParticipantByeBlocks,rounds:u.rounds,entrantsPerRound:u.showSingleParticipantByeBlocks?[]:(0,y.BE)(u.rounds),children:(0,n.jsxs)(c.Zp,{children:[(0,n.jsxs)(i.az,{pt:"lg",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:(0,n.jsx)(o.A,{id:"knockout"})}),b&&(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",children:(0,n.jsx)(f.__,{name:b,sport:l})})]}),(0,n.jsx)(v.H,{cupTree:d,inCard:!0})]})})})},w=e=>{let{featured:t,uniqueTournament:s}=e,[l,a]=(0,j.Q)(t.id,t.seasonId);return a?(0,n.jsx)(i.az,{h:"[500px]"}):l?(0,n.jsx)(b,{cupTrees:l,seasonId:t.seasonId,uniqueTournamentId:t.id,sport:r.QCR.Football,categorySlug:s.category.slug,uniqueTournamentSlug:s.slug}):null};var T=s(75436),S=s(59721),k=s(46009),I=s(8973),C=s(41248),E=s(4967),z=s(3167);let A=e=>{let{value:t,messageId:s}=e;return(0,n.jsxs)(i.az,{w:"1/4",px:"[1px]",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",textAlign:"center",children:t}),(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",textAlign:"center",truncate:!0,children:(0,n.jsx)(o.A,{id:s})})]})},_=()=>(0,n.jsx)(i.az,{h:"2xl",w:"[1px]",backgroundColor:"onColor.secondary"}),D=e=>{let{now:t,start:s}=e,{days:r,hours:l,minutes:a,seconds:o}=(0,E.DU)(t,s);return(0,n.jsxs)(i.so,{w:"100%",justify:"space-between",bg:"[linear-gradient(0deg, {colors.onColor.highlight2} 0%, {colors.onColor.highlight2} 100%), {colors.graphics.dark}]",h:"4xl",br:"sm",p:"sm",mt:"sm",children:[(0,n.jsx)(A,{value:r,messageId:"days"}),(0,n.jsx)(_,{}),(0,n.jsx)(A,{value:l,messageId:"hours"}),(0,n.jsx)(_,{}),(0,n.jsx)(A,{value:a,messageId:"minutes"}),(0,n.jsx)(_,{}),(0,n.jsx)(A,{value:o,messageId:"seconds_left"})]})},B=e=>{let{start:t,end:s}=e,[r,o]=(0,a.useState)(new Date().getTime()),d=(0,l.hX)();if((0,a.useEffect)(()=>{let e=setInterval(()=>o(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t||d)return(0,n.jsx)(i.az,{h:"5xl"});let c=1e3*t;return c>=r?(0,n.jsx)(D,{now:r,start:c}):(0,n.jsx)(z.G,{c:"onColor.primary",bg:"onColor.highlight.nLv2",datesProps:{mt:"xxs"},start:t,end:s,mt:"0",mb:"0",pt:"lg"})};var L=s(52695);let O=e=>{let{uniqueTournament:t,featuredType:s}=e;return(0,n.jsxs)(i.az,{position:"relative",children:[(0,n.jsx)(C.W,{tournament:s}),(0,n.jsxs)(i.az,{px:"lg",position:"relative",children:[(0,n.jsxs)(i.so,{py:"lg",gap:"lg",align:"center",children:[(0,n.jsx)(i.az,{w:"2xl",h:"2xl",children:(0,n.jsx)(S.e,{id:s.id,name:null==t?void 0:t.name,size:32})}),(0,n.jsx)(i.az,{overflow:"hidden",flexGrow:1,children:(0,n.jsx)(p.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",truncate:!0,children:t&&(0,n.jsx)(L.O,{uniqueTournament:t})})}),(0,n.jsx)(k.e,{id:s.id,entity:r.bq7.Tournaments,location:I.y.Header,type:I.b.UniqueTournament,isOnOverlay:!0})]}),(0,n.jsx)(i.az,{pb:"lg",children:(0,n.jsx)(B,{start:null==t?void 0:t.startDateTimestamp,end:null==t?void 0:t.endDateTimestamp})})]})]})};var P=s(5546),Y=s(61836),N=s(25745);let R=60*E.Z2,U=(e,t)=>{var s;let[n,r]=(0,a.useState)({}),[l,i]=(0,a.useState)({}),[o,d]=(0,a.useState)(Math.random()),c=(0,P.uZ)(),u=(0,N.s)(null==c?void 0:c.impressionCostEncrypted),x=!!t&&!!n[t];return(0,a.useEffect)(()=>{if(!t||!x||!c)return;let e=Date.now();if(l[t]){let s=e-l[t];if(sd(Math.random()),s);return()=>clearTimeout(e)}}let s=async()=>{(0,Y.Zb)({provider:c.provider.slug,value:await u})};i({...l,[t]:new Date().getTime()}),s();let n=setInterval(()=>s(),R);return()=>clearInterval(n)},[x,null==c||null==(s=c.provider)?void 0:s.id,t,o]),{hasSelectedDayOdds:x,setHasSelectedDayOdds:e=>{r(s=>t?{...s,[t]:e}:s)},resetOddsTracking:()=>{r({}),i({})}}};var F=s(37960),q=s(77988),H=s(52363),M=s(19944),Z=s(12047),W=s(92494),G=s(99326),V=s(53620),X=s(54409),$=s(21075),Q=s(58047);let K=(e,t,s,n)=>{let r=(null==t?void 0:t.count)||n;if(e&&r)return r*(96+36*!!s)+8*(r-1)},J=e=>{let{day:t,events:s,isLoading:r,uniqueTournament:l,seasonId:a,setHasSelectedDayOdds:d}=e,u=(0,P.uZ)();if(!r&&0===s.length)return null;let x=K(r,t,u,1);return(0,n.jsxs)(c.Zp,{children:[(0,n.jsx)(i.az,{style:{height:x?"".concat(x,"px"):void 0},children:(0,n.jsx)(c.BU,{children:s.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,n.jsx)($.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:d},e.id))})}),(0,n.jsx)(T.S,{uniqueTournament:l,seasonId:a,tab:Q.x.Matches,children:(0,n.jsxs)(i.so,{pb:"lg",pt:"sm",br:"md",bg:"surface.s1",justify:"center",align:"center",gap:"xs",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"primary.default",children:(0,n.jsx)(o.A,{id:"see_all_matches_button"})}),(0,n.jsx)(X.CCT,{fill:"primary.default"})]})})]})};var ee=s(45860),et=s(83260),es=s(69435),en=s(83318),er=s(42078),el=s(77235);function ei(e){let{uniqueTournamentId:t,seasonId:s,selectedTournamentId:l}=e,[i,a]=(0,et.A)(en.s4,"short"),{data:o,error:d}=(0,ee.Ay)(r.V3t.standings(t,s,r.lpv.Total));return d?null:o?(0,n.jsx)(es.P.Provider,{value:{seasonId:s,uniqueTournamentId:t,standings:o.standings,isNarrowLayout:!0,displayTypeOptions:void 0,displayType:i,setDisplayType:a,homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!1,tournamentId:l,hasHomeAwayStandings:!1,selectedSeason:void 0},children:(0,n.jsx)(el.A,{utId:t})}):(0,n.jsx)(er.d,{noSeasonPicker:!0,isNarrowLayout:!0})}var ea=s(97150),eo=s(10778),ed=s(90510);let ec=e=>{let{dateString:t,isSelected:s,onClick:r}=e,[a,d]=(0,l.c9)([]);(0,p.rF)(a,[s],()=>!!s);let c=t.split("-").map(Number),u=new Date(c[0],c[1]-1,c[2]);return(0,n.jsxs)(i.az,{ref:d,h:"4xl",minW:"5xl",bg:"surface.s1",onClick:s?void 0:r,cursor:s?void 0:"pointer",borderBottom:"[2px solid]",borderBottomColor:s?"primary.default":"[transparent]",style:{userSelect:"none"},flexShrink:0,pt:"xs",py:"xs",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.micro",textAlign:"center",whiteSpace:"nowrap",color:s?"primary.default":"neutrals.nLv3",mt:"xs",children:(0,E.cK)(u)?(0,n.jsx)(o.A,{id:"today"}):(0,n.jsx)(ed.XU,{value:u,weekday:"short"})}),(0,n.jsx)(p.EY,{display:"block",textStyle:"display.micro",textAlign:"center",whiteSpace:"nowrap",mt:"2xs",children:(0,n.jsx)(ed.XU,{value:u,day:"numeric",month:"short"})})]})},eu=e=>{let{selectedDate:t,setSelectedDate:s,dates:r}=e;return(0,n.jsx)(p.tR,{showButtons:"never",children:(0,n.jsx)(i.so,{bg:"surface.s1",minW:"fit",h:"4xl",justify:"space-between",children:r.length>0&&r.map(e=>(0,n.jsx)(ec,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>s(e)},e.date))})})};var ex=s(86679);let ep=e=>{let{data:t}=(0,ee.Ay)(r.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,E.UW)())),{hasCupTree:s}=(0,ex.A)({hasCupTree:{route:r.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[n,l]=(0,a.useState)(),i=(null==t?void 0:t.dailySeasonEvents)||[];(0,a.useEffect)(()=>{if(i.length){let e=new Date().getTime(),t=i[0],s=Number.MAX_VALUE;i.forEach(n=>{let r=new Date(n.date),l=Math.abs(e-r.getTime());(0,E.cK)(r)&&(t=n,s=0),l{let{tournament:t,uniqueTournament:s}=e,p=(0,Z.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:m,setSelectedDate:h,dates:j,showCupTree:g}=ep(t),{events:v,isLoading:y}=(0,M.Y)(t.id,null==m?void 0:m.date),{hasSelectedDayOdds:f,setHasSelectedDayOdds:b}=U(t.id,null==m?void 0:m.date),S=(0,ea.h)(v),k=(0,P.uZ)(),I=(0,l.YU)();return(0,a.useEffect)(()=>{window.scrollTo({left:0,top:0})},[t.id]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i.az,{position:"relative",children:[(0,n.jsx)(T.S,{uniqueTournament:s,seasonId:t.seasonId,children:(0,n.jsx)(O,{featuredType:t,uniqueTournament:s})}),(0,n.jsx)(d.B,{children:(0,n.jsx)(d.B.Title,{children:(0,n.jsx)(o.A,{id:"meta."+t.slug,defaultMessage:s.name})})}),(0,n.jsx)(i.az,{bg:"surface.s1",position:"sticky",zIndex:"sticky",elevation:"2",style:{top:p},children:(0,n.jsx)(eu,{selectedDate:m,setSelectedDate:h,dates:j})}),(0,n.jsx)(i.az,{bg:"surface.s0",children:(0,n.jsxs)(c.BU,{children:[(0,n.jsx)(J,{day:m,events:v,isLoading:y||!m,uniqueTournament:s,seasonId:t.seasonId,setHasSelectedDayOdds:b}),(0,n.jsx)(x.iN,{id:W.Rj.MOBILE_FEATURED_TOURNAMENT_TOP}),(0,n.jsx)(G.pk,{utIds:null,logData:{type:"banner",name:"fantasy",location:Y.XN.FeaturedTournamentTab}}),g?(0,n.jsx)(w,{featured:t,uniqueTournament:s}):(0,n.jsx)(ei,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:S}),(0,n.jsx)(u.Z,{entity:"unique-tournament",entityId:t.id,entityBackgroundImageUrl:r.V3t.image(t.id,!0),location:Y.XN.FeaturedTournamentTab})]})})]}),t.historyHighlightsEndYear&&(0,n.jsx)(eo.j,{uniqueTournament:s,tournament:t}),(0,n.jsx)(i.so,{justify:"center",align:"center",pt:t.historyHighlightsEndYear?"lg":"sm",pb:"4xl",px:"lg",gap:"sm",bg:"surface.s0",children:f&&(0,n.jsx)(q.A,{provider:k})}),(0,n.jsx)(H.hz,{uniqueTournamentId:s.id}),(0,n.jsx)(i.az,{position:"fixed",right:"0",left:"0",bottom:"0",zIndex:"bottomNavigation",style:{transition:"transform ".concat(F.x,"ms ease-out"),transform:"translateY(".concat(I===l.Dh.Down?0:-1*V.E,"px)")},children:(0,n.jsx)(x.iN,{id:W.Rj.MOBILE_FEATURED_TOURNAMENT_BOTTOM})})]})},eh=e=>(0,n.jsx)(em,{...e}),ej=(e,t)=>{let s=e.localeCompare(t.defaultFrom);return s<0?0:0===s?1:e.localeCompare(t.showCupTreeFrom||t.visibleTo)>=0?2:4},eg=e=>{let{selectedDate:t,tournament:s}=e,{data:l}=(0,ee.Ay)(r.V3t.details(s.id)),{data:a}=(0,ee.Ay)(r.tI9.seasonDatesWithEvents(s.seasonId,3600*(0,E.UW)()),{dedupingInterval:E.dp}),{events:o,isLoading:d}=(0,M.Y)(s.id,t),u=(0,P.uZ)(),{setHasSelectedDayOdds:x}=U(s.id,t),p=ej(t,s),m=K(d,null==a?void 0:a.dailySeasonEvents.find(e=>e.date===t),u,p);return(0,n.jsx)(c.Zp,{children:(0,n.jsxs)(c.BU,{children:[(0,n.jsx)(T.S,{uniqueTournament:null==l?void 0:l.uniqueTournament,seasonId:s.seasonId,onClick:()=>(0,Y.ke)({action:"click",location:"main_page",type:s.analyticsName}),children:(0,n.jsx)(i.az,{br:"lg",overflow:"hidden",children:(0,n.jsx)(O,{featuredType:s,uniqueTournament:null==l?void 0:l.uniqueTournament})})}),d&&Number(m)>0&&(0,n.jsx)(i.az,{style:{height:m?"".concat(m,"px"):void 0}}),o.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,n.jsx)($.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:x},e.id))]})})},ev=e=>{let{date:t,tournaments:s}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>(0,n.jsx)(eg,{tournament:e,selectedDate:t},e.id))})};var ey=s(79368)},66757:(e,t,s)=>{s.d(t,{e:()=>o});var n=s(6029),r=s(18612),l=s(76356),i=s(55729);function a(e){let{rows:t,rowHeight:s}=e;return(0,n.jsx)(r.D,{animate:!0,height:t*s,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let r=t*s;return(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("circle",{cx:20,cy:r+s/2,r:12}),(0,n.jsx)("rect",{x:40,y:r+8,width:"calc(100% - 48px)",height:s-16})]},r)})})}function o(e){let{rows:t=12}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.az,{hideBelow:"md",children:(0,n.jsx)(a,{rowHeight:32,rows:t})}),(0,n.jsx)(l.az,{hideFrom:"md",children:(0,n.jsx)(a,{rowHeight:48,rows:t})})]})}},77235:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(6029),r=s(21377),l=s(28349),i=s(21501),a=s(76356),o=s(55729),d=s(43072),c=s(48683),u=s(85568),x=s(47530),p=s(82287),m=s(69435),h=s(11033),j=s(65457),g=s(50433);function v(e){let{isSelected:t,onClick:s,children:r}=e,[o,d]=(0,i.c9)([]);return(0,l.rF)(o,[t],()=>!!t),(0,n.jsx)(a.az,{ref:d,children:(0,n.jsx)(a.so,{h:"2xl",minW:"[68px]",px:"sm",br:"sm",userSelect:"none",bg:t?"primary.highlight":"surface.s2",border:t?"1.5px solid {colors.primary.highlight}":"1.5px solid transparent",onClick:t?void 0:s,cursor:"pointer",justify:"center",align:"center",children:(0,n.jsx)(l.EY,{textStyle:"tab.secondary",color:t?"primary.default":"neutrals.nLv1",truncate:!0,textTransform:"uppercase",children:r})})})}function y(e){let{selectedIndex:t,setSelectedIndex:s}=e,{standings:i,isNarrowLayout:c,displayType:u,setDisplayType:p}=(0,o.useContext)(m.P),[h,y]=(0,d.Wx)({trackVisibility:!0,delay:100});return(0,n.jsxs)(a.az,{flexGrow:1,overflow:{md:"hidden"},children:[(0,n.jsxs)(a.so,{px:"sm",borderBottom:"1px solid {colors.neutrals.nLv4}",children:[(0,n.jsx)(l.tR,{buttonStyle:"solid",showButtons:"desktop",children:(0,n.jsxs)(a.so,{children:[(0,n.jsx)(a.so,{justify:"flex-start",gap:"lg",py:"sm",children:i.map((e,r)=>(0,n.jsx)(v,{isSelected:t===r,onClick:()=>s(r),children:(0,n.jsx)(x.__,{name:e.tournament.groupName||e.tournament.name})},e.id))}),(0,n.jsx)(a.az,{ref:h,w:"sm"})]})}),c&&(0,n.jsx)(a.so,{align:"center",ps:"sm",boxShadow:{_ltr:y?void 0:"[-3px 0 8px -7px {colors.neutrals.nLv1}]",_rtl:y?void 0:"[3px 0 8px -7px {colors.neutrals.nLv1}]"},children:(0,n.jsx)(j.A,{displayType:u,setDisplayType:p,isNarrowLayout:c})})]}),(0,n.jsx)(g.G,{tableName:i[t].name,type:r.lpv.Total})]})}function f(e){let{branding:t,utId:s}=e,{seasonId:r,standings:l,tournamentId:i}=(0,o.useContext)(m.P),[a,d]=(0,o.useState)(0);if((0,o.useEffect)(()=>{d(Math.max(l.findIndex(e=>e.tournament.id===i),0))},[r,i]),!l[a])return null;let x=l[a];return(0,n.jsxs)(c.Zp,{children:[(0,n.jsx)(u.U,{entityId:s,titleId:"tournament.standings",branding:t,location:"league_standings"}),(0,n.jsxs)(p.R,{standings:x,children:[(0,n.jsx)(y,{selectedIndex:a,setSelectedIndex:d}),(0,n.jsx)(h.c,{rows:x.rows,descriptions:x.descriptions,tieBreakingRule:x.tieBreakingRule,defaultOpenedFirstRules:!0})]})]})}},79387:(e,t,s)=>{s.d(t,{C:()=>n.C});var n=s(42525)},85568:(e,t,s)=>{s.d(t,{U:()=>a});var n=s(6029),r=s(28349),l=s(13030),i=s(51372);let a=e=>{let{branding:t,location:s,entityId:a,...o}=e,{isDesktop:d}=(0,r.$c)();return d&&t?(0,n.jsx)(l.A.Header,{...o,variant:"left-aligned",actionComponent:(0,n.jsx)(i.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:s,entityId:a})}):(0,n.jsx)(l.A.Header,{...o})}},97150:(e,t,s)=>{s.d(t,{h:()=>r});var n=s(21377);let r=e=>{var t;let s=null==e?void 0:e.filter(e=>e.status.type===n.XUj.InProgress),r=null==e?void 0:e.filter(e=>e.status.type===n.XUj.NotStarted&&e.hasEventPlayerStatistics);return[...((null==s?void 0:s.length)>0?s:r.length>0?r:e).map(e=>e.tournament.id).reduce((e,t)=>{var s;return e.set(t,(null!=(s=e.get(t))?s:0)+1),e},new Map)].reduce((e,t)=>t[1]>e[1]?t:e,[void 0,0])[0]}}}]);