import{a6 as Mt}from"./index-bVOhw2NF.js";var vt={exports:{}};(function(gt){(function(pt){gt.exports?(pt.default=pt,gt.exports=pt):pt(typeof Highcharts<"u"?Highcharts:void 0)})(function(pt){var b=pt?pt._modules:{};function ot(E,N,W,Y){E.hasOwnProperty(N)||(E[N]=Y.apply(null,W),typeof CustomEvent=="function"&&pt.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:N,module:E[N]}})))}ot(b,"Core/Math3D.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(E,N){let{deg2rad:W}=E,{pick:Y}=N;function H(C,T,y,S){let k=T.options.chart.options3d,z=Y(S,!!y&&T.inverted),g={x:T.plotWidth/2,y:T.plotHeight/2,z:k.depth/2,vd:Y(k.depth,1)*Y(k.viewDistance,0)},v=T.scale3d||1,L=W*k.beta*(z?-1:1),j=W*k.alpha*(z?-1:1),P={cosA:Math.cos(j),cosB:Math.cos(-L),sinA:Math.sin(j),sinB:Math.sin(-L)};return y||(g.x+=T.plotLeft,g.y+=T.plotTop),C.map(function(Z){var O,et,V;let D=(O=(z?Z.y:Z.x)-g.x,et=(z?Z.x:Z.y)-g.y,V=(Z.z||0)-g.z,{x:P.cosB*O-P.sinB*V,y:-P.sinA*P.sinB*O+P.cosA*et-P.cosB*P.sinA*V,z:P.cosA*P.sinB*O+P.sinA*et+P.cosA*P.cosB*V}),m=A(D,g,g.vd);return m.x=m.x*v+g.x,m.y=m.y*v+g.y,m.z=D.z*v+g.z,{x:z?m.y:m.x,y:z?m.x:m.y,z:m.z}})}function A(C,T,y){let S=y>0&&y=0?0:360),s.beta=s.beta%360+(s.beta>=0?0:360));let x=this.inverted,e=this.clipBox,r=this.margin;e[x?"y":"x"]=-(r[3]||0),e[x?"x":"y"]=-(r[0]||0),e[x?"height":"width"]=this.chartWidth+(r[3]||0)+(r[1]||0),e[x?"width":"height"]=this.chartHeight+(r[0]||0)+(r[2]||0),this.scale3d=1,s.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(s.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function et(){this.is3d()&&(this.isDirtyBox=!0)}function V(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function D(){this.chart3d||(this.chart3d=new M(this))}function m(s){return this.is3d()||s.apply(this,[].slice.call(arguments,1))}function u(s){let x,e=this.series.length;if(this.is3d())for(;e--;)(x=this.series[e]).translate(),x.render();else s.call(this)}function l(s){s.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}v.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:{}}}}},v.compose=function(s,x){let e=s.prototype,r=x.prototype;e.is3d=function(){var d;return!!((d=this.options.chart.options3d)!=null&&d.enabled)},e.propsRequireDirtyBox.push("chart.options3d"),e.propsRequireUpdateSeries.push("chart.options3d"),r.matrixSetter=function(){let d;if(this.pos<1&&(S(this.start)||S(this.end))){let o=this.start||[1,0,0,1,0,0],t=this.end||[1,0,0,1,0,0];d=[];for(let i=0;i<6;i++)d.push(this.pos*t[i]+(1-this.pos)*o[i])}else d=this.end;this.elem.attr(this.prop,d,null,!0)},k(!0,_,v.defaultOptions),y(s,"init",D),y(s,"addSeries",L),y(s,"afterDrawChartBox",j),y(s,"afterGetContainer",P),y(s,"afterInit",Z),y(s,"afterSetChartSize",O),y(s,"beforeRedraw",et),y(s,"beforeRender",V),g(e,"isInsidePlot",m),g(e,"renderSeries",u),g(e,"setClassName",l)};class M{constructor(x){this.chart=x}get3dFrame(){let x=this.chart,e=x.options.chart.options3d,r=e.frame,d=x.plotLeft,o=x.plotLeft+x.plotWidth,t=x.plotTop,i=x.plotTop+x.plotHeight,a=e.depth,n=function(F){let J=T(F,x);return J>.5?1:J<-.5?-1:0},h=n([{x:d,y:i,z:a},{x:o,y:i,z:a},{x:o,y:i,z:0},{x:d,y:i,z:0}]),f=n([{x:d,y:t,z:0},{x:o,y:t,z:0},{x:o,y:t,z:a},{x:d,y:t,z:a}]),c=n([{x:d,y:t,z:0},{x:d,y:t,z:a},{x:d,y:i,z:a},{x:d,y:i,z:0}]),p=n([{x:o,y:t,z:a},{x:o,y:t,z:0},{x:o,y:i,z:0},{x:o,y:i,z:a}]),w=n([{x:d,y:i,z:0},{x:o,y:i,z:0},{x:o,y:t,z:0},{x:d,y:t,z:0}]),$=n([{x:d,y:t,z:a},{x:o,y:t,z:a},{x:o,y:i,z:a},{x:d,y:i,z:a}]),U=!1,X=!1,it=!1,R=!1;[].concat(x.xAxis,x.yAxis,x.zAxis).forEach(function(F){F&&(F.horiz?F.opposite?X=!0:U=!0:F.opposite?R=!0:it=!0)});let I=function(F,J,tt){let nt=["size","color","visible"],st={};for(let rt=0;rt0),{size:z(st.size,1),color:z(st.color,"none"),frontFacing:J>0,visible:B}},G={axes:{},bottom:I([r.bottom,r.top,r],h,U),top:I([r.top,r.bottom,r],f,X),left:I([r.left,r.right,r.side,r],c,it),right:I([r.right,r.left,r.side,r],p,R),back:I([r.back,r.front,r],$,!0),front:I([r.front,r.back,r],w,!1)};if(e.axisLabelPosition==="auto"){let F=function(Q,K){return Q.visible!==K.visible||Q.visible&&K.visible&&Q.frontFacing!==K.frontFacing},J=[];F(G.left,G.front)&&J.push({y:(t+i)/2,x:d,z:0,xDir:{x:1,y:0,z:0}}),F(G.left,G.back)&&J.push({y:(t+i)/2,x:d,z:a,xDir:{x:0,y:0,z:-1}}),F(G.right,G.front)&&J.push({y:(t+i)/2,x:o,z:0,xDir:{x:0,y:0,z:1}}),F(G.right,G.back)&&J.push({y:(t+i)/2,x:o,z:a,xDir:{x:-1,y:0,z:0}});let tt=[];F(G.bottom,G.front)&&tt.push({x:(d+o)/2,y:i,z:0,xDir:{x:1,y:0,z:0}}),F(G.bottom,G.back)&&tt.push({x:(d+o)/2,y:i,z:a,xDir:{x:-1,y:0,z:0}});let nt=[];F(G.top,G.front)&&nt.push({x:(d+o)/2,y:t,z:0,xDir:{x:1,y:0,z:0}}),F(G.top,G.back)&&nt.push({x:(d+o)/2,y:t,z:a,xDir:{x:-1,y:0,z:0}});let st=[];F(G.bottom,G.left)&&st.push({z:(0+a)/2,y:i,x:d,xDir:{x:0,y:0,z:-1}}),F(G.bottom,G.right)&&st.push({z:(0+a)/2,y:i,x:o,xDir:{x:0,y:0,z:1}});let B=[];F(G.top,G.left)&&B.push({z:(0+a)/2,y:t,x:d,xDir:{x:0,y:0,z:-1}}),F(G.top,G.right)&&B.push({z:(0+a)/2,y:t,x:o,xDir:{x:0,y:0,z:1}});let rt=function(Q,K,q){if(Q.length===0)return null;if(Q.length===1)return Q[0];let at=C(Q,x,!1),ht=0;for(let lt=1;ltq*at[ht][K]||q*at[lt][K]==q*at[ht][K]&&at[lt].zn.minX&&(f=Math.min(f,1-Math.abs((r+i)/(n.minX+i))%1)),dn.minY&&(f=n.minY<0?Math.min(f,(o+a)/(-n.minY+o+a)):Math.min(f,1-(o+a)/(n.minY+a)%1)),t({plotX:Z.x,plotY:Z.y,plotZ:Z.z})),this.group&&j&&j.depth&&j.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,j.beta>270||j.beta<90?j.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),L.reversed=!0;let P=z.call(this,L,!0,!0);if(P[0]&&P[0][0]==="M"&&(P[0]=["L",P[0][1],P[0][2]]),this.areaPath){let Z=this.areaPath.splice(0,this.areaPath.length/2).concat(P);Z.xMap=this.areaPath.xMap,this.areaPath=Z}return this.graphPath=k,k}return{compose:function(S){C(H,"Area3DSeries")&&T(S.prototype,"getGraphPath",y)}}}),ot(b,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),ot(b,"Core/Axis/Tick3DComposition.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(E,N){let{composed:W}=E,{addEvent:Y,extend:H,pushUnique:A,wrap:_}=N;function C(y){let S=this.axis.axis3D;S&&H(y.pos,S.fix3dPosition(y.pos))}function T(y){let S=this.axis.axis3D,k=y.apply(this,[].slice.call(arguments,1));if(S){let z=k[0],g=k[1];if(z[0]==="M"&&g[0]==="L"){let v=[S.fix3dPosition({x:z[1],y:z[2],z:0}),S.fix3dPosition({x:g[1],y:g[2],z:0})];return this.axis.chart.renderer.toLineSegments(v)}}return k}return{compose:function(y){A(W,"Axis.Tick3D")&&(Y(y,"afterGetLabelPosition",C),_(y.prototype,"getMarkPath",T))}}}),ot(b,"Core/Axis/Axis3DComposition.js",[b["Core/Axis/Axis3DDefaults.js"],b["Core/Defaults.js"],b["Core/Globals.js"],b["Core/Math3D.js"],b["Core/Axis/Tick3DComposition.js"],b["Core/Utilities.js"]],function(E,N,W,Y,H,A){let{defaultOptions:_}=N,{deg2rad:C}=W,{perspective:T,perspective3D:y,shapeArea:S}=Y,{addEvent:k,merge:z,pick:g,wrap:v}=A;function L(){let u=this.chart,l=this.options;u.is3d&&u.is3d()&&this.coll!=="colorAxis"&&(l.tickWidth=g(l.tickWidth,0),l.gridLineWidth=g(l.gridLineWidth,1))}function j(u){this.chart.is3d()&&this.coll!=="colorAxis"&&u.point&&(u.point.crosshairPos=this.isXAxis?u.point.axisXpos:this.len-u.point.axisYpos)}function P(){this.axis3D||(this.axis3D=new m(this))}function Z(u){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:u.apply(this,[].slice.call(arguments,1))}function O(u){if(!this.chart.is3d()||this.coll==="colorAxis")return u.apply(this,[].slice.call(arguments,1));let l=arguments,M=l[1],s=l[2],x=[],e=this.getPlotLinePath({value:M}),r=this.getPlotLinePath({value:s});if(e&&r)for(let d=0;dS(T([l,{x:l.x+p.x,y:l.y+p.y,z:l.z+p.z},{x:l.x+w.x,y:l.y+w.y,z:l.z+w.z}],s.chart))&&(p={x:-p.x,y:-p.y,z:-p.z});let X=T([{x:l.x,y:l.y,z:l.z},{x:l.x+p.x,y:l.y+p.y,z:l.z+p.z},{x:l.x+w.x,y:l.y+w.y,z:l.z+w.z}],s.chart);U.matrix=[X[1].x-X[0].x,X[1].y-X[0].y,X[2].x-X[0].x,X[2].y-X[0].y,U.x,U.y],U.matrix[4]-=U.x*U.matrix[0]+U.y*U.matrix[2],U.matrix[5]-=U.x*U.matrix[1]+U.y*U.matrix[3]}return U}swapZ(l,M){let s=this.axis;if(s.isZAxis){let x=M?0:s.chart.plotLeft;return{x:x+l.z,y:l.y,z:l.x-x}}return l}}return m}),ot(b,"Core/Series/Series3D.js",[b["Core/Globals.js"],b["Core/Math3D.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(E,N,W,Y){let{composed:H}=E,{perspective:A}=N,{addEvent:_,extend:C,isNumber:T,merge:y,pick:S,pushUnique:k}=Y;class z extends W{static compose(v){k(H,"Core.Series3D")&&(_(v,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),C(v.prototype,{translate3dPoints:z.prototype.translate3dPoints}))}translate3dPoints(){let v,L,j=this,P=j.options,Z=j.chart,O=S(j.zAxis,Z.options.zAxis[0]),et=[],V=[],D=P.stacking?T(P.stack)?P.stack:0:j.index||0;j.zPadding=D*(P.depth||0+(P.groupZPadding||1)),j.data.forEach(u=>{O&&O.translate?(L=O.logarithmic&&O.val2lin?O.val2lin(u.z):u.z,u.plotZ=O.translate(L),u.isInside=!!u.isInside&&L>=O.min&&L<=O.max):u.plotZ=j.zPadding,u.axisXpos=u.plotX,u.axisYpos=u.plotY,u.axisZpos=u.plotZ,et.push({x:u.plotX,y:u.plotY,z:u.plotZ}),V.push(u.plotX||0)}),j.rawPointsX=V;let m=A(et,Z,!0);j.data.forEach((u,l)=>{v=m[l],u.plotX=v.x,u.plotY=v.y,u.plotZ=v.z})}}return z.defaultOptions=y(W.defaultOptions),z}),ot(b,"Core/Renderer/SVG/SVGElement3D.js",[b["Core/Color/Color.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],function(E,N,W){let{parse:Y}=E,{Element:H}=N.getRendererType().prototype,{defined:A,pick:_}=W;class C extends H{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(y){let S=this.renderer,k=S[this.pathType+"Path"](y),z=k.zIndexes;for(let g of this.parts){let v={class:"highcharts-3d-"+g,zIndex:z[g]||0};S.styledMode&&(g==="top"?v.filter="url(#highcharts-brighter)":g==="side"&&(v.filter="url(#highcharts-darker)")),this[g]=S.path(k[g]).attr(v).add(this)}this.attr({"stroke-linejoin":"round",zIndex:z.group}),this.forcedSides=k.forcedSides}singleSetterForParts(y,S,k,z,g,v){let L={},j=[null,null,z||"attr",g,v],P=k&&k.zIndexes;if(k){for(let Z of(P&&P.group&&this.attr({zIndex:P.group}),Object.keys(k)))L[Z]={},L[Z][y]=k[Z],P&&(L[Z].zIndex=k.zIndexes[Z]||0);j[1]=L}else L[y]=S,j[0]=L;return this.processParts.apply(this,j)}processParts(y,S,k,z,g){for(let v of this.parts)S&&(y=_(S[v],!1)),y!==!1&&this[v][k](y,z,g);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(y,S,k,z){if(typeof y=="string"&&S!==void 0){let g=y;(y={})[g]=S}return y.shapeArgs||A(y.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](y.shapeArgs||y)):super.attr(y,void 0,k,z)}animate(y,S,k){if(A(y.x)&&A(y.y)){let z=this.renderer[this.pathType+"Path"](y),g=z.forcedSides;this.singleSetterForParts("d",null,z,"animate",S,k),this.attr({zIndex:z.zIndexes.group}),g===this.forcedSides||(this.forcedSides=g,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(y,S,k);return this}fillSetter(y){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:y,top:Y(y).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:Y(y).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=y,this}}return C.types={base:C,cuboid:C},C}),ot(b,"Core/Renderer/SVG/SVGRenderer3D.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Math3D.js"],b["Core/Renderer/SVG/SVGElement3D.js"],b["Core/Utilities.js"]],function(E,N,W,Y,H,A){var _;let{animObject:C}=E,{parse:T}=N,{charts:y,deg2rad:S}=W,{perspective:k,shapeArea:z}=Y,{defined:g,extend:v,merge:L,pick:j}=A,P=Math.cos,Z=Math.sin,O=Math.PI,et=4*(Math.sqrt(2)-1)/3/(O/2);function V(D,m,u,l,M,s,x,e){let r=s-M,d=[];return s>M&&s-M>Math.PI/2+1e-4?d=(d=d.concat(V(D,m,u,l,M,M+Math.PI/2,x,e))).concat(V(D,m,u,l,M+Math.PI/2,s,x,e)):sMath.PI/2+1e-4?d=(d=d.concat(V(D,m,u,l,M,M-Math.PI/2,x,e))).concat(V(D,m,u,l,M-Math.PI/2,s,x,e)):[["C",D+u*Math.cos(M)-u*et*r*Math.sin(M)+x,m+l*Math.sin(M)+l*et*r*Math.cos(M)+e,D+u*Math.cos(s)+u*et*r*Math.sin(s)+x,m+l*Math.sin(s)-l*et*r*Math.cos(s)+e,D+u*Math.cos(s)+x,m+l*Math.sin(s)+e]]}return function(D){function m(o,t){let i=[];for(let a of o)i.push(["L",a.x,a.y]);return o.length&&(i[0][0]="M",t&&i.push(["Z"])),i}function u(o){let t=[],i=!0;for(let a of o)t.push(i?["M",a.x,a.y]:["L",a.x,a.y]),i=!i;return t}function l(o){let t=this,i=t.Element.prototype,a=t.createElement("path");return a.vertexes=[],a.insidePlotArea=!1,a.enabled=!0,a.attr=function(n){if(typeof n=="object"&&(g(n.enabled)||g(n.vertexes)||g(n.insidePlotArea))){this.enabled=j(n.enabled,this.enabled),this.vertexes=j(n.vertexes,this.vertexes),this.insidePlotArea=j(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;let h=y[t.chartIndex],f=k(this.vertexes,h,this.insidePlotArea),c=t.toLinePath(f,!0),p=z(f);n.d=c,n.visibility=this.enabled&&p>0?"inherit":"hidden"}return i.attr.apply(this,arguments)},a.animate=function(n){if(typeof n=="object"&&(g(n.enabled)||g(n.vertexes)||g(n.insidePlotArea))){this.enabled=j(n.enabled,this.enabled),this.vertexes=j(n.vertexes,this.vertexes),this.insidePlotArea=j(n.insidePlotArea,this.insidePlotArea),delete n.enabled,delete n.vertexes,delete n.insidePlotArea;let h=y[t.chartIndex],f=k(this.vertexes,h,this.insidePlotArea),c=t.toLinePath(f,!0),p=z(f),w=this.enabled&&p>0?"visible":"hidden";n.d=c,this.attr("visibility",w)}return i.animate.apply(this,arguments)},a.attr(o)}function M(o){let t=this,i=t.Element.prototype,a=t.g(),n=a.destroy;return this.styledMode||a.attr({"stroke-linejoin":"round"}),a.faces=[],a.destroy=function(){for(let h=0;hh.faces.length;)a.faces.pop().destroy();for(;a.faces.lengthh.faces.length;)a.faces.pop().destroy();for(;a.faces.lengthn===0&&B>1&&B<6?{x:X[B].x,y:X[B].y+10,z:X[B].z}:X[0].x===X[7].x&&B>=4?{x:X[B].x+10,y:X[B].y,z:X[B].z}:f===0&&B<2||B>5?{x:X[B].x,y:X[B].y,z:X[B].z+10}:X[B],R=B=>X[B],I=(B,rt,Q)=>{let K=B.map(R),q=rt.map(R),at=B.map(it),ht=rt.map(it),lt=[[],-1];return 0>z(K)?lt=[K,0]:0>z(q)?lt=[q,1]:Q&&(w.push(Q),lt=0>z(at)?[K,0]:0>z(ht)?[q,1]:[K,0]),lt},G=($=I([3,2,1,0],[7,6,5,4],"front"))[0],F=$[1],J=($=I([1,6,7,0],[4,5,2,3],"top"))[0],tt=$[1],nt=($=I([1,2,5,6],[0,7,4,3],"side"))[0],st=$[1];return st===1?U+=1e6*(c.plotWidth-t):st||(U+=1e6*t),U+=10*(!tt||p>=0&&p<=180||p<360&&p>357.5?c.plotHeight-i:10+i),F===1?U+=100*a:F||(U+=100*(1e3-a)),{front:this.toLinePath(G,!0),top:this.toLinePath(J,!0),side:this.toLinePath(nt,!0),zIndexes:{group:Math.round(U)},forcedSides:w,isFront:F,isTop:tt}}function r(o){let t=this.g(),i=this.Element.prototype,a=["x","y","r","innerR","start","end","depth"];function n(h){let f={},c=!1,p;for(p in h=L(h))a.indexOf(p)!==-1&&(f[p]=h[p],delete h[p],c=!0);return!!c&&[f,h]}for(let h of((o=L(o)).alpha=(o.alpha||0)*S,o.beta=(o.beta||0)*S,t.top=this.path(),t.side1=this.path(),t.side2=this.path(),t.inn=this.path(),t.out=this.path(),t.onAdd=function(){let f=t.parentGroup,c=t.attr("class");for(let p of(t.top.add(t),["out","inn","side1","side2"]))t[p].attr({class:c+" highcharts-3d-side"}).add(f)},["addClass","removeClass"]))t[h]=function(){let f=arguments;for(let c of["top","out","inn","side1","side2"])t[c][h].apply(t[c],f)};for(let h of(t.setPaths=function(f){let c=t.renderer.arc3dPath(f),p=100*c.zTop;t.attribs=f,t.top.attr({d:c.top,zIndex:c.zTop}),t.inn.attr({d:c.inn,zIndex:c.zInn}),t.out.attr({d:c.out,zIndex:c.zOut}),t.side1.attr({d:c.side1,zIndex:c.zSide1}),t.side2.attr({d:c.side2,zIndex:c.zSide2}),t.zIndex=p,t.attr({zIndex:p}),f.center&&(t.top.setRadialReference(f.center),delete f.center)},t.setPaths(o),t.fillSetter=function(f){let c=T(f).brighten(-.1).get();return this.fill=f,this.side1.attr({fill:c}),this.side2.attr({fill:c}),this.inn.attr({fill:c}),this.out.attr({fill:c}),this.top.attr({fill:f}),this},["opacity","translateX","translateY","visibility"]))t[h+"Setter"]=function(f,c){for(let p of(t[c]=f,["out","inn","side1","side2","top"]))t[p].attr(c,f)};return t.attr=function(h){let f,c;return typeof h=="object"&&(c=n(h))&&(f=c[0],arguments[0]=c[1],v(t.attribs,f),t.setPaths(t.attribs)),i.attr.apply(t,arguments)},t.animate=function(h,f,c){let p,w,$=this.attribs,U="data-"+Math.random().toString(26).substring(2,9);delete h.center,delete h.z,delete h.alpha,delete h.beta;let X=C(j(f,this.renderer.globalAnimation));return X.duration&&(p=n(h),t[U]=0,h[U]=1,t[U+"Setter"]=W.noop,p&&(w=p[0],X.step=function(it,R){let I=G=>$[G]+(j(w[G],$[G])-$[G])*R.pos;R.prop===U&&R.elem.setPaths(L($,{x:I("x"),y:I("y"),r:I("r"),innerR:I("innerR"),start:I("start"),end:I("end"),depth:I("depth")}))}),f=X),i.animate.call(this,h,f,c)},t.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),i.destroy.call(this)},t.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},t.show=function(h){this.top.show(h),this.out.show(h),this.inn.show(h),this.side1.show(h),this.side2.show(h)},t}function d(o){let t=o.x||0,i=o.y||0,a=o.start||0,n=(o.end||0)-1e-5,h=o.r||0,f=o.innerR||0,c=o.depth||0,p=o.alpha||0,w=o.beta||0,$=Math.cos(a),U=Math.sin(a),X=Math.cos(n),it=Math.sin(n),R=h*Math.cos(w),I=h*Math.cos(p),G=f*Math.cos(w),F=f*Math.cos(p),J=c*Math.sin(w),tt=c*Math.sin(p),nt=[["M",t+R*$,i+I*U]];(nt=nt.concat(V(t,i,R,I,a,n,0,0))).push(["L",t+G*X,i+F*it]),(nt=nt.concat(V(t,i,G,F,n,a,0,0))).push(["Z"]);let st=w>0?Math.PI/2:0,B=p>0?0:Math.PI/2,rt=a>-st?a:n>-st?-st:a,Q=nK&&aO-B&&aMath.PI&&(ct=2*Math.PI-ct),ct}xt=ft(xt),yt=ft(yt);let mt=1e5*(bt=ft(bt)),ut=1e5*yt,zt=1e5*xt;return{top:nt,zTop:1e5*Math.PI+1,out:q,zOut:Math.max(mt,ut,zt),inn:at,zInn:Math.max(mt,ut,zt),side1:ht,zSide1:.99*zt,side2:lt,zSide2:.99*ut}}D.compose=function(o){let t=o.prototype;t.element3d||v(t,{Element3D:H,arc3d:r,arc3dPath:d,cuboid:x,cuboidPath:e,element3d:s,face3d:l,polyhedron:M,toLinePath:m,toLineSegments:u})}}(_||(_={})),_}),ot(b,"Core/Axis/ZAxis.js",[b["Core/Axis/Axis.js"],b["Core/Defaults.js"],b["Core/Utilities.js"]],function(E,N,W){let{defaultOptions:Y}=N,{addEvent:H,merge:A,pick:_,splat:C}=W;function T(k){return new S(this,k)}function y(){let k=this.options.zAxis=C(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],k.forEach(z=>{this.addZAxis(z).setScale()}))}class S extends E{constructor(){super(...arguments),this.isZAxis=!0}static compose(z){let g=z.prototype;g.addZAxis||(Y.zAxis=A(Y.xAxis,{offset:0,lineWidth:0}),g.addZAxis=T,g.collectionsWithInit.zAxis=[g.addZAxis],g.collectionsWithUpdate.push("zAxis"),H(z,"afterGetAxes",y))}init(z,g){this.isZAxis=!0,super.init(z,g,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(z=>{if(z.reserveSpace()){let g=z.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&g<=0&&(g=void 0);let v=z.zData;v.length&&(this.dataMin=Math.min(_(this.dataMin,v[0]),Math.min.apply(null,v)),this.dataMax=Math.max(_(this.dataMax,v[0]),Math.max.apply(null,v)))}})}setAxisSize(){let z=this.chart;super.setAxisSize(),this.width=this.len=z.options.chart.options3d&&z.options.chart.options3d.depth||0,this.right=z.chartWidth-this.width-this.left}}return S}),ot(b,"Series/Column3D/Column3DComposition.js",[b["Core/Globals.js"],b["Core/Math3D.js"],b["Core/Utilities.js"]],function(E,N,W){let{composed:Y}=E,{perspective:H}=N,{addEvent:A,extend:_,pick:C,pushUnique:T,wrap:y}=W;function S(){let D=this.chart,m=this.options,u=m.depth,l=(m.stacking?m.stack||0:this.index)*(u+(m.groupZPadding||1)),M=this.borderWidth%2?.5:0,s;for(let x of(D.inverted&&!this.yAxis.reversed&&(M*=-1),m.grouping!==!1&&(l=0),l+=m.groupZPadding||1,this.points))if(x.outside3dPlot=null,x.y!==null){let e,r=_({x:0,y:0,width:0,height:0},x.shapeArgs||{}),d=[["x","width"],["y","height"]],o=x.tooltipPos;for(let t of d)if((e=r[t[0]]-M)<0&&(r[t[1]]+=r[t[0]]+M,r[t[0]]=-M,e=0),e+r[t[1]]>this[t[0]+"Axis"].len&&r[t[1]]!==0&&(r[t[1]]=this[t[0]+"Axis"].len-r[t[0]]),r[t[1]]!==0&&(r[t[0]]>=this[t[0]+"Axis"].len||r[t[0]]+r[t[1]]<=M)){for(let i in r)r[i]=i==="y"?-9999:0;x.outside3dPlot=!0}if(x.shapeType==="roundedRect"&&(x.shapeType="cuboid"),x.shapeArgs=_(r,{z:l,depth:u,insidePlotArea:!0}),s={x:r.x+r.width/2,y:r.y,z:l+u/2},D.inverted&&(s.x=r.height,s.y=x.clientX||0),x.axisXpos=s.x,x.axisYpos=s.y,x.axisZpos=s.z,x.plot3d=H([s],D,!0,!1)[0],o){let t=H([{x:o[0],y:o[1],z:l+u/2}],D,!0,!1)[0];x.tooltipPos=[t.x,t.y]}}this.z=l}function k(){if(this.chart.is3d()){let D=this.options,m=D.grouping,u=D.stacking,l=this.yAxis.options.reversedStacks,M=0;if(!(m!==void 0&&!m)){let s,x=function(r,d){let o=r.series,t={totalStacks:0},i,a=1;return o.forEach(function(n){t[i=C(n.options.stack,d?0:o.length-1-n.index)]?t[i].series.push(n):(t[i]={series:[n],position:a},a++)}),t.totalStacks=a+1,t}(this.chart,u),e=D.stack||0;for(s=0;s=90&&r.alpha<=270&&(o.y+=m.shapeArgs.width)),o=H([o],s,!0,!1)[0],M.x=o.x-d,M.y=m.outside3dPlot?-9e9:o.y}D.apply(this,[].slice.call(arguments,1))}function et(D){return!arguments[2].outside3dPlot&&D.apply(this,[].slice.call(arguments,1))}function V(D,m){let u=D.apply(this,[].slice.call(arguments,1)),l=this.axis.chart,{width:M}=m;if(l.is3d()&&this.base){let s=+this.base.split(",")[0],x=l.series[s],e=l.options.chart.options3d;if(x&&x.type==="column"){let r={x:u.x+(l.inverted?u.height:M/2),y:u.y,z:x.options.depth/2};l.inverted&&(u.width=0,e.alpha>=90&&e.alpha<=270&&(r.y+=M)),r=H([r],l,!0,!1)[0],u.x=r.x-M/2,u.y=r.y}}return u}return{compose:function(D,m){if(T(Y,"Column3D")){let u=D.prototype,l=m.prototype,{column:M,columnRange:s}=D.types;if(y(u,"alignDataLabel",O),y(u,"justifyDataLabel",et),y(l,"getStackBox",V),M){let x=M.prototype,e=x.pointClass.prototype;x.translate3dPoints=()=>{},x.translate3dShapes=S,A(x,"afterInit",k),y(e,"hasNewShapeType",z),y(x,"animate",g),y(x,"plotGroup",v),y(x,"pointAttribs",L),y(x,"setState",j),y(x,"setVisible",P),y(x,"translate",Z)}if(s){let x=s.prototype;y(x.pointClass.prototype,"hasNewShapeType",z),y(x,"plotGroup",v),y(x,"pointAttribs",L),y(x,"setState",j),y(x,"setVisible",P)}}}}}),ot(b,"Series/Pie3D/Pie3DPoint.js",[b["Core/Series/SeriesRegistry.js"]],function(E){let{pie:{prototype:{pointClass:N}}}=E.seriesTypes;return class extends N{haloPath(){var W;return(W=this.series)!=null&&W.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),ot(b,"Series/Pie3D/Pie3DSeries.js",[b["Core/Globals.js"],b["Series/Pie3D/Pie3DPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(E,N,W,Y){let{composed:H,deg2rad:A}=E,{pie:_}=W.seriesTypes,{extend:C,pick:T,pushUnique:y}=Y;class S extends _{static compose(z){y(H,"Pie3D")&&(z.types.pie=S)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(z){if(this.chart.is3d()){let g=this.center,v=this.group,L=this.markerGroup,j=this.options.animation,P;j===!0&&(j={}),z?(v.oldtranslateX=T(v.oldtranslateX,v.translateX),v.oldtranslateY=T(v.oldtranslateY,v.translateY),P={translateX:g[0],translateY:g[1],scaleX:.001,scaleY:.001},v.attr(P),L&&(L.attrSetters=v.attrSetters,L.attr(P))):(P={translateX:v.oldtranslateX,translateY:v.oldtranslateY,scaleX:1,scaleY:1},v.animate(P,j),L&&L.animate(P,j))}else super.animate.apply(this,arguments)}getDataLabelPosition(z,g){let v=super.getDataLabelPosition(z,g);if(this.chart.is3d()){let L=this.chart.options.chart.options3d,j=z.shapeArgs,P=j.r,Z=(j.alpha||(L==null?void 0:L.alpha))*A,O=(j.beta||(L==null?void 0:L.beta))*A,et=(j.start+j.end)/2,V=v.connectorPosition,D=-P*(1-Math.cos(Z))*Math.sin(et),m=P*(Math.cos(O)-1)*Math.cos(et);for(let u of[v==null?void 0:v.natural,V.breakAt,V.touchingSliceAt])u.x+=m,u.y+=D}return v}pointAttribs(z){let g=super.pointAttribs.apply(this,arguments),v=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(g.stroke=v.edgeColor||z.color||this.color,g["stroke-width"]=T(v.edgeWidth,1)),g}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let z=this.options,g=z.depth||0,v=this.chart.options.chart.options3d,L=v.alpha,j=v.beta,P=z.stacking?(z.stack||0)*g:this._i*g;for(let Z of(P+=g/2,z.grouping!==!1&&(P=0),this.points)){let O=Z.shapeArgs;Z.shapeType="arc3d",O.z=P,O.depth=.75*g,O.alpha=L,O.beta=j,O.center=this.center;let et=(O.end+O.start)/2;Z.slicedTranslation={translateX:Math.round(Math.cos(et)*z.slicedOffset*Math.cos(L*A)),translateY:Math.round(Math.sin(et)*z.slicedOffset*Math.cos(L*A))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let z of this.points)if(z.graphic)for(let g of["out","inn","side1","side2"])z.graphic&&(z.graphic[g].element.point=z)}}}return C(S.prototype,{pointClass:N}),S}),ot(b,"Series/Scatter3D/Scatter3DPoint.js",[b["Series/Scatter/ScatterSeries.js"],b["Core/Utilities.js"]],function(E,N){let{pointClass:W}=E.prototype,{defined:Y}=N;return class extends W{applyOptions(){return super.applyOptions.apply(this,arguments),Y(this.z)||(this.z=0),this}}}),ot(b,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),ot(b,"Series/Scatter3D/Scatter3DSeries.js",[b["Core/Math3D.js"],b["Series/Scatter3D/Scatter3DPoint.js"],b["Series/Scatter3D/Scatter3DSeriesDefaults.js"],b["Series/Scatter/ScatterSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(E,N,W,Y,H,A){let{pointCameraDistance:_}=E,{extend:C,merge:T}=A;class y extends Y{pointAttribs(k){let z=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&k&&(z.zIndex=_(k,this.chart)),z}}return y.defaultOptions=T(Y.defaultOptions,W),C(y.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:N}),H.registerSeriesType("scatter3d",y),y}),ot(b,"masters/highcharts-3d.src.js",[b["Core/Globals.js"],b["Core/Chart/Chart3D.js"],b["Series/Area3D/Area3DSeries.js"],b["Core/Axis/Axis3DComposition.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Series/Series3D.js"],b["Core/Axis/Stacking/StackItem.js"],b["Core/Renderer/SVG/SVGRenderer3D.js"],b["Core/Axis/ZAxis.js"],b["Series/Column3D/Column3DComposition.js"],b["Series/Pie3D/Pie3DSeries.js"]],function(E,N,W,Y,H,A,_,C,T,y,S){return W.compose(E.seriesTypes.area),Y.compose(E.Axis,E.Tick),N.compose(E.Chart,E.Fx),y.compose(E.Series,_),S.compose(E.Series),A.compose(E.Series),C.compose(H.getRendererType()),T.compose(E.Chart),E})})})(vt);var At=vt.exports;const Pt=Mt(At);export{Pt as H};