/* Highcharts JS v7.0.3 (2019-02-06) (c) 2017-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(k){"object"===typeof module&&module.exports?(k["default"]=k,module.exports=k):"function"===typeof define&&define.amd?define(function(){return k}):k("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(k){var B=function(){return function(c){var g=this,h=g.graphic,q=c.animatableAttribs,p=c.onComplete,k=c.css,v=c.renderer;g.shouldDraw()?(h||(g.graphic=h=v[c.shapeType](c.shapeArgs).add(c.group)),h.css(k).attr(c.attribs).animate(q,c.isNew?!1:void 0,p)):h&&h.animate(q,void 0,function(){g.graphic= h=h.destroy();"function"===typeof p&&p()});h&&h.addClass(g.getClassName(),!0)}}(),z=function(){return{getAngleBetweenPoints:function(c,g){return Math.atan2(g.x-c.x,g.y-c.y)},getCenterOfPoints:function(c){var g=c.reduce(function(c,g){c.x+=g.x;c.y+=g.y;return c},{x:0,y:0});return{x:g.x/c.length,y:g.y/c.length}},getDistanceBetweenPoints:function(c,g){return Math.sqrt(Math.pow(g.x-c.x,2)+Math.pow(g.y-c.y,2))}}}(),D=function(c){var g=c.getAngleBetweenPoints,h=c.getCenterOfPoints,q=c.getDistanceBetweenPoints, p=function(f,a){a=Math.pow(10,a);return Math.round(f*a)/a},k=function(f,a){return f*f*Math.acos(1-a/f)-(f-a)*Math.sqrt(a*(2*f-a))},v=function(f,a){var m=q(f,a),n=f.r,c=a.r,g=[];if(mMath.abs(n-c)){var n=n*n,r=(n-c*c+m*m)/(2*m),c=Math.sqrt(n-r*r),n=f.x,g=a.x;f=f.y;var h=a.y;a=n+r*(g-n)/m;r=f+r*(h-f)/m;f=c/m*-(h-f);m=c/m*-(g-n);g=[{x:p(a+f,14),y:p(r-m,14)},{x:p(a-f,14),y:p(r+m,14)}]}return g},A=function(f){return f.reduce(function(a,f,c,g){g=g.slice(c+1).reduce(function(a,g,m){var n=[c,m+c+1]; return a.concat(v(f,g).map(function(a){a.indexes=n;return a}))},[]);return a.concat(g)},[])},x=function(c,a){return q(c,a)<=a.r+1e-10},w=function(c,a){return!a.some(function(a){return!x(c,a)})};return{getAreaOfIntersectionBetweenCircles:function(c){var a=A(c).filter(function(a){return w(a,c)}),f;if(12*k&&(h=2*k);if(!a||a.width>h)a={r:k,largeArc:h>k?1:0,width:h,x:f.x,y:f.y};return a},null);if(k){var p=k.r;a.arcs.push(["A",p,p,0,k.largeArc,1,k.x,k.y]);a.startPoint=f}return a},{startPoint:k,arcs:[]}).arcs;0!==a.length&&1!==a.length&&(a.unshift(["M",k.x,k.y]),f={center:n,d:a})}return f},getCircleCircleIntersection:v,getCirclesIntersectionPoints:A, getCircularSegmentArea:k,getOverlapBetweenCircles:function(c,a,g){var f=0;if(g=a)throw Error("a must be smaller than b.");if(0t;)E=(a-e)/2,k=e+E,g=b(k),0g;g++){a.sort(l);var u=a[a.length-1],h=k(a),m=f(h,u,2,-1);m.fx=a[a.length-2].fx?m.fx>u.fx?(h=f(h,u,.5,.5),a=h.fxb)a.left=b;if(!m(a.right)||a.right< c)a.right=c;if(!m(a.top)||a.top>d)a.top=d;if(!m(a.bottom)||a.bottom