@golstats/gsc-game-data 1.0.17 → 1.0.18

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.
@@ -10428,7 +10428,6 @@ const hE = {
10428
10428
  gamesContainerWidth: 0,
10429
10429
  token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",
10430
10430
  url: "https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",
10431
- seasonId: 1772,
10432
10431
  gameId: 79623,
10433
10432
  movil: !1,
10434
10433
  home: {},
@@ -18,7 +18,7 @@
18
18
  `).forEach(function(r){s=r.indexOf(":"),o=r.substring(0,s).trim().toLowerCase(),n=r.substring(s+1).trim(),!(!o||a[o]&&Xx[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},o1=Symbol("internals");function In(e){return e&&String(e).trim().toLowerCase()}function Fi(e){return e===!1||e==null?e:L.isArray(e)?e.map(Fi):String(e)}function Yx(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const Kx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Td(e,a,o,n,s){if(L.isFunction(n))return n.call(this,a,o);if(s&&(a=o),!!L.isString(a)){if(L.isString(n))return a.indexOf(n)!==-1;if(L.isRegExp(n))return n.test(a)}}function Qx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function eV(e,a){const o=L.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class Ri{constructor(a){a&&this.set(a)}set(a,o,n){const s=this;function i(c,p,d){const l=In(p);if(!l)throw new Error("header name must be a non-empty string");const m=L.findKey(s,l);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||p]=Fi(c))}const r=(c,p)=>L.forEach(c,(d,l)=>i(d,l,p));return L.isPlainObject(a)||a instanceof this.constructor?r(a,o):L.isString(a)&&(a=a.trim())&&!Kx(a)?r(Zx(a),o):a!=null&&i(o,a,n),this}get(a,o){if(a=In(a),a){const n=L.findKey(this,a);if(n){const s=this[n];if(!o)return s;if(o===!0)return Yx(s);if(L.isFunction(o))return o.call(this,s,n);if(L.isRegExp(o))return o.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=In(a),a){const n=L.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Td(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let s=!1;function i(r){if(r=In(r),r){const c=L.findKey(n,r);c&&(!o||Td(n,n[c],c,o))&&(delete n[c],s=!0)}}return L.isArray(a)?a.forEach(i):i(a),s}clear(a){const o=Object.keys(this);let n=o.length,s=!1;for(;n--;){const i=o[n];(!a||Td(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const o=this,n={};return L.forEach(this,(s,i)=>{const r=L.findKey(n,i);if(r){o[r]=Fi(s),delete o[i];return}const c=a?Qx(i):String(i).trim();c!==i&&delete o[i],o[c]=Fi(s),n[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return L.forEach(this,(n,s)=>{n!=null&&n!==!1&&(o[s]=a&&L.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
19
19
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(s=>n.set(s)),n}static accessor(a){const n=(this[o1]=this[o1]={accessors:{}}).accessors,s=this.prototype;function i(r){const c=In(r);n[c]||(eV(s,r),n[c]=!0)}return L.isArray(a)?a.forEach(i):i(a),this}}Ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(Ri.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),L.freezeMethods(Ri);const Va=Ri;function zd(e,a){const o=this||Od,n=a||o,s=Va.from(n.headers);let i=n.data;return L.forEach(e,function(c){i=c.call(o,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function n1(e){return!!(e&&e.__CANCEL__)}function On(e,a,o){me.call(this,e??"canceled",me.ERR_CANCELED,a,o),this.name="CanceledError"}L.inherits(On,me,{__CANCEL__:!0});function tV(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new me("Request failed with status code "+o.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const aV=Kt.hasStandardBrowserEnv?{write(e,a,o,n,s,i){const r=[e+"="+encodeURIComponent(a)];L.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),L.isString(n)&&r.push("path="+n),L.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nV(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function s1(e,a){return e&&!oV(a)?nV(e,a):a}const sV=Kt.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let n;function s(i){let r=i;return a&&(o.setAttribute("href",r),r=o.href),o.setAttribute("href",r),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return n=s(window.location.href),function(r){const c=L.isString(r)?s(r):r;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function iV(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function rV(e,a){e=e||10;const o=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(p){const d=Date.now(),l=n[i];r||(r=d),o[s]=p,n[s]=d;let m=i,h=0;for(;m!==s;)h+=o[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-r<a)return;const g=l&&d-l;return g?Math.round(h*1e3/g):void 0}}function i1(e,a){let o=0;const n=rV(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,c=i-o,p=n(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:p||void 0,estimated:p&&r&&d?(r-i)/p:void 0,event:s};l[a?"download":"upload"]=!0,e(l)}}const Fd={http:Px,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,n){let s=e.data;const i=Va.from(e.headers).normalize();let{responseType:r,withXSRFToken:c}=e,p;function d(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let l;if(L.isFormData(s)){if(Kt.hasStandardBrowserEnv||Kt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[u,...f]=l?l.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...f].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+f))}const h=s1(e.baseURL,e.url);m.open(e.method.toUpperCase(),Ku(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function g(){if(!m)return;const u=Va.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),b={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:u,config:e,request:m};tV(function(V){o(V),d()},function(V){n(V),d()},b),m=null}if("onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(n(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||e1;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),n(new me(f,b.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},Kt.hasStandardBrowserEnv&&(c&&L.isFunction(c)&&(c=c(e)),c||c!==!1&&sV(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&aV.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}s===void 0&&i.setContentType(null),"setRequestHeader"in m&&L.forEach(i.toJSON(),function(f,b){m.setRequestHeader(b,f)}),L.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),r&&r!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",i1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",i1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=u=>{m&&(n(!u||u.type?new On(null,e,m):u),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const y=iV(h);if(y&&Kt.protocols.indexOf(y)===-1){n(new me("Unsupported protocol "+y+":",me.ERR_BAD_REQUEST,e));return}m.send(s||null)})}};L.forEach(Fd,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const r1=e=>`- ${e}`,lV=e=>L.isFunction(e)||e===null||e===!1,l1={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:a}=e;let o,n;const s={};for(let i=0;i<a;i++){o=e[i];let r;if(n=o,!lV(o)&&(n=Fd[(r=String(o)).toLowerCase()],n===void 0))throw new me(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
20
20
  `+i.map(r1).join(`
21
- `):" "+r1(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Fd};function Rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function c1(e){return Rd(e),e.headers=Va.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l1.getAdapter(e.adapter||Od.adapter)(e).then(function(n){return Rd(e),n.data=zd.call(e,e.transformResponse,n),n.headers=Va.from(n.headers),n},function(n){return n1(n)||(Rd(e),n&&n.response&&(n.response.data=zd.call(e,e.transformResponse,n.response),n.response.headers=Va.from(n.response.headers))),Promise.reject(n)})}const d1=e=>e instanceof Va?e.toJSON():e;function Bo(e,a){a=a||{};const o={};function n(d,l,m){return L.isPlainObject(d)&&L.isPlainObject(l)?L.merge.call({caseless:m},d,l):L.isPlainObject(l)?L.merge({},l):L.isArray(l)?l.slice():l}function s(d,l,m){if(L.isUndefined(l)){if(!L.isUndefined(d))return n(void 0,d,m)}else return n(d,l,m)}function i(d,l){if(!L.isUndefined(l))return n(void 0,l)}function r(d,l){if(L.isUndefined(l)){if(!L.isUndefined(d))return n(void 0,d)}else return n(void 0,l)}function c(d,l,m){if(m in a)return n(d,l);if(m in e)return n(void 0,d)}const p={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l)=>s(d1(d),d1(l),!0)};return L.forEach(Object.keys(Object.assign({},e,a)),function(l){const m=p[l]||s,h=m(e[l],a[l],l);L.isUndefined(h)&&m!==c||(o[l]=h)}),o}const m1="1.6.5",Pd={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pd[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const p1={};Pd.transitional=function(a,o,n){function s(i,r){return"[Axios v"+m1+"] Transitional option '"+i+"'"+r+(n?". "+n:"")}return(i,r,c)=>{if(a===!1)throw new me(s(r," has been removed"+(o?" in "+o:"")),me.ERR_DEPRECATED);return o&&!p1[r]&&(p1[r]=!0,console.warn(s(r," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(i,r,c):!0}};function cV(e,a,o){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const c=e[i],p=c===void 0||r(c,i,e);if(p!==!0)throw new me("option "+i+" must be "+p,me.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Dd={assertOptions:cV,validators:Pd},Ga=Dd.validators;class Pi{constructor(a){this.defaults=a,this.interceptors={request:new Qu,response:new Qu}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Bo(this.defaults,o);const{transitional:n,paramsSerializer:s,headers:i}=o;n!==void 0&&Dd.assertOptions(n,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),s!=null&&(L.isFunction(s)?o.paramsSerializer={serialize:s}:Dd.assertOptions(s,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&L.merge(i.common,i[o.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),o.headers=Va.concat(r,i);const c=[];let p=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(p=p&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!p){const y=[c1.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,d),h=y.length,l=Promise.resolve(o);m<h;)l=l.then(y[m++],y[m++]);return l}h=c.length;let g=o;for(m=0;m<h;){const y=c[m++],u=c[m++];try{g=y(g)}catch(f){u.call(this,f);break}}try{l=c1.call(this,g)}catch(y){return Promise.reject(y)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=Bo(this.defaults,a);const o=s1(a.baseURL,a.url);return Ku(o,a.params,a.paramsSerializer)}}L.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,n){return this.request(Bo(n||{},{method:a,url:o,data:(n||{}).data}))}}),L.forEach(["post","put","patch"],function(a){function o(n){return function(i,r,c){return this.request(Bo(c||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class Ld{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(c=>{n.subscribe(c),i=c}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(i,r,c){n.reason||(n.reason=new On(i,r,c),o(n.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 o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ld(function(s){a=s}),cancel:a}}}const dV=Ld;function mV(e){return function(o){return e.apply(null,o)}}function pV(e){return L.isObject(e)&&e.isAxiosError===!0}const jd={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(jd).forEach(([e,a])=>{jd[a]=e});const hV=jd;function h1(e){const a=new Di(e),o=Ru(Di.prototype.request,a);return L.extend(o,Di.prototype,a,{allOwnKeys:!0}),L.extend(o,a,null,{allOwnKeys:!0}),o.create=function(s){return h1(Bo(e,s))},o}const Me=h1(Od);Me.Axios=Di,Me.CanceledError=On,Me.CancelToken=dV,Me.isCancel=n1,Me.VERSION=m1,Me.toFormData=zi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=mV,Me.isAxiosError=pV,Me.mergeConfig=Bo,Me.AxiosHeaders=Va,Me.formToJSON=e=>a1(L.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=l1.getAdapter,Me.HttpStatusCode=hV,Me.default=Me;const Li=Me,y1="/icn-play.svg",kve="",yV={components:{BarraLeft:XB,BarraRight:ox},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[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]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.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]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(n.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",n)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const n=e.generalCategoriesIds.accomplished===3;if(a.is_live&&this.showLiveData){const s=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return s?{numberValue:n?e[o].accomplished.totalLive/s*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/s}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const s=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return s?{numberValue:n?e[o].accomplished.totalPostGame/s*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/s}:this.objectZeroValues}if(n){const s=e[o].accomplished.avgPreGame;return e[o].accomplished.avgPostGame?{numberValue:s<1?s*100:s,numberBarPercent:e[o].accomplished.avgPreGame}:this.objectZeroValues}else return e[o].accomplished.leader.points?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/e[o].accomplished.leader.points}:this.objectZeroValues},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await Li.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},async mounted(){}},g1=e=>(t.pushScopeId("data-v-4e0c1385"),e=e(),t.popScopeId(),e),gV={class:"card"},uV={class:"card__header"},fV={class:"card__stats"},_V=["onClick"],bV=[g1(()=>t.createElementVNode("img",{src:y1},null,-1))],wV={key:1,class:"card__stats__stat__button_empty"},CV={class:"card__stats__title"},kV={class:"card__stats__scores"},SV={key:0},EV={key:1},NV={key:2},$V={key:3},BV={class:"card__stats__bars"},xV=["onClick"],VV=[g1(()=>t.createElementVNode("img",{src:y1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function IV(e,a,o,n,s,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",gV,[t.createElementVNode("span",uV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",fV,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(p,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(p)&&i.hVal(p).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:p.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},bV,8,_V)):(t.openBlock(),t.createElementBlock("div",wV))]),t.createElementVNode("div",null,[t.createElementVNode("div",CV,t.toDisplayString(p.name)+t.toDisplayString(),1),t.createElementVNode("div",kV,[i.hVal(p)?(t.openBlock(),t.createElementBlock("span",SV,[t.createTextVNode(t.toDisplayString(i.hVal(p).numberValue|e.toFixed2),1),p.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",EV,"0")),i.aVal(p)?(t.openBlock(),t.createElementBlock("span",NV,[t.createTextVNode(t.toDisplayString(i.aVal(p).numberValue|e.toFixed2),1),p.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",$V,"0"))]),t.createElementVNode("div",BV,[t.createElementVNode("div",null,[i.hVal(p)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(p).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(p)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(p).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(p)&&i.aVal(p).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:p.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},VV,8,xV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const OV=Ie(yV,[["render",IV],["__scopeId","data-v-4e0c1385"]]),Nve="",TV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Aa=e=>(t.pushScopeId("data-v-58147cac"),e=e(),t.popScopeId(),e),zV={class:"comparative-card"},FV=Aa(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa h")],-1)),RV={class:"versus"},PV={class:"team-badge"},DV=["src","alt"],LV=Aa(()=>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)),jV=Aa(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),vV={class:"team-badge"},MV=["src","alt"],HV={class:"details"},UV=Aa(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),GV=Aa(()=>t.createElementVNode("td",null,"Puntos",-1)),WV=Aa(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),qV=Aa(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),JV=Aa(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),XV=Aa(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function ZV(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",zV,[FV,t.createElementVNode("div",RV,[t.createElementVNode("div",PV,[t.createElementVNode("img",{class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,DV),LV]),jV,t.createElementVNode("div",vV,[t.createElementVNode("img",{class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,MV)])]),t.createElementVNode("div",HV,[t.createElementVNode("table",null,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),UV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),GV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])])])],4)}const YV=Ie(TV,[["render",ZV],["__scopeId","data-v-58147cac"]]),$ve="",KV=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},vd={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)}}},u1=()=>{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}))},f1=vd.setup;vd.setup=f1?(e,a)=>(u1(),f1(e,a)):u1;const QV={ref:"gscScrollableContainer",class:"scrollable-container"},eA={class:"scrollable-arrows"},tA=["width","height","viewBox"],aA=["stroke"],oA={class:"scrollable-wrapper"},nA={class:"scrollable-arrows"},sA=["width","height","viewBox"],iA=["stroke"];function rA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",QV,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",eA,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.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:o.arrowsColor},null,8,aA)],8,tA))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",oA,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",nA,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.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:o.arrowsColor},null,8,iA)],8,sA))])],2)):t.createCommentVNode("",!0)],512)}const Md=KV(vd,[["render",rA],["__scopeId","data-v-b548a08d"]]),Bve="";let _1=null;const lA={name:"App",components:{GscLinearTeamStats:OV,TableComparative:YV,GSCSlider:Md},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("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/",seasonId:1772,gameId:79623,movil:!1,home:{},away:{}}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)_1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),_1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await Li.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonId),o=a.data.data.findIndex(s=>s.team_id===this.gameForAnalysis.home_team),n=a.data.data.findIndex(s=>s.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[n]}catch{}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},cA={class:"container",ref:"gamesContainer"},dA={key:0,class:"grid-container"},mA={class:"item"},pA={class:"item"},hA={class:"item"},yA={class:"item"},gA={class:"item"},uA={class:"item"},fA={class:"item"},_A={class:"grid-container"},bA={class:"item-comparative"},wA={class:"table-movil-container"};function CA(e,a,o,n,s,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),p=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cA,[s.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",_A,[t.createElementVNode("div",bA,[t.createVNode(r,{local:s.home,away:s.away,fontFamily:"Poppins-Regular"},null,8,["local","away"])])]),t.createVNode(p,{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",wA,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510&&s.gamesContainerWidth>450?"width: 400px":s.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",dA,[t.createElementVNode("div",mA,[t.createVNode(r,{local:s.home,away:s.away,fontFamily:"Poppins-Regular"},null,8,["local","away"])]),t.createElementVNode("div",pA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",hA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",yA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",gA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const kA=Ie(lA,[["render",CA]]),xve="",b1=["#cbee6b","#0033C5"],SA={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()}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,n=Math.floor(o/(1e3*60*60*24)),s=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),s>0&&(c=s==1?s+" hora":s+" horas"),n>0&&(c=n==1?n+" día":n+" días"),c}},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:b1,fill:{colors:b1,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,shared:!1,custom:({w:e,dataPointIndex:a,seriesIndex:o})=>(this.showModal(e,a,o),null)}}},getChartSeries(e,a){let o,n;return this.showPostMatchData?(o={name:`${this.homeTeam.acronym}`,data:[]},n={name:`${this.visitingTeam.acronym}`,data:[]},a.arraySubcategories=[],Object.values(e).forEach((s,i)=>{a.xaxis.categories.push(this.prepareLabels(s,i)),a.arraySubcategories.push(s);const r=s.homeTeam[this.homeTeamStatisticsType].totalPostGame+s.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;o.data.push(Math.round(120*(r?s.homeTeam[this.homeTeamStatisticsType].totalPostGame/r:0))),n.data.push(Math.round(120*(r?s.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/r:0)))})):(o={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[]},n={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[]},a.arraySubcategories=[],Object.values(e).forEach((s,i)=>{a.xaxis.categories.push(this.prepareLabels(s,i)),a.arraySubcategories.push(s);let r,c;const p=s.homeTeam[this.homeTeamStatisticsType].leader.points,d=s.visitingTeam[this.visitingTeamStatisticsType].leader.points;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&s.generalCategoriesIds.accomplished===3?r=s.homeTeam.accomplished.avgPreGame:r=p?s.homeTeam[this.homeTeamStatisticsType].avgPostGame/p:0;else{const l=s.homeTeam[this.homeTeamStatisticsType].totalLive+s.visitingTeam[this.visitingTeamStatisticsType].totalLive;r=l?s.homeTeam[this.homeTeamStatisticsType].totalLive/l:0}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&s.generalCategoriesIds.accomplished===3?c=s.visitingTeam.accomplished.avgPreGame:c=d?s.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/d:0;else{const l=s.homeTeam[this.homeTeamStatisticsType].totalLive+s.visitingTeam[this.visitingTeamStatisticsType].totalLive;c=l?s.visitingTeam[this.visitingTeamStatisticsType].totalLive/l:0}o.data.push(Math.round(120*r)),n.data.push(Math.round(120*c))})),[o,n]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,o){const n=o===0?"homeTeam":"visitingTeam",s=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=s.id!=="3-0",this.tooltip.data=this.getSubcategoryData(s,n),this.tooltip.local=o===0,this.tooltip.names=s.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(s);const i=e.globals.clientX||0,r=e.globals.clientY||0;this.globals.x=i,this.globals.y=r,this.tooltip.x=i,this.tooltip.y=r>700?r-250:r;const c=s.generalCategoriesIds.accomplished===3;if(c){const p=s.homeTeam.accomplished.avgPostGame+s.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=p?s[n].accomplished.avgPostGame/p*100:0}else this.tooltip.numberValue=null;this.tooltip.booleanIsPercent=c,this.tooltip.show=!0},updateTooltip(e){const o=Math.abs(e.clientX-this.globals.x),n=Math.abs(e.clientY-this.globals.y);(o>5||n>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let o=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return o;const n=13;if(o.length>n){let s=o.split(" ");o=[];let i="",r="",c=s.slice(-1)[0];s.forEach(p=>{i+=` ${p} `,i.length>n&&(o.push(r.trim()),i=p),r=i,c===p&&o.push(r.trim())})}return o},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,o)=>a+o.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},w1=e=>(t.pushScopeId("data-v-4aab14bc"),e=e(),t.popScopeId(),e),EA={key:0,class:"distribution-leyend"},NA=w1(()=>t.createElementVNode("br",null,null,-1)),$A={class:"distribution"},BA={class:"distribution__container"},xA={class:"distribution__container__chart-type__title"},VA=w1(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AA={class:"distribution__container__chart-type__chart"};function IA(e,a,o,n,s,i){const r=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",EA,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(i.timeLeft),1),t.createTextVNode(" para el inicio."),NA,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(o.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",$A,[t.createElementVNode("div",BA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.arrayDataForCharts,(c,p)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:p},[t.createElementVNode("div",xA,t.toDisplayString(c.name),1),VA,t.createElementVNode("div",AA,[(t.openBlock(),t.createBlock(r,{type:"radar",height:s.height,options:s.arrayChartOptions[p],series:s.arrayFilledSeries[p],key:s.chartKeyCounter+s.updateCategory+p},null,8,["height","options","series"]))])]))),128))])])],64)}const OA=Ie(SA,[["render",IA],["__scopeId","data-v-4aab14bc"]]),TA=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Hd={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},C1=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},k1=Hd.setup;Hd.setup=k1?(e,a)=>(C1(),k1(e,a)):C1;const zA={key:0,class:"text-left"},FA=["width","src"],RA=["checked"],PA=["width","src"],DA={key:3,class:"text-right"};function LA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",zA,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,FA)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,RA),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,PA)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",DA,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const jA=TA(Hd,[["render",LA],["__scopeId","data-v-e2a20444"]]),Vve="",Ave="",vA={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 MA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",i.showTooltip]),style:t.normalizeStyle(i.positionTooltip),onClick:a[0]||(a[0]=(...r)=>i.tooltipClick&&i.tooltipClick(...r))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const S1=Ie(vA,[["render",MA],["__scopeId","data-v-04db4a6b"]]),Ive="",HA={name:"SoccerChalkboard",components:{Tooltip:S1},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((n,s)=>[...n,s.categories],[]);return this.preparedPlays.filter(n=>this.findCategoryInPlay(e,n)).reduce((n,s)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,s));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:s.jersey_number,matchlapse:s.matchLapse,playerName:s.player_name,photo:s.photo,rivalLogo:s.rival_id,x1:i.invert.includes(s.categoryId)?100-s[`x${i.points[0]}`]:s[`x${i.points[0]}`],y1:i.invert.includes(s.categoryId)?100-s[`y${i.points[0]}`]:s[`y${i.points[0]}`],x2:i.invert.includes(s.categoryId)?100-s[`x${i.points[1]}`]:s[`x${i.points[1]}`],y2:i.invert.includes(s.categoryId)?100-s[`y${i.points[1]}`]:s[`y${i.points[1]}`],x3:i.invert.includes(s.categoryId)?100-s[`x${i.points[2]}`]:s[`x${i.points[2]}`],y3:i.invert.includes(s.categoryId)?100-s[`y${i.points[2]}`]:s[`y${i.points[2]}`],momentOfPlay:s.moment_of_play,isOwnGoal:i.invert.includes(s.categoryId),xGi:s.xGi,xGf:s.xGf};n.push(r)}return n},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Tn=e=>(t.pushScopeId("data-v-48c18048"),e=e(),t.popScopeId(),e),UA={class:"soccer-chalkboard-xg"},GA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},WA={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},qA=Tn(()=>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)),JA=["id"],XA=["fill"],ZA=Tn(()=>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)),YA=["id"],KA=["x1","y1","x2","y2","stroke"],QA=["x1","y1","x2","y2","stroke","marker-end"],eI=["onMouseover"],tI=["x","y","fill"],aI=["x","y"],oI={class:"tooltip-data has-text-left"},nI={class:"bold"},sI={class:"tooltip-image"},iI={class:"tooltip-image"},rI=["src"],lI={class:"tooltip-xg"},cI={key:0},dI=Tn(()=>t.createElementVNode("span",null,"xGi:",-1)),mI=Tn(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),pI={key:1},hI=Tn(()=>t.createElementVNode("span",null,"xGf:",-1));function yI(e,a,o,n,s,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",UA,[(t.openBlock(),t.createElementBlock("svg",GA,[(t.openBlock(),t.createElementBlock("svg",WA,[t.createElementVNode("defs",null,[qA,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:c.color},null,8,XA)],8,JA))),128)),ZA]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,KA),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,QA),t.createElementVNode("g",{onMouseover:p=>i.onMouseOver(p,c),onMouseleave:a[0]||(a[0]=(...p)=>i.onMouseLeave&&i.onMouseLeave(...p)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,tI),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(c.jersey),9,aI)],40,eI)],8,YA))),128))]))])),t.createVNode(r,{data:s.data},{default:t.withCtx(()=>[t.createElementVNode("div",oI,[t.createElementVNode("div",null,[t.createElementVNode("span",nI,t.toDisplayString(s.dataPlay.isOwnGoal?"Autogol":s.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(s.dataPlay.playerName)+" ",1),t.createElementVNode("div",sI,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+s.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(s.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival:  "+t.toDisplayString(s.dataPlay.rivalName)+" ",1),t.createElementVNode("div",iI,[t.createElementVNode("img",{src:s.dataPlay.rivalLogo},null,8,rI)])]),t.createElementVNode("div",lI,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGi)&&s.dataPlay.xGi<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",cI,[dI,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),mI,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGf)&&s.dataPlay.xGf<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",pI,[hI,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const E1=Ie(HA,[["render",yI],["__scopeId","data-v-48c18048"]]),ji=[{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]}],Ove="",gI={name:"Xg",components:{SoccerChalkboard:E1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},N1=e=>(t.pushScopeId("data-v-1a1bc29b"),e=e(),t.popScopeId(),e),uI={class:"xg-container"},fI={class:"xg-container__info"},_I=N1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),bI={class:"table"},wI={class:"table__row"},CI={class:"table__row__title"},kI={class:"table__row__value"},SI=["src"],EI={class:"table__row"},NI={class:"table__row__title"},$I={class:"table__row__value"},BI={class:"table__row"},xI={class:"table__row__title"},VI={class:"table__row__value"},AI=N1(()=>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)),II={class:"xg-container__field"};function OI(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",uI,[t.createElementVNode("div",fI,[_I,t.createElementVNode("div",bI,[t.createElementVNode("div",wI,[t.createElementVNode("div",CI,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",kI,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,SI)])]),t.createElementVNode("div",EI,[t.createElementVNode("div",NI,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",$I,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",BI,[t.createElementVNode("div",xI,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",VI,t.toDisplayString(i.gxInfoItems[2].value),1)])]),AI]),t.createElementVNode("div",II,[t.createVNode(r,{plays:e.playsLocal,categories:s.categories,team:e.team},null,8,["plays","categories","team"])])])}const TI=Ie(gI,[["render",OI],["__scopeId","data-v-1a1bc29b"]]),Tve="",zI={name:"Xg",components:{SoccerChalkboard:E1},props:{team:{type:String,default:"Visiting"}},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},$1=e=>(t.pushScopeId("data-v-84e1d3ec"),e=e(),t.popScopeId(),e),FI={class:"xg-container"},RI={class:"xg-container__info"},PI=$1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),DI={class:"table"},LI={class:"table__row"},jI={class:"table__row__title"},vI={class:"table__row__value"},MI=["src"],HI={class:"table__row"},UI={class:"table__row__title"},GI={class:"table__row__value"},WI={class:"table__row"},qI={class:"table__row__title"},JI={class:"table__row__value"},XI=$1(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),ZI={class:"xg-container__field"};function YI(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",FI,[t.createElementVNode("div",RI,[PI,t.createElementVNode("div",DI,[t.createElementVNode("div",LI,[t.createElementVNode("div",jI,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",vI,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,MI)])]),t.createElementVNode("div",HI,[t.createElementVNode("div",UI,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",GI,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",WI,[t.createElementVNode("div",qI,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",JI,t.toDisplayString(i.gxInfoItems[2].value),1)])]),XI]),t.createElementVNode("div",ZI,[t.createVNode(r,{plays:e.playsAway,categories:s.categories,team:o.team},null,8,["plays","categories","team"])])])])}const KI=Ie(zI,[["render",YI],["__scopeId","data-v-84e1d3ec"]]),zve="",QI={name:"SoccerChalkboard",components:{Tooltip:S1},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((n,s)=>[...n,s.categories],[]);return this.preparedPlays.filter(n=>this.findCategoryInPlay(e,n)).reduce((n,s)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,s));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:s.jersey_number,matchlapse:s.matchLapse,playerName:s.player_name,photo:s.photo,rivalLogo:s.rival_id,x1:i.invert.includes(s.categoryId)?100-s[`x${i.points[0]}`]:s[`x${i.points[0]}`],y1:i.invert.includes(s.categoryId)?100-s[`y${i.points[0]}`]:s[`y${i.points[0]}`],x2:i.invert.includes(s.categoryId)?100-s[`x${i.points[1]}`]:s[`x${i.points[1]}`],y2:i.invert.includes(s.categoryId)?100-s[`y${i.points[1]}`]:s[`y${i.points[1]}`],x3:i.invert.includes(s.categoryId)?100-s[`x${i.points[2]}`]:s[`x${i.points[2]}`],y3:i.invert.includes(s.categoryId)?100-s[`y${i.points[2]}`]:s[`y${i.points[2]}`],momentOfPlay:s.moment_of_play,isOwnGoal:i.invert.includes(s.categoryId),xGi:s.xGi,xGf:s.xGf};n.push(r)}return n},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},zn=e=>(t.pushScopeId("data-v-cd81820a"),e=e(),t.popScopeId(),e),eO={class:"soccer-chalkboard-xg"},tO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},aO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},oO=zn(()=>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)),nO=["id"],sO=["fill"],iO=zn(()=>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)),rO=["id"],lO=["x1","y1","x2","y2","stroke"],cO=["x1","y1","x2","y2","stroke","marker-end"],dO=["onMouseover"],mO=["x","y","fill"],pO=["x","y"],hO={class:"tooltip-data has-text-left"},yO={class:"bold"},gO={class:"tooltip-image"},uO={class:"tooltip-image"},fO=["src"],_O={class:"tooltip-xg"},bO={key:0},wO=zn(()=>t.createElementVNode("span",null,"xGi:",-1)),CO=zn(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),kO={key:1},SO=zn(()=>t.createElementVNode("span",null,"xGf:",-1));function EO(e,a,o,n,s,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",eO,[(t.openBlock(),t.createElementBlock("svg",tO,[(t.openBlock(),t.createElementBlock("svg",aO,[t.createElementVNode("defs",null,[oO,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:c.color},null,8,sO)],8,nO))),128)),iO]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,lO),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,cO),t.createElementVNode("g",{onMouseover:p=>i.onMouseOver(p,c),onMouseleave:a[0]||(a[0]=(...p)=>i.onMouseLeave&&i.onMouseLeave(...p)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,mO),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(c.jersey),9,pO)],40,dO)],8,rO))),128))]))])),t.createVNode(r,{data:s.data},{default:t.withCtx(()=>[t.createElementVNode("div",hO,[t.createElementVNode("div",null,[t.createElementVNode("span",yO,t.toDisplayString(s.dataPlay.isOwnGoal?"Autogol":s.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(s.dataPlay.playerName)+" ",1),t.createElementVNode("div",gO,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+s.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(s.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival:  "+t.toDisplayString(s.dataPlay.rivalName)+" ",1),t.createElementVNode("div",uO,[t.createElementVNode("img",{src:s.dataPlay.rivalLogo},null,8,fO)])]),t.createElementVNode("div",_O,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGi)&&s.dataPlay.xGi<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bO,[wO,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),CO,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGf)&&s.dataPlay.xGf<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",kO,[SO,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const B1=Ie(QI,[["render",EO],["__scopeId","data-v-cd81820a"]]),Fve="",NO={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},x1=e=>(t.pushScopeId("data-v-dcdd933a"),e=e(),t.popScopeId(),e),$O={class:"xg-container"},BO=x1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),xO={class:"xg-container__field"},VO={class:"xg-container__info"},AO={class:"table"},IO={class:"table__row"},OO={class:"table__row__title"},TO={class:"table__row__value"},zO=["src"],FO={class:"table__row"},RO={class:"table__row__title"},PO={class:"table__row__value"},DO={class:"table__row"},LO={class:"table__row__title"},jO={class:"table__row__value"},vO=x1(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function MO(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",$O,[BO,t.createElementVNode("div",xO,[t.createVNode(r,{plays:e.playsLocal,categories:s.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",VO,[t.createElementVNode("div",AO,[t.createElementVNode("div",IO,[t.createElementVNode("div",OO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",TO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,zO)])]),t.createElementVNode("div",FO,[t.createElementVNode("div",RO,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",PO,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",DO,[t.createElementVNode("div",LO,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",jO,t.toDisplayString(i.gxInfoItems[2].value),1)])]),vO])])}const HO=Ie(NO,[["render",MO],["__scopeId","data-v-dcdd933a"]]),Rve="",UO={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},V1=e=>(t.pushScopeId("data-v-13c75a53"),e=e(),t.popScopeId(),e),GO={class:"xg-container"},WO=V1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),qO={class:"xg-container__field"},JO={class:"xg-container__info"},XO={class:"table"},ZO={class:"table__row"},YO={class:"table__row__title"},KO={class:"table__row__value"},QO=["src"],eT={class:"table__row"},tT={class:"table__row__title"},aT={class:"table__row__value"},oT={class:"table__row"},nT={class:"table__row__title"},sT={class:"table__row__value"},iT=V1(()=>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 rT(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",GO,[WO,t.createElementVNode("div",qO,[t.createVNode(r,{plays:e.playsAway,categories:s.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",JO,[t.createElementVNode("div",XO,[t.createElementVNode("div",ZO,[t.createElementVNode("div",YO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",KO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,QO)])]),t.createElementVNode("div",eT,[t.createElementVNode("div",tT,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",aT,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",oT,[t.createElementVNode("div",nT,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",sT,t.toDisplayString(i.gxInfoItems[2].value),1)])]),iT])])}const lT=Ie(UO,[["render",rT],["__scopeId","data-v-13c75a53"]]),Pve="";let A1=null;const cT={name:"XgMain",components:{GSCSwitchRadio:jA,SoccerChalkboardLocal:TI,SoccerChalkboardAway:KI,SoccerChalkboardLocalMobile:HO,SoccerChalkboardAwayMobile:lT},props:{},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)A1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),A1.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))}},dT={class:"xg",ref:"gamesContainer"},mT={key:0,class:"selector-team"};function pT(e,a,o,n,s,i){const r=t.resolveComponent("GSCSwitchRadio"),c=t.resolveComponent("SoccerChalkboardLocal"),p=t.resolveComponent("SoccerChalkboardAway"),d=t.resolveComponent("SoccerChalkboardLocalMobile"),l=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",dT,[s.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",mT,[t.createVNode(r,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:s.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:i.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),s.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(c,{key:1,class:"local"})):t.createCommentVNode("",!0),s.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(p,{key:2,class:"away"})):t.createCommentVNode("",!0),s.gamesContainerWidth<655&&s.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(d,{key:3})):t.createCommentVNode("",!0),s.gamesContainerWidth<655&&s.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(l,{key:4})):t.createCommentVNode("",!0)],512)}const hT=Ie(cT,[["render",pT],["__scopeId","data-v-cb8797f6"]]),Dve="",yT={class:"statistics-main"},gT={class:"statistics-main__header"},uT={class:"statistics-main__header__filter"},fT={class:"statistics-main__body"},_T=t.defineComponent({name:"TemplateVideos",components:{TrendLive:DB,Comparative:kA,Distribution:OA,GSCSlider:Md,XG:hT}}),bT=Ie(Object.assign(_T,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,n=gu(),s=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),i=t.ref({}),r=t.ref(null),c=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let p=t.ref({id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"});t.watch(()=>o.game,g=>{const y={...g};d(y)},{deep:!0,immediate:!0});async function d(g){try{i.value.gameId!==g.gameId&&(i.value=g,await n.dispatch("nextGeneral/cleanStats"),await n.dispatch("nextGeneral/checkState",{gameId:g.gameId,currentSeasonId:g.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:g}))}catch(y){throw new Error(y)}}function l(g){p.value=g}function m(){n.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 h(g){a("openmedia",g)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{o.subsection==="Comparativa"&&(p.value.id="st1",p.value.name="Comparativa",p.value.componentName="Comparative")}),m(),(g,y)=>(t.openBlock(),t.createElementBlock("div",yT,[t.createElementVNode("div",gT,[t.createVNode(t.unref(Md),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"game-time-line__options__option"},[t.createVNode(mu,t.mergeProps(s.value,{text:u.name,"is-active":t.unref(p).id===u.id,onClick:f=>l(u)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",uT,[t.createVNode(w$)],512),[[t.vShow,!1]])]),t.createElementVNode("div",fT,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(p).componentName),{seasonSelected:e.seasonSelected,game:e.game,onOpenmedia:h},null,40,["seasonSelected","game"]))])]))}}),[["__scopeId","data-v-40695659"]]);function I1(e,a){return function(){return e.apply(a,arguments)}}const{toString:wT}=Object.prototype,{getPrototypeOf:Ud}=Object,vi=(e=>a=>{const o=wT.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=e=>(e=e.toLowerCase(),a=>vi(a)===e),Mi=e=>a=>typeof a===e,{isArray:xo}=Array,Fn=Mi("undefined");function CT(e){return e!==null&&!Fn(e)&&e.constructor!==null&&!Fn(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O1=Qt("ArrayBuffer");function kT(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&O1(e.buffer),a}const ST=Mi("string"),$t=Mi("function"),T1=Mi("number"),Hi=e=>e!==null&&typeof e=="object",ET=e=>e===!0||e===!1,Ui=e=>{if(vi(e)!=="object")return!1;const a=Ud(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NT=Qt("Date"),$T=Qt("File"),BT=Qt("Blob"),xT=Qt("FileList"),VT=e=>Hi(e)&&$t(e.pipe),AT=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||$t(e.append)&&((a=vi(e))==="formdata"||a==="object"&&$t(e.toString)&&e.toString()==="[object FormData]"))},IT=Qt("URLSearchParams"),OT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xo(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function z1(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const F1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),R1=e=>!Fn(e)&&e!==F1;function Gd(){const{caseless:e}=R1(this)&&this||{},a={},o=(n,s)=>{const i=e&&z1(a,s)||s;Ui(a[i])&&Ui(n)?a[i]=Gd(a[i],n):Ui(n)?a[i]=Gd({},n):xo(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Rn(arguments[n],o);return a}const TT=(e,a,o,{allOwnKeys:n}={})=>(Rn(a,(s,i)=>{o&&$t(s)?e[i]=I1(s,o):e[i]=s},{allOwnKeys:n}),e),zT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FT=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},RT=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ud(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},PT=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},DT=e=>{if(!e)return null;if(xo(e))return e;let a=e.length;if(!T1(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},LT=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ud(Uint8Array)),jT=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},vT=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},MT=Qt("HTMLFormElement"),HT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),P1=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),UT=Qt("RegExp"),D1=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Rn(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},GT=e=>{D1(e,(a,o)=>{if($t(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if($t(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},WT=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return xo(e)?n(e):n(String(e).split(a)),o},qT=()=>{},JT=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Wd="abcdefghijklmnopqrstuvwxyz",L1="0123456789",j1={DIGIT:L1,ALPHA:Wd,ALPHA_DIGIT:Wd+Wd.toUpperCase()+L1},XT=(e=16,a=j1.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function ZT(e){return!!(e&&$t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const YT=e=>{const a=new Array(10),o=(n,s)=>{if(Hi(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xo(n)?[]:{};return Rn(n,(r,c)=>{const p=o(r,s+1);!Fn(p)&&(i[c]=p)}),a[s]=void 0,i}}return n};return o(e,0)},KT=Qt("AsyncFunction"),QT=e=>e&&(Hi(e)||$t(e))&&$t(e.then)&&$t(e.catch),j={isArray:xo,isArrayBuffer:O1,isBuffer:CT,isFormData:AT,isArrayBufferView:kT,isString:ST,isNumber:T1,isBoolean:ET,isObject:Hi,isPlainObject:Ui,isUndefined:Fn,isDate:NT,isFile:$T,isBlob:BT,isRegExp:UT,isFunction:$t,isStream:VT,isURLSearchParams:IT,isTypedArray:LT,isFileList:xT,forEach:Rn,merge:Gd,extend:TT,trim:OT,stripBOM:zT,inherits:FT,toFlatObject:RT,kindOf:vi,kindOfTest:Qt,endsWith:PT,toArray:DT,forEachEntry:jT,matchAll:vT,isHTMLForm:MT,hasOwnProperty:P1,hasOwnProp:P1,reduceDescriptors:D1,freezeMethods:GT,toObjectSet:WT,toCamelCase:HT,noop:qT,toFiniteNumber:JT,findKey:z1,global:F1,isContextDefined:R1,ALPHABET:j1,generateString:XT,isSpecCompliantForm:ZT,toJSONObject:YT,isAsyncFn:KT,isThenable:QT};function pe(e,a,o,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),s&&(this.response=s)}j.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const v1=pe.prototype,M1={};["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=>{M1[e]={value:e}}),Object.defineProperties(pe,M1),Object.defineProperty(v1,"isAxiosError",{value:!0}),pe.from=(e,a,o,n,s,i)=>{const r=Object.create(v1);return j.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),pe.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const ez=null;function qd(e){return j.isPlainObject(e)||j.isArray(e)}function H1(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function U1(e,a,o){return e?e.concat(a).map(function(n,s){return n=H1(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function tz(e){return j.isArray(e)&&!e.some(qd)}const az=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Gi(e,a,o){if(!j.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=j.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!j.isUndefined(y[g])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(a);if(!j.isFunction(s))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(j.isDate(g))return g.toISOString();if(!c&&j.isBlob(g))throw new pe("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(g)||j.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,u){let f=g;if(g&&!u&&typeof g=="object"){if(j.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(j.isArray(g)&&tz(g)||(j.isFileList(g)||j.endsWith(y,"[]"))&&(f=j.toArray(g)))return y=H1(y),f.forEach(function(b,E){!(j.isUndefined(b)||b===null)&&a.append(r===!0?U1([y],E,i):r===null?y:y+"[]",p(b))}),!1}return qd(g)?!0:(a.append(U1(u,y,i),p(g)),!1)}const l=[],m=Object.assign(az,{defaultVisitor:d,convertValue:p,isVisitable:qd});function h(g,y){if(!j.isUndefined(g)){if(l.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));l.push(g),j.forEach(g,function(u,f){(!(j.isUndefined(u)||u===null)&&s.call(a,u,j.isString(f)?f.trim():f,y,m))===!0&&h(u,y?y.concat(f):[f])}),l.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return h(e),a}function G1(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Jd(e,a){this._pairs=[],e&&Gi(e,this,a)}const W1=Jd.prototype;W1.append=function(e,a){this._pairs.push([e,a])},W1.toString=function(e){const a=e?function(o){return e.call(this,o,G1)}:G1;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function oz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q1(e,a,o){if(!a)return e;const n=o&&o.encode||oz,s=o&&o.serialize;let i;if(s?i=s(a,o):i=j.isURLSearchParams(a)?a.toString():new Jd(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const J1=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){j.forEach(this.handlers,function(o){o!==null&&a(o)})}},X1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nz=typeof URLSearchParams<"u"?URLSearchParams:Jd,sz=typeof FormData<"u"?FormData:null,iz=typeof Blob<"u"?Blob:null,rz={isBrowser:!0,classes:{URLSearchParams:nz,FormData:sz,Blob:iz},protocols:["http","https","file","blob","url","data"]},Z1=typeof window<"u"&&typeof document<"u",lz=(e=>Z1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),cz=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z1,hasStandardBrowserEnv:lz,hasStandardBrowserWebWorkerEnv:cz},Symbol.toStringTag,{value:"Module"})),ea={...dz,...rz};function mz(e,a){return Gi(e,new ea.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ea.isNode&&j.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function pz(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function hz(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function Y1(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),p=i>=o.length;return r=!r&&j.isArray(s)?s.length:r,p?(j.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!j.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&j.isArray(s[r])&&(s[r]=hz(s[r])),!c)}if(j.isFormData(e)&&j.isFunction(e.entries)){const o={};return j.forEachEntry(e,(n,s)=>{a(pz(n),s,o,0)}),o}return null}function yz(e,a,o){if(j.isString(e))try{return(a||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Xd={transitional:X1,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=j.isObject(e);if(s&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return n&&n?JSON.stringify(Y1(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return mz(e,this.formSerializer).toString();if((i=j.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Gi(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),yz(e)):e}],transformResponse:[function(e){const a=this.transitional||Xd.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&j.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?pe.from(i,pe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Xd.headers[e]={}});const Zd=Xd,gz=j.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"]),uz=e=>{const a={};let o,n,s;return e&&e.split(`
21
+ `):" "+r1(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Fd};function Rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(null,e)}function c1(e){return Rd(e),e.headers=Va.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),l1.getAdapter(e.adapter||Od.adapter)(e).then(function(n){return Rd(e),n.data=zd.call(e,e.transformResponse,n),n.headers=Va.from(n.headers),n},function(n){return n1(n)||(Rd(e),n&&n.response&&(n.response.data=zd.call(e,e.transformResponse,n.response),n.response.headers=Va.from(n.response.headers))),Promise.reject(n)})}const d1=e=>e instanceof Va?e.toJSON():e;function Bo(e,a){a=a||{};const o={};function n(d,l,m){return L.isPlainObject(d)&&L.isPlainObject(l)?L.merge.call({caseless:m},d,l):L.isPlainObject(l)?L.merge({},l):L.isArray(l)?l.slice():l}function s(d,l,m){if(L.isUndefined(l)){if(!L.isUndefined(d))return n(void 0,d,m)}else return n(d,l,m)}function i(d,l){if(!L.isUndefined(l))return n(void 0,l)}function r(d,l){if(L.isUndefined(l)){if(!L.isUndefined(d))return n(void 0,d)}else return n(void 0,l)}function c(d,l,m){if(m in a)return n(d,l);if(m in e)return n(void 0,d)}const p={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l)=>s(d1(d),d1(l),!0)};return L.forEach(Object.keys(Object.assign({},e,a)),function(l){const m=p[l]||s,h=m(e[l],a[l],l);L.isUndefined(h)&&m!==c||(o[l]=h)}),o}const m1="1.6.5",Pd={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pd[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const p1={};Pd.transitional=function(a,o,n){function s(i,r){return"[Axios v"+m1+"] Transitional option '"+i+"'"+r+(n?". "+n:"")}return(i,r,c)=>{if(a===!1)throw new me(s(r," has been removed"+(o?" in "+o:"")),me.ERR_DEPRECATED);return o&&!p1[r]&&(p1[r]=!0,console.warn(s(r," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(i,r,c):!0}};function cV(e,a,o){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const c=e[i],p=c===void 0||r(c,i,e);if(p!==!0)throw new me("option "+i+" must be "+p,me.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Dd={assertOptions:cV,validators:Pd},Ga=Dd.validators;class Pi{constructor(a){this.defaults=a,this.interceptors={request:new Qu,response:new Qu}}request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=Bo(this.defaults,o);const{transitional:n,paramsSerializer:s,headers:i}=o;n!==void 0&&Dd.assertOptions(n,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),s!=null&&(L.isFunction(s)?o.paramsSerializer={serialize:s}:Dd.assertOptions(s,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&L.merge(i.common,i[o.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),o.headers=Va.concat(r,i);const c=[];let p=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(p=p&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!p){const y=[c1.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,d),h=y.length,l=Promise.resolve(o);m<h;)l=l.then(y[m++],y[m++]);return l}h=c.length;let g=o;for(m=0;m<h;){const y=c[m++],u=c[m++];try{g=y(g)}catch(f){u.call(this,f);break}}try{l=c1.call(this,g)}catch(y){return Promise.reject(y)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=Bo(this.defaults,a);const o=s1(a.baseURL,a.url);return Ku(o,a.params,a.paramsSerializer)}}L.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,n){return this.request(Bo(n||{},{method:a,url:o,data:(n||{}).data}))}}),L.forEach(["post","put","patch"],function(a){function o(n){return function(i,r,c){return this.request(Bo(c||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class Ld{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(c=>{n.subscribe(c),i=c}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(i,r,c){n.reason||(n.reason=new On(i,r,c),o(n.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 o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ld(function(s){a=s}),cancel:a}}}const dV=Ld;function mV(e){return function(o){return e.apply(null,o)}}function pV(e){return L.isObject(e)&&e.isAxiosError===!0}const jd={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(jd).forEach(([e,a])=>{jd[a]=e});const hV=jd;function h1(e){const a=new Di(e),o=Ru(Di.prototype.request,a);return L.extend(o,Di.prototype,a,{allOwnKeys:!0}),L.extend(o,a,null,{allOwnKeys:!0}),o.create=function(s){return h1(Bo(e,s))},o}const Me=h1(Od);Me.Axios=Di,Me.CanceledError=On,Me.CancelToken=dV,Me.isCancel=n1,Me.VERSION=m1,Me.toFormData=zi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=mV,Me.isAxiosError=pV,Me.mergeConfig=Bo,Me.AxiosHeaders=Va,Me.formToJSON=e=>a1(L.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=l1.getAdapter,Me.HttpStatusCode=hV,Me.default=Me;const Li=Me,y1="/icn-play.svg",kve="",yV={components:{BarraLeft:XB,BarraRight:ox},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[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]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.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]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(n.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",n)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const n=e.generalCategoriesIds.accomplished===3;if(a.is_live&&this.showLiveData){const s=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return s?{numberValue:n?e[o].accomplished.totalLive/s*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/s}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const s=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return s?{numberValue:n?e[o].accomplished.totalPostGame/s*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/s}:this.objectZeroValues}if(n){const s=e[o].accomplished.avgPreGame;return e[o].accomplished.avgPostGame?{numberValue:s<1?s*100:s,numberBarPercent:e[o].accomplished.avgPreGame}:this.objectZeroValues}else return e[o].accomplished.leader.points?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/e[o].accomplished.leader.points}:this.objectZeroValues},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await Li.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},async mounted(){}},g1=e=>(t.pushScopeId("data-v-4e0c1385"),e=e(),t.popScopeId(),e),gV={class:"card"},uV={class:"card__header"},fV={class:"card__stats"},_V=["onClick"],bV=[g1(()=>t.createElementVNode("img",{src:y1},null,-1))],wV={key:1,class:"card__stats__stat__button_empty"},CV={class:"card__stats__title"},kV={class:"card__stats__scores"},SV={key:0},EV={key:1},NV={key:2},$V={key:3},BV={class:"card__stats__bars"},xV=["onClick"],VV=[g1(()=>t.createElementVNode("img",{src:y1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function IV(e,a,o,n,s,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",gV,[t.createElementVNode("span",uV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",fV,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(p,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(p)&&i.hVal(p).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:p.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},bV,8,_V)):(t.openBlock(),t.createElementBlock("div",wV))]),t.createElementVNode("div",null,[t.createElementVNode("div",CV,t.toDisplayString(p.name)+t.toDisplayString(),1),t.createElementVNode("div",kV,[i.hVal(p)?(t.openBlock(),t.createElementBlock("span",SV,[t.createTextVNode(t.toDisplayString(i.hVal(p).numberValue|e.toFixed2),1),p.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",EV,"0")),i.aVal(p)?(t.openBlock(),t.createElementBlock("span",NV,[t.createTextVNode(t.toDisplayString(i.aVal(p).numberValue|e.toFixed2),1),p.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",$V,"0"))]),t.createElementVNode("div",BV,[t.createElementVNode("div",null,[i.hVal(p)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(p).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(p)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(p).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(p)&&i.aVal(p).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:p.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},VV,8,xV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const OV=Ie(yV,[["render",IV],["__scopeId","data-v-4e0c1385"]]),Nve="",TV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Aa=e=>(t.pushScopeId("data-v-58147cac"),e=e(),t.popScopeId(),e),zV={class:"comparative-card"},FV=Aa(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa h")],-1)),RV={class:"versus"},PV={class:"team-badge"},DV=["src","alt"],LV=Aa(()=>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)),jV=Aa(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),vV={class:"team-badge"},MV=["src","alt"],HV={class:"details"},UV=Aa(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),GV=Aa(()=>t.createElementVNode("td",null,"Puntos",-1)),WV=Aa(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),qV=Aa(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),JV=Aa(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),XV=Aa(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function ZV(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",zV,[FV,t.createElementVNode("div",RV,[t.createElementVNode("div",PV,[t.createElementVNode("img",{class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,DV),LV]),jV,t.createElementVNode("div",vV,[t.createElementVNode("img",{class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,MV)])]),t.createElementVNode("div",HV,[t.createElementVNode("table",null,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),UV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),GV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])])])],4)}const YV=Ie(TV,[["render",ZV],["__scopeId","data-v-58147cac"]]),$ve="",KV=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},vd={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)}}},u1=()=>{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}))},f1=vd.setup;vd.setup=f1?(e,a)=>(u1(),f1(e,a)):u1;const QV={ref:"gscScrollableContainer",class:"scrollable-container"},eA={class:"scrollable-arrows"},tA=["width","height","viewBox"],aA=["stroke"],oA={class:"scrollable-wrapper"},nA={class:"scrollable-arrows"},sA=["width","height","viewBox"],iA=["stroke"];function rA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",QV,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",eA,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.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:o.arrowsColor},null,8,aA)],8,tA))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",oA,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",nA,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.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:o.arrowsColor},null,8,iA)],8,sA))])],2)):t.createCommentVNode("",!0)],512)}const Md=KV(vd,[["render",rA],["__scopeId","data-v-b548a08d"]]),Bve="";let _1=null;const lA={name:"App",components:{GscLinearTeamStats:OV,TableComparative:YV,GSCSlider:Md},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("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:{},away:{}}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)_1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),_1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await Li.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonId),o=a.data.data.findIndex(s=>s.team_id===this.gameForAnalysis.home_team),n=a.data.data.findIndex(s=>s.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[n]}catch{}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},cA={class:"container",ref:"gamesContainer"},dA={key:0,class:"grid-container"},mA={class:"item"},pA={class:"item"},hA={class:"item"},yA={class:"item"},gA={class:"item"},uA={class:"item"},fA={class:"item"},_A={class:"grid-container"},bA={class:"item-comparative"},wA={class:"table-movil-container"};function CA(e,a,o,n,s,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),p=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",cA,[s.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",_A,[t.createElementVNode("div",bA,[t.createVNode(r,{local:s.home,away:s.away,fontFamily:"Poppins-Regular"},null,8,["local","away"])])]),t.createVNode(p,{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",wA,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510&&s.gamesContainerWidth>450?"width: 400px":s.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(s.gamesContainerWidth<510?"width: 400px":s.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",dA,[t.createElementVNode("div",mA,[t.createVNode(r,{local:s.home,away:s.away,fontFamily:"Poppins-Regular"},null,8,["local","away"])]),t.createElementVNode("div",pA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",hA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",yA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",gA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fA,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const kA=Ie(lA,[["render",CA]]),xve="",b1=["#cbee6b","#0033C5"],SA={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()}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,n=Math.floor(o/(1e3*60*60*24)),s=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),s>0&&(c=s==1?s+" hora":s+" horas"),n>0&&(c=n==1?n+" día":n+" días"),c}},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:b1,fill:{colors:b1,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,shared:!1,custom:({w:e,dataPointIndex:a,seriesIndex:o})=>(this.showModal(e,a,o),null)}}},getChartSeries(e,a){let o,n;return this.showPostMatchData?(o={name:`${this.homeTeam.acronym}`,data:[]},n={name:`${this.visitingTeam.acronym}`,data:[]},a.arraySubcategories=[],Object.values(e).forEach((s,i)=>{a.xaxis.categories.push(this.prepareLabels(s,i)),a.arraySubcategories.push(s);const r=s.homeTeam[this.homeTeamStatisticsType].totalPostGame+s.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;o.data.push(Math.round(120*(r?s.homeTeam[this.homeTeamStatisticsType].totalPostGame/r:0))),n.data.push(Math.round(120*(r?s.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/r:0)))})):(o={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[]},n={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[]},a.arraySubcategories=[],Object.values(e).forEach((s,i)=>{a.xaxis.categories.push(this.prepareLabels(s,i)),a.arraySubcategories.push(s);let r,c;const p=s.homeTeam[this.homeTeamStatisticsType].leader.points,d=s.visitingTeam[this.visitingTeamStatisticsType].leader.points;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&s.generalCategoriesIds.accomplished===3?r=s.homeTeam.accomplished.avgPreGame:r=p?s.homeTeam[this.homeTeamStatisticsType].avgPostGame/p:0;else{const l=s.homeTeam[this.homeTeamStatisticsType].totalLive+s.visitingTeam[this.visitingTeamStatisticsType].totalLive;r=l?s.homeTeam[this.homeTeamStatisticsType].totalLive/l:0}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&s.generalCategoriesIds.accomplished===3?c=s.visitingTeam.accomplished.avgPreGame:c=d?s.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/d:0;else{const l=s.homeTeam[this.homeTeamStatisticsType].totalLive+s.visitingTeam[this.visitingTeamStatisticsType].totalLive;c=l?s.visitingTeam[this.visitingTeamStatisticsType].totalLive/l:0}o.data.push(Math.round(120*r)),n.data.push(Math.round(120*c))})),[o,n]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,o){const n=o===0?"homeTeam":"visitingTeam",s=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=s.id!=="3-0",this.tooltip.data=this.getSubcategoryData(s,n),this.tooltip.local=o===0,this.tooltip.names=s.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(s);const i=e.globals.clientX||0,r=e.globals.clientY||0;this.globals.x=i,this.globals.y=r,this.tooltip.x=i,this.tooltip.y=r>700?r-250:r;const c=s.generalCategoriesIds.accomplished===3;if(c){const p=s.homeTeam.accomplished.avgPostGame+s.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=p?s[n].accomplished.avgPostGame/p*100:0}else this.tooltip.numberValue=null;this.tooltip.booleanIsPercent=c,this.tooltip.show=!0},updateTooltip(e){const o=Math.abs(e.clientX-this.globals.x),n=Math.abs(e.clientY-this.globals.y);(o>5||n>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let o=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return o;const n=13;if(o.length>n){let s=o.split(" ");o=[];let i="",r="",c=s.slice(-1)[0];s.forEach(p=>{i+=` ${p} `,i.length>n&&(o.push(r.trim()),i=p),r=i,c===p&&o.push(r.trim())})}return o},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,o)=>a+o.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},w1=e=>(t.pushScopeId("data-v-4aab14bc"),e=e(),t.popScopeId(),e),EA={key:0,class:"distribution-leyend"},NA=w1(()=>t.createElementVNode("br",null,null,-1)),$A={class:"distribution"},BA={class:"distribution__container"},xA={class:"distribution__container__chart-type__title"},VA=w1(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AA={class:"distribution__container__chart-type__chart"};function IA(e,a,o,n,s,i){const r=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",EA,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(i.timeLeft),1),t.createTextVNode(" para el inicio."),NA,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(o.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",$A,[t.createElementVNode("div",BA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.arrayDataForCharts,(c,p)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:p},[t.createElementVNode("div",xA,t.toDisplayString(c.name),1),VA,t.createElementVNode("div",AA,[(t.openBlock(),t.createBlock(r,{type:"radar",height:s.height,options:s.arrayChartOptions[p],series:s.arrayFilledSeries[p],key:s.chartKeyCounter+s.updateCategory+p},null,8,["height","options","series"]))])]))),128))])])],64)}const OA=Ie(SA,[["render",IA],["__scopeId","data-v-4aab14bc"]]),TA=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Hd={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},C1=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},k1=Hd.setup;Hd.setup=k1?(e,a)=>(C1(),k1(e,a)):C1;const zA={key:0,class:"text-left"},FA=["width","src"],RA=["checked"],PA=["width","src"],DA={key:3,class:"text-right"};function LA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",zA,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,FA)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,RA),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,PA)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",DA,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const jA=TA(Hd,[["render",LA],["__scopeId","data-v-e2a20444"]]),Vve="",Ave="",vA={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 MA(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",i.showTooltip]),style:t.normalizeStyle(i.positionTooltip),onClick:a[0]||(a[0]=(...r)=>i.tooltipClick&&i.tooltipClick(...r))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const S1=Ie(vA,[["render",MA],["__scopeId","data-v-04db4a6b"]]),Ive="",HA={name:"SoccerChalkboard",components:{Tooltip:S1},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((n,s)=>[...n,s.categories],[]);return this.preparedPlays.filter(n=>this.findCategoryInPlay(e,n)).reduce((n,s)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,s));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:s.jersey_number,matchlapse:s.matchLapse,playerName:s.player_name,photo:s.photo,rivalLogo:s.rival_id,x1:i.invert.includes(s.categoryId)?100-s[`x${i.points[0]}`]:s[`x${i.points[0]}`],y1:i.invert.includes(s.categoryId)?100-s[`y${i.points[0]}`]:s[`y${i.points[0]}`],x2:i.invert.includes(s.categoryId)?100-s[`x${i.points[1]}`]:s[`x${i.points[1]}`],y2:i.invert.includes(s.categoryId)?100-s[`y${i.points[1]}`]:s[`y${i.points[1]}`],x3:i.invert.includes(s.categoryId)?100-s[`x${i.points[2]}`]:s[`x${i.points[2]}`],y3:i.invert.includes(s.categoryId)?100-s[`y${i.points[2]}`]:s[`y${i.points[2]}`],momentOfPlay:s.moment_of_play,isOwnGoal:i.invert.includes(s.categoryId),xGi:s.xGi,xGf:s.xGf};n.push(r)}return n},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Tn=e=>(t.pushScopeId("data-v-48c18048"),e=e(),t.popScopeId(),e),UA={class:"soccer-chalkboard-xg"},GA={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},WA={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},qA=Tn(()=>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)),JA=["id"],XA=["fill"],ZA=Tn(()=>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)),YA=["id"],KA=["x1","y1","x2","y2","stroke"],QA=["x1","y1","x2","y2","stroke","marker-end"],eI=["onMouseover"],tI=["x","y","fill"],aI=["x","y"],oI={class:"tooltip-data has-text-left"},nI={class:"bold"},sI={class:"tooltip-image"},iI={class:"tooltip-image"},rI=["src"],lI={class:"tooltip-xg"},cI={key:0},dI=Tn(()=>t.createElementVNode("span",null,"xGi:",-1)),mI=Tn(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),pI={key:1},hI=Tn(()=>t.createElementVNode("span",null,"xGf:",-1));function yI(e,a,o,n,s,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",UA,[(t.openBlock(),t.createElementBlock("svg",GA,[(t.openBlock(),t.createElementBlock("svg",WA,[t.createElementVNode("defs",null,[qA,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:c.color},null,8,XA)],8,JA))),128)),ZA]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,KA),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,QA),t.createElementVNode("g",{onMouseover:p=>i.onMouseOver(p,c),onMouseleave:a[0]||(a[0]=(...p)=>i.onMouseLeave&&i.onMouseLeave(...p)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,tI),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(c.jersey),9,aI)],40,eI)],8,YA))),128))]))])),t.createVNode(r,{data:s.data},{default:t.withCtx(()=>[t.createElementVNode("div",oI,[t.createElementVNode("div",null,[t.createElementVNode("span",nI,t.toDisplayString(s.dataPlay.isOwnGoal?"Autogol":s.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(s.dataPlay.playerName)+" ",1),t.createElementVNode("div",sI,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+s.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(s.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival:  "+t.toDisplayString(s.dataPlay.rivalName)+" ",1),t.createElementVNode("div",iI,[t.createElementVNode("img",{src:s.dataPlay.rivalLogo},null,8,rI)])]),t.createElementVNode("div",lI,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGi)&&s.dataPlay.xGi<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",cI,[dI,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),mI,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGf)&&s.dataPlay.xGf<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",pI,[hI,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const E1=Ie(HA,[["render",yI],["__scopeId","data-v-48c18048"]]),ji=[{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]}],Ove="",gI={name:"Xg",components:{SoccerChalkboard:E1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},N1=e=>(t.pushScopeId("data-v-1a1bc29b"),e=e(),t.popScopeId(),e),uI={class:"xg-container"},fI={class:"xg-container__info"},_I=N1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),bI={class:"table"},wI={class:"table__row"},CI={class:"table__row__title"},kI={class:"table__row__value"},SI=["src"],EI={class:"table__row"},NI={class:"table__row__title"},$I={class:"table__row__value"},BI={class:"table__row"},xI={class:"table__row__title"},VI={class:"table__row__value"},AI=N1(()=>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)),II={class:"xg-container__field"};function OI(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",uI,[t.createElementVNode("div",fI,[_I,t.createElementVNode("div",bI,[t.createElementVNode("div",wI,[t.createElementVNode("div",CI,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",kI,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,SI)])]),t.createElementVNode("div",EI,[t.createElementVNode("div",NI,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",$I,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",BI,[t.createElementVNode("div",xI,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",VI,t.toDisplayString(i.gxInfoItems[2].value),1)])]),AI]),t.createElementVNode("div",II,[t.createVNode(r,{plays:e.playsLocal,categories:s.categories,team:e.team},null,8,["plays","categories","team"])])])}const TI=Ie(gI,[["render",OI],["__scopeId","data-v-1a1bc29b"]]),Tve="",zI={name:"Xg",components:{SoccerChalkboard:E1},props:{team:{type:String,default:"Visiting"}},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},$1=e=>(t.pushScopeId("data-v-84e1d3ec"),e=e(),t.popScopeId(),e),FI={class:"xg-container"},RI={class:"xg-container__info"},PI=$1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),DI={class:"table"},LI={class:"table__row"},jI={class:"table__row__title"},vI={class:"table__row__value"},MI=["src"],HI={class:"table__row"},UI={class:"table__row__title"},GI={class:"table__row__value"},WI={class:"table__row"},qI={class:"table__row__title"},JI={class:"table__row__value"},XI=$1(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),ZI={class:"xg-container__field"};function YI(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",FI,[t.createElementVNode("div",RI,[PI,t.createElementVNode("div",DI,[t.createElementVNode("div",LI,[t.createElementVNode("div",jI,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",vI,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,MI)])]),t.createElementVNode("div",HI,[t.createElementVNode("div",UI,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",GI,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",WI,[t.createElementVNode("div",qI,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",JI,t.toDisplayString(i.gxInfoItems[2].value),1)])]),XI]),t.createElementVNode("div",ZI,[t.createVNode(r,{plays:e.playsAway,categories:s.categories,team:o.team},null,8,["plays","categories","team"])])])])}const KI=Ie(zI,[["render",YI],["__scopeId","data-v-84e1d3ec"]]),zve="",QI={name:"SoccerChalkboard",components:{Tooltip:S1},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,a)=>({id:a,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((n,s)=>[...n,s.categories],[]);return this.preparedPlays.filter(n=>this.findCategoryInPlay(e,n)).reduce((n,s)=>{let i=this.localCategories.find(r=>this.findCategoryInPlay(r.categories,s));if(i){let r={category:i.id,categoryName:i.name,arrowColor:i.negative?this.negativeColor:i.color,arrowMarkerColor:i.negative?"url(#arrow-negative)":`url(#arrow-${i.id})`,markerColor:i.color,jersey:s.jersey_number,matchlapse:s.matchLapse,playerName:s.player_name,photo:s.photo,rivalLogo:s.rival_id,x1:i.invert.includes(s.categoryId)?100-s[`x${i.points[0]}`]:s[`x${i.points[0]}`],y1:i.invert.includes(s.categoryId)?100-s[`y${i.points[0]}`]:s[`y${i.points[0]}`],x2:i.invert.includes(s.categoryId)?100-s[`x${i.points[1]}`]:s[`x${i.points[1]}`],y2:i.invert.includes(s.categoryId)?100-s[`y${i.points[1]}`]:s[`y${i.points[1]}`],x3:i.invert.includes(s.categoryId)?100-s[`x${i.points[2]}`]:s[`x${i.points[2]}`],y3:i.invert.includes(s.categoryId)?100-s[`y${i.points[2]}`]:s[`y${i.points[2]}`],momentOfPlay:s.moment_of_play,isOwnGoal:i.invert.includes(s.categoryId),xGi:s.xGi,xGf:s.xGf};n.push(r)}return n},[])}},methods:{findCategoryInPlay(e,a){return e.find(o=>typeof o=="number"?o===a.categoryId:o.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},zn=e=>(t.pushScopeId("data-v-cd81820a"),e=e(),t.popScopeId(),e),eO={class:"soccer-chalkboard-xg"},tO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},aO={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},oO=zn(()=>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)),nO=["id"],sO=["fill"],iO=zn(()=>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)),rO=["id"],lO=["x1","y1","x2","y2","stroke"],cO=["x1","y1","x2","y2","stroke","marker-end"],dO=["onMouseover"],mO=["x","y","fill"],pO=["x","y"],hO={class:"tooltip-data has-text-left"},yO={class:"bold"},gO={class:"tooltip-image"},uO={class:"tooltip-image"},fO=["src"],_O={class:"tooltip-xg"},bO={key:0},wO=zn(()=>t.createElementVNode("span",null,"xGi:",-1)),CO=zn(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),kO={key:1},SO=zn(()=>t.createElementVNode("span",null,"xGf:",-1));function EO(e,a,o,n,s,i){const r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",eO,[(t.openBlock(),t.createElementBlock("svg",tO,[(t.openBlock(),t.createElementBlock("svg",aO,[t.createElementVNode("defs",null,[oO,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.localCategories,c=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${c.id}`,id:`arrow-${c.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:c.color},null,8,sO)],8,nO))),128)),iO]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.graphPlays,c=>(t.openBlock(),t.createElementBlock("g",{key:c.id,id:`play-${c.playId}`},[t.createElementVNode("line",{x1:`${c.x1}%`,y1:`${c.y1}%`,x2:`${c.x2}%`,y2:`${c.y2}%`,stroke:c.arrowColor,"stroke-width":"2"},null,8,lO),t.createElementVNode("line",{x1:`${c.x2}%`,y1:`${c.y2}%`,x2:`${c.x3}%`,y2:`${c.y3}%`,stroke:c.arrowColor,"stroke-width":"2","marker-end":c.arrowMarkerColor},null,8,cO),t.createElementVNode("g",{onMouseover:p=>i.onMouseOver(p,c),onMouseleave:a[0]||(a[0]=(...p)=>i.onMouseLeave&&i.onMouseLeave(...p)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${c.x1}%`,y:`${c.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:c.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,mO),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${c.x1}%`,y:`${c.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(c.jersey),9,pO)],40,dO)],8,rO))),128))]))])),t.createVNode(r,{data:s.data},{default:t.withCtx(()=>[t.createElementVNode("div",hO,[t.createElementVNode("div",null,[t.createElementVNode("span",yO,t.toDisplayString(s.dataPlay.isOwnGoal?"Autogol":s.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(s.dataPlay.playerName)+" ",1),t.createElementVNode("div",gO,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+s.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto:  "+t.toDisplayString(s.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival:  "+t.toDisplayString(s.dataPlay.rivalName)+" ",1),t.createElementVNode("div",uO,[t.createElementVNode("img",{src:s.dataPlay.rivalLogo},null,8,fO)])]),t.createElementVNode("div",_O,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGi)&&s.dataPlay.xGi<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bO,[wO,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),CO,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(s.dataPlay.xGf)&&s.dataPlay.xGf<=1&&!s.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",kO,[SO,t.createTextVNode(" "+t.toDisplayString(Number(s.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const B1=Ie(QI,[["render",EO],["__scopeId","data-v-cd81820a"]]),Fve="",NO={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},x1=e=>(t.pushScopeId("data-v-dcdd933a"),e=e(),t.popScopeId(),e),$O={class:"xg-container"},BO=x1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),xO={class:"xg-container__field"},VO={class:"xg-container__info"},AO={class:"table"},IO={class:"table__row"},OO={class:"table__row__title"},TO={class:"table__row__value"},zO=["src"],FO={class:"table__row"},RO={class:"table__row__title"},PO={class:"table__row__value"},DO={class:"table__row"},LO={class:"table__row__title"},jO={class:"table__row__value"},vO=x1(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function MO(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",$O,[BO,t.createElementVNode("div",xO,[t.createVNode(r,{plays:e.playsLocal,categories:s.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",VO,[t.createElementVNode("div",AO,[t.createElementVNode("div",IO,[t.createElementVNode("div",OO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",TO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,zO)])]),t.createElementVNode("div",FO,[t.createElementVNode("div",RO,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",PO,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",DO,[t.createElementVNode("div",LO,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",jO,t.toDisplayString(i.gxInfoItems[2].value),1)])]),vO])])}const HO=Ie(NO,[["render",MO],["__scopeId","data-v-dcdd933a"]]),Rve="",UO={name:"Xg",components:{SoccerChalkboard:B1},props:{},data(){return{categories:ji}},computed:{...kt("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...kt("general",["booleanIsStatisticModalOpen"]),...Te("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...Te("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...Te("loginGeneral",["getPremiumAccount","getIsGolstats"]),...Te("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Ua("general",["setVideoSrc","setVideoModalVisibility"]),...Ua("xgGeneral",["setTeamSelected"]),...Ni("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.showPostMatchData?this.getXgPlays({seasonId:this.gameId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:this.showPostMatchData}):this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,AwayTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id})}},beforeMount(){this.fillXgPlays()}},V1=e=>(t.pushScopeId("data-v-13c75a53"),e=e(),t.popScopeId(),e),GO={class:"xg-container"},WO=V1(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),qO={class:"xg-container__field"},JO={class:"xg-container__info"},XO={class:"table"},ZO={class:"table__row"},YO={class:"table__row__title"},KO={class:"table__row__value"},QO=["src"],eT={class:"table__row"},tT={class:"table__row__title"},aT={class:"table__row__value"},oT={class:"table__row"},nT={class:"table__row__title"},sT={class:"table__row__value"},iT=V1(()=>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 rT(e,a,o,n,s,i){const r=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",GO,[WO,t.createElementVNode("div",qO,[t.createVNode(r,{plays:e.playsAway,categories:s.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",JO,[t.createElementVNode("div",XO,[t.createElementVNode("div",ZO,[t.createElementVNode("div",YO,t.toDisplayString(i.gxInfoItems[0].title),1),t.createElementVNode("div",KO,[t.createTextVNode(t.toDisplayString(i.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:i.stringSelectedTeamLogo},null,8,QO)])]),t.createElementVNode("div",eT,[t.createElementVNode("div",tT,t.toDisplayString(i.gxInfoItems[1].title),1),t.createElementVNode("div",aT,t.toDisplayString(i.gxInfoItems[1].value),1)]),t.createElementVNode("div",oT,[t.createElementVNode("div",nT,t.toDisplayString(i.gxInfoItems[2].title),1),t.createElementVNode("div",sT,t.toDisplayString(i.gxInfoItems[2].value),1)])]),iT])])}const lT=Ie(UO,[["render",rT],["__scopeId","data-v-13c75a53"]]),Pve="";let A1=null;const cT={name:"XgMain",components:{GSCSwitchRadio:jA,SoccerChalkboardLocal:TI,SoccerChalkboardAway:KI,SoccerChalkboardLocalMobile:HO,SoccerChalkboardAwayMobile:lT},props:{},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...Te("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)A1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),A1.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))}},dT={class:"xg",ref:"gamesContainer"},mT={key:0,class:"selector-team"};function pT(e,a,o,n,s,i){const r=t.resolveComponent("GSCSwitchRadio"),c=t.resolveComponent("SoccerChalkboardLocal"),p=t.resolveComponent("SoccerChalkboardAway"),d=t.resolveComponent("SoccerChalkboardLocalMobile"),l=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",dT,[s.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",mT,[t.createVNode(r,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:s.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:i.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),s.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(c,{key:1,class:"local"})):t.createCommentVNode("",!0),s.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(p,{key:2,class:"away"})):t.createCommentVNode("",!0),s.gamesContainerWidth<655&&s.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(d,{key:3})):t.createCommentVNode("",!0),s.gamesContainerWidth<655&&s.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(l,{key:4})):t.createCommentVNode("",!0)],512)}const hT=Ie(cT,[["render",pT],["__scopeId","data-v-cb8797f6"]]),Dve="",yT={class:"statistics-main"},gT={class:"statistics-main__header"},uT={class:"statistics-main__header__filter"},fT={class:"statistics-main__body"},_T=t.defineComponent({name:"TemplateVideos",components:{TrendLive:DB,Comparative:kA,Distribution:OA,GSCSlider:Md,XG:hT}}),bT=Ie(Object.assign(_T,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,n=gu(),s=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),i=t.ref({}),r=t.ref(null),c=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]);let p=t.ref({id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"});t.watch(()=>o.game,g=>{const y={...g};d(y)},{deep:!0,immediate:!0});async function d(g){try{i.value.gameId!==g.gameId&&(i.value=g,await n.dispatch("nextGeneral/cleanStats"),await n.dispatch("nextGeneral/checkState",{gameId:g.gameId,currentSeasonId:g.seasonId,isTeamsAnalysis:!0,defaultFilter:r.value,gameInfo:g}))}catch(y){throw new Error(y)}}function l(g){p.value=g}function m(){n.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 h(g){a("openmedia",g)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{o.subsection==="Comparativa"&&(p.value.id="st1",p.value.name="Comparativa",p.value.componentName="Comparative")}),m(),(g,y)=>(t.openBlock(),t.createElementBlock("div",yT,[t.createElementVNode("div",gT,[t.createVNode(t.unref(Md),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"game-time-line__options__option"},[t.createVNode(mu,t.mergeProps(s.value,{text:u.name,"is-active":t.unref(p).id===u.id,onClick:f=>l(u)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",uT,[t.createVNode(w$)],512),[[t.vShow,!1]])]),t.createElementVNode("div",fT,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(p).componentName),{seasonSelected:e.seasonSelected,game:e.game,onOpenmedia:h},null,40,["seasonSelected","game"]))])]))}}),[["__scopeId","data-v-40695659"]]);function I1(e,a){return function(){return e.apply(a,arguments)}}const{toString:wT}=Object.prototype,{getPrototypeOf:Ud}=Object,vi=(e=>a=>{const o=wT.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=e=>(e=e.toLowerCase(),a=>vi(a)===e),Mi=e=>a=>typeof a===e,{isArray:xo}=Array,Fn=Mi("undefined");function CT(e){return e!==null&&!Fn(e)&&e.constructor!==null&&!Fn(e.constructor)&&$t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O1=Qt("ArrayBuffer");function kT(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&O1(e.buffer),a}const ST=Mi("string"),$t=Mi("function"),T1=Mi("number"),Hi=e=>e!==null&&typeof e=="object",ET=e=>e===!0||e===!1,Ui=e=>{if(vi(e)!=="object")return!1;const a=Ud(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NT=Qt("Date"),$T=Qt("File"),BT=Qt("Blob"),xT=Qt("FileList"),VT=e=>Hi(e)&&$t(e.pipe),AT=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||$t(e.append)&&((a=vi(e))==="formdata"||a==="object"&&$t(e.toString)&&e.toString()==="[object FormData]"))},IT=Qt("URLSearchParams"),OT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xo(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function z1(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const F1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),R1=e=>!Fn(e)&&e!==F1;function Gd(){const{caseless:e}=R1(this)&&this||{},a={},o=(n,s)=>{const i=e&&z1(a,s)||s;Ui(a[i])&&Ui(n)?a[i]=Gd(a[i],n):Ui(n)?a[i]=Gd({},n):xo(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Rn(arguments[n],o);return a}const TT=(e,a,o,{allOwnKeys:n}={})=>(Rn(a,(s,i)=>{o&&$t(s)?e[i]=I1(s,o):e[i]=s},{allOwnKeys:n}),e),zT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FT=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},RT=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ud(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},PT=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},DT=e=>{if(!e)return null;if(xo(e))return e;let a=e.length;if(!T1(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},LT=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ud(Uint8Array)),jT=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},vT=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},MT=Qt("HTMLFormElement"),HT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),P1=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),UT=Qt("RegExp"),D1=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Rn(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},GT=e=>{D1(e,(a,o)=>{if($t(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if($t(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},WT=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return xo(e)?n(e):n(String(e).split(a)),o},qT=()=>{},JT=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Wd="abcdefghijklmnopqrstuvwxyz",L1="0123456789",j1={DIGIT:L1,ALPHA:Wd,ALPHA_DIGIT:Wd+Wd.toUpperCase()+L1},XT=(e=16,a=j1.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function ZT(e){return!!(e&&$t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const YT=e=>{const a=new Array(10),o=(n,s)=>{if(Hi(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xo(n)?[]:{};return Rn(n,(r,c)=>{const p=o(r,s+1);!Fn(p)&&(i[c]=p)}),a[s]=void 0,i}}return n};return o(e,0)},KT=Qt("AsyncFunction"),QT=e=>e&&(Hi(e)||$t(e))&&$t(e.then)&&$t(e.catch),j={isArray:xo,isArrayBuffer:O1,isBuffer:CT,isFormData:AT,isArrayBufferView:kT,isString:ST,isNumber:T1,isBoolean:ET,isObject:Hi,isPlainObject:Ui,isUndefined:Fn,isDate:NT,isFile:$T,isBlob:BT,isRegExp:UT,isFunction:$t,isStream:VT,isURLSearchParams:IT,isTypedArray:LT,isFileList:xT,forEach:Rn,merge:Gd,extend:TT,trim:OT,stripBOM:zT,inherits:FT,toFlatObject:RT,kindOf:vi,kindOfTest:Qt,endsWith:PT,toArray:DT,forEachEntry:jT,matchAll:vT,isHTMLForm:MT,hasOwnProperty:P1,hasOwnProp:P1,reduceDescriptors:D1,freezeMethods:GT,toObjectSet:WT,toCamelCase:HT,noop:qT,toFiniteNumber:JT,findKey:z1,global:F1,isContextDefined:R1,ALPHABET:j1,generateString:XT,isSpecCompliantForm:ZT,toJSONObject:YT,isAsyncFn:KT,isThenable:QT};function pe(e,a,o,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),n&&(this.request=n),s&&(this.response=s)}j.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const v1=pe.prototype,M1={};["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=>{M1[e]={value:e}}),Object.defineProperties(pe,M1),Object.defineProperty(v1,"isAxiosError",{value:!0}),pe.from=(e,a,o,n,s,i)=>{const r=Object.create(v1);return j.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),pe.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const ez=null;function qd(e){return j.isPlainObject(e)||j.isArray(e)}function H1(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function U1(e,a,o){return e?e.concat(a).map(function(n,s){return n=H1(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function tz(e){return j.isArray(e)&&!e.some(qd)}const az=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Gi(e,a,o){if(!j.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=j.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!j.isUndefined(y[g])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(a);if(!j.isFunction(s))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(j.isDate(g))return g.toISOString();if(!c&&j.isBlob(g))throw new pe("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(g)||j.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,u){let f=g;if(g&&!u&&typeof g=="object"){if(j.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(j.isArray(g)&&tz(g)||(j.isFileList(g)||j.endsWith(y,"[]"))&&(f=j.toArray(g)))return y=H1(y),f.forEach(function(b,E){!(j.isUndefined(b)||b===null)&&a.append(r===!0?U1([y],E,i):r===null?y:y+"[]",p(b))}),!1}return qd(g)?!0:(a.append(U1(u,y,i),p(g)),!1)}const l=[],m=Object.assign(az,{defaultVisitor:d,convertValue:p,isVisitable:qd});function h(g,y){if(!j.isUndefined(g)){if(l.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));l.push(g),j.forEach(g,function(u,f){(!(j.isUndefined(u)||u===null)&&s.call(a,u,j.isString(f)?f.trim():f,y,m))===!0&&h(u,y?y.concat(f):[f])}),l.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return h(e),a}function G1(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Jd(e,a){this._pairs=[],e&&Gi(e,this,a)}const W1=Jd.prototype;W1.append=function(e,a){this._pairs.push([e,a])},W1.toString=function(e){const a=e?function(o){return e.call(this,o,G1)}:G1;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function oz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q1(e,a,o){if(!a)return e;const n=o&&o.encode||oz,s=o&&o.serialize;let i;if(s?i=s(a,o):i=j.isURLSearchParams(a)?a.toString():new Jd(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const J1=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){j.forEach(this.handlers,function(o){o!==null&&a(o)})}},X1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nz=typeof URLSearchParams<"u"?URLSearchParams:Jd,sz=typeof FormData<"u"?FormData:null,iz=typeof Blob<"u"?Blob:null,rz={isBrowser:!0,classes:{URLSearchParams:nz,FormData:sz,Blob:iz},protocols:["http","https","file","blob","url","data"]},Z1=typeof window<"u"&&typeof document<"u",lz=(e=>Z1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),cz=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z1,hasStandardBrowserEnv:lz,hasStandardBrowserWebWorkerEnv:cz},Symbol.toStringTag,{value:"Module"})),ea={...dz,...rz};function mz(e,a){return Gi(e,new ea.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ea.isNode&&j.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function pz(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function hz(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function Y1(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),p=i>=o.length;return r=!r&&j.isArray(s)?s.length:r,p?(j.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!j.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&j.isArray(s[r])&&(s[r]=hz(s[r])),!c)}if(j.isFormData(e)&&j.isFunction(e.entries)){const o={};return j.forEachEntry(e,(n,s)=>{a(pz(n),s,o,0)}),o}return null}function yz(e,a,o){if(j.isString(e))try{return(a||JSON.parse)(e),j.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Xd={transitional:X1,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=j.isObject(e);if(s&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return n&&n?JSON.stringify(Y1(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return mz(e,this.formSerializer).toString();if((i=j.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Gi(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),yz(e)):e}],transformResponse:[function(e){const a=this.transitional||Xd.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&j.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?pe.from(i,pe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Xd.headers[e]={}});const Zd=Xd,gz=j.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"]),uz=e=>{const a={};let o,n,s;return e&&e.split(`
22
22
  `).forEach(function(i){s=i.indexOf(":"),o=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!o||a[o]&&gz[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},K1=Symbol("internals");function Pn(e){return e&&String(e).trim().toLowerCase()}function Wi(e){return e===!1||e==null?e:j.isArray(e)?e.map(Wi):String(e)}function fz(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const _z=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Yd(e,a,o,n,s){if(j.isFunction(n))return n.call(this,a,o);if(s&&(a=o),!!j.isString(a)){if(j.isString(n))return a.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(a)}}function bz(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function wz(e,a){const o=j.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let qi=class{constructor(a){a&&this.set(a)}set(a,o,n){const s=this;function i(c,p,d){const l=Pn(p);if(!l)throw new Error("header name must be a non-empty string");const m=j.findKey(s,l);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||p]=Wi(c))}const r=(c,p)=>j.forEach(c,(d,l)=>i(d,l,p));return j.isPlainObject(a)||a instanceof this.constructor?r(a,o):j.isString(a)&&(a=a.trim())&&!_z(a)?r(uz(a),o):a!=null&&i(o,a,n),this}get(a,o){if(a=Pn(a),a){const n=j.findKey(this,a);if(n){const s=this[n];if(!o)return s;if(o===!0)return fz(s);if(j.isFunction(o))return o.call(this,s,n);if(j.isRegExp(o))return o.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=Pn(a),a){const n=j.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Yd(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let s=!1;function i(r){if(r=Pn(r),r){const c=j.findKey(n,r);c&&(!o||Yd(n,n[c],c,o))&&(delete n[c],s=!0)}}return j.isArray(a)?a.forEach(i):i(a),s}clear(a){const o=Object.keys(this);let n=o.length,s=!1;for(;n--;){const i=o[n];(!a||Yd(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const o=this,n={};return j.forEach(this,(s,i)=>{const r=j.findKey(n,i);if(r){o[r]=Wi(s),delete o[i];return}const c=a?bz(i):String(i).trim();c!==i&&delete o[i],o[c]=Wi(s),n[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return j.forEach(this,(n,s)=>{n!=null&&n!==!1&&(o[s]=a&&j.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
23
23
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(s=>n.set(s)),n}static accessor(a){const o=(this[K1]=this[K1]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Pn(i);o[r]||(wz(n,i),o[r]=!0)}return j.isArray(a)?a.forEach(s):s(a),this}};qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(qi.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),j.freezeMethods(qi);const Ia=qi;function Kd(e,a){const o=this||Zd,n=a||o,s=Ia.from(n.headers);let i=n.data;return j.forEach(e,function(r){i=r.call(o,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function Q1(e){return!!(e&&e.__CANCEL__)}function Dn(e,a,o){pe.call(this,e??"canceled",pe.ERR_CANCELED,a,o),this.name="CanceledError"}j.inherits(Dn,pe,{__CANCEL__:!0});function Cz(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new pe("Request failed with status code "+o.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const kz=ea.hasStandardBrowserEnv?{write(e,a,o,n,s,i){const r=[e+"="+encodeURIComponent(a)];j.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),j.isString(n)&&r.push("path="+n),j.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Sz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ez(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function ef(e,a){return e&&!Sz(a)?Ez(e,a):a}const Nz=ea.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=n(window.location.href),function(s){const i=j.isString(s)?n(s):s;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function $z(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Bz(e,a){e=e||10;const o=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const p=Date.now(),d=n[i];r||(r=p),o[s]=c,n[s]=p;let l=i,m=0;for(;l!==s;)m+=o[l++],l=l%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),p-r<a)return;const h=d&&p-d;return h?Math.round(m*1e3/h):void 0}}function tf(e,a){let o=0;const n=Bz(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,c=i-o,p=n(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:p||void 0,estimated:p&&r&&d?(r-i)/p:void 0,event:s};l[a?"download":"upload"]=!0,e(l)}}const xz=typeof XMLHttpRequest<"u",Vz=xz&&function(e){return new Promise(function(a,o){let n=e.data;const s=Ia.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function p(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(j.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((d=s.getContentType())!==!1){const[y,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([y||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+u))}const m=ef(e.baseURL,e.url);l.open(e.method.toUpperCase(),q1(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const y=Ia.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};Cz(function(f){a(f),p()},function(f){o(f),p()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new pe("Request aborted",pe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new pe("Network Error",pe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||X1;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),o(new pe(y,u.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,l)),l=null},ea.hasStandardBrowserEnv&&(r&&j.isFunction(r)&&(r=r(e)),r||r!==!1&&Nz(m))){const y=e.xsrfHeaderName&&e.xsrfCookieName&&kz.read(e.xsrfCookieName);y&&s.set(e.xsrfHeaderName,y)}n===void 0&&s.setContentType(null),"setRequestHeader"in l&&j.forEach(s.toJSON(),function(y,u){l.setRequestHeader(u,y)}),j.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",tf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",tf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{l&&(o(!y||y.type?new Dn(null,e,l):y),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const g=$z(m);if(g&&ea.protocols.indexOf(g)===-1){o(new pe("Unsupported protocol "+g+":",pe.ERR_BAD_REQUEST,e));return}l.send(n||null)})},Qd={http:ez,xhr:Vz};j.forEach(Qd,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const af=e=>`- ${e}`,Az=e=>j.isFunction(e)||e===null||e===!1,of={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:a}=e;let o,n;const s={};for(let i=0;i<a;i++){o=e[i];let r;if(n=o,!Az(o)&&(n=Qd[(r=String(o)).toLowerCase()],n===void 0))throw new pe(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
24
24
  `+i.map(af).join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-game-data",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"