UNPKG

quoslibero

Version:

FusionCharts JavaScript charting framework

1 lines 355 kB
!function(t){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=t:t()}(function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[3],{609:function(t,e,n){"use strict";e.__esModule=!0,e.TimeSeries=undefined;var i=c(n(610)),o=c(n(123)),r=c(n(294)),a=n(319),l=n(348),s=n(349);function c(t){return t&&t.__esModule?t:{"default":t}}o["default"].DataStore=r["default"],o["default"].DataStore.Operators={between:a.between,equals:a.equals,less:a.less,lessEquals:a.lessEquals,greater:a.greater,greaterEquals:a.greaterEquals,filter:a.filter,select:a.select,groupBy:a.groupBy,pipe:a.pipe,sort:a.sort,pivot:a.pivot},o["default"].Utils={duration:s.duration,before:s.before,after:s.after,parseDate:s.parseDate,formatDate:s.formatDate,DatetimeUnits:s.DatetimeUnits,Weekdays:s.Weekdays},o["default"].DataStore.Aggregators={aggregatorStore:l.aggregatorStore},e.TimeSeries=i["default"],e["default"]={name:"timeseries",type:"package",requiresFusionCharts:!0,extension:function(t){return t.addDep(i["default"])}}},610:function(t,e,n){"use strict";e.__esModule=!0;var i=n(611);e["default"]=i.TimeSeries},611:function(t,e,n){"use strict";e.__esModule=!0,e.TimeSeries=undefined;var i,o=n(612),r=(i=o)&&i.__esModule?i:{"default":i};e.TimeSeries=r["default"]},612:function(t,e,n){"use strict";e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=B(n(613)),r=B(n(639)),a=B(n(641)),l=B(n(642)),s=B(n(646)),c=B(n(653)),u=B(n(361)),f=n(125),d=B(n(371)),h=B(n(659)),p=B(n(678)),g=B(n(723)),m=B(n(725)),v=B(n(728)),y=B(n(729)),b=B(n(746)),x=B(n(747)),_=B(n(749)),k=B(n(762)),w=B(n(764)),S=B(n(765)),E=B(n(766)),C=B(n(771)),D=B(n(772)),M=B(n(668)),T=B(n(666)),O=B(n(778)),F=n(320),L=n(340),I=B(n(669)),P=n(327),j=B(n(780)),A=B(n(665));function B(t){return t&&t.__esModule?t:{"default":t}}function H(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):function(t,e){for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i],r=Object.getOwnPropertyDescriptor(e,o);r&&r.configurable&&t[o]===undefined&&Object.defineProperty(t,o,r)}}(t,e))}var N=f.regex.dropHash,R=function(t,e){return t.getSchema().filter(e).map(function(t){return t.name})},G=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Y=function(t){return t.map(function(t){return{x:t.x,y:t.y,plots:(0,a["default"])(t.x.map(function(t){return t.index}),t.y.map(function(t){return t.index})).map(function(t){return{x:t[0],y:t[1]}})}})},V=function(t){return+t.split("_").pop()},z=function(t){return"date"===t.type||"interval"===t.type},X=function(t){return"number"===t.type},U=function(t){return"string"===t.type},W=(0,r["default"])(o["default"]),q=function(t,e){return W(function(t,n){return e.map(function(t,e,i){return{x:[{index:n,visible:e===i.length-1}],y:[{index:e,align:"left"}]}})},t)},Q=function(t,e){return W(function(t,n){return{x:[{index:n,visible:!0}],y:e.map(function(t,e){return{index:e,align:e%2==0?"left":"right"}})}},t)},Z=function(t,e){"object"===(void 0===t?"undefined":i(t))&&(t["line-height"]||(t["line-height"]=1.2*(parseFloat(t["font-size"])||e||10)+f.PXSTRING))},$=function(t,e){for(var n in t)t[n]._fc_info.table=t[n]._fc_info.filter?e.table.query([t[n]._fc_info.filterInfo.query]):e.table,t[n]._fc_info.filterInfo.table=t[n]._fc_info.table,it(t[n])},K=function(t,e){for(var n in t)t[n]._fc_info.table=e.table,t[n]._fc_info.group=n,it(t[n])},J=function(t,e){for(var n in t)t[n]._fc_info.table=e.table,t[n]._fc_info.groupItems=e.groupItems,t[n]._fc_info.group=e.group,it(t[n])},tt=function(t){var e=t.op,n=t.operands,i=[];if(t.filter){for(var o in n){var r;if(n.hasOwnProperty(o))(r=i).push.apply(r,Object.keys(n[o]))}i=(0,s["default"])(i)}else i=Object.keys(n);return i.map(function(t){return{column:t,operation:e}})},et=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],n=arguments[2],i=arguments[3],r=function(r){if("plottype"!==r){var a=function(t){return t.column===r&&t.operation===i};(e.length>0?(0,o["default"])(function(t){return n.filter(a).map(function(e){return[t,e.column,e.operation]})},e).map(function(t){return t.join(" - ")}):n.filter(a).map(function(t){return[t.column,t.operation].join(" - ")})).forEach(function(e){return t[r].push(e)})}};for(var a in t)r(a)},nt=function(t,e){var n=function(n){var i=t[n]._fc_info.binDecider,r=t[n]._fc_info.chart,a=i.getRangeThreshold(),l=[{column:t[n]._fc_info.bin,timeUnit:L.DatetimeUnits[G(a[0].name())],binSize:a[1],startValue:t[n]._fc_info.totalStart}],s=e.group,c=e.groupItems,u=e.pivot,f=e.table,d=function(t){return(0,F.filter)(function(e,n){return e[n[s]]===t})};for(var h in t[n])"aggregate"===h&&function(){var e,p=t[n][h]._fc_info,g=[],m=void 0,v=[],y=[],b=[];for(var x in p)g.push({op:x,operands:p[x],filter:s});if(e=(0,o["default"])(tt,g),s){var _=c.map(d).map(function(t){return f.query([t])});u?(m=(0,F.pivot)(l,u,e),_.forEach(function(t){v.push(t.query([m])),y.push(t.unique(u))})):(m=(0,F.groupBy)(l,e),v=_.map(function(t){return t.query([m])}))}else u?(m=(0,F.pivot)(l,u,e),b=f.unique(u)):m=(0,F.groupBy)(l,e),v=[f.query([m])];r.addEventListener("focusLimitChanged",function(){a=i.getRangeThreshold(),l=[{column:t[n]._fc_info.bin,timeUnit:L.DatetimeUnits[G(a[0].name())],binSize:a[1],startValue:t[n]._fc_info.totalStart}],u?m._updateArgs(l,u,e):m._updateArgs(l,e)}),g.forEach(function(i){var o=i.operands;s?c.forEach(function(r,a){var l=o[r];l.table=v[a],l.position=t[n]._fc_info.bin,l.filterItem=r,et(l,y[a],e,i.op)}):(o.table=v[0],o.position=t[n]._fc_info.bin,et(o,b,e,i.op))})}()};for(var i in t)n(i)},it=function(t){for(var e in t){var n=t[e];"filter"===e?$(n,t._fc_info):"group"===e?K(n,t._fc_info):"pivot"===e?J(n,t._fc_info):"bin"===e&&nt(n,t._fc_info)}},ot=function(t,e){var n=void 0,i=void 0,o=void 0,r=void 0,a=void 0,l=void 0,s=void 0;e?(n=t.config.contextPanels,i=t.config.contextAxesX,o=t.config.contextAxesY,r=t.getFromEnv("contextBins"),a=t.getFromEnv("contextScalesX"),l=t.getFromEnv("contextScalesY"),s=t.config.contextTableMap):(n=t.config.focusPanels,i=t.config.focusAxesX,o=t.config.focusAxesY,r=t.getFromEnv("focusBins"),a=t.getFromEnv("focusScalesX"),l=t.getFromEnv("focusScalesY"),s=t.config.focusTableMap);for(var c=0,u=n.length;c<u;c++)for(var d=n[c].plots,h=function(e,n){var c=d[e],u=i[c.x],h=o[c.y],p=r[c.x],g=p.getRangeThreshold(),m=p.getBinDomain().map(Number),v=a[c.x],y=l[c.y],b=s;c.plots||(c.plots=[]),u.binDecider=p,u.scale=v,h.scale=y,u.filter&&(b.filter||(b.filter={}),b=b.filter,u.filterInfo.query=(0,F.between)(u.filter[0],m[0]-2*g[2],m[1]+2*g[2]),b["x__FC_OP_SEP__"+c.x]||(b["x__FC_OP_SEP__"+c.x]={_fc_info:{filter:u.filter[0],filterInfo:u.filterInfo,start:m[0],end:m[1]}}),b=b["x__FC_OP_SEP__"+c.x]),h.filter&&(b||(b.filter={}),(b=b.filter)["y__FC_OP_SEP__"+c.y]||(b["y__FC_OP_SEP__"+c.y]={_fc_info:{filter:h.filter[0]}}),b=b["y__FC_OP_SEP__"+c.y]),h.plot.forEach(function(e,n){var i=b,o=[];if(e.group){var r=e.group;b.group||(b.group={}),(b=b.group)[r]||(b[r]={_fc_info:{}}),b[r]._fc_info.groupItems=o=t.config.dataTable.unique(r),b=b[r]}if(e.stack){var a=e.stack;b.pivot||(b.pivot={}),(b=b.pivot)[a]||(b[a]={_fc_info:{pivot:a}}),b=b[a]}if(u.bin&&(b.bin||(b.bin={}),(b=b.bin)["x__FC_OP_SEP__"+c.x]||(b["x__FC_OP_SEP__"+c.x]={_fc_info:{chart:t,bin:u.bin[0],binDecider:p,totalStart:+P.timeYear.floor(new Date(t.config.dataTable.min(u.bin[0])))}}),b=b["x__FC_OP_SEP__"+c.x]),h.bin&&(b.bin||(b.bin={}),(b=b.bin)["y__FC_OP_SEP__"+c.y]||(b["y__FC_OP_SEP__"+c.y]={_fc_info:{bin:h.bin[0]}}),b=b["y__FC_OP_SEP__"+c.y]),b.aggregate||(b.aggregate={_fc_info:{}}),"candlestick"===e.type||"ohlc"===e.type)for(var l=e.group?o.length:1,s=0;s<l;++s){var d={plottype:e.type,typeinnavigator:e.typeinnavigator},g=e.group?o[s]:f.UNDEF;if(e.open){b.aggregate._fc_info.first||(b.aggregate._fc_info.first={});var m=b.aggregate._fc_info.first;g&&!m[g]&&(m[g]={}),g?m[g][e.open]||(m[g][e.open]=[]):m[e.open]||(m[e.open]=[]),d.open=g?m[g][e.open]:m[e.open]}if(e.high){b.aggregate._fc_info.max||(b.aggregate._fc_info.max={});var v=b.aggregate._fc_info.max;g&&!v[g]&&(v[g]={}),g?v[g][e.high]||(v[g][e.high]=[]):v[e.high]||(v[e.high]=[]),d.high=g?v[g][e.high]:v[e.high]}if(e.low){b.aggregate._fc_info.min||(b.aggregate._fc_info.min={});var y=b.aggregate._fc_info.min;g&&!y[g]&&(y[g]={}),g?y[g][e.low]||(y[g][e.low]=[]):y[e.low]||(y[e.low]=[]),d.low=g?y[g][e.low]:y[e.low]}if(e.close){b.aggregate._fc_info.last||(b.aggregate._fc_info.last={});var x=b.aggregate._fc_info.last;g&&!x[g]&&(x[g]={}),g?x[g][e.close]||(x[g][e.close]=[]):x[e.close]||(x[e.close]=[]),d.close=g?x[g][e.close]:x[e.close]}var _=b.aggregate._fc_info;d.tableInfo=(g?[_.first[g],_.max[g],_.min[g],_.last[g]]:[_.first,_.max,_.min,_.last]).filter(function(t){return!!t})[0],d.value=e.value,d.plotInAxisIndex=n,c.plots.push(d)}else{b.aggregate._fc_info[e.aggregation]||(b.aggregate._fc_info[e.aggregation]={});var k=b.aggregate._fc_info[e.aggregation];if(e.group)for(var w=0;w<o.length;++w){var S=o[w];k[S]||(k[S]={}),k[S][e.value]||(k[S][e.value]=[]),c.plots.push({plottype:e.type,typeinnavigator:e.typeinnavigator,tableInfo:k[S],value:k[S][e.value],stack:e.stack,plotInAxisIndex:n})}else k[e.value]||(k[e.value]=[]),c.plots.push({plottype:e.type,typeinnavigator:e.typeinnavigator,tableInfo:k,value:k[e.value],stack:e.stack,plotInAxisIndex:n})}b=i})},p=0,g=d.length;p<g;p++)h(p)},rt=function(t,e,n,i,o,r){(0,I["default"])(o)&&0!==o||(o=10);var a=t>0&&isFinite(t)?function(t,e){var n=.9*t;return e?Math.min(n,1):n}(t,r):1,l=(0,I["default"])(n)&&n>0&&n<t?n:a,s=e>0&&isFinite(e)?e:a+ +o;return[l,(0,I["default"])(i)&&i>l?i:1.2*s]},at=function(t,e,n,i,o){!isFinite(t)&&(t=f.UNDEF),!isFinite(e)&&(e=f.UNDEF),!isFinite(n)&&(n=f.UNDEF),!isFinite(i)&&(i=f.UNDEF);var r=n<t?n:t!==f.UNDEF?function(t,e){var n=t-Math.abs(.1*t);return n>0&&e?0:n}(t,o):0,a=r<0&&(i<0||e<0);return[r,i>e?i:e!==f.UNDEF?a&&o?0:e+Math.abs(.2*e):r+1]},lt=function pt(t){for(var e in t)t.hasOwnProperty(e)&&("object"===i(t[e])?pt(t[e]):"stroke-dasharray"===e&&"string"==typeof t[e]&&(t[e]=t[e].replace(/^\s+|\s+$/g,"").replace(/,/g," ").split(" ").map(function(t){return+t})))},st=function gt(t){for(var e in t)t.hasOwnProperty(e)&&("object"===i(t[e])?gt(t[e]):"opacity"!==e&&"stroke-opacity"!==e&&"fill-opacity"!==e||(t[e]=Math.max(0,Math.min(1,+t[e]))))},ct=function(t){t.dispose&&t.dispose()},ut=function mt(t,e){for(var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:f.stubFN,i=Object.keys(t),o=i.length,r=!0,a=0;a<o&&r;++a){var l=i[a],s=t[l];if("_fc_info"===l||"table"===l){var c="table"===l?s:s.table;c&&c!==e&&(n(c),r=!1)}else"aggregate"===l?mt(s._fc_info,e,n):(0,A["default"])(s)&&mt(s,e,n)}},ft=function(t,e,n){switch(t){case"plot":n.showWarning("02362480","param"," Timeseries"," Some plot configurations were ignored. Please provide valid values to the plot attribute within a "+e+"Axis configuration.");break;case"axis":n.showWarning("08927060","param"," Timeseries","Some "+e+"Axis configurations were ignored. Please provide a valid value to the plot attribute within the "+e+"Axis configurations.");break;case"fullaxis":n.showWarning("08963401","param"," Timeseries","All "+e+"Axis configurations were ignored. Please provide a valid value to the plot attribute within the "+e+"Axis configurations. Defaulting to showing all numeric columns in separate canvases.")}},dt=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=void 0,n="style='";for(e in t)n+=e+": "+t[e]+"; ";return n+="'"},ht=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this)),i=n;return i.addToEnv("getStyleDef",function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=i.getFromEnv("textStyle"),n=void 0;if("string"==typeof t){var o=i.getFromEnv("dataSource").styledefinition;n={},o&&t.split(/\s+/g).forEach(function(t){return(0,f.extend2)(n,o[t.toLowerCase()])})}return n&&(t=n),lt(t),st(t),(t["font-size"]||0===t["font-size"])&&Z(t,e["font-size"]),t}),i.deregisterFactory("canvas"),i.registerFactory("background",O["default"]),i.registerFactory("caption",x["default"]),i.registerFactory("legend",v["default"]),i.registerFactory("panel",w["default"]),i.registerFactory("selectorToolbar",g["default"],["timeNavigator","canvas"]),i.registerFactory("timeNavigator",p["default"]),i.registerFactory("standardRangeSelector",m["default"],["selectorToolbar"]),i.registerFactory("customRangeSelector",_["default"],["selectorToolbar"]),i.registerFactory("multicanvasCrosslineManager",k["default"],["mouseTracker"]),i.registerFactory("toolbarManager",j["default"],["standardRangeSelector","customRangeSelector"]),n}return H(e,t),e.getName=function(){return"timeseries"},e.prototype.getName=function(){return"timeseries"},e.prototype.__setDefaultConfig=function(){var t=this.config;t.skipConfigureIteration={},t.canvasAxisMap={},t.scaleYDsMap={},t.palettecolors=["#5D62B5","#29C3BE","#F2726F","#FFC533","#62B58F","#BC95DF","#67CDF2"],t.defaultLegendTextStyle={"font-family":f.DEFAULT_FT_FONT,"font-weight":"normal","font-style":"normal","font-size":"12px",fill:"#5F5F5F","line-height":"14px",opacity:"1","fill-opacity":"1"},t.defaultTooltipStyle={"background-color":(0,f.convertColor)("#ffffff","90"),color:"#5f5f5f","border-color":"#e8e8e8","border-width":"1px","border-radius":"0px","line-height":1,"font-family":f.DEFAULT_FT_FONT,padding:"3px",opacity:.9},this.addToEnv("textStyle",{"font-family":"sans-serif","font-size":"10",fill:"#000000","line-height":"12"}),t.contextPanels=f.UNDEF,t.contextLimit=t.focusLimit=f.UNDEF,t.legendMap={}},e.prototype.setTooltipStyle=function(){var t=this.getFromEnv("tooltipStyle"),e=this.getFromEnv("baseTextStyle"),n=this.getFromEnv("toolTipController");t.container=Object.assign({},this.config.defaultTooltipStyle,e,t.text,t.container),t.header=Object.assign({"font-size":(0,f.pluck)(t.container["font-size"],"12px"),"font-weight":(0,f.pluck)(t.container["font-weight"],"bold"),"font-family":t.container["font-family"],padding:"5px 5px 0",color:(0,f.getLightColor)("#5f5f5f",76)},t.header),t.body=Object.assign({"font-size":(0,f.pluck)(t.container["font-size"],"11px"),"font-weight":(0,f.pluck)(t.container["font-weight"],"normal"),"font-family":t.container["font-family"],padding:"0 5px 5px"},t.body),n.setStyle(t.container),n.setRestrictionWithinCanvas({bottom:!0}),t.headerStyleString=dt(t.header),t.bodyStyleString=dt(t.body)},e.prototype.sanitizeData=function(e){var n=this;t.prototype.sanitizeData.call(this,e);var i=(0,S["default"])(R(e.data,z),e.xaxis,!1),o=i.expandedAxis,r=i.actions,a=(0,S["default"])(R(e.data,X),e.yaxis),l=a.expandedAxis,s=a.actions;e.xaxis=o,e.yaxis=l,r.forEach(function(t){return ft(t,"x",n)}),s.forEach(function(t){return ft(t,"y",n)})},e.prototype.getDSdef=function(){return h["default"]},e.prototype._updateVisuals=function(){t.prototype._updateVisuals.call(this),this.getFromEnv("paper").config.noDefaultAttribs=!0},e.prototype.domainValidator=function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[],i=void 0,o=this.getFromEnv("contextBins")[0].getBinMin(),r=t[0],a=t[1],l=e[0],s=e[1],c=+t[0],u=+t[1],f=+e[0],d=+e[1];if(n.length&&(i=Math.abs(u-c-(+n[1]-+n[0]))>1?"squeeze":"drag"),c<f&&(r=l,a="drag"===i?new Date(u+(f-c)):a),u>d&&(a=s,r="drag"===i?new Date(c-(u-d)):r),u<f&&(a=l),c>d&&(r=s),c>u){var h=[a,r];r=h[0],a=h[1]}return a-r>=3*o[2]?(this.fireEvent("domainValidated"),[+r,+a]):this.getFocusLimit()||this.getContextLimit()},e.prototype.configureAttributes=function(t){var e=this.config,n=new d["default"](this),i=new D["default"],o=t.chart,r=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],e=[];return(0,M["default"])(t)?e=t.slice():(0,T["default"])(t)&&(e=t.split(/\s*,\s*/)),(e=e.filter(function(t){return!!t})).map(function(t){return(0,f.hashify)(t)})}(o.palettecolors),a=this.getFromEnv("getStyleDef"),s=t.legend,c=a((o.style||{}).text),u=e.legendMap,h={},p=this.getFromEnv("legendMap"),g=this.getFromEnv("dataSource"),m=(0,f.extend2)(this.getFromEnv("textStyle"),c),v=(0,A["default"])(t.tooltip)?t.tooltip:{},x=(0,A["default"])(v.style)?v.style:{},_=this.getChildren("legend")&&this.getChildren("legend")[0],k=a(s&&s.item&&s.item.style&&s.item.style.text),w=[];for(var S in this.addToEnv("baseTextStyle",Object.assign({"font-family":f.DEFAULT_FT_FONT},c)),k=Object.assign({},this.getFromEnv("baseTextStyle"),k),e.mergedLegendStyle=(0,f.extend2)((0,f.extend2)({},e.defaultLegendTextStyle),k),e.focusTableMap&&ut(e.focusTableMap,e.focusTableMap._fc_info.table,ct),e.contextTableMap&&(ut(e.contextTableMap,e.contextTableMap._fc_info.table,ct),e.contextTableMap=f.UNDEF),this.addToEnv("chart-attrib",o),n.configure(),this.addToEnv("color-manager",n),r.length&&(e.palettecolors=r),i.setRange(e.palettecolors),this.addToEnv("ordinalScale",i),e.dataTable=t.data,e.showLegend=(0,f.pluckNumber)(o.showlegend,1),e.navigatorEnabled=(0,f.pluckNumber)(g.navigator&&g.navigator.enabled,o.enablenavigator,1),e.showTooltip=(0,f.pluckNumber)(v.enabled,o.showtooltip,1),e.interCanvasSpace=(0,f.pluckNumber)(o.intercanvasspace,20),e.multiCanvas=(0,f.pluckNumber)(o.multicanvas,1),this.addToEnv("UTC",(0,f.pluck)(o.enableutc,!1)),this.addToEnv("dateAPI",function(t,e,n){return t["get"+(n?"UTC":"")+e]()}),w=t.xaxis.slice(0,1).map(function(t){return Object.assign({},t,{bin:t.plot.map(function(t){return t.value})})}),e.focusAxesX=w.map(function(t){return Object.assign({},t,{filter:t.plot.map(function(t){return t.value}),filterInfo:{}})}),e.focusAxesY=(0,C["default"])(R(e.dataTable,U),t.yaxis,t.series,t.stack,t.group),e.focusPanels=Y((0,E["default"])(e.focusAxesX,e.focusAxesY,t.canvas,e.multiCanvas?q:Q)),e.pixelMultiplier=1,e.focusAxesY.forEach(function(t){var n=0,i=void 0;t.plot.forEach(function(t){var o=t.stack,r=t.group,a=t.value,l=t.type,s="column"===l;if(s&&(i=r?e.dataTable.unique(r):new Array(1),n+=i.length),o){if(h[o])return;h[o]=e.dataTable.unique(o)}else if(r){if(h[r])return;h[r]=s?i:e.dataTable.unique(r)}else if("ohlc"!==l&&"candlestick"!==l){if(h[a])return;h[a]=[a]}}),e.pixelMultiplier=Math.max(n,e.pixelMultiplier)}),h){h[S].forEach(function(t){u[t]||(u[t]={visibility:!0,series:t})})}if(this.addToEnv("legendMap",u),p){!function t(e,n){for(var i in e)if(e.hasOwnProperty(i)){var o=n&&n[i],r=e[i];r.hasOwnProperty("visibility")?o?(r.visibility||(_.getItem(r.legendItemId).removeLegendState("hidden"),r.visibility=!0),n[i]=r):_&&_.disposeItem(r.legendItemId):t(r,o)}}(p,u)}e.contextAxesX=(0,l["default"])(w),e.contextAxesY=(0,l["default"])(e.focusAxesY),(0,y["default"])(this),(0,b["default"])(this),e.focusTableMap={_fc_info:{table:e.dataTable}},ot(this),e.navigatorEnabled&&(e.contextPanels=Y((0,E["default"])(e.contextAxesX,e.contextAxesY,[],function(t,e){return t.map(function(t,n){return{x:[{index:n}],y:e.map(function(t,e){return{index:e,visible:!1}})}})})),e.contextTableMap={_fc_info:{table:e.dataTable}},ot(this,!0)),it(e.focusTableMap),it(e.contextTableMap),e.printOption={enabled:(0,f.pluckNumber)(o.printshowbutton,o.showprintmenuitem,0)},e.toolbarPosition=function(t){switch(t){case"tr":case"rt":case"top right":case"right top":t="tr";break;case"br":case"rb":case"bottom right":case"right bottom":t="br";break;case"tl":case"lt":case"top left":case"left top":t="tl";break;case"bl":case"lb":case"bottom left":case"left bottom":t="bl";break;default:t="tr"}return t}((0,f.pluck)(o.toolbarposition,"tr").toLowerCase()),e.toolbarHAlign="left"===(""+o.toolbarhalign).toLowerCase()?"l":e.toolbarPosition.charAt(1),e.toolbarVAlign="bottom"===(""+o.toolbarvalign).toLowerCase()?"b":e.toolbarPosition.charAt(0),e.link=o.clickurl,this.addToEnv("linkClickFN",(0,f.getLinkAction)(this.getFromEnv("dataSource"),this)),this.addToEnv("chartConfig",e),this.addToEnv("tooltipStyle",{container:a(x.container),text:a(x.text),header:a(x.header),body:a(x.body)}),this.addToEnv("style",{outCancolor:m.fill,fontSize:m["font-size"],outCanfontFamily:m["font-family"]}),this.createBaseComponent(),this.getFromEnv("animationManager").setAnimationState(this._firstConfigure?"initial":"update"),this._createToolBox(),this.configureChildren(),this.setTooltipStyle()},e.prototype._addLegend=function(t){var e,n,i,o=this.config,r=o.mergedLegendStyle,a=t.series,l=this.getFromEnv("ordinalScale").getRangeValue(a),s=this.getFromEnv("legend"),c=(0,f.getLightColor)(l,60).replace(N,f.HASHSTRING);o.showLegend&&(e={FCcolor:{color:l,angle:0,ratio:"0",alpha:"100"}},n={label:a},(i=s.getItem(t.legendItemId))||(t.legendItemId=s.createItem(),i=s.getItem(t.legendItemId),this.addExtEventListener("fc-click",function(){var e=function(t){return t._flushResult&&t._flushResult({legendInteracted:!0})};t.visibility?(t.visibility=!1,i.setLegendState("hidden")):(t.visibility=!0,i.removeLegendState("hidden")),o.focusTableMap&&ut(o.focusTableMap,o.focusTableMap._fc_info.table,e),o.contextTableMap&&ut(o.contextTableMap,o.contextTableMap._fc_info.table,e)},i)),i.configure(n),i.setStateCosmetics("default",{symbol:{fill:(0,f.toRaphaelColor)(e),rawFillColor:l,stroke:(0,f.toRaphaelColor)(c)},text:Object.assign({},r,{fill:(0,f.convertColor)(r.fill,r.opacity*r["fill-opacity"]*100)})}))},e.prototype._createGroup=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=arguments[1];return this.getFromEnv("animationManager").setAnimation({attr:t,container:e,el:"group",component:this,label:"group"})},e.prototype._createLayers=function(){var t=this.getFromEnv("animationManager"),e=this.getContainer("parentgroup"),n=void 0;!e&&(e=this.addContainer("parentgroup",t.setAnimation({el:e||"group",attr:{name:"parentgroup"},component:this}))),this.getChildContainer("tropo")||this.addChildContainer("tropo",this._createGroup({name:"chart-tropo"},e)),this.getChildContainer("strato")||this.addChildContainer("strato",this._createGroup({name:"chart-strato"},e)),this.getChildContainer("meso")||this.addChildContainer("meso",this._createGroup({name:"chart-meso"},e)),this.getChildContainer("thermo")||this.addChildContainer("thermo",this._createGroup({name:"chart-thermo"},e)),this.getChildContainer("exo")||(n=this.addChildContainer("exo",this._createGroup({name:"chart-exo"},e))),this.getChildContainer("toolbar-master")||this.addChildContainer("toolbar-master",this._createGroup({name:"toolbar-master"},n)),this.getChildContainer("legendGroup")||this.addChildContainer("legendGroup",this._createGroup({name:"legend-group"},n))},e.prototype.manageSpace=function(){var t,e,n,i,o,r,a=this,l=a.config,s=l.focusPanels,c=l.canvasAxisMap,u=a.getFromEnv("focusScalesY"),d=a.getFromEnv("focusScalesX"),h=a.getChildren("caption"),p=a.getFromEnv("selectorToolbar"),g=a.getFromEnv("toolbar"),m=g.getLogicalSpace(),v=a.getChildren("legend")&&a.getChildren("legend")[0],y=a.getChildren("background")[0],b=a.getChildren("canvas_0"),x=0,_=0,k=a.getChildren("timeNavigator"),w=void 0,S=void 0,E=0,C=void 0,D={left:0,right:0},M=0,T=0,O=t=+a.getFromEnv("chartWidth"),F=e=+a.getFromEnv("chartHeight"),L=void 0,I=0,P=0,j=.03*t,A=.03*e,B=0,H=void 0,N=void 0,R=void 0,G=void 0,Y=void 0,z=void 0,X=l.interCanvasSpace;if(T+=(0,f.pluckNumber)(l.marginTop,A),F-=(0,f.pluckNumber)(l.marginBottom,A),M+=(0,f.pluckNumber)(l.marginLeft,j),O-=(0,f.pluckNumber)(l.marginRight,j),y.setDimension({height:e,width:t}),y.setTranslation(0,0),s.forEach(function(t,e){var n=c["canvas_"+e].y,i=.6*(O-M)/(n.length||1);n.map(function(e){var n=V(e),o=a.getChildren(e)[0].setDimension({width:i});return t.y[n].overlap?{}:o}).forEach(function(t){"number"==typeof t.left?D.left=Math.max(D.left,t.left):D.right=Math.max(D.right,t.right)})}),s.forEach(function(t,e){var n=0,i=0,o=void 0,r=void 0,l=void 0;c["canvas_"+e].y.forEach(function(t){o=a.getChildren(t)[0],l=o.getAlignment(),r=o.updateMaxLabelSpace(D[l]),n+=(0,f.pluckNumber)(r.left,0),i+=(0,f.pluckNumber)(r.right,0)}),I=(0,f.safeMax)([I,n]),P=(0,f.safeMax)([P,i])}),s.forEach(function(t,e){var n=c["canvas_"+e].x,i=.6*(F-T)/(n.length||1);n.map(function(e){var n=V(e),o=a.getChildren(e)[0].setDimension({height:i});return t.x[n].overlap?{}:o}).forEach(function(t){B+=(0,f.pluckNumber)(t.top,t.bottom,0)})}),M+=I,O-=P,w=F-T,h&&h.length?(L=h[0].setDimension({width:O-M-m.width,height:.3*w}),h[0].setTranslation(M,T),z=Math.max(L.height,m.height)):z=m.height,m.height&&(g.setDimension({x:O-m.width,y:T}),g.manageSpace()),T+=z,n=Math.max(0,O-M),r=p.getLogicalSpace().height,p.setDimension({x:M,y:T,width:n}),p.manageSpace(),T+=r,o=B+(s.length-1)*X,w=Math.max(0,F-T-o),v&&(Y=Math.max(0,v.setDimension({height:.1*w,width:n}).height),F-=Y,w-=Y,v.setTranslation(M,F)),k&&k.length&&(C=.7*w/(s.length||1),H=.3*w/(k.length||1),k.forEach(function(t,e){G=t.getChildren("brush")[0],S=G.getLabelSpace()+t.config.scrollbarHeight,N=Math.min(Math.max(Math.min(H,.8*C),48),60),R=N+S,t.setDimension({width:n,height:R}),t.setTranslation(M,F-(k.length-e)*R),E+=R}),E>w?k.forEach(function(t){return t.setDimension({width:0,height:0})}):w-=E),i=Math.max(0,w/(s.length||1)),b&&b[0]){var U=b[0].getCanvasBorder();x=U.topBorder+U.bottomBorder,_=U.leftBorder+U.rightBorder}u.forEach(function(t){return t.setRange([i-x-6,0])}),d.forEach(function(t){return t.setRange([0,n-_])}),s.forEach(function(t,e){var o="canvas_"+e,r=c[o],l=r.x,s=r.y,u=t.x,f=t.y,d=M,h=M+n,p=a.getChildren(o)[0],g=p.getCanvasBorder(),m=T+g.topBorder,v=m+i,y=[];p.setPadding({top:6}),p.setDimension({width:n,height:i}),l.forEach(function(t){var e=u[V(t)],n=a.getChildren(t)[0],i=n.getDimension();e.overlap?y.push(t):"top"===e.align?(n.setTranslation(M+g.leftBorder,m),m+=i.top):"bottom"===e.align&&(n.setTranslation(M+g.leftBorder,v),v+=i.bottom)}),p.setTranslation(M,m),y.forEach(function(t){var e=u[V(t)],n=a.getChildren(t)[0],o=n.getDimension();"top"===e.align?n.setTranslation(M+g.leftBorder,m):"bottom"===e.align&&n.setTranslation(M+g.leftBorder,m+i-o.bottom)}),s.forEach(function(t){var e=m+6,i=f[V(t)],o=a.getChildren(t)[0],r=o.getDimension();i.overlap?"left"===i.align?o.setTranslation(M,e):"right"===i.align&&o.setTranslation(M+n-r.right,e):"left"===i.align?(d-=r.left,o.setTranslation(d,e)):"right"===i.align&&(o.setTranslation(h,e),h+=r.right)}),T=v+X})},e.prototype._setDataLabelStyle=function(){return this},e.prototype._checkInvalidData=function(){var t=this.getFromEnv("dataSource"),e=this.getFromEnv("chartInstance");return!t.data&&(e.__state.dataReady=!1,e.jsVars.hasNativeMessage=!0,e.jsVars.drawCount+=1,!0)},e.prototype._checkInvalidSpecificData=function(){var t=this.getFromEnv("dataSource");if(t.data&&"function"==typeof t.data.getData){var e=t.data.getData(),n=e.data,i=e.schema;return!(Array.isArray(n)&&0!==n.length&&Array.isArray(i)&&i.filter(function(t){return"date"===t.type}).length&&i.filter(function(t){return"number"===t.type}).length)}return!0},e.prototype.setYScaleLimit=function(t,e,n){var i=!(arguments.length>3&&arguments[3]!==undefined)||arguments[3],o=this,r=o.config,a=r.scaleYDsMap,l=a[t],s=void 0,c=void 0,u=void 0,d=void 0,h=function(e){var n=e.scale;return n&&n.getId()===t},p=r.focusAxesY.find(h),g=r.contextAxesY.find(h),m=p||g,v=m&&m.scale;if(v){for(var y in l||(l=a[t]={}),(s=l[e])||(s=l[e]={}),s.limit=n,s.baseRequired=i,l)if(l.hasOwnProperty(y)){var b=l[y],x=(0,f.extent)([c,u].concat(b.limit));c=x[0],u=x[1],d=d||b.baseRequired}"log"===v.getType()?v.setDomain(rt(c,u,m.min,m.max,m.base,d)):v.setDomain(at(c,u,m.min,m.max,d)),o.config.focusPanels.forEach(function(t,e){var n="canvas_"+e,i=o.getChildren(n),r=i&&i[0],a=o.config.canvasAxisMap[n],l=a&&a.y;l&&r&&(r.asyncDraw(),l.forEach(function(t){o.getChildren(t).forEach(function(t){t.getScale()===v&&(t.placeAxis(),t.asyncDraw())})}))})}},e.prototype.setXScaleLimit=function(t,e,n){var i=this,o=i.config,r=o.scaleYDsMap,a=r[t],l=void 0,s=void 0,c=void 0,u=void 0,d=void 0,h=i.getContextLimit(),p=h[0],g=h[1],m=function(e){var n=e.scale;return n&&n.getId()===t},v=o.focusAxesX.find(m),y=o.contextAxesX.find(m),b=v||y,x=b&&b.scale;if(x){for(var _ in a||(a=r[t]={}),(l=a[e])||(l=a[e]={}),l.limit=n,a)if(a.hasOwnProperty(_)){var k=a[_],w=(0,f.extent)([s,c].concat(k.limit));s=w[0],c=w[1]}if(v){var S=i.getFocusLimit();u=S[0],d=S[1],+u===p&&(0,I["default"])(s)&&(u=Math.min(u,s)),+d===g&&(0,I["default"])(c)&&(d=Math.max(d,c)),x.setDomain([u,d])}else u=(0,I["default"])(s)?Math.min(p,s):p,d=(0,I["default"])(c)?Math.max(g,c):g,x.setDomain([u,d]);i.config.focusPanels.forEach(function(t,e){var n="canvas_"+e,o=i.getChildren(n),r=o&&o[0],a=i.config.canvasAxisMap[n],l=a&&a.x;l&&r&&(r.asyncDraw(),l.forEach(function(t){i.getChildren(t).forEach(function(t){t.getScale()===x&&(t.placeAxis(),t.asyncDraw())})}))})}},e.prototype.setFocusLimit=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],e=this.config,n=this.domainValidator(t,this.getContextLimit(),e.focusLimit),i=e.focusAxesX[0],o=this.getFromEnv("focusBins")[0],r=this.getFromEnv("focusScalesX")[0],a=this.getFocusLimit();e.focusLimit=n,o.setBinDomain(n);var l=o.getRangeThreshold();r.setRangeThreshold(l),this.fireEvent("focusLimitChanged"),(0,c["default"])(n,a)||i.filterInfo&&i.filterInfo.query&&(i.filterInfo.query._updateArgs(+n[0]-2*+l[2],+n[1]+2*+l[2]),i.filterInfo.table._flushResult(),this.updateVerticalAxesWidth())},e.prototype.updateVerticalAxesWidth=function(){var t=this,e=t.config.canvasAxisMap,n=Object.keys(e),i={left:0,right:0},o=void 0;n.forEach(function(n){e[n].y.forEach(function(e){t.getChildren(e).forEach(function(t){"number"==typeof(o=t.getDimension()).left?i.left=Math.max(i.left,o.left):i.right=Math.max(i.right,o.right)})})}),n.forEach(function(n){e[n].y.forEach(function(e){t.getChildren(e).forEach(function(t){t.updateMaxLabelSpace(i[t.getAlignment()])})})})},e.prototype.getFocusLimit=function(){var t=this.config.focusLimit;return t&&t.slice()},e.prototype.setContextLimit=function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[],e=this.getFromEnv("contextBins");this.config.contextLimit=t.slice(),e[0].setBinDomain(t),this.getFromEnv("contextScalesX")[0].setRangeThreshold(e[0].getRangeThreshold())},e.prototype.getContextLimit=function(){return this.config.contextLimit.slice()},e}(u["default"]);e["default"]=ht},659:function(t,e,n){"use strict";e.__esModule=!0;var i=p(n(660)),o=n(125),r=p(n(671)),a=p(n(674)),l=p(n(675)),s=p(n(673)),c=p(n(676)),u=n(129),f=p(n(669)),d=n(132),h=p(n(677));function p(t){return t&&t.__esModule?t:{"default":t}}function g(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):function(t,e){for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i],r=Object.getOwnPropertyDescriptor(e,o);r&&r.configurable&&t[o]===undefined&&Object.defineProperty(t,o,r)}}(t,e))}var m=3.5,v=5.5,y=function(t,e){return(t+e)/2},b=function(t,e){return Object.assign(t,e)},x="line",_="area",k=function(t,e,n,i,o){var r,a;return t?(r=n-t.x,a=i-t.y,{pointIndex:e,hovered:Math.sqrt(Math.pow(r,2)+Math.pow(a,2))<=5,pointObj:t,component:o}):{pointIndex:e,hovered:!1,component:o}};function w(t){switch(t){case"line":case"smooth-line":case"step-line":return x;case"area":case"smooth-area":case"step-area":return _}}(0,d.addDep)({name:"continuousAnimation",type:"animationRule",extension:h["default"]});var S=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return n.getHoverInConfig=function(t,e){var n=arguments.length>2&&arguments[2]!==undefined&&arguments[2];return{index:t,hovered:!0,radius:e?v:m,isDsHovered:e,isOtherDsHovered:n}},n.getHoverOutConfig=function(t){return{index:t,hovered:!1}},n}return g(e,t),e.prototype.getName=function(){return"continuous"},e.prototype.__setDefaultConfig=function(){t.prototype.__setDefaultConfig.call(this);var e=this.config;e["default-stroke"]="9194CC",e["default-fill"]="9194CC",e["default-anchor-stroke"]=(0,u.convertColor)("#ffffff"),e.type="line",e.plotStyle={},e.linePlotStyle={},e.areaPlotStyle={},e.anchorStyle={},e.anchorHoverInStyle={},e.anchorHoverOutStyle={},e.anchorHighlightObj={},e.defaultLineStyle={"stroke-opacity":1,"stroke-width":2,fill:"none"},e.defaultAreaStyle={"stroke-opacity":1,"stroke-width":0,"fill-opacity":.6},e.defaultAnchorStyle={"fill-opacity":1,"stroke-width":1}},e.prototype.configureAttributes=function(t){var e=void 0,n=void 0,i=this.config;if(t.hasOwnProperty("index"))t.hovered?(i.mode="show",i.sharedAnchorIndex=t.index):(i.mode="hide",i.hideIndex=i.lastShownIndex),i.radius=t.radius,i.isDsHovered=t.isDsHovered,i.isOtherDsHovered=t.isOtherDsHovered,i.hoverMode=!0;else{for(e in t)if("primaryColor"===e){var r=t.plotCosmetics,a=t.genericCosmetics,l=t[e],s=t.type,c=t.styleConfig,f=w(s)===_,d=i.plotStyle,h=i.linePlotStyle,p=i.areaPlotStyle,g=i.anchorStyle,m=i.anchorHoverInStyle,v=i.anchorHighlightObj,y=this.getFromEnv("getStyleDef"),x=y(a.style&&a.style.plot),k=y(a.style&&a.style.line),S=y(a.style&&a.style.area),E=y(a.style&&a.style["plot:hover"]),C=y(a.style&&a.style["plot:highlight"]),D=y(a.style&&a.style.anchor),M=y(a.style&&a.style["anchor:hover"]),T=y(a.style&&a.style["anchor:highlight"]),O=y(c.plot),F=y(r.style&&r.style.line),L=y(r.style&&r.style.area),I=y(r.style&&r.style.plot),P=y(c.line),j=y(c.area),A=y(r.style&&r.style.anchor),B=y(c.anchor),H=y(r.style&&r.style["plot:hover"]),N=y(r.style&&r.style["plot:highlight"]),R=y(c["plot:hover"]),G=y(c["plot:highlight"]),Y=y(r.style&&r.style["anchor:hover"]),V=y(r.style&&r.style["anchor:highlight"]),z=y(c["anchor:hover"]),X=y(c["anchor:highlight"]);for(n in i.defaultLineStyle["stroke-linecap"]=f?"butt":"round",[h,i.defaultLineStyle,x,k,O,I,F,P].reduce(b),[p,i.defaultAreaStyle,x,S,O,I,L,j].reduce(b),[g,i.defaultAnchorStyle,x,D,O,I,A,B].reduce(b),d.fill=p.fill=(0,u.convertColor)((0,o.pluck)(l,i["default-fill"]),100*p["fill-opacity"]),h.fill="none",p.stroke=(0,u.convertColor)((0,o.pluck)(l,i["default-stroke"]),100*p["stroke-opacity"]),h.stroke=(0,u.convertColor)((0,o.pluck)(l,i["default-stroke"]),100*h["stroke-opacity"]),d.stroke=f?p.stroke:h.stroke,g.fill=(0,u.convertColor)((0,o.pluck)(l,i["default-stroke"])),g.stroke=i["default-anchor-stroke"],[m,g,E,M,H,R,Y,z].reduce(b),[v,g,C,T,N,G,V,X].reduce(b),Object.assign(Object.assign({},m),v))i.anchorHoverOutStyle[n]=g[n]||"";Object.keys(v).length||(v=i.anchorHighlightObj=(0,o.extend2)({},i.anchorHoverOutStyle)),i.connectNullData=(0,o.pluckNumber)(i.connectNullData,r.connectnulldata,a.connectnulldata,0),delete p["fill-opacity"],delete p["stroke-opacity"],delete h["stroke-opacity"]}else i[e]=t[e];if(!i.skipLimitCalc){i.limit=this._calculateLimits();var U=this.getFromEnv("chart");U.setYScaleLimit(i.scaleY.getId(),this.getId(),i.limit.y,i.limit.baseRequired),U.setXScaleLimit(i.scaleX.getId(),this.getId(),i.limit.x)}}},e.prototype.getPadding=function(){var t=this.getLinkedParent().config,e=this.config,n=t.enableMouseTracking?this.getValueFromPx(v):1,i=t.enableMarkers?this.getValueFromPx(e.dataMarkerPadding):0;return Math.max(n,i)},e.prototype._getRelevantInfo=function(){var t=this.config;return{firstTimeStamp:t.firstTimeStamp,timeStampGap:t.timeStampGap,dataInfo:t.dataInfo,fill:t.plotStyle.stroke}},e.prototype.allocatePosition=function(){var t=this.config,e=t.indices,n=e[0],i=e[1],u=e[2],d=e[3],h=t.type,p=t.data,g=t.dataInfo,m=[],b=void 0,x=this.getFromEnv("binDecider"),k=this.getFromEnv("xScale"),w=this.getFromEnv("yScale"),S=x.getRangeThreshold()[2],E=void 0,C=void 0,D=void 0,M=void 0,T=void 0,O=void 0,F=void 0,L=void 0,I=void 0,P=void 0,j=void 0,A=void 0,B=void 0,H=p.length,N=k.getDomain(),R=N[0],G=N[1],Y=void 0;if(t.repositioningDone=this._isRepositioningNeeded()){if("visible"!==t.visibility)return;g=t.dataInfo=[],t.timeStampGap=S,t.availableWidth=k.getRangeValue(S)-k.getRangeValue(0),B=+k.getDomainValue(v)-+k.getDomainValue(0),t.actualStartDomain=+R-B,t.actualEndDomain=+G+B,p.forEach(function(e,r,a){Y=e[n],F=e[i],C=Y.start,D=Y.end,M=y(C,D),T=a[r+1],A=e[u],P=w.getRangeValue(A||Math.max(w.getDomain()[0],0)),j=w.getRangeValue(F),r||(L=t.firstTimeStamp=C),(h!==_||(0,f["default"])(P))&&((0,f["default"])(F)&&(0,f["default"])(j)?(I=k.getBinIndex(C,L),b={startDate:C,endDate:D,midDate:M,value:F,paddingInTimestamp:B,yBaseValue:h===_?A:undefined,x:k.getRangeValue(new Date(C),new Date(D)),totalStackSum:(0,o.defined)(e[d])?e[d]:o.UNDEF,y:j,base:P,eventArgs:{index:r,dataValue:F}},g[I]=b,T?(m.push(b),O=y(T[n].start,T[n].end),!t.connectNullData&&O-M>1.5*S&&m.push(null)):H-r==1&&m.push(b)):t.connectNullData||m.push(null))}),(E=function(t){switch(t){case"area":case"smooth-area":case"step-area":return new a["default"];case"line":case"smooth-line":case"step-line":default:return new r["default"]}}(h).setCurve(function(t){switch(t){case"smooth-line":case"smooth-area":return l["default"];case"step-area":case"step-line":return c["default"];case"line":case"area":default:return s["default"]}}(h)).setDefined(function(t){return!!t}).setXAccessor(function(t,e){return m[e].x}).setYAccessor(function(t,e){return m[e].y})).setYBaseAccessor&&E.setYBaseAccessor(function(t,e){return m[e].base}),t.path=E.generate(m),t.topPath=E.getLineYTop&&E.getLineYTop().generate(m)}},e.prototype._isInvalidTooltext=function(t){var e=this.config;if(!t||t.midDate<e.actualStartDomain||t.midDate>e.actualEndDomain)return!0},e.prototype._drawPlot=function(){var t=this.config,e=w(t.type),n=t.linePlotStyle,i=t.areaPlotStyle,r=t.dataInfo,a=void 0;this.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:this,label:"group",id:"meso-line",attr:{name:"line-common-meso",visibility:t.visibility}}),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"group"},component:this,label:"group",id:"thermo-line",attr:{name:"line-common-thermo",visibility:t.visibility}}),this.addGraphicalElement({el:"group",container:{id:"meso-line",label:"group"},component:this,label:"group",id:"meso-plot",attr:{name:"line-plot-meso",visibility:t.visibility}},!0),this.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:this,label:"group",id:"thermo-plot",attr:{name:"line-plot-thermo",visibility:t.visibility}},!0),this.addGraphicalElement({el:"group",container:{id:"thermo-line",label:"group"},component:this,label:"group",id:"thermo-anchor",attr:{name:"line-anchor-thermo",visibility:t.visibility}},!0),this.addGraphicalElement({el:"path",container:{label:"group",id:"meso-plot"},attr:Object.assign({path:t.path},"line"===e?n:i),label:"path",component:this},!0),t.topPath&&this.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-plot"},attr:Object.assign({path:t.topPath,fill:"none"},n),label:"topPath",component:this},!0),"show"===t.mode?isNaN(t.sharedAnchorIndex)||(a=r[t.sharedAnchorIndex],t.lastShownIndex=t.sharedAnchorIndex,a&&!isNaN(a.value)&&this.addGraphicalElement({el:"path",container:{label:"group",id:"thermo-anchor"},attr:Object.assign({path:(0,o.polyPathToPath)([2,a.x,a.y,t.radius,0,0]),visibility:"show"},t.isDsHovered?t.anchorHoverInStyle:t.isOtherDsHovered?t.anchorStyle:t.anchorHighlightObj),id:"shared-anchor",label:t.dsType+"-anchor"})):isNaN(t.hideIndex)||(a=r[t.hideIndex])&&!isNaN(a.value)&&this.addGraphicalElement({el:"path",container:{label:"group",id:"meso-anchor"},attr:{visibility:"hidden"},id:"shared-anchor",label:t.dsType+"-anchor"})},e.prototype.setHoverInEffect=function(t,e,n){this.getFromEnv("animationManager").setAnimationState("mouseOver"),this.setData(this.getHoverInConfig(t,e,n),!0)},e.prototype._getHoveredPlot=function(t,e){var n,i,o,r,a,l,s,c=this.getFromEnv("xScale"),u=[this.getChildren("pinMarker"),this.getChildren("flagMarker")],f=this.config,d=f.dataInfo,h=d.length,p=this.getLinkedParent().getTranslation(),g=p.x,m=p.y;if(t-=g,e-=m,s=c.getDomainValue(t-5).getTime(),l=(s-f.firstTimeStamp)/f.timeStampGap,i=Math.floor(Math.max(l,0)),s=c.getDomainValue(t+5).getTime(),l=(s-f.firstTimeStamp)/f.timeStampGap,o=Math.ceil(Math.min(l,h-1)),u.forEach(function(n){!r&&n&&(n=n[0])&&(r=n._checkPointOverMarker(l,t,e,f.availableWidth))}),!r)for(a=o;a>=i&&(n=d[a],!(r=k(n,a,t,e,this)).hovered);a--);return!r&&(r={}),r.hovered?r.binIndexHovered=r.pointIndex:(r.binIndexHovered=c.getBinIndex(c.getDomainValue(t),f.firstTimeStamp),r.pointObj=f.dataInfo[r.binIndexHovered]||c.getBinBounds(t,f.firstTimeStamp),r.component=this),f.binIndexHovered=r.binIndexHovered,r},e}(i["default"]);e["default"]=S},660:function(t,e,n){"use strict";e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=u(n(141)),r=n(125),a=u(n(661)),l=u(n(669)),s=n(132),c=u(n(670));function u(t){return t&&t.__esModule?t:{"default":t}}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):function(t,e){for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i],r=Object.getOwnPropertyDescriptor(e,o);r&&r.configurable&&t[o]===undefined&&Object.defineProperty(t,o,r)}}(t,e))}var d=function(t,e){return Object.assign(t,e)},h=function(t){return[t.start,t.end]},p=function(t,e,n,i){return t&&e<=0||n[1]<i[0]||n[0]>i[1]},g=r.hasTouch?r.TOUCH_THRESHOLD_PIXELS:r.CLICK_THRESHOLD_PIXELS;(0,s.addDep)({name:"timeseriesColumnAnimation",type:"animationRule",extension:c["default"]});var m=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this));return n.registerFactory("markerFactory",a["default"]),n._getFirstValidData=function(t,e){var n=void 0,i=t.length;for(n=0;n<i;n++)if(t[0]&&t[0][e]!==undefined)return t[0][e]},n.config.hoverInfo=[],n}return f(e,t),e.prototype.getHoverInConfig=function(t){return{style:this.config.hoverInStyle,index:t,hovered:!0}},e.prototype.getHighlightConfig=function(t){return{style:this.config.highlightStyle,index:t,hovered:!1}},e.prototype.getHoverOutConfig=function(t){return{style:this.config.hoverOutStyle,index:t,hovered:!1}},e.prototype.getType=function(){return"dataset"},e.prototype.getName=function(){return"timeseriesColumn"},e.prototype.__setDefaultConfig=function(){t.prototype.__setDefaultConfig.call(this);var e=this.config;e["default-plotSpacePercent"]=30,e.visibility="visible",e.prevBoundaryInfo={},e.prevDataInfo=[],e.dataMarkerPadding=0,e.style={},e.hoverInStyle={},e.highlightStyle={},e.hoverOutStyle={},e.defaultStyle={"stroke-width":1,"fill-opacity":1,"stroke-opacity":1,opacity:1},e.defaultHoverInStyle={opacity:.8}},e.prototype.configureAttributes=function(t){var e=void 0,n=this.getFromEnv("chart-attrib"),i=this.config;if(t.hasOwnProperty("index"))i.hoverInfo.push(t),i.hoverMode=!0;else{for(e in t)if("primaryColor"===e){var o=t.plotCosmetics,a=t.genericCosmetics,l=t[e],s=void 0,c=this.getFromEnv("getStyleDef"),u=c(a.style&&a.style.plot),f=c(a.style&&a.style["plot:hover"]),h=c(a.style&&a.style["plot:highlight"]),p=c(o.style&&o.style.plot),g=c(t.styleConfig&&t.styleConfig.plot),m=c(o.style&&o.style.column),v=c(t.styleConfig&&t.styleConfig.column),y=c(o.style&&o.style["plot:hover"]),b=c(o.style&&o.style["plot:highlight"]),x=c(t.styleConfig&&t.styleConfig["plot:hover"]),_=c(t.styleConfig&&t.styleConfig["plot:highlight"]),k=c(o.style&&o.style["column:hover"]),w=c(o.style&&o.style["column:highlight"]),S=c(t.styleConfig&&t.styleConfig["column:hover"]),E=c(t.styleConfig&&t.styleConfig["column:highlight"]),C=i.style,D=i.hoverOutStyle,M=i.hoverInStyle,T=i.highlightStyle;for(s in[C,i.defaultStyle,u,p,g,m,v].reduce(d),[M,i.defaultHoverInStyle,f,y,k,x,S].reduce(d),[T,h,b,w,_,E].reduce(d),Object.keys(T).length||(T=i.highlightStyle=(0,r.extend2)({},M)),C.stroke=(0,r.convertColor)((0,r.pluck)(C.stroke,l,i["default-stroke"]),100*(0,r.pluckNumber)(C["stroke-opacity"],1)),C.fill=(0,r.convertColor)((0,r.pluck)(l,C.stroke,i["default-fill"]),100*(0,r.pluckNumber)(C["fill-opacity"],1)),M.fill&&(M.fill=(0,r.convertColor)(M.fill,100*(0,r.pluckNumber)(M["fill-opacity"],C["fill-opacity"]))),M.stroke&&(M.stroke=(0,r.convertColor)(M.stroke,100*(0,r.pluckNumber)(M["stroke-opacity"],C["stroke-opacity"]))),T.fill&&(T.fill=(0,r.convertColor)(T.fill,100*(0,r.pluckNumber)(T["fill-opacity"],C["fill-opacity"]))),T.stroke&&(T.stroke=(0,r.convertColor)(T.stroke,100*(0,r.pluckNumber)(T["stroke-opacity"],C["stroke-opacity"]))),Object.assign(Object.assign({},M),T))D[s]=(0,r.pluck)(C[s],"");(0,r.defined)(D["stroke-dasharray"])&&(D["stroke-dasharray"]=""),i.plotBorderThickness=C["stroke-width"],i.opacity=C.opacity,i["fill-opacity"]=C["fill-opacity"],i["stroke-opacity"]=C["stroke-opacity"],delete C.opacity,delete C["fill-opacity"],delete C["stroke-opacity"]}else i[e]=t[e];if(i.plotSpacePercent=(0,r.pluckNumber)(n.plotspacepercent,i["default-plotSpacePercent"]),!i.skipLimitCalc){i.limit=this._calculateLimits();var O=this.getFromEnv("chart");O.setYScaleLimit(i.scaleY.getId(),this.getId(),i.limit.y,i.limit.baseRequired),O.setXScaleLimit(i.scaleX.getId(),this.getId(),i.limit.x)}}},e.prototype.getValueFromPx=function(t){var e=this.getFromEnv("binDecider").getBinRange(),n=e[1]-e[0],i=this.getFromEnv("chart").getFocusLimit();return t*(i[1]-i[0])/(n-t)},e.prototype.getPadding=function(){var t=this.config,e=t.scaleX,n=this.getFromEnv("binDecider").getRangeThreshold(),i=0,o=this.getValueFromPx(t.dataMarkerPadding);return e.showPlotOverTick()&&(i=n[2]/2),Math.max(i,o)},e.prototype._calculateLimits=function(){var t,e=this.config,n=e.indices,i=e.data,o=e.type,a=e.scaleY,l=e.scaleX,s=/continuous/.test(this.getName()),c=l.showPlotOverTick(),u={},f=i[0],d=i[i.length-1],g="log"===a.getType(),m="visible"===this.config.visibility,v=this.getFromEnv("chart").getFocusLimit();return t=this.getPadding(),u.x=c?m?[f&&f[n[0]].start-t,d&&d[n[0]].start+t]:r.UNDEF:s?m?[f&&(f[n[0]].start+f[n[0]].end)/2-t,d&&(d[n[0]].start+d[n[0]].end)/2+t]:r.UNDEF:m?[f&&f[n[0]].start-t,d&&d[n[0]].end-t]:r.UNDEF,u.y=m?[(0,r.safeMin)(i,function(t){var e=(0,r.pluckNumber)(t[n[2]],t[n[1]]),i=h(t[0]);return p(g,e,i,v)?null:e}),(0,r.safeMax)(i,function(t){var e=t[n[1]],i=h(t[0]);return p(g,e,i,v)?null:e})]:r.UNDEF,u.baseRequired=!/line/.test(o),u},e.prototype.draw=function(){this._createContainer(),this._drawPlot(),this.config.hoverInfo=[],this.config.hoverMode=!1,this.config.repositioningDone=!1},e.prototype.legendInteractivity=function(){"visible"===this.config.visibility?this.hide():this.show()},e.prototype._createContainer=function(){this.addGraphicalElement({el:"group",container:{id:"meso",label:"group",isParent:!0},component:this,label:"group",id:"meso",attr:{name:"dataset-meso"}},!0),this.addGraphicalElement({el:"group",container:{id:"thermo",label:"group",isParent:!0},component:this,label:"group",id:"thermo",attr:{name:"dataset-thermo","clip-path":this.getFromEnv("dsGroupclipPath")}},!0)},e.prototype.isDrawingRequired=function(){var t=this.config;if(t.repositioningDone||t.hoverMode)return!0},e.prototype._drawPlot=function(){var t,e=this,n=e.config,i=n.style,o=(0,r.defined)(n.opacity),a=(0,r.defined)(n["stroke-opacity"]),s=(0,r.defined)(n["fill-opacity"]),c=n.dataInfo;e.addGraphicalElement({el:"group",container:{id:"meso",label:"group"},component:e,label:"group",id:"meso-plot",attr:Object.assign({name:"column-plot-meso",visibility:n.visibility},i)},!0),c.forEach(function(i,r){(0,l["default"])(i.value)&&(t={x:i.x,y:i.y,width:i.width,height:i.height},o&&(t.opacity=n.opacity),a&&(t["stroke-opacity"]=n["stroke-opacity"]),s&&(t["fill-opacity"]=n["fill-opacity"]),i.style&&Object.assign(t,i.style),e.addGraphicalElement({el:"rect",container:{label:"group",id:"meso-plot"},props:{dataLength:c.length},label:"rect",attr:t,component:e,index:r},!0),i.style=undefined)}),n.hoverInfo=[]},e.prototype._isRepositioningNeeded=function(){var t=this.config,e=this.getFromEnv("xScale"),n=this.getFromEnv("yScale"),i=e.getDomain(),o=i[0],r=i[1],a=e.getRange(),l=a[0],s=a[1],c=n.getDomain(),u=c[0],f=c[1],d=n.getRange(),h=d[0],p=d[1],g=void 0,m=t.prevBoundaryInfo,v=t.limit.y||[],y=t.prevDataInfo;return(+o!=+m.xDomainStart||+r!=+m.xDomainEnd||+u!=+m.yDomainStart||+f!=+m.yDomainEnd||l!==m.xRangeStart||s!==+m.xRangeEnd||h!==m.yRangeStart||p!==+m.yRangeEnd||t.prevVisibility!==t.visibility||v[0]!==y[0]||v[1]!==y[1]||t.legendInteracted)&&(t.legendInteracted=!1,g=!0,t.prevBoundaryInfo={xDomainStart:o,xDomainEnd:r,xRangeStart:l,xRangeEnd:s,yDomainStart:u,yDomainEnd:f,yRangeStart:h,yRangeEnd:p},t.prevVisibility=t.visibility,t.prevDataInfo=v),g},e.prototype.allocatePosition=function(){var t=this.config,e=t.indices,n=e[0],o=e[1],a=e[2],s=e[3],c=this.getFromEnv("binDecider"),u=this.getFromEnv("xScale"),f=this.getFromEnv("yScale"),d=t.dataInfo,h=void 0,p=void 0,g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,x=void 0,_=void 0,k=void 0,w=void 0,S=void 0,E=t.groupIndex||0,C=void 0,D=t.totalGroups||1,M=void 0,T=void 0,O=t.data,F=void 0,L=void 0,I=t.plotBorderThickness,P=t.fillColor===t.strokeColor&&I>0,j=void 0,A