if(!_.cartesian_3d){_.cartesian_3d=1;(function($){var T9=function(a,b,c){if(a=a.f[b])a.zIndex=c},Xpa=function(a){return $.oa(a.cl())+"_"+$.oa(a.bb())},Ypa=function(a,b){var c=0;(0,$.Qe)(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},U9=function(){$.Wy.call(this)},V9=function(){$.Wy.call(this)},W9=function(){$.Rz.call(this)},X9=function(){$.Uz.call(this)},Y9=function(){$.Xz.call(this)},Z9=function(a){$.xA.call(this,a)},$9=function(a){$.xA.call(this,a)},Zpa=function(a,b,c){if(!b.o("skipDrawing")){var d=b.o("x"),e=b.o("zero"),f=b.o("value");
a.za||(d+=a.f,e-=a.b,f-=a.b);b=c.bottom;var h=c.back,k=c.left,l=c.right,m=c.front,p=c.top,q=c.rightHatch,r=c.frontHatch;c=c.topHatch;var t=a.g,u=a.D,v=m.stroke().thickness%2/2||0;if(a.za){var w=a.j;var x=Math.min(e,f)+a.f;d=d-w/2-a.b;a=Math.abs(e-f);e=v;f=0}else a=a.j,x=d-a/2,d=Math.min(e,f),w=Math.abs(e-f),f=e=-v;b.moveTo(x+v,d+w).lineTo(x+a,d+w).lineTo(x+a+t-v,d+w-u+v).lineTo(x+t,d+w-u).close();h.moveTo(x+t,d-u).lineTo(x+t+a,d-u).lineTo(x+t+a,d-u+w).lineTo(x+t,d-u+w).close();k.moveTo(x,d).lineTo(x+
t+e,d-u+v).lineTo(x+t,d+w-u).lineTo(x,d+w-v).close();l.moveTo(x+a,d).lineTo(x+a+t+f,d-u+v).lineTo(x+a+t,d+w-u).lineTo(x+a,d+w-v).close();q.moveTo(x+a,d).lineTo(x+a+t+f,d-u+v).lineTo(x+a+t,d+w-u).lineTo(x+a,d+w-v).close();m.moveTo(x,d).lineTo(x+a,d).lineTo(x+a,d+w).lineTo(x,d+w).close();r.moveTo(x,d).lineTo(x+a,d).lineTo(x+a,d+w).lineTo(x,d+w).close();p.moveTo(x+v,d).lineTo(x+a,d).lineTo(x+a+t-v,d-u+v).lineTo(x+t,d-u).close();c.moveTo(x+v,d).lineTo(x+a,d).lineTo(x+a+t-v,d-u+v).lineTo(x+t,d-u).close()}},
a$=function(a){$.xA.call(this,a)},b$=function(){$.BB.call(this);this.Fa("cartesian","cartesian3dBase","cartesian3d");this.ba=0;this.je="cartesian-3d"},c$=function(a){var b=$.mo(a.domTarget);if(b&&b.W&&b.W.check(4)){var c=$.mo(a.relatedDomTarget);c&&c.W&&c.W==b.W&&c.index==b.index||(b=b.W)&&!b.fd&&b.enabled()&&(c=b.Gi(),b.ib(null),b.bh(a.zD),b.ib(c))}},$pa=function(a,b,c){var d,e,f;var h=$.Vl("fill",1,!0)(a,c);c=$.D(h)?h.opacity:1;var k=$.D(h)?h.color:h;h=$.Dl(k);if(null===h)a=k=d=e=f=h="none";else{k=
h.ck;var l=$.wl(k);e=$.Al(l,.2);h=$.Al(l,.25);f=$.zl([255,255,255],l,.1);d=$.Ub($.zl(l,e,.7));f=$.Ub($.zl(e,f,.1));l=$.Ub($.zl(l,e,.1));a={angle:a.i("isVertical")?0:90,opacity:c,keys:[$.Hl(d,.2),$.Hl(k,.3)]};k=$.Hl(l,.2);d=$.Hl(d,.2);e=$.Ub(e);h=$.Ub(h)}b.bottom.fill({color:e,opacity:c});b.back.fill({color:f,opacity:c});b.left.fill({color:h,opacity:c});b.right.fill({color:k,opacity:c});b.top.fill({color:d,opacity:c});b.front.fill(a)},aqa=function(){var a=new b$;a.pa("defaultSeriesType","column");
a.ld();$.rA(a);a.Kg();return a},e$=function(a,b){var c=d$(a),d=a.g,e=a.Zh;!b&&a.i("zDistribution")&&(e=(e-d*(c-1))/c);return e},f$=function(a,b){var c=d$(a),d=a.G,e=a.zh;!b&&a.i("zDistribution")&&(e=(e-d*(c-1))/c);return e},d$=function(a){return Ypa(a.fb,function(a){return!!(a&&a.enabled()&&a.check($.bB))})},bqa=function(a,b){for(var c=0,d=0,e=Math.min(a.fb.length-1,b);d<=e;d++){var f=a.fb[d];f&&f.enabled()&&f.check($.bB)&&c++}return c-1},cqa=function(a){var b=new b$;b.Fa("area3d");b.je="area-3d";
b.pa("defaultSeriesType","area");b.ld();b.Kg();$.rA(b);arguments.length&&b.Rk.apply(b,arguments);return b},dqa=function(a){var b=new b$;b.Fa("bar","bar3d");b.je="bar-3d";b.pa("defaultSeriesType","bar");b.ld();b.Kg();$.rA(b);arguments.length&&b.Rk.apply(b,arguments);return b},eqa=function(a){var b=new b$;b.Fa("column","column3d");b.je="column-3d";b.pa("defaultSeriesType","column");b.ld();b.Kg();$.rA(b);arguments.length&&b.Rk.apply(b,arguments);return b},fqa=function(a){var b=new b$;b.Fa("line3d");
b.je="line-3d";b.pa("defaultSeriesType","line");b.ld();b.Kg();$.rA(b);arguments.length&&b.Rk.apply(b,arguments);return b},gqa={sB:"area",AE:"bar",BE:"column",Xs:"line",zla:"line-2d"},hqa={name:"top",Mb:"path",Sb:null,Tb:"stroke",Vb:!0,Bb:!1,zIndex:3E-6},g$={name:"bottom",Mb:"path",Sb:null,Tb:"stroke",Vb:!0,Bb:!1,zIndex:2E-6},h$={name:"left",Mb:"path",Sb:null,Tb:"stroke",Vb:!0,Bb:!1,zIndex:1E-6},i$={name:"right",Mb:"path",Sb:null,Tb:"stroke",Vb:!0,Bb:!1,zIndex:4E-6},j$={name:"back",Mb:"path",Sb:null,
Tb:"stroke",Vb:!0,Bb:!1,zIndex:0},k$={name:"frontHatch",Mb:"path",Sb:"hatchFill",Tb:null,Vb:!0,Bb:!0,zIndex:8E-6},iqa={name:"rightHatch",Mb:"path",Sb:"hatchFill",Tb:null,Vb:!0,Bb:!0,zIndex:7E-6},jqa={name:"topHatch",Mb:"path",Sb:"hatchFill",Tb:null,Vb:!0,Bb:!0,zIndex:6E-6};$.H(U9,$.Wy);$.g=U9.prototype;$.g.kg=function(a){var b=0;$.X(a,4)&&(b|=4);$.X(a,2)&&(b|=1);this.B(20,b|8)};
$.g.WF=function(a){var b=this.ja()||$.gn(0,0,0,0);a=Math.round(b.Ua()-a*b.height);var c=this.Gh().stroke();c=$.Wo(c);a=$.R(a,c);c=b.qb()+this.Zh;var d=a-this.zh;this.j.moveTo(b.qb(),a).lineTo(c,d).lineTo(b.$a()+this.Zh,d)};$.g.XF=function(a){var b=this.ja()||$.gn(0,0,0,0);a=Math.round(b.qb()+a*b.width);var c=this.Gh().stroke();c=$.Wo(c);a=$.R(a,c);c=a+this.Zh;var d=Math.ceil($.R(b.Ua()-this.zh,1));this.j.moveTo(a,Math.ceil($.R(b.Ua(),1))).lineTo(c,d).lineTo(c,b.bc()-this.zh)};
$.g.TF=function(a,b,c,d){if(!(0,window.isNaN)(b)){var e=this.ja()||$.gn(0,0,0,0);var f=Math.round(e.Ua()-b*e.height);var h=Math.round(e.Ua()-a*e.height);1==a?h-=d:h+=d;1==b?f-=d:f+=d;c.moveTo(e.qb(),f).lineTo(e.qb()+this.Zh,f-this.zh).lineTo(e.$a()+this.Zh,f-this.zh).lineTo(e.$a()+this.Zh,h-this.zh).lineTo(e.qb()+this.Zh,h-this.zh).lineTo(e.qb(),h).close()}};
$.g.UF=function(a,b,c,d){if(!(0,window.isNaN)(b)){var e=this.ja()||$.gn(0,0,0,0);var f=Math.round(e.qb()+b*e.width);var h=Math.round(e.qb()+a*e.width);1==a?h+=d:h-=d;1==b?f+=d:f-=d;c.moveTo(f+this.Zh,e.bc()-this.zh).lineTo(h+this.Zh,e.bc()-this.zh).lineTo(h+this.Zh,e.Ua()-this.zh).lineTo(h,e.Ua()).lineTo(f,e.Ua()).lineTo(f+this.Zh,e.Ua()-this.zh).close()}};$.H(V9,U9);$.ju(V9,U9);var l$=U9.prototype;l$.isHorizontal=l$.Hb;l$.scale=l$.scale;l$.axis=l$.axis;l$=V9.prototype;
$.F("anychart.standalones.grids.linear3d",function(){var a=new V9;a.K($.mm("standalones.linearGrid"));return a});l$.layout=l$.pe;l$.draw=l$.$;l$.parentBounds=l$.ja;l$.container=l$.P;$.H(W9,$.Rz);
W9.prototype.Mr=function(){var a=$.Za(this.scale().transform(this.value(),.5),0,1);if(!(0,window.isNaN)(a)){var b=0==$.zy(this).Nk()%2?0:-.5,c=this.ja(),d=this.wp();$.zy(this).clear();var e=this.mc().Zh,f=this.mc().zh;if("horizontal"==this.pe()){var h=Math.round(c.bc()+c.height-a*c.height);1==a?h-=b:h+=b;$.zy(this).moveTo(c.qb(),h).lineTo(c.qb()+e,h-f).lineTo(c.$a()+e,h-f)}else"vertical"==this.pe()&&(h=Math.round(c.qb()+a*c.width),1==a?h+=b:h-=b,$.zy(this).moveTo(h+e,c.bc()-f).lineTo(h+e,c.Ua()-f).lineTo(h,
c.Ua()));c.top-=f;c.height+=f;c.width+=e;$.zy(this).clip(d.nj(c))}};$.H(X9,$.Uz);
X9.prototype.Mr=function(){var a=this.pe(),b=this.i("from"),c=this.i("to");this.i("from")>this.i("to")&&(b=this.i("to"),c=this.i("from"));var d=$.Za(this.scale().transform(b,0),0,1),e=$.Za(this.scale().transform(c,1),0,1);if(!(0,window.isNaN)(d)&&!(0,window.isNaN)(e)){c=this.ja();b=this.wp();$.zy(this).clear();var f=this.mc().Zh,h=this.mc().zh;if("horizontal"==a){e=Math.floor(c.Ua()-c.height*e);d=Math.ceil(c.Ua()-c.height*d);a=c.qb();var k=c.$a();$.zy(this).moveTo(a,e).lineTo(a+f,e-h).lineTo(k+f,
e-h).lineTo(k+f,d-h).lineTo(a+f,d-h).lineTo(a,d).close()}else"vertical"==a&&(a=c.Ua(),k=c.bc(),d=Math.floor(c.qb()+c.width*d),e=Math.ceil(c.qb()+c.width*e),$.zy(this).moveTo(d,a).lineTo(d+f,a-h).lineTo(d+f,k-h).lineTo(e+f,k-h).lineTo(e+f,a-h).lineTo(e,a).close());c.top-=h;c.height+=h;c.width+=f;$.zy(this).clip(b.nj(c))}};$.H(Y9,$.Xz);Y9.prototype.ja=function(a,b,c,d){b=Y9.u.ja.call(this,a,b,c,d);$.n(a)||(a=this.mc().Zh,c=this.mc().zh,b.top-=c,b.height+=c,b.width+=a);return b};$.H(Z9,$.xA);$.sG[2]=Z9;$.g=Z9.prototype;$.g.type=2;$.g.flags=$.bB|49;$.g.vh={top:"path",bottom:"path",left:"path",right:"path",back:"path",front:"path",cap:"path",frontHatch:"path"};$.g.yJ=function(){for(var a=this.W.Qf();a.advance();){var b=a.o("shapes");if(b){var c=a.o("zIndex");this.Wc.ct(c+1E-8*a.la(),b)}}};
$.g.rd=function(a){Z9.u.rd.call(this,a);this.U=!0;a=this.W.Aa;var b=this.W.la(),c=this.W.Tg(),d=Xpa(this.W);this.Ra=!c||b==a.Y1[d];this.Ja=a.RL(b,c);this.O=a.SL(b,c);this.b=e$(a,c);this.g=f$(a,c);a.Va().Uf()?(T9(this.Wc,"left",4E-6),T9(this.Wc,"right",1E-6)):(T9(this.Wc,"left",1E-6),T9(this.Wc,"right",4E-6));a.bb().Uf()?(T9(this.Wc,"top",2E-6),T9(this.Wc,"bottom",3E-6)):(T9(this.Wc,"top",3E-6),T9(this.Wc,"bottom",2E-6))};
$.g.zo=function(a){var b=this.Wc.Xc(this.Ac,null,this.W.zIndex()),c=a.o("x")+this.Ja,d=a.o("zero")-this.O,e=a.o("zeroMissing");a=a.o("value")-this.O;b.front.moveTo(c,d).lineTo(c,a);b.frontHatch.moveTo(c,d).lineTo(c,a);this.W.Tg()?this.f=[c,d,e]:(b.back.moveTo(c+this.b,d-this.g).lineTo(c+this.b,a-this.g),b.bottom.moveTo(c,d).lineTo(c+this.b,d-this.g),"none"==this.W.bb().Um()&&a>=d&&b.cap.moveTo(c,d).lineTo(c+this.b,d-this.g),b.left.moveTo(c,d).lineTo(c,a).lineTo(c+this.b,a-this.g).lineTo(c+this.b,
d-this.g).close());this.D=c;this.G=a;this.vi=this.ka=d};
$.g.fg=function(a){var b=this.Wc.Xc(this.Ac),c=a.o("x")+this.Ja,d=a.o("zero")-this.O,e=a.o("zeroMissing");a=a.o("value")-this.O;this.W.Tg()?this.f.push(c,d,e):(b.bottom.lineTo(c+this.b,d-this.g),b.back.lineTo(c+this.b,a-this.g));e=b.front.oY();this.Ra&&(this.U?b.top.moveTo(e.x,e.y).lineTo(e.x+this.b,e.y-this.g).lineTo(c+this.b,a-this.g).lineTo(c,a).close():b.top.moveTo(e.x,e.y).lineTo(c,a).lineTo(c+this.b,a-this.g).lineTo(e.x+this.b,e.y-this.g).close(),this.U=!this.U);if("none"==this.W.bb().Um()){var f=
(d-e.y)*(c-e.x)/(a-e.y)+e.x;0<a-e.y&&e.y<=d&&a>d?b.cap.moveTo(f,d).lineTo(f+this.b,d-this.g):0>a-e.y&&e.y>d&&a<=d&&b.cap.lineTo(f+this.b,d-this.g).lineTo(f,d).close()}b.front.lineTo(c,a);b.frontHatch.lineTo(c,a);this.D=c;this.G=a;this.ka=d};
$.g.vm=function(){if(this.N){var a=this.Wc.Xc(this.Ac),b=a.front,c=a.frontHatch;if(this.f){for(var d=window.NaN,e=window.NaN,f=!1,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];m&&!(0,window.isNaN)(d)?(b.lineTo(d,l),c.lineTo(d,l)):f&&!(0,window.isNaN)(e)&&(b.lineTo(k,e),c.lineTo(k,e));b.lineTo(k,l);c.lineTo(k,l);d=k;e=l;f=m}b.close();c.close();this.f=null}else(0,window.isNaN)(this.D)||(b.lineTo(this.D,this.vi).close(),c.lineTo(this.D,this.vi).close(),a.back.lineTo(this.D+
this.b,this.vi-this.g).close(),a.bottom.lineTo(this.D,this.vi).close(),"none"==this.W.bb().Um()&&this.G>=this.W.vi&&a.cap.lineTo(this.D+this.b,this.vi-this.g).lineTo(this.D,this.vi).close());(0,window.isNaN)(this.D)||a.right.moveTo(this.D,this.ka).lineTo(this.D,this.G).lineTo(this.D+this.b,this.G-this.g).lineTo(this.D+this.b,this.ka-this.g).close()}};$.H($9,$.xA);$.sG[7]=$9;$.g=$9.prototype;$.g.type=7;$.g.flags=$.bB|263717;$.g.vh={top:"path",bottom:"path",left:"path",right:"path",back:"path",front:"path",frontHatch:"path",rightHatch:"path",topHatch:"path"};$.g.rd=function(a){$9.u.rd.call(this,a);a=this.W.Aa;var b=this.W.la(),c=this.W.Tg();this.f=a.RL(b,c);this.b=a.SL(b,c);this.g=e$(a,c);this.D=f$(a,c)};$.g.yJ=function(a){for(var b=this.W.Qf();b.advance();){var c=b.o("shapes");c&&(a=b.o("zIndex"),this.Wc.ct(a+1E-8*b.la(),c))}};
$.g.fg=function(a,b){var c=a.o("zIndex")+1E-8*(a.o("directIndex")+a.la());c=this.Wc.Xc(b,null,c);Zpa(this,a,c)};$.g.bt=function(a){var b=a.o("shapes"),c;for(c in b)b[c].clear();Zpa(this,a,b)};$.H(a$,$.xA);$.sG[33]=a$;$.g=a$.prototype;$.g.type=33;$.g.flags=$.bB|32848;$.g.vh={path:"path"};$.g.yJ=function(){for(var a=this.W.Qf();a.advance();){var b=a.o("shapes");if(b){var c=a.o("zIndex");this.Wc.ct(c+1E-8*a.la(),b)}}};$.g.rd=function(a){a$.u.rd.call(this,a);this.G=!0;a=this.W.Aa;var b=this.W.la();this.O=a.RL(b,!1);this.U=a.SL(b,!1);this.g=e$(a,!1);this.D=f$(a,!1)};$.g.zo=function(a){this.b=a.o("x")+this.O;this.f=a.o("value")-this.U};
$.g.fg=function(a){var b=this.Wc.Xc(this.Ac),c=a.o("x")+this.O;a=a.o("value")-this.U;this.G?b.path.moveTo(this.b,this.f).lineTo(this.b+this.g,this.f-this.D).lineTo(c+this.g,a-this.D).lineTo(c,a).close():b.path.moveTo(this.b,this.f).lineTo(c,a).lineTo(c+this.g,a-this.D).lineTo(this.b+this.g,this.f-this.D).close();this.G=!this.G;this.b=c;this.f=a};$.H(b$,$.BB);b$.prototype.rg=function(a){c$(a);b$.u.rg.call(this,a)};b$.prototype.Gg=function(a){c$(a);b$.u.Gg.call(this,a)};b$.prototype.Cj=function(a){c$(a);b$.u.Cj.call(this,a)};b$.prototype.sh=function(a){c$(a);b$.u.sh.call(this,a)};var m$={},n$=$.tG|5767168;
m$.area={Ab:2,Fb:1,Jb:[{name:"top",Mb:"path",Sb:null,Tb:null,Vb:!1,Bb:!1,zIndex:3E-6},g$,h$,i$,j$,$.uH,{name:"cap",Mb:"path",Sb:null,Tb:null,Vb:!1,Bb:!1,zIndex:3.5E-6},k$],Ib:null,Cb:function(a,b,c){var d,e,f,h;c=$.Vl("fill",1,!0)(a,c);a=$.D(c)?c.opacity:1;var k=$.D(c)?c.color:c;c=$.Dl(k);if(null===c)k=d=e=f=h=c="none";else{k=c.ck;f=$.wl(k);var l=$.Al(f,.2);e=$.Al(f,.3);c=$.Al(f,.25);h=$.zl([255,255,255],f,.1);d=$.Ub($.zl(f,l,.7));e=$.Ub($.zl(f,e,.7));h=$.Ub($.zl(l,h,.1));f=$.Ub($.zl(f,l,.1));k={angle:90,
opacity:a,keys:[$.Hl(d,.2),$.Hl(k,.3)]};d=$.Hl(e,.2);e=f=$.Hl(f,.2);c=$.Ub(c)}b.bottom.fill({color:f,opacity:a});b.back.fill({color:h,opacity:a});b.left.fill({color:c,opacity:a});b.right.fill({color:e,opacity:a});b.top.fill({color:d,opacity:a});b.cap.fill({color:f,opacity:a});b.front.fill(k);b.top.stroke({color:d,thickness:.8})},zb:n$,yb:"value",wb:"zero"};m$.bar={Ab:7,Fb:2,Jb:[hqa,g$,h$,i$,j$,$.uH,k$,iqa,jqa],Ib:null,Cb:$pa,zb:n$,yb:"value",wb:"zero"};
m$.column={Ab:7,Fb:2,Jb:[hqa,g$,h$,i$,j$,$.uH,k$,iqa,jqa],Ib:null,Cb:$pa,zb:n$,yb:"value",wb:"zero"};m$.line={Ab:33,Fb:1,Jb:[{name:"path",Mb:"path",Sb:null,Tb:null,Vb:!1,Bb:!1,zIndex:0}],Ib:null,Cb:function(a,b,c){c=$.Vl("fill",1,!0)(a,c);a=$.D(c)?c.opacity:1;c=$.D(c)?c.color:c;c=$.Dl(c);null===c?c="none":(c=c.ck,c=$.wl(c),c=$.Ub($.zl(c,$.Al(c,.3),.7)),c=$.Hl(c,.2));b.path.fill({color:c,opacity:a}).stroke({color:c,thickness:.8})},zb:n$,yb:"value",wb:"value"};
m$["line-2d"]={Ab:8,Fb:1,Jb:[{name:"stroke",Mb:"path",Sb:null,Tb:"stroke",Vb:!0,Bb:!1,zIndex:9E-6}],Ib:null,Cb:null,zb:n$|2097152,yb:"value",wb:"value"};b$.prototype.Oi=m$;$.yz(b$,b$.prototype.Oi);$.Jp["cartesian-3d"]=aqa;$.g=b$.prototype;$.g.zs=function(a){return $.xk(gqa,a,"column")};$.g.vM=function(){return!0};$.g.RL=function(a,b){if(b||!this.i("zDistribution"))var c=0;else c=d$(this),a=bqa(this,a),c=c-a-1,c*=e$(this,b)+this.g;return c};
$.g.SL=function(a,b){if(b||!this.i("zDistribution"))var c=0;else c=d$(this),a=bqa(this,a),c=c-a-1,c*=f$(this,b)+this.G;return c};$.g.UE=function(){return new U9};$.g.IY=function(){var a=new W9;a.Ba=this;return a};$.g.JY=function(){var a=new X9;a.Ba=this;return a};$.g.KY=function(){var a=new Y9;a.Ba=this;return a};
$.g.JV=function(){this.Y1={};for(var a=this.Te(),b,c="none"!=this.bb().Um(),d="direct"==this.bb().Iw(),e=[30],f=!0,h=1;h<a.length;h++)a[h].Na()==a[h-1].Na()?e.push(e[h-1]):(e.push(30+(1-1/(h+1))),f=!1);for(h=0;h<a.length;h++){var k=30+(1-1/(h+1));b=a.length-h-1;var l=c&&d?b:h;if((b=a[l])&&b.enabled())if(b.check($.bB)){if(b.Rg())for(l=b.vc();l.advance();){var m=b,p=h;var q=a.length;var r=e[h],t=f,u=m.aa(),v=$.N(u.get("value")),w=u.la();p+=1;var x=.01,y="none"!=this.bb().Um(),B=this.Va().Uf();w=B?u.Gb()-
w:w+1;r=this.i("zDistribution")?30+(1-1/p):t?30:r;this.bb().Uf()^0>v&&(p=-p);m.i("isVertical")?y||this.i("zDistribution")?(m=w,w=p,p=m,m=1-1/Math.abs(w),r=0<w?r+x*(p+m):r-x*(q-p+m)):(B&&(p=q-Math.abs(p)+1),w=w*q-q+Math.abs(p),x*=w,r+=x,this.bb().Uf()&&(v=-v),0>v&&(x=-x),r+=x):(y||this.i("zDistribution")||(B&&(p=q-Math.abs(p)+1),w=w*q-q+Math.abs(p)),x*=w,r+=x);u.o("zIndex",r);u.o("directIndex",w*p);q=r;k<q&&(k=q)}else b.zIndex()!=b.Mh&&b.zIndex()!=k&&(k=b.zIndex()),b.check(32)&&(this.Y1[Xpa(b)]=l);
b.zIndex(k)}else k=1E-5*b.mh()+32,b.Mh=k}};
$.g.n0=function(a){a=a.clone().round();var b=this.FC(a),c=d$(this),d=this.i("zAngle"),e=this.i("zAspect"),f=this.i("zPadding"),h=this.i("zDistribution"),k=$.bb(d);d=$.bb(90-d);if($.oo(e)){var l=(0,window.parseFloat)(e)/100;e=l*Math.sin(d);for(var m=l*Math.sin(k),p=l=0,q=this.Te(),r,t=0;t<q.length;t++)if((r=q[t])&&r.enabled()&&r.check($.bB)){var u=r.Va();u=1/("ordinal"==u.Na()?u.values().length:r.aa().Gb());var v=this.i("barsPadding");var w=this.i("barGroupsPadding");v=r.Tg()||h?1/(1+w):1/(c+(c-1)*
v+w);u*=v;!r.Tg()&&h?(l+=u*e,p+=u*m):l||(l=u*e,p=u*m)}this.g=Math.round(f*Math.sin(d));this.G=Math.round(f*Math.sin(k));f=this.rs?b.height/(1+l):b.width/(1+l);this.Zh=f*l;this.zh=f*p;!this.YC&&h&&(this.Zh+=this.g*(c-1),this.zh+=this.G*(c-1));this.Zh=Math.round(this.Zh);this.zh=Math.round(this.zh)}else this.ba=!this.YC&&h?e*c+f*(c-1):$.N(e),this.Zh=Math.round(this.ba*Math.sin(d)),this.zh=Math.round(this.ba*Math.sin(k)),h=c-1,f*h>=this.ba&&(f=(this.ba-c)/h),this.g=Math.round(f*Math.sin(d)),this.G=Math.round(f*
Math.sin(k));this.Zh=Math.max(this.Zh,0)||0;this.zh=Math.max(this.zh,0)||0;this.g=Math.max(this.g,0)||0;this.G=Math.max(this.G,0)||0;a.top+=this.zh;a.height-=this.zh;a.width-=this.Zh;return a};$.g.VK=function(a,b,c){if(!this.YC&&this.i("zDistribution")){if(0<a){a=1+this.i("barGroupsPadding");for(var d=1/a,e=0;e<b.length;e++)a=b[e].W,a.check(262144)&&c^a.i("isVertical")&&($.TA(a,.5),$.SA(a,d))}}else b$.u.VK.call(this,a,b,c)};
$.g.ig=function(a){var b=$.mo(a.target);return(b=b&&b.W)&&!b.fd&&b.enabled()?b.ig(a):b$.u.ig.call(this,a)};$.g.X=function(a,b){b$.u.X.call(this,a,b)};var o$=b$.prototype;$.F("anychart.cartesian3d",aqa);o$.xScale=o$.Va;o$.yScale=o$.bb;o$.crosshair=o$.$g;o$.xGrid=o$.Zm;o$.yGrid=o$.$m;o$.xMinorGrid=o$.xr;o$.yMinorGrid=o$.Ar;o$.xAxis=o$.lh;o$.getXAxesCount=o$.QC;o$.yAxis=o$.ti;o$.getYAxesCount=o$.SC;o$.getSeries=o$.Ue;o$.zIndex=o$.zIndex;o$.lineMarker=o$.Jm;o$.rangeMarker=o$.Sm;o$.textMarker=o$.Xm;
o$.palette=o$.cc;o$.markerPalette=o$.sf;o$.hatchFillPalette=o$.oe;o$.getType=o$.Na;o$.addSeries=o$.Rk;o$.getSeriesAt=o$.Nh;o$.getSeriesCount=o$.Mj;o$.removeSeries=o$.mo;o$.removeSeriesAt=o$.Cn;o$.removeAllSeries=o$.kp;o$.getPlotBounds=o$.Rf;o$.xZoom=o$.Aq;o$.yZoom=o$.Bq;o$.xScroller=o$.rp;o$.yScroller=o$.Br;o$.getStat=o$.Eg;o$.getXScales=o$.Sx;o$.getYScales=o$.Ux;$.Jp["area-3d"]=cqa;$.Jp["bar-3d"]=dqa;$.Jp["column-3d"]=eqa;$.Jp["line-3d"]=fqa;$.F("anychart.area3d",cqa);$.F("anychart.bar3d",dqa);$.F("anychart.column3d",eqa);$.F("anychart.line3d",fqa);}).call(this,$)}
