!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]="eba1dc16-9c8a-471d-852e-4692bd97287e",e._sentryDebugIdIdentifier="sentry-dbid-eba1dc16-9c8a-471d-852e-4692bd97287e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29565],{13731:(e,t,o)=>{var r=o(53325),i=o(25725),n=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,o){n.call(e,o)?e[o].push(t):r(e,o,[t])})},14444:(e,t,o)=>{"use strict";o.d(t,{b4:()=>u,V3:()=>l,HM:()=>b,k9:()=>d,HI:()=>a});var r=o(6029),i=o(55729),n=o(83260);let s=(0,i.createContext)(void 0),l=e=>{let{children:t,persistKey:o}=e,[i,l]=(0,n.A)(o,[]);return(0,r.jsx)(s.Provider,{value:{recentlySelected:i,setRecentlySelected:l},children:t})},a=()=>{let e=(0,i.useContext)(s);if(void 0===e)throw Error("useRecentSearch must be used within a RecentSearchesProvider");return{recentlySelected:e.recentlySelected,addToRecentlySelected:t=>{let o=e.recentlySelected.filter(e=>e.id!==t.id).slice(0,4),r=[t,...o];e.setRecentlySelected(r)},removeFromRecentlySelected:t=>{let o=e.recentlySelected.filter(e=>e.id!==t.id);e.setRecentlySelected(o)}}};function d(e,t,o,r){return e.length?e.length===(null==o?void 0:o.length)&&e.length===(null==t?void 0:t.length)&&e.length===(null==r?void 0:r.length)?{ids:e.map(e=>null!=e?e:"_").join(","),ut_ids:null==o?void 0:o.map(e=>null!=e?e:"_").join(","),s_ids:null==t?void 0:t.map(e=>null!=e?e:"_").join(","),s_types:null==r?void 0:r.map(e=>null!=e?e:"_").join(",")}:{ids:e.map(e=>null!=e?e:"_").join(",")}:{}}var c=o(94446),h=o(99064),g=o(54409),p=o(24159);let u=e=>{let{player:t,onPlayerClick:o,onRemoveClick:i}=e;return(0,r.jsxs)(h.so,{onClick:()=>o(t),h:"56px",align:"center",cursor:"pointer",children:[(0,r.jsx)(c.t,{id:t.id,name:t.name,size:40,grayscale:t.deceased}),(0,r.jsxs)(h.so,{direction:"column",justify:"center",h:"100%",gap:"xs",grow:1,pl:"sm",children:[(0,r.jsx)(h.EY,{font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,maxW:["250px","130px"],children:(0,r.jsx)(p.c,{entity:t})}),(0,r.jsxs)(h.so,{align:"center",gap:"sm",children:[(0,r.jsx)(c.p,{id:t.team.id,size:16}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,ellipsis:!0,maxW:["300px","120px"],children:(0,r.jsx)(p.c,{entity:t.team})})]})]}),void 0!==i&&(0,r.jsx)(h.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==i||i(t)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,r.jsx)(g.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})};var f=o(49519),m=o(21377),x=o(98449),y=o(94604);let b=e=>{var t,o,i,n,s,l,a,d,c;let{team:p,onTeamClick:u,onRemoveClick:b}=e,v=(null==(t=p.sport)?void 0:t.slug)===m.QCR.Tennis;return(0,r.jsxs)(h.so,{gap:"sm",onClick:()=>u(p),align:"center",cursor:"pointer",py:"sm",children:[(0,r.jsx)(f.p,{id:p.id,name:p.name,size:40}),(0,r.jsxs)(h.so,{direction:"column",gap:"xs",grow:1,children:[(0,r.jsx)(h.EY,{font:"body.medium",color:"onSurface.nLv1",children:(0,r.jsx)(y.Rm,{team:p,showFemaleSuffix:p.gender===m.YT8.Female&&!v})}),!p.national&&(null==(o=p.country)?void 0:o.slug)&&(null==(i=p.country)?void 0:i.name)&&!v&&(0,r.jsxs)(h.so,{align:"center",gap:"sm",children:[(0,r.jsx)(f.w,{size:16,alpha2:null==(n=p.country)?void 0:n.alpha2,name:null==(s=p.country)?void 0:s.name}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,r.jsx)(x.m,{slug:p.country.slug,name:p.country.name})})]}),v&&p.country&&p.country.name&&(0,r.jsxs)(h.so,{align:"center",gap:"xs",children:[(0,r.jsx)(f.w,{size:16,alpha2:null==(l=p.country)?void 0:l.alpha2,name:null==(a=p.country)?void 0:a.name}),(0,r.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv3",lineHeight:1,children:(0,r.jsx)(x.m,{name:p.country.name,slug:null!=(c=null==(d=p.country)?void 0:d.slug)?c:p.country.name})})]})]}),void 0!==b&&(0,r.jsx)(h.$n,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==b||b(p)},variant:"unshielded",size:"xs",p:"xs",style:{borderRadius:"50%"},children:(0,r.jsx)(g.zQC,{icon:"close",width:16,height:16,fill:"neutral.default"})})]})}},15070:(e,t,o)=>{"use strict";o.d(t,{l:()=>M,A:()=>T});var r=o(6029),i=o(53192),n=o(91407),s=o(94400),l=o(91603),a=o(21377),d=o(4967),c=o(28349),h=o(76356),g=o(55729),p=o(947),u=o(90248),f=o(90510),m=o(494),x=o(18040),y=o(68228),b=o(54409),v=o(14419),_=o(56602),j=o(19451),k=o(46009),w=o(86454),S=o(8973),R=o(3518),C=o(13266),B=o(10794),F=o(24159),L=o(54917),P=o(51246),A=o(90536);function M(e){let{icon:t,graphic:o,text:i}=e;return(0,r.jsxs)(h.so,{align:"center",gap:"xs",px:"sm",_first:{pl:"0"},_last:{pr:"0"},children:[(0,r.jsx)(r.Fragment,{children:void 0!==t&&(0,r.jsx)(t,{w:16,h:16,fill:"onSurface.nLv3"})}),(0,r.jsx)(r.Fragment,{children:o}),(0,r.jsx)(c.EY,{textStyle:"display.micro",color:"neutrals.nLv3",children:i})]})}function T(e){var t,o,T;let{player:O,lastYearSummary:D}=e,[E,I]=(0,g.useState)(!1),H=(0,p.A)(),z=(0,m.d4)(B.JV),W=O.team.sport.slug,G=O.deceased,U=O.retired,N=O.dateOfDeathTimestamp?(0,d.pp)(O.dateOfDeathTimestamp).getFullYear():void 0,Y=a.USm.includes(O.team.sport.slug),V=j.mz.includes(W),K=(0,d.KW)(O.dateOfBirthTimestamp),Q=(null==D?void 0:D.length)?(0,A.AG)(D.filter(e=>e.type===a.XFZ.Event).map(e=>e.value)):void 0,J=W===a.QCR.Cricket;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v.Fs,{image:(0,r.jsx)(n.t,{id:O.id,name:O.slug,size:112,grayscale:O.deceased}),name:(0,r.jsxs)(h.so,{gap:"lg",align:"center",children:[(0,r.jsx)(F.c,{entity:O}),"number"==typeof Q&&(0,r.jsxs)(h.so,{align:"center",children:[(0,r.jsx)(s.A,{rating:Q,format:"sideBox"}),(0,r.jsx)(_.D,{type:_.D.type.AverageRatingPlayer,rating:Q,renderImage:e=>(0,r.jsx)(n.t,{id:O.id,...e}),children:e=>{let{setIsOpen:t}=e;return(0,r.jsx)(c.K0,{variant:"clear",onClick:()=>t(!0),children:(0,r.jsx)(b.G_L,{fill:"onSurface.nLv3",w:"24",h:"24"})})}})]})]}),subtitleItems:O.team&&!O.deceased&&(0,r.jsx)(C.gT,{sport:W,team:O.team,children:(0,r.jsxs)(h.so,{align:"center",gap:"sm",color:"neutrals.nLv1",_hover:{color:O.team?"primary.default":void 0},children:[(0,r.jsx)(l.p,{id:O.team.id,name:O.team.name,national:O.team.national,size:32}),(0,r.jsxs)(h.so,{direction:"column",justify:"center",gap:"2xs",children:[(0,r.jsx)(c.EY,{textStyle:O.contractUntilTimestamp?"body.medium":"display.medium",color:"[inherit]",children:(0,r.jsx)(F.c,{entity:O.team})}),O.contractUntilTimestamp&&(0,r.jsxs)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",lineHeight:1,children:[(0,r.jsx)(u.A,{id:"contract_until"}),": ",(0,r.jsx)(f.XU,{value:1e3*O.contractUntilTimestamp,...d.or.dateWithShortMonth,timeZone:"UTC"})]})]})]})}),actions:[O.managerId&&(0,r.jsx)(C.N_,{routeKey:"manager",params:{id:O.managerId,slug:W},children:(0,r.jsx)(y.u,{label:H.formatMessage({id:"manager_profile"}),children:(0,r.jsx)(b.AdY,{})})}),V&&(0,r.jsx)(c.m_,{label:H.formatMessage({id:"compare_player_stats"}),strategy:"hover",colorPalette:"secondary",children:(0,r.jsx)(x.O,{type:"player",id:O.id,sport:W,iconOnly:!!O.managerId})}),Y&&!G&&!U&&(0,r.jsx)(c.m_,{label:H.formatMessage({id:"add_to_favourites"}),strategy:"hover",colorPalette:"secondary",children:(0,r.jsx)(k.e,{id:O.id,entity:a.bq7.Players,location:S.y.Header,type:S.b.Player,isNewButton:!0})}),K>=16&&(0,r.jsx)(c.m_,{label:H.formatMessage({id:"embed_widget"}),strategy:"hover",colorPalette:"secondary",children:(0,r.jsx)(y.u,{label:H.formatMessage({id:"embed_widget"}),onClick:()=>I(!0),children:(0,r.jsx)(b.Q4p,{style:{width:24,height:24}})})})],footer:(0,r.jsxs)(r.Fragment,{children:[void 0!==O.country.alpha2&&(0,r.jsx)(M,{graphic:(0,r.jsx)(i.w,{alpha2:O.country.alpha2,name:O.country.alpha2,size:16,national:!0}),text:O.country.name}),!!O.dateOfBirthTimestamp&&(0,r.jsx)(M,{icon:b.X78,text:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(f.XU,{value:new Date(1e3*O.dateOfBirthTimestamp),...d.or.dateWithLongMonth,timeZone:"UTC"})," ","(",G?"number"==typeof N?(0,r.jsx)(u.A,{id:"deceasedYear",values:{year:N}}):(0,r.jsx)(u.A,{id:"deceased",values:{gender:null!=(T=O.gender)?T:O.team.gender}}):(0,d.KW)(O.dateOfBirthTimestamp),")"]})}),"string"==typeof O.position&&(0,r.jsx)(M,{icon:b.fEU,text:(0,r.jsx)(L.F,{id:O.position,sport:W,gender:O.team.gender})}),J&&"string"==typeof(null==(t=O.cricketPlayerInfo)?void 0:t.batting)&&(0,r.jsx)(M,{icon:b.BM3,text:(0,r.jsx)(u.A,{id:O.cricketPlayerInfo.batting})}),J&&"string"==typeof(null==(o=O.cricketPlayerInfo)?void 0:o.bowling)&&(0,r.jsx)(M,{icon:b.Pvq,text:(0,r.jsx)(u.A,{id:O.cricketPlayerInfo.bowling})}),"number"==typeof O.height&&(0,r.jsx)(M,{icon:b.f6o,text:(0,r.jsx)(R.Z,{value:O.height,fromUnit:"cm"})}),"string"==typeof O.preferredFoot&&(0,r.jsx)(M,{icon:b.SdB,text:(0,r.jsx)(u.A,{id:"foot.".concat(O.preferredFoot.toLowerCase()),defaultMessage:O.preferredFoot})}),"string"==typeof O.jerseyNumber&&(0,r.jsx)(M,{icon:b.kDU,text:(0,r.jsx)(u.A,{id:"jersey_number",values:{jerseyNumber:O.jerseyNumber}})})]})}),Y&&!G&&!U&&(0,r.jsxs)(w.K,{id:O.id,name:O.name,entity:a.bq7.Players,type:S.b.Player,children:[(0,r.jsx)(n.t,{size:32,mr:"sm",style:{verticalAlign:"top"},id:O.id,name:O.slug,grayscale:O.deceased}),(0,r.jsx)(c.EY,{textStyle:"display.medium",color:"primary.default",mr:"sm",children:(0,r.jsx)(F.c,{entity:O})})]}),(0,r.jsx)(P.Ay,{player:O,locale:z,isEmbedModalVisible:E,setIsEmbedModalVisible:I})]})}},19643:(e,t,o)=>{"use strict";o.d(t,{N:()=>i});var r=o(93839);function i(e,t){return"en"===t||t===r.vo[e]}},19673:(e,t,o)=>{"use strict";function r(e){let t=(null==e?void 0:e.toLowerCase())||"",o=["hr","es","pt"].includes(t);return"https://corporate.sofascore.com".concat(o?"/".concat(t):"","/about/rating")}o.d(t,{y:()=>r})},25725:(e,t,o)=>{var r=o(81648),i=o(78492),n=o(68988),s=o(91544);e.exports=function(e,t){return function(o,l){var a=s(o)?r:i,d=t?t():{};return a(o,e,n(l,2),d)}}},34851:(e,t,o)=>{"use strict";o.d(t,{J:()=>r});var r=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}({})},41896:(e,t,o)=>{"use strict";o.d(t,{N:()=>B});var r=o(6029),i=o(947),n=o(28349),s=o(76356),l=o(55729),a=o(90248),d=o(54053),c=o(61836);let h=e=>{let{url:t,onClick:o,textId:i="claim_offer",isNegative:l=!1}=e;return(0,r.jsx)(n.$n,{bg:l?"onColor.primary":"primary.default",children:(0,r.jsx)(s.I4.a,{color:l?"graphics.dark":"onColor.primary",h:"100%",w:"100%",display:"flex",justifyContent:"center",alignItems:"center",href:t,target:"_blank",rel:"noopener",onClick:o,children:(0,r.jsx)(a.A,{id:i})})})},g=e=>{let{logoUrl:t,promotionName:o,bgImageUrl:i,title:g,description:p,isOpen:u,setIsOpen:f,url:m,location:x,actionButtonId:y,isNegative:b,logoStyle:v}=e,{isDesktop:_}=(0,n.$c)(),j={backgroundImage:"url(".concat(i,")"),backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};if((0,l.useEffect)(()=>{u&&(0,c.Z1)({type:"bottom_sheet",name:o,location:x})},[u]),!u)return null;let k=()=>f(!1);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.A,{isOpen:u,setIsOpen:f,footer:null,renderAdPlaceholder:!1,sheetStyles:j,modalContentStyles:j,width:360,bottomSheetSize:"large",isNegative:!0,isBottomSheetLocked:!0,children:(0,r.jsxs)(s.so,{direction:"column",justifyContent:"space-between",h:"100%",style:_?j:void 0,br:"lg",children:[(0,r.jsx)(s.so,{h:"8xl",px:"xl",pt:{md:"xl"},children:(0,r.jsx)(s.az,{w:"4xl",h:"4xl",children:(0,r.jsx)(n._V,{src:t,height:"4xl",width:"4xl",alt:o,style:v})})}),(0,r.jsxs)(s.so,{direction:"column",justify:"flex-end",minH:"[400px]",px:"lg",pb:"lg",gap:"2xl",children:[(0,r.jsxs)(s.so,{direction:"column",gap:"lg",children:[(0,r.jsx)(s.az,{textStyle:"display.extraLarge",color:"onColor.primary",children:g}),(0,r.jsx)(s.az,{textStyle:"body.mediumParagraph",color:"onColor.primary",children:p})]}),(0,r.jsxs)(s.so,{direction:"column",gap:"sm",pt:"xs",children:[(0,r.jsx)(h,{url:m,onClick:()=>{(0,c.AW)({type:"bottom_sheet",name:o,location:x}),k()},textId:y,isNegative:b}),(0,r.jsx)(n.$n,{variant:"clear",color:"onColor.primary",onClick:k,children:(0,r.jsx)(a.A,{id:"maybe_later"})})]})]})]})})})};var p=o(66062);let u=e=>{let{isOpen:t,setIsOpen:o,location:n}=e,s=(0,i.A)();return(0,r.jsx)(g,{logoUrl:"/static/images/courtside-1891/logo.png",bgImageUrl:"/static/images/courtside-1891/modal-bg.png",promotionName:p.d.promotionName,title:s.formatMessage({id:"euro_basket_promo_drawer_header"}),description:s.formatMessage({id:"euro_basket_promo_drawer_body"}),url:p.d.url,isOpen:t,setIsOpen:o,location:n})},f=e=>{let{isOpen:t,setIsOpen:o,location:n}=e,s=(0,i.A)();return(0,r.jsx)(g,{logoUrl:"/static/images/utr/logo.png",bgImageUrl:"/static/images/utr/utr-bottom-sheet.png",promotionName:p.nE.promotionName,title:s.formatMessage({id:"utr_bottom_sheet_header"}),description:s.formatMessage({id:"utr_bottom_sheet_body"}),actionButtonId:"learn_more_button",url:p.nE.url,isOpen:t,setIsOpen:o,location:n,logoStyle:{width:"57px",height:"32px"},isNegative:!0})};var m=o(83151),x=o(21501),y=o(494),b=o(41888),v=o(70116),_=o(10794),j=o(62827),k=o(83260),w=o(89606),S=o(32097);let R=(e,t)=>{let o=new Date().getTime();if(!e.hasModal||!e.modalCooldown||e.maxTotalViews&&(null==t?void 0:t.totalViews)&&e.maxTotalViews>t.totalViews)return!1;let r=null==t?void 0:t.lastView;return!r||o-r>e.modalCooldown},C=e=>{let t=(0,x.hX)(),{priorityModal:o,setModalAvailable:r,dismiss:i,isDismissed:n}=(0,v.Z)(),s=(0,y.d4)(_.LQ),[a,d]=(0,j.bL)("promotion-in-session",void 0),[c,h]=(0,l.useState)(!1),[g,u]=(0,l.useState)(!1),[f,m,C]=(0,k.A)("last-view-per-promotion",{}),B=t||!C?void 0:p.jI.find(o=>(0,w.y)(o,t,s)&&(0,S.H)(e,o)&&R(o,f[o.id]));return(0,l.useEffect)(()=>{B?r(b.w.PromotionModal,!0):o||n||r(b.w.PromotionModal,!1)},[B]),(0,l.useEffect)(()=>{if(o===b.w.PromotionModal&&B){let e=new Date().getTime();d(B.id),h(!0),u(!0),m(t=>{var o,r;let i=Object.keys(t).filter(e=>!!p.jI.find(t=>t.id===e)),n={};return i.forEach(e=>{n[e]=t[e]}),n[B.id]={lastView:e,totalViews:(null!=(r=null==(o=t[B.id])?void 0:o.totalViews)?r:0)+1},n})}},[o]),(0,l.useEffect)(()=>{!c&&g&&i()},[c]),{promotion:a,isOpen:c,setIsOpen:h}},B=e=>{let{page:t}=e,{promotion:o,isOpen:i,setIsOpen:n}=C(t);if(o&&i)switch(o){case m.v.Courtside1891:return(0,r.jsx)(u,{isOpen:i,setIsOpen:n,location:t.location});case m.v.Utr:return(0,r.jsx)(f,{isOpen:i,setIsOpen:n,location:t.location})}return null}},51246:(e,t,o)=>{"use strict";o.d(t,{Ay:()=>f,mb:()=>p,op:()=>u});var r=o(6029),i=o(21377),n=o(28349),s=o(76356),l=o(55729),a=o(90248),d=o(42525),c=o(19451),h=o(84942),g=o(62827);let p="_player_has_form",u="_player_has_pentagon",f=function(e){let{player:t,locale:o,isEmbedModalVisible:f,setIsEmbedModalVisible:m}=e,[x,y]=(0,l.useState)(void 0),[b,v]=(0,l.useState)(void 0),_=(0,c.vf)(o),j="".concat(i.yuv).concat(_?"/".concat(_):"","/embed/player/").concat(t.id,"?widgetTheme=light"),k="sofa-player-embed-".concat(t.id),w="height:".concat(418+232*!!x+180*!!b,"px!important;max-width:730px!important;width:100%!important;"),S=''),R=(0,h.s)(t,o),C=async()=>{let e=await (0,g._9)(t.id+p),o=await (0,g._9)(t.id+u);v("true"===e),y("true"===o)};return(0,l.useEffect)(()=>{v(void 0),y(void 0)},[t.id]),(0,l.useEffect)(()=>{C()},[f]),(0,r.jsx)(n.aF,{isOpen:f,onClose:()=>m(!1),onOutsideClick:()=>m(!1),children:(0,r.jsxs)(s.az,{br:"lg",mx:"auto",elevation:"3",bg:"surface.sp",w:"[360px]",children:[(0,r.jsx)(n.EY,{textStyle:"display.large",p:{md:"lg"},display:"block",children:(0,r.jsx)(a.A,{id:"player_info_embed",values:{playerName:R}})}),(0,r.jsx)(s.az,{px:"sm",children:(0,r.jsx)(d.P,{embedString:S})}),(0,r.jsx)(s.so,{justify:"flex-end",children:(0,r.jsx)(s.az,{p:"lg",children:(0,r.jsx)(n.$n,{onClick:()=>m(!1),variant:"clear",children:(0,r.jsx)(a.A,{id:"close_window_button"})})})})]})})}},54917:(e,t,o)=>{"use strict";o.d(t,{F:()=>c});var r=o(6029),i=o(21377),n=o(55729),s=o(90248),l=o(62859);let a=JSON.parse('{"football":{"Dlong":"football_defender","DLlong":"football_left_defender","DClong":"football_centre_defender","DRlong":"football_right_defender","DMlong":"football_defensive_midfielder","Mlong":"football_midfielder","MLlong":"football_left_midfielder","MRlong":"football_right_midfielder","MClong":"football_centre_midfielder","AMlong":"football_attacking_midfielder","Flong":"football_forward","LWlong":"football_left_winger","RWlong":"football_right_winger","STlong":"football_striker","Glong":"goalkeeper","GKlong":"goalkeeper","Dshort":"position.defender.short","DLshort":"position.defenderLeft.short","DCshort":"position.defenderCenter.short","DRshort":"position.defenderRight.short","DMshort":"position.defensiveMidfielder","Mshort":"position.midfielder.short","MLshort":"position.midfielderLeft.short","MRshort":"position.midfielderRight.short","MCshort":"position.midfielderCenter.short","AMshort":"position.attackingMidfielder.short","Fshort":"position.forward.short","LWshort":"position.leftWinger.short","RWshort":"position.rightWinger.short","STshort":"position.striker.short","Gshort":"position.goalkeeper.short","GfantasyShort":"position.goalkeeper.fantasyShort","DfantasyShort":"position.defender.fantasyShort","MfantasyShort":"position.midfielder.fantasyShort","FfantasyShort":"position.forward.fantasyShort"},"basketball":{"Clong":"basketball.center","CFlong":"centerForward","Flong":"basketball.forward","FClong":"forwardCenter","FGlong":"forwardGuard","Glong":"guard","GFlong":"guardForward","Cshort":"position.basketball.center.short","CFshort":"position.centerForward.short","Fshort":"position.basketball.forward.short","FCshort":"position.forwardCenter.short","FGshort":"position.forwardGuard.short","Gshort":"position.guard.short","GFshort":"position.guardForward.short"},"ice-hockey":{"Dlong":"defenseman","Glong":"goalie","Clong":"hockey.center","Llong":"leftWing","Rlong":"rightWing","Flong":"football_forward","Dshort":"position.defenseman.short","Gshort":"position.goalie.short","Cshort":"position.hockey.short.center","Lshort":"position.leftWing.short","Rshort":"position.rightWing.short","Fshort":"position.forward.short"},"baseball":{"Plong":"pitcher","Clong":"catcher","1Blong":"1stBase","2Blong":"2ndBase","3Blong":"3rdBase","SSlong":"shortstop","LFlong":"leftField","CFlong":"centerField","RFlong":"rightField","DHlong":"designatedHitter","SPlong":"startingPitcher","CPlong":"closer","PHlong":"pinchHitter","PRlong":"pinchRunner","BRlong":"baseRunner","OFlong":"outfield","IFlong":"infield","RPlong":"reliefPitcher","UTlong":"util","UIlong":"utilInfielder","UOlong":"utilOutfielder","RHPlong":"rhPitcher","LHPlong":"lhPitcher","RHSlong":"rhStarted","LHSlong":"lhStarter","LHRlong":"lhReliever","RHRlong":"rhReliever","Blong":"batter","Pshort":"position.pitcher.short","Cshort":"position.catcher.short","1Bshort":"position.1stBase.short","2Bshort":"position.2ndBase.short","3Bshort":"position.3rdBase.short","SSshort":"position.shortstop.short","LFshort":"position.leftField.short","CFshort":"position.centerField.short","RFshort":"position.rightField.short","DHshort":"position.designatedHitter.short","SPshort":"position.startingPitcher.short","CPshort":"position.closer.short","PHshort":"position.pinchHitter.short","PRshort":"position.pinchRunner.short","BRshort":"position.baseRunner.short","OFshort":"position.outfield.short","IFshort":"position.infield.short","RPshort":"position.reliefPitcher.short","UTshort":"position.util.short","UIshort":"position.utilInfielder.short","UOshort":"position.utilOutfielder.short","RHPshort":"position.rhPitcher.short","LHPshort":"position.lhPitcher.short","RHSshort":"position.rhStarted.short","LHSshort":"position.lhStarter.short","LHRshort":"position.lhReliever.short","RHRshort":"position.rhReliever.short","Bshort":"position.batter.short"},"american-football":{"Plong":"punter","PRlong":"puntReturner","LSlong":"longSnapper","Klong":"kicker","Tlong":"tackle","OTlong":"offensiveTackle","OLlong":"offensiveLineman","OGlong":"offensiveGuard","Glong":"amf.guard","Clong":"amf.center","QBlong":"quarterback","RBlong":"runningBack","FBlong":"fullback","TElong":"tightEnd","WRlong":"wideReceiver","SSlong":"strongSafety","SAFlong":"safety","FSlong":"freeSafety","DLlong":"defensiveLineman","DBlong":"defensiveBack","CBlong":"cornerBack","NTlong":"noseTackle","DTlong":"defensiveTackle","DElong":"defensiveEnd","OLBlong":"outsideLinebacker","MLBlong":"middleLinebacker","LBlong":"linebacker","ILBlong":"insideLinebacker","Pshort":"position.punter.short","PRshort":"position.puntReturner.short","LSshort":"position.longSnapper.short","Kshort":"position.kicker.short","Tshort":"position.tackle.short","OTshort":"position.offensiveTackle.short","OLshort":"position.offensiveLineman.short","OGshort":"position.offensiveGuard.short","Gshort":"position.amf.guard.short","Cshort":"position.amf.center.short","QBshort":"position.quarterback.short","RBshort":"position.runningBack.short","FBshort":"position.fullback.short","TEshort":"position.tightEnd.short","WRshort":"position.wideReceiver.short","SSshort":"position.strongSafety.short","SAFshort":"position.safety.short","FSshort":"position.freeSafety.short","DLshort":"position.defensiveLineman.short","DBshort":"position.defensiveBack.short","CBshort":"position.cornerBack.short","NTshort":"position.noseTackle.short","DTshort":"position.defensiveTackle.short","DEshort":"position.defensiveEnd.short","OLBshort":"position.outsideLinebacker.short","MLBshort":"position.middleLinebacker.short","LBshort":"position.linebacker.short","ILBshort":"position.insideLinebacker.short"},"handball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","RWlong":"rightWing","RWshort":"position.rightWinger.short","LWlong":"leftWing","LWshort":"position.leftWinger.short","RBlong":"rightBack","RBshort":"position.rightBack.short","LBlong":"leftBack","LBshort":"position.leftBack.short","CBlong":"handball_position_centre_back","CBshort":"position.centralBack.short","Plong":"pivot","Pshort":"position.pivot.short"},"cricket":{"BMlong":"position.batter","ARlong":"position.all.rounder","WKlong":"position.wicket.keeper","Blong":"position.bowler","BMshort":"position.batter","ARshort":"position.all.rounder","WKshort":"position.wicket.keeper","Bshort":"position.bowler"},"minifootball":{"Glong":"goalkeeper","Gshort":"position.goalkeeper.short","OFshort":"minifootball_outfield_player_short","OFlong":"minifootball_outfield_player","Fshort":"minifootball_outfield_player_short","Flong":"minifootball_outfield_player"},"volleyball":{"OHshort":"volleyball_player_position_outside_hitter_short","MBshort":"volleyball_player_position_middle_blocker_short","Lshort":"volleyball_player_position_libero_short","Oshort":"volleyball_player_position_opposite_short","Sshort":"volleyball_player_position_setter_short","OHlong":"volleyball_player_position_outside_hitter","MBlong":"volleyball_player_position_middle_blocker","Llong":"volleyball_player_position_libero","Olong":"volleyball_player_position_opposite","Slong":"volleyball_player_position_setter"}}');var d=o(27892);let c=e=>{let{id:t,fantasyShort:o,short:c,sport:h,gender:g=i.YT8.Male}=e,p=(0,n.useContext)(l.Ws),u=h||p,f=o&&u===i.QCR.Football?"fantasyShort":c||o?"short":"long",m=(0,d.O)(a,t+f,u,t);return(0,r.jsx)(s.A,{id:m,values:{gender:g}})}},56602:(e,t,o)=>{"use strict";o.d(t,{D:()=>B});var r=o(6029),i=o(87827),n=o(21377),s=o(28349),l=o(62042),a=o(76356),d=o(55729),c=o(947),h=o(90248),g=o(54409),p=o(54053),u=o(26331),f=o(62859),m=o(34851),x=o(19991),y=o(99064),b=o(28446),v=o(41735);let _=e=>(0,v.keyframes)(["from{left:0;}to{left:",";}"],e),j=(0,v.default)(y.az).withConfig({componentId:"sc-12120f08-0"})(["animation:"," 660ms ease-in-out 1;animation-delay:330ms;animation-fill-mode:forwards;"],e=>_(e.ratingPosition)),k=["3.0","6.0","6.5","7.0","8.0","9.0"],w=(0,b.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:o}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.so,{id:"#container",position:"relative",mx:"sm",mb:"xs",children:[k.map((e,t)=>(0,r.jsx)(y.az,{flex:"1 1 1px",br:0===t?"xs 0 0 xs":5===t?"0 xs xs 0":void 0,bg:(0,x.Et)(e),h:"16"},e)),t&&(0,r.jsx)(j,{position:"absolute",top:"-2",ratingPosition:w(+t)+"%",w:"2",h:"20",bg:"neutral.variant"})]}),(0,r.jsx)(y.so,{justify:"space-between",children:[...k,"10"].map(e=>(0,r.jsxs)(y.EY,{color:(0,x.Et)(e),font:"tab.secondary",children:[e,"sideBox"===o&&"10"!==e?"0":""]},e))})]})}var R=o(19673);let C=(0,l.AH)({"& > div > div":{zoom:2.5},"& span":{zoom:2.5}});function B(e){let{type:t,rating:o=10,renderImage:l,children:x}=e,y=(0,c.A)(),[b,v]=(0,d.useState)(!1),{isDesktop:_}=(0,s.$c)(),j=(0,d.useContext)(f.Ws)===n.QCR.Football,k=(0,u.A)(),w=(0,R.y)(k),B="",F="box",L="sofascore_rating",P="";switch(t){case m.J.SpecificRatingPlayer:B="rating_general_text",P=[y.formatMessage({id:"rating_top_stats_general"}),y.formatMessage({id:"rating_top_stats_specific"})].join(" ");break;case m.J.AverageRatingTeam:B="average_team_rating_text",F="sideBox",P=[y.formatMessage({id:"rating_top_teams_general"}),y.formatMessage({id:"rating_top_teams_specific"})].join(" ");break;case m.J.AverageRating:B="average_team_rating_match",F="sideBox",L="average_sofascore_rating";break;case m.J.AverageRatingTeamLineups:B="average_team_rating_text",F="sideBox";break;case m.J.AverageRatingPlayer:B="average_player_rating_text",F="sideBox"}return(0,r.jsxs)(r.Fragment,{children:["function"==typeof x?(0,r.jsx)(r.Fragment,{children:x({isOpen:b,setIsOpen:v})}):null!=x?x:(0,r.jsx)(s.m_,{label:P,strategy:""!==P&&_?"hover":"controlled",isVisible:!1,children:(0,r.jsx)(s.K0,{mx:"xs",variant:"clear",onClick:()=>{v(!0)},children:(0,r.jsx)(g.G_L,{fill:"onSurface.nLv1"})})}),(0,r.jsxs)(p.A,{header:(0,r.jsx)(s.H3,{p:"lg",textStyle:"display.large",children:(0,r.jsx)(h.A,{id:L})}),isOpen:b,setIsOpen:v,footer:(0,r.jsx)(a.so,{justify:"flex-end",m:j?"[0 {spacing.lg} {spacing.lg} {spacing.lg}]":{base:"lg",mdDown:"[0 {spacing.lg} {spacing.lg} {spacing.lg}]"},children:(0,r.jsx)(s.$n,{w:{base:"auto",mdDown:"100%"},onClick:()=>{v(!1)},variant:_?"clear":void 0,children:(0,r.jsx)(h.A,{id:"ok_got_it_button"})})}),children:[(0,r.jsxs)(a.az,{maxW:{md:"[320px]"},px:"lg",mb:j?void 0:{mdDown:"2xl"},children:[B&&(0,r.jsx)(h.A,{id:B,values:{break:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]})}}),(0,r.jsxs)(a.so,{justify:"center",align:"center",pt:"4xl",pb:"xl",children:[(0,r.jsx)(a.az,{className:"sideBox"===F?C:void 0,children:(0,r.jsx)(i.G,{size:"xl",rating:o,format:F})}),null==l?void 0:l({size:40,ml:"lg"})]}),(0,r.jsx)(S,{rating:o,format:F})]}),j&&(0,r.jsx)(a.az,{px:"lg",py:"4xl",pb:"2xl",children:(0,r.jsxs)(s.Mz,{display:"block",color:"primary.default",textStyle:"display.small",href:w,target:"_blank",onClick:()=>{v(!1)},children:[(0,r.jsx)(h.A,{id:"rating_learn_more_button"}),(0,r.jsx)(g.CCT,{ml:"xs",w:"16",h:"16",fill:"primary.default"})]})})]})]})}B.type=m.J},78492:(e,t,o)=>{var r=o(50956);e.exports=function(e,t,o,i){return r(e,function(e,r,n){t(i,e,o(e),n)}),i}},81648:e=>{e.exports=function(e,t,o,r){for(var i=-1,n=null==e?0:e.length;++i{"use strict";o.d(t,{AG:()=>s,Et:()=>h,aQ:()=>c,mR:()=>a,o5:()=>d});var r=o(21377),i=o(13731),n=o.n(i);let s=e=>e.reduce((e,t)=>e+Number(t),0)/e.length,l=e=>"".concat(e.getFullYear(),"-").concat(9>e.getMonth()?"0":"").concat(e.getMonth()+1);function a(e){let t=e.filter(e=>e.type===r.XFZ.Event);return n()(t,e=>l(new Date(1e3*e.timestamp)))}function d(){let e={},t=new Date;for(let o=0;o<12;o++)e[l(t)]=void 0,t.setMonth(t.getMonth()-1);return e}function c(){let e=new Date;return[new Date(e.getFullYear(),e.getMonth()-11,1).getTime(),new Date(e.getFullYear(),e.getMonth()+1,0).getTime()]}function h(e){return"colors.rating".concat(e.replace("scoreRating",""))}},94446:(e,t,o)=>{"use strict";o.d(t,{p:()=>i.p,t:()=>r.t});var r=o(91407),i=o(91603)},97944:(e,t,o)=>{"use strict";o.d(t,{S:()=>r.A});var r=o(73463)}}]);