!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/sankey
 * @requires highcharts
 *
 * Sankey diagram 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,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.SVGElement):"function"==typeof define&&define.amd?define("highcharts/modules/sankey",["highcharts/highcharts"],function(t){return o(t,t.SeriesRegistry,t.Point,t.Color,t.SVGElement)}):"object"==typeof exports?exports["highcharts/modules/sankey"]=o(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.SVGElement):t.Highcharts=o(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Point,t.Highcharts.Color,t.Highcharts.SVGElement)}("u"<typeof window?this:window,function(t,o,e,n,r){return function(){"use strict";var i,s,a,l,h,c,d={28:function(t){t.exports=r},260:function(t){t.exports=e},512:function(t){t.exports=o},620:function(t){t.exports=n},944:function(o){o.exports=t}},p={};function u(t){var o=p[t];if(void 0!==o)return o.exports;var e=p[t]={exports:{}};return d[t](e,e.exports,u),e.exports}u.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return u.d(o,{a:o}),o},u.d=function(t,o){for(var e in o)u.o(o,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:o[e]})},u.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var f={};u.d(f,{default:function(){return ts}});var v=u(944),y=u.n(v),m=u(512),g=u.n(m),b=function(t,o,e){if(e||2==arguments.length)for(var n,r=0,i=o.length;r<i;r++)!n&&r in o||(n||(n=Array.prototype.slice.call(o,0,r)),n[r]=o[r]);return t.concat(n||Array.prototype.slice.call(o))};function x(t,o,e,n){void 0===n&&(n={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var i=r.hcEvents;y().Point&&t instanceof y().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,o,e,!!y().supportsPassiveEvents&&{passive:void 0===n.passive?-1!==o.indexOf("touch"):n.passive,capture:!1}),i[o]||(i[o]=[]);var a={fn:e,order:"number"==typeof n.order?n.order:1/0};return i[o].push(a),i[o].sort(function(t,o){return t.order-o.order}),function(){!function(t,o,e){function n(o,e){var n=t.removeEventListener;n&&n.call(t,o,e,!1)}function r(e){var r,i;t.nodeName&&(o?(r={})[o]=!0:r=e,_(r,function(t,o){if(e[o])for(i=e[o].length;i--;)n(o,e[o][i].fn)}))}var i="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(i,"hcEvents")){var s=i.hcEvents;if(o){var a=s[o]||[];e?(s[o]=a.filter(function(t){return e!==t.fn}),n(o,e)):(r(s),s[o]=[])}else r(s),delete i.hcEvents}}(t,o,e)}}function k(t,o,e){void 0===o&&(o=0);var n=o%2/2,r=e?-1:1;return(Math.round(t*r-n)+n)*r}function P(t){return null!=t}function C(t,o){var e;for(e in t||(t={}),o)t[e]=o[e];return t}y().doc,y().win;var N=Array.prototype.find?function(t,o){return t.find(o)}:function(t,o){var e,n=t.length;for(e=0;e<n;e++)if(o(t[e],e))return t[e]};function O(t){return L(t)&&"number"==typeof t.nodeType}function w(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function S(t){var o=Object.prototype.toString.call(t);return"[object Array]"===o||"[object Array Iterator]"===o}function L(t,o){return!!t&&"object"==typeof t&&(!o||!S(t))}function T(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];var n,r=b([t],o,!0),i={},s=function(t,o){return"object"!=typeof t&&(t={}),_(o,function(e,n){if("__proto__"!==n&&"constructor"!==n){var r;!L(e,!0)||(r=null==e?void 0:e.constructor,L(e,!0)&&!O(e)&&(null==r?void 0:r.name)&&"Object"!==r.name)||O(e)?t[n]=o[n]:t[n]=s(t[n]||{},e)}}),t};!0===t&&(i=r[1],r=Array.prototype.slice.call(r,2));var a=r.length;for(n=0;n<a;n++)i=s(i,r[n]);return i}function _(t,o,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&o.call(e||t[n],t[n],n,t)}function M(){for(var t=arguments,o=t.length,e=0;e<o;e++){var n=t[e];if(null!=n)return n}}function F(t,o,e){return/%$/.test(t)?o*parseFloat(t)/100+(e||0):parseFloat(t)}var W=g().series,E=W.prototype,j=W.prototype.pointClass.prototype;!function(t){function o(){return this.data=[].concat(this.points||[],this.nodes),E.destroy.apply(this,arguments)}function e(){this.nodes&&(this.nodes.forEach(function(t){t.destroy()}),this.nodes.length=0),E.setData.apply(this,arguments)}function n(t){var o=arguments,e=this.isNode?this.linksTo.concat(this.linksFrom):[this.fromNode,this.toNode];"select"!==t&&e.forEach(function(t){t&&t.series&&(j.setState.apply(t,o),!t.isNode&&(t.fromNode.graphic&&j.setState.apply(t.fromNode,o),t.toNode&&t.toNode.graphic&&j.setState.apply(t.toNode,o)))}),j.setState.apply(this,o)}function r(t,o,e,n){var r=this,i=this.series.options.nodes,s=this.series.options.data,a=(null==s?void 0:s.length)||0,l=null==s?void 0:s[this.index];if(j.update.call(this,t,!this.isNode&&o,e,n),this.isNode){var h=(i||[]).reduce(function(t,o,e){return r.id===o.id?e:t},-1),c=T(i&&i[h]||{},(null==s?void 0:s[this.index])||{});s&&(l?s[this.index]=l:s.length=a),i?h>=0?i[h]=c:i.push(c):this.series.options.nodes=[c],M(o,!0)&&this.series.chart.redraw(e)}}t.compose=function(t,i){var s=t.prototype,a=i.prototype;return s.setNodeState=n,s.setState=n,s.update=r,a.destroy=o,a.setData=e,i},t.createNode=function(t){var o,e=this.pointClass,n=function(t,o){return N(t,function(t){return t.id===o})},r=n(this.nodes,t);if(!r){o=this.options.nodes&&n(this.options.nodes,t);var i=new e(this,C({className:"highcharts-node",isNode:!0,id:t,y:1},o));i.linksTo=[],i.linksFrom=[],i.getSum=function(){var t=0,o=0;return i.linksTo.forEach(function(o){t+=o.weight||0}),i.linksFrom.forEach(function(t){o+=t.weight||0}),Math.max(t,o)},i.offset=function(t,o){for(var e=0,n=0;n<i[o].length;n++){if(i[o][n]===t)return e;e+=i[o][n].weight}},i.hasShape=function(){var t=0;return i.linksTo.forEach(function(o){o.outgoing&&t++}),!i.linksTo.length||t!==i.linksTo.length},i.index=this.nodes.push(i)-1,r=i}return r.formatPrefix="node",r.name=r.name||r.options.id||"",r.mass=M(r.options.mass,r.options.marker&&r.options.marker.radius,this.options.marker&&this.options.marker.radius,4),r},t.destroy=o,t.generatePoints=function(){var t=this,o=this.chart,e={};E.generatePoints.call(this),this.nodes||(this.nodes=[]),this.colorCounter=0,this.nodes.forEach(function(t){t.linksFrom.length=0,t.linksTo.length=0,t.level=t.options.level}),this.points.forEach(function(n){P(n.from)&&(e[n.from]||(e[n.from]=t.createNode(n.from)),e[n.from].linksFrom.push(n),n.fromNode=e[n.from],o.styledMode?n.colorIndex=M(n.options.colorIndex,e[n.from].colorIndex):n.color=n.options.color||e[n.from].color),P(n.to)&&(e[n.to]||(e[n.to]=t.createNode(n.to)),e[n.to].linksTo.push(n),n.toNode=e[n.to]),n.name=n.name||n.id},this),this.nodeLookup=e},t.setNodeState=n,t.updateNode=r}(h||(h={}));var z=h,H=u(260),A=u.n(H),D=(i=function(t,o){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)o.hasOwnProperty(e)&&(t[e]=o[e])})(t,o)},function(t,o){function e(){this.constructor=t}i(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),I=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return D(o,t),o.prototype.applyOptions=function(t,o){return A().prototype.applyOptions.call(this,t,o),P(this.options.level)&&(this.options.column=this.column=this.options.level),this},o.prototype.getClassName=function(){return(this.isNode?"highcharts-node ":"highcharts-link ")+A().prototype.getClassName.call(this)},o.prototype.getFromNode=function(){for(var t,o=-1,e=0;e<this.linksTo.length;e++){var n=this.linksTo[e];n.fromNode.column>o&&n.fromNode!==this&&(o=(t=n.fromNode).column)}return{fromNode:t,fromColumn:o}},o.prototype.setNodeColumn=function(){P(this.options.column)||(0===this.linksTo.length?this.column=0:this.column=this.getFromNode().fromColumn+1)},o.prototype.isValid=function(){return this.isNode||"number"==typeof this.weight},o}(g().seriesTypes.column.prototype.pointClass),Y={borderWidth:0,colorByPoint:!0,curveFactor:.33,dataLabels:{enabled:!0,backgroundColor:"none",crop:!1,nodeFormat:void 0,nodeFormatter:function(){return this.point.name},format:void 0,formatter:function(){},inside:!0},inactiveOtherPoints:!0,linkColorMode:"from",linkOpacity:.5,opacity:1,minLinkWidth:0,nodeAlignment:"center",nodeWidth:20,nodePadding:10,nodeDistance:30,showInLegend:!1,states:{hover:{linkOpacity:1,opacity:1},inactive:{linkOpacity:.1,opacity:.1,animation:{duration:50}}},tooltip:{followPointer:!0,headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:"{point.fromNode.name} → {point.toNode.name}: <b>{point.weight}</b><br/>",nodeFormat:"{point.name}: <b>{point.sum}</b><br/>"}};(s=c||(c={})).compose=function(t,o){return t.sankeyColumn=new a(t,o),t},s.SankeyColumnAdditions=a=function(){function t(t,o){this.points=t,this.series=o}return t.prototype.getTranslationFactor=function(t){for(var o,e,n=this.points,r=n.slice(),i=t.chart,s=t.options.minLinkWidth||0,a=0,l=(i.plotSizeY||0)-(t.options.borderWidth||0)-(n.length-1)*t.nodePadding;n.length;){for(a=l/n.sankeyColumn.sum(),o=!1,e=n.length;e--;)n[e].getSum()*a<s&&(n.splice(e,1),l=Math.max(0,l-s),o=!0);if(!o)break}n.length=0;for(var h=0;h<r.length;h++){var c=r[h];n.push(c)}return a},t.prototype.top=function(t){var o,e=this.series,n=e.nodePadding,r=this.points.reduce(function(o,r){return o>0&&(o+=n),o+=Math.max(r.getSum()*t,e.options.minLinkWidth||0)},0);return void 0===(o=e.options.nodeAlignment||"center")&&(o=""),(({center:.5,right:1,middle:.5,bottom:1})[o]||0)*((e.chart.plotSizeY||0)-r)},t.prototype.left=function(t){var o=this.series,e=o.chart,n=o.options.equalNodes,r=e.inverted?e.plotHeight:e.plotWidth,i=o.nodePadding,s=this.points.reduce(function(e,s){return e>0&&(e+=i),e+=n?r/s.series.nodes.length-i:Math.max(s.getSum()*t,o.options.minLinkWidth||0)},0);return((e.plotSizeX||0)-Math.round(s))/2},t.prototype.sum=function(){return this.points.reduce(function(t,o){return t+o.getSum()},0)},t.prototype.offset=function(t,o){var e,n=this.points,r=this.series,i=r.nodePadding,s=0;if(r.is("organization")&&t.hangsFrom)return{absoluteTop:t.hangsFrom.nodeY};for(var a=0;a<n.length;a++){var l=n[a].getSum(),h=Math.max(l*o,r.options.minLinkWidth||0),c=t.options[r.chart.inverted?"offsetHorizontal":"offsetVertical"],d=t.options.offset||0;if(e=l?h+i:0,n[a]===t)return{relativeTop:s+(P(c)?F(c,h):F(d,e))};s+=e}},t}();var B=c,X=u(620),R=u.n(X),V=function(t){var o,e,n,r,i,s,a={};if(L(t))for(r=w(t.from)?t.from:1,s=t.levels,e={},o=L(t.defaults)?t.defaults:{},S(s)&&(e=s.reduce(function(t,e){var n,i,s;return L(e)&&w(e.level)&&(i=M((s=T({},e)).levelIsConstant,o.levelIsConstant),delete s.levelIsConstant,delete s.level,L(t[n=e.level+(i?0:r-1)])?T(!0,t[n],s):t[n]=s),t},{})),i=w(t.to)?t.to:1,n=0;n<=i;n++)a[n]=T({},o,L(e[n])?e[n]:{});return a},G=function(t,o){var e=t.chart,n=t.options,r=n.nodeDistance,i=void 0===r?0:r,s=n.nodeWidth,a=void 0===s?0:s,l=e.plotSizeX,h=void 0===l?1:l;if("auto"===a){if("string"==typeof i&&/%$/.test(i))return h/(o+parseFloat(i)/100*(o-1));var c=Number(i);return(h+c)/(o||1)-c}return F(a,h)},q=u(28),Z=u.n(q),$=y().deg2rad;function K(t,o){var e=this;o=T(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},o);var n=this.renderer.url,r=this.text||this,i=r.textPath,s=o.attributes,a=o.enabled;if(t=t||i&&i.path,i&&i.undo(),t&&a){var l=x(r,"afterModifyTree",function(o){if(t&&a){var i=t.attr("id");i||t.attr("id",i=(0,v.uniqueKey)());var l={x:0,y:0};P(s.dx)&&(l.dx=s.dx,delete s.dx),P(s.dy)&&(l.dy=s.dy,delete s.dy),r.attr(l),e.attr({transform:""}),e.box&&(e.box=e.box.destroy());var h=o.nodes.slice(0);o.nodes.length=0,o.nodes[0]={tagName:"textPath",attributes:C(s,{"text-anchor":s.textAnchor,href:""+n+"#".concat(i)}),children:h}}});r.textPath={path:t,undo:l}}else r.attr({dx:0,dy:0}),delete r.textPath;return this.added&&(r.textCache="",this.renderer.buildText(r)),this}function J(t){var o,e=t.bBox,n=null==(o=this.element)?void 0:o.querySelector("textPath");if(n){for(var r=[],i=this.renderer.fontMetrics(this.element),s=i.b,a=i.h-s,l=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),h=n.innerHTML.replace(l,"").split(/<tspan class="highcharts-br"[^>]*>/),c=h.length,d=function(t,o){var e=o.x,r=o.y,i=(n.getRotationOfChar(t)-90)*$,l=Math.cos(i),h=Math.sin(i);return[[e-a*l,r-a*h],[e+s*l,r+s*h]]},p=0,u=0;u<c;u++){for(var f=h[u].length,v=0;v<f;v+=5)try{var y=p+v+u,m=d(y,n.getStartPositionOfChar(y)),g=m[0],b=m[1];0===v?(r.push(b),r.push(g)):(0===u&&r.unshift(b),u===c-1&&r.push(g))}catch(t){break}p+=f-1;try{var y=p+u,x=n.getEndPositionOfChar(y),k=d(y,x),g=k[0],b=k[1];r.unshift(b),r.unshift(g)}catch(t){break}}r.length&&r.push(r[0].slice()),e.polygon=r}return e}function Q(t){var o,e=t.labelOptions,n=t.point,r=e[n.formatPrefix+"TextPath"]||e.textPath;r&&!e.useHTML&&(this.setTextPath((null==(o=n.getDataLabelPath)?void 0:o.call(n,this))||n.graphic,r),n.dataLabelPath&&!r.enabled&&(n.dataLabelPath=n.dataLabelPath.destroy()))}var U=(l=function(t,o){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function e(){this.constructor=t}l(t,o),t.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}),tt=function(){return(tt=Object.assign||function(t){for(var o,e=1,n=arguments.length;e<n;e++)for(var r in o=arguments[e])Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r]);return t}).apply(this,arguments)},to=g().seriesTypes,te=to.column,tn=to.line,tr=R().parse;({compose:function(t){x(t,"afterGetBBox",J),x(t,"beforeAddingDataLabel",Q);var o=t.prototype;o.setTextPath||(o.setTextPath=K)}}).compose(Z());var ti=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return U(o,t),o.getDLOptions=function(t){var o=L(t.optionsPoint)?t.optionsPoint.dataLabels:{},e=L(t.level)?t.level.dataLabels:{};return T({style:{}},e,o,{zIndex:null==e?void 0:e.zIndex})},o.prototype.createNodeColumns=function(){for(var t=[],o=0,e=this.nodes;o<e.length;o++){var n=e[o];n.setNodeColumn(),t[n.column]||(t[n.column]=B.compose([],this)),t[n.column].push(n)}for(var r=0;r<t.length;r++)void 0===t[r]&&(t[r]=B.compose([],this));return t},o.prototype.order=function(t,o){if(void 0===t.level){t.level=o;for(var e=0,n=t.linksFrom;e<n.length;e++){var r=n[e];r.toNode&&this.order(r.toNode,o+1)}}},o.prototype.generatePoints=function(){if(z.generatePoints.apply(this,arguments),this.orderNodes){for(var t=0,o=this.nodes;t<o.length;t++){var e=o[t];0===e.linksTo.length&&this.order(e,0)}!function(t,o){var e,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(e=o(t,n))?t.safeI-n.safeI:e}),n=0;n<r;n++)delete t[n].safeI}(this.nodes,function(t,o){return t.level-o.level})}},o.prototype.getNodePadding=function(){var t=this.options.nodePadding||0;if(this.nodeColumns){var o=this.nodeColumns.reduce(function(t,o){return Math.max(t,o.length)},0);o*t>this.chart.plotSizeY&&(t=this.chart.plotSizeY/o)}return t},o.prototype.hasData=function(){return!!this.dataTable.rowCount},o.prototype.pointAttribs=function(t,o){if(!t)return{};var e=this,n=t.isNode?t.level:t.fromNode.level,r=e.mapOptionsToLevel[n||0]||{},i=t.options,s=r.states&&r.states[o||""]||{},a=["colorByPoint","borderColor","borderWidth","linkOpacity","opacity"].reduce(function(t,o){return t[o]=M(s[o],i[o],r[o],e.options[o]),t},{}),l=M(s.color,i.color,a.colorByPoint?t.color:r.color);return t.isNode?{fill:l,stroke:a.borderColor,"stroke-width":a.borderWidth,opacity:a.opacity}:{fill:l,"fill-opacity":a.linkOpacity}},o.prototype.drawTracker=function(){te.prototype.drawTracker.call(this,this.points),te.prototype.drawTracker.call(this,this.nodes)},o.prototype.drawPoints=function(){te.prototype.drawPoints.call(this,this.points),te.prototype.drawPoints.call(this,this.nodes)},o.prototype.drawDataLabels=function(){te.prototype.drawDataLabels.call(this,this.points),te.prototype.drawDataLabels.call(this,this.nodes)},o.prototype.translate=function(){this.generatePoints(),this.nodeColumns=this.createNodeColumns();var t=this,o=this.chart,e=this.options,n=this.nodeColumns,r=n.length;this.nodeWidth=G(this,r),this.nodePadding=this.getNodePadding(),this.translationFactor=n.reduce(function(o,e){return Math.min(o,e.sankeyColumn.getTranslationFactor(t))},1/0),this.colDistance=(o.plotSizeX-this.nodeWidth-e.borderWidth)/Math.max(1,n.length-1),t.mapOptionsToLevel=V({from:1,levels:e.levels,to:n.length-1,defaults:{borderColor:e.borderColor,borderRadius:e.borderRadius,borderWidth:e.borderWidth,color:t.color,colorByPoint:e.colorByPoint,levelIsConstant:!0,linkColor:e.linkColor,linkLineWidth:e.linkLineWidth,linkOpacity:e.linkOpacity,states:e.states}});for(var i=0;i<n.length;i++)for(var s=n[i],a=0;a<s.length;a++){var l=s[a];t.translateNode(l,s)}for(var h=0,c=this.nodes;h<c.length;h++)for(var l=c[h],d=0,p=l.linksFrom;d<p.length;d++){var u=p[d];(u.weight||u.isNull)&&u.to&&(t.translateLink(u),u.allowShadow=!1)}},o.prototype.translateLink=function(t){var o=function(o,e){var n=o.offset(t,e)*s;return Math.min(o.nodeY+n,o.nodeY+(o.shapeArgs&&o.shapeArgs.height||0)-u)},e=t.fromNode,n=t.toNode,r=this.chart,i=r.inverted,s=this.translationFactor,a=this.options,l=M(t.linkColorMode,a.linkColorMode),h=(r.inverted?-this.colDistance:this.colDistance)*a.curveFactor,c=e.nodeX,d=n.nodeX,p=t.outgoing,u=Math.max(t.weight*s,this.options.minLinkWidth),f=o(e,"linksFrom"),v=o(n,"linksTo"),y=this.nodeWidth,m=d>c+y;if(r.inverted&&(f=r.plotSizeY-f,v=(r.plotSizeY||0)-v,y=-y,u=-u,m=c>d),t.shapeType="path",t.linkBase=[f,f+u,v,v+u],m&&"number"==typeof v)t.shapeArgs={d:[["M",c+y,f],["C",c+y+h,f,d-h,v,d,v],["L",d+(p?y:0),v+u/2],["L",d,v+u],["C",d-h,v+u,c+y+h,f+u,c+y,f+u],["Z"]]};else if("number"==typeof v){var g=r.plotHeight-f-u,b=d-20-u,x=d-20,k=c+y,P=k+20,C=P+u,N=f,O=f+u,w=O+20,S=w+g,L=S+20,T=L+u,_=v,F=_+u,W=F+20,E=O-.7*u,j=L+.7*u,z=F-.7*u,H=d-.7*u,A=k+.7*u;t.shapeArgs={d:[["M",k,N],["C",A,N,C,E,C,w],["L",C,S],["C",C,j,A,T,k,T],["L",d,T],["C",H,T,b,j,b,S],["L",b,W],["C",b,z,H,_,d,_],["L",d,F],["C",x,F,x,F,x,W],["L",x,S],["C",x,L,x,L,d,L],["L",k,L],["C",P,L,P,L,P,S],["L",P,w],["C",P,O,P,O,k,O],["Z"]]}}if(t.dlBox={x:c+(d-c+y)/2,y:f+(v-f)/2,height:u,width:0},t.tooltipPos=r.inverted?[r.plotSizeY-t.dlBox.y-u/2,r.plotSizeX-t.dlBox.x]:[t.dlBox.x,t.dlBox.y+u/2],t.y=t.plotY=1,t.x=t.plotX=1,!t.options.color){if("from"===l)t.color=e.color;else if("to"===l)t.color=n.color;else if("gradient"===l){var D=tr(e.color).get(),I=tr(n.color).get();t.color={linearGradient:{x1:1,x2:0,y1:0,y2:0},stops:[[0,i?D:I],[1,i?I:D]]}}}},o.prototype.translateNode=function(t,e){var n=this.translationFactor,r=this.chart,i=this.options,s=i.borderRadius,a=i.borderWidth,l=void 0===a?0:a,h=t.getSum(),c=Math.max(Math.round(h*n),this.options.minLinkWidth),d=Math.round(this.nodeWidth),p=e.sankeyColumn.offset(t,n),u=k(M(p.absoluteTop,e.sankeyColumn.top(n)+p.relativeTop),l),f=k(this.colDistance*t.column+l/2,l)+F(t.options[r.inverted?"offsetVertical":"offsetHorizontal"]||0,d),v=r.inverted?r.plotSizeX-f:f;if(t.sum=h,h){t.shapeType="roundedRect",t.nodeX=v,t.nodeY=u;var y,m,g=v,b=u,x=t.options.width||i.width||d,P=t.options.height||i.height||c,C=(y=F("object"==typeof s?s.radius:s||0,x),m=c/2,y>0?y<m?y:m:0);r.inverted&&(g=v-d,b=r.plotSizeY-u-c,x=t.options.height||i.height||d,P=t.options.width||i.width||c),t.dlOptions=tt(tt({},o.getDLOptions({level:this.mapOptionsToLevel[t.level],optionsPoint:t.options})),{zIndex:void 0}),t.plotX=1,t.plotY=1,t.tooltipPos=r.inverted?[r.plotSizeY-b-P/2,r.plotSizeX-g-x/2]:[g+x/2,b+P/2],t.shapeArgs={x:g,y:b,width:x,height:P,r:C,display:t.hasShape()?"":"none"}}else t.dlOptions={enabled:!1}},o.defaultOptions=T(te.defaultOptions,Y),o}(te);z.compose(I,ti),C(ti.prototype,{animate:tn.prototype.animate,createNode:z.createNode,forceDL:!0,invertible:!0,isCartesian:!1,orderNodes:!0,noSharedTooltip:!0,pointArrayMap:["from","to","weight"],pointClass:I,searchPoint:y().noop}),g().registerSeriesType("sankey",ti);var ts=y();return f.default}()});