@golstats/gsc-timeline-reports 1.1.0 → 1.1.1
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)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=U("ArrayBuffer");function Bt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const Ct=pe("string"),P=pe("function"),We=pe("number"),ie=e=>e!==null&&typeof e=="object",It=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)},Pt=e=>{if(!ie(e)||se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Lt=U("Date"),Ft=U("File"),Dt=U("Blob"),Ut=U("FileList"),Ht=e=>ie(e)&&P(e.pipe),jt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=me(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},qt=U("URLSearchParams"),[Vt,zt,Wt,$t]=["ReadableStream","Request","Response","Headers"].map(U),Zt=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 Jt=(e,t,n,{allOwnKeys:s}={})=>(re(t,(i,r)=>{n&&P(i)?e[r]=qe(i,n):e[r]=i},{allOwnKeys:s}),e),Xt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kt=(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)},Gt=(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},Qt=(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},Yt=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},en=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Te(Uint8Array)),tn=(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])}},nn=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},sn=U("HTMLFormElement"),rn=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),on=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)},an=e=>{Xe(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(P(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+"'")})}})},ln=(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return Y(e)?s(e):s(String(e).split(t)),n},cn=()=>{},un=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function fn(e){return!!(e&&P(e.append)&&e[Ve]==="FormData"&&e[de])}const dn=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)},mn=U("AsyncFunction"),pn=e=>e&&(ie(e)||P(e))&&P(e.then)&&P(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",P(Z.postMessage)),hn=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||Ke,c={isArray:Y,isArrayBuffer:ze,isBuffer:se,isFormData:jt,isArrayBufferView:Bt,isString:Ct,isNumber:We,isBoolean:It,isObject:ie,isPlainObject:he,isEmptyObject:Pt,isReadableStream:Vt,isRequest:zt,isResponse:Wt,isHeaders:$t,isUndefined:ne,isDate:Lt,isFile:Ft,isBlob:Dt,isRegExp:on,isFunction:P,isStream:Ht,isURLSearchParams:qt,isTypedArray:en,isFileList:Ut,forEach:re,merge:Oe,extend:Jt,trim:Zt,stripBOM:Xt,inherits:Kt,toFlatObject:Gt,kindOf:me,kindOfTest:U,endsWith:Qt,toArray:Yt,forEachEntry:tn,matchAll:nn,isHTMLForm:sn,hasOwnProperty:Je,hasOwnProp:Je,reduceDescriptors:Xe,freezeMethods:an,toObjectSet:ln,toCamelCase:rn,noop:cn,toFiniteNumber:un,findKey:$e,global:Z,isContextDefined:Ze,isSpecCompliantForm:fn,toJSONObject:dn,isAsyncFn:mn,isThenable:pn,setImmediate:Ke,asap:hn,isIterable:e=>e!=null&&P(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 gn=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 yn(e){return c.isArray(e)&&!e.some(ke)}const wn=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,E){return!c.isUndefined(E[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(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!b&&c.isBlob(p))throw new _("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?b&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function m(p,S,E){let R=p;if(p&&!E&&typeof p=="object"){if(c.endsWith(S,"{}"))S=s?S:S.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&yn(p)||(c.isFileList(p)||c.endsWith(S,"[]"))&&(R=c.toArray(p)))return S=Ye(S),R.forEach(function(T,I){!(c.isUndefined(T)||T===null)&&t.append(o===!0?et([S],I,r):o===null?S:S+"[]",d(T))}),!1}return ke(p)?!0:(t.append(et(E,S,r),d(p)),!1)}const v=[],h=Object.assign(wn,{defaultVisitor:m,convertValue:d,isVisitable:ke});function A(p,S){if(!c.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(p),c.forEach(p,function(R,O){(!(c.isUndefined(R)||R===null)&&i.call(t,R,c.isString(O)?O.trim():O,S,h))===!0&&A(R,S?S.concat(O):[O])}),v.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return A(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 Ne(e,t){this._pairs=[],e&&ge(e,this,t)}const nt=Ne.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 bn(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||bn;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 Ne(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},En={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ne,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ae=typeof window<"u"&&typeof document<"u",Me=typeof navigator=="object"&&navigator||void 0,vn=Ae&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),xn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_n=Ae&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:vn,hasStandardBrowserWebWorkerEnv:xn,navigator:Me,origin:_n},Symbol.toStringTag,{value:"Module"})),...En};function Sn(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 Rn(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tn(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]=Tn(i[o])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,i)=>{t(Rn(s),i,n,0)}),n}return null}function On(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 Sn(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),On(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 kn=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"]),Nn=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]&&
|
|
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]||(Cn(i,o),s[f]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}};L.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(L.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),c.freezeMethods(L);function Ce(e,t){const n=this||oe,s=t||n,i=L.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 In(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pn(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 v=r,h=0;for(;v!==i;)h+=n[v++],v=v%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const A=m&&d-m;return A?Math.round(h*1e3/A):void 0}}function Ln(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(),v=m-n;v>=s?o(d,m):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},s-v)))},()=>i&&o(i)]}const we=(e,t,n=3)=>{let s=0;const i=Pn(50,250);return Ln(r=>{const o=r.loaded,f=r.lengthComputable?r.total:void 0,b=o-s,d=i(b),m=o<=f;s=o;const v={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(v)},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)),Fn=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,Dn=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 Un(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dt(e,t,n){let s=!Un(t);return e&&(s||n==!1)?Hn(e,t):t}const mt=e=>e instanceof L?{...e}:e;function J(e,t){t=t||{};const n={};function s(d,m,v,h){return c.isPlainObject(d)&&c.isPlainObject(m)?c.merge.call({caseless:h},d,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function i(d,m,v,h){if(c.isUndefined(m)){if(!c.isUndefined(d))return s(void 0,d,v,h)}else return s(d,m,v,h)}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,v){if(v in t)return s(d,m);if(v 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,v)=>i(mt(d),mt(m),v,!0)};return c.forEach(Object.keys({...e,...t}),function(m){const v=b[m]||i,h=v(e[m],t[m],m);c.isUndefined(h)&&v!==f||(n[m]=h)}),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=L.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(v=>v.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...m].join("; "))}}if(C.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&Fn(t.url))){const d=i&&r&&Dn.read(r);d&&o.set(i,d)}return t},jn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=pt(e);let r=i.data;const o=L.from(i.headers).normalize();let{responseType:f,onUploadProgress:b,onDownloadProgress:d}=i,m,v,h,A,p;function S(){A&&A(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function R(){if(!E)return;const T=L.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!f||f==="text"||f==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:T,config:e,request:E};ct(function(q){n(q),S()},function(q){s(q),S()},M),E=null}"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(R)},E.onabort=function(){E&&(s(new _("Request aborted",_.ECONNABORTED,e,E)),E=null)},E.onerror=function(){s(new _("Network Error",_.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let I=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const M=i.transitional||rt;i.timeoutErrorMessage&&(I=i.timeoutErrorMessage),s(new _(I,M.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,E)),E=null},r===void 0&&o.setContentType(null),"setRequestHeader"in E&&c.forEach(o.toJSON(),function(I,M){E.setRequestHeader(M,I)}),c.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),f&&f!=="json"&&(E.responseType=i.responseType),d&&([h,p]=we(d,!0),E.addEventListener("progress",h)),b&&E.upload&&([v,A]=we(b),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(m=T=>{E&&(s(!T||T.type?new ee(null,e,E):T),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=In(i.url);if(O&&C.protocols.indexOf(O)===-1){s(new _("Unsupported protocol "+O+":",_.ERR_BAD_REQUEST,e));return}E.send(r||null)})},qn=(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}},Vn=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},zn=async function*(e,t){for await(const n of Wn(e))yield*Vn(n,t)},Wn=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=zn(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 v=m.byteLength;if(n){let h=r+=v;n(h)}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",$n=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}},Zn=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 Jn=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 $n(e)).byteLength},Xn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??Jn(t)},Pe={http:gn,xhr:jn,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:v="same-origin",fetchOptions:h}=pt(e);d=d?(d+"").toLowerCase():"text";let A=qn([i,r&&r.toAbortSignal()],o),p;const S=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let E;try{if(b&&Zn&&n!=="get"&&n!=="head"&&(E=await Xn(m,s))!==0){let M=new Request(t,{method:"POST",body:s,duplex:"half"}),j;if(c.isFormData(s)&&(j=M.headers.get("content-type"))&&m.setContentType(j),M.body){const[q,z]=ut(E,we(ft(b)));s=ht(M.body,wt,q,z)}}c.isString(v)||(v=v?"include":"omit");const R="credentials"in Request.prototype;p=new Request(t,{...h,signal:A,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:R?v:void 0});let O=await fetch(p,h);const T=Ie&&(d==="stream"||d==="response");if(Ie&&(f||T&&S)){const M={};["status","statusText","headers"].forEach(te=>{M[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()}),M)}d=d||"text";let I=await Ee[c.findKey(Ee,d)||"text"](O,e);return!T&&S&&S(),await new Promise((M,j)=>{ct(M,j,{data:I,headers:L.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:p})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,e,p),{cause:R.cause||R}):_.from(R,R&&R.code,e,p)}})};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}`,Kn=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,!Kn(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 :
|
|
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:Bt}=Object.prototype,{getPrototypeOf:Te}=Object,{iterator:de,toStringTag:Ve}=Symbol,me=(e=>t=>{const n=Bt.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)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ze=U("ArrayBuffer");function Ct(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ze(e.buffer),t}const It=pe("string"),P=pe("function"),We=pe("number"),ie=e=>e!==null&&typeof e=="object",Pt=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)},Lt=e=>{if(!ie(e)||se(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ft=U("Date"),Dt=U("File"),Ut=U("Blob"),Ht=U("FileList"),jt=e=>ie(e)&&P(e.pipe),qt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=me(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},Vt=U("URLSearchParams"),[zt,Wt,$t,Zt]=["ReadableStream","Request","Response","Headers"].map(U),Jt=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 Xt=(e,t,n,{allOwnKeys:s}={})=>(re(t,(i,r)=>{n&&P(i)?e[r]=qe(i,n):e[r]=i},{allOwnKeys:s}),e),Kt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gt=(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)},Qt=(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},Yt=(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},en=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},tn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Te(Uint8Array)),nn=(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])}},sn=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},rn=U("HTMLFormElement"),on=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),an=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)},ln=e=>{Xe(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(P(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+"'")})}})},cn=(e,t)=>{const n={},s=i=>{i.forEach(r=>{n[r]=!0})};return Y(e)?s(e):s(String(e).split(t)),n},un=()=>{},fn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function dn(e){return!!(e&&P(e.append)&&e[Ve]==="FormData"&&e[de])}const mn=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)},pn=U("AsyncFunction"),hn=e=>e&&(ie(e)||P(e))&&P(e.then)&&P(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",P(Z.postMessage)),gn=typeof queueMicrotask<"u"?queueMicrotask.bind(Z):typeof process<"u"&&process.nextTick||Ke,c={isArray:Y,isArrayBuffer:ze,isBuffer:se,isFormData:qt,isArrayBufferView:Ct,isString:It,isNumber:We,isBoolean:Pt,isObject:ie,isPlainObject:he,isEmptyObject:Lt,isReadableStream:zt,isRequest:Wt,isResponse:$t,isHeaders:Zt,isUndefined:ne,isDate:Ft,isFile:Dt,isBlob:Ut,isRegExp:an,isFunction:P,isStream:jt,isURLSearchParams:Vt,isTypedArray:tn,isFileList:Ht,forEach:re,merge:Oe,extend:Xt,trim:Jt,stripBOM:Kt,inherits:Gt,toFlatObject:Qt,kindOf:me,kindOfTest:U,endsWith:Yt,toArray:en,forEachEntry:nn,matchAll:sn,isHTMLForm:rn,hasOwnProperty:Je,hasOwnProp:Je,reduceDescriptors:Xe,freezeMethods:ln,toObjectSet:cn,toCamelCase:on,noop:un,toFiniteNumber:fn,findKey:$e,global:Z,isContextDefined:Ze,isSpecCompliantForm:dn,toJSONObject:mn,isAsyncFn:pn,isThenable:hn,setImmediate:Ke,asap:gn,isIterable:e=>e!=null&&P(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 yn=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 wn(e){return c.isArray(e)&&!e.some(ke)}const bn=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,E){return!c.isUndefined(E[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(p){if(p===null)return"";if(c.isDate(p))return p.toISOString();if(c.isBoolean(p))return p.toString();if(!b&&c.isBlob(p))throw new _("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(p)||c.isTypedArray(p)?b&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function m(p,S,E){let R=p;if(p&&!E&&typeof p=="object"){if(c.endsWith(S,"{}"))S=s?S:S.slice(0,-2),p=JSON.stringify(p);else if(c.isArray(p)&&wn(p)||(c.isFileList(p)||c.endsWith(S,"[]"))&&(R=c.toArray(p)))return S=Ye(S),R.forEach(function(T,I){!(c.isUndefined(T)||T===null)&&t.append(o===!0?et([S],I,r):o===null?S:S+"[]",d(T))}),!1}return ke(p)?!0:(t.append(et(E,S,r),d(p)),!1)}const v=[],h=Object.assign(bn,{defaultVisitor:m,convertValue:d,isVisitable:ke});function A(p,S){if(!c.isUndefined(p)){if(v.indexOf(p)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(p),c.forEach(p,function(R,O){(!(c.isUndefined(R)||R===null)&&i.call(t,R,c.isString(O)?O.trim():O,S,h))===!0&&A(R,S?S.concat(O):[O])}),v.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return A(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 Ne(e,t){this._pairs=[],e&&ge(e,this,t)}const nt=Ne.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 En(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||En;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 Ne(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},vn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ne,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ae=typeof window<"u"&&typeof document<"u",Me=typeof navigator=="object"&&navigator||void 0,xn=Ae&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0),_n=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sn=Ae&&window.location.href||"http://localhost",C={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:xn,hasStandardBrowserWebWorkerEnv:_n,navigator:Me,origin:Sn},Symbol.toStringTag,{value:"Module"})),...vn};function Rn(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 Tn(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function On(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]=On(i[o])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(s,i)=>{t(Tn(s),i,n,0)}),n}return null}function kn(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 Rn(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),kn(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 Nn=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"]),An=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]&&Nn[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 Mn(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 Bn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Be(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 Cn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function In(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 L=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 v=c.findKey(i,m);(!v||i[v]===void 0||d===!0||d===void 0&&i[v]!==!1)&&(i[v||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())&&!Bn(t))o(An(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 Mn(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||Be(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||Be(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||Be(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?Cn(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]||(In(i,o),s[f]=!0)}return c.isArray(t)?t.forEach(r):r(t),this}};L.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(L.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}}),c.freezeMethods(L);function Ce(e,t){const n=this||oe,s=t||n,i=L.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 Pn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ln(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 v=r,h=0;for(;v!==i;)h+=n[v++],v=v%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),d-o<t)return;const A=m&&d-m;return A?Math.round(h*1e3/A):void 0}}function Fn(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(),v=m-n;v>=s?o(d,m):(i=d,r||(r=setTimeout(()=>{r=null,o(i)},s-v)))},()=>i&&o(i)]}const we=(e,t,n=3)=>{let s=0;const i=Ln(50,250);return Fn(r=>{const o=r.loaded,f=r.lengthComputable?r.total:void 0,b=o-s,d=i(b),m=o<=f;s=o;const v={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(v)},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)),Dn=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,Un=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 Hn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dt(e,t,n){let s=!Hn(t);return e&&(s||n==!1)?jn(e,t):t}const mt=e=>e instanceof L?{...e}:e;function J(e,t){t=t||{};const n={};function s(d,m,v,h){return c.isPlainObject(d)&&c.isPlainObject(m)?c.merge.call({caseless:h},d,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function i(d,m,v,h){if(c.isUndefined(m)){if(!c.isUndefined(d))return s(void 0,d,v,h)}else return s(d,m,v,h)}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,v){if(v in t)return s(d,m);if(v 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,v)=>i(mt(d),mt(m),v,!0)};return c.forEach(Object.keys({...e,...t}),function(m){const v=b[m]||i,h=v(e[m],t[m],m);c.isUndefined(h)&&v!==f||(n[m]=h)}),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=L.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(v=>v.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...m].join("; "))}}if(C.hasStandardBrowserEnv&&(s&&c.isFunction(s)&&(s=s(t)),s||s!==!1&&Dn(t.url))){const d=i&&r&&Un.read(r);d&&o.set(i,d)}return t},qn=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,s){const i=pt(e);let r=i.data;const o=L.from(i.headers).normalize();let{responseType:f,onUploadProgress:b,onDownloadProgress:d}=i,m,v,h,A,p;function S(){A&&A(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function R(){if(!E)return;const T=L.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),M={data:!f||f==="text"||f==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:T,config:e,request:E};ct(function(q){n(q),S()},function(q){s(q),S()},M),E=null}"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(R)},E.onabort=function(){E&&(s(new _("Request aborted",_.ECONNABORTED,e,E)),E=null)},E.onerror=function(){s(new _("Network Error",_.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let I=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const M=i.transitional||rt;i.timeoutErrorMessage&&(I=i.timeoutErrorMessage),s(new _(I,M.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,e,E)),E=null},r===void 0&&o.setContentType(null),"setRequestHeader"in E&&c.forEach(o.toJSON(),function(I,M){E.setRequestHeader(M,I)}),c.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),f&&f!=="json"&&(E.responseType=i.responseType),d&&([h,p]=we(d,!0),E.addEventListener("progress",h)),b&&E.upload&&([v,A]=we(b),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(m=T=>{E&&(s(!T||T.type?new ee(null,e,E):T),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const O=Pn(i.url);if(O&&C.protocols.indexOf(O)===-1){s(new _("Unsupported protocol "+O+":",_.ERR_BAD_REQUEST,e));return}E.send(r||null)})},Vn=(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}},zn=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},Wn=async function*(e,t){for await(const n of $n(e))yield*zn(n,t)},$n=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=Wn(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 v=m.byteLength;if(n){let h=r+=v;n(h)}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}},Jn=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 Xn=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},Kn=async(e,t)=>{const n=c.toFiniteNumber(e.getContentLength());return n??Xn(t)},Pe={http:yn,xhr:qn,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:v="same-origin",fetchOptions:h}=pt(e);d=d?(d+"").toLowerCase():"text";let A=Vn([i,r&&r.toAbortSignal()],o),p;const S=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let E;try{if(b&&Jn&&n!=="get"&&n!=="head"&&(E=await Kn(m,s))!==0){let M=new Request(t,{method:"POST",body:s,duplex:"half"}),j;if(c.isFormData(s)&&(j=M.headers.get("content-type"))&&m.setContentType(j),M.body){const[q,z]=ut(E,we(ft(b)));s=ht(M.body,wt,q,z)}}c.isString(v)||(v=v?"include":"omit");const R="credentials"in Request.prototype;p=new Request(t,{...h,signal:A,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:s,duplex:"half",credentials:R?v:void 0});let O=await fetch(p,h);const T=Ie&&(d==="stream"||d==="response");if(Ie&&(f||T&&S)){const M={};["status","statusText","headers"].forEach(te=>{M[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()}),M)}d=d||"text";let I=await Ee[c.findKey(Ee,d)||"text"](O,e);return!T&&S&&S(),await new Promise((M,j)=>{ct(M,j,{data:I,headers:L.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:p})})}catch(R){throw S&&S(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new _("Network Error",_.ERR_NETWORK,e,p),{cause:R.cause||R}):_.from(R,R&&R.code,e,p)}})};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}`,Gn=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,!Gn(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 _("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 vt(e){return Le(e),e.headers=L.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=L.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=L.from(s.response.headers))),Promise.reject(s)})}const xt="1.11.0",ve={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ve[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const _t={};ve.transitional=function(t,n,s){function i(r,o){return"[Axios v"+xt+"] 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}},ve.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function
|
|
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&&xe.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}:xe.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),xe.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"],p=>{delete r[p]}),n.headers=L.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,v=0,h;if(!b){const p=[vt.bind(this),void 0];for(p.unshift(...f),p.push(...d),h=p.length,m=Promise.resolve(n);v<h;)m=m.then(p[v++],p[v++]);return m}h=f.length;let A=n;for(v=0;v<h;){const p=f[v++],S=f[v++];try{A=p(A)}catch(E){S.call(this,E);break}}try{m=vt.call(this,A)}catch(p){return Promise.reject(p)}for(v=0,h=d.length;v<h;)m=m.then(d[v++],d[v++]);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 Qn=class At{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 At(function(i){t=i}),cancel:t}}};function Yn(e){return function(n){return e.apply(null,n)}}function es(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 N=St(oe);N.Axios=X,N.CanceledError=ee,N.CancelToken=Qn,N.isCancel=lt,N.VERSION=xt,N.toFormData=ge,N.AxiosError=_,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=Yn,N.isAxiosError=es,N.mergeConfig=J,N.AxiosHeaders=L,N.formToJSON=e=>ot(c.isHTMLForm(e)?new FormData(e):e),N.getAdapter=Et.getAdapter,N.HttpStatusCode=Fe,N.default=N;const{Axios:Ls,AxiosError:Fs,CanceledError:Ds,isCancel:Us,CancelToken:Hs,VERSION:js,all:qs,Cancel:Vs,isAxiosError:zs,spread:Ws,toFormData:$s,AxiosHeaders:Zs,HttpStatusCode:Js,formToJSON:Xs,getAdapter:Ks,mergeConfig:Gs}=N;function ts(e,t,n){const s=Number(t);if(!s||s<=1||isNaN(s))return e;const i=n?`https://dev-apis.golstats.com/${s}/`:`https://apis.golstats.com/${s}/`,f=new URL(e).pathname.split("/").filter(b=>b!==""&&b!=="prod"&&b!=="qa").join("/");return i+f}const ns=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},ss={class:"timeline-container"},is={class:"team-circle team-circle-top"},rs=["src"],os={class:"team-circle team-circle-bottom"},as=["src"],ls={class:"timeline-line"},cs={key:0,class:"event-icon event-icon-top"},us={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ds={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ms={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ps={class:"minute-ball minute-ball-center"},hs={key:1,class:"event-icon event-icon-bottom"},gs={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ys={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ws={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bs={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",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"},fill:"#bfcf4c",xmlns:"http://www.w3.org/2000/svg"},vs={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={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"},_s={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"},Ss=ns({__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},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},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),v=l.ref("0px"),h=l.ref([]),A=t,p=e,S=N.create({headers:{Authorization:`${p.token}`}}),E=l.ref([]);let R=null;const O=l.ref(null),T=l.ref(!1),I=l.ref(0),M=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),Rt=[{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,g=u.scrollWidth>u.clientWidth;j.value=g&&y>0,q.value=g&&Math.ceil(y)<Math.floor(a)}}function Tt(){if(O.value){const u=O.value.parentElement.clientWidth;I.value=u,M.value===0&&(M.value=u-90),l.nextTick(()=>{le()})}}function Ts(){if(E.value.length>0){const u=Math.max(...E.value.map(a=>a.minute));K.value=u,s.value=K.value}}async function Ot(){if(p.isDefault){const u=Rt.map(a=>{if(!a.event)return a;const y=a.event.filter(g=>!(g.icon==="icon-goal"&&!p.goals||g.icon==="icon-yellow-card"&&!p.yellowCards||g.icon==="icon-red-card"&&!p.redCards||g.icon==="icon-change"&&(I.value<313||!p.substitutions)));return{...a,event:y.length>0?y:null}}).filter(a=>a.event!==null);h.value=u,E.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: ",p.token);const u=await S.get(ts(`https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/${p.gameId}`,p.provider,p.isDevApis));if(u.data&&u.data.plays){const a=u.data.plays.find(g=>{var w;return g.event_type_id===6&&((w=g.comments)==null?void 0:w.includes("El árbitro silba el Final del Primer Tiempo"))});a&&(o.value=a.minute);const y=Math.max(...u.data.plays.map(g=>g.minute));b.value=y,K.value=y,s.value=K.value,h.value=[];for(let g=0;g<=o.value;g++){const w=u.data.plays.filter(x=>{var k;return x.minute===g&&x.match_lapse===1&&Nt(x)&&(x.category_id===9||x.category_id===8||x.event_type_id===1||x.event_type_id===3||x.event_type_id===6&&((k=x.comments)==null?void 0:k.includes("El árbitro silba el Final del Primer Tiempo")))}),B=[];w.forEach(x=>{B.push({minute:x.minute,minuteLabel:x.event_type_id===6?"MT":x.minute.toString(),icon:kt(x.event_type_id===1||x.event_type_id===3?x.event_type_id:x.category_id,x),team:x.team_id===p.homeTeam?x.category_id===13?"visitante":"local":x.category_id===13?"local":"visitante",match_lapse:x.match_lapse})}),h.value.push({minute:g,match_lapse:1,event:B.length>0?B:null})}for(let g=f.value;g<=b.value;g++){const w=u.data.plays.filter(x=>x.minute===g&&x.match_lapse===2&&Nt(x)&&(x.category_id===9||x.category_id===8||x.event_type_id===1||x.event_type_id===3)),B=[];w.forEach(x=>{B.push({minute:x.minute,minuteLabel:x.event_type_id===6?"MT":x.minute.toString(),icon:kt(x.event_type_id===1||x.event_type_id===3?x.event_type_id:x.category_id,x),team:x.team_id===p.homeTeam?x.category_id===13?"visitante":"local":x.category_id===13?"local":"visitante",match_lapse:x.match_lapse})}),h.value.push({minute:g,match_lapse:2,event:B.length>0?B:null})}if(E.value=h.value.filter(g=>g.event!==null).map(g=>g.event),h.value.length>0){const g=h.value.filter(k=>k.match_lapse===1);if(g.length>0){const k=g[0];n.value=k.minute,i.value="1",d.value=h.value.findIndex(F=>F.minute===k.minute&&F.match_lapse===1)}const w=h.value.filter(k=>k.match_lapse===2);if(w.length>0){const k=w[w.length-1];s.value=k.minute,r.value="2",m.value=h.value.findIndex(F=>F.minute===k.minute&&F.match_lapse===2)}const B=h.value.findIndex(k=>k.minute===n.value&&k.match_lapse===parseInt(i.value)),x=h.value.findIndex(k=>k.minute===s.value&&k.match_lapse===parseInt(r.value));if(B!==-1&&x!==-1&&B<x){const k=h.value.length,F=B/(k-1)*(p.timelineWidth-40),fe=x/(k-1)*(p.timelineWidth-40);v.value=`${fe-F}px`}}}}catch(u){console.error("Error al obtener los datos del partido:",u)}}function kt(u,a){return{1:"icon-goal",8:"icon-yellow-card",9:"icon-red-card",3:"icon-change"}[u]||""}function Nt(u){return u.event_type_id===1?!!p.goals:u.category_id===8?!!p.yellowCards:u.category_id===9?!!p.redCards:u.event_type_id===3?!(I.value<=313||!p.substitutions):!0}l.onMounted(()=>{Ts(),Tt(),Ot(),l.nextTick(()=>{le()}),window.addEventListener("resize",()=>{Tt()})}),l.onBeforeUnmount(()=>{window.removeEventListener("resize",le)}),l.watch(E,()=>{l.nextTick(()=>{le()})},{deep:!0}),l.watch(I,()=>{if(p.isDefault){const u=Rt.map(a=>{if(!a.event)return a;const y=a.event.filter(g=>!(g.icon==="icon-goal"&&!p.goals||g.icon==="icon-yellow-card"&&!p.yellowCards||g.icon==="icon-red-card"&&!p.redCards||g.icon==="icon-change"&&(I.value<=313||!p.substitutions)));return{...a,event:y.length>0?y:null}}).filter(a=>a.event!==null);h.value=u,E.value=u.map(a=>a.event)}else Ot()}),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=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===1);g!==-1&&(d.value=g)}}else if(i.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===2);g!==-1&&(d.value=g)}}}else if(i.value==="1"){const u=h.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0];n.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.match_lapse===1);y!==-1&&(d.value=y)}}else if(i.value==="2"){const u=h.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0];n.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.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=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===1);g!==-1&&(m.value=g)}}else if(r.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===2);g!==-1&&(m.value=g)}}}else if(r.value==="1"){const u=h.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.match_lapse===1);y!==-1&&(m.value=y)}}else if(r.value==="2"){const u=h.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.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=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===1);g!==-1&&(d.value=g)}}else if(i.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===2);g!==-1&&(d.value=g)}}if(i.value===r.value&&n.value>=s.value){if(r.value==="1"){const u=h.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=h.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=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===1);g!==-1&&(m.value=g)}}else if(r.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===2);g!==-1&&(m.value=g)}}if(i.value===r.value&&s.value<=n.value){if(i.value==="1"){const u=h.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=h.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=h.value.length;return u<0||a===0||a===1?"0px":`${u/(a-1)*(p.timelineWidth-40)}px`}function Os(){const u=h.value.length;if(u===0||u===1)return"0px";const a=(u-1)/(u-1)*(p.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=ks(),g=h.value.length,w=a-te,B=y/(g-1),x=Math.round(w/B);let k=De.value+x;const F=Math.max(0,Math.min(k,g-1));if(R==="left"){const D=h.value.findIndex(Q=>Q.minute===s.value&&Q.match_lapse===parseInt(r.value));if(F>=D-1)return;const G=h.value[F];T.value=!0,d.value=F,n.value=G.minute,i.value=G.match_lapse.toString(),V.value=!0}else if(R==="right"){const D=h.value.findIndex(Q=>Q.minute===n.value&&Q.match_lapse===parseInt(i.value));if(F<=D+1)return;const G=h.value[F];T.value=!0,m.value=F,s.value=G.minute,r.value=G.match_lapse.toString(),V.value=!0}const fe=h.value.findIndex(D=>D.minute===n.value&&D.match_lapse===parseInt(i.value)),je=h.value.findIndex(D=>D.minute===s.value&&D.match_lapse===parseInt(r.value));if(fe!==-1&&je!==-1&&fe<je){const D=h.value.length,G=fe/(D-1)*(p.timelineWidth-40),Q=je/(D-1)*(p.timelineWidth-40);v.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 ks(){return O.value?O.value.getBoundingClientRect().width:600}function He(){const u=n.value*60,a=s.value*60;A("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=h.value.findIndex(y=>y.minute===n.value&&y.match_lapse===parseInt(i.value)),a=h.value.findIndex(y=>y.minute===s.value&&y.match_lapse===parseInt(r.value));if(u!==-1&&a!==-1&&u<a){const y=h.value.length,g=u/(y-1)*(p.timelineWidth-40),w=a/(y-1)*(p.timelineWidth-40);v.value=`${w-g}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:`${I.value}px`})},[l.createCommentVNode("",!0),l.createElementVNode("div",ss,[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",is,[l.createElementVNode("img",{src:p.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":`https://golstatsimages.blob.core.windows.net/teams-80/${p.homeTeam}.png`,alt:"Equipo local"},null,8,rs)]),l.createElementVNode("div",os,[l.createElementVNode("img",{src:p.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":`https://golstatsimages.blob.core.windows.net/teams-80/${p.awayTeam}.png`,alt:"Equipo visitante"},null,8,as)]),l.createElementVNode("div",ls,[l.createElementVNode("div",{class:"line",style:l.normalizeStyle({width:Os()})},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(h.value,(y,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.event,(w,B)=>(l.openBlock(),l.createElementBlock("div",{key:"event-"+g+"-"+B,class:"event",style:l.normalizeStyle({left:ce(B===0?g-1.5:g-1.5+B*.3)})},[(w==null?void 0:w.team)==="local"?(l.openBlock(),l.createElementBlock("span",cs,[(w==null?void 0:w.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",us,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)]))):(w==null?void 0:w.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",fs,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)]))):(w==null?void 0:w.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",ds,a[24]||(a[24]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-d745b6e4></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></path>',14)]))):(w==null?void 0:w.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",ms,a[25]||(a[25]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(w==null?void 0:w.icon)},null,2))])):l.createCommentVNode("",!0),l.createElementVNode("span",ps,l.toDisplayString((w==null?void 0:w.minuteLabel)||y.minute)+"'",1),(w==null?void 0:w.team)==="visitante"?(l.openBlock(),l.createElementBlock("span",hs,[(w==null?void 0:w.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",gs,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)]))):(w==null?void 0:w.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ys,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)]))):(w==null?void 0:w.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",ws,a[28]||(a[28]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-d745b6e4></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></path>',14)]))):(w==null?void 0:w.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",bs,a[29]||(a[29]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></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-d745b6e4></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(w==null?void 0:w.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(h.value.length-1)})},l.toDisplayString(b.value)+"'",5),l.createElementVNode("div",{class:"range-indicator",style:l.normalizeStyle({left:ce(d.value),width:v.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",Es,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",vs,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",xs,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",_s,a[34]||(a[34]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32)],4)])],4)],544)])],6))}},[["__scopeId","data-v-d745b6e4"]]),Rs={__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"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},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(Ss,{"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,provider:t.provider,"is-dev-apis":t.isDevApis},null,8,["is-default","timeline-width","game-id","home-team","away-team","token","goals","yellow-cards","red-cards","substitutions","provider","is-dev-apis"]))],512))}};$.GSCTimelineReports=Rs,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 vt(e){return Le(e),e.headers=L.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=L.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=L.from(s.response.headers))),Promise.reject(s)})}const xt="1.11.0",ve={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ve[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const _t={};ve.transitional=function(t,n,s){function i(r,o){return"[Axios v"+xt+"] 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}},ve.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function Qn(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 xe={assertOptions:Qn,validators:ve},H=xe.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&&xe.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}:xe.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),xe.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"],p=>{delete r[p]}),n.headers=L.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,v=0,h;if(!b){const p=[vt.bind(this),void 0];for(p.unshift(...f),p.push(...d),h=p.length,m=Promise.resolve(n);v<h;)m=m.then(p[v++],p[v++]);return m}h=f.length;let A=n;for(v=0;v<h;){const p=f[v++],S=f[v++];try{A=p(A)}catch(E){S.call(this,E);break}}try{m=vt.call(this,A)}catch(p){return Promise.reject(p)}for(v=0,h=d.length;v<h;)m=m.then(d[v++],d[v++]);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 Yn=class Mt{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 Mt(function(i){t=i}),cancel:t}}};function es(e){return function(n){return e.apply(null,n)}}function ts(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 N=St(oe);N.Axios=X,N.CanceledError=ee,N.CancelToken=Yn,N.isCancel=lt,N.VERSION=xt,N.toFormData=ge,N.AxiosError=_,N.Cancel=N.CanceledError,N.all=function(t){return Promise.all(t)},N.spread=es,N.isAxiosError=ts,N.mergeConfig=J,N.AxiosHeaders=L,N.formToJSON=e=>ot(c.isHTMLForm(e)?new FormData(e):e),N.getAdapter=Et.getAdapter,N.HttpStatusCode=Fe,N.default=N;const{Axios:Fs,AxiosError:Ds,CanceledError:Us,isCancel:Hs,CancelToken:js,VERSION:qs,all:Vs,Cancel:zs,isAxiosError:Ws,spread:$s,toFormData:Zs,AxiosHeaders:Js,HttpStatusCode:Xs,formToJSON:Ks,getAdapter:Gs,mergeConfig:Qs}=N;function ns(e,t,n){const s=Number(t);if(!s||s<=1||isNaN(s))return e;const i=n?`https://dev-apis.golstats.com/${s}/`:`https://apis.golstats.com/${s}/`,f=new URL(e).pathname.split("/").filter(b=>b!==""&&b!=="prod"&&b!=="qa").join("/");return i+f}function Rt(e,t){if(!t||t<=1)return e;const n=new URL(e),s=n.pathname.split("/").filter(f=>f!=="");if(s.length===0)return e;const[i,...r]=s,o=[i,t,...r].join("/");return`${n.origin}/${o}${n.search}`}const ss=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},is={class:"timeline-container"},rs={class:"team-circle team-circle-top"},os=["src"],as={class:"team-circle team-circle-bottom"},ls=["src"],cs={class:"timeline-line"},us={key:0,class:"event-icon event-icon-top"},fs={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ds={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ms={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ps={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hs={class:"minute-ball minute-ball-center"},gs={key:1,class:"event-icon event-icon-bottom"},ys={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ws={key:1,width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bs={key:2,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Es={key:3,width:"24",height:"24",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vs={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"},xs={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"},_s={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"},Ss={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"},Rs=ss({__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},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},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),v=l.ref("0px"),h=l.ref([]),A=t,p=e,S=N.create({headers:{Authorization:`${p.token}`}}),E=l.ref([]);let R=null;const O=l.ref(null),T=l.ref(!1),I=l.ref(0),M=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),Tt=[{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,g=u.scrollWidth>u.clientWidth;j.value=g&&y>0,q.value=g&&Math.ceil(y)<Math.floor(a)}}function Ot(){if(O.value){const u=O.value.parentElement.clientWidth;I.value=u,M.value===0&&(M.value=u-90),l.nextTick(()=>{le()})}}function Os(){if(E.value.length>0){const u=Math.max(...E.value.map(a=>a.minute));K.value=u,s.value=K.value}}async function kt(){if(p.isDefault){const u=Tt.map(a=>{if(!a.event)return a;const y=a.event.filter(g=>!(g.icon==="icon-goal"&&!p.goals||g.icon==="icon-yellow-card"&&!p.yellowCards||g.icon==="icon-red-card"&&!p.redCards||g.icon==="icon-change"&&(I.value<313||!p.substitutions)));return{...a,event:y.length>0?y:null}}).filter(a=>a.event!==null);h.value=u,E.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: ",p.token);const u=await S.get(ns(`https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/${p.gameId}`,p.provider,p.isDevApis));if(u.data&&u.data.plays){const a=u.data.plays.find(g=>{var w;return g.event_type_id===6&&((w=g.comments)==null?void 0:w.includes("El árbitro silba el Final del Primer Tiempo"))});a&&(o.value=a.minute);const y=Math.max(...u.data.plays.map(g=>g.minute));b.value=y,K.value=y,s.value=K.value,h.value=[];for(let g=0;g<=o.value;g++){const w=u.data.plays.filter(x=>{var k;return x.minute===g&&x.match_lapse===1&&At(x)&&(x.category_id===9||x.category_id===8||x.event_type_id===1||x.event_type_id===3||x.event_type_id===6&&((k=x.comments)==null?void 0:k.includes("El árbitro silba el Final del Primer Tiempo")))}),B=[];w.forEach(x=>{B.push({minute:x.minute,minuteLabel:x.event_type_id===6?"MT":x.minute.toString(),icon:Nt(x.event_type_id===1||x.event_type_id===3?x.event_type_id:x.category_id,x),team:x.team_id===p.homeTeam?x.category_id===13?"visitante":"local":x.category_id===13?"local":"visitante",match_lapse:x.match_lapse})}),h.value.push({minute:g,match_lapse:1,event:B.length>0?B:null})}for(let g=f.value;g<=b.value;g++){const w=u.data.plays.filter(x=>x.minute===g&&x.match_lapse===2&&At(x)&&(x.category_id===9||x.category_id===8||x.event_type_id===1||x.event_type_id===3)),B=[];w.forEach(x=>{B.push({minute:x.minute,minuteLabel:x.event_type_id===6?"MT":x.minute.toString(),icon:Nt(x.event_type_id===1||x.event_type_id===3?x.event_type_id:x.category_id,x),team:x.team_id===p.homeTeam?x.category_id===13?"visitante":"local":x.category_id===13?"local":"visitante",match_lapse:x.match_lapse})}),h.value.push({minute:g,match_lapse:2,event:B.length>0?B:null})}if(E.value=h.value.filter(g=>g.event!==null).map(g=>g.event),h.value.length>0){const g=h.value.filter(k=>k.match_lapse===1);if(g.length>0){const k=g[0];n.value=k.minute,i.value="1",d.value=h.value.findIndex(F=>F.minute===k.minute&&F.match_lapse===1)}const w=h.value.filter(k=>k.match_lapse===2);if(w.length>0){const k=w[w.length-1];s.value=k.minute,r.value="2",m.value=h.value.findIndex(F=>F.minute===k.minute&&F.match_lapse===2)}const B=h.value.findIndex(k=>k.minute===n.value&&k.match_lapse===parseInt(i.value)),x=h.value.findIndex(k=>k.minute===s.value&&k.match_lapse===parseInt(r.value));if(B!==-1&&x!==-1&&B<x){const k=h.value.length,F=B/(k-1)*(p.timelineWidth-40),fe=x/(k-1)*(p.timelineWidth-40);v.value=`${fe-F}px`}}}}catch(u){console.error("Error al obtener los datos del partido:",u)}}function Nt(u,a){return{1:"icon-goal",8:"icon-yellow-card",9:"icon-red-card",3:"icon-change"}[u]||""}function At(u){return u.event_type_id===1?!!p.goals:u.category_id===8?!!p.yellowCards:u.category_id===9?!!p.redCards:u.event_type_id===3?!(I.value<=313||!p.substitutions):!0}l.onMounted(()=>{Os(),Ot(),kt(),l.nextTick(()=>{le()}),window.addEventListener("resize",()=>{Ot()})}),l.onBeforeUnmount(()=>{window.removeEventListener("resize",le)}),l.watch(E,()=>{l.nextTick(()=>{le()})},{deep:!0}),l.watch(I,()=>{if(p.isDefault){const u=Tt.map(a=>{if(!a.event)return a;const y=a.event.filter(g=>!(g.icon==="icon-goal"&&!p.goals||g.icon==="icon-yellow-card"&&!p.yellowCards||g.icon==="icon-red-card"&&!p.redCards||g.icon==="icon-change"&&(I.value<=313||!p.substitutions)));return{...a,event:y.length>0?y:null}}).filter(a=>a.event!==null);h.value=u,E.value=u.map(a=>a.event)}else kt()}),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=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===1);g!==-1&&(d.value=g)}}else if(i.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===2);g!==-1&&(d.value=g)}}}else if(i.value==="1"){const u=h.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[0];n.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.match_lapse===1);y!==-1&&(d.value=y)}}else if(i.value==="2"){const u=h.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[0];n.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.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=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===1);g!==-1&&(m.value=g)}}else if(r.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===2);g!==-1&&(m.value=g)}}}else if(r.value==="1"){const u=h.value.filter(a=>a.match_lapse===1);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.match_lapse===1);y!==-1&&(m.value=y)}}else if(r.value==="2"){const u=h.value.filter(a=>a.match_lapse===2);if(u.length>0){const a=u[u.length-1];s.value=a.minute;const y=h.value.findIndex(g=>g.minute===a.minute&&g.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=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===1);g!==-1&&(d.value=g)}}else if(i.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===n.value&&w.match_lapse===2);g!==-1&&(d.value=g)}}if(i.value===r.value&&n.value>=s.value){if(r.value==="1"){const u=h.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=h.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=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===1);g!==-1&&(m.value=g)}}else if(r.value==="2"){const u=h.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 g=h.value.findIndex(w=>w.minute===s.value&&w.match_lapse===2);g!==-1&&(m.value=g)}}if(i.value===r.value&&s.value<=n.value){if(i.value==="1"){const u=h.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=h.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=h.value.length;return u<0||a===0||a===1?"0px":`${u/(a-1)*(p.timelineWidth-40)}px`}function ks(){const u=h.value.length;if(u===0||u===1)return"0px";const a=(u-1)/(u-1)*(p.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=Ns(),g=h.value.length,w=a-te,B=y/(g-1),x=Math.round(w/B);let k=De.value+x;const F=Math.max(0,Math.min(k,g-1));if(R==="left"){const D=h.value.findIndex(Q=>Q.minute===s.value&&Q.match_lapse===parseInt(r.value));if(F>=D-1)return;const G=h.value[F];T.value=!0,d.value=F,n.value=G.minute,i.value=G.match_lapse.toString(),V.value=!0}else if(R==="right"){const D=h.value.findIndex(Q=>Q.minute===n.value&&Q.match_lapse===parseInt(i.value));if(F<=D+1)return;const G=h.value[F];T.value=!0,m.value=F,s.value=G.minute,r.value=G.match_lapse.toString(),V.value=!0}const fe=h.value.findIndex(D=>D.minute===n.value&&D.match_lapse===parseInt(i.value)),je=h.value.findIndex(D=>D.minute===s.value&&D.match_lapse===parseInt(r.value));if(fe!==-1&&je!==-1&&fe<je){const D=h.value.length,G=fe/(D-1)*(p.timelineWidth-40),Q=je/(D-1)*(p.timelineWidth-40);v.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 Ns(){return O.value?O.value.getBoundingClientRect().width:600}function He(){const u=n.value*60,a=s.value*60;A("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=h.value.findIndex(y=>y.minute===n.value&&y.match_lapse===parseInt(i.value)),a=h.value.findIndex(y=>y.minute===s.value&&y.match_lapse===parseInt(r.value));if(u!==-1&&a!==-1&&u<a){const y=h.value.length,g=u/(y-1)*(p.timelineWidth-40),w=a/(y-1)*(p.timelineWidth-40);v.value=`${w-g}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:`${I.value}px`})},[l.createCommentVNode("",!0),l.createElementVNode("div",is,[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",rs,[l.createElementVNode("img",{src:p.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png":l.unref(Rt)(`https://golstatsimages.blob.core.windows.net/teams-80/${p.homeTeam}.png`,p.provider),alt:"Equipo local"},null,8,os)]),l.createElementVNode("div",as,[l.createElementVNode("img",{src:p.isDefault?"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png":l.unref(Rt)(`https://golstatsimages.blob.core.windows.net/teams-80/${p.awayTeam}.png`,p.provider),alt:"Equipo visitante"},null,8,ls)]),l.createElementVNode("div",cs,[l.createElementVNode("div",{class:"line",style:l.normalizeStyle({width:ks()})},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(h.value,(y,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.event,(w,B)=>(l.openBlock(),l.createElementBlock("div",{key:"event-"+g+"-"+B,class:"event",style:l.normalizeStyle({left:ce(B===0?g-1.5:g-1.5+B*.3)})},[(w==null?void 0:w.team)==="local"?(l.openBlock(),l.createElementBlock("span",us,[(w==null?void 0:w.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",fs,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)]))):(w==null?void 0:w.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ds,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)]))):(w==null?void 0:w.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",ms,a[24]||(a[24]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-9aec631f></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></path>',14)]))):(w==null?void 0:w.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",ps,a[25]||(a[25]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(w==null?void 0:w.icon)},null,2))])):l.createCommentVNode("",!0),l.createElementVNode("span",hs,l.toDisplayString((w==null?void 0:w.minuteLabel)||y.minute)+"'",1),(w==null?void 0:w.team)==="visitante"?(l.openBlock(),l.createElementBlock("span",gs,[(w==null?void 0:w.icon)==="icon-yellow-card"?(l.openBlock(),l.createElementBlock("svg",ys,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)]))):(w==null?void 0:w.icon)==="icon-red-card"?(l.openBlock(),l.createElementBlock("svg",ws,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)]))):(w==null?void 0:w.icon)==="icon-goal"?(l.openBlock(),l.createElementBlock("svg",bs,a[28]||(a[28]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-9aec631f></circle><ellipse fill="none" cx="24" cy="24" rx="14.82" ry="14.85" data-v-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></path>',14)]))):(w==null?void 0:w.icon)==="icon-change"?(l.openBlock(),l.createElementBlock("svg",Es,a[29]||(a[29]=[l.createStaticVNode('<circle fill="none" cx="24" cy="24" r="24" data-v-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></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-9aec631f></path>',5)]))):(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(w==null?void 0:w.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(h.value.length-1)})},l.toDisplayString(b.value)+"'",5),l.createElementVNode("div",{class:"range-indicator",style:l.normalizeStyle({left:ce(d.value),width:v.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",vs,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",xs,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",_s,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",Ss,a[34]||(a[34]=[l.createElementVNode("polygon",{points:"6,8 0,0 12,0"},null,-1)])))],32)],4)])],4)],544)])],6))}},[["__scopeId","data-v-9aec631f"]]),Ts={__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"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},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(Rs,{"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,provider:t.provider,"is-dev-apis":t.isDevApis},null,8,["is-default","timeline-width","game-id","home-team","away-team","token","goals","yellow-cards","red-cards","substitutions","provider","is-dev-apis"]))],512))}};$.GSCTimelineReports=Ts,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ref, onBeforeUnmount, watch, onMounted, nextTick } from 'vue'
|
|
3
3
|
import axios from 'axios'
|
|
4
4
|
import { getApiUrl } from '../utils/apiUrl.js'
|
|
5
|
+
import { getImageUrl } from '../utils/imageUrl.js'
|
|
5
6
|
|
|
6
7
|
// Estado para el rango de minutos seleccionados
|
|
7
8
|
const minStart = ref(0) // Minuto inicial del rango
|
|
@@ -1823,7 +1824,10 @@ function incrementMinStart() {
|
|
|
1823
1824
|
:src="
|
|
1824
1825
|
props.isDefault
|
|
1825
1826
|
? 'https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png'
|
|
1826
|
-
:
|
|
1827
|
+
: getImageUrl(
|
|
1828
|
+
`https://golstatsimages.blob.core.windows.net/teams-80/${props.homeTeam}.png`,
|
|
1829
|
+
props.provider,
|
|
1830
|
+
)
|
|
1827
1831
|
"
|
|
1828
1832
|
alt="Equipo local"
|
|
1829
1833
|
/>
|
|
@@ -1833,7 +1837,10 @@ function incrementMinStart() {
|
|
|
1833
1837
|
:src="
|
|
1834
1838
|
props.isDefault
|
|
1835
1839
|
? 'https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png'
|
|
1836
|
-
:
|
|
1840
|
+
: getImageUrl(
|
|
1841
|
+
`https://golstatsimages.blob.core.windows.net/teams-80/${props.awayTeam}.png`,
|
|
1842
|
+
props.provider,
|
|
1843
|
+
)
|
|
1837
1844
|
"
|
|
1838
1845
|
alt="Equipo visitante"
|
|
1839
1846
|
/>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inserta el proveedor activo en una URL de imágenes de GolStats
|
|
3
|
+
* (dominio `golstatsimages.blob.core.windows.net`, escudos `teams-*`, etc.).
|
|
4
|
+
*
|
|
5
|
+
* Regla A: provider es 1, 0 o null/undefined → URL sin cambios.
|
|
6
|
+
* Regla B: provider >= 2 → se inserta `/<provider>` después del contenedor.
|
|
7
|
+
*
|
|
8
|
+
* https://host/teams-80/16906.png → https://host/teams-80/2/16906.png
|
|
9
|
+
*
|
|
10
|
+
* El proveedor no puede ir justo después del host: Azure exige que el primer
|
|
11
|
+
* segmento sea un nombre de contenedor válido (mínimo 3 caracteres) y responde
|
|
12
|
+
* 400 ante `/2/teams-80/16906.png`.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} originalUrl URL original (con el id ya interpolado)
|
|
15
|
+
* @param {number|null} provider ID del proveedor
|
|
16
|
+
* @returns {string} URL final
|
|
17
|
+
*/
|
|
18
|
+
export function getImageUrl(originalUrl, provider) {
|
|
19
|
+
if (!provider || provider <= 1) {
|
|
20
|
+
return originalUrl
|
|
21
|
+
}
|
|
22
|
+
const parsed = new URL(originalUrl)
|
|
23
|
+
const segments = parsed.pathname.split('/').filter((s) => s !== '')
|
|
24
|
+
if (segments.length === 0) {
|
|
25
|
+
return originalUrl
|
|
26
|
+
}
|
|
27
|
+
const [container, ...rest] = segments
|
|
28
|
+
const path = [container, provider, ...rest].join('/')
|
|
29
|
+
return `${parsed.origin}/${path}${parsed.search}`
|
|
30
|
+
}
|