(function(t){var e={};function a(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(i,r,function(e){return t[e]}.bind(null,r));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s="e9a4")})({"0040":function(t,e,a){"use strict";var i=a("88d1"),r=a.n(i);r.a},"035b":function(t,e,a){"use strict";a.r(e);var i=a("d312"),r=a("92cc");for(var o in r)"default"!==o&&function(t){a.d(e,t,(function(){return r[t]}))}(o);var n,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"6dfcfdcc",null,!1,i["a"],n);e["default"]=l.exports},"0394":function(t,e,a){"use strict";a.r(e);var i=a("41a6"),r=a("a08f");for(var o in r)"default"!==o&&function(t){a.d(e,t,(function(){return r[t]}))}(o);var n=a("caa3");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("c746");var s=a("f0c5");r["default"].__module="rdcharts";var l=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"7fe53021",null,!1,i["a"],r["default"]);e["default"]=l.exports},"0645":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading1",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"08b8":function(t,e,a){var i=a("f1ef");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("28cce191",i,!0,{sourceMap:!1,shadowMode:!1})},"0935":function(t,e,a){"use strict";var i=a("2cd8"),r=a.n(i);r.a},"0c27":function(t,e,a){var i=a("aec0");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("1071d7b0",i,!0,{sourceMap:!1,shadowMode:!1})},"0de9":function(t,e,a){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function o(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function n(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i1){var c=s.pop();l=s.join("---COMMA---"),0===c.indexOf(" at ")?l+=c:l+="---COMMA---"+c}else l=s[0];console[n](l)}a.r(e),a.d(e,"log",(function(){return n})),a.d(e,"default",(function(){return s}))},"0e20":function(t,e,a){"use strict";a.r(e);var i=a("9e24"),r=a("55c2");for(var o in r)"default"!==o&&function(t){a.d(e,t,(function(){return r[t]}))}(o);a("2eb8");var n,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],n);e["default"]=l.exports},1128:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.pure_top{width:100%;height:220rpx;position:relative;z-index:0;overflow:hidden}.pure_top::after{content:"";width:100%;height:220rpx;position:absolute;left:0;top:0;z-index:-1;border-radius:0 0 100% 100%;background-color:#57b5ff}.calendar{z-index:1;position:absolute;left:74rpx;top:20rpx;width:80%;height:150rpx;background:#fff}uni-button{width:200rpx;height:80rpx;color:#fff;border-radius:40rpx;line-height:80rpx;background-color:#327afe}.charts-box{background-color:#5687fd;height:300rpx}.logo{height:200rpx;width:200rpx;margin-top:200rpx;margin-left:auto;margin-right:auto;margin-bottom:50rpx}.text-area{display:flex;justify-content:center}.title{font-size:36rpx;color:#8f8f94}.login-box{display:flex;background:#8f8f94;width:100%;height:120rpx;position:fixed;bottom:0;left:0}.login-box .login-text{color:#fff;width:60%;display:flex;font-size:36rpx;padding-left:40rpx;align-items:center}.login-box .login-button{flex:1;text-align:center;margin-top:20rpx}.listbox{width:100%}.listbox .item{background-color:#fff;margin:20rpx 0;padding:20rpx}.listbox .item .namebox{display:flex;margin-bottom:30rpx}.listbox .item .namebox .name{font-weight:600;font-size:36rpx;width:70%;height:60rpx;line-height:60rpx}.listbox .item .namebox .tag{text-align:center;width:200rpx;height:60rpx;line-height:60rpx;color:#ff6f51;border:1px solid #ff6f51;background:rgba(255,111,81,.24);border-radius:40rpx 40rpx 40rpx 40rpx}.typebox{display:flex;margin:30rpx 0}.typebox .type{width:50%;border-left:#327afe 6rpx solid;font-size:30rpx;font-weight:600;padding-left:10rpx}.typebox .result{width:50%;text-align:right;color:#ff6f51}.staffbox{display:flex}.staffbox .staff{display:flex}.staffbox .staff uni-view{margin-right:20rpx}.staffbox .implement{flex:1;margin-bottom:10rpx}.staffbox .implement uni-button{float:right;width:120rpx;height:60rpx;line-height:60rpx;font-size:32rpx}',""]),t.exports=e},1831:function(t,e,a){var i=a("1b2a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("ac6c3758",i,!0,{sourceMap:!1,shadowMode:!1})},"185e":function(t,e,a){"use strict";var i=a("1bed"),r=a.n(i);r.a},"1b2a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.page{box-sizing:border-box;width:100vw;height:100vh;background:#efefef;overflow:auto}",""]),t.exports=e},"1bed":function(t,e,a){var i=a("9f8d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("12f1be7b",i,!0,{sourceMap:!1,shadowMode:!1})},"1e45":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"214d":function(t,e,a){var i=a("8e2c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("eae56690",i,!0,{sourceMap:!1,shadowMode:!1})},"23c3":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v(t._$g(2,"t0-0"))])],1)},o=[]},"24fb":function(t,e,a){"use strict";function i(t,e){var a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"===typeof btoa){var o=r(i),n=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(n).concat([o]).join("\n")}return[a].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(a," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;oa.parts.length&&(i.parts.length=a.parts.length)}else{var n=[];for(r=0;rt.length)&&(e=t.length);for(var a=0,i=new Array(e);a1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y1&&(r.extra.mount.widthRatio>2&&(r.extra.mount.widthRatio=2),n+=(r.extra.mount.widthRatio-1)*a.eachSpacing);var s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=n-o?(s=o-n,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function x(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function g(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,o=.2,n=null,s=null,l=null,c=null;if(e<1?(n=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(n=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var d=t.length-1;l=t[d].x-(t[d].x-t[d-1].x)*o,c=t[d].y-(t[d].y-t[d-1].y)*o}else l=t[e+1].x-(t[e+2].x-t[e].x)*o,c=t[e+1].y-(t[e+2].y-t[e].y)*o;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),i(t,e+1)&&(l=t[e+1].x),i(t,e)&&(n=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(n>=Math.max(t[e].x,t[e+1].x)||n<=Math.min(t[e].x,t[e+1].x))&&(n=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:n,y:s},ctrB:{x:l,y:c}}}function v(t,e,a){return{x:a.x+t,y:a.y-e}}function m(t,e){if(e)while(d.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function y(t,e,a){var i=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,o=0;o=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:p(t,"lower",a),maxRange:p(e,"upper",a)}}function S(t,e,a){var i=0;if(t=String(t),!1!==a&&void 0!==a&&a.setFontSize&&a.measureText)return a.setFontSize(e),a.measureText(t).width;t=t.split("");for(var r=0;r-1;if(o)for(var n=O(t),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},n=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(i.length>0){for(var l=[],c=0;c0&&(i=r[a]),{text:o.formatter?o.formatter(t,i,a,e):t.name+": "+t.data,color:t.color}})),p={x:Math.round(s.x),y:Math.round(s.y)};return{textList:h,offset:p}}function F(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,n=t.map((function(t){return{text:r.formatter?r.formatter(t,i[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));n=n.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(o),y:0};return{textList:n,offset:s}}function L(t,e,a,i,r,o){var n=a.chartData.calPoints,s=o.color.upFill,l=o.color.downFill,c=[s,s,l,s],d=[];e.map((function(e){0==i?e.data[1]-e.data[0]<0?c[1]=l:c[1]=s:(e.data[0]t[i-1][1]&&(c[2]=s),e.data[3]4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},n=a.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(a.categories){for(var l=1;le&&(o.index=a)}));else{for(var c=Array(e.length),d=0;d4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},n=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&W(t,a,i)&&s.forEach((function(e,a){t.y+r+n>e&&(o.index=a)})),o}function B(t,e,a){var i=-1,r=0;if(z(t,e.area)){for(var o=e.points,n=-1,s=0,l=o.length;sh[0]-r&&t.xh[1]-r&&t.ye.start.x&&t.xe.start.y&&t.y=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function R(t,e,a){var i=2*Math.PI/a,r=-1;if(X(t,e.center,e.radius)){var o=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n*=-1,n<0&&(n+=2*Math.PI);var s=e.angleList.map((function(t){return t=o(-1*t),t}));s.forEach((function(t,e){var a=o(t-i/2),s=o(t+i/2);s=a&&n<=s||n+2*Math.PI>=a&&n+2*Math.PI<=s)&&(r=e)}))}return r}function G(t,e){for(var a=-1,i=0,r=e.series.length;io.funnelArea[0]&&t.xo.funnelArea[1]&&t.yo.area[0]&&t.xo.area[1]&&t.ye.width-e.area[1]-e.area[3]?(p.push(x),u.push(f-e.legend.itemGap*e.pix),f=y,x=[v]):(f+=y,x.push(v))}if(x.length){p.push(x),u.push(f-e.legend.itemGap*e.pix),o.widthArr=u;var b=Math.max.apply(null,u);switch(e.legend.float){case"left":o.area.start.x=e.area[3],o.area.end.x=e.area[3]+b+2*n;break;case"right":o.area.start.x=e.width-e.area[1]-b-2*n,o.area.end.x=e.width-e.area[1];break;default:o.area.start.x=(e.width-b)/2-n,o.area.end.x=(e.width+b)/2+n}o.area.width=b+2*n,o.area.wholeWidth=b+2*n,o.area.height=p.length*h+2*n,o.area.wholeHeight=p.length*h+2*n+2*s,o.points=p}}else{var w=t.length,A=e.height-e.area[0]-e.area[2]-2*s-2*n,C=Math.min(Math.floor(A/h),w);switch(o.area.height=C*h+2*n,o.area.wholeHeight=C*h+2*n,e.legend.float){case"top":o.area.start.y=e.area[0]+s,o.area.end.y=e.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=e.height-e.area[2]-s-o.area.height,o.area.end.y=e.height-e.area[2]-s;break;default:o.area.start.y=(e.height-o.area.height)/2,o.area.end.y=(e.height+o.area.height)/2}for(var T=w%C===0?w/C:Math.floor(w/C+1),_=[],P=0;PF&&(F=O)}o.widthArr.push(F),o.heightArr.push(D.length*h+2*n)}for(var I=0,E=0;E4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==i?T(t,e.categories.length):C(t);var n=[];r=r.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[0]):n.push(t.value):n.push(t)}));var s=0,l=0;if(n.length>0&&(s=Math.min.apply(this,n),l=Math.max.apply(this,n)),o>-1?("number"===typeof e.xAxis.data[o].min&&(s=Math.min(e.xAxis.data[o].min,s)),"number"===typeof e.xAxis.data[o].max&&(l=Math.max(e.xAxis.data[o].max,l))):("number"===typeof e.xAxis.min&&(s=Math.min(e.xAxis.min,s)),"number"===typeof e.xAxis.max&&(l=Math.max(e.xAxis.max,l))),s===l){var c=l||10;l+=c}for(var d=s,h=l,p=[],f=(h-d)/e.xAxis.splitNumber,u=0;u<=e.xAxis.splitNumber;u++)p.push(d+f*u);return p}function Q(t,e,a,i){var r=c({},{type:""},e.extra.bar),o={angle:0,xAxisHeight:a.xAxisHeight};o.ranges=J(t,e,a,r.type),o.rangesFormat=o.ranges.map((function(t){return t=d.toFixed(t,2),t}));var n=o.ranges.map((function(t){return t=d.toFixed(t,2),t}));o=Object.assign(o,ht(n,e,a));var s=o.eachSpacing,l=n.map((function(t){return S(t,e.xAxis.fontSize*e.pix||a.fontSize,i)})),h=Math.max.apply(this,l);return h+2*a.xAxisTextPadding>s&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(o.angle)),!0===e.xAxis.disabled&&(o.xAxisHeight=0),o}function V(t,e,a,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,n=r.extra.radar||{};n.max=n.max||0;for(var s=Math.max(n.max,Math.max.apply(null,C(i))),l=[],c=function(r){var n=i[r],c={};c.color=n.color,c.legendShape=n.legendShape,c.pointShape=n.pointShape,c.data=[],n.data.forEach((function(i,r){var n={};n.angle=t[r],n.proportion=i/s,n.value=i,n.position=v(a*n.proportion*o*Math.cos(n.angle),a*n.proportion*o*Math.sin(n.angle),e),c.data.push(n)})),l.push(c)},d=0;d2&&void 0!==arguments[2]?arguments[2]:1,i=0,r=0,o=0;o4&&void 0!==arguments[4]?arguments[4]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=0,n=0,s=[],l=0;l2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(r._proportion_=r._proportion_%2)}return t}function at(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(r._proportion_=r._proportion_%2)}return t}function it(t,e,a){for(var i=e-a+1,r=e,o=0;o=2&&(t[o]._endAngle_=t[o]._endAngle_%2),r=t[o]._endAngle_;return t}function rt(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r=a.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*i+a.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*i,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function ot(t,e,a,i){t=Z(t);for(var r=0,o=0;o0&&(t.width=Math.min(t.width,+o.extra.mix.column.width*o.pix)),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width*o.pix)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*(t.width+r),t}))}function st(t,e,a,i,r,o){return t.map((function(t){if(null===t)return null;var r=0,n=0;return r=o.extra.bar.seriesGap*o.pix||0,n=o.extra.bar.categoryGap*o.pix||0,r=Math.min(r,e/a),n=Math.min(n,e/a),t.width=Math.ceil((e-2*n-r*(a-1))/a),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(t.width=Math.min(t.width,+o.extra.bar.width*o.pix)),t.width<=0&&(t.width=1),t.y+=(i+.5-a/2)*(t.width+r),t}))}function lt(t,e,a,i,r,o,n){var s=o.extra.column.categoryGap*o.pix||0;return t.map((function(t){return null===t?null:(t.width=e-2*s,o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width*o.pix)),i>0&&(t.width-=n),t)}))}function ct(t,e,a,i,r,o,n){var s=o.extra.column.categoryGap*o.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width*o.pix)),t.width<=0&&(t.width=1),t)}))}function dt(t,e,a,i,r,o,n){var s=o.extra.bar.categoryGap*o.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(t.width=Math.min(t.width,+o.extra.bar.width*o.pix)),t.width<=0&&(t.width=1),t)}))}function ht(t,e,a){var i=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var o=0;"mount"==e.type&&e.extra&&e.extra.mount&&e.extra.mount.widthRatio&&e.extra.mount.widthRatio>1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),o=e.extra.mount.widthRatio-1,r+=o);var n=i/r,s=[],l=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){s.push(l+o/2*n+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?s.push(l+o*n+t.length*n):s.push(c)),{xAxisPoints:s,startX:l,endX:c,eachSpacing:n}}function pt(t,e,a,i,r,o,n){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=o.height-o.area[0]-o.area[2];return t.forEach((function(t,n){if(null===t)l.push(null);else{var d=[];t.forEach((function(t,l){var h={};h.x=i[n]+Math.round(r/2);var p=t.value||t,f=c*(p-e)/(a-e);f*=s,h.y=o.height-Math.round(f)-o.area[2],d.push(h)})),l.push(d)}})),l}function ft(t,e,a,i,r,o,n){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(l=o.xAxis.boundaryGap);var c=[],d=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,n){if(null===t)c.push(null);else{var p={};p.color=t.color,p.x=i[n];var f,u,x,g=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)f=[].concat(o.chartData.xAxisData.ranges),u=f.shift(),x=f.pop(),g=t[1],p.x=o.area[3]+h*(t[0]-u)/(x-u),"bubble"==o.type&&(p.r=t[2],p.t=t[3]);else g=t.value;"center"==l&&(p.x+=r/2);var v=d*(g-e)/(a-e);v*=s,p.y=o.height-v-o.area[2],c.push(p)}})),c}function ut(t,e,a,i,r,o,n){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=o.height-o.area[0]-o.area[2],d=(o.width,o.area[1],o.area[3],r*n.widthRatio);return t.forEach((function(t,n){if(null===t)l.push(null);else{var h={};h.color=t.color,h.x=i[n],h.x+=r/2;var p=t.data,f=c*(p-e)/(a-e);f*=s,h.y=o.height-f-o.area[2],h.value=p,h.width=d,l.push(h)}})),l}function xt(t,e,a,i,r,o,n){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=(o.height,o.area[0],o.area[2],o.width-o.area[1]-o.area[3]);return t.forEach((function(t,r){if(null===t)l.push(null);else{var n={};n.color=t.color,n.y=i[r];var d=t;"object"===typeof t&&null!==t&&(d=t.value);var h=c*(d-e)/(a-e);h*=s,n.height=h,n.value=d,n.x=h+o.area[3],l.push(n)}})),l}function gt(t,e,a,i,r,o,n,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=o.height-o.area[0]-o.area[2];return t.forEach((function(t,n){if(null===t)d.push(null);else{var p={};if(p.color=t.color,p.x=i[n]+Math.round(r/2),s>0){for(var f=0,u=0;u<=s;u++)f+=l[u].data[n];var x=f-t,g=h*(f-e)/(a-e),v=h*(x-e)/(a-e)}else f=t,g=h*(f-e)/(a-e),v=0;var m=v;g*=c,m*=c,p.y=o.height-Math.round(g)-o.area[2],p.y0=o.height-Math.round(m)-o.area[2],d.push(p)}})),d}function vt(t,e,a,i,r,o,n,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,r){if(null===t)d.push(null);else{var n={};if(n.color=t.color,n.y=i[r],s>0){for(var p=0,f=0;f<=s;f++)p+=l[f].data[r];var u=p-t,x=h*(p-e)/(a-e),g=h*(u-e)/(a-e)}else p=t,x=h*(p-e)/(a-e),g=0;var v=g;x*=c,v*=c,n.height=x-v,n.x=o.area[3]+x,n.x0=o.area[3]+v,d.push(n)}})),d}function mt(t,e,a,i,r){var o;o="stack"==i?T(t,e.categories.length):C(t);var n=[];o=o.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){n.push(t)})):n.push(t[1]):n.push(t.value):n.push(t)}));var s=r.min||0,l=r.max||0;n.length>0&&(s=Math.min.apply(this,n),l=Math.max.apply(this,n)),s===l&&(0==l?l=10:s=0);for(var c=A(s,l),d=void 0===r.min||null===r.min?c.minRange:r.min,h=void 0===r.max||null===r.max?c.maxRange:r.max,p=[],f=(h-d)/e.yAxis.splitNumber,u=0;u<=e.yAxis.splitNumber;u++)p.push(d+f*u);return p.reverse()}function yt(t,e,a,i){var r=c({},{type:""},e.extra.column),o=e.yAxis.data.length,n=new Array(o);if(o>0){for(var s=0;s-1?o[s][1]:o[s].value);var d=e.formatter?e.formatter(c,s,e,r):c;i.setTextAlign("center"),i.fillText(String(d),t.x,t.y-4+n*r.pix),i.closePath(),i.stroke(),i.setTextAlign("left")}}))}function _t(t,e,a,i,r){e.data;var o=e.textOffset?e.textOffset:0;t.forEach((function(t,n){if(null!==t){i.beginPath();var s=e[n].textSize?e[n].textSize*r.pix:a.fontSize;i.setFontSize(s),i.setFillStyle(e[n].textColor||r.fontColor);var l=t.value,c=e[n].formatter?e[n].formatter(l,n,e,r):l;i.setTextAlign("center"),i.fillText(String(c),t.x,t.y-4+o*r.pix),i.closePath(),i.stroke(),i.setTextAlign("left")}}))}function Pt(t,e,a,i,r){var o=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,n){if(null!==t){i.beginPath();var s=e.textSize?e.textSize*r.pix:a.fontSize;i.setFontSize(s),i.setFillStyle(e.textColor||r.fontColor);var l=o[n];"object"===typeof o[n]&&null!==o[n]&&(l=o[n].value);var c=e.formatter?e.formatter(l,n,e,r):l;i.setTextAlign("left"),i.fillText(String(c),t.x+4*r.pix,t.y+s/2-3),i.closePath(),i.stroke()}}))}function kt(t,e,a,i,r,o){e-=t.width/2+t.labelOffset*i.pix,e=e<10?10:e;for(var n=t.startAngle-t.endAngle+1,s=n/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,d=t.startAngle,h=t.startNumber,p=0;p=2&&(d%=2),h+=c}}function Mt(t,e,a,i,r,o){var n=i.extra.radar||{};t.forEach((function(t,s){if(!0===n.labelPointShow&&""!==i.categories[s]){var l={x:e*Math.cos(t),y:e*Math.sin(t)},c=v(l.x,l.y,a);o.setFillStyle(n.labelPointColor),o.beginPath(),o.arc(c.x,c.y,n.labelPointRadius*i.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}var h={x:(e+r.radarLabelTextMargin*i.pix)*Math.cos(t),y:(e+r.radarLabelTextMargin*i.pix)*Math.sin(t)},p=v(h.x,h.y,a),f=p.x,u=p.y;d.approximatelyEqual(h.x,0)?f-=S(i.categories[s]||"",r.fontSize,o)/2:h.x<0&&(f-=S(i.categories[s]||"",r.fontSize,o)),o.beginPath(),o.setFontSize(r.fontSize),o.setFillStyle(n.labelColor||i.fontColor),o.fillText(i.categories[s]||"",f,u+r.fontSize/2),o.closePath(),o.stroke()}))}function Dt(t,e,a,i,r,o){for(var n=a.pieChartLinePadding,s=[],l=null,c=t.map((function(a,i){var r=a.formatter?a.formatter(a,i,t,e):d.toFixed(100*a._proportion_.toFixed(4))+"%";r=a.labelText?a.labelText:r;var o=2*Math.PI-(a._start_+2*Math.PI*a._proportion_/2);a._rose_proportion_&&(o=2*Math.PI-(a._start_+2*Math.PI*a._rose_proportion_/2));var n=a.color,s=a._radius_;return{arc:o,text:r,color:n,radius:s,textColor:a.textColor,textSize:a.textSize,labelShow:a.labelShow}})),h=0;h=0?f+a.pieChartTextPadding:f-a.pieChartTextPadding,b=u,w=S(p.text,p.textSize*e.pix||a.fontSize,i),A=b;l&&d.isSameXCoordinateArea(l.start,{x:y})&&(A=y>0?Math.min(b,l.start.y):f<0||b>0?Math.max(b,l.start.y):Math.min(b,l.start.y)),y<0&&(y-=w);var C={lineStart:{x:x,y:g},lineEnd:{x:f,y:u},start:{x:y,y:A},width:w,height:a.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};l=m(C,l),s.push(l)}for(var T=0;Tr?r:o.activeWidth;var n=e.area[0],s=e.height-e.area[2];i.beginPath(),i.setFillStyle(h(o.activeBgColor,o.activeBgOpacity)),i.rect(t-o.activeWidth/2,n,o.activeWidth,s-n),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function Et(t,e,a,i,r){var o=c({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),n=e.area[3],s=e.width-e.area[1];i.beginPath(),i.setFillStyle(h(o.activeBgColor,o.activeBgOpacity)),i.rect(n,t-r/2,s-n,r),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function Bt(t,e,a,i,r,o,n){var s=c({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},a.extra.tooltip);1==s.showCategory&&a.categories&&t.unshift({text:a.categories[a.tooltip.index],color:null});var l=4*a.pix,d=5*a.pix,p=s.showArrow?8*a.pix:0,f=!1;"line"!=a.type&&"mount"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||1==s.splitLine&&Ft(a.tooltip.offset.x,a,i,r),e=c({x:0,y:0},e),e.y-=8*a.pix;var u=t.map((function(t){return S(t.text,i.fontSize,r)})),x=l+d+4*i.toolTipPadding+Math.max.apply(null,u),g=2*i.toolTipPadding+t.length*i.toolTipLineHeight;if(0!=s.showBox){e.x-Math.abs(a._scrollDistance_||0)+p+x>a.width&&(f=!0),g+e.y>a.height&&(e.y=a.height-g),r.beginPath(),r.setFillStyle(h(s.bgColor||i.toolTipBackground,s.bgOpacity||i.toolTipOpacity)),r.setLineWidth(s.borderWidth*a.pix),r.setStrokeStyle(h(s.borderColor,s.borderOpacity));var v=s.borderRadius;f?(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x-p,e.y+10*a.pix+5*a.pix)),r.arc(e.x-p-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x-p-Math.round(x)+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),r.arc(e.x-p-Math.round(x)+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x-p-v,e.y+v,v,-Math.PI/2,0,!1),s.showArrow&&(r.lineTo(e.x-p,e.y+10*a.pix-5*a.pix),r.lineTo(e.x,e.y+10*a.pix))):(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x+p,e.y+10*a.pix-5*a.pix)),r.arc(e.x+p+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x+p+Math.round(x)-v,e.y+v,v,-Math.PI/2,0,!1),r.arc(e.x+p+Math.round(x)-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x+p+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),s.showArrow&&(r.lineTo(e.x+p,e.y+10*a.pix+5*a.pix),r.lineTo(e.x,e.y+10*a.pix))),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var o=e.x+p+2*i.toolTipPadding,n=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;f&&(o=e.x-x-p+2*i.toolTipPadding),r.fillRect(o,n,l,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var o=e.x+p+2*i.toolTipPadding+l+d;f&&(o=e.x-x-p+2*i.toolTipPadding+ +l+d);var n=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(s.fontColor),r.fillText(t.text,o,n+i.fontSize),r.closePath(),r.stroke()}))}}function zt(t,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=c({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),p=[];r.save();var f=-2,u=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/l)-2,u=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&It(e.tooltip.offset.x,e,i,r,l),d.customColor=w(d.linearType,d.customColor,t,i),t.forEach((function(n,c){var x,g,v;x=[].concat(e.chartData.yAxisData.ranges[n.index]),g=x.pop(),v=x.shift();var m=n.data;switch(d.type){case"group":var y=ft(m,g,v,s,l,e,i,o),b=gt(m,g,v,s,l,e,i,c,t,o);p.push(b),y=nt(y,l,t.length,c,i,e);for(var w=0;wf&&wz?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(k+O,M+O,O,-Math.PI,-Math.PI/2),r.arc(k+D-I,M+I,I,-Math.PI/2,0),r.arc(k+D-E,M+F-E,E,0,Math.PI/2),r.arc(k+B,M+F-B,B,Math.PI/2,Math.PI)}else r.moveTo(S,A.y),r.lineTo(S+A.width,A.y),r.lineTo(S+A.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,A.y),r.setLineWidth(1),r.setStrokeStyle(_);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=gt(m,g,v,s,l,e,i,c,t,o);p.push(y),y=ct(y,l,t.length,c,i,e,t);for(var W=0;Wf&&W0&&(C-=G),r.setFillStyle(T),r.moveTo(S,R.y),r.fillRect(S,R.y,R.width,C),r.closePath(),r.fill()}}break;case"meter":y=ft(m,g,v,s,l,e,i,o);p.push(y),y=lt(y,l,t.length,c,i,e,d.meterBorder);for(var N=0;Nf&&N0&&(r.setStrokeStyle(n.color),r.setLineWidth(d.meterBorder*e.pix)),0==c?r.setFillStyle(d.meterFillColor):r.setFillStyle(j.color||n.color);S=j.x-j.width/2,C=e.height-j.y-e.area[2];if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var Y=S,H=j.y,X=j.width,q=e.height-e.area[2]-j.y;d.barBorderCircle&&(d.barBorderRadius=[X/2,X/2,0,0]);var U=a(d.barBorderRadius,4),$=U[0],J=U[1],Q=U[2],V=U[3],Z=Math.min(X/2,q/2);$=$>Z?Z:$,J=J>Z?Z:J,Q=Q>Z?Z:Q,V=V>Z?Z:V,$=$<0?0:$,J=J<0?0:J,Q=Q<0?0:Q,V=V<0?0:V,r.arc(Y+$,H+$,$,-Math.PI,-Math.PI/2),r.arc(Y+X-J,H+J,J,-Math.PI/2,0),r.arc(Y+X-Q,H+q-Q,Q,0,Math.PI/2),r.arc(Y+V,H+q-V,V,Math.PI/2,Math.PI),r.fill()}else r.moveTo(S,j.y),r.lineTo(S+j.width,j.y),r.lineTo(S+j.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,j.y),r.fill();0==c&&d.meterBorder>0&&(r.closePath(),r.stroke())}}break}})),!1!==e.dataLabel&&1===o&&t.forEach((function(a,n){var c,h,p;c=[].concat(e.chartData.yAxisData.ranges[a.index]),h=c.pop(),p=c.shift();var f=a.data;switch(d.type){case"group":var u=ft(f,h,p,s,l,e,i,o);u=nt(u,l,t.length,n,i,e),Tt(u,a,i,r,e);break;case"stack":u=gt(f,h,p,s,l,e,i,n,t,o);Tt(u,a,i,r,e);break;case"meter":u=ft(f,h,p,s,l,e,i,o);Tt(u,a,i,r,e);break}})),r.restore(),{xAxisPoints:s,calPoints:p,eachSpacing:l}}function Wt(t,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=c({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mount);d.widthRatio=d.widthRatio<=0?0:d.widthRatio,d.widthRatio=d.widthRatio>=2?2:d.widthRatio;r.save();var p,f,u,x=-2,g=s.length+2;e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),x=Math.floor(-e._scrollDistance_/l)-2,g=x+e.xAxis.itemCount+4),d.customColor=w(d.linearType,d.customColor,t,i),p=[].concat(e.chartData.yAxisData.ranges[0]),f=p.pop(),u=p.shift();var v=ut(t,f,u,s,l,e,d,o);switch(d.type){case"bar":for(var m=0;mx&&mE?E:F,L=L>E?E:L,O=O>E?E:O,I=I>E?E:I,F=F<0?0:F,L=L<0?0:L,O=O<0?0:O,I=I<0?0:I,r.arc(_+F,P+F,F,-Math.PI,-Math.PI/2),r.arc(_+k-L,P+L,L,-Math.PI/2,0),r.arc(_+k-O,P+M-O,O,0,Math.PI/2),r.arc(_+I,P+M-I,I,Math.PI/2,Math.PI)}else r.moveTo(b,y.y),r.lineTo(b+y.width,y.y),r.lineTo(b+y.width,e.height-e.area[2]),r.lineTo(b,e.height-e.area[2]),r.lineTo(b,y.y);r.setStrokeStyle(C),r.setFillStyle(S),d.borderWidth>0&&(r.setLineWidth(d.borderWidth*e.pix),r.closePath(),r.stroke()),r.fill()}}break;case"triangle":for(var B=0;Bx&&B0&&(r.setLineWidth(d.borderWidth*e.pix),r.stroke()),r.fill()}}break;case"mount":for(var W=0;Wx&&W0&&(r.setLineWidth(d.borderWidth*e.pix),r.stroke()),r.fill()}}break;case"sharp":for(var G=0;Gx&&G0&&(r.setLineWidth(d.borderWidth*e.pix),r.stroke()),r.fill()}}break}if(!1!==e.dataLabel&&1===o){var j,Y,H;j=[].concat(e.chartData.yAxisData.ranges[0]),Y=j.pop(),H=j.shift();v=ut(t,Y,H,s,l,e,d,o);_t(v,t,i,r,e)}return r.restore(),{xAxisPoints:s,calPoints:v,eachSpacing:l}}function Rt(t,e,i,r){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length,l=0;lf&&wz?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(k+B,D+B,B,-Math.PI,-Math.PI/2),r.arc(A.x-O,D+O,O,-Math.PI/2,0),r.arc(A.x-I,D+M-I,I,0,Math.PI/2),r.arc(k+E,D+M-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,C),r.lineTo(A.x,C),r.lineTo(A.x,C+A.width),r.lineTo(S,C+A.width),r.lineTo(S,C),r.setLineWidth(1),r.setStrokeStyle(_);r.setFillStyle(T),r.closePath(),r.fill()}}break;case"stack":y=vt(m,g,v,n,s,e,i,c,t,o);p.push(y),y=dt(y,s,t.length,c,i,e,t);for(var W=0;Wf&&W5&&void 0!==arguments[5]?arguments[5]:1,n=c({},{color:{},average:{}},a.extra.candle);n.color=c({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},n.color),n.average=c({},{show:!1,name:[],day:[],color:i.color},n.average),a.extra.candle=n;var s=a.chartData.xAxisData,l=s.xAxisPoints,d=s.eachSpacing,h=[];r.save();var p=-2,f=l.length+2,u=0,x=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),p=Math.floor(-a._scrollDistance_/d)-2,f=p+a.xAxis.itemCount+4,u=-a._scrollDistance_-2*d+a.area[3],x=u+(a.xAxis.itemCount+4)*d),(n.average.show||e)&&e.forEach((function(t,e){var n,s,c;n=[].concat(a.chartData.yAxisData.ranges[t.index]),s=n.pop(),c=n.shift();for(var h=t.data,p=ft(h,s,c,l,d,a,i,o),f=q(p,t),v=0;vu&&(r.moveTo(w.x,w.y),y=1),b>0&&w.x>u&&w.xp&&m0?(r.setStrokeStyle(n.color.upLine),r.setFillStyle(n.color.upFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(n.color.downLine),r.setFillStyle(n.color.downFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:d}}function Nt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=e.height-e.area[2],p=[];i.save();var f=0,u=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=-e._scrollDistance_-2*l+e.area[3],u=f+(e.xAxis.itemCount+4)*l),t.forEach((function(t,n){var c,x,v;c=[].concat(e.chartData.yAxisData.ranges[t.index]),x=c.pop(),v=c.shift();var m=t.data,y=ft(m,x,v,s,l,e,a,r);p.push(y);for(var b=q(y,t),w=0;w1){var C=A[0],T=A[A.length-1];i.moveTo(C.x,C.y);var _=0;if("curve"===o.type)for(var P=0;Pf&&(i.moveTo(k.x,k.y),_=1),P>0&&k.x>f&&k.xf&&(i.moveTo(F.x,F.y),_=1),D>0&&F.x>f&&F.xf&&(i.moveTo(O.x,O.y),_=1),L>0&&O.x>f&&O.xf&&(i.moveTo(W.x,W.y),B=1),z>0&&W.x>f&&W.xf&&(i.moveTo(N.x,N.y),B=1),G>0&&N.x>f&&N.xf&&(i.moveTo(Y.x,Y.y),B=1),j>0&&Y.x>f&&Y.x4&&void 0!==arguments[4]?arguments[4]:1,o=(c({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),n=o.xAxisPoints,s=o.eachSpacing,l=[];i.save();var d=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*s+e.area[3],d+(e.xAxis.itemCount+4)*s),t.forEach((function(t,o){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,p=ft(h,c,d,n,s,e,a,r);i.beginPath(),i.setStrokeStyle(t.color),i.setFillStyle(t.color),i.setLineWidth(1*e.pix);var f=t.pointShape;if("diamond"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))}));else if("circle"===f)p.forEach((function(t,a){null!==t&&(i.moveTo(t.x+2.5*e.pix,t.y),i.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))}));else if("triangle"===f)return;i.closePath(),i.fill(),i.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,o){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,p=ft(h,c,d,n,s,e,a,r);Tt(p,t,a,i,e)})),i.restore(),{xAxisPoints:n,calPoints:l,eachSpacing:s}}function Yt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{opacity:1,border:2},e.extra.bubble),n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=[];i.save();var p=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-2*l+e.area[3],p+(e.xAxis.itemCount+4)*l),t.forEach((function(n,c){var d,p,f;d=[].concat(e.chartData.yAxisData.ranges[n.index]),p=d.pop(),f=d.shift();var u=n.data,x=ft(u,p,f,s,l,e,a,r);i.beginPath(),i.setStrokeStyle(n.color),i.setLineWidth(o.border*e.pix),i.setFillStyle(h(n.color,o.opacity)),x.forEach((function(t,a){i.moveTo(t.x+t.r,t.y),i.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),i.closePath(),i.fill(),i.stroke(),!1!==e.dataLabel&&1===r&&x.forEach((function(r,o){i.beginPath();var n=t.textSize*e.pix||a.fontSize;i.setFontSize(n),i.setFillStyle(t.textColor||"#FFFFFF"),i.setTextAlign("center"),i.fillText(String(r.t),r.x,r.y+n/2),i.closePath(),i.stroke(),i.setTextAlign("left")}))})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function Ht(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{type:"straight",width:2},e.extra.line);o.width*=e.pix;var n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=[];i.save();var h=0,p=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],p=h+(e.xAxis.itemCount+4)*l),t.forEach((function(t,n){var c,f,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),f=c.pop(),u=c.shift();var x=t.data,v=ft(x,f,u,s,l,e,a,r);d.push(v);var m=q(v,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(o.width),m.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var a=0;if("curve"===o.type)for(var r=0;rh&&(i.moveTo(n.x,n.y),a=1),r>0&&n.x>h&&n.xh&&(i.moveTo(c.x,c.y),a=1),l>0&&c.x>h&&c.xh&&(i.moveTo(f.x,f.y),a=1),d>0&&f.x>h&&f.x4&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,s=n.xAxisPoints,l=n.eachSpacing,d=c({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),p=c({},{opacity:.2,gradient:!1},e.extra.mix.area),f=e.height-e.area[2],u=[],x=0,v=0;t.forEach((function(t,e){"column"==t.type&&(v+=1)})),r.save();var m=-2,y=s.length+2,b=0,A=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),m=Math.floor(-e._scrollDistance_/l)-2,y=m+e.xAxis.itemCount+4,b=-e._scrollDistance_-2*l+e.area[3],A=b+(e.xAxis.itemCount+4)*l),d.customColor=w(d.linearType,d.customColor,t,i),t.forEach((function(t,n){var c,w,S;c=[].concat(e.chartData.yAxisData.ranges[t.index]),w=c.pop(),S=c.shift();var C=t.data,T=ft(C,w,S,s,l,e,i,o);if(u.push(T),"column"==t.type){T=nt(T,l,v,x,i,e);for(var _=0;_m&&_N?N:z,W=W>N?N:W,R=R>N?N:R,G=G>N?N:G,z=z<0?0:z,W=W<0?0:W,R=R<0?0:R,G=G<0?0:G,r.arc(L+z,O+z,z,-Math.PI,-Math.PI/2),r.arc(L+I-W,O+W,W,-Math.PI/2,0),r.arc(L+I-R,O+E-R,R,0,Math.PI/2),r.arc(L+G,O+E-G,G,Math.PI/2,Math.PI)}else r.moveTo(k,P.y),r.lineTo(k+P.width,P.y),r.lineTo(k+P.width,e.height-e.area[2]),r.lineTo(k,e.height-e.area[2]),r.lineTo(k,P.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(M),r.closePath(),r.fill()}}x+=1}if("area"==t.type)for(var j=q(T,t),Y=0;Y1){var U=H[0],$=H[H.length-1];r.moveTo(U.x,U.y);var J=0;if("curve"===t.style)for(var Q=0;Qb&&(r.moveTo(V.x,V.y),J=1),Q>0&&V.x>b&&V.xb&&(r.moveTo(tt.x,tt.y),J=1),K>0&&tt.x>b&&tt.xb&&(r.moveTo(l.x,l.y),n=1),s>0&&l.x>b&&l.xb&&(r.moveTo(h.x,h.y),n=1),d>0&&h.x>b&&h.x1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),u+=(e.extra.mount.widthRatio-1)*l);var x=f*f/u,g=0;e._scrollDistance_&&(g=-e._scrollDistance_*f/u),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pix),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(n,p),i.lineTo(s,p),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pix),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(n+g,p),i.lineTo(n+g+x,p),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pix),o.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-l/2,d),i.lineTo(t-l/2,d+3*e.pix),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,d),i.lineTo(t,h),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var m=Math.ceil(t.length/v),y=[],b=t.length,w=0;w1&&(e.extra.mount.widthRatio>2&&(e.extra.mount.widthRatio=2),c+=(e.extra.mount.widthRatio-1)*l);var d=n+c,h=[],p=1;!1===e.xAxis.axisLine&&(p=0);for(var f=p;f4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),n={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=o.activeRadius*e.pix);var s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);s=s<10?10:s,o.customRadius>0&&(s=o.customRadius*e.pix),t=Z(t,s,r);var l=o.activeRadius*e.pix;if(o.customColor=w(o.linearType,o.customColor,t,a),t=t.map((function(t){return t._start_+=o.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(h(t.color,o.activeOpacity||.5)),i.moveTo(n.x,n.y),i.arc(n.x,n.y,t._radius_+l,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(o.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(o.borderColor);var r,s=t.color;"custom"==o.linearType&&(r=i.createCircularGradient?i.createCircularGradient(n.x,n.y,t._radius_):i.createRadialGradient(n.x,n.y,0,n.x,n.y,t._radius_),r.addColorStop(0,h(o.customColor[t.linearIndex],1)),r.addColorStop(1,h(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(n.x,n.y),i.arc(n.x,n.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==o.border&&i.stroke()})),"ring"===e.type){var d=.6*s;"number"===typeof o.ringWidth&&o.ringWidth>0&&(d=Math.max(0,s-o.ringWidth*e.pix)),i.beginPath(),i.setFillStyle(o.centerColor),i.moveTo(n.x,n.y),i.arc(n.x,n.y,d,0,2*Math.PI),i.closePath(),i.fill()}return!1!==e.dataLabel&&1===r&&Dt(t,e,a,i,s,n),1===r&&"ring"===e.type&&Ct(e,a,i,n),{center:n,radius:s,series:t}}function Zt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=o.activeRadius*e.pix);var n={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);s=s<10?10:s;var l=o.minRadius||.5*s;t=tt(t,o.type,l,s,r);var d=o.activeRadius*e.pix;return o.customColor=w(o.linearType,o.customColor,t,a),t=t.map((function(t){return t._start_+=(o.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(h(t.color,o.activeOpacity||.5)),i.moveTo(n.x,n.y),i.arc(n.x,n.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(o.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(o.borderColor);var r,s=t.color;"custom"==o.linearType&&(r=i.createCircularGradient?i.createCircularGradient(n.x,n.y,t._radius_):i.createRadialGradient(n.x,n.y,0,n.x,n.y,t._radius_),r.addColorStop(0,h(o.customColor[t.linearIndex],1)),r.addColorStop(1,h(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(n.x,n.y),i.arc(n.x,n.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==o.border&&i.stroke()})),!1!==e.dataLabel&&1===r&&Dt(t,e,a,i,s,n),{center:n,radius:s,series:t}}function Kt(t,e,a,i){var r,o,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=c({},{startAngle:.75,endAngle:.25,type:"default",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=et(t,s,n),r=s.centerX||s.centerY?{x:s.centerX?s.centerX:e.width/2,y:s.centerY?s.centerY:e.height/2}:{x:e.width/2,y:e.height/2},s.radius?o=s.radius:(o=Math.min(r.x,r.y),o-=5*e.pix,o-=s.width/2),o=o<10?10:o,s.customColor=w(s.linearType,s.customColor,t,a);for(var l=0;l5&&void 0!==arguments[5]?arguments[5]:1,n=c({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==n.oldAngle&&(n.oldAngle=n.startAngle),void 0==n.oldData&&(n.oldData=0),t=it(t,n.startAngle,n.endAngle);var s={x:a.width/2,y:a.height/2},l=Math.min(s.x,s.y);l-=5*a.pix,l-=n.width/2,l=l<10?10:l;var d=l-n.width,p=0;if("progress"==n.type){var f=l-3*n.width;r.beginPath();var u=r.createLinearGradient(s.x,s.y-f,s.x,s.y+f);u.addColorStop("0",h(e[0].color,.3)),u.addColorStop("1.0",h("#FFFFFF",.1)),r.setFillStyle(u),r.arc(s.x,s.y,f,0,2*Math.PI,!1),r.fill(),r.setLineWidth(n.width),r.setStrokeStyle(h(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,n.startAngle*Math.PI,n.endAngle*Math.PI,!1),r.stroke(),p=n.startAngle-n.endAngle+1;n.splitLine.splitNumber;var x=p/n.splitLine.splitNumber/n.splitLine.childNumber,g=-l-.5*n.width-n.splitLine.fixRadius,v=-l-n.width-n.splitLine.fixRadius+n.splitLine.width;r.save(),r.translate(s.x,s.y),r.rotate((n.startAngle-1)*Math.PI);for(var m=n.splitLine.splitNumber*n.splitLine.childNumber+1,y=e[0].data*o,b=0;bb/m?r.setStrokeStyle(h(e[0].color,1)):r.setStrokeStyle(h(e[0].color,.3)),r.setLineWidth(3*a.pix),r.moveTo(g,0),r.lineTo(v,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=at(e,n,o),r.setLineWidth(n.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,n.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=l-2.5*n.width;r.save(),r.translate(s.x,s.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(n.width/3);var A=r.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",h("#FFFFFF",0)),A.addColorStop("0.5",h(e[0].color,1)),A.addColorStop("1.0",h("#FFFFFF",0)),r.setStrokeStyle(A),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-n.width/3/2,-4),r.lineTo(-w-n.width/3/2-4,0),r.lineTo(-w-n.width/3/2,4),r.lineTo(-w-n.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(n.width),r.setLineCap("butt");for(var S=0;S4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},e.extra.radar),n=M(e.categories.length),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=(e.width-e.area[1]-e.area[3])/2,d=(e.height-e.area[0]-e.area[2])/2,p=Math.min(l-(k(e.categories,a.fontSize,i)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);p-=a.radarLabelTextMargin*e.pix,p=p<10?10:p,i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(o.gridColor),n.forEach((function(t,e){var a=v(p*Math.cos(t),p*Math.sin(t),s);i.moveTo(s.x,s.y),e%o.gridEval==0&&i.lineTo(a.x,a.y)})),i.stroke(),i.closePath();for(var f=function(t){var a={};if(i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(o.gridColor),"radar"==o.gridType)n.forEach((function(e,r){var n=v(p/o.gridCount*t*Math.cos(e),p/o.gridCount*t*Math.sin(e),s);0===r?(a=n,i.moveTo(n.x,n.y)):i.lineTo(n.x,n.y)})),i.lineTo(a.x,a.y);else{var r=v(p/o.gridCount*t*Math.cos(1.5),p/o.gridCount*t*Math.sin(1.5),s);i.arc(s.x,s.y,s.y-r.y,0,2*Math.PI,!1)}i.stroke(),i.closePath()},u=1;u<=o.gridCount;u++)f(u);o.customColor=w(o.linearType,o.customColor,t,a);var x=V(n,s,p,t,e,r);if(x.forEach((function(a,r){i.beginPath(),i.setLineWidth(o.borderWidth*e.pix),i.setStrokeStyle(a.color);var n,l=h(a.color,o.opacity);"custom"==o.linearType&&(n=i.createCircularGradient?i.createCircularGradient(s.x,s.y,p):i.createRadialGradient(s.x,s.y,0,s.x,s.y,p),n.addColorStop(0,h(o.customColor[t[r].linearIndex],o.opacity)),n.addColorStop(1,h(a.color,o.opacity)),l=n);if(i.setFillStyle(l),a.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!0===o.border&&i.stroke(),i.closePath(),!1!==e.dataPointShape){var c=a.data.map((function(t){return t.position}));St(c,a.color,a.pointShape,i,e)}})),!0===o.axisLabel){var g=Math.max(o.max,Math.max.apply(null,C(t))),m=p/o.gridCount,y=e.fontSize*e.pix;i.setFontSize(y),i.setFillStyle(e.fontColor),i.setTextAlign("left");for(u=0;uc.x?a.xMax:c.x,a.yMin=a.yMinc.y?a.yMax:c.y}}return a}function re(t,e,a,i,r,o){return{x:(e-a.xMin)*i+r,y:(a.yMax-t)*i+o}}function oe(t,e,a,i,r,o){return{x:(e-r)/i+a.xMin,y:a.yMax-(t-o)/i}}function ne(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]e[o].area[2]||t[1]>e[o].area[3]||t[2]a||t[3]>i){r=!0;break}r=!1}return r}function he(t,e,a){var i=t.series;switch(e){case"normal":for(var r=0;r.7},u=0;u4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=he(e,o.type,i)),i.beginPath(),i.setFillStyle(e.background),i.rect(0,0,e.width,e.height),i.fill(),i.save();var n=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(n[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(n[s].areav[1]+5+d-e.height/2)*r):i.fillText(l,(n[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(n[s].areav[1]+5+d-e.height/2)*r)):n[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(n[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(n[s].area[1]+5+d-e.height/2)*r):i.fillText(l,(n[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(n[s].area[1]+5+d-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}function fe(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),n=(e.height-e.area[0]-e.area[2])/t.length,s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},l=o.activeWidth*e.pix,d=Math.min((e.width-e.area[1]-e.area[3])/2-l,(e.height-e.area[0]-e.area[2])/2-l);if(t=K(t,d,o.type,n,r),i.save(),i.translate(s.x,s.y),o.customColor=w(o.linearType,o.customColor,t,a),"pyramid"==o.type)for(var p=0;p0?m[T].width+e.yAxis.padding*e.pix:m[T].width,C+=1):"right"==m[T].position&&(e.area[1]+=S>0?m[T].width+e.yAxis.padding*e.pix:m[T].width,S+=1)}else a.yAxisWidth=m;if(e.chartData.yAxisData=v,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=ht(e.categories,e,a);var _=$(e.categories,e,a,e.chartData.xAxisData.eachSpacing,i),P=_.xAxisHeight,k=_.angle;a.xAxisHeight=P,a._xAxisTextAngle_=k,e.area[2]+=P,e.chartData.categoriesData=_}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Q(o,e,a,i),n=e.chartData.xAxisData.rangesFormat;var M=$(n,e,a,e.chartData.xAxisData.eachSpacing,i),D=M.xAxisHeight,F=M.angle;a.xAxisHeight=D,a._xAxisTextAngle_=F,e.area[2]+=D,e.chartData.categoriesData=M}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,I=e.chartData.xAxisData.xAxisPoints,E=e.chartData.xAxisData.startX,B=e.chartData.xAxisData.endX,z=e.chartData.xAxisData.eachSpacing,W=z*(I.length-1),R=B-E;L=R-W,r.scrollOption.currentOffset=L,r.scrollOption.startTouchX=L,r.scrollOption.distance=0,r.scrollOption.lastMoveTime=0,e._scrollDistance_=L}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:ot(d,a,i,e)),t){case"word":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),pe(o,e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),le(o,e,a,i);break;case"funnel":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.funnelData=fe(o,e,a,i,t),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Ht(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=jt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Yt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Xt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=zt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Wt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),Ut(n,e,a,i);var r=Rt(o,e,a,i,t),s=r.yAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.yAxisPoints=s,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Nt(o,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.pieData=Vt(o,e,a,i,t),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.pieData=Vt(o,e,a,i,t),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.pieData=Zt(o,e,a,i,t),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.radarData=ee(o,e,a,i,t),Qt(e.series,e,a,i,e.chartData),qt(e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.arcbarData=Kt(o,e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),e.chartData.gaugeData=te(n,o,e,a,i,t),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new ve({timing:e.timing,duration:l,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&At(i,e),$t(n,e,a,i),Ut(n,e,a,i);var r=Gt(o,d,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Jt(o,e,a,i),!1!==e.enableMarkLine&&1===t&&Lt(e,a,i),Qt(d||e.series,e,a,i,e.chartData),qt(e,a,i,t,c,s),xe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function ye(){this.events={}}ve.prototype.stop=function(){this.isStop=!0},ye.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},ye.prototype.delEventListener=function(t){this.events[t]=[]},ye.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=c({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=yt(this.opts.series,this.opts,this.config,this.context),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,o=ht(this.opts.categories,this.opts,this.config),n=o.xAxisPoints,s=o.startX,l=o.endX,d=o.eachSpacing,h=d*(n.length-1),p=l-s;r=p-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}me.call(this,this.opts.type,this.opts,this.config,this.context)},be.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var i=yt(this.opts.series,this.opts,this.config,this.context),r=i.yAxisWidth;this.config.yAxisWidth=r;var o=0,n=ht(this.opts.categories,this.opts,this.config),s=n.xAxisPoints,l=n.startX,c=n.endX,d=n.eachSpacing,h=d*a,p=c-l,f=p-d*(s.length-1);o=p/2-h,o>0&&(o=0),o=this.opts.categories.length?this.opts.categories.length:p,this.opts.animation=!1,this.opts.xAxis.itemCount=p;var f=0,x=ht(this.opts.categories,this.opts,this.config),g=x.xAxisPoints,v=x.startX,m=x.endX,y=x.eachSpacing,b=y*this.scrollOption.moveCurrent1,w=m-v,A=w-y*(g.length-1);f=-b+Math.min(r[0].x,r[1].x)-this.opts.area[3]-y,f>0&&(f=0),f1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){_(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&("candle"==this.opts.type?this.opts.seriesMA[i].show=!this.opts.seriesMA[i].show:this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,me.call(this,this.opts.type,this.opts,this.config,this.context))}},be.prototype.showToolTip=function(e){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t("log","[uCharts] \u672a\u83b7\u53d6\u5230event\u5750\u6807\u4fe1\u606f"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:7008");var o=_(r,this.opts,e),n=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){var h=P(this.opts.series,d,l.group);if(0!==h.length){var p=D(h,this.opts,d,l.group,this.opts.categories,i),f=p.textList,u=p.offset;u.y=o.y,s.tooltip={textList:void 0!==i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}me.call(this,s.type,s,this.config,this.context)}if("mount"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e).index:i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},s._series_[d]),f=[{text:i.formatter?i.formatter(h,void 0,d,s):h.name+": "+h.data,color:h.color}],u={x:s.chartData.calPoints[d].x,y:o.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}me.call(this,s.type,s,this.config,this.context)}if("bar"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){h=P(this.opts.series,d,l.group);if(0!==h.length){p=D(h,this.opts,d,l.group,this.opts.categories,i),f=p.textList,u=p.offset;u.x=o.x,s.tooltip={textList:void 0!==i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}me.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){n=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:n,animation:!1}),h=P(this.opts.series,d);if(0!==h.length){var x=F(h,this.opts,d,this.opts.categories,i);f=x.textList,u=x.offset;u.y=o.y,s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}me.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){n=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:n,animation:!1}),h=P(this.opts.series,d);if(0!==h.length){p=L(this.opts.series[0].data,h,this.opts,d,this.opts.categories,this.opts.extra.candle,i),f=p.textList,u=p.offset;u.y=o.y,s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}me.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},s._series_[d]),f=[{text:i.formatter?i.formatter(h,void 0,d,s):h.name+": "+h.data,color:h.color}],u={x:o.x,y:o.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}me.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]);h.name=h.properties.name;f=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:o.x,y:o.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,me.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]),f=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:o.x,y:o.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,me.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=P(this.opts.series,d);if(0!==h.length){f=h.map((function(t){return{text:i.formatter?i.formatter(t,a.opts.categories[d],d,a.opts):t.name+": "+t.data,color:t.color}})),u={x:o.x,y:o.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}me.call(this,s.type,s,this.config,this.context)}},be.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=c({},this.opts,{_scrollDistance_:t,animation:!1});me.call(this,this.opts.type,e,this.config,this.context)},be.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=_(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},be.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),i=1;is&&(h=o-c-30),p+d>l&&(p=n-d-30),[h,p]}},ucinit:function(t,e,a,i){var o=this;if(JSON.stringify(t)!=JSON.stringify(e)&&t.canvasId){var n=JSON.parse(JSON.stringify(t.canvasId));this.rid=n,s[n]=this.$ownerInstance||i,r.default.option[n]=JSON.parse(JSON.stringify(t)),r.default.option[n]=d(r.default.option[n],r.default.formatter);var l=document.getElementById(n);l&&l.children[0]&&(r.default.option[n].context=l.children[0].getContext("2d"),r.default.instance[n]&&r.default.option[n]&&!0===r.default.option[n].update?this.updataUChart():setTimeout((function(){r.default.option[n].context.restore(),r.default.option[n].context.save(),o.newUChart()}),100))}},newUChart:function(){var t=this.rid;r.default.instance[t]=new i.default(r.default.option[t]),r.default.instance[t].addEventListener("renderComplete",(function(){s[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),r.default.instance[t].delEventListener("renderComplete")})),r.default.instance[t].addEventListener("scrollLeft",(function(){s[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t}})})),r.default.instance[t].addEventListener("scrollRight",(function(){s[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t}})}))},updataUChart:function(){var t=this.rid;r.default.instance[t].updateData(r.default.option[t])},tooltipDefault:function(t,e,a,i){if(e){var r=t.data;return"object"===typeof t.data&&(r=t.data.value),e+" "+t.name+":"+r}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip:function(t,e){var a=this,i=r.default.option[e].tooltipCustom;if(i&&void 0!==i&&null!==i){var o=void 0;i.x>=0&&i.y>=0&&(o={x:i.x,y:i.y+10}),r.default.instance[e].showToolTip(t,{index:i.index,offset:o,textList:i.textList,formatter:function(t,i,o,n){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,o,n):a.tooltipDefault(t,i,o,n)}})}else r.default.instance[e].showToolTip(t,{formatter:function(t,i,o,n){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,o,n):a.tooltipDefault(t,i,o,n)}})},tap:function(t){var e=this.rid,a=r.default.option[e].ontap,i=r.default.option[e].tooltipShow,o=r.default.option[e].tapLegend;if(0!=a){var n=null,c=null,d=document.getElementById("UC"+e).getBoundingClientRect(),h={};h=t.detail.x?{x:t.detail.x-d.left,y:t.detail.y-d.top+l.top}:{x:t.clientX-d.left,y:t.clientY-d.top+l.top},t.changedTouches=[],t.changedTouches.unshift(h),n=r.default.instance[e].getCurrentDataIndex(t),c=r.default.instance[e].getLegendDataIndex(t),!0===o&&r.default.instance[e].touchLegend(t),1==i&&this.showTooltip(t,e),s[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:h,currentIndex:n,legendIndex:c,id:e,opts:r.default.instance[e].opts}})}},touchStart:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(!0===r.default.option[e].enableScroll&&1==t.touches.length&&r.default.instance[e].scrollStart(t),s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e}}))},touchMove:function(t){var e=this.rid,a=r.default.option[e].ontouch;if(0!=a){if(!0===r.default.option[e].enableScroll&&1==t.changedTouches.length&&r.default.instance[e].scroll(t),!0===r.default.option[e].ontap&&!1===r.default.option[e].enableScroll&&!0===r.default.option[e].onmovetip){var i=document.getElementById("UC"+e).getBoundingClientRect(),o={x:t.changedTouches[0].clientX-i.left,y:t.changedTouches[0].clientY-i.top+l.top};t.changedTouches.unshift(o),!0===r.default.option[e].tooltipShow&&this.showTooltip(t,e)}!0===a&&!0===r.default.option[e].enableScroll&&!0===r.default.option[e].onzoom&&2==t.changedTouches.length&&r.default.instance[e].dobuleZoom(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e}})}},touchEnd:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(!0===r.default.option[e].enableScroll&&0==t.touches.length&&r.default.instance[e].scrollEnd(t),s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e}}))},mouseDown:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(o),r.default.instance[e].scrollStart(t),r.default.option[e].mousedown=!0,s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:o,id:e}})}},mouseMove:function(t){var e=this.rid,a=r.default.option[e].onmouse,i=r.default.option[e].tooltipShow;if(0!=a){var o=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-o.left,y:t.clientY-o.top+l.top},t.changedTouches=[],t.changedTouches.unshift(n),r.default.option[e].mousedown?(r.default.instance[e].scroll(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:n,id:e}})):r.default.instance[e]&&1==i&&this.showTooltip(t,e)}},mouseUp:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(o),r.default.instance[e].scrollEnd(t),r.default.option[e].mousedown=!1,s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:o,id:e}})}}}};e.default=h},f0c5:function(t,e,a){"use strict";function i(t,e,a,i,r,o,n,s,l,c){var d,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var p=Object.prototype.hasOwnProperty;for(var f in l)p.call(l,f)&&!p.call(h.components,f)&&(h.components[f]=l[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(h.mixins||(h.mixins=[])).push(c)),e&&(h.render=e,h.staticRenderFns=a,h._compiled=!0),i&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),n?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},h._ssrRegister=d):r&&(d=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),d)if(h.functional){h._injectStyles=d;var u=h.render;h.render=function(t,e){return d.call(e),u(t,e)}}else{var x=h.beforeCreate;h.beforeCreate=x?[].concat(x,d):[d]}return{exports:t,options:h}}a.d(e,"a",(function(){return i}))},f1ef:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-3b8cb2d8]{width:30px;height:30px;position:relative}.container.loading1[data-v-3b8cb2d8]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.container .shape[data-v-3b8cb2d8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-3b8cb2d8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-3b8cb2d8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-3b8cb2d8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-3b8cb2d8]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-3b8cb2d8]{-webkit-animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}@keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}.loading1 .shape2[data-v-3b8cb2d8]{-webkit-animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}@keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}.loading1 .shape3[data-v-3b8cb2d8]{-webkit-animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}@keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}.loading1 .shape4[data-v-3b8cb2d8]{-webkit-animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}@keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}",""]),t.exports=e},f3db:function(t,e,a){"use strict";var i=a("6048"),r=a.n(i);r.a},fe0d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var a in t){0==a&&(e+=t[a].axisValueLabel+"\u5e74\u9500\u552e\u989d");var i="--";null!==t[a].data&&(i=t[a].data),e+="
"+t[a].marker+t[a].seriesName+"\uff1a"+i+" \u4e07\u5143"}return e},legendFormat:function(t){return"\u81ea\u5b9a\u4e49\u56fe\u4f8b+"+t},yAxisFormatDemo:function(t,e){return t+"\u5143"},seriesFormatDemo:function(t){return t.name+"\u5e74"+t.value+"\u5143"}},demotype:{color:i},column:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:i,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:i,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:i,tooltip:{formatter:"{a}
{b} : {c}%"},seriesTemplate:{name:"\u4e1a\u52a1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5b8c\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:i,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},o=r;e.default=o}});