!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]="1ac1dd07-7390-4dc7-b984-c1a6b240dc3c",e._sentryDebugIdIdentifier="sentry-dbid-1ac1dd07-7390-4dc7-b984-c1a6b240dc3c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5247],{8385:(e,t,s)=>{s.d(t,{ai:()=>r,fK:()=>a,mn:()=>i});var n=s(21377),l=s(71046),r=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({});function i(e,t){let s,n;return void 0===e.score.scoring&&t===e.points.length-1?{homeColor:"colors.status.live",awayColor:"colors.status.live"}:(1===e.score.throwing?(s=t%2==0?"colors.neutrals.nLv1":"colors.neutrals.nLv3",n=t%2!=0?"colors.neutrals.nLv1":"colors.neutrals.nLv3"):(s=t%2!=0?"colors.neutrals.nLv1":"colors.neutrals.nLv3",n=t%2==0?"colors.neutrals.nLv1":"colors.neutrals.nLv3"),{homeColor:s,awayColor:n})}let a=e=>(0,l.c5)(e)===n.QCR.Darts?n.bnp.pointByPoint(e.id):null},19240:(e,t,s)=>{s.d(t,{e:()=>a});var n=s(6029),l=s(33144),r=s(76356),i=s(68379);let a=e=>{var t;let{team:s,isRight:a,seeding:o,hasFlag:d=!0}=e;return null==s||!s.country||s.national?(0,n.jsx)(l.p,{size:48,id:s.id,name:s.name}):(0,n.jsxs)(r.az,{position:"relative",children:[d?(0,n.jsx)(l.p,{hasFlag:!0,id:s.id,name:s.name,size:40,alpha2:null==(t=s.country)?void 0:t.alpha2,right:a}):(0,n.jsx)(l.p,{id:s.id,name:s.name,size:20}),o&&(0,n.jsx)(i.J,{seed:o,left:a?"0":void 0,right:a?void 0:"0",h:"md",minW:"lg",textStyle:"assistive.micro",bottom:"2xs"})]})}},58918:(e,t,s)=>{s.d(t,{K:()=>o});var n=s(6029),l=s(33144),r=s(76356),i=s(70591),a=s(68379);let o=e=>{var t,s;let{sport:o,teams:d,seeding:c,size:u,hideFlags:x,ignoreLink:m}=e;return(0,n.jsxs)(r.so,{children:[(0,n.jsx)(i.gT,{sport:o,team:d[0],ignoreLink:m,children:(0,n.jsx)(l.p,{hasFlag:!0,id:d[0].id,name:d[0].name,size:u||40,alpha2:x||null==(t=d[0].country)?void 0:t.alpha2,boxProps:{mr:-8}})}),(0,n.jsx)(i.gT,{sport:o,team:d[1],ignoreLink:m,children:(0,n.jsx)(l.p,{hasFlag:!0,id:d[1].id,name:d[1].name,size:u||40,alpha2:x||null==(s=d[1].country)?void 0:s.alpha2,right:!0})}),(0,n.jsx)(a.J,{seed:c,transform:"translateX(100%)"})]})}},68379:(e,t,s)=>{s.d(t,{J:()=>o});var n=s(6029),l=s(44194),r=s(76356),i=s(93338),a=s(55365);let o=e=>{let{seed:t,colorless:s,position:o="absolute",left:d,right:c,bottom:u="0",h:x="lg",minW:m="xl",textStyle:g="assistive.default",...j}=e;return t?(0,n.jsx)(r.ov,{display:"inline-flex",position:o,bottom:u,left:d,right:c,br:"sm",style:s?void 0:{background:i.S.var((0,a.mq)(t))},h:x,minW:m,zIndex:"button",...j,children:(0,n.jsx)(l.EY,{textStyle:g,color:s?"neutrals.nLv1":"surface.s1",lineHeight:1,children:t})}):null}},95247:(e,t,s)=>{s.d(t,{g:()=>eR});var n=s(6029),l=s(21377),r=s(55729),i=s(62859),a=s(76356),o=s(98559),d=s(62827),c=s(44194),u=s(90248);let x=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(i.y$),a=e.status.type===l.XUj.InProgress;return(0,n.jsxs)(c.EY,{textStyle:"assistive.default",color:a?"status.live":"neutrals.nLv3",children:[(0,n.jsx)(u.A,{id:"event.aggregated.short"}),": ",t.aggregated," - "," ",s.aggregated]})};var m=s(21501),g=s(73022);function j(e){let{event:t}=e;return(0,m.hX)()?null:(0,n.jsx)(g.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{timeParts:t,delta:s,formattedTime:l}=e,[r]=t;return s<0||r>=1?null:(0,n.jsx)(c.EY,{mt:"sm",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",display:"block",children:l})}})}var h=s(93338),p=s(54409);let v={[l.sAb.Distance]:"mma_position_stance",[l.sAb.Ground]:"ground_mma",[l.sAb.GroundGrappleRed]:"ground_grapple_red_mma",[l.sAb.GroundGrappleBlue]:"ground_grapple_blue_mma",[l.sAb.GrappleRed]:"mma_position_clinch_by_red",[l.sAb.GrappleBlue]:"mma_position_clinch_by_blue",[l.sAb.Pause]:"pause"};function f(e){let{fightState:t}=e;return v[t]?(0,n.jsx)(u.A,{id:v[t]}):null}let y=e=>[l.sAb.GroundGrappleBlue,l.sAb.Distance,l.sAb.Ground,l.sAb.GrappleBlue].includes(e),b=e=>[l.sAb.GroundGrappleRed,l.sAb.Distance,l.sAb.Ground,l.sAb.GrappleRed].includes(e),S=e=>{let{fightState:t}=e,s=b(t),r=y(t);return(0,n.jsxs)(a.ov,{w:"100%",h:"8xl",px:"sm",flexDirection:"column",children:[(0,n.jsx)(c.EY,{h:"lg",textStyle:"display.medium",mb:"md",mt:"sm",children:(0,n.jsx)(u.A,{id:"current_position_mma"})}),(0,n.jsxs)(a.so,{h:"2xl",w:"100%",p:"sm",backgroundColor:"surface.s2",br:"md",align:"center",justify:"space-between",children:[(0,n.jsx)(p.p0t,{fill:s?"mmaSpecific.red.default":"onSurface.nLv3"}),(0,n.jsx)(c.EY,{style:{color:h.S.var(function(e,t,s){return e===l.sAb.Pause?"colors.neutrals.nLv3":t&&!s?"colors.mma.red.primary":s&&!t?"colors.mma.blue.primary":"colors.neutrals.nLv1"}(t,s,r))},textStyle:"body.medium",children:(0,n.jsx)(f,{fightState:t})}),(0,n.jsx)(p.p0t,{fill:r?"mmaSpecific.blue.default":"onSurface.nLv3",style:{transform:"scaleX(-1)"}})]})]})};var w=s(99064),L=s(8703),T=s(65078),C=s(87763);let A=e=>{let{isWinner:t}=e;return(0,n.jsx)(w.EY,{font:"display.extraLarge",c:t?"onSurface.nLv1":"onSurface.nLv3",block:!0,children:(0,n.jsx)(u.A,{id:t?"standings.label.wins":"standings.label.losses"})})},_=e=>{let{event:t}=e;return t.fightState===l.sAb.Pause?(0,n.jsx)(u.A,{id:"stoppage_mma"}):t.status.type===l.XUj.InProgress?(0,n.jsx)(u.A,{id:"in_progress_mma"}):(0,n.jsx)(C.fP,{id:(0,d.B_)(t)})},E=e=>{let{winnerCode:t,event:s}=e,r=(0,L.Mh)(s);return t===l.Jfo.NoContest||t===l.Jfo.Draw?(0,n.jsxs)(w.az,{children:[(0,n.jsx)(w.EY,{font:"display.extraLarge",c:"onSurface.nLv1",as:"div",align:"center",children:(0,n.jsx)(u.A,{id:t===l.Jfo.Draw?"draw":"no_contest_mma"})}),(0,n.jsx)(w.EY,{c:"onSurface.nLv3",as:"div",align:"center",children:s.finalRound?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",r&&(0,n.jsxs)(n.Fragment,{children:["(",r,")"]})]}):(0,n.jsx)(n.Fragment,{children:"-"})})]}):t===l.Jfo.Left||t===l.Jfo.Right?(0,n.jsxs)(w.az,{children:[(0,n.jsxs)(w.so,{justify:"center",children:[(0,n.jsx)(A,{isWinner:t===l.Jfo.Left}),(0,n.jsx)(w.EY,{as:"div",font:"display.extraLarge",c:"onSurface.nLv3",w:24,h:24,align:"center",children:"-"}),(0,n.jsx)(A,{isWinner:t===l.Jfo.Right})]}),(0,n.jsx)(w.so,{justify:"center",align:"center",h:"lg",children:(0,n.jsxs)(w.EY,{c:"onSurface.nLv3",as:"div",px:"xss",align:"center",children:[s.winType&&s.winType+" | ",(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",r&&(0,n.jsxs)(n.Fragment,{children:["(",r,")"]})]})})]}):null},Y=e=>{let{event:t}=e,{status:s,startTimestamp:r}=t,i=s.code===l.sum.Started,a=s.type===l.XUj.NotStarted,o=(0,L.Sw)(t),c=i||a&&1e3*r{let{innings:t,scoreKeys:s,isWinner:l,isLive:r}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let s=null==t?void 0:t[e];return(0,n.jsx)(c.EY,{display:"block",textStyle:"display.medium",color:r?"status.live":l?"neutrals.nLv1":"neutrals.nLv3",children:R.gj(s)},e)})})};function W(){let{event:e,leftScore:t,rightScore:s,leftTeam:o,rightTeam:d}=(0,r.useContext)(i.y$),u=e.status.type===l.XUj.InProgress,x=e.winnerCode===l.Jfo.Left,m=e.winnerCode===l.Jfo.Right,g=[...new Set([...Object.keys(t.innings||{}),...Object.keys(s.innings||{})])].sort(),j=R.KY(g,t.innings),h=R.KY(g,s.innings);return(0,n.jsxs)(a.ov,{children:[(0,n.jsx)(a.az,{flexGrow:0,flexShrink:0,flexBasis:"8xl",children:(0,n.jsxs)(a.so,{align:"flex-end",direction:"column",children:[(0,n.jsx)(I,{innings:t.innings,scoreKeys:g,isWinner:x,isLive:u&&e.currentBattingTeamId===o.id}),(0,n.jsxs)(c.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:[j," ov"]})]})}),(0,n.jsx)(a.az,{alignSelf:"stretch",mx:"sm",children:(0,n.jsx)(a.cG,{color:"neutrals.nLv4",borderInlineEndStyle:"solid",orientation:"vertical"})}),(0,n.jsx)(a.az,{flexGrow:0,flexShrink:0,flexBasis:"8xl",children:(0,n.jsxs)(a.so,{align:"flex-start",direction:"column",children:[(0,n.jsx)(I,{innings:s.innings,scoreKeys:g,isWinner:m,isLive:u&&e.currentBattingTeamId===d.id}),(0,n.jsxs)(c.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:[h," ov"]})]})})]})}let z=e=>{let{leftScore:t,rightScore:s}=e;return void 0===t.bottomScore&&void 0===s.bottomScore?(0,n.jsx)(c.EY,{color:"status.live",children:(0,n.jsx)(u.A,{id:"started"})}):(0,n.jsxs)(a.so,{columnGap:"xs",children:[void 0!==t.bottomScore&&void 0!==s.bottomScore&&(0,n.jsxs)(a.so,{children:[(0,n.jsx)(c.EY,{color:"status.live",children:t.bottomScore}),(0,n.jsx)(c.EY,{color:"status.live",children:"-"}),(0,n.jsx)(c.EY,{color:"status.live",children:s.bottomScore})]}),void 0!==t.bottomScoreExtra&&void 0!==s.bottomScoreExtra&&(0,n.jsxs)(a.so,{children:[(0,n.jsxs)(c.EY,{color:"status.live",children:["(",t.bottomScoreExtra]}),(0,n.jsx)(c.EY,{color:"status.live",children:"-"}),(0,n.jsxs)(c.EY,{color:"status.live",children:[s.bottomScoreExtra,")"]})]})]})};var F=s(8385),U=s(82169);let X=e=>{let{eventId:t,throwing:s,leftScore:l,rightScore:r}=e,{isDesktopLarge:i}=(0,c.$c)();return(0,n.jsxs)(a.so,{columnGap:"xs",align:"center",children:[s===F.ai.Home?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"}),(0,n.jsxs)(a.so,{justify:"center",align:"center",columnGap:"xs",children:[(0,n.jsx)(U.cU,{eventId:t,changeKey:"homeScore.display",score:l.topScore,fontSize:i?28:20,h:i?30:22,w:i?52:36,fontWeight:"bold",color:"sofaSingles.live"}),(0,n.jsx)(c.EY,{fontSize:i?"2xl":"xl",fontWeight:700,color:"status.live",children:"-"}),(0,n.jsx)(U.cU,{eventId:t,changeKey:"awayScore.display",score:r.topScore,fontSize:i?28:20,h:i?30:22,w:i?52:36,fontWeight:"bold",color:"sofaSingles.live",align:"flex-start"})]}),s===F.ai.Away?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"})]})};var G=s(69759);let D=e=>{let{event:t,homeScore:s,awayScore:l}=e,r=(0,G.J)(t,s),i=(0,G.J)(t,l);return(0,n.jsxs)(a.so,{direction:"column",gap:"sm",align:"center",children:[(0,n.jsx)(X,{eventId:t.id,throwing:t.firstToServe,leftScore:r,rightScore:i}),(0,n.jsx)(z,{leftScore:r,rightScore:i})]})};var P=s(84719);let Q=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(i.y$);return e.status.type===l.XUj.InProgress?(0,n.jsx)(D,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(P.A,{})};var H=s(62042);let B=["period1","period2","period3","period4","period5"],J=(e,t)=>Object.keys(e).filter(s=>B.includes(s)&&void 0!==e[s]&&void 0!==t[s]),N=(e,t,s,n,l,r)=>s&&l===r?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",$=(e,t,s,n,l)=>e?"secondary.default":n&&l&&(t?n>l:l>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",M=(e,t,s,n)=>{let r=e.status.type===l.XUj.Finished;if(e.status.type===l.XUj.InProgress||e.status.code===l.sum.Interrupted){var i,a;return n?null!=(i=t.point)?i:0:null!=(a=s.point)?a:0}if(r)if("Ended"===e.status.description)return n?t.current:s.current;else if(n)return 1===e.winnerCode?"W":"L";else return 2===e.winnerCode?"W":"L"},O=()=>{let{event:e,leftScore:t,rightScore:s}=(0,r.useContext)(i.y$),o=e.status.type===l.XUj.InProgress,d=J(t,s),x=d?d.length-1:0,m=void 0!==e.winnerCode,g=e.status.type===l.XUj.Finished&&e.status.code===l.sum.Walkover,j=e.status.type===l.XUj.Finished&&[l.sum.HomeDefaulted,l.sum.AwayDefaulted].includes(e.status.code),h=(0,n.jsx)(p.OXq,{position:"absolute",w:"12",h:"16",className:(0,H.AH)({left:"-lg",fill:"secondary.default"})});return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",children:[d.map((l,r)=>(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",py:"xs",children:[(0,n.jsxs)(a.az,{position:"relative",children:[1===e.firstToServe&&o&&0===r&&h,(0,n.jsx)(U.cU,{eventId:e.id,changeKey:"homeScore.".concat(l),score:t[l],fontWeight:"bold",color:N(t[l],s[l],o,!0,r,x),backgroundColor:o&&r===x?"sofaSingles.live":"unset"})]}),(0,n.jsxs)(a.az,{position:"relative",children:[2===e.firstToServe&&o&&0===r&&h,(0,n.jsx)(U.cU,{eventId:e.id,changeKey:"awayScore.".concat(l),score:s[l],fontWeight:"bold",color:N(t[l],s[l],o,!1,r,x),backgroundColor:o&&r===x?"sofaSingles.live":"unset"})]})]},l)),g&&m&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",py:"xs",children:[(0,n.jsx)(a.az,{children:1===e.winnerCode&&(0,n.jsx)(c.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})}),(0,n.jsx)(a.az,{children:2===e.winnerCode&&(0,n.jsx)(c.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})})]}),(void 0!==t.current&&void 0!==s.current||o||g||j)&&(0,n.jsxs)(a.so,{direction:"column",h:"100%",justify:"space-between",gap:"2xl",children:[(0,n.jsxs)(a.ov,{h:"xl",mb:"2xs",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",mx:"sm"}),(0,n.jsx)(U.cU,{eventId:e.id,score:M(e,t,s,!0),height:o?"16px":"24px",fontSize:o?"14px":"18px",pt:o?0:"xxs",fontWeight:"bold",color:$(o,!0,e.winnerCode,t.current,s.current)})]}),(0,n.jsxs)(a.ov,{h:"xl",mt:"2xs",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",mx:"sm"}),(0,n.jsx)(U.cU,{eventId:e.id,score:M(e,t,s,!1),height:o?"16px":"24px",fontSize:o?"14px":"18px",pt:o?0:"xxs",fontWeight:"bold",color:$(o,!1,e.winnerCode,t.current,s.current)})]})]})]})};function K(){let{event:e}=(0,r.useContext)(i.y$);switch(e.tournament.category.sport.slug){case l.QCR.Cricket:return(0,n.jsx)(W,{});case l.QCR.MMA:return(0,n.jsx)(k,{event:e});case l.QCR.Tennis:return(0,n.jsx)(O,{});case l.QCR.Darts:return(0,n.jsx)(Q,{});default:return(0,n.jsx)(P.A,{})}}var V=s(4967),q=s(90510);function Z(e){let{hasBorder:t=!1}=e,{event:s,leftScore:o,rightScore:x}=(0,r.useContext)(i.y$),m="number"==typeof o.current&&"number"==typeof x.current,g=(0,T.gm)(s,"winnerCode"),j=d.Ig.includes(s.status.code)&&g,h=j&&g===l.Jfo.Left,p=j&&g===l.Jfo.Right,v=s.tournament.category.sport.slug===l.QCR.Tennis,f=s.status.type;if(s.status.code===l.sum.Retired?f="retired":s.status.code===l.sum.Walkover?f="walkover":(s.status.code===l.sum.HomeDefaulted||s.status.code===l.sum.AwayDefaulted)&&(f="defaulted"),/^abandoned/i.test(s.status.description)&&(f="abandoned"),s.status.code===l.sum.Postponed||s.status.code===l.sum.Canceled||s.status.code===l.sum.Walkover){let e=(0,V.cK)(s.startTimestamp),r=(0,V.ef)(s.startTimestamp);return(0,n.jsxs)(a.az,{borderStart:t?"1px solid {colors.neutrals.nLv4}":void 0,maxW:{mdToLg:"[100px]"},pl:t?"sm":void 0,children:[!v&&s.status.code===l.sum.Walkover&&j&&(0,n.jsxs)(a.so,{justify:"center",align:"center",gap:"sm",children:[(0,n.jsx)(c.EY,{textStyle:"display.large",color:h?"neutrals.nLv1":"neutrals.nLv3",children:h?"W":p?"L":""}),(0,n.jsx)(c.EY,{textStyle:"display.large",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(c.EY,{textStyle:"display.large",color:p?"neutrals.nLv1":"neutrals.nLv3",children:p?"W":h?"L":""})]}),(0,n.jsx)(c.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:(0,n.jsx)(C.fP,{id:f})}),(0,n.jsx)(c.EY,{color:"neutrals.nLv3",textAlign:v?"end":"center",display:"block",children:e||r?(0,n.jsx)(u.A,{id:e?"today":"tomorrow"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q.XU,{value:1e3*s.startTimestamp}),", ",(0,n.jsx)(q.ib,{value:1e3*s.startTimestamp})]})})]})}return(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.az,{textAlign:"center",children:[(0,n.jsx)(c.EY,{textStyle:"display.extraLarge",color:h?"neutrals.nLv1":"neutrals.nLv3",children:m?o.current:h?"W":p?"L":""}),(0,n.jsx)(c.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(c.EY,{textStyle:"display.extraLarge",color:p?"neutrals.nLv1":"neutrals.nLv3",children:m?x.current:p?"W":h?"L":""})]}),(0,n.jsx)(c.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(C.fP,{id:f})})]})}let ee=e=>{let{teamId:t,isRight:s}=e,{event:o}=(0,r.useContext)(i.y$);return!function(e,t){let{homeTeam:s,bonusInfo:n}=e,r=s.id===t?null==n?void 0:n.hasHomeBonus:null==n?void 0:n.hasAwayBonus;return(0,L.c5)(e)===l.QCR.Basketball&&e.status.type===l.XUj.InProgress&&r}(o,t)?null:(0,n.jsx)(a.ov,{w:"xl",br:"sm",bg:"status.val",position:"absolute",bottom:"0",left:s?"0":void 0,right:s?void 0:"0",textStyle:"assistive.default",color:"onColor.primary",children:"B"})};var et=s(46009),es=s(8973),en=s(70591);let el=e=>{var t;let{team:s,sport:i,isRight:o,disableFollow:d,children:c}=e,u=(0,r.useContext)(et.w),x=(null==(t=s.subTeams)?void 0:t.length)===2;return(0,n.jsx)(a.az,{h:"100%",children:(0,n.jsxs)(a.so,{align:"center",direction:o?"row-reverse":"row",children:[!d&&!x&&(0,n.jsx)(et.e,{isDisabled:s.disabled,id:s.id,entity:l.bq7.Teams,location:u,type:es.b.Team}),x?c:(0,n.jsx)(en.gT,{sport:i,team:s,ignoreLink:d,children:c})]})})};function er(e){if(!e)return;let{wins:t,draws:s,losses:n}=e;return"".concat(t,"-").concat(n).concat(void 0!==s?"-".concat(s):"")}function ei(){let{event:e}=(0,r.useContext)(i.y$),t=(0,T.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:er(s),rightWLD:er(n)}}var ea=s(33144),eo=s(58918);let ed=e=>{var t;let{team:s,isRight:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.so,{position:"absolute",bottom:"0",left:l?"0":"2xl",zIndex:"button",children:l?(0,n.jsx)(p.tFn,{fill:"mmaSpecific.blue.default"}):(0,n.jsx)(p.wOd,{fill:"mmaSpecific.red.default"})}),(0,n.jsx)(ea.p,{hasFlag:!0,id:s.id,alpha2:null==(t=s.country)?void 0:t.alpha2,right:l,flagSize:20,size:48,sport:s.sport,gender:s.gender})]})};var ec=s(19240);function eu(e){var t;let{sport:s,team:r,seeding:i,isRight:a}=e;if((null==(t=r.subTeams)?void 0:t.length)===2)return(0,n.jsx)(eo.K,{sport:s,teams:r.subTeams,seeding:i});switch(s){case l.QCR.MMA:return(0,n.jsx)(ed,{team:r,isRight:a});case l.QCR.Tennis:return(0,n.jsx)(ec.e,{team:r,isRight:a,seeding:i});default:return(0,n.jsx)(ea.p,{size:48,id:r.id,name:r.name})}}var ex=s(50154),em=s(94604);let eg=e=>{var t;let{team:s,isRight:l,additionalTeamInfo:r}=e,i=(0,T.g3)(),a=(null==(t=s.subTeams)?void 0:t.length)===2,{isAdsTestTreatment:o}=(0,ex.Q)();return a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Ym,{maxW:{base:"[100px]",md:"8xl",lg:o?"8xl":"[120px]"},textStyle:"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(em.Rm,{team:s.subTeams[0],short:!0})}),(0,n.jsx)(c.Ym,{maxW:{base:"[100px]",md:"8xl",lg:o?"8xl":"[120px]"},textStyle:"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(em.Rm,{team:s.subTeams[1],short:!0})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.Ym,{maxW:{base:"[100px]",md:"8xl",lg:o?"8xl":"[120px]"},textStyle:"display.micro",truncate:!0,display:"block",lineHeight:"16px",textAlign:"start",children:[i&&l?"@":null,(0,n.jsx)(em.Rm,{team:s,short:!0})]}),r&&(0,n.jsx)(c.Ym,{maxW:{base:"[100px]",md:"8xl",lg:o?"8xl":"[120px]"},textStyle:"display.micro",color:"neutrals.nLv3",truncate:!0,display:"block",textAlign:"start",children:r})]})};function ej(e){var t;let{team:s,sport:o,isRight:d,disableFollow:c}=e,{event:u}=(0,r.useContext)(i.y$),x=(null==(t=s.subTeams)?void 0:t.length)===2,{leftWLD:m,rightWLD:g}=ei(),j=d?g:m,h=o===l.QCR.Basketball&&u.status.type===l.XUj.InProgress;return(0,n.jsx)(el,{team:s,sport:o,isRight:d,disableFollow:c,children:(0,n.jsxs)(a.so,{position:"relative",justify:"center",mr:!c&&d?"sm":void 0,ml:c||d?void 0:"sm",minW:c?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,children:[(0,n.jsx)(eu,{team:s,sport:o,isRight:d}),(0,n.jsx)(ee,{teamId:s.id,isRight:d}),(0,n.jsx)(a.so,{direction:"column",align:"center",style:{position:"absolute",bottom:x?-40:j?-36:-22,left:"50%",transform:"translateX(-50%)"},children:(0,n.jsx)(eg,{team:s,additionalTeamInfo:h?void 0:j,isRight:d})})]})})}function eh(e){let{team:t,seeding:s,disableFollow:r}=e,i=t.gender&&t.ranking?t.gender===l.YT8.Male?"ATP ".concat(t.ranking,"."):"WTA ".concat(t.ranking,"."):void 0;return(0,n.jsx)(el,{sport:l.QCR.Tennis,team:t,disableFollow:r,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:r?void 0:"sm",minW:r?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(eu,{team:t,sport:l.QCR.Tennis,seeding:s}),(0,n.jsx)("div",{children:(0,n.jsx)(eg,{team:t,additionalTeamInfo:i})})]})})}let ep=(e,t)=>{let s=(0,V.cK)(t),l=(0,V.ef)(t);return e?{primary:"-"}:s||l?{primary:(0,n.jsx)(q.ib,{value:t}),secondary:(0,n.jsx)(u.A,{id:s?"today":"tomorrow"})}:{primary:(0,n.jsx)(q.XU,{value:t}),secondary:(0,n.jsx)(q.ib,{value:t})}};function ev(e){let{event:t,hasBorder:s=!1}=e,r=(0,m.hX)(),i=(0,V.pp)(t.startTimestamp),o=t.tournament.category.sport.slug===l.QCR.Tennis;return r?null:(0,n.jsx)(g.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{delta:t}=e,{primary:l,secondary:r}=ep(t<0,i);return(0,n.jsxs)(a.az,{borderInlineStart:s?"1px solid {colors.neutrals.nLv4}":void 0,paddingInlineStart:s?"sm":void 0,children:[(0,n.jsx)(c.EY,{textAlign:"center",textStyle:"display.large",display:"block",className:(0,H.AH)({"&:first-letter":{textTransform:"capitalize"}}),children:l}),(0,n.jsx)(c.EY,{textAlign:o?"end":"center",textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:r})]})}})}let ef=e=>e.player?"".concat(e.player.id):e.playerName?e.playerName:"Goal",ey=e=>{let t=[],s={};return e.forEach(e=>{let n=ef(e);t.includes(n)||t.push(n),s[n]?s[n].push(e):s[n]=[e]}),[t,s]},eb=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[l,r]=ey(t),i=e=>Array.from(l).slice(e).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=r[t])?void 0:s.length)?n:0)},0);return(0,n.jsx)(n.Fragment,{children:l.map((e,t)=>{var o,d,x;let m=e,g=null==(o=r[e])?void 0:o.find(e=>!!e.player),j=(null==g||null==(d=g.player)?void 0:d.shortName)||(null==g||null==(x=g.player)?void 0:x.name);return j?m=j:"Goal"===e&&(m=(0,n.jsx)(u.A,{id:r[e].length>1?"goals":"goal"})),(0,n.jsxs)(a.so,{children:[(t<3||4===l.length)&&r[e]&&(0,n.jsxs)(c.EY,{color:"neutrals.nLv3",textStyle:"body.small",mr:"2xs",textAlign:s?"end":"start",children:[m," ",r[e].map(e=>{let t=-1===e.time||void 0===e.time?"-":e.time.toString(),s=e.addedTime?"+".concat(e.addedTime):"",n="penalty"===e.incidentClass?" (Pen.)":"ownGoal"===e.incidentClass?" (OG)":"";return"".concat(t).concat(s).concat(n)}).join(", ")]}),3===t&&l.length>4&&(0,n.jsx)(c.Ym,{color:"neutrals.nLv3",textStyle:"body.small",w:"fit",whiteSpace:"nowrap",children:(0,n.jsx)(u.A,{id:"event.goals.more",values:{n:i(t)}})})]},e)})})};var eS=s(34765);let ew=e=>16*Math.min(4,Math.max(e.homeScore.display||0,e.awayScore.display||0));function eL(){let{incidents:e,isLoading:t}=(0,eS.L)(),{event:s}=(0,r.useContext)(i.y$),l=(0,T.g3)(),o=e.filter(e=>"goal"===e.incidentType&&e.time),d=(null==o?void 0:o.filter(e=>l?!e.isHome:e.isHome))||[],c=(null==o?void 0:o.filter(e=>l?e.isHome:!e.isHome))||[];return t?(0,n.jsx)("div",{style:{height:ew(s)}}):0===d.length&&0===c.length||(null==o?void 0:o.every(e=>!e.player&&!e.playerName))?null:(0,n.jsxs)(a.so,{w:"100%",justify:"center",grow:1,align:"flex-start",children:[(0,n.jsx)(a.so,{w:"100%",maxW:"[148px]",direction:"column",justify:"center",align:"flex-end",grow:1,mr:"lg",ml:"sm",children:d&&(0,n.jsx)(eb,{teamGoals:d,isLeftTeam:!0})}),(0,n.jsx)(a.az,{w:"lg",children:(0,n.jsx)(p.NcS,{icon:"football-ball",fill:"secondary.default"})}),(0,n.jsx)(a.so,{w:"100%",maxW:"[148px]",direction:"column",justify:"center",align:"flex-start",grow:1,ml:"lg",mr:"sm",children:c&&(0,n.jsx)(eb,{teamGoals:c})})]})}let eT=()=>{let{event:e}=(0,r.useContext)(i.y$),t=new Date(1e3*e.startTimestamp);return(0,n.jsxs)(a.so,{align:"center",br:"lg",backgroundColor:"surface.s2",py:"xs",px:"sm",mb:"xs",h:"[26px]",children:[(0,n.jsx)(c.EY,{textStyle:"body.small",lineHeight:1,children:(0,n.jsx)(q.XU,{value:t,...V.or.fullDateWithLongYear})}),(0,n.jsx)(a.az,{w:"xs",h:"xs",br:"50%",bg:"neutrals.nLv1",mx:"sm",position:"relative"}),(0,n.jsx)(c.EY,{textStyle:"body.small",lineHeight:1,children:(0,n.jsx)(q.XU,{value:t,hour:"numeric",minute:"numeric"})})]})};function eC(e){let{activeTimeout:t}=e,{leftTeam:s,rightTeam:o}=(0,r.useContext)(i.y$),d=function(e){switch(e){case l.gVr.TeamTimeout:return"basketball_status_timeout_short";case l.gVr.ChallengeTimeout:return"basketball_status_coaches_challenge_short";case l.gVr.OfficialTimeout:return"basketball_status_referee_timeout";case l.gVr.TVTimeout:return"basketball_status_tv_timeout";default:return}}(t.type);if(!d)return null;let x=function(e,t,s){let n,r=e.type===l.gVr.TeamTimeout,i=e.teamId===t.id,a=e.teamId===s.id;return r&&(n=i?t.nameCode:a?s.nameCode:void 0),{teamName:n?"".concat(n," "):"",isLeftTeam:i,isRightTeam:a}}(t,s,o);return(0,n.jsxs)(a.so,{align:"center",gap:"2xs",bg:"status.liveHighlight",br:"lg",pl:(null==x?void 0:x.isLeftTeam)?"xs":"sm",pr:(null==x?void 0:x.isRightTeam)?"xs":"sm",children:[(null==x?void 0:x.isLeftTeam)&&(0,n.jsx)(p.yiO,{fill:"sofaSingles.live"}),(0,n.jsxs)(c.EY,{textStyle:"assistive.default",color:"status.live",children:[null==x?void 0:x.teamName,(0,n.jsx)(u.A,{id:d})]}),(null==x?void 0:x.isRightTeam)&&(0,n.jsx)(p.DxT,{fill:"sofaSingles.live"})]})}let eA=e=>{let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:l}=e,r=(82-(t-1)*2)/t;return(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[l&&(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"})}),(0,n.jsx)(a.so,{gap:"2xs",children:Array(t).fill(0).map((e,t)=>(0,n.jsx)(a.az,{bg:t+1<=s?"secondary.default":"neutrals.nLv4",style:{width:r},h:"xs"},"timeout-".concat(t)))}),!l&&(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"})})]})};function e_(e){let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:l}=e;return(0,n.jsx)(a.so,{align:"center",gap:"sm",children:t>7?(0,n.jsxs)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"}),": ".concat(s,"/").concat(t)]}):(0,n.jsx)(eA,{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:l})})}function eE(e){let{timeouts:t}=e,{totalTimeouts:s,activeTimeout:l}=t,[r,i]=(0,T.jr)(t,"homeTimeoutsRemaining","awayTimeoutsRemaining");return r&&i?(0,n.jsxs)(a.so,{justify:"space-between",align:"center",px:s>7?"4xl":"md",mx:s>7?"2xs":void 0,pb:"sm",children:[(0,n.jsx)(e_,{totalTimeouts:s,remainingTimeouts:r,isLeftTeam:!0}),!!l&&(0,n.jsx)(eC,{activeTimeout:l}),(0,n.jsx)(e_,{totalTimeouts:s,remainingTimeouts:i})]}):null}let eY=e=>{var t,s;let{disableFollow:c,hasCountdown:u,hideIncidents:m,hideTimeouts:g}=e,{event:h,leftTeam:p,rightTeam:v,leftScore:f,rightScore:y}=(0,r.useContext)(i.y$),{leftWLD:b,rightWLD:w}=ei(),L=h.tournament.category.sport.slug,C=h.status.type===l.XUj.InProgress,A=h.status.type===l.XUj.WillContinue,_=!!(0,T.gm)(h,"aggregatedWinnerCode")&&void 0!==f.aggregated&&void 0!==y.aggregated,E=h.status.type===l.XUj.Finished,Y=(0,d.sw)(h)&&!(0,d.ux)(h)&&h.status.type!==l.XUj.WillContinue&&!h.isAwarded,k=h.status.type===l.XUj.NotStarted&&(L!==l.QCR.MMA||(0,o.xO)(h)),R=!!p.subTeams&&2===p.subTeams.length,I=L===l.QCR.Basketball,W=!!(null==(t=h.timeouts)?void 0:t.homeTimeoutsRemaining)&&!!(null==(s=h.timeouts)?void 0:s.awayTimeoutsRemaining),z=!g&&I&&C&&W;return(0,n.jsxs)(a.az,{br:{md:"lg"},pt:E?void 0:"sm",pb:"sm",children:[E&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT,{})}),(0,n.jsxs)(a.so,{h:R?"10xl":b||w?"[100px]":"[86px]",py:"sm",px:{base:"md",md:"xs"},justify:"space-between",align:"center",children:[(0,n.jsx)(ej,{team:p,sport:L,seeding:h.homeTeamSeed,disableFollow:c}),Y?(0,n.jsx)(Z,{}):k?(0,n.jsxs)("div",{children:[(0,n.jsx)(ev,{event:h}),u&&(0,n.jsx)(j,{event:h})]}):(0,n.jsxs)(a.so,{direction:"column",w:"100%",align:"center",justify:"center",children:[_&&(0,n.jsx)(x,{}),(0,n.jsx)(K,{})]}),(0,n.jsx)(ej,{team:v,sport:L,seeding:h.awayTeamSeed,disableFollow:c,isRight:!0})]}),z&&!!h.timeouts&&(0,n.jsx)(eE,{timeouts:h.timeouts}),L===l.QCR.MMA&&(C||A)&&h.fightState&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cG,{}),(0,n.jsx)(S,{fightState:h.fightState})]}),L===l.QCR.Football&&!m&&(0,n.jsx)(eL,{})]})},ek=e=>{let{disableFollow:t}=e,{event:s,leftTeam:c,rightTeam:u}=(0,r.useContext)(i.y$),x=(0,d.rW)(s)&&!(0,d.ux)(s),m=s.status.code===l.sum.Walkover,g=void 0!==s.winnerCode,j=s.status.type===l.XUj.NotStarted&&(0,o.xO)(s),h=s.status.type===l.XUj.Finished;return(0,n.jsxs)(a.az,{br:{md:"lg"},children:[h&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(eT,{})}),(0,n.jsxs)(a.so,{py:"sm",px:"lg",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.so,{direction:"column",gap:"sm",children:[(0,n.jsx)(eh,{team:c,sport:l.QCR.Tennis,seeding:s.homeTeamSeed,disableFollow:t}),(0,n.jsx)(eh,{team:u,sport:l.QCR.Tennis,seeding:s.awayTeamSeed,disableFollow:t})]}),x||m&&!g?(0,n.jsx)(Z,{hasBorder:!0}):j?(0,n.jsx)(ev,{event:s,hasBorder:!0}):(0,n.jsx)(a.ov,{flexDirection:"column",w:"100%",children:(0,n.jsx)(K,{})})]})]})},eR=e=>{let{disableFollow:t,hasCountdown:s,hideIncidents:a=!1,hideTimeouts:o=!1}=e,{event:d}=(0,r.useContext)(i.y$);return d.tournament.category.sport.slug===l.QCR.Tennis?(0,n.jsx)(ek,{disableFollow:t}):(0,n.jsx)(eY,{disableFollow:t,hasCountdown:s,hideIncidents:a,hideTimeouts:o})}},98559:(e,t,s)=>{s.d(t,{Ap:()=>o,FY:()=>d,Q6:()=>c,Zq:()=>g,xO:()=>u,zx:()=>m});var n=s(21377),l=s(494),r=s(62827),i=s(3518),a=s(57126);let o=1708,d=19906;function c(e){let t=(0,l.d4)(a.YG);return t===i.i.Metric&&(e=e?Math.round((0,r.C6)(+e,"m").to("cm"))+" cm":"-"),t===i.i.Imperial&&(e=e?Math.round((0,r.C6)(+e,"m").to("in"))+'"':"-"),e}let u=e=>e.status.type===n.XUj.NotStarted&&1e3*e.startTimestamp>Date.now(),x=e=>{var t;return[e.stadium.name,e.city.name,(null==(t=e.country)?void 0:t.alpha2)||""].filter(e=>e.length>0).join(", ")},m=(e,t)=>e?x(e):t||"",g=(e,t)=>{let s=t===n.Jfo.Left,l=t===n.Jfo.Right,r=e===n.XUj.Finished&&!s&&!l,i=e===n.XUj.Canceled||e===n.XUj.Postponed;return{hasLeftTeamOpacity:i||r||l,hasRightTeamOpacity:i||r||s}}}}]);