function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function e(a){return function(){return this[a]}}function k(a){return function(){return a}}var m,ca=ca||{},n=this;function da(a,b){for(var c=a.split("."),d=b||n,f;f=c.shift();)if(d[f])d=d[f];else return null;return d}function q(){}function r(a){a.g=function(){return a.Di||(a.Di=new a)}} function ea(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null"; else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function fa(a){return ea(a)=="array"}function ga(a){var b=ea(a);return b=="array"||b=="object"&&typeof a.length=="number"}function s(a){return typeof a=="string"}function ha(a){return typeof a=="number"}function ia(a){return ea(a)=="function"}function ja(a){a=ea(a);return a=="object"||a=="array"||a=="function"}function ka(a){return a[la]||(a[la]=++ma)} var la="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),ma=0;function na(a,b){var c=b||n;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,d);return a.apply(c,f)}}else return function(){return a.apply(c,arguments)}} function oa(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}}var pa=Date.now||function(){return+new Date};function qa(a,b){var c=b||{};for(var d in c){var f=(""+c[d]).replace(/\$/g,"$$$$");a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),f)}return a}function t(a,b){function c(){}c.prototype=b.prototype;a.b=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ra(a){for(var b=1;b":"
")} function ua(a,b){if(b)return a.replace(va,"&").replace(wa,"<").replace(xa,">").replace(ya,""");else{if(!za.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(va,"&");if(a.indexOf("<")!=-1)a=a.replace(wa,"<");if(a.indexOf(">")!=-1)a=a.replace(xa,">");if(a.indexOf('"')!=-1)a=a.replace(ya,""");return a}}var va=/&/g,wa=//g,ya=/\"/g,za=/[&<>\"]/;function Aa(a,b){return ta(a.replace(/ /g,"  "),b)} function Ba(a,b){for(var c=0,d=sa(String(a)).split("."),f=sa(String(b)).split("."),g=Math.max(d.length,f.length),h=0;c==0&&hb)return 1;return 0};var Da,Ea,Fa,Ga,Ha,Ia,Ja;function Ka(){return n.navigator?n.navigator.userAgent:null}function La(){return n.navigator}Ha=Ga=Fa=Ea=Da=false;var Ma;if(Ma=Ka()){var Na=La();Da=Ma.indexOf("Opera")==0;Ea=!Da&&Ma.indexOf("MSIE")!=-1;Ga=(Fa=!Da&&Ma.indexOf("WebKit")!=-1)&&Ma.indexOf("Mobile")!=-1;Ha=!Da&&!Fa&&Na.product=="Gecko"}var Oa=Da,u=Ea,x=Ha,y=Fa,Pa=Ga,Qa,Ra=La();Qa=Ra&&Ra.platform||"";Ia=Qa.indexOf("Mac")!=-1;Ja=Qa.indexOf("Win")!=-1; var Sa=!!La()&&(La().appVersion||"").indexOf("X11")!=-1,Ta,Ua="",Va;if(Oa&&n.opera){var Wa=n.opera.version;Ua=typeof Wa=="function"?Wa():Wa}else{if(x)Va=/rv\:([^\);]+)(\)|;)/;else if(u)Va=/MSIE\s+([^\);]+)(\)|;)/;else if(y)Va=/WebKit\/(\S+)/;if(Va){var Xa=Va.exec(Ka());Ua=Xa?Xa[1]:""}}Ta=Ua;var Ya={};function z(a){return Ya[a]||(Ya[a]=Ba(Ta,a)>=0)};function Za(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function $a(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b}function ab(a){var b=[],c=0;for(var d in a)b[c++]=d;return b}function bb(a){for(var b in a)return false;return true}function cb(a,b){var c;if(c=b in a)delete a[b];return c}function db(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}var eb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]; function fb(a){for(var b,c,d=1;d=0}function qb(a){if(!fa(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}function rb(a,b){var c=lb(a,b),d;if(d=c>=0)sb(a,c);return d}function sb(a,b){jb(a.length!=null);return A.splice.call(a,b,1).length==1}function tb(){return A.concat.apply(A,arguments)}function ub(a){if(fa(a))return tb(a);else{for(var b=[],c=0,d=a.length;c=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};Cb.prototype.e=function(){Cb.b.e.call(this);this.relatedTarget=this.currentTarget=this.target=this.Oa=null};function Gb(){}var Hb=0;m=Gb.prototype;m.key=0;m.Ic=false;m.ag=false;m.xc=function(a,b,c,d,f,g){if(ia(a))this.Dg=true;else if(a&&a.handleEvent&&ia(a.handleEvent))this.Dg=false;else throw Error("Invalid listener argument");this.Dc=a;this.Wg=b;this.src=c;this.type=d;this.capture=!!f;this.Yd=g;this.ag=false;this.key=++Hb;this.Ic=false};m.handleEvent=function(a){if(this.Dg)return this.Dc.call(this.Yd||this.src,a);return this.Dc.handleEvent.call(this.Dc,a)};var Ib;var Jb=(Ib="ScriptEngine"in n&&n.ScriptEngine()=="JScript")?n.ScriptEngineMajorVersion()+"."+n.ScriptEngineMinorVersion()+"."+n.ScriptEngineBuildVersion():"0";function Kb(a,b){this.Xb=b;this.Z=[];if(a>this.Xb)throw Error("[goog.structs.SimplePool] Initial cannot be greater than max");for(var c=0;c=0),h;Qb=function(w){h=w};if(g){Lb=function(){return i.Ra()};Mb=function(w){i.Fb(w)};Nb=function(){return j.Ra()};Ob=function(w){j.Fb(w)};Pb=function(){return l.Ra()};Rb=function(){l.Fb(c())};Sb=function(){return o.Ra()};Tb=function(w){o.Fb(w)};Ub=function(){return p.Ra()};Vb=function(w){p.Fb(w)}; var i=new Kb(0,600);i.Nb=a;var j=new Kb(0,600);j.Nb=b;var l=new Kb(0,600);l.Nb=c;var o=new Kb(0,600);o.Nb=d;var p=new Kb(0,600);p.Nb=f}else{Lb=a;Mb=q;Nb=b;Ob=q;Pb=c;Rb=q;Sb=d;Tb=q;Ub=f;Vb=q}})();var Wb={},Xb={},Yb={},$b={}; function D(a,b,c,d,f){if(b)if(fa(b)){for(var g=0;g=0;l--){var o=j[l];if((g||b==o.type)&&(h||c==o.capture)){dc(o.key);d++}}});else{a=ka(a);if(Yb[a]){a=Yb[a];for(f=a.length-1;f>=0;f--){var i=a[f];if((g||b==i.type)&&(h||c==i.capture)){dc(i.key);d++}}}}return d}function cc(a,b,c){var d=Xb;if(b in d){d=d[b];if(c in d){d=d[c];a=ka(a);if(d[a])return d[a]}}return null}var E="click",gc="keydown"; function ac(a){if(a in $b)return $b[a];return $b[a]="on"+a}function hc(a,b,c,d,f){var g=1;b=ka(b);if(a[b]){a.Ua--;a=a[b];if(a.fe)a.fe++;else a.fe=1;try{for(var h=a.length,i=0;i=0&&h.Ua;V--){l.currentTarget=p[V];g&=hc(h,p[V],d,true,l)}if(j){h=f[false];h.Ua=h.T;for(V=0;!l.$b&&V=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom};function pc(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}m=pc.prototype;m.Na=function(){return new pc(this.left,this.top,this.width,this.height)};m.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"}; m.Bg=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return true}}return false}; m.contains=function(a){return a instanceof pc?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};m.qg=function(){return new F(this.width,this.height)};var qc;function rc(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function H(a){var b=rc(a),c;c=xb(arguments,1);for(var d=0,f=0;f");c=c.join("")}c=a.createElement(c);if(d)if(s(d))c.className=d;else fa(d)?H.apply(null,[c].concat(d)):yc(c,d);b.length>2&&Dc(a,c,b,2);return c} function Dc(a,b,c,d){function f(h){if(h)b.appendChild(s(h)?a.createTextNode(h):h)}for(d=d;d0)?mb(Ec(g)?ub(g):g,f):f(g)}}function M(a){return document.createElement(a)}function xc(a){return a.compatMode=="CSS1Compat"}function Fc(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Gc(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}function Hc(a){return Ic(a.firstChild,true)}function Jc(a){return Ic(a.nextSibling,true)} function Ic(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a}function Kc(a,b){if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function J(a){return a.nodeType==9?a:a.ownerDocument||a.document} function Lc(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{Fc(a);a.appendChild(J(a).createTextNode(b))}}var Mc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Nc={IMG:" ",BR:"\n"};function Oc(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return ha(a)&&a>=0}return false} function Pc(a){if(u&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Qc(a,b,true);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a}function Qc(a,b,c){if(!(a.nodeName in Mc))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Nc)b.push(Nc[a.nodeName]);else for(a=a.firstChild;a;){Qc(a,b,c);a=a.nextSibling}} function Ec(a){if(a&&typeof a.length=="number")if(ja(a))return typeof a.item=="function"||typeof a.item=="string";else if(ia(a))return typeof a.item=="function";return false}function uc(a){this.r=a||n.document||document}m=uc.prototype;m.i=I;function Rc(a){return a.r}m.a=function(a){return s(a)?this.r.getElementById(a):a};m.d=function(){return Cc(this.r,arguments)};m.createElement=function(a){return this.r.createElement(a)};m.createTextNode=function(a){return this.r.createTextNode(a)}; function Sc(a){return xc(a.r)}function Tc(a){a=!y&&xc(a.r)?a.r.documentElement:a.r.body;return new G(a.scrollLeft,a.scrollTop)}m.appendChild=function(a,b){a.appendChild(b)};m.pg=Hc;m.contains=Kc;function N(){}t(N,Ab);m=N.prototype;m.gg=true;m.pe=null;m.Bf=ba("pe");m.addEventListener=function(a,b,c,d){D(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){bc(this,a,b,c,d)}; m.dispatchEvent=function(a){a=a;if(s(a))a=new C(a,this);else if(a instanceof C)a.target=a.target||this;else{var b=a;a=new C(a.type,this);fb(a,b)}b=1;var c,d=a.type,f=Xb;if(d in f){f=f[d];d=true in f;var g;if(d){c=[];for(g=this;g;g=g.pe)c.push(g);g=f[true];g.Ua=g.T;for(var h=c.length-1;!a.$b&&h>=0&&g.Ua;h--){a.currentTarget=c[h];b&=hc(g,c[h],a.type,true,a)&&a.vd!=false}}if(false in f){g=f[false];g.Ua=g.T;if(d)for(h=0;!a.$b&&hthis.zg){Wc(this,a);if(!this.ub){this.Rd(a);return}}}c=$c(this,b,c);b=c.x;c=c.y;if(this.ub)if(this.dispatchEvent(new Xc("beforedrag",this,a.clientX,a.clientY,a,b,c))!==false){ad(this,a,b,c,false);a.preventDefault()}}}; function $c(a,b,c){var d=Tc(I(a.r));b+=d.x-a.sd.x;c+=d.y-a.sd.y;a.sd=d;a.mc+=b;a.nc+=c;return new G(Yc(a,a.mc),Zc(a,a.nc))}m.Ui=function(a){var b=$c(this,0,0);a.clientX=this.sd.x-this.screenX;a.clientY=this.sd.x-this.screenY;ad(this,a,b.x,b.y,true)};function ad(a,b,c,d){a.Oe(c,d);a.dispatchEvent(new Xc("drag",a,b.clientX,b.clientY,b,c,d))}function Yc(a,b){var c=a.de,d=!isNaN(c.left)?c.left:null;c=!isNaN(c.width)?c.width:0;return Math.min(d!=null?d+c:Infinity,Math.max(d!=null?d:-Infinity,b))} function Zc(a,b){var c=a.de,d=!isNaN(c.top)?c.top:null;c=!isNaN(c.height)?c.height:0;return Math.min(d!=null?d+c:Infinity,Math.max(d!=null?d:-Infinity,b))}m.Oe=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};function Xc(a,b,c,d,f,g,h,i){C.call(this,a);this.clientX=c;this.clientY=d;this.uj=f;this.left=g!==undefined?g:b.mc;this.top=h!==undefined?h:b.nc;this.jg=b;this.vj=!!i}t(Xc,C);function bd(a,b){var c=J(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(c=c.defaultView.getComputedStyle(a,""))return c[b];return null}function cd(a,b){return bd(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style[b]}function dd(a){return cd(a,"position")}function ed(a,b,c){var d,f=x&&(Ia||Sa)&&z("1.9");if(b instanceof G){d=b.x;b=b.y}else{d=b;b=c}a.style.left=fd(d,f);a.style.top=fd(b,f)}function gd(a){return new G(a.offsetLeft,a.offsetTop)} function hd(a){var b=a.getBoundingClientRect();if(u){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b} function id(a){if(u)return a.offsetParent;var b=J(a),c=cd(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=cd(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return null} function jd(a){var b=new oc(0,Infinity,Infinity,0),c=I(a),d=c.r.body,f=!y&&xc(c.r)?c.r.documentElement:c.r.body,g;for(a=a;a=id(a);)if((!u||a.clientWidth!=0)&&(!y||a.clientHeight!=0||a!=d)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&cd(a,"overflow")!="visible"){var h=kd(a),i;i=a;if(x&&!z("1.9")){var j=parseFloat(bd(i,"borderLeftWidth"));if(ld(i)){var l=i.offsetWidth-i.clientWidth-j-parseFloat(bd(i,"borderRightWidth"));j+=l}i=new G(j,parseFloat(bd(i,"borderTopWidth")))}else i=new G(i.clientLeft, i.clientTop);h.x+=i.x;h.y+=i.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x);g=g||a!=f}d=f.scrollLeft;f=f.scrollTop;if(y){b.left+=d;b.top+=f}else{b.left=Math.max(b.left,d);b.top=Math.max(b.top,f)}if(!g||y){b.right+=d;b.bottom+=f}c=Ac(Bc(c.r)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null} function kd(a){var b,c=J(a),d=cd(a,"position"),f=x&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new G(0,0),h;b=c?c.nodeType==9?c:J(c):document;h=u&&!Sc(I(b))?b.body:b.documentElement;if(a==h)return g;if(a.getBoundingClientRect){b=hd(a);a=Tc(I(c));g.x=b.left+a.x;g.y=b.top+a.y}else if(c.getBoxObjectFor&&!f){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(h);g.x=b.screenX-a.screenX;g.y=b.screenY-a.screenY}else{b=a;do{g.x+=b.offsetLeft; g.y+=b.offsetTop;if(b!=a){g.x+=b.clientLeft||0;g.y+=b.clientTop||0}if(y&&dd(b)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Oa||y&&d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=id(b))&&b!=c.body&&b!=h;){g.x-=b.scrollLeft;if(!Oa||b.tagName!="TR")g.y-=b.scrollTop}}return g}function md(a,b){var c=nd(a),d=nd(b);return new G(c.x-d.x,c.y-d.y)} function nd(a){var b=new G;if(a.nodeType==1)if(a.getBoundingClientRect){var c=hd(a);b.x=c.left;b.y=c.top}else{c=Tc(I(a));a=kd(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b}function od(a,b,c){if(b instanceof F){c=b.height;b=b.width}else{if(c==undefined)throw Error("missing height argument");c=c}a.style.width=fd(b,true);a.style.height=fd(c,true)}function fd(a,b){if(typeof a=="number")a=(b?Math.round(a):a)+"px";return a} function pd(a){var b=Oa&&!z("10");if(cd(a,"display")!="none")return b?new F(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new F(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=g;c.visibility=f;return new F(b,a)} function qd(a){var b=kd(a);a=pd(a);return new pc(b.x,b.y,a.width,a.height)}function rd(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=b===""?"":"alpha(opacity="+b*100+")"}function O(a,b){a.style.display=b?"":"none"} function sd(a,b){var c=I(b),d=null;if(u){d=c.r.createStyleSheet();td(d,a)}else{var f=wc(c.r,"head",void 0,void 0)[0];if(!f){d=wc(c.r,"body",void 0,void 0)[0];f=c.d("head");d.parentNode.insertBefore(f,d)}d=c.d("style");td(d,a);c.appendChild(f,d)}return d}function td(a,b){if(u)a.cssText=b;else a[y?"innerText":"innerHTML"]=b}function ld(a){return"rtl"==cd(a,"direction")}var ud=x?"MozUserSelect":y?"WebkitUserSelect":null; function vd(a,b,c){c=!c?a.getElementsByTagName("*"):null;if(ud){b=b?"none":"";a.style[ud]=b;if(c){a=0;for(var d;d=c[a];a++)d.style[ud]=b}}else if(u||Oa){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}}function wd(a){return new F(a.offsetWidth,a.offsetHeight)} function xd(a,b){var c=Sc(I(J(a)));if(u&&(!c||!z("8"))){var d=a.style;if(c){c=yd(a,"padding");var f=zd(a);d.pixelWidth=b.width-f.left-c.left-c.right-f.right;d.pixelHeight=b.height-f.top-c.top-c.bottom-f.bottom}else{d.pixelWidth=b.width;d.pixelHeight=b.height}}else{d=a.style;if(x)d.MozBoxSizing="border-box";else if(y)d.WebkitBoxSizing="border-box";else if(Oa&&!z("9.50"))d.setProperty("box-sizing","border-box");else d.boxSizing="border-box";d.width=b.width+"px";d.height=b.height+"px"}} function Ad(a){var b=J(a),c=u&&a.currentStyle;if(c&&Sc(I(b))&&c.width!="auto"&&c.height!="auto"&&!c.boxSizing){b=Bd(a,c.width,"width","pixelWidth");a=Bd(a,c.height,"height","pixelHeight");return new F(b,a)}else{c=wd(a);b=yd(a,"padding");a=zd(a);return new F(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}} function Bd(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var f=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=f;a.runtimeStyle[c]=g;return b}}function Cd(a,b){return Bd(a,a.currentStyle?a.currentStyle[b]:null,"left","pixelLeft")} function yd(a,b){if(u){var c=Cd(a,b+"Left"),d=Cd(a,b+"Right"),f=Cd(a,b+"Top"),g=Cd(a,b+"Bottom");return new oc(f,d,g,c)}else{c=bd(a,b+"Left");d=bd(a,b+"Right");f=bd(a,b+"Top");g=bd(a,b+"Bottom");return new oc(parseFloat(f),parseFloat(d),parseFloat(g),parseFloat(c))}}var Dd={thin:2,medium:4,thick:6};function Ed(a,b){if((a.currentStyle?a.currentStyle[b+"Style"]:null)=="none")return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:null;if(c in Dd)return Dd[c];return Bd(a,c,"left","pixelLeft")} function zd(a){if(u){var b=Ed(a,"borderLeft"),c=Ed(a,"borderRight"),d=Ed(a,"borderTop");a=Ed(a,"borderBottom");return new oc(d,c,a,b)}else{b=bd(a,"borderLeftWidth");c=bd(a,"borderRightWidth");d=bd(a,"borderTopWidth");a=bd(a,"borderBottomWidth");return new oc(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}};function Fd(){}r(Fd);Fd.prototype.Pi=0;Fd.g();function P(a){this.p=a||I();this.wd=Gd}t(P,N);P.prototype.Bi=Fd.g();var Gd=null;function Hd(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}throw Error("Invalid component state");}m=P.prototype;m.vc=null;m.u=false;m.c=null;m.wd=null;m.pf=null;m.z=null;m.X=null;m.Ma=null; m.sh=false;function Id(a){return a.vc||(a.vc=":"+(a.Bi.Pi++).toString(36))}function Jd(a,b){if(a.z&&a.z.Ma){cb(a.z.Ma,a.vc);db(a.z.Ma,b,a)}a.vc=b}m.a=e("c");m.H=function(){return this.tc||(this.tc=new kc(this))};function Kd(a,b){if(a==b)throw Error("Unable to set parent component");if(b&&a.z&&a.vc&&Ld(a.z,a.vc)&&a.z!=b)throw Error("Unable to set parent component");a.z=b;P.b.Bf.call(a,b)}m.Bf=function(a){if(this.z&&this.z!=a)throw Error("Method not supported");P.b.Bf.call(this,a)};m.i=e("p"); m.d=function(){this.c=this.p.createElement("div")};m.W=function(a){Md(this,a)};function Md(a,b,c){if(a.u)throw Error("Component already rendered");a.c||a.d();b?b.insertBefore(a.c,c||null):a.p.r.body.appendChild(a.c);if(!a.z||a.z.u)a.n()}m.m=function(a){if(this.u)throw Error("Component already rendered");else if(a&&this.K(a)){this.sh=true;if(!this.p||this.p.r!=J(a))this.p=I(a);this.A(a);this.n()}else throw Error("Invalid element to decorate");};m.K=k(true);m.A=ba("c"); m.n=function(){this.u=true;Nd(this,function(a){!a.u&&a.a()&&a.n()})};m.Da=function(){Nd(this,function(a){a.u&&a.Da()});this.tc&&this.tc.ud();this.u=false};m.e=function(){P.b.e.call(this);this.u&&this.Da();if(this.tc){this.tc.w();delete this.tc}Nd(this,function(a){a.w()});!this.sh&&this.c&&Gc(this.c);this.z=this.pf=this.c=this.Ma=this.X=null};m.oa=function(a,b){this.ic(a,Q(this),b)}; m.ic=function(a,b,c){if(a.u&&(c||!this.u))throw Error("Component already rendered");if(b<0||b>Q(this))throw Error("Child component index out of bounds");if(!this.Ma||!this.X){this.Ma={};this.X=[]}if(a.z==this){this.Ma[Id(a)]=a;rb(this.X,a)}else db(this.Ma,Id(a),a);Kd(a,this);wb(this.X,b,0,a);if(a.u&&this.u&&a.z==this){c=this.L();c.insertBefore(a.a(),c.childNodes[b]||null)}else if(c){this.c||this.d();b=R(this,b+1);Md(a,this.L(),b?b.c:null)}else this.u&&!a.u&&a.c&&a.n()};m.L=e("c"); function Od(a){if(a.wd==null)a.wd=ld(a.u?a.c:a.p.r.body);return a.wd}m.Kc=function(a){if(this.u)throw Error("Component already rendered");this.wd=a};function Q(a){return a.X?a.X.length:0}function Ld(a,b){var c;if(a.Ma&&b){c=a.Ma;c=b in c?c[b]:void 0;c=c||null}else c=null;return c}function R(a,b){return a.X?a.X[b]||null:null}function Nd(a,b,c){a.X&&mb(a.X,b,c)}function Pd(a,b){return a.X&&b?lb(a.X,b):-1} m.removeChild=function(a,b){if(a){var c=s(a)?a:Id(a);a=Ld(this,c);if(c&&a){cb(this.Ma,c);rb(this.X,a);if(b){a.Da();a.c&&Gc(a.c)}Kd(a,null)}}if(!a)throw Error("Child is not in parent component");return a};function Qd(a,b){this.md=a||1;this.Fd=b||Rd;this.Le=na(this.lj,this);this.mf=pa()}t(Qd,N);Qd.prototype.enabled=false;var Rd=n.window;m=Qd.prototype;m.wa=null;m.setInterval=function(a){this.md=a;if(this.wa&&this.enabled){this.stop();this.start()}else this.wa&&this.stop()};m.lj=function(){if(this.enabled){var a=pa()-this.mf;if(a>0&&a2147483647?-1:Rd.setTimeout(a,b||0)};function Ud(a){if(typeof a.ib=="function")return a.ib();if(s(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c2*this.T&&Xd(this);return true}return false};function Xd(a){if(a.T!=a.v.length){for(var b=0,c=0;b=48&&a<=57)return true;if(a>=96&&a<=106)return true;if(a>=65&&a<=90)return true;if(y&&a==0)return true;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return true;default:return false}};function ae(a,b){if(x){a.setAttribute("role",b);a.zj=b}}function be(a,b,c){x&&a.setAttribute("aria-"+b,c)};function ce(a){this.c=a;a=u?"focusout":"blur";this.Fi=D(this.c,u?"focusin":"focus",this,!u);this.Gi=D(this.c,a,this,!u)}t(ce,N);ce.prototype.handleEvent=function(a){var b=new Cb(a.Oa);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(b)}finally{b.w()}};ce.prototype.e=function(){ce.b.e.call(this);dc(this.Fi);dc(this.Gi);delete this.c};function de(a,b,c){P.call(this,c);this.Y=a||"modal-dialog";this.Mf=!!b;this.pa=ee}t(de,P);m=de.prototype;m.Td=null;m.gi=true;m.cf=true;m.Mf=false;m.he=true;m.ig=true;m.$h=0.5;m.ye="";m.la="";m.pa=null;m.pc=null;m.ea=false;m.bi=false;m.S=null;m.O=null;m.Ja=null;m.gb=null;m.If=null;m.ob=null;m.Ca=null;m.ka=null;m.ca=function(a){this.ye=a;this.gb&&Lc(this.gb,a)};m.t=function(a){this.la=a;if(this.Ca)this.Ca.innerHTML=a};m.L=function(){this.a()||this.W();return this.Ca}; m.d=function(){fe(this);var a=this.i();this.c=a.d("div",{className:this.Y,tabIndex:0},this.Ja=a.d("div",{className:this.Y+"-title",id:Id(this)},this.gb=a.d("span",this.Y+"-title-text",this.ye),this.ob=a.d("span",this.Y+"-title-close")),this.Ca=a.d("div",this.Y+"-content"),this.ka=a.d("div",this.Y+"-buttons"),this.jh=a.d("span",{tabIndex:0}));this.If=this.Ja.id;ae(this.a(),"dialog");be(this.a(),"labelledby",this.If||"");if(this.la)this.Ca.innerHTML=this.la;O(this.ob,this.cf);O(this.a(),false);if(this.pa){a= this.pa;a.c=this.ka;a.W()}};function fe(a){if(a.Mf&&a.he&&!a.O){var b;b=a.i().d("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});a.O=b;a.O.className=a.Y+"-bg";O(a.O,false);rd(a.O,0)}else if((!a.Mf||!a.he)&&a.O){Gc(a.O);a.O=null}if(a.he&&!a.S){a.S=a.i().d("div",a.Y+"-bg");rd(a.S,a.$h);O(a.S,false)}else if(!a.he&&a.S){Gc(a.S);a.S=null}} m.W=function(a){if(this.u)throw Error("Component already rendered");this.a()||this.d();a=a||Rc(this.i()).body;ge(this,a);de.b.W.call(this,a)};function ge(a,b){a.O&&b.appendChild(a.O);a.S&&b.appendChild(a.S)}m.K=function(a){return a&&a.tagName&&a.tagName=="DIV"&&de.b.K.call(this,a)}; m.A=function(a){de.b.A.call(this,a);H(this.a(),this.Y);a=this.Y+"-content";if(this.Ca=vc(null,a,this.a())[0])this.la=this.Ca.innerHTML;else{this.Ca=this.i().d("div",a);if(this.la)this.Ca.innerHTML=this.la;this.a().appendChild(this.Ca)}a=this.Y+"-title";var b=this.Y+"-title-text",c=this.Y+"-title-close";if(this.Ja=vc(null,a,this.a())[0]){this.gb=vc(null,b,this.Ja)[0];this.ob=vc(null,c,this.Ja)[0]}else{this.Ja=this.i().d("div",a);this.a().insertBefore(this.Ja,this.Ca)}if(this.gb)this.ye=Pc(this.gb); else{this.gb=this.i().d("span",b,this.ye);this.Ja.appendChild(this.gb)}be(this.a(),"labelledby",this.If||"");if(!this.ob){this.ob=this.i().d("span",c);this.Ja.appendChild(this.ob)}O(this.ob,this.cf);a=this.Y+"-buttons";if(this.ka=vc(null,a,this.a())[0]){this.pa=new he(this.i());this.pa.m(this.ka)}else{this.ka=this.i().d("div",a);this.a().appendChild(this.ka);if(this.pa){a=this.pa;a.c=this.ka;a.W()}}fe(this);ge(this,J(this.a()).body);O(this.a(),false)}; m.n=function(){de.b.n.call(this);this.Td=new ce(Rc(this.i()));if(this.ig&&!this.pc){var a=new Uc(this.a(),this.Ja);H(this.Ja,this.Y+"-title-draggable");this.pc=a}this.H().f(this.ob,E,this.Wi).f(this.Td,"focusin",this.Ti);ae(this.a(),"dialog");this.gb.id!==""&&be(this.a(),"labelledby",this.gb.id)};m.Da=function(){this.I()&&this.l(false);this.Td.w();this.Td=null;if(this.pc){this.pc.w();this.pc=null}de.b.Da.call(this)}; m.l=function(a){if(a!=this.ea){var b=Rc(this.i()),c=(b?Bc(b):window)||window;this.u||this.W(b.body);if(a){ie(this);this.sa();this.H().f(this.a(),gc,this.me,true).f(this.a(),"keypress",this.me,true).f(c,"resize",this.Sg,true)}else this.H().ja(this.a(),gc,this.me,true).ja(this.a(),"keypress",this.me,true).ja(c,"resize",this.Sg,true);this.O&&O(this.O,a);this.S&&O(this.S,a);O(this.a(),a);a&&this.focus();if(this.ea=a)this.H().f(this.ka,E,this.Og);else{this.H().ja(this.ka,E,this.Og);this.dispatchEvent(je); this.bi&&this.w()}}};m.I=e("ea");m.focus=function(){try{this.a().focus()}catch(a){}if(this.pa){var b=this.pa.Nd;if(b)for(var c=Rc(this.i()),d=this.ka.getElementsByTagName("button"),f=0,g;g=d[f];f++)if(g.name==b){try{if(y||Oa){var h=c.createElement("input");h.style.cssText="position:fixed;width:0;height:0;left:0;top:0;";this.a().appendChild(h);h.focus();this.a().removeChild(h)}g.focus()}catch(i){}break}}}; function ie(a){a.O&&O(a.O,false);a.S&&O(a.S,false);var b=Rc(a.i()),c=Ac((b?Bc(b):window)||window||window),d=Math.max(b.body.scrollWidth,c.width);b=Math.max(b.body.scrollHeight,c.height);if(a.O){O(a.O,true);od(a.O,d,b)}if(a.S){O(a.S,true);od(a.S,d,b)}if(a.ig){c=pd(a.a());a.pc.de=new pc(0,0,d-c.width,b-c.height)}} m.sa=function(){var a=Rc(this.i()),b=(a?Bc(a):window)||window;if(dd(this.a())=="fixed")var c=a=0;else{c=Tc(this.i());a=c.x;c=c.y}var d=pd(this.a());b=Ac(b||window);a=Math.max(a+b.width/2-d.width/2,0);c=Math.max(c+b.height/2-d.height/2,0);ed(this.a(),a,c)};m.Wi=function(){if(this.cf){var a=this.pa,b=a&&a.Me;if(b)this.dispatchEvent(new ke(b,a.rc(b)))&&this.l(false);else this.l(false)}}; m.e=function(){de.b.e.call(this);if(this.S){Gc(this.S);this.S=null}if(this.O){Gc(this.O);this.O=null}this.jh=this.ka=this.ob=null};function S(a,b){a.pa=b;if(a.ka)if(a.pa){var c=a.pa;c.c=a.ka;c.W()}else a.ka.innerHTML=""}m.Og=function(a){a:{for(a=a.target;a!=null&&a!=this.ka;){if(a.tagName=="BUTTON"){a=a;break a}a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;this.dispatchEvent(new ke(a,this.pa.rc(a)))&&this.l(false)}}; m.me=function(a){var b=false,c=false,d=this.pa,f=a.target;if(a.type==gc)if(this.gi&&a.keyCode==27){var g=d&&d.Me;f=f.tagName=="SELECT"&&!f.disabled;if(g&&!f){c=true;b=this.dispatchEvent(new ke(g,d.rc(g)))}else f||(b=true)}else{if(a.keyCode==9&&a.shiftKey&&f==this.a())c=true}else if(a.keyCode==13){if(f.tagName=="BUTTON")g=f.name;else if(d){var h=d.Nd,i;if(i=h)a:{i=d.c.getElementsByTagName("BUTTON");for(var j=0,l;l=i[j];j++)if(l.name==h||l.id==h){i=l;break a}i=null}i=i;f=(f.tagName=="TEXTAREA"||f.tagName== "SELECT")&&!f.disabled;if(i&&!i.disabled&&!f)g=h}if(g){c=true;b=this.dispatchEvent(new ke(g,String(d.rc(g))))}}if(b||c){a.stopPropagation();a.preventDefault()}b&&this.l(false)};m.Sg=function(){ie(this)};m.Ti=function(a){this.jh==a.target&&Td(this.ii,0,this)};m.ii=function(){u&&Rc(this.i()).body.focus();this.a().focus()};function ke(a,b){this.type=le;this.key=a;this.caption=b}t(ke,C);var le="dialogselect",je="afterhide";function he(a){this.p=a||I();Wd.call(this)}var ee,me,ne;t(he,Wd);m=he.prototype; m.Y="goog-buttonset";m.Nd=null;m.c=null;m.Me=null;m.J=function(a,b,c,d){Wd.prototype.J.call(this,a,b);if(c)this.Nd=a;if(d)this.Me=a;return this};m.W=function(){if(this.c){this.c.innerHTML="";var a=I(this.c);Vd(this,function(b,c){var d=a.d("button",{name:c},b);if(c==this.Nd)d.className=this.Y+"-default";this.c.appendChild(d)},this)}}; m.m=function(a){if(!(!a||a.nodeType!=1)){this.c=a;a=this.c.getElementsByTagName("button");for(var b=0,c,d,f;c=a[b];b++){d=c.name||c.id;f=Pc(c)||c.value;if(d){var g=b==0;this.J(d,f,g,c.name==oe);g&&H(c,this.Y+"-default")}}}};var oe="cancel",pe=qa("OK"),qe=qa("Cancel"),re=qa("Yes"),se=qa("No"),te=qa("Save"),ue=qa("Continue");me=(new he).J("ok",pe,true,true);ee=(new he).J("ok",pe,true).J(oe,qe,false,true);ne=(new he).J("yes",re,true).J("no",se,false,true); (new he).J("yes",re).J("no",se,true).J(oe,qe,false,true);(new he).J("continue",ue).J("save",te).J(oe,qe,true,true);function ve(a,b,c,d){P.call(this,d);this.C=c;this.cd=a;this.oa(a);this.xd=b;this.oa(b)}t(ve,P);m=ve.prototype;m.cc=null;m.fa=null;m.Jc=null;m.uc=5;m.ff=null;m.Zg=null;m.bd=null;m.fg=true;m.ab=null;m.d=function(){var a=this.i(),b=a.d("div","goog-splitpane-first-container"),c=a.d("div","goog-splitpane-second-container"),d=a.d("div","goog-splitpane-handle");this.c=a.d("div","goog-splitpane",b,c,d);this.fa=b;this.Jc=c;this.Ba=d;we(this);xe(this)}; m.K=function(a){var b="goog-splitpane-first-container";b=vc(null,b,a)[0];if(!b)return false;this.fa=b;b="goog-splitpane-second-container";b=vc(null,b,a)[0];if(!b)return false;this.Jc=b;b="goog-splitpane-handle";a=vc(null,b,a)[0];if(!a)return false;this.Ba=a;return true};m.A=function(a){ve.b.A.call(this,a);we(this);a=wd(a);ye(this,new F(a.width,a.height));xe(this)}; function xe(a){var b=a.i();a.cd.a()||a.cd.d();b.appendChild(a.fa,a.cd.a());a.xd.a()||a.xd.d();b.appendChild(a.Jc,a.xd.a());a.cc=new Uc(a.Ba,a.Ba);a.fa.style.position="absolute";a.Jc.style.position="absolute";a=a.Ba.style;a.position="absolute";a.overflow="hidden";a.zIndex=2}m.n=function(){ve.b.n.call(this);var a=this.a();if(dd(a)=="static")a.style.position="relative";this.H().f(this.Ba,"dblclick",this.oi).f(this.cc,"start",this.qi).f(this.cc,"drag",this.ri).f(this.cc,"end",this.pi);ze(this,this.ff)}; function Ae(a){return a.C=="vertical"}function we(a){if(Ae(a)){a.Ba.style.height=a.uc+"px";H(a.Ba,"goog-splitpane-handle-vertical")}else{a.Ba.style.width=a.uc+"px";H(a.Ba,"goog-splitpane-handle-horizontal")}} m.Cd=function(a){if(this.C!=a){this.C=a;a=Ae(this);if(this.u){Ae(this)?tc(this.Ba,"goog-splitpane-handle-horizontal","goog-splitpane-handle-vertical"):tc(this.Ba,"goog-splitpane-handle-vertical","goog-splitpane-handle-horizontal");if(ha(this.bd)){var b=wd(this.a());ze(this,this.bd*(a?b.height/b.width:b.width/b.height))}else ze(this)}}};function Be(a,b,c){ed(b,c.left,c.top);xd(b,new F(Math.max(c.width,0),Math.max(c.height,0)))} function ze(a,b){var c=wd(a.a()),d=Ae(a),f=ha(b)?b:ha(a.bd)?a.bd:Math.floor((d?c.height:c.width)/2);a.bd=f;var g,h,i,j,l,o,p;if(d){f=f;i=d=c.width;j=a.uc;h=c.height-f-j;g=c.width;p=0+f;o=0;l=p+j;c=0}else{d=f;f=c.height;i=a.uc;j=c.height;g=c.width-d-i;h=c.height;o=0+d;p=0;c=o+i;l=0}Be(a,a.fa,new pc(0,0,d,f));typeof a.cd.xf=="function"&&a.cd.xf(new F(d,f));Be(a,a.Ba,new pc(o,p,i,j));Be(a,a.Jc,new pc(c,l,g,h));typeof a.xd.xf=="function"&&a.xd.xf(new F(g,h));a.dispatchEvent("change")} function ye(a,b){xd(a.a(),b);a.ab&&xd(a.ab,b);ze(a)} m.qi=function(){if(!this.ab){var a="position: relative";if(u)a+=";background-color: #000;filter: Alpha(Opacity=0)";this.ab=this.i().d("div",{style:a});this.i().appendChild(this.a(),this.ab)}this.ab.style.zIndex=1;xd(this.ab,wd(this.a()));var b=gd(this.fa);var c=a=0,d=b.x;b=b.y;var f=wd(this.fa),g=Ad(this.fa),h=Ad(this.Jc);if(Ae(this)){c=g.height+h.height;b+=f.height-g.height}else{a=g.width+h.width;d+=f.width-g.width}this.cc.de=new pc(d,b,a,c)||new pc(NaN,NaN,NaN,NaN)}; m.ri=function(a){if(this.fg)Ae(this)?ze(this,a.top-gd(this.fa).y):ze(this,a.left-gd(this.fa).x)};m.pi=function(a){this.ab.style.zIndex=-1;this.fg||(Ae(this)?ze(this,a.top-gd(this.fa).y):ze(this,a.left-gd(this.fa).x))};m.oi=function(){var a=md(this.Ba,this.fa),b=wd(this.fa),c=Ad(this.fa),d=Ae(this);if(d){b=b.height-c.height;a=a.y}else{b=b.width-c.width;a=a.x}if(b==a)ze(this,this.Zg);else{this.Zg=d?wd(this.fa).height:wd(this.fa).width;ze(this,b)}}; m.e=function(){ve.b.e.call(this);this.cc.w();this.cc=null;Gc(this.ab);this.ab=null};function Ce(){}var De;r(Ce);function Ee(a,b){var c=new a;c.k=function(){return b};return c}m=Ce.prototype;m.Qa=aa();m.d=function(a){return a.i().d("div",this.sc(a).join(" "),a.la)};m.L=function(a){return a};m.ad=function(a,b,c){if(a=a.a?a.a():a)if(u&&!z("7")){var d=Fe(this,rc(a),b);d.push(b);oa(c?H:sc,a).apply(null,d)}else c?H(a,b):sc(a,b)};m.K=k(true); m.m=function(a,b){b.id&&Jd(a,b.id);var c=this.L(b);if(c&&c.firstChild)Ge(a,c.firstChild.nextSibling?ub(c.childNodes):c.firstChild);else a.la=null;var d=0,f=this.k(),g=this.k(),h=false,i=false;c=false;var j=rc(b);mb(j,function(p){if(!h&&p==f){h=true;if(g==f)i=true}else if(!i&&p==g)i=true;else d|=this.Ve(p)},this);a.o=d;if(!h){j.push(f);if(g==f)i=true}i||j.push(g);var l=a.Pa;l&&j.push.apply(j,l);if(u&&!z("7")){var o=Fe(this,j);if(o.length>0){j.push.apply(j,o);c=true}}if(!h||!i||l||c)b.className=j.join(" "); return b};m.yc=function(a){Od(a)&&this.Kc(a.a(),true);a.B()&&this.Hb(a,a.I())};m.yd=function(a,b){vd(a,!b,!u&&!Oa)};m.Kc=function(a,b){this.ad(a,this.k()+"-rtl",b)};m.Ab=function(a){var b;if(a.da&32&&(b=a.U()))return Oc(b);return false};m.Hb=function(a,b){var c;if(a.da&32&&(c=a.U())){if(!b&&a.o&32){try{c.blur()}catch(d){}a.o&32&&a.Sb(null)}if(Oc(c)!=b){c=c;if(b)c.tabIndex=0;else c.removeAttribute("tabIndex")}}};m.l=function(a,b){O(a,b)}; m.Aa=function(a,b,c){var d=a.a();if(d){var f=this.ed(b);f&&this.ad(a,f,c);this.Sc(d,b,c)}};m.Sc=function(a,b,c){if(x){De||(De=gb(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));(b=De[b])&&be(a,b,c)}};m.t=function(a,b){var c=this.L(a);if(c){Fc(c);if(b)if(s(b))Lc(c,b);else{var d=function(f){if(f){var g=J(c);c.appendChild(s(f)?g.createTextNode(f):f)}};if(fa(b))mb(b,d);else ga(b)&&!("nodeType"in b)?mb(ub(b),d):d(b)}}};m.U=function(a){return a.a()};m.k=k("goog-control"); m.sc=function(a){var b=this.k(),c=[b],d=this.k();d!=b&&c.push(d);b=a.o;for(d=[];b;){var f=b&-b;d.push(this.ed(f));b&=~f}c.push.apply(c,d);(a=a.Pa)&&c.push.apply(c,a);u&&!z("7")&&c.push.apply(c,Fe(this,c));return c};function Fe(a,b,c){var d=[];if(c)b=b.concat([c]);mb([],function(f){if(pb(f,oa(B,b))&&(!c||B(f,c)))d.push(f.join("_"))});return d}m.ed=function(a){this.Kd||He(this);return this.Kd[a]}; m.Ve=function(a){if(!this.ih){this.Kd||He(this);var b=this.Kd,c={};for(var d in b)c[b[d]]=d;this.ih=c}a=parseInt(this.ih[a],10);return isNaN(a)?0:a};function He(a){var b=a.k();a.Kd=gb(1,b+"-disabled",2,b+"-hover",4,b+"-active",8,b+"-selected",16,b+"-checked",32,b+"-focused",64,b+"-open")};function Ie(a,b){if(!a)throw Error("Invalid class name "+a);if(!ia(b))throw Error("Invalid decorator function "+b);Je[a]=b}function Ke(a){for(var b=rc(a),c=0,d=b.length;c=0&&b.charCode<63232&&$d(c)?b.charCode:0}else if(Oa){c=this.Bb;d=$d(c)?b.keyCode:0}else{c=b.keyCode||this.Bb;d=b.charCode||0;if(Ia&&d==63&&!c)c=191}var f=c,g=b.keyIdentifier;if(c)if(c>=63232&&c in Pe)f=Pe[c];else{if(c==25&&a.shiftKey)f=9}else if(g&&g in Qe)f=Qe[g];a=f==this.Db;this.Db=f;b=new Te(f,d,a,b);try{this.dispatchEvent(b)}finally{b.w()}}; m.a=e("c");function Oe(a,b,c){a.be&&a.detach();a.c=b;a.ae=D(a.c,"keypress",a,c);a.jf=D(a.c,gc,a.Ye,c,a);a.be=D(a.c,"keyup",a.si,c,a)}m.detach=function(){if(this.ae){dc(this.ae);dc(this.jf);dc(this.be);this.be=this.jf=this.ae=null}this.c=null;this.Bb=this.Db=-1};m.e=function(){Ne.b.e.call(this);this.detach()};function Te(a,b,c,d){d&&this.xc(d,void 0);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}t(Te,Cb);function T(a,b,c){P.call(this,c);if(!(b=b)){b=this.constructor;for(var d;b;){d=ka(b);if(d=Le[d])break;b=b.b?b.b.constructor:null}b=d?ia(d.g)?d.g():new d:null}this.h=b;this.la=a}t(T,P);m=T.prototype;m.la=null;m.o=0;m.da=39;m.Zf=255;m.Ff=0;m.ea=true;m.Pa=null;m.Xd=true;m.Id=false;function Ue(a,b){a.u&&b!=a.Xd&&Ve(a,b);a.Xd=b}m.U=function(){return this.h.U(this)};m.Ud=function(){return this.ha||(this.ha=new Ne)}; m.ad=function(a,b){if(b){if(a){if(this.Pa)B(this.Pa,a)||this.Pa.push(a);else this.Pa=[a];this.h.ad(this,a,true)}}else if(a&&this.Pa){rb(this.Pa,a);if(this.Pa.length==0)this.Pa=null;this.h.ad(this,a,false)}};m.d=function(){var a=this.h.d(this);this.c=a;if(x){var b=this.h.Qa();b&&ae(a,b)}this.Id||this.h.yd(a,false);this.I()||this.h.l(a,false)};m.L=function(){return this.h.L(this.a())};m.K=function(a){return this.h.K(a)}; m.A=function(a){this.c=a=this.h.m(this,a);if(x){var b=this.h.Qa();b&&ae(a,b)}this.Id||this.h.yd(a,false);this.ea=a.style.display!="none"};m.n=function(){T.b.n.call(this);this.h.yc(this);if(this.da&-2){this.Xd&&Ve(this,true);if(this.da&32){var a=this.U();if(a){var b=this.Ud();Oe(b,a);this.H().f(b,"key",this.jb).f(a,"focus",this.Wd).f(a,"blur",this.Sb)}}}}; function Ve(a,b){var c=a.H(),d=a.a();if(b){c.f(d,"mouseover",a.af).f(d,"mousedown",a.Ub).f(d,"mouseup",a.kd).f(d,"mouseout",a.$e);u&&c.f(d,"dblclick",a.tg)}else{c.ja(d,"mouseover",a.af).ja(d,"mousedown",a.Ub).ja(d,"mouseup",a.kd).ja(d,"mouseout",a.$e);u&&c.ja(d,"dblclick",a.tg)}}m.Da=function(){T.b.Da.call(this);this.ha&&this.ha.detach();this.I()&&this.B()&&this.h.Hb(this,false)};m.e=function(){T.b.e.call(this);if(this.ha){this.ha.w();delete this.ha}delete this.h;this.Pa=this.la=null}; m.t=function(a){this.h.t(this.a(),a);this.la=a};function Ge(a,b){a.la=b}function We(a,b){var c=a.la;if(!c||s(c))return c;return(c=fa(c)?nb(c,b).join(""):Pc(c))&&sa(c)}m.dd=function(){return We(this,Pc)};m.Kc=function(a){T.b.Kc.call(this,a);var b=this.a();b&&this.h.Kc(b,a)};m.yd=function(a){this.Id=a;var b=this.a();b&&this.h.yd(b,a)};m.I=e("ea");m.l=function(a,b){if(b||this.ea!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.h.l(c,a);this.B()&&this.h.Hb(this,a);this.ea=a;return true}return false}; m.B=function(){return!!!(this.o&1)};m.M=function(a){var b=this.z;if(!(b&&typeof b.B=="function"&&!b.B())&&Xe(this,1,!a)){if(!a){this.setActive(false);this.fb(false)}this.I()&&this.h.Hb(this,a);this.Aa(1,!a)}};m.fb=function(a){Xe(this,2,a)&&this.Aa(2,a)};m.zc=function(){return!!(this.o&4)};m.setActive=function(a){Xe(this,4,a)&&this.Aa(4,a)};m.nd=function(){return!!(this.o&8)};m.Ef=function(a){Xe(this,8,a)&&this.Aa(8,a)};m.Ac=function(){return!!(this.o&16)}; m.zd=function(a){Xe(this,16,a)&&this.Aa(16,a)};m.N=function(a){Xe(this,64,a)&&this.Aa(64,a)};m.Aa=function(a,b){if(this.da&a&&b!=!!(this.o&a)){this.h.Aa(this,a,b);this.o=b?this.o|a:this.o&~a}};function Ye(a,b,c){if(a.u&&a.o&b&&!c)throw Error("Component already rendered");!c&&a.o&b&&a.Aa(b,false);a.da=c?a.da|b:a.da&~b}function Ze(a,b){return!!(a.Zf&b)&&!!(a.da&b)}function Xe(a,b,c){return!!(a.da&b)&&!!(a.o&b)!=c&&(!(a.Ff&b)||a.dispatchEvent(Hd(b,c)))&&!a.Pd} m.af=function(a){!$e(a,this.a())&&this.dispatchEvent("enter")&&this.B()&&Ze(this,2)&&this.fb(true)};m.$e=function(a){if(!$e(a,this.a())&&this.dispatchEvent("leave")){Ze(this,4)&&this.setActive(false);Ze(this,2)&&this.fb(false)}};function $e(a,b){return!!a.relatedTarget&&Kc(b,a.relatedTarget)}m.Ub=function(a){if(this.B()){Ze(this,2)&&this.fb(true);if(Eb(a,0)){Ze(this,4)&&this.setActive(true);this.h.Ab(this)&&this.U().focus()}}!this.Id&&Eb(a,0)&&a.preventDefault()}; m.kd=function(a){if(this.B()){Ze(this,2)&&this.fb(true);this.zc()&&this.Yb(a)&&Ze(this,4)&&this.setActive(false)}};m.tg=function(a){this.B()&&this.Yb(a)};m.Yb=function(a){Ze(this,16)&&this.zd(!this.Ac());Ze(this,8)&&this.Ef(true);Ze(this,64)&&this.N(!!!(this.o&64));var b=new C("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};m.Wd=function(){Ze(this,32)&&Xe(this,32,true)&&this.Aa(32,true)}; m.Sb=function(){Ze(this,4)&&this.setActive(false);Ze(this,32)&&Xe(this,32,false)&&this.Aa(32,false)};m.jb=function(a){if(this.I()&&this.B()&&this.Tb(a)){a.preventDefault();a.stopPropagation();return true}return false};m.Tb=function(a){return a.keyCode==13&&this.Yb(a)};if(!ia(T))throw Error("Invalid component class "+T);if(!ia(Ce))throw Error("Invalid renderer class "+Ce);var af=ka(T);Le[af]=Ce;Ie("goog-control",function(){return new T(null)});function bf(){}t(bf,Ce);r(bf);bf.prototype.d=function(a){return a.i().d("div",this.k())};bf.prototype.m=function(a,b){if(b.tagName=="HR"){var c=b;b=this.d(a);c.parentNode&&c.parentNode.insertBefore(b,c);Gc(c)}else H(b,this.k());return b};bf.prototype.t=aa();bf.prototype.k=k("goog-menuseparator");function cf(a,b){T.call(this,null,a||bf.g(),b);Ye(this,1,false);Ye(this,2,false);Ye(this,4,false);Ye(this,32,false);this.o=1}t(cf,T);cf.prototype.n=function(){cf.b.n.call(this);ae(this.a(),"separator")};Ie("goog-menuseparator",function(){return new cf});function df(){}r(df);m=df.prototype;m.Qa=aa();function ef(a,b,c){if(b)b.tabIndex=c?0:-1}m.d=function(a){return a.i().d("div",this.sc(a).join(" "))};m.L=function(a){return a};m.K=function(a){return a.tagName=="DIV"};m.m=function(a,b){b.id&&Jd(a,b.id);var c=this.k(),d=false,f=rc(b);f&&mb(f,function(g){if(g==c)d=true;else if(g)if(g==c+"-disabled")a.M(false);else if(g==c+"-horizontal")a.Cd(ff);else g==c+"-vertical"&&a.Cd(gf)},this);d||H(b,c);hf(this,a,b);return b}; function hf(a,b,c,d){if(c){d=d||c.firstChild;for(var f;d&&d.parentNode==c;){f=d.nextSibling;if(d.nodeType==1){var g=a.fd(d);if(g){g.c=d;b.B()||g.M(false);b.oa(g);g.m(d)}}else if(!d.nodeValue||sa(d.nodeValue)=="")c.removeChild(d);d=f}}}m.fd=function(a){return Ke(a)};m.yc=function(a){a=a.a();vd(a,true,x);if(u)a.hideFocus=true;var b=this.Qa();b&&ae(a,b)};m.U=function(a){return a.a()};m.k=k("goog-container"); m.sc=function(a){var b=this.k(),c=[b,a.C==ff?b+"-horizontal":b+"-vertical"];a.B()||c.push(b+"-disabled");return c};m.og=function(){return gf};function U(a,b,c){P.call(this,c);this.h=b||df.g();this.C=a||this.h.og()}t(U,P);var ff="horizontal",gf="vertical";m=U.prototype;m.Eg=null;m.ha=null;m.h=null;m.C=null;m.ea=true;m.Q=true;m.Te=true;m.ga=-1;m.V=null;m.mb=false;m.Wh=false;m.Xi=true;m.sb=null;m.U=function(){return this.Eg||this.h.U(this)};m.Ud=function(){return this.ha||(this.ha=new Ne(this.U()))};m.d=function(){this.c=this.h.d(this)};m.L=function(){return this.h.L(this.a())};m.K=function(a){return this.h.K(a)}; m.A=function(a){this.c=this.h.m(this,a);if(a.style.display=="none")this.ea=false};m.n=function(){U.b.n.call(this);Nd(this,function(b){b.u&&jf(this,b)},this);var a=this.a();this.h.yc(this);this.l(this.ea,true);this.H().f(this,"enter",this.We).f(this,"highlight",this.Xe).f(this,"unhighlight",this.bf).f(this,"open",this.wi).f(this,"close",this.li).f(a,"mousedown",this.Ub).f(J(a),"mouseup",this.ni).f(a,["mousedown","mouseup","mouseover","mouseout"],this.ki);this.Ab()&&kf(this,true)}; function kf(a,b){var c=a.H(),d=a.U();b?c.f(d,"focus",a.Wd).f(d,"blur",a.Sb).f(a.Ud(),"key",a.jb):c.ja(d,"focus",a.Wd).ja(d,"blur",a.Sb).ja(a.Ud(),"key",a.jb)}m.Da=function(){lf(this,-1);this.V&&this.V.N(false);this.mb=false;U.b.Da.call(this)};m.e=function(){U.b.e.call(this);if(this.ha){this.ha.w();this.ha=null}this.h=this.V=this.sb=null};m.We=k(true); m.Xe=function(a){var b=Pd(this,a.target);if(b>-1&&b!=this.ga){var c=R(this,this.ga);c&&c.fb(false);this.ga=b;c=R(this,this.ga);this.mb&&c.setActive(true);if(this.Xi&&this.V&&c!=this.V)c.da&64?c.N(true):this.V.N(false)}be(this.a(),"activedescendant",a.target.a().id)};m.bf=function(a){if(a.target==R(this,this.ga))this.ga=-1;be(this.a(),"activedescendant","")};m.wi=function(a){if((a=a.target)&&a!=this.V&&a.z==this){this.V&&this.V.N(false);this.V=a}};m.li=function(a){if(a.target==this.V)this.V=null}; m.Ub=function(a){if(this.Q)this.mb=true;var b=this.U(),c;a:{if(b)if((c=b.getAttributeNode("tabindex"))&&c.specified){c=b.tabIndex;c=ha(c)&&c>=0;break a}c=false}c?b.focus():a.preventDefault()};m.ni=function(){this.mb=false}; m.ki=function(a){var b;a:{b=a.target;if(this.sb)for(var c=this.a();b&&b.parentNode&&b!=c;){var d=b.id;if(d in this.sb){b=this.sb[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.Ub(a);break;case "mouseup":b.kd(a);break;case "mouseover":b.af(a);break;case "mouseout":b.$e(a);break}};m.Wd=aa();m.Sb=function(){lf(this,-1);this.mb=false;this.V&&this.V.N(false)};m.jb=function(a){if(this.B()&&this.I()&&(Q(this)!=0||this.Eg)&&this.Tb(a)){a.preventDefault();a.stopPropagation();return true}return false}; m.Tb=function(a){var b=R(this,this.ga);if(b&&typeof b.jb=="function"&&b.jb(a))return true;if(this.V&&this.V!=b&&typeof this.V.jb=="function"&&this.V.jb(a))return true;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return false;switch(a.keyCode){case 27:if(this.Ab())this.U().blur();else return false;break;case 36:mf(this);break;case 35:nf(this);break;case 38:if(this.C==gf)of(this);else return false;break;case 37:if(this.C==ff)Od(this)?pf(this):of(this);else return false;break;case 40:if(this.C==gf)pf(this); else return false;break;case 39:if(this.C==ff)Od(this)?of(this):pf(this);else return false;break;default:return false}return true};function jf(a,b){var c=b.a();c=c.id||(c.id=Id(b));if(!a.sb)a.sb={};a.sb[c]=b}m.oa=function(a,b){U.b.oa.call(this,a,b)};m.ic=function(a,b,c){a.Ff|=2;a.Ff|=64;if(this.Ab()||!this.Wh)Ye(a,32,false);Ue(a,false);U.b.ic.call(this,a,b,c);c&&this.u&&jf(this,a);b<=this.ga&&this.ga++}; m.removeChild=function(a,b){if(a=s(a)?Ld(this,a):a){var c=Pd(this,a);if(c!=-1)if(c==this.ga)a.fb(false);else c-1&&R(a,a.ga).fb(false)}m.fb=function(a){lf(this,Pd(this,a))}; function mf(a){qf(a,function(b,c){return(b+1)%c},Q(a)-1)}function nf(a){qf(a,function(b,c){b--;return b<0?c-1:b},0)}function pf(a){qf(a,function(b,c){return(b+1)%c},a.ga)}function of(a){qf(a,function(b,c){b--;return b<0?c-1:b},a.ga)}function qf(a,b,c){c=c<0?Pd(a,a.V):c;var d=Q(a);c=b.call(a,c,d);for(var f=0;f<=d;){var g=R(a,c);if(g&&a.bg(g)){lf(a,c);return true}f++;c=b.call(a,c,d)}return false}m.bg=function(a){return a.I()&&a.B()&&!!(a.da&2)};var W={};function rf(){}rf.prototype.id=q;rf.prototype.Ld=function(a){if(this.id()>a.id())return 1;else if(this.id()a.name())return 1;else if(this.name()0&&c.push(", ");var g;g=d[f];switch(typeof g){case "object":g=g?"object":"null";break;case "string":g=g;break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=Cf(g))?g:"[fn]";break;case "undefined":default:g=typeof g;break}if(g.length>40)g=g.substr(0,40)+"...";c.push(g)}b.push(a);c.push(")\n");try{c.push(Bf(a.caller, b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}function Cf(a){a=String(a);if(!Df[a]){var b=/function ([^\(]+)/.exec(a);Df[a]=b?b[1]:"[Anonymous]"}return Df[a]}var Df={};function Ef(a,b,c,d,f){this.reset(a,b,c,d,f)}Ef.prototype.fj=0;Ef.prototype.Se=null;Ef.prototype.Re=null;var Ff=0;Ef.prototype.reset=function(a,b,c,d,f){this.fj=typeof f=="number"?f:Ff++;this.kh=d||pa();this.Cc=a;this.Ni=b;this.Hi=c;delete this.Se;delete this.Re};Ef.prototype.Af=ba("Cc");function Gf(a){this.Oi=a}Gf.prototype.z=null;Gf.prototype.Cc=null;Gf.prototype.X=null;Gf.prototype.ld=null;function Hf(a,b){this.name=a;this.value=b}Hf.prototype.toString=e("name");var If=new Hf("SHOUT",1200),Jf=new Hf("SEVERE",1E3),Kf=new Hf("WARNING",900),Lf=new Hf("INFO",800),Mf=new Hf("CONFIG",700),Nf=new Hf("FINE",500),Of=new Hf("FINEST",300),Pf=new Hf("ALL",0);m=Gf.prototype;m.Af=ba("Cc"); function Qf(a){if(a.Cc)return a.Cc;if(a.z)return Qf(a.z);kb("Root logger has no level set.");return null}m.log=function(a,b,c){if(a.value>=Qf(this).value){a=this.ji(a,b,c);for(b=this;b;){c=b;var d=a;if(c.ld)for(var f=0,g=void 0;g=c.ld[f];f++)g(d);b=b.z}}}; m.ji=function(a,b,c){var d=new Ef(a,String(b),this.Oi);if(c){d.Se=c;var f;var g=arguments.callee.caller;try{var h,i=da("window.location.href");h=typeof c=="string"?{message:c,name:"Unknown error",lineNumber:"Not available",fileName:i,stack:"Not available"}:!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:c.lineNumber||c.xj||"Not available",fileName:c.fileName||c.filename||c.sourceURL||i,stack:c.stack||"Not available"}:c;f="Message: "+ua(h.message)+'\nUrl: '+h.fileName+"\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+ua(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ua(Af(g)+"-> ")}catch(j){f="Exception trying to expose exception! You win, we lose. "+j}d.Re=f}return d};m.info=function(a,b){this.log(Lf,a,b)};function Rf(a,b,c){a.log(Nf,b,c)}m.Dd=ba("z");var Sf={},Tf=null;function Uf(){if(!Tf){Tf=new Gf("");Sf[""]=Tf;Tf.Af(Mf)}}function Vf(){Uf();return Tf} function Wf(a){Uf();var b;if(!(b=Sf[a])){b=new Gf(a);var c=a.lastIndexOf("."),d=a.substr(0,c);c=a.substr(c+1);d=Wf(d);if(!d.X)d.X={};d.X[c]=b;b.Dd(d);b=Sf[a]=b}return b};function Xf(){if(x){this.Mb={};this.Ee={};this.we=[]}}Xf.prototype.aa=Wf("goog.net.xhrMonitor");Xf.prototype.Q=x;Xf.prototype.M=function(a){this.Q=x&&a};function Yf(a,b){if(a.Q){var c=s(b)?b:ja(b)?ka(b):"";a.aa.log(Of,"Pushing context: "+b+" ("+c+")",void 0);a.we.push(c)}}function Zf(a){if(a.Q){var b=a.we.pop();a.aa.log(Of,"Popping context: "+b,void 0);$f(a,b)}} function ag(a,b){if(a.Q){var c=ka(b);Rf(a.aa,"Opening XHR : "+c);for(var d=0;d0){Rf(this.aa,lg(this,"Will abort after "+this.xe+"ms if incomplete"));this.ec=Rd.setTimeout(na(this.mj,this),this.xe)}Rf(this.aa,lg(this,"Sending request"));this.Zd=true;this.F.send(a);this.Zd= false}catch(h){Rf(this.aa,lg(this,"Send error: "+h.message));mg(this,5,h)}};m.dispatchEvent=function(a){if(this.F){Yf(cg,this.F);try{return kg.b.dispatchEvent.call(this,a)}finally{Zf(cg)}}else return kg.b.dispatchEvent.call(this,a)};m.mj=function(){if(typeof ca!="undefined")if(this.F){this.Cb="Timed out after "+this.xe+"ms, aborting";this.od=8;Rf(this.aa,lg(this,this.Cb));this.dispatchEvent("timeout");this.abort(8)}}; function mg(a,b,c){a.hb=false;if(a.F){a.Vb=true;a.F.abort();a.Vb=false}a.Cb=c;a.od=b;ng(a);og(a)}function ng(a){if(!a.Qe){a.Qe=true;a.dispatchEvent("complete");a.dispatchEvent("error")}}m.abort=function(a){if(this.F){Rf(this.aa,lg(this,"Aborting"));this.hb=false;this.Vb=true;this.F.abort();this.Vb=false;this.od=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");og(this)}};m.e=function(){if(this.F){if(this.hb){this.hb=false;this.Vb=true;this.F.abort();this.Vb=false}og(this,true)}kg.b.e.call(this)}; m.Rg=function(){!this.ef&&!this.Zd&&!this.Vb?this.tf():pg(this)};m.tf=function(){pg(this)}; function pg(a){if(a.hb)if(typeof ca!="undefined")if(a.De[1]&&qg(a)==4&&rg(a)==2)Rf(a.aa,lg(a,"Local request error detected and ignored"));else if(a.Zd&&qg(a)==4)Rd.setTimeout(na(a.Rg,a),0);else{a.dispatchEvent("readystatechange");if(qg(a)==4){Rf(a.aa,lg(a,"Request complete"));a.hb=false;var b;a:switch(rg(a)){case 0:case 200:case 204:case 304:b=true;break a;default:b=false;break a}if(b){a.dispatchEvent("complete");a.dispatchEvent("success")}else{a.od=6;var c;try{c=qg(a)>2?a.F.statusText:""}catch(d){Rf(a.aa, "Can not get status: "+d.message);c=""}a.Cb=c+" ["+rg(a)+"]";ng(a)}og(a)}}}function og(a,b){if(a.F){var c=a.F,d=a.De[0]?q:null;a.F=null;a.De=null;if(a.ec){Rd.clearTimeout(a.ec);a.ec=null}if(!b){Yf(cg,c);a.dispatchEvent("ready");Zf(cg)}if(cg.Q){var f=ka(c);Rf(cg.aa,"Closing XHR : "+f);delete cg.Ee[f];for(var g in cg.Mb){rb(cg.Mb[g],f);cg.Mb[g].length==0&&delete cg.Mb[g]}}try{c.onreadystatechange=d}catch(h){a.aa.log(Jf,"Problem encountered resetting onreadystatechange: "+h.message,void 0)}}}m.zc=e("hb"); function qg(a){return a.F?a.F.readyState:0}function rg(a){try{return qg(a)>2?a.F.status:-1}catch(b){a.aa.log(Kf,"Can not get status: "+b.message,void 0);return-1}} function sg(a,b){if(a.F){var c=a.F.responseText;if(b&&c.indexOf(b)==0)c=c.substring(b.length);var d;a:{c=String(c);if(/^\s*$/.test(c)?false:/^[\],:{}\s\u2028\u2029]*$/.test(c.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{d=eval("("+c+")");break a}catch(f){}throw Error("Invalid JSON string: "+c);}return d}} function tg(a){return s(a.Cb)?a.Cb:String(a.Cb)}function lg(a,b){return b+" ["+a.Gg+" "+a.cb+" "+rg(a)+"]"}yb[yb.length]=function(a){kg.prototype.tf=a(kg.prototype.tf)};function ug(){this.vb=[]}m=ug.prototype;m.kb=0;m.dc=0;m.Sd=function(a){this.vb[this.dc++]=a};m.oc=function(){if(this.kb!=this.dc){var a=this.vb[this.kb];delete this.vb[this.kb];this.kb++;return a}};m.ma=function(){return this.dc-this.kb};m.lb=function(){return this.dc-this.kb==0};m.clear=function(){this.dc=this.kb=this.vb.length=0};m.contains=function(a){return B(this.vb,a)};m.remove=function(a){a=lb(this.vb,a);if(a<0)return false;if(a==this.kb)this.oc();else{sb(this.vb,a);this.dc--}return true}; m.ib=function(){return this.vb.slice(this.kb,this.dc)};function vg(a,b){this.Kg=a||0;this.Xb=b||10;if(this.Kg>this.Xb)throw Error(wg);this.Z=new ug;this.yb=new xf;this.Hd()}t(vg,Ab);var wg="[goog.structs.Pool] Min can not be greater than max";m=vg.prototype;m.Ra=function(){for(var a;this.Z.ma()>0;){a=this.Z.oc();if(this.qf(a))break;else this.Hd()}if(!a&&this.ma()this.Xb&&this.Z.ma()>0;)this.Ob(a.oc())};m.lc=function(){return{}};m.Ob=function(a){if(typeof a.w=="function")a.w();else for(var b in a)a[b]=null};m.qf=function(a){if(typeof a.ai=="function")return a.ai();return true};m.contains=function(a){return this.Z.contains(a)||this.yb.contains(a)};m.ma=function(){return this.Z.ma()+this.yb.ma()}; m.lb=function(){return this.Z.lb()&&this.yb.lb()};m.e=function(){vg.b.e.call(this);if(this.yb.ma()>0)throw Error("[goog.structs.Pool] Objects not released");delete this.yb;for(var a=this.Z;!a.lb();)this.Ob(a.oc());delete this.Z};function xg(a,b){this.$=a;this.xa=b}xg.prototype.s=e("xa");xg.prototype.Na=function(){return new xg(this.$,this.xa)};function yg(a){this.Ta=[];if(a)a:{var b,c;if(a instanceof yg){b=a.hd();c=a.ib();if(a.ma()<=0){a=this.Ta;for(var d=0;d0;){d=Math.floor((b-1)/2);if(a[d].$>c.$){a[b]=a[d];b=d}else break}a[b]=c}m=yg.prototype; m.remove=function(){var a=this.Ta,b=a.length,c=a[0];if(!(b<=0)){if(b==1)qb(a);else{a[0]=a.pop();a=0;b=this.Ta;for(var d=b.length,f=b[a];af.$)break;b[a]=b[g];a=g}b[a]=f}return c.s()}};m.ib=function(){for(var a=this.Ta,b=[],c=a.length,d=0;d0;){var c=a.Ra();if(c)b.oc().apply(a,[c]);else return}}Bg.prototype.Je=function(a){Bg.b.Je.call(this,a);Cg(this)};Bg.prototype.Hd=function(){Bg.b.Hd.call(this);Cg(this)};Bg.prototype.e=function(){Bg.b.e.call(this);this.qe.clear();this.qe=null};function Dg(a,b,c){Bg.call(this,b,c);this.Ai=a}t(Dg,Bg);Dg.prototype.lc=function(){var a=new kg,b=this.Ai;b&&Vd(b,function(c,d){a.headers.J(d,c)});return a};Dg.prototype.Ob=function(a){a.w()};Dg.prototype.qf=function(a){return!a.Pd&&!a.zc()};W=W||{};function X(){this.Ug=new Dg({},1);this.pb={}}t(X,N);r(X);function Eg(a){C.call(this,"server_info_change");this.ac=a}t(Eg,C);function Fg(a){C.call(this,"plugin_list_change");this.plugins=a}t(Fg,C);function Gg(a){C.call(this,"universe_list_change");this.pb=a}t(Fg,C);function Hg(a){C.call(this,"plugin_change");this.Zi=a}t(Hg,C);function Ig(a){C.call(this,"universe_change");this.fc=a}t(Ig,C);function Jg(a,b){C.call(this,"uids_change");this.nh=a;this.mh=b}t(Jg,C); function Kg(a){Y(a,"/json/server_stats",function(b){var c=sg(b.target);this.dispatchEvent(new Eg(c));Z(this,b.target)})}function Lg(a,b){Y(a,"/reload",function(c){b(c);Z(this,c.target)})}function Mg(a,b){Y(a,"/quit",function(c){b(c);Z(this,c.target)})} function Ng(a){Y(a,"/json/universe_plugin_list",function(b){if(rg(b.target)!=200)W.Ec.info("Request failed: "+String(b.target.cb)+" : "+tg(b.target));else{var c=sg(b.target);this.pb={};for(var d=0;d0;)i=" "+i;g.push("[",Aa(i),"s] ")}d.hj&&g.push("[",ua(a.Hi),"] ");g.push('',ta(Aa(ua(a.Ni))));if(d.dh&&a.Se)g.push("
",ta(Aa(a.Re||"")));g.push("

");c.innerHTML=g.join("");this.c.appendChild(c);if(b)this.c.scrollTop=this.c.scrollHeight};dh.prototype.clear=function(){this.c.innerHTML=""};function eh(a,b,c,d,f,g,h,i){var j,l=c.offsetParent;if(l){var o=l.tagName=="HTML"||l.tagName=="BODY";if(!o||dd(l)!="static"){j=kd(l);o||(j=nc(j,new G(l.scrollLeft,l.scrollTop)))}}l=qd(a);(o=jd(a))&&l.Bg(new pc(o.left,o.top,o.right-o.left,o.bottom-o.top));o=I(a);var p=I(c);if(o.r!=p.r){var w=o.r.body;p=Bc(p.r);var V=new G(0,0),Zb=J(w)?Bc(J(w)):window,zf=w;do{var Xh=Zb==p?kd(zf):nd(zf);V.x+=Xh.x;V.y+=Xh.y}while(Zb&&Zb!=p&&(zf=Zb.frameElement)&&(Zb=Zb.parent));p=V;p=nc(p,kd(w));if(u&&!Sc(o))p=nc(p,Tc(o)); l.left+=p.x;l.top+=p.y}a=(b&4&&ld(a)?b^2:b)&-5;b=new G(a&2?l.left+l.width:l.left,a&1?l.top+l.height:l.top);if(j)b=nc(b,j);if(f){b.x+=(a&2?-1:1)*f.x;b.y+=(a&1?-1:1)*f.y}var v;if(h)if((v=jd(c))&&j){v.top=Math.max(0,v.top-j.y);v.right-=j.x;v.bottom-=j.y;v.left=Math.max(0,v.left-j.x)}a:{f=b;v=v;f=f.Na();j=0;a=(d&4&&ld(c)?d^2:d)&-5;d=pd(c);i=i?i.Na():d;if(g||a!=0){if(a&2)f.x-=i.width+(g?g.right:0);else if(g)f.x+=g.left;if(a&1)f.y-=i.height+(g?g.bottom:0);else if(g)f.y+=g.top}if(h){if(v){g=f;j=0;if(g.x< v.left&&h&1){g.x=v.left;j|=1}if(g.xv.right&&h&16){i.width-=g.x+i.width-v.right;j|=4}if(g.x+i.width>v.right&&h&1){g.x=Math.max(v.right-i.width,v.left);j|=1}if(h&2)j|=(g.xv.right?32:0);if(g.y=v.top&&g.y+i.height>v.bottom&&h&32){i.height-=g.y+i.height-v.bottom;j|=8}if(g.y+i.height>v.bottom&&h&4){g.y=Math.max(v.bottom-i.height,v.top);j|=2}if(h&8)j|=(g.yv.bottom?128:0);h=j}else h=256;j=h;if(j& 496){c=j;break a}}ed(c,f);mc(d,i)||od(c,i);c=j}return c};function fh(){}fh.prototype.sa=aa();function gh(a,b){this.element=a;this.kc=b}t(gh,fh);gh.prototype.sa=function(a,b,c){eh(this.element,this.kc,a,b,undefined,c)};function hh(a,b){this.Ea=new kc(this);var c=a||null;ih(this);this.c=c;if(b)this.Qc=b}t(hh,N);m=hh.prototype;m.c=null;m.Yf=true;m.Xf=null;m.Bc=false;m.gj=false;m.lf=-1;m.Fg=-1;m.wg=false;m.di=true;m.Qc="toggle_display";m.a=e("c");function ih(a){if(a.Bc)throw Error("Can not change this state of the popup while showing.");}m.I=e("Bc"); m.l=function(a){if(a){if(!this.Bc)if(this.dispatchEvent("beforeshow")){if(!this.c)throw Error("Caller must call setElement before trying to show the popup");this.sa();a=J(this.c);this.wg&&this.Ea.f(a,gc,this.Si,true);if(this.Yf){this.Ea.f(a,"mousedown",this.Qg,true);if(u){for(var b=a.activeElement;b&&b.nodeName=="IFRAME";){try{var c=y?b.document||b.contentWindow.document:b.contentDocument||b.contentWindow.document}catch(d){break}a=c;b=a.activeElement}this.Ea.f(a,"mousedown",this.Qg,true);this.Ea.f(a, "deactivate",this.Pg)}else this.Ea.f(a,"blur",this.Pg)}if(this.Qc=="toggle_display"){this.c.style.visibility="visible";O(this.c,true)}else this.Qc=="move_offscreen"&&this.sa();this.Bc=true;this.lf=pa();this.Fg=-1;this.dispatchEvent("show")}}else jh(this)};m.sa=q; function jh(a,b){if(!a.Bc||!a.dispatchEvent({type:"beforehide",target:b}))return false;a.Ea&&a.Ea.ud();if(a.Qc=="toggle_display")a.gj?Td(a.xg,0,a):a.xg();else if(a.Qc=="move_offscreen"){a.c.style.left="-200px";a.c.style.top="-200px"}a.Bc=false;a.Fg=pa();a.dispatchEvent({type:"hide",target:b});return true}m.xg=function(){this.c.style.visibility="hidden";O(this.c,false)};m.Qg=function(a){a=a.target;if(!Kc(this.c,a)&&(!this.Xf||Kc(this.Xf,a))&&!(pa()-this.lf<150))jh(this,a)}; m.Si=function(a){if(a.keyCode==27)if(jh(this,a.target)){a.preventDefault();a.stopPropagation()}};m.Pg=function(a){if(this.di){var b=J(this.c);if(u||Oa){if((a=b.activeElement)&&Kc(this.c,a))return}else if(a.target!=b)return;pa()-this.lf<150||jh(this)}};m.e=function(){hh.b.e.call(this);this.Ea.w();delete this.c;delete this.Ea};function kh(a,b,c){gh.call(this,a,b);this.Vh=c}t(kh,gh);kh.prototype.sa=function(a,b,c,d){var f=eh(this.element,this.kc,a,b,null,c,10,d);if(f&496){var g=this.kc,h=b;if(f&48){g^=2;h^=2}if(f&192){g^=1;h^=1}f=eh(this.element,g,a,h,null,c,10,d);if(f&496)this.Vh?eh(this.element,this.kc,a,b,null,c,5,d):eh(this.element,this.kc,a,b,null,c,0,d)}};function lh(a,b){this.Vg=4;this.uf=b||undefined;hh.call(this,a)}t(lh,hh);lh.prototype.Cf=function(a){this.uf=a||undefined;this.I()&&this.sa()};lh.prototype.sa=function(){if(this.uf){var a=!this.I()&&this.Qc!="move_offscreen",b=this.a();if(a){b.style.visibility="hidden";O(b,true)}this.uf.sa(b,this.Vg,this.Ji);a&&O(b,false)}};W=W||{};W.Ec=Wf("ola");function mh(){Vf().Af(Pf);var a=new dh(K("log"));if(true!=a.Cg){var b=Vf(),c=a.cj;if(!b.ld)b.ld=[];b.ld.push(c);a.Cg=true}this.ge=K("log_control");(new T).m(this.ge);D(this.ge,E,this.Ka,false,this);a=document.getElementById("log_popup");a=this.Eb=new lh(a);ih(a);a.wg=true;a=this.Eb;ih(a);a.Yf=true} mh.prototype.Ka=function(){this.Eb.l(false);var a=this.Eb;a.Vg=2;a.I()&&a.sa();a=this.Eb;var b=new oc(2,2,2,2);a.Ji=b==null||b instanceof oc?b:new oc(b,void 0,void 0,void 0);a.I()&&a.sa();this.Eb.Cf(new kh(this.ge,3));this.Eb.l(true)};function nh(){this.dg=[]}t(nh,Ce);r(nh);function oh(a,b){var c=a.dg[b];if(!c){switch(b){case 0:c=a.k()+"-highlight";break;case 1:c=a.k()+"-checkbox";break;case 2:c=a.k()+"-content";break}a.dg[b]=c}return c}m=nh.prototype;m.Qa=k("menuitem");m.d=function(a){var b=a.i().d("div",this.sc(a).join(" "),ph(this,a.la,a.i()));qh(this,a,b,!!(a.da&8)||!!(a.da&16));return b};m.L=function(a){return a&&a.firstChild}; m.m=function(a,b){var c=Hc(b),d=oh(this,2);c&&c.className.indexOf(d)!=-1||b.appendChild(ph(this,b.childNodes,a.i()));if(B(rc(b),"goog-option")){a.re(true);this.re(a,b,true)}return nh.b.m.call(this,a,b)};m.t=function(a,b){var c=this.L(a),d=rh(this,a)?c.firstChild:null;nh.b.t.call(this,a,b);if(d&&!rh(this,a))c.insertBefore(d,c.firstChild||null)};function ph(a,b,c){a=oh(a,2);return c.d("div",a,b)}m.Df=function(a,b,c){if(b){ae(b,c?"menuitemradio":this.Qa());qh(this,a,b,c)}}; m.re=function(a,b,c){if(b){ae(b,c?"menuitemcheckbox":this.Qa());qh(this,a,b,c)}};function rh(a,b){var c=a.L(b);if(c){c=c.firstChild;var d=oh(a,1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return false}function qh(a,b,c,d){if(d!=rh(a,c)){d?H(c,"goog-option"):sc(c,"goog-option");c=a.L(c);if(d){a=oh(a,1);c.insertBefore(b.i().d("div",a),c.firstChild||null)}else c.removeChild(c.firstChild)}} m.ed=function(a){switch(a){case 2:return oh(this,0);case 16:case 8:return"goog-option-selected";default:return nh.b.ed.call(this,a)}};m.Ve=function(a){var b=oh(this,0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return nh.b.Ve.call(this,a)}};m.k=k("goog-menuitem");function sh(a,b,c,d){T.call(this,a,d||nh.g(),c);this.ia(b)}t(sh,T);m=sh.prototype;m.s=function(){var a=this.pf;return a!=null?a:this.dd()};m.ia=ba("pf");m.Df=function(a){Ye(this,8,a);this.Ac()&&!a&&this.zd(false);var b=this.a();b&&this.h.Df(this,b,a)};m.re=function(a){Ye(this,16,a);var b=this.a();b&&this.h.re(this,b,a)};m.dd=function(){return We(this,function(a){return B(rc(a),"goog-menuitem-accel")?"":Pc(a)})};Ie("goog-menuitem",function(){return new sh(null)});function th(a,b){var c=Ee(Ce,uh);T.call(this,null,c,b);Ye(this,4,false);this.Za=a!==undefined?a:vh}t(th,T);var vh=false,uh="goog-checkbox",wh=uh+"-checked",xh=uh+"-unchecked",yh=uh+"-undetermined",zh={oj:wh,rj:xh,sj:yh},Ah=gb(true,wh,vh,xh,null,yh);m=th.prototype;m.Ei=null;m.Ac=function(){return this.Za==true};m.zd=function(a){if(a!=this.Za){this.Za=a;Bh(this)}};m.Pc=function(){this.Za=this.Za?vh:true;Bh(this)};m.d=function(){this.A(this.i().createElement("span"))}; m.A=function(a){th.b.A.call(this,a);a=rc(a);if(B(a,yh))this.Za=null;else if(B(a,wh))this.Za=true;else if(B(a,xh))this.Za=vh;else Bh(this)};m.n=function(){th.b.n.call(this);if(this.Xd)this.H().f(this.Ei||this.a(),E,this.sg)};function Bh(a){var b=a.a();if(b){a=Ah[a.Za];var c=rc(b);if(!B(c,a)){var d=[a],f=$a(zh);mb(c,function(g){B(f,g)||d.push(g)});b.className=d.join(" ")}}}m.M=function(a){th.b.M.call(this,a);if(a=this.a())a.tabIndex=this.B()?0:-1}; m.sg=function(a){a.stopPropagation();a=this.Za?"uncheck":"check";if(this.B()&&this.dispatchEvent(a)){this.Pc();this.dispatchEvent("change")}};m.Tb=function(a){a.keyCode==32&&this.sg(a);return false};Ie(uh,function(){return new th});function Ch(a,b,c,d){kh.call(this,a,b,c);this.dj=d}t(Ch,kh);Ch.prototype.sa=function(a,b,c,d){this.dj?eh(this.element,this.kc,a,b,null,c,33,d):Ch.b.sa.call(this,a,b,c,d)};function Dh(){}t(Dh,Ce);r(Dh);m=Dh.prototype;m.Qa=k("button");m.Sc=function(a,b,c){if(x)b==16?be(a,"pressed",c):Dh.b.Sc.call(this,a,b,c)};m.d=function(a){var b=Dh.b.d.call(this,a),c=a.jd();c&&this.Ed(b,c);(c=a.s())&&this.ia(b,c);a.da&16&&this.Sc(b,16,false);return b};m.m=function(a,b){b=Dh.b.m.call(this,a,b);var c=this.s(b);a.xa=c;a.Jf=this.jd(b);a.da&16&&this.Sc(b,16,false);return b};m.s=q;m.ia=q;m.jd=function(a){return a.title};m.Ed=function(a,b){if(a)a.title=b||""};m.k=k("goog-button");function Eh(){}t(Eh,Dh);r(Eh);m=Eh.prototype;m.Qa=aa();m.d=function(a){Fh(this,a);return a.i().d("button",{"class":this.sc(a).join(" "),disabled:!a.B(),title:a.jd()||"",value:a.s()||""},a.dd()||"")};m.K=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};m.m=function(a,b){Fh(this,a);b.disabled&&H(b,this.ed(1));return Eh.b.m.call(this,a,b)};m.yc=function(a){a.H().f(a.a(),E,a.Yb)};m.yd=q;m.Kc=q;m.Ab=function(a){return a.B()};m.Hb=q; m.Aa=function(a,b,c){Eh.b.Aa.call(this,a,b,c);if((a=a.a())&&b==1)a.disabled=c};m.s=function(a){return a.value};m.ia=function(a,b){if(a)a.value=b};m.Sc=q;function Fh(a,b){Ue(b,false);b.Zf&=-256;Ye(b,32,false)};function Gh(a,b,c){T.call(this,a,b||Eh.g(),c)}t(Gh,T);m=Gh.prototype;m.s=e("xa");m.ia=function(a){this.xa=a;this.h.ia(this.a(),a)};m.jd=e("Jf");m.Ed=function(a){this.Jf=a;this.h.Ed(this.a(),a)};m.e=function(){Gh.b.e.call(this);delete this.xa;delete this.Jf};m.n=function(){Gh.b.n.call(this);if(this.da&32){var a=this.U();a&&this.H().f(a,"keyup",this.Tb)}};m.Tb=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.Yb(a);return a.keyCode==32};Ie("goog-button",function(){return new Gh(null)});function Hh(){}t(Hh,df);r(Hh);m=Hh.prototype;m.Qa=k("menu");m.K=function(a){return a.tagName=="UL"||Hh.b.K.call(this,a)};m.fd=function(a){return a.tagName=="HR"?new cf:Hh.b.fd.call(this,a)};m.Lb=function(a,b){return Kc(a.a(),b)};m.k=k("goog-menu");m.yc=function(a){Hh.b.yc.call(this,a);a=a.a();be(a,"haspopup","true")};Ie("goog-menuseparator",function(){return new cf});function Ih(a,b){U.call(this,gf,b||Hh.g(),a);this.Hb(false)}t(Ih,U);m=Ih.prototype;m.Ke=true;m.Xh=false;m.k=function(){return this.h.k()};m.Lb=function(a){if(this.h.Lb(this,a))return true;for(var b=0,c=Q(this);b=1)a.za=1;a.ng=1E3/(b-a.kf);a.kf=b;ia(a.Vf)?ii(a,a.Vf(a.za)):ii(a,a.za);if(a.za==1){a.o=0;gi(a);hi(a,"finish");a.je()}else a.o==1&&a.sf()}function ii(a,b){a.coords=Array(a.Nc.length);for(var c=0;c')};function mi(a,b,c){sh.call(this,a,b,c);this.Df(true)}t(mi,sh);mi.prototype.Yb=function(){return this.dispatchEvent("action")};Ie("goog-option",function(){return new mi(null)});function ni(a){this.element=K(a);this.Zc=this.P=undefined;this.Pe=[];this.Va=undefined}function oi(a,b){pi(a,a.element);Tg(X.g(),a.P,qi(b),function(c){ri(a,c)});a.Zc=qi(b)}ni.prototype.clear=function(){this.Zc=undefined;this.element.innerHTML=""};function pi(a,b){b.innerHTML='

Loading...
'} function ri(a,b){a.element.innerHTML="";a.Pe=[];for(var c=sg(b.target),d=c.length,f=0;f "+(o-1));return}o=c[h].max;if(o!=undefined&&l>o){ui(a,"Invalid Value",c[h].description+" must be < "+(o+1));return}g+=i+"="+j+"&"}else if(c[h].type=="string"){j= f.elements[i].value;g+=i+"="+j+"&"}else if(c[h].type=="bool")g+=i+"="+(c[h].object.Ac()?"1":"0")+"&";else if(c[h].type=="select"){j=c[h].object.xb();j=c[h].value[j].value;g+=i+"="+j+"&"}}Vg(X.g(),a.P,a.Zc,a.Va[b].id,a.Va[b].hint,g,function(p){p=sg(p.target);p.error?ui(a,"Set Failed",p.error):si(a,b)})}function ui(a,b,c){a=$.g();a.ca("Set Failed");a.t(c);S(a,me);a.l(true)};function yi(){}t(yi,bf);r(yi);yi.prototype.d=function(a){return a.i().d("div",this.k()+" goog-inline-block","\u00a0")};yi.prototype.m=function(a,b){b=yi.b.m.call(this,a,b);H(b,"goog-inline-block");return b};yi.prototype.k=k("goog-toolbar-separator");function zi(a,b){cf.call(this,a||yi.g(),b)}t(zi,cf);Ie("goog-toolbar-separator",function(){return new zi});function Ai(){}t(Ai,df);r(Ai);Ai.prototype.Qa=k("toolbar");Ai.prototype.fd=function(a){return a.tagName=="HR"?new cf(yi.g()):Ai.b.fd.call(this,a)};Ai.prototype.k=k("goog-toolbar");Ai.prototype.og=function(){return ff};function Bi(a,b,c){U.call(this,b,a||Ai.g(),c)}t(Bi,U);function Ci(){}t(Ci,Jh);r(Ci);Ci.prototype.k=k("goog-toolbar-button");function Di(a,b,c){Gh.call(this,a,b||Ci.g(),c)}t(Di,Gh);Ie("goog-toolbar-button",function(){return new Di(null)});function Ei(a){this.c=a;this.Hg=D(this.c,x?"DOMMouseScroll":"mousewheel",this)}t(Ei,N); Ei.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.Oa;if(a.type=="mousewheel"){c=1;if(u||y&&(Ja||z("532.0")))c=40;d=-a.wheelDelta/c;if(a.wheelDeltaX!==undefined){b=-a.wheelDeltaX/c;c=-a.wheelDeltaY/c}else c=d}else{d=a.detail;if(d>100)d=3;else if(d<-100)d=-3;if(a.axis!==undefined&&a.axis===a.HORIZONTAL_AXIS)b=d;else c=d}if(ha(this.Ig))b=Math.min(Math.max(b,-this.Ig),this.Ig);if(ha(this.Jg))c=Math.min(Math.max(c,-this.Jg),this.Jg);b=new Fi(d,a,b,c);try{this.dispatchEvent(b)}finally{b.w()}}; Ei.prototype.e=function(){Ei.b.e.call(this);dc(this.Hg);delete this.Hg};function Fi(a,b,c,d){b&&this.xc(b,void 0);this.type="mousewheel";this.detail=a;this.mc=c;this.nc=d}t(Fi,Cb);function Gi(a,b,c,d,f){bi.call(this,b,c,d,f);this.element=a}t(Gi,bi);Gi.prototype.Ae=q;Gi.prototype.sf=function(){this.Ae();Gi.b.sf.call(this)};Gi.prototype.je=function(){this.Ae();Gi.b.je.call(this)};Gi.prototype.rd=function(){this.Ae();Gi.b.rd.call(this)};function Hi(a,b,c){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");Gi.apply(this,arguments)}t(Hi,Gi); Hi.prototype.Ae=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};function Ii(a,b,c,d){Hi.call(this,a,[a.offsetLeft,a.offsetTop],b,c,d)}t(Ii,Hi);Ii.prototype.rd=function(){this.Nc=[this.element.offsetLeft,this.element.offsetTop];Ii.b.rd.call(this)};function Ji(){}t(Ji,N);m=Ji.prototype;m.xa=0;m.Sa=0;m.Fa=100;m.ya=0;m.Oc=1;m.bb=false;m.Fc=false;m.ia=function(a){a=Ki(this,a);if(this.xa!=a){this.xa=a+this.ya>this.Fa?this.Fa-this.ya:athis.Fa?this.Fa-this.xa:a;!this.bb&&!this.Fc&&this.dispatchEvent("change")}}; m.Rb=function(){var a;a=this.ya;a=this.Oc==null?a:Math.round(a/this.Oc)*this.Oc;return a};m.te=function(a){if(this.Sa!=a){var b=this.bb;this.bb=true;this.Sa=a;if(a+this.ya>this.Fa)this.ya=this.Fa-this.Sa;a>this.xa&&this.ia(a);if(a>this.Fa){this.ya=0;this.se(a);this.ia(a)}this.bb=b;!this.bb&&!this.Fc&&this.dispatchEvent("change")}};m.na=function(){return Ki(this,this.Sa)}; m.se=function(a){a=Ki(this,a);if(this.Fa!=a){var b=this.bb;this.bb=true;this.Fa=a;athis.Ia.offsetLeft+this.Ia.offsetWidth;a=J(this.a());this.H().f(a,"mouseup",this.ug,true).f(this.a(),"mousemove",this.Gf);if(!this.zb){this.zb=new Qd(200);this.H().f(this.zb,Sd,this.vg)}this.vg();this.zb.start()}};m.vi=function(a){Ri(this,(a.detail>0?-1:1)*this.Kf);a.preventDefault()}; m.vg=function(){var a;if(this.C=="vertical"){var b=this.ce,c=this.Ia.offsetTop;if(this.Ag){if(bc+this.Ia.offsetHeight)a=Ui(this,this.Ia)-this.qb}else{b=this.ce;c=this.Ia.offsetLeft;if(this.Ag){if(b>c+this.Ia.offsetWidth)a=Ui(this,this.Ia)+this.qb}else if(b=a.q.s()+a.pd)d=c-a.q.s();var f=d||a.q.Rb();if(b==a.R&&c>=a.na()&&c<=a.q.s()+f-a.pd){b=f-(c-a.q.s());if(Ki(a.q,c)+Ki(a.q,b)==Ki(a.q,c+b)){Wi(a,c,b);d=null}}d!=null&&a.q.Ad(d)} function Wi(a,b,c){if(a.na()<=b&&b<=a.ra()-c&&a.pd<=c&&c<=a.ra()-b)if(!(b==a.s()&&c==a.Rb())){a.q.Fc=true;a.q.Ad(0);a.q.ia(b);a.q.Ad(c);a.q.Fc=false;Oi(a);a.dispatchEvent("change")}}m.na=function(){return this.q.na()};m.te=function(a){this.q.te(a)};m.ra=function(){return this.q.ra()};m.se=function(a){this.q.se(a)};function Ti(a,b){return b<=a.q.s()+a.q.Rb()/2?a.R:a.va}m.xi=function(){Oi(this);Ni(this);this.dispatchEvent("change")}; function Oi(a){if(a.R&&!a.gf){var b=Xi(a,Ui(a,a.R)),c=Xi(a,Ui(a,a.va));if(a.C=="vertical"){a.R.style.top=b.y+"px";a.va.style.top=c.y+"px"}else{a.R.style.left=b.x+"px";a.va.style.left=c.x+"px"}}}function Xi(a,b){var c=new G;if(a.R){var d=a.na(),f=a.ra();d=b==d&&d==f?0:(b-d)/(f-d);if(a.C=="vertical"){f=a.R.offsetHeight;f=a.a().clientHeight-f;c.y=f-Math.round(d*f)}else{f=a.a().clientWidth-a.R.offsetWidth;c.x=Math.round(d*f)}}return c} function Qi(a,b){b=Math.min(a.ra(),Math.max(b,a.na()));a.Yc&&a.Yc.stop(true);var c=Ti(a,b),d=Xi(a,b);d=new Ii(c,a.C=="vertical"?[c.offsetLeft,d.y]:[d.x,c.offsetTop],100);a.Yc=d;a.H().f(d,"end",a.ei);a.gf=true;Pi(a,c,b);d.play(false)}m.ei=function(){this.gf=false};m.Cd=function(a){if(this.C!=a){var b=this.k(this.C),c=this.k(a);this.C=a;if(this.a()){tc(this.a(),b,c);this.R.style.left=this.R.style.top="";this.va.style.left=this.va.style.top="";Oi(this)}}}; m.e=function(){Li.b.e.call(this);this.zb&&this.zb.w();delete this.zb;this.Yc&&this.Yc.w();delete this.Yc;delete this.R;delete this.va;this.q.w();delete this.q;if(this.ha){this.ha.w();delete this.ha}if(this.ie){this.ie.w();delete this.ie}};m.Kf=1;m.s=function(){return this.q.s()};m.ia=function(a){Pi(this,this.R,a)};m.Rb=function(){return this.q.Rb()};m.Ad=function(a){Pi(this,this.va,this.q.s()+a)};m.l=function(a){O(this.a(),a);a&&Oi(this)}; function Ni(a){var b=a.a();if(b){be(b,"valuemin",a.na());be(b,"valuemax",a.ra());be(b,"valuenow",a.s())}};function Yi(a){Li.call(this,a);this.q.Ad(0)}t(Yi,Li);Yi.prototype.k=function(a){return a=="vertical"?"goog-slider-vertical":"goog-slider-horizontal"};function Zi(){this.ah=false;this.Mc=[];this.eh=[];this.data=Array($i);this.ph=[];this.Wa=0;this.Hf=new Qd(1E3)}t(Zi,N);var $i=512;function aj(){C.call(this,"console-change-event")}t(aj,C);m=Zi.prototype;m.getData=e("data"); function bj(a){if(!a.ah){var b=new Bi;a.Zb=new Di("Previous Page");a.Gc=new Di("Next Page");a.Zb.M(false);var c=new Di("Blackout");c.Ed("Set all channels to 0");var d=new Di("Full");d.Ed("Set all channels to full");b.oa(a.Zb,true);b.oa(a.Gc,true);b.oa(new zi,true);b.oa(c,true);b.oa(d,true);b.W(K("console_toolbar"));D(a.Zb,"action",a.Kh,false,a);D(a.Gc,"action",a.Jh,false,a);D(c,"action",a.Gh,false,a);D(d,"action",a.Ih,false,a);c=K("channel_values");for(b=0;b<$i;++b){d=M("div");d.innerHTML=0;d.title= "Channel "+(b+1);c.appendChild(d);a.ph.push(d)}c=K("console_channel_row");d=K("console_value_row");var f=K("console_slider_row");for(b=0;b<16;++b){var g=M("td");g.innerHTML=b+1;c.appendChild(g);g=M("td");g.innerHTML="0";d.appendChild(g);a.eh.push(g);g=M("td");f.appendChild(g);var h=new Yi;h.Cd(Mi.Ch);h.te(0);h.se(255);h.W(g);D(h,"change",function(i){return function(){var j=this.Mc[i].s();this.eh[i].innerHTML=j;var l=this.Wa+i;cj(this,l,j);if(this.data[l]!=j){this.data[l]=j;this.dispatchEvent(new aj)}}}(b), false,a);a.Mc.push(h)}a.ah=true;dj(a,0);D(a.Hf,Sd,function(){this.dispatchEvent(new aj)},false,a)}}m.update=function(){this.Wa==0?this.Zb.M(false):this.Zb.M(true);this.Wa==$i-16?this.Gc.M(false):this.Gc.M(true);ej(this);for(var a=0;a=a){this.Wa=a;this.Gc.M(false)}ej(this)}; m.Kh=function(){this.Wa-=16;this.Gc.M(true);if(this.Wa<=0){this.Wa=0;this.Zb.M(false)}ej(this)};function ej(a){var b=K("console_channel_row");b=Hc(b);for(var c=a.Wa;c90?"#ffffff":"#000000"}};function fj(a,b,c,d){this.p=c||I();this.qa=a;this.Ga=[];this.kj=b?b:gj;this.oh=!!d;this.qa.className="goog-tabpane";a=[];for(b=Hc(this.qa);b;){a.push(b);b=Jc(b)}this.ua=this.p.d("ul",{className:"goog-tabpane-tabs",tabIndex:"0"});this.G=this.p.d("div","goog-tabpane-cont");this.qa.appendChild(this.G);switch(this.kj){case gj:this.qa.insertBefore(this.ua,this.G);this.qa.insertBefore(hj(this),this.G);H(this.qa,"goog-tabpane-top");break;case 1:this.qa.appendChild(this.ua);this.qa.appendChild(hj(this)); H(this.qa,"goog-tabpane-bottom");break;case 2:this.qa.insertBefore(this.ua,this.G);H(this.qa,"goog-tabpane-left");break;case 3:this.qa.insertBefore(this.ua,this.G);H(this.qa,"goog-tabpane-right");break;default:throw Error("Invalid tab location");}this.ua.tabIndex=0;D(this.ua,this.oh?"mousedown":E,this.ke,false,this);D(this.ua,gc,this.le,false,this);for(c=0;b=a[c];c++)ij(this,new jj(b))}t(fj,N);var gj=0; function hj(a){sd(".goog-tabpane-clear { clear: both; height: 0px; overflow: hidden }");return a.p.d("div","goog-tabpane-clear")}m=fj.prototype;m.e=function(){fj.b.e.call(this);bc(this.ua,this.oh?"mousedown":E,this.ke,false,this);bc(this.ua,gc,this.le,false,this);delete this.qa;this.G=this.ua=null}; function ij(a,b,c){if(b.z&&b.z!=a&&b.z instanceof fj){var d=b.z,f=b;if(ha(f))f=d.Ga[f];d.Ga.splice(f.wc,1);f.Dd(null);Gc(f.qc);Gc(f.G);for(var g=0;f=d.Ga[g];g++)f.Dd(d,g)}d=a.Ga.length;if(c!==undefined&&c!=d){d=c;a.Ga.splice(d,0,b);a.ua.insertBefore(b.qc,a.ua.childNodes[d])}else{a.Ga.push(b);a.ua.appendChild(b.qc)}b.Dd(a,d);if(!a.Ha){a.Ha=b;a.dispatchEvent(new kj("change",a,a.Ha))}a.G.appendChild(b.G);lj(b,b==a.Ha);for(c=d+1;b=a.Ga[c];c++)b.wc=c} m.ta=function(a){if(a>=0&&a=this.Ga.length?0:a);break;case 36:this.ta(0);break;case 35:this.ta(this.Ga.length-1);break}};function jj(a,b,c){var d,f;if(s(a)&&b===undefined)d=a;else if(b){d=b;f=a}else if(a){if(b=Hc(a)){d=Pc(b);b.parentNode.removeChild(b)}f=a}this.p=c||I();this.G=f||this.p.d("div");this.qc=this.p.d("li",null,d);this.wc=this.z=null;this.Q=true}m=jj.prototype; m.ca=function(a){Lc(this.qc,a)};m.L=e("G");m.M=function(a){this.Q=a;this.qc.className=a?"goog-tabpane-tab":"goog-tabpane-tab-disabled"};m.B=e("Q");function lj(a,b){if(a.B()){a.G.style.display=b?"":"none";a.qc.className=b?"goog-tabpane-tab-selected":"goog-tabpane-tab"}}m.Dd=function(a,b){this.z=a;this.wc=b!==undefined?b:null};function kj(a,b,c){C.call(this,a,b);this.page=c}t(kj,C);function mj(a,b){P.call(this,b);this.data=a}t(mj,P);mj.prototype.K=k(false);mj.prototype.d=function(){var a=this.p.d("tr",{});a.style.cursor="pointer";var b=L("td",{},"");this.p.appendChild(a,b);this.rb=new th;this.rb.W(b);this.p.appendChild(a,L("td",{},this.data.device));this.p.appendChild(a,L("td",{},this.data.is_output?"Output":"Input"));this.p.appendChild(a,L("td",{},this.data.description));this.c=a;D(a,E,function(){this.rb.Pc()},false,this)};mj.prototype.td=function(){return this.data.id}; mj.prototype.nd=function(){return this.rb.Ac()};function nj(a){P.call(this,a)}t(nj,P);m=nj.prototype;m.d=function(){this.A(this.p.createElement("tbody"))};m.A=function(a){nj.b.A.call(this,a)};m.K=function(a){return a.tagName=="TBODY"};function oj(a){for(var b=[],c=Q(a),d=0;da.Xc)return 1;else if(this.Xc65535){a.ca("Invalid Universe Number");S(a,me);a.t("The universe number must be between 0 and 65535")}else{var c=X.g();if(c.pb[b]!=undefined){a.ca("Universe already exists");S(a,me);a.t("Universe "+b+" already exists")}else{var d=K("new_universe_name").value,f=oj(this.Jb);if(f.length==0){a.ca("No ports selected");S(a,me);a.t("At least one port must be bound to the universe")}else{var g=this;Rg(c, b,d,f,function(h){var i=$.g();if(rg(h.target)!=200){i.ca("New Universe Failed");i.t(String(h.target.cb)+" : "+tg(h.target));S(i,me);i.l(true)}else{h=sg(h.target);if(h.ok){i.l(false);i=g.rf;h=h.universe;Hj(i);i.Rc.Ka(h,true);Ng(X.g())}else{i.ca("New Universe Failed");S(i,me);i.t(h.message);i.l(true)}}});li(a)}}}a.l(true)};W=W||{};function Ij(a){this.element=K(a);D(X.g(),"plugin_change",this.Eh,false,this)}t(Ij,pj);Ij.prototype.Eh=function(a){K("plugin_description").innerHTML=a.Zi.description};function Jj(a){this.gc=a||window;this.ee=D(this.gc,"resize",this.yi,false,this);this.Lc=Ac(this.gc||window);if(y&&Ja||Oa&&this.gc.self!=this.gc.top)this.Ce=window.setInterval(na(this.cg,this),Kj)}t(Jj,N);var Kj=500;m=Jj.prototype;m.ee=null;m.gc=null;m.Lc=null;m.Ce=null;m.qg=function(){return this.Lc?this.Lc.Na():null};m.e=function(){Jj.b.e.call(this);if(this.ee){dc(this.ee);this.ee=null}if(this.Ce){window.clearInterval(this.Ce);this.Ce=null}this.Lc=this.gc=null};m.yi=function(){this.cg()}; m.cg=function(){var a=Ac(this.gc||window);if(!mc(a,this.Lc)){this.Lc=a;this.dispatchEvent("resize")}};W.qj={};W=W||{};W.wh=5E3;W.vh="home_frame";W.Bh="universe_frame";W.yh="plugin_frame";W.Of="split_pane";W.xh="new_universe_frame";function tj(a,b,c,d){sf.call(this,a,b,c,d);this.t(a.name())}t(tj,sf);tj.prototype.n=function(){tj.b.n.call(this);this.a().title="Universe "+this.La.id()};function Lj(a,b,c,d){sf.call(this,a,b,c,d);this.t(a.name())}t(Lj,sf);Lj.prototype.n=function(){Lj.b.n.call(this);this.a().title=this.La.name()+" Plugin"};function Mj(a){this.Kb=a} Mj.prototype.qd=function(a){return new tj(a,this.Kb)};function Nj(a){this.Kb=a}Nj.prototype.qd=function(a){return new Lj(a,this.Kb)}; function Oj(){this.Ii=new mh;this.Hc=X.g();this.yg=new Fj(W.vh);this.Rc=new vj(W.Bh,this);this.Tg=new Ij(W.yh,this.Hc);this.Ng=new Gj(W.xh,this);D(K("new_universe_button"),E,this.Dh,false,this);var a=new P,b=new P;this.ve=new ve(a,b,"horizontal");this.ve.ff=130;this.ve.uc=2;this.ve.m(K(W.Of));this.rh=new Jj;this.Pf();D(this.rh,"resize",this.Pf,false,this);Pj(this);this.Uc();K(W.Of).style.visibility="visible"} function Pj(a){var b=K("home_control");Me(b);D(b,E,a.Uc,false,a);new ki("plugin_list_control","plugin_container");new ki("universe_list_control","universe_container");b=new U;b.m(K("plugin_container"));a.$i=new tf(b,new Nj(function(c){c=c.id();Og(a.Hc,c);Hj(a);a.Tg.Ka()}));D(a.Hc,"plugin_list_change",a.Qh,false,a);b=new U;b.m(K("universe_container"));a.Lf=new tf(b,new Mj(function(c){c=c.id();Hj(a);a.Rc.Ka(c,void 0)}));D(a.Hc,"universe_list_change",a.Th,false,a);a.lh=new Qd(W.wh);D(a.lh,Sd,function(){Ng(this)}, false,a.Hc);Ng(a.Hc);a.lh.start()}m=Oj.prototype;m.Th=function(a){var b=this.Rc.P,c=[],d=false;W.Ec.info("Got "+a.pb.length+" universes");for(var f=0;f