@golstats/gsc-game-data 1.0.122 → 1.0.124
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-dc6b25de-CdawgDTp-4d9f4acf.js → FilterConditions-dc6b25de-CdawgDTp-c7691ca8.js} +1 -1
- package/dist/{FilterField-37ad154d-PFd8HpMJ-ff115184.js → FilterField-37ad154d-PFd8HpMJ-17bad539.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Bs67-HFD-c697804f.js → FilterSubcategories-a7b96423-Bs67-HFD-0e5ac46f.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +2 -2
- package/dist/{index-8fa7a8a9.js → index-3f39144a.js} +17 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as V, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as $, popScopeId as H } from "vue";
|
|
2
|
-
import { r as T, F as m } from "./index-
|
|
2
|
+
import { r as T, F as m } from "./index-3f39144a.js";
|
|
3
3
|
const n = (o) => ($("data-v-80d9c265"), o = o(), H(), o), F = { class: "details__header" }, R = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), W = { class: "details__header__checkbox" }, I = { class: "details__body" }, z = { 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-PFd8HpMJ-ff115184.js → FilterField-37ad154d-PFd8HpMJ-17bad539.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, R as f } from "./index-
|
|
2
|
+
import { r as u, R as f } from "./index-3f39144a.js";
|
|
3
3
|
const i = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(s) {
|
|
@@ -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, F as y } from "./index-
|
|
2
|
+
import { r as l, F as y } from "./index-3f39144a.js";
|
|
3
3
|
const b = { class: "subcategory-group" }, g = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
package/dist/gsc-game-data.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const d=(this[R9]=this[R9]={accessors:{}}).accessors,m=this.prototype;function n(s){const i=Zm(s);d[i]||(UZ(m,s),d[i]=!0)}return dr.isArray(a)?a.forEach(n):n(a),this}}rg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(rg.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),dr.freezeMethods(rg);const jc=rg;function jb(e,a){const r=this||Lb,d=a||r,m=jc.from(d.headers);let n=d.data;return dr.forEach(e,function(i){n=i.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function V9(e){return!!(e&&e.__CANCEL__)}function dh(e,a,r){hn.call(this,e??"canceled",hn.ERR_CANCELED,a,r),this.name="CanceledError"}dr.inherits(dh,hn,{__CANCEL__:!0});function z9(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new hn("Request failed with status code "+r.status,[hn.ERR_BAD_REQUEST,hn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function HZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function GZ(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(_){const f=Date.now(),o=d[n];s||(s=f),r[m]=_,d[m]=f;let g=n,x=0;for(;g!==m;)x+=r[g++],g=g%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),f-s<a)return;const c=o&&f-o;return c?Math.round(x*1e3/c):void 0}}function WZ(e,a){let r=0;const d=1e3/a;let m=null;return function(){const s=this===!0,i=Date.now();if(s||i-r>d)return m&&(clearTimeout(m),m=null),r=i,e.apply(null,arguments);m||(m=setTimeout(()=>(m=null,r=Date.now(),e.apply(null,arguments)),d-(i-r)))}}const ng=(e,a,r=3)=>{let d=0;const m=GZ(50,250);return WZ(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,_=s-d,f=m(_),o=s<=i;d=s;const g={loaded:s,total:i,progress:i?s/i:void 0,bytes:_,rate:f||void 0,estimated:f&&i&&o?(i-s)/f:void 0,event:n,lengthComputable:i!=null};g[a?"download":"upload"]=!0,e(g)},r)},qZ=$c.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let d;function m(n){let s=n;return a&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return d=m(window.location.href),function(s){const i=dr.isString(s)?m(s):s;return i.protocol===d.protocol&&i.host===d.host}}():function(){return function(){return!0}}(),YZ=$c.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];dr.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),dr.isString(d)&&s.push("path="+d),dr.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ZZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function XZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function D9(e,a){return e&&!ZZ(a)?XZ(e,a):a}const L9=e=>e instanceof jc?{...e}:e;function wp(e,a){a=a||{};const r={};function d(f,o,g){return dr.isPlainObject(f)&&dr.isPlainObject(o)?dr.merge.call({caseless:g},f,o):dr.isPlainObject(o)?dr.merge({},o):dr.isArray(o)?o.slice():o}function m(f,o,g){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f,g)}else return d(f,o,g)}function n(f,o){if(!dr.isUndefined(o))return d(void 0,o)}function s(f,o){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f)}else return d(void 0,o)}function i(f,o,g){if(g in a)return d(f,o);if(g in e)return d(void 0,f)}const _={url:n,method:n,data:n,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(f,o)=>m(L9(f),L9(o),!0)};return dr.forEach(Object.keys(Object.assign({},e,a)),function(o){const g=_[o]||m,x=g(e[o],a[o],o);dr.isUndefined(x)&&g!==i||(r[o]=x)}),r}const $9=e=>{const a=wp({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:m,xsrfCookieName:n,headers:s,auth:i}=a;a.headers=s=jc.from(s),a.url=M9(D9(a.baseURL,a.url),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let _;if(dr.isFormData(r)){if($c.hasStandardBrowserEnv||$c.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((_=s.getContentType())!==!1){const[f,...o]=_?_.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if($c.hasStandardBrowserEnv&&(d&&dr.isFunction(d)&&(d=d(a)),d||d!==!1&&qZ(a.url))){const f=m&&n&&YZ.read(n);f&&s.set(m,f)}return a},KZ=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,d){const m=$9(e);let n=m.data;const s=jc.from(m.headers).normalize();let{responseType:i}=m,_;function f(){m.cancelToken&&m.cancelToken.unsubscribe(_),m.signal&&m.signal.removeEventListener("abort",_)}let o=new XMLHttpRequest;o.open(m.method.toUpperCase(),m.url,!0),o.timeout=m.timeout;function g(){if(!o)return;const c=jc.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:c,config:e,request:o};z9(function(h){r(h),f()},function(h){d(h),f()},u),o=null}"onloadend"in o?o.onloadend=g:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(g)},o.onabort=function(){o&&(d(new hn("Request aborted",hn.ECONNABORTED,m,o)),o=null)},o.onerror=function(){d(new hn("Network Error",hn.ERR_NETWORK,m,o)),o=null},o.ontimeout=function(){let l=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded";const u=m.transitional||P9;m.timeoutErrorMessage&&(l=m.timeoutErrorMessage),d(new hn(l,u.clarifyTimeoutError?hn.ETIMEDOUT:hn.ECONNABORTED,m,o)),o=null},n===void 0&&s.setContentType(null),"setRequestHeader"in o&&dr.forEach(s.toJSON(),function(l,u){o.setRequestHeader(u,l)}),dr.isUndefined(m.withCredentials)||(o.withCredentials=!!m.withCredentials),i&&i!=="json"&&(o.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&o.addEventListener("progress",ng(m.onDownloadProgress,!0)),typeof m.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",ng(m.onUploadProgress)),(m.cancelToken||m.signal)&&(_=c=>{o&&(d(!c||c.type?new dh(null,e,o):c),o.abort(),o=null)},m.cancelToken&&m.cancelToken.subscribe(_),m.signal&&(m.signal.aborted?_():m.signal.addEventListener("abort",_)));const x=HZ(m.url);if(x&&$c.protocols.indexOf(x)===-1){d(new hn("Unsupported protocol "+x+":",hn.ERR_BAD_REQUEST,e));return}o.send(n||null)})},JZ=(e,a)=>{let r=new AbortController,d;const m=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof hn?f:new dh(f instanceof Error?f.message:f))}};let n=a&&setTimeout(()=>{m(new hn(`timeout ${a} of ms exceeded`,hn.ETIMEDOUT))},a);const s=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",m):_.unsubscribe(m))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",m));const{signal:i}=r;return i.unsubscribe=s,[i,()=>{n&&clearTimeout(n),n=null}]},QZ=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,m;for(;d<r;)m=d+a,yield e.slice(d,m),d=m},eX=async function*(e,a,r){for await(const d of e)yield*QZ(ArrayBuffer.isView(d)?d:await r(String(d)),a)},j9=(e,a,r,d,m)=>{const n=eX(e,a,m);let s=0;return new ReadableStream({type:"bytes",async pull(i){const{done:_,value:f}=await n.next();if(_){i.close(),d();return}let o=f.byteLength;r&&r(s+=o),i.enqueue(new Uint8Array(f))},cancel(i){return d(i),n.return()}},{highWaterMark:2})},U9=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},ig=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",H9=ig&&typeof ReadableStream=="function",Ub=ig&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tX=H9&&(()=>{let e=!1;const a=new Request($c.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a})(),G9=64*1024,Hb=H9&&!!(()=>{try{return dr.isReadableStream(new Response("").body)}catch{}})(),og={stream:Hb&&(e=>e.body)};ig&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!og[a]&&(og[a]=dr.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new hn(`Response type '${a}' is not supported`,hn.ERR_NOT_SUPPORT,d)})})})(new Response);const aX=async e=>{if(e==null)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(dr.isArrayBufferView(e))return e.byteLength;if(dr.isURLSearchParams(e)&&(e=e+""),dr.isString(e))return(await Ub(e)).byteLength},rX=async(e,a)=>{const r=dr.toFiniteNumber(e.getContentLength());return r??aX(a)},Gb={http:EZ,xhr:KZ,fetch:ig&&(async e=>{let{url:a,method:r,data:d,signal:m,cancelToken:n,timeout:s,onDownloadProgress:i,onUploadProgress:_,responseType:f,headers:o,withCredentials:g="same-origin",fetchOptions:x}=$9(e);f=f?(f+"").toLowerCase():"text";let[c,l]=m||n||s?JZ([m,n],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&tX&&r!=="get"&&r!=="head"&&(y=await rX(o,d))!==0){let C=new Request(a,{method:"POST",body:d,duplex:"half"}),k;dr.isFormData(d)&&(k=C.headers.get("content-type"))&&o.setContentType(k),C.body&&(d=j9(C.body,G9,U9(y,ng(_)),null,Ub))}dr.isString(g)||(g=g?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:g});let b=await fetch(p);const v=Hb&&(f==="stream"||f==="response");if(Hb&&(i||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=dr.toFiniteNumber(b.headers.get("content-length"));b=new Response(j9(b.body,G9,i&&U9(k,ng(i,!0)),v&&h,Ub),C)}f=f||"text";let w=await og[dr.findKey(og,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{z9(C,k,{data:w,headers:jc.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(b){throw h(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new hn("Network Error",hn.ERR_NETWORK,e,p),{cause:b.cause||b}):hn.from(b,b&&b.code,e,p)}})};dr.forEach(Gb,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const W9=e=>`- ${e}`,nX=e=>dr.isFunction(e)||e===null||e===!1,q9={getAdapter:e=>{e=dr.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!nX(r)&&(d=Gb[(s=String(r)).toLowerCase()],d===void 0))throw new hn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
21
21
|
`+n.map(W9).join(`
|
|
22
22
|
`):" "+W9(n[0]):"as no adapter specified";throw new hn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:Gb};function Wb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dh(null,e)}function Y9(e){return Wb(e),e.headers=jc.from(e.headers),e.data=jb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q9.getAdapter(e.adapter||Lb.adapter)(e).then(function(d){return Wb(e),d.data=jb.call(e,e.transformResponse,d),d.headers=jc.from(d.headers),d},function(d){return V9(d)||(Wb(e),d&&d.response&&(d.response.data=jb.call(e,e.transformResponse,d.response),d.response.headers=jc.from(d.response.headers))),Promise.reject(d)})}const Z9="1.7.2",qb={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{qb[e]=function(d){return typeof d===e||"a"+(a<1?"n ":" ")+e}});const X9={};qb.transitional=function(a,r,d){function m(n,s){return"[Axios v"+Z9+"] Transitional option '"+n+"'"+s+(d?". "+d:"")}return(n,s,i)=>{if(a===!1)throw new hn(m(s," has been removed"+(r?" in "+r:"")),hn.ERR_DEPRECATED);return r&&!X9[s]&&(X9[s]=!0,console.warn(m(s," has been deprecated since v"+r+" and will be removed in the near future"))),a?a(n,s,i):!0}};function iX(e,a,r){if(typeof e!="object")throw new hn("options must be an object",hn.ERR_BAD_OPTION_VALUE);const d=Object.keys(e);let m=d.length;for(;m-- >0;){const n=d[m],s=a[n];if(s){const i=e[n],_=i===void 0||s(i,n,e);if(_!==!0)throw new hn("option "+n+" must be "+_,hn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new hn("Unknown option "+n,hn.ERR_BAD_OPTION)}}const Yb={assertOptions:iX,validators:qb},Bu=Yb.validators;class sg{constructor(a){this.defaults=a,this.interceptors={request:new O9,response:new O9}}async request(a,r){try{return await this._request(a,r)}catch(d){if(d instanceof Error){let m;Error.captureStackTrace?Error.captureStackTrace(m={}):m=new Error;const n=m.stack?m.stack.replace(/^.+\n/,""):"";try{d.stack?n&&!String(d.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(d.stack+=`
|
|
23
|
-
`+n):d.stack=n}catch{}}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=wp(this.defaults,r);const{transitional:d,paramsSerializer:m,headers:n}=r;d!==void 0&&Yb.assertOptions(d,{silentJSONParsing:Bu.transitional(Bu.boolean),forcedJSONParsing:Bu.transitional(Bu.boolean),clarifyTimeoutError:Bu.transitional(Bu.boolean)},!1),m!=null&&(dr.isFunction(m)?r.paramsSerializer={serialize:m}:Yb.assertOptions(m,{encode:Bu.function,serialize:Bu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=n&&dr.merge(n.common,n[r.method]);n&&dr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete n[l]}),r.headers=jc.concat(s,n);const i=[];let _=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(r)===!1||(_=_&&u.synchronous,i.unshift(u.fulfilled,u.rejected))});const f=[];this.interceptors.response.forEach(function(u){f.push(u.fulfilled,u.rejected)});let o,g=0,x;if(!_){const l=[Y9.bind(this),void 0];for(l.unshift.apply(l,i),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);g<x;)o=o.then(l[g++],l[g++]);return o}x=i.length;let c=r;for(g=0;g<x;){const l=i[g++],u=i[g++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=Y9.call(this,c)}catch(l){return Promise.reject(l)}for(g=0,x=f.length;g<x;)o=o.then(f[g++],f[g++]);return o}getUri(a){a=wp(this.defaults,a);const r=D9(a.baseURL,a.url);return M9(r,a.params,a.paramsSerializer)}}dr.forEach(["delete","get","head","options"],function(a){sg.prototype[a]=function(r,d){return this.request(wp(d||{},{method:a,url:r,data:(d||{}).data}))}}),dr.forEach(["post","put","patch"],function(a){function r(d){return function(n,s,i){return this.request(wp(i||{},{method:a,headers:d?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}sg.prototype[a]=r(),sg.prototype[a+"Form"]=r(!0)});const lg=sg;class Zb{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const d=this;this.promise.then(m=>{if(!d._listeners)return;let n=d._listeners.length;for(;n-- >0;)d._listeners[n](m);d._listeners=null}),this.promise.then=m=>{let n;const s=new Promise(i=>{d.subscribe(i),n=i}).then(m);return s.cancel=function(){d.unsubscribe(n)},s},a(function(n,s,i){d.reason||(d.reason=new dh(n,s,i),r(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const r=this._listeners.indexOf(a);r!==-1&&this._listeners.splice(r,1)}static source(){let a;return{token:new Zb(function(m){a=m}),cancel:a}}}const oX=Zb;function sX(e){return function(r){return e.apply(null,r)}}function lX(e){return dr.isObject(e)&&e.isAxiosError===!0}const Xb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xb).forEach(([e,a])=>{Xb[a]=e});const cX=Xb;function K9(e){const a=new lg(e),r=g9(lg.prototype.request,a);return dr.extend(r,lg.prototype,a,{allOwnKeys:!0}),dr.extend(r,a,null,{allOwnKeys:!0}),r.create=function(m){return K9(wp(e,m))},r}const vo=K9(Lb);vo.Axios=lg,vo.CanceledError=dh,vo.CancelToken=oX,vo.isCancel=V9,vo.VERSION=Z9,vo.toFormData=tg,vo.AxiosError=hn,vo.Cancel=vo.CanceledError,vo.all=function(a){return Promise.all(a)},vo.spread=sX,vo.isAxiosError=lX,vo.mergeConfig=wp,vo.AxiosHeaders=jc,vo.formToJSON=e=>F9(dr.isHTMLForm(e)?new FormData(e):e),vo.getAdapter=q9.getAdapter,vo.HttpStatusCode=cX,vo.default=vo;const cg=vo,J9="/icn-play.svg",wBt="",dX={components:{BarraLeft:OY,BarraRight:$Y},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{gamesBySeason:{}}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["homeTeam","visitingTeam"]),canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,a){if(!a)return;var r=[];e.type==2?e.position_id==1?e.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.category:e.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.category:e.type==3?e.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.category:e.category!=0?r=e.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const d=[1,2,3];let m={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:d,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(m.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",m)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,r){if(!a.game_id)return this.objectZeroValues;const d=e.generalCategoriesIds.accomplished===3;if(a.is_live){const m=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return m?{numberValue:d?e[r].accomplished.totalLive/m*100:e[r].accomplished.totalLive,numberBarPercent:e[r].accomplished.totalLive/m}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const m=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return m?{numberValue:d?e[r].accomplished.totalPostGame/m*100:e[r].accomplished.totalPostGame,numberBarPercent:e[r].accomplished.totalPostGame/m}:this.objectZeroValues}if(d){const m=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,n=e[r].accomplished.avgPostGame/m;return e[r].accomplished.avgPostGame?{numberValue:n<1?n*100:n,numberBarPercent:e[r].accomplished.avgPostGame/m}:this.objectZeroValues}else{const m=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[r].accomplished.avgPostGame?{numberValue:e[r].accomplished.avgPostGame,numberBarPercent:e[r].accomplished.avgPostGame/m}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},r=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await cg.get(r,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},Q9=e=>(t.pushScopeId("data-v-609b8939"),e=e(),t.popScopeId(),e),uX={class:"card"},pX={class:"card__header"},hX={class:"card__stats"},mX=["onClick"],fX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],gX={key:1,class:"card__stats__stat__button_empty"},yX={class:"card__stats__title"},_X={class:"card__stats__scores"},vX={key:0},bX={key:1},xX={key:2},wX={key:3},kX={class:"card__stats__bars"},CX=["onClick"],EX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],SX={key:1,class:"card__stats__stat__button_empty"};function TX(e,a,r,d,m,n){const s=t.resolveComponent("BarraLeft"),i=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uX,[t.createElementVNode("span",pX,t.toDisplayString(r.data.name),1),t.createElementVNode("div",hX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.subcategories,(_,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"card__stats__stat"},[t.createElementVNode("div",null,[n.canPlayVideos.home&&n.hVal(_)&&n.hVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:o=>n.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},n.canPlayVideos.home)},fX,8,mX)):(t.openBlock(),t.createElementBlock("div",gX))]),t.createElementVNode("div",null,[t.createElementVNode("div",yX,t.toDisplayString(_.name),1),t.createElementVNode("div",_X,[n.hVal(_)?(t.openBlock(),t.createElementBlock("span",vX,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.hVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",bX,"0")),n.aVal(_)?(t.openBlock(),t.createElementBlock("span",xX,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.aVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",wX,"0"))]),t.createElementVNode("div",kX,[t.createElementVNode("div",null,[n.hVal(_)?(t.openBlock(),t.createBlock(s,{key:0,postmatch:n.hVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(s,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[n.aVal(_)?(t.openBlock(),t.createBlock(i,{key:0,postmatch:n.aVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(i,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[n.canPlayVideos.away&&n.aVal(_)&&n.aVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:o=>n.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},n.canPlayVideos.away)},EX,8,CX)):(t.openBlock(),t.createElementBlock("div",SX))])]))),128))])])}const AX=Si(dX,[["render",TX],["__scopeId","data-v-609b8939"]]),EBt="",NX={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Iu=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),BX={class:"comparative-card"},IX=Iu(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),MX={class:"versus"},OX={class:"team-badge"},PX=["src","alt"],FX=Iu(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),RX=Iu(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),VX={class:"team-badge"},zX=["src","alt"],DX={class:"details"},LX={key:0},$X={key:0},jX={key:1},UX=Iu(()=>t.createElementVNode("td",null,"Puntos",-1)),HX=Iu(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),GX=Iu(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),WX=Iu(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),qX=Iu(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function YX(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(n.customStyle)},[t.createElementVNode("div",BX,[IX,t.createElementVNode("div",MX,[t.createElementVNode("div",OX,[r.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.local.team_logo,alt:r.local.team_name},null,8,PX)):t.createCommentVNode("",!0),FX]),RX,t.createElementVNode("div",VX,[r.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.away.team_logo,alt:r.away.team_name},null,8,zX)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",DX,[r.away&&r.local?(t.openBlock(),t.createElementBlock("table",LX,[t.createElementVNode("tbody",null,[r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",$X,[t.createElementVNode("td",null,t.toDisplayString(r.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),r.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(r.away.table_position),1)])):t.createCommentVNode("",!0),r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",jX,[t.createElementVNode("td",null,t.toDisplayString(r.local.points),1),UX,t.createElementVNode("td",null,t.toDisplayString(r.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_played),1),HX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_won),1),GX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_lost),1),WX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_tied),1),qX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const ZX=Si(NX,[["render",YX],["__scopeId","data-v-4a054ef7"]]),SBt="",XX=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Kb={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},eC=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},tC=Kb.setup;Kb.setup=tC?(e,a)=>(eC(),tC(e,a)):eC;const KX={ref:"gscScrollableContainer",class:"scrollable-container"},JX={class:"scrollable-arrows"},QX=["width","height","viewBox"],eK=["stroke"],tK={class:"scrollable-wrapper"},aK={class:"scrollable-arrows"},rK=["width","height","viewBox"],nK=["stroke"];function iK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",KX,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",n.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>n.scrollLeft&&n.scrollLeft(...s))},[t.createElementVNode("div",JX,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,eK)],8,QX))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>n.getScroll&&n.getScroll(...s))},[t.createElementVNode("div",tK,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",n.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>n.scrollRight&&n.scrollRight(...s))},[t.createElementVNode("div",aK,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,nK)],8,rK))])],2)):t.createCommentVNode("",!0)],512)}const Jb=XX(Kb,[["render",iK],["__scopeId","data-v-b548a08d"]]),TBt="";let aC=null;const oK={name:"App",components:{GscLinearTeamStats:AX,TableComparative:ZX,GSCSlider:Jb},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)aC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),aC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await cg.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),r=a.data.data.findIndex(m=>m.team_id===this.gameForAnalysis.home_team),d=a.data.data.findIndex(m=>m.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[r],this.away=a.data.data[d]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},sK={class:"container",ref:"gamesContainer"},lK={key:0,class:"grid-container"},cK={key:0,class:"item"},dK={class:"item"},uK={class:"item"},pK={class:"item"},hK={class:"item"},mK={class:"item"},fK={class:"item"},gK={class:"grid-container"},yK={key:0,class:"item-comparative"},_K={class:"table-movil-container"};function vK(e,a,r,d,m,n){const s=t.resolveComponent("TableComparative"),i=t.resolveComponent("GscLinearTeamStats"),_=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",sK,[m.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",gK,[m.home&&m.away?(t.openBlock(),t.createElementBlock("div",yK,[t.createVNode(s,{local:m.home,"tournament-type":r.tournamentType,away:m.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(_,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",_K,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510&&m.gamesContainerWidth>450?"width: 400px":m.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["play-videos-privileges","onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",lK,[m.home&&m.away?(t.openBlock(),t.createElementBlock("div",cK,[t.createVNode(s,{local:m.home,"tournament-type":r.tournamentType,away:m.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",dK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",uK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",pK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",hK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",mK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",fK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])])]))],512)}const bK=Si(oK,[["render",vK]]),ABt="",NBt="",rC=["#cbee6b","#0033C5"],xK={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...Ol("nextGeneral",["showLiveData","gameForAnalysis"]),...qi("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),r=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,d=Math.floor(r/(1e3*60*60*24)),m=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),n=Math.floor(r%(1e3*60*60)/(1e3*60)),s=Math.floor(r%(1e3*60)/1e3);let i="";return s>0&&(i=s==1?s+" segundo":s+" segundos"),n>0&&(i=n==1?n+" minuto":n+" minutos"),m>0&&(i=m==1?m+" hora":m+" horas"),d>0&&(i=d==1?d+" día":d+" días"),i}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:rC,fill:{colors:rC,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:r,w:d}){const m=d.config.arraySubcategories[r].name,n=d.config.series[a].name,s=d.config.series[a].dataTotal[r],i=e[a][r];return d.config.arraySubcategories[r].id==="3-0"?`
|
|
23
|
+
`+n):d.stack=n}catch{}}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=wp(this.defaults,r);const{transitional:d,paramsSerializer:m,headers:n}=r;d!==void 0&&Yb.assertOptions(d,{silentJSONParsing:Bu.transitional(Bu.boolean),forcedJSONParsing:Bu.transitional(Bu.boolean),clarifyTimeoutError:Bu.transitional(Bu.boolean)},!1),m!=null&&(dr.isFunction(m)?r.paramsSerializer={serialize:m}:Yb.assertOptions(m,{encode:Bu.function,serialize:Bu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=n&&dr.merge(n.common,n[r.method]);n&&dr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete n[l]}),r.headers=jc.concat(s,n);const i=[];let _=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(r)===!1||(_=_&&u.synchronous,i.unshift(u.fulfilled,u.rejected))});const f=[];this.interceptors.response.forEach(function(u){f.push(u.fulfilled,u.rejected)});let o,g=0,x;if(!_){const l=[Y9.bind(this),void 0];for(l.unshift.apply(l,i),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);g<x;)o=o.then(l[g++],l[g++]);return o}x=i.length;let c=r;for(g=0;g<x;){const l=i[g++],u=i[g++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=Y9.call(this,c)}catch(l){return Promise.reject(l)}for(g=0,x=f.length;g<x;)o=o.then(f[g++],f[g++]);return o}getUri(a){a=wp(this.defaults,a);const r=D9(a.baseURL,a.url);return M9(r,a.params,a.paramsSerializer)}}dr.forEach(["delete","get","head","options"],function(a){sg.prototype[a]=function(r,d){return this.request(wp(d||{},{method:a,url:r,data:(d||{}).data}))}}),dr.forEach(["post","put","patch"],function(a){function r(d){return function(n,s,i){return this.request(wp(i||{},{method:a,headers:d?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}sg.prototype[a]=r(),sg.prototype[a+"Form"]=r(!0)});const lg=sg;class Zb{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(n){r=n});const d=this;this.promise.then(m=>{if(!d._listeners)return;let n=d._listeners.length;for(;n-- >0;)d._listeners[n](m);d._listeners=null}),this.promise.then=m=>{let n;const s=new Promise(i=>{d.subscribe(i),n=i}).then(m);return s.cancel=function(){d.unsubscribe(n)},s},a(function(n,s,i){d.reason||(d.reason=new dh(n,s,i),r(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const r=this._listeners.indexOf(a);r!==-1&&this._listeners.splice(r,1)}static source(){let a;return{token:new Zb(function(m){a=m}),cancel:a}}}const oX=Zb;function sX(e){return function(r){return e.apply(null,r)}}function lX(e){return dr.isObject(e)&&e.isAxiosError===!0}const Xb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xb).forEach(([e,a])=>{Xb[a]=e});const cX=Xb;function K9(e){const a=new lg(e),r=g9(lg.prototype.request,a);return dr.extend(r,lg.prototype,a,{allOwnKeys:!0}),dr.extend(r,a,null,{allOwnKeys:!0}),r.create=function(m){return K9(wp(e,m))},r}const vo=K9(Lb);vo.Axios=lg,vo.CanceledError=dh,vo.CancelToken=oX,vo.isCancel=V9,vo.VERSION=Z9,vo.toFormData=tg,vo.AxiosError=hn,vo.Cancel=vo.CanceledError,vo.all=function(a){return Promise.all(a)},vo.spread=sX,vo.isAxiosError=lX,vo.mergeConfig=wp,vo.AxiosHeaders=jc,vo.formToJSON=e=>F9(dr.isHTMLForm(e)?new FormData(e):e),vo.getAdapter=q9.getAdapter,vo.HttpStatusCode=cX,vo.default=vo;const cg=vo,J9="/icn-play.svg",wBt="",dX={components:{BarraLeft:OY,BarraRight:$Y},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{gamesBySeason:{}}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["homeTeam","visitingTeam"]),canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,a){if(!a)return;var r=[];e.type==2?e.position_id==1?e.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.category:e.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.category:e.type==3?e.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.category:e.category!=0?r=e.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const d=[1,2,3];let m={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:d,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(m.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",m)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,r){if(!a.game_id)return this.objectZeroValues;const d=e.generalCategoriesIds.accomplished===3;if(a.is_live){const m=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return m?{numberValue:d?e[r].accomplished.totalLive/m*100:e[r].accomplished.totalLive,numberBarPercent:e[r].accomplished.totalLive/m}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const m=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return m?{numberValue:d?e[r].accomplished.totalPostGame/m*100:e[r].accomplished.totalPostGame,numberBarPercent:e[r].accomplished.totalPostGame/m}:this.objectZeroValues}if(d){const m=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,n=e[r].accomplished.avgPostGame/m;return e[r].accomplished.avgPostGame?{numberValue:n<1?n*100:n,numberBarPercent:e[r].accomplished.avgPostGame/m}:this.objectZeroValues}else{const m=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[r].accomplished.avgPostGame?{numberValue:e[r].accomplished.avgPostGame,numberBarPercent:e[r].accomplished.avgPostGame/m}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},r=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await cg.get(r,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},Q9=e=>(t.pushScopeId("data-v-609b8939"),e=e(),t.popScopeId(),e),uX={class:"card"},pX={class:"card__header"},hX={class:"card__stats"},mX=["onClick"],fX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],gX={key:1,class:"card__stats__stat__button_empty"},yX={class:"card__stats__title"},_X={class:"card__stats__scores"},vX={key:0},bX={key:1},xX={key:2},wX={key:3},kX={class:"card__stats__bars"},CX=["onClick"],EX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],SX={key:1,class:"card__stats__stat__button_empty"};function TX(e,a,r,d,m,n){const s=t.resolveComponent("BarraLeft"),i=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uX,[t.createElementVNode("span",pX,t.toDisplayString(r.data.name),1),t.createElementVNode("div",hX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.subcategories,(_,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"card__stats__stat"},[t.createElementVNode("div",null,[n.canPlayVideos.home&&n.hVal(_)&&n.hVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:o=>n.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},n.canPlayVideos.home)},fX,8,mX)):(t.openBlock(),t.createElementBlock("div",gX))]),t.createElementVNode("div",null,[t.createElementVNode("div",yX,t.toDisplayString(_.name),1),t.createElementVNode("div",_X,[n.hVal(_)?(t.openBlock(),t.createElementBlock("span",vX,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.hVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",bX,"0")),n.aVal(_)?(t.openBlock(),t.createElementBlock("span",xX,[t.createTextVNode(t.toDisplayString(n.deleteDecimalZero(n.formatNumbers(n.aVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",wX,"0"))]),t.createElementVNode("div",kX,[t.createElementVNode("div",null,[n.hVal(_)?(t.openBlock(),t.createBlock(s,{key:0,postmatch:n.hVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(s,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[n.aVal(_)?(t.openBlock(),t.createBlock(i,{key:0,postmatch:n.aVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(i,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[n.canPlayVideos.away&&n.aVal(_)&&n.aVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:o=>n.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},n.canPlayVideos.away)},EX,8,CX)):(t.openBlock(),t.createElementBlock("div",SX))])]))),128))])])}const AX=Si(dX,[["render",TX],["__scopeId","data-v-609b8939"]]),EBt="",NX={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Iu=e=>(t.pushScopeId("data-v-4a054ef7"),e=e(),t.popScopeId(),e),BX={class:"comparative-card"},IX=Iu(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),MX={class:"versus"},OX={class:"team-badge"},PX=["src","alt"],FX=Iu(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),RX=Iu(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),VX={class:"team-badge"},zX=["src","alt"],DX={class:"details"},LX={key:0},$X={key:0},jX={key:1},UX=Iu(()=>t.createElementVNode("td",null,"Puntos",-1)),HX=Iu(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),GX=Iu(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),WX=Iu(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),qX=Iu(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function YX(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(n.customStyle)},[t.createElementVNode("div",BX,[IX,t.createElementVNode("div",MX,[t.createElementVNode("div",OX,[r.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.local.team_logo,alt:r.local.team_name},null,8,PX)):t.createCommentVNode("",!0),FX]),RX,t.createElementVNode("div",VX,[r.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.away.team_logo,alt:r.away.team_name},null,8,zX)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",DX,[r.away&&r.local?(t.openBlock(),t.createElementBlock("table",LX,[t.createElementVNode("tbody",null,[r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",$X,[t.createElementVNode("td",null,t.toDisplayString(r.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),r.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(r.away.table_position),1)])):t.createCommentVNode("",!0),r.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",jX,[t.createElementVNode("td",null,t.toDisplayString(r.local.points),1),UX,t.createElementVNode("td",null,t.toDisplayString(r.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_played),1),HX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_won),1),GX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_lost),1),WX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_tied),1),qX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const ZX=Si(NX,[["render",YX],["__scopeId","data-v-4a054ef7"]]),SBt="",XX=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Kb={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},eC=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},tC=Kb.setup;Kb.setup=tC?(e,a)=>(eC(),tC(e,a)):eC;const KX={ref:"gscScrollableContainer",class:"scrollable-container"},JX={class:"scrollable-arrows"},QX=["width","height","viewBox"],eK=["stroke"],tK={class:"scrollable-wrapper"},aK={class:"scrollable-arrows"},rK=["width","height","viewBox"],nK=["stroke"];function iK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",KX,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",n.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>n.scrollLeft&&n.scrollLeft(...s))},[t.createElementVNode("div",JX,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,eK)],8,QX))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>n.getScroll&&n.getScroll(...s))},[t.createElementVNode("div",tK,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",n.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>n.scrollRight&&n.scrollRight(...s))},[t.createElementVNode("div",aK,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:n.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,nK)],8,rK))])],2)):t.createCommentVNode("",!0)],512)}const Jb=XX(Kb,[["render",iK],["__scopeId","data-v-b548a08d"]]),TBt="";let aC=null;const oK={name:"App",components:{GscLinearTeamStats:AX,TableComparative:ZX,GSCSlider:Jb},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)aC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),aC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await cg.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id);let r=-1,d=-1;if(this.tournamentType!=1)r=a.data.data.findIndex(m=>m.team_id===this.gameForAnalysis.home_team),d=a.data.data.findIndex(m=>m.team_id===this.gameForAnalysis.visiting_team);else for(let m=0;m<a.data.groups.length;m++)r==-1&&(r=a.data.groups[m].data.findIndex(n=>n.team_id===this.gameForAnalysis.home_team),r!=-1&&(this.home=a.data.groups[m].data[r])),d==-1&&(d=a.data.groups[m].data.findIndex(n=>n.team_id===this.gameForAnalysis.visiting_team),d!=-1&&(this.away=a.data.groups[m].data[d]));this.tournamentType!=1&&(this.home=a.data.data[r],this.away=a.data.data[d])}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},sK={class:"container",ref:"gamesContainer"},lK={key:0,class:"grid-container"},cK={key:0,class:"item"},dK={class:"item"},uK={class:"item"},pK={class:"item"},hK={class:"item"},mK={class:"item"},fK={class:"item"},gK={class:"grid-container"},yK={key:0,class:"item-comparative"},_K={class:"table-movil-container"};function vK(e,a,r,d,m,n){const s=t.resolveComponent("TableComparative"),i=t.resolveComponent("GscLinearTeamStats"),_=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",sK,[m.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",gK,[m.home&&m.away?(t.openBlock(),t.createElementBlock("div",yK,[t.createVNode(s,{local:m.home,"tournament-type":r.tournamentType,away:m.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(_,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",_K,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510&&m.gamesContainerWidth>450?"width: 400px":m.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["play-videos-privileges","onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(m.gamesContainerWidth<510?"width: 400px":m.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,onOpenmedia:n.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["play-videos-privileges","onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",lK,[m.home&&m.away?(t.openBlock(),t.createElementBlock("div",cK,[t.createVNode(s,{local:m.home,"tournament-type":r.tournamentType,away:m.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",dK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",uK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",pK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",hK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",mK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])]),t.createElementVNode("div",fK,[t.createVNode(i,{"play-videos-privileges":r.playVideosPrivileges,"can-play-videos":r.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:n.openmedia},null,8,["play-videos-privileges","can-play-videos","data","onOpenmedia"])])]))],512)}const bK=Si(oK,[["render",vK]]),ABt="",NBt="",rC=["#cbee6b","#0033C5"],xK={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...Ol("nextGeneral",["showLiveData","gameForAnalysis"]),...qi("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),r=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,d=Math.floor(r/(1e3*60*60*24)),m=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),n=Math.floor(r%(1e3*60*60)/(1e3*60)),s=Math.floor(r%(1e3*60)/1e3);let i="";return s>0&&(i=s==1?s+" segundo":s+" segundos"),n>0&&(i=n==1?n+" minuto":n+" minutos"),m>0&&(i=m==1?m+" hora":m+" horas"),d>0&&(i=d==1?d+" día":d+" días"),i}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:rC,fill:{colors:rC,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:r,w:d}){const m=d.config.arraySubcategories[r].name,n=d.config.series[a].name,s=d.config.series[a].dataTotal[r],i=e[a][r];return d.config.arraySubcategories[r].id==="3-0"?`
|
|
24
24
|
<div class="custom-tooltip-apexchart" style="display: none !important;">
|
|
25
25
|
<div class="__title">${m}:</div>
|
|
26
26
|
<div class="__totals">${n}: ${i}%</div>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="__title">${m}:</div>
|
|
31
31
|
<div class="__totals">${n}: ${s}</div>
|
|
32
32
|
</div>
|
|
33
|
-
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,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,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={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 LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>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)),WK=["id"],qK=["fill"],YK=Xm(()=>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)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{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]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>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)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>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)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>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)),aQ=["id"],rQ=["fill"],nQ=Km(()=>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)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>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 LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>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 iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.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))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.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:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{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:a}){const r=e,d=j1(),m=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"}),n=t.ref({}),s=t.ref(null),i=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.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 c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["general/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-3723b86c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,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:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["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=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.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"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
33
|
+
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,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,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={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 LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>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)),WK=["id"],qK=["fill"],YK=Xm(()=>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)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{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]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>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)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>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)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>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)),aQ=["id"],rQ=["fill"],nQ=Km(()=>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)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>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 LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>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 iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.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))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.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:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{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:a}){const r=e,d=j1(),m=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"}),n=t.ref({}),s=t.ref(null),i=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.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 c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-02c2f77c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,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:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["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=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.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"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
34
34
|
`).forEach(function(n){m=n.indexOf(":"),r=n.substring(0,m).trim().toLowerCase(),d=n.substring(m+1).trim(),!(!r||a[r]&&pte[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},RC=Symbol("internals");function ef(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:_r.isArray(e)?e.map(gg):String(e)}function mte(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=r.exec(e);)a[d[1]]=d[2];return a}const fte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function s3(e,a,r,d,m){if(_r.isFunction(d))return d.call(this,a,r);if(m&&(a=r),!!_r.isString(a)){if(_r.isString(d))return a.indexOf(d)!==-1;if(_r.isRegExp(d))return d.test(a)}}function gte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function yte(e,a){const r=_r.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(m,n,s){return this[d].call(this,a,m,n,s)},configurable:!0})})}let yg=class{constructor(a){a&&this.set(a)}set(a,r,d){const m=this;function n(i,_,f){const o=ef(_);if(!o)throw new Error("header name must be a non-empty string");const g=_r.findKey(m,o);(!g||m[g]===void 0||f===!0||f===void 0&&m[g]!==!1)&&(m[g||_]=gg(i))}const s=(i,_)=>_r.forEach(i,(f,o)=>n(f,o,_));return _r.isPlainObject(a)||a instanceof this.constructor?s(a,r):_r.isString(a)&&(a=a.trim())&&!fte(a)?s(hte(a),r):a!=null&&n(r,a,d),this}get(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);if(d){const m=this[d];if(!r)return m;if(r===!0)return mte(m);if(_r.isFunction(r))return r.call(this,m,d);if(_r.isRegExp(r))return r.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||s3(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let m=!1;function n(s){if(s=ef(s),s){const i=_r.findKey(d,s);i&&(!r||s3(d,d[i],i,r))&&(delete d[i],m=!0)}}return _r.isArray(a)?a.forEach(n):n(a),m}clear(a){const r=Object.keys(this);let d=r.length,m=!1;for(;d--;){const n=r[d];(!a||s3(this,this[n],n,a,!0))&&(delete this[n],m=!0)}return m}normalize(a){const r=this,d={};return _r.forEach(this,(m,n)=>{const s=_r.findKey(d,n);if(s){r[s]=gg(m),delete r[n];return}const i=a?gte(n):String(n).trim();i!==n&&delete r[n],r[i]=gg(m),d[i]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return _r.forEach(this,(d,m)=>{d!=null&&d!==!1&&(r[m]=a&&_r.isArray(d)?d.join(", "):d)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
|
|
35
35
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const r=(this[RC]=this[RC]={accessors:{}}).accessors,d=this.prototype;function m(n){const s=ef(n);r[s]||(yte(d,n),r[s]=!0)}return _r.isArray(a)?a.forEach(m):m(a),this}};yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_r.reduceDescriptors(yg.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),_r.freezeMethods(yg);const nu=yg;function l3(e,a){const r=this||o3,d=a||r,m=nu.from(d.headers);let n=d.data;return _r.forEach(e,function(s){n=s.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function VC(e){return!!(e&&e.__CANCEL__)}function tf(e,a,r){zn.call(this,e??"canceled",zn.ERR_CANCELED,a,r),this.name="CanceledError"}_r.inherits(tf,zn,{__CANCEL__:!0});function _te(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new zn("Request failed with status code "+r.status,[zn.ERR_BAD_REQUEST,zn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const vte=gd.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];_r.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_r.isString(d)&&s.push("path="+d),_r.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xte(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function zC(e,a){return e&&!bte(a)?xte(e,a):a}const wte=gd.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(m){let n=m;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=d(window.location.href),function(m){const n=_r.isString(m)?d(m):m;return n.protocol===r.protocol&&n.host===r.host}}():function(){return function(){return!0}}();function kte(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Cte(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(i){const _=Date.now(),f=d[n];s||(s=_),r[m]=i,d[m]=_;let o=n,g=0;for(;o!==m;)g+=r[o++],o=o%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(g*1e3/x):void 0}}function DC(e,a){let r=0;const d=Cte(50,250);return m=>{const n=m.loaded,s=m.lengthComputable?m.total:void 0,i=n-r,_=d(i),f=n<=s;r=n;const o={loaded:n,total:s,progress:s?n/s:void 0,bytes:i,rate:_||void 0,estimated:_&&s&&f?(s-n)/_:void 0,event:m};o[a?"download":"upload"]=!0,e(o)}}const Ete=typeof XMLHttpRequest<"u",Ste=Ete&&function(e){return new Promise(function(a,r){let d=e.data;const m=nu.from(e.headers).normalize();let{responseType:n,withXSRFToken:s}=e,i;function _(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}let f;if(_r.isFormData(d)){if(gd.hasStandardBrowserEnv||gd.hasStandardBrowserWebWorkerEnv)m.setContentType(!1);else if((f=m.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];m.setContentType([l||"multipart/form-data",...u].join("; "))}}let o=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.set("Authorization","Basic "+btoa(l+":"+u))}const g=zC(e.baseURL,e.url);o.open(e.method.toUpperCase(),IC(g,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=nu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};_te(function(p){a(p),_()},function(p){r(p),_()},u),o=null}if("onloadend"in o?o.onloadend=x:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(x)},o.onabort=function(){o&&(r(new zn("Request aborted",zn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new zn("Network Error",zn.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||OC;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new zn(l,u.clarifyTimeoutError?zn.ETIMEDOUT:zn.ECONNABORTED,e,o)),o=null},gd.hasStandardBrowserEnv&&(s&&_r.isFunction(s)&&(s=s(e)),s||s!==!1&&wte(g))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&vte.read(e.xsrfCookieName);l&&m.set(e.xsrfHeaderName,l)}d===void 0&&m.setContentType(null),"setRequestHeader"in o&&_r.forEach(m.toJSON(),function(l,u){o.setRequestHeader(u,l)}),_r.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),n&&n!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",DC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",DC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=l=>{o&&(r(!l||l.type?new tf(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const c=kte(g);if(c&&gd.protocols.indexOf(c)===-1){r(new zn("Unsupported protocol "+c+":",zn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},c3={http:Kee,xhr:Ste};_r.forEach(c3,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const LC=e=>`- ${e}`,Tte=e=>_r.isFunction(e)||e===null||e===!1,$C={getAdapter:e=>{e=_r.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!Tte(r)&&(d=c3[(s=String(r)).toLowerCase()],d===void 0))throw new zn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
36
36
|
`+n.map(LC).join(`
|