import{b as i}from"./index-B9fjtFx2.js";import{M as o}from"./main-Bisw-J6k.js";import"./index-CxGn7mLN.js";const e=o(),u=i(async({router:t})=>{t.beforeEach(async r=>!e.branding.registrationCompleted&&r.path!=="/register"?"/register":(r.meta.requiresAuth&&e.isAuthorize&&!Object.keys(e.config).length&&await e.initialize(),r.meta.requiresAuth&&!e.isAuthorize&&e.logout(),!0))});export{u as default};
