(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-statistics-index"],{"0ced":function(t,e,a){"use strict";(function(t,e){var i=a("7037").default;a("d9e2"),a("d401"),a("d3b7"),a("25f0"),a("159b"),a("14d9"),a("ac1f"),a("5319"),a("e25e"),a("d81d"),a("00b4"),a("13d5"),a("99af"),a("4de4"),a("fb6a"),a("a9e3"),a("4e82"),a("26e9"),a("cb29"),a("e9c4");var n={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},o=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y2*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 c(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 n=.2,o=.2,r=null,l=null,s=null,h=null;if(e<1?(r=t[0].x+(t[1].x-t[0].x)*n,l=t[0].y+(t[1].y-t[0].y)*n):(r=t[e].x+(t[e+1].x-t[e-1].x)*n,l=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*o,h=t[c].y-(t[c].y-t[c-1].y)*o}else s=t[e+1].x-(t[e+2].x-t[e].x)*o,h=t[e+1].y-(t[e+2].y-t[e].y)*o;return a(t,e+1)&&(h=t[e+1].y),a(t,e)&&(l=t[e].y),i(t,e+1)&&(s=t[e+1].x),i(t,e)&&(r=t[e].x),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e].y),(h>=Math.max(t[e].y,t[e+1].y)||h<=Math.min(t[e].y,t[e+1].y))&&(h=t[e+1].y),(r>=Math.max(t[e].x,t[e+1].x)||r<=Math.min(t[e].x,t[e+1].x))&&(r=t[e].x),(s>=Math.max(t[e].x,t[e+1].x)||s<=Math.min(t[e].x,t[e+1].x))&&(s=t[e+1].x),{ctrA:{x:r,y:l},ctrB:{x:s,y:h}}}function d(t,e,a){return{x:a.x+t,y:a.y-e}}function p(t,e){if(e)while(r.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 f(t,e,a){var i=0;return t.map((function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function x(t,e){var a=0,i=e-t;return a=i>=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:s(t,"lower",a),maxRange:s(e,"upper",a)}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.fontSize;t=String(t);t=t.split("");for(var a=0,i=0;i4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){var e=[];return e=i||t.data,{text:n.format?n.format(t,e[a]):t.name+": "+t.data,color:t.color}})),r=[],l={x:0,y:0},s=0;s4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){return{text:n.format?n.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));for(var r=[],l={x:0,y:0},s=0;st[i-1][1]&&(s[2]=r),e.data[3]=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function P(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function D(t){var e=[],a=[];return t.forEach((function(t,i){null!==t?a.push(t):(a.length&&e.push(a),a=[])})),a.length&&e.push(a),e}function M(t,e,a,i){var n={angle:0,xAxisHeight:a.xAxisHeight},o=t.map((function(t){return g(t,e.xAxis.fontSize||a.fontSize)})),r=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&r+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+r*Math.sin(n.angle)),n}function L(t,e,a){var n={angle:0,xAxisHeight:a.xAxisHeight};n.ranges=function(t,e,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=u(t),r=[];o=o.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[0]):r.push(t.value):r.push(t)}));var l=0,s=0;if(r.length>0&&(l=Math.min.apply(this,r),s=Math.max.apply(this,r)),n>-1?("number"===typeof e.xAxis.data[n].min&&(l=Math.min(e.xAxis.data[n].min,l)),"number"===typeof e.xAxis.data[n].max&&(s=Math.max(e.xAxis.data[n].max,s))):("number"===typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),l===s){var h=s||10;s+=h}for(var c=l,d=s,p=[],f=(d-c)/e.xAxis.splitNumber,x=0;x<=e.xAxis.splitNumber;x++)p.push(c+f*x);return p}(t,e,a),n.rangesFormat=n.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):r.toFixed(t,2),t}));var o=n.ranges.map((function(t){return t=r.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));n=Object.assign(n,B(o,e,a));var l=n.eachSpacing,s=o.map((function(t){return g(t)})),h=Math.max.apply(this,s);return h+2*a.xAxisTextPadding>l&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(n.angle)),!0===e.xAxis.disabled&&(n.xAxisHeight=0),n}function F(t,e,a,i,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=n.extra.radar||{};r.max=r.max||0;for(var l=Math.max(r.max,Math.max.apply(null,u(i))),s=[],h=function(n){var r=i[n],h={};h.color=r.color,h.legendShape=r.legendShape,h.pointShape=r.pointShape,h.data=[],r.data.forEach((function(i,n){var r={};r.angle=t[n],r.proportion=i/l,r.position=d(a*r.proportion*o*Math.cos(r.angle),a*r.proportion*o*Math.sin(r.angle),e),h.data.push(r)})),s.push(h)},c=0;c2&&void 0!==arguments[2]?arguments[2]:1,i=0,n=0,o=0;o2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,o=0,r=0,l=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(n._proportion_=n._proportion_%2)}return t}function I(t,e,a){for(var i=e-a+1,n=e,o=0;o=2&&(t[o]._endAngle_=t[o]._endAngle_%2),n=t[o]._endAngle_;return t}function O(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n=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 W(t,e,a,i,n,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/a),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)}))}function E(t,e,a,i,n,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),i>0&&(t.width-=2*r),t)}))}function $(t,e,a,i,n,o,r){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t)}))}function B(t,e,a){var i=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var o=i/n,r=[],l=e.area[3],s=e.width-e.area[1];return t.forEach((function(t,e){r.push(l+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(l+t.length*o):r.push(s)),{xAxisPoints:r,startX:l,endX:s,eachSpacing:o}}function H(t,e,a,i,n,o,r){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],h=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)s.push(null);else{var c=[];t.forEach((function(t,s){var d={};d.x=i[r]+Math.round(n/2);var p=t.value||t,f=h*(p-e)/(a-e);f*=l,d.y=o.height-Math.round(f)-o.area[2],c.push(d)})),s.push(c)}})),s}function N(t,e,a,n,o,r,l){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,h="center";"line"!=r.type&&"area"!=r.type||(h=r.xAxis.boundaryGap);var c=[],d=r.height-r.area[0]-r.area[2],p=r.width-r.area[1]-r.area[3];return t.forEach((function(t,l){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=n[l];var x,g,u,y=t;if("object"===i(t)&&null!==t)if(t.constructor==Array)x=[].concat(r.chartData.xAxisData.ranges),g=x.shift(),u=x.pop(),y=t[1],f.x=r.area[3]+p*(t[0]-g)/(u-g);else y=t.value;"center"==h&&(f.x+=Math.round(o/2));var v=d*(y-e)/(a-e);v*=s,f.y=r.height-Math.round(v)-r.area[2],c.push(f)}})),c}function X(t,e,a,i,n,o,r,l,s){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],d=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)c.push(null);else{var p={};if(p.color=t.color,p.x=i[r]+Math.round(n/2),l>0){for(var f=0,x=0;x<=l;x++)f+=s[x].data[r];var g=f-t,u=d*(f-e)/(a-e),y=d*(g-e)/(a-e)}else f=t,u=d*(f-e)/(a-e),y=0;var v=y;u*=h,v*=h,p.y=o.height-Math.round(u)-o.area[2],p.y0=o.height-Math.round(v)-o.area[2],c.push(p)}})),c}function G(t,e,a,n){var o,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;o="stack"==n?y(t,e.categories.length):u(t);var l=[];o=o.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){l.push(t)})):l.push(t[1]):l.push(t.value):l.push(t)}));var s=0,h=0;if(l.length>0&&(s=Math.min.apply(this,l),h=Math.max.apply(this,l)),r>-1?("number"===typeof e.yAxis.data[r].min&&(s=Math.min(e.yAxis.data[r].min,s)),"number"===typeof e.yAxis.data[r].max&&(h=Math.max(e.yAxis.data[r].max,h))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(h=Math.max(e.yAxis.max,h))),s===h){var c=h||10;h+=c}for(var d=x(s,h),p=d.minRange,f=d.maxRange,g=[],v=(f-p)/e.yAxis.splitNumber,m=0;m<=e.yAxis.splitNumber;m++)g.push(p+v*m);return g.reverse()}function j(t,e,a){var i=o({},{type:""},e.extra.column),n=e.yAxis.data.length,l=new Array(n);if(n>0){for(var s=0;s=2&&(c%=2),d+=h}}function K(t,e,a,i,n,o){var l=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,s){var h={x:e*Math.cos(t),y:e*Math.sin(t)},c=d(h.x,h.y,a),p=c.x,f=c.y;r.approximatelyEqual(h.x,0)?p-=g(i.categories[s]||"")/2:h.x<0&&(p-=g(i.categories[s]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(l.labelColor||"#666666"),o.fillText(i.categories[s]||"",p,f+n.fontSize/2),o.closePath(),o.stroke()}))}function Q(t,e,a,i,n,o){for(var l=a.pieChartLinePadding,s=[],h=null,c=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}})),f=0;f=0?u+a.pieChartTextPadding:u-a.pieChartTextPadding,w=y,A=g(x.text,x.textSize||a.fontSize),T=w;h&&r.isSameXCoordinateArea(h.start,{x:b})&&(T=b>0?Math.min(w,h.start.y):u<0||w>0?Math.max(w,h.start.y):Math.min(w,h.start.y)),b<0&&(b-=A);var S={lineStart:{x:v,y:m},lineEnd:{x:u,y:y},start:{x:b,y:T},width:A,height:a.fontSize,text:x.text,color:x.color,textColor:x.textColor,textSize:x.textSize};h=p(S,h),s.push(h)}for(var _=0;_a.width&&(f=!0),y+e.y>a.height&&(e.y=a.height-y),n.beginPath(),n.setFillStyle(l(h.bgColor||i.toolTipBackground,h.bgOpacity||i.toolTipOpacity)),f?(n.moveTo(e.x,e.y+10*a.pixelRatio),n.lineTo(e.x-p,e.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(e.x-p,e.y),n.lineTo(e.x-p-Math.round(u),e.y),n.lineTo(e.x-p-Math.round(u),e.y+y),n.lineTo(e.x-p,e.y+y),n.lineTo(e.x-p,e.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(e.x,e.y+10*a.pixelRatio)):(n.moveTo(e.x,e.y+10*a.pixelRatio),n.lineTo(e.x+p,e.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(e.x+p,e.y),n.lineTo(e.x+p+Math.round(u),e.y),n.lineTo(e.x+p+Math.round(u),e.y+y),n.lineTo(e.x+p,e.y+y),n.lineTo(e.x+p,e.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(e.x,e.y+10*a.pixelRatio)),n.closePath(),n.fill(),t.forEach((function(t,a){if(null!==t.color){n.beginPath(),n.setFillStyle(t.color);var o=e.x+p+2*i.toolTipPadding,r=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;f&&(o=e.x-u-p+2*i.toolTipPadding),n.fillRect(o,r,c,i.fontSize),n.closePath()}})),t.forEach((function(t,a){var o=e.x+p+2*i.toolTipPadding+c+d;f&&(o=e.x-u-p+2*i.toolTipPadding+ +c+d);var r=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;n.beginPath(),n.setFontSize(i.fontSize),n.setFillStyle(h.fontColor),n.fillText(t.text,o,r+i.fontSize),n.closePath(),n.stroke()})))}function it(t,e,a,i,n,o){var r=t.extra.tooltip||{};r.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&tt(t,e,a),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===i&&at(t.tooltip.textList,t.tooltip.offset,t,e,a),a.restore()}function nt(t,e,a,i){var n=e.chartData.xAxisData,o=n.xAxisPoints,r=n.startX,l=n.endX,s=n.eachSpacing,h="center";"line"!=e.type&&"area"!=e.type||(h=e.xAxis.boundaryGap);var c=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+a.xAxisHeight,f=l-r,x=s*(o.length-1),u=f*f/x,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*f/x),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(r,p),i.lineTo(l,p),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(r+y,p),i.lineTo(r+y+u,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.pixelRatio),o.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-s/2,c),i.lineTo(t-s/2,c+3*e.pixelRatio),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,c),i.lineTo(t,d),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),b=[],w=t.length,A=0;Ae[o].area[2]||t[1]>e[o].area[3]||t[2]a||t[3]>i){n=!0;break}n=!1}return n}function ct(t,e,a,i,n,o){return{x:(e-a.xMin)*i+n,y:(a.yMax-t)*i+o}}function dt(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.width-e.padding[1]-e.padding[3]?(d.push(x),f.push(p-e.legend.itemGap),p=v,x=[y]):(p+=v,x.push(y))}if(x.length){d.push(x),f.push(p-e.legend.itemGap),n.widthArr=f;var m=Math.max.apply(null,f);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*o;break;case"right":n.area.start.x=e.width-e.padding[1]-m-2*o,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-m)/2-o,n.area.end.x=(e.width+m)/2+o}n.area.width=m+2*o,n.area.wholeWidth=m+2*o,n.area.height=d.length*c+2*o,n.area.wholeHeight=d.length*c+2*o+2*r,n.points=d}}else{var b=t.length,w=e.height-e.padding[0]-e.padding[2]-2*r-2*o,A=Math.min(Math.floor(w/c),b);switch(n.area.height=A*c+2*o,n.area.wholeHeight=A*c+2*o,e.legend.float){case"top":n.area.start.y=e.padding[0]+r,n.area.end.y=e.padding[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-r-n.area.height,n.area.end.y=e.height-e.padding[2]-r;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var T=b%A===0?b/A:Math.floor(b/A+1),S=[],_=0;_L&&(L=k)}n.widthArr.push(L),n.heightArr.push(M.length*c+2*o)}for(var C=0,R=0;R0?S[at].width+e.yAxis.padding:S[at].width,tt+=1):(e.area[1]+=G>0?S[at].width+e.yAxis.padding:S[at].width,G+=1)}else a.yAxisWidth=S;if(e.chartData.yAxisData=T,e.categories&&e.categories.length){e.chartData.xAxisData=B(e.categories,e);var dt=M(e.categories,e,a,e.chartData.xAxisData.eachSpacing),pt=dt.xAxisHeight,gt=dt.angle;a.xAxisHeight=pt,a._xAxisTextAngle_=gt,e.area[2]+=pt,e.chartData.categoriesData=dt}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=L(s,e,a),h=e.chartData.xAxisData.rangesFormat;var yt=M(h,e,a,e.chartData.xAxisData.eachSpacing),vt=yt.xAxisHeight,mt=yt.angle;a.xAxisHeight=vt,a._xAxisTextAngle_=mt,e.area[2]+=vt,e.chartData.categoriesData=yt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var bt,wt=e.chartData.xAxisData.xAxisPoints,At=e.chartData.xAxisData.startX,Tt=e.chartData.xAxisData.endX,St=e.chartData.xAxisData.eachSpacing,_t=St*(wt.length-1),Pt=Tt-At;bt=Pt-_t,n.scrollOption={currentOffset:bt,startTouchX:bt,distance:0,lastMoveTime:0},e._scrollDistance_=bt}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:function(t){t=k(t);for(var e=0,a=0;a.7},f=0;f4&&void 0!==arguments[4]?arguments[4]:1;o({},{type:"normal",autoColors:!0},e.extra.word),i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var r=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var l=0;l0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(r[l].areav[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].areav[1]+5+h-e.height/2)*n):i.fillText(s,(r[l].areav[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].areav[1]+5+h-e.height/2)*n)):r[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(r[l].area[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].area[1]+5+h-e.height/2)*n):i.fillText(s,(r[l].area[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].area[1]+5+h-e.height/2)*n)),i.stroke(),i.restore()}i.restore()}(s,e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),function(t,e,a,i){var n,r,s=o({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),h=t,c=function(t){for(var e,a={xMin:180,xMax:0,yMin:90,yMax:0},i=0;ih.x?a.xMax:h.x,a.yMin=a.yMinh.y?a.yMax:h.y}}return a}(h),d=e.width/Math.abs(c.xMax-c.xMin),p=e.height/Math.abs(c.yMax-c.yMin),f=d4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=r.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);t=C(t,d,n),i.save(),i.translate(h.x,h.y);for(var p=0;p4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"straight",width:2},e.extra.line);r.width*=e.pixelRatio;var l=e.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,d=[];i.save();var p=0,f=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-h+e.area[3],f=p+(e.xAxis.itemCount+4)*h),t.forEach((function(t,o){var l,x,g;l=[].concat(e.chartData.yAxisData.ranges[t.index]),x=l.pop(),g=l.shift();var u=t.data,y=N(u,x,g,s,h,e,a,n);d.push(y);var v=D(y);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pixelRatio,i.setLineDash([m,m])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(r.width),v.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"===r.type)for(var n=0;np&&(i.moveTo(o.x,o.y),a=1),n>0&&o.x>p&&o.xp&&(i.moveTo(h.x,h.y),a=1),s>0&&h.x>p&&h.x4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,r=o.xAxisPoints,s=o.eachSpacing,h=e.height-e.area[2],d=[],p=0,f=0;t.forEach((function(t,e){"column"==t.type&&(f+=1)})),i.save();var x=-2,g=r.length+2,u=0,y=e.width+s;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),x=Math.floor(-e._scrollDistance_/s)-2,g=x+e.xAxis.itemCount+4,u=-e._scrollDistance_-s+e.area[3],y=u+(e.xAxis.itemCount+4)*s),t.forEach((function(t,o){var v,m,b;v=[].concat(e.chartData.yAxisData.ranges[t.index]),m=v.pop(),b=v.shift();var w=t.data,A=N(w,m,b,r,s,e,a,n);if(d.push(A),"column"==t.type){A=W(A,s,f,p,a,e);for(var T=0;Tx&&T1){var F=L[0],k=L[L.length-1];i.moveTo(F.x,F.y);var C=0;if("curve"===t.style)for(var R=0;Ru&&(i.moveTo(z.x,z.y),C=1),R>0&&z.x>u&&z.xu&&(i.moveTo(E.x,E.y),C=1),O>0&&E.x>u&&E.xu&&(i.moveTo(s.x,s.y),r=1),l>0&&s.x>u&&s.xu&&(i.moveTo(p.x,p.y),r=1),d>0&&p.x>u&&p.x4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,l=r.xAxisPoints,s=r.eachSpacing,h=o({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),c=[];i.save();var d=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/s)-2,p=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&et(e.tooltip.offset.x,e,0,i,s),t.forEach((function(o,r){var f,x,g;f=[].concat(e.chartData.yAxisData.ranges[o.index]),x=f.pop(),g=f.shift();var u=o.data;switch(h.type){case"group":var y=N(u,x,g,l,s,e,a,n),v=X(u,x,g,l,s,e,a,r,t,n);c.push(v),y=W(y,s,t.length,r,a,e);for(var m=0;md&&md&&T0&&(A-=_),i.moveTo(w,S.y),i.fillRect(w,S.y,S.width-2,A),i.closePath(),i.fill()}}break;case"meter":y=N(u,x,g,l,s,e,a,n);if(c.push(y),y=E(y,s,t.length,r,a,e,h.meter.border),0==r)for(var P=0;Pd&&P0&&(i.beginPath(),i.setStrokeStyle(o.color),i.setLineWidth(h.meter.border*e.pixelRatio),i.moveTo(w+.5*h.meter.border,D.y+A),i.lineTo(w+.5*h.meter.border,D.y+.5*h.meter.border),i.lineTo(w+D.width-.5*h.meter.border,D.y+.5*h.meter.border),i.lineTo(w+D.width-.5*h.meter.border,D.y+A),i.stroke())}}else for(var M=0;Md&&M4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,p=e.height-e.area[2],f=[];i.save();var x=0,g=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),x=-e._scrollDistance_-d+e.area[3],g=x+(e.xAxis.itemCount+4)*d),t.forEach((function(t,o){var s,u,y;s=[].concat(e.chartData.yAxisData.ranges[t.index]),u=s.pop(),y=s.shift();var v=t.data,m=N(v,u,y,h,d,e,a,n);f.push(m);for(var b=D(m),w=0;w1){var S=A[0],_=A[A.length-1];i.moveTo(S.x,S.y);var P=0;if("curve"===r.type)for(var M=0;Mx&&(i.moveTo(L.x,L.y),P=1),M>0&&L.x>x&&L.xx&&(i.moveTo(C.x,C.y),P=1),k>0&&C.x>x&&C.xx&&(i.moveTo(W.x,W.y),I=1),O>0&&W.x>x&&W.xx&&(i.moveTo(B.x,B.y),I=1),$>0&&B.x>x&&B.x4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),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};0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius);var h=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);t=k(t,h,n);var c=r.activeRadius;if(t=t.map((function(t){return t._start_+=r.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_+c,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(r.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==r.border&&i.stroke()})),"ring"===e.type){var d=.6*h;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(d=Math.max(0,h-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(s.x,s.y),i.arc(s.x,s.y,d,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===n){for(var p=!1,f=0,x=t.length;f0){p=!0;break}p&&Q(t,e,a,i,0,s)}return 1===n&&"ring"===e.type&&J(e,a,i,s),{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.pieData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius);var 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},h=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),c=r.minRadius||.5*h;t=R(t,r.type,c,h,n);var d=r.activeRadius;if(t=t.map((function(t){return t._start_+=(r.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,r.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(r.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==r.border&&i.stroke()})),!1!==e.dataLabel&&1===n){for(var p=!1,f=0,x=t.length;f0){p=!0;break}p&&Q(t,e,a,i,0,s)}return{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.radarData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),s=w(e.categories.length),h={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},c=Math.min(h.x-(b(e.categories)+a.radarLabelTextMargin),h.y-a.radarLabelTextMargin);c-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(r.gridColor),s.forEach((function(t){var e=d(c*Math.cos(t),c*Math.sin(t),h);i.moveTo(h.x,h.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var p=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(r.gridColor),s.forEach((function(e,n){var o=d(c/r.gridCount*t*Math.cos(e),c/r.gridCount*t*Math.sin(e),h);0===n?(a=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},f=1;f<=r.gridCount;f++)p(f);var x=F(s,h,c,t,e,n);return x.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(l(t.color,r.opacity)),t.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(),!1!==e.dataPointShape){var n=t.data.map((function(t){return t.position}));Y(n,t.color,t.pointShape,i,e)}})),K(s,c,h,e,a,i),{center:h,radius:c,angleList:s}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.arcbarData=function(t,e,a,i){var n,r,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=z(t,s,l),n=s.center?s.center:{x:e.width/2,y:e.height/2},s.radius?r=s.radius:(r=Math.min(n.x,n.y),r-=5*e.pixelRatio,r-=s.width/2);for(var h=0;h5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),t=I(t,s.startAngle,s.endAngle);var h={x:a.width/2,y:a.height/2},c=Math.min(h.x,h.y);c-=5*a.pixelRatio,c-=s.width/2;var d=c-s.width,p=0;if("progress"==s.type){var f=c-3*s.width;n.beginPath();var x=n.createLinearGradient(h.x,h.y-f,h.x,h.y+f);x.addColorStop("0",l(e[0].color,.3)),x.addColorStop("1.0",l("#FFFFFF",.1)),n.setFillStyle(x),n.arc(h.x,h.y,f,0,2*Math.PI,!1),n.fill(),n.setLineWidth(s.width),n.setStrokeStyle(l(e[0].color,.3)),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,d,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),n.stroke(),p=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var g=p/s.splitLine.splitNumber/s.splitLine.childNumber,u=-c-.5*s.width-s.splitLine.fixRadius,y=-c-s.width-s.splitLine.fixRadius+s.splitLine.width;n.save(),n.translate(h.x,h.y),n.rotate((s.startAngle-1)*Math.PI);for(var v=s.splitLine.splitNumber*s.splitLine.childNumber+1,m=e[0].data*r,b=0;bb/v?n.setStrokeStyle(l(e[0].color,1)):n.setStrokeStyle(l(e[0].color,.3)),n.setLineWidth(3*a.pixelRatio),n.moveTo(u,0),n.lineTo(y,0),n.stroke(),n.rotate(g*Math.PI);n.restore(),e=z(e,s,r),n.setLineWidth(s.width),n.setStrokeStyle(e[0].color),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,d,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),n.stroke();var w=c-2.5*s.width;n.save(),n.translate(h.x,h.y),n.rotate((e[0]._proportion_-1)*Math.PI),n.beginPath(),n.setLineWidth(s.width/3);var A=n.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",l("#FFFFFF",0)),A.addColorStop("0.5",l(e[0].color,1)),A.addColorStop("1.0",l("#FFFFFF",0)),n.setStrokeStyle(A),n.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),n.stroke(),n.beginPath(),n.setLineWidth(1),n.setStrokeStyle(e[0].color),n.setFillStyle(e[0].color),n.moveTo(-w-s.width/3/2,-4),n.lineTo(-w-s.width/3/2-4,0),n.lineTo(-w-s.width/3/2,4),n.lineTo(-w-s.width/3/2,-4),n.stroke(),n.fill(),n.restore()}else{n.setLineWidth(s.width),n.setLineCap("butt");for(var T=0;T5&&void 0!==arguments[5]?arguments[5]:1,l=o({},{color:{},average:{}},a.extra.candle);l.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=o({},{show:!1,name:[],day:[],color:i.colors},l.average),a.extra.candle=l;var s=a.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,p=[];n.save();var f=-2,x=h.length+2,g=0,u=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(n.translate(a._scrollDistance_,0),f=Math.floor(-a._scrollDistance_/d)-2,x=f+a.xAxis.itemCount+4,g=-a._scrollDistance_-d+a.area[3],u=g+(a.xAxis.itemCount+4)*d),l.average.show&&e.forEach((function(t,e){var o,l,s;o=[].concat(a.chartData.yAxisData.ranges[t.index]),l=o.pop(),s=o.shift();for(var p=t.data,f=N(p,l,s,h,d,a,i,r),x=D(f),y=0;yg&&(n.moveTo(w.x,w.y),m=1),b>0&&w.x>g&&w.xf&&v0?(n.setStrokeStyle(l.color.upLine),n.setFillStyle(l.color.upFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.moveTo(m[3].x,m[3].y)):(n.setStrokeStyle(l.color.downLine),n.setFillStyle(l.color.downFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.moveTo(m[3].x,m[3].y)),n.closePath(),n.fill(),n.stroke()}})),n.restore(),{xAxisPoints:h,calPoints:p,eachSpacing:d}}(s,x,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,d=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=d,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(x?0:e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break}}function vt(){this.events={}}ut.prototype.stop=function(){this.isStop=!0},vt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},vt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=o({},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=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,r=B(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,h=r.endX,c=r.eachSpacing,d=c*(l.length-1),p=h-s;n=p-d,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;break}yt.call(this,this.opts.type,this.opts,this.config,this.context)},mt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=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=t.itemCount;var a=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,o=B(this.opts.categories,this.opts,this.config),r=o.xAxisPoints,l=o.startX,s=o.endX,h=o.eachSpacing,c=h*e,d=s-l,p=d-h*(r.length-1);n=d/2-c,n>0&&(n=0),n2*Math.PI&&(t-=2*Math.PI),t},r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r*=-1,r<0&&(r+=2*Math.PI);var l=e.angleList.map((function(t){return t=o(-1*t),t}));l.forEach((function(t,e){var a=o(t-i/2),l=o(t+i/2);l=a&&r<=l||r+2*Math.PI>=a&&r+2*Math.PI<=l)&&(n=e)}))}return n}({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var a=-1,i=0,n=e.series.length;io.funnelArea[0]&&t.xo.funnelArea[1]&&t.yo.area[0]&&t.xo.area[1]&&t.y4&&void 0!==arguments[4]?arguments[4]:0,o=-1,r=a.chartData.eachSpacing/2,l=[];if(e.length>0){if("candle"==a.type)for(var s=0;se&&(o=a)}))}return o}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},mt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=v(e,this.opts,t);return function(t,e,a){var i=-1;if(function(t,e){return t.x>e.start.x&&t.xe.start.y&&t.yc[0]&&t.xc[1]&&t.y1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){v(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,yt.call(this,this.opts.type,this.opts,this.config,this.context))}},mt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=v(a,this.opts,t),n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){var s=m(this.opts.series,l);if(0!==s.length){var h=A(s,this.opts.chartData.calPoints,l,this.opts.categories,e),c=h.textList,d=h.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("mix"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){var p=T(s,this.opts.chartData.calPoints,l,this.opts.categories,e);c=p.textList,d=p.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("candle"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){h=S(this.opts.series[0].data,s,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,e),c=h.textList,d=h.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.name+": "+s.data,color:s.color}],d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}yt.call(this,r.type,r,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.properties.name,color:s.color}],d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}r.updateData=!1,yt.call(this,r.type,r,this.config,this.context)}if("radar"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){c=s.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}},mt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},this.opts,{_scrollDistance_:t,animation:!1});yt.call(this,this.opts.type,e,this.config,this.context)},mt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=v(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},mt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i=0?(l=0,t.event.trigger("scrollLeft")):Math.abs(e)>=r-o&&(l=o-r,t.event.trigger("scrollRight")),l}(this,s+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=h-s;var c=o({},this.opts,{_scrollDistance_:s+r,animation:!1});return yt.call(this,c.type,c,this.config,this.context),s+r}}},mt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,a=e.currentOffset,i=e.distance;this.scrollOption.currentOffset=a+i,this.scrollOption.distance=0}},"object"===i(e)&&"object"===i(e.exports)&&(e.exports=mt)}).call(this,a("5a52")["default"],a("62e4")(t))},5171:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.agreeExpress=function(t){return n.default.post("admin/order/agreeExpress",t,{login:!0})},e.getAdminOrderDelivery=function(t){return n.default.get("admin/order/delivery/gain/"+t,{},{login:!0})},e.getAdminOrderDetail=function(t){return n.default.get("admin/order/detail/"+t,{},{login:!0})},e.getAdminOrderList=function(t){return n.default.get("admin/order/list",t,{login:!0})},e.getAdminRefundOrderDetail=function(t){return n.default.get("admin/refund_order/detail/"+t,{},{login:!0})},e.getLogistics=function(t){return n.default.get("logistics",t,{login:!1})},e.getStatisticsInfo=function(){return n.default.get("admin/order/statistics",{},{login:!0})},e.getStatisticsMonth=function(t){return n.default.get("admin/order/data",t,{login:!0})},e.getStatisticsTime=function(t){return n.default.get("admin/order/time",t,{login:!0})},e.orderDeliveryInfo=function(){return n.default.get("admin/order/delivery_info")},e.orderExportTemp=function(t){return n.default.get("admin/order/export_temp",t)},e.orderOrderDelivery=function(){return n.default.get("admin/order/delivery")},e.orderRefund_order=function(t){return n.default.get("admin/refund_order/list",t,{login:!0})},e.orderVerific=function(t,e){return n.default.post("order/order_verific",{verify_code:t,is_confirm:e})},e.setAdminOrderDelivery=function(t,e){return n.default.post("admin/order/delivery/keep/"+t,e,{login:!0})},e.setAdminOrderPrice=function(t){return n.default.post("admin/order/price",t,{login:!0})},e.setAdminOrderRemark=function(t){return n.default.post("admin/order/remark",t,{login:!0})},e.setAdminRefundRemark=function(t){return n.default.post("admin/refund_order/remark",t,{login:!0})},e.setOfflinePay=function(t){return n.default.post("admin/order/offline",t,{login:!0})},e.setOrderRefund=function(t){return n.default.post("admin/order/refund",t,{login:!0})};var n=i(a("fb81"))},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"842d":function(t,e,a){"use strict";a.r(e);var i=a("e5b8"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"890b":function(t,e,a){"use strict";var i=a("b5450"),n=a.n(i);n.a},9420:function(t,e,a){"use strict";a.r(e);var i=a("e9c6"),n=a("842d");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("890b");var r=a("f0c5"),l=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"056f39fa",null,!1,i["a"],void 0);e["default"]=l.exports},"9bd1":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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*交易额统计*/.statistical-page .navs[data-v-056f39fa]{width:100%;height:%?96?%;background-color:#fff;overflow:hidden;line-height:%?96?%;position:fixed;top:0;left:0;z-index:9}.statistical-page .navs .list[data-v-056f39fa]{overflow-y:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;width:100%}.statistical-page .navs .item[data-v-056f39fa]{font-size:%?32?%;color:#282828;margin-left:%?60?%;display:inline-block}.statistical-page .navs .item.on[data-v-056f39fa]{color:#2291f8}.statistical-page .navs .item .iconfont[data-v-056f39fa]{font-size:%?25?%;margin-left:%?13?%}.statistical-page .wrapper[data-v-056f39fa]{width:%?740?%;background-color:#fff;border-radius:%?10?%;margin:%?119?% auto 0 auto;padding:%?50?% %?60?%}.statistical-page .wrapper .title[data-v-056f39fa]{font-size:%?30?%;color:#999;text-align:center}.statistical-page .wrapper .money[data-v-056f39fa]{font-size:%?72?%;color:#fba02a;text-align:center;margin-top:%?10?%}.statistical-page .wrapper .increase[data-v-056f39fa]{font-size:%?28?%;color:#999;margin-top:%?20?%}.statistical-page .wrapper .increase .red[data-v-056f39fa]{color:#ff6969}.statistical-page .wrapper .increase .green[data-v-056f39fa]{color:#1abb1d}.statistical-page .wrapper .increase .iconfont[data-v-056f39fa]{font-size:%?23?%;margin-left:%?15?%}.statistical-page .chart[data-v-056f39fa]{width:%?690?%;background-color:#fff;border-radius:%?10?%;margin:%?23?% auto 0 auto\n\t/* padding: 25upx 22upx 0 22upx; */}.statistical-page .chart .chart-title[data-v-056f39fa]{padding:%?20?% %?20?% %?10?%;font-size:%?26?%;color:#999}.statistical-page .chart uni-canvas[data-v-056f39fa]{width:100%;height:%?530?%}.statistical-page .chart .company[data-v-056f39fa]{font-size:%?26?%;color:#999}.yd-confirm[data-v-056f39fa]{background-color:#fff;font-size:unset;width:%?540?%;height:%?250?%;border-radius:%?40?%}.yd-confirm-hd[data-v-056f39fa]{text-align:center}.yd-confirm-title[data-v-056f39fa]{color:#030303;font-weight:700;font-size:%?36?%}.yd-confirm-bd[data-v-056f39fa]{text-align:center;font-size:%?28?%;color:#333}.yd-confirm-ft[data-v-056f39fa]{line-height:%?90?%;margin-top:14px;border-top:%?1?% solid #eee}.yd-confirm-ft>a[data-v-056f39fa]{color:#e93323}.yd-confirm-ft>a.primary[data-v-056f39fa]{border-left:%?1?% solid #eee;color:#e93323}.echarts[data-v-056f39fa]{width:100%;height:%?550?%}.calendar-wrapper[data-v-056f39fa]{position:fixed;bottom:0;left:0;width:100%;z-index:777;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.calendar-wrapper.on[data-v-056f39fa]{-webkit-transform:translateZ(0);transform:translateZ(0)}.statistical-page .wrapper .increase[data-v-056f39fa]{font-size:%?26?%}.statistical-page .wrapper .increase .iconfont[data-v-056f39fa]{margin-left:0}.public-wrapper .title[data-v-056f39fa]{font-size:%?30?%;color:#282828;padding:0 %?30?%;margin-bottom:%?20?%}.public-wrapper .title .iconfont[data-v-056f39fa]{color:#2291f8;font-size:%?40?%;margin-right:%?13?%;vertical-align:middle}.public-wrapper[data-v-056f39fa]{margin:%?18?% auto 0 auto;width:%?690?%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%}.public-wrapper .nav[data-v-056f39fa]{padding:0 %?30?%;height:%?70?%;line-height:%?70?%;font-size:%?24?%;color:#999}.public-wrapper .data[data-v-056f39fa]{width:%?210?%;text-align:left}.public-wrapper .browse[data-v-056f39fa]{width:%?192?%;text-align:right}.public-wrapper .turnover[data-v-056f39fa]{width:%?227?%;text-align:right}.public-wrapper .conter[data-v-056f39fa]{padding:0 %?30?%}.public-wrapper .conter .item[data-v-056f39fa]{border-bottom:1px solid #f7f7f7;height:%?70?%;font-size:%?24?%}.public-wrapper .conter .item .turnover[data-v-056f39fa]{color:#d84242}",""]),t.exports=e},b5450:function(t,e,a){var i=a("9bd1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5ae4e939",i,!0,{sourceMap:!1,shadowMode:!1})},cb29:function(t,e,a){var i=a("23e7"),n=a("81d5"),o=a("44d2");i({target:"Array",proto:!0},{fill:n}),o("fill")},e5b8:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("159b"),a("14d9"),a("4de4"),a("3ca3"),a("ddb0");var n=i(a("0ced")),o=i(a("d991")),r=a("5171"),l=null,s=(new Date).getFullYear(),h=(new Date).getMonth()+1,c=(new Date).getDate(),d={name:"Statistics",components:{uniCalendar:o.default},props:{},data:function(){return{value:[[s,h,c-1],[s,h,c]],isrange:!0,weekSwitch:!1,ismulti:!1,monFirst:!0,clean:!1,lunar:!1,renderValues:[],monthRange:[],current:!1,where:{start:"",stop:"",type:""},types:"",time:"",title:"",growth_rate:"",increase_time:"",increase_time_status:"",time_price:"",loaded:!1,loading:!1,filter:{page:1,limit:10,start:"",stop:""},list:[],cWidth:"",cHeight:"",pixelRatio:1,textarea:"",LineA:{categories:["2012","2013","2014","2015","2016","2017"],series:[{data:[35,8,25,37,4,20]}]},info:{startDate:"",endDate:"",lunar:!1,range:!0,insert:!1,selected:[],showMonth:!1},type:"",before:"",after:""}},watch:{"$route.params":function(t){void 0!=t&&(this.setType(t.type),this.setTime(t.time),this.getIndex())}},onLoad:function(t){this.type=t.type,t.before&&(this.before=t.before),t.after&&(this.after=t.after),this.setType(t.type),this.setTime(t.time),this.cWidth=uni.upx2px(690),this.cHeight=uni.upx2px(500),this.getInfo()},computed:{monthRangeText:function(){return this.monthRange.length?this.$t("固定"):this.$t("指定范围")}},methods:{getIndex:function(){var t=[],e=[],a=this;(0,r.getStatisticsTime)(a.where).then((function(i){var n=i.data.chart,o=[],r=[];n.forEach((function(t){o.push(t.time),r.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$util.Tips({title:t})}))},setTime:function(t){this.time=t;var e=(new Date).getFullYear(),a=(new Date).getMonth()+1,i=(new Date).getDate();switch(this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,t){case"today":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title=this.$t("今天"),this.getIndex(),this.getInfo();break;case"yesterday":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-86400,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-1,this.title=this.$t("昨天"),this.getIndex(),this.getInfo();break;case"month":this.where.start=new Date(e,(new Date).getMonth(),1).getTime()/1e3,this.where.stop=new Date(e,a,1).getTime()/1e3-1,this.title=this.$t("本月"),this.getIndex(),this.getInfo();break;case"seven":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-604800,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title=this.$t("最近7天"),this.getIndex(),this.getInfo();break}},getTimestamp:function(t,e,a,i,n,o){return new Date(t,e-1,a,i,n,o).getTime()/1e3},setType:function(t){switch(t){case"price":this.where.type=1;break;case"order":this.where.type=2;break}},dateTitle:function(){this.$refs.calendar.open(),this.time="date"},close:function(){this.current=!1},getInfo:function(){var t=this;t.loading||t.loaded||(t.loading=!0,t.filter.start=t.where.start,t.filter.stop=t.where.stop,(0,r.getStatisticsMonth)(t.filter).then((function(e){t.loading=!1,t.loaded=e.data.length