"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=()=>{const e=window.location.hash;if(e.includes("?")){const t=e.split("?")[1];return Object.fromEntries(new URLSearchParams(t))}return Object.fromEntries(new URLSearchParams(window.location.search))};function h(e){const t=new URL(window.location.href);if(window.location.hash.startsWith("#/")){const[r,n=""]=window.location.hash.split("?"),s=new URLSearchParams(n);Object.entries(e).forEach(([a,c])=>{s.set(a,c)});const o=`${r}?${s.toString()}`;window.history.replaceState(null,"",o)}else Object.entries(e).forEach(([r,n])=>{t.searchParams.set(r,n)}),window.history.replaceState(null,"",t.toString())}function l(){return i()}exports.getUrlQuery=l;exports.setUrlQuery=h;
