@golstats/gsc-game-data 1.0.38 → 1.0.39
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/gsc-game-data.js +2 -8
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/gsc-game-data.js
CHANGED
|
@@ -12349,13 +12349,7 @@ const yF = {
|
|
|
12349
12349
|
computed: {
|
|
12350
12350
|
...ht("nextGeneral", ["homeTeam", "visitingTeam"])
|
|
12351
12351
|
},
|
|
12352
|
-
watch: {
|
|
12353
|
-
game: {
|
|
12354
|
-
handler: function(e) {
|
|
12355
|
-
console.log("NUEVO JUEGO XG", e);
|
|
12356
|
-
}
|
|
12357
|
-
}
|
|
12358
|
-
},
|
|
12352
|
+
watch: {},
|
|
12359
12353
|
methods: {
|
|
12360
12354
|
onChangeTeam(e) {
|
|
12361
12355
|
e instanceof Object || (this.teamSelect = e), this.teamDefault = e;
|
|
@@ -12416,7 +12410,7 @@ function _F(e, t, a, s, i, o) {
|
|
|
12416
12410
|
i.gamesContainerWidth < 655 && i.teamSelect == e.visitingTeam.colloquial_name ? (f(), V(l, { key: 4 })) : w("", !0)
|
|
12417
12411
|
], 512);
|
|
12418
12412
|
}
|
|
12419
|
-
const bF = /* @__PURE__ */ st(yF, [["render", _F], ["__scopeId", "data-v-
|
|
12413
|
+
const bF = /* @__PURE__ */ st(yF, [["render", _F], ["__scopeId", "data-v-20bd873f"]]);
|
|
12420
12414
|
const vF = { class: "statistics-main" }, wF = { class: "statistics-main__header" }, CF = { class: "statistics-main__header__filter" }, SF = ot({
|
|
12421
12415
|
name: "TemplateVideos",
|
|
12422
12416
|
components: {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="__title">${n}:</div>
|
|
31
31
|
<div class="__totals">${i}: ${r}</div>
|
|
32
32
|
</div>
|
|
33
|
-
`}}}},getChartSeries(e,a){let o,s;return this.showPostMatchData?(o={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},s={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((n,i)=>{a.xaxis.categories.push(this.prepareLabels(n,i)),a.arraySubcategories.push(n);const r=n.homeTeam[this.homeTeamStatisticsType].totalPostGame+n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;o.data.push(Math.round(120*(r?n.homeTeam[this.homeTeamStatisticsType].totalPostGame/r:0))),o.dataTotal.push(n.homeTeam[this.homeTeamStatisticsType].totalPostGame),s.data.push(Math.round(120*(r?n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/r:0))),s.dataTotal.push(n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(o={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},s={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((n,i)=>{a.xaxis.categories.push(this.prepareLabels(n,i)),a.arraySubcategories.push(n);let r,c,y,d;n.homeTeam[this.homeTeamStatisticsType].leader.points,n.visitingTeam[this.visitingTeamStatisticsType].leader.points;const l=n.homeTeam.accomplished.avgPostGame+n.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&n.generalCategoriesIds.accomplished===3?(r=n.homeTeam.accomplished.avgPostGame/l,y=n.homeTeam.accomplished.totalPostGame):(r=l?n.homeTeam[this.homeTeamStatisticsType].avgPostGame/l:0,y=n.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const m=n.homeTeam[this.homeTeamStatisticsType].totalLive+n.visitingTeam[this.visitingTeamStatisticsType].totalLive;r=m?n.homeTeam[this.homeTeamStatisticsType].totalLive/m:0,y=n.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&n.generalCategoriesIds.accomplished===3?(c=n.visitingTeam.accomplished.avgPostGame/l,d=n.visitingTeam.accomplished.totalPostGame):(c=l?n.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/l:0,d=n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const m=n.homeTeam[this.homeTeamStatisticsType].totalLive+n.visitingTeam[this.visitingTeamStatisticsType].totalLive;c=m?n.visitingTeam[this.visitingTeamStatisticsType].totalLive/m:0,d=n.visitingTeam[this.visitingTeamStatisticsType].totalLive}o.data.push(Math.round(120*r)),o.dataTotal.push(Math.round(y)),s.data.push(Math.round(120*c)),s.dataTotal.push(Math.round(d))})),[o,s]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,o){const s=o===0?"homeTeam":"visitingTeam",n=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=n.id!=="3-0",this.tooltip.data=this.getSubcategoryData(n,s),this.tooltip.local=o===0,this.tooltip.names=n.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(n);const i=e.globals.clientX||0,r=e.globals.clientY||0;this.globals.x=i,this.globals.y=r,this.tooltip.x=i,this.tooltip.y=r>700?r-250:r;const c=n.generalCategoriesIds.accomplished===3;if(c){const y=n.homeTeam.accomplished.avgPostGame+n.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?n[s].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=c,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const o=Math.abs(e.clientX-this.globals.x),s=Math.abs(e.clientY-this.globals.y);(o>5||s>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let o=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return o;const s=13;if(o.length>s){let n=o.split(" ");o=[];let i="",r="",c=n.slice(-1)[0];n.forEach(y=>{i+=` ${y} `,i.length>s&&(o.push(r.trim()),i=y),r=i,c===y&&o.push(r.trim())})}return o},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,o)=>a+o.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},k1=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),BI={key:0,class:"distribution-leyend"},$I=k1(()=>t.createElementVNode("br",null,null,-1)),xI={class:"distribution"},VI={class:"distribution__container"},II={class:"distribution__container__chart-type__title"},AI=k1(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),OI={class:"distribution__container__chart-type__chart"};function TI(e,a,o,s,n,i){const r=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",BI,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(i.timeLeft),1),t.createTextVNode(" para el inicio."),$I,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(o.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",xI,[t.createElementVNode("div",VI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.arrayDataForCharts,(c,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",II,t.toDisplayString(c.name),1),AI,t.createElementVNode("div",OI,[(t.openBlock(),t.createBlock(r,{type:"radar",height:n.height,options:n.arrayChartOptions[y],series:n.arrayFilledSeries[y],key:n.chartKeyCounter+n.updateCategory+y},null,8,["height","options","series"]))])]))),128))])])],64)}const FI=Ae(NI,[["render",TI],["__scopeId","data-v-383baec7"]]),zI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Hd={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(a){throw new Error(a)}}}},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)}}},S1=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},E1=Hd.setup;Hd.setup=E1?(e,a)=>(S1(),E1(e,a)):S1;const PI={key:0,class:"text-left"},RI=["width","src"],DI=["checked"],jI=["width","src"],LI={key:3,class:"text-right"};function vI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",PI,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,RI)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,DI),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,jI)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",LI,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const MI=zI(Hd,[["render",vI],["__scopeId","data-v-e2a20444"]]),pMe="",hMe="",HI={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 UI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",i.showTooltip]),style:t.normalizeStyle(i.positionTooltip),onClick:a[0]||(a[0]=(...r)=>i.tooltipClick&&i.tooltipClick(...r))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const N1=Ae(HI,[["render",UI],["__scopeId","data-v-33a39744"]]),yMe="",GI={name:"SoccerChalkboard",components:{Tooltip:N1},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:{...Te("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,a)=>({id:a,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((s,n)=>[...s,n.categories],[]);return this.preparedPlays.filter(s=>this.findCategoryInPlay(e,s)).reduce((s,n)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,n));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:n.jersey_number,matchlapse:n.matchLapse,playerName:n.player_name,photo:n.photo,rivalLogo:n.rival_id,x1:i.invert.includes(n.categoryId)?100-n[`x${i.points[0]}`]:n[`x${i.points[0]}`],y1:i.invert.includes(n.categoryId)?100-n[`y${i.points[0]}`]:n[`y${i.points[0]}`],x2:i.invert.includes(n.categoryId)?100-n[`x${i.points[1]}`]:n[`x${i.points[1]}`],y2:i.invert.includes(n.categoryId)?100-n[`y${i.points[1]}`]:n[`y${i.points[1]}`],x3:i.invert.includes(n.categoryId)?100-n[`x${i.points[2]}`]:n[`x${i.points[2]}`],y3:i.invert.includes(n.categoryId)?100-n[`y${i.points[2]}`]:n[`y${i.points[2]}`],momentOfPlay:n.moment_of_play,isOwnGoal:i.invert.includes(n.categoryId),xGi:n.xGi,xGf:n.xGf};s.push(r)}return s},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Os=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),WI={class:"soccer-chalkboard-xg"},qI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},JI={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},XI=Os(()=>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)),ZI=["id"],YI=["fill"],KI=Os(()=>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)),QI=["id"],eA=["x1","y1","x2","y2","stroke"],tA=["x1","y1","x2","y2","stroke","marker-end"],aA=["onMouseover"],oA=["x","y","fill"],sA=["x","y"],nA={class:"tooltip-data has-text-left"},iA={class:"bold"},rA={class:"tooltip-image"},lA={class:"tooltip-image"},cA=["src"],dA={class:"tooltip-xg"},mA={key:0},pA=Os(()=>t.createElementVNode("span",null,"xGi:",-1)),hA=Os(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),yA={key:1},gA=Os(()=>t.createElementVNode("span",null,"xGf:",-1));function uA(e,a,o,s,n,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",WI,[(t.openBlock(),t.createElementBlock("svg",qI,[(t.openBlock(),t.createElementBlock("svg",JI,[t.createElementVNode("defs",null,[XI,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.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:c.color},null,8,YI)],8,ZI))),128)),KI]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,eA),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,tA),t.createElementVNode("g",{onMouseover:y=>i.onMouseOver(y,c),onMouseleave:a[0]||(a[0]=(...y)=>i.onMouseLeave&&i.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,oA),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(c.jersey),9,sA)],40,aA)],8,QI))),128))]))])),t.createVNode(r,{data:n.data},{default:t.withCtx(()=>[t.createElementVNode("div",nA,[t.createElementVNode("div",null,[t.createElementVNode("span",iA,t.toDisplayString(n.dataPlay.isOwnGoal?"Autogol":n.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(n.dataPlay.playerName)+" ",1),t.createElementVNode("div",rA,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+n.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(n.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",lA,[t.createElementVNode("img",{src:n.dataPlay.rivalLogo},null,8,cA)])]),t.createElementVNode("div",dA,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGi)&&n.dataPlay.xGi<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",mA,[pA,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),hA,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGf)&&n.dataPlay.xGf<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yA,[gA,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const B1=Ae(GI,[["render",uA],["__scopeId","data-v-883eff7a"]]),Li=[{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]}],gMe="",fA={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},$1=e=>(t.pushScopeId("data-v-7a0399e9"),e=e(),t.popScopeId(),e),_A={class:"xg-container"},bA={class:"xg-container__info"},wA=$1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),CA={class:"table"},kA={class:"table__row"},SA={class:"table__row__title"},EA={class:"table__row__value"},NA=["src"],BA={class:"table__row"},$A={class:"table__row__title"},xA={class:"table__row__value"},VA={class:"table__row"},IA={class:"table__row__title"},AA={class:"table__row__value"},OA=$1(()=>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)),TA={class:"xg-container__field"};function FA(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",_A,[t.createElementVNode("div",bA,[wA,t.createElementVNode("div",CA,[t.createElementVNode("div",kA,[t.createElementVNode("div",SA,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",EA,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,NA)])]),t.createElementVNode("div",BA,[t.createElementVNode("div",$A,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",xA,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",VA,[t.createElementVNode("div",IA,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",AA,t.toDisplayString(i.gxInfoItems[2].value),1)])]),OA]),t.createElementVNode("div",TA,[t.createVNode(r,{plays:e.playsLocal,categories:n.categories,team:e.team},null,8,["plays","categories","team"])])])}const zA=Ae(fA,[["render",FA],["__scopeId","data-v-7a0399e9"]]),uMe="",PA={name:"Xg",components:{SoccerChalkboard:B1},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.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.setTeamSelected("Visiting"),this.fillXgPlays()}},x1=e=>(t.pushScopeId("data-v-ec94eadc"),e=e(),t.popScopeId(),e),RA={class:"xg-container"},DA={class:"xg-container__info"},jA=x1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),LA={class:"table"},vA={class:"table__row"},MA={class:"table__row__title"},HA={class:"table__row__value"},UA=["src"],GA={class:"table__row"},WA={class:"table__row__title"},qA={class:"table__row__value"},JA={class:"table__row"},XA={class:"table__row__title"},ZA={class:"table__row__value"},YA=x1(()=>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)),KA={class:"xg-container__field"};function QA(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",RA,[t.createElementVNode("div",DA,[jA,t.createElementVNode("div",LA,[t.createElementVNode("div",vA,[t.createElementVNode("div",MA,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",HA,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,UA)])]),t.createElementVNode("div",GA,[t.createElementVNode("div",WA,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",qA,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",JA,[t.createElementVNode("div",XA,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",ZA,t.toDisplayString(i.gxInfoItems[2].value),1)])]),YA]),t.createElementVNode("div",KA,[t.createVNode(r,{plays:e.playsAway,categories:n.categories,team:o.team},null,8,["plays","categories","team"])])])])}const eO=Ae(PA,[["render",QA],["__scopeId","data-v-ec94eadc"]]),fMe="",tO={name:"SoccerChalkboard",components:{Tooltip:N1},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:{...Te("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,a)=>({id:a,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((s,n)=>[...s,n.categories],[]);return this.preparedPlays.filter(s=>this.findCategoryInPlay(e,s)).reduce((s,n)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,n));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:n.jersey_number,matchlapse:n.matchLapse,playerName:n.player_name,photo:n.photo,rivalLogo:n.rival_id,x1:i.invert.includes(n.categoryId)?100-n[`x${i.points[0]}`]:n[`x${i.points[0]}`],y1:i.invert.includes(n.categoryId)?100-n[`y${i.points[0]}`]:n[`y${i.points[0]}`],x2:i.invert.includes(n.categoryId)?100-n[`x${i.points[1]}`]:n[`x${i.points[1]}`],y2:i.invert.includes(n.categoryId)?100-n[`y${i.points[1]}`]:n[`y${i.points[1]}`],x3:i.invert.includes(n.categoryId)?100-n[`x${i.points[2]}`]:n[`x${i.points[2]}`],y3:i.invert.includes(n.categoryId)?100-n[`y${i.points[2]}`]:n[`y${i.points[2]}`],momentOfPlay:n.moment_of_play,isOwnGoal:i.invert.includes(n.categoryId),xGi:n.xGi,xGf:n.xGf};s.push(r)}return s},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.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}}},Ts=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),aO={class:"soccer-chalkboard-xg"},oO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},sO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},nO=Ts(()=>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)),iO=["id"],rO=["fill"],lO=Ts(()=>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)),cO=["id"],dO=["x1","y1","x2","y2","stroke"],mO=["x1","y1","x2","y2","stroke","marker-end"],pO=["onMouseover"],hO=["x","y","fill"],yO=["x","y"],gO={class:"tooltip-data has-text-left"},uO={class:"bold"},fO={class:"tooltip-image"},_O={class:"tooltip-image"},bO=["src"],wO={class:"tooltip-xg"},CO={key:0},kO=Ts(()=>t.createElementVNode("span",null,"xGi:",-1)),SO=Ts(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),EO={key:1},NO=Ts(()=>t.createElementVNode("span",null,"xGf:",-1));function BO(e,a,o,s,n,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",aO,[(t.openBlock(),t.createElementBlock("svg",oO,[(t.openBlock(),t.createElementBlock("svg",sO,[t.createElementVNode("defs",null,[nO,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.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:c.color},null,8,rO)],8,iO))),128)),lO]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,dO),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,mO),t.createElementVNode("g",{onMouseover:y=>i.onMouseOver(y,c),onMouseleave:a[0]||(a[0]=(...y)=>i.onMouseLeave&&i.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,hO),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(c.jersey),9,yO)],40,pO)],8,cO))),128))]))])),t.createVNode(r,{data:n.data},{default:t.withCtx(()=>[t.createElementVNode("div",gO,[t.createElementVNode("div",null,[t.createElementVNode("span",uO,t.toDisplayString(n.dataPlay.isOwnGoal?"Autogol":n.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(n.dataPlay.playerName)+" ",1),t.createElementVNode("div",fO,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+n.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(n.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",_O,[t.createElementVNode("img",{src:n.dataPlay.rivalLogo},null,8,bO)])]),t.createElementVNode("div",wO,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGi)&&n.dataPlay.xGi<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",CO,[kO,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),SO,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGf)&&n.dataPlay.xGf<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",EO,[NO,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const V1=Ae(tO,[["render",BO],["__scopeId","data-v-f6c30694"]]),_Me="",$O={name:"Xg",components:{SoccerChalkboard:V1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},I1=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),xO={class:"xg-container"},VO=I1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),IO={class:"xg-container__field"},AO={class:"xg-container__info"},OO={class:"table"},TO={class:"table__row"},FO={class:"table__row__title"},zO={class:"table__row__value"},PO=["src"],RO={class:"table__row"},DO={class:"table__row__title"},jO={class:"table__row__value"},LO={class:"table__row"},vO={class:"table__row__title"},MO={class:"table__row__value"},HO=I1(()=>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 UO(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",xO,[VO,t.createElementVNode("div",IO,[t.createVNode(r,{plays:e.playsLocal,categories:n.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",AO,[t.createElementVNode("div",OO,[t.createElementVNode("div",TO,[t.createElementVNode("div",FO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",zO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,PO)])]),t.createElementVNode("div",RO,[t.createElementVNode("div",DO,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",jO,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",LO,[t.createElementVNode("div",vO,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",MO,t.toDisplayString(i.gxInfoItems[2].value),1)])]),HO])])}const GO=Ae($O,[["render",UO],["__scopeId","data-v-fb5342de"]]),bMe="",WO={name:"Xg",components:{SoccerChalkboard:V1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},A1=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),qO={class:"xg-container"},JO=A1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),XO={class:"xg-container__field"},ZO={class:"xg-container__info"},YO={class:"table"},KO={class:"table__row"},QO={class:"table__row__title"},eT={class:"table__row__value"},tT=["src"],aT={class:"table__row"},oT={class:"table__row__title"},sT={class:"table__row__value"},nT={class:"table__row"},iT={class:"table__row__title"},rT={class:"table__row__value"},lT=A1(()=>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 cT(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",qO,[JO,t.createElementVNode("div",XO,[t.createVNode(r,{plays:e.playsAway,categories:n.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",ZO,[t.createElementVNode("div",YO,[t.createElementVNode("div",KO,[t.createElementVNode("div",QO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",eT,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,tT)])]),t.createElementVNode("div",aT,[t.createElementVNode("div",oT,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",sT,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",nT,[t.createElementVNode("div",iT,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",rT,t.toDisplayString(i.gxInfoItems[2].value),1)])]),lT])])}const dT=Ae(WO,[["render",cT],["__scopeId","data-v-38eed9b5"]]),wMe="";let O1=null;const mT={name:"XgMain",components:{GSCSwitchRadio:MI,SoccerChalkboardLocal:zA,SoccerChalkboardAway:eO,SoccerChalkboardLocalMobile:GO,SoccerChalkboardAwayMobile:dT},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"])},watch:{game:{handler:function(e){console.log("NUEVO JUEGO XG",e)}}},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)O1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),O1.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))}},pT={class:"xg",ref:"gamesContainer"},hT={key:0,class:"selector-team"};function yT(e,a,o,s,n,i){const r=t.resolveComponent("GSCSwitchRadio"),c=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),d=t.resolveComponent("SoccerChalkboardLocalMobile"),l=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",pT,[n.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",hT,[t.createVNode(r,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:n.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:i.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),n.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(c,{key:1,class:"local"})):t.createCommentVNode("",!0),n.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),n.gamesContainerWidth<655&&n.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(d,{key:3})):t.createCommentVNode("",!0),n.gamesContainerWidth<655&&n.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(l,{key:4})):t.createCommentVNode("",!0)],512)}const gT=Ae(mT,[["render",yT],["__scopeId","data-v-6bd39f99"]]),CMe="",uT={class:"statistics-main"},fT={class:"statistics-main__header"},_T={class:"statistics-main__header__filter"},bT=t.defineComponent({name:"TemplateVideos",components:{TrendLive:M$,Comparative:EI,Distribution:FI,GSCSlider:Md,XG:gT}}),wT=Ae(Object.assign(bT,{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:()=>({})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=fu(),n=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"}),i=t.ref({}),r=t.ref(null),c=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"}]);let y=t.ref(c.value[0]),d=t.ref(0);t.watch(()=>o.game,p=>{const u={...p};l(u),d.value++},{deep:!0,immediate:!0});async function l(p){try{i.value.gameId!==p.gameId&&(i.value=p,await s.dispatch("nextGeneral/cleanStats"),await s.dispatch("nextGeneral/checkState",{gameId:p.gameId,currentSeasonId:p.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:p}))}catch(u){throw new Error(u)}}function m(p){y.value=p}function h(){s.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 g(p){a("openmedia",p)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{o.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),h(),(p,u)=>(t.openBlock(),t.createElementBlock("div",uT,[t.createElementVNode("div",fT,[t.createVNode(t.unref(Md),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f.id,class:"game-time-line__options__option"},[t.createVNode(hu,t.mergeProps(n.value,{text:f.name,"is-active":t.unref(y).id===f.id,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",_T,[t.createVNode(EB)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(d)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(y).componentName),{seasonSelected:e.seasonSelected,game:e.game,onOpenmedia:g},null,40,["seasonSelected","game"]))]))]))}}),[["__scopeId","data-v-524c07a0"]]);function T1(e,a){return function(){return e.apply(a,arguments)}}const{toString:CT}=Object.prototype,{getPrototypeOf:Ud}=Object,vi=(e=>a=>{const o=CT.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ta=e=>(e=e.toLowerCase(),a=>vi(a)===e),Mi=e=>a=>typeof a===e,{isArray:Vo}=Array,Fs=Mi("undefined");function kT(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F1=ta("ArrayBuffer");function ST(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&F1(e.buffer),a}const ET=Mi("string"),Bt=Mi("function"),z1=Mi("number"),Hi=e=>e!==null&&typeof e=="object",NT=e=>e===!0||e===!1,Ui=e=>{if(vi(e)!=="object")return!1;const a=Ud(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BT=ta("Date"),$T=ta("File"),xT=ta("Blob"),VT=ta("FileList"),IT=e=>Hi(e)&&Bt(e.pipe),AT=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((a=vi(e))==="formdata"||a==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},OT=ta("URLSearchParams"),TT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Vo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function P1(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const R1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),D1=e=>!Fs(e)&&e!==R1;function Gd(){const{caseless:e}=D1(this)&&this||{},a={},o=(s,n)=>{const i=e&&P1(a,n)||n;Ui(a[i])&&Ui(s)?a[i]=Gd(a[i],s):Ui(s)?a[i]=Gd({},s):Vo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&zs(arguments[s],o);return a}const FT=(e,a,o,{allOwnKeys:s}={})=>(zs(a,(n,i)=>{o&&Bt(n)?e[i]=T1(n,o):e[i]=n},{allOwnKeys:s}),e),zT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PT=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},RT=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ud(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},DT=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},jT=e=>{if(!e)return null;if(Vo(e))return e;let a=e.length;if(!z1(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},LT=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ud(Uint8Array)),vT=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},MT=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},HT=ta("HTMLFormElement"),UT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),j1=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),GT=ta("RegExp"),L1=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};zs(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},WT=e=>{L1(e,(a,o)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Bt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},qT=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Vo(e)?s(e):s(String(e).split(a)),o},JT=()=>{},XT=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Wd="abcdefghijklmnopqrstuvwxyz",v1="0123456789",M1={DIGIT:v1,ALPHA:Wd,ALPHA_DIGIT:Wd+Wd.toUpperCase()+v1},ZT=(e=16,a=M1.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function YT(e){return!!(e&&Bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const KT=e=>{const a=new Array(10),o=(s,n)=>{if(Hi(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Vo(s)?[]:{};return zs(s,(r,c)=>{const y=o(r,n+1);!Fs(y)&&(i[c]=y)}),a[n]=void 0,i}}return s};return o(e,0)},QT=ta("AsyncFunction"),eF=e=>e&&(Hi(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),L={isArray:Vo,isArrayBuffer:F1,isBuffer:kT,isFormData:AT,isArrayBufferView:ST,isString:ET,isNumber:z1,isBoolean:NT,isObject:Hi,isPlainObject:Ui,isUndefined:Fs,isDate:BT,isFile:$T,isBlob:xT,isRegExp:GT,isFunction:Bt,isStream:IT,isURLSearchParams:OT,isTypedArray:LT,isFileList:VT,forEach:zs,merge:Gd,extend:FT,trim:TT,stripBOM:zT,inherits:PT,toFlatObject:RT,kindOf:vi,kindOfTest:ta,endsWith:DT,toArray:jT,forEachEntry:vT,matchAll:MT,isHTMLForm:HT,hasOwnProperty:j1,hasOwnProp:j1,reduceDescriptors:L1,freezeMethods:WT,toObjectSet:qT,toCamelCase:UT,noop:JT,toFiniteNumber:XT,findKey:P1,global:R1,isContextDefined:D1,ALPHABET:M1,generateString:ZT,isSpecCompliantForm:YT,toJSONObject:KT,isAsyncFn:QT,isThenable:eF};function pe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}L.inherits(pe,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:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H1=pe.prototype,U1={};["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=>{U1[e]={value:e}}),Object.defineProperties(pe,U1),Object.defineProperty(H1,"isAxiosError",{value:!0}),pe.from=(e,a,o,s,n,i)=>{const r=Object.create(H1);return L.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),pe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const tF=null;function qd(e){return L.isPlainObject(e)||L.isArray(e)}function G1(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function W1(e,a,o){return e?e.concat(a).map(function(s,n){return s=G1(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function aF(e){return L.isArray(e)&&!e.some(qd)}const oF=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function Gi(e,a,o){if(!L.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=L.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!L.isUndefined(p[g])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(a);if(!L.isFunction(n))throw new TypeError("visitor must be a function");function y(g){if(g===null)return"";if(L.isDate(g))return g.toISOString();if(!c&&L.isBlob(g))throw new pe("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(g)||L.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,p,u){let f=g;if(g&&!u&&typeof g=="object"){if(L.endsWith(p,"{}"))p=s?p:p.slice(0,-2),g=JSON.stringify(g);else if(L.isArray(g)&&aF(g)||(L.isFileList(g)||L.endsWith(p,"[]"))&&(f=L.toArray(g)))return p=G1(p),f.forEach(function(_,k){!(L.isUndefined(_)||_===null)&&a.append(r===!0?W1([p],k,i):r===null?p:p+"[]",y(_))}),!1}return qd(g)?!0:(a.append(W1(u,p,i),y(g)),!1)}const l=[],m=Object.assign(oF,{defaultVisitor:d,convertValue:y,isVisitable:qd});function h(g,p){if(!L.isUndefined(g)){if(l.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(g),L.forEach(g,function(u,f){(!(L.isUndefined(u)||u===null)&&n.call(a,u,L.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),a}function q1(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Jd(e,a){this._pairs=[],e&&Gi(e,this,a)}const J1=Jd.prototype;J1.append=function(e,a){this._pairs.push([e,a])},J1.toString=function(e){const a=e?function(o){return e.call(this,o,q1)}:q1;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function sF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X1(e,a,o){if(!a)return e;const s=o&&o.encode||sF,n=o&&o.serialize;let i;if(n?i=n(a,o):i=L.isURLSearchParams(a)?a.toString():new Jd(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const Z1=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){L.forEach(this.handlers,function(o){o!==null&&a(o)})}},Y1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nF=typeof URLSearchParams<"u"?URLSearchParams:Jd,iF=typeof FormData<"u"?FormData:null,rF=typeof Blob<"u"?Blob:null,lF={isBrowser:!0,classes:{URLSearchParams:nF,FormData:iF,Blob:rF},protocols:["http","https","file","blob","url","data"]},K1=typeof window<"u"&&typeof document<"u",cF=(e=>K1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K1,hasStandardBrowserEnv:cF,hasStandardBrowserWebWorkerEnv:dF},Symbol.toStringTag,{value:"Module"})),aa={...mF,...lF};function pF(e,a){return Gi(e,new aa.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return aa.isNode&&L.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function hF(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function yF(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function Q1(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),y=i>=o.length;return r=!r&&L.isArray(n)?n.length:r,y?(L.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!L.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&L.isArray(n[r])&&(n[r]=yF(n[r])),!c)}if(L.isFormData(e)&&L.isFunction(e.entries)){const o={};return L.forEachEntry(e,(s,n)=>{a(hF(s),n,o,0)}),o}return null}function gF(e,a,o){if(L.isString(e))try{return(a||JSON.parse)(e),L.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Xd={transitional:Y1,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=L.isObject(e);if(n&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return s?JSON.stringify(Q1(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return pF(e,this.formSerializer).toString();if((i=L.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Gi(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),gF(e)):e}],transformResponse:[function(e){const a=this.transitional||Xd.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&L.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?pe.from(i,pe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aa.classes.FormData,Blob:aa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Xd.headers[e]={}});const Zd=Xd,uF=L.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"]),fF=e=>{const a={};let o,s,n;return e&&e.split(`
|
|
33
|
+
`}}}},getChartSeries(e,a){let o,s;return this.showPostMatchData?(o={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},s={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((n,i)=>{a.xaxis.categories.push(this.prepareLabels(n,i)),a.arraySubcategories.push(n);const r=n.homeTeam[this.homeTeamStatisticsType].totalPostGame+n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;o.data.push(Math.round(120*(r?n.homeTeam[this.homeTeamStatisticsType].totalPostGame/r:0))),o.dataTotal.push(n.homeTeam[this.homeTeamStatisticsType].totalPostGame),s.data.push(Math.round(120*(r?n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/r:0))),s.dataTotal.push(n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(o={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},s={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((n,i)=>{a.xaxis.categories.push(this.prepareLabels(n,i)),a.arraySubcategories.push(n);let r,c,y,d;n.homeTeam[this.homeTeamStatisticsType].leader.points,n.visitingTeam[this.visitingTeamStatisticsType].leader.points;const l=n.homeTeam.accomplished.avgPostGame+n.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&n.generalCategoriesIds.accomplished===3?(r=n.homeTeam.accomplished.avgPostGame/l,y=n.homeTeam.accomplished.totalPostGame):(r=l?n.homeTeam[this.homeTeamStatisticsType].avgPostGame/l:0,y=n.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const m=n.homeTeam[this.homeTeamStatisticsType].totalLive+n.visitingTeam[this.visitingTeamStatisticsType].totalLive;r=m?n.homeTeam[this.homeTeamStatisticsType].totalLive/m:0,y=n.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&n.generalCategoriesIds.accomplished===3?(c=n.visitingTeam.accomplished.avgPostGame/l,d=n.visitingTeam.accomplished.totalPostGame):(c=l?n.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/l:0,d=n.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const m=n.homeTeam[this.homeTeamStatisticsType].totalLive+n.visitingTeam[this.visitingTeamStatisticsType].totalLive;c=m?n.visitingTeam[this.visitingTeamStatisticsType].totalLive/m:0,d=n.visitingTeam[this.visitingTeamStatisticsType].totalLive}o.data.push(Math.round(120*r)),o.dataTotal.push(Math.round(y)),s.data.push(Math.round(120*c)),s.dataTotal.push(Math.round(d))})),[o,s]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,o){const s=o===0?"homeTeam":"visitingTeam",n=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=n.id!=="3-0",this.tooltip.data=this.getSubcategoryData(n,s),this.tooltip.local=o===0,this.tooltip.names=n.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(n);const i=e.globals.clientX||0,r=e.globals.clientY||0;this.globals.x=i,this.globals.y=r,this.tooltip.x=i,this.tooltip.y=r>700?r-250:r;const c=n.generalCategoriesIds.accomplished===3;if(c){const y=n.homeTeam.accomplished.avgPostGame+n.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?n[s].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=c,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const o=Math.abs(e.clientX-this.globals.x),s=Math.abs(e.clientY-this.globals.y);(o>5||s>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let o=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return o;const s=13;if(o.length>s){let n=o.split(" ");o=[];let i="",r="",c=n.slice(-1)[0];n.forEach(y=>{i+=` ${y} `,i.length>s&&(o.push(r.trim()),i=y),r=i,c===y&&o.push(r.trim())})}return o},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,o)=>a+o.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},k1=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),BI={key:0,class:"distribution-leyend"},$I=k1(()=>t.createElementVNode("br",null,null,-1)),xI={class:"distribution"},VI={class:"distribution__container"},II={class:"distribution__container__chart-type__title"},AI=k1(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),OI={class:"distribution__container__chart-type__chart"};function TI(e,a,o,s,n,i){const r=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",BI,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(i.timeLeft),1),t.createTextVNode(" para el inicio."),$I,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(o.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",xI,[t.createElementVNode("div",VI,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.arrayDataForCharts,(c,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",II,t.toDisplayString(c.name),1),AI,t.createElementVNode("div",OI,[(t.openBlock(),t.createBlock(r,{type:"radar",height:n.height,options:n.arrayChartOptions[y],series:n.arrayFilledSeries[y],key:n.chartKeyCounter+n.updateCategory+y},null,8,["height","options","series"]))])]))),128))])])],64)}const FI=Ae(NI,[["render",TI],["__scopeId","data-v-383baec7"]]),zI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Hd={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(a){throw new Error(a)}}}},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)}}},S1=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},E1=Hd.setup;Hd.setup=E1?(e,a)=>(S1(),E1(e,a)):S1;const PI={key:0,class:"text-left"},RI=["width","src"],DI=["checked"],jI=["width","src"],LI={key:3,class:"text-right"};function vI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",PI,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,RI)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,DI),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,jI)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",LI,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const MI=zI(Hd,[["render",vI],["__scopeId","data-v-e2a20444"]]),pMe="",hMe="",HI={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 UI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",i.showTooltip]),style:t.normalizeStyle(i.positionTooltip),onClick:a[0]||(a[0]=(...r)=>i.tooltipClick&&i.tooltipClick(...r))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const N1=Ae(HI,[["render",UI],["__scopeId","data-v-33a39744"]]),yMe="",GI={name:"SoccerChalkboard",components:{Tooltip:N1},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:{...Te("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,a)=>({id:a,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((s,n)=>[...s,n.categories],[]);return this.preparedPlays.filter(s=>this.findCategoryInPlay(e,s)).reduce((s,n)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,n));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:n.jersey_number,matchlapse:n.matchLapse,playerName:n.player_name,photo:n.photo,rivalLogo:n.rival_id,x1:i.invert.includes(n.categoryId)?100-n[`x${i.points[0]}`]:n[`x${i.points[0]}`],y1:i.invert.includes(n.categoryId)?100-n[`y${i.points[0]}`]:n[`y${i.points[0]}`],x2:i.invert.includes(n.categoryId)?100-n[`x${i.points[1]}`]:n[`x${i.points[1]}`],y2:i.invert.includes(n.categoryId)?100-n[`y${i.points[1]}`]:n[`y${i.points[1]}`],x3:i.invert.includes(n.categoryId)?100-n[`x${i.points[2]}`]:n[`x${i.points[2]}`],y3:i.invert.includes(n.categoryId)?100-n[`y${i.points[2]}`]:n[`y${i.points[2]}`],momentOfPlay:n.moment_of_play,isOwnGoal:i.invert.includes(n.categoryId),xGi:n.xGi,xGf:n.xGf};s.push(r)}return s},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Os=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),WI={class:"soccer-chalkboard-xg"},qI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},JI={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},XI=Os(()=>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)),ZI=["id"],YI=["fill"],KI=Os(()=>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)),QI=["id"],eA=["x1","y1","x2","y2","stroke"],tA=["x1","y1","x2","y2","stroke","marker-end"],aA=["onMouseover"],oA=["x","y","fill"],sA=["x","y"],nA={class:"tooltip-data has-text-left"},iA={class:"bold"},rA={class:"tooltip-image"},lA={class:"tooltip-image"},cA=["src"],dA={class:"tooltip-xg"},mA={key:0},pA=Os(()=>t.createElementVNode("span",null,"xGi:",-1)),hA=Os(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),yA={key:1},gA=Os(()=>t.createElementVNode("span",null,"xGf:",-1));function uA(e,a,o,s,n,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",WI,[(t.openBlock(),t.createElementBlock("svg",qI,[(t.openBlock(),t.createElementBlock("svg",JI,[t.createElementVNode("defs",null,[XI,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.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:c.color},null,8,YI)],8,ZI))),128)),KI]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,eA),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,tA),t.createElementVNode("g",{onMouseover:y=>i.onMouseOver(y,c),onMouseleave:a[0]||(a[0]=(...y)=>i.onMouseLeave&&i.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,oA),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(c.jersey),9,sA)],40,aA)],8,QI))),128))]))])),t.createVNode(r,{data:n.data},{default:t.withCtx(()=>[t.createElementVNode("div",nA,[t.createElementVNode("div",null,[t.createElementVNode("span",iA,t.toDisplayString(n.dataPlay.isOwnGoal?"Autogol":n.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(n.dataPlay.playerName)+" ",1),t.createElementVNode("div",rA,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+n.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(n.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",lA,[t.createElementVNode("img",{src:n.dataPlay.rivalLogo},null,8,cA)])]),t.createElementVNode("div",dA,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGi)&&n.dataPlay.xGi<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",mA,[pA,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),hA,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGf)&&n.dataPlay.xGf<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yA,[gA,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const B1=Ae(GI,[["render",uA],["__scopeId","data-v-883eff7a"]]),Li=[{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]}],gMe="",fA={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},$1=e=>(t.pushScopeId("data-v-7a0399e9"),e=e(),t.popScopeId(),e),_A={class:"xg-container"},bA={class:"xg-container__info"},wA=$1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),CA={class:"table"},kA={class:"table__row"},SA={class:"table__row__title"},EA={class:"table__row__value"},NA=["src"],BA={class:"table__row"},$A={class:"table__row__title"},xA={class:"table__row__value"},VA={class:"table__row"},IA={class:"table__row__title"},AA={class:"table__row__value"},OA=$1(()=>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)),TA={class:"xg-container__field"};function FA(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",_A,[t.createElementVNode("div",bA,[wA,t.createElementVNode("div",CA,[t.createElementVNode("div",kA,[t.createElementVNode("div",SA,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",EA,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,NA)])]),t.createElementVNode("div",BA,[t.createElementVNode("div",$A,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",xA,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",VA,[t.createElementVNode("div",IA,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",AA,t.toDisplayString(i.gxInfoItems[2].value),1)])]),OA]),t.createElementVNode("div",TA,[t.createVNode(r,{plays:e.playsLocal,categories:n.categories,team:e.team},null,8,["plays","categories","team"])])])}const zA=Ae(fA,[["render",FA],["__scopeId","data-v-7a0399e9"]]),uMe="",PA={name:"Xg",components:{SoccerChalkboard:B1},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.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.setTeamSelected("Visiting"),this.fillXgPlays()}},x1=e=>(t.pushScopeId("data-v-ec94eadc"),e=e(),t.popScopeId(),e),RA={class:"xg-container"},DA={class:"xg-container__info"},jA=x1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),LA={class:"table"},vA={class:"table__row"},MA={class:"table__row__title"},HA={class:"table__row__value"},UA=["src"],GA={class:"table__row"},WA={class:"table__row__title"},qA={class:"table__row__value"},JA={class:"table__row"},XA={class:"table__row__title"},ZA={class:"table__row__value"},YA=x1(()=>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)),KA={class:"xg-container__field"};function QA(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",RA,[t.createElementVNode("div",DA,[jA,t.createElementVNode("div",LA,[t.createElementVNode("div",vA,[t.createElementVNode("div",MA,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",HA,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,UA)])]),t.createElementVNode("div",GA,[t.createElementVNode("div",WA,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",qA,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",JA,[t.createElementVNode("div",XA,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",ZA,t.toDisplayString(i.gxInfoItems[2].value),1)])]),YA]),t.createElementVNode("div",KA,[t.createVNode(r,{plays:e.playsAway,categories:n.categories,team:o.team},null,8,["plays","categories","team"])])])])}const eO=Ae(PA,[["render",QA],["__scopeId","data-v-ec94eadc"]]),fMe="",tO={name:"SoccerChalkboard",components:{Tooltip:N1},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:{...Te("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,a)=>({id:a,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((s,n)=>[...s,n.categories],[]);return this.preparedPlays.filter(s=>this.findCategoryInPlay(e,s)).reduce((s,n)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,n));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:n.jersey_number,matchlapse:n.matchLapse,playerName:n.player_name,photo:n.photo,rivalLogo:n.rival_id,x1:i.invert.includes(n.categoryId)?100-n[`x${i.points[0]}`]:n[`x${i.points[0]}`],y1:i.invert.includes(n.categoryId)?100-n[`y${i.points[0]}`]:n[`y${i.points[0]}`],x2:i.invert.includes(n.categoryId)?100-n[`x${i.points[1]}`]:n[`x${i.points[1]}`],y2:i.invert.includes(n.categoryId)?100-n[`y${i.points[1]}`]:n[`y${i.points[1]}`],x3:i.invert.includes(n.categoryId)?100-n[`x${i.points[2]}`]:n[`x${i.points[2]}`],y3:i.invert.includes(n.categoryId)?100-n[`y${i.points[2]}`]:n[`y${i.points[2]}`],momentOfPlay:n.moment_of_play,isOwnGoal:i.invert.includes(n.categoryId),xGi:n.xGi,xGf:n.xGf};s.push(r)}return s},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.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}}},Ts=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),aO={class:"soccer-chalkboard-xg"},oO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},sO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},nO=Ts(()=>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)),iO=["id"],rO=["fill"],lO=Ts(()=>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)),cO=["id"],dO=["x1","y1","x2","y2","stroke"],mO=["x1","y1","x2","y2","stroke","marker-end"],pO=["onMouseover"],hO=["x","y","fill"],yO=["x","y"],gO={class:"tooltip-data has-text-left"},uO={class:"bold"},fO={class:"tooltip-image"},_O={class:"tooltip-image"},bO=["src"],wO={class:"tooltip-xg"},CO={key:0},kO=Ts(()=>t.createElementVNode("span",null,"xGi:",-1)),SO=Ts(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),EO={key:1},NO=Ts(()=>t.createElementVNode("span",null,"xGf:",-1));function BO(e,a,o,s,n,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",aO,[(t.openBlock(),t.createElementBlock("svg",oO,[(t.openBlock(),t.createElementBlock("svg",sO,[t.createElementVNode("defs",null,[nO,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.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:c.color},null,8,rO)],8,iO))),128)),lO]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,dO),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,mO),t.createElementVNode("g",{onMouseover:y=>i.onMouseOver(y,c),onMouseleave:a[0]||(a[0]=(...y)=>i.onMouseLeave&&i.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,hO),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(c.jersey),9,yO)],40,pO)],8,cO))),128))]))])),t.createVNode(r,{data:n.data},{default:t.withCtx(()=>[t.createElementVNode("div",gO,[t.createElementVNode("div",null,[t.createElementVNode("span",uO,t.toDisplayString(n.dataPlay.isOwnGoal?"Autogol":n.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(n.dataPlay.playerName)+" ",1),t.createElementVNode("div",fO,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+n.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(n.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",_O,[t.createElementVNode("img",{src:n.dataPlay.rivalLogo},null,8,bO)])]),t.createElementVNode("div",wO,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGi)&&n.dataPlay.xGi<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",CO,[kO,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),SO,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(n.dataPlay.xGf)&&n.dataPlay.xGf<=1&&!n.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",EO,[NO,t.createTextVNode(" "+t.toDisplayString(Number(n.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const V1=Ae(tO,[["render",BO],["__scopeId","data-v-f6c30694"]]),_Me="",$O={name:"Xg",components:{SoccerChalkboard:V1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},I1=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),xO={class:"xg-container"},VO=I1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),IO={class:"xg-container__field"},AO={class:"xg-container__info"},OO={class:"table"},TO={class:"table__row"},FO={class:"table__row__title"},zO={class:"table__row__value"},PO=["src"],RO={class:"table__row"},DO={class:"table__row__title"},jO={class:"table__row__value"},LO={class:"table__row"},vO={class:"table__row__title"},MO={class:"table__row__value"},HO=I1(()=>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 UO(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",xO,[VO,t.createElementVNode("div",IO,[t.createVNode(r,{plays:e.playsLocal,categories:n.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",AO,[t.createElementVNode("div",OO,[t.createElementVNode("div",TO,[t.createElementVNode("div",FO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",zO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,PO)])]),t.createElementVNode("div",RO,[t.createElementVNode("div",DO,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",jO,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",LO,[t.createElementVNode("div",vO,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",MO,t.toDisplayString(i.gxInfoItems[2].value),1)])]),HO])])}const GO=Ae($O,[["render",UO],["__scopeId","data-v-fb5342de"]]),bMe="",WO={name:"Xg",components:{SoccerChalkboard:V1},props:{},data(){return{categories:Li}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("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()}},A1=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),qO={class:"xg-container"},JO=A1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),XO={class:"xg-container__field"},ZO={class:"xg-container__info"},YO={class:"table"},KO={class:"table__row"},QO={class:"table__row__title"},eT={class:"table__row__value"},tT=["src"],aT={class:"table__row"},oT={class:"table__row__title"},sT={class:"table__row__value"},nT={class:"table__row"},iT={class:"table__row__title"},rT={class:"table__row__value"},lT=A1(()=>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 cT(e,a,o,s,n,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",qO,[JO,t.createElementVNode("div",XO,[t.createVNode(r,{plays:e.playsAway,categories:n.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",ZO,[t.createElementVNode("div",YO,[t.createElementVNode("div",KO,[t.createElementVNode("div",QO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",eT,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,tT)])]),t.createElementVNode("div",aT,[t.createElementVNode("div",oT,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",sT,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",nT,[t.createElementVNode("div",iT,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",rT,t.toDisplayString(i.gxInfoItems[2].value),1)])]),lT])])}const dT=Ae(WO,[["render",cT],["__scopeId","data-v-38eed9b5"]]),wMe="";let O1=null;const mT={name:"XgMain",components:{GSCSwitchRadio:MI,SoccerChalkboardLocal:zA,SoccerChalkboardAway:eO,SoccerChalkboardLocalMobile:GO,SoccerChalkboardAwayMobile:dT},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)O1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),O1.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))}},pT={class:"xg",ref:"gamesContainer"},hT={key:0,class:"selector-team"};function yT(e,a,o,s,n,i){const r=t.resolveComponent("GSCSwitchRadio"),c=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),d=t.resolveComponent("SoccerChalkboardLocalMobile"),l=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",pT,[n.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",hT,[t.createVNode(r,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:n.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:i.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),n.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(c,{key:1,class:"local"})):t.createCommentVNode("",!0),n.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),n.gamesContainerWidth<655&&n.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(d,{key:3})):t.createCommentVNode("",!0),n.gamesContainerWidth<655&&n.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(l,{key:4})):t.createCommentVNode("",!0)],512)}const gT=Ae(mT,[["render",yT],["__scopeId","data-v-20bd873f"]]),CMe="",uT={class:"statistics-main"},fT={class:"statistics-main__header"},_T={class:"statistics-main__header__filter"},bT=t.defineComponent({name:"TemplateVideos",components:{TrendLive:M$,Comparative:EI,Distribution:FI,GSCSlider:Md,XG:gT}}),wT=Ae(Object.assign(bT,{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:()=>({})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=fu(),n=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"}),i=t.ref({}),r=t.ref(null),c=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"}]);let y=t.ref(c.value[0]),d=t.ref(0);t.watch(()=>o.game,p=>{const u={...p};l(u),d.value++},{deep:!0,immediate:!0});async function l(p){try{i.value.gameId!==p.gameId&&(i.value=p,await s.dispatch("nextGeneral/cleanStats"),await s.dispatch("nextGeneral/checkState",{gameId:p.gameId,currentSeasonId:p.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:p}))}catch(u){throw new Error(u)}}function m(p){y.value=p}function h(){s.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 g(p){a("openmedia",p)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{o.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),h(),(p,u)=>(t.openBlock(),t.createElementBlock("div",uT,[t.createElementVNode("div",fT,[t.createVNode(t.unref(Md),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f.id,class:"game-time-line__options__option"},[t.createVNode(hu,t.mergeProps(n.value,{text:f.name,"is-active":t.unref(y).id===f.id,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",_T,[t.createVNode(EB)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(d)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(y).componentName),{seasonSelected:e.seasonSelected,game:e.game,onOpenmedia:g},null,40,["seasonSelected","game"]))]))]))}}),[["__scopeId","data-v-524c07a0"]]);function T1(e,a){return function(){return e.apply(a,arguments)}}const{toString:CT}=Object.prototype,{getPrototypeOf:Ud}=Object,vi=(e=>a=>{const o=CT.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ta=e=>(e=e.toLowerCase(),a=>vi(a)===e),Mi=e=>a=>typeof a===e,{isArray:Vo}=Array,Fs=Mi("undefined");function kT(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const F1=ta("ArrayBuffer");function ST(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&F1(e.buffer),a}const ET=Mi("string"),Bt=Mi("function"),z1=Mi("number"),Hi=e=>e!==null&&typeof e=="object",NT=e=>e===!0||e===!1,Ui=e=>{if(vi(e)!=="object")return!1;const a=Ud(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BT=ta("Date"),$T=ta("File"),xT=ta("Blob"),VT=ta("FileList"),IT=e=>Hi(e)&&Bt(e.pipe),AT=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((a=vi(e))==="formdata"||a==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},OT=ta("URLSearchParams"),TT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zs(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Vo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function P1(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const R1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),D1=e=>!Fs(e)&&e!==R1;function Gd(){const{caseless:e}=D1(this)&&this||{},a={},o=(s,n)=>{const i=e&&P1(a,n)||n;Ui(a[i])&&Ui(s)?a[i]=Gd(a[i],s):Ui(s)?a[i]=Gd({},s):Vo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&zs(arguments[s],o);return a}const FT=(e,a,o,{allOwnKeys:s}={})=>(zs(a,(n,i)=>{o&&Bt(n)?e[i]=T1(n,o):e[i]=n},{allOwnKeys:s}),e),zT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PT=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},RT=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ud(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},DT=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},jT=e=>{if(!e)return null;if(Vo(e))return e;let a=e.length;if(!z1(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},LT=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ud(Uint8Array)),vT=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},MT=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},HT=ta("HTMLFormElement"),UT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),j1=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),GT=ta("RegExp"),L1=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};zs(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},WT=e=>{L1(e,(a,o)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Bt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},qT=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Vo(e)?s(e):s(String(e).split(a)),o},JT=()=>{},XT=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Wd="abcdefghijklmnopqrstuvwxyz",v1="0123456789",M1={DIGIT:v1,ALPHA:Wd,ALPHA_DIGIT:Wd+Wd.toUpperCase()+v1},ZT=(e=16,a=M1.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function YT(e){return!!(e&&Bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const KT=e=>{const a=new Array(10),o=(s,n)=>{if(Hi(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Vo(s)?[]:{};return zs(s,(r,c)=>{const y=o(r,n+1);!Fs(y)&&(i[c]=y)}),a[n]=void 0,i}}return s};return o(e,0)},QT=ta("AsyncFunction"),eF=e=>e&&(Hi(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),L={isArray:Vo,isArrayBuffer:F1,isBuffer:kT,isFormData:AT,isArrayBufferView:ST,isString:ET,isNumber:z1,isBoolean:NT,isObject:Hi,isPlainObject:Ui,isUndefined:Fs,isDate:BT,isFile:$T,isBlob:xT,isRegExp:GT,isFunction:Bt,isStream:IT,isURLSearchParams:OT,isTypedArray:LT,isFileList:VT,forEach:zs,merge:Gd,extend:FT,trim:TT,stripBOM:zT,inherits:PT,toFlatObject:RT,kindOf:vi,kindOfTest:ta,endsWith:DT,toArray:jT,forEachEntry:vT,matchAll:MT,isHTMLForm:HT,hasOwnProperty:j1,hasOwnProp:j1,reduceDescriptors:L1,freezeMethods:WT,toObjectSet:qT,toCamelCase:UT,noop:JT,toFiniteNumber:XT,findKey:P1,global:R1,isContextDefined:D1,ALPHABET:M1,generateString:ZT,isSpecCompliantForm:YT,toJSONObject:KT,isAsyncFn:QT,isThenable:eF};function pe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}L.inherits(pe,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:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H1=pe.prototype,U1={};["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=>{U1[e]={value:e}}),Object.defineProperties(pe,U1),Object.defineProperty(H1,"isAxiosError",{value:!0}),pe.from=(e,a,o,s,n,i)=>{const r=Object.create(H1);return L.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),pe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const tF=null;function qd(e){return L.isPlainObject(e)||L.isArray(e)}function G1(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function W1(e,a,o){return e?e.concat(a).map(function(s,n){return s=G1(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function aF(e){return L.isArray(e)&&!e.some(qd)}const oF=L.toFlatObject(L,{},null,function(e){return/^is[A-Z]/.test(e)});function Gi(e,a,o){if(!L.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=L.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!L.isUndefined(p[g])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(a);if(!L.isFunction(n))throw new TypeError("visitor must be a function");function y(g){if(g===null)return"";if(L.isDate(g))return g.toISOString();if(!c&&L.isBlob(g))throw new pe("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(g)||L.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,p,u){let f=g;if(g&&!u&&typeof g=="object"){if(L.endsWith(p,"{}"))p=s?p:p.slice(0,-2),g=JSON.stringify(g);else if(L.isArray(g)&&aF(g)||(L.isFileList(g)||L.endsWith(p,"[]"))&&(f=L.toArray(g)))return p=G1(p),f.forEach(function(_,k){!(L.isUndefined(_)||_===null)&&a.append(r===!0?W1([p],k,i):r===null?p:p+"[]",y(_))}),!1}return qd(g)?!0:(a.append(W1(u,p,i),y(g)),!1)}const l=[],m=Object.assign(oF,{defaultVisitor:d,convertValue:y,isVisitable:qd});function h(g,p){if(!L.isUndefined(g)){if(l.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(g),L.forEach(g,function(u,f){(!(L.isUndefined(u)||u===null)&&n.call(a,u,L.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),a}function q1(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Jd(e,a){this._pairs=[],e&&Gi(e,this,a)}const J1=Jd.prototype;J1.append=function(e,a){this._pairs.push([e,a])},J1.toString=function(e){const a=e?function(o){return e.call(this,o,q1)}:q1;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function sF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X1(e,a,o){if(!a)return e;const s=o&&o.encode||sF,n=o&&o.serialize;let i;if(n?i=n(a,o):i=L.isURLSearchParams(a)?a.toString():new Jd(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const Z1=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){L.forEach(this.handlers,function(o){o!==null&&a(o)})}},Y1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nF=typeof URLSearchParams<"u"?URLSearchParams:Jd,iF=typeof FormData<"u"?FormData:null,rF=typeof Blob<"u"?Blob:null,lF={isBrowser:!0,classes:{URLSearchParams:nF,FormData:iF,Blob:rF},protocols:["http","https","file","blob","url","data"]},K1=typeof window<"u"&&typeof document<"u",cF=(e=>K1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K1,hasStandardBrowserEnv:cF,hasStandardBrowserWebWorkerEnv:dF},Symbol.toStringTag,{value:"Module"})),aa={...mF,...lF};function pF(e,a){return Gi(e,new aa.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return aa.isNode&&L.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function hF(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function yF(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function Q1(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),y=i>=o.length;return r=!r&&L.isArray(n)?n.length:r,y?(L.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!L.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&L.isArray(n[r])&&(n[r]=yF(n[r])),!c)}if(L.isFormData(e)&&L.isFunction(e.entries)){const o={};return L.forEachEntry(e,(s,n)=>{a(hF(s),n,o,0)}),o}return null}function gF(e,a,o){if(L.isString(e))try{return(a||JSON.parse)(e),L.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Xd={transitional:Y1,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=L.isObject(e);if(n&&L.isHTMLForm(e)&&(e=new FormData(e)),L.isFormData(e))return s?JSON.stringify(Q1(e)):e;if(L.isArrayBuffer(e)||L.isBuffer(e)||L.isStream(e)||L.isFile(e)||L.isBlob(e))return e;if(L.isArrayBufferView(e))return e.buffer;if(L.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return pF(e,this.formSerializer).toString();if((i=L.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Gi(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),gF(e)):e}],transformResponse:[function(e){const a=this.transitional||Xd.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&L.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?pe.from(i,pe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:aa.classes.FormData,Blob:aa.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],e=>{Xd.headers[e]={}});const Zd=Xd,uF=L.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"]),fF=e=>{const a={};let o,s,n;return e&&e.split(`
|
|
34
34
|
`).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&uF[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},ef=Symbol("internals");function Ps(e){return e&&String(e).trim().toLowerCase()}function Wi(e){return e===!1||e==null?e:L.isArray(e)?e.map(Wi):String(e)}function _F(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const bF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yd(e,a,o,s,n){if(L.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!L.isString(a)){if(L.isString(s))return a.indexOf(s)!==-1;if(L.isRegExp(s))return s.test(a)}}function wF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function CF(e,a){const o=L.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}let qi=class{constructor(a){a&&this.set(a)}set(a,o,s){const n=this;function i(c,y,d){const l=Ps(y);if(!l)throw new Error("header name must be a non-empty string");const m=L.findKey(n,l);(!m||n[m]===void 0||d===!0||d===void 0&&n[m]!==!1)&&(n[m||y]=Wi(c))}const r=(c,y)=>L.forEach(c,(d,l)=>i(d,l,y));return L.isPlainObject(a)||a instanceof this.constructor?r(a,o):L.isString(a)&&(a=a.trim())&&!bF(a)?r(fF(a),o):a!=null&&i(o,a,s),this}get(a,o){if(a=Ps(a),a){const s=L.findKey(this,a);if(s){const n=this[s];if(!o)return n;if(o===!0)return _F(n);if(L.isFunction(o))return o.call(this,n,s);if(L.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=Ps(a),a){const s=L.findKey(this,a);return!!(s&&this[s]!==void 0&&(!o||Yd(this,this[s],s,o)))}return!1}delete(a,o){const s=this;let n=!1;function i(r){if(r=Ps(r),r){const c=L.findKey(s,r);c&&(!o||Yd(s,s[c],c,o))&&(delete s[c],n=!0)}}return L.isArray(a)?a.forEach(i):i(a),n}clear(a){const o=Object.keys(this);let s=o.length,n=!1;for(;s--;){const i=o[s];(!a||Yd(this,this[i],i,a,!0))&&(delete this[i],n=!0)}return n}normalize(a){const o=this,s={};return L.forEach(this,(n,i)=>{const r=L.findKey(s,i);if(r){o[r]=Wi(n),delete o[i];return}const c=a?wF(i):String(i).trim();c!==i&&delete o[i],o[c]=Wi(n),s[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return L.forEach(this,(s,n)=>{s!=null&&s!==!1&&(o[n]=a&&L.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
35
35
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[ef]=this[ef]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=Ps(i);o[r]||(CF(s,i),o[r]=!0)}return L.isArray(a)?a.forEach(n):n(a),this}};qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(qi.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),L.freezeMethods(qi);const Aa=qi;function Kd(e,a){const o=this||Zd,s=a||o,n=Aa.from(s.headers);let i=s.data;return L.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function tf(e){return!!(e&&e.__CANCEL__)}function Rs(e,a,o){pe.call(this,e??"canceled",pe.ERR_CANCELED,a,o),this.name="CanceledError"}L.inherits(Rs,pe,{__CANCEL__:!0});function kF(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new pe("Request failed with status code "+o.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const SF=aa.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];L.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),L.isString(s)&&r.push("path="+s),L.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function EF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function NF(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function af(e,a){return e&&!EF(a)?NF(e,a):a}const BF=aa.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=L.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function $F(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function xF(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const y=Date.now(),d=s[i];r||(r=y),o[n]=c,s[n]=y;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),y-r<a)return;const h=d&&y-d;return h?Math.round(m*1e3/h):void 0}}function of(e,a){let o=0;const s=xF(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,y=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:y||void 0,estimated:y&&r&&d?(r-i)/y:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const VF=typeof XMLHttpRequest<"u",IF=VF&&function(e){return new Promise(function(a,o){let s=e.data;const n=Aa.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function y(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(L.isFormData(s)){if(aa.hasStandardBrowserEnv||aa.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[p,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([p||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(p+":"+u))}const m=af(e.baseURL,e.url);l.open(e.method.toUpperCase(),X1(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const p=Aa.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};kF(function(f){a(f),y()},function(f){o(f),y()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new pe("Request aborted",pe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new pe("Network Error",pe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||Y1;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),o(new pe(p,u.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,l)),l=null},aa.hasStandardBrowserEnv&&(r&&L.isFunction(r)&&(r=r(e)),r||r!==!1&&BF(m))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&SF.read(e.xsrfCookieName);p&&n.set(e.xsrfHeaderName,p)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&L.forEach(n.toJSON(),function(p,u){l.setRequestHeader(u,p)}),L.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",of(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",of(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(o(!p||p.type?new Rs(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const g=$F(m);if(g&&aa.protocols.indexOf(g)===-1){o(new pe("Unsupported protocol "+g+":",pe.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Qd={http:tF,xhr:IF};L.forEach(Qd,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const sf=e=>`- ${e}`,AF=e=>L.isFunction(e)||e===null||e===!1,nf={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!AF(o)&&(s=Qd[(r=String(o)).toLowerCase()],s===void 0))throw new pe(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,y])=>`adapter ${c} `+(y===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
36
36
|
`+i.map(sf).join(`
|