/** * Highcharts JS v11.2.0 (2023-10-30) * * 3D features for Highcharts JS * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Core/Math3D.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var i=t.deg2rad,s=e.pick;function r(t,e,r,a){var n=e.options.chart.options3d,h=s(a,!!r&&e.inverted),l={x:e.plotWidth/2,y:e.plotHeight/2,z:n.depth/2,vd:s(n.depth,1)*s(n.viewDistance,0)},p=e.scale3d||1,c=i*n.beta*(h?-1:1),d=i*n.alpha*(h?-1:1),x={cosA:Math.cos(d),cosB:Math.cos(-c),sinA:Math.sin(d),sinB:Math.sin(-c)};return r||(l.x+=e.plotLeft,l.y+=e.plotTop),t.map(function(t){var e,i,s,r=(e=(h?t.y:t.x)-l.x,i=(h?t.x:t.y)-l.y,s=(t.z||0)-l.z,{x:x.cosB*e-x.sinB*s,y:-x.sinA*x.sinB*e+x.cosA*i-x.cosB*x.sinA*s,z:x.cosA*x.sinB*e+x.sinA*i+x.cosA*x.cosB*s}),a=o(r,l,l.vd);return a.x=a.x*p+l.x,a.y=a.y*p+l.y,a.z=r.z*p+l.z,{x:h?a.y:a.x,y:h?a.x:a.y,z:a.z}})}function o(t,e,i){var s=i>0&&i=0?0:360),t.beta=t.beta%360+(t.beta>=0?0:360));var e=this.inverted,i=this.clipBox,s=this.margin;i[e?"y":"x"]=-(s[3]||0),i[e?"x":"y"]=-(s[0]||0),i[e?"height":"width"]=this.chartWidth+(s[3]||0)+(s[1]||0),i[e?"width":"height"]=this.chartHeight+(s[0]||0)+(s[2]||0),this.scale3d=1,!0===t.fitToPlot&&(this.scale3d=this.chart3d.getScale(t.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function y(){this.is3d()&&(this.isDirtyBox=!0)}function u(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function v(){this.chart3d||(this.chart3d=new m(this))}function z(t){return this.is3d()||t.apply(this,[].slice.call(arguments,1))}function b(t){var e,i=this.series.length;if(this.is3d())for(;i--;)(e=this.series[i]).translate(),e.render();else t.call(this)}function g(t){t.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}t.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},t.compose=function(o,n){var h=o.prototype,d=n.prototype;h.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},h.propsRequireDirtyBox.push("chart.options3d"),h.propsRequireUpdateSeries.push("chart.options3d"),d.matrixSetter=function(){var t;if(this.pos<1&&(p(this.start)||p(this.end))){var e=this.start||[1,0,0,1,0,0],i=this.end||[1,0,0,1,0,0];t=[];for(var s=0;s<6;s++)t.push(this.pos*i[s]+(1-this.pos)*e[s])}else t=this.end;this.elem.attr(this.prop,t,null,!0)},c(!0,a,t.defaultOptions),l(o,"init",v),l(o,"addSeries",e),l(o,"afterDrawChartBox",i),l(o,"afterGetContainer",s),l(o,"afterInit",r),l(o,"afterSetChartSize",f),l(o,"beforeRedraw",y),l(o,"beforeRender",u),x(h,"isInsidePlot",z),x(h,"renderSeries",b),x(h,"setClassName",g)};var m=function(){function t(t){this.frame3d=void 0,this.chart=t}return t.prototype.get3dFrame=function(){var t=this.chart,e=t.options.chart.options3d,i=e.frame,s=t.plotLeft,r=t.plotLeft+t.plotWidth,o=t.plotTop,a=t.plotTop+t.plotHeight,l=e.depth,p=function(e){var i=h(e,t);return i>.5?1:i<-.5?-1:0},c=p([{x:s,y:a,z:l},{x:r,y:a,z:l},{x:r,y:a,z:0},{x:s,y:a,z:0}]),x=p([{x:s,y:o,z:0},{x:r,y:o,z:0},{x:r,y:o,z:l},{x:s,y:o,z:l}]),f=p([{x:s,y:o,z:0},{x:s,y:o,z:l},{x:s,y:a,z:l},{x:s,y:a,z:0}]),y=p([{x:r,y:o,z:l},{x:r,y:o,z:0},{x:r,y:a,z:0},{x:r,y:a,z:l}]),u=p([{x:s,y:a,z:0},{x:r,y:a,z:0},{x:r,y:o,z:0},{x:s,y:o,z:0}]),v=p([{x:s,y:o,z:l},{x:r,y:o,z:l},{x:r,y:a,z:l},{x:s,y:a,z:l}]),z=!1,b=!1,g=!1,m=!1;[].concat(t.xAxis,t.yAxis,t.zAxis).forEach(function(t){t&&(t.horiz?t.opposite?b=!0:z=!0:t.opposite?m=!0:g=!0)});var M=function(t,e,i){for(var s=["size","color","visible"],r={},o=0;o0),{size:d(r.size,1),color:d(r.color,"none"),frontFacing:e>0,visible:l}},P={axes:{},bottom:M([i.bottom,i.top,i],c,z),top:M([i.top,i.bottom,i],x,b),left:M([i.left,i.right,i.side,i],f,g),right:M([i.right,i.left,i.side,i],y,m),back:M([i.back,i.front,i],v,!0),front:M([i.front,i.back,i],u,!1)};if("auto"===e.axisLabelPosition){var S=function(t,e){return t.visible!==e.visible||t.visible&&e.visible&&t.frontFacing!==e.frontFacing},A=[];S(P.left,P.front)&&A.push({y:(o+a)/2,x:s,z:0,xDir:{x:1,y:0,z:0}}),S(P.left,P.back)&&A.push({y:(o+a)/2,x:s,z:l,xDir:{x:0,y:0,z:-1}}),S(P.right,P.front)&&A.push({y:(o+a)/2,x:r,z:0,xDir:{x:0,y:0,z:1}}),S(P.right,P.back)&&A.push({y:(o+a)/2,x:r,z:l,xDir:{x:-1,y:0,z:0}});var C=[];S(P.bottom,P.front)&&C.push({x:(s+r)/2,y:a,z:0,xDir:{x:1,y:0,z:0}}),S(P.bottom,P.back)&&C.push({x:(s+r)/2,y:a,z:l,xDir:{x:-1,y:0,z:0}});var D=[];S(P.top,P.front)&&D.push({x:(s+r)/2,y:o,z:0,xDir:{x:1,y:0,z:0}}),S(P.top,P.back)&&D.push({x:(s+r)/2,y:o,z:l,xDir:{x:-1,y:0,z:0}});var j=[];S(P.bottom,P.left)&&j.push({z:(0+l)/2,y:a,x:s,xDir:{x:0,y:0,z:-1}}),S(P.bottom,P.right)&&j.push({z:(0+l)/2,y:a,x:r,xDir:{x:0,y:0,z:1}});var k=[];S(P.top,P.left)&&k.push({z:(0+l)/2,y:o,x:s,xDir:{x:0,y:0,z:-1}}),S(P.top,P.right)&&k.push({z:(0+l)/2,y:o,x:r,xDir:{x:0,y:0,z:1}});var w=function(e,i,s){if(0===e.length)return null;if(1===e.length)return e[0];for(var r=n(e,t,!1),o=0,a=1;as*r[o][i]?o=a:s*r[a][i]==s*r[o][i]&&r[a].zp.minX&&(c=Math.min(c,1-Math.abs((s+h)/(p.minX+h))%1)),rp.minY&&(c=p.minY<0?Math.min(c,(o+l)/(-p.minY+o+l)):Math.min(c,1-(o+l)/(p.minY+l)%1)),a270||l.beta<90?l.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),n.reversed=!0;var p=i.call(this,n,!0,!0);if(p[0]&&"M"===p[0][0]&&(p[0]=["L",p[0][1],p[0][2]]),this.areaPath){var c=this.areaPath.splice(0,this.areaPath.length/2).concat(p);c.xMap=this.areaPath.xMap,this.areaPath=c}return e}return{compose:function(t){i.pushUnique(a,t)&&o(t.prototype,"getGraphPath",n)}}}),i(e,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),i(e,"Core/Axis/Tick3DComposition.js",[e["Core/Utilities.js"]],function(t){var e=t.addEvent,i=t.extend,s=t.wrap,r=[];function o(t){var e=this.axis.axis3D;e&&i(t.pos,e.fix3dPosition(t.pos))}function a(t){var e=this.axis.axis3D,i=t.apply(this,[].slice.call(arguments,1));if(e){var s=i[0],r=i[1];if("M"===s[0]&&"L"===r[0]){var o=[e.fix3dPosition({x:s[1],y:s[2],z:0}),e.fix3dPosition({x:r[1],y:r[2],z:0})];return this.axis.chart.renderer.toLineSegments(o)}}return i}return{compose:function(i){t.pushUnique(r,i)&&(e(i,"afterGetLabelPosition",o),s(i.prototype,"getMarkPath",a))}}}),i(e,"Core/Axis/Axis3DComposition.js",[e["Core/Axis/Axis3DDefaults.js"],e["Core/Globals.js"],e["Core/Math3D.js"],e["Core/Axis/Tick3DComposition.js"],e["Core/Utilities.js"]],function(t,e,i,s,r){var o=e.deg2rad,a=i.perspective,n=i.perspective3D,h=i.shapeArea,l=r.addEvent,p=r.merge,c=r.pick,d=r.wrap,x=[];function f(){var t=this.chart,e=this.options;t.is3d&&t.is3d()&&"colorAxis"!==this.coll&&(e.tickWidth=c(e.tickWidth,0),e.gridLineWidth=c(e.gridLineWidth,1))}function y(t){this.chart.is3d()&&"colorAxis"!==this.coll&&t.point&&(t.point.crosshairPos=this.isXAxis?t.point.axisXpos:this.len-t.point.axisYpos)}function u(){this.axis3D||(this.axis3D=new M(this))}function v(t){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:t.apply(this,[].slice.call(arguments,1))}function z(t){if(!this.chart.is3d()||"colorAxis"===this.coll)return t.apply(this,[].slice.call(arguments,1));var e=arguments,i=e[1],s=e[2],r=[],o=this.getPlotLinePath({value:i}),a=this.getPlotLinePath({value:s});if(o&&a)for(var n=0;nh(a([t,{x:t.x+r.x,y:t.y+r.y,z:t.z+r.z},{x:t.x+g.x,y:t.y+g.y,z:t.z+g.z}],i.chart))&&(r={x:-r.x,y:-r.y,z:-r.z});var D=a([{x:t.x,y:t.y,z:t.z},{x:t.x+r.x,y:t.y+r.y,z:t.z+r.z},{x:t.x+g.x,y:t.y+g.y,z:t.z+g.z}],i.chart);C.matrix=[D[1].x-D[0].x,D[1].y-D[0].y,D[2].x-D[0].x,D[2].y-D[0].y,C.x,C.y],C.matrix[4]-=C.x*C.matrix[0]+C.y*C.matrix[2],C.matrix[5]-=C.x*C.matrix[1]+C.y*C.matrix[3]}return C},e.prototype.swapZ=function(t,e){var i=this.axis;if(i.isZAxis){var s=e?0:i.chart.plotLeft;return{x:s+t.z,y:t.y,z:t.x-s}}return t},e}();return M}),i(e,"Core/Series/Series3D.js",[e["Core/Math3D.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(t,e,i){var s,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=t.perspective,a=i.addEvent,n=i.extend,h=i.merge,l=i.pick,p=i.pushUnique,c=i.isNumber,d=[];return function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return r(i,t),i.compose=function(t){p(d,t)&&(a(t,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),n(t.prototype,{translate3dPoints:i.prototype.translate3dPoints}))},i.prototype.translate3dPoints=function(){var t,e,i,s,r=this.options,a=this.chart,n=l(this.zAxis,a.options.zAxis[0]),h=[],p=[],d=r.stacking?c(r.stack)?r.stack:0:this.index||0;for(s=0,this.zPadding=d*(r.depth||0+(r.groupZPadding||1));s=n.min&&i<=n.max):t.plotZ=this.zPadding,t.axisXpos=t.plotX,t.axisYpos=t.plotY,t.axisZpos=t.plotZ,h.push({x:t.plotX,y:t.plotY,z:t.plotZ}),p.push(t.plotX||0);this.rawPointsX=p;var x=o(h,a,!0);for(s=0;s=0?0:.1).get(),side:o(t).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=t,this},e.types={base:e,cuboid:e},e}(a)}),i(e,"Core/Renderer/SVG/SVGRenderer3D.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Math3D.js"],e["Core/Renderer/SVG/SVGElement3D.js"],e["Core/Utilities.js"]],function(t,e,i,s,r,o){var a,n=t.animObject,h=e.parse,l=i.charts,p=i.deg2rad,c=s.perspective,d=s.shapeArea,x=o.defined,f=o.extend,y=o.merge,u=o.pick,v=o.pushUnique,z=[],b=Math.cos,g=Math.sin,m=Math.PI,M=4*(Math.sqrt(2)-1)/3/(m/2);function P(t,e,i,s,r,o,a,n){var h=o-r,l=[];return o>r&&o-r>Math.PI/2+1e-4?l=(l=l.concat(P(t,e,i,s,r,r+Math.PI/2,a,n))).concat(P(t,e,i,s,r+Math.PI/2,o,a,n)):oMath.PI/2+1e-4?l=(l=l.concat(P(t,e,i,s,r,r-Math.PI/2,a,n))).concat(P(t,e,i,s,r-Math.PI/2,o,a,n)):[["C",t+i*Math.cos(r)-i*M*h*Math.sin(r)+a,e+s*Math.sin(r)+s*M*h*Math.cos(r)+n,t+i*Math.cos(o)+i*M*h*Math.sin(o)+a,e+s*Math.sin(o)-s*M*h*Math.cos(o)+n,t+i*Math.cos(o)+a,e+s*Math.sin(o)+n]]}return function(t){function e(t,e){for(var i=[],s=0;s0?"inherit":"hidden"}return i.attr.apply(this,arguments)},s.animate=function(t){if("object"==typeof t&&(x(t.enabled)||x(t.vertexes)||x(t.insidePlotArea))){this.enabled=u(t.enabled,this.enabled),this.vertexes=u(t.vertexes,this.vertexes),this.insidePlotArea=u(t.insidePlotArea,this.insidePlotArea),delete t.enabled,delete t.vertexes,delete t.insidePlotArea;var s=l[e.chartIndex],r=c(this.vertexes,s,this.insidePlotArea),o=e.toLinePath(r,!0),a=d(r),n=this.enabled&&a>0?"visible":"hidden";t.d=o,this.attr("visibility",n)}return i.animate.apply(this,arguments)},s.attr(t)}function a(t){var e=this,i=e.Element.prototype,s=e.g(),r=s.destroy;return this.styledMode||s.attr({"stroke-linejoin":"round"}),s.faces=[],s.destroy=function(){for(var t=0;tt.faces.length;)s.faces.pop().destroy();for(;s.faces.lengtht.faces.length;)s.faces.pop().destroy();for(;s.faces.length1&&t<6?{x:y[t].x,y:y[t].y+10,z:y[t].z}:y[0].x===y[7].x&&t>=4?{x:y[t].x+10,y:y[t].y,z:y[t].z}:0===n&&t<2||t>5?{x:y[t].x,y:y[t].y,z:y[t].z+10}:y[t]},v=function(t){return y[t]},z=function(t,e,i){var s=t.map(v),r=e.map(v),o=t.map(u),a=e.map(u),n=[[],-1];return 0>d(s)?n=[s,0]:0>d(r)?n=[r,1]:i&&(x.push(i),n=0>d(o)?[s,0]:0>d(a)?[r,1]:[s,0]),n},b=(e=z([3,2,1,0],[7,6,5,4],"front"))[0],g=e[1],m=(e=z([1,6,7,0],[4,5,2,3],"top"))[0],M=e[1],P=(e=z([1,2,5,6],[0,7,4,3],"side"))[0],S=e[1];return 1===S?f+=1e6*(h.plotWidth-i):S||(f+=1e6*i),f+=10*(!M||p>=0&&p<=180||p<360&&p>357.5?h.plotHeight-s:10+s),1===g?f+=100*r:g||(f+=100*(1e3-r)),{front:this.toLinePath(b,!0),top:this.toLinePath(m,!0),side:this.toLinePath(P,!0),zIndexes:{group:Math.round(f)},forcedSides:x,isFront:g,isTop:M}}function C(t){var e=this.g(),s=this.Element.prototype,r=["x","y","r","innerR","start","end","depth"];function o(t){var e,i={},s=!1;for(e in t=y(t))-1!==r.indexOf(e)&&(i[e]=t[e],delete t[e],s=!0);return!!s&&[i,t]}(t=y(t)).alpha=(t.alpha||0)*p,t.beta=(t.beta||0)*p,e.top=this.path(),e.side1=this.path(),e.side2=this.path(),e.inn=this.path(),e.out=this.path(),e.onAdd=function(){var t=e.parentGroup,i=e.attr("class");e.top.add(e);for(var s=0,r=["out","inn","side1","side2"];s0?Math.PI/2:0,C=h>0?0:Math.PI/2,D=s>-A?s:r>-A?-A:s,j=rk&&sm-C&&sMath.PI&&(t=2*Math.PI-t),t}T=Y(T),E=Y(E);var Z=1e5*(X=Y(X)),G=1e5*E,R=1e5*T;return{top:S,zTop:1e5*Math.PI+1,out:w,zOut:Math.max(Z,G,R),inn:_,zInn:Math.max(Z,G,R),side1:O,zSide1:.99*R,side2:L,zSide2:.99*G}}t.compose=function(t){v(z,t)&&f(t.prototype,{Element3D:r,arc3d:C,arc3dPath:D,cuboid:S,cuboidPath:A,element3d:M,face3d:o,polyhedron:a,toLinePath:e,toLineSegments:s})}}(a||(a={})),a}),i(e,"Core/Axis/ZAxis.js",[e["Core/Axis/Axis.js"],e["Core/Utilities.js"]],function(t,e){var i,s=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function s(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(s.prototype=e.prototype,new s)}),r=e.addEvent,o=e.merge,a=e.pick,n=e.splat,h=[];function l(t){return new c(this,t)}function p(){var t=this,e=this.options.zAxis=n(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],e.forEach(function(e,i){t.addZAxis(e).setScale()}))}var c=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.isZAxis=!0,e}return s(i,t),i.compose=function(t){if(e.pushUnique(h,t)){r(t,"afterGetAxes",p);var i=t.prototype;i.addZAxis=l,i.collectionsWithInit.zAxis=[i.addZAxis],i.collectionsWithUpdate.push("zAxis")}},i.prototype.init=function(e,i){this.isZAxis=!0,t.prototype.init.call(this,e,i,"zAxis")},i.prototype.getSeriesExtremes=function(){var t=this;this.chart,this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(e){if(e.reserveSpace()){var i=e.options.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&i<=0&&(i=void 0);var s=e.zData;s.length&&(t.dataMin=Math.min(a(t.dataMin,s[0]),Math.min.apply(null,s)),t.dataMax=Math.max(a(t.dataMax,s[0]),Math.max.apply(null,s)))}})},i.prototype.setAxisSize=function(){var e=this.chart;t.prototype.setAxisSize.call(this),this.width=this.len=e.options.chart.options3d&&e.options.chart.options3d.depth||0,this.right=e.chartWidth-this.width-this.left},i.prototype.setOptions=function(e){e=o({offset:0,lineWidth:0},e),t.prototype.setOptions.call(this,e)},i}(t);return c}),i(e,"Series/Column3D/Column3DComposition.js",[e["Core/Math3D.js"],e["Core/Utilities.js"]],function(t,e){var i=t.perspective,s=e.addEvent,r=e.extend,o=e.pick,a=e.pushUnique,n=e.wrap,h=[];function l(){var t,e=this.chart,s=this.options,o=s.depth,a=(s.stacking?s.stack||0:this.index)*(o+(s.groupZPadding||1)),n=this.borderWidth%2?.5:0;e.inverted&&!this.yAxis.reversed&&(n*=-1),!1!==s.grouping&&(a=0),a+=s.groupZPadding||1;for(var h=0,l=this.data;hthis[u[0]+"Axis"].len&&0!==c[u[1]]&&(c[u[1]]=this[u[0]+"Axis"].len-c[u[0]]),0!==c[u[1]]&&(c[u[0]]>=this[u[0]+"Axis"].len||c[u[0]]+c[u[1]]<=n)){for(var v in c)c[v]="y"===v?-9999:0;p.outside3dPlot=!0}}if("roundedRect"===p.shapeType&&(p.shapeType="cuboid"),p.shapeArgs=r(c,{z:a,depth:o,insidePlotArea:!0}),t={x:c.x+c.width/2,y:c.y,z:a+o/2},e.inverted&&(t.x=c.height,t.y=p.clientX||0),p.plot3d=i([t],e,!0,!1)[0],x){var z=i([{x:x[0],y:x[1],z:a+o/2}],e,!0,!1)[0];p.tooltipPos=[z.x,z.y]}}}this.z=a}function p(){if(this.chart.is3d()){var t=this.options,e=t.grouping,i=t.stacking,s=this.yAxis.options.reversedStacks,r=0;if(!(void 0!==e&&!e)){var a,n,h,l,p=(a=this.chart.series,n={totalStacks:0},l=1,a.forEach(function(t){n[h=o(t.options.stack,i?0:a.length-1-t.index)]?n[h].series.push(t):(n[h]={series:[t],position:l},l++)}),n.totalStacks=l+1,n),c=t.stack||0,d=void 0;for(d=0;d=90&&p.alpha<=270&&(d.y+=e.shapeArgs.width)),d=i([d],n,!0,!1)[0],a.x=d.x-c,a.y=e.outside3dPlot?-9e9:d.y}t.apply(this,[].slice.call(arguments,1))}function b(t){return!arguments[2].outside3dPlot&&t.apply(this,[].slice.call(arguments,1))}function g(t,e){var s=t.apply(this,[].slice.call(arguments,1)),r=this.axis.chart,o=e.width;if(r.is3d()&&this.base){var a=+this.base.split(",")[0],n=r.series[a],h=r.options.chart.options3d;if(n&&"column"===n.type){var l={x:s.x+(r.inverted?s.height:o/2),y:s.y,z:n.options.depth/2};r.inverted&&(s.width=0,h.alpha>=90&&h.alpha<=270&&(l.y+=o)),l=i([l],r,!0,!1)[0],s.x=l.x-o/2,s.y=l.y}}return s}return{compose:function(t,e){if(a(h,t)){var i=t.prototype;n(i,"alignDataLabel",z),n(i,"justifyDataLabel",b)}a(h,e)&&n(e.prototype,"getStackBox",g);var r=t.types,o=r.column,m=r.columnRange;if(o&&a(h,o)){var M=o.prototype,P=M.pointClass.prototype;M.translate3dPoints=function(){},M.translate3dShapes=l,s(M,"afterInit",p),n(P,"hasNewShapeType",c),n(M,"animate",d),n(M,"plotGroup",x),n(M,"pointAttribs",f),n(M,"setState",y),n(M,"setVisible",u),n(M,"translate",v)}if(m&&a(h,m)){var S=m.prototype;n(S.pointClass.prototype,"hasNewShapeType",c),n(S,"plotGroup",x),n(S,"pointAttribs",f),n(S,"setState",y),n(S,"setVisible",u)}}}}),i(e,"Series/Pie3D/Pie3DPoint.js",[e["Core/Series/SeriesRegistry.js"]],function(t){var e,i=this&&this.__extends||(e=function(t,i){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)});return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.series=void 0,e}return i(e,t),e.prototype.haloPath=function(){var e;return(null===(e=this.series)||void 0===e?void 0:e.chart.is3d())?[]:t.prototype.haloPath.apply(this,arguments)},e}(t.seriesTypes.pie.prototype.pointClass)}),i(e,"Series/Pie3D/Pie3DSeries.js",[e["Core/Globals.js"],e["Series/Pie3D/Pie3DPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=t.deg2rad,n=i.seriesTypes.pie,h=s.extend,l=s.pick,p=s.pushUnique,c=[],d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.compose=function(t){p(c,t)&&(t.types.pie=e)},e.prototype.addPoint=function(){t.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},e.prototype.animate=function(e){if(this.chart.is3d()){var i=this.center,s=this.group,r=this.markerGroup,o=this.options.animation,a=void 0;!0===o&&(o={}),e?(s.oldtranslateX=l(s.oldtranslateX,s.translateX),s.oldtranslateY=l(s.oldtranslateY,s.translateY),a={translateX:i[0],translateY:i[1],scaleX:.001,scaleY:.001},s.attr(a),r&&(r.attrSetters=s.attrSetters,r.attr(a))):(a={translateX:s.oldtranslateX,translateY:s.oldtranslateY,scaleX:1,scaleY:1},s.animate(a,o),r&&r.animate(a,o))}else t.prototype.animate.apply(this,arguments)},e.prototype.getDataLabelPosition=function(e,i){var s=t.prototype.getDataLabelPosition.call(this,e,i);if(this.chart.is3d())for(var r=this.chart.options.chart.options3d,o=e.shapeArgs,n=o.r,h=(o.alpha||(null==r?void 0:r.alpha))*a,l=(o.beta||(null==r?void 0:r.beta))*a,p=(o.start+o.end)/2,c=s.connectorPosition,d=-n*(1-Math.cos(h))*Math.sin(p),x=n*(Math.cos(l)-1)*Math.cos(p),f=0,y=[null==s?void 0:s.natural,c.breakAt,c.touchingSliceAt];f{point.x}
y: {point.y}
z: {point.z}
"}}}),i(e,"Series/Scatter3D/Scatter3DSeries.js",[e["Core/Math3D.js"],e["Series/Scatter3D/Scatter3DPoint.js"],e["Series/Scatter3D/Scatter3DSeriesDefaults.js"],e["Series/Scatter/ScatterSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,s,r,o){var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h=t.pointCameraDistance,l=o.extend,p=o.merge,c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return n(e,t),e.prototype.pointAttribs=function(e){var i=t.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&e&&(i.zIndex=h(e,this.chart)),i},e.defaultOptions=p(s.defaultOptions,i),e}(s);return l(c.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:e}),r.registerSeriesType("scatter3d",c),c}),i(e,"masters/highcharts-3d.src.js",[e["Core/Globals.js"],e["Core/Chart/Chart3D.js"],e["Series/Area3D/Area3DSeries.js"],e["Core/Axis/Axis3DComposition.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series3D.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Renderer/SVG/SVGRenderer3D.js"],e["Core/Axis/ZAxis.js"],e["Series/Column3D/Column3DComposition.js"],e["Series/Pie3D/Pie3DSeries.js"]],function(t,e,i,s,r,o,a,n,h,l,p){i.compose(t.seriesTypes.area),s.compose(t.Axis,t.Tick),e.compose(t.Chart,t.Fx),l.compose(t.Series,a),p.compose(t.Series),o.compose(t.Series),n.compose(r.getRendererType()),h.compose(t.Chart)})});//# sourceMappingURL=highcharts-3d.js.map