/* Highcharts JS v10.2.1 (2022-08-29) 3D features for Highcharts JS License: www.highcharts.com/license */ (function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(D){d(D);d.Highcharts=D;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function D(d,u,x,B){d.hasOwnProperty(u)||(d[u]=B.apply(null,x),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:u,module:d[u]}})))}d=d?d._modules:{};D(d,"Core/Math3D.js", [d["Core/Globals.js"],d["Core/Utilities.js"]],function(d,u){function x(f,c,k,n){var b=c.options.chart.options3d,m=v(n,k?c.inverted:!1),e={x:c.plotWidth/2,y:c.plotHeight/2,z:b.depth/2,vd:v(b.depth,1)*v(b.viewDistance,0)},z=c.scale3d||1;n=y*b.beta*(m?-1:1);b=y*b.alpha*(m?-1:1);var a=Math.cos(b),l=Math.cos(-n),t=Math.sin(b),p=Math.sin(-n);k||(e.x+=c.plotLeft,e.y+=c.plotTop);return f.map(function(b){var c=(m?b.y:b.x)-e.x;var k=(m?b.x:b.y)-e.y;b=(b.z||0)-e.z;c={x:l*c-p*b,y:-t*p*c+a*k-l*t*b,z:a*p*c+t*k+ a*l*b};k=A(c,e,e.vd);k.x=k.x*z+e.x;k.y=k.y*z+e.y;k.z=c.z*z+e.z;return{x:m?k.y:k.x,y:m?k.x:k.y,z:k.z}})}function A(f,c,k){c=0 g&&q-g>Math.PI/2+.0001?(e=e.concat(this.curveTo(a,b,h,r,g,g+Math.PI/2,C,f)),e=e.concat(this.curveTo(a,b,h,r,g+Math.PI/2,q,C,f))):qMath.PI/2+.0001?(e=e.concat(this.curveTo(a,b,h,r,g,g-Math.PI/2,C,f)),e=e.concat(this.curveTo(a,b,h,r,g-Math.PI/2,q,C,f))):[["C",a+h*Math.cos(g)-h*F*l*Math.sin(g)+C,b+r*Math.sin(g)+r*F*l*Math.cos(g)+f,a+h*Math.cos(q)+h*F*l*Math.sin(q)+C,b+r*Math.sin(q)-r*F*l*Math.cos(q)+f,a+h*Math.cos(q)+C,b+r*Math.sin(q)+f]]};w.prototype.toLinePath=function(a,b){var h=[];a.forEach(function(a){h.push(["L", a.x,a.y])});a.length&&(h[0][0]="M",b&&h.push(["Z"]));return h};w.prototype.toLineSegments=function(a){var b=[],h=!0;a.forEach(function(a){b.push(h?["M",a.x,a.y]:["L",a.x,a.y]);h=!h});return b};w.prototype.face3d=function(l){var c=this,h=this.createElement("path");h.vertexes=[];h.insidePlotArea=!1;h.enabled=!0;h.attr=function(h){if("object"===typeof h&&(a(h.enabled)||a(h.vertexes)||a(h.insidePlotArea))){this.enabled=p(h.enabled,this.enabled);this.vertexes=p(h.vertexes,this.vertexes);this.insidePlotArea= p(h.insidePlotArea,this.insidePlotArea);delete h.enabled;delete h.vertexes;delete h.insidePlotArea;var g=e(this.vertexes,b[c.chartIndex],this.insidePlotArea),q=c.toLinePath(g,!0);g=z(g);h.d=q;h.visibility=this.enabled&&0g.faces.length;)h.faces.pop().destroy();for(;h.faces.lengthg.faces.length;)h.faces.pop().destroy();for(;h.faces.lengtha?{x:t[a].x,y:t[a].y+10,z:t[a].z}:t[0].x===t[7].x&&4<=a?{x:t[a].x+10,y:t[a].y,z:t[a].z}:0===c&&2>a||5z(r)?b=[r,0]:0>z(C)?b=[C,1]:q&&(w.push(q),b=0>z(a)?[r,0]:0>z(g)?[C,1]:[r,0]); return b};var m=n([3,2,1,0],[7,6,5,4],"front");a=m[0];var H=m[1];m=n([1,6,7,0],[4,5,2,3],"top");l=m[0];var G=m[1];m=n([1,2,5,6],[0,7,4,3],"side");n=m[0];m=m[1];1===m?k+=1E6*(p.plotWidth-r):m||(k+=1E6*r);k+=10*(!G||0<=d&&180>=d||360>d&&357.5Math.PI&&(a=2*Math.PI-a);return a}var h=a.x||0,r= a.y||0,g=a.start||0,q=(a.end||0)-.00001,f=a.r||0,e=a.innerR||0,l=a.depth||0,c=a.alpha||0,p=a.beta||0,t=Math.cos(g),d=Math.sin(g);a=Math.cos(q);var k=Math.sin(q),n=f*Math.cos(p);f*=Math.cos(c);var m=e*Math.cos(p),z=e*Math.cos(c);e=l*Math.sin(p);var v=l*Math.sin(c);l=[["M",h+n*t,r+f*d]];l=l.concat(w.curveTo(h,r,n,f,g,q,0,0));l.push(["L",h+m*a,r+z*k]);l=l.concat(w.curveTo(h,r,m,z,q,g,0,0));l.push(["Z"]);var F=0-F?g:q>-F?-F:g;var y=qu&&gI-p&&gg?-1:0},t=d([{x:c,y:f,z:p},{x:l,y:f,z:p},{x:l,y:f,z:0},{x:c,y:f,z:0}]),n=d([{x:c,y:h,z:0},{x:l,y:h,z:0},{x:l,y:h,z:p},{x:c,y:h,z:p}]),k=d([{x:c,y:h,z:0},{x:c,y:h,z:p},{x:c, y:f,z:p},{x:c,y:f,z:0}]),m=d([{x:l,y:h,z:p},{x:l,y:h,z:0},{x:l,y:f,z:0},{x:l,y:f,z:p}]),w=d([{x:c,y:f,z:0},{x:l,y:f,z:0},{x:l,y:h,z:0},{x:c,y:h,z:0}]);d=d([{x:c,y:h,z:p},{x:l,y:h,z:p},{x:l,y:f,z:p},{x:c,y:f,z:p}]);var z=!1,H=!1,G=!1,F=!1;[].concat(a.xAxis,a.yAxis,a.zAxis).forEach(function(a){a&&(a.horiz?a.opposite?H=!0:z=!0:a.opposite?F=!0:G=!0)});var u=function(a,g,e){for(var c=["size","color","visible"],l={},h=0;hb*c[l][e]?l= h:b*c[h][e]===b*c[l][e]&&c[h].zp&&(k=Math.min(k,1-Math.abs((e+h)/(p+h))%1)); bt&&(k=0>t?Math.min(k,(c+f)/(-t+c+f)):Math.min(k,1-(c+f)/(t+f)%1));lthis.pos&&(k(this.start)||k(this.end))){var a=this.start||[1,0,0,1,0,0],g=this.end||[1,0,0,1,0,0];var b=[];for(var e=0;6>e;e++)b.push(this.pos*g[e]+(1-this.pos)*a[e])}else b=this.end;this.elem.attr(this.prop,b,null,!0)};n(!0,A,e.defaultOptions);c(b,"init",F);c(b,"addSeries",a);c(b,"afterDrawChartBox",l);c(b,"afterGetContainer",t); c(b,"afterInit",p);c(b,"afterSetChartSize",d);c(b,"beforeRedraw",z);c(b,"beforeRender",u);m(g,"isInsidePlot",w);m(b,"renderSeries",x);m(b,"setClassName",E)}})(e||(e={}));"";return e});D(d,"Core/Axis/ZAxis.js",[d["Core/Axis/Axis.js"],d["Core/Utilities.js"]],function(d,u){function x(b){return new n(this,b)}function A(){var b=this,f=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],f.forEach(function(e,c){e.index=c;e.isX=!0;b.addZAxis(e).setScale()}))}var f=this&&this.__extends|| function(){var b=function(c,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(c,e)};return function(c,e){function f(){this.constructor=c}b(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),y=u.addEvent,v=u.merge,E=u.pick,c=u.splat,k=[],n=function(b){function c(e,c){e=b.call(this,e,c)||this;e.isZAxis=!0;return e}f(c,b);c.compose=function(b){-1===k.indexOf(b)&& (k.push(b),y(b,"afterGetAxes",A),b=b.prototype,b.addZAxis=x,b.collectionsWithInit.zAxis=[b.addZAxis],b.collectionsWithUpdate.push("zAxis"))};c.prototype.getSeriesExtremes=function(){var b=this,c=this.chart;this.hasVisibleSeries=!1;this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0;this.stacking&&this.stacking.buildStacks();this.series.forEach(function(a){if(a.visible||!c.options.chart.ignoreHiddenSeries)b.hasVisibleSeries=!0,a=a.zData,a.length&&(b.dataMin=Math.min(E(b.dataMin, a[0]),Math.min.apply(null,a)),b.dataMax=Math.max(E(b.dataMax,a[0]),Math.max.apply(null,a)))})};c.prototype.setAxisSize=function(){var e=this.chart;b.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};c.prototype.setOptions=function(e){e=v({offset:0,lineWidth:0},e);this.isZAxis=!0;b.prototype.setOptions.call(this,e);this.coll="zAxis"};return c}(d);return n});D(d,"Core/Axis/Tick3D.js",[d["Core/Utilities.js"]], function(d){var u=d.addEvent,x=d.extend,A=d.wrap;return function(){function f(){}f.compose=function(d){u(d,"afterGetLabelPosition",f.onAfterGetLabelPosition);A(d.prototype,"getMarkPath",f.wrapGetMarkPath)};f.onAfterGetLabelPosition=function(f){var d=this.axis.axis3D;d&&x(f.pos,d.fix3dPosition(f.pos))};f.wrapGetMarkPath=function(f){var d=this.axis.axis3D,u=f.apply(this,[].slice.call(arguments,1));if(d){var c=u[0],k=u[1];if("M"===c[0]&&"L"===k[0])return d=[d.fix3dPosition({x:c[1],y:c[2],z:0}),d.fix3dPosition({x:k[1], y:k[2],z:0})],this.axis.chart.renderer.toLineSegments(d)}return u};return f}()});D(d,"Core/Axis/Axis3D.js",[d["Core/Globals.js"],d["Core/Math3D.js"],d["Core/Axis/Tick.js"],d["Core/Axis/Tick3D.js"],d["Core/Utilities.js"]],function(d,u,x,B,f){var y=d.deg2rad,v=u.perspective,A=u.perspective3D,c=u.shapeArea,k=f.addEvent,n=f.merge,b=f.pick,m=f.wrap,e=function(){function e(a){this.axis=a}e.prototype.fix3dPosition=function(a,e){var f=this.axis,l=f.chart;if("colorAxis"===f.coll||!l.chart3d||!l.is3d())return a; var d=y*l.options.chart.options3d.alpha,k=y*l.options.chart.options3d.beta,n=b(e&&f.options.title.position3d,f.options.labels.position3d);e=b(e&&f.options.title.skew3d,f.options.labels.skew3d);var m=l.chart3d.frame3d,w=l.plotLeft,u=l.plotWidth+w,z=l.plotTop,x=l.plotHeight+z,h=l=0,r={x:0,y:1,z:0},g=!1;a=f.axis3D.swapZ({x:a.x,y:a.y,z:0});if(f.isZAxis)if(f.opposite){if(null===m.axes.z.top)return{};h=a.y-z;a.x=m.axes.z.top.x;a.y=m.axes.z.top.y;w=m.axes.z.top.xDir;g=!m.top.frontFacing}else{if(null===m.axes.z.bottom)return{}; h=a.y-x;a.x=m.axes.z.bottom.x;a.y=m.axes.z.bottom.y;w=m.axes.z.bottom.xDir;g=!m.bottom.frontFacing}else if(f.horiz)if(f.opposite){if(null===m.axes.x.top)return{};h=a.y-z;a.y=m.axes.x.top.y;a.z=m.axes.x.top.z;w=m.axes.x.top.xDir;g=!m.top.frontFacing}else{if(null===m.axes.x.bottom)return{};h=a.y-x;a.y=m.axes.x.bottom.y;a.z=m.axes.x.bottom.z;w=m.axes.x.bottom.xDir;g=!m.bottom.frontFacing}else if(f.opposite){if(null===m.axes.y.right)return{};l=a.x-u;a.x=m.axes.y.right.x;a.z=m.axes.y.right.z;w=m.axes.y.right.xDir; w={x:w.z,y:w.y,z:-w.x}}else{if(null===m.axes.y.left)return{};l=a.x-w;a.x=m.axes.y.left.x;a.z=m.axes.y.left.z;w=m.axes.y.left.xDir}"chart"!==n&&("flap"===n?f.horiz?(k=Math.sin(d),d=Math.cos(d),f.opposite&&(k=-k),g&&(k=-k),r={x:w.z*k,y:d,z:-w.x*k}):w={x:Math.cos(k),y:0,z:Math.sin(k)}:"ortho"===n?f.horiz?(r=Math.cos(d),n=Math.sin(k)*r,d=-Math.sin(d),k=-r*Math.cos(k),r={x:w.y*k-w.z*d,y:w.z*n-w.x*k,z:w.x*d-w.y*n},d=1/Math.sqrt(r.x*r.x+r.y*r.y+r.z*r.z),g&&(d=-d),r={x:d*r.x,y:d*r.y,z:d*r.z}):w={x:Math.cos(k), y:0,z:Math.sin(k)}:f.horiz?r={x:Math.sin(k)*Math.sin(d),y:Math.cos(d),z:-Math.cos(k)*Math.sin(d)}:w={x:Math.cos(k),y:0,z:Math.sin(k)});a.x+=l*w.x+h*r.x;a.y+=l*w.y+h*r.y;a.z+=l*w.z+h*r.z;l=v([a],f.chart)[0];e&&(0>c(v([a,{x:a.x+w.x,y:a.y+w.y,z:a.z+w.z},{x:a.x+r.x,y:a.y+r.y,z:a.z+r.z}],f.chart))&&(w={x:-w.x,y:-w.y,z:-w.z}),a=v([{x:a.x,y:a.y,z:a.z},{x:a.x+w.x,y:a.y+w.y,z:a.z+w.z},{x:a.x+r.x,y:a.y+r.y,z:a.z+r.z}],f.chart),l.matrix=[a[1].x-a[0].x,a[1].y-a[0].y,a[2].x-a[0].x,a[2].y-a[0].y,l.x,l.y],l.matrix[4]-= l.x*l.matrix[0]+l.y*l.matrix[2],l.matrix[5]-=l.x*l.matrix[1]+l.y*l.matrix[3]);return l};e.prototype.swapZ=function(a,b){var e=this.axis;return e.isZAxis?(b=b?0:e.chart.plotLeft,{x:b+a.z,y:a.y,z:a.x-b}):a};return e}();return function(){function c(){}c.compose=function(a){n(!0,a.defaultOptions,c.defaultOptions);a.keepProps.push("axis3D");k(a,"init",c.onInit);k(a,"afterSetOptions",c.onAfterSetOptions);k(a,"drawCrosshair",c.onDrawCrosshair);a=a.prototype;m(a,"getLinePath",c.wrapGetLinePath);m(a,"getPlotBandPath", c.wrapGetPlotBandPath);m(a,"getPlotLinePath",c.wrapGetPlotLinePath);m(a,"getSlotWidth",c.wrapGetSlotWidth);m(a,"getTitlePosition",c.wrapGetTitlePosition);B.compose(x)};c.onAfterSetOptions=function(){var a=this.chart,c=this.options;a.is3d&&a.is3d()&&"colorAxis"!==this.coll&&(c.tickWidth=b(c.tickWidth,0),c.gridLineWidth=b(c.gridLineWidth,1))};c.onDrawCrosshair=function(a){this.chart.is3d()&&"colorAxis"!==this.coll&&a.point&&(a.point.crosshairPos=this.isXAxis?a.point.axisXpos:this.len-a.point.axisYpos)}; c.onInit=function(){this.axis3D||(this.axis3D=new e(this))};c.wrapGetLinePath=function(a){return this.chart.is3d()&&"colorAxis"!==this.coll?[]:a.apply(this,[].slice.call(arguments,1))};c.wrapGetPlotBandPath=function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[2],e=[];b=this.getPlotLinePath({value:b[1]});c=this.getPlotLinePath({value:c});if(b&&c)for(var f=0;f=e.min&&n<=e.max:!1}else b.plotZ=this.zPadding;b.axisXpos=b.plotX; b.axisYpos=b.plotY;b.axisZpos=b.plotZ;k.push({x:b.plotX,y:b.plotY,z:b.plotZ});l.push(b.plotX||0)}this.rawPointsX=l;d=f(k,d,!0);for(a=0;ab.beta?b.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))}));e.reversed=!0;n=n.call(this,e,!0,!0);n[0]&&"M"===n[0][0]&&(n[0]=["L",n[0][1],n[0][2]]);this.areaPath&&(n=this.areaPath.splice(0,this.areaPath.length/2).concat(n),n.xMap=this.areaPath.xMap,this.areaPath=n);return d}var f=d.perspective,y=u.seriesTypes.line.prototype, v=x.wrap,E=[];return{compose:function(c){-1===E.indexOf(c)&&(E.push(c),v(c.prototype,"getGraphPath",A))}}});D(d,"Series/Column3D/Column3DComposition.js",[d["Series/Column/ColumnSeries.js"],d["Core/Globals.js"],d["Core/Series/Series.js"],d["Core/Math3D.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Axis/Stacking/StackItem.js"],d["Core/Utilities.js"]],function(d,u,x,B,f,y,v){function A(a,b){var c=a.series,e={totalStacks:0},f,d=1;c.forEach(function(a){f=z(a.options.stack,b?0:c.length-1-a.index);e[f]? e[f].series.push(a):(e[f]={series:[a],position:d},d++)});e.totalStacks=d+1;return e}function c(a){var b=a.apply(this,[].slice.call(arguments,1));this.chart.is3d&&this.chart.is3d()&&(b.stroke=this.options.edgeColor||b.fill,b["stroke-width"]=z(this.options.edgeWidth,1));return b}function k(a,b,c){var e=this.chart.is3d&&this.chart.is3d();e&&(this.options.inactiveOtherPoints=!0);a.call(this,b,c);e&&(this.options.inactiveOtherPoints=!1)}function n(a){for(var b=[],e=1;ep&&(l[b[1]]+=l[b[0]]+k,l[b[0]]=-k,p=0);p+l[b[1]]>a[b[0]+"Axis"].len&&0!==l[b[1]]&&(l[b[1]]=a[b[0]+"Axis"].len-l[b[0]]);if(0!==l[b[1]]&&(l[b[0]]>=a[b[0]+ "Axis"].len||l[b[0]]+l[b[1]]<=k)){for(var e in l)l[e]="y"===e?-9999:0;c.outside3dPlot=!0}});"rect"===c.shapeType&&(c.shapeType="cuboid");l.z=d;l.depth=f;l.insidePlotArea=!0;m={x:l.x+l.width/2,y:l.y,z:d+f/2};b.inverted&&(m.x=l.height,m.y=c.clientX);c.plot3d=e([m],b,!0,!1)[0];n=e([{x:n[0],y:n[1],z:d+f/2}],b,!0,!1)[0];c.tooltipPos=[n.x,n.y]}});a.z=d};v(b,"animate",function(a){if(this.chart.is3d()){var b=arguments[1],c=this.yAxis,e=this,f=this.yAxis.reversed;m&&(b?e.data.forEach(function(a){null!==a.y&& (a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,f||(a.shapeArgs.y=a.stackY?a.plotY+c.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(e.data.forEach(function(a){if(null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic))a.graphic[a.outside3dPlot?"attr":"animate"](a.shapeArgs,e.options.animation)}),this.drawDataLabels()))}else a.apply(this,[].slice.call(arguments,1))});v(b,"plotGroup",function(a,b,c,e,f,d){"dataLabelsGroup"!==b&&this.chart.is3d()&& (this[b]&&delete this[b],d&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(d)),this[b]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[b].survive=!0,"group"===b||"markerGroup"===b))&&(arguments[3]="visible");return a.apply(this,Array.prototype.slice.call(arguments,1))});v(b,"setVisible",function(a,b){var c=this;c.chart.is3d()&&c.data.forEach(function(a){a.visible=a.options.visible=b="undefined"===typeof b?!z(c.visible,a.visible): b;c.options.data[c.data.indexOf(a)]=a.options;a.graphic&&a.graphic.attr({visibility:b?"visible":"hidden"})});a.apply(this,Array.prototype.slice.call(arguments,1))});u(d,"afterInit",function(){if(this.chart.is3d()){var a=this.options,b=a.grouping,c=a.stacking,e=this.yAxis.options.reversedStacks,f=0;if("undefined"===typeof b||b){b=A(this.chart,c);f=a.stack||0;for(c=0;c=n.alpha&&(m.y+=b.shapeArgs.width));m=e([m],k,!0,!1)[0];d.x=m.x-p;d.y=b.outside3dPlot?-9E9:m.y}a.apply(this,[].slice.call(arguments,1))});v(y.prototype,"getStackBox",function(a,b,c,d,k,m,n,v){var l=a.apply(this,[].slice.call(arguments,1));if(b.is3d()&&c.base){var p=+c.base.split(",")[0],t=b.series[p];p=b.options.chart.options3d; t&&t instanceof f.seriesTypes.column&&(t={x:l.x+(b.inverted?n:m/2),y:l.y,z:t.options.depth/2},b.inverted&&(l.width=0,90<=p.alpha&&270>=p.alpha&&(t.y+=m)),t=e([t],b,!0,!1)[0],l.x=t.x-m/2,l.y=t.y)}return l});"";return d});D(d,"Series/Pie3D/Pie3DPoint.js",[d["Core/Series/SeriesRegistry.js"]],function(d){var u=this&&this.__extends||function(){var d=function(f,u){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var c in d)d.hasOwnProperty(c)&&(f[c]= d[c])};return d(f,u)};return function(f,u){function v(){this.constructor=f}d(f,u);f.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)}}();d=d.seriesTypes.pie.prototype.pointClass;var x=d.prototype.haloPath;return function(d){function f(){var f=null!==d&&d.apply(this,arguments)||this;f.series=void 0;return f}u(f,d);f.prototype.haloPath=function(){return this.series.chart.is3d()?[]:x.apply(this,arguments)};return f}(d)});D(d,"Series/Pie3D/Pie3DSeries.js",[d["Core/Globals.js"],d["Series/Pie3D/Pie3DPoint.js"], d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,u,x,B){var f=this&&this.__extends||function(){var c=function(f,d){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return c(f,d)};return function(f,d){function b(){this.constructor=f}c(f,d);f.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),y=d.deg2rad,v=d.svg;d=B.extend;var A=B.pick;x=function(c){function d(){return null!== c&&c.apply(this,arguments)||this}f(d,c);d.prototype.addPoint=function(){c.prototype.addPoint.apply(this,arguments);this.chart.is3d()&&this.update(this.userOptions,!0)};d.prototype.animate=function(f){if(this.chart.is3d()){var b=this.options.animation;var d=this.center;var e=this.group,k=this.markerGroup;v&&(!0===b&&(b={}),f?(e.oldtranslateX=A(e.oldtranslateX,e.translateX),e.oldtranslateY=A(e.oldtranslateY,e.translateY),d={translateX:d[0],translateY:d[1],scaleX:.001,scaleY:.001},e.attr(d),k&&(k.attrSetters= e.attrSetters,k.attr(d))):(d={translateX:e.oldtranslateX,translateY:e.oldtranslateY,scaleX:1,scaleY:1},e.animate(d,b),k&&k.animate(d,b)))}else c.prototype.animate.apply(this,arguments)};d.prototype.drawDataLabels=function(){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;this.data.forEach(function(b){var c=b.shapeArgs,e=c.r,d=(c.start+c.end)/2;b=b.labelPosition;var a=b.connectorPosition,k=-e*(1-Math.cos((c.alpha||f.alpha)*y))*Math.sin(d),n=e*(Math.cos((c.beta||f.beta)*y)-1)*Math.cos(d); [b.natural,a.breakAt,a.touchingSliceAt].forEach(function(a){a.x+=n;a.y+=k})})}c.prototype.drawDataLabels.apply(this,arguments)};d.prototype.pointAttribs=function(f){var b=c.prototype.pointAttribs.apply(this,arguments),d=this.options;this.chart.is3d()&&!this.chart.styledMode&&(b.stroke=d.edgeColor||f.color||this.color,b["stroke-width"]=A(d.edgeWidth,1));return b};d.prototype.translate=function(){c.prototype.translate.apply(this,arguments);if(this.chart.is3d()){var d=this,b=d.options,f=b.depth||0,e= d.chart.options.chart.options3d,k=e.alpha,a=e.beta,l=b.stacking?(b.stack||0)*f:d._i*f;l+=f/2;!1!==b.grouping&&(l=0);d.data.forEach(function(c){var e=c.shapeArgs;c.shapeType="arc3d";e.z=l;e.depth=.75*f;e.alpha=k;e.beta=a;e.center=d.center;e=(e.end+e.start)/2;c.slicedTranslation={translateX:Math.round(Math.cos(e)*b.slicedOffset*Math.cos(k*y)),translateY:Math.round(Math.sin(e)*b.slicedOffset*Math.cos(k*y))}})}};d.prototype.drawTracker=function(){c.prototype.drawTracker.apply(this,arguments);this.chart.is3d()&& this.points.forEach(function(c){c.graphic&&["out","inn","side1","side2"].forEach(function(b){c.graphic&&(c.graphic[b].element.point=c)})})};return d}(x.seriesTypes.pie);d(x.prototype,{pointClass:u});"";return x});D(d,"Series/Pie3D/Pie3DComposition.js",[d["Series/Pie3D/Pie3DPoint.js"],d["Series/Pie3D/Pie3DSeries.js"],d["Core/Series/SeriesRegistry.js"]],function(d,u,x){x.seriesTypes.pie.prototype.pointClass.prototype.haloPath=d.prototype.haloPath;x.seriesTypes.pie=u});D(d,"Series/Scatter3D/Scatter3DPoint.js", [d["Series/Scatter/ScatterSeries.js"],d["Core/Utilities.js"]],function(d,u){var x=this&&this.__extends||function(){var d=function(f,u){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var f in c)c.hasOwnProperty(f)&&(d[f]=c[f])};return d(f,u)};return function(f,u){function v(){this.constructor=f}d(f,u);f.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)}}(),A=u.defined;return function(d){function f(){var f=null!==d&&d.apply(this, arguments)||this;f.options=void 0;f.series=void 0;return f}x(f,d);f.prototype.applyOptions=function(){d.prototype.applyOptions.apply(this,arguments);A(this.z)||(this.z=0);return this};return f}(d.prototype.pointClass)});D(d,"Series/Scatter3D/Scatter3DSeries.js",[d["Core/Math3D.js"],d["Series/Scatter3D/Scatter3DPoint.js"],d["Series/Scatter/ScatterSeries.js"],d["Core/Series/SeriesRegistry.js"],d["Core/Utilities.js"]],function(d,u,x,B,f){var y=this&&this.__extends||function(){var c=function(d,f){c=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var d in c)c.hasOwnProperty(d)&&(b[d]=c[d])};return c(d,f)};return function(d,f){function b(){this.constructor=d}c(d,f);d.prototype=null===f?Object.create(f):(b.prototype=f.prototype,new b)}}(),v=d.pointCameraDistance;d=f.extend;var A=f.merge;f=function(c){function d(){var d=null!==c&&c.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}y(d,c);d.prototype.pointAttribs=function(d){var b= c.prototype.pointAttribs.apply(this,arguments);this.chart.is3d()&&d&&(b.zIndex=v(d,this.chart));return b};d.defaultOptions=A(x.defaultOptions,{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}});return d}(x);d(f.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:u});B.registerSeriesType("scatter3d",f);"";return f});D(d,"masters/highcharts-3d.src.js",[d["Core/Globals.js"],d["Core/Renderer/SVG/SVGRenderer3D.js"], d["Core/Chart/Chart3D.js"],d["Core/Axis/ZAxis.js"],d["Core/Axis/Axis3D.js"],d["Series/Area3D/Area3DSeries.js"]],function(d,u,x,B,f,y){u.compose(d.SVGRenderer);x.compose(d.Chart,d.Fx);B.compose(d.Chart);f.compose(d.Axis);y.compose(d.seriesTypes.area)})}); //# sourceMappingURL=highcharts-3d.js.map