!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]="e194a942-b462-4e8b-8bc2-edd8f7ec4d67",e._sentryDebugIdIdentifier="sentry-dbid-e194a942-b462-4e8b-8bc2-edd8f7ec4d67")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[61392],{17135:(e,t,n)=>{n.d(t,{n6:()=>es,MC:()=>y.M,lv:()=>y.l});var i=n(6029),s=n(46787),r=n(22375),l=n(51569),o=n(20325),a=n(93338),c=n(55729),d=n(90510),u=n(90248),h=n(47125),x=n(18970),m=n(70923),f=n(63561),p=n(86300),g=n(81484),v=n(90223),y=n(23240);function j(e){let{isShortDate:t}=e,{event:n}=(0,c.useContext)(x.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,T=n.status.code===s.sum.Halftime||n.status.code===s.sum["Extra time halftime"],C=(0,v.sw)(n)||n.isAwarded,P=(0,v.ux)(n),k=n.tournament.category.sport.slug===s.QCR.Football,D=n.crowdsourcingDataDisplayEnabled,A=n.status.type===s.XUj.WillContinue,U=(0,f.Sw)(n),M=(e=>{let t=e.status.type===s.XUj.InProgress,n=e.crowdsourcingDataDisplayEnabled,i=(0,v.sw)(e)||e.isAwarded,r=(0,v.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:L}=(0,y.l)(),R=(0,g.c8)((0,v.B_)(n),!0);return(0,i.jsxs)(o.az,{title:R.toString(),textAlign:"center",mx:"sm",flexShrink:0,flexBasis:"5xl",children:[(0,i.jsx)(l.Ym,{textStyle:"body.small",color:"neutrals.nLv3",children:function(){if(r.cK(j)||L)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)(l.Ym,{textStyle:"body.small",textAlign:"center",w:"5xl",display:"block",truncate:!0,style:{color:M},children:function(){if(L&&I&&!C)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&&k&&!T)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(P)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||C||A)&&R)return U?(0,f.vJ)(n.tournament.category.sport.slug)?"".concat(U," ").concat(R):"".concat(R," (").concat(U,")"):R;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),T=n(52466),C=n(90438),P=n(56587),k=n(41164),D=n(40076),A=n(98835),U=n(37455),M=n(72753),L=n(14831);let R=()=>{let{event:e}=(0,c.useContext)(x.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)(o.so,{animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(T.FgT,{color:"status.live",w:16,h:16})}):(0,i.jsxs)(o.so,{direction:e.varInProgress.homeTeam?"column":"column-reverse",children:[(0,i.jsx)(o.so,{h:"lg",justify:"center",align:"center",animationName:"pulse",animationDuration:"[3s]",animationIterationCount:"infinite",children:(0,i.jsx)(T.FgT,{color:"status.live",w:16,h:16})}),(0,i.jsx)(o.az,{h:"lg"})]}):null};var E=n(8536),z=n(25133),X=n(947),N=n(60235),Q=n(94565);let _=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 F(e){let{text:t,isLive:n}=e,s=(0,c.useRef)(null),r=(0,N.uc)(s)||0,[o,a]=["body","medium"],d=Q.Il.font[o],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)(l.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?J[t.lastPeriod]:null;return[n&&t.homeTeam.id===t.currentBattingTeamId&&i===V()(B()(t.homeScore.innings)),n&&t.awayTeam.id===t.currentBattingTeamId&&i===V()(B()(t.awayScore.innings))]},q=e=>{let t=$()(e),n=V()(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,G.M)(i,1)]};function Z(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(x.y$),r=(0,k.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[f,g]=O({event:n}),[v,y,j]=q(n.homeScore.innings),[w,b,S]=q(n.awayScore.innings),I=n.homeScore.display||0,C=n.awayScore.display||0,P=I>v||C>w,D=(0,L.sw)(n)?0===v&&v0&&"".concat(v).concat(y>=0&&y<10?"-".concat(y):""," (").concat(j,")"),P?(0,i.jsx)(o.az,{display:"inline-block",ml:"xs",children:I}):null]})}),(0,i.jsx)(o.so,{justify:"flex-end",children:A?(0,i.jsx)(l.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&&g?"sofaSingles.live":h||m?"onSurface.nLv1":"onSurface.nLv3",flex:"1 1 16px",maxW:"fit-content",children:[g&&U," ",w>0&&"".concat(w).concat(b>=0&&b<10?"-".concat(b):""," (").concat(S,")"),P?(0,i.jsx)(o.az,{display:"inline-block",ml:"xs",children:C}):null]})})]})}function ee(e){let{hasTail:t}=e,{event:n}=(0,c.useContext)(x.y$),[r,l]=O({event:n}),a=(0,k.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,f=void 0===n.winnerCode;if(a!==s.QCR.Cricket||d)return null;let g=n.homeScore.display||"-",v=n.awayScore.display||"-",y="-"!==g||"-"!==v;return(0,i.jsxs)(o.az,{pr:"sm",mr:t?void 0:"sm",children:[y?(0,i.jsx)(o.az,{mb:"2xs",children:(0,i.jsx)(p.c,{eventId:n.id,changeKey:"homeScore.display",textAlign:"end",color:u&&r?"sofaSingles.live":h||f?"onSurface.nLv1":"onSurface.nLv3",children:g})}):null,y?(0,i.jsx)(o.az,{children:(0,i.jsx)(p.c,{eventId:n.id,changeKey:"awayScore.display",textAlign:"end",color:u&&l?"sofaSingles.live":m||f?"onSurface.nLv1":"onSurface.nLv3",children:v})}):null]})}let et=[s.QCR.Basketball,s.QCR.IceHockey,s.QCR.AmericanFootball,s.QCR.Floorball,s.QCR.AussieRules],en=[s.QCR.Volleyball,s.QCR.Baseball,s.QCR.BeachVolley,s.QCR.Badminton],ei=function(e){let{children:t}=e;return"function"!=typeof t?null:(0,i.jsx)(o.az,{mr:"md",children:(0,i.jsx)(l.EY,{textAlign:"center",position:"relative",overflow:"visible",truncate:!0,children:t()})})};function es(e){var t,n;let r=(0,y.l)(),{children:l,style:a,odds:d,isSelected:u,entity:h,incidents:m,isReferenceTeamId:f}=e,p=(0,S.useRouter)(),g=void 0===e.isShort?r.isShort:e.isShort,v=null!=(n=e.isNarrow)?n:r.isNarrow,L=void 0===e.isShortDate?r.isShortDate:e.isShortDate,X=void 0===e.hideIncidentIcons?r.hideIncidentIcons:e.hideIncidentIcons,{event:N}=(0,c.useContext)(x.y$),Q=(0,I.d4)(M.LQ),_=[C.xW.Favorites,C.xW.TVSchedule].includes(p.route),F=(0,k.c5)(N),Y=(0,I.d4)((0,U.Ul)(N)),B=r.showOdds&&Y,K=F===s.QCR.Cricket&&!_,V=N.status.type===s.XUj.InProgress,W=N.status.type===s.XUj.Finished,$=V&&N.crowdsourcingDataDisplayEnabled,G=W&&N.crowdsourcingDataDisplayEnabled,J=F===s.QCR.AmericanFootball&&V&&(null==(t=N.tournament.uniqueTournament)?void 0:t.hasDownDistance),O=J&&(0,D.H_)(N.yardDistance),q=K||O,et=(0,w.TF)(N,Q)?(0,i.jsx)(T.PEB,{color:V?"status.live":"neutral.default"}):void 0;return(0,i.jsxs)(o.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(N.id," ").concat((0,b.AH)({"&.active":{bg:"neutral.highlight"}})),style:a,children:[K?(0,i.jsx)(o.az,{minW:"md",w:"md",h:"100%"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(A.kV,{eventId:N.id}),(0,i.jsx)(j,{isShortDate:L})]}),(0,i.jsx)(o.az,{mr:"sm",h:q?"5xl":"[36px]",flex:"[0 0 1px]",bg:"neutrals.nLv4"}),(0,i.jsxs)(o.az,{flexGrow:1,overflowX:"clip",minW:"[0px]",children:[(0,i.jsxs)(o.so,{align:"center",children:[(0,i.jsx)(z.g,{isShort:g,entity:h}),B?(0,i.jsx)(P.ZK,{eventId:N.id,odds:d,sport:F,fallback:et}):(0,i.jsxs)(i.Fragment,{children:[X||N.isAwarded?null:(0,i.jsx)(function(e){let{incidents:t,sportSlug:n,isReferenceTeamId:r}=e,{event:l,leftTeam:a}=(0,c.useContext)(x.y$);return n!==s.QCR.Cricket&&t?(0,i.jsx)(o.so,{mr:"sm",alignSelf:(null==r?void 0:r(Number(a.id),l.id))?"flex-start":"flex-end",children:(0,w.t3)(n,t)}):null},{isReferenceTeamId:f,incidents:m,sportSlug:F}),$&&(0,i.jsx)(T.Mv5,{color:"status.crowdsourcingLive"}),et,G&&(0,i.jsx)(T.Mv5,{color:"neutrals.nLv3",w:16}),!r.hideScores&&(0,i.jsx)(er,{}),r.hideScores?null:F===s.QCR.Cricket?(0,i.jsx)(Z,{hasTail:!!l}):h!==s.wNW.Player?(0,i.jsx)(el,{isNarrow:v||en.includes(F)}):null]}),J&&(0,i.jsx)(D.x8,{event:N}),B&&(0,i.jsx)(ee,{hasTail:!!l}),F===s.QCR.Football&&(0,i.jsx)(R,{}),!r.hideScores&&(0,i.jsx)(E.$,{})]}),K&&(0,i.jsx)(H,{event:N,isShortDate:L}),O&&(0,i.jsx)(D.RU,{})]}),!!l&&!r.hideTailDivider&&(0,i.jsx)(o.az,{mr:"md",h:q?"5xl":"[36px]",bg:"neutrals.nLv4",style:{flex:"0 0 ".concat(+!!l,"px")}}),(0,i.jsx)(ei,{children:l})]})}function er(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(x.y$);if((0,k.c5)(e)===s.QCR.Tennis&&e.status.type===s.XUj.InProgress){let s=(0,i.jsx)(T.OXq,{color:"secondary.default",position:"absolute",w:"12",h:"16",left:"-lg"});return(0,i.jsxs)(o.so,{direction:"column",justify:"flex-end",align:"flex-end",mr:"md",ml:"lg",w:"2xl",basis:"2xl",children:[(0,i.jsxs)(o.az,{position:"relative",minW:"lg",mb:"2xs",children:[1===e.firstToServe&&s,(0,i.jsx)(A.cU,{eventId:e.id,color:"secondary.default",textAlign:"end",changeKey:"homeScore.point",score:t.point})]}),(0,i.jsxs)(o.az,{position:"relative",minW:"lg",children:[2===e.firstToServe&&s,(0,i.jsx)(A.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,l.$c)();return["lg","sm"].includes(n)&&!t?(0,i.jsx)(eo,{}):(0,i.jsx)(ea,{})}function eo(){var e,t;let{event:n,leftTeam:r,rightTeam:a,leftScore:d,rightScore:u}=(0,c.useContext)(x.y$),h=(null==(e=r.subTeams)?void 0:e.length)===2&&(null==(t=a.subTeams)?void 0:t.length)===2,[m,f]=(0,c.useMemo)(()=>{let e=[],t=[],r=(0,k.c5)(n),a=r===s.QCR.Tennis,c=[],x=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],o=u[s],a=h&&"period3TieBreak"===s&&!!r&&!!o&&(t===r||n===o),m=!a&&(r||0===r)?(0,i.jsx)(l.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,f=!a&&(o||0===o)?(0,i.jsx)(l.EY,{textStyle:"assistive.micro",top:"0",left:n<10?"[14px]":"[18px]",position:"absolute",verticalAlign:"super",lineHeight:"1","data-change-key":"awayScore.".concat(s),children:o}):null;c.push({left:t,right:n,leftTie:m,rightTie:f,periodKey:e}),(t||0===t||n||0===n||m||f)&&x++}),c.forEach((l,c)=>{let{left:d,right:u,leftTie:h,rightTie:m,periodKey:f}=l,p=n.status.type===s.XUj.InProgress&&c+1===x,g=r===s.QCR.Tennis?"center":"end",v=d>99||u>99?36:24;e.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",style:{width:v},textAlign:a?"start":"end",children:[(0,i.jsx)(A.cU,{eventId:n.id,changeKey:"homeScore.".concat(f),score:d,textAlign:g,align:"flex-start",color:p?"sofaSingles.live":d>u?"onSurface.nLv1":"onSurface.nLv3",w:v}),h]},f)),t.push((0,i.jsxs)(o.az,{d:"inline-block",position:"relative",textAlign:a?"start":"end",style:{width:v},children:[(0,i.jsx)(A.cU,{eventId:n.id,changeKey:"awayScore.".concat(f),score:u,textAlign:g,align:"flex-start",color:p?"sofaSingles.live":u>d?"onSurface.nLv1":"onSurface.nLv3",w:v}),m]},f))}),[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,L.sw)(n))&&(m||f)?(0,i.jsxs)(o.az,{children:[(0,i.jsx)(o.so,{h:"lg",mb:"2xs",children:m}),(0,i.jsx)(o.so,{h:"lg",children:f})]}):null}function ea(){let{event:e,leftScore:t,rightScore:n}=(0,c.useContext)(x.y$),r=(0,k.c5)(e);if(void 0===e.periods||!e.lastPeriod||et.includes(r))return null;let l=r===s.QCR.Tennis?"sofaSingles.live":"secondary.default";return e.status.type===s.XUj.InProgress&&e.lastPeriod?(0,i.jsxs)(o.az,{w:"[28px]",children:[(0,i.jsx)(o.az,{position:"relative",mb:"2xs",children:(0,i.jsx)(A.cU,{eventId:e.id,align:"right",color:l,changeKey:"homeScore.".concat(e.lastPeriod),score:t[e.lastPeriod]},e.lastPeriod)}),(0,i.jsx)(o.az,{position:"relative",children:(0,i.jsx)(A.cU,{eventId:e.id,align:"right",color:l,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_:()=>f,XB:()=>x});var i=n(6029),s=n(46787),r=n(20325),l=n(52466),o=n(67087);function a(e){var t;let{event:n}=e,a=(0,o.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)(l.CvR,{icon:"af-touchdown",width:"16px",height:"16px",mr:"xs",mt:"2xs",color:"status.live"})})}var c=n(51569),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(),x=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),l=(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),o=((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 l&&o?"".concat(r," ").concat(l," @ ").concat(o):null}function f(e){return!!e&&!!x(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}},47125:(e,t,n)=>{n.d(t,{I:()=>r});var i=n(6029);let s=(0,n(62042).AH)({animation:"blink 1s steps(1, end) infinite"}),r=()=>(0,i.jsx)("span",{className:s,children:"'"})},64287:(e,t,n)=>{n.d(t,{Gi:()=>f,iV:()=>m,kG:()=>g,lx:()=>y,zV:()=>h});var i=n(6029),s=n(46787),r=n(22375),l=n(51569),o=n(20325),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)},x=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=x(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 f(e){let{startTimestamp:t}=e;return(0,i.jsx)(m,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:n,delta:s}=e,[r,l,o,a]=n;return s<0?"-":r>=1?(0,i.jsx)(d.v,{timestamp:1e3*t,isAbsoluteTime:!0}):x([l,o,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 g(e){let{time:t,status:n,currentPeriodStartTimestamp:r}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let l=t.currentPeriodStartTimestamp||r;if(!l)return null;let o=l-t.initial;return(0,i.jsx)(p,{startTimestamp:o,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),l=n.code===s.sum["1st extra"]||n.code===s.sum["2nd extra"]||n.code===s.sum.Overtime?"ET-":"";return r>=0?l+r:null}})}let v={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function y(e){let{time:t,status:n,currentPeriodStartTimestamp:s,lastPeriod:a,hasMinuteBlinker:u}=e;if(!h({time:t,status:n,currentPeriodStartTimestamp:s}))return null;let x=a?t[v[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,f,p]=n;if(a>0)return(0,i.jsx)(d.v,{timestamp:1e3*m});let g="",v="",y=t.max,j=!1;if(y&&s>y){let e=s-y;if(e>r.av)j=!0,v=Math.floor(y/60)+"+";else if(e>0&&x){p=Math.floor(s%60),f=Math.floor(s/60),h=Math.floor(s/3600);let e=f<10?"0".concat(f):"".concat(f),t=p<10?"0".concat(p):"".concat(p);v="".concat(g+e,":").concat(t)}else{g+=Math.floor(y/60)+"'+",p=Math.floor(e%60),f=Math.floor(e/60)%60,h=Math.floor(e/3600)%24;let t=f<10?"0".concat(f):"".concat(f),n=p<10?"0".concat(p):"".concat(p);v="".concat(g+t,":").concat(n)}}else{let e=(f=60*h+f)<10?"0".concat(f):"".concat(f),t=p<10?"0".concat(p):"".concat(p);v="".concat(g+e,":").concat(t)}return(0,i.jsxs)(o.so,{justify:"center",children:[v,x&&(0,i.jsx)(o.so,{align:"center",bg:"status.liveHighlight",px:"sm",ml:"xs",br:"md",children:(0,i.jsxs)(l.Ym,{textStyle:"assistive.default",color:"status.live",children:["+",x,"'"]})}),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)},98914:(e,t,n)=>{n.d(t,{M:()=>i});let i=function(e,t=0){var n,i,s;return(n="round",i=e,0==+(s=-t)?Math[n](+i):(s*=1,isNaN(i*=1)||"number"!=typeof s||s%1!=0)?NaN:+((i=(i=Math[n](+((i=i.toString().split("e"))[0]+"e"+(i[1]?i[1]-s:-s)))).toString().split("e"))[0]+"e"+(i[1]?+i[1]+s:s))).toFixed(t)}}}]);