!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/draggable-points
 * @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(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(e._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/draggable-points",["highcharts/highcharts"],function(e){return r(e)}):"object"==typeof exports?exports["highcharts/modules/draggable-points"]=r(e._Highcharts):e.Highcharts=r(e.Highcharts)}("u"<typeof window?this:window,function(e){return function(){"use strict";var r={944:function(r){r.exports=e}},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)};var a={};o.d(a,{default:function(){return er}});var n=o(944),i=o.n(n),s=function(e,r,t){if(t||2==arguments.length)for(var o,a=0,n=r.length;a<n;a++)!o&&a in r||(o||(o=Array.prototype.slice.call(r,0,a)),o[a]=r[a]);return e.concat(o||Array.prototype.slice.call(r))};function d(e,r,t,o){void 0===o&&(o={});var a="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(a,"hcEvents")||(a.hcEvents={});var n=a.hcEvents;i().Point&&e instanceof i().Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var s=e.addEventListener;s&&s.call(e,r,t,!!i().supportsPassiveEvents&&{passive:void 0===o.passive?-1!==r.indexOf("touch"):o.passive,capture:!1}),n[r]||(n[r]=[]);var d={fn:t,order:"number"==typeof o.order?o.order:1/0};return n[r].push(d),n[r].sort(function(e,r){return e.order-r.order}),function(){!function(e,r,t){function o(r,t){var o=e.removeEventListener;o&&o.call(e,r,t,!1)}function a(t){var a,n;e.nodeName&&(r?(a={})[r]=!0:a=t,c(a,function(e,r){if(t[r])for(n=t[r].length;n--;)o(r,t[r][n].fn)}))}var n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){var i=n.hcEvents;if(r){var s=i[r]||[];t?(i[r]=s.filter(function(e){return t!==e.fn}),o(r,t)):(a(i),i[r]=[])}else a(i),delete n.hcEvents}}(e,r,t)}}function l(e){return g(e)&&"number"==typeof e.nodeType}function p(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function u(e){var r=Object.prototype.toString.call(e);return"[object Array]"===r||"[object Array Iterator]"===r}function g(e,r){return!!e&&"object"==typeof e&&(!r||!u(e))}function h(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var o,a=s([e],r,!0),n={},i=function(e,r){return"object"!=typeof e&&(e={}),c(r,function(t,o){if("__proto__"!==o&&"constructor"!==o){var a;!g(t,!0)||(a=null==t?void 0:t.constructor,g(t,!0)&&!l(t)&&(null==a?void 0:a.name)&&"Object"!==a.name)||l(t)?e[o]=r[o]:e[o]=i(e[o]||{},t)}}),e};!0===e&&(n=a[1],a=Array.prototype.slice.call(a,2));var d=a.length;for(o=0;o<d;o++)n=i(n,a[o]);return n}function c(e,r,t){for(var o in e)Object.hasOwnProperty.call(e,o)&&r.call(t||e[o],e[o],o,e)}i().doc,i().win,Array.prototype.find;var f=function(e,r,t,o){var a=r.map(function(r){return d(e,r,t,o)});return function(){for(var e=0;e<a.length;e++)(0,a[e])()}},v=function(e,r){var t;return(void 0===e.chartX||void 0===e.chartY)&&(null==(t=r.pointer)?void 0:t.normalize(e))||e},x={className:"highcharts-drag-handle",color:"#fff",lineColor:"rgba(0, 0, 0, 0.6)",lineWidth:1,zIndex:901},m={default:{className:"highcharts-drag-box-default",lineWidth:1,lineColor:"#888",color:"rgba(0, 0, 0, 0.1)",cursor:"move",zIndex:900}},y=i().animObject,D=function(e){return Object.keys(e).length},b=function(e){for(var r in e)if(Object.hasOwnProperty.call(e,r))return e[r]},P=i().doc;function w(){var e=this.dragHandles||{};if(e){for(var r=0,t=Object.keys(e);r<t.length;r++){var o=t[r];e[o].destroy&&e[o].destroy()}delete this.dragHandles}}function z(e,r){var t=this.dragGuideBox,o=h(m,r),a=h(o.default,o[e]);return t.attr({class:a.className,stroke:a.lineColor,strokeWidth:a.lineWidth,fill:a.color,cursor:a.cursor,zIndex:a.zIndex}).css({pointerEvents:"none"})}function A(e){var r=this.options.chart||{},t=r.panKey&&r.panKey+"Key";return e[this.zooming.key&&this.zooming.key+"Key"]||e[t]}function H(e){return({left:"right",right:"left",top:"bottom",bottom:"top"})[e]}function O(e,r){var t,o,a,n,i=function(e){var r=e.series,t=r.options.data||[],o=r.options.dragDrop.groupBy,a=[];if(r.boosted&&u(t))for(var n=0,i=t.length;n<i;++n)a.push(new r.pointClass(r,t[n])),a[a.length-1].index=n;else a=r.points;return e.options[o]?a.filter(function(r){return r.options[o]===e.options[o]}):[e]}(r),s=r.series,d=s.chart;null==(o=null==(t=s.options.dragDrop)?void 0:t.liveRedraw)||o||(d.dragGuideBox=n=s.getGuideBox(i),d.setGuideBoxState("default",null==(a=s.options.dragDrop)?void 0:a.guideBox).add(s.group)),d.dragDropData={origin:function(e,r,t){for(var o={chartX:e.chartX,chartY:e.chartY,guideBox:t&&{x:t.attr("x"),y:t.attr("y"),width:t.attr("width"),height:t.attr("height")},points:{}},a=0;a<r.length;a++){for(var n=r[a],i=n.series.dragDropProps||{},s={},d=0,l=Object.keys(i);d<l.length;d++){var p=l[d],u=i[p],g=n.series[u.axis+"Axis"];s[p]=n[p],n.series.chart.mapView&&n.plotX&&n.plotY?s[p+"Offset"]="x"===p?n.plotX:n.plotY:s[p+"Offset"]=g.toPixels(n[p])-(g.horiz?e.chartX:e.chartY)}s.point=n,o.points[n.id]=s}return o}(e,i,n),point:r,groupedPoints:i,isDragging:!0}}function N(e,r){var t=r.dragDropData;if(t&&t.isDragging&&t.draggedPastSensitivity&&t.point.series){var o=t.point,a=t.newPoints,n=D(a),i=1===n?b(a):null;r.dragHandles&&r.hideDragHandles(),e.preventDefault(),r.cancelClick=!0,o.firePointEvent("drop",{origin:t.origin,chartX:e.chartX,chartY:e.chartY,newPoints:a,numNewPoints:n,newPoint:i&&i.newValues,newPointId:i&&i.point.id},function(){B(r)})}delete r.dragDropData,r.dragGuideBox&&(r.dragGuideBox.destroy(),delete r.dragGuideBox)}function S(){var e,r;!this.hasAddedDragDropEvents&&(e=this,r=e.container,function(e){var r=e.series?e.series.length:0;if(e.hasCartesianSeries&&!e.polar||e.mapView){for(;r--;)if(e.series[r].options.dragDrop&&function(e){for(var r,t=["draggableX","draggableY"],o=e.dragDropProps||{},a=0,n=Object.keys(o);a<n.length;a++)(r=o[n[a]]).optionName&&t.push(r.optionName);for(var i=t.length;i--;)if(e.options.dragDrop[t[i]])return!0}(e.series[r]))return!0}return!1}(e)&&(f(r,["mousedown","touchstart"],function(r){!function(e,r){var t=r.hoverPoint,o=h(t&&t.series.options.dragDrop,t&&t.options.dragDrop),a=o.draggableX||!1,n=o.draggableY||!1;if(r.cancelClick=!1,!(!(a||n)||r.zoomOrPanKeyPressed(e))&&!r.hasDraggedAnnotation){if(r.dragDropData&&r.dragDropData.isDragging)return N(e,r);t&&function(e){var r,t,o,a=e.series,n=a.chart,i=a.options.dragDrop||{},s=e.options&&e.options.dragDrop,d=a.dragDropProps;for(var l in d)"x"===(r=d[l]).axis&&r.move?t=!0:"y"===r.axis&&r.move&&(o=!0);return(i.draggableX&&t||i.draggableY&&o)&&!(s&&!1===s.draggableX&&!1===s.draggableY)&&(!!(a.yAxis&&a.xAxis)||n.mapView)}(t)&&(r.mouseIsDown=!1,O(e,t),t.firePointEvent("dragStart",e))}}(v(r,e),e)}),f(r,["mousemove","touchmove"],function(r){!function(e,r){if(!r.zoomOrPanKeyPressed(e)){var t,o,a,n,i,s,d,l,p,u,g,c,f,v,x=r.dragDropData,m=0;x&&x.isDragging&&x.point.series&&(c=(g=x.point).series.options.dragDrop,e.preventDefault(),x.draggedPastSensitivity||(t=null!=(u=null!=(p=null!=(l=null==(d=g.options.dragDrop)?void 0:d.dragSensitivity)?l:null==c?void 0:c.dragSensitivity)?p:2)?u:2,a=(o=r.dragDropData.origin).chartX,n=o.chartY,x.draggedPastSensitivity=Math.sqrt(((i=e.chartX)-a)*(i-a)+((s=e.chartY)-n)*(s-n))>t),x.draggedPastSensitivity&&(x.newPoints=function(e,r){var t=e.point,o=t.series,a=o.chart,n=h(o.options.dragDrop,t.options.dragDrop),i={},s=e.updateProp,d={},l=t.series.dragDropProps;for(var p in l){var u=l[p];(!s||s===p&&u.resize&&(!u.optionName||!1!==n[u.optionName]))&&(s||u.move&&("x"===u.axis&&n.draggableX||"y"===u.axis&&n.draggableY))&&(a.mapView?i["x"===p?"lon":"lat"]=u:i[p]=u)}for(var g=0,c=s?[t]:e.groupedPoints;g<c.length;g++){var f=c[g];d[f.id]={point:f,newValues:f.getDropValues(e.origin,r,i)}}return d}(x,e),v=1===(m=D(f=x.newPoints))?b(f):null,g.firePointEvent("drag",{origin:x.origin,newPoints:x.newPoints,newPoint:v&&v.newValues,newPointId:v&&v.point.id,numNewPoints:m,chartX:e.chartX,chartY:e.chartY},function(){var r,t,o,a,n,i,s,d,l,p,u,c,f,v,x,m,y,D,b,P,w;a=(o=(t=g.series).chart).dragDropData,i=(n=h(t.options.dragDrop,g.options.dragDrop)).draggableX,s=n.draggableY,d=a.origin,l=a.updateProp,p=e.chartX-d.chartX,u=e.chartY-d.chartY,c=p,o.inverted&&(p=-u,u=-c),null==(r=n.liveRedraw)||r?(B(o,!1),g.showDragHandles()):l?(f=g,v=p,x=u,D=(y=(m=f.series).chart).dragDropData,b=m.dragDropProps[D.updateProp],P=D.newPoints[f.id].newValues,w="function"==typeof b.resizeSide?b.resizeSide(P,f):b.resizeSide,b.beforeResize&&b.beforeResize(y.dragGuideBox,P,f),function(e,r,t){var o;switch(r){case"left":o={x:e.attr("x")+t.x,width:Math.max(1,e.attr("width")-t.x)};break;case"right":o={width:Math.max(1,e.attr("width")+t.x)};break;case"top":o={y:e.attr("y")+t.y,height:Math.max(1,e.attr("height")-t.y)};break;case"bottom":o={height:Math.max(1,e.attr("height")+t.y)}}e.attr(o)}(y.dragGuideBox,"x"===b.axis&&m.xAxis.reversed||"y"===b.axis&&m.yAxis.reversed?H(w):w,{x:"x"===b.axis?v-(D.origin.prevdX||0):0,y:"y"===b.axis?x-(D.origin.prevdY||0):0})):o.dragGuideBox.translate(i?p:0,s?u:0),d.prevdX=p,d.prevdY=u})))}}(v(r,e),e)},{passive:!1}),d(r,"mouseleave",function(r){N(v(r,e),e)}),e.unbindDragDropMouseUp=f(P,["mouseup","touchend"],function(r){N(v(r,e),e)},{passive:!1}),e.hasAddedDragDropEvents=!0,d(e,"destroy",function(){e.unbindDragDropMouseUp&&e.unbindDragDropMouseUp()})))}function B(e,r){var t,o=e.dragDropData.newPoints,a=y(r);e.isDragDropAnimating=!0;for(var n=0,i=Object.keys(o);n<i.length;n++)(t=o[i[n]]).point.update(t.newValues,!1);e.redraw(a),setTimeout(function(){delete e.isDragDropAnimating,e.hoverPoint&&!e.dragHandles&&e.hoverPoint.showDragHandles()},a.duration)}var V=function(e){var r=e.prototype;r.hideDragHandles||(r.hideDragHandles=w,r.setGuideBoxState=z,r.zoomOrPanKeyPressed=A,d(e,"render",S))},j=function(){return(j=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},F={x:{axis:"x",move:!0},y:{axis:"y",move:!0}},M={x:{axis:"x",move:!0},y:{axis:"y",move:!1,resize:!0,beforeResize:function(e,r,t){var o,a=function(){for(var e=arguments,r=e.length,t=0;t<r;t++){var o=e[t];if(null!=o)return o}}(t.yBottom,t.series.translatedThreshold),n=e.attr("y"),i=p(t.stackY)?t.stackY-(t.y||0):t.series.options.threshold||0,s=i+r.y;(t.series.yAxis.reversed?s<i:s>=i)?(o=e.attr("height"),e.attr({height:Math.max(0,Math.round(o+(a?a-n-o:0)))})):e.attr({y:Math.round(n+(a?a-n:0))})},resizeSide:function(e,r){var t=r.series.chart.dragHandles,o=e.y>=(r.series.options.threshold||0)?"top":"bottom",a=H(o);return t&&t[a]&&(t[a].destroy(),delete t[a]),o},handlePositioner:function(e){var r=e.shapeArgs||e.graphic&&e.graphic.getBBox()||{},t=e.series.yAxis.reversed,o=e.series.options.threshold||0,a=e.y||0;return{x:r.x||0,y:!t&&a>=o||t&&a<o?r.y||0:(r.y||0)+(r.height||0)}},handleFormatter:function(e){var r=e.shapeArgs||{},t=r.r||0,o=r.width||0,a=o/2;return[["M",t,0],["L",a-5,0],["A",1,1,0,0,0,a+5,0],["A",1,1,0,0,0,a-5,0],["M",a+5,0],["L",o-t,0]]}}},X={x:M.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(e){return{x:e.shapeArgs.x||0,y:e.lowPlot}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.q1}},q1:{optionName:"draggableQ1",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(e){return{x:e.shapeArgs.x||0,y:e.q1Plot}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.median&&e>=r.low}},median:{axis:"y",move:!0},q3:{optionName:"draggableQ3",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){return{x:e.shapeArgs.x||0,y:e.q3Plot}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.high&&e>=r.median}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){return{x:e.shapeArgs.x||0,y:e.highPlot}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e>=r.q3}}},Y={x:M.x,low:j(j({},X.low),{propValidate:function(e,r){return e<=r.high}}),high:j(j({},X.high),{propValidate:function(e,r){return e>=r.low}})},k={x:M.x,y:M.y,target:{optionName:"draggableTarget",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){var r=e.targetGraphic.getBBox();return{x:e.barX,y:r.y+r.height/2}},handleFormatter:M.y.handleFormatter}},L={x:M.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(e){return{x:e.shapeArgs.x,y:e.plotLow}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.open&&e<=r.close}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){return{x:e.shapeArgs.x,y:e.plotHigh}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e>=r.open&&e>=r.close}},open:{optionName:"draggableOpen",axis:"y",move:!0,resize:!0,resizeSide:function(e){return e.open>=e.close?"top":"bottom"},handlePositioner:function(e){return{x:e.shapeArgs.x,y:e.plotOpen}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.high&&e>=r.low}},close:{optionName:"draggableClose",axis:"y",move:!0,resize:!0,resizeSide:function(e){return e.open>=e.close?"bottom":"top"},handlePositioner:function(e){return{x:e.shapeArgs.x,y:e.plotClose}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.high&&e>=r.low}}},C={x:M.x,y:h(M.y,{handleFormatter:function(e){var r,t;return e.isSum||e.isIntermediateSum?null:(null==(t=null==(r=null==M?void 0:M.y)?void 0:r.handleFormatter)?void 0:t.call(r,e))||null}})},E={x:{axis:"x",move:!0},low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(e){var r=e.shapeArgs||e.graphic.getBBox();return{x:r.x||0,y:(r.y||0)+(r.height||0)}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e<=r.high}},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){var r=e.shapeArgs||e.graphic.getBBox();return{x:r.x||0,y:r.y||0}},handleFormatter:M.y.handleFormatter,propValidate:function(e,r){return e>=r.low}}},G={x:E.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:function(e){var r=e.graphics&&e.graphics[0]&&e.graphics[0].getBBox();return r?{x:r.x+r.width/2,y:r.y+r.height/2}:{x:-999,y:-999}},handleFormatter:T,propValidate:E.low.propValidate},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:function(e){var r=e.graphics&&e.graphics[1]&&e.graphics[1].getBBox();return r?{x:r.x+r.width/2,y:r.y+r.height/2}:{x:-999,y:-999}},handleFormatter:T,propValidate:E.high.propValidate}},I={y:{axis:"y",move:!0},x:{optionName:"draggableX1",axis:"x",move:!0,resize:!0,resizeSide:"left",handlePositioner:function(e){return _(e,"x")},handleFormatter:K,propValidate:function(e,r){return e<=r.x2}},x2:{optionName:"draggableX2",axis:"x",move:!0,resize:!0,resizeSide:"right",handlePositioner:function(e){return _(e,"x2")},handleFormatter:K,propValidate:function(e,r){return e>=r.x}}};function T(e){var r=e.graphic?e.graphic.getBBox().width/2+1:4;return[["M",0-r,0],["a",r,r,0,1,0,2*r,0],["a",r,r,0,1,0,-2*r,0]]}function K(e){var r=e.shapeArgs||e.graphic.getBBox(),t=r.r||0,o=r.height-t,a=r.height/2;return[["M",0,t],["L",0,a-5],["A",1,1,0,0,0,0,a+5],["A",1,1,0,0,0,0,a-5],["M",0,a+5],["L",0,o]]}function _(e,r){var t=e.series,o=t.xAxis,a=t.yAxis,n=t.chart.inverted,i=t.columnMetrics?t.columnMetrics.offset:-e.shapeArgs.height/2,s=o.toPixels(e[r],!0),d=a.toPixels(e.y,!0);return n&&(s=o.len-s,d=a.len-d),{x:Math.round(s),y:Math.round(d+=i)}}var q={arearange:G,boxplot:X,bullet:k,column:M,columnrange:E,errorbar:Y,flags:F,gantt:{y:I.y,start:h(I.x,{optionName:"draggableStart",validateIndividualDrag:function(e){return!e.milestone}}),end:h(I.x2,{optionName:"draggableEnd",validateIndividualDrag:function(e){return!e.milestone}})},line:F,ohlc:L,waterfall:C,xrange:I};function U(e){var r=e.series&&e.series.chart,t=r&&r.dragDropData;r&&r.dragHandles&&!(t&&(t.isDragging&&t.draggedPastSensitivity||t.isHoveringHandle===e.id))&&r.hideDragHandles()}function R(){var e=this;setTimeout(function(){e.series&&U(e)},10)}function W(){var e=this;setTimeout(function(){var r,t,o,a;return o=(t=(r=e.series)&&r.chart)&&t.dragDropData,a=t&&t.is3d&&t.is3d(),void(t&&!(o&&o.isDragging&&o.draggedPastSensitivity)&&!t.isDragDropAnimating&&r.options.dragDrop&&!a&&(t.dragHandles&&t.hideDragHandles(),e.showDragHandles()))},12)}function Q(){var e=this.series.chart,r=e.dragHandles;r&&r.point===this.id&&e.hideDragHandles()}function J(e,r,t){for(var o=this.series,a=o.chart,n=a.mapView,i=h(o.options.dragDrop,this.options.dragDrop),s={},d=e.points[this.id],l=1===Object.keys(t).length,u=0,g=Object.keys(t);u<g.length;u++){var c=g[u],f=t[c],v=d.point[c],x=o[f.axis+"Axis"],m=n?function(e,r,t){var o,s,d,l,p;if(n){var u,g,h,c=r.toUpperCase(),f=null!=(o=i["dragPrecision".concat(c)])?o:0,v=n.pixelsToLonLat({x:0,y:0}),x=n.pixelsToLonLat({x:a.plotBox.width,y:a.plotBox.height}),m=null!=(d=null!=(s=i["dragMin".concat(c)])?s:null==v?void 0:v[t])?d:-1/0,y=null!=(p=null!=(l=i["dragMax".concat(c)])?l:null==x?void 0:x[t])?p:1/0,D=e[t];if("Orthographic"===n.projection.options.name)return D;if("lat"===t){(isNaN(m)||m>n.projection.maxLatitude)&&(m=n.projection.maxLatitude),(isNaN(y)||y<-1*n.projection.maxLatitude)&&(y=-1*n.projection.maxLatitude);var b=y;y=m,m=b}if(!n.projection.hasCoordinates){var P=n.pixelsToLonLat({x:e.chartX-a.plotLeft,y:a.plotHeight-e.chartY+a.plotTop});P&&(D=P[t])}return f&&(D=Math.round(D/f)*f),u=D,g=m,h=y,u>g?u<h?u:h:g}}(r,f.axis,c):function(e,r){var t,a,n,s,d=r.toUpperCase(),l=o.chart.time,p=+!!o[""+r+"Axis"].categories,u=null!=(a=i["dragPrecision".concat(d)])?a:p,g=null!=(n=l.parse(i["dragMin".concat(d)]))?n:-1/0,h=null!=(s=l.parse(i["dragMax".concat(d)]))?s:1/0,c=e;return u&&(c=Math.round(c/u)*u),(t=c)>g?t<h?t:h:g}(x.toValue((x.horiz?r.chartX:r.chartY)+d[c+"Offset"]),f.axis);p(m)&&!(l&&f.propValidate&&!f.propValidate(m,this))&&void 0!==v&&(s[c]=m)}return s}function Z(){for(var e=this,r=e.series,t=r.chart,o=t.inverted,a=t.renderer,n=h(r.options.dragDrop,e.options.dragDrop),i=r.dragDropProps||{},s=t.dragHandles,l=function(l){var p=i[l],u=h(x,p.handleOptions,n.dragHandle),g={class:u.className,"stroke-width":u.lineWidth,fill:u.color,stroke:u.lineColor},c=u.pathFormatter||p.handleFormatter,m=p.handlePositioner,y=!p.validateIndividualDrag||p.validateIndividualDrag(e),D=void 0,b=void 0,P=void 0;if(p.resize&&y&&p.resizeSide&&c&&(n["draggable"+p.axis.toUpperCase()]||n[p.optionName])&&!1!==n[p.optionName]){s?s.point=e.id:s=t.dragHandles={group:a.g("drag-drop-handles").add(r.markerGroup||r.group),point:e.id},D=m(e),g.d=P=c(e);var w=e.series.xAxis.categories?-.5:0;if(!P||D.x<w||D.y<0)return"continue";g.cursor=u.cursor||("x"===p.axis!=!!o?"ew-resize":"ns-resize"),(b=s[p.optionName])||(b=s[p.optionName]=a.path().add(s.group)),g.translateX=o?r.yAxis.len-D.y:D.x,g.translateY=o?r.xAxis.len-D.x:D.y,o&&(g.rotation=-90),b.attr(g),f(b.element,["touchstart","mousedown"],function(r){var o,a;o=v(r,t),(a=e.series.chart).zoomOrPanKeyPressed(o)||(a.mouseIsDown=!1,O(o,e),a.dragDropData.updateProp=o.updateProp=l,e.firePointEvent("dragStart",o),o.stopPropagation(),o.preventDefault())},{passive:!1}),d(s.group.element,"mouseover",function(){t.dragDropData=t.dragDropData||{},t.dragDropData.isHoveringHandle=e.id}),f(s.group.element,["touchend","mouseout"],function(){var r;(r=e.series.chart).dragDropData&&e.id===r.dragDropData.isHoveringHandle&&delete r.dragDropData.isHoveringHandle,r.hoverPoint||U(e)})}},p=0,u=Object.keys(i);p<u.length;p++)l(u[p])}function $(e){for(var r,t=this.chart,o=1/0,a=-1/0,n=1/0,i=-1/0,s=0;s<e.length;s++){var d=e[s],l=d.graphic&&d.graphic.getBBox()||d.shapeArgs;if(l){var u=void 0,g=d.x2;p(g)&&(u=d.series.xAxis.translate(g,!1,!1,!1,!0));var h=!(l.width||l.height||l.x||l.y);r=!0,o=Math.min(d.plotX||0,u||0,h?1/0:l.x||0,o),a=Math.max(d.plotX||0,u||0,(l.x||0)+(l.width||0),a),n=Math.min(d.plotY||0,h?1/0:l.y||0,n),i=Math.max((l.y||0)+(l.height||0),i)}}return r?t.renderer.rect(o,n,a-o,i-n):t.renderer.g()}var ee=i();({compose:function(e,r){V(e);var t=r.prototype;if(!t.dragDropProps){var o=r.prototype.pointClass,a=r.types,n=o.prototype;n.getDropValues=J,n.showDragHandles=Z,d(o,"mouseOut",R),d(o,"mouseOver",W),d(o,"remove",Q),t.dragDropProps=q.line,t.getGuideBox=$;for(var i=0,s=["arearange","boxplot","bullet","column","columnrange","errorbar","flags","gantt","ohlc","waterfall","xrange"];i<s.length;i++){var l=s[i];a[l]&&(a[l].prototype.dragDropProps=q[l])}for(var p=0,u=["bellcurve","gauge","histogram","map","mapline","pareto","pie","sankey","sma","sunburst","treemap","vector","windbarb","wordcloud"];p<u.length;p++){var l=u[p];a[l]&&(a[l].prototype.dragDropProps=null)}}}}).compose(ee.Chart,ee.Series);var er=i();return a.default}()});