(function (){ var g="",aa="\n",k=" ",ba='"',ca='", ',da='","groups":["reactions"]},"labels":[',ea='","groups":["reactions"]},{"url": "',fa='"}],"applicationId":34}',ga="%s",ha="(",ia="(\\d*)(\\D*)",ja=")",ka="*",m=".",la="//www.blogger.com/reviews/json/aggregates",ma="//www.blogger.com/reviews/json/token",na="//www.blogger.com/reviews/json/write",n="0",oa=": ",pa="@",qa="An object listener must have handleEvent method.",ra="Assertion failed",sa="Content-Type",ta="Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?",
ua="GET",va="Listener can not be null.",wa="MSXML2.XMLHTTP",xa="MSXML2.XMLHTTP.3.0",ya="MSXML2.XMLHTTP.6.0",za="Microsoft.XMLHTTP",Aa="Node cannot be null or undefined.",p="POST",Ba="[object Array]",Ca="[object Function]",Da="[object Window]",Ea="]",Fa=']}],"applicationId":34}&token=',Ga="_",Ha="a",Ia="abort",Ja="application/x-www-form-urlencoded;charset=utf-8",q="array",Ka="call",La="click",r="complete",Ma="content-type",Na="downloadprogress",Oa="error",Pa="event",t="function",Qa="g",Ra="goog.dom.setTextContent expects a non-null value for node",
Sa="goog.net.EventType.PROGRESS is of the same type as raw XHR progress.",Ta="infinite loop",Ua="innerText",Va="keypress",Wa="mouseout",Xa="mouseover",Ya="native code",Za="null",u="number",v="object",$a="on",ab="onprogress",bb="progress",cb="ready",db="readystatechange",eb='req={"annotations": [ {"replaceAllLabels":true,"entity": {"url": "',fb='req={"applicationId":34}',gb='req={"entities":[{"url": "',hb="rx-checked",ib="rx-count",jb="rx-holder",kb="rx-label",lb="rx-option",mb="rx-unchecked",nb="span",
ob="splice",pb="string",qb="success",rb="textContent",sb="timeout",tb="uploadprogress",ub="var ",vb="window",wb="withCredentials",w,xb=xb||{},x=this,yb=function(a,b,c){a=a.split(m);c=c||x;a[0]in c||!c.execScript||c.execScript(ub+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]?c[d]:c[d]={}:c[d]=b},zb=function(){},y=function(a){var b=typeof a;if(b==v)if(a){if(a instanceof Array)return q;if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c==Da)return v;if(c==
Ba||typeof a.length==u&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(ob))return q;if(c==Ca||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(Ka))return t}else return Za;else if(b==t&&"undefined"==typeof a.call)return v;return b},z=function(a){var b=y(a);return b==q||b==v&&typeof a.length==u},A=function(a){return typeof a==pb},Ab=function(a,b,c){return a.call.apply(a.bind,arguments)},Bb=function(a,b,
c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},B=function(a,b,c){B=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf(Ya)?Ab:Bb;return B.apply(null,arguments)},Cb=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,
arguments);return a.apply(this,b)}},C=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.base=function(a,c,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[c].apply(a,h)}};var D=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,D);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};C(D,Error);var Db=function(a,b){for(var c=a.split(ga),d=g,e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join(ga)},Eb=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,g)},Fb=function(a,b){return a<b?-1:a>b?1:0};var Gb=function(a,b){b.unshift(a);D.call(this,Db.apply(null,b));b.shift()};C(Gb,D);var E=function(a,b,c){if(!a){var d=ra;if(b)var d=d+(oa+b),e=Array.prototype.slice.call(arguments,2);throw new Gb(g+d,e||[]);}return a};var Hb=function(a){Hb[k](a);return a};Hb[k]=zb;var Ib=Array.prototype.indexOf?function(a,b,c){E(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(A(a))return A(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Jb=Array.prototype.forEach?function(a,b,c){E(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=A(a)?a.split(g):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Kb=Array.prototype.filter?function(a,
b,c){E(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=A(a)?a.split(g):a,l=0;l<d;l++)if(l in h){var H=h[l];b.call(c,H,l,a)&&(e[f++]=H)}return e},Lb=function(a,b,c){a:{for(var d=a.length,e=A(a)?a.split(g):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a)){b=f;break a}b=-1}return 0>b?null:A(a)?a.charAt(b):a[b]},F=function(a,b){return 0<=Ib(a,b)},Nb=function(a,b){var c=Ib(a,b),d;(d=0<=c)&&Mb(a,c);return d},Mb=function(a,b){E(null!=a.length);return 1==
Array.prototype.splice.call(a,b,1).length},Ob=function(a,b,c){E(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var Pb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Qb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Rb=function(a,b){return null!==a&&b in a},Sb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Tb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Sb.length;f++)c=Sb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var G;a:{var Ub=x.navigator;if(Ub){var Vb=Ub.userAgent;if(Vb){G=Vb;break a}}G=g};var Wb=-1!=G.indexOf("Opera")||-1!=G.indexOf("OPR"),I=-1!=G.indexOf("Trident")||-1!=G.indexOf("MSIE"),Xb=-1!=G.indexOf("Edge"),J=-1!=G.indexOf("Gecko")&&!(-1!=G.toLowerCase().indexOf("webkit")&&-1==G.indexOf("Edge"))&&!(-1!=G.indexOf("Trident")||-1!=G.indexOf("MSIE"))&&-1==G.indexOf("Edge"),M=-1!=G.toLowerCase().indexOf("webkit")&&-1==G.indexOf("Edge"),Yb=function(){var a=x.document;return a?a.documentMode:void 0},Zb;
a:{var $b=g,ac=function(){var a=G;if(J)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Xb)return/Edge\/([\d\.]+)/.exec(a);if(I)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(M)return/WebKit\/(\S+)/.exec(a);if(Wb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();ac&&($b=ac?ac[1]:g);if(I){var bc=Yb();if(null!=bc&&bc>parseFloat($b)){Zb=String(bc);break a}}Zb=$b}
var cc=Zb,dc={},N=function(a){var b;if(!(b=dc[a])){b=0;for(var c=Eb(String(cc)).split(m),d=Eb(String(a)).split(m),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var h=c[f]||g,l=d[f]||g,H=RegExp(ia,Qa),Kc=RegExp(ia,Qa);do{var K=H.exec(h)||[g,g,g],L=Kc.exec(l)||[g,g,g];if(0==K[0].length&&0==L[0].length)break;b=Fb(0==K[1].length?0:parseInt(K[1],10),0==L[1].length?0:parseInt(L[1],10))||Fb(0==K[2].length,0==L[2].length)||Fb(K[2],L[2])}while(0==b)}b=dc[a]=0<=b}return b},ec=x.document,fc=ec&&I?Yb()||("CSS1Compat"==
ec.compatMode?parseInt(cc,10):5):void 0;var gc=!I||9<=Number(fc),hc=I&&!N("9");!M||N("528");J&&N("1.9b")||I&&N("8")||Wb&&N("9.5")||M&&N("528");J&&!N("8")||I&&N("9");var O=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};O.prototype.disposed_=!1;O.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};O.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var P=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1;this.returnValue_=!0};P.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};var Q=function(a,b){P.call(this,a?a.type:g);this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.event_=this.state=null;a&&this.init(a,b)};C(Q,P);
Q.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;if(e){if(J){var f;a:{try{Hb(e.nodeName);f=!0;break a}catch(h){}f=!1}f||(e=null)}}else c==Xa?e=a.fromElement:c==Wa&&(e=a.toElement);this.relatedTarget=e;null===d?(this.offsetX=M||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=M||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=
void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(c==Va?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault()};
Q.prototype.preventDefault=function(){Q.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,hc)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var ic="closure_listenable_"+(1E6*Math.random()|0),R=function(a){return!(!a||!a[ic])},jc=0;var kc=function(a,b,c,d,e,f){this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.key=++jc;this.removed=this.callOnce=!1};kc.prototype.markAsRemoved=function(){this.removed=!0;this.handler=this.src=this.proxy=this.listener=null};var S=function(a){this.src=a;this.listeners={};this.typeCount_=0};w=S.prototype;w.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=lc(a,b,d,e);-1<h?(b=a[h],c||(b.callOnce=!1)):(b=new kc(b,null,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
w.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=lc(e,b,c,d);return-1<b?(e[b].markAsRemoved(),Mb(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};w.removeByKey=function(a){var b=a.type;if(!(b in this.listeners))return!1;var c=Nb(this.listeners[b],a);c&&(a.markAsRemoved(),0==this.listeners[b].length&&(delete this.listeners[b],this.typeCount_--));return c};
w.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,d[e].markAsRemoved();delete this.listeners[c];this.typeCount_--}return b};w.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=lc(a,b,c,d));return-1<e?a[e]:null};var lc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};var mc="closure_lm_"+(1E6*Math.random()|0),nc={},oc=0,pc=function(a,b,c,d,e){if(y(b)==q){for(var f=0;f<b.length;f++)pc(a,b[f],c,d,e);return null}c=qc(c);return R(a)?a.listen(b,c,d,e):rc(a,b,c,!1,d,e)},rc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=!!e,l=T(a);l||(a[mc]=l=new S(a));c=l.add(b,c,d,e,f);if(c.proxy)return c;d=sc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,h);else if(a.attachEvent)a.attachEvent(tc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
oc++;return c},sc=function(){var a=uc,b=gc?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},vc=function(a,b,c,d,e){if(y(b)==q){for(var f=0;f<b.length;f++)vc(a,b[f],c,d,e);return null}c=qc(c);return R(a)?a.listenOnce(b,c,d,e):rc(a,b,c,!0,d,e)},wc=function(a,b,c,d,e){if(y(b)==q){for(var f=0;f<b.length;f++)wc(a,b[f],c,d,e);return null}c=qc(c);if(R(a))return a.unlisten(b,c,d,e);if(!a)return!1;if(a=T(a))if(b=a.getListener(b,c,!!d,e))return xc(b);
return!1},xc=function(a){if(typeof a==u||!a||a.removed)return!1;var b=a.src;if(R(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(tc(c),d);oc--;(c=T(b))?(c.removeByKey(a),0==c.typeCount_&&(c.src=null,b[mc]=null)):a.markAsRemoved();return!0},yc=function(a,b){if(!a)return 0;if(R(a))return a.removeAllListeners(b);var c=T(a);if(!c)return 0;var d=0,e=b&&b.toString(),f;for(f in c.listeners)if(!e||f==e)for(var h=c.listeners[f].concat(),
l=0;l<h.length;++l)xc(h[l])&&++d;return d},tc=function(a){return a in nc?nc[a]:nc[a]=$a+a},Ac=function(a,b,c,d){var e=!0;if(a=T(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.removed&&(f=zc(f,d),e=e&&!1!==f)}return e},zc=function(a,b){var c=a.listener,d=a.handler||a.src;a.callOnce&&xc(a);return c.call(d,b)},uc=function(a,b){if(a.removed)return!0;if(!gc){var c;if(!(c=b))a:{c=[vb,Pa];for(var d=x,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=
d}e=c;c=new Q(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break a}catch(H){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,h=e.length-1;!c.propagationStopped_&&0<=h;h--){c.currentTarget=e[h];var l=Ac(e[h],f,!0,c),d=d&&l}for(h=0;!c.propagationStopped_&&h<e.length;h++)c.currentTarget=e[h],l=Ac(e[h],f,!1,c),d=d&&l}return d}return zc(a,new Q(b,this))},T=function(a){a=a[mc];
return a instanceof S?a:null},Bc="__closure_events_fn_"+(1E9*Math.random()>>>0),qc=function(a){E(a,va);if(y(a)==t)return a;E(a.handleEvent,qa);a[Bc]||(a[Bc]=function(b){return a.handleEvent(b)});return a[Bc]};var U=function(){O.call(this);this.eventTargetListeners_=new S(this);this.actualEventTarget_=this;this.parentEventTarget_=null};C(U,O);U.prototype[ic]=!0;w=U.prototype;w.addEventListener=function(a,b,c,d){pc(this,a,b,c,d)};w.removeEventListener=function(a,b,c,d){wc(this,a,b,c,d)};
w.dispatchEvent=function(a){this.assertInitialized_();var b,c=this.parentEventTarget_;if(c){b=[];for(var d=1;c;c=c.parentEventTarget_)b.push(c),E(1E3>++d,Ta)}c=this.actualEventTarget_;d=a.type||a;if(A(a))a=new P(a,c);else if(a instanceof P)a.target=a.target||c;else{var e=a;a=new P(d,c);Tb(a,e)}var e=!0,f;if(b)for(var h=b.length-1;!a.propagationStopped_&&0<=h;h--)f=a.currentTarget=b[h],e=f.fireListeners(d,!0,a)&&e;a.propagationStopped_||(f=a.currentTarget=c,e=f.fireListeners(d,!0,a)&&e,a.propagationStopped_||
(e=f.fireListeners(d,!1,a)&&e));if(b)for(h=0;!a.propagationStopped_&&h<b.length;h++)f=a.currentTarget=b[h],e=f.fireListeners(d,!1,a)&&e;return e};w.disposeInternal=function(){U.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};w.listen=function(a,b,c,d){this.assertInitialized_();return this.eventTargetListeners_.add(String(a),b,!1,c,d)};w.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
w.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};w.unlistenByKey=function(a){return this.eventTargetListeners_.removeByKey(a)};w.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
w.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,l=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=!1!==h.call(l,c)&&d}}return d&&0!=c.returnValue_};w.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};w.assertInitialized_=function(){E(this.eventTargetListeners_,ta)};var Cc=function(a,b){b.preventDefault();a(b);return!1};var Dc=function(a){a=a.className;return A(a)&&a.match(/\S+/g)||[]},Ec=function(a,b){for(var c=Dc(a),d=Ob(arguments,1),e=c.length+d.length,f=c,h=0;h<d.length;h++)F(f,d[h])||f.push(d[h]);a.className=c.join(k);return c.length==e},Gc=function(a,b){var c=Dc(a),d=Ob(arguments,1),e=Fc(c,d);a.className=e.join(k);return e.length==c.length-d.length},Fc=function(a,b){return Kb(a,function(a){return!F(b,a)})},Hc=function(a,b){var c=!F(Dc(a),b);c?Ec(a,b):Gc(a,b);return c};!J&&!I||I&&9<=Number(fc)||J&&N("1.9.1");var Ic=I&&!N("9");var Jc=function(a,b,c,d){a=d||a;b=b&&b!=ka?b.toUpperCase():g;if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?m+c:g));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||ka);if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split==t&&F(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a},Lc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},
Mc={IMG:k,BR:aa},Oc=function(a){if(Ic&&null!==a&&Ua in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,aa);else{var b=[];Nc(a,b,!0);a=b.join(g)}a=a.replace(/ \xAD /g,k).replace(/\xAD/g,g);a=a.replace(/\u200B/g,g);Ic||(a=a.replace(/ +/g,k));a!=k&&(a=a.replace(/^\s*/,g));return a},Nc=function(a,b,c){if(!(a.nodeName in Lc))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,g)):b.push(a.nodeValue);else if(a.nodeName in Mc)b.push(Mc[a.nodeName]);else for(a=a.firstChild;a;)Nc(a,b,c),a=a.nextSibling};var V="StopIteration"in x?x.StopIteration:{message:"StopIteration",stack:g},W=function(){};W.prototype.next=function(){throw V;};W.prototype.__iterator__=function(){return this};
var Pc=function(a){if(a instanceof W)return a;if(typeof a.__iterator__==t)return a.__iterator__(!1);if(z(a)){var b=0,c=new W;c.next=function(){for(;;){if(b>=a.length)throw V;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Qc=function(a,b,c){if(z(a))try{Jb(a,b,c)}catch(d){if(d!==V)throw d;}else{a=Pc(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==V)throw d;}}};var Rc=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,pa).replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,Ea).replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,g)))try{return eval(ha+a+ja)}catch(b){}throw Error("Invalid JSON string: "+a);};var X=function(a,b){this.map_={};this.keys_=[];this.version_=this.count_=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};w=X.prototype;w.getValues=function(){this.cleanupKeysArray_();for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};w.getKeys=function(){this.cleanupKeysArray_();return this.keys_.concat()};
w.remove=function(a){return Object.prototype.hasOwnProperty.call(this.map_,a)?(delete this.map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&this.cleanupKeysArray_(),!0):!1};
w.cleanupKeysArray_=function(){if(this.count_!=this.keys_.length){for(var a=0,b=0;a<this.keys_.length;){var c=this.keys_[a];Object.prototype.hasOwnProperty.call(this.map_,c)&&(this.keys_[b++]=c);a++}this.keys_.length=b}if(this.count_!=this.keys_.length){for(var d={},b=a=0;a<this.keys_.length;)c=this.keys_[a],Object.prototype.hasOwnProperty.call(d,c)||(this.keys_[b++]=c,d[c]=1),a++;this.keys_.length=b}};w.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.map_,a)?this.map_[a]:b};
w.set=function(a,b){Object.prototype.hasOwnProperty.call(this.map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.map_[a]=b};w.addAll=function(a){var b;a instanceof X?(b=a.getKeys(),a=a.getValues()):(b=Qb(a),a=Pb(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};w.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};w.clone=function(){return new X(this)};w.getKeyIterator=function(){return this.__iterator__(!0)};
w.__iterator__=function(a){this.cleanupKeysArray_();var b=0,c=this.version_,d=this,e=new W;e.next=function(){if(c!=d.version_)throw Error("The map has changed since the iterator was created");if(b>=d.keys_.length)throw V;var e=d.keys_[b++];return a?e:d.map_[e]};return e};var Sc=function(a){if(a.getValues&&typeof a.getValues==t)return a.getValues();if(A(a))return a.split(g);if(z(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Pb(a)},Tc=function(a,b,c){if(a.forEach&&typeof a.forEach==t)a.forEach(b,c);else if(z(a)||A(a))Jb(a,b,c);else{var d;if(a.getKeys&&typeof a.getKeys==t)d=a.getKeys();else if(a.getValues&&typeof a.getValues==t)d=void 0;else if(z(a)||A(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Qb(a);for(var e=Sc(a),f=e.length,h=
0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};var Uc=function(a,b,c){if(y(a)==t)c&&(a=B(a,c));else if(a&&typeof a.handleEvent==t)a=B(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:x.setTimeout(a,b||0)};var Vc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;var Wc=function(){};Wc.prototype.cachedOptions_=null;Wc.prototype.getOptions=function(){return this.cachedOptions_||(this.cachedOptions_=this.internalGetOptions())};var Xc,Y=function(){};C(Y,Wc);Y.prototype.createInstance=function(){var a=this.getProgId_();return a?new ActiveXObject(a):new XMLHttpRequest};Y.prototype.internalGetOptions=function(){var a={};this.getProgId_()&&(a[0]=!0,a[1]=!0);return a};
Y.prototype.getProgId_=function(){if(!this.ieProgId_&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var a=[ya,xa,wa,za],b=0;b<a.length;b++){var c=a[b];try{return new ActiveXObject(c),this.ieProgId_=c}catch(d){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return this.ieProgId_};Xc=new Y;var Z=function(a){U.call(this);this.headers=new X;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhrOptions_=this.xhr_=null;this.lastUri_=g;this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_=g;this.useXhr2Timeout_=this.progressEventsEnabled_=this.withCredentials_=!1};C(Z,U);
var Yc=/^https?$/i,Zc=[p,"PUT"],$c=[],ad=function(a,b,c,d,e,f,h){var l=new Z;$c.push(l);b&&l.listen(r,b);l.listenOnce(cb,l.cleanupSend_);f&&l.setTimeoutInterval(f);h&&l.setWithCredentials(h);l.send(a,c,d,e);return l};Z.prototype.cleanupSend_=function(){this.dispose();Nb($c,this)};Z.prototype.setTimeoutInterval=function(a){this.timeoutInterval_=Math.max(0,a)};Z.prototype.setWithCredentials=function(a){this.withCredentials_=a};
Z.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("[goog.net.XhrIo] Object is active with another request="+this.lastUri_+"; newUri="+a);b=b?b.toUpperCase():ua;this.lastUri_=a;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhrOptions_=this.xmlHttpFactory_?this.xmlHttpFactory_.getOptions():Xc.getOptions();this.xhr_.onreadystatechange=B(this.onReadyStateChange_,this);this.progressEventsEnabled_&&ab in this.xhr_&&(this.xhr_.onprogress=B(function(a){this.onProgressHandler_(a,
!0)},this),this.xhr_.upload&&(this.xhr_.upload.onprogress=B(this.onProgressHandler_,this)));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(f){this.error_(5,f);return}a=c||g;var e=this.headers.clone();d&&Tc(d,function(a,b){e.set(b,a)});d=Lb(e.getKeys(),bd);c=x.FormData&&a instanceof x.FormData;!F(Zc,b)||d||c||e.set(sa,Ja);e.forEach(function(a,b){this.xhr_.setRequestHeader(b,a)},this);this.responseType_&&(this.xhr_.responseType=this.responseType_);Rb(this.xhr_,wb)&&(this.xhr_.withCredentials=
this.withCredentials_);try{this.cleanUpTimeoutTimer_(),0<this.timeoutInterval_&&((this.useXhr2Timeout_=cd(this.xhr_))?(this.xhr_.timeout=this.timeoutInterval_,this.xhr_.ontimeout=B(this.timeout_,this)):this.timeoutId_=Uc(this.timeout_,this.timeoutInterval_,this)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(f){this.error_(5,f)}};var cd=function(a){return I&&N(9)&&typeof a.timeout==u&&void 0!==a.ontimeout},bd=function(a){return Ma==a.toLowerCase()};w=Z.prototype;
w.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():Xc.createInstance()};w.timeout_=function(){"undefined"!=typeof xb&&this.xhr_&&(this.dispatchEvent(sb),this.abort(8))};w.error_=function(){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.dispatchErrors_();this.cleanUpXhr_()};w.dispatchErrors_=function(){this.errorDispatched_||(this.errorDispatched_=!0,this.dispatchEvent(r),this.dispatchEvent(Oa))};
w.abort=function(){this.xhr_&&this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.dispatchEvent(r),this.dispatchEvent(Ia),this.cleanUpXhr_())};w.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),this.cleanUpXhr_(!0));Z.superClass_.disposeInternal.call(this)};w.onReadyStateChange_=function(){if(!this.disposed_)if(this.inOpen_||this.inSend_||this.inAbort_)this.onReadyStateChangeHelper_();else this.onReadyStateChangeEntryPoint_()};
w.onReadyStateChangeEntryPoint_=function(){this.onReadyStateChangeHelper_()};w.onReadyStateChangeHelper_=function(){if(this.active_&&"undefined"!=typeof xb&&(!this.xhrOptions_[1]||4!=this.getReadyState()||2!=this.getStatus()))if(this.inSend_&&4==this.getReadyState())Uc(this.onReadyStateChange_,0,this);else if(this.dispatchEvent(db),this.isComplete()){this.active_=!1;try{this.isSuccess()?(this.dispatchEvent(r),this.dispatchEvent(qb)):this.dispatchErrors_()}finally{this.cleanUpXhr_()}}};
w.onProgressHandler_=function(a,b){E(a.type===bb,Sa);this.dispatchEvent(dd(a,bb));this.dispatchEvent(dd(a,b?Na:tb))};var dd=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};w=Z.prototype;w.cleanUpXhr_=function(a){if(this.xhr_){this.cleanUpTimeoutTimer_();var b=this.xhr_,c=this.xhrOptions_[0]?zb:null;this.xhrOptions_=this.xhr_=null;a||this.dispatchEvent(cb);try{b.onreadystatechange=c}catch(d){}}};
w.cleanUpTimeoutTimer_=function(){this.xhr_&&this.useXhr2Timeout_&&(this.xhr_.ontimeout=null);typeof this.timeoutId_==u&&(x.clearTimeout(this.timeoutId_),this.timeoutId_=null)};w.isComplete=function(){return 4==this.getReadyState()};w.isSuccess=function(){var a=this.getStatus(),b;a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:b=!0;break a;default:b=!1}return b||0===a&&!this.isLastUriEffectiveSchemeHttp_()};
w.isLastUriEffectiveSchemeHttp_=function(){var a=String(this.lastUri_).match(Vc)[1]||null;!a&&x.self&&x.self.location&&(a=x.self.location.protocol,a=a.substr(0,a.length-1));return Yc.test(a?a.toLowerCase():g)};w.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};w.getStatus=function(){try{return 2<this.getReadyState()?this.xhr_.status:-1}catch(a){return-1}};w.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&0==b.indexOf(a)&&(b=b.substring(a.length));return Rc(b)}};var ed=function(a,b){this.entityId_=encodeURIComponent(a);b?this.sender_=b:(this.sender_=Z,this.sender_.send=ad);this.writeToken_=g;this.options_={};this.counts_={};this.decodeLabel_={};this.selectedReactions_=new X};w=ed.prototype;
w.initialize=function(a){a=Jc(document,Ha,lb,document.getElementById(a));for(var b=0;b<a.length;b++){var c=a[b],d=Jc(document,nb,kb,c)[0],d=Oc(d);this.options_[d]=c;var e=this.encodeLabel_(d);this.decodeLabel_[e]=d;var e=c,f=B(this.toggle,this,d);pc(e,La,Cb(Cc,f));c=Jc(document,nb,ib,c)[0];this.counts_[d]=c;E(null!=c,Ra);if(rb in c)c.textContent=n;else if(3==c.nodeType)c.data=n;else if(c.firstChild&&3==c.firstChild.nodeType){for(;c.lastChild!=c.firstChild;)c.removeChild(c.lastChild);c.firstChild.data=
n}else{d=c;for(e=void 0;e=d.firstChild;)d.removeChild(e);d=c;E(d,Aa);c.appendChild((9==d.nodeType?d:d.ownerDocument||d.document).createTextNode(n))}}a=B(this.displayRetrievedAnnotations_,this);b=B(this.disableOptions_,this);this.loadExistingReactions_(a,b)};w.setZipitToken_=function(a){this.writeToken_=a};
w.loadZipitToken_=function(a){var b=B(this.disableOptions_,this),c=B(this.setZipitToken_,this),d=B(this.toggle,this);this.sender_.send(ma,function(){if(this.isSuccess()){var e=this.getResponseJson();c(e.channelHeader.token);a&&d(a)}else b()},p,fb)};w.loadExistingReactions_=function(a,b){this.sender_.send(la,function(){this.isSuccess()?a(this.getResponseJson()):b()},p,gb+this.entityId_+ea+this.entityId_+fa)};
w.displayRetrievedAnnotations_=function(a){if(a.entityAggregates)for(var b=0;b<a.entityAggregates.length;b++){var c=!1;if(c=a.entityAggregates[b].labels)for(var d=0;d<c.length;d++){var e=this.counts_[this.decodeLabel_[c[d].label]];if(e){var f=parseInt(Oc(e),10);isNaN(f)&&(f=0);e.innerHTML=f+parseInt(c[d].count,10)}}}};w.encodeLabel_=function(a){a=a.replace(/([^A-Za-z ])/g,function(a){return Ga+a.charCodeAt(0)});return a=a.replace(/([A-Z])/g,function(a){return Ga+a.toLowerCase()})};
w.disableOptions_=function(){for(var a=Jc(document,Ha,lb,document.getElementById(jb)),b=0;b<a.length;b++){var c=a[b];c.style.borderColor=null;yc(c)}};
w.toggle=function(a){if(this.writeToken_==g)this.loadZipitToken_(a);else{if(this.selectedReactions_.get(a)){var b=!1;this.selectedReactions_.remove(a)}else b=!0,this.selectedReactions_.set(a,!0);var c=g;Qc(this.selectedReactions_.getKeyIterator(),function(a){c=c+ba+this.encodeLabel_(a)+ca},this);this.sender_.send(na,zb,p,eb+this.entityId_+da+c+Fa+this.writeToken_);var d=this.options_[a];if(d){a=this.counts_[a];var e=parseInt(Oc(a),10);isNaN(e)&&(e=0);a.innerHTML=b?e+1:e-1;Hc(d,hb);Hc(d,mb)}}};yb("BLOG_Annotator",ed,void 0);ed.prototype.initialize=ed.prototype.initialize;yb("BLOG_listenOnce",vc,void 0); })()
