export function parseURL ( rawURL ) { return new URL ( rawURL . replace ( /#/g , '%23' ) , 'file://' ) ; } export function extractEntries ( searchParams ) { const entries = [ ] ; for ( const [ key , value ] of searchParams ) { entries . push ( [ key , value . split ( ';' ) ] ) ; } return entries ; }