!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/variable-pie
 * @requires highcharts
 *
 * Variable Pie module for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Grzegorz Blachliński
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/variable-pie",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/modules/variable-pie"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var i,r={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,a),i.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var o={};a.d(o,{default:function(){return z}});var s=a(944),h=a.n(s),c=a(512),l=a.n(c),p={minPointSize:"10%",maxPointSize:"100%",zMin:void 0,zMax:void 0,sizeBy:"area",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}<br/>Value: {point.y}<br/>Size: {point.z}<br/>'}},u=(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)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=l().seriesTypes.pie,d=h().arrayMax,g=h().arrayMin,y=h().clamp,M=h().extend,x=h().fireEvent,m=h().merge,P=h().pick,v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.calculateExtremes=function(){for(var t,e,i=this.chart,r=i.plotWidth,n=i.plotHeight,a=this.options,o=2*(a.slicedOffset||0),s=this.getColumn("z"),h=Math.min(r,n)-o,c={},l=this.center||this.getCenter(),p=0,u=["minPointSize","maxPointSize"];p<u.length;p++){var f=u[p],M=a[f],x=/%$/.test(M);M=parseInt(M,10),c[f]=x?h*M/100:2*M}this.minPxSize=l[3]+c.minPointSize,this.maxPxSize=y(l[2],l[3]+c.minPointSize,c.maxPointSize),s.length&&(t=P(a.zMin,g(s.filter(this.zValEval))),e=P(a.zMax,d(s.filter(this.zValEval))),this.getRadii(t,e,this.minPxSize,this.maxPxSize))},e.prototype.getRadii=function(t,e,i,r){for(var n,a,o,s=this.getColumn("z"),h=[],c="radius"!==this.options.sizeBy,l=e-t,p=0;p<s.length;p++)(a=this.zValEval(s[p])?s[p]:t)<=t?o=i/2:a>=e?o=r/2:(n=l>0?(a-t)/l:.5,c&&(n=Math.sqrt(n)),o=Math.ceil(i+n*(r-i))/2),h.push(o);this.radii=h},e.prototype.redraw=function(){this.center=null,t.prototype.redraw.call(this)},e.prototype.getDataLabelPosition=function(t,e){var i=this.center,r=this.options,n=t.angle||0,a=this.radii[t.index],o=i[0]+Math.cos(n)*a,s=i[1]+Math.sin(n)*a,h=Math.min((r.slicedOffset||0)+(r.borderWidth||0),e/5);return{distance:e,natural:{x:o+Math.cos(n)*e,y:s+Math.sin(n)*e},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:o+Math.cos(n)*h,y:s+Math.sin(n)*h},touchingSliceAt:{x:o,y:s}}}},e.prototype.translate=function(t){this.generatePoints();var e,i,r,n,a,o,s,h=this.options,c=h.slicedOffset,l=h.startAngle||0,p=Math.PI/180*(l-90),u=Math.PI/180*(P(h.endAngle,l+360)-90),f=u-p,d=this.points,g=h.ignoreHiddenPoint,y=0;this.startAngleRad=p,this.endAngleRad=u,this.calculateExtremes(),t||(this.center=t=this.getCenter());for(var M=0;M<d.length;M++)o=d[M],s=this.radii[M],e=p+y*f,(!g||o.visible)&&(y+=o.percentage/100),i=p+y*f,o.shapeType="arc",o.shapeArgs={x:t[0],y:t[1],r:s,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3},(r=(i+e)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),o.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},n=Math.cos(r)*t[2]/2,a=Math.sin(r)*t[2]/2,o.tooltipPos=[t[0]+.7*n,t[1]+.7*a],o.half=+(r<-Math.PI/2||r>Math.PI/2),o.angle=r;x(this,"afterTranslate")},e.prototype.zValEval=function(t){return!("number"!=typeof t||isNaN(t))||null},e.defaultOptions=m(f.defaultOptions,p),e}(f);M(v.prototype,{pointArrayMap:["y","z"],parallelArrays:["x","y","z"]}),l().registerSeriesType("variablepie",v);var z=h();return o.default}()});