jQuery.url=function(){var E={};var B={};var D={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var C=function(){str=decodeURI(D.url);var I=D.parser[D.strictMode?"strict":"loose"].exec(str);var K={};var J=14;while(J--){K[D.key[J]]=I[J]||""}K[D.q.name]={};K[D.key[12]].replace(D.q.parser,function(M,L,N){if(L){K[D.q.name][L]=N}});return K};var F=function(I){if(!B.length){A()}if(I=="base"){if(B.port!==null&&B.port!==""){return B.protocol+"://"+B.host+":"+B.port+"/"}else{return B.protocol+"://"+B.host+"/"}}return(B[I]==="")?null:B[I]};var H=function(I){if(!B.length){A()}return(B.queryKey[I]===null)?null:B.queryKey[I]};var A=function(){B=C();G()};var G=function(){var I=B.path;E=[];E=B.path.length==1?{}:(I.charAt(I.length-1)=="/"?I.substring(1,I.length-1):path=I.substring(1)).split("/")};return{setMode:function(I){strictMode=I=="strict"?true:false;return this},setUrl:function(I){D.url=I===undefined?window.location:I;A();return this},segment:function(I){if(!B.length){A()}if(I===undefined){return E.length}return(E[I]===""||E[I]===undefined)?null:E[I]},attr:F,param:H}}();
