if(!_.ui){_.ui=1;(function($){var k8=function(a,b){a.Y&&a.Y.D&&($.Nc(a.Y.D,a.Yd),$.Oc(a.Y.D,b,a));a.Yd=b},bpa=function(a,b){a.Cd=b},cpa=function(a,b){a.Sg=b},l8=function(a,b){a.g.Dv(a.Ta(),b);a.Cd=b},m8=function(a,b){return new $.gb(a.x-b.x,a.y-b.y)},dpa=function(a){if($.hd&&!$.ed(8))return a.offsetParent;var b=$.re(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},n8=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=$.Ge(c.b);a=dpa(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=$.Fe($.He(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},epa=function(a,b){var c=b||$.Ge(window.document);var d=c||$.Ge(window.document);var e=$.Ef(a),f=$.Ef(d),h=$.Vf(d);if(d==$.Ge(window.document)){var k=e.x-d.scrollLeft;e=e.y-d.scrollTop;$.hd&&!$.ed(10)&&(k+=h.left,
e+=h.top)}else k=e.x-f.x-h.left,e=e.y-f.y-h.top;h=$.Mf(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},o8=function(a,b){$.qf.call(this);this.f=a||1;this.b=b||$.xj;this.g=(0,$.pa)(this.Fia,this);this.j=(0,$.Fn)()},fpa=function(a,b){var c="";b&&(c=b.id);$.ky(a,"activedescendant",c)},p8=function(){this.f=[]},q8=function(a,b){var c=a.f[b];if(!c){switch(b){case 0:c=
a.rh()+"-highlight";break;case 1:c=a.rh()+"-checkbox";break;case 2:c=a.rh()+"-content"}a.f[b]=c}return c},gpa=function(a,b,c){a=q8(a,2);return c.pc("DIV",a,b)},r8=function(a,b){var c=a.sn(b);if(c){c=c.firstChild;var d=q8(a,1);return!!c&&$.bf(c)&&$.Mj(c,d)}return!1},s8=function(a,b,c,d){$.MC(a,c,b.xG());$.PC(a,b,c);d!=r8(a,c)&&(d?$.Nj(c,"anychart-option"):$.Pj(c,"anychart-option"),c=a.sn(c),d?(a=q8(a,1),c.insertBefore(b.f.pc("DIV",a),c.firstChild||null)):c.removeChild(c.firstChild))},t8=function(a,
b,c,d){$.YC.call(this,a,d||p8.vd(),c);this.Sg=b},u8=function(a,b,c,d){t8.call(this,a,b,c,d);this.O=!1},v8=function(a){this.b=a},w8=function(a,b){a&&(a.tabIndex=b?0:-1)},jpa=function(a,b,c){c.id&&k8(b,c.id);var d=a.VC(),e=!1,f=$.Lj(c);f&&(0,$.Qe)(f,function(a){a==d?e=!0:a&&(a==d+"-disabled"?b.lj(!1):a==d+"-horizontal"?hpa(b,x8):a==d+"-vertical"&&hpa(b,y8))},a);e||$.Nj(c,d);ipa(a,b,c);return c},ipa=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.oG(d);f&&(f.pd=d,b.isEnabled()||f.lj(!1),b.fc(f),f.js(d))}else d.nodeValue&&""!=(0,$.vc)(d.nodeValue)||c.removeChild(d);d=e}},kpa=function(a,b){var c=a.VC(),d=[c,b.ih==x8?c+"-horizontal":c+"-vertical"];b.isEnabled()||d.push(c+"-disabled");return d},z8=function(a,b,c){$.my.call(this,c);this.Cv=b||v8.vd();this.ih=a||this.Cv.s0()},A8=function(a){return a.xU||a.Ta()},lpa=function(a,b){var c=$.oy(a),d=A8(a);b?c.ra(d,"focus",a.ZL).ra(d,"blur",a.YL).ra(a.Hl||(a.Hl=new $.zp(A8(a))),"key",a.bo):c.ac(d,"focus",
a.ZL).ac(d,"blur",a.YL).ac(a.Hl||(a.Hl=new $.zp(A8(a))),"key",a.bo)},mpa=function(a,b){var c=b.Ta();c=c.id||(c.id=b.Lx());a.Vu||(a.Vu={});a.Vu[c]=b},hpa=function(a,b){if(a.Ta())throw Error("Component already rendered");a.ih=b},B8=function(a,b){b!=a.DC&&a.df&&lpa(a,b);a.DC=b;a.$z&&a.Si&&w8(A8(a),b)},C8=function(a){return a.od(a.el)},E8=function(a){D8(a,function(a,c){return(a+1)%c},$.qy(a)-1)},npa=function(a){D8(a,function(a,c){a--;return 0>a?c-1:a},0)},F8=function(a){D8(a,function(a,c){return(a+1)%
c},a.el)},G8=function(a){D8(a,function(a,c){a--;return 0>a?c-1:a},a.el)},D8=function(a,b,c){c=0>c?a.pf(a.Ol):c;var d=$.qy(a);c=b.call(a,c,d);for(var e=0;e<=d;){var f=a.od(c);if(f&&a.WZ(f)){a.Gn(c);break}e++;c=b.call(a,c,d)}},H8=function(){},opa=function(a,b,c){$.YC.call(this,a,c||H8.vd(),b);this.Tm(1,!1);this.Tm(2,!1);this.Tm(4,!1);this.Tm(32,!1);this.Xb=1},I8=function(){},J8=function(a,b){$.YC.call(this,null,a||I8.vd(),b);this.Tm(1,!1);this.Tm(2,!1);this.Tm(4,!1);this.Tm(32,!1);this.Xb=1},K8=function(a){this.b=
a||"menu"},L8=function(a){J8.call(this,I8.vd(),a)},M8=function(a,b){z8.call(this,y8,b||K8.vd(),a);B8(this,!1)},N8=function(a,b){(a.PE=b)&&B8(a,!0)},O8=function(a,b){M8.call(this,a,b);this.O=null},Q8=function(a,b,c,d,e,f,h,k,l){var m=ppa(c),p=$.Of(a),q=n8(a);if(q){var r=new $.J(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=$.He(u.b);r=new $.gb(0,0);var v=(v=$.re(t))?$.He(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=m8(r,$.Ef(t));!$.hd||$.ed(9)||$.Ee(q.b)||(t=m8(t,$.Le(q.b)));p.left+=t.x;p.top+=t.y}a=qpa(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=m8(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=n8(c))y.top-=m.y,y.right-=m.x,y.bottom-=m.y,y.left-=m.x;return P8(p,c,d,f,y,h,k)},ppa=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=$.GD&&0<=$.xc($.uda,10);var e=$.mda&&0<=$.xc($.qda,10);d=$.gd||d||e}b=d?-a.scrollLeft:!b||$.hda&&$.bd("8")||"visible"==$.zf(a,"overflowX")?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft;c=m8(c,new $.gb(b,a.scrollTop))}}}return c||new $.gb},
P8=function(a,b,c,d,e,f,h){a=a.clone();var k=qpa(b,c);c=$.Nf(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 $.J(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=$.Ee($.te($.re(b)).b),!$.hd||$.bd("10")||a&&$.bd("8")?(b=b.style,$.gd?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},qpa=function(a,b){return(b&8&&$.Qf(a)?b^4:b)&-9},R8=function(){},S8=function(a,b,c){this.element=a;this.g=b;this.N=c},T8=function(a,b,c,d){S8.call(this,a,b);this.j=c?5:0;this.D=d||void 0},U8=function(a,b){a&48&&(b^=4);a&192&&(b^=1);return b},V8=function(){this.f=[]},spa=function(a,b,c){var d=b.f.pc("SPAN");d.className="anychart-submenu-arrow";rpa(b,d);a.sn(c).appendChild(d)},rpa=function(a,
b){$.py(a)?($.Nj(b,"anychart-submenu-arrow-rtl"),$.ef(b,"◄")):($.Pj(b,"anychart-submenu-arrow-rtl"),$.ef(b,"►"))},W8=function(a,b,c,d){t8.call(this,a,b,c,d||V8.vd())},tpa=function(a){a.getParent().yj(function(a){a!=this&&"function"==typeof a.xl&&(a.xl(),a.Bp())},a)},upa=function(a,b){!b&&X8(a)&&X8(a).Gn(-1);a.dispatchEvent($.ny(64,b));var c=X8(a);if(b!=a.xT){var d=a.Ta();b?$.Nj(d,"anychart-submenu-open"):$.Pj(d,"anychart-submenu-open")}if(b!=c.He()&&(b&&(c.df||c.Fd(),c.Gn(-1)),c.ri(b),b)){c=new T8(a.Ta(),
12,!1);d=X8(a);var e=d.Ta();d.He()||(e.style.visibility="hidden",$.Pf(e,!0));c.b(e,8);d.He()||($.Pf(e,!1),e.style.visibility="visible")}a.xT=b},Y8=function(a,b,c){var d=$.oy(a);(c?d.ra:d.ac).call(d,b,"enter",a.Oda)},X8=function(a){a.El?a.bM&&a.El.getParent()!=a&&a.El.Mk(a):Z8(a,new M8(a.f));a.El.Ta()||a.El.pc();return a.El},Z8=function(a,b){var c=a.El;b!=c&&(c&&(a.xl(),a.df&&Y8(a,c,!1)),a.El=b,a.bM=!1,b&&(b.Mk(a),b.ri(!1,!0),N8(b,!1),B8(b,!1),a.df&&Y8(a,b,!0)))},$8=function(){this.f=[]},vpa=function(a,
b,c){b=b.f.pc("span");b.className="anychart-submenu-arrow";b.innerHTML="&nbsp;";a.sn(c).appendChild(b)},a9=function(a,b,c){t8.call(this,a,void 0,void 0,$8.vd());this.O=c||!1;this.b=b||null},wpa=function(a){a.getParent().yj(function(a){a!=this&&"function"==typeof a.xl&&(a.xl(),a.Bp())},a)},xpa=function(a,b){!b&&b9(a)&&b9(a).Gn(-1);a.dispatchEvent($.ny(64,b));var c=b9(a);if(b!=a.vQ){var d=a.Ta();b?$.Nj(d,"anychart-submenu-open"):$.Pj(d,"anychart-submenu-open")}if(b!=c.He()&&(b&&(c.df||c.Fd(a.b),c.Gn(-1)),
c.ri(b),b)){c=new T8(a.Ta(),12,!1);var e=b9(a),f=e.Ta();e.He()||(f.style.visibility="hidden",$.Pf(f,!0));c.b(f,8);e.He()||($.Pf(f,!1),f.style.visibility="visible");c=$.Fe(window);d=$.Of(f);f=$.Gf(f);e=e.O;var h=$.Of(e);e.style.maxHeight=c.height-f.y-(d.height-h.height)-15+"px"}a.vQ=b},c9=function(a,b,c){var d=$.oy(a);(c?d.ra:d.ac).call(d,b,"enter",a.mba)},b9=function(a){if(a.ul)a.UJ&&a.ul.getParent()!=a&&a.ul.Mk(a);else{var b=a.O?d9.vd():void 0;b=new O8(a.f,b);var c=a.ul;b!=c&&(c&&(a.xl(),a.df&&c9(a,
c,!1)),a.ul=b,a.UJ=!1,b&&(b.Mk(a),b.ri(!1,!0),N8(b,!1),B8(b,!1),a.df&&c9(a,b,!0)))}a.ul.Ta()||a.ul.pc();return a.ul},e9=function(a,b){this.g=a instanceof $.gb?a:new $.gb(a,b)},f9=function(a,b){e9.call(this,a,b)},ypa=function(a,b,c,d){T8.call(this,a,b,c||d);(c||d)&&this.f(65|(d?32:132))},g9=function(a,b){M8.call(this,a,b);N8(this,!0);this.ri(!1,!0);this.g=new $.EB},zpa=function(a,b,c,d){var e=a.He();a.He()||(0,$.Fn)();a.dispatchEvent("beforeshow")&&(c="undefined"!=typeof c?c:8,e||(a.Ta().style.visibility=
"hidden"),$.Pf(a.Ta(),!0),b.b(a.Ta(),c,d),e||(a.Ta().style.visibility="visible"),a.Gn(-1),a.ri(!0))},Apa=function(a,b){for(var c=a.g.Bt(),d=0;d<c.length;d++){var e=a.g.get(c[d]);if(e.pd==b.b){c=a;d=$.n(e.M4)?new T8(e.pd,e.M4,!0):new f9(b.clientX,b.clientY);d.f&&d.f(5);zpa(c,d,e.Afa,e.Mc);b.preventDefault();b.stopPropagation();break}}},h9=function(){g9.call(this);this.N=!1;this.b=this.ij=this.qK=null;this.ka=!1;this.ba=$.Ne("div",{id:"anychart-menu-wrapper"});this.U=function(a){return a};this.ga=function(){return{}};
cpa(this,{});this.Ga=(0,$.pa)(this.show,this);this.ra("action",function(a){var b=a.target.Sg;a={type:b.eventType||"action",event:a,target:this.qK,item:b};this.ij&&(a.menuParent=this.ij,$.E(this.ij.getSelectedPoints)&&(a.selectedPoints=this.ij.getSelectedPoints()||[]));$.E(b.action)&&b.action.call(a,a);b.eventType&&this.dispatchEvent(a)})},Bpa=function(a,b,c){b={event:b,target:c,menu:a};if(a.ij){c=a.ij.container()?a.ij.container().getStage():null;if(null===c||"none"==$.yf(c.domElement(),"border-style"))return!1;
b.menuParent=a.ij;b.chart=a.ij;$.E(a.ij.getSelectedPoints)&&(b.selectedPoints=a.ij.getSelectedPoints()||[]);b=a.ij.pN(b)}c=$.Kl(a.ga.call(b,b));b=a.U.call(c,c,b);a.Sg=b;a.ka=!0;return!$.Jc(b)},Cpa=function(a,b,c){var d=[],e;for(e in c){var f=c[e];c.hasOwnProperty(e)&&$.Ua(d,f,a.Uea)}for(e=0;e<d.length;e++){c=d[e];if(null!=c)var h=$.z(c.classNames)?c.classNames.split(" "):c.classNames||[];f=$.ds(c.text)||"";c.text?c.subMenu?(f=new a9(f,a.ba),h.length&&$.aD(f,h.join(" ")),$.da(c.enabled)&&f.lj(c.enabled),
Cpa(a,f,c.subMenu),i9(b,f),$.n(c.iconClass)&&Dpa(f,c.iconClass)):(c.href&&(f=$.Ne("A",{href:c.href,target:c.target||"_blank"},f),h.unshift("anychart-menuitem-link")),f=new u8(f,c),h.length&&$.aD(f,h.join(" ")),$.da(c.enabled)&&f.lj(c.enabled),$.da(c.scrollable)&&f.b(c.scrollable),i9(b,f),$.n(c.iconClass)&&Dpa(f,c.iconClass)):i9(b,new L8)}},i9=function(a,b){$.K(a,a9)?a.TJ(b):a.fc(b,!0)},Dpa=function(a,b){var c=a.Ta();if(c){var d=$.Be(window.document,"I",null,c)[0];b?d?(d.className=b,$.Pf(d,!0)):(d=
$.Ne("I",b),$.ky(d,"hidden",!0),$.We(c,d,0)):d&&$.Pf(d,!1)}},d9=function(a){K8.call(this,a)},j9=function(){},Epa=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?$.nc(e):e.replace(/[\s\xa0]+$/,"");break}}else break;c=d}},k9=function(){},l9=function(){},m9=function(){},o9=function(a,b,c,d,e){$.mD.call(this,a,c||k9.vd(),d);this.Tm(64,!0);this.U=
new ypa(null,9);b&&n9(this,b);this.O=new o8(500);!$.ED&&!$.FD||$.bd("533.17.9")||(this.tM=!0);this.Ga=e||K8.vd()},n9=function(a,b){var c=a.b;b!=c&&(c&&(a.ml(!1),a.df&&p9(a,c,!1),delete a.b),a.df&&$.ky(a.pd,"haspopup",!!b),b&&(a.b=b,b.Mk(a),b.ri(!1),N8(b,a.tM),a.df&&p9(a,b,!0)))},Fpa=function(a){if(a.b.df){var b=a.Ja||a.Ta(),c=a.U;a.U.element=b;b=a.b.Ta();a.b.He()||(b.style.visibility="hidden",$.Pf(b,!0));!a.ba&&a.U.G&&a.U.j&32&&(a.ba=$.Nf(b));c.b(b,c.g^1,null,a.ba);a.b.He()||($.Pf(b,!1),b.style.visibility=
"visible")}},p9=function(a,b,c){var d=$.oy(a);c=c?d.ra:d.ac;c.call(d,b,"action",a.lea);c.call(d,b,"close",a.Lda);c.call(d,b,"highlight",a.Mda);c.call(d,b,"unhighlight",a.Nda)},Gpa=function(a,b){var c=$.oy(a);(b?c.ra:c.ac).call(c,a.Ta(),"keydown",a.iea)},Hpa=function(a,b){var c=a.Ta(),d=b.getAttribute("aria-activedescendant");d=$.re(b).getElementById(null==d||void 0==d?"":String(d))||b;if(!d.id){var e=$.ly.vd();d.id=":"+(e.b++).toString(36)}fpa(c,d);$.ky(c,"owns",d.id)},q9=function(a,b,c,d){o9.call(this,
a,b,c||l9.vd(),d)},r9=function(a,b,c,d){q9.call(this,a,b,c||m9.vd(),d)},s9=function(){},t9=function(){},u9=function(a,b){J8.call(this,a||t9.vd(),b)},v9=function(){this.b="toolbar"},w9=function(a,b,c){z8.call(this,b,a||v9.vd(),c)},x9=function(){w9.call(this)},y9=function(){},z9=function(a,b,c){$.mD.call(this,a,b||y9.vd(),c)},E9=function(){w9.call(this);this.ga="us-letter a0 a1 a2 a3 a4 a5 a6".split(" ");this.N="all";this.b=[];this.g=[];Ipa(this);this.fc(new u9,!0);this.O=new O8(void 0,d9.vd());var a=
new u8("SVG");$.aD(a,"anychart-toolbar-saveAsSvg");a.Sg={yt:"saveAsSvg",icon:"ac-file-code-o",text:"SVG"};this.O.fc(a,!0);A9(a,!0,!0);this.g.push(a);a=new u8("PNG");$.aD(a,"anychart-toolbar-saveAsPng");a.Sg={yt:"saveAsPng",icon:"ac-file-image-o",text:"PNG"};this.O.fc(a,!0);A9(a,!0,!0);this.g.push(a);a=new u8("JPG");$.aD(a,"anychart-toolbar-saveAsJpg");a.Sg={yt:"saveAsJpg",icon:"ac-file-image-o",text:"JPG"};this.O.fc(a,!0);A9(a,!0,!0);this.g.push(a);a=new a9("PDF",void 0,!0);$.aD(a,"anychart-toolbar-saveAsPdf");
for(var b=1;b<this.ga.length;b++){var c=this.ga[b],d=new u8(c.toUpperCase());d.Sg={yt:"saveAsPdf",CZ:[c]};$.aD(d,"anychart-toolbar-saveAsPdf");a.TJ(d)}this.O.fc(a,!0);a.Sg={icon:"ac-file-pdf-o",text:"PDF"};A9(a,!0,!0);this.g.push(a);a=B9("saveAs");b=new r9(a,this.O);$.aD(b,"anychart-toolbar-saveAs");b.Sg={id:"saveAs",text:a,icon:"ac-save"};this.fc(b,!0);this.b.push(b);this.fc(new u9,!0);a=B9("zoomIn");b=new z9(a);$.aD(b,"anychart-toolbar-zoomIn");b.Sg={id:"zoomIn",yt:"zoomIn",text:a,icon:"ac-zoom-in"};
this.fc(b,!0);this.b.push(b);a=B9("zoomOut");b=new z9(a);$.aD(b,"anychart-toolbar-zoomOut");b.Sg={id:"zoomOut",yt:"zoomOut",text:a,icon:"ac-zoom-out"};this.fc(b,!0);this.b.push(b);a=B9("fitAll");b=new z9(a);$.aD(b,"anychart-toolbar-fitAll");b.Sg={id:"fitAll",yt:"fitAll",text:a,icon:"ac-dot-square-o"};this.fc(b,!0);this.b.push(b);this.fc(new u9,!0);a=B9("expandAll");b=new z9(a);$.aD(b,"anychart-toolbar-expandAll");b.Sg={id:"expandAll",yt:"expandAll",text:a,icon:"ac-expand"};this.fc(b,!0);this.b.push(b);
a=B9("collapseAll");b=new z9(a);$.aD(b,"anychart-toolbar-collapseAll");b.Sg={id:"collapseAll",yt:"collapseAll",text:a,icon:"ac-collapse"};this.fc(b,!0);this.b.push(b);this.xN={qe:C9,pe:D9};this.U=null;this.ra("action",this.Qda)},Jpa=function(a,b,c,d,e){b=new a9(b,void 0,!0);var f=(0,$.Wa)(c,function(a){var b=a.value;a=new u8(a.caption);a.Sg=b;a.Tm(8,!0);a.yI(b==e);return a});(0,$.Qe)(f,b.TJ,b);b.ra("action",function(a){var b=a.target,c=b.ej();(0,$.Qe)(f,function(a){a.yI(a==b)});d.call(this,c);a.stopPropagation()},
void 0,a);return b},Ipa=function(a){a.Fs=new O8(void 0,d9.vd());var b=Jpa(a,B9("changeLayout"),[{caption:B9("landscape"),value:D9},{caption:B9("portrait"),value:"portrait"}],function(a){this.xN.pe=a;this.Fs.ri(!0,!0)},D9),c=Jpa(a,B9("changeRange"),[{caption:B9("allDates"),value:"full"},{caption:B9("visibleDates"),value:C9}],function(a){this.xN.qe=a;this.Fs.ri(!0,!0)},C9);a.Fs.fc(b,!0);a.Fs.fc(c,!0);a.Fs.fc(new L8,!0);b=B9("print");a.ba=new r9(b,a.Fs);$.aD(a.ba,"anychart-toolbar-print");cpa(a.ba,{id:"print",
text:b,icon:"ac-print"});a.fc(a.ba,!0);a.b.push(a.ba)},F9=function(a){for(var b,c=0;c<a.b.length;c++)switch(b=a.b[c],a.N){case "all":A9(b,!0,!0);break;case "icon":A9(b,!0,!1);break;case "text":A9(b,!1,!0)}for(c=0;c<a.g.length;c++)switch(b=a.g[c],a.N){case "text":A9(b,!1,!0);break;case "all":case "icon":A9(b,!0,!0)}},A9=function(a,b,c){var d=a.Ta(),e=a.Sg,f=e.icon,h=e.text,k=$.K(a,r9)||$.K(a,z9);if(d){e=$.Be(window.document,"I","anychart-toolbar-item-icon",d)[0];var l=$.Be(window.document,"SPAN","anychart-toolbar-item-text",
d)[0];e&&l||(e||(e=$.Ne("I",["anychart-toolbar-item-icon",f]),$.ky(e,"hidden",!0)),l||(l=$.Ne("SPAN","anychart-toolbar-item-text"),$.ef(l,h||"")),k?(d=$.Ne("DIV"),$.We(d,e,0),$.We(d,l,1),l8(a,d)):(l8(a,l),$.We(d,e,0)));$.da(c)&&$.Pf(l,c);$.da(b)&&$.Pf(e,b)}},B9=function(a){return $.ds(Kpa[a])},G9=function(){$.my.call(this)},Lpa=function(a,b){var c=a.f,d=b||a.Ta();$.Nj(d,"anychart-loader");c=c.pc("DIV","anychart-loader-rotating-cover",c.pc("DIV","anychart-loader-rotating-plane",c.pc("DIV","anychart-loader-chart-row",
c.pc("DIV",["anychart-loader-chart-col","anychart-loader-green"]),c.pc("DIV",["anychart-loader-chart-col","anychart-loader-orange"]),c.pc("DIV",["anychart-loader-chart-col","anychart-loader-red"]))));a.Si=!1;$.Pf(a.Ta(),a.Si);d.appendChild(c)},Mpa=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}},H9=function(){$.my.call(this);this.b=null;this.CS="yyyy MMM dd";this.ba=null;this.ka="From:";this.O=null;this.Ga="To:";this.Ra=!1;this.Ja=this.ya=window.NaN},Npa=function(a){a.g&&
$.xy(a.g,$.fl.anychart.format.dateTime(a.ya,a.format()));a.N&&$.xy(a.N,$.fl.anychart.format.dateTime(a.Ja,a.format()))},Opa=function(a){var b=a.f,c=a.Ta();$.Nj(c,"anychart-range-picker");a.Ra&&$.Nj(c,"anychart-range-picker-inside");a.ba=b.pc("LABEL",["anychart-inline-block","anychart-input-label"],$.fl.anychart.format.getMessage(a.ka));c.appendChild(a.ba);a.g=new $.sy;a.fc(a.g,!0);$.Oj(a.g.Ta(),["anychart-label-input"]);a.O=b.pc("LABEL",["anychart-inline-block","anychart-input-label"],$.fl.anychart.format.getMessage(a.Ga));
c.appendChild(a.O);a.N=new $.sy;a.fc(a.N,!0);$.Oj(a.N.Ta(),["anychart-label-input"]);a.b&&a.uQ(a.b.getSelectedRange())},Ppa=function(a){return a&&$.E(a.getType)&&"stock"==a.getType()},Rpa=function(a,b,c){$.pD.call(this,a,b,c);$.aD(this,"anychart-inline-block");$.aD(this,"anychart-button-standard");$.aD(this,Qpa);this.Tm(16,!0);this.Ku&=-17},I9=function(a){$.qf.call(this);this.Qb=[];Spa(this,a)},Spa=function(a,b){b&&((0,$.Qe)(b,function(a){J9(this,a,!1)},a),$.Ia(a.Qb,b))},K9=function(a,b){b!=a.OG&&
(J9(a,a.OG,!1),a.OG=b,J9(a,b,!0));a.dispatchEvent("select")},J9=function(a,b,c){b&&("function"==typeof a.wT?a.wT(b,c):"function"==typeof b.yI&&b.yI(c))},L9=function(){$.my.call(this);this.b=null;this.U=!1;this.N=null;this.O="Zoom:";this.ad=[];this.yy([{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.g=new I9;this.g.wT=this.jba},Tpa=function(a){var b=a.Ta();$.Nj(b,"anychart-range-selector");a.U&&$.Nj(b,"anychart-range-selector-inside");a.N=$.Ne("LABEL",["anychart-inline-block","anychart-input-label"],$.fl.anychart.format.getMessage(a.O));b.appendChild(a.N)},Upa=function(a){return a&&$.E(a.getType)&&"stock"==a.getType()},M9=function(){$.my.call(this);this.b=null},Vpa=function(a){var b=a.Ta();$.Nj(b,"anychart-zoom");a.g=new $.pD;a.g.Sg=
{type:"fitAll"};$.nD(a.g,"Fit All");$.aD(a.g,"anychart-zoom-zoomFitAll");$.rD(a.g,"ac ac-dot-square-o disable-selection");a.fc(a.g,!0);a.N=new $.pD;a.N.Sg={type:"zoomIn"};$.nD(a.N,"Zoom In");$.aD(a.N,"anychart-zoom-zoomIn");$.rD(a.N,"ac ac-plus disable-selection");a.fc(a.N,!0);a.O=new $.pD;a.O.Sg={type:"zoomOut"};$.nD(a.O,"Zoom Out");$.aD(a.O,"anychart-zoom-zoomOut");$.rD(a.O,"ac ac-minus disable-selection");a.fc(a.O,!0)},Wpa=function(a){return a&&$.E(a.getType)&&"map"==a.getType()};
$.JC.prototype.Dv=$.ca(34,function(a,b){var c=this.sn(a);if(c&&($.Ve(c),b))if($.z(b))$.ef(c,b);else{var d=function(a){if(a){var b=$.re(c);c.appendChild($.z(a)?b.createTextNode(a):a)}};$.A(b)?(0,$.Qe)(b,d):!$.la(b)||"nodeType"in b?d(b):(0,$.Qe)($.Ha(b),d)}});$.JC.prototype.CG=$.ca(33,function(a){if(!this.g){this.b||$.SC(this);var b=this.b,c={},d;for(d in b)c[b[d]]=d;this.g=c}a=(0,window.parseInt)(this.g[a],10);return(0,window.isNaN)(a)?0:a});
$.JC.prototype.Ck=$.ca(32,function(a,b){b.id&&k8(a,b.id);var c=this.sn(b);c&&c.firstChild?bpa(a,c.firstChild.nextSibling?$.Ha(c.childNodes):c.firstChild):a.Cd=null;var d=0,e=this.rh(),f=this.rh(),h=!1,k=!1,l=!1,m=$.Ha($.Lj(b));(0,$.Qe)(m,function(a){h||a!=e?k||a!=f?d|=this.CG(a):k=!0:(h=!0,f==e&&(k=!0));1==this.CG(a)&&$.hf(c)&&$.jf(c)&&$.gf(c,!1)},this);a.Xb=d;h||(m.push(e),f==e&&(k=!0));k||m.push(f);var p=a.ks;p&&m.push.apply(m,p);if($.hd&&!$.bd("7")){var q=$.KC(m);0<q.length&&(m.push.apply(m,q),
l=!0)}if(!h||!k||p||l)b.className=m.join(" ");return b});$.TC.prototype.Ck=$.ca(31,function(a,b){b=$.TC.u.Ck.call(this,a,b);a.zW(this.ej(b));a.gb=b.title;$.NC(a,16)&&this.tu(b,16,$.OC(a,16));return b});$.lD.prototype.Ck=$.ca(30,function(a,b){$.$C(a,!1);a.Ku&=-256;a.Tm(32,!1);if(b.disabled){var c=this.kG(1);$.Nj(b,c)}return $.lD.u.Ck.call(this,a,b)});$.JC.prototype.KG=$.ca(29,function(){return!0});
$.lD.prototype.KG=$.ca(28,function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)});$.my.prototype.Zk=$.ca(20,function(a){this.pd=a});$.sy.prototype.Zk=$.ca(19,function(a){$.sy.u.Zk.call(this,a);this.g||(this.g=a.getAttribute("label")||"");a:{var b=$.re(a);try{var c=b&&b.activeElement;break a}catch(d){}c=null}c==a&&(this.SG=!0,a=this.Ta(),$.Pj(a,"label-input-label"));$.uy()&&(this.Ta().placeholder=this.g);a=this.Ta();$.ky(a,"label",this.g)});
$.YC.prototype.Zk=$.ca(18,function(a){this.pd=a=this.g.Ck(this,a);$.MC(this.g,a,this.xG());this.g.sT(a,!1);this.Si="none"!=a.style.display});$.my.prototype.JG=$.ca(17,function(){return!0});$.YC.prototype.JG=$.ca(16,function(a){return this.g.KG(a)});$.my.prototype.js=$.ca(15,function(a){if(this.df)throw Error("Component already rendered");if(a&&this.JG(a)){this.eb=!0;var b=$.re(a);this.f&&this.f.b==b||(this.f=$.te(a));this.Zk(a);this.pg()}else throw Error("Invalid element to decorate");});
$.gx.prototype.pN=$.ca(14,function(a){return a});$.H(o8,$.qf);$.g=o8.prototype;$.g.enabled=!1;$.g.Gt=null;$.g.Fia=function(){if(this.enabled){var a=(0,$.Fn)()-this.j;0<a&&a<.8*this.f?this.Gt=this.b.setTimeout(this.g,this.f-a):(this.Gt&&(this.b.clearTimeout(this.Gt),this.Gt=null),this.dispatchEvent("tick"),this.enabled&&(this.Gt=this.b.setTimeout(this.g,this.f),this.j=(0,$.Fn)()))}};$.g.start=function(){this.enabled=!0;this.Gt||(this.Gt=this.b.setTimeout(this.g,this.f),this.j=(0,$.Fn)())};
$.g.stop=function(){this.enabled=!1;this.Gt&&(this.b.clearTimeout(this.Gt),this.Gt=null)};$.g.R=function(){o8.u.R.call(this);this.stop();delete this.b};$.H(p8,$.JC);$.ja(p8);$.g=p8.prototype;$.g.LG=function(){return"menuitem"};$.g.pc=function(a){var b=a.f.pc("DIV",$.QC(this,a).join(" "),gpa(this,a.Cd,a.f));s8(this,a,b,$.NC(a,8)||$.NC(a,16));return b};$.g.sn=function(a){return a&&a.firstChild};
$.g.Ck=function(a,b){var c=$.$e(b),d=q8(this,2);c&&$.Mj(c,d)||b.appendChild(gpa(this,b.childNodes,a.f));$.Mj(b,"anychart-option")&&(a.Tm(16,!0),a&&b&&s8(this,a,b,!0));return p8.u.Ck.call(this,a,b)};$.g.Dv=function(a,b){var c=this.sn(a),d=r8(this,a)?c.firstChild:null;p8.u.Dv.call(this,a,b);d&&!r8(this,a)&&c.insertBefore(d,c.firstChild||null)};$.g.kG=function(a){switch(a){case 2:return q8(this,0);case 16:case 8:return"anychart-option-selected";default:return p8.u.kG.call(this,a)}};
$.g.CG=function(a){var b=q8(this,0);switch(a){case "anychart-option-selected":return 16;case b:return 2;default:return p8.u.CG.call(this,a)}};$.g.rh=function(){return"anychart-menuitem"};$.H(t8,$.YC);$.g=t8.prototype;$.g.ej=function(){var a=this.Sg;return null!=a?a:this.CL()};$.g.Tm=function(a,b){t8.u.Tm.call(this,a,b);switch(a){case 8:$.OC(this,16)&&!b&&$.gD(this,!1);var c=this.Ta();c&&this&&c&&s8(this.g,this,c,b);break;case 16:(c=this.Ta())&&this&&c&&s8(this.g,this,c,b)}};$.g.CL=function(){var a=this.Cd;return $.A(a)?(a=(0,$.Wa)(a,function(a){return $.bf(a)&&($.Mj(a,"anychart-menuitem-accel")||$.Mj(a,"anychart-menuitem-mnemonic-separator"))?"":$.lf(a)}).join(""),$.lc(a)):t8.u.CL.call(this)};
$.g.Zq=function(a){var b=this.getParent();if(b){var c=b.ya;b.ya=null;if(c&&$.ea(a.clientX)&&$.ib(c,new $.gb(a.clientX,a.clientY)))return}t8.u.Zq.call(this,a)};$.g.aA=function(a){return a.keyCode==this.TM&&this.Cs(a)?!0:t8.u.aA.call(this,a)};$.g.vda=function(){return this.TM};$.WC("anychart-menuitem",function(){return new t8(null)});t8.prototype.xG=function(){return $.NC(this,16)?"menuitemcheckbox":$.NC(this,8)?"menuitemradio":t8.u.xG.call(this)};t8.prototype.getParent=function(){return $.YC.prototype.getParent.call(this)};
t8.prototype.Gi=function(){return $.YC.prototype.Gi.call(this)};$.H(u8,t8);u8.prototype.b=function(a){return $.n(a)?(this.O=a,this):this.O};u8.prototype.PD=function(a,b){this.b()&&$.n(this.getParent().Ja)?u8.u.PD.call(this,this.getParent().O,b):u8.u.PD.call(this,a,b)};$.ja(v8);$.g=v8.prototype;$.g.pc=function(a){return a.f.pc("DIV",kpa(this,a).join(" "))};$.g.pT=function(a){return"DIV"==a.tagName};$.g.oG=function(a){a:{a=$.Lj(a);for(var b=0,c=a.length;b<c;b++){var d=a[b];if(d=d in $.VC?$.VC[d]():null){a=d;break a}}a=null}return a};$.g.qT=function(a){a=a.Ta();$.Sf(a,!0,$.gd);$.hd&&(a.hideFocus=!0);var b=this.b;b&&$.iy(a,b)};$.g.VC=function(){return"anychart-container"};$.g.s0=function(){return y8};$.H(z8,$.my);var x8="horizontal",y8="vertical";$.g=z8.prototype;$.g.xU=null;$.g.Hl=null;$.g.Cv=null;$.g.ih=null;$.g.Si=!0;$.g.$z=!0;$.g.DC=!0;$.g.el=-1;$.g.Ol=null;$.g.Xt=!1;$.g.Vu=null;$.g.pc=function(){this.pd=this.Cv.pc(this)};$.g.UC=function(){return this.Ta()};$.g.JG=function(a){return this.Cv.pT(a)};$.g.Zk=function(a){this.pd=jpa(this.Cv,this,a);"none"==a.style.display&&(this.Si=!1)};
$.g.pg=function(){z8.u.pg.call(this);this.yj(function(a){a.df&&mpa(this,a)},this);var a=this.Ta();this.Cv.qT(this);this.ri(this.Si,!0);$.oy(this).ra(this,"enter",this.RG).ra(this,"highlight",this.Ida).ra(this,"unhighlight",this.Jda).ra(this,"open",this.oea).ra(this,"close",this.Hda).ra(a,"mousedown",this.Cj).ra($.re(a),"mouseup",this.aea).ra(a,["mousedown","mouseup","mouseover","mouseout","contextmenu"],this.Yda);this.DC&&lpa(this,!0)};
$.g.oh=function(){this.Gn(-1);this.Ol&&this.Ol.ml(!1);this.Xt=!1;z8.u.oh.call(this)};$.g.R=function(){z8.u.R.call(this);this.Hl&&(this.Hl.cd(),this.Hl=null);this.Cv=this.Ol=this.Vu=this.xU=null};$.g.RG=function(){return!0};$.g.Ida=function(a){var b=this.pf(a.target);if(-1<b&&b!=this.el){var c=C8(this);c&&c.Xp(!1);this.el=b;c=C8(this);this.Xt&&$.fD(c,!0);this.Ol&&c!=this.Ol&&($.NC(c,64)?c.ml(!0):this.Ol.ml(!1))}b=this.Ta();null!=a.target.Ta()&&$.ky(b,"activedescendant",a.target.Ta().id)};
$.g.Jda=function(a){a.target==C8(this)&&(this.el=-1);this.Ta().removeAttribute("aria-activedescendant")};$.g.oea=function(a){(a=a.target)&&a!=this.Ol&&a.getParent()==this&&(this.Ol&&this.Ol.ml(!1),this.Ol=a)};$.g.Hda=function(a){a.target==this.Ol&&(this.Ol=null);var b=this.Ta(),c=a.target.Ta();b&&$.OC(a.target,2)&&c&&fpa(b,c)};$.g.Cj=function(a){this.$z&&(this.Xt=!0);var b=A8(this);b&&$.hf(b)&&$.jf(b)?b.focus():a.preventDefault()};$.g.aea=function(){this.Xt=!1};
$.g.Yda=function(a){a:{var b=a.target;if(this.Vu)for(var c=this.Ta();b&&b!==c;){var d=b.id;if(d in this.Vu){b=this.Vu[d];break a}b=b.parentNode}b=null}if(b)switch(a.type){case "mousedown":b.Cj(a);break;case "mouseup":b.Zq(a);break;case "mouseover":b.co(a);break;case "mouseout":b.Gg(a);break;case "contextmenu":b.NG(a)}};$.g.ZL=function(){};$.g.YL=function(){this.Gn(-1);this.Xt=!1;this.Ol&&this.Ol.ml(!1)};
$.g.bo=function(a){return this.isEnabled()&&this.He()&&(0!=$.qy(this)||this.xU)&&this.rT(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
$.g.rT=function(a){var b=C8(this);if(b&&"function"==typeof b.bo&&b.bo(a)||this.Ol&&this.Ol!=b&&"function"==typeof this.Ol.bo&&this.Ol.bo(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case 27:if(this.DC)A8(this).blur();else return!1;break;case 36:E8(this);break;case 35:npa(this);break;case 38:if(this.ih==y8)G8(this);else return!1;break;case 37:if(this.ih==x8)$.py(this)?F8(this):G8(this);else return!1;break;case 40:if(this.ih==y8)F8(this);else return!1;break;case 39:if(this.ih==
x8)$.py(this)?G8(this):F8(this);else return!1;break;default:return!1}return!0};$.g.fc=function(a,b){z8.u.fc.call(this,a,b)};$.g.og=function(a,b,c){a.KI|=2;a.KI|=64;a.Tm(32,!1);$.$C(a,!1);var d=a.getParent()==this?this.pf(a):-1;z8.u.og.call(this,a,b,c);a.df&&this.df&&mpa(this,a);a=d;-1==a&&(a=$.qy(this));a==this.el?this.el=Math.min($.qy(this)-1,b):a>this.el&&b<=this.el?this.el++:a<this.el&&b>this.el&&this.el--};
$.g.removeChild=function(a,b){if(a=$.z(a)?$.ry(this,a):a){var c=this.pf(a);-1!=c&&(c==this.el?(a.Xp(!1),this.el=-1):c<this.el&&this.el--);(c=a.Ta())&&c.id&&this.Vu&&$.Nc(this.Vu,c.id)}a=z8.u.removeChild.call(this,a,b);$.$C(a,!0);return a};$.g.He=function(){return this.Si};$.g.ri=function(a,b){if(b||this.Si!=a&&this.dispatchEvent(a?"show":"hide")){this.Si=a;var c=this.Ta();c&&($.Pf(c,a),this.DC&&w8(A8(this),this.$z&&this.Si),b||this.dispatchEvent(this.Si?"aftershow":"afterhide"));return!0}return!1};
$.g.isEnabled=function(){return this.$z};$.g.lj=function(a){this.$z!=a&&this.dispatchEvent(a?"enable":"disable")&&(a?(this.$z=!0,this.yj(function(a){a.s5?delete a.s5:a.lj(!0)})):(this.yj(function(a){a.isEnabled()?a.lj(!1):a.s5=!0}),this.Xt=this.$z=!1),this.DC&&w8(A8(this),a&&this.Si))};$.g.Gn=function(a){(a=this.od(a))?a.Xp(!0):-1<this.el&&C8(this).Xp(!1)};$.g.WZ=function(a){return a.He()&&a.isEnabled()&&$.NC(a,2)};$.H(H8,$.JC);$.ja(H8);H8.prototype.rh=function(){return"anychart-menuheader"};$.H(opa,$.YC);$.WC("anychart-menuheader",function(){return new opa(null)});$.H(I8,$.JC);$.ja(I8);I8.prototype.pc=function(a){return a.f.pc("DIV",this.rh())};I8.prototype.Ck=function(a,b){b.id&&k8(a,b.id);if("HR"==b.tagName){var c=b;b=this.pc(a);c.parentNode&&c.parentNode.insertBefore(b,c);$.Xe(c)}else $.Nj(b,this.rh());return b};I8.prototype.Dv=function(){};I8.prototype.rh=function(){return"anychart-menuseparator"};$.H(J8,$.YC);J8.prototype.pg=function(){J8.u.pg.call(this);var a=this.Ta();$.iy(a,"separator")};$.WC("anychart-menuseparator",function(){return new J8});$.H(K8,v8);$.ja(K8);$.g=K8.prototype;$.g.pT=function(a){return"UL"==a.tagName||K8.u.pT.call(this,a)};$.g.oG=function(a){return"HR"==a.tagName?new J8:K8.u.oG.call(this,a)};$.g.Iq=function(a,b){return $.df(a.Ta(),b)};$.g.VC=function(){return"anychart-menu"};$.g.qT=function(a){K8.u.qT.call(this,a);a=a.Ta();$.ky(a,"haspopup","true")};$.H(L8,J8);$.WC("anychart-menuseparator",function(){return new J8});$.H(M8,z8);$.g=M8.prototype;$.g.PE=!0;$.g.Iq=function(a){if(this.Cv.Iq(this,a))return!0;for(var b=0,c=$.qy(this);b<c;b++){var d=this.od(b);if("function"==typeof d.Iq&&d.Iq(a))return!0}return!1};$.g.TJ=function(a){this.fc(a,!0)};$.g.Nx=function(a){return this.od(a)};$.g.hm=function(){var a=[];this.yj(function(b){a.push(b)});return a};
$.g.setPosition=function(a,b){var c=this.He();c||$.Pf(this.Ta(),!0);var d=this.Ta(),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.Ta(),!1)};$.g.ri=function(a,b,c){(b=M8.u.ri.call(this,a,b))&&a&&this.df&&this.PE&&A8(this).focus();a&&c&&$.ea(c.clientX)?this.ya=new $.gb(c.clientX,c.clientY):this.ya=null;return b};$.g.RG=function(a){this.PE&&A8(this).focus();return M8.u.RG.call(this,a)};
$.g.WZ=function(a){return a.isEnabled()&&a.He()&&$.NC(a,2)};$.g.Zk=function(a){for(var b=this.Cv,c=$.Be(this.f.b,"DIV",b.VC()+"-content",a),d=c.length,e=0;e<d;e++)ipa(b,this,c[e]);M8.u.Zk.call(this,a)};$.g.rT=function(a){var b=M8.u.rT.call(this,a);b||this.yj(function(c){!b&&c.vda&&c.TM==a.keyCode&&(this.isEnabled()&&this.Gn(this.pf(c)),b=c.bo(a))},this);return b};$.g.Gn=function(a){M8.u.Gn.call(this,a);(a=this.od(a))&&epa(a.Ta(),this.Ta())};$.H(O8,M8);O8.prototype.RG=function(){if(this.PE){var a=A8(this);0!=a.offsetWidth&&a.focus()}return!0};O8.prototype.Ja=function(){return this.O};O8.prototype.pc=function(){O8.u.pc.call(this);this.O=this.f.pc("DIV","anychart-menu-scrollable");$.We(this.Ta(),this.O,0)};O8.prototype.Gn=function(a){O8.u.Gn.call(this,a);(a=this.od(a))&&epa(a.Ta(),this.O)};R8.prototype.b=function(){};$.H(S8,R8);S8.prototype.b=function(a,b,c){Q8(this.element,this.g,a,b,void 0,c,this.N)};$.H(T8,S8);T8.prototype.G=function(){return this.j};T8.prototype.f=function(a){this.j=a};T8.prototype.b=function(a,b,c,d){var e=Q8(this.element,this.g,a,b,null,c,10,d,this.D);if(e&496){var f=U8(e,this.g);b=U8(e,b);e=Q8(this.element,f,a,b,null,c,10,d,this.D);e&496&&(f=U8(e,f),b=U8(e,b),Q8(this.element,f,a,b,null,c,this.j,d,this.D))}};$.H(V8,p8);$.ja(V8);V8.prototype.pc=function(a){var b=V8.u.pc.call(this,a);$.Nj(b,"anychart-submenu");spa(this,a,b);return b};V8.prototype.Ck=function(a,b){b=V8.u.Ck.call(this,a,b);$.Nj(b,"anychart-submenu");spa(this,a,b);var c=$.Be(window.document,"DIV","anychart-menu",b);if(c.length){var d=new M8(a.f);c=c[0];$.Pf(c,!1);a.f.b.body.appendChild(c);d.js(c);Z8(a,d)}return b};
V8.prototype.Dv=function(a,b){var c=this.sn(a),d=c&&c.lastChild;V8.u.Dv.call(this,a,b);d&&c.lastChild!=d&&$.Mj(d,"anychart-submenu-arrow")&&c.appendChild(d)};V8.prototype.WC=function(a){V8.u.WC.call(this,a);var b=a.UC(),c=$.Be(a.f.b,"SPAN","anychart-submenu-arrow",b)[0];rpa(a,c);c!=b.lastChild&&b.appendChild(c);a=a.Ta();$.ky(a,"haspopup","true")};$.H(W8,t8);$.g=W8.prototype;$.g.PG=null;$.g.zT=null;$.g.xT=!1;$.g.El=null;$.g.bM=!1;$.g.pg=function(){W8.u.pg.call(this);$.oy(this).ra(this.getParent(),"hide",this.X0);this.El&&Y8(this,this.El,!0)};$.g.oh=function(){$.oy(this).ac(this.getParent(),"hide",this.X0);this.El&&(Y8(this,this.El,!1),this.bM||(this.El.oh(),$.Xe(this.El.Ta())));W8.u.oh.call(this)};$.g.R=function(){this.El&&!this.bM&&this.El.cd();this.El=null;W8.u.R.call(this)};
$.g.Xp=function(a){W8.u.Xp.call(this,a);a||(this.PG&&$.Fj(this.PG),this.PG=$.yj(this.xl,218,this))};$.g.yT=function(){var a=this.getParent();a&&C8(a)==this&&(upa(this,!0),tpa(this))};$.g.xl=function(){var a=this.El;a&&a.getParent()==this&&(upa(this,!1),a.yj(function(a){"function"==typeof a.xl&&a.xl()}))};$.g.Bp=function(){this.PG&&$.Fj(this.PG);this.zT&&$.Fj(this.zT)};$.g.ri=function(a,b){var c=W8.u.ri.call(this,a,b);c&&!this.He()&&this.xl();return c};
$.g.bo=function(a){var b=a.keyCode,c=$.py(this)?37:39,d=$.py(this)?39:37;if(!this.xT){if(!this.isEnabled()||b!=c&&b!=this.TM)return!1;this.yT();E8(X8(this));this.Bp()}else if(!X8(this).bo(a))if(b==d)this.xl();else return!1;a.preventDefault();return!0};$.g.Oda=function(){if(this.El.getParent()==this){this.Bp();var a=this.Gi();a.Gn(a.pf(this));tpa(this)}};$.g.X0=function(a){a.target==this.Gi()&&(this.xl(),this.Bp())};
$.g.co=function(a){this.isEnabled()&&(this.Bp(),this.zT=$.yj(this.yT,218,this));W8.u.co.call(this,a)};$.g.Cs=function(a){this.Bp();if($.NC(this,8)||$.NC(this,16))return W8.u.Cs.call(this,a);this.yT();return!0};$.g.Nx=function(a){return X8(this).od(a)};$.g.hm=function(){return X8(this).hm()};$.g.Iq=function(a){return X8(this).Iq(a)};$.WC("anychart-submenu",function(){return new W8(null)});$.H($8,p8);$.ja($8);$.g=$8.prototype;$.g.pc=function(a){var b=$8.u.pc.call(this,a);$.Nj(b,"anychart-submenu");vpa(this,a,b);return b};$.g.Ck=function(a,b){b=$8.u.Ck.call(this,a,b);$.Nj(b,"anychart-submenu");vpa(this,a,b);var c=$.Be(window.document,"div","anychart-menu",b);if(c.length){var d=new O8(a.f);c=c[0];$.Pf(c,!1);a.f.b.body.appendChild(c);d.js(c);Z8(a,d)}return b};
$.g.Dv=function(a,b){var c=this.sn(a),d=c&&c.lastChild;$8.u.Dv.call(this,a,b);d&&c.lastChild!=d&&$.Mj(d,"anychart-submenu-arrow")&&c.appendChild(d)};$.g.WC=function(a){$8.u.WC.call(this,a);var b=a.UC(),c=$.Be(a.f.b,"span","anychart-submenu-arrow",b)[0];c.innerHTML="&nbsp;";c!=b.lastChild&&b.appendChild(c);a=a.Ta();$.ky(a,"haspopup","true")};$.g.sn=function(a){a=a&&a.firstChild;return"I"==a.tagName?a.nextSibling:a};$.H(a9,t8);$.g=a9.prototype;$.g.gF=null;$.g.xQ=null;$.g.vQ=!1;$.g.ul=null;$.g.UJ=!1;$.g.pg=function(){a9.u.pg.call(this);$.oy(this).ra(this.getParent(),"hide",this.uZ);this.ul&&c9(this,this.ul,!0)};$.g.oh=function(){$.oy(this).ac(this.getParent(),"hide",this.uZ);this.ul&&(c9(this,this.ul,!1),this.UJ||(this.ul.oh(),$.Xe(this.ul.Ta())));a9.u.oh.call(this)};$.g.R=function(){this.b=null;this.ul&&!this.UJ&&this.ul.cd();this.ul=null;a9.u.R.call(this)};
$.g.Xp=function(a){a9.u.Xp.call(this,a);a||(this.gF&&$.Fj(this.gF),this.gF=$.yj(this.xl,218,this))};$.g.wQ=function(){var a=this.getParent();a&&C8(a)==this&&(xpa(this,!0),wpa(this))};$.g.xl=function(){var a=this.ul;a&&a.getParent()==this&&(xpa(this,!1),a.yj(function(a){"function"==typeof a.xl&&a.xl()}))};$.g.Bp=function(){this.gF&&$.Fj(this.gF);this.xQ&&$.Fj(this.xQ)};$.g.ri=function(a,b){var c=a9.u.ri.call(this,a,b);c&&!this.He()&&this.xl();return c};
$.g.bo=function(a){var b=a.keyCode,c=$.py(this)?37:39,d=$.py(this)?39:37;if(!this.vQ){if(!this.isEnabled()||b!=c&&b!=this.TM)return!1;this.wQ();E8(b9(this));this.Bp()}else if(!b9(this).bo(a))if(b==d)this.xl();else return!1;a.preventDefault();return!0};$.g.mba=function(){if(this.ul.getParent()==this){this.Bp();var a=this.Gi();a.Gn(a.pf(this));wpa(this)}};$.g.uZ=function(a){a.target==this.Gi()&&(this.xl(),this.Bp())};
$.g.co=function(a){this.isEnabled()&&(this.Bp(),this.xQ=$.yj(this.wQ,218,this));a9.u.co.call(this,a)};$.g.Cs=function(a){this.Bp();if($.NC(this,8)||$.NC(this,16))return a9.u.Cs.call(this,a);this.wQ();return!0};$.g.TJ=function(a){b9(this).fc(a,!0)};$.g.Nx=function(a){return b9(this).od(a)};$.g.Iq=function(a){return b9(this).Iq(a)};$.H(e9,R8);e9.prototype.b=function(a,b,c,d){var e=$.re(a);var f=e.body;e=e.documentElement;e=new $.gb(f.scrollLeft||e.scrollLeft,f.scrollTop||e.scrollTop);f=this.g.x+e.x;e=this.g.y+e.y;var h=ppa(a);f-=h.x;e-=h.y;P8(new $.gb(f,e),a,b,c,null,null,d)};$.H(f9,e9);f9.prototype.j=0;f9.prototype.f=function(a){this.j=a};f9.prototype.b=function(a,b,c,d){var e=$.Cf(a);e=n8(e);var f=$.Ge($.te(a).b);f=new $.gb(this.g.x+f.scrollLeft,this.g.y+f.scrollTop);var h=b,k=P8(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=P8(f,a,h,c,e,10,d);0!=(k&496)&&P8(f,a,b,c,e,this.j,d)}};$.H(ypa,T8);$.H(g9,M8);$.g=g9.prototype;$.g.Zk=function(a){g9.u.Zk.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.uT(this.f.Ta(a),1)};$.g.pg=function(){g9.u.pg.call(this);this.g.forEach(this.FZ,this);var a=$.oy(this);a.ra(this,"action",this.nga);a.ra(this.f.b,"mousedown",this.wga,!0)};
$.g.uT=function(a,b,c,d,e){var f;(f=!a)||(f=$.oa(a),f=!$.FB(this.g.f,f));f&&(a?(b={pd:a,M4:b,Afa:c,kS:d?"contextmenu":"mousedown",Mc:e},this.g.set($.oa(a),b)):b=null,this.df&&this.FZ(b),a=$.qa(this.Cga,a),this.Ta()&&$.oy(this).ra(this.Ta(),"keydown",a))};$.g.Cga=function(a,b){if(27==b.keyCode)a.focus();else{var c=this.od(this.el);if(c){c=c.Ta();var d=new $.xd(b.dl,c);d.target=c;if(32==b.keyCode||13==b.keyCode)$.Ad(c)?$.rf(c,"keydown",!1,d):$.$d(c,"keydown",!1,d);32==b.keyCode&&this.Oc()}}};
$.g.FZ=function(a){$.oy(this).ra(a.pd,a.kS,this.T2);"contextmenu"!=a.kS&&$.oy(this).ra(a.pd,"keydown",this.Sga)};$.g.vT=function(a){var b;(b=!a)||(b=$.oa(a),b=!$.FB(this.g.f,b));if(b)throw Error("Menu not attached to provided element, unable to detach.");a=$.oa(a);this.df&&(b=this.g.get(a),$.oy(this).ac(b.pd,b.kS,this.T2));this.g.remove(a)};$.g.Oc=function(){this.He()&&(this.ri(!1),this.He()||(0,$.Fn)())};$.g.nga=function(){this.Oc()};$.g.T2=function(a){Apa(this,a)};
$.g.Sga=function(a){32!=a.keyCode&&13!=a.keyCode&&40!=a.keyCode||Apa(this,a);40==a.keyCode&&E8(this)};$.g.wga=function(a){this.He()&&!this.Iq(a.target)&&this.Oc()};$.g.YL=function(a){g9.u.YL.call(this,a);this.Oc()};$.g.R=function(){g9.u.R.call(this);this.g&&(this.g.clear(),delete this.g)};$.H(h9,g9);$.g=h9.prototype;$.g.RG=function(){if(this.PE){var a=A8(this);0!=a.offsetWidth&&a.focus()}return!0};$.g.oL=!0;$.g.enabled=function(a){return $.n(a)?(this.oL!=a&&(this.oL=a),this):this.oL};$.g.tZ=function(a){a&&(this.b?$.Aa(this.b,a)||this.b.push(a):this.b=[a]);this.Ta()&&this.b&&this.b.length&&$.Oj(this.Ta(),this.b)};$.g.fba=function(a){a&&this.b&&$.Fa(this.b,a)&&(this.Ta()&&$.Pj(this.Ta(),a),this.b.length||(this.b=null))};
$.g.items=function(a){return null!=a?(this.R1(function(){return a}),a.length||this.Oc(),this.Sg=a,this):this.Sg};$.g.R1=function(a){return $.E(a)?(this.ga!=a&&(this.ga=a,this.ka=!1),this):this.ga};$.g.eba=function(a){return $.n(a)?(this.U!=a&&(this.U=a),this):this.U};
$.g.QG=function(a){this.oL&&(this.Ba&&this.Ba.Xa().Oc(),this.qK=a.target,Bpa(this,a,this.qK),$.D(this.items())&&!$.Jc(this.items())&&($.E(a.getOriginalEvent)?a.getOriginalEvent().preventDefault():a.preventDefault(),this.ij&&$.E(this.ij.getType)&&"map"==this.ij.getType()?(0,window.setTimeout)(this.Ga,0,a.clientX,a.clientY):this.show(a.clientX,a.clientY)))};$.g.Fd=function(a){h9.u.Fd.call(this,a);this.b&&this.b.length&&$.Oj(this.Ta(),this.b)};
$.g.uT=function(a,b){a&&!this.N&&(this.N=!0,$.D(a)&&$.E(a.listen)?(this.ij=a,this.ij.listen("contextmenu",this.QG,b,this)):$.oy(this).ra(a,"contextmenu",this.QG,b));return this};$.g.vT=function(a,b){this.N&&(null!=this.ij&&$.E(this.ij.unlisten)?this.N=!this.ij.unlisten("contextmenu",this.QG,b,this):$.Vd(a,"contextmenu",this.QG,b,this)&&($.oy(this).ac(a,"contextmenu",this.QG,b),this.N=!1),this.N||this.Oc());return this};
$.g.show=function(a,b){if(this.ka&&!$.Jc(this.items())||Bpa(this,null,this.ij)){var c=this.ij?this.ij.P().Ha():null;c=c&&c.fullScreen()?c.Bl():$.Bp.body;this.ba.parentNode!=c&&c.appendChild(this.ba);for(this.df||this.Fd(this.ba);this.j&&0!=this.j.length;)c=this.od(0),this.removeChild(c),c.cd();Cpa(this,this,this.items());c=new f9(a,b);c.f(197);zpa(this,c)}};$.g.Uea=function(a,b){return $.ea(a.index)?$.ea(b.index)?a.index-b.index||1:-1:1};
$.g.R=function(){null!=this.ij&&this.vT();this.ba=this.b=this.ij=this.qK=null;h9.u.R.call(this)};$.g.F=function(){var a={};a.enabled=this.enabled();this.b&&(a.extraClassNames=$.Ha(this.b));return a};$.g.K=function(a){$.n(a)&&!this.Ce(a)&&$.D(a)&&this.X(a);return this};$.g.Od=function(a){return $.da(a)||null===a?{enabled:!!a}:null};$.g.Ce=function(a){return(a=this.Od(a))?(this.enabled(a.enabled),!0):!1};
$.g.X=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.tZ(a[b])};var N9=h9.prototype;$.F("anychart.ui.contextMenu",function(){return new h9});N9.serialize=N9.F;N9.setup=N9.K;N9.enabled=N9.enabled;N9.addClassName=N9.tZ;N9.removeClassName=N9.fba;N9.attach=N9.uT;N9.detach=N9.vT;N9.listen=N9.ra;N9.unlisten=N9.ac;N9.show=N9.show;N9.hide=N9.Oc;N9.items=N9.items;N9.itemsProvider=N9.R1;N9.itemsFormatter=N9.eba;$.H(d9,K8);$.ja(d9);d9.prototype.VC=function(){return"anychart-toolbar-menu"};$.H(j9,$.TC);$.ja(j9);$.g=j9.prototype;$.g.pc=function(a){var b=$.QC(this,a);b=a.f.pc("DIV","anychart-inline-block "+b.join(" "),this.sK(a.Cd,a.f));$.UC(b,a.gb);return b};$.g.LG=function(){return"button"};$.g.sn=function(a){return a&&a.firstChild&&a.firstChild.firstChild};$.g.sK=function(a,b){return b.pc("DIV","anychart-inline-block "+(this.rh()+"-outer-box"),b.pc("DIV","anychart-inline-block "+(this.rh()+"-inner-box"),a))};$.g.KG=function(a){return"DIV"==a.tagName};
$.g.Ck=function(a,b){Epa(b,!0);Epa(b,!1);a:{var c=a.f.x0(b);var d=this.rh()+"-outer-box";if(c&&$.Mj(c,d)&&(c=a.f.x0(c),d=this.rh()+"-inner-box",c&&$.Mj(c,d))){c=!0;break a}c=!1}c||b.appendChild(this.sK(b.childNodes,a.f));$.Oj(b,["anychart-inline-block",this.rh()]);return j9.u.Ck.call(this,a,b)};$.g.rh=function(){return"anychart-custom-button"};$.H(k9,j9);$.ja(k9);$.g=k9.prototype;$.g.sn=function(a){return k9.u.sn.call(this,a&&a.firstChild)};$.g.Ck=function(a,b){var c=$.Be(window.document,"*","anychart-menu",b)[0];if(c){$.Pf(c,!1);$.re(c).body.appendChild(c);var d=new M8;d.js(c);n9(a,d)}return k9.u.Ck.call(this,a,b)};$.g.sK=function(a,b){return k9.u.sK.call(this,[b.pc("DIV","anychart-inline-block "+(this.rh()+"-caption"),a),this.m_(b)],b)};$.g.m_=function(a){return a.pc("DIV","anychart-inline-block "+(this.rh()+"-dropdown")," ")};
$.g.rh=function(){return"anychart-menu-button"};$.H(l9,k9);$.ja(l9);l9.prototype.rh=function(){return"anychart-toolbar-menu-button"};$.H(m9,l9);$.ja(m9);m9.prototype.m_=function(a){a=a.pc("DIV","anychart-inline-block "+(this.rh()+"-dropdown"));a.innerHTML="&nbsp;";return a};$.H(o9,$.mD);$.g=o9.prototype;$.g.tM=!1;$.g.pg=function(){o9.u.pg.call(this);Gpa(this,!0);this.b&&p9(this,this.b,!0);$.ky(this.pd,"haspopup",!!this.b)};$.g.oh=function(){o9.u.oh.call(this);Gpa(this,!1);if(this.b){this.ml(!1);this.b.oh();p9(this,this.b,!1);var a=this.b.Ta();a&&$.Xe(a)}};$.g.R=function(){o9.u.R.call(this);this.b&&(this.b.cd(),delete this.b);delete this.Ja;this.O.cd()};$.g.Cj=function(a){o9.u.Cj.call(this,a);this.$p()&&(this.ml(!$.OC(this,64),a),this.b&&(this.b.Xt=$.OC(this,64)))};
$.g.Zq=function(a){o9.u.Zq.call(this,a);this.b&&!this.$p()&&(this.b.Xt=!1)};$.g.Cs=function(){$.fD(this,!1);return!0};$.g.$da=function(a){this.b&&this.b.He()&&!this.Iq(a.target)&&this.ml(!1)};$.g.Iq=function(a){return a&&$.df(this.Ta(),a)||this.b&&this.b.Iq(a)||!1};
$.g.aA=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.He()){var b=13==a.keyCode||32==a.keyCode,c=this.b.bo(a);return 27==a.keyCode||b?(this.ml(!1),!0):c}return 40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.ml(!0,a),!0):!1};$.g.lea=function(){this.ml(!1)};$.g.mea=function(){this.$p()||this.ml(!1)};$.g.$L=function(a){this.tM||this.ml(!1);o9.u.$L.call(this,a)};
$.g.Nx=function(a){return this.b?this.b.od(a):null};$.g.ri=function(a,b){var c=o9.u.ri.call(this,a,b);c&&!this.He()&&this.ml(!1);return c};$.g.lj=function(a){o9.u.lj.call(this,a);this.isEnabled()||this.ml(!1)};
$.g.ml=function(a,b){o9.u.ml.call(this,a);if(this.b&&$.OC(this,64)==a){if(a)this.b.df||this.b.Fd(),this.ya=n8(this.Ta()),this.ga=$.Of(this.Ta()),Fpa(this),!b||40!=b.keyCode&&38!=b.keyCode?this.b.Gn(-1):E8(this.b);else{$.fD(this,!1);this.b.Xt=!1;var c=this.Ta();c&&($.ky(c,"activedescendant",""),$.ky(c,"owns",""));null!=this.ba&&(this.ba=void 0,(c=this.b.Ta())&&$.Hf(c,"",""))}this.b.ri(a,!1,b);if(!this.fd){c=$.oy(this);var d=a?c.ra:c.ac;d.call(c,this.f.b,"mousedown",this.$da,!0);this.tM&&d.call(c,this.b,
"blur",this.mea);d.call(c,this.O,"tick",this.Tga);a?this.O.start():this.O.stop()}}this.b&&this.b.Ta()&&this.b.pd.removeAttribute("aria-hidden")};$.g.Tga=function(){var a=$.Of(this.Ta()),b=n8(this.Ta()),c;(c=!$.ob(this.ga,a))||(c=this.ya,c=!(c==b||c&&b&&c.top==b.top&&c.right==b.right&&c.bottom==b.bottom&&c.left==b.left));c&&(this.ga=a,this.ya=b,Fpa(this))};$.g.Mda=function(a){(a=a.target.Ta())&&Hpa(this,a)};$.g.iea=function(a){$.NC(this,32)&&this.Ta()&&this.b&&this.b.He()&&a.stopPropagation()};
$.g.Nda=function(){if(!C8(this.b)){var a=this.Ta();$.ky(a,"activedescendant","");$.ky(a,"owns","")}};$.g.Lda=function(a){if($.OC(this,64)&&a.target instanceof t8){a=a.target;var b=a.Ta();a.He()&&$.OC(a,2)&&null!=b&&Hpa(this,b)}};$.WC("anychart-menu-button",function(){return new o9(null)});$.H(q9,o9);$.WC("anychart-toolbar-menu-button",function(){return new q9(null)});$.H(r9,q9);r9.prototype.aA=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||n9(this,new M8(this.f,this.Ga));return(b=this.b||null)&&b.He()?b.bo(a):40==a.keyCode||38==a.keyCode||32==a.keyCode||13==a.keyCode?(this.ml(!0,a),!0):!1};$.H(s9,I8);$.ja(s9);s9.prototype.pc=function(a){return a.f.pc("DIV",$.QC(this,a).join(" ")+" anychart-inline-block"," ")};s9.prototype.Ck=function(a,b){b=s9.u.Ck.call(this,a,b);$.Nj(b,"anychart-inline-block");return b};s9.prototype.rh=function(){return"anychart-toolbar-separator"};$.H(t9,s9);$.ja(t9);t9.prototype.pc=function(a){a=a.f.pc("DIV",$.QC(this,a).join(" ")+" anychart-inline-block");a.innerHTML="&nbsp;";return a};$.H(u9,J8);$.H(v9,v8);$.ja(v9);v9.prototype.oG=function(a){return"HR"==a.tagName?new J8(s9.vd()):v9.u.oG.call(this,a)};v9.prototype.VC=function(){return"anychart-toolbar"};v9.prototype.s0=function(){return x8};$.H(w9,z8);w9.prototype.ZL=function(a){w9.u.ZL.call(this,a);this.Xt||E8(this)};$.H(x9,w9);x9.prototype.P=function(a){return $.n(a)?(a=$.ue(window.document,a),this.Kc!=a&&(this.oh(),this.Kc=a,this.$()),this):this.Kc};x9.prototype.target=function(a){return $.n(a)?(this.ka=a,this):this.ka};x9.prototype.$=function(){if(this.Kc)if(this.Kc.firstChild){var a=this.Kc.firstChild;this.PD(a.parentNode,a)}else this.Fd(this.Kc);else $.el(13);return this};$.H(y9,j9);$.ja(y9);y9.prototype.rh=function(){return"anychart-toolbar-button"};$.H(z9,$.mD);$.WC("anychart-toolbar-button",function(){return new z9(null)});$.H(E9,x9);var Kpa={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"},D9="landscape",C9="visible";$.g=E9.prototype;$.g.wba=function(a){return $.n(a)?(a!=this.N&&(this.N=a,F9(this)),this):this.N};
$.g.Qda=function(a){a=a.target.Sg;var b=a.yt,c=a&&a.CZ||[];a=this.target();if("print"==b)if(b=this.xN.qe,c=[c[0],"landscape"==this.xN.pe],$.E(this.U))c.push(b),this.U.apply(null,$.Ga([a],c));else if(a){var d=a.print;if($.E(d)){var e=a.Sf().scale().cj();"full"==b&&a.Cm();d.apply(a,c);a.Ui(e.min,e.max)}else $.el(14,null,["print"])}else $.el(15);else a?(d=a[b],$.E(d)?d.apply(a,c):$.el(14,null,[b])):$.el(15)};
$.g.m3=function(a){if($.n(a)){for(this.ga=a;3<$.qy(this.Fs);)this.Fs.jj(3,!0);this.oh();this.$();return this}return this.ga};$.g.$=function(){F9(this);if(!this.df){for(var a=this.m3(),b=0;b<a.length;b++){var c=a[b],d=new u8("us-letter"==c?"US Letter":$.Ac(c));d.Sg={yt:"print",CZ:[c]};$.aD(d,"anychart-toolbar-print-"+c);this.Fs.fc(d,!0)}return E9.u.$.call(this)}return this};$.g.rha=function(a){return $.n(a)?(this.U=a,this):this.U};
$.g.Uia=function(){for(var a=this.b,b=0;b<a.length;b++){var c=a[b],d=c.Sg,e=B9(d.id);e&&(l8(c,e),d.text=e)}c=this.Fs.od(0);a=this.Fs.od(1);l8(c,B9("changeLayout"));l8(a,B9("changeRange"));b=c.Nx(0);c=c.Nx(1);l8(b,B9("landscape"));l8(c,B9("portrait"));b=a.Nx(0);a=a.Nx(1);l8(b,B9("allDates"));l8(a,B9("visibleDates"));F9(this);return this};$.F("anychart.ui.ganttToolbar",function(){return new E9});var O9=E9.prototype;O9.draw=O9.$;O9.printPaperSizes=O9.m3;O9.container=O9.P;O9.target=O9.target;
O9.buttonsMode=O9.wba;O9.printFunction=O9.rha;O9.updateLocalizedCaptions=O9.Uia;$.H(G9,$.my);$.g=G9.prototype;$.g.Si=!1;$.g.visible=function(a){if($.n(a)){if(a==this.Si)return this;a?(this.df||this.Fd(),this.Si=!0):this.Si=!1;$.Pf(this.Ta(),this.Si);return this}return this.Si};$.g.pc=function(){G9.u.pc.call(this);Lpa(this)};$.g.Zk=function(a){G9.u.Zk.call(this,a);Lpa(this,a)};$.g.pg=function(){G9.u.pg.call(this)};$.g.oh=function(){G9.u.oh.call(this)};$.g.R=function(){G9.u.R.call(this)};var P9=G9.prototype;$.F("anychart.ui.preloader",function(){return new G9});P9.render=P9.Fd;
P9.decorate=P9.js;P9.visible=P9.visible;$.H(H9,$.my);$.g=H9.prototype;$.g.target=function(a){this.b=a};$.g.uQ=function(a){this.ya=a.firstVisible;this.Ja=a.lastVisible;Npa(this)};$.g.format=function(a){$.n(a)&&(this.CS=a,Npa(this));return this.CS||$.fl.anychart.format.outputDateTimeFormat()};$.g.pc=function(){H9.u.pc.call(this);Opa(this)};$.g.gba=function(a){this.Fd(a)};$.g.Zk=function(a){Ppa(a)?this.Fd(a):(H9.u.Zk.call(this,a),Opa(this))};
$.g.ida=function(a){return $.n(a)?(this.ka!=a&&(this.ka=a,this.ba&&$.ef(this.ba,$.fl.anychart.format.getMessage(this.ka))),this):this.ka};$.g.Nia=function(a){return $.n(a)?(this.Ga!=a&&(this.Ga=a,this.O&&$.ef(this.O,$.fl.anychart.format.getMessage(this.Ga))),this):this.Ga};
$.g.Fd=function(a){a=a||this.b;if(Ppa(a)){this.target(a);this.Ra=!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?H9.u.Fd.call(this,a):(a=(0,$.pa)(this.gba,this,a||this.b),this.b.ve("chartdraw",a,!1,this))};
$.g.pg=function(){H9.u.pg.call(this);if(this.b){if(this.Ra){var a=($.Wf(this.Ta()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.uQ,!1,this);a=$.oy(this);a.ra(this.g.Ta(),"blur",this.vV);a.ra(this.N.Ta(),"blur",this.vV);this.U||(this.U=new $.zp(this.g.Ta()),a.ra(this.U,"key",this.fN));this.ga||(this.ga=new $.zp(this.N.Ta()),a.ra(this.ga,"key",this.fN))}};
$.g.vV=function(){var a=this.g.ej(),b=this.N.ej(),c=this.format();a=$.fl.anychart.format.parseDateTime(a,c);b=$.fl.anychart.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.ya||d!=this.Ja){this.ya=c;this.Ja=d;this.b.selectRange(a,b,!0);return}}$.xy(this.g,$.fl.anychart.format.dateTime(this.ya,this.format()));$.xy(this.N,$.fl.anychart.format.dateTime(this.Ja,this.format()))};
$.g.fN=function(a){if(13==a.keyCode){a=a.target.T1.Ta();var b;a:{var c=b=0;if(Mpa(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.vV();Mpa(a)?(a.selectionStart=b,a.selectionEnd=b):$.hd&&!$.bd("9")&&("textarea"==a.type&&(b=$.jc(a.value.substring(0,b)).length),a=a.createTextRange(),a.collapse(!0),a.move("character",b),a.select())}};$.g.oh=function(){H9.u.oh.call(this)};
$.g.R=function(){this.b.unlisten("selectedrangechange",this.uQ,!1,this);this.b=null;this.O&&($.Xe(this.ba),this.ba=null);this.O&&($.Xe(this.O),this.O=null);this.U&&($.oy(this).ac(this.U,"key",this.fN),this.U.cd(),this.U=null);this.ga&&($.oy(this).ac(this.ga,"key",this.fN),this.ga.cd(),this.ga=null);H9.u.R.call(this)};var Q9=H9.prototype;$.F("anychart.ui.rangePicker",function(){return new H9});Q9.render=Q9.Fd;Q9.decorate=Q9.js;Q9.target=Q9.target;Q9.format=Q9.format;Q9.dispose=Q9.cd;
Q9.getElement=Q9.Ta;Q9.toLabelText=Q9.Nia;Q9.fromLabelText=Q9.ida;$.H(Rpa,$.pD);var Qpa="anychart-button-toggle";$.H(I9,$.qf);$.g=I9.prototype;$.g.OG=null;$.g.wT=null;$.g.Nx=function(a){return this.Qb[a]||null};$.g.hm=function(){return $.Ha(this.Qb)};$.g.clear=function(){var a=this.Qb;if(!$.A(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0;this.OG=null};$.g.R=function(){I9.u.R.call(this);delete this.Qb;this.OG=null};$.H(L9,$.my);$.g=L9.prototype;$.g.target=function(a){this.b=a};$.g.SJ=function(a){if(a.firstSelected==a.firstKey&&a.lastSelected==a.lastKey&&(a=$.ry(this,"max"))){K9(this.g,a);return}K9(this.g,null)};$.g.jba=function(a,b){a&&$.gD(a,b)};
$.g.yy=function(a){$.n(a)&&$.A(a)&&(this.ad=(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=$.$k(c.anchor),a.push(c)):b?(c.type="range",a.push(c)):"range"!=c.type&&a.push(c);return a},[]),this.update());return this.ad};$.g.pc=function(){L9.u.pc.call(this);Tpa(this)};$.g.Zk=function(a){Upa(a)?this.Fd(a):(L9.u.Zk.call(this,a),Tpa(this))};
$.g.update=function(){this.df&&(this.Ki(!0),this.g.clear(),(0,$.Qe)(this.ad,function(a,b){var c=new Rpa(a.text);c.Sg=a;"max"==a.type&&k8(c,"max");c.Ku&=-17;var d=this.g,e=d.Qb.length;c&&(J9(d,c,!1),$.Da(d.Qb,c,e));b?b==this.ad.length-1?$.oD(c,1):$.oD(c,3):$.oD(c,2);this.fc(c,!0)},this))};$.g.kja=function(a){return $.n(a)?(this.O!=a&&(this.O=a,this.N&&$.ef(this.N,$.fl.anychart.format.getMessage(this.O))),this):this.O};$.g.hba=function(a){this.Fd(a)};
$.g.Fd=function(a){a=a||this.b;if(Upa(a)){this.target(a);this.U=!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?(L9.u.Fd.call(this,a),(a=this.b?this.b.pG():null)&&this.SJ({firstKey:a.zn,lastKey:a.cp,firstSelected:a.Wr,lastSelected:a.Vv})):(a=(0,$.pa)(this.hba,this,a||this.b),this.b.ve("chartdraw",a,!1,this))};
$.g.js=function(a){L9.u.js.call(this,a);this.b&&(a=this.b?this.b.pG():null)&&this.SJ({firstKey:a.zn,lastKey:a.cp,firstSelected:a.Wr,lastSelected:a.Vv})};$.g.pg=function(){L9.u.pg.call(this);if(this.b){this.update();if(this.U){var a=($.Wf(this.Ta()).height||21)+15,b=this.b.padding().bottom();a>b&&this.b.padding().bottom(b+a)}this.b.listen("selectedrangechange",this.SJ,!1,this);$.oy(this).ra(this,"action",this.iba)}};
$.g.iba=function(a){var b=a.target.Sg,c=$.xk($.jE,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=$.fl.anychart.format.parseDateTime(b.startDate),b=$.fl.anychart.format.parseDateTime(b.endDate),c&&b&&this.b.selectRange(c,b,!0));K9(this.g,a.target)};$.g.oh=function(){L9.u.oh.call(this)};
$.g.R=function(){this.b.unlisten("selectedrangechange",this.SJ,!1,this);this.b=null;this.g.clear();this.N&&($.Xe(this.N),this.N=null);L9.u.R.call(this)};var R9=L9.prototype;$.F("anychart.ui.rangeSelector",function(){return new L9});R9.render=R9.Fd;R9.decorate=R9.js;R9.target=R9.target;R9.ranges=R9.yy;R9.dispose=R9.cd;R9.getElement=R9.Ta;R9.zoomLabelText=R9.kja;$.H(M9,$.my);$.g=M9.prototype;$.g.target=function(a){this.b=a};$.g.pc=function(){M9.u.pc.call(this);Vpa(this)};$.g.Zk=function(a){Wpa(a)?this.Fd(a):(M9.u.Zk.call(this,a),Vpa(this))};$.g.kba=function(a){this.Fd(a)};
$.g.Fd=function(a){a=a||this.b;var b;(b=Wpa(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?M9.u.Fd.call(this,a):(a=(0,$.pa)(this.kba,this,a||this.b),this.b.listenOnce("chartdraw",a,!1,this))};$.g.pg=function(){M9.u.pg.call(this);this.b&&$.oy(this).ra(this,"action",this.lba)};
$.g.lba=function(a){a=a.target.Sg;this.b.pl=100;var b=this.b.getCurrentScene();switch(a.type){case "fitAll":b.fitAll();break;case "zoomIn":b.zoomIn();break;case "zoomOut":b.zoomOut()}};$.g.oh=function(){M9.u.oh.call(this)};$.g.R=function(){this.b=null;this.g.cd();this.g=null;this.N.cd();this.N=null;this.O.cd();this.O=null;M9.u.R.call(this)};var S9=M9.prototype;$.F("anychart.ui.zoom",function(){return new M9});S9.render=S9.Fd;S9.decorate=S9.js;S9.target=S9.target;S9.dispose=S9.cd;}).call(this,$)}
