!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]="34dd58e4-16d0-4e82-9a30-2e5f308eddd4",e._sentryDebugIdIdentifier="sentry-dbid-34dd58e4-16d0-4e82-9a30-2e5f308eddd4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1473],{1217:(e,t,l)=>{function n(e){return["up","down"].includes(e)}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";switch(e){case"left":return"ltr"===t?"rotate(180deg)":void 0;case"right":return"ltr"===t?void 0:"rotate(180deg)";case"down":return"rotate(90deg)";case"up":return"rotate(-90deg)";default:return}}function r(e,t){if(t&&t.height&&t.width)return n(e)?t.width:t.height}function i(e,t){if(t&&t.height&&t.width)return n(e)?t.height:t.width}function a(e){return n(e)?{left:"-30%",top:"18.8%"}:{left:0,top:0}}l.d(t,{AK:()=>a,DY:()=>i,EC:()=>s,G$:()=>r,O8:()=>o,fk:()=>n});let o=e=>e.length>5},9869:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(6029),s=l(9127),r=l(41735);let i=({x:e,y:t})=>{let{colors:l}=(0,r.useTheme)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(s.m.circle,{fill:l.success.default,r:"4",animate:{cx:e,cy:t}})]})}},10292:(e,t,l)=>{l.d(t,{t:()=>n.t});var n=l(91407)},14444:(e,t,l)=>{l.d(t,{b4:()=>m,V3:()=>a,HM:()=>f,k9:()=>d,HI:()=>o});var n=l(6029),s=l(55729),r=l(83260);let i=(0,s.createContext)(void 0),a=e=>{let{children:t,persistKey:l}=e,[s,a]=(0,r.A)(l,[]);return(0,n.jsx)(i.Provider,{value:{recentlySelected:s,setRecentlySelected:a},children:t})},o=()=>{let e=(0,s.useContext)(i);if(void 0===e)throw Error("useRecentSearch must be used within a RecentSearchesProvider");return{recentlySelected:e.recentlySelected,addToRecentlySelected:t=>{let l=e.recentlySelected.filter(e=>e.id!==t.id).slice(0,4),n=[t,...l];e.setRecentlySelected(n)},removeFromRecentlySelected:t=>{let l=e.recentlySelected.filter(e=>e.id!==t.id);e.setRecentlySelected(l)}}};function d(e,t,l,n){return e.length?e.length===(null==l?void 0:l.length)&&e.length===(null==t?void 0:t.length)&&e.length===(null==n?void 0:n.length)?{ids:e.map(e=>null!=e?e:"_").join(","),ut_ids:null==l?void 0:l.map(e=>null!=e?e:"_").join(","),s_ids:null==t?void 0:t.map(e=>null!=e?e:"_").join(","),s_types:null==n?void 0:n.map(e=>null!=e?e:"_").join(",")}:{ids:e.map(e=>null!=e?e:"_").join(",")}:{}}var c=l(94446),u=l(99064),x=l(54409),p=l(24159);let m=e=>{let{player:t,onPlayerClick:l,onRemoveClick:s}=e;return(0,n.jsxs)(u.so,{onClick:()=>l(t),h:"56px",align:"center",cursor:"pointer",children:[(0,n.jsx)(c.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,n.jsxs)(u.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,n.jsx)(p.c,{entity:t})}),(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(c.p,{id:t.team.id,size:16}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,n.jsx)(p.c,{entity:t.team})})]})]}),void 0!==s&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==s||s(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(x.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})};var h=l(49519),g=l(21377),v=l(98449),j=l(94604);let f=e=>{var t,l,s,r,i,a,o,d,c;let{team:p,onTeamClick:m,onRemoveClick:f}=e,y=(null==(t=p.sport)?void 0:t.slug)===g.QCR.Tennis;return(0,n.jsxs)(u.so,{gap:"sm",onClick:()=>m(p),align:"center",cursor:"pointer",py:"sm",children:[(0,n.jsx)(h.p,{id:p.id,name:p.name,size:40}),(0,n.jsxs)(u.so,{direction:"column",gap:"xs",grow:1,children:[(0,n.jsx)(u.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,n.jsx)(j.Rm,{team:p,showFemaleSuffix:p.gender===g.YT8.Female&&!y})}),!p.national&&(null==(l=p.country)?void 0:l.slug)&&(null==(s=p.country)?void 0:s.name)&&!y&&(0,n.jsxs)(u.so,{align:"center",gap:"sm",children:[(0,n.jsx)(h.w,{size:16,alpha2:null==(r=p.country)?void 0:r.alpha2,name:null==(i=p.country)?void 0:i.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(v.m,{slug:p.country.slug,name:p.country.name})})]}),y&&p.country&&p.country.name&&(0,n.jsxs)(u.so,{align:"center",gap:"xs",children:[(0,n.jsx)(h.w,{size:16,alpha2:null==(a=p.country)?void 0:a.alpha2,name:null==(o=p.country)?void 0:o.name}),(0,n.jsx)(u.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,n.jsx)(v.m,{name:p.country.name,slug:null!=(c=null==(d=p.country)?void 0:d.slug)?c:p.country.name})})]})]}),void 0!==f&&(0,n.jsx)(u.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==f||f(p)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,n.jsx)(x.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},16202:(e,t,l)=>{l.d(t,{V:()=>x});var n=l(6029),s=l(28349),r=l(76356),i=l(90248),a=l(48683),o=l(54409),d=l(13266),c=l(79041),u=l(61836);let x=e=>{let{location:t}=e;return(0,n.jsx)(d.N_,{routeKey:"user.weeklyChallenge",onClick:()=>{(0,u.Wk)({type:"weekly_challenge",location:t})},children:(0,n.jsx)(a.Zp,{children:(0,n.jsxs)(r.so,{gap:"md",py:"md",px:"sm",align:"center",justify:"space-between",children:[(0,n.jsx)(s._V,{h:"4xl",w:"[70px]",src:"/static/images/weekly-challenge/predictions-cta.svg",alt:"Weekly challenge trophies"}),(0,n.jsxs)(r.BJ,{gap:"xs",flexGrow:1,children:[(0,n.jsx)(s.EY,{textStyle:"display.medium",children:(0,n.jsx)(i.A,{id:"weekly_challenge"})}),(0,n.jsx)(s.EY,{textStyle:"body.small",color:"neutrals.nLv3",children:(0,n.jsx)(c.k,{})})]}),(0,n.jsx)(s.K0,{variant:"clear",size:"primary",children:(0,n.jsx)(o.CCT,{})})]})})})}},18642:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(6029),s=l(21377),r=l(9869),i=l(63801);let a=({shotCoordinates:e})=>(0,n.jsx)("g",{children:e.map((e,t)=>e.type===s.Dme.Made?(0,n.jsx)(r.A,{x:e.x,y:e.y},t):(0,n.jsx)(i.A,{x:e.x,y:e.y},t))})},19673:(e,t,l)=>{l.d(t,{y:()=>n});function n(e){let t=(null==e?void 0:e.toLowerCase())||"",l=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(l?"/".concat(t):"","/about/rating")}},23854:(e,t,l)=>{l.r(t),l.d(t,{default:()=>eU});var n=l(6029),s=l(21377),r=l(4967),i=l(28349),a=l(21501),o=l(76356),d=l(71024),c=l.n(d),u=l(55729),x=l(90248),p=l(494),m=l(48683),h=l(69559),g=l(54409),v=l(73258),j=l(85386),f=l(65078),y=l(45860),b=l(62859),w=l(45152),_=l(47229),k=l(23822),S=l(5546),A=l(2294),C=l(80925),z=l(61836),T=l(10794);let P=(e,t,l)=>{try{let n=JSON.parse(sessionStorage.getItem(t)||"[]")||[];(null==n?void 0:n.includes(e))||(n.push(e),(0,z.ke)({action:l,location:"main_page",type:"featured_match"}),sessionStorage.setItem(t,JSON.stringify(n)))}catch(e){console.error(e)}},E=()=>{var e;let t=(0,S.Ae)(),[l]=(0,C.Z)(t),r=(0,p.d4)(T.hT)||s.QCR.Football,{data:i}=(0,y.Ay)(l?s.npy.featuredSportEventsByTiers(l,r):null),a=null==i||null==(e=i.featuredEvents)?void 0:e[0],o=(0,p.d4)(a?(0,A.Ul)(a):()=>!0),d=(0,p.d4)(A.fq),c=(0,p.d4)(A.BF),x=(null==a?void 0:a.status.type)===s.XUj.InProgress;return((0,u.useEffect)(()=>{a&&P(a.id,"main.page.interacted.featured.events","impression")},[null==a?void 0:a.id]),i&&!a||c)?null:(0,n.jsx)(w.S,{isLoading:!a||!l,events:[a],onEventClick:e=>{e&&P(e.id,"main.page.clicked.featured.events","click")},hideEventTitle:!0,children:(o||d)&&(0,n.jsx)(b.y$.Provider,{value:{event:a,location:b.cb.FeaturedMatch},children:a?d?(0,n.jsx)(k.A,{eventId:a.id,isLive:x}):(0,n.jsx)(m.WC,{variant:"square",children:(0,n.jsx)(_.f9,{eventId:a.id,isLive:x})}):(0,n.jsx)(_.t1,{provider:t})})})};var R=l(66268),I=l(16202),L=l(25862),F=l(29270),G=l(20179),B=l(54053),M=l(12153),W=l(14444),Y=l(32651),V=l(53192),$=l(91407),D=l(91603),H=l(98449),N=l(24159),O=l(99064),Q=l(76868),Z=l(78339);let J=e=>{if(!(null==e?void 0:e.length))return;let t=[],l=e.filter(e=>e.type===s.wNW.Team),n=e.filter(e=>e.type===s.wNW.Player),r=Math.max(l.length,n.length);for(let e=0;e{let{items:t,titleId:l,empty:r,onSelect:a}=e;return(null==t?void 0:t.length)?(0,n.jsxs)(o.az,{children:[l&&(0,n.jsx)(i.EY,{textStyle:"assistive.default",children:(0,n.jsx)(x.A,{id:l})}),t.map(e=>e.type===s.wNW.Player?(0,n.jsx)(W.b4,{player:e.entity,onPlayerClick:()=>{a(e)}},e.entity.id):e.type===s.wNW.Team?(0,n.jsx)(W.HM,{team:e.entity,onTeamClick:()=>{a(e)}},e.entity.id):null)]}):(0,n.jsx)(n.Fragment,{children:r})};function X(e){let{type:t,onSelect:l,sport:r}=e,{query:i,results:a,suggestions:d,onQueryChange:c,isLoadingPage:u}=(0,Z.S)(!0,t,"all"===t?[s.wNW.Team,s.wNW.Player]:void 0,r,"".concat(r,"_recent_compare_cta")),p=i&&i.length>2;return(0,n.jsx)(O.jT,{label:(0,n.jsx)(x.A,{id:t===s.G$9.PlayerTeamPersons?"hint_enter_player_name":t===s.G$9.Teams?"hint_enter_team_name":"hint_enter_team_or_player"}),query:i||"",options:[],onQueryChange:c,filterOptions:e=>!!e,inputProps:{autoFocus:!1,endAdornment:null},w:"100%",zIndex:O.Py.Sticky,itemWrapper:()=>(null==a?void 0:a.length)||!u?(0,n.jsx)(o.az,{p:"md",children:p?(0,n.jsx)(U,{items:a,onSelect:l,empty:(0,n.jsx)(Q.p,{graphic:"no-data",titleMessageId:"empty_search_title",descriptionMessageId:"no_events_found_body"})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U,{titleId:"suggested",items:J(d),onSelect:l})})}):null})}let q=e=>{let{id:t,name:l,type:r,rotate:i}=e;switch(r){case s.G$9.PlayerTeamPersons:return(0,n.jsx)($.t,{id:t,size:48,name:l});case s.G$9.Teams:return(0,n.jsx)(D.p,{id:t,size:48,name:l});default:return(0,n.jsx)(o.so,{minW:"4xl",h:"4xl",bg:"surface.s2",br:"50%",align:"center",justify:"center",children:(0,n.jsx)(g.S3t,{fill:"neutral.default",style:i?{transform:"rotate(180deg)"}:void 0})})}},K=e=>{let{country:t,reversed:l}=e;return(0,n.jsxs)(o.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(V.w,{size:24,alpha2:null==t?void 0:t.alpha2,name:null==t?void 0:t.name}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(null==t?void 0:t.slug)&&(null==t?void 0:t.name)?(0,n.jsx)(H.m,{name:t.name,slug:t.slug}):"-"})]})},ee=e=>{let{player:t,reversed:l}=e;return(0,n.jsxs)(o.so,{align:"center",direction:l?"row-reverse":"row",gap:"xs",children:[(0,n.jsx)(D.p,{id:t.team.id,size:24}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",lineHeight:1,truncate:!0,maxW:"[150px]",children:(0,n.jsx)(N.c,{entity:t.team})})]})};function et(e){let{isFirst:t,selected:l,type:r,sport:a,onSelect:d}=e,c=null==l?void 0:l.entity,u=(null==l?void 0:l.type)===s.wNW.Player;return(0,n.jsxs)(o.so,{px:"lg",py:"sm",gap:"lg",align:"center",children:[(0,n.jsx)(q,{id:null==c?void 0:c.id,name:null==c?void 0:c.name,type:r,rotate:!t}),c?(0,n.jsxs)(o.so,{grow:1,justify:"space-between",align:"center",children:[(0,n.jsxs)(o.az,{children:[(0,n.jsx)(i.EY,{textStyle:"display.medium",truncate:!0,maxW:"[180px]",mt:"xs",children:(0,n.jsx)(N.c,{entity:c})}),!c.national&&!u&&(0,n.jsx)(K,{country:null==c?void 0:c.country}),u&&(0,n.jsx)(ee,{player:c})]}),(0,n.jsx)(i.K0,{size:"primary",variant:"clear",onClick:()=>d(void 0),children:(0,n.jsx)(g.hRh,{})})]}):(0,n.jsx)(X,{type:r,onSelect:d,sport:a})]})}let el=()=>{let[e,t]=(0,u.useState)(!1);return(0,n.jsxs)(o.az,{position:"relative",children:[(0,n.jsx)(g.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClick:()=>t(!0)}),(0,n.jsx)(B.A,{isOpen:e,setIsOpen:t,header:"compare_stats",children:(0,n.jsx)(i.EY,{maxW:"[280px]",textStyle:"body.mediumParagraph",px:"lg",display:"block",children:(0,n.jsx)(x.A,{id:"explainer_compare_stats"})})})]})};function en(e){var t;let{sport:l}=e,[r,a]=(0,u.useState)(),[d,c]=(0,u.useState)(),p=r||d,h=(null==p?void 0:p.type)===s.wNW.Player||(null==p||null==(t=p.entity)?void 0:t.type)===s.YVh.Person?s.G$9.PlayerTeamPersons:(null==p?void 0:p.type)===s.wNW.Team?s.G$9.Teams:s.G$9.All,g=[];return((null==r?void 0:r.entity.id)&&g.push(r.entity.id),(null==d?void 0:d.entity.id)&&g.push(d.entity.id),(0,u.useEffect)(()=>{a(void 0),c(void 0)},[l]),Y.G.includes(l))?(0,n.jsx)(W.V3,{persistKey:"".concat(l,"_recent_compare_cta"),children:(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"compare_stats",actionComponent:(0,n.jsx)(el,{})}),(0,n.jsx)(et,{type:h,selected:r,onSelect:a,sport:l,isFirst:!0}),(0,n.jsx)(o.az,{h:"[1px]",mx:"lg",my:"sm",bg:"neutrals.nLv4"}),(0,n.jsx)(et,{type:h,selected:d,onSelect:c,sport:l}),(0,n.jsx)(o.so,{pt:"xs",pb:"md",justify:"center",align:"center",children:(0,n.jsx)(M.A,{routeKey:"comparison",query:(0,W.k9)(g),params:{sport:l,entityType:h===s.G$9.Teams?"team":"player"},children:(0,n.jsx)(i.$n,{size:"secondary",variant:"filled",children:(0,n.jsx)(x.A,{id:"compare"})})})})]})}):null}var es=l(90510),er=l(8703),ei=l(94604);let ea=()=>{let{event:e,leftTeam:t,rightTeam:l}=(0,u.useContext)(b.y$),r=(0,er.c5)(e),i=(0,f.g3)(),a=(0,n.jsx)(ei.Rm,{team:t,short:r===s.QCR.Tennis}),o=(0,n.jsx)(ei.Rm,{team:l,short:r===s.QCR.Tennis}),d="ar"===(0,p.d4)(T.JV);return(0,n.jsxs)(n.Fragment,{children:[d?o:a," ",r===s.QCR.MMA?"vs":d?"ضد":i?"@":"-"," ",d?a:o]})};var eo=l(11867),ed=l(77988),ec=l(27601),eu=l(38136),ex=l(41618),ep=l(49821),em=l(4236),eh=l(52210),eg=l(75791);let ev=e=>{let{choice:t,isLive:l,branded:s,betSlipLink:r,isComparison:a,onClick:d}=e,c=r&&s,u="fractional"===(0,p.d4)(A.$4),x=u?eg.Y:void 0,m=(0,n.jsxs)(o.so,{position:"relative",justify:"center",align:"center",bg:"surface.s2",br:"xs",border:a&&l?"1px solid {colors.status.val}":"1px solid {colors.neutrals.nLv4}",minW:a?"4xl":"[52px]",h:a?"xl":"[28px]",my:"xs",flexShrink:0,flexGrow:a?1:void 0,children:[(0,n.jsx)(i.EY,{textStyle:"display.micro",color:l?"status.val":"neutrals.nLv1",mr:0===t.change?void 0:"2xs",textAlign:"center",style:{fontSize:u?14:void 0,letterSpacing:u?"-1px":void 0},lineHeight:1,children:(0,n.jsx)(eg.c,{fractionalValue:t.fractionalValue,children:x})}),(0,n.jsx)(eh.I,{change:t.change})]});return c&&(m=(0,n.jsx)(i.Mz,{target:c?"_blank":void 0,rel:c?"nofollow noopener noreferrer":void 0,href:c?r:void 0,onClick:e=>{e.stopPropagation(),null==d||d()},flexGrow:a?1:void 0,flexBasis:a?"4xl":void 0,children:m})),m},ej=()=>(0,n.jsx)(o.az,{flexBasis:"4xl",minW:"4xl",h:"xl",flexGrow:1}),ef=e=>{let{event:t,cop:l,markets:s,choiceNames:r}=e,i=s.map(e=>e.choices).flat(),a=r.map(e=>i.find(t=>t.name===e));return(0,n.jsxs)(o.so,{p:"sm",gap:"xl",justify:"space-between",borderTop:"1px solid {colors.neutrals.nLv4}",align:"center",children:[(0,n.jsx)(ex.r,{selectedProvider:l,size:"64x24"}),(0,n.jsx)(o.so,{justify:"space-between",align:"center",gap:"sm",flexGrow:1,children:r.map((e,r)=>{let i=a[r],o=s.find(t=>t.choices.find(t=>t.name===e));return i&&o?(0,n.jsx)(ev,{choice:i,betSlipLink:l&&(0,em.Iz)(i,o,l),branded:null==l?void 0:l.branded,isLive:o.isLive,isComparison:!0,onClick:()=>(0,z.Fe)({id:t.id,category:o.marketName,location:b.cb.FeaturedOdds,provider:null==l?void 0:l.provider.slug,position:ep.ki.OddsValue,type:ep.jF.Featured})},"".concat(e,"-").concat(o.id)):(0,n.jsx)(ej,{},e)})})]})},ey=e=>{let{event:t}=e;return t.status.type===s.XUj.InProgress?(0,n.jsxs)(o.so,{h:"100%",align:"center",gap:"xs",children:[(0,n.jsx)(o.az,{h:"sm",w:"sm",br:"50%",bg:"status.live"}),(0,n.jsx)(i.EY,{h:"lg",lineHeight:"[16px]",textStyle:"body.small",color:"status.live",children:(0,n.jsx)(x.A,{id:"live"})})]}):(0,n.jsx)(i.EY,{h:"lg",textStyle:"body.small",children:(0,r.cK)(t.startTimestamp)?(0,n.jsx)(es.ib,{value:1e3*t.startTimestamp}):(0,n.jsx)(es.XU,{value:1e3*t.startTimestamp,...r.or.dateTime})})},eb=e=>{let{leftTeam:t,rightTeam:l,leftScore:r,rightScore:a}=(0,f.AR)(e.event),{event:d}=(0,f.mJ)(e.event.id),c=d||e.event,u=c.status.type===s.XUj.InProgress,x=(0,p.d4)(A.hB),{odds:m,markets:h,choiceNames:g,error:v}=(0,ec.B)(x||[],e.event.id,u);return!v&&(null==h?void 0:h.length)&&m&&(null==g?void 0:g.length)!==0?(0,n.jsxs)(b.y$.Provider,{value:{event:c,leftTeam:t,rightTeam:l,leftScore:r,rightScore:a,location:b.cb.FeaturedOdds},children:[(0,n.jsx)(eo.A,{event:c,children:(0,n.jsxs)(o.so,{pt:"lg",pb:"sm",px:"lg",justify:"space-between",children:[(0,n.jsx)(i.EY,{textStyle:"display.small",truncate:!0,children:(0,n.jsx)(ea,{})}),(0,n.jsx)(ey,{event:c})]})}),(0,n.jsxs)(o.so,{justify:"flex-end",gap:"xl",p:"sm",children:[(0,n.jsx)(o.az,{w:"6xl"}),(0,n.jsx)(o.so,{flexGrow:1,gap:"sm",children:g.map(e=>(0,n.jsx)(o.az,{minW:"4xl",flexGrow:1,textAlign:"center",color:"neutrals.nLv3",textStyle:"display.micro",children:e},e))})]}),null==x?void 0:x.map((e,t)=>{let l=m[t];return(null==l?void 0:l.length)?(0,n.jsx)(ef,{event:c,cop:e,choiceNames:g,markets:m[t]||[]},e.provider.id):null})]}):null},ew=()=>{let e=(0,p.d4)(A.hB),[t]=(0,C.Z)(null==e?void 0:e[0]),l=(0,p.d4)(T.hT),{featuredEvents:s,error:r}=(0,G.HD)(l,t);return!r&&(null==s?void 0:s.length)?(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(eu.V,{}),variant:"left-aligned"}),s.slice(0,2).map(e=>(0,n.jsx)(eb,{event:e},e.id)),(0,n.jsx)(o.so,{borderTop:"1px solid {colors.neutrals.nLv4}",py:"lg",justify:"center",children:(0,n.jsx)(ed.A,{provider:null==e?void 0:e[0]})})]}):null};var e_=l(95816),ek=l.n(e_),eS=l(1815),eA=l(25745);let eC=e=>{let{countryOddsProvider:t}=e,l=null==t?void 0:t.branded,s=(0,p.d4)(T.LQ);return l?(0,n.jsx)(i.Mz,{position:"absolute",top:"md",right:"lg",target:"_blank",rel:"nofollow noreferrer",href:(null==t?void 0:t.defaultBetSlipLink)||(null==t?void 0:t.provider.defaultBetSlipLink),onClick:()=>(0,z.Fe)({location:b.cb.FeaturedOdds,provider:null==t?void 0:t.provider.slug,position:ep.ki.BookmakerButton}),children:(0,n.jsx)(i.$n,{children:(0,n.jsxs)(o.so,{align:"center",gap:"xs",children:[(0,n.jsx)(x.A,{id:"bet_now".concat("GR"===s?"_age":""),values:{age:21}}),(0,n.jsx)(g.A0k,{width:16,height:16,fill:"surface.s1"})]})})}):null};var ez=l(13266);let eT=e=>{let{length:t=3}=e;return(0,n.jsx)(n.Fragment,{children:Array.from({length:t}).map((e,t)=>(0,n.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},t))})},eP=e=>{var t;let{event:l,markets:r,marketChoiceNames:a,hasManyMarkets:d}=e,c=l.status.type===s.XUj.InProgress,p=(0,S.Ae)(),{leftTeam:m,rightTeam:h}=(0,f.AR)(l),g=(0,f.g3)(l),{mediaBreakpoint:v}=(0,i.$c)(),j=G.Yt[v]||G.Yt.default;if(!r)return null;let y=r.filter(e=>j.includes(e.marketId)),w=y.filter(e=>e.isLive===c),_=y.filter(e=>e.isLive===c||!w.find(t=>t.marketId===e.marketId));return(0,n.jsxs)(o.so,{align:"center",py:"xs",borderBottom:"1px solid {colors.neutrals.nLv4}",gap:"xs",children:[(0,n.jsx)(o.az,{flexGrow:1,flexShrink:1,flexBasis:"[100px]",overflow:"hidden",maxW:"100%",children:(0,n.jsx)(ez.tj,{event:l,children:(0,n.jsxs)(o.so,{align:"center",gap:"xs",br:"xs",children:[(0,n.jsx)(o.az,{flexGrow:0,flexShrink:1,flexBasis:"[36px]",children:(0,n.jsx)(i.EY,{textStyle:"body.small",mr:"xs",w:"2xl",textAlign:"center",display:"block",color:c?"status.live":"neutrals.nLv1",children:c?(0,n.jsx)(x.A,{id:"live"}):(0,n.jsx)(es.ib,{value:1e3*l.startTimestamp})})}),(0,n.jsx)(o.az,{w:"[1px]",h:"[36px]",bg:"neutrals.nLv4"}),(0,n.jsxs)(o.so,{direction:"column",flexGrow:1,flexShrink:1,flexBasis:"6xl",overflow:"hidden",children:[(0,n.jsx)(i.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&m.nameCode?m.nameCode:(0,n.jsx)(ei.Rm,{team:m,short:!0})}),(0,n.jsx)(i.Ym,{maxW:"100%",textStyle:"body.small",truncate:!0,children:d&&h.nameCode?h.nameCode:(0,n.jsx)(ei.Rm,{team:h,short:!0})})]})]})})}),_.map(e=>{if(j.includes(e.marketId)){let t=[...a[e.marketId]||[]],s=(0,em.nu)(e.choices,g);return t.length?(0,n.jsx)(u.Fragment,{children:t.map(t=>{let r=s.find(e=>e.name===t);return r?(0,n.jsx)(ev,{choice:r,betSlipLink:p&&(0,em.Iz)(r,e,p),branded:null==p?void 0:p.branded,isLive:e.isLive,onClick:()=>(0,z.Fe)({id:l.id,category:e.marketName,location:b.cb.FeaturedOdds,provider:null==p?void 0:p.provider.slug,position:ep.ki.OddsValue,type:ep.jF.Featured})},"".concat(t,"-").concat(e.id)):(0,n.jsx)(o.az,{w:"[52px]",flexGrow:0,flexShrink:0,flexBasis:"[52px]"},"".concat(t,"-").concat(e.id))})},e.id):(0,n.jsx)(eT,{},"empty")}return null}),-1===r.findIndex(e=>2===e.marketId)&&!!a[2]&&(0,n.jsx)(eT,{length:null==(t=a[2])?void 0:t.size})]})};var eE=l(80435);let eR=()=>{let e=(0,S.Ae)(),t=(0,eA.s)(null==e?void 0:e.impressionCostEncrypted),[l]=(0,C.Z)(e),r=(0,p.d4)(T.hT),{mediaBreakpoint:a}=(0,i.$c)(),d=(0,eS.e)(async()=>{(0,z.CH)({provider:null==e?void 0:e.provider.slug,location:b.cb.FeaturedOdds,value:await t})},{intersectionOptions:{rootMargin:"-20px"},deps:[r]}),{featuredEvents:c,error:u}=(0,G.HD)(r,l),{data:x,error:h}=(0,y.Ay)((null==c?void 0:c.length)&&l?[l,c.map(e=>e.id),"FEATURED_ODDS"]:null,{fetcher:e=>{let[t,l]=e;return Promise.all(l.map(e=>s.nk6.fetchAllEventOdds(e,t)))},refreshInterval:2e4}),g=G.Yt[a]||G.Yt.default,v=null==x?void 0:x.reduce((e,t)=>{var l;return null==(l=t.markets)||l.forEach(t=>{g.includes(t.marketId)&&t.choices.every(e=>G.Vj.includes(e.name))&&(e[t.marketId]?t.choices.forEach(l=>e[t.marketId].add(l.name)):e[t.marketId]=new Set(t.choices.map(e=>e.name)))}),e},{});if(u||h||!e||!(null==c?void 0:c.length))return null;if(!c||!x)return(0,n.jsx)(eE.A,{});if(ek()(v))return null;let j=0;return g.forEach(e=>v[e]&&[...v[e]].forEach(()=>j+=1)),(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"featured_odds",actionComponent:(0,n.jsx)(eC,{countryOddsProvider:e}),variant:"left-aligned"}),(0,n.jsxs)(o.az,{position:"relative",children:[(0,n.jsxs)(o.az,{px:"sm",children:[(0,n.jsx)(o.so,{align:"flex-end",justify:"flex-end",borderBottom:"1px solid {colors.neutrals.nLv4}",pb:"xs",gap:"xs",h:"2xl",mt:"md",children:g.map(e=>v[e]&&[...v[e]].map(e=>(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",w:"[52px]",textAlign:"center",color:"neutrals.nLv3",style:{flex:"0 0 52px"},children:e},e)))}),(0,n.jsx)("div",{ref:d,children:c.map((e,t)=>(0,n.jsx)(eP,{event:e,markets:x[t].markets,marketChoiceNames:v,hasManyMarkets:j>5},e.id))})]}),(0,n.jsx)(b.y$.Provider,{value:{location:b.cb.FeaturedOdds},children:(0,n.jsxs)(o.so,{justify:"space-between",align:"center",px:"lg",pt:"sm",pb:"lg",children:[(0,n.jsx)(ed.A,{provider:e}),(0,n.jsx)(ex.$,{provider:e})]})})]})]})},eI=()=>{let e=(0,p.d4)(A.BF),t=(0,p.d4)(A.fq);return e?null:t?(0,n.jsx)(ew,{}):(0,n.jsx)(eR,{})};var eL=l(57543),eF=l(57244),eG=l(10292),eB=l(56602),eM=l(78259),eW=l(23727),eY=l(75751),eV=l(16620),e$=l(48886),eD=l(67550),eH=l(46170);let eN=e=>{let{player:t,index:l,onClick:s,isFootball:r}=e,a=(0,f.g3)(t.event),[d,c]=(0,f.jr)(t.event,"homeTeam","awayTeam",t.event);return(0,n.jsxs)(o.so,{onClick:()=>s(t.event,t.player),pl:"sm",pr:"lg",align:"center",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,n.jsx)(i.EY,{textStyle:"body.small",children:l}),(0,n.jsxs)(o.az,{position:"relative",ml:"md",children:[(0,n.jsx)(eM.tg,{id:t.player.id,name:t.player.name,size:40}),(0,n.jsx)(eM.pY,{size:21,id:t.team.id,name:t.team.name,style:{position:"absolute",bottom:0,right:-8}})]}),(0,n.jsxs)(o.so,{justify:"space-between",align:"center",flexGrow:1,overflow:"hidden",children:[(0,n.jsxs)(o.so,{direction:"column",justify:"center",ml:"lg",mr:"sm",h:"5xl",overflow:"hidden",children:[(0,n.jsx)(i.EY,{textStyle:"body.medium",truncate:!0,mb:"xs",children:(0,n.jsx)(N.c,{entity:t.player})}),(0,n.jsxs)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:[(0,n.jsx)(N.c,{entity:d,short:!0})," ".concat(a?"@":"vs."," "),(0,n.jsx)(N.c,{entity:c,short:!0})]})]}),(0,n.jsx)(o.az,{flexShrink:0,children:r?(0,n.jsx)(eM.GW,{rating:Number(t.rating)}):(0,n.jsx)(i.EY,{textStyle:"body.medium",children:t.points})})]})]})};function eO(e){let{topPlayers:t,heatmap:l,isFetchingHeatmap:r,sport:i,shotmap:a}=e,{openEventPlayerStatistics:d}=(0,eV.d)(),[c,x]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>x(e=>!e),[]),h=i===s.QCR.Football,g=i===s.QCR.Basketball,v=(e,t)=>{d({event:e,player:t},e$._.TopPlayers)};if((0,u.useEffect)(()=>{x(!1)},[i]),!t)return null;let j=t.length>5;return(0,n.jsx)(eY.t,{tag:"TopPlayersList",children:(0,n.jsxs)(o.az,{children:[t.slice(0,5).map((e,t)=>(0,n.jsxs)(u.Fragment,{children:[(0,n.jsx)(eN,{isFootball:h,player:e,index:t+1,onClick:v},e.player.id),g&&a&&0===t&&(0,n.jsx)(o.az,{p:"sm",children:(0,n.jsx)(eD.A,{shotCoordinates:a,condensed:!0})}),h&&0===t&&l&&!r?(0,n.jsx)(o.az,{p:"sm",children:(0,n.jsx)(eH.GP,{containerId:"heatmap-".concat(e.player.id),dataPoints:l.heatmap,direction:e.team.id===e.event.awayTeam.id?"left":"right"})}):0===t&&r&&h?(0,n.jsx)(o.az,{h:"[260px]"}):null]},e.player.id)),c&&t.slice(5).map((e,t)=>(0,n.jsx)(eN,{isFootball:h,player:e,index:5+t+1,onClick:v},e.player.id)),(0,n.jsx)(m.Zp.Footer,{ctaParams:j?{messageId:c?"show_less":"show_more",icon:c?eW.X.Up:eW.X.Down,onClick:p}:void 0})]})})}var eQ=l(6263);function eZ(){var e,t,l;let r,i,a=(0,h.o)(),{data:o,error:d}=(0,y.Ay)(s.t3g.trendingTopPlayers(a)),c=a===s.QCR.Football,u=a===s.QCR.Basketball;o&&o.topPlayers.length&&(r=o.topPlayers[0].event.id,i=o.topPlayers[0].player.id);let{data:x,error:p}=(0,y.Ay)(c&&r&&i?s.bnp.playerHeatmap(r,i):null),{data:v}=(0,y.Ay)(u&&r&&i?s.bnp.playerShotmap(r,i):null);return d?null:o?(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{titleId:"top_players",values:{gender:null!=(l=null==(e=o.topPlayers[0].player.team)?void 0:e.gender)?l:s.YT8.Male},actionComponent:c&&(0,n.jsx)(eB.D,{type:eB.D.type.SpecificRatingPlayer,rating:null==o||null==(t=o.topPlayers[0])?void 0:t.rating,renderImage:e=>{var t;return(0,n.jsx)(eG.t,{id:null==o||null==(t=o.topPlayers[0])?void 0:t.player.id,...e})},children:e=>{let{setIsOpen:t}=e;return(0,n.jsx)(g.G_L,{fill:"onSurface.nLv1",onClick:()=>t(!0),cursor:"pointer"})}})}),(0,n.jsx)(eO,{sport:a,heatmap:x,shotmap:null==v?void 0:v.shotmap,topPlayers:o.topPlayers,isFetchingHeatmap:!x&&!p&&c})]}):(0,n.jsx)(eQ.A,{})}let eJ=c()(()=>Promise.all([l.e(23389),l.e(90431),l.e(6983),l.e(82753),l.e(54366),l.e(22088),l.e(45477),l.e(78219),l.e(88744),l.e(87120),l.e(53330),l.e(10239),l.e(66976)]).then(l.bind(l,77990)),{loadableGenerated:{webpack:()=>[77990]},loading:()=>(0,n.jsx)(m.Zp,{children:(0,n.jsx)(o.az,{h:"[calc(100vh - 168px)]"})})});function eU(e){let{date:t,listType:l,category:d}=e,c=(0,p.wA)(),y=(0,p.d4)(e=>e.uicontrols.activeWidgetEvent),b=(0,a.hX)(),{isMobile:w}=(0,i.$c)(),_=(0,p.d4)(T.LQ),k=(0,h.o)(),{event:S}=(0,f.mJ)(null!=y?y:void 0),A=k===s.QCR.Football||k===s.QCR.Basketball,C=(0,u.useCallback)((e,t,l)=>{l||(e.preventDefault(),y===t?c((0,L.VX)(null)):c((0,L.VX)(t||null)))},[y]);(0,u.useEffect)(()=>{let e=document.getElementsByClassName("js-list-cell-target");for(let t=0;t{if(!S)return;let e=void 0===d||S.tournament.category.slug===d,l=S.tournament.category.sport.slug===k,n=(0,r.yk)(t.getTime(),S.startTimestamp);if(!e||!l||!n)return void c((0,L.VX)(null))},[S,k,t,d]),b)?(0,n.jsx)(eF.A,{date:t,listType:l,category:d}):w?null:y?(0,n.jsx)(o.az,{position:"sticky",top:"[120px]",children:(0,n.jsx)(eJ,{eventId:y,onClose:C,belowBreadcrumbs:!0})}):(0,n.jsxs)(n.Fragment,{children:[z.length>0?(0,n.jsx)(R.Or,{date:(0,r.UG)(t),tournaments:z}):(0,n.jsx)(E,{}),(0,n.jsx)(eL.w,{}),A&&(0,n.jsx)(eZ,{}),(0,n.jsx)(en,{sport:k}),(0,n.jsx)(eI,{}),(0,n.jsx)(I.V,{location:"main_screen"}),(0,n.jsxs)(m.Zp,{children:[(0,n.jsx)(m.Zp.Header,{title:(0,n.jsxs)(o.so,{gap:"md",align:"center",children:[(0,n.jsx)(g.HZJ,{fill:"primary.default"}),(0,n.jsx)(x.A,{id:"banner_header_text"})]})}),(0,n.jsxs)(m.BU,{children:[(0,n.jsx)(v.k,{}),"BR"!==_&&(0,n.jsx)(j.s,{})]})]}),d?(0,n.jsx)(F._,{sport:k,category:d}):l===G.Jx.BASE?(0,n.jsx)(F.a,{}):null]})}},29772:(e,t,l)=>{l.r(t),l.d(t,{getClampedShotActions:()=>a});var n=l(18130),s=l(43139);let r=(0,s.A)().domain([-250,250]).range([0,n.f7]),i=(0,s.A)().domain([-51,411]).range([0,n.IV]),a=e=>({clampedShotActions:e.map(e=>{let[t,l]=function(e){let t=r(e.x),l=i(e.y);return l>=n.IV-11&&(l=n.IV-8),t>=n.f7&&(t=n.f7-4),[t,l]}(e);return Object.assign(Object.assign({},e),{x:t,y:l})})})},34851:(e,t,l)=>{l.d(t,{J:()=>n});var n=function(e){return e[e.SpecificRatingPlayer=0]="SpecificRatingPlayer",e[e.AverageRatingTeam=1]="AverageRatingTeam",e[e.AverageRating=2]="AverageRating",e[e.AverageRatingTeamLineups=3]="AverageRatingTeamLineups",e[e.AverageRatingPlayer=4]="AverageRatingPlayer",e}({})},39419:(e,t,l)=>{l.d(t,{M:()=>o});var n=l(6029),s=l(4967),r=l(55729),i=l(947),a=l(96470);let o=e=>{let{hasChallengeEnded:t,challengeEndTime:l}=e,[o,d]=(0,r.useState)(new Date().getTime()),c=(0,i.A)();if((0,r.useEffect)(()=>{let e=setInterval(()=>d(new Date().getTime()),1e3);return()=>clearInterval(e)},[o]),!l)return null;let u=t?l+s.dp:l;return(0,n.jsx)(n.Fragment,{children:u{l.d(t,{GP:()=>v,_S:()=>m,Bt:()=>h,XL:()=>g});var n=l(6029),s=l(21501),r=l(99064),i=l(55729),a=l(41735);let o=149/238,d=238/149,c=()=>{let{colors:e}=(0,a.useTheme)();return(0,n.jsx)("svg",{viewBox:"0 0 238 149",children:(0,n.jsxs)("g",{fill:e.surface.s1,fillRule:"evenodd",children:[(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"28.175",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("ellipse",{fillRule:"nonzero",cx:"209.825",cy:"74.5",rx:"1.75",ry:"1.753"}),(0,n.jsx)("path",{d:"M0 0v149h238V0H0zm119.656 76.121a1.72 1.72 0 0 0 1.094-1.621 1.72 1.72 0 0 0-1.094-1.621V57.628c8.969.35 16.188 7.757 16.188 16.872 0 9.071-7.219 16.521-16.188 16.872v-15.25zM1.312 1.315h3.632a4.577 4.577 0 0 1-3.631 3.637V1.315zm0 54.56h12.032v37.25H1.313v-37.25zm0 38.565h13.344V54.56H1.312V32.65h40.032v83.659H1.312V94.44zm0 53.245v-3.637a4.577 4.577 0 0 1 3.632 3.637H1.313zM118.344 72.88a1.72 1.72 0 0 0-1.094 1.621 1.72 1.72 0 0 0 1.094 1.621v15.251c-8.969-.35-16.188-7.757-16.188-16.872 0-9.071 7.219-16.521 16.188-16.872v15.25zm0-16.566c-9.713.35-17.5 8.37-17.5 18.187 0 9.816 7.787 17.836 17.5 18.187v54.998H6.256c-.394-2.541-2.406-4.601-4.944-4.952v-25.067h41.344V86.157c4.244-2.542 6.825-6.968 6.825-11.657 0-4.69-2.581-9.115-6.825-11.657v-31.51H1.313V6.268c2.537-.35 4.593-2.41 4.943-4.952h112.088v54.998zM42.656 84.58V64.421c3.456 2.366 5.513 6.091 5.513 10.079 0 3.988-2.1 7.713-5.513 10.08zm194.031 63.106h-3.63a4.577 4.577 0 0 1 3.63-3.637v3.637zm0-54.56h-12.03v-37.25h12.03v37.25zm0-38.565h-13.343v39.88h13.344v21.911h-40.032V32.65h40.031V54.56zm0-23.226h-41.343v31.509c-4.244 2.542-6.825 6.968-6.825 11.657 0 4.69 2.581 9.115 6.825 11.657v31.51h41.344v25.066c-2.538.395-4.594 2.41-4.944 4.952H119.656V92.687c9.713-.35 17.5-8.37 17.5-18.187 0-9.816-7.787-17.836-17.5-18.187V1.315h112.088c.393 2.541 2.406 4.601 4.944 4.952v25.067zM195.344 64.42v20.158c-3.457-2.366-5.513-6.091-5.513-10.079 0-3.988 2.056-7.713 5.513-10.08zm41.344-59.469a4.577 4.577 0 0 1-3.632-3.637h3.631v3.637z"})]})})},u=(0,a.default)(r.az).withConfig({componentId:"sc-80087852-0"})(["position:absolute;> svg{position:absolute;top:0;left:0;}> *{width:100%;height:100%;}canvas{width:100%;height:100%;padding:0.5px;}"]);var x=l(1217),p=l(5961);let m=e=>{var t,l;let{dataPoints:m,numberOfMatches:h,containerId:g,direction:v="right"}=e,j=(0,a.useTheme)(),f=(0,i.useRef)(null),y=(0,s.uc)(f,{},100)||0,b={containerId:g,numberOfMatches:h,width:y,height:y*o},w=m&&(0,x.O8)(m)&&!!b.width;return(0,i.useEffect)(()=>{w&&(0,p.IJ)(m,b,j)},[g,m,b.width,j]),(0,n.jsx)("div",{style:{width:"100%"},children:(0,n.jsx)(r.az,{ref:f,w:"100%",position:"relative",pb:(0,x.fk)(v)?"".concat(100*d,"%"):"".concat(100*o,"%"),children:(0,n.jsxs)(u,{style:{transform:(0,x.EC)(v,j.settings.textDirection)},h:(0,x.G$)(v,null==(t=f.current)?void 0:t.getBoundingClientRect()),w:(0,x.DY)(v,null==(l=f.current)?void 0:l.getBoundingClientRect()),...(0,x.AK)(v),children:[w&&(0,n.jsx)("div",{id:g}),(0,n.jsx)(c,{})]})})})},h=e=>{let{direction:t="right",fill:l,style:s}=e,{colors:r,settings:i}=(0,a.useTheme)();return(0,n.jsx)("svg",{width:"66",height:"20",viewBox:"0 0 66 20",xmlns:"http://www.w3.org/2000/svg",style:{transform:(0,x.EC)(t,i.textDirection),...s},children:(0,n.jsx)("g",{fill:l||r.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m66 9.845-14.4 9.6V.245zM0 7.445h51.6v4.8H0z"})})})},g=e=>{let{direction:t="up"}=e,{colors:l}=(0,a.useTheme)();return(0,n.jsx)("svg",{width:"16",height:"56",viewBox:"0 0 16 56",xmlns:"http://www.w3.org/2000/svg",style:{transform:"down"===t?"rotate(180deg)":void 0},children:(0,n.jsx)("g",{fill:l.surface.s1,fillRule:"evenodd",children:(0,n.jsx)("path",{d:"m8 0 8 12H0zM6 12h4v44H6z"})})})},v=e=>{let{direction:t="right",arrowAfterHeatmap:l=!1,...s}=e;return(0,x.fk)(t)?(0,n.jsxs)(r.so,{bg:"graphicsTerrain.football",align:"center",py:"md",br:"sm",w:"100%",pl:l?"md":void 0,pr:l?void 0:"md",direction:l?"row-reverse":"row",children:[(0,n.jsx)(r.so,{w:"20%",justify:"center",children:(0,n.jsx)(g,{direction:t})}),(0,n.jsx)(r.az,{w:"80%",children:(0,n.jsx)(m,{...s,direction:t})})]}):(0,n.jsx)(r.so,{bg:"graphicsTerrain.football",justify:"center",pt:"md",pb:"xl",px:"sm",br:"lg",w:"100%",children:(0,n.jsxs)(r.so,{direction:"column",align:"center",gap:"md",maxW:280,w:"100%",children:[(0,n.jsx)(h,{direction:t}),(0,n.jsx)(m,{...s,direction:t})]})})}},56602:(e,t,l)=>{l.d(t,{D:()=>z});var n=l(6029),s=l(87827),r=l(21377),i=l(28349),a=l(62042),o=l(76356),d=l(55729),c=l(947),u=l(90248),x=l(54409),p=l(54053),m=l(26331),h=l(62859),g=l(34851),v=l(19991),j=l(99064),f=l(28446),y=l(41735);let b=e=>(0,y.keyframes)(["from{left:0;}to{left:",";}"],e),w=(0,y.default)(j.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>b(e.ratingPosition)),_=["3.0","6.0","6.5","7.0","8.0","9.0"],k=(0,f.A)().domain([3,6,6.5,7,8,9,10]).range([0,16.66666,33.33333,50,66.66666,83.33333,100]);function S(e){let{rating:t,format:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(j.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[_.map((e,t)=>(0,n.jsx)(j.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,v.Et)(e),h:"16"},e)),t&&(0,n.jsx)(w,{position:"absolute",top:"-2",ratingPosition:k(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,n.jsx)(j.so,{justify:"space-between",children:[..._,"10"].map(e=>(0,n.jsxs)(j.EY,{color:(0,v.Et)(e),font:"tab.secondary",children:[e,"sideBox"===l&&"10"!==e?"0":""]},e))})]})}var A=l(19673);let C=(0,a.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function z(e){let{type:t,rating:l=10,renderImage:a,children:v}=e,j=(0,c.A)(),[f,y]=(0,d.useState)(!1),{isDesktop:b}=(0,i.$c)(),w=(0,d.useContext)(h.Ws)===r.QCR.Football,_=(0,m.A)(),k=(0,A.y)(_),z="",T="box",P="sofascore_rating",E="";switch(t){case g.J.SpecificRatingPlayer:z="rating_general_text",E=[j.formatMessage({id:"rating_top_stats_general"}),j.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case g.J.AverageRatingTeam:z="average_team_rating_text",T="sideBox",E=[j.formatMessage({id:"rating_top_teams_general"}),j.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case g.J.AverageRating:z="average_team_rating_match",T="sideBox",P="average_sofascore_rating";break;case g.J.AverageRatingTeamLineups:z="average_team_rating_text",T="sideBox";break;case g.J.AverageRatingPlayer:z="average_player_rating_text",T="sideBox"}return(0,n.jsxs)(n.Fragment,{children:["function"==typeof v?(0,n.jsx)(n.Fragment,{children:v({isOpen:f,setIsOpen:y})}):null!=v?v:(0,n.jsx)(i.m_,{label:E,strategy:""!==E&&b?"hover":"controlled",isVisible:!1,children:(0,n.jsx)(i.K0,{mx:"xs",variant:"clear",onClick:()=>{y(!0)},children:(0,n.jsx)(x.G_L,{fill:"onSurface.nLv1"})})}),(0,n.jsxs)(p.A,{header:(0,n.jsx)(i.H3,{p:"lg",textStyle:"display.large",children:(0,n.jsx)(u.A,{id:P})}),isOpen:f,setIsOpen:y,footer:(0,n.jsx)(o.so,{justify:"flex-end",m:w?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,n.jsx)(i.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{y(!1)},variant:b?"clear":void 0,children:(0,n.jsx)(u.A,{id:"ok_got_it_button"})})}),children:[(0,n.jsxs)(o.az,{maxW:{md:"[320px]"},px:"lg",mb:w?void 0:{mdDown:"2xl"},children:[z&&(0,n.jsx)(u.A,{id:z,values:{break:e=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("br",{}),(0,n.jsx)("br",{})]})}}),(0,n.jsxs)(o.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,n.jsx)(o.az,{className:"sideBox"===T?C:void 0,children:(0,n.jsx)(s.G,{size:"xl",rating:l,format:T})}),null==a?void 0:a({size:40,ml:"lg"})]}),(0,n.jsx)(S,{rating:l,format:T})]}),w&&(0,n.jsx)(o.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,n.jsxs)(i.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:k,target:"_blank",onClick:()=>{y(!1)},children:[(0,n.jsx)(u.A,{id:"rating_learn_more_button"}),(0,n.jsx)(x.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}z.type=g.J},63801:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(6029),s=l(9127),r=l(41735);let i=({x:e,y:t})=>{let{colors:l}=(0,r.useTheme)(),i=e-3,a=e+3,o=t-3;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.m.circle,{fill:l.surface.s1,r:"6",animate:{cx:e,cy:t}}),(0,n.jsx)(s.m.path,{animate:{d:`M ${i},${o} l 6,6 M ${a},${o} l -6,6`},stroke:l.error.default,strokeWidth:"2"})]})}},67550:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(6029),s=l(72767),r=l(29772),i=l(99064);let a=e=>{let{shotCoordinates:t,condensed:l,...a}=e,{clampedShotActions:o}=r.getClampedShotActions(t);return(0,n.jsx)(i.az,{bg:"graphicsTerrain.basketball",p:"8px 48px",br:"lg",...a,children:(0,n.jsx)(i.az,{maxW:l?280:"100%",h:"100%",mx:"auto",children:(0,n.jsx)(s.A,{shotCoordinates:o})})})}},72767:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(6029),s=l(18642),r=l(67823),i=l(13369),a=l(11810);let o=({showLines:e=!0,showBackground:t=!0,showOverlay:l=!0,linesColor:o,backgroundColor:d,shotCoordinates:c})=>(0,n.jsxs)(r.A,{children:[t&&(0,n.jsx)(a.A,{courtColor:d,showDarkPaint:!0}),e&&(0,n.jsx)(i.A,{fill:o}),l&&(0,n.jsx)(s.A,{shotCoordinates:c})]})},78339:(e,t,l)=>{l.d(t,{S:()=>p});var n=l(21377),s=l(4967),r=l(55729),i=l(45860),a=l(7643),o=l(83260);let d=[n.wNW.Player,n.wNW.Team,n.wNW.Manager,"uniqueTournament",n.wNW.Referee,n.wNW.Venue,n.wNW.Event,n.wNW.Stage,n.wNW.UniqueStage],c=(e,t)=>{let{type:l}=e;return t.includes(l)},u=(e,t)=>{switch(t){case n.G$9.Teams:return"team"===e.type&&e.entity.type!==n.YVh.Person;case n.G$9.Events:return"event"===e.type;case n.G$9.UniqueTournaments:return"uniqueTournament"===e.type;case n.G$9.PlayerTeamPersons:return"team"===e.type&&e.entity.type===n.YVh.Person||"player"===e.type;case n.G$9.Referee:return"referee"===e.type;case n.G$9.Venue:return"venue"===e.type;case n.G$9.Manager:return"manager"===e.type;default:return!0}},x=(e,t)=>e.filter(e=>u(e,t));function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.G$9.All,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,p=arguments.length>3?arguments[3]:void 0,m=arguments.length>4?arguments[4]:void 0,h=function(e){let{filter:t,lsKey:l}=e,[n,i]=(0,o.A)(l||"recent_search_results",[]),a=(0,r.useCallback)(e=>{let t=n.findIndex(t=>t.entity.id===e.entity.id&&t.type===e.type);if(t>-1){let l=[...n];l.splice(t,1),l.unshift(Object.assign(e,{timestamp:Date.now()})),i(l)}else i([Object.assign(e,{timestamp:Date.now()}),...n])},[n]),d=(0,r.useCallback)(e=>{i(n.filter(t=>t.entity.id!==e.entity.id||t.type!==e.type))},[n]),c=(0,r.useCallback)(()=>{i("all"===t?[]:n.filter(e=>!u(e,t)))},[n,t]);return(0,r.useEffect)(()=>{if(null==n?void 0:n.length){let e=Date.now(),t=n.filter(t=>e-t.timestamp<30*s.d_);t.length!==n.length&&i(t)}},[null==n?void 0:n.length]),{recents:n,addRecentSearch:a,removeRecentSearch:d,clearRecentSearches:c}}({filter:t,lsKey:m}),g=x(h.recents,t),{suggestions:v,areSuggestionsLoading:j}=function(e,t,l,r){let a=e===n.G$9.All?"default":e,{data:o,isLoading:d}=(0,i.Ay)(t?n.d9M.suggestions(a,r):null,{dedupingInterval:s.d_});return{suggestions:null==o?void 0:o.results.filter(e=>c(e,l)),areSuggestionsLoading:d}}(t,!!e&&g.length<10,l,p),f=function(e){let{filter:t,enabledEntities:l,sport:s}=e,[i,o]=(0,r.useState)(""),[d,u]=(0,r.useState)(),{size:x,setSize:p,isValidating:m}=(0,a.Ay)((e,l)=>l&&!l.results.length||i.length<2?null:n.d9M.results(t,encodeURIComponent(i),e,s),n.TtD,{onSuccess:e=>{u(null==e?void 0:e.reduce((e,t)=>[...e,...t.results],[]).filter(e=>c(e,l)))},onError:()=>{u([])}});return{results:d,isLoadingPage:m,onQueryChange:(0,r.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e.length<2&&u(void 0),o(e)},[]),onLoadMore:()=>p(x+1),query:i,couldHaveMore:20*x===(null==d?void 0:d.length)}}({filter:t,enabledEntities:l,sport:p});return{...h,...f,isLoadingPage:f.isLoadingPage||j,recents:g,suggestions:null==v?void 0:v.filter(e=>!h.recents.some(t=>t.entity.id===e.entity.id&&t.type===e.type))}}},79041:(e,t,l)=>{l.d(t,{k:()=>d});var n=l(6029),s=l(21377),r=l(90248),i=l(45860),a=l(39419);let o=()=>{var e;let{data:t}=(0,i.Ay)(s.rGM.activeLeagueDetails());if(!(null==t?void 0:t.meta))return;let l=new Date().getTime(),n=(null==(e=t.meta)?void 0:e.endDateTimestamp)*1e3;return{hasEnded:n{let e=o();return e?(0,n.jsxs)(n.Fragment,{children:[e.hasEnded?(0,n.jsx)(r.A,{id:"next_weekly_challenge"}):(0,n.jsx)(r.A,{id:"weekly_challenge_time_left"}),": ",(0,n.jsx)(a.M,{hasChallengeEnded:e.hasEnded,challengeEndTime:e.endTimestamp})]}):(0,n.jsx)(n.Fragment,{children:"\xa0"})}},94446:(e,t,l)=>{l.d(t,{p:()=>s.p,t:()=>n.t});var n=l(91407),s=l(91603)},96470:(e,t,l)=>{l.d(t,{Y:()=>s,j:()=>r});var n=l(4967);function s(e,t,l,n){let s=e>0?n.slice(0,e).map(e=>e.id):[],r=t>0?n.slice(e,e+t).map(e=>e.id):[];return{userIds:{promoted:s,demoted:n.length>e+t&&l>0?n.slice(-n.length+e+t).map(e=>e.id):[],neutral:r}}}function r(e,t,l){let{days:s,hours:r,minutes:i,seconds:a}=(0,n.DU)(e,t),o=s>0?s+l.formatMessage({id:"days_short"}):"",d=r>0?r+l.formatMessage({id:"hours_short"}):"";return[o,d,(r>0||i>0)&&!s?i+l.formatMessage({id:"minutes_short"}):"",(i>0||a>0)&&!s&&!r?a+l.formatMessage({id:"seconds_short"}):""].filter(Boolean).join(" ")}}}]);