function appendParams(n,e){const o=[];Object.keys(e).forEach(function(n){null!==e[n]&&void 0!==e[n]&&o.push(n+"="+encodeURIComponent(e[n]))});var a=o.join("&");return(n=-1===(n=n.replace(/[?&]$/,"")).indexOf("?")?n+"?":n+"&")+a}export{appendParams};