!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]="335755e7-d4da-49e0-b667-d29e164a4ca6",e._sentryDebugIdIdentifier="sentry-dbid-335755e7-d4da-49e0-b667-d29e164a4ca6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15361],{8945:(e,t,s)=>{s.d(t,{e:()=>o});var n=s(6029),l=s(33144),i=s(76356),r=s(80322);let o=e=>{var t;let{team:s,isRight:o,seeding:a,hasFlag:d=!0,size:c}=e;return null==s||!s.country||s.national?(0,n.jsx)(l.p,{size:48,id:s.id,name:s.name}):(0,n.jsxs)(i.az,{position:"relative",children:[d?(0,n.jsx)(l.p,{hasFlag:!0,id:s.id,name:s.name,size:null!=c?c:40,alpha2:null==(t=s.country)?void 0:t.alpha2,right:o}):(0,n.jsx)(l.p,{id:s.id,name:s.name,size:null!=c?c:20}),a&&(0,n.jsx)(r.J,{seed:a,left:o?"0":void 0,right:o?void 0:"0",h:"md",minW:"lg",textStyle:"assistive.micro",bottom:"2xs"})]})}},15361:(e,t,s)=>{s.d(t,{g:()=>n.A});var n=s(18423)},18423:(e,t,s)=>{s.d(t,{A:()=>eC});var n=s(6029),l=s(21377),i=s(55729),r=s(18970),o=s(28349),a=s(76356),d=s(93760),c=s(14831),u=s(90248);let x=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(r.y$),a=e.status.type===l.XUj.InProgress;return(0,n.jsxs)(o.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(70923);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,[i]=t;return s<0||i>=1?null:(0,n.jsx)(o.EY,{mt:"sm",textAlign:"center",textStyle:"display.small",color:"neutrals.nLv3",display:"block",children:l})}})}var h=s(93338),p=s(52466);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 y(e){let{fightState:t}=e;return v[t]?(0,n.jsx)(u.A,{id:v[t]}):null}let f=e=>{let{fightState:t}=e,s=[l.sAb.GroundGrappleRed,l.sAb.Distance,l.sAb.Ground,l.sAb.GrappleRed].includes(t),i=[l.sAb.GroundGrappleBlue,l.sAb.Distance,l.sAb.Ground,l.sAb.GrappleBlue].includes(t);return(0,n.jsxs)(a.ov,{w:"100%",h:"8xl",px:"sm",flexDirection:"column",children:[(0,n.jsx)(o.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)(o.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,i))},textStyle:"body.medium",children:(0,n.jsx)(y,{fightState:t})}),(0,n.jsx)(p.p0t,{fill:i?"mmaSpecific.blue.default":"onSurface.nLv3",style:{transform:"scaleX(-1)"}})]})]})};var b=s(41164),S=s(67087),w=s(81484);let L=e=>{let{isWinner:t}=e;return(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:t?"neutrals.nLv1":"neutrals.nLv3",display:"block",children:(0,n.jsx)(u.A,{id:t?"standings.label.wins":"standings.label.losses"})})},T=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)(w.fP,{id:(0,c.B_)(t)})},C=e=>{let{winnerCode:t,event:s}=e,i=(0,b.Mh)(s);return t===l.Jfo.NoContest||t===l.Jfo.Draw?(0,n.jsxs)(a.az,{children:[(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",textAlign:"center",display:"block",children:(0,n.jsx)(u.A,{id:t===l.Jfo.Draw?"draw":"no_contest_mma"})}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:s.finalRound?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",i&&(0,n.jsxs)(n.Fragment,{children:["(",i,")"]})]}):(0,n.jsx)(n.Fragment,{children:"-"})})]}):t===l.Jfo.Left||t===l.Jfo.Right?(0,n.jsxs)(a.az,{children:[(0,n.jsxs)(a.so,{justify:"center",children:[(0,n.jsx)(L,{isWinner:t===l.Jfo.Left}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",w:"xl",h:"xl",textAlign:"center",display:"block",children:"-"}),(0,n.jsx)(L,{isWinner:t===l.Jfo.Right})]}),(0,n.jsx)(a.so,{justify:"center",align:"center",h:"lg",children:(0,n.jsxs)(o.EY,{color:"neutrals.nLv3",textAlign:"center",px:"2xs",display:"block",children:[s.winType&&s.winType+" | ",(0,n.jsx)(u.A,{id:"status_round",values:{round:s.finalRound}})," ",i&&(0,n.jsxs)(n.Fragment,{children:["(",i,")"]})]})})]}):null},A=e=>{let{event:t}=e,{status:s,startTimestamp:i}=t,r=s.code===l.sum.Started,d=s.type===l.XUj.NotStarted,x=(0,b.Sw)(t),m=r||d&&1e3*i{let{innings:t,scoreKeys:s,isWinner:l,isLive:i}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let s=null==t?void 0:t[e];return(0,n.jsx)(o.EY,{display:"block",textStyle:"display.medium",color:i?"status.live":l?"neutrals.nLv1":"neutrals.nLv3",children:k.gj(s)},e)})})};function W(){let{event:e,leftScore:t,rightScore:s,leftTeam:d,rightTeam:c}=(0,i.useContext)(r.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=k.KY(g,t.innings),h=k.KY(g,s.innings);return(0,n.jsxs)(a.ov,{children:[(0,n.jsx)(a.az,{flexGrow:0,flexShrink:0,children:(0,n.jsxs)(a.so,{align:"flex-end",direction:"column",children:[(0,n.jsx)(E,{innings:t.innings,scoreKeys:g,isWinner:x,isLive:u&&e.currentBattingTeamId===d.id}),(0,n.jsxs)(o.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,children:(0,n.jsxs)(a.so,{align:"flex-start",direction:"column",children:[(0,n.jsx)(E,{innings:s.innings,scoreKeys:g,isWinner:m,isLive:u&&e.currentBattingTeamId===c.id}),(0,n.jsxs)(o.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:[h," ov"]})]})})]})}let R=e=>{let{leftScore:t,rightScore:s}=e;return void 0===t.bottomScore&&void 0===s.bottomScore?(0,n.jsx)(o.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)(o.EY,{color:"status.live",children:t.bottomScore}),(0,n.jsx)(o.EY,{color:"status.live",children:"-"}),(0,n.jsx)(o.EY,{color:"status.live",children:s.bottomScore})]}),void 0!==t.bottomScoreExtra&&void 0!==s.bottomScoreExtra&&(0,n.jsxs)(a.so,{children:[(0,n.jsxs)(o.EY,{color:"status.live",children:["(",t.bottomScoreExtra]}),(0,n.jsx)(o.EY,{color:"status.live",children:"-"}),(0,n.jsxs)(o.EY,{color:"status.live",children:[s.bottomScoreExtra,")"]})]})]})};var Y=s(98835),I=s(13980);let z=e=>{let{eventId:t,throwing:s,leftScore:l,rightScore:i}=e,{isDesktopLarge:r}=(0,o.$c)();return(0,n.jsxs)(a.so,{columnGap:"xs",align:"center",children:[s===I.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)(Y.cU,{eventId:t,changeKey:"homeScore.display",score:l.topScore,fontSize:r?28:20,h:r?30:22,w:r?52:36,fontWeight:"bold",color:"sofaSingles.live"}),(0,n.jsx)(o.EY,{fontSize:r?"2xl":"xl",fontWeight:700,color:"status.live",children:"-"}),(0,n.jsx)(Y.cU,{eventId:t,changeKey:"awayScore.display",score:i.topScore,fontSize:r?28:20,h:r?30:22,w:r?52:36,fontWeight:"bold",color:"sofaSingles.live",align:"flex-start"})]}),s===I.ai.Away?(0,n.jsx)(p.v1,{fill:"sofaSingles.live"}):(0,n.jsx)(a.az,{w:"lg"})]})},F=e=>{let{event:t,homeScore:s,awayScore:l}=e,i=(0,I.J1)(t,s),r=(0,I.J1)(t,l);return(0,n.jsxs)(a.so,{direction:"column",gap:"sm",align:"center",children:[(0,n.jsx)(z,{eventId:t.id,throwing:t.firstToServe,leftScore:i,rightScore:r}),(0,n.jsx)(R,{leftScore:i,rightScore:r})]})};var U=s(34781);let X=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(r.y$);return e.status.type===l.XUj.InProgress?(0,n.jsx)(F,{event:e,homeScore:t,awayScore:s}):(0,n.jsx)(U.A,{})};var G=s(62042);let D=(e,t,s)=>Object.keys(e).filter(n=>s.includes(n)&&void 0!==e[n]&&void 0!==t[n]),Q=(e,t,s,n,l,i)=>s&&l===i?"onColor.default":(n?e>t:t>e)?"onSurface.nLv1":"onSurface.nLv3",P=(e,t,s,n,l)=>e?"secondary.default":n&&l&&(t?n>l:l>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",J=(e,t,s,n,l)=>e?"sofaSingles.live":n&&l&&(t?n>l:l>n)||s===(t?1:2)?"onSurface.nLv1":"onSurface.nLv3",N=(e,t,s,n)=>{let i=e.status.type===l.XUj.Finished;if(e.status.type===l.XUj.InProgress||e.status.code===l.sum.Interrupted){var r,o;return n?null!=(r=t.point)?r:0:null!=(o=s.point)?o:0}if(i)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"},$=["period1","period2","period3","period4","period5"],H=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(r.y$),d=e.status.type===l.XUj.InProgress,c=D(t,s,$),x=c?c.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,G.AH)({left:"-lg",fill:"secondary.default"})});return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",children:[c.map((l,i)=>(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&&d&&0===i&&h,(0,n.jsx)(Y.cU,{eventId:e.id,changeKey:"homeScore.".concat(l),score:t[l],fontWeight:"bold",color:Q(t[l],s[l],d,!0,i,x),backgroundColor:d&&i===x?"sofaSingles.live":"unset"})]}),(0,n.jsxs)(a.az,{position:"relative",children:[2===e.firstToServe&&d&&0===i&&h,(0,n.jsx)(Y.cU,{eventId:e.id,changeKey:"awayScore.".concat(l),score:s[l],fontWeight:"bold",color:Q(t[l],s[l],d,!1,i,x),backgroundColor:d&&i===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)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})}),(0,n.jsx)(a.az,{children:2===e.winnerCode&&(0,n.jsx)(o.EY,{color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"walkover"})})})]}),(void 0!==t.current&&void 0!==s.current||d||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)(Y.cU,{eventId:e.id,score:N(e,t,s,!0),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:P(d,!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)(Y.cU,{eventId:e.id,score:N(e,t,s,!1),height:d?"16px":"24px",fontSize:d?"14px":"18px",pt:d?0:"xxs",fontWeight:"bold",color:P(d,!1,e.winnerCode,t.current,s.current)})]})]})]})};var K=s(86300);let B=["period1","period2","period3","period4","period5"],M=()=>{let{event:e,leftScore:t,rightScore:s}=(0,i.useContext)(r.y$),o=(0,S.gm)(e,"aggregatedWinnerCode"),d=D(t,s,B),c=d?d.length-1:0,u=void 0!==t.overtime&&void 0!==s.overtime,x=e.status.type===l.XUj.InProgress,m=o===l.Jfo.Left,g=o===l.Jfo.Right;return(0,n.jsxs)(a.so,{w:"100%",justify:"flex-end",gap:"sm",children:[d.map((l,i)=>(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",gap:"sm",children:[(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",children:(0,n.jsx)(K.c,{eventId:e.id,changeKey:"homeScore.".concat(l),score:t[l],fontWeight:"bold",color:Q(t[l],s[l],!u&&x,!0,i,c),backgroundColor:x&&i===c&&!u?"sofaSingles.live":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",children:(0,n.jsx)(K.c,{eventId:e.id,changeKey:"awayScore.".concat(l),score:s[l],fontWeight:"bold",color:Q(t[l],s[l],!u&&x,!1,i,c),backgroundColor:x&&i===c&&!u?"sofaSingles.live":"unset"})})]},l)),u&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"flex-end",gap:"sm",children:[(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",opacity:!x&&((null==t?void 0:t.overtime)||0)<((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(K.c,{eventId:e.id,changeKey:"homeScore.overtime",score:t.overtime,fontWeight:"bold",color:x?"onSurface.nLv1":"sofaSingles.value",backgroundColor:x?"sofaSingles.value":"unset"})}),(0,n.jsx)(a.so,{position:"relative",h:"[44px]",align:"center",opacity:!x&&((null==t?void 0:t.overtime)||0)>((null==s?void 0:s.overtime)||0)?"[0.75]":void 0,children:(0,n.jsx)(K.c,{eventId:e.id,changeKey:"awayScore.overtime",score:s.overtime,fontWeight:"bold",color:x?"onSurface.nLv1":"sofaSingles.value",backgroundColor:x?"sofaSingles.value":"unset"})})]}),(void 0!==t.current&&void 0!==s.current||x)&&(0,n.jsxs)(a.so,{direction:"column",justify:"space-between",align:"center",children:[(0,n.jsxs)(a.ov,{h:"[44px]",position:"relative",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",h:"xl",mx:"sm"}),(0,n.jsx)(K.c,{eventId:e.id,score:t.current,changeKey:"leftScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:J(x,!0,e.winnerCode,t.current,s.current)}),m&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(p.UFI,{fill:"onSurface.nLv1"})})]}),(0,n.jsxs)(a.ov,{h:"[44px]",position:"relative",children:[(0,n.jsx)(a.cG,{orientation:"vertical",borderInlineEndStyle:"solid",color:"neutrals.nLv4",h:"xl",mx:"sm"}),(0,n.jsx)(K.c,{eventId:e.id,score:s.current,changeKey:"rightScore.current",height:"22px",fontWeight:"bold",fontSize:"18px",color:J(x,!1,e.winnerCode,t.current,s.current)}),g&&(0,n.jsx)(a.az,{position:"absolute",top:"sm",right:"-xs",children:(0,n.jsx)(p.UFI,{fill:"onSurface.nLv1"})})]})]})]})};function O(){let{event:e}=(0,i.useContext)(r.y$);switch(e.tournament.category.sport.slug){case l.QCR.Cricket:return(0,n.jsx)(W,{});case l.QCR.MMA:return(0,n.jsx)(_,{event:e});case l.QCR.Tennis:return(0,n.jsx)(H,{});case l.QCR.Darts:return(0,n.jsx)(X,{});case l.QCR.Volleyball:return(0,n.jsx)(M,{});default:return(0,n.jsx)(U.A,{})}}var V=s(4967),q=s(90510);function Z(e){let{hasBorder:t=!1}=e,{event:s,leftScore:d,rightScore:x}=(0,i.useContext)(r.y$),m="number"==typeof d.current&&"number"==typeof x.current,g=(0,S.gm)(s,"winnerCode"),j=c.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,y=s.status.type;if(s.status.code===l.sum.Retired?y="retired":s.status.code===l.sum.Walkover?y="walkover":(s.status.code===l.sum.HomeDefaulted||s.status.code===l.sum.AwayDefaulted)&&(y="defaulted"),/^abandoned/i.test(s.status.description)&&(y="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),i=(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)(o.EY,{textStyle:"display.large",color:h?"neutrals.nLv1":"neutrals.nLv3",children:h?"W":p?"L":""}),(0,n.jsx)(o.EY,{textStyle:"display.large",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(o.EY,{textStyle:"display.large",color:p?"neutrals.nLv1":"neutrals.nLv3",children:p?"W":h?"L":""})]}),(0,n.jsx)(o.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:(0,n.jsx)(w.fP,{id:y})}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:v?"end":"center",display:"block",children:e||i?(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)(o.EY,{textStyle:"display.extraLarge",color:h?"neutrals.nLv1":"neutrals.nLv3",children:m?d.current:h?"W":p?"L":""}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:"neutrals.nLv3",children:" - "}),(0,n.jsx)(o.EY,{textStyle:"display.extraLarge",color:p?"neutrals.nLv1":"neutrals.nLv3",children:m?x.current:p?"W":h?"L":""})]}),(0,n.jsx)(o.EY,{color:"neutrals.nLv3",textAlign:"center",display:"block",children:(0,n.jsx)(w.fP,{id:y})})]})}let ee=e=>{let{teamId:t,isRight:s}=e,{event:o}=(0,i.useContext)(r.y$);return!function(e,t){let{homeTeam:s,bonusInfo:n}=e,i=s.id===t?null==n?void 0:n.hasHomeBonus:null==n?void 0:n.hasAwayBonus;return(0,b.c5)(e)===l.QCR.Basketball&&e.status.type===l.XUj.InProgress&&i}(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(15340),es=s(36882),en=s(64006);let el=e=>{var t;let{team:s,sport:r,isRight:o,disableFollow:d,children:c,isWide:u}=e,x=(0,i.useContext)(et.w),m=(null==(t=s.subTeams)?void 0:t.length)===2;return(0,n.jsx)(a.az,{h:u?void 0:"100%",children:(0,n.jsxs)(a.so,{align:"center",direction:o?"row-reverse":"row",children:[!d&&!m&&(0,n.jsx)(et.e,{isDisabled:s.disabled,id:s.id,entity:l.bq7.Teams,location:x,type:es.b.Team}),m?c:(0,n.jsx)(en.gT,{sport:r,team:s,children:c})]})})};function ei(e){if(!e)return;let{wins:t,draws:s,losses:n}=e;return"".concat(t,"-").concat(n).concat(void 0!==s?"-".concat(s):"")}function er(){let{event:e}=(0,i.useContext)(r.y$),t=(0,S.g3)(),s=t?e.awayTeamSeasonHistoricalForm:e.homeTeamSeasonHistoricalForm,n=t?e.homeTeamSeasonHistoricalForm:e.awayTeamSeasonHistoricalForm;return{leftWLD:ei(s),rightWLD:ei(n)}}var eo=s(77419),ea=s(88505);let ed=e=>{var t;let{team:s,isRight:l,additionalTeamInfo:i,isWide:r}=e,a=(0,S.g3)();return(null==(t=s.subTeams)?void 0:t.length)===2?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(ea.Rm,{team:s.subTeams[0],short:!0})}),(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.medium":"display.micro",display:"block",truncate:!0,children:(0,n.jsx)(ea.Rm,{team:s.subTeams[1],short:!0})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[156px]":"[120px]"},textStyle:r?"display.medium":"display.micro",truncate:!0,display:"block",textAlign:"start",children:[a&&l?"@":null,(0,n.jsx)(ea.Rm,{team:s,short:!0})]}),i&&(0,n.jsx)(o.Ym,{maxW:{base:"[100px]",md:"8xl",lg:r?"[200px]":"[120px]"},textStyle:r?"display.small":"display.micro",color:"neutrals.nLv3",truncate:!0,display:"block",textAlign:"start",children:i})]})};function ec(e){var t;let{team:s,sport:o,isRight:d,disableFollow:c,isWide:u}=e,{event:x}=(0,i.useContext)(r.y$),m=(null==(t=s.subTeams)?void 0:t.length)===2,{leftWLD:g,rightWLD:j}=er(),h=d?j:g,p=o===l.QCR.Basketball&&x.status.type===l.XUj.InProgress;return(0,n.jsx)(el,{team:s,sport:o,isRight:d,disableFollow:c,isWide:u,children:(0,n.jsxs)(a.so,{position:"relative",direction:d||!u?"row":"row-reverse",justify:"center",align:"center",gap:"sm",mr:!c&&d?"sm":void 0,ml:c||d?void 0:"sm",minW:c&&!u?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,px:u?"sm":void 0,children:[(0,n.jsx)(eo.N,{team:s,sport:o,isRight:d}),(0,n.jsx)(ee,{teamId:s.id,isRight:d}),(0,n.jsx)(a.so,{direction:"column",align:u?d?"start":"end":"center",style:{position:"absolute",bottom:u?"50%":m?-40:h?-36:-22,left:u?d?void 0:"0":"50%",right:u&&d?"0":void 0,transform:u?d?"translate(100%,50%)":"translate(-100%,50%)":"translateX(-50%)"},children:(0,n.jsx)(ed,{team:s,additionalTeamInfo:p?void 0:h,isRight:d,isWide:u})})]})})}function eu(e){let{team:t,seeding:s,disableFollow:i}=e,r=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:i,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:i?void 0:"sm",minW:i?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(eo.N,{team:t,sport:l.QCR.Tennis,seeding:s}),(0,n.jsx)("div",{children:(0,n.jsx)(ed,{team:t,additionalTeamInfo:r})})]})})}function ex(e){let{event:t,hasBorder:s=!1}=e,i=(0,m.hX)(),r=(0,V.pp)(t.startTimestamp),d=[l.QCR.Volleyball,l.QCR.Tennis].includes(t.tournament.category.sport.slug);return i?null:(0,n.jsx)(g.iV,{referenceTime:t.startTimestamp,modifier:-1,children:e=>{let{delta:t}=e,{primary:l,secondary:i}=((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})}})(t<0,r);return(0,n.jsxs)(a.az,{borderInlineStart:s?"1px solid {colors.neutrals.nLv4}":void 0,paddingInlineStart:s?"sm":void 0,children:[(0,n.jsx)(o.EY,{textAlign:"center",textStyle:"display.large",display:"block",className:(0,G.AH)({"&:first-letter":{textTransform:"capitalize"}}),children:l}),(0,n.jsx)(o.EY,{textAlign:d?"end":"center",textStyle:"body.medium",color:"neutrals.nLv3",display:"block",children:i})]})}})}var em=s(94156);let eg=e=>{let{teamGoals:t,isLeftTeam:s=!1}=e,[l,i]=(e=>{let t=[],s={};return e.forEach(e=>{let n=(e=>e.player?"".concat(e.player.id):e.playerName?e.playerName:"Goal")(e);t.includes(n)||t.push(n),s[n]?s[n].push(e):s[n]=[e]}),[t,s]})(t);return(0,n.jsx)(n.Fragment,{children:l.map((e,t)=>{var r;let d=e,c=null==(r=i[e])?void 0:r.find(e=>!!e.player);return(null==c?void 0:c.player)?d=(0,n.jsx)(em.c,{entity:c.player}):"Goal"===e&&(d=(0,n.jsx)(u.A,{id:i[e].length>1?"goals":"goal"})),(0,n.jsxs)(a.so,{children:[(t<3||4===l.length)&&i[e]&&(0,n.jsxs)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",mr:"2xs",textAlign:s?"end":"start",children:[d," ",(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",children:i[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("-"!==t?"'":"").concat(s).concat(n)}).join(", ")})]}),3===t&&l.length>4&&(0,n.jsx)(o.Ym,{color:"neutrals.nLv3",textStyle:"body.small",w:"fit",whiteSpace:"nowrap",children:(0,n.jsx)(u.A,{id:"event.goals.more",values:{n:Array.from(l).slice(t).reduce((e,t)=>{var s,n;return e+(null!=(n=null==(s=i[t])?void 0:s.length)?n:0)},0)}})})]},e)})})};var ej=s(67430);function eh(e){var t;let{isWide:s}=e,{incidents:l,isLoading:o}=(0,ej.L)(),{event:d}=(0,i.useContext)(r.y$),c=(0,S.g3)(),u=l.filter(e=>"goal"===e.incidentType&&e.time),x=(null==u?void 0:u.filter(e=>c?!e.isHome:e.isHome))||[],m=(null==u?void 0:u.filter(e=>c?e.isHome:!e.isHome))||[];return o?(0,n.jsx)("div",{style:{height:16*Math.min(4,Math.max((t=d).homeScore.display||0,t.awayScore.display||0))}}):0===x.length&&0===m.length||(null==u?void 0:u.every(e=>!e.player&&!e.playerName))?null:(0,n.jsxs)(a.so,{w:"100%",justify:"center",grow:1,align:"flex-start",pt:s?"sm":void 0,children:[(0,n.jsx)(a.so,{w:"100%",direction:"column",justify:"center",align:"flex-end",grow:1,mr:"lg",ml:"sm",children:x&&(0,n.jsx)(eg,{teamGoals:x,isLeftTeam:!0})}),(0,n.jsx)(a.az,{w:"lg",children:(0,n.jsx)(p.NcS,{icon:"football-ball",fill:"onSurface.nLv3"})}),(0,n.jsx)(a.so,{w:"100%",direction:"column",justify:"center",align:"flex-start",grow:1,ml:"lg",mr:"sm",children:m&&(0,n.jsx)(eg,{teamGoals:m})})]})}var ep=s(94093);function ev(e){let{activeTimeout:t}=e,{leftTeam:s,rightTeam:d}=(0,i.useContext)(r.y$),c=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(!c)return null;let x=function(e,t,s){let n,i=e.type===l.gVr.TeamTimeout,r=e.teamId===t.id,o=e.teamId===s.id;return i&&(n=r?t.nameCode:o?s.nameCode:void 0),{teamName:n?"".concat(n," "):"",isLeftTeam:r,isRightTeam:o}}(t,s,d);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)(o.EY,{textStyle:"assistive.default",color:"status.live",children:[null==x?void 0:x.teamName,(0,n.jsx)(u.A,{id:c})]}),(null==x?void 0:x.isRightTeam)&&(0,n.jsx)(p.DxT,{fill:"sofaSingles.live"})]})}let ey=e=>{let{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:l}=e,i=(82-(t-1)*2)/t;return(0,n.jsxs)(a.so,{align:"center",gap:"sm",children:[l&&(0,n.jsx)(o.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:i},h:"xs"},"timeout-".concat(t)))}),!l&&(0,n.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.A,{id:"basketball_status_timeout_short"})})]})};function ef(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)(o.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)(ey,{totalTimeouts:t,remainingTimeouts:s,isLeftTeam:l})})}function eb(e){let{timeouts:t}=e,{totalTimeouts:s,activeTimeout:l}=t,[i,r]=(0,S.jr)(t,"homeTimeoutsRemaining","awayTimeoutsRemaining");return i&&r?(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)(ef,{totalTimeouts:s,remainingTimeouts:i,isLeftTeam:!0}),!!l&&(0,n.jsx)(ev,{activeTimeout:l}),(0,n.jsx)(ef,{totalTimeouts:s,remainingTimeouts:r})]}):null}let eS=e=>{var t,s;let{disableFollow:u,hasCountdown:m,hideIncidents:g,hideTimeouts:h,isWide:p=!1}=e,{event:v,leftTeam:y,rightTeam:b,leftScore:w,rightScore:L}=(0,i.useContext)(r.y$),{leftWLD:T,rightWLD:C}=er(),{textDirection:A}=(0,o.$c)(),_="rtl"===A,k=v.tournament.category.sport.slug,E=v.status.type===l.XUj.InProgress,W=v.status.type===l.XUj.WillContinue,R=!!(0,S.gm)(v,"aggregatedWinnerCode")&&void 0!==w.aggregated&&void 0!==L.aggregated,Y=v.status.type===l.XUj.Finished&&!p,I=(0,c.sw)(v)&&!(0,c.ux)(v)&&v.status.type!==l.XUj.WillContinue&&!v.isAwarded,z=v.status.type===l.XUj.NotStarted&&(k!==l.QCR.MMA||(0,d.xO)(v)),F=!!y.subTeams&&2===y.subTeams.length,U=k===l.QCR.Basketball,X=!!(null==(t=v.timeouts)?void 0:t.homeTimeoutsRemaining)&&!!(null==(s=v.timeouts)?void 0:s.awayTimeoutsRemaining),G=!h&&U&&E&&X;return(0,n.jsxs)(a.az,{br:{md:"lg"},pt:Y?void 0:"sm",pb:"sm",children:[Y&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ep.g,{})}),(0,n.jsxs)(a.so,{h:p?void 0:F?"10xl":T||C?"[100px]":"[86px]",py:"sm",px:{base:"md",md:"xs"},justify:p?"center":"space-between",align:"center",children:[(0,n.jsx)(ec,{team:y,sport:k,seeding:v.homeTeamSeed,disableFollow:u,isWide:p,isRight:p&&_}),(0,n.jsx)(a.az,{minW:p?"[152px]":void 0,children:I?(0,n.jsx)(Z,{}):z?(0,n.jsxs)("div",{children:[(0,n.jsx)(ex,{event:v}),m&&(0,n.jsx)(j,{event:v})]}):(0,n.jsxs)(a.so,{direction:"column",align:"center",justify:"center",children:[R&&(0,n.jsx)(x,{}),(0,n.jsx)(O,{})]})}),(0,n.jsx)(ec,{team:b,sport:k,seeding:v.awayTeamSeed,disableFollow:u,isWide:p,isRight:!p||!_})]}),G&&!!v.timeouts&&(0,n.jsx)(eb,{timeouts:v.timeouts}),k===l.QCR.MMA&&(E||W)&&v.fightState&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.cG,{}),(0,n.jsx)(f,{fightState:v.fightState})]}),k===l.QCR.Football&&!g&&(0,n.jsx)(eh,{isWide:p})]})},ew=e=>{let{disableFollow:t,isWide:s}=e,{event:o,leftTeam:u,rightTeam:x}=(0,i.useContext)(r.y$),m=(0,c.rW)(o)&&!(0,c.ux)(o),g=o.status.code===l.sum.Walkover,j=void 0!==o.winnerCode,h=o.status.type===l.XUj.NotStarted&&(0,d.xO)(o),p=o.status.type===l.XUj.Finished&&!s;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:s?"[400px]":void 0,mx:"auto",children:[p&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ep.g,{})}),(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)(eu,{team:u,sport:l.QCR.Tennis,seeding:o.homeTeamSeed,disableFollow:t}),(0,n.jsx)(eu,{team:x,sport:l.QCR.Tennis,seeding:o.awayTeamSeed,disableFollow:t})]}),m||g&&!j?(0,n.jsx)(Z,{hasBorder:!0}):h?(0,n.jsx)(ex,{event:o,hasBorder:!0}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(O,{})})]})]})};function eL(e){let{team:t,disableFollow:s}=e;return(0,n.jsx)(el,{sport:l.QCR.Volleyball,team:t,disableFollow:s,children:(0,n.jsxs)(a.so,{position:"relative",justify:"flex-start",align:"center",marginInlineStart:s?void 0:"sm",minW:s?{base:"[100px]",md:"8xl",lg:"[120px]"}:void 0,gap:"lg",children:[(0,n.jsx)(eo.N,{team:t,sport:l.QCR.Volleyball}),(0,n.jsx)("div",{children:(0,n.jsx)(ed,{team:t})})]})})}let eT=e=>{let{disableFollow:t,isWide:s}=e,{event:o,leftTeam:d,rightTeam:u}=(0,i.useContext)(r.y$),x=o.status.type===l.XUj.Finished&&!s,m=o.status.type===l.XUj.NotStarted,g=(0,c.sw)(o)&&!(0,c.ux)(o)&&o.status.type!==l.XUj.WillContinue&&!o.isAwarded;return(0,n.jsxs)(a.az,{br:{md:"lg"},maxW:s?"[400px]":void 0,mx:"auto",children:[x&&(0,n.jsx)(a.so,{w:"100%",justify:"center",children:(0,n.jsx)(ep.g,{})}),(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)(eL,{team:d,disableFollow:t}),(0,n.jsx)(eL,{team:u,disableFollow:t})]}),g?(0,n.jsx)(Z,{}):m?(0,n.jsx)(a.az,{px:"md",children:(0,n.jsx)(ex,{event:o,hasBorder:!0})}):(0,n.jsx)(a.ov,{flexDirection:"column",w:s?void 0:"100%",children:(0,n.jsx)(O,{})})]})]})},eC=e=>{let{disableFollow:t,hasCountdown:s,hideIncidents:o=!1,hideTimeouts:a=!1,isWide:d}=e,{event:c}=(0,i.useContext)(r.y$);switch(c.tournament.category.sport.slug){case l.QCR.Tennis:return(0,n.jsx)(ew,{disableFollow:t,isWide:d});case l.QCR.Volleyball:return(0,n.jsx)(eT,{disableFollow:t,isWide:d});default:return(0,n.jsx)(eS,{disableFollow:t,hasCountdown:s,hideIncidents:o,hideTimeouts:a,isWide:d})}}},24045:(e,t,s)=>{s.d(t,{K:()=>a});var n=s(6029),l=s(33144),i=s(76356),r=s(64006),o=s(80322);let a=e=>{var t,s;let{sport:a,teams:d,seeding:c,size:u,hideFlags:x,ignoreLink:m}=e;return(0,n.jsxs)(i.so,{children:[(0,n.jsx)(r.gT,{sport:a,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)(r.gT,{sport:a,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)(o.J,{seed:c,transform:"translateX(100%)"})]})}},67430:(e,t,s)=>{s.d(t,{L:()=>a});var n=s(21377),l=s(55729),i=s(45860),r=s(18970),o=s(41164);function a(){let{event:e,initialIncidents:t}=(0,l.useContext)(r.y$),s={};e.status.type===n.XUj.InProgress&&(s.onErrorRetry=(e,t,s,n,l)=>{let{retryCount:i}=l;404===e.status&&setTimeout(()=>n({retryCount:i}),15e3)});let{data:a,isLoading:d,error:c}=(0,i.Ay)(n.bnp.incidents(e.id),(0,o.rf)(e,s));return{incidents:(null==a?void 0:a.incidents)||t||[],isLoading:(null==t||!t.length)&&d,isError:!!c}}},77419:(e,t,s)=>{s.d(t,{N:()=>u});var n=s(6029),l=s(33144),i=s(21377),r=s(24045),o=s(76356),a=s(52466);let d=e=>{var t;let{team:s,isRight:i}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.so,{position:"absolute",bottom:"0",left:i?"0":"2xl",zIndex:"button",children:i?(0,n.jsx)(a.tFn,{fill:"mmaSpecific.blue.default"}):(0,n.jsx)(a.wOd,{fill:"mmaSpecific.red.default"})}),(0,n.jsx)(l.p,{hasFlag:!0,id:s.id,alpha2:null==(t=s.country)?void 0:t.alpha2,right:i,flagSize:20,size:48,sport:s.sport,gender:s.gender})]})};var c=s(8945);function u(e){var t;let{sport:s,team:o,seeding:a,isRight:u,hasFlag:x,size:m}=e;if((null==(t=o.subTeams)?void 0:t.length)===2)return(0,n.jsx)(r.K,{sport:s,teams:o.subTeams,seeding:a});switch(s){case i.QCR.MMA:return(0,n.jsx)(d,{team:o,isRight:u});case i.QCR.Tennis:return(0,n.jsx)(c.e,{team:o,isRight:u,seeding:a,hasFlag:x,size:m});default:return(0,n.jsx)(l.p,{size:48,id:o.id,name:o.name})}}},80322:(e,t,s)=>{s.d(t,{J:()=>a});var n=s(6029),l=s(28349),i=s(76356),r=s(93338),o=s(40134);let a=e=>{let{seed:t,colorless:s,position:a="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)(i.ov,{display:"inline-flex",position:a,bottom:u,left:d,right:c,br:"sm",style:s?void 0:{background:r.S.var((0,o.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}},93760:(e,t,s)=>{s.d(t,{Ap:()=>a,FY:()=>d,Q6:()=>c,Zq:()=>m,xO:()=>u,zx:()=>x});var n=s(21377),l=s(494),i=s(14831),r=s(30821),o=s(90808);let a=1708,d=19906;function c(e){let t=(0,l.d4)(o.YG);return t===r.i.Metric&&(e=e?Math.round((0,i.C6)(+e,"m").to("cm"))+" cm":"-"),t===r.i.Imperial&&(e=e?Math.round((0,i.C6)(+e,"m").to("in"))+'"':"-"),e}let u=e=>e.status.type===n.XUj.NotStarted&&1e3*e.startTimestamp>Date.now(),x=(e,t)=>e?(e=>{var t;return[e.stadium.name,e.city.name,(null==(t=e.country)?void 0:t.alpha2)||""].filter(e=>e.length>0).join(", ")})(e):t||"",m=(e,t)=>{let s=t===n.Jfo.Left,l=t===n.Jfo.Right,i=e===n.XUj.Finished&&!s&&!l,r=e===n.XUj.Canceled||e===n.XUj.Postponed;return{hasLeftTeamOpacity:r||i||l,hasRightTeamOpacity:r||i||s}}},94093:(e,t,s)=>{s.d(t,{g:()=>u});var n=s(6029),l=s(4967),i=s(28349),r=s(76356),o=s(55729),a=s(90510),d=s(18970),c=s(52466);let u=e=>{let{isInDesktopHeader:t}=e,{event:s}=(0,o.useContext)(d.y$),u=new Date(1e3*s.startTimestamp);return(0,n.jsxs)(r.so,{align:"center",br:"lg",backgroundColor:t?void 0:"surface.s2",py:"xs",px:"sm",mb:t?void 0:"xs",h:t?void 0:"[26px]",gap:"xs",children:[t&&(0,n.jsx)(c.E8x,{fill:"onSurface.nLv3",w:"16px",h:"16px"}),(0,n.jsx)(i.EY,{textStyle:t?"display.micro":"body.small",color:t?"neutrals.nLv3":"neutrals.nLv1",lineHeight:1,children:(0,n.jsx)(a.XU,{value:u,...l.or.fullDateWithLongYear})}),(0,n.jsx)(r.az,{w:"xs",h:"xs",br:"50%",bg:t?"neutrals.nLv3":"neutrals.nLv1",position:"relative"}),(0,n.jsx)(i.EY,{textStyle:t?"display.micro":"body.small",color:t?"neutrals.nLv3":"neutrals.nLv1",lineHeight:1,children:(0,n.jsx)(a.XU,{value:u,hour:"numeric",minute:"numeric"})})]})}}}]);