text: /**
   * AnyChart is lightweight robust charting library with great API and Docs, that works with your stack and has tons of chart types and features.
   *
   * Modules: ui
   * Version: 8.10.0.1933 (2021-05-19)
   * License: https://www.anychart.com/buy/
   * Contact: sales@anychart.com
   * Copyright: AnyChart.com 2021. All rights reserved.
   */
   (function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{throw Error('anychart-base.min.js module should be included first. See modules explanation at https://docs.anychart.com/Quick_Start/Modules for details');$={};_={}}if(!_.ui){_.ui=1;(function($){var f8=function(a,b){a.Y&&a.Y.D&&($.Lc(a.Y.D,a.fe),$.Mc(a.Y.D,b,a));a.fe=b},era=function(a,b){a.Ld=b},fra=function(a,b){a.$g=b},g8=function(a,b){a.i.Vv(a.Va(),b);a.Ld=b},h8=function(a,b){return new $.gb(a.x-b.x,a.y-b.y)},gra=function(a){if($.hd&&!$.dd(8))return a.offsetParent;var b=$.oe(a),c=$.zf(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=$.zf(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>
   a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null},i8=function(a){for(var b=new $.lb(0,window.Infinity,window.Infinity,0),c=$.te(a),d=c.b.body,e=c.b.documentElement,f=$.Ae(c.b);a=gra(a);)if(!($.hd&&0==a.clientWidth||$.vd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=$.zf(a,"overflow")){var h=$.Ef(a),k=new $.gb(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,
   h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=$.ze($.Be(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null},hra=function(a,b){var c=b||$.Ae(window.document);var d=c||$.Ae(window.document);var e=$.Ef(a),f=$.Ef(d),h=$.Vf(d);if(d==$.Ae(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.hd&&!$.dd(10)&&(k+=h.left,
   e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.If(a);f=d.clientHeight-h.height;var l=d.scrollLeft,m=d.scrollTop;l+=Math.min(k,Math.max(k-(d.clientWidth-h.width),0));m+=Math.min(e,Math.max(e-f,0));d=new $.gb(l,m);c.scrollLeft=d.x;c.scrollTop=d.y},j8=function(a,b){$.qf.call(this);this.f=a||1;this.b=b||$.zj;this.i=(0,$.pa)(this.Nja,this);this.j=(0,$.In)()},ira=function(a,b){var c="";b&&(c=b.id);$.py(a,"activedescendant",c)},k8=function(){this.f=[]},l8=function(a,b){var c=a.f[b];if(!c){switch(b){case 0:c=
   a.yh()+"-highlight";break;case 1:c=a.yh()+"-checkbox";break;case 2:c=a.yh()+"-content"}a.f[b]=c}return c},jra=function(a,b,c){a=l8(a,2);return c.sc("DIV",a,b)},m8=function(a,b){var c=a.yn(b);if(c){c=c.firstChild;var d=l8(a,1);return!!c&&$.af(c)&&$.Oj(c,d)}return!1},n8=function(a,b,c,d){$.SC(a,c,b.JG());$.VC(a,b,c);d!=m8(a,c)&&(d?$.Pj(c,"anychart-option"):$.Rj(c,"anychart-option"),c=a.yn(c),d?(a=l8(a,1),c.insertBefore(b.f.sc("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))},o8=function(a,
   b,c,d){$.dD.call(this,a,d||k8.Gd(),c);this.$g=b},p8=function(a,b,c,d){o8.call(this,a,b,c,d);this.P=!1},q8=function(a){this.b=a},r8=function(a,b){a&&(a.tabIndex=b?0:-1)},mra=function(a,b,c){c.id&&f8(b,c.id);var d=a.fD(),e=!1,f=$.Nj(c);f&&(0,$.Ne)(f,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.xj(!1):a==d+"-horizontal"?kra(b,s8):a==d+"-vertical"&&kra(b,t8))},a);e||$.Pj(c,d);lra(a,b,c);return c},lra=function(a,b,c){if(c)for(var d=c.firstChild,e;d&&d.parentNode==c;){e=d.nextSibling;if(1==d.nodeType){var f=
   a.AG(d);f&&(f.Cd=d,b.isEnabled()||f.xj(!1),b.gc(f),f.ws(d))}else d.nodeValue&&""!=(0,$.vc)(d.nodeValue)||c.removeChild(d);d=e}},nra=function(a,b){var c=a.fD(),d=[c,b.rh==s8?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d},u8=function(a,b,c){$.ry.call(this,c);this.Uv=b||q8.Gd();this.rh=a||this.Uv.X0()},v8=function(a){return a.YU||a.Va()},ora=function(a,b){var c=$.ty(a),d=v8(a);b?c.ta(d,"focus",a.qM).ta(d,"blur",a.pM).ta(a.Tl||(a.Tl=new $.Ep(v8(a))),"key",a.ho):c.dc(d,"focus",
   a.qM).dc(d,"blur",a.pM).dc(a.Tl||(a.Tl=new $.Ep(v8(a))),"key",a.ho)},pra=function(a,b){var c=b.Va();c=c.id||(c.id=b.dy());a.jv||(a.jv={});a.jv[c]=b},kra=function(a,b){if(a.Va())throw Error("Component already rendered");a.rh=b},w8=function(a,b){b!=a.NC&&a.qf&&ora(a,b);a.NC=b;a.nA&&a.cj&&r8(v8(a),b)},x8=function(a){return a.wd(a.ql)},z8=function(a){y8(a,function(a,c){return(a+1)%c},$.vy(a)-1)},qra=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},0)},A8=function(a){y8(a,function(a,c){return(a+1)%
   c},a.ql)},B8=function(a){y8(a,function(a,c){a--;return 0>a?c-1:a},a.ql)},y8=function(a,b,c){c=0>c?a.Bf(a.Yl):c;var d=$.vy(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.wd(c);if(f&&a.y_(f)){a.Nn(c);break}e++;c=b.call(a,c,d)}},C8=function(){},rra=function(a,b,c){$.dD.call(this,a,c||C8.Gd(),b);this.bn(1,!1);this.bn(2,!1);this.bn(4,!1);this.bn(32,!1);this.bc=1},D8=function(){},E8=function(a,b){$.dD.call(this,null,a||D8.Gd(),b);this.bn(1,!1);this.bn(2,!1);this.bn(4,!1);this.bn(32,!1);this.bc=1},F8=function(a){this.b=
   a||"menu"},G8=function(a){E8.call(this,D8.Gd(),a)},H8=function(a,b){u8.call(this,t8,b||F8.Gd(),a);w8(this,!1)},I8=function(a,b){(a.bF=b)&&w8(a,!0)},J8=function(a,b){H8.call(this,a,b);this.P=null},L8=function(a,b,c,d,e,f,h,k,l){var m=sra(c),p=$.Kf(a),q=i8(a);if(q){var r=new $.I(q.left,q.top,q.right-q.left,q.bottom-q.top);q=Math.max(p.left,r.left);var t=Math.min(p.left+p.width,r.left+r.width);if(q<=t){var u=Math.max(p.top,r.top);r=Math.min(p.top+p.height,r.top+r.height);u<=r&&(p.left=q,p.top=u,p.width=
   t-q,p.height=r-u)}}q=$.te(a);u=$.te(c);if(q.b!=u.b){t=q.b.body;u=$.Be(u.b);r=new $.gb(0,0);var v=(v=$.oe(t))?$.Be(v):window;if($.Zc(v,"parent")){var w=t;do{var x=v==u?$.Ef(w):$.Ff(w);r.x+=x.x;r.y+=x.y}while(v&&v!=u&&v!=v.parent&&(w=v.frameElement)&&(v=v.parent))}t=h8(r,$.Ef(t));!$.hd||$.dd(9)||$.ye(q.b)||(t=h8(t,$.Ce(q.b)));p.left+=t.x;p.top+=t.y}a=tra(a,b);b=p.left;a&4?b+=p.width:a&2&&(b+=p.width/2);p=new $.gb(b,p.top+(a&1?p.height:0));p=h8(p,m);e&&(p.x+=(a&4?-1:1)*e.x,p.y+=(a&1?-1:1)*e.y);if(h)if(l)var y=
   l;else if(y=i8(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return K8(p,c,d,f,y,h,k)},sra=function(a){if(a=a.offsetParent){var b="HTML"==a.tagName||"BODY"==a.tagName;if(!b||"static"!=$.zf(a,"position")){var c=$.Ef(a);if(!b){b=$.Qf(a);var d;if(d=b){d=$.MD&&0<=$.xc($.tda,10);var e=$.lda&&0<=$.xc($.pda,10);d=$.fd||d||e}b=d?-a.scrollLeft:!b||$.gda&&$.bd("8")||"visible"==$.zf(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=h8(c,new $.gb(b,a.scrollTop))}}}return c||new $.gb},
   K8=function(a,b,c,d,e,f,h){a=a.clone();var k=tra(b,c);c=$.Jf(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&4?a.x-=h.width+(d?d.right:0):k&2?a.x-=h.width/2:d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){d=a;k=h;l=0;65==(f&65)&&(d.x<e.left||d.x>=e.right)&&(f&=-2);132==(f&132)&&(d.y<e.top||d.y>=e.bottom)&&(f&=-5);d.x<e.left&&f&1&&(d.x=e.left,l|=1);if(f&16){var m=d.x;d.x<e.left&&(d.x=e.left,l|=4);d.x+k.width>e.right&&(k.width=Math.min(e.right-d.x,
   m+k.width-e.left),k.width=Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&f&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);f&2&&(l|=(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0));d.y<e.top&&f&4&&(d.y=e.top,l|=2);f&32&&(m=d.y,d.y<e.top&&(d.y=e.top,l|=8),d.y+k.height>e.bottom&&(k.height=Math.min(e.bottom-d.y,m+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&f&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);f&8&&(l|=(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0));e=l}else e=
   256;l=e}f=new $.I(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=l;if(e&496)return e;$.Bf(b,new $.gb(f.left,f.top));h=new $.mb(f.width,f.height);$.nb(c,h)||(c=h,a=$.ye($.te($.oe(b)).b),!$.hd||$.bd("10")||a&&$.bd("8")?(b=b.style,$.fd?b.MozBoxSizing="border-box":$.vd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(h=b.style,a?(a=$.Uf(b,"padding"),b=$.Vf(b),h.pixelWidth=c.width-b.left-a.left-a.right-b.right,
   h.pixelHeight=c.height-b.top-a.top-a.bottom-b.bottom):(h.pixelWidth=c.width,h.pixelHeight=c.height)));return e},tra=function(a,b){return(b&8&&$.Qf(a)?b^4:b)&-9},M8=function(){},N8=function(a,b,c){this.element=a;this.i=b;this.K=c},O8=function(a,b,c,d){N8.call(this,a,b);this.j=c?5:0;this.D=d||void 0},P8=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},Q8=function(){this.f=[]},vra=function(a,b,c){var d=b.f.sc("SPAN");d.className="anychart-submenu-arrow";ura(b,d);a.yn(c).appendChild(d)},ura=function(a,
   b){$.uy(a)?($.Pj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â—„")):($.Rj(b,"anychart-submenu-arrow-rtl"),$.df(b,"â–º"))},R8=function(a,b,c,d){o8.call(this,a,b,c,d||Q8.Gd())},wra=function(a){a.getParent().Kj(function(a){a!=this&&"function"==typeof a.Jl&&(a.Jl(),a.Lp())},a)},xra=function(a,b){!b&&S8(a)&&S8(a).Nn(-1);a.dispatchEvent($.sy(64,b));var c=S8(a);if(b!=a.WT){var d=a.Va();b?$.Pj(d,"anychart-submenu-open"):$.Rj(d,"anychart-submenu-open")}if(b!=c.Le()&&(b&&(c.qf||c.Pd(),c.Nn(-1)),c.Ai(b),b)){c=new O8(a.Va(),
   12,!1);d=S8(a);var e=d.Va();d.Le()||(e.style.visibility="hidden",$.Pf(e,!0));c.b(e,8);d.Le()||($.Pf(e,!1),e.style.visibility="visible")}a.WT=b},T8=function(a,b,c){var d=$.ty(a);(c?d.ta:d.dc).call(d,b,"enter",a.Nea)},S8=function(a){a.Ql?a.tM&&a.Ql.getParent()!=a&&a.Ql.Yk(a):U8(a,new H8(a.f));a.Ql.Va()||a.Ql.sc();return a.Ql},U8=function(a,b){var c=a.Ql;b!=c&&(c&&(a.Jl(),a.qf&&T8(a,c,!1)),a.Ql=b,a.tM=!1,b&&(b.Yk(a),b.Ai(!1,!0),I8(b,!1),w8(b,!1),a.qf&&T8(a,b,!0)))},V8=function(){this.f=[]},yra=function(a,
   b,c){b=b.f.sc("span");b.className="anychart-submenu-arrow";b.innerHTML="&nbsp;";a.yn(c).appendChild(b)},W8=function(a,b,c){o8.call(this,a,void 0,void 0,V8.Gd());this.P=c||!1;this.b=b||null},zra=function(a){a.getParent().Kj(function(a){a!=this&&"function"==typeof a.Jl&&(a.Jl(),a.Lp())},a)},Ara=function(a,b){!b&&X8(a)&&X8(a).Nn(-1);a.dispatchEvent($.sy(64,b));var c=X8(a);if(b!=a.PQ){var d=a.Va();b?$.Pj(d,"anychart-submenu-open"):$.Rj(d,"anychart-submenu-open")}if(b!=c.Le()&&(b&&(c.qf||c.Pd(a.b),c.Nn(-1)),
   c.Ai(b),b)){c=new O8(a.Va(),12,!1);var e=X8(a),f=e.Va();e.Le()||(f.style.visibility="hidden",$.Pf(f,!0));c.b(f,8);e.Le()||($.Pf(f,!1),f.style.visibility="visible");c=$.ze(window);d=$.Kf(f);f=$.Gf(f);e=e.P;var h=$.Kf(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.PQ=b},Y8=function(a,b,c){var d=$.ty(a);(c?d.ta:d.dc).call(d,b,"enter",a.aca)},X8=function(a){if(a.Gl)a.kK&&a.Gl.getParent()!=a&&a.Gl.Yk(a);else{var b=a.P?Z8.Gd():void 0;b=new J8(a.f,b);var c=a.Gl;b!=c&&(c&&(a.Jl(),a.qf&&Y8(a,
   c,!1)),a.Gl=b,a.kK=!1,b&&(b.Yk(a),b.Ai(!1,!0),I8(b,!1),w8(b,!1),a.qf&&Y8(a,b,!0)))}a.Gl.Va()||a.Gl.sc();return a.Gl},$8=function(a,b){this.i=a instanceof $.gb?a:new $.gb(a,b)},a9=function(a,b){$8.call(this,a,b)},Bra=function(a,b,c,d){O8.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},b9=function(a,b){H8.call(this,a,b);I8(this,!0);this.Ai(!1,!0);this.i=new $.KB},Cra=function(a,b,c,d){var e=a.Le();a.Le()||(0,$.In)();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.Va().style.visibility=
   "hidden"),$.Pf(a.Va(),!0),b.b(a.Va(),c,d),e||(a.Va().style.visibility="visible"),a.Nn(-1),a.Ai(!0))},Dra=function(a,b){for(var c=a.i.Pt(),d=0;d<c.length;d++){var e=a.i.get(c[d]);if(e.Cd==b.b){c=a;d=$.n(e.v5)?new O8(e.Cd,e.v5,!0):new a9(b.clientX,b.clientY);d.f&&d.f(5);Cra(c,d,e.Aga,e.Pc);b.preventDefault();b.stopPropagation();break}}},c9=function(){b9.call(this);this.K=!1;this.b=this.uj=this.IK=null;this.ma=!1;this.ba=$.Ke("div",{id:"anychart-menu-wrapper"});this.aa=function(a){return a};this.da=
   function(){return{}};fra(this,{});this.Ha=(0,$.pa)(this.show,this);this.ta("action",function(a){var b=a.target.$g;a={type:b.eventType||"action",event:a,target:this.IK,item:b};this.uj&&(a.menuParent=this.uj,$.E(this.uj.getSelectedPoints)&&(a.selectedPoints=this.uj.getSelectedPoints()||[]));$.E(b.action)&&b.action.call(a,a);b.eventType&&this.dispatchEvent(a)})},Era=function(a,b,c){b={event:b,target:c,menu:a};if(a.uj){c=a.uj.container()?a.uj.container().getStage():null;if(null===c||"none"==$.yf(c.domElement(),
   "border-style"))return!1;b.menuParent=a.uj;b.chart=a.uj;$.E(a.uj.getSelectedPoints)&&(b.selectedPoints=a.uj.getSelectedPoints()||[]);b=a.uj.JN(b)}c=$.Nl(a.da.call(b,b));b=a.aa.call(c,c,b);a.$g=b;a.ma=!0;return!$.Jc(b)},Fra=function(a,b,c){var d=[],e;for(e in c){var f=c[e];c.hasOwnProperty(e)&&$.Ua(d,f,a.Ufa)}for(e=0;e<d.length;e++){c=d[e];if(null!=c)var h=$.z(c.classNames)?c.classNames.split(" "):c.classNames||[];f=$.js(c.text)||"";c.text?c.subMenu?(f=new W8(f,a.ba),h.length&&$.gD(f,h.join(" ")),
   $.da(c.enabled)&&f.xj(c.enabled),Fra(a,f,c.subMenu),d9(b,f),$.n(c.iconClass)&&Gra(f,c.iconClass)):(c.href&&(f=$.Ke("A",{href:c.href,target:c.target||"_blank"},f),h.unshift("anychart-menuitem-link")),f=new p8(f,c),h.length&&$.gD(f,h.join(" ")),$.da(c.enabled)&&f.xj(c.enabled),$.da(c.scrollable)&&f.b(c.scrollable),d9(b,f),$.n(c.iconClass)&&Gra(f,c.iconClass)):d9(b,new G8)}},d9=function(a,b){$.J(a,W8)?a.jK(b):a.gc(b,!0)},Gra=function(a,b){var c=a.Va();if(c){var d=$.ve(window.document,"I",null,c)[0];
   b?d?(d.className=b,$.Pf(d,!0)):(d=$.Ke("I",b),$.py(d,"hidden",!0),$.We(c,d,0)):d&&$.Pf(d,!1)}},Z8=function(a){F8.call(this,a)},e9=function(){},Hra=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(3==c.nodeType){var e=c.nodeValue;if(""==(0,$.vc)(e))a.removeChild(c);else{c.nodeValue=b?$.lc(e):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}},f9=function(){},g9=function(){},h9=function(){},j9=function(a,b,c,d,e){$.sD.call(this,a,c||
   f9.Gd(),d);this.bn(64,!0);this.aa=new Bra(null,9);b&&i9(this,b);this.P=new j8(500);!$.KD&&!$.LD||$.bd("533.17.9")||(this.MM=!0);this.Ha=e||F8.Gd()},i9=function(a,b){var c=a.b;b!=c&&(c&&(a.yl(!1),a.qf&&k9(a,c,!1),delete a.b),a.qf&&$.py(a.Cd,"haspopup",!!b),b&&(a.b=b,b.Yk(a),b.Ai(!1),I8(b,a.MM),a.qf&&k9(a,b,!0)))},Ira=function(a){if(a.b.qf){var b=a.Ia||a.Va(),c=a.aa;a.aa.element=b;b=a.b.Va();a.b.Le()||(b.style.visibility="hidden",$.Pf(b,!0));!a.ba&&a.aa.G&&a.aa.j&32&&(a.ba=$.Jf(b));c.b(b,c.i^1,null,
   a.ba);a.b.Le()||($.Pf(b,!1),b.style.visibility="visible")}},k9=function(a,b,c){var d=$.ty(a);c=c?d.ta:d.dc;c.call(d,b,"action",a.kfa);c.call(d,b,"close",a.Kea);c.call(d,b,"highlight",a.Lea);c.call(d,b,"unhighlight",a.Mea)},Jra=function(a,b){var c=$.ty(a);(b?c.ta:c.dc).call(c,a.Va(),"keydown",a.hfa)},Kra=function(a,b){var c=a.Va(),d=b.getAttribute("aria-activedescendant");d=$.oe(b).getElementById(null==d||void 0==d?"":String(d))||b;if(!d.id){var e=$.qy.Gd();d.id=":"+(e.b++).toString(36)}ira(c,d);$.py(c,
   "owns",d.id)},l9=function(a,b,c,d){j9.call(this,a,b,c||g9.Gd(),d)},m9=function(a,b,c,d){l9.call(this,a,b,c||h9.Gd(),d)},n9=function(){},o9=function(){},p9=function(a,b){E8.call(this,a||o9.Gd(),b)},q9=function(){this.b="toolbar"},r9=function(a,b,c){u8.call(this,b,a||q9.Gd(),c)},s9=function(){r9.call(this)},t9=function(){},u9=function(a,b,c){$.sD.call(this,a,b||t9.Gd(),c)},z9=function(){r9.call(this);this.da="us-letter a0 a1 a2 a3 a4 a5 a6".split(" ");this.K="all";this.b=[];this.i=[];Lra(this);this.gc(new p9,
   !0);this.P=new J8(void 0,Z8.Gd());var a=new p8("SVG");$.gD(a,"anychart-toolbar-saveAsSvg");a.$g={Nt:"saveAsSvg",icon:"ac-file-code-o",text:"SVG"};this.P.gc(a,!0);v9(a,!0,!0);this.i.push(a);a=new p8("PNG");$.gD(a,"anychart-toolbar-saveAsPng");a.$g={Nt:"saveAsPng",icon:"ac-file-image-o",text:"PNG"};this.P.gc(a,!0);v9(a,!0,!0);this.i.push(a);a=new p8("JPG");$.gD(a,"anychart-toolbar-saveAsJpg");a.$g={Nt:"saveAsJpg",icon:"ac-file-image-o",text:"JPG"};this.P.gc(a,!0);v9(a,!0,!0);this.i.push(a);a=new W8("PDF",
   void 0,!0);$.gD(a,"anychart-toolbar-saveAsPdf");for(var b=1;b<this.da.length;b++){var c=this.da[b],d=new p8(c.toUpperCase());d.$g={Nt:"saveAsPdf",c_:[c]};$.gD(d,"anychart-toolbar-saveAsPdf");a.jK(d)}this.P.gc(a,!0);a.$g={icon:"ac-file-pdf-o",text:"PDF"};v9(a,!0,!0);this.i.push(a);a=w9("saveAs");b=new m9(a,this.P);$.gD(b,"anychart-toolbar-saveAs");b.$g={id:"saveAs",text:a,icon:"ac-save"};this.gc(b,!0);this.b.push(b);this.gc(new p9,!0);a=w9("zoomIn");b=new u9(a);$.gD(b,"anychart-toolbar-zoomIn");b.$g=
   {id:"zoomIn",Nt:"zoomIn",text:a,icon:"ac-zoom-in"};this.gc(b,!0);this.b.push(b);a=w9("zoomOut");b=new u9(a);$.gD(b,"anychart-toolbar-zoomOut");b.$g={id:"zoomOut",Nt:"zoomOut",text:a,icon:"ac-zoom-out"};this.gc(b,!0);this.b.push(b);a=w9("fitAll");b=new u9(a);$.gD(b,"anychart-toolbar-fitAll");b.$g={id:"fitAll",Nt:"fitAll",text:a,icon:"ac-dot-square-o"};this.gc(b,!0);this.b.push(b);this.gc(new p9,!0);a=w9("expandAll");b=new u9(a);$.gD(b,"anychart-toolbar-expandAll");b.$g={id:"expandAll",Nt:"expandAll",
   text:a,icon:"ac-expand"};this.gc(b,!0);this.b.push(b);a=w9("collapseAll");b=new u9(a);$.gD(b,"anychart-toolbar-collapseAll");b.$g={id:"collapseAll",Nt:"collapseAll",text:a,icon:"ac-collapse"};this.gc(b,!0);this.b.push(b);this.RN={ve:x9,ue:y9};this.aa=null;this.ta("action",this.Pea)},Mra=function(a,b,c,d,e){b=new W8(b,void 0,!0);var f=(0,$.Wa)(c,function(a){var b=a.value;a=new p8(a.caption);a.$g=b;a.bn(8,!0);a.MI(b==e);return a});(0,$.Ne)(f,b.jK,b);b.ta("action",function(a){var b=a.target,c=b.pj();
   (0,$.Ne)(f,function(a){a.MI(a==b)});d.call(this,c);a.stopPropagation()},void 0,a);return b},Lra=function(a){a.Ts=new J8(void 0,Z8.Gd());var b=Mra(a,w9("changeLayout"),[{caption:w9("landscape"),value:y9},{caption:w9("portrait"),value:"portrait"}],function(a){this.RN.ue=a;this.Ts.Ai(!0,!0)},y9),c=Mra(a,w9("changeRange"),[{caption:w9("allDates"),value:"full"},{caption:w9("visibleDates"),value:x9}],function(a){this.RN.ve=a;this.Ts.Ai(!0,!0)},x9);a.Ts.gc(b,!0);a.Ts.gc(c,!0);a.Ts.gc(new G8,!0);b=w9("print");
   a.ba=new m9(b,a.Ts);$.gD(a.ba,"anychart-toolbar-print");fra(a.ba,{id:"print",text:b,icon:"ac-print"});a.gc(a.ba,!0);a.b.push(a.ba)},A9=function(a){for(var b,c=0;c<a.b.length;c++)switch(b=a.b[c],a.K){case "all":v9(b,!0,!0);break;case "icon":v9(b,!0,!1);break;case "text":v9(b,!1,!0)}for(c=0;c<a.i.length;c++)switch(b=a.i[c],a.K){case "text":v9(b,!1,!0);break;case "all":case "icon":v9(b,!0,!0)}},v9=function(a,b,c){var d=a.Va(),e=a.$g,f=e.icon,h=e.text,k=$.J(a,m9)||$.J(a,u9);if(d){e=$.ve(window.document,
   "I","anychart-toolbar-item-icon",d)[0];var l=$.ve(window.document,"SPAN","anychart-toolbar-item-text",d)[0];e&&l||(e||(e=$.Ke("I",["anychart-toolbar-item-icon",f]),$.py(e,"hidden",!0)),l||(l=$.Ke("SPAN","anychart-toolbar-item-text"),$.df(l,h||"")),k?(d=$.Ke("DIV"),$.We(d,e,0),$.We(d,l,1),g8(a,d)):(g8(a,l),$.We(d,e,0)));$.da(c)&&$.Pf(l,c);$.da(b)&&$.Pf(e,b)}},w9=function(a){return $.js(Nra[a])},B9=function(){$.ry.call(this)},Ora=function(a,b){var c=a.f,d=b||a.Va();$.Pj(d,"anychart-loader");c=c.sc("DIV",
   "anychart-loader-rotating-cover",c.sc("DIV","anychart-loader-rotating-plane",c.sc("DIV","anychart-loader-chart-row",c.sc("DIV",["anychart-loader-chart-col","anychart-loader-green"]),c.sc("DIV",["anychart-loader-chart-col","anychart-loader-orange"]),c.sc("DIV",["anychart-loader-chart-col","anychart-loader-red"]))));a.cj=!1;$.Pf(a.Va(),a.cj);d.appendChild(c)},Pra=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}},C9=function(){$.ry.call(this);this.b=null;this.ZS="yyyy MMM dd";
   this.ba=null;this.ma="From:";this.P=null;this.Ha="To:";this.Wa=!1;this.Ia=this.Aa=window.NaN},Qra=function(a){a.i&&$.Cy(a.i,$.$p.format.dateTime(a.Aa,a.format()));a.K&&$.Cy(a.K,$.$p.format.dateTime(a.Ia,a.format()))},Rra=function(a){var b=a.f,c=a.Va();$.Pj(c,"anychart-range-picker");a.Wa&&$.Pj(c,"anychart-range-picker-inside");a.ba=b.sc("LABEL",["anychart-inline-block","anychart-input-label"],$.$p.format.getMessage(a.ma));c.appendChild(a.ba);a.i=new $.xy;a.gc(a.i,!0);$.Qj(a.i.Va(),["anychart-label-input"]);
   a.P=b.sc("LABEL",["anychart-inline-block","anychart-input-label"],$.$p.format.getMessage(a.Ha));c.appendChild(a.P);a.K=new $.xy;a.gc(a.K,!0);$.Qj(a.K.Va(),["anychart-label-input"]);a.b&&a.OQ(a.b.getSelectedRange())},Sra=function(a){return a&&$.E(a.getType)&&"stock"==a.getType()},Ura=function(a,b,c){$.vD.call(this,a,b,c);$.gD(this,"anychart-inline-block");$.gD(this,"anychart-button-standard");$.gD(this,Tra);this.bn(16,!0);this.bv&=-17},D9=function(a){$.qf.call(this);this.Sb=[];Vra(this,a)},Vra=function(a,
   b){b&&((0,$.Ne)(b,function(a){E9(this,a,!1)},a),$.Ia(a.Sb,b))},F9=function(a,b){b!=a.$G&&(E9(a,a.$G,!1),a.$G=b,E9(a,b,!0));a.dispatchEvent("select")},E9=function(a,b,c){b&&("function"==typeof a.VT?a.VT(b,c):"function"==typeof b.MI&&b.MI(c))},G9=function(){$.ry.call(this);this.b=null;this.aa=!1;this.K=null;this.P="Zoom:";this.gd=[];this.Oy([{type:"unit",unit:"Day",count:10,text:"10D"},{type:"unit",unit:"Month",count:1,text:"1M"},{type:"unit",unit:"Month",count:3,text:"3M"},{type:"ytd",text:"YTD"},
   {type:"unit",unit:"Year",count:1,text:"1Y"},{type:"unit",unit:"Year",count:2,text:"2Y"},{type:"unit",unit:"Year",count:5,text:"5Y"},{type:"max",text:"MAX"}]);this.i=new D9;this.i.VT=this.Yba},Wra=function(a){var b=a.Va();$.Pj(b,"anychart-range-selector");a.aa&&$.Pj(b,"anychart-range-selector-inside");a.K=$.Ke("LABEL",["anychart-inline-block","anychart-input-label"],$.$p.format.getMessage(a.P));b.appendChild(a.K)},Xra=function(a){return a&&$.E(a.getType)&&"stock"==a.getType()},H9=function(){$.ry.call(this);
   this.b=null},Yra=function(a){var b=a.Va();$.Pj(b,"anychart-zoom");a.i=new $.vD;a.i.$g={type:"fitAll"};$.tD(a.i,"Fit All");$.gD(a.i,"anychart-zoom-zoomFitAll");$.xD(a.i,"ac ac-dot-square-o disable-selection");a.gc(a.i,!0);a.K=new $.vD;a.K.$g={type:"zoomIn"};$.tD(a.K,"Zoom In");$.gD(a.K,"anychart-zoom-zoomIn");$.xD(a.K,"ac ac-plus disable-selection");a.gc(a.K,!0);a.P=new $.vD;a.P.$g={type:"zoomOut"};$.tD(a.P,"Zoom Out");$.gD(a.P,"anychart-zoom-zoomOut");$.xD(a.P,"ac ac-minus disable-selection");a.gc(a.P,
   !0)},Zra=function(a){return a&&$.E(a.getType)&&"map"==a.getType()};$.PC.prototype.Vv=$.ca(34,function(a,b){var c=this.yn(a);if(c&&($.Ve(c),b))if($.z(b))$.df(c,b);else{var d=function(a){if(a){var b=$.oe(c);c.appendChild($.z(a)?b.createTextNode(a):a)}};$.A(b)?(0,$.Ne)(b,d):!$.la(b)||"nodeType"in b?d(b):(0,$.Ne)($.Ha(b),d)}});
   $.PC.prototype.OG=$.ca(33,function(a){if(!this.i){this.b||$.YC(this);var b=this.b,c={},d;for(d in b)c[b[d]]=d;this.i=c}a=(0,window.parseInt)(this.i[a],10);return(0,window.isNaN)(a)?0:a});
   $.PC.prototype.Ok=$.ca(32,function(a,b){b.id&&f8(a,b.id);var c=this.yn(b);c&&c.firstChild?era(a,c.firstChild.nextSibling?$.Ha(c.childNodes):c.firstChild):a.Ld=null;var d=0,e=this.yh(),f=this.yh(),h=!1,k=!1,l=!1,m=$.Ha($.Nj(b));(0,$.Ne)(m,function(a){h||a!=e?k||a!=f?d|=this.OG(a):k=!0:(h=!0,f==e&&(k=!0));1==this.OG(a)&&$.hf(c)&&$.jf(c)&&$.gf(c,!1)},this);a.bc=d;h||(m.push(e),f==e&&(k=!0));k||m.push(f);var p=a.xs;p&&m.push.apply(m,p);if($.hd&&!$.bd("7")){var q=$.QC(m);0<q.length&&(m.push.apply(m,q),
   l=!0)}if(!h||!k||p||l)b.className=m.join(" ");return b});$.ZC.prototype.Ok=$.ca(31,function(a,b){b=$.ZC.u.Ok.call(this,a,b);a.$W(this.pj(b));a.fb=b.title;$.TC(a,16)&&this.Iu(b,16,$.UC(a,16));return b});$.rD.prototype.Ok=$.ca(30,function(a,b){$.fD(a,!1);a.bv&=-256;a.bn(32,!1);if(b.disabled){var c=this.xG(1);$.Pj(b,c)}return $.rD.u.Ok.call(this,a,b)});$.PC.prototype.WG=$.ca(29,function(){return!0});
   $.rD.prototype.WG=$.ca(28,function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)});$.ry.prototype.ll=$.ca(20,function(a){this.Cd=a});$.xy.prototype.ll=$.ca(19,function(a){$.xy.u.ll.call(this,a);this.i||(this.i=a.getAttribute("label")||"");a:{var b=$.oe(a);try{var c=b&&b.activeElement;break a}catch(d){}c=null}c==a&&(this.dH=!0,a=this.Va(),$.Rj(a,"label-input-label"));$.zy()&&(this.Va().placeholder=this.i);a=this.Va();$.py(a,"label",this.i)});
   $.dD.prototype.ll=$.ca(18,function(a){this.Cd=a=this.i.Ok(this,a);$.SC(this.i,a,this.JG());this.i.RT(a,!1);this.cj="none"!=a.style.display});$.ry.prototype.VG=$.ca(17,function(){return!0});$.dD.prototype.VG=$.ca(16,function(a){return this.i.WG(a)});$.ry.prototype.ws=$.ca(15,function(a){if(this.qf)throw Error("Component already rendered");if(a&&this.VG(a)){this.eb=!0;var b=$.oe(a);this.f&&this.f.b==b||(this.f=$.te(a));this.ll(a);this.Cg()}else throw Error("Invalid element to decorate");});
   $.mx.prototype.JN=$.ca(14,function(a){return a});$.H(j8,$.qf);$.g=j8.prototype;$.g.enabled=!1;$.g.Ut=null;$.g.Nja=function(){if(this.enabled){var a=(0,$.In)()-this.j;0<a&&a<.8*this.f?this.Ut=this.b.setTimeout(this.i,this.f-a):(this.Ut&&(this.b.clearTimeout(this.Ut),this.Ut=null),this.dispatchEvent("tick"),this.enabled&&(this.Ut=this.b.setTimeout(this.i,this.f),this.j=(0,$.In)()))}};$.g.start=function(){this.enabled=!0;this.Ut||(this.Ut=this.b.setTimeout(this.i,this.f),this.j=(0,$.In)())};
   $.g.stop=function(){this.enabled=!1;this.Ut&&(this.b.clearTimeout(this.Ut),this.Ut=null)};$.g.R=function(){j8.u.R.call(this);this.stop();delete this.b};$.H(k8,$.PC);$.ja(k8);$.g=k8.prototype;$.g.XG=function(){return"menuitem"};$.g.sc=function(a){var b=a.f.sc("DIV",$.WC(this,a).join(" "),jra(this,a.Ld,a.f));n8(this,a,b,$.TC(a,8)||$.TC(a,16));return b};$.g.yn=function(a){return a&&a.firstChild};
   $.g.Ok=function(a,b){var c=$.$e(b),d=l8(this,2);c&&$.Oj(c,d)||b.appendChild(jra(this,b.childNodes,a.f));$.Oj(b,"anychart-option")&&(a.bn(16,!0),a&&b&&n8(this,a,b,!0));return k8.u.Ok.call(this,a,b)};$.g.Vv=function(a,b){var c=this.yn(a),d=m8(this,a)?c.firstChild:null;k8.u.Vv.call(this,a,b);d&&!m8(this,a)&&c.insertBefore(d,c.firstChild||null)};$.g.xG=function(a){switch(a){case 2:return l8(this,0);case 16:case 8:return"anychart-option-selected";default:return k8.u.xG.call(this,a)}};
   $.g.OG=function(a){var b=l8(this,0);switch(a){case "anychart-option-selected":return 16;case b:return 2;default:return k8.u.OG.call(this,a)}};$.g.yh=function(){return"anychart-menuitem"};$.H(o8,$.dD);$.g=o8.prototype;$.g.pj=function(){var a=this.$g;return null!=a?a:this.UL()};$.g.bn=function(a,b){o8.u.bn.call(this,a,b);switch(a){case 8:$.UC(this,16)&&!b&&$.mD(this,!1);var c=this.Va();c&&this&&c&&n8(this.i,this,c,b);break;case 16:(c=this.Va())&&this&&c&&n8(this.i,this,c,b)}};$.g.UL=function(){var a=this.Ld;return $.A(a)?(a=(0,$.Wa)(a,function(a){return $.af(a)&&($.Oj(a,"anychart-menuitem-accel")||$.Oj(a,"anychart-menuitem-mnemonic-separator"))?"":$.lf(a)}).join(""),$.kc(a)):o8.u.UL.call(this)};
   $.g.lr=function(a){var b=this.getParent();if(b){var c=b.Aa;b.Aa=null;if(c&&$.ea(a.clientX)&&$.ib(c,new $.gb(a.clientX,a.clientY)))return}o8.u.lr.call(this,a)};$.g.oA=function(a){return a.keyCode==this.mN&&this.Qs(a)?!0:o8.u.oA.call(this,a)};$.g.uea=function(){return this.mN};$.bD("anychart-menuitem",function(){return new o8(null)});o8.prototype.JG=function(){return $.TC(this,16)?"menuitemcheckbox":$.TC(this,8)?"menuitemradio":o8.u.JG.call(this)};o8.prototype.getParent=function(){return $.dD.prototype.getParent.call(this)};
   o8.prototype.Si=function(){return $.dD.prototype.Si.call(this)};$.H(p8,o8);p8.prototype.b=function(a){return $.n(a)?(this.P=a,this):this.P};p8.prototype.aE=function(a,b){this.b()&&$.n(this.getParent().Ia)?p8.u.aE.call(this,this.getParent().P,b):p8.u.aE.call(this,a,b)};$.ja(q8);$.g=q8.prototype;$.g.sc=function(a){return a.f.sc("DIV",nra(this,a).join(" "))};$.g.OT=function(a){return"DIV"==a.tagName};$.g.AG=function(a){a:{a=$.Nj(a);for(var b=0,c=a.length;b<c;b++){var d=a[b];if(d=d in $.aD?$.aD[d]():null){a=d;break a}}a=null}return a};$.g.PT=function(a){a=a.Va();$.Sf(a,!0,$.fd);$.hd&&(a.hideFocus=!0);var b=this.b;b&&$.ny(a,b)};$.g.fD=function(){return"anychart-container"};$.g.X0=function(){return t8};$.H(u8,$.ry);var s8="horizontal",t8="vertical";$.g=u8.prototype;$.g.YU=null;$.g.Tl=null;$.g.Uv=null;$.g.rh=null;$.g.cj=!0;$.g.nA=!0;$.g.NC=!0;$.g.ql=-1;$.g.Yl=null;$.g.lu=!1;$.g.jv=null;$.g.sc=function(){this.Cd=this.Uv.sc(this)};$.g.eD=function(){return this.Va()};$.g.VG=function(a){return this.Uv.OT(a)};$.g.ll=function(a){this.Cd=mra(this.Uv,this,a);"none"==a.style.display&&(this.cj=!1)};
   $.g.Cg=function(){u8.u.Cg.call(this);this.Kj(function(a){a.qf&&pra(this,a)},this);var a=this.Va();this.Uv.PT(this);this.Ai(this.cj,!0);$.ty(this).ta(this,"enter",this.cH).ta(this,"highlight",this.Hea).ta(this,"unhighlight",this.Iea).ta(this,"open",this.nfa).ta(this,"close",this.Gea).ta(a,"mousedown",this.Nj).ta($.oe(a),"mouseup",this.$ea).ta(a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.Xea);this.NC&&ora(this,!0)};
   $.g.vh=function(){this.Nn(-1);this.Yl&&this.Yl.yl(!1);this.lu=!1;u8.u.vh.call(this)};$.g.R=function(){u8.u.R.call(this);this.Tl&&(this.Tl.kd(),this.Tl=null);this.Uv=this.Yl=this.jv=this.YU=null};$.g.cH=function(){return!0};$.g.Hea=function(a){var b=this.Bf(a.target);if(-1<b&&b!=this.ql){var c=x8(this);c&&c.iq(!1);this.ql=b;c=x8(this);this.lu&&$.lD(c,!0);this.Yl&&c!=this.Yl&&($.TC(c,64)?c.yl(!0):this.Yl.yl(!1))}b=this.Va();null!=a.target.Va()&&$.py(b,"activedescendant",a.target.Va().id)};
   $.g.Iea=function(a){a.target==x8(this)&&(this.ql=-1);this.Va().removeAttribute("aria-activedescendant")};$.g.nfa=function(a){(a=a.target)&&a!=this.Yl&&a.getParent()==this&&(this.Yl&&this.Yl.yl(!1),this.Yl=a)};$.g.Gea=function(a){a.target==this.Yl&&(this.Yl=null);var b=this.Va(),c=a.target.Va();b&&$.UC(a.target,2)&&c&&ira(b,c)};$.g.Nj=function(a){this.nA&&(this.lu=!0);var b=v8(this);b&&$.hf(b)&&$.jf(b)?b.focus():a.preventDefault()};$.g.$ea=function(){this.lu=!1};
   $.g.Xea=function(a){a:{var b=a.target;if(this.jv)for(var c=this.Va();b&&b!==c;){var d=b.id;if(d in this.jv){b=this.jv[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.Nj(a);break;case "mouseup":b.lr(a);break;case "mouseover":b.io(a);break;case "mouseout":b.cg(a);break;case "contextmenu":b.ZG(a)}};$.g.qM=function(){};$.g.pM=function(){this.Nn(-1);this.lu=!1;this.Yl&&this.Yl.yl(!1)};
   $.g.ho=function(a){return this.isEnabled()&&this.Le()&&(0!=$.vy(this)||this.YU)&&this.QT(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
   $.g.QT=function(a){var b=x8(this);if(b&&"function"==typeof b.ho&&b.ho(a)||this.Yl&&this.Yl!=b&&"function"==typeof this.Yl.ho&&this.Yl.ho(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.NC)v8(this).blur();else return!1;break;case 36:z8(this);break;case 35:qra(this);break;case 38:if(this.rh==t8)B8(this);else return!1;break;case 37:if(this.rh==s8)$.uy(this)?A8(this):B8(this);else return!1;break;case 40:if(this.rh==t8)A8(this);else return!1;break;case 39:if(this.rh==
   s8)$.uy(this)?B8(this):A8(this);else return!1;break;default:return!1}return!0};$.g.gc=function(a,b){u8.u.gc.call(this,a,b)};$.g.Ag=function(a,b,c){a.ZI|=2;a.ZI|=64;a.bn(32,!1);$.fD(a,!1);var d=a.getParent()==this?this.Bf(a):-1;u8.u.Ag.call(this,a,b,c);a.qf&&this.qf&&pra(this,a);a=d;-1==a&&(a=$.vy(this));a==this.ql?this.ql=Math.min($.vy(this)-1,b):a>this.ql&&b<=this.ql?this.ql++:a<this.ql&&b>this.ql&&this.ql--};
   $.g.removeChild=function(a,b){if(a=$.z(a)?$.wy(this,a):a){var c=this.Bf(a);-1!=c&&(c==this.ql?(a.iq(!1),this.ql=-1):c<this.ql&&this.ql--);(c=a.Va())&&c.id&&this.jv&&$.Lc(this.jv,c.id)}a=u8.u.removeChild.call(this,a,b);$.fD(a,!0);return a};$.g.Le=function(){return this.cj};$.g.Ai=function(a,b){if(b||this.cj!=a&&this.dispatchEvent(a?"show":"hide")){this.cj=a;var c=this.Va();c&&($.Pf(c,a),this.NC&&r8(v8(this),this.nA&&this.cj),b||this.dispatchEvent(this.cj?"aftershow":"afterhide"));return!0}return!1};
   $.g.isEnabled=function(){return this.nA};$.g.xj=function(a){this.nA!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.nA=!0,this.Kj(function(a){a.c6?delete a.c6:a.xj(!0)})):(this.Kj(function(a){a.isEnabled()?a.xj(!1):a.c6=!0}),this.lu=this.nA=!1),this.NC&&r8(v8(this),a&&this.cj))};$.g.Nn=function(a){(a=this.wd(a))?a.iq(!0):-1<this.ql&&x8(this).iq(!1)};$.g.y_=function(a){return a.Le()&&a.isEnabled()&&$.TC(a,2)};$.H(C8,$.PC);$.ja(C8);C8.prototype.yh=function(){return"anychart-menuheader"};$.H(rra,$.dD);$.bD("anychart-menuheader",function(){return new rra(null)});$.H(D8,$.PC);$.ja(D8);D8.prototype.sc=function(a){return a.f.sc("DIV",this.yh())};D8.prototype.Ok=function(a,b){b.id&&f8(a,b.id);if("HR"==b.tagName){var c=b;b=this.sc(a);c.parentNode&&c.parentNode.insertBefore(b,c);$.Xe(c)}else $.Pj(b,this.yh());return b};D8.prototype.Vv=function(){};D8.prototype.yh=function(){return"anychart-menuseparator"};$.H(E8,$.dD);E8.prototype.Cg=function(){E8.u.Cg.call(this);var a=this.Va();$.ny(a,"separator")};$.bD("anychart-menuseparator",function(){return new E8});$.H(F8,q8);$.ja(F8);$.g=F8.prototype;$.g.OT=function(a){return"UL"==a.tagName||F8.u.OT.call(this,a)};$.g.AG=function(a){return"HR"==a.tagName?new E8:F8.u.AG.call(this,a)};$.g.Vq=function(a,b){return $.cf(a.Va(),b)};$.g.fD=function(){return"anychart-menu"};$.g.PT=function(a){F8.u.PT.call(this,a);a=a.Va();$.py(a,"haspopup","true")};$.H(G8,E8);$.bD("anychart-menuseparator",function(){return new E8});$.H(H8,u8);$.g=H8.prototype;$.g.bF=!0;$.g.Vq=function(a){if(this.Uv.Vq(this,a))return!0;for(var b=0,c=$.vy(this);b<c;b++){var d=this.wd(b);if("function"==typeof d.Vq&&d.Vq(a))return!0}return!1};$.g.jK=function(a){this.gc(a,!0)};$.g.ey=function(a){return this.wd(a)};$.g.sm=function(){var a=[];this.Kj(function(b){a.push(b)});return a};
   $.g.setPosition=function(a,b){var c=this.Le();c||$.Pf(this.Va(),!0);var d=this.Va(),e=a,f=b,h=$.Ef(d);e instanceof $.gb&&(f=e.y,e=e.x);$.Bf(d,d.offsetLeft+(e-h.x),d.offsetTop+(Number(f)-h.y));c||$.Pf(this.Va(),!1)};$.g.Ai=function(a,b,c){(b=H8.u.Ai.call(this,a,b))&&a&&this.qf&&this.bF&&v8(this).focus();a&&c&&$.ea(c.clientX)?this.Aa=new $.gb(c.clientX,c.clientY):this.Aa=null;return b};$.g.cH=function(a){this.bF&&v8(this).focus();return H8.u.cH.call(this,a)};
   $.g.y_=function(a){return a.isEnabled()&&a.Le()&&$.TC(a,2)};$.g.ll=function(a){for(var b=this.Uv,c=$.ve(this.f.b,"DIV",b.fD()+"-content",a),d=c.length,e=0;e<d;e++)lra(b,this,c[e]);H8.u.ll.call(this,a)};$.g.QT=function(a){var b=H8.u.QT.call(this,a);b||this.Kj(function(c){!b&&c.uea&&c.mN==a.keyCode&&(this.isEnabled()&&this.Nn(this.Bf(c)),b=c.ho(a))},this);return b};$.g.Nn=function(a){H8.u.Nn.call(this,a);(a=this.wd(a))&&hra(a.Va(),this.Va())};$.H(J8,H8);J8.prototype.cH=function(){if(this.bF){var a=v8(this);0!=a.offsetWidth&&a.focus()}return!0};J8.prototype.Ia=function(){return this.P};J8.prototype.sc=function(){J8.u.sc.call(this);this.P=this.f.sc("DIV","anychart-menu-scrollable");$.We(this.Va(),this.P,0)};J8.prototype.Nn=function(a){J8.u.Nn.call(this,a);(a=this.wd(a))&&hra(a.Va(),this.P)};M8.prototype.b=function(){};$.H(N8,M8);N8.prototype.b=function(a,b,c){L8(this.element,this.i,a,b,void 0,c,this.K)};$.H(O8,N8);O8.prototype.G=function(){return this.j};O8.prototype.f=function(a){this.j=a};O8.prototype.b=function(a,b,c,d){var e=L8(this.element,this.i,a,b,null,c,10,d,this.D);if(e&496){var f=P8(e,this.i);b=P8(e,b);e=L8(this.element,f,a,b,null,c,10,d,this.D);e&496&&(f=P8(e,f),b=P8(e,b),L8(this.element,f,a,b,null,c,this.j,d,this.D))}};$.H(Q8,k8);$.ja(Q8);Q8.prototype.sc=function(a){var b=Q8.u.sc.call(this,a);$.Pj(b,"anychart-submenu");vra(this,a,b);return b};Q8.prototype.Ok=function(a,b){b=Q8.u.Ok.call(this,a,b);$.Pj(b,"anychart-submenu");vra(this,a,b);var c=$.ve(window.document,"DIV","anychart-menu",b);if(c.length){var d=new H8(a.f);c=c[0];$.Pf(c,!1);a.f.b.body.appendChild(c);d.ws(c);U8(a,d)}return b};
   Q8.prototype.Vv=function(a,b){var c=this.yn(a),d=c&&c.lastChild;Q8.u.Vv.call(this,a,b);d&&c.lastChild!=d&&$.Oj(d,"anychart-submenu-arrow")&&c.appendChild(d)};Q8.prototype.gD=function(a){Q8.u.gD.call(this,a);var b=a.eD(),c=$.ve(a.f.b,"SPAN","anychart-submenu-arrow",b)[0];ura(a,c);c!=b.lastChild&&b.appendChild(c);a=a.Va();$.py(a,"haspopup","true")};$.H(R8,o8);$.g=R8.prototype;$.g.aH=null;$.g.YT=null;$.g.WT=!1;$.g.Ql=null;$.g.tM=!1;$.g.Cg=function(){R8.u.Cg.call(this);$.ty(this).ta(this.getParent(),"hide",this.G1);this.Ql&&T8(this,this.Ql,!0)};$.g.vh=function(){$.ty(this).dc(this.getParent(),"hide",this.G1);this.Ql&&(T8(this,this.Ql,!1),this.tM||(this.Ql.vh(),$.Xe(this.Ql.Va())));R8.u.vh.call(this)};$.g.R=function(){this.Ql&&!this.tM&&this.Ql.kd();this.Ql=null;R8.u.R.call(this)};
   $.g.iq=function(a){R8.u.iq.call(this,a);a||(this.aH&&$.Bj(this.aH),this.aH=$.Aj(this.Jl,218,this))};$.g.XT=function(){var a=this.getParent();a&&x8(a)==this&&(xra(this,!0),wra(this))};$.g.Jl=function(){var a=this.Ql;a&&a.getParent()==this&&(xra(this,!1),a.Kj(function(a){"function"==typeof a.Jl&&a.Jl()}))};$.g.Lp=function(){this.aH&&$.Bj(this.aH);this.YT&&$.Bj(this.YT)};$.g.Ai=function(a,b){var c=R8.u.Ai.call(this,a,b);c&&!this.Le()&&this.Jl();return c};
   $.g.ho=function(a){var b=a.keyCode,c=$.uy(this)?37:39,d=$.uy(this)?39:37;if(!this.WT){if(!this.isEnabled()||b!=c&&b!=this.mN)return!1;this.XT();z8(S8(this));this.Lp()}else if(!S8(this).ho(a))if(b==d)this.Jl();else return!1;a.preventDefault();return!0};$.g.Nea=function(){if(this.Ql.getParent()==this){this.Lp();var a=this.Si();a.Nn(a.Bf(this));wra(this)}};$.g.G1=function(a){a.target==this.Si()&&(this.Jl(),this.Lp())};
   $.g.io=function(a){this.isEnabled()&&(this.Lp(),this.YT=$.Aj(this.XT,218,this));R8.u.io.call(this,a)};$.g.Qs=function(a){this.Lp();if($.TC(this,8)||$.TC(this,16))return R8.u.Qs.call(this,a);this.XT();return!0};$.g.ey=function(a){return S8(this).wd(a)};$.g.sm=function(){return S8(this).sm()};$.g.Vq=function(a){return S8(this).Vq(a)};$.bD("anychart-submenu",function(){return new R8(null)});$.H(V8,k8);$.ja(V8);$.g=V8.prototype;$.g.sc=function(a){var b=V8.u.sc.call(this,a);$.Pj(b,"anychart-submenu");yra(this,a,b);return b};$.g.Ok=function(a,b){b=V8.u.Ok.call(this,a,b);$.Pj(b,"anychart-submenu");yra(this,a,b);var c=$.ve(window.document,"div","anychart-menu",b);if(c.length){var d=new J8(a.f);c=c[0];$.Pf(c,!1);a.f.b.body.appendChild(c);d.ws(c);U8(a,d)}return b};
   $.g.Vv=function(a,b){var c=this.yn(a),d=c&&c.lastChild;V8.u.Vv.call(this,a,b);d&&c.lastChild!=d&&$.Oj(d,"anychart-submenu-arrow")&&c.appendChild(d)};$.g.gD=function(a){V8.u.gD.call(this,a);var b=a.eD(),c=$.ve(a.f.b,"span","anychart-submenu-arrow",b)[0];c.innerHTML="&nbsp;";c!=b.lastChild&&b.appendChild(c);a=a.Va();$.py(a,"haspopup","true")};$.g.yn=function(a){a=a&&a.firstChild;return"I"==a.tagName?a.nextSibling:a};$.H(W8,o8);$.g=W8.prototype;$.g.tF=null;$.g.RQ=null;$.g.PQ=!1;$.g.Gl=null;$.g.kK=!1;$.g.Cg=function(){W8.u.Cg.call(this);$.ty(this).ta(this.getParent(),"hide",this.VZ);this.Gl&&Y8(this,this.Gl,!0)};$.g.vh=function(){$.ty(this).dc(this.getParent(),"hide",this.VZ);this.Gl&&(Y8(this,this.Gl,!1),this.kK||(this.Gl.vh(),$.Xe(this.Gl.Va())));W8.u.vh.call(this)};$.g.R=function(){this.b=null;this.Gl&&!this.kK&&this.Gl.kd();this.Gl=null;W8.u.R.call(this)};
   $.g.iq=function(a){W8.u.iq.call(this,a);a||(this.tF&&$.Bj(this.tF),this.tF=$.Aj(this.Jl,218,this))};$.g.QQ=function(){var a=this.getParent();a&&x8(a)==this&&(Ara(this,!0),zra(this))};$.g.Jl=function(){var a=this.Gl;a&&a.getParent()==this&&(Ara(this,!1),a.Kj(function(a){"function"==typeof a.Jl&&a.Jl()}))};$.g.Lp=function(){this.tF&&$.Bj(this.tF);this.RQ&&$.Bj(this.RQ)};$.g.Ai=function(a,b){var c=W8.u.Ai.call(this,a,b);c&&!this.Le()&&this.Jl();return c};
   $.g.ho=function(a){var b=a.keyCode,c=$.uy(this)?37:39,d=$.uy(this)?39:37;if(!this.PQ){if(!this.isEnabled()||b!=c&&b!=this.mN)return!1;this.QQ();z8(X8(this));this.Lp()}else if(!X8(this).ho(a))if(b==d)this.Jl();else return!1;a.preventDefault();return!0};$.g.aca=function(){if(this.Gl.getParent()==this){this.Lp();var a=this.Si();a.Nn(a.Bf(this));zra(this)}};$.g.VZ=function(a){a.target==this.Si()&&(this.Jl(),this.Lp())};
   $.g.io=function(a){this.isEnabled()&&(this.Lp(),this.RQ=$.Aj(this.QQ,218,this));W8.u.io.call(this,a)};$.g.Qs=function(a){this.Lp();if($.TC(this,8)||$.TC(this,16))return W8.u.Qs.call(this,a);this.QQ();return!0};$.g.jK=function(a){X8(this).gc(a,!0)};$.g.ey=function(a){return X8(this).wd(a)};$.g.Vq=function(a){return X8(this).Vq(a)};$.H($8,M8);$8.prototype.b=function(a,b,c,d){var e=$.oe(a);var f=e.body;e=e.documentElement;e=new $.gb(f.scrollLeft||e.scrollLeft,f.scrollTop||e.scrollTop);f=this.i.x+e.x;e=this.i.y+e.y;var h=sra(a);f-=h.x;e-=h.y;K8(new $.gb(f,e),a,b,c,null,null,d)};$.H(a9,$8);a9.prototype.j=0;a9.prototype.f=function(a){this.j=a};a9.prototype.b=function(a,b,c,d){var e=$.Cf(a);e=i8(e);var f=$.Ae($.te(a).b);f=new $.gb(this.i.x+f.scrollLeft,this.i.y+f.scrollTop);var h=b,k=K8(f,a,h,c,e,10,d);if(0!=(k&496)){if(k&16||k&32)h^=4;if(k&64||k&128)h^=1;k=K8(f,a,h,c,e,10,d);0!=(k&496)&&K8(f,a,b,c,e,this.j,d)}};$.H(Bra,O8);$.H(b9,H8);$.g=b9.prototype;$.g.ll=function(a){b9.u.ll.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.TT(this.f.Va(a),1)};$.g.Cg=function(){b9.u.Cg.call(this);this.i.forEach(this.g_,this);var a=$.ty(this);a.ta(this,"action",this.nha);a.ta(this.f.b,"mousedown",this.Aha,!0)};
   $.g.TT=function(a,b,c,d,e){var f;(f=!a)||(f=$.oa(a),f=!$.LB(this.i.f,f));f&&(a?(b={Cd:a,v5:b,Aga:c,HS:d?"contextmenu":"mousedown",Pc:e},this.i.set($.oa(a),b)):b=null,this.qf&&this.g_(b),a=$.qa(this.Gha,a),this.Va()&&$.ty(this).ta(this.Va(),"keydown",a))};$.g.Gha=function(a,b){if(27==b.keyCode)a.focus();else{var c=this.wd(this.ql);if(c){c=c.Va();var d=new $.xd(b.pl,c);d.target=c;if(32==b.keyCode||13==b.keyCode)$.Ad(c)?$.rf(c,"keydown",!1,d):$.Yd(c,"keydown",!1,d);32==b.keyCode&&this.Ic()}}};
   $.g.g_=function(a){$.ty(this).ta(a.Cd,a.HS,this.B3);"contextmenu"!=a.HS&&$.ty(this).ta(a.Cd,"keydown",this.Xha)};$.g.UT=function(a){var b;(b=!a)||(b=$.oa(a),b=!$.LB(this.i.f,b));if(b)throw Error("Menu not attached to provided element, unable to detach.");a=$.oa(a);this.qf&&(b=this.i.get(a),$.ty(this).dc(b.Cd,b.HS,this.B3));this.i.remove(a)};$.g.Ic=function(){this.Le()&&(this.Ai(!1),this.Le()||(0,$.In)())};$.g.nha=function(){this.Ic()};$.g.B3=function(a){Dra(this,a)};
   $.g.Xha=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Dra(this,a);40==a.keyCode&&z8(this)};$.g.Aha=function(a){this.Le()&&!this.Vq(a.target)&&this.Ic()};$.g.pM=function(a){b9.u.pM.call(this,a);this.Ic()};$.g.R=function(){b9.u.R.call(this);this.i&&(this.i.clear(),delete this.i)};$.H(c9,b9);$.g=c9.prototype;$.g.cH=function(){if(this.bF){var a=v8(this);0!=a.offsetWidth&&a.focus()}return!0};$.g.GL=!0;$.g.enabled=function(a){return $.n(a)?(this.GL!=a&&(this.GL=a),this):this.GL};$.g.UZ=function(a){a&&(this.b?$.Aa(this.b,a)||this.b.push(a):this.b=[a]);this.Va()&&this.b&&this.b.length&&$.Qj(this.Va(),this.b)};$.g.Uba=function(a){a&&this.b&&$.Fa(this.b,a)&&(this.Va()&&$.Rj(this.Va(),a),this.b.length||(this.b=null))};
   $.g.items=function(a){return null!=a?(this.z2(function(){return a}),a.length||this.Ic(),this.$g=a,this):this.$g};$.g.z2=function(a){return $.E(a)?(this.da!=a&&(this.da=a,this.ma=!1),this):this.da};$.g.Tba=function(a){return $.n(a)?(this.aa!=a&&(this.aa=a),this):this.aa};
   $.g.bH=function(a){this.GL&&(this.sa&&this.sa.Ra().Ic(),this.IK=a.target,Era(this,a,this.IK),$.C(this.items())&&!$.Jc(this.items())&&($.E(a.getOriginalEvent)?a.getOriginalEvent().preventDefault():a.preventDefault(),this.uj&&$.E(this.uj.getType)&&"map"==this.uj.getType()?(0,window.setTimeout)(this.Ha,0,a.clientX,a.clientY):this.show(a.clientX,a.clientY)))};$.g.Pd=function(a){c9.u.Pd.call(this,a);this.b&&this.b.length&&$.Qj(this.Va(),this.b)};
   $.g.TT=function(a,b){a&&!this.K&&(this.K=!0,$.C(a)&&$.E(a.listen)?(this.uj=a,this.uj.listen("contextmenu",this.bH,b,this)):$.ty(this).ta(a,"contextmenu",this.bH,b));return this};$.g.UT=function(a,b){this.K&&(null!=this.uj&&$.E(this.uj.unlisten)?this.K=!this.uj.unlisten("contextmenu",this.bH,b,this):$.Td(a,"contextmenu",this.bH,b,this)&&($.ty(this).dc(a,"contextmenu",this.bH,b),this.K=!1),this.K||this.Ic());return this};
   $.g.show=function(a,b){if(this.ma&&!$.Jc(this.items())||Era(this,null,this.uj)){var c=this.uj?this.uj.O().Ja():null;c=c&&c.fullScreen()?c.Nl():$.Gp.body;this.ba.parentNode!=c&&c.appendChild(this.ba);for(this.qf||this.Pd(this.ba);this.j&&0!=this.j.length;)c=this.wd(0),this.removeChild(c),c.kd();Fra(this,this,this.items());c=new a9(a,b);c.f(197);Cra(this,c)}};$.g.Ufa=function(a,b){return $.ea(a.index)?$.ea(b.index)?a.index-b.index||1:-1:1};
   $.g.R=function(){null!=this.uj&&this.UT();this.ba=this.b=this.uj=this.IK=null;c9.u.R.call(this)};$.g.F=function(){var a={};a.enabled=this.enabled();this.b&&(a.extraClassNames=$.Ha(this.b));return a};$.g.N=function(a){$.n(a)&&!this.He(a)&&$.C(a)&&this.U(a);return this};$.g.Yd=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.He=function(a){return(a=this.Yd(a))?(this.enabled(a.enabled),!0):!1};
   $.g.U=function(a){this.enabled("enabled"in a?a.enabled:!0);if(a=a.extraClassNames)for(var b=0,c=a.length;b<c;b++)this.UZ(a[b])};var I9=c9.prototype;$.F("anychart.ui.contextMenu",function(){return new c9});I9.serialize=I9.F;I9.setup=I9.N;I9.enabled=I9.enabled;I9.addClassName=I9.UZ;I9.removeClassName=I9.Uba;I9.attach=I9.TT;I9.detach=I9.UT;I9.listen=I9.ta;I9.unlisten=I9.dc;I9.show=I9.show;I9.hide=I9.Ic;I9.items=I9.items;I9.itemsProvider=I9.z2;I9.itemsFormatter=I9.Tba;$.H(Z8,F8);$.ja(Z8);Z8.prototype.fD=function(){return"anychart-toolbar-menu"};$.H(e9,$.ZC);$.ja(e9);$.g=e9.prototype;$.g.sc=function(a){var b=$.WC(this,a);b=a.f.sc("DIV","anychart-inline-block "+b.join(" "),this.KK(a.Ld,a.f));$.$C(b,a.fb);return b};$.g.XG=function(){return"button"};$.g.yn=function(a){return a&&a.firstChild&&a.firstChild.firstChild};$.g.KK=function(a,b){return b.sc("DIV","anychart-inline-block "+(this.yh()+"-outer-box"),b.sc("DIV","anychart-inline-block "+(this.yh()+"-inner-box"),a))};$.g.WG=function(a){return"DIV"==a.tagName};
   $.g.Ok=function(a,b){Hra(b,!0);Hra(b,!1);a:{var c=a.f.d1(b);var d=this.yh()+"-outer-box";if(c&&$.Oj(c,d)&&(c=a.f.d1(c),d=this.yh()+"-inner-box",c&&$.Oj(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.KK(b.childNodes,a.f));$.Qj(b,["anychart-inline-block",this.yh()]);return e9.u.Ok.call(this,a,b)};$.g.yh=function(){return"anychart-custom-button"};$.H(f9,e9);$.ja(f9);$.g=f9.prototype;$.g.yn=function(a){return f9.u.yn.call(this,a&&a.firstChild)};$.g.Ok=function(a,b){var c=$.ve(window.document,"*","anychart-menu",b)[0];if(c){$.Pf(c,!1);$.oe(c).body.appendChild(c);var d=new H8;d.ws(c);i9(a,d)}return f9.u.Ok.call(this,a,b)};$.g.KK=function(a,b){return f9.u.KK.call(this,[b.sc("DIV","anychart-inline-block "+(this.yh()+"-caption"),a),this.P_(b)],b)};$.g.P_=function(a){return a.sc("DIV","anychart-inline-block "+(this.yh()+"-dropdown"),"Â ")};
   $.g.yh=function(){return"anychart-menu-button"};$.H(g9,f9);$.ja(g9);g9.prototype.yh=function(){return"anychart-toolbar-menu-button"};$.H(h9,g9);$.ja(h9);h9.prototype.P_=function(a){a=a.sc("DIV","anychart-inline-block "+(this.yh()+"-dropdown"));a.innerHTML="&nbsp;";return a};$.H(j9,$.sD);$.g=j9.prototype;$.g.MM=!1;$.g.Cg=function(){j9.u.Cg.call(this);Jra(this,!0);this.b&&k9(this,this.b,!0);$.py(this.Cd,"haspopup",!!this.b)};$.g.vh=function(){j9.u.vh.call(this);Jra(this,!1);if(this.b){this.yl(!1);this.b.vh();k9(this,this.b,!1);var a=this.b.Va();a&&$.Xe(a)}};$.g.R=function(){j9.u.R.call(this);this.b&&(this.b.kd(),delete this.b);delete this.Ia;this.P.kd()};$.g.Nj=function(a){j9.u.Nj.call(this,a);this.mq()&&(this.yl(!$.UC(this,64),a),this.b&&(this.b.lu=$.UC(this,64)))};
   $.g.lr=function(a){j9.u.lr.call(this,a);this.b&&!this.mq()&&(this.b.lu=!1)};$.g.Qs=function(){$.lD(this,!1);return!0};$.g.Zea=function(a){this.b&&this.b.Le()&&!this.Vq(a.target)&&this.yl(!1)};$.g.Vq=function(a){return a&&$.cf(this.Va(),a)||this.b&&this.b.Vq(a)||!1};
   $.g.oA=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;if(this.b&&this.b.Le()){var b=13==a.keyCode||32==a.keyCode,c=this.b.ho(a);return 27==a.keyCode||b?(this.yl(!1),!0):c}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.yl(!0,a),!0):!1};$.g.kfa=function(){this.yl(!1)};$.g.lfa=function(){this.mq()||this.yl(!1)};$.g.rM=function(a){this.MM||this.yl(!1);j9.u.rM.call(this,a)};
   $.g.ey=function(a){return this.b?this.b.wd(a):null};$.g.Ai=function(a,b){var c=j9.u.Ai.call(this,a,b);c&&!this.Le()&&this.yl(!1);return c};$.g.xj=function(a){j9.u.xj.call(this,a);this.isEnabled()||this.yl(!1)};
   $.g.yl=function(a,b){j9.u.yl.call(this,a);if(this.b&&$.UC(this,64)==a){if(a)this.b.qf||this.b.Pd(),this.Aa=i8(this.Va()),this.da=$.Kf(this.Va()),Ira(this),!b||40!=b.keyCode&&38!=b.keyCode?this.b.Nn(-1):z8(this.b);else{$.lD(this,!1);this.b.lu=!1;var c=this.Va();c&&($.py(c,"activedescendant",""),$.py(c,"owns",""));null!=this.ba&&(this.ba=void 0,(c=this.b.Va())&&$.Hf(c,"",""))}this.b.Ai(a,!1,b);if(!this.nd){c=$.ty(this);var d=a?c.ta:c.dc;d.call(c,this.f.b,"mousedown",this.Zea,!0);this.MM&&d.call(c,this.b,
   "blur",this.lfa);d.call(c,this.P,"tick",this.Yha);a?this.P.start():this.P.stop()}}this.b&&this.b.Va()&&this.b.Cd.removeAttribute("aria-hidden")};$.g.Yha=function(){var a=$.Kf(this.Va()),b=i8(this.Va()),c;(c=!$.ob(this.da,a))||(c=this.Aa,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.da=a,this.Aa=b,Ira(this))};$.g.Lea=function(a){(a=a.target.Va())&&Kra(this,a)};$.g.hfa=function(a){$.TC(this,32)&&this.Va()&&this.b&&this.b.Le()&&a.stopPropagation()};
   $.g.Mea=function(){if(!x8(this.b)){var a=this.Va();$.py(a,"activedescendant","");$.py(a,"owns","")}};$.g.Kea=function(a){if($.UC(this,64)&&a.target instanceof o8){a=a.target;var b=a.Va();a.Le()&&$.UC(a,2)&&null!=b&&Kra(this,b)}};$.bD("anychart-menu-button",function(){return new j9(null)});$.H(l9,j9);$.bD("anychart-toolbar-menu-button",function(){return new l9(null)});$.H(m9,l9);m9.prototype.oA=function(a){if(32==a.keyCode){if(a.preventDefault(),"keyup"!=a.type)return!0}else if("key"!=a.type)return!1;var b;this.b||i9(this,new H8(this.f,this.Ha));return(b=this.b||null)&&b.Le()?b.ho(a):40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.yl(!0,a),!0):!1};$.H(n9,D8);$.ja(n9);n9.prototype.sc=function(a){return a.f.sc("DIV",$.WC(this,a).join(" ")+" anychart-inline-block","Â ")};n9.prototype.Ok=function(a,b){b=n9.u.Ok.call(this,a,b);$.Pj(b,"anychart-inline-block");return b};n9.prototype.yh=function(){return"anychart-toolbar-separator"};$.H(o9,n9);$.ja(o9);o9.prototype.sc=function(a){a=a.f.sc("DIV",$.WC(this,a).join(" ")+" anychart-inline-block");a.innerHTML="&nbsp;";return a};$.H(p9,E8);$.H(q9,q8);$.ja(q9);q9.prototype.AG=function(a){return"HR"==a.tagName?new E8(n9.Gd()):q9.u.AG.call(this,a)};q9.prototype.fD=function(){return"anychart-toolbar"};q9.prototype.X0=function(){return s8};$.H(r9,u8);r9.prototype.qM=function(a){r9.u.qM.call(this,a);this.lu||z8(this)};$.H(s9,r9);s9.prototype.O=function(a){return $.n(a)?(a=$.ue(window.document,a),this.Hc!=a&&(this.vh(),this.Hc=a,this.W()),this):this.Hc};s9.prototype.target=function(a){return $.n(a)?(this.ma=a,this):this.ma};s9.prototype.W=function(){if(this.Hc)if(this.Hc.firstChild){var a=this.Hc.firstChild;this.aE(a.parentNode,a)}else this.Pd(this.Hc);else $.hl(13);return this};$.H(t9,e9);$.ja(t9);t9.prototype.yh=function(){return"anychart-toolbar-button"};$.H(u9,$.sD);$.bD("anychart-toolbar-button",function(){return new u9(null)});$.H(z9,s9);var Nra={print:"Print",changeLayout:"Layout",changeRange:"Range",allDates:"All dates",visibleDates:"Visible dates",portrait:"Portrait",landscape:"Landscape",saveAs:"Save As",zoomIn:"Zoom In",zoomOut:"Zoom Out",fitAll:"Fit All",expandAll:"Expand All",collapseAll:"Collapse All"},y9="landscape",x9="visible";$.g=z9.prototype;$.g.rca=function(a){return $.n(a)?(a!=this.K&&(this.K=a,A9(this)),this):this.K};
   $.g.Pea=function(a){a=a.target.$g;var b=a.Nt,c=a&&a.c_||[];a=this.target();if("print"==b)if(b=this.RN.ve,c=[c[0],"landscape"==this.RN.ue],$.E(this.aa))c.push(b),this.aa.apply(null,$.Ga([a],c));else if(a){var d=a.print;if($.E(d)){var e=a.bg().scale().mj();"full"==b&&a.Lm();d.apply(a,c);a.fj(e.min,e.max)}else $.hl(14,null,["print"])}else $.hl(15);else a?(d=a[b],$.E(d)?d.apply(a,c):$.hl(14,null,[b])):$.hl(15)};
   $.g.T3=function(a){if($.n(a)){for(this.da=a;3<$.vy(this.Ts);)this.Ts.vj(3,!0);this.vh();this.W();return this}return this.da};$.g.W=function(){A9(this);if(!this.qf){for(var a=this.T3(),b=0;b<a.length;b++){var c=a[b],d=new p8("us-letter"==c?"US Letter":$.Ac(c));d.$g={Nt:"print",c_:[c]};$.gD(d,"anychart-toolbar-print-"+c);this.Ts.gc(d,!0)}return z9.u.W.call(this)}return this};$.g.yia=function(a){return $.n(a)?(this.aa=a,this):this.aa};
   $.g.bka=function(){for(var a=this.b,b=0;b<a.length;b++){var c=a[b],d=c.$g,e=w9(d.id);e&&(g8(c,e),d.text=e)}c=this.Ts.wd(0);a=this.Ts.wd(1);g8(c,w9("changeLayout"));g8(a,w9("changeRange"));b=c.ey(0);c=c.ey(1);g8(b,w9("landscape"));g8(c,w9("portrait"));b=a.ey(0);a=a.ey(1);g8(b,w9("allDates"));g8(a,w9("visibleDates"));A9(this);return this};$.F("anychart.ui.ganttToolbar",function(){return new z9});var J9=z9.prototype;J9.draw=J9.W;J9.printPaperSizes=J9.T3;J9.container=J9.O;J9.target=J9.target;
   J9.buttonsMode=J9.rca;J9.printFunction=J9.yia;J9.updateLocalizedCaptions=J9.bka;$.H(B9,$.ry);$.g=B9.prototype;$.g.cj=!1;$.g.visible=function(a){if($.n(a)){if(a==this.cj)return this;a?(this.qf||this.Pd(),this.cj=!0):this.cj=!1;$.Pf(this.Va(),this.cj);return this}return this.cj};$.g.sc=function(){B9.u.sc.call(this);Ora(this)};$.g.ll=function(a){B9.u.ll.call(this,a);Ora(this,a)};$.g.Cg=function(){B9.u.Cg.call(this)};$.g.vh=function(){B9.u.vh.call(this)};$.g.R=function(){B9.u.R.call(this)};var K9=B9.prototype;$.F("anychart.ui.preloader",function(){return new B9});K9.render=K9.Pd;
   K9.decorate=K9.ws;K9.visible=K9.visible;$.H(C9,$.ry);$.g=C9.prototype;$.g.target=function(a){this.b=a};$.g.OQ=function(a){this.Aa=a.firstVisible;this.Ia=a.lastVisible;Qra(this)};$.g.format=function(a){$.n(a)&&(this.ZS=a,Qra(this));return this.ZS||$.$p.format.outputDateTimeFormat()};$.g.sc=function(){C9.u.sc.call(this);Rra(this)};$.g.Vba=function(a){this.Pd(a)};$.g.ll=function(a){Sra(a)?this.Pd(a):(C9.u.ll.call(this,a),Rra(this))};
   $.g.hea=function(a){return $.n(a)?(this.ma!=a&&(this.ma=a,this.ba&&$.df(this.ba,$.$p.format.getMessage(this.ma))),this):this.ma};$.g.Vja=function(a){return $.n(a)?(this.Ha!=a&&(this.Ha=a,this.P&&$.df(this.P,$.$p.format.getMessage(this.Ha))),this):this.Ha};
   $.g.Pd=function(a){a=a||this.b;if(Sra(a)){this.target(a);this.Wa=!0;var b=this.b.container()?this.b.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.b?!(0,window.isNaN)(this.b.getSelectedRange().firstSelected):!1;a&&b?C9.u.Pd.call(this,a):(a=(0,$.pa)(this.Vba,this,a||this.b),this.b.Ae("chartdraw",a,!1,this))};
   $.g.Cg=function(){C9.u.Cg.call(this);if(this.b){if(this.Wa){var a=($.Wf(this.Va()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.OQ,!1,this);a=$.ty(this);a.ta(this.i.Va(),"blur",this.WV);a.ta(this.K.Va(),"blur",this.WV);this.aa||(this.aa=new $.Ep(this.i.Va()),a.ta(this.aa,"key",this.zN));this.da||(this.da=new $.Ep(this.K.Va()),a.ta(this.da,"key",this.zN))}};
   $.g.WV=function(){var a=this.i.pj(),b=this.K.pj(),c=this.format();a=$.$p.format.parseDateTime(a,c);b=$.$p.format.parseDateTime(b,c);if(a&&b){c=a.getTime();var d=b.getTime();c>d&&(a=[b,b=a][0],c=[d,d=c][0]);if(c!=this.Aa||d!=this.Ia){this.Aa=c;this.Ia=d;this.b.selectRange(a,b,!0);return}}$.Cy(this.i,$.$p.format.dateTime(this.Aa,this.format()));$.Cy(this.K,$.$p.format.dateTime(this.Ia,this.format()))};
   $.g.zN=function(a){if(13==a.keyCode){a=a.target.B2.Va();var b;a:{var c=b=0;if(Pra(a))b=a.selectionStart,c=-1;else if($.hd&&!$.bd("9")){var d=a.ownerDocument||a.document;var e=d.selection.createRange();"textarea"==a.type?(d=d.body.createTextRange(),d.moveToElementText(a)):d=a.createTextRange();d=[d,e];e=d[0];d=d[1];if(e.inRange(d)){e.setEndPoint("EndToStart",d);if("textarea"==a.type){d.duplicate();c=b=e.text;for(d=!1;!d;)0==e.compareEndPoints("StartToEnd",e)?d=!0:(e.moveEnd("character",-1),e.text==
   b?c+="\r\n":d=!0);b=[c.length,-1];break a}b=e.text.length;c=-1}}b=[b,c]}b=b[0];this.WV();Pra(a)?(a.selectionStart=b,a.selectionEnd=b):$.hd&&!$.bd("9")&&("textarea"==a.type&&(b=$.ic(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.vh=function(){C9.u.vh.call(this)};
   $.g.R=function(){this.b.unlisten("selectedrangechange",this.OQ,!1,this);this.b=null;this.P&&($.Xe(this.ba),this.ba=null);this.P&&($.Xe(this.P),this.P=null);this.aa&&($.ty(this).dc(this.aa,"key",this.zN),this.aa.kd(),this.aa=null);this.da&&($.ty(this).dc(this.da,"key",this.zN),this.da.kd(),this.da=null);C9.u.R.call(this)};var L9=C9.prototype;$.F("anychart.ui.rangePicker",function(){return new C9});L9.render=L9.Pd;L9.decorate=L9.ws;L9.target=L9.target;L9.format=L9.format;L9.dispose=L9.kd;
   L9.getElement=L9.Va;L9.toLabelText=L9.Vja;L9.fromLabelText=L9.hea;$.H(Ura,$.vD);var Tra="anychart-button-toggle";$.H(D9,$.qf);$.g=D9.prototype;$.g.$G=null;$.g.VT=null;$.g.ey=function(a){return this.Sb[a]||null};$.g.sm=function(){return $.Ha(this.Sb)};$.g.clear=function(){var a=this.Sb;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.$G=null};$.g.R=function(){D9.u.R.call(this);delete this.Sb;this.$G=null};$.H(G9,$.ry);$.g=G9.prototype;$.g.target=function(a){this.b=a};$.g.iK=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.wy(this,"max"))){F9(this.i,a);return}F9(this.i,null)};$.g.Yba=function(a,b){a&&$.mD(a,b)};
   $.g.Oy=function(a){$.n(a)&&$.A(a)&&(this.gd=(0,$.Fg)(a,function(a,c){c=$.Qc(c);var b=$.n(c.startDate)&&$.n(c.endDate);"unit"==c.type||"points"==c.type?(c.count=c.count||1,c.anchor=$.cl(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.gd};$.g.sc=function(){G9.u.sc.call(this);Wra(this)};$.g.ll=function(a){Xra(a)?this.Pd(a):(G9.u.ll.call(this,a),Wra(this))};
   $.g.update=function(){this.qf&&(this.Wi(!0),this.i.clear(),(0,$.Ne)(this.gd,function(a,b){var c=new Ura(a.text);c.$g=a;"max"==a.type&&f8(c,"max");c.bv&=-17;var d=this.i,e=d.Sb.length;c&&(E9(d,c,!1),$.Da(d.Sb,c,e));b?b==this.gd.length-1?$.uD(c,1):$.uD(c,3):$.uD(c,2);this.gc(c,!0)},this))};$.g.tka=function(a){return $.n(a)?(this.P!=a&&(this.P=a,this.K&&$.df(this.K,$.$p.format.getMessage(this.P))),this):this.P};$.g.Wba=function(a){this.Pd(a)};
   $.g.Pd=function(a){a=a||this.b;if(Xra(a)){this.target(a);this.aa=!0;var b=this.b.container()?this.b.container().getStage():null;b&&b.container()?a=b.container():a=null}b=this.b?!(0,window.isNaN)(this.b.getSelectedRange().firstSelected):!1;a&&b?(G9.u.Pd.call(this,a),(a=this.b?this.b.BG():null)&&this.iK({firstKey:a.Gn,lastKey:a.np,firstSelected:a.js,lastSelected:a.kw})):(a=(0,$.pa)(this.Wba,this,a||this.b),this.b.Ae("chartdraw",a,!1,this))};
   $.g.ws=function(a){G9.u.ws.call(this,a);this.b&&(a=this.b?this.b.BG():null)&&this.iK({firstKey:a.Gn,lastKey:a.np,firstSelected:a.js,lastSelected:a.kw})};$.g.Cg=function(){G9.u.Cg.call(this);if(this.b){this.update();if(this.aa){var a=($.Wf(this.Va()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.iK,!1,this);$.ty(this).ta(this,"action",this.Xba)}};
   $.g.Xba=function(a){var b=a.target.$g,c=$.yk($.pE,b.type,$.n(null)?null:"max");"unit"==c?this.b.selectRange(b.unit,b.count,b.anchor,!0):"points"==c?this.b.selectRange("points",b.count,b.anchor,!0):"ytd"==c||"qtd"==c||"mtd"==c||"max"==c?this.b.selectRange(c,!0):(c=$.$p.format.parseDateTime(b.startDate),b=$.$p.format.parseDateTime(b.endDate),c&&b&&this.b.selectRange(c,b,!0));F9(this.i,a.target)};$.g.vh=function(){G9.u.vh.call(this)};
   $.g.R=function(){this.b.unlisten("selectedrangechange",this.iK,!1,this);this.b=null;this.i.clear();this.K&&($.Xe(this.K),this.K=null);G9.u.R.call(this)};var M9=G9.prototype;$.F("anychart.ui.rangeSelector",function(){return new G9});M9.render=M9.Pd;M9.decorate=M9.ws;M9.target=M9.target;M9.ranges=M9.Oy;M9.dispose=M9.kd;M9.getElement=M9.Va;M9.zoomLabelText=M9.tka;$.H(H9,$.ry);$.g=H9.prototype;$.g.target=function(a){this.b=a};$.g.sc=function(){H9.u.sc.call(this);Yra(this)};$.g.ll=function(a){Zra(a)?this.Pd(a):(H9.u.ll.call(this,a),Yra(this))};$.g.Zba=function(a){this.Pd(a)};
   $.g.Pd=function(a){a=a||this.b;var b;(b=Zra(a))||(b=(b=a)&&$.E(b.getType)&&"timeline"==b.getType());b||(b=(b=a)&&$.E(b.getType)&&"graph"==b.getType());b&&(this.target(a),(b=this.b.container()?this.b.container().getStage():null)&&b.container()?a=b.container():a=null);a?H9.u.Pd.call(this,a):(a=(0,$.pa)(this.Zba,this,a||this.b),this.b.listenOnce("chartdraw",a,!1,this))};$.g.Cg=function(){H9.u.Cg.call(this);this.b&&$.ty(this).ta(this,"action",this.$ba)};
   $.g.$ba=function(a){a=a.target.$g;this.b.Bl=100;var b=this.b.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.vh=function(){H9.u.vh.call(this)};$.g.R=function(){this.b=null;this.i.kd();this.i=null;this.K.kd();this.K=null;this.P.kd();this.P=null;H9.u.R.call(this)};var N9=H9.prototype;$.F("anychart.ui.zoom",function(){return new H9});N9.render=N9.Pd;N9.decorate=N9.ws;N9.target=N9.target;N9.dispose=N9.kd;}).call(this,$)}
   $_=window.anychart;$_.$=$;$_._=_});