1 line
118 KiB
JavaScript
1 line
118 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["member-fans-index"],{"109b":function(t,e,i){"use strict";i.r(e);var a=i("d6d24"),o=i("6a93");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("3f01");var r=i("828b"),l=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"de37538c",null,!1,a["a"],void 0);e["default"]=l.exports},1851:function(t,e,i){"use strict";var a=i("8bdb"),o=i("84d6"),n=i("1cb5");a({target:"Array",proto:!0},{fill:o}),n("fill")},"23e9":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("aa9c"),i("4100"),i("fd3c"),i("5c47"),i("a1c1");var a={name:"share-box-app",props:{shareDataDefault:{type:Object,default:function(){return{shareTitle:"",shareText:"",href:"",image:""}}}},data:function(){return{showBoxView:!1,shareType:0}},created:function(){var t=this;uni.getProvider({service:"share",success:function(e){for(var i=[],a=0;a<e.provider.length;a++)switch(e.provider[a]){case"weixin":i.push({name:"分享到微信好友",id:"weixin",sort:0}),i.push({name:"分享到微信朋友圈",id:"weixin",type:"WXSenceTimeline",sort:1});break;case"sinaweibo":i.push({name:"分享到新浪微博",id:"sinaweibo",sort:2});break;case"qq":i.push({name:"分享到QQ",id:"qq",sort:3});break;default:break}t.providerList=i.sort((function(t,e){return t.sort-e.sort}))},fail:function(t){uni.showModal({content:"获取登录通道失败",showCancel:!1})}})},methods:{share:function(){var t=this,e=this;if(e.cf.LANG_ENABLE)this.shareDataDefault.shareTitle,this.shareDataDefault.href;else if(0!==this.providerList.length){var i=this.providerList.map((function(t){return t.name}));e=this;uni.showActionSheet({itemList:i,success:function(e){var i="qq"==t.providerList[e.tapIndex].id?2:t.shareType;uni.share({provider:t.providerList[e.tapIndex].id,scene:t.providerList[e.tapIndex].type&&"WXSenceTimeline"===t.providerList[e.tapIndex].type?"WXSenceTimeline":"WXSceneSession",type:i,summary:t.shareDataDefault.shareText,imageUrl:t.shareDataDefault.image,title:t.shareDataDefault.shareTitle,href:t.shareDataDefault.href,success:function(e){t.$emit("onShared")},fail:function(t){uni.showModal({content:"用户取消",showCancel:!1})}})}})}else uni.showModal({title:"当前环境无分享渠道!",showCancel:!1})},save:function(){uni.showActionSheet({itemList:["保存图片到相册"],success:function(){plus.gallery.save("https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/app_download.png",(function(){uni.showToast({title:"保存成功",icon:"none"})}),(function(){uni.showToast({title:"保存失败,请重试!",icon:"none"})}))}})},cancel:function(){this.showBoxView=!1,this.$emit("onCancel")},show:function(){this.share()}}};e.default=a},"282b":function(t,e,i){"use strict";i.r(e);var a=i("e77b"),o=i("ba7b");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("3470");var r=i("828b"),l=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"5518aee5",null,!1,a["a"],void 0);e["default"]=l.exports},3470:function(t,e,i){"use strict";var a=i("9dfc"),o=i.n(a);o.a},"34d1":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"m-banner-img"},[i("v-uni-view",{staticClass:"member-top"},[i("v-uni-navigator",{staticClass:"m-user-info",attrs:{url:"/member/member/data"}},[i("v-uni-image",{attrs:{"lazy-load":!0,src:t.userInfo.user_avatar,mode:"scaleToFill"}}),i("v-uni-view",{staticClass:"m-name"},[i("v-uni-label",[t._v(t._s(t.userInfo.user_nickname))]),t.fxData.user_role.user_role_name?i("v-uni-text",[t._v("-")]):t._e(),i("v-uni-text",{staticClass:"sup"},[t._v(t._s(t.fxData.user_role.user_role_name))])],1)],1),i("v-uni-view",{staticClass:"g-flex member-order-tab"},[i("v-uni-navigator",{staticClass:"g-flex-item",attrs:{url:"/member/fans/endorsement"}},[i("v-uni-view",{staticClass:"iconfont zc zc-qrcode i-type"}),t._v(t._s(t.__("生成推广码")))],1),t.plantform_fx_westore_enable?i("v-uni-navigator",{staticClass:"g-flex-item",attrs:{url:"/pagesub/westore/index"}},[i("v-uni-view",{staticClass:"iconfont zc zc-dianpu i-type"}),t._v(t._s(t.__("我的小店")))],1):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"m-panel-bd"},[i("v-uni-view",{staticClass:"m-media-box m-media-box-small-appmsg"},[i("v-uni-view",{class:{"m-cells":1,iconBoxLattice:!0}},[i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/list"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.all_num))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("累计邀请")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1),i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/list"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.month_num))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("本月新增")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1),i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.user_commission_now))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("累计佣金")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1),0==t.commission_withdraw_mode?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/cash/commissionapply"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.user_commission_now))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("佣金提现")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/cash/commissionwithdraw"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.user_commission_now))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("佣金提现")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1),t._e(),t._e(),t._e(),i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=1"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_buy_amount_0))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("累计消费奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1),t.fxData.user_role.user_is_sp?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=6"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_directseller_amount_0))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("累计销售奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_pt?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=15"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_partner_buy_trade))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("合伙消费奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_pt?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=25"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_partner_directseller_trade))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("合伙销售奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_ca?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=10"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_buy_ca))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("市代消费奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_ca?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=20"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_directseller_ca))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("市代销售奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_da?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=11"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_buy_da))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("区代消费奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e(),t.fxData.user_role.user_is_da?i("v-uni-navigator",{staticClass:"m-cell m-cell-access",attrs:{url:"/member/fans/profitlist?level=21"}},[i("v-uni-view",{staticClass:"m-cell-hd ",staticStyle:{color:"#db384c"}},[i("v-uni-label",[t._v(t._s(t.fxData.commission_directseller_da))])],1),i("v-uni-view",{staticClass:"m-cell-bd m-cell-primary"},[i("p",[t._v(t._s(t.__("区代销售奖")))])]),i("v-uni-text",{staticClass:"m-cell-ft"})],1):t._e()],1)],1)],1),i("v-uni-view",{staticStyle:{"margin-left":"20rpx","margin-top":"20rpx","margin-bottom":"10rpx"}},[i("v-uni-text",[t._v(t._s(t.__("最近收入")))])],1),i("v-uni-view",{staticClass:"qiun-charts"},[i("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLineA.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveLineA.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndLineA.apply(void 0,arguments)}}})],1)],1)},o=[]},"3f01":function(t,e,i){"use strict";var a=i("6ce4"),o=i.n(a);o.a},"42de":function(t,e,i){"use strict";(function(t){var e=i("bdbb").default;i("c9b5"),i("bf0f"),i("ab80"),i("7a76"),i("2797"),i("aa9c"),i("5c47"),i("a1c1"),i("e966"),i("fd3c"),i("0506"),i("473f"),i("c223"),i("8f71"),i("f7a5"),i("4100"),i("dc69"),i("1851"),i("d4b5");var a={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},o=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];function o(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?o(t[i],e[i]):t[i]=e[i];return t}if(null==t)throw new TypeError("Cannot convert undefined or null to object");return!i||0>=i.length||i.forEach((function(e){t=o(t,e)})),t},n={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return 0!=t%1},approximatelyEqual:function(t,e){return 1e-10>Math.abs(t-e)},isSameSign:function(t,e){var i=Math.abs;return i(t)===t&&i(e)===e||i(t)!==t&&i(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 i=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!i}};function r(t,e){var i=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,i,a){return e+e+i+i+a+a})),a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),o=parseInt(a[1],16),n=parseInt(a[2],16),r=parseInt(a[3],16);return"rgba("+o+","+n+","+r+","+e+")"}function l(t,e,i){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");i=i||10,e=e||"upper";for(var a=1;1>i;)i*=10,a*=10;for(t="upper"===e?Math.ceil(t*a):Math.floor(t*a);0!=t%i;)"upper"===e?t++:t--;return t/a}function s(t,e,i){function a(t){for(;0>t;)t+=2*o;for(;t>2*o;)t-=2*o;return t}var o=Math.PI;return t=a(t),e=a(e),i=a(i),e>i&&(i+=2*o,t<e&&(t+=2*o)),t>=e&&t<=i}function c(t,e){function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=n(t[e-1].y,t[e+1].y)||t[e].y<=o(t[e-1].y,t[e+1].y))}function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=n(t[e-1].x,t[e+1].x)||t[e].x<=o(t[e-1].x,t[e+1].x))}var o=Math.min,n=Math.max,r=.2,l=.2,s=null,c=null,h=null,d=null;if(1>e?(s=t[0].x+(t[1].x-t[0].x)*r,c=t[0].y+(t[1].y-t[0].y)*r):(s=t[e].x+(t[e+1].x-t[e-1].x)*r,c=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var f=t.length-1;h=t[f].x-(t[f].x-t[f-1].x)*l,d=t[f].y-(t[f].y-t[f-1].y)*l}else h=t[e+1].x-(t[e+2].x-t[e].x)*l,d=t[e+1].y-(t[e+2].y-t[e].y)*l;return i(t,e+1)&&(d=t[e+1].y),i(t,e)&&(c=t[e].y),a(t,e+1)&&(h=t[e+1].x),a(t,e)&&(s=t[e].x),(c>=n(t[e].y,t[e+1].y)||c<=o(t[e].y,t[e+1].y))&&(c=t[e].y),(d>=n(t[e].y,t[e+1].y)||d<=o(t[e].y,t[e+1].y))&&(d=t[e+1].y),(s>=n(t[e].x,t[e+1].x)||s<=o(t[e].x,t[e+1].x))&&(s=t[e].x),(h>=n(t[e].x,t[e+1].x)||h<=o(t[e].x,t[e+1].x))&&(h=t[e+1].x),{ctrA:{x:s,y:c},ctrB:{x:h,y:d}}}function h(t,e,i){return{x:i.x+t,y:i.y-e}}function d(t,e){if(e)for(;n.isCollision(t,e);)0<t.start.x?t.start.y--:0>t.start.x||0<t.start.y?t.start.y++:t.start.y--;return t}function f(t,e,i){var a=0;return t.map((function(t){if(t.color||(t.color=i.colors[a],a=(a+1)%i.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 u(t,e){var i,a=e-t;return i=1e4<=a?1e3:1e3<=a?100:100<=a?10:10<=a?5:1<=a?1:.1<=a?.1:.01<=a?.01:.001<=a?.001:1e-4<=a?1e-4:1e-5<=a?1e-5:1e-6,{minRange:l(t,"lower",i),maxRange:l(e,"upper",i)}}function p(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a.fontSize;t+="";t=t.split("");for(var i,o=0,n=0;n<t.length;n++)i=t[n],o+=/[a-zA-Z]/.test(i)?7:/[0-9]/.test(i)?5.5:/\./.test(i)?2.7:/-/.test(i)?3.25:/[\u4e00-\u9fa5]/.test(i)?10:/\(|\)/.test(i)?3.73:/\s/.test(i)?2.5:/%/.test(i)?8:10;return o*e/10}function x(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function g(t,e){for(var i=Array(e),a=0;a<i.length;a++)i[a]=0;for(var o=0;o<t.length;o++)for(a=0;a<i.length;a++)i[a]+=t[o].data[a];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function v(t,e,i){var a,o;return t.clientX?e.rotate?(o=e.height-t.clientX*e.pixelRatio,a=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(a=t.clientX*e.pixelRatio,o=(t.pageY-i.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(o=e.height-t.x*e.pixelRatio,a=t.y*e.pixelRatio):(a=t.x*e.pixelRatio,o=t.y*e.pixelRatio),{x:a,y:o}}function m(t,e){for(var i,a=[],o=0;o<t.length;o++)if(i=t[o],null!==i.data[e]&&"undefined"!=typeof i.data[e]&&i.show){var n={};n.color=i.color,n.type=i.type,n.style=i.style,n.pointShape=i.pointShape,n.disableLegend=i.disableLegend,n.name=i.name,n.show=i.show,n.data=i.format?i.format(i.data[e]):i.data[e],a.push(n)}return a}function y(t){var e=t.map((function(t){return p(t)}));return Math.max.apply(null,e)}function b(t){for(var e=Math.PI,i=[],a=0;a<t;a++)i.push(2*e/t*a);return i.map((function(t){return-1*t+e/2}))}function w(t,e,i,a){for(var o,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e;return e=a||t.data,{text:n.format?n.format(t,e[i]):t.name+": "+t.data,color:t.color}})),l=[],s={x:0,y:0},c=0;c<e.length;c++)o=e[c],"undefined"!=typeof o[i]&&null!==o[i]&&l.push(o[i]);for(var h,d=0;d<l.length;d++)h=l[d],s.x=Math.round(h.x),s.y+=h.y;return s.y/=l.length,{textList:r,offset:s}}function _(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},n=t.map((function(t){return{text:o.format?o.format(t,a[i]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));n=n.filter((function(t){if(!0!==t.disableLegend)return t}));for(var r,l=[],s={x:0,y:0},c=0;c<e.length;c++)r=e[c],"undefined"!=typeof r[i]&&null!==r[i]&&l.push(r[i]);for(var h,d=0;d<l.length;d++)h=l[d],s.x=Math.round(h.x),s.y+=h.y;return s.y/=l.length,{textList:n,offset:s}}function A(t,e,i,a,o,n){var r=n.color.upFill,l=n.color.downFill,s=[r,r,l,r],c=[],h={text:o[a],color:null};c.push(h),e.map((function(e){0==a&&0>e.data[1]-e.data[0]?s[1]=l:(e.data[0]<t[a-1][1]&&(s[0]=l),e.data[1]<e.data[0]&&(s[1]=l),e.data[2]>t[a-1][1]&&(s[2]=r),e.data[3]<t[a-1][1]&&(s[3]=l));var i={text:"开盘:"+e.data[0],color:s[0]},o={text:"收盘:"+e.data[1],color:s[1]},n={text:"最低:"+e.data[2],color:s[2]},h={text:"最高:"+e.data[3],color:s[3]};c.push(i,o,n,h)}));for(var d,f=[],u={x:0,y:0},p=0;p<i.length;p++)d=i[p],"undefined"!=typeof d[a]&&null!==d[a]&&f.push(d[a]);return u.x=Math.round(f[0][0].x),{textList:c,offset:u}}function S(t,e){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 T(t,e,i){var a=Math.pow;return a(t.x-e.x,2)+a(t.y-e.y,2)<=a(i,2)}function P(t){var e=[],i=[];return t.forEach((function(t){null===t?(i.length&&e.push(i),i=[]):i.push(t)})),i.length&&e.push(i),e}function D(t,e,i,a){var o={angle:0,xAxisHeight:i.xAxisHeight},n=t.map((function(t){return p(t,e.xAxis.fontSize||i.fontSize)})),r=Math.max.apply(this,n);return 1==e.xAxis.rotateLabel&&r+2*i.xAxisTextPadding>a&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*i.xAxisTextPadding+r*Math.sin(o.angle)),o}function C(t,i,a){var o={angle:0,xAxisHeight:a.xAxisHeight};o.ranges=function(t,i){var a=Math.min,o=Math.max,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1,r=x(t),l=[];r=r.filter((function(t){return"object"==e(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"==e(t)?t.constructor==Array?"candle"==i.type?t.map((function(t){l.push(t)})):l.push(t[0]):l.push(t.value):l.push(t)}));var s=0,c=0;if(0<l.length&&(s=a.apply(this,l),c=o.apply(this,l)),-1<n?("number"==typeof i.xAxis.data[n].min&&(s=a(i.xAxis.data[n].min,s)),"number"==typeof i.xAxis.data[n].max&&(c=o(i.xAxis.data[n].max,c))):("number"==typeof i.xAxis.min&&(s=a(i.xAxis.min,s)),"number"==typeof i.xAxis.max&&(c=o(i.xAxis.max,c))),s===c){var h=c||10;c+=h}for(var d=s,f=c,u=[],p=(f-d)/i.xAxis.splitNumber,g=0;g<=i.xAxis.splitNumber;g++)u.push(d+p*g);return u}(t,i,a),o.rangesFormat=o.ranges.map((function(t){return t=i.xAxis.format?i.xAxis.format(t):n.toFixed(t,2),t}));var r=o.ranges.map((function(t){return t=n.toFixed(t,2),t=i.xAxis.format?i.xAxis.format(+t):t,t}));o=Object.assign(o,W(r,i));var l=o.eachSpacing,s=r.map((function(t){return p(t)})),c=Math.max.apply(this,s);return c+2*a.xAxisTextPadding>l&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*a.xAxisTextPadding+c*Math.sin(o.angle)),!0===i.xAxis.disabled&&(o.xAxisHeight=0),o}function L(t,e,i,a,o){var n=Math.max,r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=o.extra.radar||{};l.max=l.max||0;for(var s=n(l.max,n.apply(null,x(a))),c=[],d=function(o){var n=a[o],l={};l.color=n.color,l.legendShape=n.legendShape,l.pointShape=n.pointShape,l.data=[],n.data.forEach((function(a,o){var n={};n.angle=t[o],n.proportion=a/s,n.position=h(i*n.proportion*r*Math.cos(n.angle),i*n.proportion*r*Math.sin(n.angle),e),l.data.push(n)})),c.push(l)},f=0;f<a.length;f++)d(f);return c}function k(t,e){for(var i,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,o=0,n=0,r=0;r<t.length;r++)i=t[r],i.data=null===i.data?0:i.data,o+=i.data;for(var l,s=0;s<t.length;s++)l=t[s],l.data=null===l.data?0:l.data,l._proportion_=0===o?1/t.length*a:l.data/o*a,l._radius_=e;for(var c,h=0;h<t.length;h++)c=t[h],c._start_=n,n+=2*c._proportion_*Math.PI;return t}function F(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var a=0;a<t.length;a++)t[a].radius=t[a].data/t[0].data*e*i,t[a]._proportion_=t[a].data/t[0].data;return t.reverse()}function R(t,e,i,a){for(var o,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,r=0,l=0,s=[],c=0;c<t.length;c++)o=t[c],o.data=null===o.data?0:o.data,r+=o.data,s.push(o.data);for(var h,d=Math.min.apply(null,s),f=Math.max.apply(null,s),u=0;u<t.length;u++)h=t[u],h.data=null===h.data?0:h.data,0===r||"area"==e?(h._proportion_=h.data/r*n,h._rose_proportion_=1/t.length*n):(h._proportion_=h.data/r*n,h._rose_proportion_=h.data/r*n),h._radius_=i+(a-i)*((h.data-d)/(f-d));for(var p,x=0;x<t.length;x++)p=t[x],p._start_=l,l+=2*p._rose_proportion_*Math.PI;return t}function M(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var a,o=0;o<t.length;o++){a=t[o],a.data=null===a.data?0:a.data;var n=void 0;n="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,a._proportion_=n*a.data*i+e.startAngle,2<=a._proportion_&&(a._proportion_%=2)}return t}function z(t,e,i){for(var a=e,o=0;o<t.length;o++)t[o].value=null===t[o].value?0:t[o].value,t[o]._startAngle_=a,t[o]._endAngle_=(e-i+1)*t[o].value+e,2<=t[o]._endAngle_&&(t[o]._endAngle_%=2),a=t[o]._endAngle_;return t}function I(t,e,i){for(var a,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,n=0;n<t.length;n++){if(a=t[n],a.data=null===a.data?0:a.data,"auto"==i.pointer.color){for(var r=0;r<e.length;r++)if(a.data<=e[r].value){a.color=e[r].color;break}}else a.color=i.pointer.color;var l=i.startAngle-i.endAngle+1;a._endAngle_=l*a.data+i.startAngle,a._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(a._oldAngle_+=2),a._proportion_=a.data>=i.oldData?(a._endAngle_-a._oldAngle_)*o+i.oldAngle:a._oldAngle_-(a._oldAngle_-a._endAngle_)*o,2<=a._proportion_&&(a._proportion_%=2)}return t}function O(t,e,i,a,o,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/i),n.extra.column&&n.extra.column.width&&0<+n.extra.column.width&&(t.width=Math.min(t.width,+n.extra.column.width)),0>=t.width&&(t.width=1),t.x+=(a+.5-i/2)*t.width,t)}))}function B(t,e,i,a,o,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&0<+n.extra.column.width&&(t.width=Math.min(t.width,+n.extra.column.width)),0<a&&(t.width-=2*r),t)}))}function E(t,e,i,a,o,n){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*o.columePadding)/2),n.extra.column&&n.extra.column.width&&0<+n.extra.column.width&&(t.width=Math.min(t.width,+n.extra.column.width)),t)}))}function W(t,e){var i=e.width-e.area[1]-e.area[3],a=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&1<a&&"justify"==e.xAxis.boundaryGap&&(a-=1);var o=i/a,n=[],r=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){n.push(r+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?n.push(r+t.length*o):n.push(l)),{xAxisPoints:n,startX:r,endX:l,eachSpacing:o}}function H(t,e,i,a,o,n){var r=Math.round,l=7<arguments.length&&void 0!==arguments[7]?arguments[7]:1,s=[],c=n.height-n.area[0]-n.area[2];return t.forEach((function(t,h){if(null===t)s.push(null);else{var d=[];t.forEach((function(t){var s={x:a[h]+r(o/2)},f=t.value||t,u=c*(f-e)/(i-e);u*=l,s.y=n.height-r(u)-n.area[2],d.push(s)})),s.push(d)}})),s}function j(t,i,a,o,n,r){var l=Math.round,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:1,c="center";("line"==r.type||"area"==r.type)&&(c=r.xAxis.boundaryGap);var h=[],d=r.height-r.area[0]-r.area[2],f=r.width-r.area[1]-r.area[3];return t.forEach((function(t,u){if(null===t)h.push(null);else{var p={color:t.color,x:o[u]},x=t;if("object"==e(t)&&null!==t)if(t.constructor==Array){var g,v,m;g=[].concat(r.chartData.xAxisData.ranges),v=g.shift(),m=g.pop(),x=t[1],p.x=r.area[3]+f*(t[0]-v)/(m-v)}else x=t.value;"center"==c&&(p.x+=l(n/2));var y=d*(x-i)/(a-i);y*=s,p.y=r.height-l(y)-r.area[2],h.push(p)}})),h}function N(t,e,i,a,o,n,r,l,s){var c=Math.round,h=9<arguments.length&&void 0!==arguments[9]?arguments[9]:1,d=[],f=n.height-n.area[0]-n.area[2];return t.forEach((function(t,r){if(null===t)d.push(null);else{var u={color:t.color,x:a[r]+c(o/2)};if(0<l){for(var p=0,x=0;x<=l;x++)p+=s[x].data[r];var g=p-t,v=f*(p-e)/(i-e),m=f*(g-e)/(i-e)}else p=t,v=f*(p-e)/(i-e),m=0;var y=m;v*=h,y*=h,u.y=n.height-c(v)-n.area[2],u.y0=n.height-c(y)-n.area[2],d.push(u)}})),d}function X(t,i,a,o){var n,r=Math.min,l=Math.max,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:-1;n="stack"==o?g(t,i.categories.length):x(t);var c=[];n=n.filter((function(t){return"object"==e(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"==e(t)?t.constructor==Array?"candle"==i.type?t.map((function(t){c.push(t)})):c.push(t[1]):c.push(t.value):c.push(t)}));var h=0,d=0;if(0<c.length&&(h=r.apply(this,c),d=l.apply(this,c)),-1<s?("number"==typeof i.yAxis.data[s].min&&(h=r(i.yAxis.data[s].min,h)),"number"==typeof i.yAxis.data[s].max&&(d=l(i.yAxis.data[s].max,d))):("number"==typeof i.yAxis.min&&(h=r(i.yAxis.min,h)),"number"==typeof i.yAxis.max&&(d=l(i.yAxis.max,d))),h===d){var f=d||10;d+=f}for(var p=u(h,d),v=p.minRange,m=p.maxRange,y=[],b=(m-v)/i.yAxis.splitNumber,w=0;w<=i.yAxis.splitNumber;w++)y.push(v+b*w);return y.reverse()}function q(t,e,i){var a=Math.max,r=o({},{type:""},e.extra.column),l=e.yAxis.data.length,s=Array(l);if(0<l){for(var c=0;c<l;c++){s[c]=[];for(var h=0;h<t.length;h++)t[h].index==c&&s[c].push(t[h])}for(var d,f=Array(l),u=Array(l),x=Array(l),g=function(t,o){o=e.yAxis.data[t],1==e.yAxis.disabled&&(o.disabled=!0),f[t]=X(s[t],e,i,r.type,t);var l=o.fontSize||i.fontSize;x[t]={position:o.position?o.position:"left",width:0},u[t]=f[t].map((function(e){return d=o,e=n.toFixed(e,6),e=o.format?o.format(+e):e,x[t].width=a(x[t].width,p(e,l)+5),e}));var c=o.calibration?4*e.pixelRatio:0;x[t].width+=c+3*e.pixelRatio,!0===o.disabled&&(x[t].width=0),d=o},v=0;v<l;v++)g(v,d)}else{f=[,],u=[,],x=[,];f[0]=X(t,e,i,r.type),x[0]={position:"left",width:0};var m=e.yAxis.fontSize||i.fontSize;u[0]=f[0].map((function(t){return t=n.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(+t):t,x[0].width=a(x[0].width,p(t,m)+5),t})),x[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(x[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:u,ranges:f,yAxisWidth:x}}function G(t,e){var i=Math.PI;!0===e.rotateLock?!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*i/180),e._rotate_=!0):(t.translate(e.height,0),t.rotate(90*i/180))}function Q(t,e,i,a,o){a.beginPath(),"hollow"==o.dataPointShapeType?(a.setStrokeStyle(e),a.setFillStyle(o.background),a.setLineWidth(2*o.pixelRatio)):(a.setStrokeStyle("#ffffff"),a.setFillStyle(e),a.setLineWidth(1*o.pixelRatio)),"diamond"===i?t.forEach((function(t){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y),a.lineTo(t.x,t.y+4.5),a.lineTo(t.x+4.5,t.y),a.lineTo(t.x,t.y-4.5))})):"circle"===i?t.forEach((function(t){null!==t&&(a.moveTo(t.x+2.5*o.pixelRatio,t.y),a.arc(t.x,t.y,3*o.pixelRatio,0,2*Math.PI,!1))})):"rect"===i?t.forEach((function(t){null!==t&&(a.moveTo(t.x-3.5,t.y-3.5),a.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"==i&&t.forEach((function(t){null!==t&&(a.moveTo(t.x,t.y-4.5),a.lineTo(t.x-4.5,t.y+4.5),a.lineTo(t.x+4.5,t.y+4.5),a.lineTo(t.x,t.y-4.5))})),a.closePath(),a.fill(),a.stroke()}function U(t,e,i,a){var o=t.title.fontSize||e.titleFontSize,n=t.subtitle.fontSize||e.subtitleFontSize,r=t.title.name||"",l=t.subtitle.name||"",s=t.title.color||e.titleColor,c=t.subtitle.color||e.subtitleColor,h=r?o:0,d=l?n:0;if(l){var f=p(l,n),u=a.x-f/2+(t.subtitle.offsetX||0),x=a.y+n/2+(t.subtitle.offsetY||0);r&&(x+=(h+5)/2),i.beginPath(),i.setFontSize(n),i.setFillStyle(c),i.fillText(l,u,x),i.closePath(),i.stroke()}if(r){var g=p(r,o),v=a.x-g/2+(t.title.offsetX||0),m=a.y+o/2+(t.title.offsetY||0);l&&(m-=(d+5)/2),i.beginPath(),i.setFontSize(o),i.setFillStyle(s),i.fillText(r,v,m),i.closePath(),i.stroke()}}function J(t,i,a,o){var n=i.data;t.forEach((function(t,r){if(null!==t){o.beginPath(),o.setFontSize(i.textSize||a.fontSize),o.setFillStyle(i.textColor||"#666666");var l=n[r];"object"==e(n[r])&&null!==n[r]&&(l=n[r].constructor==Array?n[r][1]:n[r].value);var s=i.format?i.format(l):l;o.fillText(s+"",t.x-p(s,i.textSize||a.fontSize)/2,t.y-4),o.closePath(),o.stroke()}}))}function Y(t,e,i,a,o,n){var r=Math.PI;e-=t.width/2+o.gaugeLabelTextMargin;for(var l=t.startAngle-t.endAngle+1,s=l/t.splitLine.splitNumber,c=t.endNumber-t.startNumber,h=c/t.splitLine.splitNumber,d=t.startAngle,f=t.startNumber,u=0;u<t.splitLine.splitNumber+1;u++){var x={x:e*Math.cos(d*r),y:e*Math.sin(d*r)},g=t.labelFormat?t.labelFormat(f):f;x.x+=i.x-p(g)/2,x.y+=i.y;var v=x.x,m=x.y;n.beginPath(),n.setFontSize(o.fontSize),n.setFillStyle(t.labelColor||"#666666"),n.fillText(g,v,m+o.fontSize/2),n.closePath(),n.stroke(),d+=s,2<=d&&(d%=2),f+=h}}function $(t,e,i,a,o,r){var l=a.extra.radar||{};e+=o.radarLabelTextMargin,t.forEach((function(t,s){var c={x:e*Math.cos(t),y:e*Math.sin(t)},d=h(c.x,c.y,i),f=d.x,u=d.y;n.approximatelyEqual(c.x,0)?f-=p(a.categories[s]||"")/2:0>c.x&&(f-=p(a.categories[s]||"")),r.beginPath(),r.setFontSize(o.fontSize),r.setFillStyle(l.labelColor||"#666666"),r.fillText(a.categories[s]||"",f,u+o.fontSize/2),r.closePath(),r.stroke()}))}function Z(t,e,i,a,o,r){for(var l=Math.cos,s=Math.sin,c=Math.min,f=Math.max,u=Math.PI,x=i.pieChartLinePadding,g=[],v=null,m=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):n.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var i=2*u-(t._start_+2*u*t._proportion_/2),a=t.color,o=t._radius_;return{arc:i,text:e,color:a,radius:o,textColor:t.textColor,textSize:t.textSize}})),y=0;y<m.length;y++){var b=m[y],w=l(b.arc)*(b.radius+x),_=s(b.arc)*(b.radius+x),A=l(b.arc)*b.radius,S=s(b.arc)*b.radius,T=0<=w?w+i.pieChartTextPadding:w-i.pieChartTextPadding,P=_,D=p(b.text,b.textSize||i.fontSize),C=P;v&&n.isSameXCoordinateArea(v.start,{x:T})&&(C=0<T?c(P,v.start.y):0>w||0<P?f(P,v.start.y):c(P,v.start.y)),0>T&&(T-=D);var L={lineStart:{x:A,y:S},lineEnd:{x:w,y:_},start:{x:T,y:C},width:D,height:i.fontSize,text:b.text,color:b.color,textColor:b.textColor,textSize:b.textSize};v=d(L,v),g.push(v)}for(var k=0;k<g.length;k++){var F=g[k],R=h(F.lineStart.x,F.lineStart.y,r),M=h(F.lineEnd.x,F.lineEnd.y,r),z=h(F.start.x,F.start.y,r);a.setLineWidth(1*e.pixelRatio),a.setFontSize(i.fontSize),a.beginPath(),a.setStrokeStyle(F.color),a.setFillStyle(F.color),a.moveTo(R.x,R.y);var I=0>F.start.x?z.x+F.width:z.x,O=0>F.start.x?z.x-5:z.x+5;a.quadraticCurveTo(M.x,M.y,I,z.y),a.moveTo(R.x,R.y),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(z.x+F.width,z.y),a.arc(I,z.y,2,0,2*u),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(F.textSize||i.fontSize),a.setFillStyle(F.textColor||"#666666"),a.fillText(F.text,O,z.y+3),a.closePath(),a.stroke(),a.closePath()}}function K(t,e,i){for(var a,n=o({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),l=t.area[3],s=t.width-t.area[1],c=function(t,e){for(var i,a,o=e.height-e.area[0]-e.area[2],n=0;n<t.length;n++){t[n].yAxisIndex=t[n].yAxisIndex?t[n].yAxisIndex:0;var r=[].concat(e.chartData.yAxisData.ranges[t[n].yAxisIndex]);i=r.pop(),a=r.shift();var l=o*(t[n].value-i)/(a-i);t[n].y=e.height-Math.round(l)-e.area[2]}return t}(n.data,t),h=0;h<c.length;h++)if(a=o({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},c[h]),"dash"==n.type&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(a.lineColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(l,a.y),i.lineTo(s,a.y),i.stroke(),i.setLineDash([]),a.showLabel){var d=t.yAxis.format?t.yAxis.format(+a.value):a.value;i.setFontSize(e.fontSize);var f=p(d,e.fontSize),u=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,x=Math.max(t.area[3],f+2*e.toolTipPadding),g=x-u,v=a.y;i.setFillStyle(r(a.labelBgColor,a.labelBgOpacity)),i.setStrokeStyle(a.labelBgColor),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.rect(u,v-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(a.labelFontColor),i.fillText(d+"",u+(g-f)/2,v+.5*e.fontSize),i.stroke()}}function V(t,e,i,a,n){var l=o({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),s=e.area[0],c=e.height-e.area[2];a.beginPath(),a.setFillStyle(r(l.activeBgColor,l.activeBgOpacity)),a.rect(t-n/2,s,n,c-s),a.closePath(),a.fill()}function tt(t,e,i,a,n){var l=Math.round,s=o({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},i.extra.tooltip),c=4*i.pixelRatio,h=5*i.pixelRatio,d=8*i.pixelRatio,f=!1;("line"==i.type||"area"==i.type||"candle"==i.type||"mix"==i.type)&&function(t,e,i,a){var o=e.extra.tooltip||{};o.gridType=null==o.gridType?"solid":o.gridType,o.dashLength=null==o.dashLength?4:o.dashLength;var n=e.area[0],l=e.height-e.area[2];if("dash"==o.gridType&&a.setLineDash([o.dashLength,o.dashLength]),a.setStrokeStyle(o.gridColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),a.beginPath(),a.moveTo(t,n),a.lineTo(t,l),a.stroke(),a.setLineDash([]),o.xAxisLabel){var s=e.categories[e.tooltip.index];a.setFontSize(i.fontSize);var c=p(s,i.fontSize),h=t-.5*c,d=l;a.beginPath(),a.setFillStyle(r(o.labelBgColor||i.toolTipBackground,o.labelBgOpacity||i.toolTipOpacity)),a.setStrokeStyle(o.labelBgColor||i.toolTipBackground),a.setLineWidth(1*e.pixelRatio),a.rect(h-i.toolTipPadding,d,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelFontColor||i.fontColor),a.fillText(s+"",h,d+i.toolTipPadding+i.fontSize),a.closePath(),a.stroke()}}(i.tooltip.offset.x,i,a,n),e=o({x:0,y:0},e),e.y-=8*i.pixelRatio;var u=t.map((function(t){return p(t.text,a.fontSize)})),x=c+h+4*a.toolTipPadding+Math.max.apply(null,u),g=2*a.toolTipPadding+t.length*a.toolTipLineHeight;0==s.showBox||(e.x-Math.abs(i._scrollDistance_)+d+x>i.width&&(f=!0),g+e.y>i.height&&(e.y=i.height-g),n.beginPath(),n.setFillStyle(r(s.bgColor||a.toolTipBackground,s.bgOpacity||a.toolTipOpacity)),f?(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x-d,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x-d,e.y),n.lineTo(e.x-d-l(x),e.y),n.lineTo(e.x-d-l(x),e.y+g),n.lineTo(e.x-d,e.y+g),n.lineTo(e.x-d,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)):(n.moveTo(e.x,e.y+10*i.pixelRatio),n.lineTo(e.x+d,e.y+10*i.pixelRatio-5*i.pixelRatio),n.lineTo(e.x+d,e.y),n.lineTo(e.x+d+l(x),e.y),n.lineTo(e.x+d+l(x),e.y+g),n.lineTo(e.x+d,e.y+g),n.lineTo(e.x+d,e.y+10*i.pixelRatio+5*i.pixelRatio),n.lineTo(e.x,e.y+10*i.pixelRatio)),n.closePath(),n.fill(),t.forEach((function(t,i){if(null!==t.color){n.beginPath(),n.setFillStyle(t.color);var o=e.x+d+2*a.toolTipPadding,r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding+1;f&&(o=e.x-x-d+2*a.toolTipPadding),n.fillRect(o,r,c,a.fontSize),n.closePath()}})),t.forEach((function(t,i){var o=e.x+d+2*a.toolTipPadding+c+h;f&&(o=e.x-x-d+2*a.toolTipPadding+ +c+h);var r=e.y+(a.toolTipLineHeight-a.fontSize)/2+a.toolTipLineHeight*i+a.toolTipPadding;n.beginPath(),n.setFontSize(a.fontSize),n.setFillStyle(s.fontColor),n.fillText(t.text,o,r+a.fontSize),n.closePath(),n.stroke()})))}function et(t,e,i,a,n,l){var s=t.extra.tooltip||{};s.horizentalLine&&t.tooltip&&1===a&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&function(t,e,i,a){var n=Math.max,l=o({},{gridType:"solid",dashLength:4},t.extra.tooltip),s=t.area[3],c=t.width-t.area[1];if("dash"==l.gridType&&i.setLineDash([l.dashLength,l.dashLength]),i.setStrokeStyle(l.gridColor||"#cccccc"),i.setLineWidth(1*t.pixelRatio),i.beginPath(),i.moveTo(s,t.tooltip.offset.y),i.lineTo(c,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),l.yAxisLabel)for(var h=function(t,e,i){for(var a=[].concat(i.chartData.yAxisData.ranges),o=i.height-i.area[0]-i.area[2],n=i.area[0],r=[],l=0;l<a.length;l++){var s=a[l].shift(),c=a[l].pop(),h=s-(s-c)*(t-n)/o;h=i.yAxis.data[l].format?i.yAxis.data[l].format(+h):h.toFixed(0),r.push(h+"")}return r}(t.tooltip.offset.y,t.series,t),d=t.chartData.yAxisData.yAxisWidth,f=t.area[3],u=t.width-t.area[1],x=0;x<h.length;x++){i.setFontSize(e.fontSize);var g,v=void 0,m=void 0,y=p(h[x],e.fontSize);"left"==d[x].position?(v=f-d[x].width,m=n(v,v+y+2*e.toolTipPadding)):(v=u,m=n(v+d[x].width,v+y+2*e.toolTipPadding)),g=m-v;var b=v+(g-y)/2,w=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(r(l.labelBgColor||e.toolTipBackground,l.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(l.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pixelRatio),i.rect(v,w-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(l.labelFontColor||e.fontColor),i.fillText(h[x],b,w+.5*e.fontSize),i.closePath(),i.stroke(),"left"==d[x].position?f-=d[x].width+t.yAxis.padding:u+=d[x].width+t.yAxis.padding}}(t,e,i),i.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&i.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&tt(t.tooltip.textList,t.tooltip.offset,t,e,i),i.restore()}function it(t,e,i,a){var o=Math.ceil,n=e.chartData.xAxisData,r=n.xAxisPoints,l=n.startX,s=n.endX,c=n.eachSpacing,h="center";("line"==e.type||"area"==e.type)&&(h=e.xAxis.boundaryGap);var d=e.height-e.area[2],f=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var u=e.height-e.area[2]+i.xAxisHeight,x=s-l,g=c*(r.length-1),v=0;e._scrollDistance_&&(v=-e._scrollDistance_*x/g),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),a.moveTo(l,u),a.lineTo(s,u),a.stroke(),a.closePath(),a.beginPath(),a.setLineCap("round"),a.setLineWidth(6*e.pixelRatio),a.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),a.moveTo(l+v,u),a.lineTo(l+v+x*x/g,u),a.stroke(),a.closePath(),a.setLineCap("butt")}if(a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),r.forEach((function(t,i){0<i&&(a.beginPath(),a.moveTo(t-c/2,d),a.lineTo(t-c/2,d+3*e.pixelRatio),a.closePath(),a.stroke())}))),!0!==e.xAxis.disableGrid&&(a.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),a.setLineCap("butt"),a.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&a.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,i){0==i%e.xAxis.gridEval&&(a.beginPath(),a.moveTo(t,d),a.lineTo(t,f),a.stroke())})),a.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?o(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var y=o(t.length/m),b=[],w=t.length,_=0;_<w;_++)0==_%y?b.push(t[_]):b.push("");b[w-1]=t[w-1];var A=e.xAxis.fontSize||i.fontSize;0===i._xAxisTextAngle_?b.forEach((function(t,o){var n=-p(t+"",A)/2;"center"==h&&(n+=c/2);var l=0;e.xAxis.scrollShow&&(l=6*e.pixelRatio),a.beginPath(),a.setFontSize(A),a.setFillStyle(e.xAxis.fontColor||"#666666"),a.fillText(t+"",r[o]+n,d+A+(i.xAxisHeight-l-A)/2),a.closePath(),a.stroke()})):b.forEach((function(t,o){a.save(),a.beginPath(),a.setFontSize(A),a.setFillStyle(e.xAxis.fontColor||"#666666");var n=p(t+"",A),l=-n;"center"==h&&(l+=c/2);var s=function(t,e,i){var a=t,o=i-e,n=a+(i-o-a)/1.4142135623730951;return n*=-1,{transX:n,transY:.41421356237309515*(i-o)-(i-o-a)/1.4142135623730951}}(r[o]+c/2,d+A/2+5,e.height),f=s.transX,u=s.transY;a.rotate(-1*i._xAxisTextAngle_),a.translate(f,u),a.fillText(t+"",r[o]+l,d+A+5),a.closePath(),a.stroke(),a.restore()}))}a.restore(),e.xAxis.axisLine&&(a.beginPath(),a.setStrokeStyle(e.xAxis.axisLineColor),a.setLineWidth(1*e.pixelRatio),a.moveTo(l,e.height-e.area[2]),a.lineTo(s,e.height-e.area[2]),a.stroke())}function at(t,e,i,a){if(!0!==e.yAxis.disableGrid){for(var o=e.height-e.area[0]-e.area[2],n=o/e.yAxis.splitNumber,r=e.area[3],l=e.chartData.xAxisData.xAxisPoints,s=e.chartData.xAxisData.eachSpacing,c=s*(l.length-1),h=[],d=0;d<e.yAxis.splitNumber+1;d++)h.push(e.height-e.area[2]-n*d);a.save(),e._scrollDistance_&&0!==e._scrollDistance_&&a.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&a.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),a.setStrokeStyle(e.yAxis.gridColor),a.setLineWidth(1*e.pixelRatio),h.forEach((function(t){a.beginPath(),a.moveTo(r,t),a.lineTo(r+c,t),a.stroke()})),a.setLineDash([]),a.restore()}}function ot(t,e,i,a){if(!0!==e.yAxis.disabled){var o=e.height-e.area[0]-e.area[2],n=o/e.yAxis.splitNumber,r=e.area[3],l=e.width-e.area[1],s=e.height-e.area[2],c=s+i.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pixelRatio),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+3),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),0>e._scrollDistance_&&a.fillRect(0,0,r,c),1==e.enableScroll&&a.fillRect(l,0,e.width,c),a.closePath(),a.stroke();for(var h=[],d=0;d<=e.yAxis.splitNumber;d++)h.push(e.area[0]+n*d);for(var f,u=e.area[3],x=e.width-e.area[1],g=function(t,o){if(t=e.yAxis.data[o],!0!==t.disabled){var n=e.chartData.yAxisData.rangesFormat[o],r=t.fontSize||i.fontSize,l=e.chartData.yAxisData.yAxisWidth[o];if(n.forEach((function(i,o){var n=h[o]?h[o]:s;a.beginPath(),a.setFontSize(r),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(t.axisLineColor||"#cccccc"),a.setFillStyle(t.fontColor||"#666666"),"left"==l.position?(a.fillText(i+"",u-l.width,n+r/2),1==t.calibration&&(a.moveTo(u,n),a.lineTo(u-3*e.pixelRatio,n))):(a.fillText(i+"",x+4*e.pixelRatio,n+r/2),1==t.calibration&&(a.moveTo(x,n),a.lineTo(x+3*e.pixelRatio,n))),a.closePath(),a.stroke()})),!1!==t.axisLine&&(a.beginPath(),a.setStrokeStyle(t.axisLineColor||"#cccccc"),a.setLineWidth(1*e.pixelRatio),"left"==l.position?(a.moveTo(u,e.height-e.area[2]),a.lineTo(u,e.area[0])):(a.moveTo(x,e.height-e.area[2]),a.lineTo(x,e.area[0])),a.stroke()),e.yAxis.showTitle){var c=t.titleFontSize||i.fontSize,d=t.title;a.beginPath(),a.setFontSize(c),a.setFillStyle(t.titleFontColor||"#666666"),"left"==l.position?a.fillText(d,u-p(d,c)/2,e.area[0]-10*e.pixelRatio):a.fillText(d,x-p(d,c)/2,e.area[0]-10*e.pixelRatio),a.closePath(),a.stroke()}"left"==l.position?u-=l.width+e.yAxis.padding:x+=l.width+e.yAxis.padding}f=t},v=0;v<e.yAxis.data.length;v++)g(f,v)}}function nt(t,e,i,a,o){if(!1!==e.legend.show){var n=o.legendData,r=n.points,l=n.area,s=e.legend.padding,c=e.legend.fontSize,h=15*e.pixelRatio,d=5*e.pixelRatio,f=e.legend.itemGap,u=Math.max(e.legend.lineHeight*e.pixelRatio,c);a.beginPath(),a.setLineWidth(e.legend.borderWidth),a.setStrokeStyle(e.legend.borderColor),a.setFillStyle(e.legend.backgroundColor),a.moveTo(l.start.x,l.start.y),a.rect(l.start.x,l.start.y,l.width,l.height),a.closePath(),a.fill(),a.stroke(),r.forEach((function(t,o){var r,x=0;x=n.widthArr[o],r=n.heightArr[o];var g=0,v=0;"top"==e.legend.position||"bottom"==e.legend.position?(g=l.start.x+(l.width-x)/2,v=l.start.y+s+o*u):(x=0==o?0:n.widthArr[o-1],g=l.start.x+s+x,v=l.start.y+s+(l.height-r)/2),a.setFontSize(i.fontSize);for(var m,y=0;y<t.length;y++){switch(m=t[y],m.area=[0,0,0,0],m.area[0]=g,m.area[1]=v,m.area[3]=v+u,a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),a.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":a.moveTo(g,v+.5*u-2*e.pixelRatio),a.fillRect(g,v+.5*u-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":a.moveTo(g+7.5*e.pixelRatio,v+.5*u-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,v+.5*u+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,v+.5*u+5*e.pixelRatio),a.lineTo(g+7.5*e.pixelRatio,v+.5*u-5*e.pixelRatio);break;case"diamond":a.moveTo(g+7.5*e.pixelRatio,v+.5*u-5*e.pixelRatio),a.lineTo(g+2.5*e.pixelRatio,v+.5*u),a.lineTo(g+7.5*e.pixelRatio,v+.5*u+5*e.pixelRatio),a.lineTo(g+12.5*e.pixelRatio,v+.5*u),a.lineTo(g+7.5*e.pixelRatio,v+.5*u-5*e.pixelRatio);break;case"circle":a.moveTo(g+7.5*e.pixelRatio,v+.5*u),a.arc(g+7.5*e.pixelRatio,v+.5*u,5*e.pixelRatio,0,2*Math.PI);break;case"rect":a.moveTo(g,v+.5*u-5*e.pixelRatio),a.fillRect(g,v+.5*u-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:a.moveTo(g,v+.5*u-5*e.pixelRatio),a.fillRect(g,v+.5*u-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}a.closePath(),a.fill(),a.stroke(),g+=h+d,a.beginPath(),a.setFontSize(c),a.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),a.fillText(m.name,g,v+(.5*u+.5*c-2)),a.closePath(),a.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=p(m.name,c)+f,m.area[2]=g):(m.area[2]=g+p(m.name,c)+f,g-=h+d,v+=u)}}))}}function rt(t,e,i){i=0==i?1:i;for(var a=[],o=0;o<i;o++)a[o]=Math.random();return Math.floor(a.reduce((function(t,e){return t+e}))/i*(e-t))+t}function lt(t,e,i,a){for(var o=!1,n=0;n<e.length;n++)if(e[n].area){if(!(t[3]<e[n].area[1]||t[0]>e[n].area[2]||t[1]>e[n].area[3]||t[2]<e[n].area[0])){o=!0;break}if(0>t[0]||0>t[1]||t[2]>i||t[3]>a){o=!0;break}o=!1}return o}function st(t,e,i,a,o,n){return{x:(e-i.xMin)*a+o,y:(i.yMax-t)*a+n}}function ct(t,e,i){if(e[1]==i[1])return!1;if(e[1]>t[1]&&i[1]>t[1])return!1;if(e[1]<t[1]&&i[1]<t[1])return!1;if(e[1]==t[1]&&i[1]>t[1])return!1;if(i[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&i[1]<t[1])return!1;var a=i[0]-(i[0]-e[0])*(i[1]-t[1])/(i[1]-e[1]);return!(a<t[0])}function ht(t,e){for(var i,a=0,o=0;o<e.length;o++){i=e[o][0],1==e.length&&(i=e[o][0]);for(var n=0;n<i.length-1;n++){var r=i[n],l=i[n+1];ct(t,r,l)&&(a+=1)}}return!(1!=a%2)}function dt(t,e,i,a,o,r,l){for(var s=Math.PI,c=0;c<t.length;c++){var h=void 0,d=void 0,f=void 0,u=void 0,x=t[c],g=x.format?x.format(+x._proportion_.toFixed(2)):n.toFixed(100*x._proportion_)+"%";"right"==o?(h=0==c?(x.funnelArea[2]+l.x)/2:(x.funnelArea[2]+t[c-1].funnelArea[2])/2,d=h+2*r,f=x.funnelArea[1]+a/2,u=x.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(x.color),i.setFillStyle(x.color),i.beginPath(),i.moveTo(h,f),i.lineTo(d,f),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,f),i.arc(d,f,2,0,2*s),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(u),i.setFillStyle(x.textColor||"#666666"),i.fillText(g,d+5,f+u/2-2),i.closePath(),i.stroke(),i.closePath()):(h=0==c?(x.funnelArea[0]+l.x)/2:(x.funnelArea[0]+t[c-1].funnelArea[0])/2,d=h-2*r,f=x.funnelArea[1]+a/2,u=x.textSize||e.fontSize,i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(x.color),i.setFillStyle(x.color),i.beginPath(),i.moveTo(h,f),i.lineTo(d,f),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(d,f),i.arc(d,f,2,0,2*s),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(u),i.setFillStyle(x.textColor||"#666666"),i.fillText(g,d-5-p(g),f+u/2-2),i.closePath(),i.stroke(),i.closePath())}}function ft(t,e){e.draw()}var ut={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){var e=Math.pow;return 1>(t/=.5)?.5*e(t,3):.5*(e(t-2,3)+2)},linear:function(t){return t}};function pt(t){this.isStop=!1,t.duration="undefined"==typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=function(){return"undefined"==typeof setTimeout?"undefined"==typeof requestAnimationFrame?function(t){t(null)}:requestAnimationFrame:function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}}(),i=null,a=function(o){if(null===o||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===i&&(i=o),o-i<t.duration){var n=(o-i)/t.duration,r=ut[t.timing];n=r(n),t.onProcess&&t.onProcess(n),e(a,17)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};a=a.bind(this),e(a,17)}function xt(t,e,i,a){var l=this,s=e.series,d=e.categories;s=f(s,e,i);var u=e.animation?e.duration:0;l.animationInstance&&l.animationInstance.stop();var x=null;if("candle"==t){var g=o({},e.extra.candle.average);g.show?(x=function(t,e,i,a){for(var o,n=[],r=0;r<t.length;r++){o={data:[],name:e[r],color:i[r]};for(var l=0,s=a.length;l<s;l++)if(l<t[r])o.data.push(null);else{for(var c=0,h=0;h<t[r];h++)c+=a[l-h][1];o.data.push(+(c/t[r]).toFixed(3))}n.push(o)}return n}(g.day,g.name,g.color,s[0].data),x=f(x,e,i),e.seriesMA=x):x=e.seriesMA?e.seriesMA=f(e.seriesMA,e,i):s}else x=s;e._series_=s=function(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}(s),e.area=[,,,,];for(var v=0;4>v;v++)e.area[v]=e.padding[v];var m=function(t,e,i,a){var o=Math.max,n=Math.floor,r={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 a.legendData=r,r;var l=e.legend.padding,s=e.legend.margin,c=e.legend.fontSize,h=15*e.pixelRatio,d=5*e.pixelRatio,f=o(e.legend.lineHeight*e.pixelRatio,c);if("top"==e.legend.position||"bottom"==e.legend.position){for(var u=[],x=0,g=[],v=[],m=0;m<t.length;m++){var y=t[m],b=h+d+p(y.name||"undefined",c)+e.legend.itemGap;x+b>e.width-e.padding[1]-e.padding[3]?(u.push(v),g.push(x-e.legend.itemGap),x=b,v=[y]):(x+=b,v.push(y))}if(v.length){u.push(v),g.push(x-e.legend.itemGap),r.widthArr=g;var w=o.apply(null,g);switch(e.legend.float){case"left":r.area.start.x=e.padding[3],r.area.end.x=e.padding[3]+2*l;break;case"right":r.area.start.x=e.width-e.padding[1]-w-2*l,r.area.end.x=e.width-e.padding[1];break;default:r.area.start.x=(e.width-w)/2-l,r.area.end.x=(e.width+w)/2+l}r.area.width=w+2*l,r.area.wholeWidth=w+2*l,r.area.height=u.length*f+2*l,r.area.wholeHeight=u.length*f+2*l+2*s,r.points=u}}else{var _=t.length,A=e.height-e.padding[0]-e.padding[2]-2*s-2*l,S=Math.min(n(A/f),_);switch(r.area.height=S*f+2*l,r.area.wholeHeight=S*f+2*l,e.legend.float){case"top":r.area.start.y=e.padding[0]+s,r.area.end.y=e.padding[0]+s+r.area.height;break;case"bottom":r.area.start.y=e.height-e.padding[2]-s-r.area.height,r.area.end.y=e.height-e.padding[2]-s;break;default:r.area.start.y=(e.height-r.area.height)/2,r.area.end.y=(e.height+r.area.height)/2}for(var T,P=0==_%S?_/S:n(_/S+1),D=[],C=0;C<P;C++)T=t.slice(C*S,C*S+S),D.push(T);if(r.points=D,D.length){for(var L=0;L<D.length;L++){for(var k,F=D[L],R=0,M=0;M<F.length;M++)k=h+d+p(F[M].name||"undefined",c)+e.legend.itemGap,k>R&&(R=k);r.widthArr.push(R),r.heightArr.push(F.length*f+2*l)}for(var z=0,I=0;I<r.widthArr.length;I++)z+=r.widthArr[I];r.area.width=z-e.legend.itemGap+2*l,r.area.wholeWidth=r.area.width+l}}switch(e.legend.position){case"top":r.area.start.y=e.padding[0]+s,r.area.end.y=e.padding[0]+s+r.area.height;break;case"bottom":r.area.start.y=e.height-e.padding[2]-r.area.height-s,r.area.end.y=e.height-e.padding[2]-s;break;case"left":r.area.start.x=e.padding[3],r.area.end.x=e.padding[3]+r.area.width;break;case"right":r.area.start.x=e.width-e.padding[1]-r.area.width,r.area.end.x=e.width-e.padding[1]}return a.legendData=r,r}(x,e,0,e.chartData),w=m.area.wholeHeight,_=m.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=w;break;case"bottom":e.area[2]+=w;break;case"left":e.area[3]+=_;break;case"right":e.area[1]+=_}var A={},S=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(A=q(s,e,i),S=A.yAxisWidth,e.yAxis.showTitle){for(var T=0,X=0;X<e.yAxis.data.length;X++)T=Math.max(T,e.yAxis.data[X].titleFontSize?e.yAxis.data[X].titleFontSize:i.fontSize);e.area[0]+=(T+6)*e.pixelRatio}for(var tt=0,ct=0,ht=0;ht<S.length;ht++)"left"==S[ht].position?(e.area[3]+=0<ct?S[ht].width+e.yAxis.padding:S[ht].width,ct+=1):(e.area[1]+=0<tt?S[ht].width+e.yAxis.padding:S[ht].width,tt+=1)}else i.yAxisWidth=S;if(e.chartData.yAxisData=A,e.categories&&e.categories.length){e.chartData.xAxisData=W(e.categories,e);var ut=D(e.categories,e,i,e.chartData.xAxisData.eachSpacing),xt=ut.xAxisHeight,gt=ut.angle;i.xAxisHeight=xt,i._xAxisTextAngle_=gt,e.area[2]+=xt,e.chartData.categoriesData=ut}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=C(s,e,i),d=e.chartData.xAxisData.rangesFormat;var vt=D(d,e,i,e.chartData.xAxisData.eachSpacing),mt=vt.xAxisHeight,yt=vt.angle;i.xAxisHeight=mt,i._xAxisTextAngle_=yt,e.area[2]+=mt,e.chartData.categoriesData=vt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var bt,wt=e.chartData.xAxisData.xAxisPoints,_t=e.chartData.xAxisData.startX,At=e.chartData.xAxisData.endX,St=e.chartData.xAxisData.eachSpacing,Tt=St*(wt.length-1);bt=At-_t-Tt,l.scrollOption={currentOffset:bt,startTouchX:bt,distance:0,lastMoveTime:0},e._scrollDistance_=bt}switch(("pie"===t||"ring"===t||"rose"===t)&&(i._pieTextMaxLength_=!1===e.dataLabel?0:function(t){t=k(t);for(var e=0,i=0;i<t.length;i++){var a=t[i],o=a.format?a.format(+a._proportion_.toFixed(2)):n.toFixed(100*a._proportion_)+"%";e=Math.max(e,p(o))}return e}(x)),t){case"word":var Pt=o({},{type:"normal",autoColors:!0},e.extra.word);(1==e.updateData||null==e.updateData)&&(e.chartData.wordCloudData=function(t,e){var i=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var a=0;a<i.length;a++){for(var o=void 0,n=void 0,r=void 0,l=i[a].name,s=i[a].textSize,c=p(l,s),h=0;;){h++,o=rt(-t.width/2,t.width/2,5)-c/2,n=rt(-t.height/2,t.height/2,5)+s/2,r=[o-5+t.width/2,n-5-s+t.height/2,o+c+5+t.width/2,n+5+t.height/2];var d=lt(r,i,t.width,t.height);if(!d)break;if(1e3==h){r=[-100,-100,-100,-100];break}}i[a].area=r}break;case"vertical":for(var f=function(){return!!(.7<Math.random())},u=0;u<i.length;u++){for(var x=void 0,g=void 0,v=void 0,m=void 0,y=i[u].name,b=i[u].textSize,w=p(y,b),_=f(),A=0;;){A++;var S=void 0;if(_?(x=rt(-t.width/2,t.width/2,5)-w/2,g=rt(-t.height/2,t.height/2,5)+b/2,v=[g-5-w+t.width/2,-x-5+t.height/2,g+5+t.width/2,-x+b+5+t.height/2],m=[t.width-(t.width/2-t.height/2)-(-x+b+5+t.height/2)-5,t.height/2-t.width/2+(g-5-w+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-x+b+5+t.height/2)+b,t.height/2-t.width/2+(g-5-w+t.width/2)+w+5],S=lt(m,i,t.height,t.width)):(x=rt(-t.width/2,t.width/2,5)-w/2,g=rt(-t.height/2,t.height/2,5)+b/2,v=[x-5+t.width/2,g-5-b+t.height/2,x+w+5+t.width/2,g+5+t.height/2],S=lt(v,i,t.width,t.height)),!S)break;if(1e3==A){v=[-1e3,-1e3,-1e3,-1e3];break}}_?(i[u].area=m,i[u].areav=v):i[u].area=v,i[u].rotate=_}}return i}(e,Pt.type)),this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),function(t,e,i,a){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1;o({},{type:"normal",autoColors:!0},e.extra.word),a.beginPath(),a.setFillStyle(e.background||"#FFFFFF"),a.rect(0,0,e.width,e.height),a.fill(),a.save();var r=e.chartData.wordCloudData;a.translate(e.width/2,e.height/2);for(var l=0;l<r.length;l++){a.save(),r[l].rotate&&a.rotate(90*Math.PI/180);var s=r[l].name,c=r[l].textSize,h=p(s,c);a.beginPath(),a.setStrokeStyle(r[l].color),a.setFillStyle(r[l].color),a.setFontSize(c),r[l].rotate?0<r[l].areav[0]&&(e.tooltip&&e.tooltip.index==l?a.strokeText(s,(r[l].areav[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].areav[1]+5+c-e.height/2)*n):a.fillText(s,(r[l].areav[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].areav[1]+5+c-e.height/2)*n)):0<r[l].area[0]&&(e.tooltip&&e.tooltip.index==l?a.strokeText(s,(r[l].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].area[1]+5+c-e.height/2)*n):a.fillText(s,(r[l].area[0]+5-e.width/2)*n-h*(1-n)/2,(r[l].area[1]+5+c-e.height/2)*n)),a.stroke(),a.restore()}a.restore()}(s,e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"map":a.clearRect(0,0,e.width,e.height),function(t,e,i,a){var n,l,s=Math.abs,c=o({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),h=t,d=function(t){for(var e,i,a={xMin:180,xMax:0,yMin:90,yMax:0},o=0;o<t.length;o++){i=t[o].geometry.coordinates;for(var n=0;n<i.length;n++){e=i[n],1==e.length&&(e=e[0]);for(var r=0;r<e.length;r++){var l=e[r][0],s=e[r][1],c={x:l,y:s};a.xMin=a.xMin<c.x?a.xMin:c.x,a.xMax=a.xMax>c.x?a.xMax:c.x,a.yMin=a.yMin<c.y?a.yMin:c.y,a.yMax=a.yMax>c.y?a.yMax:c.y}}}return a}(h),f=e.width/s(d.xMax-d.xMin),u=e.height/s(d.yMax-d.yMin),x=f<u?f:u,g=e.width/2-s(d.xMax-d.xMin)/2*x,v=e.height/2-s(d.yMax-d.yMin)/2*x;a.beginPath(),a.clearRect(0,0,e.width,e.height),a.setFillStyle(e.background||"#FFFFFF"),a.rect(0,0,e.width,e.height),a.fill();for(var m=0;m<h.length;m++){a.beginPath(),a.setLineWidth(c.borderWidth*e.pixelRatio),a.setStrokeStyle(c.borderColor),a.setFillStyle(r(t[m].color,c.fillOpacity)),e.tooltip&&e.tooltip.index==m&&(a.setStrokeStyle(c.activeBorderColor),a.setFillStyle(r(c.activeFillColor,c.activeFillOpacity)));for(var y=h[m].geometry.coordinates,b=0;b<y.length;b++){n=y[b],1==n.length&&(n=n[0]);for(var w=0;w<n.length;w++)l=st(n[w][1],n[w][0],d,x,g,v),0==w?(a.beginPath(),a.moveTo(l.x,l.y)):a.lineTo(l.x,l.y);a.fill(),1==c.border&&a.stroke()}if(1==e.dataLabel){var _=h[m].properties.centroid;if(_){l=st(_[1],_[0],d,x,g,v);var A=h[m].textSize||i.fontSize,S=h[m].properties.name;a.beginPath(),a.setFontSize(A),a.setFillStyle(h[m].textColor||"#666666"),a.fillText(S,l.x-p(S,A)/2,l.y+A/2),a.closePath(),a.stroke()}}}e.chartData.mapData={bounds:d,scale:x,xoffset:g,yoffset:v},et(e,i,a,1),a.draw()}(s,e,i,a);break;case"funnel":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.funnelData=function(t,e,i,a){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,l=o({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},h=l.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-h,(e.height-e.area[0]-e.area[2])/2-h);t=F(t,d,n),a.save(),a.translate(c.x,c.y);for(var f=0;f<t.length;f++)0==f?(e.tooltip&&e.tooltip.index==f&&(a.beginPath(),a.setFillStyle(r(t[f].color,l.activeOpacity)),a.moveTo(-h,0),a.lineTo(-t[f].radius-h,-s),a.lineTo(t[f].radius+h,-s),a.lineTo(h,0),a.lineTo(-h,0),a.closePath(),a.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-s,c.x+t[f].radius,c.y],a.beginPath(),a.setLineWidth(l.borderWidth*e.pixelRatio),a.setStrokeStyle(l.borderColor),a.setFillStyle(r(t[f].color,l.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[f].radius,-s),a.lineTo(t[f].radius,-s),a.lineTo(0,0),a.closePath(),a.fill(),1==l.border&&a.stroke()):(e.tooltip&&e.tooltip.index==f&&(a.beginPath(),a.setFillStyle(r(t[f].color,l.activeOpacity)),a.moveTo(0,0),a.lineTo(-t[f-1].radius-h,0),a.lineTo(-t[f].radius-h,-s),a.lineTo(t[f].radius+h,-s),a.lineTo(t[f-1].radius+h,0),a.lineTo(0,0),a.closePath(),a.fill()),t[f].funnelArea=[c.x-t[f].radius,c.y-s*(f+1),c.x+t[f].radius,c.y-s*f],a.beginPath(),a.setLineWidth(l.borderWidth*e.pixelRatio),a.setStrokeStyle(l.borderColor),a.setFillStyle(r(t[f].color,l.fillOpacity)),a.moveTo(0,0),a.lineTo(-t[f-1].radius,0),a.lineTo(-t[f].radius,-s),a.lineTo(t[f].radius,-s),a.lineTo(t[f-1].radius,0),a.lineTo(0,0),a.closePath(),a.fill(),1==l.border&&a.stroke()),a.translate(0,-s);return a.restore(),!1!==e.dataLabel&&1===n&&dt(t,e,a,s,l.labelAlign,h,c),{center:c,radius:d,series:t}}(s,e,i,a,t),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new pt({timing:"easeIn",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),at(0,e,0,a),it(d,e,i,a);var n=function(t,e,i,a){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"straight",width:2},e.extra.line);r.width*=e.pixelRatio;var l=e.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,d=[];a.save();var f=0,u=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),f=-e._scrollDistance_-h+e.area[3],u=f+(e.xAxis.itemCount+4)*h),t.forEach((function(t){var o,l,p;o=[].concat(e.chartData.yAxisData.ranges[t.index]),l=o.pop(),p=o.shift();var x=t.data,g=j(x,l,p,s,h,e,i,n);d.push(g);var v=P(g);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pixelRatio,a.setLineDash([m,m])}a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(r.width),v.forEach((function(t){if(1===t.length)a.moveTo(t[0].x,t[0].y),a.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{a.moveTo(t[0].x,t[0].y);var e=0;if("curve"===r.type){for(var i,o=0;o<t.length;o++)if(i=t[o],0==e&&i.x>f&&(a.moveTo(i.x,i.y),e=1),0<o&&i.x>f&&i.x<u){var n=c(t,o-1);a.bezierCurveTo(n.ctrA.x,n.ctrA.y,n.ctrB.x,n.ctrB.y,i.x,i.y)}}else for(var l,s=0;s<t.length;s++)l=t[s],0==e&&l.x>f&&(a.moveTo(l.x,l.y),e=1),0<s&&l.x>f&&l.x<u&&a.lineTo(l.x,l.y);a.moveTo(t[0].x,t[0].y)}})),a.stroke(),a.setLineDash([]),!1!==e.dataPointShape&&Q(g,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===n&&t.forEach((function(t){var o,r,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),r=o.pop(),l=o.shift();var c=t.data,d=j(c,r,l,s,h,e,i,n);J(d,t,i,a)})),a.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:h}}(s,e,i,a,t),r=n.xAxisPoints,l=n.calPoints,h=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=h,ot(0,e,i,a),!1!==e.enableMarkLine&&1===t&&K(e,i,a),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new pt({timing:"easeIn",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),at(0,e,0,a),it(d,e,i,a);var o=function(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,n=e.chartData.xAxisData,l=n.xAxisPoints,s=n.eachSpacing,h=e.height-e.area[2],d=[],f=0,u=0;t.forEach((function(t){"column"==t.type&&(u+=1)})),a.save();var p=-2,x=l.length+2,g=0,v=e.width+s;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/s)-2,x=p+e.xAxis.itemCount+4,g=-e._scrollDistance_-s+e.area[3],v=g+(e.xAxis.itemCount+4)*s),t.forEach((function(t){var n,m,y;n=[].concat(e.chartData.yAxisData.ranges[t.index]),m=n.pop(),y=n.shift();var b=t.data,w=j(b,m,y,l,s,e,i,o);if(d.push(w),"column"==t.type){w=O(w,s,u,f,i,e);for(var _,A=0;A<w.length;A++)if(_=w[A],null!==_&&A>p&&A<x){a.beginPath(),a.setStrokeStyle(_.color||t.color),a.setLineWidth(1),a.setFillStyle(_.color||t.color);var S=_.x-_.width/2;e.height,_.y,e.area[2];a.moveTo(S,_.y),a.moveTo(S,_.y),a.lineTo(S+_.width-2,_.y),a.lineTo(S+_.width-2,e.height-e.area[2]),a.lineTo(S,e.height-e.area[2]),a.lineTo(S,_.y),a.closePath(),a.stroke(),a.fill(),a.closePath(),a.fill()}f+=1}if("area"==t.type)for(var T,D=P(w),C=0;C<D.length;C++){if(T=D[C],a.beginPath(),a.setStrokeStyle(t.color),a.setFillStyle(r(t.color,.2)),a.setLineWidth(2*e.pixelRatio),1<T.length){var L=T[0],k=T[T.length-1];a.moveTo(L.x,L.y);var F=0;if("curve"===t.style){for(var R,M=0;M<T.length;M++)if(R=T[M],0==F&&R.x>g&&(a.moveTo(R.x,R.y),F=1),0<M&&R.x>g&&R.x<v){var z=c(T,M-1);a.bezierCurveTo(z.ctrA.x,z.ctrA.y,z.ctrB.x,z.ctrB.y,R.x,R.y)}}else for(var I,B=0;B<T.length;B++)I=T[B],0==F&&I.x>g&&(a.moveTo(I.x,I.y),F=1),0<B&&I.x>g&&I.x<v&&a.lineTo(I.x,I.y);a.lineTo(k.x,h),a.lineTo(L.x,h),a.lineTo(L.x,L.y)}else{var E=T[0];a.moveTo(E.x-s/2,E.y),a.lineTo(E.x+s/2,E.y),a.lineTo(E.x+s/2,h),a.lineTo(E.x-s/2,h),a.moveTo(E.x-s/2,E.y)}a.closePath(),a.fill()}if("line"==t.type){var W=P(w);W.forEach((function(i){if("dash"==t.lineType){var o=t.dashLength?t.dashLength:8;o*=e.pixelRatio,a.setLineDash([o,o])}if(a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(2*e.pixelRatio),1===i.length)a.moveTo(i[0].x,i[0].y),a.arc(i[0].x,i[0].y,1,0,2*Math.PI);else{a.moveTo(i[0].x,i[0].y);var n=0;if("curve"==t.style){for(var r,l=0;l<i.length;l++)if(r=i[l],0==n&&r.x>g&&(a.moveTo(r.x,r.y),n=1),0<l&&r.x>g&&r.x<v){var s=c(i,l-1);a.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,r.x,r.y)}}else for(var h,d=0;d<i.length;d++)h=i[d],0==n&&h.x>g&&(a.moveTo(h.x,h.y),n=1),0<d&&h.x>g&&h.x<v&&a.lineTo(h.x,h.y);a.moveTo(i[0].x,i[0].y)}a.stroke(),a.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&Q(w,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===o){f=0;t.forEach((function(t){var n,r,c;n=[].concat(e.chartData.yAxisData.ranges[t.index]),r=n.pop(),c=n.shift();var h=t.data,d=j(h,r,c,l,s,e,i,o);"column"===t.type?(d=O(d,s,u,f,i,e),J(d,t,i,a),f+=1):J(d,t,i,a)}))}return a.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:s}}(s,e,i,a,t),n=o.xAxisPoints,l=o.calPoints,h=o.eachSpacing;e.chartData.xAxisPoints=n,e.chartData.calPoints=l,e.chartData.eachSpacing=h,ot(0,e,i,a),!1!==e.enableMarkLine&&1===t&&K(e,i,a),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new pt({timing:"easeIn",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),at(0,e,0,a),it(d,e,i,a);var n=function(t,e,i,a){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,l=r.xAxisPoints,s=r.eachSpacing,c=o({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),h=[];a.save();var d=-2,f=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/s)-2,f=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&V(e.tooltip.offset.x,e,0,a,s),t.forEach((function(o,r){var u,p,x;u=[].concat(e.chartData.yAxisData.ranges[o.index]),p=u.pop(),x=u.shift();var g=o.data;switch(c.type){case"group":var v=j(g,p,x,l,s,e,i,n),m=N(g,p,x,l,s,e,i,r,t,n);h.push(m),v=O(v,s,t.length,r,i,e);for(var y,b=0;b<v.length;b++)if(y=v[b],null!==y&&b>d&&b<f){a.beginPath(),a.setStrokeStyle(y.color||o.color),a.setLineWidth(1),a.setFillStyle(y.color||o.color);var w=y.x-y.width/2,_=e.height-y.y-e.area[2];a.moveTo(w,y.y),a.lineTo(w+y.width-2,y.y),a.lineTo(w+y.width-2,e.height-e.area[2]),a.lineTo(w,e.height-e.area[2]),a.lineTo(w,y.y),a.closePath(),a.stroke(),a.fill()}break;case"stack":v=N(g,p,x,l,s,e,i,r,t,n);h.push(v),v=E(v,s,t.length,0,i,e);for(var A,S=0;S<v.length;S++)if(A=v[S],null!==A&&S>d&&S<f){a.beginPath(),a.setFillStyle(A.color||o.color);w=A.x-A.width/2+1,_=e.height-A.y-e.area[2];var T=e.height-A.y0-e.area[2];0<r&&(_-=T),a.moveTo(w,A.y),a.fillRect(w,A.y,A.width-2,_),a.closePath(),a.fill()}break;case"meter":v=j(g,p,x,l,s,e,i,n);if(h.push(v),v=B(v,s,t.length,r,i,e,c.meter.border),0==r){for(var P,D=0;D<v.length;D++)if(P=v[D],null!==P&&D>d&&D<f){a.beginPath(),a.setFillStyle(c.meter.fillColor);w=P.x-P.width/2,_=e.height-P.y-e.area[2];a.moveTo(w,P.y),a.fillRect(w,P.y,P.width,_),a.closePath(),a.fill(),0<c.meter.border&&(a.beginPath(),a.setStrokeStyle(o.color),a.setLineWidth(c.meter.border*e.pixelRatio),a.moveTo(w+.5*c.meter.border,P.y+_),a.lineTo(w+.5*c.meter.border,P.y+.5*c.meter.border),a.lineTo(w+P.width-.5*c.meter.border,P.y+.5*c.meter.border),a.lineTo(w+P.width-.5*c.meter.border,P.y+_),a.stroke())}}else for(var C,L=0;L<v.length;L++)if(C=v[L],null!==C&&L>d&&L<f){a.beginPath(),a.setFillStyle(C.color||o.color);w=C.x-C.width/2,_=e.height-C.y-e.area[2];a.moveTo(w,C.y),a.fillRect(w,C.y,C.width,_),a.closePath(),a.fill()}}})),!1!==e.dataLabel&&1===n&&t.forEach((function(o,r){var h,d,f;h=[].concat(e.chartData.yAxisData.ranges[o.index]),d=h.pop(),f=h.shift();var u=o.data;switch(c.type){case"group":var p=j(u,d,f,l,s,e,i,n);p=O(p,s,t.length,r,i,e),J(p,o,i,a);break;case"stack":p=N(u,d,f,l,s,e,i,r,t,n);J(p,o,i,a);break;case"meter":p=j(u,d,f,l,s,e,i,n);J(p,o,i,a)}})),a.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:s}}(s,e,i,a,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,ot(0,e,i,a),!1!==e.enableMarkLine&&1===t&&K(e,i,a),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new pt({timing:"easeIn",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),at(0,e,0,a),it(d,e,i,a);var n=function(t,e,i,a){var n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,l=o({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,f=e.height-e.area[2],u=[];a.save();var p=0,x=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(a.translate(e._scrollDistance_,0),p=-e._scrollDistance_-d+e.area[3],x=p+(e.xAxis.itemCount+4)*d),t.forEach((function(t){var o,s,g;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),g=o.shift();var v=t.data,m=j(v,s,g,h,d,e,i,n);u.push(m);for(var y,b=P(m),w=0;w<b.length;w++){if(y=b[w],a.beginPath(),a.setStrokeStyle(r(t.color,l.opacity)),l.gradient){var _=a.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);_.addColorStop("0",r(t.color,l.opacity)),_.addColorStop("1.0",r("#FFFFFF",.1)),a.setFillStyle(_)}else a.setFillStyle(r(t.color,l.opacity));if(a.setLineWidth(l.width*e.pixelRatio),1<y.length){var A=y[0],S=y[y.length-1];a.moveTo(A.x,A.y);var T=0;if("curve"===l.type){for(var D,C=0;C<y.length;C++)if(D=y[C],0==T&&D.x>p&&(a.moveTo(D.x,D.y),T=1),0<C&&D.x>p&&D.x<x){var L=c(y,C-1);a.bezierCurveTo(L.ctrA.x,L.ctrA.y,L.ctrB.x,L.ctrB.y,D.x,D.y)}}else for(var k,F=0;F<y.length;F++)k=y[F],0==T&&k.x>p&&(a.moveTo(k.x,k.y),T=1),0<F&&k.x>p&&k.x<x&&a.lineTo(k.x,k.y);a.lineTo(S.x,f),a.lineTo(A.x,f),a.lineTo(A.x,A.y)}else{var R=y[0];a.moveTo(R.x-d/2,R.y),a.lineTo(R.x+d/2,R.y),a.lineTo(R.x+d/2,f),a.lineTo(R.x-d/2,f),a.moveTo(R.x-d/2,R.y)}if(a.closePath(),a.fill(),l.addLine){if("dash"==t.lineType){var M=t.dashLength?t.dashLength:8;M*=e.pixelRatio,a.setLineDash([M,M])}if(a.beginPath(),a.setStrokeStyle(t.color),a.setLineWidth(l.width*e.pixelRatio),1===y.length)a.moveTo(y[0].x,y[0].y),a.arc(y[0].x,y[0].y,1,0,2*Math.PI);else{a.moveTo(y[0].x,y[0].y);var z=0;if("curve"===l.type){for(var I,O=0;O<y.length;O++)if(I=y[O],0==z&&I.x>p&&(a.moveTo(I.x,I.y),z=1),0<O&&I.x>p&&I.x<x){var B=c(y,O-1);a.bezierCurveTo(B.ctrA.x,B.ctrA.y,B.ctrB.x,B.ctrB.y,I.x,I.y)}}else for(var E,W=0;W<y.length;W++)E=y[W],0==z&&E.x>p&&(a.moveTo(E.x,E.y),z=1),0<W&&E.x>p&&E.x<x&&a.lineTo(E.x,E.y);a.moveTo(y[0].x,y[0].y)}a.stroke(),a.setLineDash([])}}!1!==e.dataPointShape&&Q(m,t.color,t.pointShape,a,e)})),!1!==e.dataLabel&&1===n&&t.forEach((function(t){var o,r,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),r=o.pop(),l=o.shift();var s=t.data,c=j(s,r,l,h,d,e,i,n);J(c,t,i,a)})),a.restore(),{xAxisPoints:h,calPoints:u,eachSpacing:d}}(s,e,i,a,t),l=n.xAxisPoints,h=n.calPoints,f=n.eachSpacing;e.chartData.xAxisPoints=l,e.chartData.calPoints=h,e.chartData.eachSpacing=f,ot(0,e,i,a),!1!==e.enableMarkLine&&1===t&&K(e,i,a),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.pieData=function(t,e,i,a){var n=Math.PI,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,s=o({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),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};0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var h=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding);t=k(t,h,l);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*n/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(r(t.color,e.extra.pie.activeOpacity||.5)),a.moveTo(c.x,c.y),a.arc(c.x,c.y,t._radius_+d,t._start_,t._start_+2*t._proportion_*n),a.closePath(),a.fill()),a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.lineJoin="round",a.setStrokeStyle(s.borderColor),a.setFillStyle(t.color),a.moveTo(c.x,c.y),a.arc(c.x,c.y,t._radius_,t._start_,t._start_+2*t._proportion_*n),a.closePath(),a.fill(),1==s.border&&a.stroke()})),"ring"===e.type){var f=.6*h;"number"==typeof e.extra.pie.ringWidth&&0<e.extra.pie.ringWidth&&(f=Math.max(0,h-e.extra.pie.ringWidth)),a.beginPath(),a.setFillStyle(e.background||"#ffffff"),a.moveTo(c.x,c.y),a.arc(c.x,c.y,f,0,2*n),a.closePath(),a.fill()}if(!1!==e.dataLabel&&1===l){for(var u=!1,p=0,x=t.length;p<x;p++)if(0<t[p].data){u=!0;break}u&&Z(t,e,i,a,0,c)}return 1===l&&"ring"===e.type&&U(e,i,a,c),{center:c,radius:h,series:t}}(s,e,i,a,t),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.pieData=function(t,e,i,a){var n=Math.PI,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,s=o({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=s.activeRadius);var 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},h=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),d=s.minRadius||.5*h;t=R(t,s.type,d,h,l);var f=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*n/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(a.beginPath(),a.setFillStyle(r(t.color,s.activeOpacity||.5)),a.moveTo(c.x,c.y),a.arc(c.x,c.y,f+t._radius_,t._start_,t._start_+2*t._rose_proportion_*n),a.closePath(),a.fill()),a.beginPath(),a.setLineWidth(s.borderWidth*e.pixelRatio),a.lineJoin="round",a.setStrokeStyle(s.borderColor),a.setFillStyle(t.color),a.moveTo(c.x,c.y),a.arc(c.x,c.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*n),a.closePath(),a.fill(),1==s.border&&a.stroke()})),!1!==e.dataLabel&&1===l){for(var u=!1,p=0,x=t.length;p<x;p++)if(0<t[p].data){u=!0;break}u&&Z(t,e,i,a,0,c)}return{center:c,radius:h,series:t}}(s,e,i,a,t),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.radarData=function(t,e,i,a){var n=Math.cos,l=Math.sin,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,c=o({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),d=b(e.categories.length),f={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(f.x-(y(e.categories)+i.radarLabelTextMargin),f.y-i.radarLabelTextMargin);u-=e.padding[1],a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(c.gridColor),d.forEach((function(t){var e=h(u*n(t),u*l(t),f);a.moveTo(f.x,f.y),a.lineTo(e.x,e.y)})),a.stroke(),a.closePath();for(var p=function(t){var i={};a.beginPath(),a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(c.gridColor),d.forEach((function(e,o){var r=h(u/c.gridCount*t*n(e),u/c.gridCount*t*l(e),f);0===o?(i=r,a.moveTo(r.x,r.y)):a.lineTo(r.x,r.y)})),a.lineTo(i.x,i.y),a.stroke(),a.closePath()},x=1;x<=c.gridCount;x++)p(x);var g=L(d,f,u,t,e,s);return g.forEach((function(t){if(a.beginPath(),a.setFillStyle(r(t.color,c.opacity)),t.data.forEach((function(t,e){0===e?a.moveTo(t.position.x,t.position.y):a.lineTo(t.position.x,t.position.y)})),a.closePath(),a.fill(),!1!==e.dataPointShape){var i=t.data.map((function(t){return t.position}));Q(i,t.color,t.pointShape,a,e)}})),$(d,u,f,e,i,a),{center:f,radius:u,angleList:d}}(s,e,i,a,t),nt(e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.arcbarData=function(t,e,i,a){var n=Math.PI,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:1,l=o({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=M(t,l,r);var s,c=l.center?l.center:{x:e.width/2,y:e.height/2};l.radius?s=l.radius:(s=Math.min(c.x,c.y),s-=5*e.pixelRatio,s-=l.width/2);for(var h,d=0;d<t.length;d++)h=t[d],a.setLineWidth(l.width),a.setStrokeStyle(l.backgroundColor||"#E9E9E9"),a.setLineCap("round"),a.beginPath(),"default"==l.type?a.arc(c.x,c.y,s-(l.width+l.gap)*d,l.startAngle*n,l.endAngle*n,!1):a.arc(c.x,c.y,s-(l.width+l.gap)*d,0,2*n,!1),a.stroke(),a.setLineWidth(l.width),a.setStrokeStyle(h.color),a.setLineCap("round"),a.beginPath(),a.arc(c.x,c.y,s-(l.width+l.gap)*d,l.startAngle*n,h._proportion_*n,!1),a.stroke();return U(e,i,a,c),{center:c,radius:s,series:t}}(s,e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new pt({timing:"easeInOut",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),e.chartData.gaugeData=function(t,e,i,a,n){var l=Math.PI,s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,c=o({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);null==c.oldAngle&&(c.oldAngle=c.startAngle),null==c.oldData&&(c.oldData=0),t=z(t,c.startAngle,c.endAngle);var h={x:i.width/2,y:i.height/2},d=Math.min(h.x,h.y);d-=5*i.pixelRatio,d-=c.width/2;var f=d-c.width,u=0;if("progress"==c.type){var p=d-3*c.width;n.beginPath();var x=n.createLinearGradient(h.x,h.y-p,h.x,h.y+p);x.addColorStop("0",r(e[0].color,.3)),x.addColorStop("1.0",r("#FFFFFF",.1)),n.setFillStyle(x),n.arc(h.x,h.y,p,0,2*l,!1),n.fill(),n.setLineWidth(c.width),n.setStrokeStyle(r(e[0].color,.3)),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,f,c.startAngle*l,c.endAngle*l,!1),n.stroke(),u=c.startAngle-c.endAngle+1;c.splitLine.splitNumber;var g=u/c.splitLine.splitNumber/c.splitLine.childNumber,v=-d-.5*c.width-c.splitLine.fixRadius,m=-d-c.width-c.splitLine.fixRadius+c.splitLine.width;n.save(),n.translate(h.x,h.y),n.rotate((c.startAngle-1)*l);for(var y=c.splitLine.splitNumber*c.splitLine.childNumber+1,b=e[0].data*s,w=0;w<y;w++)n.beginPath(),b>w/y?n.setStrokeStyle(r(e[0].color,1)):n.setStrokeStyle(r(e[0].color,.3)),n.setLineWidth(3*i.pixelRatio),n.moveTo(v,0),n.lineTo(m,0),n.stroke(),n.rotate(g*l);n.restore(),e=M(e,c,s),n.setLineWidth(c.width),n.setStrokeStyle(e[0].color),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,f,c.startAngle*l,e[0]._proportion_*l,!1),n.stroke();var _=d-2.5*c.width;n.save(),n.translate(h.x,h.y),n.rotate((e[0]._proportion_-1)*l),n.beginPath(),n.setLineWidth(c.width/3);var A=n.createLinearGradient(0,.6*-_,0,.6*_);A.addColorStop("0",r("#FFFFFF",0)),A.addColorStop("0.5",r(e[0].color,1)),A.addColorStop("1.0",r("#FFFFFF",0)),n.setStrokeStyle(A),n.arc(0,0,_,.85*l,1.15*l,!1),n.stroke(),n.beginPath(),n.setLineWidth(1),n.setStrokeStyle(e[0].color),n.setFillStyle(e[0].color),n.moveTo(-_-c.width/3/2,-4),n.lineTo(-_-c.width/3/2-4,0),n.lineTo(-_-c.width/3/2,4),n.lineTo(-_-c.width/3/2,-4),n.stroke(),n.fill(),n.restore()}else{n.setLineWidth(c.width),n.setLineCap("butt");for(var S,T=0;T<t.length;T++)S=t[T],n.beginPath(),n.setStrokeStyle(S.color),n.arc(h.x,h.y,d,S._startAngle_*l,S._endAngle_*l,!1),n.stroke();n.save(),u=c.startAngle-c.endAngle+1;var P=u/c.splitLine.splitNumber,D=u/c.splitLine.splitNumber/c.splitLine.childNumber,C=-d-.5*c.width-c.splitLine.fixRadius,L=-d-.5*c.width-c.splitLine.fixRadius+c.splitLine.width,k=-d-.5*c.width-c.splitLine.fixRadius+c.splitLine.childWidth;n.translate(h.x,h.y),n.rotate((c.startAngle-1)*l);for(var F=0;F<c.splitLine.splitNumber+1;F++)n.beginPath(),n.setStrokeStyle(c.splitLine.color),n.setLineWidth(2*i.pixelRatio),n.moveTo(C,0),n.lineTo(L,0),n.stroke(),n.rotate(P*l);n.restore(),n.save(),n.translate(h.x,h.y),n.rotate((c.startAngle-1)*l);for(var R=0;R<c.splitLine.splitNumber*c.splitLine.childNumber+1;R++)n.beginPath(),n.setStrokeStyle(c.splitLine.color),n.setLineWidth(1*i.pixelRatio),n.moveTo(C,0),n.lineTo(k,0),n.stroke(),n.rotate(D*l);n.restore(),e=I(e,t,c,s);for(var O,B=0;B<e.length;B++)O=e[B],n.save(),n.translate(h.x,h.y),n.rotate((O._proportion_-1)*l),n.beginPath(),n.setFillStyle(O.color),n.moveTo(c.pointer.width,0),n.lineTo(0,-c.pointer.width/2),n.lineTo(-f,0),n.lineTo(0,c.pointer.width/2),n.lineTo(c.pointer.width,0),n.closePath(),n.fill(),n.beginPath(),n.setFillStyle("#FFFFFF"),n.arc(0,0,c.pointer.width/6,0,2*l,!1),n.fill(),n.restore();!1!==i.dataLabel&&Y(c,d,h,0,a,n)}return U(i,a,n,h),1===s&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:h,radius:d,innerRadius:f,categories:t,totalAngle:u}}(d,s,e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new pt({timing:"easeIn",duration:u,onProcess:function(t){a.clearRect(0,0,e.width,e.height),e.rotate&&G(a,e),at(0,e,0,a),it(d,e,i,a);var n=function(t,e,i,a,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,l=o({},{color:{},average:{}},i.extra.candle);l.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=o({},{show:!1,name:[],day:[],color:a.colors},l.average),i.extra.candle=l;var s=i.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,f=[];n.save();var u=-2,p=h.length+2,x=0,g=i.width+d;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(n.translate(i._scrollDistance_,0),u=Math.floor(-i._scrollDistance_/d)-2,p=u+i.xAxis.itemCount+4,x=-i._scrollDistance_-d+i.area[3],g=x+(i.xAxis.itemCount+4)*d),l.average.show&&e.forEach((function(t){var e,o,l;e=[].concat(i.chartData.yAxisData.ranges[t.index]),o=e.pop(),l=e.shift();for(var s,f=t.data,u=j(f,o,l,h,d,i,a,r),p=P(u),v=0;v<p.length;v++){if(s=p[v],n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(1),1===s.length)n.moveTo(s[0].x,s[0].y),n.arc(s[0].x,s[0].y,1,0,2*Math.PI);else{n.moveTo(s[0].x,s[0].y);for(var m,y=0,b=0;b<s.length;b++)if(m=s[b],0==y&&m.x>x&&(n.moveTo(m.x,m.y),y=1),0<b&&m.x>x&&m.x<g){var w=c(s,b-1);n.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,m.x,m.y)}n.moveTo(s[0].x,s[0].y)}n.closePath(),n.stroke()}})),t.forEach((function(t){var e,o,s;e=[].concat(i.chartData.yAxisData.ranges[t.index]),o=e.pop(),s=e.shift();var c=t.data,x=H(c,o,s,h,d,i,a,r);f.push(x);for(var g=P(x),v=0;v<g[0].length;v++)if(v>u&&v<p){var m=g[0][v];n.beginPath(),0<c[v][1]-c[v][0]?(n.setStrokeStyle(l.color.upLine),n.setFillStyle(l.color.upFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.moveTo(m[3].x,m[3].y)):(n.setStrokeStyle(l.color.downLine),n.setFillStyle(l.color.downFill),n.setLineWidth(1*i.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.moveTo(m[3].x,m[3].y)),n.closePath(),n.fill(),n.stroke()}})),n.restore(),{xAxisPoints:h,calPoints:f,eachSpacing:d}}(s,x,e,i,a,t),r=n.xAxisPoints,l=n.calPoints,h=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=h,ot(0,e,i,a),!1!==e.enableMarkLine&&1===t&&K(e,i,a),nt(x?0:e.series,e,i,a,e.chartData),et(e,i,a,t),ft(0,a)},onAnimationFinish:function(){l.event.trigger("renderComplete")}})}}function gt(){this.events={}}pt.prototype.stop=function(){this.isStop=!0},gt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},gt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var a=e[0],o=e.slice(1);!this.events[a]||this.events[a].forEach((function(t){try{t.apply(null,o)}catch(e){console.error(e)}}))};var vt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=o({},t.title),t.subtitle=o({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=o({},{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=o({},{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=o({},{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.pixelRatio,t.legend.itemGap*=t.pixelRatio,t.legend.padding*=t.pixelRatio,t.legend.margin*=t.pixelRatio,t.extra=o({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var e=JSON.parse(JSON.stringify(a));if(e.colors=t.colors?t.colors:e.colors,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,("pie"==t.type||"ring"==t.type)&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pixelRatio,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:a.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,n=t.height;t.width=n,t.height=i}t.padding=t.padding?t.padding:e.padding;for(var r=0;4>r;r++)t.padding[r]*=t.pixelRatio;e.yAxisWidth=a.yAxisWidth*t.pixelRatio,e.xAxisHeight=a.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=a.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=a.titleFontSize*t.pixelRatio,e.subtitleFontSize=a.subtitleFontSize*t.pixelRatio,e.toolTipPadding=a.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=a.toolTipLineHeight*t.pixelRatio,e.columePadding=a.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new gt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,xt.call(this,t.type,t,e,this.context)};vt.prototype.updateData=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.opts=o({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=q(this.opts.series,this.opts,this.config),a=i.yAxisWidth;this.config.yAxisWidth=a;var n=0,r=W(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,c=r.endX,h=r.eachSpacing,d=h*(l.length-1);n=c-s-d,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n}xt.call(this,this.opts.type,this.opts,this.config,this.context)},vt.prototype.zoom=function(){var t=Math.round,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=t(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+t(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var a=q(this.opts.series,this.opts,this.config),o=a.yAxisWidth;this.config.yAxisWidth=o;var n=0,r=W(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,c=r.endX,h=r.eachSpacing,d=c-s,f=d-h*(l.length-1);n=d/2-h*i,0<n&&(n=0),n<f&&(n=f),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,xt.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("请启用滚动条后使用!")},vt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},vt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},vt.prototype.getCurrentDataIndex=function(t){var e;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=v(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?function(t,e){var i=-1;if(T(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a;for(var o,n=0,r=e.series.length;n<r;n++)if(o=e.series[n],s(a,o._start_,o._start_+2*o._proportion_*Math.PI)){i=n;break}}return i}({x:i.x,y:i.y},this.opts.chartData.pieData):"radar"===this.opts.type?function(t,e,i){var a=Math.PI,o=2*a/i,n=-1;if(T(t,e.center,e.radius)){var r=function(t){return 0>t&&(t+=2*a),t>2*a&&(t-=2*a),t},l=Math.atan2(e.center.y-t.y,t.x-e.center.x);l*=-1,0>l&&(l+=2*a);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var i=r(t-o/2),s=r(t+o/2);s<i&&(s+=2*a),(l>=i&&l<=s||l+2*a>=i&&l+2*a<=s)&&(n=e)}))}return n}({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var i,a=-1,o=0,n=e.series.length;o<n;o++)if(i=e.series[o],t.x>i.funnelArea[0]&&t.x<i.funnelArea[2]&&t.y>i.funnelArea[1]&&t.y<i.funnelArea[3]){a=o;break}return a}({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(t,e){for(var i,a=-1,o=e.chartData.mapData,n=e.series,r=function(t,e,i,a,o,n){return{x:(e-o)/a+i.xMin,y:i.yMax-(t-n)/a}}(t.y,t.x,o.bounds,o.scale,o.xoffset,o.yoffset),l=[r.x,r.y],s=0,c=n.length;s<c;s++)if(i=n[s].geometry.coordinates,ht(l,i)){a=s;break}return a}({x:i.x,y:i.y},this.opts):"word"===this.opts.type?function(t,e){for(var i,a=-1,o=0,n=e.length;o<n;o++)if(i=e[o],t.x>i.area[0]&&t.x<i.area[2]&&t.y>i.area[1]&&t.y<i.area[3]){a=o;break}return a}({x:i.x,y:i.y},this.opts.chartData.wordCloudData):function(t,e,i,a){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,n=-1,r=i.chartData.eachSpacing/2,l=[];if(0<e.length){if("candle"==i.type)for(var s=0;s<e[0].length;s++)l.push(e[0][s][0].x);else for(var c=0;c<e[0].length;c++)l.push(e[0][c].x);("line"==i.type||"area"==i.type)&&"justify"==i.xAxis.boundaryGap&&(r=i.chartData.eachSpacing/2),i.categories||(r=0),S(t,i)&&l.forEach((function(e,i){t.x+o+r>e&&(n=i)}))}return n}({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},vt.prototype.getLegendDataIndex=function(t){var e;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=v(e,this.opts,t);return function(t,e){var i=-1;if(function(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}(t,e.area)){for(var a,o=e.points,n=-1,r=0,l=o.length;r<l;r++){a=o[r];for(var s=0;s<a.length;s++){n+=1;var c=a[s].area;if(t.x>c[0]&&t.x<c[2]&&t.y>c[1]&&t.y<c[3]){i=n;break}}}return i}return i}({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},vt.prototype.touchLegend=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){v(i,this.opts,t);var a=this.getLegendDataIndex(t);0<=a&&(this.opts.series[a].show=!this.opts.series[a].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,xt.call(this,this.opts.type,this.opts,this.config,this.context))}},vt.prototype.showToolTip=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i||console.log("touchError");var a=v(i,this.opts,t),n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){var s=m(this.opts.series,l);if(0!==s.length){var c=w(s,this.opts.chartData.calPoints,l,this.opts.categories,e),h=c.textList,d=c.offset;d.y=a.y,r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}}xt.call(this,r.type,r,this.config,this.context)}if("mix"===this.opts.type){l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){var f=_(s,this.opts.chartData.calPoints,l,this.opts.categories,e);h=f.textList,d=f.offset;d.y=a.y,r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}}xt.call(this,r.type,r,this.config,this.context)}if("candle"===this.opts.type){l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){c=A(this.opts.series[0].data,s,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,e),h=c.textList,d=c.offset;d.y=a.y,r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}}xt.call(this,r.type,r,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],h=[{text:e.format?e.format(s):s.name+": "+s.data,color:s.color}],d={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}xt.call(this,r.type,r,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],h=[{text:e.format?e.format(s):s.properties.name,color:s.color}],d={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}r.updateData=!1,xt.call(this,r.type,r,this.config,this.context)}if("radar"===this.opts.type){l=null==e.index?this.getCurrentDataIndex(t):e.index;if(-1<l){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){h=s.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:a.x,y:a.y};r.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:l}}}xt.call(this,r.type,r,this.config,this.context)}},vt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},this.opts,{_scrollDistance_:t,animation:!1});xt.call(this,this.opts.type,e,this.config,this.context)},vt.prototype.scrollStart=function(t){var e;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=v(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},vt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,i=Date.now(),a=i-this.scrollOption.lastMoveTime;if(!(a<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var n;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n&&!0===this.opts.enableScroll){var r,l=v(n,this.opts,t);r=l.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,c=function(t,e,i,a,o){var n=o.width-o.area[1]-o.area[3],r=i.eachSpacing*(o.chartData.xAxisData.xAxisPoints.length-1),l=e;return 0<=e?(l=0,t.event.trigger("scrollLeft")):Math.abs(e)>=r-n&&(l=n-r,t.event.trigger("scrollRight")),l}(this,s+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=c-s;var h=o({},this.opts,{_scrollDistance_:s+r,animation:!1});return xt.call(this,h.type,h,this.config,this.context),s+r}}},vt.prototype.scrollEnd=function(){if(!0===this.opts.enableScroll){var t=this.scrollOption,e=t.currentOffset,i=t.distance;this.scrollOption.currentOffset=e+i,this.scrollOption.distance=0}},"object"==e(t)&&"object"==e(t.exports)&&(t.exports=vt)}).call(this,i("dc84")(t))},"6a93":function(t,e,i){"use strict";i.r(e);var a=i("c8a5"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},"6ce4":function(t,e,i){var a=i("8cbf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("60b5a936",a,!0,{sourceMap:!1,shadowMode:!1})},"76f3":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},o=[]},"89b7":function(t,e,i){"use strict";var a=i("981c"),o=i.n(a);o.a},"8cbf":function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,".mp-clean-icon[data-v-de37538c]{position:absolute;right:%?8?%;top:%?8?%;color:#999}",""]),t.exports=e},"981c":function(t,e,i){var a=i("b499");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("7f81bd73",a,!0,{sourceMap:!1,shadowMode:!1})},9834:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={pulldown:"",refreshempty:"",back:"",forward:"",more:"","more-filled":"",scan:"",qq:"",weibo:"",weixin:"",pengyouquan:"",loop:"",refresh:"","refresh-filled":"",arrowthindown:"",arrowthinleft:"",arrowthinright:"",arrowthinup:"","undo-filled":"",undo:"",redo:"","redo-filled":"",bars:"",chatboxes:"",camera:"","chatboxes-filled":"","camera-filled":"","cart-filled":"",cart:"","checkbox-filled":"",checkbox:"",arrowleft:"",arrowdown:"",arrowright:"","smallcircle-filled":"",arrowup:"",circle:"","eye-filled":"","eye-slash-filled":"","eye-slash":"",eye:"","flag-filled":"",flag:"","gear-filled":"",reload:"",gear:"","hand-thumbsdown-filled":"","hand-thumbsdown":"","hand-thumbsup-filled":"","heart-filled":"","hand-thumbsup":"",heart:"",home:"",info:"","home-filled":"","info-filled":"","circle-filled":"","chat-filled":"",chat:"","mail-open-filled":"","email-filled":"","mail-open":"",email:"",checkmarkempty:"",list:"","locked-filled":"",locked:"","map-filled":"","map-pin":"","map-pin-ellipse":"",map:"","minus-filled":"","mic-filled":"",minus:"",micoff:"",mic:"",clear:"",smallcircle:"",close:"",closeempty:"",paperclip:"",paperplane:"","paperplane-filled":"","person-filled":"","contact-filled":"",person:"",contact:"","images-filled":"",phone:"",images:"",image:"","image-filled":"","location-filled":"",location:"","plus-filled":"",plus:"",plusempty:"","help-filled":"",help:"","navigate-filled":"",navigate:"","mic-slash-filled":"",search:"",settings:"",sound:"","sound-filled":"","spinner-cycle":"","download-filled":"","personadd-filled":"","videocam-filled":"",personadd:"",upload:"","upload-filled":"",starhalf:"","star-filled":"",star:"",trash:"","phone-filled":"",compose:"",videocam:"","trash-filled":"",download:"","chatbubble-filled":"",chatbubble:"","cloud-download":"","cloud-upload-filled":"","cloud-upload":"","cloud-download-filled":"",headphones:"",shop:""}},"9dfc":function(t,e,i){var a=i("b4de");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("967d").default;o("097bee14",a,!0,{sourceMap:!1,shadowMode:!1})},b263:function(t,e,i){"use strict";i.r(e);var a=i("34d1"),o=i("f8ca");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("89b7");var r=i("828b"),l=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"08f54ade",null,!1,a["a"],void 0);e["default"]=l.exports},b274:function(t,e,i){"use strict";i.r(e);var a=i("23e9"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},b499:function(t,e,i){var a=i("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-08f54ade]:export{theme_bg:#f30213}.u-loadmore[data-v-08f54ade]{width:100%}.member-top[data-v-08f54ade]{-webkit-animation:changeBg-data-v-08f54ade 20s infinite;animation:changeBg-data-v-08f54ade 20s infinite;background-color:#f30213;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZ4AAADhBAMAAAAKUc6cAAAAD1BMVEX///////9MaXH////////RWIOUAAAABXRSTlMiEQAzRBQVqpYAAAlZSURBVHhezNpRkpswDAZged0DyOQCDSdwxnuAzmzuf6aGJuEvGEsWIpvVSx8AO59/YWCnNN7qNy1qvFfqqFGu9LIq96p+OE3TMi1qGG91TskLqsdgCvd/iMIhnrzpoWV96ByUJR6a6p+GvKK4EVB4eM6VBxwXqEpnWR7PqdSgj4bnAo4HtB6FqjrCk1eeejsoF+N93OEBJ+ZDQFzqgIZNTyyXZKuho914Hh0eF6jUAY1bnlhKTseAtpptfQu7Gw7jhU1P2eFJWrshHszvDIirgAZ4Fhz0W38pHnDg8QZU1gGNG5640zOI7Ybh62fgAQ2X592t2q8LPG7QxnMH02sBMY52BjTOnnG5fmVXDwjthuHhkQOqjusBfWx5CjzugM6NeEpRPLhAySgioGlzg4eX86Vd1fSQ7AkCRwEhIBpmDzaEhzenfdXwsOYROAqIZ8/EgeeM6bAdeDuu/n1x00MaR2+5ezrwjPz/dGlvae2me8DRQRh+Wkl45oYraDd/QIhH9QThJRxosdaekTBbaD4NVJAYDxZM8BDtAg1rz2/p7sES9weUDB612/QXo7Vn5Pbmxt2jpjoe1j0kxYOyeUZucSzLNAjxqB7g7QENlWdkKpnkdHRQj4eaHiJ3QFS1SM2xrxPazeJhIndA8KTNMq7TUL2KGjyklMlzFjjGjjsnyZNpXYjHERA8QjxsH/c8jNX1igd2f0AkxmMZV7++0W4Euysg3cPyuHrx2zyGeAyeVHtyy0N0RMORIR6Uw0N1YTJXQEaPv+Ei4qk9dJDH0m6o3R4SPf6GI0s8/obLrUXnN3jcDYd4BI+v4cjQbu4dLpLebs53OJIfpv6G0xfeEA/Rfg/7PX0rj5OcnvT0JLsnHAYKlngovN0DUOBXedBwpN4+fg/+PCS025s9lIyg1pjB4FHnvXuSw2OrjdeEB7dcv/IhnlY8/ALP+qsbD9PP662y2zNMnvRdHp49AN2d8TrV1yGes+yx35gkxQNPwShTPAjI4Uk3TzrWw81jvPLMJ/IUDwJybazw+j24TIgnwvM8kX9dH/XzPMLBFSdjt/58evKLPKSU1lMk7wbw0M/2sHCU7/Gg4Lk+688P8+Cw/PBBQMHuCfxdHuEw4kEZPahv8nBjThwslYde7cHk2eqhfg8azrAfOD3FOCaLXrTbmzyxiKM348mP6zQPbiD6hfeDV+ZTTGMynv8tT2l4qPv2id/uITwq6xFXle8e7n4fjSXbPVjNbPHMUy4DiiWLHsL3gh7PvAR7PFEKKIgerGK8Lf1F9VBU7x78Iocn93t44ZlPKdO66x6ikkmtstvD8Jhvn6meZp48X0HziOX3YHqv5zR5rpqH+zjxdZ6QpH5Dw50+J89F9HQHhCusHtxAHg8d64leD7U9qcsTJo/SbwEXv86D+V0eTjxxvkLr/cDkwRV7PbEU+8fCwpOmfP7I72+dDRcdHjScEI/kmd2nKZ4f44luT6JCyvdCZ8Phil0epvZTO0ieuPDo33M6yO9BQFo8KEyMbbHv7wfweNsNHv//DsHM8IgfdHkx1hs9/eeLf69ansG+dtM9SeXoniA0XF4N1uEhu0cPKBj8IayHA2g9mLPddE+ycRILHgwHTrUBap5s9ugB2fyB6uHAWY2menCF2YMZQurlJJY9Cb8NYfd65nj+cndvuY3DMBRAL+ENkO0K7BWM0f3vbYCZD6KoI4rio2r57xgnV46lKGaWPbrXxrNf7vPYw+Ow2fAg7BEG9FQgMWvoEeNanPFIyCMg8ZUrAceWoA63kEdsz9g00nq2Nf5z4h67XPtaxpp94IG+XL9HJoYULew70Xd5WD3GDmvyj1IgtSBjR98HomIPAAskzjLiKfX8m1ONPSSJIIp77JY+98BDCx4OxSPxBh6DN5qYJArSOSTVet6tx9eZSUgSQCSinAXP3HA99Hnv7Hr8wawseqBFU/1VMgTWbZchax6eXo1meuwf0tGaB/B7SDYqDDnAj/bgd3nwezz+TiTqkU09cHlkdw8eK+l+2u9hp0fnO3t6/FP0+HDjIz1eWPFYAd3hno5U4YHTo+u5eI/XAg8vrQgZlNFC9M73BFa4CQ0Q0z2M56rksHoo39Mfz6GeO9vTG48ON+8ngr1zg/Z41KPl0Gi5PVJ8+WiRQ6NFhqc1nnenB0/1wpP7RCb5PfeiBw5P4KtNyvcwLJB6eI7uOGWfB7MeCnCA9OuHMQfCKZLCEWe67PMAcyBcz3Y/p8Lj7xSJ6xTOu3i0ku+njDkQrks4zhH/Sxy++Q4G9cnzEFDKpo3jA+EOeuhzPiIcnRcMTpK0XmAbpB4Rdzj2yaYH3B+JevDFwwGNCFY87FvOwQhIPbFanzAdGk/UgzRPZL1xKCc64KjBM3XXp6S+UZmeeA+YuId+nIe7PIwdAir29AfU4EGjB2keYIsBR9me/oD6PaC+gBI9TRFxh4cxU1QfEKV52kTc66kfeROes80DqgVleTpBvJUHpQFRmacfpJ4rfoLeEVfu6Qb1e0bdBqQMRPJW6TmePVQGItF+xLmeYTsVKQKR5Hj4FeejcCr3/LLaz7vRg5K5tkiWRwZP9A4Cyo2IEj38wgPDk/vYoXrO7IDMbl7Zlezhp3gOvCyq9VwSLSOebs+ZB1IPBrW1R0Ek6sF3eN70/38SCqIeo7tssecs/UKp36MBNS0efoqHN/AEB9y5Vz7BgPTdcAVE1Z5z7fivR2/iuQKcTyDexHMtcbScAdV7zpVL5+nwTTzXSjhPCfEmnmtNo7WD5297d4ycMBAEUdS+gXZusP/+h7SzDWzRBPojoVIXCSTUq54dNhIkUNaszPdB4v369RGqPx+zn3ktD+xXMde7CLqOhzxYZNB2HQ9kTS7oIp48WjnpBPV7crLn+x6etSNP8dS7nsezXdPzeDjRw+PJOer/YB9PLY+7EO7vGR/nGf0eFA839Wztx+c8z7A9/gHyPcieTRm3fg8jFaRwSvdsSj39npke8qWE5fEL8jmlehbI5/ieuQ/ahhRED/8/0uj3paVUzxwrwo5u9zC6g+uZzZwKHreg48UEj1rQ8RWW7iF897EggscsSDhkFTwiqIw1SPCIE2fs9QoeEQQCiODxQMovFcHjgZS7RAWPthTKuUwQPFZF0nWP4BFjiBA87g9wzcARPBqpXpeH4NFMFccR0dM/jYXo6ReB5+kXgeXpNxW7+QGaJMQFymoTmAAAAABJRU5ErkJggg==");background-size:cover;text-align:center;width:100%;\n /*height: 11rem;*/overflow:hidden;height:%?480?%;\n /* 320 */color:#fff;position:relative;z-index:1}@-webkit-keyframes changeBg-data-v-08f54ade{0%{background-color:#f30213}90%{background-color:#f30213}10%{background-color:#fb6e52}20%{background-color:#ffce55}30%{background-color:#a0d468}40%{background-color:#48cfae}50%{background-color:#4fc0e8}60%{background-color:#5d9cec}70%{background-color:#ac92ed}80%{background-color:#ec87bf}}@keyframes changeBg-data-v-08f54ade{0%{background-color:#f30213}90%{background-color:#f30213}10%{background-color:#fb6e52}20%{background-color:#ffce55}30%{background-color:#a0d468}40%{background-color:#48cfae}50%{background-color:#4fc0e8}60%{background-color:#5d9cec}70%{background-color:#ac92ed}80%{background-color:#ec87bf}}.m-banner-img[data-v-08f54ade]{width:100%;\n /*height: 200rpx;*/vertical-align:top;position:relative}.m-user-info[data-v-08f54ade]{text-align:center;\n /*\n\tposition: absolute;\n\ttop: 115rpx;\n\twidth: 140rpx;\n\theight: 140rpx;\n\tleft: 50%;\n\tmargin-left: -70rpx;\n\t*/z-index:3;color:#666;margin-top:%?100?%}.m-user-info uni-image[data-v-08f54ade]{width:%?140?%;height:%?140?%;border-radius:%?120?%;border:1px solid #fff;vertical-align:middle;box-shadow:0 %?2?% %?15?% rgba(0,0,0,.35);position:absolute;left:%?305?%}.m-user-info .m-name[data-v-08f54ade]{position:absolute;top:%?260?%;text-align:center;width:%?750?%}.m-user-info uni-text[data-v-08f54ade], .m-user-info uni-label[data-v-08f54ade]{line-height:%?70?%;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#fff;font-weight:700}.m-user-info .Phone[data-v-08f54ade]{width:%?140?%;height:%?140?%;border-radius:%?120?%;border:1px solid #fff;vertical-align:middle;box-shadow:0 %?2?% %?15?% rgba(0,0,0,.35);overflow:hidden}.m-user-info .NickName[data-v-08f54ade]{line-height:%?70?%;display:block;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.member-order-tab[data-v-08f54ade]{font-size:12px;text-align:center;background:rgba(0,0,0,.1);line-height:20px;\n /*box-shadow: 0px 0rpx 10rpx rgba(0, 0, 0, 0.35);*/position:absolute;bottom:0;left:0;right:0}.i-type[data-v-08f54ade]{font-size:%?40?%}.m-cell-hd[data-v-08f54ade]{text-align:center;line-height:%?56?%}.member-order-tab .g-flex-item[data-v-08f54ade]{padding:%?28?% 0 %?20?% 0}.member-order-tab .g-flex-item[data-v-08f54ade]:active{background-color:#ececec}.my_od[data-v-08f54ade]{border-left:1px solid #dfdfdf}.all_order[data-v-08f54ade]{position:relative;display:block}.m-panel-bd[data-v-08f54ade]{margin-top:%?20?%}.m-panel-bd uni-label[data-v-08f54ade]{vertical-align:middle;font-size:%?50?%;margin:%?0?% %?10?%}.m-cell-primary[data-v-08f54ade]{font-size:%?24?%;margin-top:%?10?%}.m-cell-primary uni-label[data-v-08f54ade]{font-size:%?24?%}.m-animate-img[data-v-08f54ade]{width:100%;height:%?250?%;overflow:hidden;-webkit-animation:imageAnimation-data-v-08f54ade 15s linear infinite alternate;animation:imageAnimation-data-v-08f54ade 15s linear infinite alternate;webkit-backface-visibility:hidden;-webkit-filter:blur(5px);filter:blur(5px);margin-top:-20px}.m-animate-warp[data-v-08f54ade]{overflow:hidden;height:%?200?%;-webkit-animation:imageAnimation-data-v-08f54ade 15s linear infinite alternate;animation:imageAnimation-data-v-08f54ade 15s linear infinite alternate}@-webkit-keyframes imageAnimation-data-v-08f54ade{0%{background-position:0 0}100%{background-position:0 100%}}@keyframes imageAnimation-data-v-08f54ade{0%{background-position:0 0}100%{background-position:0 100%}}.iconBoxLattice .m-cell[data-v-08f54ade]{display:inline-block;width:25%;box-sizing:border-box;text-align:center;border-right:%?1?% solid #f8f8f8;border-bottom:%?1?% solid #f8f8f8}.iconBoxLattice .m-cell .iconfont[data-v-08f54ade]{font-size:%?60?%}.iconBoxLattice .m-cell[data-v-08f54ade]::before{border:none}.iconBoxLattice .m-cell p[data-v-08f54ade]{font-size:%?24?%}.iconBoxLattice .m-cell uni-label[data-v-08f54ade]{font-size:%?24?%}.iconBoxLattice .m-cell uni-label.iconfont[data-v-08f54ade]{font-size:%?60?%}.iconBoxLattice .m-cell uni-label.zc[data-v-08f54ade]{font-size:%?48?%}.iconBoxLattice .m-cell uni-image[data-v-08f54ade]{display:inline-block!important;margin:0!important;padding:0!important;width:%?60?%!important;height:%?60?%!important}.iconBoxLattice .m-cell-ft[data-v-08f54ade]{display:none}.msk[data-v-08f54ade]{position:fixed;top:0;height:100%;background-color:rgba(0,0,0,.8)}.model[data-v-08f54ade]{width:80%;height:%?290?%;background:#fff;border-radius:%?6?%;margin:auto;position:absolute;top:0;left:0;right:0;bottom:0}.hint[data-v-08f54ade]{height:%?200?%;display:flex;flex-flow:column;justify-content:center;align-items:center;position:relative}.hint[data-v-08f54ade]::after{content:"";position:absolute;top:0;left:0;border-bottom:1px solid #e5e5e5;-webkit-box-sizing:border-box;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top}.hint .title[data-v-08f54ade]{font-size:%?36?%}.hint .content[data-v-08f54ade]{width:80%;color:#999;font-size:%?30?%;margin-top:%?20?%}.operation[data-v-08f54ade]{height:%?90?%;display:flex;align-items:center}.cancel[data-v-08f54ade],\n.success[data-v-08f54ade]{flex:1;background:#fff;height:%?90?%;font-size:%?36?%}uni-button[data-v-08f54ade]::after{line-height:none}.cancel[data-v-08f54ade]{position:relative;text-align:center;line-height:%?90?%}.success[data-v-08f54ade]{color:#3cc51f;padding:0}.cancel[data-v-08f54ade]::after{content:"";position:absolute;top:0;left:0;border-right:2px solid #e5e5e5;-webkit-box-sizing:border-box;box-sizing:border-box;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top}.m-cell-bd uni-label[data-v-08f54ade]{margin:%?0?% %?5?%}\n/*样式的width和height一定要与定义的cWidth和cHeight相对应*/.qiun-charts[data-v-08f54ade]{width:%?750?%;height:%?450?%;background-color:#fff}.charts[data-v-08f54ade]{width:%?750?%;height:%?450?%;background-color:#fff}',""]),t.exports=e},b4de:function(t,e,i){var a=i("c86c"),o=i("2ec5"),n=i("ea76");e=a(!1);var r=o(n);e.push([t.i,"\n@font-face{font-family:uniicons;src:url("+r+') format("truetype")}\n.uni-icons[data-v-5518aee5]{font-family:uniicons;text-decoration:none;text-align:center}',""]),t.exports=e},ba7b:function(t,e,i){"use strict";i.r(e);var a=i("cd7a"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a},c282:function(t,e,i){"use strict";i.r(e);var a=i("76f3"),o=i("b274");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);var r=i("828b"),l=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"6c20e3f0",null,!1,a["a"],void 0);e["default"]=l.exports},c8a5:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"share-box-mp",props:{shareDataDefault:{type:Object,default:function(){return{shareTitle:"",shareText:"",href:"",image:"",price:0}}}},data:function(){return{IsJT:!1,Path:"",isShare:!1,isShareBox:!1}},methods:{cancel:function(){this.isShareBox=!1,this.isShare=!1,this.$emit("onCancel")},show:function(){this.isShareBox=!0,this.isShare=!0},cancelShare:function(){this.isShareBox=!1,this.isShare=!1,this.IsJT=!1,this.$emit("cancelShare")},shareQRCode:function(t){var e=this,i={MainPrice:this.shareDataDefault.price,summary:this.shareDataDefault.shareText,MainImg:this.shareDataDefault.image,MainTitle:this.shareDataDefault.shareTitle,Path:this.shareDataDefault.href,source_from:"wxminiapp",poster_name:this.shareDataDefault.shareText,path:this.shareDataDefault.href},a=e.cf.URL.wx.getMiniAppQRCodeUnlimitPoster;this.shareDataDefault.price,a=e.cf.URL.fx.poster,i["poster_type"]=1,e.$.request({url:a,data:i,method:"POST",success:function(t,i,a,o){e.setData({Path:t.url||t.poster_url,isShare:!0,isShareBox:!1,IsJT:!0})}}),this.$emit("shareQRCode")},saveImg:function(t){this.saveImgFun()},saveImgFun:function(t){var e=this;e.$.showLoading(),e.$.downloadFile({url:e.Path,success:function(t){e.$.hideLoading(),e.$.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){e.setData({Path:"",isShare:!1,isShareBox:!1,IsJT:!1}),e.$.alert("保存图片成功!")},fail:function(t){e.$.hideLoading()}})},fail:function(t){e.$.hideLoading()}}),e.$.hideLoading(),this.$emit("saveImg")},showCodeImg:function(){this.$.previewImage({current:this.Path,urls:[this.Path]}),this.$emit("showCodeImg")}}};e.default=a},cd7a:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var o=a(i("9834")),n={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customIcons:{type:String,default:""}},data:function(){return{icons:o.default}},methods:{_onClick:function(){this.$emit("click")}}};e.default=n},d6d24:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return a}));var a={uniIcons:i("282b").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{class:["shareMsk",t.isShare?"":"hide"]},[i("v-uni-view",{class:["sharebox",t.isShareBox?"bounceInUp animated":"bounceOutDown animated"]},[i("v-uni-view",{staticClass:"shareList g-flex"},[i("v-uni-view",{staticClass:"shareItem g-flex-item"},[i("v-uni-view",{staticClass:"shareBtn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.shareQRCode.apply(void 0,arguments)}}},[i("v-uni-image",{staticStyle:{width:"100rpx",height:"100rpx"},attrs:{src:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/images/allfriend.png"}}),i("v-uni-label",[t._v(t._s(t.__("生成海报")))])],1)],1)],1),i("v-uni-view",{staticClass:"cancelShare",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelShare.apply(void 0,arguments)}}},[t._v(t._s(t.__("取消")))])],1),i("v-uni-view",{class:["shareCodeImg",t.IsJT?"":"hide"]},[t._e(),i("v-uni-view",{staticClass:"uni-icon uni-icon-clear mp-clean-icon",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelShare.apply(void 0,arguments)}}}),i("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCodeImg.apply(void 0,arguments)}}},[i("v-uni-image",{attrs:{mode:"widthFix",src:t.Path}})],1),i("v-uni-label",[t._v(t._s(t.__("保存至相册 生成海报")))]),i("v-uni-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.saveImg.apply(void 0,arguments)}}},[t._v(t._s(t.__("保存图片")))])],1)],1)},n=[]},e77b:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{staticClass:"uni-icons",class:[t.customIcons,t.customIcons?t.type:""],style:{color:t.color,"font-size":t.size+"px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t._onClick.apply(void 0,arguments)}}},[t._v(t._s(t.icons[t.type]))])},o=[]},f470:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,n=a(i("9b1b")),r=a(i("109b")),l=a(i("c282")),s=a(i("42de")),c=i("8f59"),h=null,d=null,f={data:function(){return{fxData:{base:{},member_info:{},user_role:{}},PageQRCodeInfo:{Path:"",IsShare:!1,IsShareBox:!1,IsJT:!1},shareData:{},cWidth:"",cHeight:"",pixelRatio:1,Interactive:"",plantform_fx_westore_enable:0,isShowMoney:!0,commission_withdraw_mode:0}},computed:(0,c.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),components:{shareBoxMp:r.default,shareBoxApp:l.default},onLoad:function(t){uni.setNavigationBarTitle({title:this.__("推广中心")});var e=this;this.refreshData(),this.getPlantformInfo((function(t){e.setData({plantform_fx_westore_enable:t.config.plantform_fx_westore_enable}),e.commission_withdraw_mode=t.config.plantform_commission_withdraw_mode||0,e.$.inArray(t.payment_channel_code_row,"money")?e.isShowMoney=!0:e.isShowMoney=!1})),o=this,this.cWidth=uni.upx2px(750),this.cHeight=uni.upx2px(450),this.getServerData()},onShareAppMessage:function(){return{title:this.userInfo.user_nickname,path:"/pagesub/westore/index?wd_id="+this.userInfo.user_id}},onBackPress:function(){},onUnload:function(){},onNavigationBarButtonTap:function(t){0===t.index?this.onShareBox(t):uni.showToast({title:"你点了收藏按钮",icon:"none"})},methods:(0,n.default)((0,n.default)({},(0,c.mapMutations)(["login","logout","getPlantformInfo","forceuserInfo","getuserInfo"])),{},{refreshData:function(t){var e=this;e.$.request({url:this.Config.URL.fx.index,data:{},success:function(t,i,a,o){e.setData({fxData:t})}})},onShareBox:function(t){var e=this.$.sprintf("%s/tmpl/member/directseller_store.html?u_id=%d&FX=%d",this.Config.WapSiteUrl,this.post.wd_id,this.userInfo.user_id);e=this.$.sprintf("%s/h5/pagesub/westore/index?wd_id=%s&uid=%d",this.Config.SiteUrl,this.post.wd_id,this.userInfo.user_id),this.setData({shareData:{shareTitle:this.store_data.westore_name,shareText:this.store_data.westore_name,href:e,image:this.store_data.invite_info.qrcode}})},getServerData:function(){this.$.request({url:this.Config.URL.fx.getCommissionTimeline,data:{},success:function(t,e,i,a){o.showLineA("canvasLineA",t)}})},showLineA:function(t,e){h=new s.default({$this:o,canvasId:t,type:"line",colors:["#facc14","#f04864","#8543e0","#90ed7d"],fontSize:11,padding:[15,15,0,15],legend:{show:!0,padding:5,lineHeight:11,margin:0},dataLabel:!1,dataPointShape:!0,background:"#FFFFFF",pixelRatio:o.pixelRatio,categories:e.categories,series:e.series,animation:!0,xAxis:{type:"grid",gridColor:"#CCCCCC",gridType:"dash",dashLength:8},yAxis:{gridType:"dash",gridColor:"#CCCCCC",dashLength:8},width:o.cWidth*o.pixelRatio,height:o.cHeight*o.pixelRatio,extra:{line:{type:"straight"}}})},touchLineA:function(t){d=Date.now()},moveLineA:function(t){var e=Date.now(),i=e-d;if(!(i<Math.floor(1e3/60))){d=e;var a=h.getCurrentDataIndex(t);if(a>-1&&a<h.opts.categories.length){var o=h.opts.categories[a],n=h.opts.series[0].name,r=h.opts.series[0].data[a];this.Interactive=n+":"+o+"-"+r+"元"}h.showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})}},touchEndLineA:function(t){var e=h.getCurrentDataIndex(t);if(e>-1&&e<h.opts.categories.length){var i=h.opts.categories[e],a=h.opts.series[0].name,o=h.opts.series[0].data[e];this.Interactive=a+":"+i+"-"+o+"元"}h.touchLegend(t),h.showToolTip(t,{format:function(t,e){return e+" "+t.name+":"+t.data}})}})};e.default=f},f8ca:function(t,e,i){"use strict";i.r(e);var a=i("f470"),o=i.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);e["default"]=o.a}}]); |