!function(t){"object"==typeof module&&module.exports?module.exports=t:t(Highcharts)}(function(t){!function(t){var e=t.deg2rad,i=t.pick;t.perspective=function(o,s,r){var a=s.options.chart.options3d,n=!!r&&s.inverted,l=s.plotWidth/2,h=s.plotHeight/2,p=a.depth/2,c=i(a.depth,1)*i(a.viewDistance,0),d=s.scale3d||1,y=e*a.beta*(n?-1:1),a=e*a.alpha*(n?-1:1),x=Math.cos(a),f=Math.cos(-y),b=Math.sin(a),u=Math.sin(-y);return r||(l+=s.plotLeft,h+=s.plotTop),t.map(o,function(t){var e,i;i=(n?t.y:t.x)-l;var o=(n?t.x:t.y)-h,s=(t.z||0)-p;return e=f*i-u*s,t=-b*u*i+x*o-f*b*s,i=x*u*i+b*o+x*f*s,o=0r&&a-r>Math.PI/2+1e-4?(h=h.concat(e(t,i,o,s,r,r+Math.PI/2,n,l)),h=h.concat(e(t,i,o,s,r+Math.PI/2,a,n,l))):aMath.PI/2+1e-4?(h=h.concat(e(t,i,o,s,r,r-Math.PI/2,n,l)),h=h.concat(e(t,i,o,s,r-Math.PI/2,a,n,l))):["C",t+o*Math.cos(r)-o*v*p*Math.sin(r)+n,i+s*Math.sin(r)+s*v*p*Math.cos(r)+l,t+o*Math.cos(a)+o*v*p*Math.sin(a)+n,i+s*Math.sin(a)-s*v*p*Math.cos(a)+l,t+o*Math.cos(a)+n,i+s*Math.sin(a)+l]}var i=Math.cos,o=Math.PI,s=Math.sin,r=t.animObject,a=t.charts,n=t.color,l=t.defined,h=t.deg2rad,p=t.each,c=t.extend,d=t.inArray,y=t.map,x=t.merge,f=t.perspective,b=t.pick,u=t.SVGElement,z=t.SVGRenderer,g=t.wrap,v=4*(Math.sqrt(2)-1)/3/(o/2);z.prototype.toLinePath=function(t,e){var i=[];return p(t,function(t){i.push("L",t.x,t.y)}),t.length&&(i[0]="M",e&&i.push("Z")),i},z.prototype.toLineSegments=function(t){var e=[],i=!0;return p(t,function(t){e.push(i?"M":"L",t.x,t.y),i=!i}),e},z.prototype.face3d=function(e){var i=this,o=this.createElement("path");return o.vertexes=[],o.insidePlotArea=!1,o.enabled=!0,g(o,"attr",function(e,o){if("object"==typeof o&&(l(o.enabled)||l(o.vertexes)||l(o.insidePlotArea))){this.enabled=b(o.enabled,this.enabled),this.vertexes=b(o.vertexes,this.vertexes),this.insidePlotArea=b(o.insidePlotArea,this.insidePlotArea),delete o.enabled,delete o.vertexes,delete o.insidePlotArea;var s=f(this.vertexes,a[i.chartIndex],this.insidePlotArea),r=i.toLinePath(s,!0),s=t.shapeArea(s),s=this.enabled&&0o.faces.length;)i.faces.pop().destroy();for(;i.faces.lengtho.faces.length;)i.faces.pop().destroy();for(;i.faces.lengtht.shapeArea(e)?s=[e,0]:0>t.shapeArea(o)&&(s=[o,1]),s},o=s([3,2,1,0],[7,6,5,4]),e=o[0],p=o[1],o=s([1,6,7,0],[4,5,2,3]),h=o[0],c=o[1],o=s([1,2,5,6],[0,7,4,3]),s=o[0],o=o[1],1===o?b+=1e4*(1e3-r):o||(b+=1e4*r),b+=10*(!c||0<=x&&180>=x||360>x&&357.5Math.PI&&(t=2*Math.PI-t),t}var a=t.x,n=t.y,l=t.start,h=t.end-1e-5,p=t.r,c=t.innerR,d=t.depth,y=t.alpha,x=t.beta,f=Math.cos(l),b=Math.sin(l);t=Math.cos(h);var u=Math.sin(h),z=p*Math.cos(x),p=p*Math.cos(y),g=c*Math.cos(x),v=c*Math.cos(y),c=d*Math.sin(x),m=d*Math.sin(y),d=["M",a+z*f,n+p*b],d=d.concat(e(a,n,z,p,l,h,0,0)),d=d.concat(["L",a+g*t,n+v*u]),d=d.concat(e(a,n,g,v,h,l,0,0)),d=d.concat(["Z"]),M=0-M?l:h>-M?-M:l,A=hP&&lo-x&&lc&&(f=Math.min(f,1-Math.abs((s+h)/(c+h))%1)),ay&&(f=0>y?Math.min(f,(n+p)/(-y+n+p)):Math.min(f,1-(n+p)/(y+p)%1)),lo*a[s][i]?s=n:o*a[n][i]===o*a[s][i]&&a[n].zr&&(h[t[1]]+=h[t[0]]+l,h[t[0]]=-l,r=0),r+h[t[1]]>e[t[0]+"Axis"].len&&0!==h[t[1]]&&(h[t[1]]=e[t[0]+"Axis"].len-h[t[0]]),0!==h[t[1]]&&(h[t[0]]>=e[t[0]+"Axis"].len||h[t[0]]+h[t[1]]<=l))for(var i in h)h[i]=0}),t.shapeType="cuboid",h.z=n,h.depth=a,h.insidePlotArea=!0,p=o([{x:p[0],y:p[1],z:n}],s,!0)[0],t.tooltipPos=[p.x,p.y]}}),e.z=n}}),h(a.column.prototype,"animate",function(t){if(this.chart.is3d()){var e=arguments[1],o=this.yAxis,s=this,r=this.yAxis.reversed;l&&(e?i(s.data,function(t){null!==t.y&&(t.height=t.shapeArgs.height,t.shapey=t.shapeArgs.y,t.shapeArgs.height=1,r||(t.shapeArgs.y=t.stackY?t.plotY+o.translate(t.stackY):t.plotY+(t.negative?-t.height:t.height)))}):(i(s.data,function(t){null!==t.y&&(t.shapeArgs.height=t.height,t.shapeArgs.y=t.shapey,t.graphic&&t.graphic.animate(t.shapeArgs,s.options.animation))}),this.drawDataLabels(),s.animate=null))}else t.apply(this,[].slice.call(arguments,1))}),h(a.column.prototype,"plotGroup",function(t,e,i,o,s,r){return this.chart.is3d()&&r&&!this[e]&&(this[e]=r,r.attr(this.getPlotBox()),this[e].survive=!0),t.apply(this,Array.prototype.slice.call(arguments,1))}),h(a.column.prototype,"setVisible",function(t,e){var o,s=this;s.chart.is3d()&&i(s.data,function(t){o=(t.visible=t.options.visible=e=void 0===e?!t.visible:e)?"visible":"hidden",s.options.data[n(t,s.data)]=t.options,t.graphic&&t.graphic.attr({visibility:o})}),t.apply(this,Array.prototype.slice.call(arguments,1))}),h(a.column.prototype,"init",function(t){if(t.apply(this,[].slice.call(arguments,1)),this.chart.is3d()){var e=this.options,i=e.grouping,o=e.stacking,r=s(this.yAxis.options.reversedStacks,!0),a=0;if(void 0===i||i){for(i=this.chart.retrieveStacks(o),a=e.stack||0,o=0;o=n.min&&s<=n.max),l.push({x:o.plotX,y:o.plotY,z:o.plotZ});for(a=e(l,a,!0),r=0;r{point.x}
y: {point.y}
z: {point.z}
":"x: {point.x}
y: {point.y}
z: {point.z}
"),t}),r(s.scatter.prototype,"pointAttribs",function(e,i){var o=e.apply(this,[].slice.call(arguments,1));return this.chart.is3d()&&i&&(o.zIndex=t.pointCameraDistance(i,this.chart)),o}),r(o.prototype,"applyOptions",function(t){var e=t.apply(this,[].slice.call(arguments,1));return this.series.chart.is3d()&&void 0===e.z&&(e.z=0),e})}(t),function(t){var e=t.Axis,i=t.SVGRenderer,o=t.VMLRenderer;o&&(t.setOptions({animate:!1}),o.prototype.face3d=i.prototype.face3d,o.prototype.polyhedron=i.prototype.polyhedron,o.prototype.cuboid=i.prototype.cuboid,o.prototype.cuboidPath=i.prototype.cuboidPath,o.prototype.toLinePath=i.prototype.toLinePath,o.prototype.toLineSegments=i.prototype.toLineSegments,o.prototype.createElement3D=i.prototype.createElement3D,o.prototype.arc3d=function(t){return t=i.prototype.arc3d.call(this,t),t.css({zIndex:t.zIndex}),t},t.VMLRenderer.prototype.arc3dPath=t.SVGRenderer.prototype.arc3dPath,t.wrap(e.prototype,"render",function(t){t.apply(this,[].slice.call(arguments,1)),this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color})),this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color})),this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))}(t)});