!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/broken-axis
 * @requires highcharts
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * 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(i._Highcharts,i._Highcharts.StackItem):"function"==typeof define&&define.amd?define("highcharts/modules/broken-axis",["highcharts/highcharts"],function(i){return t(i,i.StackItem)}):"object"==typeof exports?exports["highcharts/modules/broken-axis"]=t(i._Highcharts,i._Highcharts.StackItem):i.Highcharts=t(i.Highcharts,i.Highcharts.StackItem)}("u"<typeof window?this:window,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 v}});var a=o(944),u=o.n(a),l=o(184),f=o.n(l);!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 h(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 u=n[a],l=(null!==u.y||!1!==e)&&((null==(i=null==o?void 0:o.brokenAxis)?void 0:i.isInAnyBreak(u.x,!0))||(null==(t=null==s?void 0:s.brokenAxis)?void 0:t.isInAnyBreak(u.y,!0)));u.visible=!l&&!1!==u.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,(0,a.pick)(this.pointArrayMap,["y"]))}function u(i,t){var r,e,n,o,s=this,u=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:(0,a.pick)(s.options.threshold,i.min),u.forEach(function(r){var s;o=null!=(s=r["stack"+t.toUpperCase()])?s:r[t],e.forEach(function(t){if((0,a.isNumber)(n)&&(0,a.isNumber)(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&&(0,a.fireEvent)(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,u=void 0;s--;)if(u&&!1!==u.visible||(u=e[s+1]),a=e[s],!1!==u.visible&&!1!==a.visible){if(u.x-a.x>o){var l=(a.x+u.x)/2;e.splice(s+1,0,{isNull:!0,x:l}),n.stacking&&this.options.stacking&&((n.stacking.stacks[this.stackKey][l]=new(f())(n,n.options.stackLabels,!1,l,null!=(i=this.stack)?i:"")).total=0)}u=a}}return this.getGraphPath(e)}i.compose=function(i,f){if(!i.keepProps.includes("brokenAxis")){i.keepProps.push("brokenAxis"),(0,a.addEvent)(i,"init",n),(0,a.addEvent)(i,"afterInit",t),(0,a.addEvent)(i,"afterSetTickPositions",e),(0,a.addEvent)(i,"afterSetOptions",r);var h=f.prototype;h.drawBreaks=u,h.gappedPath=l,(0,a.addEvent)(f,"afterGeneratePoints",o),(0,a.addEvent)(f,"afterRender",s)}return i};var h=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)||!(0,a.isNumber)(t))return t;var o=t;if(t>r)for(var s=0;s<n.length;s++){var u=n[s];if(u.from>o)break;u.to<=o&&u.to>r?o+=u.len:i.isInBreak(u,o)&&(o+=u.len)}else if(t<r)for(var l=0;l<n.length;l++){var u=n[l];if(u.from>r)break;u.from>=o&&u.from<r?o-=u.len:i.isInBreak(u,o)&&(o-=u.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)||!(0,a.isNumber)(t))return t;var o=t;if(t>r)for(var s=0;s<n.length;s++){var u=n[s];if(u.to<=t&&u.to>r)o-=u.len;else if(u.from>t)break;else if(i.isInBreak(u,t)){o-=t-u.from;break}}else if(t<r)for(var l=0;l<n.length;l++){var u=n[l];if(u.from>=t&&u.from<r)o+=u.len;else if(u.from>r)break;else if(i.isInBreak(u,t)){o+=u.to-t;break}}return o},i.prototype.findBreakAt=function(i,t){return(0,a.find)(t,function(t){return t.from<i&&i<t.to})},i.prototype.isInAnyBreak=function(t,r){var e,n,o,s=this.axis,u=s.options.breaks||[],l=u.length;if(l&&(0,a.isNumber)(t)){for(;l--;)i.isInBreak(u[l],t)&&(e=!0,n||(n=(0,a.pick)(u[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,u=(0,a.isArray)(t)&&!!Object.keys((null==t?void 0:t[0])||{}).length;o.isDirty=(null!=(e=n.hasBreaks)&&e)!==u,n.hasBreaks=u,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}),u||o.val2lin!==i.val2Lin||(delete o.val2lin,delete o.lin2val),u&&(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 u=this.brokenAxis.breakArray||[],l=void 0;l=n.findBreakAt(i,u);)i=l.to;for(;l=n.findBreakAt(t,u);)t=l.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,u,l,f,h,c,v,k,p,d=o.options.breaks||[],m=[],b=[],x=null!=(t=o.pointRangePadding)?t:0,A=0,g=null!=(r=o.userMin)?r:o.min,y=null!=(e=o.userMax)?e:o.max,B=(0,a.isNumber)(g)?Math.min(null!=(s=o.dataMin)?s:g,g):null!=(u=o.dataMin)?u:g,N=(0,a.isNumber)(y)?Math.max(null!=(l=o.dataMax)?l:y,y):null!=(f=o.dataMax)?f:y;(null==(h=o.treeGrid)?void 0:h.tree)||d.forEach(function(t){v=t.repeat||1/0,(0,a.isNumber)(g)&&(0,a.isNumber)(y)&&(i.isInBreak(t,g)&&(g+=t.to%v-g%v),i.isInBreak(t,y)&&(y-=y%v-t.from%v))}),(0,a.isNumber)(B)&&(0,a.isNumber)(N)&&d.forEach(function(i){for(k=i.from,v=i.repeat||1/0;k-v>B;)k-=v;for(;k<B;)k+=v;for(p=k;p<N;p+=v)m.push({value:p,move:"in"}),m.push({value:p+i.to-i.from,move:"out",size:i.breakSize})}),m.sort(function(i,t){return i.value===t.value?("in"!==i.move)-("in"!==t.move):i.value-t.value}),c=0,k=B,m.forEach(function(i){1===(c+="in"===i.move?1:-1)&&"in"===i.move&&(k=i.value),0===c&&(0,a.isNumber)(k)&&(b.push({from:k,to:i.value,len:i.value-k-(i.size||0)}),(0,a.isNumber)(g)&&(0,a.isNumber)(y)&&k<y&&i.value>g&&(A+=i.value-k-(i.size||0)))}),n.breakArray=b,(0,a.isNumber)(g)&&(0,a.isNumber)(y)&&(0,a.isNumber)(o.min)&&(n.unitLength=y-g-A+x,(0,a.fireEvent)(o,"afterBreaks"),o.staticScale?o.transA=o.staticScale:n.unitLength&&(o.transA*=(y-o.min+x)/n.unitLength),x&&(o.minPixelPadding=o.transA*(o.minPointOffset||0)),o.min=g,o.max=y)}}),(0,a.pick)(r,!0)&&o.chart.redraw()},i}();i.Additions=h}(r||(r={}));var h=r,c=u();c.BrokenAxis=c.BrokenAxis||h,c.BrokenAxis.compose(c.Axis,c.Series);var v=u();return s.default}()});