UNPKG

quoslibero

Version:

FusionCharts JavaScript charting framework

1 lines 366 kB
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[5],{1000:function(e,t,a){"use strict";t.__esModule=!0;var o=a(125),r=s(a(932)),i=a(956),n=s(a(958)),l=s(a(929));function s(e){return e&&e.__esModule?e:{"default":e}}function c(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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var u=o.BLANK,p=o.preDefStr.POSITION_START,h=o.preDefStr.POSITION_END,d=o.preDefStr.POSITION_BOTTOM,g=o.preDefStr.POSITION_MIDDLE,f=Math,m=f.ceil,b=f.max,v="0,100",y=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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 a.defaultSeriesType="hbullet",a.gaugeType=1,a.defaultCaptionPadding=5,a.rendererId="hbullet",a.isHorizontal=!0,a.isAxisOpposite=!0,a.rtManageSpace=!0,a.ticksOnRight=0,a.hasCanvas=!0,a.isAxisReverse=!1,a.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:["333333","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]},a.showRTvalue=!1,a.canvasPadding=!1,a.defaultPlotShadow=1,a.realtimeEnabled=!0,a.chartleftmargin=15,a.chartrightmargin=15,a.charttopmargin=10,a.chartbottommargin=10,a.showTooltip=0,a.connectTickMarks=0,a.drawPlotlines=!1,a.drawPlotBands=!1,a.isRealTime=!0,a.colorRange=!0,a.registerFactory("dataset",l["default"],["vCanvas"]),a}return c(t,e),t.getName=function(){return"Hbullet"},t.prototype.getName=function(){return"Hbullet"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Horizontal Bullet Gauge",t.defaultDatasetType="bullet",t.singleseries=!0,t.skipCanvasDrawing=!0},t.prototype._RTmanageSpace=function(){var e,t,a=this.config,o=this.getChildren("scale")[0];e=(t=this.getChildren("dataset")[0]._manageSpaceHorizontal(.7*a.oriCanvasWidth)).right-a.labelSpace.right,this._allocateSpace({right:e}),o.setAxisDimention({axisLength:a.canvasWidth}),a.labelSpace=t},t.prototype.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),i.configureAttributes.call(this)},t.prototype._getData=function(){return i._getData.call(this)},t.prototype._spaceManager=function(){var e,t,a,r,i,n=this.config,l=this.getChildren("canvas")[0],s=this.getChildren("dataset")[0],c=this.getChildren("scale")[0],u=this.config.is3D,p=this.getFromEnv("dataSource").chart,h=(0,o.pluckNumber)(p.showborder,u?0:1),d=n.minChartWidth,g=n.minChartHeight,f=n.borderWidth=h?(0,o.pluckNumber)(p.borderthickness,1):0;n.canvasWidth-2*f<d&&(i=(n.canvasWidth-d)/2),n.canvasHeight-2*f<g&&(r=(n.canvasHeight-g)/2),this._allocateSpace({top:r||f,bottom:r||f,left:i||f,right:i||f}),e=.7*n.canvasWidth,this._allocateSpace(c.placeAxis(n.availableHeight)),this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*n.availableHeight)||{}),n.oriCanvasWidth=n.canvasWidth,t=.225*n.canvasHeight,this._manageChartMenuBar(t),a=b(this.getChildren("subCaption")[0].config.width||0,this.getChildren("caption")[0].config.width||0),n.labelSpace=s._manageSpaceHorizontal(e-.7*a),s._manageSpace&&this._allocateSpace(n.labelSpace),n.oriCanvasWidth-=a,t=.325*n.canvasHeight,l.setDimension({top:n.canvasTop,left:n.canvasLeft,width:n.canvasWidth,height:n.canvasHeight})},t.prototype._manageCaptionSpacing=function(){var e,t,a,r,i,n=this.config,l=this.getChildren("caption")[0],s=this.getChildren("subCaption")[0],c=l.config,d=s.config,g=this.getFromEnv("dataSource").chart,f=this.getFromEnv("smartLabel"),b=(0,o.parseUnsafeString)(g.caption),v=(0,o.parseUnsafeString)(g.subcaption),y=(0,o.pluckNumber)(g.captionpadding,2),k=n.height,C=0,w=0,x=0,T=.3*n.width,S={};return.3*k>3&&(c.captionPadding=d.captionPadding=y,b!==u&&(r=c.style,C=c.captionLineHeight=m(parseFloat((0,o.pluck)(r.fontHeight,r.lineHeight),10),12)),v!==u&&(i=d.style,w=m(parseInt((0,o.pluck)(i.lineHeight,i.fontHeight),10),12)),(C>0||w>0)&&(f.useEllipsesOnOverflow(n.useEllipsesWhenOverflow),f.setStyle(r),(t=f.getSmartText(b,T,k)).width>0&&(t.width+=2,x=t.height),f.setStyle(i),(a=f.getSmartText(v,T,k-x)).width>0&&(a.width+=2),c.captionSubCaptionGap=t.height+0+.2*w,e=Math.max(t.width,a.width),c.text=t.text,c.height=x=t.height,c.width=t.width,c.tooltext&&(c.originalText=t.tooltext),d.text=a.text,d.height=x=a.height,d.width=a.width,d.tooltext&&(c.originalText=a.tooltext),(e=Math.max(t.width,a.width))>0&&(e+=y),c.maxCaptionWidth=d.maxCaptionWidth=e,c.isOnLeft?S.left=e:S.right=e)),c.isOnLeft?c.align=d.align=h:c.align=d.align=p,S},t.prototype._manageCaptionPosition=function(){var e=this.config,t=this.getChildren("caption")[0],a=this.getChildren("subCaption")[0],o=t.config,r=a.config,i=o.captionPosition,n=b(o.width,r.width),l=e.borderWidth||0,s=o.captionSubCaptionGap;switch(i){case g:o.y=.5*(e.canvasTop+e.canvasHeight);break;case d:o.y=e.canvasBottom-(o.height+r.height);break;default:o.y=e.canvasTop}r.y=o.y+s,o.isOnLeft?o.x=r.x=e.marginLeft+n+l:o.x=r.x=e.width-e.marginRight-n-l},t.prototype._feedAxesRawData=function(){var e=this.getFromEnv("color-manager"),t=this.getFromEnv("number-formatter"),a=this.getFromEnv("dataSource").chart,r=o.chartPaletteStr.chart2D,i=(0,o.pluckNumber)(a.ticksbelowgraph,1),n=(0,o.pluckNumber)(a.ticksonright,a.axisontop,void 0!==a.axisonleft?!(0,o.pluckNumber)(a.axisonleft):void 0,!i,this.isAxisOpposite);return[{isVertical:!this.isHorizontal,isReverse:!1,isOpposit:n,outCanfontFamily:(0,o.pluck)(a.outcnvbasefont,a.basefont,"Verdana,sans"),outCanfontSize:(0,o.pluckFontSize)(a.outcnvbasefontsize,a.basefontsize,10),outCancolor:(0,o.pluck)(a.outcnvbasefontcolor,a.basefontcolor,e.getColor(r.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:a.useellipseswhenoverflow,divLineColor:(0,o.pluck)(a.vdivlinecolor,e.getColor(r.divLineColor)),divLineAlpha:(0,o.pluck)(a.vdivlinealpha,e.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(a.vdivlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(a.vdivlinedashed,a.vdivlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(a.vdivlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(a.vdivlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(a.showalternatevgridcolor,0),alternateGridColor:(0,o.pluck)(a.alternatevgridcolor,e.getColor("altVGridColor")),alternateGridAlpha:(0,o.pluck)(a.alternatevgridalpha,e.getColor("altVGridAlpha")),numDivLines:a.numvdivlines,labelFont:a.labelfont,labelFontSize:a.labelfontsize,labelFontColor:a.labelfontcolor,labelFontAlpha:a.labelalpha,labelFontBold:a.labelfontbold,labelFontItalic:a.labelfontitalic,axisName:a.xaxisname,axisMinValue:t.getCleanValue(a.lowerlimit),axisMaxValue:t.getCleanValue(a.upperlimit),setAdaptiveMin:a.setadaptivexmin,adjustDiv:a.adjusttm,labelDisplay:a.labeldisplay,showLabels:a.showlabels,rotateLabels:a.rotatelabels,slantLabel:(0,o.pluckNumber)(a.slantlabels,a.slantlabel),labelStep:(0,o.pluckNumber)(a.labelstep,a.xaxisvaluesstep),showAxisValues:(0,o.pluckNumber)(a.showxaxisvalues,a.showxaxisvalue),showDivLineValues:(0,o.pluckNumber)(a.showvdivlinevalues,a.showvdivlinevalues),showZeroPlane:a.showvzeroplane,zeroPlaneColor:a.vzeroplanecolor,zeroPlaneThickness:a.vzeroplanethickness,zeroPlaneAlpha:a.vzeroplanealpha,showZeroPlaneValue:a.showvzeroplanevalue,trendlineColor:a.trendlinecolor,trendlineToolText:a.trendlinetooltext,trendlineThickness:a.trendlinethickness,trendlineAlpha:a.trendlinealpha,showTrendlinesOnTop:a.showtrendlinesontop,showAxisLine:(0,o.pluckNumber)(a.showxaxisline,a.showaxislines,a.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(a.xaxislinethickness,a.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(a.xaxislinealpha,a.axislinealpha,100),axisLineColor:(0,o.pluck)(a.xaxislinecolor,a.axislinecolor,"#000000"),majorTMNumber:a.majortmnumber,majorTMColor:a.majortmcolor,majorTMAlpha:a.majortmalpha,majorTMHeight:a.majortmheight,tickValueStep:a.tickvaluestep,showTickMarks:a.showtickmarks,connectTickMarks:a.connecttickmarks,showTickValues:a.showtickvalues,majorTMThickness:a.majortmthickness,reverseScale:a.reversescale,showLimits:(0,o.pluckNumber)(a.showlimits,a.showtickmarks),minorTMNumber:(0,o.pluckNumber)(a.minortmnumber,0),minorTMColor:a.minortmcolor,minorTMAlpha:a.minortmalpha,minorTMHeight:(0,o.pluckNumber)(a.minortmheight,a.minortmwidth),minorTMThickness:a.minortmthickness,tickMarkDistance:(0,o.pluckNumber)(a.tickmarkdistance,a.tickmarkgap),tickValueDistance:(0,o.pluckNumber)(a.tickvaluedistance,a.displayvaluedistance),placeTicksInside:a.placeticksinside,placeValuesInside:a.placevaluesinside,upperLimitDisplay:a.upperlimitdisplay,lowerLimitDisplay:a.lowerlimitdisplay}]},t.prototype.getDSdef=function(){return n["default"]},t.prototype._fetchCaptionPos=function(){return this.getChildren("caption")[0].config.align===h?0:-1},t}(r["default"]);t["default"]=y},1001:function(e,t,a){"use strict";t.__esModule=!0;var o,r=a(1002),i=(o=r)&&o.__esModule?o:{"default":o};t["default"]=i["default"]},1002:function(e,t,a){"use strict";t.__esModule=!0;var o=a(125),r=s(a(932)),i=a(956),n=s(a(958)),l=s(a(929));function s(e){return e&&e.__esModule?e:{"default":e}}function c(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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var u="0,100",p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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 a.defaultSeriesType="bullet",a.gaugeType=4,a.ticksOnRight=0,a.hasCanvas=!0,a.isHorizontal=!1,a.isAxisOpposite=!1,a.isAxisReverse=!1,a.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:[u,u,u,u,u],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","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]},a.showRTvalue=!1,a.canvasPadding=!1,a.defaultPlotShadow=1,a.realtimeEnabled=!0,a.chartleftmargin=15,a.chartrightmargin=15,a.charttopmargin=10,a.chartbottommargin=10,a.showTooltip=0,a.connectTickMarks=0,a.drawPlotlines=!1,a.drawPlotBands=!1,a.isRealTime=!0,a.colorRange=!0,a.registerFactory("dataset",l["default"],["vCanvas"]),a}return c(t,e),t.getName=function(){return"Vbullet"},t.prototype.getName=function(){return"Vbullet"},t.prototype.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),i.configureAttributes.call(this)},t.prototype._getData=function(){return i._getData.call(this)},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Vertical Bullet Gauge",t.defaultDatasetType="bullet",t.singleseries=!0,t.skipCanvasDrawing=!0},t.prototype.getDSdef=function(){return n["default"]},t.prototype._feedAxesRawData=function(){var e=this.getFromEnv("color-manager"),t=this.getFromEnv("dataSource").chart,a=this.getFromEnv("number-formatter"),r=o.chartPaletteStr.chart2D,i=(0,o.pluckNumber)(t.ticksbelowgraph,1),n=(0,o.pluckNumber)(t.ticksonright,t.axisontop,void 0!==t.axisonleft?!(0,o.pluckNumber)(t.axisonleft):void 0,!i,this.isAxisOpposite);return[{isVertical:!this.isHorizontal,isReverse:!0,isOpposit:n,outCanfontFamily:(0,o.pluck)(t.outcnvbasefont,t.basefont,"Verdana,sans"),outCanfontSize:(0,o.pluckFontSize)(t.outcnvbasefontsize,t.basefontsize,10),outCancolor:(0,o.pluck)(t.outcnvbasefontcolor,t.basefontcolor,e.getColor(r.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:t.useellipseswhenoverflow,divLineColor:(0,o.pluck)(t.vdivlinecolor,e.getColor(r.divLineColor)),divLineAlpha:(0,o.pluck)(t.vdivlinealpha,e.getColor("divLineAlpha")),divLineThickness:(0,o.pluckNumber)(t.vdivlinethickness,1),divLineIsDashed:Boolean((0,o.pluckNumber)(t.vdivlinedashed,t.vdivlineisdashed,0)),divLineDashLen:(0,o.pluckNumber)(t.vdivlinedashlen,4),divLineDashGap:(0,o.pluckNumber)(t.vdivlinedashgap,2),showAlternateGridColor:(0,o.pluckNumber)(t.showalternatevgridcolor,0),alternateGridColor:(0,o.pluck)(t.alternatevgridcolor,e.getColor("altVGridColor")),alternateGridAlpha:(0,o.pluck)(t.alternatevgridalpha,e.getColor("altVGridAlpha")),numDivLines:t.numvdivlines,labelFont:t.labelfont,labelFontSize:t.labelfontsize,labelFontColor:t.labelfontcolor,labelFontAlpha:t.labelalpha,labelFontBold:t.labelfontbold,labelFontItalic:t.labelfontitalic,axisName:t.xaxisname,axisMinValue:a.getCleanValue(t.lowerlimit),axisMaxValue:a.getCleanValue(t.upperlimit),setAdaptiveMin:t.setadaptivexmin,adjustDiv:t.adjusttm,labelDisplay:t.labeldisplay,showLabels:t.showlabels,rotateLabels:t.rotatelabels,slantLabel:(0,o.pluckNumber)(t.slantlabels,t.slantlabel),labelStep:(0,o.pluckNumber)(t.labelstep,t.xaxisvaluesstep),showAxisValues:(0,o.pluckNumber)(t.showxaxisvalues,t.showxaxisvalue),showDivLineValues:(0,o.pluckNumber)(t.showvdivlinevalues,t.showvdivlinevalues),showZeroPlane:t.showvzeroplane,zeroPlaneColor:t.vzeroplanecolor,zeroPlaneThickness:t.vzeroplanethickness,zeroPlaneAlpha:t.vzeroplanealpha,showZeroPlaneValue:t.showvzeroplanevalue,trendlineColor:t.trendlinecolor,trendlineToolText:t.trendlinetooltext,trendlineThickness:t.trendlinethickness,trendlineAlpha:t.trendlinealpha,showTrendlinesOnTop:t.showtrendlinesontop,showAxisLine:(0,o.pluckNumber)(t.showxaxisline,t.showaxislines,t.drawAxisLines,0),axisLineThickness:(0,o.pluckNumber)(t.xaxislinethickness,t.axislinethickness,1),axisLineAlpha:(0,o.pluckNumber)(t.xaxislinealpha,t.axislinealpha,100),axisLineColor:(0,o.pluck)(t.xaxislinecolor,t.axislinecolor,"#000000"),majorTMNumber:t.majortmnumber,majorTMColor:t.majortmcolor,majorTMAlpha:t.majortmalpha,majorTMHeight:t.majortmheight,tickValueStep:t.tickvaluestep,showTickMarks:t.showtickmarks,connectTickMarks:t.connecttickmarks,showTickValues:t.showtickvalues,majorTMThickness:t.majortmthickness,reverseScale:t.reversescale,showLimits:(0,o.pluckNumber)(t.showlimits,t.showtickmarks),minorTMNumber:(0,o.pluckNumber)(t.minortmnumber,0),minorTMColor:t.minortmcolor,minorTMAlpha:t.minortmalpha,minorTMHeight:(0,o.pluckNumber)(t.minortmheight,t.minortmwidth),minorTMThickness:t.minortmthickness,tickMarkDistance:(0,o.pluckNumber)(t.tickmarkdistance,t.tickmarkgap),tickValueDistance:(0,o.pluckNumber)(t.tickvaluedistance,t.displayvaluedistance),placeTicksInside:t.placeticksinside,placeValuesInside:t.placevaluesinside,upperLimitDisplay:t.upperlimitdisplay,lowerLimitDisplay:t.lowerlimitdisplay}]},t}(r["default"]);t["default"]=p},1003:function(e,t,a){"use strict";t.__esModule=!0;var o,r=a(1004),i=(o=r)&&o.__esModule?o:{"default":o};t["default"]=i["default"]},1004:function(e,t,a){"use strict";t.__esModule=!0;var o=n(a(1005)),r=n(a(1006)),i=a(125);function n(e){return e&&e.__esModule?e:{"default":e}}function l(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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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 a.useSortedData=!0,a}return l(t,e),t.getName=function(){return"Funnel"},t.prototype.getName=function(){return"funnel"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Funnel Chart",t.defaultDatasetType="funnel",t.enablemousetracking=!0},t.prototype.configureAttributes=function(){e.prototype.configureAttributes.call(this);var t=this.getFromEnv("dataSource"),a=(0,i.pluckNumber)(t.chart.streamlineddata,1);this.config.PLOT_COLOR_INDEX_START=a?-1:0},t.prototype.getDSdef=function(){return r["default"]},t}(o["default"]);t["default"]=s},1005:function(e,t,a){"use strict";t.__esModule=!0;var o=a(125),r=c(a(360)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t["default"]=e,t}(a(372)),n=c(a(430)),l=c(a(461)),s=a(478);function c(e){return e&&e.__esModule?e:{"default":e}}function u(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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var p=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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 a.showRTvalue=!1,a.canvasPadding=!1,a.sliceOnLegendClick=!0,a.defaultPlotShadow=1,a.subTitleFontSizeExtender=0,a.tooltippadding=3,a.defaultPaletteOptions=i,a.drawAnnotations=!0,a.isDataLabelBold=!1,a.dontShowLegendByDefault=!0,a.formatnumberscale=1,a.alignCaptionWithCanvas=0,a.registerFactory("dataset",n["default"],["vCanvas","legend"]),a.registerFactory("legend",l["default"]),a}return u(t,e),t.getName=function(){return"FunnelPyramidBase"},t.prototype.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showRTvalue=!1,t.canvasPadding=!1,t.sliceOnLegendClick=!0,t.defaultPlotShadow=1,t.subTitleFontSizeExtender=0,t.tooltippadding=3,t.defaultPaletteOptions=i,t.drawAnnotations=!0,t.isDataLabelBold=!1,t.dontShowLegendByDefault=!0,t.alignCaptionWithCanvas=0,t.formatnumberscale=1,t.isSingleSeries=!0,t.hasLegend=!0,t.decimals=2,t.defaultDatasetType="funnelpyramidbaseds",t.skipCanvasDrawing=!0},t.prototype.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a=this.getFromEnv("chart-attrib");this.config.showLegend=(0,o.pluckNumber)(a.showlegend,0)},t.prototype._createLayers=function(){e.prototype._createLayers.call(this);var t=this.getFromEnv("animationManager");!this.getChildContainer("legendGroup")&&this.addChildContainer("legendGroup",t.setAnimation({el:"group",attr:{name:"legend"},component:this,container:this.getContainer("parentgroup"),label:"group"}))},t.prototype._checkInvalidSpecificData=function(){var e,t,a,o=0,r=0,i=this.getFromEnv("dataSource").data;if(!i)return!0;for(t=i.length,e=0;e<t;e++)a=Number(i[e].value),o+=isNaN(a)||0!==a?0:1,r+=isNaN(a)?1:0;return o+r>=t||void 0},t.prototype._manageLegendSpace=function(){s._manageLegendSpace.call(this)},t.prototype.getName=function(){return"FunnelPyramidBase"},t}(r["default"]);t["default"]=p},1006:function(e,t,a){"use strict";t.__esModule=!0;var o=a(125),r=l(a(1007)),i=a(136),n=l(a(1009));function l(e){return e&&e.__esModule?e:{"default":e}}function s(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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=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 a.config.pointInContext=n["default"],a.config.LABEL_PLACEMENT_ITERATOR_INDEX_START=1,a}return s(t,e),t.prototype.getType=function(){return"dataset"},t.prototype.getName=function(){return"funnel"},t.prototype.configure=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,r,i,n=this.getFromEnv("chart"),l=this.getFromEnv("number-formatter"),s=this.utils(this).sortObjArrByKey,c=n.getFromEnv("dataSource")?n.getFromEnv("dataSource").chart:{},u=this.config.JSONData.data;if(this._checkValidData(u)){for(a=0,i=u.length;a<i;a++)(r=u[a])&&void 0!==r.value&&(r.value=l.getCleanValue(r.value,!0));t=this.config.streamLinedData=(0,o.pluckNumber)(c.streamlineddata,1),this.config.JSONData.data=t?s(u,"value"):u,this._configure(),u=this.getChildren("data"),t&&(u[0].pseudoPoint=!0),n.config.showLegend&&this.addLegend()}},t.prototype.configureSpecifics=function(){var e=this.getFromEnv("chart"),t=this.config,a=e.getFromEnv("dataSource")?e.getFromEnv("dataSource").chart:{};(0,this.utils(this).copyProperties)(a,t,[["funnelyscale","yScale",o.pluckNumber,void 0,function(e){var t=e.yScale;e.yScale=t>=0&&t<=40?t/200:.2}],["usesameslantangle","useSameSlantAngle",o.pluckNumber,function(e){return e.streamLinedData?0:1}],["ishollow","isHollow",o.pluckNumber,void 0,function(e){void 0===e.isHollow&&(e.isHollow=e.streamLinedData?1:0)}]])},t.prototype.prePointProcessingHookFn=function(e){var t,a,r,i,n=this.getFromEnv("chart"),l=n.config,s=this.config,c=l.canvasWidth,u=n.getFromEnv("smartLabel"),p=!s.streamLinedData;(t=e[0])&&(t.pseudoPoint=!0),t&&t.displayValue&&(u.useEllipsesOnOverflow(n.config.useEllipsesWhenOverflow),u.setStyle(t.style),(0,o.setLineHeight)(t.style),a=parseFloat(t.style.lineHeight.match(/^\d+/)[0]||s.lineHeight,10),i=u.getOriSize(t.displayValue).height,r=u.getSmartText(t.displayValue,c,i),t.displayValue=r.text,r.tooltext&&(t.originalText=r.tooltext),t.labelWidth=u.getOriSize(r.text).width,l.marginTop+=a+4),s.totalValue=p?e[0].y-e[1].y:0,s.offsetVal=function(a){return p?-(e[a+1]&&e[a+1].y||0):t.y}},t.prototype.datasetCalculations=function(e){var t,a,o,r,i=this.config,n=this.getFromEnv("number-formatter"),l={},s=i.streamLinedData,c=i.percentOfPrevious;for(l.highestValue=Number.NEGATIVE_INFINITY,l.refreshedData=[],l.sumValue=l.countPoint=0,t=0,a=e.length;t<a;t++)(o=e[t]).vline||(o.cleanValue=r=Math.abs(n.getCleanValue(o.value,!0)),null!==r&&(l.hasValidPoint=!0,l.highestValue=l.highestValue||r,l.refreshedData.push(o),l.sumValue+=r,l.countPoint+=1,l.highestValue=Math.max(l.highestValue,r)));return s&&(l.sumValue=l.highestValue,c&&(l.prevPerValReq=!0)),l},t.prototype.calculatePositionOfPlots=function(){var e,t,a,r,i,n,l,s,c,u,p,h,d,g,f,m,b,v,y=this.getFromEnv("chart").config,k=this.config,C=this.utils(this),w=C.getSumValueOfObjArrByKey,x=C.DistributionMatrix,T=this.calculatePositionCoordinate,S=k.psmMargin,A=this.getChildren("data"),E=k.streamLinedData,N=2,O=this.getDataLength(),F=k.maxValue=A[0].y,D=k.minValue=A[O-1].y,_=0,L=0,M=k.lineHeight,R=Math.floor;if(k.sumValue&&(this.postPlotCallback=o.stubFN,y.canvasTop+=y.marginTop-S.top,y.effCanvasHeight=i=y.canvasHeight-(y.marginTop+y.marginBottom)+(S.top+S.bottom),y.effCanvasWidth=n=y.width-(y.marginLeft+y.marginRight),l=k.drawingRadius=n/N,k.x=l+y.canvasLeft,!(E&&O<2))){for(E?(r=i/(F-D),u=(s=w(A,"value"))?i/s:i):u=r=F?i/F:i,k.unitHeight=r,k.lastRadius=l,k.globalMinXShift=0,(c=k.alignmentType={})["default"]=1,c.alternate=2,v=new x(R(i/M)),e=0,t=O;e<t;e++)(a=A[e]).getState("removed")||(!E&&0===e||!E&&e===t-1?v.forcePush(a,e):(_=a.y*u,p=R(((L+=a.y*u)-_+_/2)/M),v.push(a,p)));if(h=v.getDistributedResult(),A.length=0,void 0===h.matrix[1])[].push.apply(A,h.matrix[0]);else for(d=h.matrix[0],g=h.matrix[1],t=Math.max(d.length,g.length),e=0;e<t;e++)m=d[e],f=g[e],A.push(m||f);if(Object.keys(h.forceMatrix).length>0)for(b in h.forceMatrix)[].splice.apply(A,[parseInt(b,10),0].concat(h.forceMatrix[b]));switch(h.suggestion){case c["default"]:T.call(this,A,!1);break;case c.alternate:k.labelAlignment=c.alternate,l=n/(N=3),y.canvasLeft=y.canvasWidth/2-l,k.x=y.canvasLeft+l,T.call(this,A,!0)}}},t.prototype.draw=function(){var e,t,a,o,r,n,l,s=this,c=s.getFromEnv("chart"),u=s.config,p=s.config.trackerArgs=[],h=s.getChildren("data"),d=c.getChildContainer("datalabelsGroup"),g=u.streamLinedData,f=h.length,m=Math.min;if(s.config.labelDrawingConfig=s.config.labelDrawingConfig||[],s.config.labelDrawingConfig.length=0,u.sumValue)if(s.animateFunction=function(e){return function(){e.attr({opacity:1})}},r=(a=u.slicingDistance)/2,g&&f<2)s.hide(s.getChildren("data"),f);else{for(e=0,t=h.length;e<t;e++)h[e]&&h[e].shapeArgs&&!h[e].getState("removed")&&(h[e].shapeArgs.renderer=c.getFromEnv("paper"));for((o=u.noOfGap)&&(u.perGapDistance=m(1.5*r,a/o),u.distanceAvailed=r),e=h.length,u.alreadyPlotted&&(s.postPlotCallback=function(){l||(l=!0,s.animateFunction(d)())});e--;)(n=h[e]).index=e,n.syncDraw();for(u.oldLastData=Object.assign({},h[h.length-1].shapeArgs),s.hide(s.getChildren("data"),f),u.connectorEndSwitchHistoryY={},e=h.length;e--;)h[e].getState("removed")||p.push(h[e]);s.addJob("labelDrawID",s.drawAllLabels.bind(s),i.priorityList.label),s.addJob("trackerDrawID",s.drawAllTrackers.bind(s),i.priorityList.tracker),s.removePlots(),u.alreadyPlotted=!0,u.prevIs2d=u.is2d}},t.prototype.getTooltipMacroStub=function(t){var a,o,r=this.config,i=this.getFromEnv("number-formatter");return r.streamLinedData&&(o=r.percentOfPrevious?t.pValue:i.percentValue(t.dataValue/t.prevValue*100)),(a=e.prototype.getTooltipMacroStub.call(this,t)).percentValue=r.percentOfPrevious?i.percentValue(t.dataValue/t.highestValue*100):t.pValue,a.percentOfPrevValue=o,a},t}(r["default"]);t["default"]=c},1007:function(e,t,a){"use strict";t.__esModule=!0;var o,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},i=a(125),n=a(138),l=a(475),s=a(1008),c=(o=s)&&o.__esModule?o:{"default":o},u=a(132);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 a=Object.getOwnPropertyNames(t),o=0;o<a.length;o++){var r=a[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&e[r]===undefined&&Object.defineProperty(e,r,i)}}(e,t))}var h,d=i.preDefStr.showHoverEffectStr,g="none",f="fill",m=Math,b=m.round,v=m.ceil,y=m.max,k=m.min,C=m.pow,w=m.sqrt,x={},T=i.preDefStr.colors.c000000,S=i.preDefStr.POSITION_START,A=i.preDefStr.POSITION_MIDDLE,E="path",N="0,100",O=window,F=O.navigator.userAgent,D=/msie/i.test(F)&&!O.opera,_=i.regex.hexcode,L="rgba(192,192,192,"+(D?.002:1e-6)+")",M=i.regex.dropHash,R=function(e){return"object"===(void 0===e?"undefined":r(e))},P=function(e){return"string"==typeof e},V=function(e){return e!==h&&null!==e},I="M",G="A",j="L",B="Z",H=i.regex.startsRGBA,W=function(e){var t,a=[];return function(e){(t=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(e))?a=[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]:(t=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(e))&&(a=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1])}(e),{get:function(t){return a&&!isNaN(a[0])?"rgb"===t?"rgb("+a[0]+","+a[1]+","+a[2]+")":"hex"===t?"#"+(T+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6):"a"===t?a[3]:"rgba("+a.join(",")+")":e},brighten:function(e){var t;if(!isNaN(e)&&0!==e)for(t=0;t<3;t++)a[t]+=parseInt(255*e,10),a[t]<0&&(a[t]=0),a[t]>255&&(a[t]=255);return this},setOpacity:function(e){return a[3]=e,this}}};(0,u.addDep)({name:"funnelPyramidBaseAnimation",type:"animationRule",extension:c["default"]});var z=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a,o,r,n,l,s,c=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 c.components={},c.utils=function(e){function t(){var e=[],a=0;this.set=function(t,o){a++,e[t]=o},this.get=function(t){return e[t]},this.getAll=function(){return e},this.mergeWith=function(a){var o,r,i,n=e.slice(0);if(a instanceof Array)o=a;else{if(!(a instanceof t))return;o=a.getAll()}for(r in o)i=o[r],n[r]||(n[r]=i);return n},this.getEffectiveLength=function(){return a}}function a(e){this.distributionLength=e,this.distributedMatrix=[],this.altDistributedMatrix=[],this.nonDistributedMatrix={},this.forcePushObj={},this.flags={exhaustion:!1}}return t.prototype.constructor=t,a.prototype.constructor=a,a.prototype.push=function(e,t){this.nonDistributedMatrix[t]=this.nonDistributedMatrix[t]||[],this.nonDistributedMatrix[t].push(e)},a.prototype.forcePush=function(e,t){this.forcePushObj[t]=e},a.prototype.distribute=function(a){var o,r,n,l,s,c,u,p=e,h=!0,d=new t,g=new t,f=new t,m=new t,b=this.flags,v=0,y=p.getDataLength();if(a){if(y-this.distributionLength>0)for(n in this.nonDistributedMatrix)for(o=this.nonDistributedMatrix[n],s=1;s<o.length;s++)(u=o[s]).dontPlot=!0,u.displayValue=i.BLANK}else if(y-2*this.distributionLength>0)for(n in this.nonDistributedMatrix)for(o=this.nonDistributedMatrix[n],s=1;s<o.length-1;s++)(u=o[s]).dontPlot=!0,u.displayValue=i.BLANK;if(y>this.distributionLength&&!a){for(n in b.exhaustion=!0,this.nonDistributedMatrix)for(s=0,c=(o=this.nonDistributedMatrix[n]).length;s<c;s++)(u=o[s]).dontPlot?r=h?f:m:(r=h?d:g).getEffectiveLength()>parseInt(n,10)?u.distributionFactor=r.getEffectiveLength()-1-n:u.distributionFactor=0,r.set(v++,u),h=!h;this.distributedMatrix=d.mergeWith(f),this.altDistributedMatrix=g.mergeWith(m)}else{for(l in this.nonDistributedMatrix)for(s=0,c=(o=this.nonDistributedMatrix[l]).length;s<c;s++)(u=o[s]).dontPlot?r=f:(r=d).getEffectiveLength()>parseInt(l,10)?u.distributionFactor=r.getEffectiveLength()-1-l:u.distributionFactor=0,r.set(v++,u);this.distributedMatrix=d.mergeWith(f)}},a.prototype.getDistributedResult=function(){var t,a=e,o=a.getFromEnv("chart"),r=o.config,i=o.getFromEnv("legend"),n=a.config,l=n.alignmentType,s=[],c=o.isLegendRight;r.width,n.blankSpace;return r.showLegend&&i.config.width?c&&i.config.width+r.marginRight:c=0,o.isLegendRight=c,this.distribute(c),c?(t=l["default"],s.push(this.distributedMatrix)):(t=this.flags.exhaustion?l.alternate:l["default"],this.flags.exhaustion?[].push.call(s,this.distributedMatrix,this.altDistributedMatrix):s.push(this.distributedMatrix)),{forceMatrix:this.forcePushObj,suggestion:t,matrix:s}},{DistributionMatrix:a,setContext:function(t){e=t},invokeHookFns:function(){var t,a=[],o=e;switch(arguments.length){case 3:o=arguments[2];case 2:a=arguments[1];case 1:t=arguments[0];break;default:return}t&&"function"==typeof t&&t.apply(o,a)},copyProperties:function(t,a,o){var r,n,l,s,c,u,p,h,d,g,f=i.stubFN;for(r=0,n=o.length;r<n;r++)s=(l=o[r])[0],c=l[1],u=l[2],d=l[3],g=void 0,p="string"==typeof d&&0===d.indexOf("$")?(g=d.substring(1),a[g]):"function"==typeof d?d.call(e,a):d,h=l[4]||f,a[c]=u(t[s],p),h(a)},sortObjArrByKey:function(e,t){return e.sort(function(e,a){return Math.abs(a[t])-Math.abs(e[t])})},getSumValueOfObjArrByKey:function(e,t){var a,o,r=0;for(a=0,o=e.length;a<o;a++)r+=parseFloat(e[a][t],10);return r}}},c.hide=function(e,t){var a,o,r=this.getFromEnv("animationManager"),i=function(){this.hide()};if(e&&0!==e.length)for(t=t<2&&"funnel"===this.getName()?0:t,a=e.length-1;a>=t;a--)(o=e[a].getGraphicalElement()).graphic&&(o.graphic.front&&r.setAnimation({el:o.graphic.front,callback:i,component:this}),o.graphic.back&&r.setAnimation({el:o.graphic.back,callback:i,component:this}),o.graphic.funnel2D&&r.setAnimation({el:o.graphic.funnel2D,callback:i,component:this}),o.graphic.lighterHalf&&r.setAnimation({el:o.graphic.lighterHalf,callback:i,component:this}),o.graphic.darkerHalf&&r.setAnimation({el:o.graphic.darkerHalf,callback:i,component:this}),o.graphic.borderElement&&r.setAnimation({el:o.graphic.borderElement,callback:i,component:this}),o.graphic.centerLight&&r.setAnimation({el:o.graphic.centerLight,callback:i,component:this}),o.graphic.centerLight1&&r.setAnimation({el:o.graphic.centerLight1,callback:i,component:this}),o.graphic.toptop&&r.setAnimation({el:o.graphic.toptop,callback:i,component:this}),o.graphic.topLight&&r.setAnimation({el:o.graphic.topLight,callback:i,component:this}),o.graphic.topLight1&&r.setAnimation({el:o.graphic.topLight1,callback:i,component:this})),o.dataLabel&&r.setAnimation({el:o.dataLabel,callback:i,component:this}),o.trackerObj&&r.setAnimation({el:o.trackerObj,callback:i,component:this})},c.pyramidFunnelShape=(a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},o=function(e,t,a,o,r,i){return[G,a,o,0,i,r,e,t]},r=function(e,t,a,r,i,n,l){var s,c=a*n,u=r*n,p=function(e,t,a,o,r,i){var n,l,s,c,u,p,h,d=C(o,2)-C(e,2),g=-2*(C(o,2)*a-C(e,2)*i),f=C(e*r,2)+C(o*a,2)-C(o*t,2)-C(e*i,2),m=w(C(g,2)-4*d*f),v=(-g+m)/(2*d),y=(-g-m)/(2*d);for(h in v<i&&v>a?l=y:y<i&&y>a&&(l=v),c=-(s=w((C(l-a,2)-C(t,2))/C(e,2))),u={x:b(C(e,2)*s/(l-a)*100)/100,y:b(100*(C(t,2)/(l-a)+a))/100},p={x:b(C(o,2)*s/(l-i)*100)/100,y:b(100*(C(r,2)/(l-i)+i))/100},n={topLeft:{x:b(C(e,2)*c/(l-a)*100)/100,y:b(100*(C(t,2)/(l-a)+a))/100},bottomLeft:{x:b(C(o,2)*c/(l-i)*100)/100,y:b(100*(C(r,2)/(l-i)+i))/100},topRight:u,bottomRight:p})(isNaN(n[h].x)||isNaN(n[h].y))&&(n[h].x="topLeft"===h||"bottomLeft"===h?-e:e,n[h].y="bottomRight"===h||"bottomLeft"===h?i:a);return n}(a,c,t,r,u,t+i),h=p.topLeft,d=p.bottomLeft,g=p.topRight,f=p.bottomRight,m=e+h.x,v=e+g.x,y=e+d.x,k=e+f.x,x=h.y,T=d.y,S=o(v,x,a,c,0,0),A=o(v,x,a,c,1,1),E=o(y,T,r,u,1,0),N=o(y,T,r,u,0,1);return s={front:[I,m,x].concat(S,[j,k,T],E,[B]),back:[I,m,x].concat(A,[j,k,T],N,[B]),silhuette:[I,m,x].concat(A,[j,k,T],E,[B])},l||(s.top=[I,m,x].concat(S,[j,v,x],o(m,x,a,c,0,1),[B])),s},n=function(e,t,a,o,i,n,l,s,c,u){R(e)&&(t=e.y,a=e.R1,o=e.R2,i=e.h,n=e.r3dFactor,l=e.is2D,u=e.isHollow,c=e.isFunnel,e.renderer,e=e.x);var p,h,d,g,f,m,b,v=e-a,y=e+a,C=e-o,w=e+o,x=t+i;return l?(p={silhuette:[I,v,t,j,y,t,w,x,C,x,B]},c||(e=Math.round(e),p.lighterHalf=[I,v,t,j,e,t,e,x,C,x,B],p.darkerHalf=[I,e,t,j,y,t,w,x,e,x,B])):c?p=r(e,t,a||.01,o||.01,i,n,u):(h=a*n,d=o*n,g=k(5,a),f=k(2,2*h),m=k(2,f),p={top:[I,v,t,j,e,t+h,y,t,e,t-h,B],front:[I,v,t,j,e,t+h,y,t,w,x,e,x+d,C,x,B],topLight:[I,v,t+.5,j,e,t+h+.5,e,t+h-f,v+(b=m/n),t,B],topLight1:[I,y,t+.5,j,e,t+h+.5,e,t+h-m,y-b,t,B],silhuette:[I,v,t,j,e,t-h,y,t,w,x,e,x+d,C,x,B],centerLight:[I,e,t+h,j,e,x+d,e-5,x+d,e-g,t+h,B],centerLight1:[I,e,t+h,j,e,x+d,e+5,x+d,e+g,t+h,B]}),p},l=function(e,t){var o,r,l,s,c,u,p,h,d,g,m,b,v,y,k,C,w=this,x=!1,T=!1,S=this._3dAttr;if(P(e)&&V(t)&&(o=e,(e={})[o]=t),P(e))w=a[e]?this._3dAttr[e]:this._attr(e);else{for(o in e)r=e[o],a[o]?(S[o]=r,o===f?(r&&r.linearGradient&&r.stops&&r.stops[0]&&(r=r.stops[0][1]),H.test(r)?(l=(c=new W(r)).get("hex"),s=100*c.get("a")):r&&r.FCcolor?(l=r.FCcolor.color.split(i.COMMASTRING)[0],s=r.FCcolor.opacity.split(i.COMMASTRING)[0]):_.test(r)&&(l=r.replace(M,i.HASHSTRING),s=(0,i.pluckNumber)(S.opacity,100)),S.color=l,S.opacity=s,T=!0):"color"===o||"opacity"===o?(S.fill=(0,i.toRaphaelColor)((0,i.convertColor)(S.color,(0,i.pluckNumber)(S.opacity,100))),T=!0):"stroke"===o||"strokeColor"===o||"strokeAlpha"===o?S.is2D&&("stroke"===o?(r&&r.linearGradient&&r.stops&&r.stops[0]&&(r=r.stops[0][1]),H.test(r)?(l=(c=new W(r)).get("hex"),s=100*c.get("a")):r&&r.FCcolor?(l=r.FCcolor.color.split(i.COMMASTRING)[0],s=r.FCcolor.opacity.split(i.COMMASTRING)[0]):_.test(r)&&(l=r.replace(M,i.HASHSTRING),s=(0,i.pluckNumber)(S.opacity,100)),S.strokeColor=l,S.strokeAlpha=s):S.stroke=(0,i.convertColor)(S.strokeColor,(0,i.pluckNumber)(S.strokeAlpha,100)),S.isFunnel?this.funnel2D.attr("stroke",S.stroke):this.borderElement.attr("stroke",S.stroke)):"stroke-width"===o?S.is2D&&(S.isFunnel?this.funnel2D.attr(o,r):this.borderElement.attr(o,r)):x=!0):this._attr(o,r);S.is2D?(x&&(d=n(S.x,S.y,S.R1,S.R2,S.h,S.r3dFactor,S.is2D),w.shadowElement.attr({path:d.silhuette}),S.isFunnel?w.funnel2D.attr({path:d.silhuette}):(w.lighterHalf.attr({path:d.lighterHalf}),w.darkerHalf.attr({path:d.darkerHalf}),w.borderElement.attr({path:d.silhuette}))),T&&(S.isFunnel?w.funnel2D.attr(f,(0,i.toRaphaelColor)((0,i.convertColor)(S.color,(0,i.pluckNumber)(S.opacity,100)))):(!1===S.use3DLighting?g=m=S.color:(g=(0,i.getDarkColor)(S.color,80),m=(0,i.getLightColor)(S.color,80)),w.lighterHalf.attr(f,(0,i.toRaphaelColor)((0,i.convertColor)(m,(0,i.pluckNumber)(S.opacity,100)))),w.darkerHalf.attr(f,(0,i.toRaphaelColor)((0,i.convertColor)(g,(0,i.pluckNumber)(S.opacity,100))))))):(x&&(d=n(S.x,S.y,S.R1,S.R2,S.h,S.r3dFactor,S.is2D),w.shadowElement.attr(E,d.silhuette),S.isFunnel?(w.front.attr(E,d.front),w.back.attr(E,d.back),w.toptop&&d.top&&w.toptop.attr(E,d.top)):(w.front.attr(E,d.front),w.toptop.attr(E,d.top),w.topLight.attr(E,d.topLight),w.topLight1.attr(E,d.topLight1),w.centerLight.attr(E,d.centerLight),w.centerLight1.attr(E,d.centerLight1))),T&&(l=S.color,s=S.opacity,S.isFunnel?(u=(0,i.getLightColor)(l,60),h=(0,i.getDarkColor)(l,60),w.back.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:h+i.COMMASTRING+u+i.COMMASTRING+l,alpha:s+i.COMMASTRING+s+i.COMMASTRING+s,ratio:"0,60,40",angle:0}})),w.front.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:l+i.COMMASTRING+u+i.COMMASTRING+h,alpha:s+i.COMMASTRING+s+i.COMMASTRING+s,ratio:"0,40,60",angle:0}})),w.toptop&&w.toptop.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:u+i.COMMASTRING+h,alpha:s+i.COMMASTRING+s,ratio:N,angle:-65}}))):(u=(0,i.getLightColor)(l,80),p=(0,i.getLightColor)(l,70),h=(0,i.getDarkColor)(l,80),b=N,v="0,"+s,y=l+i.COMMASTRING+p,k=-45,C=5/(S.R1*S.r3dFactor)*100,w.centerLight.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:y,alpha:v,ratio:b,angle:0}})),w.centerLight1.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:y,alpha:v,ratio:b,angle:180}})),w.topLight.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:p+i.COMMASTRING+p+i.COMMASTRING+l+i.COMMASTRING+l,alpha:s+i.COMMASTRING+s+i.COMMASTRING+0+i.COMMASTRING+0,ratio:"0,50,"+C+i.COMMASTRING+(50-C),angle:k}})),w.topLight1.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:p+i.COMMASTRING+l+i.COMMASTRING+h,alpha:s+i.COMMASTRING+s+i.COMMASTRING+s,ratio:"0,50,50",angle:0}})),w.front.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:l+i.COMMASTRING+l+i.COMMASTRING+h+i.COMMASTRING+h,alpha:s+i.COMMASTRING+s+i.COMMASTRING+s+i.COMMASTRING+s,ratio:"0,50,0,50",angle:0}})),w.toptop.attr(f,(0,i.toRaphaelColor)({FCcolor:{color:u+i.COMMASTRING+l+i.COMMASTRING+h+i.COMMASTRING+h,alpha:s+i.COMMASTRING+s+i.COMMASTRING+s+i.COMMASTRING+s,ratio:"0,25,30,45",angle:k}})))))}return w},s=function u(){var e=this.shadowElement;u&&e.shadow.apply(e,arguments)},function(e,t,a,o,r,c,u,p,h,d,f,m){var b,v,y,k,C,w,T,S,A=this.getFromEnv("chart").getChildContainer().plotGroup,E=this.config.oldLastData;return R(e)&&(t=e.y,a=e.R1,o=e.R2,r=e.h,c=e.r3dFactor,u=e.gStr,p=e.is2D,m=e.use3DLighting,h=e.renderer,f=e.isHollow,d=e.isFunnel,T=e.graphics,e=e.x),(k=function(e,t){var a,o,r,i,n,l=["silhuette","lighterHalf","darkerHalf","centerLight","centerLight1","front","toptop","topLight","topLight1","shadowElement","funnel2D","borderElement","back"];if(e){if((i=e._3dAttr).isFunnel===t.isFunnel&&i.is2D===t.is2D&&i.isHollow===t.isHollow)return e;for(o=0,n=l.length;o<n;o++)(a=e[r=l[o]])&&(delete e[r],a.remove());return e}}(T,b={x:e,y:t,R1:a,R2:o,h:r,r3dFactor:c=(0,i.pluckNumber)(c,.15),is2D:p,use3DLighting:m,isHollow:f,isFunnel:d,renderer:h})||h.group(u,A)).toFront(),(!k.front&&!p||!k.funnel2D&&!k.lighterHalf&&p)&&this.getState("notInitial")&&this.config.prevIs2d===b.is2D?(y=n(b),E.y=E.y+E.h,E.R1=E.R2,E.h=0,v=n(E)):(v=n(b),this.getState("notInitial",!0)),(w=Object.assign({},b)).y=w.y+w.h,w.R1=w.R2,w.h=0,C=n(w),k.squeezedFormPathObj=C,k.Shapeargs=y||v,S=function(e,t){var a=e.getFromEnv("chart");return function(o,r,i){var n=t[o];return n?(a.getFromEnv("animationManager").setAnimation({el:n,attr:{path:r},component:e}),n):(i=i||x,e.postPlotCallback(),a.getFromEnv("animationManager").setAnimation({el:"path",label:"path",attr:Object.assign({path:r},i),container:t,component:e}))}}(this,k),k.shadowElement=S("shadowElement",v.silhuette,{fill:L,stroke:g}),k._attr=k._attr||k.attr,k.attr=l,k.shadow=s,k._3dAttr=b,d?p?(k.funnel2D=S("funnel2D",v.silhuette),y&&(k.funnel2D=S("funnel2D",y.silhuette))):(k.back=S("back",v.back,{"stroke-width":0,stroke:g}),k.front=S("front",v.front,{"stroke-width":0,stroke:g}),y&&(k.back=S("back",y.back,{"stroke-width":0,stroke:g})),y&&(k.front=S("front",y.front,{"stroke-width":0,stroke:g})),v.top&&(k.toptop=S("toptop",v.top,{"stroke-width":0,stroke:g}),y&&(k.toptop=S("toptop",y.top,{"stroke-width":0,stroke:g})))):p?(k.lighterHalf=S("lighterHalf",v.lighterHalf,{"stroke-width":0}),y&&(k.lighterHalf=S("lighterHalf",y.lighterHalf,{"stroke-width":0})),k.darkerHalf=S("darkerHalf",v.darkerHalf,{"stroke-width":0}),y&&(k.darkerHalf=S("darkerHalf",y.darkerHalf,{"stroke-width":0})),k.borderElement=S("borderElement",v.silhuette,{fill:L,stroke:g}),y&&(k.borderElement=S("borderElement",y.silhuette,{fill:L,stroke:g}))):(k.front=S("front",v.front,{"stroke-width":0}),y&&(k.front=S("front",y.front,{"stroke-width":0})),k.centerLight=S("centerLight",v.centerLight,{"stroke-width":0}),y&&(k.centerLight=S("centerLight",y.centerLight,{"stroke-width":0})),k.centerLight1=S("centerLight1",v.centerLight1,{"stroke-width":0}),y&&(k.centerLight1=S("centerLight1",y.centerLight1,{"stroke-width":0})),k.toptop=S("toptop",v.top,{"stroke-width":0}),y&&(k.toptop=S("toptop",y.top,{"stroke-width":0})),k.topLight=S("topLight",v.topLight,{"stroke-width":0}),y&&(k.topLight=S("topLight",y.topLight,{"stroke-width":0})),k.topLight1=S("topLight1",v.topLight1,{"stroke-width":0}),y&&(k.topLight1=S("topLight1",y.topLight1,{"stroke-width":0}))),k}),c.config.legendItemIds=[],(0,c.utils(c).invokeHookFns)(c.postInitHook),c}return p(t,e),t.prototype.getType=function(){return"dataset"},t.prototype.getName=function(){return"funnelPyramidBase"},t.prototype.trimData=function(e){l.trimData.call(this,e)},t.prototype.getDataLength=function(){var e,t=this.getChildren("data"),a=0,o=t.length;for(e=0;e<o;e++)t[e].getState("removed")||a++;return a},t.prototype.removeData=function(e,t){var a,o,r,n=arguments.length>2&&arguments[2]!==undefined&&arguments[2],l=this.components,s=this.getChildren("data");for(t=(0,i.pluckNumber)(t,1),e=(0,i.pluckNumber)(e,0),r=(a=l.removedDataArr=s.splice(e,t)).length,o=0;o<r;o++)a[o]||a.splice(o,1);n&&this.asyncDraw()},t.prototype.removePlots=function(){var e,t,a,o,r=this.components.removedDataArr;if(r)for(e=r.length-1;e>=0;e--){for(t in a=(o=r[e]).getGraphicalElement())o.removeGraphicalElement(a[t]);r.splice(e,1)}},t.prototype._configure=function(){var e=this.getFromEnv("chart"),t=this.getFromEnv("color-manager"),a=e.config.style,o=this.config||{},r=this.config.JSONData.data||[],n=e.getFromEnv("dataSource")?e.getFromEnv("dataSource").chart:{},l=this.utils(this),s=l.invokeHookFns,c=l.copyProperties,u=this.configureSpecifics,p=t.getColor("baseFontColor");c(n,o,[["showlabels","showLabels",i.pluckNumber,1],["showvalues","showValues",i.pluckNumber,1],["plottooltext","toolText",i.pluck,i.BLANK],["enableslicing","enableSlicing",i.pluckNumber,1],["plotfillalpha","plotFillAlpha",i.pluckNumber,100],["showplotborder","showPlotBorder",i.pluckNumber,0],["plotborderalpha","plotBorderAlpha",i.pluckNumber,h],["plotbordercolor","plotBorderColor",i.pluck,h],["plotborderthickness","plotBorderThickness",i.pluckNumber,1],["showshadow","showShadow",i.pluckNumber,1],["showhovereffect",d,i.pluckNumber,0],["hovercapsepchar","hoverCapSepChar",i.pluck,i.COMMASPACE],["tooltipsepchar","tooltipSepChar",i.pluck,"$hoverCapSepChar"],["labelsepchar","labelSepChar",i.pluck,"$tooltipSepChar"],["showpercentintooltip","showPercentInToolTip",i.pluckNumber,1],["showpercentvalues","showPercentValues",i.pluckNumber,0],[i.BLANK,"blankSpace",i.pluckNumber,3],["labeldistance","labelDistance",i.pluckNumber,50],["issliced","isSliced",i.pluckNumber,0],["is2d","is2d",i.pluckNumber,0],[i.BLANK,"blankSpace",i.pluckNumber,3],["showlabelsatcenter","showLabelsAtCenter",i.pluckNumber,0],["smartlinethickness","connectorWidth",i.pluckNumber,1],["smartlinealpha","connectorAlpha",i.pluckNumber,100],["smartlinecolor","rawSmartLineColorCode",i.pluck,function(){return t.getColor("baseFontColor")}],["labelalpha","labelAlpha",i.pluckNumber,100],["basefont","baseFont",i.pluck,"Verdana,sans"],["basefontsize","baseFontSize",i.pluckNumber,10],["basefontcolor","baseFontColor",i.pluck,p],["labelfontcolor","labelFontColor",i.pluck,"$baseFontColor"],["showtooltip","showTooltip",i.pluckNumber,1],["percentofprevious","percentOfPrevious",i.pluckNumber,0],["animationduration","animationDuration",i.pluckNumber,1,function(e){e.animationDuration*=1e3}]]),o.connectorColor=(0,i.convertColor)(o.rawSmartLineColorCode,o.connectorAlpha),o.origLabelDistance=o.labelDistance,(0,i.setLineHeight)(a),a.nLineHeight=a.lineHeight.match(/^\d+/)[0],c(a,o,[[i.BLANK,"lineHeight",i.pluckNumber,o.baseFontSize]]),o.isSliced&&(o.clicked=!0),delete a.nLineHeight,s(u),o.showLabels||o.showValues?o.datalabelDisabled=!1:o.datalabelDisabled=!0,this.getNormalizeDataSet(r)},t.prototype._preDrawingHook=function(){var e=this.getFromEnv("chart"),t=this.config,a=e.config,o=this.utils(this),r=e.getFromEnv("dataSource")?e.getFromEnv("dataSource").chart:{},n=a.canvasHeight;(0,o.copyProperties)(r,t,[[i.BLANK,"slicingDistance",i.pluckNumber,.1*n],["slicingdistance","slicingHeight",i.pluckNumber,"$slicingDistance",function(){t.slicingHeight>2*t.slicingDistance?t.slicingDistance=0:t.slicingDistance=t.slicingHeight}]])},t.prototype._checkValidData=function(e){var t=this.getFromEnv("chart");return!(!e||!e.length)||(t.setChartMessage(),!1)},t.prototype.addLegend=function(){var e,t,a,o,n,l=this.getFromEnv("chart"),s=0,c=l.getFromEnv("dataSource").chart,u=this.getChildren("data")||this.config.JSONData.data,p=l.getFromEnv("legend"),h=p.getChildren("legendItem");for(o=0;o<u.length;o++)if(t=(n=u[o]).config,n.pseudoPoint||n.getState("removed")||!n.label&&!n.categoryLabel){if(n.pseudoPoint)continue;r("undefined"!==n.categoryLabel)&&s++,t.legendItemId&&((h=p.getItem(t.legendItemId))&&p.disposeItem(h.getId()),delete t.legendItemId)}else e={type:this.getName(),label:n.label||n.categoryLabel,index:s,enabled:(0,i.pluckNumber)(c.includeinlegend,1),legendItemId:n.legendItemId},(h=p.getItem(t.legendItemId))||(a=p.createItem(this),n.config.legendItemId=a,(h=p.getItem(t.legendItemId)).addEventListener("fc-click",h.itemClickFn)),h.configure(e),s++,h.setStateCosmetics("default",{symbol:{fill:u[o].legendColor,rawFillColor:u[o].rawColor,stroke:(0,i.getLightColor)(u[o].rawColor,60).replace(M,i.HASHSTRING)}})},t.prototype.legendInteractivity=function(e){var t,a=this.getChildren("data"),o=void 0,r=e.getId();for(o=0,t=a.length;o<t;o++)if(a[o].config.legendItemId===r){this.legendClick({datasetStore:this,plotItem:a[o].plot},!0,!1);break}},t.prototype.getNormalizeDataSet=function(e){var t,a,o,r,n,l,s,c,u,p,h=this.getChildren("data")||[],d=this.getFromEnv("chart"),f=this.config,m=this.getFromEnv("smartLabel"),b=f.pointInContext,v=d.getFromEnv("dataSource").chart,y=f.dataConnectorStyle={},k=d.config.PLOT_COLOR_INDEX_START,C=0;if((0,i.extend2)(s=f.style={},d.config.style),f.noOFSlicedElement=0,s.borderDash=g,s.borderPadding=2,s.borderRadius=0,s.borderThickness=1,s.color=(0,i.convertColor)(f.labelFontColor,f.labelAlp