@golstats/gsc-game-data 1.0.219 → 1.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-3aab28df-cdb0628c.js → FilterConditions-3aab28df-54ad8afe.js} +1 -1
- package/dist/{FilterConditions-dc6b25de-DOW3ApFh-63a5092d.js → FilterConditions-dc6b25de-DOW3ApFh-185e92b9.js} +1 -1
- package/dist/{FilterField-37ad154d-CGBI29FT-de3d5776.js → FilterField-37ad154d-CGBI29FT-a54ccd80.js} +1 -1
- package/dist/{FilterField-c27c9666-43987b9d.js → FilterField-c27c9666-32b8d9f2.js} +1 -1
- package/dist/{FilterSubcategories-5a4d9250-349a0133.js → FilterSubcategories-5a4d9250-aedca41d.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Dq4ouXsj-1e24a80e.js → FilterSubcategories-a7b96423-Dq4ouXsj-33b6d24a.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-47b317ed.js → index-e53270cf.js} +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/{FilterConditions-3aab28df-cdb0628c.js → FilterConditions-3aab28df-54ad8afe.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as d, createElementBlock as i, normalizeStyle as $, createElementVNode as o, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as H, popScopeId as R } from "vue";
|
|
2
|
-
import { Z as T, Y as m } from "./index-
|
|
2
|
+
import { Z as T, Y as m } from "./index-e53270cf.js";
|
|
3
3
|
const n = (s) => (H("data-v-80d9c265"), s = s(), R(), s), V = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, z = { class: "details__body" }, F = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), Y = { class: "details__header__checkbox" }, D = { class: "details__body" }, J = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "1er tiempo", -1)), j = { class: "details__body__game-section" }, q = ["onClick"], w = { class: "details__body" }, G = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "2do tiempo", -1)), K = { class: "details__body__game-section" }, M = ["onClick"], O = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as R, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as V, popScopeId as $ } from "vue";
|
|
2
|
-
import { r as H, R as m } from "./index-
|
|
2
|
+
import { r as H, R as m } from "./index-e53270cf.js";
|
|
3
3
|
const n = (o) => (V("data-v-80d9c265"), o = o(), $(), o), T = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, z = { class: "details__body" }, F = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), D = { class: "details__header__checkbox" }, J = { class: "details__body" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], Q = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
package/dist/{FilterField-37ad154d-CGBI29FT-de3d5776.js → FilterField-37ad154d-CGBI29FT-a54ccd80.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, openBlock as a, createElementBlock as n, createVNode as c, unref as d } from "vue";
|
|
2
|
-
import { r as u, H as f } from "./index-
|
|
2
|
+
import { r as u, H as f } from "./index-e53270cf.js";
|
|
3
3
|
const i = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(s) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r, openBlock as a, createElementBlock as n, createVNode as c, unref as u } from "vue";
|
|
2
|
-
import { Z as d, o as i } from "./index-
|
|
2
|
+
import { Z as d, o as i } from "./index-e53270cf.js";
|
|
3
3
|
const f = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(p) {
|
package/dist/{FilterSubcategories-5a4d9250-349a0133.js → FilterSubcategories-5a4d9250-aedca41d.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as o, Fragment as t, renderList as u, createVNode as d, createBlock as n, unref as i } from "vue";
|
|
2
|
-
import { Z as l, Y as g } from "./index-
|
|
2
|
+
import { Z as l, Y as g } from "./index-e53270cf.js";
|
|
3
3
|
const y = { class: "subcategory-group" }, b = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as a, Fragment as t, renderList as u, createVNode as d, createBlock as i, unref as n } from "vue";
|
|
2
|
-
import { r as l, R as y } from "./index-
|
|
2
|
+
import { r as l, R as y } from "./index-e53270cf.js";
|
|
3
3
|
const b = { class: "subcategory-group" }, g = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
package/dist/gsc-game-data.js
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div class="__title">${L}:</div>
|
|
32
32
|
<div class="__totals">${d}: ${g}</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}}}},getChartSeries(e,n){let r,I;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);const g=L.homeTeam[this.homeTeamStatisticsType].totalPostGame+L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(g?L.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),r.dataTotal.push(L.homeTeam[this.homeTeamStatisticsType].totalPostGame),I.data.push(Math.round(120*(g?L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),I.dataTotal.push(L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);let g,a,_,m;const i=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(g=L.homeTeam.accomplished.avgPostGame/i,_=L.homeTeam.accomplished.totalPostGame):(g=i?L.homeTeam[this.homeTeamStatisticsType].avgPostGame/i:0,_=L.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?L.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,_=L.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(a=L.visitingTeam.accomplished.avgPostGame/i,m=L.visitingTeam.accomplished.totalPostGame):(a=i?L.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/i:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?L.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*g)),r.dataTotal.push(Math.round(_)),I.data.push(Math.round(120*a)),I.dataTotal.push(Math.round(m))})),[r,I]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,r){const I=r===0?"homeTeam":"visitingTeam",L=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=L.id!=="3-0",this.tooltip.data=this.getSubcategoryData(L,I),this.tooltip.local=r===0,this.tooltip.names=L.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(L);const d=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=d,this.globals.y=g,this.tooltip.x=d,this.tooltip.y=g>700?g-250:g;const a=L.generalCategoriesIds.accomplished===3;if(a){const _=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?L[I].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),I=Math.abs(e.clientY-this.globals.y);(r>5||I>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return r;const I=13;if(r.length>I){let L=r.split(" ");r=[];let d="",g="",a=L.slice(-1)[0];L.forEach(_=>{d+=` ${_} `,d.length>I&&(r.push(g.trim()),d=_),g=d,a===_&&r.push(g.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,r)=>n+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},xce=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),wce={class:"distribution"},kce={class:"distribution__container"},Cce={class:"distribution__container__chart-type__title"},Sce=xce(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Tce={class:"distribution__container__chart-type__chart"};function Ece(e,n,r,I,L,d){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",wce,[t.createElementVNode("div",kce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayDataForCharts,(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",Cce,t.toDisplayString(a.name),1),Sce,t.createElementVNode("div",Tce,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:L.height,options:L.arrayChartOptions[_],series:L.arrayFilledSeries[_]},null,8,["height","options","series"])])]))),128))])])}const Ace=Gr(bce,[["render",Ece],["__scopeId","data-v-305d7521"]]),Mce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},u6={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(n){throw new Error(n)}}}},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)}}},_N=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},bN=u6.setup;u6.setup=bN?(e,n)=>(_N(),bN(e,n)):_N;const Ice={key:0,class:"text-left"},Pce=["width","src"],Nce=["checked"],Bce=["width","src"],Oce={key:3,class:"text-right"};function zce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Ice,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,Pce)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,Nce),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,Bce)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Oce,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Lce=Mce(u6,[["render",zce],["__scopeId","data-v-e2a20444"]]),qha="",Yha="",Fce={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 Dce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),style:t.normalizeStyle(d.positionTooltip),onClick:n[0]||(n[0]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const xN=Gr(Fce,[["render",Dce],["__scopeId","data-v-0cf5a19c"]]),Zha="",Vce={name:"SoccerChalkboardXg",components:{Tooltip:xN},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:{...Ml("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,n)=>({id:n,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((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Cg=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),Rce={class:"soccer-chalkboard-xg"},$ce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},jce={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Uce=Cg(()=>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)),Hce=["id"],Gce=["fill"],Wce=Cg(()=>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)),qce=["id"],Yce=["x1","y1","x2","y2","stroke"],Zce=["x1","y1","x2","y2","stroke","marker-end"],Jce=["onMouseover"],Xce=["x","y","fill"],Kce=["x","y"],Qce={class:"tooltip-data has-text-left"},ede={class:"bold"},tde={class:"tooltip-image"},ade={class:"tooltip-image"},nde=["src"],rde={class:"tooltip-xg"},ide={key:0},ode=Cg(()=>t.createElementVNode("span",null,"xGi:",-1)),sde=Cg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),lde={key:1},cde=Cg(()=>t.createElementVNode("span",null,"xGf:",-1));function dde(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Rce,[(t.openBlock(),t.createElementBlock("svg",$ce,[(t.openBlock(),t.createElementBlock("svg",jce,[t.createElementVNode("defs",null,[Uce,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Gce)],8,Hce))),128)),Wce]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Yce),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Zce),t.createElementVNode("g",{onMouseover:_=>d.onMouseOver(_,a),onMouseleave:n[0]||(n[0]=(..._)=>d.onMouseLeave&&d.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,Xce),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,Kce)],40,Jce)],8,qce))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",Qce,[t.createElementVNode("div",null,[t.createElementVNode("span",ede,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",tde,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",ade,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,nde)])]),t.createElementVNode("div",rde,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",ide,[ode,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),sde,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",lde,[cde,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const wN=Gr(Vce,[["render",dde],["__scopeId","data-v-d2d32849"]]),ab=[{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]}],Jha="",ude={name:"XgLocal",components:{SoccerChalkboard:wN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},kN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),hde={class:"xg-container"},pde={class:"xg-container__info"},fde=kN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),mde={class:"table"},gde={class:"table__row"},yde={class:"table__row__title"},vde={class:"table__row__value"},_de=["src"],bde={class:"table__row"},xde={class:"table__row__title"},wde={class:"table__row__value"},kde={class:"table__row"},Cde={class:"table__row__title"},Sde={class:"table__row__value"},Tde=kN(()=>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)),Ede={class:"xg-container__field"};function Ade(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",hde,[t.createElementVNode("div",pde,[fde,t.createElementVNode("div",mde,[t.createElementVNode("div",gde,[t.createElementVNode("div",yde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",vde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,_de)])]),t.createElementVNode("div",bde,[t.createElementVNode("div",xde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",wde,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",kde,[t.createElementVNode("div",Cde,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Sde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Tde]),t.createElementVNode("div",Ede,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])])])}const Mde=Gr(ude,[["render",Ade],["__scopeId","data-v-a13ade42"]]),Xha="",Ide={name:"XgAway",components:{SoccerChalkboard:wN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},CN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Pde={class:"xg-container"},Nde={class:"xg-container__info"},Bde=CN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ode={class:"table"},zde={class:"table__row"},Lde={class:"table__row__title"},Fde={class:"table__row__value"},Dde=["src"],Vde={class:"table__row"},Rde={class:"table__row__title"},$de={class:"table__row__value"},jde={class:"table__row"},Ude={class:"table__row__title"},Hde={class:"table__row__value"},Gde=CN(()=>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)),Wde={class:"xg-container__field"};function qde(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Pde,[t.createElementVNode("div",Nde,[Bde,t.createElementVNode("div",Ode,[t.createElementVNode("div",zde,[t.createElementVNode("div",Lde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Fde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Dde)])]),t.createElementVNode("div",Vde,[t.createElementVNode("div",Rde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",$de,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",jde,[t.createElementVNode("div",Ude,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Hde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Gde]),t.createElementVNode("div",Wde,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:r.team},null,8,["plays","categories","team"])])])])}const Yde=Gr(Ide,[["render",qde],["__scopeId","data-v-ddcacec9"]]),Kha="",Zde={name:"SoccerChalkboardXgMobile",components:{Tooltip:xN},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:{...Ml("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,n)=>({id:n,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((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.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}}},Sg=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Jde={class:"soccer-chalkboard-xg"},Xde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Kde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qde=Sg(()=>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)),eue=["id"],tue=["fill"],aue=Sg(()=>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)),nue=["id"],rue=["x1","y1","x2","y2","stroke"],iue=["x1","y1","x2","y2","stroke","marker-end"],oue=["onMouseover"],sue=["x","y","fill"],lue=["x","y"],cue={class:"tooltip-data has-text-left"},due={class:"bold"},uue={class:"tooltip-image"},hue={class:"tooltip-image"},pue=["src"],fue={class:"tooltip-xg"},mue={key:0},gue=Sg(()=>t.createElementVNode("span",null,"xGi:",-1)),yue=Sg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),vue={key:1},_ue=Sg(()=>t.createElementVNode("span",null,"xGf:",-1));function bue(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Jde,[(t.openBlock(),t.createElementBlock("svg",Xde,[(t.openBlock(),t.createElementBlock("svg",Kde,[t.createElementVNode("defs",null,[Qde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,tue)],8,eue))),128)),aue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,rue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,iue),t.createElementVNode("g",{onMouseover:_=>d.onMouseOver(_,a),onMouseleave:n[0]||(n[0]=(..._)=>d.onMouseLeave&&d.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,sue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,lue)],40,oue)],8,nue))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",cue,[t.createElementVNode("div",null,[t.createElementVNode("span",due,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",uue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",hue,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,pue)])]),t.createElementVNode("div",fue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",mue,[gue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),yue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",vue,[_ue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const SN=Gr(Zde,[["render",bue],["__scopeId","data-v-9bd26437"]]),Qha="",xue={name:"Xg",components:{SoccerChalkboard:SN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("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,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("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()}},TN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),wue={class:"xg-container"},kue=TN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Cue={class:"xg-container__field"},Sue={class:"xg-container__info"},Tue={class:"table"},Eue={class:"table__row"},Aue={class:"table__row__title"},Mue={class:"table__row__value"},Iue=["src"],Pue={class:"table__row"},Nue={class:"table__row__title"},Bue={class:"table__row__value"},Oue={class:"table__row"},zue={class:"table__row__title"},Lue={class:"table__row__value"},Fue=TN(()=>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 Due(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",wue,[kue,t.createElementVNode("div",Cue,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Sue,[t.createElementVNode("div",Tue,[t.createElementVNode("div",Eue,[t.createElementVNode("div",Aue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Mue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Iue)])]),t.createElementVNode("div",Pue,[t.createElementVNode("div",Nue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Bue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Oue,[t.createElementVNode("div",zue,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Lue,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Fue])])}const Vue=Gr(xue,[["render",Due],["__scopeId","data-v-fe06617a"]]),epa="",Rue={name:"Xg",components:{SoccerChalkboard:SN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("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,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("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()}},EN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),$ue={class:"xg-container"},jue=EN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Uue={class:"xg-container__field"},Hue={class:"xg-container__info"},Gue={class:"table"},Wue={class:"table__row"},que={class:"table__row__title"},Yue={class:"table__row__value"},Zue=["src"],Jue={class:"table__row"},Xue={class:"table__row__title"},Kue={class:"table__row__value"},Que={class:"table__row"},ehe={class:"table__row__title"},the={class:"table__row__value"},ahe=EN(()=>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 nhe(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",$ue,[jue,t.createElementVNode("div",Uue,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hue,[t.createElementVNode("div",Gue,[t.createElementVNode("div",Wue,[t.createElementVNode("div",que,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Yue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Zue)])]),t.createElementVNode("div",Jue,[t.createElementVNode("div",Xue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Kue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Que,[t.createElementVNode("div",ehe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",the,t.toDisplayString(d.gxInfoItems[2].value),1)])]),ahe])])}const rhe=Gr(Rue,[["render",nhe],["__scopeId","data-v-e1c76ea1"]]),tpa="";let AN=null;const ihe={name:"XgMain",components:{GSCSwitchRadio:Lce,SoccerChalkboardLocal:Mde,SoccerChalkboardAway:Yde,SoccerChalkboardLocalMobile:Vue,SoccerChalkboardAwayMobile:rhe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)AN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),AN.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))}},ohe={class:"xg",ref:"gamesContainer"},she={key:0,class:"selector-team"};function lhe(e,n,r,I,L,d){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),m=t.resolveComponent("SoccerChalkboardLocalMobile"),i=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",ohe,[L.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",she,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:L.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:d.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:3})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(i,{key:4})):t.createCommentVNode("",!0)],512)}const che=Gr(ihe,[["render",lhe],["__scopeId","data-v-12759086"]]),apa="",h6=e=>(t.pushScopeId("data-v-fb0d4a6b"),e=e(),t.popScopeId(),e),dhe={class:"statistics-main"},uhe={class:"statistics-main__header"},hhe={class:"statistics-main__header__filter"},phe={key:0,class:"statistics-main__header__live-switch"},fhe=h6(()=>t.createElementVNode("div",null,"Este partido",-1)),mhe=h6(()=>t.createElementVNode("div",null,"Acumulado",-1)),ghe={class:"statistics-main__header__info"},yhe=h6(()=>t.createElementVNode("br",null,null,-1)),vhe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:woe,Comparative:_ce,Distribution:Ace,GSCSlider:kg,XG:che}}),_he=Gr(Object.assign(vhe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const r=e,I=og(),L=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"}),d=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),_=t.ref(a.value[0]),m=t.ref(!1),i=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),p=new Date(r.game.dateTimeUTC).getTime()-u,f=Math.floor(p/(1e3*60*60*24)),y=Math.floor(p%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(p%(1e3*60*60)/(1e3*60)),x=Math.floor(p%(1e3*60)/1e3);let M="";return x>0&&(M=x===1?x+" segundo":x+" segundos"),w>0&&(M=w===1?w+" minuto":w+" minutos"),y>0&&(M=y===1?y+" hora":y+" horas"),f>0&&(M=f===1?f+" día":f+" días"),M}),b=t.computed(()=>_.value.id==="st4"||(r.game.is_live||r.game.game_status===0)&&!I.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":(r.game.game_status===1||r.game.is_live||r.game.game_status===0)&&I.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>r.game,u=>{const h={...u};m.value=!r.game.is_live,r.game.is_live||Hw(),c(h),i.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,u=>{I.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function c(u){try{d.value.gameId!==u.gameId&&(d.value=u,await I.dispatch("nextGeneral/cleanStats"),await I.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:u}))}catch(h){throw new Error(h)}}function s(u){_.value=u}function o(){I.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 l(u){I.state.nextGeneral.usePastSeasonId&&(u.seasonId=I.state.nextGeneral.pastSeasonId),n("openmedia",u)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),o(),(u,h)=>(t.openBlock(),t.createElementBlock("div",dhe,[t.createElementVNode("div",uhe,[t.createVNode(t.unref(kg),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(bP,t.mergeProps(L.value,{text:p.name,"is-active":_.value.id===p.id,onClick:f=>s(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",hhe,[t.createVNode(Iie)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",phe,[fhe,t.createElementVNode("div",null,[t.createVNode(xP,{modelValue:m.value,"onUpdate:modelValue":h[0]||(h[0]=p=>m.value=p)},null,8,["modelValue"])]),mhe],512)),[[t.vShow,_.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",ghe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),yhe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(b.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:i.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(I).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:l},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-fb0d4a6b"]]);function MN(e,n){return function(){return e.apply(n,arguments)}}const{toString:bhe}=Object.prototype,{getPrototypeOf:p6}=Object,nb=(e=>n=>{const r=bhe.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Wu=e=>(e=e.toLowerCase(),n=>nb(n)===e),rb=e=>n=>typeof n===e,{isArray:j0}=Array,Tg=rb("undefined");function xhe(e){return e!==null&&!Tg(e)&&e.constructor!==null&&!Tg(e.constructor)&&jd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const IN=Wu("ArrayBuffer");function whe(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&IN(e.buffer),n}const khe=rb("string"),jd=rb("function"),PN=rb("number"),ib=e=>e!==null&&typeof e=="object",Che=e=>e===!0||e===!1,ob=e=>{if(nb(e)!=="object")return!1;const n=p6(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},She=Wu("Date"),The=Wu("File"),Ehe=Wu("Blob"),Ahe=Wu("FileList"),Mhe=e=>ib(e)&&jd(e.pipe),Ihe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||jd(e.append)&&((n=nb(e))==="formdata"||n==="object"&&jd(e.toString)&&e.toString()==="[object FormData]"))},Phe=Wu("URLSearchParams"),[Nhe,Bhe,Ohe,zhe]=["ReadableStream","Request","Response","Headers"].map(Wu),Lhe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eg(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),j0(e))for(I=0,L=e.length;I<L;I++)n.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let a;for(I=0;I<g;I++)a=d[I],n.call(null,e[a],a,e)}}function NN(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],n===L.toLowerCase())return L;return null}const cm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BN=e=>!Tg(e)&&e!==cm;function f6(){const{caseless:e}=BN(this)&&this||{},n={},r=(I,L)=>{const d=e&&NN(n,L)||L;ob(n[d])&&ob(I)?n[d]=f6(n[d],I):ob(I)?n[d]=f6({},I):j0(I)?n[d]=I.slice():n[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Eg(arguments[I],r);return n}const Fhe=(e,n,r,{allOwnKeys:I}={})=>(Eg(n,(L,d)=>{r&&jd(L)?e[d]=MN(L,r):e[d]=L},{allOwnKeys:I}),e),Dhe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vhe=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},Rhe=(e,n,r,I)=>{let L,d,g;const a={};if(n=n||{},e==null)return n;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,n))&&!a[g]&&(n[g]=e[g],a[g]=!0);e=r!==!1&&p6(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},$he=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},jhe=e=>{if(!e)return null;if(j0(e))return e;let n=e.length;if(!PN(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},Uhe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&p6(Uint8Array)),Hhe=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;n.call(e,L[0],L[1])}},Ghe=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},Whe=Wu("HTMLFormElement"),qhe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),ON=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),Yhe=Wu("RegExp"),zN=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Eg(r,(L,d)=>{let g;(g=n(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},Zhe=e=>{zN(e,(n,r)=>{if(jd(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(jd(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jhe=(e,n)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return j0(e)?I(e):I(String(e).split(n)),r},Xhe=()=>{},Khe=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,m6="abcdefghijklmnopqrstuvwxyz",LN="0123456789",FN={DIGIT:LN,ALPHA:m6,ALPHA_DIGIT:m6+m6.toUpperCase()+LN},Qhe=(e=16,n=FN.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function epe(e){return!!(e&&jd(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tpe=e=>{const n=new Array(10),r=(I,L)=>{if(ib(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[L]=I;const d=j0(I)?[]:{};return Eg(I,(g,a)=>{const _=r(g,L+1);!Tg(_)&&(d[a]=_)}),n[L]=void 0,d}}return I};return r(e,0)},ape=Wu("AsyncFunction"),npe=e=>e&&(ib(e)||jd(e))&&jd(e.then)&&jd(e.catch),DN=((e,n)=>e?setImmediate:n?((r,I)=>(cm.addEventListener("message",({source:L,data:d})=>{L===cm&&d===r&&I.length&&I.shift()()},!1),L=>{I.push(L),cm.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",jd(cm.postMessage)),rpe=typeof queueMicrotask<"u"?queueMicrotask.bind(cm):typeof process<"u"&&process.nextTick||DN,Rn={isArray:j0,isArrayBuffer:IN,isBuffer:xhe,isFormData:Ihe,isArrayBufferView:whe,isString:khe,isNumber:PN,isBoolean:Che,isObject:ib,isPlainObject:ob,isReadableStream:Nhe,isRequest:Bhe,isResponse:Ohe,isHeaders:zhe,isUndefined:Tg,isDate:She,isFile:The,isBlob:Ehe,isRegExp:Yhe,isFunction:jd,isStream:Mhe,isURLSearchParams:Phe,isTypedArray:Uhe,isFileList:Ahe,forEach:Eg,merge:f6,extend:Fhe,trim:Lhe,stripBOM:Dhe,inherits:Vhe,toFlatObject:Rhe,kindOf:nb,kindOfTest:Wu,endsWith:$he,toArray:jhe,forEachEntry:Hhe,matchAll:Ghe,isHTMLForm:Whe,hasOwnProperty:ON,hasOwnProp:ON,reduceDescriptors:zN,freezeMethods:Zhe,toObjectSet:Jhe,toCamelCase:qhe,noop:Xhe,toFiniteNumber:Khe,findKey:NN,global:cm,isContextDefined:BN,ALPHABET:FN,generateString:Qhe,isSpecCompliantForm:epe,toJSONObject:tpe,isAsyncFn:ape,isThenable:npe,setImmediate:DN,asap:rpe};function Hi(e,n,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}Rn.inherits(Hi,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:Rn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const VN=Hi.prototype,RN={};["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=>{RN[e]={value:e}}),Object.defineProperties(Hi,RN),Object.defineProperty(VN,"isAxiosError",{value:!0}),Hi.from=(e,n,r,I,L,d)=>{const g=Object.create(VN);return Rn.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Hi.call(g,e.message,n,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const ipe=null;function g6(e){return Rn.isPlainObject(e)||Rn.isArray(e)}function $N(e){return Rn.endsWith(e,"[]")?e.slice(0,-2):e}function jN(e,n,r){return e?e.concat(n).map(function(I,L){return I=$N(I),!r&&L?"["+I+"]":I}).join(r?".":""):n}function ope(e){return Rn.isArray(e)&&!e.some(g6)}const spe=Rn.toFlatObject(Rn,{},null,function(e){return/^is[A-Z]/.test(e)});function sb(e,n,r){if(!Rn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=Rn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!Rn.isUndefined(s[c])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&Rn.isSpecCompliantForm(n);if(!Rn.isFunction(L))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Rn.isDate(c))return c.toISOString();if(!a&&Rn.isBlob(c))throw new Hi("Blob is not supported. Use a Buffer instead.");return Rn.isArrayBuffer(c)||Rn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(Rn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(Rn.isArray(c)&&ope(c)||(Rn.isFileList(c)||Rn.endsWith(s,"[]"))&&(l=Rn.toArray(c)))return s=$N(s),l.forEach(function(u,h){!(Rn.isUndefined(u)||u===null)&&n.append(g===!0?jN([s],h,d):g===null?s:s+"[]",_(u))}),!1}return g6(c)?!0:(n.append(jN(o,s,d),_(c)),!1)}const i=[],v=Object.assign(spe,{defaultVisitor:m,convertValue:_,isVisitable:g6});function b(c,s){if(!Rn.isUndefined(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(c),Rn.forEach(c,function(o,l){(!(Rn.isUndefined(o)||o===null)&&L.call(n,o,Rn.isString(l)?l.trim():l,s,v))===!0&&b(o,s?s.concat(l):[l])}),i.pop()}}if(!Rn.isObject(e))throw new TypeError("data must be an object");return b(e),n}function UN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function y6(e,n){this._pairs=[],e&&sb(e,this,n)}const HN=y6.prototype;HN.append=function(e,n){this._pairs.push([e,n])},HN.toString=function(e){const n=e?function(r){return e.call(this,r,UN)}:UN;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function lpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GN(e,n,r){if(!n)return e;const I=r&&r.encode||lpe,L=r&&r.serialize;let d;if(L?d=L(n,r):d=Rn.isURLSearchParams(n)?n.toString():new y6(n,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const WN=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Rn.forEach(this.handlers,function(r){r!==null&&n(r)})}},qN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cpe=typeof URLSearchParams<"u"?URLSearchParams:y6,dpe=typeof FormData<"u"?FormData:null,upe=typeof Blob<"u"?Blob:null,hpe={isBrowser:!0,classes:{URLSearchParams:cpe,FormData:dpe,Blob:upe},protocols:["http","https","file","blob","url","data"]},v6=typeof window<"u"&&typeof document<"u",ppe=(e=>v6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fpe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mpe=v6&&window.location.href||"http://localhost",gpe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:v6,hasStandardBrowserEnv:ppe,hasStandardBrowserWebWorkerEnv:fpe,origin:mpe},Symbol.toStringTag,{value:"Module"})),qu={...gpe,...hpe};function ype(e,n){return sb(e,new qu.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return qu.isNode&&Rn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},n))}function vpe(e){return Rn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function _pe(e){const n={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],n[d]=e[d];return n}function YN(e){function n(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),_=d>=r.length;return g=!g&&Rn.isArray(L)?L.length:g,_?(Rn.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!a):((!L[g]||!Rn.isObject(L[g]))&&(L[g]=[]),n(r,I,L[g],d)&&Rn.isArray(L[g])&&(L[g]=_pe(L[g])),!a)}if(Rn.isFormData(e)&&Rn.isFunction(e.entries)){const r={};return Rn.forEachEntry(e,(I,L)=>{n(vpe(I),L,r,0)}),r}return null}function bpe(e,n,r){if(Rn.isString(e))try{return(n||JSON.parse)(e),Rn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const _6={transitional:qN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,L=Rn.isObject(e);if(L&&Rn.isHTMLForm(e)&&(e=new FormData(e)),Rn.isFormData(e))return I?JSON.stringify(YN(e)):e;if(Rn.isArrayBuffer(e)||Rn.isBuffer(e)||Rn.isStream(e)||Rn.isFile(e)||Rn.isBlob(e)||Rn.isReadableStream(e))return e;if(Rn.isArrayBufferView(e))return e.buffer;if(Rn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ype(e,this.formSerializer).toString();if((d=Rn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return sb(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(n.setContentType("application/json",!1),bpe(e)):e}],transformResponse:[function(e){const n=this.transitional||_6.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(Rn.isResponse(e)||Rn.isReadableStream(e))return e;if(e&&Rn.isString(e)&&(r&&!this.responseType||I)){const L=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Hi.from(d,Hi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qu.classes.FormData,Blob:qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Rn.forEach(["delete","get","head","post","put","patch"],e=>{_6.headers[e]={}});const b6=_6,xpe=Rn.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"]),wpe=e=>{const n={};let r,I,L;return e&&e.split(`
|
|
34
|
+
`}}}},getChartSeries(e,n){let r,I;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);const g=L.homeTeam[this.homeTeamStatisticsType].totalPostGame+L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(g?L.homeTeam[this.homeTeamStatisticsType].totalPostGame/g:0))),r.dataTotal.push(L.homeTeam[this.homeTeamStatisticsType].totalPostGame),I.data.push(Math.round(120*(g?L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/g:0))),I.dataTotal.push(L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},I={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},n.arraySubcategories=[],Object.values(e).forEach((L,d)=>{n.xaxis.categories.push(this.prepareLabels(L,d)),n.arraySubcategories.push(L);let g,a,_,m;const i=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(g=L.homeTeam.accomplished.avgPostGame/i,_=L.homeTeam.accomplished.totalPostGame):(g=i?L.homeTeam[this.homeTeamStatisticsType].avgPostGame/i:0,_=L.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;g=v?L.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,_=L.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&L.generalCategoriesIds.accomplished===3?(a=L.visitingTeam.accomplished.avgPostGame/i,m=L.visitingTeam.accomplished.totalPostGame):(a=i?L.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/i:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const v=L.homeTeam[this.homeTeamStatisticsType].totalLive+L.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?L.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,m=L.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*g)),r.dataTotal.push(Math.round(_)),I.data.push(Math.round(120*a)),I.dataTotal.push(Math.round(m))})),[r,I]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,n="homeTeam"){return e.id==="3-0"&&(e[n].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[n].accomplished||0},showModal(e,n,r){const I=r===0?"homeTeam":"visitingTeam",L=e.config.arraySubcategories[n]||{};this.tooltip.isLeagueAvgVisible=L.id!=="3-0",this.tooltip.data=this.getSubcategoryData(L,I),this.tooltip.local=r===0,this.tooltip.names=L.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(L);const d=e.globals.clientX||0,g=e.globals.clientY||0;this.globals.x=d,this.globals.y=g,this.tooltip.x=d,this.tooltip.y=g>700?g-250:g;const a=L.generalCategoriesIds.accomplished===3;if(a){const _=L.homeTeam.accomplished.avgPostGame+L.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?L[I].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),I=Math.abs(e.clientY-this.globals.y);(r>5||I>5)&&(this.tooltip.show=!1)},prepareLabels(e,n){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(n===0)return r;const I=13;if(r.length>I){let L=r.split(" ");r=[];let d="",g="",a=L.slice(-1)[0];L.forEach(_=>{d+=` ${_} `,d.length>I&&(r.push(g.trim()),d=_),g=d,a===_&&r.push(g.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((n,r)=>n+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},xce=e=>(t.pushScopeId("data-v-305d7521"),e=e(),t.popScopeId(),e),wce={class:"distribution"},kce={class:"distribution__container"},Cce={class:"distribution__container__chart-type__title"},Sce=xce(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),Tce={class:"distribution__container__chart-type__chart"};function Ece(e,n,r,I,L,d){const g=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",wce,[t.createElementVNode("div",kce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.arrayDataForCharts,(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",Cce,t.toDisplayString(a.name),1),Sce,t.createElementVNode("div",Tce,[t.createVNode(g,{ref_for:!0,ref:a.id,type:"radar",height:L.height,options:L.arrayChartOptions[_],series:L.arrayFilledSeries[_]},null,8,["height","options","series"])])]))),128))])])}const Ace=Gr(bce,[["render",Ece],["__scopeId","data-v-305d7521"]]),Mce=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},u6={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(n){throw new Error(n)}}}},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)}}},_N=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},bN=u6.setup;u6.setup=bN?(e,n)=>(_N(),bN(e,n)):_N;const Ice={key:0,class:"text-left"},Pce=["width","src"],Nce=["checked"],Bce=["width","src"],Oce={key:3,class:"text-right"};function zce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(d.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Ice,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,Pce)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...g)=>d.handleSwitchChange&&d.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,Nce),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([d.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,Bce)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",Oce,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Lce=Mce(u6,[["render",zce],["__scopeId","data-v-e2a20444"]]),qha="",Yha="",Fce={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 Dce(e,n,r,I,L,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",d.showTooltip]),style:t.normalizeStyle(d.positionTooltip),onClick:n[0]||(n[0]=(...g)=>d.tooltipClick&&d.tooltipClick(...g))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const xN=Gr(Fce,[["render",Dce],["__scopeId","data-v-0cf5a19c"]]),Zha="",Vce={name:"SoccerChalkboardXg",components:{Tooltip:xN},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:{...Ml("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,n)=>({id:n,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((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Cg=e=>(t.pushScopeId("data-v-d2d32849"),e=e(),t.popScopeId(),e),Rce={class:"soccer-chalkboard-xg"},$ce={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},jce={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Uce=Cg(()=>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)),Hce=["id"],Gce=["fill"],Wce=Cg(()=>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)),qce=["id"],Yce=["x1","y1","x2","y2","stroke"],Zce=["x1","y1","x2","y2","stroke","marker-end"],Jce=["onMouseover"],Xce=["x","y","fill"],Kce=["x","y"],Qce={class:"tooltip-data has-text-left"},ede={class:"bold"},tde={class:"tooltip-image"},ade={class:"tooltip-image"},nde=["src"],rde={class:"tooltip-xg"},ide={key:0},ode=Cg(()=>t.createElementVNode("span",null,"xGi:",-1)),sde=Cg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),lde={key:1},cde=Cg(()=>t.createElementVNode("span",null,"xGf:",-1));function dde(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Rce,[(t.openBlock(),t.createElementBlock("svg",$ce,[(t.openBlock(),t.createElementBlock("svg",jce,[t.createElementVNode("defs",null,[Uce,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Gce)],8,Hce))),128)),Wce]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Yce),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Zce),t.createElementVNode("g",{onMouseover:_=>d.onMouseOver(_,a),onMouseleave:n[0]||(n[0]=(..._)=>d.onMouseLeave&&d.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,Xce),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,Kce)],40,Jce)],8,qce))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",Qce,[t.createElementVNode("div",null,[t.createElementVNode("span",ede,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",tde,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",ade,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,nde)])]),t.createElementVNode("div",rde,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",ide,[ode,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),sde,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",lde,[cde,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const wN=Gr(Vce,[["render",dde],["__scopeId","data-v-d2d32849"]]),ab=[{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]}],Jha="",ude={name:"XgLocal",components:{SoccerChalkboard:wN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},kN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),hde={class:"xg-container"},pde={class:"xg-container__info"},fde=kN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),mde={class:"table"},gde={class:"table__row"},yde={class:"table__row__title"},vde={class:"table__row__value"},_de=["src"],bde={class:"table__row"},xde={class:"table__row__title"},wde={class:"table__row__value"},kde={class:"table__row"},Cde={class:"table__row__title"},Sde={class:"table__row__value"},Tde=kN(()=>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)),Ede={class:"xg-container__field"};function Ade(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",hde,[t.createElementVNode("div",pde,[fde,t.createElementVNode("div",mde,[t.createElementVNode("div",gde,[t.createElementVNode("div",yde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",vde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,_de)])]),t.createElementVNode("div",bde,[t.createElementVNode("div",xde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",wde,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",kde,[t.createElementVNode("div",Cde,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Sde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Tde]),t.createElementVNode("div",Ede,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])])])}const Mde=Gr(ude,[["render",Ade],["__scopeId","data-v-a13ade42"]]),Xha="",Ide={name:"XgAway",components:{SoccerChalkboard:wN},props:{team:{type:String,default:"Visiting"}},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},CN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),Pde={class:"xg-container"},Nde={class:"xg-container__info"},Bde=CN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Ode={class:"table"},zde={class:"table__row"},Lde={class:"table__row__title"},Fde={class:"table__row__value"},Dde=["src"],Vde={class:"table__row"},Rde={class:"table__row__title"},$de={class:"table__row__value"},jde={class:"table__row"},Ude={class:"table__row__title"},Hde={class:"table__row__value"},Gde=CN(()=>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)),Wde={class:"xg-container__field"};function qde(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Pde,[t.createElementVNode("div",Nde,[Bde,t.createElementVNode("div",Ode,[t.createElementVNode("div",zde,[t.createElementVNode("div",Lde,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Fde,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Dde)])]),t.createElementVNode("div",Vde,[t.createElementVNode("div",Rde,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",$de,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",jde,[t.createElementVNode("div",Ude,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Hde,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Gde]),t.createElementVNode("div",Wde,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:r.team},null,8,["plays","categories","team"])])])])}const Yde=Gr(Ide,[["render",qde],["__scopeId","data-v-ddcacec9"]]),Kha="",Zde={name:"SoccerChalkboardXgMobile",components:{Tooltip:xN},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:{...Ml("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,n)=>({id:n,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((I,L)=>[...I,L.categories],[]);return this.preparedPlays.filter(I=>this.findCategoryInPlay(e,I)).reduce((I,L)=>{let d=this.localCategories.find(g=>this.findCategoryInPlay(g.categories,L));if(d){let g={category:d.id,categoryName:d.name,arrowColor:d.negative?this.negativeColor:d.color,arrowMarkerColor:d.negative?"url(#arrow-negative)":`url(#arrow-${d.id})`,markerColor:d.color,jersey:L.jersey_number,matchlapse:L.matchLapse,playerName:L.player_name,photo:L.photo,rivalLogo:L.rival_id,x1:d.invert.includes(L.categoryId)?100-L[`x${d.points[0]}`]:L[`x${d.points[0]}`],y1:d.invert.includes(L.categoryId)?100-L[`y${d.points[0]}`]:L[`y${d.points[0]}`],x2:d.invert.includes(L.categoryId)?100-L[`x${d.points[1]}`]:L[`x${d.points[1]}`],y2:d.invert.includes(L.categoryId)?100-L[`y${d.points[1]}`]:L[`y${d.points[1]}`],x3:d.invert.includes(L.categoryId)?100-L[`x${d.points[2]}`]:L[`x${d.points[2]}`],y3:d.invert.includes(L.categoryId)?100-L[`y${d.points[2]}`]:L[`y${d.points[2]}`],momentOfPlay:L.moment_of_play,isOwnGoal:d.invert.includes(L.categoryId),xGi:L.xGi,xGf:L.xGf};I.push(g)}return I},[])}},methods:{findCategoryInPlay(e,n){return e.find(r=>typeof r=="number"?r===n.categoryId:r.includes(n.categoryId))},onMouseOver(e,n){this.dataPlay.playerName=n.playerName||"",this.dataPlay.photo=n.photo||"",this.dataPlay.minute=parseInt(n.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=n.rivalLogo||"",this.dataPlay.categoryName=n.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(n.xGi),this.dataPlay.xGf=String(n.xGf),this.dataPlay.isOwnGoal=n.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}}},Sg=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Jde={class:"soccer-chalkboard-xg"},Xde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},Kde={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Qde=Sg(()=>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)),eue=["id"],tue=["fill"],aue=Sg(()=>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)),nue=["id"],rue=["x1","y1","x2","y2","stroke"],iue=["x1","y1","x2","y2","stroke","marker-end"],oue=["onMouseover"],sue=["x","y","fill"],lue=["x","y"],cue={class:"tooltip-data has-text-left"},due={class:"bold"},uue={class:"tooltip-image"},hue={class:"tooltip-image"},pue=["src"],fue={class:"tooltip-xg"},mue={key:0},gue=Sg(()=>t.createElementVNode("span",null,"xGi:",-1)),yue=Sg(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),vue={key:1},_ue=Sg(()=>t.createElementVNode("span",null,"xGf:",-1));function bue(e,n,r,I,L,d){const g=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Jde,[(t.openBlock(),t.createElementBlock("svg",Xde,[(t.openBlock(),t.createElementBlock("svg",Kde,[t.createElementVNode("defs",null,[Qde,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,tue)],8,eue))),128)),aue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,rue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,iue),t.createElementVNode("g",{onMouseover:_=>d.onMouseOver(_,a),onMouseleave:n[0]||(n[0]=(..._)=>d.onMouseLeave&&d.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,sue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,lue)],40,oue)],8,nue))),128))]))])),t.createVNode(g,{data:L.data},{default:t.withCtx(()=>[t.createElementVNode("div",cue,[t.createElementVNode("div",null,[t.createElementVNode("span",due,t.toDisplayString(L.dataPlay.isOwnGoal?"Autogol":L.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(L.dataPlay.playerName)+" ",1),t.createElementVNode("div",uue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+L.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(L.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",hue,[t.createElementVNode("img",{src:L.dataPlay.rivalLogo},null,8,pue)])]),t.createElementVNode("div",fue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGi)&&L.dataPlay.xGi<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",mue,[gue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),yue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(L.dataPlay.xGf)&&L.dataPlay.xGf<=1&&!L.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",vue,[_ue,t.createTextVNode(" "+t.toDisplayString(Number(L.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const SN=Gr(Zde,[["render",bue],["__scopeId","data-v-9bd26437"]]),Qha="",xue={name:"Xg",components:{SoccerChalkboard:SN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("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,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("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()}},TN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),wue={class:"xg-container"},kue=TN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Cue={class:"xg-container__field"},Sue={class:"xg-container__info"},Tue={class:"table"},Eue={class:"table__row"},Aue={class:"table__row__title"},Mue={class:"table__row__value"},Iue=["src"],Pue={class:"table__row"},Nue={class:"table__row__title"},Bue={class:"table__row__value"},Oue={class:"table__row"},zue={class:"table__row__title"},Lue={class:"table__row__value"},Fue=TN(()=>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 Due(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",wue,[kue,t.createElementVNode("div",Cue,[t.createVNode(g,{plays:e.playsLocal,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Sue,[t.createElementVNode("div",Tue,[t.createElementVNode("div",Eue,[t.createElementVNode("div",Aue,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Mue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Iue)])]),t.createElementVNode("div",Pue,[t.createElementVNode("div",Nue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Bue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Oue,[t.createElementVNode("div",zue,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",Lue,t.toDisplayString(d.gxInfoItems[2].value),1)])]),Fue])])}const Vue=Gr(xue,[["render",Due],["__scopeId","data-v-fe06617a"]]),epa="",Rue={name:"Xg",components:{SoccerChalkboard:SN},props:{},data(){return{categories:ab}},computed:{...Bd("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Bd("general",["booleanIsStatisticModalOpen"]),...Ml("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Ml("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Ml("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Ml("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,n){e!==n&&this.fillXgPlays()}}},methods:{...gf("general",["setVideoSrc","setVideoModalVisibility"]),...gf("xgGeneral",["setTeamSelected"]),...k_("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()}},EN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),$ue={class:"xg-container"},jue=EN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Uue={class:"xg-container__field"},Hue={class:"xg-container__info"},Gue={class:"table"},Wue={class:"table__row"},que={class:"table__row__title"},Yue={class:"table__row__value"},Zue=["src"],Jue={class:"table__row"},Xue={class:"table__row__title"},Kue={class:"table__row__value"},Que={class:"table__row"},ehe={class:"table__row__title"},the={class:"table__row__value"},ahe=EN(()=>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 nhe(e,n,r,I,L,d){const g=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",$ue,[jue,t.createElementVNode("div",Uue,[t.createVNode(g,{plays:e.playsAway,categories:L.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Hue,[t.createElementVNode("div",Gue,[t.createElementVNode("div",Wue,[t.createElementVNode("div",que,t.toDisplayString(d.gxInfoItems[0].title),1),t.createElementVNode("div",Yue,[t.createTextVNode(t.toDisplayString(d.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:d.stringSelectedTeamLogo},null,8,Zue)])]),t.createElementVNode("div",Jue,[t.createElementVNode("div",Xue,t.toDisplayString(d.gxInfoItems[1].title),1),t.createElementVNode("div",Kue,t.toDisplayString(d.gxInfoItems[1].value),1)]),t.createElementVNode("div",Que,[t.createElementVNode("div",ehe,t.toDisplayString(d.gxInfoItems[2].title),1),t.createElementVNode("div",the,t.toDisplayString(d.gxInfoItems[2].value),1)])]),ahe])])}const rhe=Gr(Rue,[["render",nhe],["__scopeId","data-v-e1c76ea1"]]),tpa="";let AN=null;const ihe={name:"XgMain",components:{GSCSwitchRadio:Lce,SoccerChalkboardLocal:Mde,SoccerChalkboardAway:Yde,SoccerChalkboardLocalMobile:Vue,SoccerChalkboardAwayMobile:rhe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Ml("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)AN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),AN.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))}},ohe={class:"xg",ref:"gamesContainer"},she={key:0,class:"selector-team"};function lhe(e,n,r,I,L,d){const g=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),m=t.resolveComponent("SoccerChalkboardLocalMobile"),i=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",ohe,[L.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",she,[t.createVNode(g,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:L.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:d.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),L.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(m,{key:3})):t.createCommentVNode("",!0),L.gamesContainerWidth<655&&L.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(i,{key:4})):t.createCommentVNode("",!0)],512)}const che=Gr(ihe,[["render",lhe],["__scopeId","data-v-12759086"]]),apa="",h6=e=>(t.pushScopeId("data-v-556acf41"),e=e(),t.popScopeId(),e),dhe={class:"statistics-main"},uhe={class:"statistics-main__header"},hhe={class:"statistics-main__header__filter"},phe={key:0,class:"statistics-main__header__live-switch"},fhe=h6(()=>t.createElementVNode("div",null,"Este partido",-1)),mhe=h6(()=>t.createElementVNode("div",null,"Acumulado",-1)),ghe={class:"statistics-main__header__info"},yhe=h6(()=>t.createElementVNode("br",null,null,-1)),vhe=t.defineComponent({name:"TemplateVideos",components:{TrendLive:woe,Comparative:_ce,Distribution:Ace,GSCSlider:kg,XG:che}}),_he=Gr(Object.assign(vhe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:n}){const r=e,I=og(),L=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"}),d=t.ref({}),g=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),_=t.ref(a.value[0]),m=t.ref(!1),i=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),p=new Date(r.game.dateTimeUTC).getTime()-u,f=Math.floor(p/(1e3*60*60*24)),y=Math.floor(p%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(p%(1e3*60*60)/(1e3*60)),x=Math.floor(p%(1e3*60)/1e3);let M="";return x>0&&(M=x===1?x+" segundo":x+" segundos"),w>0&&(M=w===1?w+" minuto":w+" minutos"),y>0&&(M=y===1?y+" hora":y+" horas"),f>0&&(M=f===1?f+" día":f+" días"),M}),b=t.computed(()=>_.value.id==="st4"||(r.game.is_live||r.game.game_status===0)&&!I.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":r.game.game_status===1||(r.game.is_live||r.game.game_status===0)&&I.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>r.game,u=>{const h={...u};m.value=!(r.game.is_live||r.game.game_status===0),r.game.is_live||Hw(),c(h),i.value++},{deep:!0,immediate:!0}),t.watch(()=>m.value,u=>{I.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function c(u){try{d.value.gameId!==u.gameId&&(d.value=u,await I.dispatch("nextGeneral/cleanStats"),await I.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:g.value,gameInfo:u}))}catch(h){throw new Error(h)}}function s(u){_.value=u}function o(){I.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 l(u){I.state.nextGeneral.usePastSeasonId&&(u.seasonId=I.state.nextGeneral.pastSeasonId),n("openmedia",u)}return t.onUnmounted(()=>{n("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),o(),(u,h)=>(t.openBlock(),t.createElementBlock("div",dhe,[t.createElementVNode("div",uhe,[t.createVNode(t.unref(kg),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(bP,t.mergeProps(L.value,{text:p.name,"is-active":_.value.id===p.id,onClick:f=>s(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",hhe,[t.createVNode(Iie)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",phe,[fhe,t.createElementVNode("div",null,[t.createVNode(xP,{modelValue:m.value,"onUpdate:modelValue":h[0]||(h[0]=p=>m.value=p)},null,8,["modelValue"])]),mhe],512)),[[t.vShow,_.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",ghe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),yhe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(b.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:i.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(_.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(I).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:l},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-556acf41"]]);function MN(e,n){return function(){return e.apply(n,arguments)}}const{toString:bhe}=Object.prototype,{getPrototypeOf:p6}=Object,nb=(e=>n=>{const r=bhe.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Wu=e=>(e=e.toLowerCase(),n=>nb(n)===e),rb=e=>n=>typeof n===e,{isArray:j0}=Array,Tg=rb("undefined");function xhe(e){return e!==null&&!Tg(e)&&e.constructor!==null&&!Tg(e.constructor)&&jd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const IN=Wu("ArrayBuffer");function whe(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&IN(e.buffer),n}const khe=rb("string"),jd=rb("function"),PN=rb("number"),ib=e=>e!==null&&typeof e=="object",Che=e=>e===!0||e===!1,ob=e=>{if(nb(e)!=="object")return!1;const n=p6(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},She=Wu("Date"),The=Wu("File"),Ehe=Wu("Blob"),Ahe=Wu("FileList"),Mhe=e=>ib(e)&&jd(e.pipe),Ihe=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||jd(e.append)&&((n=nb(e))==="formdata"||n==="object"&&jd(e.toString)&&e.toString()==="[object FormData]"))},Phe=Wu("URLSearchParams"),[Nhe,Bhe,Ohe,zhe]=["ReadableStream","Request","Response","Headers"].map(Wu),Lhe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eg(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let I,L;if(typeof e!="object"&&(e=[e]),j0(e))for(I=0,L=e.length;I<L;I++)n.call(null,e[I],I,e);else{const d=r?Object.getOwnPropertyNames(e):Object.keys(e),g=d.length;let a;for(I=0;I<g;I++)a=d[I],n.call(null,e[a],a,e)}}function NN(e,n){n=n.toLowerCase();const r=Object.keys(e);let I=r.length,L;for(;I-- >0;)if(L=r[I],n===L.toLowerCase())return L;return null}const cm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BN=e=>!Tg(e)&&e!==cm;function f6(){const{caseless:e}=BN(this)&&this||{},n={},r=(I,L)=>{const d=e&&NN(n,L)||L;ob(n[d])&&ob(I)?n[d]=f6(n[d],I):ob(I)?n[d]=f6({},I):j0(I)?n[d]=I.slice():n[d]=I};for(let I=0,L=arguments.length;I<L;I++)arguments[I]&&Eg(arguments[I],r);return n}const Fhe=(e,n,r,{allOwnKeys:I}={})=>(Eg(n,(L,d)=>{r&&jd(L)?e[d]=MN(L,r):e[d]=L},{allOwnKeys:I}),e),Dhe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vhe=(e,n,r,I)=>{e.prototype=Object.create(n.prototype,I),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},Rhe=(e,n,r,I)=>{let L,d,g;const a={};if(n=n||{},e==null)return n;do{for(L=Object.getOwnPropertyNames(e),d=L.length;d-- >0;)g=L[d],(!I||I(g,e,n))&&!a[g]&&(n[g]=e[g],a[g]=!0);e=r!==!1&&p6(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},$he=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const I=e.indexOf(n,r);return I!==-1&&I===r},jhe=e=>{if(!e)return null;if(j0(e))return e;let n=e.length;if(!PN(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},Uhe=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&p6(Uint8Array)),Hhe=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let I;for(;(I=r.next())&&!I.done;){const L=I.value;n.call(e,L[0],L[1])}},Ghe=(e,n)=>{let r;const I=[];for(;(r=e.exec(n))!==null;)I.push(r);return I},Whe=Wu("HTMLFormElement"),qhe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,I){return r.toUpperCase()+I}),ON=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),Yhe=Wu("RegExp"),zN=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),I={};Eg(r,(L,d)=>{let g;(g=n(L,d,e))!==!1&&(I[d]=g||L)}),Object.defineProperties(e,I)},Zhe=e=>{zN(e,(n,r)=>{if(jd(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const I=e[r];if(jd(I)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jhe=(e,n)=>{const r={},I=L=>{L.forEach(d=>{r[d]=!0})};return j0(e)?I(e):I(String(e).split(n)),r},Xhe=()=>{},Khe=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n,m6="abcdefghijklmnopqrstuvwxyz",LN="0123456789",FN={DIGIT:LN,ALPHA:m6,ALPHA_DIGIT:m6+m6.toUpperCase()+LN},Qhe=(e=16,n=FN.ALPHA_DIGIT)=>{let r="";const{length:I}=n;for(;e--;)r+=n[Math.random()*I|0];return r};function epe(e){return!!(e&&jd(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tpe=e=>{const n=new Array(10),r=(I,L)=>{if(ib(I)){if(n.indexOf(I)>=0)return;if(!("toJSON"in I)){n[L]=I;const d=j0(I)?[]:{};return Eg(I,(g,a)=>{const _=r(g,L+1);!Tg(_)&&(d[a]=_)}),n[L]=void 0,d}}return I};return r(e,0)},ape=Wu("AsyncFunction"),npe=e=>e&&(ib(e)||jd(e))&&jd(e.then)&&jd(e.catch),DN=((e,n)=>e?setImmediate:n?((r,I)=>(cm.addEventListener("message",({source:L,data:d})=>{L===cm&&d===r&&I.length&&I.shift()()},!1),L=>{I.push(L),cm.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",jd(cm.postMessage)),rpe=typeof queueMicrotask<"u"?queueMicrotask.bind(cm):typeof process<"u"&&process.nextTick||DN,Rn={isArray:j0,isArrayBuffer:IN,isBuffer:xhe,isFormData:Ihe,isArrayBufferView:whe,isString:khe,isNumber:PN,isBoolean:Che,isObject:ib,isPlainObject:ob,isReadableStream:Nhe,isRequest:Bhe,isResponse:Ohe,isHeaders:zhe,isUndefined:Tg,isDate:She,isFile:The,isBlob:Ehe,isRegExp:Yhe,isFunction:jd,isStream:Mhe,isURLSearchParams:Phe,isTypedArray:Uhe,isFileList:Ahe,forEach:Eg,merge:f6,extend:Fhe,trim:Lhe,stripBOM:Dhe,inherits:Vhe,toFlatObject:Rhe,kindOf:nb,kindOfTest:Wu,endsWith:$he,toArray:jhe,forEachEntry:Hhe,matchAll:Ghe,isHTMLForm:Whe,hasOwnProperty:ON,hasOwnProp:ON,reduceDescriptors:zN,freezeMethods:Zhe,toObjectSet:Jhe,toCamelCase:qhe,noop:Xhe,toFiniteNumber:Khe,findKey:NN,global:cm,isContextDefined:BN,ALPHABET:FN,generateString:Qhe,isSpecCompliantForm:epe,toJSONObject:tpe,isAsyncFn:ape,isThenable:npe,setImmediate:DN,asap:rpe};function Hi(e,n,r,I,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),r&&(this.config=r),I&&(this.request=I),L&&(this.response=L)}Rn.inherits(Hi,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:Rn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const VN=Hi.prototype,RN={};["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=>{RN[e]={value:e}}),Object.defineProperties(Hi,RN),Object.defineProperty(VN,"isAxiosError",{value:!0}),Hi.from=(e,n,r,I,L,d)=>{const g=Object.create(VN);return Rn.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Hi.call(g,e.message,n,r,I,L),g.cause=e,g.name=e.name,d&&Object.assign(g,d),g};const ipe=null;function g6(e){return Rn.isPlainObject(e)||Rn.isArray(e)}function $N(e){return Rn.endsWith(e,"[]")?e.slice(0,-2):e}function jN(e,n,r){return e?e.concat(n).map(function(I,L){return I=$N(I),!r&&L?"["+I+"]":I}).join(r?".":""):n}function ope(e){return Rn.isArray(e)&&!e.some(g6)}const spe=Rn.toFlatObject(Rn,{},null,function(e){return/^is[A-Z]/.test(e)});function sb(e,n,r){if(!Rn.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=Rn.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!Rn.isUndefined(s[c])});const I=r.metaTokens,L=r.visitor||m,d=r.dots,g=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&Rn.isSpecCompliantForm(n);if(!Rn.isFunction(L))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Rn.isDate(c))return c.toISOString();if(!a&&Rn.isBlob(c))throw new Hi("Blob is not supported. Use a Buffer instead.");return Rn.isArrayBuffer(c)||Rn.isTypedArray(c)?a&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(Rn.endsWith(s,"{}"))s=I?s:s.slice(0,-2),c=JSON.stringify(c);else if(Rn.isArray(c)&&ope(c)||(Rn.isFileList(c)||Rn.endsWith(s,"[]"))&&(l=Rn.toArray(c)))return s=$N(s),l.forEach(function(u,h){!(Rn.isUndefined(u)||u===null)&&n.append(g===!0?jN([s],h,d):g===null?s:s+"[]",_(u))}),!1}return g6(c)?!0:(n.append(jN(o,s,d),_(c)),!1)}const i=[],v=Object.assign(spe,{defaultVisitor:m,convertValue:_,isVisitable:g6});function b(c,s){if(!Rn.isUndefined(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));i.push(c),Rn.forEach(c,function(o,l){(!(Rn.isUndefined(o)||o===null)&&L.call(n,o,Rn.isString(l)?l.trim():l,s,v))===!0&&b(o,s?s.concat(l):[l])}),i.pop()}}if(!Rn.isObject(e))throw new TypeError("data must be an object");return b(e),n}function UN(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function y6(e,n){this._pairs=[],e&&sb(e,this,n)}const HN=y6.prototype;HN.append=function(e,n){this._pairs.push([e,n])},HN.toString=function(e){const n=e?function(r){return e.call(this,r,UN)}:UN;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function lpe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GN(e,n,r){if(!n)return e;const I=r&&r.encode||lpe,L=r&&r.serialize;let d;if(L?d=L(n,r):d=Rn.isURLSearchParams(n)?n.toString():new y6(n,r).toString(I),d){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+d}return e}const WN=class{constructor(){this.handlers=[]}use(n,r,I){return this.handlers.push({fulfilled:n,rejected:r,synchronous:I?I.synchronous:!1,runWhen:I?I.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){Rn.forEach(this.handlers,function(r){r!==null&&n(r)})}},qN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cpe=typeof URLSearchParams<"u"?URLSearchParams:y6,dpe=typeof FormData<"u"?FormData:null,upe=typeof Blob<"u"?Blob:null,hpe={isBrowser:!0,classes:{URLSearchParams:cpe,FormData:dpe,Blob:upe},protocols:["http","https","file","blob","url","data"]},v6=typeof window<"u"&&typeof document<"u",ppe=(e=>v6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fpe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mpe=v6&&window.location.href||"http://localhost",gpe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:v6,hasStandardBrowserEnv:ppe,hasStandardBrowserWebWorkerEnv:fpe,origin:mpe},Symbol.toStringTag,{value:"Module"})),qu={...gpe,...hpe};function ype(e,n){return sb(e,new qu.classes.URLSearchParams,Object.assign({visitor:function(r,I,L,d){return qu.isNode&&Rn.isBuffer(r)?(this.append(I,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},n))}function vpe(e){return Rn.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function _pe(e){const n={},r=Object.keys(e);let I;const L=r.length;let d;for(I=0;I<L;I++)d=r[I],n[d]=e[d];return n}function YN(e){function n(r,I,L,d){let g=r[d++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),_=d>=r.length;return g=!g&&Rn.isArray(L)?L.length:g,_?(Rn.hasOwnProp(L,g)?L[g]=[L[g],I]:L[g]=I,!a):((!L[g]||!Rn.isObject(L[g]))&&(L[g]=[]),n(r,I,L[g],d)&&Rn.isArray(L[g])&&(L[g]=_pe(L[g])),!a)}if(Rn.isFormData(e)&&Rn.isFunction(e.entries)){const r={};return Rn.forEachEntry(e,(I,L)=>{n(vpe(I),L,r,0)}),r}return null}function bpe(e,n,r){if(Rn.isString(e))try{return(n||JSON.parse)(e),Rn.trim(e)}catch(I){if(I.name!=="SyntaxError")throw I}return(r||JSON.stringify)(e)}const _6={transitional:qN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",I=r.indexOf("application/json")>-1,L=Rn.isObject(e);if(L&&Rn.isHTMLForm(e)&&(e=new FormData(e)),Rn.isFormData(e))return I?JSON.stringify(YN(e)):e;if(Rn.isArrayBuffer(e)||Rn.isBuffer(e)||Rn.isStream(e)||Rn.isFile(e)||Rn.isBlob(e)||Rn.isReadableStream(e))return e;if(Rn.isArrayBufferView(e))return e.buffer;if(Rn.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(L){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ype(e,this.formSerializer).toString();if((d=Rn.isFileList(e))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return sb(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||I?(n.setContentType("application/json",!1),bpe(e)):e}],transformResponse:[function(e){const n=this.transitional||_6.transitional,r=n&&n.forcedJSONParsing,I=this.responseType==="json";if(Rn.isResponse(e)||Rn.isReadableStream(e))return e;if(e&&Rn.isString(e)&&(r&&!this.responseType||I)){const L=!(n&&n.silentJSONParsing)&&I;try{return JSON.parse(e)}catch(d){if(L)throw d.name==="SyntaxError"?Hi.from(d,Hi.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qu.classes.FormData,Blob:qu.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Rn.forEach(["delete","get","head","post","put","patch"],e=>{_6.headers[e]={}});const b6=_6,xpe=Rn.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"]),wpe=e=>{const n={};let r,I,L;return e&&e.split(`
|
|
35
35
|
`).forEach(function(d){L=d.indexOf(":"),r=d.substring(0,L).trim().toLowerCase(),I=d.substring(L+1).trim(),!(!r||n[r]&&xpe[r])&&(r==="set-cookie"?n[r]?n[r].push(I):n[r]=[I]:n[r]=n[r]?n[r]+", "+I:I)}),n},ZN=Symbol("internals");function Ag(e){return e&&String(e).trim().toLowerCase()}function lb(e){return e===!1||e==null?e:Rn.isArray(e)?e.map(lb):String(e)}function kpe(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let I;for(;I=r.exec(e);)n[I[1]]=I[2];return n}const Cpe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function x6(e,n,r,I,L){if(Rn.isFunction(I))return I.call(this,n,r);if(L&&(n=r),!!Rn.isString(n)){if(Rn.isString(I))return n.indexOf(I)!==-1;if(Rn.isRegExp(I))return I.test(n)}}function Spe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,I)=>r.toUpperCase()+I)}function Tpe(e,n){const r=Rn.toCamelCase(" "+n);["get","set","has"].forEach(I=>{Object.defineProperty(e,I+r,{value:function(L,d,g){return this[I].call(this,n,L,d,g)},configurable:!0})})}let cb=class{constructor(n){n&&this.set(n)}set(n,r,I){const L=this;function d(a,_,m){const i=Ag(_);if(!i)throw new Error("header name must be a non-empty string");const v=Rn.findKey(L,i);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||_]=lb(a))}const g=(a,_)=>Rn.forEach(a,(m,i)=>d(m,i,_));if(Rn.isPlainObject(n)||n instanceof this.constructor)g(n,r);else if(Rn.isString(n)&&(n=n.trim())&&!Cpe(n))g(wpe(n),r);else if(Rn.isHeaders(n))for(const[a,_]of n.entries())d(_,a,I);else n!=null&&d(r,n,I);return this}get(n,r){if(n=Ag(n),n){const I=Rn.findKey(this,n);if(I){const L=this[I];if(!r)return L;if(r===!0)return kpe(L);if(Rn.isFunction(r))return r.call(this,L,I);if(Rn.isRegExp(r))return r.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=Ag(n),n){const I=Rn.findKey(this,n);return!!(I&&this[I]!==void 0&&(!r||x6(this,this[I],I,r)))}return!1}delete(n,r){const I=this;let L=!1;function d(g){if(g=Ag(g),g){const a=Rn.findKey(I,g);a&&(!r||x6(I,I[a],a,r))&&(delete I[a],L=!0)}}return Rn.isArray(n)?n.forEach(d):d(n),L}clear(n){const r=Object.keys(this);let I=r.length,L=!1;for(;I--;){const d=r[I];(!n||x6(this,this[d],d,n,!0))&&(delete this[d],L=!0)}return L}normalize(n){const r=this,I={};return Rn.forEach(this,(L,d)=>{const g=Rn.findKey(I,d);if(g){r[g]=lb(L),delete r[d];return}const a=n?Spe(d):String(d).trim();a!==d&&delete r[d],r[a]=lb(L),I[a]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return Rn.forEach(this,(I,L)=>{I!=null&&I!==!1&&(r[L]=n&&Rn.isArray(I)?I.join(", "):I)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
|
|
36
36
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const I=new this(n);return r.forEach(L=>I.set(L)),I}static accessor(n){const r=(this[ZN]=this[ZN]={accessors:{}}).accessors,I=this.prototype;function L(d){const g=Ag(d);r[g]||(Tpe(I,d),r[g]=!0)}return Rn.isArray(n)?n.forEach(L):L(n),this}};cb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Rn.reduceDescriptors(cb.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(I){this[r]=I}}}),Rn.freezeMethods(cb);const Yu=cb;function w6(e,n){const r=this||b6,I=n||r,L=Yu.from(I.headers);let d=I.data;return Rn.forEach(e,function(g){d=g.call(r,d,L.normalize(),n?n.status:void 0)}),L.normalize(),d}function JN(e){return!!(e&&e.__CANCEL__)}function U0(e,n,r){Hi.call(this,e??"canceled",Hi.ERR_CANCELED,n,r),this.name="CanceledError"}Rn.inherits(U0,Hi,{__CANCEL__:!0});function XN(e,n,r){const I=r.config.validateStatus;!r.status||!I||I(r.status)?e(r):n(new Hi("Request failed with status code "+r.status,[Hi.ERR_BAD_REQUEST,Hi.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Epe(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Ape(e,n){e=e||10;const r=new Array(e),I=new Array(e);let L=0,d=0,g;return n=n!==void 0?n:1e3,function(a){const _=Date.now(),m=I[d];g||(g=_),r[L]=a,I[L]=_;let i=d,v=0;for(;i!==L;)v+=r[i++],i=i%e;if(L=(L+1)%e,L===d&&(d=(d+1)%e),_-g<n)return;const b=m&&_-m;return b?Math.round(v*1e3/b):void 0}}function Mpe(e,n){let r=0,I=1e3/n,L,d;const g=(a,_=Date.now())=>{r=_,L=null,d&&(clearTimeout(d),d=null),e.apply(null,a)};return[(...a)=>{const _=Date.now(),m=_-r;m>=I?g(a,_):(L=a,d||(d=setTimeout(()=>{d=null,g(L)},I-m)))},()=>L&&g(L)]}const db=(e,n,r=3)=>{let I=0;const L=Ape(50,250);return Mpe(d=>{const g=d.loaded,a=d.lengthComputable?d.total:void 0,_=g-I,m=L(_),i=g<=a;I=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:_,rate:m||void 0,estimated:m&&a&&i?(a-g)/m:void 0,event:d,lengthComputable:a!=null,[n?"download":"upload"]:!0};e(v)},r)},KN=(e,n)=>{const r=e!=null;return[I=>n[0]({lengthComputable:r,total:e,loaded:I}),n[1]]},QN=e=>(...n)=>Rn.asap(()=>e(...n)),Ipe=qu.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function I(L){let d=L;return e&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=I(window.location.href),function(L){const d=Rn.isString(L)?I(L):L;return d.protocol===r.protocol&&d.host===r.host}}():function(){return function(){return!0}}(),Ppe=qu.hasStandardBrowserEnv?{write(e,n,r,I,L,d){const g=[e+"="+encodeURIComponent(n)];Rn.isNumber(r)&&g.push("expires="+new Date(r).toGMTString()),Rn.isString(I)&&g.push("path="+I),Rn.isString(L)&&g.push("domain="+L),d===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Npe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bpe(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function eB(e,n){return e&&!Npe(n)?Bpe(e,n):n}const tB=e=>e instanceof Yu?{...e}:e;function dm(e,n){n=n||{};const r={};function I(m,i,v){return Rn.isPlainObject(m)&&Rn.isPlainObject(i)?Rn.merge.call({caseless:v},m,i):Rn.isPlainObject(i)?Rn.merge({},i):Rn.isArray(i)?i.slice():i}function L(m,i,v){if(Rn.isUndefined(i)){if(!Rn.isUndefined(m))return I(void 0,m,v)}else return I(m,i,v)}function d(m,i){if(!Rn.isUndefined(i))return I(void 0,i)}function g(m,i){if(Rn.isUndefined(i)){if(!Rn.isUndefined(m))return I(void 0,m)}else return I(void 0,i)}function a(m,i,v){if(v in n)return I(m,i);if(v in e)return I(void 0,m)}const _={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(m,i)=>L(tB(m),tB(i),!0)};return Rn.forEach(Object.keys(Object.assign({},e,n)),function(m){const i=_[m]||L,v=i(e[m],n[m],m);Rn.isUndefined(v)&&i!==a||(r[m]=v)}),r}const aB=e=>{const n=dm({},e);let{data:r,withXSRFToken:I,xsrfHeaderName:L,xsrfCookieName:d,headers:g,auth:a}=n;n.headers=g=Yu.from(g),n.url=GN(eB(n.baseURL,n.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let _;if(Rn.isFormData(r)){if(qu.hasStandardBrowserEnv||qu.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((_=g.getContentType())!==!1){const[m,...i]=_?_.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([m||"multipart/form-data",...i].join("; "))}}if(qu.hasStandardBrowserEnv&&(I&&Rn.isFunction(I)&&(I=I(n)),I||I!==!1&&Ipe(n.url))){const m=L&&d&&Ppe.read(d);m&&g.set(L,m)}return n},Ope=typeof XMLHttpRequest<"u",zpe=Ope&&function(e){return new Promise(function(n,r){const I=aB(e);let L=I.data;const d=Yu.from(I.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:_}=I,m,i,v,b,c;function s(){b&&b(),c&&c(),I.cancelToken&&I.cancelToken.unsubscribe(m),I.signal&&I.signal.removeEventListener("abort",m)}let o=new XMLHttpRequest;o.open(I.method.toUpperCase(),I.url,!0),o.timeout=I.timeout;function l(){if(!o)return;const h=Yu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),p={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:h,config:e,request:o};XN(function(f){n(f),s()},function(f){r(f),s()},p),o=null}"onloadend"in o?o.onloadend=l:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(l)},o.onabort=function(){o&&(r(new Hi("Request aborted",Hi.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new Hi("Network Error",Hi.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let h=I.timeout?"timeout of "+I.timeout+"ms exceeded":"timeout exceeded";const p=I.transitional||qN;I.timeoutErrorMessage&&(h=I.timeoutErrorMessage),r(new Hi(h,p.clarifyTimeoutError?Hi.ETIMEDOUT:Hi.ECONNABORTED,e,o)),o=null},L===void 0&&d.setContentType(null),"setRequestHeader"in o&&Rn.forEach(d.toJSON(),function(h,p){o.setRequestHeader(p,h)}),Rn.isUndefined(I.withCredentials)||(o.withCredentials=!!I.withCredentials),g&&g!=="json"&&(o.responseType=I.responseType),_&&([v,c]=db(_,!0),o.addEventListener("progress",v)),a&&o.upload&&([i,b]=db(a),o.upload.addEventListener("progress",i),o.upload.addEventListener("loadend",b)),(I.cancelToken||I.signal)&&(m=h=>{o&&(r(!h||h.type?new U0(null,e,o):h),o.abort(),o=null)},I.cancelToken&&I.cancelToken.subscribe(m),I.signal&&(I.signal.aborted?m():I.signal.addEventListener("abort",m)));const u=Epe(I.url);if(u&&qu.protocols.indexOf(u)===-1){r(new Hi("Unsupported protocol "+u+":",Hi.ERR_BAD_REQUEST,e));return}o.send(L||null)})},Lpe=(e,n)=>{let r=new AbortController,I;const L=function(_){if(!I){I=!0,g();const m=_ instanceof Error?_:this.reason;r.abort(m instanceof Hi?m:new U0(m instanceof Error?m.message:m))}};let d=n&&setTimeout(()=>{L(new Hi(`timeout ${n} of ms exceeded`,Hi.ETIMEDOUT))},n);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",L):_.unsubscribe(L))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",L));const{signal:a}=r;return a.unsubscribe=g,[a,()=>{d&&clearTimeout(d),d=null}]},Fpe=Lpe,Dpe=function*(e,n){let r=e.byteLength;if(!n||r<n){yield e;return}let I=0,L;for(;I<r;)L=I+n,yield e.slice(I,L),I=L},Vpe=async function*(e,n,r){for await(const I of e)yield*Dpe(ArrayBuffer.isView(I)?I:await r(String(I)),n)},nB=(e,n,r,I,L)=>{const d=Vpe(e,n,L);let g=0,a,_=m=>{a||(a=!0,I&&I(m))};return new ReadableStream({async pull(m){try{const{done:i,value:v}=await d.next();if(i){_(),m.close();return}let b=v.byteLength;if(r){let c=g+=b;r(c)}m.enqueue(new Uint8Array(v))}catch(i){throw _(i),i}},cancel(m){return _(m),d.return()}},{highWaterMark:2})},ub=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",rB=ub&&typeof ReadableStream=="function",k6=ub&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),iB=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Rpe=rB&&iB(()=>{let e=!1;const n=new Request(qu.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),oB=64*1024,C6=rB&&iB(()=>Rn.isReadableStream(new Response("").body)),hb={stream:C6&&(e=>e.body)};ub&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!hb[n]&&(hb[n]=Rn.isFunction(e[n])?r=>r[n]():(r,I)=>{throw new Hi(`Response type '${n}' is not supported`,Hi.ERR_NOT_SUPPORT,I)})})})(new Response);const $pe=async e=>{if(e==null)return 0;if(Rn.isBlob(e))return e.size;if(Rn.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Rn.isArrayBufferView(e)||Rn.isArrayBuffer(e))return e.byteLength;if(Rn.isURLSearchParams(e)&&(e=e+""),Rn.isString(e))return(await k6(e)).byteLength},jpe=async(e,n)=>Rn.toFiniteNumber(e.getContentLength())??$pe(n),Upe=ub&&(async e=>{let{url:n,method:r,data:I,signal:L,cancelToken:d,timeout:g,onDownloadProgress:a,onUploadProgress:_,responseType:m,headers:i,withCredentials:v="same-origin",fetchOptions:b}=aB(e);m=m?(m+"").toLowerCase():"text";let[c,s]=L||d||g?Fpe([L,d],g):[],o,l;const u=()=>{!o&&setTimeout(()=>{c&&c.unsubscribe()}),o=!0};let h;try{if(_&&Rpe&&r!=="get"&&r!=="head"&&(h=await jpe(i,I))!==0){let w=new Request(n,{method:"POST",body:I,duplex:"half"}),x;if(Rn.isFormData(I)&&(x=w.headers.get("content-type"))&&i.setContentType(x),w.body){const[M,k]=KN(h,db(QN(_)));I=nB(w.body,oB,M,k,k6)}}Rn.isString(v)||(v=v?"include":"omit"),l=new Request(n,{...b,signal:c,method:r.toUpperCase(),headers:i.normalize().toJSON(),body:I,duplex:"half",credentials:v});let p=await fetch(l);const f=C6&&(m==="stream"||m==="response");if(C6&&(a||f)){const w={};["status","statusText","headers"].forEach(S=>{w[S]=p[S]});const x=Rn.toFiniteNumber(p.headers.get("content-length")),[M,k]=a&&KN(x,db(QN(a),!0))||[];p=new Response(nB(p.body,oB,M,()=>{k&&k(),f&&u()},k6),w)}m=m||"text";let y=await hb[Rn.findKey(hb,m)||"text"](p,e);return!f&&u(),s&&s(),await new Promise((w,x)=>{XN(w,x,{data:y,headers:Yu.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:l})})}catch(p){throw u(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new Hi("Network Error",Hi.ERR_NETWORK,e,l),{cause:p.cause||p}):Hi.from(p,p&&p.code,e,l)}}),S6={http:ipe,xhr:zpe,fetch:Upe};Rn.forEach(S6,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const sB=e=>`- ${e}`,Hpe=e=>Rn.isFunction(e)||e===null||e===!1,lB={getAdapter:e=>{e=Rn.isArray(e)?e:[e];const{length:n}=e;let r,I;const L={};for(let d=0;d<n;d++){r=e[d];let g;if(I=r,!Hpe(r)&&(I=S6[(g=String(r)).toLowerCase()],I===void 0))throw new Hi(`Unknown adapter '${g}'`);if(I)break;L[g||"#"+d]=I}if(!I){const d=Object.entries(L).map(([a,_])=>`adapter ${a} `+(_===!1?"is not supported by the environment":"is not available in the build"));let g=n?d.length>1?`since :
|
|
37
37
|
`+d.map(sB).join(`
|
|
@@ -16253,7 +16253,7 @@ function vpe(e, a, n, E, R, c) {
|
|
|
16253
16253
|
], 512);
|
|
16254
16254
|
}
|
|
16255
16255
|
const _pe = /* @__PURE__ */ xi(mpe, [["render", vpe], ["__scopeId", "data-v-12759086"]]);
|
|
16256
|
-
const rC = (e) => (Xn("data-v-
|
|
16256
|
+
const rC = (e) => (Xn("data-v-556acf41"), e = e(), Kn(), e), bpe = { class: "statistics-main" }, xpe = { class: "statistics-main__header" }, wpe = { class: "statistics-main__header__filter" }, kpe = {
|
|
16257
16257
|
key: 0,
|
|
16258
16258
|
class: "statistics-main__header__live-switch"
|
|
16259
16259
|
}, Tpe = /* @__PURE__ */ rC(() => /* @__PURE__ */ re("div", null, "Este partido", -1)), Spe = /* @__PURE__ */ rC(() => /* @__PURE__ */ re("div", null, "Acumulado", -1)), Cpe = { class: "statistics-main__header__info" }, Ape = /* @__PURE__ */ rC(() => /* @__PURE__ */ re("br", null, null, -1)), Mpe = ks({
|
|
@@ -16349,12 +16349,12 @@ const rC = (e) => (Xn("data-v-fb0d4a6b"), e = e(), Kn(), e), bpe = { class: "sta
|
|
|
16349
16349
|
const u = (/* @__PURE__ */ new Date()).getTime(), h = new Date(n.game.dateTimeUTC).getTime() - u, p = Math.floor(h / (1e3 * 60 * 60 * 24)), g = Math.floor(h % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), x = Math.floor(h % (1e3 * 60 * 60) / (1e3 * 60)), b = Math.floor(h % (1e3 * 60) / 1e3);
|
|
16350
16350
|
let M = "";
|
|
16351
16351
|
return b > 0 && (M = b === 1 ? b + " segundo" : b + " segundos"), x > 0 && (M = x === 1 ? x + " minuto" : x + " minutos"), g > 0 && (M = g === 1 ? g + " hora" : g + " horas"), p > 0 && (M = p === 1 ? p + " día" : p + " días"), M;
|
|
16352
|
-
}), _ = ln(() => v.value.id === "st4" || (n.game.is_live || n.game.game_status === 0) && !E.state.nextGeneral.showLiveData ? "Jugadas destacadas durante el torneo" :
|
|
16352
|
+
}), _ = ln(() => v.value.id === "st4" || (n.game.is_live || n.game.game_status === 0) && !E.state.nextGeneral.showLiveData ? "Jugadas destacadas durante el torneo" : n.game.game_status === 1 || (n.game.is_live || n.game.game_status === 0) && E.state.nextGeneral.showLiveData ? "Jugadas destacadas durante este partido" : "");
|
|
16353
16353
|
An(
|
|
16354
16354
|
() => n.game,
|
|
16355
16355
|
(u) => {
|
|
16356
16356
|
const d = { ...u };
|
|
16357
|
-
f.value = !n.game.is_live, n.game.is_live || qS(), l(d), r.value++;
|
|
16357
|
+
f.value = !(n.game.is_live || n.game.game_status === 0), n.game.is_live || qS(), l(d), r.value++;
|
|
16358
16358
|
},
|
|
16359
16359
|
{ deep: !0, immediate: !0 }
|
|
16360
16360
|
), An(
|
|
@@ -16473,7 +16473,7 @@ const rC = (e) => (Xn("data-v-fb0d4a6b"), e = e(), Kn(), e), bpe = { class: "sta
|
|
|
16473
16473
|
]))
|
|
16474
16474
|
]));
|
|
16475
16475
|
}
|
|
16476
|
-
}), Ppe = /* @__PURE__ */ xi(Epe, [["__scopeId", "data-v-
|
|
16476
|
+
}), Ppe = /* @__PURE__ */ xi(Epe, [["__scopeId", "data-v-556acf41"]]);
|
|
16477
16477
|
function kV(e, a) {
|
|
16478
16478
|
return function() {
|
|
16479
16479
|
return e.apply(a, arguments);
|
|
@@ -94719,11 +94719,11 @@ const mTt = { class: "dropdown" }, gTt = { class: "selected-item" }, yTt = {
|
|
|
94719
94719
|
},
|
|
94720
94720
|
setup(e) {
|
|
94721
94721
|
const a = e, n = _1(
|
|
94722
|
-
() => import("./FilterSubcategories-5a4d9250-
|
|
94722
|
+
() => import("./FilterSubcategories-5a4d9250-aedca41d.js")
|
|
94723
94723
|
), E = _1(
|
|
94724
|
-
() => import("./FilterConditions-3aab28df-
|
|
94724
|
+
() => import("./FilterConditions-3aab28df-54ad8afe.js")
|
|
94725
94725
|
), R = _1(
|
|
94726
|
-
() => import("./FilterField-c27c9666-
|
|
94726
|
+
() => import("./FilterField-c27c9666-32b8d9f2.js")
|
|
94727
94727
|
), c = [
|
|
94728
94728
|
{
|
|
94729
94729
|
name: "Sub categorías",
|
|
@@ -210198,11 +210198,11 @@ const sea = { class: "dropdown" }, lea = { class: "selected-item" }, cea = {
|
|
|
210198
210198
|
},
|
|
210199
210199
|
setup(e) {
|
|
210200
210200
|
const a = e, n = _1(
|
|
210201
|
-
() => import("./FilterSubcategories-a7b96423-Dq4ouXsj-
|
|
210201
|
+
() => import("./FilterSubcategories-a7b96423-Dq4ouXsj-33b6d24a.js")
|
|
210202
210202
|
), E = _1(
|
|
210203
|
-
() => import("./FilterConditions-dc6b25de-DOW3ApFh-
|
|
210203
|
+
() => import("./FilterConditions-dc6b25de-DOW3ApFh-185e92b9.js")
|
|
210204
210204
|
), R = _1(
|
|
210205
|
-
() => import("./FilterField-37ad154d-CGBI29FT-
|
|
210205
|
+
() => import("./FilterField-37ad154d-CGBI29FT-a54ccd80.js")
|
|
210206
210206
|
), c = [
|
|
210207
210207
|
{
|
|
210208
210208
|
name: "Sub categorías",
|