!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/color-axis
 * @requires highcharts
 *
 * ColorAxis module
 *
 * (c) 2012-2026 Highsoft AS
 * Author: Paweł Potaczek
 *
 * 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.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/coloraxis",["highcharts/highcharts"],function(t){return e(t,t.Axis,t.Color,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/coloraxis"]=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e,i,o){return function(){"use strict";var s,r,n,l,a={512:function(t){t.exports=o},532:function(t){t.exports=e},620:function(t){t.exports=i},944:function(e){e.exports=t}},h={};function c(t){var e=h[t];if(void 0!==e)return e.exports;var i=h[t]={exports:{}};return a[t](i,i.exports,c),i.exports}c.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return c.d(e,{a:e}),e},c.d=function(t,e){for(var i in e)c.o(e,i)&&!c.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},c.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var d={};c.d(d,{default:function(){return E}});var p=c(944),u=c.n(p),f=c(532),g=c.n(f),y=c(620),m=c.n(y),v=m().parse;(s=n||(n={})).initDataClasses=function(t){var e,i,o,s=this.chart,r=this.legendItem=this.legendItem||{},n=this.options,l=t.dataClasses||[],a=s.options.chart.colorCount,h=0;this.dataClasses=i=[],r.labels=[];for(var c=0,d=l.length;c<d;++c)e=l[c],e=(0,p.merge)(e),i.push(e),(s.styledMode||!e.color)&&("category"===n.dataClassColor?(s.styledMode||(a=(o=s.options.colors||[]).length,e.color=o[h]),e.colorIndex=h,++h===a&&(h=0)):e.color=v(n.minColor).tweenTo(v(n.maxColor),d<2?.5:c/(d-1)))},s.initStops=function(){for(var t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]],i=0,o=e.length;i<o;++i)e[i].color=v(e[i][1])},s.normalizedValue=function(t){var e=this.max||0,i=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-i||1)},s.toColor=function(t,e){var i,o,s,r,n,l,a=this.dataClasses,h=this.stops;if(a){for(l=a.length;l--;)if(o=(n=a[l]).from,s=n.to,(void 0===o||t>=o)&&(void 0===s||t<=s)){r=n.color,e&&(e.dataClass=l,e.colorIndex=n.colorIndex);break}}else{for(i=this.normalizedValue(t),l=h.length;l--&&!(i>h[l][0]););o=h[l]||h[l+1],i=1-((s=h[l+1]||o)[0]-i)/(s[0]-o[0]||1),r=o.color.tweenTo(s.color,i)}return r};var x=n,b=m().parse;!function(t){var e;function i(){var t=this,i=this.userOptions;this.colorAxis=[],i.colorAxis&&(i.colorAxis=(0,p.splat)(i.colorAxis),i.colorAxis.map(function(i){return new e(t,i)}))}function o(t){var e,i,o=this,s=this.chart.colorAxis||[],r=function(e){var i=t.allItems.indexOf(e);-1!==i&&(o.destroyItem(t.allItems[i]),t.allItems.splice(i,1))},n=[];for(s.forEach(function(t){(null==(e=t.options)?void 0:e.showInLegend)&&(e.dataClasses&&e.visible?n=n.concat(t.getDataClassLegendSymbols()):e.visible&&n.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){r(t)}):r(t))}))}),i=n.length;i--;)t.allItems.unshift(n[i])}function s(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function r(t){var e;null==(e=this.chart.colorAxis)||e.forEach(function(e){e.update({},t.redraw)})}function n(){var t;((null==(t=this.chart.colorAxis)?void 0:t.length)||this.colorAttribs)&&this.translateColors()}function l(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function a(t){var e=this,i=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][i]()}),this.series.buildKDTree()}function h(){var t=this,e=this.getPointsCollection(),i=this.options.nullColor,o=this.colorAxis,s=this.colorKey;e.forEach(function(e){var r=e.getNestedProperty(s),n=e.options.color||(e.isNull||null===e.value?i:o&&void 0!==r?o.toColor(r,e):e.color||t.color);n&&e.color!==n&&(e.color=n,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function c(){this.elem.attr("fill",b(this.start).tweenTo(b(this.end),this.pos),void 0,!0)}function d(){this.elem.attr("stroke",b(this.start).tweenTo(b(this.end),this.pos),void 0,!0)}t.compose=function(t,u,f,g,y){var m,v,x=u.prototype,b=f.prototype,C=y.prototype;x.collectionsWithUpdate.includes("colorAxis")||(e=t,x.collectionsWithUpdate.push("colorAxis"),x.collectionsWithInit.colorAxis=[x.addColorAxis],(0,p.addEvent)(u,"afterCreateAxes",i),v=(m=u).prototype.createAxis,m.prototype.createAxis=function(t,i){if("colorAxis"!==t)return v.apply(this,arguments);var o=new e(this,(0,p.merge)(i.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0}),(0,p.pick)(i.redraw,!0)&&this.redraw(i.animation),o},b.fillSetter=c,b.strokeSetter=d,(0,p.addEvent)(g,"afterGetAllItems",o),(0,p.addEvent)(g,"afterColorizeItem",s),(0,p.addEvent)(g,"afterUpdate",r),(0,p.extend)(C,{optionalAxis:"colorAxis",translateColors:h}),(0,p.extend)(C.pointClass.prototype,{setVisible:a}),(0,p.addEvent)(y,"afterTranslate",n,{order:1}),(0,p.addEvent)(y,"bindAxes",l))},t.pointSetVisible=a}(l||(l={}));var C=l,A=c(512),w=c.n(A),I=(r=function(t,e){return(r=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 i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),L=u().defaultOptions,k=w().series;L.colorAxis=(0,p.merge)(L.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"var(--highcharts-background-color)",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},clip:!1,lineColor:"var(--highcharts-neutral-color-40)",lineWidth:0,color:"var(--highcharts-neutral-color-40)",width:.01},labels:{distance:8,overflow:"justify",rotation:0},minColor:"var(--highcharts-highlight-color-10)",maxColor:"var(--highcharts-highlight-color-100)",tickLength:5,title:{margin:5},showInLegend:!0});var P=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.clippable=!1,o.coll="colorAxis",o.visible=!0,o.init(e,i),o}return I(e,t),e.compose=function(t,i,o,s){C.compose(e,t,i,o,s)},e.prototype.init=function(e,i){var o=e.options.legend||{},s=i.layout?"vertical"!==i.layout:"vertical"!==o.layout;this.side=i.side||s?2:1,this.reversed=i.reversed,this.opposite=!s,t.prototype.init.call(this,e,i,"colorAxis"),this.userOptions=i,(0,p.isArray)(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=i),i.dataClasses&&this.initDataClasses(i),this.initStops(),this.horiz=s,this.zoomEnabled=!1},e.prototype.hasData=function(){return!!(this.tickPositions||[]).length},e.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},e.prototype.setOptions=function(e){var i=this.chart.options.legend||{},o=L.colorAxis,s=e.layout||i.layout||o.layout,r=(0,p.merge)("vertical"!==s?{title:{rotation:0}}:{title:{rotation:90,margin:10}},o,e,{showEmpty:!1,visible:this.chart.options.legend.enabled&&!1!==e.visible});t.prototype.setOptions.call(this,r),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,i=this.chart,o=null==(t=this.legendItem)?void 0:t.symbol,s=this.getSize(),r=s.width,n=s.height;o&&(this.left=+o.attr("x"),this.top=+o.attr("y"),this.width=r=+o.attr("width"),this.height=n=+o.attr("height"),this.right=i.chartWidth-this.left-r,this.bottom=i.chartHeight-this.top-n,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?r:n)||e.defaultLegendLength},e.prototype.getOffset=function(){var i,o=this.chart,s=null==(i=this.legendItem)?void 0:i.group,r=o.axisOffset[this.side],n=o.clipOffset,l=o.legend;s&&(this.axisParent=s,t.prototype.getOffset.call(this),l.allItems.forEach(function(t){t instanceof e&&t.drawLegendSymbol(l,t)}),l.render(),o.getMargins(!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,o.axisOffset[this.side]=r,o.clipOffset=n)},e.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,i=+!!e,o=+!e,s=t?[i,0,o,0]:[0,o,0,i];this.legendColor={linearGradient:{x1:s[0],y1:s[1],x2:s[2],y2:s[3]},stops:this.stops}},e.prototype.drawLegendSymbol=function(t,e){var i,o,s,r,n,l=e.legendItem||{},a=t.padding,h=t.options,c=this.options.labels,d=(0,p.pick)(h.itemDistance,10),u=this.horiz,f=this.getSize(),g=f.width,y=f.height,m=(0,p.pick)(h.labelPadding,u?16:30);this.setLegendColor();var v=0,x=0;if((null==(i=this.options.title)?void 0:i.text)&&!this.axisTitle){this.axisGroup||(this.axisParent=l.group,this.createGroups());var b=this.len,C=this.top,A=this.left,w=this.width;this.len=u?g:y,this.top=0,this.left=0,this.width=g,this.addTitle(!0),this.len=b,this.top=C,this.left=A,this.width=w}if(this.axisTitle){var I=this.axisTitle.getBBox();v=I.height,x=I.width}var L=this.options.title||{},k=this.axisTitle&&null!=(o=L.margin)?o:0,P=u?v+k:0;l.symbol||(l.symbol=this.chart.renderer.symbol("roundedRect").attr({r:null!=(s=h.symbolRadius)?s:3,zIndex:1}).add(l.group)),l.symbol.attr({x:0,y:(t.baseline||0)-11+P,width:g,height:y}),u?(l.labelWidth=Math.max(g+a+d,x||0),l.labelHeight=y+a+m+v+k):(l.labelWidth=g+a+(null!=(n=null!=(r=c.x)?r:c.distance)?n:0)+(this.maxLabelLength||0)+(x||0)+k,l.labelHeight=Math.max(y+a,v||0))},e.prototype.getTitlePosition=function(e){var i,o,s,r,n=t.prototype.getTitlePosition.call(this,e),l=null!=(o=null==(i=this.options.title)?void 0:i.margin)?o:0;if(this.horiz&&e)n.y=this.top-l;else if(!this.horiz&&e){var a=this.options.labels||{},h=null!=(r=null!=(s=a.x)?s:a.distance)?r:0;n.x=this.left+this.width+h+(this.maxLabelLength||0)+l}return n},e.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},e.prototype.setVisible=function(){},e.prototype.getSeriesExtremes=function(){var t,e,i,o,s=this.series,r=s.length;for(this.dataMin=1/0,this.dataMax=-1/0;r--;){e=(o=s[r]).colorKey=(0,p.pick)(o.options.colorKey,o.colorKey,o.pointValKey,o.zoneAxis,"y"),i=o[e+"Min"]&&o[e+"Max"];for(var n=0,l=[e,"value","y"];n<l.length;n++){var a=l[n];if((t=o.getColumn(a)).length)break}if(i)o.minColorValue=o[e+"Min"],o.maxColorValue=o[e+"Max"];else{var h=k.prototype.getExtremes.call(o,t);o.minColorValue=h.dataMin,o.maxColorValue=h.dataMax}(0,p.defined)(o.minColorValue)&&(0,p.defined)(o.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,o.minColorValue),this.dataMax=Math.max(this.dataMax,o.maxColorValue)),i||k.prototype.applyExtremes.call(o)}},e.prototype.drawCrosshair=function(e,i){var o,s=this.legendItem||{},r=null==i?void 0:i.plotX,n=null==i?void 0:i.plotY,l=this.pos,a=this.len,h=this.options.marker||{};i&&((o=this.toPixels(i.getNestedProperty(i.series.colorKey)))<l?o=l-2:o>l+a&&(o=l+a+2),i.plotX=o,i.plotY=this.len-o,t.prototype.drawCrosshair.call(this,e,i),i.plotX=r,i.plotY=n,this.cross&&!this.cross.addedToColorAxis&&s.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(s.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:h.color,stroke:h.lineColor,"stroke-width":h.lineWidth})))},e.prototype.getPlotLinePath=function(e){var i=this.left,o=e.translatedValue,s=(this.options.marker||{}).symbol,r=this.top;if((0,p.isNumber)(o)){var n=this.width,l=o-n/2;return s?this.chart.renderer.symbols[s](i,l,n,n):this.horiz?[["M",o-4,r-6],["L",o+4,r-6],["L",o,r],["Z"]]:[["M",i,o],["L",i-6,o+6],["L",i-6,o-6],["Z"]]}return t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,i){var o,s=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&s.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,i),(null==(o=this.legendItem)?void 0:o.label)&&(this.setLegendColor(),s.colorizeItem(this,!0))},e.prototype.destroyItems=function(){var t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(var i=0,o=e.labels;i<o.length;i++){var s=o[i];t.legend.destroyItem(s)}t.isDirtyLegend=!0},e.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),t.prototype.destroy.apply(this,[].slice.call(arguments))},e.prototype.remove=function(e){this.destroyItems(),t.prototype.remove.call(this,e)},e.prototype.getDataClassLegendSymbols=function(){var t,e=this,i=e.chart,o=e.legendItem&&e.legendItem.labels||[],s=i.options.legend,r=(0,p.pick)(s.valueDecimals,-1),n=(0,p.pick)(s.valueSuffix,""),l=function(t){return e.series.reduce(function(e,i){return e.push.apply(e,i.points.filter(function(e){return e.dataClass===t})),e},[])};return o.length||e.dataClasses.forEach(function(s,a){var h=s.from,c=s.to,d=i.numberFormatter,u=!0;t="",void 0===h?t="< ":void 0===c&&(t="> "),void 0!==h&&(t+=d(h,r)+n),void 0!==h&&void 0!==c&&(t+=" - "),void 0!==c&&(t+=d(c,r)+n),o.push((0,p.extend)({chart:i,name:t,options:{},drawLegendSymbol:k.prototype.drawLegendSymbol,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,i=l(a);e<i.length;e++)i[e].setState(t)},setVisible:function(){this.visible=u=e.visible=!u;for(var t=[],o=0,s=l(a);o<s.length;o++){var r=s[o];r.setVisible(u),r.hiddenInDataClass=!u,-1===t.indexOf(r.series)&&t.push(r.series)}i.legend.colorizeItem(this,u),t.forEach(function(t){(0,p.fireEvent)(t,"afterDataClassLegendClick")})}},s))}),o},e.prototype.getSize=function(){var t=this.chart,i=this.horiz,o=this.options,s=o.height,r=o.width,n=t.options.legend;return{width:(0,p.pick)((0,p.defined)(r)?(0,p.relativeLength)(r,t.chartWidth):void 0,null==n?void 0:n.symbolWidth,i?e.defaultLegendLength:12),height:(0,p.pick)((0,p.defined)(s)?(0,p.relativeLength)(s,t.chartHeight):void 0,null==n?void 0:n.symbolHeight,i?12:e.defaultLegendLength)}},e.defaultLegendLength=200,e.keepProps=["legendItem"],e}(g());(0,p.extend)(P.prototype,x),Array.prototype.push.apply(g().keepProps,P.keepProps);var S=u();S.ColorAxis=S.ColorAxis||P,S.ColorAxis.compose(S.Chart,S.Fx,S.Legend,S.Series);var E=u();return d.default}()});