@golstats/gsc-specific-plays 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.
|
@@ -3559,7 +3559,7 @@ const et = {
|
|
|
3559
3559
|
[146, "Raz de área"],
|
|
3560
3560
|
[133, "En corto"],
|
|
3561
3561
|
[147, "En corto"]
|
|
3562
|
-
], Hs = "https://
|
|
3562
|
+
], Hs = "https://example-api.golstats.com/prod";
|
|
3563
3563
|
async function Us(e, t = 3) {
|
|
3564
3564
|
let s;
|
|
3565
3565
|
for (let o = 1; o <= t; o++)
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...n){const s=new this(o);return n.forEach(a=>s.set(a)),s}static accessor(o){const s=(this[vt]=this[vt]={accessors:{}}).accessors,a=this.prototype;function i(r){const c=Se(r);s[c]||(ka(a,r),s[c]=!0)}return d.isArray(o)?o.forEach(i):i(o),this}};z.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),d.reduceDescriptors(z.prototype,({value:t},o)=>{let n=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(s){this[n]=s}}}),d.freezeMethods(z);function rt(t,o){const n=this||Ee,s=o||n,a=z.from(s.headers);let i=s.data;return d.forEach(t,function(c){i=c.call(n,i,a.normalize(),o?o.status:void 0)}),a.normalize(),i}function Gt(t){return!!(t&&t.__CANCEL__)}function ye(t,o,n){F.call(this,t??"canceled",F.ERR_CANCELED,o,n),this.name="CanceledError"}d.inherits(ye,F,{__CANCEL__:!0});function jt(t,o,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?t(n):o(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xa(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function Ba(t,o){t=t||10;const n=new Array(t),s=new Array(t);let a=0,i=0,r;return o=o!==void 0?o:1e3,function(f){const m=Date.now(),y=s[i];r||(r=m),n[a]=f,s[a]=m;let E=i,k=0;for(;E!==a;)k+=n[E++],E=E%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),m-r<o)return;const g=y&&m-y;return g?Math.round(k*1e3/g):void 0}}function Na(t,o){let n=0,s=1e3/o,a,i;const r=(m,y=Date.now())=>{n=y,a=null,i&&(clearTimeout(i),i=null),t(...m)};return[(...m)=>{const y=Date.now(),E=y-n;E>=s?r(m,y):(a=m,i||(i=setTimeout(()=>{i=null,r(a)},s-E)))},()=>a&&r(a)]}const $e=(t,o,n=3)=>{let s=0;const a=Ba(50,250);return Na(i=>{const r=i.loaded,c=i.lengthComputable?i.total:void 0,f=r-s,m=a(f),y=r<=c;s=r;const E={loaded:r,total:c,progress:c?r/c:void 0,bytes:f,rate:m||void 0,estimated:m&&c&&y?(c-r)/m:void 0,event:i,lengthComputable:c!=null,[o?"download":"upload"]:!0};t(E)},n)},Wt=(t,o)=>{const n=t!=null;return[s=>o[0]({lengthComputable:n,total:t,loaded:s}),o[1]]},qt=t=>(...o)=>d.asap(()=>t(...o)),Fa=M.hasStandardBrowserEnv?((t,o)=>n=>(n=new URL(n,M.origin),t.protocol===n.protocol&&t.host===n.host&&(o||t.port===n.port)))(new URL(M.origin),M.navigator&&/(msie|trident)/i.test(M.navigator.userAgent)):()=>!0,Va=M.hasStandardBrowserEnv?{write(t,o,n,s,a,i,r){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(o)}`];d.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),d.isString(s)&&c.push(`path=${s}`),d.isString(a)&&c.push(`domain=${a}`),i===!0&&c.push("secure"),d.isString(r)&&c.push(`SameSite=${r}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const o=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return o?decodeURIComponent(o[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Aa(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Pa(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function Zt(t,o,n){let s=!Aa(o);return t&&(s||n==!1)?Pa(t,o):o}const Jt=t=>t instanceof z?{...t}:t;function ce(t,o){o=o||{};const n={};function s(m,y,E,k){return d.isPlainObject(m)&&d.isPlainObject(y)?d.merge.call({caseless:k},m,y):d.isPlainObject(y)?d.merge({},y):d.isArray(y)?y.slice():y}function a(m,y,E,k){if(d.isUndefined(y)){if(!d.isUndefined(m))return s(void 0,m,E,k)}else return s(m,y,E,k)}function i(m,y){if(!d.isUndefined(y))return s(void 0,y)}function r(m,y){if(d.isUndefined(y)){if(!d.isUndefined(m))return s(void 0,m)}else return s(void 0,y)}function c(m,y,E){if(E in o)return s(m,y);if(E in t)return s(void 0,m)}const f={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(m,y,E)=>a(Jt(m),Jt(y),E,!0)};return d.forEach(Object.keys({...t,...o}),function(y){const E=f[y]||a,k=E(t[y],o[y],y);d.isUndefined(k)&&E!==c||(n[y]=k)}),n}const Xt=t=>{const o=ce({},t);let{data:n,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:i,headers:r,auth:c}=o;if(o.headers=r=z.from(r),o.url=Mt(Zt(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),d.isFormData(n)){if(M.hasStandardBrowserEnv||M.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(d.isFunction(n.getHeaders)){const f=n.getHeaders(),m=["content-type","content-length"];Object.entries(f).forEach(([y,E])=>{m.includes(y.toLowerCase())&&r.set(y,E)})}}if(M.hasStandardBrowserEnv&&(s&&d.isFunction(s)&&(s=s(o)),s||s!==!1&&Fa(o.url))){const f=a&&i&&Va.read(i);f&&r.set(a,f)}return o},Ta=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,s){const a=Xt(t);let i=a.data;const r=z.from(a.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:m}=a,y,E,k,g,u;function b(){g&&g(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(y),a.signal&&a.signal.removeEventListener("abort",y)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function L(){if(!C)return;const T=z.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),D={data:!c||c==="text"||c==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:T,config:t,request:C};jt(function(H){n(H),b()},function(H){s(H),b()},D),C=null}"onloadend"in C?C.onloadend=L:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(L)},C.onabort=function(){C&&(s(new F("Request aborted",F.ECONNABORTED,t,C)),C=null)},C.onerror=function(A){const D=A&&A.message?A.message:"Network Error",v=new F(D,F.ERR_NETWORK,t,C);v.event=A||null,s(v),C=null},C.ontimeout=function(){let A=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const D=a.transitional||Ut;a.timeoutErrorMessage&&(A=a.timeoutErrorMessage),s(new F(A,D.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,C)),C=null},i===void 0&&r.setContentType(null),"setRequestHeader"in C&&d.forEach(r.toJSON(),function(A,D){C.setRequestHeader(D,A)}),d.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),c&&c!=="json"&&(C.responseType=a.responseType),m&&([k,u]=$e(m,!0),C.addEventListener("progress",k)),f&&C.upload&&([E,g]=$e(f),C.upload.addEventListener("progress",E),C.upload.addEventListener("loadend",g)),(a.cancelToken||a.signal)&&(y=T=>{C&&(s(!T||T.type?new ye(null,t,C):T),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(y),a.signal&&(a.signal.aborted?y():a.signal.addEventListener("abort",y)));const $=xa(a.url);if($&&M.protocols.indexOf($)===-1){s(new F("Unsupported protocol "+$+":",F.ERR_BAD_REQUEST,t));return}C.send(i||null)})},Oa=(t,o)=>{const{length:n}=t=t?t.filter(Boolean):[];if(o||n){let s=new AbortController,a;const i=function(m){if(!a){a=!0,c();const y=m instanceof Error?m:this.reason;s.abort(y instanceof F?y:new ye(y instanceof Error?y.message:y))}};let r=o&&setTimeout(()=>{r=null,i(new F(`timeout ${o} of ms exceeded`,F.ETIMEDOUT))},o);const c=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(m=>{m.unsubscribe?m.unsubscribe(i):m.removeEventListener("abort",i)}),t=null)};t.forEach(m=>m.addEventListener("abort",i));const{signal:f}=s;return f.unsubscribe=()=>d.asap(c),f}},La=function*(t,o){let n=t.byteLength;if(n<o){yield t;return}let s=0,a;for(;s<n;)a=s+o,yield t.slice(s,a),s=a},Ra=async function*(t,o){for await(const n of Ia(t))yield*La(n,o)},Ia=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:n,value:s}=await o.read();if(n)break;yield s}}finally{await o.cancel()}},Kt=(t,o,n,s)=>{const a=Ra(t,o);let i=0,r,c=f=>{r||(r=!0,s&&s(f))};return new ReadableStream({async pull(f){try{const{done:m,value:y}=await a.next();if(m){c(),f.close();return}let E=y.byteLength;if(n){let k=i+=E;n(k)}f.enqueue(new Uint8Array(y))}catch(m){throw c(m),m}},cancel(f){return c(f),a.return()}},{highWaterMark:2})},Yt=64*1024,{isFunction:De}=d,$a=(({Request:t,Response:o})=>({Request:t,Response:o}))(d.global),{ReadableStream:Qt,TextEncoder:eo}=d.global,to=(t,...o)=>{try{return!!t(...o)}catch{return!1}},Da=t=>{t=d.merge.call({skipUndefined:!0},$a,t);const{fetch:o,Request:n,Response:s}=t,a=o?De(o):typeof fetch=="function",i=De(n),r=De(s);if(!a)return!1;const c=a&&De(Qt),f=a&&(typeof eo=="function"?(u=>b=>u.encode(b))(new eo):async u=>new Uint8Array(await new n(u).arrayBuffer())),m=i&&c&&to(()=>{let u=!1;const b=new n(M.origin,{body:new Qt,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!b}),y=r&&c&&to(()=>d.isReadableStream(new s("").body)),E={stream:y&&(u=>u.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!E[u]&&(E[u]=(b,C)=>{let L=b&&b[u];if(L)return L.call(b);throw new F(`Response type '${u}' is not supported`,F.ERR_NOT_SUPPORT,C)})});const k=async u=>{if(u==null)return 0;if(d.isBlob(u))return u.size;if(d.isSpecCompliantForm(u))return(await new n(M.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(d.isArrayBufferView(u)||d.isArrayBuffer(u))return u.byteLength;if(d.isURLSearchParams(u)&&(u=u+""),d.isString(u))return(await f(u)).byteLength},g=async(u,b)=>{const C=d.toFiniteNumber(u.getContentLength());return C??k(b)};return async u=>{let{url:b,method:C,data:L,signal:$,cancelToken:T,timeout:A,onDownloadProgress:D,onUploadProgress:v,responseType:H,headers:fe,withCredentials:ne="same-origin",fetchOptions:I}=Xt(u),ve=o||fetch;H=H?(H+"").toLowerCase():"text";let he=Oa([$,T&&T.toAbortSignal()],A),pe=null;const te=he&&he.unsubscribe&&(()=>{he.unsubscribe()});let se;try{if(v&&m&&C!=="get"&&C!=="head"&&(se=await g(fe,L))!==0){let q=new n(b,{method:"POST",body:L,duplex:"half"}),ae;if(d.isFormData(L)&&(ae=q.headers.get("content-type"))&&fe.setContentType(ae),q.body){const[Be,ge]=Wt(se,$e(qt(v)));L=Kt(q.body,Yt,Be,ge)}}d.isString(ne)||(ne=ne?"include":"omit");const S=i&&"credentials"in n.prototype,Y={...I,signal:he,method:C.toUpperCase(),headers:fe.normalize().toJSON(),body:L,duplex:"half",credentials:S?ne:void 0};pe=i&&new n(b,Y);let Q=await(i?ve(pe,I):ve(b,Y));const xe=y&&(H==="stream"||H==="response");if(y&&(D||xe&&te)){const q={};["status","statusText","headers"].forEach(Ge=>{q[Ge]=Q[Ge]});const ae=d.toFiniteNumber(Q.headers.get("content-length")),[Be,ge]=D&&Wt(ae,$e(qt(D),!0))||[];Q=new s(Kt(Q.body,Yt,Be,()=>{ge&&ge(),te&&te()}),q)}H=H||"text";let X=await E[d.findKey(E,H)||"text"](Q,u);return!xe&&te&&te(),await new Promise((q,ae)=>{jt(q,ae,{data:X,headers:z.from(Q.headers),status:Q.status,statusText:Q.statusText,config:u,request:pe})})}catch(S){throw te&&te(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,u,pe),{cause:S.cause||S}):F.from(S,S&&S.code,u,pe)}}},Ma=new Map,oo=t=>{let o=t&&t.env||{};const{fetch:n,Request:s,Response:a}=o,i=[s,a,n];let r=i.length,c=r,f,m,y=Ma;for(;c--;)f=i[c],m=y.get(f),m===void 0&&y.set(f,m=c?new Map:Da(o)),y=m;return m};oo();const it={http:ia,xhr:Ta,fetch:{get:oo}};d.forEach(it,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const no=t=>`- ${t}`,Ha=t=>d.isFunction(t)||t===null||t===!1;function Ua(t,o){t=d.isArray(t)?t:[t];const{length:n}=t;let s,a;const i={};for(let r=0;r<n;r++){s=t[r];let c;if(a=s,!Ha(s)&&(a=it[(c=String(s)).toLowerCase()],a===void 0))throw new F(`Unknown adapter '${c}'`);if(a&&(d.isFunction(a)||(a=a.get(o))))break;i[c||"#"+r]=a}if(!a){const r=Object.entries(i).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let c=n?r.length>1?`since :
|
|
4
4
|
`+r.map(no).join(`
|
|
5
5
|
`):" "+no(r[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return a}const so={getAdapter:Ua,adapters:it};function lt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ye(null,t)}function ao(t){return lt(t),t.headers=z.from(t.headers),t.data=rt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),so.getAdapter(t.adapter||Ee.adapter,t)(t).then(function(s){return lt(t),s.data=rt.call(t,t.transformResponse,s),s.headers=z.from(s.headers),s},function(s){return Gt(s)||(lt(t),s&&s.response&&(s.response.data=rt.call(t,t.transformResponse,s.response),s.response.headers=z.from(s.response.headers))),Promise.reject(s)})}const ro="1.13.0",Me={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Me[t]=function(s){return typeof s===t||"a"+(o<1?"n ":" ")+t}});const io={};Me.transitional=function(o,n,s){function a(i,r){return"[Axios v"+ro+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,c)=>{if(o===!1)throw new F(a(r," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!io[r]&&(io[r]=!0,console.warn(a(r," has been deprecated since v"+n+" and will be removed in the near future"))),o?o(i,r,c):!0}},Me.spelling=function(o){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${o}`),!0)};function za(t,o,n){if(typeof t!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const s=Object.keys(t);let a=s.length;for(;a-- >0;){const i=s[a],r=o[i];if(r){const c=t[i],f=c===void 0||r(c,i,t);if(f!==!0)throw new F("option "+i+" must be "+f,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+i,F.ERR_BAD_OPTION)}}const He={assertOptions:za,validators:Me},K=He.validators;let de=class{constructor(o){this.defaults=o||{},this.interceptors={request:new Ht,response:new Ht}}async request(o,n){try{return await this._request(o,n)}catch(s){if(s instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
|
6
|
-
`+i):s.stack=i}catch{}}throw s}}_request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=ce(this.defaults,n);const{transitional:s,paramsSerializer:a,headers:i}=n;s!==void 0&&He.assertOptions(s,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),a!=null&&(d.isFunction(a)?n.paramsSerializer={serialize:a}:He.assertOptions(a,{encode:K.function,serialize:K.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),He.assertOptions(n,{baseUrl:K.spelling("baseURL"),withXsrfToken:K.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&d.merge(i.common,i[n.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=z.concat(r,i);const c=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const m=[];this.interceptors.response.forEach(function(b){m.push(b.fulfilled,b.rejected)});let y,E=0,k;if(!f){const u=[ao.bind(this),void 0];for(u.unshift(...c),u.push(...m),k=u.length,y=Promise.resolve(n);E<k;)y=y.then(u[E++],u[E++]);return y}k=c.length;let g=n;for(;E<k;){const u=c[E++],b=c[E++];try{g=u(g)}catch(C){b.call(this,C);break}}try{y=ao.call(this,g)}catch(u){return Promise.reject(u)}for(E=0,k=m.length;E<k;)y=y.then(m[E++],m[E++]);return y}getUri(o){o=ce(this.defaults,o);const n=Zt(o.baseURL,o.url,o.allowAbsoluteUrls);return Mt(n,o.params,o.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(o){de.prototype[o]=function(n,s){return this.request(ce(s||{},{method:o,url:n,data:(s||{}).data}))}}),d.forEach(["post","put","patch"],function(o){function n(s){return function(i,r,c){return this.request(ce(c||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}de.prototype[o]=n(),de.prototype[o+"Form"]=n(!0)});let va=class _o{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(a=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](a);s._listeners=null}),this.promise.then=a=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(a);return r.cancel=function(){s.unsubscribe(i)},r},o(function(i,r,c){s.reason||(s.reason=new ye(i,r,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const o=new AbortController,n=s=>{o.abort(s)};return this.subscribe(n),o.signal.unsubscribe=()=>this.unsubscribe(n),o.signal}static source(){let o;return{token:new _o(function(a){o=a}),cancel:o}}};function Ga(t){return function(n){return t.apply(null,n)}}function ja(t){return d.isObject(t)&&t.isAxiosError===!0}const ct={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ct).forEach(([t,o])=>{ct[o]=t});function lo(t){const o=new de(t),n=kt(de.prototype.request,o);return d.extend(n,de.prototype,o,{allOwnKeys:!0}),d.extend(n,o,null,{allOwnKeys:!0}),n.create=function(a){return lo(ce(t,a))},n}const O=lo(Ee);O.Axios=de,O.CanceledError=ye,O.CancelToken=va,O.isCancel=Gt,O.VERSION=ro,O.toFormData=Re,O.AxiosError=F,O.Cancel=O.CanceledError,O.all=function(o){return Promise.all(o)},O.spread=Ga,O.isAxiosError=ja,O.mergeConfig=ce,O.AxiosHeaders=z,O.formToJSON=t=>zt(d.isHTMLForm(t)?new FormData(t):t),O.getAdapter=so.getAdapter,O.HttpStatusCode=ct,O.default=O;const{Axios:$i,AxiosError:Di,CanceledError:Mi,isCancel:Hi,CancelToken:Ui,VERSION:zi,all:vi,Cancel:Gi,isAxiosError:ji,spread:Wi,toFormData:qi,AxiosHeaders:Zi,HttpStatusCode:Ji,formToJSON:Xi,getAdapter:Ki,mergeConfig:Yi}=O,Wa=["gameId","playerId","teamId","x","y","momentOfPlay","section","playId","timeSection"];let dt=null;function qa(){return dt||(dt=Wa.reduce((t,o,n)=>(t[n]=o,t),{})),dt}const Za=["playId","playerId","teamId","gameId","categoryId","relatedCategoriesIds","x1","y1","x2","y2","x3","y3","fieldSection","momentOfPlay","playingAs","matchLapse","matchResult","matchResultAtMomentOfPlay","relatedPlayId","touchOrder","timeSection"];let ft=null;function Ja(){return ft||(ft=Za.reduce((t,o,n)=>(t[n]=o,t),{})),ft}const Ue={TO_RIGHT:"toRight",TO_LEFT:"toLeft"},pt=[{text:"Rematado fue gol",categoriesIds:[583,585,587,589]},{text:"Rematado no fue gol",categoriesIds:[584,586,588,590]},{text:"Rematado sin destino",categoriesIds:[122,128,136,142]},{text:"Ganado por portero rival",categoriesIds:[123,129,137,143]},{text:"Ganado por jugador rival",categoriesIds:[124,130,138,144]},{text:"Sin destino",categoriesIds:[125,131,139,145]}],mt=[[120,"Comba hacia afuera"],[134,"Comba hacia afuera"],[126,"Comba hacia adentro"],[140,"Comba hacia adentro"],[327,"Raz de área"],[146,"Raz de área"],[133,"En corto"],[147,"En corto"]],co="https://PLACEHOLDER_API_URL";async function fo(t,o=3){let n;for(let s=1;s<=o;s++)try{return await t()}catch(a){if(n=a,s===o)throw n}}async function Xa(t){return fo(async()=>(await O.get(`${co}/providers/${t}/structures/what-happened`)).data)}async function Ka(t){return fo(async()=>(await O.get(`${co}/providers/${t}/structures/how-was`)).data)}const Ya=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,Qa=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,er="https://apis.golstats.com",tr="https://dev-apis.golstats.com";function ke(t,o,n=!1){if(!o||o===1)return t;const s=n?tr:er,a=t.match(Ya);if(a){const r=t.replace(a[0],"");return`${s}/${o}/${r}`}const i=t.match(Qa);if(i){const r=t.replace(i[0],"");return`${s}/${o}/${r}`}return t}const or={class:"modal-confirmation"},nr={class:"modal-confirmation__container"},sr={class:"modal-confirmation__title"},ar={class:"modal-confirmation"},rr={class:"modal-confirmation__container"},ir={class:"modal-confirmation__title"},lr={class:"specific-plays-titlecontainer"},cr={class:"specific-plays-title"},dr={key:0,class:"specific-plays-title-elegibility"},fr={key:1},pr={class:"specific-plays-controls"},mr={class:"specific-plays-controls11"},ur={class:"radio-container"},yr={key:0,width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr={class:"radio-label"},gr=["src"],Cr={class:"radio-container"},br={key:0,width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wr={class:"radio-label"},_r=["src"],Er={class:"cont-app-value-incement-second"},Sr={class:"contappvalueincementsecond-value"},kr={key:0},xr={class:"contappvalueincementsecond-controls-container"},Br={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Nr={class:"text-icon-info"},Fr={class:"cont-app-value-incement-second"},Vr={class:"contappvalueincementsecond-value"},Ar={key:0},Pr={class:"contappvalueincementsecond-controls-container"},Tr={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Or={class:"text-icon-info"},Lr={class:"cont-app-value-incement-second"},Rr={class:"contappvalueincementsecond-value"},Ir={key:0},$r={class:"contappvalueincementsecond-controls-container"},Dr={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Mr={class:"specific-plays-field__soccer-field"},Hr={class:"game-teams"},Ur={class:"game-teams__team home"},zr={key:0,class:"team-logo"},vr=["src"],Gr={class:"game-teams__team away"},jr={key:0,class:"team-logo"},Wr=["src"],qr={class:"specific-plays-field__play-buttons__container"},Zr={key:1,class:"specific-plays-radio-container-movil"},Jr={class:"radio-container"},Xr={class:"radio-label"},Kr=["src"],Yr={class:"radio-container"},Qr={class:"radio-label"},ei=["src"],ti={key:0,class:"h-separator"},oi={key:1,class:"corner-info"},ni={class:"corner-info__team"},si=["src"],ai={class:"corner-info__details"},ri={class:"corner-info__details__player"},ii={class:"corner-info__details__how-was"},ze=.6,li=5,ci=10,di=60*10,fi=60*10,pi=5,mi=oe({__name:"GSCSpecificPlays",props:{widthContainer:{type:Number,default:1280},selectedCategoryId:{type:Number,default:31},teamIdForAnalysis:{type:Number,default:1},playIdForAnalysis:{type:Number,default:null},seasonIdForAnalysis:{type:Number,default:1325},tournamentSelected:{type:Object,default:()=>({})},advancedFilters:{type:Object,default:()=>({areConnectionsVisible:!1,arePathsVisible:!1,secondsBefore:-1,secondsAfter:1,secondsBeforeAndAfter:0})},filters:{type:Object,default:()=>({isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0})},isGameOnly:{type:Boolean,default:!1},game:{type:Object,default:()=>({id:62323,home_team:1,away_team:14,season:1325,game_status:4,home_acronym:"CHI",away_acronym:"SAN",logo_home:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",logo_away:"https://golstatsimages.blob.core.windows.net/teams-80/14.png"})},gameIdForAnalysis:{type:Number,default:null},isAgainstMode:{type:Boolean,default:!1},areFiltersOpen:{type:Boolean,default:!1},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},isFieldOnly:{type:Boolean,default:!0},isTemplateMode:{type:Boolean,default:!1},isCornerInfoVisible:{type:Boolean,default:!1},isNullCornerData:{type:Boolean,default:!1},providerId:{type:[Number,String],default:null},isDevApis:{type:Boolean,default:!1}},emits:["open-media-player","corners-filled","changelateralidad"],setup(t,{emit:o}){let n=0;const s=t,a=qa(),i=Ja(),r=e.ref(pt),c=e.ref(mt),f=e.ref(!1),m=e.computed(()=>{const p=s.tournamentSelected.is_female==1;return r.value.map(l=>({text:p?l.text.replace("portero","portera").replace("jugador","jugadora"):l.text,categoriesIds:l.categoriesIds}))}),y=e.computed(()=>m.value.reduce((p,l)=>(l.categoriesIds.forEach(h=>{p.set(h,l.text)}),p),new Map)),E=e.computed(()=>new Map(c.value)),k={headers:{Authorization:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},g=o,u=e.ref(null),b=e.ref("0"),C=e.ref(["-1","0"]),L=e.ref(new Map),$=e.ref(!s.isTacticVisible),T=e.ref(!1),A=e.ref([]),D=e.ref(!0),v=e.ref(!0),H=e.ref(!1),fe=e.ref(!1),ne=e.ref(new Map),I=e.computed(()=>{if(s.gameIdForAnalysis&&s.playIdForAnalysis&&A.value){const p=A.value.find(l=>l.game_id===s.gameIdForAnalysis);if(p){if(p.corners.find(_=>_.play_id===s.playIdForAnalysis))return!1;if(p.cornersAgainstTeam.find(_=>_.play_id===s.playIdForAnalysis))return!0}}return s.isAgainstMode}),ve=e.computed(()=>{const p=[];return S.value&&(D.value&&p.push(s.teamIdForAnalysis),v.value&&p.push(s.teamIdForAnalysis!==S.value.home_team?S.value.home_team:S.value.visiting_team)),p}),he=e.computed(()=>s.widthContainer<=768?"cont-data768":"cont-data"),pe=e.computed(()=>{const p=s.widthContainer;return p<=768?"cont-collectors768":p<=900?"cont-collectors900":"cont-collectors"}),te=e.computed(()=>{const p=s.widthContainer;return p<=768?"cont-who-connected768":p<=900?"cont-who-connected900":"cont-who-connected"}),se=e.computed(()=>A.value?A.value.findIndex(p=>p.isSelected):null),S=e.computed(()=>A.value?A.value[se.value]:null),Y=e.ref(null),Q=e.computed(()=>{const p=A.value[se.value];let l=!1;if(p){const h=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(_=>_.isSelected);if(h&&h.playConnections){Be(h);const _=h.playConnections;let w=[_.mainPlay];return _.relatedPlays&&w.push(..._.relatedPlays),w.sort((x,N)=>x.touchOrder-N.touchOrder),w=w.filter(x=>{let N=!0;return l?!1:(xe.value?N=!x.isTeamForAnalysis&&x.y1<=ze||x.isTeamForAnalysis&&x.y1>=ze:N=x.isTeamForAnalysis&&x.y1<=ze||!x.isTeamForAnalysis&&x.y1>=ze,l=!N,N)}),w.forEach((x,N)=>{N>0&&(x.previousPlayConnection=w[N-1]),N===w.length-1&&(x.isLastPlay=!0)}),w}}return[]}),xe=e.computed(()=>{const p=A.value[se.value];if(p){const l=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(h=>h.isSelected);return l?l.isAgainst:!1}return!1}),X=e.computed(()=>{const p=A.value[se.value];if(p){ae(p);const l=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(h=>h.isSelected);return l?l.fieldPositions:null}return null}),q=e.ref({});function ae(p){q.value=p}function Be(p){Y.value=p}const ge=e.computed(()=>X.value?X.value.get(b.value):[]),Ge=e.computed(()=>{if(X.value){const p=Number(C.value[0]),l=Number(C.value[1]),h=[];if(l!==p)for(let _=p;_<l;_++){const w=X.value.get(_.toString()),x=X.value.get((_+1).toString());w&&x&&h.push({playersPositions:w,finalPlayersPositions:x,areFirstPositions:_===p,areFinalPositions:_===l-1})}else h.push({playersPositions:X.value.get(C.value[0]),finalPlayersPositions:X.value.get(C.value[0]),areFirstPositions:!0,areFinalPositions:!0});return h}return[]}),Ne=e.computed(()=>X.value?Array.from(X.value.keys()):[]);e.watch(()=>s.advancedFilters,p=>{$.value=p.areConnectionsVisible,T.value=p.arePathsVisible;const l=p.secondsBeforeAndAfter.toString(),h=p.secondsBefore.toString(),_=p.secondsAfter.toString();Ne.value.includes(l)&&(b.value=l),Ne.value.includes(h)&&(C.value[0]=h),Ne.value.includes(_)&&(C.value[1]=_)},{immediate:!0,deep:!0}),e.watch(()=>I.value,()=>{s.isNullCornerData||ho()}),e.watch(()=>s.providerId,async p=>{if(!p)r.value=pt,c.value=mt;else try{const[l,h]=await Promise.all([Xa(p),Ka(p)]);r.value=l,c.value=h}catch(l){console.error("Failed to fetch dynamic structures, using defaults",l),r.value=pt,c.value=mt}f.value=!0,s.teamIdForAnalysis&&!s.isNullCornerData&&yo()},{immediate:!0}),e.watch(()=>s.teamIdForAnalysis,p=>{p&&!s.isNullCornerData&&f.value&&yo()});const Fe=e.computed(()=>S.value?s.teamIdForAnalysis===S.value.home_team:!0);e.watch(()=>se.value,(p,l)=>{if(p!==l&&(b.value="0",C.value=["-1","0"],S.value)){S.value.corners.forEach(w=>{w.isSelected=!1}),S.value.cornersAgainstTeam.forEach(w=>{w.isSelected=!1});const _=(I.value?S.value.cornersAgainstTeam:S.value.corners).filter(w=>w.isVisible);_.length>0&&(_[0].isSelected=!0)}}),e.watch(()=>s.filters,p=>{p&&je()},{deep:!0,immediate:!0}),e.watch(()=>s.isTacticVisible,p=>{$.value=!p});function ui(p){g("changelateralidad",p)}function je(){if(A.value)if(s.isSynchronization)A.value.forEach((p,l)=>{p.isVisible=!0,l===0&&(p.isSelected=!0,p.isExpanded=!0,p.corners.forEach(h=>{h.isVisible=!0}),p.cornersAgainstTeam.forEach(h=>{h.isVisible=!0}))});else{let p=!1;A.value.forEach(l=>{if(l.isSelected=!1,I.value&&l.isSoccerFieldDataRivalLoaded||!I.value&&l.isSoccerFieldDataLoaded){const h=I.value?l.cornersAgainstTeam:l.corners;if((!s.filters.games.length||s.filters.games.includes(l.game_id))&&s.filters.playingAs.includes(l.playingAs)&&(s.filters.isMoment||s.filters.final.includes(l.finalResult))){let _=0;for(const w of h){if(w.isSelected=!1,s.playIdForAnalysis&&w.play_id===s.playIdForAnalysis){w.isVisible=!0,w.isSelected=!0,_++;break}if(s.filters.cornertype!==w.init_category_id){w.isVisible=!1,w.isSelected=!1;continue}if(!s.filters.howWas.some(x=>w.relatedCategoriesIds.has(x))){w.isVisible=!1,w.isSelected=!1;continue}if(!I.value&&s.filters.players.length&&!s.filters.players.includes(w.player_id)){w.isVisible=!1,w.isSelected=!1;continue}if(w.playConnections){if(!s.filters.sections.includes(w.playConnections.mainPlay.timeSection)){w.isVisible=!1,w.isSelected=!1;continue}if(!s.filters.moment.includes(w.playConnections.mainPlay.matchResultAtMomentOfPlay)){w.isVisible=!1,w.isSelected=!1;continue}const x=w.playConnections.mainPlay;if(x&&!s.filters.isZoneFull&&!s.filters.zona.includes(x.fieldSection)){w.isVisible=!1,w.isSelected=!1;continue}}if(!s.filters.isWhatHappenedFull&&w.relatedCategoriesIds&&!s.filters.whathappened.some(x=>w.relatedCategoriesIds.has(x))){w.isVisible=!1,w.isSelected=!1;continue}w.isVisible=!0,_===0&&(w.isSelected=!0),_++}l.isVisible=_>0,l.isVisible&&!p?(l.isSelected=!0,l.isExpanded=!0,p=!0):l.isSelected=!1}else l.isVisible=!1,h.forEach(_=>{_.isVisible=!1,_.isSelected=!1})}})}}function yi([p,l]){const h=Math.round(Number(l));if(h===60){const _=Number(p)+1;return`${_<100?_<10?"00":"0":""}${_}:00.000`}return`${p}:${h<10?"0":""}${h}.000`}function ut(p,l,h,_){p&&p.forEach(w=>{w.isHomeTeam=w.teamId===S.value.home_team,w.attackDirection=_.get(w.playId).mainPlay.attackDirection,w.player=l.get(w.playerId)||h.get(w.playerId)})}function We(p,l){const h=Number(C.value[l])+p;if(Ne.value.includes(h.toString())){const _=[...C.value];_[l]=h.toString(),Number(_[1])-Number(_[0])>=0&&(C.value=[..._])}}function po(p){const l=Number(b.value)+p;Ne.value.includes(l.toString())&&(b.value=l.toString())}function hi(p){if(!p.teams||p.teams.length===0)return;const l=p.teams[0].team_id,h=p.teams[1].team_id;if(s.teamIdForAnalysis===l&&p.home_atk_direction===1||s.teamIdForAnalysis===h&&p.visiting_atk_direction===1)for(let _=1;_<5;_++)L.value.set(_,_%2===0?Ue.TO_LEFT:Ue.TO_RIGHT);else for(let _=1;_<5;_++)L.value.set(_,_%2===0?Ue.TO_RIGHT:Ue.TO_LEFT)}function gi(){fe.value=!0}function mo(){fe.value=!1}async function Ci(){try{if(S.value){const p={messages:[{queue:"gs3.tendency",message:{key:"postmatch",action:"season",data:{season_id:s.seasonIdForAnalysis,game_id:S.value.game_id}}}]};await O.post(ke("https://6xh1ym8shh.execute-api.us-west-2.amazonaws.com/prod/pushInternalData",s.providerId,s.isDevApis),p,k)}}catch(p){throw new Error(p)}finally{mo()}}function bi(){H.value=!0}function uo(){H.value=!1}async function wi(){try{if(S.value){const p=S.value[`${I.value?"cornersAgainstTeam":"corners"}`].find(l=>l.isSelected);if(p){const l={play_id:p.play_id,game_id:S.value.game_id,season_id:s.seasonIdForAnalysis,seconds:Number(b.value),moment_of_play:p.moment_of_play};await O.post(ke("https://bqsyfm7sij.execute-api.us-east-2.amazonaws.com/prod/sync",s.providerId,s.isDevApis),l,k)}}}catch(p){throw new Error(p)}finally{uo()}}async function yo(p){try{const l=ne.value.get(s.teamIdForAnalysis);if(l){A.value=l,je();return}n=p||s.seasonIdForAnalysis;const _=(await O.get(ke(`https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/${n}/games/teams/${s.teamIdForAnalysis}/corners`,s.providerId,s.isDevApis),k)).data,w={corners:0,cornersAgainst:0};A.value=_.games?_.games.reduce((x,N)=>{if(s.isGameOnly&&s.gameIdForAnalysis!==N.game_id)return x;const Z={againstTeam:[],team:[]},B=N.score[1]-N.score[0];N.dateMillis=new Date(N.date_time_utc),N.isVisible=!0,N.playingAs=N.home_team===s.teamIdForAnalysis?1:2,N.finalResult=B===0?3:N.playingAs===1?B>0?2:1:B<0?2:1,N.corners.forEach(P=>{const R=P.team_id===s.teamIdForAnalysis;P.isAgainst=!R,(!s.playIdForAnalysis||s.playIdForAnalysis===P.play_id)&&(R?Z.team.push(P):Z.againstTeam.push(P))}),N.corners=Z.team,N.cornersAgainstTeam=Z.againstTeam;const j=N.home_team===s.teamIdForAnalysis?1:2;w.corners+=N.corners.length,w.cornersAgainst+=N.cornersAgainstTeam.length;const V={...N,isSelected:x.length===0,isExpanded:!1,isTeamForAnalysisHomeTeam:N.home_team===s.teamIdForAnalysis,canPlayVideos:s.canPlayVideos&&s.videoPrivilegesPlayingAs.has(j)};return x.push(V),x},[]):[],A.value=A.value.sort((x,N)=>N.dateMillis-x.dateMillis),go(),g("corners-filled",w),await ho(),A.value.forEach(x=>{x.corners.concat(x.cornersAgainstTeam).forEach(N=>{if(N.playConnections){const[Z,B]=N.moment_of_play.split(":"),[j,V]=B.split("."),P=Number(Z)+45*N.playConnections.mainPlay.matchLapse;N.isSelected=!1,N.orderValue=+`${P}${j}${V}`}}),x.corners=x.corners.sort((N,Z)=>N.orderValue-Z.orderValue),x.cornersAgainstTeam=x.cornersAgainstTeam.sort((N,Z)=>N.orderValue-Z.orderValue)}),je()}catch(l){throw new Error(l)}}async function ho(){try{const p=[];A.value.forEach(l=>{(I.value&&!l.isSoccerFieldDataRivalLoaded||!I.value&&!l.isSoccerFieldDataLoaded)&&p.push(_i(l))}),p.length>0&&((await Promise.all(p)).forEach((h,_)=>{Ei(A.value[_],h)}),je()),go()}catch(p){throw new Error(p)}}function go(){ne.value.get(s.teamIdForAnalysis)||ne.value.set(s.teamIdForAnalysis,A.value)}function _i(p){return s.isSynchronization?O.get(ke(`https://golstats-microservices.s3.us-west-2.amazonaws.com/tendency/corners-${I.value?"received":"commited"}-${n}-${s.teamIdForAnalysis}-${p.game_id}-large.json`,s.providerId,s.isDevApis)):O.get(ke(`https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/${n}/corners/trends/teams/${s.teamIdForAnalysis}/${p.game_id}${I.value?"?isR=1":""}`,s.providerId,s.isDevApis),k)}function Co(p){const[l,h]=p.split(", ");let _="";const w=l.split(" ");for(const x of w)if(_+=` ${x}`,x.length>3)break;return h&&l?`${h.trim().charAt(0)}.${_}`:""}function bo(p){let[l,h]=p.split(", ");h=(h==null?void 0:h.trim())||"";let _="";const w=l.split(" "),x=h.includes(" ")?h.split(" ")[0]:h;for(const N of w)if(_+=` ${N}`,N.length>3)break;return x&&l?`${x} ${_}`:""}async function Ei(p,l){try{if(p&&l&&(!p.isSoccerFieldDataLoaded||!p.isSoccerFieldDataRivalLoaded)){const h=new Map,_=new Map,w=new Map;hi(l.data),l.data.players&&l.data.players.forEach(B=>{B.shortName=Co(B.name),B.firstNameAndFirstLastName=bo(B.name),_.set(B.player_id,B)}),l.data.rival_players&&l.data.rival_players.forEach(B=>{B.shortName=Co(B.name),B.firstNameAndFirstLastName=bo(B.name),w.set(B.player_id,B)}),u.value=l.data.teams.find(B=>B.team_id===s.teamIdForAnalysis),u.value&&(u.value.rival=l.data.teams.find(B=>B.team_id!==s.teamIdForAnalysis));const x=l.data.data.reduce((B,j)=>{const V=j.reduce((re,Ce,wo)=>(re[i[wo]]=Ce,re.isHomeTeam=re.teamId===p.home_team,re),{}),P=V.playId===V.relatedPlayId,R=B.get(V.relatedPlayId),G=V.momentOfPlay.split(":"),W=yi(G);return V.player=_.get(V.playerId)||w.get(V.playerId),V.isTeamForAnalysis=V.teamId===s.teamIdForAnalysis,P&&(V.attackDirection=L.value.get(V.matchLapse),h.set(V.playId,W)),R?P?R.mainPlay=V:R.relatedPlays.length<pi&&(R.relatedPlays.push(V),R.relatedPlays.length>1&&R.relatedPlays.sort((re,Ce)=>re.touchOrder-Ce.touchOrder)):B.set(V.playId,{mainPlay:P?V:null,relatedPlays:P?[]:[V]}),B},new Map),N=l.data.field_positions.reduce((B,j)=>{const V=j.reduce((R,G,W)=>(R[a[W]]=G,R),{});V.isTeamForAnalysis=V.teamId===s.teamIdForAnalysis;const P=B.get(V.playId);if(P){const R=P.get(V.momentOfPlay);R?R.push(V):P.set(V.momentOfPlay,[V])}else B.set(V.playId,new Map([[V.momentOfPlay,[V]]]));return B},new Map),Z=Array.from(h.entries()).reduce((B,[j,V])=>{const P=[],R=[];let G=null;const W=N.get(j);if(W){const re=s.isSynchronization?di:li,Ce=s.isSynchronization?fi:ci;Array.from(W.keys()).sort().forEach(ee=>{(!G||R.length<Ce)&&(ee===V?G=W.get(ee):G?R.length<Ce&&R.push(W.get(ee)):(P.length===re&&P.shift(),P.push(W.get(ee))))});const qe=new Map;P.forEach((ee,ht)=>{ut(ee,_,w,x),qe.set(`${ht-P.length}`,ee)}),ut(G,_,w,x),qe.set("0",G),R.forEach((ee,ht)=>{ut(ee,_,w,x),qe.set(`${ht+1}`,ee)}),B.set(j,qe)}return B},new Map);p[`${I.value?"cornersAgainstTeam":"corners"}`].forEach(B=>{const j=B.related_categories.split(",").reduce((P,R,G)=>{const W=Number(R);return G===1&&(B.howWasCorner=W),P.array.push(W),P.sett.add(W),P},{array:[],sett:new Set});for(const P of j.array){const R=E.value.get(P),G=y.value.get(P);if(G&&(B.whatHappenedName=G),R&&(B.howWasCornerName=R),B.howWasCornerName&&B.whatHappenedName)break}B.relatedCategoriesIds=j.sett,B.playConnections=x.get(B.play_id),B.fieldPositions=Z.get(B.play_id),B.player=_.get(B.player_id)||w.get(B.player_id);let V=B.moment_of_play.split(".")[0];V.startsWith("0")&&(V=V.slice(1)),B.formattedMomentOfPlay=V,B.momentOfPlayNumber=Number(V.replace(":","."))}),!I.value&&!p.isSoccerFieldDataLoaded&&(p.isSoccerFieldDataLoaded=!0),I.value&&!p.isSoccerFieldDataRivalLoaded&&(p.isSoccerFieldDataRivalLoaded=!0)}}catch(h){throw new Error(h)}}function yt(p){const l=S.value[`${I.value?"cornersAgainstTeam":"corners"}`],h={},_=l.reduce((w,x)=>(x.isVisible&&(w.add(x.play_id),x.isSelected&&(h.playId=x.play_id)),w),new Set);g("open-media-player",{seasonId:n,mainSectionType:1,playListType:1,playsIds:_,playData:h,categoryIds:I.value?["31_r","32_r"]:[31,32],teamId:s.teamIdForAnalysis,videosType:p,isCarouselOnly:!0})}return(p,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",or,[e.createElementVNode("div",nr,[e.createElementVNode("div",sr," ¿Estás seguro que deseas sincronizar el tracking del partido "+e.toDisplayString(S.value?S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`]:"")+" vs "+e.toDisplayString(S.value?S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`]:"")+" ? ",1),e.createElementVNode("div",{class:"modal-confirmation__buttons"},[e.createElementVNode("div",{class:"modal-confirmation__buttons__button cancel",onClick:mo}," No "),e.createElementVNode("div",{class:"modal-confirmation__buttons__button",onClick:Ci},"Sí")])])],512),[[e.vShow,fe.value]]),e.withDirectives(e.createElementVNode("div",ar,[e.createElementVNode("div",rr,[e.createElementVNode("div",ir," ¿Estás seguro que deseas sincronizar esta jugada en el segundo "+e.toDisplayString(b.value)+"? ",1),e.createElementVNode("div",{class:"modal-confirmation__buttons"},[e.createElementVNode("div",{class:"modal-confirmation__buttons__button cancel",onClick:uo}," No "),e.createElementVNode("div",{class:"modal-confirmation__buttons__button",onClick:wi},"Sí")])])],512),[[e.vShow,H.value]]),e.createElementVNode("div",{class:e.normalizeClass(t.widthContainer<=768?"gsc-specific-plays-movil":"gsc-specific-plays")},[e.withDirectives(e.createElementVNode("div",lr,[e.createElementVNode("div",cr,[t.widthContainer<=768?(e.openBlock(),e.createElementBlock("span",dr,"Elige que quieres ver:")):(e.openBlock(),e.createElementBlock("span",fr,"Jugadas Específicas"))])],512),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:e.normalizeClass(he.value)},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(pe.value)},[t.widthContainer>768?(e.openBlock(),e.createBlock(Yo,{key:0,"is-against-mode":I.value,"games-by-team":A.value,"are-filters-open":t.areFiltersOpen},null,8,["is-against-mode","games-by-team","are-filters-open"])):(e.openBlock(),e.createBlock(jn,{key:1,"is-against-mode":I.value,"games-by-team":A.value,"are-filters-open":t.areFiltersOpen},null,8,["is-against-mode","games-by-team","are-filters-open"]))],2),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:e.normalizeClass(te.value)},[t.isSynchronization?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button-tracking",onClick:gi}," Generar datos ")):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",pr,[e.createElementVNode("div",mr,[e.createVNode(e.unref(Je),{modelValue:$.value,"onUpdate:modelValue":l[0]||(l[0]=h=>$.value=h),label:"Mostrar conexiones",fontFamily:"Poppins-Regular",labelFontSize:t.widthContainer>400?"13px":"12px","label-color":"#FFF"},null,8,["modelValue","labelFontSize"]),t.widthContainer<=768&&t.isTacticVisible?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,modelValue:T.value,"onUpdate:modelValue":l[1]||(l[1]=h=>T.value=h),label:"Mostrar recorrido",fontFamily:"Poppins-Regular",labelFontSize:t.widthContainer>400?"13px":"12px","label-color":"#FFF"},null,8,["modelValue","labelFontSize"])):e.createCommentVNode("",!0),t.widthContainer>768?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["specific-plays-radio-container",{"is-away-team":!Fe.value}])},[S.value&&t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("label",ur,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[2]||(l[2]=h=>D.value=h),type:"checkbox",name:"radio",checked:"",style:{display:"none"}},null,512),[[e.vModelCheckbox,D.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-home":"outer-circle-away")},[D.value?(e.openBlock(),e.createElementBlock("svg",yr,[...l[16]||(l[16]=[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"},null,-1)])])):e.createCommentVNode("",!0)],2),e.createElementVNode("span",hr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_logo`]},null,8,gr)])]),e.createElementVNode("label",Cr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[3]||(l[3]=h=>v.value=h),type:"checkbox",name:"radio",style:{display:"none"}},null,512),[[e.vModelCheckbox,v.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[v.value?(e.openBlock(),e.createElementBlock("svg",br,[...l[17]||(l[17]=[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"},null,-1)])])):e.createCommentVNode("",!0)],2),e.createElementVNode("span",wr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_logo`]},null,8,_r)])])],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["specific-plays-controls22",t.widthContainer<=375?"specific-plays-controls22small":""])},[t.widthContainer>768&&t.isTacticVisible&&!t.isSynchronization?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,modelValue:T.value,"onUpdate:modelValue":l[4]||(l[4]=h=>T.value=h),label:"Mostrar recorrido",fontFamily:"Poppins-Regular",labelFontSize:"13px","label-color":"#FFF"},null,8,["modelValue"])):e.createCommentVNode("",!0),t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[T.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.widthContainer<=768?"specify-control-incement-second-container-mobil":"specify-control-incement-second-container")},[e.createElementVNode("div",Nr,[t.widthContainer>990||t.widthContainer<=768&&t.widthContainer>=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Inicio: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Inicio:")],64))]),l[29]||(l[29]=e.createElementVNode("div",{class:"icon-info"},null,-1)),e.createElementVNode("div",Fr,[e.createElementVNode("div",Vr,[Number(C.value[0])>0?(e.openBlock(),e.createElementBlock("span",Ar,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(C.value[0]),1)]),l[25]||(l[25]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",Pr,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[7]||(l[7]=h=>We(1,0))},[(e.openBlock(),e.createElementBlock("svg",Tr,[...l[23]||(l[23]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[8]||(l[8]=h=>We(-1,0))},[...l[24]||(l[24]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])]),e.createElementVNode("div",Or,[t.widthContainer>990||t.widthContainer<=768&&t.widthContainer>=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Fin: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Fin:")],64))]),l[30]||(l[30]=e.createElementVNode("div",{class:"icon-info"},null,-1)),e.createElementVNode("div",Lr,[e.createElementVNode("div",Rr,[Number(C.value[1])>0?(e.openBlock(),e.createElementBlock("span",Ir,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(C.value[1]),1)]),l[28]||(l[28]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",$r,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[9]||(l[9]=h=>We(1,1))},[(e.openBlock(),e.createElementBlock("svg",Dr,[...l[26]||(l[26]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[10]||(l[10]=h=>We(-1,1))},[...l[27]||(l[27]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.widthContainer<=768?"specify-control-incement-second-container-mobil":"specify-control-incement-second-container")},[l[21]||(l[21]=e.createElementVNode("div",{class:"icon-info"},null,-1)),l[22]||(l[22]=e.createElementVNode("div",{class:"text-icon-info"},"Segundos antes/después del cobro:",-1)),e.createElementVNode("div",Er,[e.createElementVNode("div",Sr,[Number(b.value)>0?(e.openBlock(),e.createElementBlock("span",kr,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(b.value),1)]),l[20]||(l[20]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",xr,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[5]||(l[5]=h=>po(1))},[(e.openBlock(),e.createElementBlock("svg",Br,[...l[18]||(l[18]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[6]||(l[6]=h=>po(-1))},[...l[19]||(l[19]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])])],2))],64)):e.createCommentVNode("",!0),t.isSynchronization?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button-sync",onClick:bi}," Guardar sincronización ")):e.createCommentVNode("",!0)],2)],512),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:"specific-plays-field",style:e.normalizeStyle(t.widthContainer<=768?"height: auto":"")},[e.createElementVNode("div",Mr,[e.createVNode(Es,{"width-container":t.widthContainer,"play-connections":Q.value,"players-positions":ge.value,"players-positions-by-range":Ge.value,"team-id-for-analysis":t.teamIdForAnalysis,"selected-category":t.filters.cornertype,"are-connections-visible":$.value,"are-position-paths-visible":T.value,"visible-teams-ids":ve.value,"is-against-corner":xe.value,onChangelateralidad:ui},null,8,["width-container","play-connections","players-positions","players-positions-by-range","team-id-for-analysis","selected-category","are-connections-visible","are-position-paths-visible","visible-teams-ids","is-against-corner"])]),e.createElementVNode("div",Hr,[e.createElementVNode("div",Ur,[t.isTemplateMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",zr,[e.createElementVNode("img",{src:q.value.home_team_logo,alt:""},null,8,vr)])),l[31]||(l[31]=e.createElementVNode("div",{class:"bullet"},null,-1))]),e.createElementVNode("div",Gr,[t.isTemplateMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("img",{src:q.value.visiting_team_logo,alt:""},null,8,Wr)])),l[32]||(l[32]=e.createElementVNode("div",{class:"bullet"},null,-1))])]),S.value&&S.value.canPlayVideos&&!t.isFieldOnly?(e.openBlock(),e.createElementBlock("div",{key:0,class:"specific-plays-field__play-buttons",style:e.normalizeStyle(t.widthContainer<=768?"gap:5px; flex-direction: column;":"")},[l[36]||(l[36]=e.createElementVNode("div",{class:"specific-plays-field__play-buttons__text"},"Visualizar video:",-1)),e.createElementVNode("div",qr,[S.value.video_types.includes(1)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"specific-plays-field__play-buttons__button",onClick:l[11]||(l[11]=h=>yt(1))},[...l[33]||(l[33]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Toma TV",-1)])])):e.createCommentVNode("",!0),S.value.video_types.includes(3)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"specific-plays-field__play-buttons__button",onClick:l[12]||(l[12]=h=>yt(3))},[...l[34]||(l[34]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Táctica",-1)])])):e.createCommentVNode("",!0),S.value.video_types.includes(2)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"specific-plays-field__play-buttons__button",onClick:l[13]||(l[13]=h=>yt(2))},[...l[35]||(l[35]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Panorámica",-1)])])):e.createCommentVNode("",!0)])],4)):e.createCommentVNode("",!0)],4),t.widthContainer<=768?(e.openBlock(),e.createElementBlock("div",Zr,[S.value&&t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("label",Jr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[14]||(l[14]=h=>D.value=h),type:"checkbox",name:"radio",checked:"",style:{display:"none"}},null,512),[[e.vModelCheckbox,D.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[...l[37]||(l[37]=[e.createElementVNode("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"})],-1)])],2),e.createElementVNode("span",Xr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_logo`]},null,8,Kr)])]),e.createElementVNode("label",Yr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[15]||(l[15]=h=>v.value=h),type:"checkbox",name:"radio",style:{display:"none"}},null,512),[[e.vModelCheckbox,v.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[...l[38]||(l[38]=[e.createElementVNode("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"})],-1)])],2),e.createElementVNode("span",Qr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_logo`]},null,8,ei)])])],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)],2),Y.value&&t.isCornerInfoVisible?(e.openBlock(),e.createElementBlock("div",ti)):e.createCommentVNode("",!0),Y.value&&t.isCornerInfoVisible?(e.openBlock(),e.createElementBlock("div",oi,[e.createElementVNode("div",ni,[e.createElementVNode("img",{class:"corner-info__team__logo",src:`https://golstatsimages.blob.core.windows.net/teams-80/${Y.value.team_id}.png`},null,8,si)]),e.createElementVNode("div",ai,[e.createElementVNode("div",ri,[l[39]||(l[39]=e.createElementVNode("span",null," Tiro de esquina ",-1)),l[40]||(l[40]=e.createElementVNode("span",{class:"separator"}," | ",-1)),e.createElementVNode("span",null,e.toDisplayString(Y.value.player.firstNameAndFirstLastName),1)]),e.createElementVNode("div",ii,[e.createElementVNode("span",null,e.toDisplayString(Y.value.howWasCornerName),1),l[41]||(l[41]=e.createElementVNode("span",{class:"separator"}," | ",-1)),e.createElementVNode("span",null,e.toDisplayString(Y.value.whatHappenedName),1)])])])):e.createCommentVNode("",!0)],2)],64))}},[["__scopeId","data-v-a30f1ff3"]]);ie.GSCSpecificPlays=mi,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
|
6
|
+
`+i):s.stack=i}catch{}}throw s}}_request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=ce(this.defaults,n);const{transitional:s,paramsSerializer:a,headers:i}=n;s!==void 0&&He.assertOptions(s,{silentJSONParsing:K.transitional(K.boolean),forcedJSONParsing:K.transitional(K.boolean),clarifyTimeoutError:K.transitional(K.boolean)},!1),a!=null&&(d.isFunction(a)?n.paramsSerializer={serialize:a}:He.assertOptions(a,{encode:K.function,serialize:K.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),He.assertOptions(n,{baseUrl:K.spelling("baseURL"),withXsrfToken:K.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=i&&d.merge(i.common,i[n.method]);i&&d.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=z.concat(r,i);const c=[];let f=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(f=f&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const m=[];this.interceptors.response.forEach(function(b){m.push(b.fulfilled,b.rejected)});let y,E=0,k;if(!f){const u=[ao.bind(this),void 0];for(u.unshift(...c),u.push(...m),k=u.length,y=Promise.resolve(n);E<k;)y=y.then(u[E++],u[E++]);return y}k=c.length;let g=n;for(;E<k;){const u=c[E++],b=c[E++];try{g=u(g)}catch(C){b.call(this,C);break}}try{y=ao.call(this,g)}catch(u){return Promise.reject(u)}for(E=0,k=m.length;E<k;)y=y.then(m[E++],m[E++]);return y}getUri(o){o=ce(this.defaults,o);const n=Zt(o.baseURL,o.url,o.allowAbsoluteUrls);return Mt(n,o.params,o.paramsSerializer)}};d.forEach(["delete","get","head","options"],function(o){de.prototype[o]=function(n,s){return this.request(ce(s||{},{method:o,url:n,data:(s||{}).data}))}}),d.forEach(["post","put","patch"],function(o){function n(s){return function(i,r,c){return this.request(ce(c||{},{method:o,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}de.prototype[o]=n(),de.prototype[o+"Form"]=n(!0)});let va=class _o{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(a=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](a);s._listeners=null}),this.promise.then=a=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(a);return r.cancel=function(){s.unsubscribe(i)},r},o(function(i,r,c){s.reason||(s.reason=new ye(i,r,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const o=new AbortController,n=s=>{o.abort(s)};return this.subscribe(n),o.signal.unsubscribe=()=>this.unsubscribe(n),o.signal}static source(){let o;return{token:new _o(function(a){o=a}),cancel:o}}};function Ga(t){return function(n){return t.apply(null,n)}}function ja(t){return d.isObject(t)&&t.isAxiosError===!0}const ct={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ct).forEach(([t,o])=>{ct[o]=t});function lo(t){const o=new de(t),n=kt(de.prototype.request,o);return d.extend(n,de.prototype,o,{allOwnKeys:!0}),d.extend(n,o,null,{allOwnKeys:!0}),n.create=function(a){return lo(ce(t,a))},n}const O=lo(Ee);O.Axios=de,O.CanceledError=ye,O.CancelToken=va,O.isCancel=Gt,O.VERSION=ro,O.toFormData=Re,O.AxiosError=F,O.Cancel=O.CanceledError,O.all=function(o){return Promise.all(o)},O.spread=Ga,O.isAxiosError=ja,O.mergeConfig=ce,O.AxiosHeaders=z,O.formToJSON=t=>zt(d.isHTMLForm(t)?new FormData(t):t),O.getAdapter=so.getAdapter,O.HttpStatusCode=ct,O.default=O;const{Axios:$i,AxiosError:Di,CanceledError:Mi,isCancel:Hi,CancelToken:Ui,VERSION:zi,all:vi,Cancel:Gi,isAxiosError:ji,spread:Wi,toFormData:qi,AxiosHeaders:Zi,HttpStatusCode:Ji,formToJSON:Xi,getAdapter:Ki,mergeConfig:Yi}=O,Wa=["gameId","playerId","teamId","x","y","momentOfPlay","section","playId","timeSection"];let dt=null;function qa(){return dt||(dt=Wa.reduce((t,o,n)=>(t[n]=o,t),{})),dt}const Za=["playId","playerId","teamId","gameId","categoryId","relatedCategoriesIds","x1","y1","x2","y2","x3","y3","fieldSection","momentOfPlay","playingAs","matchLapse","matchResult","matchResultAtMomentOfPlay","relatedPlayId","touchOrder","timeSection"];let ft=null;function Ja(){return ft||(ft=Za.reduce((t,o,n)=>(t[n]=o,t),{})),ft}const Ue={TO_RIGHT:"toRight",TO_LEFT:"toLeft"},pt=[{text:"Rematado fue gol",categoriesIds:[583,585,587,589]},{text:"Rematado no fue gol",categoriesIds:[584,586,588,590]},{text:"Rematado sin destino",categoriesIds:[122,128,136,142]},{text:"Ganado por portero rival",categoriesIds:[123,129,137,143]},{text:"Ganado por jugador rival",categoriesIds:[124,130,138,144]},{text:"Sin destino",categoriesIds:[125,131,139,145]}],mt=[[120,"Comba hacia afuera"],[134,"Comba hacia afuera"],[126,"Comba hacia adentro"],[140,"Comba hacia adentro"],[327,"Raz de área"],[146,"Raz de área"],[133,"En corto"],[147,"En corto"]],co="https://example-api.golstats.com/prod";async function fo(t,o=3){let n;for(let s=1;s<=o;s++)try{return await t()}catch(a){if(n=a,s===o)throw n}}async function Xa(t){return fo(async()=>(await O.get(`${co}/providers/${t}/structures/what-happened`)).data)}async function Ka(t){return fo(async()=>(await O.get(`${co}/providers/${t}/structures/how-was`)).data)}const Ya=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,Qa=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,er="https://apis.golstats.com",tr="https://dev-apis.golstats.com";function ke(t,o,n=!1){if(!o||o===1)return t;const s=n?tr:er,a=t.match(Ya);if(a){const r=t.replace(a[0],"");return`${s}/${o}/${r}`}const i=t.match(Qa);if(i){const r=t.replace(i[0],"");return`${s}/${o}/${r}`}return t}const or={class:"modal-confirmation"},nr={class:"modal-confirmation__container"},sr={class:"modal-confirmation__title"},ar={class:"modal-confirmation"},rr={class:"modal-confirmation__container"},ir={class:"modal-confirmation__title"},lr={class:"specific-plays-titlecontainer"},cr={class:"specific-plays-title"},dr={key:0,class:"specific-plays-title-elegibility"},fr={key:1},pr={class:"specific-plays-controls"},mr={class:"specific-plays-controls11"},ur={class:"radio-container"},yr={key:0,width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hr={class:"radio-label"},gr=["src"],Cr={class:"radio-container"},br={key:0,width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wr={class:"radio-label"},_r=["src"],Er={class:"cont-app-value-incement-second"},Sr={class:"contappvalueincementsecond-value"},kr={key:0},xr={class:"contappvalueincementsecond-controls-container"},Br={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Nr={class:"text-icon-info"},Fr={class:"cont-app-value-incement-second"},Vr={class:"contappvalueincementsecond-value"},Ar={key:0},Pr={class:"contappvalueincementsecond-controls-container"},Tr={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Or={class:"text-icon-info"},Lr={class:"cont-app-value-incement-second"},Rr={class:"contappvalueincementsecond-value"},Ir={key:0},$r={class:"contappvalueincementsecond-controls-container"},Dr={"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{"margin-left":"4px"}},Mr={class:"specific-plays-field__soccer-field"},Hr={class:"game-teams"},Ur={class:"game-teams__team home"},zr={key:0,class:"team-logo"},vr=["src"],Gr={class:"game-teams__team away"},jr={key:0,class:"team-logo"},Wr=["src"],qr={class:"specific-plays-field__play-buttons__container"},Zr={key:1,class:"specific-plays-radio-container-movil"},Jr={class:"radio-container"},Xr={class:"radio-label"},Kr=["src"],Yr={class:"radio-container"},Qr={class:"radio-label"},ei=["src"],ti={key:0,class:"h-separator"},oi={key:1,class:"corner-info"},ni={class:"corner-info__team"},si=["src"],ai={class:"corner-info__details"},ri={class:"corner-info__details__player"},ii={class:"corner-info__details__how-was"},ze=.6,li=5,ci=10,di=60*10,fi=60*10,pi=5,mi=oe({__name:"GSCSpecificPlays",props:{widthContainer:{type:Number,default:1280},selectedCategoryId:{type:Number,default:31},teamIdForAnalysis:{type:Number,default:1},playIdForAnalysis:{type:Number,default:null},seasonIdForAnalysis:{type:Number,default:1325},tournamentSelected:{type:Object,default:()=>({})},advancedFilters:{type:Object,default:()=>({areConnectionsVisible:!1,arePathsVisible:!1,secondsBefore:-1,secondsAfter:1,secondsBeforeAndAfter:0})},filters:{type:Object,default:()=>({isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0})},isGameOnly:{type:Boolean,default:!1},game:{type:Object,default:()=>({id:62323,home_team:1,away_team:14,season:1325,game_status:4,home_acronym:"CHI",away_acronym:"SAN",logo_home:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",logo_away:"https://golstatsimages.blob.core.windows.net/teams-80/14.png"})},gameIdForAnalysis:{type:Number,default:null},isAgainstMode:{type:Boolean,default:!1},areFiltersOpen:{type:Boolean,default:!1},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},isFieldOnly:{type:Boolean,default:!0},isTemplateMode:{type:Boolean,default:!1},isCornerInfoVisible:{type:Boolean,default:!1},isNullCornerData:{type:Boolean,default:!1},providerId:{type:[Number,String],default:null},isDevApis:{type:Boolean,default:!1}},emits:["open-media-player","corners-filled","changelateralidad"],setup(t,{emit:o}){let n=0;const s=t,a=qa(),i=Ja(),r=e.ref(pt),c=e.ref(mt),f=e.ref(!1),m=e.computed(()=>{const p=s.tournamentSelected.is_female==1;return r.value.map(l=>({text:p?l.text.replace("portero","portera").replace("jugador","jugadora"):l.text,categoriesIds:l.categoriesIds}))}),y=e.computed(()=>m.value.reduce((p,l)=>(l.categoriesIds.forEach(h=>{p.set(h,l.text)}),p),new Map)),E=e.computed(()=>new Map(c.value)),k={headers:{Authorization:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},g=o,u=e.ref(null),b=e.ref("0"),C=e.ref(["-1","0"]),L=e.ref(new Map),$=e.ref(!s.isTacticVisible),T=e.ref(!1),A=e.ref([]),D=e.ref(!0),v=e.ref(!0),H=e.ref(!1),fe=e.ref(!1),ne=e.ref(new Map),I=e.computed(()=>{if(s.gameIdForAnalysis&&s.playIdForAnalysis&&A.value){const p=A.value.find(l=>l.game_id===s.gameIdForAnalysis);if(p){if(p.corners.find(_=>_.play_id===s.playIdForAnalysis))return!1;if(p.cornersAgainstTeam.find(_=>_.play_id===s.playIdForAnalysis))return!0}}return s.isAgainstMode}),ve=e.computed(()=>{const p=[];return S.value&&(D.value&&p.push(s.teamIdForAnalysis),v.value&&p.push(s.teamIdForAnalysis!==S.value.home_team?S.value.home_team:S.value.visiting_team)),p}),he=e.computed(()=>s.widthContainer<=768?"cont-data768":"cont-data"),pe=e.computed(()=>{const p=s.widthContainer;return p<=768?"cont-collectors768":p<=900?"cont-collectors900":"cont-collectors"}),te=e.computed(()=>{const p=s.widthContainer;return p<=768?"cont-who-connected768":p<=900?"cont-who-connected900":"cont-who-connected"}),se=e.computed(()=>A.value?A.value.findIndex(p=>p.isSelected):null),S=e.computed(()=>A.value?A.value[se.value]:null),Y=e.ref(null),Q=e.computed(()=>{const p=A.value[se.value];let l=!1;if(p){const h=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(_=>_.isSelected);if(h&&h.playConnections){Be(h);const _=h.playConnections;let w=[_.mainPlay];return _.relatedPlays&&w.push(..._.relatedPlays),w.sort((x,N)=>x.touchOrder-N.touchOrder),w=w.filter(x=>{let N=!0;return l?!1:(xe.value?N=!x.isTeamForAnalysis&&x.y1<=ze||x.isTeamForAnalysis&&x.y1>=ze:N=x.isTeamForAnalysis&&x.y1<=ze||!x.isTeamForAnalysis&&x.y1>=ze,l=!N,N)}),w.forEach((x,N)=>{N>0&&(x.previousPlayConnection=w[N-1]),N===w.length-1&&(x.isLastPlay=!0)}),w}}return[]}),xe=e.computed(()=>{const p=A.value[se.value];if(p){const l=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(h=>h.isSelected);return l?l.isAgainst:!1}return!1}),X=e.computed(()=>{const p=A.value[se.value];if(p){ae(p);const l=p[`${I.value?"cornersAgainstTeam":"corners"}`].find(h=>h.isSelected);return l?l.fieldPositions:null}return null}),q=e.ref({});function ae(p){q.value=p}function Be(p){Y.value=p}const ge=e.computed(()=>X.value?X.value.get(b.value):[]),Ge=e.computed(()=>{if(X.value){const p=Number(C.value[0]),l=Number(C.value[1]),h=[];if(l!==p)for(let _=p;_<l;_++){const w=X.value.get(_.toString()),x=X.value.get((_+1).toString());w&&x&&h.push({playersPositions:w,finalPlayersPositions:x,areFirstPositions:_===p,areFinalPositions:_===l-1})}else h.push({playersPositions:X.value.get(C.value[0]),finalPlayersPositions:X.value.get(C.value[0]),areFirstPositions:!0,areFinalPositions:!0});return h}return[]}),Ne=e.computed(()=>X.value?Array.from(X.value.keys()):[]);e.watch(()=>s.advancedFilters,p=>{$.value=p.areConnectionsVisible,T.value=p.arePathsVisible;const l=p.secondsBeforeAndAfter.toString(),h=p.secondsBefore.toString(),_=p.secondsAfter.toString();Ne.value.includes(l)&&(b.value=l),Ne.value.includes(h)&&(C.value[0]=h),Ne.value.includes(_)&&(C.value[1]=_)},{immediate:!0,deep:!0}),e.watch(()=>I.value,()=>{s.isNullCornerData||ho()}),e.watch(()=>s.providerId,async p=>{if(!p)r.value=pt,c.value=mt;else try{const[l,h]=await Promise.all([Xa(p),Ka(p)]);r.value=l,c.value=h}catch(l){console.error("Failed to fetch dynamic structures, using defaults",l),r.value=pt,c.value=mt}f.value=!0,s.teamIdForAnalysis&&!s.isNullCornerData&&yo()},{immediate:!0}),e.watch(()=>s.teamIdForAnalysis,p=>{p&&!s.isNullCornerData&&f.value&&yo()});const Fe=e.computed(()=>S.value?s.teamIdForAnalysis===S.value.home_team:!0);e.watch(()=>se.value,(p,l)=>{if(p!==l&&(b.value="0",C.value=["-1","0"],S.value)){S.value.corners.forEach(w=>{w.isSelected=!1}),S.value.cornersAgainstTeam.forEach(w=>{w.isSelected=!1});const _=(I.value?S.value.cornersAgainstTeam:S.value.corners).filter(w=>w.isVisible);_.length>0&&(_[0].isSelected=!0)}}),e.watch(()=>s.filters,p=>{p&&je()},{deep:!0,immediate:!0}),e.watch(()=>s.isTacticVisible,p=>{$.value=!p});function ui(p){g("changelateralidad",p)}function je(){if(A.value)if(s.isSynchronization)A.value.forEach((p,l)=>{p.isVisible=!0,l===0&&(p.isSelected=!0,p.isExpanded=!0,p.corners.forEach(h=>{h.isVisible=!0}),p.cornersAgainstTeam.forEach(h=>{h.isVisible=!0}))});else{let p=!1;A.value.forEach(l=>{if(l.isSelected=!1,I.value&&l.isSoccerFieldDataRivalLoaded||!I.value&&l.isSoccerFieldDataLoaded){const h=I.value?l.cornersAgainstTeam:l.corners;if((!s.filters.games.length||s.filters.games.includes(l.game_id))&&s.filters.playingAs.includes(l.playingAs)&&(s.filters.isMoment||s.filters.final.includes(l.finalResult))){let _=0;for(const w of h){if(w.isSelected=!1,s.playIdForAnalysis&&w.play_id===s.playIdForAnalysis){w.isVisible=!0,w.isSelected=!0,_++;break}if(s.filters.cornertype!==w.init_category_id){w.isVisible=!1,w.isSelected=!1;continue}if(!s.filters.howWas.some(x=>w.relatedCategoriesIds.has(x))){w.isVisible=!1,w.isSelected=!1;continue}if(!I.value&&s.filters.players.length&&!s.filters.players.includes(w.player_id)){w.isVisible=!1,w.isSelected=!1;continue}if(w.playConnections){if(!s.filters.sections.includes(w.playConnections.mainPlay.timeSection)){w.isVisible=!1,w.isSelected=!1;continue}if(!s.filters.moment.includes(w.playConnections.mainPlay.matchResultAtMomentOfPlay)){w.isVisible=!1,w.isSelected=!1;continue}const x=w.playConnections.mainPlay;if(x&&!s.filters.isZoneFull&&!s.filters.zona.includes(x.fieldSection)){w.isVisible=!1,w.isSelected=!1;continue}}if(!s.filters.isWhatHappenedFull&&w.relatedCategoriesIds&&!s.filters.whathappened.some(x=>w.relatedCategoriesIds.has(x))){w.isVisible=!1,w.isSelected=!1;continue}w.isVisible=!0,_===0&&(w.isSelected=!0),_++}l.isVisible=_>0,l.isVisible&&!p?(l.isSelected=!0,l.isExpanded=!0,p=!0):l.isSelected=!1}else l.isVisible=!1,h.forEach(_=>{_.isVisible=!1,_.isSelected=!1})}})}}function yi([p,l]){const h=Math.round(Number(l));if(h===60){const _=Number(p)+1;return`${_<100?_<10?"00":"0":""}${_}:00.000`}return`${p}:${h<10?"0":""}${h}.000`}function ut(p,l,h,_){p&&p.forEach(w=>{w.isHomeTeam=w.teamId===S.value.home_team,w.attackDirection=_.get(w.playId).mainPlay.attackDirection,w.player=l.get(w.playerId)||h.get(w.playerId)})}function We(p,l){const h=Number(C.value[l])+p;if(Ne.value.includes(h.toString())){const _=[...C.value];_[l]=h.toString(),Number(_[1])-Number(_[0])>=0&&(C.value=[..._])}}function po(p){const l=Number(b.value)+p;Ne.value.includes(l.toString())&&(b.value=l.toString())}function hi(p){if(!p.teams||p.teams.length===0)return;const l=p.teams[0].team_id,h=p.teams[1].team_id;if(s.teamIdForAnalysis===l&&p.home_atk_direction===1||s.teamIdForAnalysis===h&&p.visiting_atk_direction===1)for(let _=1;_<5;_++)L.value.set(_,_%2===0?Ue.TO_LEFT:Ue.TO_RIGHT);else for(let _=1;_<5;_++)L.value.set(_,_%2===0?Ue.TO_RIGHT:Ue.TO_LEFT)}function gi(){fe.value=!0}function mo(){fe.value=!1}async function Ci(){try{if(S.value){const p={messages:[{queue:"gs3.tendency",message:{key:"postmatch",action:"season",data:{season_id:s.seasonIdForAnalysis,game_id:S.value.game_id}}}]};await O.post(ke("https://6xh1ym8shh.execute-api.us-west-2.amazonaws.com/prod/pushInternalData",s.providerId,s.isDevApis),p,k)}}catch(p){throw new Error(p)}finally{mo()}}function bi(){H.value=!0}function uo(){H.value=!1}async function wi(){try{if(S.value){const p=S.value[`${I.value?"cornersAgainstTeam":"corners"}`].find(l=>l.isSelected);if(p){const l={play_id:p.play_id,game_id:S.value.game_id,season_id:s.seasonIdForAnalysis,seconds:Number(b.value),moment_of_play:p.moment_of_play};await O.post(ke("https://bqsyfm7sij.execute-api.us-east-2.amazonaws.com/prod/sync",s.providerId,s.isDevApis),l,k)}}}catch(p){throw new Error(p)}finally{uo()}}async function yo(p){try{const l=ne.value.get(s.teamIdForAnalysis);if(l){A.value=l,je();return}n=p||s.seasonIdForAnalysis;const _=(await O.get(ke(`https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/${n}/games/teams/${s.teamIdForAnalysis}/corners`,s.providerId,s.isDevApis),k)).data,w={corners:0,cornersAgainst:0};A.value=_.games?_.games.reduce((x,N)=>{if(s.isGameOnly&&s.gameIdForAnalysis!==N.game_id)return x;const Z={againstTeam:[],team:[]},B=N.score[1]-N.score[0];N.dateMillis=new Date(N.date_time_utc),N.isVisible=!0,N.playingAs=N.home_team===s.teamIdForAnalysis?1:2,N.finalResult=B===0?3:N.playingAs===1?B>0?2:1:B<0?2:1,N.corners.forEach(P=>{const R=P.team_id===s.teamIdForAnalysis;P.isAgainst=!R,(!s.playIdForAnalysis||s.playIdForAnalysis===P.play_id)&&(R?Z.team.push(P):Z.againstTeam.push(P))}),N.corners=Z.team,N.cornersAgainstTeam=Z.againstTeam;const j=N.home_team===s.teamIdForAnalysis?1:2;w.corners+=N.corners.length,w.cornersAgainst+=N.cornersAgainstTeam.length;const V={...N,isSelected:x.length===0,isExpanded:!1,isTeamForAnalysisHomeTeam:N.home_team===s.teamIdForAnalysis,canPlayVideos:s.canPlayVideos&&s.videoPrivilegesPlayingAs.has(j)};return x.push(V),x},[]):[],A.value=A.value.sort((x,N)=>N.dateMillis-x.dateMillis),go(),g("corners-filled",w),await ho(),A.value.forEach(x=>{x.corners.concat(x.cornersAgainstTeam).forEach(N=>{if(N.playConnections){const[Z,B]=N.moment_of_play.split(":"),[j,V]=B.split("."),P=Number(Z)+45*N.playConnections.mainPlay.matchLapse;N.isSelected=!1,N.orderValue=+`${P}${j}${V}`}}),x.corners=x.corners.sort((N,Z)=>N.orderValue-Z.orderValue),x.cornersAgainstTeam=x.cornersAgainstTeam.sort((N,Z)=>N.orderValue-Z.orderValue)}),je()}catch(l){throw new Error(l)}}async function ho(){try{const p=[];A.value.forEach(l=>{(I.value&&!l.isSoccerFieldDataRivalLoaded||!I.value&&!l.isSoccerFieldDataLoaded)&&p.push(_i(l))}),p.length>0&&((await Promise.all(p)).forEach((h,_)=>{Ei(A.value[_],h)}),je()),go()}catch(p){throw new Error(p)}}function go(){ne.value.get(s.teamIdForAnalysis)||ne.value.set(s.teamIdForAnalysis,A.value)}function _i(p){return s.isSynchronization?O.get(ke(`https://golstats-microservices.s3.us-west-2.amazonaws.com/tendency/corners-${I.value?"received":"commited"}-${n}-${s.teamIdForAnalysis}-${p.game_id}-large.json`,s.providerId,s.isDevApis)):O.get(ke(`https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/${n}/corners/trends/teams/${s.teamIdForAnalysis}/${p.game_id}${I.value?"?isR=1":""}`,s.providerId,s.isDevApis),k)}function Co(p){const[l,h]=p.split(", ");let _="";const w=l.split(" ");for(const x of w)if(_+=` ${x}`,x.length>3)break;return h&&l?`${h.trim().charAt(0)}.${_}`:""}function bo(p){let[l,h]=p.split(", ");h=(h==null?void 0:h.trim())||"";let _="";const w=l.split(" "),x=h.includes(" ")?h.split(" ")[0]:h;for(const N of w)if(_+=` ${N}`,N.length>3)break;return x&&l?`${x} ${_}`:""}async function Ei(p,l){try{if(p&&l&&(!p.isSoccerFieldDataLoaded||!p.isSoccerFieldDataRivalLoaded)){const h=new Map,_=new Map,w=new Map;hi(l.data),l.data.players&&l.data.players.forEach(B=>{B.shortName=Co(B.name),B.firstNameAndFirstLastName=bo(B.name),_.set(B.player_id,B)}),l.data.rival_players&&l.data.rival_players.forEach(B=>{B.shortName=Co(B.name),B.firstNameAndFirstLastName=bo(B.name),w.set(B.player_id,B)}),u.value=l.data.teams.find(B=>B.team_id===s.teamIdForAnalysis),u.value&&(u.value.rival=l.data.teams.find(B=>B.team_id!==s.teamIdForAnalysis));const x=l.data.data.reduce((B,j)=>{const V=j.reduce((re,Ce,wo)=>(re[i[wo]]=Ce,re.isHomeTeam=re.teamId===p.home_team,re),{}),P=V.playId===V.relatedPlayId,R=B.get(V.relatedPlayId),G=V.momentOfPlay.split(":"),W=yi(G);return V.player=_.get(V.playerId)||w.get(V.playerId),V.isTeamForAnalysis=V.teamId===s.teamIdForAnalysis,P&&(V.attackDirection=L.value.get(V.matchLapse),h.set(V.playId,W)),R?P?R.mainPlay=V:R.relatedPlays.length<pi&&(R.relatedPlays.push(V),R.relatedPlays.length>1&&R.relatedPlays.sort((re,Ce)=>re.touchOrder-Ce.touchOrder)):B.set(V.playId,{mainPlay:P?V:null,relatedPlays:P?[]:[V]}),B},new Map),N=l.data.field_positions.reduce((B,j)=>{const V=j.reduce((R,G,W)=>(R[a[W]]=G,R),{});V.isTeamForAnalysis=V.teamId===s.teamIdForAnalysis;const P=B.get(V.playId);if(P){const R=P.get(V.momentOfPlay);R?R.push(V):P.set(V.momentOfPlay,[V])}else B.set(V.playId,new Map([[V.momentOfPlay,[V]]]));return B},new Map),Z=Array.from(h.entries()).reduce((B,[j,V])=>{const P=[],R=[];let G=null;const W=N.get(j);if(W){const re=s.isSynchronization?di:li,Ce=s.isSynchronization?fi:ci;Array.from(W.keys()).sort().forEach(ee=>{(!G||R.length<Ce)&&(ee===V?G=W.get(ee):G?R.length<Ce&&R.push(W.get(ee)):(P.length===re&&P.shift(),P.push(W.get(ee))))});const qe=new Map;P.forEach((ee,ht)=>{ut(ee,_,w,x),qe.set(`${ht-P.length}`,ee)}),ut(G,_,w,x),qe.set("0",G),R.forEach((ee,ht)=>{ut(ee,_,w,x),qe.set(`${ht+1}`,ee)}),B.set(j,qe)}return B},new Map);p[`${I.value?"cornersAgainstTeam":"corners"}`].forEach(B=>{const j=B.related_categories.split(",").reduce((P,R,G)=>{const W=Number(R);return G===1&&(B.howWasCorner=W),P.array.push(W),P.sett.add(W),P},{array:[],sett:new Set});for(const P of j.array){const R=E.value.get(P),G=y.value.get(P);if(G&&(B.whatHappenedName=G),R&&(B.howWasCornerName=R),B.howWasCornerName&&B.whatHappenedName)break}B.relatedCategoriesIds=j.sett,B.playConnections=x.get(B.play_id),B.fieldPositions=Z.get(B.play_id),B.player=_.get(B.player_id)||w.get(B.player_id);let V=B.moment_of_play.split(".")[0];V.startsWith("0")&&(V=V.slice(1)),B.formattedMomentOfPlay=V,B.momentOfPlayNumber=Number(V.replace(":","."))}),!I.value&&!p.isSoccerFieldDataLoaded&&(p.isSoccerFieldDataLoaded=!0),I.value&&!p.isSoccerFieldDataRivalLoaded&&(p.isSoccerFieldDataRivalLoaded=!0)}}catch(h){throw new Error(h)}}function yt(p){const l=S.value[`${I.value?"cornersAgainstTeam":"corners"}`],h={},_=l.reduce((w,x)=>(x.isVisible&&(w.add(x.play_id),x.isSelected&&(h.playId=x.play_id)),w),new Set);g("open-media-player",{seasonId:n,mainSectionType:1,playListType:1,playsIds:_,playData:h,categoryIds:I.value?["31_r","32_r"]:[31,32],teamId:s.teamIdForAnalysis,videosType:p,isCarouselOnly:!0})}return(p,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",or,[e.createElementVNode("div",nr,[e.createElementVNode("div",sr," ¿Estás seguro que deseas sincronizar el tracking del partido "+e.toDisplayString(S.value?S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`]:"")+" vs "+e.toDisplayString(S.value?S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`]:"")+" ? ",1),e.createElementVNode("div",{class:"modal-confirmation__buttons"},[e.createElementVNode("div",{class:"modal-confirmation__buttons__button cancel",onClick:mo}," No "),e.createElementVNode("div",{class:"modal-confirmation__buttons__button",onClick:Ci},"Sí")])])],512),[[e.vShow,fe.value]]),e.withDirectives(e.createElementVNode("div",ar,[e.createElementVNode("div",rr,[e.createElementVNode("div",ir," ¿Estás seguro que deseas sincronizar esta jugada en el segundo "+e.toDisplayString(b.value)+"? ",1),e.createElementVNode("div",{class:"modal-confirmation__buttons"},[e.createElementVNode("div",{class:"modal-confirmation__buttons__button cancel",onClick:uo}," No "),e.createElementVNode("div",{class:"modal-confirmation__buttons__button",onClick:wi},"Sí")])])],512),[[e.vShow,H.value]]),e.createElementVNode("div",{class:e.normalizeClass(t.widthContainer<=768?"gsc-specific-plays-movil":"gsc-specific-plays")},[e.withDirectives(e.createElementVNode("div",lr,[e.createElementVNode("div",cr,[t.widthContainer<=768?(e.openBlock(),e.createElementBlock("span",dr,"Elige que quieres ver:")):(e.openBlock(),e.createElementBlock("span",fr,"Jugadas Específicas"))])],512),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:e.normalizeClass(he.value)},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(pe.value)},[t.widthContainer>768?(e.openBlock(),e.createBlock(Yo,{key:0,"is-against-mode":I.value,"games-by-team":A.value,"are-filters-open":t.areFiltersOpen},null,8,["is-against-mode","games-by-team","are-filters-open"])):(e.openBlock(),e.createBlock(jn,{key:1,"is-against-mode":I.value,"games-by-team":A.value,"are-filters-open":t.areFiltersOpen},null,8,["is-against-mode","games-by-team","are-filters-open"]))],2),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:e.normalizeClass(te.value)},[t.isSynchronization?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button-tracking",onClick:gi}," Generar datos ")):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",pr,[e.createElementVNode("div",mr,[e.createVNode(e.unref(Je),{modelValue:$.value,"onUpdate:modelValue":l[0]||(l[0]=h=>$.value=h),label:"Mostrar conexiones",fontFamily:"Poppins-Regular",labelFontSize:t.widthContainer>400?"13px":"12px","label-color":"#FFF"},null,8,["modelValue","labelFontSize"]),t.widthContainer<=768&&t.isTacticVisible?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,modelValue:T.value,"onUpdate:modelValue":l[1]||(l[1]=h=>T.value=h),label:"Mostrar recorrido",fontFamily:"Poppins-Regular",labelFontSize:t.widthContainer>400?"13px":"12px","label-color":"#FFF"},null,8,["modelValue","labelFontSize"])):e.createCommentVNode("",!0),t.widthContainer>768?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["specific-plays-radio-container",{"is-away-team":!Fe.value}])},[S.value&&t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("label",ur,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[2]||(l[2]=h=>D.value=h),type:"checkbox",name:"radio",checked:"",style:{display:"none"}},null,512),[[e.vModelCheckbox,D.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-home":"outer-circle-away")},[D.value?(e.openBlock(),e.createElementBlock("svg",yr,[...l[16]||(l[16]=[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"},null,-1)])])):e.createCommentVNode("",!0)],2),e.createElementVNode("span",hr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_logo`]},null,8,gr)])]),e.createElementVNode("label",Cr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[3]||(l[3]=h=>v.value=h),type:"checkbox",name:"radio",style:{display:"none"}},null,512),[[e.vModelCheckbox,v.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[v.value?(e.openBlock(),e.createElementBlock("svg",br,[...l[17]||(l[17]=[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"},null,-1)])])):e.createCommentVNode("",!0)],2),e.createElementVNode("span",wr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_logo`]},null,8,_r)])])],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["specific-plays-controls22",t.widthContainer<=375?"specific-plays-controls22small":""])},[t.widthContainer>768&&t.isTacticVisible&&!t.isSynchronization?(e.openBlock(),e.createBlock(e.unref(Je),{key:0,modelValue:T.value,"onUpdate:modelValue":l[4]||(l[4]=h=>T.value=h),label:"Mostrar recorrido",fontFamily:"Poppins-Regular",labelFontSize:"13px","label-color":"#FFF"},null,8,["modelValue"])):e.createCommentVNode("",!0),t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[T.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.widthContainer<=768?"specify-control-incement-second-container-mobil":"specify-control-incement-second-container")},[e.createElementVNode("div",Nr,[t.widthContainer>990||t.widthContainer<=768&&t.widthContainer>=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Inicio: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Inicio:")],64))]),l[29]||(l[29]=e.createElementVNode("div",{class:"icon-info"},null,-1)),e.createElementVNode("div",Fr,[e.createElementVNode("div",Vr,[Number(C.value[0])>0?(e.openBlock(),e.createElementBlock("span",Ar,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(C.value[0]),1)]),l[25]||(l[25]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",Pr,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[7]||(l[7]=h=>We(1,0))},[(e.openBlock(),e.createElementBlock("svg",Tr,[...l[23]||(l[23]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[8]||(l[8]=h=>We(-1,0))},[...l[24]||(l[24]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])]),e.createElementVNode("div",Or,[t.widthContainer>990||t.widthContainer<=768&&t.widthContainer>=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Fin: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Fin:")],64))]),l[30]||(l[30]=e.createElementVNode("div",{class:"icon-info"},null,-1)),e.createElementVNode("div",Lr,[e.createElementVNode("div",Rr,[Number(C.value[1])>0?(e.openBlock(),e.createElementBlock("span",Ir,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(C.value[1]),1)]),l[28]||(l[28]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",$r,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[9]||(l[9]=h=>We(1,1))},[(e.openBlock(),e.createElementBlock("svg",Dr,[...l[26]||(l[26]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[10]||(l[10]=h=>We(-1,1))},[...l[27]||(l[27]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.widthContainer<=768?"specify-control-incement-second-container-mobil":"specify-control-incement-second-container")},[l[21]||(l[21]=e.createElementVNode("div",{class:"icon-info"},null,-1)),l[22]||(l[22]=e.createElementVNode("div",{class:"text-icon-info"},"Segundos antes/después del cobro:",-1)),e.createElementVNode("div",Er,[e.createElementVNode("div",Sr,[Number(b.value)>0?(e.openBlock(),e.createElementBlock("span",kr,"+")):e.createCommentVNode("",!0),e.createTextVNode(e.toDisplayString(b.value),1)]),l[20]||(l[20]=e.createElementVNode("div",{class:"contappvalueincementsecond-label"},"seg",-1)),e.createElementVNode("div",xr,[e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-mas",onClick:l[5]||(l[5]=h=>po(1))},[(e.openBlock(),e.createElementBlock("svg",Br,[...l[18]||(l[18]=[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(90 5.36523 6.26377)"},null,-1)])]))]),e.createElementVNode("div",{class:"contappvalueincementsecond-controls-container-menos",onClick:l[6]||(l[6]=h=>po(-1))},[...l[19]||(l[19]=[e.createElementVNode("svg",{"data-v-b548a08d":"",width:"15",height:"15",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#9ca3af",transform:"rotate(270 5.36523 6.26377)"})],-1)])])])])],2))],64)):e.createCommentVNode("",!0),t.isSynchronization?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button-sync",onClick:bi}," Guardar sincronización ")):e.createCommentVNode("",!0)],2)],512),[[e.vShow,!t.isFieldOnly]]),e.createElementVNode("div",{class:"specific-plays-field",style:e.normalizeStyle(t.widthContainer<=768?"height: auto":"")},[e.createElementVNode("div",Mr,[e.createVNode(Es,{"width-container":t.widthContainer,"play-connections":Q.value,"players-positions":ge.value,"players-positions-by-range":Ge.value,"team-id-for-analysis":t.teamIdForAnalysis,"selected-category":t.filters.cornertype,"are-connections-visible":$.value,"are-position-paths-visible":T.value,"visible-teams-ids":ve.value,"is-against-corner":xe.value,onChangelateralidad:ui},null,8,["width-container","play-connections","players-positions","players-positions-by-range","team-id-for-analysis","selected-category","are-connections-visible","are-position-paths-visible","visible-teams-ids","is-against-corner"])]),e.createElementVNode("div",Hr,[e.createElementVNode("div",Ur,[t.isTemplateMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",zr,[e.createElementVNode("img",{src:q.value.home_team_logo,alt:""},null,8,vr)])),l[31]||(l[31]=e.createElementVNode("div",{class:"bullet"},null,-1))]),e.createElementVNode("div",Gr,[t.isTemplateMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("img",{src:q.value.visiting_team_logo,alt:""},null,8,Wr)])),l[32]||(l[32]=e.createElementVNode("div",{class:"bullet"},null,-1))])]),S.value&&S.value.canPlayVideos&&!t.isFieldOnly?(e.openBlock(),e.createElementBlock("div",{key:0,class:"specific-plays-field__play-buttons",style:e.normalizeStyle(t.widthContainer<=768?"gap:5px; flex-direction: column;":"")},[l[36]||(l[36]=e.createElementVNode("div",{class:"specific-plays-field__play-buttons__text"},"Visualizar video:",-1)),e.createElementVNode("div",qr,[S.value.video_types.includes(1)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"specific-plays-field__play-buttons__button",onClick:l[11]||(l[11]=h=>yt(1))},[...l[33]||(l[33]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Toma TV",-1)])])):e.createCommentVNode("",!0),S.value.video_types.includes(3)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"specific-plays-field__play-buttons__button",onClick:l[12]||(l[12]=h=>yt(3))},[...l[34]||(l[34]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Táctica",-1)])])):e.createCommentVNode("",!0),S.value.video_types.includes(2)?(e.openBlock(),e.createElementBlock("div",{key:2,class:"specific-plays-field__play-buttons__button",onClick:l[13]||(l[13]=h=>yt(2))},[...l[35]||(l[35]=[e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__icon"},[e.createElementVNode("img",{src:Ze,alt:""})],-1),e.createElementVNode("div",{class:"specific-plays-field__play-buttons__button__text"},"Panorámica",-1)])])):e.createCommentVNode("",!0)])],4)):e.createCommentVNode("",!0)],4),t.widthContainer<=768?(e.openBlock(),e.createElementBlock("div",Zr,[S.value&&t.isTacticVisible?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("label",Jr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[14]||(l[14]=h=>D.value=h),type:"checkbox",name:"radio",checked:"",style:{display:"none"}},null,512),[[e.vModelCheckbox,D.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[...l[37]||(l[37]=[e.createElementVNode("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"})],-1)])],2),e.createElementVNode("span",Xr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"home":"visiting"}_team_logo`]},null,8,Kr)])]),e.createElementVNode("label",Yr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[15]||(l[15]=h=>v.value=h),type:"checkbox",name:"radio",style:{display:"none"}},null,512),[[e.vModelCheckbox,v.value]]),e.createElementVNode("span",{class:e.normalizeClass(Fe.value?"outer-circle-away":"outer-circle-home")},[...l[38]||(l[38]=[e.createElementVNode("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:"#0d1d29"})],-1)])],2),e.createElementVNode("span",Qr,[e.createTextVNode(e.toDisplayString(S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_acronym`])+" ",1),e.createElementVNode("img",{class:"imgclassvalue",width:"25",src:S.value[`${S.value.isTeamForAnalysisHomeTeam?"visiting":"home"}_team_logo`]},null,8,ei)])])],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)],2),Y.value&&t.isCornerInfoVisible?(e.openBlock(),e.createElementBlock("div",ti)):e.createCommentVNode("",!0),Y.value&&t.isCornerInfoVisible?(e.openBlock(),e.createElementBlock("div",oi,[e.createElementVNode("div",ni,[e.createElementVNode("img",{class:"corner-info__team__logo",src:`https://golstatsimages.blob.core.windows.net/teams-80/${Y.value.team_id}.png`},null,8,si)]),e.createElementVNode("div",ai,[e.createElementVNode("div",ri,[l[39]||(l[39]=e.createElementVNode("span",null," Tiro de esquina ",-1)),l[40]||(l[40]=e.createElementVNode("span",{class:"separator"}," | ",-1)),e.createElementVNode("span",null,e.toDisplayString(Y.value.player.firstNameAndFirstLastName),1)]),e.createElementVNode("div",ii,[e.createElementVNode("span",null,e.toDisplayString(Y.value.howWasCornerName),1),l[41]||(l[41]=e.createElementVNode("span",{class:"separator"}," | ",-1)),e.createElementVNode("span",null,e.toDisplayString(Y.value.whatHappenedName),1)])])])):e.createCommentVNode("",!0)],2)],64))}},[["__scopeId","data-v-a30f1ff3"]]);ie.GSCSpecificPlays=mi,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|