!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]="b8b93eb7-7f41-4cf6-a6db-980b2faf9f8e",e._sentryDebugIdIdentifier="sentry-dbid-b8b93eb7-7f41-4cf6-a6db-980b2faf9f8e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6980],{6675:(e,t,a)=>{"use strict";a.d(t,{T2:()=>m,N9:()=>h,Od:()=>f,Vd:()=>x}),a(72653);var r=a(6029),i=a(21377),s=a(4967),n=a(95669),o=a.n(n),l=a(947),c=a(58771),d=a(26331),p=a(73088),u=a(97047);function m(e){var t;let{manager:a}=e,n=(0,l.A)(),m=(0,d.A)(),g=a.dateOfBirthTimestamp,h={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n.formatMessage({id:"sport.".concat(a.sport.slug)}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(m,"eventList",{sport:a.sport.slug}).route)},{"@type":"ListItem",position:2,name:a.name}]},y={"@context":"https://schema.org","@type":"Person",name:a.name,birthDate:g?s.pp(g).toISOString():void 0,url:"https://www.sofascore.com/manager/".concat(a.slug,"/").concat(a.id),nationality:a.country&&{"@type":"Country",name:a.country.name},affiliation:(null==(t=a.teams)?void 0:t[0])&&{"@type":"Organization",name:a.teams[0].name,sameAs:(0,u.WG)(a.teams[0].id,m)}};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)(h)}),",",(0,r.jsx)("script",{...(0,c.QQ)(y)}),","]})}var g=a(84942);function h(e){let{player:t}=e,a=(0,l.A)(),n=(0,d.A)(),m=(0,g.s)(t,n),h=t.dateOfBirthTimestamp,y=t.team.primaryUniqueTournament,x=1,f=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.team.sport.slug)}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"eventList",{sport:t.team.sport.slug}).route)}];y&&(f.push({"@type":"ListItem",position:++x,name:a.formatMessage({id:y.category.slug}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"eventList.category",{sport:y.category.sport.slug,category:y.category.slug}).route)}),f.push({"@type":"ListItem",position:++x,name:y.name,item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"uniqueTournament",{sport:y.category.sport.slug,category:y.category.slug,tournament:y.slug,id:y.id}).route)})),f.push({"@type":"ListItem",position:++x,name:m});let w={"@context":"https://schema.org","@type":"Person",name:m,birthDate:h?s.pp(h).toISOString():void 0,url:"https://www.sofascore.com/player/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name},affiliation:t.team&&{"@type":"Organization",name:t.team.name,sameAs:(0,u.WG)(t.team.id,n)},gender:(0,u.o_)(t.team.gender),height:t.height?"".concat(t.height," cm"):void 0,sameAs:(0,u.YL)(t.id,n)};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:f})}),",",(0,r.jsx)("script",{...(0,c.QQ)(w)}),","]})}var y=a(85905);function x(e){var t,a,n,m;let{team:h,players:x}=e,f=(0,l.A)(),w=(0,d.A)(),j=(0,g.s)(h,w);if(h.type!==i.YVh.Regular)return null;let v=h.sport,_=(null==(t=h.venue)?void 0:t.country.alpha2)||h.country.alpha2||h.category.alpha2||(null==(a=h.primaryUniqueTournament)?void 0:a.category.alpha2),k=(0,u.o_)(h.gender),b=h.foundationDateTimestamp,T=h.primaryUniqueTournament,C=1,A=[{"@type":"ListItem",position:1,name:f.formatMessage({id:"sport.".concat(v.slug)}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(w,"eventList",{sport:v.slug}).route)},{"@type":"ListItem",position:++C,name:f.formatMessage({id:h.category.slug}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(w,"eventList.category",{sport:h.category.sport.slug,category:h.category.slug}).route)}];T&&A.push({"@type":"ListItem",position:++C,name:T.name,item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(w,"uniqueTournament",{sport:T.category.sport.slug,category:T.category.slug,tournament:T.slug,id:T.id}).route)}),A.push({"@type":"ListItem",position:++C,name:j});let L={"@context":"https://schema.org","@type":"SportsTeam",name:h.fullName,sport:h.sport.name,gender:k,foundingDate:b?s.pp(b).toISOString():void 0,logo:i.cWY.image(h.id),url:"https://www.sofascore.com/team/".concat(h.sport.slug,"/").concat(h.slug,"/").concat(h.id),sameAs:(0,u.WG)(h.id,w)};return h.manager&&(L.coach={"@type":"Person",name:h.manager.name}),x&&(0,y.TE)(v,x)&&(L.athlete=x.players.map(e=>{let t=e.player,a=t.dateOfBirthTimestamp;return{"@type":"Person",name:(0,g.s)(t,w),birthDate:a?s.pp(a).toISOString():void 0,nationality:t.country&&{"@type":"Country",name:t.country.name},gender:k,sameAs:(0,u.YL)(t.id,w)}})),_&&(L.address={"@type":"PostalAddress",addressCountry:(0,u.lE)(_),addressLocality:null==(m=h.venue)||null==(n=m.city)?void 0:n.name}),T&&(L.memberOf={"@type":"SportsOrganization",name:T.name,sameAs:(0,u._z)(T.id,w)}),(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:A})}),",",(0,r.jsx)("script",{...(0,c.QQ)(L)}),","]})}function f(e){let{referee:t}=e,a=(0,l.A)(),n=(0,d.A)(),u=t.dateOfBirthTimestamp,m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(t.sport.slug)}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"eventList",{sport:t.sport.slug}).route)},{"@type":"ListItem",position:2,name:t.name}]},g={"@context":"https://schema.org","@type":"Person",name:t.name,birthDate:u?s.pp(u).toISOString():void 0,url:"https://www.sofascore.com/referee/".concat(t.slug,"/").concat(t.id),nationality:t.country&&{"@type":"Country",name:t.country.name}};return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)(m)}),",",(0,r.jsx)("script",{...(0,c.QQ)(g)}),","]})}},10481:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/referee",function(){return a(99079)}])},38878:(e,t,a)=>{"use strict";a.d(t,{K:()=>o});var r=a(64082),i=a(6029),s=a(21377),n=a(41249);function o(e){var{id:t,name:a,size:o=56,placeholder:l="/static/images/placeholders/player.svg",style:c,className:d,grayscale:p}=e,u=(0,r.T)(e,["id","name","size","placeholder","style","className","grayscale"]);let m=u.w||u.width||o,g=u.h||u.height||o;return(0,i.jsx)(n._V,Object.assign({fallback:(0,i.jsx)(n._V,{style:Object.assign({borderRadius:"50%"},c),w:m,h:g,src:l,alt:a}),src:t?s.rDt.image(t):"",alt:a,w:m,h:g,br:"50%",style:c,className:d,isGrayscale:p},u))}},72653:(e,t,a)=>{"use strict";a.d(t,{A:()=>y});var r=a(6029),i=a(21377),s=a(4967),n=a(95669),o=a.n(n),l=a(947),c=a(58771),d=a(26331),p=a(73088),u=a(97047);let m=(e,t,a)=>e.type===i.YVh.Person?{"@type":"Person",name:e.name}:{"@type":"SportsTeam",sport:t.name,name:e.name,logo:i.cWY.image(e.id),url:"https://www.sofascore.com/team/".concat(t.slug,"/").concat(e.slug,"/").concat(e.id),sameAs:(0,u.WG)(e.id,a)},g=(e,t)=>{var a,r,i,s,n;let o=(null==(a=e.tournament.uniqueTournament)?void 0:a.name)||e.tournament.name,l=(null==(r=e.season)?void 0:r.year)||(null==(i=e.season)?void 0:i.name)||t.getFullYear()||"",c=(e.tournament.roundPrefix||"")+" "+((null==(s=e.roundInfo)?void 0:s.name)||((null==(n=e.roundInfo)?void 0:n.round)?"Round ".concat(e.roundInfo.round):""));return"".concat(o," ").concat(l," ").concat(c.trim()).trim()},h=e=>{switch(e.status.type){case i.XUj.Canceled:case i.XUj.Suspended:return"EventCancelled";case i.XUj.Postponed:return"EventPostponed";default:return"EventScheduled"}};function y(e){let{event:t}=e,a=(0,l.A)(),n=(0,d.A)(),y=t.tournament.category.sport,x=s.pp(t.startTimestamp),f=g(t,x),w=t.tournament.category,j=t.tournament.uniqueTournament,v=1,_=[{"@type":"ListItem",position:1,name:a.formatMessage({id:"sport.".concat(y.slug)}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"eventList",{sport:y.slug}).route)},{"@type":"ListItem",position:++v,name:a.formatMessage({id:w.slug}),item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"eventList.category",{sport:w.sport.slug,category:w.slug}).route)}];j&&_.push({"@type":"ListItem",position:++v,name:j.name,item:"".concat(i.VTF).concat(p.z.getTranslatedRoute(n,"uniqueTournament",{sport:j.category.sport.slug,category:j.category.slug,tournament:j.slug,id:j.id}).route)}),_.push({"@type":"ListItem",position:++v,name:"".concat(t.homeTeam.name," - ").concat(t.awayTeam.name)});let k={"@context":"https://schema.org","@type":"SportsEvent",name:"".concat(t.homeTeam.name," vs ").concat(t.awayTeam.name),eventStatus:h(t),description:f,homeTeam:m(t.homeTeam,y,n),awayTeam:m(t.awayTeam,y,n),startDate:x.toISOString(),sport:y.name};if(t.venue){var b,T,C;k.location=[{"@type":"Place",name:null==(b=t.venue)?void 0:b.stadium.name,maximumAttendeeCapacity:null==(T=t.venue)?void 0:T.stadium.capacity,address:{"@type":"PronounceableText"}}],t.venue.city.name&&k.location.concat({"@type":"Place",name:t.venue.city.name}),t.venue.country.alpha2&&k.location.concat({"@type":"Country",name:(0,u.lE)(null==(C=t.venue)?void 0:C.country.alpha2)})}else t.tournament.category.alpha2&&(k.location={"@type":"Country",name:(0,u.lE)(t.tournament.category.alpha2)});return(0,r.jsxs)(o(),{children:[(0,r.jsx)("script",{...(0,c.QQ)({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:_})}),",",(0,r.jsx)("script",{...(0,c.QQ)(k)}),","]})}},97047:(e,t,a)=>{"use strict";a.d(t,{WG:()=>c,YL:()=>p,_z:()=>d,lE:()=>i,o_:()=>s});let r={EN:"GB",SX:"GB",WA:"GB",NX:"GB"},i=e=>e&&(r[e]||e),s=e=>{if(e)return"M"===e?"Male":"F"===e?"Female":void 0},n={en:{35:"https://en.wikipedia.org/wiki/Manchester_United_F.C.",38:"https://en.wikipedia.org/wiki/Chelsea_F.C.",1644:"https://en.wikipedia.org/wiki/Paris_Saint-Germain_F.C.",2351:"https://en.wikipedia.org/wiki/Rangers_F.C.",2687:"https://en.wikipedia.org/wiki/Juventus_F.C.",2817:"https://en.wikipedia.org/wiki/FC_Barcelona"},pt:{1963:"https://pt.wikipedia.org/wiki/Sociedade_Esportiva_Palmeiras",1966:"https://pt.wikipedia.org/wiki/Sport_Club_Internacional",5926:"https://pt.wikipedia.org/wiki/Gr%C3%AAmio_Foot-Ball_Porto_Alegrense",5981:"https://pt.wikipedia.org/wiki/Clube_de_Regatas_do_Flamengo"}},o={en:{7:"https://en.wikipedia.org/wiki/UEFA_Champions_League",8:"https://en.wikipedia.org/wiki/La_Liga",17:"https://en.wikipedia.org/wiki/Premier_League",19:"https://en.wikipedia.org/wiki/FA_Cup",23:"https://en.wikipedia.org/wiki/Serie_A",34:"https://en.wikipedia.org/wiki/Ligue_1",36:"https://en.wikipedia.org/wiki/Scottish_Premiership",328:"https://en.wikipedia.org/wiki/Coppa_Italia",329:"https://en.wikipedia.org/wiki/Copa_del_Rey",332:"https://en.wikipedia.org/wiki/Scottish_League_Cup",335:"https://en.wikipedia.org/wiki/Coupe_de_France",347:"https://en.wikipedia.org/wiki/Scottish_Cup"},pt:{325:"https://pt.wikipedia.org/wiki/Campeonato_Brasileiro_de_Futebol",373:"https://pt.wikipedia.org/wiki/Copa_do_Brasil_de_Futebol",384:"https://pt.wikipedia.org/wiki/Copa_Libertadores_da_Am%C3%A9rica"}},l={pt:{358554:"https://pt.wikipedia.org/wiki/Gabriel_Barbosa",32891:"https://pt.wikipedia.org/wiki/Mauricio_Isla",840219:"https://pt.wikipedia.org/wiki/Pedro_Guilherme_Abreu_dos_Santos",795291:"https://pt.wikipedia.org/wiki/Bruno_Henrique_Pinto",822526:"https://en.wikipedia.org/wiki/Gabriel_Batista",950454:"https://pt.wikipedia.org/wiki/Hugo_de_Souza_Nogueira",804703:"https://pt.wikipedia.org/wiki/Bruno_Viana_Willemen_da_Silva",333587:"https://pt.wikipedia.org/wiki/Giorgian_De_Arrascaeta",242213:"https://pt.wikipedia.org/wiki/Willian_Ar%C3%A3o"}},c=(e,t)=>{var a;return null==(a=n[t])?void 0:a[e]},d=(e,t)=>{var a;return null==(a=o[t])?void 0:a[e]},p=(e,t)=>{var a;return null==(a=l[t])?void 0:a[e]}},99079:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>ec});var r=a(6029),i=a(95669),s=a.n(i),n=a(90248),o=a(33752),l=a(60988),c=a(29129),d=a(42678),p=a(8973),u=a(26331),m=a(70591),g=a(73088),h=a(52951),y=a(6675),x=a(27289),f=a(84942),w=a(21377),j=a(70010),v=a(93471),_=a(4967),k=a(95083),b=a(76356),T=a(41249),C=a(947),A=a(90510),L=a(65789),S=a(55938);let I=e=>{let{label:t,value:a,children:i}=e;return a||i?(0,r.jsxs)(b.az,{w:"1/2",py:"md",px:"lg",children:[(0,r.jsx)(k.EY,{display:"block",textStyle:"assistive.micro",color:"neutrals.nLv3",textAlign:"center",textTransform:"uppercase",mb:"2xs",children:t}),(0,r.jsx)(k.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:a||i})]}):null};function P(e){var t;let{refereeDetails:a}=e,{referee:i}=a,s=(0,C.A)(),o=i.dateOfBirthTimestamp?(0,r.jsx)(A.XU,{value:new Date(1e3*i.dateOfBirthTimestamp),..._.or.dateWithShortMonth,timeZone:"UTC"}):null;return(0,r.jsx)(L.Zp,{children:(0,r.jsxs)(b.so,{justify:"center",children:[(null==(t=i.country)?void 0:t.alpha2)&&(0,r.jsx)(I,{label:(0,r.jsx)(n.A,{id:"nationality"}),children:(0,r.jsxs)(b.so,{align:"center",justify:"center",gap:"xs",children:[(0,r.jsx)(T._V,{src:"/static/images/flags/".concat(i.country.alpha2.toLowerCase(),".png"),width:16,height:16,br:"50%",loading:"lazy",alt:i.country.alpha2}),(0,r.jsx)("span",{children:(0,S.KH)(i.country.alpha2)})]})}),o&&i.dateOfBirthTimestamp&&(0,r.jsx)(I,{label:o,value:"".concat((0,_.KW)(i.dateOfBirthTimestamp)," ").concat(s.formatMessage({id:"years_short"}))})]})})}var z=a(38878),B=a(42901),E=a(24159);function F(e){var t,a;let{referee:i}=e,s=null==(a=i.country)||null==(t=a.alpha2)?void 0:t.toLowerCase();return(0,r.jsx)(b.az,{bg:{mdDown:"surface.s1"},children:(0,r.jsxs)(B.z,{bgImageSrc:s?"/static/images/flags/".concat(s,".png"):void 0,flexProps:{px:["lg","xl"],py:["lg","xl"],gap:["lg","xl"],align:"center"},children:[(0,r.jsx)(b.az,{h:{base:"4xl",md:"12xl"},w:{base:"4xl",md:"12xl"},border:"1px solid {colors.neutrals.nLv4}",br:"50%",children:(0,r.jsx)(z.K,{id:i.id,name:i.name,w:"100%",h:"100%"})}),(0,r.jsxs)(b.az,{children:[(0,r.jsx)(k.H2,{textStyle:{base:"display.large",md:"display.extraLarge"},color:{base:"neutrals.nLv1",md:"onColor.primary"},children:(0,r.jsx)(E.c,{entity:i})}),(0,r.jsx)(b.az,{display:{base:"none",md:"block"},mt:"xs",children:(0,r.jsx)(k.EY,{textStyle:"display.medium",color:"onColor.secondary",children:(0,r.jsx)(n.A,{id:"referee"})})})]})]})})}var O=a(59721),R=a(55729),G=a(54409),D=a(54053),M=a(52695);let Q={yellowCardsPerGame:"yellow_cards_per_game",redCards:"red_cards",penalty:"football_penalties"};function V(e){let{statistics:t,setActiveKey:a,activeKey:i,isAscending:s,setIsAscending:o}=e;return(0,r.jsxs)(b.so,{h:"4xl",pl:"lg",pr:"2xs",align:"center",justify:"space-between",children:[(0,r.jsx)(k.EY,{textStyle:"assistive.default",children:(0,r.jsx)(n.A,{id:"competitions"})}),(0,r.jsx)(b.so,{children:t.map((e,l)=>{let c=i===e;return(0,r.jsxs)(b.so,{direction:"column",align:"center",onClick:()=>{c?o(e=>!e):(a(e),o(!0))},cursor:"pointer",children:[(0,r.jsxs)(b.so,{position:"relative",h:"lg",align:"center",style:{userSelect:"none"},children:[(0,r.jsx)(k.EY,{w:"[35px]",textAlign:"center",textStyle:"display.small",color:c?"primary.default":"neutrals.nLv4",display:"block",children:(0,r.jsx)(n.A,{id:Q[e]?"".concat(Q[e],"_short"):"".concat(e,"_short")})}),l!==t.length-1&&(0,r.jsx)(T.cG,{vertical:!0})]}),c&&(0,r.jsx)(G.Bfd,{fill:"primary.default",width:16,height:16,style:s?void 0:{transform:"rotate(180deg)"}})]},e)})})]})}let Y=["appearances","yellowCardsPerGame","redCards","penalty"],W=()=>{let[e,t]=(0,R.useState)(!1);return(0,r.jsxs)(b.az,{position:"relative",children:[(0,r.jsx)(G.G_L,{fill:"onSurface.nLv1",cursor:"pointer",onClickCapture:e=>{e.stopPropagation(),t(e=>!e)}}),(0,r.jsx)(D.A,{isOpen:e,setIsOpen:t,children:(0,r.jsx)(b.az,{px:"lg",pt:"lg",children:(0,r.jsxs)(b.so,{direction:"column",align:"center",children:[(0,r.jsx)(k.EY,{textStyle:"display.medium",color:"neutrals.nLv1",mb:"lg",display:"block",children:(0,r.jsx)(n.A,{id:"legend"})}),Y.map(e=>(0,r.jsxs)(b.az,{py:"xs",children:[(0,r.jsx)(k.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",textTransform:"uppercase",children:(0,r.jsx)(n.A,{id:Q[e]?"".concat(Q[e],"_short"):"".concat(e,"_short")})}),(0,r.jsxs)(k.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",children:[" - "," ",(0,r.jsx)(n.A,{id:Q[e]?"".concat(Q[e]):e})]})]},e))]})})})]})};function N(e){let{refereeStatistics:t}=e,[a,i]=(0,R.useState)(Y[0]),[s,n]=(0,R.useState)(!0),o=t.statistics.map(e=>({...e,yellowCardsPerGame:Math.round(e.yellowCards/e.appearances*10)/10,redCards:e.redCards+e.yellowRedCards})).sort((e,t)=>s?e[a]>=t[a]?-1:1:e[a](0,r.jsxs)(b.so,{h:"5xl",align:"center",justify:"space-between",pr:"2xs",children:[(0,r.jsx)(m.tQ,{tournament:e.uniqueTournament,style:{maxWidth:"calc(100% - 180px)"},children:(0,r.jsxs)(b.so,{px:"lg",align:"center",gap:"lg",children:[(0,r.jsx)(O.e,{id:e.uniqueTournament.id,size:40}),(0,r.jsx)(k.Ym,{textStyle:"body.medium",truncate:!0,children:(0,r.jsx)(M.O,{uniqueTournament:e.uniqueTournament})})]})}),(0,r.jsx)(b.so,{children:Y.map(t=>{let i=t===a,s="yellowCardsPerGame"===t?Math.round(e.yellowCards/e.appearances*10)/10:e[t];return(0,r.jsx)(k.EY,{color:i?"primary.default":"neutrals.nLv1",w:"[36px]",textAlign:"center",display:"block",children:s},t)})})]},e.uniqueTournament.id))})]})}function U(e){let{refereeDetails:t,refereeStatistics:a,id:i}=e;return(0,r.jsxs)(j.xA,{pb:"md",children:[(0,r.jsxs)(j.fv,{flexGrow:2,children:[(0,r.jsx)(F,{referee:t.referee}),(0,r.jsx)(P,{refereeDetails:t}),(0,r.jsx)(v.A,{entity:w.wNW.Referee,id:i})]}),(0,r.jsx)(j.fv,{flexGrow:1,children:a&&(0,r.jsx)(N,{refereeStatistics:a})})]})}var q=a(19451),H=a(96913),K=a(28132),X=a(19168),Z=a(30479);function J(e){let{refereeDetails:t,refereeStatistics:a}=e;return(0,r.jsx)(T.tU.Panel,{tabKey:K.H.Details,children:(0,r.jsxs)(L.BU,{children:[(0,r.jsx)(P,{refereeDetails:t}),a&&(0,r.jsx)(N,{refereeStatistics:a})]})})}var $=a(71024);let ee=a.n($)()(()=>a.e(5151).then(a.bind(a,45151)),{loadableGenerated:{webpack:()=>[45151]}});function et(e){let{id:t}=e;return(0,r.jsx)(T.tU.Panel,{tabKey:K.H.Matches,children:(0,r.jsx)(ee,{entity:w.wNW.Referee,id:t})})}function ea(e){let{refereeDetails:t,refereeStatistics:a,id:i}=e,[s,n]=(0,Z.Ay)({routeKey:q.xW.Referee,params:{slug:t.referee.slug,id:t.referee.id}}),o=[{tabKey:K.H.Details,item:"details"},{tabKey:K.H.Matches,item:"matches",values:{sport:(0,X.ap)(t.referee.sport.slug)}}];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(F,{referee:t.referee}),(0,r.jsxs)(H.A,{id:i,location:H.m.RefereePage,initialTabKey:(null==s?void 0:s.tab)||K.H.Details,customControls:[(null==s?void 0:s.tab)||K.H.Details,e=>n("tab",e)],tabs:o,children:[(0,r.jsx)(J,{refereeDetails:t,refereeStatistics:a}),(0,r.jsx)(et,{id:i})]})]})}function er(e){let t=(0,u.A)(),{id:a,slug:i,refereeDetails:w,meta:j}=e,v=w.referee.sport.slug,_=(0,f.z)(w.referee);return(0,r.jsxs)(h.an,{value:{meta:j},children:[(0,r.jsxs)(s(),{children:[(0,r.jsx)("link",{rel:"canonical",href:"https://www.sofascore.com".concat(g.z.getTranslatedCanonicalRoute(t,"referee",{id:a,slug:i}).route)}),(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,r.jsx)(y.Od,{referee:w.referee}),(0,r.jsx)(h.Ay,{metaKey:"referee",values:{referee:w.referee.name}}),(0,r.jsxs)(c.YW,{children:[(0,r.jsxs)(o.B,{children:[(0,r.jsx)(o.B.Item,{children:(0,r.jsx)(m.di,{translatedParams:{sport:v},children:(0,r.jsx)(x.o,{sportSlug:v})})}),(0,r.jsx)(o.B.Item,{children:(0,r.jsx)(n.A,{id:"referee"})}),(0,r.jsx)(o.B.Title,{children:j&&j.title||(0,r.jsx)(n.A,{id:"headerTitle.referee",values:{referee:_}})})]}),(0,r.jsxs)(l.MC.Provider,{value:{isShort:!0,location:p.y.MatchesSection},children:[(0,r.jsx)(d.$B,{children:(0,r.jsx)(ea,{...e})}),(0,r.jsx)(d.h6,{children:(0,r.jsx)(U,{...e})})]})]})]})}var ei=a(71937),es=a(25862);let en=ei.A.getInitialPageProps(e=>async t=>{let{req:a,res:r,query:i,...s}=t,n=a?a._originalUrl:s.asPath,o=g.z.getCurrentLocale(n),l="",c="";a&&(l=a.params.id,c=a.params.slug),i&&i.id&&i.slug&&(l=i.id,c=i.slug);let[d,p,u]=await Promise.allSettled([w.vg3.fetchRefereeDetails(+l),w.sdF.getEntityMeta(w.wNW.Referee,l,o),w.vg3.fetchRefereeStatistics(+l)]);try{if("rejected"===d.status)throw Error();let t=d.value,a=t.referee,i=a.sport.slug,s="fulfilled"===p.status?p.value.entityMeta:void 0,n="fulfilled"===u.status?u.value:void 0;if(-1===q.Hk.indexOf(i))throw Error("Unsupported sport");return r&&(a.slug!==c||a.id!==Number(l))&&(r.writeHead(301,{Location:g.z.getTranslatedRoute(o,"referee",{id:a.id,slug:a.slug}).route}),r.end()),e.dispatch((0,es.Vy)(i)),{id:a.id,refereeDetails:t,refereeStatistics:n,slug:c,meta:s}}catch(e){return r&&(r.statusCode=404),{error:{code:404}}}});var eo=a(65097);let el=e=>{let{error:t,...a}=e;return t?(0,r.jsx)(eo.default,{statusCode:t.code}):(0,r.jsx)(er,{...a})};el.getInitialProps=en;let ec=el}},e=>{var t=t=>e(e.s=t);e.O(0,[4092,8446,6591,395,4632,6618,2111,756,3797,2062,5938,1105,3338,3752,364,2905,9347,7256,1254,574,3231,9623,7717,323,5905,636,6593,8792],()=>t(10481)),_N_E=e.O()}]);