!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/broken-axis
 * @requires highcharts
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(i,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("highcharts"),require("highcharts").StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/broken-axis",[["highcharts/highcharts"],["highcharts/highcharts","StackItem"]],t):"object"==typeof exports?exports["highcharts/modules/broken-axis"]=t(require("highcharts"),require("highcharts").StackItem):i.Highcharts=t(i.Highcharts,i.Highcharts.StackItem)}(this,function(i,t){return function(){"use strict";var r,e={184:function(i){i.exports=t},944:function(t){t.exports=i}},n={};function o(i){var t=n[i];if(void 0!==t)return t.exports;var r=n[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(t,{a:t}),t},o.d=function(i,t){for(var r in t)o.o(t,r)&&!o.o(i,r)&&Object.defineProperty(i,r,{enumerable:!0,get:t[r]})},o.o=function(i,t){return Object.prototype.hasOwnProperty.call(i,t)};var s={};o.d(s,{default:function(){return b}});var a=o(944),l=o.n(a),f=o(184),u=o.n(f),h=l().addEvent,c=l().find,v=l().fireEvent,k=l().isArray,p=l().isNumber,d=l().pick;!function(i){function t(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function r(){var i;Object.keys((null==(i=this.options.breaks)?void 0:i[0])||{}).length&&(this.options.ordinal=!1)}function e(){var i=this.brokenAxis;if(null==i?void 0:i.hasBreaks){for(var t=this.tickPositions,r=this.tickPositions.info,e=[],n=0;n<t.length;n++)i.isInAnyBreak(t[n])||e.push(t[n]);this.tickPositions=e,this.tickPositions.info=r}}function n(){this.brokenAxis||(this.brokenAxis=new f(this))}function o(){var i,t,r=this.isDirty,e=this.options.connectNulls,n=this.points,o=this.xAxis,s=this.yAxis;if(r)for(var a=n.length;a--;){var l=n[a],f=(null!==l.y||!1!==e)&&((null==(i=null==o?void 0:o.brokenAxis)?void 0:i.isInAnyBreak(l.x,!0))||(null==(t=null==s?void 0:s.brokenAxis)?void 0:t.isInAnyBreak(l.y,!0)));l.visible=!f&&!1!==l.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,d(this.pointArrayMap,["y"]))}function a(i,t){var r,e,n,o,s=this,a=s.points;if(null==(r=null==i?void 0:i.brokenAxis)?void 0:r.hasBreaks){var l=i.brokenAxis;t.forEach(function(t){e=(null==l?void 0:l.breakArray)||[],n=i.isXAxis?i.min:d(s.options.threshold,i.min),a.forEach(function(r){var s;o=null!=(s=r["stack"+t.toUpperCase()])?s:r[t],e.forEach(function(t){if(p(n)&&p(o)){var e="";n<t.from&&o>t.to||n>t.from&&o<t.from?e="pointBreak":(n<t.from&&o>t.from&&o<t.to||n>t.from&&o>t.to&&o<t.from)&&(e="pointInBreak"),e&&v(i,e,{point:r,brk:t})}})})})}}function l(){var i,t=this.currentDataGrouping,r=null==t?void 0:t.gapSize,e=this.points.slice(),n=this.yAxis,o=this.options.gapSize,s=e.length-1;if(o&&s>0){"value"!==this.options.gapUnit&&(o*=this.basePointRange),r&&r>o&&r>=this.basePointRange&&(o=r);for(var a=void 0,l=void 0;s--;)if(l&&!1!==l.visible||(l=e[s+1]),a=e[s],!1!==l.visible&&!1!==a.visible){if(l.x-a.x>o){var f=(a.x+l.x)/2;e.splice(s+1,0,{isNull:!0,x:f}),n.stacking&&this.options.stacking&&((n.stacking.stacks[this.stackKey][f]=new(u())(n,n.options.stackLabels,!1,f,null!=(i=this.stack)?i:"")).total=0)}l=a}}return this.getGraphPath(e)}i.compose=function(i,f){if(!i.keepProps.includes("brokenAxis")){i.keepProps.push("brokenAxis"),h(i,"init",n),h(i,"afterInit",t),h(i,"afterSetTickPositions",e),h(i,"afterSetOptions",r);var u=f.prototype;u.drawBreaks=a,u.gappedPath=l,h(f,"afterGeneratePoints",o),h(f,"afterRender",s)}return i};var f=function(){function i(i){this.axis=i}return i.isInBreak=function(i,t){var r=i.repeat||1/0,e=i.from,n=i.to-i.from,o=t>=e?(t-e)%r:r-(e-t)%r;return i.inclusive?o<=n:o<n&&0!==o},i.lin2Val=function(t){var r=this.min||0,e=this.brokenAxis,n=null==e?void 0:e.breakArray;if(!(null==n?void 0:n.length)||!p(t))return t;var o=t;if(t>r)for(var s=0;s<n.length;s++){var a=n[s];if(a.from>o)break;a.to<=o&&a.to>r?o+=a.len:i.isInBreak(a,o)&&(o+=a.len)}else if(t<r)for(var l=0;l<n.length;l++){var a=n[l];if(a.from>r)break;a.from>=o&&a.from<r?o-=a.len:i.isInBreak(a,o)&&(o-=a.len)}return o},i.val2Lin=function(t){var r=this.min||0,e=this.brokenAxis,n=null==e?void 0:e.breakArray;if(!(null==n?void 0:n.length)||!p(t))return t;var o=t;if(t>r)for(var s=0;s<n.length;s++){var a=n[s];if(a.to<=t&&a.to>r)o-=a.len;else if(a.from>t)break;else if(i.isInBreak(a,t)){o-=t-a.from;break}}else if(t<r)for(var l=0;l<n.length;l++){var a=n[l];if(a.from>=t&&a.from<r)o+=a.len;else if(a.from>r)break;else if(i.isInBreak(a,t)){o+=a.to-t;break}}return o},i.prototype.findBreakAt=function(i,t){return c(t,function(t){return t.from<i&&i<t.to})},i.prototype.isInAnyBreak=function(t,r){var e,n,o,s=this.axis,a=s.options.breaks||[],l=a.length;if(l&&p(t)){for(;l--;)i.isInBreak(a[l],t)&&(e=!0,n||(n=d(a[l].showPoints,!s.isXAxis)));o=e&&r?e&&!n:e}return o},i.prototype.setBreaks=function(t,r){var e,n=this,o=n.axis,s=o.chart.time,a=k(t)&&!!Object.keys((null==t?void 0:t[0])||{}).length;o.isDirty=(null!=(e=n.hasBreaks)&&e)!==a,n.hasBreaks=a,null==t||t.forEach(function(i){i.from=s.parse(i.from)||0,i.to=s.parse(i.to)||0}),t!==o.options.breaks&&(o.options.breaks=o.userOptions.breaks=t),o.forceRedraw=!0,o.series.forEach(function(i){i.isDirty=!0}),a||o.val2lin!==i.val2Lin||(delete o.val2lin,delete o.lin2val),a&&(o.userOptions.ordinal=!1,o.lin2val=i.lin2Val,o.val2lin=i.val2Lin,o.setExtremes=function(i,t,r,e,s){var a;if(n.hasBreaks&&!(null==(a=o.treeGrid)?void 0:a.tree)){for(var l=this.brokenAxis.breakArray||[],f=void 0;f=n.findBreakAt(i,l);)i=f.to;for(;f=n.findBreakAt(t,l);)t=f.from;t<i&&(t=i)}o.constructor.prototype.setExtremes.call(this,i,t,r,e,s)},o.setAxisTranslation=function(){if(o.constructor.prototype.setAxisTranslation.call(this),n.unitLength=void 0,n.hasBreaks){var t,r,e,s,a,l,f,u,h,c,k=o.options.breaks||[],d=[],m=[],x=null!=(t=o.pointRangePadding)?t:0,b=0,A=null!=(r=o.userMin)?r:o.min,g=null!=(e=o.userMax)?e:o.max,y=null!=(s=o.dataMin)?s:A,B=null!=(a=o.dataMax)?a:g;p(o.threshold)&&(y=Math.min(null!=y?y:o.threshold,o.threshold),B=Math.max(null!=B?B:o.threshold,o.threshold)),(null==(l=o.treeGrid)?void 0:l.tree)||k.forEach(function(t){u=t.repeat||1/0,p(A)&&p(g)&&(i.isInBreak(t,A)&&(A+=t.to%u-A%u),i.isInBreak(t,g)&&(g-=g%u-t.from%u))}),p(y)&&p(B)&&k.forEach(function(i){for(h=i.from,u=i.repeat||1/0;h-u>y;)h-=u;for(;h<y;)h+=u;for(c=h;c<B;c+=u)d.push({value:c,move:"in"}),d.push({value:c+i.to-i.from,move:"out",size:i.breakSize})}),d.sort(function(i,t){return i.value===t.value?("in"!==i.move)-("in"!==t.move):i.value-t.value}),f=0,h=y,d.forEach(function(i){1===(f+="in"===i.move?1:-1)&&"in"===i.move&&(h=i.value),0===f&&p(h)&&(m.push({from:h,to:i.value,len:i.value-h-(i.size||0)}),p(A)&&p(g)&&h<g&&i.value>A&&(b+=i.value-h-(i.size||0)))}),n.breakArray=m,p(A)&&p(g)&&p(o.min)&&(n.unitLength=g-A-b+x,v(o,"afterBreaks"),o.staticScale?o.transA=o.staticScale:n.unitLength&&(o.transA*=(g-o.min+x)/n.unitLength),x&&(o.minPixelPadding=o.transA*(o.minPointOffset||0)),o.min=A,o.max=g)}}),d(r,!0)&&o.chart.redraw()},i}();i.Additions=f}(r||(r={}));var m=r,x=l();x.BrokenAxis=x.BrokenAxis||m,x.BrokenAxis.compose(x.Axis,x.Series);var b=l();return s.default}()});