quoslibero
Version:
FusionCharts JavaScript charting framework
1 lines • 75.4 kB
JavaScript
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[14],{1076:function(e,t,o){"use strict";t.__esModule=!0,t.Maps=undefined;var r,a=o(1077),i=(r=a)&&r.__esModule?r:{"default":r};t.Maps=i["default"],t["default"]={name:"maps",type:"package",requiresFusionCharts:!0,extension:function(e){return e.addDep(i["default"])}}},1077:function(e,t,o){"use strict";t.__esModule=!0;var r=u(o(458)),a=o(138),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t["default"]=e,t}(o(372)),n=u(o(127)),l=o(131),s=o(125),c=u(o(1078)),d=u(o(362)),h=u(o(899)),p=u(o(903));function u(e){return e&&e.__esModule?e:{"default":e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var o=Object.getOwnPropertyNames(t),r=0;r<o.length;r++){var a=o[r],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&e[a]===undefined&&Object.defineProperty(e,a,i)}}(e,t))}var b=(0,s.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),v="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"},y={getMapName:function(){return this.jsVars.instanceAPI.getName().toLowerCase()},getEntityList:function(){var e=this.jsVars.instanceAPI.getDatasets()||[],t=void 0,o=void 0,r=void 0,a=e.length,i=[],n=void 0,l=void 0;for(t=0;t<a;t++)if("entities"===(r=e[t]||[]).getName()){o=r;break}for(t in a=(n=o.components.data).length,n)n.hasOwnProperty(t)&&(l=(n[t]||{}).config||{},i.push({id:l.id,originalId:l.originalId||l.id,label:l.label,shortlabel:l.shortLabel,value:l.value,formattedValue:l.formattedValue,toolText:l.toolText}));return i},getMapAttribute:function(){return(0,l.raiseWarning)(this,"12061210581","run","JavaScriptRenderer~getMapAttribute()",'Use of deprecated "getMapAttribute()". Replace with "getChartAttribute()".'),this.getChartAttribute.apply(this,arguments)},exportMap:function(){return(0,l.raiseWarning)(this,"12061210581","run","JavaScriptRenderer~exportMap()",'Use of deprecated "exportMap()". Replace with "exportChart()".'),this.exportChart&&this.exportChart.apply(this,arguments)},addMarker:function(e){var t=this.jsVars.instanceAPI.getDatasets()||[],o=t.length,r=void 0,a=void 0,i=void 0;for(r=0;r<o;r++)if("markers"===(a=t[r]||[]).getName()){i=a;break}i&&!i.addMarkerItem(e)&&(0,l.raiseWarning)(this,"1309264086","run","MapsRenderer~addMarker()","Failed to add marker. Check the options and try again.")},updateMarker:function(e,t){var o=this.jsVars.instanceAPI.getDatasets()||[],r=o.length,a=void 0,i=void 0,n=void 0;for(a=0;a<r;a++)if("markers"===(i=o[a]||[]).getName()){n=i;break}n&&e&&(e=(e+C).toLowerCase(),n.updateMarkerItem(e,t))},removeMarker:function(e){var t=this.jsVars.instanceAPI.getDatasets()||[],o=t.length,r=void 0,a=void 0,i=void 0;for(r=0;r<o;r++)if("markers"===(a=t[r]||[]).getName()){i=a;break}e&&(e=(e+C).toLowerCase(),i._removeMarkerItem(e))}},C="",w=window.Math,F=w.min,A=w.max,E=function(e){function t(o,r){f(this,t);var a,i=g(this,e.call(this));for(a in i.subpalette="",i.key="",i.index=r,o)i.subpalette=b[o[a]],i[a]=i.subpalette instanceof Array?i.subpalette[r]:i.subpalette,i.key=a;return i}return m(t,e),t}(a.ComponentInterface),x=function(e){function t(){f(this,t);var o=g(this,e.call(this));return o.friendlyName="Map",o.revision=1,o.hasCanvas=!0,o.standaloneInit=!1,o.defaultDatasetType="maps",o.defaultSeriesType="geo",o.fireGroupEvent=!0,o.legendposition="right",o.hasGradientLegend=!0,o.isMap=!0,o.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:[v,v,v,v,v],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]},o.colorPaletteMap=k,o.eiMethods=y,o.registerFactory("legend",p["default"],["canvas"]),o.registerFactory("axis",function(){},["canvas"]),o.registerFactory("colormanager-decider",h["default"],["legend"]),o.registerFactory("dataset",c["default"],["colormanager-decider"]),o.registerFactory("canvas",d["default"]),o}return m(t,e),t.prototype._checkInvalidSpecificData=function(){return this.config.invalid=!1,!1},t.prototype.__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"},t.prototype.getName=function(){return this.config.name||"GEO"},t.prototype.getType=function(){return"chartAPI"},t.prototype.configureAttributes=function(t){var o,r=this.getChildren("colorPalette")&&this.getChildren("colorPalette")[0];o=t.chart=t.chart||t.graph||t.map||{},this.jsonData=t,r||(r=new E(this.colorPaletteMap,(o.palette>0&&o.palette<6?o.palette:(0,s.pluckNumber)(this.paletteIndex,1))-1),this.attachChild(r,"colorPalette")),this.config.skipCanvasDrawing=!0,e.prototype.configureAttributes.call(this,t),this._parseBackgroundCosmetics()},t.prototype.parseChartAttr=function(t){var o,r,a,i,n=void 0,l=this.jsonData,c=l.chart||l.map,d=l.markers,h=new E(this.colorPaletteMap,(c.palette>0&&c.palette<6?c.palette:(0,s.pluckNumber)(this.paletteIndex,1))-1),p=(0,s.pluck)(c.entitybordercolor,c.bordercolor,h.plotbordercolor),u=(0,s.pluck)(c.entityfillcolor,c.fillcolor,h.plotfillcolor),f=(0,s.pluck)(c.entityfillalpha,c.fillalpha,h.plotfillalpha),g=(0,s.pluck)(c.entityfillratio,c.fillratio,h.plotfillratio),m=(0,s.pluck)(c.entityfillangle,c.fillangle,h.plotfillangle),b=(0,s.pluck)(c.nullentityfillcolor,c.nullentitycolor,u),v=(0,s.pluckNumber)(c.usevaluesformarkers,l.markers&&l.markers.items&&l.markers.items.length,!(l.markers&&l.markers.application&&l.markers.application.length&&l.markers.definition&&l.markers.definition.length));e.prototype.parseChartAttr.call(this,t),(n=this.config).origMarginTop=(0,s.pluckNumber)(c.charttopmargin,c.maptopmargin,11),n.origMarginLeft=(0,s.pluckNumber)(c.chartleftmargin,c.mapleftmargin,11),n.origMarginBottom=(0,s.pluckNumber)(c.chartbottommargin,c.mapbottommargin,11),n.origMarginRight=(0,s.pluckNumber)(c.chartrightmargin,c.maprightmargin,11),n.labelsOnTop=(0,s.pluckNumber)(c.entitylabelsontop,1),o=(i=n.style).inCancolor,r=i.inCanfontFamily,a=i.inCanfontSize,n.entityOpts={baseScaleFactor:n.baseScaleFactor,dataLabels:{style:{fontFamily:r,fontSize:a,lineHeight:i.inCanLineHeight,color:i.inCancolor}},fillColor:u,fillAlpha:f,fillRatio:g,fillAngle:m,borderColor:p,borderAlpha:(0,s.pluck)(c.entityborderalpha,c.borderalpha,this.borderAlpha,"100"),borderThickness:(0,s.pluckNumber)(c.showentityborder,c.showborder,1)?(0,s.pluckNumber)(c.entityborderthickness,c.borderthickness,1):0,scaleBorder:(0,s.pluckNumber)(c.scaleentityborder,c.scaleborder,0),hoverFillColor:(0,s.pluck)(c.entityfillhovercolor,c.hoverfillcolor,c.hovercolor,h.plothoverfillcolor),hoverFillAlpha:(0,s.pluck)(c.entityfillhoveralpha,c.hoverfillalpha,c.hoveralpha,h.plothoverfillalpha),hoverFillRatio:(0,s.pluck)(c.entityfillhoverratio,c.hoverfillratio,c.hoverratio,h.plothoverfillratio),hoverFillAngle:(0,s.pluck)(c.entityfillhoverangle,c.hoverfillangle,c.hoverangle,h.plothoverfillangle),hoverBorderThickness:(0,s.pluck)(c.entityborderhoverthickness,c.hoverborderthickness),hoverBorderColor:(0,s.pluck)(c.entityborderhovercolor,p,h.plotbordercolor),hoverBorderAlpha:(0,s.pluck)(c.entityborderhoveralpha,h.plotborderalpha),nullEntityColor:b,nullEntityAlpha:(0,s.pluck)(c.nullentityfillalpha,c.nullentityalpha,f),nullEntityRatio:(0,s.pluck)(c.nullentityfillratio,c.nullentityratio,g),nullEntityAngle:(0,s.pluck)(c.nullentityfillangle,c.nullentityangle,m),connectorColor:(0,s.pluck)(c.labelconnectorcolor,c.connectorcolor,o),connectorAlpha:(0,s.pluck)(c.labelconnectoralpha,c.connectoralpha,"100"),connectorThickness:(0,s.pluckNumber)(c.labelconnectorthickness,c.borderthickness,1),showHoverEffect:(0,s.pluckNumber)(c.showentityhovereffect,c.usehovercolor,c.showhovereffect,1),hoverOnNull:(0,s.pluckNumber)(c.hoveronnull,c.entityhoveronnull,1),labelPadding:(0,s.pluckNumber)(c.labelpadding,5),showLabels:(0,s.pluckNumber)(c.showlabels,1),labelsOnTop:(0,s.pluckNumber)(c.entitylabelsontop,1),includeNameInLabels:(0,s.pluckNumber)(c.includenameinlabels,1),includeValueInLabels:(0,s.pluckNumber)(c.includevalueinlabels,0),useSNameInTooltip:(0,s.pluckNumber)(c.usesnameintooltip,0),useShortName:(0,s.pluckNumber)(c.usesnameinlabels,1),labelSepChar:(0,s.pluck)(c.labelsepchar,", "),showTooltip:(0,s.pluckNumber)(c.showentitytooltip,c.showtooltip,1),tooltipSepChar:(0,s.pluck)(c.tooltipsepchar,", "),tooltext:c.entitytooltext,hideNullEntities:(0,s.pluckNumber)(c.hidenullentities,0),showHiddenEntityBorder:(0,s.pluckNumber)(c.showhiddenentityborder,1),showNullEntityBorder:(0,s.pluckNumber)(c.shownullentityborder,1),hiddenEntityColor:(0,s.pluck)(c.hiddenentitycolor,c.hiddenentityfillcolor,c.hiddenentityalpha||c.hiddenentityfillalpha?b:"ffffff"),hiddenEntityAlpha:(0,s.pluck)(c.hiddenentityalpha,c.hiddenentityfillalpha,.001),shadow:(0,s.pluckNumber)(c.showshadow,this.defaultPlotShadow,h.shadow)},n.markerOpts={dataLabels:{style:{fontFamily:(0,s.pluck)(c.markerfont,r),fontSize:(0,s.pluckNumber)(c.markerfontsize,parseInt(a,10)),fontColor:(0,s.pluck)(c.markerfontcolor,o)}},showTooltip:(0,s.pluckNumber)(c.showmarkertooltip,c.showtooltip,1),showLabels:(0,s.pluckNumber)(c.showmarkerlabels,c.showlabels,1),showHoverEffect:(0,s.pluckNumber)(c.showmarkerhovereffect,1),labelPadding:(0,s.pluck)(c.markerlabelpadding,"5"),labelWrapWidth:(0,s.pluckNumber)(c.markerlabelwrapwidth,0),labelWrapHeight:(0,s.pluckNumber)(c.markerlabelwrapheight,0),fillColor:(0,s.pluck)(c.markerfillcolor,c.markerbgcolor,h.markerfillcolor),fillAlpha:(0,s.pluck)(c.markerfillalpha,h.markerfillalpha),fillAngle:(0,s.pluck)(c.markerfillangle,h.markerfillangle),fillRatio:(0,s.pluck)(c.markerfillratio,h.markerfillratio),fillPattern:(0,s.pluck)(c.markerfillpattern,h.markerbgpattern),hoverFillColor:c.markerfillhovercolor,hoverFillAlpha:c.markerfillhoveralpha,hoverFillRatio:c.markerfillhoverratio,hoverFillAngle:c.markerfillhoverangle,borderThickness:(0,s.pluck)(c.markerborderthickness,1),borderColor:(0,s.pluck)(c.markerbordercolor,h.markerbordercolor),borderAlpha:(0,s.pluckNumber)(c.markerborderalpha,h.markerborderalpha),hoverBorderThickness:c.markerborderhoverthickness,hoverBorderColor:c.markerborderhovercolor,hoverBorderAlpha:c.markerborderhoveralpha,radius:(0,s.pluckNumber)(c.markerradius&&(0,s.trimString)(c.markerradius),7),shapeId:(0,s.pluck)(c.defaultmarkershape,"circle"),labelSepChar:(0,s.pluck)(c.labelsepchar,", "),tooltipSepChar:(0,s.pluck)(c.tooltipsepchar,", "),autoScale:(0,s.pluckNumber)(c.autoscalemarkers,0),tooltext:(0,s.pluck)(d&&d.tooltext,c.markertooltext),dataEnabled:v,valueToRadius:(0,s.pluckNumber)(c.markerradiusfromvalue,1),valueMarkerAlpha:(0,s.pluck)(c.valuemarkeralpha,"75"),hideNull:(0,s.pluckNumber)(c.hidenullmarkers,0),nullRadius:(0,s.pluckNumber)(c.nullmarkerradius,c.markerradius,7),adjustViewPort:(0,s.pluckNumber)(c.adjustviewportformarkers,0),startAngle:(0,s.pluckNumber)(c.markerstartangle,90),maxRadius:(0,s.pluckNumber)(c.maxmarkerradius,0),minRadius:(0,s.pluckNumber)(c.minmarkerradius,0),applyAll:(0,s.pluckNumber)(c.applyallmarkers,0),shadow:(0,s.pluckNumber)(c.showmarkershadow,c.showshadow,0)},n.connectorOpts={showHoverEffect:(0,s.pluckNumber)(c.showconnectorhovereffect,1),thickness:(0,s.pluckNumber)(c.connectorthickness,c.markerconnthickness,"2"),color:(0,s.pluck)(c.connectorcolor,c.markerconncolor,h.markerbordercolor),alpha:(0,s.pluck)(c.connectoralpha,c.markerconnalpha,"100"),hoverThickness:(0,s.pluckNumber)(c.connectorhoverthickness,c.connectorthickness,c.markerconnthickness,"2"),hoverColor:(0,s.pluck)(c.connectorhovercolor,c.connectorcolor,c.markerconncolor,h.markerbordercolor),hoverAlpha:(0,s.pluck)(c.connectorhoveralpha,c.connectoralpha,c.markerconnalpha,"100"),dashed:(0,s.pluckNumber)(c.connectordashed,c.markerconndashed,0),dashLen:(0,s.pluckNumber)(c.connectordashlen,c.markerconndashlen,3),dashGap:(0,s.pluckNumber)(c.connectordashgap,c.markerconndashgap,2),font:(0,s.pluck)(c.connectorfont,c.markerconnfont,r),fontColor:(0,s.pluck)(c.connectorfontcolor,c.markerconnfontcolor,o),fontSize:(0,s.pluckNumber)(c.connectorfontsize,c.markerconnfontsize,parseInt(a,10)),showLabels:(0,s.pluckNumber)(c.showconnectorlabels,c.showmarkerlabels,c.showlabels,1),labelBgColor:(0,s.pluck)(c.connectorlabelbgcolor,c.markerconnlabelbgcolor,h.plotfillcolor),labelBorderColor:(0,s.pluck)(c.connectorlabelbordercolor,c.markerconnlabelbordercolor,h.markerbordercolor),shadow:(0,s.pluckNumber)(c.showconnectorshadow,c.showmarkershadow,c.showshadow,0),showTooltip:(0,s.pluckNumber)(c.showconnectortooltip,c.showmarkertooltip,c.showtooltip,1),tooltext:(0,s.pluck)(d&&d.connectortooltext,c.connectortooltext),hideOpen:(0,s.pluckNumber)(c.hideopenconnectors,1)},n.adjustViewPortForMarkers=(0,s.pluckNumber)(c.adjustviewportformarkers,v)},t.prototype._attachMouseEvents=function(){var e=this.getFromEnv("eventListeners"),o=this.getFromEnv("chart-container");e.push(n["default"].listen(o,s.hasTouch?"touchstart":"click",t.searchMouseMove,this)),e.push(n["default"].listen(window.document,s.hasTouch?"touchstart":"mousemove",t.searchMouseMove,this))},t.prototype._dispose=function(){var o=this.getFromEnv("chart-container");s.hasTouch&&(n["default"].unlisten(o,"touchstart",t.searchMouseMove),n["default"].unlisten(window.document,"touchstart",t.searchMouseMove)),n["default"].unlisten(o,"click",t.searchMouseMove),n["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],i=a&&a.getFromEnv("toolTipController"),n=a&&a.config.currentToolTip,l=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,s.getMouseCoordinate)(t.getFromEnv("chart-container"),e,t),r=o.chartX,a=o.chartY,i=t.config,n=i.canvasLeft,l=i.canvasTop,c=i.canvasLeft+i.canvasWidth,d=i.canvasHeight+i.canvasTop;return o.insideCanvas=!1,o.originalEvent=e,r>n&&r<c&&a>l&&a<d&&(o.insideCanvas=!0),o}(e,o))&&t.insideCanvas?(r.lastMouseEvent=e,c={x:t.chartX,y:t.chartY},o._searchNearestNeighbour(c,e)):(l&&a&&a.hoverOutFn(l.element),o.config.lastHoveredPoint=null,i&&i.hide(n)))},t.prototype._searchNearestNeighbour=function(e,t){var o=this.getDatasets()[1],r=void 0;if(o){if(!o.components.kDTree)return;(r=o.getElement(e))?o.highlightPoint(r,t):o.highlightPoint(!1,t)}},t.prototype._createLayers=function(){e.prototype._createLayers.call(this),this._attachMouseEvents()},t.prototype._parseBackgroundCosmetics=function(){var e,t=this.getChildren("background")[0].config,o=this.getChildren("colorPalette")[0],r=this.getFromEnv("chart-attrib");e=t.showBorder=(0,s.pluckNumber)(r.showcanvasborder,1),t.borderWidth=e?(0,s.pluckNumber)(r.canvasborderthickness,1):0,t.borderRadius=t.borderRadius=(0,s.pluckNumber)(r.canvasborderradius,0),t.borderDashStyle=t.borderDashStyle=(0,s.pluckNumber)(r.borderdashed,0)?(0,s.getDashStyle)((0,s.pluckNumber)(r.borderdashlen,4),(0,s.pluckNumber)(r.borderdashgap,2)):"none",t.borderAlpha=(0,s.pluck)(r.canvasborderalpha,o.borderAlpha),t.borderColor=t.borderColor=(0,s.convertColor)((0,s.pluck)(r.canvasbordercolor,o&&o.borderColor),t.borderAlpha)},t.prototype._getBackgroundCosmetics=function(){var e=this.getFromEnv("chart-attrib")||this.jsonData.map,t=this.getChildren("colorPalette")[0];return{FCcolor:{color:(0,s.pluck)(e.bgcolor,e.canvasbgcolor,t.bgcolor),alpha:(0,s.pluck)(e.bgalpha,e.canvasbgalpha,t.bgalpha),angle:(0,s.pluck)(e.bgangle,e.canvasbgangle,t.bgangle),ratio:(0,s.pluck)(e.bgratio,e.canvasbgratio,t.bgratio)}}},t.prototype._parseCanvasCosmetics=function(){e.prototype._parseCanvasCosmetics.call(this);var t=this.config,o=this.getFromEnv("chart-attrib")||this.jsonData.map,r=this.getChildren("canvas")[0].config;t.origMarginTop=(0,s.pluckNumber)(o.maptopmargin,11),t.origMarginLeft=(0,s.pluckNumber)(o.mapleftmargin,11),t.origMarginBottom=(0,s.pluckNumber)(o.mapbottommargin,11),t.origMarginRight=(0,s.pluckNumber)(o.maprightmargin,11),t.origCanvasLeftMargin=(0,s.pluckNumber)(o.canvasleftmargin,0),t.origCanvasRightMargin=(0,s.pluckNumber)(o.canvasrightmargin,0),t.origCanvasTopMargin=(0,s.pluckNumber)(o.canvastopmargin,0),t.origCanvasBottomMargin=(0,s.pluckNumber)(o.canvasbottommargin,0),r.canvasBorderRadius=(0,s.pluckNumber)(o.canvasborderradius,0),r.origCanvasTopPad=(0,s.pluckNumber)(o.canvastoppadding,0),r.origCanvasBottomPad=(0,s.pluckNumber)(o.canvasbottompadding,0),r.origCanvasLeftPad=(0,s.pluckNumber)(o.canvasleftpadding,0),r.origCanvasRightPad=(0,s.pluckNumber)(o.canvasrightpadding,0)},t.prototype.preliminaryScaling=function(){for(var e=this.jsonData,t=e.markers&&e.markers.items||[],o=t&&t.length||0,r=Infinity,a=Infinity,i=-Infinity,n=-Infinity,l=void 0,s=void 0,c=void 0;o--;)c=t[o],l=Number(c.x),s=Number(c.y),r=F(r,l),a=F(a,s),i=A(i,l),n=A(n,s);return{x:r,y:a,x1:i,y1:n}},t.prototype.getScalingParameters=function(e,t,o,r){var a=e/t,i=o/(e*this.config.baseScaleFactor),n=r/(t*this.config.baseScaleFactor),l=0,s=0,c=void 0,d=void 0;return i>n?(l+=(o-r*a)/2,d=200/(t*(c=n))):(s+=(r-o/a)/2,d=200/(e*(c=i))),{scaleFactor:c,strokeWidth:d,translateX:l,translateY:s}},t.prototype.calculateMarkerBounds=function(e,t,o){var r,a=this.config,i=a.markerOpts,n=this.getDatasets(),l=this.getDataLimits(),s=l.dataMin,c=l.dataMax,d=i.hideNull,h=i.nullRadius,p=i.valueToRadius,u=void 0,f=void 0,g=void 0,m=void 0,b=void 0,v=void 0,k=void 0,y=Infinity,C=Infinity,w=-Infinity,E=-Infinity,x=void 0,L=void 0,N=void 0,S=void 0;for(v=0,r=n.length;v<r;v++)"markers"===(k=n[v]).getName()&&(u=k);if(u)for(v in u.calculateMarkerRadiusLimits(),g=(f=u.config||{}).minRadius,m=f.maxRadius,b=u.components&&u.components.markerObjs||{})S=(a=b[v].config).definition||{},null!==a.cleanValue?(p&&void 0===S.radius&&(a.radius=g+(m-g)*(a.cleanValue-s)/(c-s)),N=Number(a.radius),x=(Number(S.x)+t)*e,L=(Number(S.y)+o)*e,y=F(y,x-N),C=F(C,L-N),w=A(w,x+N),E=A(E,L+N)):d?a.__hideMarker=!0:null===a.radius&&(a.radius=h);return{x:y,y:C,x1:w,y1:E}},t.prototype._spaceManager=function(){var e,t,o=this.config,r=this.getChildren("legend")&&this.getChildren("legend")[0],a=r&&r.config.legendPos,i=this.getFromEnv("chart-attrib"),n=o.showBorder,l=o.origMarginLeft,c=o.origMarginTop,d=this.config.baseWidth,h=this.config.baseHeight,p=void 0,u=void 0,f=void 0,g=void 0,m={},b=0,v=0,k=void 0,y=void 0,C=void 0,w=o.markerOpts,F=o.borderWidth=n?(0,s.pluckNumber)(i.borderthickness,1):0;this._allocateSpace({top:F,bottom:F,left:F,right:F}),this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*o.availableHeight)||{}),C="right"===a?.3*o.canvasWidth:.3*o.canvasHeight,o.showLegend&&this._manageLegendSpace(C),e="bottom"===a?.225*o.canvasHeight:.225*o.canvasWidth,t=this._manageChartMenuBar(e),u=o.canvasWidth,f=o.canvasHeight,w.dataEnabled?(o.adjustViewPortForMarkers?((m=this.preliminaryScaling()).x1>d&&(d=m.x1),m.x<0&&(d+=-m.x,b=-m.x),m.y1>h&&(h=m.y1),m.y<0&&(h+=-m.y,v=-m.y),p=this.getScalingParameters(d,h,u,f),k=f,y=u,(m=this.calculateMarkerBounds(p.scaleFactor*this.config.baseScaleFactor,b,v)).x<0&&(l+=-m.x,u+=m.x),m.y<0&&(c+=-m.y,f+=m.y),m.x1>y&&(u-=m.x1-y),m.y1>k&&(f-=m.y1-k)):(p=this.getScalingParameters(d,h,u,f),this.calculateMarkerBounds(p.scaleFactor*this.config.baseScaleFactor,b,v)),l+=b*(p=this.getScalingParameters(d,h,u,f)).scaleFactor*this.config.baseScaleFactor,c+=v*p.scaleFactor*this.config.baseScaleFactor):p=this.getScalingParameters(d,h,u,f),this.config.scalingParams=p,g=p.scaleFactor,p.translateX=p.translateX+l,p.translateY=p.translateY+c+t.top||0,p.sFactor=g*this.config.baseScaleFactor*100/100,p.transformStr=["t",p.translateX,",",p.translateY,"s",g,",",g,",0,0"].join(""),this.config.annotationConfig={id:"Geo",showbelow:0,autoscale:0,grpxshift:p.translateX?p.translateX:0,grpyshift:p.translateY?p.translateY:0,xscale:100*(g?g*this.config.baseScaleFactor:1),yscale:100*(g?g*this.config.baseScaleFactor:1),scaletext:1,options:{useTracker:!0}}},t.prototype.getDataLimits=function(){var e=this.getDatasets(),t=e.length,o=+Infinity,r=-Infinity,a=void 0,i=void 0;for(i=0;i<t;i++)a=e[i].getDataLimits(),o=F(o,a.min),r=A(r,a.max);return{dataMin:o,dataMax:r}},t.prototype.getEntityPaths=function(e){var t={},o=this.config.entities,r=void 0;if(e){for(r in o)t[r]=o[r];return t}return o},t.prototype.checkComplete=function(){this.config.entityFlag&&this.config.entitiesReady&&(this.config.entityFlag=!1,this.config.markersDrawn=!0,this.fireChartInstanceEvent("internal.mapdrawingcomplete",{renderer:this}))},t}(r["default"]);t["default"]=x},1078:function(e,t,o){"use strict";t.__esModule=!0,t["default"]=function(e){var t,o=e.getFromEnv("dataSource"),l=o.data||{},s=o.markers;(0,r.componentFactory)(e,n["default"],"mapGroup"),t=e.getChildren("mapGroup")[0],(0,r.datasetFactory)(t,a["default"],"entities",1,[l]),s?(0,r.datasetFactory)(t,i["default"],"markers",1,[s]):e.getDatasets()[1]&&e.getDatasets()[1].remove()};var r=o(125),a=l(o(1079)),i=l(o(1081)),n=l(o(1082));function l(e){return e&&e.__esModule?e:{"default":e}}},1079:function(e,t,o){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=o(138),i=h(o(216)),n=o(132),l=h(o(1080)),s=o(125),c=o(136),d=h(o(485));function h(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var o=Object.getOwnPropertyNames(t),r=0;r<o.length;r++){var a=o[r],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&e[a]===undefined&&Object.defineProperty(e,a,i)}}(e,t))}var u=(0,n.getDep)("redraphael","plugin"),f=void 0,g=window.navigator.userAgent,m=/msie/i.test(g)&&!window.opera,b=window.Math,v=b.min,k=b.max,y=/stroke/gi,C=/AppleWebKit/.test(g),w=b.ceil,F=function(e,t){var o=t?(0,s.extend2)(e.FCcolor,t,!1,!0):{FCcolor:e};return o.toString=s.toRaphaelColor,o},A=function(e,t){var o=void 0,a={};if(t=t||1,!e||"object"!==(void 0===e?"undefined":r(e)))return a;for(o in e)y.test(o)||("stroke-width"===o?(a[o]=Number(e[o])/t,C&&(a[o]=a[o]&&w(a[o])||0)):a[o]=e[o]);return a},E={right:function(){return arguments[1]},left:function(e,t){return e-t},center:function(e,t){return 2*v(t,e-t)}},x={top:function(){return arguments[1]},middle:function(e,t){return 2*v(t,e-t)},bottom:function(e,t){return e-t}};(0,n.addDep)({name:"mapsAnimation",type:"animationRule",extension:l["default"]}),(0,d["default"])(u);var L=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return o.components={},o}return p(t,e),t.prototype.getName=function(){return"entities"},t.prototype.getType=function(){return"dataset"},t.prototype.configureAttributes=function(e){if(e){this.JSONData={data:e};var o,r=this,a=r.getFromEnv("chart").jsonData,i=r.config,n=a.map||a.chart,l=void 0,c=void 0,d=void 0,h=void 0,p=[],u=void 0,g=void 0,m=void 0,b=r.getFromEnv("colorManager"),v=a.entitydef||[];for(h in!i.attachEvent&&b&&(r.addExtEventListener("legendUpdate",function(){if("legend"===(m=arguments[1]).component)r.legendInteractivity(m.legendItem,m.colorObj);else for(p=m.maxMinArray,u=p.length,g=0;g<u;g++)r.updateEntityColors(p[g].min,p[g].max)},b),i.attachEvent=!0),l=a.data&&a.data[0]&&a.data[0].data?r.JSONData=a.data[0].data||[]:r.JSONData=a.data||[],i.useSNameAsId=(0,s.pluckNumber)(n.usesnameasid,0),this._redefineEntities(v),o=r.components.data,i.showTooltip=(0,s.pluckNumber)(n.showtooltip,1),i.showHoverEffect=(0,s.pluckNumber)(n.showhovereffect,0),l=function(e){for(var t=e&&e.length||0,o={},r=void 0;t--;)(r=e[t]).id!==f&&(o[r.id.toLowerCase()]=r);return o}(l),r.calculateDataLimits(),!a.colorrange&&r._detachChild(r.getChildren("colorRange")&&r.getChildren("colorRange")[0]),o)c=l[h],d=o[h],c?this._configureEntity(h,d,(0,s.imprint)(t._sanitizeEntityOptions((0,s.extend2)({},c)),d.config)):this._configureEntity(h,d,d.config)}},t.prototype.updateEntityColors=function(e,o){var r=this.components.data,a=this.getFromEnv("chart"),i=void 0,n=void 0,l=void 0,s=void 0,c=void 0,d={"fill-opacity":0};for(s in r)l=(n=(i=r[s]).config).cleanValue,c={"fill-opacity":(n.alphaArr||[])[0]/100||1},l<e||l>o?(t.setCustomAttrs(i,d,a),i.hidden=!0):(i.hidden=!1,t.setCustomAttrs(i,c,a))},t.prototype.legendInteractivity=function(e,o){var r=this.getFromEnv("chart"),a=this.components.data,i=void 0,n=void 0,l=e.config,s=e.hasState("hidden"),c=void 0,d=this.getFromEnv("colorManager"),h=void 0,p={},u=void 0,f={"fill-opacity":0},g=void 0;for(i in r.getFromEnv("animationManager").setAnimationState("legendInteraction"),a)a.hasOwnProperty(i)&&(c=(l=(n=a[i]).config).cleanValue,g=d.getColorObj(c),h=l.visibleEntityAttr,p["fill-opacity"]=h["fill-opacity"],u=s?p:f,o.code===(!g.outOfRange&&g.code)&&(n.hidden=!s,t.setCustomAttrs(n,u,r),s?e&&e.removeLegendState("hidden"):e.setLegendState("hidden")))},t.setCustomAttrs=function(e,t){e&&e.graphics.outlines.attr(t)},t.prototype.calculateDataLimits=function(){var e,t=this.getFromEnv("chart"),o=this.config,r=t.jsonData.data||[],a=this.getFromEnv("number-formatter"),i=void 0,n=void 0,l=+Infinity,s=-Infinity,c=void 0;for(c=0,e=r.length;c<e;c++)n=r[c].value,i=a.getCleanValue(n),l=v(l,i),s=k(s,i);o.max=s,o.min=l},t.prototype._configureEntity=function(e,t,o){var a,i,n,l,c,d=this.getFromEnv("chart"),h=this.config,p=this.getFromEnv("number-formatter"),u=d.config.entityOpts,g=t.config,m=t.labelConfig,b=o.value,v=g.cleanValue=p.getCleanValue(b),k=g.formattedValue=v!==f?p.dataLabels(v):f,y=(0,s.pluckNumber)(o.showtooltip,u.showTooltip),C=this._getDefaultTooltip(t,o,this),w={formattedValue:k,sName:o.shortLabel,lName:o.label},A=u.dataLabels.style,E=g.toolText=y?(0,s.parseUnsafeString)((0,s.pluck)((0,s.parseTooltext)((0,s.pluck)(o.tooltext,u.tooltext,C),[1,2,7,38,39],w,o))):"",x=g.borderColor=(0,s.pluck)(o.bordercolor,u.borderColor),L=g.borderAlpha=(0,s.pluck)(o.borderalpha,u.borderAlpha),N=g.borderThickness=(0,s.pluckNumber)(o.borderthickness,u.borderThickness),S=u.hoverOnNull,O=g.useHoverColor=(0,s.pluckNumber)(o.showhovereffect,o.usehovercolor,S?u.showHoverEffect:isNaN(b)?0:u.showHoverEffect),_=g.labelAlignment,T=this.getFromEnv("colorManager"),M=void 0,I=void 0,P=void 0,j=void 0,D=void 0,B=void 0,R=void 0,V=void 0,G=void 0,H=void 0,W=void 0,z=void 0,X=void 0,Y=void 0,K=void 0,J=void 0,U=void 0;if(t.hidden=!1,g.showLabel=(0,s.pluckNumber)(o.showlabel,u.showLabels),g.labelPadding=(0,s.pluckNumber)(o.labelpadding,u.labelPadding),g.fontFamily=(0,s.pluck)(o.font,A.fontFamily),g.fontSize=(0,s.pluckNumber)(parseInt(o.fontsize,10),parseInt(A.fontSize,10)),g.fontBold=(0,s.pluckNumber)(o.fontbold,0),g.fontColor=(0,s.pluck)(o.fontcolor,A.color),g.connectorColor=(0,s.pluck)(o.labelconnectorcolor,u.connectorColor),g.connectorAlpha=(0,s.pluck)(o.labelconnectoralpha,u.connectorAlpha),g.hoverBorderThickness=(0,s.pluckNumber)(o.borderhoverthickness,o.hoverborderthickness,u.hoverBorderThickness),g.hoverBorderColor=(0,s.pluck)(o.borderhovercolor,o.hoverbordercolor,u.hoverBorderColor,g.borderColor),g.hoverBorderAlpha=(0,s.pluck)(o.borderhoveralpha,o.hoverborderalpha,u.hoverBorderAlpha,g.borderAlpha),g.connectorThickness=(0,s.pluckNumber)(o.labelconnectorthickness,u.connectorThickness),g.origConnectorThickness=g.connectorThickness,g.borderThickness=N,g.link=o.link,g.isVisible=!0,g.id=e,g.originalId=o.origId,null!==v&&(M=T&&T.getColor(v))&&!M.outOfRange&&(z=M.code,M.oriAlpha!==f&&(X=M.oriAlpha+"")),(0,s.pluck)(o.color,o.alpha,o.angle,o.ratio)!==f?(j=(0,s.pluck)(o.color,z,u.fillColor),D=(0,s.pluck)(o.alpha,X,u.fillAlpha),B=(0,s.pluck)(o.angle,u.fillAngle),R=(0,s.pluck)(o.ratio,u.fillRatio),V=F({color:j,alpha:D,angle:B,ratio:R})):(H=F({color:(0,s.pluck)(z,u.fillColor),alpha:(0,s.pluck)(X,u.fillAlpha),angle:(0,s.pluck)(u.fillAngle),ratio:(0,s.pluck)(u.fillRatio)}),G=F({color:(0,s.pluck)(u.nullEntityColor),alpha:(0,s.pluck)(u.nullEntityAlpha),angle:(0,s.pluck)(u.nullEntityAngle),ratio:(0,s.pluck)(u.nullEntityRatio)}),j=(V=null===v?G:H).FCcolor.color,D=V.FCcolor.alpha,B=V.FCcolor.angle,R=V.FCcolor.ratio),""===E&&(h.showTooltip=0),g.visibleEntityAttr={stroke:(0,s.convertColor)(x,L),fill:(g.fillColor=V).toString(),"fill-opacity":D/100},c=D.split(","),g.alphaArr=c,O&&((0,s.pluck)(o.fillhovercolor,o.fillhoveralpha,o.fillhoverangle,o.fillhoverratio,o.hoverfillcolor,o.hoverfillalpha,o.hoverfillratio,o.hoverfillangle)!==f?(j=(0,s.pluck)(o.fillhovercolor,o.hoverfillcolor,u.hoverFillColor),D=(0,s.pluck)(o.fillhoveralpha,o.hoverfillalpha,u.hoverFillAlpha),B=(0,s.pluck)(o.fillhoverangle,o.hoverfillangle,u.hoverFillAngle),R=(0,s.pluck)(o.fillhoverratio,o.hoverfillratio,u.hoverFillRatio),W=F({color:j,alpha:D,angle:B,ratio:R})):(u.hoverColorObject||(u.hoverColorObject=F({color:u.hoverFillColor,alpha:u.hoverFillAlpha,angle:u.hoverFillAngle,ratio:u.hoverFillRatio})),W=u.hoverColorObject),g.hoverColor=W),!m&&(m=t.labelConfig={}),i=g.fontColor,n=g.fontFamily,l=g.fontBold,E=g.toolText,a=g.link,_?(I=_[0],P=_[1]):(I="center",P="middle"),m.align=I,m.vAlign=P,m.bgColor="",m.borderColor="",m.fontColor=i,m.fontFamily=n,m.fontBold=l,m.toolText=E,m.link=a,"object"===r(g.options))for(Y=g.entityLabels=g.entityLabels||[],U=(J=g.labels||[]).length;U--;)Y[U]||(Y[U]={config:{}}),m=Y[U].config,(_=J[U].labelAlignment)?(I=_[0],P=_[1]):(I="center",P="middle"),m.align=I,m.vAlign=P,m.displayValue=this.getDisplayValue(t,J[U],g.options.isDataEnabled,!U,o),m.bgColor="",m.borderColor="",m.toolText=E,m.align=I,m.vAlign=P,m.bgColor="",m.borderColor="",m.fontColor=i,m.fontFamily=n,m.fontBold=l,m.toolText=E;else K={shortText:g.shortLabel,text:g.label},m.displayValue=this.getDisplayValue(t,K,!0,!0,o)},t.prototype.getDisplayValue=function(e,t,o,r,a){var i=this.getFromEnv("chart").config.entityOpts,n=e.config,l=n.cleanValue,c=n.formattedValue,d=i.labelSepChar,h=void 0;return o?r&&"undefined"!=typeof a.displayvalue?h=a.displayvalue:(h=(0,s.pluck)(i.includeNameInLabels?i.useShortName?t.shortText:t.text:""),i.includeValueInLabels&&null!==l&&(h=h===f?c:h+d+c)):h=n.label,h},t._sanitizeEntityOptions=function(e){return delete e.outlines,delete e.label,delete e.shortlabel,delete e.labelposition,delete e.labelalignment,delete e.labelconnectors,e},t.prototype._redefineEntities=function(e){var t=this.config,o={},r={},a=this.getFromEnv("chart").config.entities,i=t.useSNameAsId,n=void 0,l=void 0,c=void 0,d=void 0,h=void 0,p=void 0,u=void 0,f=void 0,g=0,m=void 0,b=void 0,v=void 0,k=void 0;for(n=e.length;n--;)if(c=(l=e[n]).internalid,d=l.newid?l.newid:c,h=l.sname,p=l.lname,k=a[c],c=(0,s.trimString)(c),d=(d=(0,s.trimString)(d))&&d.toLowerCase(),k){for(v in o[d]=f={origId:c},r[c]=!0,k)f[v]=k[v];f.shortLabel=h||k.shortLabel,f.label=p||k.label,f.showhovereffect=l.showhovereffect,f.fillhovercolor=l.fillhovercolor,f.fillhoveralpha=l.fillhoveralpha,f.fillhoverangle=l.fillhoverangle,f.fillhoverratio=l.fillhoverratio,f.borderhoverthickness=l.borderhoverthickness}for(u in(b=this.components.data)||(b=this.components.data={}),o)b[u=u.toLowerCase()]||(b[u]={config:{}}),b[u].config=o[u],g+=1;for(u in m=b,a)if(f=a[u],!r[u=(0,s.trimString)(u)]){for(v in i?((k=m[f.shortLabel.toLowerCase()])||(k=m[f.shortLabel.toLowerCase()]={}),k.config={},k.origId=f.shortLabel):((k=m[u.toLowerCase()])||(k=m[u.toLowerCase()]={}),k.config={},k.config.origId=u),f)k.config[v]=f[v];g+=1}t.entityCount=g},t.prototype.draw=function(){var e=this.config,t=this.getFromEnv("chart"),o=s.hasSVG?200:10;this.createContainer(),this.config.ready=!1,e.BATCH_SIZE=o,e.labelBatchSize=s.hasSVG?200:20,this._batchRender()(0),t.config.entityFlag=!0,t.checkComplete()},t.prototype._batchRender=function(){var e=this,t=e.config,o=e.getFromEnv("chart").config.entities.firstEntity,r=e.components.data,a=t.BATCH_SIZE,i=t.entityKeys=o?e._getKeys(o,r):Object.keys(r),n=t.entityLength=i.length,l=void 0,s=void 0,d=void 0,h=void 0,p=void 0;return function u(t){for(l=t,d=0;i[l]!==f;)if(s=r[i[l]],p=e.drawEntity(s,a),d+=p,s.config.drawn&&((h=l===n-1?s:r[i[l-1]])&&(h.config.drawn=!1,h.config.outlineStartIndex=f),l++),d>=a){e.addJob("entityDraw",u.bind(this,l),c.priorityList.entitydraw);break}l===n&&(e._addEventListenersToEntities(0),e.initComplete())}},t.prototype._addEventListenersToEntities=function(e){var t=this.components.data,o=this.config,r=o.BATCH_SIZE,a=o.entityKeys,i=void 0,n=o.entityLength,l=void 0,s=0,d=void 0;for(i=e;i<n;i++)if((d=(l=t[a[i]]).config.options)&&!1===d.isDataEnabled||this.addMouseGestures(l),++s===r){this.addJob("_addEventListenersToEntities",this._addEventListenersToEntities.bind(this,i),c.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},t.prototype._getDefaultTooltip=function(e,t){var o=e.config.cleanValue,a=e.config.formattedValue,i=this.getFromEnv("chart").config.entityOpts,n=void 0,l=void 0;if("object"===r(e.config.options)){if(!(l=t.labels&&t.labels[0]))return f;n=(i.useSNameInTooltip?l.shortText:l.text)+(null===o?"":i.tooltipSepChar+a)}else n=(i.useSNameInTooltip?t.shortLabel:t.label)+(null===o?"":i.tooltipSepChar+a);return n},t.prototype.drawEntity=function(e,t){var o,a,i=this.getFromEnv("chart"),n=i.getFromEnv("animationManager"),l=e.config,c=s.hasSVG||!m?"litepath":"path",d=i.config.entityOpts,h=l.outlines,p=this.getFromEnv("toolTipController"),u=this.getLinkedParent().getChildContainer("plot"),g=this.getLinkedParent().getChildContainer("plotShadow"),b=l.toolText,v=d.shadow,k=void 0,y=[],C=void 0,w=void 0,F=void 0,E=void 0,x=void 0,L={};if(this._configureEntityDrawingParams(e),C=(l=e.config).visibleEntityAttr,a=l.shadowOptions,k=l.outlineStartIndex===f?h.length:l.outlineStartIndex,e.graphics||(e.graphics={}),x=0,y=l.outlinePath||(l.outlinePath=[]),o=l.customStrokeWidthModifier,"object"===r(l.options)){for(;k--;)if(y=h[k].outline,w=!0===l.options.isDataEnabled?C:(0,s.extend2)((0,s.extend2)({},C),A(h[k].style,o)),(F=e.graphics.outlines)||(F=e.graphics.outlines=[]),!F[k]&&(F[k]={}),E=F[k].outline,w[c]=y,(E=F[k].outline=n.setAnimation({el:c,container:u,attr:w,component:this,label:"path"})).shadow(!!v&&a,g),p.enableToolTip(E,b),x++,l.outlineStartIndex=k,x===t)return x;return l.drawn=!0,x}for(;k--;)if(y=h[k].concat(y),x++,l.outlineStartIndex=k,x===t)return l.outlinePath=y,x;return!e.graphics.outlines&&(C[c]=y),Object.assign(L,C,e.hidden&&{"fill-opacity":0}||{}),e.graphics.outlines=n.setAnimation({el:e.graphics.outlines||c,container:u,attr:L,component:this,label:"path"}),l.drawn=!0,l.outlineStartIndex=0,l.outlinePath=[],e.graphics.outlines.shadow(!!v&&a,g),p.enableToolTip(e.graphics.outlines,b),x},t.prototype._configureEntityDrawingParams=function(e){var t=this.getFromEnv("chart"),o=e.config,r=t.config.entityOpts,a=t.config.scalingParams,i=!m||s.hasSVG,n=a.scaleFactor,l=a.strokeWidth,c=(i?t.baseScaleFactor:1)*l,d=1===r.scaleBorder,h=o.borderThickness,p=o.alphaArr,u=o.origConnectorThickness,f=o.hoverBorderThickness,g=o.visibleEntityAttr,v=g["fill-opacity"],y=void 0;o.shadowOptions={scalefactor:[n,n*t.config.baseScaleFactor],opacity:k.apply(b,p)/100,useFilter:0},o.fillOpacity=e.hidden?0:v,i?(h=o.entityBorderThickness=d?h*c:h/n,u/=n,y=d?n:a.sFactor,f&&(f=o.hoverBorderThickness=d?f*c:f/n)):(h=d?h*l:h,y=d?a.scaleFactor:t.baseScaleFactor),o.entityBorderThickness=h,o.connectorThickness=u,o.customStrokeWidthModifier=y,g["stroke-width"]=h,g.transform=s.hasSVG||!m?"":a.transformStr},t.prototype.drawLabels=function(e){var t=e,o=this.getFromEnv("chart"),r=this.config,a=r.labelBatchSize,n=r.entityLength,l=[],s=void 0,c=void 0,d=o.getChildContainer("upperAnnotationGroup"),h=void 0,p=void 0,u=0,f=this.getChildren("mapLabelAnnotations")&&this.getChildren("mapLabelAnnotations")[u],g=0,m=0,b=o.config.annotationConfig;for(s in f||(p=new i["default"],this.attachChild(p,"mapLabelAnnotations"),(f=this.getChildren("mapLabelAnnotations")[u]).addCustomGroup(d)),f.destroy(),f._renderer&&(f._renderer=null),b.showbelow=0,t){if(this.drawLabel(t[s],l),++g===a){for(c=0;c<l.length;c++)l[c].animationLabel="entityLabel";for(h=f.addGroup(Object.assign(b,{id:"entityLabels"+u,items:l,animationLabel:"entityLabelGroup"}),this),c=0;c<h.items.length;c++)h.items[c].addEventListener("fc-mouseover",l[c].onmouseover),h.items[c].addEventListener("fc-mouseout",l[c].onmouseout),h.items[c].addEventListener("fc-click",l[c].onclick);u++,(f=this.getChildren("mapLabelAnnotations")&&this.getChildren("mapLabelAnnotations")[u])||(p=new i["default"],this.attachChild(p,"mapLabelAnnotations"),(f=this.getChildren("mapLabelAnnotations")[u]).addCustomGroup(d)),f.destroy(),f._renderer&&(f._renderer=null),g=0,l=[]}else if(m===n-1){for(c=0;c<l.length;c++)l[c].animationLabel="entityLabel";for(h=f.addGroup(Object.assign(b,{id:"entityLabels"+u,items:l,animationLabel:"entityLabelGroup"}),this),c=0;c<h.items.length;c++)h.items[c].addEventListener("fc-mouseover",l[c].onmouseover),h.items[c].addEventListener("fc-mouseout",l[c].onmouseout),h.items[c].addEventListener("fc-click",l[c].onclick)}m++}this.drawLabelConnFn(0)},t.prototype.drawLabelConnFn=function(e){var t=this.config,o=this.components.data,a=t.BATCH_SIZE,i=t.entityKeys,n=void 0,l=void 0,s=i.length,d=void 0,h=void 0,p=void 0,u=0;for(l=e;l<s;l++){if(h=(p=o[i[l]]).config,"object"===r(h.options))for(n=(d=h.labels)&&d.length||0;n--;)d[n].labelConnectors&&(this.drawLabelConnectors(p,d[n].labelConnectors,this),u++);else h.labelConnectors&&(this.drawLabelConnectors(p,h.labelConnectors,this),u++);if(u===a){this.addJob("drawLabelConnectors",this.drawLabelConnFn.bind(this,l),c.priorityList.entitydraw);break}}},t.prototype._getLabelObject=function(e,t,o){var r=this,a=r.getFromEnv("chart"),i=e.config,n=void 0,l=a.config.scalingParams,s=void 0,c=void 0,d=e.graphics&&e.graphics.outlines,h=void 0,p=i.fontSize,u=i.labelPadding,g=i.labels||[],m=i.entityLabels||[],b=void 0,v=void 0,k=void 0,y=void 0,C=void 0,w=void 0,F=void 0;return t!==f?(F=g[t],h=(n=m[t].config).style=F.style,s=F.labelPosition,c=F.labelAlignment):(n=e.labelConfig,s=i.labelPosition,c=i.labelAlignment),s?(b=s[0],v=s[1]):(b=(k=d.getBBox()).x+k.width/2,v=k.y+k.height/2),c?(y=c[0],C=c[1],"right"===y?b-=u:"left"===y&&(b+=u),"top"===C?v-=u:"bottom"===C&&(v+=u)):(y="center",C="middle"),w=parseFloat(p)/l.sFactor,!o&&h&&(h.color&&(n.fontColor=h.color),h["font-size"]&&(w=parseFloat(h["font-size"])/l.sFactor),h["font-family"]&&(n.fontFamily=h["font-family"]),h["font-weight"]!==f&&(n.fontBold="bold"===h["font-weight"])),n.x=b.toString(),n.y=v.toString(),n.wrap=1,n.type="text",n.fontSize=w,{x:b.toString(),y:v.toString(),wrapwidth:E[y](void 0,b+void 0)-u,wrapheight:x[C](void 0,v+void 0)-u,wrap:1,type:"text",align:n.align,valign:n.vAlign,text:n.displayValue,tooltext:n.toolText,css:n.link!==f&&{cursor:"pointer",_cursor:"hand"},bgcolor:n.bgColor,bordercolor:n.borderColor,fillcolor:n.fontColor,fontsize:n.fontSize,font:n.fontFamily,bold:n.fontBold,onclick:function(t){var o=e.graphics.outlines,a=void 0,i=void 0;if(o instanceof Array)for(a=0,i=o.length;a<i;a++)r.entityClick(o[a].outline,t);else r.entityClick(o,t)},onmouseover:function(t){var o=e.graphics.outlines,a=void 0,i=void 0;if(o instanceof Array)for(a=0,i=o.length;a<i;a++)r.entityRollOver(o[a].outline,t);else r.entityRollOver(o,t)},onmouseout:function(t){var o=e.graphics.outlines,a=void 0,i=void 0;if(o instanceof Array)for(a=0,i=o.length;a<i;a++)r.entityRollOut(o[a].outline,t);else r.entityRollOut(o,t)},ontouchstart:function(t){var o=e.graphics.outlines,a=void 0,i=void 0;if(o instanceof Array)for(a=0,i=o.length;a<i;a++)r.entityRollOver(o[a].outline,t);else r.entityRollOver(o,t);r.entityRollOver(o,t)}}},t.prototype.drawLabel=function(e,t){var o=e.config,a=void 0,i=void 0,n=void 0;if(o.showLabel)if("object"===r(o.options))for(i=(n=o.labels)&&n.length||0,a=o.options.isDataEnabled;i--;)t.push(this._getLabelObject(e,i,a,!i));else t.push(this._getLabelObject(e,f,!0,!0))},t.prototype.drawLabelConnectors=function(e,t,o){for(var r=e.config,a=this.getFromEnv("chart"),i=a.getFromEnv("animationManager"),n=a.config.scalingParams,l=o.getLinkedParent().getChildContainer("plot"),c=t&&t.length||0,d=void 0,h=void 0,p=r.showLabel;c--;)h=t[c],d=e.graphics.connectorElem,p?e.graphics.connectorElem=d=i.setAnimation({el:e.graphics.connectorElem||"path",attr:{path:h,opacity:1,transform:s.hasSVG||!m?"":n.transformStr,stroke:(0,s.convertColor)(r.connectorColor,r.connectorAlpha),"shape-rendering":"crisp","stroke-width":r.connectorThickness},container:l,component:this,label:"labelConnectors"}):d&&d.hide()},t.prototype.entityClick=function(e,t){var o=e.node.__entity,r=this.getFromEnv("chart"),a=r.config.scalingParams,i=e.getBBox(),n=r.getFromEnv("linkClickFN"),l=o.config,s=l.link;i.width=i.width*a.scaleFactor,i.height=i.height*a.scaleFactor,i.x=i.x*a.scaleFactor+a.translateX,i.y=i.y*a.scaleFactor+a.translateY,i.x2=i.x+i.width,i.y2=i.y+i.height,r.fireChartInstanceEvent("entityclick",l.eventArgs,t),s!==f&&n.call({link:s,entity:o,entityBox:i},!0)},t.prototype.entityRollOver=function(e,t){var o=e.node.__entity,r=o.config,a=this.getFromEnv("chart"),i=a.getFromEnv("animationManager"),n=r.hoverAttr;a.plotEventHandler(e,t,"entityRollOver"),e.data("hovered")?clearTimeout(o.config.timer):r.useHoverColor&&r.isVisible&&!o.hidden&&n&&(a.config.hoverEntity=e,i.setAnimation({el:e,attr:n,component:this,state:"updating",label:"path"}),e.data("hovered",!0))},t.prototype.entityRollOut=function(e,t){var o=e.node.__entity,r=this,a=r.getFromEnv("chart"),i=a.getFromEnv("animationManager"),n=o.config.revertAttr;a.plotEventHandler(e,t,"entityRollOut"),o.config.timer=setTimeout(function(){!0!==o.hidden&&n&&(i.setAnimation({el:e,attr:n,component:r,state:"updating",label:"path"}),e.data("hovered",!1))},100)},t.prototype.addMouseGestures=function(e){var t=e.config,o=t.originalId,r=this,a=e.graphics,i=t.useHoverColor,n=t.hoverBorderThickness,l=t.hoverBorderColor,c=t.hoverBorderAlpha,d=t.entityBorderThickness,h=t.borderColor,p=t.borderAlpha,u=t.link,g=t.visibleEntityAttr,m="groupId"+o,b=void 0,v=void 0,k=void 0,y=void 0,C=function(o){u!==f&&o.css({cursor:"pointer",_cursor:"hand"}),o.data("eventArgs",t.eventArgs),o.data("groupId",m),o.node.__entity=e,e._listenersBinded||o.on("fc-click",r.entityClick.bind(r,o)).hover(r.entityRollOver.bind(r,o),r.entityRollOut.bind(r,o))};for(b in t.eventArgs={value:t.cleanValue,label:t.label,shortLabel:t.shortLabel,originalId:t.origId,id:t.id||t.origId},t.legacyEventArgs={value:t.value,lName:t.label,sName:t.shortLabel,id:t.originalId||t.id},i&&(t.hoverAttr={fill:(0,s.toRaphaelColor)(t.hoverColor)},t.revertAttr={fill:(0,s.toRaphaelColor)(t.fillColor),stroke:(0,s.toRaphaelColor)(t.borderColor,t.borderAlpha)},t.revertAttr["fill-opacity"]=g["fill-opacity"],n!==d&&(t.hoverAttr["stroke-width"]=(0,s.pluckNumber)(n,d),t.revertAttr["stroke-width"]=d),l===h&&c===p||(t.hoverAttr.stroke=(0,s.convertColor)(l,c),t.revertAttr.stroke=(0,s.convertColor)(h,p))),a)if(a.hasOwnProperty(b))if(a[b]instanceof Array){for(v=0,k=(y=a[b]).length;v<k;v++)C(y[v].outline);e._listenersBinded=!0}else C(a[b]),e._listenersBinded=!0},t.prototype.getDataLimits=function(){var e=this.config;return{max:e.max,min:e.min}},t.prototype.createContainer=function(){var e=this.getLinkedParent(),t=this.getFromEnv("animationManager"),o=e.getChildContainer("layer0");!this.getChildContainer("abovePlotGroup")&&this.addChildContainer("abovePlotGroup",t.setAnimation({el:"group",attr:{name:"abovePlotGroup",opacity:1},container:o,component:this,label:"group"})),!this.getChildContainer("belowPlotGroup")&&this.addChildContainer("belowPlotGroup",t.setAnimation({el:"group",attr:{name:"belowPlotGroup",opacity:1},container:o,component:this,label:"group"}))},t.prototype.initComplete=function(){var e=this.getFromEnv("chart"),t=this.components.data;this.drawLabels(t),e.config.entitiesReady=!0,e.checkComplete()},t}(a.ComponentInterface);t["default"]=L},1080:function(e,t,o){"use strict";t.__esModule=!0;var r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}];t["default"]={"initial.dataset.entities":function(){return{"path.appearing":function(){return r[0].slot="plot",r},"path.updating":function(e){return[{finalAttr:function(){return e.finalAttr}}]},"labelConnectors.appearing":function(){return r[0].slot="final",r},"labelConnectors.updating":null,"entityLabel.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"*":null}},"initial.dataset.markers":function(){return{markers:null,"markerItem.appearing":function(){return r[0].slot="final",r},"markerItem.updating":function(e){return[{finalAttr:function(){return e.finalAttr}}]}}},"initial.group.mapGroup":function(){return{"group.appearing":function(e){return[{initialAttr:function(){return Object.assign({opacity:0},e.attr)},finalAttr:function(){return e.attr},slot:"plot"}]},"group.updating":function(e){return[{initialAttr:function(){return Object.assign({opacity:0},e.attr)},finalAttr:function(){return e.attr},slot:"plot"}]},"*":null}}}},1081:function(e,t,o){"use strict";t.__esModule=!0;var r=h(o(1079)),a=h(o(538)),i=h(o(216)),n=o(132),l=h(o(1080)),s=o(125),c=o(131),d=o(136);function h(e){return e&&e.__esModule?e:{"default":e}}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var o=Object.getOwnPropertyNames(t),r=0;r<o.length;r++){var a=o[r],i=Object.getOwnPropertyDescriptor(t,a);i&&i.configurable&&e[a]===undefined&&Object.defineProperty(e,a,i)}}(e,t))}var u=void 0,f="top",g="bottom",m="right",b="left",v="middle",k="center",y=window.Math,C=y.min,w=y.max,F=function(e){var t=this.getFromEnv("chart"),o=this.getChildren("mapAnnotations")[0],r=e.markerShape,a=r.groupConfig,i=r.data("unfilteredConfig"),n=i._markerEventArgs,l=void 0,d=e.config;i.hovereffect&&("circle"===r.config.type&&(l=(0,s.extend2)({fillcolor:i.hoverfillcolor,fillalpha:i.hoverfillalpha,fillangle:i.hoverfillangle,fillratio:i.hoverfillratio,gradientUnits:"objectBoundingBox",radialGradient:1},i._hoverattrs)),l=(0,s.extend2)({},i._hoverattrs),o.update(r.getId(),l)),n||(n=i._markerEventArgs={x:+i.x,y:+i.y,scaledX:i.x*a.scaleX,scaledY:i.y*a.scaleY,chartX:i.x*a.scaleX+a.grpXShift,chartY:i.y*a.scaleY+a.grpYShift,id:i.id,label:i.label}),(0,c.raiseEventGroup)(d.options.id,"markerRollOver",n,t.getFromEnv("chartInstance"),d,u,u,u)},A=function(e){var t=this.getFromEnv("chart"),o=this.getChildren("mapAnnotations")[0],r=e.markerShape,a=r.getElement(),i=e.config,n=r.d