//#region src/utils/parseURLFragments.ts
function parseURLFragments(url) {
	const hash = url.slice(1);
	const pairs = hash.split("&");
	if (!hash || !pairs.length) return null;
	const params = {};
	pairs.forEach((pair) => {
		const [key, value] = pair.split("=");
		params[key] = decodeURIComponent(value || "");
	});
	return params;
}
//#endregion
export { parseURLFragments };
