@golstats/gsc-landing 1.0.47 → 1.0.49

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.
@@ -1,41 +1,41 @@
1
- (function(pt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(pt=typeof globalThis<"u"?globalThis:pt||self,o(pt.GSCLanding={},pt.Vue))})(this,function(pt,o){"use strict";function mi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:ta}=Object,oo=(e=>a=>{const t=Mc.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ge=e=>(e=e.toLowerCase(),a=>oo(a)===e),ao=e=>a=>typeof a===e,{isArray:bt}=Array,Tt=ao("undefined");function Dc(e){return e!==null&&!Tt(e)&&e.constructor!==null&&!Tt(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ui=Ge("ArrayBuffer");function jc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&ui(e.buffer),a}const Wc=ao("string"),Le=ao("function"),hi=ao("number"),no=e=>e!==null&&typeof e=="object",Uc=e=>e===!0||e===!1,io=e=>{if(oo(e)!=="object")return!1;const a=ta(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hc=Ge("Date"),Gc=Ge("File"),qc=Ge("Blob"),Jc=Ge("FileList"),Kc=e=>no(e)&&Le(e.pipe),Zc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((a=oo(e))==="formdata"||a==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},Xc=Ge("URLSearchParams"),Yc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),bt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function pi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fi=e=>!Tt(e)&&e!==gi;function oa(){const{caseless:e}=fi(this)&&this||{},a={},t=(n,s)=>{const i=e&&pi(a,s)||s;io(a[i])&&io(n)?a[i]=oa(a[i],n):io(n)?a[i]=oa({},n):bt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&vt(arguments[n],t);return a}const Qc=(e,a,t,{allOwnKeys:n}={})=>(vt(a,(s,i)=>{t&&Le(s)?e[i]=mi(s,t):e[i]=s},{allOwnKeys:n}),e),ed=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),td=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},od=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&ta(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},ad=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},nd=e=>{if(!e)return null;if(bt(e))return e;let a=e.length;if(!hi(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},id=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),sd=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;a.call(e,i[0],i[1])}},rd=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},ld=Ge("HTMLFormElement"),cd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),yi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),dd=Ge("RegExp"),bi=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};vt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},md=e=>{bi(e,(a,t)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Le(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ud=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return bt(e)?n(e):n(String(e).split(a)),t},hd=()=>{},pd=(e,a)=>(e=+e,Number.isFinite(e)?e:a),aa="abcdefghijklmnopqrstuvwxyz",wi="0123456789",Si={DIGIT:wi,ALPHA:aa,ALPHA_DIGIT:aa+aa.toUpperCase()+wi},gd=(e=16,a=Si.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function fd(e){return!!(e&&Le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yd=e=>{const a=new Array(10),t=(n,s)=>{if(no(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=bt(n)?[]:{};return vt(n,(r,l)=>{const u=t(r,s+1);!Tt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},bd=Ge("AsyncFunction"),k={isArray:bt,isArrayBuffer:ui,isBuffer:Dc,isFormData:Zc,isArrayBufferView:jc,isString:Wc,isNumber:hi,isBoolean:Uc,isObject:no,isPlainObject:io,isUndefined:Tt,isDate:Hc,isFile:Gc,isBlob:qc,isRegExp:dd,isFunction:Le,isStream:Kc,isURLSearchParams:Xc,isTypedArray:id,isFileList:Jc,forEach:vt,merge:oa,extend:Qc,trim:Yc,stripBOM:ed,inherits:td,toFlatObject:od,kindOf:oo,kindOfTest:Ge,endsWith:ad,toArray:nd,forEachEntry:sd,matchAll:rd,isHTMLForm:ld,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:bi,freezeMethods:md,toObjectSet:ud,toCamelCase:cd,noop:hd,toFiniteNumber:pd,findKey:pi,global:gi,isContextDefined:fi,ALPHABET:Si,generateString:gd,isSpecCompliantForm:fd,toJSONObject:yd,isAsyncFn:bd,isThenable:e=>e&&(no(e)||Le(e))&&Le(e.then)&&Le(e.catch)};function G(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}k.inherits(G,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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _i=G.prototype,ki={};["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=>{ki[e]={value:e}}),Object.defineProperties(G,ki),Object.defineProperty(_i,"isAxiosError",{value:!0}),G.from=(e,a,t,n,s,i)=>{const r=Object.create(_i);return k.toFlatObject(e,r,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),G.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const wd=null;function na(e){return k.isPlainObject(e)||k.isArray(e)}function Ci(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ei(e,a,t){return e?e.concat(a).map(function(s,i){return s=Ci(s),!t&&i?"["+s+"]":s}).join(t?".":""):a}function Sd(e){return k.isArray(e)&&!e.some(na)}const _d=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function so(e,a,t){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=k.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!k.isUndefined(b[g])});const n=t.metaTokens,s=t.visitor||m,i=t.dots,r=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(k.isDate(p))return p.toISOString();if(!u&&k.isBlob(p))throw new G("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(p)||k.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function m(p,g,b){let S=p;if(p&&!b&&typeof p=="object"){if(k.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(k.isArray(p)&&Sd(p)||(k.isFileList(p)||k.endsWith(g,"[]"))&&(S=k.toArray(p)))return g=Ci(g),S.forEach(function(O,L){!(k.isUndefined(O)||O===null)&&a.append(r===!0?Ei([g],L,i):r===null?g:g+"[]",c(O))}),!1}return na(p)?!0:(a.append(Ei(b,g,i),c(p)),!1)}const h=[],f=Object.assign(_d,{defaultVisitor:m,convertValue:c,isVisitable:na});function d(p,g){if(!k.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(p),k.forEach(p,function(S,_){(!(k.isUndefined(S)||S===null)&&s.call(a,S,k.isString(_)?_.trim():_,g,f))===!0&&d(S,g?g.concat(_):[_])}),h.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return d(e),a}function Bi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function ia(e,a){this._pairs=[],e&&so(e,this,a)}const xi=ia.prototype;xi.append=function(a,t){this._pairs.push([a,t])},xi.toString=function(a){const t=a?function(n){return a.call(this,n,Bi)}:Bi;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function kd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ni(e,a,t){if(!a)return e;const n=t&&t.encode||kd,s=t&&t.serialize;let i;if(s?i=s(a,t):i=k.isURLSearchParams(a)?a.toString():new ia(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ti{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(n){n!==null&&a(n)})}}const vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ia,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Oi=typeof window<"u"&&typeof document<"u",Ed=(e=>Oi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Bd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oi,hasStandardBrowserEnv:Ed,hasStandardBrowserWebWorkerEnv:Bd},Symbol.toStringTag,{value:"Module"})),...Cd};function xd(e,a){return so(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return qe.isNode&&k.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Nd(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Td(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function Ai(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&k.isArray(s)?s.length:r,u?(k.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!k.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&k.isArray(s[r])&&(s[r]=Td(s[r])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const t={};return k.forEachEntry(e,(n,s)=>{a(Nd(n),s,t,0)}),t}return null}function vd(e,a,t){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const sa={transitional:vi,adapter:["xhr","http"],transformRequest:[function(a,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=k.isObject(a);if(i&&k.isHTMLForm(a)&&(a=new FormData(a)),k.isFormData(a))return s?JSON.stringify(Ai(a)):a;if(k.isArrayBuffer(a)||k.isBuffer(a)||k.isStream(a)||k.isFile(a)||k.isBlob(a))return a;if(k.isArrayBufferView(a))return a.buffer;if(k.isURLSearchParams(a))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return xd(a,this.formSerializer).toString();if((l=k.isFileList(a))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return so(l?{"files[]":a}:a,u&&new u,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),vd(a)):a}],transformResponse:[function(a){const t=this.transitional||sa.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(a&&k.isString(a)&&(n&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(a)}catch(l){if(r)throw l.name==="SyntaxError"?G.from(l,G.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{sa.headers[e]={}});const ra=sa,Od=k.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"]),Ad=e=>{const a={};let t,n,s;return e&&e.split(`
2
- `).forEach(function(r){s=r.indexOf(":"),t=r.substring(0,s).trim().toLowerCase(),n=r.substring(s+1).trim(),!(!t||a[t]&&Od[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},Vi=Symbol("internals");function Ot(e){return e&&String(e).trim().toLowerCase()}function ro(e){return e===!1||e==null?e:k.isArray(e)?e.map(ro):String(e)}function Vd(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const $d=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function la(e,a,t,n,s){if(k.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function Id(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function Pd(e,a){const t=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class lo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ot(u);if(!m)throw new Error("header name must be a non-empty string");const h=k.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=ro(l))}const r=(l,u)=>k.forEach(l,(c,m)=>i(c,m,u));return k.isPlainObject(a)||a instanceof this.constructor?r(a,t):k.isString(a)&&(a=a.trim())&&!$d(a)?r(Ad(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return Vd(s);if(k.isFunction(t))return t.call(this,s,n);if(k.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||la(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ot(r),r){const l=k.findKey(n,r);l&&(!t||la(n,n[l],l,t))&&(delete n[l],s=!0)}}return k.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||la(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return k.forEach(this,(s,i)=>{const r=k.findKey(n,i);if(r){t[r]=ro(s),delete t[i];return}const l=a?Id(i):String(i).trim();l!==i&&delete t[i],t[l]=ro(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return k.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&k.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const n=(this[Vi]=this[Vi]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=Ot(r);n[l]||(Pd(s,r),n[l]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}lo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(lo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),k.freezeMethods(lo);const ot=lo;function ca(e,a){const t=this||ra,n=a||t,s=ot.from(n.headers);let i=n.data;return k.forEach(e,function(l){i=l.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function $i(e){return!!(e&&e.__CANCEL__)}function At(e,a,t){G.call(this,e??"canceled",G.ERR_CANCELED,a,t),this.name="CanceledError"}k.inherits(At,G,{__CANCEL__:!0});function Rd(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new G("Request failed with status code "+t.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Ld=qe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];k.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),k.isString(n)&&r.push("path="+n),k.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fd(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Ii(e,a){return e&&!zd(a)?Fd(e,a):a}const Md=qe.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(i){let r=i;return a&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(r){const l=k.isString(r)?s(r):r;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function Dd(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function jd(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(u){const c=Date.now(),m=n[i];r||(r=c),t[s]=u,n[s]=c;let h=i,f=0;for(;h!==s;)f+=t[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-r<a)return;const d=m&&c-m;return d?Math.round(f*1e3/d):void 0}}function Pi(e,a){let t=0;const n=jd(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const da={http:wd,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){let s=e.data;const i=ot.from(e.headers).normalize();let{responseType:r,withXSRFToken:l}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(k.isFormData(s)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((m=i.getContentType())!==!1){const[g,...b]=m?m.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let h=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const f=Ii(e.baseURL,e.url);h.open(e.method.toUpperCase(),Ni(f,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function d(){if(!h)return;const g=ot.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),S={data:!r||r==="text"||r==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};Rd(function(O){t(O),c()},function(O){n(O),c()},S),h=null}if("onloadend"in h?h.onloadend=d:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(d)},h.onabort=function(){h&&(n(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||vi;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new G(b,S.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},qe.hasStandardBrowserEnv&&(l&&k.isFunction(l)&&(l=l(e)),l||l!==!1&&Md(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Ld.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in h&&k.forEach(i.toJSON(),function(b,S){h.setRequestHeader(S,b)}),k.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),r&&r!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",Pi(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Pi(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=g=>{h&&(n(!g||g.type?new At(null,e,h):g),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const p=Dd(f);if(p&&qe.protocols.indexOf(p)===-1){n(new G("Unsupported protocol "+p+":",G.ERR_BAD_REQUEST,e));return}h.send(s||null)})}};k.forEach(da,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Ri=e=>`- ${e}`,Wd=e=>k.isFunction(e)||e===null||e===!1,Li={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!Wd(t)&&(n=da[(r=String(t)).toLowerCase()],n===void 0))throw new G(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
1
+ (function(pt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(pt=typeof globalThis<"u"?globalThis:pt||self,o(pt.GSCLanding={},pt.Vue))})(this,function(pt,o){"use strict";function mi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Fc}=Object.prototype,{getPrototypeOf:ta}=Object,oo=(e=>a=>{const t=Fc.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ge=e=>(e=e.toLowerCase(),a=>oo(a)===e),ao=e=>a=>typeof a===e,{isArray:bt}=Array,Tt=ao("undefined");function Mc(e){return e!==null&&!Tt(e)&&e.constructor!==null&&!Tt(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ui=Ge("ArrayBuffer");function Dc(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&ui(e.buffer),a}const jc=ao("string"),Le=ao("function"),hi=ao("number"),no=e=>e!==null&&typeof e=="object",Wc=e=>e===!0||e===!1,io=e=>{if(oo(e)!=="object")return!1;const a=ta(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Uc=Ge("Date"),Hc=Ge("File"),Gc=Ge("Blob"),qc=Ge("FileList"),Jc=e=>no(e)&&Le(e.pipe),Kc=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((a=oo(e))==="formdata"||a==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},Zc=Ge("URLSearchParams"),Xc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),bt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function pi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fi=e=>!Tt(e)&&e!==gi;function oa(){const{caseless:e}=fi(this)&&this||{},a={},t=(n,s)=>{const i=e&&pi(a,s)||s;io(a[i])&&io(n)?a[i]=oa(a[i],n):io(n)?a[i]=oa({},n):bt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&vt(arguments[n],t);return a}const Yc=(e,a,t,{allOwnKeys:n}={})=>(vt(a,(s,i)=>{t&&Le(s)?e[i]=mi(s,t):e[i]=s},{allOwnKeys:n}),e),Qc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ed=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},td=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&ta(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},od=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},ad=e=>{if(!e)return null;if(bt(e))return e;let a=e.length;if(!hi(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},nd=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),id=(e,a)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;a.call(e,i[0],i[1])}},sd=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},rd=Ge("HTMLFormElement"),ld=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),yi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),cd=Ge("RegExp"),bi=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};vt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},dd=e=>{bi(e,(a,t)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Le(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},md=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return bt(e)?n(e):n(String(e).split(a)),t},ud=()=>{},hd=(e,a)=>(e=+e,Number.isFinite(e)?e:a),aa="abcdefghijklmnopqrstuvwxyz",wi="0123456789",Si={DIGIT:wi,ALPHA:aa,ALPHA_DIGIT:aa+aa.toUpperCase()+wi},pd=(e=16,a=Si.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function gd(e){return!!(e&&Le(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const fd=e=>{const a=new Array(10),t=(n,s)=>{if(no(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=bt(n)?[]:{};return vt(n,(r,l)=>{const u=t(r,s+1);!Tt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},yd=Ge("AsyncFunction"),k={isArray:bt,isArrayBuffer:ui,isBuffer:Mc,isFormData:Kc,isArrayBufferView:Dc,isString:jc,isNumber:hi,isBoolean:Wc,isObject:no,isPlainObject:io,isUndefined:Tt,isDate:Uc,isFile:Hc,isBlob:Gc,isRegExp:cd,isFunction:Le,isStream:Jc,isURLSearchParams:Zc,isTypedArray:nd,isFileList:qc,forEach:vt,merge:oa,extend:Yc,trim:Xc,stripBOM:Qc,inherits:ed,toFlatObject:td,kindOf:oo,kindOfTest:Ge,endsWith:od,toArray:ad,forEachEntry:id,matchAll:sd,isHTMLForm:rd,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:bi,freezeMethods:dd,toObjectSet:md,toCamelCase:ld,noop:ud,toFiniteNumber:hd,findKey:pi,global:gi,isContextDefined:fi,ALPHABET:Si,generateString:pd,isSpecCompliantForm:gd,toJSONObject:fd,isAsyncFn:yd,isThenable:e=>e&&(no(e)||Le(e))&&Le(e.then)&&Le(e.catch)};function G(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}k.inherits(G,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:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _i=G.prototype,ki={};["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=>{ki[e]={value:e}}),Object.defineProperties(G,ki),Object.defineProperty(_i,"isAxiosError",{value:!0}),G.from=(e,a,t,n,s,i)=>{const r=Object.create(_i);return k.toFlatObject(e,r,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),G.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const bd=null;function na(e){return k.isPlainObject(e)||k.isArray(e)}function Ci(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ei(e,a,t){return e?e.concat(a).map(function(s,i){return s=Ci(s),!t&&i?"["+s+"]":s}).join(t?".":""):a}function wd(e){return k.isArray(e)&&!e.some(na)}const Sd=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function so(e,a,t){if(!k.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=k.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!k.isUndefined(b[g])});const n=t.metaTokens,s=t.visitor||m,i=t.dots,r=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(k.isDate(p))return p.toISOString();if(!u&&k.isBlob(p))throw new G("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(p)||k.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function m(p,g,b){let S=p;if(p&&!b&&typeof p=="object"){if(k.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(k.isArray(p)&&wd(p)||(k.isFileList(p)||k.endsWith(g,"[]"))&&(S=k.toArray(p)))return g=Ci(g),S.forEach(function(O,L){!(k.isUndefined(O)||O===null)&&a.append(r===!0?Ei([g],L,i):r===null?g:g+"[]",c(O))}),!1}return na(p)?!0:(a.append(Ei(b,g,i),c(p)),!1)}const h=[],f=Object.assign(Sd,{defaultVisitor:m,convertValue:c,isVisitable:na});function d(p,g){if(!k.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(p),k.forEach(p,function(S,_){(!(k.isUndefined(S)||S===null)&&s.call(a,S,k.isString(_)?_.trim():_,g,f))===!0&&d(S,g?g.concat(_):[_])}),h.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return d(e),a}function Bi(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return a[n]})}function ia(e,a){this._pairs=[],e&&so(e,this,a)}const xi=ia.prototype;xi.append=function(a,t){this._pairs.push([a,t])},xi.toString=function(a){const t=a?function(n){return a.call(this,n,Bi)}:Bi;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function _d(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ni(e,a,t){if(!a)return e;const n=t&&t.encode||_d,s=t&&t.serialize;let i;if(s?i=s(a,t):i=k.isURLSearchParams(a)?a.toString():new ia(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ti{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(n){n!==null&&a(n)})}}const vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ia,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Oi=typeof window<"u"&&typeof document<"u",Cd=(e=>Oi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ed=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oi,hasStandardBrowserEnv:Cd,hasStandardBrowserWebWorkerEnv:Ed},Symbol.toStringTag,{value:"Module"})),...kd};function Bd(e,a){return so(e,new qe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return qe.isNode&&k.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function xd(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Nd(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function Ai(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&k.isArray(s)?s.length:r,u?(k.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!k.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&k.isArray(s[r])&&(s[r]=Nd(s[r])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const t={};return k.forEachEntry(e,(n,s)=>{a(xd(n),s,t,0)}),t}return null}function Td(e,a,t){if(k.isString(e))try{return(a||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const sa={transitional:vi,adapter:["xhr","http"],transformRequest:[function(a,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=k.isObject(a);if(i&&k.isHTMLForm(a)&&(a=new FormData(a)),k.isFormData(a))return s?JSON.stringify(Ai(a)):a;if(k.isArrayBuffer(a)||k.isBuffer(a)||k.isStream(a)||k.isFile(a)||k.isBlob(a))return a;if(k.isArrayBufferView(a))return a.buffer;if(k.isURLSearchParams(a))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Bd(a,this.formSerializer).toString();if((l=k.isFileList(a))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return so(l?{"files[]":a}:a,u&&new u,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),Td(a)):a}],transformResponse:[function(a){const t=this.transitional||sa.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(a&&k.isString(a)&&(n&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(a)}catch(l){if(r)throw l.name==="SyntaxError"?G.from(l,G.ERR_BAD_RESPONSE,this,null,this.response):l}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{sa.headers[e]={}});const ra=sa,vd=k.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"]),Od=e=>{const a={};let t,n,s;return e&&e.split(`
2
+ `).forEach(function(r){s=r.indexOf(":"),t=r.substring(0,s).trim().toLowerCase(),n=r.substring(s+1).trim(),!(!t||a[t]&&vd[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},Vi=Symbol("internals");function Ot(e){return e&&String(e).trim().toLowerCase()}function ro(e){return e===!1||e==null?e:k.isArray(e)?e.map(ro):String(e)}function Ad(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const Vd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function la(e,a,t,n,s){if(k.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!k.isString(a)){if(k.isString(n))return a.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(a)}}function $d(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function Pd(e,a){const t=k.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class lo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ot(u);if(!m)throw new Error("header name must be a non-empty string");const h=k.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=ro(l))}const r=(l,u)=>k.forEach(l,(c,m)=>i(c,m,u));return k.isPlainObject(a)||a instanceof this.constructor?r(a,t):k.isString(a)&&(a=a.trim())&&!Vd(a)?r(Od(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return Ad(s);if(k.isFunction(t))return t.call(this,s,n);if(k.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ot(a),a){const n=k.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||la(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ot(r),r){const l=k.findKey(n,r);l&&(!t||la(n,n[l],l,t))&&(delete n[l],s=!0)}}return k.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||la(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return k.forEach(this,(s,i)=>{const r=k.findKey(n,i);if(r){t[r]=ro(s),delete t[i];return}const l=a?$d(i):String(i).trim();l!==i&&delete t[i],t[l]=ro(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return k.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&k.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const n=(this[Vi]=this[Vi]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=Ot(r);n[l]||(Pd(s,r),n[l]=!0)}return k.isArray(a)?a.forEach(i):i(a),this}}lo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(lo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),k.freezeMethods(lo);const ot=lo;function ca(e,a){const t=this||ra,n=a||t,s=ot.from(n.headers);let i=n.data;return k.forEach(e,function(l){i=l.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function $i(e){return!!(e&&e.__CANCEL__)}function At(e,a,t){G.call(this,e??"canceled",G.ERR_CANCELED,a,t),this.name="CanceledError"}k.inherits(At,G,{__CANCEL__:!0});function Id(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new G("Request failed with status code "+t.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Rd=qe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];k.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),k.isString(n)&&r.push("path="+n),k.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ld(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zd(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Pi(e,a){return e&&!Ld(a)?zd(e,a):a}const Fd=qe.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function s(i){let r=i;return a&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=s(window.location.href),function(r){const l=k.isString(r)?s(r):r;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}();function Md(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Dd(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(u){const c=Date.now(),m=n[i];r||(r=c),t[s]=u,n[s]=c;let h=i,f=0;for(;h!==s;)f+=t[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-r<a)return;const d=m&&c-m;return d?Math.round(f*1e3/d):void 0}}function Ii(e,a){let t=0;const n=Dd(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const da={http:bd,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){let s=e.data;const i=ot.from(e.headers).normalize();let{responseType:r,withXSRFToken:l}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let m;if(k.isFormData(s)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((m=i.getContentType())!==!1){const[g,...b]=m?m.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let h=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const f=Pi(e.baseURL,e.url);h.open(e.method.toUpperCase(),Ni(f,e.params,e.paramsSerializer),!0),h.timeout=e.timeout;function d(){if(!h)return;const g=ot.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),S={data:!r||r==="text"||r==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:g,config:e,request:h};Id(function(O){t(O),c()},function(O){n(O),c()},S),h=null}if("onloadend"in h?h.onloadend=d:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(d)},h.onabort=function(){h&&(n(new G("Request aborted",G.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new G("Network Error",G.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||vi;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),n(new G(b,S.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,h)),h=null},qe.hasStandardBrowserEnv&&(l&&k.isFunction(l)&&(l=l(e)),l||l!==!1&&Fd(f))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&Rd.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in h&&k.forEach(i.toJSON(),function(b,S){h.setRequestHeader(S,b)}),k.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),r&&r!=="json"&&(h.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&h.addEventListener("progress",Ii(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",Ii(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=g=>{h&&(n(!g||g.type?new At(null,e,h):g),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const p=Md(f);if(p&&qe.protocols.indexOf(p)===-1){n(new G("Unsupported protocol "+p+":",G.ERR_BAD_REQUEST,e));return}h.send(s||null)})}};k.forEach(da,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Ri=e=>`- ${e}`,jd=e=>k.isFunction(e)||e===null||e===!1,Li={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!jd(t)&&(n=da[(r=String(t)).toLowerCase()],n===void 0))throw new G(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
4
4
  `+i.map(Ri).join(`
5
- `):" "+Ri(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:da};function ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function zi(e){return ma(e),e.headers=ot.from(e.headers),e.data=ca.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Li.getAdapter(e.adapter||ra.adapter)(e).then(function(n){return ma(e),n.data=ca.call(e,e.transformResponse,n),n.headers=ot.from(n.headers),n},function(n){return $i(n)||(ma(e),n&&n.response&&(n.response.data=ca.call(e,e.transformResponse,n.response),n.response.headers=ot.from(n.response.headers))),Promise.reject(n)})}const Fi=e=>e instanceof ot?e.toJSON():e;function wt(e,a){a=a||{};const t={};function n(c,m,h){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:h},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function s(c,m,h){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!k.isUndefined(m))return n(void 0,m)}function r(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(Fi(c),Fi(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(m){const h=u[m]||s,f=h(e[m],a[m],m);k.isUndefined(f)&&h!==l||(t[m]=f)}),t}const Mi="1.6.7",ua={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{ua[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const Di={};ua.transitional=function(a,t,n){function s(i,r){return"[Axios v"+Mi+"] Transitional option '"+i+"'"+r+(n?". "+n:"")}return(i,r,l)=>{if(a===!1)throw new G(s(r," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!Di[r]&&(Di[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),a?a(i,r,l):!0}};function Ud(e,a,t){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new G("option "+i+" must be "+u,G.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const ha={assertOptions:Ud,validators:ua},lt=ha.validators;class co{constructor(a){this.defaults=a,this.interceptors={request:new Ti,response:new Ti}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
- `+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=wt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ha.assertOptions(n,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),s!=null&&(k.isFunction(s)?t.paramsSerializer={serialize:s}:ha.assertOptions(s,{encode:lt.function,serialize:lt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&k.merge(i.common,i[t.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=ot.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let m,h=0,f;if(!u){const p=[zi.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=zi.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=wt(this.defaults,a);const t=Ii(a.baseURL,a.url);return Ni(t,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(a){co.prototype[a]=function(t,n){return this.request(wt(n||{},{method:a,url:t,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(a){function t(n){return function(i,r,l){return this.request(wt(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}co.prototype[a]=t(),co.prototype[a+"Form"]=t(!0)});const mo=co;class pa{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(i,r,l){n.reason||(n.reason=new At(i,r,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new pa(function(s){a=s}),cancel:a}}}const Hd=pa;function Gd(e){return function(t){return e.apply(null,t)}}function qd(e){return k.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,a])=>{ga[a]=e});const Jd=ga;function ji(e){const a=new mo(e),t=mi(mo.prototype.request,a);return k.extend(t,mo.prototype,a,{allOwnKeys:!0}),k.extend(t,a,null,{allOwnKeys:!0}),t.create=function(s){return ji(wt(e,s))},t}const re=ji(ra);re.Axios=mo,re.CanceledError=At,re.CancelToken=Hd,re.isCancel=$i,re.VERSION=Mi,re.toFormData=so,re.AxiosError=G,re.Cancel=re.CanceledError,re.all=function(a){return Promise.all(a)},re.spread=Gd,re.isAxiosError=qd,re.mergeConfig=wt,re.AxiosHeaders=ot,re.formToJSON=e=>Ai(k.isHTMLForm(e)?new FormData(e):e),re.getAdapter=Li.getAdapter,re.HttpStatusCode=Jd,re.default=re;function Kd(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const fa=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),Ne=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Zd={class:"player-card"},Xd={class:"player-card__image"},Yd=["src"],Qd={class:"player-card__number"},em={class:"player-card__right-data"},tm={class:"player-card__details"},om={class:"player-card__name"},am={class:"player-card__position"},nm=Ne({__name:"GSCPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position_id:{type:Number,default:0},position:{type:String,default:"-"},photo:{type:String,default:""},photoNoBg:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["clickProfileBtn"],setup(e,{emit:a}){return(t,n)=>(o.openBlock(),o.createElementBlock("div",Zd,[o.createElementVNode("div",Xd,[o.createElementVNode("img",{class:o.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,Yd),o.createElementVNode("div",Qd,o.toDisplayString(e.jersey),1),o.createElementVNode("div",em,[o.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=s=>a("clickProfileBtn"))}," Ver perfil ")])]),o.createElementVNode("div",tm,[o.createElementVNode("p",om,o.toDisplayString(e.name),1),o.createElementVNode("p",am,o.toDisplayString(o.unref(fa).get(e.position_id)),1)])]))}},[["__scopeId","data-v-caa30d1f"]]),im=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ya={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Wi=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Ui=ya.setup;ya.setup=Ui?(e,a)=>(Wi(),Ui(e,a)):Wi;const sm={ref:"gscScrollableContainer",class:"scrollable-container"},rm={class:"scrollable-arrows"},lm=["width","height","viewBox"],cm=["stroke"],dm={class:"scrollable-wrapper"},mm={class:"scrollable-arrows"},um=["width","height","viewBox"],hm=["stroke"];function pm(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",sm,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",rm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,cm)],8,lm))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",dm,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",mm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,hm)],8,um))])],2)):o.createCommentVNode("",!0)],512)}const Vt=im(ya,[["render",pm],["__scopeId","data-v-b548a08d"]]),Hi=e=>(o.pushScopeId("data-v-34ea0cee"),e=e(),o.popScopeId(),e),gm={class:"my-players"},fm={class:"my-players__header"},ym={class:"my-players__title"},bm=[Hi(()=>o.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),Hi(()=>o.createElementVNode("span",null,"→",-1))],wm={class:"my-players__list"},Sm=Ne({__name:"GSCPlayersLanding",props:{isPlayer:{type:Boolean,default:!1},isImgFullWidth:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4ODAsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiYnJpenVlbGEiLCJlbWFpbCI6IiIsInByb3ZpZGVyX2lkIjoxLCJsb2dpbl9nb2xzdGF0cyI6MSwiaWF0IjoxNjk4NzIzODA1LCJleHAiOjE3MzAyNTk4MDV9.3DR48YLPVAQKTisQg9SABSqDdurMuS6_z7IJfjXRlPQ"},playerId:{type:Number,default:34605},teamId:{type:Number,default:2},seasonId:{type:Number,default:1772}},emits:["viewAll","clickProfileBtn","totalPlayers"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.ref(0),i=o.ref(0);o.onMounted(async()=>{const l=await r(t.teamId,t.seasonId,t.token);i.value=l.length,n.value=l.map(u=>({...u,position:fa.get(u.position_id)})),t.isPlayer&&t.playerId&&(n.value=l.filter(u=>u.player_id!==t.playerId)),a("totalPlayers",i.value)});const r=async(l,u,c)=>{var h;const m="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((h=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${u}/${l}`,{headers:{Authorization:c||m}})).json())[0])==null?void 0:h.players)||[]}catch(f){return Promise.reject(f)}};return o.watch(()=>t.seasonId,async(l,u)=>{n.value=[];const c=await r(t.teamId,l,t.token);i.value=c.length,n.value=c.map(m=>({...m,position:fa.get(m.position_id)})),a("totalPlayers",i.value),s.value+=1}),(l,u)=>(o.openBlock(),o.createElementBlock("div",gm,[o.createElementVNode("div",fm,[o.createElementVNode("h3",ym,o.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),o.createElementVNode("button",{class:"my-players__button",onClick:u[0]||(u[0]=c=>a("viewAll"))},bm)]),(o.openBlock(),o.createBlock(o.unref(Vt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:s.value,arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",wm,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,c=>(o.openBlock(),o.createBlock(nm,o.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:m=>a("clickProfileBtn",c),key:c.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-34ea0cee"]]),ba="data:image/svg+xml,%3csvg%20width='69'%20height='70'%20viewBox='0%200%2069%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29756)'%3e%3crect%20x='29'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='29.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_b_3196_29756)'%3e%3crect%20x='48'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='48.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_b_3196_29756)'%3e%3crect%20x='10'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='10.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M60.5556%208.70056H8.44444C4.33299%208.70056%201%2011.7003%201%2015.4006V62.3007C1%2066.001%204.33299%2069.0007%208.44444%2069.0007H60.5556C64.667%2069.0007%2068%2066.001%2068%2062.3007V15.4006C68%2011.7003%2064.667%208.70056%2060.5556%208.70056Z'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2028.7991H68'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.3872%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.6128%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29756'%20x='13'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_b_3196_29756'%20x='32'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter2_b_3196_29756'%20x='-6'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Gi="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29781)'%3e%3crect%20x='6.00049'%20y='6'%20width='60'%20height='60'%20rx='30'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='6.50049'%20y='6.5'%20width='59'%20height='59'%20rx='29.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cpath%20opacity='0.6'%20d='M71%2036C71%2042.9221%2068.9475%2049.6887%2065.1019%2055.4443C61.2563%2061.1998%2055.7905%2065.6859%2049.3954%2068.3351C43.0004%2070.9844%2035.9634%2071.6779%2029.1743%2070.3279C22.3851%2068.978%2016.1487%2065.6452%2011.2536%2060.751C6.3585%2055.8569%203.02455%2049.6211%201.67333%2042.8322C0.322108%2036.0433%201.01429%2029.0061%203.66235%2022.6106C6.31041%2016.2151%2010.7954%2010.7484%2016.5503%206.90175C22.3051%203.05512%2029.0714%201.0013%2035.9934%201C40.5903%200.999139%2045.1422%201.9038%2049.3894%203.66233C53.6365%205.42086%2057.4957%207.99881%2060.7464%2011.2489C63.9972%2014.4991%2066.5758%2018.3577%2068.3352%2022.6046C70.0945%2026.8514%2071%2031.4032%2071%2036V36Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.6'%20d='M74%2074L62%2062'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.4013%2048.6044V45.4039C44.4013%2043.7062%2043.727%2042.0781%2042.5266%2040.8777C41.3263%2039.6773%2039.6983%2039.0029%2038.0007%2039.0029H28.3999C26.7024%2039.0029%2025.0743%2039.6773%2023.874%2040.8777C22.6737%2042.0781%2021.9993%2043.7062%2021.9993%2045.4039V48.6044'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.2031%2032.6016C36.738%2032.6016%2039.6037%2029.7358%2039.6037%2026.2006C39.6037%2022.6654%2036.738%2019.7996%2033.2031%2019.7996C29.6682%2019.7996%2026.8026%2022.6654%2026.8026%2026.2006C26.8026%2029.7358%2029.6682%2032.6016%2033.2031%2032.6016Z'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.1998%2027.8009V37.4024M54.0003%2032.6017H44.3994'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29781'%20x='-9.99951'%20y='-10'%20width='92'%20height='92'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29781'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29781'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",_m="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Football%20Jersey'%3e%3cg%20id='Layer%2010'%3e%3cpath%20id='Vector'%20d='M71.7192%2052.1016V40.3172L87.7223%2033.6376C87.9169%2033.558%2088.0912%2033.4359%2088.2323%2033.2802C88.3735%2033.1244%2088.4779%2032.939%2088.538%2032.7376C88.5985%2032.5342%2088.6123%2032.3197%2088.5782%2032.1103C88.5441%2031.9009%2088.463%2031.7018%2088.3411%2031.5282L71.4661%207.62193C71.4289%207.5532%2071.3866%207.48739%2071.3395%207.42506C69.4243%205.50395%2067.1463%203.98259%2064.6381%202.94935C62.1298%201.91612%2059.4413%201.39161%2056.7286%201.40631H53.438C53.065%201.40631%2052.7073%201.55446%2052.4436%201.81819C52.1799%202.08191%2052.0317%202.4396%2052.0317%202.81256V5.62506C52.0317%207.48986%2051.2909%209.27829%2049.9723%2010.5969C48.6537%2011.9155%2046.8653%2012.6563%2045.0005%2012.6563C43.1357%2012.6563%2041.3472%2011.9155%2040.0286%2010.5969C38.71%209.27829%2037.9692%207.48986%2037.9692%205.62506V2.81256C37.9692%202.4396%2037.8211%202.08191%2037.5573%201.81819C37.2936%201.55446%2036.9359%201.40631%2036.563%201.40631H33.2723C30.5634%201.39718%2027.8796%201.92572%2025.3764%202.96128C22.8731%203.99684%2020.6003%205.51885%2018.6895%207.43912C18.6424%207.50145%2018.6001%207.56727%2018.563%207.63599L1.68797%2031.5422C1.56603%2031.7159%201.48498%2031.9149%201.45089%2032.1244C1.41679%2032.3338%201.43054%2032.5482%201.49109%2032.7516C1.55114%2032.9531%201.65558%2033.1385%201.79673%2033.2942C1.93788%2033.45%202.11215%2033.5721%202.30672%2033.6516L18.2817%2040.3172V81.5626C18.2817%2081.9355%2018.4299%2082.2932%2018.6936%2082.5569C18.9573%2082.8206%2019.315%2082.9688%2019.688%2082.9688H57.1505C59.2007%2085.1122%2061.7416%2086.7246%2064.5541%2087.6667C67.3665%2088.6089%2070.366%2088.8527%2073.2936%2088.3769C76.2213%2087.9011%2078.9892%2086.7202%2081.3586%2084.9359C83.7279%2083.1516%2085.6276%2080.8176%2086.8936%2078.1353C88.1596%2075.453%2088.7539%2072.503%2088.6253%2069.5397C88.4967%2066.5764%2087.649%2063.6889%2086.1554%2061.1264C84.6617%2058.5639%2082.567%2056.4032%2080.052%2054.8309C77.5369%2053.2587%2074.6771%2052.3219%2071.7192%2052.1016ZM84.8255%2065.011L77.7942%2066.0235L71.7192%2061.2001V54.9141C74.6356%2055.1837%2077.4155%2056.2757%2079.7356%2058.0631C82.0558%2059.8505%2083.8208%2062.2599%2084.8255%2065.011ZM73.5755%2074.5313H67.1067L64.927%2067.9922L70.313%2063.6751L75.6989%2067.9922L73.5755%2074.5313ZM54.8442%2070.3126C54.8475%2069.4546%2054.9227%2068.5985%2055.0692%2067.7532L62.227%2068.7657L64.5192%2075.6563L59.7661%2081.5626C58.2159%2080.1269%2056.9786%2078.3867%2056.1317%2076.4509C55.2848%2074.5152%2054.8465%2072.4255%2054.8442%2070.3126ZM68.9067%2052.0313C66.9688%2052.1978%2065.07%2052.6726%2063.2817%2053.4376V51.3141C63.2728%2045.3135%2065.2507%2039.4787%2068.9067%2034.7204V52.0313ZM68.9067%2054.8438V61.1297L62.8739%2066.0938L55.8427%2065.0813C56.8334%2062.3231%2058.5873%2059.9031%2060.9002%2058.1031C63.213%2056.3031%2065.9897%2055.1972%2068.9067%2054.9141V54.8438ZM71.7192%2037.2657V12.8672L85.0223%2031.7251L71.7192%2037.2657ZM4.97859%2031.7251L18.2817%2012.8672V37.2657L4.97859%2031.7251ZM21.0942%2034.7204C24.7503%2039.4787%2026.7282%2045.3135%2026.7192%2051.3141V80.1563H21.0942V34.7204ZM29.5317%2080.1563V51.3141C29.546%2043.5117%2026.5194%2036.0108%2021.0942%2030.4032V9.02818C24.3875%205.92407%2028.7467%204.20253%2033.2723%204.21881H35.1567V5.62506C35.1567%208.23578%2036.1938%2010.7396%2038.0399%2012.5856C39.8859%2014.4317%2042.3897%2015.4688%2045.0005%2015.4688C47.6112%2015.4688%2050.115%2014.4317%2051.9611%2012.5856C53.8071%2010.7396%2054.8442%208.23578%2054.8442%205.62506V4.21881H56.7286C61.2542%204.20253%2065.6134%205.92407%2068.9067%209.02818V30.4032C63.4816%2036.0108%2060.455%2043.5117%2060.4692%2051.3141V54.9282C56.3926%2057.542%2053.5197%2061.6664%2052.4809%2066.3963C51.4421%2071.1261%2052.3224%2076.0748%2054.9286%2080.1563H29.5317ZM61.988%2083.3204L66.7692%2077.3438H73.8005L78.5817%2083.3204C76.1021%2084.9263%2073.211%2085.7808%2070.2567%2085.7808C67.3025%2085.7808%2064.4113%2084.9263%2061.9317%2083.3204H61.988ZM80.8598%2081.5626L76.1067%2075.6563L78.3989%2068.7657L85.5567%2067.7532C85.9891%2070.2641%2085.7858%2072.8433%2084.9653%2075.2555C84.1449%2077.6677%2082.7335%2079.836%2080.8598%2081.5626Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",km="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='fi_8584464'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.9582%2067.1642V5.59678C76.9582%204.8244%2076.3322%204.19775%2075.5592%204.19775H13.9918C13.2194%204.19775%2012.5928%204.8244%2012.5928%205.59678V67.1642C12.5928%2067.676%2012.8722%2068.1475%2013.3222%2068.3926L44.1055%2085.1836C44.5233%2085.4113%2045.0277%2085.4113%2045.4455%2085.1836L76.2295%2068.3926C76.6788%2068.1475%2076.9582%2067.676%2076.9582%2067.1642ZM74.1602%2018.1901V66.3333L44.7758%2082.3614L15.3915%2066.3333V18.1901H74.1602ZM44.7758%2023.7875C32.419%2023.7875%2022.3873%2033.8192%2022.3873%2046.1754C22.3873%2058.5316%2032.419%2068.5632%2044.7758%2068.5632C57.132%2068.5632%2067.1637%2058.5316%2067.1637%2046.1754C67.1637%2033.8192%2057.132%2023.7875%2044.7758%2023.7875ZM38.8795%2064.8604L44.7758%2059.985L50.6715%2064.8604C48.8104%2065.4481%2046.8297%2065.7651%2044.7758%2065.7651C42.7213%2065.7651%2040.7406%2065.4481%2038.8795%2064.8604ZM35.939%2028.6905C32.2168%2030.5772%2029.177%2033.617%2027.2903%2037.3392L33.8603%2045.2834C34.2881%2045.8013%2034.2881%2046.5495%2033.8603%2047.0673L27.2903%2055.0115C29.177%2058.7337%2032.2175%2061.7742%2035.939%2063.6602L43.8839%2057.0909C44.4011%2056.6631%2045.1499%2056.6631%2045.6671%2057.0909L53.6119%2063.6602C57.3342%2061.7736%2060.374%2058.7337%2062.2607%2055.0115L55.6907%2047.0673C55.2628%2046.5495%2055.2628%2045.8013%2055.6907%2045.2834L62.2607%2037.3392C60.374%2033.617%2057.3342%2030.5765%2053.6119%2028.6905L45.6671%2035.2598C45.1499%2035.6877%2044.4011%2035.6877%2043.8839%2035.2598L35.939%2028.6905ZM45.5979%2037.5475C45.1076%2037.1908%2044.4434%2037.1908%2043.9531%2037.5475L36.8243%2042.7272C36.3333%2043.0831%2036.1284%2043.7151%2036.3158%2044.2914L39.0387%2052.6722C39.2261%2053.2484%2039.7634%2053.6393%2040.3699%2053.6393H49.1818C49.7876%2053.6393%2050.3249%2053.2484%2050.5123%2052.6722L53.2358%2044.2914C53.4225%2043.7151%2053.2177%2043.0831%2052.7274%2042.7272L45.5979%2037.5475ZM58.5848%2046.1754L63.4609%2040.279C64.0486%2042.1401%2064.3649%2044.1208%2064.3649%2046.1754C64.3649%2048.2299%2064.0486%2050.2106%2063.4609%2052.0717L58.5848%2046.1754ZM26.0908%2040.279L30.9662%2046.1754L26.0908%2052.0717C25.5031%2050.2106%2025.1861%2048.2299%2025.1861%2046.1754C25.1861%2044.1208%2025.5031%2042.1401%2026.0908%2040.279ZM44.7758%2040.4086L50.2598%2044.3935L48.1649%2050.8406H41.3861L39.2912%2044.3935L44.7758%2040.4086ZM50.6715%2027.4903L44.7758%2032.3657L38.8795%2027.4903C40.7406%2026.9026%2042.7213%2026.5856%2044.7758%2026.5856C46.8297%2026.5856%2048.8104%2026.9026%2050.6715%2027.4903ZM74.1602%2015.392H15.3915C15.3915%2014.9548%2015.3915%2012.5933%2015.3915%2012.5933H74.1602V15.392ZM15.3915%209.79454V6.99648H74.1602V9.79454H15.3915Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/svg%3e",Cm=["onClick"],Em={class:"grid-section__image"},Bm=["src"],xm={class:"grid-section__label"},Nm=Ne({__name:"GSCGridTeamsMatches",props:{isPlayer:{type:Boolean,default:!1},playerId:{type:Number,default:0},teamId:{type:Number,default:0},seasonSelected:{type:Number,default:0},nextRivalId:{type:Number,default:0},hasTeam:{type:Boolean,default:!1},teamImg:{type:[String,void 0],default:void 0},rivalImg:{type:[String,void 0],default:void 0},playerImg:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:768}},emits:["action"],setup(e,{emit:a}){const t=e;function n(r){a("action",r)}const s=o.computed(()=>t.componentWidth<768),i=o.computed(()=>{let r;return t.isPlayer?r=[{type:"player",label:"Mi perfil →",image:t.playerImg||"",imgType:"player",player:t.playerId,team:t.teamId,season:t.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected}]:t.hasTeam?r=[{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}]:r=[{type:"teamOtherLeague",label:"Buscar equipo →",image:km,imgType:"svg",season:t.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:_m,imgType:"svg",season:t.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:ba,imgType:"svg",season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}],r});return(r,l)=>(o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["grid-section",{mobile:s.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"grid-section__card",onClick:m=>n(u)},[o.createElementVNode("figure",Em,[u.image!==""?(o.openBlock(),o.createElementBlock("img",{key:0,src:u.image,alt:"",class:o.normalizeClass(u.imgType)},null,10,Bm)):o.createCommentVNode("",!0)]),o.createElementVNode("p",xm,o.toDisplayString(u.label),1)],8,Cm))),128))],2))}},[["__scopeId","data-v-b0f26065"]]);function qi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Tm}=Object.prototype,{getPrototypeOf:wa}=Object,uo=(e=>a=>{const t=Tm.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),a=>uo(a)===e),ho=e=>a=>typeof a===e,{isArray:St}=Array,$t=ho("undefined");function vm(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ji=Je("ArrayBuffer");function Om(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ji(e.buffer),a}const Am=ho("string"),ze=ho("function"),Ki=ho("number"),po=e=>e!==null&&typeof e=="object",Vm=e=>e===!0||e===!1,go=e=>{if(uo(e)!=="object")return!1;const a=wa(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$m=Je("Date"),Im=Je("File"),Pm=Je("Blob"),Rm=Je("FileList"),Lm=e=>po(e)&&ze(e.pipe),zm=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((a=uo(e))==="formdata"||a==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},Fm=Je("URLSearchParams"),Mm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function It(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),St(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Zi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yi=e=>!$t(e)&&e!==Xi;function Sa(){const{caseless:e}=Yi(this)&&this||{},a={},t=(n,s)=>{const i=e&&Zi(a,s)||s;go(a[i])&&go(n)?a[i]=Sa(a[i],n):go(n)?a[i]=Sa({},n):St(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&It(arguments[n],t);return a}const Dm=(e,a,t,{allOwnKeys:n}={})=>(It(a,(s,i)=>{t&&ze(s)?e[i]=qi(s,t):e[i]=s},{allOwnKeys:n}),e),jm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wm=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Um=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&wa(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Hm=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Gm=e=>{if(!e)return null;if(St(e))return e;let a=e.length;if(!Ki(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},qm=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&wa(Uint8Array)),Jm=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Km=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Zm=Je("HTMLFormElement"),Xm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Qi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Ym=Je("RegExp"),es=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};It(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Qm=e=>{es(e,(a,t)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(ze(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},eu=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return St(e)?n(e):n(String(e).split(a)),t},tu=()=>{},ou=(e,a)=>(e=+e,Number.isFinite(e)?e:a),_a="abcdefghijklmnopqrstuvwxyz",ts="0123456789",os={DIGIT:ts,ALPHA:_a,ALPHA_DIGIT:_a+_a.toUpperCase()+ts},au=(e=16,a=os.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function nu(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iu=e=>{const a=new Array(10),t=(n,s)=>{if(po(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=St(n)?[]:{};return It(n,(r,l)=>{const u=t(r,s+1);!$t(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},su=Je("AsyncFunction"),ru=e=>e&&(po(e)||ze(e))&&ze(e.then)&&ze(e.catch),C={isArray:St,isArrayBuffer:Ji,isBuffer:vm,isFormData:zm,isArrayBufferView:Om,isString:Am,isNumber:Ki,isBoolean:Vm,isObject:po,isPlainObject:go,isUndefined:$t,isDate:$m,isFile:Im,isBlob:Pm,isRegExp:Ym,isFunction:ze,isStream:Lm,isURLSearchParams:Fm,isTypedArray:qm,isFileList:Rm,forEach:It,merge:Sa,extend:Dm,trim:Mm,stripBOM:jm,inherits:Wm,toFlatObject:Um,kindOf:uo,kindOfTest:Je,endsWith:Hm,toArray:Gm,forEachEntry:Jm,matchAll:Km,isHTMLForm:Zm,hasOwnProperty:Qi,hasOwnProp:Qi,reduceDescriptors:es,freezeMethods:Qm,toObjectSet:eu,toCamelCase:Xm,noop:tu,toFiniteNumber:ou,findKey:Zi,global:Xi,isContextDefined:Yi,ALPHABET:os,generateString:au,isSpecCompliantForm:nu,toJSONObject:iu,isAsyncFn:su,isThenable:ru};function q(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}C.inherits(q,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:C.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const as=q.prototype,ns={};["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=>{ns[e]={value:e}}),Object.defineProperties(q,ns),Object.defineProperty(as,"isAxiosError",{value:!0}),q.from=(e,a,t,n,s,i)=>{const r=Object.create(as);return C.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),q.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const lu=null;function ka(e){return C.isPlainObject(e)||C.isArray(e)}function is(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function ss(e,a,t){return e?e.concat(a).map(function(n,s){return n=is(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function cu(e){return C.isArray(e)&&!e.some(ka)}const du=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function fo(e,a,t){if(!C.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=C.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!C.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(a);if(!C.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(C.isDate(d))return d.toISOString();if(!l&&C.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(d)||C.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(C.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(C.isArray(d)&&cu(d)||(C.isFileList(d)||C.endsWith(p,"[]"))&&(b=C.toArray(d)))return p=is(p),b.forEach(function(S,_){!(C.isUndefined(S)||S===null)&&a.append(r===!0?ss([p],_,i):r===null?p:p+"[]",u(S))}),!1}return ka(d)?!0:(a.append(ss(g,p,i),u(d)),!1)}const m=[],h=Object.assign(du,{defaultVisitor:c,convertValue:u,isVisitable:ka});function f(d,p){if(!C.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),C.forEach(d,function(g,b){(!(C.isUndefined(g)||g===null)&&s.call(a,g,C.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return f(e),a}function rs(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ca(e,a){this._pairs=[],e&&fo(e,this,a)}const ls=Ca.prototype;ls.append=function(e,a){this._pairs.push([e,a])},ls.toString=function(e){const a=e?function(t){return e.call(this,t,rs)}:rs;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function mu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cs(e,a,t){if(!a)return e;const n=t&&t.encode||mu,s=t&&t.serialize;let i;if(s?i=s(a,t):i=C.isURLSearchParams(a)?a.toString():new Ca(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uu{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){C.forEach(this.handlers,function(t){t!==null&&a(t)})}}const ds=uu,ms={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hu=typeof URLSearchParams<"u"?URLSearchParams:Ca,pu=typeof FormData<"u"?FormData:null,gu=typeof Blob<"u"?Blob:null,fu={isBrowser:!0,classes:{URLSearchParams:hu,FormData:pu,Blob:gu},protocols:["http","https","file","blob","url","data"]},us=typeof window<"u"&&typeof document<"u",yu=(e=>us&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:us,hasStandardBrowserEnv:yu,hasStandardBrowserWebWorkerEnv:bu},Symbol.toStringTag,{value:"Module"})),Ke={...wu,...fu};function Su(e,a){return fo(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Ke.isNode&&C.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function _u(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function ku(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function hs(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&C.isArray(s)?s.length:r,u?(C.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!C.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&C.isArray(s[r])&&(s[r]=ku(s[r])),!l)}if(C.isFormData(e)&&C.isFunction(e.entries)){const t={};return C.forEachEntry(e,(n,s)=>{a(_u(n),s,t,0)}),t}return null}function Cu(e,a,t){if(C.isString(e))try{return(a||JSON.parse)(e),C.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Ea={transitional:ms,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return n?JSON.stringify(hs(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Su(e,this.formSerializer).toString();if((i=C.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return fo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),Cu(e)):e}],transformResponse:[function(e){const a=this.transitional||Ea.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&C.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?q.from(i,q.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{Ea.headers[e]={}});const Ba=Ea,Eu=C.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"]),Bu=e=>{const a={};let t,n,s;return e&&e.split(`
7
- `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&Eu[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ps=Symbol("internals");function Pt(e){return e&&String(e).trim().toLowerCase()}function yo(e){return e===!1||e==null?e:C.isArray(e)?e.map(yo):String(e)}function xu(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const Nu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xa(e,a,t,n,s){if(C.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!C.isString(a)){if(C.isString(n))return a.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(a)}}function Tu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function vu(e,a){const t=C.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let bo=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Pt(u);if(!m)throw new Error("header name must be a non-empty string");const h=C.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=yo(l))}const r=(l,u)=>C.forEach(l,(c,m)=>i(c,m,u));return C.isPlainObject(a)||a instanceof this.constructor?r(a,t):C.isString(a)&&(a=a.trim())&&!Nu(a)?r(Bu(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Pt(a),a){const n=C.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return xu(s);if(C.isFunction(t))return t.call(this,s,n);if(C.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Pt(a),a){const n=C.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||xa(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Pt(r),r){const l=C.findKey(n,r);l&&(!t||xa(n,n[l],l,t))&&(delete n[l],s=!0)}}return C.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||xa(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return C.forEach(this,(s,i)=>{const r=C.findKey(n,i);if(r){t[r]=yo(s),delete t[i];return}const l=a?Tu(i):String(i).trim();l!==i&&delete t[i],t[l]=yo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return C.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&C.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ps]=this[ps]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Pt(i);t[r]||(vu(n,i),t[r]=!0)}return C.isArray(a)?a.forEach(s):s(a),this}};bo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(bo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),C.freezeMethods(bo);const at=bo;function Na(e,a){const t=this||Ba,n=a||t,s=at.from(n.headers);let i=n.data;return C.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function gs(e){return!!(e&&e.__CANCEL__)}function Rt(e,a,t){q.call(this,e??"canceled",q.ERR_CANCELED,a,t),this.name="CanceledError"}C.inherits(Rt,q,{__CANCEL__:!0});function Ou(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new q("Request failed with status code "+t.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Au=Ke.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];C.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),C.isString(n)&&r.push("path="+n),C.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $u(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function fs(e,a){return e&&!Vu(a)?$u(e,a):a}const Iu=Ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=C.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function Pu(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ru(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function ys(e,a){let t=0;const n=Ru(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const Lu=typeof XMLHttpRequest<"u",zu=Lu&&function(e){return new Promise(function(a,t){let n=e.data;const s=at.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(C.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[p,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([p||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+g))}const h=fs(e.baseURL,e.url);m.open(e.method.toUpperCase(),cs(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const p=at.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:p,config:e,request:m};Ou(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new q("Request aborted",q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new q("Network Error",q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||ms;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),t(new q(p,g.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,m)),m=null},Ke.hasStandardBrowserEnv&&(r&&C.isFunction(r)&&(r=r(e)),r||r!==!1&&Iu(h))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Au.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&C.forEach(s.toJSON(),function(p,g){m.setRequestHeader(g,p)}),C.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",ys(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ys(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{m&&(t(!p||p.type?new Rt(null,e,m):p),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=Pu(h);if(d&&Ke.protocols.indexOf(d)===-1){t(new q("Unsupported protocol "+d+":",q.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Ta={http:lu,xhr:zu};C.forEach(Ta,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const bs=e=>`- ${e}`,Fu=e=>C.isFunction(e)||e===null||e===!1,ws={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!Fu(t)&&(n=Ta[(r=String(t)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
5
+ `):" "+Ri(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:da};function ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new At(null,e)}function zi(e){return ma(e),e.headers=ot.from(e.headers),e.data=ca.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Li.getAdapter(e.adapter||ra.adapter)(e).then(function(n){return ma(e),n.data=ca.call(e,e.transformResponse,n),n.headers=ot.from(n.headers),n},function(n){return $i(n)||(ma(e),n&&n.response&&(n.response.data=ca.call(e,e.transformResponse,n.response),n.response.headers=ot.from(n.response.headers))),Promise.reject(n)})}const Fi=e=>e instanceof ot?e.toJSON():e;function wt(e,a){a=a||{};const t={};function n(c,m,h){return k.isPlainObject(c)&&k.isPlainObject(m)?k.merge.call({caseless:h},c,m):k.isPlainObject(m)?k.merge({},m):k.isArray(m)?m.slice():m}function s(c,m,h){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!k.isUndefined(m))return n(void 0,m)}function r(c,m){if(k.isUndefined(m)){if(!k.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(Fi(c),Fi(m),!0)};return k.forEach(Object.keys(Object.assign({},e,a)),function(m){const h=u[m]||s,f=h(e[m],a[m],m);k.isUndefined(f)&&h!==l||(t[m]=f)}),t}const Mi="1.6.7",ua={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{ua[e]=function(n){return typeof n===e||"a"+(a<1?"n ":" ")+e}});const Di={};ua.transitional=function(a,t,n){function s(i,r){return"[Axios v"+Mi+"] Transitional option '"+i+"'"+r+(n?". "+n:"")}return(i,r,l)=>{if(a===!1)throw new G(s(r," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!Di[r]&&(Di[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),a?a(i,r,l):!0}};function Wd(e,a,t){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new G("option "+i+" must be "+u,G.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const ha={assertOptions:Wd,validators:ua},lt=ha.validators;class co{constructor(a){this.defaults=a,this.interceptors={request:new Ti,response:new Ti}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=wt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ha.assertOptions(n,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),s!=null&&(k.isFunction(s)?t.paramsSerializer={serialize:s}:ha.assertOptions(s,{encode:lt.function,serialize:lt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&k.merge(i.common,i[t.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=ot.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let m,h=0,f;if(!u){const p=[zi.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=zi.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=wt(this.defaults,a);const t=Pi(a.baseURL,a.url);return Ni(t,a.params,a.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(a){co.prototype[a]=function(t,n){return this.request(wt(n||{},{method:a,url:t,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(a){function t(n){return function(i,r,l){return this.request(wt(l||{},{method:a,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}co.prototype[a]=t(),co.prototype[a+"Form"]=t(!0)});const mo=co;class pa{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(i,r,l){n.reason||(n.reason=new At(i,r,l),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new pa(function(s){a=s}),cancel:a}}}const Ud=pa;function Hd(e){return function(t){return e.apply(null,t)}}function Gd(e){return k.isObject(e)&&e.isAxiosError===!0}const ga={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(ga).forEach(([e,a])=>{ga[a]=e});const qd=ga;function ji(e){const a=new mo(e),t=mi(mo.prototype.request,a);return k.extend(t,mo.prototype,a,{allOwnKeys:!0}),k.extend(t,a,null,{allOwnKeys:!0}),t.create=function(s){return ji(wt(e,s))},t}const re=ji(ra);re.Axios=mo,re.CanceledError=At,re.CancelToken=Ud,re.isCancel=$i,re.VERSION=Mi,re.toFormData=so,re.AxiosError=G,re.Cancel=re.CanceledError,re.all=function(a){return Promise.all(a)},re.spread=Hd,re.isAxiosError=Gd,re.mergeConfig=wt,re.AxiosHeaders=ot,re.formToJSON=e=>Ai(k.isHTMLForm(e)?new FormData(e):e),re.getAdapter=Li.getAdapter,re.HttpStatusCode=qd,re.default=re;function Jd(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const fa=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),Ne=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Kd={class:"player-card"},Zd={class:"player-card__image"},Xd=["src"],Yd={class:"player-card__number"},Qd={class:"player-card__right-data"},em={class:"player-card__details"},tm={class:"player-card__name"},om={class:"player-card__position"},am=Ne({__name:"GSCPlayerCard",props:{countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position_id:{type:Number,default:0},position:{type:String,default:"-"},photo:{type:String,default:""},photoNoBg:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["clickProfileBtn"],setup(e,{emit:a}){return(t,n)=>(o.openBlock(),o.createElementBlock("div",Kd,[o.createElementVNode("div",Zd,[o.createElementVNode("img",{class:o.normalizeClass(["player-card__photo",{"full-width":e.isImgFullWidth}]),src:e.photo,alt:"Player Image"},null,10,Xd),o.createElementVNode("div",Yd,o.toDisplayString(e.jersey),1),o.createElementVNode("div",Qd,[o.createElementVNode("button",{class:"player-card__profile-button",onClick:n[0]||(n[0]=s=>a("clickProfileBtn"))}," Ver perfil ")])]),o.createElementVNode("div",em,[o.createElementVNode("p",tm,o.toDisplayString(e.name),1),o.createElementVNode("p",om,o.toDisplayString(o.unref(fa).get(e.position_id)),1)])]))}},[["__scopeId","data-v-375187b0"]]),nm=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ya={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Wi=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Ui=ya.setup;ya.setup=Ui?(e,a)=>(Wi(),Ui(e,a)):Wi;const im={ref:"gscScrollableContainer",class:"scrollable-container"},sm={class:"scrollable-arrows"},rm=["width","height","viewBox"],lm=["stroke"],cm={class:"scrollable-wrapper"},dm={class:"scrollable-arrows"},mm=["width","height","viewBox"],um=["stroke"];function hm(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",im,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",sm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,lm)],8,rm))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",cm,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",dm,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,um)],8,mm))])],2)):o.createCommentVNode("",!0)],512)}const Vt=nm(ya,[["render",hm],["__scopeId","data-v-b548a08d"]]),Hi=e=>(o.pushScopeId("data-v-a9021337"),e=e(),o.popScopeId(),e),pm={class:"my-players"},gm={class:"my-players__header"},fm={class:"my-players__title"},ym=[Hi(()=>o.createElementVNode("span",{style:{"text-decoration-line":"underline"}},"Ver todos",-1)),Hi(()=>o.createElementVNode("span",null,"→",-1))],bm={class:"my-players__list"},wm=Ne({__name:"GSCPlayersLanding",props:{isPlayer:{type:Boolean,default:!1},isImgFullWidth:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzE4ODAsIm5hbWUiOiJHb2xTdGF0cyIsInVzZXJuYW1lIjoiYnJpenVlbGEiLCJlbWFpbCI6IiIsInByb3ZpZGVyX2lkIjoxLCJsb2dpbl9nb2xzdGF0cyI6MSwiaWF0IjoxNjk4NzIzODA1LCJleHAiOjE3MzAyNTk4MDV9.3DR48YLPVAQKTisQg9SABSqDdurMuS6_z7IJfjXRlPQ"},playerId:{type:Number,default:34605},teamId:{type:Number,default:2},seasonId:{type:Number,default:1772}},emits:["viewAll","clickProfileBtn","totalPlayers"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.ref(0),i=o.ref(0);o.onMounted(async()=>{const l=await r(t.teamId,t.seasonId,t.token);i.value=l.length,n.value=l.map(u=>({...u,position:fa.get(u.position_id)})),t.isPlayer&&t.playerId&&(n.value=l.filter(u=>u.player_id!==t.playerId)),a("totalPlayers",i.value)});const r=async(l,u,c)=>{var h;const m="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";try{return((h=(await(await fetch(`https://pa3kubpuhg.execute-api.us-west-2.amazonaws.com/prod/playersByTeamAndSeason/${u}/${l}`,{headers:{Authorization:c||m}})).json())[0])==null?void 0:h.players)||[]}catch(f){return Promise.reject(f)}};return o.watch(()=>t.seasonId,async(l,u)=>{n.value=[];const c=await r(t.teamId,l,t.token);i.value=c.length,n.value=c.map(m=>({...m,position:fa.get(m.position_id)})),a("totalPlayers",i.value),s.value+=1}),(l,u)=>(o.openBlock(),o.createElementBlock("div",pm,[o.createElementVNode("div",gm,[o.createElementVNode("h3",fm,o.toDisplayString(e.isPlayer?"Mis compañeros":"Mis jugadores"),1),o.createElementVNode("button",{class:"my-players__button",onClick:u[0]||(u[0]=c=>a("viewAll"))},ym)]),(o.openBlock(),o.createBlock(o.unref(Vt),{pxScroll:209,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",key:s.value,arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",bm,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,c=>(o.openBlock(),o.createBlock(am,o.mergeProps(c,{isImgFullWidth:e.isImgFullWidth,onClickProfileBtn:m=>a("clickProfileBtn",c),key:c.player_id}),null,16,["isImgFullWidth","onClickProfileBtn"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-a9021337"]]),ba="data:image/svg+xml,%3csvg%20width='69'%20height='70'%20viewBox='0%200%2069%2070'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29756)'%3e%3crect%20x='29'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='29.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_b_3196_29756)'%3e%3crect%20x='48'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='48.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_b_3196_29756)'%3e%3crect%20x='10'%20y='35'%20width='11'%20height='11'%20rx='1'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='10.5'%20y='35.5'%20width='10'%20height='10'%20rx='0.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cg%20opacity='0.6'%3e%3cpath%20d='M60.5556%208.70056H8.44444C4.33299%208.70056%201%2011.7003%201%2015.4006V62.3007C1%2066.001%204.33299%2069.0007%208.44444%2069.0007H60.5556C64.667%2069.0007%2068%2066.001%2068%2062.3007V15.4006C68%2011.7003%2064.667%208.70056%2060.5556%208.70056Z'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1%2028.7991H68'%20stroke='white'%20stroke-width='1.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.3872%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.6128%201.99982V15.3999'%20stroke='white'%20stroke-width='3.88'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29756'%20x='13'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_b_3196_29756'%20x='32'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter2_b_3196_29756'%20x='-6'%20y='19'%20width='43'%20height='43'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29756'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29756'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Gi="data:image/svg+xml,%3csvg%20width='75'%20height='75'%20viewBox='0%200%2075%2075'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_b_3196_29781)'%3e%3crect%20x='6.00049'%20y='6'%20width='60'%20height='60'%20rx='30'%20fill='white'%20fill-opacity='0.08'/%3e%3crect%20x='6.50049'%20y='6.5'%20width='59'%20height='59'%20rx='29.5'%20stroke='white'%20stroke-opacity='0.16'/%3e%3c/g%3e%3cpath%20opacity='0.6'%20d='M71%2036C71%2042.9221%2068.9475%2049.6887%2065.1019%2055.4443C61.2563%2061.1998%2055.7905%2065.6859%2049.3954%2068.3351C43.0004%2070.9844%2035.9634%2071.6779%2029.1743%2070.3279C22.3851%2068.978%2016.1487%2065.6452%2011.2536%2060.751C6.3585%2055.8569%203.02455%2049.6211%201.67333%2042.8322C0.322108%2036.0433%201.01429%2029.0061%203.66235%2022.6106C6.31041%2016.2151%2010.7954%2010.7484%2016.5503%206.90175C22.3051%203.05512%2029.0714%201.0013%2035.9934%201C40.5903%200.999139%2045.1422%201.9038%2049.3894%203.66233C53.6365%205.42086%2057.4957%207.99881%2060.7464%2011.2489C63.9972%2014.4991%2066.5758%2018.3577%2068.3352%2022.6046C70.0945%2026.8514%2071%2031.4032%2071%2036V36Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20opacity='0.6'%20d='M74%2074L62%2062'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M44.4013%2048.6044V45.4039C44.4013%2043.7062%2043.727%2042.0781%2042.5266%2040.8777C41.3263%2039.6773%2039.6983%2039.0029%2038.0007%2039.0029H28.3999C26.7024%2039.0029%2025.0743%2039.6773%2023.874%2040.8777C22.6737%2042.0781%2021.9993%2043.7062%2021.9993%2045.4039V48.6044'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.2031%2032.6016C36.738%2032.6016%2039.6037%2029.7358%2039.6037%2026.2006C39.6037%2022.6654%2036.738%2019.7996%2033.2031%2019.7996C29.6682%2019.7996%2026.8026%2022.6654%2026.8026%2026.2006C26.8026%2029.7358%2029.6682%2032.6016%2033.2031%2032.6016Z'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M49.1998%2027.8009V37.4024M54.0003%2032.6017H44.3994'%20stroke='white'%20stroke-opacity='0.6'%20stroke-width='2.38256'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3cfilter%20id='filter0_b_3196_29781'%20x='-9.99951'%20y='-10'%20width='92'%20height='92'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeGaussianBlur%20in='BackgroundImageFix'%20stdDeviation='8'/%3e%3cfeComposite%20in2='SourceAlpha'%20operator='in'%20result='effect1_backgroundBlur_3196_29781'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_backgroundBlur_3196_29781'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Sm="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Football%20Jersey'%3e%3cg%20id='Layer%2010'%3e%3cpath%20id='Vector'%20d='M71.7192%2052.1016V40.3172L87.7223%2033.6376C87.9169%2033.558%2088.0912%2033.4359%2088.2323%2033.2802C88.3735%2033.1244%2088.4779%2032.939%2088.538%2032.7376C88.5985%2032.5342%2088.6123%2032.3197%2088.5782%2032.1103C88.5441%2031.9009%2088.463%2031.7018%2088.3411%2031.5282L71.4661%207.62193C71.4289%207.5532%2071.3866%207.48739%2071.3395%207.42506C69.4243%205.50395%2067.1463%203.98259%2064.6381%202.94935C62.1298%201.91612%2059.4413%201.39161%2056.7286%201.40631H53.438C53.065%201.40631%2052.7073%201.55446%2052.4436%201.81819C52.1799%202.08191%2052.0317%202.4396%2052.0317%202.81256V5.62506C52.0317%207.48986%2051.2909%209.27829%2049.9723%2010.5969C48.6537%2011.9155%2046.8653%2012.6563%2045.0005%2012.6563C43.1357%2012.6563%2041.3472%2011.9155%2040.0286%2010.5969C38.71%209.27829%2037.9692%207.48986%2037.9692%205.62506V2.81256C37.9692%202.4396%2037.8211%202.08191%2037.5573%201.81819C37.2936%201.55446%2036.9359%201.40631%2036.563%201.40631H33.2723C30.5634%201.39718%2027.8796%201.92572%2025.3764%202.96128C22.8731%203.99684%2020.6003%205.51885%2018.6895%207.43912C18.6424%207.50145%2018.6001%207.56727%2018.563%207.63599L1.68797%2031.5422C1.56603%2031.7159%201.48498%2031.9149%201.45089%2032.1244C1.41679%2032.3338%201.43054%2032.5482%201.49109%2032.7516C1.55114%2032.9531%201.65558%2033.1385%201.79673%2033.2942C1.93788%2033.45%202.11215%2033.5721%202.30672%2033.6516L18.2817%2040.3172V81.5626C18.2817%2081.9355%2018.4299%2082.2932%2018.6936%2082.5569C18.9573%2082.8206%2019.315%2082.9688%2019.688%2082.9688H57.1505C59.2007%2085.1122%2061.7416%2086.7246%2064.5541%2087.6667C67.3665%2088.6089%2070.366%2088.8527%2073.2936%2088.3769C76.2213%2087.9011%2078.9892%2086.7202%2081.3586%2084.9359C83.7279%2083.1516%2085.6276%2080.8176%2086.8936%2078.1353C88.1596%2075.453%2088.7539%2072.503%2088.6253%2069.5397C88.4967%2066.5764%2087.649%2063.6889%2086.1554%2061.1264C84.6617%2058.5639%2082.567%2056.4032%2080.052%2054.8309C77.5369%2053.2587%2074.6771%2052.3219%2071.7192%2052.1016ZM84.8255%2065.011L77.7942%2066.0235L71.7192%2061.2001V54.9141C74.6356%2055.1837%2077.4155%2056.2757%2079.7356%2058.0631C82.0558%2059.8505%2083.8208%2062.2599%2084.8255%2065.011ZM73.5755%2074.5313H67.1067L64.927%2067.9922L70.313%2063.6751L75.6989%2067.9922L73.5755%2074.5313ZM54.8442%2070.3126C54.8475%2069.4546%2054.9227%2068.5985%2055.0692%2067.7532L62.227%2068.7657L64.5192%2075.6563L59.7661%2081.5626C58.2159%2080.1269%2056.9786%2078.3867%2056.1317%2076.4509C55.2848%2074.5152%2054.8465%2072.4255%2054.8442%2070.3126ZM68.9067%2052.0313C66.9688%2052.1978%2065.07%2052.6726%2063.2817%2053.4376V51.3141C63.2728%2045.3135%2065.2507%2039.4787%2068.9067%2034.7204V52.0313ZM68.9067%2054.8438V61.1297L62.8739%2066.0938L55.8427%2065.0813C56.8334%2062.3231%2058.5873%2059.9031%2060.9002%2058.1031C63.213%2056.3031%2065.9897%2055.1972%2068.9067%2054.9141V54.8438ZM71.7192%2037.2657V12.8672L85.0223%2031.7251L71.7192%2037.2657ZM4.97859%2031.7251L18.2817%2012.8672V37.2657L4.97859%2031.7251ZM21.0942%2034.7204C24.7503%2039.4787%2026.7282%2045.3135%2026.7192%2051.3141V80.1563H21.0942V34.7204ZM29.5317%2080.1563V51.3141C29.546%2043.5117%2026.5194%2036.0108%2021.0942%2030.4032V9.02818C24.3875%205.92407%2028.7467%204.20253%2033.2723%204.21881H35.1567V5.62506C35.1567%208.23578%2036.1938%2010.7396%2038.0399%2012.5856C39.8859%2014.4317%2042.3897%2015.4688%2045.0005%2015.4688C47.6112%2015.4688%2050.115%2014.4317%2051.9611%2012.5856C53.8071%2010.7396%2054.8442%208.23578%2054.8442%205.62506V4.21881H56.7286C61.2542%204.20253%2065.6134%205.92407%2068.9067%209.02818V30.4032C63.4816%2036.0108%2060.455%2043.5117%2060.4692%2051.3141V54.9282C56.3926%2057.542%2053.5197%2061.6664%2052.4809%2066.3963C51.4421%2071.1261%2052.3224%2076.0748%2054.9286%2080.1563H29.5317ZM61.988%2083.3204L66.7692%2077.3438H73.8005L78.5817%2083.3204C76.1021%2084.9263%2073.211%2085.7808%2070.2567%2085.7808C67.3025%2085.7808%2064.4113%2084.9263%2061.9317%2083.3204H61.988ZM80.8598%2081.5626L76.1067%2075.6563L78.3989%2068.7657L85.5567%2067.7532C85.9891%2070.2641%2085.7858%2072.8433%2084.9653%2075.2555C84.1449%2077.6677%2082.7335%2079.836%2080.8598%2081.5626Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_m="data:image/svg+xml,%3csvg%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='fi_8584464'%3e%3cpath%20id='Vector'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M76.9582%2067.1642V5.59678C76.9582%204.8244%2076.3322%204.19775%2075.5592%204.19775H13.9918C13.2194%204.19775%2012.5928%204.8244%2012.5928%205.59678V67.1642C12.5928%2067.676%2012.8722%2068.1475%2013.3222%2068.3926L44.1055%2085.1836C44.5233%2085.4113%2045.0277%2085.4113%2045.4455%2085.1836L76.2295%2068.3926C76.6788%2068.1475%2076.9582%2067.676%2076.9582%2067.1642ZM74.1602%2018.1901V66.3333L44.7758%2082.3614L15.3915%2066.3333V18.1901H74.1602ZM44.7758%2023.7875C32.419%2023.7875%2022.3873%2033.8192%2022.3873%2046.1754C22.3873%2058.5316%2032.419%2068.5632%2044.7758%2068.5632C57.132%2068.5632%2067.1637%2058.5316%2067.1637%2046.1754C67.1637%2033.8192%2057.132%2023.7875%2044.7758%2023.7875ZM38.8795%2064.8604L44.7758%2059.985L50.6715%2064.8604C48.8104%2065.4481%2046.8297%2065.7651%2044.7758%2065.7651C42.7213%2065.7651%2040.7406%2065.4481%2038.8795%2064.8604ZM35.939%2028.6905C32.2168%2030.5772%2029.177%2033.617%2027.2903%2037.3392L33.8603%2045.2834C34.2881%2045.8013%2034.2881%2046.5495%2033.8603%2047.0673L27.2903%2055.0115C29.177%2058.7337%2032.2175%2061.7742%2035.939%2063.6602L43.8839%2057.0909C44.4011%2056.6631%2045.1499%2056.6631%2045.6671%2057.0909L53.6119%2063.6602C57.3342%2061.7736%2060.374%2058.7337%2062.2607%2055.0115L55.6907%2047.0673C55.2628%2046.5495%2055.2628%2045.8013%2055.6907%2045.2834L62.2607%2037.3392C60.374%2033.617%2057.3342%2030.5765%2053.6119%2028.6905L45.6671%2035.2598C45.1499%2035.6877%2044.4011%2035.6877%2043.8839%2035.2598L35.939%2028.6905ZM45.5979%2037.5475C45.1076%2037.1908%2044.4434%2037.1908%2043.9531%2037.5475L36.8243%2042.7272C36.3333%2043.0831%2036.1284%2043.7151%2036.3158%2044.2914L39.0387%2052.6722C39.2261%2053.2484%2039.7634%2053.6393%2040.3699%2053.6393H49.1818C49.7876%2053.6393%2050.3249%2053.2484%2050.5123%2052.6722L53.2358%2044.2914C53.4225%2043.7151%2053.2177%2043.0831%2052.7274%2042.7272L45.5979%2037.5475ZM58.5848%2046.1754L63.4609%2040.279C64.0486%2042.1401%2064.3649%2044.1208%2064.3649%2046.1754C64.3649%2048.2299%2064.0486%2050.2106%2063.4609%2052.0717L58.5848%2046.1754ZM26.0908%2040.279L30.9662%2046.1754L26.0908%2052.0717C25.5031%2050.2106%2025.1861%2048.2299%2025.1861%2046.1754C25.1861%2044.1208%2025.5031%2042.1401%2026.0908%2040.279ZM44.7758%2040.4086L50.2598%2044.3935L48.1649%2050.8406H41.3861L39.2912%2044.3935L44.7758%2040.4086ZM50.6715%2027.4903L44.7758%2032.3657L38.8795%2027.4903C40.7406%2026.9026%2042.7213%2026.5856%2044.7758%2026.5856C46.8297%2026.5856%2048.8104%2026.9026%2050.6715%2027.4903ZM74.1602%2015.392H15.3915C15.3915%2014.9548%2015.3915%2012.5933%2015.3915%2012.5933H74.1602V15.392ZM15.3915%209.79454V6.99648H74.1602V9.79454H15.3915Z'%20fill='%23A0A9AF'/%3e%3c/g%3e%3c/svg%3e",km=["onClick"],Cm={class:"grid-section__image"},Em=["src"],Bm={class:"grid-section__label"},xm=Ne({__name:"GSCGridTeamsMatches",props:{isPlayer:{type:Boolean,default:!1},playerId:{type:Number,default:0},teamId:{type:Number,default:0},seasonSelected:{type:Number,default:0},nextRivalId:{type:Number,default:0},hasTeam:{type:Boolean,default:!1},teamImg:{type:[String,void 0],default:void 0},rivalImg:{type:[String,void 0],default:void 0},playerImg:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:768}},emits:["action"],setup(e,{emit:a}){const t=e;function n(r){a("action",r)}const s=o.computed(()=>t.componentWidth<768),i=o.computed(()=>{let r;return t.isPlayer?r=[{type:"player",label:"Mi perfil →",image:t.playerImg||"",imgType:"player",player:t.playerId,team:t.teamId,season:t.seasonSelected},{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected}]:t.hasTeam?r=[{type:"team",label:"Analizar mi equipo →",image:t.teamImg||"",imgType:"team",team:t.teamId,season:t.seasonSelected},{type:"rival",label:"Analizar mi próximo rival →",image:t.rivalImg||"",imgType:"team",team:t.nextRivalId,season:t.seasonSelected},{type:"schedule",label:"Mis partidos →",image:ba,imgType:"svg",team:t.teamId,season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}]:r=[{type:"teamOtherLeague",label:"Buscar equipo →",image:_m,imgType:"svg",season:t.seasonSelected},{type:"playerOtherLeague",label:"Buscar jugador →",image:Sm,imgType:"svg",season:t.seasonSelected},{type:"scheduleOtherLeague",label:"Calendario general →",image:ba,imgType:"svg",season:t.seasonSelected},{type:"scouting",label:"Scouting cientifico →",image:Gi,imgType:"svg",season:t.seasonSelected}],r});return(r,l)=>(o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["grid-section",{mobile:s.value}])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(u,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"grid-section__card",onClick:m=>n(u)},[o.createElementVNode("figure",Cm,[u.image!==""?(o.openBlock(),o.createElementBlock("img",{key:0,src:u.image,alt:"",class:o.normalizeClass(u.imgType)},null,10,Em)):o.createCommentVNode("",!0)]),o.createElementVNode("p",Bm,o.toDisplayString(u.label),1)],8,km))),128))],2))}},[["__scopeId","data-v-3ad85156"]]);function qi(e,a){return function(){return e.apply(a,arguments)}}const{toString:Nm}=Object.prototype,{getPrototypeOf:wa}=Object,uo=(e=>a=>{const t=Nm.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),a=>uo(a)===e),ho=e=>a=>typeof a===e,{isArray:St}=Array,$t=ho("undefined");function Tm(e){return e!==null&&!$t(e)&&e.constructor!==null&&!$t(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ji=Je("ArrayBuffer");function vm(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Ji(e.buffer),a}const Om=ho("string"),ze=ho("function"),Ki=ho("number"),po=e=>e!==null&&typeof e=="object",Am=e=>e===!0||e===!1,go=e=>{if(uo(e)!=="object")return!1;const a=wa(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Vm=Je("Date"),$m=Je("File"),Pm=Je("Blob"),Im=Je("FileList"),Rm=e=>po(e)&&ze(e.pipe),Lm=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((a=uo(e))==="formdata"||a==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},zm=Je("URLSearchParams"),Fm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),St(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Zi(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Xi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yi=e=>!$t(e)&&e!==Xi;function Sa(){const{caseless:e}=Yi(this)&&this||{},a={},t=(n,s)=>{const i=e&&Zi(a,s)||s;go(a[i])&&go(n)?a[i]=Sa(a[i],n):go(n)?a[i]=Sa({},n):St(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Pt(arguments[n],t);return a}const Mm=(e,a,t,{allOwnKeys:n}={})=>(Pt(a,(s,i)=>{t&&ze(s)?e[i]=qi(s,t):e[i]=s},{allOwnKeys:n}),e),Dm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jm=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Wm=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&wa(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Um=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Hm=e=>{if(!e)return null;if(St(e))return e;let a=e.length;if(!Ki(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Gm=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&wa(Uint8Array)),qm=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Jm=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Km=Je("HTMLFormElement"),Zm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Qi=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Xm=Je("RegExp"),es=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Pt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Ym=e=>{es(e,(a,t)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(ze(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Qm=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return St(e)?n(e):n(String(e).split(a)),t},eu=()=>{},tu=(e,a)=>(e=+e,Number.isFinite(e)?e:a),_a="abcdefghijklmnopqrstuvwxyz",ts="0123456789",os={DIGIT:ts,ALPHA:_a,ALPHA_DIGIT:_a+_a.toUpperCase()+ts},ou=(e=16,a=os.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function au(e){return!!(e&&ze(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nu=e=>{const a=new Array(10),t=(n,s)=>{if(po(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=St(n)?[]:{};return Pt(n,(r,l)=>{const u=t(r,s+1);!$t(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},iu=Je("AsyncFunction"),su=e=>e&&(po(e)||ze(e))&&ze(e.then)&&ze(e.catch),C={isArray:St,isArrayBuffer:Ji,isBuffer:Tm,isFormData:Lm,isArrayBufferView:vm,isString:Om,isNumber:Ki,isBoolean:Am,isObject:po,isPlainObject:go,isUndefined:$t,isDate:Vm,isFile:$m,isBlob:Pm,isRegExp:Xm,isFunction:ze,isStream:Rm,isURLSearchParams:zm,isTypedArray:Gm,isFileList:Im,forEach:Pt,merge:Sa,extend:Mm,trim:Fm,stripBOM:Dm,inherits:jm,toFlatObject:Wm,kindOf:uo,kindOfTest:Je,endsWith:Um,toArray:Hm,forEachEntry:qm,matchAll:Jm,isHTMLForm:Km,hasOwnProperty:Qi,hasOwnProp:Qi,reduceDescriptors:es,freezeMethods:Ym,toObjectSet:Qm,toCamelCase:Zm,noop:eu,toFiniteNumber:tu,findKey:Zi,global:Xi,isContextDefined:Yi,ALPHABET:os,generateString:ou,isSpecCompliantForm:au,toJSONObject:nu,isAsyncFn:iu,isThenable:su};function q(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}C.inherits(q,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:C.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const as=q.prototype,ns={};["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=>{ns[e]={value:e}}),Object.defineProperties(q,ns),Object.defineProperty(as,"isAxiosError",{value:!0}),q.from=(e,a,t,n,s,i)=>{const r=Object.create(as);return C.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),q.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const ru=null;function ka(e){return C.isPlainObject(e)||C.isArray(e)}function is(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function ss(e,a,t){return e?e.concat(a).map(function(n,s){return n=is(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function lu(e){return C.isArray(e)&&!e.some(ka)}const cu=C.toFlatObject(C,{},null,function(e){return/^is[A-Z]/.test(e)});function fo(e,a,t){if(!C.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=C.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!C.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&C.isSpecCompliantForm(a);if(!C.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(C.isDate(d))return d.toISOString();if(!l&&C.isBlob(d))throw new q("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(d)||C.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(C.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(C.isArray(d)&&lu(d)||(C.isFileList(d)||C.endsWith(p,"[]"))&&(b=C.toArray(d)))return p=is(p),b.forEach(function(S,_){!(C.isUndefined(S)||S===null)&&a.append(r===!0?ss([p],_,i):r===null?p:p+"[]",u(S))}),!1}return ka(d)?!0:(a.append(ss(g,p,i),u(d)),!1)}const m=[],h=Object.assign(cu,{defaultVisitor:c,convertValue:u,isVisitable:ka});function f(d,p){if(!C.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),C.forEach(d,function(g,b){(!(C.isUndefined(g)||g===null)&&s.call(a,g,C.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return f(e),a}function rs(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ca(e,a){this._pairs=[],e&&fo(e,this,a)}const ls=Ca.prototype;ls.append=function(e,a){this._pairs.push([e,a])},ls.toString=function(e){const a=e?function(t){return e.call(this,t,rs)}:rs;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function du(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cs(e,a,t){if(!a)return e;const n=t&&t.encode||du,s=t&&t.serialize;let i;if(s?i=s(a,t):i=C.isURLSearchParams(a)?a.toString():new Ca(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mu{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){C.forEach(this.handlers,function(t){t!==null&&a(t)})}}const ds=mu,ms={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uu=typeof URLSearchParams<"u"?URLSearchParams:Ca,hu=typeof FormData<"u"?FormData:null,pu=typeof Blob<"u"?Blob:null,gu={isBrowser:!0,classes:{URLSearchParams:uu,FormData:hu,Blob:pu},protocols:["http","https","file","blob","url","data"]},us=typeof window<"u"&&typeof document<"u",fu=(e=>us&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),yu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:us,hasStandardBrowserEnv:fu,hasStandardBrowserWebWorkerEnv:yu},Symbol.toStringTag,{value:"Module"})),Ke={...bu,...gu};function wu(e,a){return fo(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Ke.isNode&&C.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Su(e){return C.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function _u(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function hs(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&C.isArray(s)?s.length:r,u?(C.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!C.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&C.isArray(s[r])&&(s[r]=_u(s[r])),!l)}if(C.isFormData(e)&&C.isFunction(e.entries)){const t={};return C.forEachEntry(e,(n,s)=>{a(Su(n),s,t,0)}),t}return null}function ku(e,a,t){if(C.isString(e))try{return(a||JSON.parse)(e),C.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Ea={transitional:ms,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=C.isObject(e);if(s&&C.isHTMLForm(e)&&(e=new FormData(e)),C.isFormData(e))return n?JSON.stringify(hs(e)):e;if(C.isArrayBuffer(e)||C.isBuffer(e)||C.isStream(e)||C.isFile(e)||C.isBlob(e))return e;if(C.isArrayBufferView(e))return e.buffer;if(C.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return wu(e,this.formSerializer).toString();if((i=C.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return fo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),ku(e)):e}],transformResponse:[function(e){const a=this.transitional||Ea.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&C.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?q.from(i,q.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};C.forEach(["delete","get","head","post","put","patch"],e=>{Ea.headers[e]={}});const Ba=Ea,Cu=C.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"]),Eu=e=>{const a={};let t,n,s;return e&&e.split(`
7
+ `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&Cu[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ps=Symbol("internals");function It(e){return e&&String(e).trim().toLowerCase()}function yo(e){return e===!1||e==null?e:C.isArray(e)?e.map(yo):String(e)}function Bu(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const xu=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xa(e,a,t,n,s){if(C.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!C.isString(a)){if(C.isString(n))return a.indexOf(n)!==-1;if(C.isRegExp(n))return n.test(a)}}function Nu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function Tu(e,a){const t=C.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let bo=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=It(u);if(!m)throw new Error("header name must be a non-empty string");const h=C.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=yo(l))}const r=(l,u)=>C.forEach(l,(c,m)=>i(c,m,u));return C.isPlainObject(a)||a instanceof this.constructor?r(a,t):C.isString(a)&&(a=a.trim())&&!xu(a)?r(Eu(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=It(a),a){const n=C.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return Bu(s);if(C.isFunction(t))return t.call(this,s,n);if(C.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=It(a),a){const n=C.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||xa(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=It(r),r){const l=C.findKey(n,r);l&&(!t||xa(n,n[l],l,t))&&(delete n[l],s=!0)}}return C.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||xa(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return C.forEach(this,(s,i)=>{const r=C.findKey(n,i);if(r){t[r]=yo(s),delete t[i];return}const l=a?Nu(i):String(i).trim();l!==i&&delete t[i],t[l]=yo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return C.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&C.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
8
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ps]=this[ps]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=It(i);t[r]||(Tu(n,i),t[r]=!0)}return C.isArray(a)?a.forEach(s):s(a),this}};bo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(bo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),C.freezeMethods(bo);const at=bo;function Na(e,a){const t=this||Ba,n=a||t,s=at.from(n.headers);let i=n.data;return C.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function gs(e){return!!(e&&e.__CANCEL__)}function Rt(e,a,t){q.call(this,e??"canceled",q.ERR_CANCELED,a,t),this.name="CanceledError"}C.inherits(Rt,q,{__CANCEL__:!0});function vu(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new q("Request failed with status code "+t.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const Ou=Ke.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];C.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),C.isString(n)&&r.push("path="+n),C.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Au(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vu(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function fs(e,a){return e&&!Au(a)?Vu(e,a):a}const $u=Ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=C.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function Pu(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Iu(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function ys(e,a){let t=0;const n=Iu(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const Ru=typeof XMLHttpRequest<"u",Lu=Ru&&function(e){return new Promise(function(a,t){let n=e.data;const s=at.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(C.isFormData(n)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[p,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([p||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+g))}const h=fs(e.baseURL,e.url);m.open(e.method.toUpperCase(),cs(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const p=at.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:p,config:e,request:m};vu(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new q("Request aborted",q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new q("Network Error",q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||ms;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),t(new q(p,g.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,m)),m=null},Ke.hasStandardBrowserEnv&&(r&&C.isFunction(r)&&(r=r(e)),r||r!==!1&&$u(h))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Ou.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&C.forEach(s.toJSON(),function(p,g){m.setRequestHeader(g,p)}),C.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",ys(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",ys(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{m&&(t(!p||p.type?new Rt(null,e,m):p),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=Pu(h);if(d&&Ke.protocols.indexOf(d)===-1){t(new q("Unsupported protocol "+d+":",q.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Ta={http:ru,xhr:Lu};C.forEach(Ta,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const bs=e=>`- ${e}`,zu=e=>C.isFunction(e)||e===null||e===!1,ws={getAdapter:e=>{e=C.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!zu(t)&&(n=Ta[(r=String(t)).toLowerCase()],n===void 0))throw new q(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
9
9
  `+i.map(bs).join(`
10
- `):" "+bs(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Ta};function va(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rt(null,e)}function Ss(e){return va(e),e.headers=at.from(e.headers),e.data=Na.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ws.getAdapter(e.adapter||Ba.adapter)(e).then(function(a){return va(e),a.data=Na.call(e,e.transformResponse,a),a.headers=at.from(a.headers),a},function(a){return gs(a)||(va(e),a&&a.response&&(a.response.data=Na.call(e,e.transformResponse,a.response),a.response.headers=at.from(a.response.headers))),Promise.reject(a)})}const _s=e=>e instanceof at?e.toJSON():e;function _t(e,a){a=a||{};const t={};function n(c,m,h){return C.isPlainObject(c)&&C.isPlainObject(m)?C.merge.call({caseless:h},c,m):C.isPlainObject(m)?C.merge({},m):C.isArray(m)?m.slice():m}function s(c,m,h){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!C.isUndefined(m))return n(void 0,m)}function r(c,m){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(_s(c),_s(m),!0)};return C.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);C.isUndefined(h)&&m!==l||(t[c]=h)}),t}const ks="1.6.7",Oa={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Oa[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const Cs={};Oa.transitional=function(e,a,t){function n(s,i){return"[Axios v"+ks+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new q(n(i," has been removed"+(a?" in "+a:"")),q.ERR_DEPRECATED);return a&&!Cs[i]&&(Cs[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function Mu(e,a,t){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const Aa={assertOptions:Mu,validators:Oa},ct=Aa.validators;let wo=class{constructor(a){this.defaults=a,this.interceptors={request:new ds,response:new ds}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
- `+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=_t(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&Aa.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),s!=null&&(C.isFunction(s)?t.paramsSerializer={serialize:s}:Aa.assertOptions(s,{encode:ct.function,serialize:ct.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&C.merge(i.common,i[t.method]);i&&C.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=at.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[Ss.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=Ss.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=_t(this.defaults,a);const t=fs(a.baseURL,a.url);return cs(t,a.params,a.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(e){wo.prototype[e]=function(a,t){return this.request(_t(t||{},{method:e,url:a,data:(t||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(_t(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}wo.prototype[e]=a(),wo.prototype[e+"Form"]=a(!0)});const So=wo,Du=class zc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Rt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new zc(function(t){a=t}),cancel:a}}};function ju(e){return function(a){return e.apply(null,a)}}function Wu(e){return C.isObject(e)&&e.isAxiosError===!0}const Va={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(Va).forEach(([e,a])=>{Va[a]=e});const Uu=Va;function Es(e){const a=new So(e),t=qi(So.prototype.request,a);return C.extend(t,So.prototype,a,{allOwnKeys:!0}),C.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return Es(_t(e,n))},t}const he=Es(Ba);he.Axios=So,he.CanceledError=Rt,he.CancelToken=Du,he.isCancel=gs,he.VERSION=ks,he.toFormData=fo,he.AxiosError=q,he.Cancel=he.CanceledError,he.all=function(e){return Promise.all(e)},he.spread=ju,he.isAxiosError=Wu,he.mergeConfig=_t,he.AxiosHeaders=at,he.formToJSON=e=>hs(C.isHTMLForm(e)?new FormData(e):e),he.getAdapter=ws.getAdapter,he.HttpStatusCode=Uu,he.default=he;const Bs=he,Hu=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},$a={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))}}},xs=()=>{o.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}))},Ns=$a.setup;$a.setup=Ns?(e,a)=>(xs(),Ns(e,a)):xs;const Gu=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),qu=["src"],Ju={key:1,class:"text"},Ku=["src"],Zu={class:"stats"},Xu=Gu(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Yu={class:"numstats"},Qu={class:"leyend"};function eh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,qu)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Ju,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Ku)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Zu,[Xu,o.createElementVNode("div",Yu,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Qu,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const th=Hu($a,[["render",eh],["__scopeId","data-v-fb269a1e"]]),oh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ia={components:{GSCButton:th},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},Ts=()=>{o.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},vs=Ia.setup;Ia.setup=vs?(e,a)=>(Ts(),vs(e,a)):Ts;const ah={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},nh={class:"gsc-filterperteam__panel-teams__cont-teams"},ih=["onClick"],sh=["src","alt","title"];function rh(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:o.normalizeStyle(i.customStyleContain)},[o.createElementVNode("div",ah,[o.createElementVNode("div",nh,[t.hiddenButtonAll?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[o.createVNode(r,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:i.click},null,8,["onClick"])],6)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.data,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass([l.id==s.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:c=>i.btnTeamClick(l.id)},[o.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,sh)],14,ih))),128))])],512)],4)}const lh=oh(Ia,[["render",rh],["__scopeId","data-v-ab79352d"]]),ch=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Pa={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))}}},Os=()=>{o.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}))},As=Pa.setup;Pa.setup=As?(e,a)=>(Os(),As(e,a)):Os;const dh=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),mh=["src"],uh={key:1,class:"text"},hh=["src"],ph={class:"stats"},gh=dh(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),fh={class:"numstats"},yh={class:"leyend"};function bh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,mh)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",uh,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,hh)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",ph,[gh,o.createElementVNode("div",fh,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",yh,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const wh=ch(Pa,[["render",bh],["__scopeId","data-v-fb269a1e"]]);function Sh(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const _h=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},kh={components:{GSCButton:wh},props:{data:{type:Object,default:()=>{}},teamSelected:{type:Number,default:0},isheader:{type:Boolean,default:!0},oneClick:{type:Boolean,default:!0},isVideos:{type:Boolean,default:!0},isGames:{type:Boolean,default:!0},isPremium:{type:Boolean,default:!0},HeadBackgroundColor:{type:String,default:""},HeadFontColor:{type:String,default:""},ItemFontColor:{type:String,default:""},backgroundColor:{type:String,default:"#172531"},ItemHeight:{type:String,default:""}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Sh(e);return{myDivRef:e,elementSize:a}},computed:{customStyle(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor}},customStyleLanding(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor,borderBottom:"none"}},customStyleItem(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor}},customStyleItemLanding(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor,borderBottom:"none"}}},methods:{setOpenMedia(e,a,t,n,s,i="",r=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:t,matchResult:n,category:s,title:i,isRivalSubject:r,value:l})},goToTeamProfile(e){this.$emit("openTableProfile",e)},clickBotonVideos(e){this.isPremium&&(this.oneClick||this.$emit("btnVideos",{team:e,type:"all"}))},clickStatsVideos(e,a){this.isPremium&&(this.oneClick||this.$emit("btnStatsVideos",{team:e,type:a}))},btnAllOneClick(e){this.isPremium&&this.oneClick&&this.$emit("btnVideos",{team:e,type:"all"})},customBg(e,a,t){return!e&&a==t?"background: rgba(30, 60, 81, 0.5)!important":""},customGridM(e){var a={};return this.isVideos&&this.isGames?e.width>768?a={gridTemplateColumns:"7% 16.5% 15% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"7% 16.5% 8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 6% 20% 9%"}:a={gridTemplateColumns:"9% 9% 8% 5% 5% 5% 5% 5% 5% 5% 6% 24% 10.1%"}:this.isVideos?e.width>768?a={gridTemplateColumns:"10% 16.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 11%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 10%"}:a={gridTemplateColumns:"8% 14.5% 14% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 5.8% 7% 9%"}:this.isGames?e.width>768?a={gridTemplateColumns:"8% 16.5% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 20% 9%"}:a={gridTemplateColumns:"9% 16.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 22% 9%"}:e.width>768?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:e.width>480?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"},a}}},Ra=e=>(o.pushScopeId("data-v-333b2aca"),e=e(),o.popScopeId(),e),Ch={class:"trRow",style:{width:"100%",margin:"0 auto"}},Eh=Ra(()=>o.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),Bh={key:0,class:"head__itemhead"},xh=o.createStaticVNode('<div class="head__itemhead fontM" data-v-333b2aca>JJ</div><div class="head__itemhead fontM" data-v-333b2aca>JG</div><div class="head__itemhead fontM" data-v-333b2aca>JE</div><div class="head__itemhead fontM" data-v-333b2aca>JP</div><div class="head__itemhead fontM" data-v-333b2aca>GF</div><div class="head__itemhead fontM" data-v-333b2aca>GC</div><div class="head__itemhead fontM" data-v-333b2aca>DG</div><div class="head__itemhead fontM" data-v-333b2aca>PTS</div>',8),Nh={key:1,class:"head__itemhead fontP"},Th={key:1,class:"movilTextLastGame"},vh=Ra(()=>o.createElementVNode("br",null,null,-1)),Oh=Ra(()=>o.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),Ah=["alt","title","src"],Vh={class:"hover-decorationTeam"},$h={class:"hover-decorationTeam"},Ih={key:0,class:"tdrow__itemtd"},Ph={class:"tdrow__itemtd fontM"},Rh={key:1,class:"tdrow__itemtd itemtd-games"},Lh={key:1},zh=["src"];function Fh(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",Ch,[t.isheader?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle([t.isGames?i.customStyle:i.customStyleLanding,i.customGridM(n.elementSize)]),class:o.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[Eh,o.createElementVNode("div",{class:o.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),t.isVideos?(o.openBlock(),o.createElementBlock("div",Bh," ")):o.createCommentVNode("",!0),xh,t.isGames?(o.openBlock(),o.createElementBlock("div",Nh,[n.elementSize.width>580?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Últimos juegos")],64)):(o.openBlock(),o.createElementBlock("span",Th,[o.createTextVNode("Últimos "),vh,o.createTextVNode("juegos")]))])):o.createCommentVNode("",!0),Oh],6)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>i.btnAllOneClick(t.data.team_id)),class:o.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:o.normalizeStyle([t.isGames?i.customStyleItem:i.customStyleItemLanding,i.customBg(t.isGames,t.data.team_id,t.teamSelected),i.customGridM(n.elementSize)])},[o.createElementVNode("div",{class:"tdrow__itemtd",style:o.normalizeStyle(t.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},o.toDisplayString(t.data.table_position>9?t.data.table_position:"0"+t.data.table_position),5),o.createElementVNode("div",{onClick:a[0]||(a[0]=l=>i.goToTeamProfile(t.data.team_id)),class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[o.createElementVNode("img",{class:o.normalizeClass(["hover-decorationLogo",n.elementSize.width>768?"itemtd-teampc__img":n.elementSize.width>600?"itemtd-teamtablet__img":n.elementSize.width>480?"itemtd-teammv__img":"itemtd-teamsm__img"]),alt:t.data.team_name,title:t.data.team_name,src:t.data.team_logo},null,10,Ah),n.elementSize.width>600?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[o.createElementVNode("span",Vh,o.toDisplayString(t.data.team_short_name),1)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[o.createElementVNode("span",$h,o.toDisplayString(t.data.team_short_name),1)],2))],2),t.isVideos?(o.openBlock(),o.createElementBlock("div",Ih,[n.elementSize.width>768?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"Ver videos",width:"98px",height:"30px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>560?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"26px",height:"26px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>400?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"21px",height:"21px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createBlock(r,{key:1,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"17px",height:"17px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_played!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_played),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>i.setOpenMedia(t.data.team_id,2,3,1,0,"Juegos ganados",!1,t.data.games_won))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_won!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_won),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>i.setOpenMedia(t.data.team_id,2,3,3,0,"Juegos empatados",!1,t.data.games_tied))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_tied!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_tied),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>i.setOpenMedia(t.data.team_id,2,3,2,0,"Juegos perdidos",!1,t.data.games_lost))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_lost!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_lost),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>i.setOpenMedia(t.data.team_id,1,3,0,1e3,"Goles anotados",!1,t.data.goals_scored))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_scored!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_scored),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>i.setOpenMedia(t.data.team_id,3,3,0,1001,"Goles recibidos",!0,t.data.goals_received))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_received!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_received),3)]),o.createElementVNode("div",Ph,o.toDisplayString(t.data.goals_difference),1),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},o.toDisplayString(t.data.points),3),t.isGames?(o.openBlock(),o.createElementBlock("div",Rh,[t.data.last_five_games.length>0?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.data.last_five_games,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:o.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},o.toDisplayString(l),3))),128)):(o.openBlock(),o.createElementBlock("div",Lh,"-"))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[t.data.next_rival_logo=="-"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.data.next_rival_logo),1)],64)):(o.openBlock(),o.createElementBlock("img",{key:1,class:o.normalizeClass(n.elementSize.width>768?"itemtd-nextpc__img":n.elementSize.width>600?"itemtd-nexttablet__img":n.elementSize.width>480?"itemtd-nextmv__img":"itemtd-nextsm__img"),src:t.data.next_rival_logo},null,10,zh))],2)],6)])}const Mh=_h(kh,[["render",Fh],["__scopeId","data-v-333b2aca"]]),Dh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},La={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))}}},Vs=()=>{o.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}))},$s=La.setup;La.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const jh=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Wh=["src"],Uh={key:1,class:"text"},Hh=["src"],Gh={class:"stats"},qh=jh(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Jh={class:"numstats"},Kh={class:"leyend"};function Zh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Wh)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Uh,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Hh)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Gh,[qh,o.createElementVNode("div",Jh,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Kh,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Xh=Dh(La,[["render",Zh],["__scopeId","data-v-fb269a1e"]]),Yh={class:"gsc-dropdown__main-container__item-selected"},Qh=["height","width"],ep=["stroke"],tp={class:"gsc-dropdown__items-container"},op=["onClick"],ap={key:0,class:"gsc-dropdown__items-footer"},np={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Yh,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,ep)],8,Qh))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",tp,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,op))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",ap,[o.createVNode(o.unref(Xh),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}};/**
10
+ `):" "+bs(i[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Ta};function va(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rt(null,e)}function Ss(e){return va(e),e.headers=at.from(e.headers),e.data=Na.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ws.getAdapter(e.adapter||Ba.adapter)(e).then(function(a){return va(e),a.data=Na.call(e,e.transformResponse,a),a.headers=at.from(a.headers),a},function(a){return gs(a)||(va(e),a&&a.response&&(a.response.data=Na.call(e,e.transformResponse,a.response),a.response.headers=at.from(a.response.headers))),Promise.reject(a)})}const _s=e=>e instanceof at?e.toJSON():e;function _t(e,a){a=a||{};const t={};function n(c,m,h){return C.isPlainObject(c)&&C.isPlainObject(m)?C.merge.call({caseless:h},c,m):C.isPlainObject(m)?C.merge({},m):C.isArray(m)?m.slice():m}function s(c,m,h){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!C.isUndefined(m))return n(void 0,m)}function r(c,m){if(C.isUndefined(m)){if(!C.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(_s(c),_s(m),!0)};return C.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);C.isUndefined(h)&&m!==l||(t[c]=h)}),t}const ks="1.6.7",Oa={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Oa[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const Cs={};Oa.transitional=function(e,a,t){function n(s,i){return"[Axios v"+ks+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new q(n(i," has been removed"+(a?" in "+a:"")),q.ERR_DEPRECATED);return a&&!Cs[i]&&(Cs[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function Fu(e,a,t){if(typeof e!="object")throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new q("option "+i+" must be "+u,q.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const Aa={assertOptions:Fu,validators:Oa},ct=Aa.validators;let wo=class{constructor(a){this.defaults=a,this.interceptors={request:new ds,response:new ds}}async request(a,t){try{return await this._request(a,t)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
+ `+i):n.stack=i}throw n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=_t(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&Aa.assertOptions(n,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),s!=null&&(C.isFunction(s)?t.paramsSerializer={serialize:s}:Aa.assertOptions(s,{encode:ct.function,serialize:ct.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&C.merge(i.common,i[t.method]);i&&C.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=at.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[Ss.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=Ss.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=_t(this.defaults,a);const t=fs(a.baseURL,a.url);return cs(t,a.params,a.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(e){wo.prototype[e]=function(a,t){return this.request(_t(t||{},{method:e,url:a,data:(t||{}).data}))}}),C.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(_t(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}wo.prototype[e]=a(),wo.prototype[e+"Form"]=a(!0)});const So=wo,Mu=class Lc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Rt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new Lc(function(t){a=t}),cancel:a}}};function Du(e){return function(a){return e.apply(null,a)}}function ju(e){return C.isObject(e)&&e.isAxiosError===!0}const Va={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(Va).forEach(([e,a])=>{Va[a]=e});const Wu=Va;function Es(e){const a=new So(e),t=qi(So.prototype.request,a);return C.extend(t,So.prototype,a,{allOwnKeys:!0}),C.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return Es(_t(e,n))},t}const he=Es(Ba);he.Axios=So,he.CanceledError=Rt,he.CancelToken=Mu,he.isCancel=gs,he.VERSION=ks,he.toFormData=fo,he.AxiosError=q,he.Cancel=he.CanceledError,he.all=function(e){return Promise.all(e)},he.spread=Du,he.isAxiosError=ju,he.mergeConfig=_t,he.AxiosHeaders=at,he.formToJSON=e=>hs(C.isHTMLForm(e)?new FormData(e):e),he.getAdapter=ws.getAdapter,he.HttpStatusCode=Wu,he.default=he;const Bs=he,Uu=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},$a={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))}}},xs=()=>{o.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}))},Ns=$a.setup;$a.setup=Ns?(e,a)=>(xs(),Ns(e,a)):xs;const Hu=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Gu=["src"],qu={key:1,class:"text"},Ju=["src"],Ku={class:"stats"},Zu=Hu(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Xu={class:"numstats"},Yu={class:"leyend"};function Qu(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Gu)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",qu,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Ju)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Ku,[Zu,o.createElementVNode("div",Xu,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Yu,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const eh=Uu($a,[["render",Qu],["__scopeId","data-v-fb269a1e"]]),th=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Pa={components:{GSCButton:eh},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},Ts=()=>{o.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},vs=Pa.setup;Pa.setup=vs?(e,a)=>(Ts(),vs(e,a)):Ts;const oh={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},ah={class:"gsc-filterperteam__panel-teams__cont-teams"},nh=["onClick"],ih=["src","alt","title"];function sh(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:o.normalizeStyle(i.customStyleContain)},[o.createElementVNode("div",oh,[o.createElementVNode("div",ah,[t.hiddenButtonAll?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[o.createVNode(r,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:i.click},null,8,["onClick"])],6)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.data,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(i.customStyleTeam),class:o.normalizeClass([l.id==s.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:c=>i.btnTeamClick(l.id)},[o.createElementVNode("img",{src:l.logo,alt:l.name,title:l.name},null,8,ih)],14,nh))),128))])],512)],4)}const rh=th(Pa,[["render",sh],["__scopeId","data-v-ab79352d"]]),lh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ia={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))}}},Os=()=>{o.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}))},As=Ia.setup;Ia.setup=As?(e,a)=>(Os(),As(e,a)):Os;const ch=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),dh=["src"],mh={key:1,class:"text"},uh=["src"],hh={class:"stats"},ph=ch(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),gh={class:"numstats"},fh={class:"leyend"};function yh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,dh)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",mh,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,uh)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",hh,[ph,o.createElementVNode("div",gh,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",fh,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const bh=lh(Ia,[["render",yh],["__scopeId","data-v-fb269a1e"]]);function wh(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Sh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},_h={components:{GSCButton:bh},props:{data:{type:Object,default:()=>{}},teamSelected:{type:Number,default:0},isheader:{type:Boolean,default:!0},oneClick:{type:Boolean,default:!0},isVideos:{type:Boolean,default:!0},isGames:{type:Boolean,default:!0},isPremium:{type:Boolean,default:!0},HeadBackgroundColor:{type:String,default:""},HeadFontColor:{type:String,default:""},ItemFontColor:{type:String,default:""},backgroundColor:{type:String,default:"#172531"},ItemHeight:{type:String,default:""}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=wh(e);return{myDivRef:e,elementSize:a}},computed:{customStyle(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor}},customStyleLanding(){return{backgroundColor:this.HeadBackgroundColor,color:this.HeadFontColor,borderBottom:"none"}},customStyleItem(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor}},customStyleItemLanding(){return{color:this.ItemFontColor,height:this.ItemHeight,backgroundColor:this.backgroundColor,borderBottom:"none"}}},methods:{setOpenMedia(e,a,t,n,s,i="",r=!1,l){l&&this.$emit("openmedia",{team:e,mainSectionType:a,playListType:t,matchResult:n,category:s,title:i,isRivalSubject:r,value:l})},goToTeamProfile(e){this.$emit("openTableProfile",e)},clickBotonVideos(e){this.isPremium&&(this.oneClick||this.$emit("btnVideos",{team:e,type:"all"}))},clickStatsVideos(e,a){this.isPremium&&(this.oneClick||this.$emit("btnStatsVideos",{team:e,type:a}))},btnAllOneClick(e){this.isPremium&&this.oneClick&&this.$emit("btnVideos",{team:e,type:"all"})},customBg(e,a,t){return!e&&a==t?"background: rgba(30, 60, 81, 0.5)!important":""},customGridM(e){var a={};return this.isVideos&&this.isGames?e.width>768?a={gridTemplateColumns:"7% 16.5% 15% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 3.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"7% 16.5% 8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 6% 20% 9%"}:a={gridTemplateColumns:"9% 9% 8% 5% 5% 5% 5% 5% 5% 5% 6% 24% 10.1%"}:this.isVideos?e.width>768?a={gridTemplateColumns:"10% 16.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 11%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 15% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 7% 10%"}:a={gridTemplateColumns:"8% 14.5% 14% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 5.8% 7% 9%"}:this.isGames?e.width>768?a={gridTemplateColumns:"8% 16.5% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 5.8% 6% 20% 9%"}:e.width>480?a={gridTemplateColumns:"9% 18.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 20% 9%"}:a={gridTemplateColumns:"9% 16.5% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 4.8% 10% 22% 9%"}:e.width>768?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:e.width>480?a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"}:a={gridTemplateColumns:"10% 21.5% 6.8% 6.8% 6.8% 6.8% 6.8% 6.8% 9.8% 6% 12%"},a}}},Ra=e=>(o.pushScopeId("data-v-333b2aca"),e=e(),o.popScopeId(),e),kh={class:"trRow",style:{width:"100%",margin:"0 auto"}},Ch=Ra(()=>o.createElementVNode("div",{class:"head__itemhead"},"Pos.",-1)),Eh={key:0,class:"head__itemhead"},Bh=o.createStaticVNode('<div class="head__itemhead fontM" data-v-333b2aca>JJ</div><div class="head__itemhead fontM" data-v-333b2aca>JG</div><div class="head__itemhead fontM" data-v-333b2aca>JE</div><div class="head__itemhead fontM" data-v-333b2aca>JP</div><div class="head__itemhead fontM" data-v-333b2aca>GF</div><div class="head__itemhead fontM" data-v-333b2aca>GC</div><div class="head__itemhead fontM" data-v-333b2aca>DG</div><div class="head__itemhead fontM" data-v-333b2aca>PTS</div>',8),xh={key:1,class:"head__itemhead fontP"},Nh={key:1,class:"movilTextLastGame"},Th=Ra(()=>o.createElementVNode("br",null,null,-1)),vh=Ra(()=>o.createElementVNode("div",{class:"head__itemhead fontP"},"Prox",-1)),Oh=["alt","title","src"],Ah={class:"hover-decorationTeam"},Vh={class:"hover-decorationTeam"},$h={key:0,class:"tdrow__itemtd"},Ph={class:"tdrow__itemtd fontM"},Ih={key:1,class:"tdrow__itemtd itemtd-games"},Rh={key:1},Lh=["src"];function zh(e,a,t,n,s,i){const r=o.resolveComponent("GSCButton");return o.openBlock(),o.createElementBlock("div",kh,[t.isheader?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle([t.isGames?i.customStyle:i.customStyleLanding,i.customGridM(n.elementSize)]),class:o.normalizeClass(["head",[n.elementSize.width>768?"fontSizeTextPC":n.elementSize.width>480?"fontSizeTextTablet":n.elementSize.width>360?"fontSizeTextMV":"fontSizeTextSM"]])},[Ch,o.createElementVNode("div",{class:o.normalizeClass(["head__itemhead",n.elementSize.width>600?"leftText":"centerText"])},"Equipo",2),t.isVideos?(o.openBlock(),o.createElementBlock("div",Eh," ")):o.createCommentVNode("",!0),Bh,t.isGames?(o.openBlock(),o.createElementBlock("div",xh,[n.elementSize.width>580?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Últimos juegos")],64)):(o.openBlock(),o.createElementBlock("span",Nh,[o.createTextVNode("Últimos "),Th,o.createTextVNode("juegos")]))])):o.createCommentVNode("",!0),vh],6)):o.createCommentVNode("",!0),o.createElementVNode("div",{ref:"myDivRef",onClick:a[11]||(a[11]=l=>i.btnAllOneClick(t.data.team_id)),class:o.normalizeClass(["tdrow",[n.elementSize.width>768?"fontSizeTextPCTD":n.elementSize.width>480?"fontSizeTextTabletTD":n.elementSize.width>360?"fontSizeTextMVTD":"fontSizeTextSMTD"]]),style:o.normalizeStyle([t.isGames?i.customStyleItem:i.customStyleItemLanding,i.customBg(t.isGames,t.data.team_id,t.teamSelected),i.customGridM(n.elementSize)])},[o.createElementVNode("div",{class:"tdrow__itemtd",style:o.normalizeStyle(t.isGames?"":"font-size:14px; font-family: Montserrat-Regular")},o.toDisplayString(t.data.table_position>9?t.data.table_position:"0"+t.data.table_position),5),o.createElementVNode("div",{onClick:a[0]||(a[0]=l=>i.goToTeamProfile(t.data.team_id)),class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-teampc":n.elementSize.width>600?"itemtd-teamtablet":n.elementSize.width>480?"itemtd-teammv":"itemtd-teamsm"])},[o.createElementVNode("img",{class:o.normalizeClass(["hover-decorationLogo",n.elementSize.width>768?"itemtd-teampc__img":n.elementSize.width>600?"itemtd-teamtablet__img":n.elementSize.width>480?"itemtd-teammv__img":"itemtd-teamsm__img"]),alt:t.data.team_name,title:t.data.team_name,src:t.data.team_logo},null,10,Oh),n.elementSize.width>600?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[o.createElementVNode("span",Ah,o.toDisplayString(t.data.team_short_name),1)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(n.elementSize.width>768?"itemtd-teampc__txt":n.elementSize.width>600?"itemtd-teamtablet__txt":n.elementSize.width>480?"itemtd-teammv__txt":"itemtd-teamsm__txt")},[o.createElementVNode("span",Vh,o.toDisplayString(t.data.team_short_name),1)],2))],2),t.isVideos?(o.openBlock(),o.createElementBlock("div",$h,[n.elementSize.width>768?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"Ver videos",width:"98px",height:"30px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid",value:!0,"border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[1]||(a[1]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>560?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"26px",height:"26px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[2]||(a[2]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.elementSize.width>400?(o.openBlock(),o.createBlock(r,{key:0,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"21px",height:"21px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[3]||(a[3]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"])):(o.openBlock(),o.createBlock(r,{key:1,icon:t.data.games_played>0?"http://golstatsimages.blob.core.windows.net/todoelfut/botonplay.png":"/botonplaydisabled.png","icon-position":"left","icon-size":"18px","text-value":"",width:"17px",height:"17px","font-family":"Poppins-Medium","font-size":"10px","font-color":t.data.games_played>0?"#FFF":"#999","border-color":t.data.games_played>0?"#4B565F":"#2e3439","border-type":"solid","border-width":1,"background-color":t.data.games_played>0?"#2A3641":"rgba(42, 54, 65, .6)",onClick:a[4]||(a[4]=l=>t.data.games_played>0?i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played):void 0),"border-radius":"64px"},null,8,["icon","font-color","border-color","background-color"]))],64))],64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[5]||(a[5]=l=>i.setOpenMedia(t.data.team_id,2,3,0,0,"Juegos jugados",!1,t.data.games_played))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_played!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_played),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[6]||(a[6]=l=>i.setOpenMedia(t.data.team_id,2,3,1,0,"Juegos ganados",!1,t.data.games_won))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_won!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_won),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[7]||(a[7]=l=>i.setOpenMedia(t.data.team_id,2,3,3,0,"Juegos empatados",!1,t.data.games_tied))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_tied!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_tied),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[8]||(a[8]=l=>i.setOpenMedia(t.data.team_id,2,3,2,0,"Juegos perdidos",!1,t.data.games_lost))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.games_lost!=0?"hover-decoration":"")},o.toDisplayString(t.data.games_lost),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[9]||(a[9]=l=>i.setOpenMedia(t.data.team_id,1,3,0,1e3,"Goles anotados",!1,t.data.goals_scored))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_scored!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_scored),3)]),o.createElementVNode("div",{class:"tdrow__itemtd fontM",onClick:a[10]||(a[10]=l=>i.setOpenMedia(t.data.team_id,3,3,0,1001,"Goles recibidos",!0,t.data.goals_received))},[o.createElementVNode("span",{class:o.normalizeClass(t.data.goals_received!=0?"hover-decoration":"")},o.toDisplayString(t.data.goals_received),3)]),o.createElementVNode("div",Ph,o.toDisplayString(t.data.goals_difference),1),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-penaltypc":n.elementSize.width>600?"itemtd-penaltytablet":n.elementSize.width>480?"itemtd-penaltymv":"itemtd-penaltysm"])},o.toDisplayString(t.data.points),3),t.isGames?(o.openBlock(),o.createElementBlock("div",Ih,[t.data.last_five_games.length>0?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(t.data.last_five_games,(l,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:o.normalizeClass([n.elementSize.width>768?"circlepc":n.elementSize.width>600?"circletablet":n.elementSize.width>480?"circlemv":"circlesm",l=="G"?"green":l=="E"?"gray":"red"])},o.toDisplayString(l),3))),128)):(o.openBlock(),o.createElementBlock("div",Rh,"-"))])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["tdrow__itemtd",n.elementSize.width>768?"itemtd-nextpc":n.elementSize.width>600?"itemtd-nexttablet":n.elementSize.width>480?"itemtd-nextmv":"itemtd-nextsm"])},[t.data.next_rival_logo=="-"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.data.next_rival_logo),1)],64)):(o.openBlock(),o.createElementBlock("img",{key:1,class:o.normalizeClass(n.elementSize.width>768?"itemtd-nextpc__img":n.elementSize.width>600?"itemtd-nexttablet__img":n.elementSize.width>480?"itemtd-nextmv__img":"itemtd-nextsm__img"),src:t.data.next_rival_logo},null,10,Lh))],2)],6)])}const Fh=Sh(_h,[["render",zh],["__scopeId","data-v-333b2aca"]]),Mh=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},La={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))}}},Vs=()=>{o.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}))},$s=La.setup;La.setup=$s?(e,a)=>(Vs(),$s(e,a)):Vs;const Dh=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),jh=["src"],Wh={key:1,class:"text"},Uh=["src"],Hh={class:"stats"},Gh=Dh(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qh={class:"numstats"},Jh={class:"leyend"};function Kh(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,jh)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Wh,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Uh)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Hh,[Gh,o.createElementVNode("div",qh,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Jh,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Zh=Mh(La,[["render",Kh],["__scopeId","data-v-fb269a1e"]]),Xh={class:"gsc-dropdown__main-container__item-selected"},Yh=["height","width"],Qh=["stroke"],ep={class:"gsc-dropdown__items-container"},tp=["onClick"],op={key:0,class:"gsc-dropdown__items-footer"},ap={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Xh,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,Qh)],8,Yh))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",ep,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,tp))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",op,[o.createVNode(o.unref(Zh),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}};/**
12
12
  * Vue 3 Carousel 0.3.1
13
13
  * (c) 2023
14
14
  * @license MIT
15
- */const Te={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Is={itemsToShow:{default:Te.itemsToShow,type:Number},itemsToScroll:{default:Te.itemsToScroll,type:Number},wrapAround:{default:Te.wrapAround,type:Boolean},throttle:{default:Te.throttle,type:Number},snapAlign:{default:Te.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Te.transition,type:Number},breakpoints:{default:Te.breakpoints,type:Object},autoplay:{default:Te.autoplay,type:Number},pauseAutoplayOnHover:{default:Te.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Te.mouseDrag,type:Boolean},touchDrag:{default:Te.touchDrag,type:Boolean},dir:{default:Te.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Te.i18n,type:Object},settings:{default(){return{}},type:Object}};function ip({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function sp({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function za({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function rp({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:za({val:r,max:t-i,min:0})}function Ps(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Ps(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function Fa({val:e,max:a,min:t=0}){return e>a?Fa({val:e-(a+1),max:a,min:t}):e<t?Fa({val:e+(a+1),max:a,min:t}):e}function lp(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function cp(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function dp(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var mp=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Te))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},dp(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),up=o.defineComponent({name:"Carousel",props:Is,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Te));let m=Object.assign({},Te),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=cp(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=ip({config:c,slidesCount:u.value}),b.value=sp({config:c,slidesCount:u.value}),c.wrapAround||(f.value=za({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Pe(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Ie,!0)))}const Ae=lp(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Ie(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Ie,!0)}function Pe(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||P()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Pe()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:za({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=Fa({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function P(){v(f.value+c.itemsToScroll)}function I(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:P,prev:I};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>rp({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Is).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:P,prev:I,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:P,prev:I,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Ps(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(mp)])}}}),Rs;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Rs||(Rs={}));var hp=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Te))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const pp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},gp=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),fp={class:"gsc-carousel"},yp={key:0},bp=gp(()=>o.createElementVNode("div",null,"no hay",-1)),wp=[bp],Sp={class:"gsc-carousel__2d__slides"},_p={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kp=["fill"],Cp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ep=["fill"],Bp={class:"gsc-carousel__2d__navigation"},xp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Np=["stroke"],Tp={key:1,class:"gsc-carousel__2d__navigation__pagination"},vp=["onClick"],Op={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ap=["stroke"],Vp={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",fp,[n.is3d?(o.openBlock(),o.createElementBlock("div",yp,wp)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Sp,[o.createVNode(o.unref(up),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(hp),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",_p,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,kp)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Cp,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Ep)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",Bp,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",xp,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Np)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Tp,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,vp))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",Op,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Ap)]))])):o.createCommentVNode("",!0)])],2))]))}},$p=pp(Vp,[["__scopeId","data-v-dd3cbf69"]]),Ip=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ma={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))}}},Ls=()=>{o.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}))},zs=Ma.setup;Ma.setup=zs?(e,a)=>(Ls(),zs(e,a)):Ls;const Pp=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Rp=["src"],Lp={key:1,class:"text"},zp=["src"],Fp={class:"stats"},Mp=Pp(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Dp={class:"numstats"},jp={class:"leyend"};function Wp(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Rp)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Lp,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,zp)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",Fp,[Mp,o.createElementVNode("div",Dp,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",jp,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Up=Ip(Ma,[["render",Wp],["__scopeId","data-v-fb269a1e"]]),Hp={class:"gsc-dropdown__main-container__item-selected"},Gp=["height","width"],qp=["stroke"],Jp={class:"gsc-dropdown__items-container"},Kp=["onClick"],Zp={key:0,class:"gsc-dropdown__items-footer"},Xp={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Hp,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,qp)],8,Gp))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Jp,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,Kp))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Zp,[o.createVNode(o.unref(Up),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Yp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Qp={class:"tournament-select__selected-tournament"},eg={class:"tournament-select__selected-tournament__logo"},tg=["src"],og={class:"tournament-select__selected-tournament__name"},ag={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const h={};return t.fontFamily&&(h["font-family"]=`${t.fontFamily}`),h}),i=o.computed(()=>n.value.find(h=>h.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const h=await u();n.value=h.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,p)=>(d.add(p.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(h){throw new Error(h)}}function l(h){const f=new XMLHttpRequest,d=`${t.logosUrl}${h}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(h){return Promise.reject(h)}}function c(h){a("input",h)}function m(h){a("input",h)}return o.onMounted(()=>{r()}),(h,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(Xp),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",Qp,[o.createElementVNode("div",eg,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,tg)):o.createCommentVNode("",!0)]),o.createElementVNode("div",og,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},ng=Yp(ag,[["__scopeId","data-v-355af272"]]),ig=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Da={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))}}},Fs=()=>{o.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}))},Ms=Da.setup;Da.setup=Ms?(e,a)=>(Fs(),Ms(e,a)):Fs;const sg=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),rg=["src"],lg={key:1,class:"text"},cg=["src"],dg={class:"stats"},mg=sg(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ug={class:"numstats"},hg={class:"leyend"};function pg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,rg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",lg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,cg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",dg,[mg,o.createElementVNode("div",ug,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",hg,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const gg=ig(Da,[["render",pg],["__scopeId","data-v-fb269a1e"]]),fg={class:"gsc-dropdown__main-container__item-selected"},yg=["height","width"],bg=["stroke"],wg={class:"gsc-dropdown__items-container"},Sg=["onClick"],_g={key:0,class:"gsc-dropdown__items-footer"},kg={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",fg,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,bg)],8,yg))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",wg,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,Sg))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",_g,[o.createVNode(o.unref(gg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Cg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Eg={class:"season-name"},Bg={class:"items-list-season"},xg={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(kg),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",Eg,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",Bg,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},Ng=Cg(xg,[["__scopeId","data-v-3a11087d"]]);function Tg(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const vg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Og={components:{GSCFilterperteam:lh,GSCTableperteam:Mh,GSCDropdown:np,GSCCarousel:$p,GSCTournamentSelect:ng,GSCSeasonSelect:Ng},computed:{customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{season:{type:Number},currentSeasonId:{type:Number,default:0},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Tg(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,tableData:null,tableFull:!0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const t in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].id=e[a].seasons[t].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].name=e[a].seasons[t].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(t=>t._id===1).seasons[0];await this.getTableList(a.id)}else await this.getTableList(this.currentSeasonId)}catch(e){throw new Error(e)}},methods:{setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},t=[1,2,3],n=a[e.category]||[];let s={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:t,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[];const a=await Bs.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let t=[];this.tableData.forEach((n,s)=>{t.push(n),(s+1)%this.teamperpage===0&&(this.pagesteams.push([...t]),t=[])}),t.length&&this.pagesteams.push([...t])}for(let t=0;t<this.tableData.length;t++)this.teams.push({id:this.tableData[t].team_id,team:this.tableData[t].team_name,logo:this.tableData[t].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=Bs.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},Ag=e=>(o.pushScopeId("data-v-871f6068"),e=e(),o.popScopeId(),e),Vg={class:"gsc-generaltable__container"},$g=Ag(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),Ig={key:1,class:"carousel-table-landing"},Pg={class:"row-table-carrousel"};function Rg(e,a,t,n,s,i){const r=o.resolveComponent("GSCTournamentSelect"),l=o.resolveComponent("GSCSeasonSelect"),u=o.resolveComponent("GSCFilterperteam"),c=o.resolveComponent("GSCTableperteam"),m=o.resolveComponent("GSCCarousel");return o.openBlock(),o.createElementBlock("div",{class:"gsc-generaltable",style:o.normalizeStyle(t.type==0?i.customStyle:i.customStyleLanding),ref:"myDivRef"},[t.type==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:o.normalizeStyle(i.customStyleTitle)}," Tabla General ",6),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(r,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])],2),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(l,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),o.createElementVNode("div",Vg,[o.createVNode(u,{data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"]),$g,s.tableData?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(s.tableData,(h,f)=>(o.openBlock(),o.createBlock(c,{key:f,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,isheader:f==0,"background-color":s.teamselect!=0&&s.teamselect==h.team_id?"rgba(30, 60, 81, 0.5)":f%2===0?"#172531":"#0d1d29",data:h},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):o.createCommentVNode("",!0)])],64)):(o.openBlock(),o.createElementBlock("div",Ig,[o.createVNode(m,{isPaginationVisible:t.isPaginationVisible,items:s.pagesteams},{default:o.withCtx(({item:h})=>[o.createElementVNode("div",Pg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h,(f,d)=>(o.openBlock(),o.createBlock(c,{key:d,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:d==0,"background-color":s.teamselect!=0&&s.teamselect==f.team_id?"rgba(30, 60, 81, 0.5)":d%2===0?"#172531":"#0d1d29",data:f},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const Lg=vg(Og,[["render",Rg],["__scopeId","data-v-871f6068"]]);function zg(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Fg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ja={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Ds=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},js=ja.setup;ja.setup=js?(e,a)=>(Ds(),js(e,a)):Ds;const Mg={ref:"gscScrollableContainer",class:"scrollable-container"},Dg={class:"scrollable-arrows"},jg=["width","height","viewBox"],Wg=["stroke"],Ug={class:"scrollable-wrapper"},Hg={class:"scrollable-arrows"},Gg=["width","height","viewBox"],qg=["stroke"];function Jg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",Mg,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",Dg,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,Wg)],8,jg))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",Ug,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",Hg,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,qg)],8,Gg))])],2)):o.createCommentVNode("",!0)],512)}const Kg=Fg(ja,[["render",Jg],["__scopeId","data-v-b548a08d"]]),Zg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Wa={components:{GSCSlider:Kg},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=zg(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},Ws=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Us=Wa.setup;Wa.setup=Us?(e,a)=>(Ws(),Us(e,a)):Ws;const Xg={ref:"myDivRef"},Yg={key:0,class:"gs-switch-container"},Qg=["onClick"],ef={key:1,class:"gs-switch-container-type"},tf=["onClick"],of={key:2,class:"gs-switch-container-carousel"},af=["onClick"];function nf(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Xg,[t.type==0?(o.openBlock(),o.createElementBlock("div",Yg,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Qg))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",ef,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,tf))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",of,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,af))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const Ua=Zg(Wa,[["render",nf],["__scopeId","data-v-8a86dfaf"]]);function Hs(e,a){return function(){return e.apply(a,arguments)}}const{toString:sf}=Object.prototype,{getPrototypeOf:Ha}=Object,_o=(e=>a=>{const t=sf.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),a=>_o(a)===e),ko=e=>a=>typeof a===e,{isArray:kt}=Array,Lt=ko("undefined");function rf(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gs=Ze("ArrayBuffer");function lf(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Gs(e.buffer),a}const cf=ko("string"),Fe=ko("function"),qs=ko("number"),Co=e=>e!==null&&typeof e=="object",df=e=>e===!0||e===!1,Eo=e=>{if(_o(e)!=="object")return!1;const a=Ha(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mf=Ze("Date"),uf=Ze("File"),hf=Ze("Blob"),pf=Ze("FileList"),gf=e=>Co(e)&&Fe(e.pipe),ff=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((a=_o(e))==="formdata"||a==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},yf=Ze("URLSearchParams"),bf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),kt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Js(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zs=e=>!Lt(e)&&e!==Ks;function Ga(){const{caseless:e}=Zs(this)&&this||{},a={},t=(n,s)=>{const i=e&&Js(a,s)||s;Eo(a[i])&&Eo(n)?a[i]=Ga(a[i],n):Eo(n)?a[i]=Ga({},n):kt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&zt(arguments[n],t);return a}const wf=(e,a,t,{allOwnKeys:n}={})=>(zt(a,(s,i)=>{t&&Fe(s)?e[i]=Hs(s,t):e[i]=s},{allOwnKeys:n}),e),Sf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_f=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},kf=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&Ha(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Cf=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Ef=e=>{if(!e)return null;if(kt(e))return e;let a=e.length;if(!qs(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Bf=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ha(Uint8Array)),xf=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Nf=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Tf=Ze("HTMLFormElement"),vf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Xs=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Of=Ze("RegExp"),Ys=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};zt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Af=e=>{Ys(e,(a,t)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Fe(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Vf=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return kt(e)?n(e):n(String(e).split(a)),t},$f=()=>{},If=(e,a)=>(e=+e,Number.isFinite(e)?e:a),qa="abcdefghijklmnopqrstuvwxyz",Qs="0123456789",er={DIGIT:Qs,ALPHA:qa,ALPHA_DIGIT:qa+qa.toUpperCase()+Qs},Pf=(e=16,a=er.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function Rf(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Lf=e=>{const a=new Array(10),t=(n,s)=>{if(Co(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=kt(n)?[]:{};return zt(n,(r,l)=>{const u=t(r,s+1);!Lt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},zf=Ze("AsyncFunction"),Ff=e=>e&&(Co(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),E={isArray:kt,isArrayBuffer:Gs,isBuffer:rf,isFormData:ff,isArrayBufferView:lf,isString:cf,isNumber:qs,isBoolean:df,isObject:Co,isPlainObject:Eo,isUndefined:Lt,isDate:mf,isFile:uf,isBlob:hf,isRegExp:Of,isFunction:Fe,isStream:gf,isURLSearchParams:yf,isTypedArray:Bf,isFileList:pf,forEach:zt,merge:Ga,extend:wf,trim:bf,stripBOM:Sf,inherits:_f,toFlatObject:kf,kindOf:_o,kindOfTest:Ze,endsWith:Cf,toArray:Ef,forEachEntry:xf,matchAll:Nf,isHTMLForm:Tf,hasOwnProperty:Xs,hasOwnProp:Xs,reduceDescriptors:Ys,freezeMethods:Af,toObjectSet:Vf,toCamelCase:vf,noop:$f,toFiniteNumber:If,findKey:Js,global:Ks,isContextDefined:Zs,ALPHABET:er,generateString:Pf,isSpecCompliantForm:Rf,toJSONObject:Lf,isAsyncFn:zf,isThenable:Ff};function J(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}E.inherits(J,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tr=J.prototype,or={};["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=>{or[e]={value:e}}),Object.defineProperties(J,or),Object.defineProperty(tr,"isAxiosError",{value:!0}),J.from=(e,a,t,n,s,i)=>{const r=Object.create(tr);return E.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),J.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Mf=null;function Ja(e){return E.isPlainObject(e)||E.isArray(e)}function ar(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function nr(e,a,t){return e?e.concat(a).map(function(n,s){return n=ar(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function Df(e){return E.isArray(e)&&!e.some(Ja)}const jf=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function Bo(e,a,t){if(!E.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=E.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!E.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(a);if(!E.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(E.isDate(d))return d.toISOString();if(!l&&E.isBlob(d))throw new J("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(d)||E.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(E.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(E.isArray(d)&&Df(d)||(E.isFileList(d)||E.endsWith(p,"[]"))&&(b=E.toArray(d)))return p=ar(p),b.forEach(function(S,_){!(E.isUndefined(S)||S===null)&&a.append(r===!0?nr([p],_,i):r===null?p:p+"[]",u(S))}),!1}return Ja(d)?!0:(a.append(nr(g,p,i),u(d)),!1)}const m=[],h=Object.assign(jf,{defaultVisitor:c,convertValue:u,isVisitable:Ja});function f(d,p){if(!E.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),E.forEach(d,function(g,b){(!(E.isUndefined(g)||g===null)&&s.call(a,g,E.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return f(e),a}function ir(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ka(e,a){this._pairs=[],e&&Bo(e,this,a)}const sr=Ka.prototype;sr.append=function(e,a){this._pairs.push([e,a])},sr.toString=function(e){const a=e?function(t){return e.call(this,t,ir)}:ir;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function Wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rr(e,a,t){if(!a)return e;const n=t&&t.encode||Wf,s=t&&t.serialize;let i;if(s?i=s(a,t):i=E.isURLSearchParams(a)?a.toString():new Ka(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const lr=class{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){E.forEach(this.handlers,function(t){t!==null&&a(t)})}},cr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uf=typeof URLSearchParams<"u"?URLSearchParams:Ka,Hf=typeof FormData<"u"?FormData:null,Gf=typeof Blob<"u"?Blob:null,qf={isBrowser:!0,classes:{URLSearchParams:Uf,FormData:Hf,Blob:Gf},protocols:["http","https","file","blob","url","data"]},dr=typeof window<"u"&&typeof document<"u",Jf=(e=>dr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Kf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dr,hasStandardBrowserEnv:Jf,hasStandardBrowserWebWorkerEnv:Kf},Symbol.toStringTag,{value:"Module"})),Xe={...Zf,...qf};function Xf(e,a){return Bo(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Xe.isNode&&E.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Yf(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Qf(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function mr(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&E.isArray(s)?s.length:r,u?(E.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!E.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&E.isArray(s[r])&&(s[r]=Qf(s[r])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const t={};return E.forEachEntry(e,(n,s)=>{a(Yf(n),s,t,0)}),t}return null}function ey(e,a,t){if(E.isString(e))try{return(a||JSON.parse)(e),E.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Za={transitional:cr,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=E.isObject(e);if(s&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return n&&n?JSON.stringify(mr(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Xf(e,this.formSerializer).toString();if((i=E.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Bo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),ey(e)):e}],transformResponse:[function(e){const a=this.transitional||Za.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&E.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Za.headers[e]={}});const Xa=Za,ty=E.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"]),oy=e=>{const a={};let t,n,s;return e&&e.split(`
16
- `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&ty[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ur=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:E.isArray(e)?e.map(xo):String(e)}function ay(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const ny=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,a,t,n,s){if(E.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!E.isString(a)){if(E.isString(n))return a.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(a)}}function iy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function sy(e,a){const t=E.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let No=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ft(u);if(!m)throw new Error("header name must be a non-empty string");const h=E.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=xo(l))}const r=(l,u)=>E.forEach(l,(c,m)=>i(c,m,u));return E.isPlainObject(a)||a instanceof this.constructor?r(a,t):E.isString(a)&&(a=a.trim())&&!ny(a)?r(oy(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return ay(s);if(E.isFunction(t))return t.call(this,s,n);if(E.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Ya(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ft(r),r){const l=E.findKey(n,r);l&&(!t||Ya(n,n[l],l,t))&&(delete n[l],s=!0)}}return E.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Ya(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return E.forEach(this,(s,i)=>{const r=E.findKey(n,i);if(r){t[r]=xo(s),delete t[i];return}const l=a?iy(i):String(i).trim();l!==i&&delete t[i],t[l]=xo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return E.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&E.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
17
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ur]=this[ur]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Ft(i);t[r]||(sy(n,i),t[r]=!0)}return E.isArray(a)?a.forEach(s):s(a),this}};No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(No.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),E.freezeMethods(No);const nt=No;function Qa(e,a){const t=this||Xa,n=a||t,s=nt.from(n.headers);let i=n.data;return E.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function hr(e){return!!(e&&e.__CANCEL__)}function Mt(e,a,t){J.call(this,e??"canceled",J.ERR_CANCELED,a,t),this.name="CanceledError"}E.inherits(Mt,J,{__CANCEL__:!0});function ry(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new J("Request failed with status code "+t.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const ly=Xe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];E.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),E.isString(n)&&r.push("path="+n),E.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function dy(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function pr(e,a){return e&&!cy(a)?dy(e,a):a}const my=Xe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=E.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function uy(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function hy(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function gr(e,a){let t=0;const n=hy(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const py=typeof XMLHttpRequest<"u",gy=py&&function(e){return new Promise(function(a,t){let n=e.data;const s=nt.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(E.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[p,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([p||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+g))}const h=pr(e.baseURL,e.url);m.open(e.method.toUpperCase(),rr(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const p=nt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:p,config:e,request:m};ry(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||cr;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),t(new J(p,g.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},Xe.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(e)),r||r!==!1&&my(h))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&ly.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(s.toJSON(),function(p,g){m.setRequestHeader(g,p)}),E.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",gr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",gr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{m&&(t(!p||p.type?new Mt(null,e,m):p),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=uy(h);if(d&&Xe.protocols.indexOf(d)===-1){t(new J("Unsupported protocol "+d+":",J.ERR_BAD_REQUEST,e));return}m.send(n||null)})},en={http:Mf,xhr:gy};E.forEach(en,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const fr=e=>`- ${e}`,fy=e=>E.isFunction(e)||e===null||e===!1,yr={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!fy(t)&&(n=en[(r=String(t)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
15
+ */const Te={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Ps={itemsToShow:{default:Te.itemsToShow,type:Number},itemsToScroll:{default:Te.itemsToScroll,type:Number},wrapAround:{default:Te.wrapAround,type:Boolean},throttle:{default:Te.throttle,type:Number},snapAlign:{default:Te.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Te.transition,type:Number},breakpoints:{default:Te.breakpoints,type:Object},autoplay:{default:Te.autoplay,type:Number},pauseAutoplayOnHover:{default:Te.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Te.mouseDrag,type:Boolean},touchDrag:{default:Te.touchDrag,type:Boolean},dir:{default:Te.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Te.i18n,type:Object},settings:{default(){return{}},type:Object}};function np({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function ip({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function za({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function sp({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:za({val:r,max:t-i,min:0})}function Is(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Is(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function Fa({val:e,max:a,min:t=0}){return e>a?Fa({val:e-(a+1),max:a,min:t}):e<t?Fa({val:e+(a+1),max:a,min:t}):e}function rp(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function lp(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function cp(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var dp=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Te))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},cp(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),mp=o.defineComponent({name:"Carousel",props:Ps,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Te));let m=Object.assign({},Te),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=lp(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=np({config:c,slidesCount:u.value}),b.value=ip({config:c,slidesCount:u.value}),c.wrapAround||(f.value=za({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=rp(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:za({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=Fa({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:I,prev:P};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>sp({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Ps).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Is(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(dp)])}}}),Rs;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Rs||(Rs={}));var up=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Te))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const hp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},pp=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),gp={class:"gsc-carousel"},fp={key:0},yp=pp(()=>o.createElementVNode("div",null,"no hay",-1)),bp=[yp],wp={class:"gsc-carousel__2d__slides"},Sp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_p=["fill"],kp={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cp=["fill"],Ep={class:"gsc-carousel__2d__navigation"},Bp={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xp=["stroke"],Np={key:1,class:"gsc-carousel__2d__navigation__pagination"},Tp=["onClick"],vp={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Op=["stroke"],Ap={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",gp,[n.is3d?(o.openBlock(),o.createElementBlock("div",fp,bp)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",wp,[o.createVNode(o.unref(mp),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(up),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Sp,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,_p)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",kp,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Cp)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",Ep,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",Bp,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,xp)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Np,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,Tp))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",vp,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Op)]))])):o.createCommentVNode("",!0)])],2))]))}},Vp=hp(Ap,[["__scopeId","data-v-dd3cbf69"]]),$p=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ma={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))}}},Ls=()=>{o.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}))},zs=Ma.setup;Ma.setup=zs?(e,a)=>(Ls(),zs(e,a)):Ls;const Pp=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Ip=["src"],Rp={key:1,class:"text"},Lp=["src"],zp={class:"stats"},Fp=Pp(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Mp={class:"numstats"},Dp={class:"leyend"};function jp(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Ip)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Rp,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Lp)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",zp,[Fp,o.createElementVNode("div",Mp,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",Dp,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const Wp=$p(Ma,[["render",jp],["__scopeId","data-v-fb269a1e"]]),Up={class:"gsc-dropdown__main-container__item-selected"},Hp=["height","width"],Gp=["stroke"],qp={class:"gsc-dropdown__items-container"},Jp=["onClick"],Kp={key:0,class:"gsc-dropdown__items-footer"},Zp={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",Up,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,Gp)],8,Hp))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",qp,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,Jp))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Kp,[o.createVNode(o.unref(Wp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},Xp=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Yp={class:"tournament-select__selected-tournament"},Qp={class:"tournament-select__selected-tournament__logo"},eg=["src"],tg={class:"tournament-select__selected-tournament__name"},og={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const h={};return t.fontFamily&&(h["font-family"]=`${t.fontFamily}`),h}),i=o.computed(()=>n.value.find(h=>h.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const h=await u();n.value=h.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,p)=>(d.add(p.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(h){throw new Error(h)}}function l(h){const f=new XMLHttpRequest,d=`${t.logosUrl}${h}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(h){return Promise.reject(h)}}function c(h){a("input",h)}function m(h){a("input",h)}return o.onMounted(()=>{r()}),(h,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(Zp),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",Yp,[o.createElementVNode("div",Qp,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,eg)):o.createCommentVNode("",!0)]),o.createElementVNode("div",tg,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},ag=Xp(og,[["__scopeId","data-v-355af272"]]),ng=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Da={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))}}},Fs=()=>{o.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}))},Ms=Da.setup;Da.setup=Ms?(e,a)=>(Fs(),Ms(e,a)):Fs;const ig=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),sg=["src"],rg={key:1,class:"text"},lg=["src"],cg={class:"stats"},dg=ig(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),mg={class:"numstats"},ug={class:"leyend"};function hg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,sg)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",rg,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,lg)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",cg,[dg,o.createElementVNode("div",mg,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",ug,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const pg=ng(Da,[["render",hg],["__scopeId","data-v-fb269a1e"]]),gg={class:"gsc-dropdown__main-container__item-selected"},fg=["height","width"],yg=["stroke"],bg={class:"gsc-dropdown__items-container"},wg=["onClick"],Sg={key:0,class:"gsc-dropdown__items-footer"},_g={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",gg,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,yg)],8,fg))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",bg,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,wg))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",Sg,[o.createVNode(o.unref(pg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},kg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Cg={class:"season-name"},Eg={class:"items-list-season"},Bg={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(_g),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",Cg,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",Eg,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},xg=kg(Bg,[["__scopeId","data-v-3a11087d"]]);function Ng(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const Tg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},vg={components:{GSCFilterperteam:rh,GSCTableperteam:Fh,GSCDropdown:ap,GSCCarousel:Vp,GSCTournamentSelect:ag,GSCSeasonSelect:xg},computed:{customStyle(){return{backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height}},customStyleLanding(){return{boxShadow:"0px 4px 20px 0px rgba(0, 0, 0, 0.25)",backgroundColor:this.background,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,height:this.height,borderRadius:"9px"}},customStyleTitle(){return{color:this.colortitle}}},props:{season:{type:Number},currentSeasonId:{type:Number,default:0},awaitForSeason:{type:Boolean,default:!0},type:{type:Number,default:0},teamperpage:{type:Number,default:5},background:{type:String,default:"#0d1d29"},borderRadius:{type:String,default:"8px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#0d1d29"},borderType:{type:String,default:"solid"},height:{type:String,default:"auto"},colortitle:{type:String,default:"#FFFFFF"},isPaginationVisible:{type:Boolean,default:!1}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Ng(e);return{myDivRef:e,elementSize:a}},data(){return{url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",tournaments:[],tournamentSelected:{seasons:[]},seasonSelected:{},retries:3,tableData:null,tableFull:!0,flaghideShow:!0,showNum:6,seasonSelect:0,teamselect:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],teams:[],pagesteams:[],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{currentSeasonId:{async handler(e,a){this.type==1&&e!==0&&e!==a&&await this.getTableList(this.currentSeasonId)},immediate:!0}},async created(){try{const e=await this.fetchTournaments(3);this.tournaments=e.map(a=>({...a.tournament,seasons:a.seasons}));for(const a in e){this.arrayTournaments.push({id:e[a].tournament.id,name:e[a].tournament.name}),this.arraySeasons[e[a].tournament.id]={};for(const t in e[a].seasons)this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id]={},this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].id=e[a].seasons[t].id,this.arraySeasons[e[a].tournament.id][" "+e[a].seasons[t].id].name=e[a].seasons[t].name}if(this.type==1)if(this.currentSeasonId===0){const a=e.find(t=>t._id===1).seasons[0];await this.getTableList(a.id)}else await this.getTableList(this.currentSeasonId)}catch(e){throw new Error(e)}},methods:{setOpenMedia(e){const a={1e3:[12,55,"35_r","54_r"],1001:["57_r","326_r","56_r","60_r","59_r","55_r",35,54],0:[]},t=[1,2,3],n=a[e.category]||[];let s={seasonId:this.seasonSelect,tournaments:this.tournaments,mainSectionType:1,playListType:e.playListType,categoryIds:n,gameIds:null,playerIds:[],teamId:e.team,matchResult:e.matchResult?[e.matchResult]:t,isRivalSubject:e.isRivalSubject,playData:{},advancedFilter:{playListTitle:e.title}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},openTableProfile(e){const a={team:e,season:this.seasonSelect};this.$emit("openTableProfile",a)},clickAll(e){this.teamselect=e},clickTeam(e){this.teamselect=e},onInputTournament(e){this.tournamentSelected.id!==e.id&&(this.tournamentSelected=e)},async onInputSeason(e){this.seasonSelected!==e.id&&(this.seasonSelected=e.id,this.$emit("change-season-id",e.id),await this.getTableList(e.id))},async getTableList(e){try{this.seasonSelect=e,this.teams=[];const a=await Bs.create({headers:{Authorization:`${this.token}`}}).get(this.url+e);if(this.tableData=a.data.data,this.pagesteams=[],this.teamperpage>0){let t=[];this.tableData.forEach((n,s)=>{t.push(n),(s+1)%this.teamperpage===0&&(this.pagesteams.push([...t]),t=[])}),t.length&&this.pagesteams.push([...t])}for(let t=0;t<this.tableData.length;t++)this.teams.push({id:this.tableData[t].team_id,team:this.tableData[t].team_name,logo:this.tableData[t].team_logo});this.teams.sort((t,n)=>{const s=t.team.toUpperCase(),i=n.team.toUpperCase();return s<i?-1:s>i?1:0})}catch(a){return Promise.reject(a)}},async fetchTournaments(){const e=Bs.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a}}},Og=e=>(o.pushScopeId("data-v-871f6068"),e=e(),o.popScopeId(),e),Ag={class:"gsc-generaltable__container"},Vg=Og(()=>o.createElementVNode("div",{class:"gsc-generaltable__row-sep"},[o.createElementVNode("div",{class:"gsc-generaltable__row-sep__line"})],-1)),$g={key:1,class:"carousel-table-landing"},Pg={class:"row-table-carrousel"};function Ig(e,a,t,n,s,i){const r=o.resolveComponent("GSCTournamentSelect"),l=o.resolveComponent("GSCSeasonSelect"),u=o.resolveComponent("GSCFilterperteam"),c=o.resolveComponent("GSCTableperteam"),m=o.resolveComponent("GSCCarousel");return o.openBlock(),o.createElementBlock("div",{class:"gsc-generaltable",style:o.normalizeStyle(t.type==0?i.customStyle:i.customStyleLanding),ref:"myDivRef"},[t.type==0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar",n.elementSize.width<590?"style-display":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__title",n.elementSize.width<768?"style-auto":""]),style:o.normalizeStyle(i.customStyleTitle)}," Tabla General ",6),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors",n.elementSize.width<768&&n.elementSize.width>590?"style-auto":n.elementSize.width<590?"width-100":""])},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__tournaments",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(r,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])],2),o.createElementVNode("div",{class:o.normalizeClass(["gsc-generaltable__row-toolbar__selectors__seasons",n.elementSize.width<590&&n.elementSize.width>=420?"width-50":n.elementSize.width<420?"width-30":""])},[o.createVNode(l,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])],2)],2)],2),o.createElementVNode("div",Ag,[o.createVNode(u,{data:s.teams,"background-color":"none","contain-border-radius":"8px",onClickTeam:i.clickTeam,onClickAll:i.clickAll},null,8,["data","onClickTeam","onClickAll"]),Vg,s.tableData?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(s.tableData,(h,f)=>(o.openBlock(),o.createBlock(c,{key:f,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,isheader:f==0,"background-color":s.teamselect!=0&&s.teamselect==h.team_id?"rgba(30, 60, 81, 0.5)":f%2===0?"#172531":"#0d1d29",data:h},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128)):o.createCommentVNode("",!0)])],64)):(o.openBlock(),o.createElementBlock("div",$g,[o.createVNode(m,{isPaginationVisible:t.isPaginationVisible,items:s.pagesteams},{default:o.withCtx(({item:h})=>[o.createElementVNode("div",Pg,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h,(f,d)=>(o.openBlock(),o.createBlock(c,{key:d,onOpenmedia:i.setOpenMedia,onOpenTableProfile:i.openTableProfile,"is-games":!1,ItemHeight:"60px",teamSelected:1,isheader:d==0,"background-color":s.teamselect!=0&&s.teamselect==f.team_id?"rgba(30, 60, 81, 0.5)":d%2===0?"#172531":"#0d1d29",data:f},null,8,["onOpenmedia","onOpenTableProfile","isheader","background-color","data"]))),128))])]),_:1},8,["isPaginationVisible","items"])]))],4)}const Rg=Tg(vg,[["render",Ig],["__scopeId","data-v-871f6068"]]);function Lg(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const zg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ja={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Ds=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},js=ja.setup;ja.setup=js?(e,a)=>(Ds(),js(e,a)):Ds;const Fg={ref:"gscScrollableContainer",class:"scrollable-container"},Mg={class:"scrollable-arrows"},Dg=["width","height","viewBox"],jg=["stroke"],Wg={class:"scrollable-wrapper"},Ug={class:"scrollable-arrows"},Hg=["width","height","viewBox"],Gg=["stroke"];function qg(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",Fg,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",Mg,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,jg)],8,Dg))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",Wg,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",Ug,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,Gg)],8,Hg))])],2)):o.createCommentVNode("",!0)],512)}const Jg=zg(ja,[["render",qg],["__scopeId","data-v-b548a08d"]]),Kg=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Wa={components:{GSCSlider:Jg},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=o.ref("myDivRef"),{elementSize:a}=Lg(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},Ws=()=>{o.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Us=Wa.setup;Wa.setup=Us?(e,a)=>(Ws(),Us(e,a)):Ws;const Zg={ref:"myDivRef"},Xg={key:0,class:"gs-switch-container"},Yg=["onClick"],Qg={key:1,class:"gs-switch-container-type"},ef=["onClick"],tf={key:2,class:"gs-switch-container-carousel"},of=["onClick"];function af(e,a,t,n,s,i){const r=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Zg,[t.type==0?(o.openBlock(),o.createElementBlock("div",Xg,[o.createElementVNode("div",{class:"gs-switch-container__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,Yg))),128))],4),o.renderSlot(e.$slots,t.selectedOption,{},void 0,!0)])):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",Qg,[o.createElementVNode("div",{class:"gs-switch-container-type__control",style:o.normalizeStyle([i.customGrid(n.elementSize)])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:t.backgroundOptionDisable}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,ef))),128))],4)])):o.createCommentVNode("",!0),t.type==2?(o.openBlock(),o.createElementBlock("div",tf,[o.createVNode(r,{arrows:t.arrow,"background-color":t.background,"px-scroll":t.pxScroll,"scroll-color":t.scrollColor,"arrows-position":t.arrowsPosition,arrowsScrollHide:t.arrowsScrollHide,"arrows-background":t.arrowsBackground,"arrows-container-bg-l":t.arrowsContainerBgL,"arrows-container-bg-r":t.arrowsContainerBgR,"arrows-margin":t.arrowsMargin,"arrows-radius":t.arrowsRadius,"arrows-border":t.arrowsBorder},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.buttons,(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"button-option-multi",style:o.normalizeStyle([{height:t.height},t.selectedOption==l?{borderColor:t.colorOptionActive,color:t.colorFont+"!important",background:t.backgroundOptionActive}:{borderColor:t.colorOptionDisable,color:"grey !important"}]),key:u,onClick:c=>(t.selectedOption=l,i.clickEmitEvent(l))},o.toDisplayString(l),13,of))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):o.createCommentVNode("",!0)],512)}const Ua=Kg(Wa,[["render",af],["__scopeId","data-v-8a86dfaf"]]);function Hs(e,a){return function(){return e.apply(a,arguments)}}const{toString:nf}=Object.prototype,{getPrototypeOf:Ha}=Object,_o=(e=>a=>{const t=nf.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),a=>_o(a)===e),ko=e=>a=>typeof a===e,{isArray:kt}=Array,Lt=ko("undefined");function sf(e){return e!==null&&!Lt(e)&&e.constructor!==null&&!Lt(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Gs=Ze("ArrayBuffer");function rf(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Gs(e.buffer),a}const lf=ko("string"),Fe=ko("function"),qs=ko("number"),Co=e=>e!==null&&typeof e=="object",cf=e=>e===!0||e===!1,Eo=e=>{if(_o(e)!=="object")return!1;const a=Ha(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},df=Ze("Date"),mf=Ze("File"),uf=Ze("Blob"),hf=Ze("FileList"),pf=e=>Co(e)&&Fe(e.pipe),gf=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((a=_o(e))==="formdata"||a==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},ff=Ze("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),kt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Js(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zs=e=>!Lt(e)&&e!==Ks;function Ga(){const{caseless:e}=Zs(this)&&this||{},a={},t=(n,s)=>{const i=e&&Js(a,s)||s;Eo(a[i])&&Eo(n)?a[i]=Ga(a[i],n):Eo(n)?a[i]=Ga({},n):kt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&zt(arguments[n],t);return a}const bf=(e,a,t,{allOwnKeys:n}={})=>(zt(a,(s,i)=>{t&&Fe(s)?e[i]=Hs(s,t):e[i]=s},{allOwnKeys:n}),e),wf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sf=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},_f=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&Ha(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},kf=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Cf=e=>{if(!e)return null;if(kt(e))return e;let a=e.length;if(!qs(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Ef=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ha(Uint8Array)),Bf=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},xf=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Nf=Ze("HTMLFormElement"),Tf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Xs=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),vf=Ze("RegExp"),Ys=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};zt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Of=e=>{Ys(e,(a,t)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Fe(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Af=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return kt(e)?n(e):n(String(e).split(a)),t},Vf=()=>{},$f=(e,a)=>(e=+e,Number.isFinite(e)?e:a),qa="abcdefghijklmnopqrstuvwxyz",Qs="0123456789",er={DIGIT:Qs,ALPHA:qa,ALPHA_DIGIT:qa+qa.toUpperCase()+Qs},Pf=(e=16,a=er.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function If(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Rf=e=>{const a=new Array(10),t=(n,s)=>{if(Co(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=kt(n)?[]:{};return zt(n,(r,l)=>{const u=t(r,s+1);!Lt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},Lf=Ze("AsyncFunction"),zf=e=>e&&(Co(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),E={isArray:kt,isArrayBuffer:Gs,isBuffer:sf,isFormData:gf,isArrayBufferView:rf,isString:lf,isNumber:qs,isBoolean:cf,isObject:Co,isPlainObject:Eo,isUndefined:Lt,isDate:df,isFile:mf,isBlob:uf,isRegExp:vf,isFunction:Fe,isStream:pf,isURLSearchParams:ff,isTypedArray:Ef,isFileList:hf,forEach:zt,merge:Ga,extend:bf,trim:yf,stripBOM:wf,inherits:Sf,toFlatObject:_f,kindOf:_o,kindOfTest:Ze,endsWith:kf,toArray:Cf,forEachEntry:Bf,matchAll:xf,isHTMLForm:Nf,hasOwnProperty:Xs,hasOwnProp:Xs,reduceDescriptors:Ys,freezeMethods:Of,toObjectSet:Af,toCamelCase:Tf,noop:Vf,toFiniteNumber:$f,findKey:Js,global:Ks,isContextDefined:Zs,ALPHABET:er,generateString:Pf,isSpecCompliantForm:If,toJSONObject:Rf,isAsyncFn:Lf,isThenable:zf};function J(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}E.inherits(J,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tr=J.prototype,or={};["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=>{or[e]={value:e}}),Object.defineProperties(J,or),Object.defineProperty(tr,"isAxiosError",{value:!0}),J.from=(e,a,t,n,s,i)=>{const r=Object.create(tr);return E.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),J.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Ff=null;function Ja(e){return E.isPlainObject(e)||E.isArray(e)}function ar(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function nr(e,a,t){return e?e.concat(a).map(function(n,s){return n=ar(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function Mf(e){return E.isArray(e)&&!e.some(Ja)}const Df=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function Bo(e,a,t){if(!E.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=E.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!E.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(a);if(!E.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(E.isDate(d))return d.toISOString();if(!l&&E.isBlob(d))throw new J("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(d)||E.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(E.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(E.isArray(d)&&Mf(d)||(E.isFileList(d)||E.endsWith(p,"[]"))&&(b=E.toArray(d)))return p=ar(p),b.forEach(function(S,_){!(E.isUndefined(S)||S===null)&&a.append(r===!0?nr([p],_,i):r===null?p:p+"[]",u(S))}),!1}return Ja(d)?!0:(a.append(nr(g,p,i),u(d)),!1)}const m=[],h=Object.assign(Df,{defaultVisitor:c,convertValue:u,isVisitable:Ja});function f(d,p){if(!E.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),E.forEach(d,function(g,b){(!(E.isUndefined(g)||g===null)&&s.call(a,g,E.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return f(e),a}function ir(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Ka(e,a){this._pairs=[],e&&Bo(e,this,a)}const sr=Ka.prototype;sr.append=function(e,a){this._pairs.push([e,a])},sr.toString=function(e){const a=e?function(t){return e.call(this,t,ir)}:ir;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function jf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rr(e,a,t){if(!a)return e;const n=t&&t.encode||jf,s=t&&t.serialize;let i;if(s?i=s(a,t):i=E.isURLSearchParams(a)?a.toString():new Ka(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const lr=class{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){E.forEach(this.handlers,function(t){t!==null&&a(t)})}},cr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wf=typeof URLSearchParams<"u"?URLSearchParams:Ka,Uf=typeof FormData<"u"?FormData:null,Hf=typeof Blob<"u"?Blob:null,Gf={isBrowser:!0,classes:{URLSearchParams:Wf,FormData:Uf,Blob:Hf},protocols:["http","https","file","blob","url","data"]},dr=typeof window<"u"&&typeof document<"u",qf=(e=>dr&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Jf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Kf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dr,hasStandardBrowserEnv:qf,hasStandardBrowserWebWorkerEnv:Jf},Symbol.toStringTag,{value:"Module"})),Xe={...Kf,...Gf};function Zf(e,a){return Bo(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return Xe.isNode&&E.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Xf(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Yf(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function mr(e){function a(t,n,s,i){let r=t[i++];if(r==="__proto__")return!0;const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&E.isArray(s)?s.length:r,u?(E.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!E.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&E.isArray(s[r])&&(s[r]=Yf(s[r])),!l)}if(E.isFormData(e)&&E.isFunction(e.entries)){const t={};return E.forEachEntry(e,(n,s)=>{a(Xf(n),s,t,0)}),t}return null}function Qf(e,a,t){if(E.isString(e))try{return(a||JSON.parse)(e),E.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Za={transitional:cr,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=E.isObject(e);if(s&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return n&&n?JSON.stringify(mr(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Zf(e,this.formSerializer).toString();if((i=E.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Bo(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),Qf(e)):e}],transformResponse:[function(e){const a=this.transitional||Za.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&E.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?J.from(i,J.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Za.headers[e]={}});const Xa=Za,ey=E.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"]),ty=e=>{const a={};let t,n,s;return e&&e.split(`
16
+ `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&ey[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ur=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function xo(e){return e===!1||e==null?e:E.isArray(e)?e.map(xo):String(e)}function oy(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const ay=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ya(e,a,t,n,s){if(E.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!E.isString(a)){if(E.isString(n))return a.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(a)}}function ny(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function iy(e,a){const t=E.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let No=class{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Ft(u);if(!m)throw new Error("header name must be a non-empty string");const h=E.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=xo(l))}const r=(l,u)=>E.forEach(l,(c,m)=>i(c,m,u));return E.isPlainObject(a)||a instanceof this.constructor?r(a,t):E.isString(a)&&(a=a.trim())&&!ay(a)?r(ty(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return oy(s);if(E.isFunction(t))return t.call(this,s,n);if(E.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Ft(a),a){const n=E.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Ya(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Ft(r),r){const l=E.findKey(n,r);l&&(!t||Ya(n,n[l],l,t))&&(delete n[l],s=!0)}}return E.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Ya(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return E.forEach(this,(s,i)=>{const r=E.findKey(n,i);if(r){t[r]=xo(s),delete t[i];return}const l=a?ny(i):String(i).trim();l!==i&&delete t[i],t[l]=xo(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return E.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&E.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
17
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ur]=this[ur]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Ft(i);t[r]||(iy(n,i),t[r]=!0)}return E.isArray(a)?a.forEach(s):s(a),this}};No.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(No.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),E.freezeMethods(No);const nt=No;function Qa(e,a){const t=this||Xa,n=a||t,s=nt.from(n.headers);let i=n.data;return E.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function hr(e){return!!(e&&e.__CANCEL__)}function Mt(e,a,t){J.call(this,e??"canceled",J.ERR_CANCELED,a,t),this.name="CanceledError"}E.inherits(Mt,J,{__CANCEL__:!0});function sy(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new J("Request failed with status code "+t.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const ry=Xe.hasStandardBrowserEnv?{write(e,a,t,n,s,i){const r=[e+"="+encodeURIComponent(a)];E.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),E.isString(n)&&r.push("path="+n),E.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ly(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cy(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function pr(e,a){return e&&!ly(a)?cy(e,a):a}const dy=Xe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=E.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function my(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function uy(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function gr(e,a){let t=0;const n=uy(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const hy=typeof XMLHttpRequest<"u",py=hy&&function(e){return new Promise(function(a,t){let n=e.data;const s=nt.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(E.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((c=s.getContentType())!==!1){const[p,...g]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];s.setContentType([p||"multipart/form-data",...g].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+g))}const h=pr(e.baseURL,e.url);m.open(e.method.toUpperCase(),rr(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function f(){if(!m)return;const p=nt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:p,config:e,request:m};sy(function(b){a(b),u()},function(b){t(b),u()},g),m=null}if("onloadend"in m?m.onloadend=f:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(f)},m.onabort=function(){m&&(t(new J("Request aborted",J.ECONNABORTED,e,m)),m=null)},m.onerror=function(){t(new J("Network Error",J.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||cr;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),t(new J(p,g.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,m)),m=null},Xe.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(e)),r||r!==!1&&dy(h))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&ry.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}n===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(s.toJSON(),function(p,g){m.setRequestHeader(g,p)}),E.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),i&&i!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",gr(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",gr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{m&&(t(!p||p.type?new Mt(null,e,m):p),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=my(h);if(d&&Xe.protocols.indexOf(d)===-1){t(new J("Unsupported protocol "+d+":",J.ERR_BAD_REQUEST,e));return}m.send(n||null)})},en={http:Ff,xhr:py};E.forEach(en,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const fr=e=>`- ${e}`,gy=e=>E.isFunction(e)||e===null||e===!1,yr={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!gy(t)&&(n=en[(r=String(t)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
18
18
  `+i.map(fr).join(`
19
- `):" "+fr(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:en};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mt(null,e)}function br(e){return tn(e),e.headers=nt.from(e.headers),e.data=Qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yr.getAdapter(e.adapter||Xa.adapter)(e).then(function(a){return tn(e),a.data=Qa.call(e,e.transformResponse,a),a.headers=nt.from(a.headers),a},function(a){return hr(a)||(tn(e),a&&a.response&&(a.response.data=Qa.call(e,e.transformResponse,a.response),a.response.headers=nt.from(a.response.headers))),Promise.reject(a)})}const wr=e=>e instanceof nt?e.toJSON():e;function Ct(e,a){a=a||{};const t={};function n(c,m,h){return E.isPlainObject(c)&&E.isPlainObject(m)?E.merge.call({caseless:h},c,m):E.isPlainObject(m)?E.merge({},m):E.isArray(m)?m.slice():m}function s(c,m,h){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!E.isUndefined(m))return n(void 0,m)}function r(c,m){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(wr(c),wr(m),!0)};return E.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);E.isUndefined(h)&&m!==l||(t[c]=h)}),t}const Sr="1.6.6",on={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{on[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const _r={};on.transitional=function(e,a,t){function n(s,i){return"[Axios v"+Sr+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new J(n(i," has been removed"+(a?" in "+a:"")),J.ERR_DEPRECATED);return a&&!_r[i]&&(_r[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function yy(e,a,t){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new J("option "+i+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const an={assertOptions:yy,validators:on},dt=an.validators;let To=class{constructor(a){this.defaults=a,this.interceptors={request:new lr,response:new lr}}async request(a,t){try{return await this._request(a,t)}catch(n){const s={};throw Error.captureStackTrace?Error.captureStackTrace(s):s.stack=new Error().stack,s.stack=s.stack.replace(/^.+\n/,""),n.stack.endsWith(s.stack.replace(/^.+\n.+\n/,""))||(n.stack+=`
20
- `+s.stack),n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Ct(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&an.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),s!=null&&(E.isFunction(s)?t.paramsSerializer={serialize:s}:an.assertOptions(s,{encode:dt.function,serialize:dt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&E.merge(i.common,i[t.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=nt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[br.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=br.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Ct(this.defaults,a);const t=pr(a.baseURL,a.url);return rr(t,a.params,a.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(e){To.prototype[e]=function(a,t){return this.request(Ct(t||{},{method:e,url:a,data:(t||{}).data}))}}),E.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Ct(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}To.prototype[e]=a(),To.prototype[e+"Form"]=a(!0)});const vo=To,by=class Fc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Mt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new Fc(function(t){a=t}),cancel:a}}};function wy(e){return function(a){return e.apply(null,a)}}function Sy(e){return E.isObject(e)&&e.isAxiosError===!0}const nn={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(nn).forEach(([e,a])=>{nn[a]=e});const _y=nn;function kr(e){const a=new vo(e),t=Hs(vo.prototype.request,a);return E.extend(t,vo.prototype,a,{allOwnKeys:!0}),E.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return kr(Ct(e,n))},t}const pe=kr(Xa);pe.Axios=vo,pe.CanceledError=Mt,pe.CancelToken=by,pe.isCancel=hr,pe.VERSION=Sr,pe.toFormData=Bo,pe.AxiosError=J,pe.Cancel=pe.CanceledError,pe.all=function(e){return Promise.all(e)},pe.spread=wy,pe.isAxiosError=Sy,pe.mergeConfig=Ct,pe.AxiosHeaders=nt,pe.formToJSON=e=>mr(E.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=yr.getAdapter,pe.HttpStatusCode=_y,pe.default=pe;const Cr=pe;/**
19
+ `):" "+fr(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:en};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mt(null,e)}function br(e){return tn(e),e.headers=nt.from(e.headers),e.data=Qa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yr.getAdapter(e.adapter||Xa.adapter)(e).then(function(a){return tn(e),a.data=Qa.call(e,e.transformResponse,a),a.headers=nt.from(a.headers),a},function(a){return hr(a)||(tn(e),a&&a.response&&(a.response.data=Qa.call(e,e.transformResponse,a.response),a.response.headers=nt.from(a.response.headers))),Promise.reject(a)})}const wr=e=>e instanceof nt?e.toJSON():e;function Ct(e,a){a=a||{};const t={};function n(c,m,h){return E.isPlainObject(c)&&E.isPlainObject(m)?E.merge.call({caseless:h},c,m):E.isPlainObject(m)?E.merge({},m):E.isArray(m)?m.slice():m}function s(c,m,h){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!E.isUndefined(m))return n(void 0,m)}function r(c,m){if(E.isUndefined(m)){if(!E.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(wr(c),wr(m),!0)};return E.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);E.isUndefined(h)&&m!==l||(t[c]=h)}),t}const Sr="1.6.6",on={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{on[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const _r={};on.transitional=function(e,a,t){function n(s,i){return"[Axios v"+Sr+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new J(n(i," has been removed"+(a?" in "+a:"")),J.ERR_DEPRECATED);return a&&!_r[i]&&(_r[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function fy(e,a,t){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new J("option "+i+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const an={assertOptions:fy,validators:on},dt=an.validators;let To=class{constructor(a){this.defaults=a,this.interceptors={request:new lr,response:new lr}}async request(a,t){try{return await this._request(a,t)}catch(n){const s={};throw Error.captureStackTrace?Error.captureStackTrace(s):s.stack=new Error().stack,s.stack=s.stack.replace(/^.+\n/,""),n.stack.endsWith(s.stack.replace(/^.+\n.+\n/,""))||(n.stack+=`
20
+ `+s.stack),n}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Ct(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&an.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),s!=null&&(E.isFunction(s)?t.paramsSerializer={serialize:s}:an.assertOptions(s,{encode:dt.function,serialize:dt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&E.merge(i.common,i[t.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=nt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[br.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=br.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Ct(this.defaults,a);const t=pr(a.baseURL,a.url);return rr(t,a.params,a.paramsSerializer)}};E.forEach(["delete","get","head","options"],function(e){To.prototype[e]=function(a,t){return this.request(Ct(t||{},{method:e,url:a,data:(t||{}).data}))}}),E.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Ct(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}To.prototype[e]=a(),To.prototype[e+"Form"]=a(!0)});const vo=To,yy=class zc{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new Mt(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new zc(function(t){a=t}),cancel:a}}};function by(e){return function(a){return e.apply(null,a)}}function wy(e){return E.isObject(e)&&e.isAxiosError===!0}const nn={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(nn).forEach(([e,a])=>{nn[a]=e});const Sy=nn;function kr(e){const a=new vo(e),t=Hs(vo.prototype.request,a);return E.extend(t,vo.prototype,a,{allOwnKeys:!0}),E.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return kr(Ct(e,n))},t}const pe=kr(Xa);pe.Axios=vo,pe.CanceledError=Mt,pe.CancelToken=yy,pe.isCancel=hr,pe.VERSION=Sr,pe.toFormData=Bo,pe.AxiosError=J,pe.Cancel=pe.CanceledError,pe.all=function(e){return Promise.all(e)},pe.spread=by,pe.isAxiosError=wy,pe.mergeConfig=Ct,pe.AxiosHeaders=nt,pe.formToJSON=e=>mr(E.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=yr.getAdapter,pe.HttpStatusCode=Sy,pe.default=pe;const Cr=pe;/**
21
21
  * Vue 3 Carousel 0.3.1
22
22
  * (c) 2023
23
23
  * @license MIT
24
- */const ve={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Er={itemsToShow:{default:ve.itemsToShow,type:Number},itemsToScroll:{default:ve.itemsToScroll,type:Number},wrapAround:{default:ve.wrapAround,type:Boolean},throttle:{default:ve.throttle,type:Number},snapAlign:{default:ve.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ve.transition,type:Number},breakpoints:{default:ve.breakpoints,type:Object},autoplay:{default:ve.autoplay,type:Number},pauseAutoplayOnHover:{default:ve.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ve.mouseDrag,type:Boolean},touchDrag:{default:ve.touchDrag,type:Boolean},dir:{default:ve.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ve.i18n,type:Object},settings:{default(){return{}},type:Object}};function ky({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Cy({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function sn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Ey({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:sn({val:r,max:t-i,min:0})}function Br(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Br(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function rn({val:e,max:a,min:t=0}){return e>a?rn({val:e-(a+1),max:a,min:t}):e<t?rn({val:e+(a+1),max:a,min:t}):e}function By(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function xy(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function Ny(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Ty=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ve))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Ny(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),vy=o.defineComponent({name:"Carousel",props:Er,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ve));let m=Object.assign({},ve),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=xy(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=ky({config:c,slidesCount:u.value}),b.value=Cy({config:c,slidesCount:u.value}),c.wrapAround||(f.value=sn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Pe(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Ie,!0)))}const Ae=By(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Ie(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Ie,!0)}function Pe(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||P()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Pe()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:sn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=rn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function P(){v(f.value+c.itemsToScroll)}function I(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:P,prev:I};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>Ey({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Er).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:P,prev:I,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:P,prev:I,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Br(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(Ty)])}}}),xr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xr||(xr={}));var Oy=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ve))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Ay=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Vy=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),$y={class:"gsc-carousel"},Iy={key:0},Py=Vy(()=>o.createElementVNode("div",null,"no hay",-1)),Ry=[Py],Ly={class:"gsc-carousel__2d__slides"},zy={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fy=["fill"],My={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dy=["fill"],jy={class:"gsc-carousel__2d__navigation"},Wy={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uy=["stroke"],Hy={key:1,class:"gsc-carousel__2d__navigation__pagination"},Gy=["onClick"],qy={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jy=["stroke"],Ky={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",$y,[n.is3d?(o.openBlock(),o.createElementBlock("div",Iy,Ry)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Ly,[o.createVNode(o.unref(vy),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(Oy),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",zy,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Fy)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",My,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Dy)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",jy,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",Wy,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Uy)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Hy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,Gy))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",qy,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,Jy)]))])):o.createCommentVNode("",!0)])],2))]))}},Nr=Ay(Ky,[["__scopeId","data-v-dd3cbf69"]]),Zy={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Xy={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Yy={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
24
+ */const ve={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Er={itemsToShow:{default:ve.itemsToShow,type:Number},itemsToScroll:{default:ve.itemsToScroll,type:Number},wrapAround:{default:ve.wrapAround,type:Boolean},throttle:{default:ve.throttle,type:Number},snapAlign:{default:ve.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ve.transition,type:Number},breakpoints:{default:ve.breakpoints,type:Object},autoplay:{default:ve.autoplay,type:Number},pauseAutoplayOnHover:{default:ve.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ve.mouseDrag,type:Boolean},touchDrag:{default:ve.touchDrag,type:Boolean},dir:{default:ve.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ve.i18n,type:Object},settings:{default(){return{}},type:Object}};function _y({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function ky({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function sn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Cy({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:sn({val:r,max:t-i,min:0})}function Br(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Br(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function rn({val:e,max:a,min:t=0}){return e>a?rn({val:e-(a+1),max:a,min:t}):e<t?rn({val:e+(a+1),max:a,min:t}):e}function Ey(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function By(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function xy(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Ny=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ve))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},xy(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),Ty=o.defineComponent({name:"Carousel",props:Er,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ve));let m=Object.assign({},ve),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=By(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=_y({config:c,slidesCount:u.value}),b.value=ky({config:c,slidesCount:u.value}),c.wrapAround||(f.value=sn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=Ey(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:sn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=rn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:I,prev:P};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>Cy({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Er).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Br(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(Ny)])}}}),xr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xr||(xr={}));var vy=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ve))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Oy=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Ay=e=>(o.pushScopeId("data-v-dd3cbf69"),e=e(),o.popScopeId(),e),Vy={class:"gsc-carousel"},$y={key:0},Py=Ay(()=>o.createElementVNode("div",null,"no hay",-1)),Iy=[Py],Ry={class:"gsc-carousel__2d__slides"},Ly={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zy=["fill"],Fy={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},My=["fill"],Dy={class:"gsc-carousel__2d__navigation"},jy={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wy=["stroke"],Uy={key:1,class:"gsc-carousel__2d__navigation__pagination"},Hy=["onClick"],Gy={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qy=["stroke"],Jy={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",Vy,[n.is3d?(o.openBlock(),o.createElementBlock("div",$y,Iy)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Ry,[o.createVNode(o.unref(Ty),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(vy),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Ly,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,zy)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Fy,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,My)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",Dy,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",jy,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,Wy)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",Uy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,Hy))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",Gy,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,qy)]))])):o.createCommentVNode("",!0)])],2))]))}},Nr=Oy(Jy,[["__scopeId","data-v-dd3cbf69"]]),Ky={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Zy={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Xy={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"};/**
25
25
  * Vue 3 Carousel 0.3.1
26
26
  * (c) 2023
27
27
  * @license MIT
28
- */const fe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Tr={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Qy({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function e0({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function ln({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function t0({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:ln({val:r,max:t-i,min:0})}function vr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...vr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function cn({val:e,max:a,min:t=0}){return e>a?cn({val:e-(a+1),max:a,min:t}):e<t?cn({val:e+(a+1),max:a,min:t}):e}function o0(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function a0(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function n0(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var i0=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},n0(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),s0=o.defineComponent({name:"Carousel",props:Tr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},fe));let m=Object.assign({},fe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=a0(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=Qy({config:c,slidesCount:u.value}),b.value=e0({config:c,slidesCount:u.value}),c.wrapAround||(f.value=ln({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Pe(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Ie,!0)))}const Ae=o0(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Ie(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Ie,!0)}function Pe(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||P()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Pe()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:ln({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=cn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function P(){v(f.value+c.itemsToScroll)}function I(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:P,prev:I};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>t0({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Tr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:P,prev:I,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:P,prev:I,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=vr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(i0)])}}}),dn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(dn||(dn={}));const r0={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function l0(e){return e in dn}const mn=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!l0(t))return;const s=r0[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};mn.props={name:String,title:String};const c0=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:h,i18n:f}=i,d=m==="rtl",p=o.h("button",{type:"button",class:["carousel__prev",!h&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(mn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(mn,{name:d?"arrowLeft":"arrowRight"}));return[p,g]};var d0=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const De=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},m0={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},u0=De(m0,[["__scopeId","data-v-89459353"]]),h0={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"469bccd0":i.value,"469dfb50":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(h=>h.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(h=>h.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(s0),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(c0))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(d0),{key:h.key},{default:o.withCtx(()=>[o.createVNode(u0,o.mergeProps(t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},p0=De(h0,[["__scopeId","data-v-930cd509"]]);function Et(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function Or(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function g0(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const f0={class:"game-info__teams"},y0={class:"game-info__teams__team__logo"},b0=["src"],w0={class:"game-info__teams__detail"},S0={key:0,class:"game-info__teams__detail__pre-game"},_0={class:"game-info__teams__team__logo away"},k0=["src"],C0={key:0},E0={key:0},B0={key:1},x0={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,t=o.computed(()=>{const c=new Date(a.game.dateTimeMillis),m=c.getHours(),h=c.getMinutes();return`${m<10?`0${m}`:m}:${h<10?`0${h}`:h}`}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),u=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",f0,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",y0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.home_team.team_id),alt:""},null,8,b0)])],4),o.createElementVNode("div",w0,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",S0,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(u.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",_0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.visiting_team.team_id),alt:""},null,8,k0)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",C0,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",E0,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",B0,o.toDisplayString(o.unref(g0)(e.game)),1))],4)],4))}},Ar=De(x0,[["__scopeId","data-v-afb1954b"]]),Vr=e=>(o.pushScopeId("data-v-8839c56d"),e=e(),o.popScopeId(),e),N0={class:"game-status"},T0={key:0,class:"game-status__day__live"},v0=Vr(()=>o.createElementVNode("span",null,"LIVE",-1)),O0=Vr(()=>o.createElementVNode("span",{class:"dot"},null,-1)),A0=[v0,O0],V0={key:0,class:"game-status__round"},$0={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",N0,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",T0,A0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",V0,o.toDisplayString(e.roundAbbreviation),1))]))}},$r=De($0,[["__scopeId","data-v-8839c56d"]]),je={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},I0=e=>(o.pushScopeId("data-v-0d97b1a8"),e=e(),o.popScopeId(),e),P0={class:"actions"},R0={class:"actions__row"},L0=I0(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),z0=[L0],F0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M0=["fill"],D0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},j0=["fill"],W0={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",P0,[o.createElementVNode("div",R0,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(je).STATISTICS))},z0,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",F0,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,M0)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",D0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,j0)]))])):o.createCommentVNode("",!0)])]))}},U0=De(W0,[["__scopeId","data-v-0d97b1a8"]]),un=e=>(o.pushScopeId("data-v-af6919bd"),e=e(),o.popScopeId(),e),H0={class:"actions"},G0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q0=["fill"],J0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K0=["fill"],Z0=un(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),X0=[Z0],Y0={key:0,class:"actions__videos"},Q0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=["fill"],t1={key:1,class:"actions__videos__thumbnails"},o1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),a1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),n1={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i1=["stroke"],s1={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const u=[];return t.componentWidth<540&&u.push("mobile"),u}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(u){a("action",u)}return(u,c)=>(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",G0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,q0)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=m=>l(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",J0,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,K0)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=m=>l(o.unref(je).STATISTICS))},X0,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",Y0,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Q0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,e1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",t1,[o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=m=>l(o.unref(je).PLAY_GOALS))},[o1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)]),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=m=>l(o.unref(je).PLAY_RESUME))},[a1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=m=>l(o.unref(je).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",n1,[o.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,i1)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},r1=De(s1,[["__scopeId","data-v-af6919bd"]]),Oo=e=>(o.pushScopeId("data-v-43a88f53"),e=e(),o.popScopeId(),e),l1={class:"row-landing__game-status"},c1={class:"row-landing__game-actions"},d1={class:"row-full__game-status"},m1={class:"row-full__game-info"},u1={key:0},h1={class:"row-full__game-actions"},p1={class:"game-events-container"},g1=Oo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),f1=Oo(()=>o.createElementVNode("div",null,null,-1)),y1={class:"game-events__data"},b1={class:"game-events__data__team"},w1=["src"],S1={class:"game-events__data__team__event__text"},_1={class:"game-events__data__team away"},k1={class:"game-events__data__team__event__text"},C1=["src"],E1=Oo(()=>o.createElementVNode("div",null,null,-1)),B1=Oo(()=>o.createElementVNode("div",null,null,-1)),x1={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const t=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const g={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(g.homeTeam.push(...d(t.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...d(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...d(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...d(t.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...d(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...d(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=o.computed(()=>{const g=r.value.homeTeam.length,b=r.value.awayTeam.length;return g+b>0}),u=o.computed(()=>({"background-color":t.backgroundColor})),c=o.computed(()=>({height:t.height})),m=o.computed(()=>{const g={game:[],events:[]};return t.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):t.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):t.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),h=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),f=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,g=>{i.value=g<910});function d(g,b){return g.map(S=>({iconUrl:b,text:S}))}function p(g){g===je.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:g,game:t.game})}return(g,b)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(u.value)},[o.createVNode(Ar,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",l1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",c1,[o.createVNode(U0,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:p},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(u.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",m.value.game]),style:o.normalizeStyle(c.value)},[o.createElementVNode("div",d1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",m1,[o.createVNode(Ar,o.mergeProps(h.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(f.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",u1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",h1,[o.createVNode(r1,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:p},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",p1,[g1,o.createElementVNode("div",{class:o.normalizeClass(["game-events",m.value.events])},[f1,o.createElementVNode("div",y1,[o.createElementVNode("div",b1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`h${_}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:S.iconUrl},null,8,w1),o.createElementVNode("div",S1,o.toDisplayString(S.text),1)]))),128))]),o.createElementVNode("div",_1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`a${_}`,class:"game-events__data__team__event"},[o.createElementVNode("div",k1,o.toDisplayString(S.text),1),o.createElementVNode("img",{src:S.iconUrl},null,8,C1)]))),128))])]),E1,B1],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},Ir=De(x1,[["__scopeId","data-v-43a88f53"]]),N1={class:"calendar-table"},T1={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",N1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,u)=>(o.openBlock(),o.createBlock(Ir,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(u),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},v1=De(T1,[["__scopeId","data-v-47b333f0"]]),O1={class:"calendar-by-team"},A1={class:"playing-as-picker"},V1={class:"calendar-by-team__page"},$1={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.ref(0),s=o.computed(()=>{let u=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((m,[h,f])=>{const d=Number(h),p=Number.isNaN(d)?h:`Jornada ${d<10?"0":""}${d}`,g=f.reduce((b,S)=>(b.push(...S),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&m.push({roundName:p,games:g}),m},[]);u.push(c)}return u});function i(u){a("action",u)}function r(u){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=u,document.querySelector("#opc"+u).classList.add("selected")}function l(u){let c=u;switch(u){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(u,c)=>(o.openBlock(),o.createElementBlock("div",O1,[o.createElementVNode("div",A1,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=m=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=m=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=m=>r(2))},"Local")]),o.createVNode(o.unref(Nr),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",V1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(h.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.games,d=>(o.openBlock(),o.createBlock(Ir,{key:d.game_id,game:d,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},I1=De($1,[["__scopeId","data-v-1cad2737"]]),P1="_image62Icon_1lvdf_3",R1="_imgChivasIcon_1lvdf_21",L1="_nameDesktop_1lvdf_35",z1="_nameMobile_1lvdf_61",F1="_homeTeam_1lvdf_85",M1="_sbado16De_1lvdf_107",D1="_gameDate_1lvdf_125",j1="_sab16092023_1lvdf_133",W1="_div_1lvdf_159",U1="_divscore_1lvdf_177",H1="_cst_1lvdf_197",G1="_hour_1lvdf_215",q1="_score_1lvdf_217",J1="_chivasTvCanal_1lvdf_239",K1="_gameStatus_1lvdf_263",Z1="_matchInfo_1lvdf_285",X1="_image62Icon1_1lvdf_311",Y1="_name_1lvdf_35",Q1="_imgAtlasIcon_1lvdf_355",eb="_name1_1lvdf_369",tb="_awayTeam_1lvdf_393",ob="_matchCard_1lvdf_415",ab={image62Icon:P1,imgChivasIcon:R1,nameDesktop:L1,nameMobile:z1,homeTeam:F1,sbado16De:M1,gameDate:D1,sab16092023:j1,div:W1,divscore:U1,cst:H1,hour:G1,score:q1,chivasTvCanal:J1,gameStatus:K1,matchInfo:Z1,image62Icon1:X1,name:Y1,imgAtlasIcon:Q1,name1:eb,awayTeam:tb,matchCard:ob},nb=["src"],ib=["src"],sb={key:0},rb=["src"],lb=["src"],cb={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${u[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Et)(t.value.home_team.team_id,150)},null,10,nb),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Et)(t.value.home_team.team_id)},null,10,ib),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",sb," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id,150)},null,10,rb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id)},null,10,lb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},db={$style:ab},mb=De(cb,[["__cssModules",db]]),ub={class:"calendar-by-game__carousel"},hb={components:{GscSwitchComponent:Ua,GSCGeneraltable:Lg,GSCCalendarByGame:De({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),u=o.ref({}),c=o.ref(new Map),m=o.ref(!1),h=o.ref(null),f=o.ref(null),d=o.ref(null),p=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),S=o.computed(()=>t.games?se(t.games):c.value.get(u.value.key)||[]),_=o.ref(0),O=o.ref("1"),L=o.ref([]),H=o.ref([]),ee=o.computed(()=>H.value&&H.value.length?le(i.value):W(i.value));o.watch(()=>ee.value,R=>{_.value=L.value.findIndex(N=>N===R),O.value=R}),o.watch(()=>t.seasons,R=>{R&&R.length&&(m.value=!0,s.value=R.map(N=>N.id),ie(R,!0))},{immediate:!0,deep:!0});function W(R){const N=Object.entries(Object.entries(R).reduce((I,[z,F])=>(I[z]=[],F.forEach(Z=>{Z.games.forEach(ne=>{const ce=new Date(ne.date_time_utc).getTime()+66e5;I[z].push(ce)})}),I),{}));if(!N.length)return"1";const v=new Date().getTime(),P=N.reduce((I,[z,F])=>{let Z=null;return F.forEach(ne=>{const ce=ne-v;ce>=0&&(Z===null||ce<Z)&&(Z=ce)}),Z&&(I.shortestTime===null||Z<I.shortestTime)&&(I.round=z,I.shortestTime=Z),I},{round:"",shortestTime:null});return P.shortestTime!==null?P.round:N[N.length-1][0]}function le(R){let N=1;if(H.value.length){const v=H.value[0];for(const[P,I]of Object.entries(R))for(const z of I)if(z.games.find(F=>F.game_id===v.game_id))return P}return N}o.watch(()=>t.teamId,()=>{U()},{immediate:!0});async function $(R,N,v=""){let P=v;try{const I={};t.token&&(I.Authorization=t.token),P||(P="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",R.forEach((Z,ne)=>{P+=`${ne===0?"":"&"}seasons=${Z}`}));const{data:{data:z,teams:F}}=await Cr.get(P,{headers:I});return{seasonsAndGames:z,seasonsAndTeams:F}}catch(I){if(N>0)return $(R,N-1,P);throw new Error(I)}}function ae(R){for(const N of R)if(!s.value.includes(N.season_id))return!0;return!1}async function ie(R,N){try{i.value={};let v=0;const{seasonsAndGames:P,seasonsAndTeams:I}=await $(R.map(F=>F.id),3);if(N&&ae(P))return;P.forEach(F=>{const{type:Z}=R.find(ne=>ne.id===F.season_id);F.type=Z,F.games.forEach(ne=>{ne.season_id=F.season_id}),Z===0&&(v=F.season_id)}),h.value={seasonsGames:P};const{teams:z}=I.find(F=>F.season_id===v);f.value=z,a("change-teams",z),U()}catch(v){throw new Error(v)}}function U(){if(!f.value)return;H.value=[];const R=h.value&&h.value.seasonsGames?h.value.seasonsGames.map(N=>{const v=N.games.reduce((P,I)=>{const z={...I};return z.dateTimeMillis=new Date(z.date_time_utc).valueOf(),z.home_team=f.value.find(F=>F.team_id===I.home_team),z.visiting_team=f.value.find(F=>F.team_id===I.visiting_team),t.teamId&&z.home_team.team_id!==t.teamId&&z.visiting_team.team_id!==t.teamId||(P[I.matchday_abbreviation]?P[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]?P[I.matchday_abbreviation][I.game_status===3?"canceled":I.date].push(z):P[I.matchday_abbreviation][I.game_status===3?"canceled":I.date]=[z]:P[I.matchday_abbreviation]={[I.game_status===3?"canceled":I.date]:[z]},t.userTeamId&&z.game_status===4&&(z.home_team.team_id===t.userTeamId||z.visiting_team.team_id===t.userTeamId)&&H.value.push(z)),P},{});for(let[P,I]of Object.entries(v))v[P]=Object.entries(I).map(([z,F])=>({date:z,games:F.sort((Z,ne)=>Z.dateTimeMillis-ne.dateTimeMillis)})),v[P].sort((z,F)=>z.date<F.date?-1:z.date>F.date?1:0);return{type:N.type,weight:N.type===0?0:N.type===2?1:2,schedule:v}}):[];R.sort((N,v)=>N.weight-v.weight),i.value=R.reduce((N,v)=>{for(const[P,I]of Object.entries(v.schedule))if(v.type===0)if(p.value){const z=P.replace("M",""),F=z;g.value?N[Yy[z]||F]=I:N[Xy[P]||F]=I}else N[Number(P.replace("M","")).toString()]=I;else v.type===2?P.charAt(1)=="I"?N[`PI${Number(P.replace("PI",""))}`]=I:N[`R${Number(P.replace("PO",""))}`]=I:v.type===1&&(N[Zy[P]]=I);return N},{}),c.value=new Map,L.value=Array.from(Object.entries(i.value).reduce((N,[v,P],I)=>{const z=Number(v);let F="";Number.isNaN(z)?F=v:F=z<10?`0${z}`:v,N.set(v,{key:v,value:z,valueText:F,index:I});const Z=P.reduce((ce,Be)=>(Be.games.forEach(xe=>{xe.game_id===t.defaultGameId&&(d.value=v),xe.roundAbbreviation=Number.isNaN(z)?z:`J ${z}`}),ce=ce.concat(Be.games),ce),[]),ne=se(Z);return c.value.set(v,ne),N},new Map).values())}function se(R){const N=[];if(t.gamesPerMatchDay>0){let v=[];R.forEach((P,I)=>{v.push(P),(I+1)%t.gamesPerMatchDay===0&&(N.push([...v]),v=[])}),v.length&&N.push([...v])}else N.push(R);return N}async function de(R){try{const{data:N}=await Cr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return N}catch(N){if(R>0)return de(R-1);throw new Error(N)}}function Ue(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(R){u.value=R,a("change-round",R)}function $e(R){t.areGamesCarouselType&&a("change-game-carousel",R.selectedItem)}function Ae(R){a("action",R),Ie(R)}function Ie(R){const N="PLAY_RESUME",v="PLAY_GOALS",P=[607,608,12,55,54,35,14,52,15,53,466,477],I=[12,55,"35_r","54_r"],{game_id:z,season_id:F}=R.game;let Z={seasonId:F,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[z],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};R.action===N?(Z.categoryIds=P,Z.advancedFilter.playListTitle="Resumen",a("openmedia",Z)):R.action===v&&(Z.categoryIds=I,Z.advancedFilter.playListTitle="Goles",a("openmedia",Z))}async function Pe(){try{if(!t.awaitForSeasons&&!t.games){const R=(await de(3)).find(P=>P._id===1),N=R.seasons[0],v=[{id:N.id,type:N.type}];R&&R.tournament&&a("tournament-selected",R.tournament),N.related_seasons&&N.related_seasons.length&&v.push(...N.related_seasons.map(P=>({id:P.id,type:P.type}))),await ie(v,!1)}}catch(R){throw new Error(R)}}return o.onMounted(()=>{Ue()}),Pe(),(R,N)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(I1,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Ae},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&L.value?(o.openBlock(),o.createBlock(p0,{key:0,"match-days":L.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":d.value,"closest-match-day":e.sortCalendar?ee.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",ub,[S.value?(o.openBlock(),o.createBlock(o.unref(Nr),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?S.value[0]:S.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:$e},{default:o.withCtx(({item:v})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(mb,{key:0,game:v},null,8,["game"])):(o.openBlock(),o.createBlock(v1,{key:1,"games-per-page":v,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Ae},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):o.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},pb={class:"gsc-calendar-table"},gb={class:"gsc-switch-container"},fb={class:"gsc-app-component"};function yb(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),u=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",pb,[o.createElementVNode("div",gb,[o.createVNode(r,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),o.createElementVNode("div",fb,[s.selectedOpt=="Mi posición"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,type:1,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(u,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const bb=Ne(hb,[["render",yb],["__scopeId","data-v-6b8889ec"]]),wb={class:"match"},Sb={class:"match__header"},_b={key:0,class:"match__final-tag"},kb={key:1,class:"match__final-tag__no-border"},Cb={class:"match__tag"},Eb={class:"match__body"},Bb={class:"match__data"},xb={class:"match__acronym"},Nb=["src"],Tb={class:"match__score"},vb=["src"],Ob={class:"match__acronym"},Ab={class:"match__status"},Ao=Ne({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(a,t)=>{var n,s,i;return o.openBlock(),o.createElementBlock("section",wb,[o.createElementVNode("div",Sb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",_b,"FINAL ")):(o.openBlock(),o.createElementBlock("div",kb)),o.createElementVNode("div",Cb,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Eb,[o.createElementVNode("div",Bb,[o.createElementVNode("div",xb,o.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Nb),o.createElementVNode("div",Tb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((s=e.data)==null?void 0:s.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,vb),o.createElementVNode("div",Ob,o.toDisplayString((i=e.data)==null?void 0:i.visiting_team_acronym),1)]),o.createElementVNode("div",Ab,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=r=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-c49fa538"]]),Vb=e=>(o.pushScopeId("data-v-8a51a354"),e=e(),o.popScopeId(),e),$b={class:"match"},Ib={class:"match__header"},Pb=Vb(()=>o.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Rb={class:"match__tag"},Lb={class:"match__body"},zb={class:"match__data"},Fb={class:"match__acronym"},Mb=["src"],Db={class:"match__score"},jb=["src"],Wb={class:"match__acronym"},Ub={class:"match__status"},Pr=Ne({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("section",$b,[o.createElementVNode("div",Ib,[Pb,o.createElementVNode("div",Rb,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Lb,[o.createElementVNode("div",zb,[o.createElementVNode("div",Fb,o.toDisplayString(e.data.home_team.acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Mb),o.createElementVNode("div",Db,o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,jb),o.createElementVNode("div",Wb,o.toDisplayString(e.data.visiting_team.acronym),1)]),o.createElementVNode("div",Ub,"Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-8a51a354"]]),Hb=["src"],Gb=["src"],qb={class:"coming-match__body"},Jb={class:"coming-match__data"},Kb=["src"],Zb={style:{"margin-top":"16px"}},Xb={class:"coming-match__time"},Yb={class:"coming-match__cst"},Qb={key:0},e2=["src"],hn=Ne({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,u,c,m,h,f,d,p,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,Hb),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,Gb),o.createElementVNode("div",qb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",Jb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,Kb),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",Zb,[o.createElementVNode("div",Xb,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",Yb,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",Qb,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,e2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-a8f092d2"]]),t2=e=>(o.pushScopeId("data-v-90640930"),e=e(),o.popScopeId(),e),o2=["src"],a2=["src"],n2={class:"coming-match__body"},i2={class:"coming-match__data"},s2=["src"],r2={style:{"margin-top":"16px"}},l2={class:"coming-match__time"},c2=t2(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),d2=["src"],Rr=Ne({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,u,c,m,h,f,d,p,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,o2),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,a2),o.createElementVNode("div",n2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",i2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,s2),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",r2,[o.createElementVNode("div",l2,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),c2]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,d2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-90640930"]]);/**
28
+ */const fe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Tr={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Yy({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Qy({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function ln({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function e0({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:ln({val:r,max:t-i,min:0})}function vr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...vr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function cn({val:e,max:a,min:t=0}){return e>a?cn({val:e-(a+1),max:a,min:t}):e<t?cn({val:e+(a+1),max:a,min:t}):e}function t0(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function o0(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function a0(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var n0=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},a0(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),i0=o.defineComponent({name:"Carousel",props:Tr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},fe));let m=Object.assign({},fe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=o0(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=Yy({config:c,slidesCount:u.value}),b.value=Qy({config:c,slidesCount:u.value}),c.wrapAround||(f.value=ln({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=t0(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:ln({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=cn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:I,prev:P};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>e0({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Tr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=vr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(n0)])}}}),dn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(dn||(dn={}));const s0={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function r0(e){return e in dn}const mn=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!r0(t))return;const s=s0[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};mn.props={name:String,title:String};const l0=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:h,i18n:f}=i,d=m==="rtl",p=o.h("button",{type:"button",class:["carousel__prev",!h&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(mn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(mn,{name:d?"arrowLeft":"arrowRight"}));return[p,g]};var c0=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const De=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},d0={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},m0=De(d0,[["__scopeId","data-v-89459353"]]),u0={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"469bccd0":i.value,"469dfb50":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(h=>h.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(h=>h.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(i0),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(l0))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(c0),{key:h.key},{default:o.withCtx(()=>[o.createVNode(m0,o.mergeProps(t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},h0=De(u0,[["__scopeId","data-v-930cd509"]]);function Et(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function Or(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function p0(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const g0={class:"game-info__teams"},f0={class:"game-info__teams__team__logo"},y0=["src"],b0={class:"game-info__teams__detail"},w0={key:0,class:"game-info__teams__detail__pre-game"},S0={class:"game-info__teams__team__logo away"},_0=["src"],k0={key:0},C0={key:0},E0={key:1},B0={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,t=o.computed(()=>{const c=new Date(a.game.dateTimeMillis),m=c.getHours(),h=c.getMinutes();return`${m<10?`0${m}`:m}:${h<10?`0${h}`:h}`}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),u=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",g0,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",f0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.home_team.team_id),alt:""},null,8,y0)])],4),o.createElementVNode("div",b0,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",w0,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(u.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",S0,[o.createElementVNode("img",{src:o.unref(Et)(e.game.visiting_team.team_id),alt:""},null,8,_0)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",k0,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",C0,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",E0,o.toDisplayString(o.unref(p0)(e.game)),1))],4)],4))}},Ar=De(B0,[["__scopeId","data-v-afb1954b"]]),Vr=e=>(o.pushScopeId("data-v-8839c56d"),e=e(),o.popScopeId(),e),x0={class:"game-status"},N0={key:0,class:"game-status__day__live"},T0=Vr(()=>o.createElementVNode("span",null,"LIVE",-1)),v0=Vr(()=>o.createElementVNode("span",{class:"dot"},null,-1)),O0=[T0,v0],A0={key:0,class:"game-status__round"},V0={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",x0,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",N0,O0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",A0,o.toDisplayString(e.roundAbbreviation),1))]))}},$r=De(V0,[["__scopeId","data-v-8839c56d"]]),je={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},$0=e=>(o.pushScopeId("data-v-0d97b1a8"),e=e(),o.popScopeId(),e),P0={class:"actions"},I0={class:"actions__row"},R0=$0(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),L0=[R0],z0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F0=["fill"],M0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D0=["fill"],j0={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",P0,[o.createElementVNode("div",I0,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(je).STATISTICS))},L0,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",z0,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,F0)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",M0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,D0)]))])):o.createCommentVNode("",!0)])]))}},W0=De(j0,[["__scopeId","data-v-0d97b1a8"]]),un=e=>(o.pushScopeId("data-v-af6919bd"),e=e(),o.popScopeId(),e),U0={class:"actions"},H0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G0=["fill"],q0={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J0=["fill"],K0=un(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Z0=[K0],X0={key:0,class:"actions__videos"},Y0={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q0=["fill"],e1={key:1,class:"actions__videos__thumbnails"},t1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),o1=un(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),a1={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n1=["stroke"],i1={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const u=[];return t.componentWidth<540&&u.push("mobile"),u}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(u){a("action",u)}return(u,c)=>(o.openBlock(),o.createElementBlock("div",U0,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",H0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,G0)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=m=>l(o.unref(je).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",q0,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,J0)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=m=>l(o.unref(je).STATISTICS))},Z0,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",X0,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=m=>l(o.unref(je).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Y0,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,Q0)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",e1,[o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=m=>l(o.unref(je).PLAY_GOALS))},[t1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)]),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=m=>l(o.unref(je).PLAY_RESUME))},[o1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=m=>l(o.unref(je).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",a1,[o.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,n1)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},s1=De(i1,[["__scopeId","data-v-af6919bd"]]),Oo=e=>(o.pushScopeId("data-v-43a88f53"),e=e(),o.popScopeId(),e),r1={class:"row-landing__game-status"},l1={class:"row-landing__game-actions"},c1={class:"row-full__game-status"},d1={class:"row-full__game-info"},m1={key:0},u1={class:"row-full__game-actions"},h1={class:"game-events-container"},p1=Oo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),g1=Oo(()=>o.createElementVNode("div",null,null,-1)),f1={class:"game-events__data"},y1={class:"game-events__data__team"},b1=["src"],w1={class:"game-events__data__team__event__text"},S1={class:"game-events__data__team away"},_1={class:"game-events__data__team__event__text"},k1=["src"],C1=Oo(()=>o.createElementVNode("div",null,null,-1)),E1=Oo(()=>o.createElementVNode("div",null,null,-1)),B1={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const t=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const g={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(g.homeTeam.push(...d(t.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...d(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...d(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...d(t.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...d(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...d(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=o.computed(()=>{const g=r.value.homeTeam.length,b=r.value.awayTeam.length;return g+b>0}),u=o.computed(()=>({"background-color":t.backgroundColor})),c=o.computed(()=>({height:t.height})),m=o.computed(()=>{const g={game:[],events:[]};return t.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):t.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):t.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),h=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),f=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,g=>{i.value=g<910});function d(g,b){return g.map(S=>({iconUrl:b,text:S}))}function p(g){g===je.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:g,game:t.game})}return(g,b)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(u.value)},[o.createVNode(Ar,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",r1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",l1,[o.createVNode(W0,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:p},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(u.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",m.value.game]),style:o.normalizeStyle(c.value)},[o.createElementVNode("div",c1,[o.createVNode($r,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Or)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",d1,[o.createVNode(Ar,o.mergeProps(h.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(f.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",m1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",u1,[o.createVNode(s1,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:p},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",h1,[p1,o.createElementVNode("div",{class:o.normalizeClass(["game-events",m.value.events])},[g1,o.createElementVNode("div",f1,[o.createElementVNode("div",y1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`h${_}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:S.iconUrl},null,8,b1),o.createElementVNode("div",w1,o.toDisplayString(S.text),1)]))),128))]),o.createElementVNode("div",S1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`a${_}`,class:"game-events__data__team__event"},[o.createElementVNode("div",_1,o.toDisplayString(S.text),1),o.createElementVNode("img",{src:S.iconUrl},null,8,k1)]))),128))])]),C1,E1],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},Pr=De(B1,[["__scopeId","data-v-43a88f53"]]),x1={class:"calendar-table"},N1={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",x1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,u)=>(o.openBlock(),o.createBlock(Pr,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(u),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},T1=De(N1,[["__scopeId","data-v-47b333f0"]]),v1={class:"calendar-by-team"},O1={class:"playing-as-picker"},A1={class:"calendar-by-team__page"},V1={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.ref(0),s=o.computed(()=>{let u=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((m,[h,f])=>{const d=Number(h),p=Number.isNaN(d)?h:`Jornada ${d<10?"0":""}${d}`,g=f.reduce((b,S)=>(b.push(...S),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&m.push({roundName:p,games:g}),m},[]);u.push(c)}return u});function i(u){a("action",u)}function r(u){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=u,document.querySelector("#opc"+u).classList.add("selected")}function l(u){let c=u;switch(u){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(u,c)=>(o.openBlock(),o.createElementBlock("div",v1,[o.createElementVNode("div",O1,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=m=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=m=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=m=>r(2))},"Local")]),o.createVNode(o.unref(Nr),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:m})=>[o.createElementVNode("div",A1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(h.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.games,d=>(o.openBlock(),o.createBlock(Pr,{key:d.game_id,game:d,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},$1=De(V1,[["__scopeId","data-v-1cad2737"]]),P1="_image62Icon_1lvdf_3",I1="_imgChivasIcon_1lvdf_21",R1="_nameDesktop_1lvdf_35",L1="_nameMobile_1lvdf_61",z1="_homeTeam_1lvdf_85",F1="_sbado16De_1lvdf_107",M1="_gameDate_1lvdf_125",D1="_sab16092023_1lvdf_133",j1="_div_1lvdf_159",W1="_divscore_1lvdf_177",U1="_cst_1lvdf_197",H1="_hour_1lvdf_215",G1="_score_1lvdf_217",q1="_chivasTvCanal_1lvdf_239",J1="_gameStatus_1lvdf_263",K1="_matchInfo_1lvdf_285",Z1="_image62Icon1_1lvdf_311",X1="_name_1lvdf_35",Y1="_imgAtlasIcon_1lvdf_355",Q1="_name1_1lvdf_369",eb="_awayTeam_1lvdf_393",tb="_matchCard_1lvdf_415",ob={image62Icon:P1,imgChivasIcon:I1,nameDesktop:R1,nameMobile:L1,homeTeam:z1,sbado16De:F1,gameDate:M1,sab16092023:D1,div:j1,divscore:W1,cst:U1,hour:H1,score:G1,chivasTvCanal:q1,gameStatus:J1,matchInfo:K1,image62Icon1:Z1,name:X1,imgAtlasIcon:Y1,name1:Q1,awayTeam:eb,matchCard:tb},ab=["src"],nb=["src"],ib={key:0},sb=["src"],rb=["src"],lb={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${u[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Et)(t.value.home_team.team_id,150)},null,10,ab),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Et)(t.value.home_team.team_id)},null,10,nb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",ib," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id,150)},null,10,sb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Et)(t.value.visiting_team.team_id)},null,10,rb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},cb={$style:ob},db=De(lb,[["__cssModules",cb]]),mb={class:"calendar-by-game__carousel"},ub={components:{GscSwitchComponent:Ua,GSCGeneraltable:Rg,GSCCalendarByGame:De({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),u=o.ref({}),c=o.ref(new Map),m=o.ref(!1),h=o.ref(null),f=o.ref(null),d=o.ref(null),p=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),S=o.computed(()=>t.games?se(t.games):c.value.get(u.value.key)||[]),_=o.ref(0),O=o.ref("1"),L=o.ref([]),H=o.ref([]),ee=o.computed(()=>H.value&&H.value.length?le(i.value):W(i.value));o.watch(()=>ee.value,R=>{_.value=L.value.findIndex(N=>N===R),O.value=R}),o.watch(()=>t.seasons,R=>{R&&R.length&&(m.value=!0,s.value=R.map(N=>N.id),ie(R,!0))},{immediate:!0,deep:!0});function W(R){const N=Object.entries(Object.entries(R).reduce((P,[z,F])=>(P[z]=[],F.forEach(Z=>{Z.games.forEach(ne=>{const ce=new Date(ne.date_time_utc).getTime()+66e5;P[z].push(ce)})}),P),{}));if(!N.length)return"1";const v=new Date().getTime(),I=N.reduce((P,[z,F])=>{let Z=null;return F.forEach(ne=>{const ce=ne-v;ce>=0&&(Z===null||ce<Z)&&(Z=ce)}),Z&&(P.shortestTime===null||Z<P.shortestTime)&&(P.round=z,P.shortestTime=Z),P},{round:"",shortestTime:null});return I.shortestTime!==null?I.round:N[N.length-1][0]}function le(R){let N=1;if(H.value.length){const v=H.value[0];for(const[I,P]of Object.entries(R))for(const z of P)if(z.games.find(F=>F.game_id===v.game_id))return I}return N}o.watch(()=>t.teamId,()=>{U()},{immediate:!0});async function $(R,N,v=""){let I=v;try{const P={};t.token&&(P.Authorization=t.token),I||(I="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",R.forEach((Z,ne)=>{I+=`${ne===0?"":"&"}seasons=${Z}`}));const{data:{data:z,teams:F}}=await Cr.get(I,{headers:P});return{seasonsAndGames:z,seasonsAndTeams:F}}catch(P){if(N>0)return $(R,N-1,I);throw new Error(P)}}function ae(R){for(const N of R)if(!s.value.includes(N.season_id))return!0;return!1}async function ie(R,N){try{i.value={};let v=0;const{seasonsAndGames:I,seasonsAndTeams:P}=await $(R.map(F=>F.id),3);if(N&&ae(I))return;I.forEach(F=>{const{type:Z}=R.find(ne=>ne.id===F.season_id);F.type=Z,F.games.forEach(ne=>{ne.season_id=F.season_id}),Z===0&&(v=F.season_id)}),h.value={seasonsGames:I};const{teams:z}=P.find(F=>F.season_id===v);f.value=z,a("change-teams",z),U()}catch(v){throw new Error(v)}}function U(){if(!f.value)return;H.value=[];const R=h.value&&h.value.seasonsGames?h.value.seasonsGames.map(N=>{const v=N.games.reduce((I,P)=>{const z={...P};return z.dateTimeMillis=new Date(z.date_time_utc).valueOf(),z.home_team=f.value.find(F=>F.team_id===P.home_team),z.visiting_team=f.value.find(F=>F.team_id===P.visiting_team),t.teamId&&z.home_team.team_id!==t.teamId&&z.visiting_team.team_id!==t.teamId||(I[P.matchday_abbreviation]?I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date]?I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date].push(z):I[P.matchday_abbreviation][P.game_status===3?"canceled":P.date]=[z]:I[P.matchday_abbreviation]={[P.game_status===3?"canceled":P.date]:[z]},t.userTeamId&&z.game_status===4&&(z.home_team.team_id===t.userTeamId||z.visiting_team.team_id===t.userTeamId)&&H.value.push(z)),I},{});for(let[I,P]of Object.entries(v))v[I]=Object.entries(P).map(([z,F])=>({date:z,games:F.sort((Z,ne)=>Z.dateTimeMillis-ne.dateTimeMillis)})),v[I].sort((z,F)=>z.date<F.date?-1:z.date>F.date?1:0);return{type:N.type,weight:N.type===0?0:N.type===2?1:2,schedule:v}}):[];R.sort((N,v)=>N.weight-v.weight),i.value=R.reduce((N,v)=>{for(const[I,P]of Object.entries(v.schedule))if(v.type===0)if(p.value){const z=I.replace("M",""),F=z;g.value?N[Xy[z]||F]=P:N[Zy[I]||F]=P}else N[Number(I.replace("M","")).toString()]=P;else v.type===2?I.charAt(1)=="I"?N[`PI${Number(I.replace("PI",""))}`]=P:N[`R${Number(I.replace("PO",""))}`]=P:v.type===1&&(N[Ky[I]]=P);return N},{}),c.value=new Map,L.value=Array.from(Object.entries(i.value).reduce((N,[v,I],P)=>{const z=Number(v);let F="";Number.isNaN(z)?F=v:F=z<10?`0${z}`:v,N.set(v,{key:v,value:z,valueText:F,index:P});const Z=I.reduce((ce,Be)=>(Be.games.forEach(xe=>{xe.game_id===t.defaultGameId&&(d.value=v),xe.roundAbbreviation=Number.isNaN(z)?z:`J ${z}`}),ce=ce.concat(Be.games),ce),[]),ne=se(Z);return c.value.set(v,ne),N},new Map).values())}function se(R){const N=[];if(t.gamesPerMatchDay>0){let v=[];R.forEach((I,P)=>{v.push(I),(P+1)%t.gamesPerMatchDay===0&&(N.push([...v]),v=[])}),v.length&&N.push([...v])}else N.push(R);return N}async function de(R){try{const{data:N}=await Cr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return N}catch(N){if(R>0)return de(R-1);throw new Error(N)}}function Ue(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(R){u.value=R,a("change-round",R)}function $e(R){t.areGamesCarouselType&&a("change-game-carousel",R.selectedItem)}function Ae(R){a("action",R),Pe(R)}function Pe(R){const N="PLAY_RESUME",v="PLAY_GOALS",I=[607,608,12,55,54,35,14,52,15,53,466,477],P=[12,55,"35_r","54_r"],{game_id:z,season_id:F}=R.game;let Z={seasonId:F,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[z],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};R.action===N?(Z.categoryIds=I,Z.advancedFilter.playListTitle="Resumen",a("openmedia",Z)):R.action===v&&(Z.categoryIds=P,Z.advancedFilter.playListTitle="Goles",a("openmedia",Z))}async function Ie(){try{if(!t.awaitForSeasons&&!t.games){const R=(await de(3)).find(I=>I._id===1),N=R.seasons[0],v=[{id:N.id,type:N.type}];R&&R.tournament&&a("tournament-selected",R.tournament),N.related_seasons&&N.related_seasons.length&&v.push(...N.related_seasons.map(I=>({id:I.id,type:I.type}))),await ie(v,!1)}}catch(R){throw new Error(R)}}return o.onMounted(()=>{Ue()}),Ie(),(R,N)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock($1,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Ae},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&L.value?(o.openBlock(),o.createBlock(h0,{key:0,"match-days":L.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":d.value,"closest-match-day":e.sortCalendar?ee.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",mb,[S.value?(o.openBlock(),o.createBlock(o.unref(Nr),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?S.value[0]:S.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:$e},{default:o.withCtx(({item:v})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(db,{key:0,game:v},null,8,["game"])):(o.openBlock(),o.createBlock(T1,{key:1,"games-per-page":v,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Ae},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):o.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-94228d1d"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},hb={class:"gsc-calendar-table"},pb={class:"gsc-switch-container"},gb={class:"gsc-app-component"};function fb(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),u=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",hb,[o.createElementVNode("div",pb,[o.createVNode(r,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),o.createElementVNode("div",gb,[s.selectedOpt=="Mi posición"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,type:1,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(u,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const yb=Ne(ub,[["render",fb],["__scopeId","data-v-13490dc5"]]),bb={class:"match"},wb={class:"match__header"},Sb={key:0,class:"match__final-tag"},_b={key:1,class:"match__final-tag__no-border"},kb={class:"match__tag"},Cb={class:"match__body"},Eb={class:"match__data"},Bb={class:"match__acronym"},xb=["src"],Nb={class:"match__score"},Tb=["src"],vb={class:"match__acronym"},Ob={class:"match__status"},Ao=Ne({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){return(a,t)=>{var n,s,i;return o.openBlock(),o.createElementBlock("section",bb,[o.createElementVNode("div",wb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",Sb,"FINAL ")):(o.openBlock(),o.createElementBlock("div",_b)),o.createElementVNode("div",kb,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Cb,[o.createElementVNode("div",Eb,[o.createElementVNode("div",Bb,o.toDisplayString((n=e.data)==null?void 0:n.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,xb),o.createElementVNode("div",Nb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((s=e.data)==null?void 0:s.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Tb),o.createElementVNode("div",vb,o.toDisplayString((i=e.data)==null?void 0:i.visiting_team_acronym),1)]),o.createElementVNode("div",Ob,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=r=>a.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-2726361c"]]),Ab=e=>(o.pushScopeId("data-v-35c7c5a4"),e=e(),o.popScopeId(),e),Vb={class:"match"},$b={class:"match__header"},Pb=Ab(()=>o.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),Ib={class:"match__tag"},Rb={class:"match__body"},Lb={class:"match__data"},zb={class:"match__acronym"},Fb=["src"],Mb={class:"match__score"},Db=["src"],jb={class:"match__acronym"},Wb={class:"match__status"},Ir=Ne({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("section",Vb,[o.createElementVNode("div",$b,[Pb,o.createElementVNode("div",Ib,o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),o.createElementVNode("div",Rb,[o.createElementVNode("div",Lb,[o.createElementVNode("div",zb,o.toDisplayString(e.data.home_team.acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Fb),o.createElementVNode("div",Mb,o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,Db),o.createElementVNode("div",jb,o.toDisplayString(e.data.visiting_team.acronym),1)]),o.createElementVNode("div",Wb,"Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),o.createElementVNode("div",{class:"match__button",onClick:t[0]||(t[0]=n=>a.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-35c7c5a4"]]),Ub=["src"],Hb=["src"],Gb={class:"coming-match__body"},qb={class:"coming-match__data"},Jb=["src"],Kb={style:{"margin-top":"16px"}},Zb={class:"coming-match__time"},Xb={class:"coming-match__cst"},Yb={key:0},Qb=["src"],hn=Ne({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,u,c,m,h,f,d,p,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,Ub),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,Hb),o.createElementVNode("div",Gb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",qb,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,Jb),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",Kb,[o.createElementVNode("div",Zb,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",Xb,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",Yb,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Qb)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-1aa7fa40"]]),e2=e=>(o.pushScopeId("data-v-4437758a"),e=e(),o.popScopeId(),e),t2=["src"],o2=["src"],a2={class:"coming-match__body"},n2={class:"coming-match__data"},i2=["src"],s2={style:{"margin-top":"16px"}},r2={class:"coming-match__time"},l2=e2(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),c2=["src"],Rr=Ne({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,u,c,m,h,f,d,p,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,t2),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,o2),o.createElementVNode("div",a2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),o.createElementVNode("div",n2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,i2),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",s2,[o.createElementVNode("div",r2,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((m=e.data)==null?void 0:m.score[0])+" - "+o.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),l2]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((d=e.data)==null?void 0:d.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,c2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4437758a"]]);/**
29
29
  * Vue 3 Carousel 0.3.1
30
30
  * (c) 2023
31
31
  * @license MIT
32
- */const ye={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Lr={itemsToShow:{default:ye.itemsToShow,type:Number},itemsToScroll:{default:ye.itemsToScroll,type:Number},wrapAround:{default:ye.wrapAround,type:Boolean},throttle:{default:ye.throttle,type:Number},snapAlign:{default:ye.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ye.transition,type:Number},breakpoints:{default:ye.breakpoints,type:Object},autoplay:{default:ye.autoplay,type:Number},pauseAutoplayOnHover:{default:ye.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ye.mouseDrag,type:Boolean},touchDrag:{default:ye.touchDrag,type:Boolean},dir:{default:ye.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ye.i18n,type:Object},settings:{default(){return{}},type:Object}};function m2({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function u2({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function pn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function h2({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:pn({val:r,max:t-i,min:0})}function zr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...zr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function gn({val:e,max:a,min:t=0}){return e>a?gn({val:e-(a+1),max:a,min:t}):e<t?gn({val:e+(a+1),max:a,min:t}):e}function p2(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function g2(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function f2(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var y2=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ye))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},f2(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),b2=o.defineComponent({name:"Carousel",props:Lr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ye));let m=Object.assign({},ye),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=g2(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=m2({config:c,slidesCount:u.value}),b.value=u2({config:c,slidesCount:u.value}),c.wrapAround||(f.value=pn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Pe(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Ie,!0)))}const Ae=p2(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Ie(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Ie,!0)}function Pe(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||P()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Pe()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:pn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=gn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function P(){v(f.value+c.itemsToScroll)}function I(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:P,prev:I};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>h2({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Lr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:P,prev:I,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:P,prev:I,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=zr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(y2)])}}}),fn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(fn||(fn={}));const w2={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function S2(e){return e in fn}const yn=e=>{const a=o.inject("config",o.reactive(Object.assign({},ye))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!S2(t))return;const s=w2[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};yn.props={name:String,title:String};const _2=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},ye))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:h,i18n:f}=i,d=m==="rtl",p=o.h("button",{type:"button",class:["carousel__prev",!h&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(yn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(yn,{name:d?"arrowLeft":"arrowRight"}));return[p,g]};var k2=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ye))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const C2=Ne({__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},[["__scopeId","data-v-89459353"]]),Fr=Ne({__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},disableMatchdays:{type:Boolean,default:!1},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"6dc1777e":i.value,"6dc0603e":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(h=>h.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(h=>h.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),t.disableMatchdays?c.avaible==!0&&(l.value=c,a("change-match-day",l.value)):(l.value=c,a("change-match-day",l.value))}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(b2),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(_2))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(k2),{key:h.key},{default:o.withCtx(()=>[o.createVNode(C2,o.mergeProps({style:e.disableMatchdays&&!h.avaible?"opacity: 0.6 !important; cursor: default !important;":""},t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["style","match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},[["__scopeId","data-v-39d33c84"]]),E2=e=>(o.pushScopeId("data-v-ff4a2f0d"),e=e(),o.popScopeId(),e),B2={class:"quadrant-matches"},x2={class:"quadrant-matches__header"},N2={class:"quadrant-matches__title"},T2=E2(()=>o.createElementVNode("span",null," →",-1)),v2={key:0,class:"quadrant-matches__body"},O2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},A2={class:"quadrant-matches__body matches"},V2={key:0,class:"quadrant-matches__body"},$2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},I2=Ne({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},emits:["change-match-day","change-is-league-selected"],setup(e,{emit:a}){const t=e,n=o.ref(!1);o.computed(()=>t.comingMatches[0]||{}),o.computed(()=>t.previousMatches[0]||{});const s=o.toRef(t,"componentWidth"),i=o.computed(()=>s.value<768);function r(l){a("change-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("section",B2,[o.createElementVNode("div",x2,[o.createElementVNode("h2",N2,o.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),o.createCommentVNode("",!0),o.createElementVNode("button",{class:"quadrant-matches__button",onClick:u[0]||(u[0]=c=>l.$emit("clickCalendar"))},[o.createElementVNode("span",null,o.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),T2])]),(e.isFull||n.value)&&e.tournamentScheduleKeys&&e.tournamentScheduleKeys.length?(o.openBlock(),o.createBlock(Fr,{key:0,height:"48px","match-days":e.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"component-width":"100%","default-match-day-key":e.defaultMatchDayKey,onChangeMatchDay:r},null,8,["match-days","default-match-day-key"])):o.createCommentVNode("",!0),!e.isFull&&!n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",O2,[o.createVNode(hn,{small:"",data:e.data.data.prematch,onClickMatch:u[4]||(u[4]=c=>l.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[5]||(u[5]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[6]||(u[6]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",v2,[o.createVNode(hn,{data:e.data.data.prematch,onClickMatch:u[1]||(u[1]=c=>l.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[2]||(u[2]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[3]||(u[3]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):o.createCommentVNode("",!0)],64))],64)):e.data?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[e.data.length>1?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",A2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.data,(c,m)=>(o.openBlock(),o.createBlock(hn,{key:m,data:c,small:"",onClickMatch:h=>l.$emit("clickMatch",c)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",$2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[9]||(u[9]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Pr,{key:1,data:e.data[0],onClickMatch:u[10]||(u[10]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",V2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[7]||(u[7]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Pr,{key:1,data:e.data[0],onClickMatch:u[8]||(u[8]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))],64))],64)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-ff4a2f0d"]]),P2={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("main",null,[o.createVNode(I2,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,"has-team":!e.isplayer,"tournament-schedule-keys":e.tournamentScheduleKeys,"default-match-day-key":e.defaultMatchDayKey,onClickCalendar:t[0]||(t[0]=n=>a.$emit("clickCalendar")),onClickMatch:t[1]||(t[1]=n=>a.$emit("clickMatch",n)),onChangeMatchDay:t[2]||(t[2]=n=>a.$emit("change-match-day",n)),onChangeIsLeagueSelected:t[3]||(t[3]=n=>a.$emit("change-is-league-selected",n))},null,8,["data","component-width","is-full","has-team","tournament-schedule-keys","default-match-day-key"])]))}},R2="_toniKroos_1mxz1_35",L2="_centralMidfielder_1mxz1_55",z2="_icnPlayIcon_1mxz1_75",F2="_verVideos_1mxz1_89",M2="_btnVideosOptions_1mxz1_109",D2="_btnVideosOptionsTeams_1mxz1_139",j2="_info_1mxz1_179",W2="_goalUnlock_1mxz1_203",U2="_teamsAmerica_1mxz1_229",H2="_imageIcon_1mxz1_249",G2="_imageIconTeam_1mxz1_271",q2="_playerTops_1mxz1_295",J2={toniKroos:R2,centralMidfielder:L2,icnPlayIcon:z2,verVideos:F2,btnVideosOptions:M2,btnVideosOptionsTeams:D2,info:j2,goalUnlock:W2,teamsAmerica:U2,imageIcon:H2,imageIconTeam:G2,playerTops:q2},K2=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Z2={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"80px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},isPlayer:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},X2=["src"],Y2=["src"],Q2=["src"];function ew(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(e.$style.playerTops),style:o.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=r=>i.onPlayerTopsClick(t.data.player_id))},[o.createElementVNode("div",{class:o.normalizeClass(e.$style.info)},[o.createElementVNode("h3",{class:o.normalizeClass(e.$style.toniKroos),style:o.normalizeStyle(i.customNamePlayer)},o.toDisplayString(t.data.player_name),7),t.showPositionPlayer?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.$style.centralMidfielder),style:o.normalizeStyle(i.customNamePosition)},o.toDisplayString(t.data.player_position),7)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:o.normalizeStyle(i.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=r=>i.onButtonVideos(t.data))},[t.showIconVideo?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.icnPlayIcon),src:t.iconPlay},null,10,X2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(e.$style.verVideos),style:o.normalizeStyle(i.customTotal)},o.toDisplayString(t.data.player_stat)+" "+o.toDisplayString(t.data.category),7)],6)],2),o.createElementVNode("b",{style:o.normalizeStyle(i.customNumberTop),class:o.normalizeClass(e.$style.goalUnlock)},o.toDisplayString(t.data.top),7),t.showShieldTeam?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.teamsAmerica),style:o.normalizeStyle(i.customShieldTeam),loading:"lazy",src:t.data.team_logo},null,14,Y2)):o.createCommentVNode("",!0),o.createElementVNode("img",{style:o.normalizeStyle(i.customPhotoPlayerOrTeam),class:o.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:t.data.player_photo},null,14,Q2)],6)}const tw={$style:J2},ow=K2(Z2,[["render",ew],["__cssModules",tw]]),aw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},bn={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))}}},Mr=()=>{o.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}))},Dr=bn.setup;bn.setup=Dr?(e,a)=>(Mr(),Dr(e,a)):Mr;const nw=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),iw=["src"],sw={key:1,class:"text"},rw=["src"],lw={class:"stats"},cw=nw(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),dw={class:"numstats"},mw={class:"leyend"};function uw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,iw)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",sw,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,rw)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",lw,[cw,o.createElementVNode("div",dw,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",mw,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const jr=aw(bn,[["render",uw],["__scopeId","data-v-fb269a1e"]]);function hw(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const wn={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-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Wr=()=>{o.useCssVars(e=>({"2bf57034":e.backgroundColor,b8f32872:e.widthCircle,23023166:e.heightCircle}))},Ur=wn.setup;wn.setup=Ur?(e,a)=>(Wr(),Ur(e,a)):Wr;const pw={key:0,class:"text-left"},gw=["width","src"],fw=["checked"],yw=["width","src"],bw={key:3,class:"text-right"};function ww(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{class:"gsc-switch-radio",style:o.normalizeStyle(i.customText)},[t.textOptionLeft!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",pw,o.toDisplayString(t.textOptionLeft),1)):o.createCommentVNode("",!0),t.iconA!=""?(o.openBlock(),o.createElementBlock("img",{key:1,width:t.widthIcons,src:t.iconA},null,8,gw)):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,fw),o.createElementVNode("label",{for:"toggle-btn",style:o.normalizeStyle([i.customStyle,{"--circle-color":t.circleColorSwitch}])},null,4),t.iconB!=""?(o.openBlock(),o.createElementBlock("img",{key:2,width:t.widthIcons,src:t.iconB},null,8,yw)):o.createCommentVNode("",!0),t.textOptionRight!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",bw,o.toDisplayString(t.textOptionRight),1)):o.createCommentVNode("",!0)],4)}const Sn={components:{GSCSlider:Vt,GSCMosaicthebest:ow,GscSwitchComponent:Ua,GSCButton:jr,GSCRadioToggle:Ne(wn,[["render",ww],["__scopeId","data-v-c2ae0cf9"]])},setup(){const e=o.ref("myDivRef"),{elementSize:a}=hw(e);return{myDivRef:e,elementSize:a}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const t=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,t)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,filterSelected:1,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{formatPlayerName(e){var n;const a=e.split(",");let t="";if(a[1]&&(t=`${a[1].trim()[0]}.`,a[0])){const s=(n=a[0])==null?void 0:n.trim().split(" ");for(let i of s)if(t=`${t} ${i.trim()}`,i.trim().length>3)break}return t},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),t=2,n=3;let s=[],i=0,r=0;this.isTeam?(i=e.player_id,r=n):(s=[e.player_id],r=t);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:s,goalkeeperIds:[],categoryIds:a,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(t=>t.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,t=0){try{let i={},r={},l=[];const u=re.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await u.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await u.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[3],i[c[0]].abrv=c[2],i[c[0]].logo=c[3]}),n.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var s=1;n.data.tops.map(c=>{l[c.category?c.category:s]={};var m={},h={};c.teams.map(p=>{m[p[0]]={},m[p[0]].total=p[1],m[p[0]].id=i[p[0]].id,m[p[0]].name=i[p[0]].name,m[p[0]].img="https://az755631.vo.msecnd.net/teams-150/"+p[0]+".png",m[p[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+p[0]+".png"}),c.players.map(p=>{h[p[0]]={},h[p[0]].total=p[1],h[p[0]].name=r[p[0]].name,h[p[0]].img=r[p[0]].img.replace("players-profile/","players-profile/"),h[p[0]].id=r[p[0]].id,h[p[0]].position=this.positions[r[p[0]].position-1].name,h[p[0]].logo=r[p[0]].logo});var f=[],d=[];for(const p in m)f.push(m[p]);for(const p in h)d.push(h[p]);f.sort((p,g)=>p.total<g.total?1:-1),d.sort((p,g)=>p.total<g.total?1:-1),l[c.category?c.category:s].top__players=d,l[c.category?c.category:s].top__teams=f,s++})}t===0?this.categorySelected=1:this.categorySelected=t,this.categoryData=l}catch(i){return Promise.reject(i)}}}},Hr=()=>{o.useCssVars(e=>({"7a5b0a28":e.backgroundColor,"292ba61c":e.fontFamily,"510c78b9":e.fontSize,"60b8a4aa":e.fontColor,d5d221be:e.marginMosaic}))},Gr=Sn.setup;Sn.setup=Gr?(e,a)=>(Hr(),Gr(e,a)):Hr;const Sw=e=>(o.pushScopeId("data-v-a5fb54bf"),e=e(),o.popScopeId(),e),_w={class:"gsc-best",ref:"myDivRef"},kw={class:"gsc-best__line-bar-tools"},Cw={key:0,class:"gsc-best__line-bar-tools__title"},Ew=Sw(()=>o.createElementVNode("span",null,"Los mejores ",-1)),Bw={key:1,class:"gsc-best__line-bar-tools__titlefull"},xw={class:"unit-items"},Nw={key:2,class:"gsc-best__line-bar-tools__tools"},Tw={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},vw={class:"gsc-best__line-bar-tools__tools__btn"},Ow={key:0,class:"gsc-best__line-bar-tools-movil"},Aw={class:"gsc-best__line-bar-tools-movil__tabs"},Vw={class:"gsc-best__categories"},$w={class:"gsc-best__players"};function Iw(e,a,t,n,s,i){const r=o.resolveComponent("GSCRadioToggle"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("GscSwitchComponent"),c=o.resolveComponent("GSCMosaicthebest"),m=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",_w,[o.createElementVNode("div",kw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Cw,[Ew,e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Bw,[o.createElementVNode("span",{style:o.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),o.createElementVNode("span",xw,[e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0),o.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])])])):o.createCommentVNode("",!0),n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Nw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Tw,[o.createVNode(u,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):o.createCommentVNode("",!0),o.createElementVNode("div",vw,[o.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),o.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):o.createCommentVNode("",!0)]),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Ow,[o.createElementVNode("div",Aw,[o.createVNode(u,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType},null,8,["selected-option","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",Vw,[o.createVNode(u,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),o.createElementVNode("div",$w,[o.createVNode(m,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.topData,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[o.createVNode(c,{data:{player_id:h.id,player_name:this.isTeam?h.name:i.formatPlayerName(h.name),player_position:h.position,player_stat:h.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const Pw=Ne(Sn,[["render",Iw],["__scopeId","data-v-a5fb54bf"]]);/**
32
+ */const ye={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Lr={itemsToShow:{default:ye.itemsToShow,type:Number},itemsToScroll:{default:ye.itemsToScroll,type:Number},wrapAround:{default:ye.wrapAround,type:Boolean},throttle:{default:ye.throttle,type:Number},snapAlign:{default:ye.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ye.transition,type:Number},breakpoints:{default:ye.breakpoints,type:Object},autoplay:{default:ye.autoplay,type:Number},pauseAutoplayOnHover:{default:ye.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ye.mouseDrag,type:Boolean},touchDrag:{default:ye.touchDrag,type:Boolean},dir:{default:ye.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ye.i18n,type:Object},settings:{default(){return{}},type:Object}};function d2({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function m2({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function pn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function u2({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:pn({val:r,max:t-i,min:0})}function zr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...zr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function gn({val:e,max:a,min:t=0}){return e>a?gn({val:e-(a+1),max:a,min:t}):e<t?gn({val:e+(a+1),max:a,min:t}):e}function h2(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function p2(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function g2(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var f2=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},ye))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},g2(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),y2=o.defineComponent({name:"Carousel",props:Lr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},ye));let m=Object.assign({},ye),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=p2(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=d2({config:c,slidesCount:u.value}),b.value=m2({config:c,slidesCount:u.value}),c.wrapAround||(f.value=pn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=h2(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:pn({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=gn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:I,prev:P};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>u2({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(Lr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=zr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(f2)])}}}),fn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(fn||(fn={}));const b2={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function w2(e){return e in fn}const yn=e=>{const a=o.inject("config",o.reactive(Object.assign({},ye))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!w2(t))return;const s=b2[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};yn.props={name:String,title:String};const S2=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},ye))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),u=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:m,wrapAround:h,i18n:f}=i,d=m==="rtl",p=o.h("button",{type:"button",class:["carousel__prev",!h&&u.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(yn,{name:d?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&u.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(yn,{name:d?"arrowLeft":"arrowRight"}));return[p,g]};var _2=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},ye))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const k2=Ne({__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:u[0]||(u[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},[["__scopeId","data-v-687d929a"]]),Fr=Ne({__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},disableMatchdays:{type:Boolean,default:!1},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({b8e14e64:i.value,b8e37ce4:r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const m=t.matchDays.find(h=>h.key===c);u(m||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const m=c.find(h=>h.key===t.defaultMatchDayKey);l.value=m||c[0],a("change-match-day",l.value)}},{immediate:!0});function u(c,m=!1){m&&n.value.slideTo(c.index),t.disableMatchdays?c.avaible==!0&&(l.value=c,a("change-match-day",l.value)):(l.value=c,a("change-match-day",l.value))}return(c,m)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(y2),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(S2))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(_2),{key:h.key},{default:o.withCtx(()=>[o.createVNode(k2,o.mergeProps({style:e.disableMatchdays&&!h.avaible?"opacity: 0.6 !important; cursor: default !important;":""},t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:u}),null,16,["style","match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},[["__scopeId","data-v-550c3b5d"]]),C2=e=>(o.pushScopeId("data-v-87a30837"),e=e(),o.popScopeId(),e),E2={class:"quadrant-matches"},B2={class:"quadrant-matches__header"},x2={class:"quadrant-matches__title"},N2=C2(()=>o.createElementVNode("span",null," →",-1)),T2={key:0,class:"quadrant-matches__body"},v2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},O2={class:"quadrant-matches__body matches"},A2={key:0,class:"quadrant-matches__body"},V2={class:"quadrant-matches__body",style:{"column-gap":"16px"}},$2=Ne({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},emits:["change-match-day","change-is-league-selected"],setup(e,{emit:a}){const t=e,n=o.ref(!1);o.computed(()=>t.comingMatches[0]||{}),o.computed(()=>t.previousMatches[0]||{});const s=o.toRef(t,"componentWidth"),i=o.computed(()=>s.value<768);function r(l){a("change-match-day",l)}return(l,u)=>(o.openBlock(),o.createElementBlock("section",E2,[o.createElementVNode("div",B2,[o.createElementVNode("h2",x2,o.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),o.createCommentVNode("",!0),o.createElementVNode("button",{class:"quadrant-matches__button",onClick:u[0]||(u[0]=c=>l.$emit("clickCalendar"))},[o.createElementVNode("span",null,o.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),N2])]),(e.isFull||n.value)&&e.tournamentScheduleKeys&&e.tournamentScheduleKeys.length?(o.openBlock(),o.createBlock(Fr,{key:0,height:"48px","match-days":e.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"component-width":"100%","default-match-day-key":e.defaultMatchDayKey,onChangeMatchDay:r},null,8,["match-days","default-match-day-key"])):o.createCommentVNode("",!0),!e.isFull&&!n.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",v2,[o.createVNode(hn,{small:"",data:e.data.data.prematch,onClickMatch:u[4]||(u[4]=c=>l.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[5]||(u[5]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[6]||(u[6]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",T2,[o.createVNode(hn,{data:e.data.data.prematch,onClickMatch:u[1]||(u[1]=c=>l.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),e.data.data.postmatch&&e.data.data.postmatch.game_status&&e.data.data.postmatch.game_status!==4?(o.openBlock(),o.createBlock(Ao,{key:0,data:e.data.data.postmatch,onClickMatch:u[2]||(u[2]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])):(o.openBlock(),o.createBlock(Ao,{key:1,"info-type":"prematch",data:e.data.data.postmatch,onClickMatch:u[3]||(u[3]=c=>l.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"]))])):o.createCommentVNode("",!0)],64))],64)):e.data?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[e.data.length>1?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",O2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.data,(c,m)=>(o.openBlock(),o.createBlock(hn,{key:m,data:c,small:"",onClickMatch:h=>l.$emit("clickMatch",c)},null,8,["data","onClickMatch"]))),128))])]),_:1})):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Object.keys(e.data).length>0?(o.openBlock(),o.createBlock(o.unref(Vt),{key:0,pxScroll:348,"background-color":"none",scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsContainerBgR:"linear-gradient(270deg, rgba(13,29,41,0) 100%, rgba(13,29,41,1) 100%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[o.createElementVNode("div",V2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[9]||(u[9]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ir,{key:1,data:e.data[0],onClickMatch:u[10]||(u[10]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[Object.keys(e.data).length>0?(o.openBlock(),o.createElementBlock("div",A2,[e.data[0].game_status==4?(o.openBlock(),o.createBlock(Rr,{key:0,data:e.data[0],onClickMatch:u[7]||(u[7]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0),e.data[0].game_status!=4?(o.openBlock(),o.createBlock(Ir,{key:1,data:e.data[0],onClickMatch:u[8]||(u[8]=c=>l.$emit("clickMatch",e.data[0]))},null,8,["data"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))],64))],64)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-87a30837"]]),P2={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}},tournamentScheduleKeys:{type:Array,default:()=>[]},defaultMatchDayKey:{type:String,default:""}},setup(e){return(a,t)=>(o.openBlock(),o.createElementBlock("main",null,[o.createVNode($2,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,"has-team":!e.isplayer,"tournament-schedule-keys":e.tournamentScheduleKeys,"default-match-day-key":e.defaultMatchDayKey,onClickCalendar:t[0]||(t[0]=n=>a.$emit("clickCalendar")),onClickMatch:t[1]||(t[1]=n=>a.$emit("clickMatch",n)),onChangeMatchDay:t[2]||(t[2]=n=>a.$emit("change-match-day",n)),onChangeIsLeagueSelected:t[3]||(t[3]=n=>a.$emit("change-is-league-selected",n))},null,8,["data","component-width","is-full","has-team","tournament-schedule-keys","default-match-day-key"])]))}},I2="_toniKroos_1mxz1_35",R2="_centralMidfielder_1mxz1_55",L2="_icnPlayIcon_1mxz1_75",z2="_verVideos_1mxz1_89",F2="_btnVideosOptions_1mxz1_109",M2="_btnVideosOptionsTeams_1mxz1_139",D2="_info_1mxz1_179",j2="_goalUnlock_1mxz1_203",W2="_teamsAmerica_1mxz1_229",U2="_imageIcon_1mxz1_249",H2="_imageIconTeam_1mxz1_271",G2="_playerTops_1mxz1_295",q2={toniKroos:I2,centralMidfielder:R2,icnPlayIcon:L2,verVideos:z2,btnVideosOptions:F2,btnVideosOptionsTeams:M2,info:D2,goalUnlock:j2,teamsAmerica:W2,imageIcon:U2,imageIconTeam:H2,playerTops:G2},J2=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},K2={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"80px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},isPlayer:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},Z2=["src"],X2=["src"],Y2=["src"];function Q2(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(e.$style.playerTops),style:o.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:a[1]||(a[1]=r=>i.onPlayerTopsClick(t.data.player_id))},[o.createElementVNode("div",{class:o.normalizeClass(e.$style.info)},[o.createElementVNode("h3",{class:o.normalizeClass(e.$style.toniKroos),style:o.normalizeStyle(i.customNamePlayer)},o.toDisplayString(t.data.player_name),7),t.showPositionPlayer?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.$style.centralMidfielder),style:o.normalizeStyle(i.customNamePosition)},o.toDisplayString(t.data.player_position),7)):o.createCommentVNode("",!0),o.createElementVNode("button",{class:o.normalizeClass(this.isPlayer?e.$style.btnVideosOptions:e.$style.btnVideosOptionsTeams),style:o.normalizeStyle(i.customTotalCont),id:"button-actions",onClick:a[0]||(a[0]=r=>i.onButtonVideos(t.data))},[t.showIconVideo?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.icnPlayIcon),src:t.iconPlay},null,10,Z2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(e.$style.verVideos),style:o.normalizeStyle(i.customTotal)},o.toDisplayString(t.data.player_stat)+" "+o.toDisplayString(t.data.category),7)],6)],2),o.createElementVNode("b",{style:o.normalizeStyle(i.customNumberTop),class:o.normalizeClass(e.$style.goalUnlock)},o.toDisplayString(t.data.top),7),t.showShieldTeam?(o.openBlock(),o.createElementBlock("img",{key:0,class:o.normalizeClass(e.$style.teamsAmerica),style:o.normalizeStyle(i.customShieldTeam),loading:"lazy",src:t.data.team_logo},null,14,X2)):o.createCommentVNode("",!0),o.createElementVNode("img",{style:o.normalizeStyle(i.customPhotoPlayerOrTeam),class:o.normalizeClass(this.isPlayer?e.$style.imageIcon:e.$style.imageIconTeam),loading:"lazy",src:t.data.player_photo},null,14,Y2)],6)}const ew={$style:q2},tw=J2(K2,[["render",Q2],["__cssModules",ew]]),ow=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},bn={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))}}},Mr=()=>{o.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}))},Dr=bn.setup;bn.setup=Dr?(e,a)=>(Mr(),Dr(e,a)):Mr;const aw=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),nw=["src"],iw={key:1,class:"text"},sw=["src"],rw={class:"stats"},lw=aw(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),cw={class:"numstats"},dw={class:"leyend"};function mw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,nw)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",iw,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,sw)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",rw,[lw,o.createElementVNode("div",cw,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",dw,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const jr=ow(bn,[["render",mw],["__scopeId","data-v-fb269a1e"]]);function uw(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const wn={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-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Wr=()=>{o.useCssVars(e=>({"5d15d746":e.backgroundColor,"0bc50bbe":e.widthCircle,"7ad0df62":e.heightCircle}))},Ur=wn.setup;wn.setup=Ur?(e,a)=>(Wr(),Ur(e,a)):Wr;const hw={key:0,class:"text-left"},pw=["width","src"],gw=["checked"],fw=["width","src"],yw={key:3,class:"text-right"};function bw(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{class:"gsc-switch-radio",style:o.normalizeStyle(i.customText)},[t.textOptionLeft!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",hw,o.toDisplayString(t.textOptionLeft),1)):o.createCommentVNode("",!0),t.iconA!=""?(o.openBlock(),o.createElementBlock("img",{key:1,width:t.widthIcons,src:t.iconA},null,8,pw)):o.createCommentVNode("",!0),o.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...r)=>i.handleSwitchChange&&i.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,gw),o.createElementVNode("label",{for:"toggle-btn",style:o.normalizeStyle([i.customStyle,{"--circle-color":t.circleColorSwitch}])},null,4),t.iconB!=""?(o.openBlock(),o.createElementBlock("img",{key:2,width:t.widthIcons,src:t.iconB},null,8,fw)):o.createCommentVNode("",!0),t.textOptionRight!=""&&!t.hiddenLabels?(o.openBlock(),o.createElementBlock("span",yw,o.toDisplayString(t.textOptionRight),1)):o.createCommentVNode("",!0)],4)}const Sn={components:{GSCSlider:Vt,GSCMosaicthebest:tw,GscSwitchComponent:Ua,GSCButton:jr,GSCRadioToggle:Ne(wn,[["render",bw],["__scopeId","data-v-f9c67ce5"]])},setup(){const e=o.ref("myDivRef"),{elementSize:a}=uw(e);return{myDivRef:e,elementSize:a}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},tournament:{type:Number,default:1},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,a){const t=this.categorySelected!==null?this.categorySelected:1;this.showSwitch||(this.filterSelected=1),await this.getCategoryStats(e,this.filterSelected,t)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,filterSelected:1,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){await this.getCategoryStats(this.season,1)},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{formatPlayerName(e){var n;const a=e.split(",");let t="";if(a[1]&&(t=`${a[1].trim()[0]}.`,a[0])){const s=(n=a[0])==null?void 0:n.trim().split(" ");for(let i of s)if(t=`${t} ${i.trim()}`,i.trim().length>3)break}return t},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const a=this.translateTopCategories(this.categorySelected),t=2,n=3;let s=[],i=0,r=0;this.isTeam?(i=e.player_id,r=n):(s=[e.player_id],r=t);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:r,gameIds:null,playerIds:s,goalkeeperIds:[],categoryIds:a,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){const a=this.categorySelected!==null?this.categorySelected:1;e==="Mi equipo"&&(this.filterSelected=0,await this.getCategoryStats(this.season,0,a)),e==="Liga MX"&&(this.filterSelected=1,await this.getCategoryStats(this.season,1,a))},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){const a=this.categorySelected!==null?this.categorySelected:1;this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1,a),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const a=this.categories.find(t=>t.name===e);this.categorySelected=a.id},async getCategoryStats(e,a,t=0){try{let i={},r={},l=[];const u=re.create({headers:{Authorization:`${this.token}`}});var n={};if(a==0&&(n=await u.get(this.url+this.season+"/teams/"+this.teamId)),a==1&&(n=await u.get(this.url+e)),n&&n.data){n.data.teams.map(c=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[3],i[c[0]].abrv=c[2],i[c[0]].logo=c[3]}),n.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+c[10][0].team_id+".png"});var s=1;n.data.tops.map(c=>{l[c.category?c.category:s]={};var m={},h={};c.teams.map(p=>{m[p[0]]={},m[p[0]].total=p[1],m[p[0]].id=i[p[0]].id,m[p[0]].name=i[p[0]].name,m[p[0]].img="https://az755631.vo.msecnd.net/teams-150/"+p[0]+".png",m[p[0]].logo="https://az755631.vo.msecnd.net/teams-80/"+p[0]+".png"}),c.players.map(p=>{h[p[0]]={},h[p[0]].total=p[1],h[p[0]].name=r[p[0]].name,h[p[0]].img=r[p[0]].img.replace("players-profile/","players-profile/"),h[p[0]].id=r[p[0]].id,h[p[0]].position=this.positions[r[p[0]].position-1].name,h[p[0]].logo=r[p[0]].logo});var f=[],d=[];for(const p in m)f.push(m[p]);for(const p in h)d.push(h[p]);f.sort((p,g)=>p.total<g.total?1:-1),d.sort((p,g)=>p.total<g.total?1:-1),l[c.category?c.category:s].top__players=d,l[c.category?c.category:s].top__teams=f,s++})}t===0?this.categorySelected=1:this.categorySelected=t,this.categoryData=l}catch(i){return Promise.reject(i)}}}},Hr=()=>{o.useCssVars(e=>({"3323ca31":e.backgroundColor,"525d1fb7":e.fontFamily,e014c5d8:e.fontSize,"6ddf14b0":e.fontColor,"37d06dfc":e.marginMosaic}))},Gr=Sn.setup;Sn.setup=Gr?(e,a)=>(Hr(),Gr(e,a)):Hr;const ww=e=>(o.pushScopeId("data-v-2f3b901e"),e=e(),o.popScopeId(),e),Sw={class:"gsc-best",ref:"myDivRef"},_w={class:"gsc-best__line-bar-tools"},kw={key:0,class:"gsc-best__line-bar-tools__title"},Cw=ww(()=>o.createElementVNode("span",null,"Los mejores ",-1)),Ew={key:1,class:"gsc-best__line-bar-tools__titlefull"},Bw={class:"unit-items"},xw={key:2,class:"gsc-best__line-bar-tools__tools"},Nw={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Tw={class:"gsc-best__line-bar-tools__tools__btn"},vw={key:0,class:"gsc-best__line-bar-tools-movil"},Ow={class:"gsc-best__line-bar-tools-movil__tabs"},Aw={class:"gsc-best__categories"},Vw={class:"gsc-best__players"};function $w(e,a,t,n,s,i){const r=o.resolveComponent("GSCRadioToggle"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("GscSwitchComponent"),c=o.resolveComponent("GSCMosaicthebest"),m=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",Sw,[o.createElementVNode("div",_w,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",kw,[Cw,e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",Ew,[o.createElementVNode("span",{style:o.normalizeStyle(n.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),o.createElementVNode("span",Bw,[e.optionSelected!=="Equipos"&&t.showSwitch?(o.openBlock(),o.createBlock(r,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+t.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):o.createCommentVNode("",!0),o.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":n.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":n.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])])])):o.createCommentVNode("",!0),n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",xw,[n.elementSize.width>900?(o.openBlock(),o.createElementBlock("div",Nw,[o.createVNode(u,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Tw,[o.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),o.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):o.createCommentVNode("",!0)]),n.elementSize.width<=900?(o.openBlock(),o.createElementBlock("div",vw,[o.createElementVNode("div",Ow,[o.createVNode(u,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Light",onInput:i.changeType},null,8,["selected-option","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",Aw,[o.createVNode(u,{type:2,arrow:!0,"font-family":"Poppins-Light",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":n.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0,borderWidth:"2px"},null,8,["buttons","font-size","onInput"])]),o.createElementVNode("div",Vw,[o.createVNode(m,{pxScroll:198,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.topData,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:o.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[o.createVNode(c,{data:{player_id:h.id,player_name:this.isTeam?h.name:i.formatPlayerName(h.name),player_position:h.position,player_stat:h.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.onOpenMedia,namePlayerFontSize:"13px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-Light!important",totalHeight:"21px","is-player":!this.isTeam},null,8,["data","onClickMosaic","onOpenmedia","is-player"])],2))),128))]),_:1})])],512)}const Pw=Ne(Sn,[["render",$w],["__scopeId","data-v-2f3b901e"]]);/**
33
33
  * Vue 3 Carousel 0.3.1
34
34
  * (c) 2023
35
35
  * @license MIT
36
- */const Oe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},qr={itemsToShow:{default:Oe.itemsToShow,type:Number},itemsToScroll:{default:Oe.itemsToScroll,type:Number},wrapAround:{default:Oe.wrapAround,type:Boolean},throttle:{default:Oe.throttle,type:Number},snapAlign:{default:Oe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Oe.transition,type:Number},breakpoints:{default:Oe.breakpoints,type:Object},autoplay:{default:Oe.autoplay,type:Number},pauseAutoplayOnHover:{default:Oe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Oe.mouseDrag,type:Boolean},touchDrag:{default:Oe.touchDrag,type:Boolean},dir:{default:Oe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Oe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Rw({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Lw({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function _n({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function zw({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:_n({val:r,max:t-i,min:0})}function Jr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Jr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function kn({val:e,max:a,min:t=0}){return e>a?kn({val:e-(a+1),max:a,min:t}):e<t?kn({val:e+(a+1),max:a,min:t}):e}function Fw(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function Mw(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function Dw(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var jw=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Oe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Dw(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),Ww=o.defineComponent({name:"Carousel",props:qr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Oe));let m=Object.assign({},Oe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=Mw(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=Rw({config:c,slidesCount:u.value}),b.value=Lw({config:c,slidesCount:u.value}),c.wrapAround||(f.value=_n({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Pe(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Ie,!0)))}const Ae=Fw(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Ie(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Ie,!0)}function Pe(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||P()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Pe()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:_n({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=kn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function P(){v(f.value+c.itemsToScroll)}function I(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:P,prev:I};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>zw({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(qr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:P,prev:I,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:P,prev:I,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Jr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(jw)])}}}),Kr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Kr||(Kr={}));var Uw=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Oe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Hw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Gw=e=>(o.pushScopeId("data-v-fad3b1be"),e=e(),o.popScopeId(),e),qw={class:"gsc-carousel"},Jw={key:0},Kw=Gw(()=>o.createElementVNode("div",null,"no hay",-1)),Zw=[Kw],Xw={class:"gsc-carousel__2d__slides"},Yw={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qw=["fill"],eS={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tS=["fill"],oS={class:"gsc-carousel__2d__navigation"},aS={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nS=["stroke"],iS={key:1,class:"gsc-carousel__2d__navigation__pagination"},sS=["onClick"],rS={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lS=["stroke"],cS={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({d565a72c:e.slideLeftArrowBackgroundImage,"7da628aa":e.slidesArrowsLeftAndRight,"4ecf8d3e":e.slideRightArrowBackgroundImage,"055d7d96":e.marginTop,a8efe3f2:e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",qw,[n.is3d?(o.openBlock(),o.createElementBlock("div",Jw,Zw)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Xw,[o.createVNode(o.unref(Ww),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(Uw),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Yw,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Qw)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",eS,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,tS)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",oS,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",aS,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,nS)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",iS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,sS))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",rS,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,lS)]))])):o.createCommentVNode("",!0)])],2))]))}},dS=Hw(cS,[["__scopeId","data-v-fad3b1be"]]);function V(e,a,t){return(a=uS(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function mS(e,a){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,a||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function uS(e){var a=mS(e,"string");return typeof a=="symbol"?a:String(a)}function hS(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function Zr(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pS(e,a,t){return a&&Zr(e.prototype,a),t&&Zr(e,t),e}function gS(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function Xr(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function Yr(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?Xr(Object(t),!0).forEach(function(n){gS(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Qr={addCSS:!0,thumbWidth:15,watch:!0};function fS(e,a){return(function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function yS(e,a){if(e&&a){var t=new Event(a,{bubbles:!0});e.dispatchEvent(t)}}var Dt=function(e){return e!=null?e.constructor:null},Cn=function(e,a){return!!(e&&a&&e instanceof a)},el=function(e){return e==null},tl=function(e){return Dt(e)===Object},bS=function(e){return Dt(e)===Number&&!Number.isNaN(e)},ol=function(e){return Dt(e)===String},wS=function(e){return Dt(e)===Boolean},SS=function(e){return Dt(e)===Function},al=function(e){return Array.isArray(e)},nl=function(e){return Cn(e,NodeList)},_S=function(e){return Cn(e,Element)},kS=function(e){return Cn(e,Event)},CS=function(e){return el(e)||(ol(e)||al(e)||nl(e))&&!e.length||tl(e)&&!Object.keys(e).length},Ve={nullOrUndefined:el,object:tl,number:bS,string:ol,boolean:wS,function:SS,array:al,nodeList:nl,element:_S,event:kS,empty:CS};function ES(e){var a="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0}function BS(e,a){if(1>a){var t=ES(a);return parseFloat(e.toFixed(t))}return Math.round(e/a)*a}var xS=function(){function e(a,t){hS(this,e),Ve.element(a)?this.element=a:Ve.string(a)&&(this.element=document.querySelector(a)),Ve.element(this.element)&&Ve.empty(this.element.rangeTouch)&&(this.config=Yr({},Qr,{},t),this.init())}return pS(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(a){var t=this,n=a?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){t.element[n](s,function(i){return t.set(i)},!1)})}},{key:"get",value:function(a){if(!e.enabled||!Ve.event(a))return null;var t,n=a.target,s=a.changedTouches[0],i=parseFloat(n.getAttribute("min"))||0,r=parseFloat(n.getAttribute("max"))||100,l=parseFloat(n.getAttribute("step"))||1,u=n.getBoundingClientRect(),c=100/u.width*(this.config.thumbWidth/2)/100;return 0>(t=100/u.width*(s.clientX-u.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*c:50<t&&(t+=2*(t-50)*c),i+BS(t/100*(r-i),l)}},{key:"set",value:function(a){e.enabled&&Ve.event(a)&&!a.target.disabled&&(a.preventDefault(),a.target.value=this.get(a),yS(a.target,a.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(a){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=null;if(Ve.empty(a)||Ve.string(a)?n=Array.from(document.querySelectorAll(Ve.string(a)?a:'input[type="range"]')):Ve.element(a)?n=[a]:Ve.nodeList(a)?n=Array.from(a):Ve.array(a)&&(n=a.filter(Ve.element)),Ve.empty(n))return null;var s=Yr({},Qr,{},t);if(Ve.string(a)&&s.watch){var i=new MutationObserver(function(r){Array.from(r).forEach(function(l){Array.from(l.addedNodes).forEach(function(u){Ve.element(u)&&fS(u,a)&&new e(u,s)})})});i.observe(document.body,{childList:!0,subtree:!0})}return n.map(function(r){return new e(r,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const jt=e=>e!=null?e.constructor:null,it=(e,a)=>!!(e&&a&&e instanceof a),En=e=>e==null,il=e=>jt(e)===Object,NS=e=>jt(e)===Number&&!Number.isNaN(e),Vo=e=>jt(e)===String,TS=e=>jt(e)===Boolean,sl=e=>typeof e=="function",rl=e=>Array.isArray(e),vS=e=>it(e,WeakMap),ll=e=>it(e,NodeList),OS=e=>jt(e)===Text,AS=e=>it(e,Event),VS=e=>it(e,KeyboardEvent),$S=e=>it(e,window.TextTrackCue)||it(e,window.VTTCue),IS=e=>it(e,TextTrack)||!En(e)&&Vo(e.kind),PS=e=>it(e,Promise)&&sl(e.then),RS=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",cl=e=>En(e)||(Vo(e)||rl(e)||ll(e))&&!e.length||il(e)&&!Object.keys(e).length;var y={nullOrUndefined:En,object:il,number:NS,string:Vo,boolean:TS,function:sl,array:rl,weakMap:vS,nodeList:ll,element:RS,textNode:OS,event:AS,keyboardEvent:VS,cue:$S,track:IS,promise:PS,url:e=>{if(it(e,window.URL))return!0;if(!Vo(e))return!1;let a=e;e.startsWith("http://")&&e.startsWith("https://")||(a=`http://${e}`);try{return!cl(new URL(a).hostname)}catch{return!1}},empty:cl};const Bn=(()=>{const e=document.createElement("span"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(a).find(n=>e.style[n]!==void 0);return!!y.string(t)&&a[t]})();function dl(e,a){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},a)}const LS=!!window.document.documentMode,zS=/Edge/g.test(navigator.userAgent),FS="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),MS=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,DS=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,jS=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var Ce={isIE:LS,isEdge:zS,isWebKit:FS,isIPhone:MS,isIPadOS:DS,isIos:jS};function WS(e){return JSON.parse(JSON.stringify(e))}function ml(e,a){return a.split(".").reduce((t,n)=>t&&t[n],e)}function me(e={},...a){if(!a.length)return e;const t=a.shift();return y.object(t)?(Object.keys(t).forEach(n=>{y.object(t[n])?(Object.keys(e).includes(n)||Object.assign(e,{[n]:{}}),me(e[n],t[n])):Object.assign(e,{[n]:t[n]})}),me(e,...a)):e}function ul(e,a){const t=e.length?e:[e];Array.from(t).reverse().forEach((n,s)=>{const i=s>0?a.cloneNode(!0):a,r=n.parentNode,l=n.nextSibling;i.appendChild(n),l?r.insertBefore(i,l):r.appendChild(i)})}function xn(e,a){y.element(e)&&!y.empty(a)&&Object.entries(a).filter(([,t])=>!y.nullOrUndefined(t)).forEach(([t,n])=>e.setAttribute(t,n))}function M(e,a,t){const n=document.createElement(e);return y.object(a)&&xn(n,a),y.string(t)&&(n.innerText=t),n}function US(e,a){y.element(e)&&y.element(a)&&a.parentNode.insertBefore(e,a.nextSibling)}function hl(e,a,t,n){y.element(a)&&a.appendChild(M(e,t,n))}function st(e){y.nodeList(e)||y.array(e)?Array.from(e).forEach(st):y.element(e)&&y.element(e.parentNode)&&e.parentNode.removeChild(e)}function $o(e){if(!y.element(e))return;let{length:a}=e.childNodes;for(;a>0;)e.removeChild(e.lastChild),a-=1}function Io(e,a){return y.element(a)&&y.element(a.parentNode)&&y.element(e)?(a.parentNode.replaceChild(e,a),e):null}function Ye(e,a){if(!y.string(e)||y.empty(e))return{};const t={},n=me({},a);return e.split(",").forEach(s=>{const i=s.trim(),r=i.replace(".",""),l=i.replace(/[[\]]/g,"").split("="),[u]=l,c=l.length>1?l[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":y.string(n.class)?t.class=`${n.class} ${r}`:t.class=r;break;case"#":t.id=i.replace("#","");break;case"[":t[u]=c}}),me(n,t)}function gt(e,a){if(!y.element(e))return;let t=a;y.boolean(t)||(t=!e.hidden),e.hidden=t}function Q(e,a,t){if(y.nodeList(e))return Array.from(e).map(n=>Q(n,a,t));if(y.element(e)){let n="toggle";return t!==void 0&&(n=t?"add":"remove"),e.classList[n](a),e.classList.contains(a)}return!1}function Po(e,a){return y.element(e)&&e.classList.contains(a)}function ft(e,a){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function HS(e,a){const{prototype:t}=Element;return(t.closest||function(){let n=this;do{if(ft.matches(n,a))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}).call(e,a)}function Wt(e){return this.elements.container.querySelectorAll(e)}function be(e){return this.elements.container.querySelector(e)}function Nn(e=null,a=!1){y.element(e)&&e.focus({preventScroll:!0,focusVisible:a})}const pl={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ue={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,a){const t=ue[e]||a!=="html5";return{api:t,ui:t&&ue.rangeInput}},pip:!(Ce.isIPhone||!y.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:y.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(y.empty(e))return!1;const[a]=e.split("/");let t=e;if(!this.isHTML5||a!==this.type)return!1;Object.keys(pl).includes(t)&&(t+=`; codecs="${pl[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Bn!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},GS=(()=>{let e=!1;try{const a=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,a),window.removeEventListener("test",null,a)}catch{}return e})();function Ut(e,a,t,n=!1,s=!0,i=!1){if(!e||!("addEventListener"in e)||y.empty(a)||!y.function(t))return;const r=a.split(" ");let l=i;GS&&(l={passive:s,capture:i}),r.forEach(u=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:e,type:u,callback:t,options:l}),e[n?"addEventListener":"removeEventListener"](u,t,l)})}function X(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!0,n,s)}function Ro(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!1,n,s)}function Tn(e,a="",t,n=!0,s=!1){const i=(...r)=>{Ro(e,a,i,n,s),t.apply(this,r)};Ut.call(this,e,a,i,!0,n,s)}function j(e,a="",t=!1,n={}){if(!y.element(e)||y.empty(a))return;const s=new CustomEvent(a,{bubbles:t,detail:{...n,plyr:this}});e.dispatchEvent(s)}function qS(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:a,type:t,callback:n,options:s}=e;a.removeEventListener(t,n,s)}),this.eventListeners=[])}function JS(){return new Promise(e=>this.ready?setTimeout(e,0):X.call(this,this.elements.container,"ready",e)).then(()=>{})}function Qe(e){y.promise(e)&&e.then(null,()=>{})}function vn(e){return y.array(e)?e.filter((a,t)=>e.indexOf(a)===t):e}function gl(e,a){return y.array(e)&&e.length?e.reduce((t,n)=>Math.abs(n-a)<Math.abs(t-a)?n:t):null}function fl(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const yl=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[a,t])=>({...e,[a/t]:[a,t]}),{});function bl(e){return y.array(e)||y.string(e)&&e.includes(":")?(y.array(e)?e:e.split(":")).map(Number).every(y.number):!1}function Lo(e){if(!y.array(e)||!e.every(y.number))return null;const[a,t]=e,n=(i,r)=>r===0?i:n(r,i%r),s=n(a,t);return[a/s,t/s]}function On(e){const a=n=>bl(n)?n.split(":").map(Number):null;let t=a(e);if(t===null&&(t=a(this.config.ratio)),t===null&&!y.empty(this.embed)&&y.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:n,videoHeight:s}=this.media;t=[n,s]}return Lo(t)}function Bt(e){if(!this.isVideo)return{};const{wrapper:a}=this.elements,t=On.call(this,e);if(!y.array(t))return{};const[n,s]=Lo(t),i=100/n*s;if(fl(`aspect-ratio: ${n}/${s}`)?a.style.aspectRatio=`${n}/${s}`:a.style.paddingBottom=`${i}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(r-i)/(r/50);this.fullscreen.active?a.style.paddingBottom=null:this.media.style.transform=`translateY(-${l}%)`}else this.isHTML5&&a.classList.add(this.config.classNames.videoFixedRatio);return{padding:i,ratio:t}}function wl(e,a,t=.05){const n=e/a,s=gl(Object.keys(yl),n);return Math.abs(s-n)<=t?yl[s]:[e,a]}function KS(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const mt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const a=e.getAttribute("type");return!!y.empty(a)||ue.mime.call(this,a)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:mt.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,y.empty(this.config.ratio)||Bt.call(e),Object.defineProperty(e.media,"quality",{get(){const a=mt.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return a&&Number(a.getAttribute("size"))},set(a){if(e.quality!==a){if(e.config.quality.forced&&y.function(e.config.quality.onChange))e.config.quality.onChange(a);else{const t=mt.getSources.call(e).find(u=>Number(u.getAttribute("size"))===a);if(!t)return;const{currentTime:n,paused:s,preload:i,readyState:r,playbackRate:l}=e.media;e.media.src=t.getAttribute("src"),(i!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=l,e.currentTime=n,s||Qe(e.play())}),e.media.load())}j.call(e,e.media,"qualitychange",!1,{quality:a})}}})},cancelRequests(){this.isHTML5&&(st(mt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ZS(e){return`${e}-${Math.floor(1e4*Math.random())}`}function An(e,...a){return y.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,n)=>a[n].toString())}function XS(e,a){return e===0||a===0||Number.isNaN(e)||Number.isNaN(a)?0:(e/a*100).toFixed(2)}const Ht=(e="",a="",t="")=>e.replace(new RegExp(a.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Sl=(e="")=>e.toString().replace(/\w\S*/g,a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase());function YS(e=""){let a=e.toString();return a=Ht(a,"-"," "),a=Ht(a,"_"," "),a=Sl(a),Ht(a," ","")}function QS(e=""){let a=e.toString();return a=YS(a),a.charAt(0).toLowerCase()+a.slice(1)}function e_(e){const a=document.createDocumentFragment(),t=document.createElement("div");return a.appendChild(t),t.innerHTML=e,a.firstChild.innerText}function t_(e){const a=document.createElement("div");return a.appendChild(e),a.innerHTML}const _l={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Ee={get(e="",a={}){if(y.empty(e)||y.empty(a))return"";let t=ml(a.i18n,e);if(y.empty(t))return Object.keys(_l).includes(e)?_l[e]:"";const n={"{seektime}":a.seekTime,"{title}":a.title};return Object.entries(n).forEach(([s,i])=>{t=Ht(t,s,i)}),t}};class Gt{constructor(a){V(this,"get",t=>{if(!Gt.supported||!this.enabled)return null;const n=window.localStorage.getItem(this.key);if(y.empty(n))return null;const s=JSON.parse(n);return y.string(t)&&t.length?s[t]:s}),V(this,"set",t=>{if(!Gt.supported||!this.enabled||!y.object(t))return;let n=this.get();y.empty(n)&&(n={}),me(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=a.config.storage.enabled,this.key=a.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const a="___test";return window.localStorage.setItem(a,a),window.localStorage.removeItem(a),!0}catch{return!1}}}function qt(e,a="text"){return new Promise((t,n)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",()=>{if(a==="text")try{t(JSON.parse(s.responseText))}catch{t(s.responseText)}else t(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",e,!0),s.responseType=a,s.send()}catch(s){n(s)}})}function kl(e,a){if(!y.string(e))return;const t="cache",n=y.string(a);let s=!1;const i=()=>document.getElementById(a)!==null,r=(l,u)=>{l.innerHTML=u,n&&i()||document.body.insertAdjacentElement("afterbegin",l)};if(!n||!i()){const l=Gt.supported,u=document.createElement("div");if(u.setAttribute("hidden",""),n&&u.setAttribute("id",a),l){const c=window.localStorage.getItem(`${t}-${a}`);if(s=c!==null,s){const m=JSON.parse(c);r(u,m.content)}}qt(e).then(c=>{if(!y.empty(c)){if(l)try{window.localStorage.setItem(`${t}-${a}`,JSON.stringify({content:c}))}catch{}r(u,c)}}).catch(()=>{})}}const Cl=e=>Math.trunc(e/60/60%60,10),o_=e=>Math.trunc(e/60%60,10),a_=e=>Math.trunc(e%60,10);function zo(e=0,a=!1,t=!1){if(!y.number(e))return zo(void 0,a,t);const n=l=>`0${l}`.slice(-2);let s=Cl(e);const i=o_(e),r=a_(e);return s=a||s>0?`${s}:`:"",`${t&&e>0?"-":""}${s}${n(i)}:${n(r)}`}const A={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),a=window.location.host?window.location.host:window.top.location.host,t=e.host!==a||Ce.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=be.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Wt.call(this,this.config.selectors.buttons.play),pause:be.call(this,this.config.selectors.buttons.pause),restart:be.call(this,this.config.selectors.buttons.restart),rewind:be.call(this,this.config.selectors.buttons.rewind),fastForward:be.call(this,this.config.selectors.buttons.fastForward),mute:be.call(this,this.config.selectors.buttons.mute),pip:be.call(this,this.config.selectors.buttons.pip),airplay:be.call(this,this.config.selectors.buttons.airplay),settings:be.call(this,this.config.selectors.buttons.settings),captions:be.call(this,this.config.selectors.buttons.captions),fullscreen:be.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=be.call(this,this.config.selectors.progress),this.elements.inputs={seek:be.call(this,this.config.selectors.inputs.seek),volume:be.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:be.call(this,this.config.selectors.display.buffer),currentTime:be.call(this,this.config.selectors.display.currentTime),duration:be.call(this,this.config.selectors.display.duration)},y.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,a){const t="http://www.w3.org/2000/svg",n=A.getIconUrl.call(this),s=`${n.cors?"":n.url}#${this.config.iconPrefix}`,i=document.createElementNS(t,"svg");xn(i,me(a,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),l=`${s}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",l),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),i.appendChild(r),i},createLabel(e,a={}){const t=Ee.get(e,this.config);return M("span",{...a,class:[a.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(y.empty(e))return null;const a=M("span",{class:this.config.classNames.menu.value});return a.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),a},createButton(e,a){const t=me({},a);let n=QS(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(s[r]=t[r],delete t[r])}),s.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||me(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,n="play",s.label="play",s.icon="play";break;default:y.empty(s.label)&&(s.label=n),y.empty(s.icon)&&(s.icon=e)}const i=M(s.element);return s.toggle?(i.appendChild(A.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),i.appendChild(A.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),i.appendChild(A.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),i.appendChild(A.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(i.appendChild(A.createIcon.call(this,s.icon)),i.appendChild(A.createLabel.call(this,s.label))),me(t,Ye(this.config.selectors.buttons[n],t)),xn(i,t),n==="play"?(y.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(i)):this.elements.buttons[n]=i,i},createRange(e,a){const t=M("input",me(Ye(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Ee.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},a));return this.elements.inputs[e]=t,A.updateRangeFill.call(this,t),xS.setup(t),t},createProgress(e,a){const t=M("progress",me(Ye(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},a));if(e!=="volume"){t.appendChild(M("span",null,"0"));const n={played:"played",buffer:"buffered"}[e],s=n?Ee.get(n,this.config):"";t.innerText=`% ${s.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,a){const t=Ye(this.config.selectors.display[e],a),n=M("div",me(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Ee.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts(e,a){X.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const n=ft(e,'[role="menuitemradio"]');if(!n&&[" ","ArrowRight"].includes(t.key))A.showMenuPanel.call(this,a,!0);else{let s;t.key!==" "&&(t.key==="ArrowDown"||n&&t.key==="ArrowRight"?(s=e.nextElementSibling,y.element(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,y.element(s)||(s=e.parentNode.lastElementChild)),Nn.call(this,s,!0))}},!1),X.call(this,e,"keyup",t=>{t.key==="Return"&&A.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:a,type:t,title:n,badge:s=null,checked:i=!1}){const r=Ye(this.config.selectors.inputs[t]),l=M("button",me(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":i,value:e})),u=M("span");u.innerHTML=n,y.element(s)&&u.appendChild(s),l.appendChild(u),Object.defineProperty(l,"checked",{enumerable:!0,get:()=>l.getAttribute("aria-checked")==="true",set(c){c&&Array.from(l.parentNode.children).filter(m=>ft(m,'[role="menuitemradio"]')).forEach(m=>m.setAttribute("aria-checked","false")),l.setAttribute("aria-checked",c?"true":"false")}}),this.listeners.bind(l,"click keyup",c=>{if(!y.keyboardEvent(c)||c.key===" "){switch(c.preventDefault(),c.stopPropagation(),l.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}A.showMenuPanel.call(this,"home",y.keyboardEvent(c))}},t,!1),A.bindMenuItemShortcuts.call(this,l,t),a.appendChild(l)},formatTime(e=0,a=!1){return y.number(e)?zo(e,Cl(this.duration)>0,a):e},updateTimeDisplay(e=null,a=0,t=!1){y.element(e)&&y.number(a)&&(e.innerText=A.formatTime(a,t))},updateVolume(){this.supported.ui&&(y.element(this.elements.inputs.volume)&&A.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),y.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,a=0){y.element(e)&&(e.value=a,A.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!y.event(e))return;let a=0;const t=(n,s)=>{const i=y.number(s)?s:0,r=y.element(n)?n:this.elements.display.buffer;if(y.element(r)){r.value=i;const l=r.getElementsByTagName("span")[0];y.element(l)&&(l.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":a=XS(this.currentTime,this.duration),e.type==="timeupdate"&&A.setRange.call(this,this.elements.inputs.seek,a);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const a=y.event(e)?e.target:e;if(y.element(a)&&a.getAttribute("type")==="range"){if(ft(a,this.config.selectors.inputs.seek)){a.setAttribute("aria-valuenow",this.currentTime);const t=A.formatTime(this.currentTime),n=A.formatTime(this.duration),s=Ee.get("seekLabel",this.config);a.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",n))}else if(ft(a,this.config.selectors.inputs.volume)){const t=100*a.value;a.setAttribute("aria-valuenow",t),a.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else a.setAttribute("aria-valuenow",a.value);(Ce.isWebKit||Ce.isIPadOS)&&a.style.setProperty("--value",a.value/a.max*100+"%")}},updateSeekTooltip(e){var a,t;if(!this.config.tooltips.seek||!y.element(this.elements.inputs.seek)||!y.element(this.elements.display.seekTooltip)||this.duration===0)return;const n=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,i=m=>Q(n,s,m);if(this.touch)return void i(!1);let r=0;const l=this.elements.progress.getBoundingClientRect();if(y.event(e))r=100/l.width*(e.pageX-l.left);else{if(!Po(n,s))return;r=parseFloat(n.style.left,10)}r<0?r=0:r>100&&(r=100);const u=this.duration/100*r;n.innerText=A.formatTime(u);const c=(a=this.config.markers)===null||a===void 0||(t=a.points)===null||t===void 0?void 0:t.find(({time:m})=>m===Math.round(u));c&&n.insertAdjacentHTML("afterbegin",`${c.label}<br>`),n.style.left=`${r}%`,y.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&i(e.type==="mouseenter")},timeUpdate(e){const a=!y.element(this.elements.display.duration)&&this.config.invertTime;A.updateTimeDisplay.call(this,this.elements.display.currentTime,a?this.duration-this.currentTime:this.currentTime,a),e&&e.type==="timeupdate"&&this.media.seeking||A.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return gt(this.elements.display.currentTime,!0),void gt(this.elements.progress,!0);y.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=y.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&A.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&A.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&A.setMarkers.call(this),A.updateSeekTooltip.call(this)},toggleMenuButton(e,a){gt(this.elements.settings.buttons[e],!a)},updateSetting(e,a,t){const n=this.elements.settings.panels[e];let s=null,i=a;if(e==="captions")s=this.currentTrack;else{if(s=y.empty(t)?this[e]:t,y.empty(s)&&(s=this.config[e].default),!y.empty(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(y.element(i)||(i=n&&n.querySelector('[role="menu"]')),!y.element(i))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=A.getLabel.call(this,e,s);const r=i&&i.querySelector(`[value="${s}"]`);y.element(r)&&(r.checked=!0)},getLabel(e,a){switch(e){case"speed":return a===1?Ee.get("normal",this.config):`${a}&times;`;case"quality":if(y.number(a)){const t=Ee.get(`qualityLabel.${a}`,this.config);return t.length?t:`${a}p`}return Sl(a);case"captions":return Y.getLabel.call(this);default:return null}},setQualityMenu(e){if(!y.element(this.elements.settings.panels.quality))return;const a="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');y.array(e)&&(this.options.quality=vn(e).filter(i=>this.config.quality.options.includes(i)));const n=!y.empty(this.options.quality)&&this.options.quality.length>1;if(A.toggleMenuButton.call(this,a,n),$o(t),A.checkMenu.call(this),!n)return;const s=i=>{const r=Ee.get(`qualityBadge.${i}`,this.config);return r.length?A.createBadge.call(this,r):null};this.options.quality.sort((i,r)=>{const l=this.config.quality.options;return l.indexOf(i)>l.indexOf(r)?1:-1}).forEach(i=>{A.createMenuItem.call(this,{value:i,list:t,type:a,title:A.getLabel.call(this,"quality",i),badge:s(i)})}),A.updateSetting.call(this,a,t)},setCaptionsMenu(){if(!y.element(this.elements.settings.panels.captions))return;const e="captions",a=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=Y.getTracks.call(this),n=!!t.length;if(A.toggleMenuButton.call(this,e,n),$o(a),A.checkMenu.call(this),!n)return;const s=t.map((i,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:Y.getLabel.call(this,i),badge:i.language&&A.createBadge.call(this,i.language.toUpperCase()),list:a,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Ee.get("disabled",this.config),list:a,type:"language"}),s.forEach(A.createMenuItem.bind(this)),A.updateSetting.call(this,e,a)},setSpeedMenu(){if(!y.element(this.elements.settings.panels.speed))return;const e="speed",a=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(n=>n>=this.minimumSpeed&&n<=this.maximumSpeed);const t=!y.empty(this.options.speed)&&this.options.speed.length>1;A.toggleMenuButton.call(this,e,t),$o(a),A.checkMenu.call(this),t&&(this.options.speed.forEach(n=>{A.createMenuItem.call(this,{value:n,list:a,type:e,title:A.getLabel.call(this,"speed",n)})}),A.updateSetting.call(this,e,a))},checkMenu(){const{buttons:e}=this.elements.settings,a=!y.empty(e)&&Object.values(e).some(t=>!t.hidden);gt(this.elements.settings.menu,!a)},focusFirstMenuItem(e,a=!1){if(this.elements.settings.popup.hidden)return;let t=e;y.element(t)||(t=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const n=t.querySelector('[role^="menuitem"]');Nn.call(this,n,a)},toggleMenu(e){const{popup:a}=this.elements.settings,t=this.elements.buttons.settings;if(!y.element(a)||!y.element(t))return;const{hidden:n}=a;let s=n;if(y.boolean(e))s=e;else if(y.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(y.event(e)){const i=y.function(e.composedPath)?e.composedPath()[0]:e.target,r=a.contains(i);if(r||!r&&e.target!==t&&s)return}t.setAttribute("aria-expanded",s),gt(a,!s),Q(this.elements.container,this.config.classNames.menu.open,s),s&&y.keyboardEvent(e)?A.focusFirstMenuItem.call(this,null,!0):s||n||Nn.call(this,t,y.keyboardEvent(e))},getMenuSize(e){const a=e.cloneNode(!0);a.style.position="absolute",a.style.opacity=0,a.removeAttribute("hidden"),e.parentNode.appendChild(a);const t=a.scrollWidth,n=a.scrollHeight;return st(a),{width:t,height:n}},showMenuPanel(e="",a=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!y.element(t))return;const n=t.parentNode,s=Array.from(n.children).find(i=>!i.hidden);if(ue.transitions&&!ue.reducedMotion){n.style.width=`${s.scrollWidth}px`,n.style.height=`${s.scrollHeight}px`;const i=A.getMenuSize.call(this,t),r=l=>{l.target===n&&["width","height"].includes(l.propertyName)&&(n.style.width="",n.style.height="",Ro.call(this,n,Bn,r))};X.call(this,n,Bn,r),n.style.width=`${i.width}px`,n.style.height=`${i.height}px`}gt(s,!0),gt(t,!1),A.focusFirstMenuItem.call(this,t,a)},setDownloadUrl(){const e=this.elements.buttons.download;y.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:a,createButton:t,createProgress:n,createRange:s,createTime:i,setQualityMenu:r,setSpeedMenu:l,showMenuPanel:u}=A;this.elements.controls=null,y.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const c=M("div",Ye(this.config.selectors.controls.wrapper));this.elements.controls=c;const m={class:"plyr__controls__item"};return vn(y.array(this.config.controls)?this.config.controls:[]).forEach(h=>{if(h==="restart"&&c.appendChild(t.call(this,"restart",m)),h==="rewind"&&c.appendChild(t.call(this,"rewind",m)),h==="play"&&c.appendChild(t.call(this,"play",m)),h==="fast-forward"&&c.appendChild(t.call(this,"fast-forward",m)),h==="progress"){const f=M("div",{class:`${m.class} plyr__progress__container`}),d=M("div",Ye(this.config.selectors.progress));if(d.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),d.appendChild(n.call(this,"buffer")),this.config.tooltips.seek){const p=M("span",{class:this.config.classNames.tooltip},"00:00");d.appendChild(p),this.elements.display.seekTooltip=p}this.elements.progress=d,f.appendChild(this.elements.progress),c.appendChild(f)}if(h==="current-time"&&c.appendChild(i.call(this,"currentTime",m)),h==="duration"&&c.appendChild(i.call(this,"duration",m)),h==="mute"||h==="volume"){let{volume:f}=this.elements;if(y.element(f)&&c.contains(f)||(f=M("div",me({},m,{class:`${m.class} plyr__volume`.trim()})),this.elements.volume=f,c.appendChild(f)),h==="mute"&&f.appendChild(t.call(this,"mute")),h==="volume"&&!Ce.isIos&&!Ce.isIPadOS){const d={max:1,step:.05,value:this.config.volume};f.appendChild(s.call(this,"volume",me(d,{id:`plyr-volume-${e.id}`})))}}if(h==="captions"&&c.appendChild(t.call(this,"captions",m)),h==="settings"&&!y.empty(this.config.settings)){const f=M("div",me({},m,{class:`${m.class} plyr__menu`.trim(),hidden:""}));f.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const d=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),p=M("div"),g=M("div",{id:`plyr-settings-${e.id}-home`}),b=M("div",{role:"menu"});g.appendChild(b),p.appendChild(g),this.elements.settings.panels.home=g,this.config.settings.forEach(S=>{const _=M("button",me(Ye(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));a.call(this,_,S),X.call(this,_,"click",()=>{u.call(this,S,!1)});const O=M("span",null,Ee.get(S,this.config)),L=M("span",{class:this.config.classNames.menu.value});L.innerHTML=e[S],O.appendChild(L),_.appendChild(O),b.appendChild(_);const H=M("div",{id:`plyr-settings-${e.id}-${S}`,hidden:""}),ee=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});ee.appendChild(M("span",{"aria-hidden":!0},Ee.get(S,this.config))),ee.appendChild(M("span",{class:this.config.classNames.hidden},Ee.get("menuBack",this.config))),X.call(this,H,"keydown",W=>{W.key==="ArrowLeft"&&(W.preventDefault(),W.stopPropagation(),u.call(this,"home",!0))},!1),X.call(this,ee,"click",()=>{u.call(this,"home",!1)}),H.appendChild(ee),H.appendChild(M("div",{role:"menu"})),p.appendChild(H),this.elements.settings.buttons[S]=_,this.elements.settings.panels[S]=H}),d.appendChild(p),f.appendChild(d),c.appendChild(f),this.elements.settings.popup=d,this.elements.settings.menu=f}if(h==="pip"&&ue.pip&&c.appendChild(t.call(this,"pip",m)),h==="airplay"&&ue.airplay&&c.appendChild(t.call(this,"airplay",m)),h==="download"){const f=me({},m,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(f.download="");const{download:d}=this.config.urls;!y.url(d)&&this.isEmbed&&me(f,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(t.call(this,"download",f))}h==="fullscreen"&&c.appendChild(t.call(this,"fullscreen",m))}),this.isHTML5&&r.call(this,mt.getQualityOptions.call(this)),l.call(this),c},inject(){if(this.config.loadSprite){const s=A.getIconUrl.call(this);s.cors&&kl(s.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const a={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;y.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,a)),this.config.controls||(this.config.controls=[]),y.element(this.config.controls)||y.string(this.config.controls)?e=this.config.controls:(e=A.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Y.getLabel.call(this)}),t=!1);let n;if(t&&y.string(this.config.controls)&&(e=(s=>{let i=s;return Object.entries(a).forEach(([r,l])=>{i=Ht(i,`{${r}}`,l)}),i})(e)),y.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),y.element(n)||(n=this.elements.container),n[y.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),y.element(this.elements.controls)||A.findElements.call(this),!y.empty(this.elements.buttons)){const s=i=>{const r=this.config.classNames.controlPressed;i.setAttribute("aria-pressed","false"),Object.defineProperty(i,"pressed",{configurable:!0,enumerable:!0,get:()=>Po(i,r),set(l=!1){Q(i,r,l),i.setAttribute("aria-pressed",l?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(i=>{y.array(i)||y.nodeList(i)?Array.from(i).filter(Boolean).forEach(s):s(i)})}if(Ce.isEdge&&dl(n),this.config.tooltips.controls){const{classNames:s,selectors:i}=this.config,r=`${i.controls.wrapper} ${i.labels} .${s.hidden}`,l=Wt.call(this,r);Array.from(l).forEach(u=>{Q(u,this.config.classNames.hidden,!1),Q(u,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,a;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(a=e.points)===null||a===void 0?void 0:a.filter(({time:u})=>u>0&&u<this.duration);if(t==null||!t.length)return;const n=document.createDocumentFragment(),s=document.createDocumentFragment();let i=null;const r=`${this.config.classNames.tooltip}--visible`,l=u=>Q(i,r,u);t.forEach(u=>{const c=M("span",{class:this.config.classNames.marker},""),m=u.time/this.duration*100+"%";i&&(c.addEventListener("mouseenter",()=>{u.label||(i.style.left=m,i.innerHTML=u.label,l(!0))}),c.addEventListener("mouseleave",()=>{l(!1)})),c.addEventListener("click",()=>{this.currentTime=u.time}),c.style.left=m,s.appendChild(c)}),n.appendChild(s),this.config.tooltips.seek||(i=M("span",{class:this.config.classNames.tooltip},""),n.appendChild(i)),this.elements.markers={points:s,tip:i},this.elements.progress.appendChild(n)}};function El(e,a=!0){let t=e;if(a){const n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch{return null}}function Bl(e){const a=new URLSearchParams;return y.object(e)&&Object.entries(e).forEach(([t,n])=>{a.set(t,n)}),a}const Y={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ue.textTracks)return void(y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&A.setCaptionsMenu.call(this));if(y.element(this.elements.captions)||(this.elements.captions=M("div",Ye(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),US(this.elements.captions,this.elements.wrapper)),Ce.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(s=>{const i=s.getAttribute("src"),r=El(i);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&qt(i,"blob").then(l=>{s.setAttribute("src",window.URL.createObjectURL(l))}).catch(()=>{st(s)})})}const e=vn((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let a=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();a==="auto"&&([a]=e);let t=this.storage.get("captions");if(y.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:a,languages:e}),this.isHTML5){const n=this.config.captions.update?"addtrack removetrack":"removetrack";X.call(this,this.media.textTracks,n,Y.update.bind(this))}setTimeout(Y.update.bind(this),0)},update(){const e=Y.getTracks.call(this,!0),{active:a,language:t,meta:n,currentTrackNode:s}=this.captions,i=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!n.get(r)).forEach(r=>{this.debug.log("Track added",r),n.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),X.call(this,r,"cuechange",()=>Y.updateCues.call(this))}),(i&&this.language!==t||!e.includes(s))&&(Y.setLanguage.call(this,t),Y.toggle.call(this,a&&i)),this.elements&&Q(this.elements.container,this.config.classNames.captions.enabled,!y.empty(e)),y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&A.setCaptionsMenu.call(this)},toggle(e,a=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,n=this.config.classNames.captions.active,s=y.nullOrUndefined(e)?!t:e;if(s!==t){if(a||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!a){const i=Y.getTracks.call(this),r=Y.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void Y.set.call(this,i.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),Q(this.elements.container,n,s),this.captions.toggled=s,A.updateSetting.call(this,"captions"),j.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,a=!0){const t=Y.getTracks.call(this);if(e!==-1)if(y.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const n=t[e],{language:s}=n||{};this.captions.currentTrackNode=n,A.updateSetting.call(this,"captions"),a||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),j.call(this,this.media,"languagechange")}Y.toggle.call(this,!0,a),this.isHTML5&&this.isVideo&&Y.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Y.toggle.call(this,!1,a)},setLanguage(e,a=!0){if(!y.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const n=Y.getTracks.call(this),s=Y.findTrack.call(this,[t]);Y.set.call(this,n.indexOf(s),a)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(a=>!this.isHTML5||e||this.captions.meta.has(a)).filter(a=>["captions","subtitles"].includes(a.kind))},findTrack(e,a=!1){const t=Y.getTracks.call(this),n=r=>Number((this.captions.meta.get(r)||{}).default),s=Array.from(t).sort((r,l)=>n(l)-n(r));let i;return e.every(r=>(i=s.find(l=>l.language===r),!i)),i||(a?s[0]:void 0)},getCurrentTrack(){return Y.getTracks.call(this)[this.currentTrack]},getLabel(e){let a=e;return!y.track(a)&&ue.textTracks&&this.captions.toggled&&(a=Y.getCurrentTrack.call(this)),y.track(a)?y.empty(a.label)?y.empty(a.language)?Ee.get("enabled",this.config):e.language.toUpperCase():a.label:Ee.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!y.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!y.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let a=e;if(!a){const n=Y.getCurrentTrack.call(this);a=Array.from((n||{}).activeCues||[]).map(s=>s.getCueAsHTML()).map(t_)}const t=a.map(n=>n.trim()).join(`
37
- `);if(t!==this.elements.captions.innerHTML){$o(this.elements.captions);const n=M("span",Ye(this.config.selectors.caption));n.innerHTML=t,this.elements.captions.appendChild(n),j.call(this,this.media,"cuechange")}}},xl={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Vn={active:"picture-in-picture",inactive:"inline"},ut={html5:"html5",youtube:"youtube",vimeo:"vimeo"},$n={audio:"audio",video:"video"};function n_(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?ut.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?ut.vimeo:null}const In=()=>{};class i_{constructor(a=!1){this.enabled=window.console&&a,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):In}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):In}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):In}}class We{constructor(a){V(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;y.element(t)&&(t.pressed=this.active);const n=this.target===this.player.media?this.target:this.player.elements.container;j.call(this.player,n,this.active?"enterfullscreen":"exitfullscreen",!0)}),V(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Q(this.target,this.player.config.classNames.fullscreen.fallback,t),Ce.isIos){let n=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const i=y.string(n.content)&&n.content.includes(s);t?(this.cleanupViewport=!i,i||(n.content+=`,${s}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(r=>r.trim()!==s).join(","))}this.onChange()}),V(this,"trapFocus",t=>{if(Ce.isIos||Ce.isIPadOS||!this.active||t.key!=="Tab")return;const n=document.activeElement,s=Wt.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=s,r=s[s.length-1];n!==r||t.shiftKey?n===i&&t.shiftKey&&(r.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}),V(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":We.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");Q(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),V(this,"enter",()=>{this.supported&&(Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!We.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?y.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),V(this,"exit",()=>{if(this.supported)if(Ce.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),Qe(this.player.play());else if(!We.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!y.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),V(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=a,this.prefix=We.prefix,this.property=We.property,this.scrollPosition={x:0,y:0},this.forceFallback=a.config.fullscreen.fallback==="force",this.player.elements.fullscreen=a.config.fullscreen.container&&HS(this.player.elements.container,a.config.fullscreen.container),X.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),X.call(this.player,this.player.elements.container,"dblclick",t=>{y.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),X.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return We.nativeSupported&&!this.forceFallback}static get prefix(){if(y.function(document.exitFullscreen))return"";let a="";return["webkit","moz","ms"].some(t=>!(!y.function(document[`${t}ExitFullscreen`])&&!y.function(document[`${t}CancelFullScreen`]))&&(a=t,!0)),a}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,We.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||We.nativeSupported||!Ce.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!We.nativeSupported||this.forceFallback)return Po(this.target,this.player.config.classNames.fullscreen.fallback);const a=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return a&&a.shadowRoot?a===this.target.getRootNode().host:a===this.target}get target(){return Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function Fo(e,a=1){return new Promise((t,n)=>{const s=new Image,i=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=a?t:n)(s)};Object.assign(s,{onload:i,onerror:i,src:e})})}const oe={addStyleHook(){Q(this.elements.container,this.config.selectors.container.replace(".",""),!0),Q(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void oe.toggleNativeControls.call(this,!0);y.element(this.elements.controls)||(A.inject.call(this),this.listeners.controls()),oe.toggleNativeControls.call(this),this.isHTML5&&Y.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,A.updateVolume.call(this),A.timeUpdate.call(this),A.durationUpdate.call(this),oe.checkPlaying.call(this),Q(this.elements.container,this.config.classNames.pip.supported,ue.pip&&this.isHTML5&&this.isVideo),Q(this.elements.container,this.config.classNames.airplay.supported,ue.airplay&&this.isHTML5),Q(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{j.call(this,this.media,"ready")},0),oe.setTitle.call(this),this.poster&&oe.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&A.durationUpdate.call(this),this.config.mediaMetadata&&A.setMediaMetadata.call(this)},setTitle(){let e=Ee.get("play",this.config);if(y.string(this.config.title)&&!y.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(a=>{a.setAttribute("aria-label",e)}),this.isEmbed){const a=be.call(this,"iframe");if(!y.element(a))return;const t=y.empty(this.config.title)?"video":this.config.title,n=Ee.get("frameTitle",this.config);a.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){Q(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,a=!0){return a&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),JS.call(this).then(()=>Fo(e)).catch(t=>{throw e===this.poster&&oe.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),oe.togglePoster.call(this,!0),e)))},checkPlaying(e){Q(this.elements.container,this.config.classNames.playing,this.playing),Q(this.elements.container,this.config.classNames.paused,this.paused),Q(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(a=>{Object.assign(a,{pressed:this.playing}),a.setAttribute("aria-label",Ee.get(this.playing?"pause":"play",this.config))}),y.event(e)&&e.type==="timeupdate"||oe.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{Q(this.elements.container,this.config.classNames.loading,this.loading),oe.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:a}=this.elements;if(a&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||a.pressed||a.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!y.empty(e)&&y.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),y.empty(this.media.style)&&this.media.removeAttribute("style")}};class s_{constructor(a){V(this,"firstTouch",()=>{const{player:t}=this,{elements:n}=t;t.touch=!0,Q(n.container,t.config.classNames.isTouch,!0)}),V(this,"global",(t=!0)=>{const{player:n}=this;n.config.keyboard.global&&Ut.call(n,window,"keydown keyup",this.handleKey,t,!1),Ut.call(n,document.body,"click",this.toggleMenu,t),Tn.call(n,document.body,"touchstart",this.firstTouch)}),V(this,"container",()=>{const{player:t}=this,{config:n,elements:s,timers:i}=t;!n.keyboard.global&&n.keyboard.focused&&X.call(t,s.container,"keydown keyup",this.handleKey,!1),X.call(t,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",u=>{const{controls:c}=s;c&&u.type==="enterfullscreen"&&(c.pressed=!1,c.hover=!1);let m=0;["touchstart","touchmove","mousemove"].includes(u.type)&&(oe.toggleControls.call(t,!0),m=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>oe.toggleControls.call(t,!1),m)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const u=s.wrapper,{active:c}=t.fullscreen,[m,h]=On.call(t),f=fl(`aspect-ratio: ${m} / ${h}`);if(!c)return void(f?(u.style.width=null,u.style.height=null):(u.style.maxWidth=null,u.style.margin=null));const[d,p]=KS(),g=d/p>m/h;f?(u.style.width=g?"auto":"100%",u.style.height=g?"100%":"auto"):(u.style.maxWidth=g?p/h*m+"px":null,u.style.margin=g?"0 auto":null)},l=()=>{clearTimeout(i.resized),i.resized=setTimeout(r,50)};X.call(t,s.container,"enterfullscreen exitfullscreen",u=>{const{target:c}=t.fullscreen;c===s.container&&(!t.isEmbed&&y.empty(t.config.ratio)||(r(),(u.type==="enterfullscreen"?X:Ro).call(t,window,"resize",l)))})}),V(this,"media",()=>{const{player:t}=this,{elements:n}=t;if(X.call(t,t.media,"timeupdate seeking seeked",i=>A.timeUpdate.call(t,i)),X.call(t,t.media,"durationchange loadeddata loadedmetadata",i=>A.durationUpdate.call(t,i)),X.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),X.call(t,t.media,"progress playing seeking seeked",i=>A.updateProgress.call(t,i)),X.call(t,t.media,"volumechange",i=>A.updateVolume.call(t,i)),X.call(t,t.media,"playing play pause ended emptied timeupdate",i=>oe.checkPlaying.call(t,i)),X.call(t,t.media,"waiting canplay seeked playing",i=>oe.checkLoading.call(t,i)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const i=be.call(t,`.${t.config.classNames.video}`);if(!y.element(i))return;X.call(t,n.container,"click",r=>{([n.container,i].includes(r.target)||i.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{Qe(t.play())},"play")):this.proxy(r,()=>{Qe(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&X.call(t,n.wrapper,"contextmenu",i=>{i.preventDefault()},!1),X.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),X.call(t,t.media,"ratechange",()=>{A.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),X.call(t,t.media,"qualitychange",i=>{A.updateSetting.call(t,"quality",null,i.detail.quality)}),X.call(t,t.media,"ready qualitychange",()=>{A.setDownloadUrl.call(t)});const s=t.config.events.concat(["keyup","keydown"]).join(" ");X.call(t,t.media,s,i=>{let{detail:r={}}=i;i.type==="error"&&(r=t.media.error),j.call(t,n.container,i.type,!0,r)})}),V(this,"proxy",(t,n,s)=>{const{player:i}=this,r=i.config.listeners[s];let l=!0;y.function(r)&&(l=r.call(i,t)),l!==!1&&y.function(n)&&n.call(i,t)}),V(this,"bind",(t,n,s,i,r=!0)=>{const{player:l}=this,u=l.config.listeners[i],c=y.function(u);X.call(l,t,n,m=>this.proxy(m,s,i),r&&!c)}),V(this,"controls",()=>{const{player:t}=this,{elements:n}=t,s=Ce.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach(i=>{this.bind(i,"click",()=>{Qe(t.togglePlay())},"play")}),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(n.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(n.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(n.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(n.buttons.download,"click",()=>{j.call(t,t.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",i=>{i.stopPropagation(),i.preventDefault(),A.toggleMenu.call(t,i)},null,!1),this.bind(n.buttons.settings,"keyup",i=>{[" ","Enter"].includes(i.key)&&(i.key!=="Enter"?(i.preventDefault(),i.stopPropagation(),A.toggleMenu.call(t,i)):A.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",i=>{i.key==="Escape"&&A.toggleMenu.call(t,i)}),this.bind(n.inputs.seek,"mousedown mousemove",i=>{const r=n.progress.getBoundingClientRect(),l=100/r.width*(i.pageX-r.left);i.currentTarget.setAttribute("seek-value",l)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",i=>{const r=i.currentTarget,l="play-on-seeked";if(y.keyboardEvent(i)&&!["ArrowLeft","ArrowRight"].includes(i.key))return;t.lastSeekTime=Date.now();const u=r.hasAttribute(l),c=["mouseup","touchend","keyup"].includes(i.type);u&&c?(r.removeAttribute(l),Qe(t.play())):!c&&t.playing&&(r.setAttribute(l,""),t.pause())}),Ce.isIos){const i=Wt.call(t,'input[type="range"]');Array.from(i).forEach(r=>this.bind(r,s,l=>dl(l.target)))}this.bind(n.inputs.seek,s,i=>{const r=i.currentTarget;let l=r.getAttribute("seek-value");y.empty(l)&&(l=r.value),r.removeAttribute("seek-value"),t.currentTime=l/r.max*t.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",i=>A.updateSeekTooltip.call(t,i)),this.bind(n.progress,"mousemove touchmove",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(i)}),this.bind(n.progress,"mouseleave touchend click",()=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(i)}),this.bind(n.progress,"mouseup touchend",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(i)}),Ce.isWebKit&&Array.from(Wt.call(t,'input[type="range"]')).forEach(i=>{this.bind(i,"input",r=>A.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!y.element(n.display.duration)&&this.bind(n.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,A.timeUpdate.call(t))}),this.bind(n.inputs.volume,s,i=>{t.volume=i.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",i=>{n.controls.hover=!t.touch&&i.type==="mouseenter"}),n.fullscreen&&Array.from(n.fullscreen.children).filter(i=>!i.contains(n.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",r=>{n.controls&&(n.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",i=>{n.controls.pressed=["mousedown","touchstart"].includes(i.type)}),this.bind(n.controls,"focusin",()=>{const{config:i,timers:r}=t;Q(n.controls,i.classNames.noTransition,!0),oe.toggleControls.call(t,!0),setTimeout(()=>{Q(n.controls,i.classNames.noTransition,!1)},0);const l=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>oe.toggleControls.call(t,!1),l)}),this.bind(n.inputs.volume,"wheel",i=>{const r=i.webkitDirectionInvertedFromDevice,[l,u]=[i.deltaX,-i.deltaY].map(h=>r?-h:h),c=Math.sign(Math.abs(l)>Math.abs(u)?l:u);t.increaseVolume(c/50);const{volume:m}=t.media;(c===1&&m<1||c===-1&&m>0)&&i.preventDefault()},"volume",!1)}),this.player=a,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(a){const{player:t}=this,{elements:n}=t,{key:s,type:i,altKey:r,ctrlKey:l,metaKey:u,shiftKey:c}=a,m=i==="keydown",h=m&&s===this.lastKey;if(!(r||l||u||c)&&s){if(m){const d=document.activeElement;if(y.element(d)){const{editable:p}=t.config.selectors,{seek:g}=n.inputs;if(d!==g&&ft(d,p)||a.key===" "&&ft(d,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(a.preventDefault(),a.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h||(f=parseInt(s,10),t.currentTime=t.duration/10*f);break;case" ":case"k":h||Qe(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":h||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":h||t.toggleCaptions();break;case"l":t.loop=!t.loop}s==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var f}}toggleMenu(a){A.toggleMenu.call(this.player,a)}}function r_(e,a){return e(a={exports:{}},a.exports),a.exports}var l_=r_(function(e,a){e.exports=function(){var t=function(){},n={},s={},i={};function r(f,d){f=f.push?f:[f];var p,g,b,S=[],_=f.length,O=_;for(p=function(L,H){H.length&&S.push(L),--O||d(S)};_--;)g=f[_],(b=s[g])?p(g,b):(i[g]=i[g]||[]).push(p)}function l(f,d){if(f){var p=i[f];if(s[f]=d,p)for(;p.length;)p[0](f,d),p.splice(0,1)}}function u(f,d){f.call&&(f={success:f}),d.length?(f.error||t)(d):(f.success||t)(f)}function c(f,d,p,g){var b,S,_=document,O=p.async,L=(p.numRetries||0)+1,H=p.before||t,ee=f.replace(/[\?|#].*$/,""),W=f.replace(/^(css|img)!/,"");g=g||0,/(^css!|\.css$)/.test(ee)?((S=_.createElement("link")).rel="stylesheet",S.href=W,(b="hideFocus"in S)&&S.relList&&(b=0,S.rel="preload",S.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(ee)?(S=_.createElement("img")).src=W:((S=_.createElement("script")).src=f,S.async=O===void 0||O),S.onload=S.onerror=S.onbeforeload=function(le){var $=le.type[0];if(b)try{S.sheet.cssText.length||($="e")}catch(ae){ae.code!=18&&($="e")}if($=="e"){if((g+=1)<L)return c(f,d,p,g)}else if(S.rel=="preload"&&S.as=="style")return S.rel="stylesheet";d(f,$,le.defaultPrevented)},H(f,S)!==!1&&_.head.appendChild(S)}function m(f,d,p){var g,b,S=(f=f.push?f:[f]).length,_=S,O=[];for(g=function(L,H,ee){if(H=="e"&&O.push(L),H=="b"){if(!ee)return;O.push(L)}--S||d(O)},b=0;b<_;b++)c(f[b],g,p)}function h(f,d,p){var g,b;if(d&&d.trim&&(g=d),b=(g?p:d)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function S(_,O){m(f,function(L){u(b,L),_&&u({success:_,error:O},L),l(g,L)},b)}if(b.returnPromise)return new Promise(S);S()}return h.ready=function(f,d){return r(f,function(p){u(d,p)}),h},h.done=function(f){l(f,[])},h.reset=function(){n={},s={},i={}},h.isDefined=function(f){return f in n},h}()});function Pn(e){return new Promise((a,t)=>{l_(e,{success:a,error:t})})}function c_(e){return y.empty(e)?null:y.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function d_(e){const a=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return a&&a.length===5?a[4]:null}function Jt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}const Rn={setup(){const e=this;Q(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Bt.call(e),y.object(window.Vimeo)?Rn.ready.call(e):Pn(e.config.urls.vimeo.sdk).then(()=>{Rn.ready.call(e)}).catch(a=>{e.debug.warn("Vimeo SDK (player.js) failed to load",a)})},ready(){const e=this,a=e.config.vimeo,{premium:t,referrerPolicy:n,...s}=a;let i=e.media.getAttribute("src"),r="";y.empty(i)?(i=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=d_(i);const l=r?{h:r}:{};t&&Object.assign(s,{controls:!1,sidedock:!1});const u=Bl({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...l,...s}),c=c_(i),m=M("iframe"),h=An(e.config.urls.vimeo.iframe,c,u);if(m.setAttribute("src",h),m.setAttribute("allowfullscreen",""),m.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),y.empty(n)||m.setAttribute("referrerPolicy",n),t||!a.customControls)m.setAttribute("data-poster",e.poster),e.media=Io(m,e.media);else{const _=M("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});_.appendChild(m),e.media=Io(_,e.media)}a.customControls||qt(An(e.config.urls.vimeo.api,h)).then(_=>{!y.empty(_)&&_.thumbnail_url&&oe.setPoster.call(e,_.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(m,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Jt.call(e,!0),e.embed.play()),e.media.pause=()=>(Jt.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:f}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>f,set(_){const{embed:O,media:L,paused:H,volume:ee}=e,W=H&&!O.hasPlayed;L.seeking=!0,j.call(e,L,"seeking"),Promise.resolve(W&&O.setVolume(0)).then(()=>O.setCurrentTime(_)).then(()=>W&&O.pause()).then(()=>W&&O.setVolume(ee)).catch(()=>{})}});let d=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>d,set(_){e.embed.setPlaybackRate(_).then(()=>{d=_,j.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:p}=e.config;Object.defineProperty(e.media,"volume",{get:()=>p,set(_){e.embed.setVolume(_).then(()=>{p=_,j.call(e,e.media,"volumechange")})}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(_){const O=!!y.boolean(_)&&_;e.embed.setMuted(!!O||e.config.muted).then(()=>{g=O,j.call(e,e.media,"volumechange")})}});let b,{loop:S}=e.config;Object.defineProperty(e.media,"loop",{get:()=>S,set(_){const O=y.boolean(_)?_:e.config.loop.active;e.embed.setLoop(O).then(()=>{S=O})}}),e.embed.getVideoUrl().then(_=>{b=_,A.setDownloadUrl.call(e)}).catch(_=>{this.debug.warn(_)}),Object.defineProperty(e.media,"currentSrc",{get:()=>b}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(_=>{const[O,L]=_;e.embed.ratio=wl(O,L),Bt.call(this)}),e.embed.setAutopause(e.config.autopause).then(_=>{e.config.autopause=_}),e.embed.getVideoTitle().then(_=>{e.config.title=_,oe.setTitle.call(this)}),e.embed.getCurrentTime().then(_=>{f=_,j.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(_=>{e.media.duration=_,j.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(_=>{e.media.textTracks=_,Y.setup.call(e)}),e.embed.on("cuechange",({cues:_=[]})=>{const O=_.map(L=>e_(L.text));Y.updateCues.call(e,O)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(_=>{Jt.call(e,!_),_||j.call(e,e.media,"playing")}),y.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{j.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{j.call(e,e.media,"playing")}),e.embed.on("play",()=>{Jt.call(e,!0),j.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Jt.call(e,!1)}),e.embed.on("timeupdate",_=>{e.media.seeking=!1,f=_.seconds,j.call(e,e.media,"timeupdate")}),e.embed.on("progress",_=>{e.media.buffered=_.percent,j.call(e,e.media,"progress"),parseInt(_.percent,10)===1&&j.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(O=>{O!==e.media.duration&&(e.media.duration=O,j.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,j.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,j.call(e,e.media,"ended")}),e.embed.on("error",_=>{e.media.error=_,j.call(e,e.media,"error")}),a.customControls&&setTimeout(()=>oe.build.call(e),0)}};function m_(e){return y.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function Kt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}function u_(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const Mo={setup(){if(Q(this.elements.wrapper,this.config.classNames.embed,!0),y.object(window.YT)&&y.function(window.YT.Player))Mo.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{y.function(e)&&e(),Mo.ready.call(this)},Pn(this.config.urls.youtube.sdk).catch(a=>{this.debug.warn("YouTube API failed to load",a)})}},getTitle(e){qt(An(this.config.urls.youtube.api,e)).then(a=>{if(y.object(a)){const{title:t,height:n,width:s}=a;this.config.title=t,oe.setTitle.call(this),this.embed.ratio=wl(s,n)}Bt.call(this)}).catch(()=>{Bt.call(this)})},ready(){const e=this,a=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!y.empty(t)&&t.startsWith("youtube-"))return;let n=e.media.getAttribute("src");y.empty(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));const s=m_(n),i=M("div",{id:ZS(e.provider),"data-poster":a.customControls?e.poster:void 0});if(e.media=Io(i,e.media),a.customControls){const r=l=>`https://i.ytimg.com/vi/${s}/${l}default.jpg`;Fo(r("maxres"),121).catch(()=>Fo(r("sd"),121)).catch(()=>Fo(r("hq"))).then(l=>oe.setPoster.call(e,l.src)).then(l=>{l.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:u_(a),playerVars:me({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&a.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},a),events:{onError(r){if(!e.media.error){const l=r.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[l]||"An unknown error occurred";e.media.error={code:l,message:u},j.call(e,e.media,"error")}},onPlaybackRateChange(r){const l=r.target;e.media.playbackRate=l.getPlaybackRate(),j.call(e,e.media,"ratechange")},onReady(r){if(y.function(e.media.play))return;const l=r.target;Mo.getTitle.call(e,s),e.media.play=()=>{Kt.call(e,!0),l.playVideo()},e.media.pause=()=>{Kt.call(e,!1),l.pauseVideo()},e.media.stop=()=>{l.stopVideo()},e.media.duration=l.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(l.getCurrentTime()),set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,j.call(e,e.media,"seeking"),l.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>l.getPlaybackRate(),set(h){l.setPlaybackRate(h)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get:()=>u,set(h){u=h,l.setVolume(100*u),j.call(e,e.media,"volumechange")}});let{muted:c}=e.config;Object.defineProperty(e.media,"muted",{get:()=>c,set(h){const f=y.boolean(h)?h:c;c=f,l[f?"mute":"unMute"](),l.setVolume(100*u),j.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>l.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const m=l.getAvailablePlaybackRates();e.options.speed=m.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&a.customControls&&e.media.setAttribute("tabindex",-1),j.call(e,e.media,"timeupdate"),j.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=l.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&j.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),j.call(e,e.media,"canplaythrough"))},200),a.customControls&&setTimeout(()=>oe.build.call(e),50)},onStateChange(r){const l=r.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(r.data)&&(e.media.seeking=!1,j.call(e,e.media,"seeked")),r.data){case-1:j.call(e,e.media,"timeupdate"),e.media.buffered=l.getVideoLoadedFraction(),j.call(e,e.media,"progress");break;case 0:Kt.call(e,!1),e.media.loop?(l.stopVideo(),l.playVideo()):j.call(e,e.media,"ended");break;case 1:a.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Kt.call(e,!0),j.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{j.call(e,e.media,"timeupdate")},50),e.media.duration!==l.getDuration()&&(e.media.duration=l.getDuration(),j.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Kt.call(e,!1);break;case 3:j.call(e,e.media,"waiting")}j.call(e,e.elements.container,"statechange",!1,{code:r.data})}}})}},Nl={setup(){this.media?(Q(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Q(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Q(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=M("div",{class:this.config.classNames.video}),ul(this.media,this.elements.wrapper),this.elements.poster=M("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?mt.setup.call(this):this.isYouTube?Mo.setup.call(this):this.isVimeo&&Rn.setup.call(this)):this.debug.warn("No media element found!")}};class h_{constructor(a){V(this,"load",()=>{this.enabled&&(y.object(window.google)&&y.object(window.google.ima)?this.ready():Pn(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),V(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),V(this,"setupIMA",()=>{this.elements.container=M("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),V(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(n){this.onAdError(n)}}),V(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const n=zo(Math.max(this.manager.getRemainingTime(),0)),s=`${Ee.get("advertisement",this.player.config)} - ${n}`;this.elements.container.setAttribute("data-badge-text",s)},100)}),V(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=t.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],i=>this.onAdEvent(i))}),this.trigger("loaded")}),V(this,"addCuePoints",()=>{y.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const n=this.player.elements.progress;if(y.element(n)){const s=100/this.player.duration*t,i=M("span",{class:this.player.config.classNames.cues});i.style.left=`${s.toString()}%`,n.appendChild(i)}}})}),V(this,"onAdEvent",t=>{const{container:n}=this.player.elements,s=t.getAd(),i=t.getAdData();switch((r=>{j.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=n.offsetWidth,s.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`)}}),V(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),V(this,"listeners",()=>{const{container:t}=this.player.elements;let n;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{n=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;y.empty(this.cuePoints)||this.cuePoints.forEach((i,r)=>{n<i&&i<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),V(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(n){this.onAdError(n)}}).catch(()=>{})}),V(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,Qe(this.player.media.play())}),V(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),V(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),V(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),V(this,"trigger",(t,...n)=>{const s=this.events[t];y.array(s)&&s.forEach(i=>{y.function(i)&&i.apply(this,n)})}),V(this,"on",(t,n)=>(y.array(this.events[t])||(this.events[t]=[]),this.events[t].push(n),this)),V(this,"startSafetyTimer",(t,n)=>{this.player.debug.log(`Safety timer invoked from: ${n}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),V(this,"clearSafetyTimer",t=>{y.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=a,this.config=a.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,n)=>{this.on("loaded",t),this.on("error",n)}),this.load()}get enabled(){const{config:a}=this;return this.player.isHTML5&&this.player.isVideo&&a.enabled&&(!y.empty(a.publisherId)||y.url(a.tagUrl))}get tagUrl(){const{config:a}=this;return y.url(a.tagUrl)?a.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Bl({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:a.publisherId})}`}}function Tl(e=0,a=0,t=255){return Math.min(Math.max(e,a),t)}const p_=e=>{const a=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(s=>{if(y.number(n.startTime)){if(!y.empty(s.trim())&&y.empty(n.text)){const i=s.trim().split("#xywh=");[n.text]=i,i[1]&&([n.x,n.y,n.w,n.h]=i[1].split(","))}}else{const i=s.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);i&&(n.startTime=60*Number(i[1]||0)*60+60*Number(i[2])+Number(i[3])+ +`0.${i[4]}`,n.endTime=60*Number(i[6]||0)*60+60*Number(i[7])+Number(i[8])+ +`0.${i[9]}`)}}),n.text&&a.push(n)}),a},vl=(e,a)=>{const t={};return e>a.width/a.height?(t.width=a.width,t.height=1/e*a.width):(t.height=a.height,t.width=e*a.height),t};class Ln{constructor(a){V(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),V(this,"getThumbnails",()=>new Promise(t=>{const{src:n}=this.player.config.previewThumbnails;if(y.empty(n))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((i,r)=>i.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(y.function(n))n(i=>{this.thumbnails=i,s()});else{const i=(y.string(n)?[n]:n).map(r=>this.getThumbnail(r));Promise.all(i).then(s)}})),V(this,"getThumbnail",t=>new Promise(n=>{qt(t).then(s=>{const i={frames:p_(s),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{i.height=r.naturalHeight,i.width=r.naturalWidth,this.thumbnails.push(i),n()},r.src=i.urlPrefix+i.frames[0].text})})),V(this,"startMove",t=>{if(this.loaded&&y.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var n,s;const i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=zo(this.seekTime);const l=(n=this.player.config.markers)===null||n===void 0||(s=n.points)===null||s===void 0?void 0:s.find(({time:u})=>u===Math.round(this.seekTime));l&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${l.label}<br>`)}this.showImageAtCurrentTime()}}),V(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),V(this,"startScrubbing",t=>{(y.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),V(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Tn.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),V(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),V(this,"render",()=>{this.elements.thumb.container=M("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=M("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=M("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=M("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),y.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=M("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),V(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),V(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(i=>this.seekTime>=i.startTime&&this.seekTime<=i.endTime),n=t>=0;let s=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((i,r)=>{this.loadedImages.includes(i.frames[t].text)&&(s=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(s)))}),V(this,"loadImage",(t=0)=>{const n=this.showingThumb,s=this.thumbnails[t],{urlPrefix:i}=s,r=s.frames[n],l=s.frames[n].text,u=i+l;if(this.currentImageElement&&this.currentImageElement.dataset.filename===l)this.showImage(this.currentImageElement,r,t,n,l,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const c=new Image;c.src=u,c.dataset.index=n,c.dataset.filename=l,this.showingThumbFilename=l,this.player.debug.log(`Loading image: ${u}`),c.onload=()=>this.showImage(c,r,t,n,l,!0),this.loadingImage=c,this.removeOldImages(c)}}),V(this,"showImage",(t,n,s,i,r,l=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${i}. qual: ${s}. newimg: ${l}`),this.setImageSizeAndOffset(t,n),l&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(s,t,n,r))}),V(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(n=>{if(n.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(n.dataset.index!==t.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;const{currentImageContainer:i}=this;setTimeout(()=>{i.removeChild(n),this.player.debug.log(`Removing thumb: ${n.dataset.filename}`)},s)}})}),V(this,"preloadNearby",(t,n=!0)=>new Promise(s=>{setTimeout(()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let r;r=n?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let l=!1;r.forEach(u=>{const c=u.text;if(c!==i&&!this.loadedImages.includes(c)){l=!0,this.player.debug.log(`Preloading thumb filename: ${c}`);const{urlPrefix:m}=this.thumbnails[0],h=m+c,f=new Image;f.src=h,f.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${c}`),this.loadedImages.includes(c)||this.loadedImages.push(c),s()}}}),l||s()}},300)})),V(this,"getHigherQuality",(t,n,s,i)=>{if(t<this.thumbnails.length-1){let r=n.naturalHeight;this.usingSprites&&(r=s.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(t+1))},300)}}),V(this,"toggleThumbContainer",(t=!1,n=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,t),!t&&n&&(this.showingThumb=null,this.showingThumbFilename=null)}),V(this,"toggleScrubbingContainer",(t=!1)=>{const n=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(n,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),V(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),V(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const n=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${n}px`}else if(t.clientHeight<20&&t.clientWidth>20){const n=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${n}px`}}else{const n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${n}px`}this.setThumbContainerPos()}),V(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),n=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,i=n.left-t.left+10,r=n.right-t.left-s.clientWidth-10,l=this.mousePosX-t.left-s.clientWidth/2,u=Tl(l,i,r);s.style.left=`${u}px`,s.style.setProperty("--preview-arrow-offset",l-u+"px")}),V(this,"setScrubbingContainerSize",()=>{const{width:t,height:n}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${n}px`}),V(this,"setImageSizeAndOffset",(t,n)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/n.h;t.style.height=t.naturalHeight*s+"px",t.style.width=t.naturalWidth*s+"px",t.style.left=`-${n.x*s}px`,t.style.top=`-${n.y*s}px`}),this.player=a,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:a}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return a}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(a){this.mouseDown?this.currentScrubbingImageElement=a:this.currentThumbnailImageElement=a}}const zn={insertElements(e,a){y.string(a)?hl(e,this.media,{src:a}):y.array(a)&&a.forEach(t=>{hl(e,this.media,t)})},change(e){ml(e,"sources.length")?(mt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],st(this.media),this.media=null,y.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:a,type:t}=e,[{provider:n=ut.html5,src:s}]=a,i=n==="html5"?t:"div",r=n==="html5"?{}:{src:s};Object.assign(this,{provider:n,type:t,supported:ue.check(t,n,this.config.playsinline),media:M(i,r)}),this.elements.container.appendChild(this.media),y.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),y.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),oe.addStyleHook.call(this),this.isHTML5&&zn.insertElements.call(this,"source",a),this.config.title=e.title,Nl.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&zn.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.isHTML5&&this.media.load(),y.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Zt{constructor(a,t){if(V(this,"play",()=>y.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>Qe(this.media.play())),this.media.play()):null),V(this,"pause",()=>this.playing&&y.function(this.media.pause)?this.media.pause():null),V(this,"togglePlay",l=>(y.boolean(l)?l:!this.playing)?this.play():this.pause()),V(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):y.function(this.media.stop)&&this.media.stop()}),V(this,"restart",()=>{this.currentTime=0}),V(this,"rewind",l=>{this.currentTime-=y.number(l)?l:this.config.seekTime}),V(this,"forward",l=>{this.currentTime+=y.number(l)?l:this.config.seekTime}),V(this,"increaseVolume",l=>{const u=this.media.muted?0:this.volume;this.volume=u+(y.number(l)?l:0)}),V(this,"decreaseVolume",l=>{this.increaseVolume(-l)}),V(this,"airplay",()=>{ue.airplay&&this.media.webkitShowPlaybackTargetPicker()}),V(this,"toggleControls",l=>{if(this.supported.ui&&!this.isAudio){const u=Po(this.elements.container,this.config.classNames.hideControls),c=l===void 0?void 0:!l,m=Q(this.elements.container,this.config.classNames.hideControls,c);if(m&&y.array(this.config.controls)&&this.config.controls.includes("settings")&&!y.empty(this.config.settings)&&A.toggleMenu.call(this,!1),m!==u){const h=m?"controlshidden":"controlsshown";j.call(this,this.media,h)}return!m}return!1}),V(this,"on",(l,u)=>{X.call(this,this.elements.container,l,u)}),V(this,"once",(l,u)=>{Tn.call(this,this.elements.container,l,u)}),V(this,"off",(l,u)=>{Ro(this.elements.container,l,u)}),V(this,"destroy",(l,u=!1)=>{if(!this.ready)return;const c=()=>{document.body.style.overflow="",this.embed=null,u?(Object.keys(this.elements).length&&(st(this.elements.buttons.play),st(this.elements.captions),st(this.elements.controls),st(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),y.function(l)&&l()):(qS.call(this),mt.cancelRequests.call(this),Io(this.elements.original,this.elements.container),j.call(this,this.elements.original,"destroyed",!0),y.function(l)&&l.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(oe.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&y.function(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(c),setTimeout(c,200))}),V(this,"supports",l=>ue.mime.call(this,l)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ue.touch,this.media=a,y.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||y.nodeList(this.media)||y.array(this.media))&&(this.media=this.media[0]),this.config=me({},xl,Zt.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new i_(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ue),y.nullOrUndefined(this.media)||!y.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ue.check().api)return void this.debug.error("Setup failed: no support");const n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;const s=this.media.tagName.toLowerCase();let i=null,r=null;switch(s){case"div":if(i=this.media.querySelector("iframe"),y.element(i)){if(r=El(i.getAttribute("src")),this.provider=n_(r.toString()),this.elements.container=this.media,this.media=i,this.elements.container.className="",r.search.length){const l=["1","true"];l.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(y.empty(this.provider)||!Object.values(ut).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=$n.video;break;case"video":case"audio":this.type=s,this.provider=ut.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ue.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new s_(this),this.storage=new Gt(this),this.media.plyr=this,y.element(this.elements.container)||(this.elements.container=M("div"),ul(this.media,this.elements.container)),oe.migrateStyles.call(this),oe.addStyleHook.call(this),Nl.setup.call(this),this.config.debug&&X.call(this,this.elements.container,this.config.events.join(" "),l=>{this.debug.log(`event: ${l.type}`)}),this.fullscreen=new We(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new h_(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>Qe(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===ut.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===ut.youtube}get isVimeo(){return this.provider===ut.vimeo}get isVideo(){return this.type===$n.video}get isAudio(){return this.type===$n.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(a){if(!this.duration)return;const t=y.number(a)&&a>0;this.media.currentTime=t?Math.min(a,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:a}=this.media;return y.number(a)?a:a&&a.length&&this.duration>0?a.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const a=parseFloat(this.config.duration),t=(this.media||{}).duration,n=y.number(t)&&t!==1/0?t:0;return a||n}set volume(a){let t=a;y.string(t)&&(t=Number(t)),y.number(t)||(t=this.storage.get("volume")),y.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!y.empty(a)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(a){let t=a;y.boolean(t)||(t=this.storage.get("muted")),y.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(a){let t=null;y.number(a)&&(t=a),y.number(t)||(t=this.storage.get("speed")),y.number(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:s}=this;t=Tl(t,n,s),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(a){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let s=[!y.empty(a)&&Number(a),this.storage.get("quality"),t.selected,t.default].find(y.number),i=!0;if(!n.includes(s)){const r=gl(n,s);this.debug.warn(`Unsupported quality option: ${s}, using ${r} instead`),s=r,i=!1}t.selected=s,this.media.quality=s,i&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(a){const t=y.boolean(a)?a:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(a){zn.change.call(this,a)}get source(){return this.media.currentSrc}get download(){const{download:a}=this.config.urls;return y.url(a)?a:this.source}set download(a){y.url(a)&&(this.config.urls.download=a,A.setDownloadUrl.call(this))}set poster(a){this.isVideo?oe.setPoster.call(this,a,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const a=Lo(On.call(this));return y.array(a)?a.join(":"):a}set ratio(a){this.isVideo?y.string(a)&&bl(a)?(this.config.ratio=Lo(a),Bt.call(this)):this.debug.error(`Invalid aspect ratio specified (${a})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(a){this.config.autoplay=y.boolean(a)?a:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(a){Y.toggle.call(this,a,!1)}set currentTrack(a){Y.set.call(this,a,!1),Y.setup.call(this)}get currentTrack(){const{toggled:a,currentTrack:t}=this.captions;return a?t:-1}set language(a){Y.setLanguage.call(this,a,!1)}get language(){return(Y.getCurrentTrack.call(this)||{}).language}set pip(a){if(!ue.pip)return;const t=y.boolean(a)?a:!this.pip;y.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Vn.active:Vn.inactive),y.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ue.pip?y.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Vn.active:null}setPreviewThumbnails(a){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,a),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))}static supported(a,t){return ue.check(a,t)}static loadSprite(a,t){return kl(a,t)}static setup(a,t={}){let n=null;return y.string(a)?n=Array.from(document.querySelectorAll(a)):y.nodeList(a)?n=Array.from(a):y.array(a)&&(n=a.filter(y.element)),y.empty(n)?null:n.map(s=>new Zt(s,t))}}Zt.defaults=WS(xl);const g_={class:"carousel-video-player"},f_={class:"video-container"},y_=["id"],b_=Ne({__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0}},emits:["play-ended"],setup(e,{emit:a}){const t=e,n=o.ref(null),s=o.computed(()=>`p-${t.play.playId}`);function i(){n.value=new Zt(`#${s.value}`,{controls:["play","volume","settings","progress"],autoplay:!1,playsinline:!0}),n.value.source={type:"video",sources:[{src:t.play.video_link,type:"video/mp4"}]},n.value.isDestroyed=!1,t.play.videoPlayer=n.value,t.play.plyrInit=i,n.value.on("webkitfullscreenchange",r()),n.value.on("mozfullscreenchange",r()),n.value.on("fullscreenchange",r())}function r(){const l=this;return()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),setTimeout(()=>{l.$emit("full-screen-change")},100)}}return o.onMounted(()=>{setTimeout(()=>{i()},100)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",g_,[o.createElementVNode("div",f_,[o.createElementVNode("video",{id:s.value,controls:"",preload:"auto","data-setup":"{}"},null,8,y_)])]))}},[["__scopeId","data-v-0d5827c5"]]),Ol=e=>(o.pushScopeId("data-v-780b5e6a"),e=e(),o.popScopeId(),e),w_={class:"carousel-full-screen",id:"carousel-swipe"},S_=[Ol(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),o.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],__={class:"carousel-full-screen__carousel"},k_=Ol(()=>o.createElementVNode("div",null,"holi",-1)),C_={class:"carousel-full-screen__carousel__video-player"},Fn=2,E_=Ne({__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:a}){const t=e;let n=0,s=new Map;const i=o.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),r=o.ref(null),l=o.ref([]);o.watch(()=>t.playerQueue,h=>{h.length&&(l.value=h.map((f,d)=>(f.index=d,f)),n=t.playlistIndex,s=new Map(l.value.map(f=>[f.index,f])))},{immediate:!0});function u({selectedItem:h,selectedItemIndex:f}){if(n!==h.index){const d=h.index-n;n=h.index;const p=s.get(n+d*-1),g=s.get(n);if(p&&p.videoPlayer&&p.videoPlayer.pause(),g&&g.videoPlayer&&g.videoPlayer.play(),d>0){const b=s.get(n+Fn),S=s.get(n+1),_=s.get(n-Fn);b&&(l.value.find(O=>O.index===b.index)||l.value.push(b)),S&&S.videoPlayer&&S.videoPlayer.isDestroyed&&S.plyrInit(),_&&_.videoPlayer&&(_.videoPlayer.pause(),_.videoPlayer.src="",_.videoPlayer.destroy(),_.videoPlayer.isDestroyed=!0)}else if(d<0){const b=s.get(n-1),S=s.get(n+Fn);b&&b.videoPlayer&&b.videoPlayer.isDestroyed&&b.plyrInit(),S&&S.videoPlayer&&(S.videoPlayer.pause(),S.videoPlayer.src="",S.videoPlayer.destroy(),S.videoPlayer.isDestroyed=!0)}}}function c(){r.value&&r.value.next()}function m(){a("close",n)}return o.onMounted(()=>{setTimeout(()=>{const h=document.getElementsByClassName("video-element");h&&h.length&&Array.from(h).forEach((f,d)=>{f.id=`plyrFS${d+1}`})},100)}),o.onBeforeUnmount(()=>{t.playerQueue.forEach(h=>{h.videoPlayer&&(h.videoPlayer.pause(),h.videoPlayer.destroy())})}),(h,f)=>(o.openBlock(),o.createElementBlock("div",w_,[o.createElementVNode("div",{class:"carousel-full-screen__close",onClick:m},S_),o.createElementVNode("div",__,[o.createVNode(o.unref(dS),o.mergeProps({ref_key:"gscCarousel",ref:r},i.value,{items:l.value,onInput:u}),{default:o.withCtx(({item:d})=>[k_,o.createElementVNode("div",C_,[o.createVNode(b_,{play:d,onPlayEnded:c},null,8,["play"])])]),_:1},16,["items"])])]))}},[["__scopeId","data-v-780b5e6a"]]),Al={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Vl={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},$l={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},B_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Mn={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))}}},Il=()=>{o.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}))},Pl=Mn.setup;Mn.setup=Pl?(e,a)=>(Il(),Pl(e,a)):Il;const x_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),N_=["src"],T_={key:1,class:"text"},v_=["src"],O_={class:"stats"},A_=x_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),V_={class:"numstats"},$_={class:"leyend"};function I_(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,N_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",T_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,v_)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",O_,[A_,o.createElementVNode("div",V_,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",$_,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const P_=B_(Mn,[["render",I_],["__scopeId","data-v-fb269a1e"]]),R_={class:"gsc-dropdown__main-container__item-selected"},L_=["height","width"],z_=["stroke"],F_={class:"gsc-dropdown__items-container"},M_=["onClick"],D_={key:0,class:"gsc-dropdown__items-footer"},j_={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",R_,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,z_)],8,L_))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",F_,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,M_))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",D_,[o.createVNode(o.unref(P_),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},W_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},U_={class:"tournament-select__selected-tournament"},H_={class:"tournament-select__selected-tournament__logo"},G_=["src"],q_={class:"tournament-select__selected-tournament__name"},J_={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const h={};return t.fontFamily&&(h["font-family"]=`${t.fontFamily}`),h}),i=o.computed(()=>n.value.find(h=>h.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const h=await u();n.value=h.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,p)=>(d.add(p.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(h){throw new Error(h)}}function l(h){const f=new XMLHttpRequest,d=`${t.logosUrl}${h}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(h){return Promise.reject(h)}}function c(h){a("input",h)}function m(h){a("input",h)}return o.onMounted(()=>{r()}),(h,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(j_),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",U_,[o.createElementVNode("div",H_,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,G_)):o.createCommentVNode("",!0)]),o.createElementVNode("div",q_,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},K_=W_(J_,[["__scopeId","data-v-355af272"]]),Z_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Dn={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))}}},Rl=()=>{o.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}))},Ll=Dn.setup;Dn.setup=Ll?(e,a)=>(Rl(),Ll(e,a)):Rl;const X_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),Y_=["src"],Q_={key:1,class:"text"},ek=["src"],tk={class:"stats"},ok=X_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ak={class:"numstats"},nk={class:"leyend"};function ik(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Y_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Q_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,ek)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",tk,[ok,o.createElementVNode("div",ak,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",nk,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const sk=Z_(Dn,[["render",ik],["__scopeId","data-v-fb269a1e"]]),rk={class:"gsc-dropdown__main-container__item-selected"},lk=["height","width"],ck=["stroke"],dk={class:"gsc-dropdown__items-container"},mk=["onClick"],uk={key:0,class:"gsc-dropdown__items-footer"},hk={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",rk,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,ck)],8,lk))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",dk,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,mk))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",uk,[o.createVNode(o.unref(sk),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},pk=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},gk={class:"season-name"},fk={class:"items-list-season"},yk={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(hk),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",gk,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",fk,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},bk=pk(yk,[["__scopeId","data-v-3a11087d"]]);function zl(e,a){return function(){return e.apply(a,arguments)}}const{toString:wk}=Object.prototype,{getPrototypeOf:jn}=Object,Do=(e=>a=>{const t=wk.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),et=e=>(e=e.toLowerCase(),a=>Do(a)===e),jo=e=>a=>typeof a===e,{isArray:xt}=Array,Xt=jo("undefined");function Sk(e){return e!==null&&!Xt(e)&&e.constructor!==null&&!Xt(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fl=et("ArrayBuffer");function _k(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Fl(e.buffer),a}const kk=jo("string"),Me=jo("function"),Ml=jo("number"),Wo=e=>e!==null&&typeof e=="object",Ck=e=>e===!0||e===!1,Uo=e=>{if(Do(e)!=="object")return!1;const a=jn(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ek=et("Date"),Bk=et("File"),xk=et("Blob"),Nk=et("FileList"),Tk=e=>Wo(e)&&Me(e.pipe),vk=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((a=Do(e))==="formdata"||a==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Ok=et("URLSearchParams"),Ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Dl(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Xt(e)&&e!==jl;function Wn(){const{caseless:e}=Wl(this)&&this||{},a={},t=(n,s)=>{const i=e&&Dl(a,s)||s;Uo(a[i])&&Uo(n)?a[i]=Wn(a[i],n):Uo(n)?a[i]=Wn({},n):xt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Yt(arguments[n],t);return a}const Vk=(e,a,t,{allOwnKeys:n}={})=>(Yt(a,(s,i)=>{t&&Me(s)?e[i]=zl(s,t):e[i]=s},{allOwnKeys:n}),e),$k=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ik=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Pk=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&jn(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Rk=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Lk=e=>{if(!e)return null;if(xt(e))return e;let a=e.length;if(!Ml(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},zk=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&jn(Uint8Array)),Fk=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Mk=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Dk=et("HTMLFormElement"),jk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Ul=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),Wk=et("RegExp"),Hl=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Yt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Uk=e=>{Hl(e,(a,t)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Hk=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return xt(e)?n(e):n(String(e).split(a)),t},Gk=()=>{},qk=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Un="abcdefghijklmnopqrstuvwxyz",Gl="0123456789",ql={DIGIT:Gl,ALPHA:Un,ALPHA_DIGIT:Un+Un.toUpperCase()+Gl},Jk=(e=16,a=ql.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function Kk(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zk=e=>{const a=new Array(10),t=(n,s)=>{if(Wo(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xt(n)?[]:{};return Yt(n,(r,l)=>{const u=t(r,s+1);!Xt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},Xk=et("AsyncFunction"),Yk=e=>e&&(Wo(e)||Me(e))&&Me(e.then)&&Me(e.catch),B={isArray:xt,isArrayBuffer:Fl,isBuffer:Sk,isFormData:vk,isArrayBufferView:_k,isString:kk,isNumber:Ml,isBoolean:Ck,isObject:Wo,isPlainObject:Uo,isUndefined:Xt,isDate:Ek,isFile:Bk,isBlob:xk,isRegExp:Wk,isFunction:Me,isStream:Tk,isURLSearchParams:Ok,isTypedArray:zk,isFileList:Nk,forEach:Yt,merge:Wn,extend:Vk,trim:Ak,stripBOM:$k,inherits:Ik,toFlatObject:Pk,kindOf:Do,kindOfTest:et,endsWith:Rk,toArray:Lk,forEachEntry:Fk,matchAll:Mk,isHTMLForm:Dk,hasOwnProperty:Ul,hasOwnProp:Ul,reduceDescriptors:Hl,freezeMethods:Uk,toObjectSet:Hk,toCamelCase:jk,noop:Gk,toFiniteNumber:qk,findKey:Dl,global:jl,isContextDefined:Wl,ALPHABET:ql,generateString:Jk,isSpecCompliantForm:Kk,toJSONObject:Zk,isAsyncFn:Xk,isThenable:Yk};function K(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}B.inherits(K,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jl=K.prototype,Kl={};["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=>{Kl[e]={value:e}}),Object.defineProperties(K,Kl),Object.defineProperty(Jl,"isAxiosError",{value:!0}),K.from=(e,a,t,n,s,i)=>{const r=Object.create(Jl);return B.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),K.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Qk=null;function Hn(e){return B.isPlainObject(e)||B.isArray(e)}function Zl(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Xl(e,a,t){return e?e.concat(a).map(function(n,s){return n=Zl(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function e5(e){return B.isArray(e)&&!e.some(Hn)}const t5=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(e,a,t){if(!B.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=B.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!B.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(a);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(B.isDate(d))return d.toISOString();if(!l&&B.isBlob(d))throw new K("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(d)||B.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(B.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(B.isArray(d)&&e5(d)||(B.isFileList(d)||B.endsWith(p,"[]"))&&(b=B.toArray(d)))return p=Zl(p),b.forEach(function(S,_){!(B.isUndefined(S)||S===null)&&a.append(r===!0?Xl([p],_,i):r===null?p:p+"[]",u(S))}),!1}return Hn(d)?!0:(a.append(Xl(g,p,i),u(d)),!1)}const m=[],h=Object.assign(t5,{defaultVisitor:c,convertValue:u,isVisitable:Hn});function f(d,p){if(!B.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),B.forEach(d,function(g,b){(!(B.isUndefined(g)||g===null)&&s.call(a,g,B.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return f(e),a}function Yl(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Gn(e,a){this._pairs=[],e&&Ho(e,this,a)}const Ql=Gn.prototype;Ql.append=function(e,a){this._pairs.push([e,a])},Ql.toString=function(e){const a=e?function(t){return e.call(this,t,Yl)}:Yl;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function o5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,a,t){if(!a)return e;const n=t&&t.encode||o5,s=t&&t.serialize;let i;if(s?i=s(a,t):i=B.isURLSearchParams(a)?a.toString():new Gn(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class a5{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){B.forEach(this.handlers,function(t){t!==null&&a(t)})}}const tc=a5,oc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},n5=typeof URLSearchParams<"u"?URLSearchParams:Gn,i5=typeof FormData<"u"?FormData:null,s5=typeof Blob<"u"?Blob:null,r5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),l5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tt={isBrowser:!0,classes:{URLSearchParams:n5,FormData:i5,Blob:s5},isStandardBrowserEnv:r5,isStandardBrowserWebWorkerEnv:l5,protocols:["http","https","file","blob","url","data"]};function c5(e,a){return Ho(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return tt.isNode&&B.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function d5(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function m5(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function ac(e){function a(t,n,s,i){let r=t[i++];const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&B.isArray(s)?s.length:r,u?(B.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!B.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&B.isArray(s[r])&&(s[r]=m5(s[r])),!l)}if(B.isFormData(e)&&B.isFunction(e.entries)){const t={};return B.forEachEntry(e,(n,s)=>{a(d5(n),s,t,0)}),t}return null}function u5(e,a,t){if(B.isString(e))try{return(a||JSON.parse)(e),B.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const qn={transitional:oc,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return n&&n?JSON.stringify(ac(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return c5(e,this.formSerializer).toString();if((i=B.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Ho(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),u5(e)):e}],transformResponse:[function(e){const a=this.transitional||qn.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&B.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?K.from(i,K.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{qn.headers[e]={}});const Jn=qn,h5=B.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"]),p5=e=>{const a={};let t,n,s;return e&&e.split(`
38
- `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&h5[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},nc=Symbol("internals");function Qt(e){return e&&String(e).trim().toLowerCase()}function Go(e){return e===!1||e==null?e:B.isArray(e)?e.map(Go):String(e)}function g5(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const f5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kn(e,a,t,n,s){if(B.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!B.isString(a)){if(B.isString(n))return a.indexOf(n)!==-1;if(B.isRegExp(n))return n.test(a)}}function y5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function b5(e,a){const t=B.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class qo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Qt(u);if(!m)throw new Error("header name must be a non-empty string");const h=B.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=Go(l))}const r=(l,u)=>B.forEach(l,(c,m)=>i(c,m,u));return B.isPlainObject(a)||a instanceof this.constructor?r(a,t):B.isString(a)&&(a=a.trim())&&!f5(a)?r(p5(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return g5(s);if(B.isFunction(t))return t.call(this,s,n);if(B.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Kn(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Qt(r),r){const l=B.findKey(n,r);l&&(!t||Kn(n,n[l],l,t))&&(delete n[l],s=!0)}}return B.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Kn(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return B.forEach(this,(s,i)=>{const r=B.findKey(n,i);if(r){t[r]=Go(s),delete t[i];return}const l=a?y5(i):String(i).trim();l!==i&&delete t[i],t[l]=Go(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return B.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&B.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
39
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[nc]=this[nc]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Qt(i);t[r]||(b5(n,i),t[r]=!0)}return B.isArray(a)?a.forEach(s):s(a),this}}qo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(qo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),B.freezeMethods(qo);const rt=qo;function Zn(e,a){const t=this||Jn,n=a||t,s=rt.from(n.headers);let i=n.data;return B.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function ic(e){return!!(e&&e.__CANCEL__)}function eo(e,a,t){K.call(this,e??"canceled",K.ERR_CANCELED,a,t),this.name="CanceledError"}B.inherits(eo,K,{__CANCEL__:!0});function w5(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const S5=tt.isStandardBrowserEnv?function(){return{write:function(e,a,t,n,s,i){const r=[];r.push(e+"="+encodeURIComponent(a)),B.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),B.isString(n)&&r.push("path="+n),B.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function _5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k5(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function sc(e,a){return e&&!_5(a)?k5(e,a):a}const C5=tt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=B.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function E5(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function B5(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function rc(e,a){let t=0;const n=B5(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const x5=typeof XMLHttpRequest<"u",N5=x5&&function(e){return new Promise(function(a,t){let n=e.data;const s=rt.from(e.headers).normalize(),i=e.responseType;let r;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}let u;B.isFormData(n)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?B.isString(u=s.getContentType())&&s.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(d+":"+p))}const m=sc(e.baseURL,e.url);c.open(e.method.toUpperCase(),ec(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const d=rt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};w5(function(g){a(g),l()},function(g){t(g),l()},p),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(t(new K("Request aborted",K.ECONNABORTED,e,c)),c=null)},c.onerror=function(){t(new K("Network Error",K.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||oc;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),t(new K(d,p.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,c)),c=null},tt.isStandardBrowserEnv){const d=(e.withCredentials||C5(m))&&e.xsrfCookieName&&S5.read(e.xsrfCookieName);d&&s.set(e.xsrfHeaderName,d)}n===void 0&&s.setContentType(null),"setRequestHeader"in c&&B.forEach(s.toJSON(),function(d,p){c.setRequestHeader(p,d)}),B.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",rc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",rc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=d=>{c&&(t(!d||d.type?new eo(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const f=E5(m);if(f&&tt.protocols.indexOf(f)===-1){t(new K("Unsupported protocol "+f+":",K.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Xn={http:Qk,xhr:N5};B.forEach(Xn,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const lc=e=>`- ${e}`,T5=e=>B.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!T5(t)&&(n=Xn[(r=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
40
- `+i.map(lc).join(`
41
- `):" "+lc(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Xn};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function dc(e){return Yn(e),e.headers=rt.from(e.headers),e.data=Zn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||Jn.adapter)(e).then(function(a){return Yn(e),a.data=Zn.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return ic(a)||(Yn(e),a&&a.response&&(a.response.data=Zn.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const mc=e=>e instanceof rt?e.toJSON():e;function Nt(e,a){a=a||{};const t={};function n(c,m,h){return B.isPlainObject(c)&&B.isPlainObject(m)?B.merge.call({caseless:h},c,m):B.isPlainObject(m)?B.merge({},m):B.isArray(m)?m.slice():m}function s(c,m,h){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!B.isUndefined(m))return n(void 0,m)}function r(c,m){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(mc(c),mc(m),!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);B.isUndefined(h)&&m!==l||(t[c]=h)}),t}const uc="1.5.1",Qn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Qn[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const hc={};Qn.transitional=function(e,a,t){function n(s,i){return"[Axios v"+uc+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new K(n(i," has been removed"+(a?" in "+a:"")),K.ERR_DEPRECATED);return a&&!hc[i]&&(hc[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function v5(e,a,t){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const ei={assertOptions:v5,validators:Qn},ht=ei.validators;class Jo{constructor(a){this.defaults=a,this.interceptors={request:new tc,response:new tc}}request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ei.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),s!=null&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:ei.assertOptions(s,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=rt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[dc.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=dc.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Nt(this.defaults,a);const t=sc(a.baseURL,a.url);return ec(t,a.params,a.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){Jo.prototype[e]=function(a,t){return this.request(Nt(t||{},{method:e,url:a,data:(t||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Jo.prototype[e]=a(),Jo.prototype[e+"Form"]=a(!0)});const Ko=Jo;class ti{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new eo(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ti(function(t){a=t}),cancel:a}}}const O5=ti;function A5(e){return function(a){return e.apply(null,a)}}function V5(e){return B.isObject(e)&&e.isAxiosError===!0}const oi={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(oi).forEach(([e,a])=>{oi[a]=e});const $5=oi;function pc(e){const a=new Ko(e),t=zl(Ko.prototype.request,a);return B.extend(t,Ko.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return pc(Nt(e,n))},t}const ge=pc(Jn);ge.Axios=Ko,ge.CanceledError=eo,ge.CancelToken=O5,ge.isCancel=ic,ge.VERSION=uc,ge.toFormData=Ho,ge.AxiosError=K,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=A5,ge.isAxiosError=V5,ge.mergeConfig=Nt,ge.AxiosHeaders=rt,ge.formToJSON=e=>ac(B.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=cc.getAdapter,ge.HttpStatusCode=$5,ge.default=ge;const gc=ge,I5=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ai={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},fc=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},yc=ai.setup;ai.setup=yc?(e,a)=>(fc(),yc(e,a)):fc;const P5={ref:"gscScrollableContainer",class:"scrollable-container"},R5={class:"scrollable-arrows"},L5=["width","height","viewBox"],z5=["stroke"],F5={class:"scrollable-wrapper"},M5={class:"scrollable-arrows"},D5=["width","height","viewBox"],j5=["stroke"];function W5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",P5,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",R5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,z5)],8,L5))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",F5,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",M5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,j5)],8,D5))])],2)):o.createCommentVNode("",!0)],512)}const U5=I5(ai,[["render",W5],["__scopeId","data-v-b548a08d"]]),yt=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t};let bc=null;const ni={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)bc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},wc=()=>{o.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},Sc=ni.setup;ni.setup=Sc?(e,a)=>(wc(),Sc(e,a)):wc;const Zo=e=>(o.pushScopeId("data-v-45034b51"),e=e(),o.popScopeId(),e),H5=Zo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),G5=[H5],q5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),J5=["src"],K5=Zo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Z5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),X5=["src"],Y5=["src"],Q5={class:"text-container"};function eC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},G5,2),t.dateGame!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.date)},o.toDisplayString(t.dateGame),3)):o.createCommentVNode("",!0),t.matchday!=""&&t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.containerinfogame)},[t.matchday!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.matchcontainer)},o.toDisplayString(t.matchday),3)):o.createCommentVNode("",!0),t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.seasoncontainer)},o.toDisplayString(t.seasonName),3)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),q5,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,J5),o.createElementVNode("div",{class:o.normalizeClass([i.baselogo,"position-image"])},null,2),o.createElementVNode("div",{class:o.normalizeClass(i.baselogoright)},null,2),K5,Z5,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,X5),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.logoright)},null,10,Y5),o.createElementVNode("div",Q5,[o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.score),3),o.createElementVNode("div",{class:o.normalizeClass(i.titlename)},o.toDisplayString(t.titleCategory),3)])],2)}const tC=yt(ni,[["render",eC],["__scopeId","data-v-45034b51"]]);let _c=null;const ii={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kc=()=>{o.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},Cc=ii.setup;ii.setup=Cc?(e,a)=>(kc(),Cc(e,a)):kc;const to=e=>(o.pushScopeId("data-v-9caaef34"),e=e(),o.popScopeId(),e),oC=to(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),aC=[oC],nC=to(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),iC=["src"],sC=to(()=>o.createElementVNode("div",{class:"base-logo"},null,-1)),rC=["src"],lC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cC={class:"text-container"},dC={class:"player-image position-image"},mC=["src"],uC=["src"],hC=["src"],pC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function gC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},aC,2),nC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,iC),sC,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,rC),lC,o.createElementVNode("div",cC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},o.toDisplayString(t.namePlayer),3),o.createElementVNode("span",{class:o.normalizeClass(i.secondline),style:o.normalizeStyle(t.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},o.toDisplayString(t.nameCategory),7)]),o.createElementVNode("div",dC,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,mC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,uC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,hC)):o.createCommentVNode("",!0)]),pC],2)}const fC=yt(ii,[["render",gC],["__scopeId","data-v-9caaef34"]]);let Ec=null;const si={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ec=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ec.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Bc=()=>{o.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},xc=si.setup;si.setup=xc?(e,a)=>(Bc(),xc(e,a)):Bc;const Xo=e=>(o.pushScopeId("data-v-ca6c08d9"),e=e(),o.popScopeId(),e),yC=Xo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),bC=[yC],wC=Xo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),SC=["src"],_C={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},kC=["fill"],CC=["id"],EC=["stop-color"],BC=["stop-color"],xC=["src"],NC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),TC={class:"text-container"},vC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function OC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},bC,2),wC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,SC),(o.openBlock(),o.createElementBlock("svg",_C,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,kC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundHome},null,8,EC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundHome},null,8,BC)],8,CC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,xC),NC,o.createElementVNode("div",TC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Local"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),vC],2)}const AC=yt(si,[["render",OC],["__scopeId","data-v-ca6c08d9"]]);let Nc=null;const ri={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Nc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Nc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Tc=()=>{o.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},vc=ri.setup;ri.setup=vc?(e,a)=>(Tc(),vc(e,a)):Tc;const Yo=e=>(o.pushScopeId("data-v-49b4e56b"),e=e(),o.popScopeId(),e),VC=Yo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$C=[VC],IC=Yo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),PC=["src"],RC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},LC=["fill"],zC=["id"],FC=["stop-color"],MC=["stop-color"],DC=["src"],jC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WC={class:"text-container"},UC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function HC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},$C,2),IC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,PC),(o.openBlock(),o.createElementBlock("svg",RC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,LC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundAway},null,8,FC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundAway},null,8,MC)],8,zC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,DC),jC,o.createElementVNode("div",WC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Away"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),UC],2)}const GC=yt(ri,[["render",HC],["__scopeId","data-v-49b4e56b"]]);let Oc=null;const li={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Oc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Oc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ac=()=>{o.useCssVars(e=>({"78f57c00":e.colorBackgroundHome,"78f26a0f":e.colorBackgroundAway,"4c090560":e.colorBackgroundAway+"62",73887748:e.colorBackgroundHome+"36"}))},Vc=li.setup;li.setup=Vc?(e,a)=>(Ac(),Vc(e,a)):Ac;const Qo=e=>(o.pushScopeId("data-v-e77c3274"),e=e(),o.popScopeId(),e),qC=["width","src"],JC=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),KC=Qo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),ZC=[KC],XC={class:"player-container"},YC=["src"],QC=["src"],e4=["src"],t4={class:"container-score"},o4=["src"],a4=["src"],n4=["src"],i4=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),s4=Qo(()=>o.createElementVNode("div",{class:"gradient-color"},null,-1));function r4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[t.playStatus!=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass((t.playStatus==1,"icon-thumb"))},[o.createElementVNode("img",{width:t.playStatus==1?60:40,src:t.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,qC)],2)):o.createCommentVNode("",!0),JC,o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},ZC,2),o.createElementVNode("div",XC,[t.type==0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(i.texttitle)},o.toDisplayString(t.nameCategory),3)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(i.texttitle2)},o.toDisplayString(t.nameCategory),3)),t.showimg?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,YC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,QC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,e4)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",t4,[o.createElementVNode("div",{class:o.normalizeClass(i.hometeam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameHomeTeam),7),o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,o4),o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreHome),3)],2),o.createElementVNode("span",{class:o.normalizeClass(i.points)},":",2),o.createElementVNode("div",{class:o.normalizeClass(i.awayteam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreAway),3),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,a4),o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameAwayTeam),7)],2)])]),o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,n4),i4,s4],2)}const l4=yt(li,[["render",r4],["__scopeId","data-v-e77c3274"]]);let $c=null;const ci={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)$c=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),$c.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ic=()=>{o.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},Pc=ci.setup;ci.setup=Pc?(e,a)=>(Ic(),Pc(e,a)):Ic;const ea=e=>(o.pushScopeId("data-v-cc315132"),e=e(),o.popScopeId(),e),c4=ea(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),d4=[c4],m4={class:"player-image position-image"},u4=["src"],h4=["src"],p4=["src"],g4=["src"],f4=ea(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),y4=["src"],b4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),w4={class:"text-container"},S4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_4={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k4=["fill"];function C4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},d4,2),o.createElementVNode("div",m4,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,u4)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,h4)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,p4)):o.createCommentVNode("",!0)]),o.createElementVNode("img",{src:t.logoHome,alt:"",class:"team-logo"},null,8,g4),f4,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,y4),b4,o.createElementVNode("div",w4,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},"MEJORES JUGADAS",2),o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3),o.createElementVNode("div",{class:o.normalizeClass(i.playername),style:o.normalizeStyle({color:t.colorFont})},o.toDisplayString(t.namePlayer),7)]),S4,(o.openBlock(),o.createElementBlock("svg",_4,[o.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:t.colorBackgroundHome},null,8,k4)]))],2)}const E4=yt(ci,[["render",C4],["__scopeId","data-v-cc315132"]]);function B4(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const x4="_ptg_lp0fw_5",N4="_ptgtitle_lp0fw_15",T4="_ptgtitle450_lp0fw_47",v4="_pgtcontainercard_lp0fw_79",O4="_pgtcontainercard350_lp0fw_89",A4={ptg:x4,ptgtitle:N4,ptgtitle450:T4,pgtcontainercard:v4,pgtcontainercard350:O4},di={components:{GSCSlider:U5,GSCThumbnailCategory:fC,GSCThumbnailCategoryTeam:AC,GSCThumbnailCategoryTeamAway:GC,GSCThumbnailHighlightGamePlayer:l4,GSCThumbnailSummaryPlayer:E4,GSCThumbnailHighlightGameHistoric:tC},setup(){const e=o.ref("ptgDiv"),{elementSize:a}=B4(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},matchdayView:{type:Number,default:1},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{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{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,flagGames:[],lastseason:0,arrayMatchdays:[],awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.type!=14&&this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],t=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(t=null);const n=[1,2,3];let s={type:e.data.plays_status==0||!e.data.plays_status?0:1,seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:t,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await gc.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let t=0;t<a.data.teams.length;t++)this.teamsInfo[a.data.teams[t].team_id]=a.data.teams[t]},async getStats(e){const a=gc.create({headers:{Authorization:`${this.token}`}});var t=[],n={},s={};if(this.type==0){s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={player_id:e.player,color:s.data.info_thumbnails.colors.background_color,colorfont:s.data.info_thumbnails.colors.font_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.seasons[e.season].games_played[i].game_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:"",category:0,team_id:s.data.team_id,game_id:s.data.seasons[e.season].games_played[i].game_id,position_id:s.data.position_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},t.push(n)}if(this.type==1){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[r],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_teams[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,team_name:this.teamsInfo[s.data.team_id].colloquial_name,team_id:s.data.team_id,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,team_id_b:s.data.team_id,category:s.data.categories[i].categories,season_id:s.data.season_id,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==2){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length);n={player_action:s.data.categories[i].info_thumbnails.images.player_in_action[r]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.player_in_action[r]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,season_id:e.season,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,player_id:e.player,team_id:s.data.categories[i].info_thumbnails.colors.team_id,category:s.data.categories[i].categories,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},t.push(n)}}if(this.type==3){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.games[0].players.length;i++){const r=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:s.data.games[0].players[i].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:s.data.games[0].players[i].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.background_player_in_action[r],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:s.data.games[0].players[i].info_thumbnails.colors.font_color,team_id:s.data.games[0].players[i].team_id,player_id:s.data.games[0].players[i].player_id,game_id:s.data.games[0].game_id,season_id:s.data.season_id,logohome:s.data.games[0].players[i].team_logo,photoprofile:s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.games[0].players[i].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},t.push(n)}}if(this.type==4){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.home_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.home_team.categories[i].info_thumbnails.images.background_default_teams.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.home_team.team_id,category:s.data.home_team.categories[i].categories.concat(s.data.home_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.home_team.team_id+".png",color:s.data.home_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.home_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.home_team.categories[i].category_name,total:s.data.home_team.categories[i].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.home_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==5){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.visiting_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.visiting_team.team_id,category:s.data.visiting_team.categories[i].categories.concat(s.data.visiting_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.visiting_team.team_id+".png",team_name:"Away",color:s.data.visiting_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.visiting_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.visiting_team.categories[i].category_name,total:s.data.visiting_team.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.visiting_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==6){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==7){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==8){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,player_id:s.data.player_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,hometeamacronym:s.data.best_plays[i].home_team_acronym,visitingteamacronym:s.data.best_plays[i].away_team_acronym,seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==9){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,player_id:s.data.player_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==10){const i=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let r=0;r<i.data.seasons[e.season].games.length;r++){const l=Math.floor(Math.random()*i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",player_name:i.data.seasons[e.season].games[r].home_team_acronym+" "+i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score+" "+i.data.seasons[e.season].games[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games[r].game_id,team_id_b:i.data.seasons[e.season].games[r].home_team,season_id:i.data.seasons[e.season].games[r].season_id,name:"",category:0,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.colors.font_color,game_id:i.data.seasons[e.season].games[r].game_id,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games[l],backgroundhome:i.data.seasons[e.season].games[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",total:i.data.seasons[e.season].games[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games[r].home_team+"_"+i.data.seasons[e.season].games[r].season_id+"_r1.jpg"},t.push(n)}}if(this.type==11){const i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)Math.floor(Math.random()*i.data.seasons[e.season].games_played[r].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,color:i.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:i.data.seasons[e.season].games_played[r].player_name,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},t.push(n)}if(this.type==12){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==13){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==14&&(t=[],e.season)){if(this.lastseason!=e.season){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);this.flagGames=[],this.arrayMatchdays=[];for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)i.data[r].best_plays[l].score[0]==0&&i.data[r].best_plays[l].score[1]==0||(n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,plays_status:i.data[r].best_plays[l].plays_status,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,date_time:new Date(i.data[r].best_plays[l].date_time_utc).valueOf(),colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1],matchday_id:i.data[r].best_plays[l].matchday_id},this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]?this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id)):(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]=[],this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id))));t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((r,l)=>r.date_time-l.date_time):[]}else t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((i,r)=>i.date_time-r.date_time):[];this.lastseason=e.season}this.printData=t}},async created(){}},Rc=()=>{o.useCssVars(e=>({"0c805cc5":e.backgroundColor}))},Lc=di.setup;di.setup=Lc?(e,a)=>(Rc(),Lc(e,a)):Rc;function V4(e,a,t,n,s,i){const r=o.resolveComponent("GSCThumbnailCategory"),l=o.resolveComponent("GSCThumbnailCategoryTeam"),u=o.resolveComponent("GSCThumbnailCategoryTeamAway"),c=o.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=o.resolveComponent("GSCThumbnailHighlightGameHistoric"),h=o.resolveComponent("GSCThumbnailSummaryPlayer"),f=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[o.createElementVNode("div",{class:o.normalizeClass(i.ptgtitleClass)},o.toDisplayString(t.title),3),o.createVNode(f,{backgroundColor:t.backgroundColor,pxScroll:t.pxScroll,arrows:t.arrows,arrowsScrollHide:t.arrowsScrollHide,arrowsHideOnNoScroll:t.arrowsHideOnNoScroll,arrowsColor:t.arrowsColor,arrowsHeight:t.arrowsWidth,arrowsWidth:t.arrowsWidth,arrowsPadding:t.arrowsPadding,arrowsMargin:t.arrowsMargin,arrowsRadius:t.arrowsRadius,arrowsBorder:t.arrowsBorder,arrowsBackground:t.arrowsBackground,arrowsContainerBgL:t.arrowsContainerBgL,arrowsContainerBgR:t.arrowsContainerBgR,scrollColor:t.scrollColor,arrowsPosition:t.arrowsPosition,height:t.height},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.printData,(d,p)=>(o.openBlock(),o.createElementBlock("div",{key:p,class:o.normalizeClass(i.pgtcontainercardClass),style:o.normalizeStyle(p==0?"margin-left: 0px !important; color: white;":"")},[t.type==2?(o.openBlock(),o.createBlock(r,{key:0,"color-background-home":d.color,"name-player":t.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):t.type==1||t.type==4?(o.openBlock(),o.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==5?(o.openBlock(),o.createBlock(u,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==0?(o.openBlock(),o.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==6?(o.openBlock(),o.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==7?(o.openBlock(),o.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==8?(o.openBlock(),o.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==9?(o.openBlock(),o.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==10?(o.openBlock(),o.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):t.type==11?(o.openBlock(),o.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):t.type==12?(o.openBlock(),o.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==13?(o.openBlock(),o.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==14?(o.openBlock(),o.createBlock(c,{key:12,items:d,type:2,"play-status":d.plays_status?d.plays_status:0,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,showimg:!1,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","play-status","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(o.openBlock(),o.createBlock(h,{key:13,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const $4={name:"DiscoverVideos",components:{GscSwitchComponent:Ua,GSCPlayerTeamGame:yt(di,[["render",V4],["__cssModules",{$style:A4}]]),GSCButton:jr,MatchDayPicker:Fr},props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},defaultMatchDayKey:{type:String,default:""},isLeagueSelected:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},tournamentScheduleKeys:{type:Array,default:()=>[]},seasonSelected:{type:Object,default:()=>{}}},watch:{tournamentSelected:{immediate:!0,deep:!1,async handler(e){this.myTournament!==e.id?this.currentTabMoreVideos="Goles":this.currentTabMoreVideos="Goles"}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},activeDropGoals:{handler(e){e&&(this.matchDayPickerKey+=1)},immediate:!0}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,activeDropGoals:!1,matchdayActive:{},resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2,matchDayPickerKey:0}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{onChangeMatchDay(e){this.matchdayActive=e,this.$emit("change-match-day",e)},handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let t=1,n=[],s=[],i=0,r=this.user.season,l=[],u=[12,55,"35_r","54_r"],c=[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],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(r=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,t=2):this.user.is_player?(s=[this.user.player],l=c,t=2):(i=this.user.team,l=u,t=3)):(l=u,t=1);const h={type:0,seasonId:r,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:t,gameIds:null,playerIds:s,goalkeeperIds:n,categoryIds:l,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",h)}}},I4=e=>(o.pushScopeId("data-v-26338754"),e=e(),o.popScopeId(),e),P4={class:"discover-videos",ref:"discoverVideosRef"},R4={class:"title-and-button"},L4=I4(()=>o.createElementVNode("div",{class:"title-value"},"Videos",-1)),z4={class:"calendar-container"},F4={class:"drop-down-innercontainer-text"},M4={class:"drop-down-innercontainer-arrow"};function D4(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("MatchDayPicker"),c=o.resolveComponent("GSCPlayerTeamGame");return o.openBlock(),o.createElementBlock("div",P4,[o.createElementVNode("div",R4,[o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"menu-container":"menu-container-movil")},[L4,t.myTournament===t.tournamentSelected.id?(o.openBlock(),o.createBlock(r,{key:0,style:o.normalizeStyle(t.componentWidth>900?"margin-left: 45px":""),buttons:["Goles","Resumen","Proximo rival"],onInput:a[0]||(a[0]=m=>s.currentTabMoreVideos=m),background:"trasparent",height:"28px",width:"140px","font-size":t.componentWidth>900?"14px":"12px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:s.currentTabMoreVideos,onOpenmedia:i.onOpenMedia},null,8,["style","font-size","selectedOption","onOpenmedia"])):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"btn-search-videos":"btn-search-videos-movil")},[o.createVNode(l,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:i.onClickOpenMedia},null,8,["onClick"])],2)]),s.currentTabMoreVideos=="Goles"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",z4,[o.createElementVNode("div",{class:"drop-down-innercontainer",onClick:a[1]||(a[1]=m=>s.activeDropGoals=!s.activeDropGoals)},[o.createElementVNode("div",F4,[o.createTextVNode(" Jornada "),Object.keys(s.matchdayActive).length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.matchdayActive.valueText),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.defaultMatchDayKey),1)],64))]),o.createElementVNode("div",M4,[o.createElementVNode("img",{width:"18",style:o.normalizeStyle(s.activeDropGoals?"":"transform: rotate(180deg);"),src:"http://golstatsimages.blob.core.windows.net/images-library/icn-arrow-collapse@2x.png"},null,4)])]),o.withDirectives((o.openBlock(),o.createBlock(u,{height:"48px","margin-top":"5px","disable-matchdays":!0,"match-days":t.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"default-match-day-key":t.defaultMatchDayKey,key:s.matchDayPickerKey,onChangeMatchDay:i.onChangeMatchDay},null,8,["match-days","default-match-day-key","onChangeMatchDay"])),[[o.vShow,(t.isLeagueSelected||s.currentTabMoreVideos=="Goles")&&t.tournamentScheduleKeys&&t.tournamentScheduleKeys.length&&s.activeDropGoals]])]),o.createVNode(c,{style:{"margin-top":"-30px"},type:14,data:{season:t.seasonSelected.id,category:s.goalsCategory},width:"100%","matchday-view":Object.keys(s.matchdayActive).length>0?s.matchdayActive.matchDayId:t.defaultMatchDayKey,backgroundColor:"transparent",title:"",onOpenmedia:i.onOpenMedia},null,8,["data","matchday-view","onOpenmedia"])],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Resumen"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.isplayer?(o.openBlock(),o.createBlock(c,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,player:t.player,category:1000001},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):(o.openBlock(),o.createBlock(c,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.team,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Proximo rival"?(o.openBlock(),o.createBlock(c,{key:2,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.nextRivalTeam.id,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):o.createCommentVNode("",!0)],512)}const j4={components:{GSCSeasonSelect:bk,GSCTournamentSelect:K_,GSCGames:P2,GSCGridTeamsMatches:Nm,GSCPlayersLanding:Sm,GSCTops:Pw,GSCTableCalendar:bb,DiscoverVideos:Ne($4,[["render",D4],["__scopeId","data-v-26338754"]]),CarouselFullScreen:E_},setup(){const e=o.ref("landingref"),{elementSize:a}=Kd(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},latestRound(e){this.selectedRoundKeyIndexVideo=this.tournamentScheduleKeysGoals.findIndex(a=>a===e),this.selectedRoundVideos=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},data(){return{isCarouselFullScreenVisible:!1,carouselPlayerQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRoundKeyIndexVideo:0,selectedRound:"0",selectedRoundVideos:"0",isLeagueSelected:!1,fullTournamentScheduleFull:[],fullTournamentScheduleFullGoals:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],tournamentScheduleKeysGoals:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2}},computed:{games(){if(this.tournamentSelected.id===this.user.tournament&&!this.isLeagueSelected)return this.fullTournamentSchedule;{const e=this.gamesPages.get(this.selectedRound);return e?e[0]:[]}},latestRound(){return this.userTeamGames&&this.userTeamGames.length&&this.fullTournamentScheduleFullGoals&&this.fullTournamentScheduleFullGoals.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFullGoals):this.getNormalClosestRound(this.fullTournamentScheduleFullGoals)},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let t="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?t=n[0]:t=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?t=n[0]:t=a[0]),t.trim()},async fetchGameEvents(e){try{const{data:{plays:a}}=await re.get(`${this.gameEventsUrl}${e}`,{headers:{Authorization:`${this.token}`}});return a}catch(a){throw new Error(a)}},async onClickOpenCarouselVideos(e){try{const a=await this.fetchGameEvents(e);this.carouselPlayerQueue=a.filter(t=>t.event_type_id===1&&t.video_link!=="-"),this.isCarouselFullScreenVisible=!0}catch(a){throw new Error(a)}},onChangeMatchDayGames(e){this.selectedRound!==e.key&&(this.selectedRound=e.key)},onClickCloseCarousel(){this.carouselPlayerQueue=[],this.isCarouselFullScreenVisible=!1},onChangeIsLeagueSelected(e){this.isLeagueSelected=e},onAction(e){this.$emit("action",e)},onOpenMedia(e){e.type===1&&e.gameIds&&e.gameIds.length>0?this.onClickOpenCarouselVideos(e.gameIds[0]):this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const t=a.map(s=>`seasons=${s.id}`).join("&"),n=re.create({headers:{Authorization:`${this.token}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+t),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(t=>({id:t.id,type:t.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1),await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await re.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,t=""){let n=t;try{n||(n=this.gamesUrl2,e.forEach((l,u)=>{n+=`${u===0?"":"&"}seasons=${l}`}));const s=re.create({headers:{Authorization:`${this.token}`}}),{data:{data:i,teams:r}}=await s.get(n);return{seasonsAndGames:i,seasonsAndTeams:r}}catch(s){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(s)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let t=0;const{seasonsAndGames:n,seasonsAndTeams:s}=await this.fetchSeasonsGamesAndTeams(e.map(m=>m.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(m=>{const{type:h}=e.find(f=>f.id===m.season_id);m.type=h,m.games.forEach(f=>{f.season_id=m.season_id}),h===0&&(t=m.season_id)});const i={seasonsGames:n},{teams:r}=s.find(m=>m.season_id===t),l=[...i.seasonsGames],u=i&&i.seasonsGames?i.seasonsGames.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]:f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[],c=i&&i.seasonsGames?l.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]}),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[];u.sort((m,h)=>m.weight-h.weight),this.fullTournamentScheduleFull=u.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=d}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.fullTournamentScheduleFullGoals=c.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[$l[p]||g]=d:m[Vl[f]||g]=myArray}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Al[f]]=d);return m},{}),this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentScheduleFull).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1,b=null;const S=f.reduce((O,L)=>(!b&&L&&L.games&&L.games.length&&(b=L.games[0].matchday_id),L.games.forEach(H=>{H.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),O=O.concat(L.games),O),[]);for(let O=0;O<S.length;O++)(S[O].game_status!=4||S[O].is_live)&&(S[O].score[0]!=0||S[O].score[1]!=0)&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g,matchDayId:b});const _=this.getPages(S);return this.gamesPages.set(h,_),m},new Map).values()),this.tournamentScheduleKeysGoals=Array.from(Object.entries(this.fullTournamentScheduleFullGoals).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1;const b=f.reduce((_,O)=>(O.games.forEach(L=>{L.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(O.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live&&(b[_].score[0]!=0||b[_].score[1]!=0))&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g});const S=this.getPages(b);return this.gamesPages.set(h,S),m},new Map).values())}catch(t){throw new Error(t)}finally{this.loadingFlag=!1}},getPages(e){const a=[];if(this.gamesPerMatchDay>0){let t=[];e.forEach((n,s)=>{t.push(n),(s+1)%this.gamesPerMatchDay===0&&(a.push([...t]),t=[])}),t.length&&a.push([...t])}else a.push(e);return a},getNormalClosestRound(e){const t=Object.entries(Object.entries(e).reduce((i,[r,l])=>(i[r]=[],l.forEach(u=>{u.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;i[r].push(m)})}),i),{}));if(!t.length)return"1";const n=new Date().getTime(),s=t.reduce((i,[r,l])=>{let u=null;return l.forEach(c=>{const m=c-n;m>=0&&(u===null||m<u)&&(u=m)}),u&&(i.shortestTime===null||u<i.shortestTime)&&(i.round=r,i.shortestTime=u),i},{round:"",shortestTime:null});return s.shortestTime!==null?s.round:t[t.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const t=this.userTeamGames[0];for(const[n,s]of Object.entries(e))for(const i of s)if(i.games.find(l=>l.game_id===t.game_id))return n}return a}},async created(){}},W4=e=>(o.pushScopeId("data-v-c2127a95"),e=e(),o.popScopeId(),e),U4={class:"gsclanding",ref:"landingref"},H4={key:1,class:"container-selectors-mobile"},G4={class:"container-selectors-mobile-tournament"},q4={class:"container-selectors-mobile-season"},J4={key:0,class:"home-item-movil"},K4=W4(()=>o.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Z4={class:"name-user-movil"},X4={key:1,class:"home-item"},Y4={key:2,class:"bar-settings"},Q4={class:"name-user"},e3={class:"container-selectors"},t3={class:"selector-tournament"},o3={class:"selector-seasons"},a3={key:3,class:"container-games"},n3={class:"container-vr"},i3={key:4,class:"container-players"},s3={class:"container-tops"};function r3(e,a,t,n,s,i){const r=o.resolveComponent("CarouselFullScreen"),l=o.resolveComponent("GSCTournamentSelect"),u=o.resolveComponent("GSCSeasonSelect"),c=o.resolveComponent("GSCGames"),m=o.resolveComponent("DiscoverVideos"),h=o.resolveComponent("GSCGridTeamsMatches"),f=o.resolveComponent("GSCTableCalendar"),d=o.resolveComponent("GSCPlayersLanding"),p=o.resolveComponent("GSCTops");return o.openBlock(),o.createElementBlock("div",U4,[s.isCarouselFullScreenVisible?(o.openBlock(),o.createBlock(r,{key:0,"player-queue":s.carouselPlayerQueue,"playlist-index":0,onClose:i.onClickCloseCarousel},null,8,["player-queue","onClose"])):o.createCommentVNode("",!0),n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",H4,[o.createElementVNode("div",G4,[o.createVNode(l,{"current-season-id":t.currentSeasonId,width:"100%",onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",q4,[o.createVNode(u,{"current-season-id":t.currentSeasonId,width:"100%",seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(i.containerbackground)},[o.createElementVNode("div",{class:o.normalizeClass(i.containerdata)},[n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",J4,[K4,o.createElementVNode("div",Z4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1)])):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",X4,"Inicio")):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",Y4,[o.createElementVNode("div",Q4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1),o.createElementVNode("div",e3,[o.createElementVNode("div",t3,[o.createVNode(l,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",o3,[o.createVNode(u,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):o.createCommentVNode("",!0),Object.keys(s.tournamentSelected).length>0?(o.openBlock(),o.createElementBlock("div",a3,[o.createVNode(c,{"component-width":n.elementSize.width,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,data:i.games,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":s.selectedRound,onClickCalendar:i.onClickCalendar,onClickMatch:i.onClickMatch,onChangeMatchDay:i.onChangeMatchDayGames,onChangeIsLeagueSelected:i.onChangeIsLeagueSelected},null,8,["component-width","isplayer","is-full","data","tournament-schedule-keys","default-match-day-key","onClickCalendar","onClickMatch","onChangeMatchDay","onChangeIsLeagueSelected"])])):o.createCommentVNode("",!0),o.createElementVNode("div",n3,[o.createVNode(m,{"component-width":n.elementSize.width,onOpenmedia:i.onOpenMedia,videoType:s.tournamentSelected.id==t.user.tournament?s.resumeType:s.goalsType,team:t.team,player:t.user.player,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,"is-league-selected":s.tournamentSelected.id!=t.user.tournament,nextRivalTeam:s.tournamentSelected.id==t.user.tournament&&s.nextRivalId!=0?{id:s.nextRivalId}:0,user:t.user,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":i.latestRound,seasonSelected:s.seasonSelected,tournamentSelected:s.tournamentSelected,myTournament:t.user.tournament},null,8,["component-width","onOpenmedia","videoType","team","player","isplayer","is-full","is-league-selected","nextRivalTeam","user","tournament-schedule-keys","default-match-day-key","seasonSelected","tournamentSelected","myTournament"])]),o.createElementVNode("div",{class:o.normalizeClass(i.containerGridCalendarTable)},[o.createElementVNode("div",{class:"container-grid",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[o.createVNode(h,{isPlayer:t.isplayer?s.tournamentSelected.id==t.user.tournament:!1,"player-id":t.user.player,"team-id":t.user.team,"season-selected":s.seasonSelected.id,"next-rival-id":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?s.fullTournamentSchedule.data.prematch.visiting_team:s.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+t.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+t.user.player+".png","rival-img":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":t.isplayer?!1:s.tournamentSelected.id==t.user.tournament,"component-width":n.elementSize.width,onAction:i.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),o.createElementVNode("div",{class:"container-calendar-table",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[o.createVNode(f,{onAction:i.onAction,season:s.seasonSelected,seasons:s.seasonsSelected,onOpenmedia:i.onOpenMedia,onOnOpenProfile:i.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),s.tournamentSelected.id==t.user.tournament?o.withDirectives((o.openBlock(),o.createElementBlock("div",i3,[o.createVNode(d,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,onTotalPlayers:i.getTotalPlayers,"team-id":t.user.team,"season-id":s.seasonSelected.id,"is-player":t.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[o.vShow,s.playersLength>0]]):o.createCommentVNode("",!0),o.createElementVNode("div",s3,[o.createVNode(p,{onMore:i.moreTops,"show-switch":s.tournamentSelected.id==t.user.tournament,season:s.seasonSelected.id,"team-id":t.user.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])])],2)],2)],512)}const l3=Ne(j4,[["render",r3],["__scopeId","data-v-c2127a95"]]);pt.GSCLanding=l3,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});
36
+ */const Oe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},qr={itemsToShow:{default:Oe.itemsToShow,type:Number},itemsToScroll:{default:Oe.itemsToScroll,type:Number},wrapAround:{default:Oe.wrapAround,type:Boolean},throttle:{default:Oe.throttle,type:Number},snapAlign:{default:Oe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Oe.transition,type:Number},breakpoints:{default:Oe.breakpoints,type:Object},autoplay:{default:Oe.autoplay,type:Number},pauseAutoplayOnHover:{default:Oe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Oe.mouseDrag,type:Boolean},touchDrag:{default:Oe.touchDrag,type:Boolean},dir:{default:Oe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Oe.i18n,type:Object},settings:{default(){return{}},type:Object}};function Iw({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Rw({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function _n({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function Lw({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:_n({val:r,max:t-i,min:0})}function Jr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...Jr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function kn({val:e,max:a,min:t=0}){return e>a?kn({val:e-(a+1),max:a,min:t}):e<t?kn({val:e+(a+1),max:a,min:t}):e}function zw(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function Fw(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function Mw(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var Dw=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},Oe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Mw(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),jw=o.defineComponent({name:"Carousel",props:qr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),u=o.ref(0),c=o.reactive(Object.assign({},Oe));let m=Object.assign({},Oe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),d=o.ref(0),p=o.ref(0),g=o.ref(0),b=o.ref(0);let S,_;o.provide("config",c),o.provide("slidesCount",u),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function O(){h=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),H(m)}function L(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,D)=>+D-+x);let T=Object.assign({},m);w.some(x=>{const D=window.matchMedia(`(min-width: ${x}px)`).matches;return D&&(T=Object.assign(Object.assign({},T),h[x])),D}),H(T)}function H(w){Object.entries(w).forEach(([T,x])=>c[T]=x)}const ee=Fw(()=>{L(),W()},16);function W(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function le(){u.value<=0||(p.value=Math.ceil((u.value-1)/2),g.value=Iw({config:c,slidesCount:u.value}),b.value=Rw({config:c,slidesCount:u.value}),c.wrapAround||(f.value=_n({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>W()),setTimeout(()=>W(),1e3),L(),Ie(),window.addEventListener("resize",ee,{passive:!0}),t("init")}),o.onUnmounted(()=>{_&&clearTimeout(_),S&&clearInterval(S),window.removeEventListener("resize",ee,{passive:!0})});let $=!1;const ae={x:0,y:0},ie={x:0,y:0},U=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),Ue=()=>{se.value=!0},He=()=>{se.value=!1};function $e(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||($=w.type==="touchstart",$||w.preventDefault(),!(!$&&w.button!==0||N.value)&&(ae.x=$?w.touches[0].clientX:w.clientX,ae.y=$?w.touches[0].clientY:w.clientY,document.addEventListener($?"touchmove":"mousemove",Ae,!0),document.addEventListener($?"touchend":"mouseup",Pe,!0)))}const Ae=zw(w=>{de.value=!0,ie.x=$?w.touches[0].clientX:w.clientX,ie.y=$?w.touches[0].clientY:w.clientY;const T=ie.x-ae.x,x=ie.y-ae.y;U.y=x,U.x=T},c.throttle);function Pe(){const w=c.dir==="rtl"?-1:1,T=Math.sign(U.x)*.4,x=Math.round(U.x/l.value+T)*w;if(x&&!$){const D=we=>{we.stopPropagation(),window.removeEventListener("click",D,!0)};window.addEventListener("click",D,!0)}v(f.value-x),U.x=0,U.y=0,de.value=!1,document.removeEventListener($?"touchmove":"mousemove",Ae,!0),document.removeEventListener($?"touchend":"mouseup",Pe,!0)}function Ie(){!c.autoplay||c.autoplay<=0||(S=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||I()},c.autoplay))}function R(){S&&(clearInterval(S),S=null),Ie()}const N=o.ref(!1);function v(w){const T=c.wrapAround?w:_n({val:w,max:g.value,min:b.value});f.value===T||N.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!0,d.value=f.value,f.value=T,_=setTimeout(()=>{if(c.wrapAround){const x=kn({val:T,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:d.value,slidesCount:u.value}),N.value=!1,R()},c.transition))}function I(){v(f.value+c.itemsToScroll)}function P(){v(f.value-c.itemsToScroll)}const z={slideTo:v,next:I,prev:P};o.provide("nav",z),o.provide("isSliding",N);const F=o.computed(()=>Lw({config:c,currentSlide:f.value,slidesCount:u.value}));o.provide("slidesToScroll",F);const Z=o.computed(()=>{const w=c.dir==="rtl"?-1:1,T=F.value*l.value*w;return{transform:`translateX(${U.x-T}px)`,transition:`${N.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${u.value*l.value}px`:"",width:"100%"}});function ne(){O(),L(),le(),W(),R()}Object.keys(qr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&v(Number(w))}),o.watch(u,le),t("before-init"),O();const ce={config:c,slidesCount:u,slideWidth:l,next:I,prev:P,slideTo:v,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:p};n({updateBreakpointsConfigs:L,updateSlidesData:le,updateSlideWidth:W,initDefaultConfigs:O,restartCarousel:ne,slideTo:v,next:I,prev:P,nav:z,data:ce});const Be=a.default||a.slides,xe=a.addons,Re=o.reactive(ce);return()=>{const w=Jr(Be==null?void 0:Be(Re)),T=(xe==null?void 0:xe(Re))||[];w.forEach((Se,_e)=>Se.props.index=_e);let x=w;if(c.wrapAround){const Se=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),_e=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));x=[...Se,...w,..._e]}r.value=w,u.value=Math.max(w.length,1);const D=o.h("ol",{class:"carousel__track",style:Z.value,onMousedownCapture:c.mouseDrag?$e:null,onTouchstartPassiveCapture:c.touchDrag?$e:null},x),we=o.h("div",{class:"carousel__viewport"},D);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":N.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:Ue,onMouseleave:He},[we,T,o.h(Dw)])}}}),Kr;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Kr||(Kr={}));var Ww=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},Oe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,u=()=>e.index===n.value+1,c=()=>{const m=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=m&&e.index<=h};return()=>{var m;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":u(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(m=a.default)===null||m===void 0?void 0:m.call(a))}}});const Uw=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Hw=e=>(o.pushScopeId("data-v-fad3b1be"),e=e(),o.popScopeId(),e),Gw={class:"gsc-carousel"},qw={key:0},Jw=Hw(()=>o.createElementVNode("div",null,"no hay",-1)),Kw=[Jw],Zw={class:"gsc-carousel__2d__slides"},Xw={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yw=["fill"],Qw={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eS=["fill"],tS={class:"gsc-carousel__2d__navigation"},oS={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aS=["stroke"],nS={key:1,class:"gsc-carousel__2d__navigation__pagination"},iS=["onClick"],sS={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rS=["stroke"],lS={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:t}){const n=e;o.useCssVars(g=>({d565a72c:e.slideLeftArrowBackgroundImage,"7da628aa":e.slidesArrowsLeftAndRight,"4ecf8d3e":e.slideRightArrowBackgroundImage,"055d7d96":e.marginTop,a8efe3f2:e.secondarySlidesOpacity}));const s=o.ref(null),i=o.ref({}),r=o.ref(0),l=o.ref(!1);o.watch(s,g=>{g&&l.value?(l.value=!1,u(n.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),o.watch(()=>n.currentItemIndex,g=>{r.value!==g&&f(g)}),o.watch(()=>n.items,g=>{s.value?u(g):l.value=!0},{immediate:!0});function u(g){if(g&&g.length&&s.value){if(n.defaultItemByProp){const b=n.items.findIndex(S=>S[n.defaultItemByProp.propName]===n.defaultItemByProp.value);b!==-1?(r.value=b,i.value=g[b]):(r.value=0,i.value=g[0])}else r.value=n.defaultItemByIndex,i.value=g[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function c(){s.value&&s.value.next()}function m(){s.value&&s.value.prev()}function h(){s.value&&s.value.updateSlideWidth()}function f(g){s.value&&s.value.slideTo(g)}function d(g){s.value.slideTo(g)}function p(g){const b=g.slidingToIndex<0?n.items.length-1:g.slidingToIndex===n.items.length?0:g.slidingToIndex;r.value=b,i.value=n.items[b],t("update:currentItemIndex",b),t("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:m,next:c,updateSlideWidth:h,slideTo:f}),(g,b)=>(o.openBlock(),o.createElementBlock("div",Gw,[n.is3d?(o.openBlock(),o.createElementBlock("div",qw,Kw)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[o.createElementVNode("div",Zw,[o.createVNode(o.unref(jw),{ref_key:"carousel2d",ref:s,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createBlock(o.unref(Ww),{key:_},{default:o.withCtx(()=>[o.renderSlot(g.$slots,"default",{item:S},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:b[0]||(b[0]=S=>s.value.prev())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Xw,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Yw)]))],2)])):o.createCommentVNode("",!0),e.areSlidesArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:b[1]||(b[1]=S=>c())},[o.createElementVNode("div",{class:o.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(o.openBlock(),o.createElementBlock("svg",Qw,[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,eS)]))],2)])):o.createCommentVNode("",!0),o.createElementVNode("div",tS,[e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:b[2]||(b[2]=S=>m())},[(o.openBlock(),o.createElementBlock("svg",oS,[o.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:n.arrowsColor},null,8,aS)]))])):o.createCommentVNode("",!0),e.isPaginationVisible?(o.openBlock(),o.createElementBlock("div",nS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(S,_)=>(o.openBlock(),o.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:o.normalizeStyle({height:`${n.navigationHeight}px`,width:`${r.value===_?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===_?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:O=>d(_)},null,12,iS))),128))])):o.createCommentVNode("",!0),e.areNavigationArrowsVisible?(o.openBlock(),o.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:b[3]||(b[3]=S=>s.value.next())},[(o.openBlock(),o.createElementBlock("svg",sS,[o.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:n.arrowsColor},null,8,rS)]))])):o.createCommentVNode("",!0)])],2))]))}},cS=Uw(lS,[["__scopeId","data-v-fad3b1be"]]);function V(e,a,t){return(a=mS(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function dS(e,a){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,a||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function mS(e){var a=dS(e,"string");return typeof a=="symbol"?a:String(a)}function uS(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}function Zr(e,a){for(var t=0;t<a.length;t++){var n=a[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hS(e,a,t){return a&&Zr(e.prototype,a),t&&Zr(e,t),e}function pS(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function Xr(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,n)}return t}function Yr(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{};a%2?Xr(Object(t),!0).forEach(function(n){pS(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xr(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Qr={addCSS:!0,thumbWidth:15,watch:!0};function gS(e,a){return(function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function fS(e,a){if(e&&a){var t=new Event(a,{bubbles:!0});e.dispatchEvent(t)}}var Dt=function(e){return e!=null?e.constructor:null},Cn=function(e,a){return!!(e&&a&&e instanceof a)},el=function(e){return e==null},tl=function(e){return Dt(e)===Object},yS=function(e){return Dt(e)===Number&&!Number.isNaN(e)},ol=function(e){return Dt(e)===String},bS=function(e){return Dt(e)===Boolean},wS=function(e){return Dt(e)===Function},al=function(e){return Array.isArray(e)},nl=function(e){return Cn(e,NodeList)},SS=function(e){return Cn(e,Element)},_S=function(e){return Cn(e,Event)},kS=function(e){return el(e)||(ol(e)||al(e)||nl(e))&&!e.length||tl(e)&&!Object.keys(e).length},Ve={nullOrUndefined:el,object:tl,number:yS,string:ol,boolean:bS,function:wS,array:al,nodeList:nl,element:SS,event:_S,empty:kS};function CS(e){var a="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return a?Math.max(0,(a[1]?a[1].length:0)-(a[2]?+a[2]:0)):0}function ES(e,a){if(1>a){var t=CS(a);return parseFloat(e.toFixed(t))}return Math.round(e/a)*a}var BS=function(){function e(a,t){uS(this,e),Ve.element(a)?this.element=a:Ve.string(a)&&(this.element=document.querySelector(a)),Ve.element(this.element)&&Ve.empty(this.element.rangeTouch)&&(this.config=Yr({},Qr,{},t),this.init())}return hS(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(a){var t=this,n=a?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){t.element[n](s,function(i){return t.set(i)},!1)})}},{key:"get",value:function(a){if(!e.enabled||!Ve.event(a))return null;var t,n=a.target,s=a.changedTouches[0],i=parseFloat(n.getAttribute("min"))||0,r=parseFloat(n.getAttribute("max"))||100,l=parseFloat(n.getAttribute("step"))||1,u=n.getBoundingClientRect(),c=100/u.width*(this.config.thumbWidth/2)/100;return 0>(t=100/u.width*(s.clientX-u.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*c:50<t&&(t+=2*(t-50)*c),i+ES(t/100*(r-i),l)}},{key:"set",value:function(a){e.enabled&&Ve.event(a)&&!a.target.disabled&&(a.preventDefault(),a.target.value=this.get(a),fS(a.target,a.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(a){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=null;if(Ve.empty(a)||Ve.string(a)?n=Array.from(document.querySelectorAll(Ve.string(a)?a:'input[type="range"]')):Ve.element(a)?n=[a]:Ve.nodeList(a)?n=Array.from(a):Ve.array(a)&&(n=a.filter(Ve.element)),Ve.empty(n))return null;var s=Yr({},Qr,{},t);if(Ve.string(a)&&s.watch){var i=new MutationObserver(function(r){Array.from(r).forEach(function(l){Array.from(l.addedNodes).forEach(function(u){Ve.element(u)&&gS(u,a)&&new e(u,s)})})});i.observe(document.body,{childList:!0,subtree:!0})}return n.map(function(r){return new e(r,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const jt=e=>e!=null?e.constructor:null,it=(e,a)=>!!(e&&a&&e instanceof a),En=e=>e==null,il=e=>jt(e)===Object,xS=e=>jt(e)===Number&&!Number.isNaN(e),Vo=e=>jt(e)===String,NS=e=>jt(e)===Boolean,sl=e=>typeof e=="function",rl=e=>Array.isArray(e),TS=e=>it(e,WeakMap),ll=e=>it(e,NodeList),vS=e=>jt(e)===Text,OS=e=>it(e,Event),AS=e=>it(e,KeyboardEvent),VS=e=>it(e,window.TextTrackCue)||it(e,window.VTTCue),$S=e=>it(e,TextTrack)||!En(e)&&Vo(e.kind),PS=e=>it(e,Promise)&&sl(e.then),IS=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",cl=e=>En(e)||(Vo(e)||rl(e)||ll(e))&&!e.length||il(e)&&!Object.keys(e).length;var y={nullOrUndefined:En,object:il,number:xS,string:Vo,boolean:NS,function:sl,array:rl,weakMap:TS,nodeList:ll,element:IS,textNode:vS,event:OS,keyboardEvent:AS,cue:VS,track:$S,promise:PS,url:e=>{if(it(e,window.URL))return!0;if(!Vo(e))return!1;let a=e;e.startsWith("http://")&&e.startsWith("https://")||(a=`http://${e}`);try{return!cl(new URL(a).hostname)}catch{return!1}},empty:cl};const Bn=(()=>{const e=document.createElement("span"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(a).find(n=>e.style[n]!==void 0);return!!y.string(t)&&a[t]})();function dl(e,a){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},a)}const RS=!!window.document.documentMode,LS=/Edge/g.test(navigator.userAgent),zS="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),FS=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,MS=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,DS=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var Ce={isIE:RS,isEdge:LS,isWebKit:zS,isIPhone:FS,isIPadOS:MS,isIos:DS};function jS(e){return JSON.parse(JSON.stringify(e))}function ml(e,a){return a.split(".").reduce((t,n)=>t&&t[n],e)}function me(e={},...a){if(!a.length)return e;const t=a.shift();return y.object(t)?(Object.keys(t).forEach(n=>{y.object(t[n])?(Object.keys(e).includes(n)||Object.assign(e,{[n]:{}}),me(e[n],t[n])):Object.assign(e,{[n]:t[n]})}),me(e,...a)):e}function ul(e,a){const t=e.length?e:[e];Array.from(t).reverse().forEach((n,s)=>{const i=s>0?a.cloneNode(!0):a,r=n.parentNode,l=n.nextSibling;i.appendChild(n),l?r.insertBefore(i,l):r.appendChild(i)})}function xn(e,a){y.element(e)&&!y.empty(a)&&Object.entries(a).filter(([,t])=>!y.nullOrUndefined(t)).forEach(([t,n])=>e.setAttribute(t,n))}function M(e,a,t){const n=document.createElement(e);return y.object(a)&&xn(n,a),y.string(t)&&(n.innerText=t),n}function WS(e,a){y.element(e)&&y.element(a)&&a.parentNode.insertBefore(e,a.nextSibling)}function hl(e,a,t,n){y.element(a)&&a.appendChild(M(e,t,n))}function st(e){y.nodeList(e)||y.array(e)?Array.from(e).forEach(st):y.element(e)&&y.element(e.parentNode)&&e.parentNode.removeChild(e)}function $o(e){if(!y.element(e))return;let{length:a}=e.childNodes;for(;a>0;)e.removeChild(e.lastChild),a-=1}function Po(e,a){return y.element(a)&&y.element(a.parentNode)&&y.element(e)?(a.parentNode.replaceChild(e,a),e):null}function Ye(e,a){if(!y.string(e)||y.empty(e))return{};const t={},n=me({},a);return e.split(",").forEach(s=>{const i=s.trim(),r=i.replace(".",""),l=i.replace(/[[\]]/g,"").split("="),[u]=l,c=l.length>1?l[1].replace(/["']/g,""):"";switch(i.charAt(0)){case".":y.string(n.class)?t.class=`${n.class} ${r}`:t.class=r;break;case"#":t.id=i.replace("#","");break;case"[":t[u]=c}}),me(n,t)}function gt(e,a){if(!y.element(e))return;let t=a;y.boolean(t)||(t=!e.hidden),e.hidden=t}function Q(e,a,t){if(y.nodeList(e))return Array.from(e).map(n=>Q(n,a,t));if(y.element(e)){let n="toggle";return t!==void 0&&(n=t?"add":"remove"),e.classList[n](a),e.classList.contains(a)}return!1}function Io(e,a){return y.element(e)&&e.classList.contains(a)}function ft(e,a){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(a)).includes(this)}).call(e,a)}function US(e,a){const{prototype:t}=Element;return(t.closest||function(){let n=this;do{if(ft.matches(n,a))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}).call(e,a)}function Wt(e){return this.elements.container.querySelectorAll(e)}function be(e){return this.elements.container.querySelector(e)}function Nn(e=null,a=!1){y.element(e)&&e.focus({preventScroll:!0,focusVisible:a})}const pl={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ue={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,a){const t=ue[e]||a!=="html5";return{api:t,ui:t&&ue.rangeInput}},pip:!(Ce.isIPhone||!y.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:y.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(y.empty(e))return!1;const[a]=e.split("/");let t=e;if(!this.isHTML5||a!==this.type)return!1;Object.keys(pl).includes(t)&&(t+=`; codecs="${pl[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Bn!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},HS=(()=>{let e=!1;try{const a=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,a),window.removeEventListener("test",null,a)}catch{}return e})();function Ut(e,a,t,n=!1,s=!0,i=!1){if(!e||!("addEventListener"in e)||y.empty(a)||!y.function(t))return;const r=a.split(" ");let l=i;HS&&(l={passive:s,capture:i}),r.forEach(u=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:e,type:u,callback:t,options:l}),e[n?"addEventListener":"removeEventListener"](u,t,l)})}function X(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!0,n,s)}function Ro(e,a="",t,n=!0,s=!1){Ut.call(this,e,a,t,!1,n,s)}function Tn(e,a="",t,n=!0,s=!1){const i=(...r)=>{Ro(e,a,i,n,s),t.apply(this,r)};Ut.call(this,e,a,i,!0,n,s)}function j(e,a="",t=!1,n={}){if(!y.element(e)||y.empty(a))return;const s=new CustomEvent(a,{bubbles:t,detail:{...n,plyr:this}});e.dispatchEvent(s)}function GS(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:a,type:t,callback:n,options:s}=e;a.removeEventListener(t,n,s)}),this.eventListeners=[])}function qS(){return new Promise(e=>this.ready?setTimeout(e,0):X.call(this,this.elements.container,"ready",e)).then(()=>{})}function Qe(e){y.promise(e)&&e.then(null,()=>{})}function vn(e){return y.array(e)?e.filter((a,t)=>e.indexOf(a)===t):e}function gl(e,a){return y.array(e)&&e.length?e.reduce((t,n)=>Math.abs(n-a)<Math.abs(t-a)?n:t):null}function fl(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const yl=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[a,t])=>({...e,[a/t]:[a,t]}),{});function bl(e){return y.array(e)||y.string(e)&&e.includes(":")?(y.array(e)?e:e.split(":")).map(Number).every(y.number):!1}function Lo(e){if(!y.array(e)||!e.every(y.number))return null;const[a,t]=e,n=(i,r)=>r===0?i:n(r,i%r),s=n(a,t);return[a/s,t/s]}function On(e){const a=n=>bl(n)?n.split(":").map(Number):null;let t=a(e);if(t===null&&(t=a(this.config.ratio)),t===null&&!y.empty(this.embed)&&y.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:n,videoHeight:s}=this.media;t=[n,s]}return Lo(t)}function Bt(e){if(!this.isVideo)return{};const{wrapper:a}=this.elements,t=On.call(this,e);if(!y.array(t))return{};const[n,s]=Lo(t),i=100/n*s;if(fl(`aspect-ratio: ${n}/${s}`)?a.style.aspectRatio=`${n}/${s}`:a.style.paddingBottom=`${i}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(r-i)/(r/50);this.fullscreen.active?a.style.paddingBottom=null:this.media.style.transform=`translateY(-${l}%)`}else this.isHTML5&&a.classList.add(this.config.classNames.videoFixedRatio);return{padding:i,ratio:t}}function wl(e,a,t=.05){const n=e/a,s=gl(Object.keys(yl),n);return Math.abs(s-n)<=t?yl[s]:[e,a]}function JS(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const mt={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const a=e.getAttribute("type");return!!y.empty(a)||ue.mime.call(this,a)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:mt.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,y.empty(this.config.ratio)||Bt.call(e),Object.defineProperty(e.media,"quality",{get(){const a=mt.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return a&&Number(a.getAttribute("size"))},set(a){if(e.quality!==a){if(e.config.quality.forced&&y.function(e.config.quality.onChange))e.config.quality.onChange(a);else{const t=mt.getSources.call(e).find(u=>Number(u.getAttribute("size"))===a);if(!t)return;const{currentTime:n,paused:s,preload:i,readyState:r,playbackRate:l}=e.media;e.media.src=t.getAttribute("src"),(i!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=l,e.currentTime=n,s||Qe(e.play())}),e.media.load())}j.call(e,e.media,"qualitychange",!1,{quality:a})}}})},cancelRequests(){this.isHTML5&&(st(mt.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function KS(e){return`${e}-${Math.floor(1e4*Math.random())}`}function An(e,...a){return y.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,n)=>a[n].toString())}function ZS(e,a){return e===0||a===0||Number.isNaN(e)||Number.isNaN(a)?0:(e/a*100).toFixed(2)}const Ht=(e="",a="",t="")=>e.replace(new RegExp(a.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Sl=(e="")=>e.toString().replace(/\w\S*/g,a=>a.charAt(0).toUpperCase()+a.slice(1).toLowerCase());function XS(e=""){let a=e.toString();return a=Ht(a,"-"," "),a=Ht(a,"_"," "),a=Sl(a),Ht(a," ","")}function YS(e=""){let a=e.toString();return a=XS(a),a.charAt(0).toLowerCase()+a.slice(1)}function QS(e){const a=document.createDocumentFragment(),t=document.createElement("div");return a.appendChild(t),t.innerHTML=e,a.firstChild.innerText}function e_(e){const a=document.createElement("div");return a.appendChild(e),a.innerHTML}const _l={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Ee={get(e="",a={}){if(y.empty(e)||y.empty(a))return"";let t=ml(a.i18n,e);if(y.empty(t))return Object.keys(_l).includes(e)?_l[e]:"";const n={"{seektime}":a.seekTime,"{title}":a.title};return Object.entries(n).forEach(([s,i])=>{t=Ht(t,s,i)}),t}};class Gt{constructor(a){V(this,"get",t=>{if(!Gt.supported||!this.enabled)return null;const n=window.localStorage.getItem(this.key);if(y.empty(n))return null;const s=JSON.parse(n);return y.string(t)&&t.length?s[t]:s}),V(this,"set",t=>{if(!Gt.supported||!this.enabled||!y.object(t))return;let n=this.get();y.empty(n)&&(n={}),me(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=a.config.storage.enabled,this.key=a.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const a="___test";return window.localStorage.setItem(a,a),window.localStorage.removeItem(a),!0}catch{return!1}}}function qt(e,a="text"){return new Promise((t,n)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",()=>{if(a==="text")try{t(JSON.parse(s.responseText))}catch{t(s.responseText)}else t(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",e,!0),s.responseType=a,s.send()}catch(s){n(s)}})}function kl(e,a){if(!y.string(e))return;const t="cache",n=y.string(a);let s=!1;const i=()=>document.getElementById(a)!==null,r=(l,u)=>{l.innerHTML=u,n&&i()||document.body.insertAdjacentElement("afterbegin",l)};if(!n||!i()){const l=Gt.supported,u=document.createElement("div");if(u.setAttribute("hidden",""),n&&u.setAttribute("id",a),l){const c=window.localStorage.getItem(`${t}-${a}`);if(s=c!==null,s){const m=JSON.parse(c);r(u,m.content)}}qt(e).then(c=>{if(!y.empty(c)){if(l)try{window.localStorage.setItem(`${t}-${a}`,JSON.stringify({content:c}))}catch{}r(u,c)}}).catch(()=>{})}}const Cl=e=>Math.trunc(e/60/60%60,10),t_=e=>Math.trunc(e/60%60,10),o_=e=>Math.trunc(e%60,10);function zo(e=0,a=!1,t=!1){if(!y.number(e))return zo(void 0,a,t);const n=l=>`0${l}`.slice(-2);let s=Cl(e);const i=t_(e),r=o_(e);return s=a||s>0?`${s}:`:"",`${t&&e>0?"-":""}${s}${n(i)}:${n(r)}`}const A={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),a=window.location.host?window.location.host:window.top.location.host,t=e.host!==a||Ce.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=be.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Wt.call(this,this.config.selectors.buttons.play),pause:be.call(this,this.config.selectors.buttons.pause),restart:be.call(this,this.config.selectors.buttons.restart),rewind:be.call(this,this.config.selectors.buttons.rewind),fastForward:be.call(this,this.config.selectors.buttons.fastForward),mute:be.call(this,this.config.selectors.buttons.mute),pip:be.call(this,this.config.selectors.buttons.pip),airplay:be.call(this,this.config.selectors.buttons.airplay),settings:be.call(this,this.config.selectors.buttons.settings),captions:be.call(this,this.config.selectors.buttons.captions),fullscreen:be.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=be.call(this,this.config.selectors.progress),this.elements.inputs={seek:be.call(this,this.config.selectors.inputs.seek),volume:be.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:be.call(this,this.config.selectors.display.buffer),currentTime:be.call(this,this.config.selectors.display.currentTime),duration:be.call(this,this.config.selectors.display.duration)},y.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,a){const t="http://www.w3.org/2000/svg",n=A.getIconUrl.call(this),s=`${n.cors?"":n.url}#${this.config.iconPrefix}`,i=document.createElementNS(t,"svg");xn(i,me(a,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),l=`${s}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",l),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l),i.appendChild(r),i},createLabel(e,a={}){const t=Ee.get(e,this.config);return M("span",{...a,class:[a.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(y.empty(e))return null;const a=M("span",{class:this.config.classNames.menu.value});return a.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),a},createButton(e,a){const t=me({},a);let n=YS(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(s[r]=t[r],delete t[r])}),s.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||me(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,n="play",s.label="play",s.icon="play";break;default:y.empty(s.label)&&(s.label=n),y.empty(s.icon)&&(s.icon=e)}const i=M(s.element);return s.toggle?(i.appendChild(A.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),i.appendChild(A.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),i.appendChild(A.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),i.appendChild(A.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(i.appendChild(A.createIcon.call(this,s.icon)),i.appendChild(A.createLabel.call(this,s.label))),me(t,Ye(this.config.selectors.buttons[n],t)),xn(i,t),n==="play"?(y.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(i)):this.elements.buttons[n]=i,i},createRange(e,a){const t=M("input",me(Ye(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Ee.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},a));return this.elements.inputs[e]=t,A.updateRangeFill.call(this,t),BS.setup(t),t},createProgress(e,a){const t=M("progress",me(Ye(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},a));if(e!=="volume"){t.appendChild(M("span",null,"0"));const n={played:"played",buffer:"buffered"}[e],s=n?Ee.get(n,this.config):"";t.innerText=`% ${s.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,a){const t=Ye(this.config.selectors.display[e],a),n=M("div",me(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Ee.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts(e,a){X.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const n=ft(e,'[role="menuitemradio"]');if(!n&&[" ","ArrowRight"].includes(t.key))A.showMenuPanel.call(this,a,!0);else{let s;t.key!==" "&&(t.key==="ArrowDown"||n&&t.key==="ArrowRight"?(s=e.nextElementSibling,y.element(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,y.element(s)||(s=e.parentNode.lastElementChild)),Nn.call(this,s,!0))}},!1),X.call(this,e,"keyup",t=>{t.key==="Return"&&A.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:a,type:t,title:n,badge:s=null,checked:i=!1}){const r=Ye(this.config.selectors.inputs[t]),l=M("button",me(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":i,value:e})),u=M("span");u.innerHTML=n,y.element(s)&&u.appendChild(s),l.appendChild(u),Object.defineProperty(l,"checked",{enumerable:!0,get:()=>l.getAttribute("aria-checked")==="true",set(c){c&&Array.from(l.parentNode.children).filter(m=>ft(m,'[role="menuitemradio"]')).forEach(m=>m.setAttribute("aria-checked","false")),l.setAttribute("aria-checked",c?"true":"false")}}),this.listeners.bind(l,"click keyup",c=>{if(!y.keyboardEvent(c)||c.key===" "){switch(c.preventDefault(),c.stopPropagation(),l.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}A.showMenuPanel.call(this,"home",y.keyboardEvent(c))}},t,!1),A.bindMenuItemShortcuts.call(this,l,t),a.appendChild(l)},formatTime(e=0,a=!1){return y.number(e)?zo(e,Cl(this.duration)>0,a):e},updateTimeDisplay(e=null,a=0,t=!1){y.element(e)&&y.number(a)&&(e.innerText=A.formatTime(a,t))},updateVolume(){this.supported.ui&&(y.element(this.elements.inputs.volume)&&A.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),y.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,a=0){y.element(e)&&(e.value=a,A.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!y.event(e))return;let a=0;const t=(n,s)=>{const i=y.number(s)?s:0,r=y.element(n)?n:this.elements.display.buffer;if(y.element(r)){r.value=i;const l=r.getElementsByTagName("span")[0];y.element(l)&&(l.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":a=ZS(this.currentTime,this.duration),e.type==="timeupdate"&&A.setRange.call(this,this.elements.inputs.seek,a);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const a=y.event(e)?e.target:e;if(y.element(a)&&a.getAttribute("type")==="range"){if(ft(a,this.config.selectors.inputs.seek)){a.setAttribute("aria-valuenow",this.currentTime);const t=A.formatTime(this.currentTime),n=A.formatTime(this.duration),s=Ee.get("seekLabel",this.config);a.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",n))}else if(ft(a,this.config.selectors.inputs.volume)){const t=100*a.value;a.setAttribute("aria-valuenow",t),a.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else a.setAttribute("aria-valuenow",a.value);(Ce.isWebKit||Ce.isIPadOS)&&a.style.setProperty("--value",a.value/a.max*100+"%")}},updateSeekTooltip(e){var a,t;if(!this.config.tooltips.seek||!y.element(this.elements.inputs.seek)||!y.element(this.elements.display.seekTooltip)||this.duration===0)return;const n=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,i=m=>Q(n,s,m);if(this.touch)return void i(!1);let r=0;const l=this.elements.progress.getBoundingClientRect();if(y.event(e))r=100/l.width*(e.pageX-l.left);else{if(!Io(n,s))return;r=parseFloat(n.style.left,10)}r<0?r=0:r>100&&(r=100);const u=this.duration/100*r;n.innerText=A.formatTime(u);const c=(a=this.config.markers)===null||a===void 0||(t=a.points)===null||t===void 0?void 0:t.find(({time:m})=>m===Math.round(u));c&&n.insertAdjacentHTML("afterbegin",`${c.label}<br>`),n.style.left=`${r}%`,y.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&i(e.type==="mouseenter")},timeUpdate(e){const a=!y.element(this.elements.display.duration)&&this.config.invertTime;A.updateTimeDisplay.call(this,this.elements.display.currentTime,a?this.duration-this.currentTime:this.currentTime,a),e&&e.type==="timeupdate"&&this.media.seeking||A.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return gt(this.elements.display.currentTime,!0),void gt(this.elements.progress,!0);y.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=y.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&A.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&A.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&A.setMarkers.call(this),A.updateSeekTooltip.call(this)},toggleMenuButton(e,a){gt(this.elements.settings.buttons[e],!a)},updateSetting(e,a,t){const n=this.elements.settings.panels[e];let s=null,i=a;if(e==="captions")s=this.currentTrack;else{if(s=y.empty(t)?this[e]:t,y.empty(s)&&(s=this.config[e].default),!y.empty(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(y.element(i)||(i=n&&n.querySelector('[role="menu"]')),!y.element(i))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=A.getLabel.call(this,e,s);const r=i&&i.querySelector(`[value="${s}"]`);y.element(r)&&(r.checked=!0)},getLabel(e,a){switch(e){case"speed":return a===1?Ee.get("normal",this.config):`${a}&times;`;case"quality":if(y.number(a)){const t=Ee.get(`qualityLabel.${a}`,this.config);return t.length?t:`${a}p`}return Sl(a);case"captions":return Y.getLabel.call(this);default:return null}},setQualityMenu(e){if(!y.element(this.elements.settings.panels.quality))return;const a="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');y.array(e)&&(this.options.quality=vn(e).filter(i=>this.config.quality.options.includes(i)));const n=!y.empty(this.options.quality)&&this.options.quality.length>1;if(A.toggleMenuButton.call(this,a,n),$o(t),A.checkMenu.call(this),!n)return;const s=i=>{const r=Ee.get(`qualityBadge.${i}`,this.config);return r.length?A.createBadge.call(this,r):null};this.options.quality.sort((i,r)=>{const l=this.config.quality.options;return l.indexOf(i)>l.indexOf(r)?1:-1}).forEach(i=>{A.createMenuItem.call(this,{value:i,list:t,type:a,title:A.getLabel.call(this,"quality",i),badge:s(i)})}),A.updateSetting.call(this,a,t)},setCaptionsMenu(){if(!y.element(this.elements.settings.panels.captions))return;const e="captions",a=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=Y.getTracks.call(this),n=!!t.length;if(A.toggleMenuButton.call(this,e,n),$o(a),A.checkMenu.call(this),!n)return;const s=t.map((i,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:Y.getLabel.call(this,i),badge:i.language&&A.createBadge.call(this,i.language.toUpperCase()),list:a,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Ee.get("disabled",this.config),list:a,type:"language"}),s.forEach(A.createMenuItem.bind(this)),A.updateSetting.call(this,e,a)},setSpeedMenu(){if(!y.element(this.elements.settings.panels.speed))return;const e="speed",a=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(n=>n>=this.minimumSpeed&&n<=this.maximumSpeed);const t=!y.empty(this.options.speed)&&this.options.speed.length>1;A.toggleMenuButton.call(this,e,t),$o(a),A.checkMenu.call(this),t&&(this.options.speed.forEach(n=>{A.createMenuItem.call(this,{value:n,list:a,type:e,title:A.getLabel.call(this,"speed",n)})}),A.updateSetting.call(this,e,a))},checkMenu(){const{buttons:e}=this.elements.settings,a=!y.empty(e)&&Object.values(e).some(t=>!t.hidden);gt(this.elements.settings.menu,!a)},focusFirstMenuItem(e,a=!1){if(this.elements.settings.popup.hidden)return;let t=e;y.element(t)||(t=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const n=t.querySelector('[role^="menuitem"]');Nn.call(this,n,a)},toggleMenu(e){const{popup:a}=this.elements.settings,t=this.elements.buttons.settings;if(!y.element(a)||!y.element(t))return;const{hidden:n}=a;let s=n;if(y.boolean(e))s=e;else if(y.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(y.event(e)){const i=y.function(e.composedPath)?e.composedPath()[0]:e.target,r=a.contains(i);if(r||!r&&e.target!==t&&s)return}t.setAttribute("aria-expanded",s),gt(a,!s),Q(this.elements.container,this.config.classNames.menu.open,s),s&&y.keyboardEvent(e)?A.focusFirstMenuItem.call(this,null,!0):s||n||Nn.call(this,t,y.keyboardEvent(e))},getMenuSize(e){const a=e.cloneNode(!0);a.style.position="absolute",a.style.opacity=0,a.removeAttribute("hidden"),e.parentNode.appendChild(a);const t=a.scrollWidth,n=a.scrollHeight;return st(a),{width:t,height:n}},showMenuPanel(e="",a=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!y.element(t))return;const n=t.parentNode,s=Array.from(n.children).find(i=>!i.hidden);if(ue.transitions&&!ue.reducedMotion){n.style.width=`${s.scrollWidth}px`,n.style.height=`${s.scrollHeight}px`;const i=A.getMenuSize.call(this,t),r=l=>{l.target===n&&["width","height"].includes(l.propertyName)&&(n.style.width="",n.style.height="",Ro.call(this,n,Bn,r))};X.call(this,n,Bn,r),n.style.width=`${i.width}px`,n.style.height=`${i.height}px`}gt(s,!0),gt(t,!1),A.focusFirstMenuItem.call(this,t,a)},setDownloadUrl(){const e=this.elements.buttons.download;y.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:a,createButton:t,createProgress:n,createRange:s,createTime:i,setQualityMenu:r,setSpeedMenu:l,showMenuPanel:u}=A;this.elements.controls=null,y.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const c=M("div",Ye(this.config.selectors.controls.wrapper));this.elements.controls=c;const m={class:"plyr__controls__item"};return vn(y.array(this.config.controls)?this.config.controls:[]).forEach(h=>{if(h==="restart"&&c.appendChild(t.call(this,"restart",m)),h==="rewind"&&c.appendChild(t.call(this,"rewind",m)),h==="play"&&c.appendChild(t.call(this,"play",m)),h==="fast-forward"&&c.appendChild(t.call(this,"fast-forward",m)),h==="progress"){const f=M("div",{class:`${m.class} plyr__progress__container`}),d=M("div",Ye(this.config.selectors.progress));if(d.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),d.appendChild(n.call(this,"buffer")),this.config.tooltips.seek){const p=M("span",{class:this.config.classNames.tooltip},"00:00");d.appendChild(p),this.elements.display.seekTooltip=p}this.elements.progress=d,f.appendChild(this.elements.progress),c.appendChild(f)}if(h==="current-time"&&c.appendChild(i.call(this,"currentTime",m)),h==="duration"&&c.appendChild(i.call(this,"duration",m)),h==="mute"||h==="volume"){let{volume:f}=this.elements;if(y.element(f)&&c.contains(f)||(f=M("div",me({},m,{class:`${m.class} plyr__volume`.trim()})),this.elements.volume=f,c.appendChild(f)),h==="mute"&&f.appendChild(t.call(this,"mute")),h==="volume"&&!Ce.isIos&&!Ce.isIPadOS){const d={max:1,step:.05,value:this.config.volume};f.appendChild(s.call(this,"volume",me(d,{id:`plyr-volume-${e.id}`})))}}if(h==="captions"&&c.appendChild(t.call(this,"captions",m)),h==="settings"&&!y.empty(this.config.settings)){const f=M("div",me({},m,{class:`${m.class} plyr__menu`.trim(),hidden:""}));f.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const d=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),p=M("div"),g=M("div",{id:`plyr-settings-${e.id}-home`}),b=M("div",{role:"menu"});g.appendChild(b),p.appendChild(g),this.elements.settings.panels.home=g,this.config.settings.forEach(S=>{const _=M("button",me(Ye(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));a.call(this,_,S),X.call(this,_,"click",()=>{u.call(this,S,!1)});const O=M("span",null,Ee.get(S,this.config)),L=M("span",{class:this.config.classNames.menu.value});L.innerHTML=e[S],O.appendChild(L),_.appendChild(O),b.appendChild(_);const H=M("div",{id:`plyr-settings-${e.id}-${S}`,hidden:""}),ee=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});ee.appendChild(M("span",{"aria-hidden":!0},Ee.get(S,this.config))),ee.appendChild(M("span",{class:this.config.classNames.hidden},Ee.get("menuBack",this.config))),X.call(this,H,"keydown",W=>{W.key==="ArrowLeft"&&(W.preventDefault(),W.stopPropagation(),u.call(this,"home",!0))},!1),X.call(this,ee,"click",()=>{u.call(this,"home",!1)}),H.appendChild(ee),H.appendChild(M("div",{role:"menu"})),p.appendChild(H),this.elements.settings.buttons[S]=_,this.elements.settings.panels[S]=H}),d.appendChild(p),f.appendChild(d),c.appendChild(f),this.elements.settings.popup=d,this.elements.settings.menu=f}if(h==="pip"&&ue.pip&&c.appendChild(t.call(this,"pip",m)),h==="airplay"&&ue.airplay&&c.appendChild(t.call(this,"airplay",m)),h==="download"){const f=me({},m,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(f.download="");const{download:d}=this.config.urls;!y.url(d)&&this.isEmbed&&me(f,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(t.call(this,"download",f))}h==="fullscreen"&&c.appendChild(t.call(this,"fullscreen",m))}),this.isHTML5&&r.call(this,mt.getQualityOptions.call(this)),l.call(this),c},inject(){if(this.config.loadSprite){const s=A.getIconUrl.call(this);s.cors&&kl(s.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const a={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;y.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,a)),this.config.controls||(this.config.controls=[]),y.element(this.config.controls)||y.string(this.config.controls)?e=this.config.controls:(e=A.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Y.getLabel.call(this)}),t=!1);let n;if(t&&y.string(this.config.controls)&&(e=(s=>{let i=s;return Object.entries(a).forEach(([r,l])=>{i=Ht(i,`{${r}}`,l)}),i})(e)),y.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),y.element(n)||(n=this.elements.container),n[y.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),y.element(this.elements.controls)||A.findElements.call(this),!y.empty(this.elements.buttons)){const s=i=>{const r=this.config.classNames.controlPressed;i.setAttribute("aria-pressed","false"),Object.defineProperty(i,"pressed",{configurable:!0,enumerable:!0,get:()=>Io(i,r),set(l=!1){Q(i,r,l),i.setAttribute("aria-pressed",l?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(i=>{y.array(i)||y.nodeList(i)?Array.from(i).filter(Boolean).forEach(s):s(i)})}if(Ce.isEdge&&dl(n),this.config.tooltips.controls){const{classNames:s,selectors:i}=this.config,r=`${i.controls.wrapper} ${i.labels} .${s.hidden}`,l=Wt.call(this,r);Array.from(l).forEach(u=>{Q(u,this.config.classNames.hidden,!1),Q(u,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,a;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(a=e.points)===null||a===void 0?void 0:a.filter(({time:u})=>u>0&&u<this.duration);if(t==null||!t.length)return;const n=document.createDocumentFragment(),s=document.createDocumentFragment();let i=null;const r=`${this.config.classNames.tooltip}--visible`,l=u=>Q(i,r,u);t.forEach(u=>{const c=M("span",{class:this.config.classNames.marker},""),m=u.time/this.duration*100+"%";i&&(c.addEventListener("mouseenter",()=>{u.label||(i.style.left=m,i.innerHTML=u.label,l(!0))}),c.addEventListener("mouseleave",()=>{l(!1)})),c.addEventListener("click",()=>{this.currentTime=u.time}),c.style.left=m,s.appendChild(c)}),n.appendChild(s),this.config.tooltips.seek||(i=M("span",{class:this.config.classNames.tooltip},""),n.appendChild(i)),this.elements.markers={points:s,tip:i},this.elements.progress.appendChild(n)}};function El(e,a=!0){let t=e;if(a){const n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch{return null}}function Bl(e){const a=new URLSearchParams;return y.object(e)&&Object.entries(e).forEach(([t,n])=>{a.set(t,n)}),a}const Y={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ue.textTracks)return void(y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&A.setCaptionsMenu.call(this));if(y.element(this.elements.captions)||(this.elements.captions=M("div",Ye(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),WS(this.elements.captions,this.elements.wrapper)),Ce.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(s=>{const i=s.getAttribute("src"),r=El(i);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&qt(i,"blob").then(l=>{s.setAttribute("src",window.URL.createObjectURL(l))}).catch(()=>{st(s)})})}const e=vn((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let a=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();a==="auto"&&([a]=e);let t=this.storage.get("captions");if(y.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:a,languages:e}),this.isHTML5){const n=this.config.captions.update?"addtrack removetrack":"removetrack";X.call(this,this.media.textTracks,n,Y.update.bind(this))}setTimeout(Y.update.bind(this),0)},update(){const e=Y.getTracks.call(this,!0),{active:a,language:t,meta:n,currentTrackNode:s}=this.captions,i=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!n.get(r)).forEach(r=>{this.debug.log("Track added",r),n.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),X.call(this,r,"cuechange",()=>Y.updateCues.call(this))}),(i&&this.language!==t||!e.includes(s))&&(Y.setLanguage.call(this,t),Y.toggle.call(this,a&&i)),this.elements&&Q(this.elements.container,this.config.classNames.captions.enabled,!y.empty(e)),y.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&A.setCaptionsMenu.call(this)},toggle(e,a=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,n=this.config.classNames.captions.active,s=y.nullOrUndefined(e)?!t:e;if(s!==t){if(a||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!a){const i=Y.getTracks.call(this),r=Y.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void Y.set.call(this,i.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),Q(this.elements.container,n,s),this.captions.toggled=s,A.updateSetting.call(this,"captions"),j.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,a=!0){const t=Y.getTracks.call(this);if(e!==-1)if(y.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const n=t[e],{language:s}=n||{};this.captions.currentTrackNode=n,A.updateSetting.call(this,"captions"),a||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),j.call(this,this.media,"languagechange")}Y.toggle.call(this,!0,a),this.isHTML5&&this.isVideo&&Y.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Y.toggle.call(this,!1,a)},setLanguage(e,a=!0){if(!y.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const n=Y.getTracks.call(this),s=Y.findTrack.call(this,[t]);Y.set.call(this,n.indexOf(s),a)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(a=>!this.isHTML5||e||this.captions.meta.has(a)).filter(a=>["captions","subtitles"].includes(a.kind))},findTrack(e,a=!1){const t=Y.getTracks.call(this),n=r=>Number((this.captions.meta.get(r)||{}).default),s=Array.from(t).sort((r,l)=>n(l)-n(r));let i;return e.every(r=>(i=s.find(l=>l.language===r),!i)),i||(a?s[0]:void 0)},getCurrentTrack(){return Y.getTracks.call(this)[this.currentTrack]},getLabel(e){let a=e;return!y.track(a)&&ue.textTracks&&this.captions.toggled&&(a=Y.getCurrentTrack.call(this)),y.track(a)?y.empty(a.label)?y.empty(a.language)?Ee.get("enabled",this.config):e.language.toUpperCase():a.label:Ee.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!y.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!y.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let a=e;if(!a){const n=Y.getCurrentTrack.call(this);a=Array.from((n||{}).activeCues||[]).map(s=>s.getCueAsHTML()).map(e_)}const t=a.map(n=>n.trim()).join(`
37
+ `);if(t!==this.elements.captions.innerHTML){$o(this.elements.captions);const n=M("span",Ye(this.config.selectors.caption));n.innerHTML=t,this.elements.captions.appendChild(n),j.call(this,this.media,"cuechange")}}},xl={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Vn={active:"picture-in-picture",inactive:"inline"},ut={html5:"html5",youtube:"youtube",vimeo:"vimeo"},$n={audio:"audio",video:"video"};function a_(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?ut.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?ut.vimeo:null}const Pn=()=>{};class n_{constructor(a=!1){this.enabled=window.console&&a,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Pn}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Pn}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Pn}}class We{constructor(a){V(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;y.element(t)&&(t.pressed=this.active);const n=this.target===this.player.media?this.target:this.player.elements.container;j.call(this.player,n,this.active?"enterfullscreen":"exitfullscreen",!0)}),V(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",Q(this.target,this.player.config.classNames.fullscreen.fallback,t),Ce.isIos){let n=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const i=y.string(n.content)&&n.content.includes(s);t?(this.cleanupViewport=!i,i||(n.content+=`,${s}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(r=>r.trim()!==s).join(","))}this.onChange()}),V(this,"trapFocus",t=>{if(Ce.isIos||Ce.isIPadOS||!this.active||t.key!=="Tab")return;const n=document.activeElement,s=Wt.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=s,r=s[s.length-1];n!==r||t.shiftKey?n===i&&t.shiftKey&&(r.focus(),t.preventDefault()):(i.focus(),t.preventDefault())}),V(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":We.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");Q(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),V(this,"enter",()=>{this.supported&&(Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!We.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?y.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),V(this,"exit",()=>{if(this.supported)if(Ce.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),Qe(this.player.play());else if(!We.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!y.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),V(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=a,this.prefix=We.prefix,this.property=We.property,this.scrollPosition={x:0,y:0},this.forceFallback=a.config.fullscreen.fallback==="force",this.player.elements.fullscreen=a.config.fullscreen.container&&US(this.player.elements.container,a.config.fullscreen.container),X.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),X.call(this.player,this.player.elements.container,"dblclick",t=>{y.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),X.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return We.nativeSupported&&!this.forceFallback}static get prefix(){if(y.function(document.exitFullscreen))return"";let a="";return["webkit","moz","ms"].some(t=>!(!y.function(document[`${t}ExitFullscreen`])&&!y.function(document[`${t}CancelFullScreen`]))&&(a=t,!0)),a}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,We.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||We.nativeSupported||!Ce.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!We.nativeSupported||this.forceFallback)return Io(this.target,this.player.config.classNames.fullscreen.fallback);const a=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return a&&a.shadowRoot?a===this.target.getRootNode().host:a===this.target}get target(){return Ce.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function Fo(e,a=1){return new Promise((t,n)=>{const s=new Image,i=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=a?t:n)(s)};Object.assign(s,{onload:i,onerror:i,src:e})})}const oe={addStyleHook(){Q(this.elements.container,this.config.selectors.container.replace(".",""),!0),Q(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void oe.toggleNativeControls.call(this,!0);y.element(this.elements.controls)||(A.inject.call(this),this.listeners.controls()),oe.toggleNativeControls.call(this),this.isHTML5&&Y.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,A.updateVolume.call(this),A.timeUpdate.call(this),A.durationUpdate.call(this),oe.checkPlaying.call(this),Q(this.elements.container,this.config.classNames.pip.supported,ue.pip&&this.isHTML5&&this.isVideo),Q(this.elements.container,this.config.classNames.airplay.supported,ue.airplay&&this.isHTML5),Q(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{j.call(this,this.media,"ready")},0),oe.setTitle.call(this),this.poster&&oe.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&A.durationUpdate.call(this),this.config.mediaMetadata&&A.setMediaMetadata.call(this)},setTitle(){let e=Ee.get("play",this.config);if(y.string(this.config.title)&&!y.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(a=>{a.setAttribute("aria-label",e)}),this.isEmbed){const a=be.call(this,"iframe");if(!y.element(a))return;const t=y.empty(this.config.title)?"video":this.config.title,n=Ee.get("frameTitle",this.config);a.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){Q(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,a=!0){return a&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),qS.call(this).then(()=>Fo(e)).catch(t=>{throw e===this.poster&&oe.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),oe.togglePoster.call(this,!0),e)))},checkPlaying(e){Q(this.elements.container,this.config.classNames.playing,this.playing),Q(this.elements.container,this.config.classNames.paused,this.paused),Q(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(a=>{Object.assign(a,{pressed:this.playing}),a.setAttribute("aria-label",Ee.get(this.playing?"pause":"play",this.config))}),y.event(e)&&e.type==="timeupdate"||oe.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{Q(this.elements.container,this.config.classNames.loading,this.loading),oe.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:a}=this.elements;if(a&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||a.pressed||a.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!y.empty(e)&&y.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),y.empty(this.media.style)&&this.media.removeAttribute("style")}};class i_{constructor(a){V(this,"firstTouch",()=>{const{player:t}=this,{elements:n}=t;t.touch=!0,Q(n.container,t.config.classNames.isTouch,!0)}),V(this,"global",(t=!0)=>{const{player:n}=this;n.config.keyboard.global&&Ut.call(n,window,"keydown keyup",this.handleKey,t,!1),Ut.call(n,document.body,"click",this.toggleMenu,t),Tn.call(n,document.body,"touchstart",this.firstTouch)}),V(this,"container",()=>{const{player:t}=this,{config:n,elements:s,timers:i}=t;!n.keyboard.global&&n.keyboard.focused&&X.call(t,s.container,"keydown keyup",this.handleKey,!1),X.call(t,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",u=>{const{controls:c}=s;c&&u.type==="enterfullscreen"&&(c.pressed=!1,c.hover=!1);let m=0;["touchstart","touchmove","mousemove"].includes(u.type)&&(oe.toggleControls.call(t,!0),m=t.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout(()=>oe.toggleControls.call(t,!1),m)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const u=s.wrapper,{active:c}=t.fullscreen,[m,h]=On.call(t),f=fl(`aspect-ratio: ${m} / ${h}`);if(!c)return void(f?(u.style.width=null,u.style.height=null):(u.style.maxWidth=null,u.style.margin=null));const[d,p]=JS(),g=d/p>m/h;f?(u.style.width=g?"auto":"100%",u.style.height=g?"100%":"auto"):(u.style.maxWidth=g?p/h*m+"px":null,u.style.margin=g?"0 auto":null)},l=()=>{clearTimeout(i.resized),i.resized=setTimeout(r,50)};X.call(t,s.container,"enterfullscreen exitfullscreen",u=>{const{target:c}=t.fullscreen;c===s.container&&(!t.isEmbed&&y.empty(t.config.ratio)||(r(),(u.type==="enterfullscreen"?X:Ro).call(t,window,"resize",l)))})}),V(this,"media",()=>{const{player:t}=this,{elements:n}=t;if(X.call(t,t.media,"timeupdate seeking seeked",i=>A.timeUpdate.call(t,i)),X.call(t,t.media,"durationchange loadeddata loadedmetadata",i=>A.durationUpdate.call(t,i)),X.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),X.call(t,t.media,"progress playing seeking seeked",i=>A.updateProgress.call(t,i)),X.call(t,t.media,"volumechange",i=>A.updateVolume.call(t,i)),X.call(t,t.media,"playing play pause ended emptied timeupdate",i=>oe.checkPlaying.call(t,i)),X.call(t,t.media,"waiting canplay seeked playing",i=>oe.checkLoading.call(t,i)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const i=be.call(t,`.${t.config.classNames.video}`);if(!y.element(i))return;X.call(t,n.container,"click",r=>{([n.container,i].includes(r.target)||i.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{Qe(t.play())},"play")):this.proxy(r,()=>{Qe(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&X.call(t,n.wrapper,"contextmenu",i=>{i.preventDefault()},!1),X.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),X.call(t,t.media,"ratechange",()=>{A.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),X.call(t,t.media,"qualitychange",i=>{A.updateSetting.call(t,"quality",null,i.detail.quality)}),X.call(t,t.media,"ready qualitychange",()=>{A.setDownloadUrl.call(t)});const s=t.config.events.concat(["keyup","keydown"]).join(" ");X.call(t,t.media,s,i=>{let{detail:r={}}=i;i.type==="error"&&(r=t.media.error),j.call(t,n.container,i.type,!0,r)})}),V(this,"proxy",(t,n,s)=>{const{player:i}=this,r=i.config.listeners[s];let l=!0;y.function(r)&&(l=r.call(i,t)),l!==!1&&y.function(n)&&n.call(i,t)}),V(this,"bind",(t,n,s,i,r=!0)=>{const{player:l}=this,u=l.config.listeners[i],c=y.function(u);X.call(l,t,n,m=>this.proxy(m,s,i),r&&!c)}),V(this,"controls",()=>{const{player:t}=this,{elements:n}=t,s=Ce.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach(i=>{this.bind(i,"click",()=>{Qe(t.togglePlay())},"play")}),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(n.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(n.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(n.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(n.buttons.download,"click",()=>{j.call(t,t.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",i=>{i.stopPropagation(),i.preventDefault(),A.toggleMenu.call(t,i)},null,!1),this.bind(n.buttons.settings,"keyup",i=>{[" ","Enter"].includes(i.key)&&(i.key!=="Enter"?(i.preventDefault(),i.stopPropagation(),A.toggleMenu.call(t,i)):A.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",i=>{i.key==="Escape"&&A.toggleMenu.call(t,i)}),this.bind(n.inputs.seek,"mousedown mousemove",i=>{const r=n.progress.getBoundingClientRect(),l=100/r.width*(i.pageX-r.left);i.currentTarget.setAttribute("seek-value",l)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",i=>{const r=i.currentTarget,l="play-on-seeked";if(y.keyboardEvent(i)&&!["ArrowLeft","ArrowRight"].includes(i.key))return;t.lastSeekTime=Date.now();const u=r.hasAttribute(l),c=["mouseup","touchend","keyup"].includes(i.type);u&&c?(r.removeAttribute(l),Qe(t.play())):!c&&t.playing&&(r.setAttribute(l,""),t.pause())}),Ce.isIos){const i=Wt.call(t,'input[type="range"]');Array.from(i).forEach(r=>this.bind(r,s,l=>dl(l.target)))}this.bind(n.inputs.seek,s,i=>{const r=i.currentTarget;let l=r.getAttribute("seek-value");y.empty(l)&&(l=r.value),r.removeAttribute("seek-value"),t.currentTime=l/r.max*t.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",i=>A.updateSeekTooltip.call(t,i)),this.bind(n.progress,"mousemove touchmove",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(i)}),this.bind(n.progress,"mouseleave touchend click",()=>{const{previewThumbnails:i}=t;i&&i.loaded&&i.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(i)}),this.bind(n.progress,"mouseup touchend",i=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(i)}),Ce.isWebKit&&Array.from(Wt.call(t,'input[type="range"]')).forEach(i=>{this.bind(i,"input",r=>A.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!y.element(n.display.duration)&&this.bind(n.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,A.timeUpdate.call(t))}),this.bind(n.inputs.volume,s,i=>{t.volume=i.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",i=>{n.controls.hover=!t.touch&&i.type==="mouseenter"}),n.fullscreen&&Array.from(n.fullscreen.children).filter(i=>!i.contains(n.container)).forEach(i=>{this.bind(i,"mouseenter mouseleave",r=>{n.controls&&(n.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",i=>{n.controls.pressed=["mousedown","touchstart"].includes(i.type)}),this.bind(n.controls,"focusin",()=>{const{config:i,timers:r}=t;Q(n.controls,i.classNames.noTransition,!0),oe.toggleControls.call(t,!0),setTimeout(()=>{Q(n.controls,i.classNames.noTransition,!1)},0);const l=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>oe.toggleControls.call(t,!1),l)}),this.bind(n.inputs.volume,"wheel",i=>{const r=i.webkitDirectionInvertedFromDevice,[l,u]=[i.deltaX,-i.deltaY].map(h=>r?-h:h),c=Math.sign(Math.abs(l)>Math.abs(u)?l:u);t.increaseVolume(c/50);const{volume:m}=t.media;(c===1&&m<1||c===-1&&m>0)&&i.preventDefault()},"volume",!1)}),this.player=a,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(a){const{player:t}=this,{elements:n}=t,{key:s,type:i,altKey:r,ctrlKey:l,metaKey:u,shiftKey:c}=a,m=i==="keydown",h=m&&s===this.lastKey;if(!(r||l||u||c)&&s){if(m){const d=document.activeElement;if(y.element(d)){const{editable:p}=t.config.selectors,{seek:g}=n.inputs;if(d!==g&&ft(d,p)||a.key===" "&&ft(d,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(a.preventDefault(),a.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h||(f=parseInt(s,10),t.currentTime=t.duration/10*f);break;case" ":case"k":h||Qe(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":h||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":h||t.toggleCaptions();break;case"l":t.loop=!t.loop}s==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var f}}toggleMenu(a){A.toggleMenu.call(this.player,a)}}function s_(e,a){return e(a={exports:{}},a.exports),a.exports}var r_=s_(function(e,a){e.exports=function(){var t=function(){},n={},s={},i={};function r(f,d){f=f.push?f:[f];var p,g,b,S=[],_=f.length,O=_;for(p=function(L,H){H.length&&S.push(L),--O||d(S)};_--;)g=f[_],(b=s[g])?p(g,b):(i[g]=i[g]||[]).push(p)}function l(f,d){if(f){var p=i[f];if(s[f]=d,p)for(;p.length;)p[0](f,d),p.splice(0,1)}}function u(f,d){f.call&&(f={success:f}),d.length?(f.error||t)(d):(f.success||t)(f)}function c(f,d,p,g){var b,S,_=document,O=p.async,L=(p.numRetries||0)+1,H=p.before||t,ee=f.replace(/[\?|#].*$/,""),W=f.replace(/^(css|img)!/,"");g=g||0,/(^css!|\.css$)/.test(ee)?((S=_.createElement("link")).rel="stylesheet",S.href=W,(b="hideFocus"in S)&&S.relList&&(b=0,S.rel="preload",S.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(ee)?(S=_.createElement("img")).src=W:((S=_.createElement("script")).src=f,S.async=O===void 0||O),S.onload=S.onerror=S.onbeforeload=function(le){var $=le.type[0];if(b)try{S.sheet.cssText.length||($="e")}catch(ae){ae.code!=18&&($="e")}if($=="e"){if((g+=1)<L)return c(f,d,p,g)}else if(S.rel=="preload"&&S.as=="style")return S.rel="stylesheet";d(f,$,le.defaultPrevented)},H(f,S)!==!1&&_.head.appendChild(S)}function m(f,d,p){var g,b,S=(f=f.push?f:[f]).length,_=S,O=[];for(g=function(L,H,ee){if(H=="e"&&O.push(L),H=="b"){if(!ee)return;O.push(L)}--S||d(O)},b=0;b<_;b++)c(f[b],g,p)}function h(f,d,p){var g,b;if(d&&d.trim&&(g=d),b=(g?p:d)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function S(_,O){m(f,function(L){u(b,L),_&&u({success:_,error:O},L),l(g,L)},b)}if(b.returnPromise)return new Promise(S);S()}return h.ready=function(f,d){return r(f,function(p){u(d,p)}),h},h.done=function(f){l(f,[])},h.reset=function(){n={},s={},i={}},h.isDefined=function(f){return f in n},h}()});function In(e){return new Promise((a,t)=>{r_(e,{success:a,error:t})})}function l_(e){return y.empty(e)?null:y.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function c_(e){const a=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return a&&a.length===5?a[4]:null}function Jt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}const Rn={setup(){const e=this;Q(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Bt.call(e),y.object(window.Vimeo)?Rn.ready.call(e):In(e.config.urls.vimeo.sdk).then(()=>{Rn.ready.call(e)}).catch(a=>{e.debug.warn("Vimeo SDK (player.js) failed to load",a)})},ready(){const e=this,a=e.config.vimeo,{premium:t,referrerPolicy:n,...s}=a;let i=e.media.getAttribute("src"),r="";y.empty(i)?(i=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=c_(i);const l=r?{h:r}:{};t&&Object.assign(s,{controls:!1,sidedock:!1});const u=Bl({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...l,...s}),c=l_(i),m=M("iframe"),h=An(e.config.urls.vimeo.iframe,c,u);if(m.setAttribute("src",h),m.setAttribute("allowfullscreen",""),m.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),y.empty(n)||m.setAttribute("referrerPolicy",n),t||!a.customControls)m.setAttribute("data-poster",e.poster),e.media=Po(m,e.media);else{const _=M("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});_.appendChild(m),e.media=Po(_,e.media)}a.customControls||qt(An(e.config.urls.vimeo.api,h)).then(_=>{!y.empty(_)&&_.thumbnail_url&&oe.setPoster.call(e,_.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(m,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Jt.call(e,!0),e.embed.play()),e.media.pause=()=>(Jt.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:f}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>f,set(_){const{embed:O,media:L,paused:H,volume:ee}=e,W=H&&!O.hasPlayed;L.seeking=!0,j.call(e,L,"seeking"),Promise.resolve(W&&O.setVolume(0)).then(()=>O.setCurrentTime(_)).then(()=>W&&O.pause()).then(()=>W&&O.setVolume(ee)).catch(()=>{})}});let d=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>d,set(_){e.embed.setPlaybackRate(_).then(()=>{d=_,j.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:p}=e.config;Object.defineProperty(e.media,"volume",{get:()=>p,set(_){e.embed.setVolume(_).then(()=>{p=_,j.call(e,e.media,"volumechange")})}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(_){const O=!!y.boolean(_)&&_;e.embed.setMuted(!!O||e.config.muted).then(()=>{g=O,j.call(e,e.media,"volumechange")})}});let b,{loop:S}=e.config;Object.defineProperty(e.media,"loop",{get:()=>S,set(_){const O=y.boolean(_)?_:e.config.loop.active;e.embed.setLoop(O).then(()=>{S=O})}}),e.embed.getVideoUrl().then(_=>{b=_,A.setDownloadUrl.call(e)}).catch(_=>{this.debug.warn(_)}),Object.defineProperty(e.media,"currentSrc",{get:()=>b}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(_=>{const[O,L]=_;e.embed.ratio=wl(O,L),Bt.call(this)}),e.embed.setAutopause(e.config.autopause).then(_=>{e.config.autopause=_}),e.embed.getVideoTitle().then(_=>{e.config.title=_,oe.setTitle.call(this)}),e.embed.getCurrentTime().then(_=>{f=_,j.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(_=>{e.media.duration=_,j.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(_=>{e.media.textTracks=_,Y.setup.call(e)}),e.embed.on("cuechange",({cues:_=[]})=>{const O=_.map(L=>QS(L.text));Y.updateCues.call(e,O)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(_=>{Jt.call(e,!_),_||j.call(e,e.media,"playing")}),y.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{j.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{j.call(e,e.media,"playing")}),e.embed.on("play",()=>{Jt.call(e,!0),j.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Jt.call(e,!1)}),e.embed.on("timeupdate",_=>{e.media.seeking=!1,f=_.seconds,j.call(e,e.media,"timeupdate")}),e.embed.on("progress",_=>{e.media.buffered=_.percent,j.call(e,e.media,"progress"),parseInt(_.percent,10)===1&&j.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(O=>{O!==e.media.duration&&(e.media.duration=O,j.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,j.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,j.call(e,e.media,"ended")}),e.embed.on("error",_=>{e.media.error=_,j.call(e,e.media,"error")}),a.customControls&&setTimeout(()=>oe.build.call(e),0)}};function d_(e){return y.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function Kt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,j.call(this,this.media,e?"play":"pause"))}function m_(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const Mo={setup(){if(Q(this.elements.wrapper,this.config.classNames.embed,!0),y.object(window.YT)&&y.function(window.YT.Player))Mo.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{y.function(e)&&e(),Mo.ready.call(this)},In(this.config.urls.youtube.sdk).catch(a=>{this.debug.warn("YouTube API failed to load",a)})}},getTitle(e){qt(An(this.config.urls.youtube.api,e)).then(a=>{if(y.object(a)){const{title:t,height:n,width:s}=a;this.config.title=t,oe.setTitle.call(this),this.embed.ratio=wl(s,n)}Bt.call(this)}).catch(()=>{Bt.call(this)})},ready(){const e=this,a=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!y.empty(t)&&t.startsWith("youtube-"))return;let n=e.media.getAttribute("src");y.empty(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));const s=d_(n),i=M("div",{id:KS(e.provider),"data-poster":a.customControls?e.poster:void 0});if(e.media=Po(i,e.media),a.customControls){const r=l=>`https://i.ytimg.com/vi/${s}/${l}default.jpg`;Fo(r("maxres"),121).catch(()=>Fo(r("sd"),121)).catch(()=>Fo(r("hq"))).then(l=>oe.setPoster.call(e,l.src)).then(l=>{l.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:m_(a),playerVars:me({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&a.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},a),events:{onError(r){if(!e.media.error){const l=r.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[l]||"An unknown error occurred";e.media.error={code:l,message:u},j.call(e,e.media,"error")}},onPlaybackRateChange(r){const l=r.target;e.media.playbackRate=l.getPlaybackRate(),j.call(e,e.media,"ratechange")},onReady(r){if(y.function(e.media.play))return;const l=r.target;Mo.getTitle.call(e,s),e.media.play=()=>{Kt.call(e,!0),l.playVideo()},e.media.pause=()=>{Kt.call(e,!1),l.pauseVideo()},e.media.stop=()=>{l.stopVideo()},e.media.duration=l.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(l.getCurrentTime()),set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,j.call(e,e.media,"seeking"),l.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>l.getPlaybackRate(),set(h){l.setPlaybackRate(h)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get:()=>u,set(h){u=h,l.setVolume(100*u),j.call(e,e.media,"volumechange")}});let{muted:c}=e.config;Object.defineProperty(e.media,"muted",{get:()=>c,set(h){const f=y.boolean(h)?h:c;c=f,l[f?"mute":"unMute"](),l.setVolume(100*u),j.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>l.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const m=l.getAvailablePlaybackRates();e.options.speed=m.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&a.customControls&&e.media.setAttribute("tabindex",-1),j.call(e,e.media,"timeupdate"),j.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=l.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&j.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),j.call(e,e.media,"canplaythrough"))},200),a.customControls&&setTimeout(()=>oe.build.call(e),50)},onStateChange(r){const l=r.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(r.data)&&(e.media.seeking=!1,j.call(e,e.media,"seeked")),r.data){case-1:j.call(e,e.media,"timeupdate"),e.media.buffered=l.getVideoLoadedFraction(),j.call(e,e.media,"progress");break;case 0:Kt.call(e,!1),e.media.loop?(l.stopVideo(),l.playVideo()):j.call(e,e.media,"ended");break;case 1:a.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Kt.call(e,!0),j.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{j.call(e,e.media,"timeupdate")},50),e.media.duration!==l.getDuration()&&(e.media.duration=l.getDuration(),j.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Kt.call(e,!1);break;case 3:j.call(e,e.media,"waiting")}j.call(e,e.elements.container,"statechange",!1,{code:r.data})}}})}},Nl={setup(){this.media?(Q(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Q(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Q(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=M("div",{class:this.config.classNames.video}),ul(this.media,this.elements.wrapper),this.elements.poster=M("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?mt.setup.call(this):this.isYouTube?Mo.setup.call(this):this.isVimeo&&Rn.setup.call(this)):this.debug.warn("No media element found!")}};class u_{constructor(a){V(this,"load",()=>{this.enabled&&(y.object(window.google)&&y.object(window.google.ima)?this.ready():In(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),V(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),V(this,"setupIMA",()=>{this.elements.container=M("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),V(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(n){this.onAdError(n)}}),V(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const n=zo(Math.max(this.manager.getRemainingTime(),0)),s=`${Ee.get("advertisement",this.player.config)} - ${n}`;this.elements.container.setAttribute("data-badge-text",s)},100)}),V(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=t.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],i=>this.onAdEvent(i))}),this.trigger("loaded")}),V(this,"addCuePoints",()=>{y.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const n=this.player.elements.progress;if(y.element(n)){const s=100/this.player.duration*t,i=M("span",{class:this.player.config.classNames.cues});i.style.left=`${s.toString()}%`,n.appendChild(i)}}})}),V(this,"onAdEvent",t=>{const{container:n}=this.player.elements,s=t.getAd(),i=t.getAdData();switch((r=>{j.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=n.offsetWidth,s.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.adError.getMessage()}`)}}),V(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),V(this,"listeners",()=>{const{container:t}=this.player.elements;let n;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{n=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;y.empty(this.cuePoints)||this.cuePoints.forEach((i,r)=>{n<i&&i<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),V(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(n){this.onAdError(n)}}).catch(()=>{})}),V(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,Qe(this.player.media.play())}),V(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),V(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),V(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),V(this,"trigger",(t,...n)=>{const s=this.events[t];y.array(s)&&s.forEach(i=>{y.function(i)&&i.apply(this,n)})}),V(this,"on",(t,n)=>(y.array(this.events[t])||(this.events[t]=[]),this.events[t].push(n),this)),V(this,"startSafetyTimer",(t,n)=>{this.player.debug.log(`Safety timer invoked from: ${n}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),V(this,"clearSafetyTimer",t=>{y.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=a,this.config=a.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,n)=>{this.on("loaded",t),this.on("error",n)}),this.load()}get enabled(){const{config:a}=this;return this.player.isHTML5&&this.player.isVideo&&a.enabled&&(!y.empty(a.publisherId)||y.url(a.tagUrl))}get tagUrl(){const{config:a}=this;return y.url(a.tagUrl)?a.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Bl({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:a.publisherId})}`}}function Tl(e=0,a=0,t=255){return Math.min(Math.max(e,a),t)}const h_=e=>{const a=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(s=>{if(y.number(n.startTime)){if(!y.empty(s.trim())&&y.empty(n.text)){const i=s.trim().split("#xywh=");[n.text]=i,i[1]&&([n.x,n.y,n.w,n.h]=i[1].split(","))}}else{const i=s.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);i&&(n.startTime=60*Number(i[1]||0)*60+60*Number(i[2])+Number(i[3])+ +`0.${i[4]}`,n.endTime=60*Number(i[6]||0)*60+60*Number(i[7])+Number(i[8])+ +`0.${i[9]}`)}}),n.text&&a.push(n)}),a},vl=(e,a)=>{const t={};return e>a.width/a.height?(t.width=a.width,t.height=1/e*a.width):(t.height=a.height,t.width=e*a.height),t};class Ln{constructor(a){V(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),V(this,"getThumbnails",()=>new Promise(t=>{const{src:n}=this.player.config.previewThumbnails;if(y.empty(n))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((i,r)=>i.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(y.function(n))n(i=>{this.thumbnails=i,s()});else{const i=(y.string(n)?[n]:n).map(r=>this.getThumbnail(r));Promise.all(i).then(s)}})),V(this,"getThumbnail",t=>new Promise(n=>{qt(t).then(s=>{const i={frames:h_(s),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{i.height=r.naturalHeight,i.width=r.naturalWidth,this.thumbnails.push(i),n()},r.src=i.urlPrefix+i.frames[0].text})})),V(this,"startMove",t=>{if(this.loaded&&y.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var n,s;const i=this.player.elements.progress.getBoundingClientRect(),r=100/i.width*(t.pageX-i.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=zo(this.seekTime);const l=(n=this.player.config.markers)===null||n===void 0||(s=n.points)===null||s===void 0?void 0:s.find(({time:u})=>u===Math.round(this.seekTime));l&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${l.label}<br>`)}this.showImageAtCurrentTime()}}),V(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),V(this,"startScrubbing",t=>{(y.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),V(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Tn.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),V(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),V(this,"render",()=>{this.elements.thumb.container=M("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=M("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=M("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=M("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),y.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=M("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),V(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),V(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(i=>this.seekTime>=i.startTime&&this.seekTime<=i.endTime),n=t>=0;let s=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((i,r)=>{this.loadedImages.includes(i.frames[t].text)&&(s=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(s)))}),V(this,"loadImage",(t=0)=>{const n=this.showingThumb,s=this.thumbnails[t],{urlPrefix:i}=s,r=s.frames[n],l=s.frames[n].text,u=i+l;if(this.currentImageElement&&this.currentImageElement.dataset.filename===l)this.showImage(this.currentImageElement,r,t,n,l,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const c=new Image;c.src=u,c.dataset.index=n,c.dataset.filename=l,this.showingThumbFilename=l,this.player.debug.log(`Loading image: ${u}`),c.onload=()=>this.showImage(c,r,t,n,l,!0),this.loadingImage=c,this.removeOldImages(c)}}),V(this,"showImage",(t,n,s,i,r,l=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${i}. qual: ${s}. newimg: ${l}`),this.setImageSizeAndOffset(t,n),l&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(s,t,n,r))}),V(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(n=>{if(n.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(n.dataset.index!==t.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;const{currentImageContainer:i}=this;setTimeout(()=>{i.removeChild(n),this.player.debug.log(`Removing thumb: ${n.dataset.filename}`)},s)}})}),V(this,"preloadNearby",(t,n=!0)=>new Promise(s=>{setTimeout(()=>{const i=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===i){let r;r=n?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let l=!1;r.forEach(u=>{const c=u.text;if(c!==i&&!this.loadedImages.includes(c)){l=!0,this.player.debug.log(`Preloading thumb filename: ${c}`);const{urlPrefix:m}=this.thumbnails[0],h=m+c,f=new Image;f.src=h,f.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${c}`),this.loadedImages.includes(c)||this.loadedImages.push(c),s()}}}),l||s()}},300)})),V(this,"getHigherQuality",(t,n,s,i)=>{if(t<this.thumbnails.length-1){let r=n.naturalHeight;this.usingSprites&&(r=s.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(t+1))},300)}}),V(this,"toggleThumbContainer",(t=!1,n=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,t),!t&&n&&(this.showingThumb=null,this.showingThumbFilename=null)}),V(this,"toggleScrubbingContainer",(t=!1)=>{const n=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(n,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),V(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),V(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const n=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${n}px`}else if(t.clientHeight<20&&t.clientWidth>20){const n=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${n}px`}}else{const n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${n}px`}this.setThumbContainerPos()}),V(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),n=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,i=n.left-t.left+10,r=n.right-t.left-s.clientWidth-10,l=this.mousePosX-t.left-s.clientWidth/2,u=Tl(l,i,r);s.style.left=`${u}px`,s.style.setProperty("--preview-arrow-offset",l-u+"px")}),V(this,"setScrubbingContainerSize",()=>{const{width:t,height:n}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${n}px`}),V(this,"setImageSizeAndOffset",(t,n)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/n.h;t.style.height=t.naturalHeight*s+"px",t.style.width=t.naturalWidth*s+"px",t.style.left=`-${n.x*s}px`,t.style.top=`-${n.y*s}px`}),this.player=a,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:a}=vl(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return a}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(a){this.mouseDown?this.currentScrubbingImageElement=a:this.currentThumbnailImageElement=a}}const zn={insertElements(e,a){y.string(a)?hl(e,this.media,{src:a}):y.array(a)&&a.forEach(t=>{hl(e,this.media,t)})},change(e){ml(e,"sources.length")?(mt.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],st(this.media),this.media=null,y.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:a,type:t}=e,[{provider:n=ut.html5,src:s}]=a,i=n==="html5"?t:"div",r=n==="html5"?{}:{src:s};Object.assign(this,{provider:n,type:t,supported:ue.check(t,n,this.config.playsinline),media:M(i,r)}),this.elements.container.appendChild(this.media),y.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),y.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),oe.addStyleHook.call(this),this.isHTML5&&zn.insertElements.call(this,"source",a),this.config.title=e.title,Nl.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&zn.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.isHTML5&&this.media.load(),y.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Zt{constructor(a,t){if(V(this,"play",()=>y.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>Qe(this.media.play())),this.media.play()):null),V(this,"pause",()=>this.playing&&y.function(this.media.pause)?this.media.pause():null),V(this,"togglePlay",l=>(y.boolean(l)?l:!this.playing)?this.play():this.pause()),V(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):y.function(this.media.stop)&&this.media.stop()}),V(this,"restart",()=>{this.currentTime=0}),V(this,"rewind",l=>{this.currentTime-=y.number(l)?l:this.config.seekTime}),V(this,"forward",l=>{this.currentTime+=y.number(l)?l:this.config.seekTime}),V(this,"increaseVolume",l=>{const u=this.media.muted?0:this.volume;this.volume=u+(y.number(l)?l:0)}),V(this,"decreaseVolume",l=>{this.increaseVolume(-l)}),V(this,"airplay",()=>{ue.airplay&&this.media.webkitShowPlaybackTargetPicker()}),V(this,"toggleControls",l=>{if(this.supported.ui&&!this.isAudio){const u=Io(this.elements.container,this.config.classNames.hideControls),c=l===void 0?void 0:!l,m=Q(this.elements.container,this.config.classNames.hideControls,c);if(m&&y.array(this.config.controls)&&this.config.controls.includes("settings")&&!y.empty(this.config.settings)&&A.toggleMenu.call(this,!1),m!==u){const h=m?"controlshidden":"controlsshown";j.call(this,this.media,h)}return!m}return!1}),V(this,"on",(l,u)=>{X.call(this,this.elements.container,l,u)}),V(this,"once",(l,u)=>{Tn.call(this,this.elements.container,l,u)}),V(this,"off",(l,u)=>{Ro(this.elements.container,l,u)}),V(this,"destroy",(l,u=!1)=>{if(!this.ready)return;const c=()=>{document.body.style.overflow="",this.embed=null,u?(Object.keys(this.elements).length&&(st(this.elements.buttons.play),st(this.elements.captions),st(this.elements.controls),st(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),y.function(l)&&l()):(GS.call(this),mt.cancelRequests.call(this),Po(this.elements.original,this.elements.container),j.call(this,this.elements.original,"destroyed",!0),y.function(l)&&l.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(oe.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&y.function(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(c),setTimeout(c,200))}),V(this,"supports",l=>ue.mime.call(this,l)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ue.touch,this.media=a,y.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||y.nodeList(this.media)||y.array(this.media))&&(this.media=this.media[0]),this.config=me({},xl,Zt.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new n_(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ue),y.nullOrUndefined(this.media)||!y.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ue.check().api)return void this.debug.error("Setup failed: no support");const n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;const s=this.media.tagName.toLowerCase();let i=null,r=null;switch(s){case"div":if(i=this.media.querySelector("iframe"),y.element(i)){if(r=El(i.getAttribute("src")),this.provider=a_(r.toString()),this.elements.container=this.media,this.media=i,this.elements.container.className="",r.search.length){const l=["1","true"];l.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(y.empty(this.provider)||!Object.values(ut).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=$n.video;break;case"video":case"audio":this.type=s,this.provider=ut.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ue.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new i_(this),this.storage=new Gt(this),this.media.plyr=this,y.element(this.elements.container)||(this.elements.container=M("div"),ul(this.media,this.elements.container)),oe.migrateStyles.call(this),oe.addStyleHook.call(this),Nl.setup.call(this),this.config.debug&&X.call(this,this.elements.container,this.config.events.join(" "),l=>{this.debug.log(`event: ${l.type}`)}),this.fullscreen=new We(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&oe.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new u_(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>Qe(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===ut.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===ut.youtube}get isVimeo(){return this.provider===ut.vimeo}get isVideo(){return this.type===$n.video}get isAudio(){return this.type===$n.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(a){if(!this.duration)return;const t=y.number(a)&&a>0;this.media.currentTime=t?Math.min(a,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:a}=this.media;return y.number(a)?a:a&&a.length&&this.duration>0?a.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const a=parseFloat(this.config.duration),t=(this.media||{}).duration,n=y.number(t)&&t!==1/0?t:0;return a||n}set volume(a){let t=a;y.string(t)&&(t=Number(t)),y.number(t)||(t=this.storage.get("volume")),y.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!y.empty(a)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(a){let t=a;y.boolean(t)||(t=this.storage.get("muted")),y.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(a){let t=null;y.number(a)&&(t=a),y.number(t)||(t=this.storage.get("speed")),y.number(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:s}=this;t=Tl(t,n,s),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(a){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let s=[!y.empty(a)&&Number(a),this.storage.get("quality"),t.selected,t.default].find(y.number),i=!0;if(!n.includes(s)){const r=gl(n,s);this.debug.warn(`Unsupported quality option: ${s}, using ${r} instead`),s=r,i=!1}t.selected=s,this.media.quality=s,i&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(a){const t=y.boolean(a)?a:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(a){zn.change.call(this,a)}get source(){return this.media.currentSrc}get download(){const{download:a}=this.config.urls;return y.url(a)?a:this.source}set download(a){y.url(a)&&(this.config.urls.download=a,A.setDownloadUrl.call(this))}set poster(a){this.isVideo?oe.setPoster.call(this,a,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const a=Lo(On.call(this));return y.array(a)?a.join(":"):a}set ratio(a){this.isVideo?y.string(a)&&bl(a)?(this.config.ratio=Lo(a),Bt.call(this)):this.debug.error(`Invalid aspect ratio specified (${a})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(a){this.config.autoplay=y.boolean(a)?a:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(a){Y.toggle.call(this,a,!1)}set currentTrack(a){Y.set.call(this,a,!1),Y.setup.call(this)}get currentTrack(){const{toggled:a,currentTrack:t}=this.captions;return a?t:-1}set language(a){Y.setLanguage.call(this,a,!1)}get language(){return(Y.getCurrentTrack.call(this)||{}).language}set pip(a){if(!ue.pip)return;const t=y.boolean(a)?a:!this.pip;y.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Vn.active:Vn.inactive),y.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ue.pip?y.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Vn.active:null}setPreviewThumbnails(a){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,a),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ln(this))}static supported(a,t){return ue.check(a,t)}static loadSprite(a,t){return kl(a,t)}static setup(a,t={}){let n=null;return y.string(a)?n=Array.from(document.querySelectorAll(a)):y.nodeList(a)?n=Array.from(a):y.array(a)&&(n=a.filter(y.element)),y.empty(n)?null:n.map(s=>new Zt(s,t))}}Zt.defaults=jS(xl);const p_={class:"carousel-video-player"},g_={class:"video-container"},f_=["id"],y_=Ne({__name:"CarouselVideoPlayer",props:{play:{type:Object,required:!0}},emits:["play-ended"],setup(e,{emit:a}){const t=e,n=o.ref(null),s=o.computed(()=>`p-${t.play.playId}`);function i(){n.value=new Zt(`#${s.value}`,{controls:["play","volume","settings","progress"],autoplay:!1,playsinline:!0}),n.value.source={type:"video",sources:[{src:t.play.video_link,type:"video/mp4"}]},n.value.isDestroyed=!1,t.play.videoPlayer=n.value,t.play.plyrInit=i,n.value.on("webkitfullscreenchange",r()),n.value.on("mozfullscreenchange",r()),n.value.on("fullscreenchange",r())}function r(){const l=this;return()=>{document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),setTimeout(()=>{l.$emit("full-screen-change")},100)}}return o.onMounted(()=>{setTimeout(()=>{i()},100)}),(l,u)=>(o.openBlock(),o.createElementBlock("div",p_,[o.createElementVNode("div",g_,[o.createElementVNode("video",{id:s.value,controls:"",preload:"auto","data-setup":"{}"},null,8,f_)])]))}},[["__scopeId","data-v-ad1757bf"]]),b_=e=>(o.pushScopeId("data-v-8d65fb16"),e=e(),o.popScopeId(),e),w_={class:"carousel-full-screen",id:"carousel-swipe"},S_=[b_(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},[o.createElementVNode("path",{d:"M5 15L15 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),o.createElementVNode("path",{d:"M15 15L5 5",stroke:"white","stroke-width":"1.7","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],__={class:"carousel-full-screen__carousel"},k_={class:"carousel-full-screen__carousel__video-player"},Fn=2,C_=Ne({__name:"CarouselFullScreen",props:{playerQueue:{type:Array,default:()=>[]},playlistIndex:{type:Number,default:0},initialPlay:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:a}){const t=e;let n=0,s=new Map;const i=o.ref({wrapAround:!1,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"}),r=o.ref(null),l=o.ref([]);o.watch(()=>t.playerQueue,h=>{h.length&&(l.value=h.map((f,d)=>(f.index=d,f)),n=t.playlistIndex,s=new Map(l.value.map(f=>[f.index,f])))},{immediate:!0});function u({selectedItem:h,selectedItemIndex:f}){if(n!==h.index){const d=h.index-n;n=h.index;const p=s.get(n+d*-1),g=s.get(n);if(p&&p.videoPlayer&&p.videoPlayer.pause(),g&&g.videoPlayer&&g.videoPlayer.play(),d>0){const b=s.get(n+Fn),S=s.get(n+1),_=s.get(n-Fn);b&&(l.value.find(O=>O.index===b.index)||l.value.push(b)),S&&S.videoPlayer&&S.videoPlayer.isDestroyed&&S.plyrInit(),_&&_.videoPlayer&&(_.videoPlayer.pause(),_.videoPlayer.src="",_.videoPlayer.destroy(),_.videoPlayer.isDestroyed=!0)}else if(d<0){const b=s.get(n-1),S=s.get(n+Fn);b&&b.videoPlayer&&b.videoPlayer.isDestroyed&&b.plyrInit(),S&&S.videoPlayer&&(S.videoPlayer.pause(),S.videoPlayer.src="",S.videoPlayer.destroy(),S.videoPlayer.isDestroyed=!0)}}}function c(){r.value&&r.value.next()}function m(){a("close",n)}return o.onMounted(()=>{setTimeout(()=>{const h=document.getElementsByClassName("video-element");h&&h.length&&Array.from(h).forEach((f,d)=>{f.id=`plyrFS${d+1}`})},100)}),o.onBeforeUnmount(()=>{t.playerQueue.forEach(h=>{h.videoPlayer&&(h.videoPlayer.pause(),h.videoPlayer.destroy())})}),(h,f)=>(o.openBlock(),o.createElementBlock("div",w_,[o.createElementVNode("div",{class:"carousel-full-screen__close",onClick:m},S_),o.createElementVNode("div",__,[o.createVNode(o.unref(cS),o.mergeProps({ref_key:"gscCarousel",ref:r},i.value,{items:l.value,onInput:u}),{default:o.withCtx(({item:d})=>[o.createElementVNode("div",k_,[o.createVNode(y_,{play:d,onPlayEnded:c},null,8,["play"])])]),_:1},16,["items"])])]))}},[["__scopeId","data-v-8d65fb16"]]),Ol={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Al={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Vl={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},E_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Mn={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))}}},$l=()=>{o.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}))},Pl=Mn.setup;Mn.setup=Pl?(e,a)=>($l(),Pl(e,a)):$l;const B_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),x_=["src"],N_={key:1,class:"text"},T_=["src"],v_={class:"stats"},O_=B_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),A_={class:"numstats"},V_={class:"leyend"};function $_(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,x_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",N_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,T_)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",v_,[O_,o.createElementVNode("div",A_,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",V_,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const P_=E_(Mn,[["render",$_],["__scopeId","data-v-fb269a1e"]]),I_={class:"gsc-dropdown__main-container__item-selected"},R_=["height","width"],L_=["stroke"],z_={class:"gsc-dropdown__items-container"},F_=["onClick"],M_={key:0,class:"gsc-dropdown__items-footer"},D_={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",I_,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,L_)],8,R_))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",z_,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,F_))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",M_,[o.createVNode(o.unref(P_),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},j_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},W_={class:"tournament-select__selected-tournament"},U_={class:"tournament-select__selected-tournament__logo"},H_=["src"],G_={class:"tournament-select__selected-tournament__name"},q_={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},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:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.ref([]),s=o.computed(()=>{const h={};return t.fontFamily&&(h["font-family"]=`${t.fontFamily}`),h}),i=o.computed(()=>n.value.find(h=>h.seasonsIds.has(t.currentSeasonId))||n.value[0]);async function r(){try{if(t.items&&t.items.length)n.value=[...t.items];else if(t.apiUrl){const h=await u();n.value=h.map(f=>({...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((d,p)=>(d.add(p.id),d),new Set)})).sort((f,d)=>f.order-d.order)}}catch(h){throw new Error(h)}}function l(h){const f=new XMLHttpRequest,d=`${t.logosUrl}${h}.${t.logoFileType}`;return f.open("HEAD",d,!1),f.send(),f.status!==404}async function u(){try{return(await fetch(t.apiUrl)).json()}catch(h){return Promise.reject(h)}}function c(h){a("input",h)}function m(h){a("input",h)}return o.onMounted(()=>{r()}),(h,f)=>(o.openBlock(),o.createElementBlock("div",{class:"tournament-select",style:o.normalizeStyle(s.value)},[o.createVNode(o.unref(D_),o.mergeProps(t,{"model-value":i.value,items:n.value,onInput:c,"onUpdate:modelValue":m}),{default:o.withCtx(({selectedItem:d})=>[o.createElementVNode("div",W_,[o.createElementVNode("div",U_,[l(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,src:`${t.logosUrl}${d.id}.${t.logoFileType}`,alt:""},null,8,H_)):o.createCommentVNode("",!0)]),o.createElementVNode("div",G_,o.toDisplayString(d.name),1)])]),availableItem:o.withCtx(({item:d})=>[o.createElementVNode("div",null,o.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},J_=j_(q_,[["__scopeId","data-v-355af272"]]),K_=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},Dn={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))}}},Il=()=>{o.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}))},Rl=Dn.setup;Dn.setup=Rl?(e,a)=>(Il(),Rl(e,a)):Il;const Z_=e=>(o.pushScopeId("data-v-fb269a1e"),e=e(),o.popScopeId(),e),X_=["src"],Y_={key:1,class:"text"},Q_=["src"],ek={class:"stats"},tk=Z_(()=>o.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),ok={class:"numstats"},ak={class:"leyend"};function nk(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",null,[t.type==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["button",s.status&&t.typeOnOff&&"button-active"]),style:o.normalizeStyle([i.customStyle,s.status&&t.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.icon&&t.iconPosition.toLowerCase()==="left"?(o.openBlock(),o.createElementBlock("img",{key:0,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,X_)):o.createCommentVNode("",!0),t.textValue?(o.openBlock(),o.createElementBlock("div",Y_,o.toDisplayString(t.textValue),1)):o.createCommentVNode("",!0),t.icon&&t.iconPosition.toLowerCase()==="right"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"icon",style:o.normalizeStyle({width:t.iconSize}),src:t.icon},null,12,Q_)):o.createCommentVNode("",!0)],6)):o.createCommentVNode("",!0),t.type==1?(o.openBlock(),o.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.createElementVNode("div",ek,[tk,o.createElementVNode("div",ok,o.toDisplayString(t.textStat),1)]),o.createElementVNode("div",ak,o.toDisplayString(t.textCategory),1)])):o.createCommentVNode("",!0)])}const ik=K_(Dn,[["render",nk],["__scopeId","data-v-fb269a1e"]]),sk={class:"gsc-dropdown__main-container__item-selected"},rk=["height","width"],lk=["stroke"],ck={class:"gsc-dropdown__items-container"},dk=["onClick"],mk={key:0,class:"gsc-dropdown__items-footer"},uk={__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(a=>a 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:a}){const t=e,n=o.ref({}),s=o.ref(null),i=o.ref(t.isMultipleOption?-1:0),r=o.ref(!1);o.watch(()=>t.items,(d,p)=>{if(!t.modelValue&&(!t.onlyFirstTime||!p||!p.length)&&d&&d.length){if(t.defaultItemByProp){const g=t.items.findIndex(b=>b[t.defaultItemByProp.propName]===t.defaultItemByProp.value);g!==-1?(i.value=g,n.value=d[g]):(i.value=0,n.value=d[0])}else n.value=d[t.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),o.watch(()=>t.modelValue,d=>{if(d){const p=t.items.findIndex(g=>typeof d=="object"?JSON.stringify(g)===JSON.stringify(d):g===d);p!==-1&&(i.value=p,n.value=t.items[p],a("update:modelValue",n.value))}},{immediate:!0});const l=o.computed(()=>({height:t.height,width:t.width,backgroundColor:t.backgroundColor,borderRadius:`${t.borderRadius}px`,border:`${t.borderType} ${t.borderWidth}px ${t.borderColor}`,color:t.color,"--hover-background-color":t.hoverBackgroundColor,"--list-item-padding":t.listItemPadding,"--list-background-color":t.listBackgroundColor,"--list-height":t.listHeight,"--list-item-selected-color":t.listItemSelectedColor,"--list-item-selected-background-color":t.listItemSelectedBackgroundColor,"--list-item-color":t.listItemColor,"--list-border-radius":`${t.listBorderRadius}`,"--list-border-color":t.listBorderColor,"--list-width":t.isListSameWidth?t.width:"fit-content","--list-border-width":`${t.listBorderWidth}px`,"--footer-border":`${t.footerBorderWidth}px solid ${t.footerBorderColor}`,"--dropdown-opacity":t.isDisabled?"0.5":"1","--dropdown-cursor":t.isDisabled?"not-allowed":"pointer","--dropdown-font-size":t.fontSize?t.fontSize:"14px"})),u=o.computed(()=>({height:`${t.arrowHeight}px`,width:`${t.arrowWidth}px`}));function c(){t.isDisabled||(r.value=!r.value)}function m(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function h(d,p){t.isMultipleOption?i.value=-1:(i.value=p,r.value=!1),n.value=d,a("input",n.value),a("update:modelValue",n.value)}function f(){r.value=!1,a("click-ready")}return o.onMounted(()=>{document.addEventListener("click",m)}),o.onBeforeMount(()=>{document.removeEventListener("click",m)}),(d,p)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:o.normalizeStyle(l.value)},[o.createElementVNode("div",{class:"gsc-dropdown__main-container",style:o.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[o.createElementVNode("div",sk,[o.renderSlot(d.$slots,"default",{selectedItem:n.value})]),o.createElementVNode("div",{class:o.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:o.normalizeStyle(u.value)},[(o.openBlock(),o.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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,lk)],8,rk))],6)],4),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",ck,[o.createElementVNode("div",null,[o.createElementVNode("div",{class:"gsc-dropdown__items",style:o.normalizeStyle({"margin-top":`${t.borderWidth}px`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,(g,b)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["gsc-dropdown__items__item",{selected:b===i.value}]),key:b,onClick:S=>h(g,b)},[o.renderSlot(d.$slots,"availableItem",{item:g})],10,dk))),128))],4),e.isFooterVisible?(o.openBlock(),o.createElementBlock("div",mk,[o.createVNode(o.unref(ik),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:f})])):o.createCommentVNode("",!0)])],512),[[o.vShow,r.value]])]),_:3})],4))}},hk=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},pk={class:"season-name"},gk={class:"items-list-season"},fk={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:a}){const t=e,n=o.computed(()=>t.seasons.find(r=>r.id===t.currentSeasonId));function s(r){a("input",r)}function i(r){a("input",r)}return(r,l)=>(o.openBlock(),o.createBlock(o.unref(uk),{items:e.seasons,"model-value":n.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:i,"onUpdate:modelValue":s},{default:o.withCtx(({selectedItem:u})=>[o.createElementVNode("div",pk,[o.createElementVNode("span",null,o.toDisplayString(u.name),1)])]),availableItem:o.withCtx(({item:u})=>[o.createElementVNode("span",gk,o.toDisplayString(u.name),1)]),_:1},8,["items","model-value"]))}},yk=hk(fk,[["__scopeId","data-v-3a11087d"]]);function Ll(e,a){return function(){return e.apply(a,arguments)}}const{toString:bk}=Object.prototype,{getPrototypeOf:jn}=Object,Do=(e=>a=>{const t=bk.call(a);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),et=e=>(e=e.toLowerCase(),a=>Do(a)===e),jo=e=>a=>typeof a===e,{isArray:xt}=Array,Xt=jo("undefined");function wk(e){return e!==null&&!Xt(e)&&e.constructor!==null&&!Xt(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zl=et("ArrayBuffer");function Sk(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&zl(e.buffer),a}const _k=jo("string"),Me=jo("function"),Fl=jo("number"),Wo=e=>e!==null&&typeof e=="object",kk=e=>e===!0||e===!1,Uo=e=>{if(Do(e)!=="object")return!1;const a=jn(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ck=et("Date"),Ek=et("File"),Bk=et("Blob"),xk=et("FileList"),Nk=e=>Wo(e)&&Me(e.pipe),Tk=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((a=Do(e))==="formdata"||a==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},vk=et("URLSearchParams"),Ok=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(e,a,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),xt(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=t?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let l;for(n=0;n<r;n++)l=i[n],a.call(null,e[l],l,e)}}function Ml(e,a){a=a.toLowerCase();const t=Object.keys(e);let n=t.length,s;for(;n-- >0;)if(s=t[n],a===s.toLowerCase())return s;return null}const Dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jl=e=>!Xt(e)&&e!==Dl;function Wn(){const{caseless:e}=jl(this)&&this||{},a={},t=(n,s)=>{const i=e&&Ml(a,s)||s;Uo(a[i])&&Uo(n)?a[i]=Wn(a[i],n):Uo(n)?a[i]=Wn({},n):xt(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Yt(arguments[n],t);return a}const Ak=(e,a,t,{allOwnKeys:n}={})=>(Yt(a,(s,i)=>{t&&Me(s)?e[i]=Ll(s,t):e[i]=s},{allOwnKeys:n}),e),Vk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$k=(e,a,t,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),t&&Object.assign(e.prototype,t)},Pk=(e,a,t,n)=>{let s,i,r;const l={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!l[r]&&(a[r]=e[r],l[r]=!0);e=t!==!1&&jn(e)}while(e&&(!t||t(e,a))&&e!==Object.prototype);return a},Ik=(e,a,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=a.length;const n=e.indexOf(a,t);return n!==-1&&n===t},Rk=e=>{if(!e)return null;if(xt(e))return e;let a=e.length;if(!Fl(a))return null;const t=new Array(a);for(;a-- >0;)t[a]=e[a];return t},Lk=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&jn(Uint8Array)),zk=(e,a)=>{const t=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=t.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Fk=(e,a)=>{let t;const n=[];for(;(t=e.exec(a))!==null;)n.push(t);return n},Mk=et("HTMLFormElement"),Dk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,t,n){return t.toUpperCase()+n}),Wl=(({hasOwnProperty:e})=>(a,t)=>e.call(a,t))(Object.prototype),jk=et("RegExp"),Ul=(e,a)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Yt(t,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Wk=e=>{Ul(e,(a,t)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Me(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Uk=(e,a)=>{const t={},n=s=>{s.forEach(i=>{t[i]=!0})};return xt(e)?n(e):n(String(e).split(a)),t},Hk=()=>{},Gk=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Un="abcdefghijklmnopqrstuvwxyz",Hl="0123456789",Gl={DIGIT:Hl,ALPHA:Un,ALPHA_DIGIT:Un+Un.toUpperCase()+Hl},qk=(e=16,a=Gl.ALPHA_DIGIT)=>{let t="";const{length:n}=a;for(;e--;)t+=a[Math.random()*n|0];return t};function Jk(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Kk=e=>{const a=new Array(10),t=(n,s)=>{if(Wo(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=xt(n)?[]:{};return Yt(n,(r,l)=>{const u=t(r,s+1);!Xt(u)&&(i[l]=u)}),a[s]=void 0,i}}return n};return t(e,0)},Zk=et("AsyncFunction"),Xk=e=>e&&(Wo(e)||Me(e))&&Me(e.then)&&Me(e.catch),B={isArray:xt,isArrayBuffer:zl,isBuffer:wk,isFormData:Tk,isArrayBufferView:Sk,isString:_k,isNumber:Fl,isBoolean:kk,isObject:Wo,isPlainObject:Uo,isUndefined:Xt,isDate:Ck,isFile:Ek,isBlob:Bk,isRegExp:jk,isFunction:Me,isStream:Nk,isURLSearchParams:vk,isTypedArray:Lk,isFileList:xk,forEach:Yt,merge:Wn,extend:Ak,trim:Ok,stripBOM:Vk,inherits:$k,toFlatObject:Pk,kindOf:Do,kindOfTest:et,endsWith:Ik,toArray:Rk,forEachEntry:zk,matchAll:Fk,isHTMLForm:Mk,hasOwnProperty:Wl,hasOwnProp:Wl,reduceDescriptors:Ul,freezeMethods:Wk,toObjectSet:Uk,toCamelCase:Dk,noop:Hk,toFiniteNumber:Gk,findKey:Ml,global:Dl,isContextDefined:jl,ALPHABET:Gl,generateString:qk,isSpecCompliantForm:Jk,toJSONObject:Kk,isAsyncFn:Zk,isThenable:Xk};function K(e,a,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s)}B.inherits(K,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:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ql=K.prototype,Jl={};["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=>{Jl[e]={value:e}}),Object.defineProperties(K,Jl),Object.defineProperty(ql,"isAxiosError",{value:!0}),K.from=(e,a,t,n,s,i)=>{const r=Object.create(ql);return B.toFlatObject(e,r,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),K.call(r,e.message,a,t,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Yk=null;function Hn(e){return B.isPlainObject(e)||B.isArray(e)}function Kl(e){return B.endsWith(e,"[]")?e.slice(0,-2):e}function Zl(e,a,t){return e?e.concat(a).map(function(n,s){return n=Kl(n),!t&&s?"["+n+"]":n}).join(t?".":""):a}function Qk(e){return B.isArray(e)&&!e.some(Hn)}const e5=B.toFlatObject(B,{},null,function(e){return/^is[A-Z]/.test(e)});function Ho(e,a,t){if(!B.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,t=B.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!B.isUndefined(p[d])});const n=t.metaTokens,s=t.visitor||c,i=t.dots,r=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&B.isSpecCompliantForm(a);if(!B.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(B.isDate(d))return d.toISOString();if(!l&&B.isBlob(d))throw new K("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(d)||B.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,p,g){let b=d;if(d&&!g&&typeof d=="object"){if(B.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(B.isArray(d)&&Qk(d)||(B.isFileList(d)||B.endsWith(p,"[]"))&&(b=B.toArray(d)))return p=Kl(p),b.forEach(function(S,_){!(B.isUndefined(S)||S===null)&&a.append(r===!0?Zl([p],_,i):r===null?p:p+"[]",u(S))}),!1}return Hn(d)?!0:(a.append(Zl(g,p,i),u(d)),!1)}const m=[],h=Object.assign(e5,{defaultVisitor:c,convertValue:u,isVisitable:Hn});function f(d,p){if(!B.isUndefined(d)){if(m.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));m.push(d),B.forEach(d,function(g,b){(!(B.isUndefined(g)||g===null)&&s.call(a,g,B.isString(b)?b.trim():b,p,h))===!0&&f(g,p?p.concat(b):[b])}),m.pop()}}if(!B.isObject(e))throw new TypeError("data must be an object");return f(e),a}function Xl(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return a[t]})}function Gn(e,a){this._pairs=[],e&&Ho(e,this,a)}const Yl=Gn.prototype;Yl.append=function(e,a){this._pairs.push([e,a])},Yl.toString=function(e){const a=e?function(t){return e.call(this,t,Xl)}:Xl;return this._pairs.map(function(t){return a(t[0])+"="+a(t[1])},"").join("&")};function t5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ql(e,a,t){if(!a)return e;const n=t&&t.encode||t5,s=t&&t.serialize;let i;if(s?i=s(a,t):i=B.isURLSearchParams(a)?a.toString():new Gn(a,t).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class o5{constructor(){this.handlers=[]}use(a,t,n){return this.handlers.push({fulfilled:a,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){B.forEach(this.handlers,function(t){t!==null&&a(t)})}}const ec=o5,tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},a5=typeof URLSearchParams<"u"?URLSearchParams:Gn,n5=typeof FormData<"u"?FormData:null,i5=typeof Blob<"u"?Blob:null,s5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),r5=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tt={isBrowser:!0,classes:{URLSearchParams:a5,FormData:n5,Blob:i5},isStandardBrowserEnv:s5,isStandardBrowserWebWorkerEnv:r5,protocols:["http","https","file","blob","url","data"]};function l5(e,a){return Ho(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,i){return tt.isNode&&B.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function c5(e){return B.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function d5(e){const a={},t=Object.keys(e);let n;const s=t.length;let i;for(n=0;n<s;n++)i=t[n],a[i]=e[i];return a}function oc(e){function a(t,n,s,i){let r=t[i++];const l=Number.isFinite(+r),u=i>=t.length;return r=!r&&B.isArray(s)?s.length:r,u?(B.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!l):((!s[r]||!B.isObject(s[r]))&&(s[r]=[]),a(t,n,s[r],i)&&B.isArray(s[r])&&(s[r]=d5(s[r])),!l)}if(B.isFormData(e)&&B.isFunction(e.entries)){const t={};return B.forEachEntry(e,(n,s)=>{a(c5(n),s,t,0)}),t}return null}function m5(e,a,t){if(B.isString(e))try{return(a||JSON.parse)(e),B.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const qn={transitional:tc,adapter:["xhr","http"],transformRequest:[function(e,a){const t=a.getContentType()||"",n=t.indexOf("application/json")>-1,s=B.isObject(e);if(s&&B.isHTMLForm(e)&&(e=new FormData(e)),B.isFormData(e))return n&&n?JSON.stringify(oc(e)):e;if(B.isArrayBuffer(e)||B.isBuffer(e)||B.isStream(e)||B.isFile(e)||B.isBlob(e))return e;if(B.isArrayBufferView(e))return e.buffer;if(B.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return l5(e,this.formSerializer).toString();if((i=B.isFileList(e))||t.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Ho(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),m5(e)):e}],transformResponse:[function(e){const a=this.transitional||qn.transitional,t=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&B.isString(e)&&(t&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?K.from(i,K.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};B.forEach(["delete","get","head","post","put","patch"],e=>{qn.headers[e]={}});const Jn=qn,u5=B.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"]),h5=e=>{const a={};let t,n,s;return e&&e.split(`
38
+ `).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||a[t]&&u5[t])&&(t==="set-cookie"?a[t]?a[t].push(n):a[t]=[n]:a[t]=a[t]?a[t]+", "+n:n)}),a},ac=Symbol("internals");function Qt(e){return e&&String(e).trim().toLowerCase()}function Go(e){return e===!1||e==null?e:B.isArray(e)?e.map(Go):String(e)}function p5(e){const a=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)a[n[1]]=n[2];return a}const g5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kn(e,a,t,n,s){if(B.isFunction(n))return n.call(this,a,t);if(s&&(a=t),!!B.isString(a)){if(B.isString(n))return a.indexOf(n)!==-1;if(B.isRegExp(n))return n.test(a)}}function f5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,t,n)=>t.toUpperCase()+n)}function y5(e,a){const t=B.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}class qo{constructor(a){a&&this.set(a)}set(a,t,n){const s=this;function i(l,u,c){const m=Qt(u);if(!m)throw new Error("header name must be a non-empty string");const h=B.findKey(s,m);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=Go(l))}const r=(l,u)=>B.forEach(l,(c,m)=>i(c,m,u));return B.isPlainObject(a)||a instanceof this.constructor?r(a,t):B.isString(a)&&(a=a.trim())&&!g5(a)?r(h5(a),t):a!=null&&i(t,a,n),this}get(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);if(n){const s=this[n];if(!t)return s;if(t===!0)return p5(s);if(B.isFunction(t))return t.call(this,s,n);if(B.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,t){if(a=Qt(a),a){const n=B.findKey(this,a);return!!(n&&this[n]!==void 0&&(!t||Kn(this,this[n],n,t)))}return!1}delete(a,t){const n=this;let s=!1;function i(r){if(r=Qt(r),r){const l=B.findKey(n,r);l&&(!t||Kn(n,n[l],l,t))&&(delete n[l],s=!0)}}return B.isArray(a)?a.forEach(i):i(a),s}clear(a){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];(!a||Kn(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const t=this,n={};return B.forEach(this,(s,i)=>{const r=B.findKey(n,i);if(r){t[r]=Go(s),delete t[i];return}const l=a?f5(i):String(i).trim();l!==i&&delete t[i],t[l]=Go(s),n[l]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const t=Object.create(null);return B.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=a&&B.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,t])=>a+": "+t).join(`
39
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){const n=new this(a);return t.forEach(s=>n.set(s)),n}static accessor(a){const t=(this[ac]=this[ac]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Qt(i);t[r]||(y5(n,i),t[r]=!0)}return B.isArray(a)?a.forEach(s):s(a),this}}qo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.reduceDescriptors(qo.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[t]=n}}}),B.freezeMethods(qo);const rt=qo;function Zn(e,a){const t=this||Jn,n=a||t,s=rt.from(n.headers);let i=n.data;return B.forEach(e,function(r){i=r.call(t,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function nc(e){return!!(e&&e.__CANCEL__)}function eo(e,a,t){K.call(this,e??"canceled",K.ERR_CANCELED,a,t),this.name="CanceledError"}B.inherits(eo,K,{__CANCEL__:!0});function b5(e,a,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):a(new K("Request failed with status code "+t.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}const w5=tt.isStandardBrowserEnv?function(){return{write:function(e,a,t,n,s,i){const r=[];r.push(e+"="+encodeURIComponent(a)),B.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),B.isString(n)&&r.push("path="+n),B.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function S5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _5(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function ic(e,a){return e&&!S5(a)?_5(e,a):a}const k5=tt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let t;function n(s){let i=s;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return t=n(window.location.href),function(s){const i=B.isString(s)?n(s):s;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}();function C5(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function E5(e,a){e=e||10;const t=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(l){const u=Date.now(),c=n[i];r||(r=u),t[s]=l,n[s]=u;let m=i,h=0;for(;m!==s;)h+=t[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-r<a)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function sc(e,a){let t=0;const n=E5(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-t,u=n(l),c=i<=r;t=i;const m={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:u||void 0,estimated:u&&r&&c?(r-i)/u:void 0,event:s};m[a?"download":"upload"]=!0,e(m)}}const B5=typeof XMLHttpRequest<"u",x5=B5&&function(e){return new Promise(function(a,t){let n=e.data;const s=rt.from(e.headers).normalize(),i=e.responseType;let r;function l(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}let u;B.isFormData(n)&&(tt.isStandardBrowserEnv||tt.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?B.isString(u=s.getContentType())&&s.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(d+":"+p))}const m=ic(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ql(m,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const d=rt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:d,config:e,request:c};b5(function(g){a(g),l()},function(g){t(g),l()},p),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(t(new K("Request aborted",K.ECONNABORTED,e,c)),c=null)},c.onerror=function(){t(new K("Network Error",K.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||tc;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),t(new K(d,p.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,c)),c=null},tt.isStandardBrowserEnv){const d=(e.withCredentials||k5(m))&&e.xsrfCookieName&&w5.read(e.xsrfCookieName);d&&s.set(e.xsrfHeaderName,d)}n===void 0&&s.setContentType(null),"setRequestHeader"in c&&B.forEach(s.toJSON(),function(d,p){c.setRequestHeader(p,d)}),B.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",sc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",sc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=d=>{c&&(t(!d||d.type?new eo(null,e,c):d),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const f=C5(m);if(f&&tt.protocols.indexOf(f)===-1){t(new K("Unsupported protocol "+f+":",K.ERR_BAD_REQUEST,e));return}c.send(n||null)})},Xn={http:Yk,xhr:x5};B.forEach(Xn,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const rc=e=>`- ${e}`,N5=e=>B.isFunction(e)||e===null||e===!1,lc={getAdapter:e=>{e=B.isArray(e)?e:[e];const{length:a}=e;let t,n;const s={};for(let i=0;i<a;i++){t=e[i];let r;if(n=t,!N5(t)&&(n=Xn[(r=String(t)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
40
+ `+i.map(rc).join(`
41
+ `):" "+rc(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Xn};function Yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eo(null,e)}function cc(e){return Yn(e),e.headers=rt.from(e.headers),e.data=Zn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lc.getAdapter(e.adapter||Jn.adapter)(e).then(function(a){return Yn(e),a.data=Zn.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return nc(a)||(Yn(e),a&&a.response&&(a.response.data=Zn.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const dc=e=>e instanceof rt?e.toJSON():e;function Nt(e,a){a=a||{};const t={};function n(c,m,h){return B.isPlainObject(c)&&B.isPlainObject(m)?B.merge.call({caseless:h},c,m):B.isPlainObject(m)?B.merge({},m):B.isArray(m)?m.slice():m}function s(c,m,h){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c,h)}else return n(c,m,h)}function i(c,m){if(!B.isUndefined(m))return n(void 0,m)}function r(c,m){if(B.isUndefined(m)){if(!B.isUndefined(c))return n(void 0,c)}else return n(void 0,m)}function l(c,m,h){if(h in a)return n(c,m);if(h in e)return n(void 0,c)}const u={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,m)=>s(dc(c),dc(m),!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(c){const m=u[c]||s,h=m(e[c],a[c],c);B.isUndefined(h)&&m!==l||(t[c]=h)}),t}const mc="1.5.1",Qn={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Qn[e]=function(t){return typeof t===e||"a"+(a<1?"n ":" ")+e}});const uc={};Qn.transitional=function(e,a,t){function n(s,i){return"[Axios v"+mc+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,r)=>{if(e===!1)throw new K(n(i," has been removed"+(a?" in "+a:"")),K.ERR_DEPRECATED);return a&&!uc[i]&&(uc[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(s,i,r):!0}};function T5(e,a,t){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],r=a[i];if(r){const l=e[i],u=l===void 0||r(l,i,e);if(u!==!0)throw new K("option "+i+" must be "+u,K.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new K("Unknown option "+i,K.ERR_BAD_OPTION)}}const ei={assertOptions:T5,validators:Qn},ht=ei.validators;class Jo{constructor(a){this.defaults=a,this.interceptors={request:new ec,response:new ec}}request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;n!==void 0&&ei.assertOptions(n,{silentJSONParsing:ht.transitional(ht.boolean),forcedJSONParsing:ht.transitional(ht.boolean),clarifyTimeoutError:ht.transitional(ht.boolean)},!1),s!=null&&(B.isFunction(s)?t.paramsSerializer={serialize:s}:ei.assertOptions(s,{encode:ht.function,serialize:ht.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&B.merge(i.common,i[t.method]);i&&B.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=rt.concat(r,i);const l=[];let u=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(u=u&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let m,h=0,f;if(!u){const p=[cc.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,m=Promise.resolve(t);h<f;)m=m.then(p[h++],p[h++]);return m}f=l.length;let d=t;for(h=0;h<f;){const p=l[h++],g=l[h++];try{d=p(d)}catch(b){g.call(this,b);break}}try{m=cc.call(this,d)}catch(p){return Promise.reject(p)}for(h=0,f=c.length;h<f;)m=m.then(c[h++],c[h++]);return m}getUri(a){a=Nt(this.defaults,a);const t=ic(a.baseURL,a.url);return Ql(t,a.params,a.paramsSerializer)}}B.forEach(["delete","get","head","options"],function(e){Jo.prototype[e]=function(a,t){return this.request(Nt(t||{},{method:e,url:a,data:(t||{}).data}))}}),B.forEach(["post","put","patch"],function(e){function a(t){return function(n,s,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Jo.prototype[e]=a(),Jo.prototype[e+"Form"]=a(!0)});const Ko=Jo;class ti{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(s){t=s});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{n.subscribe(l),i=l}).then(s);return r.cancel=function(){n.unsubscribe(i)},r},a(function(s,i,r){n.reason||(n.reason=new eo(s,i,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}static source(){let a;return{token:new ti(function(t){a=t}),cancel:a}}}const v5=ti;function O5(e){return function(a){return e.apply(null,a)}}function A5(e){return B.isObject(e)&&e.isAxiosError===!0}const oi={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(oi).forEach(([e,a])=>{oi[a]=e});const V5=oi;function hc(e){const a=new Ko(e),t=Ll(Ko.prototype.request,a);return B.extend(t,Ko.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return hc(Nt(e,n))},t}const ge=hc(Jn);ge.Axios=Ko,ge.CanceledError=eo,ge.CancelToken=v5,ge.isCancel=nc,ge.VERSION=mc,ge.toFormData=Ho,ge.AxiosError=K,ge.Cancel=ge.CanceledError,ge.all=function(e){return Promise.all(e)},ge.spread=O5,ge.isAxiosError=A5,ge.mergeConfig=Nt,ge.AxiosHeaders=rt,ge.formToJSON=e=>oc(B.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=lc.getAdapter,ge.HttpStatusCode=V5,ge.default=ge;const pc=ge,$5=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},ai={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},gc=()=>{o.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},fc=ai.setup;ai.setup=fc?(e,a)=>(gc(),fc(e,a)):gc;const P5={ref:"gscScrollableContainer",class:"scrollable-container"},I5={class:"scrollable-arrows"},R5=["width","height","viewBox"],L5=["stroke"],z5={class:"scrollable-wrapper"},F5={class:"scrollable-arrows"},M5=["width","height","viewBox"],D5=["stroke"];function j5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",P5,[t.arrows?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[o.createElementVNode("div",I5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:t.arrowsColor},null,8,L5)],8,R5))])],2)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[o.createElementVNode("div",z5,[o.renderSlot(e.$slots,"default",{},void 0,!0)])],544),t.arrows?(o.openBlock(),o.createElementBlock("div",{key:1,id:"arrows-container-right",class:o.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[o.createElementVNode("div",F5,[(o.openBlock(),o.createElementBlock("svg",{width:t.arrowsWidth,height:t.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:t.arrowsColor},null,8,D5)],8,M5))])],2)):o.createCommentVNode("",!0)],512)}const W5=$5(ai,[["render",j5],["__scopeId","data-v-b548a08d"]]),yt=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t};let yc=null;const ni={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)yc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),yc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},bc=()=>{o.useCssVars(e=>({d6f07504:e.colorBackgroundHome+"45","6d0848cf":e.colorBackgroundAway+"45","524ee4ec":e.colorBackgroundHome,"524bd2fb":e.colorBackgroundAway}))},wc=ni.setup;ni.setup=wc?(e,a)=>(bc(),wc(e,a)):bc;const Zo=e=>(o.pushScopeId("data-v-45034b51"),e=e(),o.popScopeId(),e),U5=Zo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),H5=[U5],G5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),q5=["src"],J5=Zo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),K5=Zo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Z5=["src"],X5=["src"],Y5={class:"text-container"};function Q5(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},H5,2),t.dateGame!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.date)},o.toDisplayString(t.dateGame),3)):o.createCommentVNode("",!0),t.matchday!=""&&t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.containerinfogame)},[t.matchday!=""?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(i.matchcontainer)},o.toDisplayString(t.matchday),3)):o.createCommentVNode("",!0),t.seasonName!=""?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(i.seasoncontainer)},o.toDisplayString(t.seasonName),3)):o.createCommentVNode("",!0)],2)):o.createCommentVNode("",!0),G5,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,q5),o.createElementVNode("div",{class:o.normalizeClass([i.baselogo,"position-image"])},null,2),o.createElementVNode("div",{class:o.normalizeClass(i.baselogoright)},null,2),J5,K5,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,Z5),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.logoright)},null,10,X5),o.createElementVNode("div",Y5,[o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.score),3),o.createElementVNode("div",{class:o.normalizeClass(i.titlename)},o.toDisplayString(t.titleCategory),3)])],2)}const eC=yt(ni,[["render",Q5],["__scopeId","data-v-45034b51"]]);let Sc=null;const ii={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Sc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Sc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},_c=()=>{o.useCssVars(e=>({"46c0698e":e.colorBackgroundHome,"12d9d27a":e.colorBackgroundHome+"36"}))},kc=ii.setup;ii.setup=kc?(e,a)=>(_c(),kc(e,a)):_c;const to=e=>(o.pushScopeId("data-v-9caaef34"),e=e(),o.popScopeId(),e),tC=to(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),oC=[tC],aC=to(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),nC=["src"],iC=to(()=>o.createElementVNode("div",{class:"base-logo"},null,-1)),sC=["src"],rC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),lC={class:"text-container"},cC={class:"player-image position-image"},dC=["src"],mC=["src"],uC=["src"],hC=to(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function pC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},oC,2),aC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,nC),iC,o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,sC),rC,o.createElementVNode("div",lC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},o.toDisplayString(t.namePlayer),3),o.createElementVNode("span",{class:o.normalizeClass(i.secondline),style:o.normalizeStyle(t.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},o.toDisplayString(t.nameCategory),7)]),o.createElementVNode("div",cC,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,dC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,mC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,uC)):o.createCommentVNode("",!0)]),hC],2)}const gC=yt(ii,[["render",pC],["__scopeId","data-v-9caaef34"]]);let Cc=null;const si={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Cc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Cc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Ec=()=>{o.useCssVars(e=>({"5536c7dc":e.colorBackgroundHome,"3e449276":e.colorBackgroundHome+"36"}))},Bc=si.setup;si.setup=Bc?(e,a)=>(Ec(),Bc(e,a)):Ec;const Xo=e=>(o.pushScopeId("data-v-ca6c08d9"),e=e(),o.popScopeId(),e),fC=Xo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),yC=[fC],bC=Xo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),wC=["src"],SC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},_C=["fill"],kC=["id"],CC=["stop-color"],EC=["stop-color"],BC=["src"],xC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),NC={class:"text-container"},TC=Xo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function vC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},yC,2),bC,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,wC),(o.openBlock(),o.createElementBlock("svg",SC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,_C),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundHome},null,8,CC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundHome},null,8,EC)],8,kC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,BC),xC,o.createElementVNode("div",NC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Local"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),TC],2)}const OC=yt(si,[["render",vC],["__scopeId","data-v-ca6c08d9"]]);let xc=null;const ri={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)xc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),xc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Nc=()=>{o.useCssVars(e=>({"17b44fa7":e.colorBackgroundHome,f1e257fe:e.colorBackgroundHome+"36"}))},Tc=ri.setup;ri.setup=Tc?(e,a)=>(Nc(),Tc(e,a)):Nc;const Yo=e=>(o.pushScopeId("data-v-49b4e56b"),e=e(),o.popScopeId(),e),AC=Yo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),VC=[AC],$C=Yo(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),PC=["src"],IC={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},RC=["fill"],LC=["id"],zC=["stop-color"],FC=["stop-color"],MC=["src"],DC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),jC={class:"text-container"},WC=Yo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function UC(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},VC,2),$C,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,PC),(o.openBlock(),o.createElementBlock("svg",IC,[o.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+t.nameTeam.replaceAll(" ","")+")"},null,8,RC),o.createElementVNode("defs",null,[o.createElementVNode("linearGradient",{id:"paint0_linear_7_"+t.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[o.createElementVNode("stop",{"stop-color":t.colorBackgroundAway},null,8,zC),o.createElementVNode("stop",{offset:"1","stop-color":t.colorBackgroundAway},null,8,FC)],8,LC)])])),o.createElementVNode("img",{class:o.normalizeClass(i.teamlogo),src:t.logoHome,alt:""},null,10,MC),DC,o.createElementVNode("div",jC,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},[t.nameTeam!="Away"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(t.nameTeam),1)],64)):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3)]),WC],2)}const HC=yt(ri,[["render",UC],["__scopeId","data-v-49b4e56b"]]);let vc=null;const li={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=400?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)vc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),vc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Oc=()=>{o.useCssVars(e=>({"78f57c00":e.colorBackgroundHome,"78f26a0f":e.colorBackgroundAway,"4c090560":e.colorBackgroundAway+"62",73887748:e.colorBackgroundHome+"36"}))},Ac=li.setup;li.setup=Ac?(e,a)=>(Oc(),Ac(e,a)):Oc;const Qo=e=>(o.pushScopeId("data-v-e77c3274"),e=e(),o.popScopeId(),e),GC=["width","src"],qC=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),JC=Qo(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),KC=[JC],ZC={class:"player-container"},XC=["src"],YC=["src"],QC=["src"],e4={class:"container-score"},t4=["src"],o4=["src"],a4=["src"],n4=Qo(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),i4=Qo(()=>o.createElementVNode("div",{class:"gradient-color"},null,-1));function s4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[t.playStatus!=2?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass((t.playStatus==1,"icon-thumb"))},[o.createElementVNode("img",{width:t.playStatus==1?60:40,src:t.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,GC)],2)):o.createCommentVNode("",!0),qC,o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},KC,2),o.createElementVNode("div",ZC,[t.type==0?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(i.texttitle)},o.toDisplayString(t.nameCategory),3)):(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(i.texttitle2)},o.toDisplayString(t.nameCategory),3)),t.showimg?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,XC)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,YC)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,QC)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createElementVNode("div",e4,[o.createElementVNode("div",{class:o.normalizeClass(i.hometeam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameHomeTeam),7),o.createElementVNode("img",{src:t.logoHome,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,t4),o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreHome),3)],2),o.createElementVNode("span",{class:o.normalizeClass(i.points)},":",2),o.createElementVNode("div",{class:o.normalizeClass(i.awayteam)},[o.createElementVNode("span",{class:o.normalizeClass(i.teamscore)},o.toDisplayString(t.scoreAway),3),o.createElementVNode("img",{src:t.logoAway,alt:"",class:o.normalizeClass(i.teamlogo)},null,10,o4),o.createElementVNode("span",{class:o.normalizeClass(i.teamname),style:o.normalizeStyle({color:t.colorFontAway})},o.toDisplayString(t.nameAwayTeam),7)],2)])]),o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,a4),n4,i4],2)}const r4=yt(li,[["render",s4],["__scopeId","data-v-e77c3274"]]);let Vc=null;const ci={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},firstline(){const e=this.gamesContainerWidth;return e<=400?"first-line400":e<=540?"first-line540":e<=650?"first-line650":"first-line"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},playername(){const e=this.gamesContainerWidth;return e<=400?"player-name400":e<=540?"player-name540":e<=650?"player-name650":"player-name"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Vc=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Vc.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},$c=()=>{o.useCssVars(e=>({"7f6829cd":e.colorBackgroundHome+"30","1ad47d61":e.colorBackgroundHome}))},Pc=ci.setup;ci.setup=Pc?(e,a)=>($c(),Pc(e,a)):$c;const ea=e=>(o.pushScopeId("data-v-cc315132"),e=e(),o.popScopeId(),e),l4=ea(()=>o.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[o.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),c4=[l4],d4={class:"player-image position-image"},m4=["src"],u4=["src"],h4=["src"],p4=["src"],g4=ea(()=>o.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),f4=["src"],y4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),b4={class:"text-container"},w4=ea(()=>o.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),S4={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_4=["fill"];function k4(e,a,t,n,s,i){return o.openBlock(),o.createElementBlock("div",{ref:"gamesContainer",class:o.normalizeClass(i.thumbnailhighlights)},[o.createElementVNode("div",{class:o.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},c4,2),o.createElementVNode("div",d4,[t.typeImg==0?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.photoProfile,class:o.normalizeClass(i.playerimage)},null,10,m4)):o.createCommentVNode("",!0),t.typeImg==1?(o.openBlock(),o.createElementBlock("img",{key:1,src:t.photoProfile,alt:""},null,8,u4)):o.createCommentVNode("",!0),t.typeImg==2?(o.openBlock(),o.createElementBlock("img",{key:2,src:t.photoProfile,class:"img-number"},null,8,h4)):o.createCommentVNode("",!0)]),o.createElementVNode("img",{src:t.logoHome,alt:"",class:"team-logo"},null,8,p4),g4,o.createElementVNode("img",{src:t.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f4),y4,o.createElementVNode("div",b4,[o.createElementVNode("span",{class:o.normalizeClass(i.firstline)},"MEJORES JUGADAS",2),o.createElementVNode("span",{class:o.normalizeClass(i.secondline)},o.toDisplayString(t.nameCategory),3),o.createElementVNode("div",{class:o.normalizeClass(i.playername),style:o.normalizeStyle({color:t.colorFont})},o.toDisplayString(t.namePlayer),7)]),w4,(o.openBlock(),o.createElementBlock("svg",S4,[o.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:t.colorBackgroundHome},null,8,_4)]))],2)}const C4=yt(ci,[["render",k4],["__scopeId","data-v-cc315132"]]);function E4(e){const a=o.ref({width:0,height:0});function t(){const n=e.value.getBoundingClientRect();a.value.width=n.width,a.value.height=n.height}return o.onMounted(()=>{t(),window.addEventListener("resize",t)}),o.onUnmounted(()=>{window.removeEventListener("resize",t)}),{elementSize:a}}const B4="_ptg_lp0fw_5",x4="_ptgtitle_lp0fw_15",N4="_ptgtitle450_lp0fw_47",T4="_pgtcontainercard_lp0fw_79",v4="_pgtcontainercard350_lp0fw_89",O4={ptg:B4,ptgtitle:x4,ptgtitle450:N4,pgtcontainercard:T4,pgtcontainercard350:v4},di={components:{GSCSlider:W5,GSCThumbnailCategory:gC,GSCThumbnailCategoryTeam:OC,GSCThumbnailCategoryTeamAway:HC,GSCThumbnailHighlightGamePlayer:r4,GSCThumbnailSummaryPlayer:C4,GSCThumbnailHighlightGameHistoric:eC},setup(){const e=o.ref("ptgDiv"),{elementSize:a}=E4(e);return{ptgDiv:e,elementSize:a}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},matchdayView:{type:Number,default:1},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{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{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,flagGames:[],lastseason:0,arrayMatchdays:[],awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(e){this.type!=14&&this.getTeamsInfo(e),this.getStats(e)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(e){let a=[],t=e.data.game_id?[e.data.game_id]:null;e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=e.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(t=null);const n=[1,2,3];let s={type:e.data.plays_status==0||!e.data.plays_status?0:1,seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:e.categories&&e.categories.length?e.categories:a,gameIds:t,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.matchResult]:n,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},async getTeamsInfo(e){const a=await pc.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+e.season);for(let t=0;t<a.data.teams.length;t++)this.teamsInfo[a.data.teams[t].team_id]=a.data.teams[t]},async getStats(e){const a=pc.create({headers:{Authorization:`${this.token}`}});var t=[],n={},s={};if(this.type==0){s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={player_id:e.player,color:s.data.info_thumbnails.colors.background_color,colorfont:s.data.info_thumbnails.colors.font_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.seasons[e.season].games_played[i].game_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:"",category:0,team_id:s.data.team_id,game_id:s.data.seasons[e.season].games_played[i].game_id,position_id:s.data.position_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},t.push(n)}if(this.type==1){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_teams.length);n={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[r],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_teams[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,team_name:this.teamsInfo[s.data.team_id].colloquial_name,team_id:s.data.team_id,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,team_id_b:s.data.team_id,category:s.data.categories[i].categories,season_id:s.data.season_id,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==2){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player);for(let i=0;i<s.data.categories.length;i++){this.playerPhoto=!1;const r=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.player_in_action.length),l=Math.floor(Math.random()*s.data.categories[i].info_thumbnails.images.background_default_categories.length);n={player_action:s.data.categories[i].info_thumbnails.images.player_in_action[r]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.player_in_action[r]:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.categories[i].info_thumbnails.images.background_default_categories[l],color:s.data.categories[i].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+s.data.categories[i].info_thumbnails.team_logo,player_name:s.data.categories[i].category_name,season_id:e.season,colorfont:s.data.categories[i].info_thumbnails.colors.font_color,player_id:e.player,team_id:s.data.categories[i].info_thumbnails.colors.team_id,category:s.data.categories[i].categories,total:s.data.categories[i].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+e.player+".png"},t.push(n)}}if(this.type==3){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.games[0].players.length;i++){const r=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.background_player_in_action.length),l=Math.floor(Math.random()*s.data.games[0].players[i].info_thumbnails.images.player_in_action.length);n={colorbackgroundhome:s.data.games[0].players[i].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:s.data.games[0].players[i].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.background_player_in_action[r],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:s.data.games[0].players[i].info_thumbnails.colors.font_color,team_id:s.data.games[0].players[i].team_id,player_id:s.data.games[0].players[i].player_id,game_id:s.data.games[0].game_id,season_id:s.data.season_id,logohome:s.data.games[0].players[i].team_logo,photoprofile:s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.games[0].players[i].info_thumbnails.images.player_in_action[l]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.games[0].players[i].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},t.push(n)}}if(this.type==4){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.home_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.home_team.categories[i].info_thumbnails.images.background_default_teams.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.home_team.team_id,category:s.data.home_team.categories[i].categories.concat(s.data.home_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.home_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.home_team.team_id+".png",color:s.data.home_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.home_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.home_team.categories[i].category_name,total:s.data.home_team.categories[i].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.home_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==5){this.playerPhoto=!1,s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+e.season+"/games/"+e.game);for(let i=0;i<s.data.visiting_team.categories.length;i++){const r=Math.floor(Math.random()*s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories.length);n={game_id:s.data.game_id,season_id:s.data.season_id,team_id:s.data.visiting_team.team_id,category:s.data.visiting_team.categories[i].categories.concat(s.data.visiting_team.categories[i].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.visiting_team.categories[i].info_thumbnails.images.background_default_categories[r],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.visiting_team.team_id+".png",team_name:"Away",color:s.data.visiting_team.categories[i].info_thumbnails.colors.background_color,colorfont:s.data.visiting_team.categories[i].info_thumbnails.colors.font_color,player_name:s.data.visiting_team.categories[i].category_name,total:s.data.visiting_team.categories[i].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.visiting_team.team_id+"_"+s.data.season_id+"_r1.jpg"},t.push(n)}}if(this.type==6){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==7){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/teams/"+e.team+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==8){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,player_id:s.data.player_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,hometeamacronym:s.data.best_plays[i].home_team_acronym,visitingteamacronym:s.data.best_plays[i].away_team_acronym,seasonname:"",score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==9){s=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/players/"+e.player+"/categories/"+e.category);for(let i=0;i<s.data.best_plays.length;i++)n={category:s.data.best_plays[i].categories,team_id:s.data.team_id,player_id:s.data.player_id,game_id:s.data.best_plays[i].game_id,season_id:s.data.season_id,backgroundhome:s.data.best_plays[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.best_plays[i].info_thumbnails.away_colors.background_color,colorfont_home:s.data.best_plays[i].info_thumbnails.home_colors.font_color,colorfont_away:s.data.best_plays[i].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.best_plays[i].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.best_plays[i].info_thumbnails.images.background_default_categories[0],match:"",scorehome:s.data.best_plays[i].score[0],scoreaway:s.data.best_plays[i].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+s.data.best_plays[i].info_thumbnails.player_logo,score:s.data.best_plays[i].score[0]+" : "+s.data.best_plays[i].score[1]},t.push(n)}if(this.type==10){const i=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let r=0;r<i.data.seasons[e.season].games.length;r++){const l=Math.floor(Math.random()*i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games.length);n={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",player_name:i.data.seasons[e.season].games[r].home_team_acronym+" "+i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score+" "+i.data.seasons[e.season].games[r].visiting_team_acronym,team_id:i.data.seasons[e.season].games[r].game_id,team_id_b:i.data.seasons[e.season].games[r].home_team,season_id:i.data.seasons[e.season].games[r].season_id,name:"",category:0,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.colors.font_color,game_id:i.data.seasons[e.season].games[r].game_id,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games[r].matchday_name.replace("Matchday","Jor"),score:i.data.seasons[e.season].games[r].home_team_score+" : "+i.data.seasons[e.season].games[r].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.seasons[e.season].games[r].info_thumbnails.images.background_default_games[l],backgroundhome:i.data.seasons[e.season].games[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.best_plays[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.best_plays[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games[r].visiting_team+".png",total:i.data.seasons[e.season].games[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games[r].home_team+"_"+i.data.seasons[e.season].games[r].season_id+"_r1.jpg"},t.push(n)}}if(this.type==11){const i=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let r=0;r<i.data.seasons[e.season].games_played.length;r++)Math.floor(Math.random()*i.data.seasons[e.season].games_played[r].info_thumbnails.images.background_default_games.length),n={category:0,player_id:e.player,team_id:i.data.team_id,game_id:i.data.seasons[e.season].games_played[r].game_id,position_id:i.data.position_id,color:i.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",player_name:i.data.seasons[e.season].games_played[r].home_team_acronym+" "+i.data.seasons[e.season].games_played[r].home_team_score+" : "+i.data.seasons[e.season].games_played[r].visiting_team_score+" "+i.data.seasons[e.season].games_played[r].visiting_team_acronym,team_id_b:i.data.seasons[e.season].games_played[r].home_team,season_id:i.data.seasons[e.season].games_played[r].season_id,name:i.data.seasons[e.season].games_played[r].player_name,seasonname:i.data.seasons[e.season].name,match:i.data.seasons[e.season].games_played[r].matchday_name.replace("Matchday","Jor"),scorehome:i.data.seasons[e.season].games_played[r].home_team_score,scoreaway:i.data.seasons[e.season].games_played[r].visiting_team_score,hometeamacronym:i.data.seasons[e.season].games_played[r].home_team_acronym,visitingteamacronym:i.data.seasons[e.season].games_played[r].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.background_color,backgroundaway:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.background_color,colorfont_home:i.data.seasons[e.season].games_played[r].info_thumbnails.home_colors.font_color,colorfont_away:i.data.seasons[e.season].games_played[r].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data.seasons[e.season].games_played[r].visiting_team+".png",total:i.data.seasons[e.season].games_played[r].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+i.data.seasons[e.season].games_played[r].home_team+"_"+i.data.seasons[e.season].games_played[r].season_id+"_r1.jpg"},t.push(n)}if(this.type==12){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==13){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1]},t.push(n)}if(this.type==14&&(t=[],e.season)){if(this.lastseason!=e.season){const i=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/categories/"+e.category);this.flagGames=[],this.arrayMatchdays=[];for(let r=0;r<i.data.length;r++)for(let l=0;l<i.data[r].best_plays.length;l++)i.data[r].best_plays[l].score[0]==0&&i.data[r].best_plays[l].score[1]==0||(n={category:i.data[r].best_plays[l].categories,game_id:i.data[r].best_plays[l].game_id,plays_status:i.data[r].best_plays[l].plays_status,season_id:i.data[r].season_id,backgroundhome:i.data[r].best_plays[l].info_thumbnails.home_colors.background_color,backgroundaway:i.data[r].best_plays[l].info_thumbnails.away_colors.background_color,colorfont_home:i.data[r].best_plays[l].info_thumbnails.home_colors.font_color,date_time:new Date(i.data[r].best_plays[l].date_time_utc).valueOf(),colorfont_away:i.data[r].best_plays[l].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+i.data[r].best_plays[l].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data[r].best_plays[l].info_thumbnails.images.background_default_categories[0],match:"",scorehome:i.data[r].best_plays[l].score[0],scoreaway:i.data[r].best_plays[l].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+i.data[r].best_plays[l].info_thumbnails.player_logo,score:i.data[r].best_plays[l].score[0]+" : "+i.data[r].best_plays[l].score[1],matchday_id:i.data[r].best_plays[l].matchday_id},this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]?this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id)):(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id]=[],this.flagGames.includes(n.game_id)||(this.arrayMatchdays[i.data[r].best_plays[l].matchday_id].push(n),this.flagGames.push(n.game_id))));t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((r,l)=>r.date_time-l.date_time):[]}else t=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((i,r)=>i.date_time-r.date_time):[];this.lastseason=e.season}this.printData=t}},async created(){}},Ic=()=>{o.useCssVars(e=>({"0c805cc5":e.backgroundColor}))},Rc=di.setup;di.setup=Rc?(e,a)=>(Ic(),Rc(e,a)):Ic;function A4(e,a,t,n,s,i){const r=o.resolveComponent("GSCThumbnailCategory"),l=o.resolveComponent("GSCThumbnailCategoryTeam"),u=o.resolveComponent("GSCThumbnailCategoryTeamAway"),c=o.resolveComponent("GSCThumbnailHighlightGamePlayer"),m=o.resolveComponent("GSCThumbnailHighlightGameHistoric"),h=o.resolveComponent("GSCThumbnailSummaryPlayer"),f=o.resolveComponent("GSCSlider");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.$style.ptg),ref:"ptgDiv"},[o.createElementVNode("div",{class:o.normalizeClass(i.ptgtitleClass)},o.toDisplayString(t.title),3),o.createVNode(f,{backgroundColor:t.backgroundColor,pxScroll:t.pxScroll,arrows:t.arrows,arrowsScrollHide:t.arrowsScrollHide,arrowsHideOnNoScroll:t.arrowsHideOnNoScroll,arrowsColor:t.arrowsColor,arrowsHeight:t.arrowsWidth,arrowsWidth:t.arrowsWidth,arrowsPadding:t.arrowsPadding,arrowsMargin:t.arrowsMargin,arrowsRadius:t.arrowsRadius,arrowsBorder:t.arrowsBorder,arrowsBackground:t.arrowsBackground,arrowsContainerBgL:t.arrowsContainerBgL,arrowsContainerBgR:t.arrowsContainerBgR,scrollColor:t.scrollColor,arrowsPosition:t.arrowsPosition,height:t.height},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.printData,(d,p)=>(o.openBlock(),o.createElementBlock("div",{key:p,class:o.normalizeClass(i.pgtcontainercardClass),style:o.normalizeStyle(p==0?"margin-left: 0px !important; color: white;":"")},[t.type==2?(o.openBlock(),o.createBlock(r,{key:0,"color-background-home":d.color,"name-player":t.data.player_name,"type-img":"0",background:d.background_action,"name-category":d.player_name,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"photo-profile":d.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):t.type==1||t.type==4?(o.openBlock(),o.createBlock(l,{key:1,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-home":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==5?(o.openBlock(),o.createBlock(u,{key:2,type:"team","name-team":d.team_name!=null?d.team_name:"","type-style":"category","color-background-away":d.color,"logo-home":d.team_logo,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3}),background:d.player_action,"name-category":d.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):t.type==0?(o.openBlock(),o.createBlock(c,{key:3,items:d,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2,isAllPlays:!0}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==6?(o.openBlock(),o.createBlock(m,{key:4,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"GOLES",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.goalCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==7?(o.openBlock(),o.createBlock(m,{key:5,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"title-category":"RESUMEN",onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:3,categories:s.resumeCategories}),matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):t.type==8?(o.openBlock(),o.createBlock(c,{key:6,items:d,type:2,"name-category":"RESUMEN","color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==9?(o.openBlock(),o.createBlock(c,{key:7,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==10?(o.openBlock(),o.createBlock(m,{key:8,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"title-category":"RESUMEN",matchday:d.match,"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):t.type==11?(o.openBlock(),o.createBlock(c,{key:9,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):t.type==12?(o.openBlock(),o.createBlock(c,{key:10,items:d,type:2,"name-category":"RESUMEN","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,"color-font-home":d.colorfont_home,"color-font-away":d.colorfont_away,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==13?(o.openBlock(),o.createBlock(c,{key:11,items:d,type:2,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):t.type==14?(o.openBlock(),o.createBlock(c,{key:12,items:d,type:2,"play-status":d.plays_status?d.plays_status:0,"name-category":"GOLES","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:1,categories:s.goalCategories}),background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,matchday:d.match,"score-home":d.scorehome,showimg:!1,"photo-profile":d.photo_profile,"score-away":d.scoreaway,"season-name":d.seasonname},null,8,["items","play-status","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(o.openBlock(),o.createBlock(h,{key:13,type:"player","color-background-home":d.colorbackgroundhome,"color-background-away":d.colorbackgroundaway,"name-player":d.nameplayer,"type-img":0,onOnclickPlayVideos:g=>i.onclickPlayVideos({data:d,type:2}),background:d.background,"name-home-team":d.namehometeam,"name-away-team":d.nameawayteam,"name-category":"RESUMEN","logo-away":d.logoaway,"logo-home":d.logohome,"color-font":d.colorfont,"score-home":d.scorehome,"photo-profile":d.photoprofile,"score-away":d.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const V4={name:"DiscoverVideos",components:{GscSwitchComponent:Ua,GSCPlayerTeamGame:yt(di,[["render",A4],["__cssModules",{$style:O4}]]),GSCButton:jr,MatchDayPicker:Fr},props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},myTournament:{type:Number,default:1},videoType:{type:Number,default:1},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},user:{type:Object,default:()=>{}},nextRivalTeam:{type:Object,default:()=>{}},tournamentSelected:{type:Object,default:()=>{}},defaultMatchDayKey:{type:String,default:""},isLeagueSelected:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},tournamentScheduleKeys:{type:Array,default:()=>[]},seasonSelected:{type:Object,default:()=>{}},defaultMediaPlayerSeason:{type:Number,default:0}},watch:{tournamentSelected:{immediate:!0,deep:!1,async handler(e){this.myTournament!==e.id?this.currentTabMoreVideos="Goles":this.currentTabMoreVideos="Goles"}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},activeDropGoals:{handler(e){e&&(this.matchDayPickerKey+=1)},immediate:!0}},data(){return{currentTabMoreVideos:"Resumen",currentMobileTab:"Descubre videos",mobileClass:!1,activeDropGoals:!1,matchdayActive:{},resumeCategory:1000001,goalsCategory:1255e3,resumeType:1,goalsType:2,matchDayPickerKey:0}},mounted(){this.mobileClass=window.innerWidth<768,window.addEventListener("resize",this.handleResize)},methods:{onChangeMatchDay(e){this.matchdayActive=e,this.$emit("change-match-day",e)},handleResize(){this.mobileClass=window.innerWidth<768},onOpenMedia(e){this.$emit("openmedia",e)},onClickOpenMedia(){let t=1,n=[],s=[],i=0,r=this.defaultMediaPlayerSeason||this.user.season,l=[],u=[12,55,"35_r","54_r"],c=[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],m=[55,324,323,608,39,774,802,52,53,40,54];this.tournamentSelected.id===this.user.tournament?(r=this.seasonSelected.id,this.user.is_goalkeeper?(n=[this.user.player],l=m,t=2):this.user.is_player?(s=[this.user.player],l=c,t=2):(i=this.user.team,l=u,t=3)):(l=u,t=1);const h={type:0,seasonId:r,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:t,gameIds:null,playerIds:s,goalkeeperIds:n,categoryIds:l,teamId:i,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};this.$emit("openmedia",h)}}},$4=e=>(o.pushScopeId("data-v-c68c1e29"),e=e(),o.popScopeId(),e),P4={class:"discover-videos",ref:"discoverVideosRef"},I4={class:"title-and-button"},R4=$4(()=>o.createElementVNode("div",{class:"title-value"},"Videos",-1)),L4={class:"calendar-container"},z4={class:"drop-down-innercontainer-text"},F4={class:"drop-down-innercontainer-arrow"};function M4(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCButton"),u=o.resolveComponent("MatchDayPicker"),c=o.resolveComponent("GSCPlayerTeamGame");return o.openBlock(),o.createElementBlock("div",P4,[o.createElementVNode("div",I4,[o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"menu-container":"menu-container-movil")},[R4,t.myTournament===t.tournamentSelected.id?(o.openBlock(),o.createBlock(r,{key:0,style:o.normalizeStyle(t.componentWidth>900?"margin-left: 45px":""),buttons:["Goles","Resumen","Proximo rival"],onInput:a[0]||(a[0]=m=>s.currentTabMoreVideos=m),background:"trasparent",height:"28px",width:"140px","font-size":t.componentWidth>900?"14px":"12px","font-family":"Poppins-Light",backgroundOptionActive:"transparent",borderWidth:"2px",type:2,arrow:!1,selectedOption:s.currentTabMoreVideos,onOpenmedia:i.onOpenMedia},null,8,["style","font-size","selectedOption","onOpenmedia"])):o.createCommentVNode("",!0)],2),o.createElementVNode("div",{class:o.normalizeClass(t.componentWidth>900?"btn-search-videos":"btn-search-videos-movil")},[o.createVNode(l,{style:{"margin-top":"4px"},width:"182px","text-value":"Buscar videos","font-color":"#ffffff","font-family":"Poppins-Light","font-size":"16px",icon:"https://golstatsimages.blob.core.windows.net/images-library/icn-buscar-videos.svg","icon-size":"30px","icon-position":"right","button-max-width":"250px",height:"38px","border-radius":"50px","border-width":"1","background-color":"transparent","border-color":"#CBEE6B","active-background-color":"#CBEE6B",onClick:i.onClickOpenMedia},null,8,["onClick"])],2)]),s.currentTabMoreVideos=="Goles"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",L4,[o.createElementVNode("div",{class:"drop-down-innercontainer",onClick:a[1]||(a[1]=m=>s.activeDropGoals=!s.activeDropGoals)},[o.createElementVNode("div",z4,[o.createTextVNode(" Jornada "),Object.keys(s.matchdayActive).length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(s.matchdayActive.valueText),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(t.defaultMatchDayKey),1)],64))]),o.createElementVNode("div",F4,[o.createElementVNode("img",{width:"18",style:o.normalizeStyle(s.activeDropGoals?"":"transform: rotate(180deg);"),src:"http://golstatsimages.blob.core.windows.net/images-library/icn-arrow-collapse@2x.png"},null,4)])]),o.withDirectives((o.openBlock(),o.createBlock(u,{height:"48px","margin-top":"5px","disable-matchdays":!0,"match-days":t.tournamentScheduleKeys,"is-landing-mode":!1,"items-to-show":9,"items-to-scroll":9,"default-match-day-key":t.defaultMatchDayKey,key:s.matchDayPickerKey,onChangeMatchDay:i.onChangeMatchDay},null,8,["match-days","default-match-day-key","onChangeMatchDay"])),[[o.vShow,(t.isLeagueSelected||s.currentTabMoreVideos=="Goles")&&t.tournamentScheduleKeys&&t.tournamentScheduleKeys.length&&s.activeDropGoals]])]),o.createVNode(c,{style:{"margin-top":"-30px"},type:14,data:{season:t.seasonSelected.id,category:s.goalsCategory},width:"100%","matchday-view":Object.keys(s.matchdayActive).length>0?s.matchdayActive.matchDayId:t.defaultMatchDayKey,backgroundColor:"transparent",title:"",onOpenmedia:i.onOpenMedia},null,8,["data","matchday-view","onOpenmedia"])],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Resumen"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[t.isplayer?(o.openBlock(),o.createBlock(c,{key:1,type:8,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,player:t.player,category:1000001},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):(o.openBlock(),o.createBlock(c,{key:0,type:7,title:"",style:{"margin-top":"-30px"},backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.team,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"]))],64)):o.createCommentVNode("",!0),s.currentTabMoreVideos=="Proximo rival"?(o.openBlock(),o.createBlock(c,{key:2,type:7,style:{"margin-top":"-30px"},title:"",backgroundColor:"transparent",data:{season:t.seasonSelected.id,team:t.nextRivalTeam.id,category:s.resumeCategory},width:"100%",onOpenmedia:i.onOpenMedia},null,8,["data","onOpenmedia"])):o.createCommentVNode("",!0)],512)}const D4={components:{GSCSeasonSelect:yk,GSCTournamentSelect:J_,GSCGames:P2,GSCGridTeamsMatches:xm,GSCPlayersLanding:wm,GSCTops:Pw,GSCTableCalendar:yb,DiscoverVideos:Ne(V4,[["render",M4],["__scopeId","data-v-c68c1e29"]]),CarouselFullScreen:C_},setup(){const e=o.ref("landingref"),{elementSize:a}=Jd(e);return{landingref:e,elementSize:a}},watch:{team:{immediate:!0,deep:!0,async handler(e){if(Object.keys(this.seasonSelected).length!==0){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,this.fetchGames(e,a)}}},closestRound(e){this.selectedRoundKeyIndex=this.tournamentScheduleKeys.findIndex(a=>a===e),this.selectedRound=e},latestRound(e){this.selectedRoundKeyIndexVideo=this.tournamentScheduleKeysGoals.findIndex(a=>a===e),this.selectedRoundVideos=e}},props:{currentSeasonId:{type:Number,default:0},season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},user:{type:Object,default:()=>{}},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},defaultMediaPlayerSeason:{type:Number,default:0}},data(){return{isCarouselFullScreenVisible:!1,carouselPlayerQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,selectedRoundKeyIndex:0,selectedRoundKeyIndexVideo:0,selectedRound:"0",selectedRoundVideos:"0",isLeagueSelected:!1,fullTournamentScheduleFull:[],fullTournamentScheduleFullGoals:[],defaultMatchDayKey:null,isCupTournament:!1,retries:3,userTeamGames:[],isCupLegacyTournament:!1,tournamentScheduleKeys:[],tournamentScheduleKeysGoals:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",gamesUrl2:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",seasonSelected:{},seasonSelectedDropDowns:{},seasonsSelected:[],fullTournamentSchedule:{},tournamentSelected:{},tournamentSelectedDropDowns:{seasons:[]},playersLength:0,nextRivalId:0,loadDiscover:!1,hasNextRival:!1,resumeType:1,goalsType:2}},computed:{games(){if(this.tournamentSelected.id===this.user.tournament&&!this.isLeagueSelected)return this.fullTournamentSchedule;{const e=this.gamesPages.get(this.selectedRound);return e?e[0]:[]}},latestRound(){return this.userTeamGames&&this.userTeamGames.length&&this.fullTournamentScheduleFullGoals&&this.fullTournamentScheduleFullGoals.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFullGoals):this.getNormalClosestRound(this.fullTournamentScheduleFullGoals)},closestRound(){return this.userTeamGames&&this.userTeamGames.length?this.getUserTeamClosestRound(this.fullTournamentScheduleFull):this.getNormalClosestRound(this.fullTournamentScheduleFull)},containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{formatUsername(e){const a=e.split(",");let t="",n="";return a[1]?(n=a[1].trim().split(" "),n[0]?t=n[0]:t=a[1]):a[0]&&(n=a[0].trim().split(" "),n[0]?t=n[0]:t=a[0]),t.trim()},async fetchGameEvents(e){try{const{data:{plays:a}}=await re.get(`${this.gameEventsUrl}${e}`,{headers:{Authorization:`${this.token}`}});return a}catch(a){throw new Error(a)}},async onClickOpenCarouselVideos(e){try{const a=await this.fetchGameEvents(e);this.carouselPlayerQueue=a.filter(t=>t.event_type_id===1&&t.video_link!=="-"),this.isCarouselFullScreenVisible=!0}catch(a){throw new Error(a)}},onChangeMatchDayGames(e){this.selectedRound!==e.key&&(this.selectedRound=e.key)},onClickCloseCarousel(){this.carouselPlayerQueue=[],this.isCarouselFullScreenVisible=!1},onChangeIsLeagueSelected(e){this.isLeagueSelected=e},onAction(e){this.$emit("action",e)},onOpenMedia(e){e.type===1&&e.gameIds&&e.gameIds.length>0?this.onClickOpenCarouselVideos(e.gameIds[0]):this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)},onClickMatch(e){this.$emit("openGame",e)},onClickCalendar(){const e={type:this.tournamentSelected.id==this.user.tournament?1:0,team:this.team,season:this.seasonSelectedDropDowns};this.$emit("onClickMyCalendar",e)},moreTops(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openTops",e)},clickProfileBtn(e){this.$emit("openProfile",e)},viewAll(){const e={team:this.team,season:this.seasonSelectedDropDowns};this.$emit("openAllPlayers",e)},getTotalPlayers(e){this.playersLength=e},clickCard(e){const a={data:e,isPlayer:this.isplayer};this.$emit("clickOnMainCards",a)},async fetchGames(e,a){const t=a.map(s=>`seasons=${s.id}`).join("&"),n=re.create({headers:{Authorization:`${this.token}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?"+t),this.nextRivalId=Object.keys(this.fullTournamentSchedule).length>0?this.user.team==this.fullTournamentSchedule.data.prematch.home_team?this.fullTournamentSchedule.data.prematch.visiting_team:this.fullTournamentSchedule.data.prematch.home_team:0,this.loadDiscover=!0},async generateSeasons(e){const a=[{id:e.id,type:e.type}];return e.related_seasons&&e.related_seasons.length&&a.push(...e.related_seasons.map(t=>({id:t.id,type:t.type}))),a},async onInputTournament(e){this.tournamentSelected=e,this.tournamentSelectedDropDowns.id!==e.id&&(this.tournamentSelectedDropDowns=e)},async onInputSeason(e){if(this.seasonSelected=e,this.tournamentSelected.id!=this.user.tournament){const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1)}else{const a=await this.generateSeasons(this.seasonSelected);this.seasonsSelected=a,await this.createFullTournamentScheme(a,!1),await this.fetchGames(this.user.team,a)}this.seasonSelectedDropDowns!==e.id&&(this.seasonSelectedDropDowns=e.id,this.$emit("change-season-id",e.id))},async fetchTournaments(e){try{const{data:a}=await re.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return a}catch(a){if(e>0)return this.fetchTournaments(e-1);throw new Error(a)}},async fetchSeasonsGamesAndTeams(e,a,t=""){let n=t;try{n||(n=this.gamesUrl2,e.forEach((l,u)=>{n+=`${u===0?"":"&"}seasons=${l}`}));const s=re.create({headers:{Authorization:`${this.token}`}}),{data:{data:i,teams:r}}=await s.get(n);return{seasonsAndGames:i,seasonsAndTeams:r}}catch(s){if(a>0)return this.fetchSeasonsGamesAndTeams(e,a-1,n);throw new Error(s)}},areSeasonsDifferent(e){for(const a of e)if(!this.lastSeasonsIds.includes(a.season_id))return!0;return!1},async createFullTournamentScheme(e,a){try{this.fullTournamentSchedule={},this.userTeamGames=[];let t=0;const{seasonsAndGames:n,seasonsAndTeams:s}=await this.fetchSeasonsGamesAndTeams(e.map(m=>m.id),3);if(a&&this.areSeasonsDifferent(n))return;n.forEach(m=>{const{type:h}=e.find(f=>f.id===m.season_id);m.type=h,m.games.forEach(f=>{f.season_id=m.season_id}),h===0&&(t=m.season_id)});const i={seasonsGames:n},{teams:r}=s.find(m=>m.season_id===t),l=[...i.seasonsGames],u=i&&i.seasonsGames?i.seasonsGames.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]:f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]},this.gsData&&this.gsData.teamId&&p.game_status===4&&(p.home_team.team_id===this.gsData.teamId||p.visiting_team.team_id===this.gsData.teamId)&&this.userTeamGames.push(p),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[],c=i&&i.seasonsGames?l.map(m=>{const h=m.games.reduce((f,d)=>{const p={...d};return p.dateTimeMillis=new Date(p.date_time_utc).valueOf(),p.home_team=r.find(g=>g.team_id===d.home_team),p.visiting_team=r.find(g=>g.team_id===d.visiting_team),f[d.matchday_abbreviation]?f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]?(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date].push(p):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation][d.game_status===3?"canceled":d.date]=[p]):(p.game_status!=4||p.is_live==1)&&(p.score[0]!=0||p.score[1]!=0)&&(f[d.matchday_abbreviation]={[d.game_status===3?"canceled":d.date]:[p]}),f},{});this.userTeamGames.sort((f,d)=>f.dateTimeMillis-d.dateTimeMillis);for(let[f,d]of Object.entries(h))h[f]=Object.entries(d).map(([p,g])=>({date:p,games:g.sort((b,S)=>b.dateTimeMillis-S.dateTimeMillis)})),h[f].sort((p,g)=>p.date<g.date?-1:p.date>g.date?1:0);return{type:m.type,weight:m.type===0?0:m.type===2?1:2,schedule:h}}):[];u.sort((m,h)=>m.weight-h.weight),this.fullTournamentScheduleFull=u.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[Vl[p]||g]=d:m[Al[f]||g]=d}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Ol[f]]=d);return m},{}),this.fullTournamentScheduleFullGoals=c.reduce((m,h)=>{for(const[f,d]of Object.entries(h.schedule))if(h.type===0)if(this.isCup){const p=f.replace("M",""),g=`Jornada ${p}`;this.isCupLegacy?m[Vl[p]||g]=d:m[Al[f]||g]=myArray}else m[Number(f.replace("M","")).toString()]=d;else h.type===2?["PI1","PI2"].includes(f)?m[f]=d:m[`R${Number(f.replace("PO",""))}`]=d:h.type===1&&(m[Ol[f]]=d);return m},{}),this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentScheduleFull).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1,b=null;const S=f.reduce((O,L)=>(!b&&L&&L.games&&L.games.length&&(b=L.games[0].matchday_id),L.games.forEach(H=>{H.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),O=O.concat(L.games),O),[]);for(let O=0;O<S.length;O++)(S[O].game_status!=4||S[O].is_live)&&(S[O].score[0]!=0||S[O].score[1]!=0)&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g,matchDayId:b});const _=this.getPages(S);return this.gamesPages.set(h,_),m},new Map).values()),this.tournamentScheduleKeysGoals=Array.from(Object.entries(this.fullTournamentScheduleFullGoals).reduce((m,[h,f])=>{const d=Number(h);let p="";Number.isNaN(d)?p=h:p=d<10?`0${d}`:h;let g=!1;const b=f.reduce((_,O)=>(O.games.forEach(L=>{L.roundAbbreviation=Number.isNaN(d)?d:`J ${d}`}),_=_.concat(O.games),_),[]);for(let _=0;_<b.length;_++)(b[_].game_status!=4||b[_].is_live&&(b[_].score[0]!=0||b[_].score[1]!=0))&&(g=!0);m.set(h,{key:h,value:d,valueText:p,avaible:g});const S=this.getPages(b);return this.gamesPages.set(h,S),m},new Map).values())}catch(t){throw new Error(t)}finally{this.loadingFlag=!1}},getPages(e){const a=[];if(this.gamesPerMatchDay>0){let t=[];e.forEach((n,s)=>{t.push(n),(s+1)%this.gamesPerMatchDay===0&&(a.push([...t]),t=[])}),t.length&&a.push([...t])}else a.push(e);return a},getNormalClosestRound(e){const t=Object.entries(Object.entries(e).reduce((i,[r,l])=>(i[r]=[],l.forEach(u=>{u.games.forEach(c=>{const m=new Date(c.date_time_utc).getTime()+66e5;i[r].push(m)})}),i),{}));if(!t.length)return"1";const n=new Date().getTime(),s=t.reduce((i,[r,l])=>{let u=null;return l.forEach(c=>{const m=c-n;m>=0&&(u===null||m<u)&&(u=m)}),u&&(i.shortestTime===null||u<i.shortestTime)&&(i.round=r,i.shortestTime=u),i},{round:"",shortestTime:null});return s.shortestTime!==null?s.round:t[t.length-1][0]},getUserTeamClosestRound(e){let a=1;if(this.userTeamGames.length){const t=this.userTeamGames[0];for(const[n,s]of Object.entries(e))for(const i of s)if(i.games.find(l=>l.game_id===t.game_id))return n}return a}},async created(){}},j4=e=>(o.pushScopeId("data-v-361aa91e"),e=e(),o.popScopeId(),e),W4={class:"gsclanding",ref:"landingref"},U4={key:1,class:"container-selectors-mobile"},H4={class:"container-selectors-mobile-tournament"},G4={class:"container-selectors-mobile-season"},q4={key:0,class:"home-item-movil"},J4=j4(()=>o.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),K4={class:"name-user-movil"},Z4={key:1,class:"home-item"},X4={key:2,class:"bar-settings"},Y4={class:"name-user"},Q4={class:"container-selectors"},e3={class:"selector-tournament"},t3={class:"selector-seasons"},o3={key:3,class:"container-games"},a3={class:"container-vr"},n3={key:4,class:"container-players"},i3={class:"container-tops"};function s3(e,a,t,n,s,i){const r=o.resolveComponent("CarouselFullScreen"),l=o.resolveComponent("GSCTournamentSelect"),u=o.resolveComponent("GSCSeasonSelect"),c=o.resolveComponent("GSCGames"),m=o.resolveComponent("DiscoverVideos"),h=o.resolveComponent("GSCGridTeamsMatches"),f=o.resolveComponent("GSCTableCalendar"),d=o.resolveComponent("GSCPlayersLanding"),p=o.resolveComponent("GSCTops");return o.openBlock(),o.createElementBlock("div",W4,[s.isCarouselFullScreenVisible?(o.openBlock(),o.createBlock(r,{key:0,"player-queue":s.carouselPlayerQueue,"playlist-index":0,onClose:i.onClickCloseCarousel},null,8,["player-queue","onClose"])):o.createCommentVNode("",!0),n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",U4,[o.createElementVNode("div",H4,[o.createVNode(l,{"current-season-id":t.currentSeasonId,width:"100%",onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",G4,[o.createVNode(u,{"current-season-id":t.currentSeasonId,width:"100%",seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(i.containerbackground)},[o.createElementVNode("div",{class:o.normalizeClass(i.containerdata)},[n.elementSize.width<=680?(o.openBlock(),o.createElementBlock("div",q4,[J4,o.createElementVNode("div",K4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1)])):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",Z4,"Inicio")):o.createCommentVNode("",!0),n.elementSize.width>680?(o.openBlock(),o.createElementBlock("div",X4,[o.createElementVNode("div",Y4,"Bienvenido "+o.toDisplayString(i.formatUsername(t.user.name)),1),o.createElementVNode("div",Q4,[o.createElementVNode("div",e3,[o.createVNode(l,{"current-season-id":t.currentSeasonId,onInput:i.onInputTournament},null,8,["current-season-id","onInput"])]),o.createElementVNode("div",t3,[o.createVNode(u,{"current-season-id":t.currentSeasonId,seasons:s.tournamentSelectedDropDowns.seasons,onInput:i.onInputSeason},null,8,["current-season-id","seasons","onInput"])])])])):o.createCommentVNode("",!0),Object.keys(s.tournamentSelected).length>0?(o.openBlock(),o.createElementBlock("div",o3,[o.createVNode(c,{"component-width":n.elementSize.width,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,data:i.games,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":s.selectedRound,onClickCalendar:i.onClickCalendar,onClickMatch:i.onClickMatch,onChangeMatchDay:i.onChangeMatchDayGames,onChangeIsLeagueSelected:i.onChangeIsLeagueSelected},null,8,["component-width","isplayer","is-full","data","tournament-schedule-keys","default-match-day-key","onClickCalendar","onClickMatch","onChangeMatchDay","onChangeIsLeagueSelected"])])):o.createCommentVNode("",!0),o.createElementVNode("div",a3,[o.createVNode(m,{"component-width":n.elementSize.width,onOpenmedia:i.onOpenMedia,videoType:s.tournamentSelected.id==t.user.tournament?s.resumeType:s.goalsType,team:t.team,player:t.user.player,isplayer:t.isplayer,"is-full":s.tournamentSelected.id!=t.user.tournament,"is-league-selected":s.tournamentSelected.id!=t.user.tournament,nextRivalTeam:s.tournamentSelected.id==t.user.tournament&&s.nextRivalId!=0?{id:s.nextRivalId}:0,user:t.user,"tournament-schedule-keys":s.tournamentScheduleKeys,"default-match-day-key":i.latestRound,seasonSelected:s.seasonSelected,tournamentSelected:s.tournamentSelected,myTournament:t.user.tournament,"default-media-player-season":t.defaultMediaPlayerSeason},null,8,["component-width","onOpenmedia","videoType","team","player","isplayer","is-full","is-league-selected","nextRivalTeam","user","tournament-schedule-keys","default-match-day-key","seasonSelected","tournamentSelected","myTournament","default-media-player-season"])]),o.createElementVNode("div",{class:o.normalizeClass(i.containerGridCalendarTable)},[o.createElementVNode("div",{class:"container-grid",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%":"")},[o.createVNode(h,{isPlayer:t.isplayer?s.tournamentSelected.id==t.user.tournament:!1,"player-id":t.user.player,"team-id":t.user.team,"season-selected":s.seasonSelected.id,"next-rival-id":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?s.fullTournamentSchedule.data.prematch.visiting_team:s.fullTournamentSchedule.data.prematch.home_team:0,"team-img":"https://az755631.vo.msecnd.net/teams-150/"+t.user.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+t.user.player+".png","rival-img":Object.keys(s.fullTournamentSchedule).length>0?t.user.team==s.fullTournamentSchedule.data.prematch.home_team?"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.visiting_team+".png":"https://az755631.vo.msecnd.net/teams-150/"+s.fullTournamentSchedule.data.prematch.home_team+".png":"","has-team":t.isplayer?!1:s.tournamentSelected.id==t.user.tournament,"component-width":n.elementSize.width,onAction:i.clickCard},null,8,["isPlayer","player-id","team-id","season-selected","next-rival-id","team-img","player-img","rival-img","has-team","component-width","onAction"])],4),o.createElementVNode("div",{class:"container-calendar-table",style:o.normalizeStyle(n.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[o.createVNode(f,{onAction:i.onAction,season:s.seasonSelected,seasons:s.seasonsSelected,onOpenmedia:i.onOpenMedia,onOnOpenProfile:i.onOpenProfile,componentWidth:n.elementSize.width},null,8,["onAction","season","seasons","onOpenmedia","onOnOpenProfile","componentWidth"])],4)],2),s.tournamentSelected.id==t.user.tournament?o.withDirectives((o.openBlock(),o.createElementBlock("div",n3,[o.createVNode(d,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,onTotalPlayers:i.getTotalPlayers,"team-id":t.user.team,"season-id":s.seasonSelected.id,"is-player":t.user.player!=0},null,8,["onClickProfileBtn","onViewAll","onTotalPlayers","team-id","season-id","is-player"])],512)),[[o.vShow,s.playersLength>0]]):o.createCommentVNode("",!0),o.createElementVNode("div",i3,[o.createVNode(p,{onMore:i.moreTops,"show-switch":s.tournamentSelected.id==t.user.tournament,season:s.seasonSelected.id,"team-id":t.user.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","show-switch","season","team-id","onOpenmedia"])])],2)],2)],512)}const r3=Ne(D4,[["render",s3],["__scopeId","data-v-361aa91e"]]);pt.GSCLanding=r3,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});