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: pyramid-funnel, theme-pyramid-funnel
   * Version: 8.7.1.1930 (2019-12-17)
   * License: https://www.anychart.com/buy/
   * Contact: sales@anychart.com
   * Copyright: AnyChart.com 2019. All rights reserved.
   */
  (function(global,factory){if(typeof module==='object'&&typeof module.exports==='object'){var wrapper=function(w){if(!w.document){throw Error('AnyChart requires a window with a document');}factory.call(w,w,w.document);try{w.acgraph.isNodeJS=Object.prototype.toString.call(global.process)=="[object process]";}catch(e){};return w.anychart;};module.exports=global.document?wrapper(global):wrapper;}else{factory.call(global,window,document)}})(typeof window!=='undefined'?window:this,function(window,document,opt_noGlobal){var $,_,$_=this.anychart;if($_&&(_=$_._)){$=$_.$}else{throw Error('anychart-base.min.js module should be included first. See modules explanation at https://docs.anychart.com/Quick_Start/Modules for details');$={};_={}}if(!_.pyramid_funnel){_.pyramid_funnel=1;(function($){var cY=function(a,b,c){$.Qy.call(this,null,[],[],b,c);this.Aa=a},eY=function(a,b,c){$.Qy.call(this,null,[],[],b,c);this.Aa=a;this.g=!dY(this.Aa);this.oz=this.Aa.i("connectorStroke")},fY=function(a,b,c){$.Rw.call(this);$.V(this);this.ie=a;this.Fa("pieFunnelPyramidBase",a);this.Zc=null;this.D=[];this.ye=null;this.ga=1;this.j=this.Da=null;this.state=new $.uw(this);this.data(b||null,c);a={};$.T(a,[["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["markers",0,0]]);this.ba=new $.zx(this,
  a,$.Vl);this.ba.pa("labelsAfterInitCallback",function(a){$.L(a,this.Wd,this);a.ob(this);this.u(4096,1)});this.ba.pa("markersAfterInitCallback",$.Gx);a={};$.T(a,[["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["markers",0,0]]);this.wa=new $.zx(this,a,$.fo);this.wa.pa("labelsFactoryConstructor",$.Bx);this.Ca=new $.zx(this,a,$.go);this.Ca.pa("labelsFactoryConstructor",$.Bx);$.T(this.ua,[["baseWidth",16,1],["neckHeight",16,1],["neckWidth",16,1],["pointsPadding",16,1],["reversed",16,1],
  ["overlapMode",4096,1],["connectorLength",4100,9],["connectorStroke",16,1]]);this.da(!1)},gY=function(a,b){var c=a.aa().o("point");if($.n(c)){var d=$.Rl("fill",1,!0)(a,b,!1,!0);c.fill(d);d=$.Rl("stroke",2,!0)(a,b,!1,!0);c.stroke(d)}},hY=function(a,b){var c=a.aa().o("hatchPoint");if(null!=c){var d=$.Rl("hatchFill",3,!0)(a,b,!1);c.stroke(null).fill(d)}},iY=function(a,b){var c=a.G,d=a.f.height,e=a.$a,f=a.ta;return b>d-f||d==f?e:e+(d-f-b)/(d-f)*(c-e)},jY=function(a){a=$.N(a);return 0>=a||!(0,window.isFinite)(a)},
  kY=function(a){var b=a.aa(),c=b.la(),d=a.f,e;var f=b.o("height")/2;var h=b.o("startY");var k=b.o("height")+h;var l=null;if(e=a.Ja)c?c==b.Gb()-1?(h+=e/2,h>k&&(h=k-a.ga)):(h+=e/2,k-=e/2,h>k&&(h=b.o("startY")+f,k=h+a.ga)):(k-=e/2,k<h&&(k=a.ga));var m=iY(a,h);c=a.b-m/2;f=c+m;m=iY(a,k);e=a.b-m/2;m=e+m;h+=d.top;k+=d.top;c=d.left+c;f=d.left+f;0<a.ta&&h<a.Ga&&k>a.Ga&&(l=k,k=a.Ga,m=iY(a,k),e=a.b-m/2,m=e+m);e=d.left+e;m=d.left+m;a.i("reversed")||(h=d.height-(h-d.top)+d.top,k=d.height-(k-d.top)+d.top,l=l?d.height-
  (l-d.top)+d.top:null,h=[k,k=h][0],c=[e,e=c][0],f=[m,m=f][0]);b.o("x1",c);b.o("x2",f);b.o("x3",e);b.o("x4",m);b.o("y1",h);b.o("y2",k);b.o("y3",l)},lY=function(a,b,c,d){var e=a.labels();$.V(e);e.fontOpacity(b);e.Y();e.da(!1);if(d&&a.O)for(b=0;b<a.O.length;b++)if(d=a.O[b])e=a.i("connectorStroke"),e=$.Il(e,c),d.stroke(e)},Bga=function(a){var b=a.aa(),c=b.la(),d=$.kB(a.$e),e=$.kB(a.g);b.o("point",d);b.o("hatchPoint",e);kY(a);var f=b.o("x1"),h=b.o("x2"),k=b.o("x3"),l=b.o("x4"),m=b.o("y1"),p=b.o("y2"),q=
  b.o("y3");d.moveTo(f,m).lineTo(h,m);q?d.lineTo(l,p).lineTo(l,q).lineTo(k,q).lineTo(k,p):d.lineTo(l,p).lineTo(k,p);d.close();b.o("point",d);d.tag={index:c,W:a};b=$.zw(a.state,b.la());gY(a,b);e&&(e.ce(d.F()),e.tag={index:c,W:a},hY(a,b))},pY=function(a,b,c){var d=mY(a),e=a.aa(),f=a.f,h=$.n(c)?!!(c&$.go):null,k=$.n(c)?!h&&!!(c&$.fo):null,l=e.get("normal");l=$.n(l)?l.label:void 0;var m=e.get("hovered");m=$.n(m)?m.label:void 0;var p=e.get("selected");p=$.n(p)?p.label:void 0;l=$.Jo(l,e.get("label"));m=k?
  $.Jo(m,e.get("hoverLabel")):null;h=(p=h?$.Jo(p,e.get("selectLabel")):null)||m||l||{};l=$.N(e.o("x1"));p=$.N(e.o("x2"));m=$.N(e.o("y1"));k=$.N(e.o("y2"));var q=$.N(e.o("y3"));e=p-l;k=q?q-m:k-m;m+=k/2;p=$.N(h.offsetY)||0;b?c=nY(a,b,c):(c=a.labels().bl(a.Gc(),null,h),c=$.Zm(c));h=b&&b.i("anchor")||a.labels().i("anchor");b&&(m=b.Ec().value.y);b=m+p;c.height>k&&("left-center"==h||"center"==h||"right-center"==h)&&(m+c.height/2>f.top+f.height&&(m=f.top+f.height-c.height/2),m-c.height/2<f.top&&(m=f.top+c.height/
  2));b=oY(a,b);switch(d){case "inside":l+=e/2;break;case "outside-left":l=a.b-b/2;l=f.left+l-a.ca-c.width/2;break;case "outside-left-in-column":l=f.left+c.width/2;break;case "outside-right":l=a.b+b/2;l=f.left+l+a.ca+c.width/2;break;case "outside-right-in-column":l=f.left+f.width-c.width/2}if("left-top"==h||"center-top"==h||"right-top"==h)m-=.5;else if("left-bottom"==h||"center-bottom"==h||"right-bottom"==h)m+=.5;return{value:{x:l,y:m}}},nY=function(a,b,c){var d=!!(c&$.go),e=!d&&!!(c&$.fo);c=a.data().get(b.la(),
  "label");e=e?a.data().get(b.la(),"hoverLabel"):null;d=(d?a.data().get(b.la(),"selectLabel"):null)||e||c||{};a.data().o(b.la(),"labelWidthForced")&&(d=$.Mc(d),d.width=b.width());a.aa().select(b.la());b.Uf(a.Gc());a=a.labels().bl(b.Uf(),b.Ec(),d);return $.Zm(a)},sY=function(a,b){if("no-overlap"==a.i("overlapMode")&&!dY(a)&&a.labels().enabled()){qY(a);a.Na=0;var c=a.state.Aj()|(b?$.zw(a.state,b.la()):0);rY(a,c,b)}},rY=function(a,b,c){if(10!=a.Na){for(var d=a.aa().Gb(),e=!1,f,h,k,l,m=a.i("reversed"),
  p=0;p<d-1;p++)if(f=m?p:d-1-p,(f=a.labels().de(f))&&0!=f.enabled()&&(h=nY(a,f,b),k=m?Cga(a,f):Dga(a,f))){l=nY(a,k,b);var q=tY(a,f),r=tY(a,k);q&&r&&q==r||!(l.top<=h.top+h.height)||(e=!0,q&&r?Ega(a,q,r):!q&&r?uY(a,k,f):uY(a,f,k))}e&&((0,$.Ke)(a.D,function(a){if(2>a.labels.length){var b=a.Aa;b.D.length&&(a.clear(),$.Fa(b.D,a))}else{for(var d,e,f=0,h=0,k=b=0,l=a.labels.length;k<l;k++)d=a.labels[k],e=a.Aa.state.Aj()|$.zw(a.Aa.state,d.la()),e=a.jd(d,e),d=a.Aa.data().o(d.la(),"point"),d=d.lb(),k||(f=d.top),
  b+=e.height,h+=d.height;h+=a.Aa.Ja*(l-1);f=f+h/2-b/2;h=a.Aa.f;f+b>h.top+h.height&&(f=h.top+h.height-b);f<h.top&&(f=h.top);a.y=f;Fga(a,c)}}),a.Na++,rY(a,b,c))}},Cga=function(a,b){if(!b)return null;var c=a.aa().Gb();if(b.la()==c-1)return null;for(var d,e=b.la()+1;e<=c-1;e++)if((d=a.labels().de(e))&&!1!==d.enabled())return d;return null},Dga=function(a,b){if(!b||0==b.la())return null;for(var c,d=b.la()-1;0<=d;d--)if((c=a.labels().de(d))&&!1!==c.enabled())return c;return null},uY=function(a,b,c){var d=
  tY(a,b);null===d?(d=new vY(a),d.nB(b),d.nB(c),a.D.push(d)):d.nB(c)},tY=function(a,b){return a.D.length?$.ya(a.D,function(a){return-1!==(0,$.za)(a.labels,b)}):null},Ega=function(a,b,c){var d=b.labels[0].la(),e=c.labels[0].la();b.labels=a.i("reversed")==d<e?$.Ga(b.labels,c.labels):$.Ga(c.labels,b.labels);$.Fa(a.D,c)},qY=function(a){a.D.length&&((0,$.Ke)(a.D,function(a){a.clear()}),a.D.length=0)},dY=function(a){return"inside"==mY(a)},wY=function(a){a=mY(a);return"outside-right-in-column"==a||"outside-left-in-column"==
  a},xY=function(a){a=mY(a);return"outside-left"==a||"outside-left-in-column"==a},yY=function(a){a=mY(a);return"outside-right"==a||"outside-right-in-column"==a},Gga=function(a){if(a.labels().enabled()&&!dY(a)){kY(a);var b=a.aa();b.o("labelWidthForced",void 0);var c=a.f,d=b.get("label"),e=pY(a),f=a.Gc();f=a.labels().bl(f,e,d);f=$.Zm(f);d=f.left;e=f.left+f.width;f=a.i("reversed")?iY(a,f.top-c.top):iY(a,c.height-(f.top+f.height)+c.top);if(xY(a)){var h=a.b-f/2;h=c.left+h;var k=a.G/2;k=c.width-a.b-k;wY(a)?
  e+5>h&&(h=e+5-h,h>k?(a.b+=k,h=a.b-f/2,h=c.left+h,b.o("labelWidthForced",h-5-d)):a.b+=h):d<c.left&&(h=Math.abs(c.left-d),h>k?(a.b+=k,h=a.b-f/2,a=h-a.ca,10>a&&(a=10),b.o("labelWidthForced",a)):a.b+=h)}else if(yY(a))if(h=a.b+f/2,h+=c.left,k=a.G/2,k=c.width-(c.width-a.b)-k,wY(a)){if(0>d||d-5<h)h=Math.abs(h-d+5),0>d||h>k?(a.b=a.b-k,h=a.b+f/2,h+=c.left,b.o("labelWidthForced",e-5-h)):a.b=a.b-h}else e>c.left+c.width&&(h=e-(c.left+c.width),h>k?(a.b=a.b-k,a=c.left+c.width-d+k,10>a&&(a=10),b.o("labelWidthForced",
  a)):a.b=a.b-h)}},mY=function(a){a=a.labels().i("position");return $.pk(Hga,"outside"==a?"outside-left":a,"outside-left-in-column")},zY=function(a,b,c,d){var e=a.f,f=b.la();f=a.data().o(f,"point").lb();b=nY(a,b,d);d=b.left;var h=b.top+b.height/2;f=f.top+f.height/2;var k=oY(a,f);if(xY(a)){d+=b.width;var l=a.b-k/2;l+=e.left;d>l&&5>Math.abs(f-h)&&(d=l-5)}else yY(a)&&(l=a.b+k/2,l+=e.left,d<l&&5>Math.abs(f-h)&&(d=l+5));c.clear().moveTo(d,h).lineTo(l,f+.001)},AY=function(a,b,c){var d=b.la();if(a.O[d])zY(a,
  b,a.O[d],c);else{var e=$.kB(a.U);a.O[d]=e;e.stroke(a.i("connectorStroke"));zY(a,b,e,c)}},Iga=function(a,b){b=$.tk(b);var c=a.f,d=a.aa(),e=d.o("point").lb(),f=d.o("x1"),h=d.o("y1");switch(b){case "left-top":h=d.o("y1");f=d.o("x1");break;case "left-center":h+=e.height/2;d=oY(a,h);f=a.b-d/2;f+=c.left;break;case "left-bottom":h+=e.height;f=d.o("x3");break;case "center-top":f=a.b;f+=c.left;break;case "center":h+=e.height/2;oY(a,h);f=a.b;f+=c.left;break;case "center-bottom":h+=e.height;oY(a,h);f=a.b;f+=
  c.left;break;case "right-top":d=oY(a,h);f+=d;break;case "right-center":h+=e.height/2;d=oY(a,h);f=a.b+d/2;f+=c.left;break;case "right-bottom":f=d.o("x4"),h+=e.height}return{value:{x:f,y:h}}},oY=function(a,b){var c=a.f;return a.i("reversed")?iY(a,b-c.top):iY(a,c.height-b+c.top)},BY=function(a){var b=a.Va();a.ec("mousemove",a.aJ);b.Oc()},vY=function(a){this.Aa=a;this.labels=[]},Fga=function(a,b){var c=0,d=0,e=null,f=null,h=null,k=a.Aa.state.Aj()|(b?$.zw(a.Aa.state,b.la()):0);(0,$.Ke)(a.labels,function(b){var l=
  b.Ec().value,p=a.jd(b,k),q=a.y+c+d+p.height/2;if(e&&f&&h){var r=h.y+f.height/2+(e.i("offsetY")||0),t=q-p.height/2+(b.i("offsetY")||0);t<r&&(q+=r-t)}b.Ec({value:{x:l.x,y:q}});b.Y();AY(a.Aa,b,k);c+=p.height;d+=b.i("offsetY")||0;e=b;f=p;h={x:l.x,y:q}})},CY=function(a,b){var c=new fY("funnel",a,b);c.nd();return c},DY=function(a,b){var c=new fY("pyramid",a,b);c.nd();return c},Hga={BO:"inside",wma:"outside-left",xma:"outside-left-in-column",yma:"outside-right",zma:"outside-right-in-column"};$.H(cY,$.Qy);
  $.g=cY.prototype;$.g.update=function(){this.b.length=this.f.length=0;for(var a=this.Aa.Kf();a.advance();)if(!a.o("missing")){var b=a.o("x1"),c=a.o("x2"),d=a.o("x3"),e=a.o("x4"),f=a.o("y1"),h=a.o("y2"),k=a.o("y3");a.o("neck",!!k);this.b.push(b,c,d,e,0,0,0);this.f.push(b,c,d,e,f,h,k?k:0)}};$.g.fw=function(){lY(this.Aa,1E-5,1E-5,!dY(this.Aa))};
  $.g.Lm=function(){for(var a=this.Aa.Kf(),b=0;a.advance();)if(!a.o("missing")){a.o("x1",this.coords[b++]);a.o("x2",this.coords[b++]);a.o("x3",this.coords[b++]);a.o("x4",this.coords[b++]);a.o("y1",this.coords[b++]);a.o("y2",this.coords[b++]);a.o("y3",this.coords[b++]);var c=this.Aa,d=a,e=d.o("point");e.clear();var f=d.o("x1"),h=d.o("x2"),k=d.o("x3"),l=d.o("x4"),m=d.o("y1"),p=d.o("y2"),q=d.o("y3");e.moveTo(f,m).lineTo(h,m);d.o("neck")?e.lineTo(l,p).lineTo(l,q).lineTo(k,q).lineTo(k,p):e.lineTo(l,p).lineTo(k,
  p);e.close();if(f=d.o("hatchPoint"))c.aa().select(d.la()),f.clear(),f.ce(e.F()),d=$.zw(c.state,d.la()),e=$.Rl("hatchFill",3,!0),f.stroke(null).fill(e(c,d,!1))}};$.g.Jl=function(){this.Lm()};$.g.R=function(){cY.B.R.call(this);this.Aa=null};$.H(eY,$.Qy);eY.prototype.update=function(){this.b.length=this.f.length=0;this.b.push(1E-5,1E-5);this.f.push(1,this.oz.opacity||1)};eY.prototype.Lm=function(){lY(this.Aa,this.coords[0],this.coords[1],this.g)};eY.prototype.Jl=function(){this.Lm()};eY.prototype.R=function(){eY.B.R.call(this);this.oz=this.Aa=null;delete this.g};$.H(fY,$.Rw);$.kq(fY,["fill","stroke","hatchFill"],"normal");$.g=fY.prototype;$.g.Ra=function(a){return $.n(a)?(this.ba.K(a),this):this.ba};$.g.kb=function(a){return $.n(a)?(this.wa.K(a),this):this.wa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.qa=$.Rw.prototype.qa|16;$.g.ra=$.Rw.prototype.ra|28688;$.g.Se=function(){return[this]};$.g.Mg=function(){return!0};$.g.Yj=function(){return!1};$.g.Ci=function(){return!0};
  $.g.data=function(a,b){if($.n(a)){if(a){var c=a.title||a.caption;c&&this.title(c);a.rows&&(a=a.rows)}if(this.dg!==a){this.dg=a;if(this.j!=a||null===a){$.md(this.kd);delete this.Vd;if($.K(a,$.er)){var d=a;this.kd=null}else $.K(a,$.or)?d=(this.kd=a).fe():d=$.A(a)||$.z(a)?(this.kd=new $.or(a,b)).fe():(this.kd=new $.or(null)).fe();this.j=d.ij()}$.md(this.ka);this.ka=this.j;$.L(this.ka,this.Fd,this);this.u(29456,17)}return this}return this.ka};$.g.Fd=function(a){$.X(a,16)&&this.u(29456,17)};
  $.g.aa=function(){return this.Vd||(this.Vd=this.ka.aa())};$.g.xc=function(){return this.Vd=this.ka.aa()};$.g.Kf=function(){return this.ka.aa()};$.g.cc=function(a){if($.K(a,$.ls))return this.Ic($.ls,a),this;if($.K(a,$.is))return this.Ic($.is,a),this;$.D(a)&&"range"==a.type?this.Ic($.ls):($.D(a)||null==this.Da)&&this.Ic($.is);return $.n(a)?(this.Da.K(a),this):this.Da};
  $.g.pf=function(a){this.ye||(this.ye=new $.ks,$.W(this,"markerPalette",this.ye),$.L(this.ye,this.eH,this));return $.n(a)?(this.ye.K(a),this):this.ye};$.g.me=function(a){this.Zc||(this.Zc=new $.js,$.W(this,"hatchFillPalette",this.Zc),$.L(this.Zc,this.vG,this));return $.n(a)?(this.Zc.K(a),this):this.Zc};$.g.Ic=function(a,b){if($.K(this.Da,a))b&&this.Da.K(b);else{var c=!!this.Da;$.md(this.Da);this.Da=new a;b&&this.Da.K(b);$.L(this.Da,this.Gf,this);c&&this.u(528,1)}};
  $.g.Gf=function(a){$.X(a,2)&&this.u(528,1)};$.g.eH=function(a){$.X(a,2)&&this.u(528,1)};$.g.vG=function(a){$.X(a,2)&&this.u(528,1)};$.g.remove=function(){qY(this);this.$e&&this.$e.parent(null);fY.B.remove.call(this)};$.g.Ju=function(){var a=this.aa();this.Da&&$.K(this.Da,$.ls)&&$.ms(this.Da,a.Gb())};
  $.g.Ui=function(a){if(!this.nf()){this.nb();var b=this.aa();this.J(4)&&this.u(4112);if(this.J(16)){this.$e?this.$e.clear():(this.$e=new $.jB(function(){return $.ek()},function(a){a.clear()}),this.$e.zIndex(30),this.$e.parent(this.Ma));this.g?this.g.clear():(this.g=new $.jB(function(){return $.ek()},function(a){a.clear()}),this.g.parent(this.Ma),this.g.zIndex(31).zd(!0));this.Ja=Math.abs($.Gm($.M(this.i("pointsPadding"),a.height),2));this.G=Math.abs($.Gm($.M(this.i("baseWidth"),a.width),2));this.$a=
  Math.abs($.Gm($.M(this.i("neckWidth"),a.width),2));this.ta=Math.abs($.Gm($.M(this.i("neckHeight"),a.height),2));this.Ga=a.top+a.height-this.ta;this.b=a.width/2;this.ca=$.M(this.i("connectorLength"),(a.width-this.G)/2);0>this.ca&&(this.ca=5);this.f=a;var c=0,d=b.Gb()-$.N(this.Ia("count")),e=$.Gm(this.Ja/a.height*100,2);for(b.reset();b.advance();){var f=b.get("value");var h=jY(f);f=jY(f)?0:$.N(f);var k=$.Gm(f/$.N(this.Ia("sum"))*100,2);h&&(k=e);k=$.Gm(a.height/(100+d*e)*k,2);k||(k=this.ga);b.o("value",
  f);b.o("height",k);b.o("startY",c);b.o("missing",h);c+=k;Gga(this)}for(b.reset();b.advance();)c=b.la(),"selected"==String(b.get("state")).toLowerCase()&&this.state.xh($.go,c),Bga(this);if(this.O)for(c=0;c<this.O.length;c++)(f=this.O[c])&&f.stroke(this.i("connectorStroke"));this.u(4096);this.u(8192);this.I(16)}if(this.J(8192)){this.Ib().P()||this.Ib().P(this.Ma);this.Ib().clear();for(b.reset();b.advance();)this.Hp(this.state.zc|$.zw(this.state,b.la()));this.Ib().Y();this.I(8192)}if(this.J(4096)){this.labels().P()||
  this.labels().P(this.Ma);this.labels().clear();this.U&&this.U.clear();c=dY(this)?this.ma.insideLabels:this.ma.outsideLabels;this.labels().lq(c.autoColor);this.labels().disablePointerEvents(c.disablePointerEvents);dY(this)||(this.ca=$.M(this.i("connectorLength"),(a.width-this.G)/2),0>this.ca&&(this.ca=5),this.U?this.U.clear():(this.U=new $.jB(function(){return $.ek()},function(a){a.clear()}),this.U.parent(this.Ma),this.U.zIndex(32)),this.U.clip(a),this.O=[]);for(b.reset();b.advance();)dY(this)&&b.o("labelWidthForced",
  void 0),this.Zd(this.state.zc|$.zw(this.state,b.la()));sY(this);this.labels().Y();this.labels().Hd().clip(a);this.I(4096)}}};
  $.g.jK=function(){var a=$.Yq(this,"animation");if(a&&a.i("enabled")&&0<a.i("duration"))if(this.ug&&1==this.ug.Yb)this.ug.update();else if(this.J(2048)){$.md(this.ug);this.ug=new $.hB;var b=a.i("duration");a=b*(1-.85);b=new cY(this,.85*b);a=new eY(this,a);this.ug.add(b);this.ug.add(a);this.ug.sa("begin",function(){this.Dj=this.i("connectorStroke");this.pa("connectorStroke","none");$.Hw(this,!0);$.Zq(this,{type:"animationstart",chart:this})},!1,this);this.ug.sa("end",function(){this.pa("connectorStroke",
  this.Dj);$.Hw(this,!1);$.Zq(this,{type:"animationend",chart:this})},!1,this);this.ug.play(!1)}};$.g.bg=function(a){a=$.Y.prototype.bg.call(this,a);var b=$.bo(a.domTarget);a.pointIndex=$.N(b.index);return a};$.g.rh=function(a){(a=this.Eg(a))&&this.dispatchEvent(a)};
  $.g.Eg=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=$.N(b);a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=this.data().aa();d.select(b)||
  d.reset();return{type:c,actualTarget:a.target,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Id(b)}};$.g.Id=function(a){var b=new $.Tz(this,a),c;this.aa().select(a)&&b.yx()&&!jY(c=b.get("value"))&&(a=$.Gm(c/this.Ag("sum")*100,2),b.Ia("percentValue",a),b.Ia("yPercentOfTotal",a));return b};$.g.Ur=function(){return[]};$.g.Cj=function(a){$.n(a)?this.Bi(a):this.xk();return this};
  $.g.Jd=function(a){var b;(b=$.yw(this.state,$.fo))||(b=!!(this.state.Aj()&$.fo));if(b&&this.enabled()){var c;$.n(a)?c=a:c=this.state.zc==$.Vl?window.NaN:void 0;this.state.Eh($.fo,c);a=this.aa();for(a.reset();a.advance();)this.Zd($.zw(this.state,a.la()));sY(this);BY(this)}};
  $.g.Bi=function(a,b){if(!this.enabled())return this;if($.A(a)){var c=$.Ew(this.state,$.fo);for(var d=0;d<c.length;d++)$.Aa(a,c[d])||this.state.Eh($.fo,c[d]);$.Cw(this.state,a);$.n(b)&&this.aJ(b);for(c=this.xc();c.advance();)this.Zd($.zw(this.state,c.la()));sY(this)}else if($.ea(a)&&(this.Jd(),$.Cw(this.state,a),$.n(b)&&this.aJ(b),this.f)){for(c=this.xc();c.advance();)this.Zd($.zw(this.state,c.la()));sY(this,this.labels().de(a))}this.aa().select(a[0]||a);return this};
  $.g.xk=function(){this.enabled()&&(this.state.xh($.fo),sY(this,null))};$.g.select=function(a){if(!this.enabled())return this;$.n(a)?this.Ii(a):this.fu();return this};$.g.fu=function(){this.enabled()&&(BY(this),this.state.xh($.go),sY(this,null))};
  $.g.Ii=function(a,b){if(!this.enabled())return this;var c=!(b&&b.shiftKey);$.A(a)?(b||this.Yd(),this.state.xh($.go,a,c?$.fo:void 0)):$.ea(a)&&this.state.xh($.go,a,c?$.fo:void 0);if(this.f){for(c=this.xc();c.advance();)this.Zd($.zw(this.state,c.la()));var d;$.ea(a)&&(d=this.labels().de(a));sY(this,d)}this.aa().select(a[0]||a);return this};
  $.g.Yd=function(a){if(this.enabled()){var b;$.n(a)?b=a:b=this.state.zc==$.Vl?window.NaN:void 0;this.state.Eh($.go,b);a=this.aa();for(a.reset();a.advance();)this.Zd($.zw(this.state,a.la()));sY(this)}};$.g.Mj=function(a,b){gY(this,a);hY(this,a);this.Hp(a);return b};$.g.Pp=$.ia;$.g.am=$.ia;$.g.Nk=function(a){this.Zd(a);gY(this,a);hY(this,a);this.Hp(a)};var EY={};$.Xp(EY,0,"baseWidth",$.gq);$.Xp(EY,0,"neckHeight",$.gq);$.Xp(EY,0,"neckWidth",$.gq);$.Xp(EY,0,"pointsPadding",$.gq);$.Xp(EY,0,"reversed",$.gq);
  $.Xp(EY,0,"overlapMode",$.Gk);$.Xp(EY,0,"connectorLength",$.gq);$.Xp(EY,1,"connectorStroke",$.qq);$.U(fY,EY);$.g=fY.prototype;$.g.Fc=function(a,b,c,d,e,f,h){e=0==b?this.ba:1==b?this.wa:this.Ca;h?a=e.i(a):(h=c.get(0==b?"normal":1==b?"hovered":"selected"),a=$.Jo($.n(h)?h[a]:void 0,c.get($.Wl(b,a)),e.i(a)));$.n(a)&&(a=d(a));return a};$.g.oh=function(){return $.$b(this.me().nc(this.aa().la())||"diagonal-brick")};$.g.yi=function(){var a=this.aa();return{index:a.la(),sourceHatchFill:this.oh(),iterator:a}};
  $.g.we=function(a){var b=this.aa();return{index:b.la(),sourceColor:a||this.cc().nc(b.la())||"blue",iterator:b}};$.g.labels=function(a){return $.n(a)?(this.ba.labels(a),this):this.ba.labels()};$.g.Wd=function(a){var b=0,c=0;$.X(a,1)&&(b|=4096,c|=1);$.X(a,8)&&(b|=4100,c|=9);this.u(b,c)};
  $.g.Zd=function(a){var b=this.aa(),c=!!(a&$.go),d=!c&&!!(a&$.fo),e=b.get("normal");e=$.n(e)?e.label:void 0;var f=b.get("hovered");f=$.n(f)?f.label:void 0;var h=b.get("selected");h=$.n(h)?h.label:void 0;e=$.Jo(e,b.get("label"));f=d?$.Jo(f,b.get("hoverLabel")):null;h=c?$.Jo(h,b.get("selectLabel")):null;var k=b.la(),l,m=null,p=this.kb().labels(),q=this.selected().labels();c?m=l=q:d?m=l=p:l=this.labels();var r=this.labels().de(k),t=e&&$.n(e.enabled)?e.enabled:null,u=f&&$.n(f.enabled)?f.enabled:null,v=
  h&&$.n(h.enabled)?h.enabled:null;p=d||c?d?null===u?null===p.enabled()?null===t?this.labels().enabled():t:p.enabled():u:null===v?null===q.enabled()?null===t?this.labels().enabled():t:q.enabled():v:null===t?this.labels().enabled():t;t=pY(this,null,a);u=this.Gc();q=dY(this);v=!0;if(!d&&!c&&q&&"no-overlap"==this.i("overlapMode")){l=l.bl(u,t,e,k);v=this.aa();var w=[v.o("x1"),v.o("y1"),v.o("x2"),v.o("y1"),v.o("x4"),v.o("y2"),v.o("x3"),v.o("y2")],x=!0,y;var B=0;for(y=w.length;B<y-1;B+=2){var G=B==y-2?0:
  B+2;var C=B==y-2?1:B+3;var I=w[B];var P=w[B+1];var Q=w[G];var S=w[C];var va=l[B];var xa=l[B+1];G=l[G];C=l[C];v.o("y3")&&4==B&&(P=$.N(v.o("y3")),S=$.N(v.o("y3")));I==Q&&(Q+=.01);x=(x=x&&1==$.Qm(I,P,Q,S,va,xa))&&1==$.Qm(I,P,Q,S,G,C)}v=x}p&&v?(r?(r.Gi(),r.Uf(u),r.Ec(t)):r=this.labels().add(u,t,k),$.ou(r,m),r.md(e,d?f:h),b.o("labelWidthForced")&&(r.width($.N(b.o("labelWidthForced"))),b=f&&f.anchor?f.anchor:null,h=h&&h.anchor?h.anchor:null,e&&e.anchor&&e.anchor||b||h||(t=pY(this,r,a),r.Ec(t))),r.Y(),(d||
  c)&&!r.P()&&this.labels().Hd()&&(r.P(this.labels().Hd()),r.P().parent()||r.P().parent(this.labels().P()),r.Y())):r&&r.clear();p&&!q&&AY(this,r,a);return r};$.g.Ib=function(a){return $.n(a)?(this.ba.Ib(a),this):this.ba.Ib()};$.g.Yo=function(a){$.X(a,1)&&this.u(8192,1)};$.g.sv=function(){var a=$.Rl("fill",1,!1)(this,$.Vl,!0,!0);return $.Il(a,1,!0)};$.g.Fx=function(){return $.El(this.sv())};
  $.g.Hp=function(a){var b=this.aa(),c=!!(a&$.go);a=!c&&!!(a&$.fo);var d=b.get("normal");d=$.n(d)?d.marker:void 0;var e=b.get("hovered");e=$.n(e)?e.marker:void 0;var f=b.get("selected");f=$.n(f)?f.marker:void 0;d=$.Jo(d,b.get("marker"));e=$.Jo(e,b.get("hoverMarker"));f=$.Jo(f,b.get("selectMarker"));var h=this.aa().la(),k=this.kb().Ib(),l=this.selected().Ib();b=c?l:a?k:this.Ib();var m=this.Ib().Pq(h),p=d&&$.n(d.enabled)?d.enabled:null,q=e&&$.n(e.enabled)?e.enabled:null,r=f&&$.n(f.enabled)?f.enabled:
  null;if(a||c?a?null===q?null===k.enabled()?null===p?this.Ib().enabled():p:k.enabled():q:null===r?null===l.enabled()?null===p?this.Ib().enabled():p:l.enabled():r:null===p?this.Ib().enabled():p){p=d&&d.position?d.position:null;q=e&&e.position?e.position:null;r=f&&f.position?f.position:null;p=a&&(q||k.i("position"))||c&&(r||l.i("position"))||p||this.Ib().i("position");p=Iga(this,p);m?m.Ec(p):m=this.Ib().add(p,h);var t={};p="position anchor offsetX offsetY type size fill stroke enabled".split(" ");d&&
  (0,$.Ke)(p,function(a){a in d&&(t[a]=d[a])});p=d&&d.type;h=$.n(p)?p:this.Ib().Oa()||this.pf().nc(h);p=e&&e.type;p=$.n(p)?p:k.Oa();q=f&&f.type;q=$.n(q)?q:l.Oa();t.type=c&&$.n(q)?q:a&&$.n(p)?p:h;h=d&&d.fill;h=$.n(h)?h:this.Ib().jn()||this.sv();p=e&&e.fill;p=$.n(p)?p:k.jn();q=f&&f.fill;q=$.n(q)?q:l.jn();t.fill=c&&$.n(q)?q:a&&$.n(p)?p:h;h=d&&d.stroke;h=$.n(h)?h:this.Ib().Wk()||this.Fx();p=e&&e.stroke;k=$.n(p)?p:k.Wk()||this.Fx();p=f&&f.stroke;l=$.n(p)?p:l.Wk()||this.Fx();t.stroke=c&&$.n(l)?l:a&&$.n(k)?
  k:h;m.Gi();$.tx(m,b);m.md(t,a?e:f);m.Y()}else m&&m.clear()};$.g.MJ=function(){var a=new $.Iv(0);$.W(this,"tooltip",a);a.Aa(this);$.L(a,this.cp,this);return a};$.g.cp=function(){this.Va().Y()};$.g.aJ=function(a){var b=$.Yq(this,"legend");if(!a||!b||a.target!=b){b=this.Va();var c=this.Gc();a&&($.$v(b,a.clientX,a.clientY,c),this.sa("mousemove",this.aJ))}};
  $.g.nb=function(){if(this.J(16384)){this.KH();for(var a=this.data().aa(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),jY(b)?c++:(b=jY(b)?0:$.N(b),d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Gb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.Ia("count",a);this.Ia("min",d);this.Ia("max",e);this.Ia("sum",f);this.Ia("average",$.Gm(h||window.NaN,$.Hm(f||0)));this.I(16384)}};
  $.g.Gc=function(){var a=this.aa();this.ae||(this.ae=new $.Rv);this.ae.xg(a).ej([this.Id(a.la()),this]);a={x:{value:a.get("x"),type:"string"},value:{value:a.get("value"),type:"number"},name:{value:a.get("name"),type:"string"},index:{value:a.la(),type:"number"},chart:{value:this,type:""}};$.Bu(this.ae,a);return this.ae};$.g.nk=function(){return this.Gc()};
  $.g.Yl=function(a,b){for(var c=[],d=this.aa().reset(),e;d.advance();){e=d.la();var f=d.get("legendItem")||{},h=null;$.E(b)&&(h=this.Gc(),h.b=this.Id(e),h=b.call(h,h));$.z(h)||(h=String($.n(d.get("name"))?d.get("name"):d.get("x")));var k=$.Rl("fill",1,!1),l=$.Rl("stroke",2,!1),m=$.Rl("hatchFill",3,!1);h={enabled:!0,meta:{pointIndex:e,pointValue:d.get("value"),W:this},iconType:"square",text:h,iconStroke:l(this,$.Vl,!1),iconFill:k(this,$.Vl,!1),iconHatchFill:m(this,$.Vl,!1)};$.Oc(h,f);h.sourceUid=$.oa(this);
  h.sourceKey=e;c.push(h)}return c};$.g.js=function(){return!0};$.g.Zq=function(a,b){var c=a.ji();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.bo(b.domTarget))c.W=this};$.g.Vp=function(a,b){var c=a.ji();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.bo(b.domTarget))c.W=this};$.g.Tp=function(a,b){var c=a.ji();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.bo(b.domTarget))c.W=this};$.g.Ji=function(){return null};$.g.El=function(a){return $.n(a)?(a=$.qk(a),a!=this.N&&(this.N=a),this):this.N};$.g.pj=function(){return!this.aa().Gb()};
  $.g.F=function(){var a=fY.B.F.call(this);a.data=this.data().F();a.palette=this.cc().F();a.hatchFillPalette=this.me().F();a.markerPalette=this.pf().F();a.tooltip=this.Va().F();$.uq(this,EY,a);a.normal=this.ba.F();a.hovered=this.wa.F();a.selected=this.Ca.F();return{chart:a}};
  $.g.X=function(a,b){fY.B.X.call(this,a,b);$.mq(this,EY,a);this.ba.ia(!!b,a);this.ba.ia(!!b,a.normal);this.wa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected);this.data(a.data);this.me(a.hatchFillPalette);this.pf(a.markerPalette);this.cc(a.palette);"tooltip"in a&&this.Va().ia(!!b,a.tooltip)};
  $.g.R=function(){$.od(this.ug,this.ba,this.wa,this.Ca,this.kd,this.j,this.ka,this.Da,this.Zc,this.ye,this.$e,this.g,this.U);this.ka=this.j=this.kd=this.Ca=this.wa=this.ba=this.ug=null;delete this.Vd;this.U=this.g=this.$e=this.ye=this.Zc=this.Da=null;fY.B.R.call(this)};vY.prototype.nB=function(a){this.labels.push(a);this.Aa.i("reversed")?$.Pa(this.labels,function(a,c){return a.la()-c.la()}):$.Pa(this.labels,function(a,c){return c.la()-a.la()})};vY.prototype.clear=function(){this.labels.length=0};
  vY.prototype.jd=function(a,b){var c=!!(b&$.go),d=!c&&!!(b&$.fo),e=this.Aa.data().get(a.la(),"label");d=d?this.Aa.data().get(a.la(),"hoverLabel"):null;c=(c?this.Aa.data().get(a.la(),"selectLabel"):null)||d||e||{};this.Aa.data().o(a.la(),"labelWidthForced")&&(c=$.Mc(c),c.width=a.width());this.Aa.aa().select(a.la());a.Uf(this.Aa.Gc());c=this.Aa.labels().bl(a.Uf(),a.Ec(),c);return $.Zm(c)};
  fY.prototype.nd=function(){this.ba.Fa(this.ma);$.W(this,"normal",this.ba);this.ba.ia(!0,{});$.W(this,"hovered",this.wa);this.wa.ia(!0,{});$.W(this,"selected",this.Ca);this.Ca.ia(!0,{})};var FY=fY.prototype;FY.data=FY.data;FY.getType=FY.Oa;FY.palette=FY.cc;FY.tooltip=FY.Va;FY.hatchFillPalette=FY.me;FY.markerPalette=FY.pf;FY.labels=FY.labels;FY.markers=FY.Ib;FY.hover=FY.Cj;FY.unhover=FY.Jd;FY.select=FY.select;FY.unselect=FY.Yd;FY.getPoint=FY.Id;FY.normal=FY.Ra;FY.hovered=FY.kb;FY.selected=FY.selected;$.zp.funnel=CY;$.zp.pyramid=DY;$.F("anychart.funnel",CY);$.F("anychart.pyramid",DY);}).call(this,$)}
  if(!_.theme_pyramid_funnel){_.theme_pyramid_funnel=1;(function($){$.ra($.fa.anychart.themes.defaultTheme,{funnel:{title:{text:"Funnel Chart"},neckWidth:"30%",neckHeight:"25%",reversed:!0,normal:{labels:{position:"outside-left-in-column"}}},pyramid:{title:{text:"Pyramid Chart"},legend:{inverted:!0},normal:{labels:{position:"outside-left-in-column"}},reversed:!1}});}).call(this,$)}
  $_=window.anychart;$_.$=$;$_._=_});