summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/assets/js/dependencies.js783
-rw-r--r--docs/examples/index.html1
-rw-r--r--jarmon/jarmon.js329
-rw-r--r--jarmon/jarmon.test.js2
-rw-r--r--jarmonbuild/commands.py48
5 files changed, 724 insertions, 439 deletions
diff --git a/docs/examples/assets/js/dependencies.js b/docs/examples/assets/js/dependencies.js
index a82f80d..8cc00ea 100644
--- a/docs/examples/assets/js/dependencies.js
+++ b/docs/examples/assets/js/dependencies.js
@@ -1,395 +1,430 @@
-// ==ClosureCompiler==
-// @output_file_name default.js
-// @compilation_level SIMPLE_OPTIMIZATIONS
-// @code_url http://svn.mochikit.com/mochikit/trunk/MochiKit/Base.js
-// @code_url http://svn.mochikit.com/mochikit/trunk/MochiKit/Async.js
-// @code_url http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js
+// Compiled with closure-compiler on 2011-06-26 19:43:10.232880
+// @code_url https://raw.github.com/mochi/mochikit/master/MochiKit/Base.js
+// @code_url https://raw.github.com/mochi/mochikit/master/MochiKit/Async.js
+// @code_url http://code.jquery.com/jquery-1.6.1.js
// @code_url http://flot.googlecode.com/svn/trunk/excanvas.js
// @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.js
// @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.stack.js
// @code_url http://flot.googlecode.com/svn/trunk/jquery.flot.selection.js
-// @code_url http://javascriptrrd.cvs.sourceforge.net/viewvc/*checkout*/javascriptrrd/v0/src/lib/binaryXHR.js?revision=1.5&content-type=text%2Fplain
-// @code_url http://javascriptrrd.cvs.sourceforge.net/viewvc/*checkout*/javascriptrrd/v0/src/lib/rrdFile.js?revision=1.8&content-type=text%2Fplain
-// @code_url http://flowplayer.org/tools/download/1.2.3/dateinput/dateinput.js
-// @code_url http://flowplayer.org/tools/download/1.2.3/tabs/tabs.js
-// @code_url http://flowplayer.org/tools/download/1.2.3/toolbox/toolbox.history.js
-// ==/ClosureCompiler==
-if(typeof MochiKit=="undefined")MochiKit={};if(typeof MochiKit.__export__=="undefined")MochiKit.__export__=true;if(typeof MochiKit.Base=="undefined")MochiKit.Base={};MochiKit.Base._module=function(b,f,k){b in MochiKit||(MochiKit[b]={});var p=MochiKit[b];p.NAME="MochiKit."+b;p.VERSION=f;p.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};p.toString=function(){return this.__repr__()};for(f=0;f<k.length;f++)if(!(k[f]in MochiKit))throw"MochiKit."+b+" depends on MochiKit."+k[f]+"!";};
-MochiKit.Base._module("Base","1.5",[]);MochiKit.Base.update=function(b){if(b===null||b===undefined)b={};for(var f=1;f<arguments.length;f++){var k=arguments[f];if(typeof k!="undefined"&&k!==null)for(var p in k)b[p]=k[p]}return b};
-MochiKit.Base.update(MochiKit.Base,{camelize:function(b){b=b.split("-");for(var f=b[0],k=1;k<b.length;k++)f+=b[k].charAt(0).toUpperCase()+b[k].substring(1);return f},counter:function(b){if(arguments.length===0)b=1;return function(){return b++}},clone:function(b){var f=arguments.callee;if(arguments.length==1){f.prototype=b;return new f}},_flattenArray:function(b,f){for(var k=0;k<f.length;k++){var p=f[k];p instanceof Array?arguments.callee(b,p):b.push(p)}return b},flattenArray:function(b){return MochiKit.Base._flattenArray([],
-b)},flattenArguments:function(){for(var b=[],f=MochiKit.Base.extend(null,arguments);f.length;){var k=f.shift();if(k&&typeof k=="object"&&typeof k.length=="number")for(var p=k.length-1;p>=0;p--)f.unshift(k[p]);else b.push(k)}return b},extend:function(b,f,k){k||(k=0);if(f){var p=f.length;if(typeof p!="number")if(typeof MochiKit.Iter!="undefined"){f=MochiKit.Iter.list(f);p=f.length}else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");b||(b=[]);for(k=k;k<p;k++)b.push(f[k])}return b},
-updatetree:function(b){if(b===null||b===undefined)b={};for(var f=1;f<arguments.length;f++){var k=arguments[f];if(typeof k!="undefined"&&k!==null)for(var p in k){var A=k[p];if(typeof b[p]=="object"&&typeof A=="object")arguments.callee(b[p],A);else b[p]=A}}return b},setdefault:function(b){if(b===null||b===undefined)b={};for(var f=1;f<arguments.length;f++){var k=arguments[f];for(var p in k)p in b||(b[p]=k[p])}return b},keys:function(b){var f=[];for(var k in b)f.push(k);return f},values:function(b){var f=
-[];for(var k in b)f.push(b[k]);return f},items:function(b){var f=[];for(var k in b){var p;try{p=b[k]}catch(A){continue}f.push([k,p])}return f},_newNamedError:function(b,f,k){k.prototype=new MochiKit.Base.NamedError(b.NAME+"."+f);b[f]=k},operator:{truth:function(b){return!!b},lognot:function(b){return!b},identity:function(b){return b},not:function(b){return~b},neg:function(b){return-b},add:function(b,f){return b+f},sub:function(b,f){return b-f},div:function(b,f){return b/f},mod:function(b,f){return b%
-f},mul:function(b,f){return b*f},and:function(b,f){return b&f},or:function(b,f){return b|f},xor:function(b,f){return b^f},lshift:function(b,f){return b<<f},rshift:function(b,f){return b>>f},zrshift:function(b,f){return b>>>f},eq:function(b,f){return b==f},ne:function(b,f){return b!=f},gt:function(b,f){return b>f},ge:function(b,f){return b>=f},lt:function(b,f){return b<f},le:function(b,f){return b<=f},seq:function(b,f){return b===f},sne:function(b,f){return b!==f},ceq:function(b,f){return MochiKit.Base.compare(b,
-f)===0},cne:function(b,f){return MochiKit.Base.compare(b,f)!==0},cgt:function(b,f){return MochiKit.Base.compare(b,f)==1},cge:function(b,f){return MochiKit.Base.compare(b,f)!=-1},clt:function(b,f){return MochiKit.Base.compare(b,f)==-1},cle:function(b,f){return MochiKit.Base.compare(b,f)!=1},logand:function(b,f){return b&&f},logor:function(b,f){return b||f},contains:function(b,f){return f in b}},forwardCall:function(b){return function(){return this[b].apply(this,arguments)}},itemgetter:function(b){return function(f){return f[b]}},
-bool:function(b){return typeof b==="boolean"||b instanceof Boolean?b.valueOf():typeof b==="string"||b instanceof String?b.length>0&&b!="false"&&b!="null"&&b!="undefined"&&b!="0":typeof b==="number"||b instanceof Number?!isNaN(b)&&b!=0:b!=null&&typeof b.length==="number"?b.length!==0:b!=null},typeMatcher:function(){for(var b={},f=0;f<arguments.length;f++){var k=arguments[f];b[k]=k}return function(){for(var p=0;p<arguments.length;p++)if(!(typeof arguments[p]in b))return false;return true}},isNull:function(){for(var b=
-0;b<arguments.length;b++)if(arguments[b]!==null)return false;return true},isUndefinedOrNull:function(){for(var b=0;b<arguments.length;b++){var f=arguments[b];if(!(typeof f=="undefined"||f===null))return false}return true},isEmpty:function(){return!MochiKit.Base.isNotEmpty.apply(this,arguments)},isNotEmpty:function(){for(var b=0;b<arguments.length;b++){var f=arguments[b];if(!(f&&f.length))return false}return true},isArrayLike:function(){for(var b=0;b<arguments.length;b++){var f=arguments[b],k=typeof f;
-if(k!="object"&&!(k=="function"&&typeof f.item=="function")||f===null||typeof f.length!="number"||f.nodeType===3||f.nodeType===4)return false}return true},isDateLike:function(){for(var b=0;b<arguments.length;b++){var f=arguments[b];if(typeof f!="object"||f===null||typeof f.getTime!="function")return false}return true},xmap:function(b){if(b===null)return MochiKit.Base.extend(null,arguments,1);for(var f=[],k=1;k<arguments.length;k++)f.push(b(arguments[k]));return f},map:function(b,f){var k=MochiKit.Base,
-p=MochiKit.Iter,A=k.isArrayLike;if(arguments.length<=2){if(!A(f))if(p){f=p.list(f);if(b===null)return f}else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");if(b===null)return k.extend(null,f);p=[];for(k=0;k<f.length;k++)p.push(b(f[k]))}else{if(b===null)b=Array;var B=null;for(k=1;k<arguments.length;k++){if(!A(arguments[k]))if(p)return p.list(p.imap.apply(null,arguments));else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");var M=arguments[k].length;
-if(B===null||B>M)B=M}p=[];for(k=0;k<B;k++){A=[];for(M=1;M<arguments.length;M++)A.push(arguments[M][k]);p.push(b.apply(this,A))}}return p},xfilter:function(b){var f=[];if(b===null)b=MochiKit.Base.operator.truth;for(var k=1;k<arguments.length;k++){var p=arguments[k];b(p)&&f.push(p)}return f},filter:function(b,f,k){var p=[],A=MochiKit.Base;if(!A.isArrayLike(f))if(MochiKit.Iter)f=MochiKit.Iter.list(f);else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");if(b===null)b=A.operator.truth;
-if(typeof Array.prototype.filter=="function")return Array.prototype.filter.call(f,b,k);else if(typeof k=="undefined"||k===null)for(A=0;A<f.length;A++){var B=f[A];b(B)&&p.push(B)}else for(A=0;A<f.length;A++){B=f[A];b.call(k,B)&&p.push(B)}return p},_wrapDumbFunction:function(b){return function(){switch(arguments.length){case 0:return b();case 1:return b(arguments[0]);case 2:return b(arguments[0],arguments[1]);case 3:return b(arguments[0],arguments[1],arguments[2])}for(var f=[],k=0;k<arguments.length;k++)f.push("arguments["+
-k+"]");return eval("(func("+f.join(",")+"))")}},methodcaller:function(b){var f=MochiKit.Base.extend(null,arguments,1);return typeof b=="function"?function(k){return b.apply(k,f)}:function(k){return k[b].apply(k,f)}},method:function(b,f){var k=MochiKit.Base;return k.bind.apply(this,k.extend([f,b],arguments,2))},compose:function(){var b=[],f=MochiKit.Base;if(arguments.length===0)throw new TypeError("compose() requires at least one argument");for(var k=0;k<arguments.length;k++){var p=arguments[k];if(typeof p!=
-"function")throw new TypeError(f.repr(p)+" is not a function");b.push(p)}return function(){for(var A=arguments,B=b.length-1;B>=0;B--)A=[b[B].apply(this,A)];return A[0]}},bind:function(b,f){if(typeof b=="string")b=f[b];var k=b.im_func,p=b.im_preargs,A=b.im_self,B=MochiKit.Base;if(typeof b=="function"&&typeof b.apply=="undefined")b=B._wrapDumbFunction(b);if(typeof k!="function")k=b;if(typeof f!="undefined")A=f;p=typeof p=="undefined"?[]:p.slice();B.extend(p,arguments,2);var M=function(){var U=arguments,
-J=arguments.callee;if(J.im_preargs.length>0)U=B.concat(J.im_preargs,U);var ja=J.im_self;ja||(ja=this);return J.im_func.apply(ja,U)};M.im_self=A;M.im_func=k;M.im_preargs=p;return M},bindLate:function(b){var f=MochiKit.Base,k=arguments;if(typeof b==="string"){k=f.extend([f.forwardCall(b)],arguments,1);return f.bind.apply(this,k)}return f.bind.apply(this,k)},bindMethods:function(b){var f=MochiKit.Base.bind;for(var k in b){var p=b[k];if(typeof p=="function")b[k]=f(p,b)}},registerComparator:function(b,
-f,k,p){MochiKit.Base.comparatorRegistry.register(b,f,k,p)},_primitives:{"boolean":true,string:true,number:true},compare:function(b,f){if(b==f)return 0;var k=typeof b=="undefined"||b===null,p=typeof f=="undefined"||f===null;if(k&&p)return 0;else if(k)return-1;else if(p)return 1;k=MochiKit.Base;p=k._primitives;if(!(typeof b in p&&typeof f in p))try{return k.comparatorRegistry.match(b,f)}catch(A){if(A!=k.NotFound)throw A;}if(b<f)return-1;else if(b>f)return 1;k=k.repr;throw new TypeError(k(b)+" and "+
-k(f)+" can not be compared");},compareDateLike:function(b,f){return MochiKit.Base.compare(b.getTime(),f.getTime())},compareArrayLike:function(b,f){var k=MochiKit.Base.compare,p=b.length,A=0;if(p>f.length){A=1;p=f.length}else if(p<f.length)A=-1;for(var B=0;B<p;B++){var M=k(b[B],f[B]);if(M)return M}return A},registerRepr:function(b,f,k,p){MochiKit.Base.reprRegistry.register(b,f,k,p)},repr:function(b){if(typeof b=="undefined")return"undefined";else if(b===null)return"null";try{if(typeof b.__repr__==
-"function")return b.__repr__();else if(typeof b.repr=="function"&&b.repr!=arguments.callee)return b.repr();return MochiKit.Base.reprRegistry.match(b)}catch(f){try{if(typeof b.NAME=="string"&&(b.toString==Function.prototype.toString||b.toString==Object.prototype.toString))return b.NAME}catch(k){}}var p=b+"";if(typeof b=="function"){p=p.replace(/^\s+/,"").replace(/\s+/g," ");p=p.replace(/,(\S)/,", $1");var A=p.indexOf("{");if(A!=-1)p=p.substr(0,A)+"{...}"}return p},reprArrayLike:function(b){var f=MochiKit.Base;
-return"["+f.map(f.repr,b).join(", ")+"]"},reprString:function(b){return('"'+b.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\v]/g,"\\v").replace(/[\r]/g,"\\r")},reprNumber:function(b){return b+""},registerJSON:function(b,f,k,p){MochiKit.Base.jsonRegistry.register(b,f,k,p)},evalJSON:function(b){return eval("("+MochiKit.Base._filterJSON(b)+")")},_filterJSON:function(b){var f=b.match(/^\s*\/\*(.*)\*\/\s*$/);return f?
-f[1]:b},serializeJSON:function(b){var f=typeof b;if(f=="number"||f=="boolean")return b+"";else if(b===null)return"null";else if(f=="string"){f="";for(var k=0;k<b.length;k++){var p=b.charAt(k);if(p=='"')f+='\\"';else if(p=="\\")f+="\\\\";else if(p=="\u0008")f+="\\b";else if(p=="\u000c")f+="\\f";else if(p=="\n")f+="\\n";else if(p=="\r")f+="\\r";else if(p=="\t")f+="\\t";else if(b.charCodeAt(k)<=31){p=b.charCodeAt(k).toString(16);if(p.length<2)p="0"+p;f+="\\u00"+p.toUpperCase()}else f+=p}return'"'+f+
-'"'}p=arguments.callee;var A;if(typeof b.__json__=="function"){A=b.__json__();if(b!==A)return p(A)}if(typeof b.json=="function"){A=b.json();if(b!==A)return p(A)}if(f!="function"&&typeof b.length=="number"){f=[];for(k=0;k<b.length;k++){A=p(b[k]);typeof A=="string"&&f.push(A)}return"["+f.join(", ")+"]"}var B=MochiKit.Base;try{A=B.jsonRegistry.match(b);if(b!==A)return p(A)}catch(M){if(M!=B.NotFound)throw M;}if(f=="undefined")throw new TypeError("undefined can not be serialized as JSON");if(f=="function")return null;
-f=[];for(k in b){if(typeof k=="number")B='"'+k+'"';else if(typeof k=="string")B=p(k);else continue;A=p(b[k]);typeof A=="string"&&f.push(B+":"+A)}return"{"+f.join(", ")+"}"},objEqual:function(b,f){return MochiKit.Base.compare(b,f)===0},arrayEqual:function(b,f){if(b.length!=f.length)return false;return MochiKit.Base.compare(b,f)===0},concat:function(){for(var b=[],f=MochiKit.Base.extend,k=0;k<arguments.length;k++)f(b,arguments[k]);return b},keyComparator:function(b){var f=MochiKit.Base,k=f.compare;
-if(arguments.length==1)return function(A,B){return k(A[b],B[b])};var p=f.extend(null,arguments);return function(A,B){for(var M=0,U=0;M===0&&U<p.length;U++){M=p[U];M=k(A[M],B[M])}return M}},reverseKeyComparator:function(){var b=MochiKit.Base.keyComparator.apply(this,arguments);return function(f,k){return b(k,f)}},partial:function(b){var f=MochiKit.Base;return f.bind.apply(this,f.extend([b,undefined],arguments,1))},listMinMax:function(b,f){if(f.length===0)return null;for(var k=f[0],p=MochiKit.Base.compare,
-A=1;A<f.length;A++){var B=f[A];if(p(B,k)==b)k=B}return k},objMax:function(){return MochiKit.Base.listMinMax(1,arguments)},objMin:function(){return MochiKit.Base.listMinMax(-1,arguments)},findIdentical:function(b,f,k,p){if(typeof p=="undefined"||p===null)p=b.length;if(typeof k=="undefined"||k===null)k=0;for(k=k;k<p;k++)if(b[k]===f)return k;return-1},mean:function(){for(var b=0,f=MochiKit.Base.extend(null,arguments),k=f.length;f.length;){var p=f.shift();if(p&&typeof p=="object"&&typeof p.length=="number"){k+=
-p.length-1;for(var A=p.length-1;A>=0;A--)b+=p[A]}else b+=p}if(k<=0)throw new TypeError("mean() requires at least one argument");return b/k},median:function(){var b=MochiKit.Base.flattenArguments(arguments);if(b.length===0)throw new TypeError("median() requires at least one argument");b.sort(compare);if(b.length%2==0){var f=b.length/2;return(b[f]+b[f-1])/2}else return b[(b.length-1)/2]},findValue:function(b,f,k,p){if(typeof p=="undefined"||p===null)p=b.length;if(typeof k=="undefined"||k===null)k=0;
-var A=MochiKit.Base.compare;for(k=k;k<p;k++)if(A(b[k],f)===0)return k;return-1},nodeWalk:function(b,f){for(var k=[b],p=MochiKit.Base.extend;k.length;){var A=f(k.shift());A&&p(k,A)}},nameFunctions:function(b){var f=b.NAME;f=typeof f=="undefined"?"":f+".";for(var k in b){var p=b[k];if(typeof p=="function"&&typeof p.NAME=="undefined")try{p.NAME=f+k}catch(A){}}},queryString:function(b,f){if(typeof MochiKit.DOM!="undefined"&&arguments.length==1&&(typeof b=="string"||typeof b.nodeType!="undefined"&&b.nodeType>
-0)){var k=MochiKit.DOM.formContents(b);b=k[0];f=k[1]}else if(arguments.length==1){if(typeof b.length=="number"&&b.length==2)return arguments.callee(b[0],b[1]);var p=b;b=[];f=[];for(var A in p){k=p[A];if(typeof k!="function")if(MochiKit.Base.isArrayLike(k))for(var B=0;B<k.length;B++){b.push(A);f.push(k[B])}else{b.push(A);f.push(k)}}}p=[];A=Math.min(b.length,f.length);var M=MochiKit.Base.urlEncode;for(B=0;B<A;B++){k=f[B];typeof k!="undefined"&&k!==null&&p.push(M(b[B])+"="+M(k))}return p.join("&")},
-parseQueryString:function(b,f){var k=(b.charAt(0)=="?"?b.substring(1):b).replace(/\+/g,"%20").split(/\&amp\;|\&\#38\;|\&#x26;|\&/),p={},A;A=typeof decodeURIComponent!="undefined"?decodeURIComponent:unescape;if(f)for(var B=0;B<k.length;B++){var M=k[B].split("="),U=A(M.shift());if(U){var J=p[U];if(!(J instanceof Array)){J=[];p[U]=J}J.push(A(M.join("=")))}}else for(B=0;B<k.length;B++){M=k[B].split("=");if(U=M.shift())p[A(U)]=A(M.join("="))}return p}});
-MochiKit.Base.AdapterRegistry=function(){this.pairs=[]};MochiKit.Base.AdapterRegistry.prototype={register:function(b,f,k,p){p?this.pairs.unshift([b,f,k]):this.pairs.push([b,f,k])},match:function(){for(var b=0;b<this.pairs.length;b++){var f=this.pairs[b];if(f[1].apply(this,arguments))return f[2].apply(this,arguments)}throw MochiKit.Base.NotFound;},unregister:function(b){for(var f=0;f<this.pairs.length;f++)if(this.pairs[f][0]==b){this.pairs.splice(f,1);return true}return false}};
-MochiKit.Base._exportSymbols=function(b,f){if(!(MochiKit.__export__===false||f.__export__===false))for(var k in f){var p=f[k];if(p!=null){var A=k[0]!=="_"&&k!=="toString";if(p.__export__===true||p.__export__!==false&&A)b[k]=f[k]}}};
-MochiKit.Base._deprecated=function(b,f,k,p,A){if(typeof b==="string"){if(b.indexOf("MochiKit.")===0)b=b.substring(9);b=MochiKit[b]}var B=k.split(".")[1],M=k.split(".")[2],U=function(){var J=arguments.callee,ja=b.NAME+"."+f+" is deprecated since version "+p+". Use "+k+" instead.";if(J.logged!==true){J.logged=true;if(MochiKit.Logging)MochiKit.Logging.logDebug(ja);else console&&console.log&&console.log(ja)}if(!MochiKit[B])throw Error(ja);return MochiKit[B][M].apply(this,arguments)};U.__export__=A===
-true;b[f]=U};
-MochiKit.Base.__new__=function(){var b=this;b.noop=b.operator.identity;b._deprecated(b,"forward","MochiKit.Base.forwardCall","1.3");b._deprecated(b,"find","MochiKit.Base.findValue","1.3");b.urlEncode=typeof encodeURIComponent!="undefined"?function(f){return encodeURIComponent(f).replace(/\'/g,"%27")}:function(f){return escape(f).replace(/\+/g,"%2B").replace(/\"/g,"%22").rval.replace(/\'/g,"%27")};b.NamedError=function(f){this.name=this.message=f};b.NamedError.prototype=Error();b.update(b.NamedError.prototype,{repr:function(){return this.message&&
-this.message!=this.name?this.name+"("+b.repr(this.message)+")":this.name+"()"},toString:b.forwardCall("repr")});b.NotFound=new b.NamedError("MochiKit.Base.NotFound");b.listMax=b.partial(b.listMinMax,1);b.listMin=b.partial(b.listMinMax,-1);b.isCallable=b.typeMatcher("function");b.isUndefined=b.typeMatcher("undefined");b.merge=b.partial(b.update,null);b.zip=b.partial(b.map,null);b.average=b.mean;b.comparatorRegistry=new b.AdapterRegistry;b.registerComparator("dateLike",b.isDateLike,b.compareDateLike);
-b.registerComparator("arrayLike",b.isArrayLike,b.compareArrayLike);b.reprRegistry=new b.AdapterRegistry;b.registerRepr("arrayLike",b.isArrayLike,b.reprArrayLike);b.registerRepr("string",b.typeMatcher("string"),b.reprString);b.registerRepr("numbers",b.typeMatcher("number","boolean"),b.reprNumber);b.jsonRegistry=new b.AdapterRegistry;b.nameFunctions(this)};MochiKit.Base.__new__();
-if(MochiKit.__export__){compare=MochiKit.Base.compare;compose=MochiKit.Base.compose;serializeJSON=MochiKit.Base.serializeJSON;mean=MochiKit.Base.mean;median=MochiKit.Base.median}MochiKit.Base._exportSymbols(this,MochiKit.Base);MochiKit.Base._module("Async","1.5",["Base"]);MochiKit.Async.Deferred=function(b){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=b;this.finalized=this.chained=this.silentlyCancelled=false};
-MochiKit.Async.Deferred.prototype={repr:function(){return"Deferred("+this.id+", "+(this.fired==-1?"unfired":this.fired===0?"success":"error")+")"},toString:MochiKit.Base.forwardCall("repr"),_nextId:MochiKit.Base.counter(),cancel:function(){var b=MochiKit.Async;if(this.fired==-1){if(this.canceller)this.canceller(this);else this.silentlyCancelled=true;this.fired==-1&&this.errback(new b.CancelledError(this))}else this.fired===0&&this.results[0]instanceof b.Deferred&&this.results[0].cancel()},_resback:function(b){this.fired=
-b instanceof Error?1:0;this.results[this.fired]=b;this.paused===0&&this._fire()},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled)throw new MochiKit.Async.AlreadyCalledError(this);this.silentlyCancelled=false}},callback:function(b){this._check();if(b instanceof MochiKit.Async.Deferred)throw Error("Deferred instances can only be chained if they are the result of a callback");this._resback(b)},errback:function(b){this._check();var f=MochiKit.Async;if(b instanceof f.Deferred)throw Error("Deferred instances can only be chained if they are the result of a callback");
-b instanceof Error||(b=new f.GenericError(b));this._resback(b)},addBoth:function(b){if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(b,b)},addCallback:function(b){if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(b,null)},addErrback:function(b){if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);return this.addCallbacks(null,b)},addCallbacks:function(b,f){if(this.chained)throw Error("Chained Deferreds can not be re-used");
-if(this.finalized)throw Error("Finalized Deferreds can not be re-used");this.chain.push([b,f]);this.fired>=0&&this._fire();return this},setFinalizer:function(b){if(this.chained)throw Error("Chained Deferreds can not be re-used");if(this.finalized)throw Error("Finalized Deferreds can not be re-used");if(arguments.length>1)b=MochiKit.Base.partial.apply(null,arguments);this._finalizer=b;this.fired>=0&&this._fire();return this},_fire:function(){for(var b=this.chain,f=this.fired,k=this.results[f],p=this,
-A=null;b.length>0&&this.paused===0;){var B=b.shift()[f];if(B!==null)try{k=B(k);f=k instanceof Error?1:0;if(k instanceof MochiKit.Async.Deferred){A=function(U){p.paused--;p._resback(U)};this.paused++}}catch(M){f=1;M instanceof Error||(M=new MochiKit.Async.GenericError(M));k=M}}this.fired=f;this.results[f]=k;if(this.chain.length==0&&this.paused===0&&this._finalizer){this.finalized=true;this._finalizer(k)}if(A&&this.paused){k.addBoth(A);k.chained=true}}};
-MochiKit.Base.update(MochiKit.Async,{evalJSONRequest:function(b){return MochiKit.Base.evalJSON(b.responseText)},succeed:function(){var b=new MochiKit.Async.Deferred;b.callback.apply(b,arguments);return b},fail:function(){var b=new MochiKit.Async.Deferred;b.errback.apply(b,arguments);return b},getXMLHttpRequest:function(){var b=arguments.callee;if(!b.XMLHttpRequest)for(var f=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},
-function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0")},function(){throw new MochiKit.Async.BrowserComplianceError("Browser does not support XMLHttpRequest");}],k=0;k<f.length;k++){var p=f[k];try{b.XMLHttpRequest=p;return p()}catch(A){}}return b.XMLHttpRequest()},_xhr_onreadystatechange:function(b){var f=MochiKit.Base;if(this.readyState==4){try{this.onreadystatechange=null}catch(k){try{this.onreadystatechange=f.noop}catch(p){}}var A=null;try{A=this.status;if(!A&&f.isNotEmpty(this.responseText))A=
-304}catch(B){}if(A==200||A==201||A==204||A==304||A==1223)b.callback(this);else{f=new MochiKit.Async.XMLHttpRequestError(this,"Request failed");b.errback(f)}}},_xhr_canceller:function(b){try{b.onreadystatechange=null}catch(f){try{b.onreadystatechange=MochiKit.Base.noop}catch(k){}}b.abort()},sendXMLHttpRequest:function(b,f){if(typeof f=="undefined"||f===null)f="";var k=MochiKit.Base,p=MochiKit.Async,A=new p.Deferred(k.partial(p._xhr_canceller,b));try{b.onreadystatechange=k.bind(p._xhr_onreadystatechange,
-b,A);b.send(f)}catch(B){try{b.onreadystatechange=null}catch(M){}A.errback(B)}return A},doXHR:function(b,f){var k=MochiKit.Async;return k.callLater(0,k._doXHR,b,f)},_doXHR:function(b,f){var k=MochiKit.Base;f=k.update({method:"GET",sendContent:""},f);var p=MochiKit.Async,A=p.getXMLHttpRequest();if(f.queryString){var B=k.queryString(f.queryString);if(B)b+="?"+B}"username"in f?A.open(f.method,b,true,f.username,f.password):A.open(f.method,b,true);A.overrideMimeType&&f.mimeType&&A.overrideMimeType(f.mimeType);
-A.setRequestHeader("X-Requested-With","XMLHttpRequest");if(f.headers){B=f.headers;k.isArrayLike(B)||(B=k.items(B));for(k=0;k<B.length;k++){var M=B[k];A.setRequestHeader(M[0],M[1])}}return p.sendXMLHttpRequest(A,f.sendContent)},_buildURL:function(b){if(arguments.length>1){var f=MochiKit.Base;if(f=f.queryString.apply(null,f.extend(null,arguments,1)))return b+"?"+f}return b},doSimpleXMLHttpRequest:function(b){var f=MochiKit.Async;b=f._buildURL.apply(f,arguments);return f.doXHR(b)},loadJSONDoc:function(b){var f=
-MochiKit.Async;b=f._buildURL.apply(f,arguments);var k=f.doXHR(b,{mimeType:"text/plain",headers:[["Accept","application/json"]]});return k=k.addCallback(f.evalJSONRequest)},wait:function(b,f){var k=new MochiKit.Async.Deferred,p=MochiKit.Base.bind("callback",k,f),A=setTimeout(p,Math.floor(b*1E3));k.canceller=function(){try{clearTimeout(A)}catch(B){}};return k},callLater:function(b){var f=MochiKit.Base,k=f.partial.apply(f,f.extend(null,arguments,1));return MochiKit.Async.wait(b).addCallback(function(){return k()})}});
-MochiKit.Async.DeferredLock=function(){this.waiting=[];this.locked=false;this.id=this._nextId()};
-MochiKit.Async.DeferredLock.prototype={__class__:MochiKit.Async.DeferredLock,acquire:function(){var b=new MochiKit.Async.Deferred;if(this.locked)this.waiting.push(b);else{this.locked=true;b.callback(this)}return b},release:function(){if(!this.locked)throw TypeError("Tried to release an unlocked DeferredLock");this.locked=false;if(this.waiting.length>0){this.locked=true;this.waiting.shift().callback(this)}},_nextId:MochiKit.Base.counter(),repr:function(){return"DeferredLock("+this.id+", "+(this.locked?
-"locked, "+this.waiting.length+" waiting":"unlocked")+")"},toString:MochiKit.Base.forwardCall("repr")};MochiKit.Async.DeferredList=function(b,f,k,p,A){MochiKit.Async.Deferred.apply(this,[A]);this.list=b;this.resultList=A=[];this.finishedCount=0;this.fireOnOneCallback=f;this.fireOnOneErrback=k;this.consumeErrors=p;k=MochiKit.Base.bind(this._cbDeferred,this);for(p=0;p<b.length;p++){var B=b[p];A.push(undefined);B.addCallback(k,p,true);B.addErrback(k,p,false)}b.length===0&&!f&&this.callback(this.resultList)};
-MochiKit.Async.DeferredList.prototype=new MochiKit.Async.Deferred;MochiKit.Async.DeferredList.prototype._cbDeferred=function(b,f,k){this.resultList[b]=[f,k];this.finishedCount+=1;if(this.fired==-1)if(f&&this.fireOnOneCallback)this.callback([b,k]);else if(!f&&this.fireOnOneErrback)this.errback(k);else this.finishedCount==this.list.length&&this.callback(this.resultList);if(!f&&this.consumeErrors)k=null;return k};
-MochiKit.Async.gatherResults=function(b){b=new MochiKit.Async.DeferredList(b,false,true,false);b.addCallback(function(f){for(var k=[],p=0;p<f.length;p++)k.push(f[p][1]);return k});return b};MochiKit.Async.maybeDeferred=function(b){var f=MochiKit.Async,k;try{var p=b.apply(null,MochiKit.Base.extend([],arguments,1));k=p instanceof f.Deferred?p:p instanceof Error?f.fail(p):f.succeed(p)}catch(A){k=f.fail(A)}return k};
-MochiKit.Async.__new__=function(){var b=MochiKit.Base,f=b.partial(b._newNamedError,this);f("AlreadyCalledError",function(k){this.deferred=k});f("CancelledError",function(k){this.deferred=k});f("BrowserComplianceError",function(k){this.message=k});f("GenericError",function(k){this.message=k});f("XMLHttpRequestError",function(k,p){this.req=k;this.message=p;try{this.number=k.status}catch(A){}});b.nameFunctions(this)};MochiKit.Async.__new__();MochiKit.Base._exportSymbols(this,MochiKit.Async);(function(b,f){function k(){if(!d.isReady){try{G.documentElement.doScroll("left")}catch(a){setTimeout(k,1);return}d.ready()}}function p(a,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function A(a,c,e,g,j,y){var z=a.length;if(typeof c==="object"){for(var T in c)A(a,T,c[T],g,j,e);return a}if(e!==f){g=!y&&g&&d.isFunction(e);for(T=0;T<z;T++)j(a[T],c,g?e.call(a[T],T,j(a[T],c)):e,y);return a}return z?
-j(a[0],c):f}function B(){return(new Date).getTime()}function M(){return false}function U(){return true}function J(a,c,e){e[0].type=a;return d.event.handle.apply(c,e)}function ja(a){var c,e=[],g=[],j=arguments,y,z,T,N,V,ha;z=d.data(this,"events");if(!(a.liveFired===this||!z||!z.live||a.button&&a.type==="click")){a.liveFired=this;var Da=z.live.slice(0);for(N=0;N<Da.length;N++){z=Da[N];z.origType.replace(qa,"")===a.type?g.push(z.selector):Da.splice(N--,1)}y=d(a.target).closest(g,a.currentTarget);V=0;
-for(ha=y.length;V<ha;V++)for(N=0;N<Da.length;N++){z=Da[N];if(y[V].selector===z.selector){T=y[V].elem;g=null;if(z.preType==="mouseenter"||z.preType==="mouseleave")g=d(a.relatedTarget).closest(z.selector)[0];if(!g||g!==T)e.push({elem:T,handleObj:z})}}V=0;for(ha=e.length;V<ha;V++){y=e[V];a.currentTarget=y.elem;a.data=y.handleObj.data;a.handleObj=y.handleObj;if(y.handleObj.origHandler.apply(y.elem,j)===false){c=false;break}}return c}}function wa(a,c){return"live."+(a&&a!=="*"?a+".":"")+c.replace(/\./g,
-"`").replace(/ /g,"&")}function sa(a,c){var e=0;c.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=d.data(a[e++]),j=d.data(this,g);if(g=g&&g.events){delete j.handle;j.events={};for(var y in g)for(var z in g[y])d.event.add(this,y,g[y][z],g[y][z].data)}}})}function H(a,c,e){var g,j,y;c=c&&c[0]?c[0].ownerDocument||c[0]:G;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&c===G&&!ga.test(a[0])&&(d.support.checkClone||!na.test(a[0]))){j=true;if(y=d.fragments[a[0]])if(y!==1)g=y}if(!g){g=
-c.createDocumentFragment();d.clean(a,c,g,e)}if(j)d.fragments[a[0]]=y?g:1;return{fragment:g,cacheable:j}}function R(a,c){var e={};d.each(pb.concat.apply([],pb.slice(0,c)),function(){e[this]=a});return e}function $(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,c){return new d.fn.init(a,c)},da=b.jQuery,ya=b.$,G=b.document,pa,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ja=/^.[^:#\[\.,]*$/,Wa=/\S/,Ea=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,$a=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-Ua=navigator.userAgent,Xa=false,Ya=[],Ba,Na=Object.prototype.toString,Pa=Object.prototype.hasOwnProperty,Va=Array.prototype.push,Ta=Array.prototype.slice,la=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,c){var e,g,j;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!c){this.context=G;this[0]=G.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!c))if(e[1]){j=c?c.ownerDocument||c:G;if(g=$a.exec(a))if(d.isPlainObject(c)){a=
-[G.createElement(g[1])];d.fn.attr.call(a,c,true)}else a=[j.createElement(g[1])];else{g=H([e[1]],[j]);a=(g.cacheable?g.fragment.cloneNode(true):g.fragment).childNodes}return d.merge(this,a)}else{if(g=G.getElementById(e[2])){if(g.id!==e[2])return pa.find(a);this.length=1;this[0]=g}this.context=G;this.selector=a;return this}else if(!c&&/^\w+$/.test(a)){this.selector=a;this.context=G;a=G.getElementsByTagName(a);return d.merge(this,a)}else return!c||c.jquery?(c||pa).find(a):d(c).find(a);else if(d.isFunction(a))return pa.ready(a);
-if(a.selector!==f){this.selector=a.selector;this.context=a.context}return d.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return Ta.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,c,e){var g=d();d.isArray(a)?Va.apply(g,a):d.merge(g,a);g.prevObject=this;g.context=this.context;if(c==="find")g.selector=this.selector+(this.selector?" ":"")+e;else if(c)g.selector=this.selector+
-"."+c+"("+e+")";return g},each:function(a,c){return d.each(this,a,c)},ready:function(a){d.bindReady();if(d.isReady)a.call(G,d);else Ya&&Ya.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Ta.apply(this,arguments),"slice",Ta.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(c,e){return a.call(c,e,c)}))},end:function(){return this.prevObject||
-d(null)},push:Va,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var a=arguments[0]||{},c=1,e=arguments.length,g=false,j,y,z,T;if(typeof a==="boolean"){g=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!d.isFunction(a))a={};if(e===c){a=this;--c}for(;c<e;c++)if((j=arguments[c])!=null)for(y in j){z=a[y];T=j[y];if(a!==T)if(g&&T&&(d.isPlainObject(T)||d.isArray(T))){z=z&&(d.isPlainObject(z)||d.isArray(z))?z:d.isArray(T)?[]:{};a[y]=d.extend(g,z,T)}else if(T!==f)a[y]=
-T}return a};d.extend({noConflict:function(a){b.$=ya;if(a)b.jQuery=da;return d},isReady:false,ready:function(){if(!d.isReady){if(!G.body)return setTimeout(d.ready,13);d.isReady=true;if(Ya){for(var a,c=0;a=Ya[c++];)a.call(G,d);Ya=null}d.fn.triggerHandler&&d(G).triggerHandler("ready")}},bindReady:function(){if(!Xa){Xa=true;if(G.readyState==="complete")return d.ready();if(G.addEventListener){G.addEventListener("DOMContentLoaded",Ba,false);b.addEventListener("load",d.ready,false)}else if(G.attachEvent){G.attachEvent("onreadystatechange",
-Ba);b.attachEvent("onload",d.ready);var a=false;try{a=b.frameElement==null}catch(c){}G.documentElement.doScroll&&a&&k()}}},isFunction:function(a){return Na.call(a)==="[object Function]"},isArray:function(a){return Na.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||Na.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!Pa.call(a,"constructor")&&!Pa.call(a.constructor.prototype,"isPrototypeOf"))return false;var c;for(c in a);return c===f||Pa.call(a,c)},
-isEmptyObject:function(a){for(var c in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=d.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(a):(new Function("return "+a))();else d.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&
-Wa.test(a)){var c=G.getElementsByTagName("head")[0]||G.documentElement,e=G.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(G.createTextNode(a));else e.text=a;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(a,c){return a.nodeName&&a.nodeName.toUpperCase()===c.toUpperCase()},each:function(a,c,e){var g,j=0,y=a.length,z=y===f||d.isFunction(a);if(e)if(z)for(g in a){if(c.apply(a[g],e)===false)break}else for(;j<y;){if(c.apply(a[j++],e)===false)break}else if(z)for(g in a){if(c.call(a[g],
-g,a[g])===false)break}else for(e=a[0];j<y&&c.call(e,j,e)!==false;e=a[++j]);return a},trim:function(a){return(a||"").replace(Ea,"")},makeArray:function(a,c){var e=c||[];if(a!=null)a.length==null||typeof a==="string"||d.isFunction(a)||typeof a!=="function"&&a.setInterval?Va.call(e,a):d.merge(e,a);return e},inArray:function(a,c){if(c.indexOf)return c.indexOf(a);for(var e=0,g=c.length;e<g;e++)if(c[e]===a)return e;return-1},merge:function(a,c){var e=a.length,g=0;if(typeof c.length==="number")for(var j=
-c.length;g<j;g++)a[e++]=c[g];else for(;c[g]!==f;)a[e++]=c[g++];a.length=e;return a},grep:function(a,c,e){for(var g=[],j=0,y=a.length;j<y;j++)!e!==!c(a[j],j)&&g.push(a[j]);return g},map:function(a,c,e){for(var g=[],j,y=0,z=a.length;y<z;y++){j=c(a[y],y,e);if(j!=null)g[g.length]=j}return g.concat.apply([],g)},guid:1,proxy:function(a,c,e){if(arguments.length===2)if(typeof c==="string"){e=a;a=e[c];c=f}else if(c&&!d.isFunction(c)){e=c;c=f}if(!c&&a)c=function(){return a.apply(e||this,arguments)};if(a)c.guid=
-a.guid=a.guid||c.guid||d.guid++;return c},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});Ua=d.uaMatch(Ua);if(Ua.browser){d.browser[Ua.browser]=true;d.browser.version=Ua.version}if(d.browser.webkit)d.browser.safari=true;if(la)d.inArray=function(a,c){return la.call(c,a)};pa=d(G);
-if(G.addEventListener)Ba=function(){G.removeEventListener("DOMContentLoaded",Ba,false);d.ready()};else if(G.attachEvent)Ba=function(){if(G.readyState==="complete"){G.detachEvent("onreadystatechange",Ba);d.ready()}};(function(){d.support={};var a=G.documentElement,c=G.createElement("script"),e=G.createElement("div"),g="script"+B();e.style.display="none";e.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var j=e.getElementsByTagName("*"),
-y=e.getElementsByTagName("a")[0];if(!(!j||!j.length||!y)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(y.getAttribute("style")),hrefNormalized:y.getAttribute("href")==="/a",opacity:/^0.55$/.test(y.style.opacity),cssFloat:!!y.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:G.createElement("select").appendChild(G.createElement("option")).selected,
-parentNode:e.removeChild(e.appendChild(G.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(G.createTextNode("window."+g+"=1;"))}catch(z){}a.insertBefore(c,a.firstChild);if(b[g]){d.support.scriptEval=true;delete b[g]}try{delete c.test}catch(T){d.support.deleteExpando=false}a.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function N(){d.support.noCloneEvent=
-false;e.detachEvent("onclick",N)});e.cloneNode(true).fireEvent("onclick")}e=G.createElement("div");e.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=G.createDocumentFragment();a.appendChild(e.firstChild);d.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var N=G.createElement("div");N.style.width=N.style.paddingLeft="1px";G.body.appendChild(N);d.boxModel=d.support.boxModel=N.offsetWidth===2;G.body.removeChild(N).style.display="none"});a=function(N){var V=
-G.createElement("div");N="on"+N;var ha=N in V;if(!ha){V.setAttribute(N,"return;");ha=typeof V[N]==="function"}return ha};d.support.submitBubbles=a("submit");d.support.changeBubbles=a("change");a=c=e=j=y=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var Ma="jQuery"+B(),ab=0,bb={};d.extend({cache:{},expando:Ma,noData:{embed:true,
-object:true,applet:true},data:function(a,c,e){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==b?bb:a;var g=a[Ma],j=d.cache;if(!g&&typeof c==="string"&&e===f)return null;g||(g=++ab);if(typeof c==="object"){a[Ma]=g;j[g]=d.extend(true,{},c)}else if(!j[g]){a[Ma]=g;j[g]={}}a=j[g];if(e!==f)a[c]=e;return typeof c==="string"?a[c]:a}},removeData:function(a,c){if(!(a.nodeName&&d.noData[a.nodeName.toLowerCase()])){a=a==b?bb:a;var e=a[Ma],g=d.cache,j=g[e];if(c){if(j){delete j[c];d.isEmptyObject(j)&&
-d.removeData(a)}}else{if(d.support.deleteExpando)delete a[d.expando];else a.removeAttribute&&a.removeAttribute(d.expando);delete g[e]}}}});d.fn.extend({data:function(a,c){if(typeof a==="undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(c===f){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===f&&this.length)g=d.data(this[0],a);return g===f&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+
-e[1]+"!",[e[0],c]).each(function(){d.data(this,a,c)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});d.extend({queue:function(a,c,e){if(a){c=(c||"fx")+"queue";var g=d.data(a,c);if(!e)return g||[];if(!g||d.isArray(e))g=d.data(a,c,d.makeArray(e));else g.push(e);return g}},dequeue:function(a,c){c=c||"fx";var e=d.queue(a,c),g=e.shift();if(g==="inprogress")g=e.shift();if(g){c==="fx"&&e.unshift("inprogress");g.call(a,function(){d.dequeue(a,c)})}}});d.fn.extend({queue:function(a,
-c){if(typeof a!=="string"){c=a;a="fx"}if(c===f)return d.queue(this[0],a);return this.each(function(){var e=d.queue(this,a,c);a==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,a)})},dequeue:function(a){return this.each(function(){d.dequeue(this,a)})},delay:function(a,c){a=d.fx?d.fx.speeds[a]||a:a;c=c||"fx";return this.queue(c,function(){var e=this;setTimeout(function(){d.dequeue(e,c)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,n=/\s+/,u=/\r/g,E=/href|src|style/,K=/(button|input)/i,
-C=/(button|input|object|select|textarea)/i,ia=/^(a|area)$/i,X=/radio|checkbox/;d.fn.extend({attr:function(a,c){return A(this,a,c,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(V){var ha=d(this);ha.addClass(a.call(this,V,ha.attr("class")))});if(a&&typeof a==="string")for(var c=(a||"").split(n),e=0,g=this.length;e<g;e++){var j=this[e];if(j.nodeType===1)if(j.className){for(var y=
-" "+j.className+" ",z=j.className,T=0,N=c.length;T<N;T++)if(y.indexOf(" "+c[T]+" ")<0)z+=" "+c[T];j.className=d.trim(z)}else j.className=a}return this},removeClass:function(a){if(d.isFunction(a))return this.each(function(N){var V=d(this);V.removeClass(a.call(this,N,V.attr("class")))});if(a&&typeof a==="string"||a===f)for(var c=(a||"").split(n),e=0,g=this.length;e<g;e++){var j=this[e];if(j.nodeType===1&&j.className)if(a){for(var y=(" "+j.className+" ").replace(Aa," "),z=0,T=c.length;z<T;z++)y=y.replace(" "+
-c[z]+" "," ");j.className=d.trim(y)}else j.className=""}return this},toggleClass:function(a,c){var e=typeof a,g=typeof c==="boolean";if(d.isFunction(a))return this.each(function(j){var y=d(this);y.toggleClass(a.call(this,j,y.attr("class"),c),c)});return this.each(function(){if(e==="string")for(var j,y=0,z=d(this),T=c,N=a.split(n);j=N[y++];){T=g?T:!z.hasClass(j);z[T?"addClass":"removeClass"](j)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=
-this.className||a===false?"":d.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var c=0,e=this.length;c<e;c++)if((" "+this[c].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===f){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,g=[],j=c.options;c=c.type==="select-one";if(e<0)return null;var y=c?e:0;for(e=c?e+1:j.length;y<e;y++){var z=
-j[y];if(z.selected){a=d(z).val();if(c)return a;g.push(a)}}return g}if(X.test(c.type)&&!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(u,"")}return f}var T=d.isFunction(a);return this.each(function(N){var V=d(this),ha=a;if(this.nodeType===1){if(T)ha=a.call(this,N,V.val());if(typeof ha==="number")ha+="";if(d.isArray(ha)&&X.test(this.type))this.checked=d.inArray(V.val(),ha)>=0;else if(d.nodeName(this,"select")){var Da=d.makeArray(ha);d("option",this).each(function(){this.selected=
-d.inArray(d(this).val(),Da)>=0});if(!Da.length)this.selectedIndex=-1}else this.value=ha}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,c,e,g){if(!a||a.nodeType===3||a.nodeType===8)return f;if(g&&c in d.attrFn)return d(a)[c](e);g=a.nodeType!==1||!d.isXMLDoc(a);var j=e!==f;c=g&&d.props[c]||c;if(a.nodeType===1){var y=E.test(c);if(c in a&&g&&!y){if(j){c==="type"&&K.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed");
-a[c]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex")return(c=a.getAttributeNode("tabIndex"))&&c.specified?c.value:C.test(a.nodeName)||ia.test(a.nodeName)&&a.href?0:f;return a[c]}if(!d.support.style&&g&&c==="style"){if(j)a.style.cssText=""+e;return a.style.cssText}j&&a.setAttribute(c,""+e);a=!d.support.hrefNormalized&&g&&y?a.getAttribute(c,2):a.getAttribute(c);return a===null?f:a}return d.style(a,c,e)}});var qa=/\.(.*)$/,fa=function(a){return a.replace(/[^\w\s\.\|`]/g,
-function(c){return"\\"+c})};d.event={add:function(a,c,e,g){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==b&&!a.frameElement)a=b;var j,y;if(e.handler){j=e;e=j.handler}if(!e.guid)e.guid=d.guid++;if(y=d.data(a)){var z=y.events=y.events||{},T=y.handle;if(!T)y.handle=T=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(T.elem,arguments):f};T.elem=a;c=c.split(" ");for(var N,V=0,ha;N=c[V++];){y=j?d.extend({},j):{handler:e,data:g};if(N.indexOf(".")>-1){ha=N.split(".");
-N=ha.shift();y.namespace=ha.slice(0).sort().join(".")}else{ha=[];y.namespace=""}y.type=N;y.guid=e.guid;var Da=z[N],Ia=d.event.special[N]||{};if(!Da){Da=z[N]=[];if(!Ia.setup||Ia.setup.call(a,g,ha,T)===false)if(a.addEventListener)a.addEventListener(N,T,false);else a.attachEvent&&a.attachEvent("on"+N,T)}if(Ia.add){Ia.add.call(a,y);if(!y.handler.guid)y.handler.guid=e.guid}Da.push(y);d.event.global[N]=true}a=null}}},global:{},remove:function(a,c,e,g){if(!(a.nodeType===3||a.nodeType===8)){var j,y=0,z,T,
-N,V,ha,Da,Ia=d.data(a),Oa=Ia&&Ia.events;if(Ia&&Oa){if(c&&c.type){e=c.handler;c=c.type}if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(j in Oa)d.event.remove(a,j+c)}else{for(c=c.split(" ");j=c[y++];){V=j;z=j.indexOf(".")<0;T=[];if(!z){T=j.split(".");j=T.shift();N=RegExp("(^|\\.)"+d.map(T.slice(0).sort(),fa).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ha=Oa[j])if(e){V=d.event.special[j]||{};for(La=g||0;La<ha.length;La++){Da=ha[La];if(e.guid===Da.guid){if(z||N.test(Da.namespace)){g==null&&ha.splice(La--,
-1);V.remove&&V.remove.call(a,Da)}if(g!=null)break}}if(ha.length===0||g!=null&&ha.length===1){if(!V.teardown||V.teardown.call(a,T)===false)ma(a,j,Ia.handle);delete Oa[j]}}else for(var La=0;La<ha.length;La++){Da=ha[La];if(z||N.test(Da.namespace)){d.event.remove(a,V,Da.handler,La);ha.splice(La--,1)}}}if(d.isEmptyObject(Oa)){if(c=Ia.handle)c.elem=null;delete Ia.events;delete Ia.handle;d.isEmptyObject(Ia)&&d.removeData(a)}}}}},trigger:function(a,c,e,g){var j=a.type||a;if(!g){a=typeof a==="object"?a[Ma]?
-a:d.extend(d.Event(j),a):d.Event(j);if(j.indexOf("!")>=0){a.type=j=j.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();d.event.global[j]&&d.each(d.cache,function(){this.events&&this.events[j]&&d.event.trigger(a,c,this.handle.elem)})}if(!e||e.nodeType===3||e.nodeType===8)return f;a.result=f;a.target=e;c=d.makeArray(c);c.unshift(a)}a.currentTarget=e;(g=d.data(e,"handle"))&&g.apply(e,c);g=e.parentNode||e.ownerDocument;try{if(!(e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]))if(e["on"+j]&&e["on"+
-j].apply(e,c)===false)a.result=false}catch(y){}if(!a.isPropagationStopped()&&g)d.event.trigger(a,c,g,true);else if(!a.isDefaultPrevented()){g=a.target;var z,T=d.nodeName(g,"a")&&j==="click",N=d.event.special[j]||{};if((!N._default||N._default.call(e,a)===false)&&!T&&!(g&&g.nodeName&&d.noData[g.nodeName.toLowerCase()])){try{if(g[j]){if(z=g["on"+j])g["on"+j]=null;d.event.triggered=true;g[j]()}}catch(V){}if(z)g["on"+j]=z;d.event.triggered=false}}},handle:function(a){var c,e,g,j;a=arguments[0]=d.event.fix(a||
-b.event);a.currentTarget=this;c=a.type.indexOf(".")<0&&!a.exclusive;if(!c){e=a.type.split(".");a.type=e.shift();g=RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}j=d.data(this,"events");e=j[a.type];if(j&&e){e=e.slice(0);j=0;for(var y=e.length;j<y;j++){var z=e[j];if(c||g.test(z.namespace)){a.handler=z.handler;a.data=z.data;a.handleObj=z;z=z.handler.apply(this,arguments);if(z!==f){a.result=z;if(z===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},
-props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[Ma])return a;var c=a;a=d.Event(c);for(var e=this.props.length,g;e;){g=this.props[--e];a[g]=c[g]}if(!a.target)a.target=a.srcElement||
-G;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){c=G.documentElement;e=G.body;a.pageX=a.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c&&c.clientLeft||e&&e.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c&&c.clientTop||e&&e.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&
-a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==f)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(a){d.event.add(this,a.origType,d.extend({},a,{handler:ja}))},remove:function(a){var c=true,e=a.origType.replace(qa,"");d.each(d.data(this,"events").live||[],function(){if(e===this.origType.replace(qa,""))return c=false});c&&d.event.remove(this,a.origType,ja)}},beforeunload:{setup:function(a,c,
-e){if(this.setInterval)this.onbeforeunload=e;return false},teardown:function(a,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}}};var ma=G.removeEventListener?function(a,c,e){a.removeEventListener(c,e,false)}:function(a,c,e){a.detachEvent("on"+c,e)};d.Event=function(a){if(!this.preventDefault)return new d.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=B();this[Ma]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=U;var a=
-this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=U;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U;this.stopPropagation()},isDefaultPrevented:M,isPropagationStopped:M,isImmediatePropagationStopped:M};var ra=function(a){var c=a.relatedTarget;try{for(;c&&c!==this;)c=c.parentNode;if(c!==this){a.type=
-a.data;d.event.handle.apply(this,arguments)}}catch(e){}},Ca=function(a){a.type=a.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,c){d.event.special[a]={setup:function(e){d.event.add(this,c,e&&e.selector?Ca:ra,a)},teardown:function(e){d.event.remove(this,c,e&&e.selector?Ca:ra)}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(a){var c=
-a.target,e=c.type;if((e==="submit"||e==="image")&&d(c).closest("form").length)return J("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(a){var c=a.target,e=c.type;if((e==="text"||e==="password")&&d(c).closest("form").length&&a.keyCode===13)return J("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var za=/textarea|input|select/i,Ka,Ga=function(a){var c=a.type,e=a.value;if(c==="radio"||
-c==="checkbox")e=a.checked;else if(c==="select-multiple")e=a.selectedIndex>-1?d.map(a.options,function(g){return g.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")e=a.selectedIndex;return e},Ra=function(a,c){var e=a.target,g,j;if(!(!za.test(e.nodeName)||e.readOnly)){g=d.data(e,"_change_data");j=Ga(e);if(a.type!=="focusout"||e.type!=="radio")d.data(e,"_change_data",j);if(!(g===f||j===g))if(g!=null||j){a.type="change";return d.event.trigger(a,c,e)}}};d.event.special.change={filters:{focusout:Ra,
-click:function(a){var c=a.target,e=c.type;if(e==="radio"||e==="checkbox"||c.nodeName.toLowerCase()==="select")return Ra.call(this,a)},keydown:function(a){var c=a.target,e=c.type;if(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return Ra.call(this,a)},beforeactivate:function(a){a=a.target;d.data(a,"_change_data",Ga(a))}},setup:function(){if(this.type==="file")return false;for(var a in Ka)d.event.add(this,a+".specialChange",
-Ka[a]);return za.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return za.test(this.nodeName)}};Ka=d.event.special.change.filters}G.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,c){function e(g){g=d.event.fix(g);g.type=c;return d.event.handle.call(this,g)}d.event.special[c]={setup:function(){this.addEventListener(a,e,true)},teardown:function(){this.removeEventListener(a,e,true)}}});d.each(["bind","one"],function(a,c){d.fn[c]=function(e,g,j){if(typeof e===
-"object"){for(var y in e)this[c](y,g,e[y],j);return this}if(d.isFunction(g)){j=g;g=f}var z=c==="one"?d.proxy(j,function(N){d(this).unbind(N,z);return j.apply(this,arguments)}):j;if(e==="unload"&&c!=="one")this.one(e,g,j);else{y=0;for(var T=this.length;y<T;y++)d.event.add(this[y],e,z,g)}return this}});d.fn.extend({unbind:function(a,c){if(typeof a==="object"&&!a.preventDefault)for(var e in a)this.unbind(e,a[e]);else{e=0;for(var g=this.length;e<g;e++)d.event.remove(this[e],a,c)}return this},delegate:function(a,
-c,e,g){return this.live(c,e,g,a)},undelegate:function(a,c,e){return arguments.length===0?this.unbind("live"):this.die(c,null,e,a)},trigger:function(a,c){return this.each(function(){d.event.trigger(a,c,this)})},triggerHandler:function(a,c){if(this[0]){var e=d.Event(a);e.preventDefault();e.stopPropagation();d.event.trigger(e,c,this[0]);return e.result}},toggle:function(a){for(var c=arguments,e=1;e<c.length;)d.proxy(a,c[e++]);return this.click(d.proxy(a,function(g){var j=(d.data(this,"lastToggle"+a.guid)||
-0)%e;d.data(this,"lastToggle"+a.guid,j+1);g.preventDefault();return c[j].apply(this,arguments)||false}))},hover:function(a,c){return this.mouseenter(a).mouseleave(c||a)}});var db={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(a,c){d.fn[c]=function(e,g,j,y){var z,T=0,N,V,ha=y||this.selector,Da=y?this:d(this.context);if(d.isFunction(g)){j=g;g=f}for(e=(e||"").split(" ");(z=e[T++])!=null;){y=qa.exec(z);N="";if(y){N=y[0];z=z.replace(qa,"")}if(z===
-"hover")e.push("mouseenter"+N,"mouseleave"+N);else{V=z;if(z==="focus"||z==="blur"){e.push(db[z]+N);z+=N}else z=(db[z]||z)+N;c==="live"?Da.each(function(){d.event.add(this,wa(z,ha),{data:g,selector:ha,handler:j,origType:z,origHandler:j,preType:V})}):Da.unbind(wa(z,ha),j)}}return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,
-c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)};if(d.attrFn)d.attrFn[c]=true});b.attachEvent&&!b.addEventListener&&b.attachEvent("onunload",function(){for(var a in d.cache)if(d.cache[a].handle)try{d.event.remove(d.cache[a].handle.elem)}catch(c){}});(function(){function a(q){for(var D="",O,P=0;q[P];P++){O=q[P];if(O.nodeType===3||O.nodeType===4)D+=O.nodeValue;else if(O.nodeType!==8)D+=a(O.childNodes)}return D}function c(q,D,O,P,Z,Y){Z=0;for(var va=P.length;Z<va;Z++){var ta=P[Z];if(ta){ta=
-ta[q];for(var Ha=false;ta;){if(ta.sizcache===O){Ha=P[ta.sizset];break}if(ta.nodeType===1&&!Y){ta.sizcache=O;ta.sizset=Z}if(ta.nodeName.toLowerCase()===D){Ha=ta;break}ta=ta[q]}P[Z]=Ha}}}function e(q,D,O,P,Z,Y){Z=0;for(var va=P.length;Z<va;Z++){var ta=P[Z];if(ta){ta=ta[q];for(var Ha=false;ta;){if(ta.sizcache===O){Ha=P[ta.sizset];break}if(ta.nodeType===1){if(!Y){ta.sizcache=O;ta.sizset=Z}if(typeof D!=="string"){if(ta===D){Ha=true;break}}else if(N.filter(D,[ta]).length>0){Ha=ta;break}}ta=ta[q]}P[Z]=Ha}}}
-var g=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,j=0,y=Object.prototype.toString,z=false,T=true;[0,0].sort(function(){T=false;return 0});var N=function(q,D,O,P){O=O||[];var Z=D=D||G;if(D.nodeType!==1&&D.nodeType!==9)return[];if(!q||typeof q!=="string")return O;for(var Y=[],va,ta,Ha,ib,eb=true,gb=xa(D),fb=q;(g.exec(""),va=g.exec(fb))!==null;){fb=va[3];Y.push(va[1]);if(va[2]){ib=va[3];break}}if(Y.length>1&&ha.exec(q))if(Y.length===
-2&&V.relative[Y[0]])ta=lb(Y[0]+Y[1],D);else for(ta=V.relative[Y[0]]?[D]:N(Y.shift(),D);Y.length;){q=Y.shift();if(V.relative[q])q+=Y.shift();ta=lb(q,ta)}else{if(!P&&Y.length>1&&D.nodeType===9&&!gb&&V.match.ID.test(Y[0])&&!V.match.ID.test(Y[Y.length-1])){va=N.find(Y.shift(),D,gb);D=va.expr?N.filter(va.expr,va.set)[0]:va.set[0]}if(D){va=P?{expr:Y.pop(),set:Ia(P)}:N.find(Y.pop(),Y.length===1&&(Y[0]==="~"||Y[0]==="+")&&D.parentNode?D.parentNode:D,gb);ta=va.expr?N.filter(va.expr,va.set):va.set;if(Y.length>
-0)Ha=Ia(ta);else eb=false;for(;Y.length;){var cb=Y.pop();va=cb;if(V.relative[cb])va=Y.pop();else cb="";if(va==null)va=D;V.relative[cb](Ha,va,gb)}}else Ha=[]}Ha||(Ha=ta);Ha||N.error(cb||q);if(y.call(Ha)==="[object Array]")if(eb)if(D&&D.nodeType===1)for(q=0;Ha[q]!=null;q++){if(Ha[q]&&(Ha[q]===true||Ha[q].nodeType===1&&Za(D,Ha[q])))O.push(ta[q])}else for(q=0;Ha[q]!=null;q++)Ha[q]&&Ha[q].nodeType===1&&O.push(ta[q]);else O.push.apply(O,Ha);else Ia(Ha,O);if(ib){N(ib,Z,O,P);N.uniqueSort(O)}return O};N.uniqueSort=
-function(q){if(La){z=T;q.sort(La);if(z)for(var D=1;D<q.length;D++)q[D]===q[D-1]&&q.splice(D--,1)}return q};N.matches=function(q,D){return N(q,null,null,D)};N.find=function(q,D,O){var P,Z;if(!q)return[];for(var Y=0,va=V.order.length;Y<va;Y++){var ta=V.order[Y];if(Z=V.leftMatch[ta].exec(q)){var Ha=Z[1];Z.splice(1,1);if(Ha.substr(Ha.length-1)!=="\\"){Z[1]=(Z[1]||"").replace(/\\/g,"");P=V.find[ta](Z,D,O);if(P!=null){q=q.replace(V.match[ta],"");break}}}}P||(P=D.getElementsByTagName("*"));return{set:P,
-expr:q}};N.filter=function(q,D,O,P){for(var Z=q,Y=[],va=D,ta,Ha,ib=D&&D[0]&&xa(D[0]);q&&D.length;){for(var eb in V.filter)if((ta=V.leftMatch[eb].exec(q))!=null&&ta[2]){var gb=V.filter[eb],fb,cb;cb=ta[1];Ha=false;ta.splice(1,1);if(cb.substr(cb.length-1)!=="\\"){if(va===Y)Y=[];if(V.preFilter[eb])if(ta=V.preFilter[eb](ta,va,O,Y,P,ib)){if(ta===true)continue}else Ha=fb=true;if(ta)for(var jb=0;(cb=va[jb])!=null;jb++)if(cb){fb=gb(cb,ta,jb,va);var qb=P^!!fb;if(O&&fb!=null)if(qb)Ha=true;else va[jb]=false;
-else if(qb){Y.push(cb);Ha=true}}if(fb!==f){O||(va=Y);q=q.replace(V.match[eb],"");if(!Ha)return[];break}}}if(q===Z)if(Ha==null)N.error(q);else break;Z=q}return va};N.error=function(q){throw"Syntax error, unrecognized expression: "+q;};var V=N.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
-CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(q){return q.getAttribute("href")}},relative:{"+":function(q,D){var O=typeof D==="string",P=O&&!/\W/.test(D);O=O&&!P;if(P)D=D.toLowerCase();P=0;for(var Z=q.length,Y;P<Z;P++)if(Y=q[P]){for(;(Y=Y.previousSibling)&&
-Y.nodeType!==1;);q[P]=O||Y&&Y.nodeName.toLowerCase()===D?Y||false:Y===D}O&&N.filter(D,q,true)},">":function(q,D){var O=typeof D==="string";if(O&&!/\W/.test(D)){D=D.toLowerCase();for(var P=0,Z=q.length;P<Z;P++){var Y=q[P];if(Y){O=Y.parentNode;q[P]=O.nodeName.toLowerCase()===D?O:false}}}else{P=0;for(Z=q.length;P<Z;P++)if(Y=q[P])q[P]=O?Y.parentNode:Y.parentNode===D;O&&N.filter(D,q,true)}},"":function(q,D,O){var P=j++,Z=e;if(typeof D==="string"&&!/\W/.test(D)){var Y=D=D.toLowerCase();Z=c}Z("parentNode",
-D,P,q,Y,O)},"~":function(q,D,O){var P=j++,Z=e;if(typeof D==="string"&&!/\W/.test(D)){var Y=D=D.toLowerCase();Z=c}Z("previousSibling",D,P,q,Y,O)}},find:{ID:function(q,D,O){if(typeof D.getElementById!=="undefined"&&!O)return(q=D.getElementById(q[1]))?[q]:[]},NAME:function(q,D){if(typeof D.getElementsByName!=="undefined"){for(var O=[],P=D.getElementsByName(q[1]),Z=0,Y=P.length;Z<Y;Z++)P[Z].getAttribute("name")===q[1]&&O.push(P[Z]);return O.length===0?null:O}},TAG:function(q,D){return D.getElementsByTagName(q[1])}},
-preFilter:{CLASS:function(q,D,O,P,Z,Y){q=" "+q[1].replace(/\\/g,"")+" ";if(Y)return q;Y=0;for(var va;(va=D[Y])!=null;Y++)if(va)if(Z^(va.className&&(" "+va.className+" ").replace(/[\t\n]/g," ").indexOf(q)>=0))O||P.push(va);else if(O)D[Y]=false;return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(q){return q[1].toLowerCase()},CHILD:function(q){if(q[1]==="nth"){var D=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(q[2]==="even"&&"2n"||q[2]==="odd"&&"2n+1"||!/\D/.test(q[2])&&"0n+"+q[2]||q[2]);q[2]=
-D[1]+(D[2]||1)-0;q[3]=D[3]-0}q[0]=j++;return q},ATTR:function(q,D,O,P,Z,Y){D=q[1].replace(/\\/g,"");if(!Y&&V.attrMap[D])q[1]=V.attrMap[D];if(q[2]==="~=")q[4]=" "+q[4]+" ";return q},PSEUDO:function(q,D,O,P,Z){if(q[1]==="not")if((g.exec(q[3])||"").length>1||/^\w/.test(q[3]))q[3]=N(q[3],null,null,D);else{q=N.filter(q[3],D,O,true^Z);O||P.push.apply(P,q);return false}else if(V.match.POS.test(q[0])||V.match.CHILD.test(q[0]))return true;return q},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===
-false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){return q.selected===true},parent:function(q){return!!q.firstChild},empty:function(q){return!q.firstChild},has:function(q,D,O){return!!N(O[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===
-q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toLowerCase()==="button"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,D){return D===0},last:function(q,D,O,P){return D===P.length-1},even:function(q,D){return D%2===0},odd:function(q,D){return D%2===1},
-lt:function(q,D,O){return D<O[3]-0},gt:function(q,D,O){return D>O[3]-0},nth:function(q,D,O){return O[3]-0===D},eq:function(q,D,O){return O[3]-0===D}},filter:{PSEUDO:function(q,D,O,P){var Z=D[1],Y=V.filters[Z];if(Y)return Y(q,O,D,P);else if(Z==="contains")return(q.textContent||q.innerText||a([q])||"").indexOf(D[3])>=0;else if(Z==="not"){D=D[3];O=0;for(P=D.length;O<P;O++)if(D[O]===q)return false;return true}else N.error("Syntax error, unrecognized expression: "+Z)},CHILD:function(q,D){var O=D[1],P=
-q;switch(O){case "only":case "first":for(;P=P.previousSibling;)if(P.nodeType===1)return false;if(O==="first")return true;P=q;case "last":for(;P=P.nextSibling;)if(P.nodeType===1)return false;return true;case "nth":O=D[2];var Z=D[3];if(O===1&&Z===0)return true;var Y=D[0],va=q.parentNode;if(va&&(va.sizcache!==Y||!q.nodeIndex)){var ta=0;for(P=va.firstChild;P;P=P.nextSibling)if(P.nodeType===1)P.nodeIndex=++ta;va.sizcache=Y}P=q.nodeIndex-Z;return O===0?P===0:P%O===0&&P/O>=0}},ID:function(q,D){return q.nodeType===
-1&&q.getAttribute("id")===D},TAG:function(q,D){return D==="*"&&q.nodeType===1||q.nodeName.toLowerCase()===D},CLASS:function(q,D){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(D)>-1},ATTR:function(q,D){var O=D[1];O=V.attrHandle[O]?V.attrHandle[O](q):q[O]!=null?q[O]:q.getAttribute(O);var P=O+"",Z=D[2],Y=D[4];return O==null?Z==="!=":Z==="="?P===Y:Z==="*="?P.indexOf(Y)>=0:Z==="~="?(" "+P+" ").indexOf(Y)>=0:!Y?P&&O!==false:Z==="!="?P!==Y:Z==="^="?P.indexOf(Y)===0:Z==="$="?P.substr(P.length-
-Y.length)===Y:Z==="|="?P===Y||P.substr(0,Y.length+1)===Y+"-":false},POS:function(q,D,O,P){var Z=V.setFilters[D[2]];if(Z)return Z(q,O,D,P)}}},ha=V.match.POS;for(var Da in V.match){V.match[Da]=RegExp(V.match[Da].source+/(?![^\[]*\])(?![^\(]*\))/.source);V.leftMatch[Da]=RegExp(/(^(?:.|\r|\n)*?)/.source+V.match[Da].source.replace(/\\(\d+)/g,function(q,D){return"\\"+(D-0+1)}))}var Ia=function(q,D){q=Array.prototype.slice.call(q,0);if(D){D.push.apply(D,q);return D}return q};try{Array.prototype.slice.call(G.documentElement.childNodes,
-0)}catch(Oa){Ia=function(q,D){var O=D||[];if(y.call(q)==="[object Array]")Array.prototype.push.apply(O,q);else if(typeof q.length==="number")for(var P=0,Z=q.length;P<Z;P++)O.push(q[P]);else for(P=0;q[P];P++)O.push(q[P]);return O}}var La;if(G.documentElement.compareDocumentPosition)La=function(q,D){if(!q.compareDocumentPosition||!D.compareDocumentPosition){if(q==D)z=true;return q.compareDocumentPosition?-1:1}var O=q.compareDocumentPosition(D)&4?-1:q===D?0:1;if(O===0)z=true;return O};else if("sourceIndex"in
-G.documentElement)La=function(q,D){if(!q.sourceIndex||!D.sourceIndex){if(q==D)z=true;return q.sourceIndex?-1:1}var O=q.sourceIndex-D.sourceIndex;if(O===0)z=true;return O};else if(G.createRange)La=function(q,D){if(!q.ownerDocument||!D.ownerDocument){if(q==D)z=true;return q.ownerDocument?-1:1}var O=q.ownerDocument.createRange(),P=D.ownerDocument.createRange();O.setStart(q,0);O.setEnd(q,0);P.setStart(D,0);P.setEnd(D,0);O=O.compareBoundaryPoints(Range.START_TO_END,P);if(O===0)z=true;return O};(function(){var q=
-G.createElement("div"),D="script"+(new Date).getTime();q.innerHTML="<a name='"+D+"'/>";var O=G.documentElement;O.insertBefore(q,O.firstChild);if(G.getElementById(D)){V.find.ID=function(P,Z,Y){if(typeof Z.getElementById!=="undefined"&&!Y)return(Z=Z.getElementById(P[1]))?Z.id===P[1]||typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id").nodeValue===P[1]?[Z]:f:[]};V.filter.ID=function(P,Z){var Y=typeof P.getAttributeNode!=="undefined"&&P.getAttributeNode("id");return P.nodeType===1&&Y&&Y.nodeValue===
-Z}}O.removeChild(q);O=q=null})();(function(){var q=G.createElement("div");q.appendChild(G.createComment(""));if(q.getElementsByTagName("*").length>0)V.find.TAG=function(D,O){var P=O.getElementsByTagName(D[1]);if(D[1]==="*"){for(var Z=[],Y=0;P[Y];Y++)P[Y].nodeType===1&&Z.push(P[Y]);P=Z}return P};q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#")V.attrHandle.href=function(D){return D.getAttribute("href",2)};q=null})();
-G.querySelectorAll&&function(){var q=N,D=G.createElement("div");D.innerHTML="<p class='TEST'></p>";if(!(D.querySelectorAll&&D.querySelectorAll(".TEST").length===0)){N=function(P,Z,Y,va){Z=Z||G;if(!va&&Z.nodeType===9&&!xa(Z))try{return Ia(Z.querySelectorAll(P),Y)}catch(ta){}return q(P,Z,Y,va)};for(var O in q)N[O]=q[O];D=null}}();(function(){var q=G.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!q.getElementsByClassName||q.getElementsByClassName("e").length===
-0)){q.lastChild.className="e";if(q.getElementsByClassName("e").length!==1){V.order.splice(1,0,"CLASS");V.find.CLASS=function(D,O,P){if(typeof O.getElementsByClassName!=="undefined"&&!P)return O.getElementsByClassName(D[1])};q=null}}})();var Za=G.compareDocumentPosition?function(q,D){return!!(q.compareDocumentPosition(D)&16)}:function(q,D){return q!==D&&(q.contains?q.contains(D):true)},xa=function(q){return(q=(q?q.ownerDocument||q:0).documentElement)?q.nodeName!=="HTML":false},lb=function(q,D){for(var O=
-[],P="",Z,Y=D.nodeType?[D]:D;Z=V.match.PSEUDO.exec(q);){P+=Z[0];q=q.replace(V.match.PSEUDO,"")}q=V.relative[q]?q+"*":q;Z=0;for(var va=Y.length;Z<va;Z++)N(q,Y[Z],O);return N.filter(P,O)};d.find=N;d.expr=N.selectors;d.expr[":"]=d.expr.filters;d.unique=N.uniqueSort;d.text=a;d.isXMLDoc=xa;d.contains=Za})();var o=/Until$/,r=/^(?:parents|prevUntil|prevAll)/,t=/,/;Ta=Array.prototype.slice;var w=function(a,c,e){if(d.isFunction(c))return d.grep(a,function(j,y){return!!c.call(j,y,j)===e});else if(c.nodeType)return d.grep(a,
-function(j){return j===c===e});else if(typeof c==="string"){var g=d.grep(a,function(j){return j.nodeType===1});if(Ja.test(c))return d.filter(c,g,!e);else c=d.filter(c,g)}return d.grep(a,function(j){return d.inArray(j,c)>=0===e})};d.fn.extend({find:function(a){for(var c=this.pushStack("","find",a),e=0,g=0,j=this.length;g<j;g++){e=c.length;d.find(a,this[g],c);if(g>0)for(var y=e;y<c.length;y++)for(var z=0;z<e;z++)if(c[z]===c[y]){c.splice(y--,1);break}}return c},has:function(a){var c=d(a);return this.filter(function(){for(var e=
-0,g=c.length;e<g;e++)if(d.contains(this,c[e]))return true})},not:function(a){return this.pushStack(w(this,a,false),"not",a)},filter:function(a){return this.pushStack(w(this,a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,c){if(d.isArray(a)){var e=[],g=this[0],j,y={},z;if(g&&a.length){j=0;for(var T=a.length;j<T;j++){z=a[j];y[z]||(y[z]=d.expr.match.POS.test(z)?d(z,c||this.context):z)}for(;g&&g.ownerDocument&&g!==c;){for(z in y){j=y[z];if(j.jquery?j.index(g)>
--1:d(g).is(j)){e.push({selector:z,elem:g});delete y[z]}}g=g.parentNode}}return e}var N=d.expr.match.POS.test(a)?d(a,c||this.context):null;return this.map(function(V,ha){for(;ha&&ha.ownerDocument&&ha!==c;){if(N?N.index(ha)>-1:d(ha).is(a))return ha;ha=ha.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,c){var e=typeof a==="string"?d(a,c||this.context):d.makeArray(a),
-g=d.merge(this.get(),e);return this.pushStack(!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,c,e){return d.dir(a,"parentNode",e)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},
-nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,c,e){return d.dir(a,"nextSibling",e)},prevUntil:function(a,c,e){return d.dir(a,"previousSibling",e)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,c){d.fn[a]=function(e,
-g){var j=d.map(this,c,e);o.test(a)||(g=e);if(g&&typeof g==="string")j=d.filter(g,j);j=this.length>1?d.unique(j):j;if((this.length>1||t.test(g))&&r.test(a))j=j.reverse();return this.pushStack(j,a,Ta.call(arguments).join(","))}});d.extend({filter:function(a,c,e){if(e)a=":not("+a+")";return d.find.matches(a,c)},dir:function(a,c,e){var g=[];for(a=a[c];a&&a.nodeType!==9&&(e===f||a.nodeType!==1||!d(a).is(e));){a.nodeType===1&&g.push(a);a=a[c]}return g},nth:function(a,c,e){c=c||1;for(var g=0;a;a=a[e])if(a.nodeType===
-1&&++g===c)break;return a},sibling:function(a,c){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&e.push(a);return e}});var v=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,F=/(<([\w:]+)[^>]*?)\/>/g,L=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,I=/<([\w:]+)/,Q=/<tbody/i,W=/<|&#?\w+;/,ga=/<script|<object|<embed|<option|<style/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=function(a,c,e){return L.test(e)?a:c+"></"+e+">"},ca={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>",
-"</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ca.optgroup=ca.option;ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead;ca.th=ca.td;if(!d.support.htmlSerialize)ca._default=[1,"div<div>","</div>"];d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(c){var e=d(this);e.text(a.call(this,
-c,e.text()))});if(typeof a!=="object"&&a!==f)return this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(e){d(this).wrapAll(a.call(this,e))});if(this[0]){var c=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(c){d(this).wrapInner(a.call(this,
-c))});return this.each(function(){var c=d(this),e=c.contents();e.length?e.wrapAll(a):c.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,
-this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);
-a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,c){for(var e=0,g;(g=this[e])!=null;e++)if(!a||d.filter(a,[g]).length){if(!c&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this},empty:function(){for(var a=0,c;(c=this[a])!=null;a++)for(c.nodeType===1&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(a){var c=this.map(function(){if(!d.support.noCloneEvent&&
-!d.isXMLDoc(this)){var e=this.outerHTML,g=this.ownerDocument;if(!e){e=g.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(v,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(S,"")],g)[0]}else return this.cloneNode(true)});if(a===true){sa(this,c);sa(this.find("*"),c.find("*"))}return c},html:function(a){if(a===f)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(v,""):null;else if(typeof a==="string"&&!ga.test(a)&&(d.support.leadingWhitespace||
-!S.test(a))&&!ca[(I.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(F,oa);try{for(var c=0,e=this.length;c<e;c++)if(this[c].nodeType===1){d.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=a}}catch(g){this.empty().append(a)}}else d.isFunction(a)?this.each(function(j){var y=d(this),z=y.html();y.empty().append(function(){return a.call(this,j,z)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(d.isFunction(a))return this.each(function(c){var e=
-d(this),g=e.html();e.replaceWith(a.call(this,c,g))});if(typeof a!=="string")a=d(a).detach();return this.each(function(){var c=this.nextSibling,e=this.parentNode;d(this).remove();c?d(c).before(a):d(e).append(a)})}else return this.pushStack(d(d.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,c,e){var g,j,y=a[0],z=[],T;if(!d.support.checkClone&&arguments.length===3&&typeof y==="string"&&na.test(y))return this.each(function(){d(this).domManip(a,
-c,e,true)});if(d.isFunction(y))return this.each(function(V){var ha=d(this);a[0]=y.call(this,V,c?ha.html():f);ha.domManip(a,c,e)});if(this[0]){g=y&&y.parentNode;g=d.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===this.length?{fragment:g}:H(a,this,z);T=g.fragment;if(j=T.childNodes.length===1?T=T.firstChild:T.firstChild){c=c&&d.nodeName(j,"tr");j=0;for(var N=this.length;j<N;j++)e.call(c?d.nodeName(this[j],"table")?this[j].getElementsByTagName("tbody")[0]||this[j].appendChild(this[j].ownerDocument.createElement("tbody")):
-this[j]:this[j],j>0||g.cacheable||this.length>1?T.cloneNode(true):T)}z.length&&d.each(z,p)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){d.fn[a]=function(e){var g=[];e=d(e);var j=this.length===1&&this[0].parentNode;if(j&&j.nodeType===11&&j.childNodes.length===1&&e.length===1){e[c](this[0]);return this}else{j=0;for(var y=e.length;j<y;j++){var z=(j>0?this.clone(true):this).get();d.fn[c].apply(d(e[j]),
-z);g=g.concat(z)}return this.pushStack(g,a,e.selector)}}});d.extend({clean:function(a,c,e,g){c=c||G;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||G;for(var j=[],y=0,z;(z=a[y])!=null;y++){if(typeof z==="number")z+="";if(z){if(typeof z==="string"&&!W.test(z))z=c.createTextNode(z);else if(typeof z==="string"){z=z.replace(F,oa);var T=(I.exec(z)||["",""])[1].toLowerCase(),N=ca[T]||ca._default,V=N[0],ha=c.createElement("div");for(ha.innerHTML=N[1]+z+N[2];V--;)ha=ha.lastChild;
-if(!d.support.tbody){V=Q.test(z);T=T==="table"&&!V?ha.firstChild&&ha.firstChild.childNodes:N[1]==="<table>"&&!V?ha.childNodes:[];for(N=T.length-1;N>=0;--N)d.nodeName(T[N],"tbody")&&!T[N].childNodes.length&&T[N].parentNode.removeChild(T[N])}!d.support.leadingWhitespace&&S.test(z)&&ha.insertBefore(c.createTextNode(S.exec(z)[0]),ha.firstChild);z=ha.childNodes}if(z.nodeType)j.push(z);else j=d.merge(j,z)}}if(e)for(y=0;j[y];y++)if(g&&d.nodeName(j[y],"script")&&(!j[y].type||j[y].type.toLowerCase()==="text/javascript"))g.push(j[y].parentNode?
-j[y].parentNode.removeChild(j[y]):j[y]);else{j[y].nodeType===1&&j.splice.apply(j,[y+1,0].concat(d.makeArray(j[y].getElementsByTagName("script"))));e.appendChild(j[y])}return j},cleanData:function(a){for(var c,e,g=d.cache,j=d.event.special,y=d.support.deleteExpando,z=0,T;(T=a[z])!=null;z++)if(e=T[d.expando]){c=g[e];if(c.events)for(var N in c.events)j[N]?d.event.remove(T,N):ma(T,N,c.handle);if(y)delete T[d.expando];else T.removeAttribute&&T.removeAttribute(d.expando);delete g[e]}}});var ea=/z-?index|font-?weight|opacity|zoom|line-?height/i,
-aa=/alpha\([^)]*\)/,ba=/opacity=([^)]*)/,ka=/float/i,Fa=/-([a-z])/ig,Qa=/([A-Z])/g,Sa=/^-?\d+(?:px)?$/i,sb=/^-?\d/,tb={position:"absolute",visibility:"hidden",display:"block"},ub=["Left","Right"],vb=["Top","Bottom"],wb=G.defaultView&&G.defaultView.getComputedStyle,rb=d.support.cssFloat?"cssFloat":"styleFloat",mb=function(a,c){return c.toUpperCase()};d.fn.css=function(a,c){return A(this,a,c,true,function(e,g,j){if(j===f)return d.curCSS(e,g);if(typeof j==="number"&&!ea.test(g))j+="px";d.style(e,g,j)})};
-d.extend({style:function(a,c,e){if(!a||a.nodeType===3||a.nodeType===8)return f;if((c==="width"||c==="height")&&parseFloat(e)<0)e=f;var g=a.style||a,j=e!==f;if(!d.support.opacity&&c==="opacity"){if(j){g.zoom=1;c=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=aa.test(a)?a.replace(aa,c):c}return g.filter&&g.filter.indexOf("opacity=")>=0?parseFloat(ba.exec(g.filter)[1])/100+"":""}if(ka.test(c))c=rb;c=c.replace(Fa,mb);if(j)g[c]=e;return g[c]},css:function(a,
-c,e,g){if(c==="width"||c==="height"){var j,y=c==="width"?ub:vb;e=function(){j=c==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(y,function(){g||(j-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")j+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else j-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?e():d.swap(a,tb,e);return Math.max(0,Math.round(j))}return d.curCSS(a,c,e)},curCSS:function(a,c,e){var g,j=a.style;if(!d.support.opacity&&c==="opacity"&&
-a.currentStyle){g=ba.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return g===""?"1":g}if(ka.test(c))c=rb;if(!e&&j&&j[c])g=j[c];else if(wb){if(ka.test(c))c="float";c=c.replace(Qa,"-$1").toLowerCase();j=a.ownerDocument.defaultView;if(!j)return null;if(a=j.getComputedStyle(a,null))g=a.getPropertyValue(c);if(c==="opacity"&&g==="")g="1"}else if(a.currentStyle){e=c.replace(Fa,mb);g=a.currentStyle[c]||a.currentStyle[e];if(!Sa.test(g)&&sb.test(g)){c=j.left;var y=a.runtimeStyle.left;a.runtimeStyle.left=
-a.currentStyle.left;j.left=e==="fontSize"?"1em":g||0;g=j.pixelLeft+"px";j.left=c;a.runtimeStyle.left=y}}return g},swap:function(a,c,e){var g={};for(var j in c){g[j]=a.style[j];a.style[j]=c[j]}e.call(a);for(j in c)a.style[j]=g[j]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(a){var c=a.offsetWidth,e=a.offsetHeight,g=a.nodeName.toLowerCase()==="tr";return c===0&&e===0&&!g?true:c>0&&e>0&&!g?false:d.curCSS(a,"display")==="none"};d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}}var xb=
-B(),yb=/<script(.|\s)*?\/script>/gi,zb=/select|textarea/i,Ab=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,hb=/=\?(&|$)/,nb=/\?/,Bb=/(\?|&)_=.*?(&|$)/,Cb=/^(\w+:)?\/\/([^\/?#]+)/,Db=/%20/g,Eb=d.fn.load;d.fn.extend({load:function(a,c,e){if(typeof a!=="string")return Eb.call(this,a);else if(!this.length)return this;var g=a.indexOf(" ");if(g>=0){var j=a.slice(g,a.length);a=a.slice(0,g)}g="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=
-d.param(c,d.ajaxSettings.traditional);g="POST"}var y=this;d.ajax({url:a,type:g,dataType:"html",data:c,complete:function(z,T){if(T==="success"||T==="notmodified")y.html(j?d("<div />").append(z.responseText.replace(yb,"")).find(j):z.responseText);e&&y.each(e,[z.responseText,T,z])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&
-(this.checked||zb.test(this.nodeName)||Ab.test(this.type))}).map(function(a,c){var e=d(this).val();return e==null?null:d.isArray(e)?d.map(e,function(g){return{name:c.name,value:g}}):{name:c.name,value:e}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,c){d.fn[c]=function(e){return this.bind(c,e)}});d.extend({get:function(a,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c=null}return d.ajax({type:"GET",url:a,data:c,success:e,dataType:g})},getScript:function(a,
-c){return d.get(a,null,c,"script")},getJSON:function(a,c,e){return d.get(a,c,e,"json")},post:function(a,c,e,g){if(d.isFunction(c)){g=g||e;e=c;c={}}return d.ajax({type:"POST",url:a,data:c,success:e,dataType:g})},ajaxSetup:function(a){d.extend(d.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}:
-function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function c(){j.success&&j.success.call(N,T,z,xa);j.global&&g("ajaxSuccess",[xa,j])}function e(){j.complete&&j.complete.call(N,xa,z);j.global&&g("ajaxComplete",[xa,j]);j.global&&!--d.active&&d.event.trigger("ajaxStop")}
-function g(Z,Y){(j.context?d(j.context):d.event).trigger(Z,Y)}var j=d.extend(true,{},d.ajaxSettings,a),y,z,T,N=a&&a.context||j,V=j.type.toUpperCase();if(j.data&&j.processData&&typeof j.data!=="string")j.data=d.param(j.data,j.traditional);if(j.dataType==="jsonp"){if(V==="GET")hb.test(j.url)||(j.url+=(nb.test(j.url)?"&":"?")+(j.jsonp||"callback")+"=?");else if(!j.data||!hb.test(j.data))j.data=(j.data?j.data+"&":"")+(j.jsonp||"callback")+"=?";j.dataType="json"}if(j.dataType==="json"&&(j.data&&hb.test(j.data)||
-hb.test(j.url))){y=j.jsonpCallback||"jsonp"+xb++;if(j.data)j.data=(j.data+"").replace(hb,"="+y+"$1");j.url=j.url.replace(hb,"="+y+"$1");j.dataType="script";b[y]=b[y]||function(Z){T=Z;c();e();b[y]=f;try{delete b[y]}catch(Y){}Ia&&Ia.removeChild(Oa)}}if(j.dataType==="script"&&j.cache===null)j.cache=false;if(j.cache===false&&V==="GET"){var ha=B(),Da=j.url.replace(Bb,"$1_="+ha+"$2");j.url=Da+(Da===j.url?(nb.test(j.url)?"&":"?")+"_="+ha:"")}if(j.data&&V==="GET")j.url+=(nb.test(j.url)?"&":"?")+j.data;j.global&&
-!d.active++&&d.event.trigger("ajaxStart");ha=(ha=Cb.exec(j.url))&&(ha[1]&&ha[1]!==location.protocol||ha[2]!==location.host);if(j.dataType==="script"&&V==="GET"&&ha){var Ia=G.getElementsByTagName("head")[0]||G.documentElement,Oa=G.createElement("script");Oa.src=j.url;if(j.scriptCharset)Oa.charset=j.scriptCharset;if(!y){var La=false;Oa.onload=Oa.onreadystatechange=function(){if(!La&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){La=true;c();e();Oa.onload=Oa.onreadystatechange=
-null;Ia&&Oa.parentNode&&Ia.removeChild(Oa)}}}Ia.insertBefore(Oa,Ia.firstChild);return f}var Za=false,xa=j.xhr();if(xa){j.username?xa.open(V,j.url,j.async,j.username,j.password):xa.open(V,j.url,j.async);try{if(j.data||a&&a.contentType)xa.setRequestHeader("Content-Type",j.contentType);if(j.ifModified){d.lastModified[j.url]&&xa.setRequestHeader("If-Modified-Since",d.lastModified[j.url]);d.etag[j.url]&&xa.setRequestHeader("If-None-Match",d.etag[j.url])}ha||xa.setRequestHeader("X-Requested-With","XMLHttpRequest");
-xa.setRequestHeader("Accept",j.dataType&&j.accepts[j.dataType]?j.accepts[j.dataType]+", */*":j.accepts._default)}catch(lb){}if(j.beforeSend&&j.beforeSend.call(N,xa,j)===false){j.global&&!--d.active&&d.event.trigger("ajaxStop");xa.abort();return false}j.global&&g("ajaxSend",[xa,j]);var q=xa.onreadystatechange=function(Z){if(!xa||xa.readyState===0||Z==="abort"){Za||e();Za=true;if(xa)xa.onreadystatechange=d.noop}else if(!Za&&xa&&(xa.readyState===4||Z==="timeout")){Za=true;xa.onreadystatechange=d.noop;
-z=Z==="timeout"?"timeout":!d.httpSuccess(xa)?"error":j.ifModified&&d.httpNotModified(xa,j.url)?"notmodified":"success";var Y;if(z==="success")try{T=d.httpData(xa,j.dataType,j)}catch(va){z="parsererror";Y=va}if(z==="success"||z==="notmodified")y||c();else d.handleError(j,xa,z,Y);e();Z==="timeout"&&xa.abort();if(j.async)xa=null}};try{var D=xa.abort;xa.abort=function(){xa&&D.call(xa);q("abort")}}catch(O){}j.async&&j.timeout>0&&setTimeout(function(){xa&&!Za&&q("timeout")},j.timeout);try{xa.send(V==="POST"||
-V==="PUT"||V==="DELETE"?j.data:null)}catch(P){d.handleError(j,xa,null,P);e()}j.async||q();return xa}},handleError:function(a,c,e,g){if(a.error)a.error.call(a.context||a,c,e,g);if(a.global)(a.context?d(a.context):d.event).trigger("ajaxError",[c,a,g])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(c){}return false},httpNotModified:function(a,c){var e=a.getResponseHeader("Last-Modified"),
-g=a.getResponseHeader("Etag");if(e)d.lastModified[c]=e;if(g)d.etag[c]=g;return a.status===304||a.status===0},httpData:function(a,c,e){var g=a.getResponseHeader("content-type")||"",j=c==="xml"||!c&&g.indexOf("xml")>=0;a=j?a.responseXML:a.responseText;j&&a.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(e&&e.dataFilter)a=e.dataFilter(a,c);if(typeof a==="string")if(c==="json"||!c&&g.indexOf("json")>=0)a=d.parseJSON(a);else if(c==="script"||!c&&g.indexOf("javascript")>=0)d.globalEval(a);
-return a},param:function(a,c){function e(z,T){if(d.isArray(T))d.each(T,function(N,V){c||/\[\]$/.test(z)?g(z,V):e(z+"["+(typeof V==="object"||d.isArray(V)?N:"")+"]",V)});else!c&&T!=null&&typeof T==="object"?d.each(T,function(N,V){e(z+"["+N+"]",V)}):g(z,T)}function g(z,T){T=d.isFunction(T)?T():T;j[j.length]=encodeURIComponent(z)+"="+encodeURIComponent(T)}var j=[];if(c===f)c=d.ajaxSettings.traditional;if(d.isArray(a)||a.jquery)d.each(a,function(){g(this.name,this.value)});else for(var y in a)e(y,a[y]);
-return j.join("&").replace(Db,"+")}});var ob={},Fb=/toggle|show|hide/,Gb=/^([+-]=)?([\d+-.]+)(.*)$/,kb,pb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,c){if(a||a===0)return this.animate(R("show",3),a,c);else{for(var e=0,g=this.length;e<g;e++){var j=d.data(this[e],"olddisplay");this[e].style.display=j||"";if(d.css(this[e],"display")==="none"){j=this[e].nodeName;var y;if(ob[j])y=
-ob[j];else{var z=d("<"+j+" />").appendTo("body");y=z.css("display");if(y==="none")y="block";z.remove();ob[j]=y}d.data(this[e],"olddisplay",y)}}e=0;for(g=this.length;e<g;e++)this[e].style.display=d.data(this[e],"olddisplay")||"";return this}},hide:function(a,c){if(a||a===0)return this.animate(R("hide",3),a,c);else{for(var e=0,g=this.length;e<g;e++){var j=d.data(this[e],"olddisplay");!j&&j!=="none"&&d.data(this[e],"olddisplay",d.css(this[e],"display"))}e=0;for(g=this.length;e<g;e++)this[e].style.display=
-"none";return this}},_toggle:d.fn.toggle,toggle:function(a,c){var e=typeof a==="boolean";if(d.isFunction(a)&&d.isFunction(c))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var g=e?a:d(this).is(":hidden");d(this)[g?"show":"hide"]()}):this.animate(R("toggle",3),a,c);return this},fadeTo:function(a,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},a,e)},animate:function(a,c,e,g){var j=d.speed(c,e,g);if(d.isEmptyObject(a))return this.each(j.complete);
-return this[j.queue===false?"each":"queue"](function(){var y=d.extend({},j),z,T=this.nodeType===1&&d(this).is(":hidden"),N=this;for(z in a){var V=z.replace(Fa,mb);if(z!==V){a[V]=a[z];delete a[z];z=V}if(a[z]==="hide"&&T||a[z]==="show"&&!T)return y.complete.call(this);if((z==="height"||z==="width")&&this.style){y.display=d.css(this,"display");y.overflow=this.style.overflow}if(d.isArray(a[z])){(y.specialEasing=y.specialEasing||{})[z]=a[z][1];a[z]=a[z][0]}}if(y.overflow!=null)this.style.overflow="hidden";
-y.curAnim=d.extend({},a);d.each(a,function(ha,Da){var Ia=new d.fx(N,y,ha);if(Fb.test(Da))Ia[Da==="toggle"?T?"show":"hide":Da](a);else{var Oa=Gb.exec(Da),La=Ia.cur(true)||0;if(Oa){var Za=parseFloat(Oa[2]),xa=Oa[3]||"px";if(xa!=="px"){N.style[ha]=(Za||1)+xa;La=(Za||1)/Ia.cur(true)*La;N.style[ha]=La+xa}if(Oa[1])Za=(Oa[1]==="-="?-1:1)*Za+La;Ia.custom(La,Za,xa)}else Ia.custom(La,Da,"")}});return true})},stop:function(a,c){var e=d.timers;a&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem===
-this){c&&e[g](true);e.splice(g,1)}});c||this.dequeue();return this}});d.each({slideDown:R("show",1),slideUp:R("hide",1),slideToggle:R("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,c){d.fn[a]=function(e,g){return this.animate(c,e,g)}});d.extend({speed:function(a,c,e){var g=a&&typeof a==="object"?a:{complete:e||!e&&c||d.isFunction(a)&&a,duration:a,easing:e&&c||c&&!d.isFunction(c)&&c};g.duration=d.fx.off?0:typeof g.duration==="number"?g.duration:d.fx.speeds[g.duration]||d.fx.speeds._default;
-g.old=g.complete;g.complete=function(){g.queue!==false&&d(this).dequeue();d.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,c,e,g){return e+g*a},swing:function(a,c,e,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(a,c,e){this.options=c;this.elem=a;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||
-this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(d.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(d.curCSS(this.elem,this.prop))||0},custom:function(a,c,e){function g(y){return j.step(y)}this.startTime=B();this.start=a;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=this;g.elem=this.elem;
-if(g()&&d.timers.push(g)&&!kb)kb=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var c=B(),e=true;if(a||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();
-this.options.curAnim[this.prop]=true;for(var g in this.options.curAnim)if(this.options.curAnim[g]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=d.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(d.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var j in this.options.curAnim)d.style(this.elem,j,this.options.orig[j]);
-this.options.complete.call(this.elem)}return false}else{j=c-this.startTime;this.state=j/this.options.duration;a=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,j,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var a=d.timers,c=0;c<a.length;c++)a[c]()||a.splice(c--,1);a.length||d.fx.stop()},stop:function(){clearInterval(kb);
-kb=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(c){return a===c.elem}).length};d.fn.offset="getBoundingClientRect"in G.documentElement?function(a){var c=this[0];if(a)return this.each(function(j){d.offset.setOffset(this,
-a,j)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);var e=c.getBoundingClientRect(),g=c.ownerDocument;c=g.body;g=g.documentElement;return{top:e.top+(self.pageYOffset||d.support.boxModel&&g.scrollTop||c.scrollTop)-(g.clientTop||c.clientTop||0),left:e.left+(self.pageXOffset||d.support.boxModel&&g.scrollLeft||c.scrollLeft)-(g.clientLeft||c.clientLeft||0)}}:function(a){var c=this[0];if(a)return this.each(function(ha){d.offset.setOffset(this,a,ha)});if(!c||
-!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);d.offset.initialize();var e=c.offsetParent,g=c,j=c.ownerDocument,y,z=j.documentElement,T=j.body;g=(j=j.defaultView)?j.getComputedStyle(c,null):c.currentStyle;for(var N=c.offsetTop,V=c.offsetLeft;(c=c.parentNode)&&c!==T&&c!==z;){if(d.offset.supportsFixedPosition&&g.position==="fixed")break;y=j?j.getComputedStyle(c,null):c.currentStyle;N-=c.scrollTop;V-=c.scrollLeft;if(c===e){N+=c.offsetTop;V+=c.offsetLeft;if(d.offset.doesNotAddBorder&&
-!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.nodeName))){N+=parseFloat(y.borderTopWidth)||0;V+=parseFloat(y.borderLeftWidth)||0}g=e;e=c.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&y.overflow!=="visible"){N+=parseFloat(y.borderTopWidth)||0;V+=parseFloat(y.borderLeftWidth)||0}g=y}if(g.position==="relative"||g.position==="static"){N+=T.offsetTop;V+=T.offsetLeft}if(d.offset.supportsFixedPosition&&g.position==="fixed"){N+=Math.max(z.scrollTop,T.scrollTop);V+=Math.max(z.scrollLeft,
-T.scrollLeft)}return{top:N,left:V}};d.offset={initialize:function(){var a=G.body,c=G.createElement("div"),e,g,j,y=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
-a.insertBefore(c,a.firstChild);e=c.firstChild;g=e.firstChild;j=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==y;a.removeChild(c);
-d.offset.initialize=d.noop},bodyOffset:function(a){var c=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:c,left:e}},setOffset:function(a,c,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),j=g.offset(),y=parseInt(d.curCSS(a,"top",true),10)||0,z=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(c))c=c.call(a,
-e,j);e={top:c.top-j.top+y,left:c.left-j.left+z};"using"in c?c.using.call(a,e):g.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],c=this.offsetParent(),e=this.offset(),g=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();e.top-=parseFloat(d.curCSS(a,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(a,"marginLeft",true))||0;g.top+=parseFloat(d.curCSS(c[0],"borderTopWidth",true))||0;g.left+=parseFloat(d.curCSS(c[0],"borderLeftWidth",true))||0;return{top:e.top-
-g.top,left:e.left-g.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||G.body;a&&!/^body|html$/i.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(g){var j=this[0],y;if(!j)return null;if(g!==f)return this.each(function(){if(y=$(this))y.scrollTo(!a?g:d(y).scrollLeft(),a?g:d(y).scrollTop());else this[e]=g});else return(y=$(j))?"pageXOffset"in y?y[a?"pageYOffset":"pageXOffset"]:
-d.support.boxModel&&y.document.documentElement[e]||y.document.body[e]:j[e]}});d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],e,false,"padding"):null};d.fn["outer"+c]=function(g){return this[0]?d.css(this[0],e,false,g?"margin":"border"):null};d.fn[e]=function(g){var j=this[0];if(!j)return g==null?null:this;if(d.isFunction(g))return this.each(function(y){var z=d(this);z[e](g.call(this,y,z[e]()))});return"scrollTo"in j&&j.document?
-j.document.compatMode==="CSS1Compat"&&j.document.documentElement["client"+c]||j.document.body["client"+c]:j.nodeType===9?Math.max(j.documentElement["client"+c],j.body["scroll"+c],j.documentElement["scroll"+c],j.body["offset"+c],j.documentElement["offset"+c]):g===f?d.css(j,e):this.css(e,typeof g==="string"?g:g+"px")}});b.jQuery=b.$=d})(window);document.createElement("canvas").getContext||function(){function b(){return this.context_||(this.context_=new $(this))}function f(n,u){var E=Pa.call(arguments,2);return function(){return n.apply(u,E.concat(Pa.call(arguments)))}}function k(n){return String(n).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function p(n){n.namespaces.g_vml_||n.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");n.namespaces.g_o_||n.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");
-if(!n.styleSheets.ex_canvas_){n=n.createStyleSheet();n.owningElement.id="ex_canvas_";n.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function A(n){var u=n.srcElement;switch(n.propertyName){case "width":u.getContext().clearRect();u.style.width=u.attributes.width.nodeValue+"px";u.firstChild.style.width=u.clientWidth+"px";break;case "height":u.getContext().clearRect();u.style.height=u.attributes.height.nodeValue+"px";u.firstChild.style.height=u.clientHeight+
-"px";break}}function B(n){n=n.srcElement;if(n.firstChild){n.firstChild.style.width=n.clientWidth+"px";n.firstChild.style.height=n.clientHeight+"px"}}function M(){return[[1,0,0],[0,1,0],[0,0,1]]}function U(n,u){for(var E=M(),K=0;K<3;K++)for(var C=0;C<3;C++){for(var ia=0,X=0;X<3;X++)ia+=n[K][X]*u[X][C];E[K][C]=ia}return E}function J(n,u){u.fillStyle=n.fillStyle;u.lineCap=n.lineCap;u.lineJoin=n.lineJoin;u.lineWidth=n.lineWidth;u.miterLimit=n.miterLimit;u.shadowBlur=n.shadowBlur;u.shadowColor=n.shadowColor;
-u.shadowOffsetX=n.shadowOffsetX;u.shadowOffsetY=n.shadowOffsetY;u.strokeStyle=n.strokeStyle;u.globalAlpha=n.globalAlpha;u.font=n.font;u.textAlign=n.textAlign;u.textBaseline=n.textBaseline;u.arcScaleX_=n.arcScaleX_;u.arcScaleY_=n.arcScaleY_;u.lineScale_=n.lineScale_}function ja(n){var u=n.indexOf("(",3),E=n.indexOf(")",u+1);u=n.substring(u+1,E).split(",");if(u.length==4&&n.substr(3,1)=="a")alpha=Number(u[3]);else u[3]=1;return u}function wa(n,u,E){return Math.min(E,Math.max(u,n))}function sa(n,u,E){E<
-0&&E++;E>1&&E--;return 6*E<1?n+(u-n)*6*E:2*E<1?u:3*E<2?n+(u-n)*(2/3-E)*6:n}function H(n){var u=1;n=String(n);if(n.charAt(0)=="#")n=n;else if(/^rgb/.test(n)){u=ja(n);n="#";for(var E,K=0;K<3;K++){E=u[K].indexOf("%")!=-1?Math.floor(parseFloat(u[K])/100*255):Number(u[K]);n+=Ta[wa(E,0,255)]}u=u[3]}else if(/^hsl/.test(n)){n=u=ja(n);h=parseFloat(n[0])/360%360;h<0&&h++;s=wa(parseFloat(n[1])/100,0,1);l=wa(parseFloat(n[2])/100,0,1);if(s==0)n=E=K=l;else{K=l<0.5?l*(1+s):l+s-l*s;var C=2*l-K;n=sa(C,K,h+1/3);E=
-sa(C,K,h);K=sa(C,K,h-1/3)}n="#"+Ta[Math.floor(n*255)]+Ta[Math.floor(E*255)]+Ta[Math.floor(K*255)];u=u[3]}else n=ab[n]||n;return{color:n,alpha:u}}function R(n){switch(n){case "butt":return"flat";case "round":return"round";case "square":default:return"square"}}function $(n){this.m_=M();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=Ba*1;this.globalAlpha=1;this.font="10px sans-serif";
-this.textAlign="left";this.textBaseline="alphabetic";this.canvas=n;var u=n.ownerDocument.createElement("div");u.style.width=n.clientWidth+"px";u.style.height=n.clientHeight+"px";u.style.overflow="hidden";u.style.position="absolute";n.appendChild(u);this.element_=u;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function d(n,u,E,K){n.currentPath_.push({type:"bezierCurveTo",cp1x:u.x,cp1y:u.y,cp2x:E.x,cp2y:E.y,x:K.x,y:K.y});n.currentX_=K.x;n.currentY_=K.y}function da(n,u){var E=H(n.strokeStyle),K=
-E.color;E=E.alpha*n.globalAlpha;var C=n.lineScale_*n.lineWidth;if(C<1)E*=C;u.push("<g_vml_:stroke",' opacity="',E,'"',' joinstyle="',n.lineJoin,'"',' miterlimit="',n.miterLimit,'"',' endcap="',R(n.lineCap),'"',' weight="',C,'px"',' color="',K,'" />')}function ya(n,u,E,K){var C=n.fillStyle,ia=n.arcScaleX_,X=n.arcScaleY_,qa=K.x-E.x,fa=K.y-E.y;if(C instanceof pa){var ma=0;K={x:0,y:0};var ra=0,Ca=1;if(C.type_=="gradient"){ma=C.x1_/ia;E=C.y1_/X;var za=n.getCoords_(C.x0_/ia,C.y0_/X);ma=n.getCoords_(ma,
-E);ma=Math.atan2(ma.x-za.x,ma.y-za.y)*180/Math.PI;if(ma<0)ma+=360;if(ma<1.0E-6)ma=0}else{za=n.getCoords_(C.x0_,C.y0_);K={x:(za.x-E.x)/qa,y:(za.y-E.y)/fa};qa/=ia*Ba;fa/=X*Ba;Ca=Wa.max(qa,fa);ra=2*C.r0_/Ca;Ca=2*C.r1_/Ca-ra}ia=C.colors_;ia.sort(function(Ra,db){return Ra.offset-db.offset});X=ia.length;za=ia[0].color;E=ia[X-1].color;qa=ia[0].alpha*n.globalAlpha;n=ia[X-1].alpha*n.globalAlpha;fa=[];for(var Ka=0;Ka<X;Ka++){var Ga=ia[Ka];fa.push(Ga.offset*Ca+ra+" "+Ga.color)}u.push('<g_vml_:fill type="',C.type_,
-'"',' method="none" focus="100%"',' color="',za,'"',' color2="',E,'"',' colors="',fa.join(","),'"',' opacity="',n,'"',' g_o_:opacity2="',qa,'"',' angle="',ma,'"',' focusposition="',K.x,",",K.y,'" />')}else if(C instanceof ua)qa&&fa&&u.push("<g_vml_:fill",' position="',-E.x/qa*ia*ia,",",-E.y/fa*X*X,'"',' type="tile"',' src="',C.src_,'" />');else{C=H(n.fillStyle);u.push('<g_vml_:fill color="',C.color,'" opacity="',C.alpha*n.globalAlpha,'" />')}}function G(n,u,E){if(isFinite(u[0][0])&&isFinite(u[0][1])&&
-isFinite(u[1][0])&&isFinite(u[1][1])&&isFinite(u[2][0])&&isFinite(u[2][1])){n.m_=u;if(E)n.lineScale_=Ya(Xa(u[0][0]*u[1][1]-u[0][1]*u[1][0]))}}function pa(n){this.type_=n;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function ua(n,u){if(!n||n.nodeType!=1||n.tagName!="IMG")throw new Ja("TYPE_MISMATCH_ERR");if(n.readyState!="complete")throw new Ja("INVALID_STATE_ERR");switch(u){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=
-u;break;default:throw new Ja("SYNTAX_ERR");}this.src_=n.src;this.width_=n.width;this.height_=n.height}function Ja(n){this.code=this[n];this.message=n+": DOM Exception "+this.code}var Wa=Math,Ea=Wa.round,$a=Wa.sin,Ua=Wa.cos,Xa=Wa.abs,Ya=Wa.sqrt,Ba=10,Na=Ba/2,Pa=Array.prototype.slice;p(document);var Va={init:function(n){if(/MSIE/.test(navigator.userAgent)&&!window.opera){n=n||document;n.createElement("canvas");n.attachEvent("onreadystatechange",f(this.init_,this,n))}},init_:function(n){n=n.getElementsByTagName("canvas");
-for(var u=0;u<n.length;u++)this.initElement(n[u])},initElement:function(n){if(!n.getContext){n.getContext=b;p(n.ownerDocument);n.innerHTML="";n.attachEvent("onpropertychange",A);n.attachEvent("onresize",B);var u=n.attributes;if(u.width&&u.width.specified)n.style.width=u.width.nodeValue+"px";else n.width=n.clientWidth;if(u.height&&u.height.specified)n.style.height=u.height.nodeValue+"px";else n.height=n.clientHeight}return n}};Va.init();for(var Ta=[],la=0;la<16;la++)for(var Ma=0;Ma<16;Ma++)Ta[la*16+
-Ma]=la.toString(16)+Ma.toString(16);var ab={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",
-darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",
-gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",
-lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",
-orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",
-steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},bb={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"},Aa={};la=$.prototype;la.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};la.beginPath=function(){this.currentPath_=[]};la.moveTo=function(n,u){var E=this.getCoords_(n,u);
-this.currentPath_.push({type:"moveTo",x:E.x,y:E.y});this.currentX_=E.x;this.currentY_=E.y};la.lineTo=function(n,u){var E=this.getCoords_(n,u);this.currentPath_.push({type:"lineTo",x:E.x,y:E.y});this.currentX_=E.x;this.currentY_=E.y};la.bezierCurveTo=function(n,u,E,K,C,ia){C=this.getCoords_(C,ia);n=this.getCoords_(n,u);E=this.getCoords_(E,K);d(this,n,E,C)};la.quadraticCurveTo=function(n,u,E,K){n=this.getCoords_(n,u);E=this.getCoords_(E,K);K={x:this.currentX_+2/3*(n.x-this.currentX_),y:this.currentY_+
-2/3*(n.y-this.currentY_)};d(this,K,{x:K.x+(E.x-this.currentX_)/3,y:K.y+(E.y-this.currentY_)/3},E)};la.arc=function(n,u,E,K,C,ia){E*=Ba;var X=ia?"at":"wa",qa=n+Ua(K)*E-Na,fa=u+$a(K)*E-Na;K=n+Ua(C)*E-Na;C=u+$a(C)*E-Na;if(qa==K&&!ia)qa+=0.125;n=this.getCoords_(n,u);qa=this.getCoords_(qa,fa);K=this.getCoords_(K,C);this.currentPath_.push({type:X,x:n.x,y:n.y,radius:E,xStart:qa.x,yStart:qa.y,xEnd:K.x,yEnd:K.y})};la.rect=function(n,u,E,K){this.moveTo(n,u);this.lineTo(n+E,u);this.lineTo(n+E,u+K);this.lineTo(n,
-u+K);this.closePath()};la.strokeRect=function(n,u,E,K){var C=this.currentPath_;this.beginPath();this.moveTo(n,u);this.lineTo(n+E,u);this.lineTo(n+E,u+K);this.lineTo(n,u+K);this.closePath();this.stroke();this.currentPath_=C};la.fillRect=function(n,u,E,K){var C=this.currentPath_;this.beginPath();this.moveTo(n,u);this.lineTo(n+E,u);this.lineTo(n+E,u+K);this.lineTo(n,u+K);this.closePath();this.fill();this.currentPath_=C};la.createLinearGradient=function(n,u,E,K){var C=new pa("gradient");C.x0_=n;C.y0_=
-u;C.x1_=E;C.y1_=K;return C};la.createRadialGradient=function(n,u,E,K,C,ia){var X=new pa("gradientradial");X.x0_=n;X.y0_=u;X.r0_=E;X.x1_=K;X.y1_=C;X.r1_=ia;return X};la.drawImage=function(n){var u,E,K,C,ia,X,qa,fa;K=n.runtimeStyle.width;C=n.runtimeStyle.height;n.runtimeStyle.width="auto";n.runtimeStyle.height="auto";var ma=n.width,ra=n.height;n.runtimeStyle.width=K;n.runtimeStyle.height=C;if(arguments.length==3){u=arguments[1];E=arguments[2];ia=X=0;qa=K=ma;fa=C=ra}else if(arguments.length==5){u=arguments[1];
-E=arguments[2];K=arguments[3];C=arguments[4];ia=X=0;qa=ma;fa=ra}else if(arguments.length==9){ia=arguments[1];X=arguments[2];qa=arguments[3];fa=arguments[4];u=arguments[5];E=arguments[6];K=arguments[7];C=arguments[8]}else throw Error("Invalid number of arguments");var Ca=this.getCoords_(u,E),za=[];za.push(" <g_vml_:group",' coordsize="',Ba*10,",",Ba*10,'"',' coordorigin="0,0"',' style="width:',10,"px;height:",10,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var Ka=
-[];Ka.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",Ea(Ca.x/Ba),",","Dy=",Ea(Ca.y/Ba),"");var Ga=this.getCoords_(u+K,E),Ra=this.getCoords_(u,E+C);u=this.getCoords_(u+K,E+C);Ca.x=Wa.max(Ca.x,Ga.x,Ra.x,u.x);Ca.y=Wa.max(Ca.y,Ga.y,Ra.y,u.y);za.push("padding:0 ",Ea(Ca.x/Ba),"px ",Ea(Ca.y/Ba),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",Ka.join(""),", sizingmethod='clip');")}else za.push("top:",Ea(Ca.y/Ba),"px;left:",Ea(Ca.x/Ba),
-"px;");za.push(' ">','<g_vml_:image src="',n.src,'"',' style="width:',Ba*K,"px;"," height:",Ba*C,'px"',' cropleft="',ia/ma,'"',' croptop="',X/ra,'"',' cropright="',(ma-ia-qa)/ma,'"',' cropbottom="',(ra-X-fa)/ra,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",za.join(""))};la.stroke=function(n){for(var u={x:null,y:null},E={x:null,y:null},K=0;K<this.currentPath_.length;K+=5E3){var C=[];C.push("<g_vml_:shape",' filled="',!!n,'"',' style="position:absolute;width:',10,"px;height:",
-10,'px;"',' coordorigin="0,0"',' coordsize="',Ba*10,",",Ba*10,'"',' stroked="',!n,'"',' path="');for(var ia=K;ia<Math.min(K+5E3,this.currentPath_.length);ia++){ia%5E3==0&&ia>0&&C.push(" m ",Ea(this.currentPath_[ia-1].x),",",Ea(this.currentPath_[ia-1].y));var X=this.currentPath_[ia];switch(X.type){case "moveTo":C.push(" m ",Ea(X.x),",",Ea(X.y));break;case "lineTo":C.push(" l ",Ea(X.x),",",Ea(X.y));break;case "close":C.push(" x ");X=null;break;case "bezierCurveTo":C.push(" c ",Ea(X.cp1x),",",Ea(X.cp1y),
-",",Ea(X.cp2x),",",Ea(X.cp2y),",",Ea(X.x),",",Ea(X.y));break;case "at":case "wa":C.push(" ",X.type," ",Ea(X.x-this.arcScaleX_*X.radius),",",Ea(X.y-this.arcScaleY_*X.radius)," ",Ea(X.x+this.arcScaleX_*X.radius),",",Ea(X.y+this.arcScaleY_*X.radius)," ",Ea(X.xStart),",",Ea(X.yStart)," ",Ea(X.xEnd),",",Ea(X.yEnd));break}if(X){if(u.x==null||X.x<u.x)u.x=X.x;if(E.x==null||X.x>E.x)E.x=X.x;if(u.y==null||X.y<u.y)u.y=X.y;if(E.y==null||X.y>E.y)E.y=X.y}}C.push(' ">');n?ya(this,C,u,E):da(this,C);C.push("</g_vml_:shape>");
-this.element_.insertAdjacentHTML("beforeEnd",C.join(""))}};la.fill=function(){this.stroke(true)};la.closePath=function(){this.currentPath_.push({type:"close"})};la.getCoords_=function(n,u){var E=this.m_;return{x:Ba*(n*E[0][0]+u*E[1][0]+E[2][0])-Na,y:Ba*(n*E[0][1]+u*E[1][1]+E[2][1])-Na}};la.save=function(){var n={};J(this,n);this.aStack_.push(n);this.mStack_.push(this.m_);this.m_=U(M(),this.m_)};la.restore=function(){if(this.aStack_.length){J(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};la.translate=
-function(n,u){G(this,U([[1,0,0],[0,1,0],[n,u,1]],this.m_),false)};la.rotate=function(n){var u=Ua(n);n=$a(n);G(this,U([[u,n,0],[-n,u,0],[0,0,1]],this.m_),false)};la.scale=function(n,u){this.arcScaleX_*=n;this.arcScaleY_*=u;G(this,U([[n,0,0],[0,u,0],[0,0,1]],this.m_),true)};la.transform=function(n,u,E,K,C,ia){G(this,U([[n,u,0],[E,K,0],[C,ia,1]],this.m_),true)};la.setTransform=function(n,u,E,K,C,ia){G(this,[[n,u,0],[E,K,0],[C,ia,1]],true)};la.drawText_=function(n,u,E,K,C){var ia=this.m_;K=0;var X=1E3,
-qa={x:0,y:0},fa=[],ma;ma=this.font;if(Aa[ma])ma=Aa[ma];else{var ra=document.createElement("div").style;try{ra.font=ma}catch(Ca){}ma=Aa[ma]={style:ra.fontStyle||bb.style,variant:ra.fontVariant||bb.variant,weight:ra.fontWeight||bb.weight,size:ra.fontSize||bb.size,family:ra.fontFamily||bb.family}}ra=ma;var za=this.element_;ma={};for(var Ka in ra)ma[Ka]=ra[Ka];Ka=parseFloat(za.currentStyle.fontSize);za=parseFloat(ra.size);ma.size=typeof ra.size=="number"?ra.size:ra.size.indexOf("px")!=-1?za:ra.size.indexOf("em")!=
--1?Ka*za:ra.size.indexOf("%")!=-1?Ka/100*za:ra.size.indexOf("pt")!=-1?za/0.75:Ka;ma.size*=0.981;Ka=ma.style+" "+ma.variant+" "+ma.weight+" "+ma.size+"px "+ma.family;za=this.element_.currentStyle;ra=this.textAlign.toLowerCase();switch(ra){case "left":case "center":case "right":break;case "end":ra=za.direction=="ltr"?"right":"left";break;case "start":ra=za.direction=="rtl"?"right":"left";break;default:ra="left"}switch(this.textBaseline){case "hanging":case "top":qa.y=ma.size/1.75;break;case "middle":break;
-default:case null:case "alphabetic":case "ideographic":case "bottom":qa.y=-ma.size/2.25;break}switch(ra){case "right":K=1E3;X=0.05;break;case "center":K=X=500;break}u=this.getCoords_(u+qa.x,E+qa.y);fa.push('<g_vml_:line from="',-K,' 0" to="',X,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!C,'" stroked="',!!C,'" style="position:absolute;width:1px;height:1px;">');C?da(this,fa):ya(this,fa,{x:-K,y:0},{x:X,y:ma.size});C=ia[0][0].toFixed(3)+","+ia[1][0].toFixed(3)+","+ia[0][1].toFixed(3)+
-","+ia[1][1].toFixed(3)+",0,0";u=Ea(u.x/Ba)+","+Ea(u.y/Ba);fa.push('<g_vml_:skew on="t" matrix="',C,'" ',' offset="',u,'" origin="',K,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',k(n),'" style="v-text-align:',ra,";font:",k(Ka),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",fa.join(""))};la.fillText=function(n,u,E,K){this.drawText_(n,u,E,K,false)};la.strokeText=function(n,u,E,K){this.drawText_(n,u,E,K,true)};la.measureText=function(n){if(!this.textMeasureEl_){this.element_.insertAdjacentHTML("beforeEnd",
-'<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>');this.textMeasureEl_=this.element_.lastChild}var u=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(u.createTextNode(n));return{width:this.textMeasureEl_.offsetWidth}};la.clip=function(){};la.arcTo=function(){};la.createPattern=function(n,u){return new ua(n,u)};pa.prototype.addColorStop=function(n,u){u=H(u);
-this.colors_.push({offset:n,color:u.color,alpha:u.alpha})};la=Ja.prototype=Error();la.INDEX_SIZE_ERR=1;la.DOMSTRING_SIZE_ERR=2;la.HIERARCHY_REQUEST_ERR=3;la.WRONG_DOCUMENT_ERR=4;la.INVALID_CHARACTER_ERR=5;la.NO_DATA_ALLOWED_ERR=6;la.NO_MODIFICATION_ALLOWED_ERR=7;la.NOT_FOUND_ERR=8;la.NOT_SUPPORTED_ERR=9;la.INUSE_ATTRIBUTE_ERR=10;la.INVALID_STATE_ERR=11;la.SYNTAX_ERR=12;la.INVALID_MODIFICATION_ERR=13;la.NAMESPACE_ERR=14;la.INVALID_ACCESS_ERR=15;la.VALIDATION_ERR=16;la.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=
-Va;CanvasRenderingContext2D=$;CanvasGradient=pa;CanvasPattern=ua;DOMException=Ja}();(function(){jQuery.color={};jQuery.color.make=function(f,k,p,A){var B={};B.r=f||0;B.g=k||0;B.b=p||0;B.a=A!=null?A:1;B.add=function(M,U){for(var J=0;J<M.length;++J)B[M.charAt(J)]+=U;return B.normalize()};B.scale=function(M,U){for(var J=0;J<M.length;++J)B[M.charAt(J)]*=U;return B.normalize()};B.toString=function(){return B.a>=1?"rgb("+[B.r,B.g,B.b].join(",")+")":"rgba("+[B.r,B.g,B.b,B.a].join(",")+")"};B.normalize=function(){function M(U,J,ja){return J<U?U:J>ja?ja:J}B.r=M(0,parseInt(B.r),255);B.g=M(0,
-parseInt(B.g),255);B.b=M(0,parseInt(B.b),255);B.a=M(0,B.a,1);return B};B.clone=function(){return jQuery.color.make(B.r,B.b,B.g,B.a)};return B.normalize()};jQuery.color.extract=function(f,k){var p;do{p=f.css(k).toLowerCase();if(p!=""&&p!="transparent")break;f=f.parent()}while(!jQuery.nodeName(f.get(0),"body"));if(p=="rgba(0, 0, 0, 0)")p="transparent";return jQuery.color.parse(p)};jQuery.color.parse=function(f){var k,p=jQuery.color.make;if(k=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f))return p(parseInt(k[1],
-10),parseInt(k[2],10),parseInt(k[3],10));if(k=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(f))return p(parseInt(k[1],10),parseInt(k[2],10),parseInt(k[3],10),parseFloat(k[4]));if(k=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f))return p(parseFloat(k[1])*2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55);if(k=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(f))return p(parseFloat(k[1])*
-2.55,parseFloat(k[2])*2.55,parseFloat(k[3])*2.55,parseFloat(k[4]));if(k=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f))return p(parseInt(k[1],16),parseInt(k[2],16),parseInt(k[3],16));if(k=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f))return p(parseInt(k[1]+k[1],16),parseInt(k[2]+k[2],16),parseInt(k[3]+k[3],16));f=jQuery.trim(f).toLowerCase();if(f=="transparent")return p(255,255,255,0);else{k=b[f];return p(k[0],k[1],k[2])}};var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,
-220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],
-lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})();
-(function(b){function f(p,A,B,M){function U(o,r){r=[Ga].concat(r);for(var t=0;t<o.length;++t)o[t].apply(this,r)}function J(o){for(var r=[],t=0;t<o.length;++t){var w=b.extend(true,{},n.series);if(o[t].data){w.data=o[t].data;delete o[t].data;b.extend(true,w,o[t]);o[t].data=w.data}else w.data=o[t];r.push(w)}Aa=r;r=Aa.length;t=[];w=[];for(o=0;o<Aa.length;++o){var v=Aa[o].color;if(v!=null){--r;typeof v=="number"?w.push(v):t.push(b.color.parse(Aa[o].color))}}for(o=0;o<w.length;++o)r=Math.max(r,w[o]+1);
-t=[];for(o=w=0;t.length<r;){v=n.colors.length==o?b.color.make(100,100,100):b.color.parse(n.colors[o]);v.scale("rgb",1+(w%2==1?-1:1)*Math.ceil(w/2)*0.2);t.push(v);++o;if(o>=n.colors.length){o=0;++w}}for(o=r=0;o<Aa.length;++o){w=Aa[o];if(w.color==null){w.color=t[r].toString();++r}else if(typeof w.color=="number")w.color=t[w.color].toString();if(w.lines.show==null){var S;v=true;for(S in w)if(w[S]&&w[S].show){v=false;break}if(v)w.lines.show=true}w.xaxis=H(X,ja(w,"x"));w.yaxis=H(qa,ja(w,"y"))}R()}function ja(o,
-r){var t=o[r+"axis"];if(typeof t=="object")t=t.n;if(typeof t!="number")t=1;return t}function wa(o){var r={},t,w;for(t=0;t<X.length;++t)if((w=X[t])&&w.used)r["x"+w.n]=w.c2p(o.left);for(t=0;t<qa.length;++t)if((w=qa[t])&&w.used)r["y"+w.n]=w.c2p(o.top);if(r.x1!==undefined)r.x=r.x1;if(r.y1!==undefined)r.y=r.y1;return r}function sa(){var o=[],r,t;for(r=0;r<X.length;++r)(t=X[r])&&t.used&&o.push(t);for(r=0;r<qa.length;++r)(t=qa[r])&&t.used&&o.push(t);return o}function H(o,r){o[r-1]||(o[r-1]={n:r,direction:o==
-X?"x":"y",options:b.extend(true,{},o==X?n.xaxis:n.yaxis)});return o[r-1]}function R(){function o(ba){if(ba){ba.datamin=t;ba.datamax=w;ba.used=false}}function r(ba,ka,Fa){if(ka<ba.datamin)ba.datamin=ka;if(Fa>ba.datamax)ba.datamax=Fa}var t=Number.POSITIVE_INFINITY,w=Number.NEGATIVE_INFINITY,v,S,F,L,I,Q,W,ga,na,oa;for(v=0;v<X.length;++v)o(X[v]);for(v=0;v<qa.length;++v)o(qa[v]);for(v=0;v<Aa.length;++v){I=Aa[v];I.datapoints={points:[]};U(Ka.processRawData,[I,I.data,I.datapoints])}for(v=0;v<Aa.length;++v){I=
-Aa[v];var ca=I.data,ea=I.datapoints.format;if(!ea){ea=[];ea.push({x:true,number:true,required:true});ea.push({y:true,number:true,required:true});if(I.bars.show||I.lines.show&&I.lines.fill){ea.push({y:true,number:true,required:false,defaultValue:0});if(I.bars.horizontal){delete ea[ea.length-1].y;ea[ea.length-1].x=true}}I.datapoints.format=ea}if(I.datapoints.pointsize==null){I.datapoints.pointsize=ea.length;W=I.datapoints.pointsize;Q=I.datapoints.points;insertSteps=I.lines.show&&I.lines.steps;I.xaxis.used=
-I.yaxis.used=true;for(S=F=0;S<ca.length;++S,F+=W){oa=ca[S];var aa=oa==null;if(!aa)for(L=0;L<W;++L){ga=oa[L];if(na=ea[L]){if(na.number&&ga!=null){ga=+ga;if(isNaN(ga))ga=null}if(ga==null){if(na.required)aa=true;if(na.defaultValue!=null)ga=na.defaultValue}}Q[F+L]=ga}if(aa)for(L=0;L<W;++L){ga=Q[F+L];if(ga!=null){na=ea[L];na.x&&r(I.xaxis,ga,ga);na.y&&r(I.yaxis,ga,ga)}Q[F+L]=null}else if(insertSteps&&F>0&&Q[F-W]!=null&&Q[F-W]!=Q[F]&&Q[F-W+1]!=Q[F+1]){for(L=0;L<W;++L)Q[F+W+L]=Q[F+L];Q[F+1]=Q[F-W+1];F+=W}}}}for(v=
-0;v<Aa.length;++v){I=Aa[v];U(Ka.processDatapoints,[I,I.datapoints])}for(v=0;v<Aa.length;++v){I=Aa[v];Q=I.datapoints.points;W=I.datapoints.pointsize;oa=F=t;aa=ca=w;for(S=0;S<Q.length;S+=W)if(Q[S]!=null)for(L=0;L<W;++L){ga=Q[S+L];if(na=ea[L]){if(na.x){if(ga<F)F=ga;if(ga>ca)ca=ga}if(na.y){if(ga<oa)oa=ga;if(ga>aa)aa=ga}}}if(I.bars.show){S=I.bars.align=="left"?0:-I.bars.barWidth/2;if(I.bars.horizontal){oa+=S;aa+=S+I.bars.barWidth}else{F+=S;ca+=S+I.bars.barWidth}}r(I.xaxis,F,ca);r(I.yaxis,oa,aa)}b.each(sa(),
-function(ba,ka){if(ka.datamin==t)ka.datamin=null;if(ka.datamax==w)ka.datamax=null})}function $(o){function r(F){return F}var t,w,v=o.options.transform||r,S=o.options.inverseTransform;if(o.direction=="x"){t=o.scale=Ca/(v(o.max)-v(o.min));w=v(o.min);o.p2c=v==r?function(F){return(F-w)*t}:function(F){return(v(F)-w)*t};o.c2p=S?function(F){return S(w+F/t)}:function(F){return w+F/t}}else{t=o.scale=za/(v(o.max)-v(o.min));w=v(o.max);o.p2c=v==r?function(F){return(w-F)*t}:function(F){return(w-v(F))*t};o.c2p=
-S?function(F){return S(w-F/t)}:function(F){return w-F/t}}}function d(o){function r(I,Q){return b('<div style="position:absolute;top:-10000px;'+Q+'font-size:smaller"><div class="'+o.direction+"Axis "+o.direction+o.n+'Axis">'+I.join("")+"</div></div>").appendTo(p)}if(o){var t=o.options,w,v=o.ticks||[],S=[],F,L=t.labelWidth;t=t.labelHeight;if(o.direction=="x"){if(L==null)L=Math.floor(ma/(v.length>0?v.length:1));if(t==null){S=[];for(w=0;w<v.length;++w)(F=v[w].label)&&S.push('<div class="tickLabel" style="float:left;width:'+
-L+'px">'+F+"</div>");if(S.length>0){S.push('<div style="clear:left"></div>');v=r(S,"width:10000px;");t=v.height();v.remove()}}}else if(L==null||t==null){for(w=0;w<v.length;++w)(F=v[w].label)&&S.push('<div class="tickLabel">'+F+"</div>");if(S.length>0){v=r(S,"");if(L==null)L=v.children().width();if(t==null)t=v.find("div.tickLabel").height();v.remove()}}if(L==null)L=0;if(t==null)t=0;o.labelWidth=L;o.labelHeight=t}}function da(o){if(!(!o||!o.used&&!(o.labelWidth||o.labelHeight))){var r=o.labelWidth,
-t=o.labelHeight,w=o.options.position,v=o.options.tickLength,S=n.grid.axisMargin,F=n.grid.labelMargin,L=o.direction=="x"?X:qa,I=b.grep(L,function(Q){return Q&&Q.options.position==w&&(Q.labelHeight||Q.labelWidth)});if(b.inArray(o,I)==I.length-1)S=0;if(v==null)v="full";L=b.grep(L,function(Q){return Q&&(Q.labelHeight||Q.labelWidth)});L=b.inArray(o,L)==0;if(!L&&v=="full")v=5;isNaN(+v)||(F+=+v);if(o.direction=="x"){t+=F;if(w=="bottom"){fa.bottom+=t+S;o.box={top:ra-fa.bottom,height:t}}else{o.box={top:fa.top+
-S,height:t};fa.top+=t+S}}else{r+=F;if(w=="left"){o.box={left:fa.left+S,width:r};fa.left+=r+S}else{fa.right+=r+S;o.box={left:ma-fa.right,width:r}}}o.position=w;o.tickLength=v;o.box.padding=F;o.innermost=L}}function ya(){var o=sa(),r;for(r=0;r<o.length;++r){var t=o[r],w=t.options,v=+(w.min!=null?w.min:t.datamin),S=+(w.max!=null?w.max:t.datamax),F=S-v;if(F==0){F=S==0?1:0.01;if(w.min==null)v-=F;if(w.max==null||w.min!=null)S+=F}else{var L=w.autoscaleMargin;if(L!=null){if(w.min==null){v-=F*L;if(v<0&&t.datamin!=
-null&&t.datamin>=0)v=0}if(w.max==null){S+=F*L;if(S>0&&t.datamax!=null&&t.datamax<=0)S=0}}}t.min=v;t.max=S}fa.left=fa.right=fa.top=fa.bottom=0;if(n.grid.show){for(r=0;r<o.length;++r){G(o[r]);t=o[r];t.ticks=[];v=t.options.ticks;w=null;if(v==null||typeof v=="number"&&v>0)w=t.tickGenerator(t);else if(v)w=b.isFunction(v)?v({min:t.min,max:t.max}):v;v=void 0;S=void 0;for(v=0;v<w.length;++v){F=null;L=w[v];if(typeof L=="object"){S=L[0];if(L.length>1)F=L[1]}else S=L;if(F==null)F=t.tickFormatter(S,t);t.ticks[v]=
-{v:S,label:F}}t=o[r];w=o[r].ticks;if(t.options.autoscaleMargin!=null&&w.length>0){if(t.options.min==null)t.min=Math.min(t.min,w[0].v);if(t.options.max==null&&w.length>1)t.max=Math.max(t.max,w[w.length-1].v)}}for(r=0;r<X.length;++r)d(X[r]);for(r=0;r<qa.length;++r)d(qa[r]);for(r=X.length-1;r>=0;--r)da(X[r]);for(r=qa.length-1;r>=0;--r)da(qa[r]);for(t=r=0;t<Aa.length;++t)r=Math.max(r,2*(Aa[t].points.radius+Aa[t].points.lineWidth/2));for(var I in fa){fa[I]+=n.grid.borderWidth;fa[I]=Math.max(r,fa[I])}}Ca=
-ma-fa.left-fa.right;za=ra-fa.bottom-fa.top;for(r=0;r<o.length;++r)$(o[r]);if(n.grid.show){for(r=0;r<o.length;++r){I=o[r];if(I.direction=="x"){I.box.left=fa.left;I.box.width=Ca}else{I.box.top=fa.top;I.box.height=za}}p.find(".tickLabels").remove();o=['<div class="tickLabels" style="font-size:smaller">'];I=sa();for(r=0;r<I.length;++r){t=I[r];w=t.box;o.push('<div class="'+t.direction+"Axis "+t.direction+t.n+'Axis" style="color:'+t.options.color+'">');for(v=0;v<t.ticks.length;++v){S=t.ticks[v];if(!(!S.label||
-S.v<t.min||S.v>t.max)){F={};if(t.direction=="x"){L="center";F.left=Math.round(fa.left+t.p2c(S.v)-t.labelWidth/2);if(t.position=="bottom")F.top=w.top+w.padding;else F.bottom=ra-(w.top+w.height-w.padding)}else{F.top=Math.round(fa.top+t.p2c(S.v)-t.labelHeight/2);if(t.position=="left"){F.right=ma-(w.left+w.width-w.padding);L="right"}else{F.left=w.left+w.padding;L="left"}}F.width=t.labelWidth;L=["position:absolute","text-align:"+L];for(var Q in F)L.push(Q+":"+F[Q]+"px");o.push('<div class="tickLabel" style="'+
-L.join(";")+'">'+S.label+"</div>")}}o.push("</div>")}o.push("</div>");p.append(o.join(""))}p.find(".legend").remove();if(n.legend.show){Q=[];o=false;I=n.legend.labelFormatter;for(w=0;w<Aa.length;++w){r=Aa[w];if(t=r.label){if(w%n.legend.noColumns==0){o&&Q.push("</tr>");Q.push("<tr>");o=true}if(I)t=I(t,r);Q.push('<td class="legendColorBox"><div style="border:1px solid '+n.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+r.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+
-t+"</td>")}}o&&Q.push("</tr>");if(Q.length!=0){o='<table style="font-size:smaller;color:'+n.grid.color+'">'+Q.join("")+"</table>";if(n.legend.container!=null)b(n.legend.container).html(o);else{Q="";I=n.legend.position;r=n.legend.margin;if(r[0]==null)r=[r,r];if(I.charAt(0)=="n")Q+="top:"+(r[1]+fa.top)+"px;";else if(I.charAt(0)=="s")Q+="bottom:"+(r[1]+fa.bottom)+"px;";if(I.charAt(1)=="e")Q+="right:"+(r[0]+fa.right)+"px;";else if(I.charAt(1)=="w")Q+="left:"+(r[0]+fa.left)+"px;";o=b('<div class="legend">'+
-o.replace('style="','style="position:absolute;'+Q+";")+"</div>").appendTo(p);if(n.legend.backgroundOpacity!=0){I=n.legend.backgroundColor;if(I==null){I=(I=n.grid.backgroundColor)&&typeof I=="string"?b.color.parse(I):b.color.extract(o,"background-color");I.a=1;I=I.toString()}r=o.children();b('<div style="position:absolute;width:'+r.width()+"px;height:"+r.height()+"px;"+Q+"background-color:"+I+';"> </div>').prependTo(o).css("opacity",n.legend.backgroundOpacity)}}}}}function G(o){var r=o.options,t=(o.max-
-o.min)/(typeof r.ticks=="number"&&r.ticks>0?r.ticks:o.direction=="x"?0.3*Math.sqrt(ma):0.3*Math.sqrt(ra)),w,v,S,F;if(r.mode=="time"){var L={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*60*1E3};F=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],
-[6,"month"],[1,"year"]];w=0;if(r.minTickSize!=null)w=typeof r.tickSize=="number"?r.tickSize:r.minTickSize[0]*L[r.minTickSize[1]];for(v=0;v<F.length-1;++v)if(t<(F[v][0]*L[F[v][1]]+F[v+1][0]*L[F[v+1][1]])/2&&F[v][0]*L[F[v][1]]>=w)break;w=F[v][0];S=F[v][1];if(S=="year"){v=Math.pow(10,Math.floor(Math.log(t/L.year)/Math.LN10));F=t/L.year/v;w=F<1.5?1:F<3?2:F<7.5?5:10;w*=v}o.tickSize=r.tickSize||[w,S];v=function(W){var ga=[],na=W.tickSize[0],oa=W.tickSize[1],ca=new Date(W.min),ea=na*L[oa];oa=="second"&&
-ca.setUTCSeconds(k(ca.getUTCSeconds(),na));oa=="minute"&&ca.setUTCMinutes(k(ca.getUTCMinutes(),na));oa=="hour"&&ca.setUTCHours(k(ca.getUTCHours(),na));oa=="month"&&ca.setUTCMonth(k(ca.getUTCMonth(),na));oa=="year"&&ca.setUTCFullYear(k(ca.getUTCFullYear(),na));ca.setUTCMilliseconds(0);ea>=L.minute&&ca.setUTCSeconds(0);ea>=L.hour&&ca.setUTCMinutes(0);ea>=L.day&&ca.setUTCHours(0);ea>=L.day*4&&ca.setUTCDate(1);ea>=L.year&&ca.setUTCMonth(0);var aa=0,ba=Number.NaN,ka;do{ka=ba;ba=ca.getTime();ga.push(ba);
-if(oa=="month")if(na<1){ca.setUTCDate(1);var Fa=ca.getTime();ca.setUTCMonth(ca.getUTCMonth()+1);var Qa=ca.getTime();ca.setTime(ba+aa*L.hour+(Qa-Fa)*na);aa=ca.getUTCHours();ca.setUTCHours(0)}else ca.setUTCMonth(ca.getUTCMonth()+na);else oa=="year"?ca.setUTCFullYear(ca.getUTCFullYear()+na):ca.setTime(ba+ea)}while(ba<W.max&&ba!=ka);return ga};w=function(W,ga){var na=new Date(W);if(r.timeformat!=null)return b.plot.formatDate(na,r.timeformat,r.monthNames);var oa=ga.tickSize[0]*L[ga.tickSize[1]],ca=ga.max-
-ga.min,ea=r.twelveHourClock?" %p":"";fmt=oa<L.minute?"%h:%M:%S"+ea:oa<L.day?ca<2*L.day?"%h:%M"+ea:"%b %d %h:%M"+ea:oa<L.month?"%b %d":oa<L.year?ca<L.year?"%b":"%b %y":"%y";return b.plot.formatDate(na,fmt,r.monthNames)}}else{S=r.tickDecimals;var I=-Math.floor(Math.log(t)/Math.LN10);if(S!=null&&I>S)I=S;v=Math.pow(10,-I);F=t/v;if(F<1.5)w=1;else if(F<3){w=2;if(F>2.25&&(S==null||I+1<=S)){w=2.5;++I}}else w=F<7.5?5:10;w*=v;if(r.minTickSize!=null&&w<r.minTickSize)w=r.minTickSize;o.tickDecimals=Math.max(0,
-S!=null?S:I);o.tickSize=r.tickSize||w;v=function(W){var ga=[],na=k(W.min,W.tickSize),oa=0,ca=Number.NaN,ea;do{ea=ca;ca=na+oa*W.tickSize;ga.push(ca);++oa}while(ca<W.max&&ca!=ea);return ga};w=function(W,ga){return W.toFixed(ga.tickDecimals)}}if(r.alignTicksWithAxis!=null){var Q=(o.direction=="x"?X:qa)[r.alignTicksWithAxis-1];if(Q&&Q.used&&Q!=o){v=v(o);if(v.length>0){if(r.min==null)o.min=Math.min(o.min,v[0]);if(r.max==null&&v.length>1)o.max=Math.max(o.max,v[v.length-1])}v=function(W){var ga=[],na,oa;
-for(oa=0;oa<Q.ticks.length;++oa){na=(Q.ticks[oa].v-Q.min)/(Q.max-Q.min);na=W.min+na*(W.max-W.min);ga.push(na)}return ga};if(o.mode!="time"&&r.tickDecimals==null){t=Math.max(0,-Math.floor(Math.log(t)/Math.LN10)+1);F=v(o);if(!(F.length>1&&/\..*0$/.test((F[1]-F[0]).toFixed(t))))o.tickDecimals=t}}}o.tickGenerator=v;o.tickFormatter=b.isFunction(r.tickFormatter)?function(W,ga){return""+r.tickFormatter(W,ga)}:w}function pa(){C.clearRect(0,0,ma,ra);var o=n.grid;o.show&&!o.aboveData&&Ja();for(var r=0;r<Aa.length;++r){U(Ka.drawSeries,
-[C,Aa[r]]);var t=Aa[r];t.lines.show&&Wa(t);t.bars.show&&Ua(t);t.points.show&&Ea(t)}U(Ka.draw,[C]);o.show&&o.aboveData&&Ja()}function ua(o,r){var t,w,v,S,F;S=sa();for(i=0;i<S.length;++i){t=S[i];if(t.direction==r){F=r+t.n+"axis";if(!o[F]&&t.n==1)F=r+"axis";if(o[F]){w=o[F].from;v=o[F].to;break}}}if(!o[F]){t=r=="x"?X[0]:qa[0];w=o[r+"1"];v=o[r+"2"]}if(w!=null&&v!=null&&w>v){S=w;w=v;v=S}return{from:w,to:v,axis:t}}function Ja(){var o;C.save();C.translate(fa.left,fa.top);if(n.grid.backgroundColor){C.fillStyle=
-bb(n.grid.backgroundColor,za,0,"rgba(255, 255, 255, 0)");C.fillRect(0,0,Ca,za)}var r=n.grid.markings;if(r){if(b.isFunction(r)){var t=Ga.getAxes();t.xmin=t.xaxis.min;t.xmax=t.xaxis.max;t.ymin=t.yaxis.min;t.ymax=t.yaxis.max;r=r(t)}for(o=0;o<r.length;++o){t=r[o];var w=ua(t,"x"),v=ua(t,"y");if(w.from==null)w.from=w.axis.min;if(w.to==null)w.to=w.axis.max;if(v.from==null)v.from=v.axis.min;if(v.to==null)v.to=v.axis.max;if(!(w.to<w.axis.min||w.from>w.axis.max||v.to<v.axis.min||v.from>v.axis.max)){w.from=
-Math.max(w.from,w.axis.min);w.to=Math.min(w.to,w.axis.max);v.from=Math.max(v.from,v.axis.min);v.to=Math.min(v.to,v.axis.max);if(!(w.from==w.to&&v.from==v.to)){w.from=w.axis.p2c(w.from);w.to=w.axis.p2c(w.to);v.from=v.axis.p2c(v.from);v.to=v.axis.p2c(v.to);if(w.from==w.to||v.from==v.to){C.beginPath();C.strokeStyle=t.color||n.grid.markingsColor;C.lineWidth=t.lineWidth||n.grid.markingsLineWidth;C.moveTo(w.from,v.from);C.lineTo(w.to,v.to);C.stroke()}else{C.fillStyle=t.color||n.grid.markingsColor;C.fillRect(w.from,
-v.to,w.to-w.from,v.from-v.to)}}}}}t=sa();r=n.grid.borderWidth;for(w=0;w<t.length;++w){v=t[w];o=v.box;var S=v.tickLength,F,L,I,Q;C.strokeStyle=v.options.tickColor||b.color.parse(v.options.color).scale("a",0.22).toString();C.lineWidth=1;if(v.direction=="x"){F=0;L=S=="full"?v.position=="top"?0:za:o.top-fa.top+(v.position=="top"?o.height:0)}else{L=0;F=S=="full"?v.position=="left"?0:Ca:o.left-fa.left+(v.position=="left"?o.width:0)}if(!v.innermost){C.beginPath();I=Q=0;if(v.direction=="x")I=Ca;else Q=za;
-if(C.lineWidth==1){F=Math.floor(F)+0.5;L=Math.floor(L)+0.5}C.moveTo(F,L);C.lineTo(F+I,L+Q);C.stroke()}C.beginPath();for(o=0;o<v.ticks.length;++o){var W=v.ticks[o].v;I=Q=0;if(!(W<v.min||W>v.max||S=="full"&&r>0&&(W==v.min||W==v.max))){if(v.direction=="x"){F=v.p2c(W);Q=S=="full"?-za:S;if(v.position=="top")Q=-Q}else{L=v.p2c(W);I=S=="full"?-Ca:S;if(v.position=="left")I=-I}if(C.lineWidth==1)if(v.direction=="x")F=Math.floor(F)+0.5;else L=Math.floor(L)+0.5;C.moveTo(F,L);C.lineTo(F+I,L+Q)}}C.stroke()}if(r){C.lineWidth=
-r;C.strokeStyle=n.grid.borderColor;C.strokeRect(-r/2,-r/2,Ca+r,za+r)}C.restore()}function Wa(o){function r(F,L,I,Q,W){var ga=F.points;F=F.pointsize;var na=null,oa=null;C.beginPath();for(var ca=F;ca<ga.length;ca+=F){var ea=ga[ca-F],aa=ga[ca-F+1],ba=ga[ca],ka=ga[ca+1];if(!(ea==null||ba==null)){if(aa<=ka&&aa<W.min){if(ka<W.min)continue;ea=(W.min-aa)/(ka-aa)*(ba-ea)+ea;aa=W.min}else if(ka<=aa&&ka<W.min){if(aa<W.min)continue;ba=(W.min-aa)/(ka-aa)*(ba-ea)+ea;ka=W.min}if(aa>=ka&&aa>W.max){if(ka>W.max)continue;
-ea=(W.max-aa)/(ka-aa)*(ba-ea)+ea;aa=W.max}else if(ka>=aa&&ka>W.max){if(aa>W.max)continue;ba=(W.max-aa)/(ka-aa)*(ba-ea)+ea;ka=W.max}if(ea<=ba&&ea<Q.min){if(ba<Q.min)continue;aa=(Q.min-ea)/(ba-ea)*(ka-aa)+aa;ea=Q.min}else if(ba<=ea&&ba<Q.min){if(ea<Q.min)continue;ka=(Q.min-ea)/(ba-ea)*(ka-aa)+aa;ba=Q.min}if(ea>=ba&&ea>Q.max){if(ba>Q.max)continue;aa=(Q.max-ea)/(ba-ea)*(ka-aa)+aa;ea=Q.max}else if(ba>=ea&&ba>Q.max){if(ea>Q.max)continue;ka=(Q.max-ea)/(ba-ea)*(ka-aa)+aa;ba=Q.max}if(ea!=na||aa!=oa)C.moveTo(Q.p2c(ea)+
-L,W.p2c(aa)+I);na=ba;oa=ka;C.lineTo(Q.p2c(ba)+L,W.p2c(ka)+I)}}C.stroke()}function t(F,L,I){var Q=F.points;F=F.pointsize;for(var W=Math.min(Math.max(0,I.min),I.max),ga=0,na=false,oa=1,ca=0,ea=0;;){if(F>0&&ga>Q.length+F)break;ga+=F;var aa=Q[ga-F],ba=Q[ga-F+oa],ka=Q[ga],Fa=Q[ga+oa];if(na){if(F>0&&aa!=null&&ka==null){ea=ga;F=-F;oa=2;continue}if(F<0&&ga==ca+F){C.fill();na=false;F=-F;oa=1;ga=ca=ea+F;continue}}if(!(aa==null||ka==null)){if(aa<=ka&&aa<L.min){if(ka<L.min)continue;ba=(L.min-aa)/(ka-aa)*(Fa-
-ba)+ba;aa=L.min}else if(ka<=aa&&ka<L.min){if(aa<L.min)continue;Fa=(L.min-aa)/(ka-aa)*(Fa-ba)+ba;ka=L.min}if(aa>=ka&&aa>L.max){if(ka>L.max)continue;ba=(L.max-aa)/(ka-aa)*(Fa-ba)+ba;aa=L.max}else if(ka>=aa&&ka>L.max){if(aa>L.max)continue;Fa=(L.max-aa)/(ka-aa)*(Fa-ba)+ba;ka=L.max}if(!na){C.beginPath();C.moveTo(L.p2c(aa),I.p2c(W));na=true}if(ba>=I.max&&Fa>=I.max){C.lineTo(L.p2c(aa),I.p2c(I.max));C.lineTo(L.p2c(ka),I.p2c(I.max))}else if(ba<=I.min&&Fa<=I.min){C.lineTo(L.p2c(aa),I.p2c(I.min));C.lineTo(L.p2c(ka),
-I.p2c(I.min))}else{var Qa=aa,Sa=ka;if(ba<=Fa&&ba<I.min&&Fa>=I.min){aa=(I.min-ba)/(Fa-ba)*(ka-aa)+aa;ba=I.min}else if(Fa<=ba&&Fa<I.min&&ba>=I.min){ka=(I.min-ba)/(Fa-ba)*(ka-aa)+aa;Fa=I.min}if(ba>=Fa&&ba>I.max&&Fa<=I.max){aa=(I.max-ba)/(Fa-ba)*(ka-aa)+aa;ba=I.max}else if(Fa>=ba&&Fa>I.max&&ba<=I.max){ka=(I.max-ba)/(Fa-ba)*(ka-aa)+aa;Fa=I.max}aa!=Qa&&C.lineTo(L.p2c(Qa),I.p2c(ba));C.lineTo(L.p2c(aa),I.p2c(ba));C.lineTo(L.p2c(ka),I.p2c(Fa));if(ka!=Sa){C.lineTo(L.p2c(ka),I.p2c(Fa));C.lineTo(L.p2c(Sa),I.p2c(Fa))}}}}}
-C.save();C.translate(fa.left,fa.top);C.lineJoin="round";var w=o.lines.lineWidth,v=o.shadowSize;if(w>0&&v>0){C.lineWidth=v;C.strokeStyle="rgba(0,0,0,0.1)";var S=Math.PI/18;r(o.datapoints,Math.sin(S)*(w/2+v/2),Math.cos(S)*(w/2+v/2),o.xaxis,o.yaxis);C.lineWidth=v/2;r(o.datapoints,Math.sin(S)*(w/2+v/4),Math.cos(S)*(w/2+v/4),o.xaxis,o.yaxis)}C.lineWidth=w;C.strokeStyle=o.color;if(v=Xa(o.lines,o.color,0,za)){C.fillStyle=v;t(o.datapoints,o.xaxis,o.yaxis)}w>0&&r(o.datapoints,0,0,o.xaxis,o.yaxis);C.restore()}
-function Ea(o){function r(F,L,I,Q,W,ga,na,oa){var ca=F.points;F=F.pointsize;for(var ea=0;ea<ca.length;ea+=F){var aa=ca[ea],ba=ca[ea+1];if(!(aa==null||aa<ga.min||aa>ga.max||ba<na.min||ba>na.max)){C.beginPath();aa=ga.p2c(aa);ba=na.p2c(ba)+Q;oa=="circle"?C.arc(aa,ba,L,0,W?Math.PI:Math.PI*2,false):oa(C,aa,ba,L,W);C.closePath();if(I){C.fillStyle=I;C.fill()}C.stroke()}}}C.save();C.translate(fa.left,fa.top);var t=o.points.lineWidth,w=o.shadowSize,v=o.points.radius,S=o.points.symbol;if(t>0&&w>0){w=w/2;C.lineWidth=
-w;C.strokeStyle="rgba(0,0,0,0.1)";r(o.datapoints,v,null,w+w/2,true,o.xaxis,o.yaxis,S);C.strokeStyle="rgba(0,0,0,0.2)";r(o.datapoints,v,null,w/2,true,o.xaxis,o.yaxis,S)}C.lineWidth=t;C.strokeStyle=o.color;r(o.datapoints,v,Xa(o.points,o.color),0,false,o.xaxis,o.yaxis,S);C.restore()}function $a(o,r,t,w,v,S,F,L,I,Q,W,ga){var na,oa,ca,ea;if(W){ea=oa=ca=true;na=false;W=t;o=o;t=r+w;v=r+v;if(o<W){r=o;o=W;W=r;na=true;oa=false}}else{na=oa=ca=true;ea=false;W=o+w;o=o+v;v=t;t=r;if(t<v){r=t;t=v;v=r;ea=true;ca=
-false}}if(!(o<L.min||W>L.max||t<I.min||v>I.max)){if(W<L.min){W=L.min;na=false}if(o>L.max){o=L.max;oa=false}if(v<I.min){v=I.min;ea=false}if(t>I.max){t=I.max;ca=false}W=L.p2c(W);v=I.p2c(v);o=L.p2c(o);t=I.p2c(t);if(F){Q.beginPath();Q.moveTo(W,v);Q.lineTo(W,t);Q.lineTo(o,t);Q.lineTo(o,v);Q.fillStyle=F(v,t);Q.fill()}if(ga>0&&(na||oa||ca||ea)){Q.beginPath();Q.moveTo(W,v+S);na?Q.lineTo(W,t+S):Q.moveTo(W,t+S);ca?Q.lineTo(o,t+S):Q.moveTo(o,t+S);oa?Q.lineTo(o,v+S):Q.moveTo(o,v+S);ea?Q.lineTo(W,v+S):Q.moveTo(W,
-v+S);Q.stroke()}}}function Ua(o){C.save();C.translate(fa.left,fa.top);C.lineWidth=o.bars.lineWidth;C.strokeStyle=o.color;var r=o.bars.align=="left"?0:-o.bars.barWidth/2;(function(t,w,v,S,F,L,I){var Q=t.points;t=t.pointsize;for(var W=0;W<Q.length;W+=t)Q[W]!=null&&$a(Q[W],Q[W+1],Q[W+2],w,v,S,F,L,I,C,o.bars.horizontal,o.bars.lineWidth)})(o.datapoints,r,r+o.bars.barWidth,0,o.bars.fill?function(t,w){return Xa(o.bars,o.color,t,w)}:null,o.xaxis,o.yaxis);C.restore()}function Xa(o,r,t,w){var v=o.fill;if(!v)return null;
-if(o.fillColor)return bb(o.fillColor,t,w,r);o=b.color.parse(r);o.a=typeof v=="number"?v:0.4;o.normalize();return o.toString()}function Ya(o){n.grid.hoverable&&Na("plothover",o,function(r){return r.hoverable!=false})}function Ba(o){Na("plotclick",o,function(r){return r.clickable!=false})}function Na(o,r,t){var w=K.offset(),v=r.pageX-w.left-fa.left,S=r.pageY-w.top-fa.top,F=wa({left:v,top:S});F.pageX=r.pageX;F.pageY=r.pageY;r=n.grid.mouseActiveRadius;var L=r*r+1,I=null,Q,W;for(Q=Aa.length-1;Q>=0;--Q)if(t(Aa[Q])){var ga=
-Aa[Q],na=ga.xaxis,oa=ga.yaxis,ca=ga.datapoints.points,ea=ga.datapoints.pointsize,aa=na.c2p(v),ba=oa.c2p(S),ka=r/na.scale,Fa=r/oa.scale;if(ga.lines.show||ga.points.show)for(W=0;W<ca.length;W+=ea){var Qa=ca[W],Sa=ca[W+1];if(Qa!=null)if(!(Qa-aa>ka||Qa-aa<-ka||Sa-ba>Fa||Sa-ba<-Fa)){Qa=Math.abs(na.p2c(Qa)-v);Sa=Math.abs(oa.p2c(Sa)-S);Sa=Qa*Qa+Sa*Sa;if(Sa<L){L=Sa;I=[Q,W/ea]}}}if(ga.bars.show&&!I){na=ga.bars.align=="left"?0:-ga.bars.barWidth/2;ga=na+ga.bars.barWidth;for(W=0;W<ca.length;W+=ea){Qa=ca[W];Sa=
-ca[W+1];oa=ca[W+2];if(Qa!=null)if(Aa[Q].bars.horizontal?aa<=Math.max(oa,Qa)&&aa>=Math.min(oa,Qa)&&ba>=Sa+na&&ba<=Sa+ga:aa>=Qa+na&&aa<=Qa+ga&&ba>=Math.min(oa,Sa)&&ba<=Math.max(oa,Sa))I=[Q,W/ea]}}}if(I){Q=I[0];W=I[1];ea=Aa[Q].datapoints.pointsize;t={datapoint:Aa[Q].datapoints.points.slice(W*ea,(W+1)*ea),dataIndex:W,series:Aa[Q],seriesIndex:Q}}else t=null;if(t){t.pageX=parseInt(t.series.xaxis.p2c(t.datapoint[0])+w.left+fa.left);t.pageY=parseInt(t.series.yaxis.p2c(t.datapoint[1])+w.top+fa.top)}if(n.grid.autoHighlight){for(w=
-0;w<Ra.length;++w){v=Ra[w];v.auto==o&&!(t&&v.series==t.series&&v.point==t.datapoint)&&la(v.series,v.point)}t&&Ta(t.series,t.datapoint,o)}p.trigger(o,[F,t])}function Pa(){db||(db=setTimeout(Va,30))}function Va(){db=null;ia.save();ia.clearRect(0,0,ma,ra);ia.translate(fa.left,fa.top);var o,r;for(o=0;o<Ra.length;++o){r=Ra[o];if(r.series.bars.show)ab(r.series,r.point);else{var t=r.series,w=r.point;r=w[0];w=w[1];var v=t.xaxis,S=t.yaxis;if(!(r<v.min||r>v.max||w<S.min||w>S.max)){var F=t.points.radius+t.points.lineWidth/
-2;ia.lineWidth=F;ia.strokeStyle=b.color.parse(t.color).scale("a",0.5).toString();F=1.5*F;r=v.p2c(r);w=S.p2c(w);ia.beginPath();t.points.symbol=="circle"?ia.arc(r,w,F,0,2*Math.PI,false):t.points.symbol(ia,r,w,F,false);ia.closePath();ia.stroke()}}}ia.restore();U(Ka.drawOverlay,[ia])}function Ta(o,r,t){if(typeof o=="number")o=Aa[o];if(typeof r=="number"){var w=o.datapoints.pointsize;r=o.datapoints.points.slice(w*r,w*(r+1))}w=Ma(o,r);if(w==-1){Ra.push({series:o,point:r,auto:t});Pa()}else if(!t)Ra[w].auto=
-false}function la(o,r){if(o==null&&r==null){Ra=[];Pa()}if(typeof o=="number")o=Aa[o];if(typeof r=="number")r=o.data[r];var t=Ma(o,r);if(t!=-1){Ra.splice(t,1);Pa()}}function Ma(o,r){for(var t=0;t<Ra.length;++t){var w=Ra[t];if(w.series==o&&w.point[0]==r[0]&&w.point[1]==r[1])return t}return-1}function ab(o,r){ia.lineWidth=o.bars.lineWidth;ia.strokeStyle=b.color.parse(o.color).scale("a",0.5).toString();var t=b.color.parse(o.color).scale("a",0.5).toString(),w=o.bars.align=="left"?0:-o.bars.barWidth/2;
-$a(r[0],r[1],r[2]||0,w,w+o.bars.barWidth,0,function(){return t},o.xaxis,o.yaxis,ia,o.bars.horizontal,o.bars.lineWidth)}function bb(o,r,t,w){if(typeof o=="string")return o;else{r=C.createLinearGradient(0,t,0,r);t=0;for(var v=o.colors.length;t<v;++t){var S=o.colors[t];if(typeof S!="string"){var F=b.color.parse(w);if(S.brightness!=null)F=F.scale("rgb",S.brightness);if(S.opacity!=null)F.a*=S.opacity;S=F.toString()}r.addColorStop(t/(v-1),S)}return r}}var Aa=[],n={colors:["#edc240","#afd8f8","#cb4b4b",
-"#4da74d","#9440ed"],legend:{show:true,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:0.85},xaxis:{position:"bottom",mode:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,
-twelveHourClock:false},yaxis:{autoscaleMargin:0.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:false,radius:3,lineWidth:2,fill:true,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:false,fillColor:null,steps:false},bars:{show:false,lineWidth:2,barWidth:1,fill:true,fillColor:null,align:"left",horizontal:false},shadowSize:3},grid:{show:true,aboveData:false,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,labelMargin:5,axisMargin:8,borderWidth:2,markings:null,
-markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:false,hoverable:false,autoHighlight:true,mouseActiveRadius:10},hooks:{}},u=null,E=null,K=null,C=null,ia=null,X=[],qa=[],fa={left:0,right:0,top:0,bottom:0},ma=0,ra=0,Ca=0,za=0,Ka={processOptions:[],processRawData:[],processDatapoints:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[]},Ga=this;Ga.setData=J;Ga.setupGrid=ya;Ga.draw=pa;Ga.getPlaceholder=function(){return p};Ga.getCanvas=function(){return u};Ga.getPlotOffset=function(){return fa};
-Ga.width=function(){return Ca};Ga.height=function(){return za};Ga.offset=function(){var o=K.offset();o.left+=fa.left;o.top+=fa.top;return o};Ga.getData=function(){return Aa};Ga.getAxis=function(o,r){var t=(o==x?X:qa)[r-1];if(t&&!t.used)t=null;return t};Ga.getAxes=function(){var o={},r;for(r=0;r<X.length;++r)o["x"+(r?r+1:"")+"axis"]=X[r]||{};for(r=0;r<qa.length;++r)o["y"+(r?r+1:"")+"axis"]=qa[r]||{};if(!o.x2axis)o.x2axis={n:2};if(!o.y2axis)o.y2axis={n:2};return o};Ga.getXAxes=function(){return X};
-Ga.getYAxes=function(){return qa};Ga.getUsedAxes=sa;Ga.c2p=wa;Ga.p2c=function(o){var r={},t,w,v;for(t=0;t<X.length;++t)if((w=X[t])&&w.used){v="x"+w.n;if(o[v]==null&&w.n==1)v="x";if(o[v]){r.left=w.p2c(o[v]);break}}for(t=0;t<qa.length;++t)if((w=qa[t])&&w.used){v="y"+w.n;if(o[v]==null&&w.n==1)v="y";if(o[v]){r.top=w.p2c(o[v]);break}}return r};Ga.getOptions=function(){return n};Ga.highlight=Ta;Ga.unhighlight=la;Ga.triggerRedrawOverlay=Pa;Ga.pointOffset=function(o){return{left:parseInt(X[ja(o,"x")-1].p2c(+o.x)+
-fa.left),top:parseInt(qa[ja(o,"y")-1].p2c(+o.y)+fa.top)}};Ga.hooks=Ka;(function(){for(var o=0;o<M.length;++o){var r=M[o];r.init(Ga);r.options&&b.extend(true,n,r.options)}})(Ga);(function(o){b.extend(true,n,o);if(n.xaxis.color==null)n.xaxis.color=n.grid.color;if(n.yaxis.color==null)n.yaxis.color=n.grid.color;if(n.xaxis.tickColor==null)n.xaxis.tickColor=n.grid.tickColor;if(n.yaxis.tickColor==null)n.yaxis.tickColor=n.grid.tickColor;if(n.grid.borderColor==null)n.grid.borderColor=n.grid.color;if(n.grid.tickColor==
-null)n.grid.tickColor=b.color.parse(n.grid.color).scale("a",0.22).toString();for(o=0;o<Math.max(1,n.xaxes.length);++o)n.xaxes[o]=b.extend(true,{},n.xaxis,n.xaxes[o]);for(o=0;o<Math.max(1,n.yaxes.length);++o)n.yaxes[o]=b.extend(true,{},n.yaxis,n.yaxes[o]);if(n.xaxis.noTicks&&n.xaxis.ticks==null)n.xaxis.ticks=n.xaxis.noTicks;if(n.yaxis.noTicks&&n.yaxis.ticks==null)n.yaxis.ticks=n.yaxis.noTicks;if(n.x2axis){n.y2axis.position="top";n.xaxes[1]=n.x2axis}if(n.y2axis){if(n.y2axis.autoscaleMargin===undefined)n.y2axis.autoscaleMargin=
-0.02;n.y2axis.position="right";n.yaxes[1]=n.y2axis}if(n.grid.coloredAreas)n.grid.markings=n.grid.coloredAreas;if(n.grid.coloredAreasColor)n.grid.markingsColor=n.grid.coloredAreasColor;n.lines&&b.extend(true,n.series.lines,n.lines);n.points&&b.extend(true,n.series.points,n.points);n.bars&&b.extend(true,n.series.bars,n.bars);if(n.shadowSize)n.series.shadowSize=n.shadowSize;for(o=0;o<n.xaxes.length;++o)H(X,o+1).options=n.xaxes[o];for(o=0;o<n.yaxes.length;++o)H(qa,o+1).options=n.yaxes[o];for(var r in Ka)if(n.hooks[r]&&
-n.hooks[r].length)Ka[r]=Ka[r].concat(n.hooks[r]);U(Ka.processOptions,[n])})(B);(function(){function o(r,t){var w=document.createElement("canvas");w.width=r;w.height=t;w.getContext||(w=window.G_vmlCanvasManager.initElement(w));return w}ma=p.width();ra=p.height();p.html("");p.css("position")=="static"&&p.css("position","relative");if(ma<=0||ra<=0)throw"Invalid dimensions for plot, width = "+ma+", height = "+ra;window.G_vmlCanvasManager&&window.G_vmlCanvasManager.init_(document);u=b(o(ma,ra)).appendTo(p).get(0);
-C=u.getContext("2d");E=b(o(ma,ra)).css({position:"absolute",left:0,top:0}).appendTo(p).get(0);ia=E.getContext("2d");ia.stroke()})();J(A);ya();pa();K=b([E,u]);n.grid.hoverable&&K.mousemove(Ya);n.grid.clickable&&K.click(Ba);U(Ka.bindEvents,[K]);var Ra=[],db=null}function k(p,A){return A*Math.floor(p/A)}b.plot=function(p,A,B){return new f(b(p),A,B,b.plot.plugins)};b.plot.plugins=[];b.plot.formatDate=function(p,A,B){var M=function($){$=""+$;return $.length==1?"0"+$:$},U=[],J=false,ja=false,wa=p.getUTCHours(),
-sa=wa<12;if(B==null)B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];if(A.search(/%p|%P/)!=-1)if(wa>12)wa-=12;else if(wa==0)wa=12;for(var H=0;H<A.length;++H){var R=A.charAt(H);if(J){switch(R){case "h":R=""+wa;break;case "H":R=M(wa);break;case "M":R=M(p.getUTCMinutes());break;case "S":R=M(p.getUTCSeconds());break;case "d":R=""+p.getUTCDate();break;case "m":R=""+(p.getUTCMonth()+1);break;case "y":R=""+p.getUTCFullYear();break;case "b":R=""+B[p.getUTCMonth()];break;case "p":R=
-sa?"am":"pm";break;case "P":R=sa?"AM":"PM";break;case "0":R="";ja=true;break}if(R&&ja){R=M(R);ja=false}U.push(R);ja||(J=false)}else if(R=="%")J=true;else U.push(R)}return U.join("")}})(jQuery);(function(b){b.plot.plugins.push({init:function(f){f.hooks.processDatapoints.push(function(k,p,A){if(p.stack!=null){var B;k=k.getData();for(var M=null,U=0;U<k.length;++U){if(p==k[U])break;if(k[U].stack==p.stack)M=k[U]}if(B=M){k=A.pointsize;M=A.points;U=B.datapoints.pointsize;B=B.datapoints.points;var J=[],ja,wa,sa,H,R,$,d=p.lines.show;H=p.bars.horizontal;var da=k>2&&(H?A.format[2].x:A.format[2].y);p=d&&p.lines.steps;sa=true;for(var ya=H?1:0,G=H?0:1,pa=0,ua=0,Ja;;){if(pa>=M.length)break;Ja=J.length;
-if(M[pa]==null){for(m=0;m<k;++m)J.push(M[pa+m]);pa+=k}else if(ua>=B.length){if(!d)for(m=0;m<k;++m)J.push(M[pa+m]);pa+=k}else if(B[ua]==null){for(m=0;m<k;++m)J.push(null);sa=true;ua+=U}else{ja=M[pa+ya];wa=M[pa+G];H=B[ua+ya];R=B[ua+G];$=0;if(ja==H){for(m=0;m<k;++m)J.push(M[pa+m]);J[Ja+G]+=R;$=R;pa+=k;ua+=U}else if(ja>H){if(d&&pa>0&&M[pa-k]!=null){sa=wa+(M[pa-k+G]-wa)*(H-ja)/(M[pa-k+ya]-ja);J.push(H);J.push(sa+R);for(m=2;m<k;++m)J.push(M[pa+m]);$=R}ua+=U}else{if(sa&&d){pa+=k;continue}for(m=0;m<k;++m)J.push(M[pa+
-m]);if(d&&ua>0&&B[ua-U]!=null)$=R+(B[ua-U+G]-R)*(ja-H)/(B[ua-U+ya]-H);J[Ja+G]+=$;pa+=k}sa=false;if(Ja!=J.length&&da)J[Ja+2]+=$}if(p&&Ja!=J.length&&Ja>0&&J[Ja]!=null&&J[Ja]!=J[Ja-k]&&J[Ja+1]!=J[Ja-k+1]){for(m=0;m<k;++m)J[Ja+k+m]=J[Ja+m];J[Ja+1]=J[Ja-k+1]}}A.points=J}}})},options:{series:{stack:null}},name:"stack",version:"1.2"})})(jQuery);(function(b){b.plot.plugins.push({init:function(f){function k($){if(H.active){f.getPlaceholder().trigger("plotselecting",[B()]);J($)}}function p($){if($.which==1){document.body.focus();if(document.onselectstart!==undefined&&R.onselectstart==null){R.onselectstart=document.onselectstart;document.onselectstart=function(){return false}}if(document.ondrag!==undefined&&R.ondrag==null){R.ondrag=document.ondrag;document.ondrag=function(){return false}}U(H.first,$);H.active=true;b(document).one("mouseup",
-A)}}function A($){if(document.onselectstart!==undefined)document.onselectstart=R.onselectstart;if(document.ondrag!==undefined)document.ondrag=R.ondrag;H.active=false;J($);if(sa())M();else{f.getPlaceholder().trigger("plotunselected",[]);f.getPlaceholder().trigger("plotselecting",[null])}return false}function B(){if(!sa())return null;var $={},d=H.first,da=H.second;b.each(f.getAxes(),function(ya,G){if(G.used){var pa=G.c2p(d[G.direction]),ua=G.c2p(da[G.direction]);$[ya]={from:Math.min(pa,ua),to:Math.max(pa,
-ua)}}});return $}function M(){var $=B();f.getPlaceholder().trigger("plotselected",[$]);$.xaxis&&$.yaxis&&f.getPlaceholder().trigger("selected",[{x1:$.xaxis.from,y1:$.yaxis.from,x2:$.xaxis.to,y2:$.yaxis.to}])}function U($,d){var da=f.getOptions(),ya=f.getPlaceholder().offset(),G=f.getPlotOffset(),pa=d.pageX-ya.left-G.left,ua=f.width();$.x=pa<0?0:pa>ua?ua:pa;ya=d.pageY-ya.top-G.top;G=f.height();$.y=ya<0?0:ya>G?G:ya;if(da.selection.mode=="y")$.x=$==H.first?0:f.width();if(da.selection.mode=="x")$.y=$==
-H.first?0:f.height()}function J($){if($.pageX!=null){U(H.second,$);if(sa()){H.show=true;f.triggerRedrawOverlay()}else ja(true)}}function ja($){if(H.show){H.show=false;f.triggerRedrawOverlay();$||f.getPlaceholder().trigger("plotunselected",[])}}function wa($,d){var da,ya,G,pa,ua;pa=f.getUsedAxes();for(i=0;i<pa.length;++i){da=pa[i];if(da.direction==d){ua=d+da.n+"axis";if(!$[ua]&&da.n==1)ua=d+"axis";if($[ua]){ya=$[ua].from;G=$[ua].to;break}}}if(!$[ua]){da=d=="x"?f.getXAxes()[0]:f.getYAxes()[0];ya=$[d+
-"1"];G=$[d+"2"]}if(ya!=null&&G!=null&&ya>G){pa=ya;ya=G;G=pa}return{from:ya,to:G,axis:da}}function sa(){return Math.abs(H.second.x-H.first.x)>=5&&Math.abs(H.second.y-H.first.y)>=5}var H={first:{x:-1,y:-1},second:{x:-1,y:-1},show:false,active:false},R={};f.clearSelection=ja;f.setSelection=function($,d){var da,ya=f.getOptions();if(ya.selection.mode=="y"){H.first.x=0;H.second.x=f.width()}else{da=wa($,"x");H.first.x=da.axis.p2c(da.from);H.second.x=da.axis.p2c(da.to)}if(ya.selection.mode=="x"){H.first.y=
-0;H.second.y=f.height()}else{da=wa($,"y");H.first.y=da.axis.p2c(da.from);H.second.y=da.axis.p2c(da.to)}H.show=true;f.triggerRedrawOverlay();!d&&sa()&&M()};f.getSelection=B;f.hooks.bindEvents.push(function($,d){var da=$.getOptions();da.selection.mode!=null&&d.mousemove(k);da.selection.mode!=null&&d.mousedown(p)});f.hooks.drawOverlay.push(function($,d){if(H.show&&sa()){var da=$.getPlotOffset(),ya=$.getOptions();d.save();d.translate(da.left,da.top);da=b.color.parse(ya.selection.color);d.strokeStyle=
-da.scale("a",0.8).toString();d.lineWidth=1;d.lineJoin="round";d.fillStyle=da.scale("a",0.4).toString();da=Math.min(H.first.x,H.second.x);ya=Math.min(H.first.y,H.second.y);var G=Math.abs(H.second.x-H.first.x),pa=Math.abs(H.second.y-H.first.y);d.fillRect(da,ya,G,pa);d.strokeRect(da,ya,G,pa);d.restore()}})},options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.0"})})(jQuery);function InvalidBinaryFile(b){this.message=b;this.name="Invalid BinaryFile"}InvalidBinaryFile.prototype.toString=function(){return this.name+': "'+this.message+'"'};
-function BinaryFile(b,f,k){var p=f||0,A=0,B=Math.pow(2,-28),M=Math.pow(2,-52),U=Math.pow(2,-20);this.getRawData=function(){return b};if(typeof b=="string"){A=k||b.length;this.getByteAt=function(J){return b.charCodeAt(J+p)&255}}else if(typeof b=="unknown"){A=k||IEBinary_getLength(b);this.getByteAt=function(J){return IEBinary_getByteAt(b,J+p)}}else throw new InvalidBinaryFile("Unsupported type "+typeof b);this.getLength=function(){return A};this.getSByteAt=function(J){J=this.getByteAt(J);return J>127?
-J-256:J};this.getShortAt=function(J){J=(this.getByteAt(J+1)<<8)+this.getByteAt(J);if(J<0)J+=65536;return J};this.getSShortAt=function(J){J=this.getShortAt(J);return J>32767?J-65536:J};this.getLongAt=function(J){var ja=this.getByteAt(J),wa=this.getByteAt(J+1),sa=this.getByteAt(J+2);J=(((this.getByteAt(J+3)<<8)+sa<<8)+wa<<8)+ja;if(J<0)J+=4294967296;return J};this.getSLongAt=function(J){J=this.getLongAt(J);return J>2147483647?J-4294967296:J};this.getStringAt=function(J,ja){for(var wa=[],sa=J,H=0;sa<
-J+ja;sa++,H++)wa[H]=String.fromCharCode(this.getByteAt(sa));return wa.join("")};this.getCStringAt=function(J,ja){for(var wa=[],sa=J,H=0;sa<J+ja&&this.getByteAt(sa)>0;sa++,H++)wa[H]=String.fromCharCode(this.getByteAt(sa));return wa.join("")};this.getDoubleAt=function(J){var ja=this.getByteAt(J),wa=this.getByteAt(J+1),sa=this.getByteAt(J+2),H=this.getByteAt(J+3),R=this.getByteAt(J+4),$=this.getByteAt(J+5),d=this.getByteAt(J+6);J=this.getByteAt(J+7);var da=((J&127)<<4)+(d>>4);H=((((d&15)<<8)+$<<8)+R<<
-8)+H;ja=((sa<<8)+wa<<8)+ja;if(da==0)return 0;if(da!=2047)return(J>>7==1?-1:1)*Math.pow(2,(da&2047)-1023)*(1+ja*M+H*B)};this.getFastDoubleAt=function(J){var ja=this.getByteAt(J+4),wa=this.getByteAt(J+5),sa=this.getByteAt(J+6);J=this.getByteAt(J+7);var H=((J&127)<<4)+(sa>>4);ja=(((sa&15)<<8)+wa<<8)+ja;if(H==0)return 0;if(H!=2047)return(J>>7==1?-1:1)*Math.pow(2,(H&2047)-1023)*(1+ja*U)};this.getCharAt=function(J){return String.fromCharCode(this.getByteAt(J))}}document.write("<script type='text/vbscript'>\r\nFunction IEBinary_getByteAt(strBinary, iOffset)\r\n\tIEBinary_getByteAt = AscB(MidB(strBinary,iOffset+1,1))\r\nEnd Function\r\nFunction IEBinary_getLength(strBinary)\r\n\tIEBinary_getLength = LenB(strBinary)\r\nEnd Function\r\n<\/script>\r\n");
-function FetchBinaryURL(b){var f=new XMLHttpRequest;f.open("GET",b,false);try{f.overrideMimeType("text/plain; charset=x-user-defined")}catch(k){}f.send(null);b=f.responseBody;if(b==undefined)b=f.responseText;return new BinaryFile(b)}
-function FetchBinaryURLAsync(b,f,k){var p=new XMLHttpRequest;p.onreadystatechange=function(){if(this.readyState==4){var B=this.responseBody;if(B==undefined)B=this.responseText;B=new BinaryFile(B);k!=null?f(B,k):f(B)}};p.open("GET",b,true);try{p.overrideMimeType("text/plain; charset=x-user-defined")}catch(A){}p.send(null);return p};function InvalidRRD(b){this.message=b;this.name="Invalid RRD"}InvalidRRD.prototype.toString=function(){return this.name+': "'+this.message+'"'};function RRDDS(b,f,k){this.rrd_data=b;this.rrd_data_idx=f;this.my_idx=k}RRDDS.prototype.getIdx=function(){return this.my_idx};RRDDS.prototype.getName=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx,20)};RRDDS.prototype.getType=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx+20,20)};
-RRDDS.prototype.getMin=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+48)};RRDDS.prototype.getMax=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+56)};function RRDRRAInfo(b,f,k,p,A,B){this.rrd_data=b;this.rra_def_idx=f;this.rrd_align=k;this.row_cnt=p;this.pdp_step=A;this.my_idx=B}RRDRRAInfo.prototype.getIdx=function(){return this.my_idx};RRDRRAInfo.prototype.getNrRows=function(){return this.row_cnt};
+// @code_url http://javascriptrrd.cvs.sourceforge.net/viewvc/javascriptrrd/v0/src/lib/rrdFile.js
+// @code_url https://raw.github.com/jquerytools/jquerytools/dev/src/dateinput/dateinput.js
+// @code_url https://raw.github.com/jquerytools/jquerytools/dev/src/tabs/tabs.js
+// @compilation_level SIMPLE_OPTIMIZATIONS
+// @formatting print_input_delimiter
+// @output_format text
+// @output_info compiled_code
+// Input 0
+var MochiKit=MochiKit||{};if(typeof MochiKit.__export__=="undefined")MochiKit.__export__=!0;MochiKit.NAME="MochiKit";MochiKit.VERSION="1.5";MochiKit.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};MochiKit.toString=function(){return this.__repr__()};MochiKit.Base=MochiKit.Base||{};
+MochiKit.Base.module=function(a,b,e,f){var j=a[b]=a[b]||{},l=a.NAME?a.NAME+".":"";j.NAME=l+b;j.VERSION=e;j.__repr__=function(){return"["+this.NAME+" "+this.VERSION+"]"};j.toString=function(){return this.__repr__()};for(b=0;f!=null&&b<f.length;b++)if(!(f[b]in a))throw j.NAME+" depends on "+l+f[b]+"!";return j};MochiKit.Base.module(MochiKit,"Base","1.5",[]);
+MochiKit.Base.update=function(a){if(a===null||a===void 0)a={};for(var b=1;b<arguments.length;b++){var e=arguments[b];if(typeof e!="undefined"&&e!==null)for(var f in e)a[f]=e[f]}return a};
+MochiKit.Base.update(MochiKit.Base,{camelize:function(a){for(var a=a.split("-"),b=a[0],e=1;e<a.length;e++)b+=a[e].charAt(0).toUpperCase()+a[e].substring(1);return b},counter:function(a){arguments.length===0&&(a=1);return function(){return a++}},clone:function(a){var b=arguments.callee;if(arguments.length==1)return b.prototype=a,new b},_flattenArray:function(a,b){for(var e=0;e<b.length;e++){var f=b[e];f instanceof Array?arguments.callee(a,f):a.push(f)}return a},flattenArray:function(a){return MochiKit.Base._flattenArray([],
+a)},flattenArguments:function(){for(var a=[],b=MochiKit.Base.extend(null,arguments);b.length;){var e=b.shift();if(e&&typeof e=="object"&&typeof e.length=="number")for(var f=e.length-1;f>=0;f--)b.unshift(e[f]);else a.push(e)}return a},extend:function(a,b,e){e||(e=0);if(b){var f=b.length;if(typeof f!="number")if(typeof MochiKit.Iter!="undefined")b=MochiKit.Iter.list(b),f=b.length;else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");for(a||(a=[]);e<f;e++)a.push(b[e])}return a},
+updatetree:function(a){if(a===null||a===void 0)a={};for(var b=1;b<arguments.length;b++){var e=arguments[b];if(typeof e!="undefined"&&e!==null)for(var f in e){var j=e[f];typeof a[f]=="object"&&typeof j=="object"?arguments.callee(a[f],j):a[f]=j}}return a},setdefault:function(a){if(a===null||a===void 0)a={};for(var b=1;b<arguments.length;b++){var e=arguments[b],f;for(f in e)f in a||(a[f]=e[f])}return a},keys:function(a){var b=[],e;for(e in a)b.push(e);return b},values:function(a){var b=[],e;for(e in a)b.push(a[e]);
+return b},items:function(a){var b=[],e;for(e in a){var f;try{f=a[e]}catch(j){continue}b.push([e,f])}return b},_newNamedError:function(a,b,e){e.prototype=new MochiKit.Base.NamedError(a.NAME+"."+b);e.prototype.constructor=e;a[b]=e},operator:{truth:function(a){return!!a},lognot:function(a){return!a},identity:function(a){return a},not:function(a){return~a},neg:function(a){return-a},add:function(a,b){return a+b},sub:function(a,b){return a-b},div:function(a,b){return a/b},mod:function(a,b){return a%b},
+mul:function(a,b){return a*b},and:function(a,b){return a&b},or:function(a,b){return a|b},xor:function(a,b){return a^b},lshift:function(a,b){return a<<b},rshift:function(a,b){return a>>b},zrshift:function(a,b){return a>>>b},eq:function(a,b){return a==b},ne:function(a,b){return a!=b},gt:function(a,b){return a>b},ge:function(a,b){return a>=b},lt:function(a,b){return a<b},le:function(a,b){return a<=b},seq:function(a,b){return a===b},sne:function(a,b){return a!==b},ceq:function(a,b){return MochiKit.Base.compare(a,
+b)===0},cne:function(a,b){return MochiKit.Base.compare(a,b)!==0},cgt:function(a,b){return MochiKit.Base.compare(a,b)==1},cge:function(a,b){return MochiKit.Base.compare(a,b)!=-1},clt:function(a,b){return MochiKit.Base.compare(a,b)==-1},cle:function(a,b){return MochiKit.Base.compare(a,b)!=1},logand:function(a,b){return a&&b},logor:function(a,b){return a||b},contains:function(a,b){return b in a}},forwardCall:function(a){return function(){return this[a].apply(this,arguments)}},itemgetter:function(a){return function(b){return b[a]}},
+bool:function(a){return typeof a==="boolean"||a instanceof Boolean?a.valueOf():typeof a==="string"||a instanceof String?a.length>0&&a!="false"&&a!="null"&&a!="undefined"&&a!="0":typeof a==="number"||a instanceof Number?!isNaN(a)&&a!=0:a!=null&&typeof a.length==="number"?a.length!==0:a!=null},typeMatcher:function(){for(var a={},b=0;b<arguments.length;b++){var e=arguments[b];a[e]=e}return function(){for(var b=0;b<arguments.length;b++)if(!(typeof arguments[b]in a))return!1;return!0}},isNull:function(){for(var a=
+0;a<arguments.length;a++)if(arguments[a]!==null)return!1;return!0},isUndefinedOrNull:function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];if(!(typeof b=="undefined"||b===null))return!1}return!0},isEmpty:function(){return!MochiKit.Base.isNotEmpty.apply(this,arguments)},isNotEmpty:function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];if(!b||!b.length)return!1}return!0},isArrayLike:function(){for(var a=0;a<arguments.length;a++){var b=arguments[a],e=typeof b;if(e!="object"&&!(e==
+"function"&&typeof b.item=="function")||b===null||typeof b.length!="number"||b.nodeType===3||b.nodeType===4)return!1}return!0},isDateLike:function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];if(typeof b!="object"||b===null||typeof b.getTime!="function")return!1}return!0},xmap:function(a){if(a===null)return MochiKit.Base.extend(null,arguments,1);for(var b=[],e=1;e<arguments.length;e++)b.push(a(arguments[e]));return b},map:function(a,b){var e=MochiKit.Base,f=MochiKit.Iter,j=e.isArrayLike;
+if(arguments.length<=2){if(!j(b))if(f){if(b=f.list(b),a===null)return b}else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");if(a===null)return e.extend(null,b);f=[];for(e=0;e<b.length;e++)f.push(a(b[e]))}else{a===null&&(a=Array);for(var l=null,e=1;e<arguments.length;e++){if(!j(arguments[e]))if(f)return f.list(f.imap.apply(null,arguments));else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");var k=arguments[e].length;if(l===null||l>k)l=
+k}f=[];for(e=0;e<l;e++){j=[];for(k=1;k<arguments.length;k++)j.push(arguments[k][e]);f.push(a.apply(this,j))}}return f},xfilter:function(a){var b=[];if(a===null)a=MochiKit.Base.operator.truth;for(var e=1;e<arguments.length;e++){var f=arguments[e];a(f)&&b.push(f)}return b},filter:function(a,b,e){var f=[],j=MochiKit.Base;if(!j.isArrayLike(b))if(MochiKit.Iter)b=MochiKit.Iter.list(b);else throw new TypeError("Argument not an array-like and MochiKit.Iter not present");if(a===null)a=j.operator.truth;if(typeof Array.prototype.filter==
+"function")return Array.prototype.filter.call(b,a,e);else if(typeof e=="undefined"||e===null)for(j=0;j<b.length;j++){var l=b[j];a(l)&&f.push(l)}else for(j=0;j<b.length;j++)l=b[j],a.call(e,l)&&f.push(l);return f},_wrapDumbFunction:function(a){return function(){switch(arguments.length){case 0:return a();case 1:return a(arguments[0]);case 2:return a(arguments[0],arguments[1]);case 3:return a(arguments[0],arguments[1],arguments[2])}for(var b=[],e=0;e<arguments.length;e++)b.push("arguments["+e+"]");return eval("(func("+
+b.join(",")+"))")}},methodcaller:function(a){var b=MochiKit.Base.extend(null,arguments,1);return typeof a=="function"?function(e){return a.apply(e,b)}:function(e){return e[a].apply(e,b)}},method:function(a,b){var e=MochiKit.Base;return e.bind.apply(this,e.extend([b,a],arguments,2))},compose:function(){var a=[],b=MochiKit.Base;if(arguments.length===0)throw new TypeError("compose() requires at least one argument");for(var e=0;e<arguments.length;e++){var f=arguments[e];if(typeof f!="function")throw new TypeError(b.repr(f)+
+" is not a function");a.push(f)}return function(){for(var b=arguments,e=a.length-1;e>=0;e--)b=[a[e].apply(this,b)];return b[0]}},bind:function(a,b){typeof a=="string"&&(a=b[a]);var e=a.im_func,f=a.im_preargs,j=a.im_self,l=MochiKit.Base;typeof a=="function"&&typeof a.apply=="undefined"&&(a=l._wrapDumbFunction(a));typeof e!="function"&&(e=a);typeof b!="undefined"&&(j=b);f=typeof f=="undefined"?[]:f.slice();l.extend(f,arguments,2);var k=function(){var a=arguments,b=arguments.callee;b.im_preargs.length>
+0&&(a=l.concat(b.im_preargs,a));var e=b.im_self;e||(e=this);return b.im_func.apply(e,a)};k.im_self=j;k.im_func=e;k.im_preargs=f;if(typeof e.NAME=="string")k.NAME="bind("+e.NAME+",...)";return k},bindLate:function(a){var b=MochiKit.Base,e=arguments;typeof a==="string"&&(e=b.extend([b.forwardCall(a)],arguments,1));return b.bind.apply(this,e)},bindMethods:function(a){var b=MochiKit.Base.bind,e;for(e in a){var f=a[e];typeof f=="function"&&(a[e]=b(f,a))}},registerComparator:function(a,b,e,f){MochiKit.Base.comparatorRegistry.register(a,
+b,e,f)},_primitives:{"boolean":!0,string:!0,number:!0},compare:function(a,b){if(a==b)return 0;var e=typeof a=="undefined"||a===null,f=typeof b=="undefined"||b===null;if(e&&f)return 0;else if(e)return-1;else if(f)return 1;e=MochiKit.Base;f=e._primitives;if(!(typeof a in f&&typeof b in f))try{return e.comparatorRegistry.match(a,b)}catch(j){if(j!=e.NotFound)throw j;}if(a<b)return-1;else if(a>b)return 1;e=e.repr;throw new TypeError(e(a)+" and "+e(b)+" can not be compared");},compareDateLike:function(a,
+b){return MochiKit.Base.compare(a.getTime(),b.getTime())},compareArrayLike:function(a,b){var e=MochiKit.Base.compare,f=a.length,j=0;f>b.length?(j=1,f=b.length):f<b.length&&(j=-1);for(var l=0;l<f;l++){var k=e(a[l],b[l]);if(k)return k}return j},registerRepr:function(a,b,e,f){MochiKit.Base.reprRegistry.register(a,b,e,f)},repr:function(a){if(typeof a=="undefined")return"undefined";else if(a===null)return"null";try{if(typeof a.__repr__=="function")return a.__repr__();else if(typeof a.repr=="function"&&
+a.repr!=arguments.callee)return a.repr();return MochiKit.Base.reprRegistry.match(a)}catch(b){try{if(typeof a.NAME=="string"&&(a.toString==Function.prototype.toString||a.toString==Object.prototype.toString))return a.NAME}catch(e){}}var f=a+"";if(typeof a=="function"){var f=f.replace(/^\s+/,"").replace(/\s+/g," "),f=f.replace(/,(\S)/,", $1"),j=f.indexOf("{");j!=-1&&(f=f.substr(0,j)+"{...}")}return f},reprArrayLike:function(a){var b=MochiKit.Base;return"["+b.map(b.repr,a).join(", ")+"]"},reprString:function(a){return('"'+
+a.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\v]/g,"\\v").replace(/[\r]/g,"\\r")},reprNumber:function(a){return a+""},registerJSON:function(a,b,e,f){MochiKit.Base.jsonRegistry.register(a,b,e,f)},evalJSON:function(a){return eval("("+MochiKit.Base._filterJSON(a)+")")},_filterJSON:function(a){var b=a.match(/^\s*\/\*(.*)\*\/\s*$/);return b?b[1]:a},serializeJSON:function(a){var b=typeof a;if(b=="number"||b=="boolean")return a+
+"";else if(a===null)return"null";else if(b=="string"){for(var b="",e=0;e<a.length;e++){var f=a.charAt(e);f=='"'?b+='\\"':f=="\\"?b+="\\\\":f=="\u0008"?b+="\\b":f=="\u000c"?b+="\\f":f=="\n"?b+="\\n":f=="\r"?b+="\\r":f=="\t"?b+="\\t":a.charCodeAt(e)<=31?(f=a.charCodeAt(e).toString(16),f.length<2&&(f="0"+f),b+="\\u00"+f.toUpperCase()):b+=f}return'"'+b+'"'}var f=arguments.callee,j;if(typeof a.toJSON=="function"&&(j=a.toJSON(),a!==j))return f(j);if(typeof a.__json__=="function"&&(j=a.__json__(),a!==j))return f(j);
+if(typeof a.json=="function"&&(j=a.json(),a!==j))return f(j);if(b!="function"&&typeof a.length=="number"){b=[];for(e=0;e<a.length;e++)j=f(a[e]),typeof j=="string"&&b.push(j);return"["+b.join(", ")+"]"}var l=MochiKit.Base;try{if(j=l.jsonRegistry.match(a),a!==j)return f(j)}catch(k){if(k!=l.NotFound)throw k;}if(b=="undefined")throw new TypeError("undefined can not be serialized as JSON");if(b=="function")return null;b=[];for(e in a){if(typeof e=="number")l='"'+e+'"';else if(typeof e=="string")l=f(e);
+else continue;j=f(a[e]);typeof j=="string"&&b.push(l+":"+j)}return"{"+b.join(", ")+"}"},objEqual:function(a,b){return MochiKit.Base.compare(a,b)===0},arrayEqual:function(a,b){if(a.length!=b.length)return!1;return MochiKit.Base.compare(a,b)===0},concat:function(){for(var a=[],b=MochiKit.Base.extend,e=0;e<arguments.length;e++)b(a,arguments[e]);return a},keyComparator:function(a){var b=MochiKit.Base,e=b.compare;if(arguments.length==1)return function(b,f){return e(b[a],f[a])};var f=b.extend(null,arguments);
+return function(a,b){for(var k=0,A=0;k===0&&A<f.length;A++)k=f[A],k=e(a[k],b[k]);return k}},reverseKeyComparator:function(){var a=MochiKit.Base.keyComparator.apply(this,arguments);return function(b,e){return a(e,b)}},partial:function(a){var b=MochiKit.Base;return b.bind.apply(this,b.extend([a,void 0],arguments,1))},listMinMax:function(a,b){if(b.length===0)return null;for(var e=b[0],f=MochiKit.Base.compare,j=1;j<b.length;j++){var l=b[j];f(l,e)==a&&(e=l)}return e},objMax:function(){return MochiKit.Base.listMinMax(1,
+arguments)},objMin:function(){return MochiKit.Base.listMinMax(-1,arguments)},findIdentical:function(a,b,e,f){if(typeof f=="undefined"||f===null)f=a.length;if(typeof e=="undefined"||e===null)e=0;for(;e<f;e++)if(a[e]===b)return e;return-1},mean:function(){for(var a=0,b=MochiKit.Base.extend(null,arguments),e=b.length;b.length;){var f=b.shift();if(f&&typeof f=="object"&&typeof f.length=="number"){e+=f.length-1;for(var j=f.length-1;j>=0;j--)a+=f[j]}else a+=f}if(e<=0)throw new TypeError("mean() requires at least one argument");
+return a/e},median:function(){var a=MochiKit.Base.flattenArguments(arguments);if(a.length===0)throw new TypeError("median() requires at least one argument");a.sort(MochiKit.Base.compare);if(a.length%2==0){var b=a.length/2;return(a[b]+a[b-1])/2}else return a[(a.length-1)/2]},findValue:function(a,b,e,f){if(typeof f=="undefined"||f===null)f=a.length;if(typeof e=="undefined"||e===null)e=0;for(var j=MochiKit.Base.compare;e<f;e++)if(j(a[e],b)===0)return e;return-1},nodeWalk:function(a,b){for(var e=[a],
+f=MochiKit.Base.extend;e.length;){var j=b(e.shift());j&&f(e,j)}},nameFunctions:function(a){var b=a.NAME;typeof b=="undefined"?b="":b+=".";for(var e in a){var f=a[e];if(typeof f=="function"&&typeof f.NAME=="undefined")try{f.NAME=b+e}catch(j){}}},queryString:function(a,b){if(typeof MochiKit.DOM!="undefined"&&arguments.length==1&&(typeof a=="string"||typeof a.nodeType!="undefined"&&a.nodeType>0))var e=MochiKit.DOM.formContents(a),a=e[0],b=e[1];else if(arguments.length==1){if(typeof a.length=="number"&&
+a.length==2)return arguments.callee(a[0],a[1]);var f=a,a=[],b=[],j;for(j in f)if(e=f[j],typeof e!="function")if(MochiKit.Base.isArrayLike(e))for(var l=0;l<e.length;l++)a.push(j),b.push(e[l]);else a.push(j),b.push(e)}f=[];j=Math.min(a.length,b.length);for(var k=MochiKit.Base.urlEncode,l=0;l<j;l++)e=b[l],typeof e!="undefined"&&e!==null&&f.push(k(a[l])+"="+k(e));return f.join("&")},parseQueryString:function(a,b){var e=(a.charAt(0)=="?"?a.substring(1):a).replace(/\+/g,"%20").split(/\&amp\;|\&\#38\;|\&#x26;|\&/),
+f={},j;j=typeof decodeURIComponent!="undefined"?decodeURIComponent:unescape;if(b)for(var l=0;l<e.length;l++){var k=e[l].split("="),A=j(k.shift());if(A){var G=f[A];G instanceof Array||(G=[],f[A]=G);G.push(j(k.join("=")))}}else for(l=0;l<e.length;l++)k=e[l].split("="),(A=k.shift())&&(f[j(A)]=j(k.join("=")));return f}});MochiKit.Base.AdapterRegistry=function(){this.pairs=[]};
+MochiKit.Base.AdapterRegistry.prototype={register:function(a,b,e,f){f?this.pairs.unshift([a,b,e]):this.pairs.push([a,b,e])},match:function(){for(var a=0;a<this.pairs.length;a++){var b=this.pairs[a];if(b[1].apply(this,arguments))return b[2].apply(this,arguments)}throw MochiKit.Base.NotFound;},unregister:function(a){for(var b=0;b<this.pairs.length;b++)if(this.pairs[b][0]==a)return this.pairs.splice(b,1),!0;return!1}};
+MochiKit.Base.moduleExport=function(a,b){for(var e={toString:!0,NAME:!0,VERSION:!0},f=MochiKit.Base.extend([],arguments,1);(b=f.shift())!=null;)for(var j in b){var l=b[j];if(l!=null){var k=j[0]!=="_"&&!e[j];if(typeof l.__export__=="boolean"?l.__export__:k)typeof l=="object"&&l.NAME&&l.VERSION?f.push(l):a[j]=b[j]}}return a};MochiKit.Base._exportSymbols=function(a,b){MochiKit.__export__!==!1&&b.__export__!==!1&&MochiKit.Base.moduleExport(a,b)};
+MochiKit.Base._deprecated=function(a,b,e,f,j){typeof a==="string"&&(a.indexOf("MochiKit.")===0&&(a=a.substring(9)),a=MochiKit[a]);var l=e.split(".")[1],k=e.split(".")[2],A=function(){var j=arguments.callee,A=a.NAME+"."+b+" is deprecated since version "+f+". Use "+e+" instead.";if(j.logged!==!0)j.logged=!0,MochiKit.Logging?MochiKit.Logging.logDebug(A):console&&console.log&&console.log(A);if(!MochiKit[l])throw Error(A);return MochiKit[l][k].apply(this,arguments)};A.__export__=j===!0;a[b]=A};
+MochiKit.Base.__new__=function(){var a=this;a.noop=a.operator.identity;a._deprecated(a,"forward","MochiKit.Base.forwardCall","1.3");a._deprecated(a,"find","MochiKit.Base.findValue","1.3");a.urlEncode=typeof encodeURIComponent!="undefined"?function(a){return encodeURIComponent(a).replace(/\'/g,"%27")}:function(a){return escape(a).replace(/\+/g,"%2B").replace(/\"/g,"%22").replace(/\'/g,"%27")};a.NamedError=function(a){this.name=this.message=a};a.NamedError.prototype=Error();a.NamedError.prototype.constructor=
+a.NamedError;a.update(a.NamedError.prototype,{repr:function(){return this.message&&this.message!=this.name?this.name+"("+a.repr(this.message)+")":this.name+"()"},toString:a.forwardCall("repr")});a.NotFound=new a.NamedError("MochiKit.Base.NotFound");a.listMax=a.partial(a.listMinMax,1);a.listMin=a.partial(a.listMinMax,-1);a.isCallable=a.typeMatcher("function");a.isUndefined=a.typeMatcher("undefined");a.isValue=a.typeMatcher("boolean","number","string");a.merge=a.partial(a.update,null);a.zip=a.partial(a.map,
+null);a.average=a.mean;a.comparatorRegistry=new a.AdapterRegistry;a.registerComparator("dateLike",a.isDateLike,a.compareDateLike);a.registerComparator("arrayLike",a.isArrayLike,a.compareArrayLike);a.reprRegistry=new a.AdapterRegistry;a.registerRepr("arrayLike",a.isArrayLike,a.reprArrayLike);a.registerRepr("string",a.typeMatcher("string"),a.reprString);a.registerRepr("numbers",a.typeMatcher("number","boolean"),a.reprNumber);a.jsonRegistry=new a.AdapterRegistry;a.nameFunctions(this)};MochiKit.Base.__new__();
+if(MochiKit.__export__)compare=MochiKit.Base.compare,compose=MochiKit.Base.compose,serializeJSON=MochiKit.Base.serializeJSON,mean=MochiKit.Base.mean,median=MochiKit.Base.median;MochiKit.Base._exportSymbols(this,MochiKit.Base);
+// Input 1
+MochiKit.Base.module(MochiKit,"Async","1.5",["Base"]);MochiKit.Async.Deferred=function(a){this.chain=[];this.id=this._nextId();this.fired=-1;this.paused=0;this.results=[null,null];this.canceller=a;this.finalized=this.chained=this.silentlyCancelled=!1};
+MochiKit.Async.Deferred.prototype={repr:function(){return"Deferred("+this.id+", "+this.state()+")"},toString:MochiKit.Base.forwardCall("repr"),_nextId:MochiKit.Base.counter(),state:function(){return this.fired==-1?"unfired":this.fired===0?"success":"error"},cancel:function(a){var b=MochiKit.Async;this.fired==-1?(this.canceller?this.canceller(this):this.silentlyCancelled=!0,this.fired==-1&&(typeof a==="string"?a=new b.GenericError(a):a instanceof Error||(a=new b.CancelledError(this)),this.errback(a))):
+this.fired===0&&this.results[0]instanceof b.Deferred&&this.results[0].cancel(a)},_resback:function(a){this.fired=a instanceof Error?1:0;this.results[this.fired]=a;this.paused===0&&this._fire()},_check:function(){if(this.fired!=-1){if(!this.silentlyCancelled)throw new MochiKit.Async.AlreadyCalledError(this);this.silentlyCancelled=!1}},callback:function(a){this._check();if(a instanceof MochiKit.Async.Deferred)throw Error("Deferred instances can only be chained if they are the result of a callback");
+this._resback(a)},errback:function(a){this._check();var b=MochiKit.Async;if(a instanceof b.Deferred)throw Error("Deferred instances can only be chained if they are the result of a callback");a instanceof Error||(a=new b.GenericError(a));this._resback(a)},addBoth:function(a){arguments.length>1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(a,a)},addCallback:function(a){arguments.length>1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(a,null)},addErrback:function(a){arguments.length>
+1&&(a=MochiKit.Base.partial.apply(null,arguments));return this.addCallbacks(null,a)},addCallbacks:function(a,b){if(this.chained)throw Error("Chained Deferreds can not be re-used");if(this.finalized)throw Error("Finalized Deferreds can not be re-used");this.chain.push([a,b]);this.fired>=0&&this._fire();return this},setFinalizer:function(a){if(this.chained)throw Error("Chained Deferreds can not be re-used");if(this.finalized)throw Error("Finalized Deferreds can not be re-used");arguments.length>1&&
+(a=MochiKit.Base.partial.apply(null,arguments));this._finalizer=a;this.fired>=0&&this._fire();return this},_fire:function(){for(var a=this.chain,b=this.fired,e=this.results[b],f=this,j=null;a.length>0&&this.paused===0;){var l=a.shift()[b];if(l!==null)try{e=l(e),b=e instanceof Error?1:0,e instanceof MochiKit.Async.Deferred&&(j=function(a){f.paused--;f._resback(a)},this.paused++)}catch(k){b=1,k instanceof Error||(k=new MochiKit.Async.GenericError(k)),e=k}}this.fired=b;this.results[b]=e;if(this.chain.length==
+0&&this.paused===0&&this._finalizer)this.finalized=!0,this._finalizer(e);if(j&&this.paused)e.addBoth(j),e.chained=!0}};
+MochiKit.Base.update(MochiKit.Async,{evalJSONRequest:function(a){return MochiKit.Base.evalJSON(a.responseText)},succeed:function(){var a=new MochiKit.Async.Deferred;a.callback.apply(a,arguments);return a},fail:function(){var a=new MochiKit.Async.Deferred;a.errback.apply(a,arguments);return a},getXMLHttpRequest:function(){var a=arguments.callee;if(!a.XMLHttpRequest)for(var b=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},
+function(){return new ActiveXObject("Msxml2.XMLHTTP.4.0")},function(){throw new MochiKit.Async.BrowserComplianceError("Browser does not support XMLHttpRequest");}],e=0;e<b.length;e++){var f=b[e];try{return a.XMLHttpRequest=f,f()}catch(j){}}return a.XMLHttpRequest()},_xhr_onreadystatechange:function(a){var b=MochiKit.Base;if(this.readyState==4){try{this.onreadystatechange=null}catch(e){try{this.onreadystatechange=b.noop}catch(f){}}var j=null;try{j=this.status,!j&&b.isNotEmpty(this.responseText)&&(j=
+304)}catch(l){}j==200||j==201||j==204||j==304||j==1223?a.callback(this):(b=new MochiKit.Async.XMLHttpRequestError(this,"Request failed"),a.errback(b))}},_xhr_canceller:function(a){try{a.onreadystatechange=null}catch(b){try{a.onreadystatechange=MochiKit.Base.noop}catch(e){}}a.abort()},sendXMLHttpRequest:function(a,b){if(typeof b=="undefined"||b===null)b="";var e=MochiKit.Base,f=MochiKit.Async,j=new f.Deferred(e.partial(f._xhr_canceller,a));try{a.onreadystatechange=e.bind(f._xhr_onreadystatechange,
+a,j),a.send(b)}catch(l){try{a.onreadystatechange=null}catch(k){}j.errback(l)}return j},doXHR:function(a,b){var e=MochiKit.Async;return e.callLater(0,e._doXHR,a,b)},_doXHR:function(a,b){var e=MochiKit.Base,b=e.update({method:"GET",sendContent:""},b),f=MochiKit.Async,j=f.getXMLHttpRequest();if(b.queryString){var l=e.queryString(b.queryString);l&&(a+="?"+l)}"username"in b?j.open(b.method,a,!0,b.username,b.password):j.open(b.method,a,!0);j.overrideMimeType&&b.mimeType&&j.overrideMimeType(b.mimeType);
+j.setRequestHeader("X-Requested-With","XMLHttpRequest");if(b.headers){l=b.headers;e.isArrayLike(l)||(l=e.items(l));for(e=0;e<l.length;e++){var k=l[e];j.setRequestHeader(k[0],k[1])}}return f.sendXMLHttpRequest(j,b.sendContent)},_buildURL:function(a){if(arguments.length>1){var b=MochiKit.Base;if(b=b.queryString.apply(null,b.extend(null,arguments,1)))return a+"?"+b}return a},doSimpleXMLHttpRequest:function(a){var b=MochiKit.Async,a=b._buildURL.apply(b,arguments);return b.doXHR(a)},loadJSONDoc:function(a){var b=
+MochiKit.Async,a=b._buildURL.apply(b,arguments),e=b.doXHR(a,{mimeType:"text/plain",headers:[["Accept","application/json"]]});return e=e.addCallback(b.evalJSONRequest)},loadScript:function(a){var b=new MochiKit.Async.Deferred,e=document.createElement("script");e.type="text/javascript";e.src=a;e.onload=function(){e.onload=null;e.onerror=null;e=e.onreadystatechange=null;b.callback()};e.onerror=function(f){e.onload=null;e.onerror=null;e=e.onreadystatechange=null;f="Failed to load script at "+a+": "+f;
+b.errback(new URIError(f,a))};e.onreadystatechange=function(){if(e.readyState=="loaded"||e.readyState=="complete")e.onload();else MochiKit.Async.callLater(10,e.onerror,"Script loading timed out")};document.getElementsByTagName("head")[0].appendChild(e);return b},wait:function(a,b){var e=new MochiKit.Async.Deferred,f=MochiKit.Base.bind("callback",e,b),j=setTimeout(f,Math.floor(a*1E3));e.canceller=function(){try{clearTimeout(j)}catch(a){}};return e},callLater:function(a){var b=MochiKit.Base,e=b.partial.apply(b,
+b.extend(null,arguments,1));return MochiKit.Async.wait(a).addCallback(function(){return e()})}});MochiKit.Async.DeferredLock=function(){this.waiting=[];this.locked=!1;this.id=this._nextId()};
+MochiKit.Async.DeferredLock.prototype={__class__:MochiKit.Async.DeferredLock,acquire:function(){var a=new MochiKit.Async.Deferred;this.locked?this.waiting.push(a):(this.locked=!0,a.callback(this));return a},release:function(){if(!this.locked)throw TypeError("Tried to release an unlocked DeferredLock");this.locked=!1;if(this.waiting.length>0)this.locked=!0,this.waiting.shift().callback(this)},_nextId:MochiKit.Base.counter(),repr:function(){return"DeferredLock("+this.id+", "+(this.locked?"locked, "+
+this.waiting.length+" waiting":"unlocked")+")"},toString:MochiKit.Base.forwardCall("repr")};MochiKit.Async.DeferredList=function(a,b,e,f,j){MochiKit.Async.Deferred.apply(this,[j]);this.list=a;this.resultList=j=[];this.finishedCount=0;this.fireOnOneCallback=b;this.fireOnOneErrback=e;this.consumeErrors=f;e=MochiKit.Base.bind(this._cbDeferred,this);for(f=0;f<a.length;f++){var l=a[f];j.push(void 0);l.addCallback(e,f,!0);l.addErrback(e,f,!1)}a.length===0&&!b&&this.callback(this.resultList)};
+MochiKit.Async.DeferredList.prototype=new MochiKit.Async.Deferred;MochiKit.Async.DeferredList.prototype.constructor=MochiKit.Async.DeferredList;MochiKit.Async.DeferredList.prototype._cbDeferred=function(a,b,e){this.resultList[a]=[b,e];this.finishedCount+=1;this.fired==-1&&(b&&this.fireOnOneCallback?this.callback([a,e]):!b&&this.fireOnOneErrback?this.errback(e):this.finishedCount==this.list.length&&this.callback(this.resultList));!b&&this.consumeErrors&&(e=null);return e};
+MochiKit.Async.gatherResults=function(a){a=new MochiKit.Async.DeferredList(a,!1,!0,!1);a.addCallback(function(a){for(var e=[],f=0;f<a.length;f++)e.push(a[f][1]);return e});return a};MochiKit.Async.maybeDeferred=function(a){var b=MochiKit.Async,e;try{var f=a.apply(null,MochiKit.Base.extend([],arguments,1));e=f instanceof b.Deferred?f:f instanceof Error?b.fail(f):b.succeed(f)}catch(j){e=b.fail(j)}return e};
+MochiKit.Async.__new__=function(){var a=MochiKit.Base,b=a.partial(a._newNamedError,this);b("AlreadyCalledError",function(a){this.deferred=a});b("CancelledError",function(a){this.deferred=a});b("BrowserComplianceError",function(a){this.message=a});b("GenericError",function(a){this.message=a});b("XMLHttpRequestError",function(a,b){this.req=a;this.message=b;try{this.number=a.status}catch(j){}});a.nameFunctions(this)};MochiKit.Async.__new__();MochiKit.Base._exportSymbols(this,MochiKit.Async);
+// Input 2
+(function(a,b){function e(c,o,a){if(a===b&&c.nodeType===1)if(a="data-"+o.replace(oa,"$1-$2").toLowerCase(),a=c.getAttribute(a),typeof a==="string"){try{a=a==="true"?!0:a==="false"?!1:a==="null"?null:!d.isNaN(a)?parseFloat(a):F.test(a)?d.parseJSON(a):a}catch(u){}d.data(c,o,a)}else a=b;return a}function f(c){for(var o in c)if(o!=="toJSON")return!1;return!0}function j(c,o,a){var u=o+"defer",y=o+"queue",e=o+"mark",h=d.data(c,u,b,!0);h&&(a==="queue"||!d.data(c,y,b,!0))&&(a==="mark"||!d.data(c,e,b,!0))&&
+setTimeout(function(){!d.data(c,y,b,!0)&&!d.data(c,e,b,!0)&&(d.removeData(c,u,!0),h.resolve())},0)}function l(){return!1}function k(){return!0}function A(c,o,a){var u=d.extend({},a[0]);u.type=c;u.originalEvent={};u.liveFired=b;d.event.handle.call(o,u);u.isDefaultPrevented()&&a[0].preventDefault()}function G(c){var o,a,b,y,e,h,f,g,q,w,H,p=[];y=[];e=d._data(this,"events");if(!(c.liveFired===this||!e||!e.live||c.target.disabled||c.button&&c.type==="click")){c.namespace&&(H=RegExp("(^|\\.)"+c.namespace.split(".").join("\\.(?:.*\\.)?")+
+"(\\.|$)"));c.liveFired=this;var n=e.live.slice(0);for(f=0;f<n.length;f++)e=n[f],e.origType.replace(za,"")===c.type?y.push(e.selector):n.splice(f--,1);y=d(c.target).closest(y,c.currentTarget);g=0;for(q=y.length;g<q;g++){w=y[g];for(f=0;f<n.length;f++)if(e=n[f],w.selector===e.selector&&(!H||H.test(e.namespace))&&!w.elem.disabled){h=w.elem;b=null;if(e.preType==="mouseenter"||e.preType==="mouseleave")c.type=e.preType,(b=d(c.relatedTarget).closest(e.selector)[0])&&d.contains(h,b)&&(b=h);(!b||b!==h)&&p.push({elem:h,
+handleObj:e,level:w.level})}}g=0;for(q=p.length;g<q;g++){y=p[g];if(a&&y.level>a)break;c.currentTarget=y.elem;c.data=y.handleObj.data;c.handleObj=y.handleObj;H=y.handleObj.origHandler.apply(y.elem,arguments);if(H===!1||c.isPropagationStopped())if(a=y.level,H===!1&&(o=!1),c.isImmediatePropagationStopped())break}return o}}function D(c,o){return(c&&c!=="*"?c+".":"")+o.replace(pa,"`").replace(x,"&")}function L(c,o,a){o=o||0;if(d.isFunction(o))return d.grep(c,function(c,d){return!!o.call(c,d,c)===a});else if(o.nodeType)return d.grep(c,
+function(c){return c===o===a});else if(typeof o==="string"){var b=d.grep(c,function(c){return c.nodeType===1});if(Da.test(o))return d.filter(o,b,!a);else o=d.filter(o,b)}return d.grep(c,function(c){return d.inArray(c,o)>=0===a})}function B(c,o){if(o.nodeType===1&&d.hasData(c)){var a=d.expando,b=d.data(c),y=d.data(o,b);if(b=b[a]){var e=b.events,y=y[a]=d.extend({},b);if(e){delete y.handle;y.events={};for(var h in e){a=0;for(b=e[h].length;a<b;a++)d.event.add(o,h+(e[h][a].namespace?".":"")+e[h][a].namespace,
+e[h][a],e[h][a].data)}}}}}function z(c,o){var a;if(o.nodeType===1){o.clearAttributes&&o.clearAttributes();o.mergeAttributes&&o.mergeAttributes(c);a=o.nodeName.toLowerCase();if(a==="object")o.outerHTML=c.outerHTML;else if(a==="input"&&(c.type==="checkbox"||c.type==="radio")){if(c.checked)o.defaultChecked=o.checked=c.checked;if(o.value!==c.value)o.value=c.value}else if(a==="option")o.selected=c.defaultSelected;else if(a==="input"||a==="textarea")o.defaultValue=c.defaultValue;o.removeAttribute(d.expando)}}
+function s(c){return"getElementsByTagName"in c?c.getElementsByTagName("*"):"querySelectorAll"in c?c.querySelectorAll("*"):[]}function C(c){if(c.type==="checkbox"||c.type==="radio")c.defaultChecked=c.checked}function fa(c){d.nodeName(c,"input")?C(c):c.getElementsByTagName&&d.grep(c.getElementsByTagName("input"),C)}function R(c,a){a.src?d.ajax({url:a.src,async:!1,dataType:"script"}):d.globalEval((a.text||a.textContent||a.innerHTML||"").replace(jb,"/*$0*/"));a.parentNode&&a.parentNode.removeChild(a)}
+function P(c,a,r){var b=a==="width"?c.offsetWidth:c.offsetHeight;if(r==="border")return b;d.each(a==="width"?kb:lb,function(){r||(b-=parseFloat(d.css(c,"padding"+this))||0);r==="margin"?b+=parseFloat(d.css(c,"margin"+this))||0:b-=parseFloat(d.css(c,"border"+this+"Width"))||0});return b}function N(c){return function(a,r){var o;typeof a!=="string"&&(r=a,a="*");if(d.isFunction(r))for(var b=a.toLowerCase().split(Za),y=0,e=b.length,h,f;y<e;y++)h=b[y],(f=/^\+/.test(h))&&(h=h.substr(1)||"*"),o=c[h]=c[h]||
+[],h=o,h[f?"unshift":"push"](r)}}function t(c,a,d,u,y,e){y=y||a.dataTypes[0];e=e||{};e[y]=!0;for(var y=c[y],h=0,f=y?y.length:0,g=c===Ta,q;h<f&&(g||!q);h++)q=y[h](a,d,u),typeof q==="string"&&(!g||e[q]?q=b:(a.dataTypes.unshift(q),q=t(c,a,d,u,q,e)));if((g||!q)&&!e["*"])q=t(c,a,d,u,"*",e);return q}function U(c,a,b,u){if(d.isArray(a))d.each(a,function(a,o){b||mb.test(c)?u(c,o):U(c+"["+(typeof o==="object"||d.isArray(o)?a:"")+"]",o,b,u)});else if(!b&&a!=null&&typeof a==="object")for(var y in a)U(c+"["+
+y+"]",a[y],b,u);else u(c,a)}function M(){try{return new a.XMLHttpRequest}catch(c){}}function ga(){setTimeout(O,0);return Pa=d.now()}function O(){Pa=b}function ha(c,a){var b={};d.each($a.concat.apply([],$a.slice(0,a)),function(){b[this]=c});return b}function qa(c){if(!Ua[c]){var a=d("<"+c+">").appendTo("body"),b=a.css("display");a.remove();if(b==="none"||b===""){if(!Aa)Aa=v.createElement("iframe"),Aa.frameBorder=Aa.width=Aa.height=0;v.body.appendChild(Aa);if(!Ma||!Aa.createElement)Ma=(Aa.contentWindow||
+Aa.contentDocument).document,Ma.write("<!doctype><html><body></body></html>");a=Ma.createElement(c);Ma.body.appendChild(a);b=d.css(a,"display");v.body.removeChild(Aa)}Ua[c]=b}return Ua[c]}function va(c){return d.isWindow(c)?c:c.nodeType===9?c.defaultView||c.parentWindow:!1}var v=a.document,S=a.navigator,X=a.location,d=function(){function c(){if(!o.isReady){try{v.documentElement.doScroll("left")}catch(a){setTimeout(c,1);return}o.ready()}}var o=function(c,a){return new o.fn.init(c,a,y)},d=a.jQuery,
+u=a.$,y,e=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,f=/^\s+/,g=/\s+$/,q=/\d/,w=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,H=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,n=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Q=/(?:^|:|,)(?:\s*\[)+/g,j=/(webkit)[ \/]([\w.]+)/,K=/(opera)(?:.*version)?[ \/]([\w.]+)/,Y=/(msie) ([\w.]+)/,V=/(mozilla)(?:.*? rv:([\w.]+))?/,Na=S.userAgent,Qa,k,l=Object.prototype.toString,Va=Object.prototype.hasOwnProperty,Wa=Array.prototype.push,W=Array.prototype.slice,
+J=String.prototype.trim,I=Array.prototype.indexOf,ja={};o.fn=o.prototype={constructor:o,init:function(c,a,d){var r;if(!c)return this;if(c.nodeType)return this.context=this[0]=c,this.length=1,this;if(c==="body"&&!a&&v.body)return this.context=v,this[0]=v.body,this.selector=c,this.length=1,this;if(typeof c==="string")if((r=c.charAt(0)==="<"&&c.charAt(c.length-1)===">"&&c.length>=3?[null,c,null]:e.exec(c))&&(r[1]||!a))if(r[1])return d=(a=a instanceof o?a[0]:a)?a.ownerDocument||a:v,(c=w.exec(c))?o.isPlainObject(a)?
+(c=[v.createElement(c[1])],o.fn.attr.call(c,a,!0)):c=[d.createElement(c[1])]:(c=o.buildFragment([r[1]],[d]),c=(c.cacheable?o.clone(c.fragment):c.fragment).childNodes),o.merge(this,c);else{if((a=v.getElementById(r[2]))&&a.parentNode){if(a.id!==r[2])return d.find(c);this.length=1;this[0]=a}this.context=v;this.selector=c;return this}else return!a||a.jquery?(a||d).find(c):this.constructor(a).find(c);else if(o.isFunction(c))return d.ready(c);if(c.selector!==b)this.selector=c.selector,this.context=c.context;
+return o.makeArray(c,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return W.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this[this.length+c]:this[c]},pushStack:function(c,a,d){var b=this.constructor();o.isArray(c)?Wa.apply(b,c):o.merge(b,c);b.prevObject=this;b.context=this.context;if(a==="find")b.selector=this.selector+(this.selector?" ":"")+d;else if(a)b.selector=this.selector+"."+a+"("+d+")";return b},each:function(c,a){return o.each(this,
+c,a)},ready:function(c){o.bindReady();Qa.done(c);return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(W.apply(this,arguments),"slice",W.call(arguments).join(","))},map:function(c){return this.pushStack(o.map(this,function(a,o){return c.call(a,o,a)}))},end:function(){return this.prevObject||this.constructor(null)},push:Wa,sort:[].sort,splice:[].splice};o.fn.init.prototype=
+o.fn;o.extend=o.fn.extend=function(){var c,a,d,r,u,y=arguments[0]||{},e=1,h=arguments.length,Ha=!1;typeof y==="boolean"&&(Ha=y,y=arguments[1]||{},e=2);typeof y!=="object"&&!o.isFunction(y)&&(y={});h===e&&(y=this,--e);for(;e<h;e++)if((c=arguments[e])!=null)for(a in c)d=y[a],r=c[a],y!==r&&(Ha&&r&&(o.isPlainObject(r)||(u=o.isArray(r)))?(u?(u=!1,d=d&&o.isArray(d)?d:[]):d=d&&o.isPlainObject(d)?d:{},y[a]=o.extend(Ha,d,r)):r!==b&&(y[a]=r));return y};o.extend({noConflict:function(c){if(a.$===o)a.$=u;if(c&&
+a.jQuery===o)a.jQuery=d;return o},isReady:!1,readyWait:1,holdReady:function(c){c?o.readyWait++:o.ready(!0)},ready:function(c){if(c===!0&&!--o.readyWait||c!==!0&&!o.isReady){if(!v.body)return setTimeout(o.ready,1);o.isReady=!0;c!==!0&&--o.readyWait>0||(Qa.resolveWith(v,[o]),o.fn.trigger&&o(v).trigger("ready").unbind("ready"))}},bindReady:function(){if(!Qa){Qa=o._Deferred();if(v.readyState==="complete")return setTimeout(o.ready,1);if(v.addEventListener)v.addEventListener("DOMContentLoaded",k,!1),a.addEventListener("load",
+o.ready,!1);else if(v.attachEvent){v.attachEvent("onreadystatechange",k);a.attachEvent("onload",o.ready);var d=!1;try{d=a.frameElement==null}catch(b){}v.documentElement.doScroll&&d&&c()}}},isFunction:function(c){return o.type(c)==="function"},isArray:Array.isArray||function(c){return o.type(c)==="array"},isWindow:function(c){return c&&typeof c==="object"&&"setInterval"in c},isNaN:function(c){return c==null||!q.test(c)||isNaN(c)},type:function(c){return c==null?String(c):ja[l.call(c)]||"object"},isPlainObject:function(c){if(!c||
+o.type(c)!=="object"||c.nodeType||o.isWindow(c))return!1;if(c.constructor&&!Va.call(c,"constructor")&&!Va.call(c.constructor.prototype,"isPrototypeOf"))return!1;for(var a in c);return a===b||Va.call(c,a)},isEmptyObject:function(c){for(var a in c)return!1;return!0},error:function(c){throw c;},parseJSON:function(c){if(typeof c!=="string"||!c)return null;c=o.trim(c);if(a.JSON&&a.JSON.parse)return a.JSON.parse(c);if(H.test(c.replace(p,"@").replace(n,"]").replace(Q,"")))return(new Function("return "+c))();
+o.error("Invalid JSON: "+c)},parseXML:function(c,d,b){a.DOMParser?(b=new DOMParser,d=b.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c));b=d.documentElement;(!b||!b.nodeName||b.nodeName==="parsererror")&&o.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(c){c&&h.test(c)&&(a.execScript||function(c){a.eval.call(a,c)})(c)},nodeName:function(c,a){return c.nodeName&&c.nodeName.toUpperCase()===a.toUpperCase()},each:function(c,a,
+d){var r,u=0,y=c.length,e=y===b||o.isFunction(c);if(d)if(e)for(r in c){if(a.apply(c[r],d)===!1)break}else for(;u<y;){if(a.apply(c[u++],d)===!1)break}else if(e)for(r in c){if(a.call(c[r],r,c[r])===!1)break}else for(;u<y;)if(a.call(c[u],u,c[u++])===!1)break;return c},trim:J?function(c){return c==null?"":J.call(c)}:function(c){return c==null?"":c.toString().replace(f,"").replace(g,"")},makeArray:function(c,a){var d=a||[];if(c!=null){var b=o.type(c);c.length==null||b==="string"||b==="function"||b==="regexp"||
+o.isWindow(c)?Wa.call(d,c):o.merge(d,c)}return d},inArray:function(c,a){if(I)return I.call(a,c);for(var o=0,d=a.length;o<d;o++)if(a[o]===c)return o;return-1},merge:function(c,a){var o=c.length,d=0;if(typeof a.length==="number")for(var r=a.length;d<r;d++)c[o++]=a[d];else for(;a[d]!==b;)c[o++]=a[d++];c.length=o;return c},grep:function(c,a,o){for(var d=[],b,o=!!o,r=0,u=c.length;r<u;r++)b=!!a(c[r],r),o!==b&&d.push(c[r]);return d},map:function(c,a,d){var r,u,y=[],e=0,h=c.length;if(c instanceof o||h!==
+b&&typeof h==="number"&&(h>0&&c[0]&&c[h-1]||h===0||o.isArray(c)))for(;e<h;e++)r=a(c[e],e,d),r!=null&&(y[y.length]=r);else for(u in c)r=a(c[u],u,d),r!=null&&(y[y.length]=r);return y.concat.apply([],y)},guid:1,proxy:function(c,a){if(typeof a==="string")var d=c[a],a=c,c=d;if(!o.isFunction(c))return b;var r=W.call(arguments,2),d=function(){return c.apply(a,r.concat(W.call(arguments)))};d.guid=c.guid=c.guid||d.guid||o.guid++;return d},access:function(c,a,d,r,u,y){var e=c.length;if(typeof a==="object"){for(var h in a)o.access(c,
+h,a[h],r,u,d);return c}if(d!==b){r=!y&&r&&o.isFunction(d);for(h=0;h<e;h++)u(c[h],a,r?d.call(c[h],h,u(c[h],a)):d,y);return c}return e?u(c[0],a):b},now:function(){return(new Date).getTime()},uaMatch:function(c){c=c.toLowerCase();c=j.exec(c)||K.exec(c)||Y.exec(c)||c.indexOf("compatible")<0&&V.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},sub:function(){function c(a,o){return new c.fn.init(a,o)}o.extend(!0,c,this);c.superclass=this;c.fn=c.prototype=this();c.fn.constructor=c;c.sub=this.sub;c.fn.init=
+function(d,b){b&&b instanceof o&&!(b instanceof c)&&(b=c(b));return o.fn.init.call(this,d,b,a)};c.fn.init.prototype=c.fn;var a=c(v);return c},browser:{}});o.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(c,a){ja["[object "+a+"]"]=a.toLowerCase()});Na=o.uaMatch(Na);if(Na.browser)o.browser[Na.browser]=!0,o.browser.version=Na.version;if(o.browser.webkit)o.browser.safari=!0;h.test("\u00a0")&&(f=/^[\s\xA0]+/,g=/[\s\xA0]+$/);y=o(v);v.addEventListener?k=function(){v.removeEventListener("DOMContentLoaded",
+k,!1);o.ready()}:v.attachEvent&&(k=function(){v.readyState==="complete"&&(v.detachEvent("onreadystatechange",k),o.ready())});return o}(),aa="done fail isResolved isRejected promise then always pipe".split(" "),ba=[].slice;d.extend({_Deferred:function(){var c=[],a,b,u,y={done:function(){if(!u){var b=arguments,r,e,h,f,g;a&&(g=a,a=0);r=0;for(e=b.length;r<e;r++)h=b[r],f=d.type(h),f==="array"?y.done.apply(y,h):f==="function"&&c.push(h);g&&y.resolveWith(g[0],g[1])}return this},resolveWith:function(d,y){if(!u&&
+!a&&!b){y=y||[];b=1;try{for(;c[0];)c.shift().apply(d,y)}finally{a=[d,y],b=0}}return this},resolve:function(){y.resolveWith(this,arguments);return this},isResolved:function(){return!(!b&&!a)},cancel:function(){u=1;c=[];return this}};return y},Deferred:function(c){var a=d._Deferred(),b=d._Deferred(),u;d.extend(a,{then:function(c,d){a.done(c).fail(d);return this},always:function(){return a.done.apply(a,arguments).fail.apply(this,arguments)},fail:b.done,rejectWith:b.resolveWith,reject:b.resolve,isRejected:b.isResolved,
+pipe:function(c,b){return d.Deferred(function(r){d.each({done:[c,"resolve"],fail:[b,"reject"]},function(c,b){var u=b[0],y=b[1],e;if(d.isFunction(u))a[c](function(){if((e=u.apply(this,arguments))&&d.isFunction(e.promise))e.promise().then(r.resolve,r.reject);else r[y](e)});else a[c](r[y])})}).promise()},promise:function(c){if(c==null){if(u)return u;u=c={}}for(var d=aa.length;d--;)c[aa[d]]=a[aa[d]];return c}});a.done(b.cancel).fail(a.cancel);delete a.cancel;c&&c.call(a,a);return a},when:function(c){function a(c){return function(a){b[c]=
+arguments.length>1?ba.call(arguments,0):a;--e||h.resolveWith(h,ba.call(b,0))}}var b=arguments,u=0,y=b.length,e=y,h=y<=1&&c&&d.isFunction(c.promise)?c:d.Deferred();if(y>1){for(;u<y;u++)b[u]&&d.isFunction(b[u].promise)?b[u].promise().then(a(u),h.reject):--e;e||h.resolveWith(h,b)}else h!==c&&h.resolveWith(h,y?[c]:[]);return h.promise()}});d.support=function(){var c=v.createElement("div"),a=v.documentElement,d,b,y,e,h,f;c.setAttribute("className","t");c.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+d=c.getElementsByTagName("*");b=c.getElementsByTagName("a")[0];if(!d||!d.length||!b)return{};y=v.createElement("select");e=y.appendChild(v.createElement("option"));d=c.getElementsByTagName("input")[0];h={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/top/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:/^0.55$/.test(b.style.opacity),cssFloat:!!b.style.cssFloat,
+checkOn:d.value==="on",optSelected:e.selected,getSetAttribute:c.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};d.checked=!0;h.noCloneChecked=d.cloneNode(!0).checked;y.disabled=!0;h.optDisabled=!e.disabled;try{delete c.test}catch(g){h.deleteExpando=!1}!c.addEventListener&&c.attachEvent&&c.fireEvent&&(c.attachEvent("onclick",function ib(){h.noCloneEvent=!1;c.detachEvent("onclick",
+ib)}),c.cloneNode(!0).fireEvent("onclick"));d=v.createElement("input");d.value="t";d.setAttribute("type","radio");h.radioValue=d.value==="t";d.setAttribute("checked","checked");c.appendChild(d);b=v.createDocumentFragment();b.appendChild(c.firstChild);h.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;c.innerHTML="";c.style.width=c.style.paddingLeft="1px";b=v.createElement("body");y={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(f in y)b.style[f]=y[f];b.appendChild(c);
+a.insertBefore(b,a.firstChild);h.appendChecked=d.checked;h.boxModel=c.offsetWidth===2;if("zoom"in c.style)c.style.display="inline",c.style.zoom=1,h.inlineBlockNeedsLayout=c.offsetWidth===2,c.style.display="",c.innerHTML="<div style='width:4px;'></div>",h.shrinkWrapBlocks=c.offsetWidth!==2;c.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";y=c.getElementsByTagName("td");d=y[0].offsetHeight===0;y[0].style.display="";y[1].style.display="none";h.reliableHiddenOffsets=
+d&&y[0].offsetHeight===0;c.innerHTML="";if(v.defaultView&&v.defaultView.getComputedStyle)d=v.createElement("div"),d.style.width="0",d.style.marginRight="0",c.appendChild(d),h.reliableMarginRight=(parseInt((v.defaultView.getComputedStyle(d,null)||{marginRight:0}).marginRight,10)||0)===0;b.innerHTML="";a.removeChild(b);if(c.attachEvent)for(f in{submit:1,change:1,focusin:1})a="on"+f,d=a in c,d||(c.setAttribute(a,"return;"),d=typeof c[a]==="function"),h[f+"Bubbles"]=d;return h}();d.boxModel=d.support.boxModel;
+var F=/^(?:\{.*\}|\[.*\])$/,oa=/([a-z])([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(c){c=c.nodeType?d.cache[c[d.expando]]:c[d.expando];return!!c&&!f(c)},data:function(c,a,r,u){if(d.acceptData(c)){var y=d.expando,e=typeof a==="string",h=c.nodeType,f=h?d.cache:c,g=h?c[d.expando]:c[d.expando]&&d.expando;if(g&&(!u||!g||f[g][y])||!(e&&r===b)){if(!g)h?c[d.expando]=
+g=++d.uuid:g=d.expando;if(!f[g]&&(f[g]={},!h))f[g].toJSON=d.noop;if(typeof a==="object"||typeof a==="function")u?f[g][y]=d.extend(f[g][y],a):f[g]=d.extend(f[g],a);c=f[g];u&&(c[y]||(c[y]={}),c=c[y]);r!==b&&(c[d.camelCase(a)]=r);if(a==="events"&&!c[a])return c[y]&&c[y].events;return e?c[d.camelCase(a)]:c}}},removeData:function(c,o,b){if(d.acceptData(c)){var u=d.expando,y=c.nodeType,e=y?d.cache:c,h=y?c[d.expando]:d.expando;if(e[h]){if(o){var g=b?e[h][u]:e[h];if(g&&(delete g[o],!f(g)))return}if(b&&(delete e[h][u],
+!f(e[h])))return;o=e[h][u];d.support.deleteExpando||e!=a?delete e[h]:e[h]=null;if(o){e[h]={};if(!y)e[h].toJSON=d.noop;e[h][u]=o}else y&&(d.support.deleteExpando?delete c[d.expando]:c.removeAttribute?c.removeAttribute(d.expando):c[d.expando]=null)}}},_data:function(c,a,b){return d.data(c,a,b,!0)},acceptData:function(c){if(c.nodeName){var a=d.noData[c.nodeName.toLowerCase()];if(a)return!(a===!0||c.getAttribute("classid")!==a)}return!0}});d.fn.extend({data:function(c,a){var r=null;if(typeof c==="undefined"){if(this.length&&
+(r=d.data(this[0]),this[0].nodeType===1))for(var u=this[0].attributes,y,h=0,f=u.length;h<f;h++)y=u[h].name,y.indexOf("data-")===0&&(y=d.camelCase(y.substring(5)),e(this[0],y,r[y]));return r}else if(typeof c==="object")return this.each(function(){d.data(this,c)});var g=c.split(".");g[1]=g[1]?"."+g[1]:"";return a===b?(r=this.triggerHandler("getData"+g[1]+"!",[g[0]]),r===b&&this.length&&(r=d.data(this[0],c),r=e(this[0],c,r)),r===b&&g[1]?this.data(g[0]):r):this.each(function(){var b=d(this),r=[g[0],a];
+b.triggerHandler("setData"+g[1]+"!",r);d.data(this,c,a);b.triggerHandler("changeData"+g[1]+"!",r)})},removeData:function(c){return this.each(function(){d.removeData(this,c)})}});d.extend({_mark:function(c,a){c&&(a=(a||"fx")+"mark",d.data(c,a,(d.data(c,a,b,!0)||0)+1,!0))},_unmark:function(c,a,r){c!==!0&&(r=a,a=c,c=!1);if(a){var r=r||"fx",u=r+"mark";(c=c?0:(d.data(a,u,b,!0)||1)-1)?d.data(a,u,c,!0):(d.removeData(a,u,!0),j(a,r,"mark"))}},queue:function(c,a,r){if(c){var a=(a||"fx")+"queue",u=d.data(c,
+a,b,!0);r&&(!u||d.isArray(r)?u=d.data(c,a,d.makeArray(r),!0):u.push(r));return u||[]}},dequeue:function(c,a){var a=a||"fx",b=d.queue(c,a),u=b.shift();u==="inprogress"&&(u=b.shift());u&&(a==="fx"&&b.unshift("inprogress"),u.call(c,function(){d.dequeue(c,a)}));b.length||(d.removeData(c,a+"queue",!0),j(c,a,"queue"))}});d.fn.extend({queue:function(c,a){typeof c!=="string"&&(a=c,c="fx");if(a===b)return d.queue(this[0],c);return this.each(function(){var b=d.queue(this,c,a);c==="fx"&&b[0]!=="inprogress"&&
+d.dequeue(this,c)})},dequeue:function(c){return this.each(function(){d.dequeue(this,c)})},delay:function(c,a){c=d.fx?d.fx.speeds[c]||c:c;a=a||"fx";return this.queue(a,function(){var b=this;setTimeout(function(){d.dequeue(b,a)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c){function a(){--h||r.resolveWith(u,[u])}typeof c!=="string"&&(c=b);var c=c||"fx",r=d.Deferred(),u=this,e=u.length,h=1,g=c+"defer",f=c+"queue";c+="mark";for(var q;e--;)if(q=d.data(u[e],g,b,!0)||(d.data(u[e],
+f,b,!0)||d.data(u[e],c,b,!0))&&d.data(u[e],g,d._Deferred(),!0))h++,q.done(a);a();return r.promise()}});var ka=/[\n\t\r]/g,ca=/\s+/,ra=/\r/g,wa=/^(?:button|input)$/i,$=/^(?:button|input|object|select|textarea)$/i,g=/^a(?:rea)?$/i,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=/\:/,J,n;d.fn.extend({attr:function(c,a){return d.access(this,c,a,!0,d.attr)},removeAttr:function(c){return this.each(function(){d.removeAttr(this,
+c)})},prop:function(c,a){return d.access(this,c,a,!0,d.prop)},removeProp:function(c){c=d.propFix[c]||c;return this.each(function(){try{this[c]=b,delete this[c]}catch(a){}})},addClass:function(c){if(d.isFunction(c))return this.each(function(a){var o=d(this);o.addClass(c.call(this,a,o.attr("class")||""))});if(c&&typeof c==="string")for(var a=(c||"").split(ca),b=0,u=this.length;b<u;b++){var e=this[b];if(e.nodeType===1)if(e.className){for(var h=" "+e.className+" ",g=e.className,f=0,q=a.length;f<q;f++)h.indexOf(" "+
+a[f]+" ")<0&&(g+=" "+a[f]);e.className=d.trim(g)}else e.className=c}return this},removeClass:function(c){if(d.isFunction(c))return this.each(function(a){var o=d(this);o.removeClass(c.call(this,a,o.attr("class")))});if(c&&typeof c==="string"||c===b)for(var a=(c||"").split(ca),r=0,u=this.length;r<u;r++){var e=this[r];if(e.nodeType===1&&e.className)if(c){for(var h=(" "+e.className+" ").replace(ka," "),g=0,f=a.length;g<f;g++)h=h.replace(" "+a[g]+" "," ");e.className=d.trim(h)}else e.className=""}return this},
+toggleClass:function(c,a){var b=typeof c,u=typeof a==="boolean";if(d.isFunction(c))return this.each(function(b){var r=d(this);r.toggleClass(c.call(this,b,r.attr("class"),a),a)});return this.each(function(){if(b==="string")for(var e,h=0,g=d(this),f=a,q=c.split(ca);e=q[h++];)f=u?f:!g.hasClass(e),g[f?"addClass":"removeClass"](e);else if(b==="undefined"||b==="boolean")this.className&&d._data(this,"__className__",this.className),this.className=this.className||c===!1?"":d._data(this,"__className__")||""})},
+hasClass:function(c){for(var c=" "+c+" ",a=0,d=this.length;a<d;a++)if((" "+this[a].className+" ").replace(ka," ").indexOf(c)>-1)return!0;return!1},val:function(c){var a,r,u=this[0];if(!arguments.length){if(u){if((a=d.valHooks[u.nodeName.toLowerCase()]||d.valHooks[u.type])&&"get"in a&&(r=a.get(u,"value"))!==b)return r;return(u.value||"").replace(ra,"")}return b}var e=d.isFunction(c);return this.each(function(r){var u=d(this);if(this.nodeType===1&&(r=e?c.call(this,r,u.val()):c,r==null?r="":typeof r===
+"number"?r+="":d.isArray(r)&&(r=d.map(r,function(c){return c==null?"":c+""})),a=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type],!a||!("set"in a)||a.set(this,r,"value")===b))this.value=r})}});d.extend({valHooks:{option:{get:function(c){var a=c.attributes.value;return!a||a.specified?c.value:c.text}},select:{get:function(c){var a,b=c.selectedIndex,u=[],e=c.options,c=c.type==="select-one";if(b<0)return null;for(var h=c?b:0,g=c?b+1:e.length;h<g;h++)if(a=e[h],a.selected&&(d.support.optDisabled?
+!a.disabled:a.getAttribute("disabled")===null)&&(!a.parentNode.disabled||!d.nodeName(a.parentNode,"optgroup"))){a=d(a).val();if(c)return a;u.push(a)}if(c&&!u.length&&e.length)return d(e[b]).val();return u},set:function(c,a){var b=d.makeArray(a);d(c).find("option").each(function(){this.selected=d.inArray(d(this).val(),b)>=0});if(!b.length)c.selectedIndex=-1;return b}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(c,a,r,u){var e=
+c.nodeType;if(!c||e===3||e===8||e===2)return b;if(u&&a in d.attrFn)return d(c)[a](r);if(!("getAttribute"in c))return d.prop(c,a,r);var h,a=(e=e!==1||!d.isXMLDoc(c))&&d.attrFix[a]||a,u=d.attrHooks[a];if(!u)if(p.test(a)&&(typeof r==="boolean"||r===b||r.toLowerCase()===a.toLowerCase()))u=n;else if(J&&(d.nodeName(c,"form")||V.test(a)))u=J;return r!==b?r===null?(d.removeAttr(c,a),b):u&&"set"in u&&e&&(h=u.set(c,r,a))!==b?h:(c.setAttribute(a,""+r),r):u&&"get"in u&&e?u.get(c,a):(h=c.getAttribute(a),h===null?
+b:h)},removeAttr:function(c,a){var b;if(c.nodeType===1&&(a=d.attrFix[a]||a,d.support.getSetAttribute?c.removeAttribute(a):(d.attr(c,a,""),c.removeAttributeNode(c.getAttributeNode(a))),p.test(a)&&(b=d.propFix[a]||a)in c))c[b]=!1},attrHooks:{type:{set:function(c,a){if(wa.test(c.nodeName)&&c.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&a==="radio"&&d.nodeName(c,"input")){var b=c.value;c.setAttribute("type",a);if(b)c.value=b;return a}}},tabIndex:{get:function(c){var a=
+c.getAttributeNode("tabIndex");return a&&a.specified?parseInt(a.value,10):$.test(c.nodeName)||g.test(c.nodeName)&&c.href?0:b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(c,a,r){var e=c.nodeType;if(!c||e===3||e===8||e===2)return b;var h,a=(e!==1||!d.isXMLDoc(c))&&
+d.propFix[a]||a,e=d.propHooks[a];return r!==b?e&&"set"in e&&(h=e.set(c,r,a))!==b?h:c[a]=r:e&&"get"in e&&(h=e.get(c,a))!==b?h:c[a]},propHooks:{}});n={get:function(c,a){return c[d.propFix[a]||a]?a.toLowerCase():b},set:function(c,a,b){var e;a===!1?d.removeAttr(c,b):(e=d.propFix[b]||b,e in c&&(c[e]=a),c.setAttribute(b,b.toLowerCase()));return b}};d.attrHooks.value={get:function(c,a){if(J&&d.nodeName(c,"button"))return J.get(c,a);return c.value},set:function(c,a,b){if(J&&d.nodeName(c,"button"))return J.set(c,
+a,b);c.value=a}};if(!d.support.getSetAttribute)d.attrFix=d.propFix,J=d.attrHooks.name=d.valHooks.button={get:function(c,a){var d;return(d=c.getAttributeNode(a))&&d.nodeValue!==""?d.nodeValue:b},set:function(c,a,d){if(c=c.getAttributeNode(d))return c.nodeValue=a}},d.each(["width","height"],function(c,a){d.attrHooks[a]=d.extend(d.attrHooks[a],{set:function(c,d){if(d==="")return c.setAttribute(a,"auto"),d}})});d.support.hrefNormalized||d.each(["href","src","width","height"],function(c,a){d.attrHooks[a]=
+d.extend(d.attrHooks[a],{get:function(c){c=c.getAttribute(a,2);return c===null?b:c}})});if(!d.support.style)d.attrHooks.style={get:function(c){return c.style.cssText.toLowerCase()||b},set:function(c,a){return c.style.cssText=""+a}};if(!d.support.optSelected)d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(){}});d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(c){return c.getAttribute("value")===null?"on":c.value}}});d.each(["radio","checkbox"],
+function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(c,a){if(d.isArray(a))return c.checked=d.inArray(d(c).val(),a)>=0}})});var za=/\.(.*)$/,sa=/^(?:textarea|input|select)$/i,pa=/\./g,x=/ /g,da=/[^\w\s.|`]/g,ia=function(c){return c.replace(da,"\\$&")};d.event={add:function(c,a,r,e){if(!(c.nodeType===3||c.nodeType===8)){if(r===!1)r=l;else if(!r)return;var h,g;if(r.handler)h=r,r=h.handler;if(!r.guid)r.guid=d.guid++;if(g=d._data(c)){var f=g.events,q=g.handle;if(!f)g.events=f={};if(!q)g.handle=
+q=function(c){return typeof d!=="undefined"&&(!c||d.event.triggered!==c.type)?d.event.handle.apply(q.elem,arguments):b};q.elem=c;for(var a=a.split(" "),w,H=0,p;w=a[H++];){g=h?d.extend({},h):{handler:r,data:e};w.indexOf(".")>-1?(p=w.split("."),w=p.shift(),g.namespace=p.slice(0).sort().join(".")):(p=[],g.namespace="");g.type=w;if(!g.guid)g.guid=r.guid;var n=f[w],Q=d.event.special[w]||{};if(!n&&(n=f[w]=[],!Q.setup||Q.setup.call(c,e,p,q)===!1))c.addEventListener?c.addEventListener(w,q,!1):c.attachEvent&&
+c.attachEvent("on"+w,q);if(Q.add&&(Q.add.call(c,g),!g.handler.guid))g.handler.guid=r.guid;n.push(g);d.event.global[w]=!0}c=null}}},global:{},remove:function(c,a,r,e){if(!(c.nodeType===3||c.nodeType===8)){r===!1&&(r=l);var h,g,f=0,q,w,p,H,n,Q,j=d.hasData(c)&&d._data(c),K=j&&j.events;if(j&&K){if(a&&a.type)r=a.handler,a=a.type;if(!a||typeof a==="string"&&a.charAt(0)===".")for(h in a=a||"",K)d.event.remove(c,h+a);else{for(a=a.split(" ");h=a[f++];)if(H=h,q=h.indexOf(".")<0,w=[],q||(w=h.split("."),h=w.shift(),
+p=RegExp("(^|\\.)"+d.map(w.slice(0).sort(),ia).join("\\.(?:.*\\.)?")+"(\\.|$)")),n=K[h])if(r){H=d.event.special[h]||{};for(g=e||0;g<n.length;g++)if(Q=n[g],r.guid===Q.guid){if(q||p.test(Q.namespace))e==null&&n.splice(g--,1),H.remove&&H.remove.call(c,Q);if(e!=null)break}if(n.length===0||e!=null&&n.length===1)(!H.teardown||H.teardown.call(c,w)===!1)&&d.removeEvent(c,h,j.handle),delete K[h]}else for(g=0;g<n.length;g++)if(Q=n[g],q||p.test(Q.namespace))d.event.remove(c,H,Q.handler,g),n.splice(g--,1);if(d.isEmptyObject(K)){if(a=
+j.handle)a.elem=null;delete j.events;delete j.handle;d.isEmptyObject(j)&&d.removeData(c,b,!0)}}}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,o,r,e){var h=c.type||c,g=[],f;h.indexOf("!")>=0&&(h=h.slice(0,-1),f=!0);h.indexOf(".")>=0&&(g=h.split("."),h=g.shift(),g.sort());if(r&&!d.event.customEvent[h]||d.event.global[h]){c=typeof c==="object"?c[d.expando]?c:new d.Event(h,c):new d.Event(h);c.type=h;c.exclusive=f;c.namespace=g.join(".");c.namespace_re=RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+
+"(\\.|$)");if(e||!r)c.preventDefault(),c.stopPropagation();if(r){if(!(r.nodeType===3||r.nodeType===8)){c.result=b;c.target=r;o=o?d.makeArray(o):[];o.unshift(c);g=r;e=h.indexOf(":")<0?"on"+h:"";do{f=d._data(g,"handle");c.currentTarget=g;f&&f.apply(g,o);if(e&&d.acceptData(g)&&g[e]&&g[e].apply(g,o)===!1)c.result=!1,c.preventDefault();g=g.parentNode||g.ownerDocument||g===c.target.ownerDocument&&a}while(g&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var q,g=d.event.special[h]||{};if((!g._default||
+g._default.call(r.ownerDocument,c)===!1)&&!(h==="click"&&d.nodeName(r,"a"))&&d.acceptData(r)){try{if(e&&r[h])(q=r[e])&&(r[e]=null),d.event.triggered=h,r[h]()}catch(w){}q&&(r[e]=q);d.event.triggered=b}}return c.result}}else d.each(d.cache,function(){var a=this[d.expando];a&&a.events&&a.events[h]&&d.event.trigger(c,o,a.handle.elem)})}},handle:function(c){var c=d.event.fix(c||a.event),o=((d._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,h=Array.prototype.slice.call(arguments,
+0);h[0]=c;c.currentTarget=this;for(var g=0,f=o.length;g<f;g++){var q=o[g];if(e||c.namespace_re.test(q.namespace)){c.handler=q.handler;c.data=q.data;c.handleObj=q;q=q.handler.apply(this,h);if(q!==b)c.result=q,q===!1&&(c.preventDefault(),c.stopPropagation());if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+fix:function(c){if(c[d.expando])return c;for(var a=c,c=d.Event(a),e=this.props.length,h;e;)h=this.props[--e],c[h]=a[h];if(!c.target)c.target=c.srcElement||v;if(c.target.nodeType===3)c.target=c.target.parentNode;if(!c.relatedTarget&&c.fromElement)c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement;if(c.pageX==null&&c.clientX!=null)e=c.target.ownerDocument||v,a=e.documentElement,e=e.body,c.pageX=c.clientX+(a&&a.scrollLeft||e&&e.scrollLeft||0)-(a&&a.clientLeft||e&&e.clientLeft||0),c.pageY=
+c.clientY+(a&&a.scrollTop||e&&e.scrollTop||0)-(a&&a.clientTop||e&&e.clientTop||0);if(c.which==null&&(c.charCode!=null||c.keyCode!=null))c.which=c.charCode!=null?c.charCode:c.keyCode;if(!c.metaKey&&c.ctrlKey)c.metaKey=c.ctrlKey;if(!c.which&&c.button!==b)c.which=c.button&1?1:c.button&2?3:c.button&4?2:0;return c},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(c){d.event.add(this,D(c.origType,c.selector),d.extend({},c,{handler:G,guid:c.handler.guid}))},remove:function(c){d.event.remove(this,
+D(c.origType,c.selector),c)}},beforeunload:{setup:function(c,a,b){if(d.isWindow(this))this.onbeforeunload=b},teardown:function(c,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};d.removeEvent=v.removeEventListener?function(c,a,d){c.removeEventListener&&c.removeEventListener(a,d,!1)}:function(c,a,d){c.detachEvent&&c.detachEvent("on"+a,d)};d.Event=function(c,a){if(!this.preventDefault)return new d.Event(c,a);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||
+c.returnValue===!1||c.getPreventDefault&&c.getPreventDefault()?k:l):this.type=c;a&&d.extend(this,a);this.timeStamp=d.now();this[d.expando]=!0};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var c=this.originalEvent;if(c)c.preventDefault?c.preventDefault():c.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=k;var c=this.originalEvent;if(c)c.stopPropagation&&c.stopPropagation(),c.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=
+k;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var la=function(c){var a=c.relatedTarget;c.type=c.data;try{if(!a||a===v||a.parentNode){for(;a&&a!==this;)a=a.parentNode;a!==this&&d.event.handle.apply(this,arguments)}}catch(b){}},E=function(c){c.type=c.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,a){d.event.special[c]={setup:function(b){d.event.add(this,a,b&&b.selector?E:la,c)},teardown:function(c){d.event.remove(this,
+a,c&&c.selector?E:la)}}});if(!d.support.submitBubbles)d.event.special.submit={setup:function(){if(d.nodeName(this,"form"))return!1;else d.event.add(this,"click.specialSubmit",function(c){var a=c.target,b=a.type;(b==="submit"||b==="image")&&d(a).closest("form").length&&A("submit",this,arguments)}),d.event.add(this,"keypress.specialSubmit",function(c){var a=c.target,b=a.type;(b==="text"||b==="password")&&d(a).closest("form").length&&c.keyCode===13&&A("submit",this,arguments)})},teardown:function(){d.event.remove(this,
+".specialSubmit")}};if(!d.support.changeBubbles){var ea,ma=function(c){var a=c.type,b=c.value;if(a==="radio"||a==="checkbox")b=c.checked;else if(a==="select-multiple")b=c.selectedIndex>-1?d.map(c.options,function(c){return c.selected}).join("-"):"";else if(d.nodeName(c,"select"))b=c.selectedIndex;return b},xa=function(c,a){var e=c.target,h,g;if(sa.test(e.nodeName)&&!e.readOnly&&(h=d._data(e,"_change_data"),g=ma(e),(c.type!=="focusout"||e.type!=="radio")&&d._data(e,"_change_data",g),!(h===b||g===h)))if(h!=
+null||g)c.type="change",c.liveFired=b,d.event.trigger(c,a,e)};d.event.special.change={filters:{focusout:xa,beforedeactivate:xa,click:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(b==="radio"||b==="checkbox"||d.nodeName(a,"select"))&&xa.call(this,c)},keydown:function(c){var a=c.target,b=d.nodeName(a,"input")?a.type:"";(c.keyCode===13&&!d.nodeName(a,"textarea")||c.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")&&xa.call(this,c)},beforeactivate:function(c){c=c.target;
+d._data(c,"_change_data",ma(c))}},setup:function(){if(this.type==="file")return!1;for(var c in ea)d.event.add(this,c+".specialChange",ea[c]);return sa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return sa.test(this.nodeName)}};ea=d.event.special.change.filters;ea.focus=ea.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin",blur:"focusout"},function(c,a){function b(c){var e=d.event.fix(c);e.type=a;e.originalEvent={};d.event.trigger(e,null,e.target);e.isDefaultPrevented()&&
+c.preventDefault()}var e=0;d.event.special[a]={setup:function(){e++===0&&v.addEventListener(c,b,!0)},teardown:function(){--e===0&&v.removeEventListener(c,b,!0)}}});d.each(["bind","one"],function(c,a){d.fn[a]=function(c,e,h){var g;if(typeof c==="object"){for(var f in c)this[a](f,e,c[f],h);return this}if(arguments.length===2||e===!1)h=e,e=b;a==="one"?(g=function(c){d(this).unbind(c,g);return h.apply(this,arguments)},g.guid=h.guid||d.guid++):g=h;if(c==="unload"&&a!=="one")this.one(c,e,h);else{f=0;for(var q=
+this.length;f<q;f++)d.event.add(this[f],c,g,e)}return this}});d.fn.extend({unbind:function(c,a){if(typeof c==="object"&&!c.preventDefault)for(var b in c)this.unbind(b,c[b]);else{b=0;for(var e=this.length;b<e;b++)d.event.remove(this[b],c,a)}return this},delegate:function(c,a,d,b){return this.live(a,d,b,c)},undelegate:function(c,a,d){return arguments.length===0?this.unbind("live"):this.die(a,null,d,c)},trigger:function(c,a){return this.each(function(){d.event.trigger(c,a,this)})},triggerHandler:function(c,
+a){if(this[0])return d.event.trigger(c,a,this[0],!0)},toggle:function(c){var a=arguments,b=c.guid||d.guid++,e=0,h=function(b){var h=(d.data(this,"lastToggle"+c.guid)||0)%e;d.data(this,"lastToggle"+c.guid,h+1);b.preventDefault();return a[h].apply(this,arguments)||!1};for(h.guid=b;e<a.length;)a[e++].guid=b;return this.click(h)},hover:function(c,a){return this.mouseenter(c).mouseleave(a||c)}});var ta={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],
+function(c,a){d.fn[a]=function(c,e,h,g){var f=0,q,w,H=g||this.selector,p=g?this:d(this.context);if(typeof c==="object"&&!c.preventDefault){for(q in c)p[a](q,e,c[q],H);return this}if(a==="die"&&!c&&g&&g.charAt(0)===".")return p.unbind(g),this;if(e===!1||d.isFunction(e))h=e||l,e=b;for(c=(c||"").split(" ");(g=c[f++])!=null;)if(q=za.exec(g),w="",q&&(w=q[0],g=g.replace(za,"")),g==="hover")c.push("mouseenter"+w,"mouseleave"+w);else if(q=g,ta[g]?(c.push(ta[g]+w),g+=w):g=(ta[g]||g)+w,a==="live"){w=0;for(var n=
+p.length;w<n;w++)d.event.add(p[w],"live."+D(g,H),{data:e,selector:H,handler:h,origType:g,origHandler:h,preType:q})}else p.unbind("live."+D(g,H),h);return this}});d.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(c,a){d.fn[a]=function(c,d){d==null&&(d=c,c=null);return arguments.length>0?this.bind(a,c,d):this.trigger(a)};d.attrFn&&(d.attrFn[a]=
+!0)});(function(){function c(c,a,d,b,e,h){for(var e=0,o=b.length;e<o;e++){var g=b[e];if(g){for(var r=!1,g=g[c];g;){if(g.sizcache===d){r=b[g.sizset];break}if(g.nodeType===1&&!h)g.sizcache=d,g.sizset=e;if(g.nodeName.toLowerCase()===a){r=g;break}g=g[c]}b[e]=r}}}function a(c,d,b,e,h,o){for(var h=0,g=e.length;h<g;h++){var r=e[h];if(r){for(var u=!1,r=r[c];r;){if(r.sizcache===b){u=e[r.sizset];break}if(r.nodeType===1){if(!o)r.sizcache=b,r.sizset=h;if(typeof d!=="string"){if(r===d){u=!0;break}}else if(p.filter(d,
+[r]).length>0){u=r;break}}r=r[c]}e[h]=u}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,h=0,g=Object.prototype.toString,f=!1,q=!0,w=/\\/g,H=/\W/;[0,0].sort(function(){q=!1;return 0});var p=function(c,a,d,b){var d=d||[],h=a=a||v;if(a.nodeType!==1&&a.nodeType!==9)return[];if(!c||typeof c!=="string")return d;var o,u,f,q,w,H=!0,j=p.isXML(a),K=[],Ha=c;do if(e.exec(""),o=e.exec(Ha))if(Ha=o[3],K.push(o[1]),o[2]){q=
+o[3];break}while(o);if(K.length>1&&Q.exec(c))if(K.length===2&&n.relative[K[0]])u=l(K[0]+K[1],a);else for(u=n.relative[K[0]]?[a]:p(K.shift(),a);K.length;)c=K.shift(),n.relative[c]&&(c+=K.shift()),u=l(c,u);else if(!b&&K.length>1&&a.nodeType===9&&!j&&n.match.ID.test(K[0])&&!n.match.ID.test(K[K.length-1])&&(o=p.find(K.shift(),a,j),a=o.expr?p.filter(o.expr,o.set)[0]:o.set[0]),a){o=b?{expr:K.pop(),set:Y(b)}:p.find(K.pop(),K.length===1&&(K[0]==="~"||K[0]==="+")&&a.parentNode?a.parentNode:a,j);u=o.expr?p.filter(o.expr,
+o.set):o.set;for(K.length>0?f=Y(u):H=!1;K.length;)o=w=K.pop(),n.relative[w]?o=K.pop():w="",o==null&&(o=a),n.relative[w](f,o,j)}else f=[];f||(f=u);f||p.error(w||c);if(g.call(f)==="[object Array]")if(H)if(a&&a.nodeType===1)for(c=0;f[c]!=null;c++)f[c]&&(f[c]===!0||f[c].nodeType===1&&p.contains(a,f[c]))&&d.push(u[c]);else for(c=0;f[c]!=null;c++)f[c]&&f[c].nodeType===1&&d.push(u[c]);else d.push.apply(d,f);else Y(f,d);q&&(p(q,h,d,b),p.uniqueSort(d));return d};p.uniqueSort=function(c){if(V&&(f=q,c.sort(V),
+f))for(var a=1;a<c.length;a++)c[a]===c[a-1]&&c.splice(a--,1);return c};p.matches=function(c,a){return p(c,null,null,a)};p.matchesSelector=function(c,a){return p(a,null,null,[c]).length>0};p.find=function(c,a,d){var b;if(!c)return[];for(var e=0,o=n.order.length;e<o;e++){var h,g=n.order[e];if(h=n.leftMatch[g].exec(c)){var r=h[1];h.splice(1,1);if(r.substr(r.length-1)!=="\\"&&(h[1]=(h[1]||"").replace(w,""),b=n.find[g](h,a,d),b!=null)){c=c.replace(n.match[g],"");break}}}b||(b=typeof a.getElementsByTagName!==
+"undefined"?a.getElementsByTagName("*"):[]);return{set:b,expr:c}};p.filter=function(c,a,d,e){for(var o,h,g=c,r=[],u=a,f=a&&a[0]&&p.isXML(a[0]);c&&a.length;){for(var y in n.filter)if((o=n.leftMatch[y].exec(c))!=null&&o[2]){var q,w,H=n.filter[y];w=o[1];h=!1;o.splice(1,1);if(w.substr(w.length-1)!=="\\"){u===r&&(r=[]);if(n.preFilter[y])if(o=n.preFilter[y](o,u,d,r,e,f)){if(o===!0)continue}else h=q=!0;if(o)for(var Q=0;(w=u[Q])!=null;Q++)if(w){q=H(w,o,Q,u);var j=e^!!q;d&&q!=null?j?h=!0:u[Q]=!1:j&&(r.push(w),
+h=!0)}if(q!==b){d||(u=r);c=c.replace(n.match[y],"");if(!h)return[];break}}}if(c===g)if(h==null)p.error(c);else break;g=c}return u};p.error=function(c){throw"Syntax error, unrecognized expression: "+c;};var n=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(c){return c.getAttribute("href")},type:function(c){return c.getAttribute("type")}},relative:{"+":function(c,a){var d=
+typeof a==="string",b=d&&!H.test(a),d=d&&!b;b&&(a=a.toLowerCase());for(var b=0,e=c.length,o;b<e;b++)if(o=c[b]){for(;(o=o.previousSibling)&&o.nodeType!==1;);c[b]=d||o&&o.nodeName.toLowerCase()===a?o||!1:o===a}d&&p.filter(a,c,!0)},">":function(c,a){var d,b=typeof a==="string",e=0,o=c.length;if(b&&!H.test(a))for(a=a.toLowerCase();e<o;e++){if(d=c[e])d=d.parentNode,c[e]=d.nodeName.toLowerCase()===a?d:!1}else{for(;e<o;e++)(d=c[e])&&(c[e]=b?d.parentNode:d.parentNode===a);b&&p.filter(a,c,!0)}},"":function(d,
+b,e){var r,g=h++,f=a;typeof b==="string"&&!H.test(b)&&(r=b=b.toLowerCase(),f=c);f("parentNode",b,g,d,r,e)},"~":function(d,b,e){var r,g=h++,f=a;typeof b==="string"&&!H.test(b)&&(r=b=b.toLowerCase(),f=c);f("previousSibling",b,g,d,r,e)}},find:{ID:function(c,a,d){if(typeof a.getElementById!=="undefined"&&!d)return(c=a.getElementById(c[1]))&&c.parentNode?[c]:[]},NAME:function(c,a){if(typeof a.getElementsByName!=="undefined"){for(var d=[],b=a.getElementsByName(c[1]),e=0,o=b.length;e<o;e++)b[e].getAttribute("name")===
+c[1]&&d.push(b[e]);return d.length===0?null:d}},TAG:function(c,a){if(typeof a.getElementsByTagName!=="undefined")return a.getElementsByTagName(c[1])}},preFilter:{CLASS:function(c,a,d,b,e,o){c=" "+c[1].replace(w,"")+" ";if(o)return c;for(var o=0,h;(h=a[o])!=null;o++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(c)>=0)?d||b.push(h):d&&(a[o]=!1));return!1},ID:function(c){return c[1].replace(w,"")},TAG:function(c){return c[1].replace(w,"").toLowerCase()},CHILD:function(c){if(c[1]===
+"nth"){c[2]||p.error(c[0]);c[2]=c[2].replace(/^\+|\s*/g,"");var a=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(c[2]==="even"&&"2n"||c[2]==="odd"&&"2n+1"||!/\D/.test(c[2])&&"0n+"+c[2]||c[2]);c[2]=a[1]+(a[2]||1)-0;c[3]=a[3]-0}else c[2]&&p.error(c[0]);c[0]=h++;return c},ATTR:function(c,a,d,b,e,o){a=c[1]=c[1].replace(w,"");!o&&n.attrMap[a]&&(c[1]=n.attrMap[a]);c[4]=(c[4]||c[5]||"").replace(w,"");c[2]==="~="&&(c[4]=" "+c[4]+" ");return c},PSEUDO:function(c,a,d,b,o){if(c[1]==="not")if((e.exec(c[3])||"").length>1||
+/^\w/.test(c[3]))c[3]=p(c[3],null,null,a);else return c=p.filter(c[3],a,d,1^o),d||b.push.apply(b,c),!1;else if(n.match.POS.test(c[0])||n.match.CHILD.test(c[0]))return!0;return c},POS:function(c){c.unshift(!0);return c}},filters:{enabled:function(c){return c.disabled===!1&&c.type!=="hidden"},disabled:function(c){return c.disabled===!0},checked:function(c){return c.checked===!0},selected:function(c){return c.selected===!0},parent:function(c){return!!c.firstChild},empty:function(c){return!c.firstChild},
+has:function(c,a,d){return!!p(d[3],c).length},header:function(c){return/h\d/i.test(c.nodeName)},text:function(c){var a=c.getAttribute("type"),d=c.type;return c.nodeName.toLowerCase()==="input"&&"text"===d&&(a===d||a===null)},radio:function(c){return c.nodeName.toLowerCase()==="input"&&"radio"===c.type},checkbox:function(c){return c.nodeName.toLowerCase()==="input"&&"checkbox"===c.type},file:function(c){return c.nodeName.toLowerCase()==="input"&&"file"===c.type},password:function(c){return c.nodeName.toLowerCase()===
+"input"&&"password"===c.type},submit:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"submit"===c.type},image:function(c){return c.nodeName.toLowerCase()==="input"&&"image"===c.type},reset:function(c){var a=c.nodeName.toLowerCase();return(a==="input"||a==="button")&&"reset"===c.type},button:function(c){var a=c.nodeName.toLowerCase();return a==="input"&&"button"===c.type||a==="button"},input:function(c){return/input|select|textarea|button/i.test(c.nodeName)},focus:function(c){return c===
+c.ownerDocument.activeElement}},setFilters:{first:function(c,a){return a===0},last:function(c,a,d,b){return a===b.length-1},even:function(c,a){return a%2===0},odd:function(c,a){return a%2===1},lt:function(c,a,d){return a<d[3]-0},gt:function(c,a,d){return a>d[3]-0},nth:function(c,a,d){return d[3]-0===a},eq:function(c,a,d){return d[3]-0===a}},filter:{PSEUDO:function(c,a,d,b){var e=a[1],o=n.filters[e];if(o)return o(c,d,a,b);else if(e==="contains")return(c.textContent||c.innerText||p.getText([c])||"").indexOf(a[3])>=
+0;else if(e==="not"){a=a[3];d=0;for(b=a.length;d<b;d++)if(a[d]===c)return!1;return!0}else p.error(e)},CHILD:function(c,a){var d=a[1],b=c;switch(d){case "only":case "first":for(;b=b.previousSibling;)if(b.nodeType===1)return!1;if(d==="first")return!0;b=c;case "last":for(;b=b.nextSibling;)if(b.nodeType===1)return!1;return!0;case "nth":var d=a[2],e=a[3];if(d===1&&e===0)return!0;var o=a[0],h=c.parentNode;if(h&&(h.sizcache!==o||!c.nodeIndex)){for(var r=0,b=h.firstChild;b;b=b.nextSibling)if(b.nodeType===
+1)b.nodeIndex=++r;h.sizcache=o}b=c.nodeIndex-e;return d===0?b===0:b%d===0&&b/d>=0}},ID:function(c,a){return c.nodeType===1&&c.getAttribute("id")===a},TAG:function(c,a){return a==="*"&&c.nodeType===1||c.nodeName.toLowerCase()===a},CLASS:function(c,a){return(" "+(c.className||c.getAttribute("class"))+" ").indexOf(a)>-1},ATTR:function(c,a){var d=a[1],d=n.attrHandle[d]?n.attrHandle[d](c):c[d]!=null?c[d]:c.getAttribute(d),b=d+"",e=a[2],o=a[4];return d==null?e==="!=":e==="="?b===o:e==="*="?b.indexOf(o)>=
+0:e==="~="?(" "+b+" ").indexOf(o)>=0:!o?b&&d!==!1:e==="!="?b!==o:e==="^="?b.indexOf(o)===0:e==="$="?b.substr(b.length-o.length)===o:e==="|="?b===o||b.substr(0,o.length+1)===o+"-":!1},POS:function(c,a,d,b){var e=n.setFilters[a[2]];if(e)return e(c,d,a,b)}}},Q=n.match.POS,j=function(c,a){return"\\"+(a-0+1)},K;for(K in n.match)n.match[K]=RegExp(n.match[K].source+/(?![^\[]*\])(?![^\(]*\))/.source),n.leftMatch[K]=RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[K].source.replace(/\\(\d+)/g,j));var Y=function(c,
+a){c=Array.prototype.slice.call(c,0);if(a)return a.push.apply(a,c),a;return c};try{Array.prototype.slice.call(v.documentElement.childNodes,0)}catch(k){Y=function(c,a){var d=0,b=a||[];if(g.call(c)==="[object Array]")Array.prototype.push.apply(b,c);else if(typeof c.length==="number")for(var e=c.length;d<e;d++)b.push(c[d]);else for(;c[d];d++)b.push(c[d]);return b}}var V,W;v.documentElement.compareDocumentPosition?V=function(c,a){if(c===a)return f=!0,0;if(!c.compareDocumentPosition||!a.compareDocumentPosition)return c.compareDocumentPosition?
+-1:1;return c.compareDocumentPosition(a)&4?-1:1}:(V=function(c,a){if(c===a)return f=!0,0;else if(c.sourceIndex&&a.sourceIndex)return c.sourceIndex-a.sourceIndex;var d,b,e=[],o=[];d=c.parentNode;b=a.parentNode;var h=d;if(d===b)return W(c,a);else if(d){if(!b)return 1}else return-1;for(;h;)e.unshift(h),h=h.parentNode;for(h=b;h;)o.unshift(h),h=h.parentNode;d=e.length;b=o.length;for(h=0;h<d&&h<b;h++)if(e[h]!==o[h])return W(e[h],o[h]);return h===d?W(c,o[h],-1):W(e[h],a,1)},W=function(c,a,d){if(c===a)return d;
+for(c=c.nextSibling;c;){if(c===a)return-1;c=c.nextSibling}return 1});p.getText=function(c){for(var a="",d,b=0;c[b];b++)d=c[b],d.nodeType===3||d.nodeType===4?a+=d.nodeValue:d.nodeType!==8&&(a+=p.getText(d.childNodes));return a};(function(){var c=v.createElement("div"),a="script"+(new Date).getTime(),d=v.documentElement;c.innerHTML="<a name='"+a+"'/>";d.insertBefore(c,d.firstChild);if(v.getElementById(a))n.find.ID=function(c,a,d){if(typeof a.getElementById!=="undefined"&&!d)return(a=a.getElementById(c[1]))?
+a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]},n.filter.ID=function(c,a){var d=typeof c.getAttributeNode!=="undefined"&&c.getAttributeNode("id");return c.nodeType===1&&d&&d.nodeValue===a};d.removeChild(c);d=c=null})();(function(){var c=v.createElement("div");c.appendChild(v.createComment(""));if(c.getElementsByTagName("*").length>0)n.find.TAG=function(c,a){var d=a.getElementsByTagName(c[1]);if(c[1]==="*"){for(var b=[],e=0;d[e];e++)d[e].nodeType===
+1&&b.push(d[e]);d=b}return d};c.innerHTML="<a href='#'></a>";if(c.firstChild&&typeof c.firstChild.getAttribute!=="undefined"&&c.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(c){return c.getAttribute("href",2)};c=null})();v.querySelectorAll&&function(){var c=p,a=v.createElement("div");a.innerHTML="<p class='TEST'></p>";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){p=function(a,d,b,e){d=d||v;if(!e&&!p.isXML(d)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);
+if(o&&(d.nodeType===1||d.nodeType===9))if(o[1])return Y(d.getElementsByTagName(a),b);else if(o[2]&&n.find.CLASS&&d.getElementsByClassName)return Y(d.getElementsByClassName(o[2]),b);if(d.nodeType===9){if(a==="body"&&d.body)return Y([d.body],b);else if(o&&o[3]){var h=d.getElementById(o[3]);if(h&&h.parentNode){if(h.id===o[3])return Y([h],b)}else return Y([],b)}try{return Y(d.querySelectorAll(a),b)}catch(r){}}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var o=d,g=(h=d.getAttribute("id"))||
+"__sizzle__",u=d.parentNode,f=/^\s*[+~]/.test(a);h?g=g.replace(/'/g,"\\$&"):d.setAttribute("id",g);if(f&&u)d=d.parentNode;try{if(!f||u)return Y(d.querySelectorAll("[id='"+g+"'] "+a),b)}catch(y){}finally{h||o.removeAttribute("id")}}}return c(a,d,b,e)};for(var d in c)p[d]=c[d];a=null}}();(function(){var c=v.documentElement,a=c.matchesSelector||c.mozMatchesSelector||c.webkitMatchesSelector||c.msMatchesSelector;if(a){var d=!a.call(v.createElement("div"),"div"),b=!1;try{a.call(v.documentElement,"[test!='']:sizzle")}catch(e){b=
+!0}p.matchesSelector=function(c,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!p.isXML(c))try{if(b||!n.match.PSEUDO.test(e)&&!/!=/.test(e)){var o=a.call(c,e);if(o||!d||c.document&&c.document.nodeType!==11)return o}}catch(h){}return p(e,null,null,[c]).length>0}}})();(function(){var c=v.createElement("div");c.innerHTML="<div class='test e'></div><div class='test'></div>";if(c.getElementsByClassName&&c.getElementsByClassName("e").length!==0&&(c.lastChild.className="e",c.getElementsByClassName("e").length!==
+1))n.order.splice(1,0,"CLASS"),n.find.CLASS=function(c,a,d){if(typeof a.getElementsByClassName!=="undefined"&&!d)return a.getElementsByClassName(c[1])},c=null})();p.contains=v.documentElement.contains?function(c,a){return c!==a&&(c.contains?c.contains(a):!0)}:v.documentElement.compareDocumentPosition?function(c,a){return!!(c.compareDocumentPosition(a)&16)}:function(){return!1};p.isXML=function(c){return(c=(c?c.ownerDocument||c:0).documentElement)?c.nodeName!=="HTML":!1};var l=function(c,a){for(var d,
+b=[],e="",o=a.nodeType?[a]:a;d=n.match.PSEUDO.exec(c);)e+=d[0],c=c.replace(n.match.PSEUDO,"");c=n.relative[c]?c+"*":c;d=0;for(var h=o.length;d<h;d++)p(c,o[d],b);return p.filter(e,b)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.text=p.getText;d.isXMLDoc=p.isXML;d.contains=p.contains})();var ua=/Until$/,T=/^(?:parents|prevUntil|prevAll)/,ya=/,/,Da=/^.[^:#\[\.,]*$/,h=Array.prototype.slice,H=d.expr.match.POS,q={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({find:function(c){var a=
+this,b,e;if(typeof c!=="string")return d(c).filter(function(){b=0;for(e=a.length;b<e;b++)if(d.contains(a[b],this))return!0});var h=this.pushStack("","find",c),g,f,q;b=0;for(e=this.length;b<e;b++)if(g=h.length,d.find(c,this[b],h),b>0)for(f=g;f<h.length;f++)for(q=0;q<g;q++)if(h[q]===h[f]){h.splice(f--,1);break}return h},has:function(c){var a=d(c);return this.filter(function(){for(var c=0,b=a.length;c<b;c++)if(d.contains(this,a[c]))return!0})},not:function(c){return this.pushStack(L(this,c,!1),"not",
+c)},filter:function(c){return this.pushStack(L(this,c,!0),"filter",c)},is:function(c){return!!c&&(typeof c==="string"?d.filter(c,this).length>0:this.filter(c).length>0)},closest:function(c,a){var b=[],e,h,g=this[0];if(d.isArray(c)){var f,q={},p=1;if(g&&c.length){e=0;for(h=c.length;e<h;e++)f=c[e],q[f]||(q[f]=H.test(f)?d(f,a||this.context):f);for(;g&&g.ownerDocument&&g!==a;){for(f in q)e=q[f],(e.jquery?e.index(g)>-1:d(g).is(e))&&b.push({selector:f,elem:g,level:p});g=g.parentNode;p++}}return b}f=H.test(c)||
+typeof c!=="string"?d(c,a||this.context):0;e=0;for(h=this.length;e<h;e++)for(g=this[e];g;)if(f?f.index(g)>-1:d.find.matchesSelector(g,c)){b.push(g);break}else if(g=g.parentNode,!g||!g.ownerDocument||g===a||g.nodeType===11)break;b=b.length>1?d.unique(b):b;return this.pushStack(b,"closest",c)},index:function(c){if(!c||typeof c==="string")return d.inArray(this[0],c?d(c):this.parent().children());return d.inArray(c.jquery?c[0]:c,this)},add:function(c,a){var b=typeof c==="string"?d(c,a):d.makeArray(c&&
+c.nodeType?[c]:c),e=d.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return d.dir(c,"parentNode")},parentsUntil:function(c,a,b){return d.dir(c,"parentNode",b)},next:function(c){return d.nth(c,2,"nextSibling")},prev:function(c){return d.nth(c,
+2,"previousSibling")},nextAll:function(c){return d.dir(c,"nextSibling")},prevAll:function(c){return d.dir(c,"previousSibling")},nextUntil:function(c,a,b){return d.dir(c,"nextSibling",b)},prevUntil:function(c,a,b){return d.dir(c,"previousSibling",b)},siblings:function(c){return d.sibling(c.parentNode.firstChild,c)},children:function(c){return d.sibling(c.firstChild)},contents:function(c){return d.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:d.makeArray(c.childNodes)}},function(c,
+a){d.fn[c]=function(b,e){var g=d.map(this,a,b),f=h.call(arguments);ua.test(c)||(e=b);e&&typeof e==="string"&&(g=d.filter(e,g));g=this.length>1&&!q[c]?d.unique(g):g;if((this.length>1||ya.test(e))&&T.test(c))g=g.reverse();return this.pushStack(g,c,f.join(","))}});d.extend({filter:function(c,a,b){b&&(c=":not("+c+")");return a.length===1?d.find.matchesSelector(a[0],c)?[a[0]]:[]:d.find.matches(c,a)},dir:function(c,a,e){for(var h=[],c=c[a];c&&c.nodeType!==9&&(e===b||c.nodeType!==1||!d(c).is(e));)c.nodeType===
+1&&h.push(c),c=c[a];return h},nth:function(c,a,d){for(var a=a||1,b=0;c;c=c[d])if(c.nodeType===1&&++b===a)break;return c},sibling:function(c,a){for(var d=[];c;c=c.nextSibling)c.nodeType===1&&c!==a&&d.push(c);return d}});var Q=/ jQuery\d+="(?:\d+|null)"/g,w=/^\s+/,K=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Y=/<([\w:]+)/,ja=/<tbody/i,W=/<|&#?\w+;/,Z=/<(?:script|object|embed|option|style)/i,I=/checked\s*(?:[^=]|=\s*.checked.)/i,Ba=/\/(java|ecma)script/i,jb=/^\s*<!(?:\[CDATA\[|\-\-)/,
+na={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};na.optgroup=na.option;na.tbody=na.tfoot=na.colgroup=na.caption=na.thead;na.th=na.td;if(!d.support.htmlSerialize)na._default=[1,"div<div>","</div>"];d.fn.extend({text:function(c){if(d.isFunction(c))return this.each(function(a){var b=
+d(this);b.text(c.call(this,a,b.text()))});if(typeof c!=="object"&&c!==b)return this.empty().append((this[0]&&this[0].ownerDocument||v).createTextNode(c));return d.text(this)},wrapAll:function(c){if(d.isFunction(c))return this.each(function(a){d(this).wrapAll(c.call(this,a))});if(this[0]){var a=d(c,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var c=this;c.firstChild&&c.firstChild.nodeType===1;)c=c.firstChild;return c}).append(this)}return this},
+wrapInner:function(c){if(d.isFunction(c))return this.each(function(a){d(this).wrapInner(c.call(this,a))});return this.each(function(){var a=d(this),b=a.contents();b.length?b.wrapAll(c):a.append(c)})},wrap:function(c){return this.each(function(){d(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,
+!0,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var c=d(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var c=
+this.pushStack(this,"after",arguments);c.push.apply(c,d(arguments[0]).toArray());return c}},remove:function(c,a){for(var b=0,e;(e=this[b])!=null;b++)if(!c||d.filter(c,[e]).length)!a&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var c=0,a;(a=this[c])!=null;c++)for(a.nodeType===1&&d.cleanData(a.getElementsByTagName("*"));a.firstChild;)a.removeChild(a.firstChild);return this},clone:function(c,a){c=
+c==null?!1:c;a=a==null?c:a;return this.map(function(){return d.clone(this,c,a)})},html:function(c){if(c===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Q,""):null;else if(typeof c==="string"&&!Z.test(c)&&(d.support.leadingWhitespace||!w.test(c))&&!na[(Y.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(K,"<$1></$2>");try{for(var a=0,e=this.length;a<e;a++)if(this[a].nodeType===1)d.cleanData(this[a].getElementsByTagName("*")),this[a].innerHTML=c}catch(h){this.empty().append(c)}}else d.isFunction(c)?
+this.each(function(a){var b=d(this);b.html(c.call(this,a,b.html()))}):this.empty().append(c);return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(d.isFunction(c))return this.each(function(a){var b=d(this),e=b.html();b.replaceWith(c.call(this,a,e))});typeof c!=="string"&&(c=d(c).detach());return this.each(function(){var a=this.nextSibling,b=this.parentNode;d(this).remove();a?d(a).before(c):d(b).append(c)})}else return this.length?this.pushStack(d(d.isFunction(c)?c():c),"replaceWith",
+c):this},detach:function(c){return this.remove(c,!0)},domManip:function(c,a,e){var h,g,f,q=c[0],p=[];if(!d.support.checkClone&&arguments.length===3&&typeof q==="string"&&I.test(q))return this.each(function(){d(this).domManip(c,a,e,!0)});if(d.isFunction(q))return this.each(function(h){var g=d(this);c[0]=q.call(this,h,a?g.html():b);g.domManip(c,a,e)});if(this[0]){h=q&&q.parentNode;h=d.support.parentNode&&h&&h.nodeType===11&&h.childNodes.length===this.length?{fragment:h}:d.buildFragment(c,this,p);f=
+h.fragment;if(g=f.childNodes.length===1?f=f.firstChild:f.firstChild){a=a&&d.nodeName(g,"tr");g=0;for(var w=this.length,n=w-1;g<w;g++)e.call(a?d.nodeName(this[g],"table")?this[g].getElementsByTagName("tbody")[0]||this[g].appendChild(this[g].ownerDocument.createElement("tbody")):this[g]:this[g],h.cacheable||w>1&&g<n?d.clone(f,!0,!0):f)}p.length&&d.each(p,R)}return this}});d.buildFragment=function(c,a,b){var e,h,g,a=a&&a[0]?a[0].ownerDocument||a[0]:v;if(c.length===1&&typeof c[0]==="string"&&c[0].length<
+512&&a===v&&c[0].charAt(0)==="<"&&!Z.test(c[0])&&(d.support.checkClone||!I.test(c[0])))h=!0,(g=d.fragments[c[0]])&&g!==1&&(e=g);e||(e=a.createDocumentFragment(),d.clean(c,a,e,b));h&&(d.fragments[c[0]]=g?e:1);return{fragment:e,cacheable:h}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,a){d.fn[c]=function(b){var e=[],b=d(b),h=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===
+1&&b.length===1)return b[a](this[0]),this;else{for(var h=0,g=b.length;h<g;h++){var f=(h>0?this.clone(!0):this).get();d(b[h])[a](f);e=e.concat(f)}return this.pushStack(e,c,b.selector)}}});d.extend({clone:function(c,a,b){var e=c.cloneNode(!0),h,g,f;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(c.nodeType===1||c.nodeType===11)&&!d.isXMLDoc(c)){z(c,e);h=s(c);g=s(e);for(f=0;h[f];++f)z(h[f],g[f])}if(a&&(B(c,e),b)){h=s(c);g=s(e);for(f=0;h[f];++f)B(h[f],g[f])}return e},clean:function(c,a,b,e){a=
+a||v;typeof a.createElement==="undefined"&&(a=a.ownerDocument||a[0]&&a[0].ownerDocument||v);for(var h=[],g,f=0,q;(q=c[f])!=null;f++)if(typeof q==="number"&&(q+=""),q){if(typeof q==="string")if(W.test(q)){q=q.replace(K,"<$1></$2>");g=(Y.exec(q)||["",""])[1].toLowerCase();var p=na[g]||na._default,n=p[0],H=a.createElement("div");for(H.innerHTML=p[1]+q+p[2];n--;)H=H.lastChild;if(!d.support.tbody){n=ja.test(q);p=g==="table"&&!n?H.firstChild&&H.firstChild.childNodes:p[1]==="<table>"&&!n?H.childNodes:[];
+for(g=p.length-1;g>=0;--g)d.nodeName(p[g],"tbody")&&!p[g].childNodes.length&&p[g].parentNode.removeChild(p[g])}!d.support.leadingWhitespace&&w.test(q)&&H.insertBefore(a.createTextNode(w.exec(q)[0]),H.firstChild);q=H.childNodes}else q=a.createTextNode(q);var Q;if(!d.support.appendChecked)if(q[0]&&typeof(Q=q.length)==="number")for(g=0;g<Q;g++)fa(q[g]);else fa(q);q.nodeType?h.push(q):h=d.merge(h,q)}if(b){c=function(c){return!c.type||Ba.test(c.type)};for(f=0;h[f];f++)e&&d.nodeName(h[f],"script")&&(!h[f].type||
+h[f].type.toLowerCase()==="text/javascript")?e.push(h[f].parentNode?h[f].parentNode.removeChild(h[f]):h[f]):(h[f].nodeType===1&&(a=d.grep(h[f].getElementsByTagName("script"),c),h.splice.apply(h,[f+1,0].concat(a))),b.appendChild(h[f]))}return h},cleanData:function(c){for(var a,b,e=d.cache,h=d.expando,g=d.event.special,f=d.support.deleteExpando,q=0,p;(p=c[q])!=null;q++)if(!p.nodeName||!d.noData[p.nodeName.toLowerCase()])if(b=p[d.expando]){if((a=e[b]&&e[b][h])&&a.events){for(var w in a.events)g[w]?d.event.remove(p,
+w):d.removeEvent(p,w,a.handle);if(a.handle)a.handle.elem=null}f?delete p[d.expando]:p.removeAttribute&&p.removeAttribute(d.expando);delete e[b]}}});var Ca=/alpha\([^)]*\)/i,Ia=/opacity=([^)]*)/,Ea=/-([a-z])/ig,Oa=/([A-Z]|^ms)/g,ab=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob=/^[+\-]=/,pb=/[^+\-\.\de]+/g,qb={position:"absolute",visibility:"hidden",display:"block"},kb=["Left","Right"],lb=["Top","Bottom"],Ja,bb,Ra,rb=function(c,a){return a.toUpperCase()};d.fn.css=function(c,a){if(arguments.length===2&&a===b)return this;
+return d.access(this,c,a,!0,function(c,a,e){return e!==b?d.style(c,a,e):d.css(c,a)})};d.extend({cssHooks:{opacity:{get:function(c,a){if(a){var d=Ja(c,"opacity","opacity");return d===""?"1":d}else return c.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0,widows:!0,orphans:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(c,a,e,h){if(c&&!(c.nodeType===3||c.nodeType===8||!c.style)){var g,f=d.camelCase(a),q=c.style,p=d.cssHooks[f],a=d.cssProps[f]||
+f;if(e!==b){if(h=typeof e,!(h==="number"&&isNaN(e)||e==null))if(h==="string"&&ob.test(e)&&(e=+e.replace(pb,"")+parseFloat(d.css(c,a))),h==="number"&&!d.cssNumber[f]&&(e+="px"),!p||!("set"in p)||(e=p.set(c,e))!==b)try{q[a]=e}catch(w){}}else{if(p&&"get"in p&&(g=p.get(c,!1,h))!==b)return g;return q[a]}}},css:function(c,a,e){var h,g,a=d.camelCase(a);g=d.cssHooks[a];a=d.cssProps[a]||a;a==="cssFloat"&&(a="float");if(g&&"get"in g&&(h=g.get(c,!0,e))!==b)return h;else if(Ja)return Ja(c,a)},swap:function(c,
+a,d){var b={},e;for(e in a)b[e]=c.style[e],c.style[e]=a[e];d.call(c);for(e in a)c.style[e]=b[e]},camelCase:function(c){return c.replace(Ea,rb)}});d.curCSS=d.css;d.each(["height","width"],function(c,a){d.cssHooks[a]={get:function(c,b,e){var h;if(b){c.offsetWidth!==0?h=P(c,a,e):d.swap(c,qb,function(){h=P(c,a,e)});if(h<=0&&(h=Ja(c,a,a),h==="0px"&&Ra&&(h=Ra(c,a,a)),h!=null))return h===""||h==="auto"?"0px":h;if(h<0||h==null)return h=c.style[a],h===""||h==="auto"?"0px":h;return typeof h==="string"?h:h+
+"px"}},set:function(c,a){if(ab.test(a)){if(a=parseFloat(a),a>=0)return a+"px"}else return a}}});if(!d.support.opacity)d.cssHooks.opacity={get:function(c,a){return Ia.test((a&&c.currentStyle?c.currentStyle.filter:c.style.filter)||"")?parseFloat(RegExp.$1)/100+"":a?"1":""},set:function(c,a){var b=c.style,e=c.currentStyle;b.zoom=1;var h=d.isNaN(a)?"":"alpha(opacity="+a*100+")",e=e&&e.filter||b.filter||"";b.filter=Ca.test(e)?e.replace(Ca,h):e+" "+h}};d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight=
+{get:function(c,a){var b;d.swap(c,{display:"inline-block"},function(){b=a?Ja(c,"margin-right","marginRight"):c.style.marginRight});return b}}});v.defaultView&&v.defaultView.getComputedStyle&&(bb=function(c,a){var e,h,a=a.replace(Oa,"-$1").toLowerCase();if(!(h=c.ownerDocument.defaultView))return b;if(h=h.getComputedStyle(c,null))e=h.getPropertyValue(a),e===""&&!d.contains(c.ownerDocument.documentElement,c)&&(e=d.style(c,a));return e});v.documentElement.currentStyle&&(Ra=function(c,a){var d,b=c.currentStyle&&
+c.currentStyle[a],e=c.runtimeStyle&&c.runtimeStyle[a],h=c.style;if(!ab.test(b)&&nb.test(b)){d=h.left;if(e)c.runtimeStyle.left=c.currentStyle.left;h.left=a==="fontSize"?"1em":b||0;b=h.pixelLeft+"px";h.left=d;if(e)c.runtimeStyle.left=e}return b===""?"auto":b});Ja=bb||Ra;if(d.expr&&d.expr.filters)d.expr.filters.hidden=function(c){var a=c.offsetHeight;return c.offsetWidth===0&&a===0||!d.support.reliableHiddenOffsets&&(c.style.display||d.css(c,"display"))==="none"},d.expr.filters.visible=function(c){return!d.expr.filters.hidden(c)};
+var sb=/%20/g,mb=/\[\]$/,cb=/\r?\n/g,tb=/#.*$/,ub=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,vb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,wb=/^(?:GET|HEAD)$/,xb=/^\/\//,db=/\?/,yb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,zb=/^(?:select|textarea)/i,Za=/\s+/,Ab=/([?&])_=[^&]*/,eb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,fb=d.fn.load,Ta={},gb={},Fa,Ga;try{Fa=X.href}catch(Gb){Fa=v.createElement("a"),Fa.href="",Fa=Fa.href}Ga=eb.exec(Fa.toLowerCase())||
+[];d.fn.extend({load:function(c,a,e){if(typeof c!=="string"&&fb)return fb.apply(this,arguments);else if(!this.length)return this;var h=c.indexOf(" ");if(h>=0)var g=c.slice(h,c.length),c=c.slice(0,h);h="GET";a&&(d.isFunction(a)?(e=a,a=b):typeof a==="object"&&(a=d.param(a,d.ajaxSettings.traditional),h="POST"));var f=this;d.ajax({url:c,type:h,dataType:"html",data:a,complete:function(c,a,b){b=c.responseText;c.isResolved()&&(c.done(function(c){b=c}),f.html(g?d("<div>").append(b.replace(yb,"")).find(g):
+b));e&&f.each(e,[b,a,c])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||zb.test(this.nodeName)||vb.test(this.type))}).map(function(c,a){var b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(c){return{name:a.name,value:c.replace(cb,"\r\n")}}):{name:a.name,value:b.replace(cb,"\r\n")}}).get()}});
+d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,a){d.fn[a]=function(c){return this.bind(a,c)}});d.each(["get","post"],function(c,a){d[a]=function(c,e,h,g){d.isFunction(e)&&(g=g||h,h=e,e=b);return d.ajax({type:a,url:c,data:e,success:h,dataType:g})}});d.extend({getScript:function(c,a){return d.get(c,b,a,"script")},getJSON:function(c,a,b){return d.get(c,a,b,"json")},ajaxSetup:function(c,a){a?d.extend(!0,c,d.ajaxSettings,a):(a=c,c=d.extend(!0,d.ajaxSettings,
+a));for(var b in{context:1,url:1})b in a?c[b]=a[b]:b in d.ajaxSettings&&(c[b]=d.ajaxSettings[b]);return c},ajaxSettings:{url:Fa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|widget):$/.test(Ga[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",
+text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:N(Ta),ajaxTransport:N(gb),ajax:function(c,a){function e(c,a,o,r){if(W!==2){W=2;k&&clearTimeout(k);Y=b;j=r||"";I.readyState=c?4:0;var H,Q,K;if(o){var r=h,V=I,J=r.contents,ja=r.dataTypes,x=r.responseFields,s,Z,z,t;for(Z in x)Z in o&&(V[x[Z]]=o[Z]);for(;ja[0]==="*";)ja.shift(),s===b&&(s=r.mimeType||V.getResponseHeader("content-type"));if(s)for(Z in J)if(J[Z]&&J[Z].test(s)){ja.unshift(Z);
+break}if(ja[0]in o)z=ja[0];else{for(Z in o){if(!ja[0]||r.converters[Z+" "+ja[0]]){z=Z;break}t||(t=Z)}z=z||t}z?(z!==ja[0]&&ja.unshift(z),o=o[z]):o=void 0}else o=b;if(c>=200&&c<300||c===304){if(h.ifModified){if(s=I.getResponseHeader("Last-Modified"))d.lastModified[n]=s;if(s=I.getResponseHeader("Etag"))d.etag[n]=s}if(c===304)a="notmodified",H=!0;else try{s=h;s.dataFilter&&(o=s.dataFilter(o,s.dataType));var sa=s.dataTypes;Z={};var Ea,C,A=sa.length,Ia,Ba=sa[0],v,Oa,E,Ca,R;for(Ea=1;Ea<A;Ea++){if(Ea===1)for(C in s.converters)typeof C===
+"string"&&(Z[C.toLowerCase()]=s.converters[C]);v=Ba;Ba=sa[Ea];if(Ba==="*")Ba=v;else if(v!=="*"&&v!==Ba){Oa=v+" "+Ba;E=Z[Oa]||Z["* "+Ba];if(!E)for(Ca in R=b,Z)if(Ia=Ca.split(" "),Ia[0]===v||Ia[0]==="*")if(R=Z[Ia[1]+" "+Ba]){Ca=Z[Ca];Ca===!0?E=R:R===!0&&(E=Ca);break}!E&&!R&&d.error("No conversion from "+Oa.replace(" "," to "));E!==!0&&(o=E?E(o):R(Ca(o)))}}Q=o;a="success";H=!0}catch(na){a="parsererror",K=na}}else if(K=a,!a||c)a="error",c<0&&(c=0);I.status=c;I.statusText=a;H?q.resolveWith(g,[Q,a,I]):
+q.rejectWith(g,[I,a,K]);I.statusCode(w);w=b;l&&f.trigger("ajax"+(H?"Success":"Error"),[I,h,H?Q:K]);p.resolveWith(g,[I,a]);l&&(f.trigger("ajaxComplete",[I,h]),--d.active||d.event.trigger("ajaxStop"))}}typeof c==="object"&&(a=c,c=b);var a=a||{},h=d.ajaxSetup({},a),g=h.context||h,f=g!==h&&(g.nodeType||g instanceof d)?d(g):d.event,q=d.Deferred(),p=d._Deferred(),w=h.statusCode||{},n,H={},Q={},j,K,Y,k,V,W=0,l,J,I={readyState:0,setRequestHeader:function(c,a){if(!W){var d=c.toLowerCase(),c=Q[d]=Q[d]||c;H[c]=
+a}return this},getAllResponseHeaders:function(){return W===2?j:null},getResponseHeader:function(c){var a;if(W===2){if(!K)for(K={};a=ub.exec(j);)K[a[1].toLowerCase()]=a[2];a=K[c.toLowerCase()]}return a===b?null:a},overrideMimeType:function(c){if(!W)h.mimeType=c;return this},abort:function(c){c=c||"abort";Y&&Y.abort(c);e(0,c);return this}};q.promise(I);I.success=I.done;I.error=I.fail;I.complete=p.done;I.statusCode=function(c){if(c){var a;if(W<2)for(a in c)w[a]=[w[a],c[a]];else a=c[I.status],I.then(a,
+a)}return this};h.url=((c||h.url)+"").replace(tb,"").replace(xb,Ga[1]+"//");h.dataTypes=d.trim(h.dataType||"*").toLowerCase().split(Za);if(h.crossDomain==null)V=eb.exec(h.url.toLowerCase()),h.crossDomain=!(!V||!(V[1]!=Ga[1]||V[2]!=Ga[2]||(V[3]||(V[1]==="http:"?80:443))!=(Ga[3]||(Ga[1]==="http:"?80:443))));if(h.data&&h.processData&&typeof h.data!=="string")h.data=d.param(h.data,h.traditional);t(Ta,h,a,I);if(W===2)return!1;l=h.global;h.type=h.type.toUpperCase();h.hasContent=!wb.test(h.type);l&&d.active++===
+0&&d.event.trigger("ajaxStart");if(!h.hasContent&&(h.data&&(h.url+=(db.test(h.url)?"&":"?")+h.data),n=h.url,h.cache===!1)){V=d.now();var ja=h.url.replace(Ab,"$1_="+V);h.url=ja+(ja===h.url?(db.test(h.url)?"&":"?")+"_="+V:"")}(h.data&&h.hasContent&&h.contentType!==!1||a.contentType)&&I.setRequestHeader("Content-Type",h.contentType);h.ifModified&&(n=n||h.url,d.lastModified[n]&&I.setRequestHeader("If-Modified-Since",d.lastModified[n]),d.etag[n]&&I.setRequestHeader("If-None-Match",d.etag[n]));I.setRequestHeader("Accept",
+h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+(h.dataTypes[0]!=="*"?", */*; q=0.01":""):h.accepts["*"]);for(J in h.headers)I.setRequestHeader(J,h.headers[J]);if(h.beforeSend&&(h.beforeSend.call(g,I,h)===!1||W===2))return I.abort(),!1;for(J in{success:1,error:1,complete:1})I[J](h[J]);if(Y=t(gb,h,a,I)){I.readyState=1;l&&f.trigger("ajaxSend",[I,h]);h.async&&h.timeout>0&&(k=setTimeout(function(){I.abort("timeout")},h.timeout));try{W=1,Y.send(H,e)}catch(x){status<2?e(-1,x):d.error(x)}}else e(-1,
+"No Transport");return I},param:function(c,a){var e=[],h=function(c,a){a=d.isFunction(a)?a():a;e[e.length]=encodeURIComponent(c)+"="+encodeURIComponent(a)};if(a===b)a=d.ajaxSettings.traditional;if(d.isArray(c)||c.jquery&&!d.isPlainObject(c))d.each(c,function(){h(this.name,this.value)});else for(var g in c)U(g,c[g],a,h);return e.join("&").replace(sb,"+")}});d.extend({active:0,lastModified:{},etag:{}});var Bb=d.now(),Sa=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+
+"_"+Bb++}});d.ajaxPrefilter("json jsonp",function(c,b,e){b=c.contentType==="application/x-www-form-urlencoded"&&typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||c.jsonp!==!1&&(Sa.test(c.url)||b&&Sa.test(c.data))){var h,g=c.jsonpCallback=d.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,f=a[g],q=c.url,p=c.data,w="$1"+g+"$2";c.jsonp!==!1&&(q=q.replace(Sa,w),c.url===q&&(b&&(p=p.replace(Sa,w)),c.data===p&&(q+=(/\?/.test(q)?"&":"?")+c.jsonp+"="+g)));c.url=q;c.data=p;a[g]=function(c){h=
+[c]};e.always(function(){a[g]=f;if(h&&d.isFunction(f))a[g](h[0])});c.converters["script json"]=function(){h||d.error(g+" was not called");return h[0]};c.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(c){d.globalEval(c);return c}}});d.ajaxPrefilter("script",function(c){if(c.cache===b)c.cache=!1;if(c.crossDomain)c.type=
+"GET",c.global=!1});d.ajaxTransport("script",function(c){if(c.crossDomain){var a,d=v.head||v.getElementsByTagName("head")[0]||v.documentElement;return{send:function(e,h){a=v.createElement("script");a.async="async";if(c.scriptCharset)a.charset=c.scriptCharset;a.src=c.url;a.onload=a.onreadystatechange=function(c,e){if(e||!a.readyState||/loaded|complete/.test(a.readyState))a.onload=a.onreadystatechange=null,d&&a.parentNode&&d.removeChild(a),a=b,e||h(200,"success")};d.insertBefore(a,d.firstChild)},abort:function(){if(a)a.onload(0,
+1)}}}});var Xa=a.ActiveXObject?function(){for(var c in Ka)Ka[c](0,1)}:!1,Cb=0,Ka;d.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&M()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}c=void 0}return c}:M;(function(c){d.extend(d.support,{ajax:!!c,cors:!!c&&"withCredentials"in c})})(d.ajaxSettings.xhr());d.support.ajax&&d.ajaxTransport(function(c){if(!c.crossDomain||d.support.cors){var e;return{send:function(h,g){var f=c.xhr(),q,p;c.username?f.open(c.type,
+c.url,c.async,c.username,c.password):f.open(c.type,c.url,c.async);if(c.xhrFields)for(p in c.xhrFields)f[p]=c.xhrFields[p];c.mimeType&&f.overrideMimeType&&f.overrideMimeType(c.mimeType);!c.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");try{for(p in h)f.setRequestHeader(p,h[p])}catch(w){}f.send(c.hasContent&&c.data||null);e=function(a,h){var p,w,n,r,H;try{if(e&&(h||f.readyState===4)){e=b;if(q)f.onreadystatechange=d.noop,Xa&&delete Ka[q];if(h)f.readyState!==4&&f.abort();
+else{p=f.status;n=f.getAllResponseHeaders();r={};if((H=f.responseXML)&&H.documentElement)r.xml=H;r.text=f.responseText;try{w=f.statusText}catch(Q){w=""}!p&&c.isLocal&&!c.crossDomain?p=r.text?200:404:p===1223&&(p=204)}}}catch(j){h||g(-1,j)}r&&g(p,w,r,n)};!c.async||f.readyState===4?e():(q=++Cb,Xa&&(Ka||(Ka={},d(a).unload(Xa)),Ka[q]=e),f.onreadystatechange=e)},abort:function(){e&&e(0,1)}}}});var Ua={},Aa,Ma,Db=/^(?:toggle|show|hide)$/,Eb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,La,$a=[["height","marginTop",
+"marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Pa,Ya=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;d.fn.extend({show:function(c,a,b){if(c||c===0)return this.animate(ha("show",3),c,a,b);else{for(var b=0,e=this.length;b<e;b++)if(c=this[b],c.style){a=c.style.display;if(!d._data(c,"olddisplay")&&a==="none")a=c.style.display="";a===""&&d.css(c,"display")==="none"&&d._data(c,"olddisplay",qa(c.nodeName))}for(b=
+0;b<e;b++)if(c=this[b],c.style&&(a=c.style.display,a===""||a==="none"))c.style.display=d._data(c,"olddisplay")||"";return this}},hide:function(a,b,e){if(a||a===0)return this.animate(ha("hide",3),a,b,e);else{a=0;for(b=this.length;a<b;a++)this[a].style&&(e=d.css(this[a],"display"),e!=="none"&&!d._data(this[a],"olddisplay")&&d._data(this[a],"olddisplay",e));for(a=0;a<b;a++)if(this[a].style)this[a].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(a,b,e){var h=typeof a==="boolean";
+d.isFunction(a)&&d.isFunction(b)?this._toggle.apply(this,arguments):a==null||h?this.each(function(){var b=h?a:d(this).is(":hidden");d(this)[b?"show":"hide"]()}):this.animate(ha("toggle",3),a,b,e);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,e,h){var g=d.speed(b,e,h);if(d.isEmptyObject(a))return this.each(g.complete,[!1]);a=d.extend({},a);return this[g.queue===!1?"each":"queue"](function(){var c;g.queue===
+!1&&d._mark(this);var b=d.extend({},g),e=this.nodeType===1,h=e&&d(this).is(":hidden"),f,o,q,p,w;b.animatedProperties={};for(q in a){f=d.camelCase(q);q!==f&&(a[f]=a[q],delete a[q]);o=a[f];d.isArray(o)?(b.animatedProperties[f]=o[1],c=a[f]=o[0],o=c):b.animatedProperties[f]=b.specialEasing&&b.specialEasing[f]||b.easing||"swing";if(o==="hide"&&h||o==="show"&&!h)return b.complete.call(this);if(e&&(f==="height"||f==="width"))if(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],d.css(this,
+"display")==="inline"&&d.css(this,"float")==="none")d.support.inlineBlockNeedsLayout?(o=qa(this.nodeName),o==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"}if(b.overflow!=null)this.style.overflow="hidden";for(q in a)if(e=new d.fx(this,b,q),o=a[q],Db.test(o))e[o==="toggle"?h?"show":"hide":o]();else f=Eb.exec(o),p=e.cur(),f?(o=parseFloat(f[2]),w=f[3]||(d.cssNumber[q]?"":"px"),w!=="px"&&(d.style(this,q,(o||1)+w),p*=(o||1)/
+e.cur(),d.style(this,q,p+w)),f[1]&&(o=(f[1]==="-="?-1:1)*o+p),e.custom(p,o,w)):e.custom(p,o,"");return!0})},stop:function(a,b){a&&this.queue([]);this.each(function(){var a=d.timers,c=a.length;for(b||d._unmark(!0,this);c--;)if(a[c].elem===this){if(b)a[c](!0);a.splice(c,1)}});b||this.dequeue();return this}});d.each({slideDown:ha("show",1),slideUp:ha("hide",1),slideToggle:ha("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,
+d){return this.animate(b,a,c,d)}});d.extend({speed:function(a,b,e){var h=a&&typeof a==="object"?d.extend({},a):{complete:e||!e&&b||d.isFunction(a)&&a,duration:a,easing:e&&b||b&&!d.isFunction(b)&&b};h.duration=d.fx.off?0:typeof h.duration==="number"?h.duration:h.duration in d.fx.speeds?d.fx.speeds[h.duration]:d.fx.speeds._default;h.old=h.complete;h.complete=function(a){h.queue!==!1?d.dequeue(this):a!==!1&&d._unmark(this);d.isFunction(h.old)&&h.old.call(this)};return h},easing:{linear:function(a,b,
+d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;b.orig=b.orig||{}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=
+parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,e){function h(a){return g.step(a)}var g=this,f=d.fx,q;this.startTime=Pa||ga();this.start=a;this.end=b;this.unit=e||this.unit||(d.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;h.elem=this.elem;h()&&d.timers.push(h)&&!La&&(Ya?(La=1,q=function(){La&&(Ya(q),f.tick())},Ya(q)):La=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop===
+"width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var b=Pa||ga(),e=!0,h=this.elem,g=this.options,f;if(a||b>=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(f in g.animatedProperties)g.animatedProperties[f]!==!0&&(e=!1);if(e){g.overflow!=null&&!d.support.shrinkWrapBlocks&&d.each(["",
+"X","Y"],function(a,c){h.style["overflow"+c]=g.overflow[a]});g.hide&&d(h).hide();if(g.hide||g.show)for(var q in g.animatedProperties)d.style(h,q,g.orig[q]);g.complete.call(h)}return!1}else g.duration==Infinity?this.now=b:(a=b-this.startTime,this.state=a/g.duration,this.pos=d.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}};d.extend(d.fx,{tick:function(){for(var a=d.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,
+1);a.length||d.fx.stop()},interval:13,stop:function(){clearInterval(La);La=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){d.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};var Fb=/^t(?:able|d|h)$/i,
+hb=/^(?:body|html)$/i;d.fn.offset="getBoundingClientRect"in v.documentElement?function(a){var b=this[0],e;if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);try{e=b.getBoundingClientRect()}catch(h){}var g=b.ownerDocument,f=g.documentElement;if(!e||!d.contains(f,b))return e?{top:e.top,left:e.left}:{top:0,left:0};b=g.body;g=va(g);return{top:e.top+(g.pageYOffset||d.support.boxModel&&f.scrollTop||
+b.scrollTop)-(f.clientTop||b.clientTop||0),left:e.left+(g.pageXOffset||d.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(b){d.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return d.offset.bodyOffset(b);d.offset.initialize();var e,h=b.offsetParent,g=b.ownerDocument,f=g.documentElement,q=g.body;e=(g=g.defaultView)?g.getComputedStyle(b,null):b.currentStyle;for(var p=
+b.offsetTop,w=b.offsetLeft;(b=b.parentNode)&&b!==q&&b!==f;){if(d.offset.supportsFixedPosition&&e.position==="fixed")break;e=g?g.getComputedStyle(b,null):b.currentStyle;p-=b.scrollTop;w-=b.scrollLeft;if(b===h){p+=b.offsetTop;w+=b.offsetLeft;if(d.offset.doesNotAddBorder&&(!d.offset.doesAddBorderForTableAndCells||!Fb.test(b.nodeName)))p+=parseFloat(e.borderTopWidth)||0,w+=parseFloat(e.borderLeftWidth)||0;h=b.offsetParent}d.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"&&(p+=parseFloat(e.borderTopWidth)||
+0,w+=parseFloat(e.borderLeftWidth)||0)}if(e.position==="relative"||e.position==="static")p+=q.offsetTop,w+=q.offsetLeft;d.offset.supportsFixedPosition&&e.position==="fixed"&&(p+=Math.max(f.scrollTop,q.scrollTop),w+=Math.max(f.scrollLeft,q.scrollLeft));return{top:p,left:w}};d.offset={initialize:function(){var a=v.body,b=v.createElement("div"),e,h,g,f=parseFloat(d.css(a,"marginTop"))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
+b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);e=b.firstChild;h=e.firstChild;g=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=h.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;h.style.position=
+"fixed";h.style.top="20px";this.supportsFixedPosition=h.offsetTop===20||h.offsetTop===15;h.style.position=h.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=h.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==f;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,e+=parseFloat(d.css(a,
+"marginLeft"))||0);return{top:b,left:e}},setOffset:function(a,b,e){var h=d.css(a,"position");if(h==="static")a.style.position="relative";var g=d(a),f=g.offset(),q=d.css(a,"top"),p=d.css(a,"left"),w={},n={};(h==="absolute"||h==="fixed")&&d.inArray("auto",[q,p])>-1?(n=g.position(),h=n.top,p=n.left):(h=parseFloat(q)||0,p=parseFloat(p)||0);d.isFunction(b)&&(b=b.call(a,e,f));if(b.top!=null)w.top=b.top-f.top+h;if(b.left!=null)w.left=b.left-f.left+p;"using"in b?b.using.call(a,w):g.css(w)}};d.fn.extend({position:function(){if(!this[0])return null;
+var a=this[0],b=this.offsetParent(),e=this.offset(),h=hb.test(b[0].nodeName)?{top:0,left:0}:b.offset();e.top-=parseFloat(d.css(a,"marginTop"))||0;e.left-=parseFloat(d.css(a,"marginLeft"))||0;h.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0;h.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:e.top-h.top,left:e.left-h.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||v.body;a&&!hb.test(a.nodeName)&&d.css(a,"position")==="static";)a=a.offsetParent;return a})}});
+d.each(["Left","Top"],function(a,e){var h="scroll"+e;d.fn[h]=function(e){var g,f;if(e===b){g=this[0];if(!g)return null;return(f=va(g))?"pageXOffset"in f?f[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&f.document.documentElement[h]||f.document.body[h]:g[h]}return this.each(function(){(f=va(this))?f.scrollTo(!a?e:d(f).scrollLeft(),a?e:d(f).scrollTop()):this[h]=e})}});d.each(["Height","Width"],function(a,e){var h=e.toLowerCase();d.fn["inner"+e]=function(){return this[0]?parseFloat(d.css(this[0],
+h,"padding")):null};d.fn["outer"+e]=function(a){return this[0]?parseFloat(d.css(this[0],h,a?"margin":"border")):null};d.fn[h]=function(a){var c=this[0];if(!c)return a==null?null:this;if(d.isFunction(a))return this.each(function(c){var b=d(this);b[h](a.call(this,c,b[h]()))});if(d.isWindow(c)){var g=c.document.documentElement["client"+e];return c.document.compatMode==="CSS1Compat"&&g||c.document.body["client"+e]||g}else return c.nodeType===9?Math.max(c.documentElement["client"+e],c.body["scroll"+e],
+c.documentElement["scroll"+e],c.body["offset"+e],c.documentElement["offset"+e]):a===b?(c=d.css(c,h),g=parseFloat(c),d.isNaN(g)?c:g):this.css(h,typeof a==="string"?a:a+"px")}});a.jQuery=a.$=d})(window);
+// Input 3
+document.createElement("canvas").getContext||function(){function a(){return this.context_||(this.context_=new s(this))}function b(a,b){var e=d.call(arguments,2);return function(){return a.apply(b,e.concat(d.call(arguments)))}}function e(a){return String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function f(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");
+if(!a.styleSheets.ex_canvas_)a=a.createStyleSheet(),a.owningElement.id="ex_canvas_",a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}function j(a){var b=a.srcElement;switch(a.propertyName){case "width":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+"px";b.firstChild.style.width=b.clientWidth+"px";break;case "height":b.getContext().clearRect(),b.style.height=b.attributes.height.nodeValue+"px",b.firstChild.style.height=b.clientHeight+
+"px"}}function l(a){a=a.srcElement;if(a.firstChild)a.firstChild.style.width=a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px"}function k(){return[[1,0,0],[0,1,0],[0,0,1]]}function A(a,b){for(var d=k(),e=0;e<3;e++)for(var f=0;f<3;f++){for(var j=0,l=0;l<3;l++)j+=a[e][l]*b[l][f];d[e][f]=j}return d}function G(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=
+a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function D(a){var b=a.indexOf("(",3),d=a.indexOf(")",b+1),b=a.substring(b+1,d).split(",");if(b.length!=4||a.charAt(3)!="a")b[3]=1;return b}function L(a,b,d){return Math.min(d,Math.max(b,a))}function B(a,b,d){d<0&&d++;d>1&&d--;return 6*d<1?a+(b-a)*6*d:
+2*d<1?b:3*d<2?a+(b-a)*(2/3-d)*6:a}function z(a){if(a in ca)return ca[a];var b,d=1,a=String(a);if(a.charAt(0)=="#")b=a;else if(/^rgb/.test(a)){d=D(a);b="#";for(var e,f=0;f<3;f++)e=d[f].indexOf("%")!=-1?Math.floor(parseFloat(d[f])/100*255):+d[f],b+=ba[L(e,0,255)];d=+d[3]}else if(/^hsl/.test(a)){f=d=D(a);b=parseFloat(f[0])/360%360;b<0&&b++;e=L(parseFloat(f[1])/100,0,1);f=L(parseFloat(f[2])/100,0,1);if(e==0)e=f=b=f;else{var j=f<0.5?f*(1+e):f+e-f*e,k=2*f-j;e=B(k,j,b+1/3);f=B(k,j,b);b=B(k,j,b-1/3)}b="#"+
+ba[Math.floor(e*255)]+ba[Math.floor(f*255)]+ba[Math.floor(b*255)];d=d[3]}else b=ka[a]||a;return ca[a]={color:b,alpha:d}}function s(a){this.m_=k();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=S*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=a;var b="width:"+a.clientWidth+"px;height:"+a.clientHeight+"px;overflow:hidden;position:absolute",
+d=a.ownerDocument.createElement("div");d.style.cssText=b;a.appendChild(d);b=d.cloneNode(!1);b.style.backgroundColor="red";b.style.filter="alpha(opacity=0)";a.appendChild(b);this.element_=d;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function C(a,b,d,e){a.currentPath_.push({type:"bezierCurveTo",cp1x:b.x,cp1y:b.y,cp2x:d.x,cp2y:d.y,x:e.x,y:e.y});a.currentX_=e.x;a.currentY_=e.y}function fa(a,b){var d=z(a.strokeStyle),e=d.color,d=d.alpha*a.globalAlpha,f=a.lineScale_*a.lineWidth;f<1&&(d*=f);b.push("<g_vml_:stroke",
+' opacity="',d,'"',' joinstyle="',a.lineJoin,'"',' miterlimit="',a.miterLimit,'"',' endcap="',$[a.lineCap]||"square",'"',' weight="',f,'px"',' color="',e,'" />')}function R(a,b,d,e){var f=a.fillStyle,j=a.arcScaleX_,k=a.arcScaleY_,l=e.x-d.x,s=e.y-d.y;if(f instanceof t){var C=0,e={x:0,y:0},A=0,v=1;if(f.type_=="gradient"){var C=f.x1_/j,d=f.y1_/k,E=P(a,f.x0_/j,f.y0_/k),C=P(a,C,d),C=Math.atan2(C.x-E.x,C.y-E.y)*180/Math.PI;C<0&&(C+=360);C<1.0E-6&&(C=0)}else E=P(a,f.x0_,f.y0_),e={x:(E.x-d.x)/l,y:(E.y-d.y)/
+s},l/=j*S,s/=k*S,v=ga.max(l,s),A=2*f.r0_/v,v=2*f.r1_/v-A;j=f.colors_;j.sort(function(a,b){return a.offset-b.offset});for(var k=j.length,E=j[0].color,d=j[k-1].color,l=j[0].alpha*a.globalAlpha,a=j[k-1].alpha*a.globalAlpha,s=[],R=0;R<k;R++){var $=j[R];s.push($.offset*v+A+" "+$.color)}b.push('<g_vml_:fill type="',f.type_,'"',' method="none" focus="100%"',' color="',E,'"',' color2="',d,'"',' colors="',s.join(","),'"',' opacity="',a,'"',' g_o_:opacity2="',l,'"',' angle="',C,'"',' focusposition="',e.x,",",
+e.y,'" />')}else f instanceof U?l&&s&&b.push("<g_vml_:fill",' position="',-d.x/l*j*j,",",-d.y/s*k*k,'"',' type="tile"',' src="',f.src_,'" />'):(f=z(a.fillStyle),b.push('<g_vml_:fill color="',f.color,'" opacity="',f.alpha*a.globalAlpha,'" />'))}function P(a,b,d){a=a.m_;return{x:S*(b*a[0][0]+d*a[1][0]+a[2][0])-X,y:S*(b*a[0][1]+d*a[1][1]+a[2][1])-X}}function N(a,b,d){if(isFinite(b[0][0])&&isFinite(b[0][1])&&isFinite(b[1][0])&&isFinite(b[1][1])&&isFinite(b[2][0])&&isFinite(b[2][1])&&(a.m_=b,d))a.lineScale_=
+v(va(b[0][0]*b[1][1]-b[0][1]*b[1][0]))}function t(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function U(a,b){if(!a||a.nodeType!=1||a.tagName!="IMG")throw new M("TYPE_MISMATCH_ERR");if(a.readyState!="complete")throw new M("INVALID_STATE_ERR");switch(b){case "repeat":case null:case "":this.repetition_="repeat";break;case "repeat-x":case "repeat-y":case "no-repeat":this.repetition_=b;break;default:throw new M("SYNTAX_ERR");}this.src_=a.src;this.width_=a.width;
+this.height_=a.height}function M(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var ga=Math,O=ga.round,ha=ga.sin,qa=ga.cos,va=ga.abs,v=ga.sqrt,S=10,X=S/2;navigator.userAgent.match(/MSIE ([\d.]+)?/);var d=Array.prototype.slice;f(document);var aa={init:function(a){a=a||document;a.createElement("canvas");a.attachEvent("onreadystatechange",b(this.init_,this,a))},init_:function(a){for(var a=a.getElementsByTagName("canvas"),b=0;b<a.length;b++)this.initElement(a[b])},initElement:function(b){if(!b.getContext){b.getContext=
+a;f(b.ownerDocument);b.innerHTML="";b.attachEvent("onpropertychange",j);b.attachEvent("onresize",l);var d=b.attributes;d.width&&d.width.specified?b.style.width=d.width.nodeValue+"px":b.width=b.clientWidth;d.height&&d.height.specified?b.style.height=d.height.nodeValue+"px":b.height=b.clientHeight}return b}};aa.init();for(var ba=[],F=0;F<16;F++)for(var oa=0;oa<16;oa++)ba[F*16+oa]=F.toString(16)+oa.toString(16);var ka={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",
+bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",
+darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",
+ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",
+mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",
+peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},
+ca={},ra={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"},wa={},$={butt:"flat",round:"round"},F=s.prototype;F.clearRect=function(){if(this.textMeasureEl_)this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null;this.element_.innerHTML=""};F.beginPath=function(){this.currentPath_=[]};F.moveTo=function(a,b){var d=P(this,a,b);this.currentPath_.push({type:"moveTo",x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};F.lineTo=function(a,b){var d=P(this,a,b);this.currentPath_.push({type:"lineTo",
+x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};F.bezierCurveTo=function(a,b,d,e,f,j){f=P(this,f,j);a=P(this,a,b);d=P(this,d,e);C(this,a,d,f)};F.quadraticCurveTo=function(a,b,d,e){a=P(this,a,b);d=P(this,d,e);e={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};C(this,e,{x:e.x+(d.x-this.currentX_)/3,y:e.y+(d.y-this.currentY_)/3},d)};F.arc=function(a,b,d,e,f,j){d*=S;var k=j?"at":"wa",l=a+qa(e)*d-X,s=b+ha(e)*d-X,e=a+qa(f)*d-X,f=b+ha(f)*d-X;l==e&&!j&&(l+=0.125);
+a=P(this,a,b);l=P(this,l,s);e=P(this,e,f);this.currentPath_.push({type:k,x:a.x,y:a.y,radius:d,xStart:l.x,yStart:l.y,xEnd:e.x,yEnd:e.y})};F.rect=function(a,b,d,e){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath()};F.strokeRect=function(a,b,d,e){var f=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath();this.stroke();this.currentPath_=f};F.fillRect=function(a,b,d,e){var f=this.currentPath_;
+this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+e);this.lineTo(a,b+e);this.closePath();this.fill();this.currentPath_=f};F.createLinearGradient=function(a,b,d,e){var f=new t("gradient");f.x0_=a;f.y0_=b;f.x1_=d;f.y1_=e;return f};F.createRadialGradient=function(a,b,d,e,f,j){var k=new t("gradientradial");k.x0_=a;k.y0_=b;k.r0_=d;k.x1_=e;k.y1_=f;k.r1_=j;return k};F.drawImage=function(a){var b,d,e,f,j,k,l,s;e=a.runtimeStyle.width;f=a.runtimeStyle.height;a.runtimeStyle.width="auto";
+a.runtimeStyle.height="auto";var z=a.width,C=a.height;a.runtimeStyle.width=e;a.runtimeStyle.height=f;if(arguments.length==3)b=arguments[1],d=arguments[2],j=k=0,l=e=z,s=f=C;else if(arguments.length==5)b=arguments[1],d=arguments[2],e=arguments[3],f=arguments[4],j=k=0,l=z,s=C;else if(arguments.length==9)j=arguments[1],k=arguments[2],l=arguments[3],s=arguments[4],b=arguments[5],d=arguments[6],e=arguments[7],f=arguments[8];else throw Error("Invalid number of arguments");var t=P(this,b,d),A=[];A.push(" <g_vml_:group",
+' coordsize="',S*10,",",S*10,'"',' coordorigin="0,0"',' style="width:',10,"px;height:",10,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var v=[];v.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",O(t.x/S),",","Dy=",O(t.y/S),"");var R=P(this,b+e,d),$=P(this,b,d+f);b=P(this,b+e,d+f);t.x=ga.max(t.x,R.x,$.x,b.x);t.y=ga.max(t.y,R.y,$.y,b.y);A.push("padding:0 ",O(t.x/S),"px ",O(t.y/S),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",
+v.join(""),", sizingmethod='clip');")}else A.push("top:",O(t.y/S),"px;left:",O(t.x/S),"px;");A.push(' ">','<g_vml_:image src="',a.src,'"',' style="width:',S*e,"px;"," height:",S*f,'px"',' cropleft="',j/z,'"',' croptop="',k/C,'"',' cropright="',(z-j-l)/z,'"',' cropbottom="',(C-k-s)/C,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",A.join(""))};F.stroke=function(a){for(var b={x:null,y:null},d={x:null,y:null},e=0;e<this.currentPath_.length;e+=5E3){var f=[];f.push("<g_vml_:shape",
+' filled="',!!a,'"',' style="position:absolute;width:',10,"px;height:",10,'px;"',' coordorigin="0,0"',' coordsize="',S*10,",",S*10,'"',' stroked="',!a,'"',' path="');for(var j=e;j<Math.min(e+5E3,this.currentPath_.length);j++){j%5E3==0&&j>0&&f.push(" m ",O(this.currentPath_[j-1].x),",",O(this.currentPath_[j-1].y));var k=this.currentPath_[j];switch(k.type){case "moveTo":f.push(" m ",O(k.x),",",O(k.y));break;case "lineTo":f.push(" l ",O(k.x),",",O(k.y));break;case "close":f.push(" x ");k=null;break;
+case "bezierCurveTo":f.push(" c ",O(k.cp1x),",",O(k.cp1y),",",O(k.cp2x),",",O(k.cp2y),",",O(k.x),",",O(k.y));break;case "at":case "wa":f.push(" ",k.type," ",O(k.x-this.arcScaleX_*k.radius),",",O(k.y-this.arcScaleY_*k.radius)," ",O(k.x+this.arcScaleX_*k.radius),",",O(k.y+this.arcScaleY_*k.radius)," ",O(k.xStart),",",O(k.yStart)," ",O(k.xEnd),",",O(k.yEnd))}if(k){if(b.x==null||k.x<b.x)b.x=k.x;if(d.x==null||k.x>d.x)d.x=k.x;if(b.y==null||k.y<b.y)b.y=k.y;if(d.y==null||k.y>d.y)d.y=k.y}}f.push(' ">');a?
+R(this,f,b,d):fa(this,f);f.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",f.join(""))}};F.fill=function(){this.stroke(!0)};F.closePath=function(){this.currentPath_.push({type:"close"})};F.save=function(){var a={};G(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=A(k(),this.m_)};F.restore=function(){if(this.aStack_.length)G(this.aStack_.pop(),this),this.m_=this.mStack_.pop()};F.translate=function(a,b){N(this,A([[1,0,0],[0,1,0],[a,b,1]],this.m_),!1)};F.rotate=function(a){var b=
+qa(a),a=ha(a);N(this,A([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};F.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;N(this,A([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};F.transform=function(a,b,d,e,f,j){N(this,A([[a,b,0],[d,e,0],[f,j,1]],this.m_),!0)};F.setTransform=function(a,b,d,e,f,j){N(this,[[a,b,0],[d,e,0],[f,j,1]],!0)};F.drawText_=function(a,b,d,f,j){var k=this.m_,f=0,l=1E3,s={x:0,y:0},z=[],C;C=this.font;if(wa[C])C=wa[C];else{var t=document.createElement("div").style;try{t.font=C}catch(A){}C=
+wa[C]={style:t.fontStyle||ra.style,variant:t.fontVariant||ra.variant,weight:t.fontWeight||ra.weight,size:t.fontSize||ra.size,family:t.fontFamily||ra.family}}var t=C,v=this.element_;C={};for(var $ in t)C[$]=t[$];$=parseFloat(v.currentStyle.fontSize);v=parseFloat(t.size);C.size=typeof t.size=="number"?t.size:t.size.indexOf("px")!=-1?v:t.size.indexOf("em")!=-1?$*v:t.size.indexOf("%")!=-1?$/100*v:t.size.indexOf("pt")!=-1?v/0.75:$;C.size*=0.981;$=C.style+" "+C.variant+" "+C.weight+" "+C.size+"px "+C.family;
+v=this.element_.currentStyle;t=this.textAlign.toLowerCase();switch(t){case "left":case "center":case "right":break;case "end":t=v.direction=="ltr"?"right":"left";break;case "start":t=v.direction=="rtl"?"right":"left";break;default:t="left"}switch(this.textBaseline){case "hanging":case "top":s.y=C.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":s.y=-C.size/2.25}switch(t){case "right":f=1E3;l=0.05;break;case "center":f=l=500}b=P(this,b+s.x,d+
+s.y);z.push('<g_vml_:line from="',-f,' 0" to="',l,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!j,'" stroked="',!!j,'" style="position:absolute;width:1px;height:1px;">');j?fa(this,z):R(this,z,{x:-f,y:0},{x:l,y:C.size});j=k[0][0].toFixed(3)+","+k[1][0].toFixed(3)+","+k[0][1].toFixed(3)+","+k[1][1].toFixed(3)+",0,0";b=O(b.x/S)+","+O(b.y/S);z.push('<g_vml_:skew on="t" matrix="',j,'" ',' offset="',b,'" origin="',f,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',
+e(a),'" style="v-text-align:',t,";font:",e($),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",z.join(""))};F.fillText=function(a,b,d,e){this.drawText_(a,b,d,e,!1)};F.strokeText=function(a,b,d,e){this.drawText_(a,b,d,e,!0)};F.measureText=function(a){if(!this.textMeasureEl_)this.element_.insertAdjacentHTML("beforeEnd",'<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>'),this.textMeasureEl_=this.element_.lastChild;var b=this.element_.ownerDocument;
+this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};F.clip=function(){};F.arcTo=function(){};F.createPattern=function(a,b){return new U(a,b)};t.prototype.addColorStop=function(a,b){b=z(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};F=M.prototype=Error();F.INDEX_SIZE_ERR=1;F.DOMSTRING_SIZE_ERR=2;F.HIERARCHY_REQUEST_ERR=3;F.WRONG_DOCUMENT_ERR=4;F.INVALID_CHARACTER_ERR=
+5;F.NO_DATA_ALLOWED_ERR=6;F.NO_MODIFICATION_ALLOWED_ERR=7;F.NOT_FOUND_ERR=8;F.NOT_SUPPORTED_ERR=9;F.INUSE_ATTRIBUTE_ERR=10;F.INVALID_STATE_ERR=11;F.SYNTAX_ERR=12;F.INVALID_MODIFICATION_ERR=13;F.NAMESPACE_ERR=14;F.INVALID_ACCESS_ERR=15;F.VALIDATION_ERR=16;F.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=aa;CanvasRenderingContext2D=s;CanvasGradient=t;CanvasPattern=U;DOMException=M}();
+// Input 4
+(function(a){a.color={};a.color.make=function(b,f,j,l){var k={};k.r=b||0;k.g=f||0;k.b=j||0;k.a=l!=null?l:1;k.add=function(a,b){for(var e=0;e<a.length;++e)k[a.charAt(e)]+=b;return k.normalize()};k.scale=function(a,b){for(var e=0;e<a.length;++e)k[a.charAt(e)]*=b;return k.normalize()};k.toString=function(){return k.a>=1?"rgb("+[k.r,k.g,k.b].join(",")+")":"rgba("+[k.r,k.g,k.b,k.a].join(",")+")"};k.normalize=function(){function a(b,e,f){return e<b?b:e>f?f:e}k.r=a(0,parseInt(k.r),255);k.g=a(0,parseInt(k.g),
+255);k.b=a(0,parseInt(k.b),255);k.a=a(0,k.a,1);return k};k.clone=function(){return a.color.make(k.r,k.b,k.g,k.a)};return k.normalize()};a.color.extract=function(b,f){var j;do{j=b.css(f).toLowerCase();if(j!=""&&j!="transparent")break;b=b.parent()}while(!a.nodeName(b.get(0),"body"));j=="rgba(0, 0, 0, 0)"&&(j="transparent");return a.color.parse(j)};a.color.parse=function(e){var f,j=a.color.make;if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(e))return j(parseInt(f[1],10),
+parseInt(f[2],10),parseInt(f[3],10));if(f=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return j(parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10),parseFloat(f[4]));if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(e))return j(parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55);if(f=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(e))return j(parseFloat(f[1])*
+2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55,parseFloat(f[4]));if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))return j(parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16));if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(e))return j(parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16));e=a.trim(e).toLowerCase();return e=="transparent"?j(255,255,255,0):(f=b[e]||[0,0,0],j(f[0],f[1],f[2]))};var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
+0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
+211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);
+(function(a){function b(b,j,l,k){function A(a,b){for(var b=[T].concat(b),d=0;d<a.length;++d)a[d].apply(this,b)}function G(b){for(var d=[],e=0;e<b.length;++e){var f=a.extend(!0,{},n.series);b[e].data!=null?(f.data=b[e].data,delete b[e].data,a.extend(!0,f,b[e]),b[e].data=f.data):f.data=b[e];d.push(f)}J=d;d=J.length;e=[];f=[];for(b=0;b<J.length;++b){var g=J[b].color;g!=null&&(--d,typeof g=="number"?f.push(g):e.push(a.color.parse(J[b].color)))}for(b=0;b<f.length;++b)d=Math.max(d,f[b]+1);e=[];for(b=f=
+0;e.length<d;)g=n.colors.length==b?a.color.make(100,100,100):a.color.parse(n.colors[b]),g.scale("rgb",1+(f%2==1?-1:1)*Math.ceil(f/2)*0.2),e.push(g),++b,b>=n.colors.length&&(b=0,++f);for(b=d=0;b<J.length;++b){f=J[b];if(f.color==null)f.color=e[d].toString(),++d;else if(typeof f.color=="number")f.color=e[f.color].toString();if(f.lines.show==null){var j,g=!0;for(j in f)if(f[j]&&f[j].show){g=!1;break}if(g)f.lines.show=!0}f.xaxis=z(ia,D(f,"x"));f.yaxis=z(la,D(f,"y"))}s()}function D(a,b){var d=a[b+"axis"];
+if(typeof d=="object")d=d.n;typeof d!="number"&&(d=1);return d}function L(){return a.grep(ia.concat(la),function(a){return a})}function B(a){var b={},d,e;for(d=0;d<ia.length;++d)(e=ia[d])&&e.used&&(b["x"+e.n]=e.c2p(a.left));for(d=0;d<la.length;++d)(e=la[d])&&e.used&&(b["y"+e.n]=e.c2p(a.top));if(b.x1!==void 0)b.x=b.x1;if(b.y1!==void 0)b.y=b.y1;return b}function z(b,d){b[d-1]||(b[d-1]={n:d,direction:b==ia?"x":"y",options:a.extend(!0,{},b==ia?n.xaxis:n.yaxis)});return b[d-1]}function s(){function b(a,
+d,e){if(d<a.datamin&&d!=-f)a.datamin=d;if(e>a.datamax&&e!=f)a.datamax=e}var d=Number.POSITIVE_INFINITY,e=Number.NEGATIVE_INFINITY,f=Number.MAX_VALUE,g,j,k,n,p,l,I,s,t,z;a.each(L(),function(a,b){b.datamin=d;b.datamax=e;b.used=!1});for(g=0;g<J.length;++g)p=J[g],p.datapoints={points:[]},A(ua.processRawData,[p,p.data,p.datapoints]);for(g=0;g<J.length;++g){p=J[g];var C=p.data,v=p.datapoints.format;if(!v){v=[];v.push({x:!0,number:!0,required:!0});v.push({y:!0,number:!0,required:!0});if(p.bars.show||p.lines.show&&
+p.lines.fill)if(v.push({y:!0,number:!0,required:!1,defaultValue:0}),p.bars.horizontal)delete v[v.length-1].y,v[v.length-1].x=!0;p.datapoints.format=v}if(p.datapoints.pointsize==null){p.datapoints.pointsize=v.length;I=p.datapoints.pointsize;l=p.datapoints.points;insertSteps=p.lines.show&&p.lines.steps;p.xaxis.used=p.yaxis.used=!0;for(j=k=0;j<C.length;++j,k+=I){z=C[j];var x=z==null;if(!x)for(n=0;n<I;++n){s=z[n];if(t=v[n])if(t.number&&s!=null&&(s=+s,isNaN(s)?s=null:s==Infinity?s=f:s==-Infinity&&(s=-f)),
+s==null&&(t.required&&(x=!0),t.defaultValue!=null))s=t.defaultValue;l[k+n]=s}if(x)for(n=0;n<I;++n)s=l[k+n],s!=null&&(t=v[n],t.x&&b(p.xaxis,s,s),t.y&&b(p.yaxis,s,s)),l[k+n]=null;else if(insertSteps&&k>0&&l[k-I]!=null&&l[k-I]!=l[k]&&l[k-I+1]!=l[k+1]){for(n=0;n<I;++n)l[k+I+n]=l[k+n];l[k+1]=l[k-I+1];k+=I}}}}for(g=0;g<J.length;++g)p=J[g],A(ua.processDatapoints,[p,p.datapoints]);for(g=0;g<J.length;++g){p=J[g];l=p.datapoints.points;I=p.datapoints.pointsize;v=p.datapoints.format;z=k=d;x=C=e;for(j=0;j<l.length;j+=
+I)if(l[j]!=null)for(n=0;n<I;++n)if(s=l[j+n],(t=v[n])&&!(s==f||s==-f))t.x&&(s<k&&(k=s),s>C&&(C=s)),t.y&&(s<z&&(z=s),s>x&&(x=s));p.bars.show&&(j=p.bars.align=="left"?0:-p.bars.barWidth/2,p.bars.horizontal?(z+=j,x+=j+p.bars.barWidth):(k+=j,C+=j+p.bars.barWidth));b(p.xaxis,k,C);b(p.yaxis,z,x)}a.each(L(),function(a,b){if(b.datamin==d)b.datamin=null;if(b.datamax==e)b.datamax=null})}function C(d,e){var g=document.createElement("canvas");g.className=e;g.width=ea;g.height=ma;d||a(g).css({position:"absolute",
+left:0,top:0});a(g).appendTo(b);g.getContext||(g=window.G_vmlCanvasManager.initElement(g));g.getContext("2d").save();return g}function fa(){ea=b.width();ma=b.height();if(ea<=0||ma<=0)throw"Invalid dimensions for plot, width = "+ea+", height = "+ma;}function R(a){if(a.width!=ea)a.width=ea;if(a.height!=ma)a.height=ma;a=a.getContext("2d");a.restore();a.save()}function P(a){function b(a){return a}var d,e,f=a.options.transform||b,g=a.options.inverseTransform;a.direction=="x"?(d=a.scale=xa/Math.abs(f(a.max)-
+f(a.min)),e=Math.min(f(a.max),f(a.min))):(d=a.scale=ta/Math.abs(f(a.max)-f(a.min)),d=-d,e=Math.max(f(a.max),f(a.min)));a.p2c=f==b?function(a){return(a-e)*d}:function(a){return(f(a)-e)*d};a.c2p=g?function(a){return g(e+a/d)}:function(a){return e+a/d}}function N(b){var d=b.labelWidth,e=b.labelHeight,f=b.options.position,g=b.options.tickLength,j=n.grid.axisMargin,k=n.grid.labelMargin,p=b.direction=="x"?ia:la,l=a.grep(p,function(a){return a&&a.options.position==f&&a.reserveSpace});a.inArray(b,l)==l.length-
+1&&(j=0);if(g==null)var g=a.grep(p,function(a){return a&&a.reserveSpace}),s=a.inArray(b,g)==0,g=s?"full":5;isNaN(+g)||(k+=+g);b.direction=="x"?(e+=k,f=="bottom"?(E.bottom+=e+j,b.box={top:ma-E.bottom,height:e}):(b.box={top:E.top+j,height:e},E.top+=e+j)):(d+=k,f=="left"?(b.box={left:E.left+j,width:d},E.left+=d+j):(E.right+=d+j,b.box={left:ea-E.right,width:d}));b.position=f;b.tickLength=g;b.box.padding=k;b.innermost=s}function t(){var b=n.grid.minBorderMargin,d={x:0,y:0},e;if(b==null)for(e=b=0;e<J.length;++e)b=
+Math.max(b,2*(J[e].points.radius+J[e].points.lineWidth/2));d.x=d.y=Math.ceil(b);a.each(L(),function(a,b){var e=b.direction;b.reserveSpace&&(d[e]=Math.ceil(Math.max(d[e],(e=="x"?b.labelWidth:b.labelHeight)/2)))});E.left=Math.max(d.x,E.left);E.right=Math.max(d.x,E.right);E.top=Math.max(d.y,E.top);E.bottom=Math.max(d.y,E.bottom)}function U(){var d,e=L();d=n.grid.show;for(var g in E)E[g]=d?n.grid.borderWidth:0;a.each(e,function(a,b){b.show=b.options.show;if(b.show==null)b.show=b.used;b.reserveSpace=b.show||
+b.options.reserveSpace;var d=b.options,e=+(d.min!=null?d.min:b.datamin),h=+(d.max!=null?d.max:b.datamax),f=h-e;if(f==0){if(f=h==0?1:0.01,d.min==null&&(e-=f),d.max==null||d.min!=null)h+=f}else{var g=d.autoscaleMargin;g!=null&&(d.min==null&&(e-=f*g,e<0&&b.datamin!=null&&b.datamin>=0&&(e=0)),d.max==null&&(h+=f*g,h>0&&b.datamax!=null&&b.datamax<=0&&(h=0)))}b.min=e;b.max=h});if(d){var j={style:b.css("font-style"),size:Math.round(0.8*(+b.css("font-size").replace("px","")||13)),variant:b.css("font-variant"),
+weight:b.css("font-weight"),family:b.css("font-family")};g=a.grep(e,function(a){return a.reserveSpace});a.each(g,function(b,d){M(d);var e=d.options.ticks,h=[];e==null||typeof e=="number"&&e>0?h=d.tickGenerator(d):e&&(h=a.isFunction(e)?e(d):e);var f;d.ticks=[];for(e=0;e<h.length;++e){var g=null,q=h[e];typeof q=="object"?(f=+q[0],q.length>1&&(g=q[1])):f=+q;g==null&&(g=d.tickFormatter(f,d));isNaN(f)||d.ticks.push({v:f,label:g})}h=d.ticks;if(d.options.autoscaleMargin&&h.length>0){if(d.options.min==null)d.min=
+Math.min(d.min,h[0].v);if(d.options.max==null&&h.length>1)d.max=Math.max(d.max,h[h.length-1].v)}d.font=a.extend({},j,d.options.font);h=d.options;e=d.ticks||[];f=h.labelWidth||0;g=h.labelHeight||0;q=d.font;x.save();x.font=q.style+" "+q.variant+" "+q.weight+" "+q.size+"px '"+q.family+"'";for(var k=0;k<e.length;++k){var n=e[k];n.lines=[];n.width=n.height=0;if(n.label){for(var p=n.label.replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n"),H=0;H<p.length;++H){var l={text:p[H]},s=x.measureText(l.text);l.width=
+s.width;l.height=s.height!=null?s.height:q.size;l.height+=Math.round(q.size*0.15);n.width=Math.max(l.width,n.width);n.height+=l.height;n.lines.push(l)}h.labelWidth==null&&(f=Math.max(f,n.width));h.labelHeight==null&&(g=Math.max(g,n.height))}}x.restore();d.labelWidth=Math.ceil(f);d.labelHeight=Math.ceil(g)});for(d=g.length-1;d>=0;--d)N(g[d]);t();a.each(g,function(a,b){b.direction=="x"?(b.box.left=E.left-b.labelWidth/2,b.box.width=ea-E.left-E.right+b.labelWidth):(b.box.top=E.top-b.labelHeight/2,b.box.height=
+ma-E.bottom-E.top+b.labelHeight)})}xa=ea-E.left-E.right;ta=ma-E.bottom-E.top;a.each(e,function(a,b){P(b)});aa()}function M(b){var d=b.options,f=(b.max-b.min)/(typeof d.ticks=="number"&&d.ticks>0?d.ticks:0.3*Math.sqrt(b.direction=="x"?ea:ma)),g,j,k,n;if(d.mode=="time"){var p={second:1E3,minute:6E4,hour:36E5,day:864E5,month:2592E6,year:525949.2*6E4};n=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,
+"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];g=0;d.minTickSize!=null&&(g=typeof d.tickSize=="number"?d.tickSize:d.minTickSize[0]*p[d.minTickSize[1]]);for(j=0;j<n.length-1;++j)if(f<(n[j][0]*p[n[j][1]]+n[j+1][0]*p[n[j+1][1]])/2&&n[j][0]*p[n[j][1]]>=g)break;g=n[j][0];k=n[j][1];k=="year"&&(j=Math.pow(10,Math.floor(Math.log(f/p.year)/Math.LN10)),n=f/p.year/j,g=n<1.5?1:n<3?2:n<7.5?5:10,g*=
+j);b.tickSize=d.tickSize||[g,k];j=function(a){var b=[],d=a.tickSize[0],h=a.tickSize[1],f=new Date(a.min),g=d*p[h];h=="second"&&f.setUTCSeconds(e(f.getUTCSeconds(),d));h=="minute"&&f.setUTCMinutes(e(f.getUTCMinutes(),d));h=="hour"&&f.setUTCHours(e(f.getUTCHours(),d));h=="month"&&f.setUTCMonth(e(f.getUTCMonth(),d));h=="year"&&f.setUTCFullYear(e(f.getUTCFullYear(),d));f.setUTCMilliseconds(0);g>=p.minute&&f.setUTCSeconds(0);g>=p.hour&&f.setUTCMinutes(0);g>=p.day&&f.setUTCHours(0);g>=p.day*4&&f.setUTCDate(1);
+g>=p.year&&f.setUTCMonth(0);var j=0,q=Number.NaN,k;do if(k=q,q=f.getTime(),b.push(q),h=="month")if(d<1){f.setUTCDate(1);var n=f.getTime();f.setUTCMonth(f.getUTCMonth()+1);var w=f.getTime();f.setTime(q+j*p.hour+(w-n)*d);j=f.getUTCHours();f.setUTCHours(0)}else f.setUTCMonth(f.getUTCMonth()+d);else h=="year"?f.setUTCFullYear(f.getUTCFullYear()+d):f.setTime(q+g);while(q<a.max&&q!=k);return b};g=function(b,e){var h=new Date(b);if(d.timeformat!=null)return a.plot.formatDate(h,d.timeformat,d.monthNames);
+var f=e.tickSize[0]*p[e.tickSize[1]],g=e.max-e.min,j=d.twelveHourClock?" %p":"";fmt=f<p.minute?"%h:%M:%S"+j:f<p.day?g<2*p.day?"%h:%M"+j:"%b %d %h:%M"+j:f<p.month?"%b %d":f<p.year?g<p.year?"%b":"%b %y":"%y";return a.plot.formatDate(h,fmt,d.monthNames)}}else{k=d.tickDecimals;var l=-Math.floor(Math.log(f)/Math.LN10);k!=null&&l>k&&(l=k);j=Math.pow(10,-l);n=f/j;if(n<1.5)g=1;else if(n<3){if(g=2,n>2.25&&(k==null||l+1<=k))g=2.5,++l}else g=n<7.5?5:10;g*=j;if(d.minTickSize!=null&&g<d.minTickSize)g=d.minTickSize;
+b.tickDecimals=Math.max(0,k!=null?k:l);b.tickSize=d.tickSize||g;j=function(a){var b=[],d=e(a.min,a.tickSize),h=0,f=Number.NaN,g;do g=f,f=d+h*a.tickSize,b.push(f),++h;while(f<a.max&&f!=g);return b};g=function(a,b){return a.toFixed(b.tickDecimals)}}if(d.alignTicksWithAxis!=null){var s=(b.direction=="x"?ia:la)[d.alignTicksWithAxis-1];if(s&&s.used&&s!=b){j=j(b);if(j.length>0){if(d.min==null)b.min=Math.min(b.min,j[0]);if(d.max==null&&j.length>1)b.max=Math.max(b.max,j[j.length-1])}j=function(a){var b=[],
+d,e;for(e=0;e<s.ticks.length;++e)d=(s.ticks[e].v-s.min)/(s.max-s.min),d=a.min+d*(a.max-a.min),b.push(d);return b};if(!b.mode&&d.tickDecimals==null&&(f=Math.max(0,-Math.floor(Math.log(f)/Math.LN10)+1),n=j(b),!(n.length>1&&/\..*0$/.test((n[1]-n[0]).toFixed(f)))))b.tickDecimals=f}}b.tickGenerator=j;b.tickFormatter=a.isFunction(d.tickFormatter)?function(a,b){return""+d.tickFormatter(a,b)}:g}function ga(){x.clearRect(0,0,ea,ma);var a=n.grid;if(a.show&&a.backgroundColor)x.save(),x.translate(E.left,E.top),
+x.fillStyle=V(n.grid.backgroundColor,ta,0,"rgba(255, 255, 255, 0)"),x.fillRect(0,0,xa,ta),x.restore();a.show&&!a.aboveData&&(ha(),qa());for(var b=0;b<J.length;++b){A(ua.drawSeries,[x,J[b]]);var d=J[b];d.lines.show&&va(d);d.bars.show&&X(d);d.points.show&&v(d)}A(ua.draw,[x]);a.show&&a.aboveData&&(ha(),qa())}function O(a,b){var d,e,f,g,j=L();for(i=0;i<j.length;++i)if(d=j[i],d.direction==b&&(g=b+d.n+"axis",!a[g]&&d.n==1&&(g=b+"axis"),a[g])){e=a[g].from;f=a[g].to;break}a[g]||(d=b=="x"?ia[0]:la[0],e=a[b+
+"1"],f=a[b+"2"]);e!=null&&f!=null&&e>f&&(g=e,e=f,f=g);return{from:e,to:f,axis:d}}function ha(){var b;x.save();x.translate(E.left,E.top);var d=n.grid.markings;if(d){if(a.isFunction(d)){var e=T.getAxes();e.xmin=e.xaxis.min;e.xmax=e.xaxis.max;e.ymin=e.yaxis.min;e.ymax=e.yaxis.max;d=d(e)}for(b=0;b<d.length;++b){var e=d[b],f=O(e,"x"),g=O(e,"y");if(f.from==null)f.from=f.axis.min;if(f.to==null)f.to=f.axis.max;if(g.from==null)g.from=g.axis.min;if(g.to==null)g.to=g.axis.max;if(!(f.to<f.axis.min||f.from>f.axis.max||
+g.to<g.axis.min||g.from>g.axis.max))if(f.from=Math.max(f.from,f.axis.min),f.to=Math.min(f.to,f.axis.max),g.from=Math.max(g.from,g.axis.min),g.to=Math.min(g.to,g.axis.max),!(f.from==f.to&&g.from==g.to))f.from=f.axis.p2c(f.from),f.to=f.axis.p2c(f.to),g.from=g.axis.p2c(g.from),g.to=g.axis.p2c(g.to),f.from==f.to||g.from==g.to?(x.beginPath(),x.strokeStyle=e.color||n.grid.markingsColor,x.lineWidth=e.lineWidth||n.grid.markingsLineWidth,x.moveTo(f.from,g.from),x.lineTo(f.to,g.to),x.stroke()):(x.fillStyle=
+e.color||n.grid.markingsColor,x.fillRect(f.from,g.to,f.to-f.from,g.from-g.to))}}e=L();d=n.grid.borderWidth;for(f=0;f<e.length;++f){g=e[f];b=g.box;var j=g.tickLength,k,p,l,s;if(g.show&&g.ticks.length!=0){x.strokeStyle=g.options.tickColor||a.color.parse(g.options.color).scale("a",0.22).toString();x.lineWidth=1;g.direction=="x"?(k=0,p=j=="full"?g.position=="top"?0:ta:b.top-E.top+(g.position=="top"?b.height:0)):(p=0,k=j=="full"?g.position=="left"?0:xa:b.left-E.left+(g.position=="left"?b.width:0));g.innermost||
+(x.beginPath(),l=s=0,g.direction=="x"?l=xa:s=ta,x.lineWidth==1&&(k=Math.floor(k)+0.5,p=Math.floor(p)+0.5),x.moveTo(k,p),x.lineTo(k+l,p+s),x.stroke());x.beginPath();for(b=0;b<g.ticks.length;++b){var t=g.ticks[b].v;l=s=0;t<g.min||t>g.max||j=="full"&&d>0&&(t==g.min||t==g.max)||(g.direction=="x"?(k=g.p2c(t),s=j=="full"?-ta:j,g.position=="top"&&(s=-s)):(p=g.p2c(t),l=j=="full"?-xa:j,g.position=="left"&&(l=-l)),x.lineWidth==1&&(g.direction=="x"?k=Math.floor(k)+0.5:p=Math.floor(p)+0.5),x.moveTo(k,p),x.lineTo(k+
+l,p+s))}x.stroke()}}if(d)x.lineWidth=d,x.strokeStyle=n.grid.borderColor,x.strokeRect(-d/2,-d/2,xa+d,ta+d);x.restore()}function qa(){x.save();a.each(L(),function(b,d){if(d.show&&d.ticks.length!=0){var e=d.box,f=d.font;x.fillStyle=d.options.color;x.font=f.style+" "+f.variant+" "+f.weight+" "+f.size+"px "+f.family;x.textAlign="start";x.textBaseline="middle";for(f=0;f<d.ticks.length;++f){var g=d.ticks[f];if(g.label&&!(g.v<d.min||g.v>d.max))for(var j,k,n=0,p,l=0;l<g.lines.length;++l)p=g.lines[l],d.direction==
+"x"?(j=E.left+d.p2c(g.v)-p.width/2,k=d.position=="bottom"?e.top+e.padding:e.top+e.height-e.padding-g.height):(k=E.top+d.p2c(g.v)-g.height/2,j=d.position=="left"?e.left+e.width-e.padding-p.width:e.left+e.padding),k+=p.height/2+n,n+=p.height,a.browser.opera&&(j=Math.floor(j),k=Math.ceil(k-2)),x.fillText(p.text,j,k)}}});x.restore()}function va(a){function b(a,d,e,f,h){var g=a.points,a=a.pointsize,j=null,q=null;x.beginPath();for(var k=a;k<g.length;k+=a){var p=g[k-a],n=g[k-a+1],l=g[k],s=g[k+1];if(!(p==
+null||l==null)){if(n<=s&&n<h.min){if(s<h.min)continue;p=(h.min-n)/(s-n)*(l-p)+p;n=h.min}else if(s<=n&&s<h.min){if(n<h.min)continue;l=(h.min-n)/(s-n)*(l-p)+p;s=h.min}if(n>=s&&n>h.max){if(s>h.max)continue;p=(h.max-n)/(s-n)*(l-p)+p;n=h.max}else if(s>=n&&s>h.max){if(n>h.max)continue;l=(h.max-n)/(s-n)*(l-p)+p;s=h.max}if(p<=l&&p<f.min){if(l<f.min)continue;n=(f.min-p)/(l-p)*(s-n)+n;p=f.min}else if(l<=p&&l<f.min){if(p<f.min)continue;s=(f.min-p)/(l-p)*(s-n)+n;l=f.min}if(p>=l&&p>f.max){if(l>f.max)continue;
+n=(f.max-p)/(l-p)*(s-n)+n;p=f.max}else if(l>=p&&l>f.max){if(p>f.max)continue;s=(f.max-p)/(l-p)*(s-n)+n;l=f.max}(p!=j||n!=q)&&x.moveTo(f.p2c(p)+d,h.p2c(n)+e);j=l;q=s;x.lineTo(f.p2c(l)+d,h.p2c(s)+e)}}x.stroke()}function e(a,b,d){for(var f=a.points,a=a.pointsize,h=Math.min(Math.max(0,d.min),d.max),g=0,j=!1,p=1,n=0,k=0;;){if(a>0&&g>f.length+a)break;g+=a;var q=f[g-a],l=f[g-a+p],s=f[g],w=f[g+p];if(j){if(a>0&&q!=null&&s==null){k=g;a=-a;p=2;continue}if(a<0&&g==n+a){x.fill();j=!1;a=-a;p=1;g=n=k+a;continue}}if(!(q==
+null||s==null)){if(q<=s&&q<b.min){if(s<b.min)continue;l=(b.min-q)/(s-q)*(w-l)+l;q=b.min}else if(s<=q&&s<b.min){if(q<b.min)continue;w=(b.min-q)/(s-q)*(w-l)+l;s=b.min}if(q>=s&&q>b.max){if(s>b.max)continue;l=(b.max-q)/(s-q)*(w-l)+l;q=b.max}else if(s>=q&&s>b.max){if(q>b.max)continue;w=(b.max-q)/(s-q)*(w-l)+l;s=b.max}j||(x.beginPath(),x.moveTo(b.p2c(q),d.p2c(h)),j=!0);if(l>=d.max&&w>=d.max)x.lineTo(b.p2c(q),d.p2c(d.max)),x.lineTo(b.p2c(s),d.p2c(d.max));else if(l<=d.min&&w<=d.min)x.lineTo(b.p2c(q),d.p2c(d.min)),
+x.lineTo(b.p2c(s),d.p2c(d.min));else{var H=q,t=s;if(l<=w&&l<d.min&&w>=d.min)q=(d.min-l)/(w-l)*(s-q)+q,l=d.min;else if(w<=l&&w<d.min&&l>=d.min)s=(d.min-l)/(w-l)*(s-q)+q,w=d.min;if(l>=w&&l>d.max&&w<=d.max)q=(d.max-l)/(w-l)*(s-q)+q,l=d.max;else if(w>=l&&w>d.max&&l<=d.max)s=(d.max-l)/(w-l)*(s-q)+q,w=d.max;q!=H&&x.lineTo(b.p2c(H),d.p2c(l));x.lineTo(b.p2c(q),d.p2c(l));x.lineTo(b.p2c(s),d.p2c(w));s!=t&&(x.lineTo(b.p2c(s),d.p2c(w)),x.lineTo(b.p2c(t),d.p2c(w)))}}}}x.save();x.translate(E.left,E.top);x.lineJoin=
+"round";var f=a.lines.lineWidth,g=a.shadowSize;if(f>0&&g>0){x.lineWidth=g;x.strokeStyle="rgba(0,0,0,0.1)";var j=Math.PI/18;b(a.datapoints,Math.sin(j)*(f/2+g/2),Math.cos(j)*(f/2+g/2),a.xaxis,a.yaxis);x.lineWidth=g/2;b(a.datapoints,Math.sin(j)*(f/2+g/4),Math.cos(j)*(f/2+g/4),a.xaxis,a.yaxis)}x.lineWidth=f;x.strokeStyle=a.color;if(g=d(a.lines,a.color,0,ta))x.fillStyle=g,e(a.datapoints,a.xaxis,a.yaxis);f>0&&b(a.datapoints,0,0,a.xaxis,a.yaxis);x.restore()}function v(a){function b(a,d,e,f,h,g,j,q){for(var p=
+a.points,a=a.pointsize,n=0;n<p.length;n+=a){var k=p[n],l=p[n+1];if(!(k==null||k<g.min||k>g.max||l<j.min||l>j.max)){x.beginPath();k=g.p2c(k);l=j.p2c(l)+f;q=="circle"?x.arc(k,l,d,0,h?Math.PI:Math.PI*2,!1):q(x,k,l,d,h);x.closePath();if(e)x.fillStyle=e,x.fill();x.stroke()}}}x.save();x.translate(E.left,E.top);var e=a.points.lineWidth,f=a.shadowSize,g=a.points.radius,j=a.points.symbol;if(e>0&&f>0)f/=2,x.lineWidth=f,x.strokeStyle="rgba(0,0,0,0.1)",b(a.datapoints,g,null,f+f/2,!0,a.xaxis,a.yaxis,j),x.strokeStyle=
+"rgba(0,0,0,0.2)",b(a.datapoints,g,null,f/2,!0,a.xaxis,a.yaxis,j);x.lineWidth=e;x.strokeStyle=a.color;b(a.datapoints,g,d(a.points,a.color),0,!1,a.xaxis,a.yaxis,j);x.restore()}function S(a,b,d,e,f,g,j,p,n,k,l,s){var t,z,C,v;l?(v=z=C=!0,t=!1,l=d,d=b+e,f=b+f,a<l&&(b=a,a=l,l=b,t=!0,z=!1)):(t=z=C=!0,v=!1,l=a+e,a+=f,f=d,d=b,d<f&&(b=d,d=f,f=b,v=!0,C=!1));if(!(a<p.min||l>p.max||d<n.min||f>n.max)){if(l<p.min)l=p.min,t=!1;if(a>p.max)a=p.max,z=!1;if(f<n.min)f=n.min,v=!1;if(d>n.max)d=n.max,C=!1;l=p.p2c(l);f=
+n.p2c(f);a=p.p2c(a);d=n.p2c(d);if(j)k.beginPath(),k.moveTo(l,f),k.lineTo(l,d),k.lineTo(a,d),k.lineTo(a,f),k.fillStyle=j(f,d),k.fill();if(s>0&&(t||z||C||v))k.beginPath(),k.moveTo(l,f+g),t?k.lineTo(l,d+g):k.moveTo(l,d+g),C?k.lineTo(a,d+g):k.moveTo(a,d+g),z?k.lineTo(a,f+g):k.moveTo(a,f+g),v?k.lineTo(l,f+g):k.moveTo(l,f+g),k.stroke()}}function X(a){x.save();x.translate(E.left,E.top);x.lineWidth=a.bars.lineWidth;x.strokeStyle=a.color;var b=a.bars.align=="left"?0:-a.bars.barWidth/2;(function(b,d,e,f,g,
+j,k){for(var p=b.points,b=b.pointsize,n=0;n<p.length;n+=b)p[n]!=null&&S(p[n],p[n+1],p[n+2],d,e,f,g,j,k,x,a.bars.horizontal,a.bars.lineWidth)})(a.datapoints,b,b+a.bars.barWidth,0,a.bars.fill?function(b,e){return d(a.bars,a.color,b,e)}:null,a.xaxis,a.yaxis);x.restore()}function d(b,d,e,f){var g=b.fill;if(!g)return null;if(b.fillColor)return V(b.fillColor,e,f,d);b=a.color.parse(d);b.a=typeof g=="number"?g:0.4;b.normalize();return b.toString()}function aa(){b.find(".legend").remove();if(n.legend.show){for(var d=
+[],e=!1,g=n.legend.labelFormatter,j,k,p=0;p<J.length;++p)if(j=J[p],k=j.label)p%n.legend.noColumns==0&&(e&&d.push("</tr>"),d.push("<tr>"),e=!0),g&&(k=g(k,j)),d.push('<td class="legendColorBox"><div style="border:1px solid '+n.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+j.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+k+"</td>");e&&d.push("</tr>");if(d.length!=0)if(e='<table style="font-size:smaller;color:'+n.grid.color+'">'+d.join("")+
+"</table>",n.legend.container!=null)a(n.legend.container).html(e);else if(d="",g=n.legend.position,j=n.legend.margin,j[0]==null&&(j=[j,j]),g.charAt(0)=="n"?d+="top:"+(j[1]+E.top)+"px;":g.charAt(0)=="s"&&(d+="bottom:"+(j[1]+E.bottom)+"px;"),g.charAt(1)=="e"?d+="right:"+(j[0]+E.right)+"px;":g.charAt(1)=="w"&&(d+="left:"+(j[0]+E.left)+"px;"),e=a('<div class="legend">'+e.replace('style="','style="position:absolute;'+d+";")+"</div>").appendTo(b),n.legend.backgroundOpacity!=0){g=n.legend.backgroundColor;
+if(g==null)g=(g=n.grid.backgroundColor)&&typeof g=="string"?a.color.parse(g):a.color.extract(e,"background-color"),g.a=1,g=g.toString();j=e.children();a('<div style="position:absolute;width:'+j.width()+"px;height:"+j.height()+"px;"+d+"background-color:"+g+';"> </div>').prependTo(e).css("opacity",n.legend.backgroundOpacity)}}}function ba(a){n.grid.hoverable&&ka("plothover",a,function(a){return a.hoverable!=!1})}function F(a){n.grid.hoverable&&ka("plothover",a,function(){return!1})}function oa(a){ka("plotclick",
+a,function(a){return a.clickable!=!1})}function ka(a,d,e){var g=pa.offset(),j=d.pageX-g.left-E.left,k=d.pageY-g.top-E.top,p=B({left:j,top:k});p.pageX=d.pageX;p.pageY=d.pageY;var d=n.grid.mouseActiveRadius,l=d*d+1,s=null,t,z;for(t=J.length-1;t>=0;--t)if(e(J[t])){var C=J[t],v=C.xaxis,x=C.yaxis,A=C.datapoints.points,R=C.datapoints.pointsize,P=v.c2p(j),F=x.c2p(k),fa=d/v.scale,G=d/x.scale;if(v.options.inverseTransform)fa=Number.MAX_VALUE;if(x.options.inverseTransform)G=Number.MAX_VALUE;if(C.lines.show||
+C.points.show)for(z=0;z<A.length;z+=R){var N=A[z],D=A[z+1];if(N!=null&&!(N-P>fa||N-P<-fa||D-F>G||D-F<-G))N=Math.abs(v.p2c(N)-j),D=Math.abs(x.p2c(D)-k),D=N*N+D*D,D<l&&(l=D,s=[t,z/R])}if(C.bars.show&&!s){v=C.bars.align=="left"?0:-C.bars.barWidth/2;C=v+C.bars.barWidth;for(z=0;z<A.length;z+=R)if(N=A[z],D=A[z+1],x=A[z+2],N!=null&&(J[t].bars.horizontal?P<=Math.max(x,N)&&P>=Math.min(x,N)&&F>=D+v&&F<=D+C:P>=N+v&&P<=N+C&&F>=Math.min(x,D)&&F<=Math.max(x,D)))s=[t,z/R]}}s?(t=s[0],z=s[1],R=J[t].datapoints.pointsize,
+e={datapoint:J[t].datapoints.points.slice(z*R,(z+1)*R),dataIndex:z,series:J[t],seriesIndex:t}):e=null;if(e)e.pageX=parseInt(e.series.xaxis.p2c(e.datapoint[0])+g.left+E.left),e.pageY=parseInt(e.series.yaxis.p2c(e.datapoint[1])+g.top+E.top);if(n.grid.autoHighlight){for(g=0;g<ya.length;++g)j=ya[g],j.auto==a&&(!e||!(j.series==e.series&&j.point[0]==e.datapoint[0]&&j.point[1]==e.datapoint[1]))&&$(j.series,j.point);e&&wa(e.series,e.datapoint,a)}b.trigger(a,[p,e])}function ca(){var a=n.interaction.redrawOverlayInterval;
+a==-1?ra():Da||(Da=setTimeout(ra,a))}function ra(){Da=null;da.save();da.clearRect(0,0,ea,ma);da.translate(E.left,E.top);var b,d;for(b=0;b<ya.length;++b)if(d=ya[b],d.series.bars.show)p(d.series,d.point);else{var e=d.series,f=d.point;d=f[0];var f=f[1],g=e.xaxis,j=e.yaxis;if(!(d<g.min||d>g.max||f<j.min||f>j.max)){var k=e.points.radius+e.points.lineWidth/2;da.lineWidth=k;da.strokeStyle=a.color.parse(e.color).scale("a",0.5).toString();k*=1.5;d=g.p2c(d);f=j.p2c(f);da.beginPath();e.points.symbol=="circle"?
+da.arc(d,f,k,0,2*Math.PI,!1):e.points.symbol(da,d,f,k,!1);da.closePath();da.stroke()}}da.restore();A(ua.drawOverlay,[da])}function wa(a,b,d){typeof a=="number"&&(a=J[a]);if(typeof b=="number")var e=a.datapoints.pointsize,b=a.datapoints.points.slice(e*b,e*(b+1));e=g(a,b);if(e==-1)ya.push({series:a,point:b,auto:d}),ca();else if(!d)ya[e].auto=!1}function $(a,b){a==null&&b==null&&(ya=[],ca());typeof a=="number"&&(a=J[a]);typeof b=="number"&&(b=a.data[b]);var d=g(a,b);d!=-1&&(ya.splice(d,1),ca())}function g(a,
+b){for(var d=0;d<ya.length;++d){var e=ya[d];if(e.series==a&&e.point[0]==b[0]&&e.point[1]==b[1])return d}return-1}function p(b,d){da.lineWidth=b.bars.lineWidth;da.strokeStyle=a.color.parse(b.color).scale("a",0.5).toString();var e=a.color.parse(b.color).scale("a",0.5).toString(),f=b.bars.align=="left"?0:-b.bars.barWidth/2;S(d[0],d[1],d[2]||0,f,f+b.bars.barWidth,0,function(){return e},b.xaxis,b.yaxis,da,b.bars.horizontal,b.bars.lineWidth)}function V(b,d,e,f){if(typeof b=="string")return b;else{for(var d=
+x.createLinearGradient(0,e,0,d),e=0,g=b.colors.length;e<g;++e){var j=b.colors[e];if(typeof j!="string"){var k=a.color.parse(f);j.brightness!=null&&(k=k.scale("rgb",j.brightness));j.opacity!=null&&(k.a*=j.opacity);j=k.toString()}d.addColorStop(e/(g-1),j)}return d}}var J=[],n={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:0.85},xaxis:{show:null,
+position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:!1},yaxis:{autoscaleMargin:0.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},
+lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1},shadowSize:3},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1E3/60},hooks:{}},za=null,sa=null,
+pa=null,x=null,da=null,ia=[],la=[],E={left:0,right:0,top:0,bottom:0},ea=0,ma=0,xa=0,ta=0,ua={processOptions:[],processRawData:[],processDatapoints:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},T=this;T.setData=G;T.setupGrid=U;T.draw=ga;T.getPlaceholder=function(){return b};T.getCanvas=function(){return za};T.getPlotOffset=function(){return E};T.width=function(){return xa};T.height=function(){return ta};T.offset=function(){var a=pa.offset();a.left+=E.left;a.top+=E.top;return a};
+T.getData=function(){return J};T.getAxes=function(){var b={};a.each(ia.concat(la),function(a,d){d&&(b[d.direction+(d.n!=1?d.n:"")+"axis"]=d)});return b};T.getXAxes=function(){return ia};T.getYAxes=function(){return la};T.c2p=B;T.p2c=function(a){var b={},d,e,f;for(d=0;d<ia.length;++d)if((e=ia[d])&&e.used)if(f="x"+e.n,a[f]==null&&e.n==1&&(f="x"),a[f]!=null){b.left=e.p2c(a[f]);break}for(d=0;d<la.length;++d)if((e=la[d])&&e.used)if(f="y"+e.n,a[f]==null&&e.n==1&&(f="y"),a[f]!=null){b.top=e.p2c(a[f]);break}return b};
+T.getOptions=function(){return n};T.highlight=wa;T.unhighlight=$;T.triggerRedrawOverlay=ca;T.pointOffset=function(a){return{left:parseInt(ia[D(a,"x")-1].p2c(+a.x)+E.left),top:parseInt(la[D(a,"y")-1].p2c(+a.y)+E.top)}};T.shutdown=function(){Da&&clearTimeout(Da);pa.unbind("mousemove",ba);pa.unbind("mouseleave",F);pa.unbind("click",oa);A(ua.shutdown,[pa])};T.resize=function(){fa();R(za);R(sa)};T.hooks=ua;(function(){for(var b=0;b<k.length;++b){var d=k[b];d.init(T);d.options&&a.extend(!0,n,d.options)}})(T);
+(function(b){a.extend(!0,n,b);if(n.xaxis.color==null)n.xaxis.color=n.grid.color;if(n.yaxis.color==null)n.yaxis.color=n.grid.color;if(n.xaxis.tickColor==null)n.xaxis.tickColor=n.grid.tickColor;if(n.yaxis.tickColor==null)n.yaxis.tickColor=n.grid.tickColor;if(n.grid.borderColor==null)n.grid.borderColor=n.grid.color;if(n.grid.tickColor==null)n.grid.tickColor=a.color.parse(n.grid.color).scale("a",0.22).toString();for(b=0;b<Math.max(1,n.xaxes.length);++b)n.xaxes[b]=a.extend(!0,{},n.xaxis,n.xaxes[b]);for(b=
+0;b<Math.max(1,n.yaxes.length);++b)n.yaxes[b]=a.extend(!0,{},n.yaxis,n.yaxes[b]);if(n.xaxis.noTicks&&n.xaxis.ticks==null)n.xaxis.ticks=n.xaxis.noTicks;if(n.yaxis.noTicks&&n.yaxis.ticks==null)n.yaxis.ticks=n.yaxis.noTicks;if(n.x2axis)n.xaxes[1]=a.extend(!0,{},n.xaxis,n.x2axis),n.xaxes[1].position="top";if(n.y2axis)n.yaxes[1]=a.extend(!0,{},n.yaxis,n.y2axis),n.yaxes[1].position="right";if(n.grid.coloredAreas)n.grid.markings=n.grid.coloredAreas;if(n.grid.coloredAreasColor)n.grid.markingsColor=n.grid.coloredAreasColor;
+n.lines&&a.extend(!0,n.series.lines,n.lines);n.points&&a.extend(!0,n.series.points,n.points);n.bars&&a.extend(!0,n.series.bars,n.bars);if(n.shadowSize!=null)n.series.shadowSize=n.shadowSize;for(b=0;b<n.xaxes.length;++b)z(ia,b+1).options=n.xaxes[b];for(b=0;b<n.yaxes.length;++b)z(la,b+1).options=n.yaxes[b];for(var d in ua)n.hooks[d]&&n.hooks[d].length&&(ua[d]=ua[d].concat(n.hooks[d]));A(ua.processOptions,[n])})(l);(function(){var d;d=b.children("canvas.flot-base");var e=b.children("canvas.flot-overlay");
+d.length==0||e==0?(b.html(""),b.css({padding:0}),b.css("position")=="static"&&b.css("position","relative"),fa(),za=C(!0,"flot-base"),sa=C(!1,"flot-overlay"),d=!1):(za=d.get(0),sa=e.get(0),d=!0);x=za.getContext("2d");da=sa.getContext("2d");pa=a(sa);d&&(b.data("plot").shutdown(),T.resize(),da.clearRect(0,0,ea,ma),pa.unbind(),b.children().not([za,sa]).remove());b.data("plot",T)})();G(j);U();ga();n.grid.hoverable&&(pa.mousemove(ba),pa.mouseleave(F));n.grid.clickable&&pa.click(oa);A(ua.bindEvents,[pa]);
+var ya=[],Da=null}function e(a,b){return b*Math.floor(a/b)}a.plot=function(e,j,l){return new b(a(e),j,l,a.plot.plugins)};a.plot.version="0.7";a.plot.plugins=[];a.plot.formatDate=function(a,b,e){var k=function(a){a=""+a;return a.length==1?"0"+a:a},A=[],G=!1,D=!1,L=a.getUTCHours(),B=L<12;e==null&&(e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]);b.search(/%p|%P/)!=-1&&(L>12?L-=12:L==0&&(L=12));for(var z=0;z<b.length;++z){var s=b.charAt(z);if(G){switch(s){case "h":s=""+L;
+break;case "H":s=k(L);break;case "M":s=k(a.getUTCMinutes());break;case "S":s=k(a.getUTCSeconds());break;case "d":s=""+a.getUTCDate();break;case "m":s=""+(a.getUTCMonth()+1);break;case "y":s=""+a.getUTCFullYear();break;case "b":s=""+e[a.getUTCMonth()];break;case "p":s=B?"am":"pm";break;case "P":s=B?"AM":"PM";break;case "0":s="",D=!0}s&&D&&(s=k(s),D=!1);A.push(s);D||(G=!1)}else s=="%"?G=!0:A.push(s)}return A.join("")}})(jQuery);
+// Input 5
+(function(a){a.plot.plugins.push({init:function(a){a.hooks.processDatapoints.push(function(a,b,j){if(b.stack!=null){for(var l,a=a.getData(),k=null,A=0;A<a.length;++A){if(b==a[A])break;a[A].stack==b.stack&&(k=a[A])}if(l=k){a=j.pointsize;k=j.points;A=l.datapoints.pointsize;l=l.datapoints.points;var G=[],D,L,B,z,s,C,fa=b.lines.show;z=b.bars.horizontal;var R=a>2&&(z?j.format[2].x:j.format[2].y),b=fa&&b.lines.steps;B=!0;for(var P=z?1:0,N=z?0:1,t=0,U=0,M;;){if(t>=k.length)break;M=G.length;if(k[t]==null){for(m=
+0;m<a;++m)G.push(k[t+m]);t+=a}else if(U>=l.length){if(!fa)for(m=0;m<a;++m)G.push(k[t+m]);t+=a}else if(l[U]==null){for(m=0;m<a;++m)G.push(null);B=!0;U+=A}else{D=k[t+P];L=k[t+N];z=l[U+P];s=l[U+N];C=0;if(D==z){for(m=0;m<a;++m)G.push(k[t+m]);G[M+N]+=s;C=s;t+=a;U+=A}else if(D>z){if(fa&&t>0&&k[t-a]!=null){B=L+(k[t-a+N]-L)*(z-D)/(k[t-a+P]-D);G.push(z);G.push(B+s);for(m=2;m<a;++m)G.push(k[t+m]);C=s}U+=A}else{if(B&&fa){t+=a;continue}for(m=0;m<a;++m)G.push(k[t+m]);fa&&U>0&&l[U-A]!=null&&(C=s+(l[U-A+N]-s)*(D-
+z)/(l[U-A+P]-z));G[M+N]+=C;t+=a}B=!1;M!=G.length&&R&&(G[M+2]+=C)}if(b&&M!=G.length&&M>0&&G[M]!=null&&G[M]!=G[M-a]&&G[M+1]!=G[M-a+1]){for(m=0;m<a;++m)G[M+a+m]=G[M+m];G[M+1]=G[M-a+1]}}j.points=G}}})},options:{series:{stack:null}},name:"stack",version:"1.2"})})(jQuery);
+// Input 6
+(function(a){a.plot.plugins.push({init:function(b){function e(a){B.active&&(A(a),b.getPlaceholder().trigger("plotselecting",[j()]))}function f(e){if(e.which==1){document.body.focus();if(document.onselectstart!==void 0&&z.onselectstart==null)z.onselectstart=document.onselectstart,document.onselectstart=function(){return!1};if(document.ondrag!==void 0&&z.ondrag==null)z.ondrag=document.ondrag,document.ondrag=function(){return!1};k(B.first,e);B.active=!0;s=function(a){s=null;if(document.onselectstart!==
+void 0)document.onselectstart=z.onselectstart;if(document.ondrag!==void 0)document.ondrag=z.ondrag;B.active=!1;A(a);L()?l():(b.getPlaceholder().trigger("plotunselected",[]),b.getPlaceholder().trigger("plotselecting",[null]))};a(document).one("mouseup",s)}}function j(){if(!L())return null;var e={},f=B.first,j=B.second;a.each(b.getAxes(),function(a,b){if(b.used){var k=b.c2p(f[b.direction]),l=b.c2p(j[b.direction]);e[a]={from:Math.min(k,l),to:Math.max(k,l)}}});return e}function l(){var a=j();b.getPlaceholder().trigger("plotselected",
+[a]);a.xaxis&&a.yaxis&&b.getPlaceholder().trigger("selected",[{x1:a.xaxis.from,y1:a.yaxis.from,x2:a.xaxis.to,y2:a.yaxis.to}])}function k(a,e){var f=b.getOptions(),j=b.getPlaceholder().offset(),k=b.getPlotOffset(),l=e.pageX-j.left-k.left,s=b.width();a.x=l<0?0:l>s?s:l;j=e.pageY-j.top-k.top;k=b.height();a.y=j<0?0:j>k?k:j;if(f.selection.mode=="y")a.x=a==B.first?0:b.width();if(f.selection.mode=="x")a.y=a==B.first?0:b.height()}function A(a){if(a.pageX!=null)k(B.second,a),L()?(B.show=!0,b.triggerRedrawOverlay()):
+G(!0)}function G(a){if(B.show)B.show=!1,b.triggerRedrawOverlay(),a||b.getPlaceholder().trigger("plotunselected",[])}function D(a,e){var f,j,k,l,s=b.getAxes(),z;for(z in s)if(f=s[z],f.direction==e&&(l=e+f.n+"axis",!a[l]&&f.n==1&&(l=e+"axis"),a[l])){j=a[l].from;k=a[l].to;break}a[l]||(f=e=="x"?b.getXAxes()[0]:b.getYAxes()[0],j=a[e+"1"],k=a[e+"2"]);j!=null&&k!=null&&j>k&&(l=j,j=k,k=l);return{from:j,to:k,axis:f}}function L(){return Math.abs(B.second.x-B.first.x)>=5&&Math.abs(B.second.y-B.first.y)>=5}var B=
+{first:{x:-1,y:-1},second:{x:-1,y:-1},show:!1,active:!1},z={},s=null;b.clearSelection=G;b.setSelection=function(a,e){var f,j=b.getOptions();j.selection.mode=="y"?(B.first.x=0,B.second.x=b.width()):(f=D(a,"x"),B.first.x=f.axis.p2c(f.from),B.second.x=f.axis.p2c(f.to));j.selection.mode=="x"?(B.first.y=0,B.second.y=b.height()):(f=D(a,"y"),B.first.y=f.axis.p2c(f.from),B.second.y=f.axis.p2c(f.to));B.show=!0;b.triggerRedrawOverlay();!e&&L()&&l()};b.getSelection=j;b.hooks.bindEvents.push(function(a,b){a.getOptions().selection.mode!=
+null&&(b.mousemove(e),b.mousedown(f))});b.hooks.drawOverlay.push(function(b,e){if(B.show&&L()){var f=b.getPlotOffset(),j=b.getOptions();e.save();e.translate(f.left,f.top);f=a.color.parse(j.selection.color);e.strokeStyle=f.scale("a",0.8).toString();e.lineWidth=1;e.lineJoin="round";e.fillStyle=f.scale("a",0.4).toString();var f=Math.min(B.first.x,B.second.x),j=Math.min(B.first.y,B.second.y),k=Math.abs(B.second.x-B.first.x),l=Math.abs(B.second.y-B.first.y);e.fillRect(f,j,k,l);e.strokeRect(f,j,k,l);e.restore()}});
+b.hooks.shutdown.push(function(b,j){j.unbind("mousemove",e);j.unbind("mousedown",f);s&&a(document).unbind("mouseup",s)})},options:{selection:{mode:null,color:"#e8cfac"}},name:"selection",version:"1.1"})})(jQuery);
+// Input 7
+function InvalidRRD(a){this.message=a;this.name="Invalid RRD"}InvalidRRD.prototype.toString=function(){return this.name+': "'+this.message+'"'};function RRDDS(a,b,e){this.rrd_data=a;this.rrd_data_idx=b;this.my_idx=e}RRDDS.prototype.getIdx=function(){return this.my_idx};RRDDS.prototype.getName=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx,20)};RRDDS.prototype.getType=function(){return this.rrd_data.getCStringAt(this.rrd_data_idx+20,20)};
+RRDDS.prototype.getMin=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+48)};RRDDS.prototype.getMax=function(){return this.rrd_data.getDoubleAt(this.rrd_data_idx+56)};function RRDRRAInfo(a,b,e,f,j,l){this.rrd_data=a;this.rra_def_idx=b;this.rrd_align=e;this.row_cnt=f;this.pdp_step=j;this.my_idx=l}RRDRRAInfo.prototype.getIdx=function(){return this.my_idx};RRDRRAInfo.prototype.getNrRows=function(){return this.row_cnt};
RRDRRAInfo.prototype.getPdpPerRow=function(){return this.rrd_align==32?this.rrd_data.getLongAt(this.rra_def_idx+24,20):this.rrd_data.getLongAt(this.rra_def_idx+32,20)};RRDRRAInfo.prototype.getStep=function(){return this.pdp_step*this.getPdpPerRow()};RRDRRAInfo.prototype.getCFName=function(){return this.rrd_data.getCStringAt(this.rra_def_idx,20)};
-function RRDRRA(b,f,k,p,A,B){this.rrd_data=b;this.rra_info=k;this.row_cnt=k.row_cnt;this.ds_cnt=B;var M=B*8;this.base_rrd_db_idx=p+A*M;this.cur_row=b.getLongAt(f);this.calc_idx=function(U,J){if(U>=0&&U<this.row_cnt)if(J>=0&&J<B){var ja=U+this.cur_row+1;if(ja>=this.row_cnt)ja-=this.row_cnt;return M*ja+J*8}else throw RangeError("DS idx ("+U+") out of range [0-"+B+").");else throw RangeError("Row idx ("+U+") out of range [0-"+this.row_cnt+").");}}RRDRRA.prototype.getIdx=function(){return this.rra_info.getIdx()};
-RRDRRA.prototype.getNrRows=function(){return this.row_cnt};RRDRRA.prototype.getNrDSs=function(){return this.ds_cnt};RRDRRA.prototype.getStep=function(){return this.rra_info.getStep()};RRDRRA.prototype.getCFName=function(){return this.rra_info.getCFName()};RRDRRA.prototype.getEl=function(b,f){return this.rrd_data.getDoubleAt(this.base_rrd_db_idx+this.calc_idx(b,f))};RRDRRA.prototype.getElFast=function(b,f){return this.rrd_data.getFastDoubleAt(this.base_rrd_db_idx+this.calc_idx(b,f))};
-function RRDHeader(b){this.rrd_data=b;this.validate_rrd();this.load_header();this.calc_idxs()}
+function RRDRRA(a,b,e,f,j,l){this.rrd_data=a;this.rra_info=e;this.row_cnt=e.row_cnt;this.ds_cnt=l;var k=l*8;this.base_rrd_db_idx=f+j*k;this.cur_row=a.getLongAt(b);this.calc_idx=function(a,b){if(a>=0&&a<this.row_cnt)if(b>=0&&b<l){var e=a+this.cur_row+1;e>=this.row_cnt&&(e-=this.row_cnt);return k*e+b*8}else throw RangeError("DS idx ("+a+") out of range [0-"+l+").");else throw RangeError("Row idx ("+a+") out of range [0-"+this.row_cnt+").");}}RRDRRA.prototype.getIdx=function(){return this.rra_info.getIdx()};
+RRDRRA.prototype.getNrRows=function(){return this.row_cnt};RRDRRA.prototype.getNrDSs=function(){return this.ds_cnt};RRDRRA.prototype.getStep=function(){return this.rra_info.getStep()};RRDRRA.prototype.getCFName=function(){return this.rra_info.getCFName()};RRDRRA.prototype.getEl=function(a,b){return this.rrd_data.getDoubleAt(this.base_rrd_db_idx+this.calc_idx(a,b))};RRDRRA.prototype.getElFast=function(a,b){return this.rrd_data.getFastDoubleAt(this.base_rrd_db_idx+this.calc_idx(a,b))};
+function RRDHeader(a){this.rrd_data=a;this.validate_rrd();this.load_header();this.calc_idxs()}
RRDHeader.prototype.validate_rrd=function(){if(this.rrd_data.getCStringAt(0,4)!=="RRD")throw new InvalidRRD("Wrong magic id.");this.rrd_version=this.rrd_data.getCStringAt(4,5);if(this.rrd_version!=="0003"&&this.rrd_version!=="0004")throw new InvalidRRD("Unsupported RRD version "+this.rrd_version+".");if(this.rrd_data.getDoubleAt(12)==8.642135E130)this.rrd_align=32;else if(this.rrd_data.getDoubleAt(16)==8.642135E130)this.rrd_align=64;else throw new InvalidRRD("Unsupported platform.");};
-RRDHeader.prototype.load_header=function(){if(this.rrd_align==32){this.ds_cnt=this.rrd_data.getLongAt(20,false);this.rra_cnt=this.rrd_data.getLongAt(24,false);this.pdp_step=this.rrd_data.getLongAt(28,false);this.top_header_size=112}else{this.ds_cnt=this.rrd_data.getLongAt(24,false);this.rra_cnt=this.rrd_data.getLongAt(32,false);this.pdp_step=this.rrd_data.getLongAt(40,false);this.top_header_size=128}};
-RRDHeader.prototype.calc_idxs=function(){this.ds_def_idx=this.top_header_size;this.ds_el_size=120;this.rra_def_idx=this.ds_def_idx+this.ds_el_size*this.ds_cnt;if(this.rrd_align==32){this.rra_def_el_size=108;this.row_cnt_idx=20}else{this.rra_def_el_size=120;this.row_cnt_idx=24}this.live_head_idx=this.rra_def_idx+this.rra_def_el_size*this.rra_cnt;this.live_head_size=this.rrd_align==32?8:16;this.pdp_prep_idx=this.live_head_idx+this.live_head_size;this.pdp_prep_el_size=112;this.cdp_prep_idx=this.pdp_prep_idx+
+RRDHeader.prototype.load_header=function(){this.rrd_align==32?(this.ds_cnt=this.rrd_data.getLongAt(20,!1),this.rra_cnt=this.rrd_data.getLongAt(24,!1),this.pdp_step=this.rrd_data.getLongAt(28,!1),this.top_header_size=112):(this.ds_cnt=this.rrd_data.getLongAt(24,!1),this.rra_cnt=this.rrd_data.getLongAt(32,!1),this.pdp_step=this.rrd_data.getLongAt(40,!1),this.top_header_size=128)};
+RRDHeader.prototype.calc_idxs=function(){this.ds_def_idx=this.top_header_size;this.ds_el_size=120;this.rra_def_idx=this.ds_def_idx+this.ds_el_size*this.ds_cnt;this.rrd_align==32?(this.rra_def_el_size=108,this.row_cnt_idx=20):(this.rra_def_el_size=120,this.row_cnt_idx=24);this.live_head_idx=this.rra_def_idx+this.rra_def_el_size*this.rra_cnt;this.live_head_size=this.rrd_align==32?8:16;this.pdp_prep_idx=this.live_head_idx+this.live_head_size;this.pdp_prep_el_size=112;this.cdp_prep_idx=this.pdp_prep_idx+
this.pdp_prep_el_size*this.ds_cnt;this.cdp_prep_el_size=80;this.rra_ptr_idx=this.cdp_prep_idx+this.cdp_prep_el_size*this.ds_cnt*this.rra_cnt;this.rra_ptr_el_size=this.rrd_align==32?4:8;this.header_size=this.rra_ptr_idx+this.rra_ptr_el_size*this.rra_cnt};
-RRDHeader.prototype.load_row_cnts=function(){this.rra_def_row_cnts=[];this.rra_def_row_cnt_sums=[];for(var b=0;b<this.rra_cnt;b++){this.rra_def_row_cnts[b]=this.rrd_data.getLongAt(this.rra_def_idx+b*this.rra_def_el_size+this.row_cnt_idx,false);this.rra_def_row_cnt_sums[b]=b==0?0:this.rra_def_row_cnt_sums[b-1]+this.rra_def_row_cnts[b-1]}};RRDHeader.prototype.getMinStep=function(){return this.pdp_step};RRDHeader.prototype.getLastUpdate=function(){return this.rrd_data.getLongAt(this.live_head_idx,false)};
-RRDHeader.prototype.getNrDSs=function(){return this.ds_cnt};RRDHeader.prototype.getDSNames=function(){for(var b=[],f=0;f<this.ds_cnt;f++){var k=this.getDSbyIdx(f).getName();b.push(k)}return b};RRDHeader.prototype.getDSbyIdx=function(b){if(b>=0&&b<this.ds_cnt)return new RRDDS(this.rrd_data,this.ds_def_idx+this.ds_el_size*b,b);else throw RangeError("DS idx ("+b+") out of range [0-"+this.ds_cnt+").");};
-RRDHeader.prototype.getDSbyName=function(b){for(var f=0;f<this.ds_cnt;f++){var k=this.getDSbyIdx(f);if(k.getName()==b)return k}throw RangeError("DS name "+b+" unknown.");};RRDHeader.prototype.getNrRRAs=function(){return this.rra_cnt};
-RRDHeader.prototype.getRRAInfo=function(b){if(b>=0&&b<this.rra_cnt)return new RRDRRAInfo(this.rrd_data,this.rra_def_idx+b*this.rra_def_el_size,this.rrd_align,this.rra_def_row_cnts[b],this.pdp_step,b);else throw RangeError("RRA idx ("+b+") out of range [0-"+this.rra_cnt+").");};
-function RRDFile(b){this.rrd_header=new RRDHeader(b);this.rrd_header.load_row_cnts();this.getMinStep=function(){return this.rrd_header.getMinStep()};this.getLastUpdate=function(){return this.rrd_header.getLastUpdate()};this.getNrDSs=function(){return this.rrd_header.getNrDSs()};this.getDSNames=function(){return this.rrd_header.getDSNames()};this.getDS=function(f){return typeof f=="number"?this.rrd_header.getDSbyIdx(f):this.rrd_header.getDSbyName(f)};this.getNrRRAs=function(){return this.rrd_header.getNrRRAs()};
-this.getRRAInfo=function(f){return this.rrd_header.getRRAInfo(f)};this.getRRA=function(f){rra_info=this.rrd_header.getRRAInfo(f);return new RRDRRA(b,this.rrd_header.rra_ptr_idx+f*this.rrd_header.rra_ptr_el_size,rra_info,this.rrd_header.header_size,this.rrd_header.rra_def_row_cnt_sums[f],this.rrd_header.ds_cnt)}};/*
-
- jQuery Tools 1.2.3 Dateinput - <input type="date" /> for humans
+RRDHeader.prototype.load_row_cnts=function(){this.rra_def_row_cnts=[];this.rra_def_row_cnt_sums=[];for(var a=0;a<this.rra_cnt;a++)this.rra_def_row_cnts[a]=this.rrd_data.getLongAt(this.rra_def_idx+a*this.rra_def_el_size+this.row_cnt_idx,!1),this.rra_def_row_cnt_sums[a]=a==0?0:this.rra_def_row_cnt_sums[a-1]+this.rra_def_row_cnts[a-1]};RRDHeader.prototype.getMinStep=function(){return this.pdp_step};RRDHeader.prototype.getLastUpdate=function(){return this.rrd_data.getLongAt(this.live_head_idx,!1)};
+RRDHeader.prototype.getNrDSs=function(){return this.ds_cnt};RRDHeader.prototype.getDSNames=function(){for(var a=[],b=0;b<this.ds_cnt;b++){var e=this.getDSbyIdx(b).getName();a.push(e)}return a};RRDHeader.prototype.getDSbyIdx=function(a){if(a>=0&&a<this.ds_cnt)return new RRDDS(this.rrd_data,this.ds_def_idx+this.ds_el_size*a,a);else throw RangeError("DS idx ("+a+") out of range [0-"+this.ds_cnt+").");};
+RRDHeader.prototype.getDSbyName=function(a){for(var b=0;b<this.ds_cnt;b++){var e=this.getDSbyIdx(b);if(e.getName()==a)return e}throw RangeError("DS name "+a+" unknown.");};RRDHeader.prototype.getNrRRAs=function(){return this.rra_cnt};
+RRDHeader.prototype.getRRAInfo=function(a){if(a>=0&&a<this.rra_cnt)return new RRDRRAInfo(this.rrd_data,this.rra_def_idx+a*this.rra_def_el_size,this.rrd_align,this.rra_def_row_cnts[a],this.pdp_step,a);else throw RangeError("RRA idx ("+a+") out of range [0-"+this.rra_cnt+").");};
+function RRDFile(a){this.rrd_header=new RRDHeader(a);this.rrd_header.load_row_cnts();this.getMinStep=function(){return this.rrd_header.getMinStep()};this.getLastUpdate=function(){return this.rrd_header.getLastUpdate()};this.getNrDSs=function(){return this.rrd_header.getNrDSs()};this.getDSNames=function(){return this.rrd_header.getDSNames()};this.getDS=function(a){return typeof a=="number"?this.rrd_header.getDSbyIdx(a):this.rrd_header.getDSbyName(a)};this.getNrRRAs=function(){return this.rrd_header.getNrRRAs()};
+this.getRRAInfo=function(a){return this.rrd_header.getRRAInfo(a)};this.getRRA=function(b){rra_info=this.rrd_header.getRRAInfo(b);return new RRDRRA(a,this.rrd_header.rra_ptr_idx+b*this.rrd_header.rra_ptr_el_size,rra_info,this.rrd_header.header_size,this.rrd_header.rra_def_row_cnt_sums[b],this.rrd_header.ds_cnt)}};
+// Input 8
+/*
+
+ jQuery Tools @VERSION Dateinput - <input type="date" /> for humans
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
http://flowplayer.org/tools/form/dateinput/
Since: Mar 2010
- Date: Mon Jun 7 13:43:53 2010 +0000
+ Date: @DATE
*/
-(function(b){function f(H,R){H=""+H;for(R=R||2;H.length<R;)H="0"+H;return H}function k(H,R,$){var d=H.getDate(),da=H.getDay(),ya=H.getMonth();H=H.getFullYear();var G={d:d,dd:f(d),ddd:ja[$].shortDays[da],dddd:ja[$].days[da],m:ya+1,mm:f(ya+1),mmm:ja[$].shortMonths[ya],mmmm:ja[$].months[ya],yy:String(H).slice(2),yyyy:H};R=R.replace(wa,function(pa){return pa in G?G[pa]:pa.slice(1,pa.length-1)});return sa.html(R).html()}function p(H,R){return H.getFullYear()===R.getFullYear()&&H.getMonth()==R.getMonth()&&
-H.getDate()==R.getDate()}function A(H){if(H){if(H.constructor==Date)return H;if(typeof H=="string"){var R=H.split("-");if(R.length==3)return new Date(parseInt(R[0],10),parseInt(R[1],10)-1,parseInt(R[2],10));if(!/^-?\d+$/.test(H))return;H=parseInt(H,10)}R=new Date;R.setDate(R.getDate()+H);return R}}function B(H,R){function $(u,E,K){Ba=u;Ua=u.getFullYear();Xa=u.getMonth();Ya=u.getDate();K=K||b.Event("api");K.type="change";la.trigger(K,[u]);if(!K.isDefaultPrevented()){H.val(k(u,E.format,E.lang));H.data("date",
-u);da.hide(K)}}function d(u){u.type="onShow";la.trigger(u);b(document).bind("keydown.d",function(E){var K=E.keyCode;if(K==8){H.val("");return da.hide(E)}if(K==27)return da.hide(E);if(b(J).index(K)>=0){if(!Va){da.show(E);return E.preventDefault()}var C=b("#"+G.weeks+" a"),ia=b("."+G.focus),X=C.index(ia);ia.removeClass(G.focus);if(K==74||K==40)X+=7;else if(K==75||K==38)X-=7;else if(K==76||K==39)X+=1;else if(K==72||K==37)X-=1;if(X==-1){da.addMonth(-1);ia=b("#"+G.weeks+" a:last")}else if(X==35){da.addMonth();
-ia=b("#"+G.weeks+" a:first")}else ia=C.eq(X);ia.addClass(G.focus);return E.preventDefault()}if(K==34)return da.addMonth();if(K==33)return da.addMonth(-1);if(K==36)return da.today();if(K==13)b(E.target).is("select")||b("."+G.focus).click();return b([16,17,18,9]).index(K)>=0});b(document).bind("click.d",function(E){var K=E.target;if(!b(K).parents("#"+G.root).length&&K!=H[0]&&(!Wa||K!=Wa[0]))da.hide(E)})}var da=this,ya=new Date,G=R.css,pa=ja[R.lang],ua=b("#"+G.root),Ja=ua.find("#"+G.title),Wa,Ea,$a,
-Ua,Xa,Ya,Ba=H.attr("data-value")||R.value||H.val(),Na=H.attr("min")||R.min,Pa=H.attr("max")||R.max,Va;Ba=A(Ba)||ya;Na=A(Na||R.yearRange[0]*365);Pa=A(Pa||R.yearRange[1]*365);if(!pa)throw"Dateinput: invalid language: "+R.lang;if(H.attr("type")=="date"){var Ta=b("<input/>");b.each("name,readonly,disabled,value,required".split(","),function(u,E){Ta.attr(E,H.attr(E))});H.replaceWith(Ta);H=Ta}H.addClass(G.input);var la=H.add(da);if(!ua.length){ua=b("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",
-G.root);ua.children().eq(0).attr("id",G.head).end().eq(1).attr("id",G.body).children().eq(0).attr("id",G.days).end().eq(1).attr("id",G.weeks).end().end().end().find("a").eq(0).attr("id",G.prev).end().eq(1).attr("id",G.next);Ja=ua.find("#"+G.head).find("div").attr("id",G.title);if(R.selectors){var Ma=b("<select/>").attr("id",G.month),ab=b("<select/>").attr("id",G.year);Ja.append(Ma.add(ab))}for(var bb=ua.find("#"+G.days),Aa=0;Aa<7;Aa++)bb.append(b("<span/>").text(pa.shortDays[(Aa+R.firstDay)%7]));
-H.after(ua)}if(R.trigger)Wa=b("<a/>").attr("href","#").addClass(G.trigger).click(function(u){da.show();return u.preventDefault()}).insertAfter(H);var n=ua.find("#"+G.weeks);ab=ua.find("#"+G.year);Ma=ua.find("#"+G.month);b.extend(da,{show:function(u){if(!(H.is("[readonly]")||Va)){u=u||b.Event();u.type="onBeforeShow";la.trigger(u);if(!u.isDefaultPrevented()){b.each(M,function(){this.hide()});Va=true;Ma.unbind("change").change(function(){da.setValue(ab.val(),b(this).val())});ab.unbind("change").change(function(){da.setValue(b(this).val(),
-Ma.val())});Ea=ua.find("#"+G.prev).unbind("click").click(function(){Ea.hasClass(G.disabled)||da.addMonth(-1);return false});$a=ua.find("#"+G.next).unbind("click").click(function(){$a.hasClass(G.disabled)||da.addMonth();return false});da.setValue(Ba);var E=H.position();ua.css({top:E.top+H.outerHeight({margins:true})+R.offset[0],left:E.left+R.offset[1]});if(R.speed)ua.show(R.speed,function(){d(u)});else{ua.show();d(u)}return da}}},setValue:function(u,E,K){var C;if(parseInt(E,10)>=-1){u=parseInt(u,10);
-E=parseInt(E,10);K=parseInt(K,10);C=new Date(u,E,K)}else{C=u||Ba;u=C.getFullYear();E=C.getMonth();K=C.getDate()}if(E==-1){E=11;u--}else if(E==12){E=0;u++}if(!Va){$(C,R);return da}Xa=E;Ua=u;K=(new Date(u,E,1-R.firstDay)).getDay();var ia=32-(new Date(u,E,32)).getDate(),X=32-(new Date(u,E-1,32)).getDate(),qa;if(R.selectors){Ma.empty();b.each(pa.months,function(Ca,za){Na<new Date(u,Ca+1,-1)&&Pa>new Date(u,Ca,0)&&Ma.append(b("<option/>").html(za).attr("value",Ca))});ab.empty();for(C=u+R.yearRange[0];C<
-u+R.yearRange[1];C++)Na<new Date(C+1,-1,0)&&Pa>new Date(C,0,0)&&ab.append(b("<option/>").text(C));Ma.val(E);ab.val(u)}else Ja.html(pa.months[E]+" "+u);n.empty();Ea.add($a).removeClass(G.disabled);for(var fa=0,ma,ra;fa<42;fa++){ma=b("<a/>");if(fa%7===0){qa=b("<div/>").addClass(G.week);n.append(qa)}if(fa<K){ma.addClass(G.off);ra=X-K+fa+1;C=new Date(u,E-1,ra)}else if(fa>=K+ia){ma.addClass(G.off);ra=fa-ia-K+1;C=new Date(u,E+1,ra)}else{ra=fa-K+1;C=new Date(u,E,ra);if(p(Ba,C))ma.attr("id",G.current).addClass(G.focus);
-else p(ya,C)&&ma.attr("id",G.today)}Na&&C<Na&&ma.add(Ea).addClass(G.disabled);Pa&&C>Pa&&ma.add($a).addClass(G.disabled);ma.attr("href","#"+ra).text(ra).data("date",C);qa.append(ma);ma.click(function(Ca){var za=b(this);if(!za.hasClass(G.disabled)){b("#"+G.current).removeAttr("id");za.attr("id",G.current);$(za.data("date"),R,Ca)}return false})}G.sunday&&n.find(G.week).each(function(){var Ca=R.firstDay?7-R.firstDay:0;b(this).children().slice(Ca,Ca+1).addClass(G.sunday)});return da},setMin:function(u,
-E){Na=A(u);E&&Ba<Na&&da.setValue(Na);return da},setMax:function(u,E){Pa=A(u);E&&Ba>Pa&&da.setValue(Pa);return da},today:function(){return da.setValue(ya)},addDay:function(u){return this.setValue(Ua,Xa,Ya+(u||1))},addMonth:function(u){return this.setValue(Ua,Xa+(u||1),Ya)},addYear:function(u){return this.setValue(Ua+(u||1),Xa,Ya)},hide:function(u){if(Va){u=u||b.Event();u.type="onHide";la.trigger(u);b(document).unbind("click.d").unbind("keydown.d");if(u.isDefaultPrevented())return;ua.hide();Va=false}return da},
-getConf:function(){return R},getInput:function(){return H},getCalendar:function(){return ua},getValue:function(u){return u?k(Ba,u,R.lang):Ba},isOpen:function(){return Va}});b.each(["onBeforeShow","onShow","change","onHide"],function(u,E){b.isFunction(R[E])&&b(da).bind(E,R[E]);da[E]=function(K){b(da).bind(E,K);return da}});H.bind("focus click",da.show).keydown(function(u){var E=u.keyCode;if(!Va&&b(J).index(E)>=0){da.show(u);return u.preventDefault()}return u.shiftKey||u.ctrlKey||u.altKey||E==9?true:
-u.preventDefault()});A(H.val())&&$(Ba,R)}b.tools=b.tools||{version:"1.2.3"};var M=[],U,J=[75,76,38,39,74,72,40,37],ja={};U=b.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:0,max:0,trigger:false,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(H,R){b.each(R,function($,d){R[$]=d.split(",")});
-ja[H]=R}};U.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var wa=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,sa=b("<a/>");b.expr[":"].date=function(H){var R=H.getAttribute("type");return R&&R=="date"||!!b(H).data("dateinput")};b.fn.dateinput=function(H){if(this.data("dateinput"))return this;
-H=b.extend(true,{},U.conf,H);b.each(H.css,function($,d){if(!d&&$!="prefix")H.css[$]=(H.css.prefix||"")+(d||$)});var R;this.each(function(){var $=new B(b(this),H);M.push($);$=$.getInput().data("dateinput",$);R=R?R.add($):$});return R?R:this}})(jQuery);/*
-
- jQuery Tools 1.2.3 Tabs- The basics of UI design.
+(function(a){function b(a,b){a=""+a;for(b=b||2;a.length<b;)a="0"+a;return a}function e(a,e,f){var j=a.getDate(),k=a.getDay(),l=a.getMonth(),a=a.getFullYear(),A={d:j,dd:b(j),ddd:D[f].shortDays[k],dddd:D[f].days[k],m:l+1,mm:b(l+1),mmm:D[f].shortMonths[l],mmmm:D[f].months[l],yy:String(a).slice(2),yyyy:a},e=e.replace(L,function(a){return a in A?A[a]:a.slice(1,a.length-1)});return B.html(e).html()}function f(a,b){return a.getFullYear()===b.getFullYear()&&a.getMonth()==b.getMonth()&&a.getDate()==b.getDate()}
+function j(a){if(a!==void 0){if(a.constructor==Date)return a;if(typeof a=="string"){var b=a.split("-");if(b.length==3)return new Date(parseInt(b[0],10),parseInt(b[1],10)-1,parseInt(b[2],10));if(!/^-?\d+$/.test(a))return;a=parseInt(a,10)}b=new Date;b.setDate(b.getDate()+a);return b}}function l(b,l){function C(d,f,j){X=d;va=d.getFullYear();v=d.getMonth();S=d.getDate();j=j||a.Event("api");j.type="change";oa.trigger(j,[d]);j.isDefaultPrevented()||(b.val(e(d,f.format,f.lang)),b.data("date",d),B.hide(j))}
+function A(d){d.type="onShow";oa.trigger(d);a(document).bind("keydown.d",function(d){if(d.ctrlKey)return!0;var e=d.keyCode;if(e==8)return b.val(""),B.hide(d);if(e==27||e==9)return B.hide(d);if(a(G).index(e)>=0){if(!ba)return B.show(d),d.preventDefault();var f=a("#"+t.weeks+" a"),j=a("."+t.focus),k=f.index(j);j.removeClass(t.focus);if(e==74||e==40)k+=7;else if(e==75||e==38)k-=7;else if(e==76||e==39)k+=1;else if(e==72||e==37)k-=1;k>41?(B.addMonth(),j=a("#"+t.weeks+" a:eq("+(k-42)+")")):k<0?(B.addMonth(-1),
+j=a("#"+t.weeks+" a:eq("+(k+42)+")")):j=f.eq(k);j.addClass(t.focus);return d.preventDefault()}if(e==34)return B.addMonth();if(e==33)return B.addMonth(-1);if(e==36)return B.today();e==13&&(a(d.target).is("select")||a("."+t.focus).click());return a([16,17,18,9]).index(e)>=0});a(document).bind("click.d",function(d){var e=d.target;!a(e).parents("#"+t.root).length&&e!=b[0]&&(!O||e!=O[0])&&B.hide(d)})}var B=this,L=new Date,N=L.getFullYear(),t=l.css,U=D[l.lang],M=a("#"+t.root),ga=M.find("#"+t.title),O,ha,
+qa,va,v,S,X=b.attr("data-value")||l.value||b.val(),d=b.attr("min")||l.min,aa=b.attr("max")||l.max,ba,F;d===0&&(d="0");X=j(X)||L;d=j(d||new Date(N+l.yearRange[0],1,1));aa=j(aa||new Date(N+l.yearRange[1]+1,1,-1));if(!U)throw"Dateinput: invalid language: "+l.lang;b.attr("type")=="date"&&(F=b.clone(),N=F.wrap("<div/>").parent().html(),N=a(N.replace(/type/i,"type=text data-orig-type")),N.val(l.value),b.replaceWith(N),b=N);b.addClass(t.input);var oa=b.add(B);if(!M.length){M=a("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",
+t.root);M.children().eq(0).attr("id",t.head).end().eq(1).attr("id",t.body).children().eq(0).attr("id",t.days).end().eq(1).attr("id",t.weeks).end().end().end().find("a").eq(0).attr("id",t.prev).end().eq(1).attr("id",t.next);ga=M.find("#"+t.head).find("div").attr("id",t.title);if(l.selectors){var ka=a("<select/>").attr("id",t.month),ca=a("<select/>").attr("id",t.year);ga.html(ka.add(ca))}for(var N=M.find("#"+t.days),ra=0;ra<7;ra++)N.append(a("<span/>").text(U.shortDays[(ra+l.firstDay)%7]));a("body").append(M)}l.trigger&&
+(O=a("<a/>").attr("href","#").addClass(t.trigger).click(function(a){B.show();return a.preventDefault()}).insertAfter(b));var wa=M.find("#"+t.weeks),ca=M.find("#"+t.year),ka=M.find("#"+t.month);a.extend(B,{show:function(d){if(!b.attr("readonly")&&!b.attr("disabled")&&!ba&&(d=d||a.Event(),d.type="onBeforeShow",oa.trigger(d),!d.isDefaultPrevented())){a.each(k,function(){this.hide()});ba=!0;ka.unbind("change").change(function(){B.setValue(ca.val(),a(this).val())});ca.unbind("change").change(function(){B.setValue(a(this).val(),
+ka.val())});ha=M.find("#"+t.prev).unbind("click").click(function(){ha.hasClass(t.disabled)||B.addMonth(-1);return!1});qa=M.find("#"+t.next).unbind("click").click(function(){qa.hasClass(t.disabled)||B.addMonth();return!1});B.setValue(X);var e=b.offset();/iPad/i.test(navigator.userAgent)&&(e.top-=a(window).scrollTop());M.css({top:e.top+b.outerHeight({margins:!0})+l.offset[0],left:e.left+l.offset[1]});l.speed?M.show(l.speed,function(){A(d)}):(M.show(),A(d));return B}},setValue:function(b,e,k){var z=
+parseInt(e,10)>=-1?new Date(parseInt(b,10),parseInt(e,10),parseInt(k||1,10)):b||X;z<d?z=d:z>aa&&(z=aa);typeof b=="string"&&(z=j(b));b=z.getFullYear();e=z.getMonth();k=z.getDate();e==-1?(e=11,b--):e==12&&(e=0,b++);if(!ba)return C(z,l),B;v=e;va=b;var k=(new Date(b,e,1-l.firstDay)).getDay(),A=32-(new Date(b,e,32)).getDate(),n=32-(new Date(b,e-1,32)).getDate(),F;if(l.selectors){ka.empty();a.each(U.months,function(e,f){d<new Date(b,e+1,-1)&&aa>new Date(b,e,0)&&ka.append(a("<option/>").html(f).attr("value",
+e))});ca.empty();for(var z=L.getFullYear(),D=z+l.yearRange[0];D<z+l.yearRange[1];D++)d<=new Date(D+1,-1,1)&&aa>new Date(D,0,0)&&ca.append(a("<option/>").text(D));ka.val(e);ca.val(b)}else ga.html(U.months[e]+" "+b);wa.empty();ha.add(qa).removeClass(t.disabled);for(var D=!k?-7:0,G,x;D<(!k?35:42);D++)G=a("<a/>"),D%7===0&&(F=a("<div/>").addClass(t.week),wa.append(F)),D<k?(G.addClass(t.off),x=n-k+D+1,z=new Date(b,e-1,x)):D>=k+A?(G.addClass(t.off),x=D-A-k+1,z=new Date(b,e+1,x)):(x=D-k+1,z=new Date(b,e,
+x),f(X,z)?G.attr("id",t.current).addClass(t.focus):f(L,z)&&G.attr("id",t.today)),d&&z<d&&G.add(ha).addClass(t.disabled),aa&&z>aa&&G.add(qa).addClass(t.disabled),G.attr("href","#"+x).text(x).data("date",z),F.append(G);wa.find("a").click(function(b){var d=a(this);d.hasClass(t.disabled)||(a("#"+t.current).removeAttr("id"),d.attr("id",t.current),C(d.data("date"),l,b));return!1});t.sunday&&wa.find(t.week).each(function(){var b=l.firstDay?7-l.firstDay:0;a(this).children().slice(b,b+1).addClass(t.sunday)});
+return B},setMin:function(a,b){d=j(a);b&&X<d&&B.setValue(d);return B},setMax:function(a,b){aa=j(a);b&&X>aa&&B.setValue(aa);return B},today:function(){return B.setValue(L)},addDay:function(a){return this.setValue(va,v,S+(a||1))},addMonth:function(a){return this.setValue(va,v+(a||1),S)},addYear:function(a){return this.setValue(va+(a||1),v,S)},destroy:function(){b.add(document).unbind("click.d").unbind("keydown.d");M.add(O).remove();b.removeData("dateinput").removeClass(t.input);F&&b.replaceWith(F)},
+hide:function(b){if(ba){b=a.Event();b.type="onHide";oa.trigger(b);a(document).unbind("click.d").unbind("keydown.d");if(b.isDefaultPrevented())return;M.hide();ba=!1}return B},getConf:function(){return l},getInput:function(){return b},getCalendar:function(){return M},getValue:function(a){return a?e(X,a,l.lang):X},isOpen:function(){return ba}});a.each(["onBeforeShow","onShow","change","onHide"],function(b,d){a.isFunction(l[d])&&a(B).bind(d,l[d]);B[d]=function(b){b&&a(B).bind(d,b);return B}});l.editable||
+b.bind("focus.d click.d",B.show).keydown(function(b){var d=b.keyCode;if(!ba&&a(G).index(d)>=0)return B.show(b),b.preventDefault();return b.shiftKey||b.ctrlKey||b.altKey||d==9?!0:b.preventDefault()});j(b.val())&&C(X,l)}a.tools=a.tools||{version:"@VERSION"};var k=[],A,G=[75,76,38,39,74,72,40,37],D={};A=a.tools.dateinput={conf:{format:"mm/dd/yy",selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:void 0,max:void 0,trigger:0,editable:0,css:{prefix:"cal",input:"date",root:0,head:0,
+title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(b,e){a.each(e,function(a,b){e[a]=b.split(",")});D[b]=e}};A.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var L=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,
+B=a("<a/>");a.expr[":"].date=function(b){var e=b.getAttribute("type");return e&&e=="date"||!!a(b).data("dateinput")};a.fn.dateinput=function(b){if(this.data("dateinput"))return this;b=a.extend(!0,{},A.conf,b);a.each(b.css,function(a,e){!e&&a!="prefix"&&(b.css[a]=(b.css.prefix||"")+(e||a))});var e;this.each(function(){var f=new l(a(this),b);k.push(f);f=f.getInput().data("dateinput",f);e=e?e.add(f):f});return e?e:this}})(jQuery);
+// Input 9
+/*
+
+ jQuery Tools @VERSION Tabs- The basics of UI design.
NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
http://flowplayer.org/tools/tabs/
Since: November 2008
- Date: Mon Jun 7 13:43:53 2010 +0000
-*/
-(function(b){function f(A,B,M){var U=this,J=A.add(this),ja=A.find(M.tabs),wa=B.jquery?B:A.children(B),sa;ja.length||(ja=A.children());wa.length||(wa=A.parent().find(B));wa.length||(wa=b(B));b.extend(this,{click:function(H,R){var $=ja.eq(H);if(typeof H=="string"&&H.replace("#","")){$=ja.filter("[href*="+H.replace("#","")+"]");H=Math.max(ja.index($),0)}if(M.rotate){var d=ja.length-1;if(H<0)return U.click(d,R);if(H>d)return U.click(0,R)}if(!$.length){if(sa>=0)return U;H=M.initialIndex;$=ja.eq(H)}if(H===
-sa)return U;R=R||b.Event();R.type="onBeforeClick";J.trigger(R,[H]);if(!R.isDefaultPrevented()){k[M.effect].call(U,H,function(){R.type="onClick";J.trigger(R,[H])});sa=H;ja.removeClass(M.current);$.addClass(M.current);return U}},getConf:function(){return M},getTabs:function(){return ja},getPanes:function(){return wa},getCurrentPane:function(){return wa.eq(sa)},getCurrentTab:function(){return ja.eq(sa)},getIndex:function(){return sa},next:function(){return U.click(sa+1)},prev:function(){return U.click(sa-
-1)},destroy:function(){ja.unbind(M.event).removeClass(M.current);wa.find("a[href^=#]").unbind("click.T");return U}});b.each("onBeforeClick,onClick".split(","),function(H,R){b.isFunction(M[R])&&b(U).bind(R,M[R]);U[R]=function($){b(U).bind(R,$);return U}});if(M.history&&b.fn.history){b.tools.history.init(ja);M.event="history"}ja.each(function(H){b(this).bind(M.event,function(R){U.click(H,R);return R.preventDefault()})});wa.find("a[href^=#]").bind("click.T",function(H){U.click(b(this).attr("href"),H)});
-if(location.hash)U.click(location.hash);else if(M.initialIndex===0||M.initialIndex>0)U.click(M.initialIndex)}b.tools=b.tools||{version:"1.2.3"};b.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(A,B){k[A]=B}};var k={"default":function(A,B){this.getPanes().hide().eq(A).show();B.call()},fade:function(A,B){var M=this.getConf(),U=M.fadeOutSpeed,J=this.getPanes();U?J.fadeOut(U):J.hide();
-J.eq(A).fadeIn(M.fadeInSpeed,B)},slide:function(A,B){this.getPanes().slideUp(200);this.getPanes().eq(A).slideDown(400,B)},ajax:function(A,B){this.getPanes().eq(0).load(this.getTabs().eq(A).attr("href"),B)}},p;b.tools.tabs.addEffect("horizontal",function(A,B){p||(p=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){b(this).hide()});this.getPanes().eq(A).animate({width:p},function(){b(this).show();B.call()})});b.fn.tabs=function(A,B){var M=this.data("tabs");if(M){M.destroy();
-this.removeData("tabs")}if(b.isFunction(B))B={onBeforeClick:B};B=b.extend({},b.tools.tabs.conf,B);this.each(function(){M=new f(b(this),A,B);b(this).data("tabs",M)});return B.api?M:this}})(jQuery);/*
-
- jQuery Tools 1.2.3 History "Back button for AJAX apps"
-
- NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
-
- http://flowplayer.org/tools/toolbox/history.html
-
- Since: Mar 2010
- Date: Mon Jun 7 13:43:53 2010 +0000
+ Date: @DATE
*/
-(function(b){function f(M){if(M){var U=p.contentWindow.document;U.open().close();U.location.hash=M}}var k,p,A,B;b.tools=b.tools||{version:"1.2.3"};b.tools.history={init:function(M){if(!B){if(b.browser.msie&&b.browser.version<"8"){if(!p){p=b("<iframe/>").attr("src","javascript:false;").hide().get(0);b("body").append(p);setInterval(function(){var U=p.contentWindow.document.location.hash;k!==U&&b.event.trigger("hash",U)},100);f(location.hash||"#")}}else setInterval(function(){var U=location.hash;U!==
-k&&b.event.trigger("hash",U)},100);A=!A?M:A.add(M);M.click(function(U){var J=b(this).attr("href");p&&f(J);if(J.slice(0,1)!="#"){location.href="#"+J;return U.preventDefault()}});B=true}}};b(window).bind("hash",function(M,U){U?A.filter(function(){var J=b(this).attr("href");return J==U||J==U.replace("#","")}).trigger("history",[U]):A.eq(0).trigger("history",[U]);k=U;window.location.hash=k});b.fn.history=function(M){b.tools.history.init(this);return this.bind("history",M)}})(jQuery);
+(function(a){function b(b,f,k){var A=this,G=b.add(this),D=b.find(k.tabs),L=f.jquery?f:b.children(f),B;D.length||(D=b.children());L.length||(L=b.parent().find(f));L.length||(L=a(f));a.extend(this,{click:function(b,f){var j=D.eq(b);typeof b=="string"&&b.replace("#","")&&(j=D.filter("[href*="+b.replace("#","")+"]"),b=Math.max(D.index(j),0));if(k.rotate){var l=D.length-1;if(b<0)return A.click(l,f);if(b>l)return A.click(0,f)}if(!j.length){if(B>=0)return A;b=k.initialIndex;j=D.eq(b)}if(b===B)return A;f=
+f||a.Event();f.type="onBeforeClick";G.trigger(f,[b]);if(!f.isDefaultPrevented())return B=b,e[k.effect].call(A,b,function(){f.type="onClick";G.trigger(f,[b])}),D.removeClass(k.current),j.addClass(k.current),A},getConf:function(){return k},getTabs:function(){return D},getPanes:function(){return L},getCurrentPane:function(){return L.eq(B)},getCurrentTab:function(){return D.eq(B)},getIndex:function(){return B},next:function(){return A.click(B+1)},prev:function(){return A.click(B-1)},destroy:function(){D.unbind(k.event).removeClass(k.current);
+L.find("a[href^=#]").unbind("click.T");return A}});a.each("onBeforeClick,onClick".split(","),function(b,e){a.isFunction(k[e])&&a(A).bind(e,k[e]);A[e]=function(b){b&&a(A).bind(e,b);return A}});if(k.history&&a.fn.history)a.tools.history.init(D),k.event="history";D.each(function(b){a(this).bind(k.event,function(a){A.click(b,a);return a.preventDefault()})});L.find("a[href^=#]").bind("click.T",function(b){A.click(a(this).attr("href"),b)});location.hash&&k.tabs=="a"&&b.find("[href="+location.hash+"]").length?
+A.click(location.hash):(k.initialIndex===0||k.initialIndex>0)&&A.click(k.initialIndex)}a.tools=a.tools||{version:"@VERSION"};a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(a,b){e[a]=b}};var e={"default":function(a,b){this.getPanes().hide().eq(a).show();b.call()},fade:function(a,b){var e=this.getConf(),f=e.fadeOutSpeed,G=this.getPanes();f?G.fadeOut(f):G.hide();G.eq(a).fadeIn(e.fadeInSpeed,
+b)},slide:function(a,b){this.getPanes().slideUp(200);this.getPanes().eq(a).slideDown(400,b)},ajax:function(a,b){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),b)}},f;a.tools.tabs.addEffect("horizontal",function(b,e){f||(f=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){a(this).hide()});this.getPanes().eq(b).animate({width:f},function(){a(this).show();e.call()})});a.fn.tabs=function(e,f){var k=this.data("tabs");k&&(k.destroy(),this.removeData("tabs"));
+a.isFunction(f)&&(f={onBeforeClick:f});f=a.extend({},a.tools.tabs.conf,f);this.each(function(){k=new b(a(this),e,f);a(this).data("tabs",k)});return f.api?k:this}})(jQuery);
diff --git a/docs/examples/index.html b/docs/examples/index.html
index 2bec8aa..14559e3 100644
--- a/docs/examples/index.html
+++ b/docs/examples/index.html
@@ -12,7 +12,6 @@
<link rel="stylesheet" type="text/css" href="assets/css/jquerytools.dateinput.skin1.css" />
<script type="text/javascript" src="assets/js/dependencies.js"></script>
-
<script type="text/javascript" src="../../jarmon/jarmon.js"></script>
<script type="text/javascript" src="jarmon_example_recipes.js"></script>
<script type="text/javascript">
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index 1dda6a8..6177853 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -27,6 +27,206 @@ if(typeof jarmon == 'undefined') {
var jarmon = {};
}
+// A VBScript and Javascript helper function to convert IE responseBody to a
+// byte string.
+// http://miskun.com/javascript/internet-explorer-and-binary-files-data-access/
+var IEBinaryToArray_ByteStr_Script =
+ "<!-- IEBinaryToArray_ByteStr -->\r\n"+
+ "<script type='text/vbscript'>\r\n"+
+ "Function IEBinaryToArray_ByteStr(Binary)\r\n"+
+ " IEBinaryToArray_ByteStr = CStr(Binary)\r\n"+
+ "End Function\r\n"+
+ "Function IEBinaryToArray_ByteStr_Last(Binary)\r\n"+
+ " Dim lastIndex\r\n"+
+ " lastIndex = LenB(Binary)\r\n"+
+ " if lastIndex mod 2 Then\r\n"+
+ " IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n"+
+ " Else\r\n"+
+ " IEBinaryToArray_ByteStr_Last = "+'""'+"\r\n"+
+ " End If\r\n"+
+ "End Function\r\n"+
+ "</script>\r\n";
+document.write(IEBinaryToArray_ByteStr_Script);
+
+jarmon.GetIEByteArray_ByteStr = function(IEByteArray) {
+ if(typeof(jarmon.ByteMapping) == 'undefined') {
+ jarmon.ByteMapping = {};
+ for ( var i = 0; i < 256; i++ ) {
+ for ( var j = 0; j < 256; j++ ) {
+ jarmon.ByteMapping[ String.fromCharCode( i + j * 256 ) ] =
+ String.fromCharCode(i) + String.fromCharCode(j);
+ }
+ }
+ }
+
+ var rawBytes = IEBinaryToArray_ByteStr(IEByteArray);
+ var lastChr = IEBinaryToArray_ByteStr_Last(IEByteArray);
+ return rawBytes.replace(/[\s\S]/g,
+ function( match ) { return jarmon.ByteMapping[match]; }) + lastChr;
+};
+
+/*
+ * BinaryFile over XMLHttpRequest
+ * Part of the javascriptRRD package
+ * Copyright (c) 2009 Frank Wuerthwein, fkw@ucsd.edu
+ * MIT License [http://www.opensource.org/licenses/mit-license.php]
+ *
+ * Original repository: http://javascriptrrd.sourceforge.net/
+ *
+ * Based on:
+ * Binary Ajax 0.1.5
+ * Copyright (c) 2008 Jacob Seidelin, cupboy@gmail.com,
+ * http://blog.nihilogic.dk/
+ * MIT License [http://www.opensource.org/licenses/mit-license.php]
+ */
+
+// ============================================================
+// Exception class
+jarmon.InvalidBinaryFile = function(msg) {
+ this.message=msg;
+ this.name="Invalid BinaryFile";
+};
+
+// pretty print
+jarmon.InvalidBinaryFile.prototype.toString = function() {
+ return this.name + ': "' + this.message + '"';
+};
+
+// =====================================================================
+// BinaryFile class
+// Allows access to element inside a binary stream
+jarmon.BinaryFile = function(strData, iDataOffset, iDataLength) {
+
+ var data = strData;
+ var dataOffset = iDataOffset || 0;
+ var dataLength = 0;
+ // added
+ var doubleMantExpHi=Math.pow(2,-28);
+ var doubleMantExpLo=Math.pow(2,-52);
+ var doubleMantExpFast=Math.pow(2,-20);
+
+ if (typeof strData == "string") {
+ dataLength = iDataLength || data.length;
+ } else {
+ throw new jarmon.InvalidBinaryFile(
+ "Unsupported type " + (typeof strData));
+ }
+
+ this.getRawData = function() {
+ return data;
+ };
+
+ this.getByteAt = function(iOffset) {
+ return data.charCodeAt(iOffset + dataOffset) & 0xFF;
+ };
+
+ this.getLength = function() {
+ return dataLength;
+ };
+
+ this.getSByteAt = function(iOffset) {
+ var iByte = this.getByteAt(iOffset);
+ if (iByte > 127)
+ return iByte - 256;
+ else
+ return iByte;
+ };
+
+ this.getShortAt = function(iOffset) {
+ var iShort = (
+ this.getByteAt(iOffset + 1) << 8) + this.getByteAt(iOffset);
+ if (iShort < 0) iShort += 65536;
+ return iShort;
+ };
+ this.getSShortAt = function(iOffset) {
+ var iUShort = this.getShortAt(iOffset);
+ if (iUShort > 32767)
+ return iUShort - 65536;
+ else
+ return iUShort;
+ };
+ this.getLongAt = function(iOffset) {
+ var iByte1 = this.getByteAt(iOffset),
+ iByte2 = this.getByteAt(iOffset + 1),
+ iByte3 = this.getByteAt(iOffset + 2),
+ iByte4 = this.getByteAt(iOffset + 3);
+
+ var iLong = (((((iByte4 << 8) + iByte3) << 8) + iByte2) << 8) + iByte1;
+ if (iLong < 0) iLong += 4294967296;
+ return iLong;
+ };
+ this.getSLongAt = function(iOffset) {
+ var iULong = this.getLongAt(iOffset);
+ if (iULong > 2147483647)
+ return iULong - 4294967296;
+ else
+ return iULong;
+ };
+ this.getStringAt = function(iOffset, iLength) {
+ var aStr = [];
+ for (var i=iOffset,j=0;i<iOffset+iLength;i++,j++) {
+ aStr[j] = String.fromCharCode(this.getByteAt(i));
+ }
+ return aStr.join("");
+ };
+
+ // Added
+ this.getCStringAt = function(iOffset, iMaxLength) {
+ var aStr = [];
+ for (var i=iOffset,j=0;(i<iOffset+iMaxLength) &&
+ (this.getByteAt(i)>0);i++,j++) {
+ aStr[j] = String.fromCharCode(this.getByteAt(i));
+ }
+ return aStr.join("");
+ };
+
+ // Added
+ this.getDoubleAt = function(iOffset) {
+ var iByte1 = this.getByteAt(iOffset),
+ iByte2 = this.getByteAt(iOffset + 1),
+ iByte3 = this.getByteAt(iOffset + 2),
+ iByte4 = this.getByteAt(iOffset + 3),
+ iByte5 = this.getByteAt(iOffset + 4),
+ iByte6 = this.getByteAt(iOffset + 5),
+ iByte7 = this.getByteAt(iOffset + 6),
+ iByte8 = this.getByteAt(iOffset + 7);
+ var iSign=iByte8 >> 7;
+ var iExpRaw=((iByte8 & 0x7F)<< 4) + (iByte7 >> 4);
+ var iMantHi=((((((iByte7 & 0x0F) << 8) + iByte6) << 8) + iByte5) << 8) + iByte4;
+ var iMantLo=((((iByte3) << 8) + iByte2) << 8) + iByte1;
+
+ if (iExpRaw==0) return 0.0;
+ if (iExpRaw==0x7ff) return undefined;
+
+ var iExp=(iExpRaw & 0x7FF)-1023;
+
+ var dDouble = ((iSign==1)?-1:1)*Math.pow(2,iExp)*(1.0 + iMantLo*doubleMantExpLo + iMantHi*doubleMantExpHi);
+ return dDouble;
+ };
+ // added
+ // Extracts only 4 bytes out of 8, loosing in precision (20 bit mantissa)
+ this.getFastDoubleAt = function(iOffset) {
+ var iByte5 = this.getByteAt(iOffset + 4),
+ iByte6 = this.getByteAt(iOffset + 5),
+ iByte7 = this.getByteAt(iOffset + 6),
+ iByte8 = this.getByteAt(iOffset + 7);
+ var iSign=iByte8 >> 7;
+ var iExpRaw=((iByte8 & 0x7F)<< 4) + (iByte7 >> 4);
+ var iMant=((((iByte7 & 0x0F) << 8) + iByte6) << 8) + iByte5;
+
+ if (iExpRaw==0) return 0.0;
+ if (iExpRaw==0x7ff) return undefined;
+
+ var iExp=(iExpRaw & 0x7FF)-1023;
+
+ var dDouble = ((iSign==1)?-1:1)*Math.pow(2,iExp)*(1.0 + iMant*doubleMantExpFast);
+ return dDouble;
+ };
+
+ this.getCharAt = function(iOffset) {
+ return String.fromCharCode(this.getByteAt(iOffset));
+ };
+};
jarmon.downloadBinary = function(url) {
/**
@@ -34,39 +234,38 @@ jarmon.downloadBinary = function(url) {
*
* @method downloadBinary
* @param url {String} The url of the object to be downloaded
- * @return {Object} A deferred which will callback with an instance of javascriptrrd.BinaryFile
+ * @return {Object} A deferred which will callback with an instance of
+ * javascriptrrd.BinaryFile
*/
var d = new MochiKit.Async.Deferred();
-
$.ajax({
- _deferredResult: d,
url: url,
dataType: 'text',
- cache: false,
- beforeSend: function(request) {
- try {
- request.overrideMimeType('text/plain; charset=x-user-defined');
- } catch(e) {
- // IE doesn't support overrideMimeType
- }
+ mimeType: 'text/plain; charset=x-user-defined',
+ xhr: function() {
+ // Save a reference to the native xhr object - we need it later
+ // in IE to access the binary data from responseBody
+ this._nativeXhr = jQuery.ajaxSettings.xhr();
+ return this._nativeXhr;
},
- success: function(data) {
- try {
- this._deferredResult.callback(new BinaryFile(data));
- } catch(e) {
- this._deferredResult.errback(e);
+ success: function(data, textStatus, jqXHR) {
+ // In IE we return the responseBody
+ if(typeof(this._nativeXhr.responseBody) != 'undefined') {
+ d.callback(
+ new jarmon.BinaryFile(
+ jarmon.GetIEByteArray_ByteStr(
+ this._nativeXhr.responseBody)));
+ } else {
+ d.callback(new jarmon.BinaryFile(data));
}
},
error: function(xhr, textStatus, errorThrown) {
- // Special case for IE which handles binary data slightly
- // differently.
- if(textStatus == 'parsererror') {
- if (typeof xhr.responseBody != 'undefined') {
- return this.success(xhr.responseBody);
- }
- }
- this._deferredResult.errback(new Error(xhr.status));
+ d.errback(new Error(xhr.status));
+ },
+ complete: function(jqXHR, textStatus) {
+ this._nativeXhr = null;
+ delete this._nativeXhr;
}
});
return d;
@@ -240,10 +439,10 @@ jarmon.RrdQuery.prototype.getData = function(startTimeJs, endTimeJs, dsId, cfNam
var val;
var timestamp = startRowTime;
- for(var i=startRowIndex; i<endRowIndex; i++) {
- val = rra.getEl(i, dsIndex)
+ for(i=startRowIndex; i<endRowIndex; i++) {
+ val = rra.getEl(i, dsIndex);
flotData.push([timestamp*1000.0, val]);
- timestamp += step
+ timestamp += step;
}
// Now get the date of the earliest record in entire rrd file, ie that of
@@ -429,7 +628,7 @@ jarmon.Chart = function(template, recipe, downloader) {
2: 'M',
3: 'G',
4: 'T'
- }
+ };
var si = 0;
while(true) {
if( Math.pow(1000, si+1)*0.9 > axis.max ) {
@@ -446,7 +645,7 @@ jarmon.Chart = function(template, recipe, downloader) {
var stepSize, decimalPlaces = 0;
for(var i=0; i<stepSizes.length; i++) {
- stepSize = stepSizes[i]
+ stepSize = stepSizes[i];
if( realStep < stepSize ) {
if(stepSize < 10) {
decimalPlaces = 2;
@@ -460,7 +659,7 @@ jarmon.Chart = function(template, recipe, downloader) {
}
var tickMin = minVal - minVal % stepSize;
- var tickMax = maxVal - maxVal % stepSize + stepSize
+ var tickMax = maxVal - maxVal % stepSize + stepSize;
var ticks = [];
for(var j=tickMin; j<=tickMax; j+=stepSize) {
@@ -543,7 +742,7 @@ jarmon.Chart.prototype.setTimeRange = function(startTime, endTime) {
this.startTime = startTime;
this.endTime = endTime;
return this.draw();
-}
+};
jarmon.Chart.prototype.draw = function() {
/**
@@ -698,8 +897,8 @@ jarmon.RrdChooser.prototype.drawRrdUrlForm = function() {
value: this.data.rrdUrl
})
),
- $('<input/>', {type: 'submit', value: 'download'}),
- $('<div/>', {class: 'next'})
+ $('<input/>', {'type': 'submit', value: 'download'}),
+ $('<div/>', {'class': 'next'})
)
).submit(
function(e) {
@@ -738,7 +937,7 @@ jarmon.RrdChooser.prototype.drawRrdUrlForm = function() {
return false;
}
).appendTo(this.$tpl);
-}
+};
jarmon.RrdChooser.prototype.drawDsLabelForm = function() {
var self = this;
@@ -772,7 +971,7 @@ jarmon.RrdChooser.prototype.drawDsLabelForm = function() {
}
),
$('<input/>', {type: 'submit', value: 'save'}),
- $('<div/>', {class: 'next'})
+ $('<div/>', {'class': 'next'})
).submit(
function(e) {
self.data.dsLabel = this['dsLabel'].value;
@@ -931,7 +1130,7 @@ jarmon.ChartEditor.prototype._extractRowValues = function($row) {
function(i, el) {
return el.value;
}
- )
+ );
};
@@ -1044,7 +1243,7 @@ jarmon.TabbedInterface = function($tpl, recipe) {
'value': $originalLink.text(),
'name': 'editTabTitle',
'type': 'text'
- })
+ });
$originalLink.replaceWith($input);
$input.focus();
}
@@ -1060,7 +1259,7 @@ jarmon.TabbedInterface = function($tpl, recipe) {
$('<a/>', {
href: ['#', this.value].join('')
}).text(this.value)
- )
+ );
self.setup();
self.$tabBar.data("tabs").click(this.value);
}
@@ -1114,7 +1313,7 @@ jarmon.buildTabbedChartUi = function ($chartTemplate, chartRecipes,
/**
* Setup chart date range controls and all charts
**/
- var p = new jarmon.Parallimiter(1);
+ var p = new jarmon.Parallimiter(2);
function serialDownloader(url) {
return p.addCallable(jarmon.downloadBinary, [url]);
}
@@ -1304,10 +1503,10 @@ jarmon.ChartCoordinator = function(ui, charts) {
// Populate a list of tzoffset options if the element is present in the
// template as a select list
- tzoffsetEl = this.ui.find('[name="tzoffset"]');
+ var tzoffsetEl = this.ui.find('[name="tzoffset"]');
if(tzoffsetEl.is('select')) {
var label, val;
- for(var i=-12; i<=12; i++) {
+ for(i=-12; i<=12; i++) {
label = 'UTC';
val = i;
if(val >= 0) {
@@ -1389,29 +1588,37 @@ jarmon.ChartCoordinator = function(ui, charts) {
// XXX: is there a better way to check for valid date?
currentDate = new Date($(this).siblings(input_selector).val());
if(currentDate.getTime() != NaN) {
- $(this).data('dateinput')._input_selector = input_selector;
- $(this).data('dateinput')._initial_val = currentDate.getTime();
+ $(this).data(
+ 'dateinput')._initial_val = currentDate.getTime();
$(this).data('dateinput').setValue(currentDate);
break;
}
}
})
- .bind('onHide', function(e) {
- // Called after a calendar date has been chosen by the user.
-
- // Use the sibling selector that we generated above before opening
- // the calendar
- var input_selector = $(this).data('dateinput')._input_selector;
- var oldStamp = $(this).data('dateinput')._initial_val;
- var newDate = $(this).data('dateinput').getValue();
- // Only update the form field if the date has changed.
- if(oldStamp != newDate.getTime()) {
- $(this).siblings(input_selector).val(
- newDate.toString().split(' ').slice(1,5).join(' '));
- // Trigger a change event which should automatically update the
- // graphs and change the timerange drop down selector to
- // "custom"
- $(this).siblings(input_selector).trigger('change');
+ .bind(
+ 'onHide',
+ {self: this},
+ function(e) {
+ var self = e.data.self;
+ // Called after a calendar date has been chosen by the user.
+ // Use the sibling selector that we generated above
+ // before opening the calendar
+ var oldStamp = $(this).data('dateinput')._initial_val;
+ var newDate = $(this).data('dateinput').getValue();
+ // Only update the form field if the date has changed.
+ if(oldStamp != newDate.getTime()) {
+ // Update the prepared time range select box to
+ // value "custom"
+ self.ui.find('[name="from_standard"]').val('custom');
+ var from = null;
+ var to = null;
+ if($(this).hasClass('from_custom')){
+ from = newDate.getTime();
+ } else {
+ to = newDate.getTime();
+ }
+ self.setTimeRange(from, to);
+ self.update();
}
});
@@ -1457,7 +1664,7 @@ jarmon.ChartCoordinator.prototype.update = function() {
var now = new Date().getTime();
for(var i=0; i<jarmon.timeRangeShortcuts.length; i++) {
if(jarmon.timeRangeShortcuts[i][0] == selection) {
- range = jarmon.timeRangeShortcuts[i][1](now);
+ var range = jarmon.timeRangeShortcuts[i][1](now);
this.setTimeRange(range[0], range[1]);
break;
}
@@ -1475,7 +1682,7 @@ jarmon.ChartCoordinator.prototype.update = function() {
this.rangePreviewOptions.xaxis.tzoffset = tzoffset;
var chartsLoading = [];
- for(var i=0; i<this.charts.length; i++){
+ for(i=0; i<this.charts.length; i++){
this.charts[i].options.xaxis.tzoffset = tzoffset;
// Don't render charts which are not currently visible
if(this.charts[i].template.is(':visible')) {
@@ -1519,7 +1726,7 @@ jarmon.ChartCoordinator.prototype.update = function() {
MONTH, MONTH*3, MONTH*6, YEAR];
var range = ranges.xaxis.to - ranges.xaxis.from;
- for(var i=0; i<periods.length; i++) {
+ for(i=0; i<periods.length; i++) {
if(range <= periods[i]) {
i++;
break;
diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js
index f5b7dae..7b009d7 100644
--- a/jarmon/jarmon.test.js
+++ b/jarmon/jarmon.test.js
@@ -34,7 +34,7 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) {
d.addBoth(
function(self, ret) {
self.resume(function() {
- Y.Assert.isInstanceOf(BinaryFile, ret);
+ Y.Assert.isInstanceOf(jarmon.BinaryFile, ret);
Y.Assert.areEqual(String.fromCharCode(0), ret.getRawData());
});
}, this);
diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py
index 0be6cf0..f6ed712 100644
--- a/jarmonbuild/commands.py
+++ b/jarmonbuild/commands.py
@@ -8,7 +8,10 @@ import logging
import os
import shutil
import sys
+import httplib
+import urllib
+from datetime import datetime
from optparse import OptionParser
from subprocess import check_call, PIPE
from tempfile import gettempdir
@@ -21,7 +24,7 @@ import pkg_resources
JARMON_PROJECT_TITLE = 'Jarmon'
JARMON_PROJECT_URL = 'http://www.launchpad.net/jarmon'
-YUIDOC_URL = 'http://yuilibrary.com/downloads/yuidoc/yuidoc_1.0.0b1.zip'
+YUIDOC_URL = 'http://yui.zenfs.com/releases/yuidoc/yuidoc_1.0.0b1.zip'
YUIDOC_MD5 = 'cd5545d2dec8f7afe3d18e793538162c'
YUIDOC_DEPENDENCIES = ['setuptools', 'pygments', 'cheetah']
@@ -228,7 +231,6 @@ class BuildTestDataCommand(BuildCommand):
Create an RRD file with values 0-9 entered at 1 second intervals from
1980-01-01 00:00:00 (the first date that rrdtool allows)
"""
- from datetime import datetime
from pyrrd.rrd import DataSource, RRA, RRD
start = int(datetime(1980, 1, 1, 0, 0).strftime('%s'))
dss = []
@@ -261,11 +263,53 @@ class BuildTestDataCommand(BuildCommand):
my_rrd.update()
+class BuildJavascriptDependenciesCommand(BuildCommand):
+ """
+ Export all source files, generate apidocs and create a zip archive for
+ upload to Launchpad.
+ """
+
+ command_name = 'jsdeps'
+
+ def main(self, argv):
+ self.log.debug('Compiling javascript dependencies')
+
+ depjs_path = os.path.join(
+ self.workingbranch_dir,
+ 'docs/examples/assets/js/dependencies.js')
+
+ # Get the closure params from the original file
+ params = []
+ for line in open(depjs_path):
+ line = line.strip()
+ if line.startswith('// @'):
+ key, val = line.lstrip('/ @').strip().split(None, 1)
+ params.append((key.strip(), val.strip()))
+
+ # Always use the following value for the Content-type header.
+ headers = { "Content-type": "application/x-www-form-urlencoded" }
+ conn = httplib.HTTPConnection('closure-compiler.appspot.com')
+ conn.request('POST', '/compile', urllib.urlencode(params), headers)
+ response = conn.getresponse()
+ with open(depjs_path, 'w') as f:
+ f.write(
+ '// Compiled with closure-compiler on %s\n' % (datetime.now()))
+ for param in params:
+ f.write('// @%s %s\n' % param)
+
+ while not response.isclosed():
+ f.write(response.read(1024 * 10))
+
+ conn.close
+
+
+
# The available subcommands
SUBCOMMAND_HANDLERS = [
BuildApidocsCommand,
BuildReleaseCommand,
BuildTestDataCommand,
+ BuildJavascriptDependenciesCommand,
]