-
Notifications
You must be signed in to change notification settings - Fork 46
/
fusioncharts.maps.js
2 lines (2 loc) · 69.4 KB
/
fusioncharts.maps.js
1
2
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[6],{1646:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=void 0;var a=r(o(288)),n=r(o(626)),l=o(290),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var o=f(t);if(o&&o.has(e))return o.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r["default"]=e,o&&o.set(e,r);return r}(o(532)),c=r(o(276)),s=o(281),d=o(274),u=r(o(1647)),h=r(o(521)),p=r(o(1444)),g=r(o(1448));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(f=function(e){return e?o:t})(e)}var m=(0,d.extend2)({foregroundcolor:"333333",foregroundalpha:"100",foregrounddarkcolor:"111111",foregrounddarkalpha:"100",foregroundlightcolor:"666666",foregroundlightalpha:"100",backgroundlightcolor:"FFFFFF",backgroundlightalpha:"100",backgroundlightangle:90,backgroundlightratio:"",backgroundcolor:"FFFFCC",backgroundalpha:"100",backgrounddarkcolor:"ffcc66",backgrounddarkalpha:"100",backgrounddarkangle:270,backgrounddarkratio:"",shadow:1},i),b="0,100",k={basefontcolor:"foregroundcolor",bordercolor:"foregrounddarkcolor",borderalpha:"foregrounddarkalpha",bgcolor:"backgroundlightcolor",bgalpha:"backgroundlightalpha",bgangle:"backgroundlightangle",bgratio:"backgroundlightratio",canvasbordercolor:"foregrounddarkcolor",canvasborderalpha:"foregrounddarkalpha",canvasbgcolor:"backgroundlightcolor",canvasbgalpha:"backgroundlightalpha",canvasbgangle:"backgroundlightangle",canvasbgratio:"backgroundlightratio",tooltipbordercolor:"foregrounddarkcolor",tooltipborderalpha:"foregrounddarkalpha",tooltipbgcolor:"backgroundlightcolor",tooltipbgalpha:"backgroundlightalpha",tooltipfontcolor:"foregroundcolor",legendbordercolor:"foregrounddarkcolor",legendborderalpha:"foregrounddarkalpha",markerbordercolor:"foregroundlightcolor",markerborderalpha:"foregroundlightalpha",markerfillcolor:"backgrounddarkcolor",markerfillalpha:"backgrounddarkalpha",markerfillangle:"backgrounddarkangle",markerfillratio:"backgrounddarkratio",plotfillcolor:"backgroundcolor",plotfillalpha:"backgroundalpha",plotfillangle:"backgroundangle",plotfillratio:"backgroundratio",plothoverfillcolor:"backgrounddarkcolor",plothoverfillalpha:"backgrounddarkalpha",plothoverfillangle:"backgrounddarkangle",plothoverfillratio:"backgrounddarkratio",plotbordercolor:"foregroundcolor",plotborderalpha:"foregroundalpha",shadow:"shadow"},v={getMapName:function(){return this.jsVars.instanceAPI.getName().toLowerCase()},getEntityList:function(){var e,t,o,r,a,n=this.jsVars.instanceAPI.getDatasets()||[],l=n.length,i=[];for(e=0;e<l;e++)if("entities"===(o=n[e]||[]).getName()){t=o;break}for(e in l=(r=t.components.data).length,r)r.hasOwnProperty(e)&&(a=(r[e]||{}).config||{},i.push({id:a.id,originalId:a.originalId||a.id,label:a.label,shortlabel:a.shortLabel,value:a.value,formattedValue:a.formattedValue,toolText:a.toolText}));return i},getMapAttribute:function(){return(0,s.raiseWarning)(this,"12061210581","run","JavaScriptRenderer~getMapAttribute()",'Use of deprecated "getMapAttribute()". Replace with "getChartAttribute()".'),this.getChartAttribute.apply(this,arguments)},exportMap:function(){var e=this;return(0,s.raiseWarning)(this,"12061210581","run","JavaScriptRenderer~exportMap()",'Use of deprecated "exportMap()". Replace with "exportChart()".'),e.exportChart&&e.exportChart.apply(e,arguments)},addMarker:function(e){var t,o,r,a=this.jsVars.instanceAPI.getDatasets()||[],n=a.length;for(t=0;t<n;t++)if("markers"===(o=a[t]||[]).getName()){r=o;break}r&&!r.addMarkerItem(e)&&(0,s.raiseWarning)(this,"1309264086","run","MapsRenderer~addMarker()","Failed to add marker. Check the options and try again.")},updateMarker:function(e,t){var o,r,a,n,l=this.jsVars.instanceAPI.getDatasets()||[],i=l.length;for(r=0;r<i;r++)if("markers"===(a=l[r]||[]).getName()){n=a;break}n&&e&&(o=(e+C).toLowerCase(),n.updateMarkerItem(o,t))},removeMarker:function(e){var t,o,r,a,n=this.jsVars.instanceAPI.getDatasets()||[],l=n.length;for(o=0;o<l;o++)if("markers"===(r=n[o]||[]).getName()){a=r;break}e&&(t=(e+C).toLowerCase(),a._removeMarkerItem(t))}},C="",y="bottom",F=window.Math,w=F.min,A=F.max,E=function(e){function t(t,o){var r,a;for(a in(r=e.call(this)||this).subpalette=d.BLANKSTRING,r.key=d.BLANKSTRING,r.index=o,t)r.subpalette=m[t[a]],r[a]=r.subpalette instanceof Array?r.subpalette[o]:r.subpalette,r.key=a;return r}return(0,a["default"])(t,e),t}(l.ComponentInterface),L=function(e){function t(){var t;return(t=e.call(this)||this).friendlyName="Map",t.revision=1,t.hasCanvas=!0,t.standaloneInit=!1,t.defaultDatasetType="maps",t.defaultSeriesType="geo",t.fireGroupEvent=!0,t.legendposition="right",t.hasGradientLegend=!0,t.isMap=!0,t.defaultPaletteOptions={paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:[b,b,b,b,b],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},t.colorPaletteMap=k,t.eiMethods=v,t.registerFactory("legend",g["default"],["canvas"]),t.registerFactory("axis",d.stubFN,["canvas"]),t.registerFactory("colormanager-decider",p["default"],["legend"]),t.registerFactory("dataset",u["default"],["colormanager-decider"]),t.registerFactory("canvas",h["default"]),t}(0,a["default"])(t,e);var o=t.prototype;return o._checkInvalidSpecificData=function(){return this.config.invalid=!1,!1},o.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;!t.baseWidth&&(t.baseWidth=400),!t.baseHeight&&(t.baseHeight=300),!t.baseScaleFactor&&(t.baseScaleFactor=1)},t.getName=function(){return"maps"},t.getType=function(){return"chartAPI"},o.getName=function(){return this.config.name||"GEO"},o.getType=function(){return"chartAPI"},o.configureAttributes=function(t){var o,r=this,a=r.getChildren("colorPalette")&&r.getChildren("colorPalette")[0];o=t.chart=t.chart||t.graph||t.map||{},r.jsonData=t,a||(a=new E(this.colorPaletteMap,(o.palette>0&&o.palette<6?o.palette:(0,d.pluckNumber)(r.paletteIndex,1))-1),r.attachChild(a,"colorPalette")),r.config.skipCanvasDrawing=!0,e.prototype.configureAttributes.call(this,t),r._parseBackgroundCosmetics()},o.parseChartAttr=function(t){var o,r,a,n,l,i=this,c=i.jsonData,s=c.chart||c.map,u=c.markers,h=new E(this.colorPaletteMap,(s.palette>0&&s.palette<6?s.palette:(0,d.pluckNumber)(i.paletteIndex,1))-1),p=(0,d.pluck)(s.entitybordercolor,s.bordercolor,h.plotbordercolor),g=(0,d.pluck)(s.entityfillcolor,s.fillcolor,h.plotfillcolor),f=(0,d.pluck)(s.entityfillalpha,s.fillalpha,h.plotfillalpha),m=(0,d.pluck)(s.entityfillratio,s.fillratio,h.plotfillratio),b=(0,d.pluck)(s.entityfillangle,s.fillangle,h.plotfillangle),k=(0,d.pluck)(s.nullentityfillcolor,s.nullentitycolor,g),v=(0,d.pluckNumber)(s.usevaluesformarkers,c.markers&&c.markers.items&&c.markers.items.length,!(c.markers&&c.markers.application&&c.markers.application.length&&c.markers.definition&&c.markers.definition.length));e.prototype.parseChartAttr.call(this,t),(o=i.config).origMarginTop=(0,d.pluckNumber)(s.charttopmargin,s.maptopmargin,11),o.origMarginLeft=(0,d.pluckNumber)(s.chartleftmargin,s.mapleftmargin,11),o.origMarginBottom=(0,d.pluckNumber)(s.chartbottommargin,s.mapbottommargin,11),o.origMarginRight=(0,d.pluckNumber)(s.chartrightmargin,s.maprightmargin,11),o.labelsOnTop=(0,d.pluckNumber)(s.entitylabelsontop,1),r=(l=o.style).inCancolor,a=l.inCanfontFamily,n=l.inCanfontSize,o.entityOpts={baseScaleFactor:o.baseScaleFactor,dataLabels:{style:{fontFamily:a,fontSize:n,lineHeight:l.inCanLineHeight,color:(0,d.pluck)(s.entitylabelcolor,l.inCancolor),bgColor:(0,d.pluck)(s.entitylabelbgcolor)||C,borderColor:(0,d.pluck)(s.entitylabelbordercolor)||C}},fillColor:g,fillAlpha:f,fillRatio:m,fillAngle:b,borderColor:p,borderAlpha:(0,d.pluck)(s.entityborderalpha,s.borderalpha,i.borderAlpha,"100"),borderThickness:(0,d.pluckNumber)(s.showentityborder,s.showborder,1)?(0,d.pluckNumber)(s.entityborderthickness,s.borderthickness,1):0,scaleBorder:(0,d.pluckNumber)(s.scaleentityborder,s.scaleborder,0),hoverFillColor:(0,d.pluck)(s.entityfillhovercolor,s.hoverfillcolor,s.hovercolor,h.plothoverfillcolor),hoverFillAlpha:(0,d.pluck)(s.entityfillhoveralpha,s.hoverfillalpha,s.hoveralpha,h.plothoverfillalpha),hoverFillRatio:(0,d.pluck)(s.entityfillhoverratio,s.hoverfillratio,s.hoverratio,h.plothoverfillratio),hoverFillAngle:(0,d.pluck)(s.entityfillhoverangle,s.hoverfillangle,s.hoverangle,h.plothoverfillangle),hoverBorderThickness:(0,d.pluck)(s.entityborderhoverthickness,s.hoverborderthickness),hoverBorderColor:(0,d.pluck)(s.entityborderhovercolor,p,h.plotbordercolor),hoverBorderAlpha:(0,d.pluck)(s.entityborderhoveralpha,h.plotborderalpha),nullEntityColor:k,nullEntityAlpha:(0,d.pluck)(s.nullentityfillalpha,s.nullentityalpha,f),nullEntityRatio:(0,d.pluck)(s.nullentityfillratio,s.nullentityratio,m),nullEntityAngle:(0,d.pluck)(s.nullentityfillangle,s.nullentityangle,b),connectorColor:(0,d.pluck)(s.labelconnectorcolor,s.connectorcolor,r),connectorAlpha:(0,d.pluck)(s.labelconnectoralpha,s.connectoralpha,"100"),connectorThickness:(0,d.pluckNumber)(s.labelconnectorthickness,s.borderthickness,1),showHoverEffect:(0,d.pluckNumber)(s.showentityhovereffect,s.usehovercolor,s.showhovereffect,1),hoverOnNull:(0,d.pluckNumber)(s.hoveronnull,s.entityhoveronnull,1),labelPadding:(0,d.pluckNumber)(s.labelpadding,5),showLabels:(0,d.pluckNumber)(s.showlabels,1),labelsOnTop:(0,d.pluckNumber)(s.entitylabelsontop,1),includeNameInLabels:(0,d.pluckNumber)(s.includenameinlabels,1),includeValueInLabels:(0,d.pluckNumber)(s.includevalueinlabels,0),useSNameInTooltip:(0,d.pluckNumber)(s.usesnameintooltip,0),useShortName:(0,d.pluckNumber)(s.usesnameinlabels,1),labelSepChar:(0,d.pluck)(s.labelsepchar,", "),showTooltip:(0,d.pluckNumber)(s.showentitytooltip,s.showtooltip,1),tooltipSepChar:(0,d.pluck)(s.tooltipsepchar,", "),tooltext:s.entitytooltext,hideNullEntities:(0,d.pluckNumber)(s.hidenullentities,0),showHiddenEntityBorder:(0,d.pluckNumber)(s.showhiddenentityborder,1),showNullEntityBorder:(0,d.pluckNumber)(s.shownullentityborder,1),hiddenEntityColor:(0,d.pluck)(s.hiddenentitycolor,s.hiddenentityfillcolor,s.hiddenentityalpha||s.hiddenentityfillalpha?k:"ffffff"),hiddenEntityAlpha:(0,d.pluck)(s.hiddenentityalpha,s.hiddenentityfillalpha,.001),shadow:(0,d.pluckNumber)(s.showshadow,i.defaultPlotShadow,h.shadow)},o.markerOpts={dataLabels:{style:{fontFamily:(0,d.pluck)(s.markerfont,a),fontSize:(0,d.pluckNumber)(s.markerfontsize,parseInt(n,10)),fontColor:(0,d.pluck)(s.markerlabelcolor,s.markerfontcolor,r),labelBgColor:(0,d.pluck)(s.markerlabelbgcolor)||C,labelBorderColor:(0,d.pluck)(s.markerlabelbordercolor)||C}},showTooltip:(0,d.pluckNumber)(s.showmarkertooltip,s.showtooltip,1),showLabels:(0,d.pluckNumber)(s.showmarkerlabels,s.showlabels,1),showHoverEffect:(0,d.pluckNumber)(s.showmarkerhovereffect,1),labelPadding:(0,d.pluck)(s.markerlabelpadding,"5"),labelWrapWidth:(0,d.pluckNumber)(s.markerlabelwrapwidth,0),labelWrapHeight:(0,d.pluckNumber)(s.markerlabelwrapheight,0),fillColor:(0,d.pluck)(s.markerfillcolor,s.markerbgcolor,h.markerfillcolor),fillAlpha:(0,d.pluck)(s.markerfillalpha,h.markerfillalpha),fillAngle:(0,d.pluck)(s.markerfillangle,h.markerfillangle),fillRatio:(0,d.pluck)(s.markerfillratio,h.markerfillratio),fillPattern:(0,d.pluck)(s.markerfillpattern,h.markerbgpattern),hoverFillColor:s.markerfillhovercolor,hoverFillAlpha:s.markerfillhoveralpha,hoverFillRatio:s.markerfillhoverratio,hoverFillAngle:s.markerfillhoverangle,borderThickness:(0,d.pluck)(s.markerborderthickness,1),borderColor:(0,d.pluck)(s.markerbordercolor,h.markerbordercolor),borderAlpha:(0,d.pluckNumber)(s.markerborderalpha,h.markerborderalpha),hoverBorderThickness:s.markerborderhoverthickness,hoverBorderColor:s.markerborderhovercolor,hoverBorderAlpha:s.markerborderhoveralpha,radius:(0,d.pluckNumber)(s.markerradius&&(0,d.trimString)(s.markerradius),7),shapeId:(0,d.pluck)(s.defaultmarkershape,"circle"),labelSepChar:(0,d.pluck)(s.labelsepchar,", "),tooltipSepChar:(0,d.pluck)(s.tooltipsepchar,", "),autoScale:(0,d.pluckNumber)(s.autoscalemarkers,0),tooltext:(0,d.pluck)(u&&u.tooltext,s.markertooltext),dataEnabled:v,valueToRadius:(0,d.pluckNumber)(s.markerradiusfromvalue,1),valueMarkerAlpha:(0,d.pluck)(s.valuemarkeralpha,"75"),hideNull:(0,d.pluckNumber)(s.hidenullmarkers,0),nullRadius:(0,d.pluckNumber)(s.nullmarkerradius,s.markerradius,7),adjustViewPort:(0,d.pluckNumber)(s.adjustviewportformarkers,0),startAngle:(0,d.pluckNumber)(s.markerstartangle,90),maxRadius:(0,d.pluckNumber)(s.maxmarkerradius,0),minRadius:(0,d.pluckNumber)(s.minmarkerradius,0),applyAll:(0,d.pluckNumber)(s.applyallmarkers,0),shadow:(0,d.pluckNumber)(s.showmarkershadow,s.showshadow,0)},o.connectorOpts={showHoverEffect:(0,d.pluckNumber)(s.showconnectorhovereffect,1),thickness:(0,d.pluckNumber)(s.connectorthickness,s.markerconnthickness,"2"),color:(0,d.pluck)(s.connectorcolor,s.markerconncolor,h.markerbordercolor),alpha:(0,d.pluck)(s.connectoralpha,s.markerconnalpha,"100"),hoverThickness:(0,d.pluckNumber)(s.connectorhoverthickness,s.connectorthickness,s.markerconnthickness,"2"),hoverColor:(0,d.pluck)(s.connectorhovercolor,s.connectorcolor,s.markerconncolor,h.markerbordercolor),hoverAlpha:(0,d.pluck)(s.connectorhoveralpha,s.connectoralpha,s.markerconnalpha,"100"),dashed:(0,d.pluckNumber)(s.connectordashed,s.markerconndashed,0),dashLen:(0,d.pluckNumber)(s.connectordashlen,s.markerconndashlen,3),dashGap:(0,d.pluckNumber)(s.connectordashgap,s.markerconndashgap,2),font:(0,d.pluck)(s.connectorfont,s.markerconnfont,a),fontColor:(0,d.pluck)(s.connectorlabelcolor,s.connectorfontcolor,s.markerconnfontcolor,r),fontSize:(0,d.pluckNumber)(s.connectorfontsize,s.markerconnfontsize,parseInt(n,10)),showLabels:(0,d.pluckNumber)(s.showconnectorlabels,s.showmarkerlabels,s.showlabels,1),labelBgColor:(0,d.pluck)(s.connectorlabelbgcolor,s.markerconnlabelbgcolor,h.plotfillcolor),labelBorderColor:(0,d.pluck)(s.connectorlabelbordercolor,s.markerconnlabelbordercolor,h.markerbordercolor),shadow:(0,d.pluckNumber)(s.showconnectorshadow,s.showmarkershadow,s.showshadow,0),showTooltip:(0,d.pluckNumber)(s.showconnectortooltip,s.showmarkertooltip,s.showtooltip,1),tooltext:(0,d.pluck)(u&&u.connectortooltext,s.connectortooltext),hideOpen:(0,d.pluckNumber)(s.hideopenconnectors,1)},o.adjustViewPortForMarkers=(0,d.pluckNumber)(s.adjustviewportformarkers,v)},o._attachMouseEvents=function(){var e=this,o=e.getFromEnv("eventListeners"),r=e.getFromEnv("chart-container");o.push(c["default"].listen(r,d.hasTouch?"touchstart":"click",t.searchMouseMove,e)),o.push(c["default"].listen(window.document,d.hasTouch?"touchstart":"mousemove",t.searchMouseMove,e))},o._dispose=function(){var o=this.getFromEnv("chart-container");d.hasTouch&&(c["default"].unlisten(o,"touchstart",t.searchMouseMove),c["default"].unlisten(window.document,"touchstart",t.searchMouseMove)),c["default"].unlisten(o,"click",t.searchMouseMove),c["default"].unlisten(window.document,"mousemove",t.searchMouseMove),e.prototype._dispose.call(this)},t.searchMouseMove=function(e){var t,o=e.data,r=o.config,a=o.getDatasets()[1],n=a&&a.getFromEnv("toolTipController"),l=a&&a.config.currentToolTip,i=o.config.lastHoveredPoint,c={};o.getFromEnv("chart-container")&&o.config.lastInteractionEvent!==e.originalEvent&&(o.config.lastInteractionEvent=e.originalEvent,(t=function(e,t){var o=(0,d.getMouseCoordinate)(t.getFromEnv("chart-container"),e,t),r=o.chartX,a=o.chartY,n=t.config,l=n.canvasLeft,i=n.canvasTop,c=n.canvasLeft+n.canvasWidth,s=n.canvasHeight+n.canvasTop;return o.insideCanvas=!1,o.originalEvent=e,r>l&&r<c&&a>i&&a<s&&(o.insideCanvas=!0),o}(e,o))&&t.insideCanvas?(r.lastMouseEvent=e,c={x:t.chartX,y:t.chartY},o._searchNearestNeighbour(c,e)):(i&&a&&a.hoverOutFn(i.element),o.config.lastHoveredPoint=null,n&&n.hide(l)))},o._searchNearestNeighbour=function(e,t){var o,r=this.getDatasets()[1];if(r){if(!r.components.kDTree)return;(o=r.getElement(e))?r.highlightPoint(o,t):r.highlightPoint(!1,t)}},o._createLayers=function(){e.prototype._createLayers.call(this),this._attachMouseEvents()},o._parseBackgroundCosmetics=function(){var e,t=this,o=t.getChildren("background")[0].config,r=t.getChildren("colorPalette")[0],a=t.getFromEnv("chart-attrib");e=o.showBorder=(0,d.pluckNumber)(a.showcanvasborder,1),o.borderWidth=e?(0,d.pluckNumber)(a.canvasborderthickness,1):0,o.borderRadius=o.borderRadius=(0,d.pluckNumber)(a.canvasborderradius,0),o.borderDashStyle=o.borderDashStyle=(0,d.pluckNumber)(a.borderdashed,0)?(0,d.getDashStyle)((0,d.pluckNumber)(a.borderdashlen,4),(0,d.pluckNumber)(a.borderdashgap,2)):"none",o.borderAlpha=(0,d.pluck)(a.canvasborderalpha,r.borderAlpha),o.borderColor=o.borderColor=(0,d.convertColor)((0,d.pluck)(a.canvasbordercolor,r&&r.borderColor),o.borderAlpha)},o._getBackgroundCosmetics=function(){var e=this,t=e.getFromEnv("chart-attrib")||e.jsonData.map,o=e.getChildren("colorPalette")[0];return{FCcolor:{color:(0,d.pluck)(t.bgcolor,t.canvasbgcolor,o.bgcolor),alpha:(0,d.pluck)(t.bgalpha,t.canvasbgalpha,o.bgalpha),angle:(0,d.pluck)(t.bgangle,t.canvasbgangle,o.bgangle),ratio:(0,d.pluck)(t.bgratio,t.canvasbgratio,o.bgratio)}}},o._parseCanvasCosmetics=function(){e.prototype._parseCanvasCosmetics.call(this);var t=this,o=t.config,r=t.getFromEnv("chart-attrib")||t.jsonData.map,a=t.getChildren("canvas")[0].config;o.origMarginTop=(0,d.pluckNumber)(r.maptopmargin,11),o.origMarginLeft=(0,d.pluckNumber)(r.mapleftmargin,11),o.origMarginBottom=(0,d.pluckNumber)(r.mapbottommargin,11),o.origMarginRight=(0,d.pluckNumber)(r.maprightmargin,11),o.origCanvasLeftMargin=(0,d.pluckNumber)(r.canvasleftmargin,0),o.origCanvasRightMargin=(0,d.pluckNumber)(r.canvasrightmargin,0),o.origCanvasTopMargin=(0,d.pluckNumber)(r.canvastopmargin,0),o.origCanvasBottomMargin=(0,d.pluckNumber)(r.canvasbottommargin,0),a.canvasBorderRadius=(0,d.pluckNumber)(r.canvasborderradius,0),a.origCanvasTopPad=(0,d.pluckNumber)(r.canvastoppadding,0),a.origCanvasBottomPad=(0,d.pluckNumber)(r.canvasbottompadding,0),a.origCanvasLeftPad=(0,d.pluckNumber)(r.canvasleftpadding,0),a.origCanvasRightPad=(0,d.pluckNumber)(r.canvasrightpadding,0)},o.preliminaryScaling=function(){for(var e,t,o,r=this.jsonData,a=r.markers&&r.markers.items||[],n=a&&a.length||0,l=Infinity,i=Infinity,c=-Infinity,s=-Infinity;n--;)o=a[n],e=Number(o.x),t=Number(o.y),l=w(l,e),i=w(i,t),c=A(c,e),s=A(s,t);return{x:l,y:i,x1:c,y1:s}},o.getScalingParameters=function(e,t,o,r){var a,n,l=e/t,i=o/(e*this.config.baseScaleFactor),c=r/(t*this.config.baseScaleFactor),s=0,d=0;return i>c?(s+=(o-r*l)/2,n=200/(t*(a=c))):(d+=(r-o/l)/2,n=200/(e*(a=i))),{scaleFactor:a,strokeWidth:n,translateX:s,translateY:d}},o.calculateMarkerBounds=function(e,t,o){var r,a,n,l,i,c,s,d,u,h,p,g,f=this,m=f.config,b=m.markerOpts,k=f.getDatasets(),v=f.getDataLimits(),C=v.dataMin,y=v.dataMax,F=b.hideNull,E=b.nullRadius,L=b.valueToRadius,x=Infinity,N=Infinity,S=-Infinity,_=-Infinity;for(c=0,d=k.length;c<d;c++)"markers"===(s=k[c]).getName()&&(r=s);if(r)for(c in r.calculateMarkerRadiusLimits(),n=(a=r.config||{}).minRadius,l=a.maxRadius,i=r.components&&r.components.markerObjs||{})g=(m=i[c].config).definition||{},null!==m.cleanValue?(L&&undefined===g.radius&&(m.radius=n+(l-n)*(m.cleanValue-C)/(y-C)),p=Number(m.radius),u=(Number(g.x)+t)*e,h=(Number(g.y)+o)*e,x=w(x,u-p),N=w(N,h-p),S=A(S,u+p),_=A(_,h+p)):F?m.__hideMarker=!0:null===m.radius&&(m.radius=E);return{x:x,y:N,x1:S,y1:_}},o._spaceManager=function(){var e,t,o,r,a,n,l,i,c,s,u=this,h=u.config,p=u.getChildren("legend")&&u.getChildren("legend")[0],g=u.getChildren("gLegend")&&u.getChildren("gLegend")[0],f=p&&p.config.legendPos?p.config.legendPos.split("-"):g&&g.conf.legendPosition?g.conf.legendPosition.split("-"):[],m=u.getFromEnv("chart-attrib"),b=h.showBorder,k=h.origMarginLeft,v=h.origMarginTop,C=u.config.baseWidth,F=u.config.baseHeight,w={},A=0,E=0,L=h.markerOpts,x=h.borderWidth=b?(0,d.pluckNumber)(m.borderthickness,1):0;u._allocateSpace({top:x,bottom:x,left:x,right:x}),u._allocateSpace(u._manageActionBarSpace&&u._manageActionBarSpace(.225*h.availableHeight)||{}),c="right"===f[0]||"left"===f[0]?.3*h.canvasWidth:.3*h.canvasHeight,t=f[0]===d.POSITION_TOP||f[0]===y?h.canvasHeight:h.canvasWidth,h.showLegend&&u._manageLegendSpace(c),e=f[0]===y||f[0]===d.POSITION_TOP?.225*h.canvasHeight:.225*h.canvasWidth,"top"===f[0]&&(v+=t-h.canvasHeight),s=u._manageChartMenuBar(e),"left"===f[0]&&(k+=t-h.canvasWidth),r=h.canvasWidth,a=h.canvasHeight,L.dataEnabled?(h.adjustViewPortForMarkers?((w=u.preliminaryScaling()).x1>C&&(C=w.x1),w.x<0&&(C+=-w.x,A=-w.x),w.y1>F&&(F=w.y1),w.y<0&&(F+=-w.y,E=-w.y),o=u.getScalingParameters(C,F,r,a),l=a,i=r,(w=u.calculateMarkerBounds(o.scaleFactor*u.config.baseScaleFactor,A,E)).x<0&&(k+=-w.x,r+=w.x),w.y<0&&(v+=-w.y,a+=w.y),w.x1>i&&(r-=w.x1-i),w.y1>l&&(a-=w.y1-l)):(o=u.getScalingParameters(C,F,r,a),u.calculateMarkerBounds(o.scaleFactor*u.config.baseScaleFactor,A,E)),k+=A*(o=u.getScalingParameters(C,F,r,a)).scaleFactor*u.config.baseScaleFactor,v+=E*o.scaleFactor*u.config.baseScaleFactor):o=u.getScalingParameters(C,F,r,a),u.config.scalingParams=o,n=o.scaleFactor,o.translateX=o.translateX+k,o.translateY=o.translateY+v+s.top||0,o.sFactor=n*u.config.baseScaleFactor*100/100,o.transformStr=["t",o.translateX,",",o.translateY,"s",n,",",n,",0,0"].join(""),u.config.annotationConfig={id:"Geo",showbelow:0,autoscale:0,grpxshift:o.translateX?o.translateX:0,grpyshift:o.translateY?o.translateY:0,xscale:100*(n?n*u.config.baseScaleFactor:1),yscale:100*(n?n*u.config.baseScaleFactor:1),scaletext:1,options:{useTracker:!0}}},o.getDataLimits=function(){var e,t,o=this.getDatasets(),r=o.length,a=+Infinity,n=-Infinity;for(t=0;t<r;t++)e=o[t].getDataLimits(),a=w(a,e.min),n=A(n,e.max);return{dataMin:a,dataMax:n}},o.getEntityPaths=function(e){var t,o={},r=this.config.entities;if(e){for(t in r)o[t]=r[t];return o}return r},o.checkComplete=function(){var e=this;e.config.entityFlag&&e.config.entitiesReady&&(e.config.entityFlag=!1,e.config.markersDrawn=!0,e.fireChartInstanceEvent("internal.mapdrawingcomplete",{renderer:e}))},t}(n["default"]);t["default"]=L},1649:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var o="final",r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],a=function(){return r[0].slot="plot",r},n=function(e){return[{finalAttr:function(){return e.finalAttr}}]},l=function(){return r[0].slot=o,r},i=function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},c=function(){return r[0].slot=o,r},s=function(e){return[{finalAttr:function(){return e.finalAttr}}]},d=function(e){return[{initialAttr:function(){return Object.assign({opacity:0},e.attr)},finalAttr:function(){return e.attr},slot:"plot"}]},u=function(e){return[{initialAttr:function(){return Object.assign({opacity:0},e.attr)},finalAttr:function(){return e.attr},slot:"plot"}]},h={"initial.dataset.entities":function(){return{"path.appearing":a,"path.updating":n,"labelConnectors.appearing":l,"labelConnectors.updating":null,"entityLabel.appearing":i,"*":null}},"initial.dataset.markers":function(){return{markers:null,"markerItem.appearing":c,"markerItem.updating":s}},"initial.group.mapGroup":function(){return{"group.appearing":d,"group.updating":u,"*":null}}};t["default"]=h},1648:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=void 0;var a,n=r(o(288)),l=o(290),i=r(o(387)),c=o(282),s=r(o(1649)),d=o(274),u=o(286),h=r(o(659)),p=(0,c.getDep)("redraphael","plugin"),g=window.navigator.userAgent,f=/msie/i.test(g)&&!window.opera,m="",b="middle",k="center",v="entityLabel",C=window.Math,y=C.min,F=C.max,w=/stroke/gi,A=/AppleWebKit/.test(g),E=C.ceil,L=function(e,t){var o=t?(0,d.extend2)(e.FCcolor,t,!1,!0):{FCcolor:e};return o.toString=d.toRaphaelColor,o},x=function(e,t){var o,r,a={};if(r=t||1,!e||"object"!=typeof e)return a;for(o in e)w.test(o)||("stroke-width"===o?(a[o]=Number(e[o])/r,A&&(a[o]=a[o]&&E(a[o])||0)):a[o]=e[o]);return a},N={right:function(){return arguments[1]},left:function(e,t){return e-t},center:function(e,t){return 2*y(t,e-t)}},S={top:function(){return arguments[1]},middle:function(e,t){return 2*y(t,e-t)},bottom:function(e,t){return e-t}},_=function(e,t){e&&e.graphics.outlines.attr(t)};(0,c.addDep)({name:"mapsAnimation",type:"animationRule",extension:s["default"]}),(0,h["default"])(p);var T=function(e){function t(){var t;return(t=e.call(this)||this).components={},t}(0,n["default"])(t,e);var o=t.prototype;return o.getName=function(){return"entities"},o.getType=function(){return"dataset"},o.configureAttributes=function(e){if(e){this.JSONData={data:e};var o,r,n,l,i,c,s,u,h=this,p=h.getFromEnv("chart").jsonData,g=h.config,f=p.map||p.chart,m=[],b=h.getFromEnv("colorManager"),k=p.entitydef||[];for(i in!g.attachEvent&&b&&(h.addExtEventListener("legendUpdate",(function(){if("legend"===(u=arguments[1]).component)h.legendInteractivity(u.legendItem,u.colorObj);else for(m=u.maxMinArray,c=m.length,s=0;s<c;s++)h.updateEntityColors(m[s].min,m[s].max)}),b),g.attachEvent=!0),o=p.data&&p.data[0]&&p.data[0].data?h.JSONData=p.data[0].data||[]:h.JSONData=p.data||[],g.useSNameAsId=(0,d.pluckNumber)(f.usesnameasid,0),this._redefineEntities(k),r=h.components.data,g.showTooltip=(0,d.pluckNumber)(f.showtooltip,1),g.showHoverEffect=(0,d.pluckNumber)(f.showhovereffect,0),o=function(e){for(var t,o=e&&e.length||0,r={};o--;)(t=e[o]).id!==a&&(r[t.id.toLowerCase()]=t);return r}(o),h.calculateDataLimits(),!p.colorrange&&h._detachChild(h.getChildren("colorRange")&&h.getChildren("colorRange")[0]),r)n=o[i],l=r[i],n?this._configureEntity(i,l,(0,d.imprint)(t._sanitizeEntityOptions((0,d.extend2)({},n)),l.config)):this._configureEntity(i,l,l.config)}},o.updateEntityColors=function(e,t){var o,r,a,n,l,i=this.components.data,c=this.getFromEnv("chart").config.entityOpts,s=c.nullEntityAlpha,d=c.nullEntityColor,u=L({fill:d,alpha:s}),h={"fill-opacity":0};for(n in i)i.hasOwnProperty(n)&&(a=(r=(o=i[n]).config).cleanValue,l={"fill-opacity":(r.alphaArr||[])[0]/100||1},null==a?(_(o,u),o.hidden=!1):a<e||a>t?(_(o,h),o.hidden=!0):(_(o,l),o.hidden=!1))},o.legendInteractivity=function(e,t){var o,r,a,n,l,i,c=this,s=c.getFromEnv("chart"),d=c.components.data,u=e.config,h=e.hasState("hidden"),p=c.getFromEnv("colorManager"),g={},f={"fill-opacity":0};for(o in s.getFromEnv("animationManager").setAnimationState("legendInteraction"),d)d.hasOwnProperty(o)&&(a=(u=(r=d[o]).config).cleanValue,i=p.getColorObj(a),n=u.visibleEntityAttr,g["fill-opacity"]=n["fill-opacity"],l=h?g:f,t.code===(!i.outOfRange&&i.code)&&(r.hidden=!h,_(r,l),h?e&&e.removeLegendState("hidden"):e.setLegendState("hidden")))},o.calculateDataLimits=function(){var e,t,o,r,a=this.getFromEnv("chart"),n=this.config,l=a.jsonData.data||[],i=this.getFromEnv("number-formatter"),c=+Infinity,s=-Infinity;for(r=0,o=l.length;r<o;r++)t=l[r].value,e=i.getCleanValue(t),c=y(c,e),s=F(s,e);n.max=s,n.min=c},o._configureEntity=function(e,t,o){var r,n,l,i,c,s,u,h,p,g,f,v,C,y,F,w,A,E,x,N,S,_,T=this,I=T.getFromEnv("chart"),M=T.config,O=this.getFromEnv("number-formatter"),P=I.config.entityOpts,B=t.config,D=t.labelConfig,R=o.value,j=B.cleanValue=O.getCleanValue(R),V=B.formattedValue=j!==a?O.dataLabels(j):a,G=(0,d.pluckNumber)(o.showtooltip,P.showTooltip),H=this._getDefaultTooltip(t,o,T),W={formattedValue:V,sName:o.shortLabel,lName:o.label},z=P.dataLabels.style,X=B.toolText=G?(0,d.parseUnsafeString)((0,d.pluck)((0,d.parseTooltext)((0,d.pluck)(o.tooltext,P.tooltext,H),[1,2,7,38,39],W,o)),!1):m,Y=B.borderColor=(0,d.pluck)(o.bordercolor,P.borderColor),K=B.borderAlpha=(0,d.pluck)(o.borderalpha,P.borderAlpha),J=B.borderThickness=(0,d.pluckNumber)(o.borderthickness,P.borderThickness),U=P.hoverOnNull,Z=B.useHoverColor=(0,d.pluckNumber)(o.showhovereffect,o.usehovercolor,U?P.showHoverEffect:isNaN(R)?0:P.showHoverEffect),$=B.labelAlignment,q=T.getFromEnv("colorManager");if(t.hidden=!1,B.showLabel=(0,d.pluckNumber)(o.showlabel,P.showLabels),B.labelPadding=(0,d.pluckNumber)(o.labelpadding,P.labelPadding),B.fontFamily=(0,d.pluck)(o.font,z.fontFamily),B.fontSize=(0,d.pluckNumber)(parseInt(o.fontsize,10),parseInt(z.fontSize,10)),B.fontBold=(0,d.pluckNumber)(o.fontbold,0),B.fontColor=(0,d.pluck)(o.labelcolor,o.fontcolor,z.color),B.labelBgColor=(0,d.pluck)(o.labelbgcolor,z.bgColor)||m,B.labelBorderColor=(0,d.pluck)(o.labelbordercolor,z.borderColor)||m,B.connectorColor=(0,d.pluck)(o.labelconnectorcolor,P.connectorColor),B.connectorAlpha=(0,d.pluck)(o.labelconnectoralpha,P.connectorAlpha),B.hoverBorderThickness=(0,d.pluckNumber)(o.borderhoverthickness,o.hoverborderthickness,P.hoverBorderThickness),B.hoverBorderColor=(0,d.pluck)(o.borderhovercolor,o.hoverbordercolor,P.hoverBorderColor,B.borderColor),B.hoverBorderAlpha=(0,d.pluck)(o.borderhoveralpha,o.hoverborderalpha,P.hoverBorderAlpha,B.borderAlpha),B.connectorThickness=(0,d.pluckNumber)(o.labelconnectorthickness,P.connectorThickness),B.origConnectorThickness=B.connectorThickness,B.borderThickness=J,B.link=o.link,B.isVisible=!0,B.id=e,B.originalId=o.origId,null!==j&&(r=q&&q.getColor(j))&&!r.outOfRange&&(w=r.code,r.oriAlpha!==a&&(A=r.oriAlpha+"")),(0,d.pluck)(o.color,o.alpha,o.angle,o.ratio)!==a?(c=(0,d.pluck)(o.color,w,P.fillColor),s=(0,d.pluck)(o.alpha,A,P.fillAlpha),u=(0,d.pluck)(o.angle,P.fillAngle),h=(0,d.pluck)(o.ratio,P.fillRatio),p=L({color:c,alpha:s,angle:u,ratio:h})):(y=L({color:(0,d.pluck)(w,P.fillColor),alpha:(0,d.pluck)(A,P.fillAlpha),angle:(0,d.pluck)(P.fillAngle),ratio:(0,d.pluck)(P.fillRatio)}),C=L({color:(0,d.pluck)(P.nullEntityColor),alpha:(0,d.pluck)(P.nullEntityAlpha),angle:(0,d.pluck)(P.nullEntityAngle),ratio:(0,d.pluck)(P.nullEntityRatio)}),c=(p=null===j?C:y).FCcolor.color,s=p.FCcolor.alpha,u=p.FCcolor.angle,h=p.FCcolor.ratio),X===m&&(M.showTooltip=0),B.visibleEntityAttr={stroke:(0,d.convertColor)(Y,K),fill:(B.fillColor=p).toString(),"fill-opacity":s/100},_=s.split(","),B.alphaArr=_,Z&&((0,d.pluck)(o.fillhovercolor,o.fillhoveralpha,o.fillhoverangle,o.fillhoverratio,o.hoverfillcolor,o.hoverfillalpha,o.hoverfillratio,o.hoverfillangle)!==a?(c=(0,d.pluck)(o.fillhovercolor,o.hoverfillcolor,P.hoverFillColor),s=(0,d.pluck)(o.fillhoveralpha,o.hoverfillalpha,P.hoverFillAlpha),u=(0,d.pluck)(o.fillhoverangle,o.hoverfillangle,P.hoverFillAngle),h=(0,d.pluck)(o.fillhoverratio,o.hoverfillratio,P.hoverFillRatio),F=L({color:c,alpha:s,angle:u,ratio:h})):(P.hoverColorObject||(P.hoverColorObject=L({color:P.hoverFillColor,alpha:P.hoverFillAlpha,angle:P.hoverFillAngle,ratio:P.hoverFillRatio})),F=P.hoverColorObject),B.hoverColor=F),!D&&(D=t.labelConfig={}),g=B.fontColor,f=B.fontFamily,v=B.fontBold,X=B.toolText,n=B.link,$?(l=$[0],i=$[1]):(l=k,i=b),D.align=l,D.vAlign=i,D.fontColor=g,D.bgColor=B.labelBgColor,D.borderColor=B.labelBorderColor,D.fontFamily=f,D.fontBold=v,D.toolText=X,D.link=n,"object"==typeof B.options)for(E=B.entityLabels=B.entityLabels||[],S=(N=B.labels||[]).length;S--;)E[S]||(E[S]={config:{}}),D=E[S].config,($=N[S].labelAlignment)?(l=$[0],i=$[1]):(l=k,i=b),D.align=l,D.vAlign=i,D.displayValue=T.getDisplayValue(t,N[S],B.options.isDataEnabled,!S,o),D.toolText=X,D.align=l,D.vAlign=i,D.bgColor=B.labelBgColor,D.borderColor=B.labelBorderColor,D.fontColor=g,D.fontFamily=f,D.fontBold=v,D.toolText=X;else x={shortText:B.shortLabel,text:B.label},D.displayValue=T.getDisplayValue(t,x,!0,!0,o)},o.getDisplayValue=function(e,t,o,r,n){var l,i=this.getFromEnv("chart").config.entityOpts,c=e.config,s=c.cleanValue,u=c.formattedValue,h=i.labelSepChar;return o?r&&"undefined"!=typeof n.displayvalue?l=n.displayvalue:(l=(0,d.pluck)(i.includeNameInLabels?i.useShortName?t.shortText:t.text:""),i.includeValueInLabels&&null!==s&&(l=l===a?u:l+h+u)):l=c.label,l},t._sanitizeEntityOptions=function(e){return delete e.outlines,delete e.label,delete e.shortlabel,delete e.labelposition,delete e.labelalignment,delete e.labelconnectors,e},o._redefineEntities=function(e){var t,o,r,a,n,l,i,c,s,u,h,p,g=this,f=g.config,m={},b={},k=g.getFromEnv("chart").config.entities,v=f.useSNameAsId,C=0;for(t=e.length;t--;)if(r=(o=e[t]).internalid,a=o.newid?o.newid:r,n=o.sname,l=o.lname,p=k[r],r=(0,d.trimString)(r),a=(a=(0,d.trimString)(a))&&a.toLowerCase(),p){for(h in m[a]=c={origId:r},b[r]=!0,p)c[h]=p[h];c.shortLabel=n||p.shortLabel,c.label=l||p.label,c.showhovereffect=o.showhovereffect,c.fillhovercolor=o.fillhovercolor,c.fillhoveralpha=o.fillhoveralpha,c.fillhoverangle=o.fillhoverangle,c.fillhoverratio=o.fillhoverratio,c.borderhoverthickness=o.borderhoverthickness}for(i in(u=g.components.data)||(u=g.components.data={}),m)u[i=i.toLowerCase()]||(u[i]={config:{}}),u[i].config=m[i],C+=1;for(i in s=u,k)if(c=k[i],!b[i=(0,d.trimString)(i)]){for(h in v?((p=s[c.shortLabel.toLowerCase()])||(p=s[c.shortLabel.toLowerCase()]={}),p.config={},p.origId=c.shortLabel):((p=s[i.toLowerCase()])||(p=s[i.toLowerCase()]={}),p.config={},p.config.origId=i),c)p.config[h]=c[h];C+=1}f.entityCount=C},o.draw=function(){var e=this,t=e.config,o=e.getFromEnv("chart"),r=d.hasSVG?200:10;e.createContainer(),this.config.ready=!1,t.BATCH_SIZE=r,t.labelBatchSize=d.hasSVG?200:20,this._batchRender()(0),o.config.entityFlag=!0,o.checkComplete()},o._batchRender=function(){var e,t,o,r,n,l=this,i=l.config,c=l.getFromEnv("chart").config.entities.firstEntity,s=l.components.data,d=i.BATCH_SIZE,h=i.entityKeys=c?l._getKeys(c,s):Object.keys(s),p=i.entityLength=h.length;return function g(i){for(e=i,o=0;h[e]!==a;)if(t=s[h[e]],n=l.drawEntity(t,d),o+=n,t.config.drawn&&((r=e===p-1?t:s[h[e-1]])&&(r.config.drawn=!1,r.config.outlineStartIndex=a),e++),o>=d){l.addJob("entityDraw",g.bind(l,e),u.priorityList.entitydraw);break}e===p&&(l._addEventListenersToEntities(0),l.initComplete())}},o._addEventListenersToEntities=function(e){var t,o,r,a=this,n=a.components.data,l=a.config,i=l.BATCH_SIZE,c=l.entityKeys,s=l.entityLength,d=0;for(t=e;t<s;t++)if((r=(o=n[c[t]]).config.options)&&!1===r.isDataEnabled||a.addMouseGestures(o),++d===i){a.addJob("_addEventListenersToEntities",a._addEventListenersToEntities.bind(this,t),u.priorityList.entitydraw);break}},t._getKeys=function(e,t){for(var o=[e],r=e;t[r];)r=t[r].nextId,o.push(r);return o},o._getDefaultTooltip=function(e,t){var o,r,n=e.config.cleanValue,l=e.config.formattedValue,i=this.getFromEnv("chart").config.entityOpts;if("object"==typeof e.config.options){if(!(r=t.labels&&t.labels[0]))return a;o=(i.useSNameInTooltip?r.shortText:r.text)+(null===n?m:i.tooltipSepChar+l)}else o=(i.useSNameInTooltip?t.shortLabel:t.label)+(null===n?m:i.tooltipSepChar+l);return o},o.drawEntity=function(e,t){var o,r,n,l,i,c,s,u,h=this,p=h.getFromEnv("chart"),g=p.getFromEnv("animationManager"),m=e.config,b=d.hasSVG||!f?"litepath":"path",k=p.config.entityOpts,v=m.outlines,C=h.getFromEnv("toolTipController"),y=this.getLinkedParent().getChildContainer("plot"),F=this.getLinkedParent().getChildContainer("plotShadow"),w=m.toolText,A=k.shadow,E=[],L={};if(h._configureEntityDrawingParams(e),r=(m=e.config).visibleEntityAttr,u=m.shadowOptions,o=m.outlineStartIndex===a?v.length:m.outlineStartIndex,e.graphics||(e.graphics={}),c=0,E=m.outlinePath||(m.outlinePath=[]),s=m.customStrokeWidthModifier,"object"==typeof m.options){for(;o--;)if(E=v[o].outline,n=!0===m.options.isDataEnabled?r:(0,d.extend2)((0,d.extend2)({},r),x(v[o].style,s)),(l=e.graphics.outlines)||(l=e.graphics.outlines=[]),!l[o]&&(l[o]={}),i=l[o].outline,n[b]=E,(i=l[o].outline=g.setAnimation({el:b,container:y,attr:n,component:h,label:"path"})).shadow(!!A&&u,F),C.enableToolTip(i,w),c++,m.outlineStartIndex=o,c===t)return c;return m.drawn=!0,c}for(;o--;)if(E=v[o].concat(E),c++,m.outlineStartIndex=o,c===t)return m.outlinePath=E,c;return!e.graphics.outlines&&(r[b]=E),Object.assign(L,r,e.hidden&&{"fill-opacity":0}||{}),e.graphics.outlines=g.setAnimation({el:e.graphics.outlines||b,container:y,attr:L,component:h,label:"path"}),m.drawn=!0,m.outlineStartIndex=0,m.outlinePath=[],e.graphics.outlines.shadow(!!A&&u,F),C.enableToolTip(e.graphics.outlines,w),c},o._configureEntityDrawingParams=function(e){var t,o=this.getFromEnv("chart"),r=e.config,a=o.config.entityOpts,n=o.config.scalingParams,l=!f||d.hasSVG,i=n.scaleFactor,c=n.strokeWidth,s=(l?o.baseScaleFactor:1)*c,u=1===a.scaleBorder,h=r.borderThickness,p=r.alphaArr,g=r.origConnectorThickness,m=r.hoverBorderThickness,b=r.visibleEntityAttr,k=b["fill-opacity"];r.shadowOptions={scalefactor:[i,i*o.config.baseScaleFactor],opacity:F.apply(C,p)/100,useFilter:0},r.fillOpacity=e.hidden?0:k,l?(h=r.entityBorderThickness=u?h*s:h/i,g/=i,t=u?i:n.sFactor,m&&(m=r.hoverBorderThickness=u?m*s:m/i)):(h=u?h*c:h,t=u?n.scaleFactor:o.baseScaleFactor),r.entityBorderThickness=h,r.connectorThickness=g,r.customStrokeWidthModifier=t,b["stroke-width"]=h,b.transform=d.hasSVG||!f?"":n.transformStr},o.drawLabels=function(e){var t,o,r,a,n=this,l=e,c=n.getFromEnv("chart"),s=n.config,d=s.labelBatchSize,u=s.entityLength,h=[],p=c.getChildContainer("upperAnnotationGroup"),g=0,f=n.getChildren("mapLabelAnnotations")&&n.getChildren("mapLabelAnnotations")[g],m=0,b=0,k=c.config.annotationConfig;for(t in f||(a=new i["default"],n.attachChild(a,"mapLabelAnnotations"),(f=n.getChildren("mapLabelAnnotations")[g]).addCustomGroup(p)),f.destroy(),f._renderer&&(f._renderer=null),k.showbelow=0,l){if(n.drawLabel(l[t],h),++m===d){for(o=0;o<h.length;o++)h[o].animationLabel=v;for(r=f.addGroup(Object.assign(k,{id:"entityLabels"+g,items:h,animationLabel:"entityLabelGroup"}),n),o=0;o<r.items.length;o++)r.items[o].addEventListener("fc-mouseover",h[o].onmouseover),r.items[o].addEventListener("fc-mouseout",h[o].onmouseout),r.items[o].addEventListener("fc-click",h[o].onclick);g++,(f=n.getChildren("mapLabelAnnotations")&&n.getChildren("mapLabelAnnotations")[g])||(a=new i["default"],n.attachChild(a,"mapLabelAnnotations"),(f=n.getChildren("mapLabelAnnotations")[g]).addCustomGroup(p)),f.destroy(),f._renderer&&(f._renderer=null),m=0,h=[]}else if(b===u-1){for(o=0;o<h.length;o++)h[o].animationLabel=v;for(r=f.addGroup(Object.assign(k,{id:"entityLabels"+g,items:h,animationLabel:"entityLabelGroup"}),n),o=0;o<r.items.length;o++)r.items[o].addEventListener("fc-mouseover",h[o].onmouseover),r.items[o].addEventListener("fc-mouseout",h[o].onmouseout),r.items[o].addEventListener("fc-click",h[o].onclick)}b++}n.drawLabelConnFn(0)},o.drawLabelConnFn=function(e){var t,o,r,a,n,l=this,i=l.config,c=l.components.data,s=i.BATCH_SIZE,d=i.entityKeys,h=d.length,p=0;for(o=e;o<h;o++){if("object"==typeof(a=(n=c[d[o]]).config).options)for(t=(r=a.labels)&&r.length||0;t--;)r[t].labelConnectors&&(l.drawLabelConnectors(n,r[t].labelConnectors,l),p++);else a.labelConnectors&&(l.drawLabelConnectors(n,a.labelConnectors,l),p++);if(p===s){l.addJob("drawLabelConnectors",l.drawLabelConnFn.bind(this,o),u.priorityList.entitydraw);break}}},o._getLabelObject=function(e,t,o){var r,n,l,i,c,s,u,h,p,g,f,m=this,v=m.getFromEnv("chart"),C=m.getFromEnv("chart-attrib"),y=e.config,F=v.config.scalingParams,w=e.graphics&&e.graphics.outlines,A=y.fontSize,E=y.labelPadding,L=y.labels||[],x=y.entityLabels||[];return t!==a?(f=L[t],i=(r=x[t].config).style=f.style,n=f.labelPosition,l=f.labelAlignment):(r=e.labelConfig,n=y.labelPosition,l=y.labelAlignment),n?(c=n[0],s=n[1]):(c=(u=w.getBBox()).x+u.width/2,s=u.y+u.height/2),l?("right"===(h=l[0])?c-=E:"left"===h&&(c+=E),"top"===(p=l[1])?s-=E:"bottom"===p&&(s+=E)):(h=k,p=b),g=parseFloat(A)/F.sFactor,!o&&i&&(i.color&&(r.fontColor=i.color),i["font-size"]&&(g=parseFloat(i["font-size"])/F.sFactor),i["font-family"]&&(r.fontFamily=i["font-family"]),i["font-weight"]!==a&&(r.fontBold="bold"===i["font-weight"])),r.x=c.toString(),r.y=s.toString(),r.wrap=1,r.type="text",r.fontSize=g,{x:c.toString(),y:s.toString(),wrapwidth:N[h](undefined,c+undefined)-E,wrapheight:S[p](undefined,s+undefined)-E,wrap:1,type:"text",align:r.align,valign:r.vAlign,text:r.displayValue,tooltext:r.toolText,outlineText:(0,d.pluckNumber)(C.textoutline,0),css:r.link!==a&&{cursor:"pointer",_cursor:"hand"},bgcolor:r.bgColor,bordercolor:r.borderColor,fillcolor:r.fontColor,fontsize:r.fontSize,font:r.fontFamily,bold:r.fontBold,onclick:function(t){var o,r,a=e.graphics.outlines;if(a instanceof Array)for(o=0,r=a.length;o<r;o++)m.entityClick(a[o].outline,t);else m.entityClick(a,t)},onmouseover:function(t){var o,r,a=e.graphics.outlines;if(a instanceof Array)for(o=0,r=a.length;o<r;o++)m.entityRollOver(a[o].outline,t);else m.entityRollOver(a,t)},onmouseout:function(t){var o,r,a=e.graphics.outlines;if(a instanceof Array)for(o=0,r=a.length;o<r;o++)m.entityRollOut(a[o].outline,t);else m.entityRollOut(a,t)},ontouchstart:function(t){var o,r,a=e.graphics.outlines;if(a instanceof Array)for(o=0,r=a.length;o<r;o++)m.entityRollOver(a[o].outline,t);else m.entityRollOver(a,t);m.entityRollOver(a,t)}}},o.drawLabel=function(e,t){var o,r,n,l=e.config;if(l.showLabel)if("object"==typeof l.options)for(r=(n=l.labels)&&n.length||0,o=l.options.isDataEnabled;r--;)t.push(this._getLabelObject(e,r,o,!r));else t.push(this._getLabelObject(e,a,!0,!0))},o.drawLabelConnectors=function(e,t,o){for(var r,a,n=e.config,l=this.getFromEnv("chart"),i=l.getFromEnv("animationManager"),c=l.config.scalingParams,s=o.getLinkedParent().getChildContainer("plot"),u=t&&t.length||0,h=n.showLabel;u--;)a=t[u],r=e.graphics.connectorElem,h?e.graphics.connectorElem=r=i.setAnimation({el:e.graphics.connectorElem||"path",attr:{path:a,opacity:1,transform:d.hasSVG||!f?"":c.transformStr,stroke:(0,d.convertColor)(n.connectorColor,n.connectorAlpha),"shape-rendering":"crisp","stroke-width":n.connectorThickness},container:s,component:this,label:"labelConnectors"}):r&&r.hide()},o.entityClick=function(e,t){var o=e.node.__entity,r=this.getFromEnv("chart"),n=r.config.scalingParams,l=e.getBBox(),i=r.getFromEnv("linkClickFN"),c=o.config,s=c.link;l.width=l.width*n.scaleFactor,l.height=l.height*n.scaleFactor,l.x=l.x*n.scaleFactor+n.translateX,l.y=l.y*n.scaleFactor+n.translateY,l.x2=l.x+l.width,l.y2=l.y+l.height,r.fireChartInstanceEvent("entityclick",c.eventArgs,t),s!==a&&i.call({link:s,entity:o,entityBox:l},!0)},o.entityRollOver=function(e,t){var o=e.node.__entity,r=o.config,a=this.getFromEnv("chart"),n=a.getFromEnv("animationManager"),l=r.hoverAttr;a.plotEventHandler(e,t,"entityRollOver"),e.data("hovered")?clearTimeout(o.config.timer):r.useHoverColor&&r.isVisible&&!o.hidden&&l&&(a.config.hoverEntity=e,n.setAnimation({el:e,attr:l,component:this,state:"updating",label:"path"}),e.data("hovered",!0))},o.entityRollOut=function(e,t){var o=e.node.__entity,r=this,a=r.getFromEnv("chart"),n=a.getFromEnv("animationManager"),l=o.config.revertAttr;a.plotEventHandler(e,t,"entityRollOut"),o.config.timer=setTimeout((function(){!0!==o.hidden&&l&&(n.setAnimation({el:e,attr:l,component:r,state:"updating",label:"path"}),e.data("hovered",!1))}),100)},o.addMouseGestures=function(e){var t,o,r,n,l=e.config,i=l.originalId,c=this,s=e.graphics,u=l.useHoverColor,h=l.hoverBorderThickness,p=l.hoverBorderColor,g=l.hoverBorderAlpha,f=l.entityBorderThickness,m=l.borderColor,b=l.borderAlpha,k=l.link,v=l.visibleEntityAttr,C="groupId"+i,y=function(t){k!==a&&t.css({cursor:"pointer",_cursor:"hand"}),t.data("eventArgs",l.eventArgs),t.data("groupId",C),t.node.__entity=e,e._listenersBinded||t.on("fc-click",c.entityClick.bind(c,t)).hover(c.entityRollOver.bind(c,t),c.entityRollOut.bind(c,t))};for(t in l.eventArgs={value:l.cleanValue,label:l.label,shortLabel:l.shortLabel,originalId:l.origId,id:l.id||l.origId},l.legacyEventArgs={value:l.value,lName:l.label,sName:l.shortLabel,id:l.originalId||l.id},u&&(l.hoverAttr={fill:(0,d.toRaphaelColor)(l.hoverColor)},l.revertAttr={fill:(0,d.toRaphaelColor)(l.fillColor),stroke:(0,d.toRaphaelColor)(l.borderColor,l.borderAlpha)},l.revertAttr["fill-opacity"]=v["fill-opacity"],h!==f&&(l.hoverAttr["stroke-width"]=(0,d.pluckNumber)(h,f),l.revertAttr["stroke-width"]=f),p===m&&g===b||(l.hoverAttr.stroke=(0,d.convertColor)(p,g),l.revertAttr.stroke=(0,d.convertColor)(m,b))),s)if(s.hasOwnProperty(t))if(s[t]instanceof Array){for(o=0,r=(n=s[t]).length;o<r;o++)y(n[o].outline);e._listenersBinded=!0}else y(s[t]),e._listenersBinded=!0},o.getDataLimits=function(){var e=this.config;return{max:e.max,min:e.min}},o.createContainer=function(){var e=this,t=e.getLinkedParent(),o=e.getFromEnv("animationManager"),r=t.getChildContainer("layer0");!e.getChildContainer("abovePlotGroup")&&e.addChildContainer("abovePlotGroup",o.setAnimation({el:"group",attr:{name:"abovePlotGroup",opacity:1},container:r,component:e,label:"group"})),!e.getChildContainer("belowPlotGroup")&&e.addChildContainer("belowPlotGroup",o.setAnimation({el:"group",attr:{name:"belowPlotGroup",opacity:1},container:r,component:e,label:"group"}))},o.initComplete=function(){var e=this.getFromEnv("chart"),t=this.components.data;this.drawLabels(t),e.config.entitiesReady=!0,e.checkComplete()},t}(l.ComponentInterface),I=T;t["default"]=I},1651:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=void 0;var a=r(o(288)),n=o(290),l=o(274),i=o(282),c=r(o(1649)),s=function(e){e.configure&&e.configure()};(0,i.addDep)({name:"mapsAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){return e.apply(this,arguments)||this}(0,a["default"])(t,e);var o=t.prototype;return o.getType=function(){return"group"},o.getName=function(){return"mapGroup"},o.configure=function(){this._mapChildren(s)},o.createContainer=function(){var e,t=this,o=t.getLinkedParent(),r=t.getFromEnv("animationManager"),a=o.getChildContainer();e=a.plotGroup,!t.getChildContainer("plotShadow")&&t.addChildContainer("plotShadow",r.setAnimation({el:"group",attr:{name:"manager-plot-shadow",opacity:1},container:e,component:t,label:"group"})),!t.getChildContainer("plot")&&t.addChildContainer("plot",r.setAnimation({el:"group",attr:{name:"manager-plot",opacity:1},container:e,component:t,label:"group"})),!t.getChildContainer("layer0")&&t.addChildContainer("layer0",r.setAnimation({el:"group",attr:{name:"ann-layer0",opacity:1},container:a.abovePlotGroup,component:t,label:"group"})),!t.getChildContainer("layer1")&&t.addChildContainer("layer1",r.setAnimation({el:"group",attr:{name:"ann-layer1",opacity:1},container:a.abovePlotGroup,component:t,label:"group"})),o.config.labelsOnTop?t.getChildContainer("layer0").toFront():t.getChildContainer("layer0").toBack()},o._transformGroup=function(){var e=this,t=this.getFromEnv("chart"),o=t.getFromEnv("chartInstance"),r=e.getFromEnv("animationManager"),a=t.jsonData,n=e.getChildContainer("plot"),i=e.getChildContainer("plotShadow"),c=t.config.scalingParams;n.hide(),i.hide(),t.config.entitiesReady=!1,o.addEventListener("internal.mapdrawingcomplete",(function(t){t.detachHandler(),l.hasSVG&&(o.args.link&&o.args.clickedEntityBox&&a.chart.linkedcharttransition,n&&r.setAnimation({el:n,attr:{transform:c.transformStr},component:e,label:"group"}),i&&r.setAnimation({el:i,attr:{transform:c.transformStr},component:e,label:"group"})),n.show(),i.show()})),t.checkComplete()},o.draw=function(){this.createContainer(),this._transformGroup()},o.getDataLimits=function(e){var t,o=this,r=+Infinity,a=-Infinity,n=0,l=function(e){a=Math.max(a,e.max),r=Math.min(r,e.min)};return o._mapChildren((function(o){o.getState("removed")||!1===o.getState("visible")?e&&(t=o.getDataLimits(e),l(t)):(n++,t=o.getDataLimits(e),l(t))})),n?o.setState("visible",!0):o.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:a,min:r}},t}(n.ComponentInterface),u=d;t["default"]=u},1650:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=void 0;var a,n=r(o(288)),l=r(o(1648)),i=r(o(724)),c=r(o(387)),s=o(282),d=r(o(1649)),u=o(274),h=o(281),p=o(286),g="",f="middle",m="center",b="polygon",k="circle",v=window.Math,C=v.min,y=v.max,F="items",w=function(e){var t,o=this.getFromEnv("chart"),r=this.getChildren("mapAnnotations")[0],n=e.markerShape,l=n.groupConfig,i=n.data("unfilteredConfig"),c=i._markerEventArgs,s=e.config;i.hovereffect&&("circle"===n.config.type&&(t=(0,u.extend2)({fillcolor:i.hoverfillcolor,fillalpha:i.hoverfillalpha,fillangle:i.hoverfillangle,fillratio:i.hoverfillratio,gradientUnits:"objectBoundingBox",radialGradient:1},i._hoverattrs)),t=(0,u.extend2)({},i._hoverattrs),r.update(n.getId(),t)),c||(c=i._markerEventArgs={x:+i.x,y:+i.y,scaledX:i.x*l.scaleX,scaledY:i.y*l.scaleY,chartX:i.x*l.scaleX+l.grpXShift,chartY:i.y*l.scaleY+l.grpYShift,id:i.id,label:i.label}),(0,h.raiseEventGroup)(s.options.id,"markerRollOver",c,o.getFromEnv("chartInstance"),s,a,a,a)},A=function(e){var t,o=this.getFromEnv("chart"),r=this.getChildren("mapAnnotations")[0],n=e.markerShape,l=n.getElement(),i=e.config,c=n.data("unfilteredConfig");l&&c.hovereffect&&("circle"===n.config.type&&(t=(0,u.extend2)({fillcolor:n.config.rawColor,fillalpha:n.config.rawAlpha,fillangle:n.config.rawAngle,fillratio:n.config.rawRatio,gradientUnits:"objectBoundingBox",radialGradient:"radial"===n.config.rawFillPattern},c._defaultattrs)),t=(0,u.extend2)({},c._defaultattrs),r.update(n.getId(),t)),(0,h.raiseEventGroup)(i.id,"markerRollOut",c._markerEventArgs,o.getFromEnv("chartInstance"),a,a,a)},E=function(e,t){var o=t.config.options,r=this.getFromEnv("chart"),a=t.markerShape,n=a.config,l=a.groupConfig,i=this.getFromEnv("linkClickFN"),c=a.config.link,s=n._markerEventArgs;c&&i&&i.call({link:c},!0),s||(s=n._markerEventArgs={x:+n.x,y:+n.y,scaledX:n.x*l.scaleX,scaledY:n.y*l.scaleY,chartX:n.x*l.scaleX+l.grpXShift,chartY:n.y*l.scaleY+l.grpYShift,id:o.id,label:o.label}),r.fireChartInstanceEvent("markerClick",s,e)},L=function(e,t){var o,r=e&&e.length||!1,n=t||"id",l={};if(!e)return e;for(;r--;)(o=e[r])[n]!==a&&(l[o[n].toLowerCase()]=o);return l},x=function(e,t,o){return{x:e.toString(),y:(t-o).toString(),align:m,valign:"top"}},N=function(e,t,o){return{x:(e-o).toString(),y:t.toString(),align:"right",valign:f}},S=function(e,t,o){return{x:(e+o).toString(),y:t.toString(),align:"left",valign:f}},_=function(e,t,o){return{x:e.toString(),y:(t+o).toString(),align:m,valign:"bottom"}},T=function(e,t){return{x:e.toString(),y:t.toString(),align:m,valign:f}},I=function(){return arguments[1]},M=function(e,t){return e-t},O=function(e,t){return 2*C(t,e-t)},P=function(){return arguments[1]},B=function(e,t){return 2*C(t,e-t)},D=function(e,t){return e-t};(0,s.addDep)({name:"mapsAnimation",type:"animationRule",extension:d["default"]});var R=function(e){function t(){var t;return(t=e.call(this)||this).components={},t.getLabelAlignment={top:x,left:N,right:S,bottom:_,center:T},t.getWrapWidth={right:I,left:M,center:O},t.getWrapHeight={top:P,middle:B,bottom:D},t.hoverFn=w,t.hoverOutFn=A,t.clickFn=E,t}(0,n["default"])(t,e);var o=t.prototype;return o.getName=function(){return"markers"},o.getType=function(){return"dataset"},o.configureAttributes=function(e){if(e){this.JSONData=e;var t,o=this,r=o.getChildren("mapAnnotations")&&o.getChildren("mapAnnotations")[0],a=o.getFromEnv("chart").config.markerOpts;r||(t=new c["default"],o.attachChild(t,"mapAnnotations"),r=o.getChildren("mapAnnotations")[0]),r.destroy(),o.calculateDataLimits(),a.dataEnabled?this._parseMarkers():this.defineMarkersNShapes(),this.configureConnectors()}},o.calculateMarkerRadiusLimits=function(){if(this.JSONData){var e=this,o=e.JSONData,r=e.config,a=e.getFromEnv("chart"),n=a.config.width,l=a.config.height,i=o.markermaxradius,c=o.markerminradius,s=t.getMarkerRadiusLimits(n,l,i,c);r.minRadius=s.min,r.maxRadius=s.max}},o.calculateDataLimits=function(){var e,t,o,r,a=this.getFromEnv("chart"),n=this.config,l=(a.jsonData.markers||{})[F]||[],i=this.getFromEnv("number-formatter"),c=+Infinity,s=-Infinity;for(r=0,t=l.length;r<t;r++)o=l[r].value,null!==(e=i.getCleanValue(o))&&(c=C(e,c),s=y(e,s));n.min=c,n.max=s},o._parseMarkers=function(){var e,o,r,n,l,i,c,s,d=this,h=d.getFromEnv("chart"),p=h.jsonData.markers,f=p[F],m=p.shapes,b=h.config.markerOpts,k=b.dataLabels.style,v=this.getFromEnv("number-formatter"),C=d.components.shapeObjs={},y=d.components.markerObjs={};if(f&&f.length){if(m&&m.length)for(o=m.length;o;o-=1)(s=(n=m[o-1]).id.toLowerCase())&&(C[s]=n);for(o=f.length;o--;)(s=(n=f[o]).id&&n.id.toLowerCase())&&((e=n.value)!==a&&""!==e&&(e=parseFloat(e)),(l=(r=t._initializeMarkerItem(s,n,null,h)).config.options.shapeid)&&"string"==typeof l&&(l=l.toLowerCase()),c=(i=r.config).options,i.cleanValue=v.getCleanValue(e),null!==i.cleanValue?i.formattedValue=v.dataLabels(e):i.formattedValue=a,i.fillColor=(0,u.pluck)(c.fillcolor,c.color,b.fillColor),i.fillAlpha=(0,u.pluck)(c.fillalpha,c.alpha,b.fillAlpha),i.fillRatio=(0,u.pluck)(c.fillratio,b.fillRatio),i.fillAngle=(0,u.pluck)(c.fillangle,b.fillAngle),i.borderThickness=(0,u.pluckNumber)(c.borderthickness,b.borderThickness),i.borderColor=(0,u.pluck)(c.bordercolor,b.borderColor),i.borderAlpha=(0,u.pluck)(c.borderalpha,b.borderAlpha),i.labelPadding=c.labelpadding||b.labelPadding,i.fontColor=(0,u.pluck)(c.labelcolor,k.fontColor),i.labelBgColor=(0,u.pluck)(c.labelbgcolor,k.labelBgColor)||g,i.labelBorderColor=(0,u.pluck)(c.labelbordercolor,k.labelBorderColor)||g,n.__hideMarker&&(r._isHidden=!0),l&&(r.shapeObj=C[l]),y[s]=r)}},o.defineMarkersNShapes=function(){var e,o,r,n,l,i,c,s,d=this,h=d.getFromEnv("chart"),p=h.jsonData.markers,g=p.definition,f=this.getFromEnv("number-formatter"),m=h.config.markerOpts,b=m.dataLabels.style,k=L(g)||{},v=L(p.application)||{},C=p.shapes,y=d.components.shapeObjs=d.components.shapeObjs||(d.components.shapeObjs={}),F=d.components.markerObjs=d.components.markerObjs||(d.components.markerObjs={}),w={},A={};if(g&&g.length){for(n in y)w[n]=!1;for(n in F)A[n]=!1;if(C&&C.length)for(n=C.length;n;n-=1)(s=(i=C[n-1]).id.toLowerCase())&&(y[s]=i,w[s]=!0);for(s in k)i=k[s],l=F[s]=t._initializeMarkerItem(s,i,v[s],h),A[s]=!0,c=l.config.options.shapeid,o=l.config,r=i.value,o.cleanValue=f.getCleanValue(r),e=o.options,null!==o.cleanValue?o.formattedValue=f.dataLabels(r):o.formattedValue=a,o.fillColor=(0,u.pluck)(e.fillcolor,e.color,m.fillColor),o.fontColor=(0,u.pluck)(e.labelcolor,b.fontColor),o.fillAlpha=(0,u.pluck)(e.fillalpha,e.alpha,m.fillAlpha),o.fillRatio=(0,u.pluck)(e.fillratio,m.fillRatio),o.fillAngle=(0,u.pluck)(e.fillangle,m.fillAngle),o.borderThickness=(0,u.pluckNumber)(e.borderthickness,m.borderThickness),o.borderColor=(0,u.pluck)(e.bordercolor,m.borderColor),o.borderAlpha=(0,u.pluck)(e.borderalpha,m.borderAlpha),o.labelPadding=e.labelpadding||m.labelPadding,o.options.tooltext=(0,u.pluck)(e.tooltext,m.tooltext),o.link=e.link,c&&(l.shapeObj=y[c.toLowerCase()]);for(n in w)w[n]||delete y[n];for(n in F)A[n]||delete F[n]}},t.getMarkerRadiusLimits=function(e,t,o,r){var a,n,l=C(e,t),i=.02*l,c=.07*l;return a=parseFloat(r),n=parseFloat(o),isNaN(a)||isNaN(n)?isNaN(a)?isNaN(n)?{min:i,max:c}:{min:parseInt(n/10,10),max:n}:{min:a,max:10*a}:a<n?{min:a,max:n}:{min:n,max:a}},o.getDataLimits=function(){var e=this.config;return{min:e.min,max:e.max}},t._initializeMarkerItem=function(e,t,o){var r,a={},n=a.config;return n||(n=a.config={}),n.id=e,n.definition=t,n.application=o,n.hasValue=null,n.value=null,n.options=null,n.label=null,n.markerShape=null,n.markerLabel=null,n.drawOptions={shape:null,label:null},n.drawComplete=!1,r=a.config.options=(0,u.extend2)({},n.definition),n.dataEnabled?isNaN(r.value)||""===r.value||(a.value=parseFloat(r.value),a.hasValue=!0):(n.applyAll||o)&&(n.options=(0,u.extend2)(r,n.application)),a},o.configureConnectors=function(){var e,t,o,r,a,n,l,i,c,s,d,h,p,b,k=this,v=k.getFromEnv("chart"),C=k.getChildren("mapAnnotations")[0],y=v.jsonData,F=k.components,w=y.markers||{},A=w.connector||w.connectors||[],E=F.markerObjs,L=A.length,x=k.components.connectors,N=function(e){return function(t){var o=this.data("unfilteredConfig");o.hoverEffect&&C.update(this.getId(),o._hoverAttrs),v.fireChartInstanceEvent("connectorrollover",e,t)}},S=function(e){return function(t){var o=this.data("unfilteredConfig");o.hoverEffect&&C.update(this.getId(),o._defaultAttrs),v.fireChartInstanceEvent("connectorrollout",e,t)}},_=function(e){return function(t){v.fireChartInstanceEvent("connectorClick",e,t)}},T=v.config.connectorOpts,I={};for(x=k.components.connectors=[],b=0;b<L;b++)((p=A[b]).from||p.to)&&(t=E[p.from.toLowerCase()],o=E[p.to.toLowerCase()],t&&o&&(r=A[b].label,!(I=x[b])&&(I=x[b]={}),!I.config&&(e=I.config={}),!I.graphics&&(I.graphics={}),(e=I.config=(0,u.extend2)({},p)).fromMarker=t,e.toMarker=o,e.link=p.link,e.showTooltip=(0,u.pluckNumber)(p.showtooltip,T.showTooltip),a=e.tooltext=e.showTooltip?(0,u.pluck)(p.tooltext,T.tooltext):g,n=e.thickness=(0,u.pluck)(p.thickness,T.thickness),l=e.color=(0,u.pluck)(p.color,T.color),i=e.alpha=(0,u.pluck)(p.alpha,T.alpha),e.hoverEffect=(0,u.pluckNumber)(p.showhovereffect,T.showHoverEffect),c=(0,u.pluck)(p.hovercolor,T.hoverColor,l),s=(0,u.pluck)(p.hoveralpha,T.hoverAlpha,i),d=(0,u.pluck)(p.hoverthickness,T.hoverThickness,n),e.dashed=(0,u.pluck)(p.dashed,T.dashed),e.dashLen=(0,u.pluckNumber)(p.dashlen,T.dashlen),e.dashGap=(0,u.pluckNumber)(p.dashgap,T.dashgap),a&&(e.tooltext=a=(0,u.parseUnsafeString)((0,u.parseTooltext)(a,[3,40,41,42,43],{label:r,fromId:t.config.definition.id,toId:o.config.definition.id,fromLabel:t.config.definition.label,toLabel:o.config.definition.label},undefined),!1)),e.eventArgs={fromMarkerId:t.config.id,toMarkerId:o.config.id,label:r},e._hoverAttrs={color:c,alpha:s,thickness:d},e._defaultAttrs={color:l,alpha:i,thickness:n},e.type="line",e.onclick=_(e.eventArgs),e.onmouseover=N(e.eventArgs),e.onmouseout=S(e.eventArgs),r&&(!(h=I.labelConfig)&&(h=I.labelConfig={}),h.type="text",h.text=r,h.align=m,h.valign=f,h.font=T.font,h.fillcolor=(0,u.pluck)(p.labelcolor,T.fontColor),h.bgcolor=(0,u.pluck)(p.labelbgcolor,T.labelBgColor),h.bordercolor=(0,u.pluck)(p.labelbordercolor,T.labelBorderColor),h.tooltext=e.tooltext)))},o.draw=function(){var e,t,o,r,a,n,l,i,c=this,s=c.getFromEnv("chart"),d=c.config,u=c.getChildren("mapAnnotations")[0],h=c.components.markerObjs,g=s.config,f=g.markerOpts,m=g.scalingParams,b=s.config.annotationConfig,k=[],v=[],C={},y={};for(a in u.destroy(),c.createContainer(),c._drawConnectors(),c.imageLoadCount=0,c.imageCount=0,d.autoScale=f.autoScale?m.sFactor:1,h)e=null,(r=(t=h[a]).config).conIsHidden||(e=this._drawMarkerItem(t)),e&&(y[a]=e,r._annotationIndex=k.length,C[a]=t,e.markerShape&&(o=Object.assign({align:"center",valign:"middle",animationLabel:"markerItem",autoscale:"image"===e.markerShape.type?0:1},e.markerShape),k.push(o)),e.markerLabel&&(o=Object.assign({animationLabel:"markerItem",id:e.markerShape.id},e.markerLabel),v.push(o)));for(a in i=u.addGroup(Object.assign(b,{id:"markers",fillalpha:"100",items:k,scaleimages:1}),c),l=u.addGroup(Object.assign(b,{id:"markerLabels",items:v,scaleimages:1}),c),c.components.markerGroup=i,c.components.markerLabelGroup=l,n=0,h)y[a]&&((t=h[a]).markerShape=i.retrieveItem(k[n].id),t.markerShape.data("unfilteredConfig",k[n]),y[a].markerLabel&&(t.markerLabel=l.retrieveItem(k[n].id),t.markerLabel.data("unfilteredConfig",v[n])),n++);c.addJob("buildKdtree",c._buildKdTree.bind(c),p.priorityList.kdTree)},o._buildKdTree=function(){var e,t,o=this,r=o.components.kdArrayMap,a=o.components.markerGroup,n=[],l=a&&a.items,c=l&&l.length||0;for(t=0;t<c;t++)r[e=l[t].config.id]&&n.push(r[e]);o.components.kDTree||(o.components.kDTree=new i["default"](!0)),o.components.kDTree._setSearchLimit(Infinity,Infinity),o.components.kDTree.buildKdTree(n)},o._drawMarkerItem=function(e){var t,o,r,n,l,i,c,s,d,h,p,f,m,v,C,y,F,w,A=this,E=A.getFromEnv("chart"),L=E.config,x=A.config,N=L.scalingParams,S=e.config,_=S.options,T=S.definition,I=L.markerOpts,M=I.dataLabels.style,O=_.shapeid,P=_.scale||1,B=_.label||g,D=E.config.scalingParams.scaleFactor*E.config.baseScaleFactor,R=(_.labelpos||"top").toLowerCase(),j=S.formattedValue===a?a:S.formattedValue,V=_.tooltext||I.tooltext,G=(0,u.pluckNumber)(T.radius,S.radius,I.radius)*P*x.autoScale||1e-4,H=S.fillColor,W=S.fillAlpha,z=S.fillRatio,X=S.fillAngle,Y=S.borderThickness,K=S.borderColor,J=S.borderAlpha,U=A.getChildren("mapAnnotations")[0],Z=A.components.kdArrayMap||(A.components.kdArrayMap={}),$=e.config.id;if(S.autoScale=I.autoScale?D:1,O)return V=V?(0,u.parseUnsafeString)((0,u.parseTooltext)(V,[1,2,3],{formattedValue:j,label:B},_),!1):j?B+I.tooltipSepChar+j:B,j!==a&&null!==j?B=B+I.labelSepChar+j:isNaN(P)?P=1:P<0?P=0:P>5&&(P=5),(0,u.extend2)(_,{x:_.x&&_.x.toString(),y:_.y&&_.y.toString(),fillcolor:H,fillalpha:W,fillratio:z,fillangle:X,borderthickness:Y,bordercolor:K,borderalpha:J,hovereffect:(0,u.pluck)(I.showHoverEffect),radius:G&&G.toString(),link:_.link,showshadow:(0,u.pluckNumber)(_.showshadow,S.shadow),_markerLabel:B,_markerId:_.id,id:(_.id+g).toLowerCase()}),delete _.tooltext,S.tooltext=!!I.showTooltip&&V,m=Number(_.x)*N.sFactor+N.translateX,v=Number(_.y)*N.sFactor+N.translateY,G=_.radius,"triangle"===O?((0,u.extend2)(_,{type:"polygon",sides:3,startangle:I.startAngle}),w=b,F=3):"diamond"===O?((0,u.extend2)(_,{type:"polygon",sides:4,startangle:I.startAngle}),w=b,F=4):"arc"===O?(y=.6*G,(0,u.extend2)(_,{type:"arc",startangle:0,endangle:360,innerradius:y}),w="arc"):"circle"===O?(_.type=k,w=k):(p=A.getShapeArgs.call(e),I.dataEnabled&&I.valueToRadius&&_.radius!==a?delete p.radius:(!p.radius&&(p.radius=I.radius),p.radius*=P*S.autoScale),(0,u.extend2)(_,p),_.id=_._markerId&&_._markerId.toLowerCase(),y=p.innerradius,p.radius&&(G=p.radius),w=p.type&&p.type.toLowerCase(),F=p.sides,(G=Number(G))&&y&&G<y&&(f=G,_.radius=G=y,_.innerradius=y=f)),_.type=_.type&&_.type.toLowerCase(),(0,u.extend2)(_,{hoverfillcolor:(0,u.pluck)(_.fillhovercolor,I.hoverFillColor,_.fillcolor),hoverfillalpha:(0,u.pluck)(_.fillhoveralpha,I.hoverFillAlpha,_.fillalpha),hoverfillratio:(0,u.pluck)(_.fillhoverratio,I.hoverFillRatio,_.fillratio),hoverfillangle:(0,u.pluck)(_.fillhoverangle,I.hoverFillAngle,_.fillangle),hoverborderthickness:(0,u.pluckNumber)(_.borderhoverthickness,I.hoverBorderThickness,_.borderthickness),hoverbordercolor:(0,u.pluck)(_.borderhovercolor,I.hoverBorderColor,_.bordercolor),hoverborderalpha:(0,u.pluck)(_.borderhoveralpha,I.hoverBorderAlpha,_.borderalpha)}),_._hoverattrs={fillalpha:_.hoverfillalpha,fillcolor:_.hoverfillcolor,fillangle:_.hoverfillangle,fillratio:_.hoverfillratio,borderThickness:"0"!==_.showborder?_.hoverborderthickness:0,borderColor:_.hoverbordercolor,borderAlpha:_.hoverborderalpha},_._defaultattrs={fillalpha:_.fillalpha,fillcolor:_.fillcolor,fillangle:_.fillangle,fillratio:_.fillratio,borderThickness:"0"!==_.showborder?_.borderthickness:0,borderColor:_.bordercolor,borderAlpha:_.borderalpha},"image"===_.type?(_.borderthickness=_.borderthickness||0,_.onload=function(t){var o=t.width,r=t.height;C={},_=this.config,m=(Number(_.derivedX)-o/(2*N.sFactor))*N.sFactor,v=(Number(_.derivedY)-r/(2*N.sFactor))*N.sFactor,(C=Z[$]||(Z[$]={})).x=m+N.translateX,C.y=v+N.translateY,C.element=e,C.shapeInfo={type:"rect",width:o,height:r},o&&r&&U.update(this.getId(),{x:m,y:v,width:o,height:r,autoscale:0}),A.imageLoadCount++,A.imageLoadCount===A.imageCount&&A._buildKdTree()},_.onerror=function(){A.imageLoadCount++,A.imageLoadCount===A.imageCount&&A._buildKdTree()},A.imageCount++):((C=Z[$]||(Z[$]={})).x=m,C.y=v,C.element=e,C.shapeInfo={type:w,sides:F,radius:Number(G)+_.borderthickness/2,innerradius:y}),S.drawOptions.shape=_,I.showLabels?(h=_.labelpadding||I.labelPadding,o=(t=A._getLabelOptions(R,h,_)).align,r=t.valign,n=S._labelBaseWidth,l=S._labelBaseHeight,i=S._labelXOffset,c=S._labelYOffset,(s=I.labelWrapWidth?I.labelWrapWidth:A.getWrapWidth[o](n,Number(t.x)+i))>h&&(s-=h),(d=I.labelWrapHeight?I.labelWrapHeight:A.getWrapHeight[r](l,Number(t.y)+c))>h&&(d-=h),S.drawOptions.label=(0,u.extend2)({type:"text"},{text:B,tooltext:_.tooltext,x:t.x,y:t.y,align:o,valign:t.valign,wrap:1,wrapwidth:s,wrapheight:d,fontsize:M.fontSize/N.sFactor,font:M.fontFamily,color:S.fontColor,bgcolor:S.labelBgColor||g,bordercolor:S.labelBorderColor||g}),{markerShape:_,markerLabel:S.drawOptions.label}):{markerShape:_}},o.highlightPoint=function(e,t){var o=e.element,r=this,a=t.originalEvent,n=r.getFromEnv("chart"),l=r.getFromEnv("toolTipController"),i=r.config.currentToolTip,c=n.config.lastHoveredPoint;c&&c!==e&&(c&&r.hoverOutFn(c.element),n.config.lastHoveredPoint=null,l.hide(i)),!1!==e&&("click"===t.type||"touchstart"===t.type?(n.config.lastHoveredPoint!==e&&r.hoverFn(o),r.clickFn(t,o)):"mousemove"===t.type&&n.config.lastHoveredPoint!==e&&r.hoverFn(o),o.config.tooltext&&(i?l.draw(a,o.config.tooltext,i):i=r.config.currentToolTip=l.draw(a,o.config.tooltext)),n.config.lastHoveredPoint=e)},o._drawConnectors=function(){var e,t,o,r,a,n,l,i,c,s,d,u,h,p=this,g=p.getFromEnv("chart"),f=g.config.annotationConfig,m=p.components.connectors||(p.components.connectors=[]),b=m.length,k=g.config.scalingParams,v=g.config.connectorOpts,C=v.showLabels,y=p.getChildren("mapAnnotations")[0],F=[],w=[],A=[],E={};for(A.push({id:"connectorLabels",fillalpha:"100",items:w}),A.push({id:"connectors",fillalpha:"100",items:F}),o=0;o<b;o++)m[o]&&(E[o]=!0,c=m[o].config.fromMarker.config,s=m[o].config.toMarker.config,a=c.options.x,n=c.options.y,l=s.options.x,i=s.options.y,m[o].config.x=a,m[o].config.y=n,m[o].config.tox=l,m[o].config.toy=i,h=Object.assign({animationLabel:"markerItem"},m[o].config),F.push(h),m[o].labelConfig&&C&&(m[o].labelConfig.x=((Number(a)+Number(l))/2).toString(),m[o].labelConfig.y=((Number(n)+Number(i))/2).toString(),m[o].labelConfig.fontsize=v.fontSize/(k.scaleFactor*g.config.baseScaleFactor),h=Object.assign({animationLabel:"markerItem"},m[o].labelConfig),w.push(h)));for(d=y.addGroup(Object.assign(f,A[1]),p),u=y.addGroup(Object.assign(f,A[0]),p),o=0,r=0;o<b;o++)E[o]&&((e=d.items[r])&&(e.data("unfilteredConfig",F[r]),e.addEventListener("fc-mouseover",m[o].config.onmouseover),e.addEventListener("fc-mouseout",m[o].config.onmouseout),e.addEventListener("fc-click",m[o].config.onclick)),m[o].labelConfig&&C&&(t=u.items[r])&&t.data("unfilteredConfig"),r++)},o.getShapeArgs=function(){var e,t=this.config,o=(0,u.extend2)({},this.shapeObj);return t.autoScale=1,o?("polygon"===o.type?o.sides<3?o.type=k:o.startangle=t.startAngle:"arc"===o.type&&(e=(o.radius||t.markerRadius)*t.autoScale,o.radius=e,o.innerradius=o.innerradius&&o.innerradius*t.autoScale||.6*e),o):null},o._getLabelOptions=function(e,t,o,r,n){var l,i,c,s=e&&e.toLowerCase();return this.getLabelAlignment[s]||(s="center"),i=Number(o.x),c=Number(o.y),l=r===a||n===a?o.radius||0:/^(top|bottom)$/gi.test(s)&&.5*n||/^(left|right)$/gi.test(s)&&.5*r||0,l=Number(l)+Number(t),this.getLabelAlignment[s](i,c,l)},o.addMarkerItem=function(e){var o,r,n,l,i,c,s,d,h=this,p=h.getFromEnv("chart"),g=e,f=h.components.markerObjs,m=h.components.shapeObjs,b=h.components.markerGroup,k=h.components.markerLabelGroup,v=h.getChildren("mapAnnotations")[0],C=h.getFromEnv("number-formatter"),y=p.config.markerOpts;if(d=g.id.toLowerCase()){if(f[d])return;delete g.value,h.imageLoadCount=0,(o=t._initializeMarkerItem(d,g,null)).dataset=h,s=o.config.options.shapeid,l=o.config,c=g.value,l.cleanValue=C.getCleanValue(c),r=l.options,null!==l.cleanValue?l.formattedValue=C.dataLabels(c):l.formattedValue=a,l.fillColor=(0,u.pluck)(r.fillcolor,r.color,y.fillColor),l.fillAlpha=(0,u.pluck)(r.fillalpha,r.alpha,y.fillAlpha),l.fillRatio=(0,u.pluck)(r.fillratio,y.fillRatio),l.fillAngle=(0,u.pluck)(r.fillangle,y.fillAngle),l.borderThickness=(0,u.pluckNumber)(r.borderthickness,y.borderThickness),l.borderColor=(0,u.pluck)(r.bordercolor,y.borderColor),l.borderAlpha=(0,u.pluck)(r.borderalpha,y.borderAlpha),l.labelPadding=r.labelpadding||y.labelPadding,l.options.tooltext=(0,u.pluck)(r.tooltext,y.tooltext),l.link=r.link,s&&(o.shapeObj=m[s&&s.toLowerCase()]),f[d]=o,n=h._drawMarkerItem(o),b&&k&&(n.markerShape&&(i=Object.assign({align:"center",valign:"middle",animationLabel:"markerItem",autoscale:"image"===n.markerShape.type?0:1},n.markerShape),o.markerShape=v.addItem(b.getId(),i,h),o.markerShape.data("unfilteredConfig",i)),n.markerLabel&&(i=Object.assign({animationLabel:"markerItem"},n.markerLabel),o.markerLabel=v.addItem(k.getId(),i,h),o.markerLabel.data("unfilteredConfig",i))),h._buildKdTree()}},o.updateMarkerItem=function(e,t){var o,r,a,n,l=this,i=l.getFromEnv("chart"),c=l.getChildren("mapAnnotations")[0],s=l.components.markerObjs,d=i.config.markerOpts,h={},p=s[e];if(p){for(r in o=p.config.options,(0,u.extend2)(o,t),l.imageLoadCount=0,a=p.config,t)h[r.toLowerCase()]=t[r]&&t[r].toString();a.fillColor=(0,u.pluck)(h.fillcolor,h.color,d.fillColor),a.fillAlpha=(0,u.pluck)(h.fillalpha,h.alpha,d.fillAlpha),a.fillRatio=(0,u.pluck)(h.fillratio,d.fillRatio),a.fillAngle=(0,u.pluck)(h.fillangle,d.fillAngle),a.borderThickness=(0,u.pluckNumber)(h.borderthickness,d.borderThickness),a.borderColor=(0,u.pluck)(h.bordercolor,d.borderColor),a.borderAlpha=(0,u.pluck)(h.borderalpha,d.borderAlpha),a.labelPadding=h.labelpadding||d.labelPadding,a.options.tooltext=(0,u.pluck)(h.tooltext,d.tooltext),a.link=h.link,n=l._drawMarkerItem(p).markerShape,l._buildKdTree(),c.update(e,n)}},o.createContainer=function(){var e=this,t=e.getLinkedParent(),o=e.getFromEnv("animationManager"),r=t.getChildContainer("layer1");!e.getChildContainer("abovePlotGroup")&&e.addChildContainer("abovePlotGroup",o.setAnimation({el:"group",attr:{name:"abovePlotGroup",opacity:1},container:r,component:e,label:"group"})),!e.getChildContainer("belowPlotGroup")&&e.addChildContainer("belowPlotGroup",o.setAnimation({el:"group",attr:{name:"belowPlotGroup",opacity:1},container:r,component:e,label:"group"}))},o._removeMarkerItem=function(e){var t,o,r=this,a=r.components,n=a.markerObjs,l=n[e],i=a.kdArrayMap,c=r.getChildren("mapAnnotations")[0];l&&(t=l.markerShape,o=l.markerLabel,t&&c.destroy(t.getId()),o&&c.destroy(o.getId()),delete i[e],r._buildKdTree()),delete n[e]},o.getElement=function(e){if(this.components.kDTree)return this.components.kDTree.getNeighbour(e)},t}(l["default"]);t["default"]=R},1647:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=function(e){var t,o=e.getFromEnv("dataSource"),r=o.data||{},c=o.markers;(0,a.componentFactory)(e,i["default"],"mapGroup"),t=e.getChildren("mapGroup")[0],(0,a.datasetFactory)(t,n["default"],"entities",1,[r]),c?(0,a.datasetFactory)(t,l["default"],"markers",1,[c]):e.getDatasets()[1]&&e.getDatasets()[1].remove()};var a=o(274),n=r(o(1648)),l=r(o(1650)),i=r(o(1651))},1645:(e,t,o)=>{var r=o(269);t.__esModule=!0,t["default"]=void 0;var a=r(o(1646));t.Maps=a["default"];var n={name:"maps",type:"package",requiresFusionCharts:!0,extension:function(e){return e.addDep(a["default"])}};t["default"]=n}}])}));
//# sourceMappingURL=http://localhost:3052/4.1.0/map/eval/fusioncharts.maps.js.map