new function(h){var n=h.separator||"&",l=h.spaces===!1?!1:!0,o=h.prefix!==!1?h.hash===!0?"#":"?":"",p=h.numbers===!1?!0:!1;jQuery.query=new function(){var g=function(a,b){return a!=void 0&&a!==null&&(b?a.constructor==b:!0)},h=function(a){for(var b=/\[([^[]*)\]/g,d=/^([^[]+)(\[.*\])?$/.exec(a),e=d[1],c=[];a=b.exec(d[2]);)c.push(a[1]);return[e,c]},j=function(a,b,d){var e=b.shift();typeof a!="object"&&(a=null);if(e==="")if(a||(a=[]),g(a,Array))a.push(b.length==0?d:j(null,b.slice(0),d));else if(g(a,Object)){for(e=
0;a[e++]!=null;);a[--e]=b.length==0?d:j(a[e],b.slice(0),d)}else a=[],a.push(b.length==0?d:j(null,b.slice(0),d));else if(e&&e.match(/^\s*[0-9]+\s*$/)){var c=parseInt(e,10);a||(a=[]);a[c]=b.length==0?d:j(a[c],b.slice(0),d)}else if(e){c=e.replace(/^\s*|\s*$/g,"");a||(a={});if(g(a,Array)){for(var f={},e=0;e<a.length;++e)f[e]=a[e];a=f}a[c]=b.length==0?d:j(a[c],b.slice(0),d)}else return d;return a},m=function(a,b){for(i in b)if(i.toLowerCase()==a.toLowerCase())return i;return a},k=function(a){var b=this;
b.keys={};a.queryObject?jQuery.each(a.get(),function(a,e){b.SET(a,e)}):jQuery.each(arguments,function(){var a;a=(""+this).replace(/^[?#]/,"");a=a.replace(/[;&]$/,"");l&&(a=a.replace(/[+]/g," "));jQuery.each(a.split(/[&;]/),function(){var a=decodeURIComponent(this.split("=")[0]||""),c=decodeURIComponent(this.split("=")[1]||"");a&&(p&&(/^[+-]?[0-9]+\.[0-9]*$/.test(c)?c=parseFloat(c):/^[+-]?[0-9]+$/.test(c)&&(c=parseInt(c,10))),b.SET(a,!c&&c!==0?!0:c))})});return b};k.prototype={queryObject:!0,has:function(a,
b){var d=this.get(a);return g(d,b)},GET:function(a){if(!g(a))return this.keys;for(var b=h(a),a=b[0],b=b[1],a=m(a,this.keys),a=this.keys[a];a!=null&&b.length!=0;)a=a[b.shift()];return typeof a=="number"?a:a||""},get:function(a){a=this.GET(a);if(g(a,Object))return jQuery.extend(!0,{},a);else if(g(a,Array))return a.slice(0);return a},SET:function(a,b){var d=!g(b)?null:b,e=h(a),c=e[0],e=e[1],c=m(c,this.keys);this.keys[c]=j(this.keys[c],e.slice(0),d);return this},set:function(a,b){return this.copy().SET(a,
b)},REMOVE:function(a){return this.SET(a,null).COMPACT()},remove:function(a){return this.copy().REMOVE(a)},EMPTY:function(){var a=this;jQuery.each(a.keys,function(b){delete a.keys[b]});return a},load:function(a){var b=a.replace(/^.*?[#](.+?)(?:\?.+)?$/,"$1"),d=a.replace(/^.*?[?](.+?)(?:#.+)?$/,"$1");return new k(a.length==d.length?"":d,a.length==b.length?"":b)},empty:function(){return this.copy().EMPTY()},copy:function(){return new k(this)},COMPACT:function(){function a(b){var d=typeof b=="object"?
g(b,Array)?[]:{}:b;typeof b=="object"&&jQuery.each(b,function(b,c){if(!g(c))return!0;var f=a(c);g(d,Array)?d.push(f):d[b]=f});return d}this.keys=a(this.keys);return this},compact:function(){return this.copy().COMPACT()},toString:function(){var a=[],b=[],d=function(a){a+="";l&&(a=a.replace(/ /g,"+"));return encodeURIComponent(a)},e=function(a,f){var h=function(a){return!f||f==""?""+a:[f,"[",a,"]"].join("")};jQuery.each(a,function(a,c){if(typeof c=="object")e(c,h(a));else{var f=h(a);g(c)&&c!==!1&&(f=
[d(f)],c!==!0&&(f.push("="),f.push(d(c))),b.push(f.join("")))}})};e(this.keys);b.length>0&&a.push(o);a.push(b.join(n));return a.join("")}};return new k(location.search,location.hash)}}(jQuery.query||{});

