function e(a){throw a;}var k=void 0,m=null;function aa(){return function(){}}function ba(a){return function(b){this[a]=b}}function p(a){return function(){return this[a]}}function r(a){return function(){return a}}var s,ca=ca||{},u=this;function da(a){for(var a=a.split("."),b=u,c;c=a.shift();)if(b[c]!=m)b=b[c];else return m;return b}function v(){}function y(a){a.p=function(){return a.Ke||(a.Ke=new a)}}
function ea(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[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 a!==k}function ga(a){return ea(a)=="array"}function ha(a){var b=ea(a);return b=="array"||b=="object"&&typeof a.length=="number"}function z(a){return typeof a=="string"}function ia(a){return typeof a=="number"}function ja(a){return ea(a)=="function"}function ka(a){a=ea(a);return a=="object"||a=="array"||a=="function"}function la(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+Math.floor(Math.random()*2147483648).toString(36),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)}function pa(a,b,c){a||e(Error());if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}else return function(){return a.apply(b,arguments)}}
function qa(a,b,c){qa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?oa:pa;return qa.apply(m,arguments)}function ra(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return a.apply(this,b)}}var sa=Date.now||function(){return+new Date};function A(a,b){function c(){}c.prototype=b.prototype;a.a=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ta(a,b){for(var c=1;c<arguments.length;c++)var d=String(arguments[c]).replace(/\$/g,"$$$$"),a=a.replace(/\%s/,d);return a}function ua(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")}function wa(a){if(!xa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(ya,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(za,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(Aa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Ba,"&quot;"));return a}var ya=/&/g,za=/</g,Aa=/>/g,Ba=/\"/g,xa=/[&<>\"]/;
function Ca(a,b){for(var c=0,d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),h=String(b).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),g=Math.max(d.length,h.length),j=0;c==0&&j<g;j++){var l=d[j]||"",n=h[j]||"",o=RegExp("(\\d*)(\\D*)","g"),w=RegExp("(\\d*)(\\D*)","g");do{var t=o.exec(l)||["","",""],B=w.exec(n)||["","",""];if(t[0].length==0&&B[0].length==0)break;c=Da(t[1].length==0?0:parseInt(t[1],10),B[1].length==0?0:parseInt(B[1],10))||Da(t[2].length==0,B[2].length==0)||Da(t[2],B[2])}while(c==
0)}return c}function Da(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};var Ea,Fa,Ga,Ha,Ia,Ja;function Ka(){return u.navigator?u.navigator.userAgent:m}function La(){return u.navigator}Ia=Ha=Ga=Fa=Ea=!1;var Ma;if(Ma=Ka()){var Na=La();Ea=Ma.indexOf("Opera")==0;Fa=!Ea&&Ma.indexOf("MSIE")!=-1;Ha=(Ga=!Ea&&Ma.indexOf("WebKit")!=-1)&&Ma.indexOf("Mobile")!=-1;Ia=!Ea&&!Ga&&Na.product=="Gecko"}var Oa=Ea,C=Fa,D=Ia,E=Ga,Pa=Ha,Qa=La();Ja=(Qa&&Qa.platform||"").indexOf("Mac")!=-1;var Ra=!!La()&&(La().appVersion||"").indexOf("X11")!=-1,Sa;
a:{var Ta="",Ua;if(Oa&&u.opera)var Va=u.opera.version,Ta=typeof Va=="function"?Va():Va;else if(D?Ua=/rv\:([^\);]+)(\)|;)/:C?Ua=/MSIE\s+([^\);]+)(\)|;)/:E&&(Ua=/WebKit\/(\S+)/),Ua)var Wa=Ua.exec(Ka()),Ta=Wa?Wa[1]:"";if(C){var Xa,Ya=u.document;Xa=Ya?Ya.documentMode:k;if(Xa>parseFloat(Ta)){Sa=String(Xa);break a}}Sa=Ta}var Za={};function F(a){return Za[a]||(Za[a]=Ca(Sa,a)>=0)}var $a={};function ab(){return $a[9]||($a[9]=C&&document.documentMode&&document.documentMode>=9)};function bb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function cb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function db(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}var eb="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");function fb(a,b){for(var c,d,h=1;h<arguments.length;h++){d=arguments[h];for(c in d)a[c]=d[c];for(var g=0;g<eb.length;g++)c=eb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function gb(a){this.stack=Error().stack||"";if(a)this.message=String(a)}A(gb,Error);gb.prototype.name="CustomError";function hb(a,b){b.unshift(a);gb.call(this,ta.apply(m,b));b.shift();this.yf=a}A(hb,gb);hb.prototype.name="AssertionError";function ib(a,b){e(new hb("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};var G=Array.prototype,jb=G.indexOf?function(a,b,c){return G.indexOf.call(a,b,c)}:function(a,b,c){c=c==m?0:c<0?Math.max(0,a.length+c):c;if(z(a))return!z(b)||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},kb=G.forEach?function(a,b,c){G.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,h=z(a)?a.split(""):a,g=0;g<d;g++)g in h&&b.call(c,h[g],g,a)},lb=G.map?function(a,b,c){return G.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,h=Array(d),g=z(a)?a.split(""):
a,j=0;j<d;j++)j in g&&(h[j]=b.call(c,g[j],j,a));return h},mb=G.some?function(a,b,c){return G.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,h=z(a)?a.split(""):a,g=0;g<d;g++)if(g in h&&b.call(c,h[g],g,a))return!0;return!1},ob=G.every?function(a,b,c){return G.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,h=z(a)?a.split(""):a,g=0;g<d;g++)if(g in h&&!b.call(c,h[g],g,a))return!1;return!0};function pb(a,b){return jb(a,b)>=0}
function qb(a){if(!ga(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}function rb(a,b){var c=jb(a,b);c>=0&&G.splice.call(a,c,1)}function sb(a){return G.concat.apply(G,arguments)}function tb(a){if(ga(a))return sb(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}}
function ub(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],h;if(ga(d)||(h=ha(d))&&d.hasOwnProperty("callee"))a.push.apply(a,d);else if(h)for(var g=a.length,j=d.length,l=0;l<j;l++)a[g+l]=d[l];else a.push(d)}}function vb(a,b,c,d){G.splice.apply(a,wb(arguments,1))}function wb(a,b,c){return arguments.length<=2?G.slice.call(a,b):G.slice.call(a,b,c)};var xb;var yb=!C||ab(),zb=C&&!F("8");function Ab(){}Ab.prototype.Lb=!1;Ab.prototype.F=function(){if(!this.Lb)this.Lb=!0,this.e()};Ab.prototype.e=function(){this.ve&&Bb.apply(m,this.ve)};function Bb(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ha(d)?Bb.apply(m,d):d&&typeof d.F=="function"&&d.F()}};function H(a,b){this.type=a;this.currentTarget=this.target=b}A(H,Ab);s=H.prototype;s.e=function(){delete this.type;delete this.target;delete this.currentTarget};s.bb=!1;s.$b=!0;s.stopPropagation=function(){this.bb=!0};s.preventDefault=function(){this.$b=!1};function Cb(a){Cb[" "](a);return a}Cb[" "]=v;function Db(a,b){a&&this.Rb(a,b)}A(Db,H);var Eb=[1,4,2];s=Db.prototype;s.target=m;s.relatedTarget=m;s.offsetX=0;s.offsetY=0;s.clientX=0;s.clientY=0;s.screenX=0;s.screenY=0;s.button=0;s.keyCode=0;s.charCode=0;s.ctrlKey=!1;s.altKey=!1;s.shiftKey=!1;s.metaKey=!1;s.Ve=!1;s.V=m;
s.Rb=function(a,b){var c=this.type=a.type;H.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(D){var h;a:{try{Cb(d.nodeName);h=!0;break a}catch(g){}h=!1}h||(d=m)}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==k?a.offsetX:a.layerX;this.offsetY=a.offsetY!==k?a.offsetY:a.layerY;this.clientX=a.clientX!==k?a.clientX:a.pageX;this.clientY=a.clientY!==k?a.clientY:a.pageY;this.screenX=
a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Ve=Ja?a.metaKey:a.ctrlKey;this.state=a.state;this.V=a;delete this.$b;delete this.bb};function Fb(a){return yb?a.V.button==0:a.type=="click"?!0:!!(a.V.button&Eb[0])}
s.stopPropagation=function(){Db.a.stopPropagation.call(this);this.V.stopPropagation?this.V.stopPropagation():this.V.cancelBubble=!0};s.preventDefault=function(){Db.a.preventDefault.call(this);var a=this.V;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,zb)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}};s.xe=p("V");s.e=function(){Db.a.e.call(this);this.relatedTarget=this.currentTarget=this.target=this.V=m};function Gb(){}var Hb=0;s=Gb.prototype;s.key=0;s.eb=!1;s.Gd=!1;s.Rb=function(a,b,c,d,h,g){ja(a)?this.Ud=!0:a&&a.handleEvent&&ja(a.handleEvent)?this.Ud=!1:e(Error("Invalid listener argument"));this.xb=a;this.ge=b;this.src=c;this.type=d;this.capture=!!h;this.wc=g;this.Gd=!1;this.key=++Hb;this.eb=!1};s.handleEvent=function(a){return this.Ud?this.xb.call(this.wc||this.src,a):this.xb.handleEvent.call(this.xb,a)};var Ib,Jb=(Ib="ScriptEngine"in u&&u.ScriptEngine()=="JScript")?u.ScriptEngineMajorVersion()+"."+u.ScriptEngineMinorVersion()+"."+u.ScriptEngineBuildVersion():"0";function Kb(a,b){this.$a=b;this.B=[];a>this.$a&&e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var c=0;c<a;c++)this.B.push(this.ob())}A(Kb,Ab);s=Kb.prototype;s.Sa=m;s.Md=m;s.getObject=function(){return this.B.length?this.B.pop():this.ob()};s.cb=function(a){this.B.length<this.$a?this.B.push(a):this.Ta(a)};s.ob=function(){return this.Sa?this.Sa():{}};s.Ta=function(a){if(this.Md)this.Md(a);else if(ka(a))if(ja(a.F))a.F();else for(var b in a)delete a[b]};
s.e=function(){Kb.a.e.call(this);for(var a=this.B;a.length;)this.Ta(a.pop());delete this.B};var Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Vb;
(function(){function a(){return{v:0,ga:0}}function b(){return[]}function c(){function a(b){b=j.call(a.src,a.key,b);if(!b)return b}return a}function d(){return new Gb}function h(){return new Db}var g=Ib&&!(Ca(Jb,"5.7")>=0),j;Qb=function(a){j=a};if(g){Lb=function(){return l.getObject()};Mb=function(a){l.cb(a)};Nb=function(){return n.getObject()};Ob=function(a){n.cb(a)};Pb=function(){return o.getObject()};Rb=function(){o.cb(c())};Sb=function(){return w.getObject()};Tb=function(a){w.cb(a)};Ub=function(){return t.getObject()};
Vb=function(a){t.cb(a)};var l=new Kb(0,600);l.Sa=a;var n=new Kb(0,600);n.Sa=b;var o=new Kb(0,600);o.Sa=c;var w=new Kb(0,600);w.Sa=d;var t=new Kb(0,600);t.Sa=h}else Lb=a,Mb=v,Nb=b,Ob=v,Pb=c,Rb=v,Sb=d,Tb=v,Ub=h,Vb=v})();var Wb={},J={},Xb={},Yb={};
function K(a,b,c,d,h){if(b)if(ga(b)){for(var g=0;g<b.length;g++)K(a,b[g],c,d,h);return m}else{var d=!!d,j=J;b in j||(j[b]=Lb());j=j[b];d in j||(j[d]=Lb(),j.v++);var j=j[d],l=la(a),n;j.ga++;if(j[l]){n=j[l];for(g=0;g<n.length;g++)if(j=n[g],j.xb==c&&j.wc==h){if(j.eb)break;return n[g].key}}else n=j[l]=Nb(),j.v++;g=Pb();g.src=a;j=Sb();j.Rb(c,g,a,b,d,h);c=j.key;g.key=c;n.push(j);Wb[c]=j;Xb[l]||(Xb[l]=Nb());Xb[l].push(j);a.addEventListener?(a==u||!a.Ld)&&a.addEventListener(b,g,d):a.attachEvent(b in Yb?Yb[b]:
Yb[b]="on"+b,g);return c}else e(Error("Invalid event type"))}function Zb(a,b,c,d,h){if(ga(b))for(var g=0;g<b.length;g++)Zb(a,b[g],c,d,h);else if(d=!!d,a=$b(a,b,d))for(g=0;g<a.length;g++)if(a[g].xb==c&&a[g].capture==d&&a[g].wc==h){ac(a[g].key);break}}
function ac(a){if(!Wb[a])return!1;var b=Wb[a];if(b.eb)return!1;var c=b.src,d=b.type,h=b.ge,g=b.capture;c.removeEventListener?(c==u||!c.Ld)&&c.removeEventListener(d,h,g):c.detachEvent&&c.detachEvent(d in Yb?Yb[d]:Yb[d]="on"+d,h);c=la(c);h=J[d][g][c];if(Xb[c]){var j=Xb[c];rb(j,b);j.length==0&&delete Xb[c]}b.eb=!0;h.$d=!0;bc(d,g,c,h);delete Wb[a];return!0}
function bc(a,b,c,d){if(!d.Dc&&d.$d){for(var h=0,g=0;h<d.length;h++)if(d[h].eb){var j=d[h].ge;j.src=m;Rb(j);Tb(d[h])}else h!=g&&(d[g]=d[h]),g++;d.length=g;d.$d=!1;g==0&&(Ob(d),delete J[a][b][c],J[a][b].v--,J[a][b].v==0&&(Mb(J[a][b]),delete J[a][b],J[a].v--),J[a].v==0&&(Mb(J[a]),delete J[a]))}}
function cc(a){var b,c=0,d=b==m;b=!!b;if(a==m)bb(Xb,function(a){for(var g=a.length-1;g>=0;g--){var h=a[g];if(d||b==h.capture)ac(h.key),c++}});else if(a=la(a),Xb[a])for(var a=Xb[a],h=a.length-1;h>=0;h--){var g=a[h];if(d||b==g.capture)ac(g.key),c++}}function $b(a,b,c){var d=J;return b in d&&(d=d[b],c in d&&(d=d[c],a=la(a),d[a]))?d[a]:m}
function dc(a,b,c,d,h){var g=1,b=la(b);if(a[b]){a.ga--;a=a[b];a.Dc?a.Dc++:a.Dc=1;try{for(var j=a.length,l=0;l<j;l++){var n=a[l];n&&!n.eb&&(g&=ec(n,h)!==!1)}}finally{a.Dc--,bc(c,d,b,a)}}return Boolean(g)}function ec(a,b){var c=a.handleEvent(b);a.Gd&&ac(a.key);return c}
Qb(function(a,b){if(!Wb[a])return!0;var c=Wb[a],d=c.type,h=J;if(!(d in h))return!0;var h=h[d],g,j;xb===k&&(xb=C&&!u.addEventListener);if(xb){g=b||da("window.event");var l=!0 in h,n=!1 in h;if(l){if(g.keyCode<0||g.returnValue!=k)return!0;a:{var o=!1;if(g.keyCode==0)try{g.keyCode=-1;break a}catch(w){o=!0}if(o||g.returnValue==k)g.returnValue=!0}}o=Ub();o.Rb(g,this);g=!0;try{if(l){for(var t=Nb(),B=o.currentTarget;B;B=B.parentNode)t.push(B);j=h[!0];j.ga=j.v;for(var L=t.length-1;!o.bb&&L>=0&&j.ga;L--)o.currentTarget=
t[L],g&=dc(j,t[L],d,!0,o);if(n){j=h[!1];j.ga=j.v;for(L=0;!o.bb&&L<t.length&&j.ga;L++)o.currentTarget=t[L],g&=dc(j,t[L],d,!1,o)}}else g=ec(c,o)}finally{if(t)t.length=0,Ob(t);o.F();Vb(o)}return g}d=new Db(b,this);try{g=ec(c,d)}finally{d.F()}return g});function M(a,b){this.x=fa(a)?a:0;this.y=fa(b)?b:0}M.prototype.ba=function(){return new M(this.x,this.y)};M.prototype.toString=function(){return"("+this.x+", "+this.y+")"};function fc(a,b){return new M(a.x-b.x,a.y-b.y)};function gc(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}gc.prototype.ba=function(){return new gc(this.top,this.right,this.bottom,this.left)};gc.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};gc.prototype.contains=function(a){return!this||!a?!1:a instanceof gc?a.left>=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 hc(a,b){this.width=a;this.height=b}s=hc.prototype;s.ba=function(){return new hc(this.width,this.height)};s.toString=function(){return"("+this.width+" x "+this.height+")"};s.ua=function(){return!(this.width*this.height)};s.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};s.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function ic(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}ic.prototype.ba=function(){return new ic(this.left,this.top,this.width,this.height)};ic.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
ic.prototype.Td=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)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};
ic.prototype.contains=function(a){return a instanceof ic?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};var jc;function kc(a){return(a=a.className)&&typeof a.split=="function"?a.split(/\s+/):[]}function lc(a,b){var c=kc(a),d=wb(arguments,1),h;h=c;for(var g=0,j=0;j<d.length;j++)pb(h,d[j])||(h.push(d[j]),g++);h=g==d.length;a.className=c.join(" ");return h}function mc(a,b){var c=kc(a),d=wb(arguments,1),h;h=c;for(var g=0,j=0;j<h.length;j++)pb(d,h[j])&&(vb(h,j--,1),g++);h=g==d.length;a.className=c.join(" ");return h};var nc=!C||ab();!D&&!C||C&&ab()||D&&F("1.9.1");var oc=C&&!F("9");function N(a){return a?new pc(O(a)):jc||(jc=new pc)}function P(a){return z(a)?document.getElementById(a):a}function qc(a,b){var c=b&&b!="*"?b.toUpperCase():"";return a.querySelectorAll&&a.querySelector&&(!E||rc(document)||F("528"))&&c?a.querySelectorAll(c+""):a.getElementsByTagName(c||"*")}function sc(a,b){bb(b,function(b,d){d=="style"?a.style.cssText=b:d=="class"?a.className=b:d=="for"?a.htmlFor=b:d in tc?a.setAttribute(tc[d],b):d.lastIndexOf("aria-",0)==0?a.setAttribute(d,b):a[d]=b})}
var tc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",maxlength:"maxLength",type:"type"};
function uc(a,b,c){function d(c){c&&b.appendChild(z(c)?a.createTextNode(c):c)}for(var h=2;h<c.length;h++){var g=c[h];if(ha(g)&&!(ka(g)&&g.nodeType>0)){var j;a:{if(g&&typeof g.length=="number")if(ka(g)){j=typeof g.item=="function"||typeof g.item=="string";break a}else if(ja(g)){j=typeof g.item=="function";break a}j=!1}kb(j?tb(g):g,d)}else d(g)}}function Q(a){return document.createElement(a)}function rc(a){return a.compatMode=="CSS1Compat"}function vc(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function wc(a){a&&a.parentNode&&a.parentNode.removeChild(a)}function xc(a){for(;a&&a.nodeType!=1;)a=a.nextSibling;return a}function yc(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 O(a){return a.nodeType==9?a:a.ownerDocument||a.document}
function zc(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 vc(a),a.appendChild(O(a).createTextNode(b))}var Ac={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Bc={IMG:" ",BR:"\n"};function Cc(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,ia(a)&&a>=0&&a<32768):!1}
function Dc(a){if(oc&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ec(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");oc||(a=a.replace(/ +/g," "));a!=" "&&(a=a.replace(/^\s*/,""));return a}function Fc(a){var b=[];Ec(a,b,!1);return b.join("")}
function Ec(a,b,c){if(!(a.nodeName in Ac))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 Bc)b.push(Bc[a.nodeName]);else for(a=a.firstChild;a;)Ec(a,b,c),a=a.nextSibling}function pc(a){this.m=a||u.document||document}s=pc.prototype;s.S=N;function Gc(a){return a.m}s.b=function(a){return z(a)?this.m.getElementById(a):a};
s.d=function(a,b,c){var d=this.m,h=arguments,g=h[0],j=h[1];if(!nc&&j&&(j.name||j.type)){g=["<",g];j.name&&g.push(' name="',wa(j.name),'"');if(j.type){g.push(' type="',wa(j.type),'"');var l={};fb(l,j);j=l;delete j.type}g.push(">");g=g.join("")}g=d.createElement(g);if(j)z(j)?g.className=j:ga(j)?lc.apply(m,[g].concat(j)):sc(g,j);h.length>2&&uc(d,g,h);return g};s.createElement=function(a){return this.m.createElement(a)};s.createTextNode=function(a){return this.m.createTextNode(a)};
function Hc(a){return rc(a.m)}function Ic(a){var b=a.m,a=!E&&rc(b)?b.documentElement:b.body,b=b.parentWindow||b.defaultView;return new M(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}s.appendChild=function(a,b){a.appendChild(b)};s.contains=yc;function R(a,b){var c=O(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,m))?c[b]||c.getPropertyValue(b):""}function Jc(a,b){return a.currentStyle?a.currentStyle[b]:m}function Kc(a,b){return R(a,b)||Jc(a,b)||a.style[b]}function Lc(a){var b=a.getBoundingClientRect();if(C)a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop;return b}
function Mc(a){if(C)return a.offsetParent;for(var b=O(a),c=Kc(a,"position"),d=c=="fixed"||c=="absolute",a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Kc(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return m}
function Nc(a){for(var b=new gc(0,Infinity,Infinity,0),c=N(a),d=c.m.body,h=c.m.documentElement,g=!E&&rc(c.m)?c.m.documentElement:c.m.body;a=Mc(a);)if((!C||a.clientWidth!=0)&&(!E||a.clientHeight!=0||a!=d)&&a!=d&&a!=h&&Kc(a,"overflow")!="visible"){var j=Oc(a),l;l=a;if(D&&!F("1.9")){var n=parseFloat(R(l,"borderLeftWidth"));if(Rc(l)){var o=l.offsetWidth-l.clientWidth-n-parseFloat(R(l,"borderRightWidth"));n+=o}l=new M(n,parseFloat(R(l,"borderTopWidth")))}else l=new M(l.clientLeft,l.clientTop);j.x+=l.x;
j.y+=l.y;b.top=Math.max(b.top,j.y);b.right=Math.min(b.right,j.x+a.clientWidth);b.bottom=Math.min(b.bottom,j.y+a.clientHeight);b.left=Math.max(b.left,j.x)}d=g.scrollLeft;g=g.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,g);c=c.m.parentWindow||c.m.defaultView||window;h=c.document;E&&!F("500")&&!Pa?(typeof c.innerHeight=="undefined"&&(c=window),h=c.innerHeight,a=c.document.documentElement.scrollHeight,c==c.top&&a<h&&(h-=15),c=new hc(c.innerWidth,h)):(c=rc(h)?h.documentElement:h.body,c=new hc(c.clientWidth,
c.clientHeight));b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,g+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:m}
function Oc(a){var b,c=O(a),d=Kc(a,"position"),h=D&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new M(0,0),j;b=c?c.nodeType==9?c:O(c):document;j=C&&!ab()&&!Hc(N(b))?b.body:b.documentElement;if(a==j)return g;if(a.getBoundingClientRect)b=Lc(a),a=Ic(N(c)),g.x=b.left+a.x,g.y=b.top+a.y;else if(c.getBoxObjectFor&&!h)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(j),g.x=b.screenX-a.screenX,g.y=b.screenY-a.screenY;else{b=a;do{g.x+=b.offsetLeft;
g.y+=b.offsetTop;b!=a&&(g.x+=b.clientLeft||0,g.y+=b.clientTop||0);if(E&&Kc(b,"position")=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(Oa||E&&d=="absolute")g.y-=c.body.offsetTop;for(b=a;(b=Mc(b))&&b!=c.body&&b!=j;)if(g.x-=b.scrollLeft,!Oa||b.tagName!="TR")g.y-=b.scrollTop}return g}function Sc(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}
function Tc(a){if(Kc(a,"display")!="none")return Uc(a);var b=a.style,c=b.display,d=b.visibility,h=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=Uc(a);b.display=c;b.position=h;b.visibility=d;return a}function Uc(a){var b=a.offsetWidth,c=a.offsetHeight,d=E&&!b&&!c;return(!fa(b)||d)&&a.getBoundingClientRect?(a=Lc(a),new hc(a.right-a.left,a.bottom-a.top)):new hc(b,c)}function Vc(a){var b=Oc(a),a=Tc(a);return new ic(b.x,b.y,a.width,a.height)}
function Wc(a,b){a.style.display=b?"":"none"}function Xc(a){C?a.cssText=".goog-tabpane-clear { clear: both; height: 0px; overflow: hidden }":a[E?"innerText":"innerHTML"]=".goog-tabpane-clear { clear: both; height: 0px; overflow: hidden }"}function Rc(a){return"rtl"==Kc(a,"direction")}var Yc=D?"MozUserSelect":E?"WebkitUserSelect":m;
function Zc(a,b,c){c=!c?a.getElementsByTagName("*"):m;if(Yc){if(b=b?"none":"",a.style[Yc]=b,c)for(var a=0,d;d=c[a];a++)d.style[Yc]=b}else if(C||Oa)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)}function $c(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var h=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return h}}
var ad={thin:2,medium:4,thick:6};function bd(a,b){if(Jc(a,b+"Style")=="none")return 0;var c=Jc(a,b+"Width");return c in ad?ad[c]:$c(a,c)};function cd(a){this.Rd=a;this.r=[]}A(cd,Ab);var dd=[];s=cd.prototype;s.g=function(a,b,c,d,h){ga(b)||(dd[0]=b,b=dd);for(var g=0;g<b.length;g++)this.r.push(K(a,b[g],c||this,d||!1,h||this.Rd||this));return this};s.ha=function(a,b,c,d,h){if(ga(b))for(var g=0;g<b.length;g++)this.ha(a,b[g],c,d,h);else{a:{c=c||this;h=h||this.Rd||this;d=!!d;if(a=$b(a,b,d))for(b=0;b<a.length;b++)if(!a[b].eb&&a[b].xb==c&&a[b].capture==d&&a[b].wc==h){a=a[b];break a}a=m}if(a)a=a.key,ac(a),rb(this.r,a)}return this};
s.rd=function(){kb(this.r,ac);this.r.length=0};s.e=function(){cd.a.e.call(this);this.rd()};s.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};var ed={};function fd(){}y(fd);fd.prototype.Oe=0;fd.p();function gd(){}A(gd,Ab);s=gd.prototype;s.Ld=!0;s.Fc=m;s.vd=ba("Fc");s.addEventListener=function(a,b,c,d){K(this,a,b,c,d)};s.removeEventListener=function(a,b,c,d){Zb(this,a,b,c,d)};
s.dispatchEvent=function(a){var b=a.type||a,c=J;if(b in c){if(z(a))a=new H(a,this);else if(a instanceof H)a.target=a.target||this;else{var d=a,a=new H(b,this);fb(a,d)}var d=1,h,c=c[b],b=!0 in c,g;if(b){h=[];for(g=this;g;g=g.Fc)h.push(g);g=c[!0];g.ga=g.v;for(var j=h.length-1;!a.bb&&j>=0&&g.ga;j--)a.currentTarget=h[j],d&=dc(g,h[j],a.type,!0,a)&&a.$b!=!1}if(!1 in c)if(g=c[!1],g.ga=g.v,b)for(j=0;!a.bb&&j<h.length&&g.ga;j++)a.currentTarget=h[j],d&=dc(g,h[j],a.type,!1,a)&&a.$b!=!1;else for(h=this;!a.bb&&
h&&g.ga;h=h.Fc)a.currentTarget=h,d&=dc(g,h,a.type,!1,a)&&a.$b!=!1;a=Boolean(d)}else a=!0;return a};s.e=function(){gd.a.e.call(this);cc(this);this.Fc=m};function hd(a){this.ca=a||N();this.ac=id}A(hd,gd);hd.prototype.Je=fd.p();var id=m;function jd(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"}e(Error("Invalid component state"))}s=hd.prototype;s.xc=m;s.k=!1;s.n=m;s.ac=m;s.od=m;s.q=m;s.A=m;s.qa=m;s.hf=!1;
function kd(a){return a.xc||(a.xc=":"+(a.Je.Oe++).toString(36))}s.b=p("n");function ld(a){return a.rb||(a.rb=new cd(a))}function md(a,b){a==b&&e(Error("Unable to set parent component"));b&&a.q&&a.xc&&nd(a.q,a.xc)&&a.q!=b&&e(Error("Unable to set parent component"));a.q=b;hd.a.vd.call(a,b)}s.getParent=p("q");s.vd=function(a){this.q&&this.q!=a&&e(Error("Method not supported"));hd.a.vd.call(this,a)};s.S=p("ca");s.d=function(){this.n=this.ca.createElement("div")};
function S(a,b,c){a.k&&e(Error("Component already rendered"));a.n||a.d();b?b.insertBefore(a.n,c||m):a.ca.m.body.appendChild(a.n);(!a.q||a.q.k)&&a.i()}s.i=function(){this.k=!0;od(this,function(a){!a.k&&a.b()&&a.i()})};s.ja=function(){od(this,function(a){a.k&&a.ja()});this.rb&&this.rb.rd();this.k=!1};s.e=function(){hd.a.e.call(this);this.k&&this.ja();this.rb&&(this.rb.F(),delete this.rb);od(this,function(a){a.F()});!this.hf&&this.n&&wc(this.n);this.q=this.od=this.n=this.qa=this.A=m};
s.Jb=function(a,b){this.mb(a,pd(this),b)};
s.mb=function(a,b,c){a.k&&(c||!this.k)&&e(Error("Component already rendered"));(b<0||b>pd(this))&&e(Error("Child component index out of bounds"));if(!this.qa||!this.A)this.qa={},this.A=[];if(a.getParent()==this)this.qa[kd(a)]=a,rb(this.A,a);else{var d=this.qa,h=kd(a);h in d&&e(Error('The object already contains the key "'+h+'"'));d[h]=a}md(a,this);vb(this.A,b,0,a);a.k&&this.k&&a.getParent()==this?(c=this.w(),c.insertBefore(a.b(),c.childNodes[b]||m)):c?(this.n||this.d(),b=T(this,b+1),S(a,this.w(),
b?b.n:m)):this.k&&!a.k&&a.n&&a.i()};s.w=p("n");function qd(a){if(a.ac==m)a.ac=Rc(a.k?a.n:a.ca.m.body);return a.ac}s.Ab=function(a){this.k&&e(Error("Component already rendered"));this.ac=a};function pd(a){return a.A?a.A.length:0}function nd(a,b){return a.qa&&b?(b in a.qa?a.qa[b]:k)||m:m}function T(a,b){return a.A?a.A[b]||m:m}function od(a,b,c){a.A&&kb(a.A,b,c)}function rd(a,b){return a.A&&b?jb(a.A,b):-1}
s.removeChild=function(a,b){if(a){var c=z(a)?a:kd(a),a=nd(this,c);if(c&&a){var d=this.qa;c in d&&delete d[c];rb(this.A,a);b&&(a.ja(),a.n&&wc(a.n));md(a,m)}}a||e(Error("Child is not in parent component"));return a};function sd(a,b){a.setAttribute("role",b);a.zf=b}function U(a,b,c){a.setAttribute("aria-"+b,c)};function td(){}var ud;y(td);s=td.prototype;s.la=aa();s.d=function(a){var b=a.S().d("div",this.Ua(a).join(" "),a.Ca);this.ud(a,b);return b};s.w=function(a){return a};s.Nb=function(a,b,c){if(a=a.b?a.b():a)if(C&&!F("7")){var d=vd(kc(a),b);d.push(b);ra(c?lc:mc,a).apply(m,d)}else c?lc(a,b):mc(a,b)};s.tb=function(a){qd(a)&&this.Ab(a.b(),!0);a.isEnabled()&&this.gb(a,a.s)};s.ud=function(a,b){a.isEnabled()||this.T(b,1,!0);a.o&8&&this.T(b,8,!0);a.u&16&&this.T(b,16,a.vb());a.u&64&&this.T(b,64,!!(a.o&64))};
s.Jc=function(a,b){Zc(a,!b,!C&&!Oa)};s.Ab=function(a,b){this.Nb(a,this.j()+"-rtl",b)};s.Ya=function(a){var b;return a.u&32&&(b=a.C())?Cc(b):!1};s.gb=function(a,b){var c;if(a.u&32&&(c=a.C())){if(!b&&a.o&32){try{c.blur()}catch(d){}a.o&32&&a.Va(m)}if(Cc(c)!=b)b?c.tabIndex=0:(c.tabIndex=-1,c.removeAttribute("tabIndex"))}};s.Z=function(a,b){Wc(a,b)};s.O=function(a,b,c){var d=a.b();if(d){var h=this.nc(b);h&&this.Nb(a,h,c);this.T(d,b,c)}};
s.T=function(a,b,c){ud||(ud={1:"disabled",8:"selected",16:"checked",64:"expanded"});(b=ud[b])&&U(a,b,c)};s.N=function(a,b){var c=this.w(a);if(c&&(vc(c),b))if(z(b))zc(c,b);else{var d=function(a){if(a){var b=O(c);c.appendChild(z(a)?b.createTextNode(a):a)}};ga(b)?kb(b,d):ha(b)&&!("nodeType"in b)?kb(tb(b),d):d(b)}};s.C=function(a){return a.b()};s.j=r("goog-control");
s.Ua=function(a){var b=this.j(),c=[b],d=this.j();d!=b&&c.push(d);b=a.o;for(d=[];b;){var h=b&-b;d.push(this.nc(h));b&=~h}c.push.apply(c,d);(a=a.ka)&&c.push.apply(c,a);C&&!F("7")&&c.push.apply(c,vd(c));return c};function vd(a,b){var c=[];b&&(a=a.concat([b]));kb([],function(d){ob(d,ra(pb,a))&&(!b||pb(d,b))&&c.push(d.join("_"))});return c}s.nc=function(a){if(!this.Id){var b=this.j();this.Id={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}}return this.Id[a]};function wd(a,b){a||e(Error("Invalid class name "+a));ja(b)||e(Error("Invalid decorator function "+b))}var xd={};function yd(a,b,c,d,h){if(!C&&(!E||!F("525")))return!0;if(Ja&&h)return zd(a);if(h&&!d)return!1;if(!c&&(b==17||b==18))return!1;if(C&&d&&b==a)return!1;switch(a){case 13:return!(C&&ab());case 27:return!E}return zd(a)}
function zd(a){if(a>=48&&a<=57)return!0;if(a>=96&&a<=106)return!0;if(a>=65&&a<=90)return!0;if(E&&a==0)return!0;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!0;default:return!1}};function Ad(a,b){a&&Bd(this,a,b)}A(Ad,gd);s=Ad.prototype;s.n=m;s.Bc=m;s.kd=m;s.Cc=m;s.Ja=-1;s.Ha=-1;
var Cd={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},Dd={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},Ed={61:187,59:186},Fd=C||E&&F("525");s=Ad.prototype;
s.De=function(a){if(E&&(this.Ja==17&&!a.ctrlKey||this.Ja==18&&!a.altKey))this.Ha=this.Ja=-1;Fd&&!yd(a.keyCode,this.Ja,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):this.Ha=D&&a.keyCode in Ed?Ed[a.keyCode]:a.keyCode};s.Ee=function(){this.Ha=this.Ja=-1};
s.handleEvent=function(a){var b=a.V,c,d;C&&a.type=="keypress"?(c=this.Ha,d=c!=13&&c!=27?b.keyCode:0):E&&a.type=="keypress"?(c=this.Ha,d=b.charCode>=0&&b.charCode<63232&&zd(c)?b.charCode:0):Oa?(c=this.Ha,d=zd(c)?b.keyCode:0):(c=b.keyCode||this.Ha,d=b.charCode||0,Ja&&d==63&&!c&&(c=191));var h=c,g=b.keyIdentifier;c?c>=63232&&c in Cd?h=Cd[c]:c==25&&a.shiftKey&&(h=9):g&&g in Dd&&(h=Dd[g]);a=h==this.Ja;this.Ja=h;b=new Gd(h,d,a,b);try{this.dispatchEvent(b)}finally{b.F()}};s.b=p("n");
function Bd(a,b,c){a.Cc&&a.detach();a.n=b;a.Bc=K(a.n,"keypress",a,c);a.kd=K(a.n,"keydown",a.De,c,a);a.Cc=K(a.n,"keyup",a.Ee,c,a)}s.detach=function(){if(this.Bc)ac(this.Bc),ac(this.kd),ac(this.Cc),this.Cc=this.kd=this.Bc=m;this.n=m;this.Ha=this.Ja=-1};s.e=function(){Ad.a.e.call(this);this.detach()};function Gd(a,b,c,d){d&&this.Rb(d,k);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}A(Gd,Db);function V(a,b,c){hd.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=la(b);if(d=xd[d])break;b=b.a?b.a.constructor:m}b=d?ja(d.p)?d.p():new d:m}this.f=b;this.Ca=a}A(V,hd);s=V.prototype;s.Ca=m;s.o=0;s.u=39;s.Fd=255;s.zd=0;s.s=!0;s.ka=m;s.sc=!0;s.Tc=!1;s.qd=m;function Hd(a,b){a.k&&b!=a.sc&&Id(a,b);a.sc=b}s.C=function(){return this.f.C(this)};s.oc=function(){return this.W||(this.W=new Ad)};function Jd(a,b){if(b)a.ka?pb(a.ka,b)||a.ka.push(b):a.ka=[b],a.f.Nb(a,b,!0)}
s.Nb=function(a,b){if(b)Jd(this,a);else if(a&&this.ka){rb(this.ka,a);if(this.ka.length==0)this.ka=m;this.f.Nb(this,a,!1)}};s.d=function(){var a=this.f.d(this);this.n=a;var b=this.qd||this.f.la();b&&sd(a,b);this.Tc||this.f.Jc(a,!1);this.s||this.f.Z(a,!1)};s.w=function(){return this.f.w(this.b())};s.i=function(){V.a.i.call(this);this.f.tb(this);if(this.u&-2&&(this.sc&&Id(this,!0),this.u&32)){var a=this.C();if(a){var b=this.oc();Bd(b,a);ld(this).g(b,"key",this.sa).g(a,"focus",this.rc).g(a,"blur",this.Va)}}};
function Id(a,b){var c=ld(a),d=a.b();b?(c.g(d,"mouseover",a.uc).g(d,"mousedown",a.Ea).g(d,"mouseup",a.Fa).g(d,"mouseout",a.tc),C&&c.g(d,"dblclick",a.Qd)):(c.ha(d,"mouseover",a.uc).ha(d,"mousedown",a.Ea).ha(d,"mouseup",a.Fa).ha(d,"mouseout",a.tc),C&&c.ha(d,"dblclick",a.Qd))}s.ja=function(){V.a.ja.call(this);this.W&&this.W.detach();this.s&&this.isEnabled()&&this.f.gb(this,!1)};s.e=function(){V.a.e.call(this);this.W&&(this.W.F(),delete this.W);delete this.f;this.ka=this.Ca=m};
s.N=function(a){this.f.N(this.b(),a);this.Ca=a};s.Ob=function(){var a=this.Ca;if(!a)return"";a=z(a)?a:ga(a)?lb(a,Fc).join(""):Dc(a);return ua(a)};s.Ab=function(a){V.a.Ab.call(this,a);var b=this.b();b&&this.f.Ab(b,a)};s.Jc=function(a){this.Tc=a;var b=this.b();b&&this.f.Jc(b,a)};s.Z=function(a,b){if(b||this.s!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.b();c&&this.f.Z(c,a);this.isEnabled()&&this.f.gb(this,a);this.s=a;return!0}return!1};s.isEnabled=function(){return!(this.o&1)};
s.wa=function(a){Kd(this,2,a)&&this.O(2,a)};s.ub=function(){return!!(this.o&4)};s.setActive=function(a){Kd(this,4,a)&&this.O(4,a)};s.xd=function(a){Kd(this,8,a)&&this.O(8,a)};s.vb=function(){return!!(this.o&16)};s.bc=function(a){Kd(this,16,a)&&this.O(16,a)};s.t=function(a){Kd(this,64,a)&&this.O(64,a)};s.O=function(a,b){if(this.u&a&&b!=!!(this.o&a))this.f.O(this,a,b),this.o=b?this.o|a:this.o&~a};
function Ld(a,b,c){a.k&&a.o&b&&!c&&e(Error("Component already rendered"));!c&&a.o&b&&a.O(b,!1);a.u=c?a.u|b:a.u&~b}function W(a,b){return!!(a.Fd&b)&&!!(a.u&b)}function Kd(a,b,c){return!!(a.u&b)&&!!(a.o&b)!=c&&(!(a.zd&b)||a.dispatchEvent(jd(b,c)))&&!a.Lb}s.uc=function(a){(!a.relatedTarget||!yc(this.b(),a.relatedTarget))&&this.dispatchEvent("enter")&&this.isEnabled()&&W(this,2)&&this.wa(!0)};
s.tc=function(a){if((!a.relatedTarget||!yc(this.b(),a.relatedTarget))&&this.dispatchEvent("leave"))W(this,4)&&this.setActive(!1),W(this,2)&&this.wa(!1)};s.Ea=function(a){if(this.isEnabled()&&(W(this,2)&&this.wa(!0),Fb(a)&&(!E||!Ja||!a.ctrlKey)))W(this,4)&&this.setActive(!0),this.f.Ya(this)&&this.C().focus();!this.Tc&&Fb(a)&&(!E||!Ja||!a.ctrlKey)&&a.preventDefault()};s.Fa=function(a){this.isEnabled()&&(W(this,2)&&this.wa(!0),this.ub()&&this.ab(a)&&W(this,4)&&this.setActive(!1))};
s.Qd=function(a){this.isEnabled()&&this.ab(a)};s.ab=function(a){W(this,16)&&this.bc(!this.vb());W(this,8)&&this.xd(!0);W(this,64)&&this.t(!(this.o&64));var b=new H("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey","platformModifierKey"],d,h=0;d=c[h];h++)b[d]=a[d];return this.dispatchEvent(b)};s.rc=function(){W(this,32)&&Kd(this,32,!0)&&this.O(32,!0)};s.Va=function(){W(this,4)&&this.setActive(!1);W(this,32)&&Kd(this,32,!1)&&this.O(32,!1)};
s.sa=function(a){return this.s&&this.isEnabled()&&this.Wa(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};s.Wa=function(a){return a.keyCode==13&&this.ab(a)};ja(V)||e(Error("Invalid component class "+V));ja(td)||e(Error("Invalid renderer class "+td));var Md=la(V);xd[Md]=td;wd("goog-control",function(){return new V(m)});var Nd={};function Od(){}Od.prototype.id=v;Od.prototype.Kb=function(a){if(this.id()>a.id())return 1;else if(this.id()<a.id())return-1;return 0};function X(a,b,c,d){V.call(this,"",c,d);this.ic=a;this.U=b}A(X,V);X.prototype.item=p("ic");X.prototype.i=function(){X.a.i.call(this);K(this.b(),"click",function(){this.U(this.ic)},!1,this)};X.prototype.update=function(a){this.N(a.name())};function Pd(a,b){this.ia=a;this.Kd=b}
function Qd(a,b){var c=0,d=0,h=b.length;for(b.sort(function(a,b){return a.Kb(b)});c!=pd(a.ia)&&d!=h;){var g=b[d],j=T(a.ia,c),l=j.item(),l=g.Kb(l);l==-1?(g=a.Kd.Ub(g),a.ia.mb(g,c,!0),d++,c++):l==0?(j.update(b[d]),c++,d++):(g=a.ia.removeChild(j,!0),delete f)}for(;c<pd(a.ia);)g=a.ia.removeChild(T(a.ia,c),!0),delete g;for(;d<h;d++)g=a.Kd.Ub(b[d]),a.ia.Jb(g,!0)};function Rd(a){this.hc=a.device_id;this.lb=a.manufacturer_id;this.Fb=a.device;this.Hb=a.manufacturer}A(Rd,Od);Rd.prototype.id=function(){return Sd(this.lb,4)+":"+Sd(this.hc,8)};function Sd(a,b){a<0&&(a=4294967295+a+1);for(var c=a.toString(16);c.length<b;)c="0"+c;return c}Rd.prototype.toString=function(){var a="";this.Hb&&(a+=this.Hb);this.Hb&&this.Fb&&(a+=", ");this.Fb&&(a+=this.Fb);if(this.Hb||this.Fb)a+=" [";a+=Sd(this.lb,4)+":"+Sd(this.hc,8);if(this.Hb||this.Fb)a+="]";return a};
Rd.prototype.Kb=function(a){if(this.lb>a.lb)return 1;else if(this.lb<a.lb)return-1;return this.hc-a.hc};function Td(a,b,c,d){X.call(this,a,b,c,d);this.N(a.toString())}A(Td,X);Td.prototype.i=function(){Td.a.i.call(this);this.b().title=this.item().toString()};Td.prototype.update=function(a){this.N(a.toString())};function Ud(a){this.U=a}Ud.prototype.Ub=function(a){return new Td(a,this.U)};function Vd(a){this.Gb=a.id;this.oa=a.name;this.oe=a.hint}A(Vd,Od);Vd.prototype.id=p("Gb");Vd.prototype.hint=p("oe");Vd.prototype.toString=p("oa");Vd.prototype.Kb=function(a){return this.oa<a.oa?-1:this.oa>a.oa?1:0};function Wd(a,b,c,d){X.call(this,a,b,c,d);this.N(a.toString())}A(Wd,X);Wd.prototype.i=function(){Xd.a.i.call(this);this.b().title=this.item().toString()};Wd.prototype.update=function(a){this.N(a.toString())};function Yd(a){this.U=a}Yd.prototype.Ub=function(a){return new Wd(a,this.U)};function Zd(){}A(Zd,td);y(Zd);s=Zd.prototype;s.la=r("button");s.T=function(a,b,c){b==16?U(a,"pressed",c):Zd.a.T.call(this,a,b,c)};s.d=function(a){var b=Zd.a.d.call(this,a),c=a.qc();c&&this.yd(b,c);(c=a.ea())&&this.Na(b,c);a.u&16&&this.T(b,16,a.vb());return b};s.ea=v;s.Na=v;s.qc=function(a){return a.title};s.yd=function(a,b){if(a)a.title=b||""};s.j=r("goog-button");function $d(){}A($d,Zd);y($d);s=$d.prototype;s.la=aa();s.d=function(a){Hd(a,!1);a.Fd&=-256;Ld(a,32,!1);return a.S().d("button",{"class":this.Ua(a).join(" "),disabled:!a.isEnabled(),title:a.qc()||"",value:a.ea()||""},a.Ob()||"")};s.tb=function(a){ld(a).g(a.b(),"click",a.ab)};s.Jc=v;s.Ab=v;s.Ya=function(a){return a.isEnabled()};s.gb=v;s.O=function(a,b,c){$d.a.O.call(this,a,b,c);if((a=a.b())&&b==1)a.disabled=c};s.ea=function(a){return a.value};s.Na=function(a,b){if(a)a.value=b};s.T=v;function Y(a,b,c){V.call(this,a,b||$d.p(),c)}A(Y,V);s=Y.prototype;s.ea=p("gc");s.Na=function(a){this.gc=a;this.f.Na(this.b(),a)};s.qc=p("le");s.yd=function(a){this.le=a;this.f.yd(this.b(),a)};s.e=function(){Y.a.e.call(this);delete this.gc;delete this.le};s.i=function(){Y.a.i.call(this);if(this.u&32){var a=this.C();a&&ld(this).g(a,"keyup",this.Wa)}};s.Wa=function(a){return a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup"?this.ab(a):a.keyCode==32};wd("goog-button",function(){return new Y(m)});function ae(a){this.element=P(a)}function be(a){a.element.style.display="block"}function ce(a){a.element.style.display="none"}function de(a){a.element.innerHTML='<div align="center"><img src="/loader.gif"></div>'}function fe(a){a.element.innerHTML=""};function ge(a){if(typeof a.ra=="function")return a.ra();if(z(a))return a.split("");if(ha(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return cb(a)}function he(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ha(a)||z(a))kb(a,b,c);else{var d;if(typeof a.Qb=="function")d=a.Qb();else if(typeof a.ra!="function")if(ha(a)||z(a)){d=[];for(var h=a.length,g=0;g<h;g++)d.push(g)}else d=db(a);else d=k;for(var h=ge(a),g=h.length,j=0;j<g;j++)b.call(c,h[j],d&&d[j],a)}};var ie=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function je(a,b){this.zc=a||1;this.dc=b||ke;this.Uc=qa(this.bf,this);this.nd=sa()}A(je,gd);je.prototype.enabled=!1;var ke=u.window;s=je.prototype;s.$=m;s.bf=function(){if(this.enabled){var a=sa()-this.nd;if(a>0&&a<this.zc*0.8)this.$=this.dc.setTimeout(this.Uc,this.zc-a);else if(this.dispatchEvent(le),this.enabled)this.$=this.dc.setTimeout(this.Uc,this.zc),this.nd=sa()}};s.start=function(){this.enabled=!0;if(!this.$)this.$=this.dc.setTimeout(this.Uc,this.zc),this.nd=sa()};
s.stop=function(){this.enabled=!1;if(this.$)this.dc.clearTimeout(this.$),this.$=m};s.e=function(){je.a.e.call(this);this.stop();delete this.dc};var le="tick";function me(a){ja(a)||(a&&typeof a.handleEvent=="function"?a=qa(a.handleEvent,a):e(Error("Invalid listener argument")));ke.setTimeout(a,1E3)};function ne(a,b){this.M={};this.r=[];var c=arguments.length;if(c>1){c%2&&e(Error("Uneven number of arguments"));for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Qc(a)}s=ne.prototype;s.v=0;s.Cd=0;s.L=p("v");s.ra=function(){oe(this);for(var a=[],b=0;b<this.r.length;b++)a.push(this.M[this.r[b]]);return a};s.Qb=function(){oe(this);return this.r.concat()};s.Vc=function(a){return Object.prototype.hasOwnProperty.call(this.M,a)};s.ua=function(){return this.v==0};
s.clear=function(){this.M={};this.Cd=this.v=this.r.length=0};s.remove=function(a){return Object.prototype.hasOwnProperty.call(this.M,a)?(delete this.M[a],this.v--,this.Cd++,this.r.length>2*this.v&&oe(this),!0):!1};
function oe(a){if(a.v!=a.r.length){for(var b=0,c=0;b<a.r.length;){var d=a.r[b];Object.prototype.hasOwnProperty.call(a.M,d)&&(a.r[c++]=d);b++}a.r.length=c}if(a.v!=a.r.length){for(var h={},c=b=0;b<a.r.length;)d=a.r[b],Object.prototype.hasOwnProperty.call(h,d)||(a.r[c++]=d,h[d]=1),b++;a.r.length=c}}s.set=function(a,b){Object.prototype.hasOwnProperty.call(this.M,a)||(this.v++,this.r.push(a),this.Cd++);this.M[a]=b};
s.Qc=function(a){var b;a instanceof ne?(b=a.Qb(),a=a.ra()):(b=db(a),a=cb(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};s.ba=function(){return new ne(this)};function pe(a){this.M=new ne;a&&this.Qc(a)}function qe(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+la(a):b.substr(0,1)+a}s=pe.prototype;s.L=function(){return this.M.L()};s.add=function(a){this.M.set(qe(a),a)};s.Qc=function(a){for(var a=ge(a),b=a.length,c=0;c<b;c++)this.add(a[c])};s.rd=function(a){for(var a=ge(a),b=a.length,c=0;c<b;c++)this.remove(a[c])};s.remove=function(a){return this.M.remove(qe(a))};s.clear=function(){this.M.clear()};s.ua=function(){return this.M.ua()};
s.contains=function(a){return this.M.Vc(qe(a))};s.Td=function(a){for(var b=new pe,a=ge(a),c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};s.ra=function(){return this.M.ra()};s.ba=function(){return new pe(this)};function re(a){return se(a||arguments.callee.caller,[])}
function se(a,b){var c=[];if(pb(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(te(a)+"(");for(var d=a.arguments,h=0;h<d.length;h++){h>0&&c.push(", ");var g;g=d[h];switch(typeof g){case "object":g=g?"object":"null";break;case "string":break;case "number":g=String(g);break;case "boolean":g=g?"true":"false";break;case "function":g=(g=te(g))?g:"[fn]";break;default:g=typeof g}g.length>40&&(g=g.substr(0,40)+"...");c.push(g)}b.push(a);c.push(")\n");try{c.push(se(a.caller,b))}catch(j){c.push("[exception trying to get caller]\n")}}else a?
c.push("[...long stack...]"):c.push("[end]");return c.join("")}function te(a){if(ue[a])return ue[a];a=String(a);if(!ue[a]){var b=/function ([^\(]+)/.exec(a);ue[a]=b?b[1]:"[Anonymous]"}return ue[a]}var ue={};function ve(a,b,c,d,h){this.reset(a,b,c,d,h)}ve.prototype.$e=0;ve.prototype.Od=m;ve.prototype.Nd=m;var we=0;ve.prototype.reset=function(a,b,c,d,h){this.$e=typeof h=="number"?h:we++;this.Bf=d||sa();this.Tb=a;this.Me=b;this.xf=c;delete this.Od;delete this.Nd};ve.prototype.je=ba("Tb");function xe(a){this.Ne=a}xe.prototype.q=m;xe.prototype.Tb=m;xe.prototype.A=m;xe.prototype.Sd=m;function ye(a,b){this.name=a;this.value=b}ye.prototype.toString=p("name");var ze=new ye("SEVERE",1E3),Ae=new ye("WARNING",900),Be=new ye("INFO",800),Ce=new ye("CONFIG",700),De=new ye("FINE",500),Ee=new ye("FINEST",300);s=xe.prototype;s.getParent=p("q");s.je=ba("Tb");function Fe(a){if(a.Tb)return a.Tb;if(a.q)return Fe(a.q);ib("Root logger has no level set.");return m}
s.log=function(a,b,c){if(a.value>=Fe(this).value){a=this.ye(a,b,c);b="log:"+a.Me;u.console&&(u.console.timeStamp?u.console.timeStamp(b):u.console.markTimeline&&u.console.markTimeline(b));u.msWriteProfilerMark&&u.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.Sd)for(var h=0,g=k;g=c.Sd[h];h++)g(d);b=b.getParent()}}};
s.ye=function(a,b,c){var d=new ve(a,String(b),this.Ne);if(c){d.Od=c;var h;var g=arguments.callee.caller;try{var j;var l=da("window.location.href");if(z(c))j={message:c,name:"Unknown error",lineNumber:"Not available",fileName:l,stack:"Not available"};else{var n,o,w=!1;try{n=c.lineNumber||c.vf||"Not available"}catch(t){n="Not available",w=!0}try{o=c.fileName||c.filename||c.sourceURL||l}catch(B){o="Not available",w=!0}j=w||!c.lineNumber||!c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:n,
fileName:o,stack:c.stack||"Not available"}:c}h="Message: "+wa(j.message)+'\nUrl: <a href="view-source:'+j.fileName+'" target="_new">'+j.fileName+"</a>\nLine: "+j.lineNumber+"\n\nBrowser stack:\n"+wa(j.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+wa(re(g)+"-> ")}catch(L){h="Exception trying to expose exception! You win, we lose. "+L}d.Nd=h}return d};s.info=function(a,b){this.log(Be,a,b)};function Ge(a,b){a.log(De,b,k)}s.cc=ba("q");var He={},Ie=m;
function Je(a){Ie||(Ie=new xe(""),He[""]=Ie,Ie.je(Ce));var b;if(!(b=He[a])){b=new xe(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=Je(a.substr(0,c));if(!c.A)c.A={};c.A[d]=b;b.cc(c);He[a]=b}return b};function Ke(){if(D)this.Ra={},this.Pc={},this.Lc=[]}Ke.prototype.D=Je("goog.net.xhrMonitor");Ke.prototype.da=D;function Le(a){var b=Me;if(b.da){var c=z(a)?a:ka(a)?la(a):"";b.D.log(Ee,"Pushing context: "+a+" ("+c+")",k);b.Lc.push(c)}}function Ne(){var a=Me;if(a.da){var b=a.Lc.pop();a.D.log(Ee,"Popping context: "+b,k);Oe(a,b)}}function Pe(a){var b=Me;if(b.da){a=la(a);Ge(b.D,"Opening XHR : "+a);for(var c=0;c<b.Lc.length;c++){var d=b.Lc[c];Qe(b.Ra,d,a);Qe(b.Pc,a,d)}}}
function Oe(a,b){var c=a.Pc[b],d=a.Ra[b];c&&d&&(a.D.log(Ee,"Updating dependent contexts",k),kb(c,function(a){kb(d,function(b){Qe(this.Ra,a,b);Qe(this.Pc,b,a)},this)},a))}function Qe(a,b,c){a[b]||(a[b]=[]);pb(a[b],c)||a[b].push(c)}var Me=new Ke;function Re(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.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{return eval("("+a+")")}catch(b){}e(Error("Invalid JSON string: "+a))};function Se(){}Se.prototype.kc=m;var Te;function Ue(){}A(Ue,Se);function Ve(a){return(a=We(a))?new ActiveXObject(a):new XMLHttpRequest}function Xe(a){var b={};We(a)&&(b[0]=!0,b[1]=!0);return b}Ue.prototype.hd=m;
function We(a){if(!a.hd&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.hd=d}catch(h){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return a.hd}Te=new Ue;function Ye(a){this.headers=new ne;this.Eb=a||m}A(Ye,gd);Ye.prototype.D=Je("goog.net.XhrIo");var Ze=/^https?:?$/i;s=Ye.prototype;s.ya=!1;s.h=m;s.Oc=m;s.wb="";s.Wd="";s.Sb=0;s.Ia="";s.$c=!1;s.yc=!1;s.jd=!1;s.Xa=!1;s.Mc=0;s.jb=m;s.he="";s.jf=!1;
s.send=function(a,b,c,d){this.h&&e(Error("[goog.net.XhrIo] Object is active with another request"));b=b?b.toUpperCase():"GET";this.wb=a;this.Ia="";this.Sb=0;this.Wd=b;this.$c=!1;this.ya=!0;this.h=this.Eb?Ve(this.Eb):Ve(Te);this.Oc=this.Eb?this.Eb.kc||(this.Eb.kc=Xe(this.Eb)):Te.kc||(Te.kc=Xe(Te));Pe(this.h);this.h.onreadystatechange=qa(this.ce,this);try{Ge(this.D,$e(this,"Opening Xhr")),this.jd=!0,this.h.open(b,a,!0),this.jd=!1}catch(h){Ge(this.D,$e(this,"Error opening Xhr: "+h.message));af(this,
h);return}var a=c||"",g=this.headers.ba();d&&he(d,function(a,b){g.set(b,a)});b=="POST"&&!g.Vc("Content-Type")&&g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");he(g,function(a,b){this.h.setRequestHeader(b,a)},this);if(this.he)this.h.responseType=this.he;if("withCredentials"in this.h)this.h.withCredentials=this.jf;try{if(this.jb)ke.clearTimeout(this.jb),this.jb=m;if(this.Mc>0)Ge(this.D,$e(this,"Will abort after "+this.Mc+"ms if incomplete")),this.jb=ke.setTimeout(qa(this.cf,
this),this.Mc);Ge(this.D,$e(this,"Sending request"));this.yc=!0;this.h.send(a);this.yc=!1}catch(j){Ge(this.D,$e(this,"Send error: "+j.message)),af(this,j)}};s.dispatchEvent=function(a){if(this.h){Le(this.h);try{return Ye.a.dispatchEvent.call(this,a)}finally{Ne()}}else return Ye.a.dispatchEvent.call(this,a)};s.cf=function(){if(typeof ca!="undefined"&&this.h)this.Ia="Timed out after "+this.Mc+"ms, aborting",this.Sb=8,Ge(this.D,$e(this,this.Ia)),this.dispatchEvent("timeout"),this.abort(8)};
function af(a,b){a.ya=!1;if(a.h)a.Xa=!0,a.h.abort(),a.Xa=!1;a.Ia=b;a.Sb=5;bf(a);cf(a)}function bf(a){if(!a.$c)a.$c=!0,a.dispatchEvent("complete"),a.dispatchEvent("error")}s.abort=function(a){if(this.h&&this.ya)Ge(this.D,$e(this,"Aborting")),this.ya=!1,this.Xa=!0,this.h.abort(),this.Xa=!1,this.Sb=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),cf(this)};s.e=function(){if(this.h){if(this.ya)this.ya=!1,this.Xa=!0,this.h.abort(),this.Xa=!1;cf(this,!0)}Ye.a.e.call(this)};
s.ce=function(){!this.jd&&!this.yc&&!this.Xa?this.Pe():df(this)};s.Pe=function(){df(this)};
function df(a){if(a.ya&&typeof ca!="undefined")if(a.Oc[1]&&ef(a)==4&&ff(a)==2)Ge(a.D,$e(a,"Local request error detected and ignored"));else if(a.yc&&ef(a)==4)ke.setTimeout(qa(a.ce,a),0);else if(a.dispatchEvent("readystatechange"),ef(a)==4){Ge(a.D,$e(a,"Request complete"));a.ya=!1;var b;a:switch(ff(a)){case 0:b=z(a.wb)?a.wb.match(ie)[1]||m:a.wb.uf();b=!(b?Ze.test(b):self.location?Ze.test(self.location.protocol):1);break a;case 200:case 201:case 202:case 204:case 304:case 1223:b=!0;break a;default:b=
!1}if(b)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.Sb=6;var c;try{c=ef(a)>2?a.h.statusText:""}catch(d){Ge(a.D,"Can not get status: "+d.message),c=""}a.Ia=c+" ["+ff(a)+"]";bf(a)}cf(a)}}
function cf(a,b){if(a.h){var c=a.h,d=a.Oc[0]?v:m;a.h=m;a.Oc=m;if(a.jb)ke.clearTimeout(a.jb),a.jb=m;b||(Le(c),a.dispatchEvent("ready"),Ne());var h=Me;if(h.da){var g=la(c);Ge(h.D,"Closing XHR : "+g);delete h.Pc[g];for(var j in h.Ra)rb(h.Ra[j],g),h.Ra[j].length==0&&delete h.Ra[j]}try{c.onreadystatechange=d}catch(l){a.D.log(ze,"Problem encountered resetting onreadystatechange: "+l.message,k)}}}s.ub=function(){return!!this.h};function ef(a){return a.h?a.h.readyState:0}
function ff(a){try{return ef(a)>2?a.h.status:-1}catch(b){return a.D.log(Ae,"Can not get status: "+b.message,k),-1}}function gf(a){if(a.h)return Re(a.h.responseText)}function $e(a,b){return b+" ["+a.Wd+" "+a.wb+" "+ff(a)+"]"};function hf(){this.Da=[]}s=hf.prototype;s.ta=0;s.ib=0;s.mc=function(a){this.Da[this.ib++]=a};s.pb=function(){if(this.ta!=this.ib){var a=this.Da[this.ta];delete this.Da[this.ta];this.ta++;return a}};s.L=function(){return this.ib-this.ta};s.ua=function(){return this.ib-this.ta==0};s.clear=function(){this.ib=this.ta=this.Da.length=0};s.contains=function(a){return pb(this.Da,a)};s.remove=function(a){a=jb(this.Da,a);if(a<0)return!1;a==this.ta?this.pb():(G.splice.call(this.Da,a,1),this.ib--);return!0};
s.ra=function(){return this.Da.slice(this.ta,this.ib)};function jf(a,b){this.Xd=a||0;this.$a=b||10;this.Xd>this.$a&&e(Error(kf));this.B=new hf;this.Ga=new pe;this.Zc=0;this.md=m;this.jc()}A(jf,Ab);var kf="[goog.structs.Pool] Min can not be greater than max";s=jf.prototype;s.getObject=function(){var a=sa();if(!(this.md!=m&&a-this.md<this.Zc)){for(var b;this.B.L()>0;)if(b=this.B.pb(),this.pd(b))break;else this.jc();!b&&this.L()<this.$a&&(b=this.ob());if(b)this.md=a,this.Ga.add(b);return b}};s.cb=function(a){return this.Ga.remove(a)?(this.Rc(a),!0):!1};
s.Rc=function(a){this.Ga.remove(a);this.pd(a)&&this.L()<this.$a?this.B.mc(a):this.Ta(a)};s.jc=function(){for(var a=this.B;this.L()<this.Xd;)a.mc(this.ob());for(;this.L()>this.$a&&this.B.L()>0;)this.Ta(a.pb())};s.ob=function(){return{}};s.Ta=function(a){if(typeof a.F=="function")a.F();else for(var b in a)a[b]=m};s.pd=function(a){return typeof a.se=="function"?a.se():!0};s.contains=function(a){return this.B.contains(a)||this.Ga.contains(a)};s.L=function(){return this.B.L()+this.Ga.L()};
s.ua=function(){return this.B.ua()&&this.Ga.ua()};s.e=function(){jf.a.e.call(this);this.Ga.L()>0&&e(Error("[goog.structs.Pool] Objects not released"));delete this.Ga;for(var a=this.B;!a.ua();)this.Ta(a.pb());delete this.B};function lf(a,b){this.va=a;this.gc=b}lf.prototype.ea=p("gc");lf.prototype.ba=function(){return new lf(this.va,this.gc)};function mf(a){this.fa=[];if(a)a:{var b,c;if(a instanceof mf){if(b=a.Qb(),c=a.ra(),a.L()<=0){for(var a=this.fa,d=0;d<b.length;d++)a.push(new lf(b[d],c[d]));break a}}else b=db(a),c=cb(a);for(d=0;d<b.length;d++)nf(this,b[d],c[d])}}function nf(a,b,c){var d=a.fa;d.push(new lf(b,c));b=d.length-1;a=a.fa;for(c=a[b];b>0;)if(d=b-1>>1,a[d].va>c.va)a[b]=a[d],b=d;else break;a[b]=c}s=mf.prototype;
s.remove=function(){var a=this.fa,b=a.length,c=a[0];if(!(b<=0)){if(b==1)qb(a);else{a[0]=a.pop();for(var a=0,b=this.fa,d=b.length,h=b[a];a<d>>1;){var g=a*2+1,j=a*2+2,g=j<d&&b[j].va<b[g].va?j:g;if(b[g].va>h.va)break;b[a]=b[g];a=g}b[a]=h}return c.ea()}};s.ra=function(){for(var a=this.fa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].ea());return b};s.Qb=function(){for(var a=this.fa,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].va);return b};s.Vc=function(a){return mb(this.fa,function(b){return b.va==a})};s.ba=function(){return new mf(this)};
s.L=function(){return this.fa.length};s.ua=function(){return this.fa.length==0};s.clear=function(){qb(this.fa)};function of(){mf.call(this)}A(of,mf);of.prototype.mc=function(a,b){nf(this,a,b)};of.prototype.pb=function(){return this.remove()};function pf(a,b){this.Hc=new of;jf.call(this,a,b)}A(pf,jf);s=pf.prototype;s.getObject=function(a,b){if(!a){var c=pf.a.getObject.call(this);if(c&&this.Zc)this.ue=u.setTimeout(qa(this.vc,this),this.Zc);return c}this.Hc.mc(b||100,a);this.vc()};s.vc=function(){for(var a=this.Hc;a.L()>0;){var b=this.getObject();if(b)a.pb().apply(this,[b]);else break}};s.Rc=function(a){pf.a.Rc.call(this,a);this.vc()};s.jc=function(){pf.a.jc.call(this);this.vc()};
s.e=function(){pf.a.e.call(this);u.clearTimeout(this.ue);this.Hc.clear();this.Hc=m};function qf(a,b,c){pf.call(this,b,c);this.Ie=a}A(qf,pf);qf.prototype.ob=function(){var a=new Ye,b=this.Ie;b&&he(b,function(b,d){a.headers.set(d,b)});return a};qf.prototype.Ta=function(a){a.F()};qf.prototype.pd=function(a){return!a.Lb&&!a.ub()};function rf(a,b,c,d){this.url=a;this.U=b;this.Te=c;this.Se=d}function sf(){this.fe=new qf({},1);this.xa={};this.Ic=[]}A(sf,gd);y(sf);function tf(a){H.call(this,"server_info_change");this.fb=a}A(tf,H);function uf(a){H.call(this,"plugin_list_change");this.plugins=a}A(uf,H);function vf(a){H.call(this,"universe_list_change");this.xa=a}A(uf,H);function wf(a){H.call(this,"plugin_change");this.We=a}A(wf,H);
function xf(a){yf(a,"json/server_stats",function(a){a=gf(a.target);this.dispatchEvent(new tf(a))})}function zf(a){yf(a,"json/universe_plugin_list",function(a){if(ff(a.target)!=200)Nd.wf.info("Request failed: "+String(a.target.wb)+" : "+(z(a.target.Ia)?a.target.Ia:String(a.target.Ia)));else{a=gf(a.target);this.xa={};for(var c=0;c<a.universes.length;++c)this.xa[a.universes[c].id]=!0;this.dispatchEvent(new uf(a.plugins));this.dispatchEvent(new vf(a.universes))}})}
function Af(a,b){yf(a,"json/plugin_info?id="+b,function(a){a=gf(a.target);this.dispatchEvent(new wf(a))})}function Bf(a,b,c,d){yf(a,"json/rdm/supported_sections?id="+b+"&uid="+c,d)}function Cf(a,b,c,d,h,g){yf(a,"json/rdm/section_info?id="+b+"&uid="+c+"&section="+d+"&hint="+h,g)}function Df(a,b,c,d,h,g,j){yf(a,"json/rdm/set_section_info?id="+b+"&uid="+c+"&section="+d+"&hint="+h+"&"+g,j)}function Ef(a,b,c){yf(a,"json/rdm/uids?id="+b,c)}
function Ff(a,b,c){yf(a,"get_dmx?u="+b,function(a){c(gf(a.target))})}function Gf(a,b,c,d){yf(a,"set_dmx",function(a){d(a.target)},"POST","u="+b+"&d="+c.join(","))}
function yf(a,b,c,d,h){a.Ic.length>=30?(b=Nd.ne.p(),b.Af(ed.ne.kf.of),zc(b.Mb,"Failed to Communicate with Server"),b.N("The request pool was empty, the server is probably down."),b.Z(!0)):(a.Ic.push(new rf(b,c,d,h)),a.fe.getObject(function(b){if(a.Ic.length){var c=a.Ic.shift();c.U&&K(b,"complete",c.U,!1,a);K(b,"ready",a.te,!1,a);b.send(c.url,c.Te,c.Se)}},1))}sf.prototype.te=function(a){a=a.target;cc(a);this.fe.cb(a)};function Hf(a,b,c,d,h,g,j,l){var n,o=c.offsetParent;if(o){var w=o.tagName=="HTML"||o.tagName=="BODY";if(!w||Kc(o,"position")!="static")n=Oc(o),w||(n=fc(n,new M(o.scrollLeft,o.scrollTop)))}o=Vc(a);(w=Nc(a))&&o.Td(new ic(w.left,w.top,w.right-w.left,w.bottom-w.top));var w=N(a),t=N(c);if(w.m!=t.m){var B=w.m.body,t=t.m.parentWindow||t.m.defaultView,L=new M(0,0),nb=O(B)?O(B).parentWindow||O(B).defaultView:window,ee=B;do{var va;if(nb==t)va=Oc(ee);else{var I=ee;va=new M;if(I.nodeType==1)if(I.getBoundingClientRect)I=
Lc(I),va.x=I.left,va.y=I.top;else{var Pc=Ic(N(I)),I=Oc(I);va.x=I.x-Pc.x;va.y=I.y-Pc.y}else{var Pc=ja(I.xe),Qc=I;I.targetTouches?Qc=I.targetTouches[0]:Pc&&I.V.targetTouches&&(Qc=I.V.targetTouches[0]);va.x=Qc.clientX;va.y=Qc.clientY}}L.x+=va.x;L.y+=va.y}while(nb&&nb!=t&&(ee=nb.frameElement)&&(nb=nb.parent));B=fc(L,Oc(B));C&&!Hc(w)&&(B=fc(B,Ic(w)));o.left+=B.x;o.top+=B.y}a=(b&4&&Rc(a)?b^2:b)&-5;b=new M(a&2?o.left+o.width:o.left,a&1?o.top+o.height:o.top);n&&(b=fc(b,n));h&&(b.x+=(a&2?-1:1)*h.x,b.y+=(a&
1?-1:1)*h.y);var q;if(j&&(q=Nc(c))&&n)q.top-=n.y,q.right-=n.x,q.bottom-=n.y,q.left-=n.x;a:{n=b.ba();h=0;a=(d&4&&Rc(c)?d^2:d)&-5;d=Tc(c);l=l?l.ba():d.ba();if(g||a!=0)a&2?n.x-=l.width+(g?g.right:0):g&&(n.x+=g.left),a&1?n.y-=l.height+(g?g.bottom:0):g&&(n.y+=g.top);if(j){if(q){g=n;h=0;if((j&65)==65&&(g.x<q.left||g.x>=q.right))j&=-2;if((j&132)==132&&(g.y<q.top||g.y>=q.bottom))j&=-5;if(g.x<q.left&&j&1)g.x=q.left,h|=1;g.x<q.left&&g.x+l.width>q.right&&j&16&&(l.width-=g.x+l.width-q.right,h|=4);if(g.x+l.width>
q.right&&j&1)g.x=Math.max(q.right-l.width,q.left),h|=1;j&2&&(h|=(g.x<q.left?16:0)|(g.x+l.width>q.right?32:0));if(g.y<q.top&&j&4)g.y=q.top,h|=2;g.y>=q.top&&g.y+l.height>q.bottom&&j&32&&(l.height-=g.y+l.height-q.bottom,h|=8);if(g.y+l.height>q.bottom&&j&4)g.y=Math.max(q.bottom-l.height,q.top),h|=2;j&8&&(h|=(g.y<q.top?64:0)|(g.y+l.height>q.bottom?128:0));j=h}else j=256;h=j;if(h&496){c=h;break a}}g=D&&(Ja||Ra)&&F("1.9");n instanceof M?(j=n.x,n=n.y):(j=n,n=k);c.style.left=Sc(j,g);c.style.top=Sc(n,g);if(!(d==
l||(!d||!l?0:d.width==l.width&&d.height==l.height)))g=Hc(N(O(c))),C&&(!g||!F("8"))?(j=c.style,g?(C?(g=$c(c,Jc(c,"paddingLeft")),d=$c(c,Jc(c,"paddingRight")),n=$c(c,Jc(c,"paddingTop")),q=$c(c,Jc(c,"paddingBottom")),g=new gc(n,d,q,g)):(g=R(c,"paddingLeft"),d=R(c,"paddingRight"),n=R(c,"paddingTop"),q=R(c,"paddingBottom"),g=new gc(parseFloat(n),parseFloat(d),parseFloat(q),parseFloat(g))),C?(d=bd(c,"borderLeft"),n=bd(c,"borderRight"),q=bd(c,"borderTop"),c=bd(c,"borderBottom"),c=new gc(q,n,c,d)):(d=R(c,
"borderLeftWidth"),n=R(c,"borderRightWidth"),q=R(c,"borderTopWidth"),c=R(c,"borderBottomWidth"),c=new gc(parseFloat(q),parseFloat(n),parseFloat(c),parseFloat(d))),j.pixelWidth=l.width-c.left-g.left-g.right-c.right,j.pixelHeight=l.height-c.top-g.top-g.bottom-c.bottom):(j.pixelWidth=l.width,j.pixelHeight=l.height)):(c=c.style,D?c.MozBoxSizing="border-box":E?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=l.width+"px",c.height=l.height+"px");c=h}return c};function If(){}If.prototype.sd=aa();function Jf(a,b){this.element=a;this.Wc=b}A(Jf,If);Jf.prototype.sd=function(a,b,c){Hf(this.element,this.Wc,a,b,k,c)};function Kf(a,b,c){Jf.call(this,a,b);this.pe=c}A(Kf,Jf);Kf.prototype.Pd=r(5);Kf.prototype.sd=function(a,b,c,d){var h=Hf(this.element,this.Wc,a,b,m,c,10,d);if(h&496){var g=Lf(h,this.Wc),b=Lf(h,b),h=Hf(this.element,g,a,b,m,c,10,d);h&496&&(g=Lf(h,g),b=Lf(h,b),this.pe?Hf(this.element,g,a,b,m,c,this.Pd(),d):Hf(this.element,g,a,b,m,c,0,d))}};function Lf(a,b){a&48&&(b^=2);a&192&&(b^=1);return b};function Mf(a,b,c,d){Kf.call(this,a,b,c||d);this.Ze=d}A(Mf,Kf);Mf.prototype.Pd=function(){return 65|(this.Ze?32:132)};var Nf,Of;Of=Nf=!1;var Pf=Ka();Pf&&(Pf.indexOf("Firefox")!=-1||Pf.indexOf("Camino")!=-1||(Pf.indexOf("iPhone")!=-1||Pf.indexOf("iPod")!=-1?Nf=!0:Pf.indexOf("iPad")!=-1&&(Of=!0)));var Qf=Nf,Rf=Of;function Sf(){}A(Sf,td);y(Sf);Sf.prototype.d=function(a){return a.S().d("div",this.j())};Sf.prototype.N=aa();Sf.prototype.j=r("goog-menuseparator");function Tf(a,b){V.call(this,m,a||Sf.p(),b);Ld(this,1,!1);Ld(this,2,!1);Ld(this,4,!1);Ld(this,32,!1);this.o=1}A(Tf,V);Tf.prototype.i=function(){Tf.a.i.call(this);sd(this.b(),"separator")};wd("goog-menuseparator",function(){return new Tf});function Uf(){}y(Uf);s=Uf.prototype;s.la=aa();s.d=function(a){return a.S().d("div",this.Ua(a).join(" "))};s.w=function(a){return a};s.tb=function(a){a=a.b();Zc(a,!0,D);if(C)a.hideFocus=!0;var b=this.la();b&&sd(a,b)};s.C=function(a){return a.b()};s.j=r("goog-container");s.Ua=function(a){var b=this.j(),c=[b,a.yb==Vf?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Wf(){}A(Wf,Uf);y(Wf);Wf.prototype.la=r("menu");Wf.prototype.Qa=function(a,b){return yc(a.b(),b)};Wf.prototype.j=r("goog-menu");Wf.prototype.tb=function(a){Wf.a.tb.call(this,a);U(a.b(),"haspopup","true")};wd("goog-menuseparator",function(){return new Tf});function Xf(){this.Jd=[]}A(Xf,td);y(Xf);function Yf(a,b){var c=a.Jd[b];if(!c){switch(b){case 0:c=a.j()+"-highlight";break;case 1:c=a.j()+"-checkbox";break;case 2:c=a.j()+"-content"}a.Jd[b]=c}return c}s=Xf.prototype;s.la=r("menuitem");s.d=function(a){var b=a.S().d("div",this.Ua(a).join(" "),Zf(this,a.Ca,a.S()));$f(this,a,b,!!(a.u&8)||!!(a.u&16));return b};s.w=function(a){return a&&a.firstChild};
s.N=function(a,b){var c=this.w(a),d=ag(this,a)?c.firstChild:m;Xf.a.N.call(this,a,b);d&&!ag(this,a)&&c.insertBefore(d,c.firstChild||m)};function Zf(a,b,c){a=Yf(a,2);return c.d("div",a,b)}s.wd=function(a,b,c){b&&(sd(b,c?"menuitemradio":this.la()),$f(this,a,b,c))};function ag(a,b){var c=a.w(b);if(c){var c=c.firstChild,d=Yf(a,1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return!1}
function $f(a,b,c,d){d!=ag(a,c)&&(d?lc(c,"goog-option"):mc(c,"goog-option"),c=a.w(c),d?(a=Yf(a,1),c.insertBefore(b.S().d("div",a),c.firstChild||m)):c.removeChild(c.firstChild))}s.nc=function(a){switch(a){case 2:return Yf(this,0);case 16:case 8:return"goog-option-selected";default:return Xf.a.nc.call(this,a)}};s.j=r("goog-menuitem");function bg(a,b,c,d){V.call(this,a,d||Xf.p(),c);this.Na(b)}A(bg,V);s=bg.prototype;s.ea=function(){var a=this.od;return a!=m?a:this.Ob()};s.Na=ba("od");s.wd=function(a){Ld(this,8,a);this.vb()&&!a&&this.bc(!1);var b=this.b();b&&this.f.wd(this,b,a)};s.Ob=function(){var a=this.Ca;return ga(a)?(a=lb(a,function(a){return pb(kc(a),"goog-menuitem-accel")?"":Fc(a)}).join(""),ua(a)):bg.a.Ob.call(this)};
s.Fa=function(a){var b=this.getParent();if(b){var c=b.de;b.de=m;if(b=c&&ia(a.clientX))b=new M(a.clientX,a.clientY),b=c==b?!0:!c||!b?!1:c.x==b.x&&c.y==b.y;if(b)return}bg.a.Fa.call(this,a)};wd("goog-menuitem",function(){return new bg(m)});function Z(a,b,c){hd.call(this,c);this.f=b||Uf.p();this.yb=a||cg}A(Z,hd);var Vf="horizontal",cg="vertical";s=Z.prototype;s.ld=m;s.W=m;s.f=m;s.yb=m;s.s=!0;s.da=!0;s.ad=!0;s.I=-1;s.z=m;s.Ka=!1;s.qe=!1;s.Re=!0;s.pa=m;s.C=function(){return this.ld||this.f.C(this)};s.oc=function(){return this.W||(this.W=new Ad(this.C()))};s.d=function(){this.n=this.f.d(this)};s.w=function(){return this.f.w(this.b())};
s.i=function(){Z.a.i.call(this);od(this,function(a){a.k&&dg(this,a)},this);var a=this.b();this.f.tb(this);this.Z(this.s,!0);ld(this).g(this,"enter",this.dd).g(this,"highlight",this.ed).g(this,"unhighlight",this.gd).g(this,"open",this.Ge).g(this,"close",this.Ae).g(a,"mousedown",this.Ea).g(O(a),"mouseup",this.Ce).g(a,["mousedown","mouseup","mouseover","mouseout"],this.ze);this.Ya()&&eg(this,!0)};
function eg(a,b){var c=ld(a),d=a.C();b?c.g(d,"focus",a.rc).g(d,"blur",a.Va).g(a.oc(),"key",a.sa):c.ha(d,"focus",a.rc).ha(d,"blur",a.Va).ha(a.oc(),"key",a.sa)}s.ja=function(){fg(this,-1);this.z&&this.z.t(!1);this.Ka=!1;Z.a.ja.call(this)};s.e=function(){Z.a.e.call(this);if(this.W)this.W.F(),this.W=m;this.f=this.z=this.pa=this.ld=m};s.dd=r(!0);
s.ed=function(a){var b=rd(this,a.target);if(b>-1&&b!=this.I){var c=T(this,this.I);c&&c.wa(!1);this.I=b;c=T(this,this.I);this.Ka&&c.setActive(!0);this.Re&&this.z&&c!=this.z&&(c.u&64?c.t(!0):this.z.t(!1))}U(this.b(),"activedescendant",a.target.b().id)};s.gd=function(a){if(a.target==T(this,this.I))this.I=-1;U(this.b(),"activedescendant","")};s.Ge=function(a){if((a=a.target)&&a!=this.z&&a.getParent()==this)this.z&&this.z.t(!1),this.z=a};s.Ae=function(a){if(a.target==this.z)this.z=m};
s.Ea=function(a){if(this.da)this.Ka=!0;var b=this.C();b&&Cc(b)?b.focus():a.preventDefault()};s.Ce=function(){this.Ka=!1};s.ze=function(a){var b;a:{b=a.target;if(this.pa)for(var c=this.b();b&&b!==c;){var d=b.id;if(d in this.pa){b=this.pa[d];break a}b=b.parentNode}b=m}if(b)switch(a.type){case "mousedown":b.Ea(a);break;case "mouseup":b.Fa(a);break;case "mouseover":b.uc(a);break;case "mouseout":b.tc(a)}};s.rc=aa();s.Va=function(){fg(this,-1);this.Ka=!1;this.z&&this.z.t(!1)};
s.sa=function(a){return this.isEnabled()&&this.s&&(pd(this)!=0||this.ld)&&this.Wa(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
s.Wa=function(a){var b=T(this,this.I);if(b&&typeof b.sa=="function"&&b.sa(a))return!0;if(this.z&&this.z!=b&&typeof this.z.sa=="function"&&this.z.sa(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.Ya())this.C().blur();else return!1;break;case 36:gg(this);break;case 35:hg(this);break;case 38:if(this.yb==cg)ig(this);else return!1;break;case 37:if(this.yb==Vf)qd(this)?jg(this):ig(this);else return!1;break;case 40:if(this.yb==cg)jg(this);else return!1;
break;case 39:if(this.yb==Vf)qd(this)?ig(this):jg(this);else return!1;break;default:return!1}return!0};function dg(a,b){var c=b.b(),c=c.id||(c.id=kd(b));if(!a.pa)a.pa={};a.pa[c]=b}s.Jb=function(a,b){Z.a.Jb.call(this,a,b)};s.mb=function(a,b,c){a.zd|=2;a.zd|=64;(this.Ya()||!this.qe)&&Ld(a,32,!1);Hd(a,!1);Z.a.mb.call(this,a,b,c);c&&this.k&&dg(this,a);b<=this.I&&this.I++};
s.removeChild=function(a,b){if(a=z(a)?nd(this,a):a){var c=rd(this,a);c!=-1&&(c==this.I?a.wa(!1):c<this.I&&this.I--);var d=a.b();if(d&&d.id&&this.pa)c=this.pa,d=d.id,d in c&&delete c[d]}a=Z.a.removeChild.call(this,a,b);Hd(a,!0);return a};s.Z=function(a,b){if(b||this.s!=a&&this.dispatchEvent(a?"show":"hide")){this.s=a;var c=this.b();if(c){Wc(c,a);if(this.Ya()&&(c=this.C()))c.tabIndex=this.da&&this.s?0:-1;b||this.dispatchEvent(this.s?"aftershow":"afterhide")}return!0}return!1};s.isEnabled=p("da");
s.Ya=p("ad");s.gb=function(a){a!=this.ad&&this.k&&eg(this,a);this.ad=a;if(this.da&&this.s){var b=this.C();if(b)b.tabIndex=a?0:-1}};function fg(a,b){var c=T(a,b);c?c.wa(!0):a.I>-1&&T(a,a.I).wa(!1)}s.wa=function(a){fg(this,rd(this,a))};function gg(a){kg(a,function(a,c){return(a+1)%c},pd(a)-1)}function hg(a){kg(a,function(a,c){a--;return a<0?c-1:a},0)}function jg(a){kg(a,function(a,c){return(a+1)%c},a.I)}function ig(a){kg(a,function(a,c){a--;return a<0?c-1:a},a.I)}
function kg(a,b,c){for(var c=c<0?rd(a,a.z):c,d=pd(a),c=b.call(a,c,d),h=0;h<=d;){var g=T(a,c);if(g&&a.Hd(g)){fg(a,c);break}h++;c=b.call(a,c,d)}}s.Hd=function(a){return a.s&&a.isEnabled()&&!!(a.u&2)};function lg(){}A(lg,td);y(lg);lg.prototype.j=r("goog-menuheader");function mg(a,b,c){V.call(this,a,c||lg.p(),b);Ld(this,1,!1);Ld(this,2,!1);Ld(this,4,!1);Ld(this,32,!1);this.o=1}A(mg,V);wd("goog-menuheader",function(){return new mg(m)});function ng(a,b){Z.call(this,cg,b||Wf.p(),a);this.gb(!1)}A(ng,Z);s=ng.prototype;s.Sc=!0;s.re=!1;s.j=function(){return this.f.j()};s.Qa=function(a){if(this.f.Qa(this,a))return!0;for(var b=0,c=pd(this);b<c;b++){var d=T(this,b);if(typeof d.Qa=="function"&&d.Qa(a))return!0}return!1};s.Ba=function(a){this.Jb(a,!0)};s.nb=function(a,b){this.mb(a,b,!0)};s.Pb=function(a){return T(this,a)};s.bd=function(){return pd(this)};
s.Z=function(a,b,c){(b=ng.a.Z.call(this,a,b))&&a&&this.k&&this.Sc&&this.C().focus();this.de=a&&c&&ia(c.clientX)?new M(c.clientX,c.clientY):m;return b};s.dd=function(a){this.Sc&&this.C().focus();return ng.a.dd.call(this,a)};s.Hd=function(a){return(this.re||a.isEnabled())&&a.s&&!!(a.u&2)};function og(){}A(og,Zd);y(og);s=og.prototype;s.d=function(a){var b={"class":"goog-inline-block "+this.Ua(a).join(" "),title:a.qc()||""},b=a.S().d("div",b,this.Xc(a.Ca,a.S()));this.ud(a,b);return b};s.la=r("button");s.ud=function(a,b){a.isEnabled()||this.T(b,1,!0);a.o&8&&this.T(b,8,!0);a.u&16&&this.T(b,16,!0);a.o&64&&this.T(b,64,!0)};s.w=function(a){return a&&a.firstChild.firstChild};
s.Xc=function(a,b){return b.d("div","goog-inline-block "+(this.j()+"-outer-box"),b.d("div","goog-inline-block "+(this.j()+"-inner-box"),a))};s.j=r("goog-custom-button");function pg(){}A(pg,og);y(pg);if(D)pg.prototype.N=function(a,b){var c=pg.a.w.call(this,a&&a.firstChild);if(c){var d=this.createCaption(b,N(a)),h=c.parentNode;h&&h.replaceChild(d,c)}};pg.prototype.w=function(a){a=pg.a.w.call(this,a&&a.firstChild);if(D&&a&&a.__goog_wrapper_div)a=a.firstChild;return a};pg.prototype.Xc=function(a,b){return pg.a.Xc.call(this,[this.createCaption(a,b),b.d("div","goog-inline-block "+(this.j()+"-dropdown"),"\u00a0")],b)};
pg.prototype.createCaption=function(a,b){return b.d("div","goog-inline-block "+(this.j()+"-caption"),a)};pg.prototype.j=r("goog-menu-button");function $(a,b,c,d){Y.call(this,a,c||pg.p(),d);Ld(this,64,!0);b&&this.Kc(b);this.$=new je(500);if((Qf||Rf)&&!F("533.17.9"))this.Ac=!0}A($,Y);s=$.prototype;s.Ed=!0;s.td=!1;s.Ac=!1;s.Ye=!1;s.i=function(){$.a.i.call(this);this.c&&qg(this,this.c,!0);U(this.b(),"haspopup","true")};s.ja=function(){$.a.ja.call(this);if(this.c){this.t(!1);this.c.ja();qg(this,this.c,!1);var a=this.c.b();a&&wc(a)}};s.e=function(){$.a.e.call(this);this.c&&(this.c.F(),delete this.c);delete this.Xe;this.$.F()};
s.Ea=function(a){$.a.Ea.call(this,a);if(this.ub()&&(this.t(!(this.o&64),a),this.c))this.c.Ka=!!(this.o&64)};s.Fa=function(a){$.a.Fa.call(this,a);if(this.c&&!this.ub())this.c.Ka=!1};s.ab=function(){this.setActive(!1);return!0};s.Be=function(a){this.c&&this.c.s&&!this.Qa(a.target)&&this.t(!1)};s.Qa=function(a){return a&&yc(this.b(),a)||this.c&&this.c.Qa(a)||!1};
s.Wa=function(a){if(a.keyCode==32){if(a.preventDefault(),a.type!="keyup")return!1}else if(a.type!="key")return!1;if(this.c&&this.c.s){var b=this.c.sa(a);return a.keyCode==27?(this.t(!1),!0):b}return a.keyCode==40||a.keyCode==38||a.keyCode==32?(this.t(!0),!0):!1};s.fd=function(){this.t(!1)};s.Fe=function(){this.ub()||this.t(!1)};s.Va=function(a){this.Ac||this.t(!1);$.a.Va.call(this,a)};function rg(a){a.c||a.Kc(new ng(a.S()));return a.c||m}
s.Kc=function(a){var b=this.c;if(a!=b&&(b&&(this.t(!1),this.k&&qg(this,b,!1),delete this.c),a)){this.c=a;md(a,this);a.Z(!1);var c=this.Ac;(a.Sc=c)&&a.gb(!0);this.k&&qg(this,a,!0)}return b};s.Ba=function(a){rg(this).Jb(a,!0)};s.nb=function(a,b){rg(this).mb(a,b,!0)};s.Pb=function(a){return this.c?T(this.c,a):m};s.bd=function(){return this.c?pd(this.c):0};s.Z=function(a,b){var c=$.a.Z.call(this,a,b);c&&!this.s&&this.t(!1);return c};
s.t=function(a,b){$.a.t.call(this,a);if(this.c&&!!(this.o&64)==a){if(a)this.c.k||(this.Ye?S(this.c,this.b().parentNode):S(this.c,k)),this.kb=Nc(this.b()),this.Oa=Vc(this.b()),sg(this),fg(this.c,-1);else if(this.setActive(!1),this.c.Ka=!1,this.b()&&U(this.b(),"activedescendant",""),this.Ec!=m){this.Ec=k;var c=this.c.b();if(c){var d="",h;d instanceof hc?(h=d.height,d=d.width):h="";c.style.width=Sc(d,!0);c.style.height=Sc(h,!0)}}this.c.Z(a,!1,b);this.Lb||(c=ld(this),d=a?c.g:c.ha,d.call(c,Gc(this.S()),
"mousedown",this.Be,!0),this.Ac&&d.call(c,this.c,"blur",this.Fe),d.call(c,this.$,le,this.Qe),a?this.$.start():this.$.stop())}};function sg(a){if(a.c.k){var b=new Mf(a.Xe||a.b(),a.Ed?5:7,!a.td,a.td),c=a.c.b();if(!a.c.s)c.style.visibility="hidden",Wc(c,!0);if(!a.Ec&&a.td)a.Ec=Tc(c);b.sd(c,a.Ed?4:6,m,a.Ec);if(!a.c.s)Wc(c,!1),c.style.visibility="visible"}}
s.Qe=function(){var a=Vc(this.b()),b=Nc(this.b());if(!(this.Oa==a||(!this.Oa||!a?0:this.Oa.left==a.left&&this.Oa.width==a.width&&this.Oa.top==a.top&&this.Oa.height==a.height))||!(this.kb==b||(!this.kb||!b?0:this.kb.top==b.top&&this.kb.right==b.right&&this.kb.bottom==b.bottom&&this.kb.left==b.left)))this.Oa=a,this.kb=b,sg(this)};function qg(a,b,c){var d=ld(a),c=c?d.g:d.ha;c.call(d,b,"action",a.fd);c.call(d,b,"highlight",a.ed);c.call(d,b,"unhighlight",a.gd)}
s.ed=function(a){U(this.b(),"activedescendant",a.target.b().id)};s.gd=function(){T(this.c,this.c.I)||U(this.b(),"activedescendant","")};wd("goog-menu-button",function(){return new $(m)});function tg(a){this.Za=[];ug(this,a)}A(tg,gd);s=tg.prototype;s.La=m;s.ie=m;s.bd=function(){return this.Za.length};s.Pb=function(a){return this.Za[a]||m};function ug(a,b){b&&(kb(b,function(a){vg(this,a,!1)},a),ub(a.Za,b))}s.Ba=function(a){this.nb(a,this.bd())};s.nb=function(a,b){a&&(vg(this,a,!1),vb(this.Za,b,0,a))};s.pc=p("La");s.hb=function(a){if(a!=this.La)vg(this,this.La,!1),this.La=a,vg(this,a,!0);this.dispatchEvent("select")};s.qb=function(){return this.La?jb(this.Za,this.La):-1};s.Ma=function(a){this.hb(this.Pb(a))};
s.clear=function(){qb(this.Za);this.La=m};s.e=function(){tg.a.e.call(this);delete this.Za;this.La=m};function vg(a,b,c){b&&(typeof a.ie=="function"?a.ie(b,c):typeof b.xd=="function"&&b.xd(c))};function wg(a,b,c,d){$.call(this,a,b,c,d);this.Yc=a;xg(this);this.qd="listbox"}A(wg,$);s=wg.prototype;s.l=m;s.Yc=m;s.i=function(){wg.a.i.call(this);xg(this);yg(this);U(this.b(),"haspopup","false")};s.e=function(){wg.a.e.call(this);if(this.l)this.l.F(),this.l=m;this.Yc=m};s.fd=function(a){this.hb(a.target);wg.a.fd.call(this,a);a.stopPropagation();this.dispatchEvent("action")};s.He=function(){var a=this.pc();wg.a.Na.call(this,a&&a.ea());xg(this)};
s.Kc=function(a){var b=wg.a.Kc.call(this,a);a!=b&&(this.l&&this.l.clear(),a&&(this.l?od(a,function(a){zg(a);this.l.Ba(a)},this):Ag(this,a)));return b};s.Ba=function(a){zg(a);wg.a.Ba.call(this,a);this.l?this.l.Ba(a):Ag(this,rg(this))};s.nb=function(a,b){zg(a);wg.a.nb.call(this,a,b);this.l?this.l.nb(a,b):Ag(this,rg(this))};s.hb=function(a){this.l&&this.l.hb(a)};s.Ma=function(a){this.l&&this.hb(this.l.Pb(a))};
s.Na=function(a){if(a!=m&&this.l)for(var b=0,c;c=this.l.Pb(b);b++)if(c&&typeof c.ea=="function"&&c.ea()==a){this.hb(c);return}this.hb(m)};s.pc=function(){return this.l?this.l.pc():m};s.qb=function(){return this.l?this.l.qb():-1};function Ag(a,b){a.l=new tg;b&&od(b,function(a){zg(a);this.l.Ba(a)},a);yg(a)}function yg(a){a.l&&ld(a).g(a.l,"select",a.He)}function xg(a){var b=a.pc();a.N(b?b.Ob():a.Yc)}function zg(a){a.qd=a instanceof bg?"option":"separator"}
s.t=function(a,b){wg.a.t.call(this,a,b);this.o&64&&fg(rg(this),this.qb())};wd("goog-select",function(){return new wg(m)});function Bg(a,b,c){bg.call(this,a,b,c);this.wd(!0)}A(Bg,bg);Bg.prototype.ab=function(){return this.dispatchEvent("action")};wd("goog-option",function(){return new Bg(m)});function Cg(){}A(Cg,td);y(Cg);Cg.prototype.d=function(a){var b=a.S().d("span",this.Ua(a).join(" "));Dg(this,b,a.Pa);return b};Cg.prototype.la=r("checkbox");function Dg(a,b,c){if(b){var d=Eg(a,c);pb(kc(b),d)||(bb(Fg,function(a){a=Eg(this,a);a==d?lc(b,a):mc(b,a)},a),U(b,"checked",c==Gg?"mixed":c==Hg?"true":"false"))}}Cg.prototype.j=r("goog-checkbox");
function Eg(a,b){var c=a.j();if(b==Hg)return c+"-checked";else if(b==Ig)return c+"-unchecked";else if(b==Gg)return c+"-undetermined";e(Error("Invalid checkbox state: "+b))};function Jg(a,b,c){c=c||Cg.p();V.call(this,m,c,b);this.Pa=fa(a)?a:Ig}A(Jg,V);var Hg=!0,Ig=!1,Gg=m,Fg={lf:Hg,pf:Ig,qf:Gg};s=Jg.prototype;s.ma=m;s.vb=function(){return this.Pa==Hg};s.bc=function(a){if(a!=this.Pa)this.Pa=a,Dg(this.f,this.b(),this.Pa)};s.toggle=function(){this.bc(this.Pa?Ig:Hg)};
s.i=function(){Jg.a.i.call(this);if(this.sc){var a=ld(this);this.ma&&a.g(this.ma,"click",this.cd).g(this.ma,"mouseover",this.uc).g(this.ma,"mouseout",this.tc).g(this.ma,"mousedown",this.Ea).g(this.ma,"mouseup",this.Fa);a.g(this.b(),"click",this.cd)}if(this.ma){if(!this.ma.id)this.ma.id=kd(this)+".lbl";U(this.b(),"labelledby",this.ma.id)}};s.cd=function(a){a.stopPropagation();var b=this.Pa?"uncheck":"check";this.isEnabled()&&this.dispatchEvent(b)&&(a.preventDefault(),this.toggle(),this.dispatchEvent("change"))};
s.Wa=function(a){a.keyCode==32&&this.cd(a);return!1};wd("goog-checkbox",function(){return new Jg});function Kg(a,b){var c=b.type,d=b.value,h=b.id;if(c=="hidden"){var g=Q("input");g.id=h;g.type="hidden";g.value=d;a.appendChild(g)}else{g=Q("tr");a.appendChild(g);var j=Q("td");j.innerHTML=b.description;g.appendChild(j);j=Q("td");g.appendChild(j);if(h)if(c=="string"||c=="uint"||c=="hidden"){g=Q("input");g.value=d;g.name=h;if(c=="hidden")g.type="hidden";j.appendChild(g);b.button&&(d=new ed.mf(b.button),S(d,j))}else{if(c=="bool")c=new Jg,c.bc(d==1);else{c=new wg;h=d.length;for(g=0;g<h;++g)c.Ba(new Bg(d[g].label));
b.selected_offset!=k&&c.Ma(b.selected_offset)}S(c,j);b.object=c}else j.innerHTML=d}};function Lg(a){this.Gb=a.id;this.oa=a.name;this.rf=a.input_ports;this.sf=a.output_ports;this.tf=a.rdm_devices}A(Lg,Od);Lg.prototype.id=p("Gb");Lg.prototype.name=p("oa");function Xd(a,b,c,d){X.call(this,a,b,c,d);this.N(a.name())}A(Xd,X);Xd.prototype.i=function(){Xd.a.i.call(this);this.b().title="Universe "+this.ic.id()};function Mg(a){this.U=a}Mg.prototype.Ub=function(a){return new Xd(a,this.U)};function Ng(){this.K=new ae("universe_frame");this.Cb=new ae("uid_frame");this.zb=new ae("rdm_frame");this.Yb=new ae("rdm_section_frame");this.H();this.Vd=this.za=this.Xb=this.Ib=this.Nc=this.Aa=this.aa=k;this.J=sf.p();K(this.J,"universe_list_change",this.fc,!1,this)}s=Ng.prototype;s.title=r("RDM");s.blur=aa();s.H=function(){ce(this.K);ce(this.Cb);ce(this.zb);ce(this.Yb)};s.update=function(){this.H();de(this.K);this.za=this.Ib=this.Aa=this.aa=k;be(this.K);zf(this.J)};
s.fc=function(a){if(this.aa==k){fe(this.K);var b=new Z;S(b,this.K.element);var c=this;this.aa=new Pd(b,new Mg(function(a){c.Db(a.id())}))}for(var b=[],d=0;d<a.xa.length;++d)b.push(new Lg(a.xa[d]));Qd(this.aa,b)};s.Db=function(a){this.H();de(this.Cb);this.Xb=this.Nc=k;this.Aa=a;be(this.Cb);var b=this;Ef(this.J,a,function(a){Og(b,a)})};
function Og(a,b){if(ff(b.target)==200){if(a.Nc==k){fe(a.Cb);var c=new Z;S(c,a.Cb.element);a.Nc=new Pd(c,new Ud(function(b){Pg(a,b.id())}));c=new Y("Back");S(c,a.Cb.element);K(c,"action",function(){this.update()},!1,a)}for(var c=gf(b.target).uids,d=[],h=0;h<c.length;++h)d.push(new Rd(c[h]));Qd(a.Nc,d)}}function Pg(a,b){a.H();de(a.zb);a.Xb=k;a.Ib=b;be(a.zb);Bf(a.J,a.Aa,b,function(b){Qg(a,b)})}
function Qg(a,b){if(a.Xb==k){fe(a.zb);var c=new Z;S(c,a.zb.element);a.Xb=new Pd(c,new Yd(function(b){a.H();de(a.Yb);be(a.Yb);a.za=b;Rg(a)}));c=new Y("Back");S(c,a.zb.element);K(c,"action",function(){this.Db(this.Aa)},!1,a)}for(var c=gf(b.target),d=c.length,h=[],g=0;g<d;++g)h.push(new Vd(c[g]));Qd(a.Xb,h)}function Rg(a){Cf(a.J,a.Aa,a.Ib,a.za.id(),a.za.hint(),function(b){Sg(a,b)})}
function Sg(a,b){var c=gf(b.target);fe(a.Yb);var d=a.Yb.element;d.innerHTML="";if(c.error)d.innerHTML=c.error;else{var h=c.items,g=h.length,j=Q("form");j.id=a.za.id();j.onsubmit=function(){Tg(a);return!1};var l=Q("table");l.className="ola-table";for(var n=!1,o=0;o<g;++o)Kg(l,h[o]),n|=h[o].id&&!h[o].button;j.appendChild(l);d.appendChild(j);h=new Y("Back");S(h,d);K(h,"action",function(){Pg(this,this.Ib)},!1,a);c.refresh&&(h=new Y("Refresh"),S(h,d),K(h,"action",function(){Rg(this)},!1,a));n&&(h=new Y(c.save_button||
"Save"),S(h,d),K(h,"action",function(){Tg(this)},!1,a));a.Vd=c.items}}
function Tg(a){for(var b=a.Vd,c=b.length,d=P(a.za.id()),h="",g=0;g<c;++g){var j=b[g].id;if(j)if(b[g].type=="uint"){var l=d.elements[j].value,n=parseInt(l);if(isNaN(n)){a.Dd("Invalid Value",b[g].description+" must be an integer");return}var o=b[g].min;if(o!=k&&n<o){a.Dd("Invalid Value",b[g].description+" must be > "+(o-1));return}o=b[g].max;if(o!=k&&n>o){a.Dd("Invalid Value",b[g].description+" must be < "+(o+1));return}h+=j+"="+l+"&"}else if(b[g].type=="string")l=d.elements[j].value,h+=j+"="+l+"&";
else if(b[g].type=="bool")h+=j+"="+(b[g].object.vb()?"1":"0")+"&";else if(b[g].type=="select")l=b[g].object.qb(),l=b[g].value[l].value,h+=j+"="+l+"&"}Df(a.J,a.Aa,a.Ib,a.za.id(),a.za.hint(),h,function(b){b=gf(b.target);b.error?alert(b.error):Rg(a)})};function Ug(){var a=sf.p();K(a,"server_info_change",this.gf,!1,this);xf(a)}Ug.prototype.title=r("Home");Ug.prototype.blur=aa();Ug.prototype.update=function(){xf(sf.p())};
Ug.prototype.gf=function(a){P("server_hostname").innerHTML=a.fb.hostname;P("server_ip").innerHTML=a.fb.ip;P("server_broadcast").innerHTML=a.fb.broadcast;P("server_mac").innerHTML=a.fb.hw_address;P("server_version").innerHTML=a.fb.version;P("server_uptime").innerHTML=a.fb.up_since;if(!a.fb.quit_enabled&&(a=P("stop_button")))a.style.display="none"};function Vg(a){this.ia=a;this.Bd=[];this.enabled=this.ke=!1;this.ec=k}Vg.prototype.O=function(a,b){this.enabled=a;this.ec=b;if(this.enabled){if(!this.ke){for(var c=0;c<512;++c){var d=Q("div");d.title="Channel "+(c+1);var h=Q("div");h.innerHTML=c+1;var g=Q("span");g.innerHTML="&nbsp";d.appendChild(h);d.appendChild(g);this.ia.appendChild(d);this.Bd.push(g)}this.ke=!0}Wg(this)}};function Wg(a){a.enabled&&Ff(sf.p(),a.ec,function(b){Xg(a,b.dmx)})}
function Xg(a,b){for(var c=Math.min(512,b.length),d=0;d<c;++d)Yg(a,d,b[d]);for(d=c;d<512;++d)Zg(a,d);a.enabled&&me(function(){Wg(a)})}function Yg(a,b,c){a=a.Bd[b];if(a!=k)a.innerHTML=c,b=255-c,a.style.background="rgb("+b+","+b+","+b+")",a.style.color=c>90?"#ffffff":"#000000"}function Zg(a,b){var c=a.Bd[b];if(c!=k)c.innerHTML="&nbsp;",c.style.background="#ffffff"};function $g(){this.Zd=new ae("monitor_frame");this.K=new ae("monitor_universe_frame");this.H();this.Zb();this.J=sf.p();K(this.J,"universe_list_change",this.fc,!1,this);this.Yd=new Vg(P("monitor_frame"))}s=$g.prototype;s.title=r("DMX Monitor");s.blur=function(){this.Yd.O(!1,k)};s.Zb=function(){this.aa=k};s.H=function(){ce(this.Zd);ce(this.K)};s.update=function(){this.H();this.Zb();de(this.K);be(this.K);zf(this.J)};
s.fc=function(a){if(this.aa==k){fe(this.K);var b=new Z;S(b,this.K.element);var c=this;this.aa=new Pd(b,new Mg(function(a){c.Db(a.id(),a.name())}))}for(var b=[],d=0;d<a.xa.length;++d)b.push(new Lg(a.xa[d]));Qd(this.aa,b)};s.Db=function(a){this.H();this.Yd.O(!0,a);be(this.Zd)};function ah(a,b,c){this.start=a;this.end=b==k?a:b;this.value=c}function bh(){this.we=RegExp(/(?:([0-9]{1,3})(?:\s+THRU\s+([0-9]{0,3}))?)\s+@\s+([0-9]{0,3})$/);this.Ue=RegExp(/(?:([0-9]{1,3})(?:\s+THRU\s+([0-9]{0,3}))?)(?:\s+@\s+([0-9]{0,3}))?$/)}
function ch(a,b){if(b.length==0)return!1;var c=a.Ue.exec(dh(b));if(c==m)return!1;if(c[1]!=k){var d=eh(c[1]);if(d==k||d==0||d>512)return!1}d=c[2];if(d!=k&&d!=""&&(d=eh(c[2]),d==k||d==0||d>512))return!1;d=c[3];return d!=k&&d!=""&&(c=eh(c[3]),c==k||c>255)?!1:!0}function eh(a){if(!(a==m||a==k))return a=parseInt(a),isNaN(a)?k:a}function dh(a){a=a.replace(">","THRU");a=a.replace("*","1 THRU 512");a=a.replace("ALL","1 THRU 512");a=a.replace("@ +","@ 255");return a=a.replace("@ FULL","@ 255")};function fh(a,b){this.ec=b;this.ee=new bh;this.Bb=Q("table");var c=Q("caption");c.innerHTML=a;this.Bb.appendChild(c);gh(this);c="7,8,9, THRU ,4,5,6, @ ,1,2,3,FULL,0,ENTER".split(",");for(i=0;i<3;++i){var d=Q("tr");for(x=0;x<4;++x){var h=Q("td"),g=hh(this,c[i*4+x]);S(g,h);d.appendChild(h)}this.Bb.appendChild(d)}Q("tr");d=Q("td");g=hh(this,c[12]);S(g,d);this.Bb.appendChild(d);d=Q("td");g=hh(this,c[13]);S(g,d);d.colSpan="3";this.Bb.appendChild(d)}
function hh(a,b){var c=new Y(ed.nf);c.N(b);K(c,"action",function(){ih(this,b)},!1,a);return c}
function ih(a,b){if(b=="<"){var c=a.P.value.length-1;if(isNaN(parseInt(a.P.value.substr(c,1)))){var d=0;switch(a.P.value.substr(c-1,1)){case "L":d=3;break;case "@":d=2;break;case "U":d=5;break;default:d=0}c-=d}a.P.value=a.P.value.substr(0,c);ih(a,"")}else if(b=="ENTER"){a:{c=a.P.value;if(c.length!=0&&(c=a.ee.we.exec(dh(c)),c!=m)){var d=eh(c[1]),h=eh(c[2]),g=eh(c[3]);if(!(d==k||g==k)){if(c[2]!=k&&h==k){c=!1;break a}c=new ah(d,h,g);c=c.start>=1&&c.start<=512&&c.value>=0&&c.value<=255&&(c.end==k||c.end>=
1&&c.end<=512&&c.end>=c.start)?c:k;break a}}c=k}if(c!=k)a.execute(c),a.P.value=""}else if(c=a.P.value+b,ch(a.ee,c)==!0)a.P.value=c}
function gh(a){var b=Q("tr"),c=Q("td");c.colSpan="4";a.P=Q("input");a.P.type="text";c.appendChild(a.P);var d=new Ad(a.P);K(d,"key",function(a){a:{var a=a.keyCode,b=this.P.value,c=m;switch(a){case 32:break;case 13:ih(this,"ENTER");break a;default:break a}a=b.substr(b.length-1,1);switch(a){case "F":c="ULL";break;case "T":c="HRU";break;case "A":c="LL @";break;default:c=m}if(c!=m)this.P.value=b+c}},!0,a);d=hh(a,"<");Jd(d,"backspace-button");S(d,c);b.appendChild(c);a.Bb.appendChild(b)}
fh.prototype.execute=function(a){var b=this;Ff(sf.p(),this.ec,function(c){jh(b,c,a)})};function jh(a,b,c){b=b.dmx;if(c.start==c.end)b[c.start-1]=c.value;else for(i=c.start;i<=c.end;++i)b[i-1]=c.value;Gf(sf.p(),a.ec,b,aa())};function kh(){this.lc=new ae("controller_frame");this.K=new ae("controller_universe_frame");this.H();this.Zb();this.J=sf.p();K(this.J,"universe_list_change",this.fc,!1,this)}s=kh.prototype;s.title=r("DMX Keypad");s.blur=aa();s.Zb=function(){this.Aa=this.aa=k};s.H=function(){ce(this.lc);ce(this.K)};s.update=function(){this.H();this.Zb();de(this.K);be(this.K);zf(this.J)};
s.fc=function(a){if(this.aa==k){fe(this.K);var b=new Z;S(b,this.K.element);var c=this;this.aa=new Pd(b,new Mg(function(a){c.Db(a.id(),a.name())}))}for(var b=[],d=0;d<a.xa.length;++d)b.push(new Lg(a.xa[d]));Qd(this.aa,b)};s.Db=function(a,b){this.H();this.Aa=a;this.Le=new fh(b,a);fe(this.lc);this.lc.element.appendChild(this.Le.Bb);be(this.lc)};function lh(a){this.Gb=a.id;this.oa=a.name}A(lh,Od);lh.prototype.id=p("Gb");lh.prototype.name=p("oa");lh.prototype.Kb=function(a){if(this.name()>a.name())return 1;else if(this.name()<a.name())return-1;return 0};function mh(a,b,c,d){X.call(this,a,b,c,d);this.N(a.name())}A(mh,X);mh.prototype.i=function(){mh.a.i.call(this);this.b().title=this.ic.name()+" Plugin"};function nh(a){this.U=a}nh.prototype.Ub=function(a){return new mh(a,this.U)};function oh(){this.Vb=new ae("plugin_frame");this.Wb=new ae("plugin_info_frame");this.H();this.Gc=k;this.J=sf.p();K(this.J,"plugin_list_change",this.ef,!1,this);K(this.J,"plugin_change",this.df,!1,this)}s=oh.prototype;s.title=r("Plugins");s.blur=aa();s.H=function(){ce(this.Vb);ce(this.Wb)};s.update=function(){this.H();de(this.Vb);this.Gc=k;be(this.Vb);zf(this.J)};
s.ef=function(a){if(this.Gc==k){fe(this.Vb);var b=new Z;S(b,this.Vb.element);var c=this;this.Gc=new Pd(b,new nh(function(a){a=a.id();c.H();de(c.Wb);be(c.Wb);Af(c.J,a)}))}for(var b=[],d=0;d<a.plugins.length;++d)b.push(new lh(a.plugins[d]));Qd(this.Gc,b)};s.df=function(a){fe(this.Wb);a=a.We.description;a=a.replace(/\n/g,"<br>");this.Wb.element.innerHTML=a};function ph(a,b,c,d){this.ca=c||N();this.G=a;this.X=[];this.af=b?b:qh;this.me=!!d;this.G.className="goog-tabpane";a=[];for(b=this.G.firstElementChild!=k?this.G.firstElementChild:xc(this.G.firstChild);b;)a.push(b),b=b.nextElementSibling!=k?b.nextElementSibling:xc(b.nextSibling);this.Q=this.ca.d("ul",{className:"goog-tabpane-tabs",tabIndex:"0"});this.R=this.ca.d("div","goog-tabpane-cont");this.G.appendChild(this.R);switch(this.af){case qh:this.G.insertBefore(this.Q,this.R);this.G.insertBefore(rh(this),
this.R);lc(this.G,"goog-tabpane-top");break;case 1:this.G.appendChild(this.Q);this.G.appendChild(rh(this));lc(this.G,"goog-tabpane-bottom");break;case 2:this.G.insertBefore(this.Q,this.R);lc(this.G,"goog-tabpane-left");break;case 3:this.G.insertBefore(this.Q,this.R);lc(this.G,"goog-tabpane-right");break;default:e(Error("Invalid tab location"))}this.Q.tabIndex=0;K(this.Q,this.me?"mousedown":"click",this.ae,!1,this);K(this.Q,"keydown",this.be,!1,this);for(c=0;b=a[c];c++)sh(this,new th(b))}A(ph,gd);
var qh=0;function rh(a){var b=N(k),c=m;if(C)c=b.m.createStyleSheet(),Xc(c);else{var d=qc(b.m,"head")[0];d||(c=qc(b.m,"body")[0],d=b.d("head"),c.parentNode.insertBefore(d,c));c=b.d("style");Xc(c);b.appendChild(d,c)}return a.ca.d("div","goog-tabpane-clear")}s=ph.prototype;s.e=function(){ph.a.e.call(this);Zb(this.Q,this.me?"mousedown":"click",this.ae,!1,this);Zb(this.Q,"keydown",this.be,!1,this);delete this.G;this.R=this.Q=m};
function sh(a,b){if(b.q&&b.q!=a&&b.q instanceof ph){var c=b.q,d=b;ia(d)&&(d=c.X[d]);c.X.splice(d.sb,1);d.cc(m);wc(d.Mb);wc(d.R);for(var h=0;d=c.X[h];h++)d.cc(c,h)}c=a.X.length;fa(k)&&k!=c?(c=k,a.X.splice(c,0,b),a.Q.insertBefore(b.Mb,a.Q.childNodes[c])):(a.X.push(b),a.Q.appendChild(b.Mb));b.cc(a,c);if(!a.Y)a.Y=b,a.dispatchEvent(new uh("change",a,a.Y));a.R.appendChild(b.R);vh(b,b==a.Y);for(d=c+1;c=a.X[d];d++)c.sb=d}
s.Ma=function(a){if(a>=0&&a<this.X.length&&(a=this.X[a],a.isEnabled()&&(!this.Y||a!=this.Y)))vh(this.Y,!1),vh(a,!0),this.Y=a,this.dispatchEvent(new uh("change",this,this.Y))};s.qb=function(){return this.Y?this.Y.sb:-1};s.w=function(){return this.R||m};s.b=function(){return this.G||m};s.ae=function(a){for(var b=a.target;b!=this.Q;){if(b.tagName=="LI"){var c;for(c=0;b=b.previousSibling;c++);this.Ma(c);break}b=b.parentNode}a.preventDefault()};
s.be=function(a){if(!a.altKey&&!a.metaKey&&!a.ctrlKey)switch(a.keyCode){case 37:a=this.Y.sb-1;this.Ma(a<0?this.X.length-1:a);break;case 39:a=this.Y.sb+1;this.Ma(a>=this.X.length?0:a);break;case 36:this.Ma(0);break;case 35:this.Ma(this.X.length-1)}};
function th(a,b,c){var d,h;if(z(a)&&!fa(b))d=a;else if(b)d=b,h=a;else if(a){if(b=a.firstElementChild!=k?a.firstElementChild:xc(a.firstChild))d=Dc(b),b.parentNode.removeChild(b);h=a}this.ca=c||N();this.R=h||this.ca.d("div");this.Mb=this.ca.d("li",m,d);this.sb=this.q=m;this.da=!0}th.prototype.w=p("R");th.prototype.getParent=p("q");th.prototype.isEnabled=p("da");function vh(a,b){if(a.isEnabled())a.R.style.display=b?"":"none",a.Mb.className=b?"goog-tabpane-tab-selected":"goog-tabpane-tab"}
th.prototype.cc=function(a,b){this.q=a;this.sb=fa(b)?b:m};function uh(a,b,c){H.call(this,a,b);this.page=c}A(uh,H);function wh(){this.na=[];this.na.push(new Ug);this.na.push(new Ng);this.na.push(new $g);this.na.push(new kh);this.na.push(new oh);this.Ad=new ph(P("tab_pane"));for(var a=0;a<this.na.length;++a)sh(this.Ad,new th(P("tab_page_"+a),this.na[a].title()));K(this.Ad,"change",this.ff,!1,this)}wh.prototype.ff=function(){for(var a=this.Ad.qb(),b=0;b<this.na.length;++b)b!=a&&this.na[b].blur();this.na[a].update()};function xh(){new wh}var yh="ola.mobile.Setup".split("."),zh=u;
!(yh[0]in zh)&&zh.execScript&&zh.execScript("var "+yh[0]);for(var Ah;yh.length&&(Ah=yh.shift());)!yh.length&&fa(xh)?zh[Ah]=xh:zh=zh[Ah]?zh[Ah]:zh[Ah]={};
