@golstats/gsc-game-data 1.0.254 → 1.0.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-67a56ee9-DJHnVsu6-6a21ea4b.js → FilterConditions-67a56ee9-DJHnVsu6-bbe3c93b.js} +1 -1
- package/dist/{FilterConditions-67a56ee9-d3cfee62.js → FilterConditions-67a56ee9-acc98bd2.js} +1 -1
- package/dist/{FilterField-1d2345af-DKrCxsxc-f7e6d376.js → FilterField-1d2345af-DKrCxsxc-8b035164.js} +1 -1
- package/dist/{FilterField-1d2345af-5b5eccfe.js → FilterField-1d2345af-ccf5a75c.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-801834ef.js → FilterSubcategories-92dfe0dc-22ea5b5b.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-kpy809mL-2094cbee.js → FilterSubcategories-92dfe0dc-kpy809mL-6ff187eb.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-e4563127.js → index-184760bb.js} +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div class="__title">${D}:</div>
|
|
32
32
|
<div class="__totals">${c}: ${g}</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}}}},getChartSeries(e,r){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);const g=D.homeTeam[this.homeTeamStatisticsType].totalPostGame+D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(g?D.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),i.dataTotal.push(D.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(g?D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),B.dataTotal.push(D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(i={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);let g,a,y,f;const n=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(g=D.homeTeam.accomplished.avgPostGame/n,y=D.homeTeam.accomplished.totalPostGame):(g=n?D.homeTeam[this.homeTeamStatisticsType].avgPostGame/n:0,y=D.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?D.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=D.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(a=D.visitingTeam.accomplished.avgPostGame/n,f=D.visitingTeam.accomplished.totalPostGame):(a=n?D.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/n:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?D.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalLive}i.data.push(Math.round(120*g)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,r="homeTeam"){return e.id==="3-0"&&(e[r].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[r].accomplished||0},showModal(e,r,i){const B=i===0?"homeTeam":"visitingTeam",D=e.config.arraySubcategories[r]||{};this.tooltip.isLeagueAvgVisible=D.id!=="3-0",this.tooltip.data=this.getSubcategoryData(D,B),this.tooltip.local=i===0,this.tooltip.names=D.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(D);const c=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=c,this.globals.y=g,this.tooltip.x=c,this.tooltip.y=g>700?g-250:g;const a=D.generalCategoriesIds.accomplished===3;if(a){const y=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?D[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,r){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(r===0)return i;const B=13;if(i.length>B){let D=i.split(" ");i=[];let c="",g="",a=D.slice(-1)[0];D.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(g.trim()),c=y),g=c,a===y&&i.push(g.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((r,i)=>r+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},$de=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),jde={class:"distribution"},Ude={class:"distribution__container"},Gde={class:"distribution__container__chart-type__title"},Hde=$de(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Wde={class:"distribution__container__chart-type__chart"};function qde(e,r,i,B,D,c){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",jde,[t.createElementVNode("div",Ude,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Gde,t.toDisplayString(a.name),1),Hde,t.createElementVNode("div",Wde,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:D.height,options:D.arrayChartOptions[y],series:D.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const Yde=$i(Vde,[["render",qde],["__scopeId","data-v-305d7521"]]),Xde=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ok={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},QB=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},eN=ok.setup;ok.setup=eN?(e,r)=>(QB(),eN(e,r)):QB;const Zde={key:0,class:"text-left"},Jde=["width","src"],Kde=["checked"],Qde=["width","src"],eue={key:3,class:"text-right"};function tue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Zde,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Jde)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,Kde),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,Qde)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",eue,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const aue=Xde(ok,[["render",tue],["__scopeId","data-v-e2a20444"]]),Zfa="",Jfa="",nue={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function rue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:r[0]||(r[0]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const tN=$i(nue,[["render",rue],["__scopeId","data-v-0cf5a19c"]]),Kfa="",iue={name:"SoccerChalkboardXg",components:{Tooltip:tN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,D));if(c){let g={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(g)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},qv=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),oue={class:"soccer-chalkboard-xg"},sue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},lue={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},cue=qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),due=["id"],uue=["fill"],hue=qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),pue=["id"],fue=["x1","y1","x2","y2","stroke"],mue=["x1","y1","x2","y2","stroke","marker-end"],gue=["onMouseover"],yue=["x","y","fill"],vue=["x","y"],_ue={class:"tooltip-data has-text-left"},bue={class:"bold"},xue={class:"tooltip-image"},wue={class:"tooltip-image"},kue=["src"],Cue={class:"tooltip-xg"},Sue={key:0},Tue=qv(()=>t.createElementVNode("span",null,"xGi:",-1)),Eue=qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Aue={key:1},Mue=qv(()=>t.createElementVNode("span",null,"xGf:",-1));function Iue(e,r,i,B,D,c){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",oue,[(t.openBlock(),t.createElementBlock("svg",sue,[(t.openBlock(),t.createElementBlock("svg",lue,[t.createElementVNode("defs",null,[cue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,uue)],8,due))),128)),hue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,fue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,mue),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,yue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,vue)],40,gue)],8,pue))),128))]))])),t.createVNode(g,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",_ue,[t.createElementVNode("div",null,[t.createElementVNode("span",bue,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",xue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",wue,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,kue)])]),t.createElementVNode("div",Cue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Sue,[Tue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Eue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Aue,[Mue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const aN=$i(iue,[["render",Iue],["__scopeId","data-v-d2d32849"]]),Dx=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],Qfa="",Pue={name:"XgLocal",components:{SoccerChalkboard:aN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},nN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),Bue={class:"xg-container"},Nue={class:"xg-container__info"},zue=nN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Oue={class:"table"},Fue={class:"table__row"},Lue={class:"table__row__title"},Due={class:"table__row__value"},Rue=["src"],Vue={class:"table__row"},$ue={class:"table__row__title"},jue={class:"table__row__value"},Uue={class:"table__row"},Gue={class:"table__row__title"},Hue={class:"table__row__value"},Wue=nN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),que={class:"xg-container__field"};function Yue(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Bue,[t.createElementVNode("div",Nue,[zue,t.createElementVNode("div",Oue,[t.createElementVNode("div",Fue,[t.createElementVNode("div",Lue,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Due,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Rue)])]),t.createElementVNode("div",Vue,[t.createElementVNode("div",$ue,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",jue,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Uue,[t.createElementVNode("div",Gue,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Hue,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Wue]),t.createElementVNode("div",que,[t.createVNode(g,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])])])}const Xue=$i(Pue,[["render",Yue],["__scopeId","data-v-a13ade42"]]),ema="",Zue={name:"XgAway",components:{SoccerChalkboard:aN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},rN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Jue={class:"xg-container"},Kue={class:"xg-container__info"},Que=rN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),ehe={class:"table"},the={class:"table__row"},ahe={class:"table__row__title"},nhe={class:"table__row__value"},rhe=["src"],ihe={class:"table__row"},ohe={class:"table__row__title"},she={class:"table__row__value"},lhe={class:"table__row"},che={class:"table__row__title"},dhe={class:"table__row__value"},uhe=rN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),hhe={class:"xg-container__field"};function phe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Jue,[t.createElementVNode("div",Kue,[Que,t.createElementVNode("div",ehe,[t.createElementVNode("div",the,[t.createElementVNode("div",ahe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",nhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,rhe)])]),t.createElementVNode("div",ihe,[t.createElementVNode("div",ohe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",she,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",lhe,[t.createElementVNode("div",che,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",dhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),uhe]),t.createElementVNode("div",hhe,[t.createVNode(g,{plays:e.playsAway,categories:D.categories,team:i.team},null,8,["plays","categories","team"])])])])}const fhe=$i(Zue,[["render",phe],["__scopeId","data-v-ddcacec9"]]),tma="",mhe={name:"SoccerChalkboardXgMobile",components:{Tooltip:tN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,D));if(c){let g={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(g)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Yv=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),ghe={class:"soccer-chalkboard-xg"},yhe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},vhe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},_he=Yv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),bhe=["id"],xhe=["fill"],whe=Yv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),khe=["id"],Che=["x1","y1","x2","y2","stroke"],She=["x1","y1","x2","y2","stroke","marker-end"],The=["onMouseover"],Ehe=["x","y","fill"],Ahe=["x","y"],Mhe={class:"tooltip-data has-text-left"},Ihe={class:"bold"},Phe={class:"tooltip-image"},Bhe={class:"tooltip-image"},Nhe=["src"],zhe={class:"tooltip-xg"},Ohe={key:0},Fhe=Yv(()=>t.createElementVNode("span",null,"xGi:",-1)),Lhe=Yv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Dhe={key:1},Rhe=Yv(()=>t.createElementVNode("span",null,"xGf:",-1));function Vhe(e,r,i,B,D,c){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",ghe,[(t.openBlock(),t.createElementBlock("svg",yhe,[(t.openBlock(),t.createElementBlock("svg",vhe,[t.createElementVNode("defs",null,[_he,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,xhe)],8,bhe))),128)),whe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Che),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,She),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Ehe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Ahe)],40,The)],8,khe))),128))]))])),t.createVNode(g,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Mhe,[t.createElementVNode("div",null,[t.createElementVNode("span",Ihe,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Phe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Bhe,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,Nhe)])]),t.createElementVNode("div",zhe,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Ohe,[Fhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Lhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Dhe,[Rhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const iN=$i(mhe,[["render",Vhe],["__scopeId","data-v-9bd26437"]]),ama="",$he={name:"Xg",components:{SoccerChalkboard:iN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},oN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),jhe={class:"xg-container"},Uhe=oN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ghe={class:"xg-container__field"},Hhe={class:"xg-container__info"},Whe={class:"table"},qhe={class:"table__row"},Yhe={class:"table__row__title"},Xhe={class:"table__row__value"},Zhe=["src"],Jhe={class:"table__row"},Khe={class:"table__row__title"},Qhe={class:"table__row__value"},epe={class:"table__row"},tpe={class:"table__row__title"},ape={class:"table__row__value"},npe=oN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function rpe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",jhe,[Uhe,t.createElementVNode("div",Ghe,[t.createVNode(g,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hhe,[t.createElementVNode("div",Whe,[t.createElementVNode("div",qhe,[t.createElementVNode("div",Yhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Xhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Zhe)])]),t.createElementVNode("div",Jhe,[t.createElementVNode("div",Khe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Qhe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",epe,[t.createElementVNode("div",tpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",ape,t.toDisplayString(c.gxInfoItems[2].value),1)])]),npe])])}const ipe=$i($he,[["render",rpe],["__scopeId","data-v-fe06617a"]]),nma="",ope={name:"Xg",components:{SoccerChalkboard:iN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},sN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),spe={class:"xg-container"},lpe=sN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),cpe={class:"xg-container__field"},dpe={class:"xg-container__info"},upe={class:"table"},hpe={class:"table__row"},ppe={class:"table__row__title"},fpe={class:"table__row__value"},mpe=["src"],gpe={class:"table__row"},ype={class:"table__row__title"},vpe={class:"table__row__value"},_pe={class:"table__row"},bpe={class:"table__row__title"},xpe={class:"table__row__value"},wpe=sN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function kpe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",spe,[lpe,t.createElementVNode("div",cpe,[t.createVNode(g,{plays:e.playsAway,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",dpe,[t.createElementVNode("div",upe,[t.createElementVNode("div",hpe,[t.createElementVNode("div",ppe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",fpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,mpe)])]),t.createElementVNode("div",gpe,[t.createElementVNode("div",ype,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",vpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",_pe,[t.createElementVNode("div",bpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",xpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),wpe])])}const Cpe=$i(ope,[["render",kpe],["__scopeId","data-v-e1c76ea1"]]),rma="";let lN=null;const Spe={name:"XgMain",components:{GSCSwitchRadio:aue,SoccerChalkboardLocal:Xue,SoccerChalkboardAway:fhe,SoccerChalkboardLocalMobile:ipe,SoccerChalkboardAwayMobile:Cpe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)lN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),lN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},Tpe={class:"xg",ref:"gamesContainer"},Epe={key:0,class:"selector-team"};function Ape(e,r,i,B,D,c){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),n=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",Tpe,[D.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Epe,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:D.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(n,{key:4})):t.createCommentVNode("",!0)],512)}const Mpe=$i(Spe,[["render",Ape],["__scopeId","data-v-12759086"]]),ima="",sk=e=>(t.pushScopeId("data-v-d177889b"),e=e(),t.popScopeId(),e),Ipe={class:"statistics-main"},Ppe={class:"statistics-main__header"},Bpe={class:"statistics-main__header__filter"},Npe={key:0,class:"statistics-main__header__live-switch"},zpe=sk(()=>t.createElementVNode("div",null,"Este partido",-1)),Ope=sk(()=>t.createElementVNode("div",null,"Acumulado",-1)),Fpe={class:"statistics-main__header__info"},Lpe=sk(()=>t.createElementVNode("br",null,null,-1)),Dpe=t.defineComponent({name:"StatisticsMain",components:{TrendLive:Vse,Comparative:Rde,Distribution:Yde,GSCSlider:Wv,XG:Mpe}}),Rpe=$i(Object.assign(Dpe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=ax(),D=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),n=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-u,m=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let S="";return x>0&&(S=x===1?x+" segundo":x+" segundos"),w>0&&(S=w===1?w+" minuto":w+" minutos"),b>0&&(S=b===1?b+" hora":b+" horas"),m>0&&(S=m===1?m+" día":m+" días"),S}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,u=>{const d={...u};i.game.is_live||R8(),p(d),n.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,u=>{B.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function p(u){try{c.value.gameId!==u.gameId&&(c.value=u,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:u}))}catch(d){throw new Error(d)}}function l(u){y.value=u}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(u){B.state.nextGeneral.usePastSeasonId&&(u.seasonId=B.state.nextGeneral.pastSeasonId),r("openmedia",u)}return t.onUnmounted(()=>{r("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(u,d)=>(t.openBlock(),t.createElementBlock("div",Ipe,[t.createElementVNode("div",Ppe,[t.createVNode(t.unref(Wv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(eB,t.mergeProps(D.value,{text:h.name,"is-active":y.value.id===h.id,onClick:m=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Bpe,[t.createVNode(Yoe)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",Npe,[zpe,t.createElementVNode("div",null,[t.createVNode(tB,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=h=>f.value=h)},null,8,["modelValue"])]),Ope],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",Fpe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),Lpe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:n.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-d177889b"]]);function cN(e,r){return function(){return e.apply(r,arguments)}}const{toString:Vpe}=Object.prototype,{getPrototypeOf:lk}=Object,Rx=(e=>r=>{const i=Vpe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tf=e=>(e=e.toLowerCase(),r=>Rx(r)===e),Vx=e=>r=>typeof r===e,{isArray:Zg}=Array,Xv=Vx("undefined");function $pe(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&Jh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dN=Tf("ArrayBuffer");function jpe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&dN(e.buffer),r}const Upe=Vx("string"),Jh=Vx("function"),uN=Vx("number"),$x=e=>e!==null&&typeof e=="object",Gpe=e=>e===!0||e===!1,jx=e=>{if(Rx(e)!=="object")return!1;const r=lk(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hpe=Tf("Date"),Wpe=Tf("File"),qpe=Tf("Blob"),Ype=Tf("FileList"),Xpe=e=>$x(e)&&Jh(e.pipe),Zpe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Jh(e.append)&&((r=Rx(e))==="formdata"||r==="object"&&Jh(e.toString)&&e.toString()==="[object FormData]"))},Jpe=Tf("URLSearchParams"),Kpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Zg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function hN(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const pN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fN=e=>!Xv(e)&&e!==pN;function ck(){const{caseless:e}=fN(this)&&this||{},r={},i=(B,D)=>{const c=e&&hN(r,D)||D;jx(r[c])&&jx(B)?r[c]=ck(r[c],B):jx(B)?r[c]=ck({},B):Zg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Zv(arguments[B],i);return r}const Qpe=(e,r,i,{allOwnKeys:B}={})=>(Zv(r,(D,c)=>{i&&Jh(D)?e[c]=cN(D,i):e[c]=D},{allOwnKeys:B}),e),efe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tfe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},afe=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&lk(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},nfe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},rfe=e=>{if(!e)return null;if(Zg(e))return e;let r=e.length;if(!uN(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},ife=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&lk(Uint8Array)),ofe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},sfe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},lfe=Tf("HTMLFormElement"),cfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),mN=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),dfe=Tf("RegExp"),gN=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},ufe=e=>{gN(e,(r,i)=>{if(Jh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Jh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},hfe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Zg(e)?B(e):B(String(e).split(r)),i},pfe=()=>{},ffe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),dk="abcdefghijklmnopqrstuvwxyz",yN="0123456789",vN={DIGIT:yN,ALPHA:dk,ALPHA_DIGIT:dk+dk.toUpperCase()+yN},mfe=(e=16,r=vN.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function gfe(e){return!!(e&&Jh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yfe=e=>{const r=new Array(10),i=(B,D)=>{if($x(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Zg(B)?[]:{};return Zv(B,(g,a)=>{const y=i(g,D+1);!Xv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},vfe=Tf("AsyncFunction"),_fe=e=>e&&($x(e)||Jh(e))&&Jh(e.then)&&Jh(e.catch),Er={isArray:Zg,isArrayBuffer:dN,isBuffer:$pe,isFormData:Zpe,isArrayBufferView:jpe,isString:Upe,isNumber:uN,isBoolean:Gpe,isObject:$x,isPlainObject:jx,isUndefined:Xv,isDate:Hpe,isFile:Wpe,isBlob:qpe,isRegExp:dfe,isFunction:Jh,isStream:Xpe,isURLSearchParams:Jpe,isTypedArray:ife,isFileList:Ype,forEach:Zv,merge:ck,extend:Qpe,trim:Kpe,stripBOM:efe,inherits:tfe,toFlatObject:afe,kindOf:Rx,kindOfTest:Tf,endsWith:nfe,toArray:rfe,forEachEntry:ofe,matchAll:sfe,isHTMLForm:lfe,hasOwnProperty:mN,hasOwnProp:mN,reduceDescriptors:gN,freezeMethods:ufe,toObjectSet:hfe,toCamelCase:cfe,noop:pfe,toFiniteNumber:ffe,findKey:hN,global:pN,isContextDefined:fN,ALPHABET:vN,generateString:mfe,isSpecCompliantForm:gfe,toJSONObject:yfe,isAsyncFn:vfe,isThenable:_fe};function Il(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Er.inherits(Il,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _N=Il.prototype,bN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bN[e]={value:e}}),Object.defineProperties(Il,bN),Object.defineProperty(_N,"isAxiosError",{value:!0}),Il.from=(e,r,i,B,D,c)=>{const g=Object.create(_N);return Er.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Il.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const bfe=null;function uk(e){return Er.isPlainObject(e)||Er.isArray(e)}function xN(e){return Er.endsWith(e,"[]")?e.slice(0,-2):e}function wN(e,r,i){return e?e.concat(r).map(function(B,D){return B=xN(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function xfe(e){return Er.isArray(e)&&!e.some(uk)}const wfe=Er.toFlatObject(Er,{},null,function(e){return/^is[A-Z]/.test(e)});function Ux(e,r,i){if(!Er.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Er.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Er.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Er.isSpecCompliantForm(r);if(!Er.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Er.isDate(p))return p.toISOString();if(!a&&Er.isBlob(p))throw new Il("Blob is not supported. Use a Buffer instead.");return Er.isArrayBuffer(p)||Er.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Er.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Er.isArray(p)&&xfe(p)||(Er.isFileList(p)||Er.endsWith(l,"[]"))&&(s=Er.toArray(p)))return l=xN(l),s.forEach(function(u,d){!(Er.isUndefined(u)||u===null)&&r.append(g===!0?wN([l],d,c):g===null?l:l+"[]",y(u))}),!1}return uk(p)?!0:(r.append(wN(o,l,c),y(p)),!1)}const n=[],v=Object.assign(wfe,{defaultVisitor:f,convertValue:y,isVisitable:uk});function _(p,l){if(!Er.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Er.forEach(p,function(o,s){(!(Er.isUndefined(o)||o===null)&&D.call(r,o,Er.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Er.isObject(e))throw new TypeError("data must be an object");return _(e),r}function kN(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function hk(e,r){this._pairs=[],e&&Ux(e,this,r)}const CN=hk.prototype;CN.append=function(e,r){this._pairs.push([e,r])},CN.toString=function(e){const r=e?function(i){return e.call(this,i,kN)}:kN;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function kfe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function SN(e,r,i){if(!r)return e;const B=i&&i.encode||kfe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Er.isURLSearchParams(r)?r.toString():new hk(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const TN=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Er.forEach(this.handlers,function(i){i!==null&&r(i)})}},EN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cfe=typeof URLSearchParams<"u"?URLSearchParams:hk,Sfe=typeof FormData<"u"?FormData:null,Tfe=typeof Blob<"u"?Blob:null,Efe={isBrowser:!0,classes:{URLSearchParams:Cfe,FormData:Sfe,Blob:Tfe},protocols:["http","https","file","blob","url","data"]},AN=typeof window<"u"&&typeof document<"u",Afe=(e=>AN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mfe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ife=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AN,hasStandardBrowserEnv:Afe,hasStandardBrowserWebWorkerEnv:Mfe},Symbol.toStringTag,{value:"Module"})),Ef={...Ife,...Efe};function Pfe(e,r){return Ux(e,new Ef.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ef.isNode&&Er.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function Bfe(e){return Er.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Nfe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function MN(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Er.isArray(D)?D.length:g,y?(Er.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Er.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Er.isArray(D[g])&&(D[g]=Nfe(D[g])),!a)}if(Er.isFormData(e)&&Er.isFunction(e.entries)){const i={};return Er.forEachEntry(e,(B,D)=>{r(Bfe(B),D,i,0)}),i}return null}function zfe(e,r,i){if(Er.isString(e))try{return(r||JSON.parse)(e),Er.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const pk={transitional:EN,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Er.isObject(e);if(D&&Er.isHTMLForm(e)&&(e=new FormData(e)),Er.isFormData(e))return B?JSON.stringify(MN(e)):e;if(Er.isArrayBuffer(e)||Er.isBuffer(e)||Er.isStream(e)||Er.isFile(e)||Er.isBlob(e))return e;if(Er.isArrayBufferView(e))return e.buffer;if(Er.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Pfe(e,this.formSerializer).toString();if((c=Er.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Ux(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),zfe(e)):e}],transformResponse:[function(e){const r=this.transitional||pk.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Er.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Il.from(c,Il.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ef.classes.FormData,Blob:Ef.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Er.forEach(["delete","get","head","post","put","patch"],e=>{pk.headers[e]={}});const fk=pk,Ofe=Er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ffe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
34
|
+
`}}}},getChartSeries(e,r){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);const g=D.homeTeam[this.homeTeamStatisticsType].totalPostGame+D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(g?D.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),i.dataTotal.push(D.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(g?D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),B.dataTotal.push(D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(i={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);let g,a,y,f;const n=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(g=D.homeTeam.accomplished.avgPostGame/n,y=D.homeTeam.accomplished.totalPostGame):(g=n?D.homeTeam[this.homeTeamStatisticsType].avgPostGame/n:0,y=D.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?D.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=D.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(a=D.visitingTeam.accomplished.avgPostGame/n,f=D.visitingTeam.accomplished.totalPostGame):(a=n?D.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/n:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?D.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalLive}i.data.push(Math.round(120*g)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,r="homeTeam"){return e.id==="3-0"&&(e[r].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[r].accomplished||0},showModal(e,r,i){const B=i===0?"homeTeam":"visitingTeam",D=e.config.arraySubcategories[r]||{};this.tooltip.isLeagueAvgVisible=D.id!=="3-0",this.tooltip.data=this.getSubcategoryData(D,B),this.tooltip.local=i===0,this.tooltip.names=D.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(D);const c=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=c,this.globals.y=g,this.tooltip.x=c,this.tooltip.y=g>700?g-250:g;const a=D.generalCategoriesIds.accomplished===3;if(a){const y=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?D[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,r){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(r===0)return i;const B=13;if(i.length>B){let D=i.split(" ");i=[];let c="",g="",a=D.slice(-1)[0];D.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(g.trim()),c=y),g=c,a===y&&i.push(g.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((r,i)=>r+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},$de=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),jde={class:"distribution"},Ude={class:"distribution__container"},Gde={class:"distribution__container__chart-type__title"},Hde=$de(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Wde={class:"distribution__container__chart-type__chart"};function qde(e,r,i,B,D,c){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",jde,[t.createElementVNode("div",Ude,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Gde,t.toDisplayString(a.name),1),Hde,t.createElementVNode("div",Wde,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:D.height,options:D.arrayChartOptions[y],series:D.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const Yde=$i(Vde,[["render",qde],["__scopeId","data-v-305d7521"]]),Xde=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ok={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},QB=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},eN=ok.setup;ok.setup=eN?(e,r)=>(QB(),eN(e,r)):QB;const Zde={key:0,class:"text-left"},Jde=["width","src"],Kde=["checked"],Qde=["width","src"],eue={key:3,class:"text-right"};function tue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Zde,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,Jde)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,Kde),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,Qde)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",eue,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const aue=Xde(ok,[["render",tue],["__scopeId","data-v-e2a20444"]]),Zfa="",Jfa="",nue={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{positionTooltip(){return{top:`${this.data.y}px`,left:`${this.data.x}px`}},showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){this.visible=!1}}};function rue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:r[0]||(r[0]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const tN=$i(nue,[["render",rue],["__scopeId","data-v-0cf5a19c"]]),Kfa="",iue={name:"SoccerChalkboardXg",components:{Tooltip:tN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,D));if(c){let g={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(g)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},qv=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),oue={class:"soccer-chalkboard-xg"},sue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},lue={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},cue=qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),due=["id"],uue=["fill"],hue=qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),pue=["id"],fue=["x1","y1","x2","y2","stroke"],mue=["x1","y1","x2","y2","stroke","marker-end"],gue=["onMouseover"],yue=["x","y","fill"],vue=["x","y"],_ue={class:"tooltip-data has-text-left"},bue={class:"bold"},xue={class:"tooltip-image"},wue={class:"tooltip-image"},kue=["src"],Cue={class:"tooltip-xg"},Sue={key:0},Tue=qv(()=>t.createElementVNode("span",null,"xGi:",-1)),Eue=qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Aue={key:1},Mue=qv(()=>t.createElementVNode("span",null,"xGf:",-1));function Iue(e,r,i,B,D,c){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",oue,[(t.openBlock(),t.createElementBlock("svg",sue,[(t.openBlock(),t.createElementBlock("svg",lue,[t.createElementVNode("defs",null,[cue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,uue)],8,due))),128)),hue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,fue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,mue),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,yue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,vue)],40,gue)],8,pue))),128))]))])),t.createVNode(g,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",_ue,[t.createElementVNode("div",null,[t.createElementVNode("span",bue,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",xue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",wue,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,kue)])]),t.createElementVNode("div",Cue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Sue,[Tue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Eue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Aue,[Mue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const aN=$i(iue,[["render",Iue],["__scopeId","data-v-d2d32849"]]),Dx=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:[12,55,35,54,510]}],Qfa="",Pue={name:"XgLocal",components:{SoccerChalkboard:aN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},nN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),Bue={class:"xg-container"},Nue={class:"xg-container__info"},zue=nN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Oue={class:"table"},Fue={class:"table__row"},Lue={class:"table__row__title"},Due={class:"table__row__value"},Rue=["src"],Vue={class:"table__row"},$ue={class:"table__row__title"},jue={class:"table__row__value"},Uue={class:"table__row"},Gue={class:"table__row__title"},Hue={class:"table__row__value"},Wue=nN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),que={class:"xg-container__field"};function Yue(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Bue,[t.createElementVNode("div",Nue,[zue,t.createElementVNode("div",Oue,[t.createElementVNode("div",Fue,[t.createElementVNode("div",Lue,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Due,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Rue)])]),t.createElementVNode("div",Vue,[t.createElementVNode("div",$ue,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",jue,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Uue,[t.createElementVNode("div",Gue,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Hue,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Wue]),t.createElementVNode("div",que,[t.createVNode(g,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])])])}const Xue=$i(Pue,[["render",Yue],["__scopeId","data-v-a13ade42"]]),ema="",Zue={name:"XgAway",components:{SoccerChalkboard:aN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},rN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Jue={class:"xg-container"},Kue={class:"xg-container__info"},Que=rN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),ehe={class:"table"},the={class:"table__row"},ahe={class:"table__row__title"},nhe={class:"table__row__value"},rhe=["src"],ihe={class:"table__row"},ohe={class:"table__row__title"},she={class:"table__row__value"},lhe={class:"table__row"},che={class:"table__row__title"},dhe={class:"table__row__value"},uhe=rN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),hhe={class:"xg-container__field"};function phe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Jue,[t.createElementVNode("div",Kue,[Que,t.createElementVNode("div",ehe,[t.createElementVNode("div",the,[t.createElementVNode("div",ahe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",nhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,rhe)])]),t.createElementVNode("div",ihe,[t.createElementVNode("div",ohe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",she,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",lhe,[t.createElementVNode("div",che,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",dhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),uhe]),t.createElementVNode("div",hhe,[t.createVNode(g,{plays:e.playsAway,categories:D.categories,team:i.team},null,8,["plays","categories","team"])])])])}const fhe=$i(Zue,[["render",phe],["__scopeId","data-v-ddcacec9"]]),tma="",mhe={name:"SoccerChalkboardXgMobile",components:{Tooltip:tN},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,D));if(c){let g={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(g)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Yv=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),ghe={class:"soccer-chalkboard-xg"},yhe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},vhe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},_he=Yv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),bhe=["id"],xhe=["fill"],whe=Yv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),khe=["id"],Che=["x1","y1","x2","y2","stroke"],She=["x1","y1","x2","y2","stroke","marker-end"],The=["onMouseover"],Ehe=["x","y","fill"],Ahe=["x","y"],Mhe={class:"tooltip-data has-text-left"},Ihe={class:"bold"},Phe={class:"tooltip-image"},Bhe={class:"tooltip-image"},Nhe=["src"],zhe={class:"tooltip-xg"},Ohe={key:0},Fhe=Yv(()=>t.createElementVNode("span",null,"xGi:",-1)),Lhe=Yv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Dhe={key:1},Rhe=Yv(()=>t.createElementVNode("span",null,"xGf:",-1));function Vhe(e,r,i,B,D,c){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",ghe,[(t.openBlock(),t.createElementBlock("svg",yhe,[(t.openBlock(),t.createElementBlock("svg",vhe,[t.createElementVNode("defs",null,[_he,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,xhe)],8,bhe))),128)),whe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Che),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,She),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Ehe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Ahe)],40,The)],8,khe))),128))]))])),t.createVNode(g,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Mhe,[t.createElementVNode("div",null,[t.createElementVNode("span",Ihe,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Phe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Bhe,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,Nhe)])]),t.createElementVNode("div",zhe,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Ohe,[Fhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Lhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Dhe,[Rhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const iN=$i(mhe,[["render",Vhe],["__scopeId","data-v-9bd26437"]]),ama="",$he={name:"Xg",components:{SoccerChalkboard:iN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},oN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),jhe={class:"xg-container"},Uhe=oN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ghe={class:"xg-container__field"},Hhe={class:"xg-container__info"},Whe={class:"table"},qhe={class:"table__row"},Yhe={class:"table__row__title"},Xhe={class:"table__row__value"},Zhe=["src"],Jhe={class:"table__row"},Khe={class:"table__row__title"},Qhe={class:"table__row__value"},epe={class:"table__row"},tpe={class:"table__row__title"},ape={class:"table__row__value"},npe=oN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function rpe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",jhe,[Uhe,t.createElementVNode("div",Ghe,[t.createVNode(g,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hhe,[t.createElementVNode("div",Whe,[t.createElementVNode("div",qhe,[t.createElementVNode("div",Yhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Xhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,Zhe)])]),t.createElementVNode("div",Jhe,[t.createElementVNode("div",Khe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Qhe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",epe,[t.createElementVNode("div",tpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",ape,t.toDisplayString(c.gxInfoItems[2].value),1)])]),npe])])}const ipe=$i($he,[["render",rpe],["__scopeId","data-v-fe06617a"]]),nma="",ope={name:"Xg",components:{SoccerChalkboard:iN},props:{},data(){return{categories:Dx}},computed:{...th("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...th("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Fm("general",["setVideoSrc","setVideoModalVisibility"]),...Fm("xgGeneral",["setTeamSelected"]),...ix("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},sN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),spe={class:"xg-container"},lpe=sN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),cpe={class:"xg-container__field"},dpe={class:"xg-container__info"},upe={class:"table"},hpe={class:"table__row"},ppe={class:"table__row__title"},fpe={class:"table__row__value"},mpe=["src"],gpe={class:"table__row"},ype={class:"table__row__title"},vpe={class:"table__row__value"},_pe={class:"table__row"},bpe={class:"table__row__title"},xpe={class:"table__row__value"},wpe=sN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function kpe(e,r,i,B,D,c){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",spe,[lpe,t.createElementVNode("div",cpe,[t.createVNode(g,{plays:e.playsAway,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",dpe,[t.createElementVNode("div",upe,[t.createElementVNode("div",hpe,[t.createElementVNode("div",ppe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",fpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,mpe)])]),t.createElementVNode("div",gpe,[t.createElementVNode("div",ype,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",vpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",_pe,[t.createElementVNode("div",bpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",xpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),wpe])])}const Cpe=$i(ope,[["render",kpe],["__scopeId","data-v-e1c76ea1"]]),rma="";let lN=null;const Spe={name:"XgMain",components:{GSCSwitchRadio:aue,SoccerChalkboardLocal:Xue,SoccerChalkboardAway:fhe,SoccerChalkboardLocalMobile:ipe,SoccerChalkboardAwayMobile:Cpe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)lN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),lN.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){this.teamSelect=this.homeTeam.colloquial_name,this.teamLocal=this.homeTeam.colloquial_name,setTimeout(()=>{this.setUpResizeObserver()},100)},updated(){this.teamSelect!=this.homeTeam.colloquial_name&&this.teamSelect!=this.visitingTeam.colloquial_name&&(this.teamSelect=this.homeTeam.colloquial_name,this.onChangeTeam(this.teamSelect))}},Tpe={class:"xg",ref:"gamesContainer"},Epe={key:0,class:"selector-team"};function Ape(e,r,i,B,D,c){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),n=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",Tpe,[D.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Epe,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:D.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(n,{key:4})):t.createCommentVNode("",!0)],512)}const Mpe=$i(Spe,[["render",Ape],["__scopeId","data-v-12759086"]]),ima="",sk=e=>(t.pushScopeId("data-v-e796837d"),e=e(),t.popScopeId(),e),Ipe={class:"statistics-main"},Ppe={class:"statistics-main__header"},Bpe={class:"statistics-main__header__filter"},Npe={key:0,class:"statistics-main__header__live-switch"},zpe=sk(()=>t.createElementVNode("div",null,"Este partido",-1)),Ope=sk(()=>t.createElementVNode("div",null,"Acumulado",-1)),Fpe={class:"statistics-main__header__info"},Lpe=sk(()=>t.createElementVNode("br",null,null,-1)),Dpe=t.defineComponent({name:"StatisticsMain",components:{TrendLive:Vse,Comparative:Rde,Distribution:Yde,GSCSlider:Wv,XG:Mpe}}),Rpe=$i(Object.assign(Dpe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=ax(),D=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),n=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-u,m=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let S="";return x>0&&(S=x===1?x+" segundo":x+" segundos"),w>0&&(S=w===1?w+" minuto":w+" minutos"),b>0&&(S=b===1?b+" hora":b+" horas"),m>0&&(S=m===1?m+" día":m+" días"),S}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,u=>{const d={...u};i.game.is_live||R8(),p(d),n.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,u=>{B.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function p(u){try{c.value.gameId!==u.gameId&&(c.value=u,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:u}))}catch(d){throw new Error(d)}}function l(u){y.value=u}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(u){B.state.nextGeneral.usePastSeasonId&&(u.seasonId=B.state.nextGeneral.pastSeasonId),u.avoidGameIdsToFilter=f.value,r("openmedia",u)}return t.onUnmounted(()=>{r("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(u,d)=>(t.openBlock(),t.createElementBlock("div",Ipe,[t.createElementVNode("div",Ppe,[t.createVNode(t.unref(Wv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(eB,t.mergeProps(D.value,{text:h.name,"is-active":y.value.id===h.id,onClick:m=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Bpe,[t.createVNode(Yoe)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",Npe,[zpe,t.createElementVNode("div",null,[t.createVNode(tB,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=h=>f.value=h)},null,8,["modelValue"])]),Ope],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",Fpe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),Lpe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:n.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-e796837d"]]);function cN(e,r){return function(){return e.apply(r,arguments)}}const{toString:Vpe}=Object.prototype,{getPrototypeOf:lk}=Object,Rx=(e=>r=>{const i=Vpe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tf=e=>(e=e.toLowerCase(),r=>Rx(r)===e),Vx=e=>r=>typeof r===e,{isArray:Zg}=Array,Xv=Vx("undefined");function $pe(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&Jh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dN=Tf("ArrayBuffer");function jpe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&dN(e.buffer),r}const Upe=Vx("string"),Jh=Vx("function"),uN=Vx("number"),$x=e=>e!==null&&typeof e=="object",Gpe=e=>e===!0||e===!1,jx=e=>{if(Rx(e)!=="object")return!1;const r=lk(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hpe=Tf("Date"),Wpe=Tf("File"),qpe=Tf("Blob"),Ype=Tf("FileList"),Xpe=e=>$x(e)&&Jh(e.pipe),Zpe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Jh(e.append)&&((r=Rx(e))==="formdata"||r==="object"&&Jh(e.toString)&&e.toString()==="[object FormData]"))},Jpe=Tf("URLSearchParams"),Kpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Zg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function hN(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const pN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fN=e=>!Xv(e)&&e!==pN;function ck(){const{caseless:e}=fN(this)&&this||{},r={},i=(B,D)=>{const c=e&&hN(r,D)||D;jx(r[c])&&jx(B)?r[c]=ck(r[c],B):jx(B)?r[c]=ck({},B):Zg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Zv(arguments[B],i);return r}const Qpe=(e,r,i,{allOwnKeys:B}={})=>(Zv(r,(D,c)=>{i&&Jh(D)?e[c]=cN(D,i):e[c]=D},{allOwnKeys:B}),e),efe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tfe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},afe=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&lk(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},nfe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},rfe=e=>{if(!e)return null;if(Zg(e))return e;let r=e.length;if(!uN(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},ife=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&lk(Uint8Array)),ofe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},sfe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},lfe=Tf("HTMLFormElement"),cfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),mN=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),dfe=Tf("RegExp"),gN=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},ufe=e=>{gN(e,(r,i)=>{if(Jh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Jh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},hfe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Zg(e)?B(e):B(String(e).split(r)),i},pfe=()=>{},ffe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),dk="abcdefghijklmnopqrstuvwxyz",yN="0123456789",vN={DIGIT:yN,ALPHA:dk,ALPHA_DIGIT:dk+dk.toUpperCase()+yN},mfe=(e=16,r=vN.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function gfe(e){return!!(e&&Jh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yfe=e=>{const r=new Array(10),i=(B,D)=>{if($x(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Zg(B)?[]:{};return Zv(B,(g,a)=>{const y=i(g,D+1);!Xv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},vfe=Tf("AsyncFunction"),_fe=e=>e&&($x(e)||Jh(e))&&Jh(e.then)&&Jh(e.catch),Er={isArray:Zg,isArrayBuffer:dN,isBuffer:$pe,isFormData:Zpe,isArrayBufferView:jpe,isString:Upe,isNumber:uN,isBoolean:Gpe,isObject:$x,isPlainObject:jx,isUndefined:Xv,isDate:Hpe,isFile:Wpe,isBlob:qpe,isRegExp:dfe,isFunction:Jh,isStream:Xpe,isURLSearchParams:Jpe,isTypedArray:ife,isFileList:Ype,forEach:Zv,merge:ck,extend:Qpe,trim:Kpe,stripBOM:efe,inherits:tfe,toFlatObject:afe,kindOf:Rx,kindOfTest:Tf,endsWith:nfe,toArray:rfe,forEachEntry:ofe,matchAll:sfe,isHTMLForm:lfe,hasOwnProperty:mN,hasOwnProp:mN,reduceDescriptors:gN,freezeMethods:ufe,toObjectSet:hfe,toCamelCase:cfe,noop:pfe,toFiniteNumber:ffe,findKey:hN,global:pN,isContextDefined:fN,ALPHABET:vN,generateString:mfe,isSpecCompliantForm:gfe,toJSONObject:yfe,isAsyncFn:vfe,isThenable:_fe};function Il(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Er.inherits(Il,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _N=Il.prototype,bN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bN[e]={value:e}}),Object.defineProperties(Il,bN),Object.defineProperty(_N,"isAxiosError",{value:!0}),Il.from=(e,r,i,B,D,c)=>{const g=Object.create(_N);return Er.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Il.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const bfe=null;function uk(e){return Er.isPlainObject(e)||Er.isArray(e)}function xN(e){return Er.endsWith(e,"[]")?e.slice(0,-2):e}function wN(e,r,i){return e?e.concat(r).map(function(B,D){return B=xN(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function xfe(e){return Er.isArray(e)&&!e.some(uk)}const wfe=Er.toFlatObject(Er,{},null,function(e){return/^is[A-Z]/.test(e)});function Ux(e,r,i){if(!Er.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Er.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Er.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Er.isSpecCompliantForm(r);if(!Er.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Er.isDate(p))return p.toISOString();if(!a&&Er.isBlob(p))throw new Il("Blob is not supported. Use a Buffer instead.");return Er.isArrayBuffer(p)||Er.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Er.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Er.isArray(p)&&xfe(p)||(Er.isFileList(p)||Er.endsWith(l,"[]"))&&(s=Er.toArray(p)))return l=xN(l),s.forEach(function(u,d){!(Er.isUndefined(u)||u===null)&&r.append(g===!0?wN([l],d,c):g===null?l:l+"[]",y(u))}),!1}return uk(p)?!0:(r.append(wN(o,l,c),y(p)),!1)}const n=[],v=Object.assign(wfe,{defaultVisitor:f,convertValue:y,isVisitable:uk});function _(p,l){if(!Er.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Er.forEach(p,function(o,s){(!(Er.isUndefined(o)||o===null)&&D.call(r,o,Er.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Er.isObject(e))throw new TypeError("data must be an object");return _(e),r}function kN(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function hk(e,r){this._pairs=[],e&&Ux(e,this,r)}const CN=hk.prototype;CN.append=function(e,r){this._pairs.push([e,r])},CN.toString=function(e){const r=e?function(i){return e.call(this,i,kN)}:kN;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function kfe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function SN(e,r,i){if(!r)return e;const B=i&&i.encode||kfe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Er.isURLSearchParams(r)?r.toString():new hk(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const TN=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Er.forEach(this.handlers,function(i){i!==null&&r(i)})}},EN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cfe=typeof URLSearchParams<"u"?URLSearchParams:hk,Sfe=typeof FormData<"u"?FormData:null,Tfe=typeof Blob<"u"?Blob:null,Efe={isBrowser:!0,classes:{URLSearchParams:Cfe,FormData:Sfe,Blob:Tfe},protocols:["http","https","file","blob","url","data"]},AN=typeof window<"u"&&typeof document<"u",Afe=(e=>AN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mfe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ife=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:AN,hasStandardBrowserEnv:Afe,hasStandardBrowserWebWorkerEnv:Mfe},Symbol.toStringTag,{value:"Module"})),Ef={...Ife,...Efe};function Pfe(e,r){return Ux(e,new Ef.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ef.isNode&&Er.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function Bfe(e){return Er.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Nfe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function MN(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Er.isArray(D)?D.length:g,y?(Er.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Er.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Er.isArray(D[g])&&(D[g]=Nfe(D[g])),!a)}if(Er.isFormData(e)&&Er.isFunction(e.entries)){const i={};return Er.forEachEntry(e,(B,D)=>{r(Bfe(B),D,i,0)}),i}return null}function zfe(e,r,i){if(Er.isString(e))try{return(r||JSON.parse)(e),Er.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const pk={transitional:EN,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Er.isObject(e);if(D&&Er.isHTMLForm(e)&&(e=new FormData(e)),Er.isFormData(e))return B?JSON.stringify(MN(e)):e;if(Er.isArrayBuffer(e)||Er.isBuffer(e)||Er.isStream(e)||Er.isFile(e)||Er.isBlob(e))return e;if(Er.isArrayBufferView(e))return e.buffer;if(Er.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Pfe(e,this.formSerializer).toString();if((c=Er.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Ux(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),zfe(e)):e}],transformResponse:[function(e){const r=this.transitional||pk.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Er.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Il.from(c,Il.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ef.classes.FormData,Blob:Ef.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Er.forEach(["delete","get","head","post","put","patch"],e=>{pk.headers[e]={}});const fk=pk,Ofe=Er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ffe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
35
35
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&Ofe[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},IN=Symbol("internals");function Jv(e){return e&&String(e).trim().toLowerCase()}function Gx(e){return e===!1||e==null?e:Er.isArray(e)?e.map(Gx):String(e)}function Lfe(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const Dfe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mk(e,r,i,B,D){if(Er.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Er.isString(r)){if(Er.isString(B))return r.indexOf(B)!==-1;if(Er.isRegExp(B))return B.test(r)}}function Rfe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function Vfe(e,r){const i=Er.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}let Hx=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=Jv(y);if(!n)throw new Error("header name must be a non-empty string");const v=Er.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=Gx(a))}const g=(a,y)=>Er.forEach(a,(f,n)=>c(f,n,y));return Er.isPlainObject(r)||r instanceof this.constructor?g(r,i):Er.isString(r)&&(r=r.trim())&&!Dfe(r)?g(Ffe(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=Jv(r),r){const B=Er.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return Lfe(D);if(Er.isFunction(i))return i.call(this,D,B);if(Er.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=Jv(r),r){const B=Er.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||mk(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=Jv(g),g){const a=Er.findKey(B,g);a&&(!i||mk(B,B[a],a,i))&&(delete B[a],D=!0)}}return Er.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||mk(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Er.forEach(this,(D,c)=>{const g=Er.findKey(B,c);if(g){i[g]=Gx(D),delete i[c];return}const a=r?Rfe(c):String(c).trim();a!==c&&delete i[c],i[a]=Gx(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Er.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Er.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
36
36
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[IN]=this[IN]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=Jv(c);i[g]||(Vfe(B,c),i[g]=!0)}return Er.isArray(r)?r.forEach(D):D(r),this}};Hx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Er.reduceDescriptors(Hx.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Er.freezeMethods(Hx);const em=Hx;function gk(e,r){const i=this||fk,B=r||i,D=em.from(B.headers);let c=B.data;return Er.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function PN(e){return!!(e&&e.__CANCEL__)}function Kv(e,r,i){Il.call(this,e??"canceled",Il.ERR_CANCELED,r,i),this.name="CanceledError"}Er.inherits(Kv,Il,{__CANCEL__:!0});function $fe(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Il("Request failed with status code "+i.status,[Il.ERR_BAD_REQUEST,Il.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const jfe=Ef.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];Er.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),Er.isString(B)&&g.push("path="+B),Er.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ufe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gfe(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function BN(e,r){return e&&!Ufe(r)?Gfe(e,r):r}const Hfe=Ef.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Er.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function Wfe(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function qfe(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function NN(e,r){let i=0;const B=qfe(50,250);return D=>{const c=D.loaded,g=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=g;i=c;const n={loaded:c,total:g,progress:g?c/g:void 0,bytes:a,rate:y||void 0,estimated:y&&g&&f?(g-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const Yfe=typeof XMLHttpRequest<"u",Xfe=Yfe&&function(e){return new Promise(function(r,i){let B=e.data;const D=em.from(e.headers).normalize();let{responseType:c,withXSRFToken:g}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Er.isFormData(B)){if(Ef.hasStandardBrowserEnv||Ef.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=BN(e.baseURL,e.url);n.open(e.method.toUpperCase(),SN(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=em.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};$fe(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Il("Request aborted",Il.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Il("Network Error",Il.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||EN;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Il(l,o.clarifyTimeoutError?Il.ETIMEDOUT:Il.ECONNABORTED,e,n)),n=null},Ef.hasStandardBrowserEnv&&(g&&Er.isFunction(g)&&(g=g(e)),g||g!==!1&&Hfe(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&jfe.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Er.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Er.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",NN(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",NN(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new Kv(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=Wfe(v);if(p&&Ef.protocols.indexOf(p)===-1){i(new Il("Unsupported protocol "+p+":",Il.ERR_BAD_REQUEST,e));return}n.send(B||null)})},yk={http:bfe,xhr:Xfe};Er.forEach(yk,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const zN=e=>`- ${e}`,Zfe=e=>Er.isFunction(e)||e===null||e===!1,ON={getAdapter:e=>{e=Er.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!Zfe(i)&&(B=yk[(g=String(i)).toLowerCase()],B===void 0))throw new Il(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
37
37
|
`+c.map(zN).join(`
|
|
@@ -4159,7 +4159,7 @@ uniform ${Ge} ${qe} u_${at};
|
|
|
4159
4159
|
* Vue 3 Carousel 0.3.1
|
|
4160
4160
|
* (c) 2023
|
|
4161
4161
|
* @license MIT
|
|
4162
|
-
*/const Tu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"7270acad":e.borderRadius,"6f55fe4b":e.borderWidth,"6e3effe8":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-43d490e8"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:" Liga MX "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:" Liga MX "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-43d490e8"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const eba="",GOt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(i=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(i||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-ca87117f"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.is_live||i.game.status===1||i.game.status===0?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-ca87117f"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
4162
|
+
*/const Tu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"7270acad":e.borderRadius,"6f55fe4b":e.borderWidth,"6e3effe8":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-43d490e8"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:" Liga MX "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:" Liga MX "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-43d490e8"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const eba="",GOt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(i=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(i||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e==="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.avoidGameIdsToFilter=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-ea99e9e2"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.is_live||i.game.status===1||i.game.status===0?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-ea99e9e2"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
4163
4163
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&kLt[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},lY=Symbol("internals");function N_(e){return e&&String(e).trim().toLowerCase()}function D4(e){return e===!1||e==null?e:vr.isArray(e)?e.map(D4):String(e)}function SLt(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const TLt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pA(e,r,i,B,D){if(vr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!vr.isString(r)){if(vr.isString(B))return r.indexOf(B)!==-1;if(vr.isRegExp(B))return B.test(r)}}function ELt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function ALt(e,r){const i=vr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}class lh{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=N_(y);if(!n)throw new Error("header name must be a non-empty string");const v=vr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=D4(a))}const g=(a,y)=>vr.forEach(a,(f,n)=>c(f,n,y));if(vr.isPlainObject(r)||r instanceof this.constructor)g(r,i);else if(vr.isString(r)&&(r=r.trim())&&!TLt(r))g(CLt(r),i);else if(vr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return SLt(D);if(vr.isFunction(i))return i.call(this,D,B);if(vr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||pA(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=N_(g),g){const a=vr.findKey(B,g);a&&(!i||pA(B,B[a],a,i))&&(delete B[a],D=!0)}}return vr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||pA(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return vr.forEach(this,(D,c)=>{const g=vr.findKey(B,c);if(g){i[g]=D4(D),delete i[c];return}const a=r?ELt(c):String(c).trim();a!==c&&delete i[c],i[a]=D4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return vr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&vr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
4164
4164
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[lY]=this[lY]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=N_(c);i[g]||(ALt(B,c),i[g]=!0)}return vr.isArray(r)?r.forEach(D):D(r),this}}lh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vr.reduceDescriptors(lh.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),vr.freezeMethods(lh);function fA(e,r){const i=this||B_,B=r||i,D=lh.from(B.headers);let c=B.data;return vr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function cY(e){return!!(e&&e.__CANCEL__)}function Ky(e,r,i){ns.call(this,e??"canceled",ns.ERR_CANCELED,r,i),this.name="CanceledError"}vr.inherits(Ky,ns,{__CANCEL__:!0});function dY(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new ns("Request failed with status code "+i.status,[ns.ERR_BAD_REQUEST,ns.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function MLt(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function ILt(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function PLt(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const R4=(e,r,i=3)=>{let B=0;const D=ILt(50,250);return PLt(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},uY=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},hY=e=>(...r)=>vr.asap(()=>e(...r)),BLt=Ph.hasStandardBrowserEnv?function(){const e=Ph.navigator&&/(msie|trident)/i.test(Ph.navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=vr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),NLt=Ph.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];vr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),vr.isString(B)&&g.push("path="+B),vr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zLt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OLt(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function pY(e,r){return e&&!zLt(r)?OLt(e,r):r}const fY=e=>e instanceof lh?{...e}:e;function A1(e,r){r=r||{};const i={};function B(f,n,v){return vr.isPlainObject(f)&&vr.isPlainObject(n)?vr.merge.call({caseless:v},f,n):vr.isPlainObject(n)?vr.merge({},n):vr.isArray(n)?n.slice():n}function D(f,n,v){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!vr.isUndefined(n))return B(void 0,n)}function g(f,n){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(fY(f),fY(n),!0)};return vr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);vr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const mY=e=>{const r=A1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=lh.from(g),r.url=rY(pY(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(vr.isFormData(i)){if(Ph.hasStandardBrowserEnv||Ph.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(Ph.hasStandardBrowserEnv&&(B&&vr.isFunction(B)&&(B=B(r)),B||B!==!1&&BLt(r.url))){const f=D&&c&&NLt.read(c);f&&g.set(D,f)}return r},FLt=typeof XMLHttpRequest<"u",LLt=FLt&&function(e){return new Promise(function(r,i){const B=mY(e);let D=B.data;const c=lh.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=lh.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};dY(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new ns("Request aborted",ns.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new ns("Network Error",ns.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||oY;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new ns(d,h.clarifyTimeoutError?ns.ETIMEDOUT:ns.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&vr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),vr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=R4(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=R4(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new Ky(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=MLt(B.url);if(u&&Ph.protocols.indexOf(u)===-1){i(new ns("Unsupported protocol "+u+":",ns.ERR_BAD_REQUEST,e));return}o.send(D||null)})},DLt=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof ns?f:new Ky(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new ns(`timeout ${r} of ms exceeded`,ns.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},RLt=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},VLt=async function*(e,r,i){for await(const B of e)yield*RLt(ArrayBuffer.isView(B)?B:await i(String(B)),r)},gY=(e,r,i,B,D)=>{const c=VLt(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},V4=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yY=V4&&typeof ReadableStream=="function",mA=V4&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vY=(e,...r)=>{try{return!!e(...r)}catch{return!1}},$Lt=yY&&vY(()=>{let e=!1;const r=new Request(Ph.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),_Y=64*1024,gA=yY&&vY(()=>vr.isReadableStream(new Response("").body)),$4={stream:gA&&(e=>e.body)};V4&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!$4[r]&&($4[r]=vr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new ns(`Response type '${r}' is not supported`,ns.ERR_NOT_SUPPORT,B)})})})(new Response);const jLt=async e=>{if(e==null)return 0;if(vr.isBlob(e))return e.size;if(vr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(vr.isArrayBufferView(e)||vr.isArrayBuffer(e))return e.byteLength;if(vr.isURLSearchParams(e)&&(e=e+""),vr.isString(e))return(await mA(e)).byteLength},ULt=async(e,r)=>vr.toFiniteNumber(e.getContentLength())??jLt(r),GLt=V4&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=mY(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?DLt([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&$Lt&&i!=="get"&&i!=="head"&&(d=await ULt(n,B))!==0){let x=new Request(r,{method:"POST",body:B,duplex:"half"}),S;if(vr.isFormData(B)&&(S=x.headers.get("content-type"))&&n.setContentType(S),x.body){const[C,T]=uY(d,R4(hY(y)));B=gY(x.body,_Y,C,T,mA)}}vr.isString(v)||(v=v?"include":"omit");const h="credentials"in Request.prototype;s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:h?v:void 0});let m=await fetch(s);const b=gA&&(f==="stream"||f==="response");if(gA&&(a||b)){const x={};["status","statusText","headers"].forEach(k=>{x[k]=m[k]});const S=vr.toFiniteNumber(m.headers.get("content-length")),[C,T]=a&&uY(S,R4(hY(a),!0))||[];m=new Response(gY(m.body,_Y,C,()=>{T&&T(),b&&u()},mA),x)}f=f||"text";let w=await $4[vr.findKey($4,f)||"text"](m,e);return!b&&u(),l&&l(),await new Promise((x,S)=>{dY(x,S,{data:w,headers:lh.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new ns("Network Error",ns.ERR_NETWORK,e,s),{cause:h.cause||h}):ns.from(h,h&&h.code,e,s)}}),yA={http:sLt,xhr:LLt,fetch:GLt};vr.forEach(yA,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const bY=e=>`- ${e}`,HLt=e=>vr.isFunction(e)||e===null||e===!1,xY={getAdapter:e=>{e=vr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!HLt(i)&&(B=yA[(g=String(i)).toLowerCase()],B===void 0))throw new ns(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
4165
4165
|
`+c.map(bY).join(`
|
|
@@ -7624,4 +7624,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7624
7624
|
* vuex v4.0.2
|
|
7625
7625
|
* (c) 2021 Evan You
|
|
7626
7626
|
* @license MIT
|
|
7627
|
-
*/var Oda="store";function L1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function lJ(e){return e!==null&&typeof e=="object"}function Fda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Lda(e,r){return function(){return e(r)}}function cJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function dJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;x6(e,i,[],e._modules.root,!0),MM(e,i,r)}function MM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};L1(D,function(g,a){c[a]=Lda(g,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&jda(e),B&&i&&e._withCommit(function(){B.data=null})}function x6(e,r,i,B,D){var c=!i.length,g=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=B),!c&&!D){var a=IM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Dda(e,g,i);B.forEachMutation(function(n,v){var _=g+v;Rda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:g+v,p=n.handler||n;Vda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=g+v;$da(e,_,n,f)}),B.forEachChild(function(n,v){x6(e,r,i.concat(v),n,D)})}function Dda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return uJ(e,r)}},state:{get:function(){return IM(e.state,i)}}}),D}function uJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Rda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Vda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var g=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Fda(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function $da(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function jda(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function IM(e,r){return r.reduce(function(i,B){return i[B]},e)}function w6(e,r,i){return lJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var Uda="vuex bindings",hJ="vuex:mutations",PM="vuex:actions",cv="vuex",Gda=0;function Hda(e,r){zda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Uda]},function(i){i.addTimelineLayer({id:hJ,label:"Vuex Mutations",color:pJ}),i.addTimelineLayer({id:PM,label:"Vuex Actions",color:pJ}),i.addInspector({id:cv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===cv)if(B.filter){var D=[];yJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[gJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId;uJ(r,D),B.state=Yda(Zda(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(cv),i.sendInspectorState(cv),i.addTimelineEvent({layerId:hJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=Gda++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},g=Date.now()-B._time;c.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var pJ=8702998,Wda=6710886,qda=16777215,fJ={label:"namespaced",textColor:qda,backgroundColor:Wda};function mJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function gJ(e,r){return{id:r||"root",label:mJ(r),tags:e.namespaced?[fJ]:[],children:Object.keys(e._children).map(function(i){return gJ(e._children[i],r+i+"/")})}}function yJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[fJ]:[]}),Object.keys(r._children).forEach(function(D){yJ(e,r._children[D],i,B+D+"/")})}function Yda(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(B.length){var c=Xda(r);D.getters=Object.keys(c).map(function(g){return{key:g.endsWith("/")?mJ(g):g,editable:!1,value:BM(function(){return c[g]})}})}return D}function Xda(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(g){D[g]||(D[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),D=D[g]._custom.value}),D[c]=BM(function(){return e[i]})}else r[i]=BM(function(){return e[i]})}),r}function Zda(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var g=B[D];if(!g)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?g:g._children},r==="root"?e:e.root._children)}function BM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},vJ={namespaced:{configurable:!0}};vJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){L1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&L1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&L1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&L1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,vJ);var D1=function(e){this.register([],e,!1)};D1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},D1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},D1.prototype.update=function(e){_J([],this.root,e)},D1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&wJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&L1(r.modules,function(g,a){B.register(e.concat(a),g,i)})},D1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},D1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function _J(e,r,i){if(process.env.NODE_ENV!=="production"&&wJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}_J(e.concat(B),r.getChild(B),i.modules[B])}}var bJ={assert:function(e){return typeof e=="function"},expected:"function"},Jda={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},xJ={getters:bJ,mutations:bJ,actions:Jda};function wJ(e,r){Object.keys(xJ).forEach(function(i){if(r[i]){var B=xJ[i];L1(r[i],function(D,c){hf(B.assert(D),Kda(e,i,c,D,B.expected))})}})}function Kda(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var zh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var g=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(g,v,_)},this.commit=function(v,_,p){return f.call(g,v,_,p)},this.strict=D;var n=this._modules.root.state;x6(this,n,[],this._modules.root),MM(this,n),B.forEach(function(v){return v(i)})},NM={state:{configurable:!0}};zh.prototype.install=function(e,r){e.provide(r||Oda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Hda(e,this)},NM.state.get=function(){return this._state.data},NM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},zh.prototype.commit=function(e,r,i){var B=this,D=w6(e,r,i),c=D.type,g=D.payload,a=D.options,y={type:c,payload:g},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},zh.prototype.dispatch=function(e,r){var i=this,B=w6(e,r),D=B.type,c=B.payload,g={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(g,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},zh.prototype.subscribe=function(e,r){return cJ(e,this._subscribers,r)},zh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return cJ(i,this._actionSubscribers,r)},zh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},zh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},zh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),x6(this,this.state,e,this._modules.get(e),i.preserveState),MM(this,this.state)},zh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=IM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),dJ(this)},zh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},zh.prototype.hotUpdate=function(e){this._modules.update(e),dJ(this,!0)},zh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(zh.prototype,NM);var Qda=tua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!kJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),eua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var y=this.$store.commit;if(e){var f=aua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(g)):y.apply(this.$store,[c].concat(g))}}),i});function eua(e){return kJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function kJ(e){return Array.isArray(e)||lJ(e)}function tua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function aua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const nua="/icn-play.svg",rua="/icn-tiros-de-esquina.svg",iua="/icn-tiro-a-porteria.svg",oua="/icn-cambio.svg",sua="/icn-falta.svg",lua="/atajada.svg",cua="/fuera-de-lugar.svg",zM="/gol.svg",dua="/var.png",uua="/tiempo-agregado.svg",hua="/jugada-peligrosa.svg",pua="/penal-marcado.svg",fua="/penal-fallado.svg",mua="/inicia-el-partido.svg",gua="/fin-del-partido.svg",yua="/icn-tarjeta-amarilla.svg",vua="/icn-tarjeta-roja.svg",_ua=[1,2,3,4,6],bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return EM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):EM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):EM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Tda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_ua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qda("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},xua=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),wua={class:"time-line-event__details"},kua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Cua=["src"],Sua=xua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Tua={class:"time-line-event__details__info"},Eua={key:0,class:"time-line-event__details__info__header__players"},Aua={class:"time-line-event__details__info__header__players__div-img"},Mua=["src"],Iua={class:"time-line-event__details__info__body"},Pua={class:"time-line-event__details__info__body__comment"},Bua={class:"time-line-event__minute__container"},Nua={class:"time-line-event__minute__container__text"},zua={class:"time-line-event__minute__container__icon-container"},Oua={class:"time-line-event__minute__container__icon-container__icon"},Fua={key:0,src:rua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lua={key:1,src:iua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dua={key:2,src:oua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rua={key:3,src:sua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Vua={key:4,src:lua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$ua={key:5,src:cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jua={key:6,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Uua={key:7,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Gua={key:8,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Hua={key:9,src:dua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Wua={key:10,src:uua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qua={key:11,src:hua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yua={key:12,src:pua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:13,src:fua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:14,src:mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:15,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kua={key:16,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:17,src:vua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function tha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",wua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",kua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Cua)]),Sua])):t.createCommentVNode("",!0),t.createElementVNode("div",Tua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Eua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Aua,[t.createElementVNode("img",{src:g,alt:""},null,8,Mua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:nua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",Iua,[t.createElementVNode("div",Pua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Bua,[t.createElementVNode("div",Nua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",zua,[t.createElementVNode("div",Oua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Fua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Lua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Dua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Rua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Vua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$ua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",jua)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Uua)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Gua)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Hua)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Wua)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",qua)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Qua)):(t.openBlock(),t.createElementBlock("img",eha))])])])],2)],6)}const aha=q_(bua,[["render",tha],["__scopeId","data-v-9943063a"]]),nha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},rha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let k6=null;const iha={name:"TimeLine",components:{Tooltip:wda,TimeLineEvent:aha},mixins:[Cda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":nha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await rJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)k6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),k6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=rha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Sda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){k6&&k6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},CJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oha={ref:"timeLine",class:"time-line"},sha={class:"time-line__header"},lha={class:"time-line__header__dot"},cha={class:"time-line__header__dot__home-team team-logo"},dha=["src"],uha={class:"time-line__header__dot__away-team team-logo"},hha=["src"],pha={key:1,class:"start-line"},fha=CJ(()=>t.createElementVNode("div",null,null,-1)),mha=CJ(()=>t.createElementVNode("div",null,null,-1)),gha=[fha,mha],yha={key:1,class:"noEventText"},vha={class:"tooltip-data"},_ha=["src"];function bha(e,r,i,B,D,c){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oha,[t.createElementVNode("div",sha,[t.createElementVNode("div",lha,[t.createElementVNode("div",cha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,dha)]),t.createElementVNode("div",uha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,hha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(g,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",pha,gha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",vha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,_ha)])])]),_:1},8,["data"])],64)}const xha=q_(iha,[["render",bha],["__scopeId","data-v-2574e576"]]),wha={class:"game-time-line__options"},kha={class:"game-time-line__timeline"},Cha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){rJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),g=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){g.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",wha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(aca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kha,[t.createVNode(xha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Sha=q_(Cha,[["__scopeId","data-v-f42d0c90"]]),e3a="",Tha={class:"game-data__header"},Eha={class:"game-data__header__tournament-season-dropdown"},Aha={class:"game-data__header__teams-carousel"},Mha={class:"game-data__body"},Iha={class:"game-data__body__menu"},Pha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Bha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Rpe,GSCGameTimeLine:Sha,GscSwitchComponent:iA,GSCLineupsMain:s8e,GSCDatosGSMain:EIe,GSCVideoGame:OUe,ModalEvents:IR,GSCSummaryMain:N2t,GSCTacticaFijaMain:eca,GSCProminentMain:$Bt,GSCComparative:xFt}}),Nha=$i(Object.assign(Bha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:r}){const i=e,B=ax();Xh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,u=12e4,d=12e4,h=12e4,m=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return g.value&&g.value.id&&(xe.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){m.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const be=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),xe});t.watch(()=>be,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(g.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),(y.value.is_live||y.value.game_status===0)&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Be(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){g.value.id!==xe.id&&(g.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?KP():QP()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Tha,[t.withDirectives(t.createElementVNode("div",Eha,[t.createVNode(t.unref(KM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(tI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Aha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(IR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Mha,[t.createElementVNode("div",Iha,[t.createElementVNode("div",Pha,[t.createVNode(t.unref(iA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),be.value&&be.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:be.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:g.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Be,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-5c237f88"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function SJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return SJ({seasonId:e},!1);throw new Error(i)}}async function zha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function Oha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Fha(e,r,i,B,D,c,g=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(g||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function TJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function EJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Lha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Dha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Rha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Vha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let OM=null;function AJ(){return OM||(OM=qg(Vha)),OM}async function $ha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function MJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function jha(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function Uha(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const Gha={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Fha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],AJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),g=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(g)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,g=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(g=a,D=B);return c[g]?c[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await SJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await EJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await $ha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function Hha({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const Wha=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let FM=null;function qha(){return FM||(FM=qg(Wha)),FM}class C6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,g,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,g,"accomplished",y)}setTeamRanking(r,i,B,D,c,g,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[g].ranking=v+1,this[g].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,g,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new C6);Vc(this,"visitingTeam",new C6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,g]of Object.entries(this.generalCategoriesIds))r===g&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===g&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(g=>{this.isAccomplishedPlay(g[D.categoryId])?this[r].increaseAccomplishedByOne(g[D.section],g[D.total]):this.isReceivedPlay(g[D.categoryId])&&this[r].increaseReceivedByOne(g[D.section],g[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,g=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,g=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.visitingTeamType)}resetData(){this.homeTeam=new C6,this.visitingTeam=new C6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const Yha={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Xha=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Zha=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let LM=null;function Jha(){return LM||(LM=qg(Zha)),LM}const Kha=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let DM=null;function Qha(){return DM||(DM=qg(Kha)),DM}function S6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function IJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function RM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const epa=JP(),tpa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],apa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:AJ(),indexesTSP:qha(),indexesLS:Jha(),indexesTLP:Qha(),nextGamesDataStructure:Yha,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(r=>r.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return Xha.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return TJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return TJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&coe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],g=D.home_team===i.team_id;B.push({playingAs:g?1:2,matchResult:c===0?3:g?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=rB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=S6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(rse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=S6(B,e.indexesTLP,e.categoriesMap),a=RM(B,g,e.indexesTLP),y=S6(r,e.indexesTLP,e.categoriesMap),f=RM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=S6(B,e.indexesTLP,e.categoriesMap),g=RM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),g&&y.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))B.push(g);r.rankingData.forEach(c=>{for(const g of B)if(g.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(g.id)?D.get(g.id).push(c):D.set(g.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=IJ(r)},setVisitingGames(e,r){e.visitingGames=IJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const g=await Uha({gameId:r.gameId});if(g){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(i=g.data.data.filter(a=>a[1]==r.homeTeam),B=g.data.data.filter(a=>a[1]==r.awayTeam),D=g.data.games,c=g.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:g,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(Hha(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Rha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:g}=await Lha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=tpa.find(y=>y.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await EJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await jha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await Oha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await zha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Dha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),epa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function npa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const rpa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await npa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ipa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function opa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const PJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},BJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),g=r.sections.includes(B.section);return D&&c&&g}),NJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function zJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const spa={...rpa,...Gha,...apa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return BJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return BJ(B,c)},goalsQtyLocal:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>PJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>PJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await opa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ipa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function lpa(e){for(const[r,i]of Object.entries(spa))e.hasModule(r)||e.registerModule(r,i)}const cpa={class:"subcategory-group"},dpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},upa=ml(dpa,[["__scopeId","data-v-ae6f3d72"]]),hpa={class:"filter-subcategories"},ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",hpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(upa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),T6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),fpa={class:"details__header"},mpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gpa={class:"details__header__checkbox"},ypa={class:"details__body"},vpa={class:"details__body__playing-as"},_pa=["onClick"],bpa={class:"details__header"},xpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wpa={class:"details__header__checkbox"},kpa={class:"details__body"},Cpa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Spa={class:"details__body__game-section"},Tpa=["onClick"],Epa={class:"details__body"},Apa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mpa={class:"details__body__game-section"},Ipa=["onClick"],Ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fpa,[mpa,t.createElementVNode("div",gpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ypa,[t.createElementVNode("div",vpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_pa))),128))])]),t.createElementVNode("div",bpa,[xpa,t.createElementVNode("div",wpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kpa,[Cpa,t.createElementVNode("div",Spa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tpa))),128))])]),t.createElementVNode("div",Epa,[Apa,t.createElementVNode("div",Mpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ipa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Bpa={class:"filter-field"},Npa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Bpa,[t.createVNode(t.unref(rW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zpa={class:"subcategory-group"},Opa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Fpa=yl(Opa,[["__scopeId","data-v-ae6f3d72"]]),Lpa={class:"filter-subcategories"},Dpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Fpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Rpa={class:"details__header"},Vpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$pa={class:"details__header__checkbox"},jpa={class:"details__body"},Upa={class:"details__body__playing-as"},Gpa=["onClick"],Hpa={class:"details__header"},Wpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qpa={class:"details__header__checkbox"},Ypa={class:"details__body"},Xpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zpa={class:"details__body__game-section"},Jpa=["onClick"],Kpa={class:"details__body"},Qpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),efa={class:"details__body__game-section"},tfa=["onClick"],afa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",jpa,[t.createElementVNode("div",Upa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gpa))),128))])]),t.createElementVNode("div",Hpa,[Wpa,t.createElementVNode("div",qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Ypa,[Xpa,t.createElementVNode("div",Zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jpa))),128))])]),t.createElementVNode("div",Kpa,[Qpa,t.createElementVNode("div",efa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),nfa={class:"filter-field"},rfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",nfa,[t.createVNode(t.unref(ZY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Nha,yu.connectSocket=KP,yu.disconnectSocket=QP,yu.getSocket=JP,yu.registerStoreModules=lpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});
|
|
7627
|
+
*/var Oda="store";function L1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function lJ(e){return e!==null&&typeof e=="object"}function Fda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Lda(e,r){return function(){return e(r)}}function cJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function dJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;x6(e,i,[],e._modules.root,!0),MM(e,i,r)}function MM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};L1(D,function(g,a){c[a]=Lda(g,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&jda(e),B&&i&&e._withCommit(function(){B.data=null})}function x6(e,r,i,B,D){var c=!i.length,g=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=B),!c&&!D){var a=IM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Dda(e,g,i);B.forEachMutation(function(n,v){var _=g+v;Rda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:g+v,p=n.handler||n;Vda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=g+v;$da(e,_,n,f)}),B.forEachChild(function(n,v){x6(e,r,i.concat(v),n,D)})}function Dda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return uJ(e,r)}},state:{get:function(){return IM(e.state,i)}}}),D}function uJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Rda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Vda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var g=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Fda(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function $da(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function jda(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function IM(e,r){return r.reduce(function(i,B){return i[B]},e)}function w6(e,r,i){return lJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var Uda="vuex bindings",hJ="vuex:mutations",PM="vuex:actions",cv="vuex",Gda=0;function Hda(e,r){zda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Uda]},function(i){i.addTimelineLayer({id:hJ,label:"Vuex Mutations",color:pJ}),i.addTimelineLayer({id:PM,label:"Vuex Actions",color:pJ}),i.addInspector({id:cv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===cv)if(B.filter){var D=[];yJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[gJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId;uJ(r,D),B.state=Yda(Zda(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(cv),i.sendInspectorState(cv),i.addTimelineEvent({layerId:hJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=Gda++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},g=Date.now()-B._time;c.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var pJ=8702998,Wda=6710886,qda=16777215,fJ={label:"namespaced",textColor:qda,backgroundColor:Wda};function mJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function gJ(e,r){return{id:r||"root",label:mJ(r),tags:e.namespaced?[fJ]:[],children:Object.keys(e._children).map(function(i){return gJ(e._children[i],r+i+"/")})}}function yJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[fJ]:[]}),Object.keys(r._children).forEach(function(D){yJ(e,r._children[D],i,B+D+"/")})}function Yda(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(B.length){var c=Xda(r);D.getters=Object.keys(c).map(function(g){return{key:g.endsWith("/")?mJ(g):g,editable:!1,value:BM(function(){return c[g]})}})}return D}function Xda(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(g){D[g]||(D[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),D=D[g]._custom.value}),D[c]=BM(function(){return e[i]})}else r[i]=BM(function(){return e[i]})}),r}function Zda(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var g=B[D];if(!g)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?g:g._children},r==="root"?e:e.root._children)}function BM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},vJ={namespaced:{configurable:!0}};vJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){L1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&L1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&L1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&L1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,vJ);var D1=function(e){this.register([],e,!1)};D1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},D1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},D1.prototype.update=function(e){_J([],this.root,e)},D1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&wJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&L1(r.modules,function(g,a){B.register(e.concat(a),g,i)})},D1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},D1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function _J(e,r,i){if(process.env.NODE_ENV!=="production"&&wJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}_J(e.concat(B),r.getChild(B),i.modules[B])}}var bJ={assert:function(e){return typeof e=="function"},expected:"function"},Jda={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},xJ={getters:bJ,mutations:bJ,actions:Jda};function wJ(e,r){Object.keys(xJ).forEach(function(i){if(r[i]){var B=xJ[i];L1(r[i],function(D,c){hf(B.assert(D),Kda(e,i,c,D,B.expected))})}})}function Kda(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var zh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var g=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(g,v,_)},this.commit=function(v,_,p){return f.call(g,v,_,p)},this.strict=D;var n=this._modules.root.state;x6(this,n,[],this._modules.root),MM(this,n),B.forEach(function(v){return v(i)})},NM={state:{configurable:!0}};zh.prototype.install=function(e,r){e.provide(r||Oda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Hda(e,this)},NM.state.get=function(){return this._state.data},NM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},zh.prototype.commit=function(e,r,i){var B=this,D=w6(e,r,i),c=D.type,g=D.payload,a=D.options,y={type:c,payload:g},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},zh.prototype.dispatch=function(e,r){var i=this,B=w6(e,r),D=B.type,c=B.payload,g={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(g,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},zh.prototype.subscribe=function(e,r){return cJ(e,this._subscribers,r)},zh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return cJ(i,this._actionSubscribers,r)},zh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},zh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},zh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),x6(this,this.state,e,this._modules.get(e),i.preserveState),MM(this,this.state)},zh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=IM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),dJ(this)},zh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},zh.prototype.hotUpdate=function(e){this._modules.update(e),dJ(this,!0)},zh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(zh.prototype,NM);var Qda=tua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!kJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),eua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var y=this.$store.commit;if(e){var f=aua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(g)):y.apply(this.$store,[c].concat(g))}}),i});function eua(e){return kJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function kJ(e){return Array.isArray(e)||lJ(e)}function tua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function aua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const nua="/icn-play.svg",rua="/icn-tiros-de-esquina.svg",iua="/icn-tiro-a-porteria.svg",oua="/icn-cambio.svg",sua="/icn-falta.svg",lua="/atajada.svg",cua="/fuera-de-lugar.svg",zM="/gol.svg",dua="/var.png",uua="/tiempo-agregado.svg",hua="/jugada-peligrosa.svg",pua="/penal-marcado.svg",fua="/penal-fallado.svg",mua="/inicia-el-partido.svg",gua="/fin-del-partido.svg",yua="/icn-tarjeta-amarilla.svg",vua="/icn-tarjeta-roja.svg",_ua=[1,2,3,4,6],bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return EM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):EM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):EM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Tda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_ua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qda("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},xua=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),wua={class:"time-line-event__details"},kua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Cua=["src"],Sua=xua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Tua={class:"time-line-event__details__info"},Eua={key:0,class:"time-line-event__details__info__header__players"},Aua={class:"time-line-event__details__info__header__players__div-img"},Mua=["src"],Iua={class:"time-line-event__details__info__body"},Pua={class:"time-line-event__details__info__body__comment"},Bua={class:"time-line-event__minute__container"},Nua={class:"time-line-event__minute__container__text"},zua={class:"time-line-event__minute__container__icon-container"},Oua={class:"time-line-event__minute__container__icon-container__icon"},Fua={key:0,src:rua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lua={key:1,src:iua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dua={key:2,src:oua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rua={key:3,src:sua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Vua={key:4,src:lua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$ua={key:5,src:cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jua={key:6,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Uua={key:7,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Gua={key:8,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Hua={key:9,src:dua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Wua={key:10,src:uua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qua={key:11,src:hua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yua={key:12,src:pua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:13,src:fua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:14,src:mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:15,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kua={key:16,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:17,src:vua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function tha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",wua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",kua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Cua)]),Sua])):t.createCommentVNode("",!0),t.createElementVNode("div",Tua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Eua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Aua,[t.createElementVNode("img",{src:g,alt:""},null,8,Mua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:nua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",Iua,[t.createElementVNode("div",Pua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Bua,[t.createElementVNode("div",Nua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",zua,[t.createElementVNode("div",Oua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Fua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Lua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Dua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Rua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Vua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$ua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",jua)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Uua)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Gua)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Hua)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Wua)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",qua)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Qua)):(t.openBlock(),t.createElementBlock("img",eha))])])])],2)],6)}const aha=q_(bua,[["render",tha],["__scopeId","data-v-9943063a"]]),nha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},rha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let k6=null;const iha={name:"TimeLine",components:{Tooltip:wda,TimeLineEvent:aha},mixins:[Cda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":nha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await rJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)k6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),k6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=rha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Sda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){k6&&k6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},CJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oha={ref:"timeLine",class:"time-line"},sha={class:"time-line__header"},lha={class:"time-line__header__dot"},cha={class:"time-line__header__dot__home-team team-logo"},dha=["src"],uha={class:"time-line__header__dot__away-team team-logo"},hha=["src"],pha={key:1,class:"start-line"},fha=CJ(()=>t.createElementVNode("div",null,null,-1)),mha=CJ(()=>t.createElementVNode("div",null,null,-1)),gha=[fha,mha],yha={key:1,class:"noEventText"},vha={class:"tooltip-data"},_ha=["src"];function bha(e,r,i,B,D,c){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oha,[t.createElementVNode("div",sha,[t.createElementVNode("div",lha,[t.createElementVNode("div",cha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,dha)]),t.createElementVNode("div",uha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,hha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(g,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",pha,gha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",vha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,_ha)])])]),_:1},8,["data"])],64)}const xha=q_(iha,[["render",bha],["__scopeId","data-v-2574e576"]]),wha={class:"game-time-line__options"},kha={class:"game-time-line__timeline"},Cha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){rJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),g=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){g.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",wha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(aca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kha,[t.createVNode(xha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Sha=q_(Cha,[["__scopeId","data-v-f42d0c90"]]),e3a="",Tha={class:"game-data__header"},Eha={class:"game-data__header__tournament-season-dropdown"},Aha={class:"game-data__header__teams-carousel"},Mha={class:"game-data__body"},Iha={class:"game-data__body__menu"},Pha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Bha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Rpe,GSCGameTimeLine:Sha,GscSwitchComponent:iA,GSCLineupsMain:s8e,GSCDatosGSMain:EIe,GSCVideoGame:OUe,ModalEvents:IR,GSCSummaryMain:N2t,GSCTacticaFijaMain:eca,GSCProminentMain:$Bt,GSCComparative:xFt}}),Nha=$i(Object.assign(Bha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:r}){const i=e,B=ax();Xh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,u=12e4,d=12e4,h=12e4,m=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return g.value&&g.value.id&&(xe.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){m.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const be=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),xe});t.watch(()=>be,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(g.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),xe.avoidGameIdsToFilter&&(xe.gameIdsToFilter=null),(y.value.is_live||y.value.game_status===0)&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Be(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){g.value.id!==xe.id&&(g.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?KP():QP()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Tha,[t.withDirectives(t.createElementVNode("div",Eha,[t.createVNode(t.unref(KM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(tI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Aha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(IR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Mha,[t.createElementVNode("div",Iha,[t.createElementVNode("div",Pha,[t.createVNode(t.unref(iA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),be.value&&be.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:be.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:g.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Be,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-1db22f2c"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function SJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return SJ({seasonId:e},!1);throw new Error(i)}}async function zha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function Oha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Fha(e,r,i,B,D,c,g=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(g||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function TJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function EJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Lha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Dha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Rha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Vha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let OM=null;function AJ(){return OM||(OM=qg(Vha)),OM}async function $ha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function MJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function jha(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function Uha(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const Gha={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Fha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],AJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),g=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(g)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,g=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(g=a,D=B);return c[g]?c[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await SJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await EJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await $ha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function Hha({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const Wha=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let FM=null;function qha(){return FM||(FM=qg(Wha)),FM}class C6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,g,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,g,"accomplished",y)}setTeamRanking(r,i,B,D,c,g,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[g].ranking=v+1,this[g].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,g,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new C6);Vc(this,"visitingTeam",new C6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,g]of Object.entries(this.generalCategoriesIds))r===g&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===g&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(g=>{this.isAccomplishedPlay(g[D.categoryId])?this[r].increaseAccomplishedByOne(g[D.section],g[D.total]):this.isReceivedPlay(g[D.categoryId])&&this[r].increaseReceivedByOne(g[D.section],g[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,g=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,g=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.visitingTeamType)}resetData(){this.homeTeam=new C6,this.visitingTeam=new C6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const Yha={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Xha=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Zha=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let LM=null;function Jha(){return LM||(LM=qg(Zha)),LM}const Kha=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let DM=null;function Qha(){return DM||(DM=qg(Kha)),DM}function S6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function IJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function RM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const epa=JP(),tpa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],apa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:AJ(),indexesTSP:qha(),indexesLS:Jha(),indexesTLP:Qha(),nextGamesDataStructure:Yha,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(r=>r.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return Xha.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return TJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return TJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&coe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],g=D.home_team===i.team_id;B.push({playingAs:g?1:2,matchResult:c===0?3:g?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=rB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=S6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(rse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=S6(B,e.indexesTLP,e.categoriesMap),a=RM(B,g,e.indexesTLP),y=S6(r,e.indexesTLP,e.categoriesMap),f=RM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=S6(B,e.indexesTLP,e.categoriesMap),g=RM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),g&&y.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))B.push(g);r.rankingData.forEach(c=>{for(const g of B)if(g.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(g.id)?D.get(g.id).push(c):D.set(g.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=IJ(r)},setVisitingGames(e,r){e.visitingGames=IJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const g=await Uha({gameId:r.gameId});if(g){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(i=g.data.data.filter(a=>a[1]==r.homeTeam),B=g.data.data.filter(a=>a[1]==r.awayTeam),D=g.data.games,c=g.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:g,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(Hha(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Rha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:g}=await Lha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=tpa.find(y=>y.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await EJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await jha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await Oha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await zha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Dha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),epa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function npa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const rpa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await npa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ipa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function opa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const PJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},BJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),g=r.sections.includes(B.section);return D&&c&&g}),NJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function zJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const spa={...rpa,...Gha,...apa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return BJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return BJ(B,c)},goalsQtyLocal:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>PJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>PJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await opa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ipa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function lpa(e){for(const[r,i]of Object.entries(spa))e.hasModule(r)||e.registerModule(r,i)}const cpa={class:"subcategory-group"},dpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},upa=ml(dpa,[["__scopeId","data-v-ae6f3d72"]]),hpa={class:"filter-subcategories"},ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",hpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(upa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),T6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),fpa={class:"details__header"},mpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gpa={class:"details__header__checkbox"},ypa={class:"details__body"},vpa={class:"details__body__playing-as"},_pa=["onClick"],bpa={class:"details__header"},xpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wpa={class:"details__header__checkbox"},kpa={class:"details__body"},Cpa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Spa={class:"details__body__game-section"},Tpa=["onClick"],Epa={class:"details__body"},Apa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mpa={class:"details__body__game-section"},Ipa=["onClick"],Ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fpa,[mpa,t.createElementVNode("div",gpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ypa,[t.createElementVNode("div",vpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_pa))),128))])]),t.createElementVNode("div",bpa,[xpa,t.createElementVNode("div",wpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kpa,[Cpa,t.createElementVNode("div",Spa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tpa))),128))])]),t.createElementVNode("div",Epa,[Apa,t.createElementVNode("div",Mpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ipa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Bpa={class:"filter-field"},Npa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Bpa,[t.createVNode(t.unref(rW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zpa={class:"subcategory-group"},Opa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Fpa=yl(Opa,[["__scopeId","data-v-ae6f3d72"]]),Lpa={class:"filter-subcategories"},Dpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Fpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Rpa={class:"details__header"},Vpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$pa={class:"details__header__checkbox"},jpa={class:"details__body"},Upa={class:"details__body__playing-as"},Gpa=["onClick"],Hpa={class:"details__header"},Wpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qpa={class:"details__header__checkbox"},Ypa={class:"details__body"},Xpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zpa={class:"details__body__game-section"},Jpa=["onClick"],Kpa={class:"details__body"},Qpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),efa={class:"details__body__game-section"},tfa=["onClick"],afa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",jpa,[t.createElementVNode("div",Upa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gpa))),128))])]),t.createElementVNode("div",Hpa,[Wpa,t.createElementVNode("div",qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Ypa,[Xpa,t.createElementVNode("div",Zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jpa))),128))])]),t.createElementVNode("div",Kpa,[Qpa,t.createElementVNode("div",efa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),nfa={class:"filter-field"},rfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",nfa,[t.createVNode(t.unref(ZY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Nha,yu.connectSocket=KP,yu.disconnectSocket=QP,yu.getSocket=JP,yu.registerStoreModules=lpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});
|