1import{a3 as h,g as c,a4 as d,G as a}from"#entry";const f=h(async(e,g)=>{let n,o;const r=c();r.loading&&([n,o]=d(()=>new Promise(t=>{const s=Date.now(),i=()=>{!r.loading||Date.now()-s>6e3?t():setTimeout(i,50)};i()})),await n,o());const u=e.path==="/billing/success"||e.path==="/billing/subscribe"&&typeof e.query.session_id=="string"&&String(e.query.session_id).startsWith("cs_");if(!r.isAuthenticated&&e.path!=="/auth/login"&&e.path!=="/auth/register"&&!u)return a({path:"/auth/login",query:{redirect:e.fullPath}});if(r.isAuthenticated&&(e.path==="/auth/login"||e.path==="/auth/register")){const t=typeof e.query.redirect=="string"?e.query.redirect:"",s=typeof sessionStorage<"u"&&sessionStorage.getItem("doghealthy_post_login_redirect")||"";typeof sessionStorage<"u"&&sessionStorage.removeItem("doghealthy_post_login_redirect");const i=(t.startsWith("/")&&!t.startsWith("//")?t:"")||(s.startsWith("/")&&!s.startsWith("//")?s:"");return i?a(i):a("/")}});export{f as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.