function ReplaceUrlParam(n,t,i){const u=n.split("?")[0],f=typeof n.split("?")[1]=="undefined"?"":n.split("?")[1];var e;try{e=decodeURIComponent(i)}catch(s){e=unescape(i)}i=encodeURIComponent(e);const o=t+"="+i;let r="";if(f){const u=new RegExp("\\b("+t+"=).*?(&|#|$)");r=typeof i=="undefined"||i===null||i===""?removeURLParameter(n,t).split("?")[1]:f.search(u)>=0?f.replace(u,"$1"+i+"$2"):f+"&"+o}else r=f;if(r=r==="?"?"":r,r=r.indexOf("&")===0||r.indexOf("?")===0?r.substring(1,r.length):r,u.indexOf("localhost")>-1){let t=u.replace("https://","");return t=t.replace("http://",""),n.indexOf("?")<0?t:t+"?"+r}if(u.indexOf("kcewsmvcdev")>-1){let t=u.replace("http:","https:");return n.indexOf("?")<0?t:t+"?"+r}return n.indexOf("?")<0?r:u.replace("http:","https:")+"?"+r}function removeURLParameter(n,t){const i=n.split("?");if(i.length>=2){const r=encodeURIComponent(t)+"=",n=i[1].split(/[&;]/g);for(let t=n.length;t-->0;)n[t].lastIndexOf(r,0)!==-1&&n.splice(t,1);return i[0]+(n.length>0?"?"+n.join("&"):"")}return n}function ParseUrlGetQueryStringToObject(n){const t={},i=(n[0]==="?"?n.substr(1):n).split("&");for(let n=0;n<i.length;n++){const r=i[n].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t}$.fn.hasAttr=function(n){return this.attr(n)!==undefined}