/* Highcharts JS v7.2.1 (2019-10-31) Module for adding patterns and images as point fills. (c) 2010-2019 Highsoft AS Author: Torstein Hnsi, ystein Moseng License: www.highcharts.com/license */ (function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/pattern-fill",["highcharts"],function(f){c(f);c.Highcharts=f;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function f(e,c,f,n){e.hasOwnProperty(c)||(e[c]=n.apply(null,f))}c=c?c._modules:{};f(c,"modules/pattern-fill.src.js",[c["parts/Globals.js"],c["parts/Utilities.js"]],function(e,c){function f(a,b){a=JSON.stringify(a); var q=a.length||0,d=0,c=0;if(b){b=Math.max(Math.floor(q/500),1);for(var e=0;eb.aspectRatio?b.aspectWidth=b.height*a.aspectRatio:b.aspectHeight=b.width/a.aspectRatio);a._width=a.width||Math.ceil(b.aspectWidth||b.width);a._height=a.height||Math.ceil(b.aspectHeight||b.height)}a.width||(a._x=a.x||0,a._x+=b.x-Math.round(b.aspectWidth?Math.abs(b.aspectWidth-b.width)/2:0));a.height|| (a._y=a.y||0,a._y+=b.y-Math.round(b.aspectHeight?Math.abs(b.aspectHeight-b.height)/2:0))}};e.SVGRenderer.prototype.addPattern=function(a,b){b=p(b,!0);var c=e.animObject(b),d=a.width||a._width||32,g=a.height||a._height||32,f=a.color||"#343434",k=a.id,n=this,l=function(a){n.rect(0,0,d,g).attr({fill:a}).add(h)};k||(this.idCounter=this.idCounter||0,k="highcharts-pattern-"+(this.chartIndex||0)+"-"+this.idCounter,++this.idCounter);this.defIds=this.defIds||[];if(!(-1