if(!_.bullet){_.bullet=1;(function($){var mja=function(a,b){return $.ij($.uj,a,b||"bar")},t7=function(){$.X.call(this);this.Ia("defaultRangeMarkerSettings");this.f=null;$.R(this.xa,[["type",4,9],["value",4,9],["layout",4,9],["fill",16,1],["stroke",16,1]])},nja=function(a,b){$.p(b)&&(b=mja(b,a.ef("type")),a.ef("type")!=b&&(a.ma.type=b,$.p(a.md("type"))||a.u(4,9)))},oja=function(a,b){if("horizontal"==a)switch(b){default:case "bar":return function(a,b){var c=this.scale().transform(0);c=(0,window.isNaN)(c)?0:$.Ya(c,0,1);var d=this.fa(),h=
this.xp(),k=$.kn(h)?$.M(h,d.height):d.height*h;h=d.left+c*d.width;var l=d.top+k/2;c=(b-c)*d.width;d=d.height-k;a.clear().moveTo(h,l).lineTo(h+c,l).lineTo(h+c,l+d).lineTo(h,l+d).close()};case "line":return function(a,b){var c=this.fa(),d=this.xp(),h=Math.round(c.left+c.width*b),k=Math.round(c.top+c.height/2);c=c.height-($.kn(d)?$.M(d,c.height):c.height*d);a.clear().moveTo(h-1,k-c/2).lineTo(h-1,k+c/2).lineTo(h+1,k+c/2).lineTo(h+1,k-c/2).close()};case "ellipse":return function(a,b){var c=this.fa(),d=
this.xp(),h=c.left+c.width*b,k=c.top+c.height/2;c=(c.height-($.kn(d)?$.M(d,c.height):c.height*d))/2;d=c/4;a.clear();a.je(h,k,d,c,0,360).close()};case "x":return function(a,b){var c=this.fa(),d=this.xp(),h=Math.round(c.left+c.width*b),k=Math.round(c.top+c.height/2);c=(c.height-($.kn(d)?$.M(d,c.height):c.height*d))/2;d=c/1.5;a.clear().moveTo(h-d-1,k-c).lineTo(h+d-1,k+c).lineTo(h+d+1,k+c).lineTo(h-d+1,k-c).moveTo(h+d-1,k-c).lineTo(h-d-1,k+c).lineTo(h-d+1,k+c).lineTo(h+d+1,k-c).close()}}else switch(b){default:case "bar":return function(a,
b){var c=this.scale().transform(0);c=(0,window.isNaN)(c)?0:$.Ya(c,0,1);var d=this.fa(),h=this.xp(),k=$.kn(h)?$.M(h,d.width):d.width*h;h=d.left+k/2;var l=d.Ra()-d.height*b;k=d.width-k;c=(b-c)*d.height;a.clear().moveTo(h-.25,l-.5).lineTo(h+k+.25,l-.5).lineTo(h+k+.25,l+c-.5).lineTo(h-.25,l+c-.5).close()};case "line":return function(a,b){var c=this.fa(),d=this.xp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ra()-c.height*b);c=c.width-($.kn(d)?$.M(d,c.width):c.width*d);a.clear().moveTo(h-c/2,k-1).lineTo(h+
c/2,k-1).lineTo(h+c/2,k+1).lineTo(h-c/2,k+1).close()};case "ellipse":return function(a,b){var c=this.fa(),d=this.xp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ra()-c.height*b);c=(c.width-($.kn(d)?$.M(d,c.width):c.width*d))/2;d=c/4;a.clear();a.je(h,k,c,d,0,360).close()};case "x":return function(a,b){var c=this.fa(),d=this.xp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ra()-c.height*b);c=(c.width-($.kn(d)?$.M(d,c.width):c.width*d))/2;d=c/1.5;a.clear().moveTo(h-c-1,k-d).lineTo(h+c-1,k+d).lineTo(h+
c+1,k+d).lineTo(h-c+1,k-d).moveTo(h+c-1,k-d).lineTo(h-c-1,k+d).lineTo(h-c+1,k+d).lineTo(h+c+1,k-d).close()}}},u7=function(a,b){$.Ov.call(this);this.Ia("bullet");this.$c=[];this.f=[];this.Aw=!0;this.data(a||null,b);$.fp(this.xa,"layout",114820,9)},qja=function(a){(0,$.ue)(a.f,function(a){$.hd(a)});a.f.length=0;var b=a.na.aa().reset();for(b.Eb();b.advance();)pja(a,b)},pja=function(a,b){var c=b.ka(),d=new t7;d.Ia(a.ef("defaultMarkerSettings"));$.U(d);a.f[c]=d;d.scale(a.scale());d.O(a.Ua);nja(d,a.lf().ic(c));
d.value(b.get("value"));d.type(b.get("type"));d.xp(b.get("gap"));d.fill(b.get("fill"));d.stroke(b.get("stroke"));d.da(!1);$.L(d,a.X6,a)},rja=function(a,b){return new u7(a,b)};$.H(t7,$.X);var sja={};$.ep(sja,[[0,"type",mja],[0,"value",$.N],[0,"layout",$.pj],[1,"fill",$.yp],[1,"stroke",$.xp]]);$.S(t7,sja);var tja={x:"30%",line:"30%",ellipse:"30%",bar:"50%"};$.g=t7.prototype;$.g.ra=$.X.prototype.ra;$.g.qa=$.X.prototype.qa|20;
$.g.xp=function(a){return $.p(a)?(this.f!=a&&(this.f=a,this.u(4,9)),this):null===this.f?tja[this.i("type")]:this.f};$.g.Fb=function(){return"horizontal"==this.i("layout")};$.g.scale=function(a){if($.p(a)){if(a=$.Vr(this.oa,a,null,3,null,this.Yea,this)){var b=this.oa==a;this.oa=a;a.da(b);b||this.u(4,9)}return this}return this.oa};$.g.Yea=function(a){var b=0;$.W(a,4)&&(b|=4);$.W(a,2)&&(b|=1);this.u(4,b|8)};
$.g.X=function(){if(!this.scale())return $.Sj(2),this;if(!this.xc())return this;var a=this.O()?this.O().Ga():null,b=a&&!a.Ve();b&&a.suspend();this.b||(this.b=$.aj());if(this.J(8)){var c=this.zIndex();this.b.zIndex(c);this.I(8)}this.J(2)&&(c=this.O(),this.b.parent(c),this.I(2));this.J(16)&&(this.b.stroke(this.i("stroke")),this.b.fill(this.i("fill")),this.I(16));this.J(4)&&(c=this.i("value"),c=this.scale().transform(c,0),this.b.clear(),(0,window.isNaN)(c)||(c=$.Ya(c,0,1),oja(this.i("layout"),this.i("type")).call(this,
this.b,c)),this.I(4));b&&a.resume();return this};$.g.remove=function(){this.b&&this.b.parent(null)};$.g.R=function(){$.hd(this.b);this.b=null;t7.B.R.call(this)};$.H(u7,$.Ov);u7.prototype.qa=$.Ov.prototype.qa|126976;u7.prototype.Qa=function(){return"bullet"};u7.prototype.data=function(a,b){return $.p(a)?(this.Vf!==a&&(this.Vf=a,$.K(a,$.oq)?this.na=a.$i():$.K(a,$.yq)?this.na=a.Yd():(a=$.B(a)||$.z(a)?a:null,this.na=(new $.yq(a,b)).Yd()),$.L(this.na,this.xd,this),this.u(127232,1)),this):this.na};u7.prototype.xd=function(a){$.W(a,16)&&this.u(127232,1)};var v7={};$.dp(v7,0,"layout",$.pj);$.S(u7,v7);$.g=u7.prototype;$.g.Fb=function(){return"horizontal"==this.i("layout")};
$.g.scale=function(a){if(!this.oa&&!$.p(a)){var b=this.ef("scale");this.oa=$.Vr(this.oa,b,"linear",3);this.oa.da(!1)}if($.p(a)){if(a=$.Vr(this.oa,a,"linear",3))this.oa=a,a.da(!1),this.u(122880,1);return this}return this.oa};$.g.axis=function(a){this.b||(this.b=new $.gx,this.b.qb(this),$.L(this.b,this.Un,this),$.V(this,"axis",this.b),this.u(114692,9));return $.p(a)?(this.b.K(a),this):this.b};$.g.Un=function(a){var b=0,c=0;$.W(a,1)&&(b|=16384,c|=1);$.W(a,8)&&(b|=4);this.u(b,c)};
$.g.te=function(a,b){var c=$.N(a);if((0,window.isNaN)(c)){c=0;var d=a}else c=a,d=b;var e=this.$c[c];e||(e=new $.wy,e.Ia(this.ef("defaultRangeMarkerSettings")),this.$c[c]=e,$.L(e,this.Vea,this),this.u(32768,1));return $.p(d)?(e.K(d),this):e};$.g.Vea=function(){this.u(32768,1)};$.g.fM=function(a){this.g||(this.g=new $.ur,$.L(this.g,this.Uea,this),$.V(this,"rangePalette",this.g),this.g.Rp(!1));return $.p(a)?(this.g.K(a),this):this.g};$.g.Uea=function(a){$.W(a,2)&&this.u(32768,1)};
$.g.lf=function(a){this.oe||(this.oe=new $.wr,$.L(this.oe,this.Tea,this),$.V(this,"markerPalette",this.oe));return $.p(a)?(this.oe.K(a),this):this.oe};$.g.Tea=function(a){$.W(a,2)&&this.u(65536,1)};$.g.mb=function(){var a,b=this.scale();b.Cf()&&b.fg();var c=0;for(a=this.f.length;c<a;c++){var d=this.f[c];null!=d&&(d.scale(b),"bar"==d.i("type")&&b.Oc(0),b.Oc(d.i("value")))}c=0;for(a=this.$c.length;c<a;c++)d=this.$c[c],null!=d&&(d.scale(b),b.Oc(d.i("from")),b.Oc(d.i("to"))),b.Cf()&&b.ng();this.axis().scale(this.scale())};
$.g.Jj=function(){var a=this.Fb(),b=this.title(),c=this.axis();a?($.hx(c,"bottom"),$.yu(b,"left")):($.hx(c,"left"),$.yu(b,"bottom"));return u7.B.Jj.call(this)};
$.g.Ji=function(a){if(this.xc()){this.J(4096)&&(qja(this),this.I(4096));this.J(8192)&&(this.mb(),this.I(8192));var b=this.axis();this.J(16388)&&($.U(b),!b.O()&&b.enabled()&&b.O(this.Ua),b.fa(a),b.padding(0),b.da(!1),b.X(),this.I(16384));var c=b.enabled()?b.nd():a;if(this.J(32772)){a=0;for(b=this.$c.length;a<b;a++){var d=this.$c[a];if(d){$.U(d);$.xy(d,this.Fb()?"vertical":"horizontal");var e=d,f=this.fM().ic(a);f=$.Sb(f);f!=e.ef("fill")&&($.sp(e.ma,$.vE,{fill:f}),e.u(16,1));d.fa(c);d.O(this.Ua);d.cp(0);
d.X();d.da(!1)}}this.I(32768)}if(this.J(65540)){a=0;for(b=this.f.length;a<b;a++)d=this.f[a],$.U(d),d.fa(c),nja(d,this.lf().ic(a)),e=d,f=this.i("layout"),$.p(f)&&(f=$.pj(f,e.ef("layout")),e.ef("layout")!=f&&(e.ma.layout=f,$.p(e.md("layout"))||e.u(4,9))),d.X(),d.da(!1);this.I(65536)}}};$.g.X6=function(){this.u(65536,1)};
$.g.tg=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,pie:this,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a}};$.g.Ai=function(){return this};$.g.ti=function(){return this};$.g.Ne=function(){return[this]};$.g.vl=function(a){return $.p(a)?(a=$.jj(a),a!=this.N&&(this.N=a),this):this.N};$.g.ej=function(){for(var a=this.na?this.na.aa().Eb():0,b=0,c=this.f.length,d=0;d<c;d++){var e=this.f[d];if(e&&!e.enabled())b++;else break}return!a||!c||b==c};
$.g.F=function(){var a=u7.B.F.call(this);$.Bp(this,v7,a);a.data=this.data().F();a.rangePalette=this.fM().F();a.markerPalette=this.lf().F();a.scale=this.scale().F();a.axis=this.axis().F();for(var b=[],c=0;c<this.$c.length;c++)b.push(this.$c[c].F());a.ranges=b;return{chart:a}};
$.g.Y=function(a,b){u7.B.Y.call(this,a,b);this.data(a.data);$.tp(this,v7,a);this.fM().ja(!!b,a.rangePalette);this.lf().ja(!!b,a.markerPalette);var c=a.scale;if($.z(c))var d=$.Pr(c,null);else $.D(c)?(d=$.Pr(c.type,!1),d.K(c)):d=null;d&&this.scale(d);this.axis(a.axis);c=a.ranges;if($.B(c))for(d=0;d<c.length;d++)this.te(d,c[d])};$.g.R=function(){$.jd(this.$c,this.f,this.b,this.g,this.oe);this.$c.length=0;this.f.length=0;this.oe=this.g=this.b=null;u7.B.R.call(this)};var w7=u7.prototype;w7.data=w7.data;
w7.rangePalette=w7.fM;w7.markerPalette=w7.lf;w7.scale=w7.scale;w7.axis=w7.axis;w7.range=w7.te;w7.isHorizontal=w7.Fb;w7.getType=w7.Qa;w7.noData=w7.zm;$.Fo.bullet=rja;$.F("anychart.bullet",rja);}).call(this,$)}
