function e(a){throw a;}var j=true,k=null,l=false,q;var aa=aa||{},ba=this,t=function(a,b,c){var d=a.split("."),f=c||ba;!(d[0]in f)&&f.execScript&&f.execScript("var "+d[0]);for(var g;d.length&&(g=d.shift());)if(!d.length&&r(b))f[g]=b;else f=f[g]?f[g]:(f[g]={})},ca=function(a,b){for(var c=a.split("."),d=b||ba,f;f=c.shift();)if(d[f])d=d[f];else return k;return d},da=function(){},ea=function(){return arguments[0]},fa=function(a){a.cb=function(){return a.Ju||(a.Ju=new a)}},ga=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof
Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b},
r=function(a){return a!==undefined},ha=function(a){return a===k},ia=function(a){return a!=k},ja=function(a){return ga(a)=="array"},ka=function(a){var b=ga(a);return b=="array"||b=="object"&&typeof a.length=="number"},w=function(a){return typeof a=="string"},la=function(a){return typeof a=="number"},ma=function(a){return ga(a)=="function"},na=function(a){var b=ga(a);return b=="object"||b=="array"||b=="function"},qa=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(oa))return a[oa];a[oa]||(a[oa]=++pa);
return a[oa]},ra=function(a){"removeAttribute"in a&&a.removeAttribute(oa);try{delete a[oa]}catch(b){}},oa="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36),pa=0,sa=function(a){var b=ga(a);if(b=="object"||b=="array"){if(a.wa)return a.wa.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=sa(a[d]);return c}return a},z=function(a,b){var c=b||ba;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var f=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(f,
d);return a.apply(c,f)}}else return function(){return a.apply(c,arguments)}},ta=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}},ua=Date.now||function(){return+new Date},va=function(a,b,c){a[b]=c},A=function(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c;a.prototype.constructor=a};
Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return z.apply(k,b)}else return z(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,k);return z.apply(k,a)};Function.prototype.inherits=function(a){A(this,a)};Function.prototype.mixin=function(a){var b=this.prototype,c=a;for(var d in c)b[d]=c[d]};var wa=function(a,b){return a.indexOf(b)==0},xa=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c},ya=function(a){for(var b=1;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a},za=function(a){return/^[\s\xa0]*$/.test(a)},Ba=function(a){return za(Aa(a))},Ca=function(a){return!/[^\t\n\r ]/.test(a)},Da=function(a){return!/[^a-zA-Z]/.test(a)},Ea=function(a){return!/[^a-zA-Z0-9]/.test(a)},Fa=function(a){return a.replace(/(\r\n|\r|\n)+/g,
" ")},Ga=function(a){return a.replace(/\xa0|[ \t]+/g," ")},Ha=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ia=function(a){return a.replace(/^[\s\xa0]+/,"")},Ja=/^[a-zA-Z0-9\-_.!~*'()]*$/,Ka=function(a){a=String(a);if(!Ja.test(a))return encodeURIComponent(a);return a},La=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Ra=function(a,b){if(b)return a.replace(Ma,"&amp;").replace(Na,"&lt;").replace(Oa,"&gt;").replace(Pa,"&quot;");else{if(!Qa.test(a))return a;if(a.indexOf("&")!=
-1)a=a.replace(Ma,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(Na,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(Oa,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(Pa,"&quot;");return a}},Ma=/&/g,Na=/</g,Oa=/>/g,Pa=/\"/g,Qa=/[&<>\"]/,Wa=function(a){if(Sa(a,"&"))return"document"in ba&&!Sa(a,"<")?Ta(a):Ua(a);return a},Ta=function(a){var b=ba.document.createElement("a");b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},Ua=function(a){return a.replace(/&([^;]+);/g,function(b,
c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return b}})},Xa=function(a,b){for(var c=b.length,d=0;d<c;d++){var f=c==1?b:b.charAt(d);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a},Ya=function(a,b,c){if(c)a=Wa(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=Ra(a);return a},Za=function(a,b,c){if(c)a=Wa(a);if(a.length>
b){var d=Math.floor(b/2),f=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(f)}if(c)a=Ra(a);return a},$a={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"},Sa=function(a,b){return a.indexOf(b)!=-1},ab=function(a,b){return(new Array(b+1)).join(a)},bb=function(a,b,c){var d=r(c)?a.toFixed(c):String(a),f=d.indexOf(".");if(f==-1)f=d.length;return ab("0",Math.max(0,b-f))+d},Aa=function(a){return a==k?"":String(a)},cb=function(){return Array.prototype.join.call(arguments,
"")},db=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^ua()).toString(36)},fb=function(a,b){for(var c=0,d=Ha(String(a)).split("."),f=Ha(String(b)).split("."),g=Math.max(d.length,f.length),h=0;c==0&&h<g;h++){var i=d[h]||"",m=f[h]||"",n=new RegExp("(\\d*)(\\D*)","g"),o=new RegExp("(\\d*)(\\D*)","g");do{var p=n.exec(i)||["","",""],s=o.exec(m)||["","",""];if(p[0].length==0&&s[0].length==0)break;var u=p[1].length==0?0:parseInt(p[1],10),v=s[1].length==
0?0:parseInt(s[1],10);c=eb(u,v)||eb(p[2].length==0,s[2].length==0)||eb(p[2],s[2])}while(c==0)}return c},eb=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0},gb=ua(),hb=function(){return"goog_"+gb++};var ib={},jb=function(){this.pca=ua()},kb=new jb;jb.prototype.G=function(a){this.pca=a};jb.prototype.reset=function(){this.G(ua())};jb.prototype.z=function(){return this.pca};var lb=function(a){this.ZIa=a||"";this.wQa=kb};lb.prototype.lfa=j;lb.prototype.YPa=j;lb.prototype.SPa=j;lb.prototype.cV=l;
var nb=function(a){var b=new Date(a.L5());return mb(b.getFullYear()-2E3)+mb(b.getMonth()+1)+mb(b.getDate())+" "+mb(b.getHours())+":"+mb(b.getMinutes())+":"+mb(b.getSeconds())+"."+mb(Math.floor(b.getMilliseconds()/10))},mb=function(a){if(a<10)return"0"+a;return String(a)},ob=function(a,b){var c=a.L5()-b,d=c/1E3,f=d.toFixed(3),g=0;if(d<1)g=2;else for(;d<100;){g++;d*=10}for(;g-- >0;)f=" "+f;return f},pb=function(a){lb.call(this,a)};A(pb,lb);
pb.prototype.Zsa=function(a){var b=[];b.push(this.ZIa," ");this.lfa&&b.push("[",nb(a),"] ");this.YPa&&b.push("[",ob(a,this.wQa.z()),"s] ");this.SPa&&b.push("[",a.lP(),"] ");b.push(a.kk(),"\n");this.cV&&a.KO()&&b.push(a.eva(),"\n");return b.join("")};var qb=function(a){return a[a.length-1]},rb=Array.prototype,sb=rb.indexOf?function(a,b,c){return rb.indexOf.call(a,b,c)}:function(a,b,c){var d=c==k?0:c<0?Math.max(0,a.length+c):c;if(w(a)){if(!w(b)||b.length!=1)return-1;return a.indexOf(b,d)}for(var f=d;f<a.length;f++)if(f in a&&a[f]===b)return f;return-1},ub=rb.lastIndexOf?function(a,b,c){var d=c==k?a.length-1:c;return rb.lastIndexOf.call(a,b,d)}:function(a,b,c){var d=c==k?a.length-1:c;if(d<0)d=Math.max(0,a.length+d);if(w(a)){if(!w(b)||b.length!=
1)return-1;return a.lastIndexOf(b,d)}for(var f=d;f>=0;f--)if(f in a&&a[f]===b)return f;return-1},vb=rb.forEach?function(a,b,c){rb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=w(a)?a.split(""):a,g=0;g<d;g++)g in f&&b.call(c,f[g],g,a)},wb=rb.filter?function(a,b,c){return rb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=[],g=0,h=w(a)?a.split(""):a,i=0;i<d;i++)if(i in h){var m=h[i];if(b.call(c,m,i,a))f[g++]=m}return f},xb=rb.map?function(a,b,c){return rb.map.call(a,b,c)}:function(a,
b,c){for(var d=a.length,f=new Array(d),g=w(a)?a.split(""):a,h=0;h<d;h++)if(h in g)f[h]=b.call(c,g[h],h,a);return f},yb=function(a,b,c,d){if(a.reduce)return d?a.reduce(z(b,d),c):a.reduce(b,c);var f=c;vb(a,function(g,h){f=b.call(d,f,g,h,a)});return f},zb=rb.some?function(a,b,c){return rb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=w(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return j;return l},Ab=rb.every?function(a,b,c){return rb.every.call(a,b,c)}:function(a,b,c){for(var d=
a.length,f=w(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&!b.call(c,f[g],g,a))return l;return j},Cb=function(a,b,c){var d=Bb(a,b,c);return d<0?k:w(a)?a.charAt(d):a[d]},Bb=function(a,b,c){for(var d=a.length,f=w(a)?a.split(""):a,g=0;g<d;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1},Db=function(a,b){return sb(a,b)>=0},Eb=function(a){if(!ja(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},Fb=function(a,b){Db(a,b)||a.push(b)},Hb=function(a,b){var c=sb(a,b),d;if(d=c>=0)Gb(a,c);return d},Gb=function(a,
b){return rb.splice.call(a,b,1).length==1},Ib=function(a,b,c){var d=Bb(a,b,c);if(d>=0){Gb(a,d);return j}return l},Jb=function(){return rb.concat.apply(rb,arguments)},Lb=function(a){if(ja(a))return Jb(a);else{for(var b=[],c=0,d=a.length;c<d;c++)b[c]=a[c];return b}},Mb=function(a){if(ja(a))return Jb(a);return Lb(a)},Nb=function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b],d;if(ja(c)||(d=ka(c))&&c.hasOwnProperty("callee"))a.push.apply(a,c);else if(d)for(var f=a.length,g=c.length,h=0;h<g;h++)a[f+
h]=c[h];else a.push(c)}},Pb=function(a){return rb.splice.apply(a,Ob(arguments,1))},Ob=function(a,b,c){return arguments.length<=2?rb.slice.call(a,b):rb.slice.call(a,b,c)},Rb=function(a,b,c){if(!ka(a)||!ka(b)||a.length!=b.length)return l;for(var d=a.length,f=c||Qb,g=0;g<d;g++)if(!f(a[g],b[g]))return l;return j},Sb=function(a,b){return a>b?1:a<b?-1:0},Qb=function(a,b){return a===b},Tb=function(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];ja(c)?a.push.apply(a,Tb.apply(k,c)):a.push(c)}return a};var Ub="StopIteration"in ba?ba.StopIteration:Error("StopIteration"),Vb=function(){};Vb.prototype.vc=function(){e(Ub)};Vb.prototype.cl=function(){return this};
var Wb=function(a){if(a instanceof Vb)return a;if(typeof a.cl=="function")return a.cl(l);if(ka(a)){var b=0,c=new Vb;c.vc=function(){for(;;){if(b>=a.length)e(Ub);if(b in a)return a[b++];else b++}};return c}e(Error("Not implemented"))},Xb=function(a,b,c){if(ka(a))try{vb(a,b,c)}catch(d){if(d!==Ub)e(d)}else{a=Wb(a);try{for(;;)b.call(c,a.vc(),undefined,a)}catch(f){if(f!==Ub)e(f)}}},Yb=function(a,b,c){a=Wb(a);var d=new Vb;d.vc=function(){for(;;){var f=a.vc();if(b.call(c,f,undefined,a))return f}};return d},
Zb=function(a,b,c){a=Wb(a);try{for(;;)if(b.call(c,a.vc(),undefined,a))return j}catch(d){if(d!==Ub)e(d)}return l},$b=function(){var a=arguments,b=a.length,c=0,d=new Vb;d.vc=function(){try{if(c>=b)e(Ub);var f=Wb(a[c]);return f.vc()}catch(g){if(g!==Ub||c>=b)e(g);else{c++;return this.vc()}}};return d};var ac=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},bc=function(a,b,c){var d={};for(var f in a)if(b.call(c,a[f],f,a))d[f]=a[f];return d},cc=function(a,b,c){var d={};for(var f in a)d[f]=b.call(c,a[f],f,a);return d},dc=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return l;return j},ec=function(a){for(var b in a)return b},fc=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b},gc=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b},hc=function(a,b){for(var c in a)if(a[c]==
b)return j;return l},ic=function(a){for(var b in a)return l;return j},kc=function(a){for(var b=gc(a),c=b.length-1;c>=0;c--)jc(a,b[c])},jc=function(a,b){var c;if(c=b in a)delete a[b];return c},lc=function(a,b,c){if(b in a)e(Error('The object already contains the key "'+b+'"'));a[b]=c},mc=function(a,b,c){if(b in a)return a[b];return c},nc=function(a){var b={};for(var c in a)b[c]=a[c];return b},oc=function(a){var b={};for(var c in a)b[a[c]]=c;return b},pc=["constructor","hasOwnProperty","isPrototypeOf",
"propertyIsEnumerable","toLocaleString","toString","valueOf"],qc=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var f=0;f<pc.length;f++){b=pc[f];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}},rc=function(){var a=arguments.length;if(a==1&&ja(arguments[0]))return rc.apply(k,arguments[0]);if(a%2)e(Error("Uneven number of arguments"));for(var b={},c=0;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b},sc=function(){var a=arguments.length;if(a==1&&
ja(arguments[0]))return sc.apply(k,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=j;return b};var tc=function(a){if(typeof a.na=="function")return a.na();if(ka(a)||w(a))return a.length;var b,c=0;for(var d in a)c++;return b=c},uc=function(a){if(typeof a.Dd=="function")return a.Dd();if(w(a))return a.split("");if(ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return fc(a)},vc=function(a){if(typeof a.Bb=="function")return a.Bb();if(typeof a.Dd!="function"){if(ka(a)||w(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(d);return b}return gc(a)}},wc=function(a,b){if(typeof a.contains==
"function")return a.contains(b);if(typeof a.Rs=="function")return a.Rs(b);if(ka(a)||w(a))return Db(a,b);return hc(a,b)},xc=function(a){if(typeof a.Ga=="function")return a.Ga();if(ka(a)||w(a))return a.length==0;return ic(a)},yc=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(ka(a)||w(a))vb(a,b,c);else for(var d=vc(a),f=uc(a),g=f.length,h=0;h<g;h++)b.call(c,f[h],d&&d[h],a)},zc=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(ka(a)||w(a))return zb(a,b,c);for(var d=
vc(a),f=uc(a),g=f.length,h=0;h<g;h++)if(b.call(c,f[h],d&&d[h],a))return j;return l},Ac=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(ka(a)||w(a))return Ab(a,b,c);for(var d=vc(a),f=uc(a),g=f.length,h=0;h<g;h++)if(!b.call(c,f[h],d&&d[h],a))return l;return j};var Bc=function(a){this.Bc={};this.xb=[];var b=arguments.length;if(b>1){if(b%2)e(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.G(arguments[c],arguments[c+1])}else a&&this.RC(a)};q=Bc.prototype;q.$=0;q.yi=0;q.na=function(){return this.$};q.Dd=function(){this.gx();for(var a=[],b=0;b<this.xb.length;b++){var c=this.xb[b];a.push(this.Bc[c])}return a};q.Bb=function(){this.gx();return this.xb.concat()};q.de=function(a){return Cc(this.Bc,a)};
q.Rs=function(a){for(var b=0;b<this.xb.length;b++){var c=this.xb[b];if(Cc(this.Bc,c)&&this.Bc[c]==a)return j}return l};q.tc=function(a,b){if(this===a)return j;if(this.$!=a.na())return l;var c=b||Dc;this.gx();for(var d,f=0;d=this.xb[f];f++)if(!c(this.z(d),a.z(d)))return l;return j};var Dc=function(a,b){return a===b};q=Bc.prototype;q.Ga=function(){return this.$==0};q.clear=function(){this.Bc={};this.yi=this.$=this.xb.length=0};
q.remove=function(a){if(Cc(this.Bc,a)){delete this.Bc[a];this.$--;this.yi++;this.xb.length>2*this.$&&this.gx();return j}return l};q.gx=function(){if(this.$!=this.xb.length){for(var a=0,b=0;a<this.xb.length;){var c=this.xb[a];if(Cc(this.Bc,c))this.xb[b++]=c;a++}this.xb.length=b}if(this.$!=this.xb.length){var d={};for(b=a=0;a<this.xb.length;){c=this.xb[a];if(!Cc(d,c)){this.xb[b++]=c;d[c]=1}a++}this.xb.length=b}};q.z=function(a,b){if(Cc(this.Bc,a))return this.Bc[a];return b};
q.G=function(a,b){if(!Cc(this.Bc,a)){this.$++;this.xb.push(a);this.yi++}this.Bc[a]=b};q.RC=function(a){var b,c;if(a instanceof Bc){b=a.Bb();c=a.Dd()}else{b=gc(a);c=fc(a)}for(var d=0;d<b.length;d++)this.G(b[d],c[d])};q.wa=function(){return new Bc(this)};q.cl=function(a){this.gx();var b=0,c=this.xb,d=this.Bc,f=this.yi,g=this,h=new Vb;h.vc=function(){for(;;){if(f!=g.yi)e(Error("The map has changed since the iterator was created"));if(b>=c.length)e(Ub);var i=c[b++];return a?i:d[i]}};return h};
var Cc=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Ec=function(a){this.Bc=new Bc;a&&this.RC(a)},Fc=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+qa(a):b.substr(0,1)+a};q=Ec.prototype;q.na=function(){return this.Bc.na()};q.add=function(a){this.Bc.G(Fc(a),a)};q.RC=function(a){for(var b=uc(a),c=b.length,d=0;d<c;d++)this.add(b[d])};q.fb=function(a){for(var b=uc(a),c=b.length,d=0;d<c;d++)this.remove(b[d])};q.remove=function(a){return this.Bc.remove(Fc(a))};q.clear=function(){this.Bc.clear()};q.Ga=function(){return this.Bc.Ga()};
q.contains=function(a){return this.Bc.de(Fc(a))};q.d9=function(a){for(var b=new Ec,c=uc(a),d=0;d<c.length;d++){var f=c[d];this.contains(f)&&b.add(f)}return b};q.Dd=function(){return this.Bc.Dd()};q.wa=function(){return new Ec(this)};q.tc=function(a){return this.na()==tc(a)&&this.cEa(a)};q.cEa=function(a){var b=tc(a);if(this.na()>b)return l;if(!(a instanceof Ec)&&b>5)a=new Ec(a);return Ac(this,function(c){return wc(a,c)})};q.cl=function(){return this.Bc.cl(l)};var Gc=function(a,b){var c=new Ec,d=[],f=function(g,h){var i=h+"  ",m=function(p){return p.replace(/\n/g,"\n"+h)};try{if(r(g))if(ha(g))d.push("NULL");else if(w(g))d.push('"'+m(g)+'"');else if(ma(g))d.push(m(String(g)));else if(na(g))if(c.contains(g))d.push("*** reference loop detected ***");else{c.add(g);d.push("{");for(var n in g)if(!(!b&&ma(g[n]))){d.push("\n");d.push(i);d.push(n+" = ");f(g[n],i)}d.push("\n"+h+"}")}else d.push(g);else d.push("undefined")}catch(o){d.push("*** "+o+" ***")}};f(a,"");
return d.join("")},Ic=function(a,b){try{var c,d=a,f=ca("window.location.href");c=typeof d=="string"?{message:d,name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"}:!d.lineNumber||!d.fileName||!d.stack?{message:d.message,name:d.name,lineNumber:d.lineNumber||d.line||"Not available",fileName:d.fileName||d.filename||d.sourceURL||f,stack:d.stack||"Not available"}:d;var g="Message: "+Ra(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+
c.lineNumber+"\n\nBrowser stack:\n"+Ra(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+Ra(Hc(b)+"-> ");return g}catch(h){return"Exception trying to expose exception! You win, we lose. "+h}},Hc=function(a){return Jc(a||arguments.callee.caller,[])},Jc=function(a,b){var c=[];if(Db(b,a))c.push("[...circular reference...]");else if(a&&b.length<50){c.push(Kc(a)+"(");for(var d=a.arguments,f=0;f<d.length;f++){f>0&&c.push(", ");var g,h=d[f];switch(typeof h){case "object":g=h?"object":"null";break;case "string":g=
h;break;case "number":g=String(h);break;case "boolean":g=h?"true":"false";break;case "function":g=(g=Kc(h))?g:"[fn]";break;case "undefined":default:g=typeof h;break}if(g.length>40)g=g.substr(0,40)+"...";c.push(g)}b.push(a);c.push(")\n");try{c.push(Jc(a.caller,b))}catch(i){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},Kc=function(a){var b=String(a);if(!Lc[b]){var c=/function ([^\(]+)/.exec(b);if(c){var d=c[1];Lc[b]=d}else Lc[b]=
"[Anonymous]"}return Lc[b]},Lc={};var Nc=function(a,b,c,d,f){this.HZa=typeof f=="number"?f:Mc++;this.mRa=d||ua();this.$q=a;this.lGa=b;this.pFa=c};Nc.prototype.k3=k;Nc.prototype.j3=k;var Mc=0;q=Nc.prototype;q.lP=function(){return this.pFa};q.KO=function(){return this.k3};q.pNa=function(a){this.k3=a};q.eva=function(){return this.j3};q.qNa=function(a){this.j3=a};q.rq=function(){return this.$q};q.Qr=function(a){this.$q=a};q.kk=function(){return this.lGa};q.L5=function(){return this.mRa};var Pc=function(a){this.Ub=a;this.eb=k;this.cd={};this.ZF=[]};Pc.prototype.$q=k;var Qc=function(a,b){this.name=a;this.value=b};Qc.prototype.toString=function(){return this.name};var Rc=new Qc("SHOUT",1200),Sc=new Qc("SEVERE",1E3),Tc=new Qc("WARNING",900),Uc=new Qc("INFO",800),Vc=new Qc("CONFIG",700),Wc=new Qc("FINE",500),Xc=new Qc("FINER",400),Zc=new Qc("FINEST",300);q=Pc.prototype;q.mb=function(){return this.Ub};q.rZ=function(a){this.ZF.push(a)};q.oKa=function(a){return Hb(this.ZF,a)};q.db=function(){return this.eb};
q.Qr=function(a){this.$q=a};q.rq=function(){return this.$q};q.CR=function(a){if(this.$q)return a.value>=this.$q.value;if(this.eb)return this.eb.CR(a);return l};q.log=function(a,b,c){this.CR(a)&&this.mFa(this.iwa(a,b,c))};q.iwa=function(a,b,c){var d=new Nc(a,String(b),this.Ub);if(c){d.pNa(c);d.qNa(Ic(c,arguments.callee.caller))}return d};q.Nk=function(a,b){this.log(Rc,a,b)};q.za=function(a,b){this.log(Sc,a,b)};q.U=function(a,b){this.log(Tc,a,b)};q.F=function(a,b){this.log(Uc,a,b)};
q.B0=function(a,b){this.log(Vc,a,b)};q.Kc=function(a,b){this.log(Wc,a,b)};q.IN=function(a,b){this.log(Xc,a,b)};q.xE=function(a,b){this.log(Zc,a,b)};q.mFa=function(a){if(this.CR(a.rq()))for(var b=this;b;){b.fna(a);b=b.db()}};q.fna=function(a){for(var b=0;b<this.ZF.length;b++)this.ZF[b](a)};q.gB=function(a){this.eb=a};q.Sja=function(a,b){this.cd[a]=b};
var $c={},ad=k,bd=function(){if(!ad){ad=new Pc("");$c[""]=ad;ad.Qr(Vc)}},cd=function(){bd();return ad},C=function(a){bd();return a in $c?$c[a]:dd(a)},dd=function(a){var b=new Pc(a),c=a.split("."),d=c[c.length-1];c.length-=1;var f=c.join("."),g=C(f);g.Sja(d,b);b.gB(g);return $c[a]=b};var ed=function(){this.Sba=z(this.Aka,this);this.BE=new pb;this.BE.lfa=l;this.k9=this.BE.cV=l;this.lFa=""};ed.prototype.pva=function(){return this.BE};ed.prototype.SMa=function(a){if(a!=this.k9){var b=cd();if(a)b.rZ(this.Sba);else{b.oKa(this.Sba);this.ZYa=""}this.k9=a}};
ed.prototype.Aka=function(a){var b=this.BE.Zsa(a);if(window.console&&window.console.firebug)switch(a.rq()){case Rc:window.console.info(b);break;case Sc:window.console.error(b);break;case Tc:window.console.warn(b);break;default:window.console.debug(b);break}else if(window.console)window.console.log(b);else if(window.opera)window.opera.postError(b);else this.lFa+=b};var fd="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",gd="\u0591-\u07ff\ufb1d-\ufdff\ufe70-\ufefc",hd=/<[^>]*>|&[^;]+;/g,id=function(a,b){return b?a.replace(hd," "):a},jd=new RegExp("["+gd+"]"),kd=new RegExp("["+fd+"]"),ld=function(a,b){return jd.test(id(a,b))},md=ld,nd=new RegExp("^[^"+gd+"]*["+fd+"]"),pd=new RegExp("^[^"+fd+"]*["+gd+"]"),qd=function(a,b){return pd.test(id(a,b))},rd=qd,sd=function(a,b){return nd.test(id(a,b))},td=
sd,ud=/^http:\/\/.*/,vd=new RegExp("^(ar|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)"),wd=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(&lt;.*?(&gt;)+)/g,xd=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,yd=function(a,b){var c=b===undefined?ld(a):b,d=c?"\u200f":"\u200e";return a.replace(xd,d+"$&"+d)},zd=/\s+/,Ad=/\d/,Bd=0.4;var Dd=function(a){var b=String(a),c;var d=b;if(/^\s*$/.test(d))c=l;else{var f=/\\["\\\/bfnrtu]/g,g=/"[^"\\\n\r\u2028\u2029\x00-\x08\x10-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,h=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,i=/^[\],:{}\s\u2028\u2029]*$/;c=i.test(d.replace(f,"@").replace(g,"]").replace(h,""))}if(c)try{return eval("("+b+")")}catch(m){}e(Error("Invalid JSON string: "+b))},Fd=function(a){return(new Ed).serialize(a)},Ed=function(){};
Ed.prototype.serialize=function(a){var b=[];this.oU(a,b);return b.join("")};Ed.prototype.oU=function(a,b){switch(typeof a){case "string":this.Dda(a,b);break;case "number":this.oMa(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(a==k){b.push("null");break}if(ja(a)){this.mMa(a,b);break}this.pMa(a,b);break;case "function":break;default:e(Error("Unknown type: "+typeof a))}};
var Gd={'"':'\\"',"\\":"\\\\","/":"\\/","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\u000b"},Hd=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;Ed.prototype.Dda=function(a,b){b.push('"',a.replace(Hd,function(c){if(c in Gd)return Gd[c];var d=c.charCodeAt(0),f="\\u";if(d<16)f+="000";else if(d<256)f+="00";else if(d<4096)f+="0";return Gd[c]=f+d.toString(16)}),'"')};Ed.prototype.oMa=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
Ed.prototype.mMa=function(a,b){var c=a.length;b.push("[");for(var d="",f=0;f<c;f++){b.push(d);this.oU(a[f],b);d=","}b.push("]")};Ed.prototype.pMa=function(a,b){b.push("{");var c="";for(var d in a)if(a.hasOwnProperty(d)){var f=a[d];if(typeof f!="function"){b.push(c);this.Dda(d,b);b.push(":");this.oU(f,b);c=","}}b.push("}")};var Id=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Jd=function(a){return a.match(Id)},Kd=function(a,b,c){var d,f=[a,"&",b,"=",Ka(c)];if(f[1]){var g=f[0],h=g.indexOf("#");if(h>=0){f.push(g.substr(h));f[0]=g=g.substr(0,h)}var i=g.indexOf("?");if(i<0)f[1]="?";else if(i==g.length-1)f[1]=undefined}return d=f.join("")},Ld=/#|$/;var Md=function(a,b){var c;if(a instanceof Md){this.Jv(b==k?a.Iva():b);this.Tr(a.Yl());this.eJ(a.i7());this.Eo(a.Lh());this.Ko(a.Zn());this.Rr(a.mg());this.hB(a.lk().wa());this.Fo(a.aj())}else if(a&&(c=Jd(String(a)))){this.Jv(!!b);this.Tr(c[1]||"",j);this.eJ(c[2]||"",j);this.Eo(c[3]||"",j);this.Ko(c[4]);this.Rr(c[5]||"",j);this.zea(c[6]||"",j);this.Fo(c[7]||"",j)}else{this.Jv(!!b);this.Xe=new Nd(k,this,this.uk)}};q=Md.prototype;q.Dm="";q.ow="";q.lt="";q.gv=k;q.fv="";q.Ct="";q.VDa=l;q.uk=l;
q.toString=function(){if(this.Bh)return this.Bh;var a=[];this.Dm&&a.push(Od(this.Dm,Pd),":");if(this.lt){a.push("//");this.ow&&a.push(Od(this.ow,Pd),"@");a.push(Qd(this.lt));this.gv!=k&&a.push(":",String(this.Zn()))}this.fv&&a.push(Od(this.fv,Rd));var b=String(this.Xe);b&&a.push("?",b);this.Ct&&a.push("#",Od(this.Ct,Sd));return this.Bh=a.join("")};
q.lI=function(a){var b=this.wa(),c=a.gz();if(c)b.Tr(a.Yl());else c=a.IBa();if(c)b.eJ(a.i7());else c=a.fz();if(c)b.Eo(a.Lh());else c=a.BBa();var d=a.mg();if(c)b.Ko(a.Zn());else if(c=a.IQ()){if(d.charAt(0)!="/")if(this.fz()&&!this.IQ())d="/"+d;else{var f=b.mg().lastIndexOf("/");if(f!=-1)d=b.mg().substr(0,f+1)+d}d=Td(d)}if(c)b.Rr(d);else c=a.CBa();if(c)b.zea(a.Kua());else c=a.yBa();c&&b.Fo(a.aj());return b};
q.wa=function(){var a,b=this.Dm,c=this.ow,d=this.lt,f=this.gv,g=this.fv,h=this.Xe.wa(),i=this.Ct,m=new Md(k,this.uk);b&&m.Tr(b);c&&m.eJ(c);d&&m.Eo(d);f&&m.Ko(f);g&&m.Rr(g);h&&m.hB(h);i&&m.Fo(i);return a=m};q.Yl=function(){return this.Dm};q.Tr=function(a,b){this.Ti();delete this.Bh;if(this.Dm=b?Ud(a):a)this.Dm=this.Dm.replace(/:$/,"");return this};q.gz=function(){return!!this.Dm};q.i7=function(){return this.ow};q.eJ=function(a,b){this.Ti();delete this.Bh;this.ow=b?Ud(a):a;return this};q.IBa=function(){return!!this.ow};
q.Lh=function(){return this.lt};q.Eo=function(a,b){this.Ti();delete this.Bh;this.lt=b?Ud(a):a;return this};q.fz=function(){return!!this.lt};q.Zn=function(){return this.gv};q.Ko=function(a){this.Ti();delete this.Bh;if(a){a=Number(a);if(isNaN(a)||a<0)e(Error("Bad port number "+a));this.gv=a}else this.gv=k;return this};q.BBa=function(){return this.gv!=k};q.mg=function(){return this.fv};q.Rr=function(a,b){this.Ti();delete this.Bh;this.fv=b?Ud(a):a;return this};q.IQ=function(){return!!this.fv};
q.CBa=function(){return this.Xe.toString()!==""};q.hB=function(a,b){this.Ti();delete this.Bh;if(a instanceof Nd){this.Xe=a;this.Xe.ib=this;this.Xe.Jv(this.uk)}else{b||(a=Od(a,Vd));this.Xe=new Nd(a,this,this.uk)}return this};q.zea=function(a,b){return this.hB(a,b)};q.$ua=function(){return this.Xe.toString()};q.Kua=function(){return this.Xe.pRa()};q.lk=function(){return this.Xe};q.sxa=function(){return this.$ua()};q.P=function(a,b){this.Ti();delete this.Bh;this.Xe.G(a,b);return this};
q.QI=function(a,b){this.Ti();delete this.Bh;ja(b)||(b=[String(b)]);this.Xe.cPa(a,b);return this};q.dxa=function(a){return this.Xe.Dd(a)};q.Nf=function(a){return this.Xe.z(a)};q.aj=function(){return this.Ct};q.Fo=function(a,b){this.Ti();delete this.Bh;this.Ct=b?Ud(a):a;return this};q.yBa=function(){return!!this.Ct};q.S$=function(){this.Ti();this.P("zx",db());return this};q.removeParameter=function(a){this.Ti();this.Xe.remove(a);return this};q.Ti=function(){if(this.VDa)e(Error("Tried to modify a read-only Uri"))};
q.Jv=function(a){this.uk=a;this.Xe&&this.Xe.Jv(a)};q.Iva=function(){return this.uk};
var Wd=function(a,b){return a instanceof Md?a.wa():new Md(a,b)},Td=function(a){if(a==".."||a==".")return"";else if(!Sa(a,"./")&&!Sa(a,"/."))return a;else{for(var b=wa(a,"/"),c=a.split("/"),d=[],f=0;f<c.length;){var g=c[f++];if(g==".")b&&f==c.length&&d.push("");else if(g==".."){if(d.length>1||d.length==1&&d[0]!="")d.pop();b&&f==c.length&&d.push("")}else{d.push(g);b=j}}return d.join("/")}},Ud=function(a){return a?decodeURIComponent(a):""},Qd=function(a){if(w(a))return encodeURIComponent(a);return k},
Xd=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,Od=function(a,b){var c=k;if(w(a)){c=a;Xd.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,Yd)}return c},Yd=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)},Pd=/[#\/\?@]/g,Rd=/[\#\?]/g,Vd=/[\#\?@]/g,Sd=/#/g,Nd=function(a,b,c){this.Il=a||k;this.ib=b||k;this.uk=!!c};
Nd.prototype.Ui=function(){if(!this.uc){this.uc=new Bc;if(this.Il)for(var a=this.Il.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=k,f=k;if(c>=0){d=a[b].substring(0,c);f=a[b].substring(c+1)}else d=a[b];d=La(d);d=this.Un(d);this.add(d,f?La(f):"")}}};
var Zd=function(a,b,c){var d=vc(a);if(typeof d=="undefined")e(Error("Keys are undefined"));var f,g=d,h=uc(a),i=b,m=c;if(g.length!=h.length)e(Error("Mismatched lengths for keys/values"));for(var n=new Nd(k,i,m),o=0;o<g.length;o++)n.add(g[o],h[o]);return f=n};q=Nd.prototype;q.uc=k;q.$=k;q.na=function(){this.Ui();return this.$};q.add=function(a,b){this.Ui();this.Ku();a=this.Un(a);if(this.de(a)){var c=this.uc.z(a);ja(c)?c.push(b):this.uc.G(a,[c,b])}else this.uc.G(a,b);this.$++;return this};
q.remove=function(a){this.Ui();a=this.Un(a);if(this.uc.de(a)){this.Ku();var b=this.uc.z(a);if(ja(b))this.$-=b.length;else this.$--;return this.uc.remove(a)}return l};q.clear=function(){this.Ku();this.uc&&this.uc.clear();this.$=0};q.Ga=function(){this.Ui();return this.$==0};q.de=function(a){this.Ui();a=this.Un(a);return this.uc.de(a)};q.Rs=function(a){var b=this.Dd();return Db(b,a)};
q.Bb=function(){this.Ui();for(var a=this.uc.Dd(),b=this.uc.Bb(),c=[],d=0;d<b.length;d++){var f=a[d];if(ja(f))for(var g=0;g<f.length;g++)c.push(b[d]);else c.push(b[d])}return c};q.Dd=function(a){this.Ui();var b;if(a){var c=this.Un(a);if(this.de(c)){var d=this.uc.z(c);if(ja(d))return d;else{b=[];b.push(d)}}else b=[]}else{var f=this.uc.Dd();b=[];for(var g=0;g<f.length;g++){var h=f[g];ja(h)?Nb(b,h):b.push(h)}}return b};
q.G=function(a,b){this.Ui();this.Ku();a=this.Un(a);if(this.de(a)){var c=this.uc.z(a);if(ja(c))this.$-=c.length;else this.$--}this.uc.G(a,b);this.$++;return this};q.z=function(a,b){this.Ui();a=this.Un(a);if(this.de(a)){var c=this.uc.z(a);return ja(c)?c[0]:c}else return b};q.cPa=function(a,b){this.Ui();this.Ku();a=this.Un(a);if(this.de(a)){var c=this.uc.z(a);if(ja(c))this.$-=c.length;else this.$--}if(b.length>0){this.uc.G(a,b);this.$+=b.length}};
q.toString=function(){if(this.Il)return this.Il;if(!this.uc)return"";for(var a=[],b=0,c=this.uc.Bb(),d=0;d<c.length;d++){var f=c[d],g=Ka(f),h=this.uc.z(f);if(ja(h))for(var i=0;i<h.length;i++){b>0&&a.push("&");a.push(g,"=",Ka(h[i]));b++}else{b>0&&a.push("&");a.push(g,"=",Ka(h));b++}}return this.Il=a.join("")};q.pRa=function(){if(!this.ct)this.ct=Ud(this.toString());return this.ct};q.Ku=function(){delete this.ct;delete this.Il;this.ib&&delete this.ib.Bh};
q.wa=function(){var a=new Nd;if(this.ct)a.ct=this.ct;if(this.Il)a.Il=this.Il;if(this.uc)a.uc=this.uc.wa();return a};q.Un=function(a){var b=String(a);if(this.uk)b=b.toLowerCase();return b};q.Jv=function(a){var b=a&&!this.uk;if(b){this.Ui();this.Ku();yc(this.uc,function(c,d){var f=d.toLowerCase();if(d!=f){this.remove(d);this.add(f,c)}},this)}this.uk=a};q.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];yc(b,function(c,d){this.add(d,c)},this)}};var D=function(a,b){function c(){}c.prototype=b.prototype;a.f=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.prototype.ET=a},E=function(a){if(!a.Ju)a.Ju=new a;return a.Ju};t("knol.getSingleton",E,void 0);var $d=function(a,b,c){for(var d in b)if(c||!(d in a))a[d]=b[d]};var ae=function(a,b,c){if(a.length!=b.length)return k;this.DQa(a,c);this.FSa=b};ae.prototype.DQa=function(a,b){this.sJa=a;for(var c=1;c<a.length;c++)if(a[c]==k)a[c]=a[c-1]+1;else if(b)a[c]+=a[c-1]};ae.prototype.$la=function(a){var b=this.awa(a);if(b<0)return k;return this.FSa[b]};ae.prototype.awa=function(a){for(var b=this.sJa,c=0,d=b.length;d-c>8;){var f=d+c>>1;if(b[f]<=a)c=f;else d=f}for(;c<d;++c)if(a<b[c])break;return c-1};var be=5,ce=6,de=7,ee=k,fe=function(a,b){if(a==10&&b==11)return l;if(a==1||a==10||a==11)return j;if(b==1||b==10||b==11)return j;if(a==be&&(b==be||b==ce||b==8||b==9))return l;if((a==8||a==ce)&&(b==ce||b==de))return l;if((a==9||a==de)&&b==de)return l;if(b==2)return l;return j},ge=function(a){if(44032<=a&&a<=55203){if(a%28==16)return 8;return 9}else{ee||(ee=new ae([0,10,1,2,1,18,95,33,13,1,594,112,275,7,263,45,1,1,1,2,1,2,1,1,56,4,12,11,48,20,17,1,101,7,1,7,2,2,1,4,33,1,1,1,30,27,91,11,58,9,269,2,1,
56,1,1,3,8,4,1,3,4,13,2,29,1,2,56,1,1,1,2,6,6,1,9,1,10,2,29,2,1,56,2,3,17,30,2,3,14,1,56,1,1,3,8,4,1,20,2,29,1,2,56,1,1,2,1,6,6,11,10,2,30,1,59,1,1,1,12,1,9,1,41,3,58,3,5,17,11,2,30,2,56,1,1,1,1,2,1,3,1,5,11,11,2,30,2,58,1,2,5,7,11,10,2,30,2,70,6,2,6,7,19,2,60,11,5,5,1,1,8,97,13,3,5,3,6,74,2,27,1,1,1,1,1,4,2,49,14,1,5,1,2,8,45,9,1,100,2,4,1,6,1,2,2,2,23,2,2,4,3,1,3,2,7,3,4,13,1,2,2,6,1,1,1,112,96,72,82,357,1,946,3,29,3,29,2,30,2,64,2,1,7,8,1,2,11,9,1,45,3,155,1,118,3,4,2,9,1,6,3,116,17,7,2,77,2,3,
228,4,1,47,1,1,5,1,1,5,1,2,38,9,12,2,1,30,1,4,2,2,1,121,8,8,2,2,392,64,523,1,2,2,24,7,49,16,96,33,3311,32,554,6,105,2,30164,4,9,2,388,1,3,1,4,1,23,2,2,1,88,2,50,16,1,97,8,25,11,2,213,6,2,2,2,2,12,1,8,1,1,434,11172,1116,1024,6942,1,737,16,16,7,216,1,158,2,89,3,513,1,2051,15,40,8,50981,1,1,3,3,1,5,8,8,2,7,30,4,148,3,798140,255],[1,11,1,10,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,1,2,0,2,0,2,0,1,0,2,0,2,0,2,0,2,0,2,4,0,2,0,4,2,4,2,0,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,0,2,4,2,
0,2,0,2,4,0,2,0,4,2,4,2,0,2,0,2,4,0,2,0,2,4,2,4,2,0,2,0,2,0,2,4,2,4,2,0,2,0,4,0,2,4,2,0,2,0,4,0,2,0,4,2,4,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,0,2,0,4,0,2,4,2,4,2,4,0,2,0,3,2,0,2,0,2,0,3,0,2,0,2,0,2,0,2,0,2,0,4,0,2,4,2,0,2,0,2,0,2,0,4,2,4,2,4,2,4,2,0,4,2,0,2,0,4,0,4,0,2,0,2,4,2,4,2,0,4,0,5,6,7,0,2,0,2,0,2,0,2,0,2,0,1,4,2,4,2,4,2,0,2,0,2,0,2,0,2,4,2,4,2,4,2,0,4,0,4,0,2,4,0,2,4,0,2,4,2,4,2,4,2,4,0,2,0,2,4,0,4,2,4,2,4,0,4,2,4,2,0,2,0,1,2,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,4,2,4,0,4,0,4,2,0,2,0,
2,4,0,2,4,2,4,2,0,2,0,2,4,0,9,0,2,0,2,0,2,0,2,0,1,0,2,0,1,0,2,0,2,0,2,0,2,4,2,0,4,2,1,2,0,2,0,2,0,2,0,1,2],j));return ee.$la(a)}},he=function(a,b,c){var d=ge(a),f=ge(b);return fe(d,f)&&!(c&&(d==3||f==4))};var ie,je,ke,le,me,ne,oe,pe,qe,re=function(){return ba.navigator?ba.navigator.userAgent:k},se=function(){return ba.navigator};me=le=ke=je=ie=l;var te;if(te=re()){var ue=se();ie=te.indexOf("Opera")==0;je=!ie&&te.indexOf("MSIE")!=-1;le=(ke=!ie&&te.indexOf("WebKit")!=-1)&&te.indexOf("Mobile")!=-1;me=!ie&&!ke&&ue.product=="Gecko"}var ve=ie,F=je,H=me,we=ke,xe=le,ye,ze=se(),Ae=ye=ze&&ze.platform||"";ne=Sa(Ae,"Mac");oe=Sa(Ae,"Win");pe=Sa(Ae,"Linux");qe=!!se()&&Sa(se().appVersion||"","X11");
var Be=ne,Ce=oe,De=pe,Fe=qe,Ge,He="",Ie;if(ve&&ba.opera){var Je=ba.opera.version;He=typeof Je=="function"?Je():Je}else{if(H)Ie=/rv\:([^\);]+)(\)|;)/;else if(F)Ie=/MSIE\s+([^\);]+)(\)|;)/;else if(we)Ie=/WebKit\/(\S+)/;if(Ie){var Ke=Ie.exec(re());He=Ke?Ke[1]:""}}var Le=Ge=He,Me={},Ne=function(a){return Me[a]||(Me[a]=fb(Le,a)>=0)};var Pe=function(a,b,c){var d=c||10;if(d>a.length)return a;for(var f=[],g=0,h=0,i=0,m=0,n=0;n<a.length;n++){var o=m;m=a.charCodeAt(n);var p=m>=768&&!b(o,m,j);if(g>=d&&m>32&&!p){f.push(a.substring(i,n),Oe);i=n;g=0}if(h)if(m==62&&h==60)h=0;else{if(m==59&&h==38){h=0;g++}}else if(m==60||m==38)h=m;else if(m<=32)g=0;else g++}f.push(a.substr(i));return f.join("")},Oe=we?"<wbr></wbr>":ve?"&shy;":"<wbr>";var Re=function(a,b){var c=b||Qe;if(!r(a))return"undefined";if(a==k)return"NULL";var d=[];for(var f in a)if(!c(f,a[f])){var g=f+" = ";try{g+=a[f]}catch(h){g+="*** "+h+" ***"}d.push(g)}return d.join("\n")},Se=function(a,b){var c=b||Qe,d=new Ec,f=[],g=0,h=function(i,m,n){var o=m+"\u00a0\u00a0",p=function(x){return x?x.replace(/\n/g,"\n"+m):""};try{if(r(i))if(ha(i))f.push("NULL");else if(w(i))f.push('"'+p(i)+'"');else if(ma(i))f.push(p(String(i)));else if(na(i))if(d.contains(i))f.push("*** reference loop detected ***");
else if(g>100)f.push("...");else{++g;d.add(i);if(qa(i)){f.push("{");if("Node"in ba&&i instanceof Node){f.push("\n");if("innerHTML"in i)f.push("<pre>"+i.innerHTML+"</pre>");else"innerText"in i?f.push(i.innerText):f.push("*** cannot expose Node type objects ***")}else if(i instanceof Bc)for(var s in i){if(!c(n+"."+s,i.z(s))){f.push("\n");f.push(o);f.push(s+" = ");h(i.z(s),o,n+"."+s)}}else for(var u in i)if(!c(n+"."+u,i[u])){f.push("\n");f.push(o);f.push(u+" = ");h(i[u],o,n+"."+u)}f.push("\n"+m+"}")}else f.push("*** cannot hash ***")}else f.push(i);
else f.push("undefined")}catch(v){f.push("*** "+v+" ***")}};h(a,"","");return f.join("")},Te=/closure_hashCode_/i,Qe=function(a,b){return ma(b)||a.search(Te)!=-1};var Ue,Ve=function(){var a=Math.random()+ua()/1E6;return a-Math.floor(a)},We=function(a){if(na(a)&&!ma(a)){function b(){}b.prototype=a.constructor.prototype;b.constructor=a.constructor;var c=ja(a)?[]:new b;for(var d in a)c[d]=We(a[d]);return c}return a},Xe=function(a){return Ra(Aa(a))},Ye=ba._knol_evaluated_results_||{},Ze=Ye.ssjsConfig,$e=function(a){if(!Ue){var b={},c=Ze,d=C("knol.Common");if(c)for(var f=c.split(","),g=0;g<f.length;g++){var h=f[g];if(h.length){var i=h.split("=");if(i[0])b[i[0]]=
i[1]}}else d.U("ssjsConfig missing!");Ue=b}return Ue[a]},af=function(){var a=$e("buildMessage");if(!a||a.match(/build/))return 31337;try{return Number(a.match(/\d+/)[0])}catch(b){var c=C("knol.Common");c.U("Invalid build string: "+a);return k}},bf=function(){return $e("defaultDomainPrefix")||"/"},cf=function(){var a=bf();if(xa(a,"/"))a=a.substring(0,a.length-1);return a},df=function(a){var b=[{pR:F,version:"6.0"},{pR:H,version:"1.8.1"},{pR:we,version:"526"}];return zb(b,function(c){return c.pR&&(!a||
Ne(c.version))})},ef=l,hf=function(){ef=j},jf=function(a){return a?a.replace(/<[^>]*>/g,""):""},kf=function(a,b){if(!a||a.length<=b)return a||"";a=Ha(Ga(a.replace(/\xa0|\s/g," ")));if(a.length<=b)return a;var c=a.substring(0,b);c=Ha(c);if(c.length<b)return c+"...";if(a[b]==" ")return c+"...";for(var d=Math.ceil(2*c.length/3),f=c.length-1;f>d;f--)if(c[f]==" ")return c.substring(0,f)+"...";return c+"..."},lf=function(a){if(!a)return"";return a=Pe(a,he,20)},mf=function(a,b,c){if(!a)return"";if(b)a=Ya(a,
b);a=Xe(a);c||(a=lf(a));return a},nf=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,6}$/i,of=function(a){var b=Fd(a);return b=b.replace(/</g,"\\u003C").replace(/>/g,"\\u003E")},rf=function(a){var b=a?pf(a):qf();window.location=b},pf=function(a){var b=new Md(a),c=b.mg();c==cf()&&b.Rr(c+"/");var d=new Md(qf());d.P("continue",b.toString());return d.toString()},tf=function(a){var b=sf(a);if(b){var c="Voltar para: "+b.v(),d=I({b:"div"});d.addElement(I({b:"div",c:"knol-back-link",d:c}));d.la();return d}return k},
sf=function(a){var b=J(a);if(b){var c="",d="";if(b instanceof uf){c=b.ej();d=b.ik()}else if(b instanceof vf){c=b.Rh();d=b.fa()}else return"";var f=I({b:"a",href:d,d:c});return f}return""},wf=function(a){var b="<!-- google_ad_section_start";if(a)b+="(weight=ignore)";b+=" --\>";return b},xf=function(a){var b=(new Date).getTime(),c=(a instanceof Date?a:new Date(a)).getTime(),d=b-c;if(d<=36E5){var f=Math.floor(d/6E4);if(f<=1)return"um minuto atr\u00e1s";else{var g=f+" minutos atr\u00e1s";return g}}else if(d<=
864E5){var h=Math.floor(d/36E5);if(h<=1)return"uma hora atr\u00e1s";else{var i=h+" horas atr\u00e1s";return i}}else if(d<=6048E5){var m=Math.floor(d/864E5);if(m<=1)return"Um dia atr\u00e1s";else{var n=m+" dias atr\u00e1s";return n}}else return""},yf=function(a,b){var c=$e("jstimingSampling");if(c){c=Number(c);c==0||Math.random()>=c||window.setTimeout(function(){try{window.jstiming.report(a,b)}catch(d){var f=C("knol.Common");f.U("Failed to report timings",d)}},0)}},zf=function(){var a=new Md(document.location.href),
b=a.Nf("gl");if(b)return b.toUpperCase();return _reqCountry},Af=function(a){return a+"_OFFLINE"},Bf=function(a,b,c){var d=new Md(qf());if(F){var f=c||b,g=new Md(a);g.P(f,"1");a=g.toString()}else a+="#"+b;d.P("continue",a);return d.toString()},Cf=function(a,b){if(a&&wa(a,b))return a.replace(b,"");return k};var Df=function(){},Ef=function(){return C("knol.Persistent")},N=function(a,b,c){if(!a||!b||!c)Ef().za("bad params to  knol.Persistent.registerGetter -  ctor:"+a+" func:"+b+" name:"+c);if(!a.vC)a.vC={};a.vC[c]=b;Ff(a,c)},Ff=function(a,b){if(!a||!b)Ef().za("bad params to  knol.Persistent.registerProperty -  ctor:"+a+" name:"+b);if(!a.FC)a.FC=[];a.FC.push(b)},Gf=function(a,b){if(!a||!b)Ef().za("bad params to  knol.Persistent.registerJsonProperty -  ctor:"+a+" name:"+b);if(!a.yC)a.yC=[];a.yC.push(b)};
Df.prototype.serialize=k;Df.prototype.parse=k;Df.prototype.M9=j;
var If=function(a){var b=Ef();if(!a)return a;var c,d=a?a.ET||a.constructor:k;if(Hf(d))c=a;else if(d==Array){c=[];for(var f=0;f<a.length;f++)c.push(If(a[f]))}else if(typeof a==="function")return;else if(a instanceof Df||a.M9)c=ma(a.serialize)?a.serialize():Jf(a);else if(d==Object){c={};for(var g in a)g.search(Te)!=-1||(c[g]=If(a[g]))}else{b.U("serializing an object that is not persistent");c=a}return c},Hf=function(a){return!a||a==Number||a==String||a==Boolean},Jf=function(a){Ef();for(var b={},c=a.constructor;c;){for(var d=
c.FC||a.FC||[],f=c.vC||a.vC||{},g=0;g<d.length;g++){var h=d[g],i=undefined;i=h in f?f[h].apply(a):a[h];if(r(i)){var m=If(i);if(r(m))b[h]=m}}for(var n=c.yC||a.yC||[],o=0;o<n.length;o++){for(var p=n[o],s=p.split("."),u=s[s.length-1],v=a,x=0;x<s.length;x++)if(s[x]in v)v=v[s[x]];else{v=k;break}if(w(v))b[u]=Dd(v);else if(v)b[u]=sa(v)}c=c.f?c.f.constructor:k}return b},Kf=function(a,b){var c=Ef();if(ma(a.T))try{a.T(b)}catch(d){c.za("could not deserialize",d)}else $d(a,b,j)};var Lf=function(){this.M9=j},Mf=new Lf;window.manifest={serverBase:"/c"};
var Nf=function(a){var b=C("knol.Global");try{for(var c=["evaluations","authorId","author","knolMetaId","knolMeta","knolId","knol","knolPageVersion","userId","baseUri","knolCanonicalUri","knolBaseUri","signInUrl","pubSignOutUrl","unpubSignOutUrl","locale","pageType"],d=0;d<c.length;d++)if(a[c[d]])Mf[c[d]]=a[c[d]]}catch(f){b.za("could not deserialize global data",f)}},Qf=function(a,b,c,d,f){if(a>0&&a<3){Mf.evaluations||(Mf.evaluations=[]);Mf.evaluations[a]||(Mf.evaluations[a]=[]);var g,h=b,i=c,m=d,
n=f,o="";if(h){if(!Of(h))e("Invalid constructor name: "+h);var p=Pf(i);o+="new "+h+"("+p+")"}if(m){if(h)o+=".";if(!Of(m))e("Invalid function name: "+m);p=Pf(n);o+=m+"("+p+")"}g=o;Mf.evaluations[a].push(g)}else e(new Error("bad evaluation type"))},Rf=/^[a-zA-Z0-9()\._ ]+$/,Of=function(a){if(!Rf.test(a))return l;if(xa(a,")"))return l;return j},Pf=function(a){var b=[];a&&vb(a,function(c){b.push(Sf(c))});return b.join(",")},Sf=function(a){if(r(a))if(ha(a))return"null";else if(w(a))return'"'+Tf(a)+'"';
else if(typeof a=="boolean"||la(a))return a+"";else if(ja(a)){var b=[];vb(a,function(c){b.push(Sf(c))});return"["+b.join(",")+"]"}else e("Invalid parameter type");else return"undefined"},Tf=function(a){if(!a)return a;for(var b=[],c=0;c<a.length;c++)b.push(Uf(a[c]));return b.join("")},Vf={},Uf=function(a){if(a in Vf)return Vf[a];var b=a.charCodeAt(0),c=b.toString(16).toUpperCase(),d="\\u"+ab("0",Math.max(0,4-c.length))+c;return $a[a]=d},Xf=function(a){if(a>0&&a<3){Wf()[a]||(Mf.evaluations[a]=[]);return Mf.evaluations[a]}},
Wf=function(){Mf.evaluations||(Mf.evaluations=[]);return Mf.evaluations};N(Lf,Wf,"evaluations");var Yf=function(a){Mf.evaluations&&delete Mf.evaluations[a]},$f=function(){var a=Zf();return a?J(a):k};N(Lf,$f,"author");var Zf=function(){return Mf.authorId||k};N(Lf,Zf,"authorId");var O=function(){var a=ag();return a?J(a):k};N(Lf,O,"knolMeta");var ag=function(){return Mf.knolMetaId||k};N(Lf,ag,"knolMetaId");var dg=function(){var a=bg(),b=cg();return a?J({nodeId:a,version:b}):k};N(Lf,dg,"knol");
var bg=function(){return Mf.knolId||k};N(Lf,bg,"knolId");var cg=function(){return Mf.knolPageVersion||0};N(Lf,cg,"knolPageVersion");var P=function(){var a=eg();return a?J(a):k},eg=function(){return Mf.userId||k},fg=function(){return req.user?"":k},gg=function(){return Mf.baseUri||k};N(Lf,gg,"baseUri");var hg=function(){return Mf.knolBaseUri||k};N(Lf,hg,"knolBaseUri");var ig=function(){return Mf.knolCanonicalUri||k};N(Lf,ig,"knolCanonicalUri");
var qf=function(){var a=Mf.signInUrl;if(a){var b=new Md(a),c=b.Nf("continue");if(c){c=new Md(String(c));var d=new Md(window.location.href);if(c.Lh()!=d.Lh()||c.Zn()!=d.Zn()){c.Eo(d.Lh());c.Ko(d.Zn());b.P("continue",c.toString());a=b.toString()}}}return a||k};N(Lf,qf,"signInUrl");var jg=function(){return Mf.pubSignOutUrl||k};N(Lf,jg,"pubSignOutUrl");var kg=function(){return Mf.unpubSignOutUrl||k};N(Lf,kg,"unpubSignOutUrl");var lg=function(){return Mf.newGaiaAccountUrl||k};N(Lf,lg,"newGaiaAccountUrl");
var mg=function(){return Mf.locale||"en"};N(Lf,mg,"locale");var ng=function(){return Mf.pageType};N(Lf,ng,"pageType");
var og=function(){var a=mg();return a!="en"?"_"+a:""},qg=function(){var a=pg();if(a)return"_"+a;return og()},rg=function(a){var b=a||mg();return vd.test(b)},tg=function(a){var b=a||mg();return Db(sg,b)},ug=["SA","IQ","EG","LY","DZ","MA","TN","OM","YE","SY","JO","LB","KW","BH","QA"],sg=["IN","PK"],vg=function(a){var b=a||zf();return b=="IL"||b=="PK"||Db(ug,b)},wg=function(a){var b=a||zf();return Db(sg,b)},xg=function(){var a=O();if(!a||!a.getLanguage())return k;return a.getLanguage()},yg=function(a){var b=
k;b=window.location.href;var c=new Md(b),d=a||bg(),f=d?J(d):k;if(!d||!f)e(new Error("there is no known knol from which to obtain a canonical URL"));c.Rr(f.By());c.hB(k);c.Fo("");return c.toString()},pg=function(){var a;a=window.location.href;var b=new Md(a),c=b.Nf("country_domain");if(c)return c.toLowerCase();var d=window.location.hostname,f=d.lastIndexOf(".");if(f>=0){var g=d.substring(f+1);return g.length==2?g.toLowerCase():k}};var zg,Ag=function(){if(zg)return zg;zg=this;this.s_a=Uc;this.u=cd();var a=typeof window!="undefined"&&window.navigator.userAgent;if(a){if(window.console){this.D0=new ed;this.D0.SMa(j);this.D0.pva().cV=j}}else this.u.rZ(z(this.nFa,this))};t("gsites.Logger",Ag,void 0);q=Ag.prototype;q.message=function(a,b,c){this.u.log(a,b,c)};q.F=function(a,b){this.message(Uc,a,b)};q.U=function(a,b){this.message(Tc,a,b)};q.za=function(a,b){b||(b=new Error("unknown error"));this.message(Sc,a,b)};
q.Ab=function(a,b){this.za(a,b)};q.nFa=function(a){try{var b=a.rq().value;jot.lib.knol.jslog(b,a.lP(),a.kk(),String(a.KO()),bg(),eg())}catch(c){var d=[a.rq().value,a.lP(),a.kk(),a.KO(),c];jot.lib.admin.log(d.join(" "))}};var Bg=function(){Bc.call(this)};D(Bg,Bc);Bg.prototype.add=function(a,b){if(this.de(a))e(Error('The collection already contains the key "'+a+'"'));else this.G(a,b)};var Cg=function(a){Bc.call(this);if(a){var b=a;this.kx=function(){};this.kx.prototype=b.prototype;this.kx.constructor=b}};D(Cg,Bg);$d(Cg.prototype,Df.prototype);Cg.prototype.serialize=function(){for(var a={},b=this.Bb(),c=0;c<b.length;c++)a[b[c]]=If(this.z(b[c]));return a};Cg.prototype.Lpa=function(){return this.kx?new this.kx:k};
Cg.prototype.T=function(a){if(this.na()!=0)e(new Error("cannot deserialize a map representation into a map that has "+this.na()+" items."));if(a)for(var b in a)if(b.search(Te)==-1){var c=k;if(this.kx){c=this.Lpa();c.T?c.T(a[b]):$d(c,a[b],j)}else c=a[b];this.G(b,c)}};var Dg,Eg,Fg="ScriptEngine"in ba;Eg=(Dg=Fg&&ba.ScriptEngine()=="JScript")?ba.ScriptEngineMajorVersion()+"."+ba.ScriptEngineMinorVersion()+"."+ba.ScriptEngineBuildVersion():"0";var Gg=Dg,Hg=Eg;var Ig=function(a){this.Bd=Gg?[]:"";a!=k&&this.ab.apply(this,arguments)};Ig.prototype.G=function(a){this.clear();this.ab(a)};if(Gg){Ig.prototype.AL=0;Ig.prototype.ab=function(a,b){if(b==k)this.Bd[this.AL++]=a;else{this.Bd.push.apply(this.Bd,arguments);this.AL=this.Bd.length}return this}}else Ig.prototype.ab=function(a,b){this.Bd+=a;if(b!=k)for(var c=1;c<arguments.length;c++)this.Bd+=arguments[c];return this};Ig.prototype.clear=function(){if(Gg)this.AL=this.Bd.length=0;else this.Bd=""};
Ig.prototype.C5=function(){return this.toString().length};Ig.prototype.toString=function(){if(Gg){var a=this.Bd.join("");this.clear();a&&this.ab(a);return a}else return this.Bd};var Jg={ZTa:7,xWa:6,CUa:5,Tia:4,oC:3,FUa:2,OWa:1},Lg=function(a){this.type=a||Kg().type;this.DD=this.type==3||this.type==6?l:j;this.As=this.type==4||this.type==7?2:3};D(Lg,Df);var Mg=new Lg(1),Ng=new Lg(5);Lg.prototype.DD=j;Lg.prototype.As=3;var Kg=function(){switch(pg()){case "kr":return Ng;default:return Mg}};
Lg.prototype.toString=function(){switch(this.type){case 2:return"copyright";case 1:case 4:case 3:case 5:case 7:case 6:var a=new Ig("by");this.DD||a.ab("-nc");switch(this.As){case 1:a.ab("-nd");break;case 2:a.ab("-sa");break}var b=this.tO();if(b){a.ab("-");a.ab(b.toUpperCase())}return a.toString()}};Lg.prototype.serialize=function(){return this.toString()};
var Qg=function(a){if(!a)return new Lg;var b=a.split("-");switch(b[0]){case "copyright":return new Lg(2);case "by":var c;if(b.length&&b[b.length-1]=="KR"){c=new Lg(5);if(Db(b,"nc")){c=new Lg(6);c.DD=l}if(Db(b,"nd"))c.As=1;else if(Db(b,"sa")){c=new Lg(7);c.As=2}}else{c=new Lg(1);if(Db(b,"nc")){c=new Lg(3);c.DD=l}if(Db(b,"nd"))c.As=1;else if(Db(b,"sa")){c=new Lg(4);c.As=2}}return c;default:e(new Error("Invalid license code: "+a))}};q=Lg.prototype;
q.parse=function(a){if(a){var b=Qg(a.replace(/"/g,""));$d(this,b,j)}};
q.D5=function(a){switch(this.type){case 2:return"Todos os direitos reservados.";case 3:if(a)return"Alguns direitos reservados (CC-by-NC).Licen\u00e7a Creative Commons Attribution-Noncommercial 3.0\u2028";return"Licen\u00e7a Creative Commons Attribution-Noncommercial 3.0\u2028";case 4:return"Licen\u00e7a Creative Commons Attribution-Share Alike 3.0";case 5:if(a)return"Alguns direitos reservados (CC-by).Licen\u00e7a Creative Commons Attribution 2.0 da Cor\u00e9ia";return"Licen\u00e7a Creative Commons Attribution 2.0 da Cor\u00e9ia";
case 6:if(a)return"Alguns direitos reservados (CC-by-NC).Licen\u00e7a Creative Commons Attribution 2.0 da Cor\u00e9ia";return"Licen\u00e7a Creative Commons Attribution 2.0 da Cor\u00e9ia";case 7:return"Licen\u00e7a Creative Commons Attribution-Share Alike 2.0 da Cor\u00e9ia";default:if(a)return"Alguns direitos reservados (CC-by).Licen\u00e7a Creative Commons Attribution 3.0";return"Licen\u00e7a Creative Commons Attribution 3.0"}};q.dwa=function(){return""};
q.E5=function(){switch(this.type){case 2:return"";default:var a=this.toString(),b=this.tO();if(b){var c=a.lastIndexOf("-"+b.toUpperCase());if(c>=0)a=a.substr(0,c)}var d="http://creativecommons.org/licenses/"+a+"/"+this.zua();if(b)d+="/"+b;return d}};q.zua=function(){switch(this.tO()){case "kr":return"2.0";default:return"3.0"}};q.tO=function(){switch(this.type){case 5:case 6:case 7:return"kr";default:return k}};var Rg={WUa:0,HUa:1,$Ua:2,hWa:3,GVa:4,wWa:5,WTa:6,VUa:7,YUa:8,UUa:9,wUa:10,YTa:11,XY:12,YWa:13,kWa:14,IXa:15,IVa:16,cVa:17,rUa:18,kVa:19,uUa:20,nXa:21},Sg=function(){};D(Sg,Df);Sg.prototype.T=function(a){var b=new Tg,c=new Tg;$d(b,a.spentCounts,j);this.spentCounts=b;$d(c,a.exhaustionCounts,j);this.exhaustionCounts=c;for(var d=["lastUpdated","quotaOverride","quotaType"],f=0;f<d.length;f++){var g=d[f];this[g]=a[g]}};var Ug=1,Vg=7;
Sg.prototype.Oy=function(){this.spentCounts||(this.spentCounts=new Tg);return this.spentCounts};N(Sg,Sg.prototype.Oy,"spentCounts");Sg.prototype.LO=function(){this.exhaustionCounts||(this.exhaustionCounts=new Tg);return this.exhaustionCounts};N(Sg,Sg.prototype.LO,"exhaustionCounts");Sg.prototype.LF=function(a){var b=this.Oy();if(!(a in b))return 0;return b[a]||0};Sg.prototype.Uya=function(a){var b=this.LO();if(!(a in b))return 0;return b[a]||0};Sg.prototype.RNa=function(a){this.lastUpdated=a};
Sg.prototype.A5=function(){return this.lastUpdated||0};N(Sg,Sg.prototype.A5,"lastUpdated");var ah=function(a){switch(a){case 1:return new Wg;case 2:return new Xg;case 3:return new Yg;case 4:return new Zg}return new $g};Sg.prototype.vq=function(){return this.quotaType};Sg.prototype.dSa=function(){};N(Sg,Sg.prototype.vq,"quotaType");Sg.prototype.o6=function(){return ah(this.vq())};Sg.prototype.wxa=function(){var a=this.quotaOverride;return!!(a&&!na(a))};N(Sg,Sg.prototype.wxa,"quotaOverride");q=Sg.prototype;
q.Vya=function(a){if(!(a in this.o6()))return 0;return this.o6()[a]};q.k4=function(a){C("knol.Quota");this.WKa();var b=this.hO(a),c=this.LF(a);return Math.max(0,b-c)};q.hO=function(a){return this.B4(a)*Vg};q.Pra=function(a,b){var c=this.LF(a);this.Oy()[a]=Math.min(c+(b?b:1),this.hO(a))};q.oCa=function(a){var b=this.Uya(a);this.LO()[a]=b+1};q.WKa=function(){C("knol.Quota");var a=this.getUTCMilliseconds(),b=this.hGa(a),c=Math.max(0,b-this.A5());if(c>0){for(var d in Rg){var f=Rg[d];this.XKa(f,c)}this.RNa(b)}};
q.getUTCMilliseconds=function(){return ua()};q.XKa=function(a,b){var c=this.LF(a);if(c&&b>0){var d=Math.min(this.hO(a),this.LF(a));d-=b*this.B4(a);if(d>0)this.Oy()[a]=d;else delete this.Oy()[a]}};q.B4=function(a){return this.Vya(a)*Ug};q.hGa=function(a){return Math.floor(a/864E5)};var Tg=function(){};D(Tg,Df);Ff(Tg,String(1));Ff(Tg,String(2));Ff(Tg,String(3));Ff(Tg,String(4));Ff(Tg,String(5));Ff(Tg,String(6));Ff(Tg,String(8));Ff(Tg,String(9));Ff(Tg,String(10));Ff(Tg,String(11));Ff(Tg,String(13));
Ff(Tg,String(16));Ff(Tg,String(17));Ff(Tg,String(18));Ff(Tg,String(19));var $g=function(){this[1]=3;this[2]=75;this[3]=5;this[4]=5;this[5]=5;this[6]=150;this[8]=30;this[9]=1E4;this[10]=1E4;this[11]=10;this[13]=5;this[16]=2;this[17]=2;this[18]=3;this[19]=0};D($g,Tg);var Wg=function(){this[1]=10;this[2]=150;this[3]=10;this[4]=15;this[5]=15;this[6]=300;this[8]=100;this[9]=1E6;this[10]=1E6;this[11]=30;this[13]=15;this[16]=10;this[17]=7;this[18]=3;this[19]=1};D(Wg,Tg);
var Yg=function(){this[1]=1;this[2]=5;this[3]=1;this[4]=1;this[5]=1;this[6]=10;this[8]=5;this[9]=1E5;this[10]=1E5;this[11]=1;this[13]=1;this[16]=1;this[17]=1;this[18]=2;this[19]=0};D(Yg,Tg);var Zg=function(){this[1]=0;this[2]=0;this[3]=0;this[4]=0;this[5]=0;this[6]=0;this[8]=2;this[9]=0;this[10]=0;this[11]=0;this[13]=0;this[16]=0;this[17]=0;this[18]=0;this[19]=0};D(Zg,Tg);
var Xg=function(){this[1]=1E4;this[2]=1E4;this[3]=1E4;this[4]=1E4;this[5]=1E4;this[6]=1E4;this[8]=1E4;this[9]=1E7;this[10]=1E7;this[11]=1E4;this[13]=1E4;this[16]=1E4;this[17]=1E4;this[18]=10;this[19]=1};D(Xg,Tg);var bh=function(a){if(a!="open"&&a!="moderated"&&a!="managed"&&a!="closed")a="moderated";this.policyType=a};D(bh,Df);bh.prototype.serialize=function(){var a={},b=this.yF();if(b){a.policyType=b;return a}else return k};bh.prototype.T=function(a){if(a&&a.policyType)this.policyType=a.policyType};
bh.prototype.VN=function(a){if(!this.mp){var b=new Cg;this.mp=b;var c=[{Ek:4,Yj:[[5,4],[9,4],[2,4],[10,4],[20,4],[12,4],[14,4],[15,4],[21,4]]},{Ek:3,Yj:[[5,2],[9,1],[2,4],[10,a?1:4],[20,4],[12,4],[14,4],[15,4],[21,3]]},{Ek:5,Yj:[[5,1],[9,1],[2,4],[10,1],[20,4],[12,4],[14,4],[15,4],[21,4]]},{Ek:1,Yj:[[1,1],[2,1],[5,1],[9,1],[10,1],[20,1],[11,1],[12,1],[14,1],[15,1],[21,1]]}];ch(b,c);var d=this.yF();if(d=="moderated"||d=="open"){c=[{Ek:1,Yj:[[2,3],[20,3],[5,2],[21,3]]}];ch(b,c)}if(d=="open"){c=[{Ek:1,
Yj:[[1,4],[2,4],[20,4],[5,4],[11,4],[21,4]]}];ch(b,c)}if(d=="managed"){c=[{Ek:4,Yj:[[5,4],[9,4],[2,6],[20,6],[10,4],[12,4],[14,1],[15,1],[21,6]]},{Ek:3,Yj:[[5,2],[9,1],[2,6],[20,6],[10,a?1:4],[12,4],[14,1],[15,1],[21,6]]},{Ek:5,Yj:[[5,1],[9,1],[2,4],[20,4],[10,1],[12,4],[14,4],[15,4],[21,4]]},{Ek:1,Yj:[[20,1],[2,1],[5,1],[21,1]]}];ch(b,c)}}return this.mp};bh.prototype.yF=function(){return this.policyType||k};N(bh,bh.prototype.yF,"policyType");
var eh=function(a,b,c,d){if(a){if(a.ig())return 4;if(b instanceof dh&&a.Cb())return 4}var f;var g=a,h=b,i=c,m=d;if(ja(h)){for(var n=4,o=0;o<h.length;o++){var p=eh(g,h[o],i);n=n==1||p==1?1:n==5||p==5?5:Math.min(n,p)}f=n}else{if(g&&!(g instanceof uf)||!(h instanceof S)||!la(i))e(new Error("bad params in getAccess"));var s=g?h.Oh(g.p()):1,u=h instanceof T&&h.ya(),v=new bh(h.nf()),x=v?v.VN(u):new Cg;if(s==6)f=4;else if(s==7){var y=fh(g,x,h,i,3,m),B=fh(g,x,h,i,5,m),G,M=y,R=B;if(M==bh.Xia)M=1.5;else if(M==
bh.oia)M=3.5;if(R==bh.Xia)R=1.5;else if(R==bh.oia)R=3.5;G=M<R?-1:M>R?1:0;f=G>0?y:B}else f=fh(g,x,h,i,s,m)}if(a&&a.Cb()&&f==1&&c==12)return 5;return f},fh=function(a,b,c,d,f,g){if(a&&!b.Ga()){var h=b.z(a.p()),i=h==4&&d==2,m=h==1,n=h==5&&d==12;if(i||m||n)return h}if(g&&c.Y9(g))return 5;var o=f+"-"+d,p=b.Ga()?k:b.z(o);return p||1},gh=function(a){var b=a.split("-");if(b.length==1)return k;for(var c in Jg)if(Jg[c]==b[0])return Jg[c];return k},ch=function(a,b){vb(b,function(c){vb(c.Yj,function(d){a.G(c.Ek+
"-"+d[0],d[1])})})};var hh=function(){};hh.prototype.pq=function(){return this.n("image")};hh.prototype.fj=function(){return this.n("thumbnail")};var ih=function(a){if(!w(a))e(new Error("nodeId not string"));this.bOa(a)};D(ih,Df);ih.prototype.n=function(a,b,c,d){var f=a in this,g,h;if(c&&f){g=ua();h="ts_"+a;var i=this[h];if(!i||g-i>=c)f=l}if(!f){var m;try{m=J(this.lg())}catch(n){if(!jh(n))e(n)}var o;o=m?b?ma(b)?b.call(m):m[b]():m.n(a):d;if(h)this[h]=g;this[a]=o}return this[a]};ih.prototype.rk=function(){return this.n("timestamp")};N(ih,ih.prototype.rk,"timestamp");ih.prototype.kB=function(a){this.timestamp=a};ih.prototype.lg=function(){return this.n("nodeId")};
N(ih,ih.prototype.lg,"nodeId");q=ih.prototype;q.bOa=function(a){this.nodeId=a};q.md=function(){return this.n("title",function(){return this.md()})};q.Rh=function(a){if(!r(this.ew)){var b=a||250;this.ew=mf(this.md(),b)||"Sem t\u00edtulo"}return this.ew};q.pq=function(){return this.n("image",function(){return this.pq()})};q.fj=function(){return this.n("thumbnail",function(){return this.fj()})};var kh=function(a,b){ih.call(this,a);this.type=b};D(kh,ih);var lh=function(a){ih.call(this,a)};D(lh,ih);
lh.prototype.kd=function(){return this.n("firstOwner",function(){var a=this.kd();return J(a)})};lh.prototype.ly=function(){var a=this;return this.n("firstOwnerName",function(){return a.kd().mb()})};N(lh,lh.prototype.ly,"firstOwnerName");lh.prototype.my=function(){var a=this;return this.n("firstOwnerUrl",function(){return a.kd().ik()})};N(lh,lh.prototype.my,"firstOwnerUrl");lh.prototype.Vn=function(){return this.n("knolUrl",function(){return this.ld().fa()})};N(lh,lh.prototype.Vn,"knolUrl");
lh.prototype.v5=function(){return this.n("knolDate",function(){return this.ld().BO()})};N(lh,lh.prototype.v5,"knolDate");lh.prototype.va=function(){return this.n("knolId",function(){return this.va()})};N(lh,lh.prototype.va,"knolId");var mh=function(a){ih.call(this,a)};D(mh,ih);mh.prototype.gk=function(){return J(this.lg())};mh.prototype.Yx=function(){return this.n("authorUrl",uf.prototype.ik)};N(mh,mh.prototype.Yx,"authorUrl");mh.prototype.mb=function(){var a=this.gk();return a?a.mb():k};
mh.prototype.Ot=function(){var a=this.gk();return a?a.Ot():this.n("disambiguation")};N(mh,mh.prototype.Ot,"disambiguation");mh.prototype.Jn=function(){var a=this.gk();if(a)if(a.Jn())return a.Jn();var b=this.Ot(),c=b.split("\n");return c};mh.prototype.FE=function(){return this.authorPosition||0};N(mh,mh.prototype.FE,"authorPosition");mh.prototype.b4=function(){var a=this.gk();return a?a.Gta():l};var nh=function(a){ih.call(this,a)};D(nh,lh);var oh=function(a){ih.call(this,a)};D(oh,ih);
oh.prototype.gk=function(){var a=J(this.lg());if(a){var b=a.gk();return b}else return k};oh.prototype.Yx=function(){return this.gk().ik()};oh.prototype.getDate=function(){return this.n("date",function(){return this.BO()})};N(oh,oh.prototype.getDate,"date");var ph=function(a){ih.call(this,a)};D(ph,lh);var qh=function(a){ih.call(this,a)};D(qh,ih);qh.prototype.lq=function(){return this.n("editorId",function(){return this.lq()})};N(qh,qh.prototype.lq,"editorId");
qh.prototype.wb=function(){return this.n("state",function(){return this.wb()})};N(qh,qh.prototype.wb,"state");qh.prototype.dy=function(){return this.n("contentVersion",function(){return this.dy()})};N(qh,qh.prototype.dy,"contentVersion");qh.prototype.Vt=function(){return this.n("knolContentVersion",function(){return this.Vt()})};N(qh,qh.prototype.Vt,"knolContentVersion");qh.prototype.ok=function(){return this.n("snippet",function(){return this.ok()})};N(qh,qh.prototype.ok,"snippet");
qh.prototype.Nt=function(){return this.n("diffCount",function(){return this.Nt()})};N(qh,qh.prototype.Nt,"diffCount");qh.prototype.Ga=function(){return!this.Nt()};qh.prototype.oF=function(){return this.n("magnitude",function(){return this.oF()})};N(qh,qh.prototype.oF,"magnitude");var rh=function(a){ih.call(this,a)};D(rh,ih);var sh=function(a){ih.call(this,a);this.BNa(k);this.YMa(0);this.gOa(j);this.Kv(k)};D(sh,mh);sh.prototype.BNa=function(a){this.gaiaId=a};Ff(sh,"gaiaId");sh.prototype.YMa=function(a){this.contribution=a};Ff(sh,"contribution");sh.prototype.pO=function(){return this.contribution};sh.prototype.gOa=function(a){this.paid=a};Ff(sh,"paid");sh.prototype.cxa=function(){return this.paid};sh.prototype.Kv=function(a){this.location=a};Ff(sh,"location");Ff(sh,"INVAL_FREQ");var th=function(){this.QOa(ua())};D(th,Df);th.prototype.serialize=function(){var a={},b=this.Et();if(b!=[]){a.timeCreated=this.Y6();a.showAds=this.Wr();for(var c=[],d=0;d<b.length;d++)c[d]=If(b[d]);a.allocations=c;return a}else return k};
th.prototype.T=function(a){if(a){if(this.Et().length!=0)e(new Error("cannot deserialize a map representation into an already populated Adsense object"));for(var b=a.allocations,c=0;b&&c<b.length;c++){var d=new uh;$d(d,b[c],j);this.kZ(d)}this.showAds=a.showAds;this.timeCreated=a.timeCreated}};th.prototype.Et=function(){this.allocations||(this.allocations=[]);return this.allocations};N(th,th.prototype.Et,"allocations");
th.prototype.kZ=function(a){this.allocations||(this.allocations=[]);this.allocations.push(a);this.showAds=j};th.prototype.Wr=function(){this.showAds||(this.showAds=l);return this.showAds};N(th,th.prototype.Wr,"showAds");th.prototype.HOa=function(a){this.showAds=a};th.prototype.Y6=function(){this.timeCreated||this.POa();return this.timeCreated};N(th,th.prototype.Y6,"timeCreated");th.prototype.QOa=function(a){this.timeCreated=a};th.prototype.POa=function(){this.timeCreated=ua()-24192E5};
var uh=function(a,b,c,d){this.nodeId=a;this.adSenseId=b;this.share=c||1;this.charitable=d};D(uh,Df);uh.prototype.lg=function(){return this.nodeId||k};N(uh,uh.prototype.lg,"nodeId");uh.prototype.Sx=function(){return this.adSenseId||k};N(uh,uh.prototype.Sx,"adSenseId");uh.prototype.zq=function(){this.share||(this.share=1);return this.share};N(uh,uh.prototype.zq,"share");uh.prototype.bua=function(){return Boolean(this.charitable)};N(uh,uh.prototype.bua,"charitable");
uh.prototype.qO=function(){return this.contributionLevel||k};N(uh,uh.prototype.qO,"contributionLevel");q=th.prototype;q.b6=function(a){if(!this.Wr())return k;var b=this.Nya(),c=this.zF(),d=this.yta(b,c);if(!d)return k;return d.qO()?this.qta(a||k,d.qO()):d.Sx()?d.Sx():d.lg()?this.h7(d.lg()):k};
q.qta=function(a,b){if(!(a instanceof T))e(new Error("adsense expected knolMeta"));a.w4(b);var c=a.w4(b,j);if(c.UV<=0)return k;for(var d=this.zF()*c.UV,f=0;f<c.bS.length;f++){var g=c.bS[f],h=g.pO();if(d<h)return this.h7(g.nodeId);d-=h}return k};
q.h7=function(a){var b=J({nodeId:a,type:uf});if(!b)return k;for(var c=b.En(),d=c.Et(),f=0,g=[],h=0;h<d.length;++h){var i=d[h];if(i.zq()>0&&i.Sx()){f+=i.zq();g.push([i.Sx(),i.zq()])}}if(f<=0)return k;var m=this.zF()*f;for(h=0;h<g.length;h++){var n=g[h];if(m<n[1])return n[0];m-=n[1]}return k};q.Nya=function(){for(var a=0,b=this.Et(),c=0;c<b.length;c++){var d=b[c];a+=Math.max(0,d.zq())}return a};
q.yta=function(a,b){if(a<=0)return k;b*=a;for(var c=this.Et(),d=0;d<c.length;d++){var f=c[d];if(b<f.zq())return f;b-=Math.max(0,f.zq())}return k};q.zF=function(){return this.rJa?this.rJa.zF():Ve()};var vh={"105":"Desculpe, mas o endere\u00e7o de e-mail fornecido n\u00e3o corresponde a uma conta do AdSense.  Voc\u00ea desejava criar uma nova conta em vez disso?","112":"O n\u00famero de telefone e o c\u00f3digo postal n\u00e3o correspondem \u00e0 conta do AdSense solicitada.","205":"Essa conta do AdSense foi rejeitada.","303":"O endere\u00e7o de e-mail fornecido j\u00e1 est\u00e1 em uso.  Voc\u00ea quis inscrever-se usando uma conta do AdSense existente?","313":"O url do site n\u00e3o \u00e9 um site v\u00e1lido.",
"315":"\u00c9 necess\u00e1rio aceitar os Termos e Condi\u00e7\u00f5es para criar uma nova conta do AdSense.","317":"O endere\u00e7o de e-mail fornecido j\u00e1 est\u00e1 em uso.  Voc\u00ea quis inscrever-se usando uma conta do AdSense existente?","321":"O endere\u00e7o de e-mail n\u00e3o \u00e9 v\u00e1lido.","323":"O c\u00f3digo postal n\u00e3o est\u00e1 em um formato v\u00e1lido.  Use o c\u00f3digo postal de cinco d\u00edgitos da sua conta.","324":"O n\u00famero de telefone n\u00e3o est\u00e1 em um formato v\u00e1lido.  Use os primeiros cinco d\u00edgitos do seu n\u00famero de telefone.",
"325":"\u00c9 necess\u00e1rio fornecer pelo menos o seu n\u00famero de telefone ou c\u00f3digo postal","327":"A regi\u00e3o n\u00e3o \u00e9 compat\u00edvel.","9999":"Publique pelo menos um knol ou uma cole\u00e7\u00e3o para se inscrever em uma nova conta do AdSense"};vh.tWa="9999";var wh=function(){this.ee={}};wh.prototype.gZ=function(a){if(a){var b=w(a)?Dd(a):a,c=gc(b);if(c.length==1&&!b[c[0]].name)b=b[c[0]];for(var d in b)this.ee[d]=b[d]}};wh.prototype.c4=function(){return gc(this.ee)};wh.prototype.SDa=function(a){return this.ee[a]&&!this.ee[a].notPromo};wh.prototype.serialize=function(){return Fd(this.ee)};var xh=function(a){if(!a)return"";return a.replace(/["\/\\&<>'.,*\s#:\(\)?]/g,"")};var yh=function(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0};yh.prototype.wa=function(){return new yh(this.x,this.y)};var zh=function(a,b){return new yh(a.x-b.x,a.y-b.y)};var Ah=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};Ah.prototype.wa=function(){return new Ah(this.top,this.right,this.bottom,this.left)};Ah.prototype.contains=function(a){var b;b=!this||!a?l:a instanceof Ah?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;return b};
Ah.prototype.expand=function(a,b,c,d){if(na(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};
var Bh=function(a,b){if(a==b)return j;if(!a||!b)return l;return a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left},Ch=function(a,b){if(b.x>=a.left&&b.x<=a.right){if(b.y>=a.top&&b.y<=a.bottom)return 0;return b.y<a.top?a.top-b.y:b.y-a.bottom}if(b.y>=a.top&&b.y<=a.bottom)return b.x<a.left?a.left-b.x:b.x-a.right;var c,d=new yh(b.x<a.left?a.left:a.right,b.y<a.top?a.top:a.bottom),f=b.x-d.x,g=b.y-d.y;return c=Math.sqrt(f*f+g*g)};var Dh=function(a,b){this.width=a;this.height=b},Eh=function(a,b){if(a==b)return j;if(!a||!b)return l;return a.width==b.width&&a.height==b.height};q=Dh.prototype;q.wa=function(){return new Dh(this.width,this.height)};q.Vla=function(){return this.width*this.height};q.c_=function(){return this.width/this.height};q.Ga=function(){return!this.Vla()};q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
q.AE=function(a){return this.width<=a.width&&this.height<=a.height};q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};q.scale=function(a){this.width*=a;this.height*=a;return this};q.kda=function(a){var b=this.c_()>a.c_()?a.width/this.width:a.height/this.height;return this.scale(b)};var Fh=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};q=Fh.prototype;q.wa=function(){return new Fh(this.left,this.top,this.width,this.height)};q.Bga=function(){var a=this.left+this.width,b=this.top+this.height;return new Ah(this.top,a,b,this.left)};
q.d9=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),f=Math.min(this.top+this.height,a.top+a.height);if(d<=f){this.left=b;this.top=d;this.width=c-b;this.height=f-d;return j}}return l};q.contains=function(a){return a instanceof Fh?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};
q.getSize=function(){return new Dh(this.width,this.height)};var Hh=function(a){return a*Math.PI/180};var Ih={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Nh=function(a){var b={};a=String(a);var c=a.charAt(0)=="#"?a:"#"+a;if(Jh.test(c)){b.vu=Kh(c);b.type="hex";return b}else{var d;a:{var f=a.match(Lh);if(f){var g=Number(f[1]),h=Number(f[2]),i=Number(f[3]);if(g>=0&&g<=255&&h>=0&&h<=255&&i>=0&&i<=255){d=[g,h,i];break a}}d=[]}if(d.length){b.vu=Mh(d[0],d[1],d[2]);b.type="rgb";return b}else if(Ih){var m=Ih[a.toLowerCase()];if(m){b.vu=m;b.type="named";return b}}}e(Error(a+" is not a valid color string"))},Oh=/#(.)(.)(.)/,Kh=function(a){if(!Jh.test(a))e(Error("'"+
a+"' is not a valid hex color"));if(a.length==4)a=a.replace(Oh,"#$1$1$2$2$3$3");return a.toLowerCase()},Ph=function(a){a=Kh(a);var b=parseInt(a.substr(1,2),16),c=parseInt(a.substr(3,2),16),d=parseInt(a.substr(5,2),16);return[b,c,d]},Mh=function(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||a<0||a>255||isNaN(b)||b<0||b>255||isNaN(c)||c<0||c>255)e(Error('"('+a+","+b+","+c+'") is not a valid RGB color'));var d=Qh(a.toString(16)),f=Qh(b.toString(16)),g=Qh(c.toString(16));return"#"+d+f+g},Jh=
/^#(?:[0-9a-f]{3}){1,2}$/i,Lh=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,Qh=function(a){return a.length==1?"0"+a:a};var Rh=function(){this.jD=this.yu=this.Es="";this.sB=l;this.Sz="";this.Rv=l};D(Rh,Df);var Sh=function(){return new Rh};q=Rh.prototype;q.serialize=function(){var a={};a.backgroundColor=this.Es;a.highlightColor=this.yu;a.bannerUrl=this.jD;a.showBanner=this.sB;a.logoUrl=this.Sz;a.showLogo=this.Rv;return a};q.T=function(a){if(a){this.Oda(a.backgroundColor||"");this.hea(a.highlightColor||"");this.NMa(a.bannerUrl||"");this.IOa(!!a.showBanner);this.pea(a.logoUrl||"");this.Kea(!!a.showLogo)}};q.Qta=function(){return this.Es};
q.Oda=function(a){this.Es=a?Th(a,this.Es):""};q.wva=function(){return this.yu};q.hea=function(a){this.yu=a?Th(a,this.yu):""};var Th=function(a,b){try{var c=Nh(a);return c.vu}catch(d){var f=C("knol.Branding");f.U("Invalid color: "+a);return b}};q=Rh.prototype;q.NMa=function(a){this.jD=a};q.IOa=function(a){this.sB=a};q.kwa=function(){return this.Sz};q.pea=function(a){this.Sz=a};q.jya=function(){return this.Rv};q.Kea=function(a){this.Rv=a};
q.tc=function(a){return this.Es==a.Es&&this.yu==a.yu&&this.sB==a.sB&&(!this.sB||this.jD==a.jD)&&this.Rv==a.Rv&&(!this.Rv||this.Sz==a.Sz)};var Uh=function(a,b,c,d,f,g,h){this.mc=a||"";this.OB=b||0;this.qA=c||0;this.Qw=d||"";this.AB=f||0;this.BB=g||"";this.Rd=!!h};D(Uh,Df);q=Uh.prototype;q.serialize=function(){var a={};a.knolId=this.va();a.timestamp=this.rk();a.order=this.dj();a.annotation=this.eq();a.submittedTimestamp=this.OP();a.submitterId=this.Uh();a.hidden=this.Qn();return a};q.T=function(a){if(a){this.Vf(a.knolId);this.kB(a.timestamp);this.JU(a.order);this.rU(a.annotation);this.SU(a.submittedTimestamp);this.WI(a.submitterId);this.GI(a.hidden)}};
q.va=function(){return this.mc};q.rk=function(){return this.OB};q.dj=function(){return this.qA};q.eq=function(){return this.Qw};q.OP=function(){return this.AB};q.Uh=function(){return this.BB};q.Qn=function(){return this.Rd};q.Vf=function(a){this.mc=a};q.kB=function(a){this.OB=a};q.JU=function(a){this.qA=a};q.rU=function(a){this.Qw=a};q.SU=function(a){this.AB=a};q.WI=function(a){this.BB=a};q.GI=function(a){this.Rd=!!a};q.ob=function(){return!!this.va()};
q.tc=function(a){return this.va()==a.va()&&this.dj()==a.dj()&&this.eq()==a.eq()&&this.Uh()==a.Uh()&&this.Qn()==a.Qn()};var Vh=function(){this.Ta={}};D(Vh,Df);var Wh=function(){return new Vh};q=Vh.prototype;q.serialize=function(){return cc(this.Ta,If)};q.T=function(a){for(var b in a){this.Ta[b]=new Uh;this.Ta[b].T(a[b])}};q.z=function(a){return this.Ta[a]||k};q.G=function(a,b){this.Ta[a]=b};q.qf=function(){return this.Ta};q.getSize=function(){var a=gc(this.Ta);return a.length};
q.G0=function(a){var b=this.z(a.va());if(!b)return l;return a.tc(b)};q.tc=function(a){var b=this.qf(),c=a.qf(),d=dc(b,this.G0,a);return d&&dc(c,this.G0,this)};var Xh=function(a,b,c,d){this.description=a||k;this.url=b||k;this.anchorText=c||k;this.pubmedId=d||k};D(Xh,Df);Xh.prototype.p=function(){var a=this.id||String(Math.floor(Math.random()*4294967295));return this.id=a};N(Xh,Xh.prototype.p,"id");Xh.prototype.Kf=function(){return this.description};N(Xh,Xh.prototype.Kf,"description");Xh.prototype.vU=function(a){this.description=a};Xh.prototype.fa=function(){return this.url};N(Xh,Xh.prototype.fa,"url");Xh.prototype.VOa=function(a){this.url=a};
Xh.prototype.dk=function(){return this.anchorText};N(Xh,Xh.prototype.dk,"anchorText");Xh.prototype.yMa=function(a){this.anchorText=a};Xh.prototype.Dy=function(){return this.pubmedId};N(Xh,Xh.prototype.Dy,"pubmedId");q=Xh.prototype;q.Era=function(a){return this.Kf()===a.Kf()&&this.fa()===a.fa()&&this.dk()===a.dk()&&this.Dy()===a.Dy()};q.tc=function(a){return this.Era(a)&&this.p()===a.p()};q.Sj=function(a){this.description=a.Kf();this.url=a.fa();this.anchorText=a.dk();this.id=a.p();this.pubmedId=a.Dy()};
q.serialize=function(){var a={};a.description=this.Kf();a.url=this.fa();a.anchorText=this.dk();a.id=this.p();a.pubmedId=this.Dy();return a};q.T=function(a){if(a){this.description=a.description||k;this.url=a.url||k;this.anchorText=a.anchorText||k;this.id=a.id||k;this.pubmedId=a.pubmedId||k}};var Yh=function(){this.citations=[]};D(Yh,Df);q=Yh.prototype;q.tc=function(a){return Rb(this.Pe(),a.Pe(),function(b,c){return b.tc(c)})};q.reset=function(){Eb(this.Pe())};
q.Ga=function(){return this.Pe().length>0};q.Sj=function(a){if(a){var b=a.citations,c=this.citations;Eb(this.citations);for(var d=b.length,f=0;f<d;f++){var g=new Xh;g.Sj(b[f]);c.push(g)}}};q.serialize=function(){var a={},b=this.Pe();if(b.length>0){for(var c=[],d=0;d<b.length;d++)c[d]=If(b[d]);a.citations=c;return a}else return k};
q.T=function(a){if(a){if(this.Pe().length!=0)e(new Error("cannot deserialize a map representation into an already populated References object"));var b=a.citations;if(b)for(var c=0;c<b.length;c++){var d=new Xh;d.T(b[c]);this.Lw(d)}}};q.Pe=function(){return this.citations||[]};N(Yh,Yh.prototype.Pe,"citations");q=Yh.prototype;q.Lw=function(a){this.Pe().push(a)};q.lsa=function(a){for(var b=this.Pe(),c=0;c<b.length;c++)if(b[c].p()==a.p())return c;return-1};
q.msa=function(a){var b=a-1,c=this.Pe();if(c.length<b)return k;return c[b].p()};q.pH=function(a,b,c,d){var f=this.Pe();if(f.length>a){var g=f[a];g.vU(b);g.VOa(c);g.yMa(d)}else e(new Error("Invalid index of the citation: "+a))};q.V1=function(a){var b=yb(this.Pe(),function(c,d,f){Db(a,f)||c.push(d);return c},[]);this.citations=b};
q.vJa=function(a){var b=xb(this.Pe(),function(d,f){var g=a[f+1]||Number.MAX_VALUE;return{citation:d,number:g}});rb.sort.call(b,function(d,f){return Sb(d.number,f.number)}||Sb);var c=xb(b,function(d){return d.citation});this.citations=c};var Zh=k,$h=k,ai=k,bi=k;var ci=function(a,b){if(a<0||a>=1)e(new Error("expected number in [0, 1): "+a));for(var c="",d=0;d<b;d++){a*=36;var f=Math.floor(a);c+=f.toString(36);a-=f}return c},di=/^(path\:)?\/?/,ei=function(a){var b=a.split("."),c={};c.webspace=b.shift();c.path=b.join("/");return c},fi=function(a){var b=a.split("."),c={};c.webspace=b.shift();c.path="";var d=b.length;if(d>1){for(var f=0;f<b.length-1;f++){if(f>0)c.path+="/";c.path+=b[f]}c.path+="."+b[b.length-1]}else c.path=b.join("/");return c},hi=function(a){if(!a.webspace||
!a.path)e(new Error("need webspace and path"));var b=a[gi.Uia].replace(di,"");b=b.replace(/\//g,".");var c=a[gi.UK]+"."+b;return c},ii=function(a){var b=a[gi.ps];return b},ji=function(a){a=a.replace(di,"");a=a.replace(/\//g,".");var b="knol."+a;return b};var ki=function(){this.Ch=[];this.tN=[];this.Dh=l;this.result=this.CB=k},li;q=ki.prototype;q.k=function(a,b){if(typeof a!="function")e("Callback must be a function");if(b)a=z(a,b);this.Ch.push(a);this.Dh&&this.CB&&this.TH(this.result)};q.w=function(a,b){if(typeof a!="function")e("Errback must be a function");if(b)a=z(a,b);this.tN.push(a);this.Dh&&!this.CB&&this.Mba(this.result)};q.sa=function(a){if(this.Dh)e("Deferred has already been called");this.CB=this.Dh=j;this.TH(a)};
q.TH=function(a){this.result=a;if(this.Ch.length){var b=this.Ch.shift();try{ib&&this.$t().F("Passing result to callback handler");var c=b(a)}catch(d){ib&&this.$t().U("Got error running callback with result: "+Se(a));this.Dh=l;this.Ma(d);return}if(c instanceof ki){ib&&this.$t().F("Callback returned Deferred, waiting for result");c.k(this.TH,this);c.w(this.Ma,this)}else if(this.Ch.length){ib&&this.$t().F(this.Ch.length+" callbacks remaining.");this.TH(c)}else this.result=c}};
q.Ma=function(a){ib&&this.$t().F("Got error: "+a,a);if(this.Dh)e("Deferred has already been called");this.Dh=j;this.CB=l;this.Mba(a)};q.Mba=function(a){this.result=a;var b;if(this.tN.length)for(;b=this.tN.shift();)try{b(a)}catch(c){}else ib&&this.$t().za("Unhandled error: "+a,a)};q.$t=function(){li||(li=C("goog.deferred.Deferred"));return li};var mi=function(){};mi.prototype.Np=l;mi.prototype.BG=function(){return this.Np};mi.prototype.l=function(){if(!this.Np){this.Np=j;this.o()}};mi.prototype.o=function(){};var ni=function(a,b){this.type=a;this.currentTarget=this.target=b};A(ni,mi);q=ni.prototype;q.o=function(){delete this.type;delete this.target;delete this.currentTarget};q.wo=l;q.rv=j;q.stopPropagation=function(){this.wo=j};q.preventDefault=function(){this.rv=l};var oi=function(a,b){a&&this.ec(a,b)};A(oi,ni);var pi=[1,4,2];q=oi.prototype;q.target=k;q.relatedTarget=k;q.offsetX=0;q.offsetY=0;q.clientX=0;q.clientY=0;q.screenX=0;q.screenY=0;q.button=0;q.keyCode=0;q.charCode=0;q.ctrlKey=l;q.altKey=l;q.shiftKey=l;q.metaKey=l;q.Kl=k;
q.ec=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(H)try{d=d.nodeName&&d}catch(f){d=k}}else if(c=="mouseover")d=a.fromElement;else if(c=="mouseout")d=a.toElement;this.relatedTarget=d;this.offsetX=a.offsetX!==undefined?a.offsetX:a.layerX;this.offsetY=a.offsetY!==undefined?a.offsetY:a.layerY;this.clientX=a.clientX!==undefined?a.clientX:a.pageX;this.clientY=a.clientY!==undefined?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.Kl=a;delete this.rv;delete this.wo};q.sz=function(a){return F?this.type=="click"?a==0:!!(this.Kl.button&pi[a]):this.Kl.button==a};q.stopPropagation=function(){this.wo=j;if(this.Kl.stopPropagation)this.Kl.stopPropagation();else this.Kl.cancelBubble=j};var qi=F&&!Ne("8");
oi.prototype.preventDefault=function(){this.rv=l;var a=this.Kl;if(a.preventDefault)a.preventDefault();else{a.returnValue=l;if(qi)try{if(a.ctrlKey||a.keyCode>=112&&a.keyCode<=123)a.keyCode=-1}catch(b){}}};oi.prototype.Xg=function(){return this.Kl};oi.prototype.o=function(){oi.f.o.call(this);this.relatedTarget=this.currentTarget=this.target=this.Kl=k};var ri=function(a,b){this.fr=b;this.Oe=[];this.fpa(a)};A(ri,mi);q=ri.prototype;q.gM=k;q.s2=k;q.bB=function(a){this.gM=a};q.Mf=function(){if(this.Oe.length)return this.Oe.pop();return this.vl()};q.Ye=function(a){this.Oe.length<this.fr?this.Oe.push(a):this.Dl(a)};q.fpa=function(a){if(a>this.fr)e(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Oe.push(this.vl())};q.vl=function(){return this.gM?this.gM():{}};
q.Dl=function(a){if(this.s2)this.s2(a);else if(ma(a.l))a.l();else for(var b in a)delete a[b]};q.o=function(){ri.f.o.call(this);for(var a=this.Oe;a.length;)this.Dl(a.pop());delete this.Oe};var si=function(){},ti=0;q=si.prototype;q.ia=0;q.mv=l;q.DL=l;q.ec=function(a,b,c,d,f,g){if(ma(a))this.v9=j;else if(a&&a.handleEvent&&ma(a.handleEvent))this.v9=l;else e(Error("Invalid listener argument"));this.Uu=a;this.Qba=b;this.src=c;this.type=d;this.ax=!!f;this.Jq=g;this.DL=l;this.ia=++ti;this.mv=l};q.handleEvent=function(a){if(this.v9)return this.Uu.call(this.Jq||this.src,a);return this.Uu.handleEvent.call(this.Uu,a)};var ui,vi,wi,xi,yi,zi,Ai,Bi,Ci,Di,Ei;
(function(){function a(){return{$:0,wj:0}}function b(){return[]}function c(){var s=function(u){return h.call(s.src,s.ia,u)};return s}function d(){return new si}function f(){return new oi}var g=Gg&&!(fb(Hg,"5.7")>=0),h;zi=function(s){h=s};if(g){ui=function(){return i.Mf()};vi=function(s){i.Ye(s)};wi=function(){return m.Mf()};xi=function(s){m.Ye(s)};yi=function(){return n.Mf()};Ai=function(){n.Ye(c())};Bi=function(){return o.Mf()};Ci=function(s){o.Ye(s)};Di=function(){return p.Mf()};Ei=function(s){p.Ye(s)};
var i=new ri(0,600);i.bB(a);var m=new ri(0,600);m.bB(b);var n=new ri(0,600);n.bB(c);var o=new ri(0,600);o.bB(d);var p=new ri(0,600);p.bB(f)}else{ui=a;vi=da;wi=b;xi=da;yi=c;Ai=da;Bi=d;Ci=da;Di=f;Ei=da}})();var Fi={},Gi={},Hi={},Ii="on",Ji={},U=function(a,b,c,d,f){if(b)if(ja(b)){for(var g=0;g<b.length;g++)U(a,b[g],c,d,f);return k}else{var h=!!d,i=Gi;b in i||(i[b]=ui());i=i[b];if(!(h in i)){i[h]=ui();i.$++}i=i[h];var m=qa(a),n,o;i.wj++;if(i[m]){n=i[m];for(g=0;g<n.length;g++){o=n[g];if(o.Uu==c&&o.Jq==f){if(o.mv)break;return n[g].ia}}}else{n=i[m]=wi();i.$++}var p=yi();p.src=a;o=Bi();o.ec(c,p,a,b,h,f);var s=o.ia;p.ia=s;n.push(o);Fi[s]=o;Hi[m]||(Hi[m]=wi());Hi[m].push(o);if(a.addEventListener){if(a==ba||
!a.y1)a.addEventListener(b,p,h)}else a.attachEvent(Ki(b),p);return s}else e(Error("Invalid event type"))},Li=function(a,b,c,d,f){if(ja(b)){for(var g=0;g<b.length;g++)Li(a,b[g],c,d,f);return k}var h=U(a,b,c,d,f),i=Fi[h];i.DL=j;return h},Mi=function(a,b,c,d,f){if(ja(b)){for(var g=0;g<b.length;g++)Mi(a,b[g],c,d,f);return k}var h=!!d,i=Ni(a,b,h);if(!i)return l;for(g=0;g<i.length;g++)if(i[g].Uu==c&&i[g].ax==h&&i[g].Jq==f)return Oi(i[g].ia);return l},Oi=function(a){if(!Fi[a])return l;var b=Fi[a];if(b.mv)return l;
var c=b.src,d=b.type,f=b.Qba,g=b.ax;if(c.removeEventListener){if(c==ba||!c.y1)c.removeEventListener(d,f,g)}else c.detachEvent&&c.detachEvent(Ki(d),f);var h=qa(c),i=Gi[d][g][h];if(Hi[h]){var m=Hi[h];Hb(m,b);m.length==0&&delete Hi[h]}b.mv=j;i.vaa=j;Pi(d,g,h,i);delete Fi[a];return j},Pi=function(a,b,c,d){if(!d.qo)if(d.vaa){for(var f=0,g=0;f<d.length;f++)if(d[f].mv){var h=d[f].Qba;h.src=k;Ai(h);Ci(d[f])}else{if(f!=g)d[g]=d[f];g++}d.length=g;d.vaa=l;if(g==0){xi(d);delete Gi[a][b][c];Gi[a][b].$--;if(Gi[a][b].$==
0){vi(Gi[a][b]);delete Gi[a][b];Gi[a].$--}if(Gi[a].$==0){vi(Gi[a]);delete Gi[a]}}}},Qi=function(a,b,c){var d=0,f=a==k,g=b==k,h=c==k;c=!!c;if(f)ac(Hi,function(p){for(var s=p.length-1;s>=0;s--){var u=p[s];if((g||b==u.type)&&(h||c==u.ax)){Oi(u.ia);d++}}});else{var i=qa(a);if(Hi[i])for(var m=Hi[i],n=m.length-1;n>=0;n--){var o=m[n];if((g||b==o.type)&&(h||c==o.ax)){Oi(o.ia);d++}}}return d},Ni=function(a,b,c){var d=Gi;if(b in d){d=d[b];if(c in d){d=d[c];var f=qa(a);if(d[f])return d[f]}}return k},Ri=F?"focusin":
"DOMFocusIn",Ki=function(a){if(a in Ji)return Ji[a];return Ji[a]=Ii+a},Ti=function(a,b,c,d){var f=Gi;if(b in f){f=f[b];if(c in f)return Si(f[c],a,b,c,d)}return j},Si=function(a,b,c,d,f){var g=1,h=qa(b);if(a[h]){a.wj--;var i=a[h];if(i.qo)i.qo++;else i.qo=1;try{for(var m=i.length,n=0;n<m;n++){var o=i[n];if(o&&!o.mv)g&=Ui(o,f)!==l}}finally{i.qo--;Pi(c,d,h,i)}}return Boolean(g)},Ui=function(a,b){var c=a.handleEvent(b);a.DL&&Oi(a.ia);return c},Vi=function(a,b){if(!Fi[a])return j;var c=Fi[a],d=c.type,f=
Gi;if(!(d in f))return j;f=f[d];var g,h;if(F){var i=b||ca("window.event"),m=j in f,n=l in f;if(m){if(i.keyCode<0||i.returnValue!=undefined)return j;a:{var o=i,p=l;if(o.keyCode==0)try{o.keyCode=-1;break a}catch(s){p=j}if(p||o.returnValue==undefined)o.returnValue=j}}var u=Di();u.ec(i,this);g=j;try{if(m){for(var v=wi(),x=u.currentTarget;x;x=x.parentNode)v.push(x);h=f[j];h.wj=h.$;for(var y=v.length-1;!u.wo&&y>=0&&h.wj;y--){u.currentTarget=v[y];g&=Si(h,v[y],d,j,u)}if(n){h=f[l];h.wj=h.$;for(y=0;!u.wo&&
y<v.length&&h.wj;y++){u.currentTarget=v[y];g&=Si(h,v[y],d,l,u)}}}else g=Ui(c,u)}finally{if(v){v.length=0;xi(v)}u.l();Ei(u)}return g}var B=new oi(b,this);try{g=Ui(c,B)}finally{B.l()}return g};zi(Vi);var Wi=/\s*;\s*/,Xi=function(a,b){for(var c=a+"=",d=String(document.cookie).split(Wi),f=0,g;g=d[f];f++)if(g.indexOf(c)==0)return g.substr(c.length);return b};var Yi=function(){};A(Yi,mi);q=Yi.prototype;q.y1=j;q.mT=k;q.wF=function(){return this.mT};q.RI=function(a){this.mT=a};q.addEventListener=function(a,b,c,d){U(this,a,b,c,d)};q.removeEventListener=function(a,b,c,d){Mi(this,a,b,c,d)};
q.dispatchEvent=function(a){var b;var c=a;if(w(c))c=new ni(c,this);else if(c instanceof ni)c.target=c.target||this;else{var d=c;c=new ni(c.type,this);qc(c,d)}var f=1,g,h=c.type,i=Gi;if(h in i){i=i[h];var m=j in i,n;if(m){g=[];for(var o=this;o;o=o.wF())g.push(o);n=i[j];n.wj=n.$;for(var p=g.length-1;!c.wo&&p>=0&&n.wj;p--){c.currentTarget=g[p];f&=Si(n,g[p],c.type,j,c)&&c.rv!=l}}var s=l in i;if(s){n=i[l];n.wj=n.$;if(m)for(p=0;!c.wo&&p<g.length&&n.wj;p++){c.currentTarget=g[p];f&=Si(n,g[p],c.type,l,c)&&
c.rv!=l}else for(var u=this;!c.wo&&u&&n.wj;u=u.wF()){c.currentTarget=u;f&=Si(n,u,c.type,l,c)&&c.rv!=l}}b=Boolean(f)}else b=j;return b};q.o=function(){Yi.f.o.call(this);Qi(this);this.mT=k};var $i=function(a,b){this.Pq=a||1;this.NB=b||Zi;this.yL=z(this.kRa,this);this.WR=ua()};A($i,Yi);$i.prototype.Ax=l;var Zi=ba.window,aj=0.8;q=$i.prototype;q.Hd=k;q.setInterval=function(a){this.Pq=a;if(this.Hd&&this.Ax){this.stop();this.start()}else this.Hd&&this.stop()};q.kRa=function(){if(this.Ax){var a=ua()-this.WR;if(a>0&&a<this.Pq*aj)this.Hd=this.NB.setTimeout(this.yL,this.Pq-a);else{this.Rqa();if(this.Ax){this.Hd=this.NB.setTimeout(this.yL,this.Pq);this.WR=ua()}}}};q.Rqa=function(){this.dispatchEvent("tick")};
q.start=function(){this.Ax=j;if(!this.Hd){this.Hd=this.NB.setTimeout(this.yL,this.Pq);this.WR=ua()}};q.stop=function(){this.Ax=l;if(this.Hd){this.NB.clearTimeout(this.Hd);this.Hd=k}};q.o=function(){$i.f.o.call(this);this.stop();delete this.NB};var bj=function(a,b,c){if(ma(a)){if(c)a=z(a,c)}else if(a&&typeof a.handleEvent=="function")a=z(a.handleEvent,a);else e(Error("Invalid listener argument"));return b>2147483647?-1:Zi.setTimeout(a,b||0)},fj=function(a){Zi.clearTimeout(a)};var gj=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var hj=function(){if(H){this.jn={};this.dK={};this.nJ=[]}};q=hj.prototype;q.u=C("goog.net.xhrMonitor");q.La=H;q.ba=function(a){this.La=H&&a};q.WH=function(a){if(this.La){var b=w(a)?a:na(a)?qa(a):"";this.u.xE("Pushing context: "+a+" ("+b+")");this.nJ.push(b)}};q.OH=function(){if(this.La){var a=this.nJ.pop();this.u.xE("Popping context: "+a);this.RRa(a)}};q.kDa=function(a){if(!this.La)return j;var b=this.jn[w(a)?a:na(a)?qa(a):""];this.u.Kc("Context is safe : "+a+" - "+b);return!b};
q.MFa=function(a){if(this.La){var b=qa(a);this.u.Kc("Opening XHR : "+b);for(var c=0;c<this.nJ.length;c++){var d=this.nJ[c];this.WC(this.jn,d,b);this.WC(this.dK,b,d)}}};q.LFa=function(a){if(this.La){var b=qa(a);this.u.Kc("Closing XHR : "+b);delete this.dK[b];for(var c in this.jn){Hb(this.jn[c],b);this.jn[c].length==0&&delete this.jn[c]}}};
q.RRa=function(a){var b=this.dK[a],c=this.jn[a];if(b&&c){this.u.xE("Updating dependent contexts");vb(b,function(d){vb(c,function(f){this.WC(this.jn,d,f);this.WC(this.dK,f,d)},this)},this)}};q.WC=function(a,b,c){a[b]||(a[b]=[]);Db(a[b],c)||a[b].push(c)};var ij=new hj;var kj=function(){return jj()},jj=k,lj=k,mj=k,oj=function(){var a=nj();return a?new ActiveXObject(a):new XMLHttpRequest},pj=function(){var a=nj(),b={};if(a){b[0]=j;b[1]=j}return b},qj=pj;jj=oj;lj=qj;var rj=mj=k,nj=function(){if(!rj&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);return rj=c}catch(d){}}e(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"))}return rj};var sj=function(){this.headers=new Bc};A(sj,Yi);sj.prototype.u=C("goog.net.XhrIo");var tj=[],vj=function(a,b,c,d,f,g){var h=new sj;tj.push(h);b&&U(h,"complete",b);U(h,"ready",ta(uj,h));g&&h.aJ(g);h.send(a,c,d,f)},uj=function(a){a.l();Hb(tj,a)};q=sj.prototype;q.Id=l;q.oc=k;q.cK=k;q.qm="";q.m$="";q.xg=0;q.po="";q.uN=l;q.oG=l;q.ZQ=l;q.Lq=l;q.Uk=0;q.Wo=k;q.aJ=function(a){this.Uk=Math.max(0,a)};
q.send=function(a,b,c,d){if(this.Id)e(Error("[goog.net.XhrIo] Object is active with another request"));var f=b||"GET";this.qm=a;this.po="";this.xg=0;this.m$=f;this.uN=l;this.Id=j;this.oc=this.Opa();this.cK=mj||(mj=lj());ij.MFa(this.oc);this.oc.onreadystatechange=z(this.$aa,this);try{this.u.Kc(this.Ol("Opening Xhr"));this.ZQ=j;this.oc.open(f,a,j);this.ZQ=l}catch(g){this.u.Kc(this.Ol("Error opening Xhr: "+g.message));this.ut(5,g);return}var h=c||"",i=this.headers.wa();d&&yc(d,function(n,o){i.G(o,n)});
f=="POST"&&!i.de("Content-Type")&&i.G("Content-Type","application/x-www-form-urlencoded;charset=utf-8");yc(i,function(n,o){this.oc.setRequestHeader(o,n)},this);try{if(this.Wo){Zi.clearTimeout(this.Wo);this.Wo=k}if(this.Uk>0){this.u.Kc(this.Ol("Will abort after "+this.Uk+"ms if incomplete"));this.Wo=Zi.setTimeout(z(this.wh,this),this.Uk)}this.u.Kc(this.Ol("Sending request"));this.oG=j;this.oc.send(h);this.oG=l}catch(m){this.u.Kc(this.Ol("Send error: "+m.message));this.ut(5,m)}};q.Opa=function(){return new kj};
q.dispatchEvent=function(a){if(this.oc){ij.WH(this.oc);try{return sj.f.dispatchEvent.call(this,a)}finally{ij.OH()}}else return sj.f.dispatchEvent.call(this,a)};q.wh=function(){if(typeof aa!="undefined")if(this.oc){this.po="Timed out after "+this.Uk+"ms, aborting";this.xg=8;this.u.Kc(this.Ol(this.po));this.dispatchEvent("timeout");this.abort(8)}};q.ut=function(a,b){this.Id=l;if(this.oc){this.Lq=j;this.oc.abort();this.Lq=l}this.po=b;this.xg=a;this.l2();this.wD()};
q.l2=function(){if(!this.uN){this.uN=j;this.dispatchEvent("complete");this.dispatchEvent("error")}};q.abort=function(a){if(this.oc){this.u.Kc(this.Ol("Aborting"));this.Id=l;this.Lq=j;this.oc.abort();this.Lq=l;this.xg=a||7;this.dispatchEvent("complete");this.dispatchEvent("abort");this.wD()}};q.o=function(){if(this.oc){if(this.Id){this.Id=l;this.Lq=j;this.oc.abort();this.Lq=l}this.wD(j)}sj.f.o.call(this)};q.$aa=function(){!this.ZQ&&!this.oG&&!this.Lq?this.NHa():this.Zaa()};q.NHa=function(){this.Zaa()};
q.Zaa=function(){if(this.Id)if(typeof aa!="undefined")if(this.cK[1]&&this.Ey()==4&&this.qk()==2)this.u.Kc(this.Ol("Local request error detected and ignored"));else if(this.oG&&this.Ey()==4)Zi.setTimeout(z(this.$aa,this),0);else{this.dispatchEvent("readystatechange");if(this.vz()){this.u.Kc(this.Ol("Request complete"));this.Id=l;if(this.yk()){this.dispatchEvent("complete");this.dispatchEvent("success")}else{this.xg=6;this.po=this.P6()+" ["+this.qk()+"]";this.l2()}this.wD()}}};
q.wD=function(a){if(this.oc){var b=this.oc,c=this.cK[0]?da:k;this.cK=this.oc=k;if(this.Wo){Zi.clearTimeout(this.Wo);this.Wo=k}if(!a){ij.WH(b);this.dispatchEvent("ready");ij.OH()}ij.LFa(b);try{b.onreadystatechange=c}catch(d){this.u.za("Problem encountered resetting onreadystatechange: "+d.message)}}};q.me=function(){return this.Id};q.vz=function(){return this.Ey()==4};q.yk=function(){switch(this.qk()){case 0:case 200:case 204:case 304:return j;default:return l}};
q.Ey=function(){return this.oc?this.oc.readyState:0};q.qk=function(){try{return this.Ey()>2?this.oc.status:-1}catch(a){this.u.U("Can not get status: "+a.message);return-1}};q.P6=function(){try{return this.Ey()>2?this.oc.statusText:""}catch(a){this.u.Kc("Can not get status: "+a.message);return""}};q.B5=function(){return String(this.qm)};q.nk=function(){return this.oc?this.oc.responseText:""};q.mk=function(){return this.oc?Dd(this.oc.responseText):undefined};
q.getResponseHeader=function(a){return this.oc&&this.vz()?this.oc.getResponseHeader(a):undefined};q.uy=function(){return this.xg};q.y5=function(){return w(this.po)?this.po:String(this.po)};q.Ol=function(a){return a+" ["+this.m$+" "+this.qm+" "+this.qk()+"]"};var wj=function(){this.headers=new Bc};A(wj,sj);var xj=function(a,b,c,d,f,g,h){var i=new wj;b&&U(i,"success",b);if(c){U(i,"error",c);U(i,"timeout",c);U(i,"abort",c)}U(i,"ready",i.l,l,i);i.send(a,d,f,g,h)};t("gsites.Xhr.send",xj,void 0);wj.prototype.send=function(a,b,c,d,f){var g=new Md(a),h=Xi("jotxtok");h&&g.P("jot.xtok",h);if(f)for(var i in f)g.P(i,f[i]);wj.f.send.call(this,g.toString(),b,c,d)};var yj,zj=function(){return C("knol.ServerProxy")},Aj=["blockUser","blockUserFromDiscussion","getAdSenseLocaleList","getBlockList","isBlocked","setAnalyticsCode","setLocalePreferences","knol.ui.DiscussionView.isBlockable","knol.ui.Knol.getPubmedCitation","knol.ui.Knol.getRRNCitation","setNodeLicense"],Bj=l,Ej=function(a,b,c,d){zj();var f=new Nd;f.add("node",a);f.add("method",b);f.add("args",of(If(c)));"about to post to args: "+f.z("args");var g=Cj(a);return Dj(f,g,d,Bj)},V=function(a,b,c,d){zj();
var f=new Nd;f.add("func",a);f.add("args",of(If(b)));"about to post to args: "+f.z("args");var g=d||Cj(eg());return Dj(f,g,c,Bj)},Fj=function(){var a=new window.jstiming.Timer;a.name="rpc";return a},Gj=function(a,b){a.tick("ol");yf(a,{rpc:b})},Cj=function(a){zj();var b=eg();a||(a=b);var c=a?ei(a).webspace:"knol",d=new Md(document.location.href),f=d.Nf("webspace");if(f)c=f;var g=l;try{g=P()instanceof Hj}catch(h){e(new Error("Exception when trying to get the user node, node not in cache"))}if(a==b&&
g)c="knol";return c},Ij=function(a){if(a&&a.qk()==302){var b=a.getResponseHeader("Location"),c=function(d){return d.replace(/\?.*/,"")};if(c(qf())==c(b)){window.location=qf();return j}}return l};var Jj=function(a,b,c,d){if(!(a instanceof S))if(a)e(new Error("object of wrong type"));else e(new Error("object is not valid and is: "+a));if(!w(b)||c&&!w(c)||!ma(d))e(new Error("bad parameters to new Relation"));this.rb=a;this.vj=b;this.jR=c;if(!d)e(new Error("no inverse type"));this.NYa=d;this.Bc=k},Kj={FW:"about",Rha:"acknowledgedGroups",$ha:"attachedTo",aia:"attachments",NW:"authored",jK:"authors",ria:"contributed",$W:"contributors",iX:"discussed",rK:"discussions",pY:"pendingDiscussed",EC:"pendingDiscussions",
aVa:"editing",vVa:"groups",Mia:"knolTemplates",fWa:"members",cY:"messagesAbout",Pia:"messagesReceived",Qia:"messagesSent",nY:"owned",HK:"owners",vY:"recipients",LK:"relatedKnols",TY:"unrelatedKnols",zY:"reviewAbout",$ia:"reviewTemplates",Kg:"reviews",DY:"sender",zh:"suggestions",nja:"suggested",wja:"translations",UW:"bunched",qia:"containingBunch"},Lj="properties.",Mj={},Nj=function(a,b,c,d,f,g,h,i){if(!w(a)||!ma(b)||!ma(g)||c&&!ma(c)||d==3||d!=0&&i!=0)e(new Error("bad params declaring relation "+
a));this.fA=a;this.FGa=b;this.ZJa=c;this.ega=d;Mj[a]=this;this.GGa=g;i!=3&&g&&a&&Gf(g,Lj+a);if(f){this.raa=f;this.vZa=h;this.EQa=i;f in Mj||new Nj(f,g,h,i,a,b,c,d)}else if(i!=3)e(new Error("expected storage type of NONE"))};Nj.prototype.uGa=function(a){if(!(a instanceof this.GGa))e(new Error("node is wrong type for relation "+this.fA));var b=this.ZJa||Jj,c=new b(a,this.fA,this.raa,this.FGa);c.a2(this.fA);return c};q=Jj.prototype;q.GR=function(){return this.PE().ega==2};
q.f2=function(a){this.GR()&&this.Ab("this is a remote relation, cannot call "+a)};q.Xl=function(){return this.Bc};q.mb=function(){return this.vj};q.j1=function(a){return new this.Hk(a)};q.Hk=ih;q.a2=function(a){var b=this.Hk;this.Bc=this.rb.kc(a,function(){return new Cg(b)},j)};q.DSa=function(a){var b=this.PE();if(b.ega==1||b.EQa==1){var c=ei(this.rb.p()).webspace,d=ei(a).webspace;c!=d&&this.Ab("this is a local relation, cannot add "+a)}};
q.add=function(a){this.f2("add");return this.gba(a,function(b,c,d){b.DSa(d);var f=b.j1(d);f&&!(f instanceof ih)&&this.Ab("add type error");c.G(d,f);f.kB(ua());return f})};q.remove=function(a){this.f2("remove");this.gba(a,Oj)};var Oj=function(a,b,c){b.remove(c)};q=Jj.prototype;q.gba=function(){return k};q.Ova=function(a){return Pj(a,this.jR)};q.fb=function(){yc(this.dc(),function(a){this.remove(a)},this)};q.archive=function(){};q.save=function(){};
q.replace=function(a){this.rb.kv&&delete this.rb.kv[this.vj];this.rb.zj(this.vj,a)};var Pj=function(a,b){if(!(a instanceof S))e(new Error("get relation "+b+" type error, expected Node, saw "+a));if(!a.kv)a.kv=[];var c=a.kv[b];if(!c){if(!(b in Mj))e(new Error('nonexistent relation "'+b+'"'));c=Mj[b].uGa(a);if(!(c instanceof Jj))e(new Error("relation "+b+", not derived from knol.Relation"));a.kv[b]=c}return c};q=Jj.prototype;q.PE=function(){return Mj[this.vj]};q.contains=function(a){return this.Xl().de(a)};
q.Ga=function(){return this.Xl().Ga()};q.r6=function(a){return this.Xl().z(a,k)};q.na=function(){return this.Xl().na()};q.dc=function(){return this.Xl().Bb()};q.wy=function(){var a=[];yc(this.dc(),function(b){a.push(J(b))},this);return a};q.oya=function(a,b,c){var d=this.Xl().Dd();d=a?Qj(d,a):this.sort(d);return d=d.slice(b||0,c||d.length)};q.sort=function(a){return a};q.$i=function(){var a=this.dc();return a.length>0?a[0]:k};q.mva=function(){var a=this.wy();return a.length>0?a[0]:k};
q.Ab=function(a){a+=", relation = "+this.vj;a+=this.jR?", inverse = "+this.jR:" [one sided]";a+="\nRelation: "+Se(this);e(new Error(a))};q.fSa=function(a,b){w(b)||this.Ab("invalid search result");var c=new Cg(this.Hk),d=b,f=c,g=Ef();if(d)try{var h=Dd(d);Kf(f,h)}catch(i){g.U("could not parse and mix: "+d,i)}for(var m=this.Bc,n=c.Bb(),o=0;o<n.length;o++){var p=n[o],s=m.z(p);if(r(s)){var u=c.z(p);r(u)&&$d(u,s,j)}}};q.Iya=function(){return"rel_ts_"+this.PE().fA};
q.Exa=function(){var a=l;if(this.GR())a=1E4;return a};q.hv=function(){var a=this.rb.p();C("knol.Relation");var b=this.PE(),c=b.fA,d=b.raa,f=this.GR(),g=this.Exa(),h,i;if(la(g)){h=ua();i=this.Iya();var m=this.rb.n(i);if(m&&h-m<g)return this}else return this;var n=function(s){if(f){this.rb.JOa(c,s);this.a2(c);this.rb.I_(c,this)}else this.fSa(c,s);i&&this.rb.setProperty(i,h);return this},o=f?"knol.Relation.nodeInRelation":"knol.Relation.nodeHasRelation",p=V(o,[a,c,d]);p.k(n,this);return p};
var Rj=function(a,b){return a.sort(function(c,d){var f=d.rk()-c.rk();return b?-f:f})},Qj=function(a,b){var c=a.length;return a.sort(function(d,f){var g=b in d?d[b]:c,h=b in f?f[b]:c;return g-h})},Sj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Sj,Jj);Sj.prototype.Hk=mh;Sj.prototype.dc=function(){for(var a=this.oya("authorPosition"),b=[],c=0;c<a.length;c++)b.push(a[c].nodeId);return b};var Tj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Tj,Jj);
Tj.prototype.j1=function(a){var b=J(a);if(b.type==undefined)e(new Error("type error"));return new kh(a,b.type)};var Uj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Uj,Jj);Uj.prototype.Hk=oh;var Vj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Vj,Jj);Vj.prototype.Hk=nh;var Wj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Wj,Jj);Wj.prototype.Hk=ph;var Xj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Xj,Jj);Xj.prototype.Hk=sh;var Yj=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(Yj,Jj);Yj.prototype.Hk=qh;
Yj.prototype.sort=Rj;var Zj=function(a,b){var c=bf(),d=b||"/system/knol/images/";d=d.replace(/^\//,"");return c+"knol/"+d+a},$j=function(a,b){var c=encodeURIComponent||escape,d=bf(),f="_/captcha?";f+="captchaEmail="+c(a);f+="&captchaToken="+c(b);return d+"knol/"+f},ak=function(){return Zj("cleardot.gif","/system/app/images/")},bk=Ye["/system/app/embed/icons/icon-cal-address.png"],ck=Ye["/system/static_files/ifpc_relay.html"],dk=function(a,b){var c=b||l,d=bf(),f=d+"knol/"+a;if(c)f+=og();return f},ek=function(a){var b;
try{b=new Md(a)}catch(c){return k}var d=b.mg();if(!d)return k;d=d.split("/");var f=d.length;if(f<6)return k;var g=5,h=d[g-1],i=d[g];if(g+1<f)i+="/"+d[g+1];return h+"."+i},fk=function(a){var b;try{b=new Md(a)}catch(c){return k}var d=b.mg();d=d.split("/");if(d.length<4)return k;for(var f=b.Lh()+"/"+d[1]+"/-/-",g=2;g<d.length;g++)f+="/"+d[g];return ek(f)};var gk=function(a){ja(a)||(a=[]);this.Pb=a||[]};D(gk,Df);q=gk.prototype;q.serialize=function(){var a={};a.omit=this.rF();return a};q.T=function(a){a&&this.NI(a.omit)};q.rF=function(){return this.Pb||[]};q.NI=function(a){this.Pb=a||[]};q.contains=function(a){return Db(this.rF(),a)};
var ik=function(a,b){for(var c=0;c<hk.length;c++){var d=hk[c];if(a.contains(d.value)!=b.contains(d.value))return l}return j},jk=new gk([9,8]),hk=[{C:"Numera\u00e7\u00e3o",value:1},{C:"Snippet",value:2},{C:"Autor",value:3},{C:"Miniatura",value:4},{C:"Classifica\u00e7\u00f5es com estrelas",value:5},{C:"Estat\u00edsticas (como visualiza\u00e7\u00f5es de p\u00e1gina)",value:6},{C:"Informa\u00e7\u00f5es sobre a \u00faltima modifica\u00e7\u00e3o",value:7},{C:"Pr\u00eamios e emblemas",value:8},{C:"N\u00famero da vers\u00e3o",
value:9},{C:"Data da inclus\u00e3o (na cole\u00e7\u00e3o)",value:10}];var kk=function(){};D(kk,Df);var lk=10;kk.prototype.fOa=function(a){this.ownerId=a};kk.prototype.a6=function(){return this.ownerId||k};N(kk,kk.prototype.a6,"ownerId");kk.prototype.pi=function(a){this.type=a};kk.prototype.ka=function(){return this.type||k};N(kk,kk.prototype.ka,"type");kk.prototype.refresh=function(){this.expirationTime=ua()+lk*60*1E3};kk.prototype.gva=function(){return this.expirationTime||k};N(kk,kk.prototype.gva,"expirationTime");kk.prototype.Qra=function(){this.expirationTime=ua()};
kk.prototype.lv=function(a,b){if(this.a6()==a&&this.ka()==b){this.fOa(k);this.pi(k);this.Qra();return j}else return l};var mk=function(){};D(mk,Df);mk.prototype.serialize=function(){if(!this.RDa())return k;var a={};a.label=this.sy();a.country=this.sO();a.language=this.getLanguage();return a};mk.prototype.T=function(a){if(a){if(w(a))a=Dd(a);this.label=a.label;this.country=a.country;this.language=a.language}};mk.prototype.RDa=function(a,b){var c=this.sy();if(c&&a)c=this.getLanguage()==a;if(c&&b)c=this.sO()==b;return!!c};mk.prototype.sy=function(){return this.label||""};N(mk,mk.prototype.sy,"label");
mk.prototype.sO=function(){return this.country||""};N(mk,mk.prototype.sO,"country");mk.prototype.getLanguage=function(){return this.language||""};N(mk,mk.prototype.getLanguage,"language");var nk=function(){};D(nk,Df);var ok={$Wa:"revisions",zh:"suggestions",Kg:"reviews",Ym:"comments",XWa:"replies"};nk.prototype.serialize=function(){var a={};if(this.yy()){var b=this.yy();a.notificationSettings=b.serialize();return a}else return k};nk.prototype.T=function(a){if(a){var b=new Cg;b.T(a.notificationSettings);b.Ga()||(this.notificationSettings=b)}};nk.prototype.yy=function(){return this.notificationSettings||k};N(nk,nk.prototype.yy,"notificationSettings");q=nk.prototype;
q.dOa=function(a){this.notificationSettings=a};q.xy=function(a){var b=this.yy()||pk();return parseInt(b.z(a,-1),10)};q.Wf=function(a,b){var c=this.yy()||pk();c.G(a,b);this.dOa(c)};q.Qy=function(a){if(a=="comments")return this.xy(10);else if(a=="replies")return this.xy(60);else if(a=="reviews")return this.xy(30);else if(a=="revisions")return this.xy(20);else if(a=="suggestions")return this.xy(40);else e(new Error("unknown symbolicEvent: "+a))};
q.MOa=function(a,b){if(a=="comments"){this.Wf(10,b);this.Wf(11,b);this.Wf(12,b)}else if(a=="replies")this.Wf(60,b);else if(a=="reviews"){this.Wf(30,b);this.Wf(31,b);this.Wf(32,b)}else if(a=="revisions"){this.Wf(20,b);this.Wf(21,b);this.Wf(22,b)}else if(a=="suggestions"){this.Wf(40,b);this.Wf(41,b);this.Wf(42,b);this.Wf(50,b);this.Wf(51,b)}};var qk=k,pk=function(){if(ha(qk)){qk=new Cg;for(var a in rk)qk.G(rk[a],24)}return qk};var sk=function(a,b,c,d){if(a)if(w(a)){a.toString();this.nodeId=a}else if(na(a)&&!ma(a))$d(this,a);else e(new Error("type error"));if(b){if(!la(b))e(new Error("version must be number"));this.version=b}if(c){if(!ma(c))e(new Error("type must be function"));this.type=c}if(d)this.RT=d},tk=function(a,b,c,d){this.nodeId=a;if(b)this.version=b;if(c)this.type=c;if(d)this.RT=d},uk=function(a,b,c,d){return new tk(a,b,c,d)};var vk=function(a){ki.call(this);this.x$=this.$=r(a)?a:1;this.Xca=[];if(this.$<0)e(new Error("out of bounds"));this.$||ki.prototype.sa.call(this)};D(vk,ki);q=vk.prototype;q.kW=function(a,b){this.$+=a;this.x$=Math.max(this.x$,this.$);if(this.$<0)e(new Error("out of bounds"));a<0&&r(b)&&this.Xca.push(b);a<0&&this.$==0&&!this.Dh&&ki.prototype.sa.call(this,this.Xca)};q.na=function(){return this.$};q.sa=function(a){this.kW(-1,a)};q.Ma=function(a){this.Dh||ki.prototype.Ma.call(this,a)};
q.fka=function(a){this.kW(1);a.k(this.sa,this);a.w(this.Ma,this)};var wk=function(){this.pr=new Bg},xk=function(){return C("knol.NodeFetcher")},yk=function(a,b){if(a.search(/ /)!=-1)e(new Error("given nodeId: "+a+" must not contain spaces"));return a+" "+b};q=wk.prototype;q.jba=function(a){if(!(a instanceof sk))e(new Error("type error"));if(!w(a.nodeId))e(new Error("non-string nodeId of: "+a.nodeId+" is not valid"));if(!r(a.version))a.version=-2;if(a.version<-3)e(new Error("bad knol.NodeFetcher.VersionType specified"));this.pr.G(yk(a.nodeId,a.version),a)};
q.lga=function(a,b){this.Lp=new vk(this.pr.na());a&&this.Lp.k(a);b&&this.Lp.w(b);this.ALa();this.BLa();this.CLa();return this.Lp};q.na=function(){return this.Lp?this.Lp.na():0};q.PN=function(a){for(var b=this.pr.Bb(),c=0;c<b.length;c++){var d=b[c],f=this.pr.z(d);f.V7||a.call(this,d,f)}};q.ALa=function(){xk();this.PN(function(a,b){if(b.version!=-3){var c=a.split(" ")[0],d=b.version>0?b.version:k,f=zk.z(c,d);if(f){var g=f.bo();if(g!=f.vy())if(b.version==-2)f=k;if(f){b.V7=j;b.node=f;this.TN(b)}}}})};
q.BLa=function(){this.PN(function(a,b){var c=this.h6(a);if(c){xk();b.V7=j;c.FL.push(z(function(d,f){var g=this.pr.z(d);g.node=f;this.TN(g)},this));c.sN.push(z(this.EN,this))}})};var Ak=function(){Cg.call(this)};D(Ak,Cg);
wk.prototype.CLa=function(){var a=k;this.PN(function(c,d){a||(a=new Ak);a.G(c,[d.nodeId,d.version||k,d.type||k,d.RT||l,d.node?If(d.node):k]);this.Fka(c,d);xk()});if(a){var b=V("knol.NodeFetcher.fulfillOnServer",[a]);b.k(function(c){a.clear();Kf(a,c);for(var d=a.Bb(),f=0;f<d.length;f++){var g=d[f],h,i=a.z(g),m=new sk(i[0],i[1],i[2],i[3]);if(i[4])m.node=J({Sf:i[4]});h=m;if(!h)e(new Error("missing order"));var n=h.node;this.pr.G(g,h);var o=g.split(" ")[0];xk();if(n){var p=n.bo();zk.reset(o,p,n)}else zk.reset(o,
h.version,k);this.TN(h,g)}},this);b.w(function(c){var d=xk();d.za("server request failed",c);for(var f=a.Bb(),g=0;g<f.length;g++)this.Oca(f[g],k,c);this.EN(c)},this)}};wk.prototype.TN=function(a,b){if(a.gta)e(new Error("order already fulfilled"));a.gta=j;a.RT&&!a.node&&this.EN("failed to fulfill order "+Re(a));b&&this.Oca(b,a.node,k);this.Lp.sa()};wk.prototype.EN=function(a){this.Lp.Ma(a)};var Bk=new Bg;wk.prototype.h6=function(a){return Bk?Bk.z(a):k};
wk.prototype.Fka=function(a,b){var c=We(b);c.FL=[];c.sN=[];Bk.G(a,c)};wk.prototype.Oca=function(a,b,c){xk();var d=this.h6(a);if(d){Bk.remove(a);if(c)for(var f=0;f<d.sN.length;f++)d.sN[f](c);else for(f=0;f<d.FL.length;f++)d.FL[f](a,b)}};wk.prototype.dj=function(a,b){r(b)||(b=-2);return this.pr.z(yk(a,b))};var Ck=function(a,b,c,d,f){if(!w(a))e(new Error("expected string nodeId, saw "+Se(a)));var g=new wk;g.jba(new sk(a,b,c,void 0));g.lga(function(){d(g.dj(a,b).node)},f)};var Ek=function(a,b){Dk+=1;try{a();Dk-=1}catch(c){var d=C("knol.RetryEnv");if(c instanceof ki){var f=c;f.k(function(){Dk-=1;Ek(a,b)});f.w(function(g){d.U("deferred failed",g);Dk-=1;b&&b(g)})}if(c instanceof sk)Ck(c.nodeId,c.version,c.type,function(){Dk-=1;Ek(a,b)},function(){d.U("failed to get node",c);Dk-=1;b&&b(c)});else{Dk-=1;if(b)b(c);else e(c)}}},Dk=0,Fk=function(a){var b=new ki;Ek(function(){var c=a();if(c instanceof ki){c.k(b.sa,b);c.w(b.Ma,b)}else b.sa(c)},z(b.Ma,b));return b};var Gk=function(a){this.eb=a;this.cd=[];a.k(this.Qb,this);a.w(this.tt,this)};Gk.prototype.Qb=function(a){for(var b;b=this.cd.shift();)b.sa(a);return a};Gk.prototype.tt=function(a){for(var b;b=this.cd.shift();)b.Ma(a);return a};Gk.prototype.Y5=function(){var a=new ki;if(this.eb.Dh)this.eb.CB?a.sa(this.eb.result):a.Ma(this.eb.result);else this.cd.push(a);return a};var Hk=function(a,b,c){this.Za=1;this.wh=c||0;if(a!=k&&(!na(a)||ma(a)))e(new Error("rpc that type error"));if(b&&!w(b)&&!ma(b))e(new Error("rpc method type error"));this.Pm=a;this.Ak=b};q=Hk.prototype;
q.ma=function(a,b,c,d){C("knol.RPC");this.Wla=a=a||[];if(!ja(a))e(new Error("args type error"));if(!ma(b))e(new Error("cb type error"));if(!ma(c))e(new Error("eb type error"));this.Za=2;this.Qb=b;this.tt=c;b=z(this.yV,this);c=z(this.Wra,this);this.Ah=new vk(1);this.Hx=new wk;this.wh>0&&window.setTimeout(z(this.nRa,this),this.wh);this.yS(this.Pm);this.yS(a);this.Ah.k(function(){this.Za=3;this.VT(this.Pm);this.VT(a);this.Za=4;if(this.Ak){var f;if(this.Pm instanceof tk){if(!w(this.Ak))e(new Error("Rpc method must be a string for remote nodes"));
if(d&&this.b8()){f=this.Vta();if(f instanceof Gk)f=f.Y5()}else{f=Ej(this.Pm.nodeId,this.Ak,a);if(d)if(f instanceof ki){var g=new Gk(f);f=g.Y5();this.H_(g)}else this.H_(f)}}else{if(w(this.Ak))this.Ak=this.Pm[this.Ak];f=this.Ak.apply(this.Pm,a)}if(f instanceof ki){f.k(b);f.w(c)}else this.yV(f,l)}else this.yV(a,j)},this);this.Ah.w(c);this.Hx.lga(z(this.Ah.sa,this.Ah),z(this.Ah.Ma,this.Ah))};q.yV=function(a,b){if(this.Za!=6){this.Za=4;return b?this.Qb.apply(k,a):this.Qb(a)}};
q.Wra=function(a){if(this.Za!=6){this.Za=5;return this.tt(a)}};q.nRa=function(){if(this.LDa()){this.Za=6;this.tt("timeout")}};q.LDa=function(){return this.Za!=6&&this.Za!=4&&this.Za!=5};q.yS=function(a,b,c){if(ja(a))for(var d=0;d<a.length;d++)this.yS(a[d],a,d);else if(a instanceof sk)this.Hx.jba(a);else if(a instanceof ki){this.Ah.kW(1);a.k(z(function(f,g,h){if(f)f[g]=h;else this.Pm=h;this.Ah.sa();return h},this,b,c));a.w(this.Ah.Ma,this.Ah)}};
q.VT=function(a,b,c){if(ja(a))for(var d=0;d<a.length;d++)this.VT(a[d],a,d);else if(a instanceof sk){var f=this.Hx.dj(a.nodeId,a.version);if(b)b[c]=f.node;else this.Pm=f.node}};q.na=function(){var a=this.Ah?this.Ah.na():0;a+=this.Hx?this.Hx.na():0;return a};var Ik=k;Hk.prototype.fO=function(){if(!this.G_){var a={c_a:this.Pm,method:this.Ak,args:this.Wla};this.G_=Fd(a)}return this.G_};Hk.prototype.H_=function(a){Ik||(Ik=new Bc);var b=this.fO();Ik.G(b,a)};Hk.prototype.b8=function(){return!!Ik&&Ik.de(this.fO())};
Hk.prototype.Vta=function(){var a=this.fO();if(!this.b8())e(new Error("No cached result for "+a));return Ik.z(a)};var Jk=function(){this.DU(0)};D(Jk,Df);Jk.prototype.Nxa=function(){return this.result};N(Jk,Jk.prototype.Nxa,"result");Jk.prototype.bva=function(){return this.error_code};N(Jk,Jk.prototype.bva,"error_code");Jk.prototype.DU=function(a){this.error_code=a};Jk.prototype.$ta=function(){return this.captcha_token};N(Jk,Jk.prototype.$ta,"captcha_token");Jk.prototype.KFa=function(){this.DU(2)};var Kk=function(a){this.C=a;this.DU(0)};D(Kk,Jk);var Lk=function(){return k};var Mk=function(a){this.ad=a;this.Le={};this.hm={}};q=Mk.prototype;q.ksa=function(a){if(!(a in this.hm)){if(!a in this.Le)e(new Error("No revisions exist for the given key: "+a));this.hm[a]=-Infinity;for(var b in this.Le[a]){b=Number(b);if(b>this.hm[a])this.hm[a]=b}}return this.hm[a]};q.add=function(a,b,c){this.Vm(a,b,c);if(a in this.Le&&b in this.Le[a])e(new Error("cannot re-add identical key = "+a+" and version = "+b));this.Le[a]||(this.Le[a]={});this.Le[a][b]=c};
q.reset=function(a,b,c){this.Vm(a,b,c);a in this.Le&&b in this.Le[a]&&this.remove(a,b);this.add(a,b,c)};q.Vm=function(a,b,c){if(!w(a))e(new Error("invalid key "+a));if(!la(b))e(new Error("invalid versionNumber "+b));if(c!=k&&!(c instanceof this.ad))e(new Error("cannot cache item "+Se(c)+" that is not of type: "+this.ad))};q.fb=function(a){delete this.Le[a];delete this.hm[a]};q.remove=function(a,b){if(!(!a in this.Le||!this.Le[a]))if(b in this.Le[a]){delete this.Le[a][b];b==this.hm[a]&&delete this.hm[a]}};
q.z=function(a,b){if(!(!a in this.Le||!this.Le[a])){var c=r(b)&&!ha(b)?b:this.ksa(a);return this.Le[a][c]}};q.Bb=function(){return gc(this.hm)};var S=function(a,b){var c=new sk(a);c.sCa=b||l;var d;if(c.page){c.nodeId=hi(c.page);if(c.nodeId){c.version=c.page.revision;d=zk.z(c.nodeId,c.version);if(r(d))return d}d=this.F0(c);d.z7()}else if(c.Sf){c.nodeId=ii(c.Sf);if(c.nodeId){c.version=c.Sf[gi.TK];d=zk.z(c.nodeId,c.version);if(r(d))return d}d=this.xoa(c)}else d=c.nodeId?this.woa(c):this.voa(c);d&&d.YE()&&d.p()&&!c.fZa&&d.nl();return d};D(S,Df);var zk=new Mk(S);S.prototype.nl=function(){zk.reset(this.p(),this.bo(),this)};
var J=function(a){var b=new S(a,j);return b.YE()?b:k},Nk=function(a){var b=new Error("Failure trying to fetch node order("+Se(a)+") on client side, use RetryEnv or NodeFetcher instead");return b},jh=function(a){return a&&a.message&&w(a.message)&&a.message.indexOf("Failure trying to fetch node")==0};q=S.prototype;q.woa=function(a){if(!w(a.nodeId))e(new Error("expected string nodeId "+a.nodeId));var b=a.version>=0?a.version:k,c=zk.z(a.nodeId,b);if(r(c))return c;if(Dk>0)e(a);else e(Nk(a))};
q.voa=function(a){if(a.sCa)return this;if(!this.fs)e(new Error("expected typeName"));var b=a.nodeId?ei(a.nodeId):{};if(this.lna())b.webspace="";else if(!b.webspace)e(new Error("new node "+a.nodeId+" must specify webspace"));for(var c=b.path,d=0;d<3;){if(!c||!c.length){b.path=ci(Ve(),6);b.webspace+"."+ci(Ve(),6)}b.properties={"main/text":""};b.properties[Ok.Fw]="/system/knol/templates/"+this.fs;b.addRevisionEntry=l;a.page=jot.lib.savePage(b);break}return this.F0(a)};
q.lna=function(){return this.fs=="Knol"||this.fs=="User"||this.fs=="Group"};q.F0=function(a){var b=this,c=this.U5(a.page);if(Pk(c)){var d=Qk[c];if(this.constructor!=d){var f=function(){};f.prototype=d.prototype;f.prototype.constructor=d;b=new f}}b.LJa(a);a.type&&!(b instanceof a.type)&&b.Ab("unexpected page type");return b};
q.xoa=function(a){if(a&&r(a.Sf)){var b=this,c=a.Sf[gi.Dw];if(Pk(c)){var d=Qk[c];if(this.constructor!=d){var f=function(){};f.prototype=d.prototype;f.prototype.constructor=d;b=new f}}Kf(b,a.Sf);a.type&&!(b instanceof a.type)&&b.Ab("unexpected page type");return b}};var Pk=function(a){var b=Qk[a];return b&&b.prototype instanceof S};S.prototype.z7=function(){};
var Ok={rs:"main/text",ip:"language",CK:"license",iK:"adSensePolicy",hK:"accessPolicy",lC:"accessType",oX:"emailPolicy",Gw:"title",oK:"createUser",Fw:"sys/template",$X:"logicalVersion",eY:"nextChild",xY:"redFlags",PW:"blacklisted",bY:"mailEventsId",jY:"nvc",yia:"effk",xia:"efd",sX:"enableContributorsList",xX:"enableTableOfContents",zX:"enableUnsolicitedReviews",pX:"enableAlsoWrote",vX:"enableRelatedKnols",qX:"enableCategories",uX:"enableReaderCategories",rX:"enableComments",Bw:"enableCommentApproval",
tX:"enableModeratorList",MY:"titleUrlOptOut"},gi={Dw:"nodeType",ps:"id",UY:"url",UK:"webspace",LXa:"wuid",Uia:"path",oY:"pathEncoded",TK:"versionNumber",XX:"latestVersionNumber",nX:"editTime",uK:"editTimeMs",bX:"createTime",cX:"createTimeMs",CX:"exists"};S.prototype.T=function(a){for(var b in a)if(this.Mu(Ok,b)||this.Mu(Kj,b)){var c=a[b]?a[b].ET||a[b].constructor:k;if(Hf(c))typeof a[b]=="boolean"?this.Av(b,a[b]):this.setProperty(b,a[b]);else this.H8(b,a[b])}else if(this.Mu(gi,b))this[b]=a[b]};
var Rk=function(a,b,c){for(var d in c)if(b.Mu(a,d)){var f=c[d]?c[d].ET||c[d].constructor:k;if(Hf(f))typeof c[d]=="boolean"?b.Av(d,c[d]):b.setProperty(d,c[d]);else b.H8(d,c[d])}};S.prototype.Mu=function(a,b){if(b.search(Te)!=-1)return l;for(var c in a)if(a[c]==b)return j;return l};S.prototype.Vb=function(a){this.Yna();Kf(this,a)};var Sk=function(){return C("knol.Node")};S.prototype.ie=function(){return Sk()};var Qk={},Tk=function(a,b,c){D(a,b);a.prototype.fs=c;Qk[c]=a};S.prototype.remove=function(){};
S.prototype.nKa=function(a,b){for(var c=a.dc(),d=0;d<c.length;d++){var f=c[d],g=J(f),h=k;if(g)h=a.Ova(g);else this.ie().U("missing counterpart of "+this.p()+" in relation = "+Se(a));a.remove(f);if(h&&h.Ga())if(ma(b))b.call(this,g);else if(b==2)g.remove();else!b||b==1||this.Ab("removeFromRelation, unknown policy "+b)}};S.prototype.U5=function(a){var b;if(!this[gi.Dw]){b=a?a.flatData[Ok.Fw]:this.n(Ok.Fw);this[gi.Dw]=w(b)?b.indexOf("/system/knol/templates")!=0?k:b.split("/").pop():k}return this[gi.Dw]};
N(S,S.prototype.U5,gi.Dw);q=S.prototype;q.n=function(a,b){w(a)||this.Ab("invalid property "+a);return this.hr&&a in this.hr?this.hr[a]:this.properties&&a in this.properties?this.properties[a]:r(b)?b:k};q.removeProperty=function(a){this.yh&&delete this.yh[a];this.properties&&delete this.properties[a];this.hr&&delete this.hr[a]};q.setProperty=function(a,b){w(a)||this.Ab("invalid property "+a);if(!this.hr)this.hr={};this.yh&&delete this.yh[a];this.properties&&delete this.properties[a];this.hr[a]=b};
q.kb=function(a,b){var c=this.n(a,b?1:0);return Boolean(c&&c!="0")};q.Av=function(a,b){this.setProperty(a,b&&b!="0"?1:0)};q.d7=function(){if(!this.yh)this.yh={}};q.kc=function(a,b,c){Sk();w(a)||this.Ab("invalid property");this.d7();if(!(a in this.yh)){var d={};if(b)d=b.call(k);var f,g=this.n(a);f=g;var h=k;if(f)h=f.value?f.value:f;if(h){if(ma(d.parse))d.parse(of(h));else if(na(h))Kf(d,h);else e(new Error("unknown property type for: "+a));this.yh[a]=d}else if(c)this.yh[a]=d}return this.yh[a]};
q.zj=function(a,b){this.GOa(a,ic(b)?k:If(b))};q.GOa=function(a,b){this.I_(a,b);this.NU(a,ic(b)?k:b)};q.NU=function(a,b){w(a)||this.Ab("invalid property name: "+a);b&&!na(b)&&this.Ab("invalid property("+a+") value: "+b);var c=b?b:k;this.setProperty(a,c)};q.JOa=function(a,b){this.NU(a,Dd(b))};q.H8=function(a,b){w(a)||this.Ab("invalid property");this.removeProperty(a);this.NU(a,b);this.yh&&delete this.yh[a]};q.I_=function(a,b){w(a)||this.Ab("invalid property");this.d7();this.yh[a]=b};
q.Yna=function(){delete this.yh;delete this.kC;delete this.kv;this.o0()};q.ROa=function(a,b){if(!this.kC)this.kC={};this.kC[a]=b};q.gJ=function(){};q.Kya=function(a){return this.kC?this.kC[a]||k:k};q.rza=function(a,b,c){Sk();var d=this.Kya(a);if(d)return d;if((d=this.n(a,b))&&!w(d))if(c)if(typeof d=="object")d=d.toXmlString();else this.Ab("unexpected type of value ("+typeof d+") for property: "+a);else d=d.toHtml();this.ROa(a,d);return d};q.BF=function(a){var b=this.n(a);return b?J(b):k};
q.j5=function(a,b,c){var d=this.kc(a,c);if(d){var f=b.call(d);if(f)return f}var g=this.fF();if(g)return g.j5(a,b);return k};q.fF=function(){return k};q.fa=function(){return this[gi.UY]};N(S,S.prototype.fa,gi.UY);S.prototype.By=function(){return this.fa()};S.prototype.YE=function(){return this[gi.CX]};N(S,S.prototype.YE,gi.CX);S.prototype.Ul=function(a){return this.rza(Ok.rs,k,a)};S.prototype.KI=function(a){delete this.qFa;delete this.hH;this.gJ(Ok.rs,a,l,l)};
S.prototype.pF=function(){if(!r(this.hH)){var a;this.Ul();this.p();this.hH=a=k}return this.hH};S.prototype.p=function(){r(this[gi.ps])||(this[gi.ps]=this.path?hi(this):k);return this[gi.ps]};N(S,S.prototype.p,gi.ps);S.prototype.am=function(){return this[gi.UK]};N(S,S.prototype.am,gi.UK);S.prototype.fxa=function(){return this[gi.oY]};N(S,S.prototype.fxa,gi.oY);S.prototype.Gwa=function(){return this.n(Ok.eY,1)};N(S,S.prototype.Gwa,Ok.eY);S.prototype.bo=function(){return this[gi.TK]||1};
N(S,S.prototype.bo,gi.TK);S.prototype.vy=function(){return this[gi.XX]};N(S,S.prototype.vy,gi.XX);var Uk={SWa:"read",KXa:"write",MTa:"addChild",LTa:"addAttachment",Tia:"owner"};q=S.prototype;q.LNa=function(a,b){this.setProperty("sys/permission/"+a,b)};q.dPa=function(a){var b=["write","addChild","addAttachment","owner"];vb(b,function(c){this.setProperty("sys/permission/"+c,a)},this)};q.cKa=function(){for(var a in Uk)this.removeProperty("sys/permission/"+a)};q.addRevisionEntry=function(){return l};
q.save=function(){};q.getLanguage=function(){return this.n(Ok.ip)};N(S,S.prototype.getLanguage,Ok.ip);S.prototype.zO=function(){return Pj(this,Kj.rK)};S.prototype.g6=function(){return Pj(this,Kj.EC)};S.prototype.K5=function(){return Pj(this,Kj.cY)};S.prototype.Wn=function(){var a=this.n(Ok.CK);return a?Qg(a.replace(/"/g,"")):new Lg};N(S,S.prototype.Wn,Ok.CK);S.prototype.oea=function(a){this.setProperty(Ok.CK,a.toString())};S.prototype.En=function(){return this.kc(Ok.iK,function(){return new th})};
N(S,S.prototype.En,Ok.iK);S.prototype.Fda=function(a){this.zj(Ok.iK,a)};S.prototype.nf=function(){var a,b=this.n(Ok.hK);if(b){var c=this.kc(Ok.hK,function(){return new bh("moderated")});a=c.yF()}r(a)||(a=this.n(Ok.lC,"moderated"));return a};N(S,S.prototype.nf,Ok.lC);S.prototype.pU=function(a){this.zj(Ok.hK,k);this.setProperty(Ok.lC,a)};S.prototype.T4=function(){return this.kc(Ok.oX,function(){return new nk},j)};N(S,S.prototype.T4,Ok.oX);S.prototype.md=function(){return this.n(Ok.Gw)};
N(S,S.prototype.md,Ok.Gw);q=S.prototype;q.cf=function(a){this.setProperty(Ok.Gw,a);this.o0()};q.Rh=function(){if(!r(this.ew))this.ew=mf(this.md(),250)||"Sem t\u00edtulo";return this.ew};q.o0=function(){delete this.ew};q.sk=function(){return this.md()||"Sem t\u00edtulo"};q.mwa=function(){return this.n(Ok.bY)};N(S,S.prototype.mwa,Ok.bY);S.prototype.BO=function(){return this[gi.nX]};N(S,S.prototype.BO,gi.nX);S.prototype.gy=function(){return this[gi.uK]};N(S,S.prototype.gy,gi.uK);S.prototype.xua=function(){return this[gi.bX]};
N(S,S.prototype.xua,gi.bX);S.prototype.x4=function(){return this[gi.cX]};N(S,S.prototype.x4,gi.cX);S.prototype.yua=function(){return this.n(Ok.oK)};N(S,S.prototype.yua,Ok.oK);S.prototype.ZMa=function(a){this.setProperty(Ok.oK,a)};S.prototype.jwa=function(){return this.n(Ok.$X,0)};N(S,S.prototype.jwa,Ok.$X);q=S.prototype;q.T5=function(){return this.kb(Ok.jY,l)};q.IU=function(a){this.Av(Ok.jY,a);if(a){this.setProperty(Ok.xY,k);this.PMa(l)}};
q.Bxa=function(){return this.kc(Ok.xY,function(){return new Cg},j)};q.O9=function(){for(var a=this.Bxa(),b=a.Bb(),c=0;c<b.length;c++){var d=b[c];if(d!="102"&&a.z(d))return j}return l};q.e4=function(){return this.n(Ok.PW)=="1"};q.PMa=function(a){this.setProperty(Ok.PW,a?"1":"0")};q.XE=function(){return this.kb(Ok.yia)};q.iy=function(){return this.kb(Ok.xia)};q.Oh=function(){Sk().za("this node does not specify permission levels");this.Ab("type error")};q.GO=function(){return this.kb(Ok.sX,j)};
N(S,S.prototype.GO,Ok.sX);S.prototype.UE=function(){return this.kb(Ok.xX,j)};N(S,S.prototype.UE,Ok.xX);S.prototype.VE=function(){return this.kb(Ok.zX,j)};N(S,S.prototype.VE,Ok.zX);S.prototype.EO=function(){return this.kb(Ok.pX,j)};N(S,S.prototype.EO,Ok.pX);S.prototype.IO=function(){return this.kb(Ok.vX,j)};N(S,S.prototype.IO,Ok.vX);S.prototype.FO=function(){return this.kb(Ok.qX,j)};N(S,S.prototype.FO,Ok.qX);S.prototype.TE=function(){return this.kb(Ok.uX,j)};N(S,S.prototype.TE,Ok.uX);
S.prototype.St=function(){return this.kb(Ok.rX,j)};N(S,S.prototype.St,Ok.rX);S.prototype.Ln=function(){return this.kb(Ok.Bw,l)};S.prototype.HO=function(){return this.kb(Ok.tX,j)};N(S,S.prototype.HO,Ok.tX);S.prototype.a7=function(){return this.kb(Ok.MY,l)};N(S,S.prototype.a7,Ok.MY);S.prototype.Ab=function(a){a=this.fs+" nodeId: "+this.p()+" "+a;var b=Sk();b.za(a);var c=new Error(a);c.C=a;e(c)};S.prototype.U=function(a){a=this.fs+" nodeId: "+this.p()+" "+a;var b=Sk();b.U(a)};S.prototype.Bya=function(){return this.n(Ok.Fw)};
N(S,S.prototype.Bya,Ok.Fw);q=S.prototype;q.LJa=function(){};q.log=function(){};q.removeNode=function(){};q.Y9=function(){return l};q.purgeCache=function(){};q.Vwa=function(){return Vk(Af(this.p()))};var Wk={},Vk=function(a){var b,c=a,d=Wk,f,g;if(w(c)){f=c;g=k}else{f=c.nodeId;g=c.type;delete c.type}if(!(f in d))try{d[f]=J(c)}catch(h){if(jh(h))e(h);else d[f]=k}var i=d[f];if(i&&g&&!(i instanceof g)){var m=Sk();m.za("Wrong type of offline node found at key = "+f);i=k}return b=i};
S.prototype.sq=function(a,b){var c=k;try{c=this.Vwa()}catch(d){}if(c){var f=c.n(a,b);if(f)return f}return this.n(a,b)};var Xk=function(a){return S.call(this,a)};Tk(Xk,S,"Attachment");Xk.prototype.remove=function(){};Xk.prototype.attach=function(){};Xk.prototype.detach=function(){};var Zk=function(a){return S.call(this,a)};Tk(Zk,Xk,"ImageAttachment");Zk.prototype.attach=function(){};Zk.prototype.detach=function(){};var $k=function(a){return S.call(this,a)};Tk($k,S,"ChatLogNode");$k.prototype.he=function(){return this.p().substring(0,this.p().length-8)};$k.prototype.va=function(){return this.n("knolId")};$k.prototype.Vf=function(a){return this.setProperty("knolId",a)};var al=function(a){a&&this.nT(a)};D(al,Df);q=al.prototype;q.nT=function(a){var b=Dd(a);this.mYa=b.daily;this.MSa=b.weekly;this.VV=b.total;this.CA=b.quantile;this.ud=b.history};q.aQ=function(){return this.MSa};q.VP=function(){return this.VV};q.n6=function(){return this.CA};q.UO=function(){return this.ud};var bl=function(a){a&&w(a)&&this.nT(a)};D(bl,Df);
bl.prototype.nT=function(a){this.si=Dd(a);this.Tw=0;this.YXa="";for(var b=gc(this.si),c=0;c<b.length;c++){var d=b[c];if(d=="score")this.DZa=this.si[d];else if(d=="quantile"){this.CA=this.si[d];if(this.CA>this.Tw){this.Tw=this.CA;this.Bma="all"}}else{var f=this.si[d],g=f.quantile;if(g>this.Tw){this.Tw=g;this.Bma=d}}}};bl.prototype.n6=function(){return this.CA};bl.prototype.Sta=function(){return this.Tw};var cl=function(a){return S.call(this,a)};Tk(cl,S,"KnolOffline");var dl={Fe:"knolId",Bi:"knolMetaId",Jw:"webContentDuplicates",Iw:"ttsVersion",Hw:"ttsBlobstoreId",Zia:"restrictSearch",LK:"relatedKnols",ip:"langidLanguageCode",Lia:"knolRQ",AC:"knolQQ",Jg:"pageviews",Ym:"comments",Kg:"reviews",jp:"ratings",zh:"suggestions",xw:"badges",TX:"knolTemplateCount",BY:"reviewTemplateCount",gja:"spamScore",QWa:"zipitRatingAvg",RWa:"zipitRatingCount",LY:"titleUrl",NY:"titleUrlTimestamp"};
cl.prototype.T=function(a){Rk(dl,this,a);cl.f.T.call(this,a)};cl.prototype.va=function(){return this.n(dl.Fe)};N(cl,cl.prototype.va,dl.Fe);cl.prototype.Vf=function(a){return this.setProperty(dl.Fe,a)};cl.prototype.he=function(){var a=this.p();return a.substring(0,a.length-8)};N(cl,cl.prototype.he,dl.Bi);cl.prototype.OF=function(){return this.n(dl.Jw)};N(cl,cl.prototype.OF,dl.Jw);cl.prototype.QP=function(){return this.n(dl.Iw,0)};N(cl,cl.prototype.QP,dl.Iw);cl.prototype.PP=function(){return this.n(dl.Hw)};
N(cl,cl.prototype.PP,dl.Hw);cl.prototype.getLanguage=function(){return this.n(dl.ip)};cl.prototype.w5=function(){return this.n(dl.AC)};cl.prototype.Yn=function(){var a=this.n(dl.Jg);return new al(a)};N(cl,cl.prototype.Yn,dl.Jg);cl.prototype.NE=function(){var a=this.n(dl.Ym);return new al(a)};N(cl,cl.prototype.NE,dl.Ym);cl.prototype.DP=function(){var a=this.n(dl.Kg);return new al(a)};N(cl,cl.prototype.DP,dl.Kg);cl.prototype.AF=function(){var a=this.n(dl.jp);return new al(a)};N(cl,cl.prototype.AF,dl.jp);
cl.prototype.HF=function(){var a=this.n(dl.zh);return new al(a)};N(cl,cl.prototype.HF,dl.zh);cl.prototype.Vva=function(){return this.n(dl.TX,0)};N(cl,cl.prototype.Vva,dl.TX);cl.prototype.Pxa=function(){return this.n(dl.BY,0)};N(cl,cl.prototype.Pxa,dl.BY);cl.prototype.N6=function(){return this.n(dl.gja,0)};cl.prototype.UP=function(){return this.n(dl.LY)};N(cl,cl.prototype.UP,dl.LY);cl.prototype.Jya=function(){return this.n(dl.NY)};N(cl,cl.prototype.Jya,dl.NY);var el=function(a,b){this.Fa=a;this.xna=b||[]},fl=[],gl={},hl=function(a){var b=new a;fl.push(b);gl[b.p()]=b};el.prototype.p=function(){return this.Fa};el.prototype.Zta=function(){return this.xna};el.prototype.mo=function(){return j};el.prototype.aR=j;var il=function(){};D(il,Df);var jl={MXa:"yes",AWa:"p_yes",nWa:"neutral",zWa:"p_no",qWa:"no",vWa:""};q=il.prototype;q.serialize=function(){var a={};a.question=this.cu();a.rating=this.Wl();a.canned=this.IE();a.detail=this.Mt();return a};
q.T=function(a){this.YH=gl[a.question]||k;this.Bea(a.rating||"");this.$w=a.canned||k;this.Zda(a.detail||"")};q.tc=function(a){return!!a&&this.ob()&&a.ob()&&this.cu()==a.cu()&&this.Wl()==a.Wl()&&this.IE()==a.IE()&&this.Mt()==a.Mt()};q.ob=function(){return!!this.YH&&wc(jl,this.xm)&&(!this.$w||Db(this.YH.Zta(),this.$w))};q.cu=function(){return this.YH.p()};q.Wl=function(){return this.xm};q.Bea=function(a){this.xm=a};q.pBa=function(){return!!this.$w};q.IE=function(){return this.$w};
q.Mt=function(){return this.pBa()?k:this.e2};q.Zda=function(a){this.e2=Ya(a,300)};q.Ga=function(){return(this.Wl()=="neutral"||this.Wl()=="")&&!this.IE()&&!this.Mt()};var kl=function(){this.il={}};D(kl,Df);var ll=function(){return new kl};q=kl.prototype;q.serialize=function(){var a={};a.answers=xb(uc(this.il),If);return a};q.T=function(a){vb(a.answers,function(b){var c=new il;c.T(b);this.Kda(c)},this)};
q.tc=function(a){return!!a&&this.il&&a.il&&tc(this.il)==tc(a.il)&&Ac(this.il,function(b){return b.tc(a.il[b.cu()])},this)};q.Z3=function(a){return this.il[a]||k};q.Eta=function(a){return this.Z3(a.p())};q.Kda=function(a){if(a.ob())this.il[a.cu()]=a};q.Ga=function(){for(var a,b=[],c=fl,d=0;d<c.length;d++)c[d].aR&&b.push(c[d]);a=b;for(var f=0;f<a.length;f++){var g=this.Eta(a[f]);if(g&&!g.Ga())return l}return j};var ml=function(a){return S.call(this,a)};Tk(ml,S,"KnolScores");ml.prototype.Mu=function(a,b){var c;var d=b;c=wa(d,"userScores_")?d.replace("userScores_","").replace(/_/g,"."):k;if(c)return j;return ml.f.Mu.call(this,a,b)};ml.prototype.he=function(){return this.p().substring(0,this.p().length-7)};var nl=function(a){this.gg=this.gg||3;return S.call(this,a)};Tk(nl,S,"Message");var ol=1296E6,pl=function(){return C("knol.Message")};q=nl.prototype;q.type=0;q.remove=function(){this.ie();this.Jy().fb();this.p6().fb();this.Rx().fb();nl.f.remove.call(this)};q.Ama=function(){this.wb()!=6&&this.Gb(5)};
q.send=function(a,b,c){pl();this.wb()!=1&&this.Ab("message already sent!");var d=this.Jy(),f=this.p6(),g=this.Rx();a&&d.add(a);b&&f.add(b);c&&g.add(c);d.Ga()&&this.Ab("message has no sender!");this.Vm();Lk(z(function(){this.Gb(2);this.Hs()&&this.mma();d.save();f.save();g.save()},this))};q.Hs=function(){if(this.p5())return l;else{var a=eh(J(this.Jy().$i()),this.Rx().wy(),this.gg);return a==4}};q.Vm=function(){};q.mma=function(){pl();this.Zba();this.lI(1,this.Jy().$i(),"")};
q.ce=function(){var a=this.wb();if(a==1||a==2){this.Ama();return j}else return l};q.Zba=function(){this.Gb(3)};q.lI=function(a,b,c){pl();this.wb()==3&&a==1&&this.JB();this.Gb(4);this.xOa(a);var d=this.Jy().$i();if(d!=b){var f=new nl(this.am());f.KI(c||"");f.send(b,d,this.p())}};q.JB=function(){};q.Jy=function(){return Pj(this,Kj.DY)};q.p6=function(){return Pj(this,Kj.vY)};q.Rx=function(){return Pj(this,Kj.FW)};q.wb=function(){var a=this.n("messageState",1);return a?Number(a):k};
N(nl,nl.prototype.wb,"messageState");nl.prototype.Gb=function(a){return this.setProperty("messageState",a)};nl.prototype.Kxa=function(){var a=this.n("messageResolution");return a?Number(a):k};N(nl,nl.prototype.Kxa,"messageResolution");nl.prototype.xOa=function(a){return this.setProperty("messageResolution",a)};nl.prototype.rq=function(){var a=this.n("messageLevel");return a?Number(a):k};N(nl,nl.prototype.rq,"messageLevel");nl.prototype.Qr=function(a){return this.setProperty("messageLevel",a)};
nl.prototype.p5=function(){return!!this.n("inhibitResolvePref")};N(nl,nl.prototype.p5,"inhibitResolvePref");nl.prototype.uf=function(){var a=this.n("messageToken");if(!a){a=ci(Ve(),5)+ci(Ve(),5)+ci(Ve(),5);this.No(a)}return a};N(nl,nl.prototype.uf,"messageToken");nl.prototype.No=function(a){return this.setProperty("messageToken",a)};var ql=function(a){return S.call(this,a)};Tk(ql,S,"AuthorMailAcks");var rk={UVa:10,LVa:11,PVa:12,XVa:20,OVa:21,RVa:22,WVa:30,NVa:31,QVa:32,VVa:40,MVa:41,BUa:42,oXa:50,mXa:51,GUa:60};var rl=function(a){return S.call(this,a)};Tk(rl,S,"NodeMailEvents");var sl=function(a,b){return S.call(this,a,b)};Tk(sl,S,"SubCollectionSuggestions");q=sl.prototype;q.he=function(){return this.p().substring(0,this.p().length-25)};q.va=function(){return this.n("knolId")};q.Vf=function(a){return this.setProperty("knolId",a)};q.GF=function(){return this.kc("submissions",tl,j)};q.RU=function(a){this.zj("submissions",a)};q.Bq=function(){return this.kc("suggestions",ul,j)};q.TU=function(a){this.zj("suggestions",a)};var vl=function(){};D(vl,Df);q=vl.prototype;
q.serialize=function(){return{}};q.T=function(){};q.qf=function(){var a=this.zP();return gc(a)};q.getSize=function(){return this.qf().length};q.zP=function(){return{}};q.Vn=function(a){return a.knolUrl};var wl=function(){};D(wl,vl);var ul=function(){return new wl};wl.prototype.serialize=function(){return this.FB||{}};wl.prototype.T=function(a){this.FB=a||{}};wl.prototype.zP=function(){return this.FB};
wl.prototype.Vn=function(a){if(a instanceof Array&&a.length>0)a=a[0];return vl.prototype.Vn.call(this,a)};var xl=function(){};D(xl,vl);var tl=function(){return new xl};xl.prototype.serialize=function(){return this.Ok||{}};xl.prototype.T=function(a){this.Ok=a||{}};xl.prototype.zP=function(){return this.Ok};var yl=function(a,b,c,d,f,g,h){this.mc=a;this.ad=b;this.qA=c;this.Qw=d;this.AB=g;this.BB=h;this.Rd=f};D(yl,Df);q=yl.prototype;q.serialize=function(){var a={};a.knolId=this.va();a.type=this.ka();a.order=this.dj();a.annotation=this.eq();a.submittedTimestamp=this.OP();a.submitterId=this.Uh();a.hidden=this.Qn();return a};q.T=function(a){if(a){this.Vf(a.knolId);this.pi(a.type);this.JU(a.order);this.rU(a.annotation);this.SU(a.submittedTimestamp);this.WI(a.submitterId);this.GI(a.hidden)}};
q.tc=function(a){return!!a&&this.ob()&&a.ob()&&this.va()==a.va()&&this.ka()==a.ka()&&this.dj()==a.dj()&&this.eq()==a.eq()&&this.Uh()==a.Uh()&&this.Qn()==a.Qn()};q.va=function(){return this.mc};q.ka=function(){return this.ad};q.dj=function(){return this.qA};q.eq=function(){return this.Qw};q.OP=function(){return this.AB};q.Uh=function(){return this.BB};q.Qn=function(){return this.Rd};q.Vf=function(a){this.mc=a};q.pi=function(a){this.ad=a};q.JU=function(a){this.qA=a};q.rU=function(a){this.Qw=a};
q.SU=function(a){this.AB=a};q.WI=function(a){this.BB=a};q.GI=function(a){this.Rd=a};q.ob=function(){return!!this.va()&&!!this.ka()};q.mo=function(a){if(!this.ob())return l;var b=a.z(this.va());return this.ka()=="add"?!b:!!b};var zl=function(){this.tD=[]};D(zl,Df);var Al=function(){return new zl};q=zl.prototype;q.serialize=function(){return xb(this.tD,If)};q.T=function(a){if(ja(a))for(var b=0;b<a.length;b++){var c=new yl;c.T(a[b]);c.ob()&&this.tD.push(c)}};q.qf=function(){return this.tD};
q.JI=function(a){this.tD=a||[]};q.Ga=function(){return!this.qf().length};q.wa=function(){var a=Al();a.JI(this.qf().concat());return a};q.Vb=function(a){var b=l;if(a){for(var c=this.qf(),d=[],f=0;f<c.length;f++)if(c[f].mo(a))d.push(c[f]);else b=j;b&&this.JI(d)}return b};q.l4=function(a,b){for(var c=this.qf(),d=0;d<c.length;d++)if(c[d].ka()==b&&c[d].va()==a)return c[d];return k};var Bl=function(a,b){return S.call(this,a,b)};Tk(Bl,S,"Submissions");q=Bl.prototype;q.he=function(){return this.p().substring(0,this.p().length-12)};q.va=function(){return this.n("knolId")};q.Vf=function(a){return this.setProperty("knolId",a)};q.GF=function(){return this.kc("submissions",Al,j)};q.RU=function(a){this.zj("submissions",a)};q.getMerged=function(){return this.kb("merged")};q.XNa=function(a){this.Av("merged",a)};
q.TFa=function(){if(!this.getMerged()){for(var a=this.GF(),b=a.qf(),c=J(this.he()),d=c&&c.Bq(),f=d&&d.dc()||[],g=0;g<f.length;g++){var h=J(f[g]);if(!(!h||h.wb()!=1))for(var i=h.jua().qf(),m=0;m<i.length;m++){i[m].WI(h.lq());b.push(i[m])}}this.XNa(j);this.RU(a)}};q.iza=function(a){for(var b=this.GF().qf(),c=Al(),d=c.qf(),f=0;f<b.length;f++)b[f].Uh()==a&&d.push(b[f]);return c};q.Vb=function(a){var b=this.GF();if(b.Vb(a)){this.RU(b);this.save()}};
var Cl=function(a,b,c,d,f){this.Af=a;this.$m=b;this.sD=c;this.nca=d;this.GS=f;this.OB=ua()};D(Cl,Df);q=Cl.prototype;q.serialize=function(){var a={};a.token=this.uf();a.accept=this.nta();var b=this.l4();if(b)a.change=b.serialize();var c=this.Fxa();if(c)a.relatedChanges=c.serialize();a.moderatorId=this.twa();a.timestamp=this.rk();return a};
q.T=function(a){if(a){this.No(a.token);this.tMa(a.accept);var b=new yl;b.T(a.change);this.TMa(b);var c=Al();c.T(a.relatedChanges);this.sOa(c);this.aOa(a.moderatorId);this.kB(a.timestamp)}};q.ob=function(){return!!this.Af&&!!this.sD&&this.sD.ob()&&!!this.GS&&r(this.$m)};q.uf=function(){return this.Af};q.No=function(a){this.Af=a};q.nta=function(){return this.$m};q.tMa=function(a){this.$m=a};q.l4=function(){return this.sD};q.TMa=function(a){this.sD=a};q.Fxa=function(){return this.nca};
q.sOa=function(a){this.nca=a};q.twa=function(){return this.GS};q.aOa=function(a){this.GS=a};q.rk=function(){return this.OB};q.kB=function(a){this.OB=a};var Dl=function(){this.Ta={}};D(Dl,Df);q=Dl.prototype;q.$a=function(a){if(a&&a.ob())this.Ta[a.uf()]=a};q.xo=function(a){a&&delete this.Ta[a]};q.contains=function(a){return ia(this.Ta[a])};q.serialize=function(){return cc(this.Ta,If)};q.T=function(a){if(na(a))for(var b in a){var c=new Cl;c.T(a[b]);if(c.ob())this.Ta[b]=c}};q.qf=function(){return this.Ta};
q.JI=function(a){this.Ta=a||{}};var El=function(a){return S.call(this,a)};Tk(El,S,"Suggestion");$d(El.prototype,Df.prototype);var Fl={tK:"editorId",Fe:"knolId",nK:"contentVersion",yK:"knolContentVersion",Ew:"subtitle",kp:"references",ww:"abstract",PK:"state",lp:"snippet",fX:"diffCount",aY:"magnitude",mia:"collectionChanges",ss:"moderatedCollection"};El.prototype.T=function(a){Rk(Fl,this,a);El.f.T.call(this,a)};El.prototype.remove=function(){};El.prototype.ec=function(a,b){this.lNa(b);this.Vf(a);this.mea(J(this.va()).jk())};
El.prototype.iu=function(){return this.n(Fl.Ew)};N(El,El.prototype.iu,Fl.Ew);El.prototype.Fy=function(){return this.kc(Fl.kp,function(){return new Yh},j)};N(El,El.prototype.Fy,Fl.kp);El.prototype.Dea=function(a){this.zj(Fl.kp,a)};El.prototype.CE=function(){return this.n(Gl.ww)};N(El,El.prototype.CE,Fl.ww);q=El.prototype;q.OA=function(){var a=this.Jna();if(a!=0)return a;this.Gb(2);var b=this.Ia(),c=b.Bq();c.remove(this.p());return a};q.accept=function(){C("knol.Suggestion");return 199};
q.ol=function(){var a=fg(),b=this.Ia();return eh(J(a),b,14)==4};q.Jna=function(a,b){C("knol.Suggestion");if(this.wb()!=1)return 103;else if(a&&a!=this.bo())return 102;else if(b&&b!=J(this.va()).jk())return 109;return 0};q.Gb=function(a){this.nCa();this.setProperty(Fl.PK,a)};q.wb=function(){return this.n(Fl.PK)||1};N(El,El.prototype.wb,Fl.PK);El.prototype.lNa=function(a){this.setProperty(Fl.tK,a)};El.prototype.lq=function(){return this.n(Fl.tK)};N(El,El.prototype.lq,Fl.tK);
El.prototype.Vf=function(a){this.setProperty(Fl.Fe,a)};El.prototype.va=function(){return this.n(Fl.Fe)};N(El,El.prototype.va,Fl.Fe);El.prototype.Ia=function(){return J(this.va()).Ia()};El.prototype.nCa=function(){this.setProperty(Fl.nK,this.dy()+1)};El.prototype.dy=function(){return this.n(Fl.nK)||1};N(El,El.prototype.dy,Fl.nK);El.prototype.mea=function(a){this.setProperty(Fl.yK,a)};El.prototype.Vt=function(){return this.n(Fl.yK)};N(El,El.prototype.Vt,Fl.yK);q=El.prototype;
q.KI=function(a){this.gJ(Ok.rs,a,j,j);delete this.qFa;delete this.hH};q.e8=function(){var a=this.n(Ok.rs);return w(a)&&!a.length};q.Ul=function(){return this.e8()?k:El.f.Ul.call(this,j)};q.pF=function(){return this.e8()?k:El.f.pF.call(this)};q.Lea=function(a){this.setProperty(Fl.lp,a)};q.ok=function(){return this.n(Fl.lp)};N(El,El.prototype.ok,Fl.lp);El.prototype.Nt=function(){return parseInt(this.n(Fl.fX,0),10)};N(El,El.prototype.Nt,Fl.fX);
El.prototype.oF=function(){return parseInt(this.n(Fl.aY,0),10)};N(El,El.prototype.oF,Fl.aY);El.prototype.Oh=function(a){if(a==this.lq())return 4;else{var b=J(this.va()),c=1;if(b)c=b.Oh(a);return c}};El.prototype.jua=function(){return this.kc(Fl.mia,Al,j)};El.prototype.rwa=function(){return this.n(Fl.ss)};N(El,El.prototype.rwa,Fl.ss);var T=function(a){return S.call(this,a)};Tk(T,S,"KnolMeta");
var Hl={xK:"homeOf",Fe:"knolId",Cw:"knolPageVersionMap",KK:"publishedVersionMap",JK:"publishedVersion",mX:"editLock",nC:"attachmentsSize",Jw:"webContentDuplicates",Iw:"ttsVersion",Hw:"ttsBlobstoreId",Zia:"restrictSearch",LK:"relatedKnols",TY:"unrelatedKnols",ip:"langidLanguageCode",Lia:"knolRQ",ZVa:"knolRS",AC:"knolQQ",YVa:"knolQS",EX:"featuredTime",FX:"featuredVersion",Aia:"featuredBy",Jg:"pageviews",yXa:"uniqueVisits",KY:"templateId",WX:"labels",xw:"badges",NWa:"promotion",fVa:"eifs",eVa:"efp",
ZW:"collectionType",sK:"editorialCollection",XW:"collectionBranding",yw:"collectionDisplay",gp:"collectionSort",ns:"collectionReverse",WY:"verifiedWebsite",JX:"guidelinesUrl",AXa:"unpubFeedToken",OY:"translatedFromKnol",PY:"translatedFromLang",KX:"hasChatLog",MK:"rrnid",qs:"knolUrl",YW:"collectionReviewFor",kX:"editorialAuthors",lX:"editorialCollectionType",QK:"submissionCount",RK:"subCollectionSuggestionCount",zC:"knolPermanentUrl"};q=T.prototype;q.T=function(a){Rk(Hl,this,a);T.f.T.call(this,a)};
q.remove=function(){};q.ld=function(a){var b;if(a)if(a==-1){b=this.ld();if(b.bo()<b.vy())b=J({nodeId:this.va(),version:b.vy()})}else b=J({nodeId:this.va(),version:a});else b=J(this.va());return b};q.Wt=function(){return Vk({nodeId:Af(this.p()),type:cl})};q.va=function(){return this.n(Hl.Fe)};N(T,T.prototype.va,Hl.Fe);T.prototype.Vf=function(a){return this.setProperty(Hl.Fe,a)};T.prototype.Fta=function(){return parseInt(this.n(Hl.nC),10)};N(T,T.prototype.Fta,Hl.nC);q=T.prototype;
q.vqa=function(a){C("knol.KnolMeta");var b=parseInt(this.n(Hl.nC),10)-a;if(b<0){"Warning: negative accumulated attachment size on knol ID: "+this.n(Hl.Fe);b=0}this.setProperty(Hl.nC,b)};q.$h=function(a){if(!a)return l;var b=new Ec(this.Nh().dc());if(b.contains(a))return j;return l};q.j9=function(){return l};q.fc=function(a){if(!a)return l;var b=new Ec(this.Zx().dc());b.RC(this.Nh().dc());if(b.contains(a))return j;return l};q.S4=function(){new Cg;var a=this.kc(Hl.kX,function(){return new Cg},j);return a};
N(T,T.prototype.S4,Hl.kX);T.prototype.xz=function(a){var b=this.S4();return b?r(b.z(a)):l};T.prototype.l9=function(a){return this.getContributors().contains(a)};T.prototype.cy=function(){return this.n(Hl.YW)};N(T,T.prototype.cy,Hl.YW);T.prototype.Oh=function(a,b){w(a)||this.Ab("getPermissionsLevel, bad type");if(nf.test(a))return 1;var c=this.Lf(),d=l;if(c&&this.xz(a))d=j;if(this.$h(a))return d?6:4;if(this.fc(a))return d?7:3;if(d)return 5;if(b&&this.l9(a))return 2;return 1};
T.prototype.nf=function(){var a=this.tP(),b=this.mq();if(b==4)a="managed";return a};N(T,T.prototype.nf,Ok.lC);q=T.prototype;q.tP=function(){return T.f.nf.call(this)};q.Nh=function(){return Pj(this,Kj.HK)};q.Zx=function(){return Pj(this,Kj.jK)};q.getContributors=function(){return Pj(this,Kj.$W)};q.Hy=function(){return Pj(this,Kj.zY)};q.Bq=function(){return Pj(this,Kj.zh)};q.Qwa=function(){var a=this.Bq(),b=a.dc(),c=[];b&&vb(b,function(d){a.r6(d).Nt()!=0&&c.push(d)});return c};
q.V5=function(){return(this.Qwa()||[]).length};q.qP=function(){if(this.gd()==0)return 0;return this.n(Hl.QK,0)};q.Pwa=function(){return this.qP(j)};N(T,T.prototype.Pwa,Hl.QK);T.prototype.R6=function(){if(!this.FG())return 0;return this.n(Hl.RK,0)};T.prototype.uya=function(){return this.R6(j)};N(T,T.prototype.uya,Hl.RK);q=T.prototype;q.zya=function(a,b){var c=b||1,d=this.Bq();if(!d.Ga())for(var f=d.dc(),g=0;g<f.length;g++){var h=d.r6(f[g]);if(h.lq()==a&&h.wb()==c)return h}return k};
q.wya=function(a){if(this.ya()){var b;var c=this.p(),d=c+"_SUBMISSIONS",f=J(d);if(f)b=f;else{var g=d,h=new Bl(g,j);h[gi.ps]=g;h.Vf(J(h.he()).va());h.TFa();b=h}if(b)return b.iza(a)}return Al()};q.ck=function(a,b,c){var d=eh(a,this,b);if(d==1)return d;if(b==2&&r(c)&&c<this.Tl())return 1;if(a&&this.ng()==-2&&!a.ig()&&!this.fc(a.p()))return 1;return d};q.jna=function(a,b){return!this.ya()&&(!this.Lf()||this.Lf()==b)&&!!a&&(this.fc(a.p())||this.xz(a.p())||a.Cb())};q.kd=function(){return this.Nh().$i()};
q.fF=function(){var a=this.kd();return a?J(a):Il};q.K0=function(a){var b=this.kF();return parseInt(b.z(String(a)),10)};q.vIa=function(a){a=parseInt(a,10);for(var b=this.kF(),c=b.Bb(),d=-1,f=0;f<c.length;f++){var g=parseInt(c[f],10),h=parseInt(b.z(c[f]),10);if(a>=h&&(d<=g||d==-1))d=g}return d};q.Tl=function(){for(var a=this.kF(),b=a.Bb(),c=1,d=0;d<b.length;d++){var f=parseInt(b[d],10);if(f>c)c=f}return c};
q.Zxa=function(a,b,c){C("knol.KnolMeta");var d=this.ng();if(!c&&d==-2)return[-2,-1];var f=this.Tl();if(!la(a)||a<0||a>f)a=r(b)?this.vIa(b):f;if(!r(b)&&!r(a))b=this.K0(Number(a));return[a,b]};q.HL=function(){var a=this.ng()==-2;return!a&&!this.uR()&&!this.V3()};q.AEa=function(){return this.ld().O9()};q.zEa=function(){return this.ld().e4()};q.uR=function(){if(!r(this.t9))this.t9=this.ena();return this.t9};q.V3=function(){if(!r(this.QZ))this.QZ=this.dna();return this.QZ};
q.dna=function(){var a=this.Nh().dc();for(var b in a){var c=J(a[b]),d=c.Ft();if(d){if(!d.f5())return l}else return l}return j};q.ena=function(){if(this.ld().T5())return l;var a=l,b=this.Wt();if(b){if(b.N6()>=0.99)a=j;var c=J(this.kd()),d=c.uq().vq();if(d==4)a=j}if(a&&!this.FBa())return j;var f=this.Nh().dc();for(var g in f){c=J(f[g]);if(c.Ux())return j;var h=c.Ft();if(h)if(h.g5())return j}return this.AEa()||this.zEa()};q.FBa=function(){var a=this.Nh().dc();for(var b in a){var c=J(a[b]);if(c.pk())return j}return l};
q.kF=function(){var a=this.kc(Hl.Cw,function(){return new Cg},j);a.Ga()&&a.G(String(1),1);var b=this.ld();if(!b.MDa()&&!b.L9()){for(var c=b.vy(),d=a.Bb(),f=l,g=0;g<d.length;g++){var h=parseInt(d[g],10),i=parseInt(a.z(d[g]),10);if(i>c){this.ie().U("found page version mapped: "+i+" which is larger than the latest: "+c);a.remove(d[g]);f=j}if(c==b.bo()&&h>b.jk()){this.ie().U("found content version mapped: "+h+" which is larger than the latest: "+b.jk());a.remove(d[g]);f=j}}f&&this.ONa(a)}return a};
N(T,T.prototype.kF,Hl.Cw);T.prototype.ONa=function(a){this.zj(Hl.Cw,a)};T.prototype.lF=function(){return this.n(Hl.WX)||[]};N(T,T.prototype.lF,Hl.WX);T.prototype.cla=function(a,b,c){var d=c||1;if(b==-1)a.G(String(this.Tl()),d);else if(b>0)a.G(String(b),d);else a.z(String(this.Tl()))&&d==3&&a.G(String(this.Tl()),d);return a};T.prototype.m6=function(){var a=this.kc(Hl.KK,function(){return new Cg},j);if(a.Ga()){a=this.cla(a,this.ng());this.pOa(a)}return a};N(T,T.prototype.m6,Hl.KK);
T.prototype.pOa=function(a){this.zj(Hl.KK,a)};T.prototype.ng=function(){var a=this.n(Hl.JK,-1);return a};N(T,T.prototype.ng,Hl.JK);T.prototype.oOa=function(a){if(a!=-1&&a!=-2)e(new Error("policy argument to setPublishedVersion must be a member of: knol.PublishedVersion"));this.setProperty(Hl.JK,a)};T.prototype.Ava=function(){return this.n(Hl.xK)};N(T,T.prototype.Ava,Hl.xK);T.prototype.Wua=function(){return this.kc(Hl.mX,function(){return new kk},j)};N(T,T.prototype.Wua,Hl.mX);q=T.prototype;q.Rz=function(){return k};
q.refresh=function(a){return this.Rz(a,l)};q.dW=function(){return k};q.VO=function(){return this.BF(Hl.xK)};q.w4=function(a,b){var c=this.getContributors().Xl(),d=c.Bb(),f={};f.UV=0;f.bS=[];for(var g=0;g<d.length;g++){var h=d[g],i=c.z(h);i instanceof sh||this.Ab("contribution type error");if(!(b&&!i.cxa())){if(a==4){if(!this.$h(i.lg()))continue}else if(a==3)if(!this.fc(i.lg()))continue;if(!(i.pO()<=0)){f.bS.push(i);f.UV+=i.pO()}}}return f};q.md=function(){return this.ld().md()};q.pq=function(){return this.ld().pq()};
q.fj=function(){return this.ld().fj()};q.log=function(a){S.prototype.log.call(this,a);this.purgeCache()};q.purgeCache=function(){var a=this.ld();a&&a.purgeCache()};q.OF=function(){return this.sq(dl.Jw)};N(T,T.prototype.OF,Hl.Jw);q=T.prototype;q.Y9=function(a){return this.pta(a)!=k};q.pta=function(a){if(!a)return k;this.K5().hv();for(var b=this.K5().Xl().Dd(),c=0;c<b.length;c++)if(ua()-b[c].rk()<=ol){var d=J(b[c].lg());if(d.uf()==a&&(d.wb()==2||d.wb()==3))return d}return k};
q.XE=function(){if(T.f.XE.call(this))return j;var a=J(this.kd());if(!a)return j;return a.XE()};q.iy=function(){if(T.f.iy.call(this))return j;var a=J(this.kd());if(!a)return j;return a.iy()};q.Z4=function(){return this.n(Hl.EX)};q.sNa=function(a){this.setProperty(Hl.EX,a)};q.hva=function(){return this.n(Hl.FX)};q.tNa=function(a){this.setProperty(Hl.FX,a)};q.rNa=function(a){this.setProperty(Hl.Aia,a)};q.QP=function(){return this.sq(dl.Iw,0)};N(T,T.prototype.QP,Hl.Iw);T.prototype.PP=function(){return this.sq(dl.Hw)};
N(T,T.prototype.PP,Hl.Hw);T.prototype.getLanguage=function(){return this.sq(dl.ip)};N(T,T.prototype.getLanguage,Hl.ip);T.prototype.w5=function(){return this.sq(dl.AC)};T.prototype.qga=function(){return k};T.prototype.Yn=function(){var a=this.sq(dl.Jg);return new al(a)};N(T,T.prototype.Yn,Hl.Jg);T.prototype.Xta=function(){var a=this.Wt();if(!a)return l;var b=this.jxa(a);return this.Yta(b)};
T.prototype.Yta=function(a){if($e("trustAllAuthors")=="true")return j;if(this.iy())return l;var b=J(this.kd());if(!b)return l;if(b.pk())return j;if(b.uq().vq()==4)return l;var c=b.Ft();if(!c)return l;var d=this.Wt();if(!d)return l;var f=c.bO();if(!f||f<a.gma)return l;var g=d.w5();if(!g||g<a.DEa||d.N6()>a.EEa)return l;return j};T.prototype.jxa=function(){var a={};a.gma=0.5;a.VXa=0.75;a.DEa=0.8;a.WYa=0.85;a.EEa=0.75;return a};T.prototype.Eya=function(){return this.n(Hl.KY)};N(T,T.prototype.Eya,Hl.KY);
T.prototype.GE=function(){var a=new wh;a.gZ(this.n(Hl.xw));return a};N(T,T.prototype.GE,Hl.xw);T.prototype.gd=function(){return this.n(Hl.ZW,0)};N(T,T.prototype.gd,Hl.ZW);T.prototype.ya=function(){return this.gd()!=0};T.prototype.Ed=function(){var a=this.gd();return a>=2};T.prototype.FG=function(){var a=this.gd();return a==4};T.prototype.Lf=function(){return this.n(Hl.sK)};N(T,T.prototype.Lf,Hl.sK);T.prototype.mNa=function(a){this.setProperty(Hl.sK,a)};
T.prototype.mq=function(){var a=this.n(Hl.lX);if(!a)return k;return a};N(T,T.prototype.mq,Hl.lX);T.prototype.Ht=function(){return this.kc(Hl.yw,function(){return new gk},j)};N(T,T.prototype.Ht,Hl.yw);T.prototype.hq=function(){return this.n(Hl.gp,19)};N(T,T.prototype.hq,Hl.gp);T.prototype.Qda=function(a){this.setProperty(Hl.gp,a)};T.prototype.gq=function(){return this.kb(Hl.ns)};N(T,T.prototype.gq,Hl.ns);T.prototype.UMa=function(a){this.Av(Hl.ns,a)};
T.prototype.lO=function(){return this.kc(Hl.XW,Sh,j)};N(T,T.prototype.lO,Hl.XW);T.prototype.NF=function(){return this.n(Hl.WY)};N(T,T.prototype.NF,Hl.WY);T.prototype.oy=function(){return this.n(Hl.JX)};N(T,T.prototype.oy,Hl.JX);T.prototype.Oya=function(){return this.n(Hl.OY)};N(T,T.prototype.Oya,Hl.OY);T.prototype.Pya=function(){return this.n(Hl.PY)};N(T,T.prototype.Pya,Hl.PY);T.prototype.c8=function(){return this.kb(Hl.KX)};N(T,T.prototype.c8,Hl.KX);T.prototype.Yxa=function(){return this.n(Hl.MK)};
N(T,T.prototype.Yxa,Hl.MK);T.prototype.Uva=function(a,b){var c=this.ld(),d=this.n(Hl.qs);d||(d=c.n(Gl.qs));if(a||b){var f=Zd(b||{});r(a)&&f.G("version",String(a));var g=f.toString();return d+(g?"?"+g:"")}return d};N(T,T.prototype.Uva,Hl.zC);T.prototype.PNa=function(a){this.setProperty(Hl.qs,a)};T.prototype.Ln=function(){var a=l,b=this.kb(Ok.Bw,l);return a||b};N(T,T.prototype.Ln,Ok.Bw);var Jl=function(a){return S.call(this,a)};Tk(Jl,S,"KnolHistory");$d(Jl.prototype,Df.prototype);Jl.prototype.getTime=function(){return this.n("time")};N(Jl,Jl.prototype.getTime,"time");Jl.prototype.setTime=function(a){this.setProperty("time",a)};Jl.prototype.Wva=function(){return this.n("knolVersion")};N(Jl,Jl.prototype.Wva,"knolVersion");Jl.prototype.Vt=function(){return this.n("knolContentVersion")};N(Jl,Jl.prototype.Vt,"knolContentVersion");
Jl.prototype.mea=function(a){this.setProperty("knolContentVersion",a)};Jl.prototype.Aua=function(){return this.n("creatorId")};N(Jl,Jl.prototype.Aua,"creatorId");Jl.prototype.uwa=function(){return this.n("modificationType")};N(Jl,Jl.prototype.uwa,"modificationType");Jl.prototype.wwa=function(){return this.kc("modifierMap",function(){return new Cg},j)};N(Jl,Jl.prototype.wwa,"modifierMap");Jl.prototype.va=function(){return this.n(Hl.Fe)};N(Jl,Jl.prototype.va,"knolId");
Jl.prototype.Vf=function(a){return this.setProperty(Hl.Fe,a)};Jl.prototype.vwa=function(){return this.kc("modifiedMap",function(){return new Cg},j)};N(Jl,Jl.prototype.vwa,"modifiedMap");Jl.prototype.Oxa=function(){return this.kc("revertsMap",function(){return new Cg},j)};N(Jl,Jl.prototype.Oxa,"revertsMap");Jl.prototype.addRevisionEntry=function(){return j};var vf=function(a){return S.call(this,a)};Tk(vf,S,"Knol");$d(vf.prototype,hh.prototype);$d(vf.prototype,Df.prototype);var Gl={ww:"abstract",IW:"affiliation",TW:"bootstrapKnol",RX:"keywords",SX:"knolContentVersionNumber",zK:"knolHistoryId",Bi:"knolMetaId",lp:"snippet",Ew:"subtitle",kp:"references",bWa:"mainTextMd5Sum",nia:"collectionItems",qs:"knolUrl",zC:"knolPermanentUrl",UX:"knolTitleUrl"};q=vf.prototype;q.T=function(a){Rk(Gl,this,a);vf.f.T.call(this,a)};
q.log=function(a){vf.f.log.call(this,a);this.purgeCache();var b=this.Ia(),c=J(b.kd());c.purgeCache()};q.remove=function(){};q.MDa=function(){return this.L9()||r(this.b_a)};q.L9=function(){return r(this.a_a)};q.jk=function(){return this.n(Gl.SX,1)};N(vf,vf.prototype.jk,Gl.SX);vf.prototype.he=function(){return this.n(Gl.Bi)};N(vf,vf.prototype.he,Gl.Bi);vf.prototype.nea=function(a){this.setProperty(Gl.Bi,a)};vf.prototype.Ia=function(){return this.D=J({nodeId:this.he(),type:T})};
vf.prototype.Wt=function(){return Vk({nodeId:Af(this.he()),type:cl})};vf.prototype.bP=function(){return this.n(Gl.zK)};N(vf,vf.prototype.bP,Gl.zK);vf.prototype.MNa=function(a){this.setProperty(Gl.zK,a)};vf.prototype.Tva=function(){return this.xEa=J({nodeId:this.bP(),type:Jl})};vf.prototype.cf=function(a){vf.f.cf.call(this,a);this.gha()};vf.prototype.iu=function(){return this.n(Gl.Ew)};N(vf,vf.prototype.iu,Gl.Ew);vf.prototype.Fy=function(){return this.kc(Gl.kp,function(){return new Yh},j)};
N(vf,vf.prototype.Fy,Gl.kp);q=vf.prototype;q.Dea=function(a){this.zj(Gl.kp,a)};q.Ul=function(){var a=vf.f.Ul.call(this,j);return a};q.KI=function(a){vf.f.gJ.call(this,Ok.rs,a,j,j);this.gha()};q.nwa=function(){var a=this.Ul();if(!a||!a.length)return j;return l};q.sta=function(){return this.n(Gl.IW)};N(vf,vf.prototype.sta,Gl.IW);vf.prototype.Sva=function(){return this.n(Gl.RX)};N(vf,vf.prototype.Sva,Gl.RX);vf.prototype.ok=function(){return this.n(Gl.lp)};N(vf,vf.prototype.ok,Gl.lp);
vf.prototype.Lea=function(a){this.setProperty(Gl.lp,a)};vf.prototype.gha=function(){var a=this.CE();if(!a){a=this.Ul()||"";var b=a;if(b){b=b.replace(/<[^>]*>/g," ");a=b.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")}else a=b;a=Wa(Aa(a))}a=kf(a,125);this.Lea(a);this.JJa()};vf.prototype.CE=function(){return this.n(Gl.ww)};N(vf,vf.prototype.CE,Gl.ww);vf.prototype.g4=function(){return this.kb(Gl.TW,l)};N(vf,vf.prototype.g4,Gl.TW);
vf.prototype.z7=function(){if(!this.he()){this.ie();this.nl();C("knol.Group");var a=k;if(!a){a=k;a.pU("closed")}var b;if(this.he())b=this.Ia();else{b=new T(this.am());this.nea(b.p());b.Vf(this.p());b.ZMa(a.p());b.pU("closed");this.YRa("closed")}var c;if(this.bP())c=this.Tva();else{c=new Jl(this.am());this.MNa(c.p());c.Vf(this.p())}b.Nh().add(a.p());a.save([this,b,c])}};vf.prototype.fa=function(){return this.n(Gl.qs)};N(vf,vf.prototype.fa,Gl.qs);vf.prototype.By=function(){return this.n(Gl.zC)};
N(vf,vf.prototype.By,Gl.zC);vf.prototype.UP=function(){return this.n(Gl.UX)};N(vf,vf.prototype.UP,Gl.UX);
vf.prototype.YRa=function(a){C("knol.Knol");var b=this.Ia(),c=b&&b.ya(),d=(new bh(a)).VN(c);if(d){var f=[],g=[],h=d.Bb();vb(h,function(n){var o=[],p=gh(n);if(p==k)o.push(n);else if(p==4)o=b.Nh().dc();else if(p==3)o=b.Zx().dc();else if(p==2)o=b.getContributors().dc();else p==1&&o.push("#registered");var s=d.z(n);vb(o,function(u){if(s==1)!Db(f,u)&&!Db(g,u)&&g.push(u);else if(!Db(f,u)){f.push(u);Db(g,u)&&Hb(g,u)}},this)},this);var i=[];vb(f,function(n){i.push(n.indexOf("#")==0?n:"")},this);vb(g,function(n){i.push("-"+
(n.indexOf("#")==0?n:""))},this);for(var m=0;m<i.length;m++)if(i[m]=="-#registered")i[m]="#registered";this.dPa(i);this.Ia().LNa("addAttachment",i)}else this.cKa()};vf.prototype.Gxa=function(){return this.MT=this.MT||xf(this.gy())};vf.prototype.tOa=function(a){this.MT=a};vf.prototype.Oh=function(a,b){var c=this.Ia();if(c)return c.Oh(a,b);return 1};
var Kl=function(a,b){var c;if(a){var d=a.md()||a.Rh();c=d;var f=a.Ia(),g=J(f.kd());if(g){var h=g.mb();h=Ya(h,100);if(f.ya()){var i=d+(" \u2013 uma cole\u00e7\u00e3o de "+h);c=i}else{var m=d+(" - um knol por "+h);c=m}}}else if(b){h=Ya(b.mb(),100);var n=h+" - Knol: uma unidade de conhecimento";c=n}else if(req.args.oJa){var o="Unidades de conhecimento para: "+req.args.oJa;c=o}else c="Knol - uma unidade de conhecimento: compartilhe seus conhecimentos, publique sua experi\u00eancia.";return c};
vf.prototype.JJa=function(){var a=this.Ia();if(a){var b=a.kd();if(b){var c=J(b);c.mb()}}this.md();var d;this.p();d="";a.PNa(d);return d};vf.prototype.addRevisionEntry=function(){return j};vf.prototype.by=function(){return this.kc(Gl.nia,Wh,j)};var Ll=function(a,b){var c=a+(" "+b);return c},Ml=function(a,b){switch(b){case 1:return a%4==0&&(a%100!=0||a%400==0)?29:28;case 5:case 8:case 10:case 3:return 30}return 31},Nl=function(a,b,c,d,f,g){if(w(a)){var h=a,i=b;this.zi=h=="y"?i:0;this.fi=h=="m"?i:0;this.Fh=h=="d"?i:0;this.Sd=h=="h"?i:0;this.Ue=h=="n"?i:0;this.$e=h=="s"?i:0}else{this.zi=a||0;this.fi=b||0;this.Fh=c||0;this.Sd=d||0;this.Ue=f||0;this.$e=g||0}};
Nl.prototype.PB=function(a){var b=Math.min(this.zi,this.fi,this.Fh,this.Sd,this.Ue,this.$e),c=Math.max(this.zi,this.fi,this.Fh,this.Sd,this.Ue,this.$e);if(b<0&&c>0)return k;if(!a&&b==0&&c==0)return"PT0S";var d=[];b<0&&d.push("-");d.push("P");if(this.zi||a)d.push(Math.abs(this.zi)+"Y");if(this.fi||a)d.push(Math.abs(this.fi)+"M");if(this.Fh||a)d.push(Math.abs(this.Fh)+"D");if(this.Sd||this.Ue||this.$e||a){d.push("T");if(this.Sd||a)d.push(Math.abs(this.Sd)+"H");if(this.Ue||a)d.push(Math.abs(this.Ue)+
"M");if(this.$e||a)d.push(Math.abs(this.$e)+"S")}return d.join("")};Nl.prototype.tc=function(a){return a.zi==this.zi&&a.fi==this.fi&&a.Fh==this.Fh&&a.Sd==this.Sd&&a.Ue==this.Ue&&a.$e==this.$e};Nl.prototype.wa=function(){return new Nl(this.zi,this.fi,this.Fh,this.Sd,this.Ue,this.$e)};Nl.prototype.add=function(a){this.zi+=a.zi;this.fi+=a.fi;this.Fh+=a.Fh;this.Sd+=a.Sd;this.Ue+=a.Ue;this.$e+=a.$e};
var Ol=function(a,b,c){if(la(a)){this.R=new Date(a,b||0,c||1);this.xS(c||1)}else if(na(a)){this.R=new Date(a.getFullYear(),a.getMonth(),a.getDate());this.xS(a.getDate())}else{this.R=new Date;this.R.setHours(0);this.R.setMinutes(0);this.R.setSeconds(0);this.R.setMilliseconds(0)}};q=Ol.prototype;q.At=0;q.Mx=3;q.wa=function(){var a=new Ol(this.R);a.At=this.At;a.Mx=this.Mx;return a};q.getFullYear=function(){return this.R.getFullYear()};q.PF=function(){return this.getFullYear()};q.getMonth=function(){return this.R.getMonth()};
q.getDate=function(){return this.R.getDate()};q.getTime=function(){return this.R.getTime()};q.getDay=function(){return this.R.getDay()};q.Qva=function(){return(this.getDay()+6)%7};q.qza=function(){return(this.Qva()-this.At+7)%7};q.getUTCFullYear=function(){return this.R.getUTCFullYear()};q.getUTCMonth=function(){return this.R.getUTCMonth()};q.getUTCDate=function(){return this.R.getUTCDate()};q.getUTCDay=function(){return this.R.getDay()};q.getUTCHours=function(){return this.R.getUTCHours()};
q.getUTCMinutes=function(){return this.R.getUTCMinutes()};q.QO=function(){return this.At};q.nva=function(){return this.Mx};q.W5=function(){return Ml(this.getFullYear(),this.getMonth())};q.pza=function(){var a,b=this.getFullYear(),c=this.getMonth(),d=this.getDate(),f=new Date(b,c,d),g=this.Mx||3,h=this.At||0,i=(f.getDay()+6)%7,m=(i-h+7)%7,n=(g-h+7)%7,o=f.valueOf()+(n-m)*864E5,p=(new Date((new Date(o)).getFullYear(),0,1)).valueOf();return a=Math.floor(Math.round((o-p)/864E5)/7)+1};
q.getTimezoneOffset=function(){return this.R.getTimezoneOffset()};q.TP=function(){var a,b=this.getTimezoneOffset();if(b==0)a="Z";else{var c=Math.abs(b)/60,d=Math.floor(c),f=(c-d)*60;a=(b>0?"-":"+")+bb(d,2)+":"+bb(f,2)}return a};q.G=function(a){this.R=new Date(a.getFullYear(),a.getMonth(),a.getDate())};q.setFullYear=function(a){this.R.setFullYear(a)};q.setMonth=function(a){this.R.setMonth(a)};q.setDate=function(a){this.R.setDate(a)};q.setTime=function(a){this.R.setTime(a)};q.setUTCFullYear=function(a){this.R.setUTCFullYear(a)};
q.setUTCMonth=function(a){this.R.setUTCMonth(a)};q.setUTCDate=function(a){this.R.setUTCDate(a)};q.dea=function(a){this.At=a};q.eea=function(a){this.Mx=a};
q.add=function(a){if(a.zi||a.fi){var b=this.getMonth()+a.fi+a.zi*12,c=this.PF()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d=Ml(c,b),f=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(f)}if(a.Fh){var g=new Date(this.PF(),this.getMonth(),this.getDate(),12),h=new Date(g.getTime()+a.Fh*864E5);this.setDate(1);this.setFullYear(h.getFullYear());this.setMonth(h.getMonth());this.setDate(h.getDate());this.xS(h.getDate())}};
q.PB=function(a,b){var c=[this.getFullYear(),bb(this.getMonth()+1,2),bb(this.getDate(),2)];return c.join(a?"-":"")+(b?this.TP():"")};q.tc=function(a){return this.PF()==a.PF()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};q.toString=function(){return this.PB()};q.xS=function(a){if(this.getDate()!=a){var b=this.getDate()<a?1:-1;this.R.setUTCHours(this.R.getUTCHours()+b)}};q.valueOf=function(){return this.R.valueOf()};
var Pl=function(a,b,c,d,f,g,h){this.R=la(a)?new Date(a,b||0,c||1,d||0,f||0,g||0,h||0):new Date(a?a.getTime():ua())};A(Pl,Ol);q=Pl.prototype;q.getHours=function(){return this.R.getHours()};q.getMinutes=function(){return this.R.getMinutes()};q.getSeconds=function(){return this.R.getSeconds()};q.getMilliseconds=function(){return this.R.getMilliseconds()};q.getUTCDay=function(){return this.R.getUTCDay()};q.getUTCHours=function(){return this.R.getUTCHours()};q.getUTCMinutes=function(){return this.R.getUTCMinutes()};
q.getUTCSeconds=function(){return this.R.getUTCSeconds()};q.getUTCMilliseconds=function(){return this.R.getUTCMilliseconds()};q.setHours=function(a){this.R.setHours(a)};q.setMinutes=function(a){this.R.setMinutes(a)};q.setSeconds=function(a){this.R.setSeconds(a)};q.setMilliseconds=function(a){this.R.setMilliseconds(a)};q.setUTCHours=function(a){this.R.setUTCHours(a)};q.setUTCMinutes=function(a){this.R.setUTCMinutes(a)};q.setUTCSeconds=function(a){this.R.setUTCSeconds(a)};q.setUTCMilliseconds=function(a){this.R.setUTCMilliseconds(a)};
q.add=function(a){Ol.prototype.add.call(this,a);a.Sd&&this.setHours(this.R.getHours()+a.Sd);a.Ue&&this.setMinutes(this.R.getMinutes()+a.Ue);a.$e&&this.setSeconds(this.R.getSeconds()+a.$e)};q.PB=function(a,b){var c=Ol.prototype.PB.call(this,a);if(a)return c+" "+bb(this.getHours(),2)+":"+bb(this.getMinutes(),2)+":"+bb(this.getSeconds(),2)+(b?this.TP():"");return c+"T"+bb(this.getHours(),2)+bb(this.getMinutes(),2)+bb(this.getSeconds(),2)+(b?this.TP():"")};q.tc=function(a){return this.getTime()==a.getTime()};
q.toString=function(){return this.PB()};q.wa=function(){var a=new Pl(this.R);a.dea(this.QO());a.eea(this.nva());return a};var Ql=function(a){return S.call(this,a)};Tk(Ql,S,"AuthorFeedEvents");var Rl=function(a){this.VV=a.total;this.ud=a.history;this.iSa=a.update_timestamp};D(Rl,Df);Rl.prototype.VP=function(){return this.VV};Rl.prototype.UO=function(){return this.ud};Rl.prototype.aQ=function(){if(!this.ud||this.ud.length==0)return k;for(var a=Math.min(this.ud.length,7),b=0,c=0;c<a;c++)b+=this.ud[c];return b};Rl.prototype.aza=function(){return this.iSa};var Sl=function(a){return S.call(this,a)};Tk(Sl,S,"AuthorOffline");var Tl={Gia:"gaiaDisabled",Fia:"gaiaDeleted",Hia:"gradsSpamScoreBeta",zUa:"clusterScore",eia:"authorRQ",pC:"authorQQ",Jg:"pageviews",dia:"authorEventsPageviewTotal",bia:"authorEventsPageviewHistory",cia:"authorEventsPageviewHistoryTimestamp",Ym:"comments",Kg:"reviews",jp:"ratings",zh:"suggestions",xw:"badges",AUa:"collectionCategories"};q=Sl.prototype;q.T=function(a){Rk(Tl,this,a);Sl.f.T.call(this,a)};q.g5=function(){return this.kb(Tl.Gia)};
q.f5=function(){return this.kb(Tl.Fia)};q.bO=function(){return this.n(Tl.pC)};q.Yn=function(){var a=this.n(Tl.Jg),b=this.n(Tl.dia,0),c=this.n(Tl.cia,ua()),d=this.n(Tl.bia,"[]"),f=Dd(d),g,h=b,i=c,m=f;a&&a.length>0&&new al(a);var n={};n.total=h;n.update_timestamp=i||0;n.history=m;return g=new Rl(n)};N(Sl,Sl.prototype.Yn,Tl.Jg);Sl.prototype.NE=function(){var a=this.n(Tl.Ym);return new al(a)};N(Sl,Sl.prototype.NE,Tl.Ym);Sl.prototype.DP=function(){var a=this.n(Tl.Kg);return new al(a)};
N(Sl,Sl.prototype.DP,Tl.Kg);Sl.prototype.AF=function(){var a=this.n(Tl.jp);return new al(a)};N(Sl,Sl.prototype.AF,Tl.jp);Sl.prototype.HF=function(){var a=this.n(Tl.zh);return new al(a)};N(Sl,Sl.prototype.HF,Tl.zh);Sl.prototype.GE=function(){var a=this.n(Tl.xw),b=new wh;b.gZ(a);return b};var Ul=function(a){return S.call(this,a)};Tk(Ul,vf,"Review");$d(Ul.prototype,Df.prototype);var Vl={VX:"knolVersionNumber",CY:"reviewType",AY:"reviewDetails"};q=Ul.prototype;q.T=function(a){Rk(Vl,this,a);Ul.f.T.call(this,a)};q.zBa=function(){return!this.Ia().Hy().Ga()};q.ld=function(){var a=this.Ia().Hy();if(!a.Ga())return J(a.$i()).ld();return k};q.mna=function(a){if(!this.zBa())return l;if(this.Ia().fc(a))return l;return!this.Ia().Hy().mva().fc(a)};
q.rDa=function(){return Ba(this.iu())&&this.nwa()&&this.t6().Ga()};q.Xva=function(){return this.n(Vl.VX)};N(Ul,Ul.prototype.Xva,Vl.VX);Ul.prototype.Qxa=function(){return this.n(Vl.CY)};N(Ul,Ul.prototype.Qxa,Vl.CY);Ul.prototype.t6=function(){return this.kc(Vl.AY,ll,j)};N(Ul,Ul.prototype.t6,Vl.AY);var uf=function(a){return S.call(this,a)};Tk(uf,S,"Author");$d(uf.prototype,hh.prototype);$d(uf.prototype,Df.prototype);
var Wl={mC:"admin",lK:"authName",gX:"disambiguation",vK:"homeKnol",wK:"homeKnolUrl",fY:"nickName",qY:"profile",sY:"publishNewKnols",uY:"quota",VY:"useAuth",HW:"adsensePublisherId",NTa:"adsenseSetupDate",Hia:"gradsSpamScoreBeta",qUa:"canIndex",Vha:"allOKB",Uha:"allOCB",yY:"rto",GW:"activeTimeMS",eia:"authorRQ",bUa:"authorRS",pC:"authorQQ",aUa:"authorQS",KW:"awa",JW:"aai",KVa:"ktd",EUa:"ctd",lUa:"blocksMade",kUa:"blocksConfirmed",JTa:"abuseReportsMade",jUa:"blocksAgainst",ITa:"abuseReportsAgainst",
$Ta:"authorMailAcksId",GX:"feedEventsId",nVa:"flagged",oVa:"flaggedCorrectly",pVa:"flaggedIncorrectly",yw:"collectionDisplay",gp:"collectionSort",ns:"collectionReverse",hX:"disambiguationArray"};uf.prototype.T=function(a){Rk(Wl,this,a);uf.f.T.call(this,a)};uf.prototype.Pl=function(){return this.n(Wl.HW)};N(uf,uf.prototype.Pl,Wl.HW);q=uf.prototype;q.Bta=function(){return this.n(Wl.KW)==1};q.Jda=function(a){this.setProperty(Wl.KW,a?1:0)};q.zta=function(){return this.n(Wl.JW)==1};
q.Ida=function(a){this.setProperty(Wl.JW,a?1:0)};q.Ux=function(){return this.kb(Wl.Vha)};q.xta=function(){var a=this.x4(),b=l;if(a<1235071979220)b=this.Ux();return b||this.kb(Wl.Uha)};q.Rxa=function(){var a=this.Sxa();if(a!=0)return a;if(this.pk())return 1;if(this.uq().vq()==4)return-1;var b=this.Ft();if(!b)return 0;var c=b.bO();if(c>0.99)return 1;return 0};q.Sxa=function(){return parseInt(this.n(Wl.yY,0),10)};q.UI=function(a){this.setProperty(Wl.yY,a)};
q.S3=function(){return parseInt(this.n(Wl.GW,0),10)};q.uMa=function(a){this.setProperty(Wl.GW,a)};q.bO=function(){return this.sq(Tl.pC)};q.remove=function(){};q.hpa=function(){return k};q.getAdSensePending=function(){return k};q.uq=function(){var a=this.kc(Wl.uY,function(){return new Sg},j);a.dSa(this);return a};q.qOa=function(a){this.zj(Wl.uY,a)};q.Ywa=function(){return Pj(this,Kj.nY)};q.Mta=function(){return Pj(this,Kj.NW)};q.yva=function(){return this.BF(Wl.vK)};q.zva=function(){return this.n(Wl.vK)};
N(uf,uf.prototype.zva,Wl.vK);uf.prototype.ik=function(){return this.n(Wl.wK)||""};N(uf,uf.prototype.ik,Wl.wK);uf.prototype.cwa=function(){return this.n(Wl.wK)};uf.prototype.fF=function(){return Il};var Il={};Il.km=l;Il.kc=function(a){if(!this.km){this.km=j;this.adsensePolicy=new th;this.license=new Lg;this.accessType=new "moderated"}return this[a]};Il.j5=function(a,b){var c=this.n(a);return c?b.call(c):k};uf.prototype.a4=function(){return this.n(Wl.lK)};N(uf,uf.prototype.a4,Wl.lK);
uf.prototype.Mda=function(a){this.setProperty(Wl.lK,a);this.Xna()};uf.prototype.S5=function(){var a=this.On();if(a)return a&&(a.fullName||a.nickName);return this.n(Wl.fY)};N(uf,uf.prototype.S5,Wl.fY);uf.prototype.ZP=function(){return this.kb(Wl.VY,j)};N(uf,uf.prototype.ZP,Wl.VY);uf.prototype.rxa=function(){return Boolean(this.n(Wl.sY,j))};N(uf,uf.prototype.rxa,Wl.sY);q=uf.prototype;
q.mb=function(a){var b;if(this.ZP())b=this.a4();if(!b||!b.length)b=this.S5();if(a)return b||"";if(!w(b)||!b.length)b="An\u00f4nimo";return b};q.ej=function(){if(!r(this.OV))this.OV=mf(this.mb(),100);return this.OV};q.Xna=function(){delete this.OV};q.Gta=function(){if(this.ZP())return this.m5()=="verified";return l};q.On=function(){return k};var Xl=function(){return k};uf.prototype.qxa=function(){return this.n(Wl.qY)};N(uf,uf.prototype.qxa,Wl.qY);Il.fF=function(){return k};q=uf.prototype;q.fj=function(){return this.pq()};
q.pq=function(){var a=hh.prototype.fj.call(this);if(!a){var b=window.manifest.serverBase,c=this.On();a=c&&c.photo?b+c.photo:b+"/static/images/NoPicture.gif"}return a};q.m5=function(){var a=this.On(),b="";if(a){b=a.idvStatus;r(b)||(b="")}return b};q.Twa=function(){var a=this.On();return a?a.occupation:""};q.mF=function(){var a=this.On();return a?a.location:""};q.Ot=function(){var a=this.On();if(a){var b=this.Jn();return b.join("\n")}else return this.n(Wl.gX)};N(uf,uf.prototype.Ot,Wl.gX);
uf.prototype.Jn=function(){var a=this.On();if(a){var b=[];if(a.occupation&&a.currentCompany){var c=a.occupation+(" - "+a.currentCompany);b[0]=c}else if(a.occupation)b[0]=a.occupation;else if(a.currentCompany)b[0]=a.currentCompany;if(a.location)b[1]=a.location;return b}else return this.n(Wl.hX)};N(uf,uf.prototype.Jn,Wl.hX);q=uf.prototype;q.oza=function(){var a=this.On();return a?a.websites:[]};q.ig=function(){return l};q.Cb=function(){return l};q.Ft=function(){return Vk({nodeId:Af(this.p()),type:Sl})};
q.pna=function(a,b){if(!a)return l;var c=a.Ia();if(!c)return l;var d=a instanceof Ul;if(b){if(!d)return l}else{if(d)return l;if(!(a instanceof vf))return l}if(c.fc(this.p()))return j;if(c.ng()!=-1)return l;var f=a.Wn();if(f.type==2)return l;return j};q.Hta=function(){return this.n(Wl.GX)};N(uf,uf.prototype.Hta,Wl.GX);uf.prototype.pk=function(){return l};uf.prototype.Ht=function(){return this.kc(Wl.yw,function(){return jk},j)};N(uf,uf.prototype.Ht,Wl.yw);
uf.prototype.hq=function(){return this.n(Wl.gp,19)};N(uf,uf.prototype.hq,Wl.gp);uf.prototype.Qda=function(a){this.setProperty(Wl.gp,a)};uf.prototype.gq=function(){return this.kb(Wl.ns)};N(uf,uf.prototype.gq,Wl.ns);uf.prototype.Ln=function(){return this.kb(Ok.Bw,l)};N(uf,uf.prototype.Ln,Ok.Bw);var Yl,W={};W.G=function(a,b){a.className=b};W.z=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]};W.add=function(a){var b=W.z(a),c=Ob(arguments,1),d=W.GZ(b,c);a.className=b.join(" ");return d};W.remove=function(a){var b=W.z(a),c=Ob(arguments,1),d=W.KA(b,c);a.className=b.join(" ");return d};W.GZ=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!Db(a,b[d])){a.push(b[d]);c++}return c==b.length};
W.KA=function(a,b){for(var c=0,d=0;d<a.length;d++)if(Db(b,a[d])){Pb(a,d--,1);c++}return c==b.length};W.WQa=function(a,b,c){for(var d=W.z(a),f=l,g=0;g<d.length;g++)if(d[g]==b){Pb(d,g--,1);f=j}if(f){d.push(c);a.className=d.join(" ")}return f};W.Lka=function(a,b,c){var d=W.z(a);if(w(b))Hb(d,b);else ja(b)&&W.KA(d,b);if(w(c)&&!Db(d,c))d.push(c);else ja(c)&&W.GZ(d,c);a.className=d.join(" ")};W.hj=function(a,b){return Db(W.z(a),b)};W.sc=function(a,b,c){c?W.add(a,b):W.remove(a,b)};
W.fw=function(a,b){var c=!W.hj(a,b);W.sc(a,b,c);return c};var Zl="A",$l="P";var cm=function(a){return a?new am(bm(a)):Yl||(Yl=new am)},dm=function(a){return w(a)?document.getElementById(a):a},Y=dm,fm=function(a,b,c){return em(document,a,b,c)},em=function(a,b,c,d){var f=d||a,g=b&&b!="*"?b.toLowerCase():"";if(f.querySelectorAll&&(g||c)&&(!we||gm(a)||Ne("528"))){var h=g+(c?"."+c:"");return f.querySelectorAll(h)}if(c&&f.getElementsByClassName){var i=f.getElementsByClassName(c);if(g){for(var m={},n=0,o=0,p;p=i[o];o++)if(g==p.nodeName.toLowerCase())m[n++]=p;m.length=n;return m}else return i}i=
f.getElementsByTagName(g||"*");if(c){m={};for(o=n=0;p=i[o];o++){var s=p.className;if(typeof s.split=="function"&&Db(s.split(" "),c))m[n++]=p}m.length=n;return m}else return i},hm=fm,jm=function(a,b){ac(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in im)a.setAttribute(im[d],c);else a[d]=c})},im={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",
usemap:"useMap",frameborder:"frameBorder",type:"type"},km=function(a){var b;var c=a||window,d=c.document;if(we&&!Ne("500")&&!xe){if(typeof c.innerHeight=="undefined")c=window;var f=c.innerHeight,g=c.document.documentElement.scrollHeight;if(c==c.top)if(g<f)f-=15;b=new Dh(c.innerWidth,f)}else{var h=gm(d)&&(!ve||ve&&Ne("9.50"))?d.documentElement:d.body;b=new Dh(h.clientWidth,h.clientHeight)}return b},lm=function(a){var b=a||ba||window;return cm(b.document).Kn()},mm=function(a){return!we&&gm(a)?a.documentElement:
a.body},nm=function(a){return a?a.parentWindow||a.defaultView:window},pm=function(){return om(document,arguments)},om=function(a,b){var c=b[0],d=b[1];if(F&&d&&(d.name||d.type)){var f=["<",c];d.name&&f.push(' name="',Ra(d.name),'"');if(d.type){f.push(' type="',Ra(d.type),'"');d=sa(d);delete d.type}f.push(">");c=f.join("")}var g=a.createElement(c);if(d)if(w(d))g.className=d;else jm(g,d);if(b.length>2)for(var h=function(n){if(n)g.appendChild(w(n)?a.createTextNode(n):n)},i=2;i<b.length;i++){var m=b[i];
ka(m)&&!(na(m)&&m.nodeType>0)?vb(qm(m)?Lb(m):m,h):h(m)}return g},rm=pm,tm=function(a){return sm(document,a)},sm=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.firstChild;else{for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);return d}},gm=function(a){return a.compatMode=="CSS1Compat"},um=function(a,b){a.appendChild(b)},vm=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},wm=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,
b)},xm=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)},Z=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):k},ym=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)},zm=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=11)if(a.removeNode)return a.removeNode(l);else{for(;b=a.firstChild;)c.insertBefore(b,a);return Z(a)}},Bm=function(a){return Am(a.firstChild,j)},Am=function(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a},Cm=function(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},Fm=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;else{var f=a.parentNode,g=b.parentNode;if(f==g)return Dm(a,
b);if(!c&&Cm(f,b))return-1*Em(a,b);if(!d&&Cm(g,a))return Em(b,a);return(c?a.sourceIndex:f.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}}var h=bm(a),i,m;i=h.createRange();i.selectNode(a);i.collapse(j);m=h.createRange();m.selectNode(b);m.collapse(j);return i.compareBoundaryPoints(ba.Range.START_TO_END,m)},Em=function(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return Dm(d,a)},Dm=function(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1},Gm=function(){var a,
b=arguments.length;if(b){if(b==1)return arguments[0]}else return k;var c=[],d=Infinity;for(a=0;a<b;a++){for(var f=[],g=arguments[a];g;){f.unshift(g);g=g.parentNode}c.push(f);d=Math.min(d,f.length)}var h=k;for(a=0;a<d;a++){for(var i=c[0][a],m=1;m<b;m++)if(i!=c[m][a])return h;h=i}return h},bm=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},Hm=function(a){var b;return b=we?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document},Im=function(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{vm(a);var c=bm(a);a.appendChild(c.createTextNode(b))}},Jm=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=bm(a),c=b.createElement("div");c.appendChild(a.cloneNode(j));return c.innerHTML}},Lm=function(a,b){var c=[],d=Km(a,b,c,j);return d?c[0]:undefined},Mm=function(a,b){var c=[];Km(a,b,c,l);return c},Km=function(a,b,c,d){if(a!=k)for(var f=
0,g;g=a.childNodes[f];f++){if(b(g)){c.push(g);if(d)return j}if(Km(g,b,c,d))return j}return l},Nm={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Om={IMG:" ",BR:"\n"},Pm=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return la(c)&&c>=0}return l},Qm=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")},Sm=function(a){var b;if(F&&"innerText"in a)b=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var c=[];Rm(a,c,j);b=c.join("")}b=b.replace(/\xAD/g,"");b=b.replace(/ +/g,
" ");if(b!=" ")b=b.replace(/^\s*/,"");return b},Tm=function(a){var b=[];Rm(a,b,l);return b.join("")},Rm=function(a,b,c){if(!(a.nodeName in Nm))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 Om)b.push(Om[a.nodeName]);else for(var d=a.firstChild;d;){Rm(d,b,c);d=d.nextSibling}},qm=function(a){if(a&&typeof a.length=="number")if(na(a))return typeof a.item=="function"||typeof a.item=="string";else if(ma(a))return typeof a.item=="function";
return l},Vm=function(a,b,c){return Um(a,function(d){return(!b||d.nodeName==b)&&(!c||W.hj(d,c))},j)},Um=function(a,b,c,d){if(!c)a=a.parentNode;for(var f=d==k,g=0;a&&(f||g<=d);){if(b(a))return a;a=a.parentNode;g++}return k},am=function(a){this.fd=a||ba.document||document};q=am.prototype;q.M=cm;q.J=function(){return this.fd};q.e=function(a){return w(a)?this.fd.getElementById(a):a};q.Ec=am.prototype.e;q.RE=function(a,b,c){return em(this.fd,a,b,c)};q.Qha=am.prototype.RE;
q.lza=function(a){return km(a||this.ha())};q.h=function(){return om(this.fd,arguments)};q.Xm=am.prototype.h;q.createElement=function(a){return this.fd.createElement(a)};q.createTextNode=function(a){return this.fd.createTextNode(a)};q.ZBa=function(a){return sm(this.fd,a)};q.AG=function(){return gm(this.fd)};q.ha=function(){return this.fd.parentWindow||this.fd.defaultView};q.O4=function(){return mm(this.fd)};q.Kn=function(){var a,b=mm(this.fd);return a=new yh(b.scrollLeft,b.scrollTop)};
q.appendChild=um;q.removeChildren=vm;q.hR=wm;q.wG=xm;q.removeNode=Z;q.replaceNode=ym;q.LN=zm;q.d5=Bm;q.contains=Cm;q.Z5=bm;q.osa=Mm;q.W6=Sm;var Wm="javascript:void(0)",Xm={AREA:j,BASE:j,BASEFONT:j,BR:j,COL:j,FRAME:j,HR:j,IMG:j,INPUT:j,ISINDEX:j,LINK:j,META:j,PARAM:j},Ym={IMG:[{name:"alt",value:""}]},Zm={c:"class"},$m={d:k,b:k,children:k},an=function(a,b,c,d){this.name=a;this.attributes=b||[];this.text=c||"";this.children=d||[];this.Nka()},bn="___FRAGMENT___";an.prototype.wR=function(){return this.name==bn};var cn="___TEXT_NODE___";q=an.prototype;q.JG=function(){return this.name==cn};q.ke=function(){return Boolean(this.children.length)};
q.Nka=function(){var a=this.name.toUpperCase(),b=Ym[a];b&&vb(b,function(c){ha(this.Xx(c.name))&&this.$d(dn(c.name,c.value))},this)};q.aEa=function(){return!!(this.name&&this.name.toLowerCase()=="img"&&this.Xx("sprite"))};
q.rQa=function(){var a=this.Xx("src");if(a){var b=a.lastIndexOf("/");if(b!=-1)a=a.substring(b+1);b=a.lastIndexOf(".");if(b!=-1)a=a.substring(0,b);var c=this.Xx("sprite");a="knol-sprite-"+c+"-"+a;var d=this.Xx("class");if(d)d+=" "+a;else d=a;this.$d(dn("class",d));var f=ak();this.$d(dn("src",f));this.removeAttribute("sprite")}};
q.$d=function(a){if(this.wR()||this.JG())e(new Error("cannot add attributes to a fragment"));if(a)if(a instanceof en){this.removeAttribute(a.name);this.attributes.push(a)}else e(new Error("invalid attribute specified: "+a));return this};q.removeAttribute=function(a){Ib(this.attributes,function(b){return b.name==a})};
q.Xx=function(a){if(this.wR()||this.JG())e(new Error("cannot get attributes from a fragment"));for(var b=0;b<this.attributes.length;b++)if(this.attributes[b].name==a)return this.attributes[b].value;return k};q.addElement=function(a){if(this.JG())e(new Error("cannot add elements to a text node"));if(a)if(w(a))this.children.push(I({b:cn,d:a}));else na(a)&&!ma(a)&&this.children.push(I(a))};q.Q=function(){this.addElement(I({b:"br"}))};var fn=function(){return I({b:"div",c:"knol-clearer-div"})};
an.prototype.la=function(){this.addElement(fn())};an.prototype.v=function(){var a=[],b=this.wR()||this.JG(),c=Xm[this.name.toUpperCase()];this.aEa()&&this.rQa();if(!b){a.push("<"+this.name);for(var d=0;d<this.attributes.length;d++)a.push(" "+this.attributes[d].v());c&&a.push(" /");a.push(">")}if(!c){a.push(this.Mva());b||a.push("</"+this.name+">")}return a.join("")};an.prototype.aj=function(){return tm(this.v())};
an.prototype.Mva=function(){var a=[];a.push(this.text);for(var b=0;b<this.children.length;b++)a.push(this.children[b].v());return a.join("")};var gn=/^[a-zA-Z][a-zA-Z0-9\-\_\:\.]*$/,en=function(a,b){if(!gn.test(a))e(new Error("illegal html attribute name: "+a+" with value: "+b));this.name=a;this.bPa(b)};en.prototype.bPa=function(a){if(this.EDa())if(a)this.value=this.name;else delete this.value;else this.value=Xe(a)};
var hn=["compact","checked","declare","readonly","disabled","selected","defer","ismap","nohref","noshade","nowrap","multiple","noresize"];en.prototype.EDa=function(){return Db(hn,this.name)};en.prototype.v=function(){return r(this.value)?this.name+'="'+this.value+'"':""};
var jn=function(a){var b=a||new an(bn);if(b instanceof an)return b;var c=b.children||[],d=b.b||k,f=b.d||k,g;if(d)g=new an(d,k,f,k);else e(new Error("cannot create an HTML element without a tag name"));for(var h in b)h in $m||g.$d(dn(h,b[h]));for(var i=0;i<c.length;i++){var m=k;try{m=I(c[i])}catch(n){C("knol.ui.HTML").U("could not create element from: "+Se(c[i]),n)}g.addElement(m)}return g},I=jn,dn=function(a,b){var c=Zm[a]||a;if(c)return new en(c,b)},kn=function(a,b){return dn(a,b)},ln=function(a,
b){var c=a||Wm,d={b:"a",href:c};if(w(b))d.d=b;else if(na(b)&&!ma(b))d.children=[I(b)];else e(new Error('cannot create inner text or children from: "'+b+'" of type "'+Gc(typeof b)+'"'));return I(d)};var rn=function(){},sn=l;q=rn.prototype;q.n9=function(){return l};q.P9=function(a){return a!="gadget"};q.U4=function(){return"full"};q.Zua=function(a){var b=new Md(document.location.href);return String(b.Nf("embed."+a))};q.xDa=function(){return this.U4()=="full"};
var un=function(){window.jstiming.load.tick("prt");tn(Xf(2));Yf(2);sn=j},vn=function(){tn(Xf(1));Yf(1);var a=window.jstiming.load,b=ng();if(b)a.name=b;yf(a)},tn=function(a){for(var b=C("knol.ui.Component"),c=0;c<a.length;c++){var d=a[c];try{eval(d)}catch(f){b.za('failed to eval "'+d+'"',f)}}};q=rn.prototype;q.create=function(){};q.write=function(a){if(!this.Se)this.Se=[];a&&this.Se.push(a.toString())};q.zn=function(a,b,c,d){Qf(2,a,b,c,d)};q.Xj=function(a,b,c,d){Qf(1,a,b,c,d)};
q.L=function(a){if(a&&a instanceof an){if(!this.Se)this.Se=[];this.Se.push(a.v())}};q.aK=function(a,b,c,d,f){this.L(this.Zb(a,b,c,d,f))};q.Zb=function(a,b,c,d,f){if(!b||!b.length)b="Sem t\u00edtulo";var g=ln(a,b.toString());c&&g.$d(dn("target",c));d&&g.$d(dn("name",d));f&&g.$d(dn("class",f));return g};q.Se=k;q.j0=function(){this.Se=[]};q.bj=function(){this.j0();this.create();return this.rEa()};q.rEa=function(){if(!this.Se)return k;var a="",b=this.Se.join(a);delete this.Se;return b};
q.zd=function(){var a=C("knol.ui.Component");if(this.P9(this.U4()))try{Ek(z(function(){var c=this.bj();if(this.e())this.e().innerHTML=c;this.rw()},this))}catch(b){if(wa(String(b.javaException),"com.google.jotspot.server.ui.RedirectException"))a.F("Redirect");else{a.za("failed to writeHTML:"+a.mb(),b);if(this.n9())e(b)}}};q.rw=function(){};var wn=function(){};D(wn,rn);var xn=[{id:"knol-manage-page-manage-general",fo:j,vp:j},{id:"knol-manage-page-manage-events",fo:j,vp:l,dba:["ar"]},{id:"knol-manage-page-manage-collection",fo:j,vp:l,mba:j,ZU:j},{id:"knol-manage-page-manage-owners",fo:l,vp:l,mba:j},{id:"knol-manage-page-manage-authors",fo:l,vp:l},{id:"knol-manage-page-manage-reviewers",fo:l,vp:l,ZU:l},{id:"knol-manage-page-manage-unpublish",fo:l,vp:j}];
wn.prototype.create=function(){var a=I({b:"div",id:"knol-manage"});a.addElement(yn());this.write(a.v())};
var yn=function(){var a=I({b:"div"});a.addElement({b:"div",id:"knol-manage-pane"});for(var b=0;b<xn.length;b++){var c=xn[b];zn(c,dg(),O(),P())&&a.addElement({b:"div",id:c.id})}return a},zn=function(a,b,c,d){if(a.mba){if(!d)return l;if(!d.ig()&&!b.Ia().$h(d.p()))return l}var f=b instanceof Ul,g=f&&!!c.cy(),h=c.gd()!=0;if(f&&(!a.vp||g))return l;if(a.ZU!=undefined&&!!a.ZU^h)return l;if(a.dba&&!Db(a.dba,mg()))return l;return j},An=function(a){var b="/"+a;return"/k/-/-"+b},Bn=function(a,b){var c=bf()+
"-/-/"+a;if(b){if(b.charAt(0)!="_")c+="_";c+=b}return c};var Cn=function(a){this.Eja=a||"moderated"};D(Cn,rn);
var Dn=function(a){if(!a)return j;return a.mq()!=4||a.tP()=="open"},En=function(a){if(!a)return j;return a.mq()!=4||a.tP()=="open"},Fn=[{name:"open",pB:"Colabora\u00e7\u00e3o aberta",label:"Modelo de colabora\u00e7\u00e3o aberta",Qc:"Todos os usu\u00e1rios conectados podem editar o knol",CM:"Todos os usu\u00e1rios conectados podem editar a cole\u00e7\u00e3o",BM:"Todos os usu\u00e1rios conectados podem editar o knol ou a cole\u00e7\u00e3o",type:"open",nb:"icons/open_collaboration.png",ZG:An("si57lahl1w25/3#Open_Collaboration"),
visible:Dn,QH:En},{name:"moderated",label:"Modelo de colabora\u00e7\u00e3o moderada",pB:"Colabora\u00e7\u00e3o moderada",Qc:"Todos os usu\u00e1rios conectados podem sugerir edi\u00e7\u00f5es ao knol, mas \u00e9 necess\u00e1ria a aprova\u00e7\u00e3o de um autor antes de serem publicadas",CM:"Todos os usu\u00e1rios conectados podem sugerir edi\u00e7\u00f5es e fazer envios para a cole\u00e7\u00e3o, mas essas a\u00e7\u00f5es precisar\u00e3o de aprova\u00e7\u00e3o de um propriet\u00e1rio ou de um moderador para serem publicadas",
BM:"Todos os usu\u00e1rios conectados podem sugerir edi\u00e7\u00f5es para o knol e fazer envios para a cole\u00e7\u00e3o, mas precisam receber a aprova\u00e7\u00e3o de um propriet\u00e1rio, um autor ou um moderador do knol ou da cole\u00e7\u00e3o para que seus itens sejam publicados",type:"moderated",nb:"icons/moderated_collaboration.png",ZG:An("si57lahl1w25/3#Moderated_Collaboration"),visible:Dn,QH:En},{name:"closed",label:"Modelo de colabora\u00e7\u00e3o fechada",pB:"Colabora\u00e7\u00e3o fechada",
Qc:"Somente propriet\u00e1rios e autores podem editar o knol",CM:"Somente propriet\u00e1rios e moderadores podem editar a cole\u00e7\u00e3o",BM:"Apenas propriet\u00e1rios, autores e moderadores podem editar o knol ou a cole\u00e7\u00e3o",type:"closed",nb:"icons/closed_collaboration.png",ZG:An("si57lahl1w25/3#Closed_Collaboration"),visible:Dn,QH:En},{name:"managed",label:"Modelo de colabora\u00e7\u00e3o de cole\u00e7\u00e3o controlada pelo moderador",pB:"Colabora\u00e7\u00e3o de cole\u00e7\u00e3o controlada pelo moderador",
Qc:"Os propriet\u00e1rios e os autores do knol podem sugerir edi\u00e7\u00f5es, mas essas edi\u00e7\u00f5es dever\u00e3o ser aprovadas por moderadores da cole\u00e7\u00e3o \u00e0 qual o knol pertence.",type:"managed",nb:"icons/closed_collaboration.png",ZG:An("si57lahl1w25/3#Managed_Collaboration"),visible:function(a){if(!a)return l;return a.mq()==4},QH:function(a){if(!a)return l;return a.mq()==4}}];Cn.prototype.create=function(){var a=I({b:"div"});a.addElement(this.Qg());this.L(a)};
Cn.prototype.zd=function(){rn.prototype.zd.call(this)};Cn.prototype.Vb=function(){Y("knol-access-badge").parentNode.innerHTML=this.Qg().v()};Cn.prototype.Qg=function(){var a=Gn(this.Eja);I({b:"span",c:"knol-access-badge-type",d:a.pB});return I({b:"div",id:"knol-access-badge",children:[I({b:"img",c:"knol-access-badge-icon",sprite:"main",src:Zj(a.nb)}),I({b:"span",c:"knol-access-badge-desc",children:[I({b:"span",c:"knol-access-badge-type",children:[{b:"a",href:a.ZG,d:a.pB}]})]})]})};
var Gn=function(a){for(var b=Fn,c=0;c<b.length;c++)if(a==b[c].type)return b[c];return k};var Hn=function(a){this.eZa=!!a;var b=P();this.OYa=b&&b.Cb()};D(Hn,rn);
var In=[{C:"t\u00edtulo",value:1},{C:"subt\u00edtulo",value:2},{C:"palavras-chave",value:4,IGa:j},{C:"resumo",value:8},{C:"nomes de autores",value:16},{C:"conte\u00fado",value:32},{C:"afilia\u00e7\u00e3o",value:64,IGa:j},{C:"categoria",value:128},{C:"refer\u00eancias",value:256}],Jn=[{YD:j,C:"Pesquisar todos os documentos",KS:"Pesquisar todos os autores"},{C:"Pesquisar somente nos meus documentos\u2028",KS:"Pesquisar apenas meus co-autores",oFa:j},{o_:j},{Aa:j}],Kn=[{YD:j,C:"Knols"},{C:"Resenhas"},
{C:"Coment\u00e1rios"},{C:"Autores"},{C:"Modelos de knol",dn:l},{C:"Modelos de resenha",dn:j},{C:"Cole\u00e7\u00f5es"},{C:"Cole\u00e7\u00f5es moderadas"},{C:"Somente knols, nenhuma cole\u00e7\u00e3o",dn:j}],Ln=[{YD:j,C:"\u00faltima modifica\u00e7\u00e3o",id:1},{C:"data de cria\u00e7\u00e3o",id:2},{C:"visualiza\u00e7\u00f5es de p\u00e1gina",id:4},{C:"ordem alfab\u00e9tica",id:8}];new Lg(1);new Lg(3);new Lg(4);new Lg(2);new Lg(5);new Lg(6);new Lg(7);
var Mn=[{C:"Agenda",value:1},{C:"Documento",value:2},{C:"Apresenta\u00e7\u00e3o de slides do Picasa",value:4},{C:"Apresenta\u00e7\u00e3o",value:8},{C:"Planilha",value:16},{C:"Formul\u00e1rio de planilha",value:32},{C:"V\u00eddeo",value:64},{C:"Equa\u00e7\u00e3o",value:128}],Nn=[{C:"visualiza\u00e7\u00f5es de p\u00e1gina",value:1},{C:"visitantes exclusivos",value:2,dn:j},{C:"Coment\u00e1rios",value:4},{C:"Resenhas",value:8},{C:"Classifica\u00e7\u00f5es",value:16,dn:l},{C:"Sugest\u00f5es",value:32,
dn:j},{C:"Knols de melhor qualidade",value:64},{C:"Comentaristas exclusivos",value:128,dn:j}];Hn.prototype.create=function(){};Hn.prototype.Kf=function(a,b,c){var d=b||"knol-advancedsearch-description",f=I({b:"div",c:"knol-advancedsearch-query-desc",children:[{b:"div",c:d,d:a}]});c&&f.$d(dn("id",c));return f};var On=function(a,b){if(r(a)){for(var c=parseInt(a,10),d=0;d<b.length;d++)if(c==b[d].id)return d;if(c>=0&&c<b.length)return c}};
Hn.prototype.bya=function(a,b,c){var d=I({b:"input",type:"text",name:a,size:30,maxlength:2E3,value:b,c:"knol-advancedsearch-input-box"});c&&d.$d(dn("id",c));return d};
Hn.prototype.Mxa=function(a,b,c){if(this.n_&&!this.Ds)this.Ds=sf(this.n_);var d=I({b:"div",id:"knol-restrict-radio-list"});d.addElement(this.Kf("O que deseja pesquisar?"));d.Q();for(var f="restrict",g=On(b,Jn),h=0;h<Jn.length;h++){var i=Jn[h];if(!(i.oFa&&!P()))if(!(i.o_&&!this.Ds)){var m="knol-advancedsearch-restrict-"+h,n="knol-advancedsearch-restrict",o=r(g)?g==h:i.YD,p=i.C;if(a==3&&i.KS)p=i.KS;if(i.o_){var s=this.Ds.v();if(a!=3){var u="Pesquisar somente documentos do(s) autor(es) de "+s;p=u}else{var v=
"Pesquisar apenas autor(es) de "+s;p=v}}if(i.Aa){var x="url",y=c||"";s=I({b:"span",children:[this.bya(x,y,"knol-restrict-url")]}).v();if(a!=3){var B="Pesquisar somente documentos do(s) autor(es) deste knol (digite o endere\u00e7o do knol): "+s;p=B}else{var G="Pesquisar apenas o(s) autor(es) deste knol (digite o endere\u00e7o do knol): "+s;p=G}}if(p){d.addElement({b:"input",type:"radio",id:m,c:n,checked:o,name:f,value:""+h});d.addElement({b:"label","for":m,d:p,c:"knol-advancedsearch-restrict"});d.la()}}}return d};var Pn=function(){},Qn={reverse:"reverse",BJa:"flag1",Cma:"flag2",MBa:"flag3",mBa:"flag4",aD:"unpub",$C:"pub",eba:"onlytts",linkExact:"linkExact",q8:"holiday08",BW:"weekly",sQa:"ssoutput",Jga:"translateFrom",collected:"collected",collections:"collections",CRa:"translation"},Rn={start:"start",oI:"num",li:"restrict",sort:"sort",Rba:"pubdate",M2:"editdate",b1:"createdate",pla:"op1",qc:"doctype",t$:"license",s0:"collab",HTa:"zipitRating",GTa:"zipitNum",fn:"authorType",lra:"editedstarttime",Upa:"createdstarttime",
jra:"editedendtime",Spa:"createdendtime",qla:"op2"},Sn={gsa:"lb1",isa:"ub1",hsa:"lb2",jsa:"ub2"},Tn={wm:"q",iD:"back",pJa:"qexact",BT:"qor1",CT:"qor2",DT:"qor3",AT:"qneg",Aa:"url",T2:"num2",language:"language",yEa:"knolId",link:"link",VH:"promo",templateId:"templateId",template:"templateUrl",locale:"locale",kra:"editedstart",Tpa:"createdstart",ira:"editedend",Rpa:"createdend"};q=Pn.prototype;q.wm="";q.start=0;q.oI=10;q.admin=0;q.userId="";q.groups="";q.Kx=k;q.li=0;q.BT="";q.CT="";q.DT="";q.AT="";
q.Cs="";q.locale="";q.sort=0;q.reverse=0;q.Rba=0;q.M2=0;q.b1=0;q.pla=0;q.gsa=0;q.isa=0;q.qla=0;q.hsa=0;q.jsa=0;q.BJa="";q.Cma="";q.MBa="";q.T2="";q.language="";q.qc=0;q.t$=0;q.s0=0;q.HTa=0;q.GTa=0;q.mBa="";q.fn=0;q.eba="";q.embeds=k;q.aD=0;q.$C=1;q.QB=k;q.BW=0;q.yEa="";q.templateRestrict=0;q.link="";q.linkExact=0;q.VH="";q.templateId="";q.sLa="";q.ioa="";q.collected=0;q.collections=0;q.foa=0;q.Zra=0;q.CRa=0;q.iD="";q.Aa="";q.pJa="";q.q8=0;q.template="";q.sQa="";q.Jga=0;q.kra="";q.lra=0;q.ira="";
q.jra=0;q.Tpa="";q.Upa=0;q.Rpa="";q.Spa=0;var Un=[{ia:"pageviews",xi:j,Sm:l,Aj:j,rV:0,knol:{nb:"top_viewed",C:"Pr\u00eamio para o knol com mais visualiza\u00e7\u00f5es",sj:dl.Jg,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de visualiza\u00e7\u00f5es de p\u00e1gina."},Df:{nb:"top_viewed",C:"Pr\u00eamio para o autor com mais visualiza\u00e7\u00f5es",sj:Tl.Jg,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de visualiza\u00e7\u00f5es de p\u00e1gina."}},{ia:"comments",xi:l,Sm:l,Aj:j,rV:2,
knol:{nb:"water_cooler",C:"Pr\u00eamio para o knol mais discutido",sj:dl.Ym,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de coment\u00e1rios."},Df:{nb:"commenter",C:"Pr\u00eamio para o autor com mais coment\u00e1rios",sj:Tl.Ym,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de coment\u00e1rios."}},{ia:"reviews",xi:l,Sm:l,Aj:j,rV:3,knol:{nb:"",C:"",sj:dl.Kg,Qc:"Pr\u00eamio dado aos autores com o maior n\u00famero de resenhas de knols."},Df:{nb:"top_reviewer",
C:"Pr\u00eamio de melhor resenhista",sj:Tl.Kg,Qc:"Pr\u00eamio dado aos autores com o maior n\u00famero de resenhas de knols."}},{ia:"ratings",xi:l,Sm:l,Aj:j,knol:{nb:"top_rated",C:"Pr\u00eamio para o knol ou autor com altas classifica\u00e7\u00f5es",sj:dl.jp,Qc:"O pr\u00eamio recebido pelos knols ou autores com as classifica\u00e7\u00f5es mais altas."},Df:{nb:"top_rated",C:"Pr\u00eamio para o knol ou autor com altas classifica\u00e7\u00f5es",sj:Tl.jp,Qc:"O pr\u00eamio recebido pelos knols ou autores com as classifica\u00e7\u00f5es mais altas."}},
{ia:"suggestions",xi:l,Sm:l,Aj:j,knol:{nb:"refined",C:"Pr\u00eamio para o knol com mais sugest\u00f5es",sj:dl.zh,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de colabora\u00e7\u00f5es em andamento."},Df:{nb:"editor",C:"Pr\u00eamio para o knol com mais sugest\u00f5es",sj:Tl.zh,Qc:"O pr\u00eamio recebido pelos knols ou autores com o maior n\u00famero de colabora\u00e7\u00f5es em andamento."}},{ia:"quality",xi:j,Sm:l,Aj:j,rV:6,AGa:j,knol:{nb:"quality",C:"Pr\u00eamio para o knol com a melhor qualidade",
xT:dl.AC,wT:dl.Wia,Qc:"O pr\u00eamio recebido pelos knols ou autores pela alta qualidade no trabalho."},Df:{nb:"quality",C:"Pr\u00eamio para o autor com a melhor qualidade",xT:Tl.pC,wT:Tl.Wia,Qc:"O pr\u00eamio recebido pelos knols ou autores pela alta qualidade no trabalho."}},{ia:"risingStar",xi:l,Sm:l,Aj:l,knol:{nb:"rising_star",C:"Pr\u00eamio para o knol ou autor mais promissor",Qc:"O pr\u00eamio recebido pelos knols ou autores novos e promissores."},Df:{nb:"rising_star",C:"Pr\u00eamio para o knol ou autor mais promissor",
Qc:"O pr\u00eamio recebido pelos knols ou autores novos e promissores."}},{ia:"peopleChoice",xi:l,Sm:l,Aj:l,knol:{nb:"people_choice",C:"Pr\u00eamio para o knol ou autor mais popular",Qc:"O pr\u00eamio recebido pelos knols ou autores depois de v\u00e1rios pedidos de leitores."},Df:{nb:"people_choice",C:"Pr\u00eamio para o knol ou autor mais popular",Qc:"O pr\u00eamio recebido pelos knols ou autores depois de v\u00e1rios pedidos de leitores."}},{ia:"holiday08",xi:j,ySa:l,Sm:l,Jz:["en"],Aj:l,mJ:"http://knol.google.com/k/holiday-knols/holiday-crafts/qvhc9i31ndek/1",
knol:{nb:"holiday08",C:"Holiday 2008",Qc:"Knols inscritos no concurso 2008 Knol Holiday Crafts."},Df:{nb:"",C:"",Qc:"Knols inscritos no concurso 2008 Knol Holiday Crafts."}},{ia:"dummies",xi:j,ySa:l,Sm:l,Jz:["en"],GD:["us"],Aj:l,mJ:"http://www.google.com/landing/knolfordummies/",knol:{nb:"dummies",C:"Knols para iniciantes.com",Qc:'Knols "Como fazer" para o nosso concurso Knols para iniciantes.com'},Df:{nb:"",C:"",Qc:'Knols "Como fazer" para o nosso concurso Knols para iniciantes.com'}}],Vn={holiday08:8,
peopleChoice:7,risingStar:6,dummies:9,pageviews:0,quality:5},Wn=function(a){var b=Vn[a];if(ia(b)){var c=Un[b];if(c)return c}return k},Xn=function(a,b){if(a.mJ)return a.mJ;var c=dk("system/knol/pages/Badges");return c+"#"+("badge-"+a.ia+(b?"knol":"author"))},Yn=function(a,b){return Zj("icons/"+(b?a.knol.nb:a.Df.nb)+"_badge.png")},$n=function(a,b,c,d){var f=d||Wn(a);if(ia(f)){if(f&&f.xi&&(!f.Jz||Db(f.Jz,mg()))&&(!f.GD||Db(f.GD,zf().toLowerCase()))){var g=Yn(f,b),h=b?f.knol.C:f.Df.C,i=Xn(f,b);if(h&&
i){var m=I();m.addElement({b:"div",c:"knol-badge-item-msg-knol",children:[{b:"img",c:"knol-badge-img",sprite:"main",title:h,alt:h,src:g},{b:"a",href:i,d:h}]});if(!c){var n=I({b:"a",href:Wm,c:"knol-author-toolbox-change",d:"Remover",id:"knol-badge-remove-"+f.ia});m.addElement(n)}m.la();return m}}}else return Zn(a,c);return k},ao=function(a,b,c){if(!a)return k;var d=I({b:"div"}),f=l;if(b&&a instanceof cl||!b&&a instanceof Sl)for(var g=0;g<Un.length;g++){var h=Un[g];if(h.Aj){var i;var m=a,n=b,o=h,p=
c;if(!m||!(n&&m instanceof cl)&&!(!n&&m instanceof Sl)||o.AGa&&p&&(p.pk()||p.Ux()))i=l;else{var s=0,u=n?o.knol.sj:o.Df.sj,v=n?o.knol.xT:o.Df.xT,x=n?o.knol.wT:o.Df.wT;if(u){var y=m.n(u),B=new al(y);if(B){var G=B.n6();if(G){var M=G.all||0,R=G[mg()]||0;s=R>M?R:M}}}else if(x){y=m.n(x);B=new bl(y);if(y&&B)s=B.Sta();else if(v)s=m.n(v)}else if(v)s=m.n(v);i=s>0.99?j:l}if(i){var X=$n(h.ia,b,j,h);if(X){f=j;d.addElement(X)}}}}if(f)return d;return k},eo=function(a,b,c,d){var f=b.promo;if(f&&d){var g=bo(f,d);
var h=a,i=g;if(i){var m=i.promoLanguage||"",n=i.promoCountry||"",o=(!m||m==mg())&&(!n||n==zf().toLowerCase());if(o){var p=i.promoIcon||"";p=co(p);var s=i.promoTooltip||"",u=i.promoUrl||"",v=u?"a":"div";p&&h.addElement({b:v,c:"knol-search-knol-info knol-search-knol-info-badges",href:u,children:[{b:"img",c:"knol-badge-small",src:p,alt:s,title:s}]})}}a=h}for(var x=0;x<Un.length;x++){g=Un[x];var y=l;if(g.Aj){var B=b[g.ia+"Top"];y=g.xi&&B&&(w(B)&&(Sa(B,"all")||Sa(B,mg()))||ja(B)&&(Db(B,"all")||Db(B,mg())))}else{var G=
f&&Sa(f,g.ia);y=g.xi&&G&&(!g.Jz||Db(g.Jz,mg()))&&(!g.GD||Db(g.GD,zf().toLowerCase()))}if(y){var M=Yn(g,c),R=c?g.knol.C:g.Df.C;a.addElement({b:"a",c:"knol-search-knol-info knol-search-knol-info-badges",href:Xn(g,c),children:[{b:"img",c:"knol-badge-small",sprite:"main",src:M,alt:R,title:R}]})}}return a},co=function(a){if(a)a+=Sa(a,"?")?"&":"?";return a},bo=function(a,b){if(!b)return k;for(var c=gc(b),d=0,f=-1,g=0;g<c.length;g++){var h=b[c[g]],i=h.promoLabel||"",m=h.promoLanguage||"",n=h.promoCountry||
"",o=n==zf().toLowerCase(),p=m==mg(),s=i==a,u=n&&!o||m&&!p||i&&!s?0:s*(o*2+p+1);if(u>d)f=g}if(f<0)return k;return b[c[f]]},Zn=function(a,b){var c=jot.lib.knol.search.promotionSearch(a);if(!c)return k;var d=Dd(c);if(!d)return k;var f=bo(a,d);if(!f)return k;var g=f.promoIcon||"";g=co(g);var h=f.promoTooltip||"",i=f.promoUrl||"",m=f.promoName||"";if(m&&i&&g){var n=I();n.addElement({b:"div",c:"knol-badge-item-msg-knol",children:[{b:"img",c:"knol-badge-img",title:h,alt:h,src:g},{b:"a",href:i,d:m}]});if(!b){var o=
I({b:"a",href:Wm,c:"knol-author-toolbox-change",d:"Remover",id:"knol-badge-remove-"+a});n.addElement(o)}return n}return k};var fo=function(a){return S.call(this,a)};Tk(fo,S,"AuthorPlonk");var go=function(a){return S.call(this,a)};Tk(go,uf,"User");$d(go.prototype,Df.prototype);
var ho={rVa:"gaiaId",mC:"admin",YX:"limitedAdmin",Aw:"email",ZX:"locale",wX:"enableRtl",yX:"enableTransliteration",GY:"staff",sia:"createRole",ZWa:"reviewRole",IX:"groupMemberships",DX:"favoriteKnols",AK:"labelBrowser",MW:"analyticsCode",Jia:"human",sUa:"captchaAttempts",Wha:"apCompactK",Yha:"apSortK",Xha:"apCompactR",Zha:"apSortR"},io=function(a){var b="Ao bloquear um usu\u00e1rio, voc\u00ea o impede de comentar, editar ou fazer sugest\u00f5es e envios nos knols dos quais voc\u00ea \u00e9 propriet\u00e1rio. O bloqueio tamb\u00e9m remove os coment\u00e1rios existentes do usu\u00e1rio. "+("<"+
("br"+(">"+("<"+("br"+(">"+(" Voc\u00ea n\u00e3o pode bloquear o acesso de grava\u00e7\u00e3o de copropriet\u00e1rios de um knol conjunto. "+("<"+("br"+(">"+("<"+("br"+(">"+(" O bloqueio \u00e9 permanente, mas voc\u00ea pode revert\u00ea-lo. Para isso, v\u00e1 para o painel Prefer\u00eancias "+(">"+(" Usu\u00e1rios bloqueados e desbloqueie o nome do usu\u00e1rio. "+("<"+("br"+(">"+("<"+("br"+(">"+(" "+("<"+('a href="'+(An("si57lahl1w25/81")+('"'+(">"+("Saiba mais sobre bloqueios."+("<"+("/a"+(">"+
(" "+("<"+("br"+(">"+("<"+("br"+(">"+("Deseja bloquear "+(a+"?")))))))))))))))))))))))))))))))))))))))));return b},jo=function(a){var b="O usu\u00e1rio "+(a+" est\u00e1 bloqueado agora.<br><br> Voc\u00ea pode desbloquear usu\u00e1rios no painel Prefer\u00eancias > Usu\u00e1rios bloqueados.");return b},ko=function(a){var b="Desbloquear "+a;return b},lo=function(a){var b="Gostaria de desbloquear "+(a+" dos seus knols?");return b},mo=function(a){var b="N\u00e3o foi poss\u00edvel bloquear "+(a+(". Isso normalmente acontece porque "+
(a+(" n\u00e3o pode ser bloqueado ou "+(a+" j\u00e1 est\u00e1 bloqueado.")))));return b};q=go.prototype;q.T=function(a){Rk(ho,this,a);go.f.T.call(this,a)};q.remove=function(a){this.ie();go.f.remove.call(this,a)};q.dM=function(){return k};q.Oh=function(a){w(a)||this.Ab("getPermissionsLevel, bad type");if(this.p()==a)return 4;return 1};
q.gRa=function(a,b,c){var d=c||1,f=this.uq(),g=f.k4(a);if(g<d){if(!b){f.oCa(a);this.GNa(l)}}else f.Pra(a,d);this.qOa(f);this.uMa(ua());this.save();if(!b&&g<d){var h=new Kk;h.KFa();e(h)}return j};q.kMa=function(){return l};q.I5=function(){return String(this.n(ho.ZX))};N(go,go.prototype.I5,ho.ZX);go.prototype.FP=function(){return this.kb(ho.wX,l)};N(go,go.prototype.FP,ho.wX);go.prototype.KF=function(){return this.kb(ho.yX,l)};N(go,go.prototype.KF,ho.yX);
go.prototype.pk=function(){return this.kb(ho.GY,l)};N(go,go.prototype.pk,ho.GY);go.prototype.GNa=function(a){this.Av(ho.Jia,a)};go.prototype.ig=function(){return this.kb(ho.mC,l)};N(go,go.prototype.ig,ho.mC);go.prototype.Cb=function(){var a=this.kb(ho.mC,l)||this.kb(ho.YX,l);return a};N(go,go.prototype.Cb,ho.YX);go.prototype.Gy=function(){return String(this.n(ho.Aw,""))};N(go,go.prototype.Gy,ho.Aw);go.prototype.sendEmail=function(){return l};go.prototype.wua=function(){return this.BF(ho.sia)||this};
go.prototype.tva=function(){return this.n(ho.IX,"")};N(go,go.prototype.tva,ho.IX);go.prototype.NO=function(){var a=this.n(ho.DX,"");return a&&a.length?Dd(a):[]};N(go,go.prototype.NO,ho.DX);q=go.prototype;q.Ita=function(){return this.kb(ho.Wha,j)};q.Kta=function(){return parseInt(this.n(ho.Yha,0),10)};q.Jta=function(){return this.kb(ho.Xha,l)};q.Lta=function(){return parseInt(this.n(ho.Zha,0),10)};q.cP=function(){return this.n(ho.AK,"")};N(go,go.prototype.cP,ho.AK);
go.prototype.QNa=function(a){this.setProperty(ho.AK,a)};go.prototype.EE=function(){return this.n(ho.MW,"")};N(go,go.prototype.EE,ho.MW);go.prototype.listUsersSites=function(){};var dh=function(a){return S.call(this,a)};Tk(dh,S,"Discussion");$d(dh.prototype,Df.prototype);dh.prototype.Vb=function(){};dh.prototype.KI=function(a){this.gJ(Ok.rs,"<div>"+a+"</div>",j,j)};dh.prototype.remove=function(){};dh.prototype.removeNode=function(){};var no={oC:"author",GK:"nodeHidden",hY:"nodeApproved",Bi:"knolMetaId"};q=dh.prototype;q.T=function(a){Rk(no,this,a);dh.f.T.call(this,a)};q.Rua=function(){return Pj(this,Kj.iX)};q.hxa=function(){return Pj(this,Kj.pY)};
q.GI=function(a){this.setProperty(no.GK,a)};q.Az=function(){return this.n(no.GK)==j};N(S,dh.prototype.Az,no.GK);dh.prototype.dDa=function(){return this.n(no.hY)==j};N(S,dh.prototype.dDa,no.hY);dh.prototype.he=function(){return this.n(no.Bi)};N(dh,dh.prototype.he,no.Bi);dh.prototype.nea=function(a){this.setProperty(no.Bi,a)};dh.prototype.N4=function(){var a=this.Rua().$i();a||(a=this.hxa().$i());return a};dh.prototype.gk=function(){return this.BF(no.oC)};dh.prototype.aO=function(){return this.n(no.oC)};
N(dh,dh.prototype.aO,no.oC);q=dh.prototype;q.fDa=function(){return this.gk().xta()};q.Oh=function(a){var b=1,c=this.gk();if(c)b=Math.max(b,c.Oh(a));var d=this.N4();if(d){var f=J(d);if(f)b=Math.max(b,f.Oh(a))}return b};q.log=function(a){S.prototype.log.call(this,a);this.purgeCache()};q.purgeCache=function(){var a=this.N4();if(a){var b=J(a);b&&b.purgeCache&&b.purgeCache()}};q.ona=function(){return(this.T5()||!this.O9()&&!this.e4())&&!this.fDa()&&!this.Az()};q.addRevisionEntry=function(){return j};var oo=function(){};D(oo,rn);oo.prototype.create=function(){};
oo.prototype.Cja=function(a,b,c,d,f,g,h,i,m){var n=I({b:"a",d:"instru\u00e7\u00f5es sobre a notifica\u00e7\u00e3o de viola\u00e7\u00e3o de direito autoral",href:"http://www.google.com/dmca_knol.html"}),o="Se voc\u00ea acredita que este conte\u00fado infringe os direitos autorais, consulte nosso "+(n.v()+"."),p=I({b:"div",id:"knol-report-div-"+a+"-abuse",style:c,c:b}),s="knol-report-div-"+a;if(d)s="";d?p.addElement({b:"h1",c:"knol-settings-title",d:"Denunciar conte\u00fado abusivo"}):p.addElement({b:"b",
d:"Denunciar conte\u00fado abusivo"});p.Q();var u=qg(),v=Bn("si57lahl1w25/12",u),x=Bn("si57lahl1w25/13",u),y="O Google leva muito a s\u00e9rio o abuso de seus servi\u00e7os. Nos campos abaixo, forne\u00e7a informa\u00e7\u00f5es sobre o knol, a cole\u00e7\u00e3o ou o coment\u00e1rio que voc\u00ea acredita estar violando nossos "+('<a href="'+v+'">'+("Termos de Servi\u00e7o"+("</a>"+(" ou "+('<a href="'+x+'">Pol\u00edtica de Conte\u00fado</a>. Investigaremos a sua den\u00fancia e entraremos em contato com voc\u00ea apenas se precisarmos de mais informa\u00e7\u00f5es ou se tivermos informa\u00e7\u00f5es adicionais para compartilhar.'))))),
B=I({b:"div",style:"margin:1.5em 1em;",d:y});p.addElement(B);var G=I({b:"div",id:"error_msg"});i?G.addElement({b:"span",c:"knol-report-error",id:s+"submiterror",name:s+"submiterror",d:"Ocorreu um erro ao enviar o formul\u00e1rio."}):G.addElement({b:"span",c:"knol-report-error",id:s+"submiterror",name:s+"submiterror",style:"display: none",d:"Ocorreu um erro ao enviar o formul\u00e1rio."});g?G.addElement({b:"span",c:"knol-report-error",id:s+"typeerror",name:s+"typeerror",d:"Selecione um problema."}):
G.addElement({b:"span",c:"knol-report-error",id:s+"typeerror",name:s+"typeerror",style:"display: none",d:"Selecione um problema."});h?G.addElement({b:"span",c:"knol-report-error",id:s+"quotaerror",name:s+"quotaerror",d:"Desculpe. Voc\u00ea alcan\u00e7ou o limite di\u00e1rio de envio de den\u00fancias de abuso. Tente novamente amanh\u00e3!"}):G.addElement({b:"span",c:"knol-report-error",id:s+"quotaerror",name:s+"quotaerror",style:"display: none",d:"Desculpe. Voc\u00ea alcan\u00e7ou o limite di\u00e1rio de envio de den\u00fancias de abuso. Tente novamente amanh\u00e3!"});
p.addElement(G);var M=I({b:"table",border:"0",width:580,c:"knol-abuse-table"}),R=I({b:"tr"}),X=I({b:"td",width:"30%",c:"knol-top-aligned-td"}),Q=I({b:"div",align:"right"}),K=I({b:"td"});X.addElement(Q);R.addElement(X);R.addElement(K);M.addElement(R);R=I({b:"tr"});X=I({b:"td",align:"right",c:"knol-top-aligned-td"});X.addElement(I({b:"p",d:"Por que voc\u00ea est\u00e1 denunciando este conte\u00fado? Ele cont\u00e9m:"}));K=I({b:"td",c:"knol-top-aligned-td"});K.addElement({b:"input",type:"radio",name:s+
"type",id:s+"type_sexually_explicit",title:"Conte\u00fado expl\u00edcito",value:"SEXUALLY_EXPLICIT",style:""});K.addElement({b:"span",d:"Conte\u00fado expl\u00edcito"});K.Q();K.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_hate_speech",title:"Linguagem violenta ou discriminat\u00f3ria",value:"HATE_SPEECH",style:""});K.addElement({b:"span",d:"Linguagem violenta ou discriminat\u00f3ria"});K.Q();K.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_general_abuse",title:"Conte\u00fado question\u00e1vel ou abusivo",
value:"GENERAL_ABUSE",style:""});K.addElement({b:"span",d:"Conte\u00fado question\u00e1vel ou abusivo"});K.Q();K.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_impersonation",title:"Conte\u00fado que forja minha identidade",value:"IMPERSONATION",style:""});K.addElement({b:"span",d:"Conte\u00fado que forja minha identidade"});K.Q();K.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_spam",title:"C\u00f3digo de spam ou mal-intencionado",value:"SPAM",style:""});K.addElement({b:"span",
d:"C\u00f3digo de spam ou mal-intencionado"});K.Q();K.addElement({b:"input",type:"radio",name:s+"type",id:s+"type_other",title:"Outro (informa\u00e7\u00f5es adicionais necess\u00e1rias abaixo)",value:"OTHER",style:""});K.addElement({b:"span",d:"Outro (informa\u00e7\u00f5es adicionais necess\u00e1rias abaixo)"});K.Q();K.Q();R.addElement(X);R.addElement(K);M.addElement(R);R=I({b:"tr"});X=I({b:"td",width:"30%",c:"knol-top-aligned-td"});Q=I({b:"div",align:"right"});Q.addElement(I({b:"p",d:"Informa\u00e7\u00f5es adicionais (seja espec\u00edfico):"}));
X.addElement(Q);K=I({b:"td",c:"knol-top-aligned-td"});K.addElement({b:"textarea",type:"radio",id:s+"body",name:s+"body",cols:"45",rows:"7",style:""});R.addElement(X);R.addElement(K);M.addElement(R);if(m){R=I({b:"tr"});X=I({b:"td",width:"30%",c:"knol-top-aligned-td"});K=I({b:"td",c:"knol-top-aligned-td"});K.addElement({b:"div",id:"knol-abuse-block-div-"+a,children:[{b:"input",type:"checkbox",name:s+"block",id:s+"block"},{b:"span",d:"Tamb\u00e9m bloquear este usu\u00e1rio"}]});R.addElement(X);R.addElement(K);
M.addElement(R)}R=I({b:"tr"});X=I({b:"td"});K=I({b:"td",c:"knol-top-aligned-td"});if(d){K.addElement({b:"input",type:"submit",c:"knol-abuse-button",value:"Enviar"});K.addElement({b:"input",type:"button",onclick:"window.location='"+f+"';",c:"knol-abuse-button",value:"Cancelar"})}else{K.addElement({b:"a",id:"knol-report-send-link-"+a,name:"knol-report-send-link-"+a,href:Wm,d:"Enviar"});K.Q()}R.addElement(X);R.addElement(K);M.addElement(R);R=I({b:"tr"});X=I({b:"td"});K=I({b:"td",c:"knol-top-aligned-td"});
K.Q();K.addElement({b:"p",d:o});R.addElement(X);R.addElement(K);M.addElement(R);p.addElement(M);if(d){p.addElement({b:"input",type:"hidden",name:"nId",id:"nId",value:a});p.addElement({b:"input",type:"hidden",name:"action",id:"action",value:"SUBMIT"});p.addElement({b:"input",type:"hidden",name:"jot.xtok",id:"jot.xtok"});this.zn(k,k,"knol.ui.AbuseReport.initOnLoad",[])}p.Q();return p};oo.prototype.ZPa=function(a){var b=Y("knol-report-div-"+a+"-abuse");b.style.display=""};
oo.prototype.SBa=function(a){var b=Y("knol-report-div-"+a+"-abuse");b.style.display="none"};var po=function(){Y("jot.xtok").value=Xi("jotxtok")};t("knol.ui.AbuseReport.initOnLoad",po,void 0);var qo=function(a,b,c){if(!(a instanceof S))e(new Error("type error"));this.rb=a;this.Gr=b;this.Nj=c;if(!c)this.ji=-1};D(qo,rn);q=qo.prototype;q.ie=function(){return C("knol.ui.NodeList")};q.rb=k;q.Gr="";q.waa=l;q.esa=l;q.iaa=1;q.rJ=0;q.ji=5;q.CPa=50;q.vj=k;q.rGa=function(){return this.waa};q.tea=function(){this.waa=j};q.create=function(){this.oTa(this.rJ,this.ji);if(this.rGa()){var a=[this.Mb(),this.rb.p(),this.Nj,"div","f7f7f7",this.esa];this.zn(k,k,"knol.ui.client.NodeList.initPage",a)}};
q.nLa=function(){if(!this.ri)this.ri=this.nya()};q.lJ=k;q.nya=function(){this.vj=Pj(this.rb,this.Gr);var a=this.vj.hv();if(a instanceof ki)e(a);this.vj=a;var b=this.vj.Xl().Dd();if(this.lJ)b.sort(this.lJ);else b=this.vj.sort(b);return b};
q.Lna=function(a,b,c){var d,f,g,h=function(){d=a.length;f=Math.max(b<0?d+b:b,0);g=c<0?d:Math.min(f+c,d)};h();for(var i=0;i<g;i++){var m=l;try{m=this.ga(a[i])}catch(n){this.ie().U("exception caught while calling isVisible on "+(a[i]&&a[i].nodeId||"(unknown node)"),n)}if(!m){a.splice(i,1);h();i--}}this.Wd=d;this.Jm=f;this.mE=g;this.cv=g-f};
q.oTa=function(a,b){var c=this.ie();this.nLa();this.Lna(this.ri,a,b);if(this.Wd>=this.iaa||this.hE){this.sw(this.ri);for(var d,f=0,g=this.Jm;g<this.mE;g++){var h=this.Se.length,i=this.ri[g];try{this.ms(i)}catch(m){this.Se.length=h;if(m instanceof sk)e(m);var n=m.toString();if(d!=n){d=n;c.U("failed to writeItem: "+Se(i),m)}else f+=1}}f>0&&c.U(f+" similar warnings suppressed");this.ep(this.ri)}};q.Mha=function(a){this.L(I({b:"h3",c:this.oRa,d:a}))};q.hE=l;q.oRa=k;q.sw=function(){};q.ep=function(){};
q.ms=function(a){if(!(a instanceof ih))e(new Error("type error"));this.write("<p>"+a.Rh()+"</p>")};
q.pTa=function(){if(!this.Nj||!this.Mb()||this.ji<=0)e(new Error("Unable to write to write page links."));var a=this.Jm>0,b=this.mE<this.Wd,c=a||b,d=this.cv>this.ji,f=c||d;f&&this.qTa();if(c){if(a){var g=Math.max(this.Jm-this.ji,0);this.write(this.KH(g,this.ji,this.l6()));this.write(this.k6())}this.write(this.bxa(this.vQa(this.Jm+1),this.EGa(this.mE),this.BRa(this.Wd)));if(b){this.write(this.P5());this.write(this.KH(this.mE,this.ji,this.Q5()))}if(this.Ela()){this.write(this.H6());this.wSa?this.L(I({b:"a",
href:this.wSa(),d:this.IP()})):this.write(this.KH(0,this.Wd,this.IP()))}}else d&&this.write(this.KH(this.rJ,this.ji,this.D6(String(this.ji))));if(f){this.rTa();this.L(this.tIa([this.uIa(this.Jm,this.cv)]));this.tea()}};q.KH=function(a,b,c){return I({b:"a",href:Wm,c:"knol-nodelist-pagination-"+this.uF(a,b),d:c}).v()};q.tIa=function(a){return I({b:"span",id:"knol-nodelist-page-key-"+this.Mb(),children:a})};q.uIa=function(a,b){return I({b:"span",c:"knol-nodelist-page-key-"+this.uF(a,b)})};
q.uF=function(a,b){return a+"_"+b};q.c6=function(a){return"_"+a};q.d0=function(a){return a.charAt(0)=="_"?a.substring(1):k};q.qTa=function(){this.write('<div class="knol-nodelist-pagination">')};q.rTa=function(){this.write("</div>")};q.Mb=function(){return""};q.bxa=function(a,b,c){var d=a+("-"+(b+(" de "+c)));return d};q.vQa=function(a){return I({b:"span",id:"knol-nodelist-start-"+this.Mb(),d:String(a)}).v()};q.EGa=function(a){return I({b:"span",id:"knol-nodelist-items-"+this.Mb(),d:String(a)}).v()};
q.BRa=function(a){return I({b:"span",id:"knol-nodelist-total-"+this.Mb(),d:String(a)}).v()};q.Ela=function(){return this.Wd<=this.CPa};q.H6=function(){return" "};q.IP=function(){return"Mostrar todos"};q.D6=function(a){var b="Mostrar primeiros "+a;return b};q.l6=function(){return"<b>&#xAB;</b>"};q.k6=function(){return" "};q.Q5=function(){return"<b>&#xBB;</b>"};q.P5=function(){return" "};q.ga=function(){return j};q.wTa=function(a,b){this.L(this.Ixa(a,b))};
q.Ixa=function(a,b){var c=I({b:"div",style:"display: none"});c.addElement({b:"a",rel:"nofollow",c:"knol-less-important-small-link",href:Wm,d:"Remover da lista",id:this.Mb()+"-"+a});this.Xj(k,k,b,[a,this.Mb()]);return c};var ro=function(a,b,c){var d=b||Kj.rK,f=c||"knol.ui.DiscussionView";qo.call(this,a,d,f);this.Rq=xa(window.location.pathname,"/knol/Help")};D(ro,qo);q=ro.prototype;q.ci="knol-comment-list";q.ji=10;q.rJ=0;q.hE=j;q.Mn=function(){return O().St()};q.create=function(){this.La=this.Mn();this.Fha();if(this.La){this.Iha();this.koa();this.BTa();ro.f.create.call(this)}};q.lJ=function(a,b){return b.rk()-a.rk()};q.Mb=function(){return this.ci};q.sw=function(){this.write('<div id="'+this.Mb()+'">')};
q.ep=function(){this.pTa();this.write("</div>")};q.ga=function(a){return so(a)};var so=function(a){var b=J(a.nodeId);if(!b||!b.ona())return l;return j};q=ro.prototype;q.IP=function(){return this.Rq?"Mostrar todas as perguntas":"Mostrar todos os coment\u00e1rios"};q.H6=function(){return" &#xA0; "};q.D6=function(a){var b="Mostrar somente os "+(a+" coment\u00e1rios mais recentes"),c="Mostrar apenas "+(a+" perguntas mais novas");return this.Rq?c:b};
q.l6=function(){return"&#xAB; "+(this.Rq?"Perguntas mais recentes":"Coment\u00e1rios mais recentes")};q.k6=function(){return" &#xA0; "};q.Q5=function(){return(this.Rq?"Perguntas mais antigas":"Coment\u00e1rios mais antigos")+" &#xBB;"};q.P5=function(){return" &#xA0; "};
q.Fha=function(){var a="",b=O();if(b.St()){this.L(I({b:"h3",id:"knol-comment-header",d:this.Rq?"Perguntas e respostas":"Coment\u00e1rios"}));if(b.Ln()){a=b.ya()?"Os coment\u00e1rios s\u00e3o moderados e n\u00e3o estar\u00e3o vis\u00edveis at\u00e9 que sejam aprovados por um dos propriet\u00e1rios ou moderadores desta cole\u00e7\u00e3o.":"Os coment\u00e1rios s\u00e3o moderados e n\u00e3o estar\u00e3o vis\u00edveis at\u00e9 que sejam aprovados por um dos autores deste knol.";this.L(I({b:"p",c:"knol-comment-moderated",
d:a}))}}else{a=b.ya()?"Os coment\u00e1rios foram desativados nesta cole\u00e7\u00e3o":"Os coment\u00e1rios foram desativados neste knol";this.L(I({b:"p",d:a}))}};
q.Iha=function(){var a=O(),b=I({b:"div",id:"knol-comment-new",style:"display: none",c:"knol-comment knol-element-toggle-level-0 knol-comment"});b.addElement(I({b:"h4",id:"knol-comment-new-show",children:[{b:"a",href:Wm,d:this.Rq?"Fa\u00e7a uma pergunta &#9660;":"Escrever novo coment\u00e1rio &#9660;"}]}));b.addElement(I({b:"h4",c:"knol-element-toggle-threshold-1",style:"display: none",d:this.Rq?"Fazer uma pergunta":"Escrever novo coment\u00e1rio"}));var c=I({b:"div",c:"knol-element-toggle-threshold-1",
style:"display: none"});c.addElement(I({b:"div",c:"knol-comment-new-title",children:[{b:"input",id:"knol-comment-new-title",type:"text",maxlength:250}]}));c.addElement(I({b:"div",c:"knol-comment-new-text",children:[to("knol-comment-new-text")]}));var d=I({b:"div",c:"knol-comment-new-submit"});d.addElement(I({b:"div",id:"knol-comment-new-spinner",c:"knol-spinner knol-comment-spinner goog-inline-block"}));d.addElement(I({b:"a",id:"knol-comment-new-submit",href:Wm,c:"knol-link-disabled",d:a&&a.ya()?
"Enviar coment\u00e1rio para esta cole\u00e7\u00e3o":"Enviar coment\u00e1rio para este knol"}));c.addElement(d);b.addElement(c);this.L(b);this.L(I({b:"div",id:"knol-comment-pending-list"}))};q.BTa=function(){this.L(I({b:"div",id:"knol-comment-new-sign-in",style:"display: none",c:"knol-comment",children:[{b:"a",href:qf(),d:"Fa\u00e7a login para escrever um coment\u00e1rio"}]}))};
q.koa=function(){var a=O(),b=a&&a.ya()?"Os propriet\u00e1rios da cole\u00e7\u00e3o bloquearam voc\u00ea. N\u00e3o \u00e9 poss\u00edvel editar, fazer envios ou coment\u00e1rios aqui.":"Desculpe.  Os propriet\u00e1rios do knol bloquearam voc\u00ea. N\u00e3o \u00e9 poss\u00edvel editar, fazer sugest\u00f5es ou coment\u00e1rios aqui.";this.L(I({b:"div",style:"display: none",id:"knol-comments-not-permitted",c:"knol-comment",children:[{b:"p",d:b}]}))};
var to=function(a){var b={b:"textarea",id:a,cols:"40",rows:"5"},c;if(c=k){b.c="knol-comment-lorem-ipsum";b.children=[{b:cn,d:Xe(c)}]}return I(b)};ro.prototype.ms=function(a){C("knol.ui.DiscussionView");this.L(uo(a))};var uo=function(){C("knol.ui.DiscussionView");return k},vo=function(a){var b=l;return(new oo).Cja(a,"knol-abuse-form","display: none",l,"",l,l,l,b)};var xo=function(a,b,c){for(var d=new Ec(b),f=new Ec(c),g=!!(b&&c),h=I({b:"span"}),i=l,m=0;m<a.length;m++){if(!i&&md(a[m])){i=j;h.$d(dn("dir","rtl"))}m&&h.addElement({b:bn,d:", "});if(f.contains(a[m]))h.addElement({b:"span",c:"knol-labels-voted-down",title:"Voc\u00ea votou contra esta categoria",d:mf(a[m])});else if(g){var n=I({b:"span",c:"knol-labels-wrapper"});n.addElement(wo(a[m]));n.addElement({b:"a",href:Wm,c:"knol-labels-flagdown goog-inline-block",title:"Somar voto negativo para esta categoria"});
d.contains(a[m])||n.addElement({b:"a",href:Wm,c:"knol-labels-voteup goog-inline-block",title:"Somar voto positivo para esta categoria"});h.addElement(n)}else h.addElement(wo(a[m]))}return h},yo=function(a){for(var b=I({b:bn}),c=0;c<a.length;c++){var d=I({b:"div"});d.addElement(wo(a[c]));d.addElement({b:"span",c:"knol-labels-delete",children:[{b:"a",href:Wm,c:"knol-less-important-small-link",d:"Remover"}]});b.addElement(d);b.la()}var f=I({b:"div"});f.addElement({b:"div",c:"knol-labels-add-text",style:"display: none",
children:[{b:"input",c:"knol-labels-add-input"},{b:"button",c:"knol-labels-add-button",d:"Adicionar"},{b:"br"},{b:"span",d:"Separe categorias individuais com v\u00edrgulas."}]});f.addElement({b:"div",c:"knol-labels-add",children:[{b:"a",href:Wm,c:"knol-labels-adder goog-inline-block"},{b:"a",href:Wm,d:"Adicionar uma categoria"}]});b.addElement(f);return b},wo=function(a){var b=dk("Search")+"?q=incategory%3A"+Ka(zo(a)),c=bg();if(c)b+="&back="+c;return I({b:"a",href:b,target:"_blank",c:"knol-labels-title",
d:mf(a)})},zo=function(a){if(!a)return"";if(Sa(a," ")&&!Sa(a,'"'))a='"'+a+'"';return a};var Ao=function(a,b){this.tj=a||"";this.nd=b};D(Ao,rn);
Ao.prototype.create=function(){if(this.nd.EBa()){this.L(I({b:"span",id:"knol-label-browser-hide",children:[{b:"a",href:Wm,c:"knol-labels-deleter goog-inline-block"}]}));this.L(I({b:"div",c:"knol-label-browser-title",d:"Categorias"}));this.L(I({b:"div",c:"knol-label-browser-subtitle",d:"Clique em categorias individuais para expandir"}));this.L(this.Dpa());this.L(I({b:"div",children:[{b:"a",c:"knol-label-browser-link",href:An("3vd571esbn0f5/18"),d:"Saiba mais sobre categorias"}]}));Qf(2,k,k,"knol.ui.client.LabelBrowser.initLabelBrowser",
[this.tj,this.nd.lF(),this.nd.Ata()])}};
Ao.prototype.Dpa=function(){var a=I({b:"div",id:"knol-label-browser"}),b=ak(),c=new Md(dk("Search"));c.P("q",this.tj);a.addElement({b:"div",c:"goog-tree-row",children:[{b:"img",c:"goog-tree-icon goog-tree-expanded-folder-icon",src:b},{b:"a",c:"goog-tree-item-label",href:c.toString(),d:Xe(this.tj)}]});for(var d=this.nd.lF()||[],f=0;f<d.length;f++){var g=d[f][1];c.P("q",this.tj+" incategory:"+zo(g));a.addElement({b:"div",c:"goog-tree-row",children:[{b:"img",c:f==d.length-1?"goog-tree-icon goog-tree-expand-icon goog-tree-expand-icon-l":
"goog-tree-icon goog-tree-expand-icon goog-tree-expand-icon-t",src:b},{b:"img",c:"goog-tree-icon goog-tree-collapsed-folder-icon",src:b},{b:"a",c:"goog-tree-item-label",href:c.toString(),d:Xe(g)}]})}return a};Ao.prototype.ga=function(){return!this.X9()&&!this.w9()};Ao.prototype.kk=function(){if(this.X9())return this.$ya();if(this.w9())return this.k5();return""};var Bo=/(^|\s)allin(title|author|comment|owner|review|category):/;Ao.prototype.X9=function(){return Bo.test(this.tj)};
Ao.prototype.w9=function(){var a=P();return a instanceof go&&a.cP()=="hide"};Ao.prototype.$ya=function(){var a=I({b:"span",c:"knol-label-browser-unsupported",d:"O navegador de categorias n\u00e3o se aplica a pesquisas especiais"});return a.v()};Ao.prototype.k5=function(){var a=I({b:"a",href:Wm,id:"knol-label-browser-show",d:"&#xAB; Procurar categorias"});return a.v()};var Co=function(a,b,c){this.oma=a;this.$=b;var d=c||"ffffff";if(d.charAt(0)=="#")d=d.substring(1);this.rma=d.toLowerCase()};Co.prototype.kfa=function(){return this.$>=5};Co.prototype.T0=function(){for(var a=I({b:"span",c:"zzAggregateRating"}),b=0;b<5;b++)a.addElement({b:"img",c:"zzSmallStar",src:this.qya(this.oma-b)});return a};Co.prototype.qya=function(a){var b=a<0.25?"empty":a>=0.75?"full":"half";return"http://www.google.com/reviews/images/small_star_"+b+"-"+this.rma+".gif"};var Do=function(){};
D(Do,Co);var Fo=function(a,b,c,d,f,g,h,i,m,n,o){b=Math.min(b,o||800);var p=I({b:"div",c:"knol-search-pagination"});i&&p.$d(dn("id",i));var s=f+"-prev",u=f+"-next",v=f+"-link",x=f+"-curr",y=l;if(a>0){y=j;var B=Math.max(0,a-c),G=Eo(d,"Anterior",B,c,f,g,h,m,n);p.addElement({b:"div",c:s,children:[G]})}if(b>c){y=j;for(var M=Math.max(0,a/c-10),R=Math.min(a/c+10,b/c),X=M;X<R;X++)if(X!=a/c){G=Eo(d,""+(X+1),X*c,c,f,g,h,m,n);p.addElement({b:"div",c:v,children:[G]})}else{p.addElement({b:"div",c:x,d:" "+(X+1)});i&&h&&
p.addElement({b:"span",id:i+"-current-page-start",style:"display: none",d:String(a)})}}if(a+c<b){y=j;B=Math.min(b,a+c);G=Eo(d,"Pr\u00f3ximo",B,c,f,g,h,m,n);p.addElement({b:"div",c:u,children:[G]})}y&&p.Q();return p},Eo=function(a,b,c,d,f,g,h,i,m){var n="",o="";if(i)o="_unpublish";return n=m?I({b:"a",href:a+"&"+m+"start="+c+"&"+m+"num="+d+g,c:f+"_"+c+"_"+d+o,d:b}):h?I({b:"a",href:a,c:f+"_"+c+"_"+d+o,d:b}):I({b:"a",href:a+"&start="+c+"&num="+d+g,d:b})};var Go=function(){this.Cfa=j};D(Go,rn);var Ho={},Io=function(a){return a.replace("-zipit-display-","-zipit-count-display-")};
Go.prototype.create=function(){var a=[],b="",c=new Do(ag());a.push(c.T0());c.kfa()||(b="display: none");var d=[{b:"div",style:b,d:"Classifica\u00e7\u00e3o do artigo:"}],f=[{b:"div",style:b,children:[{b:"span",id:"knol-zipit-article",children:a},{b:"span",id:"knol-zipit-count"}]}];if(this.Cfa){d.push({b:"div",d:"Sua classifica\u00e7\u00e3o:"});f.push({b:"div",children:[{b:"span",id:"knol-zipit-user"},{b:"div",id:"knol-zipit-user-desc"}]})}this.L(I({b:"div",c:"g-section g-tpl-33-67",id:"knol-zipit-container",
children:[{b:"div",c:"g-unit g-first",children:d},{b:"div",c:"g-unit",children:f}]}));this.Xj(k,k,"knol.getSingleton(knol.ui.client.Zipit).constructor.constructor",[])};var Jo=function(){};D(Jo,Go);
Jo.prototype.create=function(){var a=I({b:"div",id:"knol-review-zipit-container"});a.addElement({b:"div",id:"knol-review-zipit-ratings"});a.addElement({b:"span",children:[{b:"span",id:"knol-review-zipit-user-msg",d:"Voc\u00ea achou esta resenha \u00fatil?",style:"display:none"},{b:"span",id:"knol-review-zipit-user"}]});this.L(a);this.Xj(k,k,"knol.getSingleton(knol.ui.client.ReviewZipit).constructor.constructor",[])};var Ko=function(a){if(a=="admin"){var b=P();a=b&&b.Cb()}this.Kj=!!a;this.Pb=[];this.z2=this.zGa=l};D(Ko,rn);Ko.prototype.x0="knol-search-";Ko.prototype.CSa=l;var Lo=function(){return C("knol.ui.SearchResults")};Ko.prototype.search=function(a){this.uG(a);this.zd()};Ko.prototype.uG=function(a){this.rA=a;var b=new Pn;this.Ve=b;this.setStart(a.start);this.zOa(a.gZa);b.li=a.li};Ko.prototype.Nta=function(a){var b=J(a),c;return c=b?b.ej():"(Desconhecido)"};
Ko.prototype.create=function(){this.SZa&&this.zTa();var a=this.Oz&&this.Oz.bj();if(a){var b=!this.Oz.ga||this.Oz.ga();this.write('<div class="g-section g-tpl-25-75">');this.write('<div id="knol-search-left-side" class="g-unit g-first"');b||this.write(' style="display: none"');this.write(">");this.write(a);this.write("</div>");this.write('<div id="knol-search-contents"');b&&this.write(' class="g-unit"');this.write(">")}var c=this.Ve;if(this.Ifa){if(this.LZa){this.Pb[100]||this.Jha(j);this.L(fn())}}else{this.write('<div class="knol-search-top">');
var d,f;if(this.s6())if(this.CSa){f=this.Nta(c.nodeId);var g="Knols de "+(f+":\u2028");d=g}else d="Meus knols:";else d="Resultados da pesquisa:";var h=I({b:"div",c:"knol-search-results-title",d:d});this.L(h);var i=(new Mo).ov(),m=I({b:"div",id:"knol-search-write-knol"});m.addElement(i);this.L(m);this.Pb[100]||this.Jha();this.write('<div id="knol-search-message"');var n=!b&&a&&this.Oz.kk&&this.Oz.kk();if(n){this.write(">");this.write(n);this.write("</div>")}else this.write(' style="display: none"></div>');
if(c.iD){this.L(fn());this.L(tf(c.iD))}this.write("</div>")}this.L(fn());if(this.SQa){var o=this.g7(["q","SSO"]),p=o.Aa+o.tE;p+="&q="+this.SQa;var s=I({b:"a",href:p,d:this.WZa}),u="Voc\u00ea quis dizer "+(s.v()+"?");this.L(I({b:"div",c:"knol-search-promo",d:u}))}if(this.qv>0){if(this.Kj){var v=I({b:"div",c:"knol-search-selectors"});v.addElement(I({b:"a",c:"knol-fake-link",href:Wm,id:"knol-search-select-all",d:"Selecionar tudo"}));v.addElement(I({b:"span",d:" "}));v.addElement(I({b:"a",c:"knol-fake-link",
href:Wm,id:"knol-search-select-none",d:"Selecionar nenhum"}));this.L(v)}this.write('<div id="knol-searchresults-id">');this.write("<ul>");for(var x=0;x<this.qv;x++)if(this.nd&&this.nd[x])try{this.L(this.yTa(this.nd[x]))}catch(y){Lo().za("Error writing the "+x+"th result: "+y+" "+Se(this.nd[x]))}this.write("</ul>");this.write("</div>")}else this.Ffa||this.DW();if(this.Gfa)this.KZa&&this.Kha();else{this.Kha();if(!this.OZa){this.write("<br />");this.write(this.lTa().v())}this.write("<br />");this.PZa||
this.write(this.hTa().v())}a&&this.write("</div></div>")};var No=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c],f=d[0];if(f&&f!="0")b+=" "+("&lt;"+Xe(d[1])+"&gt;")}return b};q=Ko.prototype;
q.txa=function(){var a=this.Ve,b=this.uxa();b=b?I({b:"span",c:"knol-search-query",d:b}).v():"";if(a.VH||a.q8&&mg()=="en"){var c=a.VH?a.VH:"holiday08",d=Wn(c),f,g,h;if(ia(d)){g=Yn(d,j);f=d.knol.C;h=Xn(d,j)}else if(c&&this.Oba)if(d=this.Oba[c]){g=co(d.promoIcon);f=d.promoName;h=d.promoUrl}if(f&&g&&h){var i=I({b:"a",href:h,children:[{b:"img",src:g,alt:f,c:"knol-badge-small",title:f}]});b+=" "+i.v()}}if(a.link){b+=" <i>";var m=J(a.link);b+=m&&m instanceof vf?m.fa():Xe(a.link);b+="</i>"}if(a.BT)b+=" OR ("+
Xe(a.BT)+")";if(a.CT)b+=" OR ("+Xe(a.CT)+")";if(a.DT)b+=" OR ("+Xe(a.DT)+")";if(a.AT)for(var n=a.AT.split(" "),o=0;o<n.length;o++){var p=Ha(n[o]);if(p.length>0)b+=" -"+Xe(p)}if(a.qc){var s,u=Kn[a.qc];if(s=u?u.C:"")b+=" "+("&lt;"+Xe(s)+"&gt;")}var v="";if(a.language){var x=jot.lib.knol.locale.getLanguageName(a.language,mg());x=x?Dd(x):{};if(x.displayName)v=x.displayName}b+=No([[a.Rba,"data de publica\u00e7\u00e3o"],[a.M2,"editar data"],[a.b1,"data de cria\u00e7\u00e3o"],[a.language,mf(v)],[a.t$,"licen\u00e7a"],
[a.s0,"modo de colabora\u00e7\u00e3o"],[a.eba,"\u00e1udio"],[a.embeds,"incorpora\u00e7\u00f5es"],[a.QB&&!a.BW,"principais estat\u00edsticas"],[a.QB&&a.BW,"principais estat\u00edsticas da semana"],[a.templateId,"modelo"],[a.collected,"coletados"],[a.collections||a.foa,"cole\u00e7\u00f5es"],[a.Jga,"tradu\u00e7\u00e3o"]]);this.LMa();var y;if(a.Cs)y=a.Cs.split(",");else if(a.li)y=a.userId;if(y){var B=Oo(y,j);if(B)b+=" <i>"+B+"</i>"}b||(b="&lt;Nenhuma consulta\u2028&gt;");if(a.collected){var G=this.fza(),
M=b+(" - "+('<a href="'+G+'">Pesquisar em todo o Knol</a>'));b=M}return b};
q.Jha=function(a){var b=this.Ve;this.MZa&&this.L(this.Uxa(!!b.sLa));this.JZa&&this.L(this.pua(!!b.ioa));this.iQa&&this.L(this.mya(this.iQa,b.sort));this.ooa&&this.L(this.rua(this.ooa,this.compact));if(this.fQa)this.L(Po(this.fQa,undefined,this.rA||this.Ve));this.L(fn());var c=a?"":this.txa();if(this.EJ>0){var d=b.start+1,f=Math.min(b.start+b.oI,this.EJ),g;if(c){var h="Resultados "+(d+("-"+(f+(" de aproximadamente "+(this.EJ+(" para "+c))))));g=h}else{var i="Resultados "+(d+("-"+(f+(" de cerca de "+
this.EJ))));g=i}var m=I({b:"div",c:"knol-search-results-count",d:g});this.L(m)}else{if(c){var n="Nenhum resultado encontrado para "+c;g=n}else g="Nenhum resultado encontrado";var o=I({b:"div",c:"knol-no-search-results",d:g});this.L(o)}if(this.NZa&&this.sYa){var p=I({b:"div",c:"knol-leaves-dropped",d:"Alguns resultados podem estar temporariamente ausentes. Tente novamente."});this.L(p)}};
q.yTa=function(a){var b=a["sys/template"],c=b?xa(b,"Discussion"):this.o_a,d=b?xa(b,"User")||xa(b,"Group"):this.n_a,f=a.umst?l:this.zSa;if(d)return this.ZSa(a);if(this.ASa&&!a.publish)a=this.Zya(a);var g="/",h="";if(this.SEa)h="_blank";var i=a.title,m=120;if(this.XBa)m=50;var n=mf(i,m);if(c&&!n&&a.repliedToDiscussionTitle){var o='Em resposta a "'+(mf(a.repliedToDiscussionTitle,m)+'"');n=o}else if(!n)i=n="Sem t\u00edtulo";if(f)n=i;var p=a.authorInfo,s=a.multiAuthorInfo,u="",v="",x="",y="",B="",G=a.id,
M=a["sys/reserved/editTime"],R=this.Ej?a["timestamp"+this.Ej]:"",X=this.ufa&&this.Ej?a["chatLogModeratorTimestamp"+this.Ej]:"",Q=this.ufa&&this.Ej?a["chatLogEntryTimestamp"+this.Ej]:"",K=r(a.knolContentVersionNumber)?a.knolContentVersionNumber:1,Va=a.hasTTS,tb=a.firstImage,Oc=!a.eifs,Kb=l;if(this.Ej)Kb=this.t0&&ia(this.t0[G])?this.t0[G]:a["hidden"+this.Ej]=="true";if(typeof p!=="undefined"){x=p.name;v=mf(x,100);var Gh=a.author||a.knolprimaryOwner;if(Gh)u="";if(p.thumbnail){var Cd=window.manifest.serverBase;
y=Cd+p.thumbnail}}if(!x)v=x="An\u00f4nimo";var ff="ffffff",Og=!!a.useBackground||Kb||!!K&&!a.publish&&!c&&!f,Ee="";if(Og){ff="FFF5E5";Ee="knol-search-background";if(Kb){Ee+=" knol-search-hidden";ff="EEEEEE"}a.publish||(Ee+=" unpublished")}if(G)if(c){g="";g+="#comment-"+G}else g=a.titleUrl&&!this.z2&&a.publish?a.titleUrl:a.knolUrl?a.knolUrl:"";else if(f&&a.titleUrl&&!this.z2&&a.publish)g=a.titleUrl;else if(f&&a.knolUrl)g=a.knolUrl;if(!c&&g&&a["new"])g+="#edit";if(this.u0){var cj=undefined;if(this.eYa)cj=
this.vH;var mC=undefined,nC=undefined;if(this.gYa)mC=this.Ve.sort;if(this.fYa)nC=this.Ve.reverse;var oC=this.u0,pC=cj,qC=mC,Iq=nC,rC=this.p_a;if(g)if(oC){var dj=new Md(g);if(ia(rC))dj.P("submissionId",rC);else{dj.P("collectionId",oC);ia(pC)&&dj.P("position",pC);ia(qC)&&dj.P("sort",qC);if(ia(Iq))w(Iq)?dj.P("reverse",Iq=="on"?"on":"off"):dj.P("reverse",Iq?"on":"off")}g=dj.toString()}else g=g;else g=""}var mn={b:"div",d:n,c:"knol-search-knol-title"};if(!this.Gaa){mn.b="a";mn.href=g;mn.target=h;if(c)mn.rel=
"nofollow"}var qv=I({b:"div",c:"knol-title-wrapper",children:[mn]}),nn="";if(!this.Pb[2]&&(a.snippet||c&&a["main/text"]))if(B=c?"":this.zSa?a.snippet:mf(a.snippet,125))nn=I({b:"div",c:"knol-search-knol-snippet",d:B});var Pg=I({b:"div",c:"knol-search-knol-author"}),ej;if(!this.Pb[4]){var oM=Ya(n,15),rv="",sC="knol-search-knol-image knol-search-knol-image-sized";if(tb&&Oc){rv=tb+"?width=48&height=48";sC="knol-search-knol-image"}else rv=y?y:Zj("authors/thumbnail-default-48.png");ej=I({b:"div",c:"knol-search-knol-image-c",
children:[{b:"img",c:sC,src:rv,alt:oM,title:n}]})}if(v||s&&!c)if(!this.Pb[3])if(c){Pg.addElement({b:"span",d:"por",c:"knol-search-by"});Pg.addElement({b:"a",href:u,d:v,target:h})}else{var tC;(tC=s?Qo(s,undefined,this.Gaa||this.dma):Oo(G,undefined,this.Gaa||this.dma))&&Pg.addElement({b:"span",d:tC})}var od=I({b:"div",c:"knol-search-knol-author"});od=this.Lha(od,a,!this.compact);od=this.iTa(od,M,K,a.publish,R,X,Q);od=this.ETa(od,G,a.zipitRatingAvg,a.zipitRatingCount,ff);if(this.tfa)od=this.kTa(od,a.license);
od=this.CTa(od,Va);this.Pb[8]||(od=eo(od,a,j,this.Oba));if(this.Kj&&!this.Pb[102]&&!this.Pb[6])od=this.Eha(od,a,!this.compact);var on;if(this.Kj){on=I({b:"div",c:"knol-search-cb"});var pM=undefined,qM=I({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:pM,id:"knol-search-cb-"+G});on.addElement(qM);var vC=P();if(vC&&vC.Cb()){var sv=J(G);if(sv&&sv instanceof vf){var wC=sv.Ia();if(wC&&wC.uR()){on.Q();on.addElement({b:"span",style:"font-size: 0.6em",d:""})}}}}var xC="knol-search-knol";if(Ee)xC+=
" "+Ee;var Yc=I({b:"div",c:xC});if(this.k_a||this.compact){Yc.addElement(qv);ej&&Yc.addElement(ej);Pg.ke()&&Yc.addElement(Pg);Yc.addElement(od);nn&&Yc.addElement(nn);Yc.la()}else if(this.XBa){var gf="knol-search-horizontal-",yC=I({b:"div",c:gf+"top"}),pn=I({b:"div",c:gf+"left"}),Yk=I({b:"div",c:gf+"right"});yC.addElement(qv);ej&&pn.addElement(ej);Pg.ke()&&Yk.addElement(Pg);Yk.addElement(od);Yc.addElement(yC);Yc.la();Yc.addElement(pn);Yc.addElement(Yk)}else{gf=this.x0;pn=I({b:"div",c:gf+"left"});var Jq=
I({b:"div",c:gf+"mid"});Yk=I({b:"div",c:gf+"right"});ej&&pn.addElement(ej);Jq.addElement(qv);Pg.ke()&&Jq.addElement(Pg);nn&&Jq.addElement(nn);Yk.addElement(od);this.Kj&&Yc.addElement(on);if(this.vH){var zC=I({b:"div",c:gf+"number"});this.nTa(zC,G,this.vH++);Yc.addElement(zC)}Yc.addElement(pn);Yc.addElement(Jq);Yc.addElement(Yk);var Kq=I({b:"div",c:"knol-search-far-right"});if(this.uaa){var AC=I({b:"div",c:gf+"remove"});this.vTa(AC,G);Kq.addElement(AC)}if(this.saa){var qn=I({b:"div",c:gf+"hide knol-"+
(Kb?"hide":"show")});this.Gha(qn,G,j);Kq.addElement(qn);qn=I({b:"div",c:gf+"show knol-"+(Kb?"show":"hide")});this.Gha(qn,G,l);Kq.addElement(qn)}if(this.saa||this.uaa)Yc.addElement(Kq);Yc.la()}var tv=I({b:"li",c:"knol-search-bullet"});this.taa&&tv.$d(dn("id","knol-searchresults-item-"+G));tv.addElement(Yc);return tv};
q.ZSa=function(a){var b=I({b:"li",c:"knol-search-bullet"}),c=I({b:"div",c:"knol-search-knol"}),d="";if(this.SEa)d="_blank";var f="",g="",h="",i="",m=a.id,n=a["sys/reserved/creationTime"];if(typeof a!=="undefined"){var o=a.authName?Ha(a.authName):"",p=a.nickName?Ha(a.nickName):"";if(o&&(a.useAuth==undefined||a.useAuth||!p)){h=o;g=mf(h,100)}else if(p){h=p;g=mf(h,100)}if(!h)g=h="An\u00f4nimo";if(a.thumbnail){var s=window.manifest.serverBase;i=s+a.thumbnail}}if(m)f="";var u=I({b:"div",c:"knol-search-knol-author"}),
v,x=I({b:"div",c:"knol-search-knol-author"});if(!this.Pb[4]){var y;y=i?i:Zj("authors/thumbnail-default-48.png");var B=Ya(g,15);v=I({b:"div",c:"knol-search-knol-image-c",children:[{b:"img",c:"knol-search-knol-image knol-search-knol-image-sized",src:y,alt:B,title:g}]})}g&&u.addElement({b:"a",href:f,d:g,target:d,c:"knol-search-knol-title"});var G=a.disambiguation;G&&u.addElement({b:"div",c:"knol-search-knol-snippet",d:Xe(G)});this.Pb[6]||(x=this.Lha(x,a,!this.compact));x=this.fTa(x,n);this.Pb[8]||(x=
eo(x,a,l,k));if(this.Kj&&!this.Pb[102]&&!this.Pb[6])x=this.Eha(x,a,!this.compact);var M=this.x0,R=I({b:"div",c:M+"left"}),X=I({b:"div",c:M+"mid"}),Q=I({b:"div",c:M+"right"});v&&R.addElement(v);u.ke()&&X.addElement(u);Q.addElement(x);if(this.Kj){var K=I({b:"div",c:"knol-search-cb"});c.addElement(K)}c.addElement(R);c.addElement(X);c.addElement(Q);c.la();b.addElement(c);return b};
q.ETa=function(a,b,c,d,f){if(!this.Pb[5]){var g=this.iba||"knol-searchresults-id",h;var i=g+"-zipit-display-"+b;if(Ho[i])h=i+"-zipit-disambiguator-"+Ho[i]++;else{Ho[i]=1;h=i}var m=I({b:"span",c:"knol-search-knol-zipit",id:h}),n=j,o=f||"ffffff",p=new Co(Number(c)||0,Number(d)||0,o);(n=p.kfa())&&m.addElement(p.T0());var s="";this.Pb[101]||(s=I({b:"span",c:"knol-zipit-count-display",id:Io(h)}));var u=ia(this.dT)?this.dT:"knol-search-knol-info";a.addElement({b:"div",c:u,children:n?[m,s]:[]});this.compact||
a.la()}return a};q.CTa=function(a,b){if(b=="TTS"&&!this.Pb[8]){var c=Zj("icons/play-tts.png");a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-tts",children:[{b:"img",src:c,alt:"Texto para fala",title:"Texto para fala"}]})}return a};
q.Lha=function(a,b,c){var d=b.pageviews,f=b.eventsPageviewsTotal,g=b.authorEventsPageviewTotal,h=b.comments;if(!this.Pb[6]){if(f&&f>0)d=f;else if(g&&g>0)d=g;if(d){var i=Number(d);isNaN(i)||i<10||(d=i<100?Math.floor(i/10)*10:i<1E3?Math.floor(i/100)*100:Math.floor(i/1E3)*1E3);var m=I({b:"span",c:"knol-search-knol-info-details",d:d}),n="Visualiza\u00e7\u00f5es: "+m.v();a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-pageviews",d:n});c&&a.la()}if(h){m=I({b:"span",c:"knol-search-knol-info-details",
d:h});var o="Coment\u00e1rios: "+m.v();a.addElement({b:"div",c:"knol-search-knol-info knol-search-knol-info-comments",d:o});c&&a.la()}}return a};q.Eha=function(){return k};
q.iTa=function(a,b,c,d,f,g,h){var i="knol-search-knol-info knol-search-knol-info-edited",m="knol-search-knol-info-details";if(this.ufa){var n=(new Date(h)).getTime(),o=(new Date(g)).getTime(),p=n-o;if(p>0){a.addElement({b:"span",c:m,d:'<span class="knol-search-new">Novos</span> coment\u00e1rios privados'});this.compact||a.la()}}if(b)b=xf(b);if(b&&(!r(this.aV)||this.aV)){this.compact||a.la();if(c&&!this.Pb[9]){var s=I({b:"span",c:m,d:c}),u;if(d){var v="Vers\u00e3o publicada: "+s.v();u=v}else{var x=
"Vers\u00e3o n\u00e3o publicada: "+s.v();u=x}a.addElement({b:"span",c:"knol-search-knol-info knol-search-knol-info-version",d:u});this.compact||a.la()}if(!this.Pb[7]){s=I({b:"span",c:m,d:b});var y="Editado: "+s.v();a.addElement({b:"span",c:i,d:y});this.compact||a.la()}}if(!this.Pb[10]&&f)if(f=xf(f)){s=I({b:"span",c:m,d:f});var B="Inclu\u00eddo \u00e0s: "+s.v();a.addElement({b:"span",c:i,d:B});this.compact||a.la()}return a};
q.fTa=function(a,b){if((b=xf(b))&&(!r(this.aV)||this.aV)){this.compact||a.la();if(!this.Pb[7]){var c=I({b:"span",c:"knol-search-knol-info-details",d:b}),d="Associado desde: "+c.v();a.addElement({b:"span",c:"knol-search-knol-info knol-search-knol-info-joined",d:d});this.compact||a.la()}}return a};
q.kTa=function(a,b){if(b&&this.tfa){var c="knol-search-knol-info knol-search-knol-info-edited";if(b!=this.tfa)c+=" knol-license-different";var d=(new Ro(Qg(b))).Qg();a.addElement({b:"div",c:c,children:[d]});a.la()}return a};
q.nTa=function(a,b,c){var d=this.Pb[4]&&this.Pb[3]&&this.Pb[2]?"0":"1em 0";a.$d(dn("style","padding:"+d));var f=this.Pb[1]?"display:none":"width: 4em";a.addElement({b:"span",style:f,id:"knol-searchresults-number-"+b,c:"knol-search-item-number",d:String(c)+"."});a.addElement({b:"input",id:"knol-searchresults-numberbox-"+b,c:"knol-search-item-number-box",autocomplete:"off",value:String(c)});return a};
q.vTa=function(a,b){a.addElement({b:"a",id:"knol-searchresults-remove-"+b,href:Wm,children:[{b:"img",src:"../images/icons/delete.png",sprite:"main",alt:"Remover"}]});return a};
q.Gha=function(a,b,c){var d,f,g,h;if(c){d="Ocultar o knol da visualiza\u00e7\u00e3o de cole\u00e7\u00e3o mas manter as propriedades da cole\u00e7\u00e3o";f="Ocultar";g="../images/icons/hide.png";h="knol-searchresults-hide-"}else{d="Exibir o knol na visualiza\u00e7\u00e3o da cole\u00e7\u00e3o";f="Exibir";g="../images/icons/show.png";h="knol-searchresults-show-"}a.addElement({b:"a",id:h+b,href:Wm,children:[{b:"img",src:g,sprite:"main",title:d,alt:f}]});return a};q.eaa="Search";
q.g7=function(a){for(var b=this.eaa||"Search",c=dk(b)+"?",d=this.rA||req.args,f="",g=vc(d),h=0;h<g.length;h++){var i=g[h];Db(a,i)||(f+="&"+i+"="+Ka(d[i]))}return{Aa:c,tE:f}};q.Kha=function(){var a="",b=this.Ve;a=this.xIa?{Aa:this.xIa,tE:this.mZa||""}:this.wIa?{Aa:Wm,tE:""}:this.g7(["num","start","SSO","show"]);this.L(Fo(la(this.Xra)?this.Xra:b.start,la(this.Yra)?this.Yra:this.EJ,b.oI,a.Aa,"knol-search-knol-pagination",a.tE,this.wIa,this.lZa,!!b.aD,this.kZa,this.nZa))};
q.hTa=function(){if(this.s6())return I({b:"span"});var a=I({b:"div",c:"knol-search-promo"}),b=I({b:"span",d:"Conhece algu\u00e9m que entende de algo?"});a.addElement(b);a.addElement({b:"span",d:" "});a.addElement({b:"a",id:"knol-invite-new-knol-promo",href:Wm,d:"Sugerir um autor"});return a};
q.lTa=function(){var a=this.rA||req.args,b=this.Ve||new Pn;if(this.nd.length<=0||ia(a.cx)||b.qc==3||b.qc==2||this.IYa)return I();var c=this.nd[0],d=c.knolUrl||"",f,g=this.Ve.start+1,h=a||req.args,i=new Md(d);i.P("navSearch","on");i.P("position",g||0);ia(h.li)&&h.li=="general"&&i.P("fields",-1);for(var m=gc(h),n=0;n<m.length;n++){var o=m[n];if(hc(Qn,o)||hc(Rn,o)||hc(Sn,o)||hc(Tn,o)||wa(o,"loc")||wa(o,"embed")||wa(o,"top")||wa(o,"promo"))i.P(o,h[o])}f=i.toString();return I({b:"div",c:"knol-search-navigation-link",
children:[{b:"a",href:f,d:"Visualizar um knol por vez nesta lista"}]})};q.DCa=function(){var a=this.Ve,b=["knol-searchresults-id","div","ffffff"];this.zn(k,k,"knol.ui.client.ZipitDisplay.initContainer",b);var c=this.rA||req.args,d=c.inviteAuthorRedirect=="1";this.zn("knol.ui.client.SearchResults",[a.wm,d],k,k);this.zn(k,k,"knol.ui.client.CreateKnol",[])};q.zd=function(){Ko.f.zd.call(this);this.DCa()};
q.LMa=function(){var a=this.Ve;if(a.Cs)a.li=2;else{a.Cs="";if(a.li==2||a.li==3){var b="";if(a.li==2)b=a.iD;else{a.li=2;b=ek(a.Aa)||""}var c=J(b);if(c instanceof vf){var d=c.Ia(),f=d.Nh().dc(),g=d.Zx().dc();f=f.concat(g);a.Cs=f.join(",")}else if(c instanceof uf)a.Cs=b}}};
var Oo=function(a,b,c){var d=[];if(ja(a))for(var f=0;f<a.length;f++){var g=J(a[f]);if(g){var h=g.mb();d.push({name:h,id:a[f]})}}else if(g=J(a))if(g instanceof vf){var i=g,m=i.Ia(),n=m.Nh().dc(),o=m.Zx().dc(),p=n.concat(o);for(f=0;f<p.length;f++){h="";if(f<4){var s=J(p[f]);h=s.mb()}d.push({name:h,id:p[f]})}}else if(g instanceof go){h=g.mb();d.push({name:h,id:a})}return Qo(d,b,c)};Ko.prototype.Ata=function(){return this.Kj};Ko.prototype.lF=function(){return this.XYa};
Ko.prototype.EBa=function(){return this.qv>0};
var Qo=function(a,b){for(var c,d=[],f=function(B){var G=B.name;if(!G&&B.id){var M=J(B.id);if(M)G=M.mb()}G||(G="An\u00f4nimo");var R=mf(G,100);return"<span>"+R+"</span>"},g=Math.min(4,a.length),h=0;h<g;h++)d[h]=f(a[h]);switch(a.length){case 0:if(b)return"";else c="Por autores desconhecidos";break;case 1:if(b){var i="knols por "+d[0];c=i}else{var m="Por "+d[0];c=m}break;case 2:if(b){var n="knols por "+(d[0]+(" ou "+d[1]));c=n}else{var o="Por "+(d[0]+(" e "+d[1]));c=o}break;case 3:if(b){var p="knols por "+
(d[0]+(", "+(d[1]+(" ou "+d[2]))));c=p}else{var s="Por "+(d[0]+(", "+(d[1]+(" e "+d[2]))));c=s}break;case 4:if(b){var u="knols por "+(d[0]+(", "+(d[1]+(", "+(d[2]+(" ou "+d[3]))))));c=u}else{var v="Por "+(d[0]+(", "+(d[1]+(", "+(d[2]+(" e "+d[3]))))));c=v}break;case 5:default:if(b){var x="knols por "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", "+(d[3]+(" ou outros autores relacionados ("+(""+(a.length+" autores)"))))))))));c=x}else{var y="Por "+(d[0]+(", "+(d[1]+(", "+(d[2]+(", "+(d[3]+(" et al ("+(""+(a.length+
"autores)"))))))))));c=y}}return c};q=Ko.prototype;q.Pb=[];q.NI=function(a){this.Pb=[];for(var b=0;b<a.length;b++)this.Pb[a[b]]=1};
q.DW=function(){var a=I({b:"div",c:"knol-empty-results-title",id:"knol-searchresults-id",d:"Sugest\u00f5es:"}),b=I({b:"ul"});b.addElement({b:"li",d:"Verifique se todas as palavras foram escritas corretamente.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Tente usar palavras-chave diferentes.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Tente usar palavras-chave mais comuns.",c:"knol-empty-results-suggestions"});a.Q();a.Q();a.addElement(b);this.L(a)};
q.uxa=function(){return mf(this.Ve.wm,2E3)};q.setStart=function(a){a=parseInt(a,10);this.Ve.start=a&&a>=0?a:0;this.zGa=this.Ve.start>=30};q.zOa=function(a){a=(a=parseInt(a,10))&&a>0?a:10;a=Math.min(a,50);this.Ve.oI=a};q.s6=function(){return!ia(this.Ve.li)};
q.mya=function(a,b){for(var c=I({b:"div",c:"knol-authorpage-sortlabel",d:"Classificar por:"}),d=Ln,f=On(b,d),g,h=d,i=f,m="knol-advancedsearch-dropdown",n=I({b:"select",name:a,id:"knol-advancedsearch-"+a,c:m}),o=P(),p=o&&o.Cb(),s=0;s<h.length;s++){var u=h[s],v=r(u.C)?u.C:"",x=r(i)?i==s:u.YD;if(!u.dn||p){var y=u.id||s,B=I({b:"option",value:""+y,d:v,selected:x});n.addElement(B)}}g=n;var G=I({b:"div",c:"knol-authorpage-sort"});G.addElement(c);G.addElement(g);return G};
q.rua=function(a,b){var c=I({b:"div",c:"knol-authorpage-compact"}),d=I({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:b,name:"unpub",id:a});c.addElement(d);c.addElement(I({b:"span",d:"Compacto"}));return c};
q.Uxa=function(a){var b=I({b:"div",c:"knol-reviews-about"}),c="knol-reviews-by";b.addElement({b:"input",type:"radio",name:"knol-reviews-about-selector",id:c,value:"by",checked:a?undefined:"checked"});b.addElement({b:"label","for":c,d:"Resenhas deste autor"});c="knol-reviews-about";b.addElement({b:"input",type:"radio",name:"knol-reviews-about-selector",id:c,value:"about",checked:a?"checked":undefined});b.addElement({b:"label","for":c,d:"Resenhas sobre os knols deste autor"});return b};
q.pua=function(a){var b=I({b:"div",c:"knol-comments-to"}),c="knol-comments-by";b.addElement({b:"input",type:"radio",name:"knol-comments-to-selector",id:c,value:"by",checked:a?undefined:"checked"});b.addElement({b:"label","for":c,d:"Coment\u00e1rios deste autor"});c="knol-comments-to";b.addElement({b:"input",type:"radio",name:"knol-comments-to-selector",id:c,value:"about",checked:a?"checked":undefined});b.addElement({b:"label","for":c,d:"Coment\u00e1rios escritos para este autor"});return b};
q.zTa=function(){var a=P();if(a&&a.Cb()){this.write('<textarea cols="120" rows="'+(this.qv+1)+'">');this.write("\n");for(var b=0;b<this.qv;b++)if(this.nd&&this.nd[b])try{this.write(this.ATa(this.nd[b]))}catch(c){Lo().za("Error writing the "+b+"th result: "+c+" "+Se(this.nd[b]))}this.write("</textarea><br /><br />")}};
q.ATa=function(a){var b=a.authorInfo,c="";if(typeof b!=="undefined")c=b.name;var d=a.knolUrl||"";d=jot.lib.knol.getBaseUrl()+d;var f="";f+=this.qw(d);f+=this.qw(mf(a.title,undefined,j));f+=this.qw(mf(c,undefined,j));f+=this.qw(a.eventsPageviewsTotal);f+=this.qw(a.knolRQ);f+=this.qw(a.knolRS);return f+"\n"};q.qw=function(a){a=""+(a||"");var b,c=a,d=new RegExp(String(",").replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g");b=c.replace(d,"");return b+","};
q.Zya=function(a){var b="Knol n\u00e3o publicado";if(a["new"])b="Novo knol";if(a.unknown)b="Knol desconhecido";var c={"sys/template":a["sys/template"]||"/system/knol/templates/Knol",id:a.id,knolUrl:a.knolUrl,title:b,publish:undefined,authorInfo:a.authorInfo,author:a.author,multiAuthorInfo:a.multiAuthorInfo,useBackground:1};if(a["new"])c["new"]=a["new"];if(this.Ej)c["hidden"+this.Ej]=a["hidden"+this.Ej];return c};
q.fza=function(a){var b=new Md(a||String(req.uri)),c="collected",d=b.dxa(c);d&&d=="on"?b.QI(c,"off"):b.QI(c,"on");return mf(b.toString(),undefined,j)};var So=function(a){Ko.call(this,a)};D(So,Ko);q=So.prototype;q.Ve=k;q.eaa="system/knol/pages/SearchToolkit";q.XLa=function(a,b){var c=a||req.args,d=new Pn;this.rA=c;var f=function(g,h,i){for(var m in g){var n=c[g[m]];if(r(n))h[m]=i(n)}};f(Qn,d,To);f(Rn,d,Uo);f(Sn,d,Vo);f(Tn,d,Wo);if(r(c.pubOverride))d.$C=c.pubOverride=="true"?1:0;this.EIa(d,c);this.CIa(d,c);this.GIa(d,c);this.FIa(d);b||this.WLa(d,j);return d};q.WLa=function(){};
q.DW=function(){if(this.f_a){var a=I({b:"div",c:"knol-empty-results-title",id:"knol-searchresults-id",d:"Restrinja a sua consulta pois ela \u00e9 muito abrangente. Algumas sugest\u00f5es:"}),b=I({b:"ul"});b.addElement({b:"li",d:"Adicione uma palavra ou frase \u00e0 sua pesquisa",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Pesquise apenas os seus autores preferidos adicionando o url de um dos seus knols.",c:"knol-empty-results-suggestions"});b.addElement({b:"li",d:"Tente filtrar os resultados por hora (no \u00faltimo dia)",
c:"knol-empty-results-suggestions"});a.Q();a.Q();a.addElement(b);this.L(a)}else Ko.prototype.DW.call(this)};q.EIa=function(a,b){if(r(b.Kx))a.Kx=Uo(b.Kx);else for(var c=a.Kx=0;c<In.length;c++){var d=b["loc"+c];if(r(d)&&d=="on")a.Kx+=parseInt(In[c].value,10)}};q.CIa=function(a,b){if(r(b.embeds))a.embeds=Uo(b.embeds);else for(var c=a.embeds=0;c<Mn.length;c++){var d=b["embed"+c];if(r(d)&&d=="on")a.embeds+=parseInt(Mn[c].value,10)}};
q.GIa=function(a,b){if(r(b.tops))a.QB=Uo(b.tops);else for(var c=a.QB=0;c<Nn.length;c++){var d=b["top"+c];if(r(d)&&d=="on")a.QB+=parseInt(Nn[c].value,10)}};q.FIa=function(a){var b=a.promo;if(ia(b))a.promo=xh(b)};
var Wo=function(a){return a?""+a:""},Uo=function(a){return r(a)?parseInt(a,10):0},Vo=function(a){return r(a)?parseFloat(a):0},To=function(a){return a=="on"?1:0},Xo=function(a){var b={show:"off",loc0:"on",loc1:"on",loc2:"on",loc3:"on",loc4:"on",loc5:"on",loc6:"on",loc7:"on",loc8:"on"};for(var c in a)b[c]=a[c];var d=[dk("system/knol/pages/SearchToolkit")+"?"];for(c in b)d.push(c+"="+b[c]+"&");return d.join("")};
So.prototype.uT=function(a){if(a.Zra&&a.kQa){for(var b=a.kQa.split(","),c=0;c<this.nd.length;c++){var d=this.nd[c],f=d.id;if(f){var g=sb(b,f);if(g>=0)b[g]=k}}for(c=0;c<b.length&&c<50;c++)if(f=b[c]){var h={id:f,unknown:1,knolUrl:"",multiAuthorInfo:[{id:"",name:"(Desconhecido)"}]};Pb(this.nd,c,0,h)}}};var Yo=function(a,b){this.Ra=a;this.RG=b;this.Oaa=a.jk()<b.Tl()},Zo=[{sort:19,C:"personalizado"},{sort:21,C:"classifica\u00e7\u00f5es com estrelas"},{sort:4,C:"visualiza\u00e7\u00f5es de p\u00e1gina"},{sort:8,C:"ordem alfab\u00e9tica"},{sort:29,C:"data de inclus\u00e3o"},{sort:1,C:"\u00faltima modifica\u00e7\u00e3o"},{sort:2,C:"data de cria\u00e7\u00e3o"}];Yo.prototype.mo=function(){return!!this.RG&&this.RG.gd()!=0};
Yo.prototype.Bpa=function(a,b,c){var d=c||"",f=I({b:"div"}),g=I({b:"div",id:"knol-collection-panel"});g.addElement({b:"span",id:"knol-collection-sort-label",d:"Classificar por: "});g.addElement({b:"span",id:"knol-collection-sort-default",d:"M\u00e9todo de classifica\u00e7\u00e3o padr\u00e3o: "});for(var h=I({b:"select",id:"knol-collection-sort"+d,autocomplete:"off"}),i=r(a)?a||19:this.RG.hq(),m=0;m<Zo.length;m++){var n=Zo[m];h.addElement({b:"option",value:String(n.sort),d:n.C,selected:n.sort==i})}g.addElement(h);
var o=r(b)?!!b:this.RG.gq();g.addElement({b:"input",type:"checkbox",id:"knol-collection-reverse"+d,checked:o,autocomplete:"off"});g.addElement({b:"label","for":"knol-collection-reverse",d:"Inverter classifica\u00e7\u00e3o"});f.addElement(g);return f};
var $o=[[],[],["A apar\u00eancia do seu knol \u00e9 controlada pela cole\u00e7\u00e3o."],["A apar\u00eancia do seu knol \u00e9 controlada pela cole\u00e7\u00e3o.","Voc\u00ea est\u00e1 concedendo acesso editorial ao seu knol para os moderadores da cole\u00e7\u00e3o."],["<b>Voc\u00ea est\u00e1 transferindo o controle do seu knol para os moderadores da cole\u00e7\u00e3o</b>.","A apar\u00eancia do seu knol \u00e9 controlada pela cole\u00e7\u00e3o.","Voc\u00ea est\u00e1 concedendo acesso editorial ao seu knol para os moderadores da cole\u00e7\u00e3o.",
"As edi\u00e7\u00f5es futuras que fizer neste knol ser\u00e3o moderadas pelos moderadores da cole\u00e7\u00e3o. O seu knol ser\u00e1 fechado automaticamente para edi\u00e7\u00f5es do p\u00fablico em geral.","Voc\u00ea n\u00e3o poder\u00e1 cancelar a publica\u00e7\u00e3o ou excluir o knol e deve solicitar a remo\u00e7\u00e3o de um moderador para retirar seu knol da cole\u00e7\u00e3o."]],ap=function(a,b,c){var d=I({b:"ul",c:b||""}),f=$o[a];if(!f)return I();for(var g=0;g<f.length;g++){var h=f[g];d.addElement({b:"li",
d:h,c:c||""})}return d},bp=function(a,b){if(!a)return I();wa(a,"http://")||(a="http://"+a);var c="Leia as "+('<a href="'+a+'" target="_blank">diretrizes adicionais</a> desta cole\u00e7\u00e3o moderada.'),d=I({b:"div",c:b||"",d:c});return d};var cp=function(a,b){if(b.ka()==2)a.Lw(b.Fn());else if(b.ka()==0)a.V1([b.yO()]);else if(b.ka()==1){var c=b.Fn();a.pH(a.lsa(c),c.Kf(),c.fa(),c.dk())}},dp=function(a,b){this.Yda(a);this.Gda(b);if(this.jq()&&this.Fn())this.pi(1);else if(!this.jq()&&this.Fn())this.pi(2);else if(this.jq()&&!this.Fn())this.pi(0);else e(new Error("change constructor must be provided at least the deletion or addition"))};D(dp,Df);q=dp.prototype;
q.T=function(a){if(a){var b=a.addition;if(b){var c=new Xh;c.T(b);this.Gda(c)}var d=a.deletion;if(d){var f=new Xh;f.T(d);this.Yda(f)}this.pi(a.type);this.bNa(a.deletionPos)}};q.serialize=function(){var a={};a.addition=this.Fn()?this.Fn().serialize():k;a.deletion=this.jq()?this.jq().serialize():k;a.type=this.ka();a.deletionPos=this.yO();return a};q.jq=function(){return this.deletion||k};q.Yda=function(a){if(a)this.deletion=a};q.Fn=function(){return this.addition||k};
q.Gda=function(a){if(a)this.addition=a};q.ka=function(){return r(this.type)?this.type:k};q.pi=function(a){this.type=a};q.yO=function(){return r(this.deletionPos)?this.deletionPos:k};q.bNa=function(a){this.deletionPos=a};var ep=function(a,b,c){this.TR=a||"";this.pM=b||0;this.WK=c||0;this.ic=[]};D(ep,Df);q=ep.prototype;q.ic=[];q.cC=0;q.pM=0;q.WK=0;q.LT="";q.XG=0;q.BA=0;q.MA=-1;q.yJ="";q.CV=0;q.content=k;q.title=k;q.NV=k;q.wJ=k;q.xV=k;q.KC=k;q.cZ=k;q.EA=k;q.cca=k;q.OA=k;q.yT=l;q.EB="";q.$ca=0;q.ql=k;q.QN=l;q.gW=l;
q.serialize=function(){var a={};a.knId=this.TR;a.changes=this.nMa();a.updated=this.cC;a.current=this.pM;a.acknowledged=this.WK;a.relative=this.LT;a.latest=this.XG;a.published=this.BA;a.resolution=this.MA;a.content=this.content;a.editable=this.xx;a.suggestionId=this.yJ;a.suggestionVersion=this.CV;a.title=this.title;a.titleSuggestion=this.NV;a.subtitle=this.wJ;a.subtitleSuggestion=this.xV;a["abstract"]=this.KC;a.abstractSuggestion=this.cZ;a.references=this.EA;a.referencesSuggestion=this.cca;a.review=
this.OA;a.publish=this.yT;a.suggestion=this.EB;a.revert=this.$ca;a.collection=this.ql;a.forceupdate=this.QN;a.updateCollection=this.gW;return a};q.nMa=function(){for(var a=[],b=0;b<this.ic.length;b++)a.push(this.ic[b].serialize());return a};
q.T=function(a){this.TR=a.knId;this.Fqa(a.changes);this.cC=a.updated;this.WK=a.acknowledged;this.pM=a.current;this.LT=a.relative;this.XG=a.latest;this.BA=a.published;this.MA=a.resolution;this.content=a.content;this.xx=a.editable;this.yJ=a.suggestionId;this.CV=a.suggestionVersion;this.title=a.title;this.NV=a.titleSuggestion;this.wJ=a.subtitle;this.xV=a.subtitleSuggestion;this.KC=a["abstract"];this.EA=a.references;this.cca=a.referencesSuggestion;this.OA=a.review;this.yT=a.publish;this.EB=a.suggestion;
this.$ca=a.revert;this.ql=a.collection;this.QN=a.forceupdate;this.gW=a.updateCollection};q.Fqa=function(a){this.ic=[];for(var b=0;b<a.length;b++)this.ic.push(fp(a[b]))};q.sBa=function(){for(var a=0;a<this.ic.length;a++)if(this.ic[a].WL)return j;return l};q.$F=function(){for(var a=0;a<this.ic.length;a++)if(!this.ic[a].zV)return j;return l};q.LQ=function(){for(var a=0;a<this.ic.length;a++)if(this.ic[a].AW)return j;return l};q.Ga=function(){return this.ic.length<=0};
q.x5=function(){for(var a=0,b=0;b<this.ic.length;b++)if(this.ic[b].pE>a)a=this.ic[b].pE;return a};q.nza=function(){for(var a=0,b=0;b<this.ic.length;b++)a|=this.ic[b].AW;return a};q.Xua=function(a){for(var b=0;b<this.ic.length;b++){var c=this.ic[b];if(c.laa==a)return c.args[0]}return k};q.R4=function(){return this.Xua(16)};q.xd=function(){};var gp=function(a,b){this.laa=a;this.args=b||[];this.pE=0};D(gp,Df);gp.prototype.zV=j;gp.prototype.WL=l;gp.prototype.result=k;
gp.prototype.serialize=function(){return[this.laa,this.args,this.zV,this.WL,this.result,this.pE,this.AW]};var fp=function(a){if(a[0]==2048&&a[1]&&a[1][0]){var b=new Yh;b.T(a[1][0]);a[1][0]=b}var c=new gp(a[0],a[1]);c.zV=a[2];c.WL=a[3];c.result=a[4];c.pE=a[5];c.AW=a[6];return c};var hp={};hp.ie=function(){return C("knol.Featured")};hp.GC=7;hp.Bia=10;hp.tia=90;hp.Via={ar:30,it:30};hp.lVa=hp.GC*hp.Bia*3;hp.Gya=function(a,b){var c=new Ol,d=hp.C4();c.setTime(d[0].getTime());if(b)g=new Nl("d",hp.GC);else var f=hp.xwa(a),g=new Nl("d",-f);c.add(g);return c};hp.uZa=function(){return 0};hp.aX=3;
hp.zYa=function(a){var b=fg();if(!b||!hp.R_(b,a))return l;var c=J(a),d=c.Ia(),f=J(b);if(!f.Cb()&&!f.pk()&&!f.gRa(19,j,hp.aX))return l;d.sNa((new Ol).getTime());var g=d.Zxa(c.jk(),c.bo());d.tNa(g[1]);d.rNa(b);d.save();d.log({event:"featureKnol",user:fg()});jot.lib.knol.purgeCache("/k/knol/Home");return j};
hp.R_=function(a,b){var c=J(b),d=c.Ia(),f=J(a);if(!f)return l;if(f.Cb())return j;if(!hp.GL(d))return l;var g=d.Z4();if(g){var h=d.getLanguage(),i=hp.Gya(h,l),m=i.getTime();if(g>m)return l}if(f.pk())return j;if(!d.Xta())return l;if(d.fc(f.p()))return l;if(f.Rxa()<=0)return l;if(f.uq().k4(19)<hp.aX)return l;return j};hp.xwa=function(a){return hp.Via[a]||hp.tia};
hp.fLa=function(a){var b=Dd(a);if(!b||!b.results)e(new Error("Missing results"));return xb(b.results,function(c){var d=J(c.id);if(!d)return k;var f=d.Ia(),g=f.hva();return g&&g>=0?J({nodeId:d.p(),version:g}):d})};hp.rZa=function(a,b,c){for(var d=a.length,f=0;f<d;f++){var g=Math.floor(Math.random()*a.length),h=a[g];Gb(a,g);var i=h.Ia();if(hp.GL(i))if(!(b.contains(h.p())||c.contains(i.kd())))return h}return k};
hp.HYa=function(a){hp.ie();var b=hp.C4(),c=hp.qsa(b[0].getTime(),b[1].getTime(),a),d=hp.fLa(c);if(!d)e(new Error("Failed to find queued knols"));return hp.Mma(b[0],d)};hp.C4=function(){var a=new Ol,b=new Nl("d",hp.GC),c=new Ol;c.setTime(a.getTime());c.add(b);return[a,c]};
hp.Mma=function(a,b){hp.ie();for(var c=[],d=0;d<hp.GC;d++){var f=wb(b,function(g){if(!g)return l;var h=g.Ia(),i=h.Z4();if(!i)return l;if(!hp.GL(h))return l;var m=new Ol;m.setTime(i);var n=new Ol;n.setTime(a.getTime());var o=new Nl("d",d);n.add(o);return n.tc(m)});c[d]=f}return c};hp.DYa=function(){return""};hp.GL=function(a){if(a.XE()||a.iy()||!a.HL())return l;var b=J(a.kd());if(b&&b.pk())return l;return j};hp.qsa=function(){return""};var ip={};ip.Sha=1024;ip.fia=512;ip.ie=function(){return C("knol.Labels")};ip.BYa=function(a){var b=fg();return jot.lib.knol.labels.fetchLabels(a,b)};ip.CZa=function(a,b){var c=J(a),d=c.Ia();ip.ie();var f=fg();if(f&&!d.j9(f)){var g=J(f),h=1;if(g&&g.Cb())h=ip.Sha;else if(d.fc(f))h=ip.fia;for(var i in b){var m=b[i]==0?0:b[i]>0?1:-1;b[i]=m*h}var n=jot.lib.knol.labels.saveLabels(a,f,b);c.purgeCache();return n}else return k};
ip.saveQueryLabels=function(a,b,c){var d=fg();return jot.lib.knol.labels.saveQueryLabels(a,d,b,c)};var jp=function(a){this.gg=0;return nl.call(this,a)};Tk(jp,nl,"Edit");$d(jp.prototype,Df.prototype);jp.prototype.type=1;var kp=function(a){this.gg=0;return nl.call(this,a)};Tk(kp,nl,"EditBunch");$d(kp.prototype,Df.prototype);kp.prototype.type=32;kp.prototype.remove=function(){this.nKa(this.Tta(),2);kp.f.remove.call(this)};kp.prototype.Tta=function(){return Pj(this,Kj.UW)};var lp=function(a,b,c,d){Jj.call(this,a,b,c,d)};D(lp,Jj);lp.prototype.Hk=rh;lp.prototype.sort=Rj;var mp=function(a){return S.call(this,a)};Tk(mp,uf,"Group");$d(mp.prototype,Df.prototype);q=mp.prototype;q.T=function(a){mp.f.T.call(this,a)};q.remove=function(){this.ie();mp.f.remove.call(this)};q.cDa=function(){return l};q.CDa=function(){return l};q.Oh=function(a){w(a)||this.Ab("bad type");if(this.cDa(a))return 4;if(this.CDa(a))return 3;return 1};new Nj(Kj.nY,T,k,2,Kj.HK,uf,Sj,0);new Nj(Kj.NW,T,k,2,Kj.jK,uf,Sj,0);new Nj(Kj.ria,T,k,2,Kj.$W,uf,Xj,0);new Nj(Kj.LK,T,Wj,0,k,T,k,3);new Nj(Kj.TY,vf,k,0,k,T,k,3);new Nj(Kj.wja,T,k,0,k,T,k,3);new Nj(Kj.Kg,T,Vj,0,Kj.zY,T,k,1);new Nj(Kj.Mia,vf,k,0,k,uf,k,3);new Nj(Kj.$ia,vf,k,0,k,uf,k,3);new Nj(Kj.Rha,mp,Sj,0,k,go,k,3);new Nj(Kj.Qia,nl,Tj,2,Kj.DY,uf,k,0);new Nj(Kj.Pia,nl,Tj,2,Kj.vY,uf,k,0);new Nj(Kj.cY,nl,Tj,1,Kj.FW,S,k,0);new Nj(Kj.rK,dh,Uj,1,Kj.iX,S,k,0);new Nj(Kj.EC,dh,Uj,1,Kj.pY,S,k,0);
new Nj(Kj.aia,Xk,k,1,Kj.$ha,S,k,0);new Nj(Kj.zh,El,Yj,0,Kj.nja,T,k,1);new Nj(Kj.UW,jp,lp,0,Kj.qia,kp,k,1);var np=function(){el.call(this,"expertise")};D(np,el);hl(np);var op=function(){el.call(this,"originality")};D(op,el);hl(op);var pp=function(){el.call(this,"useful")};D(pp,el);hl(pp);var qp=function(){el.call(this,"complete")};D(qp,el);hl(qp);qp.prototype.mo=function(a){return J(a).Ul().length>=1E3};var rp=function(){el.call(this,"readable")};D(rp,el);hl(rp);rp.prototype.mo=function(a){return J(a).Ul().length>=1E3};var sp=function(){el.call(this,"referenced")};D(sp,el);hl(sp);sp.prototype.mo=function(){return j};
var tp=function(){el.call(this,"constrast")};D(tp,el);hl(tp);var up=function(){el.call(this,"commercial")};D(up,el);hl(up);var vp=function(){el.call(this,"collectionSubmission")};D(vp,el);hl(vp);vp.prototype.mo=function(){return l};vp.prototype.aR=l;var wp=function(){el.call(this,"feature")};D(wp,el);hl(wp);wp.prototype.mo=function(a,b){return hp.R_(b,a)};wp.prototype.aR=l;var xp=function(a){this.gg=13;return nl.call(this,a)};Tk(xp,nl,"CollectionReviewRequest");xp.prototype.type=128;xp.prototype.JB=function(){return l};xp.prototype.Hs=function(){return l};xp.prototype.EP=function(){return this.n("reviewerEmail")};N(xp,xp.prototype.EP,"reviewerEmail");xp.prototype.Zt=function(){return this.n("locale")};N(xp,xp.prototype.Zt,"locale");xp.prototype.va=function(){return this.n("knolId")};N(xp,xp.prototype.va,"knolId");
xp.prototype.Vf=function(a){this.setProperty("knolId",a)};xp.prototype.lua=function(){return this.n("collectionId")};N(xp,xp.prototype.lua,"collectionId");var yp=function(a){this.gg=16;return nl.call(this,a)};Tk(yp,nl,"InviteFriend");nl.prototype.type=64;q=yp.prototype;q.JB=function(){return l};q.Hs=function(){return l};q.kg=function(){return this.n("email")};q.zU=function(a){this.setProperty("email",a)};q.Zt=function(){return this.n("locale")};var zp=function(a){S.call(this,a)};Tk(zp,S,"KnolEvents");var Ap={Fe:"knolId",Bi:"knolMetaId",Jg:"pageviews"};zp.prototype.T=function(a){Rk(Ap,this,a);zp.f.T.call(this,a)};zp.prototype.va=function(){return this.n(Ap.Fe)};N(zp,zp.prototype.va,Ap.Fe);zp.prototype.he=function(){var a=this.p();return a.substring(0,a.length-7)};N(zp,zp.prototype.he,Ap.Bi);zp.prototype.Yn=function(){var a=this.kc(Ap.Jg);return new Rl(a)};N(zp,zp.prototype.Yn,Ap.Jg);var Bp=function(a){return nl.call(this,a)};D(Bp,nl);q=Bp.prototype;q.type=2;q.Vm=function(){var a=this.au();if(!a||!a.na())this.Ab("null operation");var b=a.Bb();yc(b,function(c){nf.test(c)||J(c)instanceof uf||this.Ab("offer expects Author types")},this)};q.forEach=function(a){var b=this.au().Bb();yc(b,function(c){yc(this.Rx().dc(),function(d){a(this,c,d)},this)},this)};q.remove=function(){Bp.f.remove.call(this)};q.IDa=function(){return!this.Q9()};q.Q9=function(){return this.kb("isRequest",l)};
N(Bp,Bp.prototype.Q9,"isRequest");Bp.prototype.au=function(){return this.kc("map",function(){return new Cg},j)};N(Bp,Bp.prototype.au,"map");Bp.prototype.Hs=function(){if(!nl.prototype.Hs.call(this))return l;return this.IDa()?!this.bDa():j};Bp.prototype.bDa=function(){var a=this.au(),b=a.z(this.kg());if(b>=3)return j;return l};var Cp=function(a){this.gg=5;return nl.call(this,a)};Tk(Cp,Bp,"OfferOwnership");q=Cp.prototype;q.Vm=function(){Cp.f.Vm.call(this);this.forEach(function(a,b,c){var d=J(c);d instanceof T||this.Ab("cannot change ownership for non-knols.")});this.ora()&&this.Ab("cannot eliminate all owners")};q.ora=function(){for(var a=this.Rx().dc(),b=0;b<a.length;b++)if(!this.tGa(a[b]))return j;return l};
q.tGa=function(a){for(var b=this.au(),c=J({nodeId:a,type:T}),d=c.Nh().dc(),f=d.length,g=0,h=b.Bb(),i=0;i<h.length;i++){var m=h[i],n=b.z(m);if(n==4){g++;this.Qr(3)}else if(sb(d,m)>=0){f--;this.Qr(3)}}return f+g};q.JB=function(){};q.send=function(a,b,c){Bp.prototype.send.call(this,a,b,c)};q.kg=function(){return this.n("email")};N(Cp,Cp.prototype.kg,"email");Cp.prototype.zU=function(a){this.setProperty("email",a)};Cp.prototype.Uwa=function(){return this.n("offerLevel")};N(Cp,Cp.prototype.Uwa,"offerLevel");
Cp.prototype.Zt=function(){return this.n("locale")};N(Cp,Cp.prototype.Zt,"locale");var Dp=function(a){this.gg=13;return nl.call(this,a)};Tk(Dp,nl,"ReviewRequest");Dp.prototype.type=4;Dp.prototype.JB=function(){};Dp.prototype.Hs=function(){return l};Dp.prototype.EP=function(){return this.n("reviewerEmail")};N(Dp,Dp.prototype.EP,"reviewerEmail");Dp.prototype.Zt=function(){return this.n("locale")};N(Dp,Dp.prototype.Zt,"locale");var Ep=function(a){this.Qr(0);this.UXa={};this.i_a=[];return nl.call(this,a)};Tk(Ep,nl,"TransactionMessage");var Hj=function(a){for(var b in Fp){var c=Fp[b];this[c]=a[c]}this.nl()};Tk(Hj,go,"UserStub");var Fp={SK:"stubType",iY:"nodeId",dY:"name",Aw:"email"},Gp=function(a){var b={};b[Fp.SK]="UserStub";b[Fp.iY]=a;b[Fp.dY]="";b[Fp.Aw]=req.user?req.user.primaryEmail:"";return b};Hj.prototype.p=function(){return this[Fp.iY]};Hj.prototype.mb=function(){return this[Fp.dY]};Hj.prototype.Gy=function(){return this[Fp.Aw]};Hj.prototype.YE=function(){return j};var Hp=function(a,b){this.Ob=a;this.Af=b};D(Hp,rn);Hp.prototype.zd=function(){rn.prototype.zd.call(this)};Hp.prototype.create=function(){};var Ip=function(a){this.UA=a};D(Ip,rn);Ip.prototype.create=function(){};var Jp=function(a){if(a){C("knol.ui.AdSense");this.D=a;this.h$=a.Wt();if(r(a)&&!(a.ld()instanceof Ul))if(this.YK=this.D.En())this.gV=this.YK.Wr()&&this.Ena();if(this.gV){var b=$f(),c=!b||!b.zta();this.zqa=c&&j;this.Gja=this.YK.b6();this.Ps=!this.zqa?this.kO(this.Gja,l,this.Hja):this.NPa?I({b:"div",c:"knol-box",id:"knol-adsense-pending-ad"}).v():"";this.gV=!!this.Ps}}};D(Jp,rn);Jp.prototype.create=function(){this.L(this.Qg())};
Jp.prototype.Vb=function(){var a=this.Qg().v(),b=Y("knol-adsense");if(a&&b)b.innerHTML=a};Jp.prototype.zd=function(){rn.prototype.zd.call(this)};Jp.prototype.Qg=function(){if(!this.D)return k;C("knol.ui.AdSense");if(this.gV&&this.Ps){var a=I({b:"div",id:this.VSa,c:"knol-box knol-sidebar-box"}),b=I({b:"div",id:this.Fa});b.addElement(this.Ps);a.addElement(b);return a}else return k};var Kp=["wikipedia.org"];q=Jp.prototype;
q.Ena=function(){var a=$f();if(a&&a.Bta())return j;var b;if(this.h$)b=this.h$.OF();var c={};if(b)c=Dd(b);for(var d=c.site||[],f=0;f<d.length;f++){var g=d[f].siteName;if(g&&sb(Kp,g)!=-1){var h=d[f].sharingFraction||0;if(h>=0.5)return l}}return j};
q.kO=function(a,b,c){var d=b||$e("adSenseSandbox")=="true";if(!a)return k;var f=a.substring(3),g=this.coa;g=g.replace("~1",f);var h="pub-1358271515413561";g=g.replace("~2",h);var i=d?'google_adtest="on";\n':"";g=g.replace("~3",i);var m=c||"text_image";return g=g.replace(/~6/g,m)};q.NPa=j;q.Fa="knol-adsense-code";q.VSa="knol-adsense";q.Hja="text_image";q.coa='<script type="text/javascript">\ngoogle_ad_client = "~1";\ngoogle_ad_host = "~2";\ngoogle_ad_width = 250;\ngoogle_ad_height = 250;\ngoogle_ad_format="250x250_as";\ngoogle_ad_type="~6";\ngoogle_color_border = "FFFFFF";\ngoogle_color_bg = "FFFFFF";\ngoogle_color_link = "3366CC";\ngoogle_color_url = "3366CC";\ngoogle_color_text = "54494C";\n~3<\/script>\n<script type="text/javascript"\n  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">\n<\/script>\n';var Mp=function(a){var b=P(),c=b&&b.Cb();if(a=="author"){if(c||bg()==eg())Lp("unpub",a);c&&Lp("admin",a)}if(a=="knol"){b=P();var d=O();if(b&&d&&(b.Cb()||d.fc(b.p())))Lp("unpub",a)}};t("knol.ui.FeedLinks.addPrivateFeedLinks",Mp,void 0);
var Lp=function(a,b){var c;c=b=="author"?Ej(eg(),"getUnpublishedFeedUrl",[Zf(),a=="admin"]):Ej(ag(),"getUnpublishedFeedUrl",[]);c.k(function(d){if(d){var f,g=d,h=a,i=b,m;if(h=="public")m="Feed de atividades p\u00fablicas";else if(h=="unpub")m="Feed de atividade privada";else if(h=="admin")m="Feed de atividades de administra\u00e7\u00e3o";var n=I(),o=I({b:"a",id:"knol-feedlinks-rss-icon-"+h,c:"knol-feedlinks-icon-"+i,href:g}),p=Zj("icons/feed-"+h+".gif");o.addElement({b:"img",src:p,sprite:"indexed",
alt:m});n.addElement(o);var s=i=="knol"?" knol-custom-bg-link":"",u=I({b:"a",id:"knol-feedinks-rss-"+h,c:"knol-feedlinks-link"+s,href:g});u.addElement({b:"span",d:m});n.addElement(u);f=n;var v=Y("knol-feedlinks-"+b);if(v&&f){var x=rm("div");x.innerHTML=f.v();v.appendChild(x)}}})};var Np=Ye["credit-card"],Op=Ye.ssn,Pp=Ye["korean-rrn"],Qp=function(a){return a.replace("knol-settings-page-","")};var Rp=function(a,b,c,d){this.Ar=c;this.Dk=a.p();qo.call(this,a,b,d)};D(Rp,qo);var Sp=0;q=Rp.prototype;q.tka=l;q.Mka=l;q.sw=function(){this.write("<div>");this.L(I({b:"h3",d:this.Ar}));this.write('<ul id="'+this.Mb()+'">')};q.ep=function(){this.write("</ul>");this.write("</div>")};q.Mb=function(){return k};q.Iy=function(){return k};q.z$=function(){return k};
q.ms=function(a){var b=this.Iy(a.nodeId),c=this.z$();this.write("<li"+(b?' id="'+b+'"':"")+(c?' class="'+c+'"':"")+">");var d="knol-author-index-"+Sp++;this.write('<div class="knol-author '+d+'">');this.$Sa(a);this.write('<div class="knol-author-desc">');this.YSa(a);this.Dha(a);this.tka&&this.gTa(a.nodeId);this.Mka&&this.wTa(a.nodeId,"knol.ui.client.AuthorListHelper.setupRemoveLinks");this.write("</div>");this.L(fn());this.write("</div>");this.write("</li>")};q.Dha=function(){};
q.$Sa=function(a){var b=a.fj();b||(b=Zj("authors/thumbnail-default-48.png"));var c=a.Yx(),d=a.mb(),f=I({b:"img",src:b,c:"knol-author-image",alt:d,id:"knol-author-image-"+a.nodeId});this.aK(c,f.v(),this.uL);if(!nf.test(a.nodeId)){var g=V("knol.ui.AuthorList.getThumbnailItemFromId",[a.nodeId]);g.k(z(function(h){var i=Y("knol-author-image-"+a.nodeId);if(i&&h)i.src=h},this))}};q.uL="";
q.YSa=function(a){var b=a.Yx();this.write('<div class="knol-author-name">');var c=mf(a.mb(),100);this.aK(b,c,this.uL);this.write("</div>");var d=a.Jn();if(d){d=wb(d,function(h){return!!h});var f=d.join(", ");f=mf(f,250);this.L(I({b:"div",c:"knol-author-disambiguation",d:f}))}var g=a.b4();g&&this.L(I({b:"div",style:"display: none",c:"knol-author-profile-wrapper",children:[{b:"div",c:"knol-author-profile-badge-border-top"},{b:"a",c:"knol-author-profile-link",href:Bn("3vd571esbn0f5/1",pg()),title:"O nome deste autor foi verificado. Clique no emblema para saber mais",
d:"Verificado"},{b:"div",c:"knol-author-profile-badge-border-bottom"}]}))};q.gTa=function(a){var b=J(this.Dk),c=b&&b instanceof T&&b.ya(),d=I({b:"div",c:"knol-author-list-invite",style:"display: none"});d.addElement({b:"a",c:"knol-less-important-small-link",href:"#manage-authors-"+jot.lib.knol.encodeInvitation(a,this.Dk),d:c?"Convidar como moderador":"Convidar como autor"});this.L(d);if(!this.pPa){this.pPa=j;this.Xj(k,k,"knol.ui.client.AuthorListHelper.setupInviteLinks",[this.Mb()])}};
q.lJ=function(a,b){return a.FE()-b.FE()};var Tp=function(){this.hA="Nenhum item nesta lista."};D(Tp,rn);q=Tp.prototype;q.create=function(){var a=I({b:"div",c:"knol-author-list-wrapper"}),b=mg(),c=this.yca(this.$N(b,0),1,a,10),d=0;if(c<10&&b!="en")d=this.yca(this.$N("en",0),c+1,a,10-c);c+d==0&&a.addElement(I({b:"div",c:"knol-author-list-infomessage",d:this.hA}));this.L(a)};q.$N=function(){return[]};q.r3=function(){return{name:"",bioUri:"",occupation:"",location_:"",rankDifference:"",rankDiffType:0,thumbnailUrl:""}};
q.yca=function(a,b,c,d){if(!a)return 0;for(var f=0,g=0;g<a.length;g++){if(d)if(f>=d)break;this.AKa(a[g],f+b,c)&&++f}return f};
q.AKa=function(a,b,c){var d=this.r3(a);if(!d)return l;var f=I({b:"div",c:"knol-author-list-entry"});f.addElement(I({b:"span",c:"knol-author-list-rank",d:b}));var g=I({b:"span",c:"knol-author-list-midcolumn"}),h=I({b:"div",c:"knol-author-list-name",d:d.name});if(d.bioUri){var i=I({b:"a",href:d.bioUri});i.addElement(h);g.addElement(i)}else g.addElement(h);g.addElement(I({b:"div",c:"knol-author-list-occupation",d:d.occupation}));g.addElement(I({b:"div",c:"knol-author-list-location",d:d.location_}));
f.addElement(g);var m,n=d.rankDiffType;switch(n){case -1:m="localized/kr/icons/down.gif";break;case 0:m="localized/kr/icons/not-changed.gif";break;case 1:m="localized/kr/icons/up.gif";break}var o=I({b:"span",children:[n!=2?{b:"img",c:"knol-author-list-rdimage",src:Zj(m)}:{},{b:"span",d:d.rankDifference+""}],c:n!=2?"knol-author-list-rankdifference":"knol-author-list-new"}),p=I({b:"table",c:"knol-author-list-picwrapper",children:[{b:"tr",children:[{b:"td",c:"knol-author-list-td1",children:[{b:"img",
c:"knol-author-list-thumbnail",src:d.thumbnailUrl}]},{b:"td",children:[o]}]}]});f.addElement(p);f.la();c.addElement(f);return j};var Up=function(a){this.Ie=a};D(Up,rn);var Vp=[{id:"knol-author-page-knols",C:"Knols",qc:8,fn:undefined,nw:l},{id:"knol-author-page-collections",C:"Cole\u00e7\u00f5es",qc:6,fn:undefined,nw:l},{id:"knol-author-page-reviews",C:"Resenhas",qc:1,fn:undefined,nw:l},{id:"knol-author-page-comments",C:"Coment\u00e1rios",qc:2,fn:undefined,nw:l},{id:"knol-author-page-collaborators",C:"Colaboradores",qc:3,fn:0,nw:j},{id:"knol-author-page-translations",C:"Tradu\u00e7\u00f5es",qc:0,fn:undefined,nw:l,A2:j,q_a:j}];
Up.prototype.create=function(){this.Jqa();this.L(I({b:"div",id:"knol-author-page-tabs"}));this.tKa();for(var a=0;a<Vp.length;a++)this.TKa(Vp[a]);this.L(I({b:"div",id:"knol-author-page-favorites"}))};Up.prototype.Jqa=function(){this.Ie&&this.Ie.Ux()&&Wp(l)};Up.prototype.tKa=function(){};
Up.prototype.TKa=function(a){if(!a.A2){this.write('<div id="'+a.id+'" style="display: none">');var b=P(),c=l,d=this.Ie?this.Ie.p():"";a.qc==2&&b&&b.p()==d;if(a.qc!=3)if(a.qc==0||a.qc==8||a.qc==6||a.qc==1)if(b){(c=a.qc==1)?b.Jta():b.Ita();c?b.Lta():b.Kta()}b&&b.p()==d;var f;this.Ie.p();this.Ie.ik();f="";this.write(f);this.zn(k,k,"knol.ui.client.ZipitDisplay.initContainer",[a.id,"div","#fff"]);this.write("</div>")}};var Xp=function(a){this.Ie=a};D(Xp,rn);q=Xp.prototype;q.create=function(){var a=this.Ie?this.Ie.Ft():k;if(a&&!a.f5()&&!a.g5()){this.BKa();this.yKa();this.FPa()&&this.zKa()}};q.FPa=function(){var a=this.Ie.S3();return a!=0||l};q.zKa=function(){var a=I({b:"div",id:"knol-author-stats-section",c:"knol-box knol-sidebar-box"});a.addElement({b:"h3",d:"Estat\u00edsticas do autor"});a.addElement("Autor desde: ");a.Q();var b=this.Ie.S3();if(b){a.addElement("\u00daltimo login: ");a.Q()}this.L(a)};
q.yKa=function(){var a=this.Ie.oza()||[],b=this.Ie.cwa();if(!Db(a,b)){var c=this.Ie.yva();if(c){var d=c.Ia();if(d.HL()){var f=dk("system/app/images/favicon.png",j),g={url:b,title:"Minha biografia",favicon:f};Pb(a,0,0,g)}}}this.write('<div id="knol-author-page-favorites-short" class="knol-author-page-links" style="display: none;"> </div>');this.L(fn());if(a.length>0){this.write('<div id="knol-pivot-sections" class="knol-author-page-links">');this.write('<div class="knol-sidebar">');this.write("<h3>"+
this.Ie.ej()+" "+Xe("na web")+"</h3>");vb(a,function(h){this.Zb(h)},this);this.write("</div>");this.write("</div>")}};q.Zb=function(a){var b=I({b:"div"}),c=(new Md(a.url)).toString(),d=mf(a.title||a.url,250),f=a.favicon||"http://www.google.com/s2/favicons?domain_url="+escape(c);b.addElement({b:"img",c:"knol-author-page-links-favicon",src:f,alt:""});b.addElement({b:"a",c:"knol-author-page-links-link",href:c,d:d});this.L(b)};
q.BKa=function(){var a=I({b:"div",id:"knol-author-award-section",c:"knol-sidebar knol-author-page-links"});a.addElement({b:"h3",d:"Pr\u00eamios do autor"});var b=this.Ie.Ft(),c=ao(b,l,this.Ie);if(c){a.addElement(c);this.L(a)}};var Yp=function(a){if(!a.Ig)return l;var b=a.tk();if(b.eh()&&b.Qu(b.Qe()))return j;return l},Zp=function(a){if(!a.Ig)return l;var b=a.tk();if(b.eh()&&!b.Qu(b.Qe()))return j;return l},$p=function(a){if(!a.Ig)return l;var b=a.tk();if(b.eh()||b.Br==-1)return l;return j},aq=function(a){if(!a.Ig||a.gh)return l;var b=a.tk();if(b.eh()||b.Br==-2)return l;return j};var Ro=function(a){if(!a)e(new Error("License type is not specified."));this.br=a};D(Ro,rn);Ro.prototype.create=function(){var a=I({b:"div"});a.addElement(this.Qg());this.L(a)};Ro.prototype.zd=function(){rn.prototype.zd.call(this)};Ro.prototype.Vb=function(){Y("knol-license").parentNode.innerHTML=this.Qg().v()};
Ro.prototype.Qg=function(){var a=this.br.toString(),b=Zj("license/"+a+".png"),c=this.br.D5(),d=this.br.E5(),f;return f=d?I({b:"div",id:"knol-license",children:[{b:"img",id:"knol-license-icon",alt:"",src:b,sprite:"main"},{b:"a",href:d,d:c}]}):I({b:"div",id:"knol-license",children:[{b:"img",id:"knol-license-icon",alt:"",src:b,sprite:"main"},{b:"span",d:c}]})};var bq=function(a,b){this.ec(a,b)};D(bq,rn);q=bq.prototype;q.ec=function(a,b){var c=a?a:bg();if(b){var d=parseInt(b,10);if(la(d)&&d>0){var f=J(c).Ia(),g=parseInt(f.K0(d),10);if(la(g)&&g>0)this.Ra=J({nodeId:c,version:g})}}else this.Ra=J(c);if(this.Ra){this.D=this.Ra.Ia();this.XK=this.SD=this.Ra.jk();this.YG=this.D.Tl();this.Br=this.D.ng()}};q.Fja=function(a){var b=this.XK;this.XK=a;return a-b};q.create=function(){this.L(this.createElement())};
q.Vb=function(){Y("knol-last-edit-version-info").innerHTML=this.createElement().v()};
q.createElement=function(){var a=this.Ra,b=this.Qe(),c=I({b:"div",id:"knol-last-edit-version-info"}),d=I({b:"div",c:"knol-last-edit-version-info-cls"});d.addElement("Vers\u00e3o:");d.addElement(b+"");c.addElement(d);var f=a.Gxa(),g=I({b:"div",c:"knol-last-edit-version-info-cls"});g.addElement("\u00daltima edi\u00e7\u00e3o:");g.addElement(" "+f);g.addElement(".");var h=I({b:"a",href:"#revisions",id:"knol-menu-item-revisions",c:"knol-author-toolbox-change",d:"Vers\u00f5es"});c.addElement(h);c.addElement(g);
return c};q.Az=function(){return this.D.ng()==-2};q.eh=function(){return this.Qe()<this.YG};q.Qu=function(a){return a?this.nEa(a):this.Br!=-1&&this.Qe()>this.dva()};q.nEa=function(a){var b=this.D.m6();return!b.z(a)};q.dva=function(){var a=this.YG,b=this.Br;if(b==-1)b=a;return b};q.Qe=function(){return this.SD};q.UN=function(){return this.XK};q.z9=function(){return this.D.ya()};var cq=function(a,b,c,d,f){this.mc=a;this.Fi=b;this.Ka=c;this.Af=d;this.yi=f;this.Ra=J(this.mc);this.D=this.Ra.Ia();this.Wa=this.D.ya();this.Ob=this.D.p();this.K=J(this.Ka);var g=this.D.nf();this.BDa=this.K&&this.K.Cb();this.ABa=this.K&&(this.K.ig()||this.D.$h(this.Ka));this.a8=this.K&&(this.K.ig()||this.D.fc(this.Ka));this.qBa=this.D.ck(this.K,10)==4;this.D9=g=="moderated"||g=="managed";this.yna=this.ABa||this.a8||this.D9||this.Af;this.jDa=(this.oe=this.Ra instanceof Ul)&&!!this.D.cy();this.XZa=
this.wYa=0;this.tma=[];this.nBa=this.K&&(this.BDa||this.D.fc(this.Ka))};D(cq,rn);q=cq.prototype;q.create=function(){if(!this.jDa){var a=I({b:"div",id:"knol-author-toolbox-container"});a.addElement(this.Qg(j));this.L(a)}};q.Vb=function(a,b){var c=Y("knol-author-toolbox-container");if(c&&(a||this.yna)){var d=V("knol.ui.AuthorToolbox.refreshElement",[this.mc,this.Fi,this.Ka,this.Af,this.yi]);d.k(function(f){var g=f[0],h=f[1];c.innerHTML=g;b&&b.call(k,h)},this)}};
q.LCa=function(){this.S={};this.S.knol=this.Ra;this.S.user=J(this.Ka);this.S.Te=this.D;this.S.r8=this.S.Te.VO();this.S.ef=this.S.Te.$h(this.Ka);this.S.Ig=this.S.Te.fc(this.Ka);this.S.tk=dq;if(this.S.user&&this.S.user.ig()){this.S.ef=j;this.S.Ig=j}if(!bg()){Mf.knolId=this.mc;var a=this.D.p();Mf.knolMetaId=a;Mf.authorId=this.Fi}};
q.Qg=function(a){var b=dq(),c=a||!this.a8,d=a||!this.qBa,f=I({b:"div",c:"knol-box knol-author-toolbox-box "+(c?"knol-author-toolbox-public":"knol-author-toolbox-private")});f.addElement(this.mTa(c));f.addElement(this.xTa(a));c||f.addElement(this.tTa());b.eh()||this.Zka(f,a);f.addElement(this.dTa(d));f.addElement(this.uTa(d));f.addElement(this.cTa(d));f.la();f.addElement(this.jTa(d));f.la();f.addElement(this.aTa(d));f.la();var g=this.bTa(a||!this.nBa);if(g){f.addElement(g);f.la()}f.addElement(this.EW(c));
f.la();return f};q.mTa=function(a){if(!a&&!this.oe){var b=dq();if(b.Qe()==1&&!b.eh()){var c=I({b:"div",c:"knol-toolbox-message"});c.addElement({b:"div",c:"knol-toolbox-message-title",d:this.Wa?"Bem-vindo \u00e0 sua nova cole\u00e7\u00e3o":"Bem-vindo ao seu novo knol"});return c}}return""};q.xTa=function(a){var b="";if(this.Af)if(req.user){if(!a){b=I({b:"div",c:"knol-author-toolbox-container",id:"knol-author-toolbox-response"});var c=k;c&&b.addElement(c)}}else rf(this.Ra.fa(undefined,req.args));return b};
q.Zka=function(a,b){b||this.D9&&this.$ka(a)};q.$ka=function(a){var b=this.D.zya(this.Ka),c=this.D.wya(this.Ka);if(b||!c.Ga()){var d=I({b:"div",c:"knol-author-toolbox-container"});d.addElement({b:"span",c:"knol-author-toolbox-item",d:"Sua vers\u00e3o est\u00e1 pendente"});d.addElement({b:"a",c:"knol-author-toolbox-change",href:"#edit",d:"Editar"});a.addElement(d);a.la();a.addElement(this.Pua())}};
var dq=function(){return E(eq)},fq=function(a,b){var c=dq(),d,f;if(c.eh())if(c.Qu(b)){d="Esta vers\u00e3o antiga n\u00e3o foi publicada.";f=Zj("icons/not_published.png")}else{d="Esta vers\u00e3o antiga foi publicada.";f=Zj("icons/published.png")}else if(c.Qu()){d=c.z9()?"Esta cole\u00e7\u00e3o n\u00e3o est\u00e1 publicada.":"Este knol n\u00e3o est\u00e1 publicado.";f=Zj("icons/not_published.png")}else{d=c.z9()?"Esta cole\u00e7\u00e3o est\u00e1 publicada.":"Este knol est\u00e1 publicado.";f=Zj("icons/published.png")}var g=
[I({b:"img",src:f,sprite:"main",c:"knol-author-toolbox-icon"})],h=[I({b:"span",id:"knol-author-toolbox-publish-sub",c:"knol-author-toolbox-view",d:d})];g.push(I({b:"div",children:h}));return g};q=cq.prototype;
q.dTa=function(a){if(this.D.ya()){var b="",c="";switch(this.D.gd()){case 2:b="Cole\u00e7\u00e3o controlada pelo autor";c="icons/author-centric-collection.png";break;case 3:b="Cole\u00e7\u00e3o de autoria compartilhada";c="icons/shared-authorship-collection.png";break;case 4:b="Cole\u00e7\u00e3o controlada pelo moderador";c="icons/moderator-centric-collection.png";break;default:b="";break}if(b){var d=I({b:"div",c:"knol-author-toolbox-container3"}),f=I({b:"img",sprite:"main",c:"knol-toolbox-settings-icon",
src:Zj(c),alt:""});d.addElement(f);var g=I({b:"a",c:"knol-toolbox-settings-desc",d:b,href:An("si57lahl1w25/259")});d.addElement(g);a||d.la();return d}}return I()};
q.uTa=function(a){var b=dq(),c=[],d,f;if(a)return I();c=fq(this.mc,this.yi);if(b.eh()){Yp(this.S);var g=Zp(this.S),h=I({b:"a",href:Wm,d:g?"Cancelar a publica\u00e7\u00e3o desta vers\u00e3o":"Publicar essa vers\u00e3o",id:g?"knol-author-toolbox-unpublish-old":"knol-author-toolbox-publish-old"});f=[I({b:"tr"}),I({b:"tr"})];f[1].addElement({b:"td",valign:"center"});f[1].addElement({b:"td",valign:"center",children:[h]})}else{var i=$p(this.S),m=aq(this.S);if(i){var n=I({b:"span",c:"knol-author-toolbox-change-btn",
children:[{b:"input",name:"publish",type:"button",value:"Publicar",id:"knol-author-toolbox-publish-button"}]});c.push(n)}else if(m){h=I({b:"a",href:Wm,c:"knol-author-toolbox-change",d:this.iO(),id:"knol-author-toolbox-un-publish-change"});c.push(h)}f=[I({b:"tr"})]}for(var o=0;o<c.length;o++)f[0].addElement({b:"td",valign:"center",children:[c[o]]});d=c.length?I({b:"table",width:"100%",cellpadding:0,children:f}):I();var p=I({b:"div",children:[d],id:"knol-author-toolbox-publish"});p.la();return p};
q.aTa=function(a){if(a)return I();var b=I({b:"div",c:"knol-author-toolbox-container"}),c=I({b:"img",c:"knol-toolbox-settings-icon",src:Zj("icons/settings.gif"),sprite:"indexed",alt:""});b.addElement(c);var d=I({b:"span",c:"knol-toolbox-settings-desc",d:this.Wa?"Voc\u00ea tem permiss\u00e3o para gerenciar esta cole\u00e7\u00e3o":"Voc\u00ea tem permiss\u00e3o para gerenciar este knol"});b.addElement(d);var f=I({b:"a",href:"#manage",c:"knol-author-toolbox-change",d:"Configura\u00e7\u00f5es",id:"knol-menu-item-manage"});
b.addElement(f);return b};q.cTa=function(a){var b=(new Cn(this.D.nf())).Qg(),c=I({b:"div",c:"knol-author-toolbox-container"});c.addElement(b);if(!a&&!this.oe){var d=this.S.Ig&&!!this.S.user&&!!this.S.knol&&!(this.S.knol instanceof Ul),f=I({b:"a",href:Wm,c:"knol-author-toolbox-change",d:this.iO(),disabled:!d,id:"knol-author-toolbox-collaboration-change"});c.addElement(f)}return c};
q.jTa=function(a){var b=(new Ro(this.Ra.Wn())).Qg(),c=I({b:"div",c:"knol-author-toolbox-container"});c.addElement(b);if(!a){var d=this.S.ef&&!!this.S.user&&!!this.S.knol,f=I({b:"a",href:Wm,c:"knol-author-toolbox-change",d:this.iO(),disabled:!d,id:"knol-author-toolbox-license-change"});c.addElement(f)}return c};
q.bTa=function(a){if(!this.D||this.D.V3())return k;var b=I({b:"div",c:"knol-author-toolbox-container"}),c=this.D;if(c){var d=c.GE();if(d)for(var f=d.c4(),g=0;g<f.length;g++){var h=f[g];this.tma.push(h);var i=$n(h,j,a);i&&b.addElement(i)}var m=c.Wt();if(m)(i=ao(m,j,$f()))&&b.addElement(i)}return b.children.length?b:k};q.EW=function(){var a=dq().createElement(),b=I({b:"div",c:"knol-author-toolbox-container2"});b.addElement(a);return b};
q.tTa=function(){return I({b:"div",id:"knol-publish-toolbox-c",style:"display: none"})};q.iO=function(){return"Alterar"};q.Pua=function(){return I({b:"div",c:"knol-author-toolbox-delimiter"})};var gq=function(){var a=bg();this.T8="knol-inline-announce-"+a;this.pz="knol-inline-announce-message-"+a;this.U8="knol-inline-announce-version-"+a};D(gq,rn);var hq=function(){return C("knol.ui.BannerAnnouncement")};q=gq.prototype;q.create=function(){var a=this.Roa();this.eTa(a)};q.eTa=function(a){if(a.ke()||1)this.L(a)};
q.Roa=function(a){var b;hq();if(Y(this.pz))b=Y(this.pz).innerHTML;var c=I({b:"div",id:this.T8,c:"knol-inline-announce"});if(b||a){var d=I({b:"span",id:this.pz,c:"knol-inline-announce-message"});c.addElement(d);this.Kla(c,b)}var f=$e("buildMessage");if(f&&b){var g="Vers\u00e3o: "+f;c.addElement({b:"div",id:this.U8,c:"knol-inline-announce-version"});this.EW(c,g)}return c};
q.Kla=function(a,b){if(b)if(!a||!a.children.length)hq().U("no "+this.pz+" to append the announcement");else if(a.children[0].text)a.children[0].text+=b;else a.children[0].text=b};q.EW=function(a,b){if(b)if(!a||a.children.length<2)hq().U("no "+this.U8+" to write the version");else a.children[1].text=b};q.bj=function(){return rn.prototype.bj.call(this)};var iq=function(){};D(iq,rn);iq.prototype.create=function(){var a=I({b:"div",id:"knol-chatlog",style:"display: none"});this.L(a);this.Xj(k,k,"knol.ui.client.ChatLog.init",k)};var jq=function(){};D(jq,rn);jq.prototype.N$=function(){return k};var kq=k,lq=function(){kq={};kq.yes="Sim";kq.no="N\u00e3o";kq.neutral="Neutra";kq[""]="Nenhuma opini\u00e3o"};kq||lq();var mq=kq[""];if(!mq){var nq=C("knol.ReviewTexts");nq.za('Missing text for ""')};var oq=function(){};D(oq,rn);oq.prototype.create=function(){var a=I({b:"div",id:"knol-collection-submission-reviews",style:"display: none"});this.L(a);this.Xj(k,k,"knol.ui.client.CollectionSubmissionReviews.init",k)};var pq=65,qq=67,rq=86,sq=88,tq=90,uq=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return l;switch(a.keyCode){case 18:case 16:case 17:case 19:case 20:case 27:case 33:case 34:case 36:case 35:case 37:case 39:case 38:case 40:case 45:case 144:case 93:case 44:return l;default:return j}},wq=function(a,b,c,d,f){if(!F&&!(we&&Ne("525")))return j;if(Be&&f)return vq(a);if(f&&!d)return l;if(F&&!c&&(b==17||b==18))return l;if(F&&d&&b==a)return l;switch(a){case 13:return j;case 27:return!we}return vq(a)},
vq=function(a){if(a>=48&&a<=57)return j;if(a>=96&&a<=106)return j;if(a>=pq&&a<=tq)return j;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 j;default:return l}};var xq,yq=function(a,b){if(H||xq){a.setAttribute("role",b);a.zZa=b}},zq=function(a,b,c){if(H||xq)a.setAttribute("aria-"+b,c)};var Aq=function(a){this.V=a};A(Aq,mi);var Bq=new ri(0,100);q=Aq.prototype;q.g=function(a,b,c,d,f){if(ja(b))for(var g=0;g<b.length;g++)this.g(a,b[g],c,d,f);else{var h=U(a,b,c||this,d||l,f||this.V||this);this.AJa(h)}return this};q.AJa=function(a){if(this.xb)this.xb[a]=j;else if(this.nj){this.xb=Bq.Mf();this.xb[this.nj]=j;this.nj=k;this.xb[a]=j}else this.nj=a};
q.Hb=function(a,b,c,d,f){if(this.nj||this.xb)if(ja(b))for(var g=0;g<b.length;g++)this.Hb(a,b[g],c,d,f);else{var h;a:{var i=c||this,m=f||this.V||this,n=!!(d||l),o=Ni(a,b,n);if(o)for(var p=0;p<o.length;p++)if(o[p].Uu==i&&o[p].ax==n&&o[p].Jq==m){h=o[p];break a}h=k}if(h){var s=h.ia;Oi(s);if(this.xb)jc(this.xb,s);else if(this.nj==s)this.nj=k}}return this};q.fb=function(){if(this.xb){for(var a in this.xb){Oi(a);delete this.xb[a]}Bq.Ye(this.xb);this.xb=k}else this.nj&&Oi(this.nj)};
q.o=function(){Aq.f.o.call(this);this.fb()};q.handleEvent=function(){e(Error("EventHandler.handleEvent not implemented"))};var Dq=function(a,b,c){w(b)?Cq(a,c,b):ac(b,ta(Cq,a))},Cq=function(a,b,c){a.style[Eq(c)]=b},Fq=function(a,b){return a.style[Eq(b)]},Gq=function(a,b){var c=bm(a);if(c.defaultView&&c.defaultView.getComputedStyle){var d=c.defaultView.getComputedStyle(a,"");if(d)return d[b]}return k},Hq=function(a,b){return a.currentStyle?a.currentStyle[b]:k},Lq=function(a,b){return Gq(a,b)||Hq(a,b)||a.style[b]},Mq=function(a){return Lq(a,"position")},Nq=function(a,b,c){var d,f,g=H&&(Be||Fe)&&Ne("1.9");if(b instanceof
yh){d=b.x;f=b.y}else{d=b;f=c}a.style.left=typeof d=="number"?(g?Math.round(d):d)+"px":d;a.style.top=typeof f=="number"?(g?Math.round(f):f)+"px":f},Oq=function(a){var b;b=a?a.nodeType==9?a:bm(a):document;if(F&&!cm(b).AG())return b.body;return b.documentElement},Pq=function(a){var b=a.getBoundingClientRect();if(F){var c=a.ownerDocument;b.left-=c.documentElement.clientLeft+c.body.clientLeft;b.top-=c.documentElement.clientTop+c.body.clientTop}return b},Qq=function(a){if(F)return a.offsetParent;for(var b=
bm(a),c=Lq(a,"position"),d=c=="fixed"||c=="absolute",f=a.parentNode;f&&f!=b;f=f.parentNode){c=Lq(f,"position");d=d&&c=="static"&&f!=b.documentElement&&f!=b.body;if(!d&&(f.scrollWidth>f.clientWidth||f.scrollHeight>f.clientHeight||c=="fixed"||c=="absolute"))return f}return k},Tq=function(a){for(var b=new Ah(0,Infinity,Infinity,0),c=cm(a),d=c.J().body,f=c.O4(),g,h=a;h=Qq(h);)if((!F||h.clientWidth!=0)&&(!we||h.clientHeight!=0||h!=d)&&(h.scrollWidth!=h.clientWidth||h.scrollHeight!=h.clientHeight)&&Lq(h,
"overflow")!="visible"){var i=Rq(h),m;var n=h;if(H&&!Ne("1.9")){var o=parseFloat(Gq(n,"borderLeftWidth"));if(Sq(n)){var p=n.offsetWidth-n.clientWidth-o-parseFloat(Gq(n,"borderRightWidth"));o+=p}m=new yh(o,parseFloat(Gq(n,"borderTopWidth")))}else m=new yh(n.clientLeft,n.clientTop);i.x+=m.x;i.y+=m.y;b.top=Math.max(b.top,i.y);b.right=Math.min(b.right,i.x+h.clientWidth);b.bottom=Math.min(b.bottom,i.y+h.clientHeight);b.left=Math.max(b.left,i.x);g=g||h!=f}var s=f.scrollLeft,u=f.scrollTop;if(we){b.left+=
s;b.top+=u}else{b.left=Math.max(b.left,s);b.top=Math.max(b.top,u)}if(!g||we){b.right+=s;b.bottom+=u}var v=c.lza();b.right=Math.min(b.right,s+v.width);b.bottom=Math.min(b.bottom,u+v.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:k},Rq=function(a){var b,c=bm(a),d=Lq(a,"position"),f=H&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),g=new yh(0,0),h=Oq(c);if(a==h)return g;if(a.getBoundingClientRect){b=Pq(a);var i=cm(c).Kn();
g.x=b.left+i.x;g.y=b.top+i.y}else if(c.getBoxObjectFor&&!f){b=c.getBoxObjectFor(a);var m=c.getBoxObjectFor(h);g.x=b.screenX-m.screenX;g.y=b.screenY-m.screenY}else{var n=a;do{g.x+=n.offsetLeft;g.y+=n.offsetTop;if(n!=a){g.x+=n.clientLeft||0;g.y+=n.clientTop||0}if(we&&Mq(n)=="fixed"){g.x+=c.body.scrollLeft;g.y+=c.body.scrollTop;break}n=n.offsetParent}while(n&&n!=a);if(ve||we&&d=="absolute")g.y-=c.body.offsetTop;for(n=a;(n=Qq(n))&&n!=c.body&&n!=h;){g.x-=n.scrollLeft;if(!ve||n.tagName!="TR")g.y-=n.scrollTop}}return g},
Vq=function(a,b){var c=Uq(a),d=Uq(b);return new yh(c.x-d.x,c.y-d.y)},Uq=function(a){var b=new yh;if(a.nodeType==1)if(a.getBoundingClientRect){var c=Pq(a);b.x=c.left;b.y=c.top}else{var d=cm(a).Kn(),f=Rq(a);b.x=f.x-d.x;b.y=f.y-d.y}else{b.x=a.clientX;b.y=a.clientY}return b},Wq=function(a,b,c){var d=Rq(a);if(b instanceof yh){c=b.y;b=b.x}var f=b-d.x,g=c-d.y;Nq(a,a.offsetLeft+f,a.offsetTop+g)},Xq=function(a,b,c){var d;if(b instanceof Dh){d=b.height;b=b.width}else{if(c==undefined)e(Error("missing height argument"));
d=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof d=="number"?Math.round(d)+"px":d},Yq=function(a){var b=ve&&!Ne("10");if(Lq(a,"display")!="none")return b?new Dh(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new Dh(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,f=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";var h,i;if(b){h=a.offsetWidth||a.clientWidth;i=a.offsetHeight||a.clientHeight}else{h=a.offsetWidth;
i=a.offsetHeight}c.display=d;c.position=g;c.visibility=f;return new Dh(h,i)},Zq=function(a){var b=Rq(a),c=Yq(a);return new Fh(b.x,b.y,c.width,c.height)},$q={},Eq=function(a){return $q[a]||($q[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))},ar=function(a,b){var c=a.style;if("opacity"in c)c.opacity=b;else if("MozOpacity"in c)c.MozOpacity=b;else if("filter"in c)c.filter=b===""?"":"alpha(opacity="+b*100+")"},$=function(a,b){a.style.display=b?"":"none"},cr=function(a,b){var c=
cm(b),d=k;if(F){d=c.J().createStyleSheet();br(d,a)}else{var f=c.RE("head")[0];if(!f){var g=c.RE("body")[0];f=c.h("head");g.parentNode.insertBefore(f,g)}d=c.h("style");br(d,a);c.appendChild(f,d)}return d},br=function(a,b){if(F)a.cssText=b;else{var c=we?"innerText":"innerHTML";a[c]=b}},Sq=function(a){return"rtl"==Lq(a,"direction")},dr=H?"MozUserSelect":we?"WebkitUserSelect":k,er=function(a){if(dr)return a.style[dr].toLowerCase()=="none";else if(F||ve)return a.getAttribute("unselectable")=="on";return l},
fr=function(a,b,c){var d=!c?a.getElementsByTagName("*"):k;if(dr){var f=b?"none":"";a.style[dr]=f;if(d)for(var g=0,h;h=d[g];g++)h.style[dr]=f}else if(F||ve){f=b?"on":"";a.setAttribute("unselectable",f);if(d)for(g=0;h=d[g];g++)h.setAttribute("unselectable",f)}},jr=function(a){var b=bm(a),c=F&&a.currentStyle;if(c&&cm(b).AG()&&c.width!="auto"&&c.height!="auto"&&!c.$Xa){var d=gr(a,c.width,"width","pixelWidth"),f=gr(a,c.height,"height","pixelHeight");return new Dh(d,f)}else{var g=new Dh(a.offsetWidth,a.offsetHeight),
h=hr(a,"padding"),i=ir(a);return new Dh(g.width-i.left-h.left-h.right-i.right,g.height-i.top-h.top-h.bottom-i.bottom)}},gr=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var f=a.style[c],g=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;var h=a.style[d];a.style[c]=f;a.runtimeStyle[c]=g;return h}},kr=function(a,b){return gr(a,Hq(a,b),"left","pixelLeft")},hr=function(a,b){if(F){var c=kr(a,b+"Left"),d=kr(a,b+"Right"),f=kr(a,b+"Top"),g=kr(a,b+"Bottom");return new Ah(f,
d,g,c)}else{c=Gq(a,b+"Left");d=Gq(a,b+"Right");f=Gq(a,b+"Top");g=Gq(a,b+"Bottom");return new Ah(parseFloat(f),parseFloat(d),parseFloat(g),parseFloat(c))}},lr={thin:2,medium:4,thick:6},mr=function(a,b){if(Hq(a,b+"Style")=="none")return 0;var c=Hq(a,b+"Width");if(c in lr)return lr[c];return gr(a,c,"left","pixelLeft")},ir=function(a){if(F){var b=mr(a,"borderLeft"),c=mr(a,"borderRight"),d=mr(a,"borderTop"),f=mr(a,"borderBottom");return new Ah(d,c,f,b)}else{b=Gq(a,"borderLeftWidth");c=Gq(a,"borderRightWidth");
d=Gq(a,"borderTopWidth");f=Gq(a,"borderBottomWidth");return new Ah(parseFloat(d),parseFloat(c),parseFloat(f),parseFloat(b))}},nr=function(a){var b=bm(a),c="";if(b.createTextRange){var d=b.body.createTextRange();d.moveToElementText(a);c=d.queryCommandValue("FontName")}if(!c){c=Lq(a,"fontFamily");if(ve&&De)c=c.replace(/ \[[^\]]*\]/,"")}var f=c.split(",");if(f.length>1)c=f[0];return Xa(c,"\"'")},or=/[^\d]+$/,pr={cm:1,"in":1,mm:1,pc:1,pt:1},qr={em:1,ex:1},rr=function(a){var b=Lq(a,"fontSize"),c,d=b.match(or);
c=d&&d[0]||k;if(b&&"px"==c)return parseInt(b,10);if(F)if(c in pr)return gr(a,b,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==1&&c in qr){var f=a.parentNode,g=Lq(f,"fontSize");return gr(f,b==g?"1em":b,"left","pixelLeft")}var h=pm("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(h);b=h.offsetHeight;Z(h);return b},sr=function(a){return a.style[F?"styleFloat":"cssFloat"]||""};var tr=function(){};fa(tr);tr.prototype.gA=0;tr.prototype.Lwa=function(){return":"+(this.gA++).toString(36)};tr.cb();var vr=function(a){this.O=a||cm();this.QA=ur};A(vr,Yi);vr.prototype.cCa=tr.cb();var ur=k,wr=function(a,b){switch(a){case 1:return b?"disable":"enable";case 2:return b?"highlight":"unhighlight";case 4:return b?"activate":"deactivate";case 8:return b?"select":"unselect";case 16:return b?"check":"uncheck";case 32:return b?"focus":"blur";case 64:return b?"open":"close";default:}e(Error("Invalid component state"))};q=vr.prototype;q.Fa=k;q.O=k;q.rg=l;q.B=k;q.QA=k;q.ES=k;q.eb=k;q.cd=k;q.Ii=k;q.zha=l;
q.p=function(){return this.Fa||(this.Fa=this.cCa.Lwa())};q.oi=function(a){if(this.eb&&this.eb.Ii){jc(this.eb.Ii,this.Fa);lc(this.eb.Ii,a,this)}this.Fa=a};q.e=function(){return this.B};q.Ud=function(a){this.B=a};q.Ha=function(){return this.nu||(this.nu=new Aq(this))};q.fB=function(a){if(this==a)e(Error("Unable to set parent component"));if(a&&this.eb&&this.Fa&&this.eb.Hn(this.Fa)&&this.eb!=a)e(Error("Unable to set parent component"));this.eb=a;vr.f.RI.call(this,a)};q.db=function(){return this.eb};
q.RI=function(a){if(this.eb&&this.eb!=a)e(Error("Method not supported"));vr.f.RI.call(this,a)};q.M=function(){return this.O};q.Nb=function(){return this.rg};q.h=function(){this.B=this.O.createElement("div")};q.Z=function(a){this.iI(a)};q.iI=function(a,b){if(this.rg)e(Error("Component already rendered"));this.B||this.h();a?a.insertBefore(this.B,b||k):this.O.J().body.appendChild(this.B);if(!this.eb||this.eb.Nb())this.Da()};
q.Sa=function(a){if(this.rg)e(Error("Component already rendered"));else if(a&&this.ue(a)){this.zha=j;if(!this.O||this.O.J()!=bm(a))this.O=cm(a);this.Pc(a);this.Da()}else e(Error("Invalid element to decorate"))};q.ue=function(){return j};q.Pc=function(a){this.B=a};q.Da=function(){this.rg=j;this.Ae(function(a){!a.Nb()&&a.e()&&a.Da()})};q.Ic=function(){this.Ae(function(a){a.Nb()&&a.Ic()});this.nu&&this.nu.fb();this.rg=l};
q.o=function(){vr.f.o.call(this);this.rg&&this.Ic();if(this.nu){this.nu.l();delete this.nu}this.Ae(function(a){a.l()});!this.zha&&this.B&&Z(this.B);this.eb=this.ES=this.B=this.Ii=this.cd=k};q.bu=function(){return this.ES};q.$Na=function(a){this.ES=a};q.Wb=function(a,b){this.op(a,this.Zg(),b)};
q.op=function(a,b,c){if(a.rg&&(c||!this.rg))e(Error("Component already rendered"));if(b<0||b>this.Zg())e(Error("Child component index out of bounds"));if(!this.Ii||!this.cd){this.Ii={};this.cd=[]}if(a.db()==this){var d=a.p();this.Ii[d]=a;Hb(this.cd,a)}else lc(this.Ii,a.p(),a);a.fB(this);Pb(this.cd,b,0,a);if(a.rg&&this.rg&&a.db()==this){var f=this.Ea();f.insertBefore(a.e(),f.childNodes[b+1]||k)}else if(c){this.B||this.h();var g=this.Od(b+1);a.iI(this.Ea(),g?g.B:k)}else this.rg&&!a.rg&&a.B&&a.Da()};
q.Ea=function(){return this.B};q.Td=function(){if(this.QA==k)this.QA=Sq(this.rg?this.B:this.O.J().body);return this.QA};q.Lo=function(a){if(this.rg)e(Error("Component already rendered"));this.QA=a};q.ke=function(){return!!this.cd&&this.cd.length!=0};q.Zg=function(){return this.cd?this.cd.length:0};q.Hn=function(a){return this.Ii&&a?mc(this.Ii,a)||k:k};q.Od=function(a){return this.cd?this.cd[a]||k:k};q.Ae=function(a,b){this.cd&&vb(this.cd,a,b)};q.Eu=function(a){return this.cd&&a?sb(this.cd,a):-1};
q.removeChild=function(a,b){if(a){var c=w(a)?a:a.p();a=this.Hn(c);if(c&&a){jc(this.Ii,c);Hb(this.cd,a);if(b){a.Ic();a.B&&Z(a.B)}a.fB(k)}}if(!a)e(Error("Child is not in parent component"));return a};q.JA=function(a,b){return this.removeChild(this.Od(a),b)};q.removeChildren=function(a){for(;this.ke();)this.JA(0,a)};var xr=function(){},yr;fa(xr);var zr=function(a,b){var c=new a;c.X=function(){return b};return c};q=xr.prototype;q.Kh=function(){};q.h=function(a){return a.M().h("div",this.jg(a).join(" "),a.getContent())};q.Ea=function(a){return a};q.kE=function(a,b,c){var d=a.e?a.e():a;if(d)if(F&&!Ne("7")){var f=this.YN(W.z(d),b);f.push(b);var g=c?W.add:W.remove;ta(g,d).apply(k,f)}else W.sc(d,b,c)};q.V2=function(a,b,c){this.kE(a,b,c)};q.ue=function(){return j};
q.Sa=function(a,b){b.id&&a.oi(b.id);var c=this.Ea(b);c&&c.firstChild?a.Dv(c.firstChild.nextSibling?Lb(c.childNodes):c.firstChild):a.Dv(k);var d=0,f=this.X(),g=this.Aq(),h=l,i=l,m=l,n=W.z(b);vb(n,function(s){if(!h&&s==f){h=j;if(g==f)i=j}else if(!i&&s==g)i=j;else d|=this.MP(s)},this);a.Oea(d);if(!h){n.push(f);if(g==f)i=j}i||n.push(g);var o=a.Y4();o&&n.push.apply(n,o);if(F&&!Ne("7")){var p=this.YN(n);if(p.length>0){n.push.apply(n,p);m=j}}if(!h||!i||o||m)W.G(b,n.join(" "));return b};
q.sg=function(a){a.Td()&&this.Lo(a.e(),j);a.da()&&this.Dg(a,a.ga())};q.Lda=function(a){if(H){var b=this.Kh();b&&yq(a,b)}};q.$A=function(a,b){fr(a,!b,!F&&!ve)};q.Lo=function(a,b){this.kE(a,this.Aq()+"-rtl",b)};q.xk=function(a){var b;if(a.vg(32)&&(b=a.ge()))return Pm(b);return l};q.Dg=function(a,b){var c;if(a.vg(32)&&(c=a.ge())){if(!b&&a.u9()){try{c.blur()}catch(d){}a.u9()&&a.Vh(k)}Pm(c)!=b&&Qm(c,b)}};q.H=function(a,b){$(a,b)};
q.Gb=function(a,b,c){var d=a.e();if(d){var f=this.ay(b);f&&this.kE(a,f,c);this.hw(d,b,c)}};q.hw=function(a,b,c){if(H){yr||(yr=rc(1,"disabled",4,"pressed",8,"selected",16,"checked",64,"expanded"));var d=yr[b];d&&zq(a,d,c)}};q.xd=function(a,b){var c=this.Ea(a);if(c){vm(c);if(b)if(w(b))Im(c,b);else{var d=function(f){if(f){var g=bm(c);c.appendChild(w(f)?g.createTextNode(f):f)}};if(ja(b))vb(b,d);else ka(b)&&!("nodeType"in b)?vb(Lb(b),d):d(b)}}};q.ge=function(a){return a.e()};q.X=function(){return"goog-control"};
q.Gva=function(){return[]};q.Aq=function(){return this.X()};q.jg=function(a){var b=this.X(),c=[b],d=this.Aq();d!=b&&c.push(d);var f=this.n4(a.wb());c.push.apply(c,f);var g=a.Y4();g&&c.push.apply(c,g);F&&!Ne("7")&&c.push.apply(c,this.YN(c));return c};q.YN=function(a,b){var c=[];if(b)a=a.concat([b]);vb(this.Gva(),function(d){if(Ab(d,ta(Db,a))&&(!b||Db(d,b)))c.push(d.join("_"))});return c};q.n4=function(a){for(var b=[];a;){var c=a&-a;b.push(this.ay(c));a&=~c}return b};
q.ay=function(a){this.vD||this.W0();return this.vD[a]};q.MP=function(a){this.$fa||this.Cpa();var b=parseInt(this.$fa[a],10);return isNaN(b)?0:b};q.W0=function(){var a=this.Aq();this.vD=rc(1,a+"-disabled",2,a+"-hover",4,a+"-active",8,a+"-selected",16,a+"-checked",32,a+"-focused",64,a+"-open")};q.Cpa=function(){this.vD||this.W0();this.$fa=oc(this.vD)};var Ar=function(){};A(Ar,xr);fa(Ar);q=Ar.prototype;q.Kh=function(){return"button"};q.hw=function(a,b,c){if(H)b==16?zq(a,"pressed",c):Ar.f.hw.call(this,a,b,c)};q.h=function(a){var b=Ar.f.h.call(this,a),c=a.og();c&&this.vh(b,c);var d=a.ca();d&&this.Qa(b,d);a.vg(16)&&this.hw(b,16,l);return b};q.Sa=function(a,b){b=Ar.f.Sa.call(this,a,b);a.aPa(this.ca(b));a.bJ(this.og(b));a.vg(16)&&this.hw(b,16,l);return b};q.ca=da;q.Qa=da;q.og=function(a){return a.title};q.vh=function(a,b){if(a)a.title=b||""};q.X=function(){return"goog-button"};var Br=function(a){a&&this.attach(a)};A(Br,Yi);q=Br.prototype;q.B=k;q.PG=k;q.RR=k;q.QG=k;q.Nz=-1;q.Ru=-1;
var Cr={"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},Dr={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},Er={61:187,
59:186},Fr=F||we&&Ne("525");q=Br.prototype;q.Wh=function(a){if(Fr&&!wq(a.keyCode,this.Nz,a.shiftKey,a.ctrlKey,a.altKey))this.handleEvent(a);else this.Ru=H&&a.keyCode in Er?Er[a.keyCode]:a.keyCode};q.zAa=function(){this.Ru=this.Nz=-1};
q.handleEvent=function(a){var b=a.Xg(),c,d;if(F&&a.type=="keypress"){c=this.Ru;d=c!=13&&c!=27?b.keyCode:0}else if(we&&a.type=="keypress"){c=this.Ru;d=b.charCode>=0&&b.charCode<63232&&vq(c)?b.charCode:0}else if(ve){c=this.Ru;d=vq(c)?b.keyCode:0}else{c=b.keyCode||this.Ru;d=b.charCode||0;if(Be&&d==63&&!c)c=191}var f=c,g=b.keyIdentifier;if(c)if(c>=63232&&c in Cr)f=Cr[c];else{if(c==25&&a.shiftKey)f=9}else if(g&&g in Dr)f=Dr[g];var h=f==this.Nz;this.Nz=f;var i=new Gr(f,d,h,b);try{this.dispatchEvent(i)}finally{i.l()}};
q.e=function(){return this.B};q.attach=function(a){this.QG&&this.detach();this.B=a;this.PG=U(this.B,"keypress",this);this.RR=U(this.B,"keydown",this.Wh,l,this);this.QG=U(this.B,"keyup",this.zAa,l,this)};q.detach=function(){if(this.PG){Oi(this.PG);Oi(this.RR);Oi(this.QG);this.QG=this.RR=this.PG=k}this.B=k;this.Nz=-1};q.o=function(){Br.f.o.call(this);this.detach()};var Gr=function(a,b,c,d){d&&this.ec(d,void 0);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c};A(Gr,oi);var Ir=function(a){for(var b,c;a;){b=qa(a);if(c=Hr[b])break;a=a.f?a.f.constructor:k}if(c)return ma(c.cb)?c.cb():new c;return k},Kr=function(a,b){if(!a)e(Error("Invalid class name "+a));if(!ma(b))e(Error("Invalid decorator function "+b));Jr[a]=b},Hr={},Jr={};var Lr=function(a,b,c){vr.call(this,c);this.Ja=b||Ir(this.constructor);this.Dv(a)};A(Lr,vr);q=Lr.prototype;q.Gc=k;q.Za=0;q.GB=39;q.gD=255;q.tJ=0;q.yd=j;q.$j=k;q.wQ=j;q.SZ=l;q.yDa=function(){return this.wQ};q.EU=function(a){this.Nb()&&a!=this.wQ&&this.X2(a);this.wQ=a};q.ge=function(){return this.Ja.ge(this)};q.iF=function(){return this.lc||(this.lc=new Br)};q.Pd=function(){return this.Ja};q.MU=function(a){if(this.Nb())e(Error("Component already rendered"));this.e()&&this.Ud(k);this.Ja=a};q.Y4=function(){return this.$j};
q.Ij=function(a){if(a){if(this.$j)Db(this.$j,a)||this.$j.push(a);else this.$j=[a];this.Ja.V2(this,a,j)}};q.eKa=function(a){if(a&&this.$j){Hb(this.$j,a);if(this.$j.length==0)this.$j=k;this.Ja.V2(this,a,l)}};q.kE=function(a,b){b?this.Ij(a):this.eKa(a)};q.h=function(){var a=this.Ja.h(this);this.Ud(a);this.Ja.Lda(a);this.lR()||this.Ja.$A(a,l);this.ga()||this.Ja.H(a,l)};q.Ea=function(){return this.Ja.Ea(this.e())};q.ue=function(a){return this.Ja.ue(a)};
q.Pc=function(a){a=this.Ja.Sa(this,a);this.Ud(a);this.Ja.Lda(a);this.lR()||this.Ja.$A(a,l);this.yd=a.style.display!="none"};q.Da=function(){Lr.f.Da.call(this);this.Ja.sg(this);if(this.GB&-2){this.yDa()&&this.X2(j);if(this.vg(32)){var a=this.ge();if(a){var b=this.iF();b.attach(a);this.Ha().g(b,"key",this.Qd).g(a,"focus",this.eo).g(a,"blur",this.Vh)}}}};
q.X2=function(a){var b=this.Ha(),c=this.e();if(a){b.g(c,"mouseover",this.pg).g(c,"mousedown",this.dm).g(c,"mouseup",this.Iq).g(c,"mouseout",this.Hq);F&&b.g(c,"dblclick",this.q7)}else{b.Hb(c,"mouseover",this.pg).Hb(c,"mousedown",this.dm).Hb(c,"mouseup",this.Iq).Hb(c,"mouseout",this.Hq);F&&b.Hb(c,"dblclick",this.q7)}};q.Ic=function(){Lr.f.Ic.call(this);this.lc&&this.lc.detach();this.ga()&&this.da()&&this.Ja.Dg(this,l)};
q.o=function(){Lr.f.o.call(this);if(this.lc){this.lc.l();delete this.lc}delete this.Ja;this.$j=this.Gc=k};q.getContent=function(){return this.Gc};q.xd=function(a){this.Ja.xd(this.e(),a);this.Dv(a)};q.Dv=function(a){this.Gc=a};q.fq=function(){var a=this.getContent();if(!a||w(a))return a;var b=ja(a)?xb(a,Sm).join(""):Sm(a);return b&&Ha(b)};q.Im=function(a){this.xd(a)};q.Lo=function(a){Lr.f.Lo.call(this,a);var b=this.e();b&&this.Ja.Lo(b,a)};q.lR=function(){return this.SZ};
q.$A=function(a){this.SZ=a;var b=this.e();b&&this.Ja.$A(b,a)};q.ga=function(){return this.yd};q.H=function(a,b){if(b||this.yd!=a&&this.dispatchEvent(a?"show":"hide")){var c=this.e();c&&this.Ja.H(c,a);this.da()&&this.Ja.Dg(this,a);this.yd=a;return j}return l};q.da=function(){return!this.jj(1)};q.KDa=function(){var a=this.db();return!!a&&typeof a.da=="function"&&!a.da()};q.ba=function(a){if(!this.KDa()&&this.Uq(1,!a)){if(!a){this.setActive(l);this.Eg(l)}this.ga()&&this.Ja.Dg(this,a);this.Gb(1,!a)}};
q.Eg=function(a){this.Uq(2,a)&&this.Gb(2,a)};q.me=function(){return this.jj(4)};q.setActive=function(a){this.Uq(4,a)&&this.Gb(4,a)};q.Ez=function(){return this.jj(8)};q.bf=function(a){this.Uq(8,a)&&this.Gb(8,a)};q.uz=function(){return this.jj(16)};q.Cg=function(a){this.Uq(16,a)&&this.Gb(16,a)};q.u9=function(){return this.jj(32)};q.fea=function(a){this.Uq(32,a)&&this.Gb(32,a)};q.isOpen=function(){return this.jj(64)};q.Xc=function(a){this.Uq(64,a)&&this.Gb(64,a)};q.wb=function(){return this.Za};
q.jj=function(a){return!!(this.Za&a)};q.Gb=function(a,b){if(this.vg(a)&&b!=this.jj(a)){this.Ja.Gb(this,a,b);this.Za=b?this.Za|a:this.Za&~a}};q.Oea=function(a){this.Za=a};q.vg=function(a){return!!(this.GB&a)};q.yf=function(a,b){if(this.Nb()&&this.jj(a)&&!b)e(Error("Component already rendered"));!b&&this.jj(a)&&this.Gb(a,l);this.GB=b?this.GB|a:this.GB&~a};q.dh=function(a){return!!(this.gD&a)&&this.vg(a)};q.MMa=function(a,b){this.gD=b?this.gD|a:this.gD&~a};
q.xU=function(a,b){this.tJ=b?this.tJ|a:this.tJ&~a};q.Uq=function(a,b){return this.vg(a)&&this.jj(a)!=b&&(!(this.tJ&a)||this.dispatchEvent(wr(a,b)))&&!this.BG()};q.pg=function(a){a.relatedTarget&&!Cm(this.e(),a.relatedTarget)&&this.dispatchEvent("enter")&&this.da()&&this.dh(2)&&this.Eg(j)};q.Hq=function(a){if(a.relatedTarget&&!Cm(this.e(),a.relatedTarget)&&this.dispatchEvent("leave")){this.dh(4)&&this.setActive(l);this.dh(2)&&this.Eg(l)}};
q.dm=function(a){if(this.da()){this.dh(2)&&this.Eg(j);if(a.sz(0)){this.dh(4)&&this.setActive(j);this.Ja.xk(this)&&this.ge().focus()}}!this.lR()&&a.sz(0)&&a.preventDefault()};q.Iq=function(a){if(this.da()){this.dh(2)&&this.Eg(j);this.me()&&this.ki(a)&&this.dh(4)&&this.setActive(l)}};q.q7=function(a){this.da()&&this.ki(a)};
q.ki=function(a){this.dh(16)&&this.Cg(!this.uz());this.dh(8)&&this.bf(j);this.dh(64)&&this.Xc(!this.isOpen());var b=new ni("action",this);if(a)for(var c=["altKey","ctrlKey","metaKey","shiftKey"],d,f=0;d=c[f];f++)b[d]=a[d];return this.dispatchEvent(b)};q.eo=function(){this.dh(32)&&this.fea(j)};q.Vh=function(){this.dh(4)&&this.setActive(l);this.dh(32)&&this.fea(l)};q.Qd=function(a){if(this.ga()&&this.da()&&this.bm(a)){a.preventDefault();a.stopPropagation();return j}return l};
q.bm=function(a){return a.keyCode==13&&this.ki(a)};var Mr=Lr,Nr=xr;if(!ma(Mr))e(Error("Invalid component class "+Mr));if(!ma(Nr))e(Error("Invalid renderer class "+Nr));var Or=qa(Mr);Hr[Or]=Nr;Kr("goog-control",function(){return new Lr(k)});var Pr=function(){};A(Pr,Ar);fa(Pr);q=Pr.prototype;q.Kh=function(){};q.h=function(a){this.Tea(a);return a.M().h("button",{"class":this.jg(a).join(" "),disabled:!a.da(),title:a.og()||"",value:a.ca()||""},a.fq()||"")};q.ue=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.type=="button"||a.type=="submit"||a.type=="reset")};q.Sa=function(a,b){this.Tea(a);b.disabled&&W.add(b,this.ay(1));return Pr.f.Sa.call(this,a,b)};q.sg=function(a){a.Ha().g(a.e(),"click",a.ki)};q.$A=da;q.Lo=da;q.xk=function(a){return a.da()};
q.Dg=da;q.Gb=function(a,b,c){Pr.f.Gb.call(this,a,b,c);var d=a.e();if(d&&b==1)d.disabled=c};q.ca=function(a){return a.value};q.Qa=function(a,b){if(a)a.value=b};q.hw=da;q.Tea=function(a){a.EU(l);a.MMa(255,l);a.yf(32,l)};var Qr=function(a,b,c){Lr.call(this,a,b||Pr.cb(),c)};A(Qr,Lr);q=Qr.prototype;q.ca=function(){return this.Dc};q.Qa=function(a){this.Dc=a;this.Pd().Qa(this.e(),a)};q.aPa=function(a){this.Dc=a};q.og=function(){return this.es};q.vh=function(a){this.es=a;this.Pd().vh(this.e(),a)};q.bJ=function(a){this.es=a};q.o=function(){Qr.f.o.call(this);delete this.Dc;delete this.es};q.Da=function(){Qr.f.Da.call(this);if(this.vg(32)){var a=this.ge();a&&this.Ha().g(a,"keyup",this.bm)}};
q.bm=function(a){if(a.keyCode==13&&a.type=="key"||a.keyCode==32&&a.type=="keyup")return this.ki(a);return a.keyCode==32};Kr("goog-button",function(){return new Qr(k)});var Rr=function(){};A(Rr,Ar);fa(Rr);q=Rr.prototype;q.h=function(a){var b=this.jg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.og()||""};return a.M().h("div",c,this.Ts(a.getContent(),a.M()))};q.Ea=function(a){return a&&a.firstChild.firstChild};q.Ts=function(a,b){return b.h("div","goog-inline-block "+(this.X()+"-outer-box"),b.h("div","goog-inline-block "+(this.X()+"-inner-box"),a))};q.ue=function(a){return a.tagName=="DIV"};
q.oBa=function(a,b){var c=a.M().d5(b);if(c&&c.className.indexOf(this.X()+"-outer-box")!=-1){var d=a.M().d5(c);if(d&&d.className.indexOf(this.X()+"-inner-box")!=-1)return j}return l};q.Sa=function(a,b){Sr(b,j);Sr(b,l);this.oBa(a,b)||b.appendChild(this.Ts(b.childNodes,a.M()));W.add(b,"goog-inline-block",this.X());return Rr.f.Sa.call(this,a,b)};q.X=function(){return"goog-custom-button"};
var Sr=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==3){var f=c.nodeValue;if(Ha(f)=="")a.removeChild(c);else{c.nodeValue=b?Ia(f):f.replace(/[\s\xa0]+$/,"");break}}else break;c=d}};var Tr=function(a,b,c){Qr.call(this,a,b||Rr.cb(),c)};A(Tr,Qr);Kr("goog-custom-button",function(){return new Tr(k)});var Mo=function(){};D(Mo,rn);Mo.prototype.zd=function(){rn.prototype.zd.call(this)};Mo.prototype.create=function(){this.L(this.ov())};Mo.prototype.ov=function(){var a=I({b:"div",id:"knol-create-invite",c:"knol-invite-box goog-inline-block"}),b=I({b:"div",c:"knol-invite-box-middle goog-inline-block"});b.addElement({b:"a",id:"knol-create-knol",href:dk("system/services/createKnol"),rel:"nofollow",d:"Escreva um knol"});a.addElement(b);return a};
var Ur=function(a){var b="knol-create-knol",c=Y(b);if(c){var d=c.firstChild&&c.firstChild.nodeName=="DIV";if(!a&&!d){var f=c.innerHTML;c.innerHTML="";c.style.textDecoration="none";var g=new Tr(f);g.Z(c)}return c}else return k};var Vr=function(){};D(Vr,Mo);
Vr.prototype.ov=function(){var a=I({b:"a",id:"knol-invite-kr",href:dk("system/services/createKnol"),rel:"nofollow",c:"knol-invite-box-kr"}),b=Zj("icons/write-a-knol.gif"),c=I({b:"img",src:b,sprite:"indexed",id:"knol-write-a-knol-kr-img"});a.addElement(c);var d=Zj("localized/kr/icons/write-a-knol-text.gif"),f=I({b:"img",src:d,sprite:"indexed",id:"knol-write-a-knol-text-kr-img"});a.addElement(f);a.addElement({b:"div",id:"knol-write-a-knol-desc-kr",d:"Compartilhe seus conhecimentos no Knol"});return a};var Wr=function(a){var b=dg();if(b&&b instanceof Ul)return"";var c=b.Ia();if(c.ya())return"";if(!c.VE()){var d=I({b:"div",id:"knol-unsol-review-disabled",d:"Resenhas n\u00e3o solicitadas est\u00e3o desativadas."});return d}var f;f=a?"Seja o primeiro a escrever uma resenha sobre este knol":"Escrever resenha sobre este Knol";var g=I({b:"div",id:"knol-review-invite"}),h=pf("/k/knol/system/services/createReview?knolId="+bg());g.addElement({b:"a",id:"knol-create-review",target:"_blank",rel:"nofollow",
href:h,d:f});return g};var Xr=function(){};D(Xr,rn);var Yr="knol-diff-";q=Xr.prototype;q.N$=function(a,b,c){var d=I();if(b.length>0){var f=I({b:"div",c:"knol-content",id:"references",children:[I({b:"h3",d:"Refer\u00eancias"}),I({b:"ol",id:"knol-references",children:c?this.L$(b,c):this.iS(b)})]});d.addElement(f);d.la()}return d};q.iS=function(a){var b=[];if(a.length>0)for(var c=0;c<a.length;c++)b.push(this.K$(a[c]));return b};
q.L$=function(a,b){if(!b||b.Ga())return this.iS(a);var c=[],d=[];yc(b,function(m){if(m.ka()==0)d[m.yO()]=m.jq()},this);if(a.length>0)for(var f=0;f<a.length;f++){var g=a[f],h=b.z(g.p()),i=f+1;if(h&&h.ka()==2)c.push(this.rFa(g,i));else h&&h.ka()==1?c.push(this.sFa(h.Fn(),h.jq(),i)):c.push(this.K$(g,i));d[f]&&c.push(this.uFa(d[f],i))}return c};q.K$=function(a,b){var c=Zr(a),d=I({b:"li",d:c}),f=$r(a);if(f){c.length>0&&d.Q();d.addElement(f)}r(b)&&d.$d(kn("value",b.toString()));return d};
q.sFa=function(a,b,c){var d,f=[],g=Zr(b),h=Zr(a);if(g!=h){(g=g?I({b:"del",c:Yr+c,d:g}):k)&&f.push(g);(h=h?I({b:"ins",c:Yr+c,d:h}):k)&&f.push(h);d=I({b:"li",children:f})}else d=h?I({b:"li",d:h}):I({b:"li"});if(b.fa()!=a.fa()||b.dk()!=a.dk()){var i=$r(b,0,c),m=$r(a,2,c);if(i||m){if(f.length!=1)d.addElement({b:"br"});else if(h)d.addElement(as());else g&&d.addElement(I({b:"br",c:"knol-hidden-del-format"}));i&&d.addElement(i);m&&d.addElement(m)}}else{f.length>0&&d.addElement({b:"br"});d.addElement($r(a))}d.$d(kn("value",
c.toString()));return d};q.rFa=function(a,b){return this.M$(a,2,b)};q.uFa=function(a,b){return this.M$(a,0,b)};q.M$=function(a,b,c){var d=Zr(a),f=b==2?"ins":"del",g=I({b:"li",c:Yr+c+" knol-hidden-"+f+"-format",children:[{b:f,c:Yr+c,d:d}]}),h=$r(a,b,c);if(h){d.length>0&&g.addElement(as());g.addElement(h)}g.$d(kn("value",c.toString()));return g};
var Zr=function(a){var b=a.Kf();return mf(b,2E3)},$r=function(a,b,c){if(a.fa()){var d=new Md(a.fa()),f=d.toString();if(d.gz()&&d.Yl()!="http"&&d.Yl()!="https")f="";var g=a.dk();g=mf(g,2E3);if(f&&g)if(r(b)){var h=b==2?"ins":"del";return I({c:Yr+c+" knol-"+h+"-format",b:"a",href:f,children:[{b:h,c:Yr+c,d:g}]})}else return I({b:"a",href:f,d:g})}else return k},as=function(){return I({b:"br",c:"knol-hidden-ins-format"})};var bs=function(){};D(bs,rn);bs.prototype.n9=function(){return j};bs.prototype.create=function(){};bs.prototype.P9=function(){return j};var cs=function(){};D(cs,rn);q=cs.prototype;q.zd=function(){rn.prototype.zd.call(this)};q.create=function(){this.L(this.ov())};q.ov=function(){var a=I({b:"div",id:"knol-edit-invite",c:"knol-invite-box goog-inline-block"}),b=I({b:"div",style:"display: none",id:"knol-edit-invite-middle",c:"knol-invite-box-middle goog-inline-block"});if(bg()){var c=O(),d=c&&c.ya();b.addElement({b:"a",id:"knol-edit-knol",href:"#edit",d:d?"Editar esta cole\u00e7\u00e3o":"Edite este knol"})}a.addElement(b);return a};
q.$U=function(a){var b=Y("knol-edit-invite-middle");if(b)b.style.display=a?"":"none"};q.Apa=function(){this.$U(j);var a="knol-edit-knol",b=Y(a);if(b){var c=b.firstChild&&b.firstChild.nodeName=="DIV";if(!c){var d=b.innerHTML;b.innerHTML="";b.style.textDecoration="none";var f=new Tr(d);f.Z(b)}return b}else return k};var ds=function(){};D(ds,rn);ds.prototype.create=function(){this.write(I({b:"div",id:"knol-history"}).v())};var es=function(){};D(es,rn);es.prototype.create=function(){this.L(this.Z())};es.prototype.Z=function(){var a=I({b:"div",id:"knol-display-languages",style:"display: none"});this.zn(k,k,"knol.ui.client.LanguageOptions",[]);return a};var fs=function(a){this.Ka=a||""};D(fs,rn);q=fs.prototype;q.create=function(){C("knol.ui.MyKnolsList");if(this.Ka){var a=J(this.Ka);if(a){this.PKa(a);var b=I({b:"div",id:"knol-my-knols-knol-list"});b.addElement(I({b:"div",id:"knol-my-knols-heading",d:Xe("Meus Knols")}));this.PT(a,b);var c=Xe("Ver mais dos meus knols")+" &#xBB;",d=dk("Search"),f=I({b:"div",id:"knol-my-knols-see-more",children:[{b:"a",d:c,href:d}]});b.addElement(f);this.L(b)}else this.L(I({b:"div",id:"knol-my-knols-no-user-space",d:Xe("O espa\u00e7o do seu knol ainda n\u00e3o foi criado. Escreva um knol para criar um.")}))}};
q.PKa=function(a){var b=a.ej(),c=a.ik(),d=a.pq(),f=I({b:"div",id:"knol-my-knols-profile"});f.addElement({b:"img",id:"knol-my-knols-profile-photo",src:d});var g=I({b:"div",id:"knol-my-knols-profile-desc"});g.addElement({b:"a",id:"knol-my-knols-profile-name",href:c,d:b});for(var h=a.Jn(),i=0;i<h.length;i++){var m=h[i];if(m){m=mf(m,250);g.addElement({b:"div",c:"knol-my-knols-profile-disambiguation",d:m})}}g.addElement(I({b:"div",id:"knol-author-profile-button"}));f.addElement(g);f.la();this.L(f)};
q.PT=function(a,b){for(var c=a.Ywa().hv().dc(),d=c.length,f=0,g=0;f<d&&g<5;){var h=this.e1(c[f]);if(h){b.addElement(h);g++}f++}if(g<5){c=a.Mta().hv().dc();d=c.length;var i=5-g;for(g=f=0;f<d&&g<i;){if(h=this.e1(c[f])){b.addElement(h);g++}f++}}};
q.e1=function(a){C("knol.ui.MyKnolsList");var b=J(a);if(!b)return k;var c=b.ld(),d=c.Rh(),f=c.fa(),g=c.p(),h=c.gy(),i=c.ok(),m=b.zO(),n=m?m.na():0,o=I({b:"div",c:"knol-my-knols-knol"}),p={b:"div",c:"knol-my-knols-title-wrapper",children:[{b:"a",href:f,d:d,id:"knol-my-knols-title-"+g,c:"knol-my-knols-title"}]};o.addElement({b:"div",children:[k,p,{b:"div",c:"knol-clearer-div"}]});var s=I({b:"div",c:"knol-my-knols-bubble-content"});s.addElement({b:"span",c:"knol-my-knols-date",d:String(h)});s.addElement({b:"img",
c:"knol-my-knols-comments-icon",sprite:"indexed",src:Zj("localized/kr/icons/comments.gif")});var u=n+" coment\u00e1rio(s)";s.addElement({b:"span",c:"knol-my-knols-num-comments",d:u});s.la();if(i){i=mf(i,125);s.addElement({b:"div",c:"knol-my-knols-knol-snippet",d:i})}o.addElement(this.Koa(s,g));return o};
q.Koa=function(a,b){var c=I({b:"div",id:"knol-my-knols-bubble-"+b,c:"knol-my-knols-bubble"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line1"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line2"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement(a);c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line3"});c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line2"});
c.addElement({b:"div",c:"knol-my-knols-bubble-hor-line1"});for(var d=9;d>=0;d--)c.addElement({b:"div",style:"width: "+d+"px; position: relative; left: 20px; top: -1px; height: 1px; background-color: #fff; overflow: hidden; border-left: 1px solid #b7cfe2; border-right: 1px solid #b7cfe2;"});c.addElement({b:"div",style:"width: 1px; position: relative; left: 20px; top: -1px; overflow: hidden; height: 1px; background-color: #b7cfe2;"});return c};q.bj=function(){return""};var gs=function(){Tp.call(this);this.hA="No momento, n\u00e3o h\u00e1 autores populares."};D(gs,Tp);var hs=function(){return C("knol.ui.PopularAuthorList")};
gs.prototype.$N=function(a,b){var c=hs();b=(b||"0")+"";for(var d=3-b.length,f=0;f<d;++f)b="0"+b;var g="/authorrank_"+a+"_"+b+"_OFFLINE",h;var i=g,m=hs(),n=jot.pages[i];if(n){var o=n.popularAuthorList;if(o)h=o;else{m.U("popularAuthorList property does not exist");h=k}}else{m.U(i+" node does not exist");h=k}if(!h)return k;var p;try{p=Dd(h)}catch(s){c.U("JSON-parsing of the property popularAuthorList failed");return k}var u=p.popularAuthorListObject;if(!u){c.U("popularAuthorListObject field does not exist");
return k}return u};
gs.prototype.r3=function(a){var b=hs(),c={},d=a.id||"",f=a.rank_difference||0;f=Number(f);var g;if(f>=1E4){g=2;f="Novo!"}else if(f==0)g=0;else if(f>0)g=1;else{g=-1;f=Math.abs(f)}c.rankDifference=f;c.rankDiffType=g;var h=J(d);if(!h){b.U("Author does not exist. node id = "+d);return k}if(h.Ux())return k;if(h.pk())return k;c.bioUri=h.ik();var i=h.fj();if(wa(i,"/c/photos/private/"))i=window.manifest.serverBase+"/static/images/NoPicture.gif";c.thumbnailUrl=i;c.name=h.ej();c.occupation=Xe(h.Twa());c.location_=
Xe(h.mF());return c};var is=function(){this.Cha="knol-list";this.hA="Nenhum item nesta lista."};D(is,rn);q=is.prototype;q.create=function(){this.L(this.QT(0))};q.QT=function(a){var b=I({b:"div",c:"knol-list-wrapper",id:this.Cha}),c=mg()||"en",d=this.JKa(this.u5(c,a),b,15);if(d==0)b.addElement(I({b:"div",c:"knol-list-infomessage",d:this.hA}));else{var f=this.Aca(a);f&&b.addElement(f)}return b};q.Aca=function(){return k};q.u5=function(){return[]};
q.s3=function(){return{thumbnailUrl:"",knolUri:"",title:"",authorName:"",editTime:"",snippet:"",numDiscussion:0,knolId:""}};q.JKa=function(a,b,c){if(!a)return 0;for(var d=0,f=0;f<a.length;f++){if(c)if(d>=c)break;this.KKa(a[f],b)&&++d}return d};
q.KKa=function(a,b){var c=this.s3(a);if(!c)return l;var d=I({b:"div",c:"knol-list-entry"});if(c.thumbnailUrl){var f=I({b:"table",c:"knol-list-thumbtable",children:[{b:"tr",children:[{b:"td",children:[{b:"a",href:c.knolUri,children:[{b:"img",c:"knol-list-thumbnail",src:c.thumbnailUrl}]}]}]}]}),g=I({b:"span",c:"knol-list-thumbframe"});g.addElement(f);d.addElement(g)}var h=I({b:"span",c:"knol-list-rcolumn"+(c.thumbnailUrl?"":"knol-list-nothumb")}),i=I({b:"div"});i.addElement(I({b:"a",href:c.knolUri,
children:[{b:"span",c:"knol-list-title",d:c.title}]}));i.addElement(I({b:"span",c:"knol-list-author-separator",d:"- "}));i.addElement(I({b:"span",c:"knol-list-author",d:c.authorName}));var m,n=c.editTime;n instanceof Date||(n=new Date(n));var o=(new Date).getTime();m=o-n.getTime()>864E5;i.addElement(I({b:"span",c:"knol-list-edittime-separator",d:" - ",style:m?"display: none":""}));m?i.addElement(I({b:"span",c:"knol-list-editdate",d:String(c.editTime),style:"display: none"})):i.addElement(I({b:"span",
c:"knol-list-reltime",d:xf(c.editTime)}));h.addElement(i);var p=I({b:"div"});p.addElement(I({b:"span",c:"knol-list-snippet",d:c.snippet}));h.addElement(p);var s=I({b:"div"});s.addElement(I({b:"img",sprite:"indexed",src:Zj("localized/kr/icons/comments.gif")}));var u=c.numDiscussion+" coment\u00e1rios";s.addElement(I({b:"span",c:"knol-list-comments",d:u}));s.addElement(k);h.addElement(s);d.addElement(h);d.addElement(I({b:"div",c:"knol-list-end"}));b.addElement(d);return j};var js=function(){is.call(this);this.Cha="knol-popular-knol-list";this.hA="No momento, n\u00e3o h\u00e1 knols populares."};D(js,is);var ks=function(){return C("knol.ui.PopularKnolList")};js.prototype.create=function(){is.prototype.create.call(this)};var ls=function(a){var b=ks(),c;hi({webspace:"knol",path:a});c=k;if(!c){b.U(a+" node does not exist");return k}var d=c.popularKnolList;if(!d){b.U("popularKnolList property does not exist");return k}return d};
js.prototype.Aca=function(a){var b,c=mg()||"en",d="/knolrank_"+c+"_OFFLINE";b=parseInt(ls(d),10);if(b<=1)return k;var f=I({b:"div",c:"knol-list-popular-pagenav-c"});a>0?f.addElement(I({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-prev",href:"javascript:void(0)",d:"Anterior"})):f.addElement(I({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-prev",d:"Anterior"}));for(var g=1;g<=b;++g)g==a+1?f.addElement(I({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-"+
g,d:g})):f.addElement(I({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-"+g,href:"javascript:void(0)",d:g}));a<b-1?f.addElement(I({b:"a",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-next",href:"javascript:void(0)",d:"Pr\u00f3ximo"})):f.addElement(I({b:"span",c:"knol-list-popular-pagenav",id:"knol-list-popular-pagenav-next",d:"Pr\u00f3ximo"}));return f};
js.prototype.u5=function(a,b){var c=ks();b=(b||"0")+"";for(var d=3-b.length,f=0;f<d;++f)b="0"+b;var g="/knolrank_"+a+"_"+b+"_OFFLINE",h=ls(g);if(!h)return k;var i;try{i=Dd(h)}catch(m){c.U("JSON-parsing of the property popularKnolList failed");return k}var n=i.popularKnolListObject;if(!n){c.U("popularKnolListObject field does not exist");return k}return n};
js.prototype.s3=function(a){var b=ks(),c={},d=a.knol_id||"";c.knolId=d;var f=a.rank_difference||0;Number(f);c.thumbnailUrl=a.thumbnail_url||"";var g=J(d);if(!g){b.U("Knol does not exist. knol id = "+d);return k}var h=g.Ia();if(!h){b.U("KnolMeta does not exist. knol id = "+d);return k}var i=J(h.kd());if(!i){b.U("Author does not exist. knol id = "+d);return k}if(!h.HL())return k;c.title=g.Rh()||"";c.editTime=g.gy()||"";var m=g.ok()||"";m=Xe(m);m=kf(m,105);c.snippet=m;var n=h.zO();c.numDiscussion=n?
n.na():0;c.knolUri=g.fa();var o=Ya(i.ej(),100),p=h.Nh(),s=h.Zx(),u=p?p.na():0,v=s?s.na():0;if(u+v>1){var x=o+", entre outros.";o=x}c.authorName=o;return c};var ms=function(){};D(ms,rn);q=ms.prototype;
q.create=function(){var a=I({b:"div",id:"knol-home-kr-welcome-outer"}),b=I({b:"div",id:"knol-home-kr-welcome-c"}),c=I({b:"div",id:"knol-home-kr-welcome"});c.addElement({b:"h1",d:"Compartilhe seus conhecimentos no Knol, um novo servi\u00e7o de compartilhamento de conhecimentos."});c.addElement({b:"span",d:"O Knol torna mais f\u00e1cil escrever, compartilhar e gerenciar knols de qualquer lugar, usando um navegador da web.<br />N\u00f3s armazenamos os knols e os tornamos pesquis\u00e1veis."});b.addElement(c);
b.addElement((new Vr).ov());b.la();a.addElement(b);this.L(a);var d="knol-home-kr",f=I({b:"div",id:d});f.la();var g=I({b:"div"});f.addElement(g);var h=I({b:"div",id:"knol-home-kr-right-pane"});h.addElement(this.PT());h.addElement(this.RKa());g.addElement(h);var i=I({b:"div",id:"knol-home-kr-left-pane"});i.addElement(this.xKa());i.addElement(this.SKa());g.addElement(i);g.la();this.zn("knol.ui.client.HomePageKr",[],k,k);this.L(f)};
q.xKa=function(){var a="knol.KrAnnouncement"+og(),b=J(a);if(!b)return k;var c=b.pF();if(!c)return k;var d=b.Ia();if(!d){C("knol.ui.HomePageKr").U("KnolMeta for KrAnnouncement knol does not exist. knol id = "+a);return k}if(d.ng()==-2)return k;var f=I({b:"div",id:"knol-home-kr-announcement",c:"knol-home-kr-components"}),g=I({b:"div",c:"knol-home-kr-components-title"}),h=I({b:"div",id:"knol-home-kr-announcement-body",c:"knol-home-kr-components-body"});g.addElement(I({b:"h1",d:"An\u00fancio"}));h.addElement(c);
f.addElement(g);f.addElement(h);return f};
q.SKa=function(){var a=I({b:"div",id:"knol-home-kr-knol-list",c:"knol-home-kr-components"}),b=I({b:"div",c:"knol-home-kr-components-title"}),c=I({b:"div",c:"knol-home-kr-components-body",id:"knol-popular-knol-list"});b.addElement(I({b:"h1",d:"Knols conhecidos"}));var d=I({id:"knol-home-kr-tab-c-popular-knols",b:"div",d:E(js).bj()}),f=I({id:"knol-home-kr-tab-c-recent-knols",b:"div",style:"display: none"});c.addElement(d);c.addElement(f);a.addElement(b);a.addElement(c);return a};
q.RKa=function(){var a=I({b:"div",id:"knol-home-kr-author-list",c:"knol-home-kr-components"}),b=I({b:"div",c:"knol-home-kr-components-title"}),c=I({b:"div",c:"knol-home-kr-components-body",id:"knol-popular-author-list"});b.addElement(I({b:"h1",d:"Autores conhecidos"}));c.addElement(I({b:"div",d:E(gs).bj()}));a.addElement(b);a.addElement(c);return a};
q.PT=function(){var a=I({b:"div",c:"knol-home-kr-components"}),b=I({b:"div",c:"knol-home-kr-components-body",id:"knol-my-knols-list-id"});b.addElement(I({b:"div",d:(new fs).bj()}));a.addElement(b);return a};var ns=function(){};D(ns,rn);var os=["US","KR"],ps=function(){var a=zf();if(a&&Db(os,a))return j;return l},qs=["KR"],rs=function(){var a=zf();if(a&&Db(qs,a))return j;return l};ns.prototype.zd=function(){rn.prototype.zd.call(this)};ns.prototype.create=function(){C("knol.ui.IdvCheck");var a=I({b:"div",id:"idv-real-name-badge",c:"knol-box"}),b=P(),c=b.m5();"author="+Se(b);if(c){a.addElement({b:"span",d:"Real Name"});a.Q()}this.L(a)};
var ss=function(a){return a?a.replace(/^\s+/,"").replace(/\s+$/,""):a},ts=function(a){return a?a.replace(/\s+/g,""):a},us=function(a,b,c,d,f,g,h,i,m,n,o,p,s,u,v,x,y){C("knol.ui.IdvCheck");a=ss(a);b=ss(b);ss(c);d=ss(d);ss(f);ss(g);h=ts(h);i=ss(i);m=ss(m);n=ss(n);o=ss(o);p=ss(p);s=ss(s);u=ss(u);var B=/^[\w \t#.,'-]+$/;if(!a)return"O nome \u00e9 necess\u00e1rio";if(!B.test(a))return"O nome tem caracteres inv\u00e1lidos";if(!b)return"O sobrenome \u00e9 necess\u00e1rio";if(!B.test(b))return"O sobrenome tem caracteres inv\u00e1lidos";
if(!m)return"O endere\u00e7o deve ter uma rua";if(!B.test(m))return"A rua tem caracteres inv\u00e1lidos";if(!n)return"O endere\u00e7o deve ter uma cidade";if(!B.test(n))return"A cidade tem caracteres inv\u00e1lidos";if(!o)return"O endere\u00e7o deve ter um estado";if(!B.test(o))return"O estado tem caracteres inv\u00e1lidos";if(!p)return"O endere\u00e7o deve ter um CEP";var G=/^\d{5}$/;if(!G.test(p))return"O CEP deve ter cinco d\u00edgitos";if(!s)return"O endere\u00e7o deve ter um pa\u00eds";if(!B.test(s))return"O nome do pa\u00eds tem caracteres inv\u00e1lidos";
if(!u)return"Entrada inv\u00e1lida";if(u.toLowerCase()=="creditcard"){if(x)return"Entrada inv\u00e1lida";if(!v)return"Entrada inv\u00e1lida";if(!d)return"N\u00famero de cart\u00e3o de cr\u00e9dito necess\u00e1rio";if(y){var M=/^\d{13,19}$/;if(!M.test(d))return"O n\u00famero do cart\u00e3o de cr\u00e9dito deve ter de 13 a 19 d\u00edgitos"}}else if(u.toLowerCase()=="clicktocall"){if(!h)return"O n\u00famero de telefone \u00e9 necess\u00e1rio";var R=/^\+?[\d()-]+$/;if(!R.test(h))return"O n\u00famero de telefone cont\u00e9m caracteres inv\u00e1lidos.";
if(!i)return"Entrada inv\u00e1lida";if(!G.test(i))return"Entrada inv\u00e1lida"}else if(u.toLowerCase()=="ssn"){if(x)return"Entrada inv\u00e1lida";if(!v)return"Entrada inv\u00e1lida";if(!d)return"O n\u00famero do seguro social \u00e9 obrigat\u00f3rio";if(y){var X=/^\d{9,9}$/,Q=d;if(!X.test(Q))return"O n\u00famero de seguro social deve conter 9 d\u00edgitos."}}else return"Entrada inv\u00e1lida";return""};var vs={};vs.ie=function(){return C("knol.ui.IdvCheckKr")};
vs.Vm=function(a,b,c,d,f){vs.ie();a=ss(a);b=ss(b);c=ts(c);d=ts(d);f=ss(f);if(!a)return"O nome \u00e9 necess\u00e1rio";if(!b)return"O sobrenome \u00e9 necess\u00e1rio";if(!f)return"Entrada inv\u00e1lida";if(f.toLowerCase()=="koreanrrn"){if(!c||!d)return"RRN (N\u00famero de Registro de Residente) necess\u00e1rio";var g=/^\d{6}$/;if(!g.test(c))return"A primeira parte de um RRN (N\u00famero de Registro de Residente) deve ter exatamente 6 d\u00edgitos";var h=/^\d{7}$/;if(!h.test(d))return'A segunda parte (depois do "tra\u00e7o") de um RRN (N\u00famero de Registro de Residente) deve ter exatamente 7 d\u00edgitos'}else return"Entrada inv\u00e1lida";
return""};vs.qYa=function(){return k};var ws=function(){};D(ws,rn);ws.prototype.create=function(){var a=I({b:"div",id:"knol-scores-container",style:"display: none"});this.L(a);this.Xj(k,k,"knol.ui.client.KnolScores.init",[])};var xs=function(a){var b=I(),c=0,d=O();if(!d)return b;var f=d.gd();if(a==2){if(f==0)return b;c=d.qP()}else if(a==3){if(!d.FG())return b;c=d.R6()}else c=d.V5();var g="",h="",i="";if(a==2){h="submissions";var m=Zj("icons/collect.png");i=I({b:"img",src:m,sprite:"main",c:"knol-suggestions-top-icon"});if(c==0)g="N\u00e3o h\u00e1 envios de cole\u00e7\u00e3o pendentes";else if(c==1){var n="H\u00e1 "+("<b>"+("1"+("</b>"+(" "+('<a href="#'+h+'">envio de cole\u00e7\u00e3o pendente</a>')))));g=n}else{var o=
"H\u00e1 "+("<b>"+(c+("</b>"+('<a href="#'+h+'">envios de cole\u00e7\u00e3o pendentes</a>'))));g=o}}else if(a==3){h="subsuggestions";i=I({b:"img",sprite:"main",c:"knol-suggestions-top-icon",src:Zj("icons/closed_collaboration.png")});if(c==0)return b;else if(c==1){var p="H\u00e1 "+("<b>"+("1"+("</b>"+(" knol nesta cole\u00e7\u00e3o com "+('<a href="#'+h+'">edi\u00e7\u00f5es pendentes</a>')))));g=p}else{var s="H\u00e1 "+("<b>"+(c+("</b>"+(" knols nesta cole\u00e7\u00e3o com "+('<a href="#'+h+'">edi\u00e7\u00f5es pendentes</a>')))));
g=s}}else{h="edit-suggestions";i=I({b:"img",sprite:"main",c:"knol-suggestions-top-icon",src:Zj("icons/moderated_collaboration.png")});if(c==0){if(f!=0)return b;g="N\u00e3o h\u00e1 sugest\u00f5es de texto pendentes dos seus leitores"}else if(c==1){var u="H\u00e1 "+('<a href="#'+h+'">sugest\u00f5es de textos pendentes</a> de <b>1</b> leitor');g=u}else{var v="H\u00e1 "+('<a href="#'+h+'">'+("sugest\u00f5es de textos pendentes"+("</a>"+(" de "+("<b>"+(c+"</b> leitores"))))));g=v}}b=I({b:"div"});i?b.addElement(i):
b.addElement(I({b:"span",c:"knol-suggestions-top-icon"}));b.addElement(I({b:"span",c:"knol-suggestions-top-docked",d:g}));b.la();return b};var ys=function(a,b){this.K=b;qo.call(this,a,Kj.EC,"knol.ui.PendingDiscussionView")};D(ys,ro);ys.prototype.ci="knol-pending-comment-list";ys.prototype.Mn=function(){return zs(this.rb,this.K)};var zs=function(a,b){if(!a||!b)return l;if(!a.St())return l;var c=b.p(),d=a.g6();if(d.$i()){if(b.Cb()||a.fc(c))return j}else return l;return zc(d.dc(),function(f){var g=J(f);return g.aO()==c})};
ys.prototype.Fha=function(){if(this.La){var a=this.rb,b;if(a.fc(this.K.p())||this.K.Cb()){var c="Coment\u00e1rios que est\u00e3o aguardando a sua aprova\u00e7\u00e3o: "+a.g6().na();b=c}else b="Seus coment\u00e1rios que est\u00e3o aguardando aprova\u00e7\u00e3o";this.L(I({b:"h3",id:"knol-pending-comment-header",d:b}))}};ys.prototype.ep=function(){this.write("</div>");if(this.La&&this.rb&&this.rb.zO().$i()){this.L(I({b:"br"}));this.L(I({b:"h3",id:"knol-approved-comment-header",d:"Coment\u00e1rios aprovados"}))}};
ys.prototype.Iha=function(){};ys.prototype.ga=function(a){var b=so(a);if(!b)return l;var c=this.K||P();if(!c)return l;if(c.Cb())return j;if(!this.rb)return l;if(this.rb.fc(c.p()))return j;var d=J(a.nodeId);if(c.p()==d.aO())return j;return l};var As=function(a,b,c,d){if(b){this.Ka=b;this.K=J(b)}this.hN=a||k;this.pma=c;this.tH=d};D(As,rn);As.prototype.tw=function(a){if(this.KN)this.KN=l;else{var b="&#160;|&#160;";a?a.addElement(b):this.write(b)}};
As.prototype.create=function(){this.KN=j;var a=this.K&&this.K[Fp.SK]=="UserStub",b="knol-header-menu-login",c=this.hN||"",d="knol-header-menu-email",f=d+"-c";this.write('<span id="'+f+'"><span id="'+d+'" class="'+b+'">'+c+"</span>");if(this.K&&!a)if(this.K.ig())this.L(I({b:"sup",d:"Admin",c:"knol-header-new-link-superscript"}));else this.K.Cb()&&this.L(I({b:"sup",d:"Limited-Admin",c:"knol-header-new-link-superscript"}));this.write("</span>");if(this.tH&&this.tH.length==2){var g=this.tH[0],h=this.tH[1];
if(g!=h){var i=I({b:"a",href:g,d:Xe(h),id:"knol-header-new-link",c:"knol-header-new-link knol-custom-bg-link"});this.tw();this.L(i);this.L(I({b:"sup",d:"Novo!",c:"knol-header-new-link-superscript",title:h}));this.tw()}}else this.KN=l;var m=this.Pta(),n=this.K&&!a?this.K.ik()+"#knols":"",o=this.Ka?"":"display: none",p=I({b:"span",style:o,id:"knol-header-my-profile-link-c"});if(n){p.addElement({b:"a",c:"knol-custom-bg-link",href:n,d:"Meus knols",id:"knol-header-my-profile-link"});this.tw(p)}if(n||a){var s=
dk("Settings")+(m?"?back="+m:"");p.addElement({b:"a",href:s,id:"knol-header-prefs-link",c:"knol-custom-bg-link",d:"Prefer\u00eancias"});this.tw(p)}this.L(p);var u,v=bf()||"";u=xa(v,"/")?v.substring(0,v.length-1):v;this.aK(u,"P\u00e1gina inicial",k,k,"knol-custom-bg-link");this.tw();var x=dk("knol/Help")+qg();this.aK(x,"Ajuda",k,"knol-header-menu-help","knol-custom-bg-link");this.tw();var y=this.Ka?"":"display: none",B=new I({b:"span",id:"knol-signout-link",style:y});B.addElement(Bs());this.L(B);if(!this.Ka){var G=
qf(),M=I({b:"a",href:G,c:"knol-custom-bg-link",d:"Fazer login",id:"knol-signin-link"});this.L(M)}this.write("&#160;")};As.prototype.Pta=function(){var a=(new Md(document.location.href)).Nf("back"),b=bg();return b||a||this.pma};var Bs=function(){var a,b=O(),c=b&&-1==b.ng();a=c||ng()=="user"?jg():kg();return new I({b:"a",c:"knol-custom-bg-link",href:a,d:"Sair"})};var Cs=function(){};D(Cs,rn);q=Cs.prototype;q.ec=function(a,b,c,d,f,g){this.AD="knol.ui.client.PropertyEditor";this.Q2=a;this.nra=b;this.Sp=c;this.Pba=d;this.mJa=f;this.nodeId=g;this.Ox=this.G9=l;this.gr=1E3};
q.create=function(){var a=O(),b=a&&a.ya(),c=this.ca(),d=c?"":' style="display: none"',f=b?'Clique no bot\u00e3o "Editar esta cole\u00e7\u00e3o" para mudar para o modo de edi\u00e7\u00e3o e alterar este campo.':'Clique no bot\u00e3o "Editar este knol" para mudar para o modo de edi\u00e7\u00e3o e alterar este campo.';this.DZ();var g,h=xg();g=h?rg(h):k;var i="knol-inline-editor knol-content-"+(g?"rtl":"ltr");this.write('<div class="'+i+'"><'+this.Q2+' id="'+this.Sp+'" class="'+this.nra+'" title="'+Xe(f)+
'" '+d+">");this.Ox&&this.write(wf());if(c){var m=mf(c,this.gr);if(this.Cz())m=m.replace(/\n/g,"<br />");this.write(m)}else this.write("&#160;");this.write("</"+this.Q2+">");if(this.xDa())if(this.Cz())this.write('<textarea id="'+this.Sp+'-input" style="display: none"></textarea>');else{var n=this.gr?' maxlength="'+this.gr+'"':"";this.write('<input id="'+this.Sp+'-input" type="text" style="display: none"'+n+" />")}this.Ox&&this.write("<!-- google_ad_section_end --\>");this.write("</div>");this.da()&&
this.Xj(k,k,"knol.getSingleton("+this.AD+").initOnClient",[])};q.da=function(){var a=this.Xn();if(a instanceof vf)a=a.Ia();var b=a instanceof T?a.ck(P(),20):eh(P(),a,20);return!!ag()&&b!=1&&b!=5};q.Cz=function(){return this.G9};q.ca=function(){return this.Xn().n(this.Pba)};q.Xn=function(){if(!this.node)this.node=J(this.nodeId);return this.node};q.DZ=function(){};
var Ds=function(){var a="",b=O();a=b&&b.gd()!=0?"T\u00edtulo da cole\u00e7\u00e3o":"T\u00edtulo";Cs.prototype.ec.call(this,"h1","knol-title","knol-title","title",a,bg());this.AD="knol.ui.client.TitleEditor";this.gr=250;this.Ox=j};D(Ds,Cs);Ds.prototype.da=function(){if(this.Xn()instanceof Ul)return l;return Ds.f.da.call(this)};Ds.prototype.DZ=function(){};
var Es=function(){Cs.prototype.ec.call(this,"h2","knol-subtitle","knol-subtitle","subtitle","Subt\u00edtulo\u2028",bg());this.AD="knol.ui.client.SubtitleEditor";this.gr=250;this.Ox=j};D(Es,Cs);Es.prototype.da=function(){if(this.Xn()instanceof Ul){var a=this.Xn().Ia();if(a&&a.cy())return l}return Es.f.da.call(this)};var Fs=function(){Cs.prototype.ec.call(this,"h2","knol-abstract","knol-abstract","abstract","Resumo",bg());this.AD="knol.ui.client.AbstractEditor";this.G9=j;this.gr=3E3;this.Ox=j};
D(Fs,Cs);Fs.prototype.create=function(){if(!(this.Xn()instanceof Ul))return Fs.f.create.call(this)};Fs.prototype.da=function(){if(this.Xn()instanceof Ul)return l;return Fs.f.da.call(this)};var Gs=function(a){if(!a.Hy().Ga()){this.ZT=a;a=J(a.Hy().$i())}qo.call(this,a,Kj.Kg,"knol.ui.ReviewList");this.tea()};D(Gs,qo);q=Gs.prototype;q.iaa=0;q.sw=function(){this.write('<div id="'+this.Mb()+'" class="knol-box knol-sidebar-box">');this.ZT?this.Mha("Mais resenhas"):this.Mha("Resenhas");this.write("<ul>")};q.ep=function(){this.write("</ul>");this.write("</div>");var a=Wr(this.Wd==0);if(a){this.Xj(k,k,"knol.ui.client.CreateReview.swapReviewLink",["knol-create-review"]);this.write(a.v())}};
q.Mb=function(){return"knol-reviews"};q.ga=function(a){if(this.ZT)if(a.lg()==this.ZT.p())return l;var b=J(a.nodeId);if(!b)return l;if(b.ng()==-2)return l;if(b.uR())return l;var c=O();if(c&&c.j9(b.kd()))return l;var d=b.ld();if(!(d instanceof Ul)||d.rDa())return l;return j};
q.ms=function(a){var b=a.Vn(),c=J(a.lg()),d=c.ld(),f=mf(d.iu(),22)||mf(d.ok(),22)||"Resenha sem t\u00edtulo",g=a.my(),h=mf(a.ly(),20),i=a.kd().fj(),m;m="";var n=I({b:"li"}),o=I({b:"div",c:"knol-review"});o.addElement({b:"div",c:"g-section g-tpl-75-25",children:[{b:"div",c:"g-unit g-first",children:[{b:"div",c:"knol-review-author-image",children:[{b:"img",src:i,alt:"",id:"knol-review-image-"+a.nodeId}]},{b:"div",c:"knol-review-mid",children:[{b:"div",children:[{b:"a",href:b,d:f,c:"knol-review-snippet"}]},
{b:"div",c:"knol-review-author",children:[{b:"span",d:"por"},{b:"a",href:g,d:h}]}]}]},{b:"div",c:"g-unit",children:[{b:"div",id:m,c:"knol-review-zipit"}]}]});o.la();n.addElement(o);this.L(n);if(!nf.test(a.nodeId)){var p=V("knol.ui.AuthorList.getThumbnailItemFromId",[a.kd().p()]);p.k(z(function(s){var u=Y("knol-review-image-"+a.nodeId);if(u&&s)u.src=s},this))}};var Hs=function(){};D(Hs,rn);Hs.prototype.create=function(){this.write(I({b:"div",style:"display: none",id:"knol-revision-compare"}).v())};var Is=function(a){if(!ia(a))return"vinculados a esta p\u00e1gina";var b="vinculados a esta p\u00e1gina ("+(a+")");return b},Js=function(a){if(!ia(a))return"colecionaram esta p\u00e1gina";var b="colecionaram esta p\u00e1gina ("+(a+")");return b},Ks=function(a){if(!ia(a))return"usaram esta p\u00e1gina como modelo";var b="usaram esta p\u00e1gina como modelo ("+(a+")");return b},Ls=[{name:"option-link",kD:{back:j,link:j,language:"0"},Re:Is},{name:"option-collect",kD:{back:j,collections:"on",language:"0"},
Re:Js},{name:"option-template",kD:{back:j,templateId:j,language:"0"},Re:Ks}],Ms=function(a,b){if(!a||!b)return k;var c=cc(a.kD,function(d){return typeof d=="boolean"?b:d});return c};var Ns=function(){};D(Ns,rn);
Ns.prototype.create=function(){var a=I({b:"div",id:"knol-sub-collection-suggestions",style:"display: none"}),b="Edi\u00e7\u00f5es pendentes para knols nesta cole\u00e7\u00e3o: "+dg().Rh();a.addElement({b:"h2",c:"knol-menu-heading-h2",d:b});a.addElement({b:"div",c:"knol-menu-heading-backlink-container",children:[{b:"a",c:"knol-menu-heading-backlink",href:"#view",d:"&#xAB; Voltar \u00e0 visualiza\u00e7\u00e3o da cole\u00e7\u00e3o"}]});a.Q();a.addElement({b:"div",id:"knol-sub-collection-suggestions-list"});this.L(a)};var Os=function(){};D(Os,rn);
Os.prototype.create=function(){var a=I({b:"div",id:"knol-submissions",style:"display: none"}),b="Envios para a cole\u00e7\u00e3o: "+dg().Rh();a.addElement({b:"h2",c:"knol-menu-heading-h2",d:b});a.addElement({b:"div",c:"knol-menu-heading-backlink-container",children:[{b:"a",c:"knol-menu-heading-backlink",href:"#view",d:"&#xAB; Voltar \u00e0 visualiza\u00e7\u00e3o da cole\u00e7\u00e3o"}]});if(O().Ed()){var c;c=O().ng()!=-2?"Observa\u00e7\u00e3o: Os knols ou as cole\u00e7\u00f5es que ainda n\u00e3o tiverem sido publicados ser\u00e3o publicados quando forem aceitos na cole\u00e7\u00e3o.":"Observa\u00e7\u00e3o: Quando esta cole\u00e7\u00e3o for publicada, qualquer knol ou cole\u00e7\u00e3o aceito ainda sem publica\u00e7\u00e3o ser\u00e1 ent\u00e3o publicado.";
a.addElement({b:"div",style:"display: none",id:"knol-menu-heading-extra-note",d:c})}a.addElement({b:"div",id:"knol-submissions-list"});a.addElement({b:"div",id:"knol-submissions-empty",style:"display: none",d:"N\u00e3o h\u00e1 envios para esta cole\u00e7\u00e3o."});this.L(a)};var Ps=function(){};D(Ps,rn);var Qs={truncated:0,nItems:0,dispLevel:0,nonemptyLevels:[],htmlCode:""};Ps.prototype.Mn=function(){if(this.Zua("embed.toc")=="false")return l;var a=O();if(!a.UE())return l;return j};Ps.prototype.create=function(){if(this.Mn()){var a=dg();this.L(this.FFa(a.pF(),0))}};Ps.prototype.FFa=function(){return k};var Rs=function(a,b,c,d,f){vr.call(this,d);this.ib=new Md(f||"http://chart.apis.google.com/chart");this.nN="";this.Jp=[];this.tU=[];this.HI=[];this.FTa=[];this.PEa=[];this.uLa=[];this.qGa=[];this.oGa={};this.mGa={};this.pGa={};this.nGa={};this.pi(a);this.Fg(b,c);this.Zz=this.NDa()?0:Infinity};A(Rs,vr);q=Rs.prototype;q.vSa=2048;q.tza=0;q.uza=0;q.lH=-Infinity;q.df=k;q.QEa=k;q.Kaa=k;
q.h=function(){var a=this.getSize();this.Ud(this.M().h("img",{src:this.YP(),"class":"goog-serverchart-image",width:a[0],height:a[1]}))};q.Pc=function(a){a.src=this.YP();this.Ud(a)};q.YP=function(){this.poa();return this.ib};q.pi=function(a){this.ib.P("cht",a)};q.ka=function(){return this.ib.Nf("cht")};q.Fg=function(a,b){var c=[a||300,b||150].join("x");this.ib.P("chs",c)};q.getSize=function(){var a=this.ib.Nf("chs");return a.split("x")};q.YNa=function(a){this.Zz=a};
q.NDa=function(){var a=this.ka();return a=="p"||a=="p3"||a=="pc"};q.isMap=function(){var a=this.ka();return a=="t"||a=="tuss"||a=="twoc"};q.P=function(a,b){this.ib.P(a,b)};q.removeParameter=function(a){this.ib.removeParameter(a)};q.cf=function(a){this.df=a;this.ib.P("chtt",this.df.replace(/\n/g,"|"))};
q.bka=function(a,b,c){var d=this.Yla(a);if(d<this.Zz)this.Zz=d;var f=this.Xla(a);if(f>this.lH)this.lH=f;if(r(c)){if(this.HI.length<this.Jp.length)e(Error("Cannot start adding legends text after first element."));this.HI.push(c);this.ib.P("chdl",this.HI.join("|"))}this.Jp.push(a);this.tU.push(b);this.ib.P("chco",this.tU.join(","))};q.getData=function(a){if(r(a))return this.Jp[a];return this.Jp};q.poa=function(){var a;if(this.nN!="")a=this.UL(this.nN);else(a=this.UL("e"))||(a=this.UL("s"));a||this.dispatchEvent(new Ss(this.ib.toString()))};
q.UL=function(a){for(var b=[],c=0,d=this.Jp.length;c<d;++c)b[c]=this.cua(this.Jp[c],this.Zz,this.lH,a);var f=a=="t"?"|":",";b=b.join(f);var g;g=this.Kaa==k?cb(a,":",b):cb(a,this.Kaa,":",b);this.ib.P("chd",g);return this.ib.toString().length<this.vSa};var Ts=Math.pow(64,2)-1;q=Rs.prototype;
q.vua=function(a,b,c,d){if(b>c)e(Error("minValue is greater than maxValue"));var f=d=="e";if(!ia(a)||isNaN(a))return f?"__":"_";if(d=="t")return String(a);var g=0.5;if(c>b)g=(a-b)/(c-b);if(f){var h=64,i=Ts,m=Math.floor(g*i/h),n=Math.floor(g*i%h),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.";return o.charAt(m)+o.charAt(n)}var p=Math.round(g*61);return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(p)};
q.cua=function(a,b,c,d){for(var f=[],g=0,h=a.length;g<h;++g)f.push(this.vua(a[g],b,c,d));return f.join(this.nN=="t"?",":"")};q.Yla=function(a){for(var b=Infinity,c=0,d=a.length;c<d;++c){var f=a[c];if(f!=k&&f<b)b=f}return b};q.Xla=function(a){for(var b=-Infinity,c=0,d=a.length;c<d;++c){var f=a[c];if(f!=k&&f>b)b=f}return b};
q.o=function(){Rs.f.o.call(this);delete this.FTa;delete this.PEa;delete this.uLa;delete this.tza;delete this.uza;delete this.tU;delete this.HI;delete this.Jp;this.ib=k;delete this.Zz;delete this.lH;this.df=k;delete this.qGa;delete this.oGa;delete this.mGa;delete this.pGa;delete this.nGa;this.QEa=k};var Ss=function(a){ni.call(this,"uritoolong");this.uri=a};A(Ss,ni);var Us=function(a){if(a){this.Laa=J(Af(a));this.Hra=J(a+"_EVENTS");this.yG=this.Laa instanceof Sl;if(!this.yG)this.Wa=J(a).ya()}};D(Us,rn);
Us.prototype.create=function(){C("knol.ui.UsageStats");var a=this.Laa,b=this.Hra;if(a){var c=I({b:"div",id:"knol-usage-stats",c:"knol-box knol-sidebar-box"}),d=this.yG?"Atividade deste autor":this.Wa?"Atividade desta cole\u00e7\u00e3o":"Atividade neste knol",f=!this.yG?b:a,g=f?f.Yn():k,h=[{label:"visualiza\u00e7\u00f5es de p\u00e1gina",value:g},{label:"coment\u00e1rios",value:a.NE(),link:"#comments"},{label:"classifica\u00e7\u00f5es",value:a.AF()},{label:"sugest\u00f5es",value:a.HF()}],i=new I({b:"div"});
i.addElement({b:"h4",d:"Esta semana:"});var m=l;vb(h,function(u){if(u.value&&u.value.aQ()){i.addElement({b:"span",c:"knol-usage-stats-value",d:u.value.aQ()});var v=k;v=u.link?I({b:"a",href:u.link,d:u.label}):I({b:"span",d:u.label});i.addElement({b:"span",c:"knol-usage-stats-label",children:[v]});u.value.UO()&&i.addElement(this.HKa(u.value.UO()));i.Q();m=j}},this);var n=new I({b:"div"});n.addElement({b:"h4",d:"Totais:"});var o=l;vb(h,function(u){if(u.value&&u.value.VP()){n.addElement({b:"span",c:"knol-usage-stats-value",
d:u.value.VP()});n.addElement({b:"span",c:"knol-usage-stats-label",d:u.label});n.Q();o=j}});if(m||o){c.addElement({b:"h3",d:d});if(this.yG){var p=g.aza();if(p){var s="\u00daltima atualiza\u00e7\u00e3o: "+xf(p);c.addElement({b:"div",c:"knol-usage-stats-timestamp",d:s})}}m&&c.addElement(i);o&&c.addElement(n);c.addElement({b:"div",id:"knol-usage-stats-analytics"});this.Xj(k,k,"knol.ui.client.UsageStats.init",[]);this.L(c)}}};
Us.prototype.HKa=function(a){if(!a||!a.length)return k;var b=new Rs("ls"),c=Math.min(7,a.length);b.bka(a.slice(0,c).reverse(),"0077cc");b.Fg(75,15);b.YNa(0);var d=new Md(b.YP());d.P("chco","0077cc");d.P("chm","B,e6f2fa,0,0,0");d.P("chf","bg,s,ffffff");var f=I({b:"img",c:"knol-usage-stats-graph",src:d.toString()});return f};var Vs=function(a){return"knol-authorpage-visibility-"+a.substring(17)},Po=function(a,b,c){var d=c||req.args,f={};if(d instanceof Pn)f=d;else{var g=new So(l);f=g.XLa(d,j)}var h=I({b:"div",c:b?"":"knol-search-visibility",id:a});h.addElement({b:"span",c:"knol-search-visibility-label",d:"Mostrar resultados:"});var i=r(f.aD)?!!f.aD:undefined,m=r(f.$C)?!!f.$C:j,n=I({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:m,name:"pub",id:a+"-published"});h.addElement(n);h.addElement(I({b:"span",d:"Publicado"}));
var o=I({b:"input",type:"checkbox",c:"knol-search-checkbox",checked:i,name:"unpub",id:a+"-unpublished"});h.addElement(o);h.addElement(I({b:"span",d:"N\u00e3o publicado"}));return h};var Ws={sVa:"GenericError",rWa:"NodeHasBeenDeleted",sWa:"NodeNotFound",uWa:"NoNodesFound",JXa:"WebspaceNotFound",TVa:"KnolNotPublished",SVa:"KnolFlagged",yWa:"PageViewLimitExceeded",HVa:"InviteHasExpired",KTa:"AccountClosed"};t("knol.Errors.Error",Ws,void 0);
var Xs=function(a){switch(a){case "NodeHasBeenDeleted":return"O knol solicitado foi exclu\u00eddo por um dos seus propriet\u00e1rios.";case "NoNodesFound":case "NodeNotFound":case "WebspaceNotFound":return"N\u00e3o foi poss\u00edvel encontrar o knol solicitado.";case "KnolNotPublished":return"O knol solicitado n\u00e3o foi publicado.";case "KnolFlagged":return"O knol solicitado foi sinalizado e n\u00e3o est\u00e1 mais dispon\u00edvel.";case "AccountClosed":return"A Conta do Google do autor foi encerrada e o knol solicitado n\u00e3o est\u00e1 mais dispon\u00edvel.";
case "PageViewLimitExceeded":return"Infelizmente este endere\u00e7o IP atingiu o limite de visualiza\u00e7\u00e3o de p\u00e1ginas. Tente novamente mais tarde.";case "InviteHasExpired":return"Seu convite para acessar este knol expirou.";default:return"Ops... Estamos tendo dificuldades t\u00e9cnicas no momento. Tente novamente mais tarde."}};t("knol.Errors.getMessage",Xs,void 0);var Ys={index:j,follow:l,odp:l},Wp=function(a){Ys.index=a};var Zs={};Zs={};Zs.bd={};if(typeof $s=="undefined")var $s=[];if(typeof at=="undefined")var at=[];Zs.bd.sja="";Zs.bd.CC={Oia:"m",Aja:"w",Nia:"l",yja:"u"};Zs.bd.wC={mY:"g",$Y:"r"};Zs.bd.Xwa=function(){var a=Zs.bd.CC.yja;if(Ce)a=Zs.bd.CC.Aja;else if(Be)a=Zs.bd.CC.Oia;else if(De)a=Zs.bd.CC.Nia;return a};Zs.bd.lva=function(a){var b=[];b.push(Zs.bd.Xwa());for(var c=0;c<a.length;++c){var d=new Date(a[c]);b.push(d.getTimezoneOffset()|0)}return Zs.bd.zra(b)};
t("gsites.date.TimeZone.getFingerprint",Zs.bd.lva,void 0);Zs.bd.zra=function(a){var b=a.length;if(b<2)return Zs.bd.sja;for(var c=[a[0]],d=a[1],f=d,g=1,h=2;h<b;){f=a[h++];if(f!==d){c.push(Zs.bd.wC.mY+Zs.bd.WD(d)+Zs.bd.wC.$Y+Zs.bd.WD(g));d=f;g=1}else g++}c.push(Zs.bd.wC.mY+Zs.bd.WD(f)+Zs.bd.wC.$Y+Zs.bd.WD(g));return c.join("")};Zs.bd.WD=function(a){if(a>=0)return a.toString(16).toUpperCase();else{var b=-a;return"-"+b.toString(16).toUpperCase()}};var bt={vXa:0,wXa:2,nUa:1,oUa:3,uja:4,tja:6,jia:5,iia:7},dt=function(a,b,c,d,f,g,h,i){var m,n=c.offsetParent;if(n){var o=n.tagName=="HTML"||n.tagName=="BODY";if(!o||Mq(n)!="static"){m=Rq(n);o||(m=zh(m,new yh(n.scrollLeft,n.scrollTop)))}}var p,s=a,u=Zq(s),v=Tq(s);v&&u.d9(new Fh(v.left,v.top,v.right-v.left,v.bottom-v.top));var x=p=u,y=cm(a),B=cm(c);if(y.J()!=B.J()){var G=y.J().body,M,R=B.ha(),X=new yh(0,0),Q=nm(bm(G)),K=G;do{var Va=Q==R?Rq(K):Uq(K);X.x+=Va.x;X.y+=Va.y}while(Q&&Q!=R&&(K=Q.frameElement)&&
(Q=Q.parent));M=X;M=zh(M,Rq(G));if(F&&!y.AG())M=zh(M,y.Kn());x.left+=M.x;x.top+=M.y}var tb=(b&4&&Sq(a)?b^2:b)&-5,Oc=new yh(tb&2?p.left+p.width:p.left,tb&1?p.top+p.height:p.top);if(m)Oc=zh(Oc,m);if(f){Oc.x+=(tb&2?-1:1)*f.x;Oc.y+=(tb&1?-1:1)*f.y}var Kb;if(h)if((Kb=Tq(c))&&m){Kb.top=Math.max(0,Kb.top-m.y);Kb.right-=m.x;Kb.bottom-=m.y;Kb.left=Math.max(0,Kb.left-m.x)}return ct(Oc,c,d,g,Kb,h,i)},ct=function(a,b,c,d,f,g,h){a=a.wa();var i=0,m=(c&4&&Sq(b)?c^2:c)&-5,n=Yq(b),o=h?h.wa():n;if(d||m!=0){if(m&2)a.x-=
o.width+(d?d.right:0);else if(d)a.x+=d.left;if(m&1)a.y-=o.height+(d?d.bottom:0);else if(d)a.y+=d.top}if(g){i=f?et(a,o,f,g):256;if(i&496)return i}Nq(b,a);Eh(n,o)||Xq(b,o);return i},et=function(a,b,c,d){var f=0;if(a.x<c.left&&d&1){a.x=c.left;f|=1}if(a.x<c.left&&a.x+b.width>c.right&&d&16){b.width-=a.x+b.width-c.right;f|=4}if(a.x+b.width>c.right&&d&1){a.x=Math.max(c.right-b.width,c.left);f|=1}if(d&2)f|=(a.x<c.left?16:0)|(a.x+b.width>c.right?32:0);if(a.y<c.top&&d&4){a.y=c.top;f|=2}if(a.y>=c.top&&a.y+b.height>
c.bottom&&d&32){b.height-=a.y+b.height-c.bottom;f|=8}if(a.y+b.height>c.bottom&&d&4){a.y=Math.max(c.bottom-b.height,c.top);f|=2}if(d&8)f|=(a.y<c.top?64:0)|(a.y+b.height>c.bottom?128:0);return f};var ft=function(a){this.B=a;var b=F?"focusin":"focus",c=F?"focusout":"blur";this.VEa=U(this.B,b,this,!F);this.WEa=U(this.B,c,this,!F)};A(ft,Yi);ft.prototype.handleEvent=function(a){var b=a.Xg(),c=new oi(b);c.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";try{this.dispatchEvent(c)}finally{c.l()}};ft.prototype.o=function(){ft.f.o.call(this);Oi(this.VEa);Oi(this.WEa);delete this.B};var gt=function(a,b,c){this.target=a;this.fQ=b||a;this.$R=c||new Fh(NaN,NaN,NaN,NaN);this.fd=bm(a);this.j=new Aq(this);U(this.fQ,"mousedown",this.Rfa,l,this)};A(gt,Yi);var ht=F||H&&Ne("1.9.3");q=gt.prototype;q.screenX=0;q.screenY=0;q.Yfa=0;q.Zfa=0;q.et=0;q.ft=0;q.La=j;q.tn=l;q.w8=0;q.$Fa=0;q.gCa=l;q.Ha=function(){return this.j};var it=function(a){a.preventDefault()};q=gt.prototype;q.Mn=function(){return this.La};q.ba=function(a){this.La=a};
q.o=function(){gt.f.o.call(this);Mi(this.fQ,"mousedown",this.Rfa,l,this);this.j.l();delete this.target;delete this.fQ;delete this.j};q.Rfa=function(a){if(this.La&&!this.tn&&(a.type!="mousedown"||a.sz(0))){if(this.w8==0){this.P8(a);if(this.tn)a.preventDefault();else return}else a.preventDefault();this.nPa();this.screenX=this.Yfa=a.screenX;this.screenY=this.Zfa=a.screenY;this.et=this.target.offsetLeft;this.ft=this.target.offsetTop;this.vA=cm(this.fd).Kn();this.$Fa=ua()}};
q.nPa=function(){var a=this.fd,b=a.documentElement,c=!ht;this.j.g(a,"mousemove",this.aGa,c);this.j.g(a,"mouseup",this.lE,c);if(ht){b.setCapture(l);this.j.g(b,"losecapture",this.lE)}else this.j.g(nm(a),"blur",this.lE);F&&this.gCa&&this.j.g(a,"dragstart",it);this.ULa&&this.j.g(this.ULa,"scroll",this.QHa,c)};q.P8=function(a){var b=this.dispatchEvent(new jt("start",this,a.clientX,a.clientY,a));if(b!==l)this.tn=j};
q.lE=function(a,b){this.j.fb();ht&&this.fd.releaseCapture();if(this.tn){this.tn=l;var c=this.v$(this.et),d=this.w$(this.ft);this.dispatchEvent(new jt("end",this,a.clientX,a.clientY,a,c,d,b))}};
q.aGa=function(a){if(this.La){var b=a.screenX-this.screenX,c=a.screenY-this.screenY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.tn){var d=this.Yfa-this.screenX,f=this.Zfa-this.screenY,g=d*d+f*f;if(g>this.w8){this.P8(a);if(!this.tn){this.lE(a);return}}}var h=this.L_(b,c),i=h.x,m=h.y;if(this.tn){var n=this.dispatchEvent(new jt("beforedrag",this,a.clientX,a.clientY,a,i,m));if(n!==l){this.w2(a,i,m,l);a.preventDefault()}}}};
q.L_=function(a,b){var c=cm(this.fd).Kn();a+=c.x-this.vA.x;b+=c.y-this.vA.y;this.vA=c;this.et+=a;this.ft+=b;var d=this.v$(this.et),f=this.w$(this.ft);return new yh(d,f)};q.QHa=function(a){var b=this.L_(0,0);a.clientX=this.vA.x-this.screenX;a.clientY=this.vA.x-this.screenY;this.w2(a,b.x,b.y,j)};q.w2=function(a,b,c){this.vM(b,c);this.dispatchEvent(new jt("drag",this,a.clientX,a.clientY,a,b,c))};
q.v$=function(a){var b=this.$R,c=!isNaN(b.left)?b.left:k,d=!isNaN(b.width)?b.width:0,f=c!=k?c+d:Infinity,g=c!=k?c:-Infinity;return Math.min(f,Math.max(g,a))};q.w$=function(a){var b=this.$R,c=!isNaN(b.top)?b.top:k,d=!isNaN(b.height)?b.height:0,f=c!=k?c+d:Infinity,g=c!=k?c:-Infinity;return Math.min(f,Math.max(g,a))};q.vM=function(a,b){this.target.style.left=a+"px";this.target.style.top=b+"px"};
var jt=function(a,b,c,d,f,g,h,i){ni.call(this,a);this.clientX=c;this.clientY=d;this.aYa=f;this.left=r(g)?g:b.et;this.top=r(h)?h:b.ft;this.L2=b;this.rYa=!!i};A(jt,ni);var lt=function(a,b,c){vr.call(this,c);this.we=a||"modal-dialog";this.vW=!!b;this.Hi=kt;this.Dn=new ft(this.M().J())};A(lt,vr);q=lt.prototype;q.vW=l;q.aA=j;q.K2=j;q.qma=0.3;q.df="";q.Gc="";q.Hi=k;q.mt=k;q.yd=l;q.t2=l;q.Ad=k;q.rd=k;q.xh=k;q.Vk=k;q.MV=k;q.cs=k;q.Og=k;q.Je=k;q.cf=function(a){this.df=a;this.Vk&&Im(this.Vk,a)};q.md=function(){return this.df};q.xd=function(a){this.Gc=a;if(this.Og)this.Og.innerHTML=a};q.getContent=function(){return this.Gc};q.Ea=function(){this.Og||this.Z();return this.Og};
q.Z6=function(){this.Nb()||this.Z();return this.xh};q.Jf=function(){this.Nb()||this.Z();return this.Je};q.L4=function(){this.Nb()||this.Z();return this.e()};q.ZNa=function(a){this.aA=a;this.pS();var b=this.M();if(this.Nb()&&a&&this.ga()){this.rd&&b.hR(this.rd,this.e());this.Ad&&b.hR(this.Ad,this.e());this.ST()}};q.Voa=function(){var a=new gt(this.e(),this.xh);W.add(this.xh,this.we+"-title-draggable");return a};
q.h=function(){this.pS();var a=this.M();this.Ud(a.h("div",{className:this.we,tabIndex:0},this.xh=a.h("div",{className:this.we+"-title",id:this.p()},this.Vk=a.h("span",this.we+"-title-text",this.df),this.cs=a.h("span",this.we+"-title-close")),this.Og=a.h("div",this.we+"-content"),this.Je=a.h("div",this.we+"-buttons"),this.rga=a.h("span",{tabIndex:0})));this.MV=this.xh.id;yq(this.e(),"dialog");zq(this.e(),"labelledby",this.MV||"");if(this.Gc)this.Og.innerHTML=this.Gc;$(this.e(),l);this.Hi&&this.Hi.tL(this.Je)};
q.pS=function(){if(this.vW&&this.aA&&!this.rd){var a,b=this.M();this.rd=a=b.h("iframe",{frameborder:0,style:"border: 0; vertical-align: bottom",src:'javascript:""'});this.rd.className=this.we+"-bg";$(this.rd,l);ar(this.rd,0)}else if((!this.vW||!this.aA)&&this.rd){Z(this.rd);this.rd=k}if(this.aA&&!this.Ad){this.Ad=this.M().h("div",this.we+"-bg");ar(this.Ad,this.qma);$(this.Ad,l)}else if(!this.aA&&this.Ad){Z(this.Ad);this.Ad=k}};
q.Z=function(a){if(this.Nb())e(Error("Component already rendered"));this.e()||this.h();var b=a||this.M().J().body;this.zca(b);lt.f.Z.call(this,b)};q.zca=function(a){this.rd&&a.appendChild(this.rd);this.Ad&&a.appendChild(this.Ad)};q.ue=function(a){return a&&a.tagName&&a.tagName=="DIV"&&lt.f.ue.call(this,a)};
q.Pc=function(a){lt.f.Pc.call(this,a);W.add(this.e(),this.we);var b=this.we+"-content";if(this.Og=fm(k,b,this.e())[0])this.Gc=this.Og.innerHTML;else{this.Og=this.M().h("div",b);if(this.Gc)this.Og.innerHTML=this.Gc;this.e().appendChild(this.Og)}var c=this.we+"-title",d=this.we+"-title-text",f=this.we+"-title-close";if(this.xh=fm(k,c,this.e())[0]){this.Vk=fm(k,d,this.xh)[0];this.cs=fm(k,f,this.xh)[0]}else{this.xh=this.M().h("div",c);this.e().insertBefore(this.xh,this.Og)}if(this.Vk)this.df=Sm(this.Vk);
else{this.Vk=this.M().h("span",d,this.df);this.xh.appendChild(this.Vk)}zq(this.e(),"labelledby",this.MV||"");if(!this.cs){this.cs=this.M().h("span",f);this.xh.appendChild(this.cs)}var g=this.we+"-buttons";if(this.Je=fm(k,g,this.e())[0]){this.Hi=new mt(this.M());this.Hi.Sa(this.Je)}else{this.Je=this.M().h("div",g);this.e().appendChild(this.Je);this.Hi&&this.Hi.tL(this.Je)}this.pS();this.zca(bm(this.e()).body);$(this.e(),l)};
q.Da=function(){lt.f.Da.call(this);if(this.K2&&!this.mt)this.mt=this.Voa();this.Ha().g(this.cs,"click",this.aIa).g(this.Dn,"focusin",this.lHa);yq(this.e(),"dialog");this.Vk.id!==""&&zq(this.e(),"labelledby",this.Vk.id)};q.Ic=function(){this.ga()&&this.H(l);if(this.mt){this.mt.l();this.mt=k}lt.f.Ic.call(this)};
q.H=function(a){if(a!=this.yd){var b=this.M().J(),c=nm(b)||window;this.Nb()||this.Z(b.body);if(a){this.ST();this.gb();this.Ha().g(this.e(),"keydown",this.DH,j).g(c,"resize",this.aba,j)}else this.Ha().Hb(this.e(),"keydown",this.DH,j).Hb(c,"resize",this.aba,j);this.rd&&$(this.rd,a);this.Ad&&$(this.Ad,a);$(this.e(),a);if(a){H&&this.e().focus();if(this.pf()){var d=this.pf().In();if(d)for(var f=this.Je.getElementsByTagName("button"),g=0,h;h=f[g];g++)if(h.name==d){try{if(we||ve){var i=b.createElement("input");
i.style.cssText="position:fixed;width:0;height:0";this.e().appendChild(i);i.focus();this.e().removeChild(i)}h.focus()}catch(m){}break}}}if(this.yd=a)this.Ha().g(this.Je,"click",this.Paa);else{this.Ha().Hb(this.Je,"click",this.Paa);this.dispatchEvent("afterhide");this.t2&&this.l()}}};q.ga=function(){return this.yd};
q.ST=function(){this.rd&&$(this.rd,l);this.Ad&&$(this.Ad,l);var a=this.M().J(),b=nm(a)||window,c=km(b),d=a.body.scrollWidth,f=Math.max(a.body.scrollHeight,c.height);if(this.rd){$(this.rd,j);Xq(this.rd,d,f)}if(this.Ad){$(this.Ad,j);Xq(this.Ad,d,f)}if(this.K2){var g=Yq(this.e());this.mt.$R=new Fh(0,0,d-g.width,f-g.height)}};
q.gb=function(){var a=this.M().J(),b=nm(a)||window;if(Mq(this.e())=="fixed")var c=0,d=0;else{var f=this.M().Kn();c=f.x;d=f.y}var g=Yq(this.e()),h=km(b),i=Math.max(c+h.width/2-g.width/2,0),m=Math.max(d+h.height/2-g.height/2,0),n=this.e();if(this.Td()){n.style.right=Math.round(i)+"px";n.style.top=Math.round(m)+"px"}else Nq(n,i,m)};q.aIa=function(){var a=this.pf(),b=a&&a.i4();if(b){var c=a.z(b);this.dispatchEvent(new nt(b,c))&&this.H(l)}else this.H(l)};q.bea=function(a){this.t2=a};
q.o=function(){lt.f.o.call(this);if(this.Dn){this.Dn.l();this.Dn=k}if(this.Ad){Z(this.Ad);this.Ad=k}if(this.rd){Z(this.rd);this.rd=k}this.rga=this.Je=this.cs=k};q.Bv=function(a){this.Hi=a;if(this.Je)if(this.Hi)this.Hi.tL(this.Je);else this.Je.innerHTML=""};q.pf=function(){return this.Hi};q.Paa=function(a){var b=this.psa(a.target);if(b&&!b.disabled){var c=b.name,d=this.pf().z(c);this.dispatchEvent(new nt(c,d))&&this.H(l)}};
q.psa=function(a){for(var b=a;b!=k&&b!=this.Je;){if(b.tagName=="BUTTON")return b;b=b.parentNode}return k};
q.DH=function(a){var b=l,c=l,d=this.pf(),f=a.target;if(a.keyCode==27){var g=d&&d.i4(),h=f.tagName=="SELECT"&&!f.disabled;if(g&&!h){c=j;var i=d.z(g);b=this.dispatchEvent(new nt(g,i))}else h||(b=j)}else if(a.keyCode==13){var m;if(f.tagName=="BUTTON")m=f.name;else if(d){var n=d.In(),o=n&&d.Yg(n);h=(f.tagName=="TEXTAREA"||f.tagName=="SELECT")&&!f.disabled;if(o&&!o.disabled&&!h)m=n}if(m){c=j;b=this.dispatchEvent(new nt(m,String(d.z(m))))}}else if(a.keyCode==9&&a.shiftKey&&f==this.e())c=j;if(b||c){a.stopPropagation();
a.preventDefault()}b&&this.H(l)};q.aba=function(){this.ST()};q.lHa=function(a){this.rga==a.target&&bj(this.Esa,0,this)};q.Esa=function(){F&&this.M().J().body.focus();this.e().focus()};var nt=function(a,b){this.type="dialogselect";this.ia=a;this.caption=b};A(nt,ni);var mt=function(a){this.O=a||cm();Bc.call(this)},kt,ot;A(mt,Bc);q=mt.prototype;q.we="goog-buttonset";q.XD=k;q.B=k;q.ve=k;q.G=function(a,b,c,d){Bc.prototype.G.call(this,a,b);if(c)this.XD=a;if(d)this.ve=a;return this};
q.tL=function(a){this.B=a;this.Z()};q.Z=function(){if(this.B){this.B.innerHTML="";var a=cm(this.B);yc(this,function(b,c){var d=a.h("button",{name:c},b);if(c==this.XD)d.className=this.we+"-default";this.B.appendChild(d)},this)}};q.Sa=function(a){if(!(!a||a.nodeType!=1)){this.B=a;for(var b=this.B.getElementsByTagName("button"),c=0,d,f,g;d=b[c];c++){f=d.name||d.id;g=Sm(d)||d.value;if(f){var h=c==0,i=d.name=="cancel";this.G(f,g,h,i);h&&W.add(d,this.we+"-default")}}}};q.BI=function(a){this.XD=a};
q.In=function(){return this.XD};q.i4=function(){return this.ve};q.Yg=function(a){for(var b=this.wta(),c=0,d;d=b[c];c++)if(d.name==a||d.id==a)return d;return k};q.wta=function(){return this.B.getElementsByTagName("BUTTON")};ot=(new mt).G("ok","OK",j,j);kt=(new mt).G("ok","OK",j).G("cancel","Cancelar",l,j);(new mt).G("yes","Sim",j).G("no","N\u00e3o",l,j);(new mt).G("yes","Sim").G("no","N\u00e3o",j).G("cancel","Cancelar",l,j);
(new mt).G("continue","Continuar").G("save","Salvar").G("cancel","Cancelar",j,j);var pt=function(){this.NL=[]};A(pt,xr);fa(pt);q=pt.prototype;q.It=function(a){var b=this.NL[a];if(!b){switch(a){case 0:b=this.Aq()+"-highlight";break;case 1:b=this.Aq()+"-checkbox";break;case 2:b=this.Aq()+"-content";break}this.NL[a]=b}return b};q.Kh=function(){return"menuitem"};q.h=function(a){var b=a.M().h("div",this.jg(a).join(" "),this.a1(a.getContent(),a.M()));this.AU(a,b,a.vg(8)||a.vg(16));return b};q.Ea=function(a){return a&&a.firstChild};
q.Sa=function(a,b){this.tBa(b)||b.appendChild(this.a1(b.childNodes,a.M()));if(W.hj(b,"goog-option")){a.aB(j);this.aB(a,b,j)}return pt.f.Sa.call(this,a,b)};q.xd=function(a,b){var c=this.Ea(a),d=this.GQ(a)?c.firstChild:k;pt.f.xd.call(this,a,b);if(d&&!this.GQ(a))c.insertBefore(d,c.firstChild||k)};q.tBa=function(a){var b=Bm(a),c=this.It(2);return!!b&&b.className.indexOf(c)!=-1};q.a1=function(a,b){var c=this.It(2);return b.h("div",c,a)};
q.OU=function(a,b,c){if(b){yq(b,c?"menuitemradio":this.Kh());this.AU(a,b,c)}};q.aB=function(a,b,c){if(b){yq(b,c?"menuitemcheckbox":this.Kh());this.AU(a,b,c)}};q.GQ=function(a){var b=this.Ea(a);if(b){var c=b.firstChild,d=this.It(1);return!!c&&!!c.className&&c.className.indexOf(d)!=-1}return l};q.AU=function(a,b,c){if(c!=this.GQ(b)){W.sc(b,"goog-option",c);var d=this.Ea(b);if(c){var f=this.It(1);d.insertBefore(a.M().h("div",f),d.firstChild||k)}else d.removeChild(d.firstChild)}};
q.ay=function(a){switch(a){case 2:return this.It(0);case 16:case 8:return"goog-option-selected";default:return pt.f.ay.call(this,a)}};q.MP=function(a){var b=this.It(0);switch(a){case "goog-option-selected":return 16;case b:return 2;default:return pt.f.MP.call(this,a)}};q.X=function(){return"goog-menuitem"};var qt=function(a,b,c,d){Lr.call(this,a,d||pt.cb(),c);this.Qa(b)};A(qt,Lr);qt.prototype.ca=function(){var a=this.bu();return a!=k?a:this.fq()};qt.prototype.Qa=function(a){this.$Na(a)};qt.prototype.OU=function(a){this.yf(8,a);this.uz()&&!a&&this.Cg(l);var b=this.e();b&&this.Ja.OU(this,b,a)};qt.prototype.aB=function(a){this.yf(16,a);var b=this.e();b&&this.Ja.aB(this,b,a)};Kr("goog-menuitem",function(){return new qt(k)});var rt=function(){};rt.prototype.gb=function(){};var st=function(a,b){this.xa=a;this.Cp=b};A(st,rt);st.prototype.gb=function(a,b,c){dt(this.xa,this.Cp,a,b,undefined,c)};var tt=function(a,b,c){st.call(this,a,b);this.ola=c};A(tt,st);tt.prototype.gb=function(a,b,c,d){var f=dt(this.xa,this.Cp,a,b,k,c,10,d);if(f&496){var g=this.Cp,h=b;if(f&48){g^=2;h^=2}if(f&192){g^=1;h^=1}f=dt(this.xa,g,a,h,k,c,10,d);if(f&496)this.ola?dt(this.xa,this.Cp,a,b,k,c,5,d):dt(this.xa,this.Cp,a,b,k,c,0,d)}};var ut=function(a,b){this.ln=a instanceof yh?a:new yh(a,b)};A(ut,rt);ut.prototype.gb=function(a,b,c,d){var f=Oq(a),g=new yh(this.ln.x+f.scrollLeft,this.ln.y+f.scrollTop);dt(f,0,a,b,g,c,k,d)};var vt=function(a,b){ut.call(this,a,b)};A(vt,ut);vt.prototype.gb=function(a,b,c,d){var f=Oq(a),g=Tq(f),h=cm(a).O4(),i=new yh(this.ln.x+h.scrollLeft,this.ln.y+h.scrollTop),m=10,n=b,o=ct(i,a,n,c,g,m,d);if((o&496)!=0){if(o&16||o&32)n^=2;if(o&64||o&128)n^=1;o=ct(i,a,n,c,g,m,d);(o&496)!=0&&ct(i,a,b,c,g,undefined,d)}};var wt=function(){};A(wt,xr);fa(wt);wt.prototype.h=function(a){return a.M().h("div",this.X())};wt.prototype.Sa=function(a,b){if(b.tagName=="HR"){var c=b;b=this.h(a);wm(b,c);Z(c)}else W.add(b,this.X());return b};wt.prototype.xd=function(){};wt.prototype.X=function(){return"goog-menuseparator"};var xt=function(a,b){Lr.call(this,k,a||wt.cb(),b);this.yf(1,l);this.yf(2,l);this.yf(4,l);this.yf(32,l);this.Oea(1)};A(xt,Lr);xt.prototype.Da=function(){xt.f.Da.call(this);yq(this.e(),"separator")};Kr("goog-menuseparator",function(){return new xt});var yt=function(){};fa(yt);var zt=function(a,b){var c=new a;c.X=function(){return b};return c};q=yt.prototype;q.Kh=function(){};q.GBa=function(a){if(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return la(c)&&c>=0}}return l};q.lN=function(a,b){if(a)a.tabIndex=b?0:-1};q.h=function(a){return a.M().h("div",this.jg(a).join(" "))};q.Ea=function(a){return a};q.ue=function(a){return a.tagName=="DIV"};
q.Sa=function(a,b){b.id&&a.oi(b.id);var c=this.X(),d=l,f=W.z(b);f&&vb(f,function(g){if(g==c)d=j;else g&&this.PU(a,g,c)},this);d||W.add(b,c);this.uqa(a,b);return b};q.PU=function(a,b,c){if(b==c+"-disabled")a.ba(l);else if(b==c+"-horizontal")a.OI("horizontal");else b==c+"-vertical"&&a.OI("vertical")};
q.uqa=function(a,b){if(b)for(var c=b.firstChild,d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==1){var f=this.ey(c);if(f){f.Ud(c);a.da()||f.ba(l);a.Wb(f);f.Sa(c)}}else if(!c.nodeValue||Ha(c.nodeValue)=="")b.removeChild(c);c=d}};q.ey=function(a){var b;a:{for(var c,d=W.z(a),f=0,g=d.length;f<g;f++)if(c=d[f]in Jr?Jr[d[f]]():k){b=c;break a}b=k}return b};q.sg=function(a){var b=a.e();fr(b,j,H);if(F)b.hideFocus=j;var c=this.Kh();c&&yq(b,c)};q.ge=function(a){return a.e()};q.X=function(){return"goog-container"};
q.jg=function(a){var b=this.X(),c=a.sP()=="horizontal",d=[b,c?b+"-horizontal":b+"-vertical"];a.da()||d.push(b+"-disabled");return d};q.H4=function(){return"vertical"};var At=function(a,b,c){vr.call(this,c);this.Ja=b||yt.cb();this.vd=a||this.Ja.H4()};A(At,vr);q=At.prototype;q.OG=k;q.lc=k;q.Ja=k;q.vd=k;q.yd=j;q.La=j;q.bq=j;q.td=-1;q.qe=k;q.IS=l;q.xla=l;q.hn=k;q.ge=function(){return this.OG||this.Ja.ge(this)};q.iF=function(){return this.lc||(this.lc=new Br(this.ge()))};q.Pd=function(){return this.Ja};q.MU=function(a){if(this.e())e(Error("Component already rendered"));this.Ja=a};q.h=function(){this.Ud(this.Ja.h(this))};q.Ea=function(){return this.Ja.Ea(this.e())};
q.ue=function(a){return this.Ja.ue(a)};q.Pc=function(a){this.Ud(this.Ja.Sa(this,a));if(a.style.display=="none")this.yd=l};
q.Da=function(){At.f.Da.call(this);this.Ae(function(b){b.Nb()&&this.jca(b)},this);var a=this.e();this.Ja.sg(this);this.H(this.yd,j);this.Ha().g(this,"enter",this.mQ).g(this,"highlight",this.qQ).g(this,"unhighlight",this.FQ).g(this,"open",this.JAa).g(this,"close",this.Rza).g(a,"mousedown",this.dm).g(bm(a),"mouseup",this.cAa).g(a,["mousedown","mouseup","mouseover","mouseout"],this.Oza);this.xk()&&this.W2(j)};
q.W2=function(a){var b=this.Ha(),c=this.ge();a?b.g(c,"focus",this.eo).g(c,"blur",this.Vh).g(this.iF(),"key",this.Qd):b.Hb(c,"focus",this.eo).Hb(c,"blur",this.Vh).Hb(this.iF(),"key",this.Qd)};q.Ic=function(){this.xf(-1);this.qe&&this.qe.Xc(l);this.IS=l;At.f.Ic.call(this)};q.o=function(){At.f.o.call(this);if(this.lc){this.lc.l();this.lc=k}this.Ja=this.qe=this.hn=k};q.mQ=function(){return j};
q.qQ=function(a){var b=this.Eu(a.target);if(b>-1&&b!=this.td){var c=this.Sl();c&&c.Eg(l);this.td=b;c=this.Sl();this.FDa()&&c.setActive(j);if(this.qe&&c!=this.qe)c.vg(64)?c.Xc(j):this.qe.Xc(l)}zq(this.e(),"activedescendant",a.target.e().id)};q.FQ=function(a){if(a.target==this.Sl())this.td=-1;zq(this.e(),"activedescendant","")};q.JAa=function(a){var b=a.target;if(b&&b!=this.qe&&b.db()==this){this.qe&&this.qe.Xc(l);this.qe=b}};q.Rza=function(a){if(a.target==this.qe)this.qe=k};
q.dm=function(a){this.La&&this.Go(j);var b=this.ge();this.Ja.GBa(b)?b.focus():a.preventDefault()};q.cAa=function(){this.Go(l)};q.Oza=function(a){var b=this.Zwa(a.target);if(b)switch(a.type){case "mousedown":b.dm(a);break;case "mouseup":b.Iq(a);break;case "mouseover":b.pg(a);break;case "mouseout":b.Hq(a);break}};q.Zwa=function(a){if(this.hn)for(var b=this.e();a&&a.parentNode&&a!=b;){var c=a.id;if(c in this.hn)return this.hn[c];a=a.parentNode}return k};q.eo=function(){};
q.Vh=function(){this.xf(-1);this.Go(l);this.qe&&this.qe.Xc(l)};q.Qd=function(a){if(this.da()&&this.Zg()!=0&&this.bm(a)){a.preventDefault();a.stopPropagation();return j}return l};
q.bm=function(a){var b=this.Sl();if(b&&typeof b.Qd=="function"&&b.Qd(a))return j;if(this.qe&&this.qe!=b&&typeof this.qe.Qd=="function"&&this.qe.Qd(a))return j;switch(a.keyCode){case 27:if(this.xk())this.ge().blur();else return l;break;case 36:this.PQ();break;case 35:this.VBa();break;case 38:if(this.vd=="vertical")this.RQ();else return l;break;case 37:if(this.vd=="horizontal")this.Td()?this.QQ():this.RQ();else return l;break;case 40:if(this.vd=="vertical")this.QQ();else return l;break;case 39:if(this.vd==
"horizontal")this.Td()?this.RQ():this.QQ();else return l;break;default:return l}return j};q.jca=function(a){var b=a.e(),c=b.id||(b.id=a.p());if(!this.hn)this.hn={};this.hn[c]=a};q.Wb=function(a,b){At.f.Wb.call(this,a,b)};q.op=function(a,b,c){a.xU(2,j);a.xU(64,j);if(this.xk()||!this.vDa())a.yf(32,l);a.EU(l);At.f.op.call(this,a,b,c);c&&this.Nb()&&this.jca(a);b<=this.td&&this.td++};
q.removeChild=function(a,b){var c=this.Eu(a);if(c!=-1)if(c==this.td)a.Eg(l);else c<this.td&&this.td--;var d=a.e();d&&d.id&&jc(this.hn,d.id);a=At.f.removeChild.call(this,a,b);a.EU(j);return a};q.sP=function(){return this.vd};q.OI=function(a){if(this.e())e(Error("Component already rendered"));this.vd=a};q.ga=function(){return this.yd};
q.H=function(a,b){if(b||this.yd!=a&&this.dispatchEvent(a?"show":"hide")){this.yd=a;var c=this.e();if(c){$(c,a);this.xk()&&this.Ja.lN(this.ge(),this.La&&this.yd);this.yd&&!b&&this.dispatchEvent("aftershow")}return j}return l};q.da=function(){return this.La};
q.ba=function(a){if(this.La!=a&&this.dispatchEvent(a?"enable":"disable")){if(a){this.La=j;this.Ae(function(b){if(b.Aha)delete b.Aha;else b.ba(j)})}else{this.Ae(function(b){if(b.da())b.ba(l);else b.Aha=j});this.La=l;this.Go(l)}this.xk()&&this.Ja.lN(this.ge(),a&&this.yd)}};q.xk=function(){return this.bq};q.Dg=function(a){a!=this.bq&&this.Nb()&&this.W2(a);this.bq=a;this.La&&this.yd&&this.Ja.lN(this.ge(),a)};q.vDa=function(){return this.xla};q.TO=function(){return this.td};
q.xf=function(a){var b=this.Od(a);if(b)b.Eg(j);else this.td>-1&&this.Sl().Eg(l)};q.Eg=function(a){this.xf(this.Eu(a))};q.Sl=function(){return this.Od(this.td)};q.PQ=function(){this.fG(function(a,b){return(a+1)%b},this.Zg()-1)};q.VBa=function(){this.fG(function(a,b){a--;return a<0?b-1:a},0)};q.QQ=function(){this.fG(function(a,b){return(a+1)%b},this.td)};q.RQ=function(){this.fG(function(a,b){a--;return a<0?b-1:a},this.td)};
q.fG=function(a,b){var c=b<0?this.Eu(this.qe):b,d=this.Zg();c=a(c,d);for(var f=0;f<=d;){var g=this.Od(c);if(g&&this.P_(g)){this.GU(c);return j}f++;c=a(c,d)}return l};q.P_=function(a){return a.ga()&&a.da()&&a.vg(2)};q.GU=function(a){this.xf(a)};q.FDa=function(){return this.IS};q.Go=function(a){this.IS=a};var Bt=function(){};A(Bt,yt);fa(Bt);q=Bt.prototype;q.Kh=function(){return"menu"};q.ue=function(a){return a.tagName=="UL"||Bt.f.ue.call(this,a)};q.ey=function(a){return a.tagName=="HR"?new xt:Bt.f.ey.call(this,a)};q.Rj=function(a,b){return Cm(a.e(),b)};q.X=function(){return"goog-menu"};q.sg=function(a){Bt.f.sg.call(this,a);var b=a.e();zq(b,"haspopup","true")};var Ct=function(a){xt.call(this,wt.cb(),a)};A(Ct,xt);Kr("goog-menuseparator",function(){return new xt});var Dt=function(a,b){At.call(this,"vertical",b||Bt.cb(),a);this.Dg(l)};A(Dt,At);q=Dt.prototype;q.rp=j;q.yla=l;q.X=function(){return this.Pd().X()};q.Rj=function(a){if(this.Pd().Rj(this,a))return j;for(var b=0,c=this.Zg();b<c;b++){var d=this.Od(b);if(typeof d.Rj=="function"&&d.Rj(a))return j}return l};q.$a=function(a){this.Wb(a,j)};q.an=function(a,b){this.op(a,b,j)};q.xo=function(a){var b=this.removeChild(a,j);b&&b.l()};q.Hr=function(a){var b=this.JA(a,j);b&&b.l()};q.Rn=function(a){return this.Od(a)};
q.Sn=function(){return this.Zg()};q.hF=function(){return this.cd||[]};q.setPosition=function(a,b){var c=this.ga();c||$(this.e(),j);Wq(this.e(),a,b);c||$(this.e(),l)};q.Bo=function(a){(this.rp=a)&&this.Dg(j)};q.H=function(a,b){var c=Dt.f.H.call(this,a,b);c&&a&&this.Nb()&&this.rp&&this.ge().focus();return c};q.mQ=function(a){this.rp&&this.ge().focus();return Dt.f.mQ.call(this,a)};q.P_=function(a){return(this.yla||a.da())&&a.ga()&&a.vg(2)};var Et=function(a,b){this.V=new Aq(this);this.EI(a||k);b&&this.pi(b)};A(Et,Yi);q=Et.prototype;q.B=k;q.l_=j;q.k_=k;q.Vq=l;q.BPa=l;q.p$=-1;q.k$=-1;q.l8=l;q.rra=j;q.ad="toggle_display";q.ka=function(){return this.ad};q.pi=function(a){this.ad=a};q.e=function(){return this.B};q.EI=function(a){this.rN();this.B=a};q.Nda=function(a){this.rN();this.l_=a};q.gea=function(a){this.rN();this.l8=a};q.rN=function(){if(this.Vq)e(Error("Can not change this state of the popup while showing."))};q.ga=function(){return this.Vq};
q.H=function(a){a?this.tB():this.xu()};q.gb=da;
q.tB=function(){if(!this.Vq)if(this.VS()){if(!this.B)e(Error("Caller must call setElement before trying to show the popup"));this.gb();var a=bm(this.B);this.l8&&this.V.g(a,"keydown",this.cHa,j);if(this.l_){this.V.g(a,"mousedown",this.Uaa,j);if(F){for(var b=a.activeElement;b&&b.nodeName=="IFRAME";){try{var c=Hm(b)}catch(d){break}a=c;b=a.activeElement}this.V.g(a,"mousedown",this.Uaa,j);this.V.g(a,"deactivate",this.Saa)}else this.V.g(a,"blur",this.Saa)}if(this.ad=="toggle_display")this.WPa();else this.ad==
"move_offscreen"&&this.gb();this.Vq=j;this.oA()}};q.xu=function(a){if(!this.Vq||!this.LGa(a))return l;this.V&&this.V.fb();if(this.ad=="toggle_display")this.BPa?bj(this.n8,0,this):this.n8();else this.ad=="move_offscreen"&&this.eGa();this.Vq=l;this.sm(a);return j};q.WPa=function(){this.B.style.visibility="visible";$(this.B,j)};q.n8=function(){this.B.style.visibility="hidden";$(this.B,l)};q.eGa=function(){this.B.style.left="-200px";this.B.style.top="-200px"};q.VS=function(){return this.dispatchEvent("beforeshow")};
q.oA=function(){this.p$=ua();this.k$=-1;this.dispatchEvent("show")};q.LGa=function(a){return this.dispatchEvent({type:"beforehide",target:a})};q.sm=function(a){this.k$=ua();this.dispatchEvent({type:"hide",target:a})};q.Uaa=function(a){var b=a.target;if(!Cm(this.B,b)&&(!this.k_||Cm(this.k_,b))&&!this.ifa())this.xu(b)};q.cHa=function(a){if(a.keyCode==27)if(this.xu(a.target)){a.preventDefault();a.stopPropagation()}};
q.Saa=function(a){if(this.rra){var b=bm(this.B);if(F||ve){var c=b.activeElement;if(c&&Cm(this.B,c))return}else if(a.target!=b)return;this.ifa()||this.xu()}};q.ifa=function(){return ua()-this.p$<150};q.o=function(){Et.f.o.call(this);this.V.l();delete this.B;delete this.V};var Ft=function(a){Dt.call(this,a);this.Bo(j);this.H(l,j);this.Sk=new Bc};A(Ft,Dt);q=Ft.prototype;q.xRa=l;q.l$=0;q.Hp=k;q.Pc=function(a){Ft.f.Pc.call(this,a);var b=a.getAttribute("for")||a.htmlFor;b&&this.attach(this.M().e(b),1)};q.Da=function(){Ft.f.Da.call(this);yc(this.Sk,this.g_,this);var a=this.Ha();a.g(this,"action",this.TS);a.g(this.M().J(),"mousedown",this.Raa,j);we&&a.g(this.M().J(),"contextmenu",this.Raa,j)};
q.attach=function(a,b,c,d,f){if(!this.g9(a)){var g=this.Hoa(a,b,c,d,f);this.Nb()&&this.g_(g)}};q.Hoa=function(a,b,c,d,f){if(!a)return k;var g={B:a,HV:b,CS:c,wN:d?"contextmenu":"mousedown",Vz:f};this.Sk.G(qa(a),g);return g};q.g9=function(a){return a?this.Sk.de(qa(a)):l};q.g_=function(a){this.Ha().g(a.B,a.wN,this.bba)};q.detach=function(a){if(!this.g9(a))e(Error("Menu not attached to provided element, unable to detach."));var b=qa(a);this.Nb()&&this.Hqa(this.Sk.z(b));this.Sk.remove(b)};
q.Hqa=function(a){this.Ha().Hb(a.B,a.wN,this.bba)};q.jJ=function(a,b,c){var d=this.ga();if((d||this.JSa())&&this.xRa)this.Nc();else if(this.dispatchEvent("beforeshow")){var f=r(a.HV)?new tt(a.B,a.HV):new vt(b,c),g=r(a.CS)?a.CS:4;if(!d)this.e().style.visibility="hidden";$(this.e(),j);f.gb(this.e(),g,a.Vz);if(!d)this.e().style.visibility="visible";this.Hp=a.B;this.xf(-1);this.H(j)}};q.EPa=function(a,b,c){this.jJ({CS:c},a,b)};q.Nc=function(){this.H(l);if(!this.ga()){this.l$=ua();this.Hp=k}};
q.JSa=function(){return ua()-this.l$<150};q.TS=function(){this.Nc()};q.bba=function(a){for(var b=this.Sk.Bb(),c=0;c<b.length;c++){var d=this.Sk.z(b[c]);if(d.B==a.currentTarget){this.jJ(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();return}}};q.Raa=function(a){this.ga()&&!this.Rj(a.target)&&this.Nc()};q.Vh=function(a){Ft.f.Vh.call(this,a);this.Nc()};q.o=function(){Ft.f.o.call(this);if(this.Sk){this.Sk.clear();delete this.Sk}};var Gt=function(a){this.B=a;var b=F?"propertychange":we&&a.tagName=="TEXTAREA"&&!Ne("531")?"keypress":"input";this.dH=U(this.B,b,this)};A(Gt,Yi);Gt.prototype.handleEvent=function(a){var b=a.Xg();if(b.type=="propertychange"&&b.propertyName=="value"||b.type=="input"||b.type=="keypress"){if(F||ve){var c=b.srcElement;if(c!=bm(c).activeElement)return}var d=new oi(b);d.type="input";try{this.dispatchEvent(d)}finally{d.l()}}};Gt.prototype.o=function(){Gt.f.o.call(this);Oi(this.dH);delete this.B};var Ht=function(a,b){vr.call(this,b);this.wg=a||""};A(Ht,vr);q=Ht.prototype;q.ak=k;q.h=function(){this.Ud(this.M().h("input",{type:"text"}))};q.Pc=function(a){Ht.f.Pc.call(this,a);if(!this.wg)this.wg=a.getAttribute("label")||""};q.Da=function(){Ht.f.Da.call(this);this.sL();this.wp();this.e().hh=this};q.Ic=function(){Ht.f.Ic.call(this);this.aE();this.e().hh=k};
q.sL=function(){var a=new Aq(this);a.g(this.e(),"focus",this.pQ);a.g(this.e(),"blur",this.Yy);H&&a.g(this.e(),["keypress","keydown","keyup"],this.lAa);var b=bm(this.e()),c=nm(b);a.g(c,"load",this.hBa);this.j=a;this.h_()};q.h_=function(){if(!this.Ksa&&this.j&&this.e().form){this.j.g(this.e().form,"submit",this.qAa);this.Ksa=j}};q.aE=function(){if(this.j){this.j.l();this.j=k}};q.o=function(){Ht.f.o.call(this);this.aE()};q.BK="label-input-label";
q.pQ=function(){this.HQ=j;W.remove(this.e(),this.BK);if(!this.su()&&!this.mCa){var a=this,b=function(){a.e().value=""};F?bj(b,10):b()}};q.Yy=function(){this.ak=k;this.HQ=l;this.wp()};q.lAa=function(a){if(a.keyCode==27){if(a.type=="keydown")this.ak=this.e().value;else if(a.type=="keypress")this.e().value=this.ak;else if(a.type=="keyup")this.ak=k;a.preventDefault()}};q.qAa=function(){if(!this.su()){this.e().value="";bj(this.Cza,10,this)}};q.Cza=function(){if(!this.su())this.e().value=this.wg};
q.hBa=function(){this.wp()};q.su=function(){return this.e().value!=""&&this.e().value!=this.wg};q.clear=function(){this.e().value="";if(this.ak!=k)this.ak=""};q.Qa=function(a){if(this.ak!=k)this.ak=a;this.e().value=a;this.wp()};q.ca=function(){if(this.ak!=k)return this.ak;return this.su()?this.e().value:""};q.wp=function(){this.h_();if(this.su())W.remove(this.e(),this.BK);else{!this.mCa&&!this.HQ&&W.add(this.e(),this.BK);bj(this.kLa,10,this)}};
q.kLa=function(){if(this.e()&&!this.su()&&!this.HQ)this.e().value=this.wg};var It=function(){};A(It,Ar);fa(It);q=It.prototype;q.h=function(a){var b=this.jg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.og()||""};return a.M().h("div",c,a.getContent())};q.ue=function(a){return a.tagName=="DIV"};q.Sa=function(a,b){W.add(b,"goog-inline-block");return It.f.Sa.call(this,a,b)};q.ca=function(){return k};q.X=function(){return"goog-flat-button"};Kr("goog-flat-button",function(){return new Qr(k,It.cb())});var Jt=function(a,b,c,d){tt.call(this,a,b,c);this.dLa=d};A(Jt,tt);Jt.prototype.gb=function(a,b,c,d){this.dLa?dt(this.xa,this.Cp,a,b,k,c,33,d):Jt.f.gb.call(this,a,b,c,d)};var Kt=function(){};A(Kt,Rr);fa(Kt);if(H)Kt.prototype.xd=function(a,b){var c=Kt.f.Ea.call(this,a&&a.firstChild);c&&ym(this.createCaption(b,cm(a)),c)};Kt.prototype.Ea=function(a){var b=Kt.f.Ea.call(this,a&&a.firstChild);if(H&&b&&b.__goog_wrapper_div)b=b.firstChild;return b};Kt.prototype.Sa=function(a,b){var c=fm("*","goog-menu",b)[0];if(c){$(c,l);bm(c).body.appendChild(c);var d=new Dt;d.Sa(c);a.Jk(d)}return Kt.f.Sa.call(this,a,b)};
Kt.prototype.Ts=function(a,b){return Kt.f.Ts.call(this,[this.createCaption(a,b),this.ID(b)],b)};Kt.prototype.createCaption=function(a,b){return Lt(a,this.X(),b)};var Lt=function(a,b,c){return c.h("div","goog-inline-block "+(b+"-caption"),a)};Kt.prototype.ID=function(a){return a.h("div","goog-inline-block "+(this.X()+"-dropdown"),"\u00a0")};Kt.prototype.X=function(){return"goog-menu-button"};var Mt=function(a,b,c,d){Qr.call(this,a,c||Kt.cb(),d);this.yf(64,j);b&&this.Jk(b);this.Hd=new $i(500)};A(Mt,Qr);q=Mt.prototype;q.kL=j;q.hU=l;q.wDa=l;q.Da=function(){Mt.f.Da.call(this);this.W&&this.eD(this.W,j);zq(this.e(),"haspopup","true")};q.Ic=function(){Mt.f.Ic.call(this);if(this.W){this.Xc(l);this.W.Ic();this.eD(this.W,l);var a=this.W.e();a&&Z(a)}};q.o=function(){Mt.f.o.call(this);if(this.W){this.W.l();delete this.W}this.Hd.l()};
q.dm=function(a){Mt.f.dm.call(this,a);if(this.me()){this.Xc(!this.isOpen());this.W&&this.W.Go(this.isOpen())}};q.Iq=function(a){Mt.f.Iq.call(this,a);this.W&&!this.me()&&this.W.Go(l)};q.ki=function(){this.setActive(l);return j};q.lQ=function(a){this.W&&this.W.ga()&&!this.Rj(a.target)&&this.Xc(l)};q.Rj=function(a){return a&&Cm(this.e(),a)||this.W&&this.W.Rj(a)||l};
q.bm=function(a){var b=a.keyCode==32?"keyup":"key";if(a.type!=b)return l;if(this.W&&this.W.ga()){var c=this.W.Qd(a);if(a.keyCode==27){this.Xc(l);return j}return c}if(a.keyCode==40||a.keyCode==38||a.keyCode==32){this.Xc(j);return j}return l};q.Gq=function(){this.Xc(l)};q.BAa=function(){this.me()||this.Xc(l)};q.Vh=function(a){this.vR()||this.Xc(l);Mt.f.Vh.call(this,a)};q.lb=function(){this.W||this.Jk(new Dt(this.M()));return this.W||k};
q.Jk=function(a){var b=this.W;if(a!=b){if(b){this.Xc(l);this.Nb()&&this.eD(b,l);delete this.W}if(a){this.W=a;a.fB(this);a.H(l);a.Bo(this.vR());this.Nb()&&this.eD(a,j)}}return b};q.$a=function(a){this.lb().Wb(a,j)};q.an=function(a,b){this.lb().op(a,b,j)};q.xo=function(a){var b=this.lb().removeChild(a,j);b&&b.l()};q.Hr=function(a){var b=this.lb().JA(a,j);b&&b.l()};q.Rn=function(a){return this.W?this.W.Od(a):k};q.Sn=function(){return this.W?this.W.Zg():0};
q.H=function(a,b){var c=Mt.f.H.call(this,a,b);c&&!this.ga()&&this.Xc(l);return c};q.ba=function(a){Mt.f.ba.call(this,a);this.da()||this.Xc(l)};q.f9=function(){return this.kL};q.vR=function(){return this.wDa};q.jJ=function(){this.Xc(j)};
q.Xc=function(a){Mt.f.Xc.call(this,a);if(this.W&&this.jj(64)==a){if(a){this.W.Nb()||this.W.Z();this.wha=Tq(this.e());this.D_=Zq(this.e());this.qT();this.W.xf(-1)}else{this.setActive(l);this.W.Go(l);if(ia(this.IH)){this.IH=undefined;var b=this.W.e();b&&Xq(b,"","")}}this.W.H(a);this.ama(a)}};
q.qT=function(){var a=this.f9()?5:7,b=new Jt(this.e(),a,!this.hU,this.hU),c=this.W.e();if(!this.W.ga()){c.style.visibility="hidden";$(c,j)}if(!this.IH&&this.hU)this.IH=Yq(c);var d=this.f9()?4:6;b.gb(c,d,k,this.IH);if(!this.W.ga()){$(c,l);c.style.visibility="visible"}};q.ZHa=function(){var a=Zq(this.e()),b=Tq(this.e()),c;var d=this.D_;c=d==a?j:!d||!a?l:d.left==a.left&&d.width==a.width&&d.top==a.top&&d.height==a.height;if(!c||!Bh(this.wha,b)){this.D_=a;this.wha=b;this.qT()}};
q.eD=function(a,b){var c=this.Ha(),d=b?c.g:c.Hb;d.call(c,a,"action",this.Gq);d.call(c,a,"highlight",this.qQ);d.call(c,a,"unhighlight",this.FQ)};q.qQ=function(a){zq(this.e(),"activedescendant",a.target.e().id)};q.FQ=function(){this.W.Sl()||zq(this.e(),"activedescendant","")};q.ama=function(a){var b=this.Ha(),c=a?b.g:b.Hb;c.call(b,this.M().J(),"mousedown",this.lQ,j);this.vR()&&c.call(b,this.W,"blur",this.BAa);c.call(b,this.Hd,"tick",this.ZHa);a?this.Hd.start():this.Hd.stop()};
Kr("goog-menu-button",function(){return new Mt(k)});var Nt=function(){};A(Nt,It);fa(Nt);q=Nt.prototype;q.h=function(a){var b=this.jg(a),c={"class":"goog-inline-block "+b.join(" "),title:a.og()||""};return a.M().h("div",c,[this.createCaption(a.getContent(),a.M()),this.ID(a.M())])};q.Ea=function(a){return a&&a.firstChild};
q.Sa=function(a,b){var c=fm("*","goog-menu",b)[0];if(c){$(c,l);a.M().J().body.appendChild(c);var d=new Dt;d.Sa(c);a.Jk(d)}var f=fm("*",this.X()+"-caption",b)[0];f||b.appendChild(this.createCaption(b.childNodes,a.M()));var g=fm("*",this.X()+"-dropdown",b)[0];g||b.appendChild(this.ID(a.M()));return Nt.f.Sa.call(this,a,b)};q.createCaption=function(a,b){return b.h("div","goog-inline-block "+(this.X()+"-caption"),a)};q.ID=function(a){return a.h("div","goog-inline-block "+(this.X()+"-dropdown"),"\u00a0")};
q.X=function(){return"goog-flat-menu-button"};Kr("goog-flat-menu-button",function(){return new Mt(k,k,Nt.cb())});var Ot=function(a,b,c){qt.call(this,a,b,c);this.OU(j)};A(Ot,qt);Ot.prototype.ki=function(){return this.dispatchEvent("action")};Kr("goog-option",function(){return new Ot(k)});var Rt=function(a,b,c,d,f,g){var h=(d?d+" ":"")+"modal-dialog";lt.call(this,h,j);this.bea(j);C("knol.ui.client.Dialog");this.cf(a);var i=I({b:"div",c:"knol-dialog-content"});i.addElement({b:"div",c:"knol-dialog-message",d:b});this.xd(i.v());g&&this.Bv(g);f&&U(this,"dialogselect",function(m){Pt=j;return f(m)});U(this,"afterhide",function(){Pt=Qt=l})};D(Rt,lt);var Qt=l,Pt=l;
Rt.prototype.H=function(a){if(a&&Qt){var b=C("knol.ui.client.Dialog");b.U("Dialog box already shown")}lt.prototype.H.call(this,a);Qt=a};var St=function(a,b,c,d){var f=I({b:"div"}),g=new mt;g.G("ok","OK",j);Rt.call(this,"Ocorreu um erro",a,f.v(),"knol-dialog knol-dialog-error",d,g)};D(St,Rt);
var Tt=function(){return C("knol.ui.client.ErrorDialog")},Ut=function(a,b,c,d){if(!a){var f=new Ig;f.ab("Estamos com dificuldades t\u00e9cnicas no momento.  Lamentamos o inconveniente e esperamos que voc\u00ea tente novamente mais tarde.<br /><br />");f.ab(ln(dk("knol/Help",j),"Ajuda").v());a=f.toString()}if(Qt){a&&Tt().U("suppressed : "+a);b&&Tt().U("suppressed : "+b);c&&Tt().U("suppressed : "+c)}else(new St(a,b,c,d)).H(j)},Vt=function(a,b){Ut(k,a,b)},Wt=function(a,b,c,d,f,g){var h=new mt;h.G("yes",
d,!!g);h.G("no",f,!g,j);Rt.call(this,a,b,k,"knol-dialog knol-dialog-confirm",c,h)};D(Wt,Rt);
var Xt=function(a,b,c,d,f){var g=new Wt(a,b,c,d||"Sim",f||"N\u00e3o");g.H(j);return g},Yt=function(a,b,c,d,f,g,h){Xt(a,b,function(i){if(c&&i.ia=="yes")c.call(f);else d&&i.ia=="no"&&d.call(f)},g,h)},Zt=function(a,b){var c=I({b:"p",d:"Para ajudar a manter o Knol livre de spams, queremos verificar se \u00e9 realmente voc\u00ea quem est\u00e1 acessando."}),d=I({b:"p",d:"Para continuar no Knol, digite os caracteres que voc\u00ea v\u00ea abaixo."}),f=I({b:"input",id:"knol-captcha-input",name:"guess",size:15,
value:""}),g=I({b:"img",id:"knol-captcha-img",src:$j(P().Gy(),a)}),h=I({b:"div"});h.addElement(c);h.addElement(d);h.addElement(f);h.addElement({b:"br"});h.addElement(g);Wt.call(this,"Antes de continuar...",h.v(),b,"Continuar","Sair",j)};D(Zt,Wt);
var $t=[],au=[],bu=function(a,b){var c=new Zt(a,b);c.H(j);return c},cu=function(a,b,c){if(Qt){$t.push(b);$t.push(c)}else{Qt=j;bu(a,function(d){if(b&&d.ia=="yes"){var f=Y("knol-captcha-input").value,g=V("knol.User.checkCaptchaAnswer",[a,f]);g.k(function(){au=[];for(b.call(k);$t.length>0;){var i=$t.shift();i.call()}})}else if(c&&d.ia=="no"){$t=[];for(c.call(k);au.length>0;){var h=au.shift();h.call()}}})}},du=function(a,b){Rt.call(this,a,b,k,"knol-dialog knol-dialog-success",k,ot)};D(du,Rt);
var eu=function(a,b){(new du(a,b)).H(j)},fu=function(a,b,c){for(var d="A revis\u00e3o foi salva, mas h\u00e1 algumas modifica\u00e7\u00f5es inesperadas que foram feitas enquanto a vers\u00e3o "+(c+" estava sendo salva."),f=An("si57lahl1w25/217"),g="Se voc\u00ea deseja saber como o seu conte\u00fado aparecer\u00e1 depois de uma atualiza\u00e7\u00e3o, "+('<a href="'+b+'" target="_blank">'+("visualize a vers\u00e3o "+(c+(" em uma nova janela"+("</a>"+(". "+('<a href="'+f+'" target="_blank">Saiba mais\n</a>'))))))),
h=I({b:"ul"}),i=0;i<a.length;i++)h.addElement({b:"li",d:a[i]});var m=I({b:"div"});m.addElement({b:"p",d:d});m.addElement(h);m.addElement({b:"p",d:g});var n=m.v(),o=new mt;o.G("ok","OK",j);Rt.call(this,"O conte\u00fado HTML foi modificado de forma inesperada",n,k,"knol-dialog knol-dialog-error",k,o)};D(fu,Rt);
var gu=function(a){var b=E(eq),c=b.Qe()+1,d=new Md(window.location),f=d.lk();f.G("version",c);d.hB(f);d.Fo("");var g=d.toString();(new fu(a,g,c)).H(j)},hu=function(a,b,c){var d=b-a+1,f="Suas altera\u00e7\u00f5es n\u00e3o puderam ser integradas automaticamente com o conte\u00fado de "+(d+" outra(s) vers\u00e3o(\u00f5es) salva(s) por outro autor. <br /><br />Mesmo assim, voc\u00ea poder\u00e1 salvar suas altera\u00e7\u00f5es e optar por suas altera\u00e7\u00f5es ou pela nova vers\u00e3o do knol quando houver conflitos.<br /><br />"),
g=I({b:"a",href:dg().fa()+"#revisions",target:"revisions",d:"Visualizar vers\u00f5es"}),h=f+g.v()+".",i=new mt;i.G("mine","Escolher minhas altera\u00e7\u00f5es",j);i.G("latest","Escolher as altera\u00e7\u00f5es dos outros",l);i.G("cancel","Cancelar",l,j);Rt.call(this,"Edi\u00e7\u00e3o de conflito detectada",h,undefined,"knol-dialog knol-dialog-confirm",c,i)};D(hu,Rt);
var iu=function(a,b,c){(new hu(a,b,c)).H(j)},ju=function(a,b,c,d){if(a){W.add(a,c);var f=I({b:"div",c:d,d:b});a.appendChild(tm(f.v()))}},ku=function(a,b,c){if(a){W.remove(a,b);var d=Mm(a,function(f){return f.className==c});vb(d,function(f){a.removeChild(f)})}},lu=function(a,b){ju(a,b,"knol-inline-notification","knol-inline-notification-message")},mu=function(a){ku(a,"knol-inline-notification","knol-inline-notification-message")},nu=function(a){ju(Y("knol-inline-notifications"),a,"knol-toolbar-inline-notification",
"knol-toolbar-inline-notification-message")},ou=function(){ku(Y("knol-inline-notifications"),"knol-toolbar-inline-notification","knol-toolbar-inline-notification-message")},pu=function(a){lu(Y("knol-inline-statements"),a)},qu=function(){mu(Y("knol-inline-statements"))};var ru=function(a,b){this.Aoa=a;this.M_=b;this.vPa()},su=function(){return C("knol.ui.client.FileUpload")};
ru.prototype.sSa=function(a,b){su();var c=Y("knol-fileupload-input"),d=Y("upload_target"),f=z(function(){var g=Hm(d).body.innerHTML;b&&b.l();if(g){var h=eval("("+g+")");if(h&&h[0]=="ok")window.location=h[1];else{var i=h[1];if(i.indexOf("upload empty")!=-1)new Ut("O upload do arquivo n\u00e3o foi bem-sucedido. O arquivo est\u00e1 vazio ou ausente.",i);else new Ut("O upload do arquivo n\u00e3o foi bem-sucedido. N\u00e3o \u00e9 poss\u00edvel extrair conte\u00fado do arquivo selecionado pois o formato do documento \u00e9 incompat\u00edvel.",i)}}else new Ut("O upload n\u00e3o foi bem-sucedido. Tente novamente mais tarde.")},
this);if(c.value.length>0){a&&a.preventDefault();U(d,"load",f);document.forms["knol-fileupload-form"].submit()}};
ru.prototype.vPa=function(){su();var a=An("si57lahl1w25/6"),b=I({b:"a",href:a,d:"Saiba mais"}),c="Selecione o arquivo do qual importar o conte\u00fado. "+b.v(),d=rm("div");d.appendChild(tm(c));d.appendChild(tm("<br/><br/>"));var f;var g="Os tipos de arquivos aceitos incluem documentos do Microsoft Word (doc), planilhas do Microsoft Excel (xls), documentos PDF (pdf), arquivos de texto (txt) e v\u00e1rios outros.",h=ld(g);f=h?g.replace(wd,"<span dir=rtl>$&</span>"):g.replace(wd,"<span dir=ltr>$&</span>");
d.appendChild(tm(f));var i=rm("div",{id:"knol-ui-upload"});i.appendChild(d);var m=rm("form",{d:d,method:"POST",name:"knol-fileupload-form",id:"knol-fileupload-form",enctype:"multipart/form-data",encoding:"multipart/form-data",target:"upload_target",action:bf()+"knol/system/services/knolUploadFile"}),n=rm("input",{type:"file",id:"knol-fileupload-input",size:"40",name:"file"});m.appendChild(n);var o=rm("input",{type:"hidden",id:"knol-fileupload-insertid",name:"insertId"});m.appendChild(o);var p=rm("input",
{type:"hidden",name:"jot.xtok",value:Xi("jotxtok")});m.appendChild(p);i.appendChild(m);var s=rm("iframe",{id:"upload_target",name:"upload_target",src:"#",style:"width:0;height:0;border:0px solid #fff"});i.appendChild(s);this.Aoa.appendChild(i);var u=Y("knol-fileupload-input");U(u,"change",this.M_);U(u,"keyup",this.M_)};var tu=function(){if(Y("knol-throbber"))e("Throbber already bound to page");var a=I({b:"div",id:"knol-throbber",style:"display: none"});a.addElement({b:"div",id:"knol-throbber-message"});var b=tm(a.v()),c=Y("knol-throbber-c")||document.body;this.LV=c.appendChild(b);this.UFa=this.LV.firstChild;this.NC=0;this.oH=[]};tu.prototype.cha=function(){var a=qb(this.oH)||"";this.UFa.innerHTML=a};tu.prototype.Nfa=function(a){this.NC++;a&&this.oH.push(a);this.cha();this.LV.style.display=""};
tu.prototype.stop=function(a){this.NC&&this.NC--;if(a){var b=ub(this.oH,a);b!=-1&&Gb(this.oH,b)}this.cha();if(!this.NC)this.LV.style.display="none"};var uu=function(a){this.Ub=a};uu.prototype.load=function(a){this.AR||(this.Tb()?a():this.B$(a))};uu.prototype.Q_=function(){return j};uu.prototype.Tb=function(){return l};var vu=/jot_client_localized_client_base(__\w\w)?\.js/,wu=/jot_client_client_base\.js/;uu.prototype.aya=function(){for(var a=document.getElementsByTagName("script"),b=0;b<a.length;b++)if(a[b].src&&(a[b].src.match(wu)||a[b].src.match(vu)))return a[b].src.replace("base",this.Ub);e(new Error("Base script not found"))};
uu.prototype.B$=function(a){if(this.Tb()){this.AR=l;E(tu).stop(void 0);var b=V("knol.User.noop",[]);b.k(a)}else{if(!this.AR){this.AR=j;E(tu).Nfa(void 0);var c=this.aya();window.setTimeout(z(function(){var d=z(function(){var g=pm("script",{type:"text/javascript",src:c}),h=["load","error","readystatechange"];U(g,h,function(i){if((i.type!="readystatechange"||g.readyState=="loaded")&&!this.Tb()){E(tu).stop(void 0);Vt("Failed to load script: "+i.type+" "+g.readyState)}},l,this);document.body.appendChild(g)},
this),f=z(function(){this.Q_()?d():window.setTimeout(f,100)},this);f()},this),0)}window.setTimeout(z(this.B$,this,a),100)}};var xu=function(){this.Ub="edit"};D(xu,uu);xu.prototype.Tb=function(){try{return r(yu)}catch(a){return l}};xu.prototype.Q_=function(){try{eval("document.namespaces");return j}catch(a){return l}};var zu=l,Dj=function(a,b,c,d){var f=zj(),g=new ki;a.add("version",String(af()));var h=a.z("func")||a.z("method"),i=a.z("args");if(h=="knol.User.noop"&&i=="[false]"){g.sa(undefined);return g}var m=Fj(),n=function(v){E(tu).stop(void 0);var x=v.target.mk(),y=x.result,B=x.error_code;if(r(y))g.sa(y);else if(r(B))switch(B){case 3:Ut("Voc\u00ea n\u00e3o est\u00e1 mais conectado ou a sua sess\u00e3o expirou. Atualize a p\u00e1gina e tente novamente.");g.Ma(B);break;case 1:d||Ut("O servi\u00e7o Knol foi atualizado recentemente.  Atualize a p\u00e1gina e tente novamente. Pedimos desculpas pelo transtorno.");
g.Ma(B);break;case 2:Ut("Desculpe. Voc\u00ea atingiu sua cota di\u00e1ria com rela\u00e7\u00e3o \u00e0 a\u00e7\u00e3o que pretende executar. Tente novamente amanh\u00e3.");g.Ma(B);break;case 5:var G=x.captcha_token;cu(G,function(){var X=Dj(a,b,c,d);X.k(g.sa,g);X.w(g.Ma,g)},function(X){g.Ma(X)});break;case 6:Ut("Infelizmente, voc\u00ea ultrapassou o n\u00famero permitido de tentativas CAPTCHA. Tente novamente amanh\u00e3.");g.Ma(B);break;default:var M="Erro desconhecido: "+(B+".  Atualize a p\u00e1gina e tente novamente. Pedimos desculpas pelo transtorno."),
R="rpc: "+h+" upon node: "+a.z("node");Ut(M,R);g.Ma(B);break}else{f.U("Server returned no response");if(a.z("func"))g.Ma("No response received for function call to: "+a.z("func"));else a.z("method")?g.Ma("No response received for server-side method call to: "+a.z("method")+" upon node: "+a.z("node")):g.Ma("No response received for unknown server-side call")}Gj(m,h)},o=function(v){E(tu).stop(void 0);var x=v.target.y5();if(!ef){var y;var B=v.target;if(fm("base").length){var G=B.uy();y=G==1||G==5}else y=
l;if(y)f.U("Security warning, not showing error: "+x);else Ij(v.target)||g.Ma("HTTP error: "+x)}Gj(m,h)},p=bf()+b+(c?"/system/services/CXhrSwitch":"/system/services/XhrSwitch");if(Db(Aj,h)){p=bf()+b+"/system/services/RpcSwitch";a.add("webspace",b)}E(tu).Nfa(void 0);var s={},u;if(u=a.z("func"))s.func=u;if(u=a.z("method"))s.method=u;if(c){if(u=a.z("node"))s.node=u;if(u=a.z("args"))s.args=u;if(u=a.z("version"))s.version=u}s.hl=mg();s.gl=zf();s.country_domain=pg();if(zu)s.debug="1";xj(p,n,o,"POST",a.toString(),
k,s);return g},Bu=function(a,b,c){var d=Xi("jotxtok");if(d)a&&a.call(c);else{var f;f=F?window.location.pathname==cf():l;if(f)Au(a,b,c);else{var g=V("knol.User.noop",[j]);g.k(function(){if(Xi("jotxtok"))a&&a.call(c);else b&&b.call(c)});g.w(b,c)}}},Au=function(a,b,c){var d=document.createElement("iframe");d.style.position="absolute";d.style.top="-5000px";d.style.left="-5000px";d.src=dk("system/knol/pages/Null");document.body.appendChild(d);var f=function(){Oi(g);ba.clearTimeout(h);Z(d);b&&b.call(c)},
g=U(d,"load",function(){var i=d.contentWindow.document.cookie,m=/jotxtok=([^;]+)\s*;?/.exec(i);if(m&&m[1]){var n="jotxtok",o=m[1],p=void 0;if(/[;=]/.test(n))e(Error('Invalid cookie name "'+n+'"'));if(/;/.test(o))e(Error('Invalid cookie value "'+o+'"'));r(p)||(p=-1);var s="",u="",v;if(p<0)v="";else if(p==0){var x=new Date(1970,1,1);v=";expires="+x.toUTCString()}else{var y=new Date((new Date).getTime()+p*1E3);v=";expires="+y.toUTCString()}document.cookie=n+"="+o+s+u+v;Oi(g);ba.clearTimeout(h);Z(d);
a&&a.call(c)}else f()},l),h=ba.setTimeout(f,5E3)};var Cu=function(a,b,c,d,f){this.Qb=ma(a)?a:function(){};this.tt=ma(b)?b:function(){};if(this.K=P()){var g=this;this.Zk=d||[];this.hD=c;var h=z(g.wk,g);if(!f&&!this.Zk.length>0){var i=Ej(this.K.p(),"listUsersSites",[]);i.k(function(m){this.Zk=m;h()},this);i.w(h)}else h()}};D(Cu,Rt);
Cu.prototype.wk=function(){var a=I({b:"div",id:"knol-website-verify-form"}),b=An("si57lahl1w25/259"),c=I({b:"a",target:"_blank",href:b,d:"Saiba mais"}),d="Para criar uma cole\u00e7\u00e3o moderada, solicitamos que voc\u00ea confirme ser propriet\u00e1rio de um site. "+c.v();a.addElement({b:"div",c:"knol-create-suboption",d:d});var f=I({b:"a",target:"_blank",href:"http://www.google.com/webmasters/tools",d:"Ferramentas do Google para webmasters"});if(this.Zk&&this.Zk.length>0){a.Q();Du(a,this.Zk)}else{this.d$=
j;var g="V\u00e1 para "+(f.v()+" para confirmar a propriedade de um website.");a.addElement({b:"div",c:"knol-create-suboption",d:g})}a.la();var h=this.ul(),i="knol-dialog",m=z(this.VA,this),n=a.v();Rt.call(this,"Confirmar propriedade do site",n,k,i,m,h);this.H(j);var o=Y("knol-website-verify-dropdown");o&&U(o,["click","change"],z(this.fha,this));this.fha()};
var Du=function(a,b,c){if(b&&b.length>0){var d=c||"knol-create-suboption",f=I({b:"a",target:"_blank",href:"http://www.google.com/webmasters/tools",d:"Ferramentas do Google para webmasters"}),g="Selecione um dos sites nos quais voc\u00ea j\u00e1 foi confirmado em "+(f.v()+":");a.addElement({b:"div",d:g,c:d});var h=I({b:"select",name:"website-verify",c:d,id:"knol-website-verify-dropdown"});h.addElement(I({b:"option",value:k,d:"Selecione um site..."}));for(var i=0;i<b.length;i++){var m=b[i],n=I({b:"option",
value:m,d:m});h.addElement(n)}a.addElement(h)}};Cu.prototype.VA=function(a){if(a.ia=="ok"){var b=this.pf().Yg("ok");if(b.disabled)a.preventDefault();else if(this.d$)window.location=An("si57lahl1w25/259");else this.Qb(this.wd)}else a.ia=="continue"&&this.hD?this.hD():this.tt()};Cu.prototype.fha=function(){this.wd=k;if(this.d$&&!this.hD)this.zc(j);else{var a=Y("knol-website-verify-dropdown");if(a){var b=a.value;if(b)this.wd=b}this.wd?this.zc(j):this.zc(l)}};
Cu.prototype.ul=function(){var a=new mt;this.ll=a;this.hD&&a.G("continue","<< Voltar",l);a.G("ok","Criar cole\u00e7\u00e3o",l);a.G("cancel","Cancelar",l,j);return a};Cu.prototype.zc=function(a){var b=this.pf().Yg("ok");if(b)b.disabled=!a};var Eu=function(a,b,c,d,f){new Cu(a,b,c,d,f)};var Fu=function(a){var b=P();this.PXa=[];this.LB=k;this.vT=l;this.yp=0;this.YQ=l;this.Zk=a||[];this.g8=!!a;if(b){var c=this,d=function(){if(c.Zk.length==0){var h=Ej(b.p(),"listUsersSites",[]);h.k(function(i){c.Zk=i;c.g8=j})}Ek(z(c.wk,c))},f=function(){d()};Bu(f,Vt,k)}else{var g=new Md(qf());window.location=Bf(g.Nf("continue"),"createknol")}};D(Fu,Rt);q=Fu.prototype;
q.wk=function(){Gu();var a=P();this.AZa=a.wua();var b=I({b:"div",id:"knol-create-knol-form"}),c=this.$f(Hu.QW,j,this.Dma);b.addElement(c);var d=An("si57lahl1w25/102"),f=I({b:"span",id:"knol-create-knol-learn",children:[{b:"a",target:"_blank",href:d,d:"Saiba mais sobre modelos"}]});c=this.$f(Hu.rC,l,this.Ona);c.addElement(f);var g="display:none";c.addElement({b:"div",c:"knol-create-suboption",style:g,d:"Selecione ou pesquise um modelo. Voc\u00ea tamb\u00e9m pode inserir o endere\u00e7o de um knol:"});
c.addElement(I({b:"div",style:g,c:"knol-selector-search",id:"knol-create-knol-search"}));b.addElement(c);b.la();var h=this.$f(Hu.mK,l,"Criar uma nova <span class='knol-create-emphasis'>cole\u00e7\u00e3o</span> de knols.");d=An("si57lahl1w25/238");f=I({b:"span",id:"knol-create-knol-learn",children:[{b:"a",target:"_blank",href:d,d:"Saiba mais sobre cole\u00e7\u00f5es"}]});h.addElement(f);h.addElement({b:"div",style:g,c:"knol-create-suboption",d:"Uma cole\u00e7\u00e3o \u00e9 uma lista de knols que voc\u00ea organiza."});
var i=I({b:"div",style:g,c:"knol-create-suboption-col",id:"knol-create-sub-collection-option"}),m="Cole\u00e7\u00e3o moderada (requer um website confirmado). "+('<a href="'+An("si57lahl1w25/259")+'" id="knol-create-knol-learn" target="_blank">Saiba mais</a>'),n=this.$f(Hu.ss,l,m,"sub-collection",l,"checkbox");n.addElement({b:"div",style:g,d:"Este tipo de cole\u00e7\u00e3o permite que voc\u00ea personalize a apar\u00eancia dos knols da cole\u00e7\u00e3o.",c:"knol-create-suboption"});var o=I({b:"div",
style:g,c:"knol-create-suboption",id:"knol-create-sub-mod-col-option"}),p=this.$f(Hu.kK,j,"Cole\u00e7\u00e3o <span class='knol-create-emphasis'>controlada pelo autor</span>.","sub-mod-col");p.addElement({b:"div",d:"As edi\u00e7\u00f5es feitas nos knols da cole\u00e7\u00e3o s\u00f3 podem ser aprovadas pelos autores originais dos knols.",c:"knol-create-sub-desc"});o.addElement(p);var s=this.$f(Hu.NK,l,"Cole\u00e7\u00e3o de <span class='knol-create-emphasis'>autoria compartilhada</span>.","sub-mod-col");
s.addElement({b:"div",d:"As edi\u00e7\u00f5es feitas nos knols da cole\u00e7\u00e3o devem ser aprovadas pelos autores originais dos knols e pelos moderadores da cole\u00e7\u00e3o.",c:"knol-create-sub-desc"});o.addElement(s);var u=this.$f(Hu.FK,l,"Cole\u00e7\u00e3o <span class='knol-create-emphasis'>controlada pelo moderador</span>.","sub-mod-col");u.addElement({b:"div",d:"Depois de aceitas na cole\u00e7\u00e3o, as edi\u00e7\u00f5es feitas nos knols da cole\u00e7\u00e3o s\u00f3 precisar\u00e3o ser aprovadas pelos moderadores da cole\u00e7\u00e3o.",
c:"knol-create-sub-desc"});o.addElement(u);n.addElement(o);i.addElement(n);h.addElement(i);b.addElement(h);b.la();if(a instanceof Hj||a.uq().vq()!=4){var v=this.$f(Hu.xC,l,"<span class='knol-create-emphasis'>Importar</span> um arquivo como um novo knol.");v.addElement(I({b:"div",style:g,c:"knol-create-suboption",id:"knol-create-knol-import"}));b.addElement(v);b.la()}if(!this.oe&&a&&a.Cb()){c=this.$f(Hu.rY,l,"Criar uma nova promo\u00e7\u00e3o.");c.addElement({b:"div",c:"knol-create-knol-text",d:"Uma promo\u00e7\u00e3o cria um marcador. Os knols poder\u00e3o se associar \u00e0 promo\u00e7\u00e3o e ser pesquisados com o marcador relacionado a ela. Eles tamb\u00e9m mostrar\u00e3o \u00edcones quando visualizados nos resultados da pesquisa."});
c.Q();c.addElement({b:"div",id:"knol-create-knol-inline"});c.addElement(this.ND("Marcador:","knol-create-knol-promo-label",30));c.addElement(this.ND("Restri\u00e7\u00f5es de idioma:","knol-create-knol-promo-language",5,"(se aplic\u00e1vel)"));c.addElement(this.ND("Restri\u00e7\u00f5es de pa\u00eds:","knol-create-knol-promo-country",3,"(se aplic\u00e1vel)"));b.addElement(c);b.Q()}var x=this.ul(),y="knol-dialog",B=z(this.VA,this),G=b.v();Rt.call(this,this.df,G,k,y,B,x);this.H(j);this.dl()};
q.dl=function(){this.pA={};for(var a in Hu){var b=Hu[a],c=Y(this.lm+"-"+b)||Y("sub-collection-"+b)||Y("sub-mod-col-"+b);if(c){this.pA[b]=c;U(c,"click",z(this.ap,this))}}var d=Y("knol-create-knol-import");if(d)this.y3=new ru(d,z(this.lCa,this))};q.lCa=function(){this.uI(Hu.xC);this.ap(k)};q.eRa=function(a,b){var c=this.bs.fa();a&&this.uI(Hu.rC);var d=c&&b?z(this.OD,this):k;this.ap(d)};q.VA=function(a){if(a.ia=="ok"){var b=this.pf().Yg("ok");b.disabled?a.preventDefault():this.ap(z(this.OD,this,a))}};
q.ul=function(){var a=new mt;this.ll=a;a.G("ok",this.Pg,j,l);a.G("cancel","Cancelar",l,j);return a};q.$f=function(a,b,c,d,f,g){b=b?"true":undefined;var h=I({b:"div",c:"knol-create-knol-radio-option"}),i=d||this.lm,m=i+"-"+a;h.addElement({b:"input",type:g||"radio",c:"knol-create-knol-option",name:i,id:m,value:a,checked:b,disabled:f?f:undefined});h.addElement({b:"label","for":m,d:c,id:m+"-label",c:f?"knol-create-knol-disable":""});return h};
q.ND=function(a,b,c,d){var f="display:none",g=I({b:"div",c:"knol-create-suboption",style:f});g.addElement({b:"div",d:a,c:"knol-create-knol-opt-desc"});var h=I({b:"input",type:"text",name:b,size:c,maxlength:c,id:b,value:"",c:"knol-create-knol-textbox"});g.addElement(h);d&&g.addElement(d);g.la();return g};
q.OD=function(a){var b=k,c=eg(),d=c;if(this.LB)b=this.LB.p();var f,g,h;Gu();var i,m,n;if(this.vT){for(var o=["knol-create-knol-promo-label","knol-create-knol-promo-language","knol-create-knol-promo-country"],p=[],s=0;s<o.length;s++){var u=o[s],v=Y(u);if(v)p[s]=v.value}i=p[0];n=p[1];m=p[2];b="knol.promotion"}if(i){var x=xh(i);if(x!=i){var y=Y("knol-create-knol-promo-label");if(y)y.value=x;a&&a.preventDefault();var B=Y("knol-create-knol-inline");if(B){mu(B);lu(B,"Voc\u00ea n\u00e3o pode usar caracteres especiais no seu marcador. Tente novamente com o marcador corrigido:")}return}}if(m)m=
m.toLowerCase();var G=function(){f&&window.history.back()},M=z(Ut,k,k,"create knol",k,G),R=z(function(X){var Q=new Hk(uk(d),"createKnol");Q.ma([c,b,k,k,g,h,k,i,n,m,this.yp,k,X],function(K){var Va=J({Sf:K}),tb=Va.fa();tb+="#edit";if(f)window.location.replace(tb);else window.location=tb},M)},this);if(this.yp>=2){a&&a.preventDefault();this.H(l);Eu(R,function(){},z(function(){new Fu(this.Zk)},this),this.Zk,this.g8)}else this.YQ&&this.y3?this.y3.sSa(a,this):R.call(this)};var Gu=function(){return C("knol.ui.client.CreateKnolDialog")};
q=Fu.prototype;q.xJa=function(){var a=Y("knol-create-knol-search");if(a)if(this.bs){var b=V("knol.ui.AdvancedSearchResults.getDefaultTemplateResults",[ng()=="user"?k:bg(),eg(),this.oe]);b.k(function(c){this.bs.lea(c)},this)}};
q.ap=function(a){Gu();var b=ma(a)?a:function(){},c;for(var d in Hu){var f=Hu[d],g=this.pA[f];if(g&&g.checked&&g.parentNode.parentNode&&g.parentNode.parentNode.style.display!="none")c=f;var h=f==c,i=new Iu(g,l,l,2);Xb(i,function(s){if(r(s.className)&&(s.className=="knol-create-suboption"||s.className=="knol-selector-search"||s.className=="knol-create-suboption-col")){s.style.visibility=h?"visible":"hidden";s.style.display=h?"":"none"}})}var m=k,n=l;this.YQ=this.vT=l;this.yp=0;switch(c){case Hu.QW:break;
case Hu.rC:var o=E(xu);o.load(z(function(){if(!this.bs){var s=Y("knol-create-knol-search");this.bs=new Ju(s,this.oe,z(this.eRa,this));this.xJa()}if(this.bs){var u=this.bs.fa();if(u)m=ek(u);else{var v=this.bs.ju();m=ek(v)}n=!m}},this));break;case Hu.mK:this.yp=1;break;case Hu.ss:case Hu.kK:this.yp=2;break;case Hu.NK:this.yp=3;break;case Hu.FK:this.yp=4;break;case Hu.rY:this.vT=j;break;case Hu.xC:this.YQ=j;var p=Y("knol-fileupload-input");n=!p||p.value.length==0;break}this.Io(c);this.LB=k;if(n){this.zc(l);
b()}else if(m)Ek(z(function(){var s=l;if(m){var u=J(m),v=P();if(v&&u&&v.pna(u,this.oe)){this.LB=u;s=j}}this.zc(s);b(this.LB)},this),z(function(){this.zc(l);b()},this));else{this.zc(j);b()}};q.zc=function(a){var b=this.pf().Yg("ok");if(b)b.disabled=!a};q.Io=function(a){if(this.Y0){var b=this.pf().Yg("ok");if(b){var c=this.Pg;if(a==Hu.mK)c=this.Y0;else if(a==Hu.xC)c=this.epa;else if(a==Hu.ss||a==Hu.kK||a==Hu.NK||a==Hu.FK)c="Continuar";b.innerHTML=c}}};q.df="Como voc\u00ea quer come\u00e7ar?";
q.Dma="<span class='knol-create-emphasis'>Criar</span> um novo knol. Este \u00e9 o padr\u00e3o.";q.Ona="<span class='knol-create-emphasis'>Copie</span> um knol existente.";q.Pg="Criar knol";q.Y0="Criar cole\u00e7\u00e3o";q.epa="Fazer upload";q.lm="knol-create";var Hu={QW:"option-blank",rC:"option-choose",mK:"option-collect",rY:"option-promo",xC:"option-import",ss:"option-moderated-collection",kK:"option-author-centric",NK:"option-shared-authorship",FK:"option-moderator-centric"};
Fu.prototype.uI=function(a){for(var b in Hu){var c=Hu[b],d=Y(this.lm+"-"+c);if(d)d.checked=c==a}};Fu.prototype.oe=l;var Ku=function(a,b,c,d){if(!ja(a)||!ja(b))e(Error("Start and end parameters must be arrays"));if(a.length!=b.length)e(Error("Start and end points must be the same length"));this.Vv=a;this.Bra=b;this.iE=c;this.dZ=d;this.coords=[]};A(Ku,Yi);var Lu={},Mu=k,Nu=function(){Zi.clearTimeout(Mu);var a=ua();for(var b in Lu)Lu[b].E1(a);Mu=ic(Lu)?k:Zi.setTimeout(Nu,20)},Ou=function(a){var b=qa(a);delete Lu[b];if(Mu&&ic(Lu)){Zi.clearTimeout(Mu);Mu=k}};q=Ku.prototype;q.Za=0;q.N3=0;q.ph=0;q.Gg=k;q.c3=k;q.VR=k;
q.play=function(a){if(a||this.Za==0){this.ph=0;this.coords=this.Vv}else if(this.Za==1)return l;Ou(this);this.Gg=ua();if(this.Za==-1)this.Gg-=this.iE*this.ph;this.c3=this.Gg+this.iE;this.VR=this.Gg;this.ph||this.kA();this.HHa();this.Za==-1&&this.OHa();this.Za=1;var b=qa(this);b in Lu||(Lu[b]=this);Mu||(Mu=Zi.setTimeout(Nu,20));this.E1(this.Gg);return j};q.stop=function(a){Ou(this);this.Za=0;if(a)this.ph=1;this.jW(this.ph);this.XHa();this.AH()};
q.pause=function(){if(this.Za==1){Ou(this);this.Za=-1;this.GHa()}};q.o=function(){this.Za!=0&&this.stop(l);this.aHa();Ku.f.o.call(this)};q.b2=function(){this.l()};q.E1=function(a){this.ph=(a-this.Gg)/(this.c3-this.Gg);if(this.ph>=1)this.ph=1;this.N3=1E3/(a-this.VR);this.VR=a;ma(this.dZ)?this.jW(this.dZ(this.ph)):this.jW(this.ph);if(this.ph==1){this.Za=0;Ou(this);this.jHa();this.AH()}else this.Za==1&&this.US()};
q.jW=function(a){this.coords=new Array(this.Vv.length);for(var b=0;b<this.Vv.length;b++)this.coords[b]=(this.Bra[b]-this.Vv[b])*a+this.Vv[b]};q.US=function(){this.Cl("animate")};q.kA=function(){this.Cl("begin")};q.aHa=function(){this.Cl("destroy")};q.AH=function(){this.Cl("end")};q.jHa=function(){this.Cl("finish")};q.GHa=function(){this.Cl("pause")};q.HHa=function(){this.Cl("play")};q.OHa=function(){this.Cl("resume")};q.XHa=function(){this.Cl("stop")};
q.Cl=function(a){this.dispatchEvent(new Pu(a,this))};var Pu=function(a,b){ni.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.v_a=b.coords[2];this.iE=b.iE;this.ph=b.ph;this.FYa=b.N3;this.Hg=b.Za;this.TXa=b};A(Pu,ni);var Qu=function(a,b,c,d,f){Ku.call(this,b,c,d,f);this.xa=a};A(Qu,Ku);Qu.prototype.QJ=da;Qu.prototype.US=function(){this.QJ();Qu.f.US.call(this)};Qu.prototype.AH=function(){this.QJ();Qu.f.AH.call(this)};Qu.prototype.kA=function(){this.QJ();Qu.f.kA.call(this)};var Ru=function(a,b,c){if(b.length!=2||c.length!=2)e(Error("Start and end points must be 2D"));Qu.apply(this,arguments)};A(Ru,Qu);
Ru.prototype.QJ=function(){this.xa.style.left=Math.round(this.coords[0])+"px";this.xa.style.top=Math.round(this.coords[1])+"px"};var Su=function(a,b,c,d){var f=[a.offsetLeft,a.offsetTop];Ru.call(this,a,f,b,c,d)};A(Su,Ru);Su.prototype.kA=function(){this.Vv=[this.xa.offsetLeft,this.xa.offsetTop];Su.f.kA.call(this)};var Vu=function(a,b){var c=Tu(a);if(b<0||b>c)e(new Error("Accordion bounds exceeded"));var d="knol-element-toggle-level-"+b,f=/knol-element-toggle-level-\d+/;if(f.exec(a.className))a.className=a.className.replace(f,d);else a.className+=" "+d;Mm(a,function(g){if(g.className){var h=Uu(g.className,"knol-element-toggle-threshold-");if(h)g.style.display=b>=h?"":"none"}})},Uu=function(a,b){var c=(new RegExp(b+"(\\d+)")).exec(a);return c?parseInt(c[1],10):undefined},Wu=function(a){return Uu(Y(a).className,
"knol-element-toggle-level-")||0},Tu=function(a){return Uu(a.className,"knol-element-toggle-level-max-")||Number.MAX_VALUE},Xu=function(a,b){if(a)a.style.display="";if(b)b.style.display="none"},Zu=function(a,b,c){var d=Y(a),f=d,g=Wu(f.id);g+=1;Vu(f,g);Yu(d);Xu(b?Y(b):k,c?Y(c):k)},$u=function(a,b,c){var d=Y(a),f=Wu(d.id);f+=-1;Vu(d,f);Xu(b?Y(b):k,c?Y(c):k)},av=function(a){var b=a.parentNode,c=a.value||a.innerHTML,d=a.disabled;Z(a);var f=new Tr(c);f.Z(b);f.ba(!d);return f},bv=function(a,b,c){var d=
c||ba||window,f=d.document,g=0,h=0;if(!we&&f.compatMode=="CSS1Compat"){if(a!=k){g=a-f.documentElement.scrollLeft;f.documentElement.scrollLeft=a}if(b!=k){h=b-f.documentElement.scrollTop;f.documentElement.scrollTop=b}}else{if(a!=k){g=a-f.body.scrollLeft;f.body.scrollLeft=a}if(b!=k){h=b-f.body.scrollTop;f.body.scrollTop=b}}return new yh(g,h)},cv=function(a,b,c){var d=lm(c).y;if(a<d)return bv(k,a,c).y;else{var f=d+km(c).height;if(b>f){var g=Math.min(a,d+b-f);return bv(k,g,c).y}}return 0},Yu=function(a){var b=
Rq(a).y,c=b+Yq(a).height;return cv(b,c)},dv=function(a,b){if(F&&(b||!Ne("7")))ba.setTimeout(function(){if(w(a))a=Y(a);if(a)a.className=a.className},0)},ev=function(a,b){if(F){a.style.overflow="visible";a.style.padding="0 "+(b||"5px")}},fv=function(a){if(a&&F){for(var b=hm("iframe",k,a),c=[],d=0;d<b.length;d++){var f=W.z(b[d]);if(Db(f,"map_embed")||Db(f,"igm"))c.push(b[d])}if(c.length){var g=pm("div",{style:"display: none"});document.appendChild(g);for(d=0;d<c.length;d++)g.appendChild(c[d]);ba.setTimeout(function(){Z(g)},
1E4)}}};var gv=function(a,b,c,d,f,g,h,i,m,n){this.Ub=n?"-"+n:"";this.df=a;this.K=b;this.SG=c;this.zB=d;this.V_=f;this.mIa=g;this.gN=h||this.SG.Rh();this.GH=i;this.hJ=!m;this.cT=m;var o=this.Zoa(),p=this.Noa(o);U(p[0],p[1],z(function(s){if(!this.hJ||s.ia=="ok"){var u=Y("knol-inline-error"+this.Ub);ku(u,"knol-inline-error","knol-inline-error-message");var v=this.Axa();if(!v)return l;this.zB(v,this.vya(),this.Nua(),this.gza(),this.Uta());if(this.hJ)this.l();else this.cT.innerHTML="";return j}},this))};
D(gv,Rt);var hv=function(a){var b=k;if(a)try{b=a.Ia()}catch(c){}return!!b&&b.ya()};q=gv.prototype;q.np=function(a){var b=I({b:"tr",children:[{b:"td",c:"spacer"}]});a.addElement(b)};q.gpa=function(a){var b=I({b:"div",id:"knol-inline-error"+this.Ub});a.addElement(b)};
q.$oa=function(a){if(!this.K||this.K.p()!=eg()){var b=C("knol.ui.client.EmailDialog");b.za("Email user not set or does not match current user.")}else{var c=this.K&&this.K.Gy();if(c){var d=I({b:"span",id:"knol-email-from-tag",d:c}).v(),f="De: "+d;a.addElement({b:"tr",children:[{b:"td",c:"label",d:f}]});this.np(a)}}};
q.Ipa=function(a){var b=this.mIa||"Para:",c=I({b:"tr",children:[{b:"td",c:"label",d:b}]}),d=I({b:"tr",children:[{b:"td",children:[{b:"textarea",rows:"1",cols:"70",c:"knol-email-text-box",id:"knol-email-recipients"+this.Ub,name:"recipients"}]}]}),f=I({b:"tr",children:[{b:"td",c:"inote",children:[{b:"i",d:"Use v\u00edrgulas para separar endere\u00e7os de e-mail"}]}]});a.addElement(c);a.addElement(d);a.addElement(f)};
q.aM=function(a,b){this.$L(a,"http://"+window.location.host+this.SG.By(),this.SG.By(),b)};
q.$L=function(a,b,c,d,f,g){var h=I({b:"input",id:"knol-email-subject"+this.Ub,c:"knol-email-text-box",name:"subject",value:this.gN}),i={b:"span",id:"knol-email-subject"+this.Ub,c:"knol-fixed-email-subject",d:"<br />"+mf(this.gN)},m=I({b:"tr",children:[{b:"td",children:[d?h:i]}]});a.addElement(m);if(this.GH){var n=Xe(this.GH).replace(/\n/g,"<br />"),o=n.indexOf("http://");if(o>=0){var p=n.indexOf(". ",o);c=n.substring(o,p);n=n.substring(0,o)+I({b:"a",href:c,d:c}).v()+n.substring(p)}var s=I({b:"tr",
children:[{b:"td",c:"indent knol-fixed-email-body",d:n}]}),u="http://"+window.location.host+c;if(ha(b))b=u;var v=I({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-link",children:[{b:"a",href:u,d:b}]}]}),x="";this.np(a);a.addElement(s);this.np(a);a.addElement(v);this.np(a);if(f&&g){var y=Xe(f).replace(/\n/g,"<br />"),B=I({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-body",d:y}]});a.addElement(B);this.np(a);x=I({b:"tr",children:[{b:"td",c:"indent knol-fixed-email-link",children:[{b:"a",
target:"_blank",href:g,d:g}]}]});a.addElement(x);this.np(a)}}};q.Kpa=function(a){var b=I({b:"tr",children:[{b:"td",c:"note",d:"Voc\u00ea tamb\u00e9m pode digitar uma mensagem adicional."}]}),c=I({b:"tr",children:[{b:"td",children:[{b:"textarea",rows:"8",cols:"70",c:"knol-email-text-box",id:"knol-email-message"+this.Ub,name:"message"}]}]});a.addElement(b);a.addElement(c)};
q.Ooa=function(a){var b=I({b:"tr"});b.addElement({b:"td",children:[{b:"input",type:"checkbox",id:"knol-email-ccMe"+this.Ub,name:"ccMe"},{b:"span",c:"note",d:"Enviar uma c\u00f3pia (CC) deste e-mail para mim."}]});a.addElement(b)};q.C6=function(){return"Enviar pedido"};q.j4=function(){return"Cancelar"};q.ul=function(){var a=new mt;a.G("ok",this.C6(),l);a.G("cancel",this.j4(),l,j);return a};
q.usa=function(a,b){var c="knol-dialog knol-email-dialog";Rt.call(this,this.df,a.v(),k,c,k,b);this.H(l);return[this,"dialogselect"]};
q.Moa=function(a){var b=I({b:"span",c:"knol-manage-button",children:[{b:"input",type:"button",value:this.C6(),id:"knol-email-button-send"+this.Ub}]}),c=I({b:"span",c:"knol-manage-button",children:[{b:"input",type:"button",value:this.j4(),id:"knol-email-button-cancel"+this.Ub}]});a.addElement(b);a.addElement(c);this.cT.innerHTML=a.v();var d=Y("knol-email-button-send"+this.Ub);if(d)d=av(d);var f=Y("knol-email-button-cancel"+this.Ub);if(f){f=av(f);U(f,"action",z(function(){this.V_&&this.V_();this.cT.innerHTML=
""},this))}return[d,"action"]};q.Zoa=function(){var a=I({b:"div",id:"knol-email-form"+this.Ub});this.gpa(a);var b=P().uq().vq(),c=l;if(b!=0&&b!=3&&b!=4)c=j;var d=I({b:"table",c:"knol-email-table"});this.$oa(d);this.Ipa(d);this.np(d);this.aM(d,c);c&&this.Kpa(d);this.Ooa(d);a.addElement(d);return a};q.Noa=function(a){var b;if(this.hJ){var c=this.ul();b=this.usa(a,c)}else b=this.Moa(a);return b};
q.Axa=function(){var a=Y("knol-email-recipients"+this.Ub).value;a=a.replace(/\s+/g,"");var b=a.split(","),c=0;for(iv=0;iv<b.length;++iv){var d=b[iv];if(d.length!=0){if(!nf.test(d)){var f="O endere\u00e7o de e-mail "+('"'+Xe(b[iv])+'" n\u00e3o foi reconhecido. Corrija-o e tente novamente.');jv(f,this.Ub);return k}c++}}if(c){if(c>10){jv("O n\u00famero m\u00e1ximo de destinat\u00e1rios permitidos \u00e9: 10",this.Ub);return k}}else{jv("Especifique pelo menos um destinat\u00e1rio.",this.Ub);return k}return b};
q.vya=function(){var a=Y("knol-email-subject"+this.Ub).value;a=kf(a,250);if(!Ha(Aa(a)))a=this.gN;return a};q.gza=function(){var a=Y("knol-email-message"+this.Ub),b;if(a)b=a.value;else return"";if(b)b=kf(b,1500);else return"";var c="Mensagem de "+(this.K.mb()+(":"+("\n"+b)));return c};q.Nua=function(){return this.GH?this.GH.replace(/<wbr \/>/g,""):""};q.Uta=function(){return Y("knol-email-ccMe"+this.Ub).checked};q.hb=function(){this.hJ&&this.H(j)};
var kv=function(a,b,c,d,f){var g=a.mb()+(' solicita uma resenha sobre o knol "'+(b.sk()+'"')),h="Ol\u00e1,\n\nVoc\u00ea foi convidado por "+(a.mb()+(" para escrever uma resenha sobre o knol "+(b.sk()+". Clique no link a seguir, onde voc\u00ea pode ler o knol e aceitar ou recusar o convite.")));gv.call(this,"Solicitar uma resenha deste knol",a,b,c,d,"Solicitar resenhistas:",g,h,f,"review")};D(kv,gv);
var lv=function(a,b,c,d,f,g){this.Jb=c;var h='Solicitar uma resenha sobre "'+(b.Rh()+'"'),i=a.mb()+(' solicita uma resenha do knol "'+(b.sk()+('". Ela est\u00e1 sendo considerada para inclus\u00e3o na cole\u00e7\u00e3o "'+(c.sk()+'"')))),m="Ol\u00e1,\n\nVoc\u00ea foi convidado(a) por "+(a.mb()+(' para escrever uma resenha do knol "'+(b.sk()+('", considerado para inclus\u00e3o na cole\u00e7\u00e3o "'+(c.sk()+'". Clique no link a seguir para visualizar o knol e expressar se deseja rejeit\u00e1-lo ou aceit\u00e1-lo na cole\u00e7\u00e3o.')))));
gv.call(this,h,a,b,d,f,"Digitar endere\u00e7o de e-mail do resenhista:",i,m,g,"collectionreview")};D(lv,gv);lv.prototype.aM=function(a,b){var c=dk("system/services/createReview")+"?knolId="+this.SG.p()+"&collectionId="+this.Jb.p();this.$L(a,"http://"+window.location.host+c,c,b)};
var jv=function(a,b){var c=Y("knol-inline-error"+b);ju(c,a,"knol-inline-error","knol-inline-error-message")},mv=function(a,b,c,d,f){var g=a.mb(),h=b.sk(),i="http://"+window.location.host,m="Voc\u00ea foi convidado(a) por "+(g+(' para ser o co-propriet\u00e1rio de um knol chamado "'+(h+'"'))),n="Voc\u00ea foi convidado(a) por "+(g+(' para ser o copropriet\u00e1rio de uma cole\u00e7\u00e3o chamada "'+(h+'"'))),o="Ol\u00e1.\n\nVoc\u00ea foi convidado por "+(g+(" a ser copropriet\u00e1rio do knol "+(h+
(". Para saber o que representa ser um propriet\u00e1rio, visite "+(i+An("si57lahl1w25/7")+". Clique no link a seguir para ler o knol e decidir se deseja aceitar ou recusar a solicita\u00e7\u00e3o."))))),p="Ol\u00e1.\n\nVoc\u00ea foi convidado por "+(g+(" a ser copropriet\u00e1rio da cole\u00e7\u00e3o "+(h+(". Para saber o que representa ser um propriet\u00e1rio, visite "+(i+An("si57lahl1w25/7")+". Clique no link a seguir para visualizar a cole\u00e7\u00e3o e decidir se deseja aceitar ou recusar a solicita\u00e7\u00e3o."))))),
s=hv(b);gv.call(this,s?"Oferecer a propriedade desta cole\u00e7\u00e3o":"Oferecer propriedade deste knol",a,b,c,d,"Convidar propriet\u00e1rios:",s?n:m,s?p:o,f,"owner")};D(mv,gv);
var nv=function(a,b,c,d,f){var g=a.mb(),h=b.sk(),i="http://"+window.location.host,m="Voc\u00ea foi convidado(a) por "+(g+(' para ser o co-autor de um knol chamado "'+(h+'"'))),n=g+(' convidou voc\u00ea para ser um moderador de uma cole\u00e7\u00e3o chamada "'+(h+'"')),o="Ol\u00e1.\n\nVoc\u00ea foi convidado por "+(g+(" a ser coautor do knol "+(h+(". Para saber o que representa ser um coautor, visite "+(i+An("si57lahl1w25/8")+". Clique no link a seguir para ler o knol e decidir se deseja aceitar ou recusar a solicita\u00e7\u00e3o."))))),
p="Ol\u00e1.\n\nVoc\u00ea foi convidado por "+(g+(" a ser moderador da cole\u00e7\u00e3o "+(h+(". Para saber o que representa ser um moderador, visite "+(i+An("si57lahl1w25/353")+". Clique no link a seguir para visualizar a cole\u00e7\u00e3o e decidir se deseja aceitar ou recusar a solicita\u00e7\u00e3o."))))),s=hv(b);gv.call(this,s?"Convite de moderador para esta cole\u00e7\u00e3o":"Oferecer autoria deste knol",a,b,c,d,s?"Convidar moderadores:":"Convidar autores:",s?n:m,s?p:o,f,"author")};D(nv,gv);
var pv=function(a,b,c){var d=P();if(d){var f=k;if(b&&a)f=Wn(a);if(b&&!f)b=l;var g;if(b&&f){var h=d.mb()+(" quer que voc\u00ea escreva um knol para o nosso evento "+(f.knol.C+"."));g=h}else if(!b&&a){var i=d.mb()+(' quer que voc\u00ea escreva um knol sobre "'+(a+'".'));g=i}else{var m=d.mb()+" quer que voc\u00ea escreva um knol.";g=m}var n="";if(b){var o="Ol\u00e1,\n\n"+(d.mb()+(" recomendou voc\u00ea como autor de knols para o nosso evento "+(f.knol.C+(". Um knol \u00e9 um artigo autoral sobre um t\u00f3pico espec\u00edfico. Comece a criar um knol para o nosso evento "+
(f.knol.C+" clicando nos links a seguir:")))));n=o}else{var p="Ol\u00e1\n\n"+(d.mb()+" recomendou voc\u00ea como um autor de knol.  Um knol \u00e9 um artigo autoral sobre um t\u00f3pico espec\u00edfico. Clique no link a seguir e veja como \u00e9 f\u00e1cil compartilhar o que voc\u00ea sabe com o mundo:");n=p}this.N9=b;this.tj=a;this.wL=f;if(this.N9&&this.wL){var s="Para saber mais sobre o evento "+(this.wL.knol.C+", siga este link:");this.paa=s;this.mha=this.wL.mJ}var u=z(ov,k,a,b,this.paa,this.mha);
gv.call(this,"Convidar algu\u00e9m para escrever um knol",d,k,u,k,"Convidar autores:",g,n,c,"invitenewauthor");c||this.H(j)}else window.location=Bf(""+window.location,"invite-author","inviteAuthorRedirect")};D(pv,gv);pv.prototype.aM=function(a,b){var c=dk("system/services/createKnol");if(this.N9&&this.tj)c+="?label="+this.tj;this.$L(a,k,c,b,this.paa,this.mha)};
var wv=function(a,b,c){if(uv()=="invite-author"||F&&c){vv("#done");P()&&window.setTimeout(function(){new pv(a,b)},0)}},ov=function(a,b,c,d,f,g,h,i,m){Lo();var n=z(Ut,k,"Erro ao enviar o convite.","invite new author"),o=new Hk(uk(eg()),"inviteFriend"),p=[];p=b&&a?[f,m,g,h,i,a,c,d]:[f,m,g,h,i];o.ma(p,function(s){b||new xv(a);if(!s)e(new Error("invite friend had errors"))},n)},yv=function(a,b,c){var d=a.mb(),f=b.sk(),g=d+(' convidou voc\u00ea para ler um knol chamado "'+(f+'"')),h="Voc\u00ea foi convidado(a) por "+
(d+(' para visualizar uma cole\u00e7\u00e3o chamada "'+(f+'"'))),i="Ol\u00e1,\n\n"+(d+(" gostaria de compartilhar com voc\u00ea o knol: "+(f+". Para l\u00ea-lo, clique no link a seguir."))),m="Ol\u00e1,\n\n"+(d+(" gostaria de compartilhar com voc\u00ea a cole\u00e7\u00e3o: "+(f+". Clique no link a seguir para visualiz\u00e1-la."))),n=hv(b);gv.call(this,n?"Enviar link por e-mail para esta cole\u00e7\u00e3o":"Enviar link para este knol por e-mail",a,b,c,k,"Destinat\u00e1rios:",n?h:g,n?m:i)};D(yv,gv);var zv=function(){};D(zv,Xr);zv.prototype.Vb=function(a,b,c,d){var f=c||"references",g=Y(f),h=a||dg().Fy(),i=h.Pe();if(i.length>0){var m=Y(d||"knol-content-body");if(m)if(g){var n="knol-references",o=Y(n);vm(o);for(var p=b?this.L$(i,b):this.iS(i),s=0;s<p.length;s++)o.appendChild(tm(p[s].v()))}else{var u=dg(),v=this.N$(u,i,b),x=tm(v.v());x.id=f;m.appendChild(x)}}else if(g){var y=Am(g.nextSibling,j);Z(g);Z(y)}};zv.prototype.e=function(){return Y("references")};var Av=["knol-title","knol-subtitle","knol-abstract"],Bv=[k,k,k,k,k],Gv=function(a,b){C("knol.ui.client.RevisionCompare");var c=V("knol.ui.RevisionCompare.markupDifference",[bg(),ag(),a,b]);c.k(function(d){if(Cv()){Dv(l);Ev();Y("knol-revision-compare").innerHTML=d[0];for(var f=0;f<Av.length;f++)if(d[f+1]){var g=Y(Av[f]);if(g){Bv[f]=g.innerHTML;g.innerHTML=d[f+1]}}if(d[d.length-2]){var h=new Yh;h.T(d[d.length-2][0]);var i=new Cg(dp);i.T(d[d.length-2][1]);E(zv).Vb(h,i,"knol-revision-compare-diff-ref",
"knol-revision-compare-diff")}if(d[d.length-1]){var m=tm(d[d.length-1]);xm(m,Y("knol-revision-compare-diff"))}Fv()}});c.w(function(d){Ut(k,"Error encountered while comparing version: "+a+" and version: "+b,d)});return c},Hv=function(a){var b=a.split("-");if(b.length>1)if(b[1]=="compare")if(b.length>3){var c=parseInt(b[2],10),d=parseInt(b[3],10);if(la(c)&&la(d)&&c<d&&c>=1)return[c,d]}return k},Kv=function(a,b){var c=Y("knol-revision-compare"),d="none";if(a)if(b){if(Hv(b)){d="";Iv(j)}}else{d="";Iv(j)}d==
"none"&&Cv()&&Jv();c.style.display=d},Cv=function(){var a=Y("knol-revision-compare");return a.style.display!="none"},Jv=function(){for(var a=0;a<Av.length;a++){var b=Y(Av[a]);if(Bv[a]){if(b)b.innerHTML=Bv[a];Bv[a]=k}E(zv).Vb();var c=Y("references");if(c){xm(Y("references"),Y("knol-content-body"));c.style.display="none"}}},Lv=k,Fv=function(){Ev();var a=new Aq,b=Y("knol-revision-compare-collection-paginate");b&&a.g(b,"click",Mv);Lv=a},Ev=function(){if(Lv){Lv.fb();Lv=k}},Mv=function(a){var b=a.target;
if(b&&(b.nodeName==Zl||(b=b.parentNode)&&b.nodeName==Zl))for(var c=W.z(b),d=0;d<c.length;d++){var f;if(f=Cf(c[d],"knol-search-knol-pagination")){var g=f.split("_"),h=parseInt(g[1],10),i=parseInt(g[2],10);Nv(h,i);return}}},Nv=function(a,b){var c=Y("knol-revision-compare-collection"),d;if(c&&(d=Cf(c.className,"knol-revision-compare-collection-versions-"))){var f=d.split("_"),g=parseInt(f[0],10),h=parseInt(f[1],10),i=V("knol.ui.RevisionCompare.markupCollectionItems",[bg(),g,h,a,b]);i.k(function(m){var n=
Y("knol-revision-compare-collection");if(n&&m){Ev();n.innerHTML=m;Fv()}});i.w(function(m){Vt(k,m)});return i}return k};var eq=function(){this.ec(void 0,void 0)};D(eq,bq);eq.prototype.refresh=function(){this.Vb()};eq.prototype.create=function(){this.Vb()};eq.prototype.aha=function(a){C("knol.ui.client.VersionInfo");var b=0;if(!a.$F()){dg().tOa(a.LT);var c=this.SD;this.SD=a.cC;this.Fja(a.cC);b=a.cC-c}this.YG=a.XG;this.Br=a.BA;E(Ov).dca();return b};var Pv,Qv={},Rv=0,Sv=0,Uv=function(a){var b=a[0],c=a[1],d=a[2];C("knol.ui.client.History");var f=["top","bottom"],g={aZ:["knol-history-pagination-earlier",Math.max(d-1,1)],WXa:["knol-history-pagination-later",Math.min(25+c,b)]};for(var h in g)vb(f,function(i){var m=Y(g[h][0]+"-"+i);m&&U(m,"click",z(function(n){Tv("revisions",n)},k,g[h][1]))})},Wv=function(){var a=xb(["knol-revision-compare-button-top","knol-revision-compare-button-bottom"],Y);vb(a,function(b){var c=new Tr("Comparar selecionados");
c.Z(b);U(c,"action",Vv);b.style.display=""});dv("knol-history",j)},Xv=function(){var a=fm("a","knol-revision-plonk-class");vb(a,function(b){var c=b.id.replace("knol-revision-plonk-id-","");U(b,"click",function(){Xt("Bloquear usu\u00e1rio",io(b.name),function(){var d=new Hk(uk(eg()),"blockUser");d.ma([c,l,ag()],function(f){f?eu("Usu\u00e1rio bloqueado",jo(b.name)):eu("Bloquear usu\u00e1rio",mo(b.name))},function(){eu("Bloquear usu\u00e1rio",mo(b.name))})})})})},bw=function(){var a=fm("input","knol-revision-checkbox");
vb(a,function(b){U(b,"click",z(function(c,d){var f=d.target.checked,g=parseInt(c.replace(/knol-revision-checkbox-/,""),10);f?Yv(g):Zv(g);$v()},k,b.id))});aw()},aw=function(){if(Sv||Pv){var a=Sv,b=Pv;if(a&&Y("knol-revision-tr-"+a)){Sv=0;Yv(a)}if(b&&Y("knol-revision-tr-"+b)){Pv=0;Yv(b)}$v()}},$v=function(){var a=Sv;a=a&&!Y("knol-revision-tr-"+a)?a:0;var b=Pv;b=b&&!Y("knol-revision-tr-"+b)?b:0;var c=a,d=b,f=Y("knol-history-table"),g=f.createCaption();if(c||d){var h=Math.min(c,d),i=Math.max(c,d),m="Vers\u00e3o "+
((c||d)+" selecionada para compara\u00e7\u00e3o\n"),n="Vers\u00f5es "+(h+(" e "+(i+" selecionadas para compara\u00e7\u00e3o\n")));g.style.backgroundColor="#ffffcc";g.style.fontWeight="bold";g.style.display="";g.innerHTML=c&&d?n:m}else g.style.display="none"},Vv=function(){if(Sv&&Pv){var a=Math.min(Pv,Sv),b=Math.max(Pv,Sv);window.location="#revisions-compare-"+a+"-"+b}},Yv=function(a){var b=Y("knol-revision-tr-"+a),c=Y("knol-revision-checkbox-"+a);if(b&&c){if(Sv){Pv&&Zv(Sv);Pv=a}else Sv=a;b.style.backgroundColor=
"#ffffcc";if(!c.checked)c.checked=j}},Zv=function(a){var b=Y("knol-revision-tr-"+a),c=Y("knol-revision-checkbox-"+a);if(Sv==a){Sv=Pv;Pv=0}if(Pv==a)Pv=0;if(b)b.style.backgroundColor="#fff";if(c&&c.checked)c.checked=l},Tv=function(a,b){var c,d=Hv(a),f=(c=d?Gv(d[0],d[1]):k)||cw(b)||new ki;return f},cw=function(a){var b=new ki,c=E(eq).YG,d=a||c;if(Qv[d])b.sa();else{b=V("knol.ui.History.createHistoryTable",[bg(),a]);b.k(function(f){Qv[d]=f})}b.k(function(){Kv(l);if(Rv!=d){Y("knol-history").innerHTML=Qv[d][0];
Wv();Xv();bw();Uv(Qv[d][1]);Rv=d}Dv(j)});b.w(function(f){Ut(k,"Error encountered while fetching history table",f)});return b},Dv=function(a,b){var c=Y("knol-history"),d="none";if(a)if(b){if(b=="revisions")d=""}else d="";c.style.display=d},dw=function(){var a=Y("knol-history");return a.style.display!="none"};var Ov=function(a){this.Fa=a;Ov.Ju=this;Ek(z(this.tCa,this),function(){ew().za("could not init author utils")})};t("knol.ui.client.AuthorUtils",Ov,void 0);var ew=function(){return C("knol.ui.client.AuthorUtils")};
Ov.prototype.tCa=function(){if(!this.km){ew();this.user=P();if(bg()){this.knol=dg();if(ag()){this.Te=O();this.r8=this.Te.VO()}}if(eg()&&this.Te){this.ef=this.Te.$h(eg());this.Ig=this.Te.fc(eg())}if(this.user&&this.user.ig())this.Ig=this.ef=j;this.gh=this.Te.nf()=="managed"&&this.Ig&&!this.Te.xz(this.user.p());this.Na=new Ft;new fw;if(this.ef||this.Ig)new gw(this);E(hw).ec(this);this.km=j}};Ov.prototype.$a=function(a){this.Na.$a(a);a.ob&&a.ba(a.ob(this))};
Ov.prototype.dca=function(){var a=this;this.Na.Ae(function(b){r(b.ob)&&b.ba(b.ob(a))})};Ov.prototype.tk=function(){return E(eq)};var fw=function(a){var b=Ur(a);if(b){U(b,"click",function(c){new Fu;c.preventDefault();return l});if(uv()=="createknol"||F&&Wd(window.location).lk().z("createknol")){E(iw).QD="done";vv("#done");P()&&new Fu}}};D(fw,qt);t("knol.ui.client.CreateKnol",fw,void 0);fw.prototype.ob=function(a){return a.user};
fw.prototype.ma=function(a,b,c,d,f,g,h,i){ew();var m=function(){b&&window.history.back()},n=z(Ut,k,k,"create knol",k,m);if(P()){var o=z(this.cU,this,n,b,c,d,f,g,h,i);if(i&&parseInt(i,10)>=2)o=z(Eu,this,o,m);o()}else window.location=qf()};fw.prototype.run=fw.prototype.ma;
fw.prototype.cU=function(a,b,c,d,f,g,h,i,m){Bu(function(){var n=new Hk(uk(eg()),"createKnol");n.ma([k,g,k,k,c,d,f,k,k,k,i,h,m],z(function(o){o||a();var p=J({Sf:o}),s=p.fa();s+="#edit";ew();var u=function(v,x){if(x)window.location.replace(v);else window.location=v};h?this.bma(p,h,z(u,k,s,b),a):u(s,b)},this),a)},a,this)};fw.prototype.bma=function(a,b,c,d){Ek(z(function(){if(b){var f=J(b),g=f.Ia();a&&a.p()&&f&&g&&g.gd()!=0&&jw(a.p(),b,g.p(),new bq(b),c,d)}else d()},this),d)};
fw.prototype.eLa=function(a){if(a&&P()){ew();var b=Ej(a,"acceptFriendInvite",[eg()]);b.k(function(){});b.w(function(){})}};fw.prototype.resolveInvite=fw.prototype.eLa;var kw=function(){};D(kw,qt);t("knol.ui.client.CreateReview",kw,void 0);kw.prototype.ob=function(a){return a.user};kw.prototype.ma=function(a,b,c,d){ew();var f=z(Vt,k,"create review");if(P()){var g=z(this.cU,this,f,b,c,d);g()}else window.location=qf()};kw.prototype.run=kw.prototype.ma;
kw.prototype.cU=function(a,b,c,d){var f=new Hk(uk(eg()),"createReview");f.ma([bg(),k,c,d],function(g){if(g==k)a();else if(g==1)lw();else{ew();var h=J({Sf:g});if(h){var i=h.fa();i+="#edit";if(b)window.location.replace(i);else window.location=i}else a()}},a)};
var lw=function(){Ut("Infelizmente, voc\u00ea n\u00e3o pode escrever resenhas sobre knols de sua propriedade ou autoria.",k,k,function(){window.location.replace(yg())})},mw=function(a){if(P()){var b=Y(a);if(b){var c="/k/knol/system/services/createReview?knolId="+bg();b.href=c}}};t("knol.ui.client.CreateReview.swapReviewLink",mw,void 0);var gw=function(a,b){if(!b)if(a.ef||a.Ig){var c=Y("knol-create-review");if(c){c.href="#manage-reviewers";c.innerHTML="Convidar mais resenhistas";c.target=""}}};
D(gw,qt);gw.prototype.ob=function(a){return a.user};gw.prototype.ma=function(a){ew();this.K=a.user;this.Ra=a.knol;this.D=a.Te;var b=new kv(this.K,this.Ra,z(this.submit,this),k);b.hb()};gw.prototype.submit=function(a,b,c,d,f){ew();var g=z(Vt,k,"request review"),h=new Hk(uk(eg()),"requestReview");qu();pu("Enviando mensagem...");h.ma([this.D.p(),a,f,b,c,d],function(i){qu();i||pu("Falha ao enviar mensagem. Tente novamente mais tarde.")},g)};var hw=function(){};D(hw,qt);hw.prototype.ob=function(){return j};
hw.prototype.ec=function(a){if(!this.km&&a.knol){var b=Y("knol-viewlinks-email");b&&U(b,"click",z(this.ma,this,a));var c=Y("knol-viewlinks-email-icon");c&&U(c,"click",z(this.ma,this,a));this.km=j}};hw.prototype.ma=function(a){this.ec(a);ew();this.K=a.user;this.Ra=a.knol;if(this.K){var b=new yv(this.K,this.Ra,z(this.submit,this));b.hb()}else window.location=qf()};
hw.prototype.submit=function(a,b,c,d,f){ew();var g=z(Vt,k,"send email"),h=new Hk(uk(eg()),"sendEmail");h.ma([this.Ra.p(),a,f,b,c,d],function(i){qu();i||pu("Falha ao enviar mensagem. Tente novamente mais tarde.")},g)};var nw=function(){var a=O(),b=a&&a.ya();qt.call(this,b?"Publicar esta cole\u00e7\u00e3o":"Publicar este knol")};D(nw,qt);
var qw=function(){if(E(xu).Tb())var a=E(yu);var b,c=E(Ov);if(a&&a.me()&&a.ug()){b=a.RA(undefined,j)||new ki;b.k(ow)}else{b=Ej(ag(),"changePublishedVersion",[-1]);b.k(function(){var d=c.tk(),f=d.Az();d.Br=-1;O().oOa(-1);var g=E(pw);g.Z(f);g.Mm();Qv={};var h=Y("knol-signout-link");if(h)h.innerHTML=Bs().v();ow()});b.w(z(Vt,k,"publishing failed"))}return b},ow=function(){var a=Y("knol-viewlinks-collect-icon");if(a)a.style.display="";if(a=Y("knol-viewlinks-collect"))a.style.display=""};
nw.prototype.ob=function(a){return $p(a)};nw.prototype.ma=function(){return qw()};var rw=function(){qt.call(this,"")};D(rw,qt);rw.prototype.ob=function(a){return Yp(a)};rw.prototype.ma=function(a){var b=a.tk(),c=Ej(ag(),"xPublishOldVersion",[b.Qe(),j]);c.k(function(d){var f={};f[Hl.Cw]=d;O().Vb(f);var g=E(pw);g.Z();g.Mm();Qv={}});c.w(z(Vt,k,"Could not un-publish the old version"))};var sw=function(){var a=O(),b=a&&a.ya();qt.call(this,b?"Cancelar a publica\u00e7\u00e3o desta cole\u00e7\u00e3o":"Cancelar a publica\u00e7\u00e3o deste Knol")};
D(sw,qt);sw.prototype.ob=function(a){return aq(a)};sw.prototype.ma=function(){var a=Ej(ag(),"changePublishedVersion",[-2]);a.k(function(){window.location.reload(j)});a.w(z(Vt,k,"Could not un-publish the knol"))};var tw=function(){qt.call(this,"")};D(tw,qt);tw.prototype.ob=function(a){return Zp(a)};tw.prototype.ma=function(a){var b=a.tk(),c=Ej(ag(),"xPublishOldVersion",[b.Qe(),l]);c.k(function(d){var f={};f[Hl.Cw]=d;O().Vb(f);var g=E(pw);g.Z();g.Mm();Qv={}});c.w(z(Vt,k,"Could not un-publish the old version"))};
var uw=function(){var a=O(),b=a&&a.ya();qt.call(this,b?"Excluir esta cole\u00e7\u00e3o":"Excluir esse Knol")};D(uw,qt);uw.prototype.ob=function(a){ew();return a.ef};
uw.prototype.ma=function(a){var b=O(),c=b&&b.ya();Xt(c?"Excluir esta cole\u00e7\u00e3o":"Excluir esse Knol",c?"A exclus\u00e3o de uma cole\u00e7\u00e3o n\u00e3o pode ser desfeita. Entretanto, voc\u00ea pode cancelar sua publica\u00e7\u00e3o.<br /><br />Tem certeza de que deseja excluir esta cole\u00e7\u00e3o?":"A exclus\u00e3o de um knol n\u00e3o pode ser desfeita. Entretanto, voc\u00ea pode cancelar sua publica\u00e7\u00e3o.<br /><br />Tem certeza de que deseja excluir este knol?",z(this.wLa,this,
a))};uw.prototype.wLa=function(a,b){if(b.ia=="yes"){ew();var c=new Hk(uk(ag()),"removeNode");c.ma([],function(){Ek(function(){window.location=a.user.ik()})},z(Vt,k,"delete knol"))}};var vw=function(){this.Ub="manage"};D(vw,uu);vw.prototype.Tb=function(){try{return r(ww)}catch(a){return l}};var xw=function(a,b){var c=P(),d=c?c.Gy():k,f=c?c.p():k,g=new As(d,f,a,b),h=g.bj(),i=Y("knol-header-menu");if(i&&h)i.innerHTML=h};t("knol.ui.client.ProfileLink",xw,void 0);var pw=function(a,b){this.Af=a;this.yi=b;pw.Ju=this};t("knol.ui.client.AuthorToolbox",pw,void 0);pw.prototype.Z=function(a){Y("knol-author-toolbox-container");var b=E(eq);if(this.yi)this.yi=b.Qe();this.Qm=new cq(bg(),Zf(),eg(),this.Af||"",this.yi||"");this.Qm.Vb(l,z(function(c){this.Qm.LCa();this.dl(c);if(b&&!b.eh()){var d=new yw(bg()),f=a||!b.Qu()&&b.Az();d.Z(f)}dv("knol-sidebar",j)},this))};pw.prototype.render=pw.prototype.Z;q=pw.prototype;
q.dl=function(a){this.Jka();this.Vja();this.yka();this.Kja();this.Tka();this.Nja(a)};
q.Jka=function(){var a=Y("knol-author-toolbox-publish-button");if(a){var b=av(a);U(b,"action",z(function(){var g=new nw(this.Qm.S),h=g.ma(this.Qm.S);h.k(function(){E(vw).Tb()&&E(ww).Mm()});h.k(this.Mm,this)},this))}var c=Y("knol-author-toolbox-un-publish-change");c&&U(c,"click",z(function(){vv("manage-unpublish")},this));var d=Y("knol-author-toolbox-unpublish-old");d&&U(d,"click",z(function(){var g=new tw(this.Qm.S);g.ma(this.Qm.S)},this));var f=Y("knol-author-toolbox-publish-old");f&&U(f,"click",
z(function(){var g=new rw(this.Qm.S);g.ma(this.Qm.S)},this))};q.Mm=function(){if(E(vw).Tb()){var a=Y("knol-manage-publish-state");if(a){var b=Y("knol-author-toolbox-publish-sub");a.innerHTML=b.innerHTML}}};q.Vja=function(){var a=Y("knol-author-toolbox-collaboration-change");a&&U(a,"click",z(function(){vv("manage-general")},this))};q.yka=function(){var a=Y("knol-author-toolbox-license-change");a&&U(a,"click",z(function(){vv("manage-general")},this))};
q.Kja=function(){var a=Y("knol-author-toolbox-author-change");a&&U(a,"click",z(function(){vv("manage-authors")},this))};q.Tka=function(){new gw(this.Qm.S,l);var a=Y("knol-action-sidebar-pane-table");if(a){var b=Y("knol-review-invite");if(b)b.style.display="none"}var c=Y("knol-author-toolbox-reviews-change");c&&U(c,"click",z(function(){vv("manage-reviewers")},this))};q.Nja=function(a){if(a){if(w(a))a=[a];for(var b=0;b<a.length;b++){var c=a[b];zw(c)}}};
var zw=function(a){if(a){var b="knol-badge-remove-"+a,c=Y(b);if(c){var d=P(),f=O();if(d&&f&&(d.Cb()||f.fc(d.p()))){var g=c.parentNode;g.style.visibility="visible";g.style.display="";U(c,"click",z(function(h){var i=Ej(eg(),"removeBadge",[h,ag()]);i.k(function(){window.location.reload(j)});i.w(z(Ut,k,"N\u00e3o foi poss\u00edvel remover o emblema do knol. Tente novamente mais tarde","Remove badge failed"))},k,a))}}}};t("knol.ui.client.AuthorToolbox.setupRemoveLinks",zw,void 0);var Aw=function(a,b){this.K=P();this.Ob=a;this.Af=b};t("knol.ui.client.ActionSidebar",Aw,void 0);Aw.prototype.Z=function(){var a=V("knol.ui.ActionSidebar.getTokenedMessageHtml",[this.Af,this.Ob,this.K.p()]);a.k(z(function(b){if(b)Y("knol-action-sidebar-pane").innerHTML=b;else E(pw).Z()},this));a.w(z(Vt,k,"Failed to find relevant messages"))};Aw.prototype.render=Aw.prototype.Z;var Cw=function(a){Bw();this.mc=bg();this.Fi=Zf();this.Dk=(this.Ob=ag())||this.Fi;this.UA=a;var b=P();if(b&&b.Cb()){var c=V("knol.ui.AdminOptions.getHtml",[this.Dk,this.UA]);c.k(function(d){var f=Y("knol-admin-pane");if(f&&d){f.innerHTML=d;f.style.display="";this.Z()}},this);c.w(function(){})}};t("knol.ui.client.AdminOptions",Cw,void 0);var Bw=function(){return C("knol.ui.client.AdminOptions")};q=Cw.prototype;
q.Z=function(){Bw();var a={};a["knol-admin-id-1"]=this.dRa;a["knol-admin-id-2"]=this.sKa;a["knol-admin-id-8"]=this.hma;a["knol-admin-id-9"]=this.qna;a["knol-admin-id-22"]=this.Lra;a["knol-admin-id-23"]=this.Bla;a["knol-admin-id-28"]=this.Kra;a["knol-admin-id-29"]=this.Ala;a["knol-admin-id-3"]=this.IMa;a["knol-admin-id-4"]=this.JMa;a["knol-admin-id-6"]=this.FMa;a["knol-admin-id-7"]=this.CMa;a["knol-admin-id-42"]=function(){this.UI(1)};a["knol-admin-id-43"]=function(){this.UI(0)};a["knol-admin-id-44"]=
function(){this.UI(-1)};a["knol-admin-id-16"]=function(){this.IU(1)};a["knol-admin-id-17"]=function(){this.IU(0)};a["knol-admin-id-12"]=this.Jda;a["knol-admin-id-13"]=this.gNa;a["knol-admin-id-14"]=this.Ida;a["knol-admin-id-15"]=this.fNa;a["knol-admin-id-26"]=this.EMa;a["knol-admin-id-27"]=this.GMa;a["knol-admin-id-18"]=this.ima;a["knol-admin-id-19"]=this.rna;a["knol-admin-id-20"]=this.YLa;a["knol-admin-id-21"]=this.vna;a["knol-admin-id-36"]=this.Mra;a["knol-admin-id-37"]=this.zla;a["knol-admin-id-35"]=
this.NJa;a["knol-admin-id-38"]=this.Nra;a["knol-admin-id-39"]=this.Cla;a["knol-admin-id-31"]=this.Jra;a["knol-admin-id-32"]=this.wla;a["knol-admin-id-33"]=this.Ira;a["knol-admin-id-34"]=this.vla;a["knol-admin-id-40"]=this.jma;a["knol-admin-id-41"]=this.sna;a["knol-admin-id-45"]=this.UQa;a["knol-admin-id-46"]=this.CEa;a["knol-admin-id-48"]=this.BEa;a["knol-admin-id-49"]=this.fma;a["knol-admin-id-51"]=this.ema;for(var b in a){var c=Y(b);c&&U(c,["click","change"],z(a[b],this))}};
q.Ua=function(a,b){this.Hca(j);this.Hca(l);var c=V(a,b);c.k(z(function(d){this.q2(d,"Operation")},this));c.w(z(Vt,k,"Operation failed"));c.w(z(function(){this.q2(l,"Operation")},this))};q.Hca=function(a){var b=Y(a?"knol-admin-success":"knol-admin-fail");b.innerHTML="";b.style.display="none"};q.q2=function(a,b){b+=": "+(a?"succeeded":"<b>failed</b>!");var c=Y(a?"knol-admin-success":"knol-admin-fail");c.innerHTML=b;c.style.display=""};q.dRa=function(){this.Ua("knol.ui.AdminOptions.opt1",[this.mc])};
q.sKa=function(){this.Ua("knol.ui.AdminOptions.opt2",[this.mc])};q.JMa=function(){this.Ua("knol.ui.AdminOptions.opt3",[Zf()])};q.IMa=function(){this.Ua("knol.ui.AdminOptions.opt4",[Zf()])};q.FMa=function(){this.Ua("knol.ui.AdminOptions.opt5",[Zf()])};q.CMa=function(){this.Ua("knol.ui.AdminOptions.opt6",[Zf()])};q.hma=function(){this.Ua("knol.ui.AdminOptions.opt7",[Zf(),"true"])};q.qna=function(){this.Ua("knol.ui.AdminOptions.opt7",[Zf(),"false"])};
q.UI=function(a){this.Ua("knol.ui.AdminOptions.opt9",[this.Fi,a])};q.Jda=function(){this.Ua("knol.ui.AdminOptions.opt10",[Zf(),"true"])};q.gNa=function(){this.Ua("knol.ui.AdminOptions.opt10",[Zf(),"false"])};q.Ida=function(){this.Ua("knol.ui.AdminOptions.opt11",[Zf(),"true"])};q.fNa=function(){this.Ua("knol.ui.AdminOptions.opt11",[Zf(),"false"])};q.IU=function(a){this.Ua("knol.ui.AdminOptions.opt12",[this.mc,a])};q.Lra=function(){this.Ua("knol.ui.AdminOptions.opt13",[this.Ob,j])};
q.Bla=function(){this.Ua("knol.ui.AdminOptions.opt13",[this.Ob,l])};q.Jra=function(){this.Ua("knol.ui.AdminOptions.opt13",[this.Fi,j])};q.wla=function(){this.Ua("knol.ui.AdminOptions.opt13",[this.Fi,l])};q.EMa=function(){this.Ua("knol.ui.AdminOptions.opt14",[Zf(),j])};q.GMa=function(){this.Ua("knol.ui.AdminOptions.opt14",[Zf(),l])};q.Kra=function(){this.Ua("knol.ui.AdminOptions.opt15",[this.Ob,j])};q.Ala=function(){this.Ua("knol.ui.AdminOptions.opt15",[this.Ob,l])};
q.Ira=function(){this.Ua("knol.ui.AdminOptions.opt15",[this.Fi,j])};q.vla=function(){this.Ua("knol.ui.AdminOptions.opt15",[this.Fi,l])};q.ima=function(){this.Ua("knol.ui.AdminOptions.opt16",[Zf(),"true"])};q.rna=function(){this.Ua("knol.ui.AdminOptions.opt16",[Zf(),"false"])};q.YLa=function(){var a=Dw();this.Ua("knol.ui.AdminOptions.opt18",[a,"true"])};q.vna=function(){var a=Dw();this.Ua("knol.ui.AdminOptions.opt18",[a,"false"])};q.Mra=function(){this.Ua("knol.ui.AdminOptions.opt19",[this.Ob,j])};
q.zla=function(){this.Ua("knol.ui.AdminOptions.opt19",[this.Ob,l])};q.NJa=function(){this.Ua("knol.ui.AdminOptions.opt20",[this.Ob])};q.Nra=function(){this.Ua("knol.ui.AdminOptions.opt21",[this.Ob,j])};q.Cla=function(){this.Ua("knol.ui.AdminOptions.opt21",[this.Ob,l])};q.jma=function(){this.Ua("knol.ui.AdminOptions.opt22",[Zf(),"true"])};q.sna=function(){this.Ua("knol.ui.AdminOptions.opt22",[Zf(),"false"])};q.UQa=function(){this.Ua("knol.ui.AdminOptions.opt23",[Zf()])};
q.CEa=function(){var a,b=Y("knol-admin-id-46");if(b)a=b.value;if(a){var c=V("knol.ui.AdminOptions.opt28",[ag(),a]);c.k(z(function(d){var f=Y("knol-admin-id-47");if(f)f.value=d},this))}};q.BEa=function(){var a,b,c=Y("knol-admin-id-46");if(c)a=c.value;if(c=Y("knol-admin-id-47"))b=c.value;a&&this.Ua("knol.ui.AdminOptions.opt29",[ag(),a,b])};
q.fma=function(){var a,b=Y("knol-admin-id-49");if(b)a=b.value;if(a){var c=V("knol.ui.AdminOptions.opt30",[Zf(),a]);c.k(z(function(d){var f=Y("knol-admin-id-50");if(f)f.value=d},this))}};q.ema=function(){var a,b,c=Y("knol-admin-id-49");if(c)a=c.value;if(c=Y("knol-admin-id-50"))b=c.value;a&&this.Ua("knol.ui.AdminOptions.opt31",[Zf(),a,b])};var Ew=function(){C("knol.ui.client.AdSense");var a=P(),b=O(),c=a&&b&&(a.Cb()||b.fc(a.p()));if(c){var d=Y("knol-adsense-pending-ad");if(d){d.innerHTML=this.ixa();d.style.visibility="visible";d.style.display=""}}};t("knol.ui.client.AdSense",Ew,void 0);Ew.prototype.ixa=function(){return"A sua conta do AdSense est\u00e1 sendo analisada pelo Knol. Depois que ela for aprovada, seus an\u00fancios ser\u00e3o exibidos aqui. O processo pode levar at\u00e9 2 semanas."};var Fw=function(a,b,c,d,f){this.Ze=!!b;a&&this.setPosition(a,d);this.Rg=f!=undefined?f:this.De||0;if(this.Ze)this.Rg*=-1;this.ED=!c};A(Fw,Vb);q=Fw.prototype;q.node=k;q.De=k;q.qV=l;q.setPosition=function(a,b,c){if(this.node=a)this.De=la(b)?b:this.node.nodeType!=1?0:this.Ze?-1:1;if(la(c))this.Rg=c};q.tl=function(a){this.node=a.node;this.De=a.De;this.Rg=a.Rg;this.Ze=a.Ze;this.ED=a.ED};q.wa=function(){return new Fw(this.node,this.Ze,!this.ED,this.De,this.Rg)};
q.Tv=function(){var a=this.Ze?-1:1;if(this.De==a){this.De=a*-1;this.Rg+=this.De*(this.Ze?-1:1)}};q.hLa=function(){var a=this.Ze?1:-1;if(this.De==a){this.De=a*-1;this.Rg+=this.De*(this.Ze?-1:1)}};
q.vc=function(){var a;if(this.qV){if(!this.node||this.ED&&this.Rg==0)e(Ub);a=this.node;var b=this.Ze?-1:1;if(this.De==b){var c=this.Ze?a.lastChild:a.firstChild;c?this.setPosition(c):this.setPosition(a,b*-1)}else{var d=this.Ze?a.previousSibling:a.nextSibling;d?this.setPosition(d):this.setPosition(a.parentNode,b*-1)}this.Rg+=this.De*(this.Ze?-1:1)}else this.qV=j;a=this.node;if(!this.node)e(Ub);return a};q.bEa=function(){return this.qV};q.MR=function(){return this.De==1};
q.sR=function(){return this.De==-1};q.tc=function(a){return a.node==this.node&&(!this.node||a.De==this.De)};q.splice=function(){var a=this.node;this.hLa();this.Ze=!this.Ze;Fw.prototype.vc.call(this);this.Ze=!this.Ze;for(var b=ka(arguments[0])?arguments[0]:arguments,c=b.length-1;c>=0;c--)xm(b[c],a);Z(a)};var Iu=function(a,b,c,d){Fw.call(this,a,b,c,k,d)};A(Iu,Fw);Iu.prototype.vc=function(){do Iu.f.vc.call(this);while(this.sR());return this.node};var Gw,Hw={BX:["a.C.","d.C."],wia:["Antes de Cristo","Ano do Senhor"],Ria:["J","F","M","A","M","J","J","A","S","O","N","D"],ija:["J","F","M","A","M","J","J","A","S","O","N","D"],ts:["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],hja:["janeiro","fevereiro","mar\u00e7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],EY:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],
kja:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],YY:["domingo","segunda-feira","ter\u00e7a-feira","quarta-feira","quinta-feira","sexta-feira","s\u00e1bado"],mja:["domingo","segunda-feira","ter\u00e7a-feira","quarta-feira","quinta-feira","sexta-feira","s\u00e1bado"],OK:["dom","seg","ter","qua","qui","sex","s\u00e1b"],lja:["dom","seg","ter","qua","qui","sex","s\u00e1b"],lWa:["D","S","T","Q","Q","S","S"],jja:["D","S","T","Q","Q","S","S"],FY:["T1","T2","T3","T4"],tY:["1\u00ba trimestre",
"2\u00ba trimestre","3\u00ba trimestre","4\u00ba trimestre"],LW:["AM","PM"],zw:["EEEE, d 'de' MMMM 'de' y","d 'de' MMMM 'de' y","dd/MM/yyyy","dd/MM/yy"],IC:["HH'h'mm'min'ss's' zzzz","HH'h'mm'min'ss's' z","HH:mm:ss","HH:mm"],eUa:{Md:"d/M",MMMMd:"d 'de' MMMM",MMMd:"d 'de' MMM"},Cia:0,ZY:[5,6],Dia:3};Gw=Hw;var Iw=function(){},Kw=function(a){if(typeof a=="number"){var b,c=a,d=new Iw;d.Pfa=c;d.Aga=Jw(c);var f;var g=c;if(g==0)f="UTC";else{var h=["UTC",g<0?"+":"-"];g=Math.abs(g);h.push(Math.floor(g/60)%100);g%=60;g!=0&&h.push(":",g);f=h.join("")}d.aW=[f,f];d.FJ=[];return b=d}var i=new Iw;i.Aga=a.id;i.Pfa=-a.std_offset;i.aW=a.names;i.FJ=a.transitions;return i},Jw=function(a){if(a==0)return"Etc/GMT";var b=["Etc/GMT",a<0?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;a!=0&&b.push(":",bb(a,2));return b.join("")};
q=Iw.prototype;q.D4=function(a){for(var b=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes()),c=b/36E5,d=0;d<this.FJ.length&&c>=this.FJ[d];)d+=2;return d==0?0:this.FJ[d-1]};q.qva=function(a){var b,c=this.rP(a),d=["GMT"];d.push(c<=0?"+":"-");c=Math.abs(c);d.push(bb(Math.floor(c/60)%100,2),":",bb(c%60,2));return b=d.join("")};q.lwa=function(a){return this.aW[this.p9(a)?3:1]};q.rP=function(a){return this.Pfa-this.D4(a)};
q.xxa=function(a){var b=-this.rP(a),c=[b<0?"-":"+"];b=Math.abs(b);c.push(bb(Math.floor(b/60)%100,2),bb(b%60,2));return c.join("")};q.hya=function(a){return this.aW[this.p9(a)?2:0]};q.Hya=function(){return this.Aga};q.p9=function(a){return this.D4(a)>0};var Lw=function(a){this.Vc=[];typeof a=="number"?this.cD(a):this.Sw(a)},Mw=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvzZ]+/];q=Lw.prototype;q.Sw=function(a){for(;a;)for(var b=0;b<Mw.length;++b){var c=a.match(Mw[b]);if(c){var d=c[0];a=a.substring(d.length);if(b==0)if(d=="''")d="'";else{d=d.substring(1,d.length-1);d=d.replace(/\'\'/,"'")}this.Vc.push({text:d,type:b});break}}};
q.Qx=function(a,b){var c=b?(a.getTimezoneOffset()-b.rP(a))*6E4:0,d=c?new Date(a.getTime()+c):a,f=d;if(b&&d.getTimezoneOffset()!=a.getTimezoneOffset()){c+=c>0?-86400000:864E5;f=new Date(a.getTime()+c)}for(var g=[],h=0;h<this.Vc.length;++h){var i=this.Vc[h].text;1==this.Vc[h].type?g.push(this.Usa(i,a,d,f,b)):g.push(i)}return g.join("")};q.cD=function(a){var b;if(a<4)b=Gw.zw[a];else if(a<8)b=Gw.IC[a-4];else if(a<12)b=Gw.zw[a-8]+" "+Gw.IC[a-8];else{this.cD(10);return}this.Sw(b)};
q.Tsa=function(a,b){var c=b.getFullYear()>0?1:0;return a>=4?Gw.wia[c]:Gw.BX[c]};q.fta=function(a,b){var c=b.getFullYear();if(c<0)c=-c;return a==2?bb(c%100,2):String(c)};q.Xsa=function(a,b){var c=b.getMonth();switch(a){case 5:return Gw.Ria[c];case 4:return Gw.ts[c];case 3:return Gw.EY[c];default:return bb(c+1,a)}};q.Psa=function(a,b){return bb(b.getHours()||24,a)};q.Vsa=function(a,b){var c=b.getTime()%1E3/1E3;return c.toFixed(Math.min(3,a)).substr(2)+(a>3?bb(0,a-3):"")};
q.Ssa=function(a,b){var c=b.getDay();return a>=4?Gw.YY[c]:Gw.OK[c]};q.Qsa=function(a,b){var c=b.getHours();return Gw.LW[c>=12&&c<24?1:0]};q.Osa=function(a,b){return bb(b.getHours()%12||12,a)};q.Msa=function(a,b){return bb(b.getHours()%12,a)};q.Nsa=function(a,b){return bb(b.getHours(),a)};q.ata=function(a,b){var c=b.getDay();switch(a){case 5:return Gw.jja[c];case 4:return Gw.mja[c];case 3:return Gw.lja[c];default:return bb(c,1)}};
q.bta=function(a,b){var c=b.getMonth();switch(a){case 5:return Gw.ija[c];case 4:return Gw.hja[c];case 3:return Gw.kja[c];default:return bb(c+1,a)}};q.Ysa=function(a,b){var c=Math.floor(b.getMonth()/3);return a<4?Gw.FY[c]:Gw.tY[c]};q.Rsa=function(a,b){return bb(b.getDate(),a)};q.Wsa=function(a,b){return bb(b.getMinutes(),a)};q.$sa=function(a,b){return bb(b.getSeconds(),a)};q.dta=function(a,b,c){c=c||Kw(b.getTimezoneOffset());return a<4?c.xxa(b):c.qva(b)};
q.eta=function(a,b,c){c=c||Kw(b.getTimezoneOffset());return a<4?c.hya(b):c.lwa(b)};q.cta=function(a,b){b=b||Kw(a.getTimezoneOffset());return b.Hya()};
q.Usa=function(a,b,c,d,f){var g=a.length;switch(a.charAt(0)){case "G":return this.Tsa(g,c);case "y":return this.fta(g,c);case "M":return this.Xsa(g,c);case "k":return this.Psa(g,d);case "S":return this.Vsa(g,d);case "E":return this.Ssa(g,c);case "a":return this.Qsa(g,d);case "h":return this.Osa(g,d);case "K":return this.Msa(g,d);case "H":return this.Nsa(g,d);case "c":return this.ata(g,c);case "L":return this.bta(g,c);case "Q":return this.Ysa(g,c);case "d":return this.Rsa(g,c);case "m":return this.Wsa(g,
d);case "s":return this.$sa(g,d);case "v":return this.cta(b,f);case "z":return this.eta(g,b,f);case "Z":return this.dta(g,b,f);default:return""}};var Nw=function(a){this.Vc=[];typeof a=="number"?this.cD(a):this.Sw(a)},Ow=80;q=Nw.prototype;
q.Sw=function(a){for(var b=l,c="",d=0;d<a.length;d++){var f=a.charAt(d);if(f==" "){if(c.length>0){this.Vc.push({text:c,Ff:0,xs:l});c=""}for(this.Vc.push({text:" ",Ff:0,xs:l});d<a.length-1&&a.charAt(d+1)==" ";)d++}else if(b)if(f=="'")if(d+1<a.length&&a.charAt(d+1)=="'"){c+="'";d++}else b=l;else c+=f;else if("GyMdkHmsSEDahKzZvQ".indexOf(f)>=0){if(c.length>0){this.Vc.push({text:c,Ff:0,xs:l});c=""}var g=this.Fwa(a,d);this.Vc.push({text:f,Ff:g,xs:l});d+=g-1}else if(f=="'")if(d+1<a.length&&a.charAt(d+1)==
"'"){c+="'";d++}else b=j;else c+=f}c.length>0&&this.Vc.push({text:c,Ff:0,xs:l});this.JFa()};q.cD=function(a){var b;if(a>11)a=10;b=a<4?Gw.zw[a]:a<8?Gw.IC[a-4]:Gw.zw[a-8]+" "+Gw.IC[a-8];this.Sw(b)};q.parse=function(a,b,c){var d=c||0;return this.c9(a,b,d,l)};q.FQa=function(a,b,c){var d=c||0;return this.c9(a,b,d,j)};
q.c9=function(a,b,c,d){for(var f=new Pw,g=[c],h=-1,i=0,m=0,n=0;n<this.Vc.length;n++)if(this.Vc[n].Ff>0){if(h<0&&this.Vc[n].xs){h=n;i=c;m=0}if(h>=0){var o=this.Vc[n].Ff;if(n==h){o-=m;m++;if(o==0)return 0}if(!this.hga(a,g,this.Vc[n],o,f)){n=h-1;g[0]=i}}else{h=-1;if(!this.hga(a,g,this.Vc[n],0,f))return 0}}else{h=-1;if(this.Vc[n].text.charAt(0)==" "){var p=g[0];this.Hfa(a,g);if(g[0]>p)continue}else if(a.indexOf(this.Vc[n].text,g[0])==g[0]){g[0]+=this.Vc[n].text.length;continue}return 0}return f.$ma(b,
d)?g[0]-c:0};q.Fwa=function(a,b){for(var c=a.charAt(b),d=b+1;d<a.length&&a.charAt(d)==c;)d++;return d-b};q.DR=function(a){if(a.Ff<=0)return l;var b="MydhHmsSDkK".indexOf(a.text.charAt(0));return b>0||b==0&&a.Ff<3};q.JFa=function(){for(var a=l,b=0;b<this.Vc.length;b++)if(this.DR(this.Vc[b])){if(!a&&b+1<this.Vc.length&&this.DR(this.Vc[b+1])){a=j;this.Vc[b].xs=j}}else a=l};q.Hfa=function(a,b){var c=a.substring(b[0]).match(/^\s+/);if(c)b[0]+=c[0].length};
q.hga=function(a,b,c,d,f){this.Hfa(a,b);var g=b[0],h=c.text.charAt(0),i=-1;if(this.DR(c))if(d>0){if(g+d>a.length)return l;i=this.xA(a.substring(0,g+d),b)}else i=this.xA(a,b);switch(h){case "G":f.g3=this.ro(a,b,Gw.BX);return j;case "M":return this.IQa(a,b,f,i);case "E":return this.GQa(a,b,f);case "a":f.TZ=this.ro(a,b,Gw.LW);return j;case "y":return this.KQa(a,b,g,i,c,f);case "Q":return this.JQa(a,b,f,i);case "d":f.bt=i;return j;case "S":return this.HQa(i,b,g,f);case "h":if(i==12)i=0;case "K":case "H":case "k":f.Sd=
i;return j;case "m":f.Ue=i;return j;case "s":f.$e=i;return j;case "z":case "Z":case "v":return this.NQa(a,b,f);default:return l}};q.KQa=function(a,b,c,d,f,g){var h;if(d<0){h=a.charAt(b[0]);if(h!="+"&&h!="-")return l;b[0]++;d=this.xA(a,b);if(d<0)return l;if(h=="-")d=-d}if(!h&&b[0]-c==2&&f.Ff==2)g.SOa(d);else g.Wm=d;return j};q.IQa=function(a,b,c,d){if(d<0){d=this.ro(a,b,Gw.ts);if(d<0)d=this.ro(a,b,Gw.EY);if(d<0)return l;c.av=d}else c.av=d-1;return j};
q.JQa=function(a,b,c,d){if(d<0){d=this.ro(a,b,Gw.tY);if(d<0)d=this.ro(a,b,Gw.FY);if(d<0)return l;c.av=d*3;c.bt=1;return j}return l};q.GQa=function(a,b,c){var d=this.ro(a,b,Gw.YY);if(d<0)d=this.ro(a,b,Gw.OK);if(d<0)return l;c.sM=d;return j};q.HQa=function(a,b,c,d){var f=b[0]-c;d.DS=f<3?a*Math.pow(10,3-f):Math.round(a/Math.pow(10,f-3));return j};q.NQa=function(a,b,c){if(a.indexOf("GMT",b[0])==b[0]){b[0]+=3;return this.rba(a,b,c)}return this.rba(a,b,c)};
q.rba=function(a,b,c){if(b[0]>=a.length){c.bW=0;return j}var d=1;switch(a.charAt(b[0])){case "-":d=-1;case "+":b[0]++}var f=b[0],g=this.xA(a,b);if(g==0&&b[0]==f)return l;var h;if(b[0]<a.length&&a.charAt(b[0])==":"){h=g*60;b[0]++;f=b[0];g=this.xA(a,b);if(g==0&&b[0]==f)return l;h+=g}else{h=g;if(h<24&&b[0]-f<=2)h*=60;else h=h%100+h/100*60}h*=d;c.bW=-h;return j};q.xA=function(a,b){var c=a.substring(b[0]).match(/^\d+/);if(!c)return-1;b[0]+=c[0].length;return parseInt(c[0],10)};
q.ro=function(a,b,c){for(var d=0,f=-1,g=a.substring(b[0]).toLowerCase(),h=0;h<c.length;h++){var i=c[h].length;if(i>d&&g.indexOf(c[h].toLowerCase())==0){f=h;d=i}}if(f>=0)b[0]+=d;return f};var Pw=function(){};Pw.prototype.SOa=function(a){var b=new Date,c=b.getFullYear()-Ow,d=c%100;this.Gla=a==d;a+=Math.floor(c/100)*100+(a<d?100:0);return this.Wm=a};
Pw.prototype.$ma=function(a,b){if(this.g3!=undefined&&this.Wm!=undefined&&this.g3==0&&this.Wm>0)this.Wm=-(this.Wm-1);this.Wm!=undefined&&a.setFullYear(this.Wm);var c=a.getDate();a.setDate(1);this.av!=undefined&&a.setMonth(this.av);this.bt!=undefined?a.setDate(this.bt):a.setDate(c);if(this.Sd==undefined)this.Sd=a.getHours();if(this.TZ!=undefined&&this.TZ>0)if(this.Sd<12)this.Sd+=12;a.setHours(this.Sd);this.Ue!=undefined&&a.setMinutes(this.Ue);this.$e!=undefined&&a.setSeconds(this.$e);this.DS!=undefined&&
a.setMilliseconds(this.DS);if(b&&(this.Wm!=undefined&&this.Wm!=a.getFullYear()||this.av!=undefined&&this.av!=a.getMonth()||this.bt!=undefined&&this.bt!=a.getDate()||this.Sd>=24||this.Ue>=60||this.$e>=60||this.DS>=1E3))return l;if(this.bW!=undefined){var d=a.getTimezoneOffset();a.setTime(a.getTime()+(this.bW-d)*60*1E3)}if(this.Gla){var f=new Date;f.setFullYear(f.getFullYear()-Ow);a.getTime()<f.getTime()&&a.setFullYear(f.getFullYear()+100)}if(this.sM!=undefined)if(this.bt==undefined){var g=(7+this.sM-
a.getDay())%7;if(g>3)g-=7;var h=a.getMonth();a.setDate(a.getDate()+g);if(a.getMonth()!=h)a.setDate(a.getDate()+(g>0?-7:7))}else if(this.sM!=a.getDay())return l;return j};var Qw=function(a,b){var c;c=na(a)?new Ol(a):new Ol;this.Pk=b||Gw;this.KSa=this.Pk.OK;c.eea(this.Pk.Dia);c.dea(this.Pk.Cia);this.R=c;this.Ge=this.R.wa();this.Ge.setDate(1);this.YJ=["","","","","","",""];this.YJ[this.Pk.ZY[0]]="goog-date-picker-wkend-start";this.YJ[this.Pk.ZY[1]]="goog-date-picker-wkend-end";this.j=new Aq(this);this.Su={}};A(Qw,Yi);q=Qw.prototype;q.rfa=j;q.UPa=j;q.Rra=j;q.fV=j;q.Bfa=j;q.lL=j;q.Afa=j;q.hQa=l;q.nx=l;q.P1=k;var Rw=0;q=Qw.prototype;q.lDa=function(){return this.nx};
q.kSa=function(){$(this.P2,this.Afa);$(this.O2,this.lL);$(this.tga,this.Afa||this.lL)};q.Jba=function(){this.Ge.add(new Nl("m",-1));this.$o()};q.Baa=function(){this.Ge.add(new Nl("m",1));this.$o()};q.eJa=function(){this.Ge.add(new Nl("y",-1));this.$o()};q.xGa=function(){this.Ge.add(new Nl("y",1));this.$o()};q.yda=function(){this.setDate(new Ol)};q.uda=function(){this.lL&&this.setDate(k)};q.getDate=function(){return this.R};
q.setDate=function(a){var b=l;if(a==k&&this.R!=k||a!=k&&this.R==k)b=j;else if(a==k)b=l;else if(a.getDate()!=this.R.getDate()||a.getMonth()!=this.R.getMonth()||a.getFullYear()!=this.R.getFullYear())b=j;this.R=na(a)?new Ol(a):k;if(a){this.Ge.G(this.R);this.Ge.setDate(1)}this.$o();var c=new Sw("select",this,this.R?this.R:k);this.dispatchEvent(c);if(b){var d=new Sw("change",this,this.R?this.R:k);this.dispatchEvent(d)}};
q.$Ra=function(){if(this.eN){for(var a=this.eN;a.firstChild;)a.removeChild(a.firstChild);var b=cm(a),c,d,f;if(this.hQa){c=b.createElement("td");c.colSpan=this.fV?1:2;this.Pg(c,"\u00ab",this.Jba);a.appendChild(c);c=b.createElement("td");c.colSpan=this.fV?6:5;c.className="goog-date-picker-monthyear";a.appendChild(c);this.dN=c;c=b.createElement("td");this.Pg(c,"\u00bb",this.Baa);a.appendChild(c)}else{var g=this.Pk.zw[0].toLowerCase();d=b.createElement("td");d.colSpan=5;this.Pg(d,"\u00ab",this.Jba);this.Rp=
this.Pg(d,"",this.TPa,"goog-date-picker-month");this.Pg(d,"\u00bb",this.Baa);f=b.createElement("td");f.colSpan=3;this.Pg(f,"\u00ab",this.eJa);this.zx=this.Pg(f,"",this.gQa,"goog-date-picker-year");this.Pg(f,"\u00bb",this.xGa);if(g.indexOf("y")<g.indexOf("m")){a.appendChild(f);a.appendChild(d)}else{a.appendChild(d);a.appendChild(f)}}}};
q.create=function(a){this.ze=a;var b=cm(a);a.className="goog-date-picker";var c=b.createElement("table"),d=b.createElement("thead"),f=b.createElement("tbody"),g=b.createElement("tfoot");yq(f,"grid");f.tabIndex="0";this.sga=f;this.tga=g;var h=b.h("tr","goog-date-picker-head");this.eN=h;this.$Ra();d.appendChild(h);var i;this.Ri=[];for(var m=0;m<7;m++){h=b.createElement("tr");this.Ri[m]=[];for(var n=0;n<8;n++){i=b.createElement(n==0||m==0?"th":"td");if((n==0||m==0)&&n!=m){i.className=n==0?"goog-date-picker-week":
"goog-date-picker-wday";yq(i,n==0?"rowheader":"columnheader")}h.appendChild(i);this.Ri[m][n]=i}f.appendChild(h)}h=b.h("tr","goog-date-picker-foot");i=b.h("td",{colSpan:2,className:"goog-date-picker-today-cont"});this.P2=this.Pg(i,"Hoje",this.yda);h.appendChild(i);i=b.h("td",{colSpan:4});h.appendChild(i);i=b.createElement("td");i.colSpan=2;i.className="goog-date-picker-none-cont";this.O2=this.Pg(i,"Nenhum",this.uda);h.appendChild(i);g.appendChild(h);this.kSa();c.cellSpacing="0";c.cellPadding="0";c.appendChild(d);
c.appendChild(f);c.appendChild(g);a.appendChild(c);this.nx=j;this.FJa();this.$o();this.j.g(f,"click",this.sAa);this.j.g(this.$O(a),"key",this.tAa);a.tabIndex=0};q.o=function(){Qw.f.o.call(this);this.ht();for(var a in this.Su)this.Su[a].l();delete this.Su;if(this.j){this.j.l();delete this.j}this.ze.innerHTML="";this.O2=this.P2=this.zx=this.dN=this.Rp=this.eN=this.tga=this.sga=this.Ri=this.ze=k};
q.sAa=function(a){if(a.target.tagName=="TD"){var b,c=-2,d=-2;for(b=a.target;b;b=b.previousSibling,c++);for(b=a.target.parentNode;b;b=b.previousSibling,d++);var f=this.Db[d][c];this.setDate(f.wa())}};
q.tAa=function(a){var b,c;switch(a.keyCode){case 33:a.preventDefault();b=-1;break;case 34:a.preventDefault();b=1;break;case 37:a.preventDefault();c=-1;break;case 39:a.preventDefault();c=1;break;case 38:a.preventDefault();c=-7;break;case 40:a.preventDefault();c=7;break;case 36:a.preventDefault();this.yda();case 46:a.preventDefault();this.uda();default:return}var d;if(this.R){d=this.R.wa();d.add(new Nl(0,b,c))}else{d=this.Ge.wa();d.setDate(1)}this.setDate(d)};
q.TPa=function(a){a.stopPropagation();for(var b=[],c=0;c<12;c++)b.push(this.Pk.ts[c]);this.MD(this.Rp,b,this.CAa,this.Pk.ts[this.Ge.getMonth()])};q.gQa=function(a){a.stopPropagation();for(var b=[],c=this.Ge.getFullYear()-5,d=0;d<11;d++)b.push(String(c+d));this.MD(this.zx,b,this.lBa,String(this.Ge.getFullYear()))};q.CAa=function(a){for(var b=a,c=-1;b;b=Am(b.previousSibling,l),c++);this.Ge.setMonth(c);this.$o();this.Rp.focus&&this.Rp.focus()};
q.lBa=function(a){if(a.firstChild.nodeType==3){this.Ge.setFullYear(Number(a.firstChild.nodeValue));this.$o()}this.zx.focus()};
q.MD=function(a,b,c,d){this.ht();var f=cm(a),g=f.h("div","goog-date-picker-menu");this.$u=k;for(var h=f.createElement("ul"),i=0;i<b.length;i++){var m=f.h("li",k,b[i]);if(b[i]==d)this.$u=m;h.appendChild(m)}g.appendChild(h);g.style.left=a.offsetLeft+a.parentNode.offsetLeft+"px";g.style.top=a.offsetTop+"px";g.style.width=a.clientWidth+"px";this.Rp.parentNode.appendChild(g);this.W=g;if(!this.$u)this.$u=h.firstChild;this.$u.className="goog-date-picker-menu-selected";this.BS=c;this.j.g(this.W,"click",this.B7);
this.j.g(this.$O(this.W),"key",this.C7);this.j.g(f.J(),"click",this.ht);g.tabIndex=0;g.focus()};q.B7=function(a){a.stopPropagation();this.ht();this.BS&&this.BS(a.target)};
q.C7=function(a){a.stopPropagation();var b,c=this.$u;switch(a.keyCode){case 35:a.preventDefault();b=c.parentNode.lastChild;break;case 36:a.preventDefault();b=c.parentNode.firstChild;break;case 38:a.preventDefault();b=c.previousSibling;break;case 40:a.preventDefault();b=c.nextSibling;break;case 13:case 9:case 0:a.preventDefault();this.ht();this.BS(c);break}if(b&&b!=c){c.className="";b.className="goog-date-picker-menu-selected";this.$u=b}};
q.ht=function(){if(this.W){var a=cm(this.W);this.j.Hb(this.W,"click",this.B7);this.j.Hb(this.$O(this.W),"key",this.C7);this.j.Hb(a.J(),"click",this.ht);a.removeNode(this.W);delete this.W}};q.Pg=function(a,b,c,d){var f=["goog-date-picker-btn"];d&&f.push(d);var g=cm(a),h=g.createElement("button");h.className=f.join(" ");h.appendChild(g.createTextNode(b));a.appendChild(h);this.j.g(h,"click",c);return h};
q.$o=function(){if(this.nx){var a=this.Ge.wa();a.setDate(1);this.dN&&Im(this.dN,Ll(this.Pk.ts[a.getMonth()],a.getFullYear()));this.Rp&&Im(this.Rp,this.Pk.ts[a.getMonth()]);this.zx&&Im(this.zx,String(a.getFullYear()));var b=a.qza(),c=a.W5();a.add(new Nl("m",-1));a.setDate(a.W5()-(b-1));this.rfa&&!this.Rra&&c+b<33&&a.add(new Nl("d",-7));var d=new Nl("d",1);this.Db=[];for(var f=0;f<6;f++){this.Db[f]=[];for(var g=0;g<7;g++){this.Db[f][g]=a.wa();a.add(d)}}this.EJa()}};
q.EJa=function(){if(this.nx)for(var a=this.Ge.getMonth(),b=new Ol,c=b.getFullYear(),d=b.getMonth(),f=b.getDate(),g=0;g<6;g++){if(this.fV){Im(this.Ri[g+1][0],this.Db[g][0].pza());W.G(this.Ri[g+1][0],"goog-date-picker-week")}else{Im(this.Ri[g+1][0],"");W.G(this.Ri[g+1][0],"")}for(var h=0;h<7;h++){var i=this.Db[g][h],m=this.Ri[g+1][h+1];if(!m.id)m.id="goog-dp-"+Rw++;yq(m,"gridcell");var n=["goog-date-picker-date"];if(this.UPa||i.getMonth()==a){i.getMonth()!=a&&n.push("goog-date-picker-other-month");
var o=(h+this.Ge.QO()+7)%7;this.YJ[o]&&n.push(this.YJ[o]);i.getDate()==f&&i.getMonth()==d&&i.getFullYear()==c&&n.push("goog-date-picker-today");if(this.R&&i.getDate()==this.R.getDate()&&i.getMonth()==this.R.getMonth()&&i.getFullYear()==this.R.getFullYear()){n.push("goog-date-picker-selected");zq(this.sga,"activedescendant",m.id)}if(this.P1){var p=this.P1(i);p&&n.push(p)}Im(m,i.getDate())}else Im(m,"");W.G(m,n.join(" "))}if(g>=4)$(this.Ri[g+1][0].parentNode,this.Db[g][0].getMonth()==a||this.rfa)}};
q.FJa=function(){if(this.nx){if(this.Bfa)for(var a=0;a<7;a++){var b=this.Ri[0][a+1],c=(a+this.Ge.QO()+7)%7;Im(b,this.KSa[(c+1)%7])}$(this.Ri[0][0].parentNode,this.Bfa)}};q.$O=function(a){var b=qa(a);b in this.Su||(this.Su[b]=new Br(a));return this.Su[b]};var Sw=function(a,b,c){ni.call(this,a);this.target=b;this.J1=c};A(Sw,ni);var Tw=function(a,b){this.ln=a instanceof yh?a:new yh(a,b)};A(Tw,rt);Tw.prototype.gb=function(a,b,c,d){dt(Oq(a),0,a,b,this.ln,c,k,d)};var Uw=function(a,b){this.Eba=4;this.PH=b||undefined;Et.call(this,a)};A(Uw,Et);var Vw=bt;Uw.prototype.LU=function(a){this.Eba=a;this.ga()&&this.gb()};Uw.prototype.setPosition=function(a){this.PH=a||undefined;this.ga()&&this.gb()};Uw.prototype.gb=function(){if(this.PH){var a=!this.ga()&&this.ka()!="move_offscreen",b=this.e();if(a){b.style.visibility="hidden";$(b,j)}this.PH.gb(b,this.Eba,this.Vz);a&&$(b,l)}};var Ww=tt;var Xw=function(a,b){vr.call(this,b);this.Pi=a||new Qw};A(Xw,vr);q=Xw.prototype;q.Pi=k;q.Na=k;q.WG=k;q.rp=j;q.h=function(){Xw.f.h.call(this);this.e().className="goog-popupdatepicker";this.Na=new Uw(this.e())};q.Da=function(){Xw.f.Da.call(this);if(!this.Pi.lDa()){var a=this.e();this.Pi.create(a);a.style.visibility="hidden";$(a,l)}this.Ha().g(this.Pi,"change",this.mA)};q.o=function(){Xw.f.o.call(this);if(this.Na){this.Na.l();this.Na=k}this.Pi.l();this.WG=this.Pi=k};q.ue=function(){return l};
q.getDate=function(){return this.Pi.getDate()};q.setDate=function(a){this.Pi.setDate(a)};q.attach=function(a){this.Ha().g(a,"mousedown",this.wfa)};q.detach=function(a){this.Ha().Hb(a,"mousedown",this.wfa)};q.Bo=function(a){this.rp=a};q.VPa=function(a){this.WG=a;this.Na.setPosition(new st(a,5));this.Ha().Hb(this.Pi,"change",this.mA);this.Pi.setDate(k);this.dispatchEvent("show");this.Ha().g(this.Pi,"change",this.mA);this.Na.H(j);this.rp&&this.e().focus()};q.wfa=function(a){this.VPa(a.currentTarget)};
q.OQ=function(){this.Na.H(l);this.rp&&this.WG&&this.WG.focus()};q.mA=function(a){this.OQ();this.dispatchEvent(a)};var Yw=function(a,b,c,d){vr.call(this,d);this.K1=a;this.L1=b;this.Gd=new Xw(c,d);this.Wb(this.Gd);this.Gd.Bo(l)};A(Yw,vr);q=Yw.prototype;q.K1=k;q.L1=k;q.Gd=k;q.Fba=k;q.getDate=function(){var a=this.ZO(),b=this.Gd.getDate();if(a&&b)a.tc(b)||this.Gd.setDate(a);else this.Gd.setDate(k);return a};q.setDate=function(a){this.Gd.setDate(a)};q.dB=function(a){var b=this.e();if(b.hh)b.hh.Qa(a);else b.value=a};q.qq=function(){var a=this.e();return a.hh?a.hh.ca():a.value};
q.ZO=function(){var a=Ha(this.qq());if(a){var b=new Pl;if(this.L1.FQa(a,b)>0)return b}return k};q.h=function(){this.Ud(this.M().h("input",{type:"text"}));this.Gd.h()};q.Da=function(){Yw.f.Da.call(this);var a=this.e();(this.Fba||this.M().J().body).appendChild(this.Gd.e());this.Gd.Da();this.Gd.attach(a);this.Gd.setDate(this.ZO());var b=this.Ha();b.g(this.Gd,"change",this.mA);b.g(this.Gd,"show",this.IHa)};q.Ic=function(){Yw.f.Ic.call(this);var a=this.e();this.Gd.detach(a);this.Gd.Ic();Z(this.Gd.e())};
q.Pc=function(a){Yw.f.Pc.call(this,a);this.Gd.h()};q.o=function(){Yw.f.o.call(this);this.Gd.l();this.Fba=this.Gd=k};q.OQ=function(){this.Gd.OQ()};q.IHa=function(){this.setDate(this.ZO())};q.mA=function(a){this.dB(a.J1?this.K1.Qx(a.J1):"")};var bx=function(a){var b=Y("knol-advancedsearch-form"),c=Y("knol-advancedsearch-button"),d=new Tr("Pesquisar");d.Z(b);c.value="";c.style.width=0;c.style.height=0;c.style.border="none";U(d,"action",function(){b.submit()});var f=Y("knol-advancedsearch-showhide");f&&U(f,"click",Zw);var g=Y("knol-advancedsearch-selectall");g&&U(g,"click",function(){$w(j)});var h=Y("knol-advancedsearch-unselectall");h&&U(h,"click",function(){$w(l)});var i=Y("knol-advancedsearch-doctype");if(i){ax(a);U(i,"change",z(ax,
k,a))}this.cka()};t("knol.ui.client.AdvancedSearchForm",bx,void 0);
var Zw=function(){var a=Y("knol-advancedsearch-showhide"),b=Y("knol-advancedsearch-options"),c=Y("knol-advancedsearch-showhide-input");if(a&&b){var d=b.style.display!="none",f=!d;a.innerHTML=d?"Mostrar op\u00e7\u00f5es":"Ocultar op\u00e7\u00f5es";b.style.visibility=f?"visible":"hidden";b.style.display=f?"":"none";if(c)c.value=f?"on":"off"}},$w=function(a){for(var b=0;b<In.length;b++){var c="knol-advancedsearch-loc-"+b,d=Y(c);if(d)d.checked=a}},ax=function(a){var b=Y("knol-advancedsearch-doctype"),
c=new Iu(b,l,l,1),d;Xb(c,function(g){if(r(g.selected)&&g.selected)d=g.value});var f=d==2;cx(!f,[0,5]);dx(d,a);ex(d)},cx=function(a,b){for(var c=0;c<In.length;c++)if(!b||!Db(b,c)){var d="knol-advancedsearch-loc-"+c,f=Y(d);if(f)f.disabled=!a}},dx=function(a,b){var c=Y("knol-restrict-radio-list"),d=new Iu(c,l,l,1),f;Xb(d,function(i){if(r(i.checked)&&i.checked)f=i.value});var g=undefined,h=Y("knol-restrict-url");if(h)g=h.value;c&&Ek(z(function(i,m,n){var o=new Hn(l);o.n_=n;var p=o.Mxa(m,f,g);i.innerHTML=
p.v()},k,c,a,b))},ex=function(a){var b=Y("knol-advancedsearch-topstat");if(b)b.innerHTML=a==3?"Mostrar apenas os autores com o maior n\u00famero de:":"Mostrar apenas os knols com o maior n\u00famero de:"};bx.prototype.cka=function(){this.pJ("knol-advancedsearch-start-dateedited");this.pJ("knol-advancedsearch-end-dateedited");this.pJ("knol-advancedsearch-start-datecreated");this.pJ("knol-advancedsearch-end-datecreated")};
bx.prototype.pJ=function(a){var b=Y(a);if(b){var c=new Lw("MM'/'dd'/'yyyy"),d=new Nw("MM'/'dd'/'yyyy"),f=new Yw(c,d);f.Sa(b)}};var fx=function(){var a=Y("knol-advancedsearch-visibility-published"),b=Y("knol-advancedsearch-visibility-publishedOverride");a&&b&&U(a,"click",function(){b.value=a.checked})};t("knol.ui.client.AdvancedSearchForm.enforcePublishCheckbox",fx,void 0);var hx=function(a){if(eg()==a){var b=gx(),c=Y("knol-author-profile-button");if(c){c.appendChild(b.aj());c.appendChild(document.createElement("br"));var d,f=bg(),g=dk("Settings")+(f?"?back="+f:""),h=I({b:"a",href:g,d:"Editar minhas prefer\u00eancias"});d=h;c.appendChild(d.aj())}var i=Y("knol-author-profile-badge-unauth");i&&rs()&&Dq(i,"display","")}};t("knol.ui.client.Author",hx,void 0);
var gx=function(){var a=new Md(document.location.href);a.Fo("");a.P("profile_edited","1");var b=new Md("http://www.google.com/s2/profiles/me/editprofile");b.P("service","knol");b.P("continue",a.toString());var c=I({b:"a",href:b.toString(),d:"Editar o meu perfil"});return c};var kx=function(a,b,c,d){if(a&&!b)e(Error("Can't use invisible history without providing a blank page."));var f;if(c)f=c;else{var g="history_state"+ix;document.write(ya('<input type="text" name="%s" id="%s" style="display:none" />',g,g));f=dm(g)}this.iz=f;this.Ee=c?nm(bm(c)):window;this.xL=this.Ee.location.href.split("#")[0]+"#";this.jG=b;if(F&&!b)this.jG=window.location.protocol=="https"?"https:///":'javascript:""';this.Hd=new $i(150);this.ks=!a;this.j=new Aq(this);if(a||F&&!jx){var h;if(d)h=d;else{var i=
"history_iframe"+ix,m=this.jG?'src="'+Ra(this.jG)+'"':"";document.write(ya('<iframe id="%s" style="display:none" %s></iframe>',i,m));h=dm(i)}this.Eb=h;this.Qga=j}if(F&&!jx){this.j.g(this.Ee,"load",this.Taa);this.jfa=this.YM=l}this.ks?this.FU(this.uf(),j):this.Iv(this.iz.value);ix++};A(kx,Yi);kx.prototype.La=l;kx.prototype.gH=l;kx.prototype.Tu=k;var jx=F&&document.documentMode>=8||H&&Ne("1.9.2")||we&&Ne("532.1");q=kx.prototype;q.Wu=k;q.o=function(){kx.f.o.call(this);this.j.l();this.ba(l)};
q.ba=function(a){if(a!=this.La)if(F&&!jx&&!this.YM)this.jfa=a;else if(a){if(ve)this.j.g(this.Ee.document,lx,this.kIa);else H&&this.j.g(this.Ee,"pageshow",this.oA);if(jx&&this.ks){this.j.g(this.Ee,"hashchange",this.nHa);this.La=j;this.dispatchEvent(new mx(this.uf()))}else if(!F||this.YM){this.j.g(this.Hd,"tick",this.wp);this.La=j;if(!F)this.Tu=this.uf();this.Hd.start();this.dispatchEvent(new mx(this.uf()))}}else{this.La=l;this.j.fb();this.Hd.stop()}};
q.Taa=function(){this.YM=j;this.iz.value&&this.Iv(this.iz.value,j);this.ba(this.jfa)};q.oA=function(a){if(a.Xg().persisted){this.ba(l);this.ba(j)}};q.nHa=function(){var a=this.nF(this.Ee);a!=this.Tu&&this.sW(a)};q.uf=function(){return this.Wu!==k?this.Wu:this.ks?this.nF(this.Ee):this.XO()||""};q.No=function(a,b){this.FNa(a,l,b)};q.nF=function(a){var b=a.location.href,c=b.indexOf("#");return c<0?"":b.substring(c+1)};
q.FNa=function(a,b,c){if(this.uf()!=a)if(this.ks){this.FU(a,b);jx||F&&this.Iv(a,b,c);this.La&&this.wp()}else{this.Iv(a,b);this.Wu=this.Tu=this.iz.value=a;this.dispatchEvent(new mx(a))}};q.FU=function(a,b){var c=this.xL+(a||""),d=this.Ee.location;if(c!=d.href)if(b)d.replace(c);else d.href=c};
q.Iv=function(a,b,c){if(this.Qga||a!=this.XO()){this.Qga=l;a=Ka(a);if(F){var d=Hm(this.Eb);d.open("text/html",b?"replace":undefined);d.write(ya("<title>%s</title><body>%s</body>",Ra(c||this.Ee.document.title),a));d.close()}else{var f=this.jG+"#"+a,g=this.Eb.contentWindow;if(g)if(b)g.location.replace(f);else g.location.href=f}}};
q.XO=function(){if(F){var a=Hm(this.Eb);return a.body?La(a.body.innerHTML):k}else{var b=this.Eb.contentWindow;if(b){var c;try{c=La(this.nF(b))}catch(d){this.gH||this.qea(j);return k}this.gH&&this.qea(l);return c||k}else return k}};q.wp=function(){if(this.ks){var a=this.nF(this.Ee);a!=this.Tu&&this.sW(a)}if(!this.ks||F&&!jx){var b=this.XO()||"";if(this.Wu==k||b==this.Wu){this.Wu=k;b!=this.Tu&&this.sW(b)}}};
q.sW=function(a){this.Tu=this.iz.value=a;if(this.ks){F&&!jx&&this.Iv(a);this.FU(a)}else this.Iv(a);this.dispatchEvent(new mx(this.uf()))};q.qea=function(a){if(this.gH!=a)this.Hd.setInterval(a?1E4:150);this.gH=a};q.kIa=function(){this.Hd.stop();this.Hd.start()};var lx=["mousedown","keydown","mousemove"],ix=0,mx=function(a){ni.call(this,"navigate");this.token=a};A(mx,ni);var nx=function(a,b){this.ib=new Md(a);this.hna=b?b:"callback";this.wh=5E3},ox=0;nx.prototype.wOa=function(a){this.wh=a};
nx.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return k}var f=d||"_"+(ox++).toString(36)+ua().toString(36);ba._callbacks_||(ba._callbacks_={});var g=document.createElement("script"),h=k;if(this.wh>0){var i=px(f,g,a,c);h=ba.setTimeout(i,this.wh)}var m=this.ib.wa(),n=a,o=m;for(var p in n)if(!n.hasOwnProperty||n.hasOwnProperty(p))o.QI(p,n[p]);if(b){var s=qx(f,g,b,h);ba._callbacks_[f]=s;m.QI(this.hna,"_callbacks_."+f)}jm(g,{type:"text/javascript",id:f,charset:"UTF-8",
src:m.toString()});var u=document.getElementsByTagName("head")[0];u.appendChild(g);return{Fa:f,wh:h}};nx.prototype.ce=function(a){if(a&&a.Fa){var b=dm(a.Fa);if(b&&b.tagName=="SCRIPT"&&typeof ba._callbacks_[a.Fa]=="function"){a.wh&&ba.clearTimeout(a.wh);rx(a.Fa,b,l)}}};
var px=function(a,b,c,d){return function(){rx(a,b,l);d&&d(c)}},qx=function(a,b,c,d){return function(){ba.clearTimeout(d);rx(a,b,j);c.apply(undefined,arguments)}},rx=function(a,b,c){ba.setTimeout(function(){Z(b)},0);if(ba._callbacks_[a])if(c)delete ba._callbacks_[a];else ba._callbacks_[a]=da};var vx=function(){this.Cfa=j;var a=sx(dg().p()),b={entity:{url:a,groups:["public"]},backgroundColor:"ffffff",descriptionNodeId:"knol-zipit-user-desc"};tx("NumRatings","knol-zipit-count",b);tx("RatingEditor","knol-zipit-user",b);rg()&&ux("knol-zipit-user")};D(vx,Go);t("knol.ui.client.Zipit",vx,void 0);
var wx="http://knol.google.com/k/-/-/",xx=l,sx=function(a){if(!xx&&$e("experimentId")!="prod")wx="http://"+window.location.host+"/k/-/-/";xx=j;return wx+a.replace(".","/")},yx=new ki,zx=function(){U(window,"load",function(){if(!(typeof google=="undefined"||typeof google.annotations=="undefined")){google.annotations.setApplicationId(31);google.annotations.setInlineMode(j);yx.sa()}})};vx.initialize=zx;
var Ax=l,tx=function(){var a=arguments;yx.k(function(){google.annotations.create.apply(google.annotations,a);if(!Ax){Ax=j;ba.setTimeout(function(){Ax=l;google.annotations.fetch()},0)}})};vx.prototype.refresh=function(){google.annotations.fetch()};vx.prototype.e=function(){return Y("knol-zipit-container")};
var ux=function(a){var b=Y(a),c=b&&b.firstChild,d=c&&c.lastChild;if(d){if(d.tagName=="IMG"&&d.className=="zzRightEdge"){var f=c.firstChild;c.appendChild(f.nextSibling);c.appendChild(f);c.insertBefore(d,c.firstChild)}}else{var g=Bx[a]||0;if(++g<=10){ba.setTimeout(z(ux,k,a),500);Bx[a]=g}}},Bx={},Cx=function(){var a=dg(),b=eg(),c=sx(a.p()),d={entity:{url:c,groups:["public"]},backgroundColor:"ffffff",textColor:"54494C"};tx("NumUsersFoundThisHelpful","knol-review-zipit-ratings",d);Ek(function(){var f=
a.mna(b);if(f){var g=Y("knol-review-zipit-user-msg");g.style.display="block";tx("VotingEditor","knol-review-zipit-user",d)}},z(Vt,k,"review zipit"))};D(Cx,Jo);t("knol.ui.client.ReviewZipit",Cx,void 0);Cx.prototype.refresh=function(){google.annotations.fetch()};Cx.prototype.e=function(){return Y("knol-review-zipit-container")};var Dx=function(){},Ex=function(a,b,c){if(a&&b){var d=E(Dx);d.Wma(a,b,c||"")}};t("knol.ui.client.ZipitDisplay.initContainer",Ex,void 0);
Dx.prototype.Wma=function(a,b,c){var d=Y(a);if(d){var f=new Iu(d);Xb(f,function(g){var h=g.id,i=a+"-zipit-display-";if(h&&wa(h,i)){var m=h.substring(i.length).split("-zipit-separator-");if(m.length==1){var n=Fx(m[0]),o=sx(n),p={entity:{url:o,groups:["public"]},backgroundColor:c,width:"70",height:"10"},s=Io(h),u=Y(s);u&&W.add(u,"knol-zipit-widget-created")&&tx("NumRatings",s,p)}else if(m.length==2){var v=Fx(m[0]),x=Fx(m[1]);o=sx(v);var y=x;p={entity:{url:o,groups:["public"],author:y},backgroundColor:c,
width:"70",height:"10"};tx("RatingDisplay",h,p)}}})}};var Fx=function(a){if(!a)return a;var b=a.indexOf("-zipit-disambiguator-");if(b>=0)return a.substring(0,b);return a};Dx.prototype.refresh=function(){google.annotations.fetch()};var Gx=function(){this.oha={};this.wI=wa(window.location.href,"http://knol.google.com/")?this.hMa:this.iMa};q=Gx.prototype;q.hMa=function(a,b,c,d){var f=["req="+Ka(Fd(b))];c!=k&&f.unshift("token="+c);vj(a,this.TSa(d),"POST",f.join("&"))};q.iMa=function(a,b,c,d){var f={req:Fd(b)};if(c!=k)f.token=c;var g=new nx(a);g.send(f,d)};q.J$=function(a,b,c){var d=this;return function(f){a.call(d,f,b,c)}};q.TSa=function(a){return function(b){b.target.yk()&&a(b.target.mk())}};
q.lookup=function(a,b,c){for(var d=[],f=0;f<a.length;f++){var g={},h=sx(a[f]);this.oha[h]=a[f];g.url=h;g.groups=["public"];g.includeAggregateInfo=j;d.push(g)}var i={};i.applicationId=31;i.entities=d;this.wI("http://knol.google.com/reviews/json/lookup",i,k,this.J$(this.tQ,b,c))};
q.tQ=function(a,b,c){this.hda(a);var d=a&&a.annotations;if(d)for(var f=0;f<d.length;f++){var g=d[f].entity,h=g&&g.url,i=h&&this.oha[h],m=d[f].aggregateInfo;if(i&&m){var n=d[f].starRating||0,o=m&&m.starRatings,p=[0,0,0,0,0,0];if(o)for(var s=0;s<o.length;s++){var u=o[s].rating,v=o[s].count;if(u!=undefined&&v!=undefined)p[u]=v}b.call(c,i,n,p)}}};q.hda=function(a){var b=a&&a.channelHeader,c=b&&b.token;if(c)this.Af=c};
q.tJa=function(a,b,c,d){if(this.Af){var f={};f.url=sx(a);f.groups=["public"];var g={};g.entity=f;g.starRating=b;var h={};h.applicationId=31;h.annotations=[g];this.wI("http://knol.google.com/reviews/json/write",h,this.Af,this.J$(this.jBa,c,d))}};q.jBa=function(a,b,c){this.hda(a);b.call(c)};var Hx=function(){this.lf=new Aq;this.ls={};this.ym={};this.fK=new Gx};Hx.prototype.add=function(a){this.ym[a]||(this.ym[a]=new Ix(this.fK,a));if(!this.ls[a]){var b=new Jx(this.ym[a],a);b.SJa(this.lf);this.ls[a]=b}};Hx.prototype.IJa=function(){var a=[];for(var b in this.ls)this.ym[b].vBa()?this.ls[b].refresh():a.push(b);a.length&&this.fK.lookup(a,this.tQ,this)};Hx.prototype.fb=function(){this.ls={};this.lf.l();this.lf=new Aq};
Hx.prototype.tQ=function(a,b,c){if(this.ym[a]){this.ym[a].setData(b,c);this.ls[a]&&this.ls[a].refresh()}};var Ix=function(a,b){this.fK=a;this.Fa=b;this.tu=l};q=Ix.prototype;q.setData=function(a,b){this.tu=j;this.iC=a;this.gG=b};q.vBa=function(){return this.tu};q.Ota=function(){return this.tu?this.gG[5]:0};q.Dwa=function(){return this.tu?this.gG[1]:0};q.mza=function(){if(this.tu)if(this.iC==5)return j;else if(this.iC==1)return l;return k};
q.xha=function(a,b,c){if(this.tu){var d=a?5:1;if(d!=this.iC){this.gG[this.iC]--;this.gG[d]++;this.iC=d;this.fK.tJa(this.Fa,d,b,c)}}};var Jx=function(a,b){this.xm=a;this.Fa=b};Jx.prototype.SJa=function(a){var b=Y("knol-comment-aye-"+this.Fa);b&&a.g(b,"click",this.Eza,l,this);var c=Y("knol-comment-nay-"+this.Fa);c&&a.g(c,"click",this.GAa,l,this)};
Jx.prototype.refresh=function(){var a=this.xm.Ota()-this.xm.Dwa(),b=Y("knol-comment-votes-num-"+this.Fa);if(b){b.innerHTML=(a>0?"+":"")+String(a);b.className=a>0?"knol-comment-votes-positive":a<0?"knol-comment-votes-negative":"knol-comment-votes-zero"}var c=this.xm.mza(),d="knol-comment-voted",f=Y("knol-comment-aye-"+this.Fa);if(f)c==j?W.add(f,d):W.remove(f,d);var g=Y("knol-comment-nay-"+this.Fa);if(g)c==l?W.add(g,d):W.remove(g,d)};Jx.prototype.Eza=function(a){this.xm.xha(j,this.refresh,this);a.preventDefault()};
Jx.prototype.GAa=function(a){this.xm.xha(l,this.refresh,this);a.preventDefault()};var Kx=function(a){var b=Ej(ag(),"getFreshProperties",[a]);b.k(function(c){O().Vb(c)});b.w(function(c){Vt(k,c)});return b},Lx=function(a,b){var c=ag(),d=eg(),f=new Hk(uk(c),"isBlocked");f.ma([d],function(g){g&&a.call(b)},function(){Ut()},j)};var Mx=function(a,b,c,d,f,g){this.V=new Aq(this);this.ci=a;this.Dk=b;this.Nj=c;this.Pha=d;this.u_=f;this.Zma=g;this.PL();if(g){var h=ca(c).prototype,i=0,m=h.ji,n=h.uF(i,m);this.cr(n,j)}};D(Mx,Yi);var Nx={},Ox=function(a,b,c,d,f,g){if(!Nx[a]){if(!b||!c)return k;Nx[a]=new Mx(a,b||"",c||"",d||"",f||"",g||l)}return Nx[a]},Px=function(a,b,c,d,f,g){var h=Ox(a,b,c,d,f,g=="true");h.wea();Ex(h.ci,h.Pha,h.u_);h.Ib()};t("knol.ui.client.NodeList.initPage",Px,void 0);q=Mx.prototype;
q.wea=function(a){this.uA=a||[];var b=Y(this.ci),c=Y("knol-nodelist-page-key-"+this.ci),d=k;if(b&&c)for(var f=c.getElementsByTagName("span"),g=0;g<f.length;g++){var h=f[g].className;if(wa(h,"knol-nodelist-page-key-")){var i=h.substring(23);if(!Db(this.uA,i)){this.uA.push(i);if(!this.nl[i]){d||(d=Jm(b));this.nl[i]=d}}}}};
q.Ib=function(){var a=Y(this.ci);if(a){for(var b=a.getElementsByTagName("a"),c=0;c<b.length;c++){var d=b[c].className;if(wa(d,"knol-nodelist-pagination-")){var f=z(this.cr,this,d.substring(25),l);this.V.g(b[c],"click",f)}}this.dispatchEvent("listen")}};q.Wc=function(){this.dispatchEvent("unlisten");this.V.fb()};
q.cr=function(a,b){var c=new ki;if(Db(this.uA,a)){c.sa();return c}if(this.nl[a])c.sa();else{c=V("knol.ui.NodeList.getPage",[this.Dk,this.Nj,a,bg()],this.Zma);c.k(function(d){this.dispatchEvent("load");this.nl[a]=d},this)}c.k(function(){var d=this.nl[a];if(d){var f=document.createElement("div");f.innerHTML=d;var g=Y(this.ci),h=g.parentNode,i=g.nextSibling;this.Wc();h.removeChild(g);h.insertBefore(f.firstChild,i);this.wea([a]);Ex(this.ci,this.Pha,this.u_);this.Ib();b||this.VLa()}},this);c.w(function(d){Ut("Error encountered while fetching node list",
k,d)});return c};q.$wa=function(){return this.uA};q.PL=function(){this.uA=[];this.nl={}};q.VLa=function(){Yu(Y(this.ci))};q.rya=function(){return this.Swa("knol-nodelist-start-")};q.Y_=function(a){this.Z_("knol-nodelist-items-",a);this.Z_("knol-nodelist-total-",a)};q.Swa=function(a){var b=Y(a+this.ci);return b&&parseInt(b.innerHTML,10)};q.Z_=function(a,b){var c=Y(a+this.ci);if(c)c.innerHTML=String(Math.max(0,parseInt(c.innerHTML,10)+b))};var Qx=function(a,b,c){Ek(z(this.wPa,this,a,b,c))};D(Qx,ro);t("knol.ui.client.DiscussionView",Qx,void 0);Qx.prototype.wPa=function(a,b,c){var d=a||O();ro.call(this,d,b,c);if(this.La=this.Mn()){this.V=new Aq(this);this.Haa=new Aq(this);this.Nq={};this.ym=new Hx;if(!(this instanceof Rx))this.pZa=new Rx(d,"knol-comment-pending-list",z(this.rw,this))}};var Sx=function(){return C("knol.ui.client.DiscussionView")};q=Qx.prototype;
q.rw=function(){var a=Ox(this.Mb());if(a){this.Haa.g(a,"listen",this.CCa);this.Haa.g(a,"unlisten",this.eI)}this.dl()};q.Tna=function(){var a=Ox(this.Mb());a&&a.PL()};q.eI=function(){this.V.fb();this.ym.fb()};q.CCa=function(a){this.dl();var b=a.target.$wa()[0];if(b){var c=uv();if(!c||c=="view"||c=="comments"||wa(c,"view-comment-")||wa(c,"comment-")){var d=this.d0(b),f=d?"comment-"+d:"view-comment-"+b;if(c!=f||d){this.lT=f;vv(f)}}}};
q.dl=function(){var a=O(),b=P(),c=k;if(b){Tx(j);c=b.ej()}else{Tx(l);Y("knol-comment-new-sign-in").style.display=""}this.V.g(Y("knol-comment-new-show"),"click",z(Zu,k,"knol-comment-new",k,"knol-comment-new-show"));var d=Y("knol-comment-new-submit");this.V.g(d,"click",z(this.dM,this,ag(),l,"knol-comment-new-text","knol-comment-new-title"));if(b&&c){var f="Enviar coment\u00e1rio para este knol como "+c,g="Enviar coment\u00e1rio para esta cole\u00e7\u00e3o como "+c,h=a&&a.ya();d.innerHTML=h?g:f}var i=
Y("knol-comment-new-title"),m=Y("knol-comment-new-text");this.aS([i,m],d);this.BCa(m);this.Bha(m);var n=Y("comments");this.RSa(n,c);this.SSa(n);this.QSa(n);this.OSa(n);this.tra(n);this.PSa(n)};q.BCa=function(a){if(!r(this.Uz))this.Uz=a.className=="knol-comment-lorem-ipsum"?a.value:k};
q.Bha=function(a){if(a&&this.Uz){this.V.g(a,"focus",function(){if(a.className=="knol-comment-lorem-ipsum"){a.className="";a.value=""}});this.V.g(a,"blur",function(){if(!a.value){a.className="knol-comment-lorem-ipsum";a.value=this.Uz}})}};
q.RSa=function(a,b){for(var c=fm("a","knol-comment-my-reply-submit",a),d=0;d<c.length;d++){var f=c[d],g=f.id.replace("knol-comment-reply-link-","");if(b!=k){var h="knol-comment-reply-"+g;this.V.g(f,"click",z(this.dM,this,g,j,h));var i=Y("knol-comment-reply-"+g);this.aS([i],f);this.Bha(i);var m="Postar resposta para este coment\u00e1rio como "+b;f.innerHTML=m}else{Z(c[d].parentNode);var n=Y("knol-comment-reply-sign-in-"+g);if(n)n.style.display=""}}};
q.SSa=function(a){for(var b=fm("a","knol-comment-replies-toggle",a),c=0;c<b.length;c++){var d=b[c],f=k,g=k,h=k;if(d.className.indexOf("knol-comment-replies-hide-toggle")!=-1){g=d.id.replace("knol-comment-replies-hide-toggle","");f=d.id.replace("knol-comment-replies-hide-toggle","knol-comment-replies-show-toggle");h=$u}else{g=d.id.replace("knol-comment-replies-show-toggle","");f=d.id.replace("knol-comment-replies-show-toggle","knol-comment-replies-hide-toggle");h=this.n3}var i="knol-comment-replies-"+
g;this.V.g(d,"click",z(h,this,i,f,d.id))}};
q.QSa=function(a){var b=fm("a","knol-comment-remove-link",a);vb(b,function(c){var d=W.z(c),f=[],g=l;vb(d,function(v){v.indexOf("knol-comment-authorid-")==0&&f.push(v.replace("knol-comment-authorid-",""));if(v.indexOf("knol-comment-too-many-replies-")==0)g=j});var h=P(),i=eg(),m=c.id.replace("knol-comment-remove-link-",""),n=Y("knol-comment-edit-link-"+m),o=Y("knol-comment-save-link-"+m),p=Y("knol-comment-cancel-link-"+m);if(h&&(h.ig()||f[0]==i)){n.style.display="";this.V.g(n,"click",z(this.era,this,
m));this.V.g(o,"click",z(this.SRa,this,m));this.V.g(p,"click",z(this.jLa,this,m));var s=Y("knol-comment-text-editor-"+m);this.aS([s],o)}else{Z(n);Z(o);Z(p)}if(h&&(h.Cb()||!g&&f.length==1&&f[0]==i)){c.style.display="";this.V.g(c,"click",z(Xt,k,"Excluir post","Tem certeza de que deseja excluir esse post?",z(this.uca,this,m,j),undefined,undefined));var u=Y("knol-comment-hide-link"+m);u&&Z(u)}else if(g)c.style.display="none";else Z(c)},this)};
q.OSa=function(a){var b=O(),c=P(),d=b.fc(eg())||c&&c.Cb(),f=fm("span","knol-comment-action-link-span",a);vb(f,function(h){var i=h.id.replace("knol-comment-action-link-span-",""),m=Y("knol-report-link-"+i),n=Y("knol-report-hide-link-"+i),o=Y("knol-report-send-link-"+i);m&&this.V.g(m,"click",z(this.Cca,this,i));n&&this.V.g(n,"click",z(this.Dca,this,i));o&&this.V.g(o,"click",z(this.jMa,this,i));var p=Y("knol-comment-hide-link"+i);if(p)if(d){p.style.display="";this.V.g(p,"click",z(Xt,k,"Remover coment\u00e1rio",
"Tem certeza de que deseja remover este item e suas respostas da sua entrada do knol?",z(this.uca,this,i,l),"Remover coment\u00e1rio","Cancelar"))}else Z(p);var s=Y("knol-comment-block-link-"+i),u=Y("knol-abuse-block-div-"+i);if(s&&s.style.display!="")if(d){var v=V("knol.ui.DiscussionView.isBlockable",[i,ag()]);v.k(function(y){if(y){var B=s.name.replace("knol-comment-block-name-","");if(s.style.display!=""){this.V.g(s,"click",z(this.zba,this,i,B));s.style.display=""}}else Z(s)},this);v.w(function(){Vt()},
this)}else Z(s);else if(s){var x=s.name.replace("knol-comment-block-name-","");this.V.g(s,"click",z(this.zba,this,i,x));if(u)u.style.display=""}},this);var g=fm("a","knol-comment-approve-link",a);vb(g,function(h){var i=h.id.replace("knol-comment-approve-link-","");if(d){this.V.g(h,"click",z(this.Tla,this,i));h.style.display=""}},this)};q.tra=function(a){var b=E(iw).Js(),c=fm("a","knol-comment-invite-link",a);vb(c,function(d){if(b)d.style.display="";else Z(d)})};
q.PSa=function(a){var b=fm("span","knol-comment-rating",a),c=this.ym;vb(b,function(d){var f=d.id;if(wa(f,"knol-comment-rating-")){f=f.replace("knol-comment-rating-","");c.add(f)}});c.IJa()};
q.n3=function(a,b,c){var d=Y(a),f;if(d){f=new ki;f.sa()}else{var g=a.replace("knol-comment-replies-",""),h="knol-comment-action-spinner-"+g;if(!this.Uf(h,j))return;f=V("knol.ui.DiscussionView.createRepliesAsString",[g]);f.k(function(i){this.Uf(h,l);var m=rm("div");m.innerHTML=i;xm(m.firstChild,Y("comment-"+g));m.firstChild&&this.lSa(g,m.firstChild);this.eI();this.dl()},this);f.w(function(i){this.Uf(h,l);Ut("Error encountered while fetching replies",k,i)},this)}f.k(function(){Zu(a,b,c)})};
q.lSa=function(a,b){var c=Y("comment-"+a);if(c){var d=W.z(b),f="knol-comment-too-many-replies-"+a;Lm(c,function(g){if(W.hj(g,f)){W.remove(g,f);W.add.apply(W,[g].concat(d))}return l})}};q.Jxa=function(a,b){if(b)return l;var c=J(a);if(c&&c instanceof T){var d=c;return d.Ln()&&!d.fc(eg())&&!P().Cb()}return l};q.dM=function(a,b,c,d){var f=z(this.Uoa,this,a,b,c,d);f()};
q.Uoa=function(a,b,c,d){Sx();var f=this.Jxa(a,b),g=d?Y(d).value:k,h=this.s5(Y(c))||"";if(h||g){h=kf(h,5E3);g=kf(g,250);var i=b?"knol-comment-replies-spinner-"+a:"knol-comment-new-spinner";if(this.Uf(i,j)){var m=this,n=function(x){if(f)window.location.reload();else{var y=Ox(m.Mb());if(y&&y.rya()!=1){y.PL();Li(y,"load",s);y.cr(m.uF(m.rJ,m.ji))}else{var B="knol.ui.DiscussionView.createDiscussionItemFromId",G=V(B,[x.p()]);G.k(function(M){var R=Y(m.Mb()),X=p(M,R,R.firstChild);Yu(X);y&&y.Y_(1)});G.w(u)}}},
o=function(x){var y="knol.ui.DiscussionView.createReplyItemFromId",B=V(y,[x.p()]);B.k(function(G){var M=Y("knol-comment-replies-"+a),R=Lm(M,function(X){return X.className&&X.className.indexOf("knol-comment-my-reply")!=-1});p(G,R.parentNode,R).style.display=""});B.w(u)},p=function(x,y,B){var G=rm("div");G.innerHTML=x;for(var M=G.firstChild;G.firstChild;)y.insertBefore(G.firstChild,B);m.eI();m.dl();s();return M},s=function(){var x=Y(c);x.value="";Ti(x,"change",l,k);this.Uz&&Ti(x,"blur",l,k);if(d)Y(d).value=
"";b||$u("knol-comment-new","knol-comment-new-show");m.Uf(i,l)},u=function(){m.Uf(i,l);Vt("There was an error in creating comments. This can be due to a temporary outage or the insufficient permission in making comments.")},v=new Hk(uk(eg()),"createDiscussion");v.ma([a,h,g,f],function(x){var y=J({Sf:x});b?o(y):n(y)},u)}}};q.s5=function(a){if(this.Uz&&a.className=="knol-comment-lorem-ipsum")return"";return a.value};
q.era=function(a){var b=Y("knol-comment-text-"+a),c=Tm(b),d=Y("knol-comment-text-editor-"+a);d.style.width=b.clientWidth-40+"px";d.style.height=b.clientHeight+40+"px";d.value=c;this.yU(a,j)};
q.Cca=function(a){if(P()){var b=Y("knol-report-placeholder-"+a);if(b){this.eI();b.innerHTML=vo(a).v();b.parentNode.insertBefore(b.firstChild,b);b.parentNode.removeChild(b);this.dl()}(new oo).ZPa(a);var c=Y("knol-report-link-"+a),d=Y("knol-report-hide-link-"+a);c.style.display="none";d.style.display="";Yu(d)}else{var f=window.location.href,g=f.indexOf("#");if(g>=0)f=f.substring(0,g);f+="#report-comment-"+a;rf(f)}};
q.Dca=function(a){(new oo).SBa(a);var b=Y("knol-report-link-"+a),c=Y("knol-report-hide-link-"+a);b.style.display="";c.style.display="none"};
q.jMa=function(a){var b="knol-report-div-"+a,c=Y(b+"type_sexually_explicit"),d=Y(b+"type_hate_speech"),f=Y(b+"type_general_abuse"),g=Y(b+"type_impersonation"),h=Y(b+"type_spam"),i=Y(b+"type_other"),m=Y(b+"checkbox"),n=Y(b+"body"),o=Y(b+"typeerror");Y(b+"emailerror");Y(b+"quotaerror");o.style.display="none";var p="";if(c.checked)p=c.value;if(d.checked)p=d.value;if(g.checked)p=g.value;if(f.checked)p=f.value;if(h.checked)p=h.value;if(i.checked)p=i.value;var s=0;if(p==""){o.style.display="";s++}var u=
function(){alert("Ocorreu um erro ao enviar sua den\u00fancia.")};if(s==0){var v=V("knol.ui.AbuseReport.isAbuseReportQuotaReached",k);v.k(z(function(x){if(x)u();else{var y=V("knol.Discussion.reportAbuse",[a,bg(),p,n.value,m?m.checked:l]);y.k(function(){alert("Obrigado. Sua den\u00fancia foi enviada.");this.Dca(a)},this);y.w(u)}},this));v.w(u)}};
q.SRa=function(a){var b=Y("knol-comment-text-editor-"+a).value;if(b){var c="knol-comment-action-spinner-"+a;if(this.Uf(c,j)){Sx();var d=Y("knol-comment-text-"+a),f=V("knol.ui.DiscussionView.updateId",[a,b]),g=this,h=function(m){if(d.innerHTML!=m){d.innerHTML=m;g.TRa(a)}g.yU(a,l);g.Uf(c,l)},i=function(){g.Uf(c,l);Vt("Failed to update comment")};f.k(h);f.w(i)}}};q.jLa=function(a){this.yU(a,l)};
q.uca=function(a,b,c){Sx();if(c.ia=="yes"){var d="knol-comment-action-spinner-"+a;if(this.Uf(d,j)){var f=this,g=function(m){f.Uf(d,l);Vt("Failed to remove comment",m)},h=function(){Ej(ag(),"cleanUpDiscussions",[]);var m=["comment-"+a,"knol-comment-replies-"+a],n=0;vb(m,function(p){var s=Y(p);if(s){var u=s.parentNode;u.removeChild(s);if(!u.firstChild){var v=u.parentNode;v.removeChild(u);v.id==f.Mb()&&n--}}});if(n){var o=Ox(f.Mb());o&&o.Y_(n)}f.Uf(d,l)};if(b){var i=new Hk(uk(a),"removeNode");i.ma([],
h,g)}else{i=new Hk(uk(a),"hideNode");i.ma([ag()],h,g)}}}};q.zba=function(a,b){var c=z(eu,k,"Bloquear usu\u00e1rio",mo(b));Xt("Bloquear usu\u00e1rio",io(b),z(function(d){if(d.ia=="yes"){var f=new Hk(uk(eg()),"blockUserFromDiscussion");f.ma([a,ag()],z(function(g){if(g){var h=Ej(ag(),"cleanUpDiscussions",[]);h.k(function(){this.sca()},this);h.w(c)}else c()},this),c)}},this))};
var Tx=function(a){var b=a?"":"none",c=eg(),d=ag(),f=new Hk(uk(d),"isBlocked"),g=function(i){if(i){var m=Y("knol-comments-not-permitted");m.style.display="";b="none";for(var n=Y("comments"),o=fm("a","knol-comment-my-reply-submit",n),p=0;p<o.length;p++)o[p].parentNode.innerHTML="Desculpe.  Os propriet\u00e1rios do knol bloquearam voc\u00ea. N\u00e3o \u00e9 poss\u00edvel editar, fazer sugest\u00f5es ou coment\u00e1rios aqui."}else{var s=Y("knol-comment-new");if(s)s.style.display=b}},h=function(){Ut()};
f.ma([c],g,h,j)},Ux=function(){var a=Y("knol-comment-new");return!!a&&a.style.display!="none"};q=Qx.prototype;q.JDa=function(a){return!!this.lT&&this.lT==a};q.Una=function(){this.lT=k};
q.MJa=function(a){var b=k,c=k,d=k;if(a)if(wa(a,"view-comment-"))b=a.substring(13);else if(wa(a,"comment-"))b=this.c6(a.substring(8));else if(wa(a,"report-comment-")){d=a.substring(15);b=this.c6(d)}var f=function(){if(d){var i=Y("comment-"+g);if(i&&i.style.display=="none")i.style.display="";this.Cca(d)}else this.UBa(a)};if(b){var g=this.d0(b);if(!g||!Y("comment-"+g)){var h=Ox(this.Mb());if(h){c=h.cr(b,j);c.k(f,this)}}else f.call(this)}return c};
q.UBa=function(a){if(Vx(a,"comment")){var b=Y(a);if(b){var c=W.z(b);if(Db(c,"knol-comment"))W.sc(b,"knol-highlighted-comment",j);else if(Db(c,"knol-comment-reply")){var d=Vm(Y(a),"DIV","knol-comment-replies"),f=fm(Zl,"knol-comment-replies-toggle",Am(d.previousSibling,l));this.n3(d.id,f[1].id,f[0].id);W.sc(b,"knol-highlighted-reply",j)}}}};
q.yU=function(a,b){for(var c=["knol-comment-text-",!b,"knol-comment-edit-wrapper-",b,"knol-comment-edit-link-",!b,"knol-comment-save-link-",b,"knol-comment-cancel-link-",b,"knol-comment-remove-link-",!b],d=0;d<c.length;d+=2){var f=Y(c[d]+a);if(f)f.style.display=c[d+1]?"":"none"}};
q.TRa=function(a){var b=Y("knol-comment-created-time-"+a);if(b)b.style.display="none";var c=Y("knol-comment-edited-time-"+a);c.style.display="";var d=Y("knol-comment-timestamp-"+a),f=Ej(a,"getEditTime",[]);f.k(function(g){d.innerHTML=g})};q.aS=function(a,b){var c=["keyup","change"];vb(a,function(d){d&&this.V.g(d,c,function(){var f=Ab(a,function(g){return!this.s5(g).length},this);W.sc(b,"knol-link-disabled",f)})},this)};
q.Uf=function(a,b){if(this.Nq[a]&&b)return l;if(!!this.Nq[a]!=b){this.Nq[a]=b;var c=Y(a);if(c)c.style.visibility=b?"inherit":"hidden";b||this.Tna()}return j};q.Tla=function(a){var b=Ej(a,"approve",[]);b.k(this.sca,this)};q.sca=function(){var a=new Md(dg().fa());a.P("nc",Ve());a.Fo("comments");window.location=a.toString()};var Wx=function(){};D(Wx,Ps);$d(Wx.prototype,Aq.prototype);t("knol.ui.client.Toc",Wx,void 0);var Xx=l,Yx=0,Zx=0,$x=[],ay=k,by=k,cy=k,dy=k,ey=k,fy=k;Wx.prototype.nA=function(a,b,c,d){Xx=a;Yx=b;Zx=c;$x=d;ay=Y("knol-toc-expand-handle");by=Y("knol-toc-collapse-handle");cy=Y("knol-toc");dy=Y("knol-toc-list");ey=Y("knol-content-"+bg());fy=Y("knol-content-body");gy(Yx>0);this.II();hy()};Wx.prototype.onLoadHandler=Wx.prototype.nA;
var hy=function(){U(ay,"click",function(){var a=E(Wx).mP();if(-1!=a){var b=E(Wx).wO();if(-1==b)b=a;var c;if(Xx){c=b;Xx=l}else c=b+1;c=Math.min(c,a);Vu(cy,$x[c]);E(Wx).II()}});U(by,"click",function(){var a=0,b=E(Wx).wO(),c=Math.max(b-1,a);Xx=l;Vu(cy,$x[c]);E(Wx).II()})};q=Wx.prototype;
q.jSa=function(a){if(this.Mn()){var b=k;try{b=Dd(a)}catch(c){C("knol.ui.client.Toc").U("could not parse jsonToc: "+a,c);b=Qs}Xx=b.truncated;Yx=b.nItems;Zx=b.dispLevel;$x=b.nonemptyLevels;if(cy)cy.className="knol-element-toggle-level-max-6 knol-element-toggle-level-"+Zx;if(dy)dy.innerHTML=b.htmlCode;gy(Yx>0);this.QCa();this.II()}};
q.QCa=function(){var a=Mm(dy,function(g){return g.tagName=="A"}),b=Yx;if(a.length<b)b=a.length;if(!(b<=0)){this.tca();var c=new Iu(ey),d,f=0;Xb(c,function(g){if((d=g.tagName)&&d.match(/H[1-6]/)){if(!Ba(Sm(g))){wm(rm("a",{name:a[f].hash.substring(1),"class":"knol-anchor-headings"},""),g);f++;if(f>=b)e(Ub)}c.Tv()}})}};q.tca=function(){var a=fy,b=Mm(a,function(c){return c.className=="knol-anchor-headings"});vb(b,function(c){Z(c)})};
q.II=function(){var a=by,b=ay,c=this.mP(),d=this.wO();if(c==-1||Yx<10){$(a,l);$(b,l);var f=E(Wx).mP();if(f!=-1){Xx=l;Vu(cy,$x[f])}}else{d==0?$(a,l):$(a,j);d==c&&!Xx?$(b,l):$(b,j)}};q.mP=function(){for(var a=Tu(cy),b=$x.length-1;b>=0&&$x[b]>a;)b--;return b};q.wO=function(){var a=Wu("knol-toc");return sb($x,a)};var gy=function(a){cy&&$(cy,a&&Yx>0)},iy=function(){if(!cy)return l;return Lq(cy,"display")!="none"};var jy=function(){},ky,ly,my;D(jy,bs);
var ny=l,oy=function(){ny=l},ry=function(a){var b=E(eq),c=new ki;if(b.eh()||!py(a))c.sa();else{c=V("knol.ui.Toc.getUpdatedToc",[bg(),0]);c.k(function(d){E(Wx).jSa(d)});c.w(function(d){qy(k,d)})}return c},sy=function(a,b,c){C("knol.ui.client.Knol");var d=b-a+1,f="Conte\u00fado mais recente integrado de "+(d+" outra(s) vers\u00e3o(\u00f5es) salva(s) por outro(s) autor(es)."),g=I({b:"a",href:dg().fa()+"#revisions",target:"versions",d:"Visualizar vers\u00f5es."}),h=f+g.v();if(c){ou();nu(h)}else{qu();
pu(h)}},ty=function(a,b){var c=b+" e podem n\u00e3o estar conclu\u00eddos ainda. Suas altera\u00e7\u00f5es podem interferir com as deles.\u2028";nu(c)},vy=function(){var a=O(),b=P();if(b&&a.ck(b,2)==4){var c=E(eq).Qe(),d="Reverter para a vers\u00e3o "+c,f=Y("knol-old-version-header");if(f){var g=pm("a",{"class":"knol-fake-link",id:"knol-old-version-header-link"},d);f.appendChild(g);uy(c)}}};t("knol.ui.client.Knol.renderRevertLink",vy,void 0);
var uy=function(a){var b="Reverter para a vers\u00e3o "+a,c="Reverter para a vers\u00e3o "+(a+" editar\u00e1 o knol para incluir apenas o conte\u00fado exato dessa vers\u00e3o. Desfaz todas as altera\u00e7\u00f5es feitas posteriormente.<br /><br />Tem certeza de que deseja reverter?"),d="Reverter para a vers\u00e3o "+(a+" editar\u00e1 a cole\u00e7\u00e3o para incluir apenas o conte\u00fado e os knols exatos dessa vers\u00e3o. Isso ir\u00e1 desfazer todas as altera\u00e7\u00f5es feitas posteriormente.<br /><br />Tem certeza de que deseja reverter?"),
f=Y("knol-old-version-header-link");if(f){var g=O(),h=g&&g.ya();Li(f,"click",function(){ky=Xt("Revers\u00e3o de vers\u00e3o",h?d:c,wy,b,"Cancelar")})}},wy=function(a){var b=E(eq).Qe();if(a.ia!="yes")uy(b);else{var c=Ej(ag(),"revertToContentVersion",[b]);c.k(function(d){ky&&ky.l();if(d==8)qy("N\u00e3o h\u00e1 diferen\u00e7a entre a \u00faltima vers\u00e3o e esta");else if(!d||la(d))qy("N\u00e3o foi poss\u00edvel reverter para esta vers\u00e3o");else if(na(d)){var f=new ep;f.T(d);if(f.$F())f.x5()==
9?qy("N\u00e3o \u00e9 poss\u00edvel reverter uma cole\u00e7\u00e3o moderada para uma vers\u00e3o anterior que inclu\u00eda um knol que n\u00e3o seja de sua propriedade. Solicite que um autor do knol adicione-o novamente a esta cole\u00e7\u00e3o moderada."):qy("N\u00e3o foi poss\u00edvel reverter para esta vers\u00e3o");else{Qv={};var g=Y("knol-old-version-header-link"),h="Knol editado para incluir conte\u00fados da vers\u00e3o: "+(b+"."),i="Cole\u00e7\u00e3o editada para incluir conte\u00fados da vers\u00e3o: "+
(b+"."),m=pm("a",{href:"#revisions"},"Versions"),n=O(),o=n&&n.ya(),p=pm("span",{id:"knol-old-version-header-link"},(o?i:h)+" Visualizar: ",m);ym(p,g)}}});c.w(function(d){ky&&ky.l();qy(k,d)})}},xy=function(){var a="Comece a escrever aqui.";return'<br /><span class="knol-starter-text">'+a+"</span><br /><br />"},qy=function(a,b){Ut(a||"Unexpected error",k,b)},yy=function(a){var b=Y("knol-content-"+bg());fv(b);b.innerHTML=a},zy=function(a){var b=bg(),c=["knol-old-version-header","knol-content-wrapper-"+
b,"references",Xr.MK,"knol-adsense-long-code","knol-review-details","knol-collection-navigation","knol-collection-navigationfooter"];vb(c,function(d){var f=Y(d);if(f)f.style.display=a?"":"none"})},Iv=function(a){C("knol.ui.client.Knol");for(var b=Y("knol-article-top"),c=b.firstChild;c;c=c.nextSibling)if(c.style&&c.id!="knol-title-message"&&c.id!="knol-author-heading")c.style.display=a?"":"none";var d=Y("knol-title-message");if(d)d.style.display="none"},Ay=function(){var a=Y("knol-content-wrapper-"+
bg());return a.style.display!="none"};var By=function(){},Cy=function(){var a=O();return!!a&&a.FG()},Dy=function(){var a=Y("knol-sub-collection-suggestions");return!!a&&a.style.display!="none"},Ey=function(){var a=E(By);return a.iv()};By.prototype.iv=function(){var a=V("knol.ui.SubCollectionSuggestions.getListHTML",[ag()]);a.k(this.WRa,this);a.w(Fy);return a};var Fy=function(a){Vt(k,a)};By.prototype.WRa=function(a){var b=Y("knol-sub-collection-suggestions-list");if(b)b.innerHTML=a};var Gy=function(a){this.j=new Aq(this);this.Lm=k;this.uo=a||""},Hy=function(){var a=E(Gy);a.ec()};t("knol.ui.client.ChatLog.init",Hy,void 0);var Iy=function(a){var b=Y(a||"knol-chatlog");if(b)b.style.display="none"};q=Gy.prototype;q.ec=function(){var a=P(),b=O();if(a&&b){var c=new Md(document.location.href);this.Lm=c.Nf("submissionId")||k;if(b.c8()||this.Lm)this.refresh()}};
q.refresh=function(a,b,c){var d=V("knol.ui.ChatLog.get",[a||ag(),b||this.Lm,this.uo]);d.k(function(f){var g=f&&f[0],h=f&&f[1];if(w(h)&&g==1||g==2||g==3){var i=Y(c||"knol-chatlog");if(i){this.Wc();i.style.display="";i.innerHTML=h;this.Ib(a,c)}}},this)};
q.Ib=function(a,b){var c=Y(b||"knol-chatlog");if(c){for(var d=hm(k,"knol-chatlog-submit",c),f=0;f<d.length;f++){var g=Cf(d[f].id,"knol-chatlog-submit-"+this.uo);if(g)this.j.g(d[f],"click",z(this.M7,this,g,a||ag()))}var h=hm(k,"knol-chatlog-stub",c);for(f=0;f<h.length;f++)(g=Cf(h[f].id,"knol-chatlog-stub-"+this.uo))&&this.j.g(h[f],"click",z(this.Q7,this,g,j));var i=hm(k,"knol-chatlog-collapse",c);for(f=0;f<i.length;f++)(g=Cf(i[f].id,"knol-chatlog-hide-"+this.uo))&&this.j.g(i[f],"click",z(this.Q7,this,
g,l))}};q.Wc=function(){this.j.fb()};q.M7=function(a,b,c,d){var f=Y("knol-chatlog-input-"+this.uo+a),g=Ha(f&&f.value||"");if(g){var h=V("knol.ui.ChatLog.submit",[b,a,g]);h.k(function(i){var m=i&&i[0],n=i&&i[1];if(w(n)&&m==1||m==2){var o=Y("knol-chatlog-item-"+this.uo+a);if(o){var p=document.createElement("div");p.innerHTML=n;o.insertBefore(p.firstChild,o.lastChild);f.value=""}}d&&d.call(k)},this);h.w(function(i){d?d.call(k):Vt(k,i)})}else d&&d.call(k)};
q.Q7=function(a,b,c){c.preventDefault();var d=Y("knol-chatlog-stub-"+this.uo+a);if(d)d.style.display=b?"none":"";var f=Y("knol-chatlog-item-"+this.uo+a);if(f)f.style.display=b?"":"none"};var Jy=function(a,b,c,d,f){this.LL=new Gy("dialog");this.Ob=a;this.v0=b;this.$m=c;this.Qb=d||function(){};this.tna=f||function(){};this.ec();this.LL.Lm=this.v0;this.LL.refresh(this.Ob,this.Lm,"knol-chatlogdialog")};D(Jy,Rt);
Jy.prototype.ec=function(){var a=I({b:"div",children:[{b:"div",c:"knol-chatlogdialog-desc",d:"Opcional: Forne\u00e7a um coment\u00e1rio privado para explicar o motivo."},{b:"div",id:"knol-chatlogdialog"}]}),b=this.ul(),c="knol-dialog",d=z(this.wI,this);Rt.call(this,this.$m?"Aceitar knol na cole\u00e7\u00e3o":"Rejeitar knol da cole\u00e7\u00e3o",a.v(),k,c,d,b);this.H(j);var f=b.Yg("ok");f&&ev(f)};
Jy.prototype.ul=function(){var a=new mt;this.ll=a;a.G("ok",this.$m?"Aceitar knol na cole\u00e7\u00e3o":"Rejeitar knol da cole\u00e7\u00e3o",l);a.G("cancel","Cancelar",l,j);return a};Jy.prototype.wI=function(a){a.ia=="ok"?this.LL.M7(this.v0,this.Ob,a,this.Qb):this.tna.call(k)};var Ky=function(){this.Ok=Al();this.rH=new Cg;this.j=new Aq(this);this.Wq={};this.cv=this.Jm=this.bH=0},Ly=function(){var a=O();return!!a&&a.gd()!=0},My=function(){var a=Y("knol-submissions");return!!a&&a.style.display!="none"},Ny=function(){var a=E(Ky);return a.iv(l)};Ky.prototype.iv=function(a){return this.fca(a,0,50)};Ky.prototype.fca=function(a,b,c){if(b>=this.Jm+this.cv)b-=this.cv-this.bH;var d=V("knol.ui.Submissions.getList",[ag(),a,b,c]);d.k(z(this.ZRa,this,b,c));d.w(Oy);return d};
var Oy=function(a){Vt(k,a)};q=Ky.prototype;q.ZRa=function(a,b,c){var d=c&&c[0],f=c&&c[1],g=c&&c[2];if(!ia(d)||!w(f)||!ia(g))Oy();else{this.Jm=a;this.cv=b;this.Ok=Al();this.Ok.T(d);this.rH=new Cg;this.rH.T(g);this.$ga();var h=Y("knol-submissions-list");if(h){this.Wc();vm(h);this.UNa(h,f);this.Ib()}}};
q.$ga=function(){var a=this.Ok.Ga(),b=Y("knol-submissions-list");if(b)b.style.display=a?"none":"";var c=Y("knol-menu-heading-extra-note");if(c)c.style.display=a?"none":"";var d=Y("knol-submissions-empty");if(d)d.style.display=a?"":"none"};
q.UNa=function(a,b){var c=document.createElement("div");c.innerHTML=b;var d=c.getElementsByTagName("ul")[0];if(d)for(var f=this.Ok.qf(),g=d.firstChild,h=0,i=g;i;i=g){g=i.nextSibling;i.nodeName&&i.nodeName.toLowerCase()=="li"&&this.Qja(f[this.Jm+h++],i,a)}this.bH=h;var m=hm(k,"knol-search-pagination",c)[0];if(m){this.VKa(m);a.appendChild(m)}};
q.Qja=function(a,b,c){var d=this.t5(a),f=a.ka(),g=f=="delete",h=new Aq(this);this.Wq[d]=h;var i=pm("div",{id:d,"class":"knol-submissions-item-cls"});c.appendChild(i);var m=this.aua(a);i.appendChild(m);var n=this.Ioa();m.appendChild(n);h.g(n,"click",z(this.Jza,this,a));var o=pm("div",{"class":"knol-submissions-wrapper"});i.appendChild(o);var p=pm("div",{"class":"knol-submissions-left"});p.appendChild(this.Mpa(b));p.appendChild(document.createTextNode(" | "));var s=this.Npa(a.va());p.appendChild(s);
h.g(s,"click",z(this.yRa,this,a));var u=pm("div",{"class":"knol-submissions-right"}),v=this.Foa(g);u.appendChild(v);h.g(v,"click",z(this.fba,this,j,a));u.appendChild(document.createTextNode(" | "));var x=this.wpa(g);u.appendChild(x);h.g(x,"click",z(this.fba,this,l,a));u.appendChild(document.createTextNode(" | "));var y=this.ypa();u.appendChild(y);h.g(y,"click",z(this.jIa,this,a));var B="goog-inline-block knol-submissions-content knol-submissions-type-"+f,G=pm("div",{"class":b.className+" "+B},b.childNodes);
o.appendChild(p);o.appendChild(u);o.appendChild(G);o.appendChild(pm("div",{"class":"knol-clearer-div"}));var M=pm("div",{"class":"knol-submissions-view-review-list",style:"display: none",id:"knol-submissions-view-review-list"+a.va()});o.appendChild(M);i.appendChild(pm("div",{"class":"knol-clearer-div"}))};
q.aua=function(a){var b=a.ka(),c=a.dj(),d=a.Qn(),f=this.rH.z(a.Uh())||["????",""],g='<a href="'+Ra(f[1])+'" target="_blank">'+f[0]+"</a>",h=pm("div",{"class":"knol-submissions-description"}),i="";if(b=="add")if(la(c)){var m="Adicionado \u00e0 posi\u00e7\u00e3o "+(String(c)+(" por "+(g+":")));i=m}else{var n="Adicionado por "+g;i=n}else if(b=="delete"){var o="Removido por "+g;i=o}else if(b=="edit")if(ia(d))if(d){var p="Ocultar item por "+g;i=p}else if(la(c)){var s="Mostrar item na posi\u00e7\u00e3o "+
(String(c)+(" por "+g));i=s}else{var u="Mostrar item por "+g;i=u}else if(la(c)){var v="Movido para a posi\u00e7\u00e3o "+(String(c)+(" por "+g));i=v}h.innerHTML=i;return h};q.Mpa=function(a){var b=hm("a","knol-search-knol-title",a)[0],c=b&&b.href||"";return pm("a",{href:c,target:"_blank","class":"knol-submissions-link"},"Visualizar")};q.Foa=function(a){var b="";b=a?"Remover":"Aceitar";return pm("a",{href:Wm,"class":"knol-submissions-link"},b)};
q.ypa=function(){return pm("a",{href:Wm,"class":"knol-submissions-link"},"Solicitar resenha")};q.Npa=function(a){return pm("a",{href:Wm,"class":"knol-submissions-link",id:"knol-submissions-view-review-"+a},"Ver resenhas")};q.wpa=function(a){var b="";b=a?"Manter":"Recusar";return pm("a",{href:Wm,"class":"knol-submissions-link"},b)};q.Ioa=function(){return pm("a",{href:Wm,"class":"knol-less-important-small-link"},"Bloquear este usu\u00e1rio")};
q.VKa=function(a){for(var b=hm("a",k,a),c=0;c<b.length;c++){var d=(b[c].className||"").split("_");if(d.length>=3&&d[0]=="knol-search-knol-pagination"){b[c].href=Wm;this.j.g(b[c],"click",z(this.fca,this,l,Number(d[1]),Number(d[2])))}}};q.Ib=function(){};q.Wc=function(){this.j.fb();for(var a in this.Wq){this.Wq[a]&&this.Wq[a].l();delete this.Wq[a]}};q.jIa=function(a){var b=a.va(),c=P(),d=dg();Ek(z(function(){var f=J(b),g=new lv(c,f,d,z(this.MQa,this,f.he()),function(){});g.hb()},this))};
q.yRa=function(a){var b=a.va(),c=Y("knol-submissions-view-review-list"+b);if(c)if(c.style.display!="none")c.style.display="none";else{var d=V("knol.ui.CollectionSubmissionReviews.get",[b,ag()]);d.k(function(f){c.innerHTML=f?f:"N\u00e3o existem revis\u00f5es para este knol.";c.style.display=""})}};
q.MQa=function(a,b,c,d,f,g){ew();var h=z(Vt,k,"request collection review");qu();pu("Enviando mensagem...");var i=Ej(eg(),"requestCollectionReview",[a,ag(),b,g,c,d,f]);i.k(function(m){qu();m||pu("Falha ao enviar mensagem. Tente novamente mais tarde.")});i.w(h)};q.fba=function(a,b,c){c.preventDefault();var d=b.va();if(d){var f=z(this.gQ,this,a,b),g=b.Uh();b.ka()!="add"||!g?f.call(this):Ek(z(function(){var h=J(d);h||f.call(this);var i=h.Ia();if(i.fc(g))new Jy(i.p(),ag(),a,f,k);else f.call(this)},this))}};
q.gQ=function(a,b,c){c&&c.preventDefault();var d=V("knol.ui.Submissions.review",[ag(),a,b.serialize()]);d.k(function(f){var g,h="";if(f instanceof Array&&f.length==2){g=f[0];h=f[1]}else g=f instanceof Array?1:f;this.Af=h;if(g==-1){this.dI(b,j);a&&this.gSa();var i="";if(a)if(b.ka()=="add")i="O item enviado agora faz parte da cole\u00e7\u00e3o.";else if(b.ka()=="delete")i="O item foi removido da cole\u00e7\u00e3o.";else{if(b.ka()=="edit")i="O item mudou de posi\u00e7\u00e3o na cole\u00e7\u00e3o."}else if(b.ka()==
"add")i="O envio foi rejeitado.";else if(b.ka()=="delete")i="A solicita\u00e7\u00e3o de remo\u00e7\u00e3o foi rejeitada.";else if(b.ka()=="edit")i="A solicita\u00e7\u00e3o de movimenta\u00e7\u00e3o foi rejeitada.";var m=I({b:"a",href:Wm,d:"Desfazer",id:"knol-suggestion-undo"});qu();if(h)i+=" "+m.v();pu(i);var n=Y("knol-suggestion-undo");n&&this.j.g(n,"click",z(this.MRa,this,h))}else{i="Ocorreu um erro. Recarregue a p\u00e1gina e tente novamente.";if(g==2)i="Voc\u00ea n\u00e3o tem permiss\u00e3o para revisar este envio. Recarregue a p\u00e1gina e fa\u00e7a login novamente.";
else if(g==3){i="Este envio n\u00e3o existe mais. Ele pode j\u00e1 ter sido revisado por outro moderador ou revertido por quem o enviou.";this.dI(b,l)}else if(g==4){i="A cole\u00e7\u00e3o foi alterada e este envio n\u00e3o \u00e9 mais necess\u00e1rio.";this.dI(b,j)}else if(g==5){i="Este envio foi descartado automaticamente porque foi aceito em outra cole\u00e7\u00e3o moderada.";this.dI(b,j)}Ut(i)}},this);d.w(Oy)};
q.dI=function(a,b){for(var c=this.Ok.qf(),d=[],f=0;f<c.length;f++){var g=c[f]==a;if(b)g=c[f].va()==a.va()&&c[f].ka()==a.ka();if(g){var h=this.t5(c[f]),i=this.Wq[h];