/* Highcharts JS v7.0.3 (2019-02-06) (c) 2016-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(z){"object"===typeof module&&module.exports?(z["default"]=z,module.exports=z):"function"===typeof define&&define.amd?define(function(){return z}):z("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(z){var N=function(){return function(b){var r=this,n=r.graphic,f=b.animatableAttribs,p=b.onComplete,D=b.css,C=b.renderer;r.shouldDraw()?(n||(r.graphic=n=C[b.shapeType](b.shapeArgs).add(b.group)),n.css(D).attr(b.attribs).animate(f,b.isNew?!1:void 0,p)):n&&n.animate(f,void 0,function(){r.graphic= n=n.destroy();"function"===typeof p&&p()});n&&n.addClass(r.getClassName(),!0)}}(),K=function(b){var r=b.extend,n=b.isArray,f=b.isObject,p=b.isNumber,D=b.merge,C=b.pick;return{getColor:function(m,l){var A=l.index,k=l.mapOptionsToLevel,f=l.parentColor,n=l.parentColorIndex,E=l.series,F=l.colors,r=l.siblings,q=E.points,v=E.chart.options.chart,y,p,e,g;if(m){q=q[m.i];m=k[m.level]||{};if(k=q&&m.colorByPoint)p=q.index%(F?F.length:v.colorCount),y=F&&F[p];if(!E.chart.styledMode){F=q&&q.options.color;v=m&&m.color; if(e=f)e=(e=m&&m.colorVariation)&&"brightness"===e.key?b.color(f).brighten(A/r*e.to).get():f;e=C(F,v,y,e,E.color)}g=C(q&&q.options.colorIndex,m&&m.colorIndex,p,n,l.colorIndex)}return{color:e,colorIndex:g}},getLevelOptions:function(b){var l=null,A,k,I,m;if(f(b))for(l={},I=p(b.from)?b.from:1,m=b.levels,k={},A=f(b.defaults)?b.defaults:{},n(m)&&(k=m.reduce(function(b,l){var k,q;f(l)&&p(l.level)&&(q=D({},l),k="boolean"===typeof q.levelIsConstant?q.levelIsConstant:A.levelIsConstant,delete q.levelIsConstant, delete q.level,l=l.level+(k?0:I-1),f(b[l])?r(b[l],q):b[l]=q);return b},{})),m=p(b.to)?b.to:1,b=0;b<=m;b++)l[b]=D({},A,f(k[b])?k[b]:{});return l},setTreeValues:function l(b,k){var f=k.before,n=k.idRoot,p=k.mapIdToNode[n],A=k.points[b.i],D=A&&A.options||{},q=0,v=[];r(b,{levelDynamic:b.level-(("boolean"===typeof k.levelIsConstant?k.levelIsConstant:1)?0:p.level),name:C(A&&A.name,""),visible:n===b.id||("boolean"===typeof k.visible?k.visible:!1)});"function"===typeof f&&(b=f(b,k));b.children.forEach(function(f, n){var e=r({},k);r(e,{index:n,siblings:b.children.length,visible:b.visible});f=l(f,e);v.push(f);f.visible&&(q+=f.val)});b.visible=0k.lP.lR&&e.algorithmCalcPoints(a,!1,k,b,f);w===l&&e.algorithmCalcPoints(a,!0,k,b,f);w+=1});return b},algorithmFill:function(a,c,d){var b=[],e,g=c.direction,f=c.x,w=c.y,l=c.width,k=c.height,q,n,u,m;d.forEach(function(d){e=d.val/c.val*c.height*c.width;q=f;n=w;0===g?(m=k,u=e/m,l-=u,f+=u):(u=l,m=e/u,k-=m,w+=m);b.push({x:q,y:n,width:u,height:m});a&&(g=1-g)});return b},strip:function(a, c){return this.algorithmLowAspectRatio(!1,a,c)},squarified:function(a,c){return this.algorithmLowAspectRatio(!0,a,c)},sliceAndDice:function(a,c){return this.algorithmFill(!0,a,c)},stripes:function(a,c){return this.algorithmFill(!1,a,c)},translate:function(){var a=this,c=a.options,d=u(a),b,e;y.prototype.translate.call(a);e=a.tree=a.getTree();b=a.nodeMap[d];a.renderTraverseUpButton(d);a.mapOptionsToLevel=z({from:b.level+1,levels:c.levels,to:e.height,defaults:{levelIsConstant:a.options.levelIsConstant, colorByPoint:c.colorByPoint}});""===d||b&&b.children.length||(a.setRootNode("",!1),d=a.rootNode,b=a.nodeMap[d]);w(a.nodeMap[a.rootNode],function(c){var d=!1,b=c.parent;c.visible=!0;if(b||""===b)d=a.nodeMap[b];return d});w(a.nodeMap[a.rootNode].children,function(a){var c=!1;a.forEach(function(a){a.visible=!0;a.children.length&&(c=(c||[]).concat(a.children))});return c});a.setTreeValues(e);a.axisRatio=a.xAxis.len/a.yAxis.len;a.nodeMap[""].pointValues=d={x:0,y:0,width:100,height:100};a.nodeMap[""].values= d=D(d,{width:d.width*a.axisRatio,direction:"vertical"===c.layoutStartingDirection?0:1,val:e.val});a.calculateChildrenAreas(e,d);a.colorAxis?a.translateColors():c.colorByPoint||a.setColorRecursive(a.tree);c.allowTraversingTree&&(c=b.pointValues,a.xAxis.setExtremes(c.x,c.x+c.width,!1),a.yAxis.setExtremes(c.y,c.y+c.height,!1),a.xAxis.setScale(),a.yAxis.setScale());a.setPointValues()},drawDataLabels:function(){var a=this,c=a.mapOptionsToLevel,d,b;a.points.filter(function(a){return a.node.visible}).forEach(function(e){b= c[e.node.level];d={style:{}};e.node.isLeaf||(d.enabled=!1);b&&b.dataLabels&&(d=D(d,b.dataLabels),a._hasPointLabels=!0);e.shapeArgs&&(d.style.width=e.shapeArgs.width,e.dataLabel&&e.dataLabel.css({width:e.shapeArgs.width+"px"}));e.dlOptions=D(d,e.options.dataLabels)});y.prototype.drawDataLabels.call(this)},alignDataLabel:function(a,c,d){var e=d.style;!b.defined(e.textOverflow)&&c.text&&c.getBBox().width>c.text.textWidth&&c.css({textOverflow:"ellipsis",width:e.width+="px"});f.column.prototype.alignDataLabel.apply(this, arguments);a.dataLabel&&a.dataLabel.attr({zIndex:(a.node.zIndex||0)+1})},pointAttribs:function(a,c){var d=L(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},b=a&&d[a.node.level]||{},d=this.options,h=c&&d.states[c]||{},g=a&&a.getClassName()||"";a={stroke:a&&a.borderColor||b.borderColor||h.borderColor||d.borderColor,"stroke-width":v(a&&a.borderWidth,b.borderWidth,h.borderWidth,d.borderWidth),dashstyle:a&&a.borderDashStyle||b.borderDashStyle||h.borderDashStyle||d.borderDashStyle,fill:a&&a.color||this.color}; -1!==g.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==g.indexOf("highcharts-internal-node-interactive")?(c=v(h.opacity,d.opacity),a.fill=e(a.fill).setOpacity(c).get(),a.cursor="pointer"):-1!==g.indexOf("highcharts-internal-node")?a.fill="none":c&&(a.fill=e(a.fill).brighten(h.brightness).get());return a},drawPoints:function(){var a=this,c=a.points.filter(function(a){return a.node.visible});c.forEach(function(c){var d="level-group-"+c.node.levelDynamic;a[d]||(a[d]=a.chart.renderer.g(d).attr({zIndex:1E3- c.node.levelDynamic}).add(a.group));c.group=a[d]});f.column.prototype.drawPoints.call(this);this.colorAttribs&&a.chart.styledMode&&this.points.forEach(function(a){a.graphic&&a.graphic.css(this.colorAttribs(a))},this);a.options.allowTraversingTree&&c.forEach(function(c){c.graphic&&(c.drillId=a.options.interactByLeaf?a.drillToByLeaf(c):a.drillToByGroup(c))})},onClickDrillToNode:function(a){var c=(a=a.point)&&a.drillId;q(c)&&(a.setState(""),this.setRootNode(c,!0,{trigger:"click"}))},drillToByGroup:function(a){var c= !1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(c=a.id);return c},drillToByLeaf:function(a){var c=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!c;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(c=a.id);return c},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&q(a.parent)&&this.setRootNode(a.parent,!0,{trigger:"traverseUpButton"})},drillToNode:function(a,c){m("WARNING: treemap.drillToNode has been renamed to treemap.setRootNode, and will be removed in the next major version."); this.setRootNode(a,c)},setRootNode:function(a,c,d){a=C({newRootId:a,previousRootId:this.rootNode,redraw:v(c,!0),series:this},d);k(this,"setRootNode",a,function(a){var c=a.series;c.idPreviousRoot=a.previousRootId;c.rootNode=a.newRootId;c.isDirty=!0;a.redraw&&c.chart.redraw()})},renderTraverseUpButton:function(a){var c=this,d=c.options.traverseUpButton,b=v(d.text,c.nodeMap[a].name,"\x3c Back"),e;""===a?c.drillUpButton&&(c.drillUpButton=c.drillUpButton.destroy()):this.drillUpButton?(this.drillUpButton.placed= !1,this.drillUpButton.attr({text:b}).align()):(e=(a=d.theme)&&a.states,this.drillUpButton=this.chart.renderer.button(b,null,null,function(){c.drillUp()},a,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,d.relativeTo||"plotBox"))},buildKDTree:A,drawLegendSymbol:b.LegendSymbolMixin.drawRectangle,getExtremes:function(){y.prototype.getExtremes.call(this,this.colorValueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax; y.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};y.prototype.bindAxes.call(this);b.extend(this.yAxis.options,a);b.extend(this.xAxis.options,a)},utils:{recursive:w}},{getClassName:function(){var a=b.Point.prototype.getClassName.call(this),c=this.series,d=c.options;this.node.level<=c.nodeMap[c.rootNode].level?a+=" highcharts-above-level": this.node.isLeaf||v(d.interactByLeaf,!d.allowTraversingTree)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return this.id||F(this.value)},setState:function(a){b.Point.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:f.pie.prototype.pointClass.prototype.setVisible})})(z,K);(function(b,r,n){var f=b.CenteredSeriesMixin,p=b.Series,D=b.extend,C=f.getCenter,m=n.getColor,l=n.getLevelOptions, A=f.getStartAndEndRadians,k=b.isNumber,z=b.isObject,K=b.isString,E=b.merge,F=180/Math.PI,f=b.seriesType,L=n.setTreeValues,q=n.updateRootId,v=function(b,g){var e=[];if(k(b)&&k(g)&&b<=g)for(;b<=g;b++)e.push(b);return e},y=function(b,g){var e;g=z(g)?g:{};var f=0,a,c,d,l;z(b)&&(e=E({},b),b=k(g.from)?g.from:0,l=k(g.to)?g.to:0,c=v(b,l),b=Object.keys(e).filter(function(a){return-1===c.indexOf(+a)}),a=d=k(g.diffRadius)?g.diffRadius:0,c.forEach(function(c){c=e[c];var b=c.levelSize.unit,g=c.levelSize.value; "weight"===b?f+=g:"percentage"===b?(c.levelSize={unit:"pixels",value:g/100*a},d-=c.levelSize.value):"pixels"===b&&(d-=g)}),c.forEach(function(a){var c=e[a];"weight"===c.levelSize.unit&&(c=c.levelSize.value,e[a].levelSize={unit:"pixels",value:c/f*d})}),b.forEach(function(a){e[a].levelSize={value:0,unit:"pixels"}}));return e},M=function(b,g){var e=g.mapIdToNode[b.parent],f=g.series,a=f.chart,c=f.points[b.i],e=m(b,{colors:a&&a.options&&a.options.colors,colorIndex:f.colorIndex,index:g.index,mapOptionsToLevel:g.mapOptionsToLevel, parentColor:e&&e.color,parentColorIndex:e&&e.colorIndex,series:g.series,siblings:g.siblings});b.color=e.color;b.colorIndex=e.colorIndex;c&&(c.color=b.color,c.colorIndex=b.colorIndex,b.sliced=b.id!==g.idRoot?c.sliced:!1);return b};f("sunburst","treemap",{center:["50%","50%"],colorByPoint:!1,dataLabels:{allowOverlap:!0,defer:!0,style:{textOverflow:"ellipsis"},rotationMode:"auto"},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10},{drawDataLabels:b.noop,drawPoints:function(){var b= this,g=b.mapOptionsToLevel,f=b.shapeRoot,l=b.group,a=b.hasRendered,c=b.rootNode,d=b.idPreviousRoot,x=b.nodeMap,h=x[d],q=h&&h.shapeArgs,h=b.points,n=b.startAndEndRadians,t=b.chart,m=t&&t.options&&t.options.chart||{},v="boolean"===typeof m.animation?m.animation:!0,r=b.center[3]/2,A=b.chart.renderer,C,y=!1,I=!1;if(m=!!(v&&a&&c!==d&&b.dataLabelsGroup))b.dataLabelsGroup.attr({opacity:0}),C=function(){y=!0;b.dataLabelsGroup&&b.dataLabelsGroup.animate({opacity:1,visibility:"visible"})};h.forEach(function(e){var h, w,m=e.node,u=g[m.level];h=e.shapeExisting||{};var p=m.shapeArgs||{},G,y=!(!m.visible||!m.shapeArgs);if(a&&v){var J={};w={end:p.end,start:p.start,innerR:p.innerR,r:p.r,x:p.x,y:p.y};y?!e.graphic&&q&&(J=c===e.id?{start:n.start,end:n.end}:q.end<=p.start?{start:n.end,end:n.end}:{start:n.start,end:n.start},J.innerR=J.r=r):e.graphic&&(d===e.id?w={innerR:r,r:r}:f&&(w=f.end<=h.start?{innerR:r,r:r,start:n.end,end:n.end}:{innerR:r,r:r,start:n.start,end:n.start}));h=J}else w=p,h={};var J=[p.plotX,p.plotY],B; e.node.isLeaf||(c===e.id?(B=x[c],B=B.parent):B=e.id);D(e,{shapeExisting:p,tooltipPos:J,drillId:B,name:""+(e.name||e.id||e.index),plotX:p.plotX,plotY:p.plotY,value:m.val,isNull:!y});B=e.options;m=z(p)?p:{};B=z(B)?B.dataLabels:{};var u=z(u)?u.dataLabels:{},u=E({style:{}},u,B),H;B=u.rotationMode;k(u.rotation)||("auto"===B&&(1>e.innerArcLength&&e.outerArcLength>m.radius?H=0:B=11.5*m.radius?"parallel":"perpendicular"),"auto"!==B&&(H=m.end-(m.end-m.start)/2),u.style.width= "parallel"===B?Math.min(2.5*m.radius,(e.outerArcLength+e.innerArcLength)/2):m.radius,"perpendicular"===B&&e.series.chart.renderer.fontMetrics(u.style.fontSize).h>e.outerArcLength&&(u.style.width=1),u.style.width=Math.max(u.style.width-2*(u.padding||0),1),H=H*F%180,"parallel"===B&&(H-=90),90H&&(H+=180),u.rotation=H);0===u.rotation&&(u.rotation=.001);e.dlOptions=u;!I&&y&&(I=!0,G=C);e.draw({animatableAttribs:w,attribs:D(h,!t.styledMode&&b.pointAttribs(e,e.selected&&"select")),onComplete:G, group:l,renderer:A,shapeType:"arc",shapeArgs:p})});m&&I?(b.hasRendered=!1,b.options.dataLabels.defer=!0,p.prototype.drawDataLabels.call(b),b.hasRendered=!0,y&&C()):p.prototype.drawDataLabels.call(b)},pointAttribs:b.seriesTypes.column.prototype.pointAttribs,layoutAlgorithm:function(b,g,f){var e=b.start,a=b.end-e,c=b.val,d=b.x,l=b.y,h=f&&z(f.levelSize)&&k(f.levelSize.value)?f.levelSize.value:0,m=b.r,n=m+h,p=f&&k(f.slicedOffset)?f.slicedOffset:0;return(g||[]).reduce(function(b,g){var f=1/c*g.val*a,k= e+f/2,q=d+Math.cos(k)*p,k=l+Math.sin(k)*p;g={x:g.sliced?q:d,y:g.sliced?k:l,innerR:m,r:n,radius:h,start:e,end:e+f};b.push(g);e=g.end;return b},[])},setShapeArgs:function(b,g,f){var e=[],a=f[b.level+1];b=b.children.filter(function(a){return a.visible});e=this.layoutAlgorithm(g,b,a);b.forEach(function(a,b){b=e[b];var c=b.start+(b.end-b.start)/2,d=b.innerR+(b.r-b.innerR)/2,g=b.end-b.start,d=0===b.innerR&&6.28a.val?a.childrenTotal: a.val:a.childrenTotal;this.points[a.i]&&(this.points[a.i].innerArcLength=g*b.innerR,this.points[a.i].outerArcLength=g*b.r);a.shapeArgs=E(b,{plotX:d.x,plotY:d.y+4*Math.abs(Math.cos(c))});a.values=E(b,{val:l});a.children.length&&this.setShapeArgs(a,a.values,f)},this)},translate:function(){var b=this.options,g=this.center=C.call(this),f=this.startAndEndRadians=A(b.startAngle,b.endAngle),m=g[3]/2,a=g[2]/2-m,c=q(this),d=this.nodeMap,k,h=d&&d[c],n,r;this.shapeRoot=h&&h.shapeArgs;p.prototype.translate.call(this); r=this.tree=this.getTree();this.renderTraverseUpButton(c);d=this.nodeMap;h=d[c];k=K(h.parent)?h.parent:"";n=d[k];k=l({from:0