if(!_.bullet){_.bullet=1;(function($){var woa=function(a,b){return $.xk($.Jk,a,b||"bar")},T7=function(){$.Y.call(this);this.Fa("defaultRangeMarkerSettings");this.f=null;$.T(this.ua,[["type",4,9],["value",4,9],["layout",4,9],["fill",16,1],["stroke",16,1]])},xoa=function(a,b){$.n(b)&&(b=woa(b,a.mf("type")),a.mf("type")!=b&&(a.ma.type=b,$.n(a.dd("type"))||a.B(4,9)))},yoa=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:$.Za(c,0,1);var d=this.ja(),h=
this.Tp(),k=$.oo(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.ja(),d=this.Tp(),h=Math.round(c.left+c.width*b),k=Math.round(c.top+c.height/2);c=c.height-($.oo(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.ja(),d=
this.Tp(),h=c.left+c.width*b,k=c.top+c.height/2;c=(c.height-($.oo(d)?$.M(d,c.height):c.height*d))/2;d=c/4;a.clear();a.ze(h,k,d,c,0,360).close()};case "x":return function(a,b){var c=this.ja(),d=this.Tp(),h=Math.round(c.left+c.width*b),k=Math.round(c.top+c.height/2);c=(c.height-($.oo(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:$.Za(c,0,1);var d=this.ja(),h=this.Tp(),k=$.oo(h)?$.M(h,d.width):d.width*h;h=d.left+k/2;var l=d.Ua()-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.ja(),d=this.Tp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ua()-c.height*b);c=c.width-($.oo(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.ja(),d=this.Tp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ua()-c.height*b);c=(c.width-($.oo(d)?$.M(d,c.width):c.width*d))/2;d=c/4;a.clear();a.ze(h,k,c,d,0,360).close()};case "x":return function(a,b){var c=this.ja(),d=this.Tp(),h=Math.round(c.left+c.width/2),k=Math.round(c.Ua()-c.height*b);c=(c.width-($.oo(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){$.gx.call(this);this.Fa("bullet");this.ad=[];this.f=[];this.Zw=!0;this.data(a||null,b);$.iq(this.ua,"layout",114820,9)},Aoa=function(a){(0,$.Qe)(a.f,function(a){$.qd(a)});a.f.length=0;var b=a.oa.aa().reset();for(b.Gb();b.advance();)zoa(a,b)},zoa=function(a,b){var c=b.la(),d=new T7;d.Fa(a.mf("defaultMarkerSettings"));$.V(d);a.f[c]=d;d.scale(a.scale());d.P(a.La);xoa(d,a.sf().nc(c));
d.value(b.get("value"));d.type(b.get("type"));d.Tp(b.get("gap"));d.fill(b.get("fill"));d.stroke(b.get("stroke"));d.da(!1);$.L(d,a.y9,a)},Boa=function(a,b){return new U7(a,b)};$.H(T7,$.Y);var Coa={};$.hq(Coa,[[0,"type",woa],[0,"value",$.N],[0,"layout",$.Ek],[1,"fill",$.Eq],[1,"stroke",$.Dq]]);$.U(T7,Coa);var Doa={x:"30%",line:"30%",ellipse:"30%",bar:"50%"};$.g=T7.prototype;$.g.qa=$.Y.prototype.qa;$.g.sa=$.Y.prototype.sa|20;
$.g.Tp=function(a){return $.n(a)?(this.f!=a&&(this.f=a,this.B(4,9)),this):null===this.f?Doa[this.i("type")]:this.f};$.g.Hb=function(){return"horizontal"==this.i("layout")};$.g.scale=function(a){if($.n(a)){if(a=$.Xs(this.na,a,null,3,null,this.Jga,this)){var b=this.na==a;this.na=a;a.da(b);b||this.B(4,9)}return this}return this.na};$.g.Jga=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(4,b|8)};
$.g.$=function(){if(!this.scale())return $.cl(2),this;if(!this.Bc())return this;var a=this.P()?this.P().Ha():null,b=a&&!a.ff();b&&a.suspend();this.b||(this.b=$.nk());if(this.J(8)){var c=this.zIndex();this.b.zIndex(c);this.I(8)}this.J(2)&&(c=this.P(),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=$.Za(c,0,1),yoa(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(){$.qd(this.b);this.b=null;T7.u.R.call(this)};$.H(U7,$.gx);U7.prototype.sa=$.gx.prototype.sa|126976;U7.prototype.Na=function(){return"bullet"};U7.prototype.data=function(a,b){return $.n(a)?(this.jg!==a&&(this.jg=a,$.K(a,$.pr)?this.oa=a.tj():$.K(a,$.zr)?this.oa=a.ie():(a=$.A(a)||$.z(a)?a:null,this.oa=(new $.zr(a,b)).ie()),$.L(this.oa,this.Id,this),this.B(127232,1)),this):this.oa};U7.prototype.Id=function(a){$.X(a,16)&&this.B(127232,1)};var V7={};$.gq(V7,0,"layout",$.Ek);$.U(U7,V7);$.g=U7.prototype;$.g.Hb=function(){return"horizontal"==this.i("layout")};
$.g.scale=function(a){if(!this.na&&!$.n(a)){var b=this.mf("scale");this.na=$.Xs(this.na,b,"linear",3);this.na.da(!1)}if($.n(a)){if(a=$.Xs(this.na,a,"linear",3))this.na=a,a.da(!1),this.B(122880,1);return this}return this.na};$.g.axis=function(a){this.b||(this.b=new $.Dy,this.b.ib(this),$.L(this.b,this.ko,this),$.W(this,"axis",this.b),this.B(114692,9));return $.n(a)?(this.b.K(a),this):this.b};$.g.ko=function(a){var b=0,c=0;$.X(a,1)&&(b|=16384,c|=1);$.X(a,8)&&(b|=4);this.B(b,c)};
$.g.qe=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.ad[c];e||(e=new $.Uz,e.Fa(this.mf("defaultRangeMarkerSettings")),this.ad[c]=e,$.L(e,this.Gga,this),this.B(32768,1));return $.n(d)?(e.K(d),this):e};$.g.Gga=function(){this.B(32768,1)};$.g.DN=function(a){this.g||(this.g=new $.vs,$.L(this.g,this.Fga,this),$.W(this,"rangePalette",this.g),this.g.oq(!1));return $.n(a)?(this.g.K(a),this):this.g};$.g.Fga=function(a){$.X(a,2)&&this.B(32768,1)};
$.g.sf=function(a){this.Be||(this.Be=new $.xs,$.L(this.Be,this.Ega,this),$.W(this,"markerPalette",this.Be));return $.n(a)?(this.Be.K(a),this):this.Be};$.g.Ega=function(a){$.X(a,2)&&this.B(65536,1)};$.g.ob=function(){var a,b=this.scale();b.Hf()&&b.tg();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.Uc(0),b.Uc(d.i("value")))}c=0;for(a=this.ad.length;c<a;c++)d=this.ad[c],null!=d&&(d.scale(b),b.Uc(d.i("from")),b.Uc(d.i("to"))),b.Hf()&&b.Cg();this.axis().scale(this.scale())};
$.g.uj=function(){var a=this.Hb(),b=this.title(),c=this.axis();a?($.Ey(c,"bottom"),$.Qv(b,"left")):($.Ey(c,"left"),$.Qv(b,"bottom"));return U7.u.uj.call(this)};
$.g.ei=function(a){if(this.Bc()){this.J(4096)&&(Aoa(this),this.I(4096));this.J(8192)&&(this.ob(),this.I(8192));var b=this.axis();this.J(16388)&&($.V(b),!b.P()&&b.enabled()&&b.P(this.La),b.ja(a),b.padding(0),b.da(!1),b.$(),this.I(16384));var c=b.enabled()?b.qd():a;if(this.J(32772)){a=0;for(b=this.ad.length;a<b;a++){var d=this.ad[a];if(d){$.V(d);$.Vz(d,this.Hb()?"vertical":"horizontal");var e=d,f=this.DN().nc(a);f=$.Vb(f);f!=e.mf("fill")&&($.yq(e.ma,$.BG,{fill:f}),e.B(16,1));d.ja(c);d.P(this.La);d.wp(0);
d.$();d.da(!1)}}this.I(32768)}if(this.J(65540)){a=0;for(b=this.f.length;a<b;a++)d=this.f[a],$.V(d),d.ja(c),xoa(d,this.sf().nc(a)),e=d,f=this.i("layout"),$.n(f)&&(f=$.Ek(f,e.mf("layout")),e.mf("layout")!=f&&(e.ma.layout=f,$.n(e.dd("layout"))||e.B(4,9))),d.$(),d.da(!1);this.I(65536)}}};$.g.y9=function(){this.B(65536,1)};
$.g.Ig=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.Mi=function(){return this};$.g.Hi=function(){return this};$.g.Te=function(){return[this]};$.g.Fl=function(a){return $.n(a)?(a=$.yk(a),a!=this.N&&(this.N=a),this):this.N};$.g.Ej=function(){for(var a=this.oa?this.oa.aa().Gb():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.u.F.call(this);$.Hq(this,V7,a);a.data=this.data().F();a.rangePalette=this.DN().F();a.markerPalette=this.sf().F();a.scale=this.scale().F();a.axis=this.axis().F();for(var b=[],c=0;c<this.ad.length;c++)b.push(this.ad[c].F());a.ranges=b;return{chart:a}};
$.g.X=function(a,b){U7.u.X.call(this,a,b);this.data(a.data);$.zq(this,V7,a);this.DN().ia(!!b,a.rangePalette);this.sf().ia(!!b,a.markerPalette);var c=a.scale;if($.z(c))var d=$.Rs(c,null);else $.D(c)?(d=$.Rs(c.type,!1),d.K(c)):d=null;d&&this.scale(d);this.axis(a.axis);c=a.ranges;if($.A(c))for(d=0;d<c.length;d++)this.qe(d,c[d])};$.g.R=function(){$.td(this.ad,this.f,this.b,this.g,this.Be);this.ad.length=0;this.f.length=0;this.Be=this.g=this.b=null;U7.u.R.call(this)};var W7=U7.prototype;W7.data=W7.data;
W7.rangePalette=W7.DN;W7.markerPalette=W7.sf;W7.scale=W7.scale;W7.axis=W7.axis;W7.range=W7.qe;W7.isHorizontal=W7.Hb;W7.getType=W7.Na;W7.noData=W7.Pm;$.Jp.bullet=Boa;$.F("anychart.bullet",Boa);}).call(this,$)}
