(function (){ var f="function",k="object",m,n=this,p=function(a){var b=typeof a;if(b==k)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return k;if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return f}else return"null"; else if(b==f&&"undefined"==typeof a.call)return k;return b},q=function(a){return"string"==typeof a},r=function(a,b){function c(){}c.prototype=b.prototype;a.ca=b.prototype;a.prototype=new c;a.ba=function(a,c,g){for(var h=Array(arguments.length-2),l=2;lb?1:0};var y=function(a,b){b.unshift(a);t.call(this,aa.apply(null,b));b.shift()};r(y,t);var z=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),g=d;else a&&(e+=": "+a,g=b);throw new y(""+e,g||[]);},A=function(a,b,c){a||z("",null,b,Array.prototype.slice.call(arguments,2));return a},B=function(a,b,c){"number"==typeof a||z("Expected number but got %s: %s.",[p(a),a],b,Array.prototype.slice.call(arguments,2));return a};var ba=Array.prototype.indexOf?function(a,b,c){A(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;cparseFloat(K)){J=String(M);break a}}J=K} var ga=J,ha={},ia=function(a){var b;if(!(b=ha[a])){b=0;for(var c=u(String(ga)).split("."),d=u(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g2*this.b&&this.A(),!0):!1};m.A=function(){if(this.b!=this.c.length){for(var a=0,b=0;a=d.c.length)throw qa;var e=d.c[b++];return a?e:d.g[e]};return e};var R=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var ra=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,sa=function(a,b){if(a)for(var c=a.split("&"),d=0;da)throw Error("Bad port number "+a);this.C=a}else this.C=null;return this};m.getPath=function(){return this.K};m.setPath=function(a,b){this.j();this.K=b?V(a,!0):a;return this}; m.P=function(a,b){this.j();a instanceof T?(this.h=a,this.h.I(this.f)):(b||(a=U(a,ya)),this.h=new T(a,null,this.f));return this};m.U=function(){return this.h.toString()};m.aa=function(a,b){this.j();this.h.set(a,b);return this};m.V=function(a){return this.h.get(a)};m.N=function(a,b){this.j();this.G=b?V(a):a;return this};m.j=function(){if(this.X)throw Error("Tried to modify a read-only Uri");};m.I=function(a){this.f=a;this.h&&this.h.I(a);return this}; var V=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},U=function(a,b,c){return q(a)?(a=encodeURI(a).replace(b,za),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},za=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},ua=/[#\/\?@]/g,wa=/[\#\?:]/g,va=/[\#\?]/g,ya=/[\#\?@]/g,xa=/#/g,T=function(a,b,c){this.b=this.a=null;this.i=a||null;this.f=!!c};m=T.prototype; m.l=function(){if(!this.a&&(this.a=new Q,this.b=0,this.i)){var a=this;sa(this.i,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};m.add=function(a,b){this.l();this.w();a=this.m(a);var c=this.a.get(a);c||this.a.set(a,c=[]);c.push(b);this.b=B(this.b)+1;return this};m.remove=function(a){this.l();a=this.m(a);return this.a.u(a)?(this.w(),this.b=B(this.b)-this.a.get(a).length,this.a.remove(a)):!1};m.u=function(a){this.l();a=this.m(a);return this.a.u(a)}; m.v=function(){this.l();for(var a=this.a.o(),b=this.a.v(),c=[],d=0;d