2021-02-07 21:21:12 +08:00

13 lines
198 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0098":function(t,e,n){"use strict";(function(e){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},r=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(!n||n.length<=0)return t;function i(t,e){for(var n in e)t[n]=t[n]&&"[object Object]"===t[n].toString()?i(t[n],e[n]):t[n]=e[n];return t}return n.forEach((function(e){t=i(t,e)})),t},i={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var n=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!n}};function o(t,e){var n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=t.replace(n,(function(t,e,n,r){return e+e+n+n+r+r})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),o=parseInt(i[1],16),a=parseInt(i[2],16),s=parseInt(i[3],16);return"rgba("+o+","+a+","+s+","+e+")"}function a(t,e,n){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");n=n||10,e=e||"upper";var r=1;while(n<1)n*=10,r*=10;t="upper"===e?Math.ceil(t*r):Math.floor(t*r);while(t%n!==0)"upper"===e?t++:t--;return t/r}function s(t,e,n,r){for(var i=[],o=0;o<t.length;o++){for(var a={data:[],name:e[o],color:n[o]},s=0,l=r.length;s<l;s++)if(s<t[o])a.data.push(null);else{for(var c=0,u=0;u<t[o];u++)c+=r[s-u][1];a.data.push(+(c/t[o]).toFixed(3))}i.push(a)}return i}function l(t,e,n,r,i){var o=i.width-i.area[1]-i.area[3],a=n.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=a-o&&(s=o-a,t.event.trigger("scrollRight")),s}function c(t,e,n){function r(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=r(t),e=r(e),n=r(n),e>n&&(n+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=n}function u(t,e,n){var r=t,i=n-e,o=r+(n-i-r)/Math.sqrt(2);o*=-1;var a=(n-i)*(Math.sqrt(2)-1)-(n-i-r)/Math.sqrt(2);return{transX:o,transY:a}}function h(t,e){function n(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 r(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 i=.2,o=.2,a=null,s=null,l=null,c=null;if(e<1?(a=t[0].x+(t[1].x-t[0].x)*i,s=t[0].y+(t[1].y-t[0].y)*i):(a=t[e].x+(t[e+1].x-t[e-1].x)*i,s=t[e].y+(t[e+1].y-t[e-1].y)*i),e>t.length-3){var u=t.length-1;l=t[u].x-(t[u].x-t[u-1].x)*o,c=t[u].y-(t[u].y-t[u-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 n(t,e+1)&&(c=t[e+1].y),n(t,e)&&(s=t[e].y),r(t,e+1)&&(l=t[e+1].x),r(t,e)&&(a=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),(a>=Math.max(t[e].x,t[e+1].x)||a<=Math.min(t[e].x,t[e+1].x))&&(a=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:a,y:s},ctrB:{x:l,y:c}}}function f(t,e,n){return{x:n.x+t,y:n.y-e}}function d(t,e){if(e)while(i.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 p(t,e,n){var r=0;return t.map((function(t){if(t.color||(t.color=n.colors[r],r=(r+1)%n.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 g(t,e){var n=0,r=e-t;return n=r>=1e4?1e3:r>=1e3?100:r>=100?10:r>=10?5:r>=1?1:r>=.1?.1:r>=.01?.01:r>=.001?.001:r>=1e-4?1e-4:r>=1e-5?1e-5:1e-6,{minRange:a(t,"lower",n),maxRange:a(e,"upper",n)}}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.fontSize;if(t instanceof Array){var r=0;return t.map((function(t){var e=i(t);r<e&&(r=e)})),r}return i(t);function i(t){t=String(t);t=t.split("");for(var n=0,r=0;r<t.length;r++){var i=t[r];/[a-zA-Z]/.test(i)?n+=7:/[0-9]/.test(i)?n+=5.5:/\./.test(i)?n+=2.7:/-/.test(i)?n+=3.25:/[\u4e00-\u9fa5]/.test(i)?n+=10:/\(|\)/.test(i)?n+=3.73:/\s/.test(i)?n+=2.5:/%/.test(i)?n+=8:n+=10}return n*e/10}}function y(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function x(t,e){for(var n=new Array(e),r=0;r<n.length;r++)n[r]=0;for(var i=0;i<t.length;i++)for(r=0;r<n.length;r++)n[r]+=t[i].data[r];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(n)}),[])}function m(t,e,n){var r,i;return t.clientX?e.rotate?(i=e.height-t.clientX*e.pixelRatio,r=(t.pageY-n.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(r=t.clientX*e.pixelRatio,i=(t.pageY-n.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(i=e.height-t.x*e.pixelRatio,r=t.y*e.pixelRatio):(r=t.x*e.pixelRatio,i=t.y*e.pixelRatio),{x:r,y:i}}function _(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(null!==i.data[e]&&"undefined"!==typeof i.data[e]&&i.show){var o={};o.color=i.color,o.type=i.type,o.style=i.style,o.pointShape=i.pointShape,o.disableLegend=i.disableLegend,o.name=i.name,o.show=i.show,o.data=i.format?i.format(i.data[e]):i.data[e],n.push(o)}}return n}function b(t){var e=t.map((function(t){return v(t)}));return Math.max.apply(null,e)}function w(t){for(var e=2*Math.PI/t,n=[],r=0;r<t;r++)n.push(e*r);return n.map((function(t){return-1*t+Math.PI/2}))}function A(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){var e=[];return e=r||t.data,{text:i.format?i.format(t,e[n]):t.name+": "+t.data,color:t.color}})),a=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[n]&&null!==c[n]&&a.push(c[n])}for(var u=0;u<a.length;u++){var h=a[u];s.x=Math.round(h.x),s.y+=h.y}return s.y/=a.length,{textList:o,offset:s}}function S(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){return{text:i.format?i.format(t,r[n]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));for(var a=[],s={x:0,y:0},l=0;l<e.length;l++){var c=e[l];"undefined"!==typeof c[n]&&null!==c[n]&&a.push(c[n])}for(var u=0;u<a.length;u++){var h=a[u];s.x=Math.round(h.x),s.y+=h.y}return s.y/=a.length,{textList:o,offset:s}}function P(t,e,n,r,i,o){var a=o.color.upFill,s=o.color.downFill,l=[a,a,s,a],c=[],u={text:i[r],color:null};c.push(u),e.map((function(e){0==r?e.data[1]-e.data[0]<0?l[1]=s:l[1]=a:(e.data[0]<t[r-1][1]&&(l[0]=s),e.data[1]<e.data[0]&&(l[1]=s),e.data[2]>t[r-1][1]&&(l[2]=a),e.data[3]<t[r-1][1]&&(l[3]=s));var n={text:"开盘:"+e.data[0],color:l[0]},i={text:"收盘:"+e.data[1],color:l[1]},o={text:"最低:"+e.data[2],color:l[2]},u={text:"最高:"+e.data[3],color:l[3]};c.push(n,i,o,u)}));for(var h=[],f={x:0,y:0},d=0;d<n.length;d++){var p=n[d];"undefined"!==typeof p[r]&&null!==p[r]&&h.push(p[r])}return f.x=Math.round(h[0][0].x),{textList:c,offset:f}}function T(t){for(var e=[],n=0;n<t.length;n++)1==t[n].show&&e.push(t[n]);return e}function M(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=-1,a=n.chartData.eachSpacing/2,s=[];if(e.length>0){if("candle"==n.type)for(var l=0;l<e[0].length;l++)s.push(e[0][l][0].x);else for(var c=0;c<e[0].length;c++)s.push(e[0][c].x);"line"!=n.type&&"area"!=n.type||"justify"!=n.xAxis.boundaryGap||(a=n.chartData.eachSpacing/2),n.categories||(a=0),O(t,n,r)&&s.forEach((function(e,n){t.x+i+a>e&&(o=n)}))}return o}function k(t,e,n){var r=-1;if(C(t,e.area)){for(var i=e.points,o=-1,a=0,s=i.length;a<s;a++)for(var l=i[a],c=0;c<l.length;c++){o+=1;var u=l[c]["area"];if(t.x>u[0]&&t.x<u[2]&&t.y>u[1]&&t.y<u[3]){r=o;break}}return r}return r}function C(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function O(t,e,n){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function D(t,e,n){var r=2*Math.PI/n,i=-1;if(F(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},a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=e.angleList.map((function(t){return t=o(-1*t),t}));s.forEach((function(t,e){var n=o(t-r/2),s=o(t+r/2);s<n&&(s+=2*Math.PI),(a>=n&&a<=s||a+2*Math.PI>=n&&a+2*Math.PI<=s)&&(i=e)}))}return i}function R(t,e){for(var n=-1,r=0,i=e.series.length;r<i;r++){var o=e.series[r];if(t.x>o.funnelArea[0]&&t.x<o.funnelArea[2]&&t.y>o.funnelArea[1]&&t.y<o.funnelArea[3]){n=r;break}}return n}function L(t,e){for(var n=-1,r=0,i=e.length;r<i;r++){var o=e[r];if(t.x>o.area[0]&&t.x<o.area[2]&&t.y>o.area[1]&&t.y<o.area[3]){n=r;break}}return n}function $(t,e){for(var n=-1,r=e.chartData.mapData,i=e.series,o=It(t.y,t.x,r.bounds,r.scale,r.xoffset,r.yoffset),a=[o.x,o.y],s=0,l=i.length;s<l;s++){var c=i[s].geometry.coordinates;if(Wt(a,c)){n=s;break}}return n}function E(t,e){var n=-1;if(F(t,e.center,e.radius)){var r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r=-r;for(var i=0,o=e.series.length;i<o;i++){var a=e.series[i];if(c(r,a._start_,a._start_+2*a._proportion_*Math.PI)){n=i;break}}}return n}function F(t,e,n){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n,2)}function j(t){var e=[],n=[];return t.forEach((function(t,r){null!==t?n.push(t):(n.length&&e.push(n),n=[])})),n.length&&e.push(n),e}function I(t,e,n,r){var i={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return r.legendData=i,i;var o=e.legend.padding,a=e.legend.margin,s=e.legend.fontSize,l=15*e.pixelRatio,c=5*e.pixelRatio,u=Math.max(e.legend.lineHeight*e.pixelRatio,s);if("top"==e.legend.position||"bottom"==e.legend.position){for(var h=[],f=0,d=[],p=[],g=0;g<t.length;g++){var y=t[g],x=l+c+v(y.name||"undefined",s)+e.legend.itemGap;f+x>e.width-e.padding[1]-e.padding[3]?(h.push(p),d.push(f-e.legend.itemGap),f=x,p=[y]):(f+=x,p.push(y))}if(p.length){h.push(p),d.push(f-e.legend.itemGap),i.widthArr=d;var m=Math.max.apply(null,d);switch(e.legend.float){case"left":i.area.start.x=e.padding[3],i.area.end.x=e.padding[3]+2*o;break;case"right":i.area.start.x=e.width-e.padding[1]-m-2*o,i.area.end.x=e.width-e.padding[1];break;default:i.area.start.x=(e.width-m)/2-o,i.area.end.x=(e.width+m)/2+o}i.area.width=m+2*o,i.area.wholeWidth=m+2*o,i.area.height=h.length*u+2*o,i.area.wholeHeight=h.length*u+2*o+2*a,i.points=h}}else{var _=t.length,b=e.height-e.padding[0]-e.padding[2]-2*a-2*o,w=Math.min(Math.floor(b/u),_);switch(i.area.height=w*u+2*o,i.area.wholeHeight=w*u+2*o,e.legend.float){case"top":i.area.start.y=e.padding[0]+a,i.area.end.y=e.padding[0]+a+i.area.height;break;case"bottom":i.area.start.y=e.height-e.padding[2]-a-i.area.height,i.area.end.y=e.height-e.padding[2]-a;break;default:i.area.start.y=(e.height-i.area.height)/2,i.area.end.y=(e.height+i.area.height)/2}for(var A=_%w===0?_/w:Math.floor(_/w+1),S=[],P=0;P<A;P++){var T=t.slice(P*w,P*w+w);S.push(T)}if(i.points=S,S.length){for(var M=0;M<S.length;M++){for(var k=S[M],C=0,O=0;O<k.length;O++){var D=l+c+v(k[O].name||"undefined",s)+e.legend.itemGap;D>C&&(C=D)}i.widthArr.push(C),i.heightArr.push(k.length*u+2*o)}for(var R=0,L=0;L<i.widthArr.length;L++)R+=i.widthArr[L];i.area.width=R-e.legend.itemGap+2*o,i.area.wholeWidth=i.area.width+o}}switch(e.legend.position){case"top":i.area.start.y=e.padding[0]+a,i.area.end.y=e.padding[0]+a+i.area.height;break;case"bottom":i.area.start.y=e.height-e.padding[2]-i.area.height-a,i.area.end.y=e.height-e.padding[2]-a;break;case"left":i.area.start.x=e.padding[3],i.area.end.x=e.padding[3]+i.area.width;break;case"right":i.area.start.x=e.width-e.padding[1]-i.area.width,i.area.end.x=e.width-e.padding[1];break}return r.legendData=i,i}function z(t,e,n,r){var i={angle:0,xAxisHeight:n.xAxisHeight},o=t.map((function(t){return v(t,e.xAxis.fontSize||n.fontSize)})),a=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&a+2*n.xAxisTextPadding>r&&(i.angle=45*Math.PI/180,i.xAxisHeight=2*n.xAxisTextPadding+a*Math.sin(i.angle)),i}function W(t,e,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=y(t),o=[];i=i.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var a=0,s=0;if(o.length>0&&(a=Math.min.apply(this,o),s=Math.max.apply(this,o)),r>-1?("number"===typeof e.xAxis.data[r].min&&(a=Math.min(e.xAxis.data[r].min,a)),"number"===typeof e.xAxis.data[r].max&&(s=Math.max(e.xAxis.data[r].max,s))):("number"===typeof e.xAxis.min&&(a=Math.min(e.xAxis.min,a)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),a===s){var l=s||10;s+=l}for(var c=a,u=s,h=[],f=(u-c)/e.xAxis.splitNumber,d=0;d<=e.xAxis.splitNumber;d++)h.push(c+f*d);return h}function N(t,e,n){var r={angle:0,xAxisHeight:n.xAxisHeight};r.ranges=W(t,e,n),r.rangesFormat=r.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):i.toFixed(t,2),t}));var o=r.ranges.map((function(t){return t=i.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));r=Object.assign(r,Z(o,e,n));var a=r.eachSpacing,s=o.map((function(t){return v(t)})),l=Math.max.apply(this,s);return l+2*n.xAxisTextPadding>a&&(r.angle=45*Math.PI/180,r.xAxisHeight=2*n.xAxisTextPadding+l*Math.sin(r.angle)),!0===e.xAxis.disabled&&(r.xAxisHeight=0),r}function B(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=i.extra.radar||{};a.max=a.max||0;for(var s=Math.max(a.max,Math.max.apply(null,y(r))),l=[],c=function(i){var a=r[i],c={};c.color=a.color,c.legendShape=a.legendShape,c.pointShape=a.pointShape,c.data=[],a.data.forEach((function(r,i){var a={};a.angle=t[i],a.proportion=r/s,a.position=f(n*a.proportion*o*Math.cos(a.angle),n*a.proportion*o*Math.sin(a.angle),e),c.data.push(a)})),l.push(c)},u=0;u<r.length;u++)c(u);return l}function U(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,o=0;o<t.length;o++){var a=t[o];a.data=null===a.data?0:a.data,r+=a.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===r?1/t.length*n:l.data/r*n,l._radius_=e}for(var c=0;c<t.length;c++){var u=t[c];u._start_=i,i+=2*u._proportion_*Math.PI}return t}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var r=0;r<t.length;r++)t[r].radius=t[r].data/t[0].data*e*n,t[r]._proportion_=t[r].data/t[0].data;return t.reverse()}function H(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,o+=c.data,s.push(c.data)}for(var u=Math.min.apply(null,s),h=Math.max.apply(null,s),f=r-n,d=0;d<t.length;d++){var p=t[d];p.data=null===p.data?0:p.data,0===o||"area"==e?(p._proportion_=p.data/o*i,p._rose_proportion_=1/t.length*i):(p._proportion_=p.data/o*i,p._rose_proportion_=p.data/o*i),p._radius_=n+f*((p.data-u)/(h-u))}for(var g=0;g<t.length;g++){var v=t[g];v._start_=a,a+=2*v._rose_proportion_*Math.PI}return t}function V(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r<t.length;r++){var i=t[r];i.data=null===i.data?0:i.data;var o=void 0;o="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,i._proportion_=o*i.data*n+e.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return t}function q(t,e,n){for(var r=e-n+1,i=e,o=0;o<t.length;o++)t[o].value=null===t[o].value?0:t[o].value,t[o]._startAngle_=i,t[o]._endAngle_=r*t[o].value+e,t[o]._endAngle_>=2&&(t[o]._endAngle_=t[o]._endAngle_%2),i=t[o]._endAngle_;return t}function X(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<t.length;i++){var o=t[i];if(o.data=null===o.data?0:o.data,"auto"==n.pointer.color){for(var a=0;a<e.length;a++)if(o.data<=e[a].value){o.color=e[a].color;break}}else o.color=n.pointer.color;var s=n.startAngle-n.endAngle+1;o._endAngle_=s*o.data+n.startAngle,o._oldAngle_=n.oldAngle,n.oldAngle<n.endAngle&&(o._oldAngle_+=2),o.data>=n.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*r+n.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*r,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function K(t){t=U(t);for(var e=0,n=0;n<t.length;n++){var r=t[n],o=r.format?r.format(+r._proportion_.toFixed(2)):i.toFixed(100*r._proportion_)+"%";e=Math.max(e,v(o))}return e}function Y(t,e,n,r,i,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*i.columePadding)/n),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+=(r+.5-n/2)*t.width,t)}))}function J(t,e,n,r,i,o,a){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*i.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),r>0&&(t.width-=2*a),t)}))}function Q(t,e,n,r,i,o,a){return t.map((function(t,n){return null===t?null:(t.width=Math.ceil((e-2*i.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 Z(t,e,n){var r=e.width-e.area[1]-e.area[3],i=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&i>1&&"justify"==e.xAxis.boundaryGap&&(i-=1);var o=r/i,a=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){a.push(s+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?a.push(s+t.length*o):a.push(l)),{xAxisPoints:a,startX:s,endX:l,eachSpacing:o}}function tt(t,e,n,r,i,o,a){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,a){if(null===t)l.push(null);else{var u=[];t.forEach((function(t,l){var h={};h.x=r[a]+Math.round(i/2);var f=t.value||t,d=c*(f-e)/(n-e);d*=s,h.y=o.height-Math.round(d)-o.area[2],u.push(h)})),l.push(u)}})),l}function et(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=o.type&&"area"!=o.type||(l=o.xAxis.boundaryGap);var c=[],u=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return t.forEach((function(t,a){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=r[a];var d,p,g,v=t;if("object"===typeof t&&null!==t)if(t.constructor==Array)d=[].concat(o.chartData.xAxisData.ranges),p=d.shift(),g=d.pop(),v=t[1],f.x=o.area[3]+h*(t[0]-p)/(g-p);else v=t.value;"center"==l&&(f.x+=Math.round(i/2));var y=u*(v-e)/(n-e);y*=s,f.y=o.height-Math.round(y)-o.area[2],c.push(f)}})),c}function nt(t,e,n,r,i,o,a,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=o.height-o.area[0]-o.area[2];return t.forEach((function(t,a){if(null===t)u.push(null);else{var f={};if(f.color=t.color,f.x=r[a]+Math.round(i/2),s>0){for(var d=0,p=0;p<=s;p++)d+=l[p].data[a];var g=d-t,v=h*(d-e)/(n-e),y=h*(g-e)/(n-e)}else d=t,v=h*(d-e)/(n-e),y=0;var x=y;v*=c,x*=c,f.y=o.height-Math.round(v)-o.area[2],f.y0=o.height-Math.round(x)-o.area[2],u.push(f)}})),u}function rt(t,e,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==r?x(t,e.categories.length):y(t);var a=[];i=i.filter((function(t){return"object"===typeof t&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),i.map((function(t){"object"===typeof t?t.constructor==Array?"candle"==e.type?t.map((function(t){a.push(t)})):a.push(t[1]):a.push(t.value):a.push(t)}));var s=0,l=0;if(a.length>0&&(s=Math.min.apply(this,a),l=Math.max.apply(this,a)),o>-1?("number"===typeof e.yAxis.data[o].min&&(s=Math.min(e.yAxis.data[o].min,s)),"number"===typeof e.yAxis.data[o].max&&(l=Math.max(e.yAxis.data[o].max,l))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(l=Math.max(e.yAxis.max,l))),s===l){var c=l||10;l+=c}for(var u=g(s,l),h=u.minRange,f=u.maxRange,d=[],p=(f-h)/e.yAxis.splitNumber,v=0;v<=e.yAxis.splitNumber;v++)d.push(h+p*v);return d.reverse()}function it(t,e,n){var o=r({},{type:""},e.extra.column),a=e.yAxis.data.length,s=new Array(a);if(a>0){for(var l=0;l<a;l++){s[l]=[];for(var c=0;c<t.length;c++)t[c].index==l&&s[l].push(t[c])}for(var u=new Array(a),h=new Array(a),f=new Array(a),d=function(t){var r=e.yAxis.data[t];1==e.yAxis.disabled&&(r.disabled=!0),u[t]=rt(s[t],e,n,o.type,t);var a=r.fontSize||n.fontSize;f[t]={position:r.position?r.position:"left",width:0},h[t]=u[t].map((function(e){return e=i.toFixed(e,6),e=r.format?r.format(Number(e)):e,f[t].width=Math.max(f[t].width,v(e,a)+5),e}));var l=r.calibration?4*e.pixelRatio:0;f[t].width+=l+3*e.pixelRatio,!0===r.disabled&&(f[t].width=0)},p=0;p<a;p++)d(p)}else{u=new Array(1),h=new Array(1),f=new Array(1);u[0]=rt(t,e,n,o.type),f[0]={position:"left",width:0};var g=e.yAxis.fontSize||n.fontSize;h[0]=u[0].map((function(t){return t=i.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,f[0].width=Math.max(f[0].width,v(t,g)+5),t})),f[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(f[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,format:e.yAxis.format}}return{rangesFormat:h,ranges:u,yAxisWidth:f}}function ot(t,e,n,r,i){for(var o=[].concat(n.chartData.yAxisData.ranges),a=n.height-n.area[0]-n.area[2],s=n.area[0],l=[],c=0;c<o.length;c++){var u=o[c].shift(),h=o[c].pop(),f=u-(u-h)*(t-s)/a;f=n.yAxis.data[c].format?n.yAxis.data[c].format(Number(f)):f.toFixed(0),l.push(String(f))}return l}function at(t,e){for(var n,r,i=e.height-e.area[0]-e.area[2],o=0;o<t.length;o++){t[o].yAxisIndex=t[o].yAxisIndex?t[o].yAxisIndex:0;var a=[].concat(e.chartData.yAxisData.ranges[t[o].yAxisIndex]);n=a.pop(),r=a.shift();var s=i*(t[o].value-n)/(r-n);t[o].y=e.height-Math.round(s)-e.area[2]}return t}function st(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function lt(t,e,n,r,i){r.beginPath(),"hollow"==i.dataPointShapeType?(r.setStrokeStyle(e),r.setFillStyle(i.background),r.setLineWidth(2*i.pixelRatio)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(e),r.setLineWidth(1*i.pixelRatio)),"diamond"===n?t.forEach((function(t,e){null!==t&&(r.moveTo(t.x,t.y-4.5),r.lineTo(t.x-4.5,t.y),r.lineTo(t.x,t.y+4.5),r.lineTo(t.x+4.5,t.y),r.lineTo(t.x,t.y-4.5))})):"circle"===n?t.forEach((function(t,e){null!==t&&(r.moveTo(t.x+2.5*i.pixelRatio,t.y),r.arc(t.x,t.y,3*i.pixelRatio,0,2*Math.PI,!1))})):"rect"===n?t.forEach((function(t,e){null!==t&&(r.moveTo(t.x-3.5,t.y-3.5),r.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===n&&t.forEach((function(t,e){null!==t&&(r.moveTo(t.x,t.y-4.5),r.lineTo(t.x-4.5,t.y+4.5),r.lineTo(t.x+4.5,t.y+4.5),r.lineTo(t.x,t.y-4.5))})),r.closePath(),r.fill(),r.stroke()}function ct(t,e,n,r){var i=t.title.fontSize||e.titleFontSize,o=t.subtitle.fontSize||e.subtitleFontSize,a=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,u=a?i:0,h=s?o:0,f=5;if(s){var d=v(s,o),p=r.x-d/2+(t.subtitle.offsetX||0),g=r.y+o/2+(t.subtitle.offsetY||0);a&&(g+=(u+f)/2),n.beginPath(),n.setFontSize(o),n.setFillStyle(c),n.fillText(s,p,g),n.closePath(),n.stroke()}if(a){var y=v(a,i),x=r.x-y/2+(t.title.offsetX||0),m=r.y+i/2+(t.title.offsetY||0);s&&(m-=(h+f)/2),n.beginPath(),n.setFontSize(i),n.setFillStyle(l),n.fillText(a,x,m),n.closePath(),n.stroke()}}function ut(t,e,n,r){var i=e.data;t.forEach((function(t,o){if(null!==t){r.beginPath(),r.setFontSize(e.textSize||n.fontSize),r.setFillStyle(e.textColor||"#666666");var a=i[o];"object"===typeof i[o]&&null!==i[o]&&(a=i[o].constructor==Array?i[o][1]:i[o].value);var s=e.format?e.format(a):a;r.fillText(String(s),t.x-v(s,e.textSize||n.fontSize)/2,t.y-4),r.closePath(),r.stroke()}}))}function ht(t,e,n,r,i,o){e-=t.width/2+i.gaugeLabelTextMargin;for(var a=t.startAngle-t.endAngle+1,s=a/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,u=t.startAngle,h=t.startNumber,f=0;f<t.splitLine.splitNumber+1;f++){var d={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.labelFormat?t.labelFormat(h):h;d.x+=n.x-v(p)/2,d.y+=n.y;var g=d.x,y=d.y;o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(t.labelColor||"#666666"),o.fillText(p,g,y+i.fontSize/2),o.closePath(),o.stroke(),u+=s,u>=2&&(u%=2),h+=c}}function ft(t,e,n,r,o,a){var s=r.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},u=f(c.x,c.y,n),h=u.x,d=u.y;i.approximatelyEqual(c.x,0)?h-=v(r.categories[l]||"")/2:c.x<0&&(h-=v(r.categories[l]||"")),a.beginPath(),a.setFontSize(o.fontSize),a.setFillStyle(s.labelColor||"#666666"),a.fillText(r.categories[l]||"",h,d+o.fontSize/2),a.closePath(),a.stroke()}))}function dt(t,e,n,r,o,a){for(var s=n.pieChartLinePadding,l=[],c=null,u=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):i.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var n=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),r=t.color,o=t._radius_;return{arc:n,text:e,color:r,radius:o,textColor:t.textColor,textSize:t.textSize}})),h=0;h<u.length;h++){var p=u[h],g=Math.cos(p.arc)*(p.radius+s),y=Math.sin(p.arc)*(p.radius+s),x=Math.cos(p.arc)*p.radius,m=Math.sin(p.arc)*p.radius,_=g>=0?g+n.pieChartTextPadding:g-n.pieChartTextPadding,b=y,w=v(p.text,p.textSize||n.fontSize),A=b;c&&i.isSameXCoordinateArea(c.start,{x:_})&&(A=_>0?Math.min(b,c.start.y):g<0||b>0?Math.max(b,c.start.y):Math.min(b,c.start.y)),_<0&&(_-=w);var S={lineStart:{x:x,y:m},lineEnd:{x:g,y:y},start:{x:_,y:A},width:w,height:n.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};c=d(S,c),l.push(c)}for(var P=function(t){var i=l[t],o=f(i.lineStart.x,i.lineStart.y,a),s=f(i.lineEnd.x,i.lineEnd.y,a),c=f(i.start.x,i.start.y,a);r.setLineWidth(1*e.pixelRatio),r.setFontSize(n.fontSize),r.beginPath(),r.setStrokeStyle(i.color),r.setFillStyle(i.color),r.moveTo(o.x,o.y);var u=i.start.x<0?c.x+i.width:c.x,h=i.start.x<0?c.x-5:c.x+5;r.quadraticCurveTo(s.x,s.y,u,c.y),r.moveTo(o.x,o.y),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(c.x+i.width,c.y),r.arc(u,c.y,2,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(i.textSize||n.fontSize),r.setFillStyle(i.textColor||"#666666"),i.text instanceof Array?i.text.map((function(t,e){var o=c.y+3+e*(i.textSize||n.fontSize);r.fillText(t,h,o)})):r.fillText(i.text,h,c.y+3),r.closePath(),r.stroke(),r.closePath()},T=0;T<l.length;T++)P(T)}function pt(t,e,n,r){var i=e.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var a=e.area[0],s=e.height-e.area[2];if("dash"==i.gridType&&r.setLineDash([i.dashLength,i.dashLength]),r.setStrokeStyle(i.gridColor||"#cccccc"),r.setLineWidth(1*e.pixelRatio),r.beginPath(),r.moveTo(t,a),r.lineTo(t,s),r.stroke(),r.setLineDash([]),i.xAxisLabel){var l=e.categories[e.tooltip.index];r.setFontSize(n.fontSize);var c=v(l,n.fontSize),u=t-.5*c,h=s;r.beginPath(),r.setFillStyle(o(i.labelBgColor||n.toolTipBackground,i.labelBgOpacity||n.toolTipOpacity)),r.setStrokeStyle(i.labelBgColor||n.toolTipBackground),r.setLineWidth(1*e.pixelRatio),r.rect(u-n.toolTipPadding,h,c+2*n.toolTipPadding,n.fontSize+2*n.toolTipPadding),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(i.labelFontColor||n.fontColor),r.fillText(String(l),u,h+n.toolTipPadding+n.fontSize),r.closePath(),r.stroke()}}function gt(t,e,n){for(var i=r({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),a=t.area[3],s=t.width-t.area[1],l=at(i.data,t),c=0;c<l.length;c++){var u=r({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},l[c]);if("dash"==i.type&&n.setLineDash([i.dashLength,i.dashLength]),n.setStrokeStyle(u.lineColor),n.setLineWidth(1*t.pixelRatio),n.beginPath(),n.moveTo(a,u.y),n.lineTo(s,u.y),n.stroke(),n.setLineDash([]),u.showLabel){var h=t.yAxis.format?t.yAxis.format(Number(u.value)):u.value;n.setFontSize(e.fontSize);var f=v(h,e.fontSize),d=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,p=Math.max(t.area[3],f+2*e.toolTipPadding),g=p-d,y=d+(g-f)/2,x=u.y;n.setFillStyle(o(u.labelBgColor,u.labelBgOpacity)),n.setStrokeStyle(u.labelBgColor),n.setLineWidth(1*t.pixelRatio),n.beginPath(),n.rect(d,x-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(e.fontSize),n.setFillStyle(u.labelFontColor),n.fillText(String(h),y,x+.5*e.fontSize),n.stroke()}}}function vt(t,e,n,i,a){var s=r({},{gridType:"solid",dashLength:4},t.extra.tooltip),l=t.area[3],c=t.width-t.area[1];if("dash"==s.gridType&&n.setLineDash([s.dashLength,s.dashLength]),n.setStrokeStyle(s.gridColor||"#cccccc"),n.setLineWidth(1*t.pixelRatio),n.beginPath(),n.moveTo(l,t.tooltip.offset.y),n.lineTo(c,t.tooltip.offset.y),n.stroke(),n.setLineDash([]),s.yAxisLabel)for(var u=ot(t.tooltip.offset.y,t.series,t,e,i),h=t.chartData.yAxisData.yAxisWidth,f=t.area[3],d=t.width-t.area[1],p=0;p<u.length;p++){n.setFontSize(e.fontSize);var g=v(u[p],e.fontSize),y=void 0,x=void 0,m=void 0;"left"==h[p].position?(y=f-h[p].width,x=Math.max(y,y+g+2*e.toolTipPadding)):(y=d,x=Math.max(y+h[p].width,y+g+2*e.toolTipPadding)),m=x-y;var _=y+(m-g)/2,b=t.tooltip.offset.y;n.beginPath(),n.setFillStyle(o(s.labelBgColor||e.toolTipBackground,s.labelBgOpacity||e.toolTipOpacity)),n.setStrokeStyle(s.labelBgColor||e.toolTipBackground),n.setLineWidth(1*t.pixelRatio),n.rect(y,b-.5*e.fontSize-e.toolTipPadding,m,e.fontSize+2*e.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(e.fontSize),n.setFillStyle(s.labelFontColor||e.fontColor),n.fillText(u[p],_,b+.5*e.fontSize),n.closePath(),n.stroke(),"left"==h[p].position?f-=h[p].width+t.yAxis.padding:d+=h[p].width+t.yAxis.padding}}function yt(t,e,n,i,a){var s=r({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),l=e.area[0],c=e.height-e.area[2];i.beginPath(),i.setFillStyle(o(s.activeBgColor,s.activeBgOpacity)),i.rect(t-a/2,l,a,c-l),i.closePath(),i.fill()}function xt(t,e,n,i,a,s,l){var c=r({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},n.extra.tooltip),u=4*n.pixelRatio,h=5*n.pixelRatio,f=8*n.pixelRatio,d=!1;"line"!=n.type&&"area"!=n.type&&"candle"!=n.type&&"mix"!=n.type||pt(n.tooltip.offset.x,n,i,a),e=r({x:0,y:0},e),e.y-=8*n.pixelRatio;var p=t.map((function(t){return v(t.text,i.fontSize)})),g=u+h+4*i.toolTipPadding+Math.max.apply(null,p),y=2*i.toolTipPadding+t.length*i.toolTipLineHeight;0!=c.showBox&&(e.x-Math.abs(n._scrollDistance_)+f+g>n.width&&(d=!0),y+e.y>n.height&&(e.y=n.height-y),a.beginPath(),a.setFillStyle(o(c.bgColor||i.toolTipBackground,c.bgOpacity||i.toolTipOpacity)),d?(a.moveTo(e.x,e.y+10*n.pixelRatio),a.lineTo(e.x-f,e.y+10*n.pixelRatio-5*n.pixelRatio),a.lineTo(e.x-f,e.y),a.lineTo(e.x-f-Math.round(g),e.y),a.lineTo(e.x-f-Math.round(g),e.y+y),a.lineTo(e.x-f,e.y+y),a.lineTo(e.x-f,e.y+10*n.pixelRatio+5*n.pixelRatio),a.lineTo(e.x,e.y+10*n.pixelRatio)):(a.moveTo(e.x,e.y+10*n.pixelRatio),a.lineTo(e.x+f,e.y+10*n.pixelRatio-5*n.pixelRatio),a.lineTo(e.x+f,e.y),a.lineTo(e.x+f+Math.round(g),e.y),a.lineTo(e.x+f+Math.round(g),e.y+y),a.lineTo(e.x+f,e.y+y),a.lineTo(e.x+f,e.y+10*n.pixelRatio+5*n.pixelRatio),a.lineTo(e.x,e.y+10*n.pixelRatio)),a.closePath(),a.fill(),t.forEach((function(t,n){if(null!==t.color){a.beginPath(),a.setFillStyle(t.color);var r=e.x+f+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*n+i.toolTipPadding+1;d&&(r=e.x-g-f+2*i.toolTipPadding),a.fillRect(r,o,u,i.fontSize),a.closePath()}})),t.forEach((function(t,n){var r=e.x+f+2*i.toolTipPadding+u+h;d&&(r=e.x-g-f+2*i.toolTipPadding+ +u+h);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*n+i.toolTipPadding;a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(c.fontColor),a.fillText(t.text,r,o+i.fontSize),a.closePath(),a.stroke()})))}function mt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=e.chartData.xAxisData,s=a.xAxisPoints,l=a.eachSpacing,c=r({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),u=[];i.save();var h=-2,f=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=Math.floor(-e._scrollDistance_/l)-2,f=h+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===o&&yt(e.tooltip.offset.x,e,n,i,l),t.forEach((function(r,a){var d,p,g;d=[].concat(e.chartData.yAxisData.ranges[r.index]),p=d.pop(),g=d.shift();var v=r.data;switch(c.type){case"group":var y=et(v,p,g,s,l,e,n,o),x=nt(v,p,g,s,l,e,n,a,t,o);u.push(x),y=Y(y,l,t.length,a,n,e);for(var m=0;m<y.length;m++){var _=y[m];if(null!==_&&m>h&&m<f){i.beginPath(),i.setStrokeStyle(_.color||r.color),i.setLineWidth(1),i.setFillStyle(_.color||r.color);var b=_.x-_.width/2,w=e.height-_.y-e.area[2];i.moveTo(b,_.y),i.lineTo(b+_.width-2,_.y),i.lineTo(b+_.width-2,e.height-e.area[2]),i.lineTo(b,e.height-e.area[2]),i.lineTo(b,_.y),i.closePath(),i.stroke(),i.fill()}}break;case"stack":y=nt(v,p,g,s,l,e,n,a,t,o);u.push(y),y=Q(y,l,t.length,a,n,e,t);for(var A=0;A<y.length;A++){var S=y[A];if(null!==S&&A>h&&A<f){i.beginPath(),i.setFillStyle(S.color||r.color);b=S.x-S.width/2+1,w=e.height-S.y-e.area[2];var P=e.height-S.y0-e.area[2];a>0&&(w-=P),i.moveTo(b,S.y),i.fillRect(b,S.y,S.width-2,w),i.closePath(),i.fill()}}break;case"meter":y=et(v,p,g,s,l,e,n,o);if(u.push(y),y=J(y,l,t.length,a,n,e,c.meter.border),0==a)for(var T=0;T<y.length;T++){var M=y[T];if(null!==M&&T>h&&T<f){i.beginPath(),i.setFillStyle(c.meter.fillColor);b=M.x-M.width/2,w=e.height-M.y-e.area[2];i.moveTo(b,M.y),i.fillRect(b,M.y,M.width,w),i.closePath(),i.fill(),c.meter.border>0&&(i.beginPath(),i.setStrokeStyle(r.color),i.setLineWidth(c.meter.border*e.pixelRatio),i.moveTo(b+.5*c.meter.border,M.y+w),i.lineTo(b+.5*c.meter.border,M.y+.5*c.meter.border),i.lineTo(b+M.width-.5*c.meter.border,M.y+.5*c.meter.border),i.lineTo(b+M.width-.5*c.meter.border,M.y+w),i.stroke())}}else for(var k=0;k<y.length;k++){var C=y[k];if(null!==C&&k>h&&k<f){i.beginPath(),i.setFillStyle(C.color||r.color);b=C.x-C.width/2,w=e.height-C.y-e.area[2];i.moveTo(b,C.y),i.fillRect(b,C.y,C.width,w),i.closePath(),i.fill()}}break}})),!1!==e.dataLabel&&1===o&&t.forEach((function(r,a){var u,h,f;u=[].concat(e.chartData.yAxisData.ranges[r.index]),h=u.pop(),f=u.shift();var d=r.data;switch(c.type){case"group":var p=et(d,h,f,s,l,e,n,o);p=Y(p,l,t.length,a,n,e),ut(p,r,n,i);break;case"stack":p=nt(d,h,f,s,l,e,n,a,t,o);ut(p,r,n,i);break;case"meter":p=et(d,h,f,s,l,e,n,o);ut(p,r,n,i);break}})),i.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:l}}function _t(t,e,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=r({},{color:{},average:{}},n.extra.candle);s.color=r({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=r({},{show:!1,name:[],day:[],color:i.colors},s.average),n.extra.candle=s;var l=n.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,f=[];o.save();var d=-2,p=c.length+2,g=0,v=n.width+u;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(o.translate(n._scrollDistance_,0),d=Math.floor(-n._scrollDistance_/u)-2,p=d+n.xAxis.itemCount+4,g=-n._scrollDistance_-u+n.area[3],v=g+(n.xAxis.itemCount+4)*u),(s.average.show||e)&&e.forEach((function(t,e){var r,s,l;r=[].concat(n.chartData.yAxisData.ranges[t.index]),s=r.pop(),l=r.shift();for(var f=t.data,d=et(f,s,l,c,u,n,i,a),p=j(d),y=0;y<p.length;y++){var x=p[y];if(o.beginPath(),o.setStrokeStyle(t.color),o.setLineWidth(1),1===x.length)o.moveTo(x[0].x,x[0].y),o.arc(x[0].x,x[0].y,1,0,2*Math.PI);else{o.moveTo(x[0].x,x[0].y);for(var m=0,_=0;_<x.length;_++){var b=x[_];if(0==m&&b.x>g&&(o.moveTo(b.x,b.y),m=1),_>0&&b.x>g&&b.x<v){var w=h(x,_-1);o.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,b.x,b.y)}}o.moveTo(x[0].x,x[0].y)}o.closePath(),o.stroke()}})),t.forEach((function(t,e){var r,l,h;r=[].concat(n.chartData.yAxisData.ranges[t.index]),l=r.pop(),h=r.shift();var g=t.data,v=tt(g,l,h,c,u,n,i,a);f.push(v);for(var y=j(v),x=0;x<y[0].length;x++)if(x>d&&x<p){var m=y[0][x];o.beginPath(),g[x][1]-g[x][0]>0?(o.setStrokeStyle(s.color.upLine),o.setFillStyle(s.color.upFill),o.setLineWidth(1*n.pixelRatio),o.moveTo(m[3].x,m[3].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[1].x-u/4,m[1].y),o.lineTo(m[0].x-u/4,m[0].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[2].x,m[2].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[0].x+u/4,m[0].y),o.lineTo(m[1].x+u/4,m[1].y),o.lineTo(m[1].x,m[1].y),o.moveTo(m[3].x,m[3].y)):(o.setStrokeStyle(s.color.downLine),o.setFillStyle(s.color.downFill),o.setLineWidth(1*n.pixelRatio),o.moveTo(m[3].x,m[3].y),o.lineTo(m[0].x,m[0].y),o.lineTo(m[0].x-u/4,m[0].y),o.lineTo(m[1].x-u/4,m[1].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[2].x,m[2].y),o.lineTo(m[1].x,m[1].y),o.lineTo(m[1].x+u/4,m[1].y),o.lineTo(m[0].x+u/4,m[0].y),o.lineTo(m[0].x,m[0].y),o.moveTo(m[3].x,m[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}function bt(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,f=e.height-e.area[2],d=[];i.save();var p=0,g=e.width+u;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-u+e.area[3],g=p+(e.xAxis.itemCount+4)*u),t.forEach((function(t,r){var l,v,y;l=[].concat(e.chartData.yAxisData.ranges[t.index]),v=l.pop(),y=l.shift();var x=t.data,m=et(x,v,y,c,u,e,n,a);d.push(m);for(var _=j(m),b=0;b<_.length;b++){var w=_[b];if(i.beginPath(),i.setStrokeStyle(o(t.color,s.opacity)),s.gradient){var A=i.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);A.addColorStop("0",o(t.color,s.opacity)),A.addColorStop("1.0",o("#FFFFFF",.1)),i.setFillStyle(A)}else i.setFillStyle(o(t.color,s.opacity));if(i.setLineWidth(s.width*e.pixelRatio),w.length>1){var S=w[0],P=w[w.length-1];i.moveTo(S.x,S.y);var T=0;if("curve"===s.type)for(var M=0;M<w.length;M++){var k=w[M];if(0==T&&k.x>p&&(i.moveTo(k.x,k.y),T=1),M>0&&k.x>p&&k.x<g){var C=h(w,M-1);i.bezierCurveTo(C.ctrA.x,C.ctrA.y,C.ctrB.x,C.ctrB.y,k.x,k.y)}}else for(var O=0;O<w.length;O++){var D=w[O];0==T&&D.x>p&&(i.moveTo(D.x,D.y),T=1),O>0&&D.x>p&&D.x<g&&i.lineTo(D.x,D.y)}i.lineTo(P.x,f),i.lineTo(S.x,f),i.lineTo(S.x,S.y)}else{var R=w[0];i.moveTo(R.x-u/2,R.y),i.lineTo(R.x+u/2,R.y),i.lineTo(R.x+u/2,f),i.lineTo(R.x-u/2,f),i.moveTo(R.x-u/2,R.y)}if(i.closePath(),i.fill(),s.addLine){if("dash"==t.lineType){var L=t.dashLength?t.dashLength:8;L*=e.pixelRatio,i.setLineDash([L,L])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(s.width*e.pixelRatio),1===w.length)i.moveTo(w[0].x,w[0].y),i.arc(w[0].x,w[0].y,1,0,2*Math.PI);else{i.moveTo(w[0].x,w[0].y);var $=0;if("curve"===s.type)for(var E=0;E<w.length;E++){var F=w[E];if(0==$&&F.x>p&&(i.moveTo(F.x,F.y),$=1),E>0&&F.x>p&&F.x<g){var I=h(w,E-1);i.bezierCurveTo(I.ctrA.x,I.ctrA.y,I.ctrB.x,I.ctrB.y,F.x,F.y)}}else for(var z=0;z<w.length;z++){var W=w[z];0==$&&W.x>p&&(i.moveTo(W.x,W.y),$=1),z>0&&W.x>p&&W.x<g&&i.lineTo(W.x,W.y)}i.moveTo(w[0].x,w[0].y)}i.stroke(),i.setLineDash([])}}!1!==e.dataPointShape&&lt(m,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===a&&t.forEach((function(t,r){var o,s,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();var h=t.data,f=et(h,s,l,c,u,e,n,a);ut(f,t,n,i)})),i.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}function wt(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=r({},{type:"straight",width:2},e.extra.line);a.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,c=s.eachSpacing,u=[];i.save();var f=0,d=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=-e._scrollDistance_-c+e.area[3],d=f+(e.xAxis.itemCount+4)*c),t.forEach((function(t,r){var s,p,g;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),g=s.shift();var v=t.data,y=et(v,p,g,l,c,e,n,o);u.push(y);var x=j(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(a.width),x.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 n=0;if("curve"===a.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==n&&o.x>f&&(i.moveTo(o.x,o.y),n=1),r>0&&o.x>f&&o.x<d){var s=h(t,r-1);i.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}else for(var l=0;l<t.length;l++){var c=t[l];0==n&&c.x>f&&(i.moveTo(c.x,c.y),n=1),l>0&&c.x>f&&c.x<d&&i.lineTo(c.x,c.y)}i.moveTo(t[0].x,t[0].y)}})),i.stroke(),i.setLineDash([]),!1!==e.dataPointShape&&lt(y,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===o&&t.forEach((function(t,r){var a,s,u;a=[].concat(e.chartData.yAxisData.ranges[t.index]),s=a.pop(),u=a.shift();var h=t.data,f=et(h,s,u,l,c,e,n,o);ut(f,t,n,i)})),i.restore(),{xAxisPoints:l,calPoints:u,eachSpacing:c}}function At(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=e.chartData.xAxisData,s=a.xAxisPoints,l=a.eachSpacing,c=e.height-e.area[2],u=[],f=0,d=0;t.forEach((function(t,e){"column"==t.type&&(d+=1)})),r.save();var p=-2,g=s.length+2,v=0,y=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,g=p+e.xAxis.itemCount+4,v=-e._scrollDistance_-l+e.area[3],y=v+(e.xAxis.itemCount+4)*l),t.forEach((function(t,a){var x,m,_;x=[].concat(e.chartData.yAxisData.ranges[t.index]),m=x.pop(),_=x.shift();var b=t.data,w=et(b,m,_,s,l,e,n,i);if(u.push(w),"column"==t.type){w=Y(w,l,d,f,n,e);for(var A=0;A<w.length;A++){var S=w[A];if(null!==S&&A>p&&A<g){r.beginPath(),r.setStrokeStyle(S.color||t.color),r.setLineWidth(1),r.setFillStyle(S.color||t.color);var P=S.x-S.width/2;e.height,S.y,e.area[2];r.moveTo(P,S.y),r.moveTo(P,S.y),r.lineTo(P+S.width-2,S.y),r.lineTo(P+S.width-2,e.height-e.area[2]),r.lineTo(P,e.height-e.area[2]),r.lineTo(P,S.y),r.closePath(),r.stroke(),r.fill(),r.closePath(),r.fill()}}f+=1}if("area"==t.type)for(var T=j(w),M=0;M<T.length;M++){var k=T[M];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(o(t.color,.2)),r.setLineWidth(2*e.pixelRatio),k.length>1){var C=k[0],O=k[k.length-1];r.moveTo(C.x,C.y);var D=0;if("curve"===t.style)for(var R=0;R<k.length;R++){var L=k[R];if(0==D&&L.x>v&&(r.moveTo(L.x,L.y),D=1),R>0&&L.x>v&&L.x<y){var $=h(k,R-1);r.bezierCurveTo($.ctrA.x,$.ctrA.y,$.ctrB.x,$.ctrB.y,L.x,L.y)}}else for(var E=0;E<k.length;E++){var F=k[E];0==D&&F.x>v&&(r.moveTo(F.x,F.y),D=1),E>0&&F.x>v&&F.x<y&&r.lineTo(F.x,F.y)}r.lineTo(O.x,c),r.lineTo(C.x,c),r.lineTo(C.x,C.y)}else{var I=k[0];r.moveTo(I.x-l/2,I.y),r.lineTo(I.x+l/2,I.y),r.lineTo(I.x+l/2,c),r.lineTo(I.x-l/2,c),r.moveTo(I.x-l/2,I.y)}r.closePath(),r.fill()}if("line"==t.type){var z=j(w);z.forEach((function(n,i){if("dash"==t.lineType){var o=t.dashLength?t.dashLength:8;o*=e.pixelRatio,r.setLineDash([o,o])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pixelRatio),1===n.length)r.moveTo(n[0].x,n[0].y),r.arc(n[0].x,n[0].y,1,0,2*Math.PI);else{r.moveTo(n[0].x,n[0].y);var a=0;if("curve"==t.style)for(var s=0;s<n.length;s++){var l=n[s];if(0==a&&l.x>v&&(r.moveTo(l.x,l.y),a=1),s>0&&l.x>v&&l.x<y){var c=h(n,s-1);r.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var u=0;u<n.length;u++){var f=n[u];0==a&&f.x>v&&(r.moveTo(f.x,f.y),a=1),u>0&&f.x>v&&f.x<y&&r.lineTo(f.x,f.y)}r.moveTo(n[0].x,n[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&lt(w,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===i){f=0;t.forEach((function(t,o){var a,c,u;a=[].concat(e.chartData.yAxisData.ranges[t.index]),c=a.pop(),u=a.shift();var h=t.data,p=et(h,c,u,s,l,e,n,i);"column"!==t.type?ut(p,t,n,r):(p=Y(p,l,d,f,n,e),ut(p,t,n,r),f+=1)}))}return r.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:l}}function St(t,e,n,r,i,o){var a=t.extra.tooltip||{};a.horizentalLine&&t.tooltip&&1===r&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&vt(t,e,n,i,o),n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&n.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===r&&xt(t.tooltip.textList,t.tooltip.offset,t,e,n,i,o),n.restore()}function Pt(t,e,n,r){var i=e.chartData.xAxisData,o=i.xAxisPoints,a=i.startX,s=i.endX,l=i.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],f=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var d=e.height-e.area[2]+n.xAxisHeight,p=s-a,g=l*(o.length-1),y=p*p/g,x=0;e._scrollDistance_&&(x=-e._scrollDistance_*p/g),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*e.pixelRatio),r.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),r.moveTo(a,d),r.lineTo(s,d),r.stroke(),r.closePath(),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*e.pixelRatio),r.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),r.moveTo(a+x,d),r.lineTo(a+x+y,d),r.stroke(),r.closePath(),r.setLineCap("butt")}if(r.save(),e._scrollDistance_&&0!==e._scrollDistance_&&r.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(r.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*e.pixelRatio),o.forEach((function(t,n){n>0&&(r.beginPath(),r.moveTo(t-l/2,h),r.lineTo(t-l/2,h+3*e.pixelRatio),r.closePath(),r.stroke())}))),!0!==e.xAxis.disableGrid&&(r.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&r.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,n){n%e.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(t,h),r.lineTo(t,f),r.stroke())})),r.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var _=Math.ceil(t.length/m),b=[],w=t.length,A=0;A<w;A++)A%_!==0?b.push(""):b.push(t[A]);b[w-1]=t[w-1];var S=e.xAxis.fontSize||n.fontSize;0===n._xAxisTextAngle_?b.forEach((function(t,i){var a=-v(String(t),S)/2;"center"==c&&(a+=l/2);var s=0;e.xAxis.scrollShow&&(s=6*e.pixelRatio),r.beginPath(),r.setFontSize(S),r.setFillStyle(e.xAxis.fontColor||"#666666"),r.fillText(String(t),o[i]+a,h+S+(n.xAxisHeight-s-S)/2),r.closePath(),r.stroke()})):b.forEach((function(t,i){r.save(),r.beginPath(),r.setFontSize(S),r.setFillStyle(e.xAxis.fontColor||"#666666");var a=v(String(t),S),s=-a;"center"==c&&(s+=l/2);var f=u(o[i]+l/2,h+S/2+5,e.height),d=f.transX,p=f.transY;r.rotate(-1*n._xAxisTextAngle_),r.translate(d,p),r.fillText(String(t),o[i]+s,h+S+5),r.closePath(),r.stroke(),r.restore()}))}r.restore(),e.xAxis.axisLine&&(r.beginPath(),r.setStrokeStyle(e.xAxis.axisLineColor),r.setLineWidth(1*e.pixelRatio),r.moveTo(a,e.height-e.area[2]),r.lineTo(s,e.height-e.area[2]),r.stroke())}function Tt(t,e,n,r){if(!0!==e.yAxis.disableGrid){for(var i=e.height-e.area[0]-e.area[2],o=i/e.yAxis.splitNumber,a=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),u=a+c,h=[],f=0;f<e.yAxis.splitNumber+1;f++)h.push(e.height-e.area[2]-o*f);r.save(),e._scrollDistance_&&0!==e._scrollDistance_&&r.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&r.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),r.setStrokeStyle(e.yAxis.gridColor),r.setLineWidth(1*e.pixelRatio),h.forEach((function(t,e){r.beginPath(),r.moveTo(a,t),r.lineTo(u,t),r.stroke()})),r.setLineDash([]),r.restore()}}function Mt(t,e,n,r){if(!0!==e.yAxis.disabled){var i=e.height-e.area[0]-e.area[2],o=i/e.yAxis.splitNumber,a=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+n.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pixelRatio),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+3),r.beginPath(),r.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&r.fillRect(0,0,a,c),1==e.enableScroll&&r.fillRect(s,0,e.width,c),r.closePath(),r.stroke();for(var u=[],h=0;h<=e.yAxis.splitNumber;h++)u.push(e.area[0]+o*h);for(var f=e.area[3],d=e.width-e.area[1],p=function(t){var i=e.yAxis.data[t];if(!0!==i.disabled){var o=e.chartData.yAxisData.rangesFormat[t],a=i.fontSize||n.fontSize,s=e.chartData.yAxisData.yAxisWidth[t];if(o.forEach((function(t,n){var o=u[n]?u[n]:l;r.beginPath(),r.setFontSize(a),r.setLineWidth(1*e.pixelRatio),r.setStrokeStyle(i.axisLineColor||"#cccccc"),r.setFillStyle(i.fontColor||"#666666"),"left"==s.position?(r.fillText(String(t),f-s.width,o+a/2),1==i.calibration&&(r.moveTo(f,o),r.lineTo(f-3*e.pixelRatio,o))):(r.fillText(String(t),d+4*e.pixelRatio,o+a/2),1==i.calibration&&(r.moveTo(d,o),r.lineTo(d+3*e.pixelRatio,o))),r.closePath(),r.stroke()})),!1!==i.axisLine&&(r.beginPath(),r.setStrokeStyle(i.axisLineColor||"#cccccc"),r.setLineWidth(1*e.pixelRatio),"left"==s.position?(r.moveTo(f,e.height-e.area[2]),r.lineTo(f,e.area[0])):(r.moveTo(d,e.height-e.area[2]),r.lineTo(d,e.area[0])),r.stroke()),e.yAxis.showTitle){var c=i.titleFontSize||n.fontSize,h=i.title;r.beginPath(),r.setFontSize(c),r.setFillStyle(i.titleFontColor||"#666666"),"left"==s.position?r.fillText(h,f-v(h,c)/2,e.area[0]-10*e.pixelRatio):r.fillText(h,d-v(h,c)/2,e.area[0]-10*e.pixelRatio),r.closePath(),r.stroke()}"left"==s.position?f-=s.width+e.yAxis.padding:d+=s.width+e.yAxis.padding}},g=0;g<e.yAxis.data.length;g++)p(g)}}function kt(t,e,n,r,i){if(!1!==e.legend.show){var o=i.legendData,a=o.points,s=o.area,l=e.legend.padding,c=e.legend.fontSize,u=15*e.pixelRatio,h=5*e.pixelRatio,f=e.legend.itemGap,d=Math.max(e.legend.lineHeight*e.pixelRatio,c);r.beginPath(),r.setLineWidth(e.legend.borderWidth),r.setStrokeStyle(e.legend.borderColor),r.setFillStyle(e.legend.backgroundColor),r.moveTo(s.start.x,s.start.y),r.rect(s.start.x,s.start.y,s.width,s.height),r.closePath(),r.fill(),r.stroke(),a.forEach((function(t,i){var a=0,p=0;a=o.widthArr[i],p=o.heightArr[i];var g=0,y=0;"top"==e.legend.position||"bottom"==e.legend.position?(g=s.start.x+(s.width-a)/2,y=s.start.y+l+i*d):(a=0==i?0:o.widthArr[i-1],g=s.start.x+l+a,y=s.start.y+l+(s.height-p)/2),r.setFontSize(n.fontSize);for(var x=0;x<t.length;x++){var m=t[x];switch(m.area=[0,0,0,0],m.area[0]=g,m.area[1]=y,m.area[3]=y+d,r.beginPath(),r.setLineWidth(1*e.pixelRatio),r.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),r.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":r.moveTo(g,y+.5*d-2*e.pixelRatio),r.fillRect(g,y+.5*d-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":r.moveTo(g+7.5*e.pixelRatio,y+.5*d-5*e.pixelRatio),r.lineTo(g+2.5*e.pixelRatio,y+.5*d+5*e.pixelRatio),r.lineTo(g+12.5*e.pixelRatio,y+.5*d+5*e.pixelRatio),r.lineTo(g+7.5*e.pixelRatio,y+.5*d-5*e.pixelRatio);break;case"diamond":r.moveTo(g+7.5*e.pixelRatio,y+.5*d-5*e.pixelRatio),r.lineTo(g+2.5*e.pixelRatio,y+.5*d),r.lineTo(g+7.5*e.pixelRatio,y+.5*d+5*e.pixelRatio),r.lineTo(g+12.5*e.pixelRatio,y+.5*d),r.lineTo(g+7.5*e.pixelRatio,y+.5*d-5*e.pixelRatio);break;case"circle":r.moveTo(g+7.5*e.pixelRatio,y+.5*d),r.arc(g+7.5*e.pixelRatio,y+.5*d,5*e.pixelRatio,0,2*Math.PI);break;case"rect":r.moveTo(g,y+.5*d-5*e.pixelRatio),r.fillRect(g,y+.5*d-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:r.moveTo(g,y+.5*d-5*e.pixelRatio),r.fillRect(g,y+.5*d-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}r.closePath(),r.fill(),r.stroke(),g+=u+h;var _=.5*d+.5*c-2;r.beginPath(),r.setFontSize(c),r.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),r.fillText(m.name,g,y+_),r.closePath(),r.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=v(m.name,c)+f,m.area[2]=g):(m.area[2]=g+v(m.name,c)+f,g-=u+h,y+=d)}}))}}function Ct(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={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==n.pieChartLinePadding&&(n.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);t=U(t,c,a);var u=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,n){(e.tooltip&&e.tooltip.index==n||t.active)&&(i.beginPath(),i.setFillStyle(o(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_+u,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),"ring"===e.type){var h=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(h=Math.max(0,c-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===a){for(var f=!1,d=0,p=t.length;d<p;d++)if(t[d].data>0){f=!0;break}f&&dt(t,e,n,i,c,l)}return 1===a&&"ring"===e.type&&ct(e,n,i,l),{center:l,radius:c,series:t}}function Ot(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=s.activeRadius);var l={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((e.width-e.area[1]-e.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding),u=s.minRadius||.5*c;t=H(t,s.type,u,c,a);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,n){e.tooltip&&e.tooltip.index==n&&(i.beginPath(),i.setFillStyle(o(t.color,s.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,h+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),!1!==e.dataLabel&&1===a){for(var f=!1,d=0,p=t.length;d<p;d++)if(t[d].data>0){f=!0;break}f&&dt(t,e,n,i,c,l)}return{center:l,radius:c,series:t}}function Dt(t,e,n,i){var o,a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=r({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=V(t,l,s),o=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?a=l.radius:(a=Math.min(o.x,o.y),a-=5*e.pixelRatio,a-=l.width/2);for(var c=0;c<t.length;c++){var u=t[c];i.setLineWidth(l.width),i.setStrokeStyle(l.backgroundColor||"#E9E9E9"),i.setLineCap("round"),i.beginPath(),"default"==l.type?i.arc(o.x,o.y,a-(l.width+l.gap)*c,l.startAngle*Math.PI,l.endAngle*Math.PI,!1):i.arc(o.x,o.y,a-(l.width+l.gap)*c,0,2*Math.PI,!1),i.stroke(),i.setLineWidth(l.width),i.setStrokeStyle(u.color),i.setLineCap("round"),i.beginPath(),i.arc(o.x,o.y,a-(l.width+l.gap)*c,l.startAngle*Math.PI,u._proportion_*Math.PI,!1),i.stroke()}return ct(e,n,i,o),{center:o,radius:a,series:t}}function Rt(t,e,n,i,a){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=r({},{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"}},n.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=q(t,l.startAngle,l.endAngle);var c={x:n.width/2,y:n.height/2},u=Math.min(c.x,c.y);u-=5*n.pixelRatio,u-=l.width/2;var h=u-l.width,f=0;if("progress"==l.type){var d=u-3*l.width;a.beginPath();var p=a.createLinearGradient(c.x,c.y-d,c.x,c.y+d);p.addColorStop("0",o(e[0].color,.3)),p.addColorStop("1.0",o("#FFFFFF",.1)),a.setFillStyle(p),a.arc(c.x,c.y,d,0,2*Math.PI,!1),a.fill(),a.setLineWidth(l.width),a.setStrokeStyle(o(e[0].color,.3)),a.setLineCap("round"),a.beginPath(),a.arc(c.x,c.y,h,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),a.stroke(),f=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var g=f/l.splitLine.splitNumber/l.splitLine.childNumber,v=-u-.5*l.width-l.splitLine.fixRadius,y=-u-l.width-l.splitLine.fixRadius+l.splitLine.width;a.save(),a.translate(c.x,c.y),a.rotate((l.startAngle-1)*Math.PI);for(var x=l.splitLine.splitNumber*l.splitLine.childNumber+1,m=e[0].data*s,_=0;_<x;_++)a.beginPath(),m>_/x?a.setStrokeStyle(o(e[0].color,1)):a.setStrokeStyle(o(e[0].color,.3)),a.setLineWidth(3*n.pixelRatio),a.moveTo(v,0),a.lineTo(y,0),a.stroke(),a.rotate(g*Math.PI);a.restore(),e=V(e,l,s),a.setLineWidth(l.width),a.setStrokeStyle(e[0].color),a.setLineCap("round"),a.beginPath(),a.arc(c.x,c.y,h,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),a.stroke();var b=u-2.5*l.width;a.save(),a.translate(c.x,c.y),a.rotate((e[0]._proportion_-1)*Math.PI),a.beginPath(),a.setLineWidth(l.width/3);var w=a.createLinearGradient(0,.6*-b,0,.6*b);w.addColorStop("0",o("#FFFFFF",0)),w.addColorStop("0.5",o(e[0].color,1)),w.addColorStop("1.0",o("#FFFFFF",0)),a.setStrokeStyle(w),a.arc(0,0,b,.85*Math.PI,1.15*Math.PI,!1),a.stroke(),a.beginPath(),a.setLineWidth(1),a.setStrokeStyle(e[0].color),a.setFillStyle(e[0].color),a.moveTo(-b-l.width/3/2,-4),a.lineTo(-b-l.width/3/2-4,0),a.lineTo(-b-l.width/3/2,4),a.lineTo(-b-l.width/3/2,-4),a.stroke(),a.fill(),a.restore()}else{a.setLineWidth(l.width),a.setLineCap("butt");for(var A=0;A<t.length;A++){var S=t[A];a.beginPath(),a.setStrokeStyle(S.color),a.arc(c.x,c.y,u,S._startAngle_*Math.PI,S._endAngle_*Math.PI,!1),a.stroke()}a.save(),f=l.startAngle-l.endAngle+1;var P=f/l.splitLine.splitNumber,T=f/l.splitLine.splitNumber/l.splitLine.childNumber,M=-u-.5*l.width-l.splitLine.fixRadius,k=-u-.5*l.width-l.splitLine.fixRadius+l.splitLine.width,C=-u-.5*l.width-l.splitLine.fixRadius+l.splitLine.childWidth;a.translate(c.x,c.y),a.rotate((l.startAngle-1)*Math.PI);for(var O=0;O<l.splitLine.splitNumber+1;O++)a.beginPath(),a.setStrokeStyle(l.splitLine.color),a.setLineWidth(2*n.pixelRatio),a.moveTo(M,0),a.lineTo(k,0),a.stroke(),a.rotate(P*Math.PI);a.restore(),a.save(),a.translate(c.x,c.y),a.rotate((l.startAngle-1)*Math.PI);for(var D=0;D<l.splitLine.splitNumber*l.splitLine.childNumber+1;D++)a.beginPath(),a.setStrokeStyle(l.splitLine.color),a.setLineWidth(1*n.pixelRatio),a.moveTo(M,0),a.lineTo(C,0),a.stroke(),a.rotate(T*Math.PI);a.restore(),e=X(e,t,l,s);for(var R=0;R<e.length;R++){var L=e[R];a.save(),a.translate(c.x,c.y),a.rotate((L._proportion_-1)*Math.PI),a.beginPath(),a.setFillStyle(L.color),a.moveTo(l.pointer.width,0),a.lineTo(0,-l.pointer.width/2),a.lineTo(-h,0),a.lineTo(0,l.pointer.width/2),a.lineTo(l.pointer.width,0),a.closePath(),a.fill(),a.beginPath(),a.setFillStyle("#FFFFFF"),a.arc(0,0,l.pointer.width/6,0,2*Math.PI,!1),a.fill(),a.restore()}!1!==n.dataLabel&&ht(l,u,c,n,i,a)}return ct(n,i,a,c),1===s&&"gauge"===n.type&&(n.extra.gauge.oldAngle=e[0]._proportion_,n.extra.gauge.oldData=e[0].data),{center:c,radius:u,innerRadius:h,categories:t,totalAngle:f}}function Lt(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=w(e.categories.length),c={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},u=Math.min(c.x-(b(e.categories)+n.radarLabelTextMargin),c.y-n.radarLabelTextMargin);u-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=f(u*Math.cos(t),u*Math.sin(t),c);i.moveTo(c.x,c.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var h=function(t){var n={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(e,r){var o=f(u/s.gridCount*t*Math.cos(e),u/s.gridCount*t*Math.sin(e),c);0===r?(n=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(n.x,n.y),i.stroke(),i.closePath()},d=1;d<=s.gridCount;d++)h(d);var p=B(l,c,u,t,e,a);return p.forEach((function(t,n){if(i.beginPath(),i.setFillStyle(o(t.color,s.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 r=t.data.map((function(t){return t.position}));lt(r,t.color,t.pointShape,i,e)}})),ft(l,u,c,e,n,i),{center:c,radius:u,angleList:l}}function $t(t,e,n){n=0==n?1:n;for(var r=[],i=0;i<n;i++)r[i]=Math.random();return Math.floor(r.reduce((function(t,e){return t+e}))/n*(e-t))+t}function Et(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)if(e[o].area){if(!(t[3]<e[o].area[1]||t[0]>e[o].area[2]||t[1]>e[o].area[3]||t[2]<e[o].area[0])){i=!0;break}if(t[0]<0||t[1]<0||t[2]>n||t[3]>r){i=!0;break}i=!1}return i}function Ft(t){var e,n={};n.xMin=180,n.xMax=0,n.yMin=90,n.yMax=0;for(var r=0;r<t.length;r++)for(var i=t[r].geometry.coordinates,o=0;o<i.length;o++){e=i[o],1==e.length&&(e=e[0]);for(var a=0;a<e.length;a++){var s=e[a][0],l=e[a][1],c={x:s,y:l};n.xMin=n.xMin<c.x?n.xMin:c.x,n.xMax=n.xMax>c.x?n.xMax:c.x,n.yMin=n.yMin<c.y?n.yMin:c.y,n.yMax=n.yMax>c.y?n.yMax:c.y}}return n}function jt(t,e,n,r,i,o){return{x:(e-n.xMin)*r+i,y:(n.yMax-t)*r+o}}function It(t,e,n,r,i,o){return{x:(e-i)/r+n.xMin,y:n.yMax-(t-o)/r}}function zt(t,e,n){if(e[1]==n[1])return!1;if(e[1]>t[1]&&n[1]>t[1])return!1;if(e[1]<t[1]&&n[1]<t[1])return!1;if(e[1]==t[1]&&n[1]>t[1])return!1;if(n[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&n[1]<t[1])return!1;var r=n[0]-(n[0]-e[0])*(n[1]-t[1])/(n[1]-e[1]);return!(r<t[0])}function Wt(t,e){for(var n=0,r=0;r<e.length;r++){var i=e[r][0];1==e.length&&(i=e[r][0]);for(var o=0;o<i.length-1;o++){var a=i[o],s=i[o+1];zt(t,a,s)&&(n+=1)}}return n%2==1}function Nt(t,e,n,i){var a,s,l=r({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,u=Ft(c),h=e.width/Math.abs(u.xMax-u.xMin),f=e.height/Math.abs(u.yMax-u.yMin),d=h<f?h:f,p=e.width/2-Math.abs(u.xMax-u.xMin)/2*d,g=e.height/2-Math.abs(u.yMax-u.yMin)/2*d;i.beginPath(),i.clearRect(0,0,e.width,e.height),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill();for(var y=0;y<c.length;y++){i.beginPath(),i.setLineWidth(l.borderWidth*e.pixelRatio),i.setStrokeStyle(l.borderColor),i.setFillStyle(o(t[y].color,l.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(i.setStrokeStyle(l.activeBorderColor),i.setFillStyle(o(l.activeFillColor,l.activeFillOpacity)));for(var x=c[y].geometry.coordinates,m=0;m<x.length;m++){a=x[m],1==a.length&&(a=a[0]);for(var _=0;_<a.length;_++)s=jt(a[_][1],a[_][0],u,d,p,g),0===_?(i.beginPath(),i.moveTo(s.x,s.y)):i.lineTo(s.x,s.y);i.fill(),1==l.border&&i.stroke()}if(1==e.dataLabel){var b=c[y].properties.centroid;if(b){s=jt(b[1],b[0],u,d,p,g);var w=c[y].textSize||n.fontSize,A=c[y].properties.name;i.beginPath(),i.setFontSize(w),i.setFillStyle(c[y].textColor||"#666666"),i.fillText(A,s.x-v(A,w)/2,s.y+w/2),i.closePath(),i.stroke()}}}e.chartData.mapData={bounds:u,scale:d,xoffset:p,yoffset:g},St(e,n,i,1),i.draw()}function Bt(t,e){var n=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var r=0;r<n.length;r++){var i=n[r].name,o=n[r].textSize,a=v(i,o),s=void 0,l=void 0,c=void 0,u=0;while(1){u++,s=$t(-t.width/2,t.width/2,5)-a/2,l=$t(-t.height/2,t.height/2,5)+o/2,c=[s-5+t.width/2,l-5-o+t.height/2,s+a+5+t.width/2,l+5+t.height/2];var h=Et(c,n,t.width,t.height);if(!h)break;if(1e3==u){c=[-100,-100,-100,-100];break}}n[r].area=c}break;case"vertical":for(var f=function(){return Math.random()>.7},d=0;d<n.length;d++){var p=n[d].name,g=n[d].textSize,y=v(p,g),x=f(),m=void 0,_=void 0,b=void 0,w=void 0,A=0;while(1){A++;var S=void 0;if(x?(m=$t(-t.width/2,t.width/2,5)-y/2,_=$t(-t.height/2,t.height/2,5)+g/2,b=[_-5-y+t.width/2,-m-5+t.height/2,_+5+t.width/2,-m+g+5+t.height/2],w=[t.width-(t.width/2-t.height/2)-(-m+g+5+t.height/2)-5,t.height/2-t.width/2+(_-5-y+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+g+5+t.height/2)+g,t.height/2-t.width/2+(_-5-y+t.width/2)+y+5],S=Et(w,n,t.height,t.width)):(m=$t(-t.width/2,t.width/2,5)-y/2,_=$t(-t.height/2,t.height/2,5)+g/2,b=[m-5+t.width/2,_-5-g+t.height/2,m+y+5+t.width/2,_+5+t.height/2],S=Et(b,n,t.width,t.height)),!S)break;if(1e3==A){b=[-1e3,-1e3,-1e3,-1e3];break}}x?(n[d].area=w,n[d].areav=b):n[d].area=b,n[d].rotate=x}break}return n}function Ut(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;r({},{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 a=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s<a.length;s++){i.save(),a[s].rotate&&i.rotate(90*Math.PI/180);var l=a[s].name,c=a[s].textSize,u=v(l,c);i.beginPath(),i.setStrokeStyle(a[s].color),i.setFillStyle(a[s].color),i.setFontSize(c),a[s].rotate?a[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(a[s].areav[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].areav[1]+5+c-e.height/2)*o):i.fillText(l,(a[s].areav[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].areav[1]+5+c-e.height/2)*o)):a[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(a[s].area[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].area[1]+5+c-e.height/2)*o):i.fillText(l,(a[s].area[0]+5-e.width/2)*o-u*(1-o)/2,(a[s].area[1]+5+c-e.height/2)*o)),i.stroke(),i.restore()}i.restore()}function Gt(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=r({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},u=s.activeWidth,h=Math.min((e.width-e.area[1]-e.area[3])/2-u,(e.height-e.area[0]-e.area[2])/2-u);t=G(t,h,a),i.save(),i.translate(c.x,c.y);for(var f=0;f<t.length;f++)0==f?(e.tooltip&&e.tooltip.index==f&&(i.beginPath(),i.setFillStyle(o(t[f].color,s.activeOpacity)),i.moveTo(-u,0),i.lineTo(-t[f].radius-u,-l),i.lineTo(t[f].radius+u,-l),i.lineTo(u,0),i.lineTo(-u,0),i.closePath(),i.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-l,c.x+t[f].radius,c.y],i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.setStrokeStyle(s.borderColor),i.setFillStyle(o(t[f].color,s.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[f].radius,-l),i.lineTo(t[f].radius,-l),i.lineTo(0,0),i.closePath(),i.fill(),1==s.border&&i.stroke()):(e.tooltip&&e.tooltip.index==f&&(i.beginPath(),i.setFillStyle(o(t[f].color,s.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[f-1].radius-u,0),i.lineTo(-t[f].radius-u,-l),i.lineTo(t[f].radius+u,-l),i.lineTo(t[f-1].radius+u,0),i.lineTo(0,0),i.closePath(),i.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-l*(f+1),c.x+t[f].radius,c.y-l*f],i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.setStrokeStyle(s.borderColor),i.setFillStyle(o(t[f].color,s.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[f-1].radius,0),i.lineTo(-t[f].radius,-l),i.lineTo(t[f].radius,-l),i.lineTo(t[f-1].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==s.border&&i.stroke()),i.translate(0,-l);return i.restore(),!1!==e.dataLabel&&1===a&&Ht(t,e,i,l,s.labelAlign,u,c),{center:c,radius:h,series:t}}function Ht(t,e,n,r,o,a,s){for(var l=0;l<t.length;l++){var c=t[l],u=void 0,h=void 0,f=void 0,d=void 0,p=c.format?c.format(+c._proportion_.toFixed(2)):i.toFixed(100*c._proportion_)+"%";"right"==o?(u=0==l?(c.funnelArea[2]+s.x)/2:(c.funnelArea[2]+t[l-1].funnelArea[2])/2,h=u+2*a,f=c.funnelArea[1]+r/2,d=c.textSize||e.fontSize,n.setLineWidth(1*e.pixelRatio),n.setStrokeStyle(c.color),n.setFillStyle(c.color),n.beginPath(),n.moveTo(u,f),n.lineTo(h,f),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(h,f),n.arc(h,f,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(d),n.setFillStyle(c.textColor||"#666666"),n.fillText(p,h+5,f+d/2-2),n.closePath(),n.stroke(),n.closePath()):(u=0==l?(c.funnelArea[0]+s.x)/2:(c.funnelArea[0]+t[l-1].funnelArea[0])/2,h=u-2*a,f=c.funnelArea[1]+r/2,d=c.textSize||e.fontSize,n.setLineWidth(1*e.pixelRatio),n.setStrokeStyle(c.color),n.setFillStyle(c.color),n.beginPath(),n.moveTo(u,f),n.lineTo(h,f),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(h,f),n.arc(h,f,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(d),n.setFillStyle(c.textColor||"#666666"),n.fillText(p,h-5-v(p),f+d/2-2),n.closePath(),n.stroke(),n.closePath())}}function Vt(t,e){e.draw()}var qt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function Xt(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=17;function n(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var r=n(),i=null,o=function(n){if(null===n||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===i&&(i=n),n-i<t.duration){var a=(n-i)/t.duration,s=qt[t.timing];a=s(a),t.onProcess&&t.onProcess(a),r(o,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};o=o.bind(this),r(o,e)}function Kt(t,e,n,i){var o=this,a=e.series,l=e.categories;a=p(a,e,n);var c=e.animation?e.duration:0;o.animationInstance&&o.animationInstance.stop();var u=null;if("candle"==t){var h=r({},e.extra.candle.average);h.show?(u=s(h.day,h.name,h.color,a[0].data),u=p(u,e,n),e.seriesMA=u):u=e.seriesMA?e.seriesMA=p(e.seriesMA,e,n):a}else u=a;e._series_=a=T(a),e.area=new Array(4);for(var f=0;f<4;f++)e.area[f]=e.padding[f];var d=I(u,e,n,e.chartData),g=d.area.wholeHeight,v=d.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=g;break;case"bottom":e.area[2]+=g;break;case"left":e.area[3]+=v;break;case"right":e.area[1]+=v;break}var y={},x=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(y=it(a,e,n),x=y.yAxisWidth,e.yAxis.showTitle){for(var m=0,_=0;_<e.yAxis.data.length;_++)m=Math.max(m,e.yAxis.data[_].titleFontSize?e.yAxis.data[_].titleFontSize:n.fontSize);e.area[0]+=(m+6)*e.pixelRatio}for(var b=0,w=0,A=0;A<x.length;A++)"left"==x[A].position?(e.area[3]+=w>0?x[A].width+e.yAxis.padding:x[A].width,w+=1):(e.area[1]+=b>0?x[A].width+e.yAxis.padding:x[A].width,b+=1)}else n.yAxisWidth=x;if(e.chartData.yAxisData=y,e.categories&&e.categories.length){e.chartData.xAxisData=Z(e.categories,e,n);var S=z(e.categories,e,n,e.chartData.xAxisData.eachSpacing),P=S.xAxisHeight,M=S.angle;n.xAxisHeight=P,n._xAxisTextAngle_=M,e.area[2]+=P,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=N(a,e,n),l=e.chartData.xAxisData.rangesFormat;var k=z(l,e,n,e.chartData.xAxisData.eachSpacing),C=k.xAxisHeight,O=k.angle;n.xAxisHeight=C,n._xAxisTextAngle_=O,e.area[2]+=C,e.chartData.categoriesData=k}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var D=0,R=e.chartData.xAxisData.xAxisPoints,L=e.chartData.xAxisData.startX,$=e.chartData.xAxisData.endX,E=e.chartData.xAxisData.eachSpacing,F=E*(R.length-1),j=$-L;D=j-F,o.scrollOption={currentOffset:D,startTouchX:D,distance:0,lastMoveTime:0},e._scrollDistance_=D}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(n._pieTextMaxLength_=!1===e.dataLabel?0:K(u)),t){case"word":var W=r({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=Bt(e,W.type)),this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Ut(a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),Nt(a,e,n,i);break;case"funnel":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.funnelData=Gt(a,e,n,i,t),kt(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Tt(l,e,n,i),Pt(l,e,n,i);var r=wt(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Mt(a,e,n,i),!1!==e.enableMarkLine&&1===t&&gt(e,n,i),kt(e.series,e,n,i,e.chartData),St(e,n,i,t,c,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Tt(l,e,n,i),Pt(l,e,n,i);var r=At(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Mt(a,e,n,i),!1!==e.enableMarkLine&&1===t&&gt(e,n,i),kt(e.series,e,n,i,e.chartData),St(e,n,i,t,c,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Tt(l,e,n,i),Pt(l,e,n,i);var r=mt(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Mt(a,e,n,i),!1!==e.enableMarkLine&&1===t&&gt(e,n,i),kt(e.series,e,n,i,e.chartData),St(e,n,i,t,c,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Tt(l,e,n,i),Pt(l,e,n,i);var r=bt(a,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Mt(a,e,n,i),!1!==e.enableMarkLine&&1===t&&gt(e,n,i),kt(e.series,e,n,i,e.chartData),St(e,n,i,t,c,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.pieData=Ct(a,e,n,i,t),kt(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.pieData=Ot(a,e,n,i,t),kt(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.radarData=Lt(a,e,n,i,t),kt(e.series,e,n,i,e.chartData),St(e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.arcbarData=Dt(a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Xt({timing:"easeInOut",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),e.chartData.gaugeData=Rt(l,a,e,n,i,t),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Xt({timing:"easeIn",duration:c,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&st(i,e),Tt(l,e,n,i),Pt(l,e,n,i);var r=_t(a,u,e,n,i,t),o=r.xAxisPoints,s=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=c,Mt(a,e,n,i),!1!==e.enableMarkLine&&1===t&&gt(e,n,i),kt(u||e.series,e,n,i,e.chartData),St(e,n,i,t,c,o),Vt(e,i)},onAnimationFinish:function(){o.event.trigger("renderComplete")}});break}}function Yt(){this.events={}}Xt.prototype.stop=function(){this.isStop=!0},Yt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},Yt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e.slice(1);this.events[r]&&this.events[r].forEach((function(t){try{t.apply(null,i)}catch(e){console.error(e)}}))};var Jt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=r({},t.title),t.subtitle=r({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=r({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pixelRatio,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.yAxis.dashLength*=t.pixelRatio,t.yAxis.padding*=t.pixelRatio,t.xAxis=r({},{rotateLabel:!1,type:"calibration",gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.dashLength*=t.pixelRatio,t.legend=r({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=r({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var i=JSON.parse(JSON.stringify(n));if(i.colors=t.colors?t.colors:i.colors,i.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?i.yAxisTitleWidth:0,"pie"!=t.type&&"ring"!=t.type||(i.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||i.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(i.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||i.pieChartLinePadding*t.pixelRatio),i.pieChartTextPadding=!1===t.dataLabel?0:i.pieChartTextPadding*t.pixelRatio,i.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:n.yAxisSplit,i.rotate=t.rotate,t.rotate){var o=t.width,a=t.height;t.width=a,t.height=o}t.padding=t.padding?t.padding:i.padding;for(var s=0;s<4;s++)t.padding[s]*=t.pixelRatio;i.yAxisWidth=n.yAxisWidth*t.pixelRatio,i.xAxisHeight=n.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(i.xAxisHeight+=6*t.pixelRatio),i.xAxisLineHeight=n.xAxisLineHeight*t.pixelRatio,i.fontSize=t.fontSize,i.titleFontSize=n.titleFontSize*t.pixelRatio,i.subtitleFontSize=n.subtitleFontSize*t.pixelRatio,i.toolTipPadding=n.toolTipPadding*t.pixelRatio,i.toolTipLineHeight=n.toolTipLineHeight*t.pixelRatio,i.columePadding=n.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=e.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new Yt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=i,Kt.call(this,t.type,t,i,this.context)};Jt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=r({},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 n=it(this.opts.series,this.opts,this.config),i=n.yAxisWidth;this.config.yAxisWidth=i;var o=0,a=Z(this.opts.categories,this.opts,this.config),s=a.xAxisPoints,l=a.startX,c=a.endX,u=a.eachSpacing,h=u*(s.length-1),f=c-l;o=f-h,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o;break}Kt.call(this,this.opts.type,this.opts,this.config,this.context)},Jt.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 n=it(this.opts.series,this.opts,this.config),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=Z(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,l=o.endX,c=o.eachSpacing,u=c*e,h=l-s,f=h-c*(a.length-1);i=h/2-u,i>0&&(i=0),i<f&&(i=f),this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i,Kt.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("请启用滚动条后使用!")},Jt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},Jt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},Jt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var n=m(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?E({x:n.x,y:n.y},this.opts.chartData.pieData):"radar"===this.opts.type?D({x:n.x,y:n.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?R({x:n.x,y:n.y},this.opts.chartData.funnelData):"map"===this.opts.type?$({x:n.x,y:n.y},this.opts):"word"===this.opts.type?L({x:n.x,y:n.y},this.opts.chartData.wordCloudData):M({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},Jt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var n=m(e,this.opts,t);return k({x:n.x,y:n.y},this.opts.chartData.legendData)}return-1},Jt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n){m(n,this.opts,t);var r=this.getLegendDataIndex(t);r>=0&&(this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Kt.call(this,this.opts.type,this.opts,this.config,this.context))}},Jt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n||console.log("touchError");var i=m(n,this.opts,t),o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){var l=_(this.opts.series,s);if(0!==l.length){var c=A(l,this.opts.chartData.calPoints,s,this.opts.categories,e),u=c.textList,h=c.offset;h.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}}Kt.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),l=_(this.opts.series,s);if(0!==l.length){var f=S(l,this.opts.chartData.calPoints,s,this.opts.categories,e);u=f.textList,h=f.offset;h.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}}Kt.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),l=_(this.opts.series,s);if(0!==l.length){c=P(this.opts.series[0].data,l,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),u=c.textList,h=c.offset;h.y=i.y,a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}}Kt.call(this,a.type,a,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),l=this.opts._series_[s],u=[{text:e.format?e.format(l):l.name+": "+l.data,color:l.color}],h={x:i.x,y:i.y};a.series.map((function(t){t.active=!1})),a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}Kt.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),l=this.opts._series_[s],u=[{text:e.format?e.format(l):l.properties.name,color:l.color}],h={x:i.x,y:i.y};a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}a.updateData=!1,Kt.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){o=this.scrollOption.currentOffset,a=r({},this.opts,{_scrollDistance_:o,animation:!1}),l=_(this.opts.series,s);if(0!==l.length){u=l.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),h={x:i.x,y:i.y};a.tooltip={textList:e.textList?e.textList:u,offset:h,option:e,index:s}}}Kt.call(this,a.type,a,this.config,this.context)}},Jt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=r({},this.opts,{_scrollDistance_:t,animation:!1});Kt.call(this,this.opts.type,e,this.config,this.context)},Jt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var n=m(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},Jt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,n=Date.now(),i=n-this.scrollOption.lastMoveTime;if(!(i<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=n;var o=null;if(o=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],o&&!0===this.opts.enableScroll){var a,s=m(o,this.opts,t);a=s.x-this.scrollOption.startTouchX;var c=this.scrollOption.currentOffset,u=l(this,c+a,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=a=u-c;var h=r({},this.opts,{_scrollDistance_:c+a,animation:!1});return Kt.call(this,h.type,h,this.config,this.context),c+a}}},Jt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,n=e.currentOffset,r=e.distance;this.scrollOption.currentOffset=n+r,this.scrollOption.distance=0}},"object"===typeof t.exports&&(t.exports=Jt)}).call(this,n("543d")["default"])},"0271":function(t,e){function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var o={KEY_ERR:311,KEY_ERR_MSG:"key格式错误",PARAM_ERR:310,PARAM_ERR_MSG:"请求参数信息有误",SYSTEM_ERR:600,SYSTEM_ERR_MSG:"系统错误",WX_ERR_CODE:1e3,WX_OK_CODE:200},a="https://apis.map.qq.com/ws/",s=a+"place/v1/search",l=a+"place/v1/suggestion",c=a+"geocoder/v1/",u=a+"district/v1/list",h=a+"district/v1/getchildren",f=a+"distance/v1/",d=a+"direction/v1/",p={driving:"driving",transit:"transit"},g=6378136.49,v={safeAdd:function(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n},bitRotateLeft:function(t,e){return t<<e|t>>>32-e},md5cmn:function(t,e,n,r,i,o){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(e,t),this.safeAdd(r,o)),i),n)},md5ff:function(t,e,n,r,i,o,a){return this.md5cmn(e&n|~e&r,t,e,i,o,a)},md5gg:function(t,e,n,r,i,o,a){return this.md5cmn(e&r|n&~r,t,e,i,o,a)},md5hh:function(t,e,n,r,i,o,a){return this.md5cmn(e^n^r,t,e,i,o,a)},md5ii:function(t,e,n,r,i,o,a){return this.md5cmn(n^(e|~r),t,e,i,o,a)},binlMD5:function(t,e){var n,r,i,o,a;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var s=1732584193,l=-271733879,c=-1732584194,u=271733878;for(n=0;n<t.length;n+=16)r=s,i=l,o=c,a=u,s=this.md5ff(s,l,c,u,t[n],7,-680876936),u=this.md5ff(u,s,l,c,t[n+1],12,-389564586),c=this.md5ff(c,u,s,l,t[n+2],17,606105819),l=this.md5ff(l,c,u,s,t[n+3],22,-1044525330),s=this.md5ff(s,l,c,u,t[n+4],7,-176418897),u=this.md5ff(u,s,l,c,t[n+5],12,1200080426),c=this.md5ff(c,u,s,l,t[n+6],17,-1473231341),l=this.md5ff(l,c,u,s,t[n+7],22,-45705983),s=this.md5ff(s,l,c,u,t[n+8],7,1770035416),u=this.md5ff(u,s,l,c,t[n+9],12,-1958414417),c=this.md5ff(c,u,s,l,t[n+10],17,-42063),l=this.md5ff(l,c,u,s,t[n+11],22,-1990404162),s=this.md5ff(s,l,c,u,t[n+12],7,1804603682),u=this.md5ff(u,s,l,c,t[n+13],12,-40341101),c=this.md5ff(c,u,s,l,t[n+14],17,-1502002290),l=this.md5ff(l,c,u,s,t[n+15],22,1236535329),s=this.md5gg(s,l,c,u,t[n+1],5,-165796510),u=this.md5gg(u,s,l,c,t[n+6],9,-1069501632),c=this.md5gg(c,u,s,l,t[n+11],14,643717713),l=this.md5gg(l,c,u,s,t[n],20,-373897302),s=this.md5gg(s,l,c,u,t[n+5],5,-701558691),u=this.md5gg(u,s,l,c,t[n+10],9,38016083),c=this.md5gg(c,u,s,l,t[n+15],14,-660478335),l=this.md5gg(l,c,u,s,t[n+4],20,-405537848),s=this.md5gg(s,l,c,u,t[n+9],5,568446438),u=this.md5gg(u,s,l,c,t[n+14],9,-1019803690),c=this.md5gg(c,u,s,l,t[n+3],14,-187363961),l=this.md5gg(l,c,u,s,t[n+8],20,1163531501),s=this.md5gg(s,l,c,u,t[n+13],5,-1444681467),u=this.md5gg(u,s,l,c,t[n+2],9,-51403784),c=this.md5gg(c,u,s,l,t[n+7],14,1735328473),l=this.md5gg(l,c,u,s,t[n+12],20,-1926607734),s=this.md5hh(s,l,c,u,t[n+5],4,-378558),u=this.md5hh(u,s,l,c,t[n+8],11,-2022574463),c=this.md5hh(c,u,s,l,t[n+11],16,1839030562),l=this.md5hh(l,c,u,s,t[n+14],23,-35309556),s=this.md5hh(s,l,c,u,t[n+1],4,-1530992060),u=this.md5hh(u,s,l,c,t[n+4],11,1272893353),c=this.md5hh(c,u,s,l,t[n+7],16,-155497632),l=this.md5hh(l,c,u,s,t[n+10],23,-1094730640),s=this.md5hh(s,l,c,u,t[n+13],4,681279174),u=this.md5hh(u,s,l,c,t[n],11,-358537222),c=this.md5hh(c,u,s,l,t[n+3],16,-722521979),l=this.md5hh(l,c,u,s,t[n+6],23,76029189),s=this.md5hh(s,l,c,u,t[n+9],4,-640364487),u=this.md5hh(u,s,l,c,t[n+12],11,-421815835),c=this.md5hh(c,u,s,l,t[n+15],16,530742520),l=this.md5hh(l,c,u,s,t[n+2],23,-995338651),s=this.md5ii(s,l,c,u,t[n],6,-198630844),u=this.md5ii(u,s,l,c,t[n+7],10,1126891415),c=this.md5ii(c,u,s,l,t[n+14],15,-1416354905),l=this.md5ii(l,c,u,s,t[n+5],21,-57434055),s=this.md5ii(s,l,c,u,t[n+12],6,1700485571),u=this.md5ii(u,s,l,c,t[n+3],10,-1894986606),c=this.md5ii(c,u,s,l,t[n+10],15,-1051523),l=this.md5ii(l,c,u,s,t[n+1],21,-2054922799),s=this.md5ii(s,l,c,u,t[n+8],6,1873313359),u=this.md5ii(u,s,l,c,t[n+15],10,-30611744),c=this.md5ii(c,u,s,l,t[n+6],15,-1560198380),l=this.md5ii(l,c,u,s,t[n+13],21,1309151649),s=this.md5ii(s,l,c,u,t[n+4],6,-145523070),u=this.md5ii(u,s,l,c,t[n+11],10,-1120210379),c=this.md5ii(c,u,s,l,t[n+2],15,718787259),l=this.md5ii(l,c,u,s,t[n+9],21,-343485551),s=this.safeAdd(s,r),l=this.safeAdd(l,i),c=this.safeAdd(c,o),u=this.safeAdd(u,a);return[s,l,c,u]},binl2rstr:function(t){var e,n="",r=32*t.length;for(e=0;e<r;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n},rstr2binl:function(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var r=8*t.length;for(e=0;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n},rstrMD5:function(t){return this.binl2rstr(this.binlMD5(this.rstr2binl(t),8*t.length))},rstrHMACMD5:function(t,e){var n,r,i=this.rstr2binl(t),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=this.binlMD5(i,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=this.binlMD5(o.concat(this.rstr2binl(e)),512+8*e.length),this.binl2rstr(this.binlMD5(a.concat(r),640))},rstr2hex:function(t){var e,n,r="0123456789abcdef",i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+=r.charAt(e>>>4&15)+r.charAt(15&e);return i},str2rstrUTF8:function(t){return unescape(encodeURIComponent(t))},rawMD5:function(t){return this.rstrMD5(this.str2rstrUTF8(t))},hexMD5:function(t){return this.rstr2hex(this.rawMD5(t))},rawHMACMD5:function(t,e){return this.rstrHMACMD5(this.str2rstrUTF8(t),str2rstrUTF8(e))},hexHMACMD5:function(t,e){return this.rstr2hex(this.rawHMACMD5(t,e))},md5:function(t,e,n){return e?n?this.rawHMACMD5(e,t):this.hexHMACMD5(e,t):n?this.rawMD5(t):this.hexMD5(t)},getSig:function(t,e,n,r){var i=null,o=[];return Object.keys(t).sort().forEach((function(e){o.push(e+"="+t[e])})),"search"==n&&(i="/ws/place/v1/search?"+o.join("&")+e),"suggest"==n&&(i="/ws/place/v1/suggestion?"+o.join("&")+e),"reverseGeocoder"==n&&(i="/ws/geocoder/v1/?"+o.join("&")+e),"geocoder"==n&&(i="/ws/geocoder/v1/?"+o.join("&")+e),"getCityList"==n&&(i="/ws/district/v1/list?"+o.join("&")+e),"getDistrictByCityId"==n&&(i="/ws/district/v1/getchildren?"+o.join("&")+e),"calculateDistance"==n&&(i="/ws/distance/v1/?"+o.join("&")+e),"direction"==n&&(i="/ws/direction/v1/"+r+"?"+o.join("&")+e),i=this.md5(i),i},location2query:function(t){if("string"==typeof t)return t;for(var e="",n=0;n<t.length;n++){var r=t[n];e&&(e+=";"),r.location&&(e=e+r.location.lat+","+r.location.lng),r.latitude&&r.longitude&&(e=e+r.latitude+","+r.longitude)}return e},rad:function(t){return t*Math.PI/180},getEndLocation:function(t){for(var e=t.split(";"),n=[],r=0;r<e.length;r++)n.push({lat:parseFloat(e[r].split(",")[0]),lng:parseFloat(e[r].split(",")[1])});return n},getDistance:function(t,e,n,r){var i=this.rad(t),o=this.rad(n),a=i-o,s=this.rad(e)-this.rad(r),l=2*Math.asin(Math.sqrt(Math.pow(Math.sin(a/2),2)+Math.cos(i)*Math.cos(o)*Math.pow(Math.sin(s/2),2)));return l*=g,l=Math.round(1e4*l)/1e4,parseFloat(l.toFixed(0))},getWXLocation:function(t,e,n){wx.getLocation({type:"gcj02",success:t,fail:e,complete:n})},getLocationParam:function(t){if("string"==typeof t){var e=t.split(",");t=2===e.length?{latitude:t.split(",")[0],longitude:t.split(",")[1]}:{}}return t},polyfillParam:function(t){t.success=t.success||function(){},t.fail=t.fail||function(){},t.complete=t.complete||function(){}},checkParamKeyEmpty:function(t,e){if(!t[e]){var n=this.buildErrorConfig(o.PARAM_ERR,o.PARAM_ERR_MSG+e+"参数格式有误");return t.fail(n),t.complete(n),!0}return!1},checkKeyword:function(t){return!this.checkParamKeyEmpty(t,"keyword")},checkLocation:function(t){var e=this.getLocationParam(t.location);if(!e||!e.latitude||!e.longitude){var n=this.buildErrorConfig(o.PARAM_ERR,o.PARAM_ERR_MSG+" location参数格式有误");return t.fail(n),t.complete(n),!1}return!0},buildErrorConfig:function(t,e){return{status:t,message:e}},handleData:function(t,e,n){if("search"==n){for(var r=e.data,i=[],o=0;o<r.length;o++)i.push({id:r[o].id||null,title:r[o].title||null,latitude:r[o].location&&r[o].location.lat||null,longitude:r[o].location&&r[o].location.lng||null,address:r[o].address||null,category:r[o].category||null,tel:r[o].tel||null,adcode:r[o].ad_info&&r[o].ad_info.adcode||null,city:r[o].ad_info&&r[o].ad_info.city||null,district:r[o].ad_info&&r[o].ad_info.district||null,province:r[o].ad_info&&r[o].ad_info.province||null});t.success(e,{searchResult:r,searchSimplify:i})}else if("suggest"==n){var a=e.data,s=[];for(o=0;o<a.length;o++)s.push({adcode:a[o].adcode||null,address:a[o].address||null,category:a[o].category||null,city:a[o].city||null,district:a[o].district||null,id:a[o].id||null,latitude:a[o].location&&a[o].location.lat||null,longitude:a[o].location&&a[o].location.lng||null,province:a[o].province||null,title:a[o].title||null,type:a[o].type||null});t.success(e,{suggestResult:a,suggestSimplify:s})}else if("reverseGeocoder"==n){var l=e.result,c={address:l.address||null,latitude:l.location&&l.location.lat||null,longitude:l.location&&l.location.lng||null,adcode:l.ad_info&&l.ad_info.adcode||null,city:l.address_component&&l.address_component.city||null,district:l.address_component&&l.address_component.district||null,nation:l.address_component&&l.address_component.nation||null,province:l.address_component&&l.address_component.province||null,street:l.address_component&&l.address_component.street||null,street_number:l.address_component&&l.address_component.street_number||null,recommend:l.formatted_addresses&&l.formatted_addresses.recommend||null,rough:l.formatted_addresses&&l.formatted_addresses.rough||null};if(l.pois){var u=l.pois,h=[];for(o=0;o<u.length;o++)h.push({id:u[o].id||null,title:u[o].title||null,latitude:u[o].location&&u[o].location.lat||null,longitude:u[o].location&&u[o].location.lng||null,address:u[o].address||null,category:u[o].category||null,adcode:u[o].ad_info&&u[o].ad_info.adcode||null,city:u[o].ad_info&&u[o].ad_info.city||null,district:u[o].ad_info&&u[o].ad_info.district||null,province:u[o].ad_info&&u[o].ad_info.province||null});t.success(e,{reverseGeocoderResult:l,reverseGeocoderSimplify:c,pois:u,poisSimplify:h})}else t.success(e,{reverseGeocoderResult:l,reverseGeocoderSimplify:c})}else if("geocoder"==n){var f=e.result,d={title:f.title||null,latitude:f.location&&f.location.lat||null,longitude:f.location&&f.location.lng||null,adcode:f.ad_info&&f.ad_info.adcode||null,province:f.address_components&&f.address_components.province||null,city:f.address_components&&f.address_components.city||null,district:f.address_components&&f.address_components.district||null,street:f.address_components&&f.address_components.street||null,street_number:f.address_components&&f.address_components.street_number||null,level:f.level||null};t.success(e,{geocoderResult:f,geocoderSimplify:d})}else if("getCityList"==n){var p=e.result[0],g=e.result[1],v=e.result[2];t.success(e,{provinceResult:p,cityResult:g,districtResult:v})}else if("getDistrictByCityId"==n){var y=e.result[0];t.success(e,y)}else if("calculateDistance"==n){var x=e.result.elements,m=[];for(o=0;o<x.length;o++)m.push(x[o].distance);t.success(e,{calculateDistanceResult:x,distance:m})}else if("direction"==n){var _=e.result.routes;t.success(e,_)}else t.success(e)},buildWxRequestConfig:function(t,e,n){var r=this;return e.header={"content-type":"application/json"},e.method="GET",e.success=function(e){var i=e.data;0===i.status?r.handleData(t,i,n):t.fail(i)},e.fail=function(e){e.statusCode=o.WX_ERR_CODE,t.fail(r.buildErrorConfig(o.WX_ERR_CODE,e.errMsg))},e.complete=function(e){var n=+e.statusCode;switch(n){case o.WX_ERR_CODE:t.complete(r.buildErrorConfig(o.WX_ERR_CODE,e.errMsg));break;case o.WX_OK_CODE:var i=e.data;0===i.status?t.complete(i):t.complete(r.buildErrorConfig(i.status,i.message));break;default:t.complete(r.buildErrorConfig(o.SYSTEM_ERR,o.SYSTEM_ERR_MSG))}},e},locationProcess:function(t,e,n,r){var i=this;if(n=n||function(e){e.statusCode=o.WX_ERR_CODE,t.fail(i.buildErrorConfig(o.WX_ERR_CODE,e.errMsg))},r=r||function(e){e.statusCode==o.WX_ERR_CODE&&t.complete(i.buildErrorConfig(o.WX_ERR_CODE,e.errMsg))},t.location){if(i.checkLocation(t)){var a=v.getLocationParam(t.location);e(a)}}else i.getWXLocation(e,n,r)}},y=function(){"use strict";function t(e){if(n(this,t),!e.key)throw Error("key值不能为空");this.key=e.key}return i(t,[{key:"search",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),v.checkKeyword(t)){var n={keyword:t.keyword,orderby:t.orderby||"_distance",page_size:t.page_size||10,page_index:t.page_index||1,output:"json",key:e.key};t.address_format&&(n.address_format=t.address_format),t.filter&&(n.filter=t.filter);var r=t.distance||"1000",i=t.auto_extend||1,o=null,a=null;t.region&&(o=t.region),t.rectangle&&(a=t.rectangle);var l=function(e){o&&!a?(n.boundary="region("+o+","+i+","+e.latitude+","+e.longitude+")",t.sig&&(n.sig=v.getSig(n,t.sig,"search"))):a&&!o?(n.boundary="rectangle("+a+")",t.sig&&(n.sig=v.getSig(n,t.sig,"search"))):(n.boundary="nearby("+e.latitude+","+e.longitude+","+r+","+i+")",t.sig&&(n.sig=v.getSig(n,t.sig,"search"))),wx.request(v.buildWxRequestConfig(t,{url:s,data:n},"search"))};v.locationProcess(t,l)}}},{key:"getSuggestion",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),v.checkKeyword(t)){var n={keyword:t.keyword,region:t.region||"全国",region_fix:t.region_fix||0,policy:t.policy||0,page_size:t.page_size||10,page_index:t.page_index||1,get_subpois:t.get_subpois||0,output:"json",key:e.key};if(t.address_format&&(n.address_format=t.address_format),t.filter&&(n.filter=t.filter),t.location){var r=function(e){n.location=e.latitude+","+e.longitude,t.sig&&(n.sig=v.getSig(n,t.sig,"suggest")),wx.request(v.buildWxRequestConfig(t,{url:l,data:n},"suggest"))};v.locationProcess(t,r)}else t.sig&&(n.sig=v.getSig(n,t.sig,"suggest")),wx.request(v.buildWxRequestConfig(t,{url:l,data:n},"suggest"))}}},{key:"reverseGeocoder",value:function(t){var e=this;t=t||{},v.polyfillParam(t);var n={coord_type:t.coord_type||5,get_poi:t.get_poi||0,output:"json",key:e.key};t.poi_options&&(n.poi_options=t.poi_options);var r=function(e){n.location=e.latitude+","+e.longitude,t.sig&&(n.sig=v.getSig(n,t.sig,"reverseGeocoder")),wx.request(v.buildWxRequestConfig(t,{url:c,data:n},"reverseGeocoder"))};v.locationProcess(t,r)}},{key:"geocoder",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),!v.checkParamKeyEmpty(t,"address")){var n={address:t.address,output:"json",key:e.key};t.region&&(n.region=t.region),t.sig&&(n.sig=v.getSig(n,t.sig,"geocoder")),wx.request(v.buildWxRequestConfig(t,{url:c,data:n},"geocoder"))}}},{key:"getCityList",value:function(t){var e=this;t=t||{},v.polyfillParam(t);var n={output:"json",key:e.key};t.sig&&(n.sig=v.getSig(n,t.sig,"getCityList")),wx.request(v.buildWxRequestConfig(t,{url:u,data:n},"getCityList"))}},{key:"getDistrictByCityId",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),!v.checkParamKeyEmpty(t,"id")){var n={id:t.id||"",output:"json",key:e.key};t.sig&&(n.sig=v.getSig(n,t.sig,"getDistrictByCityId")),wx.request(v.buildWxRequestConfig(t,{url:h,data:n},"getDistrictByCityId"))}}},{key:"calculateDistance",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),!v.checkParamKeyEmpty(t,"to")){var n={mode:t.mode||"walking",to:v.location2query(t.to),output:"json",key:e.key};if(t.from&&(t.location=t.from),"straight"==n.mode){var r=function(e){for(var r=v.getEndLocation(n.to),i={message:"query ok",result:{elements:[]},status:0},o=0;o<r.length;o++)i.result.elements.push({distance:v.getDistance(e.latitude,e.longitude,r[o].lat,r[o].lng),duration:0,from:{lat:e.latitude,lng:e.longitude},to:{lat:r[o].lat,lng:r[o].lng}});var a=i.result.elements,s=[];for(o=0;o<a.length;o++)s.push(a[o].distance);return t.success(i,{calculateResult:a,distanceResult:s})};v.locationProcess(t,r)}else{r=function(e){n.from=e.latitude+","+e.longitude,t.sig&&(n.sig=v.getSig(n,t.sig,"calculateDistance")),wx.request(v.buildWxRequestConfig(t,{url:f,data:n},"calculateDistance"))};v.locationProcess(t,r)}}}},{key:"direction",value:function(t){var e=this;if(t=t||{},v.polyfillParam(t),!v.checkParamKeyEmpty(t,"to")){var n={output:"json",key:e.key};"string"==typeof t.to?n.to=t.to:n.to=t.to.latitude+","+t.to.longitude;var r=null;t.mode=t.mode||p.driving,r=d+t.mode,t.from&&(t.location=t.from),t.mode==p.driving&&(t.from_poi&&(n.from_poi=t.from_poi),t.heading&&(n.heading=t.heading),t.speed&&(n.speed=t.speed),t.accuracy&&(n.accuracy=t.accuracy),t.road_type&&(n.road_type=t.road_type),t.to_poi&&(n.to_poi=t.to_poi),t.from_track&&(n.from_track=t.from_track),t.waypoints&&(n.waypoints=t.waypoints),t.policy&&(n.policy=t.policy),t.plate_number&&(n.plate_number=t.plate_number)),t.mode==p.transit&&(t.departure_time&&(n.departure_time=t.departure_time),t.policy&&(n.policy=t.policy));var i=function(e){n.from=e.latitude+","+e.longitude,t.sig&&(n.sig=v.getSig(n,t.sig,"direction",t.mode)),wx.request(v.buildWxRequestConfig(t,{url:r,data:n},"direction"))};v.locationProcess(t,i)}}}]),t}();t.exports=y},"059d":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("8eba")),i=o(n("e32c"));function o(t){return t&&t.__esModule?t:{default:t}}var a=n("0271"),s=new a({key:"SVKBZ-P6QCJ-NH7F7-KOPJW-CBNEV-FUBRT"});function l(e,n){return new Promise((function(r,i){s.calculateDistance({mode:"straight",to:[{latitude:n.latitude,longitude:n.longitude}],from:{latitude:e.latitude,longitude:e.longitude},success:function(t){r(t)},fail:function(e){i(e),t.showToast({title:e.message,icon:"none",duration:3e3})}})}))}function c(t,e){if(null==t||""==t||null==e||""==e)return[t,e];var n=52.35987755982988,r=parseFloat(t)-.0065,i=parseFloat(e)-.006,o=Math.sqrt(r*r+i*i)-2e-5*Math.sin(i*n),a=Math.atan2(i,r)-3e-6*Math.cos(r*n);t=o*Math.cos(a),e=o*Math.sin(a);return[t,e]}var u=function(){t.onNetworkStatusChange((function(e){r.default.mutations.isConnect(e.isConnected),e.isConnected||t.showToast({title:"网络未连接",icon:"none"})}))},h=function(t,e,n){t=new Date(t)||new Date,e=e||"YYYY/MM/DD",n=24*n*60*60*1e3||0,t=new Date(t.getTime()+n);var r=t.getFullYear(),i=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),a=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),l=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return e.replace("YYYY",r).replace("MM",i).replace("DD",o).replace("hh",a).replace("mm",s).replace("ss",l)},f=function(t,e){e=e>0&&e<=20?e:2;var n="";t<0&&(t=Math.abs(t),n="-"),t=parseFloat((t+"").replace(/[^\d\.-]/g,"")).toFixed(e)+"";for(var r=t.split(".")[0].split("").reverse(),i=t.split(".")[1],o="",a=0;a<r.length;a++)o+=r[a]+((a+1)%3==0&&a+1!=r.length?",":"");return n+o.split("").reverse().join("")+"."+i};function d(e,n){t[e]({url:n,success:function(t){p({intoRoute:n})}})}function p(t){var e=getCurrentPages(),n=e.length;if(n){var o=e[n-1],a="/"+o.route;t?(t.outtoRoute=""===t.outtoRoute||t.outtoRoute?t.outtoRoute:a,t.intoRoute=t.intoRoute?t.intoRoute.split("?")[0]:""):(t={},t.outtoRoute=a,t.intoRoute=n>1?"/"+e[n-2].route:"/pages/index/index")}t.visitChannels=r.default.state.visitChannels,i.default.$webGet("WeChatPushAPI/Member/AddUserBehaviorNew",t).then((function(t){}))}var g={netChange:u,cutDate:h,fmoney:f,toNextRoute:d,addUserBehavior:p,calculateDistance:l,bMapToQQMap:c};e.default=g}).call(this,n("543d")["default"])},"2f62":function(t,e,n){"use strict";n.r(e),function(t){
/*!
* vuex v3.4.0
* (c) 2020 Evan You
* @license MIT
*/
function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"Store",(function(){return v})),n.d(e,"createNamespacedHelpers",(function(){return E})),n.d(e,"install",(function(){return O})),n.d(e,"mapActions",(function(){return $})),n.d(e,"mapGetters",(function(){return L})),n.d(e,"mapMutations",(function(){return R})),n.d(e,"mapState",(function(){return D}));var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function l(t){return null!==t&&"object"===typeof t}function c(t){return t&&"function"===typeof t.then}function u(t,e){return function(){return t(e)}}var h=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(t,e){this._children[t]=e},h.prototype.removeChild=function(t){delete this._children[t]},h.prototype.getChild=function(t){return this._children[t]},h.prototype.hasChild=function(t){return t in this._children},h.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},h.prototype.forEachChild=function(t){s(this._children,t)},h.prototype.forEachGetter=function(t){this._rawModule.getters&&s(this._rawModule.getters,t)},h.prototype.forEachAction=function(t){this._rawModule.actions&&s(this._rawModule.actions,t)},h.prototype.forEachMutation=function(t){this._rawModule.mutations&&s(this._rawModule.mutations,t)},Object.defineProperties(h.prototype,f);var d=function(t){this.register([],t,!1)};function p(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;p(t.concat(r),e.getChild(r),n.modules[r])}}d.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},d.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},d.prototype.update=function(t){p([],this.root,t)},d.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new h(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&s(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},d.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)},d.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return e.hasChild(n)};var g;var v=function(t){var e=this;void 0===t&&(t={}),!g&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return l.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;b(this,c,[],this._modules.root),_(this,c),n.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:g.config.devtools;u&&a(this)},y={state:{configurable:!0}};function x(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;b(t,n,[],t._modules.root,!0),_(t,n,e)}function _(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};s(i,(function(e,n){o[n]=u(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,t._vm=new g({data:{$$state:e},computed:o}),g.config.silent=a,t.strict&&M(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),g.nextTick((function(){return r.$destroy()})))}function b(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=k(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){g.set(s,l,r.state)}))}var c=r.context=w(t,a,n);r.forEachMutation((function(e,n){var r=a+n;S(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;P(t,r,i,c)})),r.forEachGetter((function(e,n){var r=a+n;T(t,r,e,c)})),r.forEachChild((function(r,o){b(t,e,n.concat(o),r,i)}))}function w(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=C(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=C(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return A(t,e)}},state:{get:function(){return k(t.state,n)}}}),i}function A(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function S(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function P(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return c(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function T(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function M(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function k(t,e){return e.reduce((function(t,e){return t[e]}),t)}function C(t,e,n){return l(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function O(t){g&&t===g||(g=t,r(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},v.prototype.commit=function(t,e,n){var r=this,i=C(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},v.prototype.dispatch=function(t,e){var n=this,r=C(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(c){0}e(t)}))}))}},v.prototype.subscribe=function(t,e){return x(t,this._subscribers,e)},v.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return x(n,this._actionSubscribers,e)},v.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},v.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},v.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),b(this,this.state,t,this._modules.get(t),n.preserveState),_(this,this.state)},v.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=k(e.state,t.slice(0,-1));g.delete(n,t[t.length-1])})),m(this)},v.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},v.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},v.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(v.prototype,y);var D=I((function(t,e){var n={};return F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=z(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),R=I((function(t,e){var n={};return F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=z(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),L=I((function(t,e){var n={};return F(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||z(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),$=I((function(t,e){var n={};return F(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=z(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),E=function(t){return{mapState:D.bind(null,t),mapGetters:L.bind(null,t),mapMutations:R.bind(null,t),mapActions:$.bind(null,t)}};function F(t){return j(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function j(t){return Array.isArray(t)||l(t)}function I(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function z(t,e,n){var r=t._modulesNamespaceMap[n];return r}var W={Store:v,install:O,version:"3.4.0",mapState:D,mapMutations:R,mapGetters:L,mapActions:$,createNamespacedHelpers:E};e["default"]=W}.call(this,n("c8ba"))},"3b1e":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("8eba"));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){var e=t.getSystemInfoSync();return{APPGuid:"9880519c-351d-4a05-b6ef-80db0286a7ab",SourcePlatform:"minProgram",brand:e.brand||"",model:encodeURIComponent(e.model),os_version:e.system}}(),a={request:function(e,n,i,a){var s=new Promise((function(s,l){r.default.state.isLoading=!0;i.provinceCode=r.default.state.userData.ProvinceCode||"330000",i.WeChat_AppId="wxa99ef047735c031e",i.WeChat_MiniProToken=r.default.state.userData.WeChat_MiniProToken||"",a?i.WeChatAppId="wxa99ef047735c031e":(i.time=(new Date).getTime(),i=Object.assign(i,o)),i.memberShipId||(i.memberShipId=r.default.state.userData.Membership_Id||"");var c={url:n,data:i,method:e};"POST"==e&&(c.header={"content-type":"application/x-www-form-urlencoded;charset=utf-8"}),c.success=function(e){!e||200!==e.statusCode&&304!==e.statusCode&&400!==e.statusCode?(console.log(e),l(e.data)):e.data&&("999"!=e.data.ResultCode&&void 0!=e.data.ResultCode||"999"!=e.data.Result_Code&&void 0!=e.data.Result_Code)?s(e.data):"object"==typeof e.data?(s(e.data),console.log("错误:"+(e.data.Result_Code||e.data.ResultCode)+","+(e.data.Result_Desc||e.data.ResultDesc))):(s({ResultCode:999,Result_Code:999}),t.showToast({title:e.data||"服务器错误,请稍后重试",icon:"none"}))},c.fail=function(t){s({data:{error:"网络连接失败,请重试"}}),l("网络连接失败,请重试")},c.complete=function(){r.default.state.isLoading=!1},t.request(c)})).catch((function(e,n){t.showToast({title:e,icon:"none"})}));return s}};e.default=a}).call(this,n("543d")["default"])},"40da":function(t,e){},"543d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createApp=Me,e.createComponent=ze,e.createPage=Ie,e.default=void 0;var r=i(n("66fd"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){return u(t)||c(t,e)||p(t,e)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function u(t){if(Array.isArray(t))return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return v(t)||g(t)||p(t)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t,e){if(t){if("string"===typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function g(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function v(t){if(Array.isArray(t))return y(t)}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var x=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function _(t){return"function"===typeof t}function b(t){return"string"===typeof t}function w(t){return"[object Object]"===x.call(t)}function A(t,e){return m.call(t,e)}function S(){}function P(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var T=/-(\w)/g,M=P((function(t){return t.replace(T,(function(t,e){return e?e.toUpperCase():""}))})),k=["invoke","success","fail","complete","returnValue"],C={},O={};function D(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?R(n):n}function R(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function L(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}function $(t,e){Object.keys(e).forEach((function(n){-1!==k.indexOf(n)&&_(e[n])&&(t[n]=D(t[n],e[n]))}))}function E(t,e){t&&e&&Object.keys(e).forEach((function(n){-1!==k.indexOf(n)&&_(e[n])&&L(t[n],e[n])}))}function F(t,e){"string"===typeof t&&w(e)?$(O[t]||(O[t]={}),e):w(t)&&$(C,t)}function j(t,e){"string"===typeof t?w(e)?E(O[t],e):delete O[t]:w(t)&&E(C,t)}function I(t){return function(e){return t(e)||e}}function z(t){return!!t&&("object"===typeof t||"function"===typeof t)&&"function"===typeof t.then}function W(t,e){for(var n=!1,r=0;r<t.length;r++){var i=t[r];if(n)n=Promise.resolve(I(i));else{var o=i(e);if(z(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(t){return t(e)}}}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(t[n])){var r=e[n];e[n]=function(e){W(t[n],e).then((function(t){return _(r)&&r(t)||t}))}}})),e}function B(t,e){var n=[];Array.isArray(C.returnValue)&&n.push.apply(n,f(C.returnValue));var r=O[t];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,f(r.returnValue)),n.forEach((function(t){e=t(e)||e})),e}function U(t){var e=Object.create(null);Object.keys(C).forEach((function(t){"returnValue"!==t&&(e[t]=C[t].slice())}));var n=O[t];return n&&Object.keys(n).forEach((function(t){"returnValue"!==t&&(e[t]=(e[t]||[]).concat(n[t]))})),e}function G(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=U(t);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=W(a.invoke,n);return s.then((function(t){return e.apply(void 0,[N(a,t)].concat(i))}))}return e.apply(void 0,[N(a,n)].concat(i))}return e.apply(void 0,[n].concat(i))}var H={returnValue:function(t){return z(t)?t.then((function(t){return t[1]})).catch((function(t){return t[0]})):t}},V=/^\$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,q=/^create|Manager$/,X=["createBLEConnection"],K=["createBLEConnection"],Y=/^on|^off/;function J(t){return q.test(t)&&-1===X.indexOf(t)}function Q(t){return V.test(t)&&-1===K.indexOf(t)}function Z(t){return Y.test(t)&&"onPush"!==t}function tt(t){return t.then((function(t){return[null,t]})).catch((function(t){return[t]}))}function et(t){return!(J(t)||Q(t)||Z(t))}function nt(t,e){return et(t)?function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return _(n.success)||_(n.fail)||_(n.complete)?B(t,G.apply(void 0,[t,e,n].concat(i))):B(t,tt(new Promise((function(r,o){G.apply(void 0,[t,e,Object.assign({},n,{success:r,fail:o})].concat(i))}))))}:e}Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))});var rt=1e-4,it=750,ot=!1,at=0,st=0;function lt(){var t=wx.getSystemInfoSync(),e=t.platform,n=t.pixelRatio,r=t.windowWidth;at=r,st=n,ot="ios"===e}function ct(t,e){if(0===at&&lt(),t=Number(t),0===t)return 0;var n=t/it*(e||at);return n<0&&(n=-n),n=Math.floor(n+rt),0===n&&(n=1!==st&&ot?.5:1),t<0?-n:n}var ut={promiseInterceptor:H},ht=Object.freeze({__proto__:null,upx2px:ct,addInterceptor:F,removeInterceptor:j,interceptors:ut});function ft(t){var e=getCurrentPages(),n=e.length;while(n--){var r=e[n];if(r.$page&&r.$page.fullPath===t)return n}return-1}var dt={name:function(t){return"back"===t.exists&&t.delta?"navigateBack":"redirectTo"},args:function(t){if("back"===t.exists&&t.url){var e=ft(t.url);if(-1!==e){var n=getCurrentPages().length-1-e;n>0&&(t.delta=n)}}}},pt={args:function(t){var e=parseInt(t.current);if(!isNaN(e)){var n=t.urls;if(Array.isArray(n)){var r=n.length;if(r)return e<0?e=0:e>=r&&(e=r-1),e>0?(t.current=n[e],t.urls=n.filter((function(t,r){return!(r<e)||t!==n[e]}))):t.current=n[0],{indicator:!1,loop:!1}}}}};function gt(t){if(t.safeArea){var e=t.safeArea;t.safeAreaInsets={top:e.top,left:e.left,right:t.windowWidth-e.right,bottom:t.windowHeight-e.bottom}}}var vt={redirectTo:dt,previewImage:pt,getSystemInfo:{returnValue:gt},getSystemInfoSync:{returnValue:gt}},yt=["vibrate","preloadPage","unPreloadPage","loadSubPackage"],xt=[],mt=["success","fail","cancel","complete"];function _t(t,e,n){return function(r){return e(wt(t,r,n))}}function bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(e)){var o=!0===i?e:{};for(var a in _(n)&&(n=n(e,o)||{}),e)if(A(n,a)){var s=n[a];_(s)&&(s=s(e[a],e,o)),s?b(s)?o[s]=e[a]:w(s)&&(o[s.name?s.name:a]=s.value):console.warn("微信小程序 ".concat(t,"暂不支持").concat(a))}else-1!==mt.indexOf(a)?_(e[a])&&(o[a]=_t(t,e[a],r)):i||(o[a]=e[a]);return o}return _(e)&&(e=_t(t,e,r)),e}function wt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(vt.returnValue)&&(e=vt.returnValue(t,e)),bt(t,e,n,{},r)}function At(t,e){if(A(vt,t)){var n=vt[t];return n?function(e,r){var i=n;_(n)&&(i=n(e)),e=bt(t,e,i.args,i.returnValue);var o=[e];"undefined"!==typeof r&&o.push(r),_(i.name)?t=i.name(e):b(i.name)&&(t=i.name);var a=wx[t].apply(wx,o);return Q(t)?wt(t,a,i.returnValue,J(t)):a}:function(){console.error("微信小程序 暂不支持".concat(t))}}return e}var St=Object.create(null),Pt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function Tt(t){return function(e){var n=e.fail,r=e.complete,i={errMsg:"".concat(t,":fail:暂不支持 ").concat(t," 方法")};_(n)&&n(i),_(r)&&r(i)}}Pt.forEach((function(t){St[t]=Tt(t)}));var Mt={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function kt(t){var e=t.service,n=t.success,r=t.fail,i=t.complete,o=!1;Mt[e]?(o={errMsg:"getProvider:ok",service:e,provider:Mt[e]},_(n)&&n(o)):(o={errMsg:"getProvider:fail:服务["+e+"]不存在"},_(r)&&r(o)),_(i)&&i(o)}var Ct=Object.freeze({__proto__:null,getProvider:kt}),Ot=function(){var t;return function(){return t||(t=new r.default),t}}();function Dt(t,e,n){return t[e].apply(t,n)}function Rt(){return Dt(Ot(),"$on",Array.prototype.slice.call(arguments))}function Lt(){return Dt(Ot(),"$off",Array.prototype.slice.call(arguments))}function $t(){return Dt(Ot(),"$once",Array.prototype.slice.call(arguments))}function Et(){return Dt(Ot(),"$emit",Array.prototype.slice.call(arguments))}var Ft=Object.freeze({__proto__:null,$on:Rt,$off:Lt,$once:$t,$emit:Et}),jt=Object.freeze({__proto__:null}),It=Page,zt=Component,Wt=/:/g,Nt=P((function(t){return M(t.replace(Wt,"-"))}));function Bt(t){if(wx.canIUse("nextTick")){var e=t.triggerEvent;t.triggerEvent=function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.apply(t,[Nt(n)].concat(i))}}}function Ut(t,e){var n=e[t];e[t]=n?function(){Bt(this);for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}:function(){Bt(this)}}Page=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ut("onLoad",t),It(t)},Component=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ut("created",t),zt(t)};var Gt=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function Ht(t,e){var n=t.$mp[t.mpType];e.forEach((function(e){A(n,e)&&(t[e]=n[e])}))}function Vt(t,e){if(!e)return!0;if(r.default.options&&Array.isArray(r.default.options[t]))return!0;if(e=e.default||e,_(e))return!!_(e.extendOptions[t])||!!(e.super&&e.super.options&&Array.isArray(e.super.options[t]));if(_(e[t]))return!0;var n=e.mixins;return Array.isArray(n)?!!n.find((function(e){return Vt(t,e)})):void 0}function qt(t,e,n){e.forEach((function(e){Vt(e,n)&&(t[e]=function(t){return this.$vm&&this.$vm.__call_hook(e,t)})}))}function Xt(t,e){var n;return e=e.default||e,n=_(e)?e:t.extend(e),e=n.options,[n,e]}function Kt(t,e){if(Array.isArray(e)&&e.length){var n=Object.create(null);e.forEach((function(t){n[t]=!0})),t.$scopedSlots=t.$slots=n}}function Yt(t,e){t=(t||"").split(",");var n=t.length;1===n?e._$vueId=t[0]:2===n&&(e._$vueId=t[0],e._$vuePid=t[1])}function Jt(t,e){var n=t.data||{},r=t.methods||{};if("function"===typeof n)try{n=n.call(e)}catch(i){Object({VUE_APP_NAME:"yxcl_wechat",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return w(n)||(n={}),Object.keys(r).forEach((function(t){-1!==e.__lifecycle_hooks__.indexOf(t)||A(n,t)||(n[t]=r[t])})),n}var Qt=[String,Number,Boolean,Object,Array,null];function Zt(t){return function(e,n){this.$vm&&(this.$vm[t]=e)}}function te(t,e){var n=t.behaviors,r=t.extends,i=t.mixins,o=t.props;o||(t.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(t){a.push(t.replace("uni://","wx".concat("://"))),"uni://form-field"===t&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(r)&&r.props&&a.push(e({properties:ne(r.props,!0)})),Array.isArray(i)&&i.forEach((function(t){w(t)&&t.props&&a.push(e({properties:ne(t.props,!0)}))})),a}function ee(t,e,n,r){return Array.isArray(e)&&1===e.length?e[0]:e}function ne(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};return e||(n.vueId={type:String,value:""},n.generic={type:Object,value:null},n.vueSlots={type:null,value:[],observer:function(t,e){var n=Object.create(null);t.forEach((function(t){n[t]=!0})),this.setData({$slots:n})}}),Array.isArray(t)?t.forEach((function(t){n[t]={type:null,observer:Zt(t)}})):w(t)&&Object.keys(t).forEach((function(e){var r=t[e];if(w(r)){var i=r.default;_(i)&&(i=i()),r.type=ee(e,r.type),n[e]={type:-1!==Qt.indexOf(r.type)?r.type:null,value:i,observer:Zt(e)}}else{var o=ee(e,r);n[e]={type:-1!==Qt.indexOf(o)?o:null,observer:Zt(e)}}})),n}function re(t){try{t.mp=JSON.parse(JSON.stringify(t))}catch(e){}return t.stopPropagation=S,t.preventDefault=S,t.target=t.target||{},A(t,"detail")||(t.detail={}),A(t,"markerId")&&(t.detail="object"===typeof t.detail?t.detail:{},t.detail.markerId=t.markerId),w(t.detail)&&(t.target=Object.assign({},t.target,t.detail)),t}function ie(t,e){var n=t;return e.forEach((function(e){var r=e[0],i=e[2];if(r||"undefined"!==typeof i){var o,a=e[1],s=e[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):t.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(e){return t.__get_value(a,e)===i})):w(o)?n=Object.keys(o).find((function(e){return t.__get_value(a,o[e])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=t.__get_value(s,n))}})),n}function oe(t,e,n){var r={};return Array.isArray(e)&&e.length&&e.forEach((function(e,i){"string"===typeof e?e?"$event"===e?r["$"+i]=n:"arguments"===e?n.detail&&n.detail.__args__?r["$"+i]=n.detail.__args__:r["$"+i]=[n]:0===e.indexOf("$event.")?r["$"+i]=t.__get_value(e.replace("$event.",""),n):r["$"+i]=t.__get_value(e):r["$"+i]=t:r["$"+i]=ie(t,e)})),r}function ae(t){for(var e={},n=1;n<t.length;n++){var r=t[n];e[r[0]]=r[1]}return e}function se(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1;if(i&&(a=e.currentTarget&&e.currentTarget.dataset&&"wx"===e.currentTarget.dataset.comType,!n.length))return a?[e]:e.detail.__args__||e.detail;var s=oe(t,r,e),l=[];return n.forEach((function(t){"$event"===t?"__set_model"!==o||i?i&&!a?l.push(e.detail.__args__[0]):l.push(e):l.push(e.target.value):Array.isArray(t)&&"o"===t[0]?l.push(ae(t)):"string"===typeof t&&A(s,t)?l.push(s[t]):l.push(t)})),l}var le="~",ce="^";function ue(t,e){return t===e||"regionchange"===e&&("begin"===t||"end"===t)}function he(t){var e=t.$parent;while(e&&e.$parent&&(e.$options.generic||e.$parent.$options.generic||e.$scope._$vuePid))e=e.$parent;return e&&e.$parent}function fe(t){var e=this;t=re(t);var n=(t.currentTarget||t.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=t.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s=r.charAt(0)===ce;r=s?r.slice(1):r;var l=r.charAt(0)===le;r=l?r.slice(1):r,a&&ue(i,r)&&a.forEach((function(n){var r=n[0];if(r){var i=e.$vm;if(i.$options.generic&&(i=he(i)||i),"$emit"===r)return void i.$emit.apply(i,se(e.$vm,t,n[1],n[2],s,r));var a=i[r];if(!_(a))throw new Error(" _vm.".concat(r," is not a function"));if(l){if(a.once)return;a.once=!0}var c=se(e.$vm,t,n[1],n[2],s,r);o.push(a.apply(i,(Array.isArray(c)?c:[]).concat([,,,,,,,,,,t])))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var de=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function pe(t,e){var n=e.mocks,i=e.initRefs;t.$options.store&&(r.default.prototype.$store=t.$options.store),r.default.prototype.mpHost="mp-weixin",r.default.mixin({beforeCreate:function(){this.$options.mpType&&(this.mpType=this.$options.mpType,this.$mp=h({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"app"!==this.mpType&&(i(this),Ht(this,n)))}});var o={onLaunch:function(e){this.$vm||(wx.canIUse("nextTick")||console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",e),this.$vm.__call_hook("onLaunch",e))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(t){o[t]=a[t]})),qt(o,de),o}var ge=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function ve(t,e){for(var n,r=t.$children,i=r.length-1;i>=0;i--){var o=r[i];if(o.$scope._$vueId===e)return o}for(var a=r.length-1;a>=0;a--)if(n=ve(r[a],e),n)return n}function ye(t){return Behavior(t)}function xe(){return!!this.route}function me(t){this.triggerEvent("__l",t)}function _e(t,e,n){var r=t.selectAllComponents(e);r.forEach((function(t){var r=t.dataset.ref;n[r]=t.$vm||t,"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){_e(t,e,n)}))}))}function be(t){var e=t.$scope;Object.defineProperty(t,"$refs",{get:function(){var t={};_e(e,".vue-ref",t);var n=e.selectAllComponents(".vue-ref-in-for");return n.forEach((function(e){var n=e.dataset.ref;t[n]||(t[n]=[]),t[n].push(e.$vm||e)})),t}})}function we(t){var e,n=t.detail||t.value,r=n.vuePid,i=n.vueOptions;r&&(e=ve(this.$vm,r)),e||(e=this.$vm),i.parent=e}function Ae(t){return pe(t,{mocks:ge,initRefs:be})}var Se={},Pe=[];function Te(t){if(t){var e=Se[t];return delete Se[t],e}return Pe.shift()}function Me(t){r.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=r.default.prototype.__call_hook;return r.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=Te(n.__id__),delete n.__id__),e.call(this,t,n)},App(Ae(t)),t}var ke=/[!'()*]/g,Ce=function(t){return"%"+t.charCodeAt(0).toString(16)},Oe=/%2C/g,De=function(t){return encodeURIComponent(t).replace(ke,Ce).replace(Oe,",")};function Re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:De,n=t?Object.keys(t).map((function(n){var r=t[n];if(void 0===r)return"";if(null===r)return e(n);if(Array.isArray(r)){var i=[];return r.forEach((function(t){void 0!==t&&(null===t?i.push(e(n)):i.push(e(n)+"="+e(t)))})),i.join("&")}return e(n)+"="+e(r)})).filter((function(t){return t.length>0})).join("&"):null;return n?"?".concat(n):""}function Le(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.isPage,i=e.initRelation,o=Xt(r.default,t),l=s(o,2),c=l[0],u=l[1],h=a({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(h,u["mp-weixin"].options);var f={options:h,data:Jt(u,r.default.prototype),behaviors:te(u,ye),properties:ne(u.props,!1,u.__file),lifetimes:{attached:function(){var t=this.properties,e={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:t};Yt(t.vueId,this),i.call(this,{vuePid:this._$vuePid,vueOptions:e}),this.$vm=new c(e),Kt(this.$vm,t.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(t){this.$vm&&this.$vm.__call_hook("onPageShow",t)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(t){this.$vm&&this.$vm.__call_hook("onPageResize",t)}},methods:{__l:we,__e:fe}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(t){f.methods[t]=function(e){return this.$vm[t](e)}})),n?f:[f,c]}function $e(t){return Le(t,{isPage:xe,initRelation:me})}var Ee=["onShow","onHide","onUnload"];function Fe(t,e){e.isPage,e.initRelation;var n=$e(t);return qt(n.methods,Ee,t),n.methods.onLoad=function(t){this.options=t;var e=Object.assign({},t);delete e.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Re(e)},this.$vm.$mp.query=t,this.$vm.__call_hook("onLoad",t)},n}function je(t){return Fe(t,{isPage:xe,initRelation:me})}function Ie(t){return Component(je(t))}function ze(t){return Component($e(t))}Ee.push.apply(Ee,Gt),yt.forEach((function(t){vt[t]=!1})),xt.forEach((function(t){var e=vt[t]&&vt[t].name?vt[t].name:t;wx.canIUse(e)||(vt[t]=!1)}));var We={};"undefined"!==typeof Proxy?We=new Proxy({},{get:function(t,e){return A(t,e)?t[e]:ht[e]?ht[e]:jt[e]?nt(e,jt[e]):Ct[e]?nt(e,Ct[e]):St[e]?nt(e,St[e]):Ft[e]?Ft[e]:A(wx,e)||A(vt,e)?nt(e,At(e,wx[e])):void 0},set:function(t,e,n){return t[e]=n,!0}}):(Object.keys(ht).forEach((function(t){We[t]=ht[t]})),Object.keys(St).forEach((function(t){We[t]=nt(t,St[t])})),Object.keys(Ct).forEach((function(t){We[t]=nt(t,St[t])})),Object.keys(Ft).forEach((function(t){We[t]=Ft[t]})),Object.keys(jt).forEach((function(t){We[t]=nt(t,jt[t])})),Object.keys(wx).forEach((function(t){(A(wx,t)||A(vt,t))&&(We[t]=nt(t,At(t,wx[t])))}))),wx.createApp=Me,wx.createPage=Ie,wx.createComponent=ze;var Ne=We,Be=Ne;e.default=Be},"66fd":function(t,e,n){"use strict";n.r(e),function(t){
/*!
* Vue.js v2.6.11
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function h(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function x(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function _(t,e){return m.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,A=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),P=/\B([A-Z])/g,T=b((function(t){return t.replace(P,"-$1").toLowerCase()}));function M(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function k(t,e){return t.bind(e)}var C=Function.prototype.bind?k:M;function O(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function D(t,e){for(var n in e)t[n]=e[n];return t}function R(t){for(var e={},n=0;n<t.length;n++)t[n]&&D(e,t[n]);return e}function L(t,e,n){}var $=function(t,e,n){return!1},E=function(t){return t};function F(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return F(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return F(t[n],e[n])}))}catch(c){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(F(t[n],e))return n;return-1}function I(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var z=["component","directive","filter"],W=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],N={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:$,isReservedAttr:$,isUnknownElement:$,getTagNamespace:L,parsePlatformTagName:E,mustUseProp:$,async:!0,_lifecycleHooks:W},B=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function G(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H=new RegExp("[^"+B.source+".$_\\d]");function V(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var q,X="__proto__"in{},K="undefined"!==typeof window,Y="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Y&&WXEnvironment.platform.toLowerCase(),Q=K&&window.navigator.userAgent.toLowerCase(),Z=Q&&/msie|trident/.test(Q),tt=(Q&&Q.indexOf("msie 9.0"),Q&&Q.indexOf("edge/")>0),et=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),nt=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/),{}.watch);if(K)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){}}),window.addEventListener("test-passive",null,rt)}catch(ni){}var it=function(){return void 0===q&&(q=!K&&!Y&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),q},ot=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"===typeof t&&/native code/.test(t.toString())}var st,lt="undefined"!==typeof Symbol&&at(Symbol)&&"undefined"!==typeof Reflect&&at(Reflect.ownKeys);st="undefined"!==typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ct=L,ut=0,ht=function(){this.id=ut++,this.subs=[]};function ft(t){ht.SharedObject.targetStack.push(t),ht.SharedObject.target=t,ht.target=t}function dt(){ht.SharedObject.targetStack.pop(),ht.SharedObject.target=ht.SharedObject.targetStack[ht.SharedObject.targetStack.length-1],ht.target=ht.SharedObject.target}ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){x(this.subs,t)},ht.prototype.depend=function(){ht.SharedObject.target&&ht.SharedObject.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},ht.SharedObject={},ht.SharedObject.target=null,ht.SharedObject.targetStack=[];var pt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},gt={child:{configurable:!0}};gt.child.get=function(){return this.componentInstance},Object.defineProperties(pt.prototype,gt);var vt=function(t){void 0===t&&(t="");var e=new pt;return e.text=t,e.isComment=!0,e};function yt(t){return new pt(void 0,void 0,void 0,String(t))}function xt(t){var e=new pt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var mt=Array.prototype,_t=Object.create(mt),bt=["push","pop","shift","unshift","splice","sort","reverse"];bt.forEach((function(t){var e=mt[t];G(_t,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var wt=Object.getOwnPropertyNames(_t),At=!0;function St(t){At=t}var Pt=function(t){this.value=t,this.dep=new ht,this.vmCount=0,G(t,"__ob__",this),Array.isArray(t)?(X?t.push!==t.__proto__.push?Mt(t,_t,wt):Tt(t,_t):Mt(t,_t,wt),this.observeArray(t)):this.walk(t)};function Tt(t,e){t.__proto__=e}function Mt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];G(t,o,e[o])}}function kt(t,e){var n;if(l(t)&&!(t instanceof pt))return _(t,"__ob__")&&t.__ob__ instanceof Pt?n=t.__ob__:At&&!it()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Pt(t)),e&&n&&n.vmCount++,n}function Ct(t,e,n,r,i){var o=new ht,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var c=!i&&kt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return ht.SharedObject.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Rt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!l||(l?l.call(t,e):n=e,c=!i&&kt(e),o.notify())}})}}function Ot(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Ct(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Dt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function Rt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Rt(e)}Pt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Ct(t,e[n])},Pt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)kt(t[e])};var Lt=N.optionMergeStrategies;function $t(t,e){if(!e)return t;for(var n,r,i,o=lt?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],_(t,n)?r!==i&&u(r)&&u(i)&&$t(r,i):Ot(t,n,i));return t}function Et(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?$t(r,i):i}:e?t?function(){return $t("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Ft(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?jt(n):n}function jt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function It(t,e,n,r){var i=Object.create(t||null);return e?D(i,e):i}Lt.data=function(t,e,n){return n?Et(t,e,n):e&&"function"!==typeof e?t:Et(t,e)},W.forEach((function(t){Lt[t]=Ft})),z.forEach((function(t){Lt[t+"s"]=It})),Lt.watch=function(t,e,n,r){if(t===nt&&(t=void 0),e===nt&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in D(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Lt.props=Lt.methods=Lt.inject=Lt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return D(i,t),e&&D(i,e),i},Lt.provide=Et;var zt=function(t,e){return void 0===e?t:e};function Wt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=A(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=A(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}function Nt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?D({from:o},a):{from:a}}else 0}}function Bt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Ut(t,e,n){if("function"===typeof e&&(e=e.options),Wt(e,n),Nt(e,n),Bt(e),!e._base&&(e.extends&&(t=Ut(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Ut(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=Lt[r]||zt;a[r]=i(t[r],e[r],n,r)}return a}function Gt(t,e,n,r){if("string"===typeof n){var i=t[e];if(_(i,n))return i[n];var o=A(n);if(_(i,o))return i[o];var a=S(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Ht(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=Kt(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===T(t)){var l=Kt(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Vt(r,i,t);var c=At;St(!0),kt(a),St(c)}return a}function Vt(t,e,n){if(_(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==qt(e.type)?r.call(t):r}}function qt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Xt(t,e){return qt(t)===qt(e)}function Kt(t,e){if(!Array.isArray(e))return Xt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Xt(e[n],t))return n;return-1}function Yt(t,e,n){ft();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(ni){Qt(ni,r,"errorCaptured hook")}}}Qt(t,e,n)}finally{dt()}}function Jt(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return Yt(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(ni){Yt(ni,r,i)}return o}function Qt(t,e,n){if(N.errorHandler)try{return N.errorHandler.call(null,t,e,n)}catch(ni){ni!==t&&Zt(ni,null,"config.errorHandler")}Zt(t,e,n)}function Zt(t,e,n){if(!K&&!Y||"undefined"===typeof console)throw t;console.error(t)}var te,ee=[],ne=!1;function re(){ne=!1;var t=ee.slice(0);ee.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&at(Promise)){var ie=Promise.resolve();te=function(){ie.then(re),et&&setTimeout(L)}}else if(Z||"undefined"===typeof MutationObserver||!at(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())te="undefined"!==typeof setImmediate&&at(setImmediate)?function(){setImmediate(re)}:function(){setTimeout(re,0)};else{var oe=1,ae=new MutationObserver(re),se=document.createTextNode(String(oe));ae.observe(se,{characterData:!0}),te=function(){oe=(oe+1)%2,se.data=String(oe)}}function le(t,e){var n;if(ee.push((function(){if(t)try{t.call(e)}catch(ni){Yt(ni,e,"nextTick")}else n&&n(e)})),ne||(ne=!0,te()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ce=new st;function ue(t){he(t,ce),ce.clear()}function he(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof pt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)he(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)he(t[r[n]],e)}}}var fe=b((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function de(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return Jt(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Jt(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function pe(t,e,n,i,a,s){var l,c,u,h;for(l in t)c=t[l],u=e[l],h=fe(l),r(c)||(r(u)?(r(c.fns)&&(c=t[l]=de(c,s)),o(h.once)&&(c=t[l]=a(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)r(t[l])&&(h=fe(l),i(h.name,e[l],h.capture))}function ge(t,e,n,o){var a=e.options.mpOptions&&e.options.mpOptions.properties;if(r(a))return n;var s=e.options.mpOptions.externalClasses||[],l=t.attrs,c=t.props;if(i(l)||i(c))for(var u in a){var h=T(u),f=ye(n,c,u,h,!0)||ye(n,l,u,h,!1);f&&n[u]&&-1!==s.indexOf(h)&&o[A(n[u])]&&(n[u]=o[A(n[u])])}return n}function ve(t,e,n,o){var a=e.options.props;if(r(a))return ge(t,e,{},o);var s={},l=t.attrs,c=t.props;if(i(l)||i(c))for(var u in a){var h=T(u);ye(s,c,u,h,!0)||ye(s,l,u,h,!1)}return ge(t,e,s,o)}function ye(t,e,n,r,o){if(i(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function xe(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function me(t){return s(t)?[yt(t)]:Array.isArray(t)?be(t):void 0}function _e(t){return i(t)&&i(t.text)&&a(t.isComment)}function be(t,e){var n,a,l,c,u=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(l=u.length-1,c=u[l],Array.isArray(a)?a.length>0&&(a=be(a,(e||"")+"_"+n),_e(a[0])&&_e(c)&&(u[l]=yt(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?_e(c)?u[l]=yt(c.text+a):""!==a&&u.push(yt(a)):_e(a)&&_e(c)?u[l]=yt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function we(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ae(t){var e=Se(t.$options.inject,t);e&&(St(!1),Object.keys(e).forEach((function(n){Ct(t,n,e[n])})),St(!0))}function Se(t,e){if(t){for(var n=Object.create(null),r=lt?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function Pe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(n["page"]||(n["page"]=[])).push(o):(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(Te)&&delete n[c];return n}function Te(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Me(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ke(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=Ce(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function ke(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:me(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Ce(t,e){return function(){return t[e]}}function Oe(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r,r,r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r,r,r);else if(l(t))if(lt&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),u=c.next();while(!u.done)n.push(e(u.value,n.length,r++,r)),u=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r,r);return i(n)||(n=[]),n._isVList=!0,n}function De(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n,this,n._i)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Re(t){return Gt(this.$options,"filters",t,!0)||E}function Le(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function $e(t,e,n,r,i){var o=N.keyCodes[e]||n;return i&&r&&!N.keyCodes[e]?Le(i,r):o?Le(o,t):r?T(r)!==e:void 0}function Ee(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=R(n));var a=function(a){if("class"===a||"style"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||N.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=A(a),c=T(a);if(!(l in o)&&!(c in o)&&(o[a]=n[a],i)){var u=t.on||(t.on={});u["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function Fe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ie(r,"__static__"+t,!1)),r}function je(t,e,n){return Ie(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ie(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&ze(t[r],e+"_"+r,n);else ze(t,e,n)}function ze(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function We(t,e){if(e)if(u(e)){var n=t.on=t.on?D({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ne(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ne(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Be(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ue(t,e){return"string"===typeof t?e+t:t}function Ge(t){t._o=je,t._n=g,t._s=p,t._l=Oe,t._t=De,t._q=F,t._i=j,t._m=Fe,t._f=Re,t._k=$e,t._b=Ee,t._v=yt,t._e=vt,t._u=Ne,t._g=We,t._d=Be,t._p=Ue}function He(t,e,r,i,a){var s,l=this,c=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=o(c._compiled),h=!u;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Se(c.inject,i),this.slots=function(){return l.$slots||Me(t.scopedSlots,l.$slots=Pe(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Me(t.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Me(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=on(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return on(s,t,e,n,r,h)}}function Ve(t,e,r,o,a){var s=t.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=Ht(u,c,e||n);else i(r.attrs)&&Xe(l,r.attrs),i(r.props)&&Xe(l,r.props);var h=new He(r,l,a,o,t),f=s.render.call(null,h._c,h);if(f instanceof pt)return qe(f,r,h.parent,s,h);if(Array.isArray(f)){for(var d=me(f)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=qe(d[g],r,h.parent,s,h);return p}}function qe(t,e,n,r,i){var o=xt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Xe(t,e){for(var n in e)t[A(n)]=e[n]}Ge(He.prototype);var Ke={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Ke.prepatch(n,n)}else{var r=t.componentInstance=Qe(t,Sn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;kn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(Rn(n,"onServiceCreated"),Rn(n,"onServiceAttached"),n._isMounted=!0,Rn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Gn(n):On(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Dn(e,!0):e.$destroy())}},Ye=Object.keys(Ke);function Je(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(l(t)&&(t=c.extend(t)),"function"===typeof t){var u;if(r(t.cid)&&(u=t,t=gn(u,c),void 0===t))return pn(u,e,n,a,s);e=e||{},dr(t),i(e.model)&&en(t.options,e);var h=ve(e,t,s,n);if(o(t.options.functional))return Ve(t,h,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}Ze(e);var p=t.options.name||s,g=new pt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:f,tag:s,children:a},u);return g}}}function Qe(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function Ze(t){for(var e=t.hook||(t.hook={}),n=0;n<Ye.length;n++){var r=Ye[n],i=e[r],o=Ke[r];i===o||i&&i._merged||(e[r]=i?tn(o,i):o)}}function tn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function en(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var nn=1,rn=2;function on(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=rn),an(t,e,n,r,i)}function an(t,e,n,r,o){if(i(n)&&i(n.__ob__))return vt();if(i(n)&&i(n.is)&&(e=n.is),!e)return vt();var a,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===rn?r=me(r):o===nn&&(r=xe(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||N.getTagNamespace(e),a=N.isReservedTag(e)?new pt(N.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(l=Gt(t.$options,"components",e))?new pt(e,n,r,void 0,void 0,t):Je(l,n,t,r,e)):a=Je(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&sn(a,s),i(n)&&ln(n),a):vt()}function sn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var l=t.children[a];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&sn(l,e,n)}}function ln(t){l(t.style)&&ue(t.style),l(t.class)&&ue(t.class)}function cn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Pe(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return on(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return on(t,e,n,r,i,!0)};var o=r&&r.data;Ct(t,"$attrs",o&&o.attrs||n,null,!0),Ct(t,"$listeners",e._parentListeners||n,null,!0)}var un,hn=null;function fn(t){Ge(t.prototype),t.prototype.$nextTick=function(t){return le(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Me(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{hn=e,t=r.call(e._renderProxy,e.$createElement)}catch(ni){Yt(ni,e,"render"),t=e._vnode}finally{hn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof pt||(t=vt()),t.parent=i,t}}function dn(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function pn(t,e,n,r,i){var o=vt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function gn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=hn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return x(a,n)}));var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=I((function(n){t.resolved=dn(n,e),s?a.length=0:h(!0)})),p=I((function(e){i(t.errorComp)&&(t.error=!0,h(!0))})),g=t(f,p);return l(g)&&(d(g)?r(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(t.errorComp=dn(g.error,e)),i(g.loading)&&(t.loadingComp=dn(g.loading,e),0===g.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(u=setTimeout((function(){u=null,r(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function vn(t){return t.isComment&&t.asyncFactory}function yn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||vn(n)))return n}}function xn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&wn(t,e)}function mn(t,e){un.$on(t,e)}function _n(t,e){un.$off(t,e)}function bn(t,e){var n=un;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function wn(t,e,n){un=t,pe(e,n||{},mn,_n,bn,t),un=void 0}function An(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?O(n):n;for(var r=O(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)Jt(n[o],e,r,e,i)}return e}}var Sn=null;function Pn(t){var e=Sn;return Sn=t,function(){Sn=e}}function Tn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Mn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Pn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Rn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||x(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Rn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function kn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){St(!1);for(var u=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var d=h[f],p=t.$options.props;u[d]=Ht(d,p,e,t)}St(!0),t.$options.propsData=e}t._$updateProperties&&t._$updateProperties(t),r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,wn(t,r,g),c&&(t.$slots=Pe(o,i.context),t.$forceUpdate())}function Cn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function On(t,e){if(e){if(t._directInactive=!1,Cn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)On(t.$children[n]);Rn(t,"activated")}}function Dn(t,e){if((!e||(t._directInactive=!0,!Cn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Dn(t.$children[n]);Rn(t,"deactivated")}}function Rn(t,e){ft();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Jt(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),dt()}var Ln=[],$n=[],En={},Fn=!1,jn=!1,In=0;function zn(){In=Ln.length=$n.length=0,En={},Fn=jn=!1}var Wn=Date.now;if(K&&!Z){var Nn=window.performance;Nn&&"function"===typeof Nn.now&&Wn()>document.createEvent("Event").timeStamp&&(Wn=function(){return Nn.now()})}function Bn(){var t,e;for(Wn(),jn=!0,Ln.sort((function(t,e){return t.id-e.id})),In=0;In<Ln.length;In++)t=Ln[In],t.before&&t.before(),e=t.id,En[e]=null,t.run();var n=$n.slice(),r=Ln.slice();zn(),Hn(n),Un(r),ot&&N.devtools&&ot.emit("flush")}function Un(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Rn(r,"updated")}}function Gn(t){t._inactive=!1,$n.push(t)}function Hn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,On(t[e],!0)}function Vn(t){var e=t.id;if(null==En[e]){if(En[e]=!0,jn){var n=Ln.length-1;while(n>In&&Ln[n].id>t.id)n--;Ln.splice(n+1,0,t)}else Ln.push(t);Fn||(Fn=!0,le(Bn))}}var qn=0,Xn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++qn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="","function"===typeof e?this.getter=e:(this.getter=V(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};Xn.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(ni){if(!this.user)throw ni;Yt(ni,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ue(t),dt(),this.cleanupDeps()}return t},Xn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Xn.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Xn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Vn(this)},Xn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(ni){Yt(ni,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Xn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Xn.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},Xn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||x(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var Kn={enumerable:!0,configurable:!0,get:L,set:L};function Yn(t,e,n){Kn.get=function(){return this[e][n]},Kn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Kn)}function Jn(t){t._watchers=[];var e=t.$options;e.props&&Qn(t,e.props),e.methods&&ar(t,e.methods),e.data?Zn(t):kt(t._data={},!0),e.computed&&nr(t,e.computed),e.watch&&e.watch!==nt&&sr(t,e.watch)}function Qn(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||St(!1);var a=function(o){i.push(o);var a=Ht(o,e,n,t);Ct(r,o,a),o in t||Yn(t,"_props",o)};for(var s in e)a(s);St(!0)}function Zn(t){var e=t.$options.data;e=t._data="function"===typeof e?tr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||U(o)||Yn(t,"_data",o)}kt(e,!0)}function tr(t,e){ft();try{return t.call(e,e)}catch(ni){return Yt(ni,e,"data()"),{}}finally{dt()}}var er={lazy:!0};function nr(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new Xn(t,a||L,L,er)),i in t||rr(t,i,o)}}function rr(t,e,n){var r=!it();"function"===typeof n?(Kn.get=r?ir(e):or(n),Kn.set=L):(Kn.get=n.get?r&&!1!==n.cache?ir(e):or(n.get):L,Kn.set=n.set||L),Object.defineProperty(t,e,Kn)}function ir(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.SharedObject.target&&e.depend(),e.value}}function or(t){return function(){return t.call(this,this)}}function ar(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:C(e[n],t)}function sr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)lr(t,n,r[i]);else lr(t,n,r)}}function lr(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function cr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Ot,t.prototype.$delete=Dt,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return lr(r,t,e,n);n=n||{},n.user=!0;var i=new Xn(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){Yt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var ur=0;function hr(t){t.prototype._init=function(t){var e=this;e._uid=ur++,e._isVue=!0,t&&t._isComponent?fr(e,t):e.$options=Ut(dr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Tn(e),xn(e),cn(e),Rn(e,"beforeCreate"),!e._$fallback&&Ae(e),Jn(e),!e._$fallback&&we(e),!e._$fallback&&Rn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function fr(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function dr(t){var e=t.options;if(t.super){var n=dr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=pr(t);i&&D(t.extendOptions,i),e=t.options=Ut(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function pr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function gr(t){this._init(t)}function vr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=O(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function yr(t){t.mixin=function(t){return this.options=Ut(this.options,t),this}}function xr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Ut(n.options,t),a["super"]=n,a.options.props&&mr(a),a.options.computed&&_r(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=D({},a.options),i[r]=a,a}}function mr(t){var e=t.options.props;for(var n in e)Yn(t.prototype,"_props",n)}function _r(t){var e=t.options.computed;for(var n in e)rr(t.prototype,n,e[n])}function br(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function wr(t){return t&&(t.Ctor.options.name||t.tag)}function Ar(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Sr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=wr(a.componentOptions);s&&!e(s)&&Pr(n,o,r,i)}}}function Pr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,x(n,e)}hr(gr),cr(gr),An(gr),Mn(gr),fn(gr);var Tr=[String,RegExp,Array],Mr={name:"keep-alive",abstract:!0,props:{include:Tr,exclude:Tr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Pr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Sr(t,(function(t){return Ar(e,t)}))})),this.$watch("exclude",(function(e){Sr(t,(function(t){return!Ar(e,t)}))}))},render:function(){var t=this.$slots.default,e=yn(t),n=e&&e.componentOptions;if(n){var r=wr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Ar(o,r))||a&&r&&Ar(a,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,x(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Pr(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},kr={KeepAlive:Mr};function Cr(t){var e={get:function(){return N}};Object.defineProperty(t,"config",e),t.util={warn:ct,extend:D,mergeOptions:Ut,defineReactive:Ct},t.set=Ot,t.delete=Dt,t.nextTick=le,t.observable=function(t){return kt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,D(t.options.components,kr),vr(t),yr(t),xr(t),br(t)}Cr(gr),Object.defineProperty(gr.prototype,"$isServer",{get:it}),Object.defineProperty(gr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gr,"FunctionalRenderContext",{value:He}),gr.version="2.6.11";var Or="[object Array]",Dr="[object Object]";function Rr(t,e){var n={};return Lr(t,e),$r(t,e,"",n),n}function Lr(t,e){if(t!==e){var n=Fr(t),r=Fr(e);if(n==Dr&&r==Dr){if(Object.keys(t).length>=Object.keys(e).length)for(var i in e){var o=t[i];void 0===o?t[i]=null:Lr(o,e[i])}}else n==Or&&r==Or&&t.length>=e.length&&e.forEach((function(e,n){Lr(t[n],e)}))}}function $r(t,e,n,r){if(t!==e){var i=Fr(t),o=Fr(e);if(i==Dr)if(o!=Dr||Object.keys(t).length<Object.keys(e).length)Er(r,n,t);else{var a=function(i){var o=t[i],a=e[i],s=Fr(o),l=Fr(a);if(s!=Or&&s!=Dr)o!=e[i]&&Er(r,(""==n?"":n+".")+i,o);else if(s==Or)l!=Or||o.length<a.length?Er(r,(""==n?"":n+".")+i,o):o.forEach((function(t,e){$r(t,a[e],(""==n?"":n+".")+i+"["+e+"]",r)}));else if(s==Dr)if(l!=Dr||Object.keys(o).length<Object.keys(a).length)Er(r,(""==n?"":n+".")+i,o);else for(var c in o)$r(o[c],a[c],(""==n?"":n+".")+i+"."+c,r)};for(var s in t)a(s)}else i==Or?o!=Or||t.length<e.length?Er(r,n,t):t.forEach((function(t,i){$r(t,e[i],n+"["+i+"]",r)})):Er(r,n,t)}}function Er(t,e,n){t[e]=n}function Fr(t){return Object.prototype.toString.call(t)}function jr(t){if(t.__next_tick_callbacks&&t.__next_tick_callbacks.length){if(Object({VUE_APP_NAME:"yxcl_wechat",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var e=t.$scope;console.log("["+ +new Date+"]["+(e.is||e.route)+"]["+t._uid+"]:flushCallbacks["+t.__next_tick_callbacks.length+"]")}var n=t.__next_tick_callbacks.slice(0);t.__next_tick_callbacks.length=0;for(var r=0;r<n.length;r++)n[r]()}}function Ir(t){return Ln.find((function(e){return t._watcher===e}))}function zr(t,e){if(!t.__next_tick_pending&&!Ir(t)){if(Object({VUE_APP_NAME:"yxcl_wechat",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var n=t.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+t._uid+"]:nextVueTick")}return le(e,t)}if(Object({VUE_APP_NAME:"yxcl_wechat",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var r=t.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+t._uid+"]:nextMPTick")}var i;if(t.__next_tick_callbacks||(t.__next_tick_callbacks=[]),t.__next_tick_callbacks.push((function(){if(e)try{e.call(t)}catch(ni){Yt(ni,t,"nextTick")}else i&&i(t)})),!e&&"undefined"!==typeof Promise)return new Promise((function(t){i=t}))}function Wr(t){var e=Object.create(null),n=[].concat(Object.keys(t._data||{}),Object.keys(t._computedWatchers||{}));n.reduce((function(e,n){return e[n]=t[n],e}),e);var r=t.__composition_api_state__||t.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){e[n]=t[n]})),Object.assign(e,t.$mp.data||{}),Array.isArray(t.$options.behaviors)&&-1!==t.$options.behaviors.indexOf("uni://form-field")&&(e["name"]=t.name,e["value"]=t.value),JSON.parse(JSON.stringify(e))}var Nr=function(t,e){var n=this;if(null!==e&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=Wr(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(t){o[t]=r.data[t]}));var a=!1===this.$shouldDiffData?i:Rr(i,o);Object.keys(a).length?(Object({VUE_APP_NAME:"yxcl_wechat",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,jr(n)}))):jr(this)}};function Br(){}function Ur(t,e,n){if(!t.mpType)return t;"app"===t.mpType&&(t.$options.render=Br),t.$options.render||(t.$options.render=Br),!t._$fallback&&Rn(t,"beforeMount");var r=function(){t._update(t._render(),n)};return new Xn(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&Rn(t,"beforeUpdate")}},!0),n=!1,t}function Gr(t,e){return i(t)||i(e)?Hr(t,Vr(e)):""}function Hr(t,e){return t?e?t+" "+e:t:e||""}function Vr(t){return Array.isArray(t)?qr(t):l(t)?Xr(t):"string"===typeof t?t:""}function qr(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Vr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Xr(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var Kr=b((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Yr(t){return Array.isArray(t)?R(t):"string"===typeof t?Kr(t):t}var Jr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Qr(t,e){var n=e.split("."),r=n[0];return 0===r.indexOf("__$n")&&(r=parseInt(r.replace("__$n",""))),1===n.length?t[r]:Qr(t[r],n.slice(1).join("."))}function Zr(t){t.config.errorHandler=function(e,n,r){t.util.warn("Error in "+r+': "'+e.toString()+'"',n),console.error(e);var i=getApp();i&&i.onError&&i.onError(e)};var e=t.prototype.$emit;t.prototype.$emit=function(t){return this.$scope&&t&&this.$scope["triggerEvent"](t,{__args__:O(arguments,1)}),e.apply(this,arguments)},t.prototype.$nextTick=function(t){return zr(this,t)},Jr.forEach((function(e){t.prototype[e]=function(t){return this.$scope&&this.$scope[e]?this.$scope[e](t):"undefined"!==typeof my?"createSelectorQuery"===e?my.createSelectorQuery(t):"createIntersectionObserver"===e?my.createIntersectionObserver(t):void 0:void 0}})),t.prototype.__init_provide=we,t.prototype.__init_injections=Ae,t.prototype.__call_hook=function(t,e){var n=this;ft();var r,i=n.$options[t],o=t+" hook";if(i)for(var a=0,s=i.length;a<s;a++)r=Jt(i[a],n,e?[e]:null,n,o);return n._hasHookEvent&&n.$emit("hook:"+t,e),dt(),r},t.prototype.__set_model=function(t,e,n,r){Array.isArray(r)&&(-1!==r.indexOf("trim")&&(n=n.trim()),-1!==r.indexOf("number")&&(n=this._n(n))),t||(t=this),t[e]=n},t.prototype.__set_sync=function(t,e,n){t||(t=this),t[e]=n},t.prototype.__get_orig=function(t){return u(t)&&t["$orig"]||t},t.prototype.__get_value=function(t,e){return Qr(e||this,t)},t.prototype.__get_class=function(t,e){return Gr(e,t)},t.prototype.__get_style=function(t,e){if(!t&&!e)return"";var n=Yr(t),r=e?D(e,n):n;return Object.keys(r).map((function(t){return T(t)+":"+r[t]})).join(";")},t.prototype.__map=function(t,e){var n,r,i,o,a;if(Array.isArray(t)){for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);return n}if(l(t)){for(o=Object.keys(t),n=Object.create(null),r=0,i=o.length;r<i;r++)a=o[r],n[a]=e(t[a],a,r);return n}if("number"===typeof t){for(n=new Array(t),r=0,i=t;r<i;r++)n[r]=e(r,r);return n}return[]}}var ti=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onPageShow","onPageHide","onPageResize"];function ei(t){var e=t.extend;t.extend=function(t){t=t||{};var n=t.methods;return n&&Object.keys(n).forEach((function(e){-1!==ti.indexOf(e)&&(t[e]=n[e],delete n[e])})),e.call(this,t)};var n=t.config.optionMergeStrategies,r=n.created;ti.forEach((function(t){n[t]=r})),t.prototype.__lifecycle_hooks__=ti}gr.prototype.__patch__=Nr,gr.prototype.$mount=function(t,e){return Ur(this,t,e)},ei(gr),Zr(gr),e["default"]=gr}.call(this,n("c8ba"))},"897e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={baseURL:"https://user.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx",mpUrl:"https://mp.eshangtech.com/Coop.Merchant/Handler/handler_ajax.ashx",apiurl:"https://api.eshangtech.com/",mobUrl:"http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx",testURL1:"http://192.168.10.123:8000",testURL2:"http://192.168.12.121:8010",testApiName:"/MobileServicePlatform/Handler/handler_ajax.ashx"};e.default=r},"8eba":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(n("66fd")),i=l(n("2f62")),o=l(n("e32c")),a=l(n("059d")),s=l(n("d660"));function l(t){return t&&t.__esModule?t:{default:t}}r.default.use(i.default);var c={visitChannels:"",userData:{},isConnect:!0,isLoading:!1,isChangeMsgCount:!1,userPhoto:null,shouldReLoadingList:!1},u={getUser:function(t){return t.userData},getMenu:function(t){return t.userData.AuthorityInfo},getConnect:function(t){return t.isConnect},getLoading:function(t){return t.isLoading},isChangeMsgCount:function(t){return t.isChangeMsgCount},shouldReLoadingList:function(t){return t.shouldReLoadingList},userPhoto:function(t){return t.userPhoto},getVisitChannels:function(t,e){return t.visitChannels}},h={setUser:function(t,e){t.userData=e},setVisitChannels:function(t,e){t.visitChannels=e},isGetTodoList:function(t,e){t.isChangeMsgCount=e},shouldReLoadingList:function(t,e){t.shouldReLoadingList=e},isConnect:function(t,e){t.isConnect=e},setPhoto:function(t,e){t.userPhoto=e}},f={loginUser:function(t,e){t.dispatch,t.commit},getLoginCode:function(e){var n=e.dispatch;e.state;t.login({success:function(t){n("memberLogin",t.code)}})},memberLogin:function(e,n){var r=e.dispatch,i=e.state,s=e.commit;i.userData;o.default.$get("WeChat_Login",{WeChat_Code:n||""}).then((function(e){if(100===e.Result_Code){var n=e.Result_Data;n.Membership_Id?r("updateUser",e.Result_Data):(s("setUser",n),t.showModal({title:"温馨提示",content:"请您授权登录后再操作。",success:function(t){t.confirm&&a.default.toNextRoute("navigateTo","/pages/register/register")}}))}else 200===e.Result_Code?r("getLoginCode"):console.log(e)}))},updateUser:function(t,e){var n=t.commit,r=t.state,i=e||r.userData,a=i.Membership_Id;a&&o.default.$get("WeChat_GetBusinessMemberInfo",{Membership_Id:a}).then((function(t){if(100==t.Result_Code){var e=t.Result_Data;e.WeChat_MiniProToken=i.WeChat_MiniProToken,e.WeChat_UserId=i.WeChat_UserId,e.WeChat_UserName=i.WeChat_UserName,n("setUser",e)}}))}},d=new i.default.Store({state:c,mutations:h,getters:u,actions:f,plugins:[(0,s.default)({storage:{getItem:function(e){return t.getStorageSync(e)},setItem:function(e,n){return t.setStorageSync(e,n)},removeItem:function(e){return t.removeStorageSync(e)}}})]});e.default=d}).call(this,n("543d")["default"])},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"===typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{u=e.regeneratorRuntime=c?t.exports:{},u.wrap=_;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,x=y&&y(y(R([])));x&&x!==r&&i.call(x,a)&&(v=x);var m=S.prototype=w.prototype=Object.create(v);A.prototype=m.constructor=S,S.constructor=A,S[l]=A.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===A||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(m),t},u.awrap=function(t){return{__await:t}},P(T.prototype),T.prototype[s]=function(){return this},u.AsyncIterator=T,u.async=function(t,e,n,r){var i=new T(_(t,e,n,r));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(m),m[l]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},u.values=R,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function _(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),a=new D(r||[]);return o._invoke=M(t,n,a),o}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function w(){}function A(){}function S(){}function P(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){function e(n,r,o,a){var s=b(t[n],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){l.value=t,o(l)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function M(t,e,n){var r=h;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return L()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=b(t,e,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=b(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},a34a:function(t,e,n){t.exports=n("bbdd")},bbdd:function(t,e,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},d660:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===i}(t)}(t)},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?c(Array.isArray(t)?[]:{},t,e):t}function a(t,e,n){return t.concat(e).map((function(t){return o(t,n)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function l(t,e){try{return e in t}catch(t){return!1}}function c(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&s(t).forEach((function(e){r[e]=o(t[e],n)})),s(e).forEach((function(i){(function(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,i)||(r[i]=l(t,i)&&n.isMergeableObject(e[i])?function(t,e){if(!e.customMerge)return c;var n=e.customMerge(t);return"function"==typeof n?n:c}(i,n)(t[i],e[i],n):o(e[i],n))})),r}(t,e,n):o(e,n)}c.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return c(t,n,e)}),{})};var u=c;function h(t,e,n){return void 0===(t=(e.split?e.split("."):e).reduce((function(t,e){return t&&t[e]}),t))?n:t}function f(t,e,n){if(e=(t=t||{}).storage||window&&window.localStorage,n=t.key||"vuex",!function(t){try{return t.setItem("@@",1),t.removeItem("@@"),!0}catch(t){}return!1}(e))throw new Error("Invalid storage instance given");var r=h(t,"getState",(function(t,e,n){try{return(n=e.getItem(t))&&void 0!==n?JSON.parse(n):void 0}catch(t){}}))(n,e);return function(i){"object"==typeof r&&null!==r&&(i.replaceState(u(i.state,r,{arrayMerge:t.arrayMerger||function(t,e){return e},clone:!1})),(t.rehydrated||function(){})(i)),(t.subscriber||function(t){return function(e){return t.subscribe(e)}})(i)((function(r,i){(t.filter||function(){return!0})(r)&&(t.setState||function(t,e,n){return n.setItem(t,JSON.stringify(e))})(n,(t.reducer||function(t,e){return 0===e.length?t:e.reduce((function(e,n){return function(t,e,n,r){return(e=e.split?e.split("."):e).slice(0,-1).reduce((function(t,e){return t[e]=t[e]||{}}),t)[e.pop()]=n,t}(e,n,h(t,n))}),{})})(i,t.paths||[]),e)}))}}},e32c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("897e")),i=o(n("3b1e"));o(n("8eba"));function o(t){return t&&t.__esModule?t:{default:t}}var a={post:function(t){return i.default.request("POST",r.default.baseURL,t)},get:function(t){return i.default.request("GET",r.default.baseURL,t)},postM:function(t,e){return e.action_type=t,i.default.request("POST",r.default.mobUrl,e)},getM:function(t,e){return e.action_type=t,i.default.request("GET",r.default.mobUrl,e)},getMp:function(t,e){return e.action_type=t,i.default.request("GET",r.default.mpUrl,e)},$get:function(t,e){return e.action_type=t,this.get(e)},$post:function(t,e){return e.action_type=t,this.post(e)},$webGet:function(t,e){return i.default.request("GET",r.default.apiurl+t,e,!0)},$webPost:function(t,e){return i.default.request("POST",r.default.apiurl+t,e,!0)}};e.default=a},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,l,c){var u,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var f=Object.prototype.hasOwnProperty;for(var d in l)f.call(l,d)&&!f.call(h.components,d)&&(h.components[d]=l[d])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(h.mixins||(h.mixins=[])).push(c)),e&&(h.render=e,h.staticRenderFns=n,h._compiled=!0),r&&(h.functional=!0),o&&(h._scopeId="data-v-"+o),a?(u=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},h._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(h.functional){h._injectStyles=u;var p=h.render;h.render=function(t,e){return u.call(e),p(t,e)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,u):[u]}return{exports:t,options:h}}n.d(e,"a",(function(){return r}))}}]);