!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]="27b11917-eefd-4667-8bbd-b5decb79215e",e._sentryDebugIdIdentifier="sentry-dbid-27b11917-eefd-4667-8bbd-b5decb79215e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,11929,14866,67536,76186,77262,89937],{173:(e,t,n)=>{n.d(t,{z:()=>p,K:()=>v});var a=n(6029),s=n(76356),r=n(55729),i=n(494),l=n(18970),o=n(79375),d=n(10174);let c=e=>{let{}=e;return(0,a.jsx)(d.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 u=n(50526),m=n(37455),h=n(72753);let x=e=>{let{provider:t}=e;return(0,a.jsx)(s.az,{position:"relative",px:"lg",py:"sm",children:(0,a.jsx)(o.A,{provider:t})})},p=e=>{let{showTailingRegulation:t,provider:n}=e,r=(0,i.d4)(h.LQ);return(0,i.d4)(m.BF)?null:"GR"===r&&t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.so,{justify:"center",children:(0,a.jsx)(u.A,{})}),(0,a.jsx)(x,{provider:n})]}):"AR"===r?(0,a.jsxs)(s.BJ,{gap:"sm",children:[(0,a.jsx)(x,{provider:n}),(0,a.jsx)(c,{})]}):(0,a.jsx)(x,{provider:n})},v=e=>{let{showTailingRegulation:t,provider:n}=e,{event:s}=(0,r.useContext)(l.y$),o=(0,i.d4)((0,m.Ul)(s)),d=(0,i.d4)((0,m.bS)(s)),c=(0,i.d4)(m.BF);return o||d||c?(0,a.jsx)(p,{showTailingRegulation:t,provider:n}):null}},308:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(6029),s=n(46787),r=n(22375),i=n(95669),l=n.n(i),o=n(947),d=n(58771),c=n(31830),u=n(88715),m=n(92208);let h=(e,t,n)=>e.type===s.YVh.Person?{"@type":"Person",name:e.name}:{"@type":"SportsTeam",sport:t.name,name:e.name,logo:s.cWY.image(e.id),url:"https://www.sofascore.com/team/".concat(t.slug,"/").concat(e.slug,"/").concat(e.id),sameAs:(0,m.WG)(e.id,n)};function x(e){let{event:t}=e,n=(0,o.A)(),i=(0,c.A)(),x=t.tournament.category.sport,p=r.pp(t.startTimestamp),v=((e,t)=>{var n,a,s,r,i;let l=(null==(n=e.tournament.uniqueTournament)?void 0:n.name)||e.tournament.name,o=(null==(a=e.season)?void 0:a.year)||(null==(s=e.season)?void 0:s.name)||t.getFullYear()||"",d=(e.tournament.roundPrefix||"")+" "+((null==(r=e.roundInfo)?void 0:r.name)||((null==(i=e.roundInfo)?void 0:i.round)?"Round ".concat(e.roundInfo.round):""));return"".concat(l," ").concat(o," ").concat(d.trim()).trim()})(t,p),g=t.tournament.category,f=t.tournament.uniqueTournament,j=1,b=[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(x.slug)}),item:"".concat(s.VTF).concat(u.z.getTranslatedRoute(i,"eventList",{sport:x.slug}).route)},{"@type":"ListItem",position:++j,name:n.formatMessage({id:g.slug}),item:"".concat(s.VTF).concat(u.z.getTranslatedRoute(i,"eventList.category",{sport:g.sport.slug,category:g.slug}).route)}];f&&b.push({"@type":"ListItem",position:++j,name:f.name,item:"".concat(s.VTF).concat(u.z.getTranslatedRoute(i,"uniqueTournament",{sport:f.category.sport.slug,category:f.category.slug,tournament:f.slug,id:f.id}).route)}),b.push({"@type":"ListItem",position:++j,name:"".concat(t.homeTeam.name," - ").concat(t.awayTeam.name)});let y={"@context":"https://schema.org","@type":"SportsEvent",name:"".concat(t.homeTeam.name," vs ").concat(t.awayTeam.name),eventStatus:(e=>{switch(e.status.type){case s.XUj.Canceled:case s.XUj.Suspended:return"EventCancelled";case s.XUj.Postponed:return"EventPostponed";default:return"EventScheduled"}})(t),description:v,homeTeam:h(t.homeTeam,x,i),awayTeam:h(t.awayTeam,x,i),startDate:p.toISOString(),sport:x.name};if(t.venue){var w,k,C;y.location=[{"@type":"Place",name:null==(w=t.venue)?void 0:w.stadium.name,maximumAttendeeCapacity:null==(k=t.venue)?void 0:k.stadium.capacity,address:{"@type":"PronounceableText"}}],t.venue.city.name&&y.location.concat({"@type":"Place",name:t.venue.city.name}),t.venue.country.alpha2&&y.location.concat({"@type":"Country",name:(0,m.lE)(null==(C=t.venue)?void 0:C.country.alpha2)})}else t.tournament.category.alpha2&&(y.location={"@type":"Country",name:(0,m.lE)(t.tournament.category.alpha2)});return(0,a.jsxs)(l(),{children:[(0,a.jsx)("script",{...(0,d.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:b})}),",",(0,a.jsx)("script",{...(0,d.QQ)(y)}),","]})}},1639:(e,t,n)=>{n.d(t,{l:()=>c,W:()=>u});var a=n(6029),s=n(46787),r=n(10174),i=n(62042),l=n(76356),o=n(83359);let d=(0,i.Fj)({base:{display:"inline-block",borderRadius:"md",px:"sm"},variants:{groundType:{[s.QWe.HardcourtIndoor]:{bg:"tennis.terrain.hardcourtIndoor"},[s.QWe.HardcourtOutdoor]:{bg:"tennis.terrain.hardcourtOutdoor"},[s.QWe.Hard]:{bg:"tennis.terrain.hardcourtOutdoor"},[s.QWe.CarpetIndoor]:{bg:"tennis.terrain.default"},[s.QWe.Grass]:{bg:"tennis.terrain.grass"},[s.QWe.Clay]:{bg:"tennis.terrain.clay"},[s.QWe.RedClay]:{bg:"tennis.terrain.clay"},[s.QWe.SyntheticOutdoor]:{bg:"tennis.terrain.default"},default:{bg:"tennis.terrain.default"}}}}),c=(0,l.I4)("div",d),u=e=>{let{groundType:t}=e;return t?(0,a.jsx)(c,{groundType:t,children:(0,a.jsx)(r.EY,{display:"block",textStyle:"assistive.default",h:"lg",color:"surface.s1",children:(0,a.jsx)(o.n,{id:t})})}):null}},5062:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(6029),s=n(94565),r=n(90248),i=n(52466);function l(e){let{isOpen:t,setIsOpen:n,title:l,...o}=e;return(0,a.jsxs)(s.so,{align:"center",px:"lg",py:"sm",h:"48px",gap:"sm",bg:"surface.s1",cursor:"pointer",overflow:"hidden",style:{userSelect:"none"},onClick:()=>n(e=>!e),...o,children:[(0,a.jsx)(i.baM,{}),(0,a.jsx)(s.EY,{as:"div",ellipsis:!0,font:"display.small",color:"onSurface.nLv1",style:{flexGrow:1},children:l||(0,a.jsx)(r.A,{id:"hockey_game_shotmap"})}),(0,a.jsx)(i.zQC,{icon:t?"chevron-up":"chevron-down",fill:"onSurface.nLv1"})]})}},14866:(e,t,n)=>{n.r(t),n.d(t,{LiveActionWidgetContainer:()=>A,default:()=>S});var a=n(6029),s=n(46787),r=n(10174),i=n(76356),l=n(55729),o=n(494),d=n(45860),c=n(46222),u=n(52466),m=n(90438),h=n(70344),x=n(94565),p=n(90248);let v=e=>{let{width:t,eventId:n,toggleButton:l,options:o,ref:d}=e;return(0,a.jsxs)(i.az,{ref:d,_fullscreen:{bg:"surface.s1"},children:[(0,a.jsx)(r.H3,{textAlign:"center",pt:"md",pb:"xs",children:(0,a.jsx)(p.A,{id:"event.liveAction"})}),(0,a.jsx)(i.az,{display:"table",m:"auto",py:"sm",children:(0,a.jsx)(i.az,{mx:"sm",children:(0,a.jsxs)(x.XI,{position:"relative",m:"auto",mb:"10px",children:[(0,a.jsx)("iframe",{src:(0,s.Lo9)(s.bnp.liveActionWidget(n,o)),style:{display:"block"},width:t,height:.49*t,frameBorder:"0",scrolling:"no"}),l]})})})]})};var g=n(62042);let f=(0,g.AH)({zIndex:"dropdown",bg:"surface.s1"}),j=(0,g.AH)({elevation:"2",position:"absolute",px:"lg",br:"lg",overflow:"hidden",cursor:"move"}),b=(0,g.AH)({mb:"md",br:"lg"}),y=(0,g.AH)({"& iframe":{pointerEvents:"none"}}),w=(0,i.I4)("div",{base:{position:"absolute",zIndex:"popover",_hover:{bg:"overlay.darken1"}}});function k(e,t,n,a){let s,r;function i(){document.onmouseup=null,document.onmousemove=null,n(!1),e&&e.clientWidth&&t(e.clientWidth)}function l(t){if(t.preventDefault(),t.stopPropagation(),e){let{horizontal:n,vertical:i,valence:l}=a;if(n){let n=e.offsetWidth+(t.clientX-s)*l;e.style.width="".concat(n,"px"),-1===l&&n>320&&n<800&&(e.style.left="".concat(e.offsetLeft+t.clientX-s,"px"))}if(i){let n=e.offsetHeight+(t.clientY-r)*l;e.style.height="".concat(n,"px"),-1===l&&n>520&&n<800&&(e.style.top="".concat(e.offsetTop+t.clientY-r,"px"))}s=t.clientX,r=t.clientY}}return function(e){e.preventDefault(),e.stopPropagation(),s=e.clientX,r=e.clientY,document.onmouseup=i,document.onmousemove=l,n(!0)}}let C=e=>{let{expanded:t,children:n}=e,s=(0,l.createRef)(),o=(0,l.createRef)(),d=(0,l.createRef)(),c=(0,l.createRef)(),u=(0,l.createRef)(),m=(0,l.createRef)(),h=(0,l.createRef)(),[x,p]=(0,l.useState)(0),[C,A]=(0,l.useState)(0),[S,_]=(0,l.useState)({x:0,y:0}),[T,R]=(0,l.useState)(!1),[I,M]=(0,l.useState)(!1),{mediaBreakpoint:z}=(0,r.$c)(),H=(0,l.useCallback)(e=>{e.preventDefault(),_({x:e.clientX,y:e.clientY}),R(!0)},[S,T]),B=(0,l.useCallback)(e=>{if(!T)return;let t=S.x-e.clientX,n=S.y-e.clientY;_({x:e.clientX,y:e.clientY});let a="".concat(e.currentTarget.offsetTop-n,"px"),s="".concat(e.currentTarget.offsetLeft-t,"px");e.currentTarget.style.top=a,e.currentTarget.style.left=s},[S,T]),F=(0,l.useCallback)(()=>{R(!1),document.body.style.pointerEvents=""},[S,T]);return(0,l.useEffect)(()=>{t&&(o.current&&(o.current.onmousedown=k(s.current,A,M,{vertical:!0,valence:-1})),d.current&&(d.current.onmousedown=k(s.current,A,M,{horizontal:!0,valence:1})),c.current&&(c.current.onmousedown=k(s.current,A,M,{vertical:!0,valence:1})),u.current&&(u.current.onmousedown=k(s.current,A,M,{horizontal:!0,valence:-1})),m.current&&(m.current.onmousedown=k(s.current,A,M,{horizontal:!0,vertical:!0,valence:1})),h.current&&(h.current.onmousedown=k(s.current,A,M,{horizontal:!0,vertical:!0,valence:-1}))),!t&&s.current&&(s.current.style.top="",s.current.style.left="",s.current.style.width="",s.current.style.height="")},[o.current,t]),(0,l.useEffect)(()=>{s.current&&(A(Math.min(640,document.body.offsetWidth)),x||p(s.current.clientWidth))},[s.current]),(0,a.jsxs)(i.az,{className:((e,t)=>(0,g.cx)(f,e&&j,!e&&b,t&&y))(t,I),ref:s,onMouseDown:H,onMouseMove:T?B:void 0,onMouseUp:F,style:t?{width:C,minWidth:320,maxWidth:800,minHeight:520,maxHeight:800,height:500}:void 0,children:[t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w,{ref:o,top:"0",left:"0",w:"100%",h:"xs",cursor:"ns-resize"}),(0,a.jsx)(w,{ref:d,top:"0",right:"0",w:"xs",h:"100%",cursor:"ew-resize"}),(0,a.jsx)(w,{ref:c,bottom:"0",left:"0",w:"100%",h:"xs",cursor:"ns-resize"}),(0,a.jsx)(w,{ref:u,top:"0",left:"0",w:"xs",h:"100%",cursor:"ew-resize"}),(0,a.jsx)(w,{ref:m,bottom:"0",right:"0",w:"md",h:"md",cursor:"se-resize"}),(0,a.jsx)(w,{ref:h,top:"0",left:"0",w:"md",h:"md",cursor:"nw-resize"})]}),(0,a.jsx)(i.az,{position:t?"absolute":void 0,bottom:t?"0":void 0,left:t?"0":void 0,width:t?"100%":void 0,height:t?"100%":void 0,children:l.Children.map(n,e=>e&&e.type===v?(0,l.cloneElement)(e,{...e.props,width:t?C-24:((e,t)=>{switch(t){case"lg":return 368;case"md":return 298;default:return e}})(x-24,z)}):e)})]})};function A(e){let{eventId:t,modal:n,useNativeFullscreen:x,children:p}=e,{data:g}=(0,d.Ay)([s.bnp.liveActionWidget(t),"HEAD"],{fetcher:h.n}),[f,j]=(0,l.useState)(!1),[b,y]=(0,l.useState)(320),w=(0,l.createRef)(),[k,A]=(0,l.useState)(!1),S=(0,o.d4)(e=>e.locale.selectedLocale||m.Xn),_=(0,o.d4)(e=>e.locale.geoIPAlpha2),{isMobile:T}=(0,r.$c)(),R=(0,l.useMemo)(()=>{if((0,s.S$s)())return!1;let e=document.documentElement,t=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen;return x&&!t},[x]),I=(0,l.useCallback)(e=>{if(e){let e=w&&w.current;if(!e)return;let a=e.requestFullscreen||e.webkitRequestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen;if(a){var t,n;(a=a.bind(e))(),null==(n=screen.orientation)||null==(t=n.lock)||t.call(n,"landscape")}}else{let e=document,t=e.exitFullscreen||e.webkitExitFullscreen||e.mozExitFullScreen||e.msExitFullscreen;t&&(t=t.bind(e))()}},[w,w.current]),M=(0,l.useCallback)(()=>{j(!f),x&&I(!f)},[w,w.current,f,j]);if((0,l.useEffect)(()=>{if(f&&w.current){let e=30;90===screen.orientation.angle&&(e=200),y(w.current.offsetWidth-e)}else y(320)},[w,w.current,f,y]),(0,l.useEffect)(()=>{x&&f&&w.current&&(k||(document.removeEventListener("fullscreenchange",e),document.addEventListener("fullscreenchange",e,{once:!0}),A(!0)));function e(){!0===document.fullscreen?(y(Math.max(window.screen.width,window.screen.height)),setTimeout(()=>{y(Math.max(window.screen.width,window.screen.height))},500)):!1===document.fullscreen&&(y(320),j(!1)),document.removeEventListener("fullscreenchange",e),A(!1)}},[w,w.current,f,y,k]),!g)return null;let z=(0,a.jsx)(v,{eventId:t,ref:w,width:b,toggleButton:R?null:(0,a.jsx)(i.ov,{backgroundColor:"overlay.darken2",position:"absolute",h:"2xl",w:"2xl",top:"sm",right:"sm",br:"50%",onClick:M,cursor:"pointer",_hover:{bg:"overlay.darken1"},children:(0,a.jsx)(u.L9n,{expanded:f,fill:"white"})}),options:{language:S,china:"cn"===_,mobile:T}});return n?(0,a.jsxs)(C,{expanded:f,setExpanded:j,children:[z,f&&p]}):(0,a.jsx)(c.Zp,{children:z})}let S=A},15538:(e,t,n)=>{n.d(t,{J:()=>a});var a=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}({})},17152:(e,t,n)=>{n.d(t,{D:()=>_});var a=n(6029),s=n(87827),r=n(46787),i=n(10174),l=n(62042),o=n(76356),d=n(55729),c=n(947),u=n(90248),m=n(52466),h=n(82536),x=n(31830),p=n(18970),v=n(15538),g=n(19991),f=n(94565),j=n(28446),b=n(41735);let y=(0,b.default)(f.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>{let t;return t=e.ratingPosition,(0,b.keyframes)(["from{left:0;}to{left:",";}"],t)}),w=["3.0","6.0","6.5","7.0","8.0","9.0"],k=(0,j.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function C(e){let{rating:t,format:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(f.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[w.map((e,t)=>(0,a.jsx)(f.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,g.Et)(e),h:"16"},e)),t&&(0,a.jsx)(y,{position:"absolute",top:"-2",ratingPosition:k(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,a.jsx)(f.so,{justify:"space-between",children:[...w,"10"].map(e=>(0,a.jsxs)(f.EY,{color:(0,g.Et)(e),font:"tab.secondary",children:[e,"sideBox"===n&&"10"!==e?"0":""]},e))})]})}var A=n(96688);let S=(0,l.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function _(e){let{type:t,rating:n=10,renderImage:l,children:g}=e,f=(0,c.A)(),[j,b]=(0,d.useState)(!1),{isDesktop:y}=(0,i.$c)(),w=(0,d.useContext)(p.Ws)===r.QCR.Football,k=(0,x.A)(),_=(0,A.y)(k),T="",R="box",I="sofascore_rating",M="";switch(t){case v.J.SpecificRatingPlayer:T="rating_general_text",M=[f.formatMessage({id:"rating_top_stats_general"}),f.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case v.J.AverageRatingTeam:T="average_team_rating_text",R="sideBox",M=[f.formatMessage({id:"rating_top_teams_general"}),f.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case v.J.AverageRating:T="average_team_rating_match",R="sideBox",I="average_sofascore_rating";break;case v.J.AverageRatingTeamLineups:T="average_team_rating_text",R="sideBox";break;case v.J.AverageRatingPlayer:T="average_player_rating_text",R="sideBox"}return(0,a.jsxs)(a.Fragment,{children:["function"==typeof g?(0,a.jsx)(a.Fragment,{children:g({isOpen:j,setIsOpen:b})}):null!=g?g:(0,a.jsx)(i.m_,{content:M,strategy:""!==M&&y?"hover":"controlled",isVisible:!1,children:(0,a.jsx)(i.K0,{mx:"xs",variant:"clear",onClick:()=>{b(!0)},children:(0,a.jsx)(m.G_L,{fill:"onSurface.nLv1"})})}),(0,a.jsxs)(h.A,{header:(0,a.jsx)(i.H3,{p:"lg",textStyle:"display.large",children:(0,a.jsx)(u.A,{id:I})}),isOpen:j,setIsOpen:b,footer:(0,a.jsx)(o.so,{justify:"flex-end",m:w?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,a.jsx)(i.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{b(!1)},variant:y?"clear":void 0,children:(0,a.jsx)(u.A,{id:"ok_got_it_button"})})}),children:[(0,a.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:w?void 0:{mdDown:"2xl"},children:[T&&(0,a.jsx)(u.A,{id:T,values:{break:e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]})}}),(0,a.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,a.jsx)(o.az,{className:"sideBox"===R?S:void 0,children:(0,a.jsx)(s.G,{size:"xl",rating:n,format:R})}),null==l?void 0:l({size:40,ml:"lg"})]}),(0,a.jsx)(C,{rating:n,format:R})]}),w&&(0,a.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,a.jsxs)(i.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:_,target:"_blank",onClick:()=>{b(!1)},children:[(0,a.jsx)(u.A,{id:"rating_learn_more_button"}),(0,a.jsx)(m.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}_.type=v.J},17285:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ni});var a=n(6029),s=n(46787),r=n(22375),i=n(95669),l=n.n(i),o=n(55729),d=n(947),c=n(18970),u=n(90438),m=n(67086),h=n(94164),x=n(47550),p=n(15946),v=n(41397),g=n(52763),f=n(78767),j=n(73232),b=n(95084),y=n(76356),w=n(46222),k=n(20945),C=n(2920),A=n(56132),S=n(14831),_=n(11996),T=n(19621),R=n(494),I=n(45860),M=n(39975),z=n(94822),H=n(31591),B=n(98408),F=n(93053),E=n(15220),P=n(95404),L=n(70344),D=n(89937),O=n(60080),Q=n(32137),K=n(49069),W=n(82827),G=n(173),U=n(53198),Y=n(24534),q=n(37455);let V=()=>{let e=(0,R.d4)(q._I),t=(0,Y.PW)(),n=(0,R.d4)(q.SM);return e&&t&&(null==n?void 0:n.length)?(0,a.jsxs)(w.Zp,{children:[(0,a.jsx)(w.Zp.Header,{titleId:"odds"}),(0,a.jsx)(U.i,{providers:n,placement:"desktop"})]}):null};var N=n(75837),X=n(76186),$=n(68789),J=n(60682),Z=n(92099),ee=n(60067),et=n(17423),en=n(12157),ea=n(30789),es=n(26567),er=n(66022),ei=n(72753),el=n(55878),eo=n(31139),ed=n(73844),ec=n(66301);n(8968);var eu=n(62235),em=n(51219),eh=n(57724),ex=n(14866),ep=n(60962),ev=n(88037),eg=n(86931),ef=n(41586),ej=n(26431),eb=n(88120),ey=n(69408),ew=n(94976),ek=n(67536),eC=n(30121),eA=n(35676),eS=n(63561);function e_(e){var t,n,r,i,l,d;let{hasCommentary:u}=e,{event:m,leftTeam:h,rightTeam:x}=(0,o.useContext)(c.y$),p=m.status.type===s.XUj.NotStarted,v=m.status.type===s.XUj.InProgress,f=m.tournament.category.sport.slug,j=f===s.QCR.ESports&&(0,eS.f2)(m.tournament.category.id),y=(0,R.d4)(q.BF),w=(0,R.d4)((0,q.bS)(m)),k=(0,$.F0)(m),[C]=(0,J.Z)(k,m.status.type===s.XUj.InProgress),A={fetcher:L.n,revalidateOnFocus:!0,refreshInterval:6e4*(m.status.type===s.XUj.NotStarted||m.status.type===s.XUj.InProgress)},S=!y&&w&&!!C,{data:_}=(0,I.Ay)(S?[s.npy.recommendedPrematchTopVoted(C,f),"HEAD"]:null,A),U=(0,o.useRef)(null),Y=(0,T.hX)(),e_=u&&f!==s.QCR.IceHockey,eT=u&&f===s.QCR.IceHockey,eR=(0,R.d4)(q.qW),eI=(0,R.d4)(ei.LQ),eM=!!eI&&(0,eS.Q9)(eI),ez=v&&!!eM&&eR,eH=ec.I.includes(f)&&m.status.type===s.XUj.NotStarted;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eo.i,{eventLocation:"editor_event",nickname:null==(t=m.eventEditor)?void 0:t.name,userId:null==(n=m.eventEditor)?void 0:n.id,hasStarted:m.status.type!==s.XUj.NotStarted}),(0,a.jsx)(ed.N,{event:m}),(0,a.jsx)(ey.R,{}),(0,a.jsx)(N.S,{countryOddsProvider:k,event:m,fallback:{PT:_?(0,a.jsx)(K.U,{onClick:()=>{var e;return null==U||null==(e=U.current)?void 0:e.scrollIntoView({behavior:"smooth"})},isElevated:!0}):(0,a.jsx)(a.Fragment,{})},children:(0,a.jsx)(W.f9,{eventId:m.id,isLive:v})}),(0,a.jsx)(ev.y,{}),(0,a.jsx)(eb.z,{}),(0,a.jsx)(ea.m2,{eventId:m.id,tournamentId:m.tournament.id,roundId:null==(r=m.roundInfo)?void 0:r.round,type:"single",screen:"desktop",isLive:v,location:ea.D_.EventPage},m.id),(0,a.jsx)(eA.C,{}),(0,a.jsx)(ej.f,{}),(0,a.jsx)(eg.f,{event:m}),f!==s.QCR.Football&&(0,a.jsx)(el.E,{event:m,hideCta:!0}),f===s.QCR.Cricket&&(0,a.jsx)(E.x,{}),eh.jf.includes(f)?null:(0,eh.Di)(f)?(0,a.jsx)(eu.A,{event:m}):(0,a.jsx)(em.w,{event:m}),f===s.QCR.Football&&(0,a.jsx)(el.E,{event:m,hideCta:!0}),eh.rt.includes(f)&&(0,a.jsx)(Z.A,{event:m}),j&&(0,a.jsx)(F.A,{event:m}),(0,a.jsx)(er.A,{placement:g.Mx.DesktopEventPage,event:m}),(0,a.jsx)(B.A,{}),f===s.QCR.Tennis&&(0,a.jsx)(ew.J,{}),(0,a.jsx)(en.y,{location:b.XN.EventScreen}),f===s.QCR.Tennis&&p&&(0,a.jsx)(eC.p,{}),(0,a.jsx)(V,{}),eT&&(0,a.jsx)(M.A,{persist:!0,children:(0,a.jsx)(D.default,{})}),e_&&(0,a.jsx)(ek.default,{}),!Y&&ez&&(0,a.jsx)(ex.LiveActionWidgetContainer,{eventId:m.id,modal:!0,children:(0,a.jsx)(W.f9,{eventId:m.id,isLive:v})}),(0,a.jsx)(O.dq,{eventId:m.id}),_&&(0,a.jsx)(X.default,{showHeader:!0,ref:U}),(0,a.jsx)(ef.s,{eventId:m.id}),(0,a.jsx)(et.Y,{page:{location:b.XN.EventScreen,entity:m}}),f!==s.QCR.MMA&&(0,a.jsx)(es.d,{eventId:m.id,type:s.IAy.Event,startTimestamp:m.startTimestamp}),f===s.QCR.MMA&&(0,a.jsx)(M.A,{persist:!0,children:(0,a.jsx)(Q.A,{homeTeam:m.homeTeam,awayTeam:m.awayTeam})}),(0,a.jsx)(ee._,{page:{location:b.XN.EventScreen,entity:m}}),(0,a.jsx)(ep.W,{event:m,showTournamentInfo:j}),eH&&(0,a.jsx)(ec.x,{eventId:m.id,leftTeam:h,rightTeam:x}),(0,a.jsx)(P.pk,{utIds:[null==(i=m.tournament.uniqueTournament)?void 0:i.id]}),(null==(l=m.tournament.uniqueTournament)?void 0:l.showBanner)&&(0,a.jsx)(z.Z,{entity:"unique-tournament",entityId:m.tournament.uniqueTournament.id,location:b.XN.EventScreen,entityBackgroundImageUrl:[s.cWY.image(h.id),s.cWY.image(x.id)]}),(null==(d=m.eventEditor)?void 0:d.name)&&(0,a.jsx)(H.s,{}),(0,a.jsx)(G.K,{provider:k})]})}var eT=n(90248),eR=n(88658),eI=n(60475),eM=n(64006),ez=n(4917),eH=n(9081),eB=n(99306),eF=n(88505),eE=n(30774);let eP=e=>{var t;let{event:n,sport:s,children:r}=e;return u.tt.includes(s)||!n.tournament.uniqueTournament?(0,a.jsx)(eM.O5,{tournament:n.tournament,children:r}):(0,a.jsx)(eM.tQ,{tournament:n.tournament.uniqueTournament,seasonId:null==(t=n.season)?void 0:t.id,children:r})},eL=(0,o.memo)(e=>{let{event:t,leftTeam:n,rightTeam:r}=e,{meta:i,seoContent:l}=(0,o.useContext)(ez.x),d=t.tournament.category.sport.slug,c=d===s.QCR.Football,m=d===s.QCR.Tennis,h=(0,eE.w)(t.tournament);return(0,a.jsxs)(eR.B,{children:[(0,a.jsx)(eR.B.Item,{children:(0,a.jsx)(eM.di,{translatedParams:{sport:d},children:(0,a.jsx)(eB.o,{sportSlug:d})})}),!u.tt.includes(d)&&(0,a.jsx)(eR.B.Item,{children:(0,a.jsx)(eM.Z6,{category:t.tournament.category,children:(0,a.jsx)(eI.md,{...t.tournament.category,uniqueTournament:t.tournament.uniqueTournament})})}),(0,a.jsx)(eR.B.Item,{children:(0,a.jsxs)(eP,{event:t,sport:d,children:[h,t.roundInfo&&(0,a.jsxs)("span",{children:[", ",(0,a.jsx)(eH.DT,{round:t.roundInfo})]})]})}),(0,a.jsx)(eR.B.Title,{children:(null==l?void 0:l.heading)||(null==i?void 0:i.title)||(0,a.jsx)(eT.A,{id:c?"headerTitle.event-v3":m?"headerTitle.event.tennis":"headerTitle.event",values:{home:(0,a.jsx)("bdi",{children:(0,a.jsx)(eF.Rm,{team:n})}),away:(0,a.jsx)("bdi",{children:(0,a.jsx)(eF.Rm,{team:r})})}})})]})},(e,t)=>e.event.id===t.event.id&&e.leftTeam===t.leftTeam&&e.rightTeam===t.rightTeam);var eD=n(10174),eO=n(71024),eQ=n.n(eO),eK=n(77708),eW=n(74664),eG=n(26542);let eU=()=>{let e=(0,eW.o)();return(0,a.jsxs)(w.Zp,{children:[(0,a.jsx)(w.Zp.Header,{titleId:e===s.QCR.Cricket?"squad":eG.bU.includes(e)?"boxScore":"players",values:{gender:s.YT8.Male},as:"h2"}),(0,a.jsx)("div",{style:{width:687}})]})},eY=eQ()(()=>Promise.resolve().then(n.bind(n,54850)),{loadableGenerated:{webpack:()=>[54850]},loading:()=>(0,a.jsx)(eU,{})}),eq=eQ()(()=>n.e(30302).then(n.bind(n,30302)),{loadableGenerated:{webpack:()=>[30302]},loading:()=>(0,a.jsx)(eU,{})});function eV(){let{event:e}=(0,o.useContext)(c.y$),t=e.tournament.category.sport,{lineups:n,isLoading:r}=(0,eK.Ir)({jerseyStyle:"fancy"});return!n||r?null:(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.BoxScore,children:t.slug===s.QCR.Rugby?(0,a.jsx)(y.az,{roundedBottom:"lg",overflow:"hidden",mb:"md",children:(0,a.jsx)(eq,{})}):(0,a.jsx)(eY,{lineups:n})})}let eN=eQ()(()=>n.e(88947).then(n.bind(n,88947)),{loadableGenerated:{webpack:()=>[88947]},ssr:!1,loading:()=>(0,a.jsx)(y.az,{h:"[935px]"})});function eX(){return(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Games,children:(0,a.jsx)(eN,{})})}let e$=eQ()(()=>Promise.all([n.e(3074),n.e(43738),n.e(77552)]).then(n.bind(n,52192)),{loadableGenerated:{webpack:()=>[52192]},ssr:!1,loading:()=>(0,a.jsx)(y.az,{h:"[1280px]"})});function eJ(){let e=(0,eW.o)();return(0,a.jsx)(eD.tU.Panel,{tabKey:e===s.QCR.MMA?A.x.Fights:A.x.Matches,children:(0,a.jsx)(e$,{})})}var eZ=n(52887);let e0=eQ()(()=>Promise.all([n.e(14591),n.e(96175),n.e(79210)]).then(n.bind(n,99866)),{loadableGenerated:{webpack:()=>[99866]},loading:()=>(0,a.jsx)(eZ.A,{})});function e1(){let{event:e}=(0,o.useContext)(c.y$),t=e.tournament.uniqueTournament,{sport:n}=e.tournament.category;return t&&e.season&&e.tournament.competitionType===s.wGu.Cup?(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Knockout,children:(0,a.jsx)(e0,{uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:e.season.id,sport:n.slug})}):null}let e2=eQ()(()=>Promise.resolve().then(n.bind(n,28105)),{loadableGenerated:{webpack:()=>[28105]},ssr:!1,loading:()=>(0,a.jsx)(eK.Vj,{})});function e9(){let{event:e}=(0,o.useContext)(c.y$),t=e.tournament.category.sport.slug,n=eG.Bx.includes(t)&&!!e.hasEventPlayerStatistics;return(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Lineups,children:(0,a.jsx)(e2,{showPlayerStatistics:n})})}var e5=n(53255),e3=n(69909),e8=n(32019);let e4=(0,o.createContext)(20),e6=eQ()(()=>Promise.all([n.e(56591),n.e(14632),n.e(35597),n.e(32935),n.e(43663)]).then(n.bind(n,66044)),{loadableGenerated:{webpack:()=>[66044]},ssr:!1,loading:()=>(0,a.jsx)(e4.Consumer,{children:e=>(0,a.jsx)(e3.d,{numberOfRows:e})})});function e7(e){let{numberOfStandingsRows:t}=e,{event:n,leftTeam:s,rightTeam:r}=(0,o.useContext)(c.y$),i=(0,e8.Z)(n,"standings");return(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Standings,children:(0,a.jsxs)(y.az,{roundedBottom:"lg",overflow:"hidden",children:[i&&(0,a.jsx)(e5.O,{entityId:n.id,branding:i,bannerText:i.standingsText,location:"event_standings"}),!!n.season&&(0,a.jsx)(e4,{value:null!=t?t:20,children:(0,a.jsx)(e6,{tournament:n.tournament,seasonId:n.season.id,homeTeamId:s.id,awayTeamId:r.id,loaderNumberOfRows:t})})]})})}let te=()=>(0,a.jsx)(y.az,{h:"[1000px]"}),tt=eQ()(()=>Promise.all([n.e(14264),n.e(5842),n.e(96074)]).then(n.bind(n,49842)),{loadableGenerated:{webpack:()=>[49842]},ssr:!1,loading:()=>(0,a.jsx)(y.az,{h:"[864px]"})}),tn=eQ()(()=>Promise.resolve().then(n.bind(n,14769)),{loadableGenerated:{webpack:()=>[14769]},ssr:!1,loading:()=>(0,a.jsx)(te,{})}),ta=eQ()(()=>n.e(32741).then(n.bind(n,32741)),{loadableGenerated:{webpack:()=>[32741]},ssr:!1,loading:()=>(0,a.jsx)(te,{})}),ts=eQ()(()=>Promise.all([n.e(46432),n.e(87770)]).then(n.bind(n,87770)),{loadableGenerated:{webpack:()=>[87770]},ssr:!1,loading:()=>(0,a.jsx)(te,{})}),tr=()=>{let e=(0,eW.o)(),{event:t}=(0,o.useContext)(c.y$);switch(e){case s.QCR.MMA:return(0,a.jsx)(tn,{});case s.QCR.Cricket:return(0,a.jsx)(ta,{});default:if(t.status.type===s.XUj.NotStarted)return(0,a.jsx)(tt,{});return(0,a.jsx)(ts,{})}};function ti(){return(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Statistics,children:(0,a.jsx)(tr,{})})}var tl=n(26208),to=n(59721),td=n(73498),tc=n(85658),tu=n(52466),tm=n(36882),th=n(70251),tx=n(59777),tp=n(1639),tv=n(83359),tg=n(82346),tf=n(64987),tj=n(26201),tb=n(94093),ty=n(94565);function tw(e){var t,n;let{channelId:r,type:i,eventId:l}=e,{data:o,isValidating:d}=(0,I.Ay)(s.RMf.eventChannelVotes(r,i,l));if(d)return(0,a.jsx)(y.az,{h:"2xl",pb:"2xs"});if(!o)return null;let c=o.tvChannelVotes.tvChannel.name,u=null!=(t=o.tvChannelVotes.upvote)?t:0,m=null!=(n=o.tvChannelVotes.downvote)?n:0;return(0,a.jsxs)(y.so,{direction:"row",align:"center",gap:"lg",children:[(0,a.jsx)(tu.ft6,{fill:"onSurface.nLv3",w:16,h:16}),(0,a.jsxs)(y.so,{direction:"column",gap:"2xs",children:[(0,a.jsx)(eD.EY,{children:c}),(0,a.jsxs)(y.so,{gap:"xs",children:[(0,a.jsxs)(y.so,{align:"center",gap:"xs",children:[(0,a.jsx)(tu.URl,{fill:"success.default"}),(0,a.jsx)(eD.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:u})]}),(0,a.jsxs)(y.so,{align:"center",gap:"xs",children:[(0,a.jsx)(tu.fHS,{fill:"error.default"}),(0,a.jsx)(eD.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:m})]})]})]})]})}function tk(e){let{channelIds:t,type:n,eventId:r}=e,i=(0,d.A)(),l=t.length>1,o=t.length-1,[c,...u]=t,{data:m}=(0,I.Ay)(s.RMf.eventChannelVotes(c,n,r));return m?(0,a.jsxs)(y.so,{align:"center",gap:"xs",px:"sm",children:[(0,a.jsxs)(y.so,{align:"center",gap:"xs",children:[(0,a.jsx)(tu.ft6,{fill:"onSurface.nLv3",w:16,h:16}),(0,a.jsx)(eD.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:m.tvChannelVotes.tvChannel.name})]}),l&&(0,a.jsx)(ty.AM,{closeOnOutsideClick:!0,trigger:(0,a.jsx)(y.I4.button,{"aria-label":i.formatMessage({id:"show_more"}),p:"xs",br:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},_active:{bg:"surface.s0"},children:(0,a.jsx)(y.so,{bg:"action.primary.default",br:"md",h:"lg",px:"sm",children:(0,a.jsxs)(eD.EY,{textStyle:"assistive.default",color:"surface.s1",children:["+",o]})})}),children:(0,a.jsx)(y.az,{position:"absolute",zIndex:"popover",top:"xl",right:"0",w:"[200px]",children:(0,a.jsxs)(y.so,{direction:"column",gap:"lg",elevation:"3",bg:"surface.sp",br:"sm",p:"lg",children:[(0,a.jsx)(eD.EY,{textStyle:"display.small",children:(0,a.jsx)(eT.A,{id:"tv_channels"})}),(0,a.jsx)(y.so,{direction:"column",gap:"lg",children:u.map(e=>(0,a.jsx)(tw,{channelId:e,type:n,eventId:r},e))})]})})})]}):null}function tC(e){let{eventId:t,type:n}=e,r=(0,R.d4)(ei.LQ),{data:i}=(0,I.Ay)(r?s.RMf.eventCountryChannels(n,t):null);if(!r||!i)return null;let l=i.countryChannels[r];return r in i.countryChannels&&(null==l?void 0:l.length)?(0,a.jsx)(tk,{channelIds:l,type:n,eventId:t}):null}var tA=n(27477);let tS=()=>{let{event:e,leftTeam:t,rightTeam:n}=(0,o.useContext)(c.y$),r=(0,d.A)(),i=e.tournament.uniqueTournament,l=e.venue,u=e.status.type===s.XUj.NotStarted,m=u&&!!e.finalResultOnly;return(0,a.jsx)(w.Zp,{children:(0,a.jsxs)(y.az,{children:[(0,a.jsx)(y.so,{position:"absolute",top:"lg",right:"lg",gap:"lg",children:(0,a.jsxs)(tc.hD,{children:[(0,a.jsx)(th.h,{id:e.id,type:tm.b.Event,location:tm.y.Header,tournament:e.tournament,leftTeam:t,rightTeam:n,menuPosition:"bottom",children:e=>{let{onClick:t,disabled:n,isFollowed:s,isOpen:i}=e;return(0,a.jsx)(eD.m_,{content:r.formatMessage({id:"remove_from_favourites"}),strategy:"hover",disabled:!s||s&&i,children:(0,a.jsx)(td.u,{onClick:t,disabled:n,variant:s?"compact":"primary",label:r.formatMessage({id:"button_favourite"}),children:(0,a.jsx)(tu.zQC,{icon:s?"follow-active":"follow-default"})})})}}),(0,a.jsx)(tj.b,{isInDesktopHeader:!0}),u&&!m&&(0,a.jsx)(eD.m_,{content:r.formatMessage({id:"add_to_calendar"}),strategy:"hover",children:(0,a.jsx)(tf.A,{name:"".concat(e.homeTeam.name," - ").concat(e.awayTeam.name),startDate:e.startTimestamp,isClickable:!0,children:(0,a.jsx)(td.u,{label:r.formatMessage({id:"add_to_calendar"}),children:(0,a.jsx)(tu.E8x,{style:{width:24,height:24}})})})})]})}),(0,a.jsx)(y.az,{pt:"sm",children:(0,a.jsx)(tA.A,{isWide:!0,disableFollow:!0})}),(0,a.jsxs)(y.so,{justify:"center",px:"lg",pb:"md",pt:"sm",children:[(0,a.jsx)(tb.g,{isInDesktopHeader:!0}),i&&(0,a.jsx)(eM.tQ,{tournament:i,children:(0,a.jsxs)(y.so,{gap:"xs",align:"center",_hover:{bg:"surface.s2"},px:"sm",py:"xs",br:"lg",children:[(0,a.jsx)(to.e,{id:i.id,size:16}),(0,a.jsx)(eD.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:(0,a.jsx)(tg.O,{uniqueTournament:i})})]})}),(null==l?void 0:l.stadium.name)&&(0,a.jsx)(tx.A,{venue:l,children:(0,a.jsxs)(y.so,{gap:"xs",align:"center",_hover:{bg:l.hidden?void 0:"surface.s2"},px:"sm",py:"xs",br:"lg",children:[(0,a.jsx)(tu.fRZ,{fill:"onSurface.nLv3",w:"16px",h:"16px"}),(0,a.jsx)(eD.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:l.stadium.name})]})}),e.groundType&&(0,a.jsxs)(y.so,{gap:"xs",align:"center",px:"sm",py:"xs",br:"lg",children:[(0,a.jsx)(tp.l,{w:"lg",h:"lg",groundType:e.groundType}),(0,a.jsx)(eD.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:(0,a.jsx)(tv.n,{id:e.groundType})})]}),(0,a.jsx)(tC,{eventId:e.id,type:s.IAy.Event})]})]})})};var t_=n(42051);let tT=eQ()(()=>Promise.all([n.e(85581),n.e(9045)]).then(n.bind(n,31426)),{loadableGenerated:{webpack:()=>[31426]},ssr:!1,loading:()=>(0,a.jsx)(y.az,{h:"[1000px]"})});function tR(){return(0,a.jsx)(eD.tU.Panel,{tabKey:A.x.Scorecard,children:(0,a.jsx)(tT,{})})}let tI=[s.QCR.Football,s.QCR.Basketball];function tM(e,t,n,a,r){let i=!!n&&!!a&&!!r;return e===s.QCR.Basketball?i?s.cWY.seasonRanks(t,n,a,r):void 0:i?s.cWY.seasonStatistics(t,n,a,r):a?s.cWY.yearStatistics(t,String(a)):void 0}var tz=n(93819),tH=n(61209),tB=n(48342);function tF(){let{hasTabs:e}=(0,tz.gY)();return e?(0,a.jsx)(y.az,{children:(0,a.jsx)(tB.A,{})}):null}function tE(e){let{event:t}=e;return(0,a.jsx)(tz.Ad,{event:t,children:(0,a.jsxs)(eD.tU.Panel,{tabKey:A.x.AiInsights,children:[(0,a.jsx)(tH.K,{}),(0,a.jsx)(tF,{}),(0,a.jsx)(tH.M,{event:t})]})})}function tP(e){var t;let{activeTab:n,setActiveTab:r,initialStandingsProperties:i}=e,l=(0,o.useContext)(c.y$),{event:d,leftTeam:m,rightTeam:h}=l,x=d.tournament.category.sport,p=d.tournament.category.sport.slug,v=p===s.QCR.MMA,f=p===s.QCR.Tennis,{hasWinProbability:j}=(0,_.A)({hasWinProbability:{route:s.bnp.winProbability(d.id),skipCheck:d.status.type!==s.XUj.InProgress}}),{hasGamesTab:b,hasBoxScoreTab:T,hasLineupsTab:R,hasStatisticsTab:I,hasScorecardTab:M,hasCommentaryTab:z,hasCricketIncidents:H,hasKnockoutTab:B,hasStandingsTab:F,hasBasketballPregameTopPlayers:E,hasAiInsights:P}=(0,t_.A)(d),L=(()=>{var e,t;let n=(0,eW.o)(),{event:a,leftTeam:r,rightTeam:i}=(0,o.useContext)(c.y$),l=null==(e=a.tournament.uniqueTournament)?void 0:e.id,d=null==(t=a.season)?void 0:t.id,u=a.seasonStatisticsType,m=a.status.type===s.XUj.NotStarted&&tI.includes(n),h=!!l&&!!d&&!!u,x=tM(n,r.id,l,d,u),p=tM(n,i.id,l,d,u),{hasLeftStatistics:v,hasRightStatistics:g,hasLeftTopPlayers:f,hasRightTopPlayers:j}=(0,_.A)({hasLeftStatistics:{route:x,skipCheck:!m},hasRightStatistics:{route:p,skipCheck:!m},hasLeftTopPlayers:{route:h?s.cWY.topPlayers(r.id,l,d,u):void 0,skipCheck:!m},hasRightTopPlayers:{route:h?s.cWY.topPlayers(i.id,l,d,u):void 0,skipCheck:!m}},[a.id,h]);return!!v&&!!g&&!!f&&!!j})(),D=!!I||!!H||!!j||L,O=[{tabKey:A.x.Games,item:"games",values:{sport:s.QCR.ESports},isHidden:!b},{tabKey:A.x.Scorecard,item:"cricket.scorecard",isHidden:!M},{tabKey:A.x.BoxScore,item:"boxScore",isHidden:!T},{tabKey:A.x.Lineups,item:p===s.QCR.Cricket?"squads":"lineups",isHidden:!R||E},{tabKey:A.x.AiInsights,item:"tab_ai_insights",isHidden:!P},{tabKey:A.x.Statistics,item:"statistics",isHidden:!D},{tabKey:A.x.Standings,item:"app.standings",isHidden:!F},{tabKey:v?A.x.Fights:A.x.Matches,item:v?"fights_mma":"head_to_head_short",values:v?void 0:{sport:(0,S.ap)(p)}},{tabKey:A.x.Knockout,item:f?"draw":"knockout",isHidden:!B}],Q=O.some(e=>!e.isHidden&&e.tabKey===n)?n:null==(t=O.find(e=>!e.isHidden))?void 0:t.tabKey;return(0,a.jsx)(c.Ws,{value:x.slug,children:(0,a.jsxs)(c.y$,{value:{...l,location:c.cb.EventPage},children:[(0,a.jsx)(eL,{event:d,leftTeam:m,rightTeam:h}),(0,a.jsx)(tS,{}),(0,a.jsxs)(k.xA,{py:"md",gap:"md",children:[(0,a.jsxs)(k.fv,{flexGrow:1,children:[(0,a.jsx)(e_,{hasCommentary:!!z}),(0,a.jsx)(g.Aq,{route:u.xW.Event})]}),(0,a.jsxs)(k.fv,{flexGrow:2,children:[(0,a.jsx)(w.Zp,{children:Q&&(0,a.jsx)(w.WC,{variant:"square",children:(0,a.jsx)(y.so,{w:"100%",overflow:"hidden",br:"lg",children:(0,a.jsxs)(C.A,{id:d.id,location:C.C.EventPage,eventStatusType:d.status.type,initialTabKey:Q,tabs:O,customControls:[Q,r],children:[b&&(0,a.jsx)(eX,{}),M&&(0,a.jsx)(tR,{}),T&&(0,a.jsx)(eV,{}),R&&(0,a.jsx)(e9,{}),P&&(0,a.jsx)(tE,{event:d}),D&&(0,a.jsx)(ti,{}),F&&(0,a.jsx)(e7,{numberOfStandingsRows:null==i?void 0:i.numberOfRows}),(0,a.jsx)(eJ,{}),B&&(0,a.jsx)(e1,{})]})})})}),(0,a.jsx)(tl.I,{event:d})]})]})]})})}var tL=n(23246),tD=n(75467),tO=n(13705),tQ=n(75289),tK=n(29156),tW=n(95224),tG=n(11059),tU=n(61837),tY=n(92852),tq=n(18749),tV=n(33396),tN=n(97563),tX=n(43601),t$=n(87448),tJ=n(54369),tZ=n(21795),t0=n(96662),t1=n(15361),t2=n(29595);function t9(e){let{activeTab:t,setActiveTab:n}=e,{event:r,leftTeam:i,rightTeam:l}=(0,o.useContext)(c.y$),d=r.tournament.category.sport.slug,u=r.status.type===s.XUj.InProgress,m=d===s.QCR.Football,h=d===s.QCR.MMA,x=d===s.QCR.Basketball,p=d===s.QCR.Tennis,v=(0,eS.BC)(r.status),{hasCricketIncidents:f,hasScorecardTab:j,hasOversTab:b,hasGraphsTab:w,hasCommentaryTab:k,hasGamesTab:_,hasBoxScoreTab:T,hasLineupsTab:R,hasStatisticsTab:I,hasPlayByPlayTab:M,hasStandingsTab:z,hasMatchesTab:H,hasFeaturedOdds:B,hasAdditionalOddsTab:F,hasWinningOdds:E,hasFeaturedOddsTab:P,hasMediaTab:L,isSpecialEsports:D,hasRecommendedPrematchOdds:O,hasKnockoutTab:Q,hasAiInsights:K}=(0,t_.A)(r),W=[{tabKey:A.x.Details,item:"details"},{tabKey:A.x.AiInsights,item:"tab_ai_insights",isHidden:!K},{tabKey:A.x.AdditionalOdds,item:"odds",isHidden:!F||v},{tabKey:A.x.Games,item:"games",values:{sport:s.QCR.ESports},isHidden:!_},{tabKey:A.x.Overs,item:"cricket.overs",isHidden:!b},{tabKey:A.x.Scorecard,item:"cricket.scorecard",isHidden:!j},{tabKey:A.x.Commentary,item:"commentary",isHidden:!k||m||x},{tabKey:A.x.BoxScore,item:"boxScore",isHidden:!T},{tabKey:A.x.Lineups,item:d===s.QCR.Cricket?"squads":"lineups",isHidden:!R},{tabKey:A.x.Statistics,item:"statistics",isHidden:!I},{tabKey:A.x.Commentary,item:"commentary",isHidden:!k||!m&&!x},{tabKey:A.x.PlayByPlay,item:"cricket.pbp",isHidden:!M},{tabKey:A.x.Standings,item:"app.standings",isHidden:!z},{tabKey:A.x.Graphs,item:"graphs",isHidden:!w},{tabKey:h?A.x.Fights:A.x.Matches,item:h?"fights_mma":"matches",values:h?void 0:{sport:(0,S.ap)(d)},isHidden:!H},{tabKey:A.x.Knockout,item:p?"draw":"knockout",isHidden:!Q},{tabKey:A.x.FeaturedOdds,item:"featured_odds",isHidden:!P},{tabKey:A.x.Media,item:"media",isHidden:!L},{tabKey:A.x.AdditionalOdds,item:"odds",isHidden:!F||!v}];return(0,a.jsxs)(c.Ws,{value:d,children:[(0,a.jsxs)(y.az,{bg:"surface.s1",children:[(0,a.jsx)(eL,{event:r,leftTeam:i,rightTeam:l}),(0,a.jsx)(t1.g,{})]}),(0,a.jsxs)(C.A,{id:r.id,location:C.C.EventPage,eventStatusType:r.status.type,initialTabKey:t,tabs:W,customControls:[t,n],children:[(0,a.jsx)(tK.A,{isInsideEventWidget:!1,isSpecialEsports:D,hasStandings:!!z,hasCricketIncidents:f,hasFeaturedOdds:B,hasWinningOdds:E,hasMediaTab:L,onFeaturedOddsClick:()=>n(A.x.FeaturedOdds),onBestPlayersClick:()=>n(T?A.x.BoxScore:A.x.Lineups),onPrematchStandingsClick:()=>n(A.x.Standings),onSeeAllStatisticsClick:()=>n(A.x.Statistics),onHighlightShortcutClick:()=>n(A.x.Media)}),K&&(0,a.jsx)(t2.A,{event:r}),F&&(0,a.jsx)(tD.A,{}),_&&(0,a.jsx)(tG.A,{}),b&&(0,a.jsx)(tN.A,{}),j&&(0,a.jsx)(t$.A,{event:r}),T&&(0,a.jsx)(tO.A,{}),R&&(0,a.jsx)(tY.A,{}),I&&(0,a.jsx)(tZ.A,{event:r}),M&&(0,a.jsx)(tX.A,{}),z&&(0,a.jsx)(tJ.A,{event:r,leftTeamId:i.id,rightTeamId:l.id}),w&&(0,a.jsx)(tU.A,{tabKey:A.x.Graphs}),k&&d!==s.QCR.IceHockey&&(0,a.jsx)(tQ.A,{}),(0,a.jsx)(tq.A,{}),Q&&r.tournament.uniqueTournament&&r.season&&(0,a.jsx)(tL.A,{uniqueTournament:r.tournament.uniqueTournament,seasonId:r.season.id,sport:d}),P&&(0,a.jsx)(tW.A,{hasRecommendedPrematchOdds:O}),L&&(0,a.jsx)(tV.A,{event:r,isLive:u})]}),(0,a.jsx)(y.az,{mb:"sm",children:(0,a.jsx)(t0.i,{id:g.Rj.MOBILE_EVENT_BOTTOM})})]})}var t5=n(67459);function t3(e){let{activeTab:t,setActiveTab:n,initialStandingsProperties:s}=e,{event:r}=(0,o.useContext)(c.y$),i=r.tournament.category.sport;return(0,a.jsx)(c.Ws,{value:i.slug,children:(0,a.jsxs)(t5.Hy,{eventId:r.id,children:[(0,a.jsx)(f.$B,{children:(0,a.jsx)(t9,{activeTab:t,setActiveTab:n})}),(0,a.jsx)(f.h6,{children:(0,a.jsx)(g.JR,{route:u.xW.Event,children:(0,a.jsx)(tP,{activeTab:t,setActiveTab:n,initialStandingsProperties:s})})}),(0,a.jsx)(j.N,{page:{location:b.XN.EventScreen,entity:r}})]})})}var t8=n(79082);let t4={event_details:A.x.Details,event_lineups:A.x.Lineups,event_statistics:A.x.Statistics};var t6=n(31830),t7=n(88715),ne=n(308),nt=n(97825),nn=n(7763),na=n(18153),ns=n(45906);let nr=[s.QCR.AmericanFootball,s.QCR.Cricket,s.QCR.Football,s.QCR.Baseball,s.QCR.Basketball,s.QCR.TableTennis,s.QCR.IceHockey,s.QCR.Handball,s.QCR.Volleyball,s.QCR.MMA];function ni(e){var t,n,i,g,f;if("error"in e)return(0,a.jsx)(ns.default,{statusCode:404});let j=(0,d.A)(),{eventId:y,setEventId:w,shareInfo:k,setShareInfo:C,activeTab:S,setActiveTab:_}=(e=>{let t={sport:(0,eS.c5)(e),name:e.slug,id:e.customId},[n,a]=(0,t8.Ay)({routeKey:u.xW.Event,params:t}),[s,r]=(0,o.useState)((null==n?void 0:n.tab)||A.x.Details);(0,o.useEffect)(()=>{(null==n?void 0:n.tab)&&r(null==n?void 0:n.tab)},[null==n?void 0:n.tab]);let i=(null==n?void 0:n.id)&&!Number.isNaN(null==n?void 0:n.id)?n.id:e.id,[l,d]=(0,o.useState)();return(0,o.useEffect)(()=>{let e=window.location.hash.replace("#",""),t={};e.startsWith("share:")&&(e.replace("share:","").split(",").forEach(e=>{let n=e.split(":");2===n.length&&((e,t,n)=>{switch(t){case"s":e.source=(e=>{switch(e){case"a":return"android";case"i":return"ios";case"w":return"web";default:return}})(n);return;case"id":e.id=Number(n);return;case"c":e.category=(e=>{switch(e){case"ed":return"event_details";case"el":return"event_lineups";case"es":return"event_statistics";default:return}})(n);return;default:return}})(t,n[0],n[1])}),d(t));t.id&&a("id",t.id.toString())},[]),{eventId:i,setEventId:e=>a("id",e.toString()),shareInfo:l,setShareInfo:d,activeTab:s,setActiveTab:e=>a("tab",e)}})(e.event),{event:T}=(0,p.A)(y,{shouldRefresh:!0,onFetchError:()=>w(e.event.id)}),R=(null==T?void 0:T.customId)===e.event.customId?T:e.event,[I,M]=(0,v.A)(R,"homeTeam","awayTeam",R),[z,H]=(0,v.A)(R,"homeScore","awayScore",R);(0,o.useEffect)(()=>{if(T&&((0,b.l3)(T.id,T.status.type),k&&k.id&&k.category&&k.source)){t4[k.category]&&_(t4[k.category]),C(void 0);try{sessionStorage.setItem(x.IE,"share")}catch(e){}}},[null==T?void 0:T.id]);let{customId:B,slug:F,homeTeam:E,awayTeam:P,tournament:L,startTimestamp:D}=R,O=(0,t6.A)(),Q=E.name,K=P.name,W=R.venue,G=j.formatDate((0,r.pp)(D,!0),{...r.or.dateWithShortMonth}),U=j.formatTime((0,r.pp)(D,!0)),Y=R.tournament.category.sport.slug,q=Y===s.QCR.Football,V=Y===s.QCR.ESports,N=null==(t=L.category.alpha2)?void 0:t.toLowerCase(),X=null==(i=E.country)||null==(n=i.alpha2)?void 0:n.toLowerCase(),$=null==(f=P.country)||null==(g=f.alpha2)?void 0:g.toLowerCase(),J=R.isEditor?!(0,m.N)(null!=N?N:X&&$&&X===$?X:"",O):(0,h.v)(Y,O),Z=t7.z.getTranslatedCanonicalRoute(O,"event",{id:B,name:F,sport:Y}).route,ee={item:"".concat(R.homeTeam.name," ").concat(R.awayTeam.name),homeTeamName:Q,awayTeamName:K,home:Q,away:K,startDate:G,startTime:U,tournamentName:L.name,categoryName:L.category.name,hasVenue:!!W,year:new Date(1e3*R.startTimestamp).getFullYear(),...(0,eS.Ee)(W)},et="event",en="livescore";return["fr","it"].includes(O)&&q&&(et="event-v2"),q&&(en="livescore-v3"),V&&(et="event-esports",en="livescore-esports"),(0,a.jsxs)(ez.x,{value:{meta:e.meta,eventMeta:e.eventMeta,seoContent:e.seoContent},children:[(0,a.jsxs)(l(),{children:[(0,a.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(Z)}),(0,a.jsx)("link",{rel:"alternate",href:"android-app://com.sofascore.results/https/www.sofascore.com/event/".concat(R.id)}),(0,a.jsx)("meta",{property:"og:image",content:s.bnp.shareDetailsImage("16x9",R.id)}),(0,a.jsx)("meta",{property:"og:image:width",content:"2130"}),(0,a.jsx)("meta",{property:"og:image:height",content:"1200"}),J&&(0,a.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,a.jsx)(ne.A,{event:R}),(0,a.jsx)(ez.A,{metaKey:et,titleKey:en,keywordsKey:"sport",values:ee}),(0,a.jsx)(c.y$,{value:{event:R,leftTeam:I,rightTeam:M,leftScore:z,rightScore:H,location:c.cb.EventPage,initialIncidents:e.incidents,initialHasLineups:e.initialHasLineups},children:(0,a.jsx)(t3,{activeTab:S,setActiveTab:_,initialStandingsProperties:e.initialStandingsProperties})})]})}ni.getInitialProps=nn.Ay.getInitialPageProps(e=>async t=>{let{query:a,req:r,res:i,...l}=t,o=r?r._originalUrl:l.asPath,d=t7.z.getCurrentLocale(o),c=r&&r.params?r.params:a,m=c.id;try{var h,x,p;let t,a=Number(null==(h=(0,t8.JT)(o))?void 0:h.id);(!a||Number.isNaN(a))&&(a=Number((await s.nk6.fetchCurrentlyRelevantEvent(m)).currentlyRelevantEvent.id));let[r,l,v,g,f,j]=await Promise.allSettled([s.nk6.fetchEvent(a),s.sdF.getEntityMeta(s.wNW.Event,m,d),s.nk6.fetchH2HMeta(a),nr.includes(c.sport)?s.sdF.getSeoContent(s.wNW.Event,a,d):Promise.reject(),s.nk6.hasLineups(a),s.nk6.fetchEventIncidents(a)]),b="fulfilled"===r.status?r.value.event:void 0;if(!b)throw Error();let y="fulfilled"===l.status?l.value.entityMeta:void 0,w="fulfilled"===v.status?v.value.meta:void 0,k="fulfilled"===g.status?g.value.content:void 0,C="fulfilled"===f.status?f.value:void 0,A="fulfilled"===j.status&&(null==(x=j.value.incidents)?void 0:x.length)?j.value.incidents:void 0,S=b.tournament.category.sport.slug;if(i&&(b.slug!==c.name||S!==c.sport)&&(i.writeHead(301,{Location:t7.z.getTranslatedRoute(d,"event",{id:b.customId,name:b.slug,sport:S}).route}),i.end()),i&&!u.Hk.includes(S))throw Error("Unsupported sport");if(u.so.includes(S))throw Error("Stage sports do not have event page!");try{t=await s.nk6.fetchStandingsProperties(b.tournament.id,null==(p=b.season)?void 0:p.id)}catch(e){}let _=(0,s.S$s)(),T=(await n.e(81088).then(n.t.bind(n,81088,19))).default;return e.dispatch((0,nt.Od)(T)),e.dispatch((0,na.Vy)(S)),{event:b,meta:y,eventMeta:w,seoContent:k,initialHasLineups:C,revalidate:_,incidents:A,initialStandingsProperties:t}}catch(e){return i&&(i.statusCode=404),{error:e}}})},17887:e=>{e.exports=JSON.parse('{"ice-hockey":{"forward":"stats.forwards","defenseman":"hockey_defensemen","goalie":"legend_hockey_goalies"}}')},18205:(e,t,n)=>{n.d(t,{e:()=>o});var a=n(6029),s=n(18612),r=n(76356),i=n(55729);function l(e){let{rows:t,rowHeight:n}=e;return(0,a.jsx)(s.D,{animate:!0,height:t*n,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let s=t*n;return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)("circle",{cx:20,cy:s+n/2,r:12}),(0,a.jsx)("rect",{x:40,y:s+8,width:"calc(100% - 48px)",height:n-16})]},s)})})}function o(e){let{rows:t=12}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.az,{hideBelow:"md",children:(0,a.jsx)(l,{rowHeight:32,rows:t})}),(0,a.jsx)(r.az,{hideFrom:"md",children:(0,a.jsx)(l,{rowHeight:48,rows:t})})]})}},23246:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(6029),s=n(10174),r=n(71024),i=n.n(r),l=n(56132);let o=i()(()=>Promise.all([n.e(96175),n.e(33211)]).then(n.bind(n,55891)),{loadableGenerated:{webpack:()=>[55891]},ssr:!1});function d(e){let{uniqueTournament:t,seasonId:n,sport:r}=e;return(0,a.jsx)(s.tU.Panel,{tabKey:l.x.Knockout,children:(0,a.jsx)(o,{sport:r,uniqueTournamentId:t.id,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:n})})}},32019:(e,t,n)=>{n.d(t,{C:()=>r,Z:()=>i});var a=n(494),s=n(86522);let r=(e,t,n)=>{var a,s,r;let i=null==(a=e.tournament.uniqueTournament)?void 0:a.id;if(i&&(null==n||null==(r=n.uniqueTournaments)||null==(s=r[i])?void 0:s[t]))return null==n?void 0:n.uniqueTournaments[i]},i=(e,t)=>r(e,t,(0,a.d4)(s.g))},34199:(e,t,n)=>{n.d(t,{eD:()=>r.e,l3:()=>s.l,pY:()=>a.p});var a=n(91603),s=n(37721),r=n(33480)},34993:(e,t,n)=>{function a(e,t){let n=[];for(let a=0;al});let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=[],s=1/n;for(let n=0;n<=e;n+=s)a.push(Math.exp(-n*n/(2*t*t)));return a},r=(e,t,n,a)=>Math.sqrt(Math.pow(n-e,2)+Math.pow(a-t,2)),i=(e,t,n)=>{let a=Math.round(t),s=Math.round(n),r=Math.round(e);return ra?r:a:s};function l(e,t,n,l){try{((e,t,n,l,o)=>{var d,c;let u,{containerId:m,isAway:h=!1,width:x,height:p,numberOfMatches:v,shootMapType:g=1,precisionLevel:f=10,isTransparentBackground:j}=n,{HEIGHT:b,WIDTH:y,MAX_POINT_VALUE:w}=e?{MAX_POINT_VALUE:6,WIDTH:160,HEIGHT:100}:{MAX_POINT_VALUE:9,WIDTH:500,HEIGHT:363},k=document.getElementById(m);if(!k)throw Error("No DOM container element for HeatMap provided");let C=e?(d=v||1,u=14,d&&d>1&&(u=Math.round((1-Math.pow(d/38,.28))*10+4)),u):(c=v||1,c>82?Math.round((1-Math.pow(c/110,.1))*8+12):Math.round((1-Math.pow(c/82,.1))*8+12)),A=e?((e,t)=>{let{width:n,height:s,isFlipped:r=!1,pointMaximum:l=100,widthScaleFactor:o=1.6,heightScaleFactor:d=1,pointValue:c=1}=t,u=a(n,s);return e.forEach(e=>{let t=r?l-e.x:e.x,a=r?e.y:l-e.y,m=i(t*o,0,n-1),h=i(a*d,0,s-1);u[m][h]+=c*(e.count||1)}),u})(t,{isFlipped:h,width:y,height:b}):function(e,t,n,s){let r=a(n+1,s+1);return e.forEach(e=>{let{x:n,y:a,made:s,missed:i}=e;switch(t){case 1:r[n- -250][a- -40]+=s+i;break;case 2:r[n- -250][a- -40]+=s;break;default:r[n- -250][a- -40]+=i}}),r}(t,g,y,b);!e&&v&&v>5&&function(e,t,n,a){let s,r,i,l,o,d;for(l=0;l<=100;l++){for(s=0,r=0,i=0,o=2;o<=10;o++)++i,s+=a[l][80-o],r+=a[l][80+o];for(d=0;d<=2;d++)a[l][e+d]=(s+r)/(2*i),a[l][e-d]=(s+r)/(2*i)}}(80,2,0,A);let S=function(e,t,n,a,s){let r=document.createElement("canvas");r.width=1,r.height=1e3;let i=r.getContext("2d");if(!i)throw Error("No color gradient context for heatmap found");let l=i.createLinearGradient(0,0,1,1e3),o=n?{0:s?"var(--graphics-terrain-footballLineups)":"var(--heatmap-hm1)",.1:"var(--heatmap-hm2)",.35:"var(--heatmap-hm3)",.8:"var(--heatmap-hm4)",1:"var(--heatmap-hm5)"}:{0:"#f8d496",.05:"#fee644",.25:"#ff9000",.4:"#fc6800",.6:"#f00800",.75:"#cc0600",.85:"#b00400",.99:"#940000",1:"#780000"};return Object.keys(o).forEach(e=>{let n=o[+e],s=Number(e);a&&s<.2?l.addColorStop(s,t.setAlpha(n,s+.2)):l.addColorStop(s,t.setAlpha(n,1))}),i.fillStyle=l,i.fillRect(0,0,1,e),i.getImageData(0,0,1,e).data}(1e3,l,e,j,o),_=((e,t,n)=>{let{height:a,width:s,gradientScaleFactor:r,gradientRange:i}=n,l=document.createElement("canvas");l.height=a,l.width=s;let o=l.getContext("2d");if(!o)throw Error("No heatmap canvas context found");let d=o.getImageData(0,0,s,a),c=d.data;for(let n=0;n{let{width:s,height:i,influenceRadius:l,precisionLevel:o=10}=n,d=a(s,i);for(let n=0;n{n.d(t,{A:()=>o,q:()=>l});var a=n(6029),s=n(94565),r=n(55729),i=n(43072);let l=e=>{let{initialVisible:t=!1,defaultHeight:n=0,visibleOffset:l=1e3,persist:o=!1,loader:d,children:c,...u}=e,m={initialInView:t,rootMargin:"".concat(l,"px 0px ").concat(l,"px 0px")},[h,x,p]=(0,i.Wx)(m),v=(0,r.useRef)(t),g=(0,r.useRef)(n);(0,r.useEffect)(()=>{x&&!0!==v.current&&(v.current=!0),x&&g.current!==n&&(g.current=(null==p?void 0:p.boundingClientRect.height)||n)},[x,p]);let f=d||(g.current?(0,a.jsx)(s.az,{h:g.current}):null),j=x||o&&v.current;return(0,a.jsx)(s.az,{ref:h,...u,children:j?c:f})},o=l},44224:(e,t,n)=>{n.d(t,{j:()=>l});var a=n(22375),s=n(45860),r=n(11276);let i=e=>fetch(e,{method:"HEAD",cache:"no-store"});function l(){let{data:e,error:t,isLoading:n}=(0,s.Ay)(r.sp,{fetcher:i,dedupingInterval:a.d_});return{isLoading:n,hasAdBlock:!!(null==e?void 0:e.redirected)||void 0!==t}}},50526:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(6029),s=n(494),r=n(72753),i=n(10174),l=n(76356),o=n(52466);function d(){return(0,a.jsx)("a",{href:"https://certifications.gamingcommission.gov.gr/publicRecordsOnline/SitePages/KatoxoiAdeiasOnline.aspx",target:"_blank",rel:"nofollow noopener noreferrer",children:(0,a.jsxs)(l.so,{minH:"4xl",align:"center",gap:"md",px:"lg",children:[(0,a.jsx)(l.az,{h:"xl",w:"xl",children:(0,a.jsx)(o.OE_,{w:"24px",h:"24px",fill:"onSurface.nLv3",fillOpacity:1})}),(0,a.jsx)(i.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:"21+ | ΚΙΝΔΥΝΟΣ ΕΘΙΣΜΟΥ & ΑΠΩΛΕΙΑΣ ΠΕΡΙΟΥΣΙΑΣ | ΠΑΙΞΕ ΥΠΕΥΘΥΝΑ & ΜΕ ΑΣΦΑΛΕΙΑ |"})]})})}function c(){return"GR"===(0,s.d4)(r.LQ)?(0,a.jsx)(d,{}):null}},52887:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(6029),s=n(76356),r=n(46222);function i(){return(0,a.jsx)(r.Zp,{children:(0,a.jsx)(s.az,{h:"[762px]"})})}},54521:(e,t,n)=>{n.d(t,{C:()=>i});var a=n(55729),s=n(494),r=n(72753);function i(e){let t=(0,a.useMemo)(()=>(0,r.vt)(),[]);return(0,s.d4)(t,e)}},56321:(e,t,n)=>{n.d(t,{b:()=>u,h:()=>l});var a=n(6029),s=n(46787),r=n(93338),i=n(96678);let l=e=>{let{x:t,y:n,type:i,color:l,isSelected:o,backgroundOpacity:d,opacity:c}=e,u=l&&r.S.var(l);return(0,a.jsxs)("g",{opacity:c,children:[(0,a.jsx)("circle",{cx:t,cy:n,r:o?8:6,stroke:u,strokeWidth:1,fill:o?"#fff":r.S.var("colors.homeAway.shotFill"),fillOpacity:d}),i===s.Dme.Made&&(0,a.jsx)("circle",{cx:t,cy:n,r:o?6:4,fill:u}),i===s.Dme.Saved&&(0,a.jsx)("circle",{cx:t,cy:n,r:o?3:2,fill:u}),i===s.Dme.Blocked&&(0,a.jsx)("rect",{x:t-4,y:n-1,width:8,height:2,fill:u})]})},o=e=>{let{x:t,y:n,color:s,opacity:i,isSelected:l}=e,o=s&&r.S.var(s);return l?(0,a.jsxs)("g",{transform:"translate(".concat(t-10," ").concat(n-10,")"),fill:"none",fillRule:"evenodd",children:[(0,a.jsx)("circle",{fill:"#fff",transform:"rotate(90 9.9 9.9)",cx:"9.899",cy:"9.899",r:"8"}),(0,a.jsx)("circle",{fill:o,cx:"9.899",cy:"9.899",r:"1.5"}),(0,a.jsx)("path",{stroke:o,strokeWidth:"1.5",d:"M11.667 8.132 14.85 4.95M4.95 14.85l3.182-3.183M4.95 4.95l3.182 3.182M11.667 11.667l3.182 3.182"}),(0,a.jsx)("path",{stroke:o,strokeWidth:"1.5",d:"M9.9 6.9v-4M9.9 16.9v-4M2.9 9.9h4M12.9 9.9h4"})]}):(0,a.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(".concat(t-8.5," ").concat(n-8.5,")"),opacity:i,children:[(0,a.jsx)("circle",{stroke:o,fillOpacity:i,fill:o,cx:"8.485",cy:"8.485",r:"1"}),(0,a.jsx)("path",{stroke:o,d:"m9.9 7.071 2.828-2.828M4.243 12.728 7.07 9.9M4.243 4.243 7.07 7.07M9.9 9.9l2.828 2.828"}),(0,a.jsx)("path",{stroke:o,d:"M8.485 5.985v-3M8.485 13.985v-3M2.985 8.485h3M10.985 8.485h3"})]})},d=e=>{let{x:t,y:n,color:s,opacity:i,isSelected:l}=e,o=l?10:9,d=s&&r.S.var(s);return(0,a.jsx)("path",{transform:"translate(".concat(t-o," ").concat(n-o,")"),d:l?"m16.02 6.121-3.888 3.888 3.889 3.89-2.122 2.122-3.889-3.89-3.889 3.89L4 13.899l3.89-3.89L4 6.121 6.121 4l3.89 3.888L13.898 4l2.122 2.121z":"M14.006 5.768 10.77 9l3.235 3.237-1.768 1.768-3.235-3.237-3.235 3.237L4 12.238 7.235 9 4 5.768 5.768 4l3.235 3.234L12.238 4l1.768 1.768z",fill:d,fillOpacity:i,fillRule:"evenodd"})},c=e=>{let{x:t,y:n,color:s,isSelected:i}=e,l=s&&r.S.var(s);return i?(0,a.jsxs)("g",{children:[(0,a.jsx)("circle",{fillOpacity:".15",fill:l,r:"8",cx:t,cy:n}),(0,a.jsx)("circle",{fill:l,r:"3",cx:t,cy:n}),(0,a.jsx)("circle",{fill:"#fff",r:"2",cx:t,cy:n})]}):null};function u(e){let t=(0,i.P7)(),n=e.isSelected?t:"colors.neutrals.nLv3",r=e.isSelected?1:.5;switch(e.type){case s.Dme.Made:case s.Dme.Saved:case s.Dme.Blocked:case s.Dme.Missed:return(0,a.jsx)(l,{...e,color:n,opacity:r,isSelected:e.isSelected});case s.Dme.Hit:return(0,a.jsx)(o,{...e,color:n,opacity:r,isSelected:e.isSelected});case s.Dme.Suspension:return(0,a.jsx)(d,{...e,color:n,opacity:r,isSelected:e.isSelected});case s.Dme.FaceOff:return(0,a.jsx)(c,{...e,color:n,opacity:r,isSelected:e.isSelected});default:return null}}},58706:(e,t,n)=>{n.d(t,{$7:()=>d,$u:()=>o,Ay:()=>u,Co:()=>i,o_:()=>l,uv:()=>c});var a=n(6029),s=n(90547),r=n(41735);let i=8,l=328,o=e=>(0,a.jsx)("svg",{width:"100%",viewBox:"-".concat(i," -").concat(i," ").concat(l+2*i," ").concat(139+2*i),children:e.children}),d=e=>{let{fill:t}=e,n=(0,r.useTheme)();return(0,a.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54z",fill:t||n.colors.surface.s2,fillRule:"evenodd"})},c=e=>{let{fill:t}=e,n=(0,r.useTheme)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{x:l/2-12,y:57.5,fill:"onSurface.nLv1"}),(0,a.jsxs)("g",{fill:t||n.colors.onSurface.nLv1,fillRule:"nonzero",children:[(0,a.jsx)("path",{d:"M302.77 0C316.703 0 328 11.392 328 25.305v88.171C328 127.39 316.704 139 302.77 139H25.23C11.297 139 0 127.39 0 113.476v-88.17C0 11.391 11.296 0 25.23 0h277.54zm0 1H25.23C11.878 1 1.052 11.972 1.052 25.305v88.171C1.051 126.81 11.877 138 25.231 138h277.538c13.354 0 24.18-11.19 24.18-24.524v-88.17C326.949 11.971 316.123 1 302.769 1z"}),(0,a.jsx)("path",{d:"M16 2h1.05v135H16zM118.5 0h1.05v138.77h-1.05zM1 91.959 16 87v1.06L1.023 93zM15.992 50.95 1 46v1.057L16 52z"}),(0,a.jsx)("path",{d:"M26.992 69.5c0-3.043-1.406-5.843-3.908-7.887l-.139-.113h-5.953v1l5.7.02c1.993 1.788 3.216 4.132 3.3 6.678v.302c0 2.63-1.228 5.135-3.3 7.011l-5.7-.011v1h5.956l.139-.116c2.471-2.054 3.905-4.894 3.905-7.884zM12 63h4v.929h-3V75.07h3V76h-4zM28 33.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,a.jsx)("path",{d:"M50 33.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM48.5 56.77v5.256h1.05v-5.257zM54.5 56.775v5.257h1.05v-5.257zM48.5 5v5.256h1.05V5zM54.5 5v5.256h1.05V5zM28 105.5c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm1 0c0 12.703 10.297 23 23 23s23-10.297 23-23-10.297-23-23-23-23 10.297-23 23z"}),(0,a.jsx)("path",{d:"M50 105.5c0-1.104.894-2 1.997-2 1.103 0 1.997.896 1.997 2 0 1.105-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1.012 0c0 .546.442.988.985.988a.986.986 0 0 0 .984-.988.986.986 0 0 0-.984-.988.986.986 0 0 0-.985.988zM54.5 128.8v5.256h1.05V128.8zM48.5 128.8v5.256h1.05V128.8zM54.5 77v5.256h1.05V77zM48.5 77v5.256h1.05V77zM126 105.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM126.05 33.5c0-1.104.894-2 1.997-2 1.102 0 1.996.896 1.996 2 0 1.105-.894 2-1.996 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.447-1-.996-1a.998.998 0 0 0-.997 1zM312.05 2H311v135h1.05zM209.55 0h-1.05v139h1.05z"}),(0,a.jsx)("path",{d:"M327 91.959 312 87v1.06L326.977 93zM312.008 50.95 327 46v1.057L312 52zM301 69.5c0-3.043 1.406-5.843 3.908-7.887l.139-.113H311v1l-5.7.02c-1.993 1.788-3.216 4.132-3.3 6.678v.302c0 2.63 1.228 5.135 3.3 7.011l5.7-.011v1h-5.955l-.14-.116C302.434 75.33 301 72.49 301 69.5zM316 63h-4v.929h3V75.07h-3V76h4zM301 105.5c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-.991 0c0 12.703-10.298 23-23 23-12.703 0-23-10.297-23-23s10.297-23 23-23c12.702 0 23 10.297 23 23z"}),(0,a.jsx)("path",{d:"M278.994 105.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 128.8v5.256h-1.05V128.8zM274.55 128.8v5.256h-1.05V128.8zM280.55 77v5.256h-1.05V77zM274.55 77v5.256h-1.05V77zM301 33.499c0-13.255-10.745-24-24-24s-24 10.745-24 24 10.745 24 24 24 24-10.745 24-24zm-1 0c0 12.703-10.297 23-23 23s-23-10.297-23-23 10.297-23 23-23 23 10.297 23 23z"}),(0,a.jsx)("path",{d:"M278.994 33.5c0-1.105-.894-2-1.997-2a1.998 1.998 0 0 0-1.997 2c0 1.105.894 2 1.997 2a1.998 1.998 0 0 0 1.997-2zm-1.013 0a.986.986 0 0 1-.984.988.986.986 0 0 1-.985-.988c0-.546.442-.988.985-.988.543 0 .984.442.984.988zM280.55 56.77v5.256h-1.05V56.77zM274.55 56.77v5.256h-1.05V56.77zM280.55 5.262v5.257h-1.05V5.262zM274.55 5.262v5.257h-1.05V5.262zM201.992 105.5a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM201.992 33.508a2 2 0 1 0-4 0 2 2 0 0 0 4 0zm-1.002 0a.999.999 0 1 1-1.998.002.999.999 0 0 1 1.998-.002zM148 138c0-8.837 7.163-16 16-16s16 7.163 16 16h-1c0-8.332-6.668-15-15-15s-15 6.668-15 15h-1zM140.042 69.5c0-13.232 10.726-23.958 23.958-23.958 13.232 0 23.958 10.726 23.958 23.958 0 13.232-10.726 23.958-23.958 23.958-13.232 0-23.958-10.726-23.958-23.958zm-1.042 0c0 13.807 11.193 25 25 25s25-11.193 25-25-11.193-25-25-25-25 11.193-25 25z"}),(0,a.jsx)("path",{d:"M162.003 69.5c0-1.105.894-2 1.997-2 1.103 0 1.997.895 1.997 2s-.894 2-1.997 2a1.998 1.998 0 0 1-1.997-2zm1 0c0 .553.447 1 .997 1s.996-.447.996-1c0-.553-.446-1-.996-1a.998.998 0 0 0-.996 1zM163.5 2h1v4.355h-1zM163.5 10.71h1v4.355h-1zM163.5 19.42h1v4.354h-1zM163.5 28.13h1v4.354h-1zM163.5 36.839h1v4.355h-1zM163.5 45.548h1v4.355h-1zM163.5 54.258h1v4.355h-1zM163.5 62.968h1v4.355h-1zM163.5 71.677h1v4.355h-1zM163.5 80.387h1v4.355h-1zM163.5 89.097h1v4.355h-1zM163.5 97.806h1v4.355h-1zM163.5 106.516h1v4.355h-1zM163.5 115.226h1v4.355h-1zM163.5 123.935h1v4.355h-1zM163.5 132.645h1V137h-1z"})]})]})};function u(e){let{children:t}=e;return(0,a.jsxs)(o,{children:[(0,a.jsx)(d,{}),(0,a.jsx)(c,{}),t]})}},60128:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(6029),s=n(94565),r=n(55729),i=n(41735),l=n(56321);function o(e){let{isAway:t,fill:n}=e,{colors:s,settings:r}=(0,i.useTheme)(),l={transform:""};return t&&(l.transform="rotate(180deg)"),"rtl"===r.textDirection&&(l.transform+=" scale(-1,1)"),(0,a.jsx)("svg",{width:"88",height:"20",viewBox:"0 0 88 20",style:l,children:(0,a.jsx)("g",{fill:n||s.surface.s1,fillRule:"evenodd",children:(0,a.jsx)("path",{d:"m87.2 9.845-12 8v-16zM.8 7.845h74.4v4H.8z"})})})}var d=n(33559),c=n(58706),u=n(96678);function m(e){let{isLeft:t,isInverseTeams:n=!1,shots:m}=e,{colors:h}=(0,i.useTheme)(),{selectedShot:x}=(0,r.useContext)(u.XM),p=t?"colors.homeAway.home.primary":"colors.homeAway.away.primary";return(0,a.jsxs)(a.Fragment,{children:[void 0!==t&&(0,a.jsx)(s.so,{w:"100%",justify:"center",mt:"xs",children:(0,a.jsx)(o,{fill:h.onSurface.nLv2,isAway:!t})}),(0,a.jsx)(s.so,{justify:"center",children:(0,a.jsx)(s.az,{maxW:[2*c.Co+c.o_,void 0],w:"100%",children:(0,a.jsxs)(c.Ay,{children:[m.map(e=>{let s=(0,d.mK)(e,n);return void 0===t?(0,a.jsx)(l.b,{x:s.x,y:s.y,type:e.type,commentId:e.id},e.id):(0,a.jsx)(l.h,{x:s.x,y:s.y,type:e.type,color:p,commentId:e.id,backgroundOpacity:.25},e.id)}),x&&(0,a.jsx)(l.b,{...(0,d.mK)(x,n),type:x.type,commentId:x.id,isSelected:!0})]})})})]})}},67086:(e,t,n)=>{n.d(t,{N:()=>s});var a=n(49856);function s(e,t){return"en"===t||t===a.vo[e]}},67536:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var a=n(6029),s=n(32523),r=n(46787),i=n(55729),l=n(18970),o=n(74610),d=n(22830),c=n(46222),u=n(10174),m=n(76356),h=n(90248),x=n(41164),p=function(e){return e.All="all",e.KeyEvents="key-events",e}({});let v=e=>[r.QCR.AmericanFootball,r.QCR.Basketball].includes(e),g=e=>{let{selectedTab:t,onTabChange:n}=e,{event:s}=(0,i.useContext)(l.y$),r=v((0,x.c5)(s));return(0,a.jsx)(m.az,{p:"sm",borderBottom:r?void 0:"1px solid",borderColor:r?void 0:"neutrals.nLv4",elevation:{base:void 0,mdDown:"2"},bg:{base:void 0,mdDown:"surface.s1"},children:(0,a.jsx)(u.tU,{variant:"tertiary",initialValue:p.All,value:t,onChange:n,children:(0,a.jsxs)(u.tU.List,{p:"sm",children:[(0,a.jsx)(u.tU.Tab,{tabKey:p.All,children:(0,a.jsx)(h.A,{id:"all"})}),(0,a.jsx)(u.tU.Tab,{tabKey:p.KeyEvents,children:(0,a.jsx)(h.A,{id:"commentary_key_events"})})]})})})};var f=n(94565),j=n(81484),b=n(18858);let y=e=>{let{periods:t,selectedPeriod:n,onPeriodChange:s}=e,r=(0,i.useContext)(l.Ws),o=(0,b.Ay)();if(!t.length||!v(r))return null;let d=t.map(e=>({tabKey:e,tabValue:(0,a.jsx)(j.fP,{id:e,short:!0})}));return(0,a.jsx)(f.PI,{top:o,bg:"surface.s1",zIndex:f.Py.Sticky-1,children:(0,a.jsx)(m.az,{p:"sm",bg:"surface.s1",borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,a.jsx)(u.tU,{variant:"secondary",initialValue:n,onChange:s,fullWidthTabs:!0,children:(0,a.jsx)(u.tU.List,{children:d.map((e,t)=>(0,a.jsx)(u.tU.Tab,{tabKey:e.tabKey,children:e.tabValue},t))})})})})};var w=n(14868),k=n(45860),C=n(9220),A=n(40076);let S=e=>{let{event:t}=(0,i.useContext)(l.y$),n=e.isHome?t.homeTeam:t.awayTeam,a=e.player,s=function(e,t){let n=e.isHome?t.homeTeam.shortName:t.awayTeam.shortName;switch(e.type){case"touchdown":return"Touchdown ".concat(n,"!");case"fieldGoalMiss":return"Missed Field Goal";case"twoPointConversion":return"2-PT Conversion";case"turnoverOnDowns":return"Turnover on Downs";case"fourthDownConversion":return"4th Down Conversion";case"passInterception":return"Interception";case"passInterceptionReturn":return"Interception Return";case"tenYardsPlay":return"".concat(e.yardsGained," Yard ").concat("run"===e.playType?"Run":"Pass");case"fieldGoal":return"Field Goal";case"extraPoint":return"Extra Point";case"safety":return"Safety";default:return null}}(e,t);return{team:n,player:a,title:s,text:function(e){return"twoMinuteWarning"===e.type?"Two-Minute Warning":e.text}(e),downDistance:function(e,t){if("extraPoint"===e.type){let n=1===e.teamHalf?t.homeTeam.nameCode:t.awayTeam.nameCode;return"XP attempt from ".concat(n," ").concat(e.yardline)}let n={currentDown:e.down,currentTeamHalf:e.teamHalf,currentPossession:e.possession,currentYardline:e.yardline,currentYardsToFirstDown:e.yardsToFirstDown,isGoalPossession:e.isGoal};return(0,A.XE)(n,t)}(e,t)}},_=e=>{let{comment:t}=e,{player:n,team:s,title:r,text:i,downDistance:l}=S(t);return(0,a.jsxs)(m.so,{children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{bg:"surface.s0",image:n&&(0,a.jsx)(C.Ez,{id:n.id,teamId:s.id}),players:[n],children:[r&&(0,a.jsx)(C.SI,{children:r}),i&&(0,a.jsx)(C.jv,{children:i}),l&&(0,a.jsx)(C.jv,{secondary:!0,children:l})]})]})},T=e=>{let{comments:t}=e;return(0,a.jsx)(m.so,{direction:"column",gap:"lg",p:"lg",children:t.map(e=>(0,a.jsx)(_,{comment:e},e.id))})};var R=n(33144),I=n(22375);let M=e=>{let{drive:t}=e;return(0,a.jsxs)(m.so,{gap:"lg",align:"center",children:[(0,a.jsx)(R.p,{id:t.teamId,w:32,h:32}),(0,a.jsxs)(m.so,{direction:"column",align:"flex-start",children:[(0,a.jsx)(u.EY,{textStyle:"display.medium",color:null!==t.endReason?"neutrals.nLv1":"status.live",children:t.endReason||(0,a.jsx)(h.A,{id:"inProgress"})}),(0,a.jsx)(u.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,a.jsx)(h.A,{id:"am_football_drive_summary",values:{plays:t.playCount,yards:t.netDriveYards,time:(0,I.OV)(t.durationSeconds)}})})]})]})},z=e=>{let{comment:t,drive:n,defaultOpened:s=!1}=e;return(0,a.jsxs)(f.nD.Item,{defaultOpened:s,bg:"surface.s1",elevation:[2,void 0],br:["lg",void 0],borderTop:[void 0,"onSurface.nLv4"],borderBottom:[void 0,"onSurface.nLv4"],mt:-1,overflow:"hidden",children:[(0,a.jsx)(f.nD.Trigger,{children:(0,a.jsx)(M,{drive:n})}),(0,a.jsx)(f.nD.Content,{children:(0,a.jsx)(T,{comments:t})})]})},H=e=>{let{comment:t}=e,{player:n,team:s,title:r,text:i,downDistance:l}=S(t);return(0,a.jsxs)(m.so,{children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{image:n&&(0,a.jsx)(C.Ez,{id:n.id,teamId:s.id}),players:[n],elevation:{mdDown:"2"},children:[r&&(0,a.jsx)(C.SI,{children:r}),i&&(0,a.jsx)(C.jv,{children:i}),l&&(0,a.jsx)(C.jv,{secondary:!0,children:l})]})]})},B=e=>{let{comment:t}=e,{player:n,team:s,title:r,text:i,downDistance:l}=S(t);return(0,a.jsxs)(m.so,{br:"lg",elevation:{mdDown:"2"},bg:{mdDown:"surface.s1"},py:{md:"md"},px:{md:"lg"},children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{bg:{base:"surface.s1",md:"surface.s0"},image:n&&(0,a.jsx)(C.Ez,{id:n.id,teamId:s.id}),players:[n],children:[r&&(0,a.jsx)(C.SI,{children:r}),i&&(0,a.jsx)(C.jv,{children:i}),l&&(0,a.jsx)(C.jv,{secondary:!0,children:l})]})]})},F=e=>{let{selectedTab:t,selectedPeriod:n,comments:s,periods:o}=e,{drives:c}=(()=>{let{event:e}=(0,i.useContext)(l.y$),t=(0,d.j)((0,x.c5)(e)),{data:n}=(0,k.Ay)(t?r.bnp.commentary(e.id,t):null,(0,x.rf)(e));return{drives:null==n?void 0:n.drives}})();if(t===p.KeyEvents)return(0,a.jsx)(m.so,{p:"md",direction:"column",gap:"md",children:s.map(e=>(0,a.jsx)(H,{comment:e},e.id))});let u=s.findIndex(e=>!!Array.isArray(e)||void 0!==e.driveId);return(0,a.jsx)(f.nD,{children:(0,a.jsxs)(m.so,{p:{mdDown:"md"},direction:"column",gap:{mdDown:"md"},children:[(0,a.jsx)(m.az,{hideBelow:"md",children:(0,a.jsx)(m.cG,{})}),s.map((e,t)=>{let s=function(e){return Array.isArray(e)?e:[e]}(e),r=function(e,t){return void 0===e||void 0===t?null:t.find(t=>t.id===e)}(s[0].driveId,c);return r?(0,a.jsx)(z,{comment:s,drive:r,defaultOpened:function(e,t,n){return 0!==e.length&&[e[0],e[e.length-1]].includes(t)&&n}(o||[],n,u===t)},s[0].id):(0,a.jsx)(B,{comment:s[0]},s[0].id)})]})})};var E=n(67087);let P={freeThrowMade:"basketball_free_throw_made",twoPointMade:"basketball_two_points_made",threePointMade:"basketball_three_points_made"},L=e=>{let{comment:t}=e,{event:n}=(0,i.useContext)(l.y$),{homeTeam:s,awayTeam:r}=n,o="ownGoal"===t.goalType,d="penalty"===t.goalType,c=!o&&!d,u=t.player,m=t.isHome?s.id:r.id;return u?(0,a.jsxs)(C.hF,{children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{image:(0,a.jsx)(C.Ez,{id:u.id,teamId:m}),players:[u],children:[(0,a.jsx)(C.SI,{isUppercase:c,children:c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{id:"goal"}),"!"]}):(0,a.jsx)(h.A,{id:t.goalType})}),(0,a.jsx)(C.jv,{children:t.text})]})]}):null},D=e=>{let{comment:t}=e,{event:n}=(0,i.useContext)(l.y$),s=t.isHome?n.homeTeam:n.awayTeam;return t.playerIn&&t.playerOut?(0,a.jsxs)(C.hF,{children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{image:(0,a.jsx)(R.p,{size:24,id:s.id,name:s.name}),players:[t.playerIn,t.playerOut],children:[(0,a.jsx)(C.SI,{children:(0,a.jsx)(h.A,{id:"substitution"})}),(0,a.jsxs)(C.Pc,{image:(0,a.jsx)(C.Ez,{id:t.playerIn.id,small:!0}),children:[t.playerIn.name,(0,a.jsxs)(u.EY,{ml:"2xs",textStyle:"body.small",color:"secondary.default",children:["(",(0,a.jsx)(h.A,{id:"substitution.in"}),")"]})]}),(0,a.jsxs)(C.Pc,{image:(0,a.jsx)(C.Ez,{id:t.playerOut.id,small:!0}),children:[t.playerOut.name,(0,a.jsxs)(u.EY,{ml:"2xs",textStyle:"body.small",color:"status.error.default",children:["(",(0,a.jsx)(h.A,{id:"substitution_out"}),")"]})]})]})]}):null};var O=n(46517),Q=n(29695);let K={[r.QCR.Football]:e=>{let{comment:t}=e;switch(t.type){case"scoreChange":case"penaltyScored":return(0,a.jsx)(L,{comment:t});case"substitution":return(0,a.jsx)(D,{comment:t});default:return(0,a.jsx)(O.b,{comment:t})}},[r.QCR.Basketball]:function(e){let{comment:t}=e,{event:n}=(0,i.useContext)(l.y$),[s,r]=(0,E.jr)(t,"homeScore","awayScore"),{isHome:o,player:d,playerIn:c,playerOut:m,goalkeeper:x}=t,p=void 0===o?void 0:o?n.homeTeam:n.awayTeam,v=d&&(0,a.jsx)(C.Ez,{id:d.id,teamId:null==p?void 0:p.id}),g=function(e){if("scoreChange"===e.type&&e.goalType)return P[e.goalType]}(t),f=t.text,j="scoreChange"===t.type&&!!(null==p?void 0:p.nameCode)&&void 0!==s&&void 0!==r;return(0,a.jsxs)(C.hF,{children:[(0,a.jsx)(C.JJ,{comment:t}),(0,a.jsxs)(C.cH,{image:v,players:[d,c,m,x],children:[g&&(0,a.jsx)(C.SI,{children:(0,a.jsx)(h.A,{id:g})}),f&&(0,a.jsx)(C.jv,{children:f}),j&&(0,a.jsx)(u.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:"".concat(p.nameCode," ").concat(s," - ").concat(r)})]})]})},[r.QCR.IceHockey]:Q.y},W=e=>{let{comments:t}=e,n=K[(0,i.useContext)(l.Ws)];return(0,a.jsx)(m.so,{p:"md",direction:"column",gap:"md",children:t.map(e=>(0,a.jsx)(n,{comment:e},e.id))})},G=e=>{let{selectedTab:t,selectedPeriod:n,comments:s,periods:o}=e;return(0,i.useContext)(l.Ws)===r.QCR.AmericanFootball?(0,a.jsx)(F,{selectedTab:t,selectedPeriod:n,comments:s,periods:o}):(0,a.jsx)(W,{comments:s})},U=e=>{let{selectedTab:t,selectedPeriod:n,comments:s,periods:o}=e,{isMobile:d}=(0,u.$c)(),{event:m,location:h}=(0,i.useContext)(l.y$),[v,g]=(0,i.useState)(!1),f=function(e,t,n){return t===p.KeyEvents?n.filter(e=>Object.values(r.zZK).includes(e.type)):e===r.QCR.AmericanFootball?function(e){let t=[],n=null,a=null;for(let s of e)void 0!==s.driveId?(s.driveId!==a&&(n=[],t.push(n),a=s.driveId),n&&n.push(s)):(t.push(s),a=null);return t.map(e=>Array.isArray(e)&&1===e.length?e[0]:e)}(n.filter(e=>"timeout"!==e.type||void 0!==e.driveId)):n}((0,x.c5)(m),t,s),j=h&&[l.cb.EventPage].includes(h)&&f.length>10&&!d;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(G,{selectedTab:t,selectedPeriod:n,comments:function(e,t){return t?e:e.slice(0,10)}(f,v||d||h===l.cb.Widget),periods:o}),(0,a.jsx)(c.Zp.Footer,{ctaParams:j?{messageId:v?"show_less":"show_more",onClick:()=>g(e=>!e),icon:v?w.X.Up:w.X.Down}:void 0,defaultHeight:{base:"[0px]",md:"lg"}})]})},Y=e=>{let{periodComments:t,periods:n}=e,s=(0,i.useContext)(l.Ws),{location:o}=(0,i.useContext)(l.y$),d=o===l.cb.Widget,[u,m]=(0,i.useState)(s===r.QCR.Basketball&&n.length?n[n.length-1]:"all"),[h,x]=(0,i.useState)(p.All),v=t[u];return(0,a.jsxs)(c.Zp,{variant:d?"never":"desktop-only",children:[!d&&(0,a.jsx)(c.Zp.Header,{titleId:"commentary",visibility:"desktop-only"}),(0,a.jsx)(y,{periods:n,selectedPeriod:u,onPeriodChange:m}),s!==r.QCR.Basketball&&(0,a.jsx)(g,{selectedTab:h,onTabChange:x}),(0,a.jsx)(U,{selectedTab:h,selectedPeriod:u,comments:v,periods:n})]})},q=()=>{let e=(0,i.useContext)(l.Ws),{textCommentary:t,periods:n}=(0,d.q)(e!==r.QCR.Basketball);return t?(0,a.jsx)(o.t,{tag:"TextCommentary",children:(0,a.jsx)(Y,{periodComments:t,periods:n})}):(0,a.jsx)(s.E,{uniqueKey:"text-commentary-container-cl",rows:10,rowHeight:56,animate:!0})}},69909:(e,t,n)=>{n.d(t,{d:()=>u});var a=n(6029),s=n(10174),r=n(76356),i=n(55729),l=n(46222),o=n(18970),d=n(89721),c=n(18205);let u=e=>{var t;let{isTeamStandings:n,hideTitle:u,isNarrowLayout:m,numberOfRows:h=20,branding:x}=e,{event:p}=(0,i.useContext)(o.y$),v=null==p||null==(t=p.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,a.jsxs)(r.az,{children:[!m&&(0,a.jsx)(d.U,{branding:x}),n&&(0,a.jsxs)(r.so,{hideBelow:"md",gap:"lg",bg:"surface.s1",p:"sm",elevation:{mdDown:"2"},children:[(0,a.jsx)(r.az,{w:"[200px]",h:"[34px]",bg:"surface.s2",br:"sm"}),(0,a.jsx)(r.az,{w:"[84px]",h:"[34px]",bg:"surface.s2",br:"sm"})]}),(0,a.jsxs)(r.so,{direction:"column",gap:"sm",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)(r.so,{direction:"column",gap:"sm",px:"sm",pt:n?void 0:"sm",pb:"sm",children:[(0,a.jsx)(r.az,{h:"[34px]",pt:n?void 0:"sm"}),!u&&(0,a.jsxs)(r.so,{align:"center",gap:"lg",children:[(0,a.jsx)(s._V,{width:"3xl",height:"3xl",src:"/static/images/placeholders/tournament.svg",alt:"Tournament placeholder"}),(0,a.jsx)(r.az,{w:"[150px]",h:"xl",bg:"surface.s2",br:"sm"})]})]}),(0,a.jsx)(r.az,{pt:"sm",children:(0,a.jsx)(c.e,{rows:h})}),(0,a.jsx)(r.az,{p:"sm",children:(0,a.jsx)(r.az,{h:"[150px]",bg:"surface.s2",br:"lg"})})]}),v&&(0,a.jsxs)(l.Zp,{children:[(0,a.jsx)(l.Zp.Header,{titleId:"standings_tracker_title"}),(0,a.jsx)(r.az,{h:"[542px]"})]})]})]})}},76186:(e,t,n)=>{n.r(t),n.d(t,{default:()=>S});var a=n(6029),s=n(34199),r=n(46787),i=n(10174),l=n(76356),o=n(55729),d=n(90510),c=n(45860),u=n(46222),m=n(18970),h=n(56494),x=n(33140),p=n(64006),v=n(173),g=n(68789),f=n(60682),j=n(88505),b=n(76155),y=n(64046),w=n(6086),k=n(74207);let C=e=>{var t,n;let{team:r}=e,o=null==(t=r.subTeams)?void 0:t[0],d=null==(n=r.subTeams)?void 0:n[1];return(0,a.jsxs)(l.so,{direction:"column",align:"center",flex:"[1 0 0px]",overflow:"hidden",children:[o&&d?(0,a.jsxs)(l.so,{align:"center",justify:"center",gap:"[10px]",mb:"xs",children:[(0,a.jsx)(s.pY,{id:o.id,name:o.name,size:24},o.id),(0,a.jsx)(s.pY,{id:d.id,name:d.name,size:24},d.id)]}):(0,a.jsx)(s.pY,{id:r.id,name:r.name,size:24}),o&&d?[(0,a.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,a.jsx)(j.Rm,{team:o,short:!0})},o.id),(0,a.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,a.jsx)(j.Rm,{team:d,short:!0})},d.id)]:(0,a.jsx)(i.EY,{truncate:!0,textStyle:"assistive.default",w:"100%",textAlign:"center",children:(0,a.jsx)(j.Rm,{team:r})})]})},A=e=>{let{provider:t,market:n,onClick:s}=e,r=n.event;return(0,a.jsxs)(l.az,{bg:"surface.s1",p:"sm",children:[(0,a.jsx)(p.tj,{event:r,children:(0,a.jsxs)(l.so,{justify:"center",align:"center",_hover:{bg:"neutrals.nLv4"},cursor:"pointer",p:"xs",mb:"xs",br:"sm",children:[(0,a.jsx)(C,{team:r.homeTeam}),(0,a.jsxs)(l.so,{direction:"column",justify:"center",align:"center",mx:"md",flex:"[1 0 0px]",children:[(0,a.jsx)(i.EY,{textStyle:"display.medium",children:(0,a.jsx)(d.ib,{value:1e3*r.startTimestamp})}),(0,a.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,a.jsx)(d.XU,{value:1e3*r.startTimestamp})})]}),(0,a.jsx)(C,{team:r.awayTeam})]})}),(0,a.jsx)(l.az,{mb:"-xs",children:(0,a.jsx)(w.A,{selectedProvider:t,market:n,onClick:s,hideMarketName:!0,secondary:!0})})]})},S=e=>{var t,n;let{preferRecommendedPrematch:d,showHeader:j,ref:w}=e,{event:C,location:S}=(0,o.useContext)(m.y$),{isMobile:_}=(0,i.$c)(),[T,R]=(0,o.useState)(!1),I=(0,g.F0)(C),[M]=(0,f.Z)(I),z=null==(t=C.tournament)?void 0:t.id,H=null==(n=C.tournament)?void 0:n.category.sport.slug,B=M&&z,F=S===m.cb.Widget,{data:E,error:P}=(0,c.Ay)(B?r.npy.recommendedPrematch(M,z):null),L=!d&&P&&M&&H,{data:D,error:O}=(0,c.Ay)(L?r.npy.recommendedPrematchTopVoted(M,H):null),Q=E||D,K=(0,o.useMemo)(()=>{let e=null==Q?void 0:Q.odds.filter(e=>e.id!==C.id);return T?e:null==e?void 0:e.slice(0,4)},[Q,T]),W=null==K?void 0:K.reduce((e,t)=>{let n=t.event.tournament.id;return e[n]?e[n].push(t):e[n]=[t],e},{}),{ref:G,makeOnClick:U}=(0,y.kW)({type:y.jF.Compliance,countryOddsProvider:I}),Y=_||S!==m.cb.EventPage;return K?(0,a.jsxs)(l.az,{ref:G,children:[(0,a.jsxs)(u.Zp,{variant:"desktop-only",children:[j&&(0,a.jsx)("div",{ref:w,children:(0,a.jsx)(u.Zp.Header,{titleId:"featured_odds"})}),(0,a.jsx)(l.so,{justify:"flex-end",align:"center",p:"sm",children:(0,a.jsx)(k.$,{provider:I})}),(0,a.jsxs)(l.BJ,{gap:"sm",px:{mdDown:"sm",md:F?"sm":void 0},children:[W&&Object.keys(W).map((e,t)=>{var n;let r=W[+e],o=r[0].event;return(0,a.jsx)(u.Zp,{variant:"mobile-only",children:(0,a.jsxs)(l.az,{px:{md:"sm"},pb:"md",borderTop:t?"1px solid {colors.neutrals.nLv4}":void 0,children:[(0,a.jsxs)(l.so,{justify:"center",align:"center",px:"lg",py:"md",children:[o.tournament.uniqueTournament?(0,a.jsx)(s.eD,{id:o.tournament.uniqueTournament.id,size:24}):(0,a.jsx)(s.l3,{id:o.tournament.id,size:24}),(0,a.jsx)(p.Mq,{tournament:o.tournament,seasonId:null==(n=o.season)?void 0:n.id,children:(0,a.jsx)(i.EY,{textStyle:"display.micro",ml:"lg",_hover:{color:"neutrals.nLv3"},children:(0,a.jsx)(b.J,{tournament:o.tournament})})})]}),(0,a.jsx)(l.BJ,{gap:"[1px]",bg:"neutrals.nLv4",children:r.map(e=>(0,a.jsx)(A,{provider:I,market:e,onClick:U(e.marketName,y.ki.OddsValue)},e.id))})]})},e)}),(null==Q?void 0:Q.odds.length)&&Q.odds.length>4&&(0,a.jsx)(x.d,{isOpen:T,onClick:()=>R(!T)})]})]}),Y&&(0,a.jsx)(l.az,{mt:"sm",children:(0,a.jsx)(v.z,{provider:I})})]}):P&&O?null:(0,a.jsx)(h.a,{})}},77262:(e,t,n)=>{n.d(t,{GM:()=>h,N4:()=>o,UG:()=>j,Vd:()=>u,XL:()=>d,c7:()=>m,cY:()=>c,fN:()=>f,jp:()=>p,mh:()=>x,ps:()=>v});var a=n(46787),s=n(17887),r=n(56132),i=n(91113),l=n(14831);let o=[a.QCR.IceHockey,a.QCR.AmericanFootball,a.QCR.Baseball,a.QCR.Handball,a.QCR.Basketball,a.QCR.Cricket],d=[a.QCR.IceHockey,a.QCR.AmericanFootball,a.QCR.Baseball,a.QCR.Handball,a.QCR.Football];var c=function(e){return e.FootballForward="F",e.FootballDefender="D",e.FootballMidfielder="M",e.FootballGoalkeeper="G",e.BasketballForward="F",e.BasketballGuard="G",e.BasketballCenter="C",e.AmericanFootballPunter="P",e.AmericanFootballPuntReturner="PR",e.AmericanFootballLongSnapper="LS",e.AmericanFootballKicker="K",e.AmericanFootballTackle="T",e.AmericanFootballOffensiveTackle="OT",e.AmericanFootballOffensiveLineman="OL",e.AmericanFootballOffensiveGuard="OG",e.AmericanFootballGuard="G",e.AmericanFootballCenter="C",e.AmericanFootballQuarterback="QB",e.AmericanFootballRunningBack="RB",e.AmericanFootballFullback="FB",e.AmericanFootballTightEnd="TE",e.AmericanFootballWideReceiver="WR",e.AmericanFootballStrongSafety="SS",e.AmericanFootballSafety="SAF",e.AmericanFootballFreeSafety="FS",e.AmericanFootballDefensiveLineman="DL",e.AmericanFootballDefensiveBack="DB",e.AmericanFootballCornerBack="CB",e.AmericanFootballNoseTackle="NT",e.AmericanFootballDefensiveTackle="DT",e.AmericanFootballDefensiveEnd="DE",e.AmericanFootballOutsideLineback="OLB",e.AmericanFootballMiddleLineback="MLB",e.AmericanFootballLineback="LB",e.AmericanFootballInsideLineback="ILB",e.IceHockeyDefenseman="D",e.IceHockeyGoalie="G",e.IceHockeyCenter="C",e.IceHockeyLeftWing="L",e.IceHockeyRightWing="R",e.IceHockeyForward="F",e.BaseballPitcher="P",e.BaseballCatcher="C",e.BaseballFirstBase="1B",e.BaseballSecondBase="2B",e.BaseballThirdBase="3B",e.BaseballShortstop="SS",e.BaseballLeftField="LF",e.BaseballCenterField="CF",e.BaseballRightField="RF",e.BaseballDesignatedHitter="DH",e.BaseballPinchHitter="PH",e.BaseballPinchRunner="PR",e.BaseballBaseRunner="BR",e.BaseballOutfield="OF",e.BaseballInfield="IF",e.BaseballStartingPitcher="SP",e.BaseballReliefPitcher="RP",e.BaseballCloser="CP",e.BaseballUtility="UT",e.BaseballUtilityInfielder="UI",e.BaseballUtilityOutfielder="UO",e.BaseballRightHandedPitcher="RHP",e.BaseballLeftHandedPitcher="LHP",e.BaseballRightHandedStarter="RHS",e.BaseballLeftHandedStarter="LHS",e.BaseballRightHandedReliever="RHR",e.BaseballLeftHandedReliever="LHR",e.BaseballBatter="B",e.BaseballHitter="H",e.BaseballRunner="R",e.BaseballUnknown="U",e.ESportsHardCarry="HC",e.ESportsMid="MID",e.ESportsOfflaner="OFF",e.ESportsSoftSupport="SS",e.ESportsHardSupport="HS",e.ESportsAdc="ADC",e.ESportsJun="JUN",e.ESportsTop="TOP",e.ESportsSup="SUP",e.HandballGoalkeeper="G",e.HandballRightWing="RW",e.HandballLeftWing="LW",e.HandballRightBack="RB",e.HandballLeftBack="LB",e.HandballCentralBack="CB",e.HandballPivot="P",e.CricketBatter="BM",e.CricketAllrounder="AR",e.CricketKeeper="WK",e.CricketBowler="B",e}({}),u=function(e){return e.AmericanFootballQuarterback="am_football_quarterbacks",e.AmericanFootballRunningBack="am_football_running_backs",e.AmericanFootballReceiver="am_football_receivers",e.AmericanFootballOffensiveLine="am_football_offensive_line",e.AmericanFootballDefensiveLine="am_football_defensive_line",e.AmericanFootballDefensiveBack="am_football_defensive_backs",e.AmericanFootballLineback="am_football_linebackers",e.AmericanFootballSpecialTeam="am_football_special_teams",e.BaseballPitcher="pitcher",e.BaseballCatcher="catcher",e.BaseballInfield="infield",e.BaseballOutfield="outfield",e.BaseballHitter="hitter",e.BaseballRunner="runner",e.BaseballBatter="batter",e.IceHockeyForward="forward",e.IceHockeyDefenseman="defenseman",e.IceHockeyGoalie="goalie",e.HandballGoalkeeper="handball.goalkeeper",e.HandballBack="handball.back",e.HandballWinger="handball.winger",e.HandballPivot="handball.pivot",e.Unknown="player.position.unknown",e}({});let m=(e,t)=>{switch(t){case a.QCR.AmericanFootball:switch(e){case"QB":return"am_football_quarterbacks";case"RB":case"FB":return"am_football_running_backs";case"WR":case"TE":return"am_football_receivers";case"OT":case"OL":case"OG":case"C":case"T":case"G":return"am_football_offensive_line";case"DT":case"DL":case"DE":case"NT":return"am_football_defensive_line";case"DB":case"SS":case"FS":case"CB":case"SAF":return"am_football_defensive_backs";case"OLB":case"LB":case"MLB":case"ILB":return"am_football_linebackers";case"P":case"PR":case"LS":case"K":return"am_football_special_teams";default:return"player.position.unknown"}case a.QCR.Baseball:switch(e){case"P":case"SP":case"CP":case"RP":case"RHP":case"LHP":case"LHS":case"RHS":case"LHR":case"RHR":return"pitcher";case"C":return"catcher";case"1B":case"2B":case"3B":case"SS":case"IF":case"UI":return"infield";case"LF":case"CF":case"RF":case"OF":case"UO":return"outfield";case"H":case"DH":case"PH":return"hitter";case"R":case"PR":case"BR":return"runner";case"B":return"batter";default:return"player.position.unknown"}case a.QCR.IceHockey:switch(e){case"F":case"L":case"C":case"R":return"forward";case"D":return"defenseman";case"G":return"goalie";default:return"player.position.unknown"}case a.QCR.Handball:switch(e){case"RB":case"LB":case"CB":return"handball.back";case"LW":case"RW":return"handball.winger";case"P":return"handball.pivot";case"G":return"handball.goalkeeper";default:return"player.position.unknown"}default:return e||"player.position.unknown"}},h=(e,t)=>{let n={};for(let a=0;a{switch(e){case"F":case"am_football_quarterbacks":case"am_football_running_backs":case"am_football_receivers":case"am_football_offensive_line":case"handball.winger":case"forward":return"colors.status.live";case"M":case"am_football_special_teams":case"handball.pivot":return"colors.secondary.default";case"D":case"am_football_defensive_backs":case"am_football_defensive_line":case"am_football_linebackers":case"handball.back":case"defenseman":return"colors.primary.default";case"G":case"handball.goalkeeper":case"goalie":return"colors.status.val";default:return"colors.neutrals.nLv3"}},p=e=>e.type===a.YVh.Person,v=(e,t,n,s,i,o,d,c)=>e===a.QCR.AmericanFootball?[{tabKey:r.x.Details,item:"details"},{tabKey:r.x.Matches,item:"matches",values:{sport:(0,l.ap)(e)}},{tabKey:r.x.Standings,item:"app.standings",isHidden:!t},{tabKey:r.x.PlayerStatistics,item:"tab_player_stats",isHidden:!d},{tabKey:r.x.Squad,item:"am_football_roster",isHidden:!s},{tabKey:r.x.Statistics,item:"statistics",isHidden:!i},{tabKey:r.x.Media,item:"media",isHidden:!o}]:[{tabKey:r.x.Details,item:"details"},{tabKey:r.x.Matches,item:"matches",values:{sport:(0,l.ap)(e)}},{tabKey:r.x.Standings,item:"app.standings",isHidden:!t},{tabKey:r.x.Squad,item:"squad",isHidden:!s,values:{gender:c}},{tabKey:r.x.TopPlayers,item:"top_players",values:{gender:c},isHidden:!n},{tabKey:r.x.Statistics,item:"statistics",isHidden:!i},{tabKey:r.x.Media,item:"media",isHidden:!o}],g=[a.QCR.AmericanFootball,a.QCR.Tennis];function f(e,t){return -1!==g.indexOf(e)&&9464===t}function j(e){return e?e.reduce((e,t)=>{let n=e[e.length-1];return n&&n.transfer.player.id===t.player.id?n.additionalTransfers.push(t):e.push({transfer:t,additionalTransfers:[]}),e},[]):[]}},79634:(e,t,n)=>{n.d(t,{q:()=>a.q});var a=n(39975)},81349:(e,t,n)=>{n.d(t,{A:()=>c,d:()=>u});var a=n(46787),s=n(494),r=n(45860),i=n(90438),l=n(37455),o=n(72753),d=n(79082);let c=(e,t)=>{let[n]=(0,d.Ay)({routeKey:i.xW.Betting,params:{}}),s=(null==n?void 0:n.boostId)?+n.boostId:void 0,l=null==t?void 0:t.betBoosts.find(e=>e.event.id===s),{data:o}=(0,r.Ay)(s&&!l?a.bnp.betBoost(s,e):null);return{selectedBoost:null==o?void 0:o.betBoost,selectedEventId:s}},u=()=>{let e=(0,s.d4)(o.LQ);return(0,s.d4)(l.Zw)&&"IT"!==e}},86522:(e,t,n)=>{n.d(t,{g:()=>a});let a=e=>e.branding.config},89721:(e,t,n)=>{n.d(t,{U:()=>l});var a=n(6029),s=n(10174),r=n(37549),i=n(53255);let l=e=>{let{branding:t,location:n,entityId:l,...o}=e,{isDesktop:d}=(0,s.$c)();return d&&t?(0,a.jsx)(r.A.Header,{...o,variant:"left-aligned",actionComponent:(0,a.jsx)(i.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:n,entityId:l})}):(0,a.jsx)(r.A.Header,{...o})}},89937:(e,t,n)=>{n.r(t),n.d(t,{default:()=>C});var a=n(6029),s=n(10174),r=n(76356),i=n(94565),l=n(55729),o=n(46222),d=n(56494),c=n(22830),u=n(81484),m=n(18858),h=n(15341),x=n(5062),p=n(6813),v=n(29695),g=n(96678);let f=e=>{let{comments:t,isOpen:n}=e,{rootRef:i}=(0,l.useContext)(g.XM),{isMobile:o}=(0,s.$c)();return(0,a.jsx)("div",{ref:o?void 0:i,children:(0,a.jsxs)(s.Ee,{h:{md:n?"[370px]":"[538px]"},bg:["neutral.highlight","surface.s1"],children:[(0,a.jsx)(r.so,{direction:"column",p:"md",gap:"lg",children:t.map(e=>(0,a.jsx)(v.y,{comment:e},e.id))}),(0,a.jsx)(r.az,{borderTop:"1px solid {colors.neutrals.nLv4}",hideBelow:"md",mb:"lg",children:(0,a.jsx)(p.p,{graphic:"hockey-shotmap",descriptionMessageId:"You've seen all available plays for this period."})})]})})};var j=n(60128),b=n(33559);let y=["scoreChange","penaltyScored","penaltyMissed","penaltySaved","faceOff","shotOffTarget","shotBlocked","shotSaved","suspension","hit"],w=["1st","2nd","3rd"],k=e=>{let{isOpen:t,periods:n,shots:o,activeTab:d,setActiveTab:c,setIsOpen:h}=e,{rootRef:p}=(0,l.useContext)(g.XM),v=(0,m.Ay)(),{isMobile:f}=(0,s.$c)(),b=n.map((e,t)=>({tabKey:t,tabValue:(0,a.jsx)(u.fP,{id:e,short:!0})}));return(0,a.jsxs)(i.PI,{bg:"surface.s1",borderBottom:"onSurface.nLv4",pb:t?"sm":void 0,elevation:[2,void 0],top:v,isStickingDisabled:!f,children:[(0,a.jsx)(r.az,{p:"sm",children:(0,a.jsx)(s.tU,{variant:"secondary",initialValue:d,onChange:e=>{if(c(e),p.current){var t;null==(t=p.current.children[0])||t.scrollTo(0,0)}else window.scrollTo(0,135)},fullWidthTabs:!0,children:(0,a.jsx)(s.tU.List,{children:b.map((e,t)=>(0,a.jsx)(s.tU.Tab,{tabKey:e.tabKey,style:{textTransform:"uppercase"},children:e.tabValue},t))})})}),(0,a.jsx)(x.A,{isOpen:t,setIsOpen:h,borderTop:"onSurface.nLv4",title:"Event Map"}),t&&(0,a.jsx)(r.az,{px:{md:"sm"},children:(0,a.jsx)(j.A,{shots:o})})]})},C=()=>{var e;let[t,n,s]=(0,h.A)("ice.hockey.playbyplay.open",!0),{textCommentary:i,periods:u}=(0,c.q)(),[m,x]=(0,l.useState)(0);(0,l.useEffect)(()=>{u.length&&x(u.length-1)},[!!u.length]);let p=u[m],v=(null==i||null==(e=i[p])?void 0:e.filter(e=>y.includes(e.type)&&!!e.location))||[],j=v.map(e=>({id:e.id,x:e.location.x,y:e.location.y,type:(0,b.rk)(e.type)}))||[];return s?(0,a.jsx)(g.v9,{comments:t?v:[],children:(0,a.jsxs)(o.Zp,{variant:"desktop-only",children:[(0,a.jsx)(o.Zp.Header,{titleId:"cricket.pbp"}),(0,a.jsxs)(r.az,{position:"relative",children:[(0,a.jsx)(k,{periods:u.length?u:w,isOpen:t,setIsOpen:n,activeTab:m,setActiveTab:x,shots:j}),(null==i?void 0:i[p])?(0,a.jsx)(f,{comments:i[p],isOpen:t}):(0,a.jsx)(r.az,{h:"[512px]",children:(0,a.jsx)(d.a,{})})]})]})}):null}},90547:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(90142),s=n(6029),r=n(39895);function i(e){var{fillOpacity:t=".06"}=e,n=(0,a.T)(e,["fillOpacity"]);return(0,s.jsx)(r.A,Object.assign({width:24,height:24,viewBox:"0 0 24 24",fillOpacity:t},n,{children:(0,s.jsx)("path",{d:"M23.824 12c.097 0 .176.079.176.176v11.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 23.824v-5.648C0 18.08.079 18 .176 18h17.648a.176.176 0 0 0 .176-.176v-5.648c0-.097.079-.176.176-.176zm0-12c.097 0 .176.079.176.176v5.648a.176.176 0 0 1-.176.176H6.176A.176.176 0 0 0 6 6.176v5.648a.176.176 0 0 1-.176.176H.176A.176.176 0 0 1 0 11.824V.176C0 .08.079 0 .176 0z",fill:n.fill,fillRule:"evenodd"})}))}},91476:(e,t,n)=>{n.d(t,{J:()=>a,x:()=>s});let a="bonus-odds-cta-seen",s="bet-boost-cta-seen"},92208:(e,t,n)=>{n.d(t,{WG:()=>c,YL:()=>m,_z:()=>u,lE:()=>r,o_:()=>i});var a=n(46787);let s={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},r=e=>e&&(s[e]||e),i=e=>{if(e)return e===a.YT8.Male?"Male":e===a.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"}},c=(e,t)=>{var n;return null==(n=l[t])?void 0:n[e]},u=(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]}},96688:(e,t,n)=>{n.d(t,{y:()=>a});function a(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")}}}]);