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: tree-data, color-scales, theme-color-scales, treemap-part, theme-treemap
   * Version: 8.0.1.1726 (2017-10-16)
   * License: http://www.anychart.com/buy/
   * Contact: sales@anychart.com
   * Copyright: AnyChart.com 2017. 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);w.acgraph.isNodeJS=true;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');$={};_={}}if(!_.tree_data){_.tree_data=1;(function($){var $C,aD,bD,cD,kD,lD,mD,nD,gD,oD,jD,pD,qD,rD;$.ZC=function(a,b){if($.n(b)){if($.B(b))if($.n(void 0)){if(b in a.b)a[b](void 0)}else return a.Zd(b);else if($.A(b))for(var c in b)if(c in a.b)a[c](b[c]);return a}c={};for(var d in a.b)if(d in a.b){var e=a.N(d);$.n(e)&&(c[d]=a.N(d))}return c};$C=function(){this.b=[]};aD=function(a){this.B=a;this.g=[-1];this.b=void 0;this.o=this.lS;this.j=this.nS;this.J=-1};
  bD=function(a,b){if(!b.length||!a.g.length)return null;var c=b[++a.g[a.g.length-1]];if(!c)return a.g.pop(),bD(a,cD(a));var d=b;c.cc()&&a.j(c)&&(a.g.push(-1),d=c.ht());return a.o(c)?c:bD(a,d)};cD=function(a){var b=a.B.ht();a.J=0;if(1<a.g.length)for(var c=0;c<a.g.length-1;c++)b=b[a.g[c]],a.J=c+1,b=b.ht();return b};
  $.dD=function(a,b){$.hq.call(this);this.b=a;this.g=b;this.b.pa("treeItemMove",this.gF,!1,this);this.b.pa("treeItemUpdate",this.gF,!1,this);this.b.pa("treeItemCreate",this.gF,!1,this);this.b.pa("treeItemRemove",this.gF,!1,this);$.S(this.b,this.qca,this)};$.eD=function(a,b,c){this.zo=a;this.b=c;this.Gi=b;this.F={}};$.fD=function(a,b,c){$.hq.call(this);this.j=[];this.b={};this.B={};this.F=this.Nv();this.g=null;this.o=!0;this.JJ("id",!0);a&&this.bJ(a,b,c)};
  $.hD=function(a){var b=new $.fD;$.T(b);if("index"in a)for(var c=a.index,d=0,e=c.length;d<e;d++)b.JJ(c[d]);if("children"in a)for(c=a.children,d=0,e=c.length;d<e;d++)b.cb(gD(b,c[d]));b.ka(!1);return"mapping"in a?b.qe(a.mapping):b};kD=function(a,b){var c=new $.iD(a,b),d=b.children;if(d)for(var e=0,f=d.length;e<f;e++)jD(c,kD(a,d[e]));return c};
  lD=function(a,b,c,d){if(c){if(d)for(var e=b.cc();e--;)lD(a,b.Cc(e),c,d);if(d=a.b[c])e={key:b.get(c),value:b},a.B[c]&&(e.key=""+e.key),a=$.ub(d,e,a.OC),0>a?$.hb(d,e,~a):(a=d[a],$.y(a.value)?$.fb(a.value,b):a.value!=b&&(a.value=[a.value],a.value.push(b)))}else for(e in a.b)lD(a,b,e,d)};
  mD=function(a,b,c,d){if(c){if(d)for(var e=b.cc();e--;)mD(a,b.Cc(e),c,d);if(d=a.b[c])e={key:b.get(c)},a.B[c]&&(e.key=""+e.key),e=$.ub(d,e,a.OC),(d=d[e])&&($.y(d.value)&&1<d.value.length?$.jb(d.value,b):$.ib(a.b[c],e))}else for(e in a.b)mD(a,b,e,d)};nD=function(a,b){lD(a,b);b.G("nc",!0);for(var c=0;c<b.cc();c++)nD(a,b.Cc(c))};$.iD=function(a,b){this.b=a;this.na=null;this.g=[];this.F={};var c=$.Rc(b);delete c.children;delete c.parent;this.La=c;this.j={}};
  gD=function(a,b){var c=new $.iD(a,"treeDataItemData"in b?b.treeDataItemData:{});if("treeDataItemMeta"in b){var d=b.treeDataItemMeta,e;for(e in d)c.G(e,d[e])}if("children"in b)for(d=b.children,e=0;e<d.length;e++){var f=gD(a,d[e]);c.cb(f)}return c};oD=function(a){a.na&&(a.na=null,a.b.wa(16))};jD=function(a,b){$.hb(a.g,b,a.cc());b.na=a};pD=function(a,b){a.b=b;for(var c=0,d=a.cc();c<d;c++)pD(a.g[c],b)};
  qD=function(a,b){var c=String($.ra(b));if(c in a.j)return a.j[c][1];var d=a.getParent()?qD(a.getParent(),b):null,d=new $.eD(b,a,d);a.j[c]=[b,d];return d};rD=function(a,b,c,d,e,f,h){var k=$.Rc(b.treeDataItemData);$.n(k.id)||(a.QL++,a.Cz=-1);k.parent=[a.VL,f,h];f=a.VL++;c.push(k);for(var l in k)l in d||(d[l]=e++);if((b=b.children)&&b.length)for(h=0,l=b.length;h<l;h++)rD(a,b[h],c,d,e,f,k.id)};
  $.sD=function(a,b){if(!a)return"";var c=a.O().children,d=[],e={},f,h={Cz:1,QL:0,VL:0};e.id=0;e.parent=1;for(f=0;f<c.length;f++)rD(h,c[f],d,e,2,null,null);h.QL===h.VL?h.Cz=0:h.QL||(h.Cz=1);var k,c=[];for(k in e)c[e[k]]=k;k=[];var l,m,p,q,r,t,u;0>h.Cz&&(e.__original_id__=c.length,e.__original_parent__=c.length+1,c.push("__original_id__","__original_parent__"));for(f=0;f<d.length;f++){l=Array(c.length);m=d[f];q=m.parent;0>=h.Cz?(t=q[0],u=q[1]):(t=m.id,u=q[2]);for(e=0;e<c.length;e++)p=c[e],r=$.A(m[p])?
  $.Jn(m[p]):m[p],l[e]="id"===p?t:"parent"===p?null===u?void 0:u:"__original_parent__"===p?q[2]:"__original_id__"===p?m.id:r;k.push(l)}return $.zo(c,k,b)};$.g=$C.prototype;$.g.mapping=function(a){if($.n(a)){if($.A(a)){this.b.length=0;for(var b in a){var c=a[b];$.C(c)&&(this.b[c]=b)}}return this}return this.b};$.g.hI=function(){return this.La};$.g.Wp=function(){this.La.push(this.j);this.j={};this.g=!1};$.g.iM=function(a,b){var c=this.b[a],c=$.n(c)?c:"column"+a;null===b||(this.j[c]=b);this.g=!0};
  $.g.start=function(){this.La=[];this.j={};this.g=!1};$.g.xf=$.ia;$.g.GB=function(){this.g&&this.Wp()};$.g=aD.prototype;$.g.lS=function(){return!0};$.g.nS=function(){return!0};$.g.reset=function(){this.g.length=1;this.g[0]=-1;this.b=void 0;this.J=-1;return this};$.g.n7=function(){return this.b};$.g.x9=function(){return this.J};$.g.get=function(a){if(this.b)return this.b.get(a)};$.g.set=function(a,b){this.b&&this.b.set(a,b);return this};$.g.G=function(a,b){return 1<arguments.length?(this.b&&this.b.G(a)!=b&&this.b.G(a,b),this):this.b?this.b.G(a):void 0};
  $.g.$U=function(a){return $.n(a)?($.D(a)?this.o=a:this.o=this.lS,this):this.o};$.g.jX=function(a){return $.n(a)?($.D(a)?this.j=a:this.j=this.nS,this):this.j};$.g.advance=function(){var a=bD(this,cD(this));a&&(this.b=a);return!!a};$.g.oC=function(){this.reset();for(var a=[];this.advance();)a.push(this.b);return a};var tD=aD.prototype;tD.reset=tD.reset;tD.current=tD.n7;tD.get=tD.get;tD.set=tD.set;tD.meta=tD.G;tD.getDepth=tD.x9;tD.advance=tD.advance;tD.toArray=tD.oC;tD.nodeYieldCondition=tD.$U;
  tD.traverseChildrenCondition=tD.jX;$.G($.dD,$.hq);$.g=$.dD.prototype;$.g.Aa=$.hq.prototype.Aa|48;$.g.gF=function(a){var b={};$.Tc(b,a);b.dataItem&&$.J(b.dataItem,$.iD)&&(b.dataItem=qD(b.dataItem,this));this.dispatchEvent(b)};$.g.qca=function(a){this.wa(a.g)};$.g.Zl=function(){return this.g};$.g.Nv=function(){return new aD(this)};$.g.search=function(a,b,c){a=this.g[a]||a;a=this.b.search(a,b,c);if(!a)return null;if($.y(a))for(b=[],c=0;c<a.length;c++)b.push(qD(a[c],this));else b=qD(a,this);return b};
  $.g.Cr=function(a,b,c){return(a=this.search(a,b,c))?$.y(a)?a:[a]:[]};$.g.pC=function(a,b){a=this.g[a]||a;for(var c=this.b.pC(a,b),d=[],e=0;e<c.length;e++)d.push(qD(c[e],this));return d};$.g.q7=function(a,b,c){this.b.bJ(a,b,c);return this};$.g.cb=function(a){return this.ue(a,this.cc())};$.g.ue=function(a,b){this.b.ue(a,b);return this.Cc(b)};$.g.removeChild=function(a){return this.UQ(this.ae(a))};$.g.UQ=function(a){return(a=this.b.qC(a))?qD(a,this):null};$.g.r7=function(){this.b.RQ();return this};
  $.g.ae=function(a){return this.b.ae(a)};$.g.TQ=function(){for(var a,b=this.b.cc(),c=[],d=0;d<b;d++)a=this.b.Cc(d),c.push(qD(a,this));return c};$.g.ht=function(){return this.TQ()};$.g.cc=function(){return this.b.cc()};$.g.Cc=function(a){if(a=this.b.Cc(a))return qD(a,this)};$.g.O=function(){var a=this.b.O();a.mapping=this.g;return a};$.g.NF=function(){var a=this.b.NF();a.mapping=this.g;return a};$.g=$.eD.prototype;$.g.om=function(){return this.Gi.om()};$.g.cb=function(a){return this.ue(a,this.cc())};
  $.g.ue=function(a,b){this.Gi.ue(a,b);return this};$.g.remove=function(){this.b?this.b.removeChild(this):this.zo.removeChild(this);return this};$.g.removeChild=function(a){return this.SQ(this.ae(a))};$.g.SQ=function(a){return(a=this.Gi.aJ(a))?qD(a,this.zo):null};$.g.p7=function(){this.Gi.QQ();return this};$.g.ae=function(a){return this.Gi.ae(a)};$.g.ly=function(){for(var a,b=this.Gi.cc(),c=[],d=0;d<b;d++)a=this.Gi.Cc(d),c.push(qD(a,this.zo));return c};$.g.ht=function(){return this.ly()};$.g.cc=function(){return this.Gi.cc()};
  $.g.Cc=function(a){if(a=this.Gi.Cc(a))return qD(a,this.zo)};$.g.get=function(a){if(arguments.length){var b=this.zo.Zl(),c=arguments[0],d=[];$.y(c)?d=c:$.B(c)&&(d=arguments);c=(0,$.Eb)(d,function(a){return b[a]||a});return this.Gi.get(c)}};
  $.g.set=function(a){if(arguments.length){var b=this.zo.Zl(),c=[],d=[],e,f,h=0;e=arguments[0];$.y(e)?(d=e,e=d[0],1<d.length&&$.B(e)&&(1<arguments.length?f=arguments[1]:(f=d[d.length-1],h=1))):$.B(e)&&1<arguments.length&&(d=arguments,f=d[d.length-1],h=1);for(e=0;e<d.length-h;e++)c[e]=b[d[e]]||d[e];c.push(f);this.Gi.set.apply(this.Gi,c)}return this};
  $.g.Ul=function(a){if(arguments.length){var b=this.zo.Zl(),c=arguments[0],d=[];$.y(c)?d=c:$.B(c)&&(d=arguments);c=(0,$.Eb)(d,function(a){return b[a]||a});this.Gi.Ul(c)}return this};$.g.G=function(a,b){return 1<arguments.length?this.Al(a,b):this.Ei(a)};$.g.Ei=function(a){if(arguments.length){var b=arguments[0],c;$.y(b)?c=b:$.B(b)&&(c=arguments);if($.n(c)){var d=this.F,e;for(e=0;e<c.length;e++)if(b=c[e],$.A(d)||$.y(d)){if(e==c.length-1)return d[b];d=d[b]}else break}}};
  $.g.Al=function(a){if(arguments.length){var b=arguments[0],c,d,e,f,h,k,l=0,m=[];$.y(b)?(c=b,b=c[0],1<c.length&&$.B(b)&&(1<arguments.length?d=arguments[1]:(d=c[c.length-1],l=1))):$.B(b)&&1<arguments.length&&(c=arguments,d=c[c.length-1],l=1);if($.n(c)){k=this.F;h=c[0];m.push(h);e=k[h];for(b=1;b<c.length-l;b++)if(f=c[b],!$.C(f)&&!$.B(f))return this;for(b=1;b<c.length-l;b++)if(f=c[b],m.push(f),$.C(f))if($.n(e))if($.y(e))k=e,e=k[f],h=f;else return this;else k[h]=[],e=k[f],k=k[h],h=f;else if($.B(f))if($.n(e))if($.A(e))k=
  e,e=k[f],h=f;else return this;else k[h]={},e=k[f],k=k[h],h=f;else return this;k[h]!=d&&(k[h]=d,this.zo.wa(32))}}return this};$.g.getParent=function(){return this.b};$.g.Ag=function(a){this.b=a};var uD=$.dD.prototype;uD.getTraverser=uD.Nv;uD.addData=uD.q7;uD.search=uD.search;uD.searchItems=uD.Cr;uD.addChild=uD.cb;uD.addChildAt=uD.ue;uD.getChildren=uD.TQ;uD.numChildren=uD.cc;uD.getChildAt=uD.Cc;uD.removeChild=uD.removeChild;uD.removeChildAt=uD.UQ;uD.removeChildren=uD.r7;uD.indexOfChild=uD.ae;uD=$.eD.prototype;
  uD.get=uD.get;uD.set=uD.set;uD.meta=uD.G;uD.del=uD.Ul;uD.getParent=uD.getParent;uD.addChild=uD.cb;uD.addChildAt=uD.ue;uD.getChildren=uD.ly;uD.numChildren=uD.cc;uD.getChildAt=uD.Cc;uD.remove=uD.remove;uD.removeChild=uD.removeChild;uD.removeChildAt=uD.SQ;uD.removeChildren=uD.p7;uD.indexOfChild=uD.ae;$.G($.fD,$.hq);$.g=$.fD.prototype;$.g.Aa=48;$.g.Py=function(a){return $.n(a)?(this.o=a,this):this.o};$.g.wa=function(a){!this.gk&&a&16&&(this.g=null);$.fD.I.wa.call(this,a)};$.g.Nv=function(){return new aD(this)};
  $.g.bJ=function(a,b,c){if($.B(a)){var d=new $.Hm;"object"==$.la(c)&&(d.vA(c.rowsSeparator),d.Ay(c.columnsSeparator),d.Fz(c.ignoreTrailingSpaces),d.Dz(c.ignoreFirstRow));var e=new $C;e.mapping(b);d.Jx(a,e);a=e.hI();b="as-table"}else b=String(b).toLowerCase();$.T(this);switch(b){case "as-table":case "as-table":case "table":case "parentid":case "linear":case "plain":case "db":case "database":case "id":case "parentpointer":case "pointer":var f,h,k,d=[],e=[],l=[];$.T(this);b=0;for(f=a.length;b<f;b++){h=
  a[b];k=new $.iD(this,h);var m=h.id;l.push(k);if(null!=m)if(m+="",h=$.ub(d,m,$.Sn),0>h){var p=~h;$.hb(d,m,p);(h=this.search("id",m))?(h=$.J(h,$.iD)?h:h[0],$.hb(e,h,p),h.G("nc",!0),$.jl(1,null,[m])):$.hb(e,k,p)}else $.jl(2,null,[m])}for(b=0;b<l.length;b++)f=l[b],k=a[b].parent,null!=k?(k+="",h=$.ub(d,k,$.Sn),0>h?((h=this.search("id",k))?(h=$.J(h,$.iD)?h:h[0],jD(h,f)):(this.j.push(f),$.jl(3,null,[k])),nD(this,f)):(h=e[h],jD(h,f),h.G("nc")&&nD(this,f))):(this.j.push(f),nD(this,f));l.length&&this.wa(16);
  this.ka(!0);break;default:$.T(this);b=0;for(d=a.length;b<d;b++)e=kD(this,a[b]),this.j.push(e),nD(this,e);a.length&&this.wa(16);this.ka(!0)}if("array"==$.la(c)){this.o=!1;for(a=0;a<c.length;a++)if(d=c[a],"object"==$.la(d)&&(b=d.from,d=d.to,($.B(b)||$.C(b))&&($.B(d)||$.C(d))&&(d=this.pC("id",d)[0])))e=d.get("dependsOn"),$.n(e)?"array"==$.la(e)&&d.set("dependsOn",e.length,b):d.set("dependsOn",[b]);this.o=!0}this.ka(!0);return this};$.g.OC=function(a,b){return $.Sn(a.key,b.key)};
  $.g.JJ=function(a,b){if(!this.b[a]){this.B[a]=!!b;this.F.reset();this.b[a]=[];this.g||(this.g=this.F.oC());for(var c=0;c<this.g.length;c++)lD(this,this.g[c],a)}return this};$.g.Oca=function(a){delete this.b[a];delete this.B[a];return this};
  $.g.search=function(a,b,c){var d=$.D(b),e;e=this.B[a];if(this.b[a])return b=d?$.vb(this.b[a],b,c):$.ub(this.b[a],{key:e?""+b:b},c||this.OC),e=0<=b?this.b[a][b].value:null,$.y(e)?1==e.length?e[0]:e:e;e=[];this.g||(this.g=this.F.oC());if(d)for(d=0;d<this.g.length;d++)b.call(c,this.g[d],d,this.g)||e.push(this.g[d]);else for(c=c||$.Sn,d=0;d<this.g.length;d++)c(this.g[d].get(a),b)||e.push(this.g[d]);return e.length?1==e.length?e[0]:e:null};
  $.g.Cr=function(a,b,c){return(a=this.search(a,b,c))?$.y(a)?a:[a]:[]};$.g.pC=function(a,b){var c,d;c=this.B[a];if(this.b[a])return c=$.ub(this.b[a],{key:c?""+b:b},this.OC),d=0<=c?this.b[a][c].value:[],$.y(d)?d:[d];d=[];this.g||(this.g=this.F.oC());for(c=0;c<this.g.length;c++)$.Sn(this.g[c].get(a),b)||d.push(this.g[c]);return d};$.g.cb=function(a){return this.ue(a,this.cc())};
  $.g.ue=function(a,b){var c=null;$.J(a,$.eD)&&(c=a.zo,a=a.Gi);$.T(this);var d=null,e=-1,f=null,h=!0,k=null;$.J(a,$.iD)?((k=a.om())&&k!=this&&(f=k,$.T(k)),e=(d=a.getParent())?d.ae(a):k.ae(a),a.remove()):(h=!1,a=kD(this,a));b=$.Hb(b,0,this.cc());$.hb(this.j,a,b);nD(this,a);a.om(this);c&&qD(a,c).Ag(null);this.wa(16);this.ka(!0);k&&k.ka(!0);this.o&&(c={type:h?"treeItemMove":"treeItemCreate",target:null,targetIndex:b,item:a},f&&(c.sourceTree=f),h&&(c.sourceIndex=e,c.source=d),this.dispatchEvent(c));return a};
  $.g.o7=function(){return $.nb(this.j)};$.g.ht=function(){return this.j};$.g.cc=function(){return this.j.length};$.g.Cc=function(a){return this.j[a]};$.g.removeChild=function(a){return this.qC(this.ae(a))};$.g.ae=function(a){$.J(a,$.eD)&&(a=a.Gi);return(0,$.cb)(this.j,a)};$.g.qC=function(a){var b=null;0<=a&&a<=this.j.length&&(b=$.gb(this.j,a,1)[0],mD(this,b,void 0,!0),this.wa(16),this.o&&this.dispatchEvent({type:"treeItemRemove",source:null,sourceIndex:a,item:b}));return b};
  $.g.RQ=function(){if(this.j.length){this.j.length=0;for(var a in this.b)this.b[a].length=0;this.wa(16)}return this};$.g.O=function(){var a=$.fD.I.O.call(this);a.children=[];for(var b=0;b<this.cc();b++){var c=this.Cc(b);a.children.push(c.O())}a.index=[];for(var d in this.b)a.index.push(d);return a};$.g.NF=function(){for(var a={children:[]},b=0;b<this.cc();b++){var c=this.Cc(b);a.children.push(c.O(!1))}a.index=[];for(var d in this.b)a.index.push(d);return a};
  $.g.qe=function(a){return new $.dD(this,a||{})};$.g=$.iD.prototype;$.g.get=function(a){if(arguments.length){var b=arguments[0],c;$.y(b)?c=b:$.B(b)&&(c=arguments);if($.n(c)){var d=this.La,e;for(e=0;e<c.length;e++)if(b=c[e],$.A(d)||$.y(d)){if(e==c.length-1)return d[b];d=d[b]}else break}}};
  $.g.set=function(a){if(arguments.length){var b=arguments[0],c,d,e,f,h,k,l,m=0,p=[];$.y(b)?(c=b,d=c[0],1<c.length&&$.B(d)&&(1<arguments.length?e=arguments[1]:(e=c[c.length-1],m=1))):$.B(b)&&1<arguments.length&&(d=b,c=arguments,e=c[c.length-1],m=1);if($.n(c)){l=this.La;k=c[0];p.push(k);f=l[k];for(b=1;b<c.length-m;b++)if(h=c[b],!$.C(h)&&!$.B(h))return $.jl(17),this;for(b=1;b<c.length-m;b++)if(h=c[b],p.push(h),$.C(h))if($.n(f))if($.y(f))l=f,f=l[h],k=h;else return $.jl(17),this;else l[k]=[],f=l[h],l=l[k],
  k=h;else if($.B(h))if($.n(f))if($.A(f))l=f,f=l[h],k=h;else return $.jl(17),this;else l[k]={},f=l[h],l=l[k],k=h;else return $.jl(17),this;l[k]!=e&&(l[k]=e,mD(this.b,this,d),lD(this.b,this,d),this.b.wa(16),this.b.Py()&&this.b.dispatchEvent({type:"treeItemUpdate",item:this,path:p,field:p[0],value:e}))}else $.jl(17)}return this};
  $.g.Ul=function(a){if(arguments.length){var b=arguments[0],c,d;$.y(b)?(c=b,d=c[0]):$.B(b)&&(c=arguments,d=b);if($.n(c)){var e=[],f=this.La,h;for(h=1;h<c.length;h++)if(b=c[h],!$.C(b)&&!$.B(b))return this;for(h=0;h<c.length;h++)if(b=c[h],e.push(b),$.A(f)||$.y(f))if(h==c.length-1)if(b in f){var k=f[b];$.y(f)?$.ib(f,b):delete f[b];mD(this.b,this,d);lD(this.b,this,d);this.b.wa(16);this.b.Py()&&this.b.dispatchEvent({type:"treeItemUpdate",item:this,path:e,field:e[0],value:k})}else break;else f=f[b];else break}}return this};
  $.g.G=function(a,b){return 1<arguments.length?this.Al(a,b):this.Ei(a)};$.g.Ei=function(a){if(arguments.length){var b=arguments[0],c;$.y(b)?c=b:$.B(b)&&(c=arguments);if($.n(c)){var d=this.F,e;for(e=0;e<c.length;e++)if(b=c[e],$.A(d)||$.y(d)){if(e==c.length-1)return d[b];d=d[b]}else break}}};
  $.g.Al=function(a){if(arguments.length){var b=arguments[0],c,d,e,f,h,k,l=0,m=[];$.y(b)?(c=b,b=c[0],1<c.length&&$.B(b)&&(1<arguments.length?d=arguments[1]:(d=c[c.length-1],l=1))):$.B(b)&&1<arguments.length&&(c=arguments,d=c[c.length-1],l=1);if($.n(c)){k=this.F;h=c[0];m.push(h);e=k[h];for(b=1;b<c.length-l;b++)if(f=c[b],!$.C(f)&&!$.B(f))return this;for(b=1;b<c.length-l;b++)if(f=c[b],m.push(f),$.C(f))if($.n(e))if($.y(e))k=e,e=k[f],h=f;else return this;else k[h]=[],e=k[f],k=k[h],h=f;else if($.B(f))if($.n(e))if($.A(e))k=
  e,e=k[f],h=f;else return this;else k[h]={},e=k[f],k=k[h],h=f;else return this;k[h]!=d&&(k[h]=d,this.b.wa(32))}}return this};$.g.getParent=function(){return this.na};$.g.cb=function(a){return this.ue(a,this.cc())};
  $.g.ue=function(a,b){var c=null;$.J(a,$.eD)&&(c=a.zo,a=a.Gi);$.T(this.b);var d=null,e=null,f=-1,h=null,k=!0;$.J(a,$.iD)?((d=a.om())&&d!=this.b&&(h=d,$.T(d)),f=(e=a.getParent())?e.ae(a):d.ae(a),a.remove()):(k=!1,a=kD(this.b,a));b=$.Hb(b,0,this.cc());$.hb(this.g,a,b);lD(this.b,a,void 0,!0);a.om(this.b);a.na=this;c&&qD(a,c).Ag(qD(this,c));this.b.wa(16);this.b.ka(!0);d&&d.ka(!0);this.b.Py()&&(c={type:k?"treeItemMove":"treeItemCreate",target:this,targetIndex:b,item:a},h&&(c.sourceTree=h),k&&(c.sourceIndex=
  f,c.source=e),this.b.dispatchEvent(c));return a};$.g.ly=function(){return $.nb(this.g)};$.g.ht=function(){return this.g};$.g.cc=function(){return this.g.length};$.g.Cc=function(a){return this.g[a]};$.g.removeChild=function(a){return this.aJ(this.ae(a))};$.g.aJ=function(a){var b=null;0<=a&&a<=this.g.length&&(b=$.gb(this.g,a,1)[0],mD(this.b,b,void 0,!0),oD(b),this.b.Py()&&this.b.dispatchEvent({type:"treeItemRemove",source:this,sourceIndex:a,item:b}));return b};
  $.g.QQ=function(){var a=this.g.length;if(a){$.T(this.b);for(var b=0;b<a;b++){var c=this.g[b];oD(c);mD(this.b,c,void 0,!0)}this.b.ka(!1);this.g.length=0;this.b.wa(16)}return this};$.g.ae=function(a){$.J(a,$.eD)&&(a=a.Gi);return(0,$.cb)(this.g,a)};$.g.remove=function(){if(this.na)this.na.removeChild(this);else{var a=this.b.ae(this);0<=a&&this.b.qC(a)}return this};$.g.om=function(a){return $.n(a)?(this.b!=a&&pD(this,a),this):this.b};
  $.g.clone=function(a){var b=$.Sl(this.La);delete b.children;delete b.parent;for(var b=new $.iD(a,b),c=0,d=this.cc();c<d;c++){var e=this.Cc(c);b.cb(e.clone(a))}return b};$.g.O=function(a){var b={treeDataItemData:this.La};!1!==a&&(b.treeDataItemMeta=this.F);for(var c=0,d=this.cc();c<d;c++){var e=this.Cc(c);b.children||(b.children=[]);b.children.push(e.O(a))}return b};var vD=$.fD.prototype;$.F("anychart.data.tree",function(a,b,c){return new $.fD(a,b,c)});vD.getTraverser=vD.Nv;vD.dispatchEvents=vD.Py;
  vD.addData=vD.bJ;vD.createIndexOn=vD.JJ;vD.removeIndexOn=vD.Oca;vD.search=vD.search;vD.searchItems=vD.Cr;vD.addChild=vD.cb;vD.addChildAt=vD.ue;vD.getChildren=vD.o7;vD.numChildren=vD.cc;vD.getChildAt=vD.Cc;vD.removeChild=vD.removeChild;vD.removeChildAt=vD.qC;vD.removeChildren=vD.RQ;vD.indexOfChild=vD.ae;vD.mapAs=vD.qe;vD=$.iD.prototype;vD.get=vD.get;vD.set=vD.set;vD.meta=vD.G;vD.del=vD.Ul;vD.getParent=vD.getParent;vD.addChild=vD.cb;vD.addChildAt=vD.ue;vD.getChildren=vD.ly;vD.numChildren=vD.cc;
  vD.getChildAt=vD.Cc;vD.remove=vD.remove;vD.removeChild=vD.removeChild;vD.removeChildAt=vD.aJ;vD.removeChildren=vD.QQ;vD.indexOfChild=vD.ae;}).call(this,$)}
  if(!_.color_scales){_.color_scales=1;(function($){var Aca,SG,UG,WG,YG,aH,bH,eH,zca;$.PG=function(a,b){var c=a.N("fontSize")!=b;null===b?delete a.Uc.fontSize:a.Uc.fontSize=b;c&&a.D(4)};$.QG=function(a,b){return $.wk(zca,a,b||"clip")};Aca=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};$.RG=function(){$.Pr.call(this);this.ba=this.ca=0};SG=function(a){var b=new $.Rr(a);$.L(a,b);$.S(b,a.B0,a);return b};
  $.TG=function(a){var b=new $.RG;b.ga($.jm("defaultScaleSettings.linear"));b.ga($.jm("defaultLinearColorScale"));b.Xh.apply(b,arguments);return b};UG=function(a){$.$r.call(this,a)};$.VG=function(){$.Ar.call(this);this.K=this.j=null;this.B=[];this.P=this.g=null;this.La=[];this.aa=!1};
  WG=function(a){if(!a.g){var b,c,d,e,f,h=[];if(!a.B.length){a.R=[];$.qb(a.La);var k=[],l=[];(0,$.Za)(a.La,function(a){var b=$.O(a);(0,window.isNaN)(a)?k.push({equal:a}):l.push(b)});$.wb(l);c=Math.round(1+3.32*Math.log(l.length)/Math.log(10));b=Math.floor(l[0]);d=(l[l.length-1]-b)/c;e=b;var m=Math.ceil(e+d);for(b=0;b<c;b++)a.R.push({from:e,to:m}),e=m,m=Math.ceil(e+d);a.R=a.R.concat(k);a.aa||(a.P=$.jm("defaultOrdinalColorScale.autoColors")(a.R.length))}m=a.B.length?a.B:a.R;b=0;for(c=m.length;b<c;b++){d=
  m[b];e=a.K?a.K[b]:null;f=a.Xh();var p=a.Md()?Math.max(0,f.length-1-b):b;f=f&&f[p]?f[p]:null;var p=!0,q=b,r=d.equal,t=$.O(d.from),u=$.O(d.to),v=$.O(d.less),w=$.O(d.greater),x=window.NaN,z=window.NaN,E=void 0;$.n(r)?(t=$.O(r),(0,window.isNaN)(t)?E=r:z=x=t):(0,window.isNaN)(t)||(0,window.isNaN)(u)?(0,window.isNaN)(w)?(0,window.isNaN)(v)?p=!1:(x=Number.NEGATIVE_INFINITY,z=v):(x=w,z=Number.POSITIVE_INFINITY):(x=Math.min(t,u),z=Math.max(t,u));p&&h.push({Wl:E,start:x,end:z,sourceIndex:q,enabled:!0,color:d.color||
  f,name:d.name||e})}$.wb(h,function(a,b){var c=a.start>b.start?1:a.start<b.start?-1:0;Math.max(a.start,b.start)<=Math.min(a.end,b.end)&&(a.start>b.start?a.sourceIndex>b.sourceIndex?b.end=a.start:(a.start=b.end,a.start>=a.end&&(a.enabled=!1)):a.start<b.start?a.sourceIndex>b.sourceIndex?(b.start=a.end,b.start>=b.end&&(b.enabled=!1)):a.end=b.start:a.sourceIndex>b.sourceIndex?(b.start=a.end,b.start>=b.end&&(b.enabled=!1)):(a.end=b.start,a.start>=a.end&&(a.enabled=!1)));return c});e=[];b=0;for(c=h.length;b<
  c;b++)d=h[b],d.enabled&&e.push(d);h.length=0;a.g=e}};$.XG=function(a){var b=new $.VG;b.ga($.jm("defaultOrdinalColorScale"));b.px(a);return b};YG=function(){$.Dv.call(this)};$.ZG=function(){$.Ev.call(this);this.aa=window.NaN;$.is(this,this,this.PO,this.E0,null,this.PO);this.ma.pa(this,"mousedown",this.J$);this.Rd|=1024};$.$G=function(a){a.Zb&&(a.Zb.dh(),a.Zb.remove(),a.Zb=null);a.j&&(a.j.length=0)};
  aH=function(a){var b=a.scale();if(b&&$.J(b,$.VG)){a.ca={};for(var c=a.o,d=c.hc();d.advance();){var e=($.n(c.Oc)?d.G(c.Oc):null)||d.get(c.Xd?c.Xd.Ui:c.vl[1]);if(e=b.Gj(e))a.ca[e.sourceIndex]||(a.ca[e.sourceIndex]=[]),a.ca[e.sourceIndex].push(d.sa())}}};
  bH=function(a){var b=0;if(a.g&&a.g.enabled()){var c=a.orientation(),b=2*a.g.size(),d=$.n(a.g.offsetX())?a.g.offsetX():0;a=$.n(a.g.offsetY())?a.g.offsetY():0;switch(c){case "top":b+=a;break;case "right":b-=d;break;case "bottom":b-=a;break;case "left":b+=d}}return b};
  $.cH=function(a,b){var c=a.scale(),d=a.o,e=d.Sd()||(d.Pm?d.Pm():void 0),f=a.g&&a.g.enabled(),d=d&&d.enabled()&&e==c;if(a.enabled()&&f&&c&&d&&(c=a.Zb.sb(),f=$.Hb(a.scale().transform(b,.5),0,1),!(0,window.isNaN)(f))){var h,k,l;switch(a.orientation()){case "top":h=c.left+c.width*f;k=c.top+c.height+a.g.size();l=180;break;case "bottom":h=c.left+c.width*f;k=c.top-a.g.size();l=0;break;case "left":h=c.left+c.width+a.g.size();k=c.top+c.height-c.height*f;l=90;break;case "right":h=c.left-a.g.size(),k=c.top+
  c.height-c.height*f,l=-90}$.T(a.g).rotation(l).rc({value:{x:h,y:k}}).ka(!1).ea();a.g.$e().visible(!0)}};$.dH=function(a){a.scale()&&a.g&&a.g.$e().visible(!1)};eH=function(){$.ZG.call(this)};zca={nea:"always-show",hfa:"clip",Jfa:"drop"};$.G($.RG,$.Pr);$.g=$.RG.prototype;$.g.Va=function(){return"linear-color"};
  $.g.kK=function(a){var b,c,d,e=[];b=0;for(c=arguments.length;b<c;b++)if(d=arguments[b],$.B(d))e.push($.pc(d,!0));else if($.y(d))e.push.apply(e,this.kK.apply(this,d));else if($.A(d)){var f=d.keys;if($.n(f)&&$.y(f)){var f=this.kK.apply(this,d.keys),h=d.opacity;if($.n(h))for(var k=0;k<f.length;k++)d=f[k],$.n(d.opacity)||(d.opacity=h);e.push.apply(e,f)}else e.push(d)}return e};
  $.g.wba=function(a){for(var b=this.kK.apply(this,arguments),c=0,d=b.length;c<d;c++){var e=b[c];$.n(e.offset)||(e.offset=c?c==d-1?1:c/(d-1):0);var f=e.color;$.y(f)?e.color=$.nb(f):$.B(f)&&(e.color=$.El($.Ll(f).Qf))}$.zb(b);return b};$.g.Xh=function(a){if(0<arguments.length&&$.n(arguments[0])){var b=this.wba.apply(this,arguments),c=this.j&&b.length==this.j.length;if(c)for(var d=0,e=b.length;d<e;d++){var f=!1;(0,$.Za)(this.j,function(a){f=f||Aca(a,b[d])});c=c&&f}c&&this.j||(this.j=b,this.wa(2));return this}return this.j};
  $.g.Nr=function(a){a=this.transform(a);for(var b,c,d=0,e=this.j.length;d<e;d++){var f=this.j[d];if(c)break;else a>=f.offset?b=f:c=f}var h;b?c?h=$.Kl(c.color,b.color,(a-b.offset)/(c.offset-b.offset)):h=b.color:h=c.color;return $.y(h)?$.uc(h):h.color};
  $.g.A0=function(a){this.hh();a=$.El($.Ll(a).Qf);var b,c,d,e,f,h,k;h=0;for(k=this.j.length;h<k;h++){c=this.j[h];e=c.color;h!=this.j.length-1&&(d=this.j[h+1],f=d.color);var l,m,p;m=(a[1]-e[1])/(f[1]-e[1]);p=(a[2]-e[2])/(f[2]-e[2]);l=(a[0]-e[0])/(f[0]-e[0]);(0,window.isNaN)(l)&&(l=m||p);(0,window.isNaN)(m)&&(m=p||l);(0,window.isNaN)(p)&&(p=l||m);if($.Qm(l,m)&&$.Qm(l,p)&&$.Qm(m,p)&&(m=Math.round(f[1]*m+(1-m)*e[1])==a[1],p=Math.round(f[2]*p+(1-p)*e[2])==a[2],Math.round(f[0]*l+(1-l)*e[0])==a[0]&&m&&p)){b=
  this.Hd*(l/(1/(d.offset-c.offset))+c.offset)+this.min;break}}return $.n(b)?b:window.NaN};$.g.Ga=function(a){this.F||(this.F=SG(this));return $.n(a)?(this.F.X(a),this.wa(2),this):this.F};$.g.ib=function(a){this.B||(this.B=SG(this),this.B.count(5));return $.n(a)?(this.B.X(a),this.wa(2),this):this.B};
  $.g.hh=function(){if(!this.b){$.RG.I.hh.call(this);var a=$.Vr(this.Ga(),this.min,this.max,this.ma&&this.min!=this.P,this.K&&this.max!=this.R,10);this.ma&&(this.min=a[0]);this.K&&(this.max=a[1]);$.Wr(this.ib(),$.Ur(this.Ga()),10,a[2],a[3]);this.Hd=this.max-this.min}};$.g.B0=function(a){$.U(a,2)&&(this.b=!1,this.wa(2))};$.g.O=function(){var a=$.RG.I.O.call(this);a.ticks=this.Ga().O();a.minorTicks=this.ib().O();a.colors=(0,$.Eb)(this.Xh(),function(a){return $.uc(a.color)});return a};
  $.g.ga=function(a,b){$.RG.I.ga.call(this,a,b);this.Ga(a.ticks);this.ib(a.minorTicks);this.Xh(a.colors)};var fH=$.RG.prototype;$.F("anychart.scales.linearColor",$.TG);fH.colors=fH.Xh;fH.valueToColor=fH.Nr;fH.colorToValue=fH.A0;fH.ticks=fH.Ga;fH.minorTicks=fH.ib;$.G(UG,$.$r);UG.prototype.yR=function(){var a=[],b=this.scale.px();b.length||(b=this.scale.$l());if(b){var c,b=b.length;(0,window.isNaN)(this.aC())?c=Math.ceil(b/this.KL())||1:c=this.aC();for(var d=0;d<b;d+=c)a.push(d)}return a};
  UG.prototype.IL=function(a){var b=a.length||0,c=this.scale.$l(),d=c.length;if(!b||!d)return[];for(var e=[],f=!1,h=0;h<b&&!f;h++){var k=a[h],l=a[h+1];(0,window.isNaN)(l)||l>=d?(l=d-1,f=!0):l--;var m=$.n(c[k].Wl)?c[k].Wl:(c[k].start+c[k].end)/2,p=$.n(c[l].Wl)?c[l].Wl:(c[l].start+c[l].end)/2;e.push(k==l?m:[m,p])}return e};$.G($.VG,$.Ar);$.g=$.VG.prototype;$.g.Va=function(){return"ordinal-color"};$.g.Md=function(a){return $.n(a)?(a=!!a,this.Y!=a&&(this.Y=a,this.wl(),this.wa(2)),this):this.Y};$.g.Xh=function(a){if($.n(a))return a?$.y(a)&&(this.j=$.nb(a)):this.j=[],this.wl(),this.wa(2),this;if($.y(this.j)){this.ma||(this.ma=$.nb(this.j));if(this.ma.length<this.B.length)for(;this.ma.length!=this.B.length;)this.ma.push(this.B[this.ma.length]);return this.ma}return this.P||[]};
  $.g.names=function(a){if($.n(a)){if(null===a)this.K=[];else if($.y(a))this.K=$.nb(a);else{if(!$.B(a)||this.K==a)return this;this.K=a}this.wl();$.bs(this.Ga());this.wa(4);return this}WG(this);if($.y(this.K)){this.o||(this.o=$.nb(this.K));if(this.o.length<this.g.length)for(;this.o.length!=this.g.length;)this.o.push(this.g[this.o.length]);return this.o}if(!this.lh){this.lh=[];a=0;for(var b=this.g.length;a<b;a++){var c=this.g[a],d;$.n(c.Wl)?d=c.Wl:(0,window.isFinite)(c.start+c.end)?c.start===c.end?d=
  c.start:d=c.start+" - "+c.end:d=(0,window.isFinite)(c.start)?"> "+c.start:"< "+c.end;c.name||(c.name=d);this.lh.push(d)}}return this.lh};$.g.px=function(a){return $.n(a)?(this.B!=a&&(this.B=a,this.aa||(this.P=$.jm("defaultOrdinalColorScale.autoColors")(this.B.length)),this.wl(),$.bs(this.Ga()),this.wa(4)),this):this.B};$.g.$l=function(){WG(this);this.names();return this.g};
  $.g.Gj=function(a){WG(this);var b=null;if(this.g)for(var c=this.g.length;c--;){var d=this.g[c];if($.n(d.Wl)&&d.Wl===a||a>=d.start&&a<=d.end&&-1<d.sourceIndex)b=d}return b};$.g.Nr=function(a){WG(this);var b="none";if(a=this.Gj(a)){var c=a.sourceIndex;if(0<=c){var d=this.Xh();$.n(a.color)?b=a.color:d&&0<d.length&&(b=c>d.length-1?d[d.length-1]:d[c])}}return b};
  $.g.C0=function(a){WG(this);a=$.Ll(a).Qf;for(var b=window.NaN,c=0,d=this.g.length;c<d;c++){var e=this.g[c],f=this.Xh();if(a==$.Ll(e.color||f[e.sourceIndex]||f[f.length-1]).Qf){b=(e.start+e.end)/2;break}}return b};$.g.dr=function(a){WG(this);return(a=this.Gj(a))?(0,$.cb)(this.g,a):-1};$.g.Ga=function(a){if(!this.F){var b=new UG(this);$.L(this,b);$.S(b,this.D0,this);this.F=b}return $.n(a)?(this.F.X(a),this):this.F};$.g.D0=function(a){$.U(a,2)&&this.wa(2)};
  $.g.transform=function(a,b){WG(this);var c=this.Gj(a);return c?1/this.g.length*((0,$.cb)(this.g,c)+(b||0)):window.NaN};$.g.Ic=function(a){WG(this);a=this.g[$.Hb(Math.ceil(a*this.g.length)-1,0,this.g.length-1)];return $.n(a.Wl)?a.Wl:(a.start+a.end)/2};$.g.Ve=function(){return!!this.px.length};$.g.$B=function(a){this.b=!1;a||this.wa(2);return!0};$.g.reset=function(){this.o=this.R=this.lh=this.ma=this.g=null;return this};$.g.wl=function(){this.reset();this.La.length=0;return this};
  $.g.Nc=function(a){for(var b=0;b<arguments.length;b++)this.La.push(arguments[b]);return this};$.g.O=function(){var a=$.VG.I.O.call(this);a.ticks=this.Ga().O();this.B&&this.B.length&&(a.ranges=this.B);this.K&&(a.names=this.K);this.j&&(a.colors=this.j);return a};$.g.ga=function(a,b){$.VG.I.ga.call(this,a,b);this.Ga(a.ticks);this.Xh(a.colors);this.px(a.ranges);this.names(a.names)};var gH=$.VG.prototype;$.F("anychart.scales.ordinalColor",$.XG);gH.getType=gH.Va;gH.colors=gH.Xh;gH.ranges=gH.px;
  gH.names=gH.names;gH.ticks=gH.Ga;gH.inverted=gH.Md;gH.getRangeByValue=gH.Gj;gH.getProcessedRanges=gH.$l;gH.valueToColor=gH.Nr;gH.colorToValue=gH.C0;gH.getIndexByValue=gH.dr;gH.transform=gH.transform;gH.inverseTransform=gH.Ic;$.G(YG,$.Dv);YG.prototype.TO=function(a,b,c,d,e){b=Math.round(b.left+a*b.width);var f,h,k=this.length(),l=this.position();b=1==a?b+e:b-e;"outside"==l?(f=c.top-d/2,h=-k):"center"==l?(f=c.top+(c.height-k)/2,h=k):"inside"==l&&(f=c.Ka()+d/2,h=k);this.path.moveTo(b,f);this.path.lineTo(b,f+h)};
  YG.prototype.SO=function(a,b,c,d,e){b=Math.round(b.top+b.height-a*b.height);var f=this.length(),h=this.position();b=1==a?b-e:b+e;"outside"==h?(a=c.Ra()+d/2,c=f):"center"==h?(a=c.left+(c.width-f)/2,c=f):(a=c.left-d/2,c=-f);this.path.moveTo(a,b);this.path.lineTo(a+c,b)};
  YG.prototype.QO=function(a,b,c,d,e){b=Math.round(b.left+a*b.width);var f,h,k=this.length(),l=this.position();b=1==a?b+e:b-e;"outside"==l?(f=c.Ka()+d/2,h=k):"center"==l?(f=c.top+(c.height-k)/2,h=k):"inside"==l&&(f=c.top-d/2,h=-k);this.path.moveTo(b,f);this.path.lineTo(b,f+h)};
  YG.prototype.RO=function(a,b,c,d,e){var f;b=Math.round(b.top+b.height-a*b.height);var h,k=this.length(),l=this.position();b=1==a?b-e:b+e;"outside"==l?(f=c.left-d/2,h=-k):"center"==l?(f=c.left+(c.width-k)/2,h=k):"inside"==l&&(f=c.Ra()+d/2,h=k);this.path.moveTo(f,b);this.path.lineTo(f+h,b)};$.G($.ZG,$.Ev);$.g=$.ZG.prototype;$.g.xa=$.Ev.prototype.xa|1024;$.g.zH=function(){return new YG};$.g.FH=function(){this.Zb||($.J(this.scale(),$.RG)?this.Zb=$.kk():$.J(this.scale(),$.VG)&&(this.Zb=$.ik(),this.j=[]),this.Zb.zIndex(this.zIndex()),this.Zb.parent(this.$()),this.Zb.cursor("pointer"),$.hs(this,this.Zb));return this.Zb};$.g.NC=function(a){return $.n(a)?(a=$.O(a),this.aa!=a&&(this.aa=a,this.D(this.Rd,9)),this):this.aa};
  $.g.align=function(a){return $.n(a)?(a=$.Gk(a),this.F!=a&&(this.F=a,this.D(this.Rd,9)),this):this.F};$.g.length=function(a){return $.n(a)?(this.Yc!=a&&(this.Yc=a,this.D(this.Rd,9)),this):this.Yc};$.g.yH=function(a){this.g||(this.g=new $.sv,this.g.rc({value:{x:0,y:0}}),$.S(this.g,this.F0,this));return $.n(a)?(this.g.X(a),this.D(1024,1),this):this.g};$.g.F0=function(a){$.U(a,1)&&this.D(1024,1)};$.g.target=function(a){return $.n(a)?(this.o!=a&&(this.o=a,aH(this),$.S(this.o,this.Cda,this)),this):this.o};
  $.g.Cda=function(a){$.U(a,132)&&aH(this)};$.g.EH=function(a,b){var c=this.scale(),d={},e,f;if($.J(c,$.RG))e=(0,window.parseFloat)(b),f=(0,window.parseFloat)(b);else if($.J(c,$.VG)){e=c.Ga().names()[a];f=b;var h=c.Gj(b);h&&(d.colorRange={color:h.color,end:h.end,name:h.name,start:h.start,index:h.sourceIndex})}d.index=a;d.value=e;d.tickValue=f;d.max=c.max?c.max:null;d.min=c.min?c.min:null;d.scale=c;return d};
  $.g.$q=function(a,b){var c=0;a.enabled()&&(c=a.length(),c="center"==a.position()?Math.max((c-this.aa)/2,0):$.n(b)?0<b?"outside"==a.position()?0:c:0>b?"inside"==a.position()?0:c:c:c);return c};
  $.g.DH=function(a,b,c,d,e){c=a.top+a.height+c/2-d;var f=this.scale();if($.J(f,$.RG))this.Zb.moveTo(a.left+b,c).lineTo(a.left-b+a.width,c).lineTo(a.left-b+a.width,c-e).lineTo(a.left+b,c-e).close();else if($.J(f,$.VG)){d=f.$l();for(var f=f.Xh(),h=a.width/d.length,k=0,l=d.length;k<l;k++){var m=d[k],m=m.color||f[m.sourceIndex]||f[f.length-1],p=this.j[k]?this.j[k].clear():this.j[k]=this.Zb.path(),q=a.left+b+h*k;p.moveTo(q,c).lineTo(q+h,c).lineTo(q+h,c-e).lineTo(q,c-e).close();p.stroke(this.stroke());p.fill(m)}}};
  $.g.CH=function(a,b,c,d,e){c=a.left-c/2+d;var f=this.scale();if($.J(f,$.RG))this.Zb.moveTo(c,a.top+b).lineTo(c,a.top-b+a.height).lineTo(c+e,a.top-b+a.height).lineTo(c+e,a.top+b).close();else if($.J(f,$.VG)){d=f.$l();for(var f=f.Xh(),h=a.height/d.length,k=0,l=d.length;k<l;k++){var m=d[k],m=m.color||f[m.sourceIndex]||f[f.length-1],p=this.j[k]?this.j[k].clear():this.j[k]=this.Zb.path(),q=a.top+b+h*(d.length-1-k);p.moveTo(c,q).lineTo(c,q+h).lineTo(c+e,q+h).lineTo(c+e,q).close();p.stroke(this.stroke());
  p.fill(m)}}};
  $.g.AH=function(a,b,c,d,e){c=a.top-c/2+d;var f=this.scale();if($.J(f,$.RG))this.Zb.moveTo(a.left+b,c).lineTo(a.left-b+a.width,c).lineTo(a.left-b+a.width,c+e).lineTo(a.left+b,c+e).close();else if($.J(f,$.VG)){d=f.$l();for(var f=f.Xh(),h=a.width/d.length,k=0,l=d.length;k<l;k++){var m=d[k],m=m.color||f[m.sourceIndex]||f[f.length-1],p=this.j[k]?this.j[k].clear():this.j[k]=this.Zb.path(),q=a.left+b+h*k;p.moveTo(q,c).lineTo(q+h,c).lineTo(q+h,c+e).lineTo(q,c+e).close();p.stroke(this.stroke());p.fill(m)}}};
  $.g.BH=function(a,b,c,d,e){c=a.left+a.width+c/2-d;var f=this.scale();if($.J(f,$.RG))this.Zb.moveTo(c,a.top+b).lineTo(c,a.top-b+a.height).lineTo(c-e,a.top-b+a.height).lineTo(c-e,a.top+b).close();else if($.J(f,$.VG)){d=f.$l();for(var f=f.Xh(),h=a.height/d.length,k=0,l=d.length;k<l;k++){var m=d[k],m=m.color||f[m.sourceIndex]||f[f.length-1],p=this.j[k]?this.j[k].clear():this.j[k]=this.Zb.path(),q=a.top+b+h*(d.length-1-k);p.moveTo(c,q).lineTo(c,q+h).lineTo(c-e,q+h).lineTo(c-e,q).close();p.stroke(this.stroke());
  p.fill(m)}}};
  $.g.VO=function(){var a=this.FH(),b=this.scale();b||this.scale($.TG());if($.J(b,$.RG))a.clear(),a.stroke(this.stroke()),b=$.wc(b.Xh()),this.zb()?b.angle=0:b.angle=90,a.fill(b);else if($.J(b,$.VG))for(a=0,b=this.j.length;a<b;a++)this.j[a].clear();var c;switch(this.orientation()){case "top":c=this.DH;break;case "right":c=this.CH;break;case "bottom":c=this.AH;break;case "left":c=this.BH}var a=this.stroke(),a=!a||$.to(a)?0:a.thickness?(0,window.parseFloat)(this.stroke().thickness):1,b=a%2?.5:0,d=this.hb(),
  e=bH(this),f=Math.round(this.aa),h=this.$q(this.Ga(),1),k=this.$q(this.ib(),1);c.call(this,d,b,a,Math.max(h,k,e),f)};
  $.g.hb=function(){if(!this.jm||this.W(4)){var a=this.oa();if(a){var b,c;a.top=Math.round(a.top);a.left=Math.round(a.left);a.width=Math.round(a.width);a.height=Math.round(a.height);this.zb()?(b=a.width,c=a.height):(b=a.height,c=a.width);var d=this.Jg(b);c=this.width()?$.M(this.width(),c):$.Iv(this,a,d);var e,f,h=this.padding(),k=$.M(h.N("top"),a.height),l=$.M(h.N("right"),a.width),m=$.M(h.N("bottom"),a.height),h=$.M(h.N("left"),a.width),p=this.align(),q;this.zb()?(d+l+h>b&&(d=b-(l+h)),"left"==p||"top"==
  p?q=h:"right"==p||"bottom"==p?q=b-d-l:"center"==p&&(q=(b-d-l-h)/2)):(d+m+k>b&&(d=b-(m+k)),"left"==p||"top"==p?q=k:"right"==p||"bottom"==p?q=b-d-m:"center"==p&&(q=(b-d-m-k)/2));var r,t;switch(this.orientation()){case "top":f=a.top+k;e=a.left+q;t=c;r=d;break;case "right":f=a.top+q;e=a.left+a.width-c-l;t=d;r=c;break;case "bottom":f=a.top+a.height-c-m;e=a.left+q;t=c;r=d;break;case "left":f=a.top+q,e=a.left+h,t=d,r=c}this.jm=new $.I(Math.round(e),Math.round(f),Math.round(r),Math.round(t))}else this.jm=
  new $.I(0,0,0,0);this.U(4)}return this.jm};$.g.Jg=function(a){return $.M(this.Yc,a)};
  $.g.CR=function(a,b){var c=this.Ga(),d=this.ib(),e=this.$q(c),f=this.$q(d),h=bH(this);"outside"==c.position()?"outside"==d.position()?c=Math.max(a+e,b+f):(c="inside"==d.position()?Math.max(a+e,b):Math.max(a+e,b+f),h=Math.max(f,h)):"inside"==c.position()?"outside"==d.position()?(c=Math.max(a,b+f),h=Math.max(e,h)):(c="inside"==d.position()?Math.max(a,b):Math.max(a,b+f),h=Math.max(e,f,h)):"outside"==d.position()?(c=Math.max(a+e,b+f),h=Math.max(e,h)):(c="inside"==d.position()?Math.max(a+e,b):Math.max(a+
  e,b+f),h=Math.max(e,f,h));e=this.stroke();return c+h+(Math.round(this.aa)+(!e||$.to(e)?0:e.thickness?(0,window.parseFloat)(e.thickness):1))};$.g.scale=function(a){(a=$.ZG.I.scale.call(this,a))||(this.ha||(this.ha=$.TG(),this.ha.Xh("#fff","#000")),a=this.ha);return a};$.g.gT=function(){return 48};$.g.rB=function(a){$.U(a,2)&&$.$G(this);$.ZG.I.rB.call(this,a)};
  $.g.ea=function(){if(!this.ic())return this;this.W(1024)&&(this.g&&(this.g.$(this.$()),this.g.zIndex(this.zIndex()+1),this.g.ea(),this.g.$e().visible(!1)),this.U(1024));this.W(2)&&this.g&&this.g.$(this.$());if(this.W(8)&&this.g){var a=this.zIndex();this.g.zIndex(a+1)}return $.ZG.I.ea.call(this)};
  $.g.J$=function(a){var b=this.scale(),c=this.o,d=c.Sd()||c.Pm();if(this.enabled()&&b&&c&&c.enabled()&&d==b){var d=this.Zb.sb(),e,f;this.zb()?(e=a.clientX,f=d.left+$.Tj(this.$().Ca()).x,d=(e-f)/d.width):(e=a.clientY,f=d.top+$.Tj(this.$().Ca()).y,d=(d.height-(e-f))/d.height);d=b.Ic(d);a.metaKey||a.shiftKey||!c.map||c.map.vd();if($.J(b,$.VG))d=b.Gj(d),b&&c&&(e=this.ca[d.sourceIndex],b=c.Yb(),b=b.Bd(),"single"==b.Mc()?this.nc={ia:c,qc:e}:this.nc=[{ia:c,qc:e,Kj:e[e.length-1],fd:{index:e[e.length-1],Le:0}}]);
  else if($.J(b,$.RG)){a=c.hc();e=window.Infinity;for(var h=window.NaN,k=b.Rf(),l=b.yg();a.advance();){f=a.get(c.Xd?c.Xd.Ui:c.vl[1]);f=$.Hb(f,k,l);var m=Math.abs(d-f);e>m&&(e=m,h=f)}e=[];a=c.hc();for(d=h;a.advance();)f=a.get(c.Xd?c.Xd.Ui:c.vl[1]),f=$.Hb(f,k,l),f==d&&e.push(a.sa());b&&c&&(b=c.Yb(),b=b.Bd(),"single"==b.Mc()?this.nc={ia:c,qc:e}:this.nc=[{ia:c,qc:e,Kj:e[e.length-1],fd:{index:e[e.length-1],Le:0}}])}}};
  $.g.PO=function(a){var b=this.scale(),c=this.o,d=c.Sd()||c.Pm();if(this.enabled()&&b&&c&&c.enabled()&&d==b){var d=this.Zb.sb(),e,f;this.zb()?(e=a.clientX,f=d.left+$.Tj(this.$().Ca()).x,d=(e-f)/d.width):(e=a.clientY,f=d.top+$.Tj(this.$().Ca()).y,d=(d.height-(e-f))/d.height);var h,d=b.Ic(d);if($.J(b,$.VG))a=b.Gj(d),h=this.ca[a.sourceIndex],b=c.Yb(),f=b.Bd(),"single"==f.Mc()?this.nc={ia:c,qc:h}:this.nc=[{ia:c,qc:h,Kj:h[h.length-1],fd:{index:h[h.length-1],Le:0}}];else if($.J(b,$.RG)&&c){f=c.hc();h=window.Infinity;
  for(var k=window.NaN,l=b.Rf(),m=b.yg();f.advance();){e=f.get(c.Xd?c.Xd.Ui:c.vl[1]);e=$.Hb(e,l,m);var p=Math.abs(d-e);h>p&&(h=p,k=e)}h=[];f=c.hc();for(d=k;f.advance();)e=f.get(c.Xd?c.Xd.Ui:c.vl[1]),e=$.Hb(e,l,m),e==d&&h.push(f.sa());b&&c&&(b=c.Yb(),f=b.Bd(),"single"==f.Mc()?(this.nc&&!(0,$.Bz)(h,function(a){return $.eb(this.nc.qc,a)},this)&&b.dispatchEvent(b.th("hovered",a,[{ia:c,qc:[],fd:{index:this.nc.qc[this.nc.qc.length-1],Le:0}}],!1)),this.nc={ia:c,qc:h}):this.nc=[{ia:c,qc:h,Kj:h[h.length-1],
  fd:{index:h[h.length-1],Le:0}}])}$.cH(this,d)}};$.g.E0=function(){$.dH(this);var a=this.o;a&&(this.b=a)};$.g.remove=function(){$.ZG.I.remove.call(this);this.g&&this.g.remove()};$.g.O=function(){var a=$.ZG.I.O.call(this);a.marker=this.yH().O();a.colorLineSize=this.NC();a.length=this.length();a.align=this.align();return a};$.g.ga=function(a,b){$.ZG.I.ga.call(this,a,b);this.yH(a.marker);this.NC(a.colorLineSize);this.length(a.length);this.align(a.align)};$.G(eH,$.ZG);$.os(eH,$.ZG);var hH=$.ZG.prototype;
  hH.marker=hH.yH;hH.colorLineSize=hH.NC;hH.length=hH.length;hH.align=hH.align;hH=eH.prototype;$.F("anychart.standalones.colorRange",function(){var a=new eH;a.va(!0,$.jm("standalones.colorRange"));return a});hH.padding=hH.padding;hH.draw=hH.ea;hH.parentBounds=hH.oa;hH.container=hH.$;hH.colorLineSize=hH.NC;}).call(this,$)}
  if(!_.theme_color_scales){_.theme_color_scales=1;(function($){$.wa($.fa.anychart.themes.defaultTheme,{defaultColorRange:{enabled:!1,stroke:"#B9B9B9",orientation:"bottom",title:{enabled:!1},colorLineSize:10,padding:{top:10,right:0,bottom:0,left:0},margin:0,align:"center",length:"50%",marker:{padding:3,positionFormatter:$.vG,enabled:!0,disablePointerEvents:!1,position:"center",rotation:0,anchor:"center",offsetX:0,offsetY:0,type:"triangle-down",fill:"#333 0.85",stroke:"none",size:7},labels:{offsetX:0,offsetY:0,fontSize:11,padding:0},ticks:{stroke:"#B9B9B9",position:"outside",
  length:5,enabled:!0},minorTicks:{stroke:"#B9B9B9",position:"outside",length:3,enabled:!1}},defaultOrdinalColorScale:{inverted:!1,ticks:{maxCount:100},autoColors:function(a){return $.Nl("#90caf9","#01579b",a)}},defaultLinearColorScale:{maxTicksCount:1E3,colors:["#90caf9","#01579b"],minimumGap:0,maximumGap:0}});$.wa($.fa.anychart.themes.defaultTheme.standalones,{colorRange:{enabled:!0,zIndex:50}});}).call(this,$)}
  if(!_.treemap_part){_.treemap_part=1;(function($){var L8=function(a){this.b=a;this.reset()},M8=function(a,b){this.ya=a;this.node=b;this.index=b.G("index")},N8=function(a,b){function c(a){a.enabled(null)}$.Pu.call(this);this.vl=["x","value"];this.g=null;this.Na=0;this.ca=[];this.Sa=[];this.Ja=[];this.Y=[];this.state=new $.uu(this);this.data(a,b);var d={};$.vp(d,[["fill",16,65],["stroke",16,65],["hatchFill",16,65],["labels",0,0],["markers",0,0],["headers",0,0]]);this.B=new $.pw(this,d,$.cm);this.B.ua.labelsAfterInitCallback=$.qw;$.iq(this.B,"markersAfterInitCallback",
  function(a){a.mb(this);a.oy="star5";$.S(a,this.Ik,this)});d={};$.vp(d,[["fill",16,65],["stroke",16,65],["hatchFill",16,65],["labels",0,0],["markers",0,0]]);this.P=new $.pw(this,d,2);this.P.ua.labelsAfterInitCallback=c;this.F=new $.pw(this,d,1);this.F.Al("headers",[0,0]);this.F.ua.labelsAfterInitCallback=c;$.vp(this.J,[["maxDepth",66064,129],["hintDepth",65552,1],["hintOpacity",262144,1],["maxHeadersHeight",16,1],["sort",16,1],["headersDisplayMode",16,1],["labelsDisplayMode",16,1]])},O8=function(a,
  b){for(var c=[],d=b;d=d.getParent();)c.unshift(a.$d(d.G("index")));c.push(a.$d(b.G("index")));return c},Q8=function(a,b){var c=a.G(P8);return b.G(P8)-c},Gga=function(a,b){return-Q8(a,b)},R8=function(a,b,c){b.G("index",a.Na++).G("depth",c);a.ca.push(b);var d,e=b.cc();if(e){var f=0;d=0;for(var h,k=0;k<e;k++)h=R8(a,b.Cc(k),c+1),f+=h[0],d+=h[1];c=f;a.ji(d)&&b.G(S8,!0)}else c=b.get("value"),d=b.get(P8),c=$.O(c),d=$.O(d)||c,a.ji(d)&&(b.G(S8,!0),d=c=0);b.G(P8,d);b.G("value",c);return[c,d]},Iga=function(a,
  b,c){"none"!=a.N("sort")&&b.sort(a.Ua);a=Array(b.length);var d=c.left,e=c.top,f=c.width,h=c.height,k=f,l=h,m=(0,$.hh)(b,function(a,b){return a+b.G(P8)},0);c=a.length;for(var p=f*h/m,m=0;m<c;m++)a[m]||(a[m]={}),a[m].eN=$.Om(b[m].G(P8)*p,4);for(var q=p=0,r=k>l,m=Number.MAX_VALUE,t,u=0,v=0,w;q<c;)if(t=Hga(a,k,l,p,q,r),t>m){l=k=0;for(m=p;m<q;m++)w=a[m],w.x=d+u+k,w.y=e+v+l,r?l+=w.height:k+=w.width;r?u+=a[p].width:v+=a[p].height;k=f-u;l=h-v;r=k>l;q=p=q;m=Number.MAX_VALUE}else{for(m=p;m<=q;m++)w=a[m],w.width=
  1>w.VA?1:$.Om(w.VA,4),w.height=1>w.Az?1:$.Om(w.Az,4);m=t;q++}h=f=0;for(m=p;m<q;m++)w=a[m],w.x=d+u+f,w.y=e+v+h,r?h+=w.height:f+=w.width;for(m=0;m<c;m++)w=a[m],b[m].G("pointBounds",$.bn(w.x,w.y,w.width,w.height))},Hga=function(a,b,c,d,e,f){var h=0,k;for(k=d;k<=e;k++)h+=a[k].eN;f?(b=c/h,c=h/c):(c=b/h,b=h/b);for(k=d;k<=e;k++)d=a[k],f?(d.Az=b*d.eN,d.VA=c):(d.VA=c*d.eN,d.Az=b);d=a[e];return Math.max(d.Az/d.VA,d.VA/d.Az)},T8=function(a){$.J(a,$.eD)&&(a=a.Gi);return a==a.om().Cc(0)},U8=function(a){a.ba||
  (a.ba=new $.Nt);var b=a.la(),c=b.g,b={chart:{value:a,type:""},index:{value:b.sa(),type:"number"},name:{value:c.get("name"),type:"string"},value:{value:c.G("value"),type:"number"},size:{value:c.G("size"),type:"number"}};a.ba.Eh(c).vh([a]);return $.Ct(a.ba,b)},W8=function(a,b){var c=a.la().g,d=c.G("pointBounds"),e=c.G(V8);if(0==e||2==e){var f=!!(b&2),e=!f&&!!(b&1),h=a.Za().pb(),k=a.Kb().pb(),l=a.selected().pb(),m=c.G("index"),p;p=f?l:e?k:h;var q=c.get("normal"),q=$.n(q)?q.marker:void 0,r=c.get("hovered"),
  r=$.n(r)?r.marker:void 0,t=c.get("selected"),t=$.n(t)?t.marker:void 0,q=$.so(q,c.get("marker")),r=$.so(r,c.get("hoverMarker")),c=$.so(t,c.get("selectMarker")),t=$.rv(h,m),u=q&&$.n(q.enabled)?q.enabled:null,v=r&&$.n(r.enabled)?r.enabled:null,w=c&&$.n(c.enabled)?c.enabled:null;(e||f?e?null===v?k&&null===k.enabled()?null===u?h.enabled():u:k.enabled():v:null===w?l&&null===l.enabled()?null===u?h.enabled():u:l.enabled():w:null===u?h.enabled():u)?(l=a.la().g,f=!!(b&2),k=!f&&!!(b&1),v=l.get("normal"),v=$.n(v)?
  v.marker:void 0,w=l.get("hovered"),w=$.n(w)?w.marker:void 0,u=l.get("selected"),u=$.n(u)?u.marker:void 0,v=$.so(v,l.get("marker"),null),w=$.so(w,l.get("hoverMarker"),null),l=$.so(u,l.get("selectMarker"),null),u=v&&v.position?v.position:null,v=w&&w.position?w.position:null,l=l&&l.position?l.position:null,f=k&&(v||a.Kb().pb().position())||f&&(l||a.selected().pb().position())||u||a.Za().pb().position(),f=$.Ck(f),d={value:$.co(d,f)},t?t.rc(d):t=h.add(d,m),t.ig(),$.uv(t,p),t.wc(q,e?r:c),t.ea()):t&&h.clear(t.sa())}},
  X8=function(){return""},Y8=function(a,b){return!(a&&null!=a.enabled)&&(null===a||a&&$.n(a.enabled)&&null===a.enabled||null===b.enabled())},$8=function(a,b){var c=a.la().g,d=c.G("pointBounds"),e=c.G("index"),c=c.G(V8);if(0==c||2==c)c=!1;else if(c==Z8)c=!0;else return;var f,h,k;c?(f=a.Za().headers(),h=a.Kb().headers(),k=null):(f=a.Za().labels(),h=a.Kb().labels(),k=a.selected().labels());var l=!!(b&2),m=!l&&!!(b&1);h=l?k:m?h:f;k=c?a.N("headersDisplayMode"):a.N("labelsDisplayMode");var p;var q=c,r=a.la().g,
  l=r.G("index"),t,u,v,w="label",x="hoverLabel",z="selectLabel";q?(t=a.Za().headers(),u=a.Kb().headers(),v=null,w="header",x="hoverHeader",z=null):(t=a.Za().labels(),u=a.Kb().labels(),v=a.selected().labels());var E=!!(b&2),N=!E&&!!(b&1),R=t.Yd(l),P,aa=null;E?aa=P=v:N?aa=P=u:P=t;var X=r.get("normal"),X=$.n(X)?X[w]:void 0,ba=r.get("hovered"),ba=$.n(ba)?ba[w]:void 0,Y=r.get("selected"),Y=$.n(Y)?q?void 0:Y[w]:void 0,w=$.so(X,r.get(w)),x=N?$.so(ba,r.get(x)):null,r=E?$.so(Y,r.get(z)):null,z=w&&$.n(w.enabled)?
  w.enabled:null,Y=r&&$.n(r.enabled)?r.enabled:null,ba=x&&$.n(x.enabled)?x.enabled:null,ja;q?ja=!Y8(N?x:w,P):ja=N||E?N?null===ba?null===u.enabled()?null===z?t.enabled():z:u.enabled():ba:null===Y?null===v.enabled()?null===z?t.enabled():z:v.enabled():Y:null===z?t.enabled():z;if(ja){var z=a.la().g,Ja="label",X="hoverLabel",Y="selectLabel";q?(P=a.Za().headers(),ja=a.Kb().headers(),u=null,Ja="header",X="hoverHeader",Y=null):(P=a.Za().labels(),ja=a.Kb().labels(),u=a.selected().labels());v=!!(b&2);var E=!v&&
  !!(b&1),ha=z.get("normal"),ha=$.n(ha)?ha[Ja]:void 0,db=z.get("hovered"),db=$.n(db)?db[Ja]:void 0,ba=z.get("selected"),ba=$.n(ba)?q?void 0:ba[Ja]:void 0,q=$.so(ha,z.get(Ja)),X=E?$.so(db,z.get(X)):null,z=v?$.so(ba,z.get(Y)):null,q=q&&q.anchor?q.anchor:null,Y=X&&X.anchor?X.anchor:null,z=z&&z.anchor?z.anchor:null,q=E||v?E?Y?Y:ja.N("anchor")?ja.N("anchor"):q?q:P.N("anchor"):z?z:u.N("anchor")?u.N("anchor"):q?q:P.N("anchor"):q?q:P.N("anchor"),q=a.Vo(q);P=U8(a);R?($.bv(t,l),R.Fe(P),R.rc(q)):R=t.add(P,q,l);
  R.ig();$.dv(R,aa);R.wc(w,N?x:r);l=R}else R&&t.clear(R.sa()),l=null;if(l){t=$.Zu(l);(N=t.adjustByHeight||t.adjustByHeight)&&"same"==$.Su(f)&&(p=$.kv(l,d.width,d.height,t.minFontSize,t.maxFontSize,t.adjustByWidth,t.adjustByHeight));N?$.PG(f,p):$.PG(f,null);t.width=null;t.height=null;if(t.adjustByWidth||t.adjustByHeight)t.fontSize=$.cv(l).Uc.fontSize;p=f.measure(l.Fe(),l.rc(),t);t=!1;var sb;if(d.left<=p.left&&d.Ra()>=p.Ra()&&d.top<=p.top&&d.Ka()>=p.Ka())l.width(d.width),l.height(d.height);else if("drop"==
  k)c?(t=!0,sb=h.Zd("format"),h.format(X8),l.width(d.width),l.height(d.height)):f.clear(e);else if(l.width()!=p.width||l.height()!=p.height)l.g=null,l.width(d.width),l.height(d.height);"always-show"!=k?l.clip(d):l.clip(null);if(c){var Zb;if(Zb=$.n(l.enabled())&&!m?!l.enabled():!h.enabled())sb=h.Zd("format"),h.format(X8),l.enabled(!0)}l.ea();if(t||Zb)h.ua.format=sb}},b9=function(a,b){var c=a.la().g,d=c.G(a9);if(d){var e=c.G(V8),f=c.G("value"),c=$.am("fill",1,!0)(a,b,!1);2==e?c=$.Tl(c,a.N("hintOpacity"),
  !0):4==e&&(c=a.o?a.o.Nr(f):c);e=$.am("stroke",2,!0)(a,b,!1);d.stroke(e);d.fill(c)}},c9=function(a,b){var c=a.la().g.G("hatchShape");if(null!=c){var d=$.am("hatchFill",3,!0)(a,b,!1);c.stroke(null).fill(d)}},d9=function(a,b,c,d){if(!(b.G(S8)||(c=c.clone(),1>c.width||1>c.height))){var e=b.cc(),f=b.ly(),h=null,k,l=b.G(V8);if(0==l||4==l)h=c.clone(),b.G("pointBounds",h);else{if(l==Z8){var h=c,m=b.G("index");k=b.get("header");var p=a.Za().headers();if(Y8(k,p))h=$.bn(h.left,h.top,h.width,0);else{k=k||{};
  k.width||(k.width=h.width);a.la().select(m);var q=U8(a),m=$.M(a.N("maxHeadersHeight"),h.height);k=p.measure(q,void 0,k);k.height>m&&(k.height=m);h=$.bn(h.left,h.top,h.width,k.height)}k=$.bn(c.left,c.top+h.height,c.width,c.height-h.height);b.G("pointBounds",h);b.G("contentBounds",k)}if(2==l||3==l)h=c.clone(),b.G("pointBounds",h),b.G("contentBounds",h);Iga(a,f,k||h);for(c=0;c<e;c++)f=b.Cc(c),h=f.G("pointBounds"),d9(a,f,h,d+1)}b=b.G("index");a.la().select(b);b=$.zu(a.state,b);if(3!=l)if(l==Z8)$8(a,b);
  else{e=a.la().g;f=e.G("pointBounds");c=e.G(V8);d=$.Ty(a.ha);e.G(a9,d);b9(a,b);var f=$.bn($.Om(f.left,4),$.Om(f.top,4),$.Om(f.width,4),$.Om(f.height,4)),h=d.stroke(),r=0;h&&(r=$.Ac(h));f.left+=r/2;f.width-=r;f.top+=r/2;f.height-=r;h=$.qo(f.left,r);k=h-f.left;var p=$.qo(f.width,r),m=p-f.width,q=$.qo(f.top,r),t=q-f.top,r=$.qo(f.height,r),u=r-f.height;f.left=h;f.width=p-k-m;f.top=q;f.height=r-t-u;d.Qe(f);if(a.B.N("hatchFill")||a.F.N("hatchFill")||a.P.N("hatchFill"))f=$.Ty(a.Ba),f.jd(d.O()),e.G("hatchShape",
  f),c9(a,b);4!=c&&d&&(e=a.la().g,d.tag={ia:a,index:e.G("index"),node:e});4!=l&&($8(a,b),W8(a,b))}}},e9=function(a,b,c){var d=a.N("maxDepth"),e=a.N("hintDepth");if(!(c>d+e)){var f,d=b.cc(),e=a.N("maxDepth"),h=a.N("hintDepth");d?c<e?f=Z8:c==e?f=h?2:0:c>e&&(f=c==e+h?4:3):f=c<=e?0:4;b.G(V8,f);a.Sa[b.G("index")]=b;if(d=b.cc())for(e=0;e<d;e++)e9(a,b.Cc(e),c+1);b=b.G("value");0==f||2==f?a.Ja.push(b):4==f&&a.Y.push(b)}},f9=function(a){if(a.W(4096)){a.Na=0;a.ca=[];a.Sa=[];a.Ja=[];a.Y=[];a.g=null;a.U(4096);
  var b=a.data();if(b){var c=b.cc();if(1<c)$.jl(18);else if(!c)return;a.g||(a.g=b.Cc(0));R8(a,b.Cc(0),0);a.D(98320)}}},g9=function(a,b){var c=new N8(a,b);c.va(!0,$.jm("treeMap"));return c};$.G(L8,$.qq);$.g=L8.prototype;$.g.advance=function(){this.g=this.b[++this.j];var a=this.Ib();return!!a&&this.j<a};$.g.get=function(a){if(!(this.j>=this.Ib())&&$.n(a)&&this.g&&this.g.G){var b=this.g.G("type");return 1==b||3==b||4==b?void 0:this.g.G(a)}};$.g.sa=function(){return this.j};$.g.Ib=function(){return this.b.length};
  $.g.G=function(a,b){if(this.g&&this.g.G)return 1<arguments.length?(this.g.G(a,b),this):this.g.G(a)};$.G(M8,$.Ax);$.g=M8.prototype;$.g.sa=function(){return this.index};$.g.Yb=function(){return this.ya};$.g.GK=function(){return this.node};$.g.get=function(a){return this.node.get.apply(this.node,arguments)};$.g.set=function(a){this.node.set.apply(this.node,arguments);return this};$.g.Kb=function(a){var b=$.Eu(this.ya.state,1,this.index);return $.n(a)&&b!=a?(a?this.ya.eg(this.index):this.ya.Qc(this.index),this):b};
  $.g.selected=function(a){if(this.node.cc())return $.n(a)?this:!1;var b=$.Eu(this.ya.state,2,this.index);return $.n(a)&&b!=a?(a?this.ya.jg(this.index):this.ya.vd(this.index),this):b};$.g.$s=function(){return!0};var h9=M8.prototype;h9.getIndex=h9.sa;h9.getChart=h9.Yb;h9.getNode=h9.GK;h9.get=h9.get;h9.set=h9.set;h9.hovered=h9.Kb;h9.selected=h9.selected;h9.exists=h9.$s;$.G(N8,$.Pu);$.Hp(N8,"fill stroke hatchFill labels markers headers".split(" "));N8.prototype.Aa=$.Pu.prototype.Aa|128;N8.prototype.xa=$.Pu.prototype.xa|520208;var i9=function(){var a={};$.tp(a,[[0,"maxDepth",function(a){return $.bo(a,1,!1)}],[0,"hintDepth",function(a){return $.bo(a,0,!1)}],[0,"hintOpacity",$.cq],[0,"maxHeadersHeight",$.Bp],[0,"sort",function(a){return $.Mk(a,"desc")}],[0,"headersDisplayMode",$.QG],[0,"labelsDisplayMode",$.QG]]);return a}();$.Gp(N8,i9);$.g=N8.prototype;$.g.Va=function(){return"tree-map"};
  $.g.la=function(){return this.Ha||this.hc()};$.g.hc=function(){return this.Ha=new L8(this.Sa)};$.g.xg=function(){return!0};$.g.vf=function(){return!0};$.g.Yg=function(){return!1};$.g.jh=function(a){var b=this.la().g;$.n(b)&&!b.G(S8)&&(b.G(V8)==Z8?$8(this,a):(b.G(a9)&&(b9(this,a),c9(this,a)),$8(this,a),W8(this,a)))};$.g.kh=$.ia;$.g.Hi=$.ia;$.g.Mc=function(a){return $.n(a)?(a=$.yk(a),a!=this.qa&&(this.qa=a),this):this.qa};
  $.g.De=function(a){return $.n(a)?(a=null===a?null:$.Ak(a),a!=this.Ia&&(this.Ia=a),this):this.Ia};
  $.g.If=function(a){a={type:a.type,target:this,relatedTarget:$.js(a.relatedTarget)||a.relatedTarget,domTarget:a.target,relatedDomTarget:a.relatedTarget,offsetX:a.offsetX,offsetY:a.offsetY,clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,button:a.button,keyCode:a.keyCode,charCode:a.charCode,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,metaKey:a.metaKey,platformModifierKey:a.platformModifierKey,state:a.state};var b=$.Tn(a.domTarget);a.pointIndex=$.O(b.index);return a};
  $.g.lf=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in a&&(c=a.markerIndex);c=$.O(c);a.pointIndex=c;return{type:b,actualTarget:a.target,
  series:this,pointIndex:c,target:this,originalEvent:a,point:this.$d(c)}};$.g.$d=function(a){return a in this.ca?new M8(this,this.ca[a]):null};$.g.oD=function(a,b){a=$.y(a)&&a.length?a[0]:a;if(this.b&&this.b.target()){var c=this.b.target();if(c==b){var d=c.la();d.select(a);c=d.G(c.vl[1]);$.cH(this.b,c)}}};$.g.Xs=function(){this.b&&this.b.enabled()&&$.dH(this.b)};$.g.hp=function(a){return $.J(a,$.ZG)};
  $.g.qD=function(a,b){b=b||{target:this};var c=O8(this,a),c={type:"drillchange",path:c,current:c[c.length-1]};this.vd();this.ec&&(this.dispatchEvent(this.th("selected",b,this.ec,!0)),this.ec=null);this.dispatchEvent(c)&&(this.g=a,this.D(66064,129))};
  $.g.Ml=function(a){if(a.button==$.tj&&!$.J(a.target,$.hu)&&!this.hp(a.target)){var b=$.Tn(a.domTarget),c;if($.J(a.target,$.Tu)||$.J(a.target,$.qv)){var d=a.target.tg();d.xg&&d.xg()&&(c=d)}else c=b&&b.ia,b=$.C(b.index)?b.index:a.pointIndex;c&&!c.xd&&c.enabled()&&$.D(c.lf)&&(c=this.la(),c.select(b),c=c.g,c==this.g?T8(c)||this.qD(c.getParent()):c.cc()?this.qD(c):N8.I.Ml.call(this,a))}};$.g.WQ=function(){f9(this);return this.g?O8(this,this.g):null};
  $.g.jg=function(a,b){if(!this.enabled())return this;var c=!(b&&b.shiftKey);$.y(a)?(b||this.vd(),this.state.o(2,a,c?1:void 0)):$.C(a)&&this.state.o(2,a,c?1:void 0);return this};$.g.vd=function(a){if(this.enabled()){var b;$.n(a)?b=a:b=this.state.j==$.cm?window.NaN:void 0;this.state.g(2,b)}};
  $.g.eg=function(a){if(!this.enabled())return this;if($.y(a)){for(var b=$.Du(this.state,1),c=0;c<b.length;c++)$.eb(a,b[c])||this.state.g(1,b[c]);$.Bu(this.state,1,a)}else $.C(a)&&(this.Qc(),$.Bu(this.state,1,a));return this};$.g.Qc=function(a){if(($.yu(this.state,1)||$.Fu(this.state.Kg(),1))&&this.enabled()){var b;$.n(a)?b=a:b=this.state.j==$.cm?window.NaN:void 0;this.state.g(1,b)}};$.g.pq=function(){return!0};
  $.g.data=function(a,b){return $.n(a)?($.J(a,$.fD)||$.J(a,$.dD)?a!=this.La&&(this.La=a):this.La=new $.fD(a,b),this.D(4352,1),this):this.La};
  $.g.VQ=function(a){this.Gb&&(this.Qc(),this.dispatchEvent(this.th("hovered",{target:this},this.Gb,!0)),this.Gb=null);f9(this);var b=null,c;if($.J(a,$.iD)||$.J(a,$.eD))b=a;else if($.y(a)){if((c=this.data())&&c.cc()){c=c.Cc(0);for(var d=0;d<a.length;d++)if(c)c=c.Cc(a[d]);else break;c&&(b=c)}}else(c=this.data())&&c.cc()&&(b=c.Cr("id",a)[0]);this.g=b;this.D(66064,129)};$.g.u7=function(){f9(this);this.g&&!T8(this.g)&&(this.g=this.g.getParent(),this.D(66064,129))};
  $.g.Zm=function(a){return"categories"==a};$.g.il=function(a,b){var c=a.G(),d;if("categories"==this.be().Zg()){d=c.ia;var e=c.scale;if(e&&d){for(var c=c.Hd,f=d.hc(),h=[];f.advance();){var k=f.get(d.vl[1]);c==e.Gj(k)&&h.push(f.sa())}if(e=$.Tn(b.domTarget))"single"==this.Bd().Mc()?e.nc={ia:d,qc:h}:e.nc=[{ia:d,qc:h,Kj:h[h.length-1],fd:{index:h[h.length-1],Le:0}}];this.b&&this.b.enabled()&&this.b.target()&&$.cH(this.b,(c.start+c.end)/2)}}};
  $.g.hl=function(a,b){var c=a.G();if("categories"==this.be().Zg()){if("single"==this.Bd().Mc()){var d=$.Tn(b.domTarget);d&&(d.ia=c.ia)}this.b&&this.b.enabled()&&this.b.target()&&$.dH(this.b)}};$.g.bj=function(a){var b,c=[];this.yc();if("categories"==a){var d=this.Sd();if(d&&$.J(d,$.VG)){var e=d.$l();a=0;for(b=e.length;a<b;a++){var f=e[a];c.push({text:f.name,iconEnabled:!0,iconType:"square",iconFill:f.color,disabled:!this.enabled(),sourceUid:$.ra(this),sourceKey:a,meta:{ia:this,scale:d,Hd:f}})}}}return c};
  $.g.we=function(){return[this]};$.g.Yb=function(){return this};$.g.Um=function(){return[]};var P8="size",V8="type",S8="missing",a9="shape",Z8=1;$.g=N8.prototype;$.g.ji=function(a){return(0,window.isNaN)(a)||0>=a};$.g.Za=function(a){return $.n(a)?(this.B.X(a),this):this.B};$.g.Kb=function(a){return $.n(a)?(this.F.X(a),this):this.F};$.g.selected=function(a){return $.n(a)?(this.P.X(a),this):this.P};$.g.daa=function(a){$.U(a,1)&&this.D(16,1)};$.g.sd=function(a){$.U(a,1)&&this.D(16,1)};
  $.g.Ik=function(a){$.U(a,1)&&this.D(16,1)};$.g.Sd=function(a){if($.n(a)){if(null===a&&this.K)this.K=null,this.D(33280,1);else if(a=$.Or(this.K,a,null,48,null,this.t7,this)){var b=this.K==a;this.K=a;$.K(this.o);this.K?this.o=$.Ir(this.K.Va(),null):this.o=null;this.K.ka(b);b||this.D(33280,1)}return this}return this.K};$.g.t7=function(a){$.U(a,6)&&this.D(33280,1)};$.g.cJ=function(a){this.b||(this.b=new $.ZG,this.b.mb(this),$.S(this.b,this.s7,this),this.D(131076,1));return $.n(a)?(this.b.X(a),this):this.b};
  $.g.s7=function(a){var b=0,c=0;$.U(a,1)&&(b|=131088,c|=1);$.U(a,8)&&(b|=4,c|=8);this.D(b,c)};$.g.Dh=function(){return U8(this)};$.g.Vo=function(a){var b=this.la().G("pointBounds");a=$.Ck(a);return{value:$.co(b,a)}};$.g.Ci=function(){return $.zc($.jm("hatchFillPalette.items.0"))};$.g.Tk=function(){var a=this.la(),b=this.Ci();return{index:a.sa(),sourceHatchFill:b}};$.g.Yi=function(a){var b=this.la().g;a=a||$.jm("palette.items.0");return{value:b.G("value"),sourceColor:a,colorScale:this.Sd()}};
  $.g.Si=function(a,b,c,d,e,f,h){e=(b?1==b?this.F:this.P:this.B).N(a);h?a=e:(h=c.g,c=c.get(b?1==b?"hovered":"selected":"normal"),a=$.so($.n(c)?c[a]:void 0,h.get($.dm(b,a)),e));$.n(a)&&(a=d(a));return a};$.g.nk=function(a,b){return $.sD(this.data(),b)};
  $.g.yc=function(){f9(this);this.g&&(this.W(65536)&&(this.Ja=[],this.Y=[],this.Sa=[],e9(this,this.g,0),this.hc(),this.U(65536),this.D(32768)),this.W(32768)&&(this.K&&(this.K.Ve()?(this.K.mf(),this.K.Nc.apply(this.K,this.Ja),this.K.pf()):(this.K.wl(),this.K.Nc.apply(this.K,this.Ja)),$.J(this.K,$.VG)&&$.bs(this.K.Ga()),this.o.X(this.K.O())),this.o&&(this.o.Ve()?(this.o.mf(),this.o.Nc.apply(this.o,this.Y),this.o.pf()):(this.o.wl(),this.o.Nc.apply(this.o,this.Y))),this.D(16),this.U(32768)))};
  $.g.$h=function(a){if(!$.kq(this)&&(this.yc(),this.g)){this.W(131072)&&this.b&&($.T(this.b),this.b.scale(this.Sd()),this.b.target(this),this.b.ka(!1),this.D(4));var b=this.Za();this.W(4)&&(this.b?(this.b.oa(a.clone().round()),this.fa=this.b.Sc()):this.fa=a.clone(),this.ha&&this.ha.clip(this.fa),b.headers()&&b.headers().clip(this.fa));this.W(131072)&&(this.b&&($.T(this.b),this.b.$(this.Ta),this.b.zIndex(50),this.b.ea(),this.b.ka(!1)),this.U(131072));this.W(16)&&(this.ha?this.ha.clear():(this.ha=new $.Sy(function(){return $.gk()},
  $.ia),this.ha.clip(this.fa),this.ha.zIndex(30),this.ha.parent(this.Ta),b.headers().$(this.Ta).zIndex(41),b.headers().clip(this.fa),b.labels().$(this.Ta).zIndex(40),b.pb().$(this.Ta).zIndex(40)),this.Ba?this.Ba.clear():(this.Ba=new $.Sy(function(){return $.gk()},$.ia),this.Ba.zIndex(31),this.Ba.parent(this.Ta),this.Ba.Xc(!0)),b.headers().clear(),b.labels().clear(),b.pb().clear(),a=this.N("sort"),"desc"==a?this.Ua=Q8:"asc"==a&&(this.Ua=Gga),d9(this,this.g,this.fa,0),b.headers().ea(),b.labels().ea(),
  b.pb().ea(),this.U(262160));if(this.W(262144)){b=this.la();for(b.reset();b.advance();)if(2==b.G(V8)&&(a=b.G(a9))){var c=$.am("fill",1,!1)(this,$.cm,!1),c=$.Tl(c,this.N("hintOpacity"),!0);a.fill(c)}this.U(262144)}}};$.g.sw=function(){this.Jb().Vl()&&this.D(4,9)};
  $.g.eG=function(a,b){var c=$.Tn(b.event.domTarget),d;$.J(b.target,$.Tu)||$.J(b.target,$.qv)?d=this.ca[c]:d=c.node;var c={},e=d.G(V8)==Z8;!d.cc()||e&&d==this.g||(c["drill-down-to"]={index:7,text:"Drill down",eventType:"anychart.drillTo",action:(0,$.ua)(this.qD,this,d)});T8(this.g)||(c["drill-down-up"]={index:7,text:"Drill up",eventType:"anychart.drillUp",action:(0,$.ua)(this.qD,this,this.g.getParent())});$.Nc(c)||(c["drill-down-separator"]={index:7.1});$.Tc(c,$.Sl($.FB["select-marquee"]),a);return c};
  $.g.uj=function(){f9(this);if(this.g){var a=this.g.G(P8),b=this.g.G("value");return this.g.G(S8)||!a&&!b}return!0};
  $.g.ga=function(a,b){N8.I.ga.call(this,a,b);"treeData"in a&&this.data($.hD(a.treeData));if("colorScale"in a){var c=a.colorScale,d=null;$.B(c)?d=$.Ir(c,null):$.A(c)&&(d=$.Ir(c.type,null))&&d.X(c);d&&this.Sd(d)}$.Ip(this,i9,a);this.Mc(a.hoverMode);this.De(a.selectionMode);"colorRange"in a&&this.cJ(a.colorRange);"drillTo"in a&&this.VQ(a.drillTo);this.B.va(!!b,a);this.B.va(!!b,a.normal);this.F.va(!!b,a.hovered);this.P.va(!!b,a.selected)};
  $.g.O=function(){var a=N8.I.O.call(this);this.Sd()&&(a.colorScale=this.Sd().O());a.type=this.Va();var b=this.data();b&&(a.treeData=b.NF());for(var b=this.WQ(),c=[],d,e=1;e<b.length;e++)d=b[e-1].GK(),c[e-1]=d.ae(b[e].GK());c.length&&(a.drillTo=c);a.colorRange=this.cJ().O();$.Rp(this,i9,a,"TreeMap");a.normal=this.Za().O();a.hovered=this.Kb().O();a.selected=this.selected().O();return{chart:a}};$.g.da=function(){$.od(this.B,this.F,this.P);this.P=this.F=this.B=null;N8.I.da.call(this)};var j9=N8.prototype;
  j9.getType=j9.Va;j9.data=j9.data;j9.selectionMode=j9.De;j9.hoverMode=j9.Mc;j9.normal=j9.Za;j9.hovered=j9.Kb;j9.selected=j9.selected;j9.colorScale=j9.Sd;j9.colorRange=j9.cJ;j9.drillTo=j9.VQ;j9.drillUp=j9.u7;j9.getDrilldownPath=j9.WQ;j9.toCsv=j9.nk;$.Yo["tree-map"]=g9;$.F("anychart.treeMap",g9);}).call(this,$)}
  if(!_.theme_treemap){_.theme_treemap=1;(function($){var $$=function(){return this.name||this.getData("id")};
  $.wa($.fa.anychart.themes.defaultTheme,{treeMap:{sort:"desc",labelsDisplayMode:"clip",headersDisplayMode:"always-show",colorRange:{zIndex:50},colorScale:{type:"ordinal-color"},tooltip:{enabled:!0,titleFormat:$$,format:$.vG},legend:{itemsSourceMode:"categories"},maxDepth:1,hintDepth:0,hintOpacity:.4,maxHeadersHeight:"25",normal:{fill:function(){var a;this.colorScale?a=this.colorScale.valueToColor(this.value):a=$.Tl(this.sourceColor,.85,!0);return a},stroke:"#e0e0e0",hatchFill:!1,labels:{enabled:!0,
  hAlign:"center",vAlign:"middle",position:"left-top",anchor:"left-top",fontColor:"#212121",format:function(){return(this.name||this.getData("id"))+"\n"+$.uG(this.value)}},markers:{enabled:!1,position:"center",size:6,fill:"#dd2c00",type:"circle"},headers:{enabled:!0,hAlign:"center",vAlign:"middle",position:"left-top",anchor:"left-top",background:{enabled:!0,fill:"#F7F7F7",stroke:"#e0e0e0"},format:$$}},hovered:{fill:$.EG,stroke:$.DG,hatchFill:!1,labels:{enabled:null,fontWeight:"bold"},markers:{enabled:null,
  size:8},headers:{enabled:!0,fontColor:"#333 0.85",background:{fill:"#e0e0e0",stroke:"#e0e0e0"}}},selected:{fill:"#333 0.85",stroke:"1.5 #212121",hatchFill:!1,labels:{enabled:null,fontColor:"#fafafa"},markers:{enabled:null,size:8,fill:"#333 0.85",stroke:"1.5 #212121"}}}});}).call(this,$)}
  $_=window.anychart;$_.$=$;$_._=_});