!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]="1fe3f96a-954a-45cb-a052-e61979132597",e._sentryDebugIdIdentifier="sentry-dbid-1fe3f96a-954a-45cb-a052-e61979132597")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17135],{17135:(e,t,n)=>{n.d(t,{n6:()=>er,MC:()=>v.M,lv:()=>v.l});var i=n(6029),s=n(19501),r=n(22375),o=n(54529),l=n(76356),a=n(93338),c=n(55729),d=n(90510),u=n(90248),h=n(47125),f=n(18970),m=n(70923),x=n(63561),p=n(86300),y=n(81484),g=n(90223),v=n(23240);function j(e){let{isShortDate:t}=e,{event:n}=(0,c.useContext)(f.y$),j=r.pp(n.startTimestamp),w=j.getTime(),b=n.status.type===s.XUj.Finished,S=n.status.type===s.XUj.InProgress,I=n.status.type===s.XUj.NotStarted,C=n.status.code===s.sum.Halftime||n.status.code===s.sum["Extra time halftime"],T=(0,g.sw)(n)||n.isAwarded,k=(0,g.ux)(n),P=n.tournament.category.sport.slug===s.QCR.Football,D=n.crowdsourcingDataDisplayEnabled,A=n.status.type===s.XUj.WillContinue,U=(0,x.Sw)(n),L=(e=>{let t=e.status.type===s.XUj.InProgress,n=e.crowdsourcingDataDisplayEnabled,i=(0,g.sw)(e)||e.isAwarded,r=(0,g.ux)(e);return t?n?a.S.var("colors.status.crowdsourcingLive"):a.S.var("colors.status.live"):r||e.isAwarded||!i?a.S.var("colors.neutrals.nLv3"):a.S.var("colors.status.live")})(n),{statusTimeOnly:R}=(0,v.l)(),M=(0,y.c8)((0,g.B_)(n),!0);return(0,i.jsxs)(l.az,{title:M.toString(),textAlign:"center",mx:"sm",flexShrink:0,flexBasis:"5xl",children:[(0,i.jsx)(o.Ym,{textStyle:"body.small",color:"neutrals.nLv3",children:function(){if(r.cK(j)||R)return(0,i.jsx)(d.ib,{value:w});let e=t?r.or.date:r.or.fullDate;return(0,i.jsx)(d.XU,{value:w,...e})}()}),(0,i.jsx)(p.c,{eventId:n.id,changeKey:"status",align:"center",children:(0,i.jsx)(o.Ym,{textStyle:"body.small",textAlign:"center",w:"5xl",display:"block",truncate:!0,style:{color:L},children:function(){if(R&&I&&!T)return null;if(S){if(D)return(0,i.jsx)(u.A,{id:"live"});if(n.status.code===s.sum["Awaiting extra time"])return(0,i.jsx)(u.A,{id:"awaitingExtraTime.short"});if(n.status.code===s.sum["Awaiting penalties"])return(0,i.jsx)(u.A,{id:"awaitingPenalties.short"});if([s.sum.Penalties,s.sum["Penalties alt."]].includes(n.status.code))return(0,i.jsx)(u.A,{id:"penalties"});if(n.time&&P&&!C)return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.kG,{time:n.time,status:n.status,currentPeriodStartTimestamp:n.currentPeriodStartTimestamp}),(0,i.jsx)(h.I,{})]})}if(k)return(0,i.jsx)(u.A,{id:"final_result_only_short"});if(n.isAwarded)return(0,i.jsx)(u.A,{id:"awarded"});if((S||b||T||A)&&M)return U?(0,x.vJ)(n.tournament.category.sport.slug)?"".concat(U," ").concat(M):"".concat(M," (").concat(U,")"):M;return r.cK(j)?"-":(0,i.jsx)(d.ib,{value:j.getTime()})}()})})]})}var w=n(58456),b=n(62042),S=n(81278),I=n(494),C=n(41735),T=n(52466),k=n(90438),P=n(12155),D=n(41164),A=n(40076),U=n(98835),L=n(37455),R=n(72753),M=n(14831);let E=()=>{let{event:e}=(0,c.useContext)(f.y$);return e.status.type===s.XUj.InProgress&&e.varInProgress&&(e.varInProgress.homeTeam||e.varInProgress.awayTeam)?e.varInProgress.homeTeam&&e.varInProgress.awayTeam?(0,i.jsx)(l.so,{animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(T.FgT,{fill:"sofaSingles.live",w:16,h:16})}):(0,i.jsxs)(l.so,{direction:e.varInProgress.homeTeam?"column":"column-reverse",children:[(0,i.jsx)(l.so,{h:"lg",justify:"center",align:"center",animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(T.FgT,{fill:"sofaSingles.live",w:16,h:16})}),(0,i.jsx)(l.az,{h:"lg"})]}):null};var z=n(8536),X=n(25133),Q=n(947),_=n(19621),Y=n(94565);let F=e=>{let{text:t,width:n,ellipsis:s}=e;return n?(0,i.jsx)("span",{style:{display:"inline-block",width:n-1,overflow:"hidden",textOverflow:s?"ellipsis":"clip",whiteSpace:"nowrap",direction:s?"rtl":void 0},children:t}):null};function H(e){let{text:t,isLive:n}=e,s=(0,c.useRef)(null),r=(0,_.uc)(s)||0,[l,a]=["body","medium"],d=Y.Il.font[l],u=function(e,t){let n="get-text-width-div-id",i=document.createElement("div");i.style.position="absolute",i.style.top="-10000px",i.style.left="-10000px",i.style.font=t,i.id=n,i.innerHTML=e,document.body.appendChild(i);let s=document.getElementById(n),r=s.offsetWidth;return document.body.removeChild(s),r}(t,"string"==typeof d?d:null==d?void 0:d[a]);return(0,i.jsx)(o.EY,{color:n?"status.live":"neutrals.nLv3",display:"block",mt:"2xs",children:(0,i.jsx)("div",{style:{display:"inline-block",width:"100%"},ref:s,children:u{let{event:t}=e,n=t.status.type===s.XUj.InProgress,i=t.lastPeriod?O[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&i===W()(K()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&i===W()(K()(t.awayScore.innings))]},Z=e=>{let t=G()(e),n=W()(t),i=(null==n?void 0:n.overs)||0;return[(null==n?void 0:n.score)||0,(null==n?void 0:n.wickets)||0,(0,J.M)(i,1)]};function ee(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(f.y$),r=(0,D.c5)(n),a=n.status.type===s.XUj.NotStarted,d=n.status.type===s.XUj.InProgress,u=n.winnerCode===s.Jfo.Left,h=n.winnerCode===s.Jfo.Right,m=void 0===n.winnerCode;if(r!==s.QCR.Cricket||a)return null;let[x,y]=q({event:n}),[g,v,j]=Z(n.homeScore.innings),[w,b,S]=Z(n.awayScore.innings),I=n.homeScore.display||0,C=n.awayScore.display||0,k=I>g||C>w,P=(0,M.sw)(n)?0===g&&g0&&"".concat(g).concat(v>=0&&v<10?"-".concat(v):""," (").concat(j,")"),k?(0,i.jsx)(l.az,{display:"inline-block",ml:"xs",children:I}):null]})}),(0,i.jsx)(l.so,{justify:"flex-end",children:A?(0,i.jsx)(o.EY,{textAlign:"end",display:"block",pr:"sm",children:"-"}):(0,i.jsxs)(p.c,{eventId:n.id,changeKey:"awayScore.display",textAlign:"end",mr:"sm",color:d&&y?"sofaSingles.live":h||m?"onSurface.nLv1":"onSurface.nLv3",flex:"1 1 16px",maxW:"fit-content",children:[y&&U," ",w>0&&"".concat(w).concat(b>=0&&b<10?"-".concat(b):""," (").concat(S,")"),k?(0,i.jsx)(l.az,{display:"inline-block",ml:"xs",children:C}):null]})})]})}function et(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(f.y$),[r,o]=q({event:n}),a=(0,D.c5)(n),d=n.status.type===s.XUj.NotStarted,u=n.status.type===s.XUj.InProgress,h=n.winnerCode===s.Jfo.Left,m=n.winnerCode===s.Jfo.Right,x=void 0===n.winnerCode;if(a!==s.QCR.Cricket||d)return null;let y=n.homeScore.display||"-",g=n.awayScore.display||"-",v="-"!==y||"-"!==g;return(0,i.jsxs)(l.az,{pr:"sm",mr:t?void 0:"sm",children:[v?(0,i.jsx)(l.az,{mb:"2xs",children:(0,i.jsx)(p.c,{eventId:n.id,changeKey:"homeScore.display",textAlign:"end",color:u&&r?"sofaSingles.live":h||x?"onSurface.nLv1":"onSurface.nLv3",children:y})}):null,v?(0,i.jsx)(l.az,{children:(0,i.jsx)(p.c,{eventId:n.id,changeKey:"awayScore.display",textAlign:"end",color:u&&o?"sofaSingles.live":m||x?"onSurface.nLv1":"onSurface.nLv3",children:g})}):null]})}let en=[s.QCR.Basketball,s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Floorball,s.QCR.AussieRules],ei=[s.QCR.Volleyball,s.QCR.Baseball,s.QCR.BeachVolley,s.QCR.Badminton],es=function(e){let{children:t}=e;return"function"!=typeof t?null:(0,i.jsx)(l.az,{mr:"md",children:(0,i.jsx)(o.EY,{textAlign:"center",position:"relative",overflow:"visible",truncate:!0,children:t()})})};function er(e){var t,n;let r=(0,v.l)(),{children:o,style:a,odds:d,isSelected:u,entity:h,incidents:m,isReferenceTeamId:x}=e,p=(0,S.useRouter)(),y=void 0===e.isShort?r.isShort:e.isShort,g=null!=(n=e.isNarrow)?n:r.isNarrow,C=void 0===e.isShortDate?r.isShortDate:e.isShortDate,M=void 0===e.hideIncidentIcons?r.hideIncidentIcons:e.hideIncidentIcons,{event:Q}=(0,c.useContext)(f.y$),_=(0,I.d4)(R.LQ),Y=p.route===k.xW.Favorites,F=(0,D.c5)(Q),H=(0,I.d4)((0,L.Ul)(Q)),B=r.showOdds&&H,K=F===s.QCR.Cricket&&!Y,V=Q.status.type===s.XUj.InProgress,W=Q.status.type===s.XUj.Finished,$=V&&Q.crowdsourcingDataDisplayEnabled,G=W&&Q.crowdsourcingDataDisplayEnabled,J=F===s.QCR.AmericanFootball&&V&&(null==(t=Q.tournament.uniqueTournament)?void 0:t.hasDownDistance),O=J&&(0,A.H_)(Q.yardDistance),q=K||O,Z=(0,w.TF)(Q,_)?(0,i.jsx)(T.PEB,{fill:V?"sofaSingles.live":"neutral.default"}):void 0;return(0,i.jsxs)(l.so,{align:"center",h:q?"[68px]":"4xl",bg:u?"surface.s2":void 0,color:"neutrals.nLv1",position:"relative",className:"js-list-cell-target js-list-cell-target-".concat(Q.id," ").concat((0,b.AH)({"&.active":{bg:"neutral.highlight"}})),style:a,children:[K?(0,i.jsx)(l.az,{minW:"md",w:"md",h:"100%"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(U.kV,{eventId:Q.id}),(0,i.jsx)(j,{isShortDate:C})]}),(0,i.jsx)(l.az,{mr:"sm",h:q?"5xl":"[36px]",flex:"[0 0 1px]",bg:"neutrals.nLv4"}),(0,i.jsxs)(l.az,{flexGrow:1,overflowX:"clip",minW:"[0px]",children:[(0,i.jsxs)(l.so,{align:"center",children:[(0,i.jsx)(X.g,{isShort:y,entity:h}),B?(0,i.jsx)(P.ZK,{eventId:Q.id,odds:d,sport:F,fallback:Z}):(0,i.jsxs)(i.Fragment,{children:[M||Q.isAwarded?null:(0,i.jsx)(function(e){let{incidents:t,sportSlug:n,isReferenceTeamId:r}=e,{event:o,leftTeam:a}=(0,c.useContext)(f.y$);return n!==s.QCR.Cricket&&t?(0,i.jsx)(l.so,{mr:"sm",alignSelf:(null==r?void 0:r(Number(a.id),o.id))?"flex-start":"flex-end",children:(0,w.t3)(n,t)}):null},{isReferenceTeamId:x,incidents:m,sportSlug:F}),$&&(0,i.jsx)(T.Mv5,{fill:"sofaSingles.crowdsourcingLive"}),Z,G&&(0,i.jsx)(T.Mv5,{fill:"onSurface.nLv3",w:16}),(0,i.jsx)(eo,{}),F===s.QCR.Cricket?(0,i.jsx)(ee,{hasTail:!!o}):h!==s.wNW.Player?(0,i.jsx)(el,{isNarrow:g||ei.includes(F)}):null]}),J&&(0,i.jsx)(A.x8,{event:Q}),B&&(0,i.jsx)(et,{hasTail:!!o}),F===s.QCR.Football&&(0,i.jsx)(E,{}),!r.hideScores&&(0,i.jsx)(z.$,{})]}),K&&(0,i.jsx)(N,{event:Q,isShortDate:C}),O&&(0,i.jsx)(A.RU,{})]}),!!o&&(0,i.jsx)(l.az,{mr:"md",h:q?"5xl":"[36px]",bg:"neutrals.nLv4",style:{flex:"0 0 ".concat(+!!o,"px")}}),(0,i.jsx)(es,{children:o})]})}function eo(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(f.y$),r=(0,c.useContext)(C.ThemeContext),o="rtl"===r.settings.textDirection;if((0,D.c5)(e)===s.QCR.Tennis&&e.status.type===s.XUj.InProgress){let s=r.colors.secondary.default,a=(0,i.jsx)(T.OXq,{fill:s,position:"absolute",w:"12",h:"16",style:o?{right:-16}:{left:-16}});return(0,i.jsxs)(l.so,{direction:"column",justify:"flex-end",align:"flex-end",mr:"md",ml:"lg",w:"2xl",basis:"2xl",children:[(0,i.jsxs)(l.az,{position:"relative",minW:"lg",mb:"2xs",children:[1===e.firstToServe&&a,(0,i.jsx)(U.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"homeScore.point",score:t.point})]}),(0,i.jsxs)(l.az,{position:"relative",minW:"lg",children:[2===e.firstToServe&&a,(0,i.jsx)(U.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"awayScore.point",score:n.point})]})]})}return null}function el(e){let{isNarrow:t}=e,{mediaBreakpoint:n}=(0,o.$c)();return["lg","sm"].includes(n)&&!t?(0,i.jsx)(ea,{}):(0,i.jsx)(ec,{})}function ea(){var e,t;let{event:n,leftTeam:r,rightTeam:a,leftScore:d,rightScore:u}=(0,c.useContext)(f.y$),h=(null==(e=r.subTeams)?void 0:e.length)===2&&(null==(t=a.subTeams)?void 0:t.length)===2,[m,x]=(0,c.useMemo)(()=>{let e=[],t=[],r=(0,D.c5)(n),a=r===s.QCR.Tennis,c=[],f=0;return n.periods?(Object.keys(n.periods).filter(e=>!["point","current"].includes(e)).forEach(e=>{let t=d[e],n=u[e],s="".concat(e,"TieBreak"),r=d[s],l=u[s],a=h&&"period3TieBreak"===s&&!!r&&!!l&&(t===r||n===l),m=!a&&(r||0===r)?(0,i.jsx)(o.EY,{textStyle:"assistive.micro",top:"0",left:t<10?"[14px]":"[18px]",position:"absolute",verticalAlign:"super",lineHeight:"1","data-change-key":"homeScore.".concat(s),children:r}):null,x=!a&&(l||0===l)?(0,i.jsx)(o.EY,{textStyle:"assistive.micro",top:"0",left:n<10?"[14px]":"[18px]",position:"absolute",verticalAlign:"super",lineHeight:"1","data-change-key":"awayScore.".concat(s),children:l}):null;c.push({left:t,right:n,leftTie:m,rightTie:x,periodKey:e}),(t||0===t||n||0===n||m||x)&&f++}),c.forEach((o,c)=>{let{left:d,right:u,leftTie:h,rightTie:m,periodKey:x}=o,p=n.status.type===s.XUj.InProgress&&c+1===f,y=r===s.QCR.Tennis?"center":"end",g=d>99||u>99?36:24;e.push((0,i.jsxs)(l.az,{d:"inline-block",position:"relative",style:{width:g},textAlign:a?"start":"end",children:[(0,i.jsx)(U.cU,{eventId:n.id,changeKey:"homeScore.".concat(x),score:d,textAlign:y,align:"flex-start",color:p?"sofaSingles.live":d>u?"onSurface.nLv1":"onSurface.nLv3",w:g}),h]},x)),t.push((0,i.jsxs)(l.az,{d:"inline-block",position:"relative",textAlign:a?"start":"end",style:{width:g},children:[(0,i.jsx)(U.cU,{eventId:n.id,changeKey:"awayScore.".concat(x),score:u,textAlign:y,align:"flex-start",color:p?"sofaSingles.live":u>d?"onSurface.nLv1":"onSurface.nLv3",w:g}),m]},x))}),[e,t]):[void 0,void 0]},[n.periods,d,u,n.status.type]);return void 0!==n.periods&&(n.status.type!==s.XUj.NotStarted||(0,M.sw)(n))&&(m||x)?(0,i.jsxs)(l.az,{children:[(0,i.jsx)(l.so,{h:"lg",mb:"2xs",children:m}),(0,i.jsx)(l.so,{h:"lg",children:x})]}):null}function ec(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(f.y$),r=(0,D.c5)(e);if(void 0===e.periods||!e.lastPeriod||en.includes(r))return null;let o=r===s.QCR.Tennis?"sofaSingles.live":"secondary.default";return e.status.type===s.XUj.InProgress&&e.lastPeriod?(0,i.jsxs)(l.az,{w:"[28px]",children:[(0,i.jsx)(l.az,{position:"relative",mb:"2xs",children:(0,i.jsx)(U.cU,{eventId:e.id,align:"right",color:o,changeKey:"homeScore.".concat(e.lastPeriod),score:t[e.lastPeriod]},e.lastPeriod)}),(0,i.jsx)(l.az,{position:"relative",children:(0,i.jsx)(U.cU,{eventId:e.id,align:"right",color:o,changeKey:"awayScore.".concat(e.lastPeriod),score:n[e.lastPeriod]},e.lastPeriod)})]}):null}},23240:(e,t,n)=>{n.d(t,{M:()=>s,l:()=>r});var i=n(55729);let s=(0,i.createContext)({}),r=()=>(0,i.useContext)(s);s.displayName="EventCellContext"},40076:(e,t,n)=>{n.d(t,{x8:()=>a,RU:()=>u,XE:()=>m,H_:()=>x,XB:()=>f});var i=n(6029),s=n(19501),r=n(76356),o=n(52466),l=n(67087);function a(e){var t;let{event:n}=e,a=(0,l.gm)(n.yardDistance,"currentPossession",n),c=Number(null==(t=n.yardDistance)?void 0:t.currentDown);return(0,i.jsx)(r.so,{alignSelf:"flex-start",direction:"column",mr:"-xs",h:"[34px]",w:"[20px]",justify:a===s.Jfo.Right?"flex-end":"flex-start",children:!(void 0===a||c<1||c>4)&&(0,i.jsx)(o.CvR,{icon:"af-touchdown",width:"16px",height:"16px",mr:"xs",mt:"xxs",fill:"sofaSingles.live"})})}var c=n(54529),d=n(90248);function u(){return(0,i.jsx)(r.so,{align:"center",children:(0,i.jsx)(c.EY,{textStyle:"body.medium",color:"status.live",children:(0,i.jsx)(d.A,{id:"am_football_red_zone_status"})})})}let h=e=>e.nameCode||e.name.slice(0,3).toLocaleUpperCase(),f=e=>!!(e.currentPossession&&e.currentTeamHalf&&e.currentDown&&"number"==typeof e.currentYardline&&"number"==typeof e.currentYardsToFirstDown);function m(e,t){let{homeTeam:n,awayTeam:i}=t,r=h(e.currentPossession===s.Jfo.Left?n:i),o=(e=>{let{currentDown:t,currentYardsToFirstDown:n,isGoalPossession:i}=e,s=(e=>{switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 4:return"4th";default:return}})(t),r=n;if("number"==typeof n&&s)return n<1&&(r="Inches"),i&&(r="Goal"),"".concat(s," & ").concat(r)})(e),l=((e,t,n,i)=>{if("number"==typeof n&&void 0!==i)return"".concat(h(i===s.Jfo.Left?e:t)," ").concat(n)})(n,i,e.currentYardline,e.currentTeamHalf);return o&&l?"".concat(r," ").concat(o," @ ").concat(l):null}function x(e){return!!e&&!!f(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}},47125:(e,t,n)=>{n.d(t,{I:()=>l});var i=n(6029),s=n(41735),r=n(79261);let o=s.default.span.withConfig({componentId:"sc-923226f3-0"})(["animation:"," 1s ease-in infinite;"],r.HI.fast),l=()=>(0,i.jsx)(o,{children:"'"})},64287:(e,t,n)=>{n.d(t,{Gi:()=>x,iV:()=>m,kG:()=>y,lx:()=>v,zV:()=>h});var i=n(6029),s=n(19501),r=n(22375),o=n(54529),l=n(76356),a=n(55729),c=n(47125),d=n(47402),u=n(14831);let h=e=>{let{time:t,status:n,currentPeriodStartTimestamp:i}=e;return n.type===s.XUj.InProgress&&"number"==typeof(null==t?void 0:t.initial)&&!u.p2.includes(n.code)&&!!(t.currentPeriodStartTimestamp||i)},f=e=>e.map(e=>"0".concat(e).slice(-2)).join(":");class m extends a.PureComponent{componentDidMount(){this.start(),document.addEventListener("visibilitychange",this.onVisibilityChange)}componentDidUpdate(e){let{referenceTime:t}=this.props;t!==e.referenceTime&&this.resetDelta()}componentWillUnmount(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilityChange)}resetDelta(){let{referenceTime:e,modifier:t}=this.props,n=Math.floor(Date.now()/1e3);this.setState({delta:t<0?e-n:n-e})}tick(){if(1>=Math.abs(this.props.modifier)){let e=this.state.delta+this.props.modifier;this.setState({delta:e})}else this.resetDelta()}start(){if(this.stop(),Math.abs(this.props.modifier)>1){let e=Math.floor(Date.now()/1e3)-this.props.referenceTime,[,,,t]=(0,r.U1)(e);this.timeoutIntervalId=window.setTimeout(()=>{this.intervalId=window.setInterval(this.tick,1e3*this.props.modifier),this.tick()},(60-t+1)*1e3)}else this.intervalId=window.setInterval(this.tick,1e3)}stop(){window.clearInterval(this.intervalId),window.clearTimeout(this.timeoutIntervalId)}onVisibilityChange(){"visible"===document.visibilityState&&(this.resetDelta(),this.setState({isPageHidden:!1}),this.start()),"hidden"===document.visibilityState&&(this.stop(),this.setState({isPageHidden:!0}))}render(){if(this.state.isPageHidden)return"-";let e=this.state.delta,t=(0,r.U1)(e),n=f(t.slice(1));return this.props.children({timeParts:t,formattedTime:n,delta:e})}constructor(e){if(super(e),"function"!=typeof e.children&&(0,s.Cu5)())throw Error("Timekeeper component requires prop children as a function!");let t=Math.floor(Date.now()/1e3),n=this.props.modifier<0?e.referenceTime-t:t-e.referenceTime;this.state={delta:n,isPageHidden:!1},this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.resetDelta=this.resetDelta.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this)}}function x(e){let{startTimestamp:t}=e;return(0,i.jsx)(m,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:n,delta:s}=e,[r,o,l,a]=n;return s<0?"-":r>=1?(0,i.jsx)(d.v,{timestamp:1e3*t,isAbsoluteTime:!0}):f([o,l,a])}})}function p(e){let{startTimestamp:t,children:n,modifier:s=1}=e;return(0,i.jsx)(m,{referenceTime:t,modifier:s,children:"function"==typeof n?n:e=>{let{delta:t,formattedTime:n}=e;return t<0?null:n}})}function y(e){let{time:t,status:n,currentPeriodStartTimestamp:r}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let o=t.currentPeriodStartTimestamp||r;if(!o)return null;let l=o-t.initial;return(0,i.jsx)(p,{startTimestamp:l,modifier:60,children:e=>{let{delta:i}=e;if(t.max&&i>t.max)return Math.floor(t.max/60)+"+";let r=0===i?1:Math.ceil(i/60),o=n.code===s.sum["1st extra"]||n.code===s.sum["2nd extra"]||n.code===s.sum.Overtime?"ET-":"";return r>=0?o+r:null}})}let g={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function v(e){let{time:t,status:n,currentPeriodStartTimestamp:s,lastPeriod:a,hasMinuteBlinker:u}=e;if(!h({time:t,status:n,currentPeriodStartTimestamp:s}))return null;let f=a?t[g[a]]:void 0,m=(t.currentPeriodStartTimestamp||s)-t.initial;return(0,i.jsx)(p,{startTimestamp:m,children:e=>{let{timeParts:n,delta:s}=e;if(s<0)return null;let[a,h,x,p]=n;if(a>0)return(0,i.jsx)(d.v,{timestamp:1e3*m});let y="",g="",v=t.max,j=!1;if(v&&s>v){let e=s-v;if(e>r.av)j=!0,g=Math.floor(v/60)+"+";else if(e>0&&f){p=Math.floor(s%60),x=Math.floor(s/60),h=Math.floor(s/3600);let e=x<10?"0".concat(x):"".concat(x),t=p<10?"0".concat(p):"".concat(p);g="".concat(y+e,":").concat(t)}else{y+=Math.floor(v/60)+"'+",p=Math.floor(e%60),x=Math.floor(e/60)%60,h=Math.floor(e/3600)%24;let t=x<10?"0".concat(x):"".concat(x),n=p<10?"0".concat(p):"".concat(p);g="".concat(y+t,":").concat(n)}}else{let e=(x=60*h+x)<10?"0".concat(x):"".concat(x),t=p<10?"0".concat(p):"".concat(p);g="".concat(y+e,":").concat(t)}return(0,i.jsxs)(l.so,{justify:"center",children:[g,f&&(0,i.jsx)(l.so,{align:"center",bg:"status.liveHighlight",px:"sm",ml:"xs",br:"md",children:(0,i.jsxs)(o.Ym,{textStyle:"assistive.default",color:"status.live",children:["+",f,"'"]})}),u&&!j&&(0,i.jsx)(c.I,{})]})}})}},70923:(e,t,n)=>{n.d(t,{Gi:()=>i.Gi,iV:()=>i.iV,kG:()=>i.kG,lx:()=>i.lx,zV:()=>i.zV});var i=n(64287)},79261:(e,t,n)=>{n.d(t,{HI:()=>s,qG:()=>o});var i=n(41735);let s=(0,i.keyframes)(["0%{opacity:1;}30%{opacity:1;}60%{opacity:0.25;}100%{opacity:1;}"]);s.slow=(0,i.keyframes)(["0%{opacity:1;}5%{opacity:1;}10%{opacity:.25;}15%{opacity:1;}100%{opacity:1;}"]),s.fast=(0,i.keyframes)(["0%{opacity:1;}50%{opacity:1;}51%{opacity:0;}100%{opacity:0;}"]),(0,i.css)(["animation:"," 1s ease-in infinite;"],s).slow=(0,i.css)(["animation:"," 10s ease-in infinite;"],s.slow);let r=(0,i.keyframes)(["0%{transform:translateY(50px);opacity:0;}50%{opacity:1;}100%{opacity:1;transform:translateY(0);}"]);(0,i.css)(["animation:0.3s "," ease-in-out;animation-fill-mode:forwards;"],r);let o=(0,i.keyframes)(["from{opacity:0.0001;}to{opacity:1;}"])}}]);