(function(){var h,l=this,m=function(a){return void 0!==a},aa=function(){},ba=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=
typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},n=function(a){return"array"==ba(a)},ca=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},r=function(a){return"string"==typeof a},t=function(a){return"function"==ba(a)},u=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},da="closure_uid_"+(1E9*Math.random()>>>0),ea=0,fa=function(a,
b,c){return a.call.apply(a.bind,arguments)},ga=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)}},v=function(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?fa:ga;return v.apply(null,arguments)},ha=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)}},w=Date.now||function(){return+new Date},ia=function(a,b){a=a.split(".");var c=l;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&m(b)?c[d]=b:c=c[d]?c[d]:c[d]={}},x=function(a,b){function c(){}c.prototype=b.prototype;a.V=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.sc=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=
arguments[e];return b.prototype[c].apply(a,d)}};var ja=(new Date).getTime();var y=document,ka=window;var z=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,z);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};x(z,Error);z.prototype.name="CustomError";var la;var ma=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},na=function(a,b){return a<b?-1:a>b?1:0};var oa=Array.prototype.indexOf?function(a,b,c){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(r(a))return r(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},pa=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},qa=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},ra=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)},sa=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};var ta=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ua=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},va=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},wa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),ya=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<xa.length;f++)c=xa[f],Object.prototype.hasOwnProperty.call(d,
c)&&(a[c]=d[c])}};var A;a:{var za=l.navigator;if(za){var Aa=za.userAgent;if(Aa){A=Aa;break a}}A=""}var B=function(a){return-1!=A.indexOf(a)};var Ba="StopIteration"in l?l.StopIteration:{message:"StopIteration",stack:""},Ca=function(){};Ca.prototype.next=function(){throw Ba;};Ca.prototype.Nb=function(){return this};var Da=function(a,b){this.L={};this.j=[];this.Ea=this.o=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)};h=Da.prototype;h.J=function(){Ea(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.L[this.j[b]]);return a};h.Z=function(){Ea(this);return this.j.concat()};h.ua=function(a){return C(this.L,a)};h.clear=function(){this.L={};this.Ea=this.o=this.j.length=0};
h.remove=function(a){return C(this.L,a)?(delete this.L[a],this.o--,this.Ea++,this.j.length>2*this.o&&Ea(this),!0):!1};var Ea=function(a){if(a.o!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];C(a.L,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.o!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],C(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};h=Da.prototype;h.get=function(a,b){return C(this.L,a)?this.L[a]:b};h.set=function(a,b){C(this.L,a)||(this.o++,this.j.push(a),this.Ea++);this.L[a]=b};
h.addAll=function(a){var b;a instanceof Da?(b=a.Z(),a=a.J()):(b=wa(a),a=va(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};h.forEach=function(a,b){for(var c=this.Z(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new Da(this)};h.Nb=function(a){Ea(this);var b=0,c=this.Ea,d=this,e=new Ca;e.next=function(){if(c!=d.Ea)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)throw Ba;var e=d.j[b++];return a?e:d.L[e]};return e};
var C=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Fa=function(a){if(a.J&&"function"==typeof a.J)return a.J();if(r(a))return a.split("");if(ca(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return va(a)},Ga=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(ca(a)||r(a))pa(a,b,c);else{var d;if(a.Z&&"function"==typeof a.Z)d=a.Z();else if(a.J&&"function"==typeof a.J)d=void 0;else if(ca(a)||r(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=wa(a);for(var e=Fa(a),f=e.length,g=0;g<f;g++)b.call(c,
e[g],d&&d[g],a)}};var Ha=function(a){Ha[" "](a);return a};Ha[" "]=aa;var Ia=function(a,b){try{return Ha(a[b]),!0}catch(c){}return!1},Ka=function(a,b){var c=Ja;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var La=B("Opera"),D=B("Trident")||B("MSIE"),Ma=B("Edge"),E=B("Gecko")&&!(-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge"))&&!(B("Trident")||B("MSIE"))&&!B("Edge"),Na=-1!=A.toLowerCase().indexOf("webkit")&&!B("Edge"),Oa=function(){var a=l.document;return a?a.documentMode:void 0},Pa;
a:{var Qa="",Ra=function(){var a=A;if(E)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Ma)return/Edge\/([\d\.]+)/.exec(a);if(D)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Na)return/WebKit\/(\S+)/.exec(a);if(La)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Ra&&(Qa=Ra?Ra[1]:"");if(D){var Sa=Oa();if(null!=Sa&&Sa>parseFloat(Qa)){Pa=String(Sa);break a}}Pa=Qa}
var Ta=Pa,Ja={},F=function(a){return Ka(a,function(){for(var b=0,c=ma(String(Ta)).split("."),d=ma(String(a)).split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",k=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(0==g[0].length&&0==k[0].length)break;b=na(0==g[1].length?0:parseInt(g[1],10),0==k[1].length?0:parseInt(k[1],10))||na(0==g[2].length,0==k[2].length)||na(g[2],k[2]);g=g[3];k=k[3]}while(0==b)}return 0<=b})},Ua;var Va=l.document;
Ua=Va&&D?Oa()||("CSS1Compat"==Va.compatMode?parseInt(Ta,10):5):void 0;var G=function(){this.ma=this.ma;this.Qa=this.Qa};G.prototype.ma=!1;G.prototype.zb=function(){this.ma||(this.ma=!0,this.v())};G.prototype.v=function(){if(this.Qa)for(;this.Qa.length;)this.Qa.shift()()};var H=function(a){a&&"function"==typeof a.zb&&a.zb()};var I=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.ia=!1;this.Lb=!0};I.prototype.stopPropagation=function(){this.ia=!0};I.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Lb=!1};var Wa=!D||9<=Number(Ua),Xa=D&&!F("9");!Na||F("528");E&&F("1.9b")||D&&F("8")||La&&F("9.5")||Na&&F("528");E&&!F("8")||D&&F("9");var J=function(a,b){I.call(this,a?a.type:"");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.ea=this.state=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?E&&(Ia(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:
"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;null===d?(this.offsetX=Na||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=Na||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||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.ea=a;a.defaultPrevented&&this.preventDefault()}};x(J,I);J.prototype.stopPropagation=function(){J.V.stopPropagation.call(this);this.ea.stopPropagation?this.ea.stopPropagation():this.ea.cancelBubble=!0};
J.prototype.preventDefault=function(){J.V.preventDefault.call(this);var a=this.ea;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Xa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Ya="closure_listenable_"+(1E6*Math.random()|0),Za=function(a){return!(!a||!a[Ya])},$a=0;var ab=function(a,b,c,d,e){this.listener=a;this.Sa=null;this.src=b;this.type=c;this.capture=!!d;this.Ma=e;this.key=++$a;this.ra=this.Ia=!1},bb=function(a){a.ra=!0;a.listener=null;a.Sa=null;a.src=null;a.Ma=null};var K=function(a){this.src=a;this.u={};this.Da=0};K.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.u[f];a||(a=this.u[f]=[],this.Da++);var g=cb(a,b,d,e);-1<g?(b=a[g],c||(b.Ia=!1)):(b=new ab(b,this.src,f,!!d,e),b.Ia=c,a.push(b));return b};K.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.u))return!1;var e=this.u[a];b=cb(e,b,c,d);return-1<b?(bb(e[b]),Array.prototype.splice.call(e,b,1),0==e.length&&(delete this.u[a],this.Da--),!0):!1};
var db=function(a,b){var c=b.type;if(c in a.u){var d=a.u[c],e=oa(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(bb(b),0==a.u[c].length&&(delete a.u[c],a.Da--))}};K.prototype.Ta=function(a){a=a&&a.toString();var b=0,c;for(c in this.u)if(!a||c==a){for(var d=this.u[c],e=0;e<d.length;e++)++b,bb(d[e]);delete this.u[c];this.Da--}return b};K.prototype.xa=function(a,b,c,d){a=this.u[a.toString()];var e=-1;a&&(e=cb(a,b,c,d));return-1<e?a[e]:null};
K.prototype.hasListener=function(a,b){var c=m(a),d=c?a.toString():"",e=m(b);return ua(this.u,function(a){for(var f=0;f<a.length;++f)if(!(c&&a[f].type!=d||e&&a[f].capture!=b))return!0;return!1})};var cb=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.ra&&f.listener==b&&f.capture==!!c&&f.Ma==d)return e}return-1};var eb="closure_lm_"+(1E6*Math.random()|0),fb={},gb=0,hb=function(a,b,c,d,e){if(n(b)){for(var f=0;f<b.length;f++)hb(a,b[f],c,d,e);return null}c=ib(c);return Za(a)?a.hb(b,c,d,e):jb(a,b,c,!1,d,e)},jb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,k=kb(a);k||(a[eb]=k=new K(a));c=k.add(b,c,d,e,f);if(c.Sa)return c;d=lb();c.Sa=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,g);else if(a.attachEvent)a.attachEvent(mb(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");
gb++;return c},lb=function(){var a=nb,b=Wa?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},ob=function(a,b,c,d,e){if(n(b)){for(var f=0;f<b.length;f++)ob(a,b[f],c,d,e);return null}c=ib(c);return Za(a)?a.Gb(b,c,d,e):jb(a,b,c,!0,d,e)},pb=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)pb(a,b[f],c,d,e);else c=ib(c),Za(a)?a.qb(b,c,d,e):a&&(a=kb(a))&&(b=a.xa(b,c,!!d,e))&&qb(b)},qb=function(a){if("number"!=typeof a&&a&&!a.ra){var b=
a.src;if(Za(b))db(b.N,a);else{var c=a.type,d=a.Sa;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(mb(c),d);gb--;(c=kb(b))?(db(c,a),0==c.Da&&(c.src=null,b[eb]=null)):bb(a)}}},rb=function(a,b,c,d,e){c=ib(c);d=!!d;return Za(a)?a.xa(b,c,d,e):a?(a=kb(a))?a.xa(b,c,d,e):null:null},mb=function(a){return a in fb?fb[a]:fb[a]="on"+a},tb=function(a,b,c,d){var e=!0;if(a=kb(a))if(b=a.u[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.ra&&
(f=sb(f,d),e=e&&!1!==f)}return e},sb=function(a,b){var c=a.listener,d=a.Ma||a.src;a.Ia&&qb(a);return c.call(d,b)},nb=function(a,b){if(a.ra)return!0;if(!Wa){if(!b)a:{b=["window","event"];for(var c=l,d;d=b.shift();)if(null!=c[d])c=c[d];else{b=null;break a}b=c}d=b;b=new J(d,this);c=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var e=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==d.returnValue)d.returnValue=!0}d=[];for(e=b.currentTarget;e;e=e.parentNode)d.push(e);a=a.type;for(e=
d.length-1;!b.ia&&0<=e;e--){b.currentTarget=d[e];var f=tb(d[e],a,!0,b),c=c&&f}for(e=0;!b.ia&&e<d.length;e++)b.currentTarget=d[e],f=tb(d[e],a,!1,b),c=c&&f}return c}return sb(a,new J(b,this))},kb=function(a){a=a[eb];return a instanceof K?a:null},ub="__closure_events_fn_"+(1E9*Math.random()>>>0),ib=function(a){if(t(a))return a;a[ub]||(a[ub]=function(b){return a.handleEvent(b)});return a[ub]};var L=function(){G.call(this);this.N=new K(this);this.Ob=this;this.kb=null};x(L,G);L.prototype[Ya]=!0;h=L.prototype;h.addEventListener=function(a,b,c,d){hb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){pb(this,a,b,c,d)};
h.dispatchEvent=function(a){var b,c=this.kb;if(c)for(b=[];c;c=c.kb)b.push(c);var c=this.Ob,d=a.type||a;if(r(a))a=new I(a,c);else if(a instanceof I)a.target=a.target||c;else{var e=a;a=new I(d,c);ya(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.ia&&0<=g;g--)f=a.currentTarget=b[g],e=vb(f,d,!0,a)&&e;a.ia||(f=a.currentTarget=c,e=vb(f,d,!0,a)&&e,a.ia||(e=vb(f,d,!1,a)&&e));if(b)for(g=0;!a.ia&&g<b.length;g++)f=a.currentTarget=b[g],e=vb(f,d,!1,a)&&e;return e};
h.v=function(){L.V.v.call(this);this.N&&this.N.Ta(void 0);this.kb=null};h.hb=function(a,b,c,d){return this.N.add(String(a),b,!1,c,d)};h.Gb=function(a,b,c,d){return this.N.add(String(a),b,!0,c,d)};h.qb=function(a,b,c,d){return this.N.remove(String(a),b,c,d)};var vb=function(a,b,c,d){b=a.N.u[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.ra&&g.capture==c){var k=g.listener,p=g.Ma||g.src;g.Ia&&db(a.N,g);e=!1!==k.call(p,d)&&e}}return e&&0!=d.Lb};
L.prototype.xa=function(a,b,c,d){return this.N.xa(String(a),b,c,d)};L.prototype.hasListener=function(a,b){return this.N.hasListener(m(a)?String(a):void 0,b)};var wb=function(a,b,c){this.ec=c;this.Vb=a;this.kc=b;this.Pa=0;this.Na=null};wb.prototype.get=function(){var a;0<this.Pa?(this.Pa--,a=this.Na,this.Na=a.next,a.next=null):a=this.Vb();return a};wb.prototype.put=function(a){this.kc(a);this.Pa<this.ec&&(this.Pa++,a.next=this.Na,this.Na=a)};var xb=function(a){l.setTimeout(function(){throw a;},0)},yb,zb=function(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!B("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,
a=v(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!B("Trident")&&!B("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(m(c.next)){c=c.next;var a=c.sb;c.sb=null;a()}};return function(a){d.next={sb:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};var Ab=function(){this.Ya=this.ta=null},Cb=new wb(function(){return new Bb},function(a){a.reset()},100);Ab.prototype.add=function(a,b){var c=Cb.get();c.set(a,b);this.Ya?this.Ya.next=c:this.ta=c;this.Ya=c};Ab.prototype.remove=function(){var a=null;this.ta&&(a=this.ta,this.ta=this.ta.next,this.ta||(this.Ya=null),a.next=null);return a};var Bb=function(){this.next=this.scope=this.fb=null};Bb.prototype.set=function(a,b){this.fb=a;this.scope=b;this.next=null};
Bb.prototype.reset=function(){this.next=this.scope=this.fb=null};var Hb=function(a,b){Db||Eb();Fb||(Db(),Fb=!0);Gb.add(a,b)},Db,Eb=function(){var a=l.Promise;if(-1!=String(a).indexOf("[native code]")){var b=a.resolve(void 0);Db=function(){b.then(Ib)}}else Db=function(){var a=Ib;!t(l.setImmediate)||l.Window&&l.Window.prototype&&!B("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(yb||(yb=zb()),yb(a)):l.setImmediate(a)}},Fb=!1,Gb=new Ab,Ib=function(){for(var a;a=Gb.remove();){try{a.fb.call(a.scope)}catch(b){xb(b)}Cb.put(a)}Fb=!1};var Jb=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},Kb=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var N=function(a,b){this.s=0;this.T=void 0;this.ka=this.W=this.w=null;this.La=this.eb=!1;if(a!=aa)try{var c=this;a.call(b,function(a){M(c,2,a)},function(a){M(c,3,a)})}catch(d){M(this,3,d)}},Lb=function(){this.next=this.context=this.pa=this.Aa=this.da=null;this.Ga=!1};Lb.prototype.reset=function(){this.context=this.pa=this.Aa=this.da=null;this.Ga=!1};var Mb=new wb(function(){return new Lb},function(a){a.reset()},100),Nb=function(a,b,c){var d=Mb.get();d.Aa=a;d.pa=b;d.context=c;return d};
N.prototype.then=function(a,b,c){return Ob(this,t(a)?a:null,t(b)?b:null,c)};Jb(N);N.prototype.cancel=function(a){0==this.s&&Hb(function(){var b=new Pb(a);Qb(this,b)},this)};
var Qb=function(a,b){if(0==a.s)if(a.w){var c=a.w;if(c.W){for(var d=0,e=null,f=null,g=c.W;g&&(g.Ga||(d++,g.da==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.s&&1==d?Qb(c,b):(f?(d=f,d.next==c.ka&&(c.ka=d),d.next=d.next.next):Rb(c),Sb(c,e,3,b)))}a.w=null}else M(a,3,b)},Ub=function(a,b){a.W||2!=a.s&&3!=a.s||Tb(a);a.ka?a.ka.next=b:a.W=b;a.ka=b},Ob=function(a,b,c,d){var e=Nb(null,null,null);e.da=new N(function(a,g){e.Aa=b?function(c){try{var e=b.call(d,c);a(e)}catch(q){g(q)}}:a;e.pa=c?function(b){try{var e=
c.call(d,b);!m(e)&&b instanceof Pb?g(b):a(e)}catch(q){g(q)}}:g});e.da.w=a;Ub(a,e);return e.da};N.prototype.qc=function(a){this.s=0;M(this,2,a)};N.prototype.rc=function(a){this.s=0;M(this,3,a)};
var M=function(a,b,c){if(0==a.s){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.s=1;var d;a:{var e=c,f=a.qc,g=a.rc;if(e instanceof N)Ub(e,Nb(f||aa,g||null,a)),d=!0;else if(Kb(e))e.then(f,g,a),d=!0;else{if(u(e))try{var k=e.then;if(t(k)){Vb(e,k,f,g,a);d=!0;break a}}catch(p){g.call(a,p);d=!0;break a}d=!1}}d||(a.T=c,a.s=b,a.w=null,Tb(a),3!=b||c instanceof Pb||Wb(a,c))}},Vb=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},k=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,
g,k)}catch(p){k(p)}},Tb=function(a){a.eb||(a.eb=!0,Hb(a.$b,a))},Rb=function(a){var b=null;a.W&&(b=a.W,a.W=b.next,b.next=null);a.W||(a.ka=null);return b};N.prototype.$b=function(){for(var a;a=Rb(this);)Sb(this,a,this.s,this.T);this.eb=!1};
var Sb=function(a,b,c,d){if(3==c&&b.pa&&!b.Ga)for(;a&&a.La;a=a.w)a.La=!1;if(b.da)b.da.w=null,Xb(b,c,d);else try{b.Ga?b.Aa.call(b.context):Xb(b,c,d)}catch(e){Yb.call(null,e)}Mb.put(b)},Xb=function(a,b,c){2==b?a.Aa.call(a.context,c):a.pa&&a.pa.call(a.context,c)},Wb=function(a,b){a.La=!0;Hb(function(){a.La&&Yb.call(null,b)})},Yb=xb,Pb=function(a){z.call(this,a)};x(Pb,z);Pb.prototype.name="cancel";var Zb=function(a,b){L.call(this);this.ga=a||1;this.sa=b||l;this.ab=v(this.oc,this);this.gb=w()};x(Zb,L);h=Zb.prototype;h.enabled=!1;h.H=null;h.setInterval=function(a){this.ga=a;this.H&&this.enabled?(this.stop(),this.start()):this.H&&this.stop()};
h.oc=function(){if(this.enabled){var a=w()-this.gb;0<a&&a<.8*this.ga?this.H=this.sa.setTimeout(this.ab,this.ga-a):(this.H&&(this.sa.clearTimeout(this.H),this.H=null),this.dispatchEvent("tick"),this.enabled&&(this.H=this.sa.setTimeout(this.ab,this.ga),this.gb=w()))}};h.start=function(){this.enabled=!0;this.H||(this.H=this.sa.setTimeout(this.ab,this.ga),this.gb=w())};h.stop=function(){this.enabled=!1;this.H&&(this.sa.clearTimeout(this.H),this.H=null)};h.v=function(){Zb.V.v.call(this);this.stop();delete this.sa};
var $b=function(a,b,c){if(t(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)};var ac=function(a,b,c){G.call(this);this.ib=a;this.ga=b||0;this.oa=c;this.Ub=v(this.Xb,this)};x(ac,G);h=ac.prototype;h.K=0;h.v=function(){ac.V.v.call(this);this.stop();delete this.ib;delete this.oa};h.start=function(a){this.stop();this.K=$b(this.Ub,m(a)?a:this.ga)};h.stop=function(){0!=this.K&&l.clearTimeout(this.K);this.K=0};h.Xb=function(){this.K=0;this.ib&&this.ib.call(this.oa)};!E&&!D||D&&9<=Number(Ua)||E&&F("1.9.1");D&&F("9");var cc=function(a,b,c){function d(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(var e=1;e<c.length;e++){var f=c[e];!ca(f)||u(f)&&0<f.nodeType?d(f):pa(bc(f)?sa(f):f,d)}},bc=function(a){if(a&&"number"==typeof a.length){if(u(a))return"function"==typeof a.item||"string"==typeof a.item;if(t(a))return"function"==typeof a.item}return!1},dc=function(a){this.va=a||l.document||document};h=dc.prototype;h.getElementsByTagName=function(a,b){return(b||this.va).getElementsByTagName(String(a))};
h.createElement=function(a){return this.va.createElement(String(a))};h.createTextNode=function(a){return this.va.createTextNode(String(a))};h.na=function(){var a=this.va;return a.parentWindow||a.defaultView};h.appendChild=function(a,b){a.appendChild(b)};h.append=function(a,b){cc(9==a.nodeType?a:a.ownerDocument||a.document,a,arguments)};h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
h.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};h.contains=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var O=function(a){G.call(this);this.oa=a;this.j={}};x(O,G);var ec=[];O.prototype.hb=function(a,b,c,d){n(b)||(b&&(ec[0]=b.toString()),b=ec);for(var e=0;e<b.length;e++){var f=hb(a,b[e],c||this.handleEvent,d||!1,this.oa||this);if(!f)break;this.j[f.key]=f}return this};O.prototype.Gb=function(a,b,c,d){return fc(this,a,b,c,d)};var fc=function(a,b,c,d,e,f){if(n(c))for(var g=0;g<c.length;g++)fc(a,b,c[g],d,e,f);else{b=ob(b,c,d||a.handleEvent,e,f||a.oa||a);if(!b)return a;a.j[b.key]=b}return a};
O.prototype.qb=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)this.qb(a,b[f],c,d,e);else if(a=rb(a,b,c||this.handleEvent,d,e||this.oa||this))qb(a),delete this.j[a.key];return this};O.prototype.Ta=function(){ta(this.j,function(a,b){this.j.hasOwnProperty(b)&&qb(a)},this);this.j={}};O.prototype.v=function(){O.V.v.call(this);this.Ta()};O.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var gc=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))},hc=function(a){a=String(a);if(gc(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);},kc=function(a){var b=[];ic(new jc,a,b);return b.join("")},jc=function(){this.Ua=void 0},
ic=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(n(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ic(a,a.Ua?a.Ua.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),lc(d,c),c.push(":"),ic(a,a.Ua?a.Ua.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":lc(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},mc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},nc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,lc=function(a,b){b.push('"',a.replace(nc,function(a){var b=mc[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),
mc[a]=b);return b}),'"')};var P=function(){G.call(this);this.nb={}};x(P,G);P.prototype.fc=null;P.prototype.connect=function(a){a&&a()};P.prototype.R=function(){return!0};var oc=function(a,b){if(b&&r(a))try{return hc(a)}catch(c){return null}else if(!b&&!r(a))return kc(a);return a};P.prototype.v=function(){P.V.v.call(this);delete this.fc;delete this.nb;delete this.yb};var pc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,qc=function(a){var b=a.match(pc);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e},rc=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e,f=null;0<=d?(e=a[c].substring(0,d),f=a[c].substring(d+1)):e=a[c];b(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}}};var Q=function(a,b){this.D=this.ja=this.U="";this.aa=null;this.fa=this.G="";this.F=this.dc=!1;var c;a instanceof Q?(this.F=m(b)?b:a.F,sc(this,a.U),c=a.ja,R(this),this.ja=c,c=a.D,R(this),this.D=c,tc(this,a.aa),c=a.G,R(this),this.G=c,uc(this,a.S.clone()),a=a.fa,R(this),this.fa=a):a&&(c=String(a).match(pc))?(this.F=!!b,sc(this,c[1]||"",!0),a=c[2]||"",R(this),this.ja=vc(a),a=c[3]||"",R(this),this.D=vc(a,!0),tc(this,c[4]),a=c[5]||"",R(this),this.G=vc(a,!0),uc(this,c[6]||"",!0),a=c[7]||"",R(this),this.fa=
vc(a)):(this.F=!!b,this.S=new S(null,0,this.F))};Q.prototype.toString=function(){var a=[],b=this.U;b&&a.push(wc(b,xc,!0),":");var c=this.D;if(c||"file"==b)a.push("//"),(b=this.ja)&&a.push(wc(b,xc,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.aa,null!=c&&a.push(":",String(c));if(c=this.G)this.D&&"/"!=c.charAt(0)&&a.push("/"),a.push(wc(c,"/"==c.charAt(0)?yc:zc,!0));(c=this.S.toString())&&a.push("?",c);(c=this.fa)&&a.push("#",wc(c,Ac));return a.join("")};
Q.prototype.resolve=function(a){var b=this.clone(),c=!!a.U;c?sc(b,a.U):c=!!a.ja;if(c){var d=a.ja;R(b);b.ja=d}else c=!!a.D;c?(d=a.D,R(b),b.D=d):c=null!=a.aa;d=a.G;if(c)tc(b,a.aa);else if(c=!!a.G){if("/"!=d.charAt(0))if(this.D&&!this.G)d="/"+d;else{var e=b.G.lastIndexOf("/");-1!=e&&(d=b.G.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=0==e.lastIndexOf("/",0),e=e.split("/"),f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):
".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?(R(b),b.G=d):c=""!==a.S.toString();c?uc(b,a.S.clone()):c=!!a.fa;c&&(a=a.fa,R(b),b.fa=a);return b};Q.prototype.clone=function(){return new Q(this)};
var sc=function(a,b,c){R(a);a.U=c?vc(b,!0):b;a.U&&(a.U=a.U.replace(/:$/,""))},tc=function(a,b){R(a);if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.aa=b}else a.aa=null},uc=function(a,b,c){R(a);b instanceof S?(a.S=b,a.S.ob(a.F)):(c||(b=wc(b,Bc)),a.S=new S(b,0,a.F))},R=function(a){if(a.dc)throw Error("Tried to modify a read-only Uri");};Q.prototype.ob=function(a){this.F=a;this.S&&this.S.ob(a);return this};
var Cc=function(a){return a instanceof Q?a.clone():new Q(a,void 0)},vc=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},wc=function(a,b,c){return r(a)?(a=encodeURI(a).replace(b,Dc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Dc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},xc=/[#\/\?@]/g,zc=/[\#\?:]/g,yc=/[\#\?]/g,Bc=/[\#\?@]/g,Ac=/#/g,S=function(a,b,c){this.o=this.m=null;this.B=a||null;this.F=!!c},T=function(a){a.m||
(a.m=new Da,a.o=0,a.B&&rc(a.B,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};h=S.prototype;h.add=function(a,b){T(this);this.B=null;a=U(this,a);var c=this.m.get(a);c||this.m.set(a,c=[]);c.push(b);this.o+=1;return this};h.remove=function(a){T(this);a=U(this,a);return this.m.ua(a)?(this.B=null,this.o-=this.m.get(a).length,this.m.remove(a)):!1};h.clear=function(){this.m=this.B=null;this.o=0};h.ua=function(a){T(this);a=U(this,a);return this.m.ua(a)};
h.Z=function(){T(this);for(var a=this.m.J(),b=this.m.Z(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};h.J=function(a){T(this);var b=[];if(r(a))this.ua(a)&&(b=ra(b,this.m.get(U(this,a))));else{a=this.m.J();for(var c=0;c<a.length;c++)b=ra(b,a[c])}return b};h.set=function(a,b){T(this);this.B=null;a=U(this,a);this.ua(a)&&(this.o-=this.m.get(a).length);this.m.set(a,[b]);this.o+=1;return this};h.get=function(a,b){a=a?this.J(a):[];return 0<a.length?String(a[0]):b};
h.toString=function(){if(this.B)return this.B;if(!this.m)return"";for(var a=[],b=this.m.Z(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.J(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.B=a.join("&")};h.clone=function(){var a=new S;a.B=this.B;this.m&&(a.m=this.m.clone(),a.o=this.o);return a};var U=function(a,b){b=String(b);a.F&&(b=b.toLowerCase());return b};
S.prototype.ob=function(a){a&&!this.F&&(T(this),this.B=null,this.m.forEach(function(a,c){var b=c.toLowerCase();c!=b&&(this.remove(c),this.remove(b),0<a.length&&(this.B=null,this.m.set(U(this,b),sa(a)),this.o+=a.length))},this));this.F=a};S.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)Ga(arguments[b],function(a,b){this.add(b,a)},this)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var V=function(a,b){this.Va=[];this.Kb=a;this.xb=b||null;this.ya=this.O=!1;this.T=void 0;this.pb=this.Sb=this.$a=!1;this.Xa=0;this.w=null;this.Ha=0};V.prototype.cancel=function(a){if(this.O)this.T instanceof V&&this.T.cancel();else{if(this.w){var b=this.w;delete this.w;a?b.cancel(a):(b.Ha--,0>=b.Ha&&b.cancel())}this.Kb?this.Kb.call(this.xb,this):this.pb=!0;this.O||this.Ab(new Ec)}};V.prototype.wb=function(a,b){this.$a=!1;Fc(this,a,b)};
var Fc=function(a,b,c){a.O=!0;a.T=c;a.ya=!b;Gc(a)},Ic=function(a){if(a.O){if(!a.pb)throw new Hc;a.pb=!1}};V.prototype.P=function(a){Ic(this);Fc(this,!0,a)};V.prototype.Ab=function(a){Ic(this);Fc(this,!1,a)};var Kc=function(a,b,c){Jc(a,b,null,c)},Jc=function(a,b,c,d){a.Va.push([b,c,d]);a.O&&Gc(a)};V.prototype.then=function(a,b,c){var d,e,f=new N(function(a,b){d=a;e=b});Jc(this,d,function(a){a instanceof Ec?f.cancel():e(a)});return f.then(a,b,c)};Jb(V);
var Lc=function(a,b){b instanceof V?Kc(a,v(b.Tb,b)):Kc(a,function(){return b})};V.prototype.Tb=function(a){var b=new V;Jc(this,b.P,b.Ab,b);a&&(b.w=this,this.Ha++);return b};
var Mc=function(a){return qa(a.Va,function(a){return t(a[1])})},Gc=function(a){if(a.Xa&&a.O&&Mc(a)){var b=a.Xa,c=Nc[b];c&&(l.clearTimeout(c.K),delete Nc[b]);a.Xa=0}a.w&&(a.w.Ha--,delete a.w);for(var b=a.T,d=c=!1;a.Va.length&&!a.$a;){var e=a.Va.shift(),f=e[0],g=e[1],e=e[2];if(f=a.ya?g:f)try{var k=f.call(e||a.xb,b);m(k)&&(a.ya=a.ya&&(k==b||k instanceof Error),a.T=b=k);if(Kb(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.$a=!0}catch(p){b=p,a.ya=!0,Mc(a)||(c=!0)}}a.T=b;d&&(k=v(a.wb,
a,!0),d=v(a.wb,a,!1),b instanceof V?(Jc(b,k,d),b.Sb=!0):b.then(k,d));c&&(b=new Oc(b),Nc[b.K]=b,a.Xa=b.K)},Hc=function(){z.call(this)};x(Hc,z);Hc.prototype.message="Deferred has already fired";Hc.prototype.name="AlreadyCalledError";var Ec=function(){z.call(this)};x(Ec,z);Ec.prototype.message="Deferred was canceled";Ec.prototype.name="CanceledError";var Oc=function(a){this.K=l.setTimeout(v(this.nc,this),0);this.Zb=a};Oc.prototype.nc=function(){delete Nc[this.K];throw this.Zb;};var Nc={};var Pc={1:"NativeMessagingTransport",2:"FrameElementMethodTransport",3:"IframeRelayTransport",4:"IframePollingTransport",5:"FlashTransport",6:"NixTransport",7:"DirectTransport"},Qc=["pu","lru","pru","lpu","ppu"],W={},Sc=function(){for(var a=10,b=Rc,c=b.length,d="";0<a--;)d+=b.charAt(Math.floor(Math.random()*c));return d},Rc="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var X=function(a){G.call(this);this.wa=a||la||(la=new dc)};x(X,G);X.prototype.Mb=0;X.prototype.na=function(){return this.wa.na()};X.prototype.getName=function(){return Pc[String(this.Mb)]||""};var Y=function(a,b,c,d,e){X.call(this,c);this.l=a;this.qa=e||2;this.lb=b||"*";this.cb=new O(this);this.za=new Zb(100,this.na());this.jb=!!d;this.ba=new V;this.ca=new V;this.X=new V;this.Yb=Sc();this.Ra=null;this.jb?1==Tc(this.l)?Lc(this.X,this.ba):Lc(this.X,this.ca):(Lc(this.X,this.ba),2==this.qa&&Lc(this.X,this.ca));Kc(this.X,this.hc,this);this.X.P(!0);this.cb.hb(this.za,"tick",this.Ib)};x(Y,X);Y.prototype.C=null;Y.prototype.Eb=!1;Y.prototype.Mb=1;var Uc={};Y.prototype.Ca=0;
var Wc=function(a){var b=a.ea.data;if(!r(b))return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(-1==c||-1==d)return!1;var e=b.substring(0,c),c=b.substring(c+1,d),b=b.substring(d+1);if(d=W[e])return d.rb(c,b,a.ea.origin),!0;var d=Vc(b)[0],f;for(f in W)if(a=W[f],1==Tc(a)&&!a.R()&&"tp"==c&&("SETUP"==d||"SETUP_NTPV2"==d))return f=a,delete W[f.name],f.name=e,W[e]=f,a.rb(c,b),!0;return!1},Xc=function(a){2!=a.qa||null!=a.C&&2!=a.C||a.send("tp","SETUP_NTPV2,"+a.Yb);null!=a.C&&1!=a.C||a.send("tp","SETUP")},
Yc=function(a,b){if(2!=a.qa||null!=a.C&&2!=a.C||2!=b){if(null!=a.C&&1!=a.C||1!=b)return;a.send("tp","SETUP_ACK")}else a.send("tp","SETUP_ACK_NTPV2");a.ca.O||a.ca.P(!0)},Zc=function(a,b){b>a.C&&(a.C=b);1==a.C&&(a.ca.O||a.jb||a.ca.P(!0),a.Ra=null)};h=Y.prototype;h.connect=function(){var a=this.na(),b=a[da]||(a[da]=++ea),c=Uc[b];"number"==typeof c||(c=0);0==c&&hb(a.postMessage?a:a.document,"message",Wc,!1,Y);Uc[b]=c+1;this.Eb=!0;this.Ib()};
h.Ib=function(){var a=0==Tc(this.l);this.jb&&a||this.l.R()||this.ma?this.za.stop():(this.za.start(),Xc(this))};h.send=function(a,b){var c=this.l.$;c&&(this.send=function(a,b){var d=this,e=this.l.name;this.Ca=$b(function(){d.Ca=0;try{var f=c.postMessage?c:c.document;f.postMessage&&f.postMessage(e+"|"+a+":"+b,d.lb)}catch(p){}},0)},this.send(a,b))};h.hc=function(){var a=this.l,b=1==this.qa||1==this.C?200:void 0;a.R()||a.Y&&0!=a.Y.K||(a.s=2,H(a.Y),m(b)?(a.Y=new ac(a.bb,b),a.Y.start()):(a.Y=null,a.bb()))};
h.v=function(){if(this.Eb){var a=this.na(),b=a[da]||(a[da]=++ea),c=Uc[b];Uc[b]=c-1;1==c&&pb(a.postMessage?a:a.document,"message",Wc,!1,Y)}this.Ca&&(l.clearTimeout(this.Ca),this.Ca=0);H(this.cb);delete this.cb;H(this.za);delete this.za;this.ba.cancel();delete this.ba;this.ca.cancel();delete this.ca;this.X.cancel();delete this.X;delete this.send;Y.V.v.call(this)};var Vc=function(a){a=a.split(",");a[1]=a[1]||null;return a};var ad=function(a,b){P.call(this);for(var c=0,d;d=Qc[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("URI "+a[d]+" is invalid for field "+d);this.A=a;this.name=this.A.cn||Sc();this.wa=b||la||(la=new dc);this.Ja=[];this.mb=new O(this);a.lpu=a.lpu||qc(this.wa.na().location.href)+"/robots.txt";a.ppu=a.ppu||qc(a.pu||"")+"/robots.txt";W[this.name]=this;rb(window,"unload",$c)||ob(window,"unload",$c)};x(ad,P);var bd=/^%*tp$/,cd=/^%+tp$/;h=ad.prototype;h.Y=null;h.ha=null;h.I=null;h.s=1;
h.R=function(){return 2==this.s};h.$=null;h.Oa=null;h.connect=function(a){this.bb=a||aa;3==this.s&&(this.s=1);this.ha?Kc(this.ha,this.vb):this.vb()};
h.vb=function(){this.ha=null;if(this.A.ifrid){var a=this.A.ifrid;this.Oa=r(a)?this.wa.va.getElementById(a):a}this.Oa&&((a=this.Oa.contentWindow)||(a=window.frames[this.A.ifrid]),this.$=a);if(!this.$){if(window==window.top)throw Error("CrossPageChannel: Can't connect, peer window-object not set.");this.$=window.parent}if(!this.I){this.A.tp||(this.A.tp=t(document.postMessage)||t(window.postMessage)||D&&window.postMessage?1:E?2:D&&this.A.pru?3:4);switch(this.A.tp){case 1:this.I=new Y(this,this.A.ph,
this.wa,!!this.A.osh,this.A.nativeProtocolVersion||2);break;case 6:this.I=null;break;case 2:this.I=null;break;case 3:this.I=null;break;case 4:this.I=null}if(!this.I)throw Error("CrossPageChannel: No suitable transport found!");}for(this.I.connect();0<this.Ja.length;)this.Ja.shift()()};h.close=function(){this.ha&&(this.ha.cancel(),this.ha=null);this.Ja.length=0;this.mb.Ta();this.s=3;H(this.I);this.bb=this.I=null;H(this.Y);this.Y=null};
h.send=function(a,b){if(this.R()){var c;try{c=!!this.$&&!this.$.closed}catch(d){c=!1}c?(u(b)&&(b=kc(b)),this.I.send(dd(a),b)):this.close()}};
h.rb=function(a,b,c){if(this.ha)this.Ja.push(v(this.rb,this,a,b,c));else{var d=this.A.ph;if((/^[\s\xa0]*$/.test(null==c?"":String(c))||/^[\s\xa0]*$/.test(null==d?"":String(d))||c==this.A.ph)&&!this.ma&&3!=this.s)if(a&&"tp"!=a)this.R()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=cd.test(a)?a.substring(1):a,a=(c=this.nb[a])?c:this.yb?{P:ha(this.yb,a),Jb:u(b)}:null)&&(b=oc(b,a.Jb),null!=b&&a.P(b));else switch(a=this.I,c=Vc(b),b=c[1],c[0]){case "SETUP_ACK":Zc(a,1);a.ba.O||a.ba.P(!0);break;case "SETUP_ACK_NTPV2":2==
a.qa&&(Zc(a,2),a.ba.O||a.ba.P(!0));break;case "SETUP":Zc(a,1);Yc(a,1);break;case "SETUP_NTPV2":2==a.qa&&(c=a.C,Zc(a,2),Yc(a,2),1!=c&&null==a.Ra||a.Ra==b||Xc(a),a.Ra=b)}}};var dd=function(a){bd.test(a)&&(a="%"+a);return a.replace(/[%:|]/g,encodeURIComponent)},Tc=function(a){var b=a.A.role;return"number"==typeof b?b:window.parent==a.$?1:0};ad.prototype.v=function(){this.close();this.Oa=this.$=null;delete W[this.name];H(this.mb);delete this.mb;ad.V.v.call(this)};var $c=function(){for(var a in W)H(W[a])};var fd=function(){var a=ed;try{return!!a&&null!=a.location.href&&Ia(a,"foo")}catch(b){return!1}},gd=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},hd=function(a){if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};var id=function(a,b,c){c=c?encodeURIComponent:function(a){return a};var d=hd(l.document.URL),e=0<d.length;return a+(-1==a.indexOf(c("?"))?c("?"):c("&"))+c([e?"google_debug"+(d?"="+d:"")+"&":"","xpc=",b,"&p=",encodeURIComponent(l.document.location.protocol),"//",encodeURIComponent(l.document.location.host)].join(""))},jd=function(a,b,c,d,e,f,g,k){return{a:a,b:b,c:c,d:d,e:e,f:f,g:g,h:k,i:void 0}},kd=function(a){return(a||l.document.location.protocol+"//"+l.document.location.host)+"/robots.txt"};var ld=function(a){this.l=this.Ka=null;this.la=[];this.M=a;a:{a=this.M.url;var b;try{var c=a,d=y.URL;d instanceof Q||(d=Cc(d));c instanceof Q||(c=Cc(c));b=d.resolve(c)}catch(e){c=a.indexOf("//");b=a.substring(0,c);b=(d=0<=c&&(0==c||":"==a.charAt(c-1)))&&0<c?b:y.location.protocol;a=d?a.substring(c+2):y.location.host;c=a.indexOf("/");0>c&&(c=a.indexOf("?"));d&&0<c&&(a=a.substring(0,c));a=b+"//"+a;break a}a=b.U+"://"+b.D;null!=b.aa&&(a+=":"+b.aa)}this.lb=a;a={};a.ifrid=this.M.id;a.pu=this.M.url;a.cn=
this.M.tb;a.ppu=kd(this.lb);a.lpu=kd();this.l=new ad(a);a=v(this.Db,this);this.l.nb.expandable_ad={P:a,Jb:!1};this.ub();$b(this.ac,3E4,this)};h=ld.prototype;h.ub=function(){if(this.l&&!this.l.R())try{this.l.connect(v(this.cc,this))}catch(a){$b(this.ub,10,this)}};
h.cc=function(){"undefined"!=typeof ExpandableIframeController&&this.Fb();var a=this.M.bc;a||(a="//pagead2.googlesyndication.com/pagead/js/creativetoolset/expansion_embed.js");var b=document.createElement("script");b.src=a;b.onload=v(this.Fb,this);document.body.appendChild(b)};
h.Fb=function(){null!=this.l&&null===this.Ka&&"undefined"!=typeof ExpandableIframeController&&(this.Ka=new ExpandableIframeController(v(this.lc,this),this.M.id,this.M.url,this.M.width,this.M.height,this.M.jc,this.M.Rb),0!=this.la.length&&(pa(this.la,function(a){this.Db(a)},this),this.la=[]))};h.ac=function(){this.l&&!this.l.R()&&(H(this.l),this.l=null)};h.Db=function(a){null!=this.Ka?this.Ka.handleMessage(a):30>this.la.length?this.la.push(a):(this.la=[],H(this.l),this.l=null)};
h.lc=function(a){this.l&&this.l.R()&&this.l.send("expandable_ad",a)};
var md=function(a){if(!a)return null;a={id:a.a,url:a.b,width:a.c,height:a.d,tb:a.e,jc:a.f,Rb:a.g,Cb:a.h,bc:a.i};if(!a.id||!a.url||0>=a.width||0>=a.height||!a.tb)return null;var b=new ld(a);a.Cb&&(ka[a.Cb]=b);return b},nd=function(a,b,c,d,e,f,g,k){if(!a||!b||0>=c||0>=d)return null;var p=Sc();b=id(b,p,k);k="<iframe allowtransparency=true frameborder=0 height="+d+" hspace=0 id="+a+" marginheight=0 marginwidth=0 name="+a+' scrolling=no src="'+b+'" style="left:0;position:absolute;top:0" vspace=0 width='+
c+" allowfullscreen=true></iframe>";if(!g){var q="border:none;height:"+d+"px;margin:0;padding:0;position:relative;visibility:visible;width:"+c+"px;background-color:transparent";k=['<ins id="',a+"_expand",'" style="display:inline-table;',q,'"><ins id="',a+"_anchor",'" style="display:block;',q,'">',k,"</ins></ins>"].join("")}(e=e?y.getElementById(e):null)?e.innerHTML=k:y.write(k);return md(jd(a,b,c,d,p,f,g))},qd=function(a,b,c,d,e){if(!a||!b||0>=c||0>=d)return null;var f=Sc();b=id(b,f);var g=od(a,b,
c,d),g=pd(g,c,d);e.appendChild(g);md(jd(a,b,c,d,f,void 0,void 0,"expandableAdSlot_"+a));return g};ia("adsense.advertiser.creativeToolset.DhtmlExpandableAdSlotPubFactory.appendAndSetupExpandableIframe",qd);
var pd=function(a,b,c){b="border:none;height:"+c+"px;margin:0;padding:0;position:relative;visibility:visible;width:"+b+"px";c=y.createElement("ins");c.style.cssText="display:inline-table;"+b;var d=y.createElement("ins");d.style.cssText="display:block;"+b;d.appendChild(a);c.appendChild(d);return c},od=function(a,b,c,d){var e=document.createElement("iframe");e.style.cssText="border:none;height:"+d+"px;margin:0;padding:0;position:relative;visibility:visible;width:"+c+"px";e.name=a;e.id=a;e.src=b;e.style.cssText=
"left:0;position:absolute;top:0";e.width=c;e.height=d;e.frameBorder=0;e.hspace=0;e.vspace=0;e.scrolling="no";e.marginHeight=0;e.marginWidth=0;e.allowTransparency=!0;e.setAttribute("allowfullscreen",!0);return e};ia("ExpandableAdSlotFactory.createIframe",nd);
ia("ExpandableAdSlotFactory.createIframeFromWindow",function(a){var b=a.google_frame_id;b||(b="google_frame_"+Math.floor(2147483647*Math.random()));var c=nd(b,a.google_ad_url,parseInt(a.google_ad_width,10),parseInt(a.google_ad_height,10),a.google_container_id);return a[b]=c});ia("DhtmlExpandableIframeFactory.createElement",function(a,b,c,d){if(!a||!b||0>=c||0>=d)return null;var e=Sc();b=id(b,e);var f=od(a,b,c,d);md(jd(a,b,c,d,e,void 0,void 0,"expandableAdSlot_"+a));return pd(f,c,d)});
ia("DhtmlExpandableIframeFactory.appendAndSetupExpandableIframe",qd);var sd=function(a){rd();this.enabled=Math.random()<a;this.Bb=[]},rd=l.performance&&l.performance.now?v(l.performance.now,l.performance):w;sd.prototype.install=function(a){a=a||window;a.google_js_reporting_queue=a.google_js_reporting_queue||[];this.Bb=a.google_js_reporting_queue};sd.prototype.disable=function(){this.Bb.length=0;this.enabled=!1};(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,b)}catch(c){}return a})();var td=function(a,b,c,d,e){this.Hb=c||4E3;this.Ba=a||"&";this.Qb=b||",$";this.Wa=m(d)?d:"trn";this.pc=e||null;this.Pb=!1;this.Za={};this.gc=0;this.Fa=[]},wd=function(a,b,c,d){b=b+"//"+c+d;var e=ud(a)-d.length-0;if(0>e)return"";a.Fa.sort(function(a,b){return a-b});d=null;c="";for(var f=0;f<a.Fa.length;f++)for(var g=a.Fa[f],k=a.Za[g],p=0;p<k.length;p++){if(!e){d=null==d?g:d;break}var q=vd(k[p],a.Ba,a.Qb);if(q){q=c+q;if(e>=q.length){e-=q.length;b+=q;c=a.Ba;break}else a.Pb&&(c=e,q[c-1]==a.Ba&&--c,b+=
q.substr(0,c),c=a.Ba,e=0);d=null==d?g:d}}f="";a.Wa&&null!=d&&(f=c+a.Wa+"="+(a.pc||d));return b+f+""},ud=function(a){if(!a.Wa)return a.Hb;var b=1,c;for(c in a.Za)b=c.length>b?c.length:b;return a.Hb-a.Wa.length-b-a.Ba.length-1},vd=function(a,b,c,d,e){var f=[];gd(a,function(a,k){(a=xd(a,b,c,d,e))&&f.push(k+"="+a)});return f.join(b)},xd=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],g=0;g<a.length;g++)f.push(xd(a[g],
b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(vd(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};var Cd=function(){var a={load:Math.round(yd),exec:zd},b=Ad;if(b.mc<b.Wb)try{var c;a instanceof td?c=a:(c=new td,gd(a,function(a,b){var d=c,e=d.gc++,f={};f[b]=a;a=[f];d.Fa.push(e);d.Za[e]=a}));var d=wd(c,b.ic,b.D,b.G+"perfPubl&");d&&Bd(d)}catch(e){}},Bd=function(a){l.google_image_requests||(l.google_image_requests=[]);var b=l.document.createElement("img");b.src=a;l.google_image_requests.push(b)};var Dd=!!window.google_async_iframe_id,ed=Dd&&window.parent||window;var Ad,Ed=new sd(1);Ad=new function(){this.ic="http:"===ka.location.protocol?"http:":"https:";this.D="pagead2.googlesyndication.com";this.G="/pagead/gen_204?id=";this.Wb=.01;this.mc=Math.random()};Ed.install(function(){if(Dd&&!fd()){var a="."+y.domain;try{for(;2<a.split(".").length&&!fd();)y.domain=a=a.substr(a.indexOf(".")+1),ed=window.parent}catch(b){}fd()||(ed=window)}return ed}());var Fd=document.URL;
if(Fd&&0<hd(Fd).length){var Gd=document.createElement("script");Gd.src="//pagead2.googlesyndication.com/pagead/js/creativetoolset/expansion_publ_dbg.js";document.body.appendChild(Gd)}else{var Hd=ka.google_eas_queue;if(Hd&&n(Hd))for(var Id=0;Id<Hd.length;Id++)Hd[Id]&&md(Hd[Id]);ka.google_eas_queue={push:md};var zd=(new Date).getTime()-ja,yd=-1;if(window.performance&&window.performance.getEntriesByType){var Z=window.performance.getEntriesByType("resource");if(Z&&0<Z.length)for(var Jd=0;Jd<Z.length;Jd++){var Kd=
Z[Jd].name;if("expansion_publ.js"==Kd.slice(Kd.lastIndexOf("/")+1)){yd=Z[Jd].responseEnd-Z[Jd].responseStart;break}}}(0<=zd||0<=yd)&&Cd()};}).call(this);
