!function(e){function t(t){for(var n,a,s=t[0],c=t[1],l=t[2],d=0,p=[];d0)&&(!(e.length>i)&&((!r||Object(a.uniq)(e).length===e.length)&&Object(a.every)(e,t))))},h=function(e,t,r){var i={type:"array",items:e.jsonSchema},o=!1,c=0,l=Number.MAX_SAFE_INTEGER;if(r&&(Object(a.has)(r,"id")&&(i.$id=r.id),Object(a.has)(r,"unique")&&(i.uniqueItems=r.unique,o=r.unique),Object(a.has)(r,"maxItems")&&(i.maxItems=r.maxItems,l=r.maxItems),Object(a.has)(r,"minItems")&&(i.minItems=r.minItems,c=r.minItems)),Object(a.isUndefined)(t))t=[],r&&Object(a.has)(r,"minItems")&&(t=Object(a.times)(r.minItems,(function(){return e.defaultValue})));else if(!p(t,e.validate,o,c,l))throw new Error("Invalid default value: "+JSON.stringify(t));i.default=t;var u=function(t){return h(e,t,r)};return Object.defineProperties(u,{validate:{value:function(t){return p(t,e.validate,o,c,l)},writable:!1,configurable:!1},jsType:{value:n.Array,writable:!1,configurable:!1},defaultValue:{value:s(t),enumerable:!1,configurable:!1},jsonSchema:{value:s(i),enumerable:!1,configurable:!1}}),u},b=function(e){var t={type:"boolean",default:e};if(!o.validate(t,e))throw new Error("Invalid default value: "+JSON.stringify(e));var r=function(e){return b(e)};return Object.defineProperties(r,{validate:{value:function(e){return o.validate(t,e)},writable:!1,configurable:!1},jsType:{value:n.Boolean,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(t),enumerable:!1,configurable:!1}}),r},f=function(e){var t={const:e,default:e};if(Object(d.isUndefined)(e))throw new Error("Default value could not be 'undefined'");if(!o.validate(t,e))throw new Error("Invalid default value: "+JSON.stringify(e));var r=function(e){return f(e)};return Object.defineProperties(r,{validate:{value:function(e){return o.validate(t,e)},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(e),enumerable:!1,configurable:!1},jsonSchema:{value:s(t),enumerable:!1,configurable:!1}}),r},g=function(e,t){var r={enum:e};if(t=void 0===t?e[0]:t,!o.validate(r,t))throw new Error("Invalid default value: "+JSON.stringify(t));r.default=t;var i=function(t){return g(e,t)};return Object.defineProperties(i,{validate:{value:function(e){return o.validate(r,e)},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(t),enumerable:!1,configurable:!1},jsonSchema:{get:function(){return r},enumerable:!1,configurable:!1}}),i},m=function(e,t){var r={type:"integer",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"max")&&(r.maximum=t.max),Object(a.has)(t,"min")&&(r.minimum=t.min),Object(a.has)(t,"exclusiveMax")&&(r.exclusiveMaximum=t.exclusiveMax),Object(a.has)(t,"exclusiveMin")&&(r.exclusiveMinimum=t.exclusiveMin),Object(a.has)(t,"multipleOf")&&(r.multipleOf=t.multipleOf),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return m(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.Integer,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},O=function(e,t){return Object(a.keys)(e).length===Object(a.keys)(t).length&&Object(a.every)(t,(function(t,r){return Object(a.has)(e,r)&&t.validate(e[r])}))},v=function(e,t){var r,i={type:"object",properties:Object(a.mapValues)(e,(function(e){return e.jsonSchema})),required:Object(a.keys)(e)},o=function(e){return!0};if(t&&(Object(a.has)(t,"id")&&(i.$id=t.id),Object(a.has)(t,"defVal")&&(r=t.defVal),Object(a.has)(t,"semChecker")&&(o=t.semChecker)),Object(a.isUndefined)(r))r=Object(a.mapValues)(e,(function(e){return e.defaultValue}));else if(!O(r,e))throw new Error("Invalid default value: "+JSON.stringify(r));if(!o(r))throw new Error("Illegal default value: "+JSON.stringify(r));i.default=r;var c=function(r){return v(e,Object(l.__assign)(Object(l.__assign)({},t||{}),{defVal:r}))};return Object.defineProperties(c,{validate:{value:function(t){return O(t,e)&&o(t)},writable:!1,configurable:!1},jsType:{value:n.Object,writable:!1,configurable:!1},defaultValue:{value:s(r),enumerable:!1,configurable:!1},jsonSchema:{value:s(i),enumerable:!1,configurable:!1}}),c},j=function(e,t){var r={type:"number",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"max")&&(r.maximum=t.max),Object(a.has)(t,"min")&&(r.minimum=t.min),Object(a.has)(t,"exclusiveMax")&&(r.exclusiveMaximum=t.exclusiveMax),Object(a.has)(t,"exclusiveMin")&&(r.exclusiveMinimum=t.exclusiveMin),Object(a.has)(t,"multipleOf")&&(r.multipleOf=t.multipleOf),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return j(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.Number,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},y=r(535);r.n(y)()(o,["regexp"]);var w=function(e,t){var r={type:"string",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"minLength")&&(r.minLength=t.minLength),Object(a.has)(t,"maxLength")&&(r.maxLength=t.maxLength),Object(a.has)(t,"regexp")&&(r.regexp=t.regexp),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return w(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.String,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},x=function(e,t){return o.validate(e,t)||o.errorsText(function(e){if(e&&e.length){for(var t=0;t0?o-270:o+90)+"deg"}(e.deg)+", "+ce(e.stops)+")":"circle"===e.type?"radial-gradient(circle at "+(n=e.pos,i=n.x,o=n.y,"top "+se(o)+" left "+se(i))+", "+ce(e.stops)+")":void 0;var n,i,o}));if(!r[t.length-1]&&r[t.length-2]){var i=n.pop(),o=n.pop();r.pop(),r.pop(),n.push(o+" "+i)}return n.length>1&&r.forEach((function(e,t){if(e){var r=n[t];n[t]="linear-gradient("+r+", "+r+") /* converted from color */"}})),n.join(",\n")},ue=r(43),de=r.n(ue),pe=function(e){return""===(e=Object(a.trim)(e))?"/":e="/"===(e="/"!==e[0]?"/"+e:e)[e.length-1]?e.substring(0,e.length-1):e},he=function(e){if("/"===(e=pe(e)))return[];var t=e.split("/");return t.shift(),t},be=function(e){return"/"+e.join("/")},fe=function(e,t){for(var r=e.indexOf("/"),n=e.indexOf("/",r+1);r>=0||!isNaN(+e);){var i=r0&&Object(a.map)(n.customizedSeries,(function(e){var r=Object(a.findIndex)(t.legend.data,(function(t){return t.name===e.seriesName}));r>-1&&(i[r%10]=c(e.color))})),Object(a.set)(r,"color",i),Object(a.set)(t,"color",i)})),f=function(e,t,r,n,i,o,s){void 0===s&&(s=a.identity),e[r]!==t[r]&&(Object(a.set)(i,n,s(t[r])),Object(a.set)(o,n,s(t[r])))},g=h(["isTransverse","dataZoomHeight","dataZoomBottom","showDataZoomX","showDataShadow","dataZoomBorderColor","dataZoomTextColor","dataZoomBgColor","dataZoomFillerColor","dataZoomHandleIcon","dataZoomStart","dataZoomEnd"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(n.isTransverse!==i.isTransverse){var o=i.isTransverse?"vertical":"horizontal";Object(a.set)(r,"dataZoom[0].orient",o),Object(a.set)(t,"dataZoom[0].orient",o)}i.isTransverse?(f(n,i,"dataZoomHeight","dataZoom[0].width",r,t),f(n,i,"dataZoomBottom","dataZoom[0].right",r,t)):(f(n,i,"dataZoomHeight","dataZoom[0].height",r,t),f(n,i,"dataZoomBottom","dataZoom[0].bottom",r,t)),f(n,i,"showDataZoomX","dataZoom[0].show",r,t),f(n,i,"showDataShadow","dataZoom[0].showDataShadow",r,t),f(n,i,"dataZoomBorderColor","dataZoom[0].borderColor",r,t),f(n,i,"dataZoomTextColor","dataZoom[0].textStyle.color",r,t),f(n,i,"dataZoomBgColor","dataZoom[0].backgroundColor",r,t),f(n,i,"dataZoomFillerColor","dataZoom[0].fillerColor",r,t),f(n,i,"dataZoomHandleIcon","dataZoom[0].handleIcon",r,t),f(n,i,"dataZoomStart","dataZoom[0].start",r,t),f(n,i,"dataZoomEnd","dataZoom[0].end",r,t)})),m=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;f(n,i,"paddingLeft","grid.left",r,t),f(n,i,"paddingRight","grid.right",r,t),f(n,i,"paddingTop","grid.top",r,t),f(n,i,"paddingBottom","grid.bottom",r,t)},O=r(0),v=function(e,t){return e?{color:Object(a.isString)(t)?p(t):c(t,!0)}:null},j=h(["showSymbol","symbol","symbolSize","data","color","stackEnable","ifSmooth"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:e}}))})),f(n,i,"color","series",r,t,(function(e){return Object(a.map)(t.series,(function(t,r){return{areaStyle:v(i.showAreaStyle,e[r%10])}}))})),f(n,i,"stackEnable","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{stack:e?"stack":null}}))})),f(n,i,"ifSmooth","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{smooth:e}}))})),f(n,i,"symbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{symbol:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"line",name:e,hoverAnimation:!0,showSymbol:i.showSymbol,symbol:i.symbol,symbolSize:i.symbolSize,stack:i.stackEnable?"stack":null,data:i.data[t],areaStyle:v(i.showAreaStyle,i.color[t%10]),smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}})),y=h(["seriesMap","customizedSeries","showSymbol","symbol","symbolSize","barGap","barWidth","stackEnable","ifSmooth","showAreaStyle","color","seriesType","showBarLabel","isTransverse","groupFormatter"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s={barWidth:i.barWidth,barGap:i.barGap/100,label:{normal:{show:i.showBarLabel}}};if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){for(var c=o.dataTable,l=[],u=[],d=i.isTransverse?1:0,p=0;p0){var s=o.dataTable,l=o.dataTable.headers,u=l[o.seriesOpt[0].xCol].type;if("string"===u){var d=Object(a.map)(o.dataTable.data,(function(e){return e[o.seriesOpt[0].xCol]}));Object(a.set)(r,"xAxis.data",d),Object(a.set)(t,"xAxis.data",d)}var p=o.seriesOpt,h=[],b=[],f=[];Object(a.isNil)(o.seriesOpt[0].groupCol)||(p=b=_(o.seriesOpt)(s),Object(a.map)(o.seriesOpt,(function(e){h.push.apply(h,T(e.xCol,e.yCol,e.groupCol,e.sizeCol,e.labelCol)(s))})));var g=Object(a.map)(p,(function(e,r){var d=c(i.color[r%10]),p="";if(Object(a.isNil)(o.seriesOpt[0].groupCol)){var g=e.yCol;p=s.headers[g].name}if(Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0){var m=Object(a.findIndex)(i.customizedSeries,(function(t){return t.seriesName===(Object(a.isNil)(o.seriesOpt[0].groupCol)?p:e)}));m>-1&&(d=c(i.customizedSeries[m].color))}var O,v,j=[],y={};if("bubble"===i.seriesType){if(0===b.length?j=Object(a.map)(s.data,(function(t){var r=[t[e.xCol],t[e.yCol]];return Object(a.isNil)(e.sizeCol)||(r[2]=t[e.sizeCol],f.push(t[e.sizeCol])),Object(a.isNil)(e.labelCol)||(r[3]=t[e.labelCol]),r})):(j=h[r],Object(a.isNil)(o.seriesOpt[0].sizeCol)||(f=Object(a.map)(j,(function(e){return e[2]})))),!Object(a.isNil)(o.seriesOpt[0].sizeCol)){var w=o.seriesOpt[0].sizeCol,x=Object(a.map)(s.data,(function(e){return e[w]}));v=Object(a.max)(x),O=Object(a.min)(x)}y={label:{emphasis:{show:!0,formatter:function(e){return Object(a.isNil)(e.data[3])?e.data[1]:e.data[3]},position:"top"}},data:j,symbolSize:function(e,t){var r=10,n=Object(a.max)([i.width,i.height])/2;if(Object(a.isNil)(e[2])){if(!Object(a.isNil)(o.seriesOpt[0].sizeCol))return 0}else if(i.isAutoMapping){var s=i.maxSize,c=i.minSize;v!==O&&s>=c?r=c+(e[2]-O)*(s-c)/(v-O):v===O&&(r=(s+c)/2)}else r=e[2];return r>n?n:r}}}else j=Object(a.map)(s.data,(function(t){var r=C(e.xCol,e.yCol),n=[];return Object(a.map)(r,(function(e,r){if(r||"string"!==u){var i=E(l[e].type);n.push(i(t[e]))}else n.push(t[e])})),n}));return Object(n.__assign)({type:"scatter",itemStyle:{color:d},name:p||e,hoverAnimation:!0,data:j},y)}));Object(a.set)(r,"series",g),Object(a.set)(t,"series",g)}})),C=function(e,t,r,n){var i=[e,t];return Object(a.isNil)(r)||(i[2]=r),Object(a.isNil)(n)||(i[3]=n),i},E=function(e){return Object(O.h)(e,"number")},A=function(e,t,r){return e.reduce((function(e,n){var i=n[t].toString();return r&&(i=i+"/"+r),Object(a.indexOf)(e,i)<0&&e.push(i),e}),[])},_=function(e){return function(t){var r=t.headers,n=t.data,i=e[0].groupCol;if(1===e.length)return A(n,i);for(var o=[],a=0;a0){var l=[],h=[];Object(a.map)(e,(function(e){l.push.apply(l,P(u.xCol,e,u.groupByCols,g)(d)),h.push.apply(h,I(e,u.groupByCols,s.groupFormatter)(d))}));var b=l.length>s.multiColors[i].length?o.a.scale(s.multiColors[i]).colors(l.length):s.multiColors[i],f=i?"line":"bar";O.push.apply(O,b);var v=Object(a.map)(l,(function(e,o){return Object(n.__assign)({yAxisIndex:i,type:f,name:h[o],hoverAnimation:!0,itemStyle:{color:b[o]},label:{normal:{show:s.showBarLabel||!1}},stack:s.stackEnable?"stack":null,smooth:s.ifSmooth,data:(l=e,u=g,d=[],p=Object(a.map)(l,(function(e){switch(u){case"time":return{name:new Date(e[0]).toString(),value:e};case"category":return d.push(e[0]),e[1];case"value":return e}})),"category"===u&&(Object(a.set)(r,"xAxis.data",d),Object(a.set)(t,"xAxis.data",d)),p)},"line"===f?{showSymbol:s.showSymbol,symbol:s.symbol,symbolSize:s.symbolSize}:c(o));var l,u,d,p}));if(m.push.apply(m,v),l.length>=1){var j=l[0].length;Object(a.set)(r,"xAxis.splitNumber",Math.max(Math.min(j-1,5),1)),Object(a.set)(t,"xAxis.splitNumber",Math.max(Math.min(j-1,5),1))}if(Object(a.isNil)(s["y"+i+"AxisLineColor"])){var y=b[0];Object(a.set)(r,"yAxis["+i+"].axisLine.lineStyle.color",y),Object(a.set)(t,"yAxis["+i+"].axisLine.lineStyle.color",y),Object(a.set)(r,"yAxis["+i+"].axisLabel.color",y),Object(a.set)(t,"yAxis["+i+"].axisLabel.color",y)}if(s["y"+i+"AxisName"].length<1){var w=p[e[0]].name;Object(a.set)(r,"yAxis["+i+"].name",w),Object(a.set)(t,"yAxis["+i+"].name",w)}Object(a.map)(O,(function(e,n){Object(a.set)(r,"legend.data["+n+"].textStyle.color",e),Object(a.set)(t,"legend.data["+n+"].textStyle.color",e)}))}};v(u.y0Cols,0),v(u.y1Cols,1),Object(a.set)(r,"series",m),Object(a.set)(t,"series",m)}})),I=function(e,t,r){return r||(r="{groupCol}/{yHeader}"),function(n){var i=n.headers,o=n.data,s=i[e].name;return t.length?o.reduce((function(e,n){var i=Object(a.map)(t,(function(e){return n[e]})),o=r.replace("{groupCol}","").replace("{yHeader}",""),c=i.join(o),l=r.replace("{groupCol}",c).replace("{yHeader}",s);return Object(a.indexOf)(e,l)<0&&e.push(l),e}),[]):[s]}},P=function(e,t,r,n){var i=function(e){switch(e){case"category":return"string";case"time":return"date";case"value":return"number"}};return function(o){var s=o.headers,c=o.data,l=[e,t];return r.length?c.reduce((function(e,t){var o=Object(a.map)(r,(function(e){return t[e]})).join("");return Object(a.has)(e.visited,o)||(e.groupedData.push([]),e.visited[o]=e.groupedData.length-1),e.groupedData[e.visited[o]].push(Object(a.map)(l,(function(e,r){return Object(O.h)(s[e].type,r?"number":i(n))(t[e])}))),e}),{visited:{},groupedData:[]}).groupedData:[c.reduce((function(e,t){var r=Object(a.map)(l,(function(e,r){return Object(O.h)(s[e].type,r?"number":i(n))(t[e])}));return e.push(r),e}),[])]}},k=["legendPaddingTop","legendPaddingRight","legendPaddingBottom","legendPaddingLeft","legendIcon","legendHorizontalAlign","showLegend","legendOrient","legendVerticalAlign","legendItemWidth","legendItemHeight","legendItemGap","legendFontStyle","legendFontWeight","legendFontFamily","legendFontSize","color","seriesMap","legendSelected","customizedSeries","groupFormatter"],B=function(e){return h(k.concat(e))((function(t){var r=t.prevOpt,n=t.patchOpt,i=t.currentProps,o=t.nextProps,s=[o.legendPaddingTop,o.legendPaddingRight,o.legendPaddingBottom,o.legendPaddingLeft];Object(a.set)(n,"legend.padding",s),Object(a.set)(r,"legend.padding",s);var c=Object(a.isNil)(o.legendIcon)?"":o.legendIcon,u=function(e){var t=[];switch(e){case"seriesMap":return Object(a.isNil)(o.seriesMap.seriesOpt[0].groupCol)?o[e].seriesOpt:_(o.seriesMap.seriesOpt)(o.seriesMap.dataTable);case"pieSeriesMap":var r=o.seriesMap;if(!Object(a.isNil)(r)&&r.seriesOpt.length>0){var n=r.seriesOpt[0].xCol;return Object(a.map)(r.dataTable.data,(function(e){return e[n]}))}return[];case"timeSeriesMap":if(!Object(a.isNil)(o.seriesMap)&&o.seriesMap.seriesOpt.length>0)for(var i=0;i0){var u=Object(a.findIndex)(o.customizedSeries,(function(t){return t.seriesName===(e.seriesName||e)}));u>-1&&(s=o.customizedSeries[u].color)}return{name:n,icon:c,textStyle:{color:Object(a.isString)(s)?s:l(s)}}}));Object(a.set)(n,"legend.data",d),Object(a.set)(r,"legend.data",d);var p=o.legendSelected,h=Object(a.map)(d,(function(e){return e.name}));if(Object(a.isArray)(p)?p=h.reduce((function(e,t){return e[t]=!(p.indexOf(t)>-1),e}),{}):Object(a.isEmpty)(p)&&(p=h.reduce((function(e,t){return e[t]=!0,e}),{})),Object(a.set)(n,"legend.selected",p),Object(a.set)(r,"legend.selected",p),"right"===o.legendHorizontalAlign){Object(a.set)(n,"legend.right",0),Object(a.set)(r,"legend.right",0)}else f(i,o,"legendHorizontalAlign","legend.left",n,r);f(i,o,"showLegend","legend.show",n,r),f(i,o,"legendOrient","legend.orient",n,r),f(i,o,"legendVerticalAlign","legend.top",n,r),f(i,o,"legendItemWidth","legend.itemWidth",n,r),f(i,o,"legendItemHeight","legend.itemHeight",n,r),f(i,o,"legendItemGap","legend.itemGap",n,r),f(i,o,"legendFontStyle","legend.textStyle.fontStyle",n,r),f(i,o,"legendFontWeight","legend.textStyle.fontWeight",n,r),f(i,o,"legendFontFamily","legend.textStyle.fontFamily",n,r),f(i,o,"legendFontSize","legend.textStyle.fontSize",n,r)}))},N=h(["color","lineStyleNum","lineColors","titleColor","labelColor","value","unit","seriestype","min","max","axisLineWidth","pointerWidth","splitLineLength","axisTickLength","lineStyle","showTitle","fontFamily","fontStyle","fontWeight","fontSize","showDetail","detailFontFamily","detailFontStyle","detailFontWeight","detailFontSize","detailColor","startAngle","endAngle","splitNumber","showSplitLine","showAxisTick","showAxisLabel","axisLabelColor","axisLabelD","axisLineBlur","axisLineBlurColor","itemStyleBlur","itemStyleBlurColor","bottomLineWidth"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(!Object(a.has)(t,"series")){var s=[{type:"gauge",radius:"80%"},{type:"gauge",radius:"78%",startAngle:360,endAngle:180,axisLine:{lineStyle:{width:0}},pointer:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},title:{show:!1},detail:{show:!1}}];Object(a.set)(r,"series",s),Object(a.set)(t,"series",s)}if(i.color.length>2){var u=[],d=[];d=2===i.lineStyleNum?[[1,o()(l(i.color[0])).darken().hex()]]:d=[[1,"transparent"]],i.lineColors&&Object(a.has)(t,"tooltip")&&Object(a.difference)(i.color,n.color).length>0||Object(a.isNil)(i.lineColors)?u=2===i.lineStyleNum?[[.5,c(i.color[0])],[1,c(i.color[1])]]:[[.2,c(i.color[0])],[.8,c(i.color[1])],[1,c(i.color[2])]]:i.lineColors.length>0&&(u=0===i.lineColors[0].offset?Object(a.map)(i.lineColors.slice(1),(function(e,t){var r=i.lineColors[t].color,n=t>0&&(i.lineColors[t].offset+e.offset)/2>.5,o=Object(O.G)(r,e.color,!n);return[e.offset,c(o)]})):Object(a.map)(i.lineColors,(function(e){return[e.offset,c(e.color)]}))),Object(a.set)(r,"series[0].axisLine.lineStyle.color",u),Object(a.set)(t,"series[0].axisLine.lineStyle.color",u),Object(a.set)(r,"series[1].axisLine.lineStyle.color",d),Object(a.set)(t,"series[1].axisLine.lineStyle.color",d)}var p=""+i.value+i.unit;Object(a.set)(r,"series[0].detail.formatter",p),Object(a.set)(t,"series[0].detail.formatter",p);var h=function(e){var t=e.toString().split(".");return 2===t.length&&t[1].length>2?parseFloat(e.toFixed(2)):e};Object(a.set)(r,"series[0].axisLabel.formatter",h),Object(a.set)(t,"series[0].axisLabel.formatter",h);var b=[{value:i.value,name:""}];Object(a.set)(r,"series[0].data",b),Object(a.set)(t,"series[0].data",b),f(n,i,"seriestype","series[0].type",r,t),f(n,i,"min","series[0].min",r,t),f(n,i,"max","series[0].max",r,t),f(n,i,"axisLineWidth","series[0].axisLine.lineStyle.width",r,t),f(n,i,"pointerWidth","series[0].pointer.width",r,t),f(n,i,"splitLineLength","series[0].splitLine.length",r,t),f(n,i,"axisTickLength","series[0].axisTick.length",r,t),f(n,i,"lineStyle","series[0].splitLine.lineStyle.color",r,t),f(n,i,"lineStyle","series[0].axisTick.lineStyle.color",r,t),f(n,i,"showTitle","series[0].title.show",r,t),f(n,i,"titleColor","series[0].title.color",r,t),f(n,i,"fontFamily","series[0].title.fontFamily",r,t),f(n,i,"fontStyle","series[0].title.fontStyle",r,t),f(n,i,"fontWeight","series[0].title.fontWeight",r,t),f(n,i,"fontSize","series[0].title.fontSize",r,t),f(n,i,"showDetail","series[0].detail.show",r,t),f(n,i,"detailFontFamily","series[0].detail.fontFamily",r,t),f(n,i,"detailFontStyle","series[0].detail.fontStyle",r,t),f(n,i,"detailFontWeight","series[0].detail.fontWeight",r,t),f(n,i,"detailFontSize","series[0].detail.fontSize",r,t),f(n,i,"detailColor","series[0].detail.color",r,t),f(n,i,"startAngle","series[0].startAngle",r,t),f(n,i,"endAngle","series[0].endAngle",r,t),f(n,i,"endAngle","series[1].startAngle",r,t),f(n,i,"startAngle","series[1].endAngle",r,t),f(n,i,"splitNumber","series[0].splitNumber",r,t),f(n,i,"showSplitLine","series[0].splitLine.show",r,t),f(n,i,"showAxisTick","series[0].axisTick.show",r,t),f(n,i,"showAxisLabel","series[0].axisLabel.show",r,t),f(n,i,"axisLabelColor","series[0].axisLabel.color",r,t),f(n,i,"axisLabelD","series[0].axisLabel.distance",r,t),f(n,i,"axisLineBlur","series[0].axisLine.lineStyle.shadowBlur",r,t),f(n,i,"axisLineBlurColor","series[0].axisLine.lineStyle.shadowColor",r,t),f(n,i,"itemStyleBlur","series[0].itemStyle.shadowBlur",r,t),f(n,i,"itemStyleBlurColor","series[0].itemStyle.shadowColor",r,t),f(n,i,"bottomLineWidth","series[1].axisLine.lineStyle.width",r,t)})),D=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"stackEnable","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{stack:e?"stack":null}}))})),f(n,i,"showBarLabel","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{label:{normal:{show:e}}}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"bar",name:e,hoverAnimation:!0,label:{normal:{show:i.showBarLabel}},stack:i.stackEnable?"stack":null,data:i.data[t]}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},M={normal:{show:!1}},L=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series")){f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:Object(a.map)(e,(function(e,t){return{name:i.category[t],value:e}}))}}))})),f(n,i,"roseType","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{roseType:e}}))}));var o=[i.centerX+"%",i.centerY+"%"];Object(a.set)(r,"series.center",o),Object(a.set)(t,"series.center",o)}else{var s=Math.round(100/(2*i.series.length+2)),c=Object(a.map)(i.series,(function(e,t){var r=(2*t+1)*s;return[r+"%",r+s+"%"]}));1===i.series.length&&(c[0]=["43%","70%"]),"radius"!==i.roseType&&"area"!==i.roseType||(c[0][0]="0%");var l=[i.centerX+"%",i.centerY+"%"],u=Object(a.map)(i.series,(function(e,t){return{type:"pie",name:e,hoverAnimation:!0,radius:c[t],center:l,data:Object(a.filter)(Object(a.map)(i.data[t],(function(e,t){return{name:i.category[t],value:e}})),(function(e){return!Object(a.isNil)(e.value)})),label:M,roseType:!Object(a.isNil)(i.roseType)&&i.roseType}}));Object(a.set)(r,"series",u),Object(a.set)(t,"series",u)}},F=function(e){return Object(a.map)(e,(function(e){return{name:new Date(e[0]).toString(),value:e}}))},z=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:F(e)}}))})),f(n,i,"color","series",r,t,(function(e){return Object(a.map)(t.series,(function(t,r){return{areaStyle:v(i.showAreaStyle,e[r%10])}}))})),f(n,i,"ifSmooth","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{smooth:e}}))})),f(n,i,"symbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{symbol:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"line",name:e,showSymbol:i.showSymbol,hoverAnimation:!0,data:F(i.data[t]),areaStyle:v(i.showAreaStyle,i.color[t%10]),smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},W=function(e){return Object(a.map)(e,(function(e){return{name:new Date(e[0]).toString(),value:e}}))},U=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:W(e)}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"bar",name:e,showSymbol:i.showSymbol,hoverAnimation:!0,data:W(i.data[t])}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},H=r(19),V=function(){function e(){}return e.toStyleString=function(e,t){if(void 0===t&&(t="div"),"undefined"==typeof document)return"";var r=document.createElement(t).style;return Object(a.each)(e,(function(e,t){return r[t]=e})),r.cssText},e.overwriteStyle=function(e,t){if("undefined"==typeof document)return"";var r=document.createElement("div");r.innerHTML=e;var n=r.firstChild;return n instanceof HTMLElement?(Object(a.each)(t,(function(e,t){n.style[t]=e})),n.outerHTML):e},e}(),G={height:"22px",lineHeight:"22px",margin:0},Y=V.toStyleString({padding:"8px",fontSize:"12px",fontFamily:"PingFangSC-Regular, sans-serif"}),Z=function(e){return V.toStyleString({display:"inline-block",width:"8px",height:"8px",marginRight:"10px",borderRadius:"10px",backgroundColor:e},"span")},q=function(e){return Object(a.isString)(e)?e:l(e)},X=h(["tooltipTitleColor","tooltipContentColor","showTooltip","tooltipTrigger","tooltipConfine","tooltipAxisPointerType","tooltipPadding","tooltipBorder","tooltipBorderRadius","tooltipBackgroundColor","tooltipExtraCssText","tooltipAxisColor","axisPointerType","axisPointerShadowColor"])((function(e){var t,r=e.prevOpt,i=e.patchOpt,o=e.currentProps,s=e.nextProps,c=(t=s.tooltipContentColor,V.toStyleString(Object(n.__assign)(Object(n.__assign)({},G),{fontWeight:400,color:t||"#666"}))),l=function(e){return V.toStyleString(Object(n.__assign)(Object(n.__assign)({},G),{fontWeight:900,color:e||"#333"}))}(s.tooltipTitleColor),u=function(e){if(Object(a.isArray)(e)){var t="xAxis.time"===e[0].axisType||"yAxis.time"===e[0].axisType,i=t?Object(H.format)(new Date(e[0].name),"MM-DD HH:mm"):e[0].name,o=s.seriesMap;if("bubble"===s.seriesType&&o&&o.seriesOpt.length>0){var u=o.dataTable.headers,d=[],p=[];e.length>1&&(d=Object(a.map)(e,(function(e){var t=e.seriesName,r=e.value[1];if(!(Object(a.isNil)(r)||Object(a.indexOf)(p,t)>-1)){p.push(t);var n=q(e.color);return'\n

\n \n '+t+"\uff1a"+r+"\n

\n "}})));var h=o.seriesOpt[0],b=h.xCol,f=h.yCol,g=h.sizeCol,m=h.labelCol,O=e.length>1?[b]:[b,f];Object(a.isNil)(g)||(O[2]=g),Object(a.isNil)(m)||(O[3]=m);var v=Object(a.map)(O,(function(e){return Object(a.isNil)(e)?null:u[e].name}));if(d=Object(n.__spreadArrays)(d,Object(a.map)(v,(function(t,r){if(!(Object(a.isNil)(t)||Object(a.indexOf)(p,t)>-1)){p.push(t);var n=e[0].data[r];if(!Object(a.isNil)(n))return'\n

\n '+t+"\uff1a"+n+"\n

\n "}}))),1===e.length){var j=q(e[0].color),y=e[0].seriesName;return'\n
\n \n '+y+"\n "+d.join("\n")+"\n
\n "}return'\n
\n '+d.join("\n")+"\n
\n "}var w=Object(a.map)(e,(function(e){var r=e.value;t&&s.isTransverse?r=e.value[0]:(t||"scatter"===s.seriesType)&&(r=e.value[1]);var n=e.seriesName,i=q(e.color);if(!Object(a.isNil)(r))return'\n

\n \n '+n+"\uff1a"+r+"\n

\n "}));if("scatter"===s.seriesType&&o&&o.seriesOpt.length>0){b=o.seriesOpt[0].xCol;var x=o.dataTable.headers[b].name+"\uff1a",S=e[0].value[0],C=Object(a.isNil)(S)?null:'

'+x+S+"

";return'\n
\n '+C+"\n "+w.join("\n")+"\n
\n "}return'
\n
'+i+"
\n "+w.join("\n")+"\n
"}if("gauge"===e.seriesType)return'
\n
'+e.value+"
\n
";if("radar"===e.seriesType){var E=r.radar?r.radar.indicator:[];w=Object(a.map)(E,(function(t,r){var n=t.name,i=e.value.length===E.length?e.value[r]:0;return'\n

\n '+n+"\uff1a"+i+"\n

\n "})),j=q(e.color);return'
\n \n '+e.name+"\n "+w.join("\n")+"\n
"}var A=e.seriesName,_=e.value;j=q(e.color);return'
\n
'+e.name+'
\n

\n \n '+A+"\uff1a"+_+"\n

\n
"};Object(a.set)(i,"tooltip.formatter",u),Object(a.set)(r,"tooltip.formatter",u),f(o,s,"showTooltip","tooltip.show",i,r),f(o,s,"tooltipTrigger","tooltip.trigger",i,r),f(o,s,"tooltipConfine","tooltip.confine",i,r),f(o,s,"tooltipAxisPointerType","tooltip.axisPointer.type",i,r),f(o,s,"tooltipPadding","tooltip.padding",i,r),f(o,s,"tooltipBorder","tooltip.border",i,r),f(o,s,"tooltipBorderRadius","tooltip.borderRadius",i,r),f(o,s,"tooltipBackgroundColor","tooltip.backgroundColor",i,r),f(o,s,"tooltipExtraCssText","tooltip.extraCssText",i,r),f(o,s,"tooltipAxisColor","tooltip.axisPointer.lineStyle.color",i,r),f(o,s,"axisPointerType","tooltip.axisPointer.type",i,r),f(o,s,"axisPointerShadowColor","tooltip.axisPointer.shadowStyle.color",i,r)})),K=h(["isTransverse","seriesMap","category"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.isTransverse?"yAxis":"xAxis";if(Object(a.has)(t,o)||(Object(a.set)(r,o+".type","category"),Object(a.set)(t,o+".type","category")),Object(a.has)(i,"seriesMap")){var s=i.seriesMap;if(s.seriesOpt.length>0){var c=Object(a.map)(s.dataTable.data,(function(e){return e[s.seriesOpt[0].xCol]}));Object(a.set)(r,o+".data",c),Object(a.set)(t,o+".data",c)}}else f(n,i,"category",o+".data",r,t)})),J=function(e){var t=e.prevOpt,r=e.patchOpt,n=(e.currentProps,e.nextProps.isTransverse?"yAxis":"xAxis");Object(a.has)(t,n)||(Object(a.set)(r,n+".type","time"),Object(a.set)(t,n+".type","time"))},Q=[{divider:1e18,suffix:"E",name:"E"},{divider:1e15,suffix:"P",name:"P"},{divider:1e12,suffix:"T",name:"T"},{divider:1e9,suffix:"G",name:"G"},{divider:1e6,suffix:"M",name:"M"},{divider:1e3,suffix:"k",name:"k"},{divider:1,suffix:"",name:"default"}],ee=[{divider:1e12,suffix:"\u4e07\u4ebf",name:"wanyi"},{divider:1e8,suffix:"\u4ebf",name:"yi"},{divider:1e4,suffix:"\u4e07",name:"wan"},{divider:1e3,suffix:"\u5343",name:"qian"},{divider:1,suffix:"",name:"none"}];function te(e,t,r){var n=e/t;return(n=Number.isInteger(n)?n:parseFloat(n.toFixed(2))).toString()+r}var re=function(e,t,r){var n=Object(a.isNumber)(e)?e:Number(e);if(r)for(var i=0,o=t;i=l.divider?te(n,l.divider,l.suffix):n.toString()}},ne=h(["axisUnit","showYAxis","showYAxisTick","showSplitLineY","yAxisSplitLineColor","yAxisLineColor","showYAxisLabel","yAxisTextColor","yAxisFontStyle","yAxisFontWeight","yAxisFontFamily","yAxisFontSize","showYAxisLine","min","max"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.isTransverse?"xAxis":"yAxis",s=function(e){var t=i.axisUnit,r=0===Q.filter((function(e){return e.name===t})).length;return re(e,r?ee:Q,t)};Object(a.set)(r,o+".axisLabel.formatter",s),Object(a.set)(t,o+".axisLabel.formatter",s),f(n,i,"showYAxis","yAxis.show",r,t),f(n,i,"showYAxisLine","yAxis.axisLine.show",r,t),f(n,i,"showYAxisTick","yAxis.axisTick.show",r,t),f(n,i,"showSplitLineY","yAxis.splitLine.show",r,t),f(n,i,"yAxisLineColor","yAxis.axisLine.lineStyle.color",r,t),f(n,i,"showYAxisLabel","yAxis.axisLabel.show",r,t),f(n,i,"yAxisTextColor","yAxis.axisLabel.color",r,t),f(n,i,"yAxisFontStyle","yAxis.axisLabel.fontStyle",r,t),f(n,i,"yAxisFontWeight","yAxis.axisLabel.fontWeight",r,t),f(n,i,"yAxisFontFamily","yAxis.axisLabel.fontFamily",r,t),f(n,i,"yAxisFontSize","yAxis.axisLabel.fontSize",r,t),f(n,i,"yAxisSplitLineColor","yAxis.splitLine.lineStyle.color",r,t);var c=function(e){var n=i[e];if(Object(a.isString)(n)){var s=n.match(/-?[0-9]+.*[0-9]*/);n=Object(a.isArray)(s)?parseFloat(s[0]):null}Object(a.set)(r,o+"."+e,n),Object(a.set)(t,o+"."+e,n)};c("min"),c("max")})),ie=h(["showXAxis","showXAxisTick","showSplitLineX","xAxisSplitLineColor","xAxisLineColor","showXAxisLabel","xAxisTextColor","xAxisFontStyle","xAxisFontWeight","xAxisFontFamily","xAxisFontSize","xAxisLabelFormatter","showXAxisLine","xAxisUnit","xMin","xMax"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if("scatter"===i.seriesType||"bubble"===i.seriesType){var o=function(e){var t=i.xAxisUnit,r=0===Q.filter((function(e){return e.name===t})).length;return re(e,r?ee:Q,t)};Object(a.set)(r,"xAxis.axisLabel.formatter",o),Object(a.set)(t,"xAxis.axisLabel.formatter",o);var s=function(e,n){var o=i[n];if(Object(a.isString)(o)){var s=o.match(/-?[0-9]+.*[0-9]*/);o=Object(a.isArray)(s)?parseFloat(s[0]):null}Object(a.set)(r,"xAxis."+e,o),Object(a.set)(t,"xAxis."+e,o)};s("min","xMin"),s("max","xMax")}f(n,i,"showXAxis","xAxis.show",r,t),f(n,i,"showXAxisLine","xAxis.axisLine.show",r,t),f(n,i,"showXAxisTick","xAxis.axisTick.show",r,t),f(n,i,"showSplitLineX","xAxis.splitLine.show",r,t),f(n,i,"xAxisLineColor","xAxis.axisLine.lineStyle.color",r,t),f(n,i,"showXAxisLabel","xAxis.axisLabel.show",r,t),f(n,i,"xAxisTextColor","xAxis.axisLabel.color",r,t),f(n,i,"xAxisFontStyle","xAxis.axisLabel.fontStyle",r,t),f(n,i,"xAxisFontWeight","xAxis.axisLabel.fontWeight",r,t),f(n,i,"xAxisFontFamily","xAxis.axisLabel.fontFamily",r,t),f(n,i,"xAxisFontSize","xAxis.axisLabel.fontSize",r,t),f(n,i,"xAxisSplitLineColor","xAxis.splitLine.lineStyle.color",r,t);var c=i.isTransverse?"yAxis":"xAxis";f(n,i,"xAxisLabelFormatter",c+".axisLabel.formatter",r,t,(function(e){return function(t){return Object(H.format)(new Date(t),e)}}))})),oe=h(["seriesMap","customizedSeries","showSymbol","symbol","symbolSize","barWidth","stackEnable","ifSmooth","showAreaStyle","color","seriesType","showBarLabel"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s=Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0,l=function(e,r){return Object(a.has)(t,"series")?t.series[r][e]:i[e]},u=function(e,r){var o={smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth},u={showSymbol:l("showSymbol",e)||!1,symbol:l("symbol",e)||"emptyCircle",symbolSize:l("symbolSize",e)||4};if(Object(a.has)(t,"series")||(o=Object(n.__assign)(Object(n.__assign)({},o),u)),i.showAreaStyle){var d=function(e){return Object(a.isString)(e)?p(e):c(e,!0)}(i.color[e%10]);return s&&r>-1&&(d=i.customizedSeries[r].areaStyleColor),Object(n.__assign)(Object(n.__assign)({},o),{areaStyle:{color:d}})}return o};if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var d=o.dataTable,h=Object(a.map)(o.seriesOpt,(function(e,r){var o=i.seriesType,p=e.yCol,h=d.headers[p].name,b=Object(a.findIndex)(i.customizedSeries,(function(e){return e.seriesName===h}));"lineBar"===o&&(o=i.customizedSeries&&b-1?i.customizedSeries[b].seriesType:Object(a.has)(t,"series")?t.series[r].type:0===r?"line":"bar");var f=c(i.color[r%10]);return s&&b>-1&&(f=c(i.customizedSeries[b].color)),Object(n.__assign)({type:o,itemStyle:{color:f},name:h,hoverAnimation:!0,label:{normal:{show:i.showBarLabel||!1}},stack:i.stackEnable?"stack":null,data:Object(a.map)(d.data,(function(t){return Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0}))},"line"===o?u(r,b):function(e){var t=i.barWidth;return i.stackEnable||(t=l("barWidth",e)),Object(a.isNil)(t)?{}:{barWidth:t}}(r))}));Object(a.set)(r,"series",h),Object(a.set)(t,"series",h)}})),ae=h(["seriesMap","seriesType","centerX","centerY","roseType","inradius","startAngle"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=(e.currentProps,e.nextProps),i=n.seriesMap;if(!Object(a.isNil)(i)&&!Object(a.isNil)(i.seriesOpt)){var o=i.dataTable,s=i.seriesOpt.length,c=Object(a.isNil)(n.inradius)?"radius"===n.roseType||"area"===n.roseType?0:18:n.inradius,l=(82-c-2*s)/s,u=function(e){var t;if(1===s)t=["43%","70%"],0===e&&(t[0]=c+"%");else{var r=c+e*(l+2);t=[r+"%",r+l+"%"]}return t},d=[n.centerX+"%",n.centerY+"%"],p=Object(a.map)(i.seriesOpt,(function(e,t){return{type:n.seriesType,name:i.dataTable.headers[e.yCol].name,hoverAnimation:!0,startAngle:n.startAngle||90,radius:u(t),center:d,data:Object(a.map)(o.data,(function(t){return{value:Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0,name:t[e.xCol]}})),label:{show:!1},roseType:!Object(a.isNil)(n.roseType)&&n.roseType}}));Object(a.set)(r,"series",p),Object(a.set)(t,"series",p)}})),se=h(["customizedSeries","seriesMap","showAreaStyle"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(i.customizedSeries!==n.customizedSeries){var o=Object(a.differenceWith)(i.customizedSeries,n.customizedSeries,a.isEqual),s=t.legend.data.slice();Object(a.map)(o,(function(e){var n=Object(a.findIndex)(s,(function(t){return t.name===e.seriesName}));if(n>-1){var i=c(e.color);s[n].textStyle.color=Object(a.isString)(i)?i:l(i),function(e,n,i,o){var s=t.series.slice();switch(e){case"bar":s[n].type="bar",s[n].barWidth=i.barWidth;break;case"line":case"arealine":s[n].type="line",s[n].lineStyle={},s[n].lineStyle.width=i.lineWidth,s[n].lineStyle.type=i.lineType,s[n].showSymbol=i.showSymbol,s[n].symbol=i.symbol,s[n].symbolSize=i.symbolSize,s[n].areaStyle={},"line"===e?s[n].areaStyle.opacity=0:(s[n].areaStyle.opacity=1,s[n].areaStyle.color=i.areaStyleColor&&i.areaStyleColor.colorStops?i.areaStyleColor:c(i.areaStyleColor));break;case"arearadar":s&&s.length>0&&(s[0].data[n].areaStyle={},s[0].data[n].areaStyle.color=i.areaStyleColor&&i.areaStyleColor.colorStops?i.areaStyleColor:c(i.areaStyleColor));break;case"scatter":s[n].type="scatter",s[n].symbol=i.symbol}if(Object(a.has)(s[n],"itemStyle"))s[n].itemStyle={},s[n].itemStyle.color=o;else{var l=t.color.slice();l[n]=o,Object(a.set)(r,"color",l),Object(a.set)(t,"color",l)}Object(a.set)(r,"series",s),Object(a.set)(t,"series",s)}("lineBar"===e.type||"mixed"===e.type?e.seriesType:e.type,n,e,i)}})),Object(a.difference)(s,t.legend.data).length>0&&(Object(a.set)(r,"legend.data",s),Object(a.set)(t,"legend.data",s))}})),ce=function(e,t){void 0===t&&(t=!1);var r=[];return r=Object(a.isString)(e)?[{offset:0,color:e},{offset:1,color:e}]:e.stops||e.colorStops,t&&(r=Object(a.map)(r,(function(e){return{offset:e.offset,color:d(e.color,e.offset/4)}}))),{type:"radial",x:.5,y:.5,r:.5,colorStops:r}},le=h(["seriesMap","customizedSeries","showAreaStyle","color","showSymbol","seriesType"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s=Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0;if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var c=o.dataTable,l=Object(a.map)(o.seriesOpt,(function(e,t){var r={},o=e.yCol,l=c.headers[o].name,u=Object(a.findIndex)(i.customizedSeries,(function(e){return e.seriesName===l}));if(i.showAreaStyle){var d=ce(i.color[t%10],!0);s&&u>-1&&(d=ce(i.customizedSeries[u].areaStyleColor)),r={areaStyle:{color:d}}}return Object(n.__assign)({name:l,value:Object(a.map)(c.data,(function(t){return Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0}))},r)})),u=[{symbol:i.showSymbol?"circle":"none",type:i.seriesType,data:l}];Object(a.set)(r,"series",u),Object(a.set)(t,"series",u)}})),ue=h(["seriesMap","centerX","centerY","radius","radarBgLineColor","radarBgBorderColor","radarNameColor","radarNameFontStyle","radarNameFontWeight","radarNameFontFamily","radarNameFontSize","radarShape"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.seriesMap,s=[i.centerX+"%",i.centerY+"%"];if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var c=o.dataTable,l={indicator:o.seriesOpt.length>0&&c.data.length>0?Object(a.map)(c.data,(function(e){return{name:e[o.seriesOpt[0].xCol],min:e[o.seriesOpt[0].minCol],max:e[o.seriesOpt[0].maxCol]}})):[{name:""}],center:s,radius:i.radius+"%",splitArea:{show:!1}};Object(a.set)(r,"radar",l),Object(a.set)(t,"radar",l)}if(i.radarBgLineColor){for(var u=[],d=0;d<5;d++)u.push(i.radarBgLineColor);u.push(i.radarBgBorderColor),Object(a.set)(r,"radar.splitLine.lineStyle.color",u),Object(a.set)(t,"radar.splitLine.lineStyle.color",u)}f(n,i,"radarNameColor","radar.name.color",r,t),f(n,i,"radarNameFontStyle","radar.name.fontStyle",r,t),f(n,i,"radarNameFontWeight","radar.name.fontWeight",r,t),f(n,i,"radarNameFontFamily","radar.name.fontFamily",r,t),f(n,i,"radarNameFontSize","radar.name.fontSize",r,t),f(n,i,"radarShape","radar.shape",r,t),f(n,i,"radarBgLineColor","radar.axisLine.lineStyle.color",r,t)})),de=function(e){return[e+"ShowAxis",e+"AxisType",e+"AxisName",e+"Unit",e+"Min",e+"Max",e+"ShowAxisLine",e+"AxisLineColor",e+"ShowAxisTick",e+"ShowAxisLabel",e+"AxisFontFamily",e+"AxisFontSize",e+"AxisFontStyle",e+"AxisFontWeight",e+"AxisTextColor",e+"AxisUnit",e+"AxisLabelFormatter",e+"ShowSplitLine",e+"AxisFeatures",e+"AxisSplitLineColor"]},pe=Object(n.__spreadArrays)(de("x"),de("y"),de("y0"),de("y1")),he=h(pe)((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=function(e){var o=e.match(/^(x|y)(\d)?$/),s=Object(a.isArray)(o)&&!Object(a.isNil)(o[2])?o[1]+"Axis["+o[2]+"]":o[1]+"Axis";f(n,i,e+"ShowAxis",s+".show",r,t),f(n,i,e+"ShowAxisLine",s+".axisLine.show",r,t),f(n,i,e+"ShowAxisTick",s+".axisTick.show",r,t),f(n,i,e+"ShowSplitLine",s+".splitLine.show",r,t),f(n,i,e+"AxisSplitLineColor",s+".splitLine.lineStyle.color",r,t),f(n,i,e+"AxisLineColor",s+".axisLine.lineStyle.color",r,t),f(n,i,e+"AxisLineColor",s+".axisLabel.color",r,t),f(n,i,e+"ShowAxisLabel",s+".axisLabel.show",r,t),f(n,i,e+"AxisTextColor",s+".axisLabel.color",r,t),f(n,i,e+"AxisFontStyle",s+".axisLabel.fontStyle",r,t),f(n,i,e+"AxisFontWeight",s+".axisLabel.fontWeight",r,t),f(n,i,e+"AxisFontFamily",s+".axisLabel.fontFamily",r,t),f(n,i,e+"AxisFontSize",s+".axisLabel.fontSize",r,t),f(n,i,e+"AxisName",s+".name",r,t);var c=function(e,n){if(Object(a.set)(r,s+".type",e),Object(a.set)(t,s+".type",e),!Object(a.isNil)(i.seriesMap)&&!Object(a.isNil)(i.seriesMap.dataTable)){var o=i.seriesMap.seriesOpt.xCol;"date"===i.seriesMap.dataTable.headers[o].type&&(Object(a.set)(r,"xAxis.type","time"),Object(a.set)(t,"xAxis.type","time"))}Object(a.set)(r,s+".axisLabel.formatter",n),Object(a.set)(t,s+".axisLabel.formatter",n),Object(a.set)(r,s+".min",null),Object(a.set)(t,s+".min",null),Object(a.set)(r,s+".max",null),Object(a.set)(t,s+".max",null)},l=function(e,n){if(!Object(a.isNil)(e)){var i=e;Object(a.isString)(i)&&"dataMin"!==i&&"dataMax"!==i&&(i=i.match(/-?[0-9]+.*[0-9]*/),i=Object(a.isArray)(i)?parseFloat(i[0]):null),Object(a.set)(r,s+"."+n,i),Object(a.set)(t,s+"."+n,i)}},u=function(e,t,r){c("value",(function(t){var r=0===Q.filter((function(t){return t.name===e})).length;return re(t,r?ee:Q,e)})),l(t,"min"),l(r,"max")};if(Object(a.isNil)(i[e+"AxisFeatures"]))switch(i[e+"AxisType"]){case"value":u(i[e+"AxisUnit"],i[e+"Min"],i[e+"Max"]);break;case"time":c("time",(function(t){return Object(H.format)(new Date(t),i[e+"AxisLabelFormatter"])}));break;case"category":default:c("category","{value}")}else{var d=i[e+"AxisFeatures"];switch(d.axisType){case"value":u(d.axisUnit,d.axisMin,d.axisMax);break;case"time":c("time",(function(e){return Object(H.format)(new Date(e),d.axisDateFormatter)})),l("dataMin","min"),l("dataMax","max");break;case"category":default:c("category","{value}")}}};Object(a.isNil)(i.axises)?(o("x"),o("y")):Object(a.map)(i.axises,(function(e){return o(e)}))}));r.d(t,"e",(function(){return b})),r.d(t,"f",(function(){return g})),r.d(t,"h",(function(){return m})),r.d(t,"j",(function(){return B})),r.d(t,"g",(function(){return N})),r.d(t,"c",(function(){return D})),r.d(t,"m",(function(){return L})),r.d(t,"d",(function(){return j})),r.d(t,"u",(function(){return z})),r.d(t,"s",(function(){return U})),r.d(t,"v",(function(){return X})),r.d(t,"b",(function(){return K})),r.d(t,"r",(function(){return J})),r.d(t,"x",(function(){return ne})),r.d(t,"w",(function(){return ie})),r.d(t,"i",(function(){return oe})),r.d(t,"l",(function(){return ae})),r.d(t,"t",(function(){return y})),r.d(t,"q",(function(){return se})),r.d(t,"o",(function(){return le})),r.d(t,"n",(function(){return ue})),r.d(t,"p",(function(){return S})),r.d(t,"a",(function(){return he})),r.d(t,"k",(function(){return R}))},1058:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(81).a}},1059:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(155).a}},11:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={CONST:"const",NOTANATTRIBUTE:"const",VARIABLE:"var",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",WIDTH:"width",HEIGHT:"height",CENTERX:"centerX",CENTERY:"centerY",ZINDEX:"zIndex"}},1102:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(184).a}},1103:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(242).a}},1104:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(185).a}},1105:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(186).a}},1106:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(135).a}},113:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(3),i=r(22),o=r(2),a=r(1),s=r(18),c=r(10),l=[c.e,c.l,Object(c.j)("pieSeriesMap"),c.v,c.q],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=void 0;t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt,this.echarts.setOption(t,!0,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1,!0)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="PieChart",t}(a.PureComponent)},114:function(e,t,r){"use strict";var n=r(0),i=r(5),o=Object(n.e)(Object(n.w)({seriesName:i.m,color:n.r,type:Object(n.g)("bar"),barWidth:n.E},{defVal:{seriesName:"",color:"#108cee",type:"bar",barWidth:16}})),a=Object(n.e)(Object(n.w)({seriesName:i.m,color:n.r,type:Object(n.g)("stackedBar")},{defVal:{seriesName:"",color:"#108cee",type:"stackedBar"}})),s=Object(n.e)(Object(n.d)([Object(n.w)({seriesName:i.m,color:n.r,type:Object(n.g)("lineBar"),seriesType:Object(n.g)("bar"),barWidth:n.E},{defVal:{seriesName:"",color:"#108cee",type:"lineBar",seriesType:"bar",barWidth:16}}),Object(n.w)({seriesName:i.m,color:n.r,type:Object(n.g)("lineBar"),seriesType:Object(n.g)("line"),lineWidth:n.E,lineType:n.y,showSymbol:Object(n.I)(!1),symbol:i.t,symbolSize:n.E},{defVal:{seriesName:"",color:"#108cee",type:"lineBar",seriesType:"line",lineWidth:2,lineType:"solid",showSymbol:!1,symbol:"emptyCircle",symbolSize:4}})]));Object(n.d)([o,a,s]);r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return s}))},1288:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(158).a}},1289:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return n}));var n={metadata:r(159).a}},1298:function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"input",(function(){return Vn})),r.d(n,"legendselected",(function(){return oi})),r.d(n,"schema",(function(){return ai})),r.d(n,"designerMeta",(function(){return si})),r.d(n,"implementations",(function(){return ci})),r.d(n,"index",(function(){return li}));var i={};r.r(i),r.d(i,"schema",(function(){return hi})),r.d(i,"designerMeta",(function(){return bi})),r.d(i,"implementations",(function(){return fi})),r.d(i,"index",(function(){return gi}));var o,a=r(3),s=r(1),c=r.n(s),l=r(18),u=r(33),d=r(88),p=r(34),h=r(0),b=function(e){var t=e.containerHeight;return e.containerWidth>600&&t>300?s.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348 100",style:{pointerEvents:"none",position:"absolute",height:"30px",width:"100px",right:"20px",bottom:"10px"}},s.createElement("g",{fill:"rgb(215, 215, 215)",fillOpacity:.5},s.createElement("g",null,s.createElement("rect",{x:"120.9",y:"25.1",width:"14.3",height:"48"})),s.createElement("g",null,s.createElement("path",{d:"M167.5,23.9c-7.2,0-13.2,2.4-18.2,7.3c-5,4.9-7.4,10.8-7.4,17.9c0,7,2.5,12.9,7.4,17.8c4.9,4.9,10.9,7.4,17.8,7.4\n\t\t\tc7,0,13-2.4,17.9-7.3c4.9-4.9,7.3-10.9,7.3-17.9c0-6.9-2.4-12.8-7.3-17.8C180.2,26.4,174.3,23.9,167.5,23.9z M174.6,56.9\n\t\t\tc-2.1,2.1-4.6,3.2-7.5,3.2c-2.9,0-5.4-1.1-7.5-3.2s-3.1-4.8-3.1-7.8c0-3,1-5.6,3.1-7.8s4.6-3.2,7.5-3.2c3,0,5.5,1.1,7.5,3.2\n\t\t\ts3.1,4.8,3.1,7.8C177.7,52.2,176.7,54.8,174.6,56.9z"})),s.createElement("g",null,s.createElement("polygon",{points:"348,25.1 310.8,25.1 310.8,38.9 326.4,38.9 311.6,73.1 347.8,73.1 347.8,59.3 333.1,59.3 \t\t"})),s.createElement("g",null,s.createElement("rect",{x:"291.7",y:"25.1",width:"14.3",height:"48"})),s.createElement("g",null,s.createElement("polygon",{points:"267.8,40.1 263.4,25.1 246.9,25.1 267.7,75.9 288.6,25.1 272.7,25.1 \t\t"})),s.createElement("g",null,s.createElement("polygon",{points:"194.7,38.9 205.7,38.9 205.7,73.1 219.9,73.1 219.9,38.9 230.8,38.9 230.8,25.1 194.7,25.1 \t\t"})),s.createElement("g",null,s.createElement("path",{d:"M36.7,75.8L20,66.1c-1-0.6-1.6-1.6-1.6-2.8V44.2c0-3.7-2-7.1-5.2-9L0,27.7v41.4c0,4.1,2.2,7.9,5.8,9.9l36.2,20.8V84.8\n\t\t\tC41.9,81.1,40,77.6,36.7,75.8z"})),s.createElement("g",null,s.createElement("path",{d:"M74,29.9l13.1-7.6L63.5,8.7L50.8,1.4c-3.6-2.1-8-2.1-11.6,0L2.9,22.3L16,29.9c3.2,1.9,7.2,1.9,10.4,0l16.9-9.7\n\t\t\tc0.2-0.1,0.5-0.2,0.7-0.3c0.8-0.2,1.7-0.1,2.5,0.3l16.9,9.7C66.8,31.7,70.8,31.7,74,29.9z"})),s.createElement("g",null,s.createElement("path",{d:"M71.7,44.2v19.1c0,1.2-0.6,2.2-1.6,2.8l-16.8,9.7c-3.2,1.9-5.2,5.3-5.2,9v15.1l36.2-20.8c3.6-2.1,5.8-5.9,5.8-10V27.7\n\t\t\tl-13.1,7.6C73.6,37.1,71.7,40.5,71.7,44.2z"})))):null},f=r(134),g=r.n(f),m=r(536),O=r.n(m);!function(e){e.RegisterPipeline="RegisterPipeline",e.UnregisterPipeline="UnregisterPipeline",e.UpdatePipeline="UpdatePipeline",e.ExecutePipeline="ExecutePipeline",e.RegisterSimulationGenerator="RegisterSimulationGenerator",e.UnregisterSimulationGenerator="UnregisterSimulationGenerator",e.UpdateSimulationGenerator="UpdateSimulationGenerator",e.ExecuteSimulationGenerator="ExecuteSimulationGenerator",e.RegisterUDF="RegisterUDF",e.UnregisterUDF="UnregisterUDF",e.UpdateUDF="UpdateUDF",e.CallUDF="CallUDF"}(o||(o={}));for(var v=function(e){var t=new O.a;return t.onmessage=function(t){var r=t.data,n=r.reqId,i=r.body,a=e[n].resolve;switch(i.type){case o.ExecutePipeline:case o.CallUDF:a(i);break;case o.RegisterSimulationGenerator:case o.UnregisterSimulationGenerator:case o.UpdateSimulationGenerator:case o.ExecuteSimulationGenerator:a(i);break;default:a()}delete e[n]},t},j=[],y="object"==typeof navigator?Math.max((navigator.hardwareConcurrency||4)-1,1):1,w=0;w>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,r){case 3:c^=(255&e.charCodeAt(l+2))<<16;case 2:c^=(255&e.charCodeAt(l+1))<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(l)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}(t.callerId,C)%j.length],o=i.promises,a=i.worker,s=g.a.generate();o[s]={message:t,resolve:r,reject:n},a.postMessage({reqId:s,body:t})}({message:e,resolve:t,reject:r})}))},A=r(2),_=r(9),T=r(4),R=function(){function e(e,t){this.serviceConnMgr=t,this.table=e,this.getServiceConfigForOpen=this.getServiceConfigForOpen.bind(this),this.getServiceConfigForReconfig=this.getServiceConfigForReconfig.bind(this)}return e.prototype.getServiceConfigForOpen=function(){throw new Error("You must implement this method in your subclass")},e.prototype.getServiceConfigForReconfig=function(){throw new Error("You must implement this method in your subclass")},e.prototype.init=function(){var e=this;return this.tableService=this.serviceConnMgr.openService("dataTable",this.getServiceConfigForOpen()),this.stopWatchConfigChange=Object(_.reaction)(this.getServiceConfigForReconfig,(function(t){return e.tableService(t)})),this.tableService.output.subscribe(this.table.feedTableData),this},e.prototype.destroy=function(){this.tableService.close(),this.stopWatchConfigChange()},e}(),I=function(e){function t(t,r){var n=e.call(this,t,r)||this;n.dmSubSourcer=t.sourcer;var i=!0;return n.disposer=Object(_.autorun)((function(){var t=n.dmSubSourcer.isPaused;i?i=!1:t?e.prototype.destroy.call(n):e.prototype.init.call(n)}),{name:"react to DM isPaused"}),n}return Object(a.__extends)(t,e),t.prototype.getServiceConfigForOpen=function(){return Object(T.d)(this.dmSubSourcer)},t.prototype.getServiceConfigForReconfig=function(){return Object(T.d)(this.dmSubSourcer.states)},t.prototype.destroy=function(){this.disposer&&this.disposer(),e.prototype.destroy.call(this)},t}(R),P=function(){function e(e){var t=this;this.table=e,this.feedDisposer=Object(_.autorun)((function(){t.table.feedTableData(t.table.sourcer.tableData)}),{delay:1})}return e.prototype.destroy=function(){this.feedDisposer()},e}(),k=new Set,B=[],N=null,D=Number.MAX_SAFE_INTEGER,M=function(){if(B.length){var e=Date.now();Object(A.each)(B,(function(t){e>=t.nextRunAt&&(t.task(),t.nextRunAt=e+t.interval),D=Math.min(D,t.nextRunAt)})),setTimeout(M,D-e)}else N=null,D=Number.MAX_SAFE_INTEGER};function L(e){k.has(e)&&(Object(A.remove)(B,(function(t){return t.id===e})),k.delete(e))}var F,z=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.tsdbQuerySourcer=t.sourcer,n.configAtom=Object(_.createAtom)("filterConfig"),n.updateConfig=n.updateConfig.bind(n),n.intervalTaskId=null,n.config=n.tsdbQuerySourcer.liveQuery.getQueryObject(),n.destroy=n.destroy.bind(n),n.disposer=Object(_.autorun)((function(){var e=n.tsdbQuerySourcer.liveQuery;switch(n.intervalTaskId&&(L(n.intervalTaskId),n.intervalTaskId=null),e.trigger.type){case"interval":n.intervalTaskId=function(e,t,r){void 0===r&&(r=!1);var n=f.generate();return B.push({id:n,task:e,interval:t,nextRunAt:Date.now()+t}),k.add(n),null===N?(N=setTimeout(M,t),D=Date.now()+t):D>Date.now()+t&&(clearTimeout(N),N=setTimeout(M,t)),r&&e(),n}(n.updateConfig,e.trigger.interval,!0);break;case"once":n.updateConfig()}}),{name:"react to tsdb query changes"}),n}return Object(a.__extends)(t,e),t.prototype.updateConfig=function(){"once"!==this.tsdbQuerySourcer.liveQuery.trigger.type&&this.tsdbQuerySourcer.isPaused||(this.configAtom.reportChanged(),this.config=this.tsdbQuerySourcer.liveQuery.getQueryObject().query)},t.prototype.getServiceConfigForOpen=function(){var e=this.tsdbQuerySourcer;return{tsdbId:e.tsdbId,region:e.region,endpoint:e.endpoint,type:e.type,liveQuery:e.liveQuery.getQueryObject()}},t.prototype.getServiceConfigForReconfig=function(){return this.configAtom.reportObserved(),this.config},t.prototype.destroy=function(){L(this.intervalTaskId),this.disposer&&this.disposer(),e.prototype.destroy.call(this)},t}(R),W=r(13),U=r(20),H=function(e,t){var r=e.x,n=e.y,i=U.c.transformMat2d(U.c.create(),U.c.fromValues(r,n),t);return new W.b(i[0],i[1])},V=function(e,t){var r=H(e.tl,t),n=H(e.tr,t),i=H(e.br,t),o=H(e.bl,t),a=Math.min(r[0],n[0],i[0],o[0]),s=Math.max(r[0],n[0],i[0],o[0]),c=Math.min(r[1],n[1],i[1],o[1]),l=Math.max(r[1],n[1],i[1],o[1]);return new W.a(a,c,s-a,l-c)},G=function(){for(var e=[],t=0;tt+s?n:t+s,i=ia+c?o:a+c})),new W.a(r,i,n-r,o-i)},Y=function(e){var t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=t*i-r*n,c=1,l=1,u=0;if(0!==t||0!==r){var d=Math.sqrt(t*t+r*r);u=r>0?Math.acos(t/d):-Math.acos(t/d),c=d,l=s/d}else if(0!==n||0!==i){var p=Math.sqrt(n*n+i*i);u=Math.PI/2-(i>0?Math.acos(-n/p):-Math.acos(n/p)),c=s/p,l=p}else c=0,l=0;return{rotateDeg:(X(u)+360)%360,sx:c,sy:l,tx:o,ty:a}},Z=function(e){return U.a.invert(U.a.create(),e)},q=function(e){return e*Math.PI/180},X=function(e){return 180*e/Math.PI},K=Object(h.k)(["contain","cover","fill"]),J=T.i.model("CanvasSetting",{width:T.i.refinement(T.i.number,h.D.validate),height:T.i.refinement(T.i.number,h.D.validate),backgroundColor:T.i.maybeNull(T.i.refinement(T.i.frozen(),h.r.validate)),backgroundImage:T.i.maybeNull(T.i.refinement(T.i.string,h.K.validate)),fillMode:T.i.maybeNull(T.i.refinement(T.i.string,K.validate))}),Q=r(36),ee=T.i.enumeration("Region",["bj","gz"]),te=T.i.enumeration("ColType",["string","number","boolean","date"]),re=T.i.refinement("DMEndpoint",T.i.string,(function(){return!0})),ne=T.i.refinement("DMDeviceName",T.i.string,(function(){return!0})),ie=T.i.refinement("TSDBEndpoint",T.i.string,(function(){return!0})),oe=(F=new RegExp("^[\\w\\u4e00-\\u9fa5]{1,20}$"),function(e){return F.test(e)}),ae=T.i.refinement("ColName",T.i.string,oe),se=T.i.refinement("ColIndex",T.i.number,(function(e){return Object(A.isInteger)(e)&&e>=0})),ce=T.i.refinement("ColsIndex",T.i.array(se),(function(e){return Object(A.isArray)(e)&&Object(A.every)(e,(function(e){return Object(A.isInteger)(e)&&e>=0}))&&Object(A.uniq)(e).length===e.length})),le=(T.i.refinement("RowIndex",T.i.number,(function(e){return Object(A.isInteger)(e)&&e>=0})),function(e){return e.length<200}),ue=(T.i.refinement("SerieName",T.i.string,le),function(e){return e.length>0&&e.length<=20}),de=(T.i.refinement("DashboardName",T.i.string,ue),function(e){return 00}))}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).volatile((function(e){return{isPaused:!1}})).views((function(e){return{getSchema:function(){return Object(a.__spreadArrays)([{name:"timestamp",type:"date"},{name:"device",type:"string"}],e.states.slice())},get runtimeConfig(){return{}}}})).actions((function(e){return{setStates:function(t){e.states=t},updateRuntimeConfig:function(e){},pause:function(){e.isPaused||(e.isPaused=!0)},resume:function(){e.isPaused&&(e.isPaused=!1)}}}))),fe=r(537),ge=function(e){return Object(A.reduce)(e,(function(e,t){return Math.max(e,t.length)}),0)},me=function(e,t){void 0===t&&(t=ge(e));var r=Object(A.map)(Object(A.range)(t),(function(){return{string:0,number:0,boolean:0}}));return Object(A.each)(e,(function(e){return Object(A.each)(e,(function(e,t){var n=r[t];Object(A.isNumber)(e)?n.number+=1:Object(A.isString)(e)?n.string+=1:Object(A.isBoolean)(e)&&(n.boolean+=1)}))})),Object(A.map)(r,(function(e){if(e.boolean!==e.number||e.boolean!==e.string)return Object(A.reduce)(Object(A.entries)(e),(function(e,t){var r=t[0],n=t[1];return e.count>n?e:{name:r,count:n}}),{name:void 0,count:0}).name}))};function Oe(e,t){void 0===t&&(t={headerStrategy:"firstrow"});var r={TooFewFields:"\u5217\u592a\u5c11",TooManyFields:"\u5217\u592a\u591a"};return e.forEach((function(e){var n;switch(e.row=(n=e.row,n+=1,"firstrow"===t.headerStrategy?n+1:n),e.code){case"TooFewFields":case"TooManyFields":var i=/ expected (\d+) fields but parsed (\d+)/.exec(e.message),o=i[1],a=i[2];e.message=r[e.code]+" \u5e94\u8be5\u6709"+o+"\u5217\uff0c\u5b9e\u9645\u6709"+a+"\u5217"}})),e}var ve,je=function(e,t){var r="firstrow"===t.headerStrategy,n=fe.parse(e,{header:r,dynamicTyping:!0,skipEmptyLines:!0,preview:1e3,transform:function(e){return void 0===e?null:e}}),i=n.data,o=n.errors,a=n.meta;if(o&&o.length)throw Oe(o);var s=[];r?a.fields.map((function(e){s.push({name:e,type:"string"})})):Object(A.each)(Object(A.range)(ge(i)),(function(e,t){s.push({name:"Column_"+(t+1),type:"string"})}));var c=r?Object(A.map)(i,(function(e){return Object(A.map)(s,(function(t){var r=t.name;return e[r]}))})):i;return Object(A.each)(me(c),(function(e,t){s[t].type=e||s[t].type})),{headers:s,data:c}},ye=T.i.model("StaticCSV",{id:T.i.identifier,type:T.i.literal("staticcsv"),options:T.i.frozen(),source:T.i.string}).volatile((function(e){return{isPaused:!0}})).views((function(e){return{get tableData(){return je(e.source,e.options)}}})).views((function(e){return{getSchema:function(){return e.tableData.headers},get runtimeConfig(){return{source:e.source}}}})).actions((function(e){return{setContent:function(t){var r=t.options,n=void 0===r?e.options:r,i=t.source,o=void 0===i?e.source:i;e.options=n,e.source=o},updateRuntimeConfig:function(t){try{je(t.source,e.options),e.source=t.source}catch(e){console.log("bad csv format")}},pause:function(){},resume:function(){}}})),we=r(56);function xe(e,t){return void 0===t&&(t=JSON.parse(e)),function(e,t,r){void 0===r&&(r=[]);return Object(A.reduce)(e,(function(e,r,n){if(Object(A.isArray)(r)||!Object(A.isObject)(r)){var i=[n];return Object(a.__spreadArrays)(e,[Object(a.__assign)({error:ve.NonObjectArrayElement},Ee(t,i))])}return Object(a.__spreadArrays)(e,Ce(r,t,[n]))}),[])}(t,Object(we.b)(e,{locations:!0}).body[0].expression)}function Se(e,t){return void 0===t&&(t=JSON.parse(e)),Object(A.isArray)(t)?xe(e,t):Object(A.isObject)(t)?function(e,t){void 0===t&&(t=JSON.parse(e));var r=Object(we.b)("["+e+"]",{locations:!0}),n=r.body[0].expression.elements[0],i=r.loc.start.line-1;return Ce(t,n).map((function(e){var t=e.error,r=e.start,n=e.end;return{start:{ln:r.ln,col:r.ln===i?r.col-1:r.col},error:t,end:n}}))}(e,t):[{error:ve.UnsupportedValue,start:{ln:0,col:0},end:{ln:0,col:0}}]}function Ce(e,t,r){return void 0===r&&(r=[]),Object(A.reduce)(Object(A.entries)(e),(function(e,n){var i=n[0],o=n[1];return Object(A.isObject)(o)?Object(a.__spreadArrays)(e,[Object(a.__assign)({error:ve.NonPrimitiveObjectValue},Ee(t,Object(a.__spreadArrays)(r,[i])))]):e}),[])}function Ee(e,t){var r=_e.get(e,t);_e.isObjectPropery(r)&&(r=r.key);var n=r.loc,i=n.start,o=n.end;return{start:{ln:i.line-1,col:i.column},end:{ln:o.line-1,col:o.column}}}!function(e){e.UnsupportedValue="\u4e0d\u652f\u6301\u7684JSON\u7c7b\u578b\uff0c\u53ea\u80fd\u662fJSON\u5bf9\u8c61\u3001\u6216JSON\u5bf9\u8c61\u6570\u7ec4",e.NonObjectArrayElement="\u65e0\u6548\u7684\u6570\u7ec4\u5143\u7d20\uff0c\u6570\u7ec4\u5143\u7d20\u5e94\u5f53\u662fJSON\u5bf9\u8c61",e.NonPrimitiveObjectValue="\u65e0\u6548\u7684JSON\u5bf9\u8c61\u503c\uff0c\u53ea\u80fd\u662fstring\u3001number\u3001\u6216boolean\u7c7b\u578b"}(ve||(ve={}));var Ae,_e=function(){function e(){}return e.get=function(t,r){for(var n=0,i=r;n|<|>=|<=)\s?[-+]?([0-9]+|[0-9]*\.[0-9]+)$)|(^(=|!=)\s?\'(.+)\'$)/,Fe=T.i.refinement("ValueCondition",T.i.string,(function(e){return Le.test(e)})),ze=T.i.maybe,We=T.i.model({field:T.i.string,value:Fe}),Ue=T.i.model({tag:T.i.string,in:ze(T.i.array(T.i.string)),notIn:ze(T.i.array(T.i.string))}).actions((function(e){return{afterCreate:function(){if(!e.in&&!e.notIn)throw new Error("Invalid Tag Filter condition")}}})),He=T.i.model({start:T.i.number,end:T.i.number,tags:ze(T.i.array(Ue)),fields:ze(T.i.array(We))}),Ve=T.i.model({name:T.i.string,tags:T.i.array(T.i.string)}),Ge=T.i.model({name:T.i.enumeration("AggrType",["Avg","Dev","Count","First","Last","LeastSquares","Max","Min","Percentile","Sum","Diff","Div","Scale"]),sampling:ze(T.i.string),percentile:ze(T.i.refinement(T.i.number,(function(e){return e>0&&e<=1}))),divisor:ze(T.i.number),factor:ze(T.i.number)}).actions((function(e){return{afterCreate:function(){switch(e.name){case"Percentile":if(!e.percentile)throw new Error("Invalid Aggration condition: missing percentile");break;case"Div":if(!e.divisor)throw new Error("Invalid Aggration condition: missing divisor");break;case"Scale":if(!e.factor)throw new Error("Invalid Aggration condition: missing factor")}}}})),Ye=T.i.model({type:T.i.enumeration("FillType",["Linear","Previous","Fixed"]),interval:T.i.string,maxWriteInterval:ze(T.i.string),value:ze(T.i.union(T.i.number,T.i.string)),field:ze(T.i.string)}).actions((function(e){return{afterCreate:function(){if("Fixed"===e.type&&(void 0===e.value||null===e.value))throw new Error("Invalid Fill condition: missing value")}}})),Ze=new Set([5e3,1e4,3e4,6e4,3e5,9e5,18e5,36e5,72e5,864e5]),qe=["none","last5min","last15min","last30min","last1hour","last3hour","last6hour","last12hour","last24hour","last2days","last7days","last30days","last90days","last6months","last1year","last2years","last5years","yesterday","daybeforeyesterday","thisdaylastweek","previousweek","previousmonth","previousyear","today","todaysofar","thisweek","thisweeksofar","thismonth","thismonthsofar","thisyear","thisyearsofar"],Xe=T.i.model({type:T.i.literal("once"),rangeRule:T.i.enumeration("TSDBQueryTimeRangeRule",qe)}),$e=T.i.model({type:T.i.literal("interval"),interval:T.i.refinement("TSDBQueryInterval",T.i.number,(function(e){return Ze.has(e)})),rangeRule:T.i.enumeration("TSDBQueryTimeRangeRule",qe)}),Ke=T.i.union($e,Xe),Je=T.i.model({metric:T.i.string,fields:T.i.array(T.i.frozen()),tags:ze(T.i.array(T.i.string)),filters:He,groupBy:ze(T.i.array(Ve)),limit:T.i.optional(T.i.refinement(T.i.number,(function(e){return Object(A.isInteger)(e)&&e>0&&e<=1e3})),1e3),aggregators:ze(T.i.array(Ge)),order:ze(T.i.enumeration("OrderBy",["Asc","Desc"])),fills:ze(T.i.array(Ye))}),Qe=T.i.model({query:Je,trigger:T.i.union(Xe,$e)}).extend((function(e){var t;return{views:{get resultTableSchema(){return t=e.query,r=[{name:"timestamp",type:"date"}],n=t.metric,i=t.fields,o=t.tags||[],a=t.groupBy||[],Object(A.each)(i,(function(e){var t=Object(A.isString)(e)?e:e.name,i=Object(A.isString)(e)?"string":e.type;r.push({name:Me(n,t),type:i})})),Object(A.each)(o,(function(e){return r.push({name:e,type:"string"})})),Object(A.each)(a,(function(e){"Tag"===e.name&&Object(A.each)(e.tags,(function(e){r.some((function(t){return t.name===e}))||r.push({name:e,type:"string"})}))})),r;var t,r,n,i,o,a},getFilters:function(){var r=e.trigger,n=Object(a.__assign)({},t);if("none"!==r.rangeRule){var i=function(e){var t,r,n=Date.now(),i=n;switch(e){case"last5min":r=n-3e5;break;case"last15min":r=n-9e5;break;case"last30min":r=n-18e5;break;case"last1hour":r=n-36e5;break;case"last3hour":r=n-108e5;break;case"last6hour":r=n-216e5;break;case"last12hour":r=n-432e5;break;case"last24hour":r=n-864e5;break;case"last2days":r=n-1728e5;break;case"last7days":r=n-6048e5;break;case"last30days":r=n-2592e6;break;case"last90days":r=n-7776e6;break;case"last6months":r=+Object(De.subMonths)(new Date,6);break;case"last1year":r=+Object(De.subYears)(new Date,1);break;case"last2years":r=+Object(De.subYears)(new Date,2);break;case"last5years":r=+Object(De.subYears)(new Date,5);break;case"yesterday":r=+Object(De.startOfYesterday)(),i=+Object(De.endOfYesterday)();break;case"daybeforeyesterday":t=Object(De.subDays)(new Date,2),r=+Object(De.startOfDay)(t),i=+Object(De.endOfDay)(t);break;case"thisdaylastweek":t=Object(De.subDays)(new Date,7),r=+Object(De.startOfDay)(t),i=+Object(De.endOfDay)(t);break;case"previousweek":t=Object(De.subDays)(new Date,7),r=+Object(De.startOfWeek)(t),i=+Object(De.endOfWeek)(t);break;case"previousmonth":t=Object(De.subMonths)(new Date,1),r=+Object(De.startOfMonth)(t),i=+Object(De.endOfMonth)(t);break;case"previousyear":t=Object(De.subYears)(new Date,1),r=+Object(De.startOfYear)(t),i=+Object(De.endOfYear)(t);break;case"today":r=+Object(De.startOfToday)(),i=+Object(De.endOfToday)();break;case"todaysofar":r=+Object(De.startOfToday)();break;case"thisweek":r=+Object(De.startOfWeek)(new Date),i=+Object(De.endOfWeek)(new Date);break;case"thisweeksofar":r=+Object(De.startOfWeek)(new Date);break;case"thismonth":r=+Object(De.startOfMonth)(new Date),i=+Object(De.endOfMonth)(new Date);break;case"thismonthsofar":r=+Object(De.startOfMonth)(new Date);break;case"thisyear":r=+Object(De.startOfYear)(new Date),i=+Object(De.endOfYear)(new Date);break;case"thisyearsofar":r=+Object(De.startOfYear)(new Date)}return{start:r,end:i}}(r.rangeRule),o=i.start,s=i.end;n.start=o,n.end=s}return n},getQueryObject:function(){var t=JSON.parse(JSON.stringify(Object(T.d)(e)));return t.query.filters=e.getFilters(),t}},actions:{afterCreate:function(){t=JSON.parse(JSON.stringify(Object(T.d)(e.query.filters)))},setFilter:function(r){e.query.filters=He.create(Object(a.__assign)(Object(a.__assign)({},Object(T.d)(e.query.filters)),r)),t=JSON.parse(JSON.stringify(Object(T.d)(e.query.filters)))},setTrigger:function(t){e.trigger=Ke.create(t)}}}})),et=T.i.model("TSDBLiveQuery",{id:T.i.identifier,type:T.i.literal("tsdblivequery"),tsdbId:T.i.string,region:ee,endpoint:ie,liveQuery:Qe}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).volatile((function(e){return{isPaused:!1}})).views((function(e){return{getSchema:function(){return e.liveQuery.resultTableSchema},get runtimeConfig(){return{filters:Object(T.d)(e.liveQuery.query.filters),trigger:Object(T.d)(e.liveQuery.trigger)}}}})).actions((function(e){return{setQuery:function(t){e.liveQuery=Qe.create(t)},updateRuntimeConfig:function(t){try{var r=t.filters,n=t.trigger;r&&e.liveQuery.setFilter(r),n&&e.liveQuery.setTrigger(n)}catch(e){console.log("bad config for tsdb")}},pause:function(){"once"===e.liveQuery.trigger.type||e.isPaused||(e.isPaused=!0)},resume:function(){"once"!==e.liveQuery.trigger.type&&e.isPaused&&(e.isPaused=!1)}}}));!function(e){e[e.boolean=0]="boolean",e[e.date=1]="date",e[e.number=2]="number",e[e.string=3]="string"}(Te||(Te={})),function(e){e[e.random=0]="random",e[e.specified=1]="specified",e[e.auto=2]="auto"}(Re||(Re={}));var tt,rt=T.i.union(T.i.literal(1),T.i.literal(-1)),nt=T.i.refinement(T.i.number,(function(e){return e>0&&Number.isFinite(e)}));!function(e){e.Second="0",e.Minute="1",e.Hour="2",e.Day="3",e.Week="4",e.Month="5",e.Year="6"}(tt||(tt={}));var it=T.i.enumeration(Object.values(tt)),ot=T.i.refinement(T.i.number,(function(e){return!!new Date(e)})),at=T.i.model({value:T.i.refinement(T.i.number,(function(e){return Number.isInteger(e)})),unit:it}),st=T.i.union(ot,at),ct=T.i.model("TimePeriod",{start:st,end:st}).actions((function(e){var t=function(e,t,r){try{Object(T.h)("abs"===r?ot:at,e),Object(T.h)("abs"===r?ot:at,t)}catch(e){return!1}return!0};return{afterCreate:function(){var r=e.start,n=e.end;if(!t(r,n,"abs")&&!t(r,n,"rel"))throw new Error("\u8d77\u6b62\u65f6\u95f4\u6709\u8bef")}}})),lt=T.i.model({value:T.i.refinement(T.i.number,(function(e){return e>=0&&Number.isInteger(e)})),unit:it}),ut=T.i.model("BaseNumberRule",{category:T.i.literal(Te.number)}),dt=ut.named("RandomNumberRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",min:T.i.number,max:T.i.number,precision:T.i.refinement(T.i.number,(function(e){return 0<=e&&e<=5&&Number.isInteger(e)}))}),pt=ut.named("SpecifiedNumberRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.number),(function(e){return e.every((function(e){return Number.isFinite(e)}))}))}),ht=ut.named("AutoNumberRule").props({type:T.i.literal(Re.auto),displayName:"\u81ea\u589e/\u51cf",start:T.i.number,step:nt,mode:rt}),bt=T.i.union(dt,pt,ht),ft=T.i.model("BaseBooleanRule",{category:T.i.literal(Te.boolean)}),gt=ft.named("RandomBooleanRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a"}),mt=ft.named("SpecifiedBooleanRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.boolean),(function(e){return e.every((function(e){return"boolean"==typeof e}))}))}),Ot=T.i.union(gt,mt),vt=T.i.model("BaseStringRule",{category:T.i.literal(Te.string)}),jt=vt.named("RandomStringRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",preset:T.i.enumeration(["name","email","city"])}),yt=vt.named("SpecifiedStringRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.string),(function(e){return e.every((function(e){return"string"==typeof e&&e.length<=200}))}))}),wt=T.i.union(jt,yt),xt=T.i.model("BaseDateRule",{category:T.i.literal(Te.date)}),St=xt.named("RandomDateRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",period:ct}),Ct=xt.named("SpecifiedDateRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.number),(function(e){return e.every((function(e){return Number.isInteger(e)}))}))}),Et=xt.named("AutoDateRule").props({type:T.i.literal(Re.auto),displayName:"\u81ea\u589e/\u51cf",start:st,step:lt,mode:rt}),At=T.i.union(St,Ct,Et),_t=T.i.union(bt,Ot,wt,At),Tt=T.i.model("ColumnSetting",{name:T.i.refinement(T.i.string,(function(e){return 0=0})),sourcer:Nt,pipelineId:"",ver:T.i.literal(2)}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).extend((function(e){var t,r,n=_.observable.box(Bt.initializing),i=_.observable.box(!1),o=_.observable.box(!1),s=_.observable.box(null,{deep:!1}),c=_.observable.box(null,{deep:!1}),l=function(r,i){n.set(Bt.running),i?e.pipeline.pushToProcessingQueue({tableData:r,dataTableNode:e,originData:e.isAppend?c.get():void 0},(function(){c.set(t),o.get()?n.set(Bt.paused):n.set(Bt.stable)})):e.pipeline.pushToProcessingQueue({tableData:r,dataTableNode:e},(function(){o.get()?n.set(Bt.paused):n.set(Bt.stable)}))};return{actions:{afterCreate:function(){if(e.activeStep>e.transformers.length)throw new Error("Invalid active step index");var i=Object(_.observe)(e,"originalSchema",(function(){n.set(Bt.initializing),s.set(null),t=null,c.set(null),r=null}));Object(T.a)(e,i)},afterAttach:function(){if(!e.pipeline){var t=Object(T.c)(e,2).createPipeline(e.name+"\u5904\u7406\u6d41\u7a0b");e.pipelineId=t.id}},setName:function(t){e.name=t},setAppend:function(t){e.isAppend=t},setStatus:function(e){n.set(e)},setTransformedResult:function(e){s.set(e)},setCurrentProcessing:function(e){t=e},setActiveStep:function(t){if(e.isDebuggable){if(t>e.transformers.length||t<0)throw new Error("Invalid active step index");e.activeStep=t,l(c.get(),!1)}},setActiveStepByID:function(t){var r=-1;e.transformers.forEach((function(e,n){-1===r&&e.id===t&&(r=n)})),e.setActiveStep(r+1)},pause:function(r){if(void 0===r&&(r=!1),!o.get())switch(e.status){case Bt.initializing:0;break;case Bt.initialized:i.set(r),o.set(!0);break;case Bt.stable:r?r!==i.get()?(i.set(!0),o.set(!0),l(c.get(),!1)):n.set(Bt.paused):(i.set(!1),o.set(!0),n.set(Bt.paused));break;case Bt.running:r?i.get()?o.set(!0):(i.set(!0),o.set(!0),l(t,!1)):i.get()?(i.set(!1),o.set(!0),l(t,!1)):o.set(!0);break;default:0}},resume:function(){if(o.get())switch(e.status){case Bt.initializing:0;break;case Bt.initialized:i.set(!1),o.set(!1);break;case Bt.paused:i.get()?(i.set(!1),o.set(!1),l(r||c.get(),!1)):(o.set(!1),r?l(r,!1):n.set(Bt.stable));break;case Bt.running:i.get()&&(i.set(!1),o.set(!1),l(t,!1));break;case Bt.stable:i.get()?(i.set(!1),o.set(!1),l(r?t:c.get(),!1)):o.set(!1)}},feedTableData:function(t){var i,o;if(e.originalSchema.length>200)console.warn("DataTable could not exceed 200 columns");else if(t.data.length>1e3&&(console.warn("DataTable will be trancated to first 1000 rows"),t.data=t.data.slice(0,1e3)),i=t.headers,o=e.originalSchema,i.length===o.length&&Object(A.every)(i,(function(e,t){return e.type===o[t].type})))switch(e.status){case Bt.initializing:n.set(Bt.initialized),l(t,!0);break;case Bt.initialized:l(t,!0);break;case Bt.paused:r=t;break;case Bt.running:case Bt.stable:if(e.isAskingForPause){r=t;break}l(t,!0)}else console.warn("Receiving mismatched data")},updateRuntimeConfig:function(t){e.sourcer.updateRuntimeConfig(t)},applyTransformer:function(t){e.pipeline.applyTransformer(t)},editTransformer:function(t,r){e.pipeline.editTransformer(t,r)},removeTransformer:function(t){e.pipeline.removeTransformer(t)},pauseSourcer:function(){e.sourcer.pause()},resumeSourcer:function(){e.sourcer.resume()},isSourcerPaused:function(){return e.sourcer.isPaused}},views:{get taskExecutor(){return Object(T.c)(e,2).taskExecutor},get isStable(){return e.status===Bt.stable||e.isPaused},get isPaused(){return e.status===Bt.paused},get isDebuggable(){return e.isPaused&&i.get()},get isDebugging(){return i.get()},get isAskingForPause(){return o.get()},get status(){return n.get()},get tableData(){return c.get()},get type(){return e.sourcer.type},get pipeline(){if(e.pipelineId&&Object(T.e)(e,2))return Object(T.c)(e,2).pipelines.find((function(t){return t.id===e.pipelineId}))},get transformers(){return e.pipeline?e.pipeline.transformers:[]},get activeTransformers(){return e.pipeline?e.pipeline.transformers.slice(0,e.activeStep):[]},getTransformer:function(t){return e.transformers.find((function(e){return e.id===t}))||null},getTransformerIndex:function(t){return e.transformers.findIndex((function(e){return e.id===t}))},get transformResult(){return e.isStable||s.get()?s.get():null},get originalSchema(){return e.sourcer.getSchema()},getTransformOutput:function(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){switch(e.status){case Bt.paused:return r=Math.max(Object(A.findIndex)(e.transformers,{id:t}),0),[2,e.pipeline.processUntil({tableData:c.get(),dataTableNode:e,untilStep:r})];default:return console.info("Pipeline is not in paused state"),[2,null]}return[2]}))}))},get runtimeConfig(){return e.sourcer.runtimeConfig}}}})),Lt=r(351),Ft=T.i.model("AbstractTransformer",{id:T.i.identifier}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).views((function(){return{isCompatible:function(e){throw new Error("You must implement this method in your subclass")},get transFunc(){throw new Error("You must implement this method in your subclass")},getSchema:function(e){throw new Error("You must implement this method in your subclass")}}})),zt=function(e,t){"string"==typeof e&&(e=Object(we.b)(e,zt.PARSE_OPTIONS)),this.ast=e,this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var r,n=/^step([A-Z]\w*)$/;for(var i in this)"function"==typeof this[i]&&(r=i.match(n))&&(this.stepFunctions_[r[1]]=this[i].bind(this));this.global=this.createScope(this.ast,null);var o=new we.a(zt.PARSE_OPTIONS,this.polyfills_.join("\n"));this.ast=o.parse(),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0);var a=new zt.State(this.ast,this.global);a.done=!1,this.stateStack=[a],this.run(),this.value=void 0,this.ast=e,(a=new zt.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=a,this.nodeConstructor=o.startNode.bind(o),this.stateStack=this.stateStack,this.OBJECT=this.OBJECT,this.OBJECT_PROTO=this.OBJECT_PROTO,this.FUNCTION=this.FUNCTION,this.FUNCTION_PROTO=this.FUNCTION_PROTO,this.ARRAY=this.ARRAY,this.ARRAY_PROTO=this.ARRAY_PROTO,this.REGEXP=this.REGEXP,this.REGEXP_PROTO=this.REGEXP_PROTO,this.DATE=this.DATE,this.DATE_PROTO=this.DATE_PROTO,this.UNDEFINED=void 0,this.NULL=null,this.NAN=NaN,this.TRUE=!0,this.FALSE=!1,this.STRING_EMPTY="",this.NUMBER_ZERO=0,this.NUMBER_ONE=1};zt.PARSE_OPTIONS={ecmaVersion:6},zt.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1},zt.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0},zt.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1},zt.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0},zt.STEP_ERROR={},zt.SCOPE_REFERENCE={},zt.VALUE_IN_DESCRIPTOR={},zt.toStringCycles_=[];var Wt=zt.prototype;Wt.appendCode=function(e){var t=this.stateStack[0];if(!t||"Program"!==t.node.type)throw Error("Expecting original AST to start with a Program node.");if("string"==typeof e&&(e=Object(we.b)(e,zt.PARSE_OPTIONS)),!e||"Program"!==e.type)throw Error("Expecting new AST to start with a Program node.");this.populateScope_(e,t.scope);for(var r,n=0;r=e.body[n];n++)t.node.body.push(r);t.done=!1},Wt.step=function(){var e=this.stateStack,t=e[e.length-1];if(!t)return!1;var r=t.node,n=r.type;if("Program"===n&&t.done)return!1;if(this.paused_)return!0;try{var i=this.stepFunctions_[n](e,t,r)}catch(e){if(e!==zt.STEP_ERROR)throw e}return i&&e.push(i),!!r.end||this.step()},Wt.run=function(){for(;!this.paused_&&this.step(););return this.paused_},Wt.initGlobalScope=function(e){this.setProperty(e,"NaN",NaN,zt.READONLY_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,zt.READONLY_DESCRIPTOR),this.setProperty(e,"undefined",void 0,zt.READONLY_DESCRIPTOR),this.setProperty(e,"window",e,zt.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,zt.READONLY_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new zt.Object(null),this.FUNCTION_PROTO=new zt.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT),this.initArray(e),this.initString(e),this.initBoolean(e),this.initNumber(e),this.initDate(e),this.initRegExp(e),this.initError(e),this.initMath(e),this.initJSON(e);var t=this,r=this.createNativeFunction((function(e){throw EvalError("Can't happen")}),!1);r.eval=!0,this.setProperty(e,"eval",r),this.setProperty(e,"parseInt",this.createNativeFunction(parseInt,!1)),this.setProperty(e,"parseFloat",this.createNativeFunction(parseFloat,!1)),this.setProperty(e,"isNaN",this.createNativeFunction(isNaN,!1)),this.setProperty(e,"isFinite",this.createNativeFunction(isFinite,!1));for(var n=[[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O && !callbackfn.call(T, O[k], k, O)) return false;","k++;","}","return true;","}","});","Object.defineProperty(Array.prototype, 'filter',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t) {","var val = t[i];","if (fun.call(thisArg, val, i, t)) res.push(val);","}","}","return res;","}","});","Object.defineProperty(Array.prototype, 'forEach',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O) callback.call(T, O[k], k, O);","k++;","}","}","});","Object.defineProperty(Array.prototype, 'map',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') new TypeError;","var T, A, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","A = new Array(len);","k = 0;","while (k < len) {","if (k in O) A[k] = callback.call(T, O[k], k, O);","k++;","}","return A;","}","});","Object.defineProperty(Array.prototype, 'reduce',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var t = Object(this), len = t.length >>> 0, k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in t)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k++];","}","for (; k < len; k++) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'reduceRight',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var t = Object(this), len = t.length >>> 0, k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in t)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k--];","}","for (; k >= 0; k--) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'some',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t && fun.call(thisArg, t[i], i, t)) {","return true;","}","}","return false;","}","});","(function() {","var sort_ = Array.prototype.sort;","Array.prototype.sort = function(opt_comp) {","if (typeof opt_comp !== 'function') {","return sort_.call(this);","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp(this[j], this[j + 1]) > 0) {","var swap = this[j];","this[j] = this[j + 1];","this[j + 1] = swap;","changes++;","}","}","if (!changes) break;","}","return this;","};","})();","Object.defineProperty(Array.prototype, 'toLocaleString',","{configurable: true, writable: true, value:","function() {","var out = [];","for (var i = 0; i < this.length; i++) {","out[i] = (this[i] === null || this[i] === undefined) ? '' : this[i].toLocaleString();","}","return out.join(',');","}","});","")},Wt.initString=function(e){var t,r=this;t=function(e){return e=String(e),r.calledWithNew()?(this.data=e,this):e},this.STRING=this.createNativeFunction(t,!0),this.setProperty(e,"String",this.STRING),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),zt.NONENUMERABLE_DESCRIPTOR);for(var n=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],i=0;i= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")},Wt.initBoolean=function(e){var t,r=this;t=function(e){return e=Boolean(e),r.calledWithNew()?(this.data=e,this):e},this.BOOLEAN=this.createNativeFunction(t,!0),this.setProperty(e,"Boolean",this.BOOLEAN)},Wt.initNumber=function(e){var t,r=this;t=function(e){return e=Number(e),r.calledWithNew()?(this.data=e,this):e},this.NUMBER=this.createNativeFunction(t,!0),this.setProperty(e,"Number",this.NUMBER);for(var n=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],i=0;i>>0;return t===Number(e)?t:NaN},zt.legalArrayIndex=function(e){var t=e>>>0;return String(t)===String(e)&&4294967295!==t?t:NaN},zt.Value,zt.Object=function(e){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=e},zt.Object.prototype.proto=null,zt.Object.prototype.isObject=!0,zt.Object.prototype.class="Object",zt.Object.prototype.data=null,zt.Object.prototype.toString=function(){if("Array"===this.class){(n=zt.toStringCycles_).push(this);try{for(var e=[],t=0;t0;n.pop()){var i=n[n.length-1];switch(i.node.type){case"TryStatement":return void(i.cv={type:e,value:t,label:r});case"CallExpression":case"NewExpression":if(e===zt.Completion.RETURN)return void(i.value=t);if(e!==zt.Completion.THROW)throw Error("Unsynatctic break/continue not rejected by Acorn")}if(e===zt.Completion.BREAK){if(r?i.labels&&-1!==i.labels.indexOf(r):i.isLoop||i.isSwitch)return void n.pop()}else if(e===zt.Completion.CONTINUE&&(r?i.labels&&-1!==i.labels.indexOf(r):i.isLoop))return}var o;if(this.isa(t,this.ERROR)){var a={EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError},s=this.getProperty(t,"name").toString(),c=this.getProperty(t,"message").valueOf();o=(e=a[s]||Error)(c)}else o=String(t);throw o},Wt.createGetter_=function(e,t){var r=Array.isArray(t)?t[0]:t,n=this.nodeConstructor();n.type="CallExpression";var i=new zt.State(n,this.stateStack[this.stateStack.length-1].scope);return i.doneCallee_=!0,i.funcThis_=r,i.func_=e,i.doneArgs_=!0,i.arguments_=[],i},Wt.createSetter_=function(e,t,r){var n=Array.isArray(t)?t[0]:this.global,i=this.nodeConstructor();i.type="CallExpression";var o=new zt.State(i,this.stateStack[this.stateStack.length-1].scope);return o.doneCallee_=!0,o.funcThis_=n,o.func_=e,o.doneArgs_=!0,o.arguments_=[r],o},zt.State=function(e,t){this.node=e,this.scope=t},Wt.stepArrayExpression=function(e,t,r){var n=r.elements,i=t.n_||0;for(t.array_?(this.setProperty(t.array_,i,t.value),i++):(t.array_=this.createObjectProto(this.ARRAY_PROTO),t.array_.properties.length=n.length);i>=":a>>=s;break;case">>>=":a>>>=s;break;case"&=":a&=s;break;case"^=":a^=s;break;case"|=":a|=s;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}var c=this.setValue(t.leftReference_,a);if(c)return t.doneSetter_=a,this.createSetter_(c,t.leftReference_,a);e.pop(),e[e.length-1].value=a},Wt.stepBinaryExpression=function(e,t,r){if(!t.doneLeft_)return t.doneLeft_=!0,new zt.State(r.left,t.scope);if(!t.doneRight_)return t.doneRight_=!0,t.leftValue_=t.value,new zt.State(r.right,t.scope);e.pop();var n,i=t.leftValue_,o=t.value;switch(r.operator){case"==":n=i==o;break;case"!=":n=i!=o;break;case"===":n=i===o;break;case"!==":n=i!==o;break;case">":n=i>o;break;case">=":n=i>=o;break;case"<":n=i>":n=i>>o;break;case">>>":n=i>>>o;break;case"in":o&&o.isObject||this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+o+"'"),n=this.hasProperty(o,i);break;case"instanceof":this.isa(o,this.FUNCTION)||this.throwException(this.TYPE_ERROR,"Right-hand side of instanceof is not an object"),n=!!i.isObject&&this.isa(i,o);break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=n},Wt.stepBlockStatement=function(e,t,r){var n=t.n_||0,i=r.body[n];if(i)return t.n_=n+1,new zt.State(i,t.scope);e.pop()},Wt.stepBreakStatement=function(e,t,r){var n=r.label&&r.label.name;this.unwind(zt.Completion.BREAK,void 0,n)},Wt.stepCallExpression=function(e,t,r){if(!t.doneCallee_){t.doneCallee_=1;var n=new zt.State(r.callee,t.scope);return n.components=!0,n}if(1===t.doneCallee_){t.doneCallee_=2;var i=t.value;if(Array.isArray(i)){if(t.func_=this.getValue(i),i[0]===zt.SCOPE_REFERENCE?t.directEval_="eval"===i[1]:t.funcThis_=i[0],(i=t.func_)&&"object"==typeof i&&i.isGetter)return i.isGetter=!1,t.doneCallee_=1,this.createGetter_(i,t.value)}else t.func_=i;t.arguments_=[],t.n_=0}i=t.func_;if(!t.doneArgs_){if(0!==t.n_&&t.arguments_.push(t.value),r.arguments[t.n_])return new zt.State(r.arguments[t.n_++],t.scope);"NewExpression"===r.type?(i.illegalConstructor&&this.throwException(this.TYPE_ERROR,i+" is not a constructor"),t.funcThis_=this.createObject(i),t.isConstructor=!0):void 0===t.funcThis_&&(t.funcThis_=t.scope.strict?void 0:this.global),t.doneArgs_=!0}if(t.doneExec_)e.pop(),t.isConstructor&&"object"!=typeof t.value?e[e.length-1].value=t.funcThis_:e[e.length-1].value=t.value;else{t.doneExec_=!0,i&&i.isObject||this.throwException(this.TYPE_ERROR,i+" is not a function");var o=i.node;if(o){for(var a=this.createScope(o.body,i.parentScope),s=0;ss?t.arguments_[s]:void 0;this.setProperty(a,c,l)}var u=this.createObjectProto(this.ARRAY_PROTO);for(s=0;s=0&&!r;i--)n(t[i])&&(r=t[i]);r.locals=r.locals||{},e.declarations.forEach((function(e){var t=e.id;return Kt(t,r)}))},FunctionDeclaration:function(e,t){for(var r=null,n=t.length-2;n>=0&&!r;n--)Vt(t[n])&&(r=t[n]);r.locals=r.locals||{},r.locals[e.id.name]=!0,Jt(e)},Function:Jt,ClassDeclaration:function(e,t){for(var r=null,n=t.length-2;n>=0&&!r;n--)Vt(t[n])&&(r=t[n]);r.locals=r.locals||{},r.locals[e.id.name]=!0},TryStatement:function(e){e.handler&&(e.handler.locals=e.handler.locals||{},e.handler.locals[e.handler.param.name]=!0)}},Ut.b);var i=function(e,t){var n=e.name;if("undefined"!==n){for(var i=0,o=t;i0&&(a=setTimeout((function(){s="timeout"})));!s&&o.step(););clearTimeout(a),s?i(s):n({result:o.pseudoToNative(o.value)})}catch(e){i(e.toString())}}))},ir=new Set(["NaN","Infinity","undefined","window","this","self","Function","Object","constructor","Array","String","Boolean","Number","Date","RegExp","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","Math","JSON","eval","parseInt","parseFloat","isNaN","isFinite","alert"]),or=new Set(["cell"]),ar=function(e,t){if(null===(e=function(e){return Object(A.isString)(e)||Object(A.isBoolean)(e)||Object(A.isDate)(e)?e:Object(A.isNil)(e)||Object(A.isNumber)(e)&&isNaN(e)?null:e===Number.POSITIVE_INFINITY?Number.MAX_VALUE:e===Number.NEGATIVE_INFINITY?Number.MIN_VALUE:Object(A.isNumber)(e)?e:Object(A.isArray)(e)?Object(A.get)(e,0,null):Object(A.isFunction)(e)||Object(A.isObject)(e)?e.toString():void 0}(e)))return e;if(Object(A.isDate)(e)&&(e=+e),Object(A.isString)(e)||Object(A.isNumber)(e)||Object(A.isBoolean)(e)){var r=Object(A.isString)(e)?"string":Object(A.isNumber)(e)?Object(A.isInteger)(e)?"integer":"number":"boolean";return Object(h.h)(r,t)(e)}},sr=function(e){switch(e.type){case"customjs":return function(t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r,n,i,o,s,c,l,u,d,p,h,b,f;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return r=t.headers,n=t.data,o=(i=e).baseCol,s=i.globalVars,c=i.code,l=i.outType,u=r[o].type,d="date"!==u?A.identity:function(e){return new Date(e)},p=function(e,t){return function(r){return Object(A.map)(r,(function(r){return t(r[e])}))}}(o,d)(n),h={rows:n,col:p,header:r[o].name},b=function(e,t){return"\nvar "+e.concat("rowCount = rows.length").join(", ")+";\nvar userFn = "+t+";\n\nfunction boundFn(cell, rowIndex) {\n return userFn(cell, rowIndex, col, rows, header);\n};\n\ncol.map(boundFn);\n"}(s,c),[4,nr(h,b,1e3)];case 1:return f=a.sent(),[2,Object(A.map)(f.result,(function(e){return ar(e,l)}))]}}))}))};default:throw new Error("Unknown formula "+e.type)}},cr=T.i.model({outType:T.i.enumeration("OutputType",["string","number","boolean","date"])}).actions((function(e){return{setOutType:function(t){e.outType=t}}})).views((function(){return{isCalculableSchema:function(e){throw new Error("You must implement this method in your subclass")}}})).props({type:T.i.literal("customjs"),baseCol:se,code:T.i.refinement("JSCode",T.i.string,(function(e){try{return function(e){try{var t=Object(we.b)(e,{ecmaVersion:5,sourceType:"script",locations:!0});if("Program"!==t.type)throw new Error("\u811a\u672c\u5185\u5bb9\u6709\u8bef");if(1!==t.body.length||"FunctionDeclaration"!==t.body[0].type)throw new Error("\u811a\u672c\u5fc5\u987b\u662f\u4e00\u4e2a\u51fd\u6570\u5b9a\u4e49");Object(Ut.c)(t,{WithStatement:function(e){throw new Error("\u4e0d\u652f\u6301\u201cwith\u201d\u8bed\u53e5 "+er(e.loc.start))}},Ut.b),Qt(t,!0).forEach((function(e){var t=e.name,r=e.node;if(tr.has(t))throw new Error('\u4e0d\u652f\u6301\u53d8\u91cf "'+t+'" '+er(r.loc.start))}))}catch(e){return e.message}}(e),!0}catch(e){return!1}}))}).views((function(e){return{get globalVars(){return t=e.code,Qt(t).filter((function(e){return!ir.has(e)&&!or.has(e)}));var t},isCalculableSchema:function(t){return e.baseCol200?a.slice(0,200):a},get transFunc(){var t=this;return function(r){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t,n,i,o,s,c,l;return Object(a.__generator)(this,(function(a){for(t=r.data,n=this.getSchema(r),i=Object(A.uniq)(t.map((function(t){return t[e.cfg.firstCol]}))),o=Array(i.length).fill(null),l=0;le.length-1||a>t.length-1)throw new Error("baseCol is out of range");var c=e[a],l=t[a],u=mr[s](c,l);if(0!==u)return u}return 0},mr={descending:function(e,t){return et?-1:0},ascending:function(e,t){return et?1:0}},Or=Ft.named("SortRows").props({type:T.i.literal("sortrows"),cfg:T.i.array(T.i.model({baseCol:se,order:T.i.optional(T.i.enumeration("order",["descending","ascending"]),"ascending")}))}).views((function(e){return{isCompatible:function(t){return Object(A.every)(e.cfg,(function(e,r){var n=e.baseCol;e.order;return 0<=n&&n1e3?i.data.slice(i.data.length+r.data.length-1e3,i.data.length):i.data,r.data)),n.setCurrentProcessing(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t(r,n)];case 2:return o.sent(),[3,4];case 3:return e=o.sent(),console.error(e),[3,4];case 4:return[2]}}))}))})));return{actions:{getUsedDataTable:function(){return Object(T.c)(e,2).dataTables.find((function(t){return t.pipelineId===e.id}))},applyTransformer:function(t){var r=e.getUsedDataTable();if(!r)throw new Error("Cannot find used data table");if(r.isDebuggable){var n=jr.create(t);if(!n.isCompatible(r.transformResult.finalSchema))throw new Error("Cannot add incompatible transformer");e.transformers.splice(r.activeStep),e.transformers.push(n),r.setActiveStep(r.activeStep+1)}},editTransformer:function(t,n){var i=e.getUsedDataTable();if(!i)throw new Error("Cannot find used data table");if(i.isDebuggable){var o=-1;if(e.transformers.forEach((function(e,r){-1===o&&e.id===t&&(o=r)})),-1===o)throw new Error("Cannot find transformer with id: "+t);var s=jr.create(Object(a.__assign)(Object(a.__assign)({},n),{id:t}));e.transformers.splice(o,1,s),r.push({tableData:i.tableData,dataTableNode:i})}},removeTransformer:function(t){var r=e.getUsedDataTable();if(!r)throw new Error("Cannot find used data table");if(r.isDebuggable){var n=-1;e.transformers.forEach((function(e,r){-1===n&&e.id===t&&(n=r)})),-1!==n&&(e.transformers.splice(n,1),r.activeStep-1>=n&&r.setActiveStep(r.activeStep-1))}},pushToProcessingQueue:function(e,t){r.length()<10?r.push(e,t):console.warn("Too many pending table processing tasks")},processUntil:function(t){var r=t.tableData,n=t.dataTableNode,i=t.untilStep;return new Promise((function(t,o){console.assert(0<=i&&i1?arguments[1]:{},i={},o={visualFormatString:we},a=we,s=i,c=null,l=":",u={type:"literal",value:":",description:'":"'},d=function(e,t,r,n,i){return{orientation:e?e[0]:"horizontal",cascade:(t||[]).concat([r],[].concat.apply([],n),i||[])}},p="H",h={type:"literal",value:"H",description:'"H"'},b="V",f={type:"literal",value:"V",description:'"V"'},g=function(e){return"H"==e?"horizontal":"vertical"},m="|",O={type:"literal",value:"|",description:'"|"'},v=function(){return{view:null}},j="[",y={type:"literal",value:"[",description:'"["'},w="]",x={type:"literal",value:"]",description:'"]"'},S=function(e,t){return Re(e,t?{constraints:t}:{})},C="-",E={type:"literal",value:"-",description:'"-"'},A=function(e){return e},_=function(){return[{relation:"equ",constant:"default",$parserOffset:Oe()}]},T="",R=function(){return[{relation:"equ",constant:0,$parserOffset:Oe()}]},I=function(e){return[{relation:"equ",constant:e,$parserOffset:Oe()}]},P="(",k={type:"literal",value:"(",description:'"("'},B=",",N={type:"literal",value:",",description:'","'},D=")",M={type:"literal",value:")",description:'")"'},L=function(e,t){return[e].concat(t.map((function(e){return e[1]})))},F="@",z={type:"literal",value:"@",description:'"@"'},W=function(e,t,r){return Re({relation:"equ"},e||{},t,r?r[1]:{})},U="==",H={type:"literal",value:"==",description:'"=="'},V=function(){return{relation:"equ",$parserOffset:Oe()}},G="<=",Y={type:"literal",value:"<=",description:'"<="'},Z=function(){return{relation:"leq",$parserOffset:Oe()}},q=">=",X={type:"literal",value:">=",description:'">="'},K=function(){return{relation:"geq",$parserOffset:Oe()}},J=/^[0-9]/,Q={type:"class",value:"[0-9]",description:"[0-9]"},ee=function(e){return{priority:parseInt(e.join(""),10)}},te=function(e){return{constant:e}},re=/^[a-zA-Z_]/,ne={type:"class",value:"[a-zA-Z_]",description:"[a-zA-Z_]"},ie=/^[a-zA-Z0-9_]/,oe={type:"class",value:"[a-zA-Z0-9_]",description:"[a-zA-Z0-9_]"},ae=function(e,t){return{view:e+t}},se=".",ce={type:"literal",value:".",description:'"."'},le=function(e,t){return parseFloat(e.concat(".").concat(t).join(""))},ue=function(e){return parseInt(e.join(""),10)},de=0,pe=0,he=0,be={line:1,column:1,seenCR:!1},fe=0,ge=[],me=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Oe(){return pe}function ve(e){return he!==e&&(he>e&&(he=0,be={line:1,column:1,seenCR:!1}),function(e,r,n){var i,o;for(i=r;ife&&(fe=de,ge=[]),ge.push(e))}function ye(r,n,i){var o=ve(i),a=it.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0180-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1080-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,a),n,a,i,o.line,o.column)}function we(){var e,r,n,o,a,m,O,v;if(e=de,r=de,(n=function(){var e,r;e=de,72===t.charCodeAt(de)?(r=p,de++):(r=i,0===me&&je(h));r===i&&(86===t.charCodeAt(de)?(r=b,de++):(r=i,0===me&&je(f)));r!==i&&(pe=e,r=g(r));return e=r}())!==i?(58===t.charCodeAt(de)?(o=l,de++):(o=i,0===me&&je(u)),o!==i?r=n=[n,o]:(de=r,r=s)):(de=r,r=s),r===i&&(r=c),r!==i)if(n=de,(o=xe())!==i&&(a=Ce())!==i?n=o=[o,a]:(de=n,n=s),n===i&&(n=c),n!==i)if((o=Se())!==i){for(a=[],m=de,(O=Ce())!==i&&(v=Se())!==i?m=O=[O,v]:(de=m,m=s);m!==i;)a.push(m),m=de,(O=Ce())!==i&&(v=Se())!==i?m=O=[O,v]:(de=m,m=s);a!==i?(m=de,(O=Ce())!==i&&(v=xe())!==i?m=O=[O,v]:(de=m,m=s),m===i&&(m=c),m!==i?(pe=e,e=r=d(r,n,o,a,m)):(de=e,e=s)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;else de=e,e=s;return e}function xe(){var e,r;return e=de,124===t.charCodeAt(de)?(r=m,de++):(r=i,0===me&&je(O)),r!==i&&(pe=e,r=v()),e=r}function Se(){var e,r,n,o,a;return e=de,91===t.charCodeAt(de)?(r=j,de++):(r=i,0===me&&je(y)),r!==i&&(n=_e())!==i?((o=Ee())===i&&(o=c),o!==i?(93===t.charCodeAt(de)?(a=w,de++):(a=i,0===me&&je(x)),a!==i?(pe=e,e=r=S(n,o)):(de=e,e=s)):(de=e,e=s)):(de=e,e=s),e}function Ce(){var e,r,n,o;return e=de,45===t.charCodeAt(de)?(r=C,de++):(r=i,0===me&&je(E)),r!==i&&(n=function(){var e;(e=function(){var e,t;e=de,(t=Te())!==i&&(pe=e,t=I(t));return e=t}())===i&&(e=Ee());return e}())!==i?(45===t.charCodeAt(de)?(o=C,de++):(o=i,0===me&&je(E)),o!==i?(pe=e,e=r=A(n)):(de=e,e=s)):(de=e,e=s),e===i&&(e=de,45===t.charCodeAt(de)?(r=C,de++):(r=i,0===me&&je(E)),r!==i&&(pe=e,r=_()),(e=r)===i&&(e=de,(r=T)!==i&&(pe=e,r=R()),e=r)),e}function Ee(){var e,r,n,o,a,c,l;if(e=de,40===t.charCodeAt(de)?(r=P,de++):(r=i,0===me&&je(k)),r!==i)if((n=Ae())!==i){for(o=[],a=de,44===t.charCodeAt(de)?(c=B,de++):(c=i,0===me&&je(N)),c!==i&&(l=Ae())!==i?a=c=[c,l]:(de=a,a=s);a!==i;)o.push(a),a=de,44===t.charCodeAt(de)?(c=B,de++):(c=i,0===me&&je(N)),c!==i&&(l=Ae())!==i?a=c=[c,l]:(de=a,a=s);o!==i?(41===t.charCodeAt(de)?(a=D,de++):(a=i,0===me&&je(M)),a!==i?(pe=e,e=r=L(n,o)):(de=e,e=s)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;return e}function Ae(){var e,r,n,o,a,l;return e=de,(r=function(){var e,r;e=de,t.substr(de,2)===U?(r=U,de+=2):(r=i,0===me&&je(H));r!==i&&(pe=e,r=V());(e=r)===i&&(e=de,t.substr(de,2)===G?(r=G,de+=2):(r=i,0===me&&je(Y)),r!==i&&(pe=e,r=Z()),(e=r)===i&&(e=de,t.substr(de,2)===q?(r=q,de+=2):(r=i,0===me&&je(X)),r!==i&&(pe=e,r=K()),e=r));return e}())===i&&(r=c),r!==i&&(n=function(){var e;(e=function(){var e,t;e=de,(t=Te())!==i&&(pe=e,t=te(t));return e=t}())===i&&(e=_e());return e}())!==i?(o=de,64===t.charCodeAt(de)?(a=F,de++):(a=i,0===me&&je(z)),a!==i&&(l=function(){var e,r,n;e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q));if(n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q));else r=s;r!==i&&(pe=e,r=ee(r));return e=r}())!==i?o=a=[a,l]:(de=o,o=s),o===i&&(o=c),o!==i?(pe=e,e=r=W(r,n,o)):(de=e,e=s)):(de=e,e=s),e}function _e(){var e,r,n,o,a;if(e=de,r=de,n=[],re.test(t.charAt(de))?(o=t.charAt(de),de++):(o=i,0===me&&je(ne)),o!==i)for(;o!==i;)n.push(o),re.test(t.charAt(de))?(o=t.charAt(de),de++):(o=i,0===me&&je(ne));else n=s;if(n!==i&&(n=t.substring(r,de)),(r=n)!==i){for(n=de,o=[],ie.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&je(oe));a!==i;)o.push(a),ie.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&je(oe));o!==i&&(o=t.substring(n,de)),(n=o)!==i?(pe=e,e=r=ae(r,n)):(de=e,e=s)}else de=e,e=s;return e}function Te(){var e,r,n,o,a;if(e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q)),n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q));else r=s;if(r!==i)if(46===t.charCodeAt(de)?(n=se,de++):(n=i,0===me&&je(ce)),n!==i){if(o=[],J.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&je(Q)),a!==i)for(;a!==i;)o.push(a),J.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&je(Q));else o=s;o!==i?(pe=e,e=r=le(r,o)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;if(e===i){if(e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q)),n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&je(Q));else r=s;r!==i&&(pe=e,r=ue(r)),e=r}return e}function Re(e){for(var t=[],r=1;r1?arguments[1]:{},i={},o={visualFormatStringExt:Yt},a=Yt,s=i,c="C:",l={type:"literal",value:"C:",description:'"C:"'},u=null,d=function(e,t,r,n){return{type:"attribute",view:e.view,attributes:[t].concat(r)}},p=function(e,t){return{attr:e,predicates:t}},h=":",b={type:"literal",value:":",description:'":"'},f=function(e,t,r,n,i,o){return{type:"vfl",orientation:e?e[0]:"horizontal",cascade:(t||[]).concat(r,[].concat.apply([],n),i||[])}},g="HV",m={type:"literal",value:"HV",description:'"HV"'},O=function(){return"horzvert"},v="H",j={type:"literal",value:"H",description:'"H"'},y=function(){return"horizontal"},w="V",x={type:"literal",value:"V",description:'"V"'},S=function(){return"vertical"},C="Z",E={type:"literal",value:"Z",description:'"Z"'},A=function(){return"zIndex"},_=" ",T={type:"literal",value:" ",description:'" "'},R="//",I={type:"literal",value:"//",description:'"//"'},P={type:"any",description:"any character"},k="|",B={type:"literal",value:"|",description:'"|"'},N=function(){return{view:null}},D="[",M={type:"literal",value:"[",description:'"["'},L=",",F={type:"literal",value:",",description:'","'},z="]",W={type:"literal",value:"]",description:'"]"'},U=function(e,t){return t.length?[e].concat([].concat.apply([],t)):e},H=function(e,t,r){return lr(lr(e,t?{constraints:t}:{}),r?{cascade:r}:{})},V=function(e,t){return[].concat([].concat.apply([],e),[t])},G="->",Y={type:"literal",value:"->",description:'"->"'},Z=function(){return[{relation:"none"}]},q="-",X={type:"literal",value:"-",description:'"-"'},K=function(e){return e},J=function(){return[{relation:"equ",constant:"default"}]},Q="~",ee={type:"literal",value:"~",description:'"~"'},te=function(){return[{relation:"equ",equalSpacing:!0}]},re="",ne=function(){return[{relation:"equ",constant:0}]},ie=function(e){return[{relation:"equ",multiplier:e.multiplier}]},oe=function(e){return[{relation:"equ",constant:e}]},ae="(",se={type:"literal",value:"(",description:'"("'},ce=")",le={type:"literal",value:")",description:'")"'},ue=function(e,t){return[e].concat(t.map((function(e){return e[1]})))},de="@",pe={type:"literal",value:"@",description:'"@"'},he=function(e,t,r){return lr({relation:"equ"},e||{},t,r?r[1]:{})},be=function(e,t,r){return lr({relation:"equ",equalSpacing:!0},e||{},t,r?r[1]:{})},fe="==",ge={type:"literal",value:"==",description:'"=="'},me=function(){return{relation:"equ"}},Oe="<=",ve={type:"literal",value:"<=",description:'"<="'},je=function(){return{relation:"leq"}},ye=">=",we={type:"literal",value:">=",description:'">="'},xe=function(){return{relation:"geq"}},Se=/^[0-9]/,Ce={type:"class",value:"[0-9]",description:"[0-9]"},Ee=function(e){return{priority:parseInt(e.join(""),10)}},Ae=function(e){return{constant:e}},_e=function(e){return{constant:-e}},Te="+",Re={type:"literal",value:"+",description:'"+"'},Ie="%",Pe={type:"literal",value:"%",description:'"%"'},ke=function(e){return{view:null,multiplier:e/100}},Be=function(e){return{view:null,multiplier:e/-100}},Ne=function(e,t,r,n){return{view:e.view,attribute:t||void 0,multiplier:r||1,constant:n||void 0}},De=".left",Me={type:"literal",value:".left",description:'".left"'},Le=function(){return"left"},Fe=".right",ze={type:"literal",value:".right",description:'".right"'},We=function(){return"right"},Ue=".top",He={type:"literal",value:".top",description:'".top"'},Ve=function(){return"top"},Ge=".bottom",Ye={type:"literal",value:".bottom",description:'".bottom"'},Ze=function(){return"bottom"},qe=".width",Xe={type:"literal",value:".width",description:'".width"'},$e=function(){return"width"},Ke=".height",Je={type:"literal",value:".height",description:'".height"'},Qe=function(){return"height"},et=".centerX",tt={type:"literal",value:".centerX",description:'".centerX"'},rt=function(){return"centerX"},nt=".centerY",it={type:"literal",value:".centerY",description:'".centerY"'},ot=function(){return"centerY"},at="/",st={type:"literal",value:"/",description:'"/"'},ct=function(e){return 1/e},lt="/+",ut={type:"literal",value:"/+",description:'"/+"'},dt="/-",pt={type:"literal",value:"/-",description:'"/-"'},ht=function(e){return-1/e},bt="*",ft={type:"literal",value:"*",description:'"*"'},gt=function(e){return e},mt="*+",Ot={type:"literal",value:"*+",description:'"*+"'},vt="*-",jt={type:"literal",value:"*-",description:'"*-"'},yt=function(e){return-e},wt=/^[a-zA-Z_]/,xt={type:"class",value:"[a-zA-Z_]",description:"[a-zA-Z_]"},St=/^[a-zA-Z0-9_]/,Ct={type:"class",value:"[a-zA-Z0-9_]",description:"[a-zA-Z0-9_]"},Et=function(e,t,r){return{view:e+t,range:r,$parserOffset:Ut()}},At=function(e,t){return{view:e+t,$parserOffset:Ut()}},_t="..",Tt={type:"literal",value:"..",description:'".."'},Rt=function(e){return parseInt(e)},It=".",Pt={type:"literal",value:".",description:'"."'},kt=function(e,t){return parseFloat(e.concat(".").concat(t).join(""))},Bt=function(e){return parseInt(e.join(""),10)},Nt=0,Dt=0,Mt=0,Lt={line:1,column:1,seenCR:!1},Ft=0,zt=[],Wt=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Ut(){return Dt}function Ht(e){return Mt!==e&&(Mt>e&&(Mt=0,Lt={line:1,column:1,seenCR:!1}),function(e,r,n){var i,o;for(i=r;iFt&&(Ft=Nt,zt=[]),zt.push(e))}function Gt(r,n,i){var o=Ht(i),a=it.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0180-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1080-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,a),n,a,i,o.line,o.column)}function Yt(){var e;return(e=function(){var e,r,n,o,a,c,l,d;e=Nt,r=Nt,(n=function(){var e,r;e=Nt,t.substr(Nt,2)===g?(r=g,Nt+=2):(r=i,0===Wt&&Vt(m));r!==i&&(Dt=e,r=O());(e=r)===i&&(e=Nt,72===t.charCodeAt(Nt)?(r=v,Nt++):(r=i,0===Wt&&Vt(j)),r!==i&&(Dt=e,r=y()),(e=r)===i&&(e=Nt,86===t.charCodeAt(Nt)?(r=w,Nt++):(r=i,0===Wt&&Vt(x)),r!==i&&(Dt=e,r=S()),(e=r)===i&&(e=Nt,90===t.charCodeAt(Nt)?(r=C,Nt++):(r=i,0===Wt&&Vt(E)),r!==i&&(Dt=e,r=A()),e=r)));return e}())!==i?(58===t.charCodeAt(Nt)?(o=h,Nt++):(o=i,0===Wt&&Vt(b)),o!==i?r=n=[n,o]:(Nt=r,r=s)):(Nt=r,r=s);r===i&&(r=u);if(r!==i)if(n=Nt,(o=Xt())!==i&&(a=Jt())!==i?n=o=[o,a]:(Nt=n,n=s),n===i&&(n=u),n!==i)if((o=$t())!==i){for(a=[],c=Nt,(l=Jt())!==i&&(d=$t())!==i?c=l=[l,d]:(Nt=c,c=s);c!==i;)a.push(c),c=Nt,(l=Jt())!==i&&(d=$t())!==i?c=l=[l,d]:(Nt=c,c=s);a!==i?(c=Nt,(l=Jt())!==i&&(d=Xt())!==i?c=l=[l,d]:(Nt=c,c=s),c===i&&(c=u),c!==i?((l=qt())===i&&(l=u),l!==i?(Dt=e,r=f(r,n,o,a,c,l),e=r):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;else Nt=e,e=s;return e}())===i&&(e=function(){var e,r,n,o,a,p;e=Nt,t.substr(Nt,2)===c?(r=c,Nt+=2):(r=i,0===Wt&&Vt(l));if(r!==i)if((n=sr())!==i)if((o=Zt())!==i){for(a=[],p=Zt();p!==i;)a.push(p),p=Zt();a!==i?((p=qt())===i&&(p=u),p!==i?(Dt=e,r=d(n,o,a,p),e=r):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;else Nt=e,e=s;return e}()),e}function Zt(){var e,t,r;return e=Nt,(t=ar())!==i&&(r=Qt())!==i?(Dt=e,e=t=p(t,r)):(Nt=e,e=s),e}function qt(){var e,r,n,o,a;for(e=Nt,r=[],32===t.charCodeAt(Nt)?(n=_,Nt++):(n=i,0===Wt&&Vt(T));n!==i;)r.push(n),32===t.charCodeAt(Nt)?(n=_,Nt++):(n=i,0===Wt&&Vt(T));if(r!==i)if(t.substr(Nt,2)===R?(n=R,Nt+=2):(n=i,0===Wt&&Vt(I)),n!==i){for(o=[],t.length>Nt?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(P));a!==i;)o.push(a),t.length>Nt?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(P));o!==i?e=r=[r,n,o]:(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function Xt(){var e,r;return e=Nt,124===t.charCodeAt(Nt)?(r=k,Nt++):(r=i,0===Wt&&Vt(B)),r!==i&&(Dt=e,r=N()),e=r}function $t(){var e,r,n,o,a,c,l;if(e=Nt,91===t.charCodeAt(Nt)?(r=D,Nt++):(r=i,0===Wt&&Vt(M)),r!==i)if((n=Kt())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=Kt())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=Kt())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(93===t.charCodeAt(Nt)?(a=z,Nt++):(a=i,0===Wt&&Vt(W)),a!==i?(Dt=e,e=r=U(n,o)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function Kt(){var e,r,n,o;return e=Nt,(r=function(){var e,r,n,o,a;e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));if(o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;n!==i&&(n=t.substring(r,Nt));if((r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i&&(o=function(){var e,r,n,o;e=Nt,t.substr(Nt,2)===_t?(r=_t,Nt+=2):(r=i,0===Wt&&Vt(Tt));if(r!==i){if(n=[],Se.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(Ce)),o!==i)for(;o!==i;)n.push(o),Se.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(Ce));else n=s;n!==i?(Dt=e,r=Rt(n),e=r):(Nt=e,e=s)}else Nt=e,e=s;return e}())!==i?(Dt=e,r=Et(r,n,o),e=r):(Nt=e,e=s)}else Nt=e,e=s;if(e===i){if(e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt)),o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;if(n!==i&&(n=t.substring(r,Nt)),(r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i?(Dt=e,r=At(r,n),e=r):(Nt=e,e=s)}else Nt=e,e=s}return e}())!==i?((n=Qt())===i&&(n=u),n!==i?((o=function(){var e,r,n,o,a,c;e=Nt,58===t.charCodeAt(Nt)?(r=h,Nt++):(r=i,0===Wt&&Vt(b));if(r!==i){if(n=[],o=Nt,(a=Jt())!==i&&(c=$t())!==i?o=a=[a,c]:(Nt=o,o=s),o!==i)for(;o!==i;)n.push(o),o=Nt,(a=Jt())!==i&&(c=$t())!==i?o=a=[a,c]:(Nt=o,o=s);else n=s;n!==i&&(o=Jt())!==i?(Dt=e,r=V(n,o),e=r):(Nt=e,e=s)}else Nt=e,e=s;return e}())===i&&(o=u),o!==i?(Dt=e,e=r=H(r,n,o)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s),e}function Jt(){var e,r,n,o;return e=Nt,t.substr(Nt,2)===G?(r=G,Nt+=2):(r=i,0===Wt&&Vt(Y)),r!==i&&(Dt=e,r=Z()),(e=r)===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=q,Nt++):(r=i,0===Wt&&Vt(X)),r!==i&&(n=function(){var e;(e=function(){var e,t;e=Nt,(t=or())!==i&&(Dt=e,t=ie(t));(e=t)===i&&(e=Nt,(t=cr())!==i&&(Dt=e,t=oe(t)),e=t);return e}())===i&&(e=Qt());return e}())!==i?(45===t.charCodeAt(Nt)?(o=q,Nt++):(o=i,0===Wt&&Vt(X)),o!==i?(Dt=e,e=r=K(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=q,Nt++):(r=i,0===Wt&&Vt(X)),r!==i&&(Dt=e,r=J()),(e=r)===i&&(e=Nt,126===t.charCodeAt(Nt)?(r=Q,Nt++):(r=i,0===Wt&&Vt(ee)),r!==i&&(n=function(){var e,r,n,o,a,c,l;e=Nt,40===t.charCodeAt(Nt)?(r=ae,Nt++):(r=i,0===Wt&&Vt(se));if(r!==i)if((n=tr())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=tr())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=tr())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(41===t.charCodeAt(Nt)?(a=ce,Nt++):(a=i,0===Wt&&Vt(le)),a!==i?(Dt=e,r=ue(n,o),e=r):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}())!==i?(126===t.charCodeAt(Nt)?(o=Q,Nt++):(o=i,0===Wt&&Vt(ee)),o!==i?(Dt=e,e=r=K(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,126===t.charCodeAt(Nt)?(r=Q,Nt++):(r=i,0===Wt&&Vt(ee)),r!==i&&(Dt=e,r=te()),(e=r)===i&&(e=Nt,(r=re)!==i&&(Dt=e,r=ne()),e=r))))),e}function Qt(){var e,r,n,o,a,c,l;if(e=Nt,40===t.charCodeAt(Nt)?(r=ae,Nt++):(r=i,0===Wt&&Vt(se)),r!==i)if((n=er())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=er())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=er())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(41===t.charCodeAt(Nt)?(a=ce,Nt++):(a=i,0===Wt&&Vt(le)),a!==i?(Dt=e,e=r=ue(n,o)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function er(){var e,r,n,o,a,c;return e=Nt,(r=rr())===i&&(r=u),r!==i&&(n=nr())!==i?(o=Nt,64===t.charCodeAt(Nt)?(a=de,Nt++):(a=i,0===Wt&&Vt(pe)),a!==i&&(c=ir())!==i?o=a=[a,c]:(Nt=o,o=s),o===i&&(o=u),o!==i?(Dt=e,e=r=he(r,n,o)):(Nt=e,e=s)):(Nt=e,e=s),e}function tr(){var e,r,n,o,a,c;return e=Nt,(r=rr())===i&&(r=u),r!==i&&(n=nr())!==i?(o=Nt,64===t.charCodeAt(Nt)?(a=de,Nt++):(a=i,0===Wt&&Vt(pe)),a!==i&&(c=ir())!==i?o=a=[a,c]:(Nt=o,o=s),o===i&&(o=u),o!==i?(Dt=e,e=r=be(r,n,o)):(Nt=e,e=s)):(Nt=e,e=s),e}function rr(){var e,r;return e=Nt,t.substr(Nt,2)===fe?(r=fe,Nt+=2):(r=i,0===Wt&&Vt(ge)),r!==i&&(Dt=e,r=me()),(e=r)===i&&(e=Nt,t.substr(Nt,2)===Oe?(r=Oe,Nt+=2):(r=i,0===Wt&&Vt(ve)),r!==i&&(Dt=e,r=je()),(e=r)===i&&(e=Nt,t.substr(Nt,2)===ye?(r=ye,Nt+=2):(r=i,0===Wt&&Vt(we)),r!==i&&(Dt=e,r=xe()),e=r)),e}function nr(){var e;return(e=or())===i&&(e=function(){var e,r,n;e=Nt,(r=cr())!==i&&(Dt=e,r=Ae(r));(e=r)===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=q,Nt++):(r=i,0===Wt&&Vt(X)),r!==i&&(n=cr())!==i?(Dt=e,r=_e(n),e=r):(Nt=e,e=s),e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=cr())!==i?(Dt=e,r=Ae(n),e=r):(Nt=e,e=s)));return e}())===i&&(e=function(){var e,r,n,o,a;e=Nt,(r=sr())!==i?((n=ar())===i&&(n=u),n!==i?((o=function(){var e,r,n;e=Nt,47===t.charCodeAt(Nt)?(r=at,Nt++):(r=i,0===Wt&&Vt(st));r!==i&&(n=cr())!==i?(Dt=e,r=ct(n),e=r):(Nt=e,e=s);e===i&&(e=Nt,t.substr(Nt,2)===lt?(r=lt,Nt+=2):(r=i,0===Wt&&Vt(ut)),r!==i&&(n=cr())!==i?(Dt=e,r=ct(n),e=r):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===dt?(r=dt,Nt+=2):(r=i,0===Wt&&Vt(pt)),r!==i&&(n=cr())!==i?(Dt=e,r=ht(n),e=r):(Nt=e,e=s),e===i&&(e=Nt,42===t.charCodeAt(Nt)?(r=bt,Nt++):(r=i,0===Wt&&Vt(ft)),r!==i&&(n=cr())!==i?(Dt=e,r=gt(n),e=r):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===mt?(r=mt,Nt+=2):(r=i,0===Wt&&Vt(Ot)),r!==i&&(n=cr())!==i?(Dt=e,r=gt(n),e=r):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===vt?(r=vt,Nt+=2):(r=i,0===Wt&&Vt(jt)),r!==i&&(n=cr())!==i?(Dt=e,r=yt(n),e=r):(Nt=e,e=s))))));return e}())===i&&(o=u),o!==i?((a=function(){var e,r,n;e=Nt,45===t.charCodeAt(Nt)?(r=q,Nt++):(r=i,0===Wt&&Vt(X));r!==i&&(n=cr())!==i?(Dt=e,r=yt(n),e=r):(Nt=e,e=s);e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=cr())!==i?(Dt=e,r=gt(n),e=r):(Nt=e,e=s));return e}())===i&&(a=u),a!==i?(Dt=e,r=Ne(r,n,o,a),e=r):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s);return e}()),e}function ir(){var e,r,n;if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;return r!==i&&(Dt=e,r=Ee(r)),e=r}function or(){var e,r,n,o;return e=Nt,(r=cr())!==i?(37===t.charCodeAt(Nt)?(n=Ie,Nt++):(n=i,0===Wt&&Vt(Pe)),n!==i?(Dt=e,e=r=ke(r)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=q,Nt++):(r=i,0===Wt&&Vt(X)),r!==i&&(n=cr())!==i?(37===t.charCodeAt(Nt)?(o=Ie,Nt++):(o=i,0===Wt&&Vt(Pe)),o!==i?(Dt=e,e=r=Be(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=cr())!==i?(37===t.charCodeAt(Nt)?(o=Ie,Nt++):(o=i,0===Wt&&Vt(Pe)),o!==i?(Dt=e,e=r=ke(n)):(Nt=e,e=s)):(Nt=e,e=s))),e}function ar(){var e,r;return e=Nt,t.substr(Nt,5)===De?(r=De,Nt+=5):(r=i,0===Wt&&Vt(Me)),r!==i&&(Dt=e,r=Le()),(e=r)===i&&(e=Nt,t.substr(Nt,6)===Fe?(r=Fe,Nt+=6):(r=i,0===Wt&&Vt(ze)),r!==i&&(Dt=e,r=We()),(e=r)===i&&(e=Nt,t.substr(Nt,4)===Ue?(r=Ue,Nt+=4):(r=i,0===Wt&&Vt(He)),r!==i&&(Dt=e,r=Ve()),(e=r)===i&&(e=Nt,t.substr(Nt,7)===Ge?(r=Ge,Nt+=7):(r=i,0===Wt&&Vt(Ye)),r!==i&&(Dt=e,r=Ze()),(e=r)===i&&(e=Nt,t.substr(Nt,6)===qe?(r=qe,Nt+=6):(r=i,0===Wt&&Vt(Xe)),r!==i&&(Dt=e,r=$e()),(e=r)===i&&(e=Nt,t.substr(Nt,7)===Ke?(r=Ke,Nt+=7):(r=i,0===Wt&&Vt(Je)),r!==i&&(Dt=e,r=Qe()),(e=r)===i&&(e=Nt,t.substr(Nt,8)===et?(r=et,Nt+=8):(r=i,0===Wt&&Vt(tt)),r!==i&&(Dt=e,r=rt()),(e=r)===i&&(e=Nt,t.substr(Nt,8)===nt?(r=nt,Nt+=8):(r=i,0===Wt&&Vt(it)),r!==i&&(Dt=e,r=ot()),e=r))))))),e}function sr(){var e,r,n,o,a;if(e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt)),o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;if(n!==i&&(n=t.substring(r,Nt)),(r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i?(Dt=e,e=r=At(r,n)):(Nt=e,e=s)}else Nt=e,e=s;return e}function cr(){var e,r,n,o,a;if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;if(r!==i)if(46===t.charCodeAt(Nt)?(n=It,Nt++):(n=i,0===Wt&&Vt(Pt)),n!==i){if(o=[],Se.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ce)),a!==i)for(;a!==i;)o.push(a),Se.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ce));else o=s;o!==i?(Dt=e,e=r=kt(r,o)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;if(e===i){if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;r!==i&&(Dt=e,r=Bt(r)),e=r}return e}function lr(e){for(var t=[],r=1;r1&&e.constraints.push({view1:"_~"+e.lineIndex+":1~",attr1:e.horizontal?xr.a.WIDTH:xr.a.HEIGHT,relation:e.relation.relation||Sr.a.EQU,view2:r,attr2:e.horizontal?xr.a.WIDTH:xr.a.HEIGHT,priority:e.relation.priority}),e.equalSpacerIndex++,e.relation.view||e.relation.multiplier&&1!==e.relation.multiplier?(e.constraints.push({view1:r,attr1:e.horizontal?xr.a.WIDTH:xr.a.HEIGHT,relation:e.relation.relation||Sr.a.EQU,view2:e.relation.view,attr2:e.horizontal?xr.a.WIDTH:xr.a.HEIGHT,priority:e.relation.priority,multiplier:e.relation.multiplier}),e.relation.multiplier=void 0):e.relation.constant&&(e.constraints.push({view1:r,attr1:e.horizontal?xr.a.WIDTH:xr.a.HEIGHT,relation:Sr.a.EQU,view2:null,attr2:xr.a.CONST,priority:e.relation.priority,constant:e.relation.constant}),e.relation.constant=void 0);for(var n=0;n1?g[1]:""}else 0===l.indexOf("//"+h+":")&&(o[p]=l.substring(3+h.length))}if(o.viewport){var v=o.viewport,j=v["aspect-ratio"];j&&(j=j.split("/"),v["aspect-ratio"]=parseInt(j[0])/parseInt(j[1])),void 0!==v.height&&(v.height="intrinsic"===v.height||parseInt(v.height)),void 0!==v.width&&(v.width="intrinsic"===v.width||parseInt(v.width)),void 0!==v["max-height"]&&(v["max-height"]=parseInt(v["max-height"])),void 0!==v["max-width"]&&(v["max-width"]=parseInt(v["max-width"])),void 0!==v["min-height"]&&(v["min-height"]=parseInt(v["min-height"])),void 0!==v["min-width"]&&(v["min-width"]=parseInt(v["min-width"]))}if(o.widths)for(i in o.widths){var y="intrinsic"===o.widths[i]||parseInt(o.widths[i]);o.widths[i]=y,(void 0===y||isNaN(y))&&delete o.widths[i]}if(o.heights)for(i in o.heights){var w="intrinsic"===o.heights[i]||parseInt(o.heights[i]);o.heights[i]=w,(void 0===w||isNaN(w))&&delete o.heights[i]}if(o.spacing){var x=JSON.parse(o.spacing);if(o.spacing=x,Array.isArray(x)){for(var S=0,C=x.length;S=1&&o>d){var p=(c-s)*d,h=s-r.spanStart,b=r.spanEnd-c;if(0===h)n.push({id:l,spanStart:e,spanEnd:e+p});else if(0===b)n.push({id:l,spanStart:t-p,spanEnd:t});else{var f=(s-r.spanStart)/(r.spanEnd-c),g=(O=e+(i-p)/(f+1)*f)+p;n.push({id:l,spanStart:O,spanEnd:g})}}else if(o>=u){g=(O=(s-r.spanStart)*o+e)+(c-s)*o;n.push({id:l,spanStart:O,spanEnd:g})}else{var m=(c-s)*u;h=s-r.spanStart,b=r.spanEnd-c;if(0===h)n.push({id:l,spanStart:e,spanEnd:e+m});else if(0===b)n.push({id:l,spanStart:t-m,spanEnd:t});else{var O;f=(s-r.spanStart)/(r.spanEnd-c),g=(O=e+(i-m)/(f+1)*f)+m;n.push({id:l,spanStart:O,spanEnd:g})}}}))}return n},this.id="cell_"+e,this.members=t.slice(),this.leadingGapFixed=this.members[0].marginMode===Br.LeadingFixed,this.trailingGapFixed=this.members[0].marginMode===Br.TrailingFixed,this.rangeStart=Math.min.apply(Math,Object(A.map)(this.members,"rangeStart")),this.rangeEnd=Math.max.apply(Math,Object(A.map)(this.members,"rangeEnd")),this.spanStart=Math.min.apply(Math,Object(A.map)(this.members,"spanStart")),this.spanEnd=Math.max.apply(Math,Object(A.map)(this.members,"spanEnd")),this.minSpan=Math.max.apply(Math,Object(A.map)(this.members,(function(e){var t=e.spanStart;return(e.spanEnd-t)*e.minSpanRatio}))),this.minSpanRatio=this.span>0?this.minSpan/this.span:1,this.maxSpanRatio=this.calcMaxSpanRatio(),this.maxSpan=this.maxSpanRatio>=1?this.span*this.maxSpanRatio:null}return e.prototype.calcMaxSpanRatio=function(){if(Object(A.every)(this.members,(function(e){return e.maxSpanRatio>=1}))){var e=Object(A.map)(this.members,(function(e){return e.maxSpanRatio}));return Math.max.apply(Math,e)}return-1},Object.defineProperty(e.prototype,"span",{get:function(){return this.spanEnd-this.spanStart},enumerable:!0,configurable:!0}),e}(),zr=function(){function e(e,t){var r=this;this.cells=[],this.cell=function(e){if(e0&&(v.fixed=o.cell(d-1).trailingGapFixed||h),v.fixed||0===v.span?c.push(v):s.push(v),a.push("["+v.name+"]["+p.id+"]"),l=m,0===O?r.push("["+p.id+"(==0)]"):(1===b&&1===f||u.push({cell:p,id:p.id}),r.push("["+p.id+"(>="+Math.max(Ur(f*O),.1)+")]"),b>=1&&r.push("["+p.id+"(<="+Math.max(Ur(b*O),.1)+")]"),r.push("["+p.id+"("+Ur(O)+"@99)]"))}var j={name:"gap_"+e+"_"+o.size,span:t-l,fixed:o.cell(o.size-1).trailingGapFixed};j.fixed?c.push(j):s.push(j),a.push("["+j.name+"]|"),Object(A.each)(c,(function(e){r.push("["+e.name+"("+Ur(e.span)+")]")})),Object(A.each)(s,(function(e,t){t&&r.push("["+e.name+"(=="+s[0].name+".width*"+Ur(e.span/s[0].span)+")]"),r.push("["+e.name+"("+Ur(e.span)+"@100)]")})),u.sort((function(e,t){return e.cell.minSpanRatio*e.cell.span-t.cell.minSpanRatio*t.cell.span})),Object(A.each)(u,(function(e,t){var n=e.cell,i=e.id;t&&r.push("["+i+"(=="+u[0].id+".width*"+Ur(n.span/u[0].cell.span)+")]")})),r.push(a.join(""))},a=0;a-1){n=!0;break}}while(r.length);return!n},isUsingTable:function(t){return e.refTable===t.id}}}})),nn=T.i.optional(T.i.refinement("Matrix2d",T.i.array(T.i.number),(function(e){return 6===e.length})),[1,0,0,1,0,0]),on=T.i.optional(T.i.refinement("MarginMode",T.i.number,(function(e){return 0===e||1===e||2===e})),2),an=T.i.optional(T.i.refinement("MaxSpanRatio",T.i.number,(function(e){return e>=1||-1===e})),-1),sn=T.i.optional(T.i.refinement("MinSpanRatio",T.i.number,(function(e){return e>=0&&e<=1})),0),cn=T.i.optional(T.i.model("RotationAxis",{x:T.i.refinement(T.i.number,(function(e){return e>=0&&e<=1})),y:T.i.refinement(T.i.number,(function(e){return e>=0&&e<=1}))}),{x:.5,y:.5}),ln=function(e,t,r){Object(A.has)(t,r)&&!Object(A.has)(e,r)&&(e[r]=t[r])},un=new Set(["x","y","width","height","rotate"]),dn=T.i.model("Transformable",{id:T.i.identifier,name:pe,locked:T.i.optional(T.i.boolean,!1),apsectRatioFreezed:T.i.optional(T.i.literal(!1),!1),aspectRatioLocked:T.i.optional(T.i.boolean,!1),hMarginMode:on,vMarginMode:on,maxWidthRatio:an,minWidthRatio:sn,maxHeightRatio:an,minHeightRatio:sn,rotationAxis:cn,transMat:nn,builtinProps:T.i.optional(T.i.frozen(),{}),initProps:T.i.optional(T.i.frozen(),{}),ownerGroup:T.i.maybeNull(T.i.reference(T.i.late((function(){return jn})))),prev:T.i.maybeNull(T.i.reference(T.i.union(T.i.late((function(){return On})),T.i.late((function(){return jn}))))),next:T.i.maybeNull(T.i.reference(T.i.union(T.i.late((function(){return On})),T.i.late((function(){return jn}))))),bindings:T.i.optional(T.i.array(rn),[])}).preProcessSnapshot((function(e){var t=e.id||Object(Q.v4)(),r=e.builtinProps||{};return ln(r,e.initProps||{},"hidden"),ln(r,e.initProps||{},"vFlipped"),ln(r,e.initProps||{},"hFlipped"),ln(r,e.initProps||{},"background"),ln(r,e.initProps||{},"borderStyle"),ln(r,e.initProps||{},"borderWidth"),ln(r,e.initProps||{},"borderColor"),Object(a.__assign)(Object(a.__assign)({builtinProps:r},e),{id:t})})).extend((function(e){var t=_.observable.map({},{deep:!1}),r=_.observable.map({},{deep:!1}),n=_.observable.box(null,{deep:!1});return{views:{get ownerDashboard(){return Object(T.c)(e,2)},get propOverrideLevel(){return e.ownerDashboard.propOverrideLevel},get hasLayoutPropsBindings(){var t=e.bindings.reduce((function(e,t){return t.builtin&&e.add($r(t.toProp)),e}),new Set),r=e.bindings.reduce((function(e,t){return t.builtin||e.add($r(t.toProp)),e}),new Set);return Jr(t,un)||Jr(r,e.mbrRelatedProps)},get isAspectRatioLocked(){return e.aspectRatioLocked},get rootGroup(){for(var t=e.ownerGroup;t&&t.ownerGroup;)t=t.ownerGroup;return t},get builtinPropSchemas(){return Object(a.__assign)({x:h.m,y:h.m,width:h.A,height:h.A,rotate:h.m,hidden:Object(h.I)(!1),vFlipped:Object(h.I)(!1),hFlipped:Object(h.I)(!1)},e.additionalBuiltinPropSchemas)},get additionalBuiltinPropSchemas(){return{}},get propSchemas(){return{}},isBuiltinProp:function(t){return Object(A.has)(e.builtinPropSchemas,$r(t))},getBuiltinPropSchema:function(t){return e.builtinPropSchemas[$r(t)]},hasProp:function(t){return Object(A.has)(e.propSchemas,$r(t))},getPropSchema:function(t){return e.propSchemas[$r(t)]},resolveProps:function(e,t){return e},resolveMbrProps:function(e,t){return{width:e.width,height:e.height}},get mbrRelatedProps(){return new Set(Object(A.keys)(e.resolveMbrProps(new W.a(0,0,10,10),e.getPropsBagAt(Vr.DEFAULT))))},get builtinPropsBag(){return e.getBuiltinPropsBagAt(e.propOverrideLevel)},get propsBag(){return e.getPropsBagAt(e.propOverrideLevel)},get transform(){return e.getTransformAt(e.propOverrideLevel)},get globalTransMat(){return e.getGlobalTransMatAt(e.propOverrideLevel)},get globalInvertTransMat(){return e.getGlobalInvertTransMatAt(e.propOverrideLevel)},get rotateDeg(){return 0},get globalRotateDeg(){return Y(e.globalTransMat).rotateDeg+e.rotateDeg},get clientRotateDeg(){return Y(e.transform).rotateDeg},get mbr(){return e.getMbrAt(e.propOverrideLevel)},calcMbrAt:function(e,t){throw new Error("Unimplemented")},get clientMbr(){return e.getClientMbrAt(e.propOverrideLevel)},get clientRectifiedMbr(){return e.getClientRectifiedMbrAt(e.propOverrideLevel)},get globalMbr(){return e.getGlobalMbrAt(e.propOverrideLevel)},get globalRectifiedMbr(){return e.getGlobalRectifiedMbrAt(e.propOverrideLevel)},get globalMbrPosition(){return e.getGlobalMbrPositionAt(e.propOverrideLevel)},get globalCoordOrigin(){return e.getGlobalCoordOriginAt(e.propOverrideLevel)},getBuiltinPropsBagAt:function(r){var n=Object(A.mapValues)(e.builtinPropSchemas,"defaultValue"),i={x:e.getGlobalMbrPositionAt(r).x,y:e.getGlobalMbrPositionAt(r).y,width:e.getMbrAt(r).width,height:e.getMbrAt(r).height,rotate:e.getGlobalRotateDegAt(r)};switch(r){case Vr.DEFAULT:return Object(a.__assign)({propsBag:n},i);case Vr.INITED:return Object(A.each)(e.builtinProps,(function(e,t){n[t]=e})),Object(a.__assign)(Object(a.__assign)({},n),i);case Vr.RUNTIME:return Object(A.each)(e.builtinProps,(function(e,t){n[t]=e})),t.forEach((function(e,t){n[t]=e})),Object(a.__assign)(Object(a.__assign)({},n),i)}},getPropsBagAt:function(t){var n=Object(A.mapValues)(e.propSchemas,"defaultValue");switch(t){case Vr.DEFAULT:return n;case Vr.INITED:return Object(A.each)(e.initProps,(function(e,t){n[t]=e})),n;case Vr.RUNTIME:return Object(A.each)(e.initProps,(function(e,t){n[t]=e})),r.forEach((function(e,t){n[t]=e})),n}},getTransformAt:function(t){switch(t){case Vr.INITED:return e.transMat.slice();case Vr.RUNTIME:return n.get()?n.get().slice():e.transMat.slice();case Vr.DEFAULT:return U.a.create()}},getInvertTransformAt:function(t){return Z(e.getTransformAt(t))},getGlobalTransMatAt:function(t){for(var r=U.a.create(),n=e;n;)U.a.multiply(r,n.getTransformAt(t),r),n=n.ownerGroup;return r},getGlobalInvertTransMatAt:function(t){return Z(e.getGlobalTransMatAt(t))},getGlobalRotateDegAt:function(t){return Y(e.getGlobalTransMatAt(t)).rotateDeg+e.rotateDeg},getClientRotateDegAt:function(t){return Y(e.getTransformAt(t)).rotateDeg},getMbrAt:function(t){return e.calcMbrAt(e.getPropsBagAt(t),t)},getClientMbrAt:function(t){return V(e.getMbrAt(t),e.getTransformAt(t))},getGlobalMbrAt:function(t){return V(e.mbr,e.getGlobalTransMatAt(t))},getClientRectifiedMbrAt:function(t){var r=e.getMbrAt(t),n=e.getClientRotateDegAt(t),i=H(r.center,e.getTransformAt(t));if(450&&(r.has(o)?n.push(i):r.add(o))}if(t){var a=Object(A.cloneDeep)(e);return a.pipelines=[],a.dataTables.forEach((function(e){if(e.ver=2,e.sourcer=e.pipeline[0],e.pipeline.length>1){var t=Object(Q.v4)();e.pipelineId=t;for(var r={id:t,name:e.name+"\u5904\u7406\u6d41\u7a0b",transformers:[]},n=1;n=0&&Number.isInteger(t)))throw new Error("non-negative int number is expected, got: "+t);if(!("number"==typeof r&&r>0&&Number.isInteger(r)))throw new Error("positive int number is expected, got: "+r);if(!(Object(A.isArray)(n)&&n.length>0))throw new Error("column settings array is expected, got: "+n);return!0},e.prototype.subscribe=function(e){var t=g.a.generate();return this.listeners.set(t,e),t},e.prototype.unsubscribe=function(e){this.listeners.has(e)&&this.listeners.delete(e)},e.prototype.clearAll=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.stop()];case 1:return e.sent(),this.listeners.clear(),[2]}}))}))},Object.defineProperty(e.prototype,"idOfListeners",{get:function(){return this.listeners.keys()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfListeners",{get:function(){return this.listeners.size},enumerable:!0,configurable:!0}),e.prototype.registerToTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,E({callerId:this.id,type:o.RegisterSimulationGenerator,payload:{id:this.id,config:{batchSize:this.batchSize,rules:this.rulesToWorkerRules(this.columnSettings)}}})];case 1:if(!(e=t.sent())||!e.payload||!e.payload.id||e.payload.id!==this.id)throw new Error("error when RegisterSimulationGenerator in dashboardTaskExecutor");return[2]}}))}))},e.prototype.execInTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,r=this;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return[4,E({callerId:this.id,type:o.ExecuteSimulationGenerator,payload:{id:this.id}})];case 1:if(!(e=n.sent())||!e.payload||!e.payload.tableData||e.payload.id!==this.id)throw new Error("error when ExecuteSimulationGenerator in dashboardTaskExecutor");return t=e.payload.tableData,this.listeners.forEach((function(e){return e(t)})),this.interval>0&&(this.timer=window.setTimeout((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.execInTaskExecutor(),[2]}))}))}),1e3*this.interval)),[2]}}))}))},e.prototype.unregisterFromTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,E({callerId:this.id,type:o.UnregisterSimulationGenerator,payload:{id:this.id}})];case 1:if(!(e=t.sent())||!e.payload||!e.payload.id||e.payload.id!==this.id)throw new Error("error when UNRegisterSimulationGenerator in dashboardTaskExecutor");return[2]}}))}))},e.prototype.start=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.registerToTaskExecutor()];case 1:return e.sent(),[4,this.execInTaskExecutor()];case 2:return e.sent(),[2]}}))}))},e.prototype.stop=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return window.clearTimeout(this.timer),[4,this.unregisterFromTaskExecutor()];case 1:return e.sent(),[2]}}))}))},e.prototype.update=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,r,n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.stop()];case 1:return i.sent(),t=e.interval,r=e.batchSize,n=e.columnSettings,this.preconditionGuard(e),this.interval=t,this.batchSize=r,this.columnSettings=n,[2]}}))}))},e.prototype.pause=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return window.clearTimeout(this.timer),[2]}))}))},e.prototype.resume=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.execInTaskExecutor(),[2]}))}))},e.prototype.destroy=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.clearAll()];case 1:return e.sent(),[2]}}))}))},e}(),_n=function(){function e(e){var t=this;this.table=e,this.sourcer=e.sourcer,this.simulationGenerator=new An(this.sourcerToPlainConfig()),this.simulationGenerator.subscribe((function(e){t.table.feedTableData({headers:t.sourcer.getSchema(),data:e})})),this.simulationGenerator.start(),this.feedDisposer=Object(_.autorun)((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.sourcer.isAppend,[4,this.simulationGenerator.update(this.sourcerToPlainConfig())];case 1:return e.sent(),[4,this.simulationGenerator.start()];case 2:return e.sent(),[2]}}))}))}));var r=!0;this.pauseDisposer=Object(_.autorun)((function(){var e=t.sourcer.isPaused;r?r=!1:e?t.simulationGenerator.pause():t.simulationGenerator.resume()}))}return e.prototype.sourcerToPlainConfig=function(){var e=this.sourcer,t=e.interval,r=e.batchSize,n=e.columnSettings;return{interval:t,batchSize:r,columnSettings:Object(_.isObservable)(n)?Object(_.toJS)(n):n.map((function(e){return Object(_.toJS)(e)}))}},e.prototype.destroy=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.feedDisposer(),this.feedDisposer=null,this.pauseDisposer(),this.pauseDisposer=null,[4,this.simulationGenerator.destroy()];case 1:return e.sent(),this.simulationGenerator=null,[2]}}))}))},e}(),Tn=function(){function e(e){var t=this;this.table=e,this.feedDisposer=Object(_.autorun)((function(){t.table.feedTableData(t.table.sourcer.tableData)}),{delay:1})}return e.prototype.destroy=function(){this.feedDisposer()},e}(),Rn=function(e,t){switch(e.sourcer.type){case"tsdblivequery":return new z(e,t).init();case"dmsub":return new I(e,t).init();case"staticcsv":case"staticjson":return new P(e);case"simulation":return new _n(e);case"board":return new Tn(e)}},In=/^\/[0-9]+$/,Pn=function(e,t){var r=this;this.dataTableFeeders=new Map,this.pipelineChangeDisposers=new Map,this.buildDataTableFeederInner=function(e){r.dataTableFeeders.set(e.id,Rn(e,r.serviceConnMgr))},this.buildDataTablePipelineInner=function(e){return Object(a.__awaiter)(r,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,E({callerId:e.id,type:o.RegisterPipeline,payload:{id:e.id,pipeline:Object(A.map)(e.transformers,(function(e){return Object(T.d)(e)}))}})];case 1:return r.sent(),t=Object(_.reaction)((function(){return Object(A.map)(e.transformers,(function(e){return Object(T.d)(e)}))}),(function(t){E({callerId:e.id,type:o.UpdatePipeline,payload:{id:e.id,pipeline:t}})}),{name:"ReactToPipelineChange"}),this.pipelineChangeDisposers.set(e.id,t),[2]}}))}))},this.buildDataTableFeedersAndPipelines=function(){var e=[];r.dashboard.dataTables.forEach((function(t){"dmsub"!==t.sourcer.type?(r.buildDataTableFeederInner(t),r.buildDataTablePipelineInner(t)):e.push(t)}));var t,n=0,i=function(){for(t=0;t<5&&n\\]/i,Vn=Object(h.H)("",{semChecker:function(e){return!e||Un.test(e.trim())&&!Hn.test(e)}}),Gn=Object(h.k)(["line","shadow","cross"]),Yn=Object(h.k)(["","default","k","M","G","T","P","E","none","qian","wan","yi","wanyi"]),Zn=Object(h.k)(["horizontal","vertical"]),qn=Object(h.w)({seriesOpt:Object(h.e)(Object(h.d)([Object(h.w)({xCol:h.B,yCol:h.B,seriesName:Vn}),Object(h.w)({type:Object(h.g)("grid"),xCol:h.B,yCol:h.B,seriesName:Vn})])),dataTable:h.J},{semChecker:function(e){return function(e,t){return e.every((function(e){return function(e,t){return e.xCol",{regexp:"/^(?![sS])|image://?/i"}),Jn=Object(h.k)(["circle","rect","roundRect","triangle","diamond","pin","arrow"]),Qn=Object(h.k)(["line","bar","pie","scatter","map","gauge","lineBar","radar","bubble"]),ei=Object(h.H)("0",{regexp:/(^(\-|\+)?\d+(\.\d+)?$)/i.toString()}),ti=Object(h.k)(["auto","dataMin","dataMax"]),ri=Object(h.C)(0),ni=Object(h.d)([ri,ti,ei]),ii=Object(h.c)({},(function(e){return Object.keys(e).every((function(t){return"boolean"==typeof e[t]}))})),oi=Object(h.d)([ii,Object(h.e)(Object(h.H)(""))]),ai={propsSchema:{color:Xn(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(h.B)(60),paddingLeft:Object(h.B)(60),paddingRight:Object(h.B)(60),paddingTop:Object(h.B)(60),showTooltip:Object(h.I)(!0),tooltipConfine:Object(h.I)(!0),tooltipPadding:Object(h.B)(0),tooltipBorder:Object(h.y)("none"),tooltipBorderRadius:Object(h.B)(0),tooltipBackgroundColor:Object(h.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(h.j)("#333"),tooltipContentColor:Object(h.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(h.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:$n("axis"),tooltipAxisColor:Object(h.j)("#108CEE"),showDataZoomX:Object(h.I)(!0),showDataShadow:Object(h.I)(!1),dataZoomHeight:Object(h.E)(8),dataZoomBottom:Object(h.B)(20),dataZoomBorderColor:Object(h.j)("transparent"),dataZoomTextColor:Object(h.j)("transparent"),dataZoomBgColor:Object(h.j)("#EAF6FE"),dataZoomFillerColor:Object(h.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Kn("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),showLegend:Object(h.I)(!0),legendOrient:Zn("horizontal"),legendHorizontalAlign:Object(h.t)("right"),legendVerticalAlign:Object(h.N)("top"),legendPaddingBottom:Object(h.B)(0),legendPaddingLeft:Object(h.B)(20),legendPaddingRight:Object(h.B)(20),legendPaddingTop:Object(h.B)(20),legendFontStyle:Object(h.p)("normal"),legendFontWeight:Object(h.q)("normal"),legendFontFamily:Object(h.n)("sans-serif"),legendFontSize:Object(h.o)(12),legendItemWidth:Object(h.A)(12),legendItemHeight:Object(h.A)(12),legendSelected:oi([]),lockLegendAspectRatio:Object(h.I)(!0),legendItemGap:Object(h.B)(20),showXAxis:Object(h.I)(!0),showYAxis:Object(h.I)(!0),showXAxisLabel:Object(h.I)(!0),showYAxisLabel:Object(h.I)(!0),showSplitLineX:Object(h.I)(!0),showSplitLineY:Object(h.I)(!0),showXAxisTick:Object(h.I)(!0),showYAxisTick:Object(h.I)(!0),showXAxisLine:Object(h.I)(!0),showYAxisLine:Object(h.I)(!0),splitLineColor:Object(h.j)("rgba(203, 211, 224, 0.6)"),axisLineColor:Object(h.j)("#CBD3E0"),xAxisTextColor:Object(h.j)("#333"),xAxisFontStyle:Object(h.p)("normal"),xAxisFontWeight:Object(h.q)("normal"),xAxisFontFamily:Object(h.n)("sans-serif"),xAxisFontSize:Object(h.o)(12),yAxisTextColor:Object(h.j)("#333"),yAxisFontStyle:Object(h.p)("normal"),yAxisFontWeight:Object(h.q)("normal"),yAxisFontFamily:Object(h.n)("sans-serif"),yAxisFontSize:Object(h.o)(12),axisUnit:Yn(""),axisPointerType:Gn("shadow"),axisPointerShadowColor:Object(h.j)("rgba(16, 140, 238, 0.1)"),legendIcon:Jn("rect"),stackEnable:Object(h.I)(!1),showBarLabel:Object(h.I)(!1),seriesType:Qn("bar"),seriesMap:qn({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),customizedSeries:Object(h.e)(Object(h.w)({seriesName:Vn,color:h.r,type:Object(h.g)("bar"),barWidth:h.E},{defVal:{seriesName:"",color:"#108cee",type:"bar",barWidth:16}})),barWidth:Object(h.E)(16),width:Object(h.A)(300),height:Object(h.A)(200),dumb:Object(h.I)(!1),min:ni("auto"),max:ni("auto")},eventsSchema:{currentLegendSelected:oi}},si={bindingSheet:[{type:"CollapsableGroup",headerTextKey:"\u56fe\u8868\u7ed1\u5b9a",items:[{type:"Row",labelKey:"\u5e8f\u5217",path:"/seriesMap",binder:{type:"dataseries",seriesCfg:[{key:"xCol",labelKey:"X\u8f74"},{key:"yCol",labelKey:"Y\u8f74",multiple:!0}],wrapUpCode:"\n ({\n dataTable: tableData,\n seriesOpt: series.yCol.map(function(y, i) {\n var seriesName = (0 <= i && i < tableData.headers.length) ? tableData.headers[i].name : undefined;\n var opt = {yCol: y, seriesName: seriesName};\n Object.keys(series).forEach(function (key) {\n if (key === 'yCol') {\n return;\n }\n opt[key] = series[key];\n });\n return opt;\n })\n });\n "}}]}],propsSheet:[{type:"CollapsableGroup",headerTextKey:"",items:[{type:"Row",labelKey:"\u540d\u79f0",items:[{path:"/name",type:"textInput"}]},{type:"Row",items:[{path:"/x",type:"numberInput",cfg:{precision:1,unit:"px",label:"X"}},{path:"/y",type:"numberInput",cfg:{precision:1,unit:"px",label:"Y"}}]},{type:"Row",items:[{path:"/width",type:"numberInput",cfg:{min:0,precision:1,unit:"px",label:"\u5bbd"}},{path:"/aspectRatioLock",type:"lockBtn"},{path:"/height",type:"numberInput",cfg:{min:0,precision:1,unit:"px",label:"\u9ad8"}}]},{type:"Row",labelKey:"\u65cb\u8f6c\u8f74",items:[{path:"/rotateAxis",type:"select",desiredWidth:65,cfg:{options:[{value:"tl",label:"\u5de6\u4e0a"},{value:"tm",label:"\u4e0a\u4e2d"},{value:"tr",label:"\u53f3\u4e0a"},{value:"c",label:"\u6b63\u4e2d"},{value:"rm",label:"\u53f3\u4e2d"},{value:"br",label:"\u53f3\u4e0b"},{value:"bm",label:"\u4e0b\u4e2d"},{value:"bl",label:"\u5de6\u4e0b"},{value:"lm",label:"\u5de6\u4e2d"}]}},{path:"/rotate",type:"numberInput",desiredWidth:98,cfg:{min:0,precision:1,unit:"\xb0",label:"\u89d2\u5ea6"}}]},{type:"Row",labelKey:"",items:[{path:"/hidden",type:"hiddenBtn"},{path:"/locked",type:"lockedBtn"}]}]}],themedProps:{color:10,tooltipBackgroundColor:{key:"lightaccent",opacity:.9},tooltipTitleColor:"darkshades",tooltipContentColor:{key:"darkshades",opacity:.9},xAxisTextColor:"darkshades",yAxisTextColor:"darkshades",splitLineColor:{key:"lightaccent",opacity:.6},axisLineColor:"darkaccent",dataZoomBgColor:"lightaccent",dataZoomFillerColor:{key:"primary",opacity:.5},axisPointerShadowColor:{key:"primary",opacity:.1}}},ci={static:"//gz.bcebos.com/v1/iotviz/widget-depot/bar-chart-widget/1.1/staticRenderer.js"},li={id:"bar-chart",version:"1.1",creatorId:"developer",nameKey:"\u67f1\u56fe\u56fe",categoryId:"chart",sectionId:"bar",iconUrl:"barbar.png"},ui=function(e,t){return e\\]/i)))}}),latCol:h.x,lngCol:h.z,groupByCols:Object(h.e)(h.B),displayCols:Object(h.e)(h.B),vizType:Object(h.k)(["track","marker",null]),tableData:h.J},{semChecker:function(e){var t=e.latCol,r=e.lngCol,n=e.groupByCols,i=e.tableData,o=i.headers,a=i.headers.length;return a>0&&ui(t,a)&&ui(r,a)&&o[t].type===h.a.Number&&o[r].type===h.a.Number&&(n||[]).every((function(e){return ui(e,a)}))||0===a}}),pi=Object(h.w)({lat:Object(h.C)(0,{max:90,min:-90}),lng:Object(h.C)(0,{max:180,min:-180})}),hi={propsSchema:{ak:Object(h.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),autoCenter:Object(h.I)(!0),center:pi({lng:121.476336,lat:31.236375}),dumb:Object(h.I)(!1),height:Object(h.A)(400),mapStyle:Object(h.K)("normal"),series:di({name:"\u8f66\u8f86",latCol:1,lngCol:2,groupByCols:[],displayCols:[1,2],vizType:"marker",tableData:{headers:[{name:"timestamp",type:"date"},{name:"latitude",type:"number"},{name:"longitude",type:"number"}],data:[[1522937078e3,31.240996978719,121.57874440327],[1522937078e3,31.271645130971,121.48660161389],[1522937078e3,31.166585790601,121.405366589],[1522937077e3,31.166516344183,121.40539650257],[1522937076e3,31.166516344183,121.40539650257],[1522937075e3,31.24078618039,121.57882471179],[152293678e4,31.181443360772,121.49435758367]]}}),showCityPicker:Object(h.I)(!1),width:Object(h.A)(500),zoom:Object(h.E)(13),name:Object(h.K)("\u8bbe\u5907\u5730\u56fe"),vizType:Object(h.k)(["track","marker",null],"marker")},eventsSchema:{currentZoom:h.E,currentCenter:pi,currentClicked:Object(h.c)({})}},bi={bindingSheet:[{type:"CollapsableGroup",headerTextKey:"\u5c5e\u6027\u7ed1\u5b9a",items:[{type:"Row",labelKey:"\u6570\u636e",path:"/series",binder:{type:"dataseries",seriesCfg:[{key:"latCol",labelKey:"\u7eac\u5ea6"},{key:"lngCol",labelKey:"\u7ecf\u5ea6"},{key:"groupByCols",labelKey:"\u5206\u7ec4",multiple:!0,optional:!0},{key:"displayCols",labelKey:"\u4fe1\u606f",multiple:!0,optional:!0}],wrapUpCode:"\n {\n name: '',\n vizType: null,\n tableData: tableData,\n latCol: series.latCol,\n lngCol: series.lngCol,\n groupByCols: series.groupByCols,\n displayCols: series.displayCols\n };\n "}}]}],propSheet:[{type:"CollapsableGroup",headerTextKey:"\u663e\u793a",items:[{type:"Row",labelKey:"\u7f29\u653e",items:[{path:"/zoom",type:"numberInput",cfg:{min:1,max:20}}]},{type:"Row",labelKey:"\u57ce\u5e02\u5217\u8868",items:[{path:"/showCityPicker",type:"switch"}]},{type:"Row",labelKey:"\u81ea\u52a8\u5c45\u4e2d",items:[{path:"/autoCenter",type:"switch"}]},{type:"Row",labelKey:"\u6807\u9898",items:[{path:"/name",type:"textInput"}]},{type:"Row",labelKey:"\u7c7b\u578b",items:[{path:"/vizType",type:"select",cfg:{options:[{value:"marker",label:"\u4f4d\u6807"},{value:"track",label:"\u8f68\u8ff9"}]}}]}]}],themedProps:function(e){switch(e.name){case"dark":return{mapStyle:"dark"};case"fluo":return{mapStyle:"bluenight"};case"light":default:return{mapStyle:"normal"}}}},fi={static:"//gz.bcebos.com/v1/iotviz/widget-depot/basic-map-widget/1.0/staticRenderer.js"},gi={id:"basic-map",version:"1.0",creatorId:"developer",nameKey:"\u8857\u56fe\u56fe",categoryId:"map",sectionId:"map",iconUrl:"mapmap.png"},mi=[n,i];function Oi(e,t){return mi.find((function(r){var n=r.index;return n.id===e&&n.version===t}))}var vi=function(e,t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){return[2,(r=Oi(e,t))?r.schema:null]}))}))},ji=function(e,t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){return[2,(r=Oi(e,t))?r.designerMeta:null]}))}))},yi=function(e,t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){return[2,(r=Oi(e,t))?r.implementations:null]}))}))},wi=r(355),xi=r.n(wi);function Si(e){var t=Object(s.useState)(Object(Q.v4)())[0],r=Object(s.useState)(null),n=r[0],i=r[1],o=Object(s.useCallback)((function(){var r=function(e,t){var r=function(){var e={};function t(t,r){if(e[t]){var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}return{on:function(r,n){return e[r]||(e[r]=[]),-1===e[r].indexOf(n)&&e[r].push(n),function(){return t(r,n)}},off:t,offType:function(t){e[t]=[]},fire:function(t){for(var r=[],n=1;n=c/o)switch(a){case"fill":n({width:"100%",height:"100%"});break;case"cover":n({width:"auto",height:"100%"});break;case"contain":n({width:"100%",height:"auto"})}else switch(a){case"fill":n({width:"100%",height:"100%"});break;case"cover":n({width:"100%",height:"auto"});break;case"contain":n({width:"auto",height:"100%"})}};var f;switch(i.state){case Ii.DASHBOARD_READY_TO_RENDER:var g=function(){if("responsive"===i.dashboardFillMode)return{width:"100%",height:"100%"};var e=i.scale,t=e.scaleX,r=e.scaleY,n=i.dashboardModel;return{width:n.getCanvasSetting("width")*t+"px",height:n.getCanvasSetting("height")*r+"px"}}(),m=g.width,O=g.height;return c.a.createElement(d.a,{style:{position:"relative",width:"100%",height:"100%",overflow:"auto"}},c.a.createElement(d.b,{onResize:function(e,t){i.onContainerSized(e,t)}},c.a.createElement("div",{style:{position:"relative",width:""+m,height:""+O}},function(){var e=i.dashboardUI,t=i.dashboardModel,n=i.scale,s=n.scaleX,l=n.scaleY,u=t.getCanvasSetting("width"),d=t.getCanvasSetting("height"),b=t.getCanvasSetting("backgroundColor"),f=t.getCanvasSetting("backgroundImage"),g=/\.svg/i.test(f);return c.a.createElement("div",{style:{position:"relative",width:u+"px",height:d+"px",background:Object(h.F)(b),overflow:"hidden",transformOrigin:"0 0",transform:"scale("+s+", "+l+")"}},!!f&&!g&&c.a.createElement("img",{id:"canvasBackgroundImage",src:p.AssetUtils.toUserUploadedImageUrl(f),style:Object(a.__assign)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},r),ref:o}),e)}(),!i.enableCustomizeLogo&&c.a.createElement(b,{containerWidth:i.containerWidth,containerHeight:i.containerHeight}))));case Ii.UNAUTHENTICATED:return c.a.createElement(Di,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:"Unauthenticated. Please check your token."});case Ii.FATAL_ERROR:return c.a.createElement(Di,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:"Fatal Error: "+(f=i.errors,f.length&&f[0].message||"Unknown Error")+"."});default:return c.a.createElement(Di,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:Li(i,"Loading Dashboard ...")})}}));function Li(e,t){return e.enableCustomizeLogo&&e.loadingMsg||t}var Fi=r(152),zi=r(545);var Wi,Ui,Hi,Vi=!1,Gi=(zi.create({tag:"iotviz-player",url:p.AppConfig.playerURL,dimensions:{width:"100%",height:"100%"},domain:/.*/,defaultLogLevel:"debug",prerenderTemplate:function(e){var t=e.document.createElement("html"),r=Fi.renderToStaticMarkup(s.createElement(Di,{enableCustomizeLoading:Vi,imageURL:Wi,message:Vi&&Ui||"Loading Player ..."}));return t.innerHTML=''+r,t},containerTemplate:function(e){var t=e.id,r=e.tag,n=e.context,i=e.CLASS,o=e.outlet,a=e.jsxDom,s=e.dimensions,c=s.width,l=s.height;return a("div",{id:t,class:i.ZOID+" "+i.ZOID+"-tag-"+r+" "+i.ZOID+"-context-"+n},a("style",null,"\n #"+t+", #"+t+" > ."+i.OUTLET+" {\n width: "+c+";\n height: "+l+";\n }\n #"+t+" > ."+i.OUTLET+" {\n display: block;\n position: relative;\n }\n #"+t+" > ."+i.OUTLET+" > iframe {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n #"+t+" > ."+i.OUTLET+" > iframe."+i.VISIBLE+" {\n opacity: 1;\n }\n #"+t+" > ."+i.OUTLET+" > iframe."+i.INVISIBLE+" {\n opacity: 0;\n }\n "),o)},attributes:{iframe:{title:"",src:(Hi=navigator&&navigator.userAgent||"",/(iPhone|iPad|iPod|iOS)/i.test(Hi)&&/(MicroMessenger)/i.test(Hi)?"/_.foolwechat":"")}},props:{uid:{type:"string",def:function(){return p.AppConfig.buildId},queryParam:!1},isOffline:{type:"boolean",required:!1,default:function(){return!1}},dashboardId:{type:"string",required:!0},dashboardName:{type:"string",required:!1},dashboardSpec:{type:"string",required:!1},dashboardSign:{type:"string",required:!1},loadingDraft:{type:"boolean",required:!0},token:{type:"object",required:!0},fillMode:{type:"string",required:!0},enableCustomizeLogo:{type:"boolean",required:!1},loadingImg:{type:"string",required:!1},loadingMsg:{type:"string",required:!1},onload:{type:"function",required:!0},getDashboardConfigRealAPI:{type:"function",required:!0},updateDataTablesConfigsRealAPI:{type:"function",required:!0},getWidgetPropRealAPI:{type:"function",required:!0},setWidgetsPropsRealAPI:{type:"function",required:!0},onWidgetEventRealAPI:{type:"function",required:!0},unWidgetEventRealAPI:{type:"function",required:!0},onWidgetDOMEventRealAPI:{type:"function",required:!0},pauseDataTableSourcerRealAPI:{type:"function",required:!0},resumeDataTableSourcerRealAPI:{type:"function",required:!0},isDataTableSourcerPausedRealAPI:{type:"function",required:!0}}}),window.xprops),Yi=Gi.dashboardId,Zi=Gi.dashboardName,qi=Gi.dashboardSpec,Xi=Gi.isOffline,$i=Gi.token,Ki=Gi.loadingDraft,Ji=Gi.fillMode,Qi=Gi.enableCustomizeLogo,eo=Gi.loadingImg,to=Gi.loadingMsg,ro=Gi.onload,no=Gi.getDashboardConfigRealAPI,io=Gi.updateDataTablesConfigsRealAPI,oo=Gi.onWidgetDOMEventRealAPI,ao=Gi.getWidgetPropRealAPI,so=Gi.setWidgetsPropsRealAPI,co=Gi.onWidgetEventRealAPI,lo=Gi.unWidgetEventRealAPI,uo=Gi.pauseDataTableSourcerRealAPI,po=Gi.resumeDataTableSourcerRealAPI,ho=Gi.isDataTableSourcerPausedRealAPI,bo=new Bi({dashboardId:Yi,dashboardName:Zi,dashboardSpec:qi,isOffline:Xi,token:$i,loadingDraft:Ki,enableCustomizeLogo:Qi,loadingImg:eo,loadingMsg:to,onload:function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,no((function(){return bo.dashboardConfig}))];case 1:return e.sent(),[4,io(bo.updateDataTablesConfigs)];case 2:return e.sent(),[4,ao(bo.getWidgetProp)];case 3:return e.sent(),[4,so(bo.setWidgetsProps)];case 4:return e.sent(),[4,co(bo.onWidgetEvent)];case 5:return e.sent(),[4,lo(bo.unWidgetEvent)];case 6:return e.sent(),[4,oo(bo.onWidgetDOMEvent)];case 7:return e.sent(),[4,uo(bo.pauseDataTableSourcer)];case 8:return e.sent(),[4,po(bo.resumeDataTableSourcer)];case 9:return e.sent(),[4,ho(bo.isDataTableSourcerPaused)];case 10:return e.sent(),[4,ro()];case 11:return e.sent(),[2]}}))}))},fillMode:Ji});l.render(s.createElement((function(e){var t=e.store;return Object(s.useEffect)((function(){return t.init(),function(){return t.destroy()}}),[]),c.a.createElement(u.b,{playerStore:t},c.a.createElement(Mi,null))}),{store:bo}),document.getElementById("playerroot"))},13:function(e,t,r){"use strict";var n,i=r(3),o=r(2);!function(e){e[e.HTML=0]="HTML",e[e.SVG=1]="SVG"}(n||(n={}));var a=function(e){function t(r,n){var i=this,o=i=e.call(this)||this;return i.push(r),i.push(n),Object.setPrototypeOf(o,i.constructor.prototype),i.x=r,i.y=n,i.flip=function(){return new t(-r,-n)},i}return Object(i.__extends)(t,e),t.fromPoint=function(e){return new t(e.x,e.y)},t.Origin=new t(0,0),t}(Array),s=function(e,t,r,n){var i=this;this.pointIn=function(e){var t=e.x,r=e.y;return i.left<=t&&t<=i.right&&i.top<=r&&r<=i.bottom},this.axisPoint=function(e){return new a(i.x+i.width*e.x,i.y+i.height*e.y)},this.equals=function(e){return!!e&&(i===e||!!(Object(o.has)(e,"x")&&Object(o.has)(e,"y")&&Object(o.has)(e,"width")&&Object(o.has)(e,"height"))&&i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height)},this.toString=function(){return"(x:"+i.x+",y:"+i.y+",width:"+i.width+",height:"+i.height+")"},this.tl=new a(e,t),this.tr=new a(e+r,t),this.bl=new a(e,t+n),this.br=new a(e+r,t+n),this.center=new a(e+r/2,t+n/2),this.x=e,this.y=t,this.width=r,this.height=n,this.top=t,this.bottom=t+n,this.left=e,this.right=e+r};r.d(t,"c",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return s}))},1300:function(e,t,r){"use strict";r.r(t);var n,i=r(0),o=r(5),a=r(2),s=function(e,t){return e0&&s(t,l)&&s(r,l)&&c[t].type===i.a.Number&&c[r].type===i.a.Number&&Object(a.every)(n,(function(e){return s(e,l)}))||0===l}}),l=r(3),u=r(37),d=r(33),p=r(1);!function(e){e.Track="track",e.Marker="marker"}(n||(n={}));var h=function(e,t,r){var n=function(e){return'\n\n '+Object(a.map)(e,(function(e){return"\n\n \n \n"})).join("\n")+"\n
"+e.name+':'+e.value+"
\n"}(function(e,t){return Object(a.map)(t.series.displays,(function(t){return{name:t,value:e.raw[t]}}))}(t,r)),i={width:0,height:0,title:'
'+e+"
"};return new BMap.InfoWindow(n,i)};function b(e,t,r){var n=e.values.map((function(e){var t=e.lat,r=e.lng;return new BMap.Point(r,t)})),i=new BMap.Polyline(n,{strokeColor:r});return i.addEventListener("click",(function(r){var o=function(e,t){var r=e.lat,n=e.lng,i=Number.MAX_VALUE;return t.reduce((function(e,t,o){var a=Math.pow(t.lat-r,2)+Math.pow(t.lng-n,2);return a32503564800?Math.floor(e/1e3):e}var m=function(e){return function(t){if(t){if(Object(b.isArray)(t))return Object(b.map)(t,m(e));if(Object(b.isObject)(t)){var r=Object(b.toPairs)(t).map((function(t){var r=t[0],n=t[1];return[e(r),m(e)(n)]}));return Object(b.fromPairs)(r)}return t}return t}},O=m(b.camelCase),v=m(b.snakeCase),j=r(350),y=r.n(j);function w(e,t){var r=function e(t,r,n,i,o){if(void 0===i&&(i=0),void 0===o&&(o=r.length-1),o-i>1){var a=Math.floor((o-i)/2)+i,s=n(t,r[a]);return 0===s?a:s>0?e(t,r,n,a,o):e(t,r,n,i,a)}return n(t,r[i])<=0?i:n(t,r[o])>=0?o:[i,o]}(e,t,(function(e,t){return e.loc_time-t.loc_time}));if(Object(b.isArray)(r)){var n=r[0],i=r[1],o=Math.abs(e.loc_time-t[n].loc_time);return Math.abs(e.loc_time-t[i].loc_time)>o?n:i}return r}function x(e,t,r){if(!t||!t.length)return[];if(!e||!e.length)return[{points:t}];var n=Object(b.map)(e,(function(e){var n=e.speeding_points,i=n[0],o=n[1];return{points:t.slice(w(i,t),w(o,t)),showSpeed:!1,showDirection:!1,lineColor:r}}));return Object(u.__spreadArrays)([{points:t}],n)}var S=function(e){function t(t){var r=e.call(this,t)||this;return r.needRefresh=function(e){var t=r.props,n=t.vehicleId,i=t.startTime,o=t.endTime;return n!==e.vehicleId||i!==e.startTime||o!==e.endTime},r.needRefreshProcess=function(e){var t=r.props,n=t.needProcess,i=t.needDenoise,o=t.needVacuate,a=t.needMapMatch,s=t.radiusThreshold,c=t.transportMode,l=t.points;return r.needRefresh(e)||n!==e.needProcess&&e.needProcess||i!==e.needDenoise||o!==e.needVacuate||a!==e.needMapMatch||s!==e.radiusThreshold||c!==e.transportMode||l!==e.points},r.needRefreshDrivingBehavior=function(e){var t=r.props,n=(t.needProcess,t.needMapMatch),i=t.transportMode,o=t.needDrivingBehavior,a=t.showSpeeding,s=t.speedingThreshold,c=t.showHarshAcceleration,l=t.harshAccelerationThreshold,u=t.showHarshBreaking,d=t.harshBreakingThreshold,p=t.showHarshSteering,h=t.harshSteeringThreshold,b=t.drivingBehavior;return r.needRefresh(e)||o!==e.needDrivingBehavior||a!==e.showSpeeding||c!==e.showHarshAcceleration||u!==e.showHarshBreaking||p!==e.showHarshSteering||s!==e.speedingThreshold||l!==e.harshAccelerationThreshold||d!==e.harshBreakingThreshold||h!==e.harshSteeringThreshold||n!==e.needMapMatch||i!==e.transportMode||b!==e.drivingBehavior},r.request=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t;return Object(u.__generator)(this,(function(r){switch(r.label){case 0:return e=O(e),[4,this.serviceConnMgr.sendRequest("telematics",e)];case 1:return t=r.sent(),[2,v(t)]}}))}))},r.loadPoints=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o,a,s,c,l,d,p;return Object(u.__generator)(this,(function(h){switch(h.label){case 0:return t=e.vehicleId,r=e.startTime,n=e.endTime,i=e.needProcess,o=e.needDenoise,a=e.needVacuate,s=e.needMapMatch,c=e.radiusThreshold,l=e.transportMode,e.loadstart,e.loadend,(d=e.points)?(d.length?this.setState({points:d,speedingTracks:x([],d,e.speedingColor)}):this.setState({points:[],speedingTracks:[]}),[2]):r&&n&&t?(this.setState({selected:-1}),[4,this.request((b={vehicle_id:t,start_time:r,end_time:n,process_option:i?{need_denoise:o,need_vacuate:a,need_mapmatch:s,radius_threshold:c,transport_mode:l}:void 0},m=b.start_time,O=b.end_time,v=b.process_option,Object(u.__assign)(Object(u.__assign)({type:"gettrack"},b),{start_time:g(m),end_time:g(O),is_processed:v?1:0,process_option:f(v)})))]):[3,2];case 1:if(p=h.sent().points,this.props.points&&this.props.points.length)return[2];this.setState({speedingTracks:x(this.state.drivingBehavior.speeding,p,this.props.speedingColor),points:p}),h.label=2;case 2:return[2]}var b,m,O,v}))}))},r.loadDrivingBehaviour=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o,a,s,c,l,d,p,h,b,m,O;return Object(u.__generator)(this,(function(v){switch(v.label){case 0:return e.needDrivingBehavior?(t=e.vehicleId,r=e.startTime,n=e.endTime,i=e.showSpeeding,o=e.speedingThreshold,a=e.showHarshAcceleration,s=e.harshAccelerationThreshold,c=e.showHarshBreaking,l=e.harshBreakingThreshold,d=e.showHarshSteering,p=e.harshSteeringThreshold,h=e.needProcess,b=e.needMapMatch,m=e.transportMode,e.loadstart,e.loadend,e.drivingBehavior?(this.setState((function(t){return{drivingBehavior:e.drivingBehavior,speedingTracks:x(e.drivingBehavior.speeding,t.points,e.speedingColor)}})),[2]):r&&n&&t?[4,this.request((j={vehicle_id:t,start_time:r,end_time:n,speeding_threshold:o,harsh_acceleration_threshold:s,harsh_breaking_threshold:l,harsh_steering_threshold:p,process_option:h?{need_mapmatch:b,transport_mode:m}:void 0},Object(u.__assign)(Object(u.__assign)({type:"getdrivingbehavior"},j),{start_time:g(j.start_time),end_time:g(j.end_time),process_option:f(j.process_option)})))]:[2]):(this.setState({drivingBehavior:{speeding:[],harsh_acceleration:[],harsh_breaking:[],harsh_steering:[]},speedingTracks:x([],this.state.points,this.props.speedingColor)}),[2]);case 1:return O=v.sent(),!this.props.needDrivingBehavior||this.props.drivingBehavior?[2]:(i||(O.speeding=[]),a||(O.harsh_acceleration=[]),c||(O.harsh_breaking=[]),d||(O.harsh_steering=[]),this.state.points&&this.state.points.length?this.setState({drivingBehavior:O,speedingTracks:x(O.speeding,this.state.points,this.props.speedingColor)}):this.setState({drivingBehavior:O}),[2])}var j}))}))},r.loadPointInfo=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o;return Object(u.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,t.vehicleId,t.startTime,t.loadstart,t.loadend,[4,this.lookupAddress(e)];case 1:return r=a.sent(),n=e.latitude,i=e.longitude,o=e.loc_time,this.setState({content:[{key:"\u5750\u6807",value:i+", "+n},{key:"\u4f4d\u7f6e",value:r},{key:"\u65f6\u95f4",value:y()(new Date(1e3*o),"YYYY-MM-DD HH:mm:ss")}]}),[2]}}))}))},r.lookupAddress=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t;return Object(u.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Object(p.j)(this.props.ak,{lat:e.latitude,lng:e.longitude})];case 1:return[2,r.sent().formatted_address];case 2:return t=r.sent(),console.error("fail to lookup real address",t),[2,"\u65e0\u6cd5\u83b7\u5f97\u5730\u5740"];case 3:return[2]}}))}))},r.handlePlay=function(e){return r.setState({playing:e})},r.handleTrackClick=function(e){var t=r.state.points.indexOf(e);r.setState({selected:t,content:void 0}),r.loadPointInfo(e)},r.handleClosePopInfo=function(){return r.setState({selected:-1})},r.renderPopInfo=function(){var e=r.state,t=e.content,n=(e.points,e.selected),i=r.state.points[n],o=i.longitude,a=i.latitude;return d.createElement(p.f,{pin:!0,longitude:o,latitude:a,title:d.createElement("div",{style:{fontWeight:900,textAlign:"center"}},r.props.vehicleId),content:t,busy:!t,onClose:r.handleClosePopInfo})},r.imgSrc=function(e){return e?r.props.assetUtils.toUserUploadedImageUrl(e):null},r.serviceConnMgr=t.serviceConnMgr,r.state={points:[],selected:-1,drivingBehavior:{speeding:[],harsh_acceleration:[],harsh_breaking:[],harsh_steering:[]}},r}return Object(u.__extends)(t,e),t.prototype.componentWillReceiveProps=function(e,t){return Object(u.__awaiter)(this,void 0,void 0,(function(){var t,r,n,i;return Object(u.__generator)(this,(function(o){switch(o.label){case 0:return this.props.playState!==e.playState&&"stop"===e.playState&&this.setState({playing:void 0}),t=[],this.needRefreshProcess(e)&&t.push(this.loadPoints(e)),this.needRefreshDrivingBehavior(e)&&t.push(this.loadDrivingBehaviour(e)),t.length?(e.loadstart&&e.loadstart({type:"loadstart"}),[4,Promise.all(t)]):[3,2];case 1:o.sent(),e.loadend&&e.loadend({type:"loadend"}),o.label=2;case 2:return this.props.speedingColor!==e.speedingColor&&(r=this.state,n=r.drivingBehavior.speeding,i=r.points,this.setState({speedingTracks:x(n,i,e.speedingColor)})),[2]}}))}))},t.prototype.componentDidMount=function(){return Object(u.__awaiter)(this,void 0,void 0,(function(){return Object(u.__generator)(this,(function(e){switch(e.label){case 0:return this.props.loadstart&&this.props.loadstart({type:"loadend"}),[4,Promise.all([this.loadPoints(this.props),this.loadDrivingBehaviour(this.props)])];case 1:return e.sent(),this.props.loadend&&this.props.loadend({type:"loadend"}),[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.ak,r=e.center,n=e.zoom,i=e.mapStyle,o=e.dragging,a=e.scrollWheelZoom,s=e.doubleClickZoom,c=e.showLegend,l=e.showPlayer,h=e.startTime,b=e.endTime,f=e.playSpeed,g=e.playState,m=e.indicatorIcon,O=e.hideTrackDirection,v=e.hideTrackSpeed,j=e.trackColor,y=e.trackWidth,w=e.speedingIcon,x=e.harshAccelerationIcon,S=e.harshBreakingIcon,C=e.harshSteeringIcon,E=e.playerPosition,A=e.currentZoom,_=e.playstatechange,T=(e.assetUtils,this.state),R=T.playing,I=T.points,P=T.selected,k=T.drivingBehavior,B=T.speedingTracks,N=void 0===B?[]:B,D={ak:t,center:r,zoom:n,mapStyle:i,dragging:o,scrollWheelZoom:a,doubleClickZoom:s,onZoom:A};return N.length&&delete D.center,d.createElement(p.c,Object(u.__assign)({className:"iotviz-widget-map",ak:t},D),d.createElement(p.i,{showDirection:!O,showSpeed:!v,lineColor:j,lineWidth:y,points:N,onClick:this.handleTrackClick}),d.createElement(p.b,{speedingTracks:N.slice(1),speedingIcon:this.imgSrc(w),harshAccelerationIcon:this.imgSrc(x),harshAccelerationPoints:k.harsh_acceleration,harshBreakingIcon:this.imgSrc(S),harshBreakingPoints:k.harsh_breaking,harshSteeringIcon:this.imgSrc(C),harshSteeringPoints:k.harsh_steering}),R&&d.createElement(p.a,{longitude:R.longitude,latitude:R.latitude,direction:R.direction,image:this.imgSrc(m)}),-1!==P&&this.renderPopInfo(),c&&d.createElement(p.g,{y:l?110:70}),d.createElement(p.e,{offset:{x:27,y:l?60:20}}),d.createElement(p.h,{breakon:300,speed:f,points:I,offset:{x:20,y:20},fromTime:new Date(h),toTime:new Date(b),onProgress:this.handlePlay,onPlayStateChange:_,showPlayer:l,playState:g,position:E}))},t.displayName="TelematicsTrackMap",t.defaultProps={playSpeed:30,needProcess:!0,needDenoise:!0,needVacuate:!0,needMapMatch:!0,radiusThreshold:0,transportMode:"driving",needDrivingBehavior:!1,showSpeeding:!0,speedingThreshold:0,speedingColor:"#f00",showHarshAcceleration:!0,harshAccelerationThreshold:1.67,showHarshBreaking:!0,harshBreakingThreshold:-1.67,showHarshSteering:!0,harshSteeringThreshold:5,playerPosition:"bottom"},t=Object(u.__decorate)([Object(h.c)("serviceConnMgr"),Object(h.c)("assetUtils")],t)}(d.Component),C=60*Math.floor(Date.now()/1e3/60)*1e3,E=C-864e5,A=C,_={typeId:"46172819-9cff-4dce-ba04-5df91900a6a6",ver:"1.0",propsSchema:{ak:Object(n.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),center:Object(i.f)({lng:121.476336,lat:31.236375}),doubleClickZoom:Object(n.I)(!0),dragging:Object(n.I)(!0),dumb:Object(n.I)(!1),endTime:Object(n.M)(A),vehicleId:Object(n.K)(""),harshAccelerationIcon:Object(n.K)(""),harshAccelerationThreshold:Object(n.m)(1.67),harshBreakingIcon:Object(n.K)(""),harshBreakingThreshold:Object(n.m)(-1.67),harshSteeringIcon:Object(n.K)(""),harshSteeringThreshold:Object(n.m)(5),height:Object(n.A)(400),hideTrackDirection:Object(n.I)(!1),hideTrackSpeed:Object(n.I)(!1),indicatorIcon:Object(n.K)(""),mapStyle:Object(n.K)("normal"),needDenoise:Object(n.I)(!0),needDrivingBehavior:Object(n.I)(!1),needMapMatch:Object(n.I)(!0),needProcess:Object(n.I)(!0),needVacuate:Object(n.I)(!0),playSpeed:Object(n.E)(30),playState:s("play"),playerPosition:a("bottom"),points:c(null),drivingBehavior:o(null),radiusThreshold:Object(n.m)(0),scrollWheelZoom:Object(n.I)(!0),showHarshAcceleration:Object(n.I)(!0),showHarshBreaking:Object(n.I)(!0),showHarshSteering:Object(n.I)(!0),showLegend:Object(n.I)(!0),showPlayer:Object(n.I)(!0),showSpeeding:Object(n.I)(!0),speedingColor:Object(n.K)("#f00"),speedingIcon:Object(n.K)(""),speedingThreshold:Object(n.m)(0),startTime:Object(n.M)(E),trackColor:Object(n.K)("#8b8b89"),trackWidth:Object(n.E)(10),transportMode:l("driving"),width:Object(n.A)(500),zoom:Object(n.E)(13)},eventsSchema:{currentZoom:n.E,playstatechange:n.K,loadstart:Object(n.c)({}),loadend:Object(n.c)({})},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("currentZoom",(function(t){return e.overridePropsBag("zoom",t)}))},onStop:function(){e.unRTProp("currentZoom")}}},component:S};r.d(t,"settings",(function(){return T}));var T={metadata:_,publicProps:{ak:!0,center:!0,startTime:!0,endTime:!0,vehicleId:!0,playState:!0,playSpeed:!0,points:!0,drivingBehavior:!0},publicEvents:{playstatechange:!0,loadstart:!0,loadend:!0}}},1302:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(2),o=r(0),a=r(32),s=r(5),c=r(17),l=function(e,t){return e\n \n \n \n \n \n \n "),dataZoomHeight:Object(o.E)(8),dataZoomTextColor:Object(o.j)("transparent"),dataZoomStart:Object(o.C)(0),dataZoomEnd:Object(o.C)(100),dumb:Object(o.I)(!1),height:Object(o.A)(260),ifSmooth:Object(o.I)(!1),legendFontFamily:Object(o.n)("sans-serif"),legendFontSize:Object(o.o)(12),legendFontStyle:Object(o.p)("normal"),legendFontWeight:Object(o.q)("normal"),legendHorizontalAlign:Object(o.t)("right"),legendItemGap:Object(o.B)(15),legendItemHeight:Object(o.A)(7),legendItemWidth:Object(o.A)(19),legendOrient:Object(s.h)("horizontal"),legendPaddingBottom:Object(o.B)(0),legendPaddingLeft:Object(o.B)(20),legendPaddingRight:Object(o.B)(20),legendPaddingTop:Object(o.B)(12),legendSelected:Object(s.o)({}),legendVerticalAlign:Object(o.N)("top"),lockLegendAspectRatio:Object(o.I)(!0),paddingBottom:Object(o.B)(40),paddingLeft:Object(o.B)(60),paddingRight:Object(o.B)(60),paddingTop:Object(o.B)(60),multiColors:f([["#108CEE","#47BAFD","#7EDEFF","#0060EE","#0349C2","#AEF0FB","#022CA4","#00119B"],["#F38900","#FEB600","#FDCB55","#FDD880","#C96705","#FFE6AB","#A04B00","#853200"]]),seriesMap:p({seriesOpt:{xCol:0,y0Cols:[1],y1Cols:[2],groupByCols:[3]},dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u84b8\u53d1\u91cf",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[15436224e5,16,160,"\u5317\u4eac"],[15436224e5,20,225,"\u4e0a\u6d77"],[15436296e5,30,210,"\u5317\u4eac"],[15436296e5,27,170,"\u4e0a\u6d77"],[15436368e5,38,225,"\u5317\u4eac"],[15436368e5,29,200,"\u4e0a\u6d77"],[1543644e6,30,180,"\u5317\u4eac"],[1543644e6,25,230,"\u4e0a\u6d77"]]}}),seriesType:Object(s.r)("line"),showAreaStyle:Object(o.I)(!1),showDataShadow:Object(o.I)(!1),showDataZoomX:Object(o.I)(!1),showLegend:Object(o.I)(!0),showSymbol:Object(o.I)(!0),showTooltip:Object(o.I)(!0),symbol:Object(s.t)("emptyCircle"),symbolSize:Object(o.E)(4),tooltipAxisColor:Object(o.j)("#108CEE"),tooltipBackgroundColor:Object(o.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(o.y)("none"),tooltipBorderRadius:Object(o.B)(0),tooltipConfine:Object(o.I)(!0),tooltipContentColor:Object(o.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(o.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(o.B)(0),tooltipTitleColor:Object(o.j)("#333"),tooltipTrigger:Object(s.x)("axis"),width:Object(o.A)(450),stackEnable:Object(o.I)(!1)},Object(a.a)("x","time")),Object(i.omit)(Object(a.a)("y0","value"),["y0AxisTextColor"])),Object(i.omit)(Object(a.a)("y1","value"),["y1AxisTextColor"])),{xAxisFeatures:Object(s.b)({axisType:"time",axisDateFormatter:"HH:mm"}),xAxisLineColor:Object(o.j)("#CBD3E0"),y0AxisLineColor:Object(o.j)("#108CEE"),y1AxisLineColor:Object(o.j)("#F38900")}),eventsSchema:{currentLegendSelected:s.o,currentDatazoomRange:s.g},interactSessionMiddleware:a.b,component:y,propsResolver:c.a};r.d(t,"settings",(function(){return x}));var x={metadata:w}},1303:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(13),o=r(3),a=r(34),s=r(1),c=r(15),l=r(254),u=r(20),d=function(e,t,r,n,i){var o=function(e,t,r,n){var i=u.d.fromValues(t.x,t.y,n.x,n.y),o=u.b.fromValues(e.x,e.y,1,0,-e.y,e.x,0,1,r.x,r.y,1,0,-r.y,r.x,0,1),a=u.b.create();return u.b.invert(a,o),[a[0]*i[0]+a[1]*i[1]+a[2]*i[2]+a[3]*i[3],a[4]*i[0]+a[5]*i[1]+a[6]*i[2]+a[7]*i[3],a[8]*i[0]+a[9]*i[1]+a[10]*i[2]+a[11]*i[3],a[12]*i[0]+a[13]*i[1]+a[14]*i[2]+a[15]*i[3]]}(e,t,r,n),a=o[0],s=o[1],c=o[2],l=o[3],d=i.x,p=i.y;return{x:a*d+s*p+c,y:s*d-a*p+l}},p=function(e,t,r,n){var i,o,a=(i=e,o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2))),s=d({x:0,y:0},{x:0,y:0},{x:a,y:0},{x:a,y:0},{x:n*a,y:r});return d({x:0,y:0},e,{x:a,y:0},t,s)},h=r(55),b=function(e){return e+"-gs"},f=function(e){var t,r,i,c=e.id,l=e.startX,u=e.startY,d=e.endX,f=e.endY,g=e.ctrlPointHeight,m=e.ctrlPointXRatio,O=e.stroke,v=e.strokeWidth,j=e.markerStart,y=e.markerEnd,w=(i=function(e,t,r,n){var i=function(e,t,r){return t/(2*(1-n)*n)-e*(1-n)/(2*n)-r*n/(2*(1-n))};return{x:i(e.x,t.x,r.x),y:i(e.y,t.y,r.y)}}(t={x:l,y:u},p(t,r={x:d,y:f},g,m),r,.5),"\n M "+t.x+" "+t.y+"\n Q "+i.x+" "+i.y+", "+r.x+" "+r.y+"\n ");return s.createElement("g",null,s.createElement("defs",null,function(){var t,r=e.id,i=e.startX,c=e.startY,l=e.endX,u=e.endY,d=e.stroke,p=Object(h.a)(d);if(!p)return null;if(p){var f=(l+i)/2,g=(u+c)/2;switch(d.type){case"linear":var m=360-Object(a.pointsToDegree)(d.deg);t={gradient:Object(o.__assign)(Object(o.__assign)({},d),{deg:{x1:i,y1:c,x2:l,y2:u}}),options:{gradientUnits:"userSpaceOnUse",gradientTransform:"rotate("+m+","+f+","+g+")"}};break;case"circle":t={gradient:Object(o.__assign)(Object(o.__assign)({},d),{pos:{x:f,y:g}}),options:{gradientUnits:"userSpaceOnUse"}}}}return s.createElement(n.b,Object(o.__assign)({id:b(r)},t))}(),!!j&&j,!!y&&y),s.createElement("path",{id:c,d:w,stroke:Object(h.a)(O)?"url(#"+b(c)+")":O,strokeWidth:v,fill:"transparent",markerStart:"url(#start-"+c+")",markerEnd:"url(#end-"+c+")"}))};f.displayName="Curve",f.defaultProps={strokeWidth:1};var g=Object(c.a)(l.a)(f),m=r(14),O={typeId:"22779814-0d2f-458c-91a6-40c5bfe501f2",ver:"1.0",mediaType:i.c.SVG,propsSchema:{startX:Object(n.m)(0),startY:Object(n.m)(100),endX:Object(n.m)(100),endY:Object(n.m)(100),ctrlPointXRatio:Object(n.m)(.5),ctrlPointHeight:Object(n.m)(-20),fill:Object(n.r)("#3399FF"),stroke:Object(n.r)("#3399FF"),strokeWidth:Object(n.A)(1),endpointStart:Object(m.d)("none"),endpointEnd:Object(m.d)("none")},eventsSchema:{},mbrDef:{mbrCalculator:function(e){var t=e.startX,r=e.startY,n=e.endX,o=e.endY,a=Math.abs(n-t),s=Math.abs(o-r);return new i.a(Math.min(t,n),Math.min(r,o),a,s)},mbrUpdater:function(e,t){var r=e.x,n=e.y,i=e.width,o=e.height,a=t.startX,s=t.startY,c=t.endX,l=t.endY,u=a,d=s,p=c,h=l;return i=0===i?.01:i,o=0===o?.01:o,ac&&(p=r,u=r+i),sl&&(d=n+o,h=n),{startX:u,startY:d,endX:p,endY:h}}},component:g};r.d(t,"settings",(function(){return v}));var v={metadata:O,publicProps:{fill:!0,stroke:!0}}},1304:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=Object(n.d)([Object(n.C)(1),Object(n.H)("100%",{regexp:/^(100|(([1-9]\d|\d)(\.\d{1,2})?))%$/i.toString()})]),a=Object(n.d)([n.r,Object(n.g)("auto")]),s=r(3),c=r(22),l=r(2),u=r(1),d=r(18),p=r(10),h=[p.e,p.g,p.v],b=function(e){function t(t){var r=e.call(this,t)||this;return r.onRef=r.onRef.bind(r),r.ecOpt={},r}return Object(s.__extends)(t,e),t.prototype.componentDidUpdate=function(e){var t=Object(l.reduce)(h,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(l.isEmpty)(t)||this.echarts.setOption(t,!1,!0),this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(c.init)(Object(d.findDOMNode)(this.container),null);var e=Object(l.reduce)(h,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e)},t.prototype.componentWillUnmount=function(){Object(c.dispose)(this.echarts)},t.prototype.render=function(){var e=this.props,t=e.indicator,r={position:"absolute",left:"50%",top:"35%",transform:"translate(-50%, -50%)",display:e.showTitle?"block":"none",fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontWeight:e.fontWeight,color:e.titleColor};return u.createElement("div",{style:{width:"100%",height:"100%"}},u.createElement("label",{style:r},t),u.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef}))},t.prototype.onRef=function(e){this.container=e},t.displayName="GaugeChart",t.defaultProps={themeName:"light",splitNumber:10,startAngle:225,endAngle:-45,showSplitLine:!0,showAxisTick:!0,showAxisLabel:!0,axisLabelD:5,unit:"",detailFontFamily:"Impact",detailFontStyle:"normal",detailFontWeight:"normal",detailFontSize:28},t}(u.PureComponent),f={typeId:"765dee3c-099d-44fd-885b-360b7bd76d56",ver:"1.0",propsSchema:{axisLabelColor:a("auto"),axisLabelD:Object(n.m)(5),axisLineBlur:Object(n.B)(0),axisLineBlurColor:Object(n.j)("transparent"),axisLineWidth:Object(n.E)(15),axisTickLength:Object(n.E)(20),bottomLineWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),showDetail:Object(n.I)(!0),detailColor:a("auto"),detailFontFamily:Object(n.n)("Impact"),detailFontSize:Object(n.o)(28),detailFontStyle:Object(n.p)("normal"),detailFontWeight:Object(n.q)("normal"),dumb:Object(n.I)(!1),endAngle:Object(n.m)(-45),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(12),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),height:Object(n.A)(300),indicator:Object(i.m)("\u5317\u4eac\u6e29\u5ea6"),itemStyleBlur:Object(n.B)(0),itemStyleBlurColor:Object(n.j)("rgba(255, 255, 255, 0.5)"),labelColor:a("auto"),lineColors:Object(n.s)([{offset:.2,color:"#108cee"},{offset:.8,color:"#545fc8"},{offset:1,color:"#f38900"}]),lineStyle:a("auto"),lineStyleNum:Object(n.E)(3),max:Object(n.m)(100),min:Object(n.m)(0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),pointerWidth:Object(n.B)(6),radius:o(1),seriestype:Object(i.r)("gauge"),showAxisLabel:Object(n.I)(!0),showAxisTick:Object(n.I)(!0),showSplitLine:Object(n.I)(!0),showTitle:Object(n.I)(!0),showTooltip:Object(n.I)(!0),splitLineLength:Object(n.E)(24),splitNumber:Object(n.B)(10),startAngle:Object(n.m)(225),titleColor:Object(n.j)("#8a58bc"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),unit:Object(i.m)("\u2103"),value:Object(n.m)(32),width:Object(n.A)(300)},eventsSchema:{},component:b};r.d(t,"settings",(function(){return g}));var g={metadata:f}},1305:function(e,t,r){"use strict";r.r(t);var n,i,o=r(0),a=Object(o.H)("",{maxLength:1}),s=r(3),c=r(1),l=r(7),u=r(187),d=r(2),p=function(e){return e.cardWidth},h=function(e){return e.cardHeight},b=function(e){return e.cardSpacing},f=function(e){return e.paddingTop},g=function(e){return e.paddingLeft},m=Object(u.createSelector)((function(e){return e.score}),(function(e){return e.numIntegerDigits}),(function(e){return e.padIntegerPart}),(function(e){return e.numFractionalDigits}),(function(e){return e.padFractionalPart}),(function(e,t,r,n,i){var o=(e||0).toFixed(n).split("."),a=o[0],c=o[1],l=void 0===c?"":c,u=Object(d.dropWhile)(a,(function(e){return"0"===e})),p=Object(d.dropRightWhile)(l,(function(e){return"0"===e})),h=e<0?"-":"";for(0===u.length&&u.push("0"),h&&r&&(u.shift(),t>u.length&&t--);u.length=e&&(n=0);var i=[new o.b(n,0)];return i.push(new o.b(e,0)),i.push(new o.b(e-n,t)),i.push(new o.b(0,t)),function(e){return Object(d.map)(e,(function(e){return e.x+","+e.y})).join(" ")}(i)},b=function(e){var t=e.id,r=e.width,n=e.height,o=e.inclineDeg,a=e.mergedFill,s=e.isMergedFillGradient,l=e.stroke,u=e.strokeWidth;return c.createElement("g",null,c.createElement("defs",null,s&&c.createElement(i.b,{id:t,gradient:a})),c.createElement("polygon",{points:h(r,n,o),fill:s?"url(#"+t+")":a,stroke:l,strokeWidth:u}))};b.displayName="Parallelogram",b.defaultProps={strokeWidth:1};var f=Object(l.a)(p.a,u.a)(b),g={typeId:"a2267005-5218-49f6-99b4-c45fa2ee4aa7",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),inclineDeg:Object(i.A)(30)},a.c),a.b),a.a),propsResolver:s.a,component:f};r.d(t,"settings",(function(){return m}));var m={metadata:g,publicProps:{fill:!0,stroke:!0}}},1310:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(2),o=Object(n.c)({},(function(e){return Object(i.every)(e,(function(e){return!Object(i.has)(e,"width")||e.width>0}))})),a=r(3),s=r(544),c=r(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.consolidateColDefs=function(){for(var e=0,t=this.props,r=t.colsNum,n=t.data,i=[];e1&&r<2*d?{borderTopWidth:0}:{borderLeftWidth:0},B=Object(s.isArray)(u)&&u.length>2&&r>=2*d&&r")[0].match(t);if(Object(a.isArray)(r))return void le(r[1]);e=e.parentNode}}));var ue=(w?"inset ":"")+x+"px "+S+"px "+C+"px "+E+"px "+A,de=(L?"inset ":"")+F+"px "+z+"px "+W+"px "+U+"px "+H,pe={container:{height:"100%",background:Object(n.F)(f),borderStyle:g,borderColor:m,hoverBorderColor:O,borderWidth:v+"px",borderRadius:j+"px",boxShadow:""+(y?ue:"unset")},input:{height:"100%",fontFamily:u+", sans-serif",fontStyle:h,fontSize:d+"px",fontWeight:p,color:l,paddingLeft:b+"px",backgroundColor:"transparent"},indicator:{size:T,color:R,padding:I},menu:{width:r,maxHeight:P+"px",borderStyle:k,borderColor:B,borderWidth:N+"px",borderRadius:D+"px",background:Object(n.F)(Y),transform:ce,transformOrigin:"0 0",boxShadow:""+(M?de:"unset")},option:{height:G+"px",lineHeight:G+"px",fontFamily:X,fontSize:K+"px",fontStyle:re,fontWeight:te,color:J,hoverColor:Q,activeColor:ee,hoverBgColor:Object(n.F)(Z),activeBgColor:Object(n.F)(q),paddingLeft:b+"px"}};return c.a.createElement("div",{ref:ae,style:{height:"100%"},id:"widget-"+t},c.a.createElement(o.c,{options:V,value:i,onChange:function(e){ie(e),oe("/value",e)},styles:pe,hasIndicator:_,needTooltip:!1}))}};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{value:!0}}},1316:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(3),a=r(57),s=r(19),c=r(33),l=r(1);function u(e){return{type:"getlatestpoint",vehicleId:e}}var d=function(e){function t(t){var r=e.call(this,t)||this;return r.loadPoint=function(e){var t=e.vehicleId;return Object(o.__awaiter)(r,void 0,void 0,(function(){var e,r,n;return Object(o.__generator)(this,(function(i){switch(i.label){case 0:if(!t)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.serviceConnMgr.sendRequest("telematics",u(t))];case 2:return e=i.sent(),(r=e.geoInfo).loc_time=r.locTime,n={entity_name:this.props.vehicleId,entity_desc:"",latest_location:r},this.setState({points:[n],showTooltip:!0}),this.loadPointInfo(n),[3,4];case 3:throw i.sent();case 4:return[2]}}))}))},r.loadAddress=function(e,t){return Object(o.__awaiter)(r,void 0,void 0,(function(){var r;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Object(a.j)(this.props.ak,{lat:e,lng:t})];case 1:return[2,n.sent().formatted_address];case 2:return r=n.sent(),console.error("fail to lookup real address",r),[2,"\u65e0\u6cd5\u83b7\u5f97\u5730\u5740"];case 3:return[2]}}))}))},r.loadPointInfo=function(e){var t=e.latest_location,n=t.latitude,i=t.longitude,a=t.loc_time;return Object(o.__awaiter)(r,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.loadAddress(n,i)];case 1:return e=t.sent(),this.setState({content:[{key:"\u65f6\u95f4",value:String(Object(s.format)(1e3*a,"YYYY-MM-DD HH:mm:ss"))},{key:"\u5750\u6807",value:i+", "+n},{key:"\u4f4d\u7f6e",value:e}]}),[2]}}))}))},r.handleClick=function(){r.setState({showTooltip:!0,content:void 0}),r.loadPointInfo(r.state.points[0])},r.handleClosePopInfo=function(){return r.setState({showTooltip:!1})},r.renderPopInfo=function(){var e=r.state,t=e.content,n=(e.showTooltip,e.points[0].latest_location),i=n.longitude,o=n.latitude;return l.createElement(a.f,{longitude:i,latitude:o,title:l.createElement("div",{style:{fontWeight:900,textAlign:"center"}},r.props.vehicleId),content:t,busy:!t,onClose:r.handleClosePopInfo})},r.serviceConnMgr=t.serviceConnMgr,r.state={showTooltip:!1,style:function(){return{color:t.color}}},r}return Object(o.__extends)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.color;e.vehicleId!==this.props.vehicleId&&this.loadPoint(e),t!==this.props.color&&this.setState({style:function(){return{color:e.color}}})},t.prototype.componentDidMount=function(){this.loadPoint(this.props)},t.prototype.render=function(){var e=this.props,t=e.ak,r=e.center,n=e.zoom,i=e.mapStyle,s=e.dragging,c=e.scrollWheelZoom,u=e.doubleClickZoom,d=e.currentZoom,p=this.state,h=p.points,b=p.showTooltip,f=p.style,g={ak:t,center:r,zoom:n,mapStyle:i,dragging:s,scrollWheelZoom:c,doubleClickZoom:u,onZoom:d};return l.createElement(a.c,Object(o.__assign)({className:"iotviz-widget-map",ak:t},g),h&&l.createElement(a.d,{markerStyle:f,points:h,onClick:this.handleClick}),b&&this.renderPopInfo(),l.createElement(a.e,{offset:{x:20,y:20}}))},t.displayName="TelematicsMarkersMap",t=Object(o.__decorate)([Object(c.c)("serviceConnMgr")],t)}(l.Component),p={typeId:"5e6a5711-caa9-4f72-a897-820b682a225e",ver:"1.0",propsSchema:{ak:Object(n.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),center:Object(i.f)({lng:121.476336,lat:31.236375}),color:Object(n.j)("rgba(0, 166, 239, 1)"),doubleClickZoom:Object(n.I)(!0),dragging:Object(n.I)(!0),dumb:Object(n.I)(!1),vehicleId:Object(n.K)(""),height:Object(n.A)(400),mapStyle:Object(n.K)("normal"),scrollWheelZoom:Object(n.I)(!0),width:Object(n.A)(500),zoom:Object(n.E)(13)},eventsSchema:{currentZoom:n.E},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("currentZoom",(function(t){return e.overridePropsBag("zoom",t)}))},onStop:function(){e.unRTProp("currentZoom")}}},component:d};r.d(t,"settings",(function(){return h}));var h={metadata:p,publicProps:{ak:!0,vehicleId:!0}}},1317:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(5),s=r(14),c=r(188),l=r.n(c),u=r(1),d=r(152),p=r(15),h=r(46),b=r(47);r(2);var f=function(e){var t,r,n,o,a,s,c=e.id,p=e.width,h=e.height,b=e.cornerRadius,f=e.xARatio,g=e.yARatio,m=e.xERatio,O=e.yERatio,v=e.xFRatio,j=e.yFRatio,y=e.mergedFill,w=e.isMergedFillGradient,x=e.stroke,S=e.strokeWidth,C=b*(Math.min(p,h)/2),E=f*p,A=g*h,_=m*p,T=O*h,R=v*p,I=j*h,P={models:{rect:new l.a.models.RoundRectangle(p,h,C),triangle:new l.a.models.ConnectTheDots(!0,(t=E,r=h-A,n=_,o=h-T,a=R,s=h-I,[[t,r],[n,o],[a,s]]))},origin:[0,0]};l.a.model.combine(P.models.rect,P.models.triangle,!1,!0,!1,!0);var k=l.a.exporter.toSVG({models:{polygons:P}});k=k.replace(/(|<\/g><\/svg>)/g,"");var B=d.renderToStaticMarkup(u.createElement("defs",null,w&&u.createElement(i.b,{id:c,gradient:y})));k=B+k;var N=E<0?E:0,D=A<0?A:0;return u.createElement("g",{dangerouslySetInnerHTML:{__html:k},fill:w?"url(#"+c+")":y,stroke:x,strokeWidth:S,style:{transform:"translateX("+N+"px) translateY("+D+"px)"}})};f.displayName="Callout",f.defaultProps={strokeWidth:1};var g=Object(p.a)(b.a,h.a)(f),m=r(24),O={typeId:"ace4075d-0c07-46c9-b2ac-bdf13b7452c5",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({cornerRadius:Object(a.y)(.1),xARatio:Object(i.m)(-.1),yARatio:Object(i.m)(.5),xBRatio:Object(a.y)(0),yBRatio:Object(a.y)(.46),xERatio:Object(a.y)(.05),yERatio:Object(a.y)(.44),xFRatio:Object(a.y)(.05),yFRatio:Object(a.y)(.56)},s.c),s.b),s.a),propsResolver:m.a,component:g};r.d(t,"settings",(function(){return v}));var v={metadata:O,publicProps:{fill:!0,stroke:!0}}},1318:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(13),o=r(14),a=r(24),s=r(1),c=r(15),l=r(0),u=r(46),d=r(47),p=r(55),h=function(e){var t=e.id,r=e.width,n=e.height,i=e.fill,o=e.maskInfo,a=e.stroke,c=e.strokeWidth,u=r/2,d=n/2,h=Object(p.a)(i);return o.width=r,o.height=n,s.createElement("g",null,s.createElement("defs",null,(h||o.needMask)&&s.createElement(l.b,{id:t,gradient:i,mask:o})),s.createElement("ellipse",{x:0,y:0,cx:u,cy:d,rx:u,ry:d,fill:h?"url(#"+t+")":i,stroke:a,strokeWidth:c}),o.needMask&&s.createElement("rect",{x:0,y:0,width:r,height:n,fill:o.color,mask:"url(#"+t+"-mask)",strokeWidth:0}))};h.displayName="Ellipse",h.defaultProps={strokeWidth:1};var b=Object(c.a)(d.a,u.b)(h),f={typeId:"29afd62d-9a33-421c-81e5-390513cef7d2",ver:"1.0",mediaType:i.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({},o.c),o.b),o.a),propsResolver:a.a,component:b};r.d(t,"settings",(function(){return g}));var g={metadata:f,publicProps:{fill:!0,stroke:!0}}},1319:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(13),o=r(3),a=r(34),s=r(1),c=r(15),l=r(254),u=r(55),d=function(e){return e+"-gs"},p=function(e){var t=e.id,r=e.stroke,i=e.strokeWidth,c=e.x1,l=e.y1,p=e.x2,h=e.y2,b=e.markerStart,f=e.markerEnd;return s.createElement("g",null,s.createElement("defs",null,function(){var t,r=e.id,i=e.startX,c=e.startY,l=e.endX,p=e.endY,h=e.stroke,b=Object(u.a)(h);if(!b)return null;if(b){var f=(l+i)/2,g=(p+c)/2;switch(h.type){case"linear":var m=360-Object(a.pointsToDegree)(h.deg);t={gradient:Object(o.__assign)(Object(o.__assign)({},h),{deg:{x1:i,y1:c,x2:l,y2:p}}),options:{gradientUnits:"userSpaceOnUse",gradientTransform:"rotate("+m+","+f+","+g+")"}};break;case"circle":t={gradient:Object(o.__assign)(Object(o.__assign)({},h),{pos:{x:f,y:g}}),options:{gradientUnits:"userSpaceOnUse"}}}}return s.createElement(n.b,Object(o.__assign)({id:d(r)},t))}(),!!b&&b,!!f&&f),s.createElement("line",{x1:c,y1:l,x2:p,y2:h,stroke:Object(u.a)(r)?"url(#"+d(t)+")":r,strokeWidth:i,markerStart:"url(#start-"+t+")",markerEnd:"url(#end-"+t+")"}))};p.displayName="Line",p.defaultProps={strokeWidth:1};var h=Object(c.a)(l.a)(p),b=r(14),f={typeId:"f3411175-b618-4172-9681-7e830bfd60e9",ver:"1.0",mediaType:i.c.SVG,propsSchema:{startX:Object(n.m)(100),startY:Object(n.m)(0),endX:Object(n.m)(0),endY:Object(n.m)(100),fill:Object(n.r)("#3399FF"),stroke:Object(n.r)("#3399FF"),strokeWidth:Object(n.A)(1),endpointStart:Object(b.d)("none"),endpointEnd:Object(b.d)("none")},eventsSchema:{},mbrDef:{mbrCalculator:function(e){var t=e.startX,r=e.startY,n=e.endX,o=e.endY,a=Math.abs(n-t),s=Math.abs(o-r);return new i.a(Math.min(t,n),Math.min(r,o),a,s)},mbrUpdater:function(e,t){var r=e.x,n=e.y,i=e.width,o=e.height,a=t.startX,s=t.startY,c=t.endX,l=t.endY,u=a,d=s,p=c,h=l;return i=0===i?.01:i,o=0===o?.01:o,ac&&(p=r,u=r+i),sl&&(d=n+o,h=n),{startX:u,startY:d,endX:p,endY:h}}},component:h};r.d(t,"settings",(function(){return g}));var g={metadata:f,publicProps:{fill:!0,stroke:!0}}},1320:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(14),s=r(5),c=r(24),l=r(1),u=r(15),d=r(46),p=function(e,t,r){return"number"!=typeof r||r<0||r>1?"":0===r?e/2+",0 "+e+","+t+" 0,"+t:1===r?"0,0 "+e+",0 "+e+","+t+" 0,"+t:[e*(1-r)/2+",0",e*(1+r)/2+",0",e+","+t,"0,"+t,e*(1-r)/2+",0"].join(" ")},h=r(47),b=function(e){var t=e.id,r=e.width,n=e.height,o=e.baseRatio,a=e.mergedFill,s=e.isMergedFillGradient,c=e.stroke,u=e.strokeWidth;return l.createElement("g",null,l.createElement("defs",null,s&&l.createElement(i.b,{id:t,gradient:a})),l.createElement("polygon",{points:p(r,n,o),fill:s?"url(#"+t+")":a,stroke:c,strokeWidth:u}))};b.displayName="Trapezoid",b.defaultProps={strokeWidth:1};var f=Object(u.a)(h.a,d.a)(b),g={typeId:"4250f88d-9e35-42b5-af47-7be40c0b924f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),baseRatio:Object(s.y)(.5)},a.c),a.b),a.a),propsResolver:c.a,component:f};r.d(t,"settings",(function(){return m}));var m={metadata:g,publicProps:{fill:!0,stroke:!0}}},1321:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(14),s=r(13),c=r(24),l=r(1),u=r(15),d=r(46),p=r(47),h=r(55),b=function(e,t,r){return"0,"+t+" "+e+","+t+" "+e*r+",0"},f=function(e){var t=e.id,r=e.width,n=e.height,o=e.vertexDisplacement,a=e.fill,s=e.maskInfo,c=e.stroke,u=e.strokeWidth,d=Object(h.a)(a);return s.width=r,s.height=n,l.createElement("g",null,l.createElement("defs",null,(d||s.needMask)&&l.createElement(i.b,{id:t,gradient:a,mask:s})),l.createElement("polygon",{points:b(r,n,o),fill:d?"url(#"+t+")":a,stroke:c,strokeWidth:u}),s.needMask&&l.createElement("rect",{x:0,y:0,width:r,height:n,fill:s.color,mask:"url(#"+t+"-mask)",strokeWidth:0}))};f.displayName="Triangle",f.defaultProps={strokeWidth:1};var g=Object(u.a)(p.a,d.b)(f),m={typeId:"e1de9750-49f1-430b-a125-0a6d66044c1b",ver:"1.0",mediaType:s.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),vertexDisplacement:Object(o.y)(.5)},a.c),a.b),a.a),propsResolver:c.a,component:g};r.d(t,"settings",(function(){return O}));var O={metadata:m,publicProps:{fill:!0,stroke:!0}}},1323:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(3),o=r(1),a=r(7),s=a.d.div(c||(c=Object(i.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));s.displayName="AnnouncementWrapper";var c,l,u=a.d.span(l||(l=Object(i.__makeTemplateObject)(["\n display: inline-block;\n padding: 0 10px;\n white-space: nowrap;\n"],["\n display: inline-block;\n padding: 0 10px;\n white-space: nowrap;\n"])));u.displayName="AnnouncementContainer";var d=r(80),p={typeId:"7bb53af6-22c2-4252-9377-85f789b2a502",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(200),height:Object(n.A)(30),text:Object(n.K)("\u7269\u53ef\u89c6\u652f\u6301\u6a2a\u5411\u6eda\u52a8\u7684\u516c\u544a\u7ec4\u4ef6\u4e86\uff01\u8fd9\u6761\u516c\u544a\u4f1a\u5faa\u73af\u6eda\u52a8\u64ad\u653e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u516c\u5e03\u4e00\u4e9b\u4fe1\u606f\u3002\u5b83\u4e5f\u53ef\u4ee5\u7ed1\u5b9a\u6570\u636e\u6e90\u4ece\u800c\u52a8\u6001\u663e\u793a\u4fe1\u606f\u3002"),scrollTime:Object(n.A)(8e3),pauseTime:Object(n.A)(3e3),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(16),fontColor:Object(n.j)("#333"),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(d.c)("none")},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.text,a=e.pauseTime,c=e.scrollTime,l=e.fontColor,d=e.fontSize,p=e.fontFamily,h=e.fontWeight,b=e.fontStyle,f=e.textDecoration,g=o.useRef(null),m=o.useRef(null),O=o.useState(!0),v=O[0],j=O[1],y=o.useState(!1),w=y[0],x=y[1],S=o.useState(!1),C=S[0],E=S[1],A=o.useState(""),_=A[0],T=A[1],R="transform "+c+"ms linear";return o.useEffect((function(){var e=m.current.offsetWidth-r;e>0?(E(!1),j(!0),T("translateX(-"+e+"px)")):(E(!0),j(!1),T("translateX(0)"))}),[r,i]),o.useEffect((function(){var e;if(!C){var t=function(){j(!0),e=setTimeout((function(){x(!0),e=setTimeout((function(){j(!1),window.requestAnimationFrame((function(){x(!1),window.requestAnimationFrame((function(){t()}))}))}),c+a)}),a)};return t(),function(){clearTimeout(e)}}clearTimeout(e)}),[C,a,c,_]),o.createElement(s,{style:{width:r,height:n},ref:g,id:"widget-"+t},o.createElement(u,{ref:m,style:{minWidth:r,height:n,lineHeight:n+"px",color:l,fontSize:d,fontFamily:p,fontWeight:h,fontStyle:b,textDecoration:f,transition:v?R:"",transform:w?_:"",textAlign:"center"}},i))}};r.d(t,"settings",(function(){return h}));var h={metadata:p}},1324:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(3),o=r(1),a=r(7),s=a.d.div(c||(c=Object(i.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));s.displayName="AnnouncementListWrapper";var c,l,u=a.d.div(l||(l=Object(i.__makeTemplateObject)(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));u.displayName="AnnouncementListText";var d=r(80),p=Object(n.e)(Object(n.w)({text:Object(n.H)("")})),h={typeId:"31d906e4-4b61-4ec9-9f3a-ddfe68afba54",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(300),height:Object(n.A)(60),textArr:p([{text:"\u7269\u53ef\u89c6\u652f\u6301\u7eb5\u5411\u6eda\u52a8\u7684\u516c\u544a\u7ec4\u4ef6\u4e86\uff01"},{text:"\u8fd9\u4e9b\u516c\u544a\u4f1a\u81ea\u52a8\u6eda\u52a8\uff0c\u5faa\u73af\u64ad\u653e\u3002"},{text:"\u60a8\u53ef\u4ee5\u7528\u5b83\u6765\u516c\u5e03\u4e00\u7cfb\u5217\u7684\u4fe1\u606f"},{text:"\u4e5f\u53ef\u4ee5\u7ed1\u5b9a\u5230\u6570\u636e\u6e90\u7684\u67d0\u4e00\u5217\u4e0a"}]),textAlign:Object(n.t)("center"),lineHeight:Object(n.A)(30),scrollTime:Object(n.A)(500),pauseTime:Object(n.A)(3e3),endPauseTime:Object(n.A)(3e3),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(16),fontColor:Object(n.j)("#333"),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(d.c)("none")},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.textArr,a=e.lineHeight,c=e.pauseTime,l=e.endPauseTime,d=e.scrollTime,p=e.fontColor,h=e.fontSize,b=e.fontFamily,f=e.textAlign,g=e.fontWeight,m=e.fontStyle,O=e.textDecoration,v=o.useRef(null),j=o.useRef(null),y=o.useState(!0),w=y[0],x=y[1],S=o.useState(!1),C=S[0],E=S[1],A=o.useState(0),_=A[0],T=A[1],R=o.useState(0),I=R[0],P=R[1],k="transform "+d+"ms linear";return o.useEffect((function(){var e=j.current.offsetHeight-n;e>0?(E(!1),x(!0),T(e)):(E(!0),x(!1),T(0))}),[n,i.length]),o.useEffect((function(){var e,t;if(C||0===_)return clearTimeout(e),void clearInterval(t);var r=function(){x(!0),e=setTimeout((function(){t=setInterval((function(){P((function(n){var i=n+a;return i<_?i:(clearInterval(t),e=setTimeout((function(){x(!1),window.requestAnimationFrame((function(){P(0),window.requestAnimationFrame((function(){r()}))}))}),l),_)}))}),c)}),l)};return r(),function(){clearTimeout(e),clearInterval(t)}}),[C,c,l,d,_]),o.createElement(s,{style:{width:r,height:n},ref:v,id:"widget-"+t},o.createElement("div",{ref:j,style:{width:r,minHeight:n,transition:w?k:"",transform:"translateY(-"+I+"px)"}},i.map((function(e,n){return o.createElement(u,{key:t+"-"+n,style:{fontSize:h,fontFamily:b,color:p,fontWeight:g,fontStyle:m,textDecoration:O,textAlign:f,textJustify:"justify"===f?"distribute-all-lines":"auto",textAlignLast:"justify"===f?"justify":"auto",width:r,height:a,lineHeight:a+"px"}},e.text)}))))}};r.d(t,"settings",(function(){return b}));var b={metadata:h}},1325:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(3),a=r(22),s=r(2),c=r(1),l=r(18),u=r(10),d=[u.e,u.f,u.h,Object(u.j)("series"),u.v,u.b,u.w,u.x,u.c],p=function(e){function t(t){var r=e.call(this,t)||this;return r.onRef=r.onRef.bind(r),r.ecOpt={},r}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(s.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0,!0)}else{t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(s.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(a.init)(Object(l.findDOMNode)(this.container),null);var e=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(a.dispose)(this.echarts)},t.prototype.render=function(){return c.createElement("div",{style:{width:"100%",height:"100%",userSelect:"none"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="BarChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,themeName:"light"},t}(c.Component),h=r(17),b={typeId:"6dcb4040-e60c-4ce5-aca0-37730c923433",ver:"1.0",propsSchema:{color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),showTooltip:Object(n.I)(!0),tooltipConfine:Object(n.I)(!0),tooltipPadding:Object(n.B)(0),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(n.j)("#333"),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:Object(i.x)("axis"),tooltipAxisColor:Object(n.j)("#108CEE"),showDataZoomX:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),dataZoomHeight:Object(n.E)(8),dataZoomBottom:Object(n.B)(20),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomTextColor:Object(n.j)("transparent"),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),showLegend:Object(n.I)(!0),legendOrient:Object(i.h)("horizontal"),legendHorizontalAlign:Object(n.t)("right"),legendVerticalAlign:Object(n.N)("top"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendItemWidth:Object(n.A)(12),legendItemHeight:Object(n.A)(12),legendSelected:Object(i.o)({}),lockLegendAspectRatio:Object(n.I)(!0),legendItemGap:Object(n.B)(20),showXAxis:Object(n.I)(!0),showYAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showXAxisTick:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),showXAxisLine:Object(n.I)(!1),showYAxisLine:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),xAxisTextColor:Object(n.j)("#333"),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),yAxisTextColor:Object(n.j)("#333"),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),series:Object(i.s)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),axisUnit:Object(i.q)(""),axisPointerType:Object(i.c)("shadow"),axisPointerShadowColor:Object(n.j)("rgba(16, 140, 238, 0.1)"),legendIcon:Object(i.n)("rect"),stackEnable:Object(n.I)(!1),showBarLabel:Object(n.I)(!1),category:Object(i.s)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde"]),data:Object(i.e)([[33,35,26],[55,33,25]]),width:Object(n.A)(300),height:Object(n.A)(200),hidden:Object(n.I)(!1),dumb:Object(n.I)(!1),background:Object(n.i)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),borderColor:Object(n.j)("transparent"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:p,propsResolver:h.a};r.d(t,"settings",(function(){return f}));var f={metadata:b}},1326:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(34),a=r(102),s=r(33),c=r(1),l=r.n(c),u=Object(s.d)((function(e){var t=e.id,r=e.width,n=e.height,i=e.text,s=e.color,c=e.fontFamily,u=e.fontSize,d=e.fontWeight,p=e.fontStyle,h=e.textDecoration,b=e.padding,f=e.align,g=e.bgColor,m=e.bgImage,O=e.imgFillMode,v=e.btnBorderStyle,j=e.btnBorderColor,y=e.btnBorderWidth,w=e.btnborderRadius,x=e.isLinked,S=e.href,C=void 0===S?"":S,E=e.blankPage;m&&!/^http(s):/.test(m)&&(m=o.AssetUtils.toUserUploadedImageUrl(m.replace(/@.+$/,"")));var A={minWidth:0,verticalAlign:"top",width:r,height:n,fontFamily:c+", sans-serif",fontStyle:p,fontSize:u+"px",fontWeight:d,color:s,textDecoration:h,paddingLeft:b+"px",paddingRight:b+"px",backgroundColor:g,backgroundImage:"url("+m+")",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:O,borderStyle:v,borderColor:j,borderWidth:y+"px",borderLeftWidth:y+"px",borderRadius:w+"px",textAlign:f};return l.a.createElement("div",{id:"widget-"+t},l.a.createElement("a",{href:C,target:E?"_blank":"_self",onClick:function(e){x&&""!==C.trim()||e.preventDefault()}},l.a.createElement(a.a,{value:i,style:A},i)))})),d={typeId:"ce553754-8b45-4ebf-af4c-d881d654e2c6",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(68),height:Object(n.A)(30),text:Object(n.K)("\u6309\u94ae"),color:Object(n.j)("#fff"),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(12),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(i.u)("none"),padding:Object(n.A)(10),align:Object(n.t)("center"),bgColor:Object(n.j)("#108cee"),bgImage:Object(n.K)(""),imgFillMode:Object(n.K)("100% 100%"),btnBorderStyle:Object(n.y)("none"),btnBorderColor:Object(n.j)("#ccc"),btnBorderWidth:Object(n.A)(1),btnborderRadius:Object(n.A)(0),isLinked:Object(n.I)(!1),href:Object(n.K)(""),blankPage:Object(n.I)(!0)},eventsSchema:{},component:u};r.d(t,"settings",(function(){return p}));var p={metadata:d,publicProps:{text:!0}}},1327:function(e,t,r){"use strict";r.r(t);var n,i=r(0),o=r(3),a=r(1),s=r(7),c=r(33),l=r(2),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={svg:""},r}return Object(o.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.componentDidMount=function(){var e=this;this.hasMounted=!0;var t=this.props,r=t.assetUtils,n=t.imageKey;fetch(r.toWidgetAssetUrl(n,"ConfigurationImage")).then((function(e){return e.ok||304===e.status?e.text():""})).then((function(t){e.hasMounted&&e.setState({svg:t})}))},t.prototype.render=function(){var e=this.props,t=e.id,r=(e.imageKey,e.waterLevel),n=Object(l.clamp)(Math.round(100-+r),0,100);return a.createElement(d,{id:"config-"+t,theme:{height:n}},a.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.svg}}))},t.displayName="Tank",t=Object(o.__decorate)([Object(c.c)("assetUtils")],t)}(a.Component),d=s.d.div(n||(n=Object(o.__makeTemplateObject)(["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n & svg .mask {\n height: ","px;\n transition: height 0.2s ease;\n }\n"],["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n & svg .mask {\n height: ","px;\n transition: height 0.2s ease;\n }\n"])),(function(e){return e.theme.height})),p={typeId:"56837b48-074c-492f-8e18-2be222036396",ver:"1.0",propsSchema:{dumb:Object(i.I)(!1),height:Object(i.A)(188),imageKey:Object(i.K)("flow/tank.svg?etag=aa0f278fff340ec73e434ab1d017e0a2"),waterLevel:Object(i.A)(90),width:Object(i.A)(210)},component:u};r.d(t,"settings",(function(){return h}));var h={metadata:p}},1328:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(3),o=r(1),a=r(33),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,r=e.imageKey;return o.createElement("div",{id:"deco-"+t+"-"+ +new Date,style:{width:"100%",height:"100%",overflow:"hidden"}},o.createElement("img",{src:this.props.assetUtils.toWidgetAssetUrl(r,"Decoration"),style:{display:"block",width:"100%",height:"100%"}}))},t.displayName="Decoration",t=Object(i.__decorate)([Object(a.c)("assetUtils")],t)}(o.Component),c={typeId:"e7d9041a-9e6d-4572-8194-25afb40bf539",ver:"1.0",propsSchema:{width:Object(n.A)(300),height:Object(n.A)(300),imageKey:Object(n.K)("placeholder"),dumb:n.I},component:s};r.d(t,"settings",(function(){return l}));var l={metadata:c}},1329:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(13),o=r(2),a=r(3),s=r(1),c=r(33),l=r(1377),u=function(e){function t(t){var r=e.call(this,t)||this;return r.placeHolder=s.createElement("p",{style:{width:"100%",height:"100%",margin:0,display:"flex",alignItems:"center",justifyContent:"space-around",backgroundColor:"#fff",userSelect:"none"},draggable:!1},s.createElement(l.a,{size:"4em",style:{opacity:.6}})),r}return Object(a.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.id,n=t.paddingBottom,i=t.paddingLeft,o=t.paddingRight,a=t.paddingTop,c=t.src,l=t.useAbs,u=t.fillMode,d=c.trim(),b=!d;return l||/^http(s)?/.test(c)?d.replace(/\@.*/gi,""):d=this.props.assetUtils.toUserUploadedImageUrl(h(p(c))),s.createElement("div",{id:"widget-"+r,draggable:!1,style:{width:"100%",height:"100%",paddingBottom:n+"px",paddingLeft:i+"px",paddingRight:o+"px",paddingTop:a+"px"}},b?this.placeHolder:s.createElement("div",{draggable:!1,ref:function(t){return e.image=t},key:d,style:{width:"100%",height:"100%",backgroundImage:"url("+d+")",backgroundSize:u,backgroundRepeat:"no-repeat",backgroundPosition:"center"}}))},t.displayName="Image",t=Object(a.__decorate)([Object(c.c)("assetUtils")],t)}(s.PureComponent),d=function(e){return/(.*\.(jpg|jpeg|png|gif|svg))/i.test(e)};function p(e){if(!Object(o.isString)(e))return"";if(/\?etag\=/i.test(e)){var t=/(.*\.(jpg|jpeg|png|gif|svg)\?etag\=\S+)?\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)$/i,r=e.match(t);return Object(o.isArray)(r)?{src:r[1],srcWidth:Number(r[3]),srcHeight:Number(r[5]),width:Number(r[7]),height:Number(r[9])}:d(e)?e:""}t=/(.*\.(jpg|jpeg|png|gif|svg))?\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)$/i,r=e.match(t);return Object(o.isArray)(r)?{src:r[1],srcWidth:Number(r[3]),srcHeight:Number(r[5]),width:Number(r[7]),height:Number(r[9])}:d(e)?e:""}var h=function(e){return Object(o.isString)(e)?e:e.src},b=function(e,t){return Object(o.isString)(e)?0:e[t]},f={typeId:"fa9e4c9e-89ab-4b77-b567-e6e4a525e255",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(200),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),src:Object(n.K)(""),useAbs:Object(n.I)(!1),visibility:Object(n.I)(!0),width:Object(n.A)(200),fillMode:Object(n.K)("100% 100%")},component:u,mbrDef:{mbrCalculator:function(e){var t=e.src,r=e.width,n=e.height,o=p(t),a=b(o,"width")||r,s=b(o,"height")||n;return new i.a(0,0,a,s)},mbrUpdater:function(e,t){var r=t.src,n=e.width,i=e.height,o=/(.*)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)?$/i;return{src:o.test(r)?r.replace(o,(function(e,t){return t+"@"+n+"*"+i})):r+"@"+n+"*"+i+"@"+n+"*"+i}}}};r.d(t,"settings",(function(){return g}));var g={metadata:f}},1330:function(e,t,r){"use strict";r.r(t);var n,i=r(0),o=r(3),a=r(1),s=r(7),c=r(88),l=r(34);!function(e){e.NONE="none",e.RIGHT="right",e.BOTTOM="bottom"}(n||(n={}));var u=s.d.div(d||(d=Object(o.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));u.displayName="ImageListContainer";var d,p,h=s.d.div(p||(p=Object(o.__makeTemplateObject)(["\n float: left;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n"],["\n float: left;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n"])));h.displayName="ImageListUnit";var b=r(80),f={typeId:"a21a5d81-5d05-4f0a-aa27-917d64a8fdca",ver:"1.0",propsSchema:{dumb:Object(i.I)(!1),width:Object(i.A)(615),height:Object(i.A)(80),data:Object(i.J)({tableData:{headers:[{name:"URL",type:"string"},{name:"\u6587\u5b57",type:"string"}],data:[["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.3"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.0"],["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.4"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.1"],["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.5"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.2"]]},imageIndex:0,textIndex:1}),autoScroll:Object(i.I)(!0),scrollInterval:Object(i.A)(5e3),scrollOffset:Object(i.A)(630),unitWidth:Object(i.A)(195),unitHeight:Object(i.A)(80),unitBackgroundColor:Object(i.K)("#14192d"),unitBackgroundImage:Object(i.K)("https://iotviz2-user.gz.bcebos.com/dev/a0333bd605cb453aa5e1717b26393a58/images/unitBack.png"),unitGap:Object(i.A)(15),imgWidth:Object(i.A)(80),imgHeight:Object(i.A)(80),imgFillMode:Object(i.K)("100% 100%"),textPosition:Object(i.K)("right"),imageTextGap:Object(i.A)(15),fontFamily:Object(i.n)("Digital-7Mono"),fontSize:Object(i.o)(36),fontColor:Object(i.j)("#eba945"),fontStyle:Object(i.p)("normal"),fontWeight:Object(i.q)("normal"),textDecoration:Object(b.c)("none")},component:function(e){var t=e.data.tableData.data;if(0===t.length||e.data.imageIndex>=t[0].length)return a.createElement(a.Fragment,null);var r=e.unitWidth,n=e.unitHeight,i=e.unitBackgroundColor,o=e.unitBackgroundImage,s=e.unitGap,d=e.id,p=e.imgWidth,b=e.imgHeight,f=e.imgFillMode,g=e.textPosition,m=e.imageTextGap,O=e.fontColor,v=e.fontSize,j=e.fontFamily,y=e.fontWeight,w=e.fontStyle,x=e.textDecoration,S=e.autoScroll,C=e.scrollInterval,E=e.scrollOffset,A=r*t.length+s*(t.length-1);o&&!/^http(s):/.test(o)&&(o=l.AssetUtils.toUserUploadedImageUrl(o.replace(/@.+$/,"")));var _=a.useRef(null),T=a.useRef(null);return a.useEffect((function(){var e,t=0,r=function(){(t+=E)>A&&(t=0),_.current.scrollLeft=t};S?e=setInterval(r,Math.max(C,1e3)):clearInterval(e);var n=function(){S&&clearInterval(e)},i=function(){S&&(t=_.current.scrollLeft,e=setInterval(r,Math.max(C,1e3)))};return T.current.addEventListener("mouseenter",n),T.current.addEventListener("mouseleave",i),function(){clearInterval(e),T.current.removeEventListener("mouseenter",n),T.current.removeEventListener("mouseleave",i)}}),[S,E,r,s,t]),a.createElement(c.a,{style:{width:e.width+"px",height:e.height+"px",overflowX:"auto",scrollBehavior:"smooth"},ref:_,id:"widget-"+d},a.createElement(u,{style:{width:A,height:n},ref:T},t.map((function(c,l){return a.createElement(h,{key:"image-list-unit-"+l,style:{width:r,height:n,backgroundColor:i,backgroundImage:"url("+o+")",marginRight:l===t.length-1?0:s}},"none"===g&&a.createElement(a.Fragment,null,a.createElement("div",{className:"image-list-image",style:{width:p,height:b,marginLeft:(r-p)/2,marginTop:(n-b)/2,backgroundImage:"url("+c[e.data.imageIndex]+")",backgroundSize:f,backgroundRepeat:"no-repeat"}})),"right"===g&&a.createElement(a.Fragment,null,a.createElement("div",{className:"image-list-image",style:{width:p,height:b,marginTop:(n-b)/2,marginRight:m,backgroundImage:"url("+c[e.data.imageIndex]+")",backgroundSize:f,backgroundRepeat:"no-repeat",float:"left"}}),a.createElement("div",{className:"image-list-text",style:{width:r-p-m,height:n,lineHeight:1.1*n+"px",fontSize:v,fontFamily:j,fontWeight:y,fontStyle:w,textDecoration:x,color:O,float:"left"}},e.data.textIndext){var n=e;e=t,t=n}return r<=e?0:r>=t?1:(r-e)/(t-e)},c=function(e,t,r){return Object(o.a)(e)[r?"brighter":"darker"](t).toString()},l=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t.prototype.getMarkerText=function(){var e=this.props,t=e.showPercentage,r=e.startValue,n=e.endValue,i=e.currentValue;return t?new Number(100*s(r,n,i)).toFixed(0)+"%":i},t.prototype.renderMarker=function(e){var t=this.props,r=t.id,n=t.klevel,i=t.brighter,o=t.showMarker,s=(t.showPercentage,t.barBaseColor),l=t.barSize,u=t.textColor,d=t.fontFamily,p=t.fontSize,h=t.fontStyle,b=t.fontWeight;t.startValue,t.endValue,t.currentValue;if(o){var f=Math.max(l/2,e-l/2),g=Math.max(l/4,3),m=r+"-rg";return a.createElement("g",{transform:"translate("+f+", 0)"},a.createElement("defs",null,a.createElement("filter",{id:m,x:"-40%",y:"-40%",width:"180%",height:"180%",filterUnits:"userSpaceOnUse"},a.createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"10"}),a.createElement("feOffset",{dx:"5",dy:"5",result:"offsetblur"}),a.createElement("feOffset",{dx:"-5",dy:"-5",result:"offsetblur"}))),a.createElement("circle",{transform:"translate(0, "+l/2+")",cx:0,cy:0,r:Math.max(g+7,10),fill:c(s,n+10,i),filter:"url(#"+m+")"}),a.createElement("circle",{transform:"translate(0, "+l/2+")",cx:0,cy:0,r:g,fill:c(s,n+10,i)}),a.createElement("text",{transform:"translate(0, -5)",fill:u,textAnchor:"middle",style:{fontFamily:d,fontSize:p,fontStyle:h,fontWeight:b}},this.getMarkerText()),a.createElement("polygon",{transform:"translate(0, "+(l+5)+")",points:"0,0 "+-g+","+g+" "+g+","+g,fill:c(s,n,i)}))}return null},t.prototype.render=function(){var e=this.props,t=e.id,r=e.width,i=e.height,o=e.brighter,l=e.klevel,u=e.barBaseColor,d=e.barBgColor,p=e.barSize,h=(e.fontFamily,e.fontSize,e.fontStyle,e.textColor,e.showPercentage,e.showMarker,e.startValue),b=e.endValue,f=e.currentValue,g={width:"100%",height:"100%",padding:"0 10",overflow:"visible"},m=Math.max(20,r-20),O=function(e,t,r,n){return s(e,t,r)*n}(h,b,f,m),v=t+"-lg",j="string"!=typeof d;return a.createElement("svg",{style:g,width:m,height:i},a.createElement("defs",null,a.createElement("linearGradient",{id:v},a.createElement("stop",{offset:0,stopColor:u}),a.createElement("stop",{offset:1,stopColor:c(u,l,o)}))),a.createElement("g",{transform:"translate(0, "+i/2+")"},j&&a.createElement("defs",null,a.createElement(n.b,{id:"barBgGradient",gradient:d})),a.createElement("rect",{rx:p/2,ry:p/2,fill:j?"url(#barBgGradient)":d,height:p,width:m}),a.createElement("rect",{rx:p/2,ry:p/2,fill:"url(#"+v+")",height:p,width:O}),this.renderMarker(O)))},t.displayName="PercentageBar",t}(a.PureComponent),u={typeId:"2d17f148-e258-4e1d-9db8-35a866f8e468",ver:"1.0",propsSchema:{barBaseColor:Object(n.j)("rgb(23,117,234)"),barBgColor:Object(n.r)("rgb(31,46,80)"),barSize:Object(n.m)(10),brighter:Object(n.I)(!0),currentValue:Object(n.m)(75),dumb:Object(n.I)(!1),endValue:Object(n.m)(100),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(15),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),height:Object(n.A)(50),klevel:Object(n.B)(3),showMarker:Object(n.I)(!0),showPercentage:Object(n.I)(!0),startValue:Object(n.m)(0),textColor:Object(n.j)("#108CEE"),width:Object(n.A)(150)},eventsSchema:{},component:l};r.d(t,"settings",(function(){return d}));var d={metadata:u,publicProps:{textColor:!0,barColor:!0,currentValue:!0,startValue:!0,endValue:!0}}},1332:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(3),a=r(22),s=r(2),c=r(1),l=r(18),u=r(10),d=[u.e,u.f,u.h,Object(u.j)("series"),u.v,u.r,u.w,u.x,u.s],p=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=function(e){r.container=e},r}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(s.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(s.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(a.init)(Object(l.findDOMNode)(this.container),null);var e=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e)},t.prototype.componentWillUnmount=function(){Object(a.dispose)(this.echarts)},t.prototype.render=function(){return c.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.displayName="TimeSeriesBarChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,themeName:"light"},t}(c.Component),h=r(17),b={typeId:"d8e16173-d095-4e1e-8838-5b6c4e5d9cc1",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.q)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.w)([[[1503474800837,null],[1503474810837,33],[1503474820837,34],[1503474830837,null]],[[1503474800837,null],[1503474810837,35],[1503474820837,35],[1503474830837,null]],[[1503474800837,null],[1503474810837,55],[1503474820837,53],[1503474830837,null]],[[1503474800837,null],[1503474810837,26],[1503474820837,20],[1503474830837,null]]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(i.n)("rect"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.s)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf"]),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.x)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:p,propsResolver:h.a};r.d(t,"settings",(function(){return f}));var f={metadata:b}},1333:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(181),o=r(0),a=r(13),s=r(14),c=r(24),l=r(234),u={typeId:"c65a06a7-e309-4e5f-9283-778da9abc2b8",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(o.K)("chord"),width:Object(o.A)(150),height:Object(o.A)(150),degree:Object(o.A)(230)},s.c),s.b),s.a),propsResolver:c.a,component:l.a};r.d(t,"settings",(function(){return d}));var d=Object(n.__assign)(Object(n.__assign)({},i.commonSettings),{metadata:u})},1334:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(181),o=r(0),a=r(14),s=r(13),c=r(24),l=r(234),u={typeId:"27195d9a-a141-4590-a474-c843884c74ff",ver:"1.0",mediaType:s.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(o.K)("pie"),width:Object(o.A)(150),height:Object(o.A)(150),degree:Object(o.A)(230)},a.c),a.b),a.a),propsResolver:c.a,component:l.a};r.d(t,"settings",(function(){return d}));var d=Object(n.__assign)(Object(n.__assign)({},i.commonSettings),{metadata:u})},1335:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(32),a=r(5),s=r(17),c=r(96),l=r(81),u=r(114),d={typeId:"5a86883d-3c9d-4665-baa9-1b94c707fc83",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{seriesType:Object(a.r)("lineBar"),customizedSeries:Object(u.b)([]),ifSmooth:Object(i.I)(!1)}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.b,propsResolver:s.a};r.d(t,"settings",(function(){return p}));var p={metadata:d}},1336:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(32),a=r(5),s=r(17),c=r(96),l=r(81),u=r(114),d={typeId:"87721d3b-0e6c-402f-9905-391c724b1041",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{stackEnable:Object(i.I)(!0),seriesMap:Object(a.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"PM2.5"},{xCol:0,yCol:2,seriesName:"PM10"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"PM2.5",type:"number"},{name:"PM10",type:"number"}],data:[["\u5317\u4eac",30,67],["\u4e0a\u6d77",39,68],["\u5e7f\u5dde",21,39]]}}),barWidth:Object(i.E)(35),customizedSeries:Object(u.c)([])}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.b,propsResolver:s.a};r.d(t,"settings",(function(){return p}));var p={metadata:d}},1337:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(17),s=r(96),c=r(155),l=r(114),u={typeId:"d12345fd-f946-4b64-94e9-532019cdb8b2",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"PM2.5"},{xCol:0,yCol:2,seriesName:"PM10"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"PM2.5",type:"number"},{name:"PM10",type:"number"}],data:[["\u5317\u4eac",30,67],["\u4e0a\u6d77",39,68],["\u5e7f\u5dde",21,39]]}}),stackEnable:Object(i.I)(!0),customizedSeries:Object(l.c)([])}),component:s.a,eventsSchema:c.a.eventsSchema,interactSessionMiddleware:c.a.interactSessionMiddleware,propsResolver:a.a};r.d(t,"settings",(function(){return d}));var d={metadata:u}},1338:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"ffd75623-b334-44b9-9392-bf8143989f38",ver:"1.1",propsSchema:{width:Object(n.A)(300),height:Object(n.A)(300),imageKey:Object(n.K)("placeholder"),dumb:n.I},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1339:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"4785ebca-e655-4f4f-a0a7-fa0b8016e516",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(105),imageKey:Object(n.K)("flow/meter.svg?etag=82f2ba6c149524036cf00a4a5a71c553")},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1340:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"d3c09216-0baa-4a2d-9cea-6a561dfaa6fe",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(183),imageKey:Object(n.K)("flow/meterdigital.svg?etag=d901443539bce87c18dceb7c679c1fdb"),width:Object(n.A)(171)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1341:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"e8793f51-0703-494d-b49c-277709cde722",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(202),imageKey:Object(n.K)("flow/motor.svg?etag=e70d4a1c631ca18bd9df537efd66774b"),width:Object(n.A)(316)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1342:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"92ed6e35-353b-4ff7-ba85-16754263251a",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(43),imageKey:Object(n.K)("flow/pipe.svg?etag=6788f608728e1c3d86dd06d5dbf3275c"),width:Object(n.A)(105)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1343:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"63d77dbf-4ab8-4cc1-a341-7473798ec41f",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(88),imageKey:Object(n.K)("flow/pipe_cross.svg?etag=d60504013d4e297c5235787062ddafc8"),width:Object(n.A)(98)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1344:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"2fdd81cf-f224-4686-bf20-b7be7d5d5ef4",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(89),imageKey:Object(n.K)("flow/pipe_curved.svg?etag=decd906801fe508318c01a179ca3868c"),width:Object(n.A)(93)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1345:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"2dde46f8-f5e7-445c-889e-ee26578fa525",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(85),imageKey:Object(n.K)("flow/pipe_t.svg?etag=63e2d9d5511c65ad63bad6b7b89acae4"),width:Object(n.A)(65)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1346:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"807f7529-ec32-4e2e-bd00-3dbf4c1f0e30",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(195),imageKey:Object(n.K)("flow/pump.svg?etag=5ae7a99d1d8b406a9bc333eb6d0fdbfe"),width:Object(n.A)(270)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1347:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"7ed33b1b-bd15-43cc-9f4d-60c596c6db56",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(245),imageKey:Object(n.K)("flow/transformer.svg?etag=d58b62d7c6eaaee65df8b702017f5ead"),width:Object(n.A)(245)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1348:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"799ab483-b28c-401a-98e2-5b4c03d8ec06",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(86),imageKey:Object(n.K)("flow/valve.svg?etag=71743f9e4c06d9fa9ff1a7faa021079a"),width:Object(n.A)(129)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},1349:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(42),o={typeId:"c4758e89-0f2a-4528-bae0-2f1037dba585",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(86),imageKey:Object(n.K)("flow/valve2.svg?etag=faa61a34ddf82e509e0dc084a804f43a"),width:Object(n.A)(129)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o}},135:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(32),o=r(5),a=r(17),s=r(249),c=r(244),l={typeId:"2089e5ee-9b98-41a3-8be6-fb751f42d4e6",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.q)(""),xAxisUnit:Object(o.q)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(s.b)([]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),height:Object(n.A)(200),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.j)({seriesOpt:[{xCol:1,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25],["\u6df1\u5733",13,45],["\u96c4\u5b89",25,39],["\u676d\u5dde",23,20],["\u56db\u5ddd",24,23]]}}),seriesType:Object(o.r)("scatter"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!0),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(o.t)("circle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.x)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),xMin:Object(o.a)("auto"),xMax:Object(o.a)("auto")},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.b,component:c.a,propsResolver:a.a}},1350:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(238),o={typeId:"6a757758-ef53-439b-abce-ffd1c95b0684",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(50),iconColor:Object(n.j)("#3399FF"),iconKey:Object(n.K)("common/idea.svg"),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),width:Object(n.A)(50)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o,publicProps:{iconColor:!0}}},1351:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(238),o={typeId:"6a757758-ef53-439b-abce-ffd1c95b0684",ver:"1.1",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(50),iconColor:Object(n.j)("#3399FF"),iconKey:Object(n.K)("common/idea.svg"),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),width:Object(n.A)(50)},component:i.a};r.d(t,"settings",(function(){return a}));var a={metadata:o,publicProps:{iconColor:!0}}},1352:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(17),a=r(239),s={typeId:"601c2a93-55f9-4dc0-b36c-8bd0e35ab3af",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.q)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.s)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde","\u6df1\u5733","\u96c4\u5b89","\u676d\u5dde","\u56db\u5ddd"]),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[33,35,26,13,25,23,34],[25,38,25,45,39,20,23]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(200),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(48),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.s)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!1),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(i.t)("path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.x)("axis"),width:Object(n.A)(350),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:a.a,propsResolver:o.a};r.d(t,"settings",(function(){return c}));var c={metadata:s}},1353:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(32),a=r(5),s=r(17),c=r(240),l=r(184),u=r(251),d={typeId:"601c2a93-55f9-4dc0-b36c-8bd0e35ab3af",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{paddingBottom:Object(i.B)(48),seriesMap:Object(a.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25],["\u6df1\u5733",13,45],["\u96c4\u5b89",25,39],["\u676d\u5dde",23,20],["\u56db\u5ddd",24,23]]}}),showAreaStyle:Object(i.I)(!0),showDataZoomX:Object(i.I)(!1),showSplitLineX:Object(i.I)(!1),showXAxisTick:Object(i.I)(!1),showYAxisLine:Object(i.I)(!1),showYAxisTick:Object(i.I)(!1),symbol:Object(a.t)("path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z"),width:Object(i.A)(350),yAxisTextColor:Object(i.j)("#333"),customizedSeries:Object(u.a)([])}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.b,propsResolver:s.a};r.d(t,"settings",(function(){return p}));var p={metadata:d}},1354:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(239),a=r(17),s={typeId:"79883428-5dfd-40f8-b6b5-89dc0efbdf87",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.q)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.s)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde"]),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[33,45,26],[55,33,25]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(200),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.s)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(i.t)("emptyCircle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.x)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:o.a,propsResolver:a.a};r.d(t,"settings",(function(){return c}));var c={metadata:s}},1355:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(66),a=r(241),s=r(17),c={typeId:"8299f336-7cd7-4ae0-9fa7-4ecd54224078",ver:"1.0",propsSchema:{background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.s)(["\u5e7f\u5dde\u6e29\u5ea6","\u6df1\u5733\u6e29\u5ea6","\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6"]),centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[38,37,3,8]]),dumb:Object(n.I)(!1),height:Object(n.A)(230),hidden:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(i.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(i.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(60),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(o.c)(!1),series:Object(i.s)(["\u6e29\u5ea6"]),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(360)},eventsSchema:{},component:a.a,propsResolver:s.a};r.d(t,"settings",(function(){return l}));var l={metadata:c}},1356:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(66),a=r(17),s=r(241),c={typeId:"c50eff02-f934-4104-ba50-5014d004d39e",ver:"1.0",propsSchema:{background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.s)(["\u5e7f\u5dde\u6e29\u5ea6","\u6df1\u5733\u6e29\u5ea6","\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6"]),centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[16,12,14,8]]),dumb:Object(n.I)(!1),height:Object(n.A)(230),hidden:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(i.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(i.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(60),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(o.c)("radius"),series:Object(i.s)(["\u6e29\u5ea6"]),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(360)},eventsSchema:{},component:s.a,propsResolver:a.a};r.d(t,"settings",(function(){return l}));var l={metadata:c}},1357:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(32),a=r(5),s=r(17),c=r(113),l=r(242),u=r(66),d={typeId:"f4ccaf9a-a10e-49df-bce0-1fbbde94b974",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{inradius:Object(i.B)(0),width:Object(i.A)(250),height:Object(i.A)(180),startAngle:Object(i.A)(360),seriesMap:Object(u.a)({seriesOpt:[{xCol:0,yCol:1}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"PM2.5",type:"number"}],data:[["\u5317\u4eac",75],["\u4e0a\u6d77",10],["\u5e7f\u5dde",8],["\u6df1\u5733",7]]}})}),eventsSchema:{currentLegendSelected:a.o},interactSessionMiddleware:o.b,component:c.a,propsResolver:s.a};r.d(t,"settings",(function(){return p}));var p={metadata:d}},1358:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(17),s=r(113),c=r(185),l={typeId:"a49f5aaf-6734-4399-9a19-a8a1edfb1be5",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{inradius:Object(i.B)(18)}),eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:c.a.interactSessionMiddleware,component:s.a,propsResolver:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l}},1359:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(17),s=r(243),c=r(186),l=r(160),u={typeId:"076d6c27-7f64-445f-8b19-cc7d270b3a4e",ver:"1.0",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{showAreaStyle:Object(i.I)(!0),customizedSeries:Object(l.a)([])}),eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:c.a.interactSessionMiddleware,component:s.a,propsResolver:a.a};r.d(t,"settings",(function(){return d}));var d={metadata:u}},1360:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(249),s=r(17),c=r(244),l=r(135),u=Object(n.__assign)(Object(n.__assign)({},l.a),{ver:"1.0",typeId:"970502ae-a651-4df5-b632-8351125e4886",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{height:Object(i.A)(400),seriesMap:Object(a.a)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u4eba\u5747\u5bff\u547d",groupCol:4,labelCol:3,sizeCol:2}],dataTable:{headers:[{name:"GDP",type:"number"},{name:"\u4eba\u5747\u5bff\u547d",type:"number"},{name:"\u603b\u4eba\u53e3",type:"number"},{name:"\u56fd\u5bb6",type:"string"},{name:"\u5e74\u4efd",type:"number"}],data:[[28604,77,17096869,"Australia",1990],[31163,77.4,27662440,"Canada",1990],[1516,68,1154605773,"China",1990],[13670,74.7,10582082,"Cuba",1990],[28599,75,4986705,"Finland",1990],[29476,77.1,56943299,"France",1990],[31476,75.4,78958237,"Germany",1990],[28666,78.1,254830,"Iceland",1990],[1777,57.7,870601776,"India",1990],[29550,79.1,122249285,"Japan",1990],[2076,67.9,20194354,"North Korea",1990],[12087,72,42972254,"South Korea",1990],[24021,75.4,3397534,"New Zealand",1990],[43296,76.8,4240375,"Norway",1990],[10088,70.8,38195258,"Poland",1990],[19349,69.6,147568552,"Russia",1990],[10670,67.3,53994605,"Turkey",1990],[26424,75.7,57110117,"United Kingdom",1990],[37062,75.4,252847810,"United States",1990],[44056,81.8,23968973,"Australia",2015],[43294,81.7,35939927,"Canada",2015],[13334,76.9,1376048943,"China",2015],[21291,78.5,11389562,"Cuba",2015],[38923,80.8,5503457,"Finland",2015],[37599,81.9,64395345,"France",2015],[44053,81.1,80688545,"Germany",2015],[42182,82.8,329425,"Iceland",2015],[5903,66.8,1311050527,"India",2015],[36162,83.5,126573481,"Japan",2015],[1390,71.4,25155317,"North Korea",2015],[34644,80.7,50293439,"South Korea",2015],[34186,80.6,4528526,"New Zealand",2015],[64304,81.6,5210967,"Norway",2015],[24787,77.3,38611794,"Poland",2015],[23038,73.13,143456918,"Russia",2015],[19360,76.5,78665830,"Turkey",2015],[38225,81.4,64715810,"United Kingdom",2015],[53354,79.1,321773631,"United States",2015]]}}),seriesType:Object(o.r)("bubble"),width:Object(i.A)(800),isAutoMapping:Object(i.I)(!0),minSize:Object(i.A)(5),maxSize:Object(i.A)(80)}),eventsSchema:l.a.eventsSchema,interactSessionMiddleware:l.a.interactSessionMiddleware,component:c.a,propsResolver:s.a});r.d(t,"settings",(function(){return d}));var d={metadata:u}},1361:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(17),s=r(246),c=r(158),l={typeId:"167d81e0-bffa-466f-b8bd-2ba651ec6a16",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{barWidth:Object(i.E)(18),isTransverse:Object(i.I)(!0),paddingBottom:Object(i.B)(45),xAxisLabelFormatter:Object(i.L)("HH:mm"),seriesMap:Object(o.v)({seriesOpt:[{xCol:0,yCol:1,groupByCols:[3],seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,groupByCols:[3],seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[1503474810837,33,55,"\u5317\u4eac"],[1503474810837,35,26,"\u4e0a\u6d77"],[1503474820837,34,53,"\u5317\u4eac"],[1503474820837,35,20,"\u4e0a\u6d77"]]}}),showDataZoomX:Object(i.I)(!1),showSplitLineX:Object(i.I)(!0),showSplitLineY:Object(i.I)(!1)}),eventsSchema:c.a.eventsSchema,interactSessionMiddleware:c.a.interactSessionMiddleware,component:s.a,propsResolver:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l}},1362:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(247),a=r(17),s={typeId:"87c45277-ad83-4ef3-98de-abe804c03bfd",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.q)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.w)([[[1503474810837,33],[1503474820837,33]],[[1503474810837,35],[1503474820837,35]],[[1503474810837,26],[1503474820837,26]],[[1503474810837,55],[1503474820837,55]],[[1503474810837,33],[1503474820837,33]],[[1503474810837,25],[1503474820837,25]]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(80),series:Object(i.s)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5e7f\u5dde\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf","\u5e7f\u5dde\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(i.t)("emptyCircle"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.x)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:o.a,propsResolver:a.a};r.d(t,"settings",(function(){return c}));var c={metadata:s}},1363:function(e,t,r){"use strict";r.r(t);var n=r(0),i=r(5),o=r(17),a=r(247),s={typeId:"91651c64-a646-41b0-85b4-ec76c2d40663",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.q)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.w)([[[1503474810837,22],[1503474820837,22],[1503474830837,19],[1503474840837,17],[1503474850837,18],[1503474860837,17],[1503474870837,15]],[[1503474810837,21],[1503474820837,23],[1503474830837,17],[1503474840837,18],[1503474850837,19],[1503474860837,18],[1503474870837,17]],[[1503474810837,3],[1503474820837,4],[1503474830837,7],[1503474840837,7],[1503474850837,9],[1503474860837,10],[1503474870837,12]],[[1503474810837,12],[1503474820837,11],[1503474830837,18],[1503474840837,20],[1503474850837,21],[1503474860837,19],[1503474870837,20]]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(80),series:Object(i.s)(["\u5e7f\u5dde\u6e29\u5ea6","\u6df1\u5733\u6e29\u5ea6","\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6"]),showAreaStyle:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(i.t)("emptyCircle"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.x)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:a.a,propsResolver:o.a};r.d(t,"settings",(function(){return c}));var c={metadata:s}},1364:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(17),a=r(248),s=r(159),c={typeId:"91651c64-a646-41b0-85b4-ec76c2d40663",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},s.a.propsSchema),{showAreaStyle:Object(i.I)(!0)}),component:a.a,eventsSchema:s.a.eventsSchema,interactSessionMiddleware:s.a.interactSessionMiddleware,propsResolver:o.a};r.d(t,"settings",(function(){return l}));var l={metadata:c}},1365:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(13),s=r(14),c=r(252),l=r(24),u={typeId:"d0ce489d-f5d6-4d79-b20e-ec78c113c784",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(180),type:Object(i.K)("single"),lineHeightRatio:Object(o.y)(.4),lineWidthRatio:Object(o.y)(.6)},s.c),s.b),s.a),propsResolver:l.a,component:c.a};r.d(t,"settings",(function(){return d}));var d={metadata:u,publicProps:{fill:!0,stroke:!0}}},1366:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(5),a=r(13),s=r(14),c=r(252),l=r(24),u={typeId:"c26144ca-8b56-45fe-b235-e6d69b2f6aad",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(200),type:Object(i.K)("double"),lineHeightRatio:Object(o.y)(.4),lineWidthRatio:Object(o.y)(.5)},s.c),s.b),s.a),propsResolver:l.a,component:c.a};r.d(t,"settings",(function(){return d}));var d={metadata:u,publicProps:{fill:!0,stroke:!0}}},1367:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(14),s=r(24),c=r(250),l={typeId:"faf77185-b13a-4dfb-a59c-54f1379af27f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("basic"),num:Object(i.v)(5,{min:3,max:50})},a.c),a.b),a.a),propsResolver:s.a,component:c.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1368:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(14),s=r(24),c=r(250),l={typeId:"816118a6-2e04-4a12-86ef-70c766fa9a4f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("star"),num:Object(i.v)(5,{min:3,max:50}),radius:Object(i.v)(50,{min:1,max:100})},a.c),a.b),a.a),propsResolver:s.a,component:c.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1369:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(13),o=r(14),a=r(24),s=r(253),c={typeId:"df6d22af-2445-4905-86f8-a4776b4f96f2",ver:"1.0",mediaType:i.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({},o.c),o.b),o.a),propsResolver:a.a,component:s.a};r.d(t,"settings",(function(){return l}));var l={metadata:c,publicProps:{fill:!0,stroke:!0}}},1370:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(14),s=r(24),c=r(253),l={typeId:"c7b7c64c-9821-44e0-9421-8a7432dc6eac",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({cornerRadius:Object(i.A)(30)},a.c),a.b),a.a),propsResolver:s.a,component:c.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1371:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(153),s=r(24),c=r(14),l={typeId:"5620b53c-3603-4e6c-9e7a-ba1e0ae091eb",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("roundDiagonalCorner"),vertexRight:Object(i.A)(0),vertexLeft:Object(i.A)(20)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1372:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(153),s=r(24),c=r(14),l={typeId:"d061e690-5ce8-4062-9d5c-aeaef2c9b274",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("roundSameSideCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1373:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(154),s=r(24),c=r(14),l={typeId:"ccbc574c-9590-4246-b2f5-cefc2b52eb5b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipDiagonalCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1374:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(154),s=r(24),c=r(14),l={typeId:"1a510ace-03b6-4f43-8280-66afaa8f8b4b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipOneCorner"),vertexRight:Object(i.A)(50)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1375:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(153),s=r(24),c=r(14),l={typeId:"ba3527fe-2eca-4b61-a8a3-11468ebae714",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipRoundCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(20)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},1376:function(e,t,r){"use strict";r.r(t);var n=r(3),i=r(0),o=r(13),a=r(154),s=r(24),c=r(14),l={typeId:"95efbdbd-bbd2-40b8-9263-a3847c16da4b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipSameSideCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a};r.d(t,"settings",(function(){return u}));var u={metadata:l,publicProps:{fill:!0,stroke:!0}}},14:function(e,t,r){"use strict";var n=r(0),i=Object(n.k)([90,270,180,0,"outward","inward"],90),o=Object(n.e)(Object(n.w)({value:n.m,frequency:n.B,strokeColorA:n.j,strokeColorB:n.j,fillColorA:n.j,fillColorB:n.j},{defVal:{value:1,frequency:5,fillColorA:"#D0021B",fillColorB:"#5FB333",strokeColorA:"#BD031A",strokeColorB:"#51972b"}}));r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return c})),r.d(t,"d",(function(){return l}));var a={fill:Object(n.r)("#3399FF"),background:Object(n.j)("rgba(0,0,0,0.2)"),fillMax:Object(n.m)(100),fillMin:Object(n.m)(0),fillValue:Object(n.m)(100),fillDirection:i(90)},s={stroke:Object(n.j)("rgba(0,0,0,0)"),strokeWidth:Object(n.A)(1)},c={blinkValue:n.m,blinkRules:o([])},l=Object(n.k)(["none","triangle","square","dot","circle"],"none")},151:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(26),i=r(11),o=function(){function e(e){this._name=e.name,this._type=e.type,this._solver=e.solver,this._attr={},e.name||(this._attr[i.a.LEFT]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.LEFT],n.b.Eq,0)),this._attr[i.a.TOP]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.TOP],n.b.Eq,0)),this._attr[i.a.ZINDEX]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.ZINDEX],n.b.Eq,0)))}return e.prototype.toJSON=function(){return{name:this.name,left:this.left,top:this.top,width:this.width,height:this.height}},e.prototype.toString=function(){JSON.stringify(this.toJSON(),void 0,2)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this._getAttrValue(i.a.LEFT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this._getAttrValue(i.a.RIGHT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._getAttrValue(i.a.WIDTH)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._getAttrValue(i.a.HEIGHT)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intrinsicWidth",{get:function(){return this._intrinsicWidth},set:function(e){if(void 0!==e&&e!==this._intrinsicWidth){var t=this._getAttr(i.a.WIDTH);void 0===this._intrinsicWidth&&this._solver.addEditVariable(t,n.d.create(this._name?998:999,1e3,1e3)),this._intrinsicWidth=e,this._solver.suggestValue(t,e),this._solver.updateVariables()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intrinsicHeight",{get:function(){return this._intrinsicHeight},set:function(e){if(void 0!==e&&e!==this._intrinsicHeight){var t=this._getAttr(i.a.HEIGHT);void 0===this._intrinsicHeight&&this._solver.addEditVariable(t,n.d.create(this._name?998:999,1e3,1e3)),this._intrinsicHeight=e,this._solver.suggestValue(t,e),this._solver.updateVariables()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this._getAttrValue(i.a.TOP)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this._getAttrValue(i.a.BOTTOM)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerX",{get:function(){return this._getAttrValue(i.a.CENTERX)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this._getAttrValue(i.a.CENTERY)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._getAttrValue(i.a.ZINDEX)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),e.prototype.getValue=function(e){return this._attr[e]?this._attr[e].value():void 0},e.prototype._getAttr=function(e){if(this._attr[e])return this._attr[e];switch(this._attr[e]=new n.e,e){case i.a.RIGHT:this._getAttr(i.a.LEFT),this._getAttr(i.a.WIDTH),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.LEFT].plus(this._attr[i.a.WIDTH])));break;case i.a.BOTTOM:this._getAttr(i.a.TOP),this._getAttr(i.a.HEIGHT),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.TOP].plus(this._attr[i.a.HEIGHT])));break;case i.a.CENTERX:this._getAttr(i.a.LEFT),this._getAttr(i.a.WIDTH),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.LEFT].plus(this._attr[i.a.WIDTH].divide(2))));break;case i.a.CENTERY:this._getAttr(i.a.TOP),this._getAttr(i.a.HEIGHT),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.TOP].plus(this._attr[i.a.HEIGHT].divide(2))))}return this._solver.updateVariables(),this._attr[e]},e.prototype._getAttrValue=function(e){return this._getAttr(e).value()},e}()},153:function(e,t,r){"use strict";var n=r(1),i=r(15),o=r(0),a=r(46),s=r(47),c=function(e,t,r,n,i){void 0===i&&(i=0);var o=Math.min(t,r)/2,a=Math.min(o,n),s=Math.min(o,i);switch(e){case"snipRoundCorner":return["M0 "+s,"Q 0 0, "+s+" 0","H "+(t-a),"L "+t+" "+a,"V "+r,"H 0","Z"].join(" ");case"roundSameSideCorner":return["M0 "+a,"Q 0 0, "+a+" 0","H "+(t-a),"Q "+t+" 0, "+t+" "+a,"V "+(r-s),"Q "+t+" "+r+", "+(t-s)+" "+r,"H "+s,"Q 0 "+r+", 0 "+(r-s),"Z"].join(" ");case"roundDiagonalCorner":return["M0 "+s,"Q 0 0, "+s+" 0","H "+(t-a),"Q "+t+" 0, "+t+" "+a,"V "+(r-s),"Q "+t+" "+r+", "+(t-s)+" "+r,"H "+a,"Q 0 "+r+", 0 "+(r-a),"Z"].join(" ")}};r.d(t,"a",(function(){return u}));var l=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.mergedFill,l=e.isMergedFillGradient,u=e.stroke,d=e.strokeWidth,p=e.vertexRight,h=e.vertexLeft;return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:s})),n.createElement("path",{d:c(r,i,a,p,h),fill:l?"url(#"+t+")":s,stroke:u,strokeWidth:d}))};l.displayName="SnipRoundRectangle",l.defaultProps={strokeWidth:1};var u=Object(i.a)(s.a,a.a)(l)},154:function(e,t,r){"use strict";var n=r(1),i=r(15),o=r(0),a=r(46),s=r(47),c=function(e,t,r,n,i){void 0===i&&(i=0);var o=Math.min(t,r)/2,a=Math.min(o,n),s=Math.min(o,i);switch(e){case"snipOneCorner":return["0,0",t-a+",0",t+","+a,t+","+r,"0,"+r].join(" ");case"snipSameSideCorner":return[a+",0",t-a+",0",t+","+a,t+","+(r-s),t-s+","+r,s+","+r,"0,"+(r-s),"0,"+a].join(" ");case"snipDiagonalCorner":return[s+",0",t-a+",0",t+","+a,t+","+(r-s),t-s+","+r,a+","+r,"0,"+(r-a),"0,"+s].join(" ")}};r.d(t,"a",(function(){return u}));var l=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.mergedFill,l=e.isMergedFillGradient,u=e.stroke,d=e.strokeWidth,p=e.vertexRight,h=e.vertexLeft;return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:s})),n.createElement("polygon",{points:c(r,i,a,p,h),fill:l?"url(#"+t+")":s,stroke:u,strokeWidth:d}))};l.displayName="SnipRectangle",l.defaultProps={strokeWidth:1};var u=Object(i.a)(s.a,a.a)(l)},155:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(3),i=r(0),o=r(5),a=r(17),s=r(96),c=r(81),l={typeId:"945ee87d-e47b-48fe-99c5-b621cd7a6088",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{isTransverse:Object(i.I)(!0),seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38]]}}),showDataZoomX:Object(i.I)(!1),showSplitLineX:Object(i.I)(!0),showSplitLineY:Object(i.I)(!1),paddingBottom:Object(i.B)(45),paddingTop:Object(i.B)(52)}),component:s.a,eventsSchema:c.a.eventsSchema,interactSessionMiddleware:c.a.interactSessionMiddleware,propsResolver:a.a}},158:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),i=r(32),o=r(5),a=r(17),s=r(246),c={typeId:"d8e16173-d095-4e1e-8838-5b6c4e5d9cc1",ver:"1.1",propsSchema:{barWidth:Object(n.E)(25),barGap:Object(n.u)(30),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.q)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),groupFormatter:Object(o.k)("{groupCol}/{yHeader}"),height:Object(n.A)(300),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.v)({seriesOpt:[{xCol:0,yCol:1,groupByCols:[3],seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,groupByCols:[3],seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[1503474810837,33,55,"\u5317\u4eac"],[1503474810837,35,26,"\u4e0a\u6d77"],[1503474820837,34,53,"\u5317\u4eac"],[1503474820837,35,20,"\u4e0a\u6d77"]]}}),seriesType:Object(o.r)("bar"),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.x)("axis"),width:Object(n.A)(420),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),showBarLabel:Object(n.I)(!1),stackEnable:Object(n.I)(!1)},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.b,component:s.a,propsResolver:a.a}},159:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0),i=r(32),o=r(5),a=r(17),s=r(248),c={typeId:"87c45277-ad83-4ef3-98de-abe804c03bfd",ver:"1.1",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.q)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),groupFormatter:Object(o.k)("{groupCol}/{yHeader}"),height:Object(n.A)(300),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(o.s)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5e7f\u5dde\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf","\u5e7f\u5dde\u7a7a\u6c14\u8d28\u91cf"]),seriesMap:Object(o.v)({seriesOpt:[{xCol:0,yCol:1,groupByCols:[2],seriesName:"\u6e29\u5ea6"}],dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[1503474810837,22,"\u5317\u4eac"],[1503474810837,21,"\u4e0a\u6d77"],[1503474810837,3,"\u5e7f\u5dde"],[1503474810837,12,"\u6df1\u5733"],[1503474820837,22,"\u5317\u4eac"],[1503474820837,23,"\u4e0a\u6d77"],[1503474820837,4,"\u5e7f\u5dde"],[1503474820837,11,"\u6df1\u5733"],[1503474830837,19,"\u5317\u4eac"],[1503474830837,17,"\u4e0a\u6d77"],[1503474830837,7,"\u5e7f\u5dde"],[1503474830837,18,"\u6df1\u5733"],[1503474840837,17,"\u5317\u4eac"],[1503474840837,18,"\u4e0a\u6d77"],[1503474840837,7,"\u5e7f\u5dde"],[1503474840837,20,"\u6df1\u5733"],[1503474850837,18,"\u5317\u4eac"],[1503474850837,19,"\u4e0a\u6d77"],[1503474850837,9,"\u5e7f\u5dde"],[1503474850837,21,"\u6df1\u5733"],[1503474860837,17,"\u5317\u4eac"],[1503474860837,18,"\u4e0a\u6d77"],[1503474860837,10,"\u5e7f\u5dde"],[1503474860837,19,"\u6df1\u5733"],[1503474870837,15,"\u5317\u4eac"],[1503474870837,17,"\u4e0a\u6d77"],[1503474870837,12,"\u5e7f\u5dde"],[1503474870837,20,"\u6df1\u5733"]]}}),seriesType:Object(o.r)("line"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(o.t)("emptyCircle"),symbolSize:Object(n.E)(4),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.x)("axis"),width:Object(n.A)(422),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),stackEnable:Object(n.I)(!1)},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.b,component:s.a,propsResolver:a.a}},160:function(e,t,r){"use strict";var n=r(0),i=Object(n.k)(["polygon","circle"]),o=r(5),a=(Object(n.e)(Object(n.d)([Object(n.w)({type:Object(n.g)("radar"),seriesName:o.m,color:n.r}),Object(n.w)({type:Object(n.g)("arearadar"),seriesName:o.m,color:n.r,areaStyleColor:n.r})])),Object(n.e)(Object(n.w)({type:Object(n.g)("radar"),seriesName:o.m,color:n.r},{defVal:{type:"radar",seriesName:"",color:"#108CEE"}}))),s=Object(n.e)(Object(n.w)({type:Object(n.g)("arearadar"),seriesName:o.m,color:n.r,areaStyleColor:n.r},{defVal:{type:"arearadar",seriesName:"",color:"#108CEE",areaStyleColor:{type:"circle",pos:{x:.5,y:.5},radius:.5,stops:[{offset:0,color:"rgba(16, 140, 238, 0)"},{offset:1,color:"rgba(16, 140, 238, .25)"}]}}})),c=r(2),l=function(e,t){return e\n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),height:Object(n.A)(200),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),seriesType:Object(o.r)("line"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(o.t)("circle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.x)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto")},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},component:s.a,interactSessionMiddleware:i.b,propsResolver:c.a}},185:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(32),o=r(5),a=r(66),s=r(17),c=r(113),l={typeId:"c50eff02-f934-4104-ba50-5014d004d39e",ver:"1.1",propsSchema:{centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(a.b)([]),dumb:Object(n.I)(!1),height:Object(n.A)(200),inradius:Object(n.B)(0),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(36),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(a.c)("radius"),seriesMap:Object(a.a)({seriesOpt:[{xCol:0,yCol:1}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"}],data:[["\u5317\u4eac\u6e29\u5ea6",16],["\u4e0a\u6d77\u6e29\u5ea6",12],["\u5e7f\u5dde\u6e29\u5ea6",14],["\u6df1\u5733\u6e29\u5ea6",8]]}}),seriesType:Object(o.r)("pie"),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),startAngle:Object(n.A)(90),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(300)},eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:i.b,component:c.a,propsResolver:s.a}},186:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(32),o=r(5),a=r(17),s=r(160),c=r(243),l={typeId:"ffefb5c9-6d3c-49b9-866d-2a354244f497",ver:"1.0",propsSchema:{centerX:Object(n.B)(52),centerY:Object(n.B)(46),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(s.b)([]),dumb:Object(n.I)(!1),height:Object(n.A)(270),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("center"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(14),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("bottom"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),radarBgBorderColor:Object(n.j)("#CBD3E0"),radarBgLineColor:Object(n.j)("rgba(203, 211, 224, 0.5)"),radarNameColor:Object(n.j)("#333"),radarNameFontFamily:Object(n.n)("sans-serif"),radarNameFontSize:Object(n.o)(12),radarNameFontStyle:Object(n.p)("normal"),radarNameFontWeight:Object(n.q)("normal"),radarShape:Object(s.d)("polygon"),radius:Object(n.B)(63),seriesMap:Object(s.c)({seriesOpt:[{xCol:0,yCol:3,seriesName:"\u5317\u4eac",maxCol:1,minCol:2},{xCol:0,yCol:4,seriesName:"\u4e0a\u6d77"}],dataTable:{headers:[{name:"\u5929\u6c14\u7c7b\u76ee",type:"string"},{name:"max",type:"number"},{name:"min",type:"number"},{name:"\u5317\u4eac",type:"number"},{name:"\u4e0a\u6d77",type:"number"}],data:[["\u6e29\u5ea6",50,-30,30,37],["\u7a7a\u6c14\u8d28\u91cf",50,0,35,42],["\u6e7f\u5ea6",100,0,85,84],["PM2.5",120,0,107,88],["\u98ce\u529b",17,0,14,12],["\u7d2b\u5916\u7ebf",400,10,280,332]]}}),seriesType:Object(o.r)("radar"),showAreaStyle:Object(n.I)(!1),showLegend:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(260)},eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:i.b,component:c.a,propsResolver:a.a}},22:function(e,exports){e.exports=echarts},234:function(e,t,r){"use strict";var n=r(1),i=r(15),o=r(0),a=r(46),s=r(47),c=function(e){return e%180==90?1/0:e%180==-90?-1/0:Math.tan(e*Math.PI/180)},l=function(e){return function(t,r,n){var i=function(e,t,r,n,i,o){switch(console.assert(t>=0&&r>=0,"cx cy must be non-negative number"),console.assert(n>=i,"semiMajor must >= semiMinor"),console.assert(0<=o&&o<=360,"degree must be within [0, 360]"),o){case 0:case 360:return"h"===e?{x:t,y:r-i}:{x:t,y:r-n};case 90:return"h"===e?{x:t-n,y:r}:{x:t-i,y:r};case 180:return"h"===e?{x:t,y:r+i}:{x:t,y:r+n};case 270:return"h"===e?{x:t+n,y:r}:{x:t+i,y:r}}var a,s;return s="h"===e?Math.sqrt(1/(Math.pow(c(o)/n,2)+Math.pow(1/i,2))):Math.sqrt(1/(Math.pow(c(o)/i,2)+Math.pow(1/n,2))),a=-1*(s=o<90||o>270?s:-s)*c(o),{x:a+=t,y:s=r-s}}(t>r?"h":"v",t/2,r/2,Math.max(t,r)/2,Math.min(t,r)/2,n),o=i.x,a=i.y;return"M "+t/2+" 0"+("pie"===e?"L "+t/2+" "+r/2:"")+"L "+o+" "+a+"A "+t/2+" "+r/2+" "+(n<=180?"0 0 1":"0 1 1")+" "+t/2+" 0 z"}},u=l("pie"),d=l("chord");r.d(t,"a",(function(){return h}));var p=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.degree,c=e.mergedFill,l=e.isMergedFillGradient,p=e.stroke,h=e.strokeWidth,b=360===s?n.createElement("ellipse",{x:0,y:0,cx:i/2,cy:a/2,rx:i/2,ry:a/2,fill:l?"url(#"+t+")":c,stroke:p,strokeWidth:h}):n.createElement("path",{d:("pie"===r?u:d)(i,a,s),fill:l?"url(#"+t+")":c,stroke:p,strokeWidth:h});return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:c})),b)};p.displayName="Pie",p.defaultProps={strokeWidth:1};var h=Object(i.a)(s.a,a.a)(p)},238:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(3),i=r(1),o=r(33),a=r(112),s=r.n(a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.state={iconKey:t.iconKey,svgFileContent:"",loaded:!1},r}return Object(n.__extends)(t,e),t.prototype.componentDidMount=function(){this.hasMounted=!0,this.fetchSVGFile()},t.prototype.componentWillReceiveProps=function(e){var t=this;e.iconKey!==this.state.iconKey&&this.setState({iconKey:e.iconKey},(function(){t.fetchSVGFile()}))},t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.fetchSVGFile=function(){var e=this;this.setState({loaded:!1}),fetch(this.props.assetUtils.toWidgetAssetUrl(this.state.iconKey,"Icon")).then((function(e){return e.text()})).then((function(t){e.hasMounted&&e.setState({loaded:!0,svgFileContent:t})}))},t.prototype.render=function(){var e=this.props,t=e.id,r=e.iconColor,n=e.paddingBottom,o=e.paddingLeft,a=e.paddingRight,c=e.paddingTop,l=this.state,u=l.svgFileContent,d=l.loaded,p="url('data:image/svg+xml;utf8,"+u.trim().replace(/\#666666/gi,"string"==typeof r&&"#"===r[0]?s()(r).css():r).replace(/\n/gi,"")+"')";return i.createElement("div",{id:"widget-"+t,style:{width:"100%",height:"100%",overflow:"hidden",paddingBottom:n,paddingLeft:o,paddingRight:a,paddingTop:c}},d&&i.createElement("div",{style:{height:"100%",background:p+" no-repeat center center"}}))},t.displayName="Icon",t=Object(n.__decorate)([Object(o.c)("assetUtils")],t)}(i.Component)},239:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(3),i=r(22),o=r(2),a=r(1),s=r(18),c=r(10),l=[c.e,c.f,c.h,Object(c.j)("series"),c.v,c.b,c.w,c.x,c.d],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(o.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="LineChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,stackEnable:!1,ifSmooth:!1,symbol:"emptyCircle"},t}(a.Component)},24:function(e,t,r){"use strict";var n,i,o,a=r(3),s=r(2),c=(i=(n={minProp:"fillMin",maxProp:"fillMax"}).minProp,o=n.maxProp,function(e){var t=e.requestProps,r=e.currentProps,n=Object(a.__assign)({},t),c=r[i],l=r[o],u=Object(s.has)(t,i),d=Object(s.has)(t,o);return u&&d?t[i]>t[o]&&(n[i]=c,n[o]=l):u?t[i]>l&&(n[i]=c):d&&t[o]=3){var o=e/2,a=t/2,s=i/100,c=[];switch(n){case"star":for(var l=0;l<2*r;l++){var u=180/r*l*Math.PI/180-Math.PI/2,d=void 0,p=void 0;l%2?(d=Math.cos(u)*o*s+e/2,p=Math.sin(u)*a*s+t/2):(d=Math.cos(u)*o+e/2,p=Math.sin(u)*a+t/2),c.push(d+" "+p)}break;case"basic":default:for(l=0;l=0&&o%2==0,"size should be a non-negative even number");var c,l=o/2;switch(r){case"triangle":c=i.createElement("path",{d:"M 0 0 L "+o+" "+o/2+" L 0 "+o+" z"});break;case"square":c=i.createElement("rect",{x:"0",y:"0",width:o,height:o,strokeWidth:0,fill:n});break;case"dot":c=i.createElement("circle",{cx:l,cy:l,r:l,strokeWidth:0,stroke:"none",fill:n});break;case"circle":console.assert("number"==typeof s&&s>0,"strokeWidth should be a positive number"),c=i.createElement("circle",{cx:l,cy:l,r:l-Math.ceil(s/2),strokeWidth:s,stroke:n,fill:"none"});break;default:throw new Error("no marker type provided")}return i.createElement(a,{id:t,color:n,size:o},c)};s.defaultProps={color:"red"};var c=r(55);r.d(t,"a",(function(){return f}));var l=function(e){return 2*(e-1)+10},u=function(e){return!!e&&"string"==typeof e&&"none"!==e},d=function(e){return u(e)},p=function(e){return u(e)},h=function(e){var t=e.endpointStart,r=e.endpointEnd;return d(t)||p(r)},b=function(e){var t=e.startX,r=e.startY,n=e.endX,i=e.endY,o=function(e){var t={dx1:0,dy1:0,dx2:0,dy2:0};if(h(e)){var r=e.startX,n=e.startY,i=e.endX,o=e.endY,a=Math.abs(r-i),s=Math.abs(n-o),c=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));if(0===c)t={dx1:0,dy1:0,dx2:0,dy2:0};else{var u=l(e.strokeWidth),b=u/c*a,f=u/c*s;d(e.endpointStart)&&(t.dx1=b,t.dy1=f),p(e.endpointEnd)&&(t.dx2=b,t.dy2=f)}}else t={dx1:0,dy1:0,dx2:0,dy2:0};return t}(e),a=o.dx1,s=o.dy1,c=o.dx2,u=o.dy2;return ti?{x1:t+a,y1:r-s,x2:n-c,y2:i+u}:t>n&&r>=i?{x1:t-a,y1:r-s,x2:n+c,y2:i+u}:t>=n&&r0;)r(e[i=o+(n=a>>1)],t)<0?(o=i+1,a-=n+1):a=n;return o},u=function(e,t,r){var n=l(e,t,r);return n===e.length?-1:0!==r(e[n],t)?-1:n},d=function(e,t,r){var n=l(e,t,r);if(n!==e.length){var i=e[n];if(0===r(i,t))return i}},p=function e(t,r){var n=this;this.copy=function(){return new e(n.first,n.second)},this.first=t,this.second=r},h=function(e){return function(t,r){return e(t.first,r)}},b=function(e,t,r){for(var n=0,i=0,o=e.length,a=t.length,s=[];n0?(s.push(l.copy()),++i):(s.push(l.copy()),++n,++i)}for(;n=0},n.find=function(e){return d(n._array,e,n._wrapped)},n.setDefault=function(e,t){var r=n._array,i=l(r,e,n._wrapped);if(i===r.length){var o=new p(e,t());return r.push(o),o}var a=r[i];if(0!==n._compare(a.first,e)){o=new p(e,t());return r.splice(i,0,o),o}return a},n.insert=function(e,t){var r=n._array,i=l(r,e,n._wrapped);if(i===r.length){var o=new p(e,t);return r.push(o),o}var a=r[i];if(0!==n._compare(a.first,e)){o=new p(e,t);return r.splice(i,0,o),o}return a.second=t,a},n.update=function(e){var r=n;if(e instanceof t){var i=e;n._array=b(n._array,i._array,n._compare)}else c(e,(function(e){r.insert(e.first,e.second)}))},n.erase=function(e){var t=n._array,r=u(t,e,n._wrapped);if(!(r<0))return t.splice(r,1)[0]},n.copy=function(){for(var e=new t(n._compare),r=e._array,i=n._array,o=0,a=i.length;o=","="][this._operator]+" 0 ("+this._strength.toString()+")"},e}(),C=0,E=function(){function e(){this._cnMap=g(S.Compare),this._rowMap=g(_.Compare),this._varMap=g(v.Compare),this._editMap=g(v.Compare),this._infeasibleRows=[],this._objective=new R,this._artificial=null,this._idTick=0}return e.prototype.createConstraint=function(e,t,r,n){void 0===n&&(n=m.required);var i=new S(e,t,r,n);return this.addConstraint(i),i},e.prototype.addConstraint=function(e){if(void 0!==this._cnMap.find(e))throw new Error("duplicate constraint");var t=this._createRow(e),r=t.row,n=t.tag,i=this._chooseSubject(r,n);if(i.type()===x.Invalid&&r.allDummies()){if(!A(r.constant()))throw new Error("unsatisfiable constraint");i=n.marker}if(i.type()===x.Invalid){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(i),this._substitute(i,r),this._rowMap.insert(i,r);this._cnMap.insert(e,n),this._optimize(this._objective)},e.prototype.removeConstraint=function(e){var t=this._cnMap.erase(e);if(void 0===t)throw new Error("unknown constraint");this._removeConstraintEffects(e,t.second);var r=t.second.marker,n=this._rowMap.erase(r);if(void 0===n){var i=this._getMarkerLeavingSymbol(r);if(i.type()===x.Invalid)throw new Error("failed to find leaving row");(n=this._rowMap.erase(i)).second.solveForEx(i,r),this._substitute(r,n.second)}this._optimize(this._objective)},e.prototype.hasConstraint=function(e){return this._cnMap.contains(e)},e.prototype.addEditVariable=function(e,t){if(void 0!==this._editMap.find(e))throw new Error("duplicate edit variable");if((t=m.clip(t))===m.required)throw new Error("bad required strength");var r=new y(e),n=new S(r,O.Eq,void 0,t);this.addConstraint(n);var i={tag:this._cnMap.find(n).second,constraint:n,constant:0};this._editMap.insert(e,i)},e.prototype.removeEditVariable=function(e){var t=this._editMap.erase(e);if(void 0===t)throw new Error("unknown edit variable");this.removeConstraint(t.second.constraint)},e.prototype.hasEditVariable=function(e){return this._editMap.contains(e)},e.prototype.suggestValue=function(e,t){var r=this._editMap.find(e);if(void 0===r)throw new Error("unknown edit variable");var n=this._rowMap,i=r.second,o=t-i.constant;i.constant=t;var a=i.tag.marker,s=n.find(a);if(void 0!==s)return s.second.add(-o)<0&&this._infeasibleRows.push(a),void this._dualOptimize();var c=i.tag.other;if(void 0!==(s=n.find(c)))return s.second.add(o)<0&&this._infeasibleRows.push(c),void this._dualOptimize();for(var l=0,u=n.size();l0&&s.type()!==x.Dummy){var l=this._objective.coefficientFor(s)/c;l1)throw new Error("breakPoint should be within [0, 1]");return{type:"linear",stops:[{color:t,offset:0},{color:t,offset:n},{color:r,offset:n},{color:r,offset:1}],deg:Object(i.degreeToPoints)(o)}}(t);case"circle":return function(e){var t,r,n,i=e.colorA,o=e.colorB,a=e.breakPoint,s=e.d;if("string"!=typeof i||"string"!=typeof i)throw new Error("can only merge 2 flat colors");if(a<0||a>1)throw new Error("breakPoint should be within [0, 1]");switch(s){case"outward":t=i,r=o,n=a;break;case"inward":t=o,r=i,n=1-a}return{type:"circle",stops:[{color:t,offset:0},{color:t,offset:n},{color:r,offset:n},{color:r,offset:1}],radius:n,pos:{x:.5,y:.5}}}(t)}},a=r(55);r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c}));var s=Object(n.f)((function(e){var t=e.fill,r=e.background,n=e.fillMax,i=function(e,t,r,n,i,a){if(i<=r)return console.assert(void 0!==t,"background not provided!"),t;if(i>=n)return console.assert(void 0!==e,"foreground not provided!"),e;console.assert(void 0!==r&&void 0!==n&&void 0!==i,"min max value should be provided!");var s=(i-r)/(n-r);if("number"==typeof a)return o("linear",{colorA:e,colorB:t,breakPoint:s,deg:a});if("string"==typeof a&&("inward"===a||"outward"===a))return o("circle",{colorA:e,colorB:t,breakPoint:s,d:a});throw new Error("error in mergeFillAndBg")}(t,r,e.fillMin,n,e.fillValue,e.fillDirection);return{mergedFill:i,isMergedFillGradient:Object(a.a)(i)}})),c=Object(n.f)((function(e){var t=e.background,r=e.fillMax;return function(e,t,r,n,o){return o=(o+180)%360,n<=t?(console.assert(void 0!==e,"background not provided!"),{maskInfo:{needMask:!0,breakPoint:1,color:e,deg:Object(i.degreeToPoints)(o)}}):n>=r?{maskInfo:{needMask:!1}}:(console.assert(void 0!==t&&void 0!==r&&void 0!==n,"min max value should be provided!"),{maskInfo:{needMask:!0,breakPoint:(r-n)/(r-t),color:e,deg:Object(i.degreeToPoints)(o)}})}(t,e.fillMin,r,e.fillValue,e.fillDirection)}))},460:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(26),i=r(11),o=r(67),a=r(151),s=n.d.create(0,1e3,1e3);function c(e,t){var r=new n.e;return this._solver.addConstraint(new n.a(r,n.b.Eq,t)),r}function l(e){return e?e.name?(this._subViews[e.name]=this._subViews[e.name]||new a.a({name:e.name,solver:this._solver}),this._subViews[e.name]._type=this._subViews[e.name]._type||e.type,this._subViews[e.name]):(this._subViews[e]=this._subViews[e]||new a.a({name:e,solver:this._solver}),this._subViews[e]):this._parentSubView}function u(e){var t=4;if(e.view1||"left"!==e.attr1)if(e.view1||"top"!==e.attr1)if(e.view2||"right"!==e.attr2)if(e.view2||"bottom"!==e.attr2)switch(e.attr1){case"left":case"right":case"centerX":case"leading":case"trailing":t=4;break;case"zIndex":t=6;break;default:t=5}else t=2;else t=1;else t=0;else t=3;return this._spacingVars=this._spacingVars||new Array(7),this._spacingExpr=this._spacingExpr||new Array(7),this._spacingVars[t]||(this._spacingVars[t]=new n.e,this._solver.addEditVariable(this._spacingVars[t],n.d.create(999,1e3,1e3)),this._spacingExpr[t]=this._spacingVars[t].multiply(-1),this._solver.suggestValue(this._spacingVars[t],this._spacing[t])),this._spacingExpr[t]}function d(e){var t,r=void 0!==e.multiplier?e.multiplier:1,a=void 0!==e.constant?e.constant:0;"default"===a&&(a=u.call(this,e));var d,p=l.call(this,e.view1)._getAttr(e.attr1);e.attr2===i.a.CONST?d=c.call(this,void 0,e.constant):(d=l.call(this,e.view2)._getAttr(e.attr2),1!==r&&a?d=d.multiply(r).plus(a):a?d=d.plus(a):1!==r&&(d=d.multiply(r)));var h=void 0!==e.priority&&e.priority<1e3?n.d.create(0,e.priority,1e3):s;switch(e.relation){case o.a.EQU:t=new n.a(p,n.b.Eq,d,h);break;case o.a.GEQ:t=new n.a(p,n.b.Ge,d,h);break;case o.a.LEQ:t=new n.a(p,n.b.Le,d,h);break;default:throw"Invalid relation specified: "+e.relation}this._solver.addConstraint(t)}var p=function(){function t(e){this._solver=new n.c,this._subViews={},this._parentSubView=new a.a({solver:this._solver}),this.setSpacing(e&&void 0!==e.spacing?e.spacing:8),e&&(void 0===e.width&&void 0===e.height||this.setSize(e.width,e.height),e.constraints&&this.addConstraints(e.constraints))}return t.prototype.setSize=function(e,t){return this._parentSubView.intrinsicWidth=e,this._parentSubView.intrinsicHeight=t,this},Object.defineProperty(t.prototype,"width",{get:function(){return this._parentSubView.intrinsicWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._parentSubView.intrinsicHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fittingWidth",{get:function(){return this._parentSubView.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fittingHeight",{get:function(){return this._parentSubView.height},enumerable:!0,configurable:!0}),t.prototype.setSpacing=function(t){switch(Array.isArray(t)?t.length:-1){case-1:t=[t,t,t,t,t,t,1];break;case 1:t=[t[0],t[0],t[0],t[0],t[0],t[0],1];break;case 2:t=[t[1],t[0],t[1],t[0],t[0],t[1],1];break;case 3:t=[t[1],t[0],t[1],t[0],t[0],t[1],t[2]];break;case 6:t=[t[0],t[1],t[2],t[3],t[4],t[5],1];break;case 7:break;default:throw"Invalid spacing syntax"}if(!function(e,t){if(e===t)return!0;if(!e||!t)return!1;for(var r=0;r<7;r++)if(e[r]!==t[r])return!1;return!0}(this._spacing,t)&&(this._spacing=t,this._spacingVars)){for(var r=0;r0?1/g*1e3:null,v=c(0),j=v[0],y=v[1];return r=function(){y((j+1)%m.length)},o=O,l=s(),a((function(){l.current=r}),[r]),a((function(){if(null!==o){var e=setInterval((function(){l.current()}),o);return function(){return clearInterval(e)}}}),[o]),i.createElement(e,Object(n.__assign)({},t,m[j]))}},d=function(e,t,r,n){return l((function(){if(!n||!n.length)return{frequency:0,colorSet:[{fill:e,stroke:t}]};var i=Object(o.find)(n,(function(e){return e.value===r}));return i?{frequency:i.frequency,colorSet:[{fill:i.fillColorA,stroke:i.strokeColorA},{fill:i.fillColorB,stroke:i.strokeColorB}]}:{frequency:0,colorSet:[{fill:e,stroke:t}]}}),[e,t,r,n])}},480:function(e,exports,t){var r={"./Announcement/1.0/setting.player":1323,"./AnnouncementList/1.0/setting.player":1324,"./BarChart/BasicBarChart/1.0/setting.player":1325,"./BarChart/BasicBarChart/1.1/setting.player":1058,"./BarChart/MixedLineBarChart/1.1/setting.player":1335,"./BarChart/StackedBarChart/1.1/setting.player":1336,"./BarChart/TransverseBarChart/1.1/setting.player":1059,"./BarChart/TransverseStackedBar/1.1/setting.player":1337,"./BasicMap/1.0/setting.player":1300,"./Button/1.0/setting.player":1326,"./ButtonTab/1.0/setting.player":1311,"./Clock/1.0/setting.player":1312,"./ConfigurationImage/1.1/setting.player":1338,"./ConfigurationImage/Meter/1.0/setting.player":1339,"./ConfigurationImage/MeterDigital/1.0/setting.player":1340,"./ConfigurationImage/Motor/1.0/setting.player":1341,"./ConfigurationImage/Pipe/1.0/setting.player":1342,"./ConfigurationImage/PipeCross/1.0/setting.player":1343,"./ConfigurationImage/PipeCurved/1.0/setting.player":1344,"./ConfigurationImage/PipeT/1.0/setting.player":1345,"./ConfigurationImage/Pump/1.0/setting.player":1346,"./ConfigurationImage/Tank/1.0/setting.player":1327,"./ConfigurationImage/Transformer/1.0/setting.player":1347,"./ConfigurationImage/Valve/1.0/setting.player":1348,"./ConfigurationImage/Valve2/1.0/setting.player":1349,"./Decoration/1.0/setting.player":1328,"./GaugeChart/1.0/setting.player":1304,"./GeoHeatmap/1.0/setting.player":1307,"./Icon/1.0/setting.player":1350,"./Icon/1.1/setting.player":1351,"./Iframe/1.0/setting.player":1308,"./Image/1.0/setting.player":1329,"./ImageList/1.0/setting.player":1330,"./Label/1.0/setting.player":1313,"./LayeredMap/1.0/setting.player":1314,"./LineChart/AreaChart/1.0/setting.player":1352,"./LineChart/AreaChart/1.1/setting.player":1353,"./LineChart/BasicLineChart/1.0/setting.player":1354,"./LineChart/BasicLineChart/1.1/setting.player":1102,"./MixedChart/CommonMixedChart/1.0/setting.player":1302,"./PercentageBar/1.0/setting.player":1331,"./PieChart/BasicPieChart/1.0/setting.player":1355,"./PieChart/BasicPieChart/1.1/setting.player":1103,"./PieChart/NightingaleChart/1.0/setting.player":1356,"./PieChart/NightingaleChart/1.1/setting.player":1104,"./PieChart/PieChart/1.1/setting.player":1357,"./PieChart/RoseChart/1.1/setting.player":1358,"./RadarChart/AreaRadarChart/1.0/setting.player":1359,"./RadarChart/BasicRadarChart/1.0/setting.player":1105,"./ScatterChart/BasicScatterChart/1.0/setting.player":1106,"./ScatterChart/BubbleChart/1.0/setting.player":1360,"./Scoreboard/1.0/setting.player":1305,"./Select/1.0/setting.player":1315,"./TelematicsMarkersMap/1.0/setting.player":1316,"./TelematicsTrackMap/1.0/setting.player":1301,"./Text/1.0/setting.player":1306,"./TimeSeriesBarChart/BasicTimeBarChart/1.0/setting.player":1332,"./TimeSeriesBarChart/BasicTimeBarChart/1.1/setting.player":1288,"./TimeSeriesBarChart/HorizontalTimeBarChart/1.1/setting.player":1361,"./TimeSeriesLineChart/BasicTimeSeriesLineChart/1.0/setting.player":1362,"./TimeSeriesLineChart/BasicTimeSeriesLineChart/1.1/setting.player":1289,"./TimeSeriesLineChart/TimeAreaChart/1.0/setting.player":1363,"./TimeSeriesLineChart/TimeAreaChart/1.1/setting.player":1364,"./VectorShapes/Arrow/Basic/1.0/setting.player":1365,"./VectorShapes/Arrow/DoubleArrow/1.0/setting.player":1366,"./VectorShapes/Callout/1.0/setting.player":1317,"./VectorShapes/Curve/1.0/setting.player":1303,"./VectorShapes/Ellipse/1.0/setting.player":1318,"./VectorShapes/Line/1.0/setting.player":1319,"./VectorShapes/Parallelogram/1.0/setting.player":1309,"./VectorShapes/PieAndChord/Chord/1.0/setting.player":1333,"./VectorShapes/PieAndChord/Pie/1.0/setting.player":1334,"./VectorShapes/PieAndChord/common/setting.player":181,"./VectorShapes/Polygon/BasicPolygon/1.0/setting.player":1367,"./VectorShapes/Polygon/StarPolygon/1.0/setting.player":1368,"./VectorShapes/Rectangle/1.0/setting.player":1369,"./VectorShapes/RoundCornerRectangle/1.0/setting.player":1370,"./VectorShapes/SnipRectangles/RoundDiagonalCornerRect/1.0/setting.player":1371,"./VectorShapes/SnipRectangles/RoundSameSideCornerRect/1.0/setting.player":1372,"./VectorShapes/SnipRectangles/SnipDiagonalCornerRect/1.0/setting.player":1373,"./VectorShapes/SnipRectangles/SnipOneCornerRect/1.0/setting.player":1374,"./VectorShapes/SnipRectangles/SnipRoundCornerRect/1.0/setting.player":1375,"./VectorShapes/SnipRectangles/SnipSameSideCornerRect/1.0/setting.player":1376,"./VectorShapes/Trapezoid/1.0/setting.player":1320,"./VectorShapes/Triangle/1.0/setting.player":1321,"./VisualTable/1.0/setting.player":1310};function n(e){return i(e).then(t)}function i(e){return Promise.resolve().then((function(){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}))}n.keys=function(){return Object.keys(r)},n.resolve=i,n.id=480,e.exports=n},5:function(e,t,r){"use strict";var n=r(0),i=Object(n.H)("0",{regexp:/(^(\-|\+)?\d+(\.\d+)?$)/i.toString()}),o=Object(n.k)(["auto","dataMin","dataMax"]),a=Object(n.C)(0),s=Object(n.d)([a,o,i]),c=Object(n.k)(["line","shadow","cross"]),l=Object(n.e)(Object(n.e)(Object(n.d)([Object(n.C)(0),Object(n.g)(null)])),[]),u=Object(n.w)({lat:n.x,lng:n.z}),d=Object(n.w)({type:Object(n.g)("datazoom"),start:Object(n.C)(0,{max:100,min:0}),end:Object(n.C)(100,{max:100,min:0}),dataZoomId:Object(n.H)(""),from:Object(n.H)("")}),p=Object(n.k)(["horizontal","vertical"]),h=Object(n.k)(["","default","k","M","G","T","P","E","none","qian","wan","yi","wanyi"]),b=Object(n.e)(n.r),f=Object(n.H)("",{regexp:/^[^<>\\]*$/.toString(),maxLength:1e3}),g=Object(n.w)({seriesOpt:Object(n.e)(Object(n.d)([Object(n.w)({xCol:n.B,yCol:n.B,seriesName:f}),Object(n.w)({type:Object(n.g)("grid"),xCol:n.B,yCol:n.B,seriesName:f})])),dataTable:n.J},{semChecker:function(e){return function(e,t){return e.every((function(e){return function(e,t){return e.xCol",{regexp:"/^(?![sS])|image://?/i"}),v=Object(n.k)(["circle","rect","roundRect","triangle","diamond","pin","arrow"]),j=r(2),y=Object(n.e)(Object(n.H)("")),w=Object(n.c)({},(function(e){return Object(j.every)(e,(function(e){return Object(j.isBoolean)(e)}))})),x=Object(n.d)([w,y]),S=Object(n.k)(["line","bar","pie","scatter","map","gauge","lineBar","radar","bubble"]),C=Object(n.k)(["circle","emptyCircle","path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z","rect","roundRect","triangle","diamond","pin","arrow"]),E=["","none","underline","line-through","overline"],A=Object(n.H)("none",{semChecker:function(e){return e.split(" ").every((function(e){return E.indexOf(e)>-1}))}}),_=function(e,t){return e0?360-o:-o};var r=function(e){return 45===e?1:Math.tan(e*Math.PI/180)};exports.degreeToPoints=function(e){var t,n=e%360;switch(n=n<0?n+360:n,Math.floor(n/45)){case 0:t={x1:0,y1:1,x2:1,y2:1-r(n)};break;case 1:t={x1:0,y1:1,x2:1/r(n),y2:0};break;case 2:t={x1:1,y1:1,x2:1-r(n-90),y2:0};break;case 3:t={x1:1,y1:1,x2:0,y2:1-1/r(n-90)};break;case 4:t={x1:1,y1:0,x2:0,y2:r(n-180)};break;case 5:t={x1:1,y1:0,x2:1-1/r(n-180),y2:1};break;case 6:t={x1:0,y1:0,x2:r(n-270),y2:1};break;case 7:t={x1:0,y1:0,x2:1,y2:1/r(n-270)}}return t}},775:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=t(3),n=r.__importDefault(t(776)),i=t(9),o=t(1299),a=r.__importStar(t(781)),s=t(36),c=t(287),l=function(e,t,r){var l=this;this.connState=i.observable.box(!1),this.authState=i.observable.box(0),this.payloadQueue=i.observable.array([],{deep:!1}),this.error=new o.Subject,this.heartbeat=function(e){l.payloadQueue.push({event:"hb",payload:e})},this.sendRequest=function(e,t,r){if(void 0===r&&(r=30),3===l.authState.get())throw new Error(c.Errors[c.CODES.UNAUTHENTICATED]("Fail to send request upon unauthenticated connection"));return new Promise((function(n,i){var o=s.v4(),a=setTimeout((function(){l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d),i(c.Errors[c.CODES.REQUEST_TIMEOUT]("Request timeout"))}),1e3*r);l.payloadQueue.push({event:"openService",payload:{serviceId:o,type:e,config:t}});var u=function(e){o===e.serviceId&&(clearTimeout(a),n(e.payload),l.payloadQueue.push({event:"closeService",payload:{serviceId:o}}),l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d))},d=function(e){o===e.serviceId&&(clearTimeout(a),i(e.payload),l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d))};l.socket.on("message",u),l.socket.on("exception",d)}))},this.openService=function(e,t){if(3===l.authState.get())throw new Error(c.Errors[c.CODES.UNAUTHENTICATED]("Fail to send request upon unauthenticated connection"));var r=s.v4(),n=new o.Subject,a=new o.Subject,u=null,d=!0,p=function(e){r===e.serviceId&&n.next(e.payload)},h=function(e){r===e.serviceId&&a.next(e.payload)};l.socket.on("message",p),l.socket.on("exception",h);var b=function(){d||(l.payloadQueue.push({event:"closeService",payload:{serviceId:r}}),l.socket.removeEventListener("message",p),l.socket.removeEventListener("exception",h),d=!0)},f=i.autorun((function(){2===l.authState.get()&&(b(),l.socket.on("message",p),l.socket.on("exception",h),l.payloadQueue.push({event:"openService",payload:{serviceId:r,type:e,config:t}}),u&&l.payloadQueue.push({event:"reconfigure",payload:{serviceId:r,config:u}}),d=!1)}),{name:"auto reopen service on reconnect/reauth"}),g=function(e){u=e,l.payloadQueue.push({event:"reconfigure",payload:{serviceId:r,config:e}})};return Object.defineProperties(g,{output:{enumerable:!1,get:function(){return n}},error:{enumerable:!1,get:function(){return a}},close:{enumerable:!1,writable:!1,value:function(){b(),f&&f()}}}),g},this.destroy=function(){l.stopAutoAuth&&l.stopAutoAuth(),l.stopSending&&l.stopSending(),l.socket.connected&&l.socket.close()},this.socket=a.connect(e,{path:n.default("/",t,"/datagw"),transports:["websocket"]}),this.socket.on("exception",(function(e){l.error.next(e.payload)})),this.socket.on("error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.INTERNAL_SERVER_ERROR](e.message))})),this.socket.on("connect_error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.CONNECT_ERROR](e.message))})),this.socket.on("connect_timeout",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.CONNECT_TIMEOUT](e.message))})),this.socket.on("reconnect_error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.RECONNECT_ERROR](e.message))})),this.socket.on("reconnect_timeout",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.RECONNECT_TIMEOUT](e.message))})),this.socket.on("connect",(function(){l.connState.set(!0)})),this.socket.on("reconnect",(function(){l.connState.set(!0)})),this.socket.on("disconnect",(function(){l.connState.set(!1),l.authState.set(0)})),this.socket.on("authenticated",(function(){l.authState.set(2)})),this.socket.on("unauthorized",(function(e){l.authState.set(3),l.socket.io.reconnection(!1),l.error.next(c.Errors[c.CODES.UNAUTHENTICATED](e.message))})),this.stopAutoAuth=i.autorun((function(){l.connState.get()&&(l.authState.set(1),l.socket.emit("authentication",{token:r}))}),{name:"conn state monitoring"}),this.stopSending=i.autorun((function(){switch(l.authState.get()){case 3:l.payloadQueue.clear();break;case 2:for(;l.payloadQueue.length;){var e=l.payloadQueue.shift();l.socket.emit(e.event,e.payload)}}}),{name:"sending pending req"})};exports.ServiceConnectionManager=l},80:function(e,t,r){"use strict";var n=r(5);r.d(t,"a",(function(){return n.i})),r.d(t,"b",(function(){return n.p})),r.d(t,"c",(function(){return n.u}))},807:function(e,exports){},81:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(5),o=r(32),a=r(17),s=r(114),c=r(96),l={typeId:"6dcb4040-e60c-4ce5-aca0-37730c923433",ver:"1.1",propsSchema:{color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),showTooltip:Object(n.I)(!0),tooltipConfine:Object(n.I)(!0),tooltipPadding:Object(n.B)(0),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(n.j)("#333"),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:Object(i.x)("axis"),tooltipAxisColor:Object(n.j)("#108CEE"),showDataZoomX:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),dataZoomHeight:Object(n.E)(8),dataZoomBottom:Object(n.B)(20),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomTextColor:Object(n.j)("transparent"),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),showLegend:Object(n.I)(!0),legendOrient:Object(i.h)("horizontal"),legendHorizontalAlign:Object(n.t)("right"),legendVerticalAlign:Object(n.N)("top"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendItemWidth:Object(n.A)(12),legendItemHeight:Object(n.A)(12),legendSelected:Object(i.o)([]),lockLegendAspectRatio:Object(n.I)(!0),legendItemGap:Object(n.B)(20),showXAxis:Object(n.I)(!0),showYAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showXAxisTick:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),showXAxisLine:Object(n.I)(!1),showYAxisLine:Object(n.I)(!1),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),xAxisTextColor:Object(n.j)("#333"),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisTextColor:Object(n.j)("#333"),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),axisUnit:Object(i.q)(""),axisPointerType:Object(i.c)("shadow"),axisPointerShadowColor:Object(n.j)("rgba(16, 140, 238, 0.1)"),legendIcon:Object(i.n)("rect"),stackEnable:Object(n.I)(!1),showBarLabel:Object(n.I)(!1),seriesType:Object(i.r)("bar"),seriesMap:Object(i.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),customizedSeries:Object(s.a)([]),barWidth:Object(n.E)(16),width:Object(n.A)(300),height:Object(n.A)(200),dumb:Object(n.I)(!1),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:c.a,eventsSchema:{currentLegendSelected:i.o,currentDatazoomRange:i.g},interactSessionMiddleware:o.b,propsResolver:a.a}},810:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=t(3),n=r.__importStar(t(811)),i=t(2),o=t(401),a=t(287),s=a.Errors[a.CODES.GET_ACCESS_TOKEN_FAILED],c=o.AppConfig.APIRoot+"/tokens",l=function(e,t){return o.AppConfig.APIRoot+"/tokens/"+e+"/"+t};function u(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,fetch(e,{method:t,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})];case 1:if(!(o=r.sent()).ok)throw n;return[2,"DELETE"===t?null:o.json()]}}))}))}function d(e,t){return u(l(e,t),"GET",s('Unable to get access token for dashboard of id "'+t+'"'))}function p(e,t,r){return u(l(e,t),"POST",s('Unable to create access token for dashboard of id "'+t+'"'),{password:r||""})}exports.isIAMToken=function(e){return i.isPlainObject(e)&&"iam"===e.type},exports.isShareCodeToken=function(e){return i.isPlainObject(e)&&"sharecode"===e.type},exports.normalizeToken=function(e){return i.isString(e)?{type:"iam",value:e}:e},exports.getToken=function(){return r.__awaiter(void 0,void 0,void 0,(function(){var e,t,i,o,s,l;return r.__generator(this,(function(r){switch(r.label){case 0:return e=n.get("x-bce-iot-viz-token"),t=n.get("x-bce-iot-viz-token-session"),i=n.get("bce-session"),e&&t===i?[2,exports.normalizeToken(e)]:[3,1];case 1:return i?(o={method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({session:i})},[4,fetch(c,o)]):[3,6];case 2:return(s=r.sent()).ok?[4,s.json()]:[3,4];case 3:return l=r.sent(),[2,exports.normalizeToken(l.token)];case 4:throw 403===s.status?a.Errors[a.CODES.UNAUTHENTICATED]("Please login"):a.Errors[a.CODES.RESOLVE_TOKEN_BY_BCE_SESSION_FAILED]("Unable to resolve token using bce-session");case 5:return[3,7];case 6:if(e)return[2,exports.normalizeToken(e)];throw a.Errors[a.CODES.UNAUTHENTICATED]("Unauthenticated");case 7:return[2]}}))}))},exports.checkAccessToken=d,exports.createAccessToken=p,exports.refreshAccessToken=function(e,t){return u(l(e,t),"PUT",s('Unable to refresh access token for dashboard of id "'+t+'"'))},exports.revokeAccessToken=function(e,t){return u(l(e,t),"DELETE",s('Unable to revoke access token for dashboard of id "'+t+'"'))},exports.getAccessToken=function(e,t){return r.__awaiter(void 0,void 0,void 0,(function(){var n;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,d(e,t)];case 1:return(n=r.sent())?[2,n]:[2,p(e,t)];case 2:throw r.sent(),s('Unable to get access token for dashboard of id "'+t+'"');case 3:return[2]}}))}))}},812:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=t(19);exports.tsToDt=function(e,t){return void 0===e&&(e=0),void 0===t&&(t="YYYY-MM-DD HH:mm:ss"),0!=+e&&r.format(new Date(+e),t)}},96:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(3),i=r(22),o=r(2),a=r(1),s=r(18),c=r(10),l=[c.e,c.f,c.h,Object(c.j)("seriesMap"),c.v,c.b,c.w,c.x,c.i,c.q],u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.handleDatazoom=function(e){var t=r.props.currentDatazoomRange;t&&t(e)},r.onRef=r.onRef.bind(r),r.ecOpt={},r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged),this.echarts.on("datazoom",this.handleDatazoom);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%",userSelect:"none"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="BarChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,themeName:"light"},t}(a.PureComponent)}});