!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]="6c4f68b9-84dc-4f73-a0df-b43d39165dc3",e._sentryDebugIdIdentifier="sentry-dbid-6c4f68b9-84dc-4f73-a0df-b43d39165dc3")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36678],{16007:(e,t,r)=>{r.d(t,{UA:()=>u,UG:()=>i,UH:()=>l,fH:()=>c,fi:()=>d,rC:()=>s});var a=r(41735),n=r(19991);let i=330,o=(0,a.keyframes)` from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } `,s=(0,a.keyframes)` from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } `,l=(0,a.keyframes)` 0% { clip-path: inset(0 15px 0 0); transform: matrix(1, 0, 0, 0.01, 0, 11.5); } 50% { clip-path: inset(0 15px 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } 100% { clip-path: inset(0 0 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } `,c=(0,a.keyframes)` 0% { clip-path: inset(0 0 0 15px); transform: matrix(1, 0, 0, 0.01, 0, -11.5); } 50% { clip-path: inset(0 0 0 15px); transform: matrix(1, 0, 0, 1, 0, 0); } 100% { clip-path: inset(0 0 0 0); transform: matrix(1, 0, 0, 1, 0, 0); } `,d=(0,a.css)` ${o} ease-in ${i}ms 1 `,u=(0,a.css)` ${e=>((e,t)=>{let r=(0,n.q2)(e);return e&&t&&e>t?(0,a.keyframes)` 0% { background-position: 0 -100%; } 100% { background-position: 0 0; background-image: ${r}; } `:(0,a.keyframes)` 0% { background-position: 0 100%; } 100% { background-position: 0 0; background-image: ${r}; } `})(e.rating,e.previousRating)} ${i}ms ease-in 1 `},19991:(e,t,r)=>{r.d(t,{As:()=>i,MR:()=>o,q2:()=>s});var a=r(93338),n=r(98914);let i=e=>{let t=Number(e),r="colors.rating.s00";return t>=9?r="colors.rating.s90":t>=8?r="colors.rating.s80":t>=7?r="colors.rating.s70":t>=6.5?r="colors.rating.s65":t>=6?r="colors.rating.s60":t>0&&(r="colors.rating.s10"),a.S.var(r)},o=(e,t,r)=>{let o=Number(e);if(!o||isNaN(o))return{formattedRating:"-",ratingColor:a.S.var("colors.rating.s00")};let s=(0,n.M)(o,"sideBox"===t||2===r?2:1);return Number(s)>=10?{formattedRating:"10",ratingColor:a.S.var("colors.rating.s90")}:{formattedRating:s,ratingColor:i(s)}},s=(e,t)=>{if(e&&t)return`linear-gradient(to bottom, ${i(e)} 50%, ${i(t)} 50%)`;let r=i(e);return`linear-gradient(to bottom, ${r}, ${r})`}},36678:(e,t,r)=>{r.d(t,{n6:()=>$,MC:()=>f.MC,gY:()=>S,G:()=>P,ey:()=>R});var a=r(6029),n=r(87827),i=r(46787),o=r(51569),s=r(60235),l=r(62042),c=r(20325),d=r(93338),u=r(55729),m=r(90248),p=r(494),h=r(18970),g=r(52466),f=r(17135),x=r(41164),v=r(67087),b=r(66331),y=r(96861),j=r(36882),w=r(70251),k=r(11219);function $(e){let t=(0,u.useRef)(null),r=(0,p.d4)(t=>t.favorites.events[e.event.id],p.bN),[n,i]=(0,v.jr)(r,"homeTeam","awayTeam",r),[o,c]=(0,v.jr)(r,"homeScore","awayScore",r),d=(0,s.ZC)(null==r?void 0:r.status.type);return((0,u.useEffect)(()=>{e.mutate&&d&&(null==r?void 0:r.status.type)&&d!==r.status.type&&e.mutate()},[e.mutate,d,null==r?void 0:r.status.type]),r)?(0,a.jsx)(h.y$,{value:{event:r,leftTeam:n,rightTeam:i,leftScore:o,rightScore:c},children:(0,a.jsx)(k.tj,{event:r,className:(0,l.cx)("event-hl-".concat(r.id),(0,l.AH)({display:"block",br:"2xs",_hover:{bg:"surface.s2"},_active:{bg:"surface.s0"}})),onClick:t=>{e.onClick&&e.onClick(t,(null==r?void 0:r.id)||-1,e.isMobile)},children:(0,a.jsx)("div",{ref:t,children:(0,a.jsx)(f.n6,{...e,event:r,location:e.location})})})}):null}let C=()=>{let{event:e,leftTeam:t,rightTeam:r}=(0,u.useContext)(h.y$),{location:n}=(0,f.lv)();return void 0===n?null:(0,a.jsx)(w.h,{id:e.id,tournament:e.tournament,leftTeam:t,rightTeam:r,type:j.b.Event,location:n})},S=e=>(0,a.jsx)($,{...e,children:C}),N=e=>{let{referenceId:t,isReferenceTeamId:r}=e,n=(0,v.h2)(t,r),s={background:"colors.neutrals.nLv3",char:"?"};switch(n){case i.h18.Win:s={background:"colors.secondary.default",char:"W"};break;case i.h18.OvertimeLoss:case i.h18.Lose:s={background:"colors.status.error.default",char:"L"};break;case i.h18.Draw:s={background:"colors.neutrals.nLv3",char:"D"}}return(0,a.jsx)(c.az,{w:"xl",h:"xl",br:"50%",mx:"xs",style:{backgroundColor:d.S.var(s.background)},children:(0,a.jsx)(o.EY,{textStyle:"display.small",color:"onColor.primary",lineHeight:"24px",w:"xl",textAlign:"center",display:"block",children:s.char})})},H=e=>{let{event:t,leftTeam:r,rightTeam:n}=(0,u.useContext)(h.y$);return[i.XUj.NotStarted,i.XUj.InProgress].includes(t.status.type)?(0,a.jsx)(w.h,{type:j.b.Event,location:j.y.MatchesSection,id:t.id,tournament:t.tournament,leftTeam:r,rightTeam:n}):(0,a.jsx)(N,{...e})},R=e=>{let{referenceId:t,isReferenceTeamId:r,incidentsMap:n,...i}=e;return e=>(0,a.jsx)($,{incidents:n?n[e.event.id]:void 0,isReferenceTeamId:r,...i,...e,children:()=>(0,a.jsx)(H,{referenceId:t,isReferenceTeamId:r})})},L=e=>{let{value:t}=e;return(0,a.jsx)(c.so,{w:"xl",h:"xl",align:"center",justify:"center",color:"onColor.default",backgroundColor:t>0?"secondary.default":"neutrals.nLv3",children:t})},P=e=>{let{statistics:t,player:r,isOnBench:s,incidents:l,isReferenceTeamId:d,selectedStatistic:p}=e;return e=>(0,a.jsx)($,{incidents:l,entity:i.wNW.Player,...e,isReferenceTeamId:d,children:(0,x.rK)(e.event)?()=>{let{openEventPlayerStatistics:e}=(0,b.d)(),{event:l,leftTeam:d,rightTeam:f}=(0,u.useContext)(h.y$),x=l.status.type,v=l.tournament.category.sport,k=x===i.XUj.NotStarted,$=v.slug===i.QCR.Football||"rating"===p,C=[i.QCR.Basketball,i.QCR.Volleyball].includes(v.slug)&&p&&"rating"!==p,S=!$&&!C;if(s&&v.slug===i.QCR.Football)return(0,a.jsx)(c.az,{w:"xl",h:"xl",children:(0,a.jsx)(g.IKQ,{width:24,height:24,color:"neutrals.nLv3"})});if(k)return(0,a.jsx)(w.h,{id:l.id,type:j.b.Event,location:j.y.MatchesSection,tournament:l.tournament,leftTeam:d,rightTeam:f});if(!l.hasEventPlayerStatistics)return(0,a.jsx)(c.so,{w:"xl",h:"xl",align:"center",justify:"center",children:(0,a.jsx)(o.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,a.jsx)(m.A,{id:"N/A"})})});let N=S?(0,a.jsx)(g.Abd,{width:24,height:24,color:"onColor.primary"}):(0,a.jsxs)(a.Fragment,{children:[$&&(0,a.jsx)(n.G,{rating:null==t?void 0:t.rating}),C&&(0,a.jsx)(L,{value:(null==t?void 0:t[p])||0})]});return(0,a.jsx)(o.K0,{onClickCapture:t=>{t.preventDefault(),t.stopPropagation(),l.hasEventPlayerStatistics&&r&&e({event:l,player:r},y._l.EventCell)},variant:S?"filled":"clear",colorPalette:S?"secondary":void 0,children:N})}:null})}},47177:(e,t,r)=>{r.d(t,{s:()=>s});var a=r(94565),n=r(41735),i=r(16007),o=r(19991);let s=(0,n.default)(a.az)` width: 16px; height: 16px; position: relative; &.animate { > .sideBox-inner { position: relative; width: 16px; height: 16px; background-size: 100% 200%; background-image: ${e=>(0,o.q2)(e.rating,e.previousRating)}; clip-path: inset(50% 0 50% 0); animation: ${i.rC} ease-in-out ${i.UG}ms 1, ${i.UA}; animation-delay: ${i.UG}ms, 0ms; animation-fill-mode: forwards; transform: translate3d(0, 0, 0); z-index: ${a.Py.Backdrop}; } ::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: calc(100% - 1px); height: 50%; border-top: 1px solid; border-left: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.UH} ease-in-out ${2*i.UG}ms 1; z-index: ${a.Py.Button}; } ::after { content: ''; display: block; position: absolute; bottom: 0; right: 0; width: calc(100% - 1px); height: 50%; border-right: 1px solid; border-bottom: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.fH} ease-in-out ${2*i.UG}ms 1; z-index: ${a.Py.Button}; } } // change width for textual part of rating in a transition + span { transition: width ${i.UG}ms ease-in; transition-delay: ${e=>"10"===e.rating?i.UG:0}ms; } `},83204:(e,t,r)=>{r.d(t,{T:()=>c});var a=r(6029),n=r(94565),i=r(55729),o=r(41735),s=r(52462);let l=(0,o.default)(n.az)` cursor: inherit; > span { display: none; } &.animate { --rating: ${e=>e.rating}; --temp: calc(var(--rating)); --v1: max(var(--temp) - 0.5, 0); --v2: max( (var(--temp) - var(--v1)) * ${e=>2===e.decimalPoints?99:10} - ${e=>2===e.decimalPoints?.05:.5}, 0 ); animation: ${e=>((e,t)=>(0,o.keyframes)` from { --rating: ${t||(e?e-1.5:0)}; } to { --rating: ${e}; } `)(e.rating,e.previousRating)} 660ms ease-in; counter-reset: v1 var(--v1) v2 var(--v2); &::after { content: ${e=>!e.rating||"-"===e.rating||isNaN(+e.rating)?"-":2===e.decimalPoints?"counter(v1) '.' counter(v2, decimal-leading-zero)":"counter(v1) '.' counter(v2)"}; } } &.animation-complete { &::after { content: ${e=>`"${e.rating}"`}; } } `;function c({rating:e,previousRating:t,decimalPoints:r,animate:n}){let{isCountUpSupported:o}=(0,i.useContext)(s.N_),c=(0,i.useRef)(null);return((0,i.useEffect)(()=>{var e;null==(e=c.current)||e.classList.remove("animation-complete"),setTimeout(()=>{requestAnimationFrame(()=>{c.current&&c.current.classList.replace("animate","animation-complete")})},660)},[e,n]),o&&"10"!==e&&"-"!==e)?(0,a.jsx)(l,{ref:c,className:n?"animate":"",rating:e,previousRating:e===t?void 0:t,decimalPoints:r,children:(0,a.jsx)("span",{children:e})}):(0,a.jsx)(a.Fragment,{children:e})}},87827:(e,t,r)=>{r.d(t,{G:()=>a.A});var a=r(94400)},94400:(e,t,r)=>{r.d(t,{A:()=>x});var a=r(64082),n=r(6029),i=r(60235),o=r(94565),s=r(43072),l=r(46787),c=r(55729),d=r(16007);function u({duration:e="330ms",repeatCount:t=1,delay:r=d.UG,width:a=24,height:i=24,animate:s}){let[u,m]=(0,c.useState)(!1);return((0,c.useLayoutEffect)(()=>{let e;return s||(0,l.NuQ)()?e=window.setTimeout(()=>{requestAnimationFrame(()=>{m(!0)})},r):m(!1),()=>{window.clearTimeout(e)}},[s]),u)?(0,n.jsx)(o.az,{position:"absolute",top:"1",left:"1",h:i-2,w:a-2,zIndex:o.Py.Sticky,overflow:"hidden",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32",width:a,height:i,style:{width:"100%",height:"100%",transform:"translate3d(0px, 0px, 0px)",display:"block",overflow:"hidden"},preserveAspectRatio:"xMidYMid meet",children:[(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"white",d:"M -64 0 H -32 L 0 32 H -32 Z",fillOpacity:".6",children:(0,n.jsx)("animate",{attributeName:"d",values:"M -64 0 H -32 L 0 32 H -32 Z;M 32 0 H 36 L 72 32 H 68 Z",dur:e,repeatCount:t,keySplines:"0.86 0.12 0.92 0.79"})}),(0,n.jsx)("animateTransform",{attributeName:"transform",type:"translate",from:"-32 0",to:"32 0",dur:e,repeatCount:t})]}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"white",d:"M -36 0 H -32 L 0 32 H -4 Z",fillOpacity:"1.0",children:(0,n.jsx)("animate",{attributeName:"d",values:"M -36 0 H -32 L 0 32 H -4 Z;M 0 0 H 4 L 36 32 H 32 Z;M 32 0 H 48 L 80 32 H 64 Z",dur:e,repeatCount:t,keySplines:"1 0 1 0.1"})}),(0,n.jsx)("animateTransform",{attributeName:"transform",type:"translate",from:"-128 0",to:"0 0",dur:e,repeatCount:t})]})]})}):null}var m=r(47177),p=r(97824),h=r(83204),g=r(19991);let f={sm:[16,12],md:[24,14],lg:[32,16],xl:[40,24]};function x(e){var{rating:t,format:r,cursor:l="default",isOnColor:c}=e,d=(0,a.T)(e,["rating","format","cursor","isOnColor"]);let{formattedRating:x}=(0,g.MR)(t,r,d.decimalPoints),[v,b]=(0,s.Wx)({triggerOnce:!0}),y=(0,i.ZC)(x);if("sideBox"===r)return(0,n.jsxs)(o.so,{position:"relative",children:[(0,n.jsxs)(m.s,{ref:v,className:b?"animate":"",rating:x,previousRating:y,c:c?"onColor.primary":"onSurface.nLv1",mr:"xs",cursor:l,children:[(0,n.jsx)(o.az,{className:"sideBox-inner"}),"10"===x&&(0,n.jsx)(u,{width:16,height:16,delay:660,animate:b})]}),(0,n.jsx)(o.EY,{role:"meter","aria-valuemin":3,"aria-valuemax":10,"aria-valuenow":x,userSelect:"none",cursor:"inherit",font:"display.large",color:c?"onColor.primary":"onSurface.nLv1",w:"10"===x?24:36,h:"16",lineHeight:"16px",letterSpacing:"-0.5px",fontVariant:"tabular-nums",children:(0,n.jsx)(h.T,{rating:x,previousRating:y,decimalPoints:2,animate:b})})]});let j=d.size||"md",w=d.decimalPoints||1,[k,$]=f[j];return(0,n.jsx)(o.az,{ref:v,children:(0,n.jsxs)(p.v,{cursor:l,className:b?2===w?"animate border":"animate":"",align:"center",justify:"center",h:k,w:2===w&&"10"!==x?k+8:k,textAlign:"center",rating:x,previousRating:y,shrink:0,grow:0,fontSize:$,c:c?"onColor.primary":"onSurface.nLv1",children:["10"===x&&(0,n.jsx)(u,{height:k,width:k,animate:b}),(0,n.jsx)(o.EY,{role:"meter","aria-valuemin":3,"aria-valuemax":10,"aria-valuenow":x,userSelect:"none",cursor:"inherit",align:"center",font:"table.lineupsRating",letterSpacing:"-0.5px",fontSize:$,fontVariant:"tabular-nums",color:"white",lineHeight:1,children:(0,n.jsx)(h.T,{rating:x,previousRating:y,decimalPoints:w,animate:b})})]})})}},97824:(e,t,r)=>{r.d(t,{v:()=>s});var a=r(94565),n=r(41735),i=r(16007),o=r(19991);let s=(0,n.default)(a.so)` position: relative; transform: translate3d(0, 0, 0); opacity: 0; background-size: 100% 200%; background-image: ${e=>(0,o.q2)(e.rating,e.previousRating)}; &.animate { opacity: 1; animation: ${i.fi}, ${i.UA}; } &.border { ::before { content: ''; display: block; position: absolute; top: 0; left: 0; width: 50%; height: 50%; border-top: 1px solid; border-left: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.UH} ease-in-out ${2*i.UG}ms 1; z-index: ${a.Py.Button}; } ::after { content: ''; display: block; position: absolute; bottom: 0; right: 0; width: 50%; height: 50%; border-right: 1px solid; border-bottom: 1px solid; transform: translate3d(0, 0, 0); animation: ${i.fH} ease-in-out ${2*i.UG}ms 1; z-index: ${a.Py.Button}; } } `}}]);