!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/funnel
 * @requires highcharts
 *
 * Highcharts funnel module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * 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(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/funnel",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/funnel"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var n,r,o={512:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return o[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 F}});var c=a(944),l=a.n(c),d={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"}}},u=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},p=l().doc;function h(t,e){var n;for(n in t||(t={}),e)t[n]=e[n];return t}function f(t){return v(t)&&"number"==typeof t.nodeType}function y(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function v(t,e){return!!t&&"object"==typeof t&&(!e||!y(t))}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o=u([t],e,!0),i={},a=function(t,e){return"object"!=typeof t&&(t={}),b(e,function(n,r){if("__proto__"!==r&&"constructor"!==r){var o;!v(n,!0)||(o=null==n?void 0:n.constructor,v(n,!0)&&!f(n)&&(null==o?void 0:o.name)&&"Object"!==o.name)||f(n)?t[r]=e[r]:t[r]=a(t[r]||{},n)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var s=o.length;for(r=0;r<s;r++)i=a(i,o[r]);return i}function b(t,e,n){for(var r in t)Object.hasOwnProperty.call(t,r)&&e.call(n||t[r],t[r],r,t)}function x(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)}l().win,Array.prototype.find;var L=l().defaultOptions,m=l().noop,O={radius:0,scope:"stack",where:void 0};function _(t,e){return v(t)||(t={radius:t||0}),g(O,e,t)}var P=a(512),A=a.n(P),w=(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)}),E=l().composed,j=l().noop,M=A().seriesTypes,W=M.column,C=M.pie,k=A().series.prototype.alignDataLabel;function H(t,e){return/%$/.test(t)?e*parseInt(t,10)/100:parseInt(t,10)}var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w(e,t),e.prototype.alignDataLabel=function(t,e,n,r,o){var i,a=t.series,s=a.options.reversed,c=t.dlBox||t.shapeArgs,l=n.align,d=n.padding,u=void 0===d?0:d,p=n.verticalAlign,h=((a.options||{}).dataLabels||{}).inside,f=a.center[1],y=t.plotY||0,v=null!=(i=e.height)?i:e.getBBox().height,g=a.getWidthAt((s?2*f-y:y)-c.height/2+v),b="middle"===p?(c.topWidth-c.bottomWidth)/4:(g-c.bottomWidth)/2,x=c.y,L=c.x;"middle"===p?x=c.y-c.height/2+v/2:"top"===p&&(x=c.y-c.height+v+u),("top"===p&&!s||"bottom"===p&&s||"middle"===p)&&("right"===l?L=c.x-u+b:"left"===l&&(L=c.x+u-b)),r={x:L,y:s?x-c.height:x,width:c.bottomWidth,height:c.height},n.verticalAlign="bottom",h&&(n.distance=void 0),h&&t.visible&&k.call(a,t,e,n,r,o),h&&(!t.visible&&t.dataLabel&&(t.dataLabel.placed=!1),t.contrastColor&&e.css({color:t.contrastColor}))},e.prototype.drawDataLabels=function(){var t;((y(t=this.options.dataLabels||{})?t:[t])[0].inside?W:C).prototype.drawDataLabels.call(this)},e.prototype.getDataLabelPosition=function(t,e){var n=t.plotY||0,r=t.half?1:-1,o=this.getX(n,!!t.half,t);return{distance:e,natural:{x:0,y:n},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:o+(e-5)*r,y:n},touchingSliceAt:{x:o+e*r,y:n}}}},e.prototype.translate=function(){var t,e,n,r,o,i,a,s,c,d,u,f,y=this,v=y.chart,g=y.options,b=g.reversed,L=g.ignoreHiddenPoint,m=_(g.borderRadius),O=v.plotWidth,P=v.plotHeight,A=g.center,w=H(A[0],O),E=H(A[1],P),M=H(g.width,O),W=H(g.height,P),C=H(g.neckWidth,O),k=H(g.neckHeight,P),S=E-W/2+W-k,D=y.points,I=x(m.radius,M),T=m.scope,R=+("left"===g.dataLabels.position),Y=function(t){var e=Math.tan(t/2),n=Math.cos(r),i=Math.sin(r),a=I,s=a/e,c=Math.tan((Math.PI-t)/3.2104);return s>o&&(a=(s=o)*e),{dx:[s*n,(s-(c*=a))*n,s-c,s],dy:[s*i,(s-c)*i,s-c,s].map(function(t){return b?-t:t})}},B=0,F=0;y.getWidthAt=function(t){var e=E-W/2;return t>S||W===k?C:C+(M-C)*(1-(t-e)/(W-k))},y.getX=function(t,e,n){var r,o,i,a;return w+(e?-1:1)*(y.getWidthAt(b?2*E-t:t)/2+(null!=(i=null==(o=null==(r=n.dataLabel)?void 0:r.dataLabelPosition)?void 0:o.distance)?i:x((null==(a=this.options.dataLabels)?void 0:a.distance)||0,M)))},y.center=[w,E,W],y.centerX=w;for(var X=0;X<D.length;X++){var N=D[X];N.y&&N.isValid()&&(!L||!1!==N.visible)&&(B+=N.y)}for(var V=0;V<D.length;V++){var $,N=D[V];if(f=null,n=B?N.y/B:0,d=(a=E-W/2+F*W)+n*W,s=(i=w-(t=y.getWidthAt(a))/2)+t,u=(c=w-(t=y.getWidthAt(d))/2)+t,(($=a)>1e14?$:parseFloat($.toPrecision(14)))>=S?(i=c=w-C/2,s=u=w+C/2):d>S&&(f=d,u=(c=w-(t=y.getWidthAt(S))/2)+t,d=S),b&&(a=2*E-a,d=2*E-d,null!==f&&(f=2*E-f)),I&&("point"===T||0===N.index||N.index===D.length-1||null!==f)){var q=Math.abs(d-a),z=s-u,Z=u-c,G=Math.sqrt(z*z+q*q);r=Math.atan(0!==z?q/z:1/0),o=G/2,null!==f&&(o=Math.min(o,Math.abs(f-d)/2)),Z>=1&&(o=Math.min(o,Z/2));var J=Y(r);if(e="stack"===T&&0!==N.index?[["M",i,a],["L",s,a]]:[["M",i+J.dx[0],a+J.dy[0]],["C",i+J.dx[1],a+J.dy[1],i+J.dx[2],a,i+J.dx[3],a],["L",s-J.dx[3],a],["C",s-J.dx[2],a,s-J.dx[1],a+J.dy[1],s-J.dx[0],a+J.dy[0]]],null!==f){var K=Y(Math.PI/2);J=Y(Math.PI/2+r),e.push(["L",u+J.dx[0],d-J.dy[0]],["C",u+J.dx[1],d-J.dy[1],u,d+J.dy[2],u,d+J.dy[3]]),"stack"===T&&N.index!==D.length-1?e.push(["L",u,f],["L",c,f]):e.push(["L",u,f-K.dy[3]],["C",u,f-K.dy[2],u-K.dx[2],f,u-K.dx[3],f],["L",c+K.dx[3],f],["C",c+K.dx[2],f,c,f-K.dy[2],c,f-K.dy[3]]),e.push(["L",c,d+J.dy[3]],["C",c,d+J.dy[2],c-J.dx[1],d-J.dy[1],c-J.dx[0],d-J.dy[0]])}else Z>=1?(J=Y(Math.PI-r),"stack"===T&&0===N.index?e.push(["L",u,d],["L",c,d]):e.push(["L",u+J.dx[0],d-J.dy[0]],["C",u+J.dx[1],d-J.dy[1],u-J.dx[2],d,u-J.dx[3],d],["L",c+J.dx[3],d],["C",c+J.dx[2],d,c-J.dx[1],d-J.dy[1],c-J.dx[0],d-J.dy[0]])):(J=Y(Math.PI-2*r),e.push(["L",c+J.dx[0],d-J.dy[0]],["C",c+J.dx[1],d-J.dy[1],c-J.dx[1],d-J.dy[1],c-J.dx[0],d-J.dy[0]]))}else e=[["M",i,a],["L",s,a],["L",u,d]],null!==f&&e.push(["L",u,f],["L",c,f]),e.push(["L",c,d]);e.push(["Z"]),N.shapeType="path",N.shapeArgs={d:e},N.percentage=100*n,N.plotX=w,N.plotY=(a+(f||d))/2,N.tooltipPos=[w,N.plotY],N.dlBox={x:c,y:a,topWidth:s-i,bottomWidth:u-c,height:Math.abs(function(){for(var t=arguments,e=t.length,n=0;n<e;n++){var r=t[n];if(null!=r)return r}}(f,d)-a),width:NaN},N.slice=j,N.half=R,N.isValid()&&(!L||!1!==N.visible)&&(F+=n)}!function(t,e,n,r){if(n=n||{},(null==p?void 0:p.createEvent)&&(t.dispatchEvent||t.fireEvent&&t!==l())){var o=p.createEvent("Events");o.initEvent(e,!0,!0),n=h(o,n),t.dispatchEvent?t.dispatchEvent(n):t.fireEvent(e,n)}else if(t.hcEvents){n.target||h(n,{preventDefault:function(){n.defaultPrevented=!0},target:t,type:e});for(var i=[],a=t,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[e]&&(i.length&&(s=!0),i.unshift.apply(i,a.hcEvents[e])),a=Object.getPrototypeOf(a);s&&i.sort(function(t,e){return t.order-e.order}),i.forEach(function(e){!1===e.fn.call(t,n,t)&&n.preventDefault()})}}(y,"afterTranslate")},e.prototype.sortByAngle=function(t){t.sort(function(t,e){return t.plotY-e.plotY})},e.defaultOptions=g(C.defaultOptions,d),e}(C);function D(){for(var t=0,e=this.series;t<e.length;t++){var n=e[t],r=n.options&&n.options.dataLabels;y(r)&&(r=r[0]),n.is("pie")&&n.placeDataLabels&&r&&!r.inside&&n.placeDataLabels()}}h(S.prototype,{animate:j}),(S||(S={})).compose=function(t){var e,n,r,o,i,a,s,c;0>E.indexOf("FunnelSeries")&&E.push("FunnelSeries")&&(e=t,n="afterHideAllOverlappingLabels",r=D,void 0===o&&(o={}),i="function"==typeof e&&e.prototype||e,Object.hasOwnProperty.call(i,"hcEvents")||(i.hcEvents={}),a=i.hcEvents,l().Point&&e instanceof l().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),(s=e.addEventListener)&&s.call(e,n,r,!!l().supportsPassiveEvents&&{passive:void 0===o.passive?-1!==n.indexOf("touch"):o.passive,capture:!1}),a[n]||(a[n]=[]),c={fn:r,order:"number"==typeof o.order?o.order:1/0},a[n].push(c),a[n].sort(function(t,e){return t.order-e.order}))},A().registerSeriesType("funnel",S);var I=S,T={neckHeight:"0%",neckWidth:"0%",reversed:!0},R=(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)}),Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.defaultOptions=g(I.defaultOptions,T),e}(I);A().registerSeriesType("pyramid",Y);var B=l();I.compose(B.Chart);var F=l();return s.default}()});