@golstats/gsc-timeline-reports 1.0.13 → 1.0.14

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,6 +1,6 @@
1
- (function($,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):($=typeof globalThis<"u"?globalThis:$||self,l($.GSCTimelineReports={},$.Vue))})(this,function($,l){"use strict";function qe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mt}=Object.prototype,{getPrototypeOf:Te}=Object,{iterator:de,toStringTag:Ve}=Symbol,me=(e=>t=>{const n=Mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),U=e=>(e=e.toLowerCase(),t=>me(t)===e),pe=e=>t=>typeof t===e,{isArray:Y}=Array,ne=pe("undefined");function se(e){return e!==null&&!ne(e)&&e.constructor!==null&&!ne(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=U("ArrayBuffer");function Nt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const Bt=pe("string"),I=pe("function"),We=pe("number"),ie=e=>e!==null&&typeof e=="object",At=e=>e===!0||e===!1,he=e=>{if(me(e)!=="object")return!1;const t=Te(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ve in e)&&!(de in e)},Ct=e=>{if(!ie(e)||se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},It=U("Date"),Pt=U("File"),Lt=U("Blob"),Ft=U("FileList"),Dt=e=>ie(e)&&I(e.pipe),Ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||I(e.append)&&((t=me(e))==="formdata"||t==="object"&&I(e.toString)&&e.toString()==="[object FormData]"))},Ht=U("URLSearchParams"),[jt,qt,Vt,zt]=["ReadableStream","Request","Response","Headers"].map(U),Wt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function re(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Y(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(se(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let f;for(s=0;s<o;s++)f=r[s],t.call(null,e[f],f,e)}}function $e(e,t){if(se(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ze=e=>!ne(e)&&e!==Z;function Oe(){const{caseless:e}=Ze(this)&&this||{},t={},n=(s,i)=>{const r=e&&$e(t,i)||i;he(t[r])&&he(s)?t[r]=Oe(t[r],s):he(s)?t[r]=Oe({},s):Y(s)?t[r]=s.slice():t[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&re(arguments[s],n);return t}const $t=(e,t,n,{allOwnKeys:s}={})=>(re(t,(i,r)=>{n&&I(i)?e[r]=qe(i,n):e[r]=i},{allOwnKeys:s}),e),Zt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jt=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xt=(e,t,n,s)=>{let i,r,o;const f={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!s||s(o,e,t))&&!f[o]&&(t[o]=e[o],f[o]=!0);e=n!==!1&&Te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Gt=e=>{if(!e)return null;if(Y(e))return e;let t=e.length;if(!We(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Te(Uint8Array)),Yt=(e,t)=>{const s=(e&&e[de]).call(e);let i;for(;(i=s.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},en=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},tn=U("HTMLFormElement"),nn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Je=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sn=U("RegExp"),Xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};re(n,(i,r)=>{let o;(o=t(i,r,e))!==!1&&(s[r]=o||i)}),Object.defineProperties(e,s)},rn=e=>{Xe(e,(t,n)=>{if(I(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(I(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},on=(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return Y(e)?s(e):s(String(e).split(t)),n},an=()=>{},ln=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cn(e){return!!(e&&I(e.append)&&e[Ve]==="FormData"&&e[de])}const un=e=>{const t=new Array(10),n=(s,i)=>{if(ie(s)){if(t.indexOf(s)>=0)return;if(se(s))return s;if(!("toJSON"in s)){t[i]=s;const r=Y(s)?[]:{};return re(s,(o,f)=>{const b=n(o,i+1);!ne(b)&&(r[f]=b)}),t[i]=void 0,r}}return s};return n(e,0)},fn=U("AsyncFunction"),dn=e=>e&&(ie(e)||I(e))&&I(e.then)&&I(e.catch),Ke=((e,t)=>e?setImmediate:t?((n,s)=>(Z.addEventListener("message",({source:i,data:r})=>{i===Z&&r===n&&s.length&&s.shift()()},!1),i=>{s.push(i),Z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",I(Z.postMessage)),mn=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||Ke,u={isArray:Y,isArrayBuffer:ze,isBuffer:se,isFormData:Ut,isArrayBufferView:Nt,isString:Bt,isNumber:We,isBoolean:At,isObject:ie,isPlainObject:he,isEmptyObject:Ct,isReadableStream:jt,isRequest:qt,isResponse:Vt,isHeaders:zt,isUndefined:ne,isDate:It,isFile:Pt,isBlob:Lt,isRegExp:sn,isFunction:I,isStream:Dt,isURLSearchParams:Ht,isTypedArray:Qt,isFileList:Ft,forEach:re,merge:Oe,extend:$t,trim:Wt,stripBOM:Zt,inherits:Jt,toFlatObject:Xt,kindOf:me,kindOfTest:U,endsWith:Kt,toArray:Gt,forEachEntry:Yt,matchAll:en,isHTMLForm:tn,hasOwnProperty:Je,hasOwnProp:Je,reduceDescriptors:Xe,freezeMethods:rn,toObjectSet:on,toCamelCase:nn,noop:an,toFiniteNumber:ln,findKey:$e,global:Z,isContextDefined:Ze,isSpecCompliantForm:cn,toJSONObject:un,isAsyncFn:fn,isThenable:dn,setImmediate:Ke,asap:mn,isIterable:e=>e!=null&&I(e[de])};function v(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}u.inherits(v,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:u.toJSONObject(this.config),code:this.code,status:this.status}}});const Ge=v.prototype,Qe={};["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=>{Qe[e]={value:e}}),Object.defineProperties(v,Qe),Object.defineProperty(Ge,"isAxiosError",{value:!0}),v.from=(e,t,n,s,i,r)=>{const o=Object.create(Ge);return u.toFlatObject(e,o,function(b){return b!==Error.prototype},f=>f!=="isAxiosError"),v.call(o,e.message,t,n,s,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const pn=null;function ke(e){return u.isPlainObject(e)||u.isArray(e)}function Ye(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,n){return e?e.concat(t).map(function(i,r){return i=Ye(i),!n&&r?"["+i+"]":i}).join(n?".":""):t}function hn(e){return u.isArray(e)&&!e.some(ke)}const gn=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ge(e,t,n){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!u.isUndefined(x[S])});const s=n.metaTokens,i=n.visitor||m,r=n.dots,o=n.indexes,b=(n.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(i))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(u.isDate(h))return h.toISOString();if(u.isBoolean(h))return h.toString();if(!b&&u.isBlob(h))throw new v("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(h)||u.isTypedArray(h)?b&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,S,x){let R=h;if(h&&!x&&typeof h=="object"){if(u.endsWith(S,"{}"))S=s?S:S.slice(0,-2),h=JSON.stringify(h);else if(u.isArray(h)&&hn(h)||(u.isFileList(h)||u.endsWith(S,"[]"))&&(R=u.toArray(h)))return S=Ye(S),R.forEach(function(T,D){!(u.isUndefined(T)||T===null)&&t.append(o===!0?et([S],D,r):o===null?S:S+"[]",d(T))}),!1}return ke(h)?!0:(t.append(et(x,S,r),d(h)),!1)}const E=[],p=Object.assign(gn,{defaultVisitor:m,convertValue:d,isVisitable:ke});function N(h,S){if(!u.isUndefined(h)){if(E.indexOf(h)!==-1)throw Error("Circular reference detected in "+S.join("."));E.push(h),u.forEach(h,function(R,O){(!(u.isUndefined(R)||R===null)&&i.call(t,R,u.isString(O)?O.trim():O,S,p))===!0&&N(R,S?S.concat(O):[O])}),E.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return N(e),t}function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Me(e,t){this._pairs=[],e&&ge(e,this,t)}const nt=Me.prototype;nt.append=function(t,n){this._pairs.push([t,n])},nt.toString=function(t){const n=t?function(s){return t.call(this,s,tt)}:tt;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function yn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(e,t,n){if(!t)return e;const s=n&&n.encode||yn;u.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let r;if(i?r=i(t,n):r=u.isURLSearchParams(t)?t.toString():new Me(t,n).toString(s),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class it{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(s){s!==null&&t(s)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Me,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ne=typeof window<"u"&&typeof document<"u",Be=typeof navigator=="object"&&navigator||void 0,bn=Ne&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),En=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xn=Ne&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ne,hasStandardBrowserEnv:bn,hasStandardBrowserWebWorkerEnv:En,navigator:Be,origin:xn},Symbol.toStringTag,{value:"Module"})),...wn};function _n(e,t){return ge(e,new C.classes.URLSearchParams,{visitor:function(n,s,i,r){return C.isNode&&u.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function vn(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sn(e){const t={},n=Object.keys(e);let s;const i=n.length;let r;for(s=0;s<i;s++)r=n[s],t[r]=e[r];return t}function ot(e){function t(n,s,i,r){let o=n[r++];if(o==="__proto__")return!0;const f=Number.isFinite(+o),b=r>=n.length;return o=!o&&u.isArray(i)?i.length:o,b?(u.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!f):((!i[o]||!u.isObject(i[o]))&&(i[o]=[]),t(n,s,i[o],r)&&u.isArray(i[o])&&(i[o]=Sn(i[o])),!f)}if(u.isFormData(e)&&u.isFunction(e.entries)){const n={};return u.forEachEntry(e,(s,i)=>{t(vn(s),i,n,0)}),n}return null}function Rn(e,t,n){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const oe={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,r=u.isObject(t);if(r&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return i?JSON.stringify(ot(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t)||u.isReadableStream(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return _n(t,this.formSerializer).toString();if((f=u.isFileList(t))||s.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return ge(f?{"files[]":t}:t,b&&new b,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),Rn(t)):t}],transformResponse:[function(t){const n=this.transitional||oe.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(u.isResponse(t)||u.isReadableStream(t))return t;if(t&&u.isString(t)&&(s&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(f){if(o)throw f.name==="SyntaxError"?v.from(f,v.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};u.forEach(["delete","get","head","post","put","patch"],e=>{oe.headers[e]={}});const Tn=u.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"]),On=e=>{const t={};let n,s,i;return e&&e.split(`
2
- `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!n||t[n]&&Tn[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},at=Symbol("internals");function ae(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:u.isArray(e)?e.map(ye):String(e)}function kn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Mn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,n,s,i){if(u.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!u.isString(t)){if(u.isString(s))return t.indexOf(s)!==-1;if(u.isRegExp(s))return s.test(t)}}function Nn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Bn(e,t){const n=u.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,r,o){return this[s].call(this,t,i,r,o)},configurable:!0})})}let P=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function r(f,b,d){const m=ae(b);if(!m)throw new Error("header name must be a non-empty string");const E=u.findKey(i,m);(!E||i[E]===void 0||d===!0||d===void 0&&i[E]!==!1)&&(i[E||b]=ye(f))}const o=(f,b)=>u.forEach(f,(d,m)=>r(d,m,b));if(u.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(u.isString(t)&&(t=t.trim())&&!Mn(t))o(On(t),n);else if(u.isObject(t)&&u.isIterable(t)){let f={},b,d;for(const m of t){if(!u.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[d=m[0]]=(b=f[d])?u.isArray(b)?[...b,m[1]]:[b,m[1]]:m[1]}o(f,n)}else t!=null&&r(n,t,s);return this}get(t,n){if(t=ae(t),t){const s=u.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return kn(i);if(u.isFunction(n))return n.call(this,i,s);if(u.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ae(t),t){const s=u.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ae(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function r(o){if(o=ae(o),o){const f=u.findKey(s,o);f&&(!n||Ae(s,s[f],f,n))&&(delete s[f],i=!0)}}return u.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const r=n[s];(!t||Ae(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const n=this,s={};return u.forEach(this,(i,r)=>{const o=u.findKey(s,r);if(o){n[o]=ye(i),delete n[r];return}const f=t?Nn(r):String(r).trim();f!==r&&delete n[r],n[f]=ye(i),s[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return u.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&u.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[at]=this[at]={accessors:{}}).accessors,i=this.prototype;function r(o){const f=ae(o);s[f]||(Bn(i,o),s[f]=!0)}return u.isArray(t)?t.forEach(r):r(t),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.reduceDescriptors(P.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),u.freezeMethods(P);function Ce(e,t){const n=this||oe,s=t||n,i=P.from(s.headers);let r=s.data;return u.forEach(e,function(f){r=f.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function lt(e){return!!(e&&e.__CANCEL__)}function ee(e,t,n){v.call(this,e??"canceled",v.ERR_CANCELED,t,n),this.name="CanceledError"}u.inherits(ee,v,{__CANCEL__:!0});function ct(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function An(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cn(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(b){const d=Date.now(),m=s[r];o||(o=d),n[i]=b,s[i]=d;let E=r,p=0;for(;E!==i;)p+=n[E++],E=E%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const N=m&&d-m;return N?Math.round(p*1e3/N):void 0}}function In(e,t){let n=0,s=1e3/t,i,r;const o=(d,m=Date.now())=>{n=m,i=null,r&&(clearTimeout(r),r=null),e(...d)};return[(...d)=>{const m=Date.now(),E=m-n;E>=s?o(d,m):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},s-E)))},()=>i&&o(i)]}const we=(e,t,n=3)=>{let s=0;const i=Cn(50,250);return In(r=>{const o=r.loaded,f=r.lengthComputable?r.total:void 0,b=o-s,d=i(b),m=o<=f;s=o;const E={loaded:o,total:f,progress:f?o/f:void 0,bytes:b,rate:d||void 0,estimated:d&&f&&m?(f-o)/d:void 0,event:r,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(E)},n)},ut=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},ft=e=>(...t)=>u.asap(()=>e(...t)),Pn=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Ln=C.hasStandardBrowserEnv?{write(e,t,n,s,i,r){const o=[e+"="+encodeURIComponent(t)];u.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),u.isString(s)&&o.push("path="+s),u.isString(i)&&o.push("domain="+i),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dt(e,t,n){let s=!Fn(t);return e&&(s||n==!1)?Dn(e,t):t}const mt=e=>e instanceof P?{...e}:e;function J(e,t){t=t||{};const n={};function s(d,m,E,p){return u.isPlainObject(d)&&u.isPlainObject(m)?u.merge.call({caseless:p},d,m):u.isPlainObject(m)?u.merge({},m):u.isArray(m)?m.slice():m}function i(d,m,E,p){if(u.isUndefined(m)){if(!u.isUndefined(d))return s(void 0,d,E,p)}else return s(d,m,E,p)}function r(d,m){if(!u.isUndefined(m))return s(void 0,m)}function o(d,m){if(u.isUndefined(m)){if(!u.isUndefined(d))return s(void 0,d)}else return s(void 0,m)}function f(d,m,E){if(E in t)return s(d,m);if(E in e)return s(void 0,d)}const b={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(d,m,E)=>i(mt(d),mt(m),E,!0)};return u.forEach(Object.keys({...e,...t}),function(m){const E=b[m]||i,p=E(e[m],t[m],m);u.isUndefined(p)&&E!==f||(n[m]=p)}),n}const pt=e=>{const t=J({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:r,headers:o,auth:f}=t;t.headers=o=P.from(o),t.url=st(dt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&o.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let b;if(u.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((b=o.getContentType())!==!1){const[d,...m]=b?b.split(";").map(E=>E.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...m].join("; "))}}if(C.hasStandardBrowserEnv&&(s&&u.isFunction(s)&&(s=s(t)),s||s!==!1&&Pn(t.url))){const d=i&&r&&Ln.read(r);d&&o.set(i,d)}return t},Un=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=pt(e);let r=i.data;const o=P.from(i.headers).normalize();let{responseType:f,onUploadProgress:b,onDownloadProgress:d}=i,m,E,p,N,h;function S(){N&&N(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function R(){if(!x)return;const T=P.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),B={data:!f||f==="text"||f==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:T,config:e,request:x};ct(function(q){n(q),S()},function(q){s(q),S()},B),x=null}"onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(s(new v("Request aborted",v.ECONNABORTED,e,x)),x=null)},x.onerror=function(){s(new v("Network Error",v.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let D=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const B=i.transitional||rt;i.timeoutErrorMessage&&(D=i.timeoutErrorMessage),s(new v(D,B.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,x)),x=null},r===void 0&&o.setContentType(null),"setRequestHeader"in x&&u.forEach(o.toJSON(),function(D,B){x.setRequestHeader(B,D)}),u.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),f&&f!=="json"&&(x.responseType=i.responseType),d&&([p,h]=we(d,!0),x.addEventListener("progress",p)),b&&x.upload&&([E,N]=we(b),x.upload.addEventListener("progress",E),x.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(m=T=>{x&&(s(!T||T.type?new ee(null,e,x):T),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=An(i.url);if(O&&C.protocols.indexOf(O)===-1){s(new v("Unsupported protocol "+O+":",v.ERR_BAD_REQUEST,e));return}x.send(r||null)})},Hn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const r=function(d){if(!i){i=!0,f();const m=d instanceof Error?d:this.reason;s.abort(m instanceof v?m:new ee(m instanceof Error?m.message:m))}};let o=t&&setTimeout(()=>{o=null,r(new v(`timeout ${t} of ms exceeded`,v.ETIMEDOUT))},t);const f=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),e=null)};e.forEach(d=>d.addEventListener("abort",r));const{signal:b}=s;return b.unsubscribe=()=>u.asap(f),b}},jn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},qn=async function*(e,t){for await(const n of Vn(e))yield*jn(n,t)},Vn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},ht=(e,t,n,s)=>{const i=qn(e,t);let r=0,o,f=b=>{o||(o=!0,s&&s(b))};return new ReadableStream({async pull(b){try{const{done:d,value:m}=await i.next();if(d){f(),b.close();return}let E=m.byteLength;if(n){let p=r+=E;n(p)}b.enqueue(new Uint8Array(m))}catch(d){throw f(d),d}},cancel(b){return f(b),i.return()}},{highWaterMark:2})},be=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gt=be&&typeof ReadableStream=="function",zn=be&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wn=gt&&yt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wt=64*1024,Ie=gt&&yt(()=>u.isReadableStream(new Response("").body)),Ee={stream:Ie&&(e=>e.body)};be&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ee[t]&&(Ee[t]=u.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new v(`Response type '${t}' is not supported`,v.ERR_NOT_SUPPORT,s)})})})(new Response);const $n=async e=>{if(e==null)return 0;if(u.isBlob(e))return e.size;if(u.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(u.isArrayBufferView(e)||u.isArrayBuffer(e))return e.byteLength;if(u.isURLSearchParams(e)&&(e=e+""),u.isString(e))return(await zn(e)).byteLength},Zn=async(e,t)=>{const n=u.toFiniteNumber(e.getContentLength());return n??$n(t)},Pe={http:pn,xhr:Un,fetch:be&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:r,timeout:o,onDownloadProgress:f,onUploadProgress:b,responseType:d,headers:m,withCredentials:E="same-origin",fetchOptions:p}=pt(e);d=d?(d+"").toLowerCase():"text";let N=Hn([i,r&&r.toAbortSignal()],o),h;const S=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(b&&Wn&&n!=="get"&&n!=="head"&&(x=await Zn(m,s))!==0){let B=new Request(t,{method:"POST",body:s,duplex:"half"}),j;if(u.isFormData(s)&&(j=B.headers.get("content-type"))&&m.setContentType(j),B.body){const[q,z]=ut(x,we(ft(b)));s=ht(B.body,wt,q,z)}}u.isString(E)||(E=E?"include":"omit");const R="credentials"in Request.prototype;h=new Request(t,{...p,signal:N,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:R?E:void 0});let O=await fetch(h,p);const T=Ie&&(d==="stream"||d==="response");if(Ie&&(f||T&&S)){const B={};["status","statusText","headers"].forEach(te=>{B[te]=O[te]});const j=u.toFiniteNumber(O.headers.get("content-length")),[q,z]=f&&ut(j,we(ft(f),!0))||[];O=new Response(ht(O.body,wt,q,()=>{z&&z(),S&&S()}),B)}d=d||"text";let D=await Ee[u.findKey(Ee,d)||"text"](O,e);return!T&&S&&S(),await new Promise((B,j)=>{ct(B,j,{data:D,headers:P.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:h})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,e,h),{cause:R.cause||R}):v.from(R,R&&R.code,e,h)}})};u.forEach(Pe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bt=e=>`- ${e}`,Jn=e=>u.isFunction(e)||e===null||e===!1,Et={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let r=0;r<t;r++){n=e[r];let o;if(s=n,!Jn(n)&&(s=Pe[(o=String(n)).toLowerCase()],s===void 0))throw new v(`Unknown adapter '${o}'`);if(s)break;i[o||"#"+r]=s}if(!s){const r=Object.entries(i).map(([f,b])=>`adapter ${f} `+(b===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
1
+ (function($,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):($=typeof globalThis<"u"?globalThis:$||self,l($.GSCTimelineReports={},$.Vue))})(this,function($,l){"use strict";function qe(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mt}=Object.prototype,{getPrototypeOf:Te}=Object,{iterator:de,toStringTag:Ve}=Symbol,me=(e=>t=>{const n=Mt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),U=e=>(e=e.toLowerCase(),t=>me(t)===e),pe=e=>t=>typeof t===e,{isArray:Y}=Array,ne=pe("undefined");function se(e){return e!==null&&!ne(e)&&e.constructor!==null&&!ne(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=U("ArrayBuffer");function Nt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const Bt=pe("string"),I=pe("function"),We=pe("number"),ie=e=>e!==null&&typeof e=="object",At=e=>e===!0||e===!1,he=e=>{if(me(e)!=="object")return!1;const t=Te(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ve in e)&&!(de in e)},Ct=e=>{if(!ie(e)||se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},It=U("Date"),Pt=U("File"),Lt=U("Blob"),Ft=U("FileList"),Dt=e=>ie(e)&&I(e.pipe),Ut=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||I(e.append)&&((t=me(e))==="formdata"||t==="object"&&I(e.toString)&&e.toString()==="[object FormData]"))},Ht=U("URLSearchParams"),[jt,qt,Vt,zt]=["ReadableStream","Request","Response","Headers"].map(U),Wt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function re(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),Y(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{if(se(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let f;for(s=0;s<o;s++)f=r[s],t.call(null,e[f],f,e)}}function $e(e,t){if(se(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const Z=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ze=e=>!ne(e)&&e!==Z;function Oe(){const{caseless:e}=Ze(this)&&this||{},t={},n=(s,i)=>{const r=e&&$e(t,i)||i;he(t[r])&&he(s)?t[r]=Oe(t[r],s):he(s)?t[r]=Oe({},s):Y(s)?t[r]=s.slice():t[r]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&re(arguments[s],n);return t}const $t=(e,t,n,{allOwnKeys:s}={})=>(re(t,(i,r)=>{n&&I(i)?e[r]=qe(i,n):e[r]=i},{allOwnKeys:s}),e),Zt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jt=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xt=(e,t,n,s)=>{let i,r,o;const f={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!s||s(o,e,t))&&!f[o]&&(t[o]=e[o],f[o]=!0);e=n!==!1&&Te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Kt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Gt=e=>{if(!e)return null;if(Y(e))return e;let t=e.length;if(!We(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Te(Uint8Array)),Yt=(e,t)=>{const s=(e&&e[de]).call(e);let i;for(;(i=s.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},en=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},tn=U("HTMLFormElement"),nn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),Je=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sn=U("RegExp"),Xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};re(n,(i,r)=>{let o;(o=t(i,r,e))!==!1&&(s[r]=o||i)}),Object.defineProperties(e,s)},rn=e=>{Xe(e,(t,n)=>{if(I(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(I(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},on=(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return Y(e)?s(e):s(String(e).split(t)),n},an=()=>{},ln=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cn(e){return!!(e&&I(e.append)&&e[Ve]==="FormData"&&e[de])}const un=e=>{const t=new Array(10),n=(s,i)=>{if(ie(s)){if(t.indexOf(s)>=0)return;if(se(s))return s;if(!("toJSON"in s)){t[i]=s;const r=Y(s)?[]:{};return re(s,(o,f)=>{const b=n(o,i+1);!ne(b)&&(r[f]=b)}),t[i]=void 0,r}}return s};return n(e,0)},fn=U("AsyncFunction"),dn=e=>e&&(ie(e)||I(e))&&I(e.then)&&I(e.catch),Ke=((e,t)=>e?setImmediate:t?((n,s)=>(Z.addEventListener("message",({source:i,data:r})=>{i===Z&&r===n&&s.length&&s.shift()()},!1),i=>{s.push(i),Z.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",I(Z.postMessage)),mn=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||Ke,c={isArray:Y,isArrayBuffer:ze,isBuffer:se,isFormData:Ut,isArrayBufferView:Nt,isString:Bt,isNumber:We,isBoolean:At,isObject:ie,isPlainObject:he,isEmptyObject:Ct,isReadableStream:jt,isRequest:qt,isResponse:Vt,isHeaders:zt,isUndefined:ne,isDate:It,isFile:Pt,isBlob:Lt,isRegExp:sn,isFunction:I,isStream:Dt,isURLSearchParams:Ht,isTypedArray:Qt,isFileList:Ft,forEach:re,merge:Oe,extend:$t,trim:Wt,stripBOM:Zt,inherits:Jt,toFlatObject:Xt,kindOf:me,kindOfTest:U,endsWith:Kt,toArray:Gt,forEachEntry:Yt,matchAll:en,isHTMLForm:tn,hasOwnProperty:Je,hasOwnProp:Je,reduceDescriptors:Xe,freezeMethods:rn,toObjectSet:on,toCamelCase:nn,noop:an,toFiniteNumber:ln,findKey:$e,global:Z,isContextDefined:Ze,isSpecCompliantForm:cn,toJSONObject:un,isAsyncFn:fn,isThenable:dn,setImmediate:Ke,asap:mn,isIterable:e=>e!=null&&I(e[de])};function _(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}c.inherits(_,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.status}}});const Ge=_.prototype,Qe={};["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=>{Qe[e]={value:e}}),Object.defineProperties(_,Qe),Object.defineProperty(Ge,"isAxiosError",{value:!0}),_.from=(e,t,n,s,i,r)=>{const o=Object.create(Ge);return c.toFlatObject(e,o,function(b){return b!==Error.prototype},f=>f!=="isAxiosError"),_.call(o,e.message,t,n,s,i),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};const pn=null;function ke(e){return c.isPlainObject(e)||c.isArray(e)}function Ye(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function et(e,t,n){return e?e.concat(t).map(function(i,r){return i=Ye(i),!n&&r?"["+i+"]":i}).join(n?".":""):t}function hn(e){return c.isArray(e)&&!e.some(ke)}const gn=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function ge(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,x){return!c.isUndefined(x[S])});const s=n.metaTokens,i=n.visitor||m,r=n.dots,o=n.indexes,b=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(i))throw new TypeError("visitor must be a function");function d(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(c.isBoolean(h))return h.toString();if(!b&&c.isBlob(h))throw new _("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?b&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function m(h,S,x){let R=h;if(h&&!x&&typeof h=="object"){if(c.endsWith(S,"{}"))S=s?S:S.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&hn(h)||(c.isFileList(h)||c.endsWith(S,"[]"))&&(R=c.toArray(h)))return S=Ye(S),R.forEach(function(T,D){!(c.isUndefined(T)||T===null)&&t.append(o===!0?et([S],D,r):o===null?S:S+"[]",d(T))}),!1}return ke(h)?!0:(t.append(et(x,S,r),d(h)),!1)}const E=[],p=Object.assign(gn,{defaultVisitor:m,convertValue:d,isVisitable:ke});function N(h,S){if(!c.isUndefined(h)){if(E.indexOf(h)!==-1)throw Error("Circular reference detected in "+S.join("."));E.push(h),c.forEach(h,function(R,O){(!(c.isUndefined(R)||R===null)&&i.call(t,R,c.isString(O)?O.trim():O,S,p))===!0&&N(R,S?S.concat(O):[O])}),E.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return N(e),t}function tt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Me(e,t){this._pairs=[],e&&ge(e,this,t)}const nt=Me.prototype;nt.append=function(t,n){this._pairs.push([t,n])},nt.toString=function(t){const n=t?function(s){return t.call(this,s,tt)}:tt;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function yn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function st(e,t,n){if(!t)return e;const s=n&&n.encode||yn;c.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let r;if(i?r=i(t,n):r=c.isURLSearchParams(t)?t.toString():new Me(t,n).toString(s),r){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class it{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(s){s!==null&&t(s)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Me,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ne=typeof window<"u"&&typeof document<"u",Be=typeof navigator=="object"&&navigator||void 0,bn=Ne&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),En=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xn=Ne&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ne,hasStandardBrowserEnv:bn,hasStandardBrowserWebWorkerEnv:En,navigator:Be,origin:xn},Symbol.toStringTag,{value:"Module"})),...wn};function vn(e,t){return ge(e,new C.classes.URLSearchParams,{visitor:function(n,s,i,r){return C.isNode&&c.isBuffer(n)?(this.append(s,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}function _n(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Sn(e){const t={},n=Object.keys(e);let s;const i=n.length;let r;for(s=0;s<i;s++)r=n[s],t[r]=e[r];return t}function ot(e){function t(n,s,i,r){let o=n[r++];if(o==="__proto__")return!0;const f=Number.isFinite(+o),b=r>=n.length;return o=!o&&c.isArray(i)?i.length:o,b?(c.hasOwnProp(i,o)?i[o]=[i[o],s]:i[o]=s,!f):((!i[o]||!c.isObject(i[o]))&&(i[o]=[]),t(n,s,i[o],r)&&c.isArray(i[o])&&(i[o]=Sn(i[o])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,i)=>{t(_n(s),i,n,0)}),n}return null}function Rn(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const oe={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,r=c.isObject(t);if(r&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return i?JSON.stringify(ot(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(r){if(s.indexOf("application/x-www-form-urlencoded")>-1)return vn(t,this.formSerializer).toString();if((f=c.isFileList(t))||s.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return ge(f?{"files[]":t}:t,b&&new b,this.formSerializer)}}return r||i?(n.setContentType("application/json",!1),Rn(t)):t}],transformResponse:[function(t){const n=this.transitional||oe.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.isString(t)&&(s&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(f){if(o)throw f.name==="SyntaxError"?_.from(f,_.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{oe.headers[e]={}});const Tn=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"]),On=e=>{const t={};let n,s,i;return e&&e.split(`
2
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),s=o.substring(i+1).trim(),!(!n||t[n]&&Tn[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},at=Symbol("internals");function ae(e){return e&&String(e).trim().toLowerCase()}function ye(e){return e===!1||e==null?e:c.isArray(e)?e.map(ye):String(e)}function kn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const Mn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,n,s,i){if(c.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!c.isString(t)){if(c.isString(s))return t.indexOf(s)!==-1;if(c.isRegExp(s))return s.test(t)}}function Nn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Bn(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,r,o){return this[s].call(this,t,i,r,o)},configurable:!0})})}let P=class{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function r(f,b,d){const m=ae(b);if(!m)throw new Error("header name must be a non-empty string");const E=c.findKey(i,m);(!E||i[E]===void 0||d===!0||d===void 0&&i[E]!==!1)&&(i[E||b]=ye(f))}const o=(f,b)=>c.forEach(f,(d,m)=>r(d,m,b));if(c.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(c.isString(t)&&(t=t.trim())&&!Mn(t))o(On(t),n);else if(c.isObject(t)&&c.isIterable(t)){let f={},b,d;for(const m of t){if(!c.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[d=m[0]]=(b=f[d])?c.isArray(b)?[...b,m[1]]:[b,m[1]]:m[1]}o(f,n)}else t!=null&&r(n,t,s);return this}get(t,n){if(t=ae(t),t){const s=c.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return kn(i);if(c.isFunction(n))return n.call(this,i,s);if(c.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ae(t),t){const s=c.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ae(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function r(o){if(o=ae(o),o){const f=c.findKey(s,o);f&&(!n||Ae(s,s[f],f,n))&&(delete s[f],i=!0)}}return c.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const r=n[s];(!t||Ae(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const n=this,s={};return c.forEach(this,(i,r)=>{const o=c.findKey(s,r);if(o){n[o]=ye(i),delete n[r];return}const f=t?Nn(r):String(r).trim();f!==r&&delete n[r],n[f]=ye(i),s[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&c.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[at]=this[at]={accessors:{}}).accessors,i=this.prototype;function r(o){const f=ae(o);s[f]||(Bn(i,o),s[f]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}};P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(P.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),c.freezeMethods(P);function Ce(e,t){const n=this||oe,s=t||n,i=P.from(s.headers);let r=s.data;return c.forEach(e,function(f){r=f.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function lt(e){return!!(e&&e.__CANCEL__)}function ee(e,t,n){_.call(this,e??"canceled",_.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(ee,_,{__CANCEL__:!0});function ct(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new _("Request failed with status code "+n.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function An(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cn(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(b){const d=Date.now(),m=s[r];o||(o=d),n[i]=b,s[i]=d;let E=r,p=0;for(;E!==i;)p+=n[E++],E=E%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const N=m&&d-m;return N?Math.round(p*1e3/N):void 0}}function In(e,t){let n=0,s=1e3/t,i,r;const o=(d,m=Date.now())=>{n=m,i=null,r&&(clearTimeout(r),r=null),e(...d)};return[(...d)=>{const m=Date.now(),E=m-n;E>=s?o(d,m):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},s-E)))},()=>i&&o(i)]}const we=(e,t,n=3)=>{let s=0;const i=Cn(50,250);return In(r=>{const o=r.loaded,f=r.lengthComputable?r.total:void 0,b=o-s,d=i(b),m=o<=f;s=o;const E={loaded:o,total:f,progress:f?o/f:void 0,bytes:b,rate:d||void 0,estimated:d&&f&&m?(f-o)/d:void 0,event:r,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(E)},n)},ut=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},ft=e=>(...t)=>c.asap(()=>e(...t)),Pn=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Ln=C.hasStandardBrowserEnv?{write(e,t,n,s,i,r){const o=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),c.isString(s)&&o.push("path="+s),c.isString(i)&&o.push("domain="+i),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dt(e,t,n){let s=!Fn(t);return e&&(s||n==!1)?Dn(e,t):t}const mt=e=>e instanceof P?{...e}:e;function J(e,t){t=t||{};const n={};function s(d,m,E,p){return c.isPlainObject(d)&&c.isPlainObject(m)?c.merge.call({caseless:p},d,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function i(d,m,E,p){if(c.isUndefined(m)){if(!c.isUndefined(d))return s(void 0,d,E,p)}else return s(d,m,E,p)}function r(d,m){if(!c.isUndefined(m))return s(void 0,m)}function o(d,m){if(c.isUndefined(m)){if(!c.isUndefined(d))return s(void 0,d)}else return s(void 0,m)}function f(d,m,E){if(E in t)return s(d,m);if(E in e)return s(void 0,d)}const b={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(d,m,E)=>i(mt(d),mt(m),E,!0)};return c.forEach(Object.keys({...e,...t}),function(m){const E=b[m]||i,p=E(e[m],t[m],m);c.isUndefined(p)&&E!==f||(n[m]=p)}),n}const pt=e=>{const t=J({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:r,headers:o,auth:f}=t;t.headers=o=P.from(o),t.url=st(dt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&o.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let b;if(c.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((b=o.getContentType())!==!1){const[d,...m]=b?b.split(";").map(E=>E.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...m].join("; "))}}if(C.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&Pn(t.url))){const d=i&&r&&Ln.read(r);d&&o.set(i,d)}return t},Un=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=pt(e);let r=i.data;const o=P.from(i.headers).normalize();let{responseType:f,onUploadProgress:b,onDownloadProgress:d}=i,m,E,p,N,h;function S(){N&&N(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function R(){if(!x)return;const T=P.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),B={data:!f||f==="text"||f==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:T,config:e,request:x};ct(function(q){n(q),S()},function(q){s(q),S()},B),x=null}"onloadend"in x?x.onloadend=R:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(R)},x.onabort=function(){x&&(s(new _("Request aborted",_.ECONNABORTED,e,x)),x=null)},x.onerror=function(){s(new _("Network Error",_.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let D=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const B=i.transitional||rt;i.timeoutErrorMessage&&(D=i.timeoutErrorMessage),s(new _(D,B.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,x)),x=null},r===void 0&&o.setContentType(null),"setRequestHeader"in x&&c.forEach(o.toJSON(),function(D,B){x.setRequestHeader(B,D)}),c.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),f&&f!=="json"&&(x.responseType=i.responseType),d&&([p,h]=we(d,!0),x.addEventListener("progress",p)),b&&x.upload&&([E,N]=we(b),x.upload.addEventListener("progress",E),x.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(m=T=>{x&&(s(!T||T.type?new ee(null,e,x):T),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=An(i.url);if(O&&C.protocols.indexOf(O)===-1){s(new _("Unsupported protocol "+O+":",_.ERR_BAD_REQUEST,e));return}x.send(r||null)})},Hn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const r=function(d){if(!i){i=!0,f();const m=d instanceof Error?d:this.reason;s.abort(m instanceof _?m:new ee(m instanceof Error?m.message:m))}};let o=t&&setTimeout(()=>{o=null,r(new _(`timeout ${t} of ms exceeded`,_.ETIMEDOUT))},t);const f=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),e=null)};e.forEach(d=>d.addEventListener("abort",r));const{signal:b}=s;return b.unsubscribe=()=>c.asap(f),b}},jn=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},qn=async function*(e,t){for await(const n of Vn(e))yield*jn(n,t)},Vn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},ht=(e,t,n,s)=>{const i=qn(e,t);let r=0,o,f=b=>{o||(o=!0,s&&s(b))};return new ReadableStream({async pull(b){try{const{done:d,value:m}=await i.next();if(d){f(),b.close();return}let E=m.byteLength;if(n){let p=r+=E;n(p)}b.enqueue(new Uint8Array(m))}catch(d){throw f(d),d}},cancel(b){return f(b),i.return()}},{highWaterMark:2})},be=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",gt=be&&typeof ReadableStream=="function",zn=be&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wn=gt&&yt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wt=64*1024,Ie=gt&&yt(()=>c.isReadableStream(new Response("").body)),Ee={stream:Ie&&(e=>e.body)};be&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ee[t]&&(Ee[t]=c.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new _(`Response type '${t}' is not supported`,_.ERR_NOT_SUPPORT,s)})})})(new Response);const $n=async e=>{if(e==null)return 0;if(c.isBlob(e))return e.size;if(c.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(c.isArrayBufferView(e)||c.isArrayBuffer(e))return e.byteLength;if(c.isURLSearchParams(e)&&(e=e+""),c.isString(e))return(await zn(e)).byteLength},Zn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??$n(t)},Pe={http:pn,xhr:Un,fetch:be&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:r,timeout:o,onDownloadProgress:f,onUploadProgress:b,responseType:d,headers:m,withCredentials:E="same-origin",fetchOptions:p}=pt(e);d=d?(d+"").toLowerCase():"text";let N=Hn([i,r&&r.toAbortSignal()],o),h;const S=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let x;try{if(b&&Wn&&n!=="get"&&n!=="head"&&(x=await Zn(m,s))!==0){let B=new Request(t,{method:"POST",body:s,duplex:"half"}),j;if(c.isFormData(s)&&(j=B.headers.get("content-type"))&&m.setContentType(j),B.body){const[q,z]=ut(x,we(ft(b)));s=ht(B.body,wt,q,z)}}c.isString(E)||(E=E?"include":"omit");const R="credentials"in Request.prototype;h=new Request(t,{...p,signal:N,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:R?E:void 0});let O=await fetch(h,p);const T=Ie&&(d==="stream"||d==="response");if(Ie&&(f||T&&S)){const B={};["status","statusText","headers"].forEach(te=>{B[te]=O[te]});const j=c.toFiniteNumber(O.headers.get("content-length")),[q,z]=f&&ut(j,we(ft(f),!0))||[];O=new Response(ht(O.body,wt,q,()=>{z&&z(),S&&S()}),B)}d=d||"text";let D=await Ee[c.findKey(Ee,d)||"text"](O,e);return!T&&S&&S(),await new Promise((B,j)=>{ct(B,j,{data:D,headers:P.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:h})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,e,h),{cause:R.cause||R}):_.from(R,R&&R.code,e,h)}})};c.forEach(Pe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bt=e=>`- ${e}`,Jn=e=>c.isFunction(e)||e===null||e===!1,Et={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let r=0;r<t;r++){n=e[r];let o;if(s=n,!Jn(n)&&(s=Pe[(o=String(n)).toLowerCase()],s===void 0))throw new _(`Unknown adapter '${o}'`);if(s)break;i[o||"#"+r]=s}if(!s){const r=Object.entries(i).map(([f,b])=>`adapter ${f} `+(b===!1?"is not supported by the environment":"is not available in the build"));let o=t?r.length>1?`since :
4
4
  `+r.map(bt).join(`
5
- `):" "+bt(r[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Pe};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function xt(e){return Le(e),e.headers=P.from(e.headers),e.data=Ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Et.getAdapter(e.adapter||oe.adapter)(e).then(function(s){return Le(e),s.data=Ce.call(e,e.transformResponse,s),s.headers=P.from(s.headers),s},function(s){return lt(s)||(Le(e),s&&s.response&&(s.response.data=Ce.call(e,e.transformResponse,s.response),s.response.headers=P.from(s.response.headers))),Promise.reject(s)})}const _t="1.11.0",xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xe[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const vt={};xe.transitional=function(t,n,s){function i(r,o){return"[Axios v"+_t+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,f)=>{if(t===!1)throw new v(i(o," has been removed"+(n?" in "+n:"")),v.ERR_DEPRECATED);return n&&!vt[o]&&(vt[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,f):!0}},xe.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Xn(e,t,n){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const f=e[r],b=f===void 0||o(f,r,e);if(b!==!0)throw new v("option "+r+" must be "+b,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+r,v.ERR_BAD_OPTION)}}const _e={assertOptions:Xn,validators:xe},H=_e.validators;let X=class{constructor(t){this.defaults=t||{},this.interceptors={request:new it,response:new it}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+=`
6
- `+r):s.stack=r}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:r}=n;s!==void 0&&_e.assertOptions(s,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),i!=null&&(u.isFunction(i)?n.paramsSerializer={serialize:i}:_e.assertOptions(i,{encode:H.function,serialize:H.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),_e.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&u.merge(r.common,r[n.method]);r&&u.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=P.concat(o,r);const f=[];let b=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(b=b&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let m,E=0,p;if(!b){const h=[xt.bind(this),void 0];for(h.unshift(...f),h.push(...d),p=h.length,m=Promise.resolve(n);E<p;)m=m.then(h[E++],h[E++]);return m}p=f.length;let N=n;for(E=0;E<p;){const h=f[E++],S=f[E++];try{N=h(N)}catch(x){S.call(this,x);break}}try{m=xt.call(this,N)}catch(h){return Promise.reject(h)}for(E=0,p=d.length;E<p;)m=m.then(d[E++],d[E++]);return m}getUri(t){t=J(this.defaults,t);const n=dt(t.baseURL,t.url,t.allowAbsoluteUrls);return st(n,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){X.prototype[t]=function(n,s){return this.request(J(s||{},{method:t,url:n,data:(s||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function n(s){return function(r,o,f){return this.request(J(f||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}X.prototype[t]=n(),X.prototype[t+"Form"]=n(!0)});let Kn=class kt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(f=>{s.subscribe(f),r=f}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},t(function(r,o,f){s.reason||(s.reason=new ee(r,o,f),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kt(function(i){t=i}),cancel:t}}};function Gn(e){return function(n){return e.apply(null,n)}}function Qn(e){return u.isObject(e)&&e.isAxiosError===!0}const Fe={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(Fe).forEach(([e,t])=>{Fe[t]=e});function St(e){const t=new X(e),n=qe(X.prototype.request,t);return u.extend(n,X.prototype,t,{allOwnKeys:!0}),u.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return St(J(e,i))},n}const M=St(oe);M.Axios=X,M.CanceledError=ee,M.CancelToken=Kn,M.isCancel=lt,M.VERSION=_t,M.toFormData=ge,M.AxiosError=v,M.Cancel=M.CanceledError,M.all=function(t){return Promise.all(t)},M.spread=Gn,M.isAxiosError=Qn,M.mergeConfig=J,M.AxiosHeaders=P,M.formToJSON=e=>ot(u.isHTMLForm(e)?new FormData(e):e),M.getAdapter=Et.getAdapter,M.HttpStatusCode=Fe,M.default=M;const{Axios:Ps,AxiosError:Ls,CanceledError:Fs,isCancel:Ds,CancelToken:Us,VERSION:Hs,all:js,Cancel:qs,isAxiosError:Vs,spread:zs,toFormData:Ws,AxiosHeaders:$s,HttpStatusCode:Zs,formToJSON:Js,getAdapter:Xs,mergeConfig:Ks}=M,Yn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},es={class:"timeline-container"},ts={class:"team-circle team-circle-top"},ns=["src"],ss={class:"team-circle team-circle-bottom"},is=["src"],rs={class:"timeline-line"},os={key:0,class:"event-icon event-icon-top"},as={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ls={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cs={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},us={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs={class:"minute-ball minute-ball-center"},ds={key:1,class:"event-icon event-icon-bottom"},ms={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ps={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gs={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ys={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"-5.5px"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},ws={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"5.5px",transform:"rotate(180deg)"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},bs={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"-5.5px"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},Es={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"5.5px",transform:"rotate(180deg)"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},xs=Yn({__name:"gsc-timeline",props:{timelineWidth:{type:Number,required:!0,default:1010},gameId:{type:Number,required:!0},homeTeam:{type:Number,required:!0},isDefault:{type:Boolean,required:!1},awayTeam:{type:Number,required:!0},goals:{type:Boolean,default:!0},yellowCards:{type:Boolean,default:!0},redCards:{type:Boolean,default:!0},substitutions:{type:Boolean,default:!0},token:{type:String,required:!0}},emits:["range-change"],setup(e,{emit:t}){const n=l.ref(0),s=l.ref(96),i=l.ref("1"),r=l.ref("2"),o=l.ref(0),f=l.ref(45),b=l.ref(96),d=l.ref(0),m=l.ref(0),E=l.ref("0px"),p=l.ref([]),N=t,h=e,S=M.create({headers:{Authorization:`${h.token}`}}),x=l.ref([]);let R=null;const O=l.ref(null),T=l.ref(!1),D=l.ref(0),B=l.ref(0),j=l.ref(!1),q=l.ref(!1);let z=!1,te=0;const De=l.ref(0),V=l.ref(!1),ve=l.ref(!1),K=l.ref(96),Ue=l.ref(null),vs=[{minute:5,match_lapse:1,event:[{minute:5,minuteLabel:"5",icon:"icon-yellow-card",team:"visitante",match_lapse:1}]},{minute:12,match_lapse:1,event:[{minute:12,minuteLabel:"12",icon:"icon-goal",team:"local",match_lapse:1}]},{minute:18,match_lapse:1,event:[{minute:18,minuteLabel:"18",icon:"icon-yellow-card",team:"local",match_lapse:1}]},{minute:25,match_lapse:1,event:[{minute:25,minuteLabel:"25",icon:"icon-red-card",team:"visitante",match_lapse:1}]},{minute:32,match_lapse:1,event:[{minute:32,minuteLabel:"32",icon:"icon-goal",team:"visitante",match_lapse:1}]},{minute:38,match_lapse:1,event:[{minute:38,minuteLabel:"38",icon:"icon-change",team:"local",match_lapse:1}]},{minute:42,match_lapse:1,event:[{minute:42,minuteLabel:"42",icon:"icon-yellow-card",team:"visitante",match_lapse:1}]},{minute:45,match_lapse:1,event:[{minute:45,minuteLabel:"MT",icon:"icon-change",team:"local",match_lapse:1}]},{minute:48,match_lapse:2,event:[{minute:48,minuteLabel:"48",icon:"icon-yellow-card",team:"local",match_lapse:2}]},{minute:55,match_lapse:2,event:[{minute:55,minuteLabel:"55",icon:"icon-goal",team:"visitante",match_lapse:2}]},{minute:62,match_lapse:2,event:[{minute:62,minuteLabel:"62",icon:"icon-change",team:"visitante",match_lapse:2}]},{minute:68,match_lapse:2,event:[{minute:68,minuteLabel:"68",icon:"icon-yellow-card",team:"visitante",match_lapse:2}]},{minute:75,match_lapse:2,event:[{minute:75,minuteLabel:"75",icon:"icon-goal",team:"local",match_lapse:2}]},{minute:82,match_lapse:2,event:[{minute:82,minuteLabel:"82",icon:"icon-red-card",team:"local",match_lapse:2}]},{minute:87,match_lapse:2,event:[{minute:87,minuteLabel:"87",icon:"icon-yellow-card",team:"visitante",match_lapse:2}]},{minute:90,match_lapse:2,event:[{minute:90,minuteLabel:"90",icon:"icon-goal",team:"local",match_lapse:2}]}];function le(){if(Ue.value){const c=Ue.value,a=c.scrollWidth-c.clientWidth,g=c.scrollLeft,w=c.scrollWidth>c.clientWidth;j.value=w&&g>0,q.value=w&&Math.ceil(g)<Math.floor(a)}}function Rt(){if(O.value){const c=O.value.parentElement.clientWidth;D.value=c,B.value===0&&(B.value=c-90),l.nextTick(()=>{le()})}}function Ss(){if(x.value.length>0){const c=Math.max(...x.value.map(a=>a.minute));K.value=c,s.value=K.value}}async function Rs(){if(h.isDefault){const c=vs.map(a=>{if(!a.event)return a;const g=a.event.filter(w=>!(w.icon==="icon-goal"&&!h.goals||w.icon==="icon-yellow-card"&&!h.yellowCards||w.icon==="icon-red-card"&&!h.redCards||w.icon==="icon-change"&&!h.substitutions));return{...a,event:g.length>0?g:null}}).filter(a=>a.event!==null);p.value=c,x.value=c.map(a=>a.event),c.length>0&&(n.value=c[0].minute,s.value=c[c.length-1].minute,i.value=c[0].match_lapse.toString(),r.value=c[c.length-1].match_lapse.toString(),d.value=0,m.value=c.length-1,b.value=c[c.length-1].minute,K.value=c[c.length-1].minute,ue());return}try{console.log("///////////////////////////////////////////////// Componente de timeline: ",h.token);const c=await S.get(`https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/${h.gameId}`);if(c.data&&c.data.plays){const a=c.data.plays.find(w=>{var y;return w.event_type_id===6&&((y=w.comments)==null?void 0:y.includes("El árbitro silba el Final del Primer Tiempo"))});a&&(o.value=a.minute);const g=Math.max(...c.data.plays.map(w=>w.minute));b.value=g,K.value=g,s.value=K.value,p.value=[];for(let w=0;w<=o.value;w++){const y=c.data.plays.filter(_=>{var k;return _.minute===w&&_.match_lapse===1&&Ot(_)&&(_.category_id===9||_.category_id===3||_.event_type_id===1||_.event_type_id===2||_.category_id===10||_.category_id===13||_.event_type_id===6&&((k=_.comments)==null?void 0:k.includes("El árbitro silba el Final del Primer Tiempo")))}),A=[];y.forEach(_=>{A.push({minute:_.minute,minuteLabel:_.event_type_id===6?"MT":_.minute.toString(),icon:Tt(_.event_type_id===1||_.event_type_id===3?_.event_type_id:_.category_id,_),team:_.team_id===h.homeTeam?_.category_id===13?"visitante":"local":_.category_id===13?"local":"visitante",match_lapse:_.match_lapse})}),p.value.push({minute:w,match_lapse:1,event:A.length>0?A:null})}for(let w=f.value;w<=b.value;w++){const y=c.data.plays.filter(_=>_.minute===w&&_.match_lapse===2&&Ot(_)&&(_.category_id===9||_.category_id===3||_.event_type_id===1||_.event_type_id===2||_.category_id===10||_.category_id===13)),A=[];y.forEach(_=>{A.push({minute:_.minute,minuteLabel:_.event_type_id===6?"MT":_.minute.toString(),icon:Tt(_.event_type_id===1||_.event_type_id===3?_.event_type_id:_.category_id,_),team:_.team_id===h.homeTeam?_.category_id===13?"visitante":"local":_.category_id===13?"local":"visitante",match_lapse:_.match_lapse})}),p.value.push({minute:w,match_lapse:2,event:A.length>0?A:null})}if(x.value=p.value.filter(w=>w.event!==null).map(w=>w.event),p.value.length>0){const w=p.value.filter(k=>k.match_lapse===1);if(w.length>0){const k=w[0];n.value=k.minute,i.value="1",d.value=p.value.findIndex(L=>L.minute===k.minute&&L.match_lapse===1)}const y=p.value.filter(k=>k.match_lapse===2);if(y.length>0){const k=y[y.length-1];s.value=k.minute,r.value="2",m.value=p.value.findIndex(L=>L.minute===k.minute&&L.match_lapse===2)}const A=p.value.findIndex(k=>k.minute===n.value&&k.match_lapse===parseInt(i.value)),_=p.value.findIndex(k=>k.minute===s.value&&k.match_lapse===parseInt(r.value));if(A!==-1&&_!==-1&&A<_){const k=p.value.length,L=A/(k-1)*(h.timelineWidth-40),fe=_/(k-1)*(h.timelineWidth-40);E.value=`${fe-L}px`}}}}catch(c){console.error("Error al obtener los datos del partido:",c)}}function Tt(c,a){return{1:"icon-goal",8:"icon-yellow-card",9:"icon-red-card",3:"icon-change"}[c]||""}function Ot(c){var a,g;return c.event_type_id===1||c.category_id===3||c.category_id===13?!!h.goals:c.event_type_id===2||c.category_id===9&&!((a=c.comments)!=null&&a.includes("roja"))?!!h.yellowCards:c.category_id===9&&((g=c.comments)!=null&&g.includes("roja"))?!!h.redCards:c.category_id===10?!!h.substitutions:!0}l.onMounted(()=>{Ss(),Rt(),Rs(),l.nextTick(()=>{le()}),window.addEventListener("resize",()=>{Rt()})}),l.onBeforeUnmount(()=>{window.removeEventListener("resize",le)}),l.watch(x,()=>{l.nextTick(()=>{le()})},{deep:!0}),l.watch([n,s,i,r],()=>{He()},{immediate:!0}),l.watch([i],()=>{if(!(ve.value||T.value)){if(parseInt(i.value)>parseInt(r.value)&&(r.value=i.value,V.value=!0),V.value){if(i.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0],g=c[c.length-1];(n.value<a.minute||n.value>g.minute)&&(n.value=a.minute);const w=p.value.findIndex(y=>y.minute===n.value&&y.match_lapse===1);w!==-1&&(d.value=w)}}else if(i.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0],g=c[c.length-1];(n.value<a.minute||n.value>g.minute)&&(n.value=a.minute);const w=p.value.findIndex(y=>y.minute===n.value&&y.match_lapse===2);w!==-1&&(d.value=w)}}}else if(i.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0];n.value=a.minute;const g=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===1);g!==-1&&(d.value=g)}}else if(i.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0];n.value=a.minute;const g=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===2);g!==-1&&(d.value=g)}}V.value=!1,ue()}},{immediate:!0}),l.watch([r],()=>{if(!(ve.value||T.value)){if(parseInt(r.value)<parseInt(i.value)&&(i.value=r.value,V.value=!0),V.value){if(r.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0],g=c[c.length-1];(s.value<a.minute||s.value>g.minute)&&(s.value=g.minute);const w=p.value.findIndex(y=>y.minute===s.value&&y.match_lapse===1);w!==-1&&(m.value=w)}}else if(r.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0],g=c[c.length-1];(s.value<a.minute||s.value>g.minute)&&(s.value=g.minute);const w=p.value.findIndex(y=>y.minute===s.value&&y.match_lapse===2);w!==-1&&(m.value=w)}}}else if(r.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[c.length-1];s.value=a.minute;const g=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===1);g!==-1&&(m.value=g)}}else if(r.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[c.length-1];s.value=a.minute;const g=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===2);g!==-1&&(m.value=g)}}V.value=!1,ue()}},{immediate:!0}),l.watch([n],()=>{if(!(ve.value||T.value)){if(i.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0],g=c[c.length-1];n.value<a.minute?n.value=a.minute:n.value>g.minute&&(n.value=g.minute);const w=p.value.findIndex(y=>y.minute===n.value&&y.match_lapse===1);w!==-1&&(d.value=w)}}else if(i.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0],g=c[c.length-1];n.value<a.minute?n.value=a.minute:n.value>g.minute&&(n.value=g.minute);const w=p.value.findIndex(y=>y.minute===n.value&&y.match_lapse===2);w!==-1&&(d.value=w)}}if(i.value===r.value&&n.value>=s.value){if(r.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[c.length-1];s.value=Math.min(a.minute,n.value+1)}}else if(r.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[c.length-1];s.value=Math.min(a.minute,n.value+1)}}}ue()}}),l.watch([s],()=>{if(!(ve.value||T.value)){if(r.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0],g=c[c.length-1];s.value<a.minute?s.value=a.minute:s.value>g.minute&&(s.value=g.minute);const w=p.value.findIndex(y=>y.minute===s.value&&y.match_lapse===1);w!==-1&&(m.value=w)}}else if(r.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0],g=c[c.length-1];s.value<a.minute?s.value=a.minute:s.value>g.minute&&(s.value=g.minute);const w=p.value.findIndex(y=>y.minute===s.value&&y.match_lapse===2);w!==-1&&(m.value=w)}}if(i.value===r.value&&s.value<=n.value){if(i.value==="1"){const c=p.value.filter(a=>a.match_lapse===1);if(c.length>0){const a=c[0];n.value=Math.max(a.minute,s.value-1)}}else if(i.value==="2"){const c=p.value.filter(a=>a.match_lapse===2);if(c.length>0){const a=c[0];n.value=Math.max(a.minute,s.value-1)}}}ue()}});function ce(c){const a=p.value.length;return c<0||a===0||a===1?"0px":`${c/(a-1)*(h.timelineWidth-40)}px`}function Ts(){const c=p.value.length;if(c===0||c===1)return"0px";const a=(c-1)/(c-1)*(h.timelineWidth-40);return`${parseInt(a)+10}px`}function W(c,a){a.preventDefault(),R=c,te=a.type.includes("touch")?a.touches[0].clientX:a.clientX,z=!1,c==="left"?De.value=d.value:c==="right"&&(De.value=m.value),document.addEventListener("mousemove",Se),document.addEventListener("touchmove",Se,{passive:!1}),document.addEventListener("mouseup",Re),document.addEventListener("touchend",Re),T.value=!0}function Se(c){if(!R)return;c.preventDefault();const a=c.type.includes("touch")?c.touches[0].clientX:c.clientX;if(!z){if(Math.abs(a-te)<5)return;z=!0}const g=Os(),w=p.value.length,y=a-te,A=g/(w-1),_=Math.round(y/A);let k=De.value+_;const L=Math.max(0,Math.min(k,w-1));if(R==="left"){const F=p.value.findIndex(Q=>Q.minute===s.value&&Q.match_lapse===parseInt(r.value));if(L>=F-1)return;const G=p.value[L];T.value=!0,d.value=L,n.value=G.minute,i.value=G.match_lapse.toString(),V.value=!0}else if(R==="right"){const F=p.value.findIndex(Q=>Q.minute===n.value&&Q.match_lapse===parseInt(i.value));if(L<=F+1)return;const G=p.value[L];T.value=!0,m.value=L,s.value=G.minute,r.value=G.match_lapse.toString(),V.value=!0}const fe=p.value.findIndex(F=>F.minute===n.value&&F.match_lapse===parseInt(i.value)),je=p.value.findIndex(F=>F.minute===s.value&&F.match_lapse===parseInt(r.value));if(fe!==-1&&je!==-1&&fe<je){const F=p.value.length,G=fe/(F-1)*(h.timelineWidth-40),Q=je/(F-1)*(h.timelineWidth-40);E.value=`${Q-G}px`}l.nextTick(()=>{He()})}function Re(){R&&(n.value<0&&(n.value=0),s.value>K.value&&(s.value=K.value),l.nextTick(()=>{T.value=!1,V.value=!1}),He()),R=null,document.removeEventListener("mousemove",Se),document.removeEventListener("touchmove",Se),document.removeEventListener("mouseup",Re),document.removeEventListener("touchend",Re)}function Os(){return O.value?O.value.getBoundingClientRect().width:600}function He(){const c=n.value*60,a=s.value*60;N("range-change",{start:{minutes:n.value,seconds:c,time:i.value,match_lapse:parseInt(i.value)},end:{minutes:s.value,seconds:a,time:r.value,match_lapse:parseInt(r.value)}})}function ue(){const c=p.value.findIndex(g=>g.minute===n.value&&g.match_lapse===parseInt(i.value)),a=p.value.findIndex(g=>g.minute===s.value&&g.match_lapse===parseInt(r.value));if(c!==-1&&a!==-1&&c<a){const g=p.value.length,w=c/(g-1)*(h.timelineWidth-40),y=a/(g-1)*(h.timelineWidth-40);E.value=`${y-w}px`}}return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["timeline",{"is-dragging":T.value}]),ref_key:"timelineRef",ref:O,style:l.normalizeStyle({width:`${D.value}px`})},[l.createCommentVNode("",!0),l.createElementVNode("div",es,[l.createElementVNode("div",{class:"timeline-scroll no-scrollbar",ref_key:"scrollContainer",ref:Ue,onScroll:le},[l.createElementVNode("div",{class:"timeline-bar",style:l.normalizeStyle({width:`${e.timelineWidth}px`})},[l.createElementVNode("div",ts,[l.createElementVNode("img",{src:h.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":`https://golstatsimages.blob.core.windows.net/teams-80/${h.homeTeam}.png`,alt:"Equipo local"},null,8,ns)]),l.createElementVNode("div",ss,[l.createElementVNode("img",{src:h.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":`https://golstatsimages.blob.core.windows.net/teams-80/${h.awayTeam}.png`,alt:"Equipo visitante"},null,8,is)]),l.createElementVNode("div",rs,[l.createElementVNode("div",{class:"line",style:l.normalizeStyle({width:Ts()})},null,4),l.createElementVNode("span",{class:"minute-ball minute-ball-initial minute-ball-center",style:l.normalizeStyle({left:ce(0)})},"0'",4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.value,(g,w)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(g.event,(y,A)=>(l.openBlock(),l.createElementBlock("div",{key:"event-"+w+"-"+A,class:"event",style:l.normalizeStyle({left:ce(A===0?w-1.5:w-1.5+A*.3)})},[(y==null?void 0:y.team)==="local"?(l.openBlock(),l.createElementBlock("span",os,[(y==null?void 0:y.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",as,a[22]||(a[22]=[l.createElementVNode("rect",{x:"0.507812",y:"0.375488",width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#F7C330"},null,-1)]))):(y==null?void 0:y.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ls,a[23]||(a[23]=[l.createElementVNode("rect",{width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#E5152D"},null,-1)]))):(y==null?void 0:y.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",cs,a[24]||(a[24]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-79fd5517></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-79fd5517></ellipse><path fill="#fff" d="M24.03,36.05c-6.65,0-12.05-5.41-12.05-12.05s5.41-12.05,12.05-12.05,12.05,5.41,12.05,12.05-5.41,12.05-12.05,12.05Zm0-23.1c-6.1,0-11.05,4.96-11.05,11.05s4.96,11.05,11.05,11.05,11.05-4.96,11.05-11.05-4.96-11.05-11.05-11.05Z" data-v-79fd5517></path><path fill="#fff" d="M27.22,29.38h-6.35c-.22,0-.41-.14-.48-.35l-1.96-6.06c-.07-.21,0-.43,.18-.56l5.14-3.74c.18-.13,.41-.13,.59,0l5.14,3.74c.17,.13,.25,.35,.18,.56l-1.96,6.06c-.07,.21-.26,.35-.48,.35Zm-5.99-1h5.62l1.74-5.37-4.55-3.32-4.55,3.32,1.74,5.37Z" data-v-79fd5517></path><path fill="#fff" d="M24.06,15.71c-.07,0-.13-.01-.2-.04l-4.38-1.87c-.25-.11-.37-.4-.26-.66,.11-.25,.4-.37,.66-.26l4.18,1.78,4.18-1.78c.25-.11,.55,0,.66,.26,.11,.25,0,.55-.26,.66l-4.38,1.87c-.06,.03-.13,.04-.2,.04Z" data-v-79fd5517></path><path fill="#fff" d="M12.62,25.37c-.12,0-.23-.04-.33-.12-.21-.18-.23-.5-.05-.71l2.99-3.44-.4-4.54c-.02-.27,.18-.52,.45-.54,.27-.03,.52,.18,.54,.45l.42,4.75c.01,.14-.03,.27-.12,.37l-3.12,3.6c-.1,.11-.24,.17-.38,.17Z" data-v-79fd5517></path><path fill="#fff" d="M21.37,35.66c-.17,0-.34-.09-.43-.24l-2.34-3.91-4.43-1.02c-.27-.06-.44-.33-.38-.6s.33-.44,.6-.38l4.64,1.07c.13,.03,.25,.11,.32,.23l2.45,4.09c.14,.24,.06,.54-.17,.69-.08,.05-.17,.07-.26,.07Z" data-v-79fd5517></path><path fill="#fff" d="M26.75,35.66c-.09,0-.18-.02-.26-.07-.24-.14-.31-.45-.17-.69l2.44-4.09c.07-.12,.18-.2,.32-.23l4.63-1.07c.27-.06,.54,.11,.6,.38s-.11,.54-.38,.6l-4.43,1.02-2.33,3.91c-.09,.16-.26,.24-.43,.24Z" data-v-79fd5517></path><path fill="#fff" d="M35.5,25.37c-.14,0-.28-.06-.38-.17l-3.13-3.6c-.09-.1-.13-.24-.12-.37l.42-4.75c.02-.27,.27-.48,.54-.45,.28,.02,.48,.27,.45,.54l-.4,4.54,2.99,3.44c.18,.21,.16,.52-.05,.71-.09,.08-.21,.12-.33,.12Z" data-v-79fd5517></path><path fill="#fff" d="M24.05,19.58c-.28,0-.5-.22-.5-.5v-3.87c0-.28,.22-.5,.5-.5s.5,.22,.5,.5v3.87c0,.28-.22,.5-.5,.5Z" data-v-79fd5517></path><path fill="#fff" d="M29.21,23.47c-.18,0-.35-.1-.44-.26-.13-.24-.04-.55,.2-.68l3.17-1.7c.25-.13,.55-.04,.68,.2,.13,.24,.04,.55-.2,.68l-3.17,1.7c-.08,.04-.16,.06-.24,.06Z" data-v-79fd5517></path><path fill="#fff" d="M29.2,31.57c-.14,0-.27-.06-.37-.17l-1.96-2.19c-.18-.21-.17-.52,.04-.71,.21-.18,.52-.17,.71,.04l1.96,2.19c.18,.21,.17,.52-.04,.71-.1,.09-.21,.13-.33,.13Z" data-v-79fd5517></path><path fill="#fff" d="M18.91,31.57c-.12,0-.24-.04-.33-.13-.21-.18-.22-.5-.04-.71l1.96-2.19c.19-.21,.5-.22,.71-.04,.21,.18,.22,.5,.04,.71l-1.96,2.19c-.1,.11-.24,.17-.37,.17Z" data-v-79fd5517></path><path fill="#fff" d="M18.93,23.32c-.07,0-.15-.02-.22-.05l-3.17-1.55c-.25-.12-.35-.42-.23-.67,.12-.25,.42-.35,.67-.23l3.17,1.55c.25,.12,.35,.42,.23,.67-.09,.18-.26,.28-.45,.28Z" data-v-79fd5517></path>',14)]))):(y==null?void 0:y.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",us,a[25]||(a[25]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-79fd5517></circle><path fill="#fff" d="M31.62,23.86c-.19,0-.37-.07-.52-.21-.3-.29-.31-.76-.03-1.06l2.89-3.04-2.89-3.04c-.29-.3-.27-.77,.03-1.06,.3-.29,.77-.27,1.06,.03l3.39,3.56c.28,.29,.28,.74,0,1.03l-3.39,3.56c-.15,.15-.34,.23-.54,.23Z" data-v-79fd5517></path><path fill="#fff" d="M34.99,20.31H16.37c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h18.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-79fd5517></path><path fill="#fff" d="M16.38,32.75c-.2,0-.4-.08-.54-.23l-3.38-3.56c-.28-.29-.28-.74,0-1.03l3.38-3.56c.28-.3,.76-.31,1.06-.03,.3,.29,.31,.76,.03,1.06l-2.89,3.04,2.89,3.04c.29,.3,.27,.78-.03,1.06-.15,.14-.33,.21-.52,.21Z" data-v-79fd5517></path><path fill="#fff" d="M31.62,29.19H13c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75H31.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-79fd5517></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(y==null?void 0:y.icon)},null,2))])):l.createCommentVNode("",!0),l.createElementVNode("span",fs,l.toDisplayString((y==null?void 0:y.minuteLabel)||g.minute)+"'",1),(y==null?void 0:y.team)==="visitante"?(l.openBlock(),l.createElementBlock("span",ds,[(y==null?void 0:y.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",ms,a[26]||(a[26]=[l.createElementVNode("rect",{x:"0.507812",y:"0.375488",width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#F7C330"},null,-1)]))):(y==null?void 0:y.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ps,a[27]||(a[27]=[l.createElementVNode("rect",{width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#E5152D"},null,-1)]))):(y==null?void 0:y.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",hs,a[28]||(a[28]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-79fd5517></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-79fd5517></ellipse><path fill="#fff" d="M24.03,36.05c-6.65,0-12.05-5.41-12.05-12.05s5.41-12.05,12.05-12.05,12.05,5.41,12.05,12.05-5.41,12.05-12.05,12.05Zm0-23.1c-6.1,0-11.05,4.96-11.05,11.05s4.96,11.05,11.05,11.05,11.05-4.96,11.05-11.05-4.96-11.05-11.05-11.05Z" data-v-79fd5517></path><path fill="#fff" d="M27.22,29.38h-6.35c-.22,0-.41-.14-.48-.35l-1.96-6.06c-.07-.21,0-.43,.18-.56l5.14-3.74c.18-.13,.41-.13,.59,0l5.14,3.74c.17,.13,.25,.35,.18,.56l-1.96,6.06c-.07,.21-.26,.35-.48,.35Zm-5.99-1h5.62l1.74-5.37-4.55-3.32-4.55,3.32,1.74,5.37Z" data-v-79fd5517></path><path fill="#fff" d="M24.06,15.71c-.07,0-.13-.01-.2-.04l-4.38-1.87c-.25-.11-.37-.4-.26-.66,.11-.25,.4-.37,.66-.26l4.18,1.78,4.18-1.78c.25-.11,.55,0,.66,.26,.11,.25,0,.55-.26,.66l-4.38,1.87c-.06,.03-.13,.04-.2,.04Z" data-v-79fd5517></path><path fill="#fff" d="M12.62,25.37c-.12,0-.23-.04-.33-.12-.21-.18-.23-.5-.05-.71l2.99-3.44-.4-4.54c-.02-.27,.18-.52,.45-.54,.27-.03,.52,.18,.54,.45l.42,4.75c.01,.14-.03,.27-.12,.37l-3.12,3.6c-.1,.11-.24,.17-.38,.17Z" data-v-79fd5517></path><path fill="#fff" d="M21.37,35.66c-.17,0-.34-.09-.43-.24l-2.34-3.91-4.43-1.02c-.27-.06-.44-.33-.38-.6s.33-.44,.6-.38l4.64,1.07c.13,.03,.25,.11,.32,.23l2.45,4.09c.14,.24,.06,.54-.17,.69-.08,.05-.17,.07-.26,.07Z" data-v-79fd5517></path><path fill="#fff" d="M26.75,35.66c-.09,0-.18-.02-.26-.07-.24-.14-.31-.45-.17-.69l2.44-4.09c.07-.12,.18-.2,.32-.23l4.63-1.07c.27-.06,.54,.11,.6,.38s-.11,.54-.38,.6l-4.43,1.02-2.33,3.91c-.09,.16-.26,.24-.43,.24Z" data-v-79fd5517></path><path fill="#fff" d="M35.5,25.37c-.14,0-.28-.06-.38-.17l-3.13-3.6c-.09-.1-.13-.24-.12-.37l.42-4.75c.02-.27,.27-.48,.54-.45,.28,.02,.48,.27,.45,.54l-.4,4.54,2.99,3.44c.18,.21,.16,.52-.05,.71-.09,.08-.21,.12-.33,.12Z" data-v-79fd5517></path><path fill="#fff" d="M24.05,19.58c-.28,0-.5-.22-.5-.5v-3.87c0-.28,.22-.5,.5-.5s.5,.22,.5,.5v3.87c0,.28-.22,.5-.5,.5Z" data-v-79fd5517></path><path fill="#fff" d="M29.21,23.47c-.18,0-.35-.1-.44-.26-.13-.24-.04-.55,.2-.68l3.17-1.7c.25-.13,.55-.04,.68,.2,.13,.24,.04,.55-.2,.68l-3.17,1.7c-.08,.04-.16,.06-.24,.06Z" data-v-79fd5517></path><path fill="#fff" d="M29.2,31.57c-.14,0-.27-.06-.37-.17l-1.96-2.19c-.18-.21-.17-.52,.04-.71,.21-.18,.52-.17,.71,.04l1.96,2.19c.18,.21,.17,.52-.04,.71-.1,.09-.21,.13-.33,.13Z" data-v-79fd5517></path><path fill="#fff" d="M18.91,31.57c-.12,0-.24-.04-.33-.13-.21-.18-.22-.5-.04-.71l1.96-2.19c.19-.21,.5-.22,.71-.04,.21,.18,.22,.5,.04,.71l-1.96,2.19c-.1,.11-.24,.17-.37,.17Z" data-v-79fd5517></path><path fill="#fff" d="M18.93,23.32c-.07,0-.15-.02-.22-.05l-3.17-1.55c-.25-.12-.35-.42-.23-.67,.12-.25,.42-.35,.67-.23l3.17,1.55c.25,.12,.35,.42,.23,.67-.09,.18-.26,.28-.45,.28Z" data-v-79fd5517></path>',14)]))):(y==null?void 0:y.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",gs,a[29]||(a[29]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-79fd5517></circle><path fill="#fff" d="M31.62,23.86c-.19,0-.37-.07-.52-.21-.3-.29-.31-.76-.03-1.06l2.89-3.04-2.89-3.04c-.29-.3-.27-.77,.03-1.06,.3-.29,.77-.27,1.06,.03l3.39,3.56c.28,.29,.28,.74,0,1.03l-3.39,3.56c-.15,.15-.34,.23-.54,.23Z" data-v-79fd5517></path><path fill="#fff" d="M34.99,20.31H16.37c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h18.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-79fd5517></path><path fill="#fff" d="M16.38,32.75c-.2,0-.4-.08-.54-.23l-3.38-3.56c-.28-.29-.28-.74,0-1.03l3.38-3.56c.28-.3,.76-.31,1.06-.03,.3,.29,.31,.76,.03,1.06l-2.89,3.04,2.89,3.04c.29,.3,.27,.78-.03,1.06-.15,.14-.33,.21-.52,.21Z" data-v-79fd5517></path><path fill="#fff" d="M31.62,29.19H13c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75H31.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-79fd5517></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(y==null?void 0:y.icon)},null,2))])):l.createCommentVNode("",!0)],4))),128))],64))),256)),l.createElementVNode("span",{class:"minute-ball minute-ball-edge minute-ball-center",style:l.normalizeStyle({left:ce(p.value.length-1)})},l.toDisplayString(b.value)+"'",5),l.createElementVNode("div",{class:"range-indicator",style:l.normalizeStyle({left:ce(d.value),width:E.value})},[l.createElementVNode("div",{class:"handle left",onMousedown:a[4]||(a[4]=g=>W("left",g)),onTouchstart:a[5]||(a[5]=g=>W("left",g))},[(l.openBlock(),l.createElementBlock("svg",ys,a[30]||(a[30]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)]))),a[32]||(a[32]=l.createElementVNode("div",{style:{flex:"1"}},null,-1)),(l.openBlock(),l.createElementBlock("svg",ws,a[31]||(a[31]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32),l.createElementVNode("span",{class:"range-dot range-dot-left",onMousedown:a[6]||(a[6]=g=>W("left",g)),onTouchstart:a[7]||(a[7]=g=>W("left",g))},null,32),a[36]||(a[36]=l.createElementVNode("div",{class:"range-line"},null,-1)),l.createElementVNode("span",{class:"range-dot range-dot-right",onMousedown:a[8]||(a[8]=g=>W("right",g)),onTouchstart:a[9]||(a[9]=g=>W("right",g))},null,32),l.createElementVNode("div",{class:"handle right",onMousedown:a[10]||(a[10]=g=>W("right",g)),onTouchstart:a[11]||(a[11]=g=>W("right",g))},[(l.openBlock(),l.createElementBlock("svg",bs,a[33]||(a[33]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)]))),a[35]||(a[35]=l.createElementVNode("div",{style:{flex:"1"}},null,-1)),(l.openBlock(),l.createElementBlock("svg",Es,a[34]||(a[34]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32)],4)])],4)],544)])],6))}},[["__scopeId","data-v-79fd5517"]]),_s={__name:"gsc-timeline-reports",props:{gameId:{type:Number,required:!0},homeTeam:{type:Number,required:!0},awayTeam:{type:Number,required:!0},isDefault:{type:Boolean,required:!1},goals:{type:Boolean,default:!0},yellowCards:{type:Boolean,default:!0},redCards:{type:Boolean,default:!0},substitutions:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},setup(e){const t=e,n=l.ref(null),s=l.ref(0),i=l.ref(0);let r=null;function o(){if(n.value){const f=n.value.offsetWidth;s.value=f>0?f-80:0}}return l.watch(s,(f,b)=>{f!==b&&setTimeout(()=>{i.value++},100)}),l.onMounted(()=>{l.nextTick(()=>{setTimeout(()=>{o()},100),n.value&&window.ResizeObserver&&(r=new ResizeObserver(()=>{o()}),r.observe(n.value)),window.addEventListener("resize",o)})}),l.onBeforeUnmount(()=>{r&&r.disconnect(),window.removeEventListener("resize",o)}),(f,b)=>(l.openBlock(),l.createElementBlock("div",{class:"container-fullwidth",ref_key:"containerRef",ref:n},[(l.openBlock(),l.createBlock(xs,{"is-default":e.isDefault,key:s.value,"timeline-width":s.value,"game-id":t.gameId,"home-team":t.homeTeam,"away-team":t.awayTeam,token:t.token,goals:t.goals,"yellow-cards":t.yellowCards,"red-cards":t.redCards,substitutions:t.substitutions},null,8,["is-default","timeline-width","game-id","home-team","away-team","token","goals","yellow-cards","red-cards","substitutions"]))],512))}};$.GSCTimelineReports=_s,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
5
+ `):" "+bt(r[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return s},adapters:Pe};function Le(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function xt(e){return Le(e),e.headers=P.from(e.headers),e.data=Ce.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Et.getAdapter(e.adapter||oe.adapter)(e).then(function(s){return Le(e),s.data=Ce.call(e,e.transformResponse,s),s.headers=P.from(s.headers),s},function(s){return lt(s)||(Le(e),s&&s.response&&(s.response.data=Ce.call(e,e.transformResponse,s.response),s.response.headers=P.from(s.response.headers))),Promise.reject(s)})}const vt="1.11.0",xe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xe[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const _t={};xe.transitional=function(t,n,s){function i(r,o){return"[Axios v"+vt+"] Transitional option '"+r+"'"+o+(s?". "+s:"")}return(r,o,f)=>{if(t===!1)throw new _(i(o," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!_t[o]&&(_t[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,o,f):!0}},xe.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Xn(e,t,n){if(typeof e!="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const r=s[i],o=t[r];if(o){const f=e[r],b=f===void 0||o(f,r,e);if(b!==!0)throw new _("option "+r+" must be "+b,_.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _("Unknown option "+r,_.ERR_BAD_OPTION)}}const ve={assertOptions:Xn,validators:xe},H=ve.validators;let X=class{constructor(t){this.defaults=t||{},this.interceptors={request:new it,response:new it}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const r=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?r&&!String(s.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(s.stack+=`
6
+ `+r):s.stack=r}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=J(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:r}=n;s!==void 0&&ve.assertOptions(s,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),i!=null&&(c.isFunction(i)?n.paramsSerializer={serialize:i}:ve.assertOptions(i,{encode:H.function,serialize:H.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ve.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&c.merge(r.common,r[n.method]);r&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),n.headers=P.concat(o,r);const f=[];let b=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(b=b&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let m,E=0,p;if(!b){const h=[xt.bind(this),void 0];for(h.unshift(...f),h.push(...d),p=h.length,m=Promise.resolve(n);E<p;)m=m.then(h[E++],h[E++]);return m}p=f.length;let N=n;for(E=0;E<p;){const h=f[E++],S=f[E++];try{N=h(N)}catch(x){S.call(this,x);break}}try{m=xt.call(this,N)}catch(h){return Promise.reject(h)}for(E=0,p=d.length;E<p;)m=m.then(d[E++],d[E++]);return m}getUri(t){t=J(this.defaults,t);const n=dt(t.baseURL,t.url,t.allowAbsoluteUrls);return st(n,t.params,t.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(t){X.prototype[t]=function(n,s){return this.request(J(s||{},{method:t,url:n,data:(s||{}).data}))}}),c.forEach(["post","put","patch"],function(t){function n(s){return function(r,o,f){return this.request(J(f||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}X.prototype[t]=n(),X.prototype[t+"Form"]=n(!0)});let Kn=class kt{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const s=this;this.promise.then(i=>{if(!s._listeners)return;let r=s._listeners.length;for(;r-- >0;)s._listeners[r](i);s._listeners=null}),this.promise.then=i=>{let r;const o=new Promise(f=>{s.subscribe(f),r=f}).then(i);return o.cancel=function(){s.unsubscribe(r)},o},t(function(r,o,f){s.reason||(s.reason=new ee(r,o,f),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kt(function(i){t=i}),cancel:t}}};function Gn(e){return function(n){return e.apply(null,n)}}function Qn(e){return c.isObject(e)&&e.isAxiosError===!0}const Fe={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(Fe).forEach(([e,t])=>{Fe[t]=e});function St(e){const t=new X(e),n=qe(X.prototype.request,t);return c.extend(n,X.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return St(J(e,i))},n}const M=St(oe);M.Axios=X,M.CanceledError=ee,M.CancelToken=Kn,M.isCancel=lt,M.VERSION=vt,M.toFormData=ge,M.AxiosError=_,M.Cancel=M.CanceledError,M.all=function(t){return Promise.all(t)},M.spread=Gn,M.isAxiosError=Qn,M.mergeConfig=J,M.AxiosHeaders=P,M.formToJSON=e=>ot(c.isHTMLForm(e)?new FormData(e):e),M.getAdapter=Et.getAdapter,M.HttpStatusCode=Fe,M.default=M;const{Axios:Ps,AxiosError:Ls,CanceledError:Fs,isCancel:Ds,CancelToken:Us,VERSION:Hs,all:js,Cancel:qs,isAxiosError:Vs,spread:zs,toFormData:Ws,AxiosHeaders:$s,HttpStatusCode:Zs,formToJSON:Js,getAdapter:Xs,mergeConfig:Ks}=M,Yn=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},es={class:"timeline-container"},ts={class:"team-circle team-circle-top"},ns=["src"],ss={class:"team-circle team-circle-bottom"},is=["src"],rs={class:"timeline-line"},os={key:0,class:"event-icon event-icon-top"},as={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ls={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cs={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},us={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs={class:"minute-ball minute-ball-center"},ds={key:1,class:"event-icon event-icon-bottom"},ms={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ps={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gs={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ys={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"-5.5px"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},ws={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"5.5px",transform:"rotate(180deg)"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},bs={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"-5.5px"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},Es={width:"10",height:"6",viewBox:"0 0 12 8",style:{display:"block",margin:"0 auto",position:"relative",left:"-4.3px",top:"5.5px",transform:"rotate(180deg)"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},xs=Yn({__name:"gsc-timeline",props:{timelineWidth:{type:Number,required:!0,default:1010},gameId:{type:Number,required:!0},homeTeam:{type:Number,required:!0},isDefault:{type:Boolean,required:!1},awayTeam:{type:Number,required:!0},goals:{type:Boolean,default:!0},yellowCards:{type:Boolean,default:!0},redCards:{type:Boolean,default:!0},substitutions:{type:Boolean,default:!0},token:{type:String,required:!0}},emits:["range-change"],setup(e,{emit:t}){const n=l.ref(0),s=l.ref(96),i=l.ref("1"),r=l.ref("2"),o=l.ref(0),f=l.ref(45),b=l.ref(96),d=l.ref(0),m=l.ref(0),E=l.ref("0px"),p=l.ref([]),N=t,h=e,S=M.create({headers:{Authorization:`${h.token}`}}),x=l.ref([]);let R=null;const O=l.ref(null),T=l.ref(!1),D=l.ref(0),B=l.ref(0),j=l.ref(!1),q=l.ref(!1);let z=!1,te=0;const De=l.ref(0),V=l.ref(!1),_e=l.ref(!1),K=l.ref(96),Ue=l.ref(null),_s=[{minute:5,match_lapse:1,event:[{minute:5,minuteLabel:"5",icon:"icon-yellow-card",team:"visitante",match_lapse:1}]},{minute:12,match_lapse:1,event:[{minute:12,minuteLabel:"12",icon:"icon-goal",team:"local",match_lapse:1}]},{minute:18,match_lapse:1,event:[{minute:18,minuteLabel:"18",icon:"icon-yellow-card",team:"local",match_lapse:1}]},{minute:25,match_lapse:1,event:[{minute:25,minuteLabel:"25",icon:"icon-red-card",team:"visitante",match_lapse:1}]},{minute:32,match_lapse:1,event:[{minute:32,minuteLabel:"32",icon:"icon-goal",team:"visitante",match_lapse:1}]},{minute:38,match_lapse:1,event:[{minute:38,minuteLabel:"38",icon:"icon-change",team:"local",match_lapse:1}]},{minute:42,match_lapse:1,event:[{minute:42,minuteLabel:"42",icon:"icon-yellow-card",team:"visitante",match_lapse:1}]},{minute:45,match_lapse:1,event:[{minute:45,minuteLabel:"MT",icon:"icon-change",team:"local",match_lapse:1}]},{minute:48,match_lapse:2,event:[{minute:48,minuteLabel:"48",icon:"icon-yellow-card",team:"local",match_lapse:2}]},{minute:55,match_lapse:2,event:[{minute:55,minuteLabel:"55",icon:"icon-goal",team:"visitante",match_lapse:2}]},{minute:62,match_lapse:2,event:[{minute:62,minuteLabel:"62",icon:"icon-change",team:"visitante",match_lapse:2}]},{minute:68,match_lapse:2,event:[{minute:68,minuteLabel:"68",icon:"icon-yellow-card",team:"visitante",match_lapse:2}]},{minute:75,match_lapse:2,event:[{minute:75,minuteLabel:"75",icon:"icon-goal",team:"local",match_lapse:2}]},{minute:82,match_lapse:2,event:[{minute:82,minuteLabel:"82",icon:"icon-red-card",team:"local",match_lapse:2}]},{minute:87,match_lapse:2,event:[{minute:87,minuteLabel:"87",icon:"icon-yellow-card",team:"visitante",match_lapse:2}]},{minute:90,match_lapse:2,event:[{minute:90,minuteLabel:"90",icon:"icon-goal",team:"local",match_lapse:2}]}];function le(){if(Ue.value){const u=Ue.value,a=u.scrollWidth-u.clientWidth,y=u.scrollLeft,w=u.scrollWidth>u.clientWidth;j.value=w&&y>0,q.value=w&&Math.ceil(y)<Math.floor(a)}}function Rt(){if(O.value){const u=O.value.parentElement.clientWidth;D.value=u,B.value===0&&(B.value=u-90),l.nextTick(()=>{le()})}}function Ss(){if(x.value.length>0){const u=Math.max(...x.value.map(a=>a.minute));K.value=u,s.value=K.value}}async function Rs(){if(h.isDefault){const u=_s.map(a=>{if(!a.event)return a;const y=a.event.filter(w=>!(w.icon==="icon-goal"&&!h.goals||w.icon==="icon-yellow-card"&&!h.yellowCards||w.icon==="icon-red-card"&&!h.redCards||w.icon==="icon-change"&&!h.substitutions));return{...a,event:y.length>0?y:null}}).filter(a=>a.event!==null);p.value=u,x.value=u.map(a=>a.event),u.length>0&&(n.value=u[0].minute,s.value=u[u.length-1].minute,i.value=u[0].match_lapse.toString(),r.value=u[u.length-1].match_lapse.toString(),d.value=0,m.value=u.length-1,b.value=u[u.length-1].minute,K.value=u[u.length-1].minute,ue());return}try{console.log("///////////////////////////////////////////////// Componente de timeline: ",h.token);const u=await S.get(`https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/${h.gameId}`);if(u.data&&u.data.plays){const a=u.data.plays.find(w=>{var g;return w.event_type_id===6&&((g=w.comments)==null?void 0:g.includes("El árbitro silba el Final del Primer Tiempo"))});a&&(o.value=a.minute);const y=Math.max(...u.data.plays.map(w=>w.minute));b.value=y,K.value=y,s.value=K.value,p.value=[];for(let w=0;w<=o.value;w++){const g=u.data.plays.filter(v=>{var k;return v.minute===w&&v.match_lapse===1&&Ot(v)&&(v.category_id===9||v.category_id===8||v.event_type_id===1||v.event_type_id===3||v.event_type_id===6&&((k=v.comments)==null?void 0:k.includes("El árbitro silba el Final del Primer Tiempo")))}),A=[];g.forEach(v=>{A.push({minute:v.minute,minuteLabel:v.event_type_id===6?"MT":v.minute.toString(),icon:Tt(v.event_type_id===1||v.event_type_id===3?v.event_type_id:v.category_id,v),team:v.team_id===h.homeTeam?v.category_id===13?"visitante":"local":v.category_id===13?"local":"visitante",match_lapse:v.match_lapse})}),p.value.push({minute:w,match_lapse:1,event:A.length>0?A:null})}for(let w=f.value;w<=b.value;w++){const g=u.data.plays.filter(v=>v.minute===w&&v.match_lapse===2&&Ot(v)&&(v.category_id===9||v.category_id===8||v.event_type_id===1||v.event_type_id===3)),A=[];g.forEach(v=>{A.push({minute:v.minute,minuteLabel:v.event_type_id===6?"MT":v.minute.toString(),icon:Tt(v.event_type_id===1||v.event_type_id===3?v.event_type_id:v.category_id,v),team:v.team_id===h.homeTeam?v.category_id===13?"visitante":"local":v.category_id===13?"local":"visitante",match_lapse:v.match_lapse})}),p.value.push({minute:w,match_lapse:2,event:A.length>0?A:null})}if(x.value=p.value.filter(w=>w.event!==null).map(w=>w.event),p.value.length>0){const w=p.value.filter(k=>k.match_lapse===1);if(w.length>0){const k=w[0];n.value=k.minute,i.value="1",d.value=p.value.findIndex(L=>L.minute===k.minute&&L.match_lapse===1)}const g=p.value.filter(k=>k.match_lapse===2);if(g.length>0){const k=g[g.length-1];s.value=k.minute,r.value="2",m.value=p.value.findIndex(L=>L.minute===k.minute&&L.match_lapse===2)}const A=p.value.findIndex(k=>k.minute===n.value&&k.match_lapse===parseInt(i.value)),v=p.value.findIndex(k=>k.minute===s.value&&k.match_lapse===parseInt(r.value));if(A!==-1&&v!==-1&&A<v){const k=p.value.length,L=A/(k-1)*(h.timelineWidth-40),fe=v/(k-1)*(h.timelineWidth-40);E.value=`${fe-L}px`}}}}catch(u){console.error("Error al obtener los datos del partido:",u)}}function Tt(u,a){return{1:"icon-goal",8:"icon-yellow-card",9:"icon-red-card",3:"icon-change"}[u]||""}function Ot(u){return u.event_type_id===1?!!h.goals:u.category_id===8?!!h.yellowCards:u.category_id===9?!!h.redCards:u.event_type_id===3?!!h.substitutions:!0}l.onMounted(()=>{Ss(),Rt(),Rs(),l.nextTick(()=>{le()}),window.addEventListener("resize",()=>{Rt()})}),l.onBeforeUnmount(()=>{window.removeEventListener("resize",le)}),l.watch(x,()=>{l.nextTick(()=>{le()})},{deep:!0}),l.watch([n,s,i,r],()=>{He()},{immediate:!0}),l.watch([i],()=>{if(!(_e.value||T.value)){if(parseInt(i.value)>parseInt(r.value)&&(r.value=i.value,V.value=!0),V.value){if(i.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0],y=u[u.length-1];(n.value<a.minute||n.value>y.minute)&&(n.value=a.minute);const w=p.value.findIndex(g=>g.minute===n.value&&g.match_lapse===1);w!==-1&&(d.value=w)}}else if(i.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0],y=u[u.length-1];(n.value<a.minute||n.value>y.minute)&&(n.value=a.minute);const w=p.value.findIndex(g=>g.minute===n.value&&g.match_lapse===2);w!==-1&&(d.value=w)}}}else if(i.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0];n.value=a.minute;const y=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===1);y!==-1&&(d.value=y)}}else if(i.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0];n.value=a.minute;const y=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===2);y!==-1&&(d.value=y)}}V.value=!1,ue()}},{immediate:!0}),l.watch([r],()=>{if(!(_e.value||T.value)){if(parseInt(r.value)<parseInt(i.value)&&(i.value=r.value,V.value=!0),V.value){if(r.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0],y=u[u.length-1];(s.value<a.minute||s.value>y.minute)&&(s.value=y.minute);const w=p.value.findIndex(g=>g.minute===s.value&&g.match_lapse===1);w!==-1&&(m.value=w)}}else if(r.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0],y=u[u.length-1];(s.value<a.minute||s.value>y.minute)&&(s.value=y.minute);const w=p.value.findIndex(g=>g.minute===s.value&&g.match_lapse===2);w!==-1&&(m.value=w)}}}else if(r.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===1);y!==-1&&(m.value=y)}}else if(r.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=p.value.findIndex(w=>w.minute===a.minute&&w.match_lapse===2);y!==-1&&(m.value=y)}}V.value=!1,ue()}},{immediate:!0}),l.watch([n],()=>{if(!(_e.value||T.value)){if(i.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0],y=u[u.length-1];n.value<a.minute?n.value=a.minute:n.value>y.minute&&(n.value=y.minute);const w=p.value.findIndex(g=>g.minute===n.value&&g.match_lapse===1);w!==-1&&(d.value=w)}}else if(i.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0],y=u[u.length-1];n.value<a.minute?n.value=a.minute:n.value>y.minute&&(n.value=y.minute);const w=p.value.findIndex(g=>g.minute===n.value&&g.match_lapse===2);w!==-1&&(d.value=w)}}if(i.value===r.value&&n.value>=s.value){if(r.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[u.length-1];s.value=Math.min(a.minute,n.value+1)}}else if(r.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[u.length-1];s.value=Math.min(a.minute,n.value+1)}}}ue()}}),l.watch([s],()=>{if(!(_e.value||T.value)){if(r.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0],y=u[u.length-1];s.value<a.minute?s.value=a.minute:s.value>y.minute&&(s.value=y.minute);const w=p.value.findIndex(g=>g.minute===s.value&&g.match_lapse===1);w!==-1&&(m.value=w)}}else if(r.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0],y=u[u.length-1];s.value<a.minute?s.value=a.minute:s.value>y.minute&&(s.value=y.minute);const w=p.value.findIndex(g=>g.minute===s.value&&g.match_lapse===2);w!==-1&&(m.value=w)}}if(i.value===r.value&&s.value<=n.value){if(i.value==="1"){const u=p.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0];n.value=Math.max(a.minute,s.value-1)}}else if(i.value==="2"){const u=p.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0];n.value=Math.max(a.minute,s.value-1)}}}ue()}});function ce(u){const a=p.value.length;return u<0||a===0||a===1?"0px":`${u/(a-1)*(h.timelineWidth-40)}px`}function Ts(){const u=p.value.length;if(u===0||u===1)return"0px";const a=(u-1)/(u-1)*(h.timelineWidth-40);return`${parseInt(a)+10}px`}function W(u,a){a.preventDefault(),R=u,te=a.type.includes("touch")?a.touches[0].clientX:a.clientX,z=!1,u==="left"?De.value=d.value:u==="right"&&(De.value=m.value),document.addEventListener("mousemove",Se),document.addEventListener("touchmove",Se,{passive:!1}),document.addEventListener("mouseup",Re),document.addEventListener("touchend",Re),T.value=!0}function Se(u){if(!R)return;u.preventDefault();const a=u.type.includes("touch")?u.touches[0].clientX:u.clientX;if(!z){if(Math.abs(a-te)<5)return;z=!0}const y=Os(),w=p.value.length,g=a-te,A=y/(w-1),v=Math.round(g/A);let k=De.value+v;const L=Math.max(0,Math.min(k,w-1));if(R==="left"){const F=p.value.findIndex(Q=>Q.minute===s.value&&Q.match_lapse===parseInt(r.value));if(L>=F-1)return;const G=p.value[L];T.value=!0,d.value=L,n.value=G.minute,i.value=G.match_lapse.toString(),V.value=!0}else if(R==="right"){const F=p.value.findIndex(Q=>Q.minute===n.value&&Q.match_lapse===parseInt(i.value));if(L<=F+1)return;const G=p.value[L];T.value=!0,m.value=L,s.value=G.minute,r.value=G.match_lapse.toString(),V.value=!0}const fe=p.value.findIndex(F=>F.minute===n.value&&F.match_lapse===parseInt(i.value)),je=p.value.findIndex(F=>F.minute===s.value&&F.match_lapse===parseInt(r.value));if(fe!==-1&&je!==-1&&fe<je){const F=p.value.length,G=fe/(F-1)*(h.timelineWidth-40),Q=je/(F-1)*(h.timelineWidth-40);E.value=`${Q-G}px`}l.nextTick(()=>{He()})}function Re(){R&&(n.value<0&&(n.value=0),s.value>K.value&&(s.value=K.value),l.nextTick(()=>{T.value=!1,V.value=!1}),He()),R=null,document.removeEventListener("mousemove",Se),document.removeEventListener("touchmove",Se),document.removeEventListener("mouseup",Re),document.removeEventListener("touchend",Re)}function Os(){return O.value?O.value.getBoundingClientRect().width:600}function He(){const u=n.value*60,a=s.value*60;N("range-change",{start:{minutes:n.value,seconds:u,time:i.value,match_lapse:parseInt(i.value)},end:{minutes:s.value,seconds:a,time:r.value,match_lapse:parseInt(r.value)}})}function ue(){const u=p.value.findIndex(y=>y.minute===n.value&&y.match_lapse===parseInt(i.value)),a=p.value.findIndex(y=>y.minute===s.value&&y.match_lapse===parseInt(r.value));if(u!==-1&&a!==-1&&u<a){const y=p.value.length,w=u/(y-1)*(h.timelineWidth-40),g=a/(y-1)*(h.timelineWidth-40);E.value=`${g-w}px`}}return(u,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["timeline",{"is-dragging":T.value}]),ref_key:"timelineRef",ref:O,style:l.normalizeStyle({width:`${D.value}px`})},[l.createCommentVNode("",!0),l.createElementVNode("div",es,[l.createElementVNode("div",{class:"timeline-scroll no-scrollbar",ref_key:"scrollContainer",ref:Ue,onScroll:le},[l.createElementVNode("div",{class:"timeline-bar",style:l.normalizeStyle({width:`${e.timelineWidth}px`})},[l.createElementVNode("div",ts,[l.createElementVNode("img",{src:h.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":`https://golstatsimages.blob.core.windows.net/teams-80/${h.homeTeam}.png`,alt:"Equipo local"},null,8,ns)]),l.createElementVNode("div",ss,[l.createElementVNode("img",{src:h.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":`https://golstatsimages.blob.core.windows.net/teams-80/${h.awayTeam}.png`,alt:"Equipo visitante"},null,8,is)]),l.createElementVNode("div",rs,[l.createElementVNode("div",{class:"line",style:l.normalizeStyle({width:Ts()})},null,4),l.createElementVNode("span",{class:"minute-ball minute-ball-initial minute-ball-center",style:l.normalizeStyle({left:ce(0)})},"0'",4),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.value,(y,w)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.event,(g,A)=>(l.openBlock(),l.createElementBlock("div",{key:"event-"+w+"-"+A,class:"event",style:l.normalizeStyle({left:ce(A===0?w-1.5:w-1.5+A*.3)})},[(g==null?void 0:g.team)==="local"?(l.openBlock(),l.createElementBlock("span",os,[(g==null?void 0:g.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",as,a[22]||(a[22]=[l.createElementVNode("rect",{x:"0.507812",y:"0.375488",width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#F7C330"},null,-1)]))):(g==null?void 0:g.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ls,a[23]||(a[23]=[l.createElementVNode("rect",{width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#E5152D"},null,-1)]))):(g==null?void 0:g.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",cs,a[24]||(a[24]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-81c12f69></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-81c12f69></ellipse><path fill="#fff" d="M24.03,36.05c-6.65,0-12.05-5.41-12.05-12.05s5.41-12.05,12.05-12.05,12.05,5.41,12.05,12.05-5.41,12.05-12.05,12.05Zm0-23.1c-6.1,0-11.05,4.96-11.05,11.05s4.96,11.05,11.05,11.05,11.05-4.96,11.05-11.05-4.96-11.05-11.05-11.05Z" data-v-81c12f69></path><path fill="#fff" d="M27.22,29.38h-6.35c-.22,0-.41-.14-.48-.35l-1.96-6.06c-.07-.21,0-.43,.18-.56l5.14-3.74c.18-.13,.41-.13,.59,0l5.14,3.74c.17,.13,.25,.35,.18,.56l-1.96,6.06c-.07,.21-.26,.35-.48,.35Zm-5.99-1h5.62l1.74-5.37-4.55-3.32-4.55,3.32,1.74,5.37Z" data-v-81c12f69></path><path fill="#fff" d="M24.06,15.71c-.07,0-.13-.01-.2-.04l-4.38-1.87c-.25-.11-.37-.4-.26-.66,.11-.25,.4-.37,.66-.26l4.18,1.78,4.18-1.78c.25-.11,.55,0,.66,.26,.11,.25,0,.55-.26,.66l-4.38,1.87c-.06,.03-.13,.04-.2,.04Z" data-v-81c12f69></path><path fill="#fff" d="M12.62,25.37c-.12,0-.23-.04-.33-.12-.21-.18-.23-.5-.05-.71l2.99-3.44-.4-4.54c-.02-.27,.18-.52,.45-.54,.27-.03,.52,.18,.54,.45l.42,4.75c.01,.14-.03,.27-.12,.37l-3.12,3.6c-.1,.11-.24,.17-.38,.17Z" data-v-81c12f69></path><path fill="#fff" d="M21.37,35.66c-.17,0-.34-.09-.43-.24l-2.34-3.91-4.43-1.02c-.27-.06-.44-.33-.38-.6s.33-.44,.6-.38l4.64,1.07c.13,.03,.25,.11,.32,.23l2.45,4.09c.14,.24,.06,.54-.17,.69-.08,.05-.17,.07-.26,.07Z" data-v-81c12f69></path><path fill="#fff" d="M26.75,35.66c-.09,0-.18-.02-.26-.07-.24-.14-.31-.45-.17-.69l2.44-4.09c.07-.12,.18-.2,.32-.23l4.63-1.07c.27-.06,.54,.11,.6,.38s-.11,.54-.38,.6l-4.43,1.02-2.33,3.91c-.09,.16-.26,.24-.43,.24Z" data-v-81c12f69></path><path fill="#fff" d="M35.5,25.37c-.14,0-.28-.06-.38-.17l-3.13-3.6c-.09-.1-.13-.24-.12-.37l.42-4.75c.02-.27,.27-.48,.54-.45,.28,.02,.48,.27,.45,.54l-.4,4.54,2.99,3.44c.18,.21,.16,.52-.05,.71-.09,.08-.21,.12-.33,.12Z" data-v-81c12f69></path><path fill="#fff" d="M24.05,19.58c-.28,0-.5-.22-.5-.5v-3.87c0-.28,.22-.5,.5-.5s.5,.22,.5,.5v3.87c0,.28-.22,.5-.5,.5Z" data-v-81c12f69></path><path fill="#fff" d="M29.21,23.47c-.18,0-.35-.1-.44-.26-.13-.24-.04-.55,.2-.68l3.17-1.7c.25-.13,.55-.04,.68,.2,.13,.24,.04,.55-.2,.68l-3.17,1.7c-.08,.04-.16,.06-.24,.06Z" data-v-81c12f69></path><path fill="#fff" d="M29.2,31.57c-.14,0-.27-.06-.37-.17l-1.96-2.19c-.18-.21-.17-.52,.04-.71,.21-.18,.52-.17,.71,.04l1.96,2.19c.18,.21,.17,.52-.04,.71-.1,.09-.21,.13-.33,.13Z" data-v-81c12f69></path><path fill="#fff" d="M18.91,31.57c-.12,0-.24-.04-.33-.13-.21-.18-.22-.5-.04-.71l1.96-2.19c.19-.21,.5-.22,.71-.04,.21,.18,.22,.5,.04,.71l-1.96,2.19c-.1,.11-.24,.17-.37,.17Z" data-v-81c12f69></path><path fill="#fff" d="M18.93,23.32c-.07,0-.15-.02-.22-.05l-3.17-1.55c-.25-.12-.35-.42-.23-.67,.12-.25,.42-.35,.67-.23l3.17,1.55c.25,.12,.35,.42,.23,.67-.09,.18-.26,.28-.45,.28Z" data-v-81c12f69></path>',14)]))):(g==null?void 0:g.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",us,a[25]||(a[25]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-81c12f69></circle><path fill="#fff" d="M31.62,23.86c-.19,0-.37-.07-.52-.21-.3-.29-.31-.76-.03-1.06l2.89-3.04-2.89-3.04c-.29-.3-.27-.77,.03-1.06,.3-.29,.77-.27,1.06,.03l3.39,3.56c.28,.29,.28,.74,0,1.03l-3.39,3.56c-.15,.15-.34,.23-.54,.23Z" data-v-81c12f69></path><path fill="#fff" d="M34.99,20.31H16.37c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h18.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-81c12f69></path><path fill="#fff" d="M16.38,32.75c-.2,0-.4-.08-.54-.23l-3.38-3.56c-.28-.29-.28-.74,0-1.03l3.38-3.56c.28-.3,.76-.31,1.06-.03,.3,.29,.31,.76,.03,1.06l-2.89,3.04,2.89,3.04c.29,.3,.27,.78-.03,1.06-.15,.14-.33,.21-.52,.21Z" data-v-81c12f69></path><path fill="#fff" d="M31.62,29.19H13c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75H31.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-81c12f69></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(g==null?void 0:g.icon)},null,2))])):l.createCommentVNode("",!0),l.createElementVNode("span",fs,l.toDisplayString((g==null?void 0:g.minuteLabel)||y.minute)+"'",1),(g==null?void 0:g.team)==="visitante"?(l.openBlock(),l.createElementBlock("span",ds,[(g==null?void 0:g.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",ms,a[26]||(a[26]=[l.createElementVNode("rect",{x:"0.507812",y:"0.375488",width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#F7C330"},null,-1)]))):(g==null?void 0:g.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ps,a[27]||(a[27]=[l.createElementVNode("rect",{width:"22.7873",height:"22.8364",rx:"11.3937",fill:"none"},null,-1),l.createElementVNode("rect",{x:"8",y:"7",width:"6.8362",height:"9.13458",rx:"2.28119",fill:"#E5152D"},null,-1)]))):(g==null?void 0:g.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",hs,a[28]||(a[28]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-81c12f69></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-81c12f69></ellipse><path fill="#fff" d="M24.03,36.05c-6.65,0-12.05-5.41-12.05-12.05s5.41-12.05,12.05-12.05,12.05,5.41,12.05,12.05-5.41,12.05-12.05,12.05Zm0-23.1c-6.1,0-11.05,4.96-11.05,11.05s4.96,11.05,11.05,11.05,11.05-4.96,11.05-11.05-4.96-11.05-11.05-11.05Z" data-v-81c12f69></path><path fill="#fff" d="M27.22,29.38h-6.35c-.22,0-.41-.14-.48-.35l-1.96-6.06c-.07-.21,0-.43,.18-.56l5.14-3.74c.18-.13,.41-.13,.59,0l5.14,3.74c.17,.13,.25,.35,.18,.56l-1.96,6.06c-.07,.21-.26,.35-.48,.35Zm-5.99-1h5.62l1.74-5.37-4.55-3.32-4.55,3.32,1.74,5.37Z" data-v-81c12f69></path><path fill="#fff" d="M24.06,15.71c-.07,0-.13-.01-.2-.04l-4.38-1.87c-.25-.11-.37-.4-.26-.66,.11-.25,.4-.37,.66-.26l4.18,1.78,4.18-1.78c.25-.11,.55,0,.66,.26,.11,.25,0,.55-.26,.66l-4.38,1.87c-.06,.03-.13,.04-.2,.04Z" data-v-81c12f69></path><path fill="#fff" d="M12.62,25.37c-.12,0-.23-.04-.33-.12-.21-.18-.23-.5-.05-.71l2.99-3.44-.4-4.54c-.02-.27,.18-.52,.45-.54,.27-.03,.52,.18,.54,.45l.42,4.75c.01,.14-.03,.27-.12,.37l-3.12,3.6c-.1,.11-.24,.17-.38,.17Z" data-v-81c12f69></path><path fill="#fff" d="M21.37,35.66c-.17,0-.34-.09-.43-.24l-2.34-3.91-4.43-1.02c-.27-.06-.44-.33-.38-.6s.33-.44,.6-.38l4.64,1.07c.13,.03,.25,.11,.32,.23l2.45,4.09c.14,.24,.06,.54-.17,.69-.08,.05-.17,.07-.26,.07Z" data-v-81c12f69></path><path fill="#fff" d="M26.75,35.66c-.09,0-.18-.02-.26-.07-.24-.14-.31-.45-.17-.69l2.44-4.09c.07-.12,.18-.2,.32-.23l4.63-1.07c.27-.06,.54,.11,.6,.38s-.11,.54-.38,.6l-4.43,1.02-2.33,3.91c-.09,.16-.26,.24-.43,.24Z" data-v-81c12f69></path><path fill="#fff" d="M35.5,25.37c-.14,0-.28-.06-.38-.17l-3.13-3.6c-.09-.1-.13-.24-.12-.37l.42-4.75c.02-.27,.27-.48,.54-.45,.28,.02,.48,.27,.45,.54l-.4,4.54,2.99,3.44c.18,.21,.16,.52-.05,.71-.09,.08-.21,.12-.33,.12Z" data-v-81c12f69></path><path fill="#fff" d="M24.05,19.58c-.28,0-.5-.22-.5-.5v-3.87c0-.28,.22-.5,.5-.5s.5,.22,.5,.5v3.87c0,.28-.22,.5-.5,.5Z" data-v-81c12f69></path><path fill="#fff" d="M29.21,23.47c-.18,0-.35-.1-.44-.26-.13-.24-.04-.55,.2-.68l3.17-1.7c.25-.13,.55-.04,.68,.2,.13,.24,.04,.55-.2,.68l-3.17,1.7c-.08,.04-.16,.06-.24,.06Z" data-v-81c12f69></path><path fill="#fff" d="M29.2,31.57c-.14,0-.27-.06-.37-.17l-1.96-2.19c-.18-.21-.17-.52,.04-.71,.21-.18,.52-.17,.71,.04l1.96,2.19c.18,.21,.17,.52-.04,.71-.1,.09-.21,.13-.33,.13Z" data-v-81c12f69></path><path fill="#fff" d="M18.91,31.57c-.12,0-.24-.04-.33-.13-.21-.18-.22-.5-.04-.71l1.96-2.19c.19-.21,.5-.22,.71-.04,.21,.18,.22,.5,.04,.71l-1.96,2.19c-.1,.11-.24,.17-.37,.17Z" data-v-81c12f69></path><path fill="#fff" d="M18.93,23.32c-.07,0-.15-.02-.22-.05l-3.17-1.55c-.25-.12-.35-.42-.23-.67,.12-.25,.42-.35,.67-.23l3.17,1.55c.25,.12,.35,.42,.23,.67-.09,.18-.26,.28-.45,.28Z" data-v-81c12f69></path>',14)]))):(g==null?void 0:g.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",gs,a[29]||(a[29]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-81c12f69></circle><path fill="#fff" d="M31.62,23.86c-.19,0-.37-.07-.52-.21-.3-.29-.31-.76-.03-1.06l2.89-3.04-2.89-3.04c-.29-.3-.27-.77,.03-1.06,.3-.29,.77-.27,1.06,.03l3.39,3.56c.28,.29,.28,.74,0,1.03l-3.39,3.56c-.15,.15-.34,.23-.54,.23Z" data-v-81c12f69></path><path fill="#fff" d="M34.99,20.31H16.37c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h18.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-81c12f69></path><path fill="#fff" d="M16.38,32.75c-.2,0-.4-.08-.54-.23l-3.38-3.56c-.28-.29-.28-.74,0-1.03l3.38-3.56c.28-.3,.76-.31,1.06-.03,.3,.29,.31,.76,.03,1.06l-2.89,3.04,2.89,3.04c.29,.3,.27,.78-.03,1.06-.15,.14-.33,.21-.52,.21Z" data-v-81c12f69></path><path fill="#fff" d="M31.62,29.19H13c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75H31.62c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z" data-v-81c12f69></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(g==null?void 0:g.icon)},null,2))])):l.createCommentVNode("",!0)],4))),128))],64))),256)),l.createElementVNode("span",{class:"minute-ball minute-ball-edge minute-ball-center",style:l.normalizeStyle({left:ce(p.value.length-1)})},l.toDisplayString(b.value)+"'",5),l.createElementVNode("div",{class:"range-indicator",style:l.normalizeStyle({left:ce(d.value),width:E.value})},[l.createElementVNode("div",{class:"handle left",onMousedown:a[4]||(a[4]=y=>W("left",y)),onTouchstart:a[5]||(a[5]=y=>W("left",y))},[(l.openBlock(),l.createElementBlock("svg",ys,a[30]||(a[30]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)]))),a[32]||(a[32]=l.createElementVNode("div",{style:{flex:"1"}},null,-1)),(l.openBlock(),l.createElementBlock("svg",ws,a[31]||(a[31]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32),l.createElementVNode("span",{class:"range-dot range-dot-left",onMousedown:a[6]||(a[6]=y=>W("left",y)),onTouchstart:a[7]||(a[7]=y=>W("left",y))},null,32),a[36]||(a[36]=l.createElementVNode("div",{class:"range-line"},null,-1)),l.createElementVNode("span",{class:"range-dot range-dot-right",onMousedown:a[8]||(a[8]=y=>W("right",y)),onTouchstart:a[9]||(a[9]=y=>W("right",y))},null,32),l.createElementVNode("div",{class:"handle right",onMousedown:a[10]||(a[10]=y=>W("right",y)),onTouchstart:a[11]||(a[11]=y=>W("right",y))},[(l.openBlock(),l.createElementBlock("svg",bs,a[33]||(a[33]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)]))),a[35]||(a[35]=l.createElementVNode("div",{style:{flex:"1"}},null,-1)),(l.openBlock(),l.createElementBlock("svg",Es,a[34]||(a[34]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32)],4)])],4)],544)])],6))}},[["__scopeId","data-v-81c12f69"]]),vs={__name:"gsc-timeline-reports",props:{gameId:{type:Number,required:!0},homeTeam:{type:Number,required:!0},awayTeam:{type:Number,required:!0},isDefault:{type:Boolean,required:!1},goals:{type:Boolean,default:!0},yellowCards:{type:Boolean,default:!0},redCards:{type:Boolean,default:!0},substitutions:{type:Boolean,default:!0},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},setup(e){const t=e,n=l.ref(null),s=l.ref(0),i=l.ref(0);let r=null;function o(){if(n.value){const f=n.value.offsetWidth;s.value=f>0?f-80:0}}return l.watch(s,(f,b)=>{f!==b&&setTimeout(()=>{i.value++},100)}),l.onMounted(()=>{l.nextTick(()=>{setTimeout(()=>{o()},100),n.value&&window.ResizeObserver&&(r=new ResizeObserver(()=>{o()}),r.observe(n.value)),window.addEventListener("resize",o)})}),l.onBeforeUnmount(()=>{r&&r.disconnect(),window.removeEventListener("resize",o)}),(f,b)=>(l.openBlock(),l.createElementBlock("div",{class:"container-fullwidth",ref_key:"containerRef",ref:n},[(l.openBlock(),l.createBlock(xs,{"is-default":e.isDefault,key:s.value,"timeline-width":s.value,"game-id":t.gameId,"home-team":t.homeTeam,"away-team":t.awayTeam,token:t.token,goals:t.goals,"yellow-cards":t.yellowCards,"red-cards":t.redCards,substitutions:t.substitutions},null,8,["is-default","timeline-width","game-id","home-team","away-team","token","goals","yellow-cards","red-cards","substitutions"]))],512))}};$.GSCTimelineReports=vs,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-timeline-reports",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "dist/gsc-timeline-reports.umd.js",
5
5
  "module": "dist/gsc-timeline-reports.es.js",
6
6
  "exports": {
@@ -454,11 +454,9 @@ async function fetchGameData() {
454
454
  e.match_lapse === 1 &&
455
455
  shouldShowEvent(e) &&
456
456
  (e.category_id === 9 ||
457
- e.category_id === 3 ||
457
+ e.category_id === 8 ||
458
458
  e.event_type_id === 1 ||
459
- e.event_type_id === 2 ||
460
- e.category_id === 10 ||
461
- e.category_id === 13 ||
459
+ e.event_type_id === 3 ||
462
460
  (e.event_type_id === 6 &&
463
461
  e.comments?.includes('El árbitro silba el Final del Primer Tiempo'))),
464
462
  )
@@ -500,11 +498,9 @@ async function fetchGameData() {
500
498
  e.match_lapse === 2 &&
501
499
  shouldShowEvent(e) &&
502
500
  (e.category_id === 9 ||
503
- e.category_id === 3 ||
501
+ e.category_id === 8 ||
504
502
  e.event_type_id === 1 ||
505
- e.event_type_id === 2 ||
506
- e.category_id === 10 ||
507
- e.category_id === 13),
503
+ e.event_type_id === 3),
508
504
  )
509
505
  const events = []
510
506
  eventsFound.forEach((event) => {
@@ -616,7 +612,7 @@ function getEventIcon(eventTypeId, event) {
616
612
  // Función para filtrar eventos según las props de visibilidad
617
613
  function shouldShowEvent(event) {
618
614
  // Goles: event_type_id === 1 o category_id === 3 o category_id === 13
619
- if (event.event_type_id === 1 || event.category_id === 3 || event.category_id === 13) {
615
+ if (event.event_type_id === 1) {
620
616
  if (!props.goals) {
621
617
  return false
622
618
  }
@@ -624,7 +620,7 @@ function shouldShowEvent(event) {
624
620
  }
625
621
 
626
622
  // Tarjetas amarillas: event_type_id === 2 o category_id === 9 (pero no rojas)
627
- if (event.event_type_id === 2 || (event.category_id === 9 && !event.comments?.includes('roja'))) {
623
+ if (event.category_id === 8) {
628
624
  if (!props.yellowCards) {
629
625
  return false
630
626
  }
@@ -632,7 +628,7 @@ function shouldShowEvent(event) {
632
628
  }
633
629
 
634
630
  // Tarjetas rojas: category_id === 9 con comentario que incluya "roja"
635
- if (event.category_id === 9 && event.comments?.includes('roja')) {
631
+ if (event.category_id === 9) {
636
632
  if (!props.redCards) {
637
633
  return false
638
634
  }
@@ -640,7 +636,7 @@ function shouldShowEvent(event) {
640
636
  }
641
637
 
642
638
  // Cambios: category_id === 10
643
- if (event.category_id === 10) {
639
+ if (event.event_type_id === 3) {
644
640
  if (!props.substitutions) {
645
641
  return false
646
642
  }