/* Highcharts JS v11.1.0 (2023-06-05) Dependency wheel module (c) 2010-2021 Torstein Honsi License: www.highcharts.com/license */ 'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dependency-wheel",["highcharts","highcharts/modules/sankey"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,c,b,f){a.hasOwnProperty(c)||(a[c]=f.apply(null,b),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:c, module:a[c]}})))}a=a?a._modules:{};b(a,"Series/DependencyWheel/DependencyWheelPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,b){({seriesTypes:{sankey:{prototype:{pointClass:a}}}}=a);const {wrap:c}=b;class f extends a{constructor(){super(...arguments);this.toNode=this.shapeArgs=this.series=this.options=this.linksTo=this.linksFrom=this.index=this.fromNode=this.angle=void 0}getDataLabelPath(a){const b=this.series.chart.renderer,l=this.shapeArgs,f=0>this.angle||this.angle> Math.PI,p=l.start||0,h=l.end||0;this.dataLabelPath?(this.dataLabelPath=this.dataLabelPath.destroy(),delete this.dataLabelPath):c(a,"destroy",b=>{this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy());return b.call(a)});return this.dataLabelPath=b.arc({open:!0,longArc:Math.abs(Math.abs(p)-Math.abs(h))b.index){d=d.slice(0,g).reverse().concat(d.slice(g).reverse()); t=!0;break}t||d.reverse();for(g=0;gMath.PI&&(d=2*Math.PI- d);d*=m;d