// ================= Initialization =================
async function initializeApp() {
  hydrateState(loadInitialState());
  runPrototypeMigrations();
  await initializeAuthSession();
  await loadStateFromBackend();
  if (isAuthRequired() && !state.currentUser) {
    state.route = ROUTES.LOGIN;
  }
  render();
}

initializeApp();
