!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/funnel
 * @requires highcharts
 *
 * Highcharts funnel module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * 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/funnel",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/modules/funnel"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var n,r,i={512:function(t){t.exports=e},944:function(e){e.exports=t}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return i[t](n,n.exports,a),n.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 n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return U}});var d=a(944),l=a.n(d),h={animation:!1,borderRadius:0,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"#cccccc",borderColor:"#000000"}}},c=l().defaultOptions,p=l().noop,u=(l().addEvent,l().extend),f=l().isObject,y=l().merge,g=l().relativeLength,x={radius:0,scope:"stack",where:void 0};function v(t,e){return f(t)||(t={radius:t||0}),y(x,e,t)}var b=a(512),L=a.n(b),m=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),M=l().composed,O=l().noop,A=L().seriesTypes,_=A.column,W=A.pie,P=l().addEvent,C=l().correctFloat,w=l().extend,k=l().fireEvent,j=l().isArray,H=l().merge,S=l().pick,D=l().pushUnique,I=l().relativeLength,q=l().splat,R=L().series.prototype.alignDataLabel;function T(t,e){return/%$/.test(t)?e*parseInt(t,10)/100:parseInt(t,10)}var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.alignDataLabel=function(t,e,n,r,i){var o,a=t.series,s=a.options.reversed,d=t.dlBox||t.shapeArgs,l=n.align,h=n.padding,c=void 0===h?0:h,p=n.verticalAlign,u=((a.options||{}).dataLabels||{}).inside,f=a.center[1],y=t.plotY||0,g=null!=(o=e.height)?o:e.getBBox().height,x=a.getWidthAt((s?2*f-y:y)-d.height/2+g),v="middle"===p?(d.topWidth-d.bottomWidth)/4:(x-d.bottomWidth)/2,b=d.y,L=d.x;"middle"===p?b=d.y-d.height/2+g/2:"top"===p&&(b=d.y-d.height+g+c),("top"===p&&!s||"bottom"===p&&s||"middle"===p)&&("right"===l?L=d.x-c+v:"left"===l&&(L=d.x+c-v)),r={x:L,y:s?b-d.height:b,width:d.bottomWidth,height:d.height},n.verticalAlign="bottom",u&&(n.distance=void 0),u&&t.visible&&R.call(a,t,e,n,r,i),u&&(!t.visible&&t.dataLabel&&(t.dataLabel.placed=!1),t.contrastColor&&e.css({color:t.contrastColor}))},e.prototype.drawDataLabels=function(){(q(this.options.dataLabels||{})[0].inside?_:W).prototype.drawDataLabels.call(this)},e.prototype.getDataLabelPosition=function(t,e){var n=t.plotY||0,r=t.half?1:-1,i=this.getX(n,!!t.half,t);return{distance:e,natural:{x:0,y:n},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:i+(e-5)*r,y:n},touchingSliceAt:{x:i+e*r,y:n}}}},e.prototype.translate=function(){var t,e,n,r,i,o,a,s,d,l,h,c,p=this,u=p.chart,f=p.options,y=f.reversed,g=f.ignoreHiddenPoint,x=v(f.borderRadius),b=u.plotWidth,L=u.plotHeight,m=f.center,M=T(m[0],b),A=T(m[1],L),_=T(f.width,b),W=T(f.height,L),P=T(f.neckWidth,b),w=T(f.neckHeight,L),j=A-W/2+W-w,H=p.points,D=I(x.radius,_),q=x.scope,R=+("left"===f.dataLabels.position),Y=function(t){var e=Math.tan(t/2),n=Math.cos(r),o=Math.sin(r),a=D,s=a/e,d=Math.tan((Math.PI-t)/3.2104);return s>i&&(a=(s=i)*e),{dx:[s*n,(s-(d*=a))*n,s-d,s],dy:[s*o,(s-d)*o,s-d,s].map(function(t){return y?-t:t})}},B=0,E=0;p.getWidthAt=function(t){var e=A-W/2;return t>j||W===w?P:P+(_-P)*(1-(t-e)/(W-w))},p.getX=function(t,e,n){var r,i,o,a;return M+(e?-1:1)*(p.getWidthAt(y?2*A-t:t)/2+(null!=(o=null==(i=null==(r=n.dataLabel)?void 0:r.dataLabelPosition)?void 0:i.distance)?o:I((null==(a=this.options.dataLabels)?void 0:a.distance)||0,_)))},p.center=[M,A,W],p.centerX=M;for(var X=0;X<H.length;X++){var F=H[X];F.y&&F.isValid()&&(!g||!1!==F.visible)&&(B+=F.y)}for(var N=0;N<H.length;N++){var F=H[N];if(c=null,n=B?F.y/B:0,l=(a=A-W/2+E*W)+n*W,s=(o=M-(t=p.getWidthAt(a))/2)+t,h=(d=M-(t=p.getWidthAt(l))/2)+t,C(a)>=j?(o=d=M-P/2,s=h=M+P/2):l>j&&(c=l,h=(d=M-(t=p.getWidthAt(j))/2)+t,l=j),y&&(a=2*A-a,l=2*A-l,null!==c&&(c=2*A-c)),D&&("point"===q||0===F.index||F.index===H.length-1||null!==c)){var V=Math.abs(l-a),z=s-h,U=h-d,Z=Math.sqrt(z*z+V*V);r=Math.atan(0!==z?V/z:1/0),i=Z/2,null!==c&&(i=Math.min(i,Math.abs(c-l)/2)),U>=1&&(i=Math.min(i,U/2));var $=Y(r);if(e="stack"===q&&0!==F.index?[["M",o,a],["L",s,a]]:[["M",o+$.dx[0],a+$.dy[0]],["C",o+$.dx[1],a+$.dy[1],o+$.dx[2],a,o+$.dx[3],a],["L",s-$.dx[3],a],["C",s-$.dx[2],a,s-$.dx[1],a+$.dy[1],s-$.dx[0],a+$.dy[0]]],null!==c){var G=Y(Math.PI/2);$=Y(Math.PI/2+r),e.push(["L",h+$.dx[0],l-$.dy[0]],["C",h+$.dx[1],l-$.dy[1],h,l+$.dy[2],h,l+$.dy[3]]),"stack"===q&&F.index!==H.length-1?e.push(["L",h,c],["L",d,c]):e.push(["L",h,c-G.dy[3]],["C",h,c-G.dy[2],h-G.dx[2],c,h-G.dx[3],c],["L",d+G.dx[3],c],["C",d+G.dx[2],c,d,c-G.dy[2],d,c-G.dy[3]]),e.push(["L",d,l+$.dy[3]],["C",d,l+$.dy[2],d-$.dx[1],l-$.dy[1],d-$.dx[0],l-$.dy[0]])}else U>=1?($=Y(Math.PI-r),"stack"===q&&0===F.index?e.push(["L",h,l],["L",d,l]):e.push(["L",h+$.dx[0],l-$.dy[0]],["C",h+$.dx[1],l-$.dy[1],h-$.dx[2],l,h-$.dx[3],l],["L",d+$.dx[3],l],["C",d+$.dx[2],l,d-$.dx[1],l-$.dy[1],d-$.dx[0],l-$.dy[0]])):($=Y(Math.PI-2*r),e.push(["L",d+$.dx[0],l-$.dy[0]],["C",d+$.dx[1],l-$.dy[1],d-$.dx[1],l-$.dy[1],d-$.dx[0],l-$.dy[0]]))}else e=[["M",o,a],["L",s,a],["L",h,l]],null!==c&&e.push(["L",h,c],["L",d,c]),e.push(["L",d,l]);e.push(["Z"]),F.shapeType="path",F.shapeArgs={d:e},F.percentage=100*n,F.plotX=M,F.plotY=(a+(c||l))/2,F.tooltipPos=[M,F.plotY],F.dlBox={x:d,y:a,topWidth:s-o,bottomWidth:h-d,height:Math.abs(S(c,l)-a),width:NaN},F.slice=O,F.half=R,F.isValid()&&(!g||!1!==F.visible)&&(E+=n)}k(p,"afterTranslate")},e.prototype.sortByAngle=function(t){t.sort(function(t,e){return t.plotY-e.plotY})},e.defaultOptions=H(W.defaultOptions,h),e}(W);function B(){for(var t=0,e=this.series;t<e.length;t++){var n=e[t],r=n.options&&n.options.dataLabels;j(r)&&(r=r[0]),n.is("pie")&&n.placeDataLabels&&r&&!r.inside&&n.placeDataLabels()}}w(Y.prototype,{animate:O}),(Y||(Y={})).compose=function(t){D(M,"FunnelSeries")&&P(t,"afterHideAllOverlappingLabels",B)},L().registerSeriesType("funnel",Y);var E=Y,X={neckHeight:"0%",neckWidth:"0%",reversed:!0},F=(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(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 n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),N=l().merge,V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.defaultOptions=N(E.defaultOptions,X),e}(E);L().registerSeriesType("pyramid",V);var z=l();E.compose(z.Chart);var U=l();return s.default}()});