function clone_page(page) {
	return {
		data: page.data,
		error: page.error,
		form: page.form,
		params: page.params,
		route: page.route,
		state: page.state,
		status: page.status,
		url: page.url
	};
}
TODO: remove this in 3.0 when the page store is also removed

We need to assign a new page object so that subscribers are correctly notified.
However, spreading `{ ...page }` returns an empty object so we manually
assign to each property instead.

@param {import('@sveltejs/kit').Page} page