@golstats/gsc-game-data 1.0.273 → 1.0.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-67a56ee9-e5fb3661.js → FilterConditions-67a56ee9-7815c9e3.js} +1 -1
- package/dist/{FilterConditions-67a56ee9-Byh7UnF3-e06e591e.js → FilterConditions-67a56ee9-Byh7UnF3-a3665db0.js} +1 -1
- package/dist/{FilterField-1d2345af-1c6334bb.js → FilterField-1d2345af-482b1443.js} +1 -1
- package/dist/{FilterField-1d2345af-DewpBlbm-21a6460f.js → FilterField-1d2345af-DewpBlbm-2cfdb0a0.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-f207a9c0.js → FilterSubcategories-92dfe0dc-99221cb2.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-C1aiPRbE-7760867b.js → FilterSubcategories-92dfe0dc-C1aiPRbE-cea8496c.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-452def18.js → index-ce017994.js} +11 -11
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
* (c) 2021 Evan You
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/var JI="store";function ex(e){return e===void 0&&(e=null),t.inject(e!==null?e:JI)}function Z0(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function KI(e){return e!==null&&typeof e=="object"}function Qne(e){return e&&typeof e.then=="function"}function Np(e,r){if(!e)throw new Error("[vuex] "+r)}function ere(e,r){return function(){return e(r)}}function QI(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function eP(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;tx(e,i,[],e._modules.root,!0),n8(e,i,r)}function n8(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};Z0(D,function(m,a){c[a]=ere(m,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&ire(e),B&&i&&e._withCommit(function(){B.data=null})}function tx(e,r,i,B,D){var c=!i.length,m=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[m]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+m+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[m]=B),!c&&!D){var a=r8(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=tre(e,m,i);B.forEachMutation(function(n,v){var _=m+v;are(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:m+v,p=n.handler||n;nre(e,_,p,f)}),B.forEachGetter(function(n,v){var _=m+v;rre(e,_,n,f)}),B.forEachChild(function(n,v){tx(e,r,i.concat(v),n,D)})}function tre(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,m,a){var y=ax(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,m,a){var y=ax(c,m,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return tP(e,r)}},state:{get:function(){return r8(e.state,i)}}}),D}function tP(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function are(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(m){i.call(e,B.state,m)})}function nre(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(m){var a=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},m);return Qne(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(y){throw e._devtoolHook.emit("vuex:error",y),y}):a})}function rre(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(c){return i(B.state,B.getters,c.state,c.getters)}}function ire(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Np(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function r8(e,r){return r.reduce(function(i,B){return i[B]},e)}function ax(e,r,i){return KI(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&Np(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var ore="vuex bindings",aP="vuex:mutations",i8="vuex:actions",Fg="vuex",sre=0;function lre(e,r){Kne({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ore]},function(i){i.addTimelineLayer({id:aP,label:"Vuex Mutations",color:nP}),i.addTimelineLayer({id:i8,label:"Vuex Actions",color:nP}),i.addInspector({id:Fg,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===Fg)if(B.filter){var D=[];sP(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[oP(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===Fg){var D=B.nodeId;tP(r,D),B.state=ure(pre(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===Fg){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(Fg),i.sendInspectorState(Fg),i.addTimelineEvent({layerId:aP,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=sre++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:i8,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},m=Date.now()-B._time;c.duration={_custom:{type:"duration",display:m+"ms",tooltip:"Action duration",value:m}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:i8,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var nP=8702998,cre=6710886,dre=16777215,rP={label:"namespaced",textColor:dre,backgroundColor:cre};function iP(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function oP(e,r){return{id:r||"root",label:iP(r),tags:e.namespaced?[rP]:[],children:Object.keys(e._children).map(function(i){return oP(e._children[i],r+i+"/")})}}function sP(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[rP]:[]}),Object.keys(r._children).forEach(function(D){sP(e,r._children[D],i,B+D+"/")})}function ure(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(m){return{key:m,editable:!0,value:e.state[m]}})};if(B.length){var c=hre(r);D.getters=Object.keys(c).map(function(m){return{key:m.endsWith("/")?iP(m):m,editable:!1,value:o8(function(){return c[m]})}})}return D}function hre(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(m){D[m]||(D[m]={_custom:{value:{},display:m,tooltip:"Module",abstract:!0}}),D=D[m]._custom.value}),D[c]=o8(function(){return e[i]})}else r[i]=o8(function(){return e[i]})}),r}function pre(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var m=B[D];if(!m)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?m:m._children},r==="root"?e:e.root._children)}function o8(e){try{return e()}catch(r){return r}}var zp=function(r,i){this.runtime=i,this._children=Object.create(null),this._rawModule=r;var B=r.state;this.state=(typeof B=="function"?B():B)||{}},lP={namespaced:{configurable:!0}};lP.namespaced.get=function(){return!!this._rawModule.namespaced},zp.prototype.addChild=function(r,i){this._children[r]=i},zp.prototype.removeChild=function(r){delete this._children[r]},zp.prototype.getChild=function(r){return this._children[r]},zp.prototype.hasChild=function(r){return r in this._children},zp.prototype.update=function(r){this._rawModule.namespaced=r.namespaced,r.actions&&(this._rawModule.actions=r.actions),r.mutations&&(this._rawModule.mutations=r.mutations),r.getters&&(this._rawModule.getters=r.getters)},zp.prototype.forEachChild=function(r){Z0(this._children,r)},zp.prototype.forEachGetter=function(r){this._rawModule.getters&&Z0(this._rawModule.getters,r)},zp.prototype.forEachAction=function(r){this._rawModule.actions&&Z0(this._rawModule.actions,r)},zp.prototype.forEachMutation=function(r){this._rawModule.mutations&&Z0(this._rawModule.mutations,r)},Object.defineProperties(zp.prototype,lP);var J0=function(r){this.register([],r,!1)};J0.prototype.get=function(r){return r.reduce(function(i,B){return i.getChild(B)},this.root)},J0.prototype.getNamespace=function(r){var i=this.root;return r.reduce(function(B,D){return i=i.getChild(D),B+(i.namespaced?D+"/":"")},"")},J0.prototype.update=function(r){cP([],this.root,r)},J0.prototype.register=function(r,i,B){var D=this;B===void 0&&(B=!0),process.env.NODE_ENV!=="production"&&hP(r,i);var c=new zp(i,B);if(r.length===0)this.root=c;else{var m=this.get(r.slice(0,-1));m.addChild(r[r.length-1],c)}i.modules&&Z0(i.modules,function(a,y){D.register(r.concat(y),a,B)})},J0.prototype.unregister=function(r){var i=this.get(r.slice(0,-1)),B=r[r.length-1],D=i.getChild(B);if(!D){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+B+"', which is not registered");return}D.runtime&&i.removeChild(B)},J0.prototype.isRegistered=function(r){var i=this.get(r.slice(0,-1)),B=r[r.length-1];return i?i.hasChild(B):!1};function cP(e,r,i){if(process.env.NODE_ENV!=="production"&&hP(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}cP(e.concat(B),r.getChild(B),i.modules[B])}}var dP={assert:function(e){return typeof e=="function"},expected:"function"},fre={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uP={getters:dP,mutations:dP,actions:fre};function hP(e,r){Object.keys(uP).forEach(function(i){if(r[i]){var B=uP[i];Z0(r[i],function(D,c){Np(B.assert(D),mre(e,i,c,D,B.expected))})}})}function mre(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var vh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(Np(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Np(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new J0(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var m=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(_,p){return y.call(m,_,p)},this.commit=function(_,p,l){return f.call(m,_,p,l)},this.strict=D;var n=this._modules.root.state;tx(this,n,[],this._modules.root),n8(this,n),B.forEach(function(v){return v(i)})},s8={state:{configurable:!0}};vh.prototype.install=function(r,i){r.provide(i||JI,this),r.config.globalProperties.$store=this;var B=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;B&&lre(r,this)},s8.state.get=function(){return this._state.data},s8.state.set=function(e){process.env.NODE_ENV!=="production"&&Np(!1,"use store.replaceState() to explicit replace store state.")},vh.prototype.commit=function(r,i,B){var D=this,c=ax(r,i,B),m=c.type,a=c.payload,y=c.options,f={type:m,payload:a},n=this._mutations[m];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+m);return}this._withCommit(function(){n.forEach(function(_){_(a)})}),this._subscribers.slice().forEach(function(v){return v(f,D.state)}),process.env.NODE_ENV!=="production"&&y&&y.silent&&console.warn("[vuex] mutation type: "+m+". Silent option has been removed. Use the filter functionality in the vue-devtools")},vh.prototype.dispatch=function(r,i){var B=this,D=ax(r,i),c=D.type,m=D.payload,a={type:c,payload:m},y=this._actions[c];if(!y){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+c);return}try{this._actionSubscribers.slice().filter(function(n){return n.before}).forEach(function(n){return n.before(a,B.state)})}catch(n){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(n))}var f=y.length>1?Promise.all(y.map(function(n){return n(m)})):y[0](m);return new Promise(function(n,v){f.then(function(_){try{B._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,B.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(p))}n(_)},function(_){try{B._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,B.state,_)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(p))}v(_)})})},vh.prototype.subscribe=function(r,i){return QI(r,this._subscribers,i)},vh.prototype.subscribeAction=function(r,i){var B=typeof r=="function"?{before:r}:r;return QI(B,this._actionSubscribers,i)},vh.prototype.watch=function(r,i,B){var D=this;return process.env.NODE_ENV!=="production"&&Np(typeof r=="function","store.watch only accepts a function."),t.watch(function(){return r(D.state,D.getters)},i,Object.assign({},B))},vh.prototype.replaceState=function(r){var i=this;this._withCommit(function(){i._state.data=r})},vh.prototype.registerModule=function(r,i,B){B===void 0&&(B={}),typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&(Np(Array.isArray(r),"module path must be a string or an Array."),Np(r.length>0,"cannot register the root module by using registerModule.")),this._modules.register(r,i),tx(this,this.state,r,this._modules.get(r),B.preserveState),n8(this,this.state)},vh.prototype.unregisterModule=function(r){var i=this;typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&Np(Array.isArray(r),"module path must be a string or an Array."),this._modules.unregister(r),this._withCommit(function(){var B=r8(i.state,r.slice(0,-1));delete B[r[r.length-1]]}),eP(this)},vh.prototype.hasModule=function(r){return typeof r=="string"&&(r=[r]),process.env.NODE_ENV!=="production"&&Np(Array.isArray(r),"module path must be a string or an Array."),this._modules.isRegistered(r)},vh.prototype.hotUpdate=function(r){this._modules.update(r),eP(this,!0)},vh.prototype._withCommit=function(r){var i=this._committing;this._committing=!0,r(),this._committing=i},Object.defineProperties(vh.prototype,s8);var eh=ix(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!Iv(r)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),rx(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){var a=this.$store.state,y=this.$store.getters;if(e){var f=ox(this.$store,"mapState",e);if(!f)return;a=f.context.state,y=f.context.getters}return typeof c=="function"?c.call(this,a,y):a[c]},i[D].vuex=!0}),i}),Om=ix(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!Iv(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),rx(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var a=[],y=arguments.length;y--;)a[y]=arguments[y];var f=this.$store.commit;if(e){var n=ox(this.$store,"mapMutations",e);if(!n)return;f=n.context.commit}return typeof c=="function"?c.apply(this,[f].concat(a)):f.apply(this.$store,[c].concat(a))}}),i}),ed=ix(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!Iv(r)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),rx(r).forEach(function(B){var D=B.key,c=B.val;c=e+c,i[D]=function(){if(!(e&&!ox(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(c in this.$store.getters)){console.error("[vuex] unknown getter: "+c);return}return this.$store.getters[c]}},i[D].vuex=!0}),i}),nx=ix(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!Iv(r)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),rx(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var a=[],y=arguments.length;y--;)a[y]=arguments[y];var f=this.$store.dispatch;if(e){var n=ox(this.$store,"mapActions",e);if(!n)return;f=n.context.dispatch}return typeof c=="function"?c.apply(this,[f].concat(a)):f.apply(this.$store,[c].concat(a))}}),i});function rx(e){return Iv(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function Iv(e){return Array.isArray(e)||KI(e)}function ix(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function ox(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}function l8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gre(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var i=function B(){return this instanceof B?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};i.prototype=r.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(B){var D=Object.getOwnPropertyDescriptor(e,B);Object.defineProperty(i,B,D.get?D:{enumerable:!0,get:function(){return e[B]}})}),i}var c8={exports:{}},yre=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,vre=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],pP=function(r){var i=r,B=r.indexOf("["),D=r.indexOf("]");B!=-1&&D!=-1&&(r=r.substring(0,B)+r.substring(B,D).replace(/:/g,";")+r.substring(D,r.length));for(var c=yre.exec(r||""),m={},a=14;a--;)m[vre[a]]=c[a]||"";return B!=-1&&D!=-1&&(m.source=i,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,":"),m.authority=m.authority.replace("[","").replace("]","").replace(/;/g,":"),m.ipv6uri=!0),m.pathNames=_re(m,m.path),m.queryKey=bre(m,m.query),m};function _re(e,r){var i=/\/{2,9}/g,B=r.replace(i,"/").split("/");return(r.substr(0,1)=="/"||r.length===0)&&B.splice(0,1),r.substr(r.length-1,1)=="/"&&B.splice(B.length-1,1),B}function bre(e,r){var i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(B,D,c){D&&(i[D]=c)}),i}var d8={exports:{}},u8={exports:{}},Pv=1e3,Bv=Pv*60,Nv=Bv*60,zv=Nv*24,xre=zv*365.25,wre=function(e,r){r=r||{};var i=typeof e;if(i==="string"&&e.length>0)return kre(e);if(i==="number"&&isNaN(e)===!1)return r.long?Sre(e):Cre(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function kre(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var i=parseFloat(r[1]),B=(r[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*xre;case"days":case"day":case"d":return i*zv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Nv;case"minutes":case"minute":case"mins":case"min":case"m":return i*Bv;case"seconds":case"second":case"secs":case"sec":case"s":return i*Pv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Cre(e){return e>=zv?Math.round(e/zv)+"d":e>=Nv?Math.round(e/Nv)+"h":e>=Bv?Math.round(e/Bv)+"m":e>=Pv?Math.round(e/Pv)+"s":e+"ms"}function Sre(e){return sx(e,zv,"day")||sx(e,Nv,"hour")||sx(e,Bv,"minute")||sx(e,Pv,"second")||e+" ms"}function sx(e,r,i){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+i:Math.ceil(e/r)+" "+i+"s"}(function(e,r){r=e.exports=B.debug=B.default=B,r.coerce=y,r.disable=m,r.enable=c,r.enabled=a,r.humanize=wre,r.instances=[],r.names=[],r.skips=[],r.formatters={};function i(f){var n=0,v;for(v in f)n=(n<<5)-n+f.charCodeAt(v),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function B(f){var n;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(n||p);_.diff=l,_.prev=n,_.curr=p,n=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;u++;var b=r.formatters[g];if(typeof b=="function"){var w=o[u];h=b.call(_,w),o.splice(u,1),u--}return h}),r.formatArgs.call(_,o);var d=v.log||r.log||console.log.bind(console);d.apply(_,o)}}return v.namespace=f,v.enabled=r.enabled(f),v.useColors=r.useColors(),v.color=i(f),v.destroy=D,typeof r.init=="function"&&r.init(v),r.instances.push(v),v}function D(){var f=r.instances.indexOf(this);return f!==-1?(r.instances.splice(f,1),!0):!1}function c(f){r.save(f),r.names=[],r.skips=[];var n,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(n=0;n<_;n++)v[n]&&(f=v[n].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.substr(1)+"$")):r.names.push(new RegExp("^"+f+"$")));for(n=0;n<r.instances.length;n++){var p=r.instances[n];p.enabled=r.enabled(p.namespace)}}function m(){r.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var n,v;for(n=0,v=r.skips.length;n<v;n++)if(r.skips[n].test(f))return!1;for(n=0,v=r.names.length;n<v;n++)if(r.names[n].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(u8,u8.exports);var Tre=u8.exports;(function(e,r){r=e.exports=Tre,r.log=D,r.formatArgs=B,r.save=c,r.load=m,r.useColors=i,r.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}r.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+r.humanize(this.diff),!!f){var n="color: "+this.color;y.splice(1,0,n,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,n)}}function D(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?r.storage.removeItem("debug"):r.storage.debug=y}catch{}}function m(){var y;try{y=r.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}r.enable(m());function a(){try{return window.localStorage}catch{}}})(d8,d8.exports);var lx=d8.exports,Ere=pP,fP=lx("socket.io-client:url"),Are=Mre;function Mre(e,r){var i=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(fP("protocol-less url %s",e),typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),fP("parse %s",e),i=Ere(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var B=i.host.indexOf(":")!==-1,D=B?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+D+":"+i.port,i.href=i.protocol+"://"+D+(r&&r.port===i.port?"":":"+i.port),i}var cx={},h8={exports:{}},p8={exports:{}},Ov=1e3,Fv=Ov*60,Lv=Fv*60,Dv=Lv*24,Ire=Dv*365.25,Pre=function(e,r){r=r||{};var i=typeof e;if(i==="string"&&e.length>0)return Bre(e);if(i==="number"&&isNaN(e)===!1)return r.long?zre(e):Nre(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bre(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var i=parseFloat(r[1]),B=(r[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*Ire;case"days":case"day":case"d":return i*Dv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*Lv;case"minutes":case"minute":case"mins":case"min":case"m":return i*Fv;case"seconds":case"second":case"secs":case"sec":case"s":return i*Ov;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Nre(e){return e>=Dv?Math.round(e/Dv)+"d":e>=Lv?Math.round(e/Lv)+"h":e>=Fv?Math.round(e/Fv)+"m":e>=Ov?Math.round(e/Ov)+"s":e+"ms"}function zre(e){return dx(e,Dv,"day")||dx(e,Lv,"hour")||dx(e,Fv,"minute")||dx(e,Ov,"second")||e+" ms"}function dx(e,r,i){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+i:Math.ceil(e/r)+" "+i+"s"}(function(e,r){r=e.exports=B.debug=B.default=B,r.coerce=y,r.disable=m,r.enable=c,r.enabled=a,r.humanize=Pre,r.instances=[],r.names=[],r.skips=[],r.formatters={};function i(f){var n=0,v;for(v in f)n=(n<<5)-n+f.charCodeAt(v),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function B(f){var n;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(n||p);_.diff=l,_.prev=n,_.curr=p,n=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;u++;var b=r.formatters[g];if(typeof b=="function"){var w=o[u];h=b.call(_,w),o.splice(u,1),u--}return h}),r.formatArgs.call(_,o);var d=v.log||r.log||console.log.bind(console);d.apply(_,o)}}return v.namespace=f,v.enabled=r.enabled(f),v.useColors=r.useColors(),v.color=i(f),v.destroy=D,typeof r.init=="function"&&r.init(v),r.instances.push(v),v}function D(){var f=r.instances.indexOf(this);return f!==-1?(r.instances.splice(f,1),!0):!1}function c(f){r.save(f),r.names=[],r.skips=[];var n,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(n=0;n<_;n++)v[n]&&(f=v[n].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.substr(1)+"$")):r.names.push(new RegExp("^"+f+"$")));for(n=0;n<r.instances.length;n++){var p=r.instances[n];p.enabled=r.enabled(p.namespace)}}function m(){r.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var n,v;for(n=0,v=r.skips.length;n<v;n++)if(r.skips[n].test(f))return!1;for(n=0,v=r.names.length;n<v;n++)if(r.names[n].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(p8,p8.exports);var Ore=p8.exports;(function(e,r){r=e.exports=Ore,r.log=D,r.formatArgs=B,r.save=c,r.load=m,r.useColors=i,r.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}r.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+r.humanize(this.diff),!!f){var n="color: "+this.color;y.splice(1,0,n,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,n)}}function D(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?r.storage.removeItem("debug"):r.storage.debug=y}catch{}}function m(){var y;try{y=r.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}r.enable(m());function a(){try{return window.localStorage}catch{}}})(h8,h8.exports);var Fre=h8.exports,mP={exports:{}};(function(e){e.exports=r;function r(B){if(B)return i(B)}function i(B){for(var D in r.prototype)B[D]=r.prototype[D];return B}r.prototype.on=r.prototype.addEventListener=function(B,D){return this._callbacks=this._callbacks||{},(this._callbacks["$"+B]=this._callbacks["$"+B]||[]).push(D),this},r.prototype.once=function(B,D){function c(){this.off(B,c),D.apply(this,arguments)}return c.fn=D,this.on(B,c),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(B,D){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+B];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+B],this;for(var m,a=0;a<c.length;a++)if(m=c[a],m===D||m.fn===D){c.splice(a,1);break}return c.length===0&&delete this._callbacks["$"+B],this},r.prototype.emit=function(B){this._callbacks=this._callbacks||{};for(var D=new Array(arguments.length-1),c=this._callbacks["$"+B],m=1;m<arguments.length;m++)D[m-1]=arguments[m];if(c){c=c.slice(0);for(var m=0,a=c.length;m<a;++m)c[m].apply(this,D)}return this},r.prototype.listeners=function(B){return this._callbacks=this._callbacks||{},this._callbacks["$"+B]||[]},r.prototype.hasListeners=function(B){return!!this.listeners(B).length}})(mP);var Lg=mP.exports,ux={},Lre={}.toString,f8=Array.isArray||function(e){return Lre.call(e)=="[object Array]"},gP=$re,Dre=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",Rre=typeof ArrayBuffer=="function",Vre=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function $re(e){return Dre&&Buffer.isBuffer(e)||Rre&&(e instanceof ArrayBuffer||Vre(e))}var m8=f8,yP=gP,vP=Object.prototype.toString,jre=typeof Blob=="function"||typeof Blob<"u"&&vP.call(Blob)==="[object BlobConstructor]",Ure=typeof File=="function"||typeof File<"u"&&vP.call(File)==="[object FileConstructor]";ux.deconstructPacket=function(e){var r=[],i=e.data,B=e;return B.data=g8(i,r),B.attachments=r.length,{packet:B,buffers:r}};function g8(e,r){if(!e)return e;if(yP(e)){var i={_placeholder:!0,num:r.length};return r.push(e),i}else if(m8(e)){for(var B=new Array(e.length),D=0;D<e.length;D++)B[D]=g8(e[D],r);return B}else if(typeof e=="object"&&!(e instanceof Date)){var B={};for(var c in e)B[c]=g8(e[c],r);return B}return e}ux.reconstructPacket=function(e,r){return e.data=y8(e.data,r),e.attachments=void 0,e};function y8(e,r){if(!e)return e;if(e&&e._placeholder===!0){var i=typeof e.num=="number"&&e.num>=0&&e.num<r.length;if(i)return r[e.num];throw new Error("illegal attachments")}else if(m8(e))for(var B=0;B<e.length;B++)e[B]=y8(e[B],r);else if(typeof e=="object")for(var D in e)e[D]=y8(e[D],r);return e}ux.removeBlobs=function(e,r){function i(c,m,a){if(!c)return c;if(jre&&c instanceof Blob||Ure&&c instanceof File){B++;var y=new FileReader;y.onload=function(){a?a[m]=this.result:D=this.result,--B||r(D)},y.readAsArrayBuffer(c)}else if(m8(c))for(var f=0;f<c.length;f++)i(c[f],f,c);else if(typeof c=="object"&&!yP(c))for(var n in c)i(c[n],n,c)}var B=0,D=e;i(D),B||r(D)},function(e){var r=Fre("socket.io-parser"),i=Lg,B=ux,D=f8,c=gP;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=m,e.Decoder=v;function m(){}var a=e.ERROR+'"encode error"';m.prototype.encode=function(u,d){if(r("encoding packet %j",u),e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)n(u,d);else{var h=y(u);d([h])}};function y(u){var d=""+u.type;if((e.BINARY_EVENT===u.type||e.BINARY_ACK===u.type)&&(d+=u.attachments+"-"),u.nsp&&u.nsp!=="/"&&(d+=u.nsp+","),u.id!=null&&(d+=u.id),u.data!=null){var h=f(u.data);if(h!==!1)d+=h;else return a}return r("encoded %j as %s",u,d),d}function f(u){try{return JSON.stringify(u)}catch{return!1}}function n(u,d){function h(g){var b=B.deconstructPacket(g),w=y(b.packet),x=b.buffers;x.unshift(w),d(x)}B.removeBlobs(u,h)}function v(){this.reconstructor=null}i(v.prototype),v.prototype.add=function(u){var d;if(typeof u=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");d=p(u),e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type?(this.reconstructor=new o(d),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",d)):this.emit("decoded",d)}else if(c(u)||u.base64)if(this.reconstructor)d=this.reconstructor.takeBinaryData(u),d&&(this.reconstructor=null,this.emit("decoded",d));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+u)};function _(u,d){switch(u){case 0:return typeof d=="object";case 1:return d===void 0;case 4:return typeof d=="string"||typeof d=="object";case 2:case 5:return D(d)&&(typeof d[0]=="string"||typeof d[0]=="number");case 3:case 6:return D(d)}}function p(u){var d=0,h={type:Number(u.charAt(0))};if(e.types[h.type]==null)return s("unknown packet type "+h.type);if(e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type){for(var g=d+1;u.charAt(++d)!=="-"&&d!=u.length;);var b=u.substring(g,d);if(b!=Number(b)||u.charAt(d)!=="-")throw new Error("Illegal attachments");h.attachments=Number(b)}if(u.charAt(d+1)==="/"){for(var g=d+1;++d;){var w=u.charAt(d);if(w===","||d===u.length)break}h.nsp=u.substring(g,d)}else h.nsp="/";var x=u.charAt(d+1);if(x!==""&&Number(x)==x){for(var g=d+1;++d;){var w=u.charAt(d);if(w==null||Number(w)!=w){--d;break}if(d===u.length)break}h.id=Number(u.substring(g,d+1))}if(u.charAt(++d)){var S=l(u.substr(d));if(_(h.type,S))h.data=S;else throw new Error("invalid payload")}return r("decoded %s as %j",u,h),h}function l(u){try{return JSON.parse(u)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(u){this.reconPack=u,this.buffers=[]}o.prototype.takeBinaryData=function(u){if(this.buffers.push(u),this.buffers.length===this.reconPack.attachments){var d=B.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),d}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function s(u){return{type:e.ERROR,data:"parser error: "+u}}}(cx);var v8={exports:{}},hx={},_8={exports:{}};try{_8.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{_8.exports=!1}var Gre=_8.exports,b8=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),Hre=Gre,Wre=b8,x8=function(e){var r=e.xdomain,i=e.xscheme,B=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!r||Hre))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!i&&B)return new XDomainRequest}catch{}if(!r)try{return new Wre[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},w8={exports:{}},K0={},qre=Object.keys||function(r){var i=[],B=Object.prototype.hasOwnProperty;for(var D in r)B.call(r,D)&&i.push(D);return i},Yre=f8,_P=Object.prototype.toString,Xre=typeof Blob=="function"||typeof Blob<"u"&&_P.call(Blob)==="[object BlobConstructor]",Zre=typeof File=="function"||typeof File<"u"&&_P.call(File)==="[object FileConstructor]",bP=px;function px(e){if(!e||typeof e!="object")return!1;if(Yre(e)){for(var r=0,i=e.length;r<i;r++)if(px(e[r]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Xre&&e instanceof Blob||Zre&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return px(e.toJSON(),!0);for(var B in e)if(Object.prototype.hasOwnProperty.call(e,B)&&px(e[B]))return!0;return!1}var Jre=function(e,r,i){var B=e.byteLength;if(r=r||0,i=i||B,e.slice)return e.slice(r,i);if(r<0&&(r+=B),i<0&&(i+=B),i>B&&(i=B),r>=B||r>=i||B===0)return new ArrayBuffer(0);for(var D=new Uint8Array(e),c=new Uint8Array(i-r),m=r,a=0;m<i;m++,a++)c[a]=D[m];return c.buffer},Kre=Qre;function Qre(e,r,i){var B=!1;return i=i||eie,D.count=e,e===0?r():D;function D(c,m){if(D.count<=0)throw new Error("after called too many times");--D.count,c?(B=!0,r(c),r=i):D.count===0&&!B&&r(null,m)}}function eie(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Fm=String.fromCharCode;function xP(e){for(var r=[],i=0,B=e.length,D,c;i<B;)D=e.charCodeAt(i++),D>=55296&&D<=56319&&i<B?(c=e.charCodeAt(i++),(c&64512)==56320?r.push(((D&1023)<<10)+(c&1023)+65536):(r.push(D),i--)):r.push(D);return r}function tie(e){for(var r=e.length,i=-1,B,D="";++i<r;)B=e[i],B>65535&&(B-=65536,D+=Fm(B>>>10&1023|55296),B=56320|B&1023),D+=Fm(B);return D}function wP(e,r){if(e>=55296&&e<=57343){if(r)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function k8(e,r){return Fm(e>>r&63|128)}function aie(e,r){if(!(e&4294967168))return Fm(e);var i="";return e&4294965248?e&4294901760?e&4292870144||(i=Fm(e>>18&7|240),i+=k8(e,12),i+=k8(e,6)):(wP(e,r)||(e=65533),i=Fm(e>>12&15|224),i+=k8(e,6)):i=Fm(e>>6&31|192),i+=Fm(e&63|128),i}function nie(e,r){r=r||{};for(var i=r.strict!==!1,B=xP(e),D=B.length,c=-1,m,a="";++c<D;)m=B[c],a+=aie(m,i);return a}function Dg(){if(Lm>=mx)throw Error("Invalid byte index");var e=fx[Lm]&255;if(Lm++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function rie(e){var r,i,B,D,c;if(Lm>mx)throw Error("Invalid byte index");if(Lm==mx)return!1;if(r=fx[Lm]&255,Lm++,!(r&128))return r;if((r&224)==192){if(i=Dg(),c=(r&31)<<6|i,c>=128)return c;throw Error("Invalid continuation byte")}if((r&240)==224){if(i=Dg(),B=Dg(),c=(r&15)<<12|i<<6|B,c>=2048)return wP(c,e)?c:65533;throw Error("Invalid continuation byte")}if((r&248)==240&&(i=Dg(),B=Dg(),D=Dg(),c=(r&7)<<18|i<<12|B<<6|D,c>=65536&&c<=1114111))return c;throw Error("Invalid UTF-8 detected")}var fx,mx,Lm;function iie(e,r){r=r||{};var i=r.strict!==!1;fx=xP(e),mx=fx.length,Lm=0;for(var B=[],D;(D=rie(i))!==!1;)B.push(D);return tie(B)}var oie={version:"2.1.2",encode:nie,decode:iie},gx={},kP;function sie(){return kP||(kP=1,function(e){gx.encode=function(r){var i=new Uint8Array(r),B,D=i.length,c="";for(B=0;B<D;B+=3)c+=e[i[B]>>2],c+=e[(i[B]&3)<<4|i[B+1]>>4],c+=e[(i[B+1]&15)<<2|i[B+2]>>6],c+=e[i[B+2]&63];return D%3===2?c=c.substring(0,c.length-1)+"=":D%3===1&&(c=c.substring(0,c.length-2)+"=="),c},gx.decode=function(r){var i=r.length*.75,B=r.length,D,c=0,m,a,y,f;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);var n=new ArrayBuffer(i),v=new Uint8Array(n);for(D=0;D<B;D+=4)m=e.indexOf(r[D]),a=e.indexOf(r[D+1]),y=e.indexOf(r[D+2]),f=e.indexOf(r[D+3]),v[c++]=m<<2|a>>4,v[c++]=(a&15)<<4|y>>2,v[c++]=(y&3)<<6|f&63;return n}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),gx}var C8,CP;function lie(){if(CP)return C8;CP=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,r=function(){try{var a=new Blob(["hi"]);return a.size===2}catch{return!1}}(),i=r&&function(){try{var a=new Blob([new Uint8Array([1,2])]);return a.size===2}catch{return!1}}(),B=e&&e.prototype.append&&e.prototype.getBlob;function D(a){return a.map(function(y){if(y.buffer instanceof ArrayBuffer){var f=y.buffer;if(y.byteLength!==f.byteLength){var n=new Uint8Array(y.byteLength);n.set(new Uint8Array(f,y.byteOffset,y.byteLength)),f=n.buffer}return f}return y})}function c(a,y){y=y||{};var f=new e;return D(a).forEach(function(n){f.append(n)}),y.type?f.getBlob(y.type):f.getBlob()}function m(a,y){return new Blob(D(a),y||{})}return typeof Blob<"u"&&(c.prototype=Blob.prototype,m.prototype=Blob.prototype),C8=function(){return r?i?Blob:m:B?c:void 0}(),C8}(function(e){var r=qre,i=bP,B=Jre,D=Kre,c=oie,m;typeof ArrayBuffer<"u"&&(m=sie());var a=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),y=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),f=a||y;e.protocol=3;var n=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=r(n),_={type:"error",data:"parser error"},p=lie();e.encodePacket=function(g,b,w,x){typeof b=="function"&&(x=b,b=!1),typeof w=="function"&&(x=w,w=null);var S=g.data===void 0?void 0:g.data.buffer||g.data;if(typeof ArrayBuffer<"u"&&S instanceof ArrayBuffer)return o(g,b,x);if(typeof p<"u"&&S instanceof p)return u(g,b,x);if(S&&S.base64)return l(g,x);var C=n[g.type];return g.data!==void 0&&(C+=w?c.encode(String(g.data),{strict:!1}):String(g.data)),x(""+C)};function l(g,b){var w="b"+e.packets[g.type]+g.data.data;return b(w)}function o(g,b,w){if(!b)return e.encodeBase64Packet(g,w);var x=g.data,S=new Uint8Array(x),C=new Uint8Array(1+x.byteLength);C[0]=n[g.type];for(var T=0;T<S.length;T++)C[T+1]=S[T];return w(C.buffer)}function s(g,b,w){if(!b)return e.encodeBase64Packet(g,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:g.type,data:x.result},b,!0,w)},x.readAsArrayBuffer(g.data)}function u(g,b,w){if(!b)return e.encodeBase64Packet(g,w);if(f)return s(g,b,w);var x=new Uint8Array(1);x[0]=n[g.type];var S=new p([x.buffer,g.data]);return w(S)}e.encodeBase64Packet=function(g,b){var w="b"+e.packets[g.type];if(typeof p<"u"&&g.data instanceof p){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];b(w+A)},x.readAsDataURL(g.data)}var S;try{S=String.fromCharCode.apply(null,new Uint8Array(g.data))}catch{for(var C=new Uint8Array(g.data),T=new Array(C.length),k=0;k<C.length;k++)T[k]=C[k];S=String.fromCharCode.apply(null,T)}return w+=btoa(S),b(w)},e.decodePacket=function(g,b,w){if(g===void 0)return _;if(typeof g=="string"){if(g.charAt(0)==="b")return e.decodeBase64Packet(g.substr(1),b);if(w&&(g=d(g),g===!1))return _;var S=g.charAt(0);return Number(S)!=S||!v[S]?_:g.length>1?{type:v[S],data:g.substring(1)}:{type:v[S]}}var x=new Uint8Array(g),S=x[0],C=B(g,1);return p&&b==="blob"&&(C=new p([C])),{type:v[S],data:C}};function d(g){try{g=c.decode(g,{strict:!1})}catch{return!1}return g}e.decodeBase64Packet=function(g,b){var w=v[g.charAt(0)];if(!m)return{type:w,data:{base64:!0,data:g.substr(1)}};var x=m.decode(g.substr(1));return b==="blob"&&p&&(x=new p([x])),{type:w,data:x}},e.encodePayload=function(g,b,w){typeof b=="function"&&(w=b,b=null);var x=i(g);if(b&&x)return p&&!f?e.encodePayloadAsBlob(g,w):e.encodePayloadAsArrayBuffer(g,w);if(!g.length)return w("0:");function S(T){return T.length+":"+T}function C(T,k){e.encodePacket(T,x?b:!1,!1,function(A){k(null,S(A))})}h(g,C,function(T,k){return w(k.join(""))})};function h(g,b,w){for(var x=new Array(g.length),S=D(g.length,w),C=function(k,A,E){b(A,function(M,I){x[k]=I,E(M,x)})},T=0;T<g.length;T++)C(T,g[T],S)}e.decodePayload=function(g,b,w){if(typeof g!="string")return e.decodePayloadAsBinary(g,b,w);typeof b=="function"&&(w=b,b=null);var x;if(g==="")return w(_,0,1);for(var S="",C,T,k=0,A=g.length;k<A;k++){var E=g.charAt(k);if(E!==":"){S+=E;continue}if(S===""||S!=(C=Number(S))||(T=g.substr(k+1,C),S!=T.length))return w(_,0,1);if(T.length){if(x=e.decodePacket(T,b,!1),_.type===x.type&&_.data===x.data)return w(_,0,1);var M=w(x,k+C,A);if(M===!1)return}k+=C,S=""}if(S!=="")return w(_,0,1)},e.encodePayloadAsArrayBuffer=function(g,b){if(!g.length)return b(new ArrayBuffer(0));function w(x,S){e.encodePacket(x,!0,!0,function(C){return S(null,C)})}h(g,w,function(x,S){var C=S.reduce(function(A,E){var M;return typeof E=="string"?M=E.length:M=E.byteLength,A+M.toString().length+M+2},0),T=new Uint8Array(C),k=0;return S.forEach(function(A){var E=typeof A=="string",M=A;if(E){for(var z=new Uint8Array(A.length),I=0;I<A.length;I++)z[I]=A.charCodeAt(I);M=z.buffer}E?T[k++]=0:T[k++]=1;for(var N=M.byteLength.toString(),I=0;I<N.length;I++)T[k++]=parseInt(N[I]);T[k++]=255;for(var z=new Uint8Array(M),I=0;I<z.length;I++)T[k++]=z[I]}),b(T.buffer)})},e.encodePayloadAsBlob=function(g,b){function w(x,S){e.encodePacket(x,!0,!0,function(C){var T=new Uint8Array(1);if(T[0]=1,typeof C=="string"){for(var k=new Uint8Array(C.length),A=0;A<C.length;A++)k[A]=C.charCodeAt(A);C=k.buffer,T[0]=0}for(var E=C instanceof ArrayBuffer?C.byteLength:C.size,M=E.toString(),I=new Uint8Array(M.length+1),A=0;A<M.length;A++)I[A]=parseInt(M[A]);if(I[M.length]=255,p){var N=new p([T.buffer,I.buffer,C]);S(null,N)}})}h(g,w,function(x,S){return b(new p(S))})},e.decodePayloadAsBinary=function(g,b,w){typeof b=="function"&&(w=b,b=null);for(var x=g,S=[];x.byteLength>0;){for(var C=new Uint8Array(x),T=C[0]===0,k="",A=1;C[A]!==255;A++){if(k.length>310)return w(_,0,1);k+=C[A]}x=B(x,2+k.length),k=parseInt(k);var E=B(x,0,k);if(T)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var M=new Uint8Array(E);E="";for(var A=0;A<M.length;A++)E+=String.fromCharCode(M[A])}S.push(E),x=B(x,k)}var I=S.length;S.forEach(function(N,z){w(e.decodePacket(N,b,!0),z,I)})}})(K0);var S8,SP;function T8(){if(SP)return S8;SP=1;var e=K0,r=Lg;S8=i;function i(B){this.path=B.path,this.hostname=B.hostname,this.port=B.port,this.secure=B.secure,this.query=B.query,this.timestampParam=B.timestampParam,this.timestampRequests=B.timestampRequests,this.readyState="",this.agent=B.agent||!1,this.socket=B.socket,this.enablesXDR=B.enablesXDR,this.withCredentials=B.withCredentials,this.pfx=B.pfx,this.key=B.key,this.passphrase=B.passphrase,this.cert=B.cert,this.ca=B.ca,this.ciphers=B.ciphers,this.rejectUnauthorized=B.rejectUnauthorized,this.forceNode=B.forceNode,this.isReactNative=B.isReactNative,this.extraHeaders=B.extraHeaders,this.localAddress=B.localAddress}return r(i.prototype),i.prototype.onError=function(B,D){var c=new Error(B);return c.type="TransportError",c.description=D,this.emit("error",c),this},i.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},i.prototype.send=function(B){if(this.readyState==="open")this.write(B);else throw new Error("Transport not open")},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(B){var D=e.decodePacket(B,this.socket.binaryType);this.onPacket(D)},i.prototype.onPacket=function(B){this.emit("packet",B)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")},S8}var Rg={};Rg.encode=function(e){var r="";for(var i in e)e.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r},Rg.decode=function(e){for(var r={},i=e.split("&"),B=0,D=i.length;B<D;B++){var c=i[B].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r};var yx=function(e,r){var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e},TP="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),vx=64,EP={},AP=0,Dm=0,MP;function E8(e){var r="";do r=TP[e%vx]+r,e=Math.floor(e/vx);while(e>0);return r}function cie(e){var r=0;for(Dm=0;Dm<e.length;Dm++)r=r*vx+EP[e.charAt(Dm)];return r}function A8(){var e=E8(+new Date);return e!==MP?(AP=0,MP=e):e+"."+E8(AP++)}for(;Dm<vx;Dm++)EP[TP[Dm]]=Dm;A8.encode=E8,A8.decode=cie;var IP=A8,M8={exports:{}},I8={exports:{}},Rv=1e3,Vv=Rv*60,$v=Vv*60,jv=$v*24,die=jv*365.25,uie=function(e,r){r=r||{};var i=typeof e;if(i==="string"&&e.length>0)return hie(e);if(i==="number"&&isNaN(e)===!1)return r.long?fie(e):pie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function hie(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var i=parseFloat(r[1]),B=(r[2]||"ms").toLowerCase();switch(B){case"years":case"year":case"yrs":case"yr":case"y":return i*die;case"days":case"day":case"d":return i*jv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*$v;case"minutes":case"minute":case"mins":case"min":case"m":return i*Vv;case"seconds":case"second":case"secs":case"sec":case"s":return i*Rv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function pie(e){return e>=jv?Math.round(e/jv)+"d":e>=$v?Math.round(e/$v)+"h":e>=Vv?Math.round(e/Vv)+"m":e>=Rv?Math.round(e/Rv)+"s":e+"ms"}function fie(e){return _x(e,jv,"day")||_x(e,$v,"hour")||_x(e,Vv,"minute")||_x(e,Rv,"second")||e+" ms"}function _x(e,r,i){if(!(e<r))return e<r*1.5?Math.floor(e/r)+" "+i:Math.ceil(e/r)+" "+i+"s"}(function(e,r){r=e.exports=B.debug=B.default=B,r.coerce=y,r.disable=m,r.enable=c,r.enabled=a,r.humanize=uie,r.instances=[],r.names=[],r.skips=[],r.formatters={};function i(f){var n=0,v;for(v in f)n=(n<<5)-n+f.charCodeAt(v),n|=0;return r.colors[Math.abs(n)%r.colors.length]}function B(f){var n;function v(){if(v.enabled){var _=v,p=+new Date,l=p-(n||p);_.diff=l,_.prev=n,_.curr=p,n=p;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(h,g){if(h==="%%")return h;u++;var b=r.formatters[g];if(typeof b=="function"){var w=o[u];h=b.call(_,w),o.splice(u,1),u--}return h}),r.formatArgs.call(_,o);var d=v.log||r.log||console.log.bind(console);d.apply(_,o)}}return v.namespace=f,v.enabled=r.enabled(f),v.useColors=r.useColors(),v.color=i(f),v.destroy=D,typeof r.init=="function"&&r.init(v),r.instances.push(v),v}function D(){var f=r.instances.indexOf(this);return f!==-1?(r.instances.splice(f,1),!0):!1}function c(f){r.save(f),r.names=[],r.skips=[];var n,v=(typeof f=="string"?f:"").split(/[\s,]+/),_=v.length;for(n=0;n<_;n++)v[n]&&(f=v[n].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.substr(1)+"$")):r.names.push(new RegExp("^"+f+"$")));for(n=0;n<r.instances.length;n++){var p=r.instances[n];p.enabled=r.enabled(p.namespace)}}function m(){r.enable("")}function a(f){if(f[f.length-1]==="*")return!0;var n,v;for(n=0,v=r.skips.length;n<v;n++)if(r.skips[n].test(f))return!1;for(n=0,v=r.names.length;n<v;n++)if(r.names[n].test(f))return!0;return!1}function y(f){return f instanceof Error?f.stack||f.message:f}})(I8,I8.exports);var mie=I8.exports;(function(e,r){r=e.exports=mie,r.log=D,r.formatArgs=B,r.save=c,r.load=m,r.useColors=i,r.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}r.formatters.j=function(y){try{return JSON.stringify(y)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function B(y){var f=this.useColors;if(y[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+y[0]+(f?"%c ":" ")+"+"+r.humanize(this.diff),!!f){var n="color: "+this.color;y.splice(1,0,n,"color: inherit");var v=0,_=0;y[0].replace(/%[a-zA-Z%]/g,function(p){p!=="%%"&&(v++,p==="%c"&&(_=v))}),y.splice(_,0,n)}}function D(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(y){try{y==null?r.storage.removeItem("debug"):r.storage.debug=y}catch{}}function m(){var y;try{y=r.storage.debug}catch{}return!y&&typeof process<"u"&&"env"in process&&(y=process.env.DEBUG),y}r.enable(m());function a(){try{return window.localStorage}catch{}}})(M8,M8.exports);var bx=M8.exports,PP=T8(),gie=Rg,BP=K0,yie=yx,vie=IP,Op=bx("engine.io-client:polling"),NP=Sf,_ie=function(){var e=x8,r=new e({xdomain:!1});return r.responseType!=null}();function Sf(e){var r=e&&e.forceBase64;(!_ie||r)&&(this.supportsBinary=!1),PP.call(this,e)}yie(Sf,PP),Sf.prototype.name="polling",Sf.prototype.doOpen=function(){this.poll()},Sf.prototype.pause=function(e){var r=this;this.readyState="pausing";function i(){Op("paused"),r.readyState="paused",e()}if(this.polling||!this.writable){var B=0;this.polling&&(Op("we are currently polling - waiting to pause"),B++,this.once("pollComplete",function(){Op("pre-pause polling complete"),--B||i()})),this.writable||(Op("we are currently writing - waiting to pause"),B++,this.once("drain",function(){Op("pre-pause writing complete"),--B||i()}))}else i()},Sf.prototype.poll=function(){Op("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},Sf.prototype.onData=function(e){var r=this;Op("polling got data %s",e);var i=function(B,D,c){if(r.readyState==="opening"&&B.type==="open"&&r.onOpen(),B.type==="close")return r.onClose(),!1;r.onPacket(B)};BP.decodePayload(e,this.socket.binaryType,i),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Op('ignoring poll - transport state "%s"',this.readyState))},Sf.prototype.doClose=function(){var e=this;function r(){Op("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Op("transport open - closing"),r()):(Op("transport not open - deferring close"),this.once("open",r))},Sf.prototype.write=function(e){var r=this;this.writable=!1;var i=function(){r.writable=!0,r.emit("drain")};BP.encodePayload(e,this.supportsBinary,function(B){r.doWrite(B,i)})},Sf.prototype.uri=function(){var e=this.query||{},r=this.secure?"https":"http",i="";this.timestampRequests!==!1&&(e[this.timestampParam]=vie()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=gie.encode(e),this.port&&(r==="https"&&Number(this.port)!==443||r==="http"&&Number(this.port)!==80)&&(i=":"+this.port),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return r+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e};var bie=x8,zP=NP,xie=Lg,wie=yx,P8=bx("engine.io-client:polling-xhr"),kie=b8;w8.exports=Vg,w8.exports.Request=Qd;function OP(){}function Vg(e){if(zP.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var r=location.protocol==="https:",i=location.port;i||(i=r?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==r}}wie(Vg,zP),Vg.prototype.supportsBinary=!0,Vg.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Qd(e)},Vg.prototype.doWrite=function(e,r){var i=typeof e!="string"&&e!==void 0,B=this.request({method:"POST",data:e,isBinary:i}),D=this;B.on("success",r),B.on("error",function(c){D.onError("xhr post error",c)}),this.sendXhr=B},Vg.prototype.doPoll=function(){P8("xhr poll");var e=this.request(),r=this;e.on("data",function(i){r.onData(i)}),e.on("error",function(i){r.onError("xhr poll error",i)}),this.pollXhr=e};function Qd(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(xie(Qd.prototype),Qd.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var r=this.xhr=new bie(e),i=this;try{P8("xhr open %s: %s",this.method,this.uri),r.open(this.method,this.uri,this.async);try{if(this.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(var B in this.extraHeaders)this.extraHeaders.hasOwnProperty(B)&&r.setRequestHeader(B,this.extraHeaders[B])}}catch{}if(this.method==="POST")try{this.isBinary?r.setRequestHeader("Content-type","application/octet-stream"):r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.withCredentials),this.requestTimeout&&(r.timeout=this.requestTimeout),this.hasXDR()?(r.onload=function(){i.onLoad()},r.onerror=function(){i.onError(r.responseText)}):r.onreadystatechange=function(){if(r.readyState===2)try{var D=r.getResponseHeader("Content-Type");(i.supportsBinary&&D==="application/octet-stream"||D==="application/octet-stream; charset=UTF-8")&&(r.responseType="arraybuffer")}catch{}r.readyState===4&&(r.status===200||r.status===1223?i.onLoad():setTimeout(function(){i.onError(typeof r.status=="number"?r.status:0)},0))},P8("xhr data %s",this.data),r.send(this.data)}catch(D){setTimeout(function(){i.onError(D)},0);return}typeof document<"u"&&(this.index=Qd.requestsCount++,Qd.requests[this.index]=this)},Qd.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Qd.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Qd.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Qd.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=OP:this.xhr.onreadystatechange=OP,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Qd.requests[this.index],this.xhr=null}},Qd.prototype.onLoad=function(){var e;try{var r;try{r=this.xhr.getResponseHeader("Content-Type")}catch{}r==="application/octet-stream"||r==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(i){this.onError(i)}e!=null&&this.onData(e)},Qd.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Qd.prototype.abort=function(){this.cleanup()},Qd.requestsCount=0,Qd.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",FP);else if(typeof addEventListener=="function"){var Cie="onpagehide"in kie?"pagehide":"unload";addEventListener(Cie,FP,!1)}}function FP(){for(var e in Qd.requests)Qd.requests.hasOwnProperty(e)&&Qd.requests[e].abort()}var Sie=w8.exports,B8=NP,Tie=yx,LP=b8,Eie=$g,Aie=/\n/g,Mie=/\\n/g,xx;function Iie(){}function $g(e){B8.call(this,e),this.query=this.query||{},xx||(xx=LP.___eio=LP.___eio||[]),this.index=xx.length;var r=this;xx.push(function(i){r.onData(i)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){r.script&&(r.script.onerror=Iie)},!1)}Tie($g,B8),$g.prototype.supportsBinary=!1,$g.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),B8.prototype.doClose.call(this)},$g.prototype.doPoll=function(){var e=this,r=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),r.async=!0,r.src=this.uri(),r.onerror=function(D){e.onError("jsonp poll error",D)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(r,i):(document.head||document.body).appendChild(r),this.script=r;var B=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);B&&setTimeout(function(){var D=document.createElement("iframe");document.body.appendChild(D),document.body.removeChild(D)},100)},$g.prototype.doWrite=function(e,r){var i=this;if(!this.form){var B=document.createElement("form"),D=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index,m;B.className="socketio",B.style.position="absolute",B.style.top="-1000px",B.style.left="-1000px",B.target=c,B.method="POST",B.setAttribute("accept-charset","utf-8"),D.name="d",B.appendChild(D),document.body.appendChild(B),this.form=B,this.area=D}this.form.action=this.uri();function a(){y(),r()}function y(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(n){i.onError("jsonp polling iframe removal error",n)}try{var f='<iframe src="javascript:0" name="'+i.iframeId+'">';m=document.createElement(f)}catch{m=document.createElement("iframe"),m.name=i.iframeId,m.src="javascript:0"}m.id=i.iframeId,i.form.appendChild(m),i.iframe=m}y(),e=e.replace(Mie,`\\
|
|
19
|
-
`),this.area.value=e.replace(Aie,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&a()}:this.iframe.onload=a};const Pie=gre(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var N8=T8(),Bie=K0,Nie=Rg,zie=yx,Oie=IP,Fie=bx("engine.io-client:websocket"),wx,z8;if(typeof WebSocket<"u"?wx=WebSocket:typeof self<"u"&&(wx=self.WebSocket||self.MozWebSocket),typeof window>"u")try{z8=Pie}catch{}var jg=wx||z8,Lie=qh;function qh(e){var r=e&&e.forceBase64;r&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=wx&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(jg=z8),N8.call(this,e)}zie(qh,N8),qh.prototype.name="websocket",qh.prototype.supportsBinary=!0,qh.prototype.doOpen=function(){if(this.check()){var e=this.uri(),r=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?r?new jg(e,r):new jg(e):new jg(e,r,i)}catch(B){return this.emit("error",B)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},qh.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(r){e.onData(r.data)},this.ws.onerror=function(r){e.onError("websocket error",r)}},qh.prototype.write=function(e){var r=this;this.writable=!1;for(var i=e.length,B=0,D=i;B<D;B++)(function(m){Bie.encodePacket(m,r.supportsBinary,function(a){if(!r.usingBrowserWebSocket){var y={};if(m.options&&(y.compress=m.options.compress),r.perMessageDeflate){var f=typeof a=="string"?Buffer.byteLength(a):a.length;f<r.perMessageDeflate.threshold&&(y.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(a):r.ws.send(a,y)}catch{Fie("websocket closed before onclose event")}--i||c()})})(e[B]);function c(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}},qh.prototype.onClose=function(){N8.prototype.onClose.call(this)},qh.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},qh.prototype.uri=function(){var e=this.query||{},r=this.secure?"wss":"ws",i="";this.port&&(r==="wss"&&Number(this.port)!==443||r==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Oie()),this.supportsBinary||(e.b64=1),e=Nie.encode(e),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return r+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e},qh.prototype.check=function(){return!!jg&&!("__initialize"in jg&&this.name===qh.prototype.name)};var Die=x8,Rie=Sie,Vie=Eie,$ie=Lie;hx.polling=jie,hx.websocket=$ie;function jie(e){var r,i=!1,B=!1,D=e.jsonp!==!1;if(typeof location<"u"){var c=location.protocol==="https:",m=location.port;m||(m=c?443:80),i=e.hostname!==location.hostname||m!==e.port,B=e.secure!==c}if(e.xdomain=i,e.xscheme=B,r=new Die(e),"open"in r&&!e.forceJSONP)return new Rie(e);if(!D)throw new Error("JSONP disabled");return new Vie(e)}var Uie=[].indexOf,DP=function(e,r){if(Uie)return e.indexOf(r);for(var i=0;i<e.length;++i)if(e[i]===r)return i;return-1},Gie=hx,Hie=Lg,Id=bx("engine.io-client:socket"),Wie=DP,RP=K0,VP=pP,qie=Rg,Yie=hl;function hl(e,r){if(!(this instanceof hl))return new hl(e,r);r=r||{},e&&typeof e=="object"&&(r=e,e=null),e?(e=VP(e),r.hostname=e.host,r.secure=e.protocol==="https"||e.protocol==="wss",r.port=e.port,e.query&&(r.query=e.query)):r.host&&(r.hostname=VP(r.host).host),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.agent=r.agent||!1,this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=r.query||{},typeof this.query=="string"&&(this.query=qie.decode(this.query)),this.upgrade=r.upgrade!==!1,this.path=(r.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!r.forceJSONP,this.jsonp=r.jsonp!==!1,this.forceBase64=!!r.forceBase64,this.enablesXDR=!!r.enablesXDR,this.withCredentials=r.withCredentials!==!1,this.timestampParam=r.timestampParam||"t",this.timestampRequests=r.timestampRequests,this.transports=r.transports||["polling","websocket"],this.transportOptions=r.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=r.policyPort||843,this.rememberUpgrade=r.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=r.onlyBinaryUpgrades,this.perMessageDeflate=r.perMessageDeflate!==!1?r.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=r.pfx||void 0,this.key=r.key||void 0,this.passphrase=r.passphrase||void 0,this.cert=r.cert||void 0,this.ca=r.ca||void 0,this.ciphers=r.ciphers||void 0,this.rejectUnauthorized=r.rejectUnauthorized===void 0?!0:r.rejectUnauthorized,this.forceNode=!!r.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(r.extraHeaders&&Object.keys(r.extraHeaders).length>0&&(this.extraHeaders=r.extraHeaders),r.localAddress&&(this.localAddress=r.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}hl.priorWebsocketSuccess=!1,Hie(hl.prototype),hl.protocol=RP.protocol,hl.Socket=hl,hl.Transport=T8(),hl.transports=hx,hl.parser=K0,hl.prototype.createTransport=function(e){Id('creating transport "%s"',e);var r=Xie(this.query);r.EIO=RP.protocol,r.transport=e;var i=this.transportOptions[e]||{};this.id&&(r.sid=this.id);var B=new Gie[e]({query:r,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return B};function Xie(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return r}hl.prototype.open=function(){var e;if(this.rememberUpgrade&&hl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var r=this;setTimeout(function(){r.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},hl.prototype.setTransport=function(e){Id("setting transport %s",e.name);var r=this;this.transport&&(Id("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){r.onDrain()}).on("packet",function(i){r.onPacket(i)}).on("error",function(i){r.onError(i)}).on("close",function(){r.onClose("transport close")})},hl.prototype.probe=function(e){Id('probing transport "%s"',e);var r=this.createTransport(e,{probe:1}),i=!1,B=this;hl.priorWebsocketSuccess=!1;function D(){if(B.onlyBinaryUpgrades){var v=!this.supportsBinary&&B.transport.supportsBinary;i=i||v}i||(Id('probe transport "%s" opened',e),r.send([{type:"ping",data:"probe"}]),r.once("packet",function(_){if(!i)if(_.type==="pong"&&_.data==="probe"){if(Id('probe transport "%s" pong',e),B.upgrading=!0,B.emit("upgrading",r),!r)return;hl.priorWebsocketSuccess=r.name==="websocket",Id('pausing current transport "%s"',B.transport.name),B.transport.pause(function(){i||B.readyState!=="closed"&&(Id("changing transport and sending upgrade packet"),n(),B.setTransport(r),r.send([{type:"upgrade"}]),B.emit("upgrade",r),r=null,B.upgrading=!1,B.flush())})}else{Id('probe transport "%s" failed',e);var p=new Error("probe error");p.transport=r.name,B.emit("upgradeError",p)}}))}function c(){i||(i=!0,n(),r.close(),r=null)}function m(v){var _=new Error("probe error: "+v);_.transport=r.name,c(),Id('probe transport "%s" failed because of error: %s',e,v),B.emit("upgradeError",_)}function a(){m("transport closed")}function y(){m("socket closed")}function f(v){r&&v.name!==r.name&&(Id('"%s" works - aborting "%s"',v.name,r.name),c())}function n(){r.removeListener("open",D),r.removeListener("error",m),r.removeListener("close",a),B.removeListener("close",y),B.removeListener("upgrading",f)}r.once("open",D),r.once("error",m),r.once("close",a),this.once("close",y),this.once("upgrading",f),r.open()},hl.prototype.onOpen=function(){if(Id("socket open"),this.readyState="open",hl.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Id("starting upgrade probes");for(var e=0,r=this.upgrades.length;e<r;e++)this.probe(this.upgrades[e])}},hl.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Id('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var r=new Error("server error");r.code=e.data,this.onError(r);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Id('packet received with socket readyState "%s"',this.readyState)},hl.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},hl.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var r=this;r.pingTimeoutTimer=setTimeout(function(){r.readyState!=="closed"&&r.onClose("ping timeout")},e||r.pingInterval+r.pingTimeout)},hl.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Id("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},hl.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},hl.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},hl.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Id("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},hl.prototype.write=hl.prototype.send=function(e,r,i){return this.sendPacket("message",e,r,i),this},hl.prototype.sendPacket=function(e,r,i,B){if(typeof r=="function"&&(B=r,r=void 0),typeof i=="function"&&(B=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var D={type:e,data:r,options:i};this.emit("packetCreate",D),this.writeBuffer.push(D),B&&this.once("flush",B),this.flush()}},hl.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?B():r()}):this.upgrading?B():r()}function r(){e.onClose("forced close"),Id("socket closing - telling transport to close"),e.transport.close()}function i(){e.removeListener("upgrade",i),e.removeListener("upgradeError",i),r()}function B(){e.once("upgrade",i),e.once("upgradeError",i)}return this},hl.prototype.onError=function(e){Id("socket error %j",e),hl.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},hl.prototype.onClose=function(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Id('socket close with reason: "%s"',e);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,r),i.writeBuffer=[],i.prevBufferLen=0}},hl.prototype.filterUpgrades=function(e){for(var r=[],i=0,B=e.length;i<B;i++)~Wie(this.transports,e[i])&&r.push(e[i]);return r},v8.exports=Yie,v8.exports.parser=K0;var Zie=v8.exports,$P={exports:{}},Jie=Kie;function Kie(e,r){var i=[];r=r||0;for(var B=r||0;B<e.length;B++)i[B-r]=e[B];return i}var jP=Qie;function Qie(e,r,i){return e.on(r,i),{destroy:function(){e.removeListener(r,i)}}}var UP=[].slice,GP=function(e,r){if(typeof r=="string"&&(r=e[r]),typeof r!="function")throw new Error("bind() requires a function");var i=UP.call(arguments,2);return function(){return r.apply(e,i.concat(UP.call(arguments)))}};(function(e,r){var i=cx,B=Lg,D=Jie,c=jP,m=GP,a=lx("socket.io-client:socket"),y=Rg,f=bP;e.exports=_;var n={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=B.prototype.emit;function _(p,l,o){this.io=p,this.nsp=l,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}B(_.prototype),_.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[c(p,"open",m(this,"onopen")),c(p,"packet",m(this,"onpacket")),c(p,"close",m(this,"onclose"))]}},_.prototype.open=_.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},_.prototype.send=function(){var p=D(arguments);return p.unshift("message"),this.emit.apply(this,p),this},_.prototype.emit=function(p){if(n.hasOwnProperty(p))return v.apply(this,arguments),this;var l=D(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:f(l))?i.BINARY_EVENT:i.EVENT,data:l};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof l[l.length-1]=="function"&&(a("emitting packet with ack id %d",this.ids),this.acks[this.ids]=l.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},_.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},_.prototype.onopen=function(){if(a("transport is open - connecting"),this.nsp!=="/")if(this.query){var p=typeof this.query=="object"?y.encode(this.query):this.query;a("sending connect packet with query %s",p),this.packet({type:i.CONNECT,query:p})}else this.packet({type:i.CONNECT})},_.prototype.onclose=function(p){a("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},_.prototype.onpacket=function(p){var l=p.nsp===this.nsp,o=p.type===i.ERROR&&p.nsp==="/";if(!(!l&&!o))switch(p.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(p);break;case i.BINARY_EVENT:this.onevent(p);break;case i.ACK:this.onack(p);break;case i.BINARY_ACK:this.onack(p);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",p.data);break}},_.prototype.onevent=function(p){var l=p.data||[];a("emitting event %j",l),p.id!=null&&(a("attaching ack callback to event"),l.push(this.ack(p.id))),this.connected?v.apply(this,l):this.receiveBuffer.push(l)},_.prototype.ack=function(p){var l=this,o=!1;return function(){if(!o){o=!0;var s=D(arguments);a("sending ack %j",s),l.packet({type:f(s)?i.BINARY_ACK:i.ACK,id:p,data:s})}}},_.prototype.onack=function(p){var l=this.acks[p.id];typeof l=="function"?(a("calling ack %s with %j",p.id,p.data),l.apply(this,p.data),delete this.acks[p.id]):a("bad ack %s",p.id)},_.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},_.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)v.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},_.prototype.ondisconnect=function(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},_.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},_.prototype.close=_.prototype.disconnect=function(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},_.prototype.compress=function(p){return this.flags.compress=p,this},_.prototype.binary=function(p){return this.flags.binary=p,this}})($P);var HP=$P.exports,eoe=Ug;function Ug(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ug.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*e);e=Math.floor(r*10)&1?e+i:e-i}return Math.min(e,this.max)|0},Ug.prototype.reset=function(){this.attempts=0},Ug.prototype.setMin=function(e){this.ms=e},Ug.prototype.setMax=function(e){this.max=e},Ug.prototype.setJitter=function(e){this.jitter=e};var toe=Zie,aoe=HP,noe=Lg,roe=cx,Rm=jP,Gg=GP,Bu=lx("socket.io-client:manager"),WP=DP,ioe=eoe,qP=Object.prototype.hasOwnProperty,YP=Yl;function Yl(e,r){if(!(this instanceof Yl))return new Yl(e,r);e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.nsps={},this.subs=[],this.opts=r,this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor(r.randomizationFactor||.5),this.backoff=new ioe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=r.parser||roe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=r.autoConnect!==!1,this.autoConnect&&this.open()}Yl.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)qP.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},Yl.prototype.updateSocketIds=function(){for(var e in this.nsps)qP.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},Yl.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},noe(Yl.prototype),Yl.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},Yl.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},Yl.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},Yl.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},Yl.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},Yl.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},Yl.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},Yl.prototype.open=Yl.prototype.connect=function(e,r){if(Bu("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Bu("opening %s",this.uri),this.engine=toe(this.uri,this.opts);var i=this.engine,B=this;this.readyState="opening",this.skipReconnect=!1;var D=Rm(i,"open",function(){B.onopen(),e&&e()}),c=Rm(i,"error",function(y){if(Bu("connect_error"),B.cleanup(),B.readyState="closed",B.emitAll("connect_error",y),e){var f=new Error("Connection error");f.data=y,e(f)}else B.maybeReconnectOnOpen()});if(this._timeout!==!1){var m=this._timeout;Bu("connect attempt will timeout after %d",m),m===0&&D.destroy();var a=setTimeout(function(){Bu("connect attempt timed out after %d",m),D.destroy(),i.close(),i.emit("error","timeout"),B.emitAll("connect_timeout",m)},m);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(D),this.subs.push(c),this},Yl.prototype.onopen=function(){Bu("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Rm(e,"data",Gg(this,"ondata"))),this.subs.push(Rm(e,"ping",Gg(this,"onping"))),this.subs.push(Rm(e,"pong",Gg(this,"onpong"))),this.subs.push(Rm(e,"error",Gg(this,"onerror"))),this.subs.push(Rm(e,"close",Gg(this,"onclose"))),this.subs.push(Rm(this.decoder,"decoded",Gg(this,"ondecoded")))},Yl.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Yl.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Yl.prototype.ondata=function(e){this.decoder.add(e)},Yl.prototype.ondecoded=function(e){this.emit("packet",e)},Yl.prototype.onerror=function(e){Bu("error",e),this.emitAll("error",e)},Yl.prototype.socket=function(e,r){var i=this.nsps[e];if(!i){i=new aoe(this,e,r),this.nsps[e]=i;var B=this;i.on("connecting",D),i.on("connect",function(){i.id=B.generateId(e)}),this.autoConnect&&D()}function D(){~WP(B.connecting,i)||B.connecting.push(i)}return i},Yl.prototype.destroy=function(e){var r=WP(this.connecting,e);~r&&this.connecting.splice(r,1),!this.connecting.length&&this.close()},Yl.prototype.packet=function(e){Bu("writing packet %j",e);var r=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),r.encoding?r.packetBuffer.push(e):(r.encoding=!0,this.encoder.encode(e,function(i){for(var B=0;B<i.length;B++)r.engine.write(i[B],e.options);r.encoding=!1,r.processPacketQueue()}))},Yl.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},Yl.prototype.cleanup=function(){Bu("cleanup");for(var e=this.subs.length,r=0;r<e;r++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Yl.prototype.close=Yl.prototype.disconnect=function(){Bu("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Yl.prototype.onclose=function(e){Bu("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},Yl.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Bu("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var r=this.backoff.duration();Bu("will wait %dms before reconnect attempt",r),this.reconnecting=!0;var i=setTimeout(function(){e.skipReconnect||(Bu("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(B){B?(Bu("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",B.data)):(Bu("reconnect success"),e.onreconnect())}))},r);this.subs.push({destroy:function(){clearTimeout(i)}})}},Yl.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,r){var i=Are,B=cx,D=YP,c=lx("socket.io-client");e.exports=r=a;var m=r.managers={};function a(y,f){typeof y=="object"&&(f=y,y=void 0),f=f||{};var n=i(y),v=n.source,_=n.id,p=n.path,l=m[_]&&p in m[_].nsps,o=f.forceNew||f["force new connection"]||f.multiplex===!1||l,s;return o?(c("ignoring socket cache for %s",v),s=D(v,f)):(m[_]||(c("new io instance for %s",v),m[_]=D(v,f)),s=m[_]),n.query&&!f.query&&(f.query=n.query),s.socket(n.path,f)}r.protocol=B.protocol,r.connect=a,r.Manager=YP,r.Socket=HP}(c8,c8.exports);var ooe=c8.exports;const soe=l8(ooe);var O8={exports:{}};function F8(){}F8.prototype={on:function(e,r,i){var B=this.e||(this.e={});return(B[e]||(B[e]=[])).push({fn:r,ctx:i}),this},once:function(e,r,i){var B=this;function D(){B.off(e,D),r.apply(i,arguments)}return D._=r,this.on(e,D,i)},emit:function(e){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),B=0,D=i.length;for(B;B<D;B++)i[B].fn.apply(i[B].ctx,r);return this},off:function(e,r){var i=this.e||(this.e={}),B=i[e],D=[];if(B&&r)for(var c=0,m=B.length;c<m;c++)B[c].fn!==r&&B[c].fn._!==r&&D.push(B[c]);return D.length?i[e]=D:delete i[e],this}},O8.exports=F8,O8.exports.TinyEmitter=F8;var loe=O8.exports,coe=loe,doe=new coe;const Yh=l8(doe),uoe="https://golstats-live-server-sockets.azurewebsites.net";let XP="",Xh=soe(uoe,{autoConnect:!1,transports:["websocket"]});function L8(){return Xh}Xh.on("connect",()=>{Yh.emit("socket-connected")}),Xh.on("disconnect",()=>{Yh.emit("socket-disconnected")}),Xh.on("reconnect",()=>{Yh.emit("socket-reconnected")});function D8(){Xh.disconnected&&Xh.connect()}function R8(){Xh.connected&&(V8(),Xh.disconnect())}function ZP(e){Xh.connected&&Xh.emit("subscribe",{channel:e})}function V8(){Xh.connected&&XP&&Xh.emit("unsubscribe",{channel:XP})}const Vfa="",$i=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},JP=$i({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--white-space":i.whiteSpace,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function D(){r("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:D},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-bb7f8e4d"]]),hoe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},poe={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":y.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),D=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),y=t.computed(()=>D.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==D.value&&(D.value=p)},{immediate:!0}),t.watch(D,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,u=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${u}px`}function n(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function v(){D.value=!D.value,r("update:modelValue",D.value)}function _(){D.value=!1,r("update:modelValue",D.value)}return t.onMounted(()=>{t.nextTick(()=>{n()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[D.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:v},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,D.value]])]),_:3})],4)],64))}},foe=hoe(poe,[["__scopeId","data-v-2f344053"]]),jfa="",moe=(e=>(t.pushScopeId("data-v-2a796a00"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),goe={class:"button__text"},yoe={key:0},voe={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_oe=["fill"],boe=$i({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const r=e,i=t.computed(()=>({"--height":r.height,"--width":r.width,"--text-font-family":r.textFontFamily,"--text-font-size":r.textFontSize,"--background-color":r.backgroundColor,"--border-radius":r.borderRadius,"--border-color":r.isActive?r.borderColorActive:r.borderColor,"--border-width":r.borderWidth,"--padding":r.padding,"--font-color":r.fontColor})),B=t.computed(()=>({"--info-background-color":r.infoBackgroundColor,"--info-border-color":r.infoBorderColor,"--info-border-radius":r.infoBorderRadius,"--info-font-family":r.infoFontFamily,"--info-font-size":r.infoFontSize,"--info-font-color":r.infoFontColor,"--info-height":r.infoHeight,"--info-width":r.infoWidth}));return(D,c)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[moe,t.createElementVNode("div",goe,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(B.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",yoe,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",voe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,_oe)]))],2)],4))}},[["__scopeId","data-v-2a796a00"]]),xoe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},woe={key:1},koe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Coe=["fill"],Soe={key:0,class:"checkbox__teams"},Toe={class:"checkbox__teams__logo"},Eoe=["src"],Aoe={class:"checkbox__teams__logo"},Moe=["src"],Ioe={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",woe,[(t.openBlock(),t.createElementBlock("svg",koe,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Coe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Soe,[t.createElementVNode("div",Toe,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,Eoe)]),t.createElementVNode("div",Aoe,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,Moe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},Hg=xoe(Ioe,[["__scopeId","data-v-bcf3bcc6"]]),Hfa="",kx=e=>(t.pushScopeId("data-v-ce334c17"),e=e(),t.popScopeId(),e),Poe={class:"details__header"},Boe=kx(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Noe={class:"details__header__checkbox"},zoe={class:"details__body"},Ooe={class:"details__body__playing-as"},Foe=["onClick"],Loe={class:"details__header"},Doe=kx(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Roe={class:"details__header__checkbox"},Voe={class:"details__body"},$oe=kx(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),joe={class:"details__body__game-section"},Uoe=["onClick"],Goe={class:"details__body"},Hoe=kx(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Woe={class:"details__body__game-section"},qoe=["onClick"],Yoe=$i({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"2321d9a1":e.buttonsBackgroundColor,ccabcbfc:e.buttonsTextColor,"05a0a474":e.buttonsBorderWidth,"07cea13a":e.buttonsBorderColor,"67fac807":e.buttonsBackgroundColorActive,"728f7ba8":e.buttonsTextColorActive,"12a02c6c":e.buttonsBorderWidthActive,"5392776e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Poe,[Boe,t.createElementVNode("div",Noe,[t.createVNode(t.unref(Hg),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",zoe,[t.createElementVNode("div",Ooe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Foe))),128))])]),t.createElementVNode("div",Loe,[Doe,t.createElementVNode("div",Roe,[t.createVNode(t.unref(Hg),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Voe,[$oe,t.createElementVNode("div",joe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Uoe))),128))])]),t.createElementVNode("div",Goe,[Hoe,t.createElementVNode("div",Woe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,qoe))),128))])])],4))}},[["__scopeId","data-v-ce334c17"]]),Xoe={class:"statistics-filter-button"},Zoe={__name:"StatisticsFilterButton",setup(e){const r=t.ref(!1);return(i,B)=>(t.openBlock(),t.createElementBlock("div",Xoe,[t.createVNode(t.unref(foe),{modelValue:r.value,"onUpdate:modelValue":B[0]||(B[0]=D=>r.value=D),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(boe,{text:"Filtros","is-active":r.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(Yoe)]),_:1},8,["modelValue"])]))}},qfa="",KP=$i({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{D()},{immediate:!0});function D(){B.value&&(B.value.checked=i.modelValue)}function c(m){r("update:modelValue",m.target.checked)}return t.onMounted(()=>{D()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),Joe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Koe=["name","value","checked"],Qoe={class:"radio-button__radio"},ese={class:"radio-button__radio__circle"},tse={class:"radio-button__label-logo"},ase={class:"radio-button__label-logo__label"},nse={key:0,class:"radio-button__label-logo__logo"},rse=["src"],ise={__name:"GSC-RadioButton",props:{label:{type:String,default:"Label"},labelColor:{type:String,default:"white"},labelFontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},name:{type:String,default:"name"},value:{type:[String,Number],required:!0},modelValue:{type:[String,Number],default:""},logoUrl:{type:String,default:""},radioPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},radioHeightAndWidth:{type:String,default:"16px"},radioBorderWidth:{type:String,default:"1px"},radioBorderColor:{type:String,default:"#FFFFFF"},radioCircleColor:{type:String,default:"#CBEE6B"},radioCircleHeightAndWidth:{type:String,default:"8px"},logoHeightAndWidth:{type:String,default:"24px"}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({"09b3bbfe":e.radioHeightAndWidth,b2c41162:e.radioBorderWidth,b4f20e28:e.radioBorderColor,"999f2a9e":e.radioCircleHeightAndWidth,"74ee76c8":e.radioCircleColor,eb045952:e.labelFontFamily,"61eeb8b4":e.labelFontSize,"39a863c2":e.labelColor,"0b5aff5e":e.logoHeightAndWidth}));const B=t.ref(!1);t.watch(()=>i.modelValue,()=>{B.value=i.modelValue===i.value},{immediate:!0});function D(){r("update:modelValue",i.value)}function c(){r("update:modelValue",i.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-button",e.radioPosition]),onClick:c},[t.createElementVNode("input",{type:"radio",name:e.name,value:e.value,checked:B.value,onInput:D},null,40,Koe),t.createElementVNode("div",Qoe,[t.withDirectives(t.createElementVNode("div",ese,null,512),[[t.vShow,B.value]])]),t.createElementVNode("div",tse,[t.createElementVNode("div",ase,t.toDisplayString(e.label),1),e.logoUrl?(t.openBlock(),t.createElementBlock("div",nse,[t.createElementVNode("img",{src:e.logoUrl,alt:""},null,8,rse)])):t.createCommentVNode("",!0)])],2))}},QP=Joe(ise,[["__scopeId","data-v-10f54cda"]]),eB=navigator.userAgent||navigator.vendor||window.opera;function ose(e,r){let i=Array.isArray(e)&&Array.isArray(r)?e.length===r.length:!1;if(i){for(let B of e)if(!r.includes(B)){i=!1;break}}return i}function Wg(e){return e.reduce((r,i,B)=>(r[i]=B,r),{})}function tB(e,r,i){const B={statistics:r.statistics.value||0,playingAs:[...r.playingAs],matchResult:[...r.matchResult],sections:r.firstHalf.concat(r.secondHalf),requiresPlaysFiltering:r.requiresPlaysFiltering||!0};return B.teamId=i,B}function Vm(e){return typeof e=="number"?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function sse(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(eB)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(eB.substr(0,4))}function aB(e){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${e}.png`}const Xfa="",lse={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...eh("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...ed("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e=this.teamTypeSelected==="both"?["#cbee6b","#0033C5"]:this.teamTypeSelected==="homeTeam"?["#cbee6b"]:["#0033C5"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(r,i)=>r+" - <strong>"+i.w.globals.series[i.seriesIndex][i.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:r=>this.showPostMatchData?`${r} :`:`${r} (promedio)`},formatter:r=>this.showPostMatchData?Number(r):r},{title:{formatter:r=>this.showPostMatchData?`${r} :`:`${r} (promedio)`},formatter:r=>this.showPostMatchData?Number(r):r},{title:{formatter:r=>r}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?this.dataLive.map((r,i)=>({name:this.teamAcronyms[i],data:r})):this.dataStats.map((r,i)=>({name:this.teamAcronyms[i],data:r}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>Vm(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>Vm(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>Vm(e))]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]},dataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,r)=>(e.push(r),e),[0])]},xaxisCategories(){return this.isAccumulatedType?["0'","15'","30'","45'","60'","75'","90'"]:["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return this.typeId===1},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){this.idAssetSelected===7&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,r){JSON.stringify(e)!==JSON.stringify(r)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,r)=>(e.push(r),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.8):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.7):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.6):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.5):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),this.idAssetSelected===7&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},cse={class:"chart-trend-live container",ref:"containerChart"};function dse(e,r,i,B,D,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",cse,[(t.openBlock(),t.createBlock(m,{type:"area",options:c.chartOptions,series:c.series,key:c.key+D.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}const use=$i(lse,[["render",dse],["__scopeId","data-v-07792768"]]),hse=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},$8={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},nB=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},rB=$8.setup;$8.setup=rB?(e,r)=>(nB(),rB(e,r)):nB;const pse=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),fse=["src"],mse={key:1,class:"text"},gse=["src"],yse={class:"stats"},vse=pse(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),_se={class:"numstats"},bse={class:"leyend"};function xse(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,fse)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",mse,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,gse)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",yse,[vse,t.createElementVNode("div",_se,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",bse,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const wse=hse($8,[["render",xse],["__scopeId","data-v-fb269a1e"]]),kse={class:"gsc-dropdown__main-container__item-selected"},Cse=["height","width"],Sse=["stroke"],Tse={class:"gsc-dropdown__items-container"},Ese=["onClick"],Ase={key:0,class:"gsc-dropdown__items-footer"},Mse={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function n(p){D.value&&!D.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){m.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",kse,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Sse)],8,Cse))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Tse,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,Ese))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Ase,[t.createVNode(t.unref(wse),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},Zfa="",Ise={class:"card-trend-live__dropdown-category"},Pse={class:"selected-item"},Bse={class:"card-trend-live__body__categories"},Nse={class:"card-trend-live__body__chart"},zse=$i({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:r}){const i=e;let B=null;const D={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},c={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},m=t.ref({}),a=t.ref(null),y=t.ref(0);t.watch(()=>i.data,v=>{v&&v.subcategories&&v.subcategories.length&&(m.value=v.subcategories[0])},{immediate:!0});function f(v){m.value=v,r("update:subcategory-selected",{data:i.data,subcategorySelected:v})}function n(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onUnmounted(()=>{}),(v,_)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:a,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":y.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",Ise,[t.createVNode(t.unref(Mse),t.mergeProps(c,{items:e.data.subcategories,"selected-item":m.value,"default-item-by-prop":{propName:"id",value:m.value.id},onInput:f}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",Pse,t.toDisplayString(p.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,y.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":y.value<=760}])},[t.createElementVNode("div",Bse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(p,l)=>(t.openBlock(),t.createElementBlock("div",{key:l},[t.createVNode(JP,t.mergeProps(D,{text:p.name,"is-active":m.value.id===p.id,onClick:o=>f(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Nse,[(t.openBlock(),t.createBlock(use,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":y.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-d2eb653a"]]),Kfa="",iB=e=>(t.pushScopeId("data-v-55b6125e"),e=e(),t.popScopeId(),e),Ose={class:"trending-live__header__radios"},Fse={class:"trending-live__header__radios__group"},Lse={class:"trending-live__header__switch"},Dse={class:"trending-live__header__switch__control"},Rse=iB(()=>t.createElementVNode("span",null,"Acumulado",-1)),Vse=iB(()=>t.createElementVNode("span",null,"Por periodo",-1)),$se={class:"trending-live__body"},jse=$i({__name:"TrendLive",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"}})}},setup(e){const r=e,i=ex();let B=null;const D=t.ref(!1),c=t.ref("both"),m=t.ref([]),a=t.ref(null),y=t.ref(0),f=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:r.game.homeTeam?`${r.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:r.game.homeTeam?aB(r.game.homeTeam.team_id):""},{label:r.game.awayTeam?`${r.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:r.game.awayTeam?aB(r.game.awayTeam.team_id):""}]),n=t.computed(()=>c.value==="both"?"both":`${c.value==="home"?"home":"visiting"}Team`),v=t.computed(()=>D.value?2:1),_=t.computed(()=>r.game.homeTeam?c.value==="both"?[r.game.homeTeam.team_id,r.game.awayTeam.team_id]:[r.game[`${c.value}Team`].team_id]:[0,0]),p=t.computed(()=>r.game.homeTeam?c.value==="both"?[r.game.homeTeam.acronym,r.game.awayTeam.acronym]:[r.game[`${c.value}Team`].acronym]:[0,0]),l=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);t.watch(()=>i.getters["nextGeneral/arrayFilledDataSortedByPriority"],u=>{m.value.length===0&&(u&&u.length?m.value=u.map((d,h)=>{const g=Object.values(d.subcategories).filter(b=>b.isVisible);return{id:`tL${h}`,...d,subcategories:g,objectGraphProps:{objectSubcategorySelected:g[0],numberCategoryId:g[0].id}}}):m.value=[])},{immediate:!0});function o({data:u,subcategorySelected:d}){u.objectGraphProps.numberCategoryId=d,u.objectGraphProps.objectSubcategorySelected=d}function s(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{s()}),(u,d)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:a,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":y.value<580}])},[t.createElementVNode("div",Ose,[t.createElementVNode("div",Fse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{key:g},[t.createVNode(t.unref(QP),t.mergeProps({modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=b=>c.value=b)},h),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",Lse,[t.createElementVNode("div",Dse,[Rse,t.createVNode(KP,{modelValue:D.value,"onUpdate:modelValue":d[1]||(d[1]=h=>D.value=h)},null,8,["modelValue"]),Vse])])],2),t.createElementVNode("div",$se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:g},[t.createVNode(zse,{data:h,"trend-type-id":v.value,"team-type-selected":n.value,"team-ids":_.value,"team-acronyms":p.value,"trend-types":l.value,"onUpdate:subcategorySelected":o},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-55b6125e"]]),ema="",Use={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Gse=e=>(t.pushScopeId("data-v-49b2380c"),e=e(),t.popScopeId(),e),Hse={class:"custom-progress-bar"},Wse={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},qse=Gse(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),Yse=["d","fill"];function Xse(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Hse,[(t.openBlock(),t.createElementBlock("svg",Wse,[qse,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Yse)]))])}const Zse=$i(Use,[["render",Xse],["__scopeId","data-v-49b2380c"]]),tma="",Jse={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...eh("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Kse=e=>(t.pushScopeId("data-v-054b26d4"),e=e(),t.popScopeId(),e),Qse={class:"custom-progress-bar"},ele={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},tle=Kse(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),ale=["d","fill"];function nle(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Qse,[(t.openBlock(),t.createElementBlock("svg",ele,[tle,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,ale)]))])}const rle=$i(Jse,[["render",nle],["__scopeId","data-v-054b26d4"]]);function oB(e,r){return function(){return e.apply(r,arguments)}}const{toString:ile}=Object.prototype,{getPrototypeOf:j8}=Object,Cx=(e=>r=>{const i=ile.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Fp=e=>(e=e.toLowerCase(),r=>Cx(r)===e),Sx=e=>r=>typeof r===e,{isArray:qg}=Array,Uv=Sx("undefined");function ole(e){return e!==null&&!Uv(e)&&e.constructor!==null&&!Uv(e.constructor)&&_h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sB=Fp("ArrayBuffer");function sle(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&sB(e.buffer),r}const lle=Sx("string"),_h=Sx("function"),lB=Sx("number"),Tx=e=>e!==null&&typeof e=="object",cle=e=>e===!0||e===!1,Ex=e=>{if(Cx(e)!=="object")return!1;const r=j8(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dle=Fp("Date"),ule=Fp("File"),hle=Fp("Blob"),ple=Fp("FileList"),fle=e=>Tx(e)&&_h(e.pipe),mle=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||_h(e.append)&&((r=Cx(e))==="formdata"||r==="object"&&_h(e.toString)&&e.toString()==="[object FormData]"))},gle=Fp("URLSearchParams"),[yle,vle,_le,ble]=["ReadableStream","Request","Response","Headers"].map(Fp),xle=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),qg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function cB(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const Q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dB=e=>!Uv(e)&&e!==Q0;function U8(){const{caseless:e}=dB(this)&&this||{},r={},i=(B,D)=>{const c=e&&cB(r,D)||D;Ex(r[c])&&Ex(B)?r[c]=U8(r[c],B):Ex(B)?r[c]=U8({},B):qg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Gv(arguments[B],i);return r}const wle=(e,r,i,{allOwnKeys:B}={})=>(Gv(r,(D,c)=>{i&&_h(D)?e[c]=oB(D,i):e[c]=D},{allOwnKeys:B}),e),kle=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cle=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Sle=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&j8(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Tle=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},Ele=e=>{if(!e)return null;if(qg(e))return e;let r=e.length;if(!lB(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},Ale=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&j8(Uint8Array)),Mle=(e,r)=>{const B=(e&&e[Symbol.iterator]).call(e);let D;for(;(D=B.next())&&!D.done;){const c=D.value;r.call(e,c[0],c[1])}},Ile=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},Ple=Fp("HTMLFormElement"),Ble=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,B,D){return B.toUpperCase()+D}),uB=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),Nle=Fp("RegExp"),hB=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Gv(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},zle=e=>{hB(e,(r,i)=>{if(_h(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(_h(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Ole=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return qg(e)?B(e):B(String(e).split(r)),i},Fle=()=>{},Lle=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,G8="abcdefghijklmnopqrstuvwxyz",pB="0123456789",fB={DIGIT:pB,ALPHA:G8,ALPHA_DIGIT:G8+G8.toUpperCase()+pB},Dle=(e=16,r=fB.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function Rle(e){return!!(e&&_h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vle=e=>{const r=new Array(10),i=(B,D)=>{if(Tx(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=qg(B)?[]:{};return Gv(B,(m,a)=>{const y=i(m,D+1);!Uv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},$le=Fp("AsyncFunction"),jle=e=>e&&(Tx(e)||_h(e))&&_h(e.then)&&_h(e.catch),mB=((e,r)=>e?setImmediate:r?((i,B)=>(Q0.addEventListener("message",({source:D,data:c})=>{D===Q0&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),Q0.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",_h(Q0.postMessage)),Ule=typeof queueMicrotask<"u"?queueMicrotask.bind(Q0):typeof process<"u"&&process.nextTick||mB,cr={isArray:qg,isArrayBuffer:sB,isBuffer:ole,isFormData:mle,isArrayBufferView:sle,isString:lle,isNumber:lB,isBoolean:cle,isObject:Tx,isPlainObject:Ex,isReadableStream:yle,isRequest:vle,isResponse:_le,isHeaders:ble,isUndefined:Uv,isDate:dle,isFile:ule,isBlob:hle,isRegExp:Nle,isFunction:_h,isStream:fle,isURLSearchParams:gle,isTypedArray:Ale,isFileList:ple,forEach:Gv,merge:U8,extend:wle,trim:xle,stripBOM:kle,inherits:Cle,toFlatObject:Sle,kindOf:Cx,kindOfTest:Fp,endsWith:Tle,toArray:Ele,forEachEntry:Mle,matchAll:Ile,isHTMLForm:Ple,hasOwnProperty:uB,hasOwnProp:uB,reduceDescriptors:hB,freezeMethods:zle,toObjectSet:Ole,toCamelCase:Ble,noop:Fle,toFiniteNumber:Lle,findKey:cB,global:Q0,isContextDefined:dB,ALPHABET:fB,generateString:Dle,isSpecCompliantForm:Rle,toJSONObject:Vle,isAsyncFn:$le,isThenable:jle,setImmediate:mB,asap:Ule};function qo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}cr.inherits(qo,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:cr.toJSONObject(this.config),code:this.code,status:this.status}}});const gB=qo.prototype,yB={};["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=>{yB[e]={value:e}}),Object.defineProperties(qo,yB),Object.defineProperty(gB,"isAxiosError",{value:!0}),qo.from=(e,r,i,B,D,c)=>{const m=Object.create(gB);return cr.toFlatObject(e,m,function(y){return y!==Error.prototype},a=>a!=="isAxiosError"),qo.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Gle=null;function H8(e){return cr.isPlainObject(e)||cr.isArray(e)}function vB(e){return cr.endsWith(e,"[]")?e.slice(0,-2):e}function _B(e,r,i){return e?e.concat(r).map(function(D,c){return D=vB(D),!i&&c?"["+D+"]":D}).join(i?".":""):r}function Hle(e){return cr.isArray(e)&&!e.some(H8)}const Wle=cr.toFlatObject(cr,{},null,function(r){return/^is[A-Z]/.test(r)});function Ax(e,r,i){if(!cr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=cr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,s){return!cr.isUndefined(s[o])});const B=i.metaTokens,D=i.visitor||n,c=i.dots,m=i.indexes,y=(i.Blob||typeof Blob<"u"&&Blob)&&cr.isSpecCompliantForm(r);if(!cr.isFunction(D))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(cr.isDate(l))return l.toISOString();if(!y&&cr.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return cr.isArrayBuffer(l)||cr.isTypedArray(l)?y&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function n(l,o,s){let u=l;if(l&&!s&&typeof l=="object"){if(cr.endsWith(o,"{}"))o=B?o:o.slice(0,-2),l=JSON.stringify(l);else if(cr.isArray(l)&&Hle(l)||(cr.isFileList(l)||cr.endsWith(o,"[]"))&&(u=cr.toArray(l)))return o=vB(o),u.forEach(function(h,g){!(cr.isUndefined(h)||h===null)&&r.append(m===!0?_B([o],g,c):m===null?o:o+"[]",f(h))}),!1}return H8(l)?!0:(r.append(_B(s,o,c),f(l)),!1)}const v=[],_=Object.assign(Wle,{defaultVisitor:n,convertValue:f,isVisitable:H8});function p(l,o){if(!cr.isUndefined(l)){if(v.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));v.push(l),cr.forEach(l,function(u,d){(!(cr.isUndefined(u)||u===null)&&D.call(r,u,cr.isString(d)?d.trim():d,o,_))===!0&&p(u,o?o.concat(d):[d])}),v.pop()}}if(!cr.isObject(e))throw new TypeError("data must be an object");return p(e),r}function bB(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(B){return r[B]})}function W8(e,r){this._pairs=[],e&&Ax(e,this,r)}const xB=W8.prototype;xB.append=function(r,i){this._pairs.push([r,i])},xB.toString=function(r){const i=r?function(B){return r.call(this,B,bB)}:bB;return this._pairs.map(function(D){return i(D[0])+"="+i(D[1])},"").join("&")};function qle(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wB(e,r,i){if(!r)return e;const B=i&&i.encode||qle,D=i&&i.serialize;let c;if(D?c=D(r,i):c=cr.isURLSearchParams(r)?r.toString():new W8(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Yle{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){cr.forEach(this.handlers,function(B){B!==null&&r(B)})}}const kB=Yle,CB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xle={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:W8,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},q8=typeof window<"u"&&typeof document<"u",Y8=typeof navigator=="object"&&navigator||void 0,Zle=q8&&(!Y8||["ReactNative","NativeScript","NS"].indexOf(Y8.product)<0),Jle=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Kle=q8&&window.location.href||"http://localhost",th={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q8,hasStandardBrowserEnv:Zle,hasStandardBrowserWebWorkerEnv:Jle,navigator:Y8,origin:Kle},Symbol.toStringTag,{value:"Module"})),...Xle};function Qle(e,r){return Ax(e,new th.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return th.isNode&&cr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function ece(e){return cr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function tce(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SB(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&cr.isArray(D)?D.length:m,y?(cr.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!cr.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&cr.isArray(D[m])&&(D[m]=tce(D[m])),!a)}if(cr.isFormData(e)&&cr.isFunction(e.entries)){const i={};return cr.forEachEntry(e,(B,D)=>{r(ece(B),D,i,0)}),i}return null}function ace(e,r,i){if(cr.isString(e))try{return(r||JSON.parse)(e),cr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const X8={transitional:CB,adapter:["xhr","http","fetch"],transformRequest:[function(r,i){const B=i.getContentType()||"",D=B.indexOf("application/json")>-1,c=cr.isObject(r);if(c&&cr.isHTMLForm(r)&&(r=new FormData(r)),cr.isFormData(r))return D?JSON.stringify(SB(r)):r;if(cr.isArrayBuffer(r)||cr.isBuffer(r)||cr.isStream(r)||cr.isFile(r)||cr.isBlob(r)||cr.isReadableStream(r))return r;if(cr.isArrayBufferView(r))return r.buffer;if(cr.isURLSearchParams(r))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let a;if(c){if(B.indexOf("application/x-www-form-urlencoded")>-1)return Qle(r,this.formSerializer).toString();if((a=cr.isFileList(r))||B.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ax(a?{"files[]":r}:r,y&&new y,this.formSerializer)}}return c||D?(i.setContentType("application/json",!1),ace(r)):r}],transformResponse:[function(r){const i=this.transitional||X8.transitional,B=i&&i.forcedJSONParsing,D=this.responseType==="json";if(cr.isResponse(r)||cr.isReadableStream(r))return r;if(r&&cr.isString(r)&&(B&&!this.responseType||D)){const m=!(i&&i.silentJSONParsing)&&D;try{return JSON.parse(r)}catch(a){if(m)throw a.name==="SyntaxError"?qo.from(a,qo.ERR_BAD_RESPONSE,this,null,this.response):a}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:th.classes.FormData,Blob:th.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cr.forEach(["delete","get","head","post","put","patch"],e=>{X8.headers[e]={}});const Z8=X8,nce=cr.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"]),rce=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
19
|
+
`),this.area.value=e.replace(Aie,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&a()}:this.iframe.onload=a};const Pie=gre(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var N8=T8(),Bie=K0,Nie=Rg,zie=yx,Oie=IP,Fie=bx("engine.io-client:websocket"),wx,z8;if(typeof WebSocket<"u"?wx=WebSocket:typeof self<"u"&&(wx=self.WebSocket||self.MozWebSocket),typeof window>"u")try{z8=Pie}catch{}var jg=wx||z8,Lie=qh;function qh(e){var r=e&&e.forceBase64;r&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=wx&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(jg=z8),N8.call(this,e)}zie(qh,N8),qh.prototype.name="websocket",qh.prototype.supportsBinary=!0,qh.prototype.doOpen=function(){if(this.check()){var e=this.uri(),r=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?r?new jg(e,r):new jg(e):new jg(e,r,i)}catch(B){return this.emit("error",B)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},qh.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(r){e.onData(r.data)},this.ws.onerror=function(r){e.onError("websocket error",r)}},qh.prototype.write=function(e){var r=this;this.writable=!1;for(var i=e.length,B=0,D=i;B<D;B++)(function(m){Bie.encodePacket(m,r.supportsBinary,function(a){if(!r.usingBrowserWebSocket){var y={};if(m.options&&(y.compress=m.options.compress),r.perMessageDeflate){var f=typeof a=="string"?Buffer.byteLength(a):a.length;f<r.perMessageDeflate.threshold&&(y.compress=!1)}}try{r.usingBrowserWebSocket?r.ws.send(a):r.ws.send(a,y)}catch{Fie("websocket closed before onclose event")}--i||c()})})(e[B]);function c(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}},qh.prototype.onClose=function(){N8.prototype.onClose.call(this)},qh.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},qh.prototype.uri=function(){var e=this.query||{},r=this.secure?"wss":"ws",i="";this.port&&(r==="wss"&&Number(this.port)!==443||r==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=Oie()),this.supportsBinary||(e.b64=1),e=Nie.encode(e),e.length&&(e="?"+e);var B=this.hostname.indexOf(":")!==-1;return r+"://"+(B?"["+this.hostname+"]":this.hostname)+i+this.path+e},qh.prototype.check=function(){return!!jg&&!("__initialize"in jg&&this.name===qh.prototype.name)};var Die=x8,Rie=Sie,Vie=Eie,$ie=Lie;hx.polling=jie,hx.websocket=$ie;function jie(e){var r,i=!1,B=!1,D=e.jsonp!==!1;if(typeof location<"u"){var c=location.protocol==="https:",m=location.port;m||(m=c?443:80),i=e.hostname!==location.hostname||m!==e.port,B=e.secure!==c}if(e.xdomain=i,e.xscheme=B,r=new Die(e),"open"in r&&!e.forceJSONP)return new Rie(e);if(!D)throw new Error("JSONP disabled");return new Vie(e)}var Uie=[].indexOf,DP=function(e,r){if(Uie)return e.indexOf(r);for(var i=0;i<e.length;++i)if(e[i]===r)return i;return-1},Gie=hx,Hie=Lg,Id=bx("engine.io-client:socket"),Wie=DP,RP=K0,VP=pP,qie=Rg,Yie=hl;function hl(e,r){if(!(this instanceof hl))return new hl(e,r);r=r||{},e&&typeof e=="object"&&(r=e,e=null),e?(e=VP(e),r.hostname=e.host,r.secure=e.protocol==="https"||e.protocol==="wss",r.port=e.port,e.query&&(r.query=e.query)):r.host&&(r.hostname=VP(r.host).host),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.agent=r.agent||!1,this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=r.query||{},typeof this.query=="string"&&(this.query=qie.decode(this.query)),this.upgrade=r.upgrade!==!1,this.path=(r.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!r.forceJSONP,this.jsonp=r.jsonp!==!1,this.forceBase64=!!r.forceBase64,this.enablesXDR=!!r.enablesXDR,this.withCredentials=r.withCredentials!==!1,this.timestampParam=r.timestampParam||"t",this.timestampRequests=r.timestampRequests,this.transports=r.transports||["polling","websocket"],this.transportOptions=r.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=r.policyPort||843,this.rememberUpgrade=r.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=r.onlyBinaryUpgrades,this.perMessageDeflate=r.perMessageDeflate!==!1?r.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=r.pfx||void 0,this.key=r.key||void 0,this.passphrase=r.passphrase||void 0,this.cert=r.cert||void 0,this.ca=r.ca||void 0,this.ciphers=r.ciphers||void 0,this.rejectUnauthorized=r.rejectUnauthorized===void 0?!0:r.rejectUnauthorized,this.forceNode=!!r.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(r.extraHeaders&&Object.keys(r.extraHeaders).length>0&&(this.extraHeaders=r.extraHeaders),r.localAddress&&(this.localAddress=r.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}hl.priorWebsocketSuccess=!1,Hie(hl.prototype),hl.protocol=RP.protocol,hl.Socket=hl,hl.Transport=T8(),hl.transports=hx,hl.parser=K0,hl.prototype.createTransport=function(e){Id('creating transport "%s"',e);var r=Xie(this.query);r.EIO=RP.protocol,r.transport=e;var i=this.transportOptions[e]||{};this.id&&(r.sid=this.id);var B=new Gie[e]({query:r,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return B};function Xie(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);return r}hl.prototype.open=function(){var e;if(this.rememberUpgrade&&hl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var r=this;setTimeout(function(){r.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},hl.prototype.setTransport=function(e){Id("setting transport %s",e.name);var r=this;this.transport&&(Id("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){r.onDrain()}).on("packet",function(i){r.onPacket(i)}).on("error",function(i){r.onError(i)}).on("close",function(){r.onClose("transport close")})},hl.prototype.probe=function(e){Id('probing transport "%s"',e);var r=this.createTransport(e,{probe:1}),i=!1,B=this;hl.priorWebsocketSuccess=!1;function D(){if(B.onlyBinaryUpgrades){var v=!this.supportsBinary&&B.transport.supportsBinary;i=i||v}i||(Id('probe transport "%s" opened',e),r.send([{type:"ping",data:"probe"}]),r.once("packet",function(_){if(!i)if(_.type==="pong"&&_.data==="probe"){if(Id('probe transport "%s" pong',e),B.upgrading=!0,B.emit("upgrading",r),!r)return;hl.priorWebsocketSuccess=r.name==="websocket",Id('pausing current transport "%s"',B.transport.name),B.transport.pause(function(){i||B.readyState!=="closed"&&(Id("changing transport and sending upgrade packet"),n(),B.setTransport(r),r.send([{type:"upgrade"}]),B.emit("upgrade",r),r=null,B.upgrading=!1,B.flush())})}else{Id('probe transport "%s" failed',e);var p=new Error("probe error");p.transport=r.name,B.emit("upgradeError",p)}}))}function c(){i||(i=!0,n(),r.close(),r=null)}function m(v){var _=new Error("probe error: "+v);_.transport=r.name,c(),Id('probe transport "%s" failed because of error: %s',e,v),B.emit("upgradeError",_)}function a(){m("transport closed")}function y(){m("socket closed")}function f(v){r&&v.name!==r.name&&(Id('"%s" works - aborting "%s"',v.name,r.name),c())}function n(){r.removeListener("open",D),r.removeListener("error",m),r.removeListener("close",a),B.removeListener("close",y),B.removeListener("upgrading",f)}r.once("open",D),r.once("error",m),r.once("close",a),this.once("close",y),this.once("upgrading",f),r.open()},hl.prototype.onOpen=function(){if(Id("socket open"),this.readyState="open",hl.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Id("starting upgrade probes");for(var e=0,r=this.upgrades.length;e<r;e++)this.probe(this.upgrades[e])}},hl.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Id('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var r=new Error("server error");r.code=e.data,this.onError(r);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Id('packet received with socket readyState "%s"',this.readyState)},hl.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},hl.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var r=this;r.pingTimeoutTimer=setTimeout(function(){r.readyState!=="closed"&&r.onClose("ping timeout")},e||r.pingInterval+r.pingTimeout)},hl.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Id("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},hl.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},hl.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},hl.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Id("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},hl.prototype.write=hl.prototype.send=function(e,r,i){return this.sendPacket("message",e,r,i),this},hl.prototype.sendPacket=function(e,r,i,B){if(typeof r=="function"&&(B=r,r=void 0),typeof i=="function"&&(B=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var D={type:e,data:r,options:i};this.emit("packetCreate",D),this.writeBuffer.push(D),B&&this.once("flush",B),this.flush()}},hl.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?B():r()}):this.upgrading?B():r()}function r(){e.onClose("forced close"),Id("socket closing - telling transport to close"),e.transport.close()}function i(){e.removeListener("upgrade",i),e.removeListener("upgradeError",i),r()}function B(){e.once("upgrade",i),e.once("upgradeError",i)}return this},hl.prototype.onError=function(e){Id("socket error %j",e),hl.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},hl.prototype.onClose=function(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Id('socket close with reason: "%s"',e);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,r),i.writeBuffer=[],i.prevBufferLen=0}},hl.prototype.filterUpgrades=function(e){for(var r=[],i=0,B=e.length;i<B;i++)~Wie(this.transports,e[i])&&r.push(e[i]);return r},v8.exports=Yie,v8.exports.parser=K0;var Zie=v8.exports,$P={exports:{}},Jie=Kie;function Kie(e,r){var i=[];r=r||0;for(var B=r||0;B<e.length;B++)i[B-r]=e[B];return i}var jP=Qie;function Qie(e,r,i){return e.on(r,i),{destroy:function(){e.removeListener(r,i)}}}var UP=[].slice,GP=function(e,r){if(typeof r=="string"&&(r=e[r]),typeof r!="function")throw new Error("bind() requires a function");var i=UP.call(arguments,2);return function(){return r.apply(e,i.concat(UP.call(arguments)))}};(function(e,r){var i=cx,B=Lg,D=Jie,c=jP,m=GP,a=lx("socket.io-client:socket"),y=Rg,f=bP;e.exports=_;var n={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=B.prototype.emit;function _(p,l,o){this.io=p,this.nsp=l,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}B(_.prototype),_.prototype.subEvents=function(){if(!this.subs){var p=this.io;this.subs=[c(p,"open",m(this,"onopen")),c(p,"packet",m(this,"onpacket")),c(p,"close",m(this,"onclose"))]}},_.prototype.open=_.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},_.prototype.send=function(){var p=D(arguments);return p.unshift("message"),this.emit.apply(this,p),this},_.prototype.emit=function(p){if(n.hasOwnProperty(p))return v.apply(this,arguments),this;var l=D(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:f(l))?i.BINARY_EVENT:i.EVENT,data:l};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof l[l.length-1]=="function"&&(a("emitting packet with ack id %d",this.ids),this.acks[this.ids]=l.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},_.prototype.packet=function(p){p.nsp=this.nsp,this.io.packet(p)},_.prototype.onopen=function(){if(a("transport is open - connecting"),this.nsp!=="/")if(this.query){var p=typeof this.query=="object"?y.encode(this.query):this.query;a("sending connect packet with query %s",p),this.packet({type:i.CONNECT,query:p})}else this.packet({type:i.CONNECT})},_.prototype.onclose=function(p){a("close (%s)",p),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",p)},_.prototype.onpacket=function(p){var l=p.nsp===this.nsp,o=p.type===i.ERROR&&p.nsp==="/";if(!(!l&&!o))switch(p.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(p);break;case i.BINARY_EVENT:this.onevent(p);break;case i.ACK:this.onack(p);break;case i.BINARY_ACK:this.onack(p);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",p.data);break}},_.prototype.onevent=function(p){var l=p.data||[];a("emitting event %j",l),p.id!=null&&(a("attaching ack callback to event"),l.push(this.ack(p.id))),this.connected?v.apply(this,l):this.receiveBuffer.push(l)},_.prototype.ack=function(p){var l=this,o=!1;return function(){if(!o){o=!0;var s=D(arguments);a("sending ack %j",s),l.packet({type:f(s)?i.BINARY_ACK:i.ACK,id:p,data:s})}}},_.prototype.onack=function(p){var l=this.acks[p.id];typeof l=="function"?(a("calling ack %s with %j",p.id,p.data),l.apply(this,p.data),delete this.acks[p.id]):a("bad ack %s",p.id)},_.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},_.prototype.emitBuffered=function(){var p;for(p=0;p<this.receiveBuffer.length;p++)v.apply(this,this.receiveBuffer[p]);for(this.receiveBuffer=[],p=0;p<this.sendBuffer.length;p++)this.packet(this.sendBuffer[p]);this.sendBuffer=[]},_.prototype.ondisconnect=function(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},_.prototype.destroy=function(){if(this.subs){for(var p=0;p<this.subs.length;p++)this.subs[p].destroy();this.subs=null}this.io.destroy(this)},_.prototype.close=_.prototype.disconnect=function(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},_.prototype.compress=function(p){return this.flags.compress=p,this},_.prototype.binary=function(p){return this.flags.binary=p,this}})($P);var HP=$P.exports,eoe=Ug;function Ug(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ug.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*e);e=Math.floor(r*10)&1?e+i:e-i}return Math.min(e,this.max)|0},Ug.prototype.reset=function(){this.attempts=0},Ug.prototype.setMin=function(e){this.ms=e},Ug.prototype.setMax=function(e){this.max=e},Ug.prototype.setJitter=function(e){this.jitter=e};var toe=Zie,aoe=HP,noe=Lg,roe=cx,Rm=jP,Gg=GP,Bu=lx("socket.io-client:manager"),WP=DP,ioe=eoe,qP=Object.prototype.hasOwnProperty,YP=Yl;function Yl(e,r){if(!(this instanceof Yl))return new Yl(e,r);e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.nsps={},this.subs=[],this.opts=r,this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor(r.randomizationFactor||.5),this.backoff=new ioe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=r.parser||roe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=r.autoConnect!==!1,this.autoConnect&&this.open()}Yl.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)qP.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},Yl.prototype.updateSocketIds=function(){for(var e in this.nsps)qP.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},Yl.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},noe(Yl.prototype),Yl.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},Yl.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},Yl.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},Yl.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},Yl.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},Yl.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},Yl.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},Yl.prototype.open=Yl.prototype.connect=function(e,r){if(Bu("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Bu("opening %s",this.uri),this.engine=toe(this.uri,this.opts);var i=this.engine,B=this;this.readyState="opening",this.skipReconnect=!1;var D=Rm(i,"open",function(){B.onopen(),e&&e()}),c=Rm(i,"error",function(y){if(Bu("connect_error"),B.cleanup(),B.readyState="closed",B.emitAll("connect_error",y),e){var f=new Error("Connection error");f.data=y,e(f)}else B.maybeReconnectOnOpen()});if(this._timeout!==!1){var m=this._timeout;Bu("connect attempt will timeout after %d",m),m===0&&D.destroy();var a=setTimeout(function(){Bu("connect attempt timed out after %d",m),D.destroy(),i.close(),i.emit("error","timeout"),B.emitAll("connect_timeout",m)},m);this.subs.push({destroy:function(){clearTimeout(a)}})}return this.subs.push(D),this.subs.push(c),this},Yl.prototype.onopen=function(){Bu("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Rm(e,"data",Gg(this,"ondata"))),this.subs.push(Rm(e,"ping",Gg(this,"onping"))),this.subs.push(Rm(e,"pong",Gg(this,"onpong"))),this.subs.push(Rm(e,"error",Gg(this,"onerror"))),this.subs.push(Rm(e,"close",Gg(this,"onclose"))),this.subs.push(Rm(this.decoder,"decoded",Gg(this,"ondecoded")))},Yl.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},Yl.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},Yl.prototype.ondata=function(e){this.decoder.add(e)},Yl.prototype.ondecoded=function(e){this.emit("packet",e)},Yl.prototype.onerror=function(e){Bu("error",e),this.emitAll("error",e)},Yl.prototype.socket=function(e,r){var i=this.nsps[e];if(!i){i=new aoe(this,e,r),this.nsps[e]=i;var B=this;i.on("connecting",D),i.on("connect",function(){i.id=B.generateId(e)}),this.autoConnect&&D()}function D(){~WP(B.connecting,i)||B.connecting.push(i)}return i},Yl.prototype.destroy=function(e){var r=WP(this.connecting,e);~r&&this.connecting.splice(r,1),!this.connecting.length&&this.close()},Yl.prototype.packet=function(e){Bu("writing packet %j",e);var r=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),r.encoding?r.packetBuffer.push(e):(r.encoding=!0,this.encoder.encode(e,function(i){for(var B=0;B<i.length;B++)r.engine.write(i[B],e.options);r.encoding=!1,r.processPacketQueue()}))},Yl.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},Yl.prototype.cleanup=function(){Bu("cleanup");for(var e=this.subs.length,r=0;r<e;r++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},Yl.prototype.close=Yl.prototype.disconnect=function(){Bu("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},Yl.prototype.onclose=function(e){Bu("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},Yl.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Bu("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var r=this.backoff.duration();Bu("will wait %dms before reconnect attempt",r),this.reconnecting=!0;var i=setTimeout(function(){e.skipReconnect||(Bu("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(B){B?(Bu("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",B.data)):(Bu("reconnect success"),e.onreconnect())}))},r);this.subs.push({destroy:function(){clearTimeout(i)}})}},Yl.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,r){var i=Are,B=cx,D=YP,c=lx("socket.io-client");e.exports=r=a;var m=r.managers={};function a(y,f){typeof y=="object"&&(f=y,y=void 0),f=f||{};var n=i(y),v=n.source,_=n.id,p=n.path,l=m[_]&&p in m[_].nsps,o=f.forceNew||f["force new connection"]||f.multiplex===!1||l,s;return o?(c("ignoring socket cache for %s",v),s=D(v,f)):(m[_]||(c("new io instance for %s",v),m[_]=D(v,f)),s=m[_]),n.query&&!f.query&&(f.query=n.query),s.socket(n.path,f)}r.protocol=B.protocol,r.connect=a,r.Manager=YP,r.Socket=HP}(c8,c8.exports);var ooe=c8.exports;const soe=l8(ooe);var O8={exports:{}};function F8(){}F8.prototype={on:function(e,r,i){var B=this.e||(this.e={});return(B[e]||(B[e]=[])).push({fn:r,ctx:i}),this},once:function(e,r,i){var B=this;function D(){B.off(e,D),r.apply(i,arguments)}return D._=r,this.on(e,D,i)},emit:function(e){var r=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),B=0,D=i.length;for(B;B<D;B++)i[B].fn.apply(i[B].ctx,r);return this},off:function(e,r){var i=this.e||(this.e={}),B=i[e],D=[];if(B&&r)for(var c=0,m=B.length;c<m;c++)B[c].fn!==r&&B[c].fn._!==r&&D.push(B[c]);return D.length?i[e]=D:delete i[e],this}},O8.exports=F8,O8.exports.TinyEmitter=F8;var loe=O8.exports,coe=loe,doe=new coe;const Yh=l8(doe),uoe="https://golstats-live-server-sockets.azurewebsites.net";let XP="",Xh=soe(uoe,{autoConnect:!1,transports:["websocket"]});function L8(){return Xh}Xh.on("connect",()=>{Yh.emit("socket-connected")}),Xh.on("disconnect",()=>{Yh.emit("socket-disconnected")}),Xh.on("reconnect",()=>{Yh.emit("socket-reconnected")});function D8(){Xh.disconnected&&Xh.connect()}function R8(){Xh.connected&&(V8(),Xh.disconnect())}function ZP(e){Xh.connected&&Xh.emit("subscribe",{channel:e})}function V8(){Xh.connected&&XP&&Xh.emit("unsubscribe",{channel:XP})}const Vfa="",$i=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},JP=$i({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--white-space":i.whiteSpace,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function D(){r("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:D},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-bb7f8e4d"]]),hoe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},poe={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":y.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),D=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),y=t.computed(()=>D.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==D.value&&(D.value=p)},{immediate:!0}),t.watch(D,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,u=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${u}px`}function n(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function v(){D.value=!D.value,r("update:modelValue",D.value)}function _(){D.value=!1,r("update:modelValue",D.value)}return t.onMounted(()=>{t.nextTick(()=>{n()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[D.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:v},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,D.value]])]),_:3})],4)],64))}},foe=hoe(poe,[["__scopeId","data-v-2f344053"]]),jfa="",moe=(e=>(t.pushScopeId("data-v-2a796a00"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),goe={class:"button__text"},yoe={key:0},voe={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_oe=["fill"],boe=$i({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const r=e,i=t.computed(()=>({"--height":r.height,"--width":r.width,"--text-font-family":r.textFontFamily,"--text-font-size":r.textFontSize,"--background-color":r.backgroundColor,"--border-radius":r.borderRadius,"--border-color":r.isActive?r.borderColorActive:r.borderColor,"--border-width":r.borderWidth,"--padding":r.padding,"--font-color":r.fontColor})),B=t.computed(()=>({"--info-background-color":r.infoBackgroundColor,"--info-border-color":r.infoBorderColor,"--info-border-radius":r.infoBorderRadius,"--info-font-family":r.infoFontFamily,"--info-font-size":r.infoFontSize,"--info-font-color":r.infoFontColor,"--info-height":r.infoHeight,"--info-width":r.infoWidth}));return(D,c)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[moe,t.createElementVNode("div",goe,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(B.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",yoe,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",voe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,_oe)]))],2)],4))}},[["__scopeId","data-v-2a796a00"]]),xoe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},woe={key:1},koe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Coe=["fill"],Soe={key:0,class:"checkbox__teams"},Toe={class:"checkbox__teams__logo"},Eoe=["src"],Aoe={class:"checkbox__teams__logo"},Moe=["src"],Ioe={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),m=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",woe,[(t.openBlock(),t.createElementBlock("svg",koe,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Coe)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Soe,[t.createElementVNode("div",Toe,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,Eoe)]),t.createElementVNode("div",Aoe,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,Moe)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(m.value)},t.toDisplayString(e.label),5)],2))}},Hg=xoe(Ioe,[["__scopeId","data-v-bcf3bcc6"]]),Hfa="",kx=e=>(t.pushScopeId("data-v-ce334c17"),e=e(),t.popScopeId(),e),Poe={class:"details__header"},Boe=kx(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Noe={class:"details__header__checkbox"},zoe={class:"details__body"},Ooe={class:"details__body__playing-as"},Foe=["onClick"],Loe={class:"details__header"},Doe=kx(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Roe={class:"details__header__checkbox"},Voe={class:"details__body"},$oe=kx(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),joe={class:"details__body__game-section"},Uoe=["onClick"],Goe={class:"details__body"},Hoe=kx(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Woe={class:"details__body__game-section"},qoe=["onClick"],Yoe=$i({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const r=e;t.useCssVars(n=>({"2321d9a1":e.buttonsBackgroundColor,ccabcbfc:e.buttonsTextColor,"05a0a474":e.buttonsBorderWidth,"07cea13a":e.buttonsBorderColor,"67fac807":e.buttonsBackgroundColorActive,"728f7ba8":e.buttonsTextColorActive,"12a02c6c":e.buttonsBorderWidthActive,"5392776e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function m(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Poe,[Boe,t.createElementVNode("div",Noe,[t.createVNode(t.unref(Hg),{label:"Todos","model-value":i.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",zoe,[t.createElementVNode("div",Ooe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Foe))),128))])]),t.createElementVNode("div",Loe,[Doe,t.createElementVNode("div",Roe,[t.createVNode(t.unref(Hg),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Voe,[$oe,t.createElementVNode("div",joe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Uoe))),128))])]),t.createElementVNode("div",Goe,[Hoe,t.createElementVNode("div",Woe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,qoe))),128))])])],4))}},[["__scopeId","data-v-ce334c17"]]),Xoe={class:"statistics-filter-button"},Zoe={__name:"StatisticsFilterButton",setup(e){const r=t.ref(!1);return(i,B)=>(t.openBlock(),t.createElementBlock("div",Xoe,[t.createVNode(t.unref(foe),{modelValue:r.value,"onUpdate:modelValue":B[0]||(B[0]=D=>r.value=D),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(boe,{text:"Filtros","is-active":r.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(Yoe)]),_:1},8,["modelValue"])]))}},qfa="",KP=$i({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{D()},{immediate:!0});function D(){B.value&&(B.value.checked=i.modelValue)}function c(m){r("update:modelValue",m.target.checked)}return t.onMounted(()=>{D()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]),Joe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Koe=["name","value","checked"],Qoe={class:"radio-button__radio"},ese={class:"radio-button__radio__circle"},tse={class:"radio-button__label-logo"},ase={class:"radio-button__label-logo__label"},nse={key:0,class:"radio-button__label-logo__logo"},rse=["src"],ise={__name:"GSC-RadioButton",props:{label:{type:String,default:"Label"},labelColor:{type:String,default:"white"},labelFontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},name:{type:String,default:"name"},value:{type:[String,Number],required:!0},modelValue:{type:[String,Number],default:""},logoUrl:{type:String,default:""},radioPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},radioHeightAndWidth:{type:String,default:"16px"},radioBorderWidth:{type:String,default:"1px"},radioBorderColor:{type:String,default:"#FFFFFF"},radioCircleColor:{type:String,default:"#CBEE6B"},radioCircleHeightAndWidth:{type:String,default:"8px"},logoHeightAndWidth:{type:String,default:"24px"}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(m=>({"09b3bbfe":e.radioHeightAndWidth,b2c41162:e.radioBorderWidth,b4f20e28:e.radioBorderColor,"999f2a9e":e.radioCircleHeightAndWidth,"74ee76c8":e.radioCircleColor,eb045952:e.labelFontFamily,"61eeb8b4":e.labelFontSize,"39a863c2":e.labelColor,"0b5aff5e":e.logoHeightAndWidth}));const B=t.ref(!1);t.watch(()=>i.modelValue,()=>{B.value=i.modelValue===i.value},{immediate:!0});function D(){r("update:modelValue",i.value)}function c(){r("update:modelValue",i.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-button",e.radioPosition]),onClick:c},[t.createElementVNode("input",{type:"radio",name:e.name,value:e.value,checked:B.value,onInput:D},null,40,Koe),t.createElementVNode("div",Qoe,[t.withDirectives(t.createElementVNode("div",ese,null,512),[[t.vShow,B.value]])]),t.createElementVNode("div",tse,[t.createElementVNode("div",ase,t.toDisplayString(e.label),1),e.logoUrl?(t.openBlock(),t.createElementBlock("div",nse,[t.createElementVNode("img",{src:e.logoUrl,alt:""},null,8,rse)])):t.createCommentVNode("",!0)])],2))}},QP=Joe(ise,[["__scopeId","data-v-10f54cda"]]),eB=navigator.userAgent||navigator.vendor||window.opera;function ose(e,r){let i=Array.isArray(e)&&Array.isArray(r)?e.length===r.length:!1;if(i){for(let B of e)if(!r.includes(B)){i=!1;break}}return i}function Wg(e){return e.reduce((r,i,B)=>(r[i]=B,r),{})}function tB(e,r,i){const B={statistics:r.statistics.value||0,playingAs:[...r.playingAs],matchResult:[...r.matchResult],sections:r.firstHalf.concat(r.secondHalf),requiresPlaysFiltering:r.requiresPlaysFiltering||!0};return B.teamId=i,B}function Vm(e){return typeof e=="number"?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function sse(){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(eB)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(eB.substr(0,4))}function aB(e){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${e}.png`}const Xfa="",lse={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...eh("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...ed("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e=this.teamTypeSelected==="both"?["#0033C5","#cbee6b"]:this.teamTypeSelected==="homeTeam"?["#0033C5"]:["#cbee6b"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(r,i)=>r+" - <strong>"+i.w.globals.series[i.seriesIndex][i.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:r=>this.showPostMatchData?`${r} :`:`${r} (promedio)`},formatter:r=>this.showPostMatchData?Number(r):r},{title:{formatter:r=>this.showPostMatchData?`${r} :`:`${r} (promedio)`},formatter:r=>this.showPostMatchData?Number(r):r},{title:{formatter:r=>r}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?this.dataLive.map((r,i)=>({name:this.teamAcronyms[i],data:r})):this.dataStats.map((r,i)=>({name:this.teamAcronyms[i],data:r}))},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>Vm(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>Vm(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>Vm(e))]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]},dataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].totalsLiveTrendLive.sections.reduce((e,r)=>(e.push(Vm(r)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,r)=>(e.push(r),e),[0])]},xaxisCategories(){return this.isAccumulatedType?["0'","15'","30'","45'","60'","75'","90'"]:["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return this.typeId===1},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return(this.gameForAnalysis.is_live||this.gameForAnalysis.game_status===0)&&this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){this.idAssetSelected===7&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,r){JSON.stringify(e)!==JSON.stringify(r)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.homeTeam.maximumLiveSection)],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.slice(0,this.subcategorySelected.visitingTeam.maximumLiveSection)]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,r)=>(e.push(r),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.8):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.7):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.6):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.5):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),this.idAssetSelected===7&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},cse={class:"chart-trend-live container",ref:"containerChart"};function dse(e,r,i,B,D,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",cse,[(t.openBlock(),t.createBlock(m,{type:"area",options:c.chartOptions,series:c.series,key:c.key+D.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}const use=$i(lse,[["render",dse],["__scopeId","data-v-b0edd3c1"]]),hse=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},$8={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},nB=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},rB=$8.setup;$8.setup=rB?(e,r)=>(nB(),rB(e,r)):nB;const pse=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),fse=["src"],mse={key:1,class:"text"},gse=["src"],yse={class:"stats"},vse=pse(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),_se={class:"numstats"},bse={class:"leyend"};function xse(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...m)=>c.btnClick&&c.btnClick(...m))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,fse)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",mse,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,gse)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...m)=>c.btnClick&&c.btnClick(...m))},[t.createElementVNode("div",yse,[vse,t.createElementVNode("div",_se,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",bse,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const wse=hse($8,[["render",xse],["__scopeId","data-v-fb269a1e"]]),kse={class:"gsc-dropdown__main-container__item-selected"},Cse=["height","width"],Sse=["stroke"],Tse={class:"gsc-dropdown__items-container"},Ese=["onClick"],Ase={key:0,class:"gsc-dropdown__items-footer"},Mse={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),m=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(m.value=!m.value)}function n(p){D.value&&!D.value.contains(p.target)&&(m.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,m.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){m.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",kse,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":m.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Sse)],8,Cse))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Tse,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,Ese))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Ase,[t.createVNode(t.unref(wse),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,m.value]])]),_:3})],4))}},Zfa="",Ise={class:"card-trend-live__dropdown-category"},Pse={class:"selected-item"},Bse={class:"card-trend-live__body__categories"},Nse={class:"card-trend-live__body__chart"},zse=$i({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:r}){const i=e;let B=null;const D={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},c={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},m=t.ref({}),a=t.ref(null),y=t.ref(0);t.watch(()=>i.data,v=>{v&&v.subcategories&&v.subcategories.length&&(m.value=v.subcategories[0])},{immediate:!0});function f(v){m.value=v,r("update:subcategory-selected",{data:i.data,subcategorySelected:v})}function n(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onUnmounted(()=>{}),(v,_)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:a,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":y.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",Ise,[t.createVNode(t.unref(Mse),t.mergeProps(c,{items:e.data.subcategories,"selected-item":m.value,"default-item-by-prop":{propName:"id",value:m.value.id},onInput:f}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",Pse,t.toDisplayString(p.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,y.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":y.value<=760}])},[t.createElementVNode("div",Bse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(p,l)=>(t.openBlock(),t.createElementBlock("div",{key:l},[t.createVNode(JP,t.mergeProps(D,{text:p.name,"is-active":m.value.id===p.id,onClick:o=>f(p)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Nse,[(t.openBlock(),t.createBlock(use,{id:e.data.id,"type-id":e.trendTypeId,"team-type-selected":e.teamTypeSelected,"subcategory-selected":e.data.objectGraphProps.objectSubcategorySelected,"team-ids":e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,"container-width":y.value,key:e.trendTypeId},null,8,["id","type-id","team-type-selected","subcategory-selected","team-ids","team-acronyms","types","container-width"]))])],2)],512))}},[["__scopeId","data-v-d2eb653a"]]),Kfa="",iB=e=>(t.pushScopeId("data-v-55b6125e"),e=e(),t.popScopeId(),e),Ose={class:"trending-live__header__radios"},Fse={class:"trending-live__header__radios__group"},Lse={class:"trending-live__header__switch"},Dse={class:"trending-live__header__switch__control"},Rse=iB(()=>t.createElementVNode("span",null,"Acumulado",-1)),Vse=iB(()=>t.createElementVNode("span",null,"Por periodo",-1)),$se={class:"trending-live__body"},jse=$i({__name:"TrendLive",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"}})}},setup(e){const r=e,i=ex();let B=null;const D=t.ref(!1),c=t.ref("both"),m=t.ref([]),a=t.ref(null),y=t.ref(0),f=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:r.game.homeTeam?`${r.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:r.game.homeTeam?aB(r.game.homeTeam.team_id):""},{label:r.game.awayTeam?`${r.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:r.game.awayTeam?aB(r.game.awayTeam.team_id):""}]),n=t.computed(()=>c.value==="both"?"both":`${c.value==="home"?"home":"visiting"}Team`),v=t.computed(()=>D.value?2:1),_=t.computed(()=>r.game.homeTeam?c.value==="both"?[r.game.homeTeam.team_id,r.game.awayTeam.team_id]:[r.game[`${c.value}Team`].team_id]:[0,0]),p=t.computed(()=>r.game.homeTeam?c.value==="both"?[r.game.homeTeam.acronym,r.game.awayTeam.acronym]:[r.game[`${c.value}Team`].acronym]:[0,0]),l=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);t.watch(()=>i.getters["nextGeneral/arrayFilledDataSortedByPriority"],u=>{m.value.length===0&&(u&&u.length?m.value=u.map((d,h)=>{const g=Object.values(d.subcategories).filter(b=>b.isVisible);return{id:`tL${h}`,...d,subcategories:g,objectGraphProps:{objectSubcategorySelected:g[0],numberCategoryId:g[0].id}}}):m.value=[])},{immediate:!0});function o({data:u,subcategorySelected:d}){u.objectGraphProps.numberCategoryId=d,u.objectGraphProps.objectSubcategorySelected=d}function s(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{s()}),(u,d)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:a,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":y.value<580}])},[t.createElementVNode("div",Ose,[t.createElementVNode("div",Fse,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{key:g},[t.createVNode(t.unref(QP),t.mergeProps({modelValue:c.value,"onUpdate:modelValue":d[0]||(d[0]=b=>c.value=b)},h),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",Lse,[t.createElementVNode("div",Dse,[Rse,t.createVNode(KP,{modelValue:D.value,"onUpdate:modelValue":d[1]||(d[1]=h=>D.value=h)},null,8,["modelValue"]),Vse])])],2),t.createElementVNode("div",$se,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(h,g)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:g},[t.createVNode(zse,{data:h,"trend-type-id":v.value,"team-type-selected":n.value,"team-ids":_.value,"team-acronyms":p.value,"trend-types":l.value,"onUpdate:subcategorySelected":o},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-55b6125e"]]),ema="",Use={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Gse=e=>(t.pushScopeId("data-v-49b2380c"),e=e(),t.popScopeId(),e),Hse={class:"custom-progress-bar"},Wse={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},qse=Gse(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),Yse=["d","fill"];function Xse(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Hse,[(t.openBlock(),t.createElementBlock("svg",Wse,[qse,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,Yse)]))])}const Zse=$i(Use,[["render",Xse],["__scopeId","data-v-49b2380c"]]),tma="",Jse={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...eh("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},Kse=e=>(t.pushScopeId("data-v-054b26d4"),e=e(),t.popScopeId(),e),Qse={class:"custom-progress-bar"},ele={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},tle=Kse(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),ale=["d","fill"];function nle(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Qse,[(t.openBlock(),t.createElementBlock("svg",ele,[tle,t.createElementVNode("path",{d:`M10,10 L${c.p},10 A1,1 0 1 1 ${c.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:i.colors[0]},null,8,ale)]))])}const rle=$i(Jse,[["render",nle],["__scopeId","data-v-054b26d4"]]);function oB(e,r){return function(){return e.apply(r,arguments)}}const{toString:ile}=Object.prototype,{getPrototypeOf:j8}=Object,Cx=(e=>r=>{const i=ile.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Fp=e=>(e=e.toLowerCase(),r=>Cx(r)===e),Sx=e=>r=>typeof r===e,{isArray:qg}=Array,Uv=Sx("undefined");function ole(e){return e!==null&&!Uv(e)&&e.constructor!==null&&!Uv(e.constructor)&&_h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sB=Fp("ArrayBuffer");function sle(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&sB(e.buffer),r}const lle=Sx("string"),_h=Sx("function"),lB=Sx("number"),Tx=e=>e!==null&&typeof e=="object",cle=e=>e===!0||e===!1,Ex=e=>{if(Cx(e)!=="object")return!1;const r=j8(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dle=Fp("Date"),ule=Fp("File"),hle=Fp("Blob"),ple=Fp("FileList"),fle=e=>Tx(e)&&_h(e.pipe),mle=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||_h(e.append)&&((r=Cx(e))==="formdata"||r==="object"&&_h(e.toString)&&e.toString()==="[object FormData]"))},gle=Fp("URLSearchParams"),[yle,vle,_le,ble]=["ReadableStream","Request","Response","Headers"].map(Fp),xle=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),qg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function cB(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const Q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dB=e=>!Uv(e)&&e!==Q0;function U8(){const{caseless:e}=dB(this)&&this||{},r={},i=(B,D)=>{const c=e&&cB(r,D)||D;Ex(r[c])&&Ex(B)?r[c]=U8(r[c],B):Ex(B)?r[c]=U8({},B):qg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Gv(arguments[B],i);return r}const wle=(e,r,i,{allOwnKeys:B}={})=>(Gv(r,(D,c)=>{i&&_h(D)?e[c]=oB(D,i):e[c]=D},{allOwnKeys:B}),e),kle=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Cle=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Sle=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&j8(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Tle=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},Ele=e=>{if(!e)return null;if(qg(e))return e;let r=e.length;if(!lB(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},Ale=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&j8(Uint8Array)),Mle=(e,r)=>{const B=(e&&e[Symbol.iterator]).call(e);let D;for(;(D=B.next())&&!D.done;){const c=D.value;r.call(e,c[0],c[1])}},Ile=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},Ple=Fp("HTMLFormElement"),Ble=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,B,D){return B.toUpperCase()+D}),uB=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),Nle=Fp("RegExp"),hB=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Gv(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},zle=e=>{hB(e,(r,i)=>{if(_h(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(_h(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Ole=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return qg(e)?B(e):B(String(e).split(r)),i},Fle=()=>{},Lle=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,G8="abcdefghijklmnopqrstuvwxyz",pB="0123456789",fB={DIGIT:pB,ALPHA:G8,ALPHA_DIGIT:G8+G8.toUpperCase()+pB},Dle=(e=16,r=fB.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function Rle(e){return!!(e&&_h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Vle=e=>{const r=new Array(10),i=(B,D)=>{if(Tx(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=qg(B)?[]:{};return Gv(B,(m,a)=>{const y=i(m,D+1);!Uv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},$le=Fp("AsyncFunction"),jle=e=>e&&(Tx(e)||_h(e))&&_h(e.then)&&_h(e.catch),mB=((e,r)=>e?setImmediate:r?((i,B)=>(Q0.addEventListener("message",({source:D,data:c})=>{D===Q0&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),Q0.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",_h(Q0.postMessage)),Ule=typeof queueMicrotask<"u"?queueMicrotask.bind(Q0):typeof process<"u"&&process.nextTick||mB,cr={isArray:qg,isArrayBuffer:sB,isBuffer:ole,isFormData:mle,isArrayBufferView:sle,isString:lle,isNumber:lB,isBoolean:cle,isObject:Tx,isPlainObject:Ex,isReadableStream:yle,isRequest:vle,isResponse:_le,isHeaders:ble,isUndefined:Uv,isDate:dle,isFile:ule,isBlob:hle,isRegExp:Nle,isFunction:_h,isStream:fle,isURLSearchParams:gle,isTypedArray:Ale,isFileList:ple,forEach:Gv,merge:U8,extend:wle,trim:xle,stripBOM:kle,inherits:Cle,toFlatObject:Sle,kindOf:Cx,kindOfTest:Fp,endsWith:Tle,toArray:Ele,forEachEntry:Mle,matchAll:Ile,isHTMLForm:Ple,hasOwnProperty:uB,hasOwnProp:uB,reduceDescriptors:hB,freezeMethods:zle,toObjectSet:Ole,toCamelCase:Ble,noop:Fle,toFiniteNumber:Lle,findKey:cB,global:Q0,isContextDefined:dB,ALPHABET:fB,generateString:Dle,isSpecCompliantForm:Rle,toJSONObject:Vle,isAsyncFn:$le,isThenable:jle,setImmediate:mB,asap:Ule};function qo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}cr.inherits(qo,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:cr.toJSONObject(this.config),code:this.code,status:this.status}}});const gB=qo.prototype,yB={};["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=>{yB[e]={value:e}}),Object.defineProperties(qo,yB),Object.defineProperty(gB,"isAxiosError",{value:!0}),qo.from=(e,r,i,B,D,c)=>{const m=Object.create(gB);return cr.toFlatObject(e,m,function(y){return y!==Error.prototype},a=>a!=="isAxiosError"),qo.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Gle=null;function H8(e){return cr.isPlainObject(e)||cr.isArray(e)}function vB(e){return cr.endsWith(e,"[]")?e.slice(0,-2):e}function _B(e,r,i){return e?e.concat(r).map(function(D,c){return D=vB(D),!i&&c?"["+D+"]":D}).join(i?".":""):r}function Hle(e){return cr.isArray(e)&&!e.some(H8)}const Wle=cr.toFlatObject(cr,{},null,function(r){return/^is[A-Z]/.test(r)});function Ax(e,r,i){if(!cr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=cr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(o,s){return!cr.isUndefined(s[o])});const B=i.metaTokens,D=i.visitor||n,c=i.dots,m=i.indexes,y=(i.Blob||typeof Blob<"u"&&Blob)&&cr.isSpecCompliantForm(r);if(!cr.isFunction(D))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(cr.isDate(l))return l.toISOString();if(!y&&cr.isBlob(l))throw new qo("Blob is not supported. Use a Buffer instead.");return cr.isArrayBuffer(l)||cr.isTypedArray(l)?y&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function n(l,o,s){let u=l;if(l&&!s&&typeof l=="object"){if(cr.endsWith(o,"{}"))o=B?o:o.slice(0,-2),l=JSON.stringify(l);else if(cr.isArray(l)&&Hle(l)||(cr.isFileList(l)||cr.endsWith(o,"[]"))&&(u=cr.toArray(l)))return o=vB(o),u.forEach(function(h,g){!(cr.isUndefined(h)||h===null)&&r.append(m===!0?_B([o],g,c):m===null?o:o+"[]",f(h))}),!1}return H8(l)?!0:(r.append(_B(s,o,c),f(l)),!1)}const v=[],_=Object.assign(Wle,{defaultVisitor:n,convertValue:f,isVisitable:H8});function p(l,o){if(!cr.isUndefined(l)){if(v.indexOf(l)!==-1)throw Error("Circular reference detected in "+o.join("."));v.push(l),cr.forEach(l,function(u,d){(!(cr.isUndefined(u)||u===null)&&D.call(r,u,cr.isString(d)?d.trim():d,o,_))===!0&&p(u,o?o.concat(d):[d])}),v.pop()}}if(!cr.isObject(e))throw new TypeError("data must be an object");return p(e),r}function bB(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(B){return r[B]})}function W8(e,r){this._pairs=[],e&&Ax(e,this,r)}const xB=W8.prototype;xB.append=function(r,i){this._pairs.push([r,i])},xB.toString=function(r){const i=r?function(B){return r.call(this,B,bB)}:bB;return this._pairs.map(function(D){return i(D[0])+"="+i(D[1])},"").join("&")};function qle(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wB(e,r,i){if(!r)return e;const B=i&&i.encode||qle,D=i&&i.serialize;let c;if(D?c=D(r,i):c=cr.isURLSearchParams(r)?r.toString():new W8(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Yle{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){cr.forEach(this.handlers,function(B){B!==null&&r(B)})}}const kB=Yle,CB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xle={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:W8,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},q8=typeof window<"u"&&typeof document<"u",Y8=typeof navigator=="object"&&navigator||void 0,Zle=q8&&(!Y8||["ReactNative","NativeScript","NS"].indexOf(Y8.product)<0),Jle=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Kle=q8&&window.location.href||"http://localhost",th={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q8,hasStandardBrowserEnv:Zle,hasStandardBrowserWebWorkerEnv:Jle,navigator:Y8,origin:Kle},Symbol.toStringTag,{value:"Module"})),...Xle};function Qle(e,r){return Ax(e,new th.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return th.isNode&&cr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function ece(e){return cr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function tce(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SB(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&cr.isArray(D)?D.length:m,y?(cr.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!cr.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&cr.isArray(D[m])&&(D[m]=tce(D[m])),!a)}if(cr.isFormData(e)&&cr.isFunction(e.entries)){const i={};return cr.forEachEntry(e,(B,D)=>{r(ece(B),D,i,0)}),i}return null}function ace(e,r,i){if(cr.isString(e))try{return(r||JSON.parse)(e),cr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const X8={transitional:CB,adapter:["xhr","http","fetch"],transformRequest:[function(r,i){const B=i.getContentType()||"",D=B.indexOf("application/json")>-1,c=cr.isObject(r);if(c&&cr.isHTMLForm(r)&&(r=new FormData(r)),cr.isFormData(r))return D?JSON.stringify(SB(r)):r;if(cr.isArrayBuffer(r)||cr.isBuffer(r)||cr.isStream(r)||cr.isFile(r)||cr.isBlob(r)||cr.isReadableStream(r))return r;if(cr.isArrayBufferView(r))return r.buffer;if(cr.isURLSearchParams(r))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let a;if(c){if(B.indexOf("application/x-www-form-urlencoded")>-1)return Qle(r,this.formSerializer).toString();if((a=cr.isFileList(r))||B.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return Ax(a?{"files[]":r}:r,y&&new y,this.formSerializer)}}return c||D?(i.setContentType("application/json",!1),ace(r)):r}],transformResponse:[function(r){const i=this.transitional||X8.transitional,B=i&&i.forcedJSONParsing,D=this.responseType==="json";if(cr.isResponse(r)||cr.isReadableStream(r))return r;if(r&&cr.isString(r)&&(B&&!this.responseType||D)){const m=!(i&&i.silentJSONParsing)&&D;try{return JSON.parse(r)}catch(a){if(m)throw a.name==="SyntaxError"?qo.from(a,qo.ERR_BAD_RESPONSE,this,null,this.response):a}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:th.classes.FormData,Blob:th.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cr.forEach(["delete","get","head","post","put","patch"],e=>{X8.headers[e]={}});const Z8=X8,nce=cr.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"]),rce=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
20
20
|
`).forEach(function(m){D=m.indexOf(":"),i=m.substring(0,D).trim().toLowerCase(),B=m.substring(D+1).trim(),!(!i||r[i]&&nce[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},TB=Symbol("internals");function Hv(e){return e&&String(e).trim().toLowerCase()}function Mx(e){return e===!1||e==null?e:cr.isArray(e)?e.map(Mx):String(e)}function ice(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const oce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function J8(e,r,i,B,D){if(cr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!cr.isString(r)){if(cr.isString(B))return r.indexOf(B)!==-1;if(cr.isRegExp(B))return B.test(r)}}function sce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function lce(e,r){const i=cr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,m){return this[B].call(this,r,D,c,m)},configurable:!0})})}class Ix{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=Hv(y);if(!n)throw new Error("header name must be a non-empty string");const v=cr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=Mx(a))}const m=(a,y)=>cr.forEach(a,(f,n)=>c(f,n,y));if(cr.isPlainObject(r)||r instanceof this.constructor)m(r,i);else if(cr.isString(r)&&(r=r.trim())&&!oce(r))m(rce(r),i);else if(cr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=Hv(r),r){const B=cr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return ice(D);if(cr.isFunction(i))return i.call(this,D,B);if(cr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=Hv(r),r){const B=cr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||J8(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(m){if(m=Hv(m),m){const a=cr.findKey(B,m);a&&(!i||J8(B,B[a],a,i))&&(delete B[a],D=!0)}}return cr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||J8(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return cr.forEach(this,(D,c)=>{const m=cr.findKey(B,c);if(m){i[m]=Mx(D),delete i[c];return}const a=r?sce(c):String(c).trim();a!==c&&delete i[c],i[a]=Mx(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return cr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&cr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
21
21
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const B=(this[TB]=this[TB]={accessors:{}}).accessors,D=this.prototype;function c(m){const a=Hv(m);B[a]||(lce(D,m),B[a]=!0)}return cr.isArray(r)?r.forEach(c):c(r),this}}Ix.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cr.reduceDescriptors(Ix.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),cr.freezeMethods(Ix);const Lp=Ix;function K8(e,r){const i=this||Z8,B=r||i,D=Lp.from(B.headers);let c=B.data;return cr.forEach(e,function(a){c=a.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function EB(e){return!!(e&&e.__CANCEL__)}function Yg(e,r,i){qo.call(this,e??"canceled",qo.ERR_CANCELED,r,i),this.name="CanceledError"}cr.inherits(Yg,qo,{__CANCEL__:!0});function AB(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new qo("Request failed with status code "+i.status,[qo.ERR_BAD_REQUEST,qo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function cce(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function dce(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,m;return r=r!==void 0?r:1e3,function(y){const f=Date.now(),n=B[c];m||(m=f),i[D]=y,B[D]=f;let v=c,_=0;for(;v!==D;)_+=i[v++],v=v%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),f-m<r)return;const p=n&&f-n;return p?Math.round(_*1e3/p):void 0}}function uce(e,r){let i=0,B=1e3/r,D,c;const m=(f,n=Date.now())=>{i=n,D=null,c&&(clearTimeout(c),c=null),e.apply(null,f)};return[(...f)=>{const n=Date.now(),v=n-i;v>=B?m(f,n):(D=f,c||(c=setTimeout(()=>{c=null,m(D)},B-v)))},()=>D&&m(D)]}const Px=(e,r,i=3)=>{let B=0;const D=dce(50,250);return uce(c=>{const m=c.loaded,a=c.lengthComputable?c.total:void 0,y=m-B,f=D(y),n=m<=a;B=m;const v={loaded:m,total:a,progress:a?m/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-m)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},MB=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},IB=e=>(...r)=>cr.asap(()=>e(...r)),hce=th.hasStandardBrowserEnv?function(){const r=th.navigator&&/(msie|trident)/i.test(th.navigator.userAgent),i=document.createElement("a");let B;function D(c){let m=c;return r&&(i.setAttribute("href",m),m=i.href),i.setAttribute("href",m),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return B=D(window.location.href),function(m){const a=cr.isString(m)?D(m):m;return a.protocol===B.protocol&&a.host===B.host}}():function(){return function(){return!0}}(),pce=th.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const m=[e+"="+encodeURIComponent(r)];cr.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),cr.isString(B)&&m.push("path="+B),cr.isString(D)&&m.push("domain="+D),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fce(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mce(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function PB(e,r){return e&&!fce(r)?mce(e,r):r}const BB=e=>e instanceof Lp?{...e}:e;function e1(e,r){r=r||{};const i={};function B(f,n,v){return cr.isPlainObject(f)&&cr.isPlainObject(n)?cr.merge.call({caseless:v},f,n):cr.isPlainObject(n)?cr.merge({},n):cr.isArray(n)?n.slice():n}function D(f,n,v){if(cr.isUndefined(n)){if(!cr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!cr.isUndefined(n))return B(void 0,n)}function m(f,n){if(cr.isUndefined(n)){if(!cr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:a,headers:(f,n)=>D(BB(f),BB(n),!0)};return cr.forEach(Object.keys(Object.assign({},e,r)),function(n){const v=y[n]||D,_=v(e[n],r[n],n);cr.isUndefined(_)&&v!==a||(i[n]=_)}),i}const NB=e=>{const r=e1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:m,auth:a}=r;r.headers=m=Lp.from(m),r.url=wB(PB(r.baseURL,r.url),e.params,e.paramsSerializer),a&&m.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(cr.isFormData(i)){if(th.hasStandardBrowserEnv||th.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if((y=m.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];m.setContentType([f||"multipart/form-data",...n].join("; "))}}if(th.hasStandardBrowserEnv&&(B&&cr.isFunction(B)&&(B=B(r)),B||B!==!1&&hce(r.url))){const f=D&&c&&pce.read(c);f&&m.set(D,f)}return r},gce=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(i,B){const D=NB(e);let c=D.data;const m=Lp.from(D.headers).normalize();let{responseType:a,onUploadProgress:y,onDownloadProgress:f}=D,n,v,_,p,l;function o(){p&&p(),l&&l(),D.cancelToken&&D.cancelToken.unsubscribe(n),D.signal&&D.signal.removeEventListener("abort",n)}let s=new XMLHttpRequest;s.open(D.method.toUpperCase(),D.url,!0),s.timeout=D.timeout;function u(){if(!s)return;const h=Lp.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?s.responseText:s.response,status:s.status,statusText:s.statusText,headers:h,config:e,request:s};AB(function(x){i(x),o()},function(x){B(x),o()},b),s=null}"onloadend"in s?s.onloadend=u:s.onreadystatechange=function(){!s||s.readyState!==4||s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)||setTimeout(u)},s.onabort=function(){s&&(B(new qo("Request aborted",qo.ECONNABORTED,e,s)),s=null)},s.onerror=function(){B(new qo("Network Error",qo.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let g=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded";const b=D.transitional||CB;D.timeoutErrorMessage&&(g=D.timeoutErrorMessage),B(new qo(g,b.clarifyTimeoutError?qo.ETIMEDOUT:qo.ECONNABORTED,e,s)),s=null},c===void 0&&m.setContentType(null),"setRequestHeader"in s&&cr.forEach(m.toJSON(),function(g,b){s.setRequestHeader(b,g)}),cr.isUndefined(D.withCredentials)||(s.withCredentials=!!D.withCredentials),a&&a!=="json"&&(s.responseType=D.responseType),f&&([_,l]=Px(f,!0),s.addEventListener("progress",_)),y&&s.upload&&([v,p]=Px(y),s.upload.addEventListener("progress",v),s.upload.addEventListener("loadend",p)),(D.cancelToken||D.signal)&&(n=h=>{s&&(B(!h||h.type?new Yg(null,e,s):h),s.abort(),s=null)},D.cancelToken&&D.cancelToken.subscribe(n),D.signal&&(D.signal.aborted?n():D.signal.addEventListener("abort",n)));const d=cce(D.url);if(d&&th.protocols.indexOf(d)===-1){B(new qo("Unsupported protocol "+d+":",qo.ERR_BAD_REQUEST,e));return}s.send(c||null)})},yce=(e,r)=>{const{length:i}=e=e?e.filter(Boolean):[];if(r||i){let B=new AbortController,D;const c=function(f){if(!D){D=!0,a();const n=f instanceof Error?f:this.reason;B.abort(n instanceof qo?n:new Yg(n instanceof Error?n.message:n))}};let m=r&&setTimeout(()=>{m=null,c(new qo(`timeout ${r} of ms exceeded`,qo.ETIMEDOUT))},r);const a=()=>{e&&(m&&clearTimeout(m),m=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(c):f.removeEventListener("abort",c)}),e=null)};e.forEach(f=>f.addEventListener("abort",c));const{signal:y}=B;return y.unsubscribe=()=>cr.asap(a),y}},vce=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},_ce=async function*(e,r){for await(const i of bce(e))yield*vce(i,r)},bce=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const r=e.getReader();try{for(;;){const{done:i,value:B}=await r.read();if(i)break;yield B}}finally{await r.cancel()}},zB=(e,r,i,B)=>{const D=_ce(e,r);let c=0,m,a=y=>{m||(m=!0,B&&B(y))};return new ReadableStream({async pull(y){try{const{done:f,value:n}=await D.next();if(f){a(),y.close();return}let v=n.byteLength;if(i){let _=c+=v;i(_)}y.enqueue(new Uint8Array(n))}catch(f){throw a(f),f}},cancel(y){return a(y),D.return()}},{highWaterMark:2})},Bx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",OB=Bx&&typeof ReadableStream=="function",xce=Bx&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),FB=(e,...r)=>{try{return!!e(...r)}catch{return!1}},wce=OB&&FB(()=>{let e=!1;const r=new Request(th.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),LB=64*1024,Q8=OB&&FB(()=>cr.isReadableStream(new Response("").body)),Nx={stream:Q8&&(e=>e.body)};Bx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Nx[r]&&(Nx[r]=cr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new qo(`Response type '${r}' is not supported`,qo.ERR_NOT_SUPPORT,B)})})})(new Response);const kce=async e=>{if(e==null)return 0;if(cr.isBlob(e))return e.size;if(cr.isSpecCompliantForm(e))return(await new Request(th.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(cr.isArrayBufferView(e)||cr.isArrayBuffer(e))return e.byteLength;if(cr.isURLSearchParams(e)&&(e=e+""),cr.isString(e))return(await xce(e)).byteLength},Cce=async(e,r)=>{const i=cr.toFiniteNumber(e.getContentLength());return i??kce(r)},ek={http:Gle,xhr:gce,fetch:Bx&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:m,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=NB(e);f=f?(f+"").toLowerCase():"text";let p=yce([D,c&&c.toAbortSignal()],m),l;const o=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let s;try{if(y&&wce&&i!=="get"&&i!=="head"&&(s=await Cce(n,B))!==0){let b=new Request(r,{method:"POST",body:B,duplex:"half"}),w;if(cr.isFormData(B)&&(w=b.headers.get("content-type"))&&n.setContentType(w),b.body){const[x,S]=MB(s,Px(IB(y)));B=zB(b.body,LB,x,S)}}cr.isString(v)||(v=v?"include":"omit");const u="credentials"in Request.prototype;l=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:u?v:void 0});let d=await fetch(l);const h=Q8&&(f==="stream"||f==="response");if(Q8&&(a||h&&o)){const b={};["status","statusText","headers"].forEach(C=>{b[C]=d[C]});const w=cr.toFiniteNumber(d.headers.get("content-length")),[x,S]=a&&MB(w,Px(IB(a),!0))||[];d=new Response(zB(d.body,LB,x,()=>{S&&S(),o&&o()}),b)}f=f||"text";let g=await Nx[cr.findKey(Nx,f)||"text"](d,e);return!h&&o&&o(),await new Promise((b,w)=>{AB(b,w,{data:g,headers:Lp.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:l})})}catch(u){throw o&&o(),u&&u.name==="TypeError"&&/fetch/i.test(u.message)?Object.assign(new qo("Network Error",qo.ERR_NETWORK,e,l),{cause:u.cause||u}):qo.from(u,u&&u.code,e,l)}})};cr.forEach(ek,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const DB=e=>`- ${e}`,Sce=e=>cr.isFunction(e)||e===null||e===!1,RB={getAdapter:e=>{e=cr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let m;if(B=i,!Sce(i)&&(B=ek[(m=String(i)).toLowerCase()],B===void 0))throw new qo(`Unknown adapter '${m}'`);if(B)break;D[m||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=r?c.length>1?`since :
|
|
22
22
|
`+c.map(DB).join(`
|
|
23
23
|
`):" "+DB(c[0]):"as no adapter specified";throw new qo("There is no suitable adapter to dispatch the request "+m,"ERR_NOT_SUPPORT")}return B},adapters:ek};function tk(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Yg(null,e)}function VB(e){return tk(e),e.headers=Lp.from(e.headers),e.data=K8.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),RB.getAdapter(e.adapter||Z8.adapter)(e).then(function(B){return tk(e),B.data=K8.call(e,e.transformResponse,B),B.headers=Lp.from(B.headers),B},function(B){return EB(B)||(tk(e),B&&B.response&&(B.response.data=K8.call(e,e.transformResponse,B.response),B.response.headers=Lp.from(B.response.headers))),Promise.reject(B)})}const $B="1.7.7",ak={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{ak[e]=function(B){return typeof B===e||"a"+(r<1?"n ":" ")+e}});const jB={};ak.transitional=function(r,i,B){function D(c,m){return"[Axios v"+$B+"] Transitional option '"+c+"'"+m+(B?". "+B:"")}return(c,m,a)=>{if(r===!1)throw new qo(D(m," has been removed"+(i?" in "+i:"")),qo.ERR_DEPRECATED);return i&&!jB[m]&&(jB[m]=!0,console.warn(D(m," has been deprecated since v"+i+" and will be removed in the near future"))),r?r(c,m,a):!0}};function Tce(e,r,i){if(typeof e!="object")throw new qo("options must be an object",qo.ERR_BAD_OPTION_VALUE);const B=Object.keys(e);let D=B.length;for(;D-- >0;){const c=B[D],m=r[c];if(m){const a=e[c],y=a===void 0||m(a,c,e);if(y!==!0)throw new qo("option "+c+" must be "+y,qo.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new qo("Unknown option "+c,qo.ERR_BAD_OPTION)}}const nk={assertOptions:Tce,validators:ak},$m=nk.validators;class zx{constructor(r){this.defaults=r,this.interceptors={request:new kB,response:new kB}}async request(r,i){try{return await this._request(r,i)}catch(B){if(B instanceof Error){let D;Error.captureStackTrace?Error.captureStackTrace(D={}):D=new Error;const c=D.stack?D.stack.replace(/^.+\n/,""):"";try{B.stack?c&&!String(B.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
|
24
|
-
`+c):B.stack=c}catch{}}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=e1(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&nk.assertOptions(B,{silentJSONParsing:$m.transitional($m.boolean),forcedJSONParsing:$m.transitional($m.boolean),clarifyTimeoutError:$m.transitional($m.boolean)},!1),D!=null&&(cr.isFunction(D)?i.paramsSerializer={serialize:D}:nk.assertOptions(D,{encode:$m.function,serialize:$m.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let m=c&&cr.merge(c.common,c[i.method]);c&&cr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=Lp.concat(m,c);const a=[];let y=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(i)===!1||(y=y&&o.synchronous,a.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let n,v=0,_;if(!y){const l=[VB.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);v<_;)n=n.then(l[v++],l[v++]);return n}_=a.length;let p=i;for(v=0;v<_;){const l=a[v++],o=a[v++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=VB.call(this,p)}catch(l){return Promise.reject(l)}for(v=0,_=f.length;v<_;)n=n.then(f[v++],f[v++]);return n}getUri(r){r=e1(this.defaults,r);const i=PB(r.baseURL,r.url);return wB(i,r.params,r.paramsSerializer)}}cr.forEach(["delete","get","head","options"],function(r){zx.prototype[r]=function(i,B){return this.request(e1(B||{},{method:r,url:i,data:(B||{}).data}))}}),cr.forEach(["post","put","patch"],function(r){function i(B){return function(c,m,a){return this.request(e1(a||{},{method:r,headers:B?{"Content-Type":"multipart/form-data"}:{},url:c,data:m}))}}zx.prototype[r]=i(),zx.prototype[r+"Form"]=i(!0)});const Ox=zx;class rk{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(c){i=c});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const m=new Promise(a=>{B.subscribe(a),c=a}).then(D);return m.cancel=function(){B.unsubscribe(c)},m},r(function(c,m,a){B.reason||(B.reason=new Yg(c,m,a),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=B=>{r.abort(B)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new rk(function(D){r=D}),cancel:r}}}const Ece=rk;function Ace(e){return function(i){return e.apply(null,i)}}function Mce(e){return cr.isObject(e)&&e.isAxiosError===!0}const ik={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(ik).forEach(([e,r])=>{ik[r]=e});const Ice=ik;function UB(e){const r=new Ox(e),i=oB(Ox.prototype.request,r);return cr.extend(i,Ox.prototype,r,{allOwnKeys:!0}),cr.extend(i,r,null,{allOwnKeys:!0}),i.create=function(D){return UB(e1(e,D))},i}const Pd=UB(Z8);Pd.Axios=Ox,Pd.CanceledError=Yg,Pd.CancelToken=Ece,Pd.isCancel=EB,Pd.VERSION=$B,Pd.toFormData=Ax,Pd.AxiosError=qo,Pd.Cancel=Pd.CanceledError,Pd.all=function(r){return Promise.all(r)},Pd.spread=Ace,Pd.isAxiosError=Mce,Pd.mergeConfig=e1,Pd.AxiosHeaders=Lp,Pd.formToJSON=e=>SB(cr.isHTMLForm(e)?new FormData(e):e),Pd.getAdapter=RB.getAdapter,Pd.HttpStatusCode=Ice,Pd.default=Pd;const $c=Pd,GB="/icn-play.svg",cma="",Pce={components:{BarraLeft:Zse,BarraRight:rle},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null},teams:{type:Object,default:()=>({home:{},away:{}})}},data(){return{gamesBySeason:{},objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...eh("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...ed("nextGeneral",["homeTeam","visitingTeam"]),homeTeamLogo(){return this.teams&&this.teams.home?this.teams.home.team_logo:""},awayTeamLogo(){return this.teams&&this.teams.away?this.teams.away.team_logo:""},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[55,324,323,608,39,774,802,52,53,40,54]:i=e.category:e.category==0?i=[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]:i=e.category:e.type==3?e.category==0?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.category:e.category!=0?i=e.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const B=[1,2,3];let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIdsToFilter:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(D.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",D)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.generalCategoriesIds.accomplished===3;if((r.is_live||r.game_status===0)&&this.showLiveData){const D=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return D?{numberValue:B?e[i].accomplished.totalLive/D*100:e[i].accomplished.totalLive,numberBarPercent:e[i].accomplished.totalLive/D}:this.objectZeroValues}else if(r.game_status===1){const D=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return D?{numberValue:B?e[i].accomplished.totalPostGame/D*100:e[i].accomplished.totalPostGame,numberBarPercent:e[i].accomplished.totalPostGame/D}:this.objectZeroValues}if(B){const D=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,c=e[i].accomplished.avgPostGame/D;return e[i].accomplished.avgPostGame?{numberValue:c<1?c*100:c,numberBarPercent:e[i].accomplished.avgPostGame/D}:this.objectZeroValues}else{const D=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[i].accomplished.avgPostGame?{numberValue:e[i].accomplished.avgPostGame,numberBarPercent:e[i].accomplished.avgPostGame/D}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},i=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await $c.get(i,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},HB=e=>(t.pushScopeId("data-v-0f568b82"),e=e(),t.popScopeId(),e),Bce={class:"card"},Nce={class:"card__header"},zce={class:"card__header__team-logo"},Oce=["src"],Fce={class:"card__header__title"},Lce={class:"card__header__team-logo"},Dce=["src"],Rce={class:"card__stats"},Vce={key:0,class:"card__stats__stat"},$ce=["onClick"],jce=[HB(()=>t.createElementVNode("img",{src:GB},null,-1))],Uce={key:1,class:"card__stats__stat__button_empty"},Gce={class:"card__stats__title"},Hce={class:"card__stats__scores"},Wce={key:0},qce={key:1},Yce={key:2},Xce={key:3},Zce={class:"card__stats__bars"},Jce=["onClick"],Kce=[HB(()=>t.createElementVNode("img",{src:GB},null,-1))],Qce={key:1,class:"card__stats__stat__button_empty"};function ede(e,r,i,B,D,c){const m=t.resolveComponent("BarraLeft"),a=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Bce,[t.createElementVNode("div",Nce,[t.createElementVNode("div",zce,[c.homeTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:c.homeTeamLogo,alt:""},null,8,Oce)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fce,t.toDisplayString(i.data.name),1),t.createElementVNode("div",Lce,[c.awayTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:c.awayTeamLogo,alt:""},null,8,Dce)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.data.subcategories,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[y.isVisible?(t.openBlock(),t.createElementBlock("div",Vce,[t.createElementVNode("div",null,[c.canPlayVideos.home&&c.hVal(y)&&c.hVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:n=>c.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},c.canPlayVideos.home)},jce,8,$ce)):(t.openBlock(),t.createElementBlock("div",Uce))]),t.createElementVNode("div",null,[t.createElementVNode("div",Gce,t.toDisplayString(y.name),1),t.createElementVNode("div",Hce,[c.hVal(y)?(t.openBlock(),t.createElementBlock("span",Wce,[t.createTextVNode(t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",qce,"0")),c.aVal(y)?(t.openBlock(),t.createElementBlock("span",Yce,[t.createTextVNode(t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Xce,"0"))]),t.createElementVNode("div",Zce,[t.createElementVNode("div",null,[c.hVal(y)?(t.openBlock(),t.createBlock(m,{key:0,postmatch:c.hVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(m,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[c.aVal(y)?(t.openBlock(),t.createBlock(a,{key:0,postmatch:c.aVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(a,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[c.canPlayVideos.away&&c.aVal(y)&&c.aVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:n=>c.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},c.canPlayVideos.away)},Kce,8,Jce)):(t.openBlock(),t.createElementBlock("div",Qce))])])):t.createCommentVNode("",!0)],64))),128))])])}const tde=$i(Pce,[["render",ede],["__scopeId","data-v-0f568b82"]]),hma="",ade={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},jm=e=>(t.pushScopeId("data-v-7630efe1"),e=e(),t.popScopeId(),e),nde={class:"comparative-card"},rde=jm(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),ide={class:"versus"},ode={class:"team-badge"},sde=["src","alt"],lde=jm(()=>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)),cde=jm(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),dde={class:"team-badge"},ude=["src","alt"],hde={class:"details"},pde={key:0},fde={key:0},mde={key:1},gde=jm(()=>t.createElementVNode("td",null,"Puntos",-1)),yde=jm(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),vde=jm(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),_de=jm(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),bde=jm(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function xde(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",nde,[rde,t.createElementVNode("div",ide,[t.createElementVNode("div",ode,[i.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.local.team_logo,alt:i.local.team_name},null,8,sde)):t.createCommentVNode("",!0),lde]),cde,t.createElementVNode("div",dde,[i.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.away.team_logo,alt:i.away.team_name},null,8,ude)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",hde,[i.away&&i.local?(t.openBlock(),t.createElementBlock("table",pde,[t.createElementVNode("tbody",null,[i.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",fde,[t.createElementVNode("td",null,t.toDisplayString(i.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),i.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(i.away.table_position),1)])):t.createCommentVNode("",!0),i.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",mde,[t.createElementVNode("td",null,t.toDisplayString(i.local.points),1),gde,t.createElementVNode("td",null,t.toDisplayString(i.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_played),1),yde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_won),1),vde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_lost),1),_de,t.createElementVNode("td",null,t.toDisplayString(i.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_tied),1),bde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const wde=$i(ade,[["render",xde],["__scopeId","data-v-7630efe1"]]),pma="",kde=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ok={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},WB=()=>{t.useCssVars(e=>({"26acffa8":e.backgroundColor,"3d95bef4":e.height,"86ba1cc0":e.arrowsPosition,"140b6ada":e.arrowsPadding+"px","7df46be5":e.arrowsBackground,"33f99798":e.arrowsHeight*2+"px","1c8a858d":e.arrowsWidth*2+"px","4a7876c9":e.arrowsRadius,"2ff67e63":e.arrowsBorder,"59c5dd08":e.arrowsMargin+"px","6658215d":e.arrowsContainerBgL,66582163:e.arrowsContainerBgR,e5900a2e:e.scrollColor}))},qB=ok.setup;ok.setup=qB?(e,r)=>(WB(),qB(e,r)):WB;const Cde={ref:"gscScrollableContainer",class:"scrollable-container"},Sde={class:"scrollable-arrows"},Tde=["width","height","viewBox"],Ede=["stroke"],Ade={class:"scrollable-wrapper"},Mde={class:"scrollable-arrows"},Ide=["width","height","viewBox"],Pde=["stroke"];function Bde(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Cde,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...m)=>c.scrollLeft&&c.scrollLeft(...m))},[t.createElementVNode("div",Sde,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,Ede)],8,Tde))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...m)=>c.getScroll&&c.getScroll(...m))},[t.createElementVNode("div",Ade,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...m)=>c.scrollRight&&c.scrollRight(...m))},[t.createElementVNode("div",Mde,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,Pde)],8,Ide))])],2)):t.createCommentVNode("",!0)],512)}const Wv=kde(ok,[["render",Bde],["__scopeId","data-v-7d0811ac"]]),fma="";let YB=null;const Nde={name:"App",components:{GscLinearTeamStats:tde,TableComparative:wde,GSCSlider:Wv},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...eh("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive&&!this.showLiveData}},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)YB=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),YB.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const r=await $c.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id);let i=-1,B=-1;if(this.tournamentType!=1)i=r.data.data.findIndex(D=>D.team_id===this.gameForAnalysis.home_team),B=r.data.data.findIndex(D=>D.team_id===this.gameForAnalysis.visiting_team);else for(let D=0;D<r.data.groups.length;D++)i==-1&&(i=r.data.groups[D].data.findIndex(c=>c.team_id===this.gameForAnalysis.home_team),i!=-1&&(this.home=r.data.groups[D].data[i])),B==-1&&(B=r.data.groups[D].data.findIndex(c=>c.team_id===this.gameForAnalysis.visiting_team),B!=-1&&(this.away=r.data.groups[D].data[B]));this.tournamentType!=1&&(this.home=r.data.data[i],this.away=r.data.data[B])}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},zde={class:"container",ref:"gamesContainer"},Ode={key:0,class:"grid-container"},Fde={key:0,class:"item"},Lde={class:"item"},Dde={class:"item"},Rde={class:"item"},Vde={class:"item"},$de={class:"item"},jde={class:"item"},Ude={class:"grid-container"},Gde={key:0,class:"item-comparative"},Hde={class:"table-movil-container"};function Wde(e,r,i,B,D,c){const m=t.resolveComponent("TableComparative"),a=t.resolveComponent("GscLinearTeamStats"),y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",zde,[D.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ude,[D.home&&D.away&&c.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Gde,[t.createVNode(m,{local:D.home,"tournament-type":i.tournamentType,away:D.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(y,{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",Hde,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510&&D.gamesContainerWidth>450?"width: 400px":D.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[0],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[1],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[2],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[3],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[4],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[5],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",Ode,[D.home&&D.away&&c.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Fde,[t.createVNode(m,{local:D.home,"tournament-type":i.tournamentType,away:D.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Lde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Dde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Rde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Vde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",$de,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",jde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])])]))],512)}const qde=$i(Nde,[["render",Wde]]),mma="",gma="",XB=["#cbee6b","#0033C5"],Yde={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:{...eh("nextGeneral",["showLiveData","gameForAnalysis"]),...ed("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},isLiveLike(){return this.gameForAnalysis.game_status===0||this.gameForAnalysis.is_live}},methods:{avg(e,r){return r?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.forEach((e,r)=>{const i=this.getChartOptions(),B=this.getChartSeries(e.subcategories,i);this.arrayFilledSeries.push(B),this.arrayChartOptions.push(i),e.id=`dC${r}`;const D=this.$refs[e.id];D&&D[0].updateSeries(B,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:XB,fill:{colors:XB,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:r,dataPointIndex:i,w:B}){const D=B.config.arraySubcategories[i].name,c=B.config.series[r].name,m=B.config.series[r].dataTotal[i],a=e[r][i];return B.config.arraySubcategories[i].id==="3-0"?`
|
|
24
|
+
`+c):B.stack=c}catch{}}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=e1(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&nk.assertOptions(B,{silentJSONParsing:$m.transitional($m.boolean),forcedJSONParsing:$m.transitional($m.boolean),clarifyTimeoutError:$m.transitional($m.boolean)},!1),D!=null&&(cr.isFunction(D)?i.paramsSerializer={serialize:D}:nk.assertOptions(D,{encode:$m.function,serialize:$m.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let m=c&&cr.merge(c.common,c[i.method]);c&&cr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=Lp.concat(m,c);const a=[];let y=!0;this.interceptors.request.forEach(function(o){typeof o.runWhen=="function"&&o.runWhen(i)===!1||(y=y&&o.synchronous,a.unshift(o.fulfilled,o.rejected))});const f=[];this.interceptors.response.forEach(function(o){f.push(o.fulfilled,o.rejected)});let n,v=0,_;if(!y){const l=[VB.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);v<_;)n=n.then(l[v++],l[v++]);return n}_=a.length;let p=i;for(v=0;v<_;){const l=a[v++],o=a[v++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=VB.call(this,p)}catch(l){return Promise.reject(l)}for(v=0,_=f.length;v<_;)n=n.then(f[v++],f[v++]);return n}getUri(r){r=e1(this.defaults,r);const i=PB(r.baseURL,r.url);return wB(i,r.params,r.paramsSerializer)}}cr.forEach(["delete","get","head","options"],function(r){zx.prototype[r]=function(i,B){return this.request(e1(B||{},{method:r,url:i,data:(B||{}).data}))}}),cr.forEach(["post","put","patch"],function(r){function i(B){return function(c,m,a){return this.request(e1(a||{},{method:r,headers:B?{"Content-Type":"multipart/form-data"}:{},url:c,data:m}))}}zx.prototype[r]=i(),zx.prototype[r+"Form"]=i(!0)});const Ox=zx;class rk{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(c){i=c});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const m=new Promise(a=>{B.subscribe(a),c=a}).then(D);return m.cancel=function(){B.unsubscribe(c)},m},r(function(c,m,a){B.reason||(B.reason=new Yg(c,m,a),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const r=new AbortController,i=B=>{r.abort(B)};return this.subscribe(i),r.signal.unsubscribe=()=>this.unsubscribe(i),r.signal}static source(){let r;return{token:new rk(function(D){r=D}),cancel:r}}}const Ece=rk;function Ace(e){return function(i){return e.apply(null,i)}}function Mce(e){return cr.isObject(e)&&e.isAxiosError===!0}const ik={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(ik).forEach(([e,r])=>{ik[r]=e});const Ice=ik;function UB(e){const r=new Ox(e),i=oB(Ox.prototype.request,r);return cr.extend(i,Ox.prototype,r,{allOwnKeys:!0}),cr.extend(i,r,null,{allOwnKeys:!0}),i.create=function(D){return UB(e1(e,D))},i}const Pd=UB(Z8);Pd.Axios=Ox,Pd.CanceledError=Yg,Pd.CancelToken=Ece,Pd.isCancel=EB,Pd.VERSION=$B,Pd.toFormData=Ax,Pd.AxiosError=qo,Pd.Cancel=Pd.CanceledError,Pd.all=function(r){return Promise.all(r)},Pd.spread=Ace,Pd.isAxiosError=Mce,Pd.mergeConfig=e1,Pd.AxiosHeaders=Lp,Pd.formToJSON=e=>SB(cr.isHTMLForm(e)?new FormData(e):e),Pd.getAdapter=RB.getAdapter,Pd.HttpStatusCode=Ice,Pd.default=Pd;const $c=Pd,GB="/icn-play.svg",cma="",Pce={components:{BarraLeft:Zse,BarraRight:rle},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0},playVideosPrivileges:{type:Object,default:null},teams:{type:Object,default:()=>({home:{},away:{}})}},data(){return{gamesBySeason:{},objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...eh("nextGeneral",["gameForAnalysis","seasonId","showLiveData"]),...ed("nextGeneral",["homeTeam","visitingTeam"]),homeTeamLogo(){return this.teams&&this.teams.home?this.teams.home.team_logo:""},awayTeamLogo(){return this.teams&&this.teams.away?this.teams.away.team_logo:""},canPlayVideos(){let e={home:!0,away:!0};return this.playVideosPrivileges&&(this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e={home:this.playVideosPrivileges.isPrivilegesTeamHome,away:!this.playVideosPrivileges.isPrivilegesTeamHome}:e={home:!0,away:!0}:e={home:!1,away:!1}),e}},methods:{onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[55,324,323,608,39,774,802,52,53,40,54]:i=e.category:e.category==0?i=[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]:i=e.category:e.type==3?e.category==0?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.category:e.category!=0?i=e.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const B=[1,2,3];let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIdsToFilter:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(D.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",D)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.generalCategoriesIds.accomplished===3;if((r.is_live||r.game_status===0)&&this.showLiveData){const D=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return D?{numberValue:B?e[i].accomplished.totalLive/D*100:e[i].accomplished.totalLive,numberBarPercent:e[i].accomplished.totalLive/D}:this.objectZeroValues}else if(r.game_status===1){const D=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return D?{numberValue:B?e[i].accomplished.totalPostGame/D*100:e[i].accomplished.totalPostGame,numberBarPercent:e[i].accomplished.totalPostGame/D}:this.objectZeroValues}if(B){const D=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,c=e[i].accomplished.avgPostGame/D;return e[i].accomplished.avgPostGame?{numberValue:c<1?c*100:c,numberBarPercent:e[i].accomplished.avgPostGame/D}:this.objectZeroValues}else{const D=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[i].accomplished.avgPostGame?{numberValue:e[i].accomplished.avgPostGame,numberBarPercent:e[i].accomplished.avgPostGame/D}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},i=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await $c.get(i,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},HB=e=>(t.pushScopeId("data-v-0f568b82"),e=e(),t.popScopeId(),e),Bce={class:"card"},Nce={class:"card__header"},zce={class:"card__header__team-logo"},Oce=["src"],Fce={class:"card__header__title"},Lce={class:"card__header__team-logo"},Dce=["src"],Rce={class:"card__stats"},Vce={key:0,class:"card__stats__stat"},$ce=["onClick"],jce=[HB(()=>t.createElementVNode("img",{src:GB},null,-1))],Uce={key:1,class:"card__stats__stat__button_empty"},Gce={class:"card__stats__title"},Hce={class:"card__stats__scores"},Wce={key:0},qce={key:1},Yce={key:2},Xce={key:3},Zce={class:"card__stats__bars"},Jce=["onClick"],Kce=[HB(()=>t.createElementVNode("img",{src:GB},null,-1))],Qce={key:1,class:"card__stats__stat__button_empty"};function ede(e,r,i,B,D,c){const m=t.resolveComponent("BarraLeft"),a=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",Bce,[t.createElementVNode("div",Nce,[t.createElementVNode("div",zce,[c.homeTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:c.homeTeamLogo,alt:""},null,8,Oce)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fce,t.toDisplayString(i.data.name),1),t.createElementVNode("div",Lce,[c.awayTeamLogo?(t.openBlock(),t.createElementBlock("img",{key:0,src:c.awayTeamLogo,alt:""},null,8,Dce)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rce,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.data.subcategories,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[y.isVisible?(t.openBlock(),t.createElementBlock("div",Vce,[t.createElementVNode("div",null,[c.canPlayVideos.home&&c.hVal(y)&&c.hVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_left",onClick:n=>c.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id},c.canPlayVideos.home)},jce,8,$ce)):(t.openBlock(),t.createElementBlock("div",Uce))]),t.createElementVNode("div",null,[t.createElementVNode("div",Gce,t.toDisplayString(y.name),1),t.createElementVNode("div",Hce,[c.hVal(y)?(t.openBlock(),t.createElementBlock("span",Wce,[t.createTextVNode(t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",qce,"0")),c.aVal(y)?(t.openBlock(),t.createElementBlock("span",Yce,[t.createTextVNode(t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(y).numberValue))),1),y.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Xce,"0"))]),t.createElementVNode("div",Zce,[t.createElementVNode("div",null,[c.hVal(y)?(t.openBlock(),t.createBlock(m,{key:0,postmatch:c.hVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(m,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[c.aVal(y)?(t.openBlock(),t.createBlock(a,{key:0,postmatch:c.aVal(y).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(a,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[c.canPlayVideos.away&&c.aVal(y)&&c.aVal(y).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"card__stats__stat__button card__stats__stat__button_right",onClick:n=>c.onclickPlayVideos({category:y.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id},c.canPlayVideos.away)},Kce,8,Jce)):(t.openBlock(),t.createElementBlock("div",Qce))])])):t.createCommentVNode("",!0)],64))),128))])])}const tde=$i(Pce,[["render",ede],["__scopeId","data-v-0f568b82"]]),hma="",ade={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},tournamentType:{type:Number,default:0},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},jm=e=>(t.pushScopeId("data-v-7630efe1"),e=e(),t.popScopeId(),e),nde={class:"comparative-card"},rde=jm(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),ide={class:"versus"},ode={class:"team-badge"},sde=["src","alt"],lde=jm(()=>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)),cde=jm(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),dde={class:"team-badge"},ude=["src","alt"],hde={class:"details"},pde={key:0},fde={key:0},mde={key:1},gde=jm(()=>t.createElementVNode("td",null,"Puntos",-1)),yde=jm(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),vde=jm(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),_de=jm(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),bde=jm(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function xde(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",nde,[rde,t.createElementVNode("div",ide,[t.createElementVNode("div",ode,[i.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.local.team_logo,alt:i.local.team_name},null,8,sde)):t.createCommentVNode("",!0),lde]),cde,t.createElementVNode("div",dde,[i.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:i.away.team_logo,alt:i.away.team_name},null,8,ude)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",hde,[i.away&&i.local?(t.openBlock(),t.createElementBlock("table",pde,[t.createElementVNode("tbody",null,[i.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",fde,[t.createElementVNode("td",null,t.toDisplayString(i.local.table_position),1),t.createElementVNode("td",null,[t.createTextVNode("Posición "),i.tournamentType==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("en la tabla")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("en el grupo")],64))]),t.createElementVNode("td",null,t.toDisplayString(i.away.table_position),1)])):t.createCommentVNode("",!0),i.tournamentType!=2?(t.openBlock(),t.createElementBlock("tr",mde,[t.createElementVNode("td",null,t.toDisplayString(i.local.points),1),gde,t.createElementVNode("td",null,t.toDisplayString(i.away.points),1)])):t.createCommentVNode("",!0),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_played),1),yde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_won),1),vde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_lost),1),_de,t.createElementVNode("td",null,t.toDisplayString(i.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(i.local.games_tied),1),bde,t.createElementVNode("td",null,t.toDisplayString(i.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const wde=$i(ade,[["render",xde],["__scopeId","data-v-7630efe1"]]),pma="",kde=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},ok={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},WB=()=>{t.useCssVars(e=>({"26acffa8":e.backgroundColor,"3d95bef4":e.height,"86ba1cc0":e.arrowsPosition,"140b6ada":e.arrowsPadding+"px","7df46be5":e.arrowsBackground,"33f99798":e.arrowsHeight*2+"px","1c8a858d":e.arrowsWidth*2+"px","4a7876c9":e.arrowsRadius,"2ff67e63":e.arrowsBorder,"59c5dd08":e.arrowsMargin+"px","6658215d":e.arrowsContainerBgL,66582163:e.arrowsContainerBgR,e5900a2e:e.scrollColor}))},qB=ok.setup;ok.setup=qB?(e,r)=>(WB(),qB(e,r)):WB;const Cde={ref:"gscScrollableContainer",class:"scrollable-container"},Sde={class:"scrollable-arrows"},Tde=["width","height","viewBox"],Ede=["stroke"],Ade={class:"scrollable-wrapper"},Mde={class:"scrollable-arrows"},Ide=["width","height","viewBox"],Pde=["stroke"];function Bde(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",Cde,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...m)=>c.scrollLeft&&c.scrollLeft(...m))},[t.createElementVNode("div",Sde,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,Ede)],8,Tde))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...m)=>c.getScroll&&c.getScroll(...m))},[t.createElementVNode("div",Ade,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...m)=>c.scrollRight&&c.scrollRight(...m))},[t.createElementVNode("div",Mde,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,Pde)],8,Ide))])],2)):t.createCommentVNode("",!0)],512)}const Wv=kde(ok,[["render",Bde],["__scopeId","data-v-7d0811ac"]]),fma="";let YB=null;const Nde={name:"App",components:{GscLinearTeamStats:tde,TableComparative:wde,GSCSlider:Wv},props:{seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},tournamentType:{type:Number,default:0},playVideosPrivileges:{type:Object,default:null}},computed:{...eh("nextGeneral",["gameForAnalysis","seasonId","isLive","showLiveData"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"]),isComparativeVisible(){return!this.isLive&&!this.showLiveData}},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)YB=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),YB.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const r=await $c.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id);let i=-1,B=-1;if(this.tournamentType!=1)i=r.data.data.findIndex(D=>D.team_id===this.gameForAnalysis.home_team),B=r.data.data.findIndex(D=>D.team_id===this.gameForAnalysis.visiting_team);else for(let D=0;D<r.data.groups.length;D++)i==-1&&(i=r.data.groups[D].data.findIndex(c=>c.team_id===this.gameForAnalysis.home_team),i!=-1&&(this.home=r.data.groups[D].data[i])),B==-1&&(B=r.data.groups[D].data.findIndex(c=>c.team_id===this.gameForAnalysis.visiting_team),B!=-1&&(this.away=r.data.groups[D].data[B]));this.tournamentType!=1&&(this.home=r.data.data[i],this.away=r.data.data[B])}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},zde={class:"container",ref:"gamesContainer"},Ode={key:0,class:"grid-container"},Fde={key:0,class:"item"},Lde={class:"item"},Dde={class:"item"},Rde={class:"item"},Vde={class:"item"},$de={class:"item"},jde={class:"item"},Ude={class:"grid-container"},Gde={key:0,class:"item-comparative"},Hde={class:"table-movil-container"};function Wde(e,r,i,B,D,c){const m=t.resolveComponent("TableComparative"),a=t.resolveComponent("GscLinearTeamStats"),y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",zde,[D.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ude,[D.home&&D.away&&c.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Gde,[t.createVNode(m,{local:D.home,"tournament-type":i.tournamentType,away:D.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0)]),t.createVNode(y,{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",Hde,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510&&D.gamesContainerWidth>450?"width: 400px":D.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[0],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[1],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[2],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[3],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[4],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(D.gamesContainerWidth<510?"width: 400px":D.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,data:e.arrayFilledDataSortedByPriority[5],teams:{home:D.home,away:D.away}},null,8,["play-videos-privileges","onOpenmedia","data","teams"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",Ode,[D.home&&D.away&&c.isComparativeVisible?(t.openBlock(),t.createElementBlock("div",Fde,[t.createVNode(m,{local:D.home,"tournament-type":i.tournamentType,away:D.away,fontFamily:"Poppins-Light"},null,8,["local","tournament-type","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Lde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[0],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Dde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[1],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Rde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[2],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",Vde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[3],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",$de,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[4],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])]),t.createElementVNode("div",jde,[t.createVNode(a,{"play-videos-privileges":i.playVideosPrivileges,"can-play-videos":i.canPlayVideos,data:e.arrayFilledDataSortedByPriority[5],teams:{home:D.home,away:D.away},onOpenmedia:c.openmedia},null,8,["play-videos-privileges","can-play-videos","data","teams","onOpenmedia"])])]))],512)}const qde=$i(Nde,[["render",Wde]]),mma="",gma="",XB=["#0033C5","#cbee6b"],Yde={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:{...eh("nextGeneral",["showLiveData","gameForAnalysis"]),...ed("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},isLiveLike(){return this.gameForAnalysis.game_status===0||this.gameForAnalysis.is_live}},methods:{avg(e,r){return r?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.forEach((e,r)=>{const i=this.getChartOptions(),B=this.getChartSeries(e.subcategories,i);this.arrayFilledSeries.push(B),this.arrayChartOptions.push(i),e.id=`dC${r}`;const D=this.$refs[e.id];D&&D[0].updateSeries(B,!0),this.arrayDataForCharts.push(e)})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:XB,fill:{colors:XB,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:r,dataPointIndex:i,w:B}){const D=B.config.arraySubcategories[i].name,c=B.config.series[r].name,m=B.config.series[r].dataTotal[i],a=e[r][i];return B.config.arraySubcategories[i].id==="3-0"?`
|
|
25
25
|
<div class="custom-tooltip-apexchart" style="display: none !important;">
|
|
26
26
|
<div class="__title">${D}:</div>
|
|
27
27
|
<div class="__totals">${c}: ${a}%</div>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<div class="__title">${D}:</div>
|
|
32
32
|
<div class="__totals">${c}: ${m}</div>
|
|
33
33
|
</div>
|
|
34
|
-
`}}}},getChartSeries(e,r){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{if(D.isVisible){r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);const m=D.homeTeam[this.homeTeamStatisticsType].totalPostGame+D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(m?D.homeTeam[this.homeTeamStatisticsType].totalPostGame/m:0))),i.dataTotal.push(D.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(m?D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/m:0))),B.dataTotal.push(D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)}})):(i={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{if(D.isVisible){r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);let m,a,y,f;const n=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;if(this.isLiveLike&&this.showLiveData){const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;m=v?D.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=D.homeTeam[this.homeTeamStatisticsType].totalLive}else this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(m=D.homeTeam.accomplished.avgPostGame/n,y=D.homeTeam.accomplished.totalPostGame):(m=n?D.homeTeam[this.homeTeamStatisticsType].avgPostGame/n:0,y=D.homeTeam[this.homeTeamStatisticsType].totalPostGame);if(this.isLiveLike&&this.showLiveData){const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?D.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalLive}else this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(a=D.visitingTeam.accomplished.avgPostGame/n,f=D.visitingTeam.accomplished.totalPostGame):(a=n?D.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/n:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);i.data.push(Math.round(120*m)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))}})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,r="homeTeam"){return e.id==="3-0"&&(e[r].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[r].accomplished||0},showModal(e,r,i){const B=i===0?"homeTeam":"visitingTeam",D=e.config.arraySubcategories[r]||{};this.tooltip.isLeagueAvgVisible=D.id!=="3-0",this.tooltip.data=this.getSubcategoryData(D,B),this.tooltip.local=i===0,this.tooltip.names=D.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(D);const c=e.globals.clientX||0,m=e.globals.clientY||0;this.globals.x=c,this.globals.y=m,this.tooltip.x=c,this.tooltip.y=m>700?m-250:m;const a=D.generalCategoriesIds.accomplished===3;if(a){const y=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?D[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,r){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(r===0)return i;const B=13;if(i.length>B){let D=i.split(" ");i=[];let c="",m="",a=D.slice(-1)[0];D.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(m.trim()),c=y),m=c,a===y&&i.push(m.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((r,i)=>r+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},Xde=e=>(t.pushScopeId("data-v-6ceff724"),e=e(),t.popScopeId(),e),Zde={class:"distribution"},Jde={class:"distribution__container"},Kde={class:"distribution__container__chart-type__title"},Qde=Xde(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),eue={class:"distribution__container__chart-type__chart"};function tue(e,r,i,B,D,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Zde,[t.createElementVNode("div",Jde,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Kde,t.toDisplayString(a.name),1),Qde,t.createElementVNode("div",eue,[t.createVNode(m,{ref_for:!0,ref:a.id,type:"radar",height:D.height,options:D.arrayChartOptions[y],series:D.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const aue=$i(Yde,[["render",tue],["__scopeId","data-v-6ceff724"]]),nue=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},sk={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},ZB=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},JB=sk.setup;sk.setup=JB?(e,r)=>(ZB(),JB(e,r)):ZB;const rue={key:0,class:"text-left"},iue=["width","src"],oue=["checked"],sue=["width","src"],lue={key:3,class:"text-right"};function cue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",rue,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,iue)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:D.OptionDefault},null,40,oue),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,sue)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",lue,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const due=nue(sk,[["render",cue],["__scopeId","data-v-e2a20444"]]),yma="",vma="",uue={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 hue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:r[0]||(r[0]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const KB=$i(uue,[["render",hue],["__scopeId","data-v-0cf5a19c"]]),_ma="",pue={name:"SoccerChalkboardXg",components:{Tooltip:KB},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,D));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},qv=e=>(t.pushScopeId("data-v-0e03d462"),e=e(),t.popScopeId(),e),fue={class:"soccer-chalkboard-xg"},mue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},gue={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},yue=qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),vue=["id"],_ue=["fill"],bue=qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),xue=["id"],wue=["x1","y1","x2","y2","stroke"],kue=["x1","y1","x2","y2","stroke","marker-end"],Cue=["onMouseover"],Sue=["x","y","fill"],Tue=["x","y"],Eue={class:"tooltip-data has-text-left"},Aue={class:"bold"},Mue={class:"tooltip-image"},Iue={class:"tooltip-image"},Pue=["src"],Bue={class:"tooltip-xg"},Nue={key:0},zue=qv(()=>t.createElementVNode("span",null,"xGi:",-1)),Oue=qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Fue={key:1},Lue=qv(()=>t.createElementVNode("span",null,"xGf:",-1));function Due(e,r,i,B,D,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",fue,[(t.openBlock(),t.createElementBlock("svg",mue,[(t.openBlock(),t.createElementBlock("svg",gue,[t.createElementVNode("defs",null,[yue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,_ue)],8,vue))),128)),bue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,wue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,kue),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,Sue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,Tue)],40,Cue)],8,xue))),128))]))])),t.createVNode(m,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Eue,[t.createElementVNode("div",null,[t.createElementVNode("span",Aue,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Mue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Iue,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,Pue)])]),t.createElementVNode("div",Bue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Nue,[zue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Oue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Fue,[Lue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const QB=$i(pue,[["render",Due],["__scopeId","data-v-0e03d462"]]),eN=[12,55,35,54],tN=[510],aN=new Set(eN),nN=new Set(tN),Xg=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:eN,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:tN}],bma="",Rue={name:"XgLocal",components:{SoccerChalkboard:QB},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},rN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),Vue={class:"xg-container"},$ue={class:"xg-container__info"},jue=rN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Uue={class:"table"},Gue={class:"table__row"},Hue={class:"table__row__title"},Wue={class:"table__row__value"},que=["src"],Yue={class:"table__row"},Xue={class:"table__row__title"},Zue={class:"table__row__value"},Jue={class:"table__row"},Kue={class:"table__row__title"},Que={class:"table__row__value"},ehe=rN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),the={class:"xg-container__field"};function ahe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Vue,[t.createElementVNode("div",$ue,[jue,t.createElementVNode("div",Uue,[t.createElementVNode("div",Gue,[t.createElementVNode("div",Hue,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Wue,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,que)])]),t.createElementVNode("div",Yue,[t.createElementVNode("div",Xue,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Zue,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Jue,[t.createElementVNode("div",Kue,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Que,t.toDisplayString(c.gxInfoItems[2].value),1)])]),ehe]),t.createElementVNode("div",the,[t.createVNode(m,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])])])}const nhe=$i(Rue,[["render",ahe],["__scopeId","data-v-a13ade42"]]),xma="",rhe={name:"XgAway",components:{SoccerChalkboard:QB},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},iN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),ihe={class:"xg-container"},ohe={class:"xg-container__info"},she=iN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),lhe={class:"table"},che={class:"table__row"},dhe={class:"table__row__title"},uhe={class:"table__row__value"},hhe=["src"],phe={class:"table__row"},fhe={class:"table__row__title"},mhe={class:"table__row__value"},ghe={class:"table__row"},yhe={class:"table__row__title"},vhe={class:"table__row__value"},_he=iN(()=>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)),bhe={class:"xg-container__field"};function xhe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",ihe,[t.createElementVNode("div",ohe,[she,t.createElementVNode("div",lhe,[t.createElementVNode("div",che,[t.createElementVNode("div",dhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",uhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,hhe)])]),t.createElementVNode("div",phe,[t.createElementVNode("div",fhe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",mhe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",ghe,[t.createElementVNode("div",yhe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",vhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),_he]),t.createElementVNode("div",bhe,[t.createVNode(m,{plays:e.playsAway,categories:D.categories,team:i.team},null,8,["plays","categories","team"])])])])}const whe=$i(rhe,[["render",xhe],["__scopeId","data-v-ddcacec9"]]),wma="",khe={name:"SoccerChalkboardXgMobile",components:{Tooltip:KB},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,D));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Yv=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Che={class:"soccer-chalkboard-xg"},She={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},The={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ehe=Yv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),Ahe=["id"],Mhe=["fill"],Ihe=Yv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Phe=["id"],Bhe=["x1","y1","x2","y2","stroke"],Nhe=["x1","y1","x2","y2","stroke","marker-end"],zhe=["onMouseover"],Ohe=["x","y","fill"],Fhe=["x","y"],Lhe={class:"tooltip-data has-text-left"},Dhe={class:"bold"},Rhe={class:"tooltip-image"},Vhe={class:"tooltip-image"},$he=["src"],jhe={class:"tooltip-xg"},Uhe={key:0},Ghe=Yv(()=>t.createElementVNode("span",null,"xGi:",-1)),Hhe=Yv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Whe={key:1},qhe=Yv(()=>t.createElementVNode("span",null,"xGf:",-1));function Yhe(e,r,i,B,D,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Che,[(t.openBlock(),t.createElementBlock("svg",She,[(t.openBlock(),t.createElementBlock("svg",The,[t.createElementVNode("defs",null,[Ehe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Mhe)],8,Ahe))),128)),Ihe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Bhe),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Nhe),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Ohe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Fhe)],40,zhe)],8,Phe))),128))]))])),t.createVNode(m,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Lhe,[t.createElementVNode("div",null,[t.createElementVNode("span",Dhe,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Rhe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Vhe,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,$he)])]),t.createElementVNode("div",jhe,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Uhe,[Ghe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Hhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Whe,[qhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const oN=$i(khe,[["render",Yhe],["__scopeId","data-v-9bd26437"]]),kma="",Xhe={name:"Xg",components:{SoccerChalkboard:oN},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("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()}},sN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),Zhe={class:"xg-container"},Jhe=sN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Khe={class:"xg-container__field"},Qhe={class:"xg-container__info"},epe={class:"table"},tpe={class:"table__row"},ape={class:"table__row__title"},npe={class:"table__row__value"},rpe=["src"],ipe={class:"table__row"},ope={class:"table__row__title"},spe={class:"table__row__value"},lpe={class:"table__row"},cpe={class:"table__row__title"},dpe={class:"table__row__value"},upe=sN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function hpe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Zhe,[Jhe,t.createElementVNode("div",Khe,[t.createVNode(m,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Qhe,[t.createElementVNode("div",epe,[t.createElementVNode("div",tpe,[t.createElementVNode("div",ape,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",npe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,rpe)])]),t.createElementVNode("div",ipe,[t.createElementVNode("div",ope,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",spe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",lpe,[t.createElementVNode("div",cpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",dpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),upe])])}const ppe=$i(Xhe,[["render",hpe],["__scopeId","data-v-fe06617a"]]),Cma="",fpe={name:"Xg",components:{SoccerChalkboard:oN},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("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()}},lN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),mpe={class:"xg-container"},gpe=lN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),ype={class:"xg-container__field"},vpe={class:"xg-container__info"},_pe={class:"table"},bpe={class:"table__row"},xpe={class:"table__row__title"},wpe={class:"table__row__value"},kpe=["src"],Cpe={class:"table__row"},Spe={class:"table__row__title"},Tpe={class:"table__row__value"},Epe={class:"table__row"},Ape={class:"table__row__title"},Mpe={class:"table__row__value"},Ipe=lN(()=>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 Ppe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mpe,[gpe,t.createElementVNode("div",ype,[t.createVNode(m,{plays:e.playsAway,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",vpe,[t.createElementVNode("div",_pe,[t.createElementVNode("div",bpe,[t.createElementVNode("div",xpe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",wpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,kpe)])]),t.createElementVNode("div",Cpe,[t.createElementVNode("div",Spe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Tpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Epe,[t.createElementVNode("div",Ape,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Mpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Ipe])])}const Bpe=$i(fpe,[["render",Ppe],["__scopeId","data-v-e1c76ea1"]]),Sma="";let cN=null;const Npe={name:"XgMain",components:{GSCSwitchRadio:due,SoccerChalkboardLocal:nhe,SoccerChalkboardAway:whe,SoccerChalkboardLocalMobile:ppe,SoccerChalkboardAwayMobile:Bpe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)cN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),cN.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))}},zpe={class:"xg",ref:"gamesContainer"},Ope={key:0,class:"selector-team"};function Fpe(e,r,i,B,D,c){const m=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),n=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",zpe,[D.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Ope,[t.createVNode(m,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:D.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(n,{key:4})):t.createCommentVNode("",!0)],512)}const Lpe=$i(Npe,[["render",Fpe],["__scopeId","data-v-12759086"]]),Tma="",lk=e=>(t.pushScopeId("data-v-6e45e9a0"),e=e(),t.popScopeId(),e),Dpe={class:"statistics-main"},Rpe={class:"statistics-main__header"},Vpe={class:"statistics-main__header__filter"},$pe={key:0,class:"statistics-main__header__live-switch"},jpe=lk(()=>t.createElementVNode("div",null,"Este partido",-1)),Upe=lk(()=>t.createElementVNode("div",null,"Acumulado",-1)),Gpe={class:"statistics-main__header__info"},Hpe=lk(()=>t.createElementVNode("br",null,null,-1)),Wpe=t.defineComponent({name:"StatisticsMain",components:{TrendLive:jse,Comparative:qde,Distribution:aue,GSCSlider:Wv,XG:Lpe}}),qpe=$i(Object.assign(Wpe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=ex(),D=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),m=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),n=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-u,g=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let S="";return x>0&&(S=x===1?x+" segundo":x+" segundos"),w>0&&(S=w===1?w+" minuto":w+" minutos"),b>0&&(S=b===1?b+" hora":b+" horas"),g>0&&(S=g===1?g+" día":g+" días"),S}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,u=>{const d={...u};i.game.is_live||V8(),p(d),n.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,u=>{B.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function p(u){try{c.value.gameId!==u.gameId&&(c.value=u,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:m.value,gameInfo:u}))}catch(d){throw new Error(d)}}function l(u){y.value=u}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(u){B.state.nextGeneral.usePastSeasonId&&(u.seasonId=B.state.nextGeneral.pastSeasonId),u.isLiveAccumulated=f.value,r("openmedia",u)}return t.onUnmounted(()=>{r("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(u,d)=>(t.openBlock(),t.createElementBlock("div",Dpe,[t.createElementVNode("div",Rpe,[t.createVNode(t.unref(Wv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(JP,t.mergeProps(D.value,{text:h.name,"is-active":y.value.id===h.id,onClick:g=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Vpe,[t.createVNode(Zoe)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",$pe,[jpe,t.createElementVNode("div",null,[t.createVNode(KP,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=h=>f.value=h)},null,8,["modelValue"])]),Upe],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",Gpe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),Hpe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:n.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-6e45e9a0"]]);function dN(e,r){return function(){return e.apply(r,arguments)}}const{toString:Ype}=Object.prototype,{getPrototypeOf:ck}=Object,Fx=(e=>r=>{const i=Ype.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tf=e=>(e=e.toLowerCase(),r=>Fx(r)===e),Lx=e=>r=>typeof r===e,{isArray:Zg}=Array,Xv=Lx("undefined");function Xpe(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uN=Tf("ArrayBuffer");function Zpe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&uN(e.buffer),r}const Jpe=Lx("string"),Zh=Lx("function"),hN=Lx("number"),Dx=e=>e!==null&&typeof e=="object",Kpe=e=>e===!0||e===!1,Rx=e=>{if(Fx(e)!=="object")return!1;const r=ck(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qpe=Tf("Date"),efe=Tf("File"),tfe=Tf("Blob"),afe=Tf("FileList"),nfe=e=>Dx(e)&&Zh(e.pipe),rfe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((r=Fx(e))==="formdata"||r==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},ife=Tf("URLSearchParams"),ofe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Zg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function pN(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const fN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),mN=e=>!Xv(e)&&e!==fN;function dk(){const{caseless:e}=mN(this)&&this||{},r={},i=(B,D)=>{const c=e&&pN(r,D)||D;Rx(r[c])&&Rx(B)?r[c]=dk(r[c],B):Rx(B)?r[c]=dk({},B):Zg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Zv(arguments[B],i);return r}const sfe=(e,r,i,{allOwnKeys:B}={})=>(Zv(r,(D,c)=>{i&&Zh(D)?e[c]=dN(D,i):e[c]=D},{allOwnKeys:B}),e),lfe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cfe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},dfe=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&ck(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},ufe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},hfe=e=>{if(!e)return null;if(Zg(e))return e;let r=e.length;if(!hN(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},pfe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&ck(Uint8Array)),ffe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},mfe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},gfe=Tf("HTMLFormElement"),yfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),gN=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),vfe=Tf("RegExp"),yN=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},_fe=e=>{yN(e,(r,i)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Zh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},bfe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Zg(e)?B(e):B(String(e).split(r)),i},xfe=()=>{},wfe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),uk="abcdefghijklmnopqrstuvwxyz",vN="0123456789",_N={DIGIT:vN,ALPHA:uk,ALPHA_DIGIT:uk+uk.toUpperCase()+vN},kfe=(e=16,r=_N.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function Cfe(e){return!!(e&&Zh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sfe=e=>{const r=new Array(10),i=(B,D)=>{if(Dx(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Zg(B)?[]:{};return Zv(B,(m,a)=>{const y=i(m,D+1);!Xv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},Tfe=Tf("AsyncFunction"),Efe=e=>e&&(Dx(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),Er={isArray:Zg,isArrayBuffer:uN,isBuffer:Xpe,isFormData:rfe,isArrayBufferView:Zpe,isString:Jpe,isNumber:hN,isBoolean:Kpe,isObject:Dx,isPlainObject:Rx,isUndefined:Xv,isDate:Qpe,isFile:efe,isBlob:tfe,isRegExp:vfe,isFunction:Zh,isStream:nfe,isURLSearchParams:ife,isTypedArray:pfe,isFileList:afe,forEach:Zv,merge:dk,extend:sfe,trim:ofe,stripBOM:lfe,inherits:cfe,toFlatObject:dfe,kindOf:Fx,kindOfTest:Tf,endsWith:ufe,toArray:hfe,forEachEntry:ffe,matchAll:mfe,isHTMLForm:gfe,hasOwnProperty:gN,hasOwnProp:gN,reduceDescriptors:yN,freezeMethods:_fe,toObjectSet:bfe,toCamelCase:yfe,noop:xfe,toFiniteNumber:wfe,findKey:pN,global:fN,isContextDefined:mN,ALPHABET:_N,generateString:kfe,isSpecCompliantForm:Cfe,toJSONObject:Sfe,isAsyncFn:Tfe,isThenable:Efe};function Il(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Er.inherits(Il,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bN=Il.prototype,xN={};["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=>{xN[e]={value:e}}),Object.defineProperties(Il,xN),Object.defineProperty(bN,"isAxiosError",{value:!0}),Il.from=(e,r,i,B,D,c)=>{const m=Object.create(bN);return Er.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Il.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Afe=null;function hk(e){return Er.isPlainObject(e)||Er.isArray(e)}function wN(e){return Er.endsWith(e,"[]")?e.slice(0,-2):e}function kN(e,r,i){return e?e.concat(r).map(function(B,D){return B=wN(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function Mfe(e){return Er.isArray(e)&&!e.some(hk)}const Ife=Er.toFlatObject(Er,{},null,function(e){return/^is[A-Z]/.test(e)});function Vx(e,r,i){if(!Er.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Er.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Er.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Er.isSpecCompliantForm(r);if(!Er.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Er.isDate(p))return p.toISOString();if(!a&&Er.isBlob(p))throw new Il("Blob is not supported. Use a Buffer instead.");return Er.isArrayBuffer(p)||Er.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Er.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Er.isArray(p)&&Mfe(p)||(Er.isFileList(p)||Er.endsWith(l,"[]"))&&(s=Er.toArray(p)))return l=wN(l),s.forEach(function(u,d){!(Er.isUndefined(u)||u===null)&&r.append(m===!0?kN([l],d,c):m===null?l:l+"[]",y(u))}),!1}return hk(p)?!0:(r.append(kN(o,l,c),y(p)),!1)}const n=[],v=Object.assign(Ife,{defaultVisitor:f,convertValue:y,isVisitable:hk});function _(p,l){if(!Er.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Er.forEach(p,function(o,s){(!(Er.isUndefined(o)||o===null)&&D.call(r,o,Er.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Er.isObject(e))throw new TypeError("data must be an object");return _(e),r}function CN(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function pk(e,r){this._pairs=[],e&&Vx(e,this,r)}const SN=pk.prototype;SN.append=function(e,r){this._pairs.push([e,r])},SN.toString=function(e){const r=e?function(i){return e.call(this,i,CN)}:CN;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Pfe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function TN(e,r,i){if(!r)return e;const B=i&&i.encode||Pfe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Er.isURLSearchParams(r)?r.toString():new pk(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const EN=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Er.forEach(this.handlers,function(i){i!==null&&r(i)})}},AN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bfe=typeof URLSearchParams<"u"?URLSearchParams:pk,Nfe=typeof FormData<"u"?FormData:null,zfe=typeof Blob<"u"?Blob:null,Ofe={isBrowser:!0,classes:{URLSearchParams:Bfe,FormData:Nfe,Blob:zfe},protocols:["http","https","file","blob","url","data"]},MN=typeof window<"u"&&typeof document<"u",Ffe=(e=>MN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Lfe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dfe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:MN,hasStandardBrowserEnv:Ffe,hasStandardBrowserWebWorkerEnv:Lfe},Symbol.toStringTag,{value:"Module"})),Ef={...Dfe,...Ofe};function Rfe(e,r){return Vx(e,new Ef.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ef.isNode&&Er.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function Vfe(e){return Er.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function $fe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function IN(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Er.isArray(D)?D.length:m,y?(Er.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Er.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Er.isArray(D[m])&&(D[m]=$fe(D[m])),!a)}if(Er.isFormData(e)&&Er.isFunction(e.entries)){const i={};return Er.forEachEntry(e,(B,D)=>{r(Vfe(B),D,i,0)}),i}return null}function jfe(e,r,i){if(Er.isString(e))try{return(r||JSON.parse)(e),Er.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const fk={transitional:AN,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Er.isObject(e);if(D&&Er.isHTMLForm(e)&&(e=new FormData(e)),Er.isFormData(e))return B?JSON.stringify(IN(e)):e;if(Er.isArrayBuffer(e)||Er.isBuffer(e)||Er.isStream(e)||Er.isFile(e)||Er.isBlob(e))return e;if(Er.isArrayBufferView(e))return e.buffer;if(Er.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Rfe(e,this.formSerializer).toString();if((c=Er.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Vx(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),jfe(e)):e}],transformResponse:[function(e){const r=this.transitional||fk.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Er.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Il.from(c,Il.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ef.classes.FormData,Blob:Ef.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Er.forEach(["delete","get","head","post","put","patch"],e=>{fk.headers[e]={}});const mk=fk,Ufe=Er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gfe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
34
|
+
`}}}},getChartSeries(e,r){let i,B;return this.showPostMatchData?(i={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{if(D.isVisible){r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);const m=D.homeTeam[this.homeTeamStatisticsType].totalPostGame+D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;i.data.push(Math.round(120*(m?D.homeTeam[this.homeTeamStatisticsType].totalPostGame/m:0))),i.dataTotal.push(D.homeTeam[this.homeTeamStatisticsType].totalPostGame),B.data.push(Math.round(120*(m?D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/m:0))),B.dataTotal.push(D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)}})):(i={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},B={name:`${this.isLiveLike&&this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},r.arraySubcategories=[],Object.values(e).forEach((D,c)=>{if(D.isVisible){r.xaxis.categories.push(this.prepareLabels(D,c)),r.arraySubcategories.push(D);let m,a,y,f;const n=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;if(this.isLiveLike&&this.showLiveData){const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;m=v?D.homeTeam[this.homeTeamStatisticsType].totalLive/v:0,y=D.homeTeam[this.homeTeamStatisticsType].totalLive}else this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(m=D.homeTeam.accomplished.avgPostGame/n,y=D.homeTeam.accomplished.totalPostGame):(m=n?D.homeTeam[this.homeTeamStatisticsType].avgPostGame/n:0,y=D.homeTeam[this.homeTeamStatisticsType].totalPostGame);if(this.isLiveLike&&this.showLiveData){const v=D.homeTeam[this.homeTeamStatisticsType].totalLive+D.visitingTeam[this.visitingTeamStatisticsType].totalLive;a=v?D.visitingTeam[this.visitingTeamStatisticsType].totalLive/v:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalLive}else this.gameForAnalysis.game_status!==1&&D.generalCategoriesIds.accomplished===3?(a=D.visitingTeam.accomplished.avgPostGame/n,f=D.visitingTeam.accomplished.totalPostGame):(a=n?D.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/n:0,f=D.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);i.data.push(Math.round(120*m)),i.dataTotal.push(Math.round(y)),B.data.push(Math.round(120*a)),B.dataTotal.push(Math.round(f))}})),[i,B]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,r="homeTeam"){return e.id==="3-0"&&(e[r].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[r].accomplished||0},showModal(e,r,i){const B=i===0?"homeTeam":"visitingTeam",D=e.config.arraySubcategories[r]||{};this.tooltip.isLeagueAvgVisible=D.id!=="3-0",this.tooltip.data=this.getSubcategoryData(D,B),this.tooltip.local=i===0,this.tooltip.names=D.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(D);const c=e.globals.clientX||0,m=e.globals.clientY||0;this.globals.x=c,this.globals.y=m,this.tooltip.x=c,this.tooltip.y=m>700?m-250:m;const a=D.generalCategoriesIds.accomplished===3;if(a){const y=D.homeTeam.accomplished.avgPostGame+D.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=y?D[B].accomplished.avgPostGame/y*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=a,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const i=Math.abs(e.clientX-this.globals.x),B=Math.abs(e.clientY-this.globals.y);(i>5||B>5)&&(this.tooltip.show=!1)},prepareLabels(e,r){let i=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(r===0)return i;const B=13;if(i.length>B){let D=i.split(" ");i=[];let c="",m="",a=D.slice(-1)[0];D.forEach(y=>{c+=` ${y} `,c.length>B&&(i.push(m.trim()),c=y),m=c,a===y&&i.push(m.trim())})}return i},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((r,i)=>r+i.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},Xde=e=>(t.pushScopeId("data-v-2919a0e9"),e=e(),t.popScopeId(),e),Zde={class:"distribution"},Jde={class:"distribution__container"},Kde={class:"distribution__container__chart-type__title"},Qde=Xde(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),eue={class:"distribution__container__chart-type__chart"};function tue(e,r,i,B,D,c){const m=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",Zde,[t.createElementVNode("div",Jde,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayDataForCharts,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:y},[t.createElementVNode("div",Kde,t.toDisplayString(a.name),1),Qde,t.createElementVNode("div",eue,[t.createVNode(m,{ref_for:!0,ref:a.id,type:"radar",height:D.height,options:D.arrayChartOptions[y],series:D.arrayFilledSeries[y]},null,8,["height","options","series"])])]))),128))])])}const aue=$i(Yde,[["render",tue],["__scopeId","data-v-2919a0e9"]]),nue=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},sk={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},ZB=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},JB=sk.setup;sk.setup=JB?(e,r)=>(ZB(),JB(e,r)):ZB;const rue={key:0,class:"text-left"},iue=["width","src"],oue=["checked"],sue=["width","src"],lue={key:3,class:"text-right"};function cue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",rue,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,iue)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...m)=>c.handleSwitchChange&&c.handleSwitchChange(...m)),checked:D.OptionDefault},null,40,oue),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,sue)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",lue,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const due=nue(sk,[["render",cue],["__scopeId","data-v-e2a20444"]]),yma="",vma="",uue={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 hue(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),style:t.normalizeStyle(c.positionTooltip),onClick:r[0]||(r[0]=(...m)=>c.tooltipClick&&c.tooltipClick(...m))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const KB=$i(uue,[["render",hue],["__scopeId","data-v-0cf5a19c"]]),_ma="",pue={name:"SoccerChalkboardXg",components:{Tooltip:KB},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,D));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},qv=e=>(t.pushScopeId("data-v-0e03d462"),e=e(),t.popScopeId(),e),fue={class:"soccer-chalkboard-xg"},mue={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},gue={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},yue=qv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),vue=["id"],_ue=["fill"],bue=qv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),xue=["id"],wue=["x1","y1","x2","y2","stroke"],kue=["x1","y1","x2","y2","stroke","marker-end"],Cue=["onMouseover"],Sue=["x","y","fill"],Tue=["x","y"],Eue={class:"tooltip-data has-text-left"},Aue={class:"bold"},Mue={class:"tooltip-image"},Iue={class:"tooltip-image"},Pue=["src"],Bue={class:"tooltip-xg"},Nue={key:0},zue=qv(()=>t.createElementVNode("span",null,"xGi:",-1)),Oue=qv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Fue={key:1},Lue=qv(()=>t.createElementVNode("span",null,"xGf:",-1));function Due(e,r,i,B,D,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",fue,[(t.openBlock(),t.createElementBlock("svg",mue,[(t.openBlock(),t.createElementBlock("svg",gue,[t.createElementVNode("defs",null,[yue,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,_ue)],8,vue))),128)),bue]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,wue),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,kue),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,Sue),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(a.jersey),9,Tue)],40,Cue)],8,xue))),128))]))])),t.createVNode(m,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Eue,[t.createElementVNode("div",null,[t.createElementVNode("span",Aue,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Mue,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Iue,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,Pue)])]),t.createElementVNode("div",Bue,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Nue,[zue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Oue,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Fue,[Lue,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const QB=$i(pue,[["render",Due],["__scopeId","data-v-0e03d462"]]),eN=[12,55,35,54],tN=[510],aN=new Set(eN),nN=new Set(tN),Xg=[{name:"Goles",color:"#336DFF",points:[1,2,3],categories:eN,invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#7ED321",points:[1,2,3],categories:tN}],bma="",Rue={name:"XgLocal",components:{SoccerChalkboard:QB},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.homeTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!==1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.fillXgPlays()}},rN=e=>(t.pushScopeId("data-v-a13ade42"),e=e(),t.popScopeId(),e),Vue={class:"xg-container"},$ue={class:"xg-container__info"},jue=rN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Uue={class:"table"},Gue={class:"table__row"},Hue={class:"table__row__title"},Wue={class:"table__row__value"},que=["src"],Yue={class:"table__row"},Xue={class:"table__row__title"},Zue={class:"table__row__value"},Jue={class:"table__row"},Kue={class:"table__row__title"},Que={class:"table__row__value"},ehe=rN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1)),the={class:"xg-container__field"};function ahe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Vue,[t.createElementVNode("div",$ue,[jue,t.createElementVNode("div",Uue,[t.createElementVNode("div",Gue,[t.createElementVNode("div",Hue,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",Wue,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,que)])]),t.createElementVNode("div",Yue,[t.createElementVNode("div",Xue,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Zue,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Jue,[t.createElementVNode("div",Kue,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Que,t.toDisplayString(c.gxInfoItems[2].value),1)])]),ehe]),t.createElementVNode("div",the,[t.createVNode(m,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])])])}const nhe=$i(Rue,[["render",ahe],["__scopeId","data-v-a13ade42"]]),xma="",rhe={name:"XgAway",components:{SoccerChalkboard:QB},props:{team:{type:String,default:"Visiting"}},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{getGameForAnalysis:{deep:!0,handler(e){e&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("xgGeneral",["getXgPlays"]),openXgVideo(){this.setVideoSrc(""),this.setVideoModalVisibility(!0)},getTeamId(){return this.visitingTeam.team_id},fillXgPlays(){this.getGameForAnalysis.game_status!=1?this.getXgPlays({seasonId:this.usePastSeasonId?this.pastSeasonId:this.getSeasonId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id}):this.getXgPlays({seasonId:this.gameId,localTeamId:this.homeTeam.team_id,visitingTeamId:this.visitingTeam.team_id,postMatch:!0})}},beforeMount(){this.setTeamSelected("Visiting"),this.fillXgPlays()}},iN=e=>(t.pushScopeId("data-v-ddcacec9"),e=e(),t.popScopeId(),e),ihe={class:"xg-container"},ohe={class:"xg-container__info"},she=iN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),lhe={class:"table"},che={class:"table__row"},dhe={class:"table__row__title"},uhe={class:"table__row__value"},hhe=["src"],phe={class:"table__row"},fhe={class:"table__row__title"},mhe={class:"table__row__value"},ghe={class:"table__row"},yhe={class:"table__row__title"},vhe={class:"table__row__value"},_he=iN(()=>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)),bhe={class:"xg-container__field"};function xhe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",ihe,[t.createElementVNode("div",ohe,[she,t.createElementVNode("div",lhe,[t.createElementVNode("div",che,[t.createElementVNode("div",dhe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",uhe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,hhe)])]),t.createElementVNode("div",phe,[t.createElementVNode("div",fhe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",mhe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",ghe,[t.createElementVNode("div",yhe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",vhe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),_he]),t.createElementVNode("div",bhe,[t.createVNode(m,{plays:e.playsAway,categories:D.categories,team:i.team},null,8,["plays","categories","team"])])])])}const whe=$i(rhe,[["render",xhe],["__scopeId","data-v-ddcacec9"]]),wma="",khe={name:"SoccerChalkboardXgMobile",components:{Tooltip:KB},props:{plays:{type:Array,required:!0},categories:{type:Array,required:!0},team:{type:String,required:!0}},data(){return{negativeColor:"red",data:{x:0,y:0,visible:!1},dataPlay:{playerName:"",photo:"",minute:0,rivalLogo:"",rivalName:"",categoryName:"",xGi:0,xGf:0,isOwnGoal:!1}}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"]),preparedPlays(){return this.plays.map(e=>({...e,playingAs:e.playing_as,teamId:e.team_id,photo:e.photo,categoryId:e.category_id,matchResult:e.match_result,matchLapse:e.matchlapse,x1:e.x1*100,y1:e.y1*100,x2:e.x2*100,y2:e.y2*100,x3:e.x3*100,y3:e.y3*100,xGi:e.xG1,xGf:e.xG2}))},localCategories(){return this.categories.map((e,r)=>({id:r,name:e.name,negative:e.negative||!1,color:e.color,points:e.points,numPoints:e.points.length,categories:e.categories,invert:e.invert||[]}))},graphPlays(){let e=this.localCategories.reduce((B,D)=>[...B,D.categories],[]);return this.preparedPlays.filter(B=>this.findCategoryInPlay(e,B)).reduce((B,D)=>{let c=this.localCategories.find(m=>this.findCategoryInPlay(m.categories,D));if(c){let m={category:c.id,categoryName:c.name,arrowColor:c.negative?this.negativeColor:c.color,arrowMarkerColor:c.negative?"url(#arrow-negative)":`url(#arrow-${c.id})`,markerColor:c.color,jersey:D.jersey_number,matchlapse:D.matchLapse,playerName:D.player_name,photo:D.photo,rivalLogo:D.rival_id,x1:c.invert.includes(D.categoryId)?100-D[`x${c.points[0]}`]:D[`x${c.points[0]}`],y1:c.invert.includes(D.categoryId)?100-D[`y${c.points[0]}`]:D[`y${c.points[0]}`],x2:c.invert.includes(D.categoryId)?100-D[`x${c.points[1]}`]:D[`x${c.points[1]}`],y2:c.invert.includes(D.categoryId)?100-D[`y${c.points[1]}`]:D[`y${c.points[1]}`],x3:c.invert.includes(D.categoryId)?100-D[`x${c.points[2]}`]:D[`x${c.points[2]}`],y3:c.invert.includes(D.categoryId)?100-D[`y${c.points[2]}`]:D[`y${c.points[2]}`],momentOfPlay:D.moment_of_play,isOwnGoal:c.invert.includes(D.categoryId),xGi:D.xGi,xGf:D.xGf};B.push(m)}return B},[])}},methods:{findCategoryInPlay(e,r){return e.find(i=>typeof i=="number"?i===r.categoryId:i.includes(r.categoryId))},onMouseOver(e,r){this.dataPlay.playerName=r.playerName||"",this.dataPlay.photo=r.photo||"",this.dataPlay.minute=parseInt(r.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=r.rivalLogo||"",this.dataPlay.categoryName=r.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(r.xGi),this.dataPlay.xGf=String(r.xGf),this.dataPlay.isOwnGoal=r.isOwnGoal,this.data.x=e.pageX<135?e.pageX-50:e.layerX-50,this.data.y=e.layerY+130,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Yv=e=>(t.pushScopeId("data-v-9bd26437"),e=e(),t.popScopeId(),e),Che={class:"soccer-chalkboard-xg"},She={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},The={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},Ehe=Yv(()=>t.createElementVNode("marker",{id:"arrow-negative",viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:"red"})],-1)),Ahe=["id"],Mhe=["fill"],Ihe=Yv(()=>t.createElementVNode("pattern",{id:"fieldBackground",width:"1",height:"1",viewBox:"0 0 100 100",preserveAspectRatio:"none"},[t.createElementVNode("image",{"xlink:href":"https://az755631.vo.msecnd.net/todoelfut/fieldbg.png",width:"100",height:"100",preserveAspectRatio:"none",id:"image2"})],-1)),Phe=["id"],Bhe=["x1","y1","x2","y2","stroke"],Nhe=["x1","y1","x2","y2","stroke","marker-end"],zhe=["onMouseover"],Ohe=["x","y","fill"],Fhe=["x","y"],Lhe={class:"tooltip-data has-text-left"},Dhe={class:"bold"},Rhe={class:"tooltip-image"},Vhe={class:"tooltip-image"},$he=["src"],jhe={class:"tooltip-xg"},Uhe={key:0},Ghe=Yv(()=>t.createElementVNode("span",null,"xGi:",-1)),Hhe=Yv(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),Whe={key:1},qhe=Yv(()=>t.createElementVNode("span",null,"xGf:",-1));function Yhe(e,r,i,B,D,c){const m=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",Che,[(t.openBlock(),t.createElementBlock("svg",She,[(t.openBlock(),t.createElementBlock("svg",The,[t.createElementVNode("defs",null,[Ehe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.localCategories,a=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${a.id}`,id:`arrow-${a.id}`,viewBox:"0 0 10 10",refX:"5",refY:"5",markerWidth:"6",markerHeight:"6",markerUnits:"strokeWidth",orient:"auto"},[t.createElementVNode("path",{d:"M 0 0 L 10 5 L 0 10 z","stroke-width":"2",fill:a.color},null,8,Mhe)],8,Ahe))),128)),Ihe]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.graphPlays,a=>(t.openBlock(),t.createElementBlock("g",{key:a.id,id:`play-${a.playId}`},[t.createElementVNode("line",{x1:`${a.x1}%`,y1:`${a.y1}%`,x2:`${a.x2}%`,y2:`${a.y2}%`,stroke:a.arrowColor,"stroke-width":"2"},null,8,Bhe),t.createElementVNode("line",{x1:`${a.x2}%`,y1:`${a.y2}%`,x2:`${a.x3}%`,y2:`${a.y3}%`,stroke:a.arrowColor,"stroke-width":"2","marker-end":a.arrowMarkerColor},null,8,Nhe),t.createElementVNode("g",{onMouseover:y=>c.onMouseOver(y,a),onMouseleave:r[0]||(r[0]=(...y)=>c.onMouseLeave&&c.onMouseLeave(...y)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${a.x1}%`,y:`${a.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:a.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,Ohe),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${a.x1}%`,y:`${a.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(a.jersey),9,Fhe)],40,zhe)],8,Phe))),128))]))])),t.createVNode(m,{data:D.data},{default:t.withCtx(()=>[t.createElementVNode("div",Lhe,[t.createElementVNode("div",null,[t.createElementVNode("span",Dhe,t.toDisplayString(D.dataPlay.isOwnGoal?"Autogol":D.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(D.dataPlay.playerName)+" ",1),t.createElementVNode("div",Rhe,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+D.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(D.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",Vhe,[t.createElementVNode("img",{src:D.dataPlay.rivalLogo},null,8,$he)])]),t.createElementVNode("div",jhe,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGi)&&D.dataPlay.xGi<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Uhe,[Ghe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),Hhe,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(D.dataPlay.xGf)&&D.dataPlay.xGf<=1&&!D.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",Whe,[qhe,t.createTextVNode(" "+t.toDisplayString(Number(D.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const oN=$i(khe,[["render",Yhe],["__scopeId","data-v-9bd26437"]]),kma="",Xhe={name:"Xg",components:{SoccerChalkboard:oN},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.homeTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyLocal},{title:"Tiros a Gol",value:this.shotsOnGoalQtyLocal},{title:"Goles esperados (xG)",value:this.xGLocal}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("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()}},sN=e=>(t.pushScopeId("data-v-fe06617a"),e=e(),t.popScopeId(),e),Zhe={class:"xg-container"},Jhe=sN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),Khe={class:"xg-container__field"},Qhe={class:"xg-container__info"},epe={class:"table"},tpe={class:"table__row"},ape={class:"table__row__title"},npe={class:"table__row__value"},rpe=["src"],ipe={class:"table__row"},ope={class:"table__row__title"},spe={class:"table__row__value"},lpe={class:"table__row"},cpe={class:"table__row__title"},dpe={class:"table__row__value"},upe=sN(()=>t.createElementVNode("div",{class:"table-description"},[t.createElementVNode("span",null,"xG:"),t.createTextVNode(" es la medida para estimar la probabilidad de que un tiro o una jugada termine en gol, basándose en factores como la ubicación y la dificultad de la acción. ")],-1));function hpe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",Zhe,[Jhe,t.createElementVNode("div",Khe,[t.createVNode(m,{plays:e.playsLocal,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",Qhe,[t.createElementVNode("div",epe,[t.createElementVNode("div",tpe,[t.createElementVNode("div",ape,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",npe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,rpe)])]),t.createElementVNode("div",ipe,[t.createElementVNode("div",ope,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",spe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",lpe,[t.createElementVNode("div",cpe,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",dpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),upe])])}const ppe=$i(Xhe,[["render",hpe],["__scopeId","data-v-fe06617a"]]),Cma="",fpe={name:"Xg",components:{SoccerChalkboard:oN},props:{},data(){return{categories:Xg}},computed:{...eh("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...eh("general",["booleanIsStatisticModalOpen"]),...ed("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...ed("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...ed("loginGeneral",["getPremiumAccount","getIsGolstats"]),...ed("general",["getPreviewSectionAnalytics"]),stringSelectedTeamLogo(){return this.visitingTeam.logo},windowWidth(){return this.$store.state.windowWidth},gxInfoItems(){return[{title:"Goles",value:this.goalsQtyAway},{title:"Tiros a Gol",value:this.shotsOnGoalQtyAway},{title:"Goles esperados (xG)",value:this.xGAway}]}},watch:{visitingTeam:{deep:!0,handler(e){e&&this.fillXgPlays()}},showPostMatchData:{handler(e,r){e!==r&&this.fillXgPlays()}}},methods:{...Om("general",["setVideoSrc","setVideoModalVisibility"]),...Om("xgGeneral",["setTeamSelected"]),...nx("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()}},lN=e=>(t.pushScopeId("data-v-e1c76ea1"),e=e(),t.popScopeId(),e),mpe={class:"xg-container"},gpe=lN(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),ype={class:"xg-container__field"},vpe={class:"xg-container__info"},_pe={class:"table"},bpe={class:"table__row"},xpe={class:"table__row__title"},wpe={class:"table__row__value"},kpe=["src"],Cpe={class:"table__row"},Spe={class:"table__row__title"},Tpe={class:"table__row__value"},Epe={class:"table__row"},Ape={class:"table__row__title"},Mpe={class:"table__row__value"},Ipe=lN(()=>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 Ppe(e,r,i,B,D,c){const m=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mpe,[gpe,t.createElementVNode("div",ype,[t.createVNode(m,{plays:e.playsAway,categories:D.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",vpe,[t.createElementVNode("div",_pe,[t.createElementVNode("div",bpe,[t.createElementVNode("div",xpe,t.toDisplayString(c.gxInfoItems[0].title),1),t.createElementVNode("div",wpe,[t.createTextVNode(t.toDisplayString(c.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:c.stringSelectedTeamLogo},null,8,kpe)])]),t.createElementVNode("div",Cpe,[t.createElementVNode("div",Spe,t.toDisplayString(c.gxInfoItems[1].title),1),t.createElementVNode("div",Tpe,t.toDisplayString(c.gxInfoItems[1].value),1)]),t.createElementVNode("div",Epe,[t.createElementVNode("div",Ape,t.toDisplayString(c.gxInfoItems[2].title),1),t.createElementVNode("div",Mpe,t.toDisplayString(c.gxInfoItems[2].value),1)])]),Ipe])])}const Bpe=$i(fpe,[["render",Ppe],["__scopeId","data-v-e1c76ea1"]]),Sma="";let cN=null;const Npe={name:"XgMain",components:{GSCSwitchRadio:due,SoccerChalkboardLocal:nhe,SoccerChalkboardAway:whe,SoccerChalkboardLocalMobile:ppe,SoccerChalkboardAwayMobile:Bpe},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...ed("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)cN=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),cN.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))}},zpe={class:"xg",ref:"gamesContainer"},Ope={key:0,class:"selector-team"};function Fpe(e,r,i,B,D,c){const m=t.resolveComponent("GSCSwitchRadio"),a=t.resolveComponent("SoccerChalkboardLocal"),y=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),n=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",zpe,[D.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",Ope,[t.createVNode(m,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:D.teamDefault,"text-option-left":e.homeTeam.colloquial_name,"text-option-right":e.visitingTeam.colloquial_name,"font-color":"white","hidden-labels":!1,"icon-a":e.homeTeam.logo,"icon-b":e.visitingTeam.logo,onChange:c.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(a,{key:1,class:"local"})):t.createCommentVNode("",!0),D.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(y,{key:2,class:"away"})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),D.gamesContainerWidth<655&&D.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(n,{key:4})):t.createCommentVNode("",!0)],512)}const Lpe=$i(Npe,[["render",Fpe],["__scopeId","data-v-12759086"]]),Tma="",lk=e=>(t.pushScopeId("data-v-6e45e9a0"),e=e(),t.popScopeId(),e),Dpe={class:"statistics-main"},Rpe={class:"statistics-main__header"},Vpe={class:"statistics-main__header__filter"},$pe={key:0,class:"statistics-main__header__live-switch"},jpe=lk(()=>t.createElementVNode("div",null,"Este partido",-1)),Upe=lk(()=>t.createElementVNode("div",null,"Acumulado",-1)),Gpe={class:"statistics-main__header__info"},Hpe=lk(()=>t.createElementVNode("br",null,null,-1)),Wpe=t.defineComponent({name:"StatisticsMain",components:{TrendLive:jse,Comparative:qde,Distribution:aue,GSCSlider:Wv,XG:Lpe}}),qpe=$i(Object.assign(Wpe,{props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},subsection:{type:String,default:""},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=ex(),D=t.ref({width:"fit-content",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b",padding:"0 16px"}),c=t.ref({}),m=t.ref(null),a=t.ref([{id:"st1",name:"Comparativa",componentName:"Comparative"},{id:"st2",name:"Distribución",componentName:"Distribution"},{id:"st3",name:"Tendencia LIVE",componentName:"TrendLive"},{id:"st4",name:"Goles esperados (xG)",componentName:"XG"}]),y=t.ref(a.value[0]),f=t.ref(!1),n=t.ref(0),v=t.computed(()=>{const u=new Date().getTime(),h=new Date(i.game.dateTimeUTC).getTime()-u,g=Math.floor(h/(1e3*60*60*24)),b=Math.floor(h%(1e3*60*60*24)/(1e3*60*60)),w=Math.floor(h%(1e3*60*60)/(1e3*60)),x=Math.floor(h%(1e3*60)/1e3);let S="";return x>0&&(S=x===1?x+" segundo":x+" segundos"),w>0&&(S=w===1?w+" minuto":w+" minutos"),b>0&&(S=b===1?b+" hora":b+" horas"),g>0&&(S=g===1?g+" día":g+" días"),S}),_=t.computed(()=>y.value.id==="st4"||(i.game.is_live||i.game.game_status===0)&&!B.state.nextGeneral.showLiveData?"Jugadas destacadas durante el torneo":i.game.game_status===1||(i.game.is_live||i.game.game_status===0)&&B.state.nextGeneral.showLiveData?"Jugadas destacadas durante este partido":"");t.watch(()=>i.game,u=>{const d={...u};i.game.is_live||V8(),p(d),n.value++},{deep:!0,immediate:!0}),t.watch(()=>f.value,u=>{B.commit("nextGeneral/updateShowLiveData",!u)},{immediate:!0});async function p(u){try{c.value.gameId!==u.gameId&&(c.value=u,await B.dispatch("nextGeneral/cleanStats"),await B.dispatch("nextGeneral/checkState",{gameId:u.gameId,currentSeasonId:u.seasonId,isTeamsAnalysis:!0,defaultFilter:m.value,gameInfo:u}))}catch(d){throw new Error(d)}}function l(u){y.value=u}function o(){B.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}function s(u){B.state.nextGeneral.usePastSeasonId&&(u.seasonId=B.state.nextGeneral.pastSeasonId),u.isLiveAccumulated=f.value,r("openmedia",u)}return t.onUnmounted(()=>{r("resetSubsection")}),t.onMounted(()=>{i.subsection==="Comparativa"&&(y.value.id="st1",y.value.name="Comparativa",y.value.componentName="Comparative")}),o(),(u,d)=>(t.openBlock(),t.createElementBlock("div",Dpe,[t.createElementVNode("div",Rpe,[t.createVNode(t.unref(Wv),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,h=>(t.openBlock(),t.createElementBlock("div",{key:h.id,class:"game-time-line__options__option"},[t.createVNode(JP,t.mergeProps(D.value,{text:h.name,"is-active":y.value.id===h.id,onClick:g=>l(h)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",Vpe,[t.createVNode(Zoe)],512),[[t.vShow,!1]]),e.game.is_live||e.game.game_status===0?t.withDirectives((t.openBlock(),t.createElementBlock("div",$pe,[jpe,t.createElementVNode("div",null,[t.createVNode(KP,{modelValue:f.value,"onUpdate:modelValue":d[0]||(d[0]=h=>f.value=h)},null,8,["modelValue"])]),Upe],512)),[[t.vShow,y.value.id!=="st4"]]):t.createCommentVNode("",!0),t.createElementVNode("div",Gpe,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Faltan "),t.createElementVNode("span",null,t.toDisplayString(v.value),1),t.createTextVNode(" para el inicio."),Hpe,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(e.seasonSelected.name),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(_.value),1)],64))])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:n.value},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(y.value.componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(B).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:s},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-6e45e9a0"]]);function dN(e,r){return function(){return e.apply(r,arguments)}}const{toString:Ype}=Object.prototype,{getPrototypeOf:ck}=Object,Fx=(e=>r=>{const i=Ype.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Tf=e=>(e=e.toLowerCase(),r=>Fx(r)===e),Lx=e=>r=>typeof r===e,{isArray:Zg}=Array,Xv=Lx("undefined");function Xpe(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uN=Tf("ArrayBuffer");function Zpe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&uN(e.buffer),r}const Jpe=Lx("string"),Zh=Lx("function"),hN=Lx("number"),Dx=e=>e!==null&&typeof e=="object",Kpe=e=>e===!0||e===!1,Rx=e=>{if(Fx(e)!=="object")return!1;const r=ck(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qpe=Tf("Date"),efe=Tf("File"),tfe=Tf("Blob"),afe=Tf("FileList"),nfe=e=>Dx(e)&&Zh(e.pipe),rfe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((r=Fx(e))==="formdata"||r==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},ife=Tf("URLSearchParams"),ofe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zv(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Zg(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),m=c.length;let a;for(B=0;B<m;B++)a=c[B],r.call(null,e[a],a,e)}}function pN(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const fN=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),mN=e=>!Xv(e)&&e!==fN;function dk(){const{caseless:e}=mN(this)&&this||{},r={},i=(B,D)=>{const c=e&&pN(r,D)||D;Rx(r[c])&&Rx(B)?r[c]=dk(r[c],B):Rx(B)?r[c]=dk({},B):Zg(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&Zv(arguments[B],i);return r}const sfe=(e,r,i,{allOwnKeys:B}={})=>(Zv(r,(D,c)=>{i&&Zh(D)?e[c]=dN(D,i):e[c]=D},{allOwnKeys:B}),e),lfe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cfe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},dfe=(e,r,i,B)=>{let D,c,m;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)m=D[c],(!B||B(m,e,r))&&!a[m]&&(r[m]=e[m],a[m]=!0);e=i!==!1&&ck(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},ufe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},hfe=e=>{if(!e)return null;if(Zg(e))return e;let r=e.length;if(!hN(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},pfe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&ck(Uint8Array)),ffe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},mfe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},gfe=Tf("HTMLFormElement"),yfe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),gN=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),vfe=Tf("RegExp"),yN=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};Zv(i,(D,c)=>{let m;(m=r(D,c,e))!==!1&&(B[c]=m||D)}),Object.defineProperties(e,B)},_fe=e=>{yN(e,(r,i)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Zh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},bfe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Zg(e)?B(e):B(String(e).split(r)),i},xfe=()=>{},wfe=(e,r)=>(e=+e,Number.isFinite(e)?e:r),uk="abcdefghijklmnopqrstuvwxyz",vN="0123456789",_N={DIGIT:vN,ALPHA:uk,ALPHA_DIGIT:uk+uk.toUpperCase()+vN},kfe=(e=16,r=_N.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function Cfe(e){return!!(e&&Zh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Sfe=e=>{const r=new Array(10),i=(B,D)=>{if(Dx(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Zg(B)?[]:{};return Zv(B,(m,a)=>{const y=i(m,D+1);!Xv(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},Tfe=Tf("AsyncFunction"),Efe=e=>e&&(Dx(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),Er={isArray:Zg,isArrayBuffer:uN,isBuffer:Xpe,isFormData:rfe,isArrayBufferView:Zpe,isString:Jpe,isNumber:hN,isBoolean:Kpe,isObject:Dx,isPlainObject:Rx,isUndefined:Xv,isDate:Qpe,isFile:efe,isBlob:tfe,isRegExp:vfe,isFunction:Zh,isStream:nfe,isURLSearchParams:ife,isTypedArray:pfe,isFileList:afe,forEach:Zv,merge:dk,extend:sfe,trim:ofe,stripBOM:lfe,inherits:cfe,toFlatObject:dfe,kindOf:Fx,kindOfTest:Tf,endsWith:ufe,toArray:hfe,forEachEntry:ffe,matchAll:mfe,isHTMLForm:gfe,hasOwnProperty:gN,hasOwnProp:gN,reduceDescriptors:yN,freezeMethods:_fe,toObjectSet:bfe,toCamelCase:yfe,noop:xfe,toFiniteNumber:wfe,findKey:pN,global:fN,isContextDefined:mN,ALPHABET:_N,generateString:kfe,isSpecCompliantForm:Cfe,toJSONObject:Sfe,isAsyncFn:Tfe,isThenable:Efe};function Il(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Er.inherits(Il,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Er.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bN=Il.prototype,xN={};["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=>{xN[e]={value:e}}),Object.defineProperties(Il,xN),Object.defineProperty(bN,"isAxiosError",{value:!0}),Il.from=(e,r,i,B,D,c)=>{const m=Object.create(bN);return Er.toFlatObject(e,m,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Il.call(m,e.message,r,i,B,D),m.cause=e,m.name=e.name,c&&Object.assign(m,c),m};const Afe=null;function hk(e){return Er.isPlainObject(e)||Er.isArray(e)}function wN(e){return Er.endsWith(e,"[]")?e.slice(0,-2):e}function kN(e,r,i){return e?e.concat(r).map(function(B,D){return B=wN(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function Mfe(e){return Er.isArray(e)&&!e.some(hk)}const Ife=Er.toFlatObject(Er,{},null,function(e){return/^is[A-Z]/.test(e)});function Vx(e,r,i){if(!Er.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Er.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Er.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,m=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Er.isSpecCompliantForm(r);if(!Er.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Er.isDate(p))return p.toISOString();if(!a&&Er.isBlob(p))throw new Il("Blob is not supported. Use a Buffer instead.");return Er.isArrayBuffer(p)||Er.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Er.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Er.isArray(p)&&Mfe(p)||(Er.isFileList(p)||Er.endsWith(l,"[]"))&&(s=Er.toArray(p)))return l=wN(l),s.forEach(function(u,d){!(Er.isUndefined(u)||u===null)&&r.append(m===!0?kN([l],d,c):m===null?l:l+"[]",y(u))}),!1}return hk(p)?!0:(r.append(kN(o,l,c),y(p)),!1)}const n=[],v=Object.assign(Ife,{defaultVisitor:f,convertValue:y,isVisitable:hk});function _(p,l){if(!Er.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Er.forEach(p,function(o,s){(!(Er.isUndefined(o)||o===null)&&D.call(r,o,Er.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Er.isObject(e))throw new TypeError("data must be an object");return _(e),r}function CN(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function pk(e,r){this._pairs=[],e&&Vx(e,this,r)}const SN=pk.prototype;SN.append=function(e,r){this._pairs.push([e,r])},SN.toString=function(e){const r=e?function(i){return e.call(this,i,CN)}:CN;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Pfe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function TN(e,r,i){if(!r)return e;const B=i&&i.encode||Pfe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Er.isURLSearchParams(r)?r.toString():new pk(r,i).toString(B),c){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const EN=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Er.forEach(this.handlers,function(i){i!==null&&r(i)})}},AN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bfe=typeof URLSearchParams<"u"?URLSearchParams:pk,Nfe=typeof FormData<"u"?FormData:null,zfe=typeof Blob<"u"?Blob:null,Ofe={isBrowser:!0,classes:{URLSearchParams:Bfe,FormData:Nfe,Blob:zfe},protocols:["http","https","file","blob","url","data"]},MN=typeof window<"u"&&typeof document<"u",Ffe=(e=>MN&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Lfe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Dfe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:MN,hasStandardBrowserEnv:Ffe,hasStandardBrowserWebWorkerEnv:Lfe},Symbol.toStringTag,{value:"Module"})),Ef={...Dfe,...Ofe};function Rfe(e,r){return Vx(e,new Ef.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ef.isNode&&Er.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function Vfe(e){return Er.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function $fe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function IN(e){function r(i,B,D,c){let m=i[c++];if(m==="__proto__")return!0;const a=Number.isFinite(+m),y=c>=i.length;return m=!m&&Er.isArray(D)?D.length:m,y?(Er.hasOwnProp(D,m)?D[m]=[D[m],B]:D[m]=B,!a):((!D[m]||!Er.isObject(D[m]))&&(D[m]=[]),r(i,B,D[m],c)&&Er.isArray(D[m])&&(D[m]=$fe(D[m])),!a)}if(Er.isFormData(e)&&Er.isFunction(e.entries)){const i={};return Er.forEachEntry(e,(B,D)=>{r(Vfe(B),D,i,0)}),i}return null}function jfe(e,r,i){if(Er.isString(e))try{return(r||JSON.parse)(e),Er.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const fk={transitional:AN,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Er.isObject(e);if(D&&Er.isHTMLForm(e)&&(e=new FormData(e)),Er.isFormData(e))return B?JSON.stringify(IN(e)):e;if(Er.isArrayBuffer(e)||Er.isBuffer(e)||Er.isStream(e)||Er.isFile(e)||Er.isBlob(e))return e;if(Er.isArrayBufferView(e))return e.buffer;if(Er.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Rfe(e,this.formSerializer).toString();if((c=Er.isFileList(e))||i.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Vx(c?{"files[]":e}:e,m&&new m,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),jfe(e)):e}],transformResponse:[function(e){const r=this.transitional||fk.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Er.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Il.from(c,Il.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ef.classes.FormData,Blob:Ef.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Er.forEach(["delete","get","head","post","put","patch"],e=>{fk.headers[e]={}});const mk=fk,Ufe=Er.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gfe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
35
35
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&Ufe[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},PN=Symbol("internals");function Jv(e){return e&&String(e).trim().toLowerCase()}function $x(e){return e===!1||e==null?e:Er.isArray(e)?e.map($x):String(e)}function Hfe(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const Wfe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gk(e,r,i,B,D){if(Er.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Er.isString(r)){if(Er.isString(B))return r.indexOf(B)!==-1;if(Er.isRegExp(B))return B.test(r)}}function qfe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function Yfe(e,r){const i=Er.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,m){return this[B].call(this,r,D,c,m)},configurable:!0})})}let jx=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=Jv(y);if(!n)throw new Error("header name must be a non-empty string");const v=Er.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=$x(a))}const m=(a,y)=>Er.forEach(a,(f,n)=>c(f,n,y));return Er.isPlainObject(r)||r instanceof this.constructor?m(r,i):Er.isString(r)&&(r=r.trim())&&!Wfe(r)?m(Gfe(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=Jv(r),r){const B=Er.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return Hfe(D);if(Er.isFunction(i))return i.call(this,D,B);if(Er.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=Jv(r),r){const B=Er.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||gk(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(m){if(m=Jv(m),m){const a=Er.findKey(B,m);a&&(!i||gk(B,B[a],a,i))&&(delete B[a],D=!0)}}return Er.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||gk(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Er.forEach(this,(D,c)=>{const m=Er.findKey(B,c);if(m){i[m]=$x(D),delete i[c];return}const a=r?qfe(c):String(c).trim();a!==c&&delete i[c],i[a]=$x(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Er.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Er.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
36
36
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[PN]=this[PN]={accessors:{}}).accessors,B=this.prototype;function D(c){const m=Jv(c);i[m]||(Yfe(B,c),i[m]=!0)}return Er.isArray(r)?r.forEach(D):D(r),this}};jx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Er.reduceDescriptors(jx.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Er.freezeMethods(jx);const em=jx;function yk(e,r){const i=this||mk,B=r||i,D=em.from(B.headers);let c=B.data;return Er.forEach(e,function(m){c=m.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function BN(e){return!!(e&&e.__CANCEL__)}function Kv(e,r,i){Il.call(this,e??"canceled",Il.ERR_CANCELED,r,i),this.name="CanceledError"}Er.inherits(Kv,Il,{__CANCEL__:!0});function Xfe(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Il("Request failed with status code "+i.status,[Il.ERR_BAD_REQUEST,Il.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const Zfe=Ef.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const m=[e+"="+encodeURIComponent(r)];Er.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),Er.isString(B)&&m.push("path="+B),Er.isString(D)&&m.push("domain="+D),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Jfe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kfe(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function NN(e,r){return e&&!Jfe(r)?Kfe(e,r):r}const Qfe=Ef.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Er.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function eme(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function tme(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,m;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];m||(m=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-m<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function zN(e,r){let i=0;const B=tme(50,250);return D=>{const c=D.loaded,m=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=m;i=c;const n={loaded:c,total:m,progress:m?c/m:void 0,bytes:a,rate:y||void 0,estimated:y&&m&&f?(m-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const ame=typeof XMLHttpRequest<"u",nme=ame&&function(e){return new Promise(function(r,i){let B=e.data;const D=em.from(e.headers).normalize();let{responseType:c,withXSRFToken:m}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Er.isFormData(B)){if(Ef.hasStandardBrowserEnv||Ef.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=NN(e.baseURL,e.url);n.open(e.method.toUpperCase(),TN(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=em.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};Xfe(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Il("Request aborted",Il.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Il("Network Error",Il.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||AN;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Il(l,o.clarifyTimeoutError?Il.ETIMEDOUT:Il.ECONNABORTED,e,n)),n=null},Ef.hasStandardBrowserEnv&&(m&&Er.isFunction(m)&&(m=m(e)),m||m!==!1&&Qfe(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&Zfe.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Er.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Er.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",zN(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",zN(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new Kv(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=eme(v);if(p&&Ef.protocols.indexOf(p)===-1){i(new Il("Unsupported protocol "+p+":",Il.ERR_BAD_REQUEST,e));return}n.send(B||null)})},vk={http:Afe,xhr:nme};Er.forEach(vk,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const ON=e=>`- ${e}`,rme=e=>Er.isFunction(e)||e===null||e===!1,FN={getAdapter:e=>{e=Er.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let m;if(B=i,!rme(i)&&(B=vk[(m=String(i)).toLowerCase()],B===void 0))throw new Il(`Unknown adapter '${m}'`);if(B)break;D[m||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let m=r?c.length>1?`since :
|
|
37
37
|
`+c.map(ON).join(`
|