import{s as d,t as S,f as _,x as g,V as h,n as y}from"./CfjfYOu4.js";import{u as F}from"./DqFt3ND5.js";import"./BVo-4L0X.js";const j=d(async t=>{let i,o;const l=S(),r=F(l.$pinia),n=_(l.$pinia),{year:c,month:p,day:u,filename:f}=t.params,a=`${p}/${u}/${c}`,s=String(f);let e=r.getSportByFilename(a,s);if(!e||!Object.keys(e).length){const m={date:a,filename:s,hidden:!1,protected:!1};[i,o]=g(()=>r.fetchSportsFile(m)),await i,o(),e=r.getSportByFilename(a,s)}if(e&&Object.keys(e).length&&e.redirect_absolute_url&&e.redirect_absolute_url.length&&h(n.hostname,t==null?void 0:t.fullPath,e.redirect_absolute_url))return y(e.redirect_absolute_url,{external:!0})});export{j as default};