(function(){function g(a){throw a;}var i=void 0,j=!0,k=null,p=!1;function r(a){return function(){return this[a]}}function s(a){return function(){return a}}var v,w=this;function aa(a,b){var c=a.split("."),d=w;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var f;c.length&&(f=c.shift());)!c.length&&b!==i?d[f]=b:d=d[f]?d[f]:d[f]={}}function ba(){}function x(a){a.K=function(){return a.Fb?a.Fb:a.Fb=new a}}
function ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function z(a){return"array"==ca(a)}function da(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function A(a){return"string"==typeof a}function ea(a){return"function"==ca(a)}function fa(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function ga(a){return a[ha]||(a[ha]=++ia)}var ha="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ia=0;
function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){a||g(Error());if(2<arguments.length){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)}}return function(){return a.apply(b,arguments)}}function la(a,b,c){la=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ja:ka;return la.apply(k,arguments)}
function ma(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 na=Date.now||function(){return+new Date};function C(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c;a.prototype.constructor=a};function D(){0!=oa&&(this.oc=Error().stack,ga(this))}var oa=0;D.prototype.Ub=p;function pa(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 qa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function ra(a){if(!sa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ta,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ua,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(va,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(wa,"&quot;"));return a}var ta=/&/g,ua=/</g,va=/>/g,wa=/\"/g,sa=/[&<>\"]/;var E=Array.prototype,xa=E.indexOf?function(a,b,c){return E.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(A(a))return!A(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},F=E.forEach?function(a,b,c){E.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=A(a)?a.split(""):a,e=0;e<d;e++)e in f&&b.call(c,f[e],e,a)},ya=E.filter?function(a,b,c){return E.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=[],e=0,h=A(a)?a.split(""):
a,l=0;l<d;l++)if(l in h){var m=h[l];b.call(c,m,l,a)&&(f[e++]=m)}return f},za=E.every?function(a,b,c){return E.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=A(a)?a.split(""):a,e=0;e<d;e++)if(e in f&&!b.call(c,f[e],e,a))return p;return j};function Aa(a,b,c){for(var d=a.length,f=A(a)?a.split(""):a,e=0;e<d;e++)if(e in f&&b.call(c,f[e],e,a))return e;return-1}function Ba(a,b){return 0<=xa(a,b)}function Ca(a,b){var c=xa(a,b);0<=c&&E.splice.call(a,c,1)}
function Da(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ea(a,b,c,d){E.splice.apply(a,Fa(arguments,1))}function Fa(a,b,c){return 2>=arguments.length?E.slice.call(a,b):E.slice.call(a,b,c)};var Ga,Ha,Ia,Ja;function Ka(){return w.navigator?w.navigator.userAgent:k}Ja=Ia=Ha=Ga=p;var La;if(La=Ka()){var Ma=w.navigator;Ga=0==La.indexOf("Opera");Ha=!Ga&&-1!=La.indexOf("MSIE");Ia=!Ga&&-1!=La.indexOf("WebKit");Ja=!Ga&&!Ia&&"Gecko"==Ma.product}var Na=Ga,H=Ha,I=Ja,J=Ia,Oa=w.navigator,Pa=-1!=(Oa&&Oa.platform||"").indexOf("Mac"),Qa;
a:{var Ra="",Sa;if(Na&&w.opera)var Ta=w.opera.version,Ra="function"==typeof Ta?Ta():Ta;else if(I?Sa=/rv\:([^\);]+)(\)|;)/:H?Sa=/MSIE\s+([^\);]+)(\)|;)/:J&&(Sa=/WebKit\/(\S+)/),Sa)var Ua=Sa.exec(Ka()),Ra=Ua?Ua[1]:"";if(H){var Va,Wa=w.document;Va=Wa?Wa.documentMode:i;if(Va>parseFloat(Ra)){Qa=String(Va);break a}}Qa=Ra}var Xa={};
function K(a){var b;if(!(b=Xa[a])){b=0;for(var c=qa(String(Qa)).split("."),d=qa(String(a)).split("."),f=Math.max(c.length,d.length),e=0;0==b&&e<f;e++){var h=c[e]||"",l=d[e]||"",m=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var q=m.exec(h)||["","",""],u=n.exec(l)||["","",""];if(0==q[0].length&&0==u[0].length)break;b=((0==q[1].length?0:parseInt(q[1],10))<(0==u[1].length?0:parseInt(u[1],10))?-1:(0==q[1].length?0:parseInt(q[1],10))>(0==u[1].length?0:parseInt(u[1],10))?1:0)||((0==q[2].length)<
(0==u[2].length)?-1:(0==q[2].length)>(0==u[2].length)?1:0)||(q[2]<u[2]?-1:q[2]>u[2]?1:0)}while(0==b)}b=Xa[a]=0<=b}return b}var Ya={};function Za(a){return Ya[a]||(Ya[a]=H&&!!document.documentMode&&document.documentMode>=a)};var $a=!H||Za(9),ab=!H||Za(9),bb=H&&!K("9");!J||K("528");I&&K("1.9b")||H&&K("8")||Na&&K("9.5")||J&&K("528");I&&!K("8")||H&&K("9");function L(a,b){this.type=a;this.currentTarget=this.target=b}v=L.prototype;v.Z=p;v.defaultPrevented=p;v.Ya=j;v.stopPropagation=function(){this.Z=j};v.preventDefault=function(){this.defaultPrevented=j;this.Ya=p};function cb(a){cb[" "](a);return a}cb[" "]=ba;function db(a,b){a&&this.ya(a,b)}C(db,L);var eb=[1,4,2];v=db.prototype;v.target=k;v.relatedTarget=k;v.offsetX=0;v.offsetY=0;v.clientX=0;v.clientY=0;v.screenX=0;v.screenY=0;v.button=0;v.keyCode=0;v.charCode=0;v.ctrlKey=p;v.altKey=p;v.shiftKey=p;v.metaKey=p;v.vb=p;v.I=k;
v.ya=function(a,b){var c=this.type=a.type;L.call(this,c);this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(I){var f;a:{try{cb(d.nodeName);f=j;break a}catch(e){}f=p}f||(d=k)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=J||a.offsetX!==i?a.offsetX:a.layerX;this.offsetY=J||a.offsetY!==i?a.offsetY:a.layerY;this.clientX=a.clientX!==i?a.clientX:a.pageX;this.clientY=a.clientY!==i?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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.vb=Pa?a.metaKey:a.ctrlKey;this.state=a.state;this.I=a;a.defaultPrevented&&this.preventDefault();delete this.Z};function fb(a){return $a?0==a.I.button:"click"==a.type?j:!!(a.I.button&eb[0])}
v.stopPropagation=function(){db.f.stopPropagation.call(this);this.I.stopPropagation?this.I.stopPropagation():this.I.cancelBubble=j};v.preventDefault=function(){db.f.preventDefault.call(this);var a=this.I;if(a.preventDefault)a.preventDefault();else if(a.returnValue=p,bb)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};function gb(){}var hb=0;v=gb.prototype;v.key=0;v.aa=p;v.zb=p;v.ya=function(a,b,c,d,f,e){ea(a)?this.Gb=j:a&&a.handleEvent&&ea(a.handleEvent)?this.Gb=p:g(Error("Invalid listener argument"));this.ma=a;this.Lb=b;this.src=c;this.type=d;this.capture=!!f;this.Pa=e;this.zb=p;this.key=++hb;this.aa=p};v.handleEvent=function(a){return this.Gb?this.ma.call(this.Pa||this.src,a):this.ma.handleEvent.call(this.ma,a)};function ib(a,b,c){b in a&&g(Error('The object already contains the key "'+b+'"'));a[b]=c}var jb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function kb(a,b){for(var c,d,f=1;f<arguments.length;f++){d=arguments[f];for(c in d)a[c]=d[c];for(var e=0;e<jb.length;e++)c=jb[e],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var lb={},N={},mb={},nb={};
function O(a,b,c,d,f){if(b){if(z(b)){for(var e=0;e<b.length;e++)O(a,b[e],c,d,f);return k}var d=!!d,h=N;b in h||(h[b]={A:0,z:0});h=h[b];d in h||(h[d]={A:0,z:0},h.A++);var h=h[d],l=ga(a),m;h.z++;if(h[l]){m=h[l];for(e=0;e<m.length;e++)if(h=m[e],h.ma==c&&h.Pa==f){if(h.aa)break;return m[e].key}}else m=h[l]=[],h.A++;var n=ob,q=ab?function(a){return n.call(q.src,q.key,a)}:function(a){a=n.call(q.src,q.key,a);if(!a)return a},e=q;e.src=a;h=new gb;h.ya(c,e,a,b,d,f);c=h.key;e.key=c;m.push(h);lb[c]=h;mb[l]||(mb[l]=
[]);mb[l].push(h);a.addEventListener?(a==w||!a.Bb)&&a.addEventListener(b,e,d):a.attachEvent(b in nb?nb[b]:nb[b]="on"+b,e);return c}g(Error("Invalid event type"))}function pb(a,b,c,d,f){if(z(b))for(var e=0;e<b.length;e++)pb(a,b[e],c,d,f);else if(d=!!d,a=qb(a,b,d))for(e=0;e<a.length;e++)if(a[e].ma==c&&a[e].capture==d&&a[e].Pa==f){P(a[e].key);break}}
function P(a){if(!lb[a])return p;var b=lb[a];if(b.aa)return p;var c=b.src,d=b.type,f=b.Lb,e=b.capture;c.removeEventListener?(c==w||!c.Bb)&&c.removeEventListener(d,f,e):c.detachEvent&&c.detachEvent(d in nb?nb[d]:nb[d]="on"+d,f);c=ga(c);mb[c]&&(f=mb[c],Ca(f,b),0==f.length&&delete mb[c]);b.aa=j;if(b=N[d][e][c])b.Jb=j,rb(d,e,c,b);delete lb[a];return j}
function rb(a,b,c,d){if(!d.Ua&&d.Jb){for(var f=0,e=0;f<d.length;f++)d[f].aa?d[f].Lb.src=k:(f!=e&&(d[e]=d[f]),e++);d.length=e;d.Jb=p;0==e&&(delete N[a][b][c],N[a][b].A--,0==N[a][b].A&&(delete N[a][b],N[a].A--),0==N[a].A&&delete N[a])}}function qb(a,b,c){var d=N;return b in d&&(d=d[b],c in d&&(d=d[c],a=ga(a),d[a]))?d[a]:k}
function sb(a,b,c,d,f){var e=1,b=ga(b);if(a[b]){a.z--;a=a[b];a.Ua?a.Ua++:a.Ua=1;try{for(var h=a.length,l=0;l<h;l++){var m=a[l];m&&!m.aa&&(e&=tb(m,f)!==p)}}finally{a.Ua--,rb(c,d,b,a)}}return Boolean(e)}function tb(a,b){a.zb&&P(a.key);return a.handleEvent(b)}
function ob(a,b){if(!lb[a])return j;var c=lb[a],d=c.type,f=N;if(!(d in f))return j;var f=f[d],e,h;if(!ab){var l;if(!(l=b))a:{l=["window","event"];for(var m=w;e=l.shift();)if(m[e]!=k)m=m[e];else{l=k;break a}l=m}e=l;l=j in f;m=p in f;if(l){if(0>e.keyCode||e.returnValue!=i)return j;a:{var n=p;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(q){n=j}if(n||e.returnValue==i)e.returnValue=j}}n=new db;n.ya(e,this);e=j;try{if(l){for(var u=[],B=n.currentTarget;B;B=B.parentNode)u.push(B);h=f[j];h.z=h.A;for(var M=
u.length-1;!n.Z&&0<=M&&h.z;M--)n.currentTarget=u[M],e&=sb(h,u[M],d,j,n);if(m){h=f[p];h.z=h.A;for(M=0;!n.Z&&M<u.length&&h.z;M++)n.currentTarget=u[M],e&=sb(h,u[M],d,p,n)}}else e=tb(c,n)}finally{u&&(u.length=0)}return e}d=new db(b,this);return e=tb(c,d)};function ub(){D.call(this)}C(ub,D);v=ub.prototype;v.Bb=j;v.ub=k;v.wb=function(a){this.ub=a};v.addEventListener=function(a,b,c,d){O(this,a,b,c,d)};v.removeEventListener=function(a,b,c,d){pb(this,a,b,c,d)};
v.dispatchEvent=function(a){var b=a.type||a,c=N;if(b in c){if(A(a))a=new L(a,this);else if(a instanceof L)a.target=a.target||this;else{var d=a,a=new L(b,this);kb(a,d)}var d=1,f,c=c[b],b=j in c,e;if(b){f=[];for(e=this;e;e=e.ub)f.push(e);e=c[j];e.z=e.A;for(var h=f.length-1;!a.Z&&0<=h&&e.z;h--)a.currentTarget=f[h],d&=sb(e,f[h],a.type,j,a)&&a.Ya!=p}if(p in c)if(e=c[p],e.z=e.A,b)for(h=0;!a.Z&&h<f.length&&e.z;h++)a.currentTarget=f[h],d&=sb(e,f[h],a.type,p,a)&&a.Ya!=p;else for(f=this;!a.Z&&f&&e.z;f=f.ub)a.currentTarget=
f,d&=sb(e,f,a.type,p,a)&&a.Ya!=p;a=Boolean(d)}else a=j;return a};function vb(a,b){D.call(this);this.za=a||1;this.Za=b||wb;this.cb=la(this.lc,this);this.ob=na()}C(vb,ub);vb.prototype.enabled=p;var wb=w.window;v=vb.prototype;v.l=k;v.setInterval=function(a){this.za=a;this.l&&this.enabled?(this.stop(),this.start()):this.l&&this.stop()};v.lc=function(){if(this.enabled){var a=na()-this.ob;0<a&&a<0.8*this.za?this.l=this.Za.setTimeout(this.cb,this.za-a):(this.dispatchEvent(xb),this.enabled&&(this.l=this.Za.setTimeout(this.cb,this.za),this.ob=na()))}};
v.start=function(){this.enabled=j;this.l||(this.l=this.Za.setTimeout(this.cb,this.za),this.ob=na())};v.stop=function(){this.enabled=p;this.l&&(this.Za.clearTimeout(this.l),this.l=k)};var xb="tick";var yb,zb=!H||Za(9);!I&&!H||H&&Za(9)||I&&K("1.9.1");H&&K("9");function Ab(a){a=a.className;return A(a)&&a.match(/\S+/g)||[]}function Bb(a,b){for(var c=Ab(a),d=Fa(arguments,1),f=c.length+d.length,e=c,h=0;h<d.length;h++)Ba(e,d[h])||e.push(d[h]);a.className=c.join(" ");return c.length==f}function Cb(a,b){var c=Ab(a),d=Fa(arguments,1),f,e=d;f=ya(c,function(a){return!Ba(e,a)});a.className=f.join(" ");return f.length==c.length-d.length};function Db(a){return a?new Eb(Q(a)):yb||(yb=new Eb)}var Fb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function Gb(a){var b=document,c=b.createElement("div");H?(c.innerHTML="<br>"+a,c.removeChild(c.firstChild)):c.innerHTML=a;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(a=b.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}function Hb(a){for(var b;b=a.firstChild;)a.removeChild(b)}
function Ib(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}function Q(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Jb(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?(a=a.tabIndex,"number"==typeof a&&0<=a&&32768>a):p}function Eb(a){this.B=a||w.document||document}v=Eb.prototype;v.Ma=Db;
v.a=function(a){return A(a)?this.B.getElementById(a):a};
v.j=function(a,b,c){var d=this.B,f=arguments,e=f[0],h=f[1];if(!zb&&h&&(h.name||h.type)){e=["<",e];h.name&&e.push(' name="',ra(h.name),'"');if(h.type){e.push(' type="',ra(h.type),'"');var l={};kb(l,h);delete l.type;h=l}e.push(">");e=e.join("")}e=d.createElement(e);if(h)if(A(h))e.className=h;else if(z(h))Bb.apply(k,[e].concat(h));else{var m=e,l=function(a,b){"style"==b?m.style.cssText=a:"class"==b?m.className=a:"for"==b?m.htmlFor=a:b in Fb?m.setAttribute(Fb[b],a):0==b.lastIndexOf("aria-",0)||0==b.lastIndexOf("data-",
0)?m.setAttribute(b,a):m[b]=a},n;for(n in h)l.call(i,h[n],n)}if(2<f.length){var q=d,u=e,d=f,f=function(a){a&&u.appendChild(A(a)?q.createTextNode(a):a)};for(n=2;n<d.length;n++)if(h=d[n],da(h)&&!(fa(h)&&0<h.nodeType)){a:{if(h&&"number"==typeof h.length){if(fa(h)){l="function"==typeof h.item||"string"==typeof h.item;break a}if(ea(h)){l="function"==typeof h.item;break a}}l=p}F(l?Da(h):h,f)}else f(h)}return e};v.createElement=function(a){return this.B.createElement(a)};v.createTextNode=function(a){return this.B.createTextNode(a)};
v.appendChild=function(a,b){a.appendChild(b)};v.Mb=Hb;v.contains=Ib;function Kb(a){D.call(this);this.Db=a;this.ka=[]}C(Kb,D);var Lb=[];function R(a,b,c,d){z(c)||(Lb[0]=c,c=Lb);for(var f=0;f<c.length;f++){var e=O(b,c[f],d||a,p,a.Db||a);a.ka.push(e)}return a}function S(a,b,c,d,f,e){if(z(c))for(var h=0;h<c.length;h++)S(a,b,c[h],d,f,e);else{a:{d=d||a;e=e||a.Db||a;f=!!f;if(b=qb(b,c,f))for(c=0;c<b.length;c++)if(!b[c].aa&&b[c].ma==d&&b[c].capture==f&&b[c].Pa==e){b=b[c];break a}b=k}b&&(b=b.key,P(b),Ca(a.ka,b))}return a}Kb.prototype.handleEvent=function(){g(Error("EventHandler.handleEvent not implemented"))};function Mb(a,b){L.call(this,"navigate");this.xb=a;this.pc=b}C(Mb,L);function Nb(a,b,c,d){D.call(this);a&&!b&&g(Error("Can't use invisible history without providing a blank page."));var f;c?f=c:(f="history_state"+Ob,document.write(pa(Pb,f,f)),f=A(f)?document.getElementById(f):f);this.xa=f;this.N=c?Q(c)?Q(c).parentWindow||Q(c).defaultView:window:window;this.Sb=this.N.location.href.split("#")[0];this.Qa=b;H&&!b&&(this.Qa="https"==window.location.protocol?"https:///":'javascript:""');this.l=new vb(Qb);this.ba=!a;this.fa=new Kb(this);if(a||Rb)d?a=d:(a="history_iframe"+
Ob,b=this.Qa?'src="'+ra(this.Qa)+'"':"",document.write(pa(Sb,a,b)),a=A(a)?document.getElementById(a):a),this.ia=a,this.Qb=j;Rb&&(R(this.fa,this.N,"load",this.fc),this.Ob=this.fb=p);this.ba?Tb(this,Ub(this),j):Vb(this,this.xa.value);Ob++}C(Nb,ub);Nb.prototype.q=p;Nb.prototype.oa=p;Nb.prototype.la=k;var Wb=H&&Za(8)||I&&K("1.9.2")||J&&K("532.1"),Rb=H&&!Za(8),Xb=Rb;v=Nb.prototype;v.na=k;
v.L=function(a){if(a!=this.q)if(Rb&&!this.fb)this.Ob=a;else if(a)if(Na?R(this.fa,this.N.document,Yb,this.jc):I&&R(this.fa,this.N,"pageshow",this.hc),Wb&&this.ba)R(this.fa,this.N,"hashchange",this.gc),this.q=j,this.dispatchEvent(new Mb(Ub(this),p));else{if(!H||this.fb)R(this.fa,this.l,xb,la(this.Ab,this,j)),this.q=j,Rb||(this.la=Ub(this),this.dispatchEvent(new Mb(Ub(this),p))),this.l.start()}else this.q=p,a=this.fa,F(a.ka,P),a.ka.length=0,this.l.stop()};
v.fc=function(){this.fb=j;this.xa.value&&Vb(this,this.xa.value,j);this.L(this.Ob)};v.hc=function(a){a.I.persisted&&(this.L(p),this.L(j))};v.gc=function(){var a=Zb(this.N);a!=this.la&&$b(this,a,j)};function Ub(a){return a.na!=k?a.na:a.ba?Zb(a.N):ac(a)||""}function Zb(a){var a=a.location.href,b=a.indexOf("#");return 0>b?"":a.substring(b+1)}function Tb(a,b,c){var d=a.N.location,a=a.Sb,f=-1!=d.href.indexOf("#");if(Xb||f||b)a+="#"+b;a!=d.href&&(c?d.replace(a):d.href=a)}
function Vb(a,b,c,d){if(a.Qb||b!=ac(a))if(a.Qb=p,b=encodeURIComponent(String(b)),H){var f=a.ia.contentDocument||a.ia.contentWindow.document;f.open("text/html",c?"replace":i);f.write(pa(bc,ra(d||a.N.document.title),b));f.close()}else if(b=a.Qa+"#"+b,a=a.ia.contentWindow)c?a.location.replace(b):a.location.href=b}
function ac(a){if(H)return a=a.ia.contentDocument||a.ia.contentWindow.document,a.body?decodeURIComponent(a.body.innerHTML.replace(/\+/g," ")):k;var b=a.ia.contentWindow;if(b){var c;try{c=decodeURIComponent(Zb(b).replace(/\+/g," "))}catch(d){return a.oa||(a.oa!=j&&a.l.setInterval(cc),a.oa=j),k}a.oa&&(a.oa!=p&&a.l.setInterval(Qb),a.oa=p);return c||k}return k}
v.Ab=function(a){if(this.ba){var b=Zb(this.N);b!=this.la&&$b(this,b,a)}if(!this.ba||Rb)if(b=ac(this)||"",this.na==k||b==this.na)this.na=k,b!=this.la&&$b(this,b,a)};function $b(a,b,c){a.la=a.xa.value=b;a.ba?(Rb&&Vb(a,b),Tb(a,b)):Vb(a,b);a.dispatchEvent(new Mb(Ub(a),c))}v.jc=function(){this.l.stop();this.l.start()};
var Yb=["mousedown","keydown","mousemove"],bc="<title>%s</title><body>%s</body>",Sb='<iframe id="%s" style="display:none" %s></iframe>',Pb='<input type="text" name="%s" id="%s" style="display:none">',Ob=0,Qb=150,cc=1E4;var dc;dc=s(j);/*
 Portions of this code are from the Dojo Toolkit, received by
 The Closure Library Authors under the BSD license. All other code is
 Copyright 2005-2009 The Closure Library Authors. All Rights Reserved.

The "New" BSD License:

Copyright (c) 2005-2009, The Dojo Foundation
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
    list of conditions and the following disclaimer.
 Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 Neither the name of the Dojo Foundation nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
var ec;function fc(a,b){var c=b||[];a&&c.push(a);return c}var gc=J&&"BackCompat"==document.compatMode,hc=document.firstChild.children?"children":"childNodes",ic=p;
function jc(a){function b(){0<=n&&(t.id=c(n,y).replace(/\\/g,""),n=-1);if(0<=q){var a=q==y?k:c(q,y);0>">~+".indexOf(a)?t.t=a:t.Wa=a;q=-1}0<=m&&(t.O.push(c(m+1,y).replace(/\\/g,"")),m=-1)}function c(b,c){return qa(a.slice(b,c))}for(var a=0<=">~+".indexOf(a.slice(-1))?a+" * ":a+" ",d=[],f=-1,e=-1,h=-1,l=-1,m=-1,n=-1,q=-1,u="",B="",M,y=0,ce=a.length,t=k,G=k;u=B,B=a.charAt(y),y<ce;y++)if("\\"!=u)if(t||(M=y,t={pa:k,$:[],Ka:[],O:[],t:k,Wa:k,id:k,ib:function(){return ic?this.kc:this.t}},q=y),0<=f)if("]"==
B){G.bb?G.pb=c(h||f+1,y):G.bb=c(f+1,y);if((f=G.pb)&&('"'==f.charAt(0)||"'"==f.charAt(0)))G.pb=f.slice(1,-1);t.Ka.push(G);G=k;f=h=-1}else"="==B&&(h=0<="|~^$*".indexOf(u)?u:"",G.type=h+B,G.bb=c(f+1,y-h.length),h=y+1);else 0<=e?")"==B&&(0<=l&&(G.value=c(e+1,y)),l=e=-1):"#"==B?(b(),n=y+1):"."==B?(b(),m=y):":"==B?(b(),l=y):"["==B?(b(),f=y,G={}):"("==B?(0<=l&&(G={name:c(l+1,y),value:k},t.$.push(G)),e=y):" "==B&&u!=B&&(b(),0<=l&&t.$.push({name:c(l+1,y)}),t.Ib=t.$.length||t.Ka.length||t.O.length,t.qc=t.pa=
c(M,y),t.kc=t.t=t.Wa?k:t.t||"*",t.t&&(t.t=t.t.toUpperCase()),d.length&&d[d.length-1].Wa&&(t.Eb=d.pop(),t.pa=t.Eb.pa+" "+t.pa),d.push(t),t=k);return d}function kc(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}}function lc(a){return 1==a.nodeType}function mc(a,b){return!a?"":"class"==b?a.className||"":"for"==b?a.htmlFor||"":"style"==b?a.style.cssText||"":(ic?a.getAttribute(b):a.getAttribute(b,2))||""}
var nc={"*=":function(a,b){return function(c){return 0<=mc(c,a).indexOf(b)}},"^=":function(a,b){return function(c){return 0==mc(c,a).indexOf(b)}},"$=":function(a,b){return function(c){c=" "+mc(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return 0<=(" "+mc(b,a)+" ").indexOf(c)}},"|=":function(a,b){b=" "+b;return function(c){c=" "+mc(c,a);return c==b||0==c.indexOf(b+"-")}},"=":function(a,b){return function(c){return mc(c,a)==b}}},oc="undefined"==
typeof document.firstChild.nextElementSibling,pc=!oc?"nextElementSibling":"nextSibling",qc=!oc?"previousElementSibling":"previousSibling",rc=oc?lc:dc;function sc(a){for(;a=a[qc];)if(rc(a))return p;return j}function tc(a){for(;a=a[pc];)if(rc(a))return p;return j}function uc(a){var b=a.parentNode,c=0,d=b[hc],f=a._i||-1,e=b._l||-1;if(!d)return-1;d=d.length;if(e==d&&0<=f&&0<=e)return f;b._l=d;f=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[pc])rc(b)&&(b._i=++c,a===b&&(f=c));return f}
function vc(a){return!(uc(a)%2)}function wc(a){return uc(a)%2}
var yc={checked:function(){return function(a){return a.checked||a.attributes.checked}},"first-child":function(){return sc},"last-child":function(){return tc},"only-child":function(){return function(a){return!sc(a)||!tc(a)?p:j}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;0<=a;a--){var c=b[a].nodeType;if(1===c||3==c)return p}return j}},contains:function(a,b){var c=b.charAt(0);if('"'==c||"'"==c)b=b.slice(1,-1);return function(a){return 0<=a.innerHTML.indexOf(b)}},
not:function(a,b){var c=jc(b)[0],d={da:1};"*"!=c.t&&(d.t=1);c.O.length||(d.O=1);var f=xc(c,d);return function(a){return!f(a)}},"nth-child":function(a,b){if("odd"==b)return wc;if("even"==b)return vc;if(-1!=b.indexOf("n")){var c=b.split("n",2),d=c[0]?"-"==c[0]?-1:parseInt(c[0],10):1,f=c[1]?parseInt(c[1],10):0,e=0,h=-1;0<d?0>f?f=f%d&&d+f%d:0<f&&(f>=d&&(e=f-f%d),f%=d):0>d&&(d*=-1,0<f&&(h=f,f%=d));if(0<d)return function(a){a=uc(a);return a>=e&&(0>h||a<=h)&&a%d==f};b=f}var l=parseInt(b,10);return function(a){return uc(a)==
l}}},zc=H?function(a){var b=a.toLowerCase();"class"==b&&(a="className");return function(c){return ic?c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}};
function xc(a,b){if(!a)return dc;var b=b||{},c=k;b.da||(c=kc(c,lc));b.t||"*"!=a.t&&(c=kc(c,function(b){return b&&b.tagName==a.ib()}));b.O||F(a.O,function(a,b){var e=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=kc(c,function(a){return e.test(a.className)});c.count=b});b.$||F(a.$,function(a){var b=a.name;yc[b]&&(c=kc(c,yc[b](b,a.value)))});b.Ka||F(a.Ka,function(a){var b,e=a.bb;a.type&&nc[a.type]?b=nc[a.type](e,a.pb):e.length&&(b=zc(e));b&&(c=kc(c,b))});b.id||a.id&&(c=kc(c,function(b){return!!b&&b.id==a.id}));
c||"default"in b||(c=dc);return c}var Ac={};
function Bc(a){var b=Ac[a.pa];if(b)return b;var c=a.Eb,c=c?c.Wa:"",d=xc(a,{da:1}),f="*"==a.t,e=document.getElementsByClassName;if(c)if(e={da:1},f&&(e.t=1),d=xc(a,e),"+"==c)var h=d,b=function(a,b,c){for(;a=a[pc];)if(!oc||lc(a)){(!c||Cc(a,c))&&h(a)&&b.push(a);break}return b};else if("~"==c)var l=d,b=function(a,b,c){for(a=a[pc];a;){if(rc(a)){if(c&&!Cc(a,c))break;l(a)&&b.push(a)}a=a[pc]}return b};else{if(">"==c)var m=d,m=m||dc,b=function(a,b,c){for(var d=0,f=a[hc];a=f[d++];)rc(a)&&((!c||Cc(a,c))&&m(a,
d))&&b.push(a);return b}}else if(a.id)d=!a.Ib&&f?dc:xc(a,{da:1,id:1}),b=function(b,c){var f=Db(b).a(a.id),e;if(e=f&&d(f))if(!(e=9==b.nodeType)){for(e=f.parentNode;e&&e!=b;)e=e.parentNode;e=!!e}if(e)return fc(f,c)};else if(e&&/\{\s*\[native code\]\s*\}/.test(String(e))&&a.O.length&&!gc)var d=xc(a,{da:1,O:1,id:1}),n=a.O.join(" "),b=function(a,b){for(var c=fc(0,b),e,f=0,h=a.getElementsByClassName(n);e=h[f++];)d(e,a)&&c.push(e);return c};else!f&&!a.Ib?b=function(b,c){for(var d=fc(0,c),e,f=0,h=b.getElementsByTagName(a.ib());e=
h[f++];)d.push(e);return d}:(d=xc(a,{da:1,t:1,id:1}),b=function(b,c){for(var e=fc(0,c),f,h=0,l=b.getElementsByTagName(a.ib());f=l[h++];)d(f,b)&&e.push(f);return e});return Ac[a.pa]=b}var Dc={},Ec={};function Fc(a){var b=jc(qa(a));if(1==b.length){var c=Bc(b[0]);return function(a){if(a=c(a,[]))a.Va=j;return a}}return function(a){for(var a=fc(a),c,e,h=b.length,l,m,n=0;n<h;n++){m=[];c=b[n];e=a.length-1;0<e&&(l={},m.Va=j);e=Bc(c);for(var q=0;c=a[q];q++)e(c,m,l);if(!m.length)break;a=m}return m}}
var Gc=!!document.querySelectorAll&&(!J||K("526"));
function Hc(a,b){if(Gc){var c=Ec[a];if(c&&!b)return c}if(c=Dc[a])return c;var c=a.charAt(0),d=-1==a.indexOf(" ");0<=a.indexOf("#")&&d&&(b=j);if(Gc&&!b&&-1==">~+".indexOf(c)&&(!H||-1==a.indexOf(":"))&&!(gc&&0<=a.indexOf("."))&&-1==a.indexOf(":contains")&&-1==a.indexOf("|=")){var f=0<=">~+".indexOf(a.charAt(a.length-1))?a+" *":a;return Ec[a]=function(b){try{9==b.nodeType||d||g("");var c=b.querySelectorAll(f);H?c.Tb=j:c.Va=j;return c}catch(e){return Hc(a,j)(b)}}}var e=a.split(/\s*,\s*/);return Dc[a]=
2>e.length?Fc(a):function(a){for(var b=0,c=[],d;d=e[b++];)c=c.concat(Fc(d)(a));return c}}var Ic=0,Jc=H?function(a){return ic?a.getAttribute("_uid")||a.setAttribute("_uid",++Ic)||Ic:a.uniqueID}:function(a){return a._uid||(a._uid=++Ic)};function Cc(a,b){if(!b)return 1;var c=Jc(a);return!b[c]?b[c]=1:0}
function Kc(a){if(a&&a.Va)return a;var b=[];if(!a||!a.length)return b;a[0]&&b.push(a[0]);if(2>a.length)return b;Ic++;if(H&&ic){var c=Ic+"";a[0].setAttribute("_zipIdx",c);for(var d=1,f;f=a[d];d++)a[d].getAttribute("_zipIdx")!=c&&b.push(f),f.setAttribute("_zipIdx",c)}else if(H&&a.Tb)try{for(d=1;f=a[d];d++)lc(f)&&b.push(f)}catch(e){}else{a[0]&&(a[0]._zipIdx=Ic);for(d=1;f=a[d];d++)a[d]._zipIdx!=Ic&&b.push(f),f._zipIdx=Ic}return b}
function Lc(a,b){if(!a)return[];if(a.constructor==Array)return a;if(!A(a))return[a];if(A(b)&&(b=A(b)?document.getElementById(b):b,!b))return[];var b=b||document,c=b.ownerDocument||b.documentElement;ic=b.contentType&&"application/xml"==b.contentType||Na&&(b.doctype||"[object XMLDocument]"==c.toString())||!!c&&(H?c.xml:b.xmlVersion||c.xmlVersion);return(c=Hc(a)(b))&&c.Va?c:Kc(c)}Lc.$=yc;ec=Lc;aa("goog.dom.query",ec);aa("goog.dom.query.pseudos",ec.$);function Mc(a,b,c,d,f){if(!H&&(!J||!K("525")))return j;if(Pa&&f)return Nc(a);if(f&&!d||!c&&(17==b||18==b)||H&&d&&b==a)return p;switch(a){case 13:return!(H&&Za(9));case 27:return!J}return Nc(a)}function Nc(a){if(48<=a&&57>=a||96<=a&&106>=a||65<=a&&90>=a||J&&0==a)return j;switch(a){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return j;default:return p}}
function Oc(a){switch(a){case 61:return 187;case 59:return 186;case 224:return 91;case 0:return 224;default:return a}};function Pc(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){}g(Error("Invalid JSON string: "+a))}function Qc(){this.Xa=i}function Rc(a,b){var c=[];Sc(a,b,c);return c.join("")}
function Sc(a,b,c){switch(typeof b){case "string":Tc(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==k){c.push("null");break}if(z(b)){var d=b.length;c.push("[");for(var f="",e=0;e<d;e++)c.push(f),f=b[e],Sc(a,a.Xa?a.Xa.call(b,String(e),f):f,c),f=",";c.push("]");break}c.push("{");d="";for(e in b)Object.prototype.hasOwnProperty.call(b,e)&&(f=b[e],"function"!=typeof f&&(c.push(d),Tc(e,c),c.push(":"),
Sc(a,a.Xa?a.Xa.call(b,e,f):f,c),d=","));c.push("}");break;case "function":break;default:g(Error("Unknown type: "+typeof b))}}var Uc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Vc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Tc(a,b){b.push('"',a.replace(Vc,function(a){if(a in Uc)return Uc[a];var b=a.charCodeAt(0),f="\\u";16>b?f+="000":256>b?f+="00":4096>b&&(f+="0");return Uc[a]=f+b.toString(16)}),'"')};function Wc(){};function Xc(a){this.Aa=a;this.Nb=new Qc}v=Xc.prototype;v.Aa=k;v.Nb=k;v.set=function(a,b){b!==i?this.Aa.set(a,Rc(this.Nb,b)):this.Aa.remove(a)};v.get=function(a){a=this.Aa.get(a);if(a!==k)try{return Pc(a)}catch(b){g("Storage: Invalid value was encountered")}};v.remove=function(a){this.Aa.remove(a)};function Yc(){}C(Yc,Wc);function Zc(a){this.F=a}C(Zc,Yc);Zc.prototype.set=function(a,b){try{this.F.setItem(a,b)}catch(c){g("Storage mechanism: Quota exceeded")}};Zc.prototype.get=function(a){a=this.F.getItem(a);!A(a)&&a!==k&&g("Storage mechanism: Invalid value was encountered");return a};Zc.prototype.remove=function(a){this.F.removeItem(a)};function $c(){var a=k;try{a=window.localStorage||k}catch(b){}this.F=a}C($c,Zc);function ad(a,b){a.style.display=b?"":"none"}var bd=I?"MozUserSelect":J?"WebkitUserSelect":k;function cd(a,b,c){c=!c?a.getElementsByTagName("*"):k;if(bd){if(b=b?"none":"",a.style[bd]=b,c)for(var a=0,d;d=c[a];a++)d.style[bd]=b}else if(H||Na)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;d=c[a];a++)d.setAttribute("unselectable",b)};function dd(){}x(dd);dd.prototype.ec=0;dd.K();function T(a){D.call(this);this.C=a||Db();this.Ba=ed}C(T,ub);T.prototype.dc=dd.K();var ed=k;function fd(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"}g(Error("Invalid component state"))}v=T.prototype;v.D=k;v.d=p;v.b=k;v.Ba=k;v.rb=k;v.p=k;v.n=k;v.i=k;v.mc=p;
v.o=function(){return this.D||(this.D=":"+(this.dc.ec++).toString(36))};v.Ea=function(a){if(this.p&&this.p.i){var b=this.p.i,c=this.D;c in b&&delete b[c];ib(this.p.i,a,this)}this.D=a};v.a=r("b");function gd(a){return a.jb||(a.jb=new Kb(a))}function hd(a,b){a==b&&g(Error("Unable to set parent component"));b&&(a.p&&a.D&&a.p.i&&a.D&&(a.D in a.p.i&&a.p.i[a.D])&&a.p!=b)&&g(Error("Unable to set parent component"));a.p=b;T.f.wb.call(a,b)}v.getParent=r("p");
v.wb=function(a){this.p&&this.p!=a&&g(Error("Method not supported"));T.f.wb.call(this,a)};v.Ma=r("C");v.j=function(){this.b=this.C.createElement("div")};function id(a,b,c){a.d&&g(Error("Component already rendered"));a.b||a.j();b?b.insertBefore(a.b,c||k):a.C.B.body.appendChild(a.b);(!a.p||a.p.d)&&a.u()}v.V=function(a){this.d&&g(Error("Component already rendered"));if(a&&this.G(a)){this.mc=j;if(!this.C||this.C.B!=Q(a))this.C=Db(a);this.eb(a);this.u()}else g(Error("Invalid element to decorate"))};
v.G=s(j);v.eb=function(a){this.b=a};v.u=function(){this.d=j;jd(this,function(a){!a.d&&a.a()&&a.u()})};v.ga=function(){jd(this,function(a){a.d&&a.ga()});if(this.jb){var a=this.jb;F(a.ka,P);a.ka.length=0}this.d=p};v.Ia=function(a,b){this.$a(a,kd(this),b)};
v.$a=function(a,b,c){a.d&&(c||!this.d)&&g(Error("Component already rendered"));(0>b||b>kd(this))&&g(Error("Child component index out of bounds"));if(!this.i||!this.n)this.i={},this.n=[];if(a.getParent()==this){var d=a.o();this.i[d]=a;Ca(this.n,a)}else ib(this.i,a.o(),a);hd(a,this);Ea(this.n,b,0,a);a.d&&this.d&&a.getParent()==this?(c=this.v(),c.insertBefore(a.a(),c.childNodes[b]||k)):c?(this.b||this.j(),b=U(this,b+1),id(a,this.v(),b?b.b:k)):this.d&&(!a.d&&a.b&&a.b.parentNode)&&a.u()};v.v=r("b");
function ld(a){if(a.Ba==k){var b;a:{b=a.d?a.b:a.C.B.body;var c=Q(b);if(c.defaultView&&c.defaultView.getComputedStyle&&(b=c.defaultView.getComputedStyle(b,k))){b=b.direction||b.getPropertyValue("direction")||"";break a}b=""}a.Ba="rtl"==(b||((a.d?a.b:a.C.B.body).currentStyle?(a.d?a.b:a.C.B.body).currentStyle.direction:k)||(a.d?a.b:a.C.B.body).style&&(a.d?a.b:a.C.B.body).style.direction)}return a.Ba}v.Fa=function(a){this.d&&g(Error("Component already rendered"));this.Ba=a};
function kd(a){return a.n?a.n.length:0}function U(a,b){return a.n?a.n[b]||k:k}function jd(a,b,c){a.n&&F(a.n,b,c)}function md(a,b){return a.n&&b?xa(a.n,b):-1}v.removeChild=function(a,b){if(a){var c=A(a)?a:a.o(),a=this.i&&c?(c in this.i?this.i[c]:i)||k:k;if(c&&a){var d=this.i;c in d&&delete d[c];Ca(this.n,a);b&&(a.ga(),a.b&&(c=a.b)&&c.parentNode&&c.parentNode.removeChild(c));hd(a,k)}}a||g(Error("Child is not in parent component"));return a};
v.Mb=function(a){for(var b=[];this.n&&0!=this.n.length;)b.push(this.removeChild(U(this,0),a));return b};function nd(a,b){D.call(this);a&&od(this,a,b)}C(nd,ub);v=nd.prototype;v.b=k;v.Sa=k;v.nb=k;v.Ta=k;v.U=-1;v.T=-1;v.ab=p;
var pd={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},qd={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},rd=H||J&&K("525"),sd=Pa&&I;v=nd.prototype;
v.$b=function(a){if(J&&(17==this.U&&!a.ctrlKey||18==this.U&&!a.altKey))this.T=this.U=-1;rd&&!Mc(a.keyCode,this.U,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.T=I?Oc(a.keyCode):a.keyCode,sd&&(this.ab=a.altKey))};v.ac=function(a){this.T=this.U=-1;this.ab=a.altKey};
v.handleEvent=function(a){var b=a.I,c,d,f=b.altKey;H&&"keypress"==a.type?(c=this.T,d=13!=c&&27!=c?b.keyCode:0):J&&"keypress"==a.type?(c=this.T,d=0<=b.charCode&&63232>b.charCode&&Nc(c)?b.charCode:0):Na?(c=this.T,d=Nc(c)?b.keyCode:0):(c=b.keyCode||this.T,d=b.charCode||0,sd&&(f=this.ab),Pa&&(63==d&&224==c)&&(c=191));var e=c,h=b.keyIdentifier;c?63232<=c&&c in pd?e=pd[c]:25==c&&a.shiftKey&&(e=9):h&&h in qd&&(e=qd[h]);a=e==this.U;this.U=e;b=new td(e,d,a,b);b.altKey=f;this.dispatchEvent(b)};v.a=r("b");
function od(a,b,c){a.Ta&&a.detach();a.b=b;a.Sa=O(a.b,"keypress",a,c);a.nb=O(a.b,"keydown",a.$b,c,a);a.Ta=O(a.b,"keyup",a.ac,c,a)}v.detach=function(){this.Sa&&(P(this.Sa),P(this.nb),P(this.Ta),this.Ta=this.nb=this.Sa=k);this.b=k;this.T=this.U=-1};function td(a,b,c,d){d&&this.ya(d,i);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c}C(td,db);function V(){}var ud;x(V);v=V.prototype;v.j=function(a){var b=a.Ma().j("div",this.hb(a).join(" "),a.H);vd(a,b);return b};v.v=function(a){return a};v.ea=function(a,b,c){if(a=a.a?a.a():a)if(H&&!K("7")){var d=wd(Ab(a),b);d.push(b);ma(c?Bb:Cb,a).apply(k,d)}else c?Bb(a,b):Cb(a,b)};v.G=s(j);
v.V=function(a,b){b.id&&a.Ea(b.id);var c=this.v(b);c&&c.firstChild?(c=c.firstChild.nextSibling?Da(c.childNodes):c.firstChild,a.H=c):a.H=k;var d=0,f=this.w(),e=this.w(),h=p,l=p,c=p,m=Ab(b);F(m,function(a){if(!h&&a==f)h=j,e==f&&(l=j);else if(!l&&a==e)l=j;else{var b=d;if(!this.Pb){this.La||xd(this);var c=this.La,m={},n;for(n in c)m[c[n]]=n;this.Pb=m}a=parseInt(this.Pb[a],10);d=b|(isNaN(a)?0:a)}},this);a.e=d;h||(m.push(f),e==f&&(l=j));l||m.push(e);var n=a.J;n&&m.push.apply(m,n);if(H&&!K("7")){var q=wd(m);
0<q.length&&(m.push.apply(m,q),c=j)}if(!h||!l||n||c)b.className=m.join(" ");vd(a,b);return b};v.Ra=function(a){ld(a)&&this.Fa(a.a(),j);a.isEnabled()&&this.qa(a,a.g)};function vd(a,b){a.isEnabled()||yd(b,1,j);a.e&8&&yd(b,8,j);a.s&16&&yd(b,16,!!(a.e&16));a.s&64&&yd(b,64,!!(a.e&64))}v.Ca=function(a,b){cd(a,!b,!H&&!Na)};v.Fa=function(a,b){this.ea(a,this.w()+"-rtl",b)};v.W=function(a){var b;return a.s&32&&(b=a.k())?Jb(b):p};
v.qa=function(a,b){var c;if(a.s&32&&(c=a.k())){if(!b&&a.e&32){try{c.blur()}catch(d){}a.e&32&&a.ta(k)}Jb(c)!=b&&(b?c.tabIndex=0:(c.tabIndex=-1,c.removeAttribute("tabIndex")))}};v.ra=function(a,b){ad(a,b)};v.r=function(a,b,c){var d=a.a();if(d){var f=zd(this,b);f&&this.ea(a,f,c);yd(d,b,c)}};function yd(a,b,c){ud||(ud={1:"disabled",8:"selected",16:"checked",64:"expanded"});(b=ud[b])&&a.setAttribute("aria-"+b,c)}
v.P=function(a,b){var c=this.v(a);if(c&&(Hb(c),b))if(A(b))if("textContent"in c)c.textContent=b;else if(c.firstChild&&3==c.firstChild.nodeType){for(;c.lastChild!=c.firstChild;)c.removeChild(c.lastChild);c.firstChild.data=b}else Hb(c),c.appendChild(Q(c).createTextNode(b));else{var d=function(a){if(a){var b=Q(c);c.appendChild(A(a)?b.createTextNode(a):a)}};z(b)?F(b,d):da(b)&&!("nodeType"in b)?F(Da(b),d):d(b)}};v.k=function(a){return a.a()};v.w=s("goog-control");
v.hb=function(a){var b=this.w(),c=[b],d=this.w();d!=b&&c.push(d);b=a.e;for(d=[];b;){var f=b&-b;d.push(zd(this,f));b&=~f}c.push.apply(c,d);(a=a.J)&&c.push.apply(c,a);H&&!K("7")&&c.push.apply(c,wd(c));return c};function wd(a,b){var c=[];b&&(a=a.concat([b]));F([],function(d){za(d,ma(Ba,a))&&(!b||Ba(d,b))&&c.push(d.join("_"))});return c}function zd(a,b){a.La||xd(a);return a.La[b]}
function xd(a){var b=a.w();a.La={1:b+"-disabled",2:b+"-hover",4:b+"-active",8:b+"-selected",16:b+"-checked",32:b+"-focused",64:b+"-open"}};function Ad(a,b){a||g(Error("Invalid class name "+a));ea(b)||g(Error("Invalid decorator function "+b));Bd[a]=b}var Cd={},Bd={};function W(a,b,c){T.call(this,c);if(!b){for(var b=this.constructor,d;b;){d=ga(b);if(d=Cd[d])break;b=b.f?b.f.constructor:k}b=d?ea(d.K)?d.K():new d:k}this.c=b;this.H=a}C(W,T);v=W.prototype;v.H=k;v.e=0;v.s=39;v.sa=255;v.Ha=0;v.g=j;v.J=k;v.va=j;v.Ja=p;v.Kb=k;v.k=function(){return this.c.k(this)};v.Na=function(){return this.ja||(this.ja=new nd)};
v.ea=function(a,b){b?a&&(this.J?Ba(this.J,a)||this.J.push(a):this.J=[a],this.c.ea(this,a,j)):a&&this.J&&(Ca(this.J,a),0==this.J.length&&(this.J=k),this.c.ea(this,a,p))};v.j=function(){var a=this.c.j(this);this.b=a;var b=this.Kb||i;b&&a.setAttribute("role",b);this.Ja||this.c.Ca(a,p);this.g||this.c.ra(a,p)};v.v=function(){return this.c.v(this.a())};v.G=function(a){return this.c.G(a)};
v.eb=function(a){this.b=a=this.c.V(this,a);var b=this.Kb||i;b&&a.setAttribute("role",b);this.Ja||this.c.Ca(a,p);this.g="none"!=a.style.display};v.u=function(){W.f.u.call(this);this.c.Ra(this);if(this.s&-2&&(this.va&&Dd(this,j),this.s&32)){var a=this.k();if(a){var b=this.Na();od(b,a);R(R(R(gd(this),b,"key",this.R),a,"focus",this.Oa),a,"blur",this.ta)}}};
function Dd(a,b){var c=gd(a),d=a.a();b?(R(R(R(R(c,d,"mouseover",a.mb),d,"mousedown",a.ha),d,"mouseup",a.wa),d,"mouseout",a.lb),a.ua!=ba&&R(c,d,"contextmenu",a.ua),H&&R(c,d,"dblclick",a.Cb)):(S(S(S(S(c,d,"mouseover",a.mb),d,"mousedown",a.ha),d,"mouseup",a.wa),d,"mouseout",a.lb),a.ua!=ba&&S(c,d,"contextmenu",a.ua),H&&S(c,d,"dblclick",a.Cb))}v.ga=function(){W.f.ga.call(this);this.ja&&this.ja.detach();this.g&&this.isEnabled()&&this.c.qa(this,p)};v.P=function(a){this.c.P(this.a(),a);this.H=a};
v.Fa=function(a){W.f.Fa.call(this,a);var b=this.a();b&&this.c.Fa(b,a)};v.Ca=function(a){this.Ja=a;var b=this.a();b&&this.c.Ca(b,a)};v.ra=function(a,b){if(b||this.g!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.a();c&&this.c.ra(c,a);this.isEnabled()&&this.c.qa(this,a);this.g=a;return j}return p};v.isEnabled=function(){return!(this.e&1)};
v.L=function(a){var b=this.getParent();if((!b||"function"!=typeof b.isEnabled||b.isEnabled())&&Ed(this,1,!a))a||(this.setActive(p),this.M(p)),this.g&&this.c.qa(this,a),this.r(1,!a)};v.M=function(a){Ed(this,2,a)&&this.r(2,a)};v.setActive=function(a){Ed(this,4,a)&&this.r(4,a)};v.Ga=function(a){Ed(this,8,a)&&this.r(8,a)};function Fd(a,b){Ed(a,16,b)&&a.r(16,b)}v.Da=function(a){Ed(this,32,a)&&this.r(32,a)};function Gd(a,b){Ed(a,64,b)&&a.r(64,b)}
v.r=function(a,b){this.s&a&&b!=!!(this.e&a)&&(this.c.r(this,a,b),this.e=b?this.e|a:this.e&~a)};function Hd(a,b,c){a.d&&(a.e&b&&!c)&&g(Error("Component already rendered"));!c&&a.e&b&&a.r(b,p);a.s=c?a.s|b:a.s&~b}function X(a,b){return!!(a.sa&b)&&!!(a.s&b)}function Ed(a,b,c){return!!(a.s&b)&&!!(a.e&b)!=c&&(!(a.Ha&b)||a.dispatchEvent(fd(b,c)))&&!a.Ub}v.mb=function(a){(!a.relatedTarget||!Ib(this.a(),a.relatedTarget))&&(this.dispatchEvent("enter")&&this.isEnabled()&&X(this,2))&&this.M(j)};
v.lb=function(a){if((!a.relatedTarget||!Ib(this.a(),a.relatedTarget))&&this.dispatchEvent("leave"))X(this,4)&&this.setActive(p),X(this,2)&&this.M(p)};v.ua=ba;v.ha=function(a){if(this.isEnabled()&&(X(this,2)&&this.M(j),fb(a)&&(!J||!Pa||!a.ctrlKey)))X(this,4)&&this.setActive(j),this.c.W(this)&&this.k().focus();!this.Ja&&(fb(a)&&(!J||!Pa||!a.ctrlKey))&&a.preventDefault()};v.wa=function(a){this.isEnabled()&&(X(this,2)&&this.M(j),this.e&4&&(Id(this,a)&&X(this,4))&&this.setActive(p))};
v.Cb=function(a){this.isEnabled()&&Id(this,a)};function Id(a,b){X(a,16)&&Fd(a,!(a.e&16));X(a,8)&&a.Ga(j);X(a,64)&&Gd(a,!(a.e&64));var c=new L("action",a);b&&(c.altKey=b.altKey,c.ctrlKey=b.ctrlKey,c.metaKey=b.metaKey,c.shiftKey=b.shiftKey,c.vb=b.vb);return a.dispatchEvent(c)}v.Oa=function(){X(this,32)&&this.Da(j)};v.ta=function(){X(this,4)&&this.setActive(p);X(this,32)&&this.Da(p)};v.R=function(a){return this.g&&this.isEnabled()&&this.kb(a)?(a.preventDefault(),a.stopPropagation(),j):p};
v.kb=function(a){return 13==a.keyCode&&Id(this,a)};ea(W)||g(Error("Invalid component class "+W));ea(V)||g(Error("Invalid renderer class "+V));var Jd=ga(W);Cd[Jd]=V;Ad("goog-control",function(){return new W(k)});function Kd(a,b,c){this.sb=a;this.ca=b||p;this.D=c||0}Kd.prototype.o=r("D");Kd.prototype.Ea=function(a){this.D=a};function Ld(){var a;a=new $c;var b;a:{try{b=!!a.F&&!!a.F.getItem;break a}catch(c){}b=p}this.F=(a=b?a:k)?new Xc(a):k;this.S=[];this.qb=0}C(Ld,ub);Ld.prototype.load=function(){if(this.F){var a=this.S;if(!z(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;(a=this.F.get("todos-closure"))&&F(a,function(a){a=new Kd(a.title,a.completed,a.id);a.o()>this.qb&&(this.qb=a.o());this.S.push(a)},this)}Md(this,p)};
function Nd(a){var b=Od,c=Aa(b.S,function(b){return a.o()===b.o()});-1===c?(0===a.o()&&a.Ea(++b.qb),b.S.push(a)):b.S[c]=a;Md(b)}Ld.prototype.remove=function(a){var b=this.S,c=Aa(b,function(b){return a.o()===b.o()},i);0<=c&&E.splice.call(b,c,1);Md(this)};function Md(a,b){if((b===i||b)&&a.F){var c=[];F(a.S,function(a){c.push({completed:a.ca,title:a.sb,id:a.o()})});a.F.set("todos-closure",c)}a.dispatchEvent(new Pd(a))}Ld.prototype.getAll=r("S");function Pd(a){L.call(this,"change",a)}C(Pd,L);H&&K(8);function Qd(a){return"object"===typeof a&&a&&0===a.nc?a.content:String(a).replace(Rd,Sd)}var Td={"\x00":"&#0;",'"':"&quot;","&":"&amp;","'":"&#39;","<":"&lt;",">":"&gt;","\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;","-":"&#45;","/":"&#47;","=":"&#61;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"};function Sd(a){return Td[a]}var Rd=/[\x00\x22\x26\x27\x3c\x3e]/g;function Ud(a){return"<strong>"+Qd(a.tb)+"</strong> "+(1==a.tb?"item":"items")+" left"};function Vd(){}C(Vd,V);x(Vd);Vd.prototype.j=function(a){var b='<button id="clear-completed">'+("Clear completed ("+Qd(a.H)+")")+"</button>",b=Gb(b);vd(a,b);return b};Vd.prototype.G=s(p);Vd.prototype.P=function(a,b){a.innerHTML="Clear completed ("+Qd(b)+")"};Vd.prototype.r=function(a,b,c){(a=a.a())&&yd(a,b,c)};function Wd(){}C(Wd,V);x(Wd);Wd.prototype.j=function(a){var b='<span id="todo-count">'+Ud({tb:a.H})+"</span>",b=Gb(b);vd(a,b);return b};Wd.prototype.G=s(p);Wd.prototype.P=function(a,b){a.innerHTML=Ud({tb:b})};Wd.prototype.r=function(a,b,c){(a=a.a())&&yd(a,b,c)};function Xd(){}C(Xd,V);x(Xd);Xd.prototype.j=function(a){var b;b=!!(a.e&16);b="<li "+(b?'class="completed"':"")+'><div class="view"><input class="toggle" type="checkbox" '+(b?"checked":"")+"><label>"+Qd(a.H)+'</label><button class="destroy"></button></div><input class="edit" value="Rule the web"></li>';b=Gb(b);vd(a,b);this.r(a,a.e,j);return b};
Xd.prototype.r=function(a,b,c){var d=a.a();if(d){switch(b){case 16:(d?(d?d.childNodes[0]:k).childNodes[0]:k).checked=c;break;case 8:this.ea(a,"editing",c)}yd(d,b,c)}};Xd.prototype.k=function(a){return a.a()?a.a().childNodes[1]:k};Xd.prototype.v=function(a){return a?(a?a.childNodes[0]:k).childNodes[1]:k};function Y(a){W.call(this,"",Xd.K(),a);Hd(this,16,j);Hd(this,8,j);this.sa&=-17;this.sa&=-9;this.Ca(j)}C(Y,W);Y.prototype.u=function(){Y.f.u.call(this);R(gd(this),this.a(),"click",function(a){a.preventDefault()});R(gd(this),this.a(),"dblclick",function(){this.Ga(j)});var a=this.a()?this.a().childNodes[1]:k;R(gd(this),a,"keyup",function(a){13===a.I.keyCode&&this.Da(p)})};
Y.prototype.wa=function(a){Y.f.wa.call(this,a);this.isEnabled()&&(a.target===(this.a()?(this.a()?this.a().childNodes[0]:k).childNodes[0]:k)?(Fd(this,!(this.e&16)),this.dispatchEvent("edit")):a.target===(this.a()?(this.a()?this.a().childNodes[0]:k).childNodes[2]:k)&&this.dispatchEvent("destroy"))};Y.prototype.Da=function(a){Y.f.Da.call(this,a);!a&&this.e&8&&(a=qa((this.a()?this.a().childNodes[1]:k).value),""===a?this.dispatchEvent("destroy"):(this.P(a),this.Ga(p),this.dispatchEvent("edit")))};
Y.prototype.Ga=function(a){Y.f.Ga.call(this,a);a&&(a=this.a()?this.a().childNodes[1]:k,a.value=this.H,a.focus())};function Yd(){}C(Yd,V);x(Yd);Yd.prototype.j=function(a){return a.Ma().j("div",this.w())};Yd.prototype.V=function(a,b){b.id&&a.Ea(b.id);if("HR"==b.tagName){var c=b,b=this.j(a);c.parentNode&&c.parentNode.insertBefore(b,c);c&&c.parentNode&&c.parentNode.removeChild(c)}else Bb(b,this.w());return b};Yd.prototype.P=function(){};Yd.prototype.w=s("goog-menuseparator");function Zd(a,b){W.call(this,k,a||Yd.K(),b);Hd(this,1,p);Hd(this,2,p);Hd(this,4,p);Hd(this,32,p);this.e=1}C(Zd,W);Zd.prototype.u=function(){Zd.f.u.call(this);this.a().setAttribute("role","separator")};Ad("goog-menuseparator",function(){return new Zd});function $d(){}x($d);v=$d.prototype;v.j=function(a){return a.Ma().j("div",this.hb(a).join(" "))};v.v=function(a){return a};v.G=function(a){return"DIV"==a.tagName};
v.V=function(a,b){b.id&&a.Ea(b.id);var c=this.w(),d=p,f=Ab(b);f&&F(f,function(b){b==c?d=j:b&&(b==c+"-disabled"?a.L(p):b==c+"-horizontal"?ae(a,be):b==c+"-vertical"&&ae(a,de))},this);d||Bb(b,c);if(f=this.v(b))for(var e=f.firstChild,h;e&&e.parentNode==f;){h=e.nextSibling;if(1==e.nodeType){var l;a:{l=i;for(var m=Ab(e),n=0,q=m.length;n<q;n++)if(l=m[n]in Bd?Bd[m[n]]():k)break a;l=k}l&&(l.b=e,a.isEnabled()||l.L(p),a.Ia(l),l.V(e))}else(!e.nodeValue||""==qa(e.nodeValue))&&f.removeChild(e);e=h}return b};
v.Ra=function(a){a=a.a();cd(a,j,I);H&&(a.hideFocus=j)};v.k=function(a){return a.a()};v.w=s("goog-container");v.hb=function(a){var b=this.w(),c=[b,a.Y==be?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};function Z(a,b,c){T.call(this,c);this.c=b||$d.K();this.Y=a||de}C(Z,T);var be="horizontal",de="vertical";v=Z.prototype;v.Hb=k;v.ja=k;v.c=k;v.Y=k;v.g=j;v.q=j;v.gb=j;v.m=-1;v.h=k;v.X=p;v.yb=p;v.ic=j;v.Q=k;v.k=function(){return this.Hb||this.c.k(this)};v.Na=function(){return this.ja||(this.ja=new nd(this.k()))};v.j=function(){this.b=this.c.j(this)};v.v=function(){return this.c.v(this.a())};v.G=function(a){return this.c.G(a)};v.eb=function(a){this.b=this.c.V(this,a);"none"==a.style.display&&(this.g=p)};
v.u=function(){Z.f.u.call(this);jd(this,function(a){a.d&&ee(this,a)},this);var a=this.a();this.c.Ra(this);this.ra(this.g,j);R(R(R(R(R(R(R(R(gd(this),this,"enter",this.Yb),this,"highlight",this.Zb),this,"unhighlight",this.cc),this,"open",this.bc),this,"close",this.Wb),a,"mousedown",this.ha),Q(a),"mouseup",this.Xb),a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.Vb);this.W()&&fe(this,j)};
function fe(a,b){var c=gd(a),d=a.k();b?R(R(R(c,d,"focus",a.Oa),d,"blur",a.ta),a.Na(),"key",a.R):S(S(S(c,d,"focus",a.Oa),d,"blur",a.ta),a.Na(),"key",a.R)}v.ga=function(){ge(this,-1);this.h&&Gd(this.h,p);this.X=p;Z.f.ga.call(this)};v.Yb=s(j);v.Zb=function(a){var b=md(this,a.target);if(-1<b&&b!=this.m){var c=U(this,this.m);c&&c.M(p);this.m=b;c=U(this,this.m);this.X&&c.setActive(j);this.ic&&(this.h&&c!=this.h)&&(c.s&64?Gd(c,j):Gd(this.h,p))}this.a().setAttribute("aria-activedescendant",a.target.a().id)};
v.cc=function(a){a.target==U(this,this.m)&&(this.m=-1);this.a().setAttribute("aria-activedescendant","")};v.bc=function(a){if((a=a.target)&&a!=this.h&&a.getParent()==this)this.h&&Gd(this.h,p),this.h=a};v.Wb=function(a){a.target==this.h&&(this.h=k)};v.ha=function(a){this.q&&(this.X=j);var b=this.k();b&&Jb(b)?b.focus():a.preventDefault()};v.Xb=function(){this.X=p};
v.Vb=function(a){var b;a:{b=a.target;if(this.Q)for(var c=this.a();b&&b!==c;){var d=b.id;if(d in this.Q){b=this.Q[d];break a}b=b.parentNode}b=k}if(b)switch(a.type){case "mousedown":b.ha(a);break;case "mouseup":b.wa(a);break;case "mouseover":b.mb(a);break;case "mouseout":b.lb(a);break;case "contextmenu":b.ua(a)}};v.Oa=function(){};v.ta=function(){ge(this,-1);this.X=p;this.h&&Gd(this.h,p)};
v.R=function(a){return this.isEnabled()&&this.g&&(0!=kd(this)||this.Hb)&&this.kb(a)?(a.preventDefault(),a.stopPropagation(),j):p};
v.kb=function(a){var b=U(this,this.m);if(b&&"function"==typeof b.R&&b.R(a)||this.h&&this.h!=b&&"function"==typeof this.h.R&&this.h.R(a))return j;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return p;switch(a.keyCode){case 27:if(this.W())this.k().blur();else return p;break;case 36:he(this,function(a,b){return(a+1)%b},kd(this)-1);break;case 35:he(this,function(a,b){a--;return 0>a?b-1:a},0);break;case 38:if(this.Y==de)ie(this);else return p;break;case 37:if(this.Y==be)ld(this)?je(this):ie(this);else return p;
break;case 40:if(this.Y==de)je(this);else return p;break;case 39:if(this.Y==be)ld(this)?ie(this):je(this);else return p;break;default:return p}return j};function ee(a,b){var c=b.a(),c=c.id||(c.id=b.o());a.Q||(a.Q={});a.Q[c]=b}v.Ia=function(a,b){Z.f.Ia.call(this,a,b)};v.$a=function(a,b,c){a.Ha|=2;a.Ha|=64;(this.W()||!this.yb)&&Hd(a,32,p);a.d&&p!=a.va&&Dd(a,p);a.va=p;Z.f.$a.call(this,a,b,c);a.d&&this.d&&ee(this,a);b<=this.m&&this.m++};
v.removeChild=function(a,b){if(a=A(a)?this.i&&a?(a in this.i?this.i[a]:i)||k:k:a){var c=md(this,a);-1!=c&&(c==this.m?a.M(p):c<this.m&&this.m--);var d=a.a();d&&(d.id&&this.Q)&&(c=this.Q,d=d.id,d in c&&delete c[d])}c=a=Z.f.removeChild.call(this,a,b);c.d&&j!=c.va&&Dd(c,j);c.va=j;return a};function ae(a,b){a.a()&&g(Error("Component already rendered"));a.Y=b}
v.ra=function(a,b){if(b||this.g!=a&&this.dispatchEvent(a?"show":"hide")){this.g=a;var c=this.a();if(c){ad(c,a);if(this.W()&&(c=this.k()))c.tabIndex=this.q&&this.g?0:-1;b||this.dispatchEvent(this.g?"aftershow":"afterhide")}return j}return p};v.isEnabled=r("q");
v.L=function(a){if(this.q!=a&&this.dispatchEvent(a?"enable":"disable"))if(a?(this.q=j,jd(this,function(a){a.Rb?delete a.Rb:a.L(j)})):(jd(this,function(a){a.isEnabled()?a.L(p):a.Rb=j}),this.X=this.q=p),this.W()){var b=this.k();b&&(b.tabIndex=a&&this.g?0:-1)}};v.W=r("gb");v.qa=function(a){a!=this.gb&&this.d&&fe(this,a);this.gb=a;if(this.q&&this.g){var b=this.k();b&&(b.tabIndex=a?0:-1)}};function ge(a,b){var c=U(a,b);c?c.M(j):-1<a.m&&U(a,a.m).M(p)}v.M=function(a){ge(this,md(this,a))};
function je(a){he(a,function(a,c){return(a+1)%c},a.m)}function ie(a){he(a,function(a,c){a--;return 0>a?c-1:a},a.m)}function he(a,b,c){for(var c=0>c?md(a,a.h):c,d=kd(a),c=b.call(a,c,d),f=0;f<=d;){var e=U(a,c);if(e&&e.g&&e.isEnabled()&&e.s&2){ge(a,c);break}f++;c=b.call(a,c,d)}};function ke(){}C(ke,$d);x(ke);ke.prototype.G=function(a){return"UL"==a.tagName};ke.prototype.Ra=function(){};function le(a){Z.call(this,de,ke.K(),a);this.qa(p);this.yb=j}C(le,Z);le.prototype.ha=function(){this.q&&(this.X=j)};var Od=new Ld;Od.addEventListener("change",me);var ne=new le;ne.V(document.getElementById("todo-list"));var oe=document.getElementById("main"),pe=document.getElementById("footer"),qe=new W(k,Wd.K());id(qe,pe);var re=new W(k,Vd.K());id(re,pe);O(re,"action",function(){function a(a){a.ca&&Od.remove(a)}for(var b=Od.getAll(),c=A(b)?b.split(""):b,b=b.length-1;0<=b;--b)b in c&&a.call(i,c[b])});var se=document.getElementById("toggle-all");
O(se,"click",function(){var a=se.checked;F(Od.getAll(),function(b){b=new Kd(b.sb,a,b.o());Nd(b)})});var te="/",ue="/active",ve="/completed",we=te,$=new Nb;O($,"navigate",function(a){switch(a.xb){case te:case ue:case ve:a.xb!==we&&(we=a.xb,me());break;default:a=te,Ub($)!=a&&($.ba?(Tb($,a,j),Wb||H&&Vb($,a,j,i),$.q&&$.Ab(p)):(Vb($,a,j),$.na=$.la=$.xa.value=a,$.dispatchEvent(new Mb(a,p))))}});
function me(){ne.Mb(j);var a=Od.getAll();F(a,function(a){if(!(we===ue&&a.ca||we===ve&&!a.ca)){var b=new Y;b.P(a.sb);Fd(b,a.ca);b.rb=a;ne.Ia(b,j)}});var b;var c=function(a,b){return b.ca?a+1:a};if(a.reduce)b=a.reduce(c,0);else{var d=0;F(a,function(a){d=c.call(i,d,a)});b=d}var f=a.length-b;se.checked=0===f;qe.P(f.toString());re.P(b.toString());re.ra(0<b);ad(oe,0<a.length);ad(pe,0<a.length);a=ec("#filters a");F(a,function(a,b){a.className=we===te&&0===b||we===ue&&1===b||we===ve&&2===b?"selected":""})}
O(ne,"edit",function(a){a=a.target;a=new Kd(a.H,!!(a.e&16),a.rb.o());Nd(a)});O(ne,"destroy",function(a){a=a.target.rb;a!==k&&Od.remove(a)});var xe=document.getElementById("new-todo");O(xe,"keyup",function(a){13===a.keyCode&&(a=qa(xe.value),""!==a&&(xe.value="",Nd(new Kd(a))))});Od.load();$.L(j);})();
