(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-statistics-index"],{"0e4d":function(t,e,a){"use strict";a.r(e);var i=a("54d1"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"4c13":function(t,e,a){"use strict";a.r(e);var i=a("62ee"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},5172:function(t,e,a){var i=a("24fb");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-calendar-item__weeks-box[data-v-7c21cec8]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.uni-calendar-item__weeks-box-text[data-v-7c21cec8]{font-size:%?28?%;color:#333}.uni-calendar-item__weeks-lunar-text[data-v-7c21cec8]{font-size:%?24?%;color:#333}.uni-calendar-item__weeks-box-item[data-v-7c21cec8]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:%?100?%;height:%?100?%}.uni-calendar-item__weeks-box-circle[data-v-7c21cec8]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item--disable[data-v-7c21cec8]{background-color:hsla(0,0%,97.6%,.3);color:silver}.uni-calendar-item--isDay-text[data-v-7c21cec8]{color:#007aff}.uni-calendar-item--isDay[data-v-7c21cec8]{background-color:#007aff;opacity:.8;color:#fff}.uni-calendar-item--extra[data-v-7c21cec8]{color:#dd524d;opacity:.8}.uni-calendar-item--checked[data-v-7c21cec8]{background-color:#007aff;color:#fff;opacity:.8}.uni-calendar-item--multiple[data-v-7c21cec8]{background-color:#007aff;color:#fff;opacity:.8}',""]),t.exports=e},"54d1":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{weeks:{type:Object,default:function(){return{}}},calendar:{type:Object,default:function(){return{}}},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1}},methods:{choiceDate:function(t){this.$emit("change",t)}}};e.default=i},"5b0e":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var n=i(a("f01d")),r=i(a("a556")),o={components:{uniCalendarItem:r.default},props:{date:{type:String,default:""},selected:{type:Array,default:function(){return[]}},lunar:{type:Boolean,default:!1},startDate:{type:String,default:""},endDate:{type:String,default:""},range:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0}},data:function(){return{show:!1,weeks:[],calendar:{},nowDate:"",aniMaskShow:!1}},watch:{selected:function(t){this.cale.setSelectInfo(this.nowDate.fullDate,t),this.weeks=this.cale.weeks}},created:function(){this.cale=new n.default({date:this.date,selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.cale.date.fullDate)},methods:{clean:function(){},init:function(t){this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(t)},open:function(){var t=this;this.show=!0,this.$nextTick((function(){setTimeout((function(){t.aniMaskShow=!0}),50)}))},close:function(){var t=this;this.aniMaskShow=!1,this.$nextTick((function(){setTimeout((function(){t.show=!1,t.$emit("close")}),300)}))},confirm:function(){this.setEmit("confirm"),this.close()},change:function(){this.insert&&this.setEmit("change")},monthSwitch:function(){var t=this.nowDate,e=t.year,a=t.month;this.$emit("monthSwitch",{year:e,month:Number(a)})},setEmit:function(t){var e=this.calendar,a=e.year,i=e.month,n=e.date,r=e.fullDate,o=e.lunar,s=e.extraInfo;this.$emit(t,{range:this.cale.multipleStatus,year:a,month:i,date:n,fulldate:r,lunar:o,extraInfo:s||{}})},choiceDate:function(t){t.disable||(this.calendar=t,this.cale.setMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.change())},backtoday:function(){this.cale.setMultiple(""),this.cale.setDate(this.date),this.weeks=this.cale.weeks,this.nowDate=this.calendar=this.cale.getInfo(this.date),this.change()},pre:function(){var t=this.cale.getDate(this.nowDate.fullDate,-1,"month").fullDate;this.setDate(t),this.monthSwitch()},next:function(){var t=this.cale.getDate(this.nowDate.fullDate,1,"month").fullDate;this.setDate(t),this.monthSwitch()},setDate:function(t){this.cale.setDate(t),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(t)}}};e.default=o},6136:function(t,e,a){"use strict";a.r(e);var i=a("8e4f"),n=a("4c13");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("e55b");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"9507740a",null,!1,i["a"],void 0);e["default"]=s.exports},"62ee":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("159b"),a("14d9"),a("4de4"),a("3ca3"),a("ddb0");var n=i(a("7d6b")),r=i(a("f040")),o=a("ed0f"),s=null,l=(new Date).getFullYear(),c=(new Date).getMonth()+1,h=(new Date).getDate(),d={name:"Statistics",components:{uniCalendar:r.default},props:{},data:function(){return{isShowBox:!0,showChart:!1,value:[[l,c,h-1],[l,c,h]],isrange:!0,weekSwitch:!1,ismulti:!1,monFirst:!0,clean:!1,lunar:!1,renderValues:[],monthRange:[],current:!1,where:{start:"",stop:"",type:""},types:"",time:"",title:"",growth_rate:"",increase_time:"",increase_time_status:"",time_price:"",order_num:"",loaded:!1,loading:!1,filter:{page:1,limit:10,start:"",stop:""},list:[],cWidth:"",cHeight:"",pixelRatio:1,textarea:"",LineA:{categories:["2012","2013","2014","2015","2016","2017"],series:[{data:[35,8,25,37,4,20]}]},info:{startDate:"",endDate:"",lunar:!1,range:!0,insert:!1,selected:[],showMonth:!1},merId:""}},watch:{"$route.params":function(t){void 0!=t&&(this.setType(t.type),this.setTime(t.time),this.getIndex())}},onLoad:function(t){this.merId=t.merId,this.setType(t.type),this.setTime(t.time),this.cWidth=uni.upx2px(690),this.cHeight=uni.upx2px(500),this.getInfo()},computed:{monthRangeText:function(){return this.monthRange.length?"固定":"指定范围"}},methods:{getIndex:function(){var t=[],e=[],a=this;1==a.where.type?(0,o.turnoverStatistics)(a.where,a.merId).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)})):(0,o.orderNumberStatistics)(a.where,this.merId).then((function(i){var n=i.data.chart,r=[],o=[];n.forEach((function(t){r.push(t.time),o.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$dialog.error(t.msg)}))},setTime:function(t){this.time=t,this.showChart=!0;var e=(new Date).getFullYear(),a=(new Date).getMonth()+1,i=(new Date).getDate();switch(this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,t){case"today":this.showChart=!1,this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.where.month=0,this.title="今日",this.getIndex(),this.getInfo();break;case"yesterday":this.showChart=!1,this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-86400,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-1,this.where.month=0,this.title="昨日",this.getIndex(),this.getInfo();break;case"month":this.where.start=new Date(e,(new Date).getMonth(),1).getTime()/1e3,this.where.stop=new Date(e,a,1).getTime()/1e3-1,this.title="本月",this.where.month=1,this.getIndex(),this.getInfo();break;case"seven":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-604800,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title="七日",this.where.month=0,this.getIndex(),this.getInfo();break}},setType:function(t){switch(t){case"price":this.where.type=1;break;case"order":this.where.type=2;break}},dateTitle:function(){this.isShowBox=!1,this.$refs.calendar.open(),this.time="date",this.title="自定义",this.where.month=0},close:function(){this.current=!1,this.isShowBox=!0},getInfo:function(){var t=this;t.loading||t.loaded||(t.loading=!0,t.filter.start=t.where.start,t.filter.stop=t.where.stop,(0,o.orderPrice)(t.filter,this.merId).then((function(e){t.loading=!1,t.loaded=e.data.lengthe?a:e)-1+86400,this.where.month=0,this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,this.isShowBox=!0,Promise.all([this.getIndex(),this.getInfo()])}}},onReachBottom:function(){this.getInfo()}};e.default=d},"6e46":function(t,e,a){var i=a("24fb");e=i(!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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-calendar[data-v-067a5752]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-067a5752]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-067a5752]{opacity:1}.uni-calendar--fixed[data-v-067a5752]{position:fixed;bottom:0;left:0;right:0;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;transition-duration:.3s;-webkit-transform:translateY(460px);transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-067a5752]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-calendar__content[data-v-067a5752]{background-color:#fff}.uni-calendar__header[data-v-067a5752]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px;border-bottom-color:#c8c7cc;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar--fixed-top[data-v-067a5752]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:#c8c7cc;border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-067a5752]{width:50px}.uni-calendar__backtoday[data-v-067a5752]{position:absolute;right:0;top:%?25?%;padding:0 5px;padding-left:10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#333;background-color:#f1f1f1}.uni-calendar__header-text[data-v-067a5752]{text-align:center;width:100px;font-size:%?28?%;color:#333}.uni-calendar__header-btn-box[data-v-067a5752]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-067a5752]{width:10px;height:10px;border-left-color:grey;border-left-style:solid;border-left-width:2px;border-top-color:#555;border-top-style:solid;border-top-width:2px}.uni-calendar--left[data-v-067a5752]{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.uni-calendar--right[data-v-067a5752]{-webkit-transform:rotate(135deg);transform:rotate(135deg)}.uni-calendar__weeks[data-v-067a5752]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-067a5752]{flex:1}.uni-calendar__weeks-day[data-v-067a5752]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:45px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-067a5752]{font-size:14px}.uni-calendar__box[data-v-067a5752]{position:relative}.uni-calendar__box-bg[data-v-067a5752]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-067a5752]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}',""]),t.exports=e},"7c9e":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*交易额统计*/.statistical-page .navs[data-v-9507740a]{width:100%;height:%?96?%;background-color:#fff;overflow:hidden;line-height:%?96?%;position:fixed;top:0;left:0;z-index:9}.statistical-page .navs .list[data-v-9507740a]{overflow-y:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;width:100%}.statistical-page .navs .item[data-v-9507740a]{font-size:%?32?%;color:#282828;margin-left:%?60?%;display:inline-block}.statistical-page .navs .item.on[data-v-9507740a]{color:#2291f8}.statistical-page .navs .item .iconfont[data-v-9507740a]{font-size:%?25?%;margin-left:%?13?%}.statistical-page .wrapper[data-v-9507740a]{width:%?740?%;background-color:#fff;border-radius:%?10?%;margin:%?119?% auto 0 auto;padding:%?50?% %?60?%}.statistical-page .wrapper .title[data-v-9507740a]{font-size:%?30?%;color:#999;text-align:center}.statistical-page .wrapper .money[data-v-9507740a]{font-size:%?72?%;color:#fba02a;text-align:center;margin-top:%?10?%}.statistical-page .wrapper .increase[data-v-9507740a]{font-size:%?28?%;color:#999;margin-top:%?20?%}.statistical-page .wrapper .increase .red[data-v-9507740a]{color:#ff6969}.statistical-page .wrapper .increase .green[data-v-9507740a]{color:#1abb1d}.statistical-page .wrapper .increase .iconfont[data-v-9507740a]{font-size:%?23?%;margin-left:%?15?%}.statistical-page .chart[data-v-9507740a]{width:%?690?%;background-color:#fff;border-radius:%?10?%;margin:%?23?% auto 0 auto\n\t/* padding: 25upx 22upx 0 22upx; */}.statistical-page .chart .chart-title[data-v-9507740a]{padding:%?20?% %?20?% %?10?%;font-size:%?26?%;color:#999}.statistical-page .chart uni-canvas[data-v-9507740a]{width:100%;height:%?530?%}.statistical-page .chart .company[data-v-9507740a]{font-size:%?26?%;color:#999}.yd-confirm[data-v-9507740a]{background-color:#fff;font-size:unset;width:%?540?%;height:%?250?%;border-radius:%?40?%}.yd-confirm-hd[data-v-9507740a]{text-align:center}.yd-confirm-title[data-v-9507740a]{color:#030303;font-weight:700;font-size:%?36?%}.yd-confirm-bd[data-v-9507740a]{text-align:center;font-size:%?28?%;color:#333}.yd-confirm-ft[data-v-9507740a]{line-height:%?90?%;margin-top:14px;border-top:%?1?% solid #eee}.yd-confirm-ft>a[data-v-9507740a]{color:#e93323}.yd-confirm-ft>a.primary[data-v-9507740a]{border-left:%?1?% solid #eee;color:#e93323}.echarts[data-v-9507740a]{width:100%;height:%?550?%}.calendar-wrapper[data-v-9507740a]{position:fixed;bottom:0;left:0;width:100%;z-index:777;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.calendar-wrapper.on[data-v-9507740a]{-webkit-transform:translateZ(0);transform:translateZ(0)}.statistical-page .wrapper .increase[data-v-9507740a]{font-size:%?26?%}.statistical-page .wrapper .increase .iconfont[data-v-9507740a]{margin-left:0}.public-wrapper .title[data-v-9507740a]{font-size:%?30?%;color:#282828;padding:0 %?30?%;margin-bottom:%?20?%}.public-wrapper .title .iconfont[data-v-9507740a]{color:#2291f8;font-size:%?40?%;margin-right:%?13?%;vertical-align:middle}.public-wrapper[data-v-9507740a]{margin:%?18?% auto 0 auto;width:%?690?%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%}.public-wrapper .nav[data-v-9507740a]{padding:0 %?30?%;height:%?70?%;line-height:%?70?%;font-size:%?24?%;color:#999}.public-wrapper .data[data-v-9507740a]{width:%?210?%;text-align:left}.public-wrapper .browse[data-v-9507740a]{width:%?192?%;text-align:right}.public-wrapper .turnover[data-v-9507740a]{width:%?227?%;text-align:right}.public-wrapper .conter[data-v-9507740a]{padding:0 %?30?%}.public-wrapper .conter .item[data-v-9507740a]{border-bottom:1px solid #f7f7f7;height:%?70?%;font-size:%?24?%}.public-wrapper .conter .item .turnover[data-v-9507740a]{color:#d84242}",""]),t.exports=e},"7d6b":function(t,e,a){"use strict";(function(t){var e=a("7037").default;a("d9e2"),a("d401"),a("d3b7"),a("25f0"),a("159b"),a("14d9"),a("ac1f"),a("5319"),a("e25e"),a("d81d"),a("00b4"),a("13d5"),a("99af"),a("4de4"),a("fb6a"),a("a9e3"),a("4e82"),a("26e9"),a("cb29"),a("e9c4");var i={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},n=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;it.end.x||e.end.xt.start.y||e.start.y2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t=e&&t<=a}function c(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var n=.2,r=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*n,s=t[0].y+(t[1].y-t[0].y)*n):(o=t[e].x+(t[e+1].x-t[e-1].x)*n,s=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var h=t.length-1;l=t[h].x-(t[h].x-t[h-1].x)*r,c=t[h].y-(t[h].y-t[h-1].y)*r}else l=t[e+1].x-(t[e+2].x-t[e].x)*r,c=t[e+1].y-(t[e+2].y-t[e].y)*r;return a(t,e+1)&&(c=t[e+1].y),a(t,e)&&(s=t[e].y),i(t,e+1)&&(l=t[e+1].x),i(t,e)&&(o=t[e].x),(s>=Math.max(t[e].y,t[e+1].y)||s<=Math.min(t[e].y,t[e+1].y))&&(s=t[e].y),(c>=Math.max(t[e].y,t[e+1].y)||c<=Math.min(t[e].y,t[e+1].y))&&(c=t[e+1].y),(o>=Math.max(t[e].x,t[e+1].x)||o<=Math.min(t[e].x,t[e+1].x))&&(o=t[e].x),(l>=Math.max(t[e].x,t[e+1].x)||l<=Math.min(t[e].x,t[e+1].x))&&(l=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function h(t,e,a){return{x:a.x+t,y:a.y-e}}function d(t,e){if(e)while(r.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function f(t,e,a){var i=0;return t.map((function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function u(t,e){var a=0,i=e-t;return a=i>=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:s(t,"lower",a),maxRange:s(e,"upper",a)}}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.fontSize;t=String(t);t=t.split("");for(var a=0,n=0;n4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){var e=[];return e=i||t.data,{text:n.format?n.format(t,e[a]):t.name+": "+t.data,color:t.color}})),o=[],s={x:0,y:0},l=0;l4&&void 0!==arguments[4]?arguments[4]:{},r=t.map((function(t){return{text:n.format?n.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));r=r.filter((function(t){if(!0!==t.disableLegend)return t}));for(var o=[],s={x:0,y:0},l=0;lt[i-1][1]&&(l[2]=o),e.data[3]=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function A(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function T(t){var e=[],a=[];return t.forEach((function(t,i){null!==t?a.push(t):(a.length&&e.push(a),a=[])})),a.length&&e.push(a),e}function k(t,e,a,i){var n={angle:0,xAxisHeight:a.xAxisHeight},r=t.map((function(t){return p(t,e.xAxis.fontSize||a.fontSize)})),o=Math.max.apply(this,r);return 1==e.xAxis.rotateLabel&&o+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+o*Math.sin(n.angle)),n}function P(t,a,i){var n={angle:0,xAxisHeight:i.xAxisHeight};n.ranges=function(t,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,r=x(t),o=[];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"==a.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var s=0,l=0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),n>-1?("number"===typeof a.xAxis.data[n].min&&(s=Math.min(a.xAxis.data[n].min,s)),"number"===typeof a.xAxis.data[n].max&&(l=Math.max(a.xAxis.data[n].max,l))):("number"===typeof a.xAxis.min&&(s=Math.min(a.xAxis.min,s)),"number"===typeof a.xAxis.max&&(l=Math.max(a.xAxis.max,l))),s===l){var c=l||10;l+=c}for(var h=s,d=l,f=[],u=(d-h)/a.xAxis.splitNumber,p=0;p<=a.xAxis.splitNumber;p++)f.push(h+u*p);return f}(t,a,i),n.rangesFormat=n.ranges.map((function(t){return t=a.xAxis.format?a.xAxis.format(t):r.toFixed(t,2),t}));var o=n.ranges.map((function(t){return t=r.toFixed(t,2),t=a.xAxis.format?a.xAxis.format(Number(t)):t,t}));n=Object.assign(n,B(o,a,i));var s=n.eachSpacing,l=o.map((function(t){return p(t)})),c=Math.max.apply(this,l);return c+2*i.xAxisTextPadding>s&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*i.xAxisTextPadding+c*Math.sin(n.angle)),!0===a.xAxis.disabled&&(n.xAxisHeight=0),n}function M(t,e,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=n.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,x(i))),l=[],c=function(n){var o=i[n],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(i,n){var o={};o.angle=t[n],o.proportion=i/s,o.position=h(a*o.proportion*r*Math.cos(o.angle),a*o.proportion*r*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},d=0;d2&&void 0!==arguments[2]?arguments[2]:1,i=0,n=0,r=0;r2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i4&&void 0!==arguments[4]?arguments[4]:1,r=0,o=0,s=[],l=0;l2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i=2&&(n._proportion_=n._proportion_%2)}return t}function I(t,e,a){for(var i=e-a+1,n=e,r=0;r=2&&(t[r]._endAngle_=t[r]._endAngle_%2),n=t[r]._endAngle_;return t}function z(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n=a.oldData?r._proportion_=(r._endAngle_-r._oldAngle_)*i+a.oldAngle:r._proportion_=r._oldAngle_-(r._oldAngle_-r._endAngle_)*i,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function O(t,e,a,i,n,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/a),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)}))}function E(t,e,a,i,n,r,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),i>0&&(t.width-=2*o),t)}))}function W(t,e,a,i,n,r,o){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),r.extra.column&&r.extra.column.width&&+r.extra.column.width>0&&(t.width=Math.min(t.width,+r.extra.column.width)),t)}))}function B(t,e,a){var i=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var r=i/n,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*r)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*r):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:r}}function N(t,e,a,i,n,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var h=[];t.forEach((function(t,l){var d={};d.x=i[o]+Math.round(n/2);var f=t.value||t,u=c*(f-e)/(a-e);u*=s,d.y=r.height-Math.round(u)-r.area[2],h.push(d)})),l.push(h)}})),l}function $(t,a,i,n,r,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type||(c=o.xAxis.boundaryGap);var h=[],d=o.height-o.area[0]-o.area[2],f=o.width-o.area[1]-o.area[3];return t.forEach((function(t,s){if(null===t)h.push(null);else{var u={};u.color=t.color,u.x=n[s];var p,x,g,b=t;if("object"===e(t)&&null!==t)if(t.constructor==Array)p=[].concat(o.chartData.xAxisData.ranges),x=p.shift(),g=p.pop(),b=t[1],u.x=o.area[3]+f*(t[0]-x)/(g-x);else b=t.value;"center"==c&&(u.x+=Math.round(r/2));var v=d*(b-a)/(i-a);v*=l,u.y=o.height-Math.round(v)-o.area[2],h.push(u)}})),h}function H(t,e,a,i,n,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,h=[],d=r.height-r.area[0]-r.area[2];return t.forEach((function(t,o){if(null===t)h.push(null);else{var f={};if(f.color=t.color,f.x=i[o]+Math.round(n/2),s>0){for(var u=0,p=0;p<=s;p++)u+=l[p].data[o];var x=u-t,g=d*(u-e)/(a-e),b=d*(x-e)/(a-e)}else u=t,g=d*(u-e)/(a-e),b=0;var v=b;g*=c,v*=c,f.y=r.height-Math.round(g)-r.area[2],f.y0=r.height-Math.round(v)-r.area[2],h.push(f)}})),h}function j(t,a,i,n){var r,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==n?g(t,a.categories.length):x(t);var s=[];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"==a.type?t.map((function(t){s.push(t)})):s.push(t[1]):s.push(t.value):s.push(t)}));var l=0,c=0;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),o>-1?("number"===typeof a.yAxis.data[o].min&&(l=Math.min(a.yAxis.data[o].min,l)),"number"===typeof a.yAxis.data[o].max&&(c=Math.max(a.yAxis.data[o].max,c))):("number"===typeof a.yAxis.min&&(l=Math.min(a.yAxis.min,l)),"number"===typeof a.yAxis.max&&(c=Math.max(a.yAxis.max,c))),l===c){var h=c||10;c+=h}for(var d=u(l,c),f=d.minRange,p=d.maxRange,b=[],v=(p-f)/a.yAxis.splitNumber,y=0;y<=a.yAxis.splitNumber;y++)b.push(f+v*y);return b.reverse()}function G(t,e,a){var i=n({},{type:""},e.extra.column),o=e.yAxis.data.length,s=new Array(o);if(o>0){for(var l=0;l=2&&(h%=2),d+=c}}function J(t,e,a,i,n,o){var s=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,l){var c={x:e*Math.cos(t),y:e*Math.sin(t)},d=h(c.x,c.y,a),f=d.x,u=d.y;r.approximatelyEqual(c.x,0)?f-=p(i.categories[l]||"")/2:c.x<0&&(f-=p(i.categories[l]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(s.labelColor||"#666666"),o.fillText(i.categories[l]||"",f,u+n.fontSize/2),o.closePath(),o.stroke()}))}function V(t,e,a,i,n,o){for(var s=a.pieChartLinePadding,l=[],c=null,f=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}})),u=0;u=0?g+a.pieChartTextPadding:g-a.pieChartTextPadding,w=b,_=p(x.text,x.textSize||a.fontSize),D=w;c&&r.isSameXCoordinateArea(c.start,{x:m})&&(D=m>0?Math.min(w,c.start.y):g<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),m<0&&(m-=_);var S={lineStart:{x:v,y:y},lineEnd:{x:g,y:b},start:{x:m,y:D},width:_,height:a.fontSize,text:x.text,color:x.color,textColor:x.textColor,textSize:x.textSize};c=d(S,c),l.push(c)}for(var A=0;Aa.width&&(u=!0),b+e.y>a.height&&(e.y=a.height-b),r.beginPath(),r.setFillStyle(o(c.bgColor||i.toolTipBackground,c.bgOpacity||i.toolTipOpacity)),u?(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x-f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x-f,e.y),r.lineTo(e.x-f-Math.round(g),e.y),r.lineTo(e.x-f-Math.round(g),e.y+b),r.lineTo(e.x-f,e.y+b),r.lineTo(e.x-f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)):(r.moveTo(e.x,e.y+10*a.pixelRatio),r.lineTo(e.x+f,e.y+10*a.pixelRatio-5*a.pixelRatio),r.lineTo(e.x+f,e.y),r.lineTo(e.x+f+Math.round(g),e.y),r.lineTo(e.x+f+Math.round(g),e.y+b),r.lineTo(e.x+f,e.y+b),r.lineTo(e.x+f,e.y+10*a.pixelRatio+5*a.pixelRatio),r.lineTo(e.x,e.y+10*a.pixelRatio)),r.closePath(),r.fill(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var n=e.x+f+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;u&&(n=e.x-g-f+2*i.toolTipPadding),r.fillRect(n,o,h,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var n=e.x+f+2*i.toolTipPadding+h+d;u&&(n=e.x-g-f+2*i.toolTipPadding+ +h+d);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(c.fontColor),r.fillText(t.text,n,o+i.fontSize),r.closePath(),r.stroke()})))}function at(t,e,a,i,n,r){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&Q(t,e,a),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===i&&et(t.tooltip.textList,t.tooltip.offset,t,e,a),a.restore()}function it(t,e,a,i){var n=e.chartData.xAxisData,r=n.xAxisPoints,o=n.startX,s=n.endX,l=n.eachSpacing,c="center";"line"!=e.type&&"area"!=e.type||(c=e.xAxis.boundaryGap);var h=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+a.xAxisHeight,u=s-o,x=l*(r.length-1),g=u*u/x,b=0;e._scrollDistance_&&(b=-e._scrollDistance_*u/x),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(o,f),i.lineTo(s,f),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(o+b,f),i.lineTo(o+b+g,f),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),r.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-l/2,h),i.lineTo(t-l/2,h+3*e.pixelRatio),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,r.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,h),i.lineTo(t,d),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var y=Math.ceil(t.length/v),m=[],w=t.length,_=0;_e[r].area[2]||t[1]>e[r].area[3]||t[2]a||t[3]>i){n=!0;break}n=!1}return n}function ct(t,e,a,i,n,r){return{x:(e-a.xMin)*i+n,y:(a.yMax-t)*i+r}}function ht(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]e.width-e.padding[1]-e.padding[3]?(d.push(x),u.push(f-e.legend.itemGap),f=v,x=[b]):(f+=v,x.push(b))}if(x.length){d.push(x),u.push(f-e.legend.itemGap),n.widthArr=u;var y=Math.max.apply(null,u);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*r;break;case"right":n.area.start.x=e.width-e.padding[1]-y-2*r,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-y)/2-r,n.area.end.x=(e.width+y)/2+r}n.area.width=y+2*r,n.area.wholeWidth=y+2*r,n.area.height=d.length*h+2*r,n.area.wholeHeight=d.length*h+2*r+2*o,n.points=d}}else{var m=t.length,w=e.height-e.padding[0]-e.padding[2]-2*o-2*r,_=Math.min(Math.floor(w/h),m);switch(n.area.height=_*h+2*r,n.area.wholeHeight=_*h+2*r,e.legend.float){case"top":n.area.start.y=e.padding[0]+o,n.area.end.y=e.padding[0]+o+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-o-n.area.height,n.area.end.y=e.height-e.padding[2]-o;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var D=m%_===0?m/_:Math.floor(m/_+1),S=[],A=0;AM&&(M=L)}n.widthArr.push(M),n.heightArr.push(P.length*h+2*r)}for(var F=0,R=0;R0?S[ht].width+e.yAxis.padding:S[ht].width,et+=1):(e.area[1]+=Q>0?S[ht].width+e.yAxis.padding:S[ht].width,Q+=1)}else a.yAxisWidth=S;if(e.chartData.yAxisData=D,e.categories&&e.categories.length){e.chartData.xAxisData=B(e.categories,e);var dt=k(e.categories,e,a,e.chartData.xAxisData.eachSpacing),pt=dt.xAxisHeight,gt=dt.angle;a.xAxisHeight=pt,a._xAxisTextAngle_=gt,e.area[2]+=pt,e.chartData.categoriesData=dt}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=P(l,e,a),d=e.chartData.xAxisData.rangesFormat;var bt=k(d,e,a,e.chartData.xAxisData.eachSpacing),vt=bt.xAxisHeight,yt=bt.angle;a.xAxisHeight=vt,a._xAxisTextAngle_=yt,e.area[2]+=vt,e.chartData.categoriesData=bt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var mt,wt=e.chartData.xAxisData.xAxisPoints,_t=e.chartData.xAxisData.startX,Dt=e.chartData.xAxisData.endX,St=e.chartData.xAxisData.eachSpacing,At=St*(wt.length-1),Tt=Dt-_t;mt=Tt-At,s.scrollOption={currentOffset:mt,startTouchX:mt,distance:0,lastMoveTime:0},e._scrollDistance_=mt}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:function(t){t=C(t);for(var e=0,a=0;a.7},u=0;u4&&void 0!==arguments[4]?arguments[4]:1;n({},{type:"normal",autoColors:!0},e.extra.word),i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var o=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var s=0;s0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+c-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?i.strokeText(l,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r):i.fillText(l,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+c-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}(l,e,a,i,t),ut(0,i)},onAnimationFinish:function(){s.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),function(t,e,a,i){var r,s,l=n({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),c=t,h=function(t){for(var e,a={xMin:180,xMax:0,yMin:90,yMax:0},i=0;ic.x?a.xMax:c.x,a.yMin=a.yMinc.y?a.yMax:c.y}}return a}(c),d=e.width/Math.abs(h.xMax-h.xMin),f=e.height/Math.abs(h.yMax-h.yMin),u=d4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),l=(e.height-e.area[0]-e.area[2])/t.length,c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},h=s.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=L(t,d,r),i.save(),i.translate(c.x,c.y);for(var f=0;f4&&void 0!==arguments[4]?arguments[4]:1,o=n({},{type:"straight",width:2},e.extra.line);o.width*=e.pixelRatio;var s=e.chartData.xAxisData,l=s.xAxisPoints,h=s.eachSpacing,d=[];i.save();var f=0,u=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=-e._scrollDistance_-h+e.area[3],u=f+(e.xAxis.itemCount+4)*h),t.forEach((function(t,n){var s,p,x;s=[].concat(e.chartData.yAxisData.ranges[t.index]),p=s.pop(),x=s.shift();var g=t.data,b=$(g,p,x,l,h,e,a,r);d.push(b);var v=T(b);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pixelRatio,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(o.width),v.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var a=0;if("curve"===o.type)for(var n=0;nf&&(i.moveTo(r.x,r.y),a=1),n>0&&r.x>f&&r.xf&&(i.moveTo(h.x,h.y),a=1),l>0&&h.x>f&&h.x4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,s=r.xAxisPoints,l=r.eachSpacing,h=e.height-e.area[2],d=[],f=0,u=0;t.forEach((function(t,e){"column"==t.type&&(u+=1)})),i.save();var p=-2,x=s.length+2,g=0,b=e.width+l;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,x=p+e.xAxis.itemCount+4,g=-e._scrollDistance_-l+e.area[3],b=g+(e.xAxis.itemCount+4)*l),t.forEach((function(t,r){var v,y,m;v=[].concat(e.chartData.yAxisData.ranges[t.index]),y=v.pop(),m=v.shift();var w=t.data,_=$(w,y,m,s,l,e,a,n);if(d.push(_),"column"==t.type){_=O(_,l,u,f,a,e);for(var D=0;D<_.length;D++){var S=_[D];if(null!==S&&D>p&&D1){var C=M[0],L=M[M.length-1];i.moveTo(C.x,C.y);var F=0;if("curve"===t.style)for(var R=0;Rg&&(i.moveTo(I.x,I.y),F=1),R>0&&I.x>g&&I.xg&&(i.moveTo(W.x,W.y),F=1),E>0&&W.x>g&&W.xg&&(i.moveTo(l.x,l.y),o=1),s>0&&l.x>g&&l.xg&&(i.moveTo(f.x,f.y),o=1),d>0&&f.x>g&&f.x4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,c=n({},{type:"group",width:l/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),h=[];i.save();var d=-2,f=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/l)-2,f=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&tt(e.tooltip.offset.x,e,0,i,l),t.forEach((function(n,o){var u,p,x;u=[].concat(e.chartData.yAxisData.ranges[n.index]),p=u.pop(),x=u.shift();var g=n.data;switch(c.type){case"group":var b=$(g,p,x,s,l,e,a,r),v=H(g,p,x,s,l,e,a,o,t,r);h.push(v),b=O(b,l,t.length,o,a,e);for(var y=0;yd&&yd&&D0&&(_-=A),i.moveTo(w,S.y),i.fillRect(w,S.y,S.width-2,_),i.closePath(),i.fill()}}break;case"meter":b=$(g,p,x,s,l,e,a,r);if(h.push(b),b=E(b,l,t.length,o,a,e,c.meter.border),0==o)for(var T=0;Td&&T0&&(i.beginPath(),i.setStrokeStyle(n.color),i.setLineWidth(c.meter.border*e.pixelRatio),i.moveTo(w+.5*c.meter.border,k.y+_),i.lineTo(w+.5*c.meter.border,k.y+.5*c.meter.border),i.lineTo(w+k.width-.5*c.meter.border,k.y+.5*c.meter.border),i.lineTo(w+k.width-.5*c.meter.border,k.y+_),i.stroke())}}else for(var P=0;Pd&&P4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),l=e.chartData.xAxisData,h=l.xAxisPoints,d=l.eachSpacing,f=e.height-e.area[2],u=[];i.save();var p=0,x=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-d+e.area[3],x=p+(e.xAxis.itemCount+4)*d),t.forEach((function(t,n){var l,g,b;l=[].concat(e.chartData.yAxisData.ranges[t.index]),g=l.pop(),b=l.shift();var v=t.data,y=$(v,g,b,h,d,e,a,r);u.push(y);for(var m=T(y),w=0;w1){var S=_[0],A=_[_.length-1];i.moveTo(S.x,S.y);var k=0;if("curve"===s.type)for(var P=0;P<_.length;P++){var M=_[P];if(0==k&&M.x>p&&(i.moveTo(M.x,M.y),k=1),P>0&&M.x>p&&M.xp&&(i.moveTo(F.x,F.y),k=1),L>0&&F.x>p&&F.xp&&(i.moveTo(E.x,E.y),z=1),O>0&&E.x>p&&E.xp&&(i.moveTo(N.x,N.y),z=1),B>0&&N.x>p&&N.x4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);t=C(t,c,r);var h=s.activeRadius;if(t=t.map((function(t){return t._start_+=s.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_+h,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),"ring"===e.type){var d=.6*c;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(d=Math.max(0,c-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(l.x,l.y),i.arc(l.x,l.y,d,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u0){f=!0;break}f&&V(t,e,a,i,0,l)}return 1===r&&"ring"===e.type&&Z(e,a,i,l),{center:l,radius:c,series:t}}(l,e,a,i,t),ot(e.series,e,a,i,e.chartData),at(e,a,i,t),ut(0,i)},onAnimationFinish:function(){s.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new xt({timing:"easeInOut",duration:u,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&Y(i,e),e.chartData.pieData=function(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=s.activeRadius);var l={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),h=s.minRadius||.5*c;t=F(t,s.type,h,c,r);var d=s.activeRadius;if(t=t.map((function(t){return t._start_+=(s.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(o(t.color,s.activeOpacity||.5)),i.moveTo(l.x,l.y),i.arc(l.x,l.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(s.borderColor),i.setFillStyle(t.color),i.moveTo(l.x,l.y),i.arc(l.x,l.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==s.border&&i.stroke()})),!1!==e.dataLabel&&1===r){for(var f=!1,u=0,p=t.length;u0){f=!0;break}f&&V(t,e,a,i,0,l)}return{center:l,radius:c,series:t}}(l,e,a,i,t),ot(e.series,e,a,i,e.chartData),at(e,a,i,t),ut(0,i)},onAnimationFinish:function(){s.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new xt({timing:"easeInOut",duration:u,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&Y(i,e),e.chartData.radarData=function(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=n({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),l=m(e.categories.length),c={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},d=Math.min(c.x-(y(e.categories)+a.radarLabelTextMargin),c.y-a.radarLabelTextMargin);d-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(t){var e=h(d*Math.cos(t),d*Math.sin(t),c);i.moveTo(c.x,c.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var f=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(s.gridColor),l.forEach((function(e,n){var r=h(d/s.gridCount*t*Math.cos(e),d/s.gridCount*t*Math.sin(e),c);0===n?(a=r,i.moveTo(r.x,r.y)):i.lineTo(r.x,r.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},u=1;u<=s.gridCount;u++)f(u);var p=M(l,c,d,t,e,r);return p.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(o(t.color,s.opacity)),t.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!1!==e.dataPointShape){var n=t.data.map((function(t){return t.position}));X(n,t.color,t.pointShape,i,e)}})),J(l,d,c,e,a,i),{center:c,radius:d,angleList:l}}(l,e,a,i,t),ot(e.series,e,a,i,e.chartData),at(e,a,i,t),ut(0,i)},onAnimationFinish:function(){s.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new xt({timing:"easeInOut",duration:u,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&Y(i,e),e.chartData.arcbarData=function(t,e,a,i){var r,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=n({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=R(t,l,s),r=l.center?l.center:{x:e.width/2,y:e.height/2},l.radius?o=l.radius:(o=Math.min(r.x,r.y),o-=5*e.pixelRatio,o-=l.width/2);for(var c=0;c5&&void 0!==arguments[5]?arguments[5]:1,l=n({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==l.oldAngle&&(l.oldAngle=l.startAngle),void 0==l.oldData&&(l.oldData=0),t=I(t,l.startAngle,l.endAngle);var c={x:a.width/2,y:a.height/2},h=Math.min(c.x,c.y);h-=5*a.pixelRatio,h-=l.width/2;var d=h-l.width,f=0;if("progress"==l.type){var u=h-3*l.width;r.beginPath();var p=r.createLinearGradient(c.x,c.y-u,c.x,c.y+u);p.addColorStop("0",o(e[0].color,.3)),p.addColorStop("1.0",o("#FFFFFF",.1)),r.setFillStyle(p),r.arc(c.x,c.y,u,0,2*Math.PI,!1),r.fill(),r.setLineWidth(l.width),r.setStrokeStyle(o(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,d,l.startAngle*Math.PI,l.endAngle*Math.PI,!1),r.stroke(),f=l.startAngle-l.endAngle+1;l.splitLine.splitNumber;var x=f/l.splitLine.splitNumber/l.splitLine.childNumber,g=-h-.5*l.width-l.splitLine.fixRadius,b=-h-l.width-l.splitLine.fixRadius+l.splitLine.width;r.save(),r.translate(c.x,c.y),r.rotate((l.startAngle-1)*Math.PI);for(var v=l.splitLine.splitNumber*l.splitLine.childNumber+1,y=e[0].data*s,m=0;mm/v?r.setStrokeStyle(o(e[0].color,1)):r.setStrokeStyle(o(e[0].color,.3)),r.setLineWidth(3*a.pixelRatio),r.moveTo(g,0),r.lineTo(b,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=R(e,l,s),r.setLineWidth(l.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(c.x,c.y,d,l.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=h-2.5*l.width;r.save(),r.translate(c.x,c.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(l.width/3);var _=r.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",o("#FFFFFF",0)),_.addColorStop("0.5",o(e[0].color,1)),_.addColorStop("1.0",o("#FFFFFF",0)),r.setStrokeStyle(_),r.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),r.stroke(),r.beginPath(),r.setLineWidth(1),r.setStrokeStyle(e[0].color),r.setFillStyle(e[0].color),r.moveTo(-w-l.width/3/2,-4),r.lineTo(-w-l.width/3/2-4,0),r.lineTo(-w-l.width/3/2,4),r.lineTo(-w-l.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(l.width),r.setLineCap("butt");for(var D=0;D5&&void 0!==arguments[5]?arguments[5]:1,s=n({},{color:{},average:{}},a.extra.candle);s.color=n({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=n({},{show:!1,name:[],day:[],color:i.colors},s.average),a.extra.candle=s;var l=a.chartData.xAxisData,h=l.xAxisPoints,d=l.eachSpacing,f=[];r.save();var u=-2,p=h.length+2,x=0,g=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),u=Math.floor(-a._scrollDistance_/d)-2,p=u+a.xAxis.itemCount+4,x=-a._scrollDistance_-d+a.area[3],g=x+(a.xAxis.itemCount+4)*d),s.average.show&&e.forEach((function(t,e){var n,s,l;n=[].concat(a.chartData.yAxisData.ranges[t.index]),s=n.pop(),l=n.shift();for(var f=t.data,u=$(f,s,l,h,d,a,i,o),p=T(u),b=0;bx&&(r.moveTo(w.x,w.y),y=1),m>0&&w.x>x&&w.xu&&v0?(r.setStrokeStyle(s.color.upLine),r.setFillStyle(s.color.upFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(s.color.downLine),r.setFillStyle(s.color.downFill),r.setLineWidth(1*a.pixelRatio),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:h,calPoints:f,eachSpacing:d}}(l,x,e,a,i,t),o=r.xAxisPoints,s=r.calPoints,h=r.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=s,e.chartData.eachSpacing=h,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&K(e,a,i),ot(x?0:e.series,e,a,i,e.chartData),at(e,a,i,t),ut(0,i)},onAnimationFinish:function(){s.event.trigger("renderComplete")}});break}}function bt(){this.events={}}xt.prototype.stop=function(){this.isStop=!0},bt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},bt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a0&&void 0!==arguments[0]?arguments[0]:{};this.opts=n({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=G(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,o=B(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,h=o.eachSpacing,d=h*(s.length-1),f=c-l;r=f-d,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}gt.call(this,this.opts.type,this.opts,this.config,this.context)},vt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=G(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,r=B(this.opts.categories,this.opts,this.config),o=r.xAxisPoints,s=r.startX,l=r.endX,c=r.eachSpacing,h=c*e,d=l-s,f=d-c*(o.length-1);n=d/2-h,n>0&&(n=0),n2*Math.PI&&(t-=2*Math.PI),t},o=Math.atan2(e.center.y-t.y,t.x-e.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=e.angleList.map((function(t){return t=r(-1*t),t}));s.forEach((function(t,e){var a=r(t-i/2),s=r(t+i/2);s=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(n=e)}))}return n}({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var a=-1,i=0,n=e.series.length;ir.funnelArea[0]&&t.xr.funnelArea[1]&&t.yr.area[0]&&t.xr.area[1]&&t.y4&&void 0!==arguments[4]?arguments[4]:0,r=-1,o=a.chartData.eachSpacing/2,s=[];if(e.length>0){if("candle"==a.type)for(var l=0;le&&(r=a)}))}return r}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},vt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=b(e,this.opts,t);return function(t,e,a){var i=-1;if(function(t,e){return t.x>e.start.x&&t.xe.start.y&&t.yh[0]&&t.xh[1]&&t.y1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){b(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,gt.call(this,this.opts.type,this.opts,this.config,this.context))}},vt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=b(a,this.opts,t),r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){var l=v(this.opts.series,s);if(0!==l.length){var c=w(l,this.opts.chartData.calPoints,s,this.opts.categories,e),h=c.textList,d=c.offset;d.y=i.y,o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}}gt.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=v(this.opts.series,s);if(0!==l.length){var f=_(l,this.opts.chartData.calPoints,s,this.opts.categories,e);h=f.textList,d=f.offset;d.y=i.y,o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}}gt.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=v(this.opts.series,s);if(0!==l.length){c=D(this.opts.series[0].data,l,this.opts.chartData.calPoints,s,this.opts.categories,this.opts.extra.candle,e),h=c.textList,d=c.offset;d.y=i.y,o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}}gt.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],h=[{text:e.format?e.format(l):l.name+": "+l.data,color:l.color}],d={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}gt.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=this.opts._series_[s],h=[{text:e.format?e.format(l):l.properties.name,color:l.color}],d={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}o.updateData=!1,gt.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){s=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(s>-1){r=this.scrollOption.currentOffset,o=n({},this.opts,{_scrollDistance_:r,animation:!1}),l=v(this.opts.series,s);if(0!==l.length){h=l.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:i.x,y:i.y};o.tooltip={textList:e.textList?e.textList:h,offset:d,option:e,index:s}}}gt.call(this,o.type,o,this.config,this.context)}},vt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=n({},this.opts,{_scrollDistance_:t,animation:!1});gt.call(this,this.opts.type,e,this.config,this.context)},vt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=b(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},vt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i=0?(s=0,t.event.trigger("scrollLeft")):Math.abs(e)>=o-r&&(s=r-o,t.event.trigger("scrollRight")),s}(this,l+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=c-l;var h=n({},this.opts,{_scrollDistance_:l+o,animation:!1});return gt.call(this,h.type,h,this.config,this.context),l+o}}},vt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,a=e.currentOffset,i=e.distance;this.scrollOption.currentOffset=a+i,this.scrollOption.distance=0}},"object"===e(t)&&"object"===e(t.exports)&&(t.exports=vt)}).call(this,a("62e4")(t))},"846e":function(t,e,a){"use strict";var i=a("f7c0"),n=a.n(i);n.a},"84cd":function(t,e,a){var i=a("5172");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("54753066",i,!0,{sourceMap:!1,shadowMode:!1})},8857:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-calendar-item__weeks-box",class:{"uni-calendar-item--disable":t.weeks.disable,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate(t.weeks)}}},[a("v-uni-view",{staticClass:"uni-calendar-item__weeks-box-item"},[t.selected&&t.weeks.extraInfo?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-circle"}):t._e(),a("v-uni-text",{staticClass:"uni-calendar-item__weeks-box-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.date))]),t.lunar||t.weeks.extraInfo||!t.weeks.isDay?t._e():a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple}},[t._v("今天")]),t.lunar&&!t.weeks.extraInfo?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.isDay?"今天":"初一"===t.weeks.lunar.IDayCn?t.weeks.lunar.IMonthCn:t.weeks.lunar.IDayCn))]):t._e(),t.weeks.extraInfo&&t.weeks.extraInfo.info?a("v-uni-text",{staticClass:"uni-calendar-item__weeks-lunar-text",class:{"uni-calendar-item--extra":t.weeks.extraInfo.info,"uni-calendar-item--isDay-text":t.weeks.isDay,"uni-calendar-item--isDay":t.calendar.fullDate===t.weeks.fullDate&&t.weeks.isDay,"uni-calendar-item--checked":t.calendar.fullDate===t.weeks.fullDate&&!t.weeks.isDay,"uni-calendar-item--multiple":t.weeks.multiple,"uni-calendar-item--disable":t.weeks.disable}},[t._v(t._s(t.weeks.extraInfo.info))]):t._e()],1)],1)},n=[]},"8e4f":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uniCalendar:a("f040").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"statistical-page"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isShowBox,expression:"isShowBox"}]},[a("div",{staticClass:"navs"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item",class:"today"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("today")}}},[t._v("今天")]),a("div",{staticClass:"item",class:"yesterday"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("yesterday")}}},[t._v("昨天")]),a("div",{staticClass:"item",class:"seven"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("seven")}}},[t._v("最近7天")]),a("div",{staticClass:"item",class:"month"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("month")}}},[t._v("本月")]),a("div",{staticClass:"item",class:"date"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTitle.apply(void 0,arguments)}}},[t._v("自定义")])])]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"title"},[t._v(t._s(t.title)+t._s(1==t.where.type?"营业额(元)":"订单量(份)"))]),(t.where.type,a("div",{staticClass:"money"},[t._v(t._s(t.time_price))])),a("div",{staticClass:"increase acea-row row-between-wrapper"},[a("div",[t._v(t._s(t.title)+"增长率:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.growth_rate)+"%"),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])]),a("div",[t._v(t._s(t.title)+"增长:"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.increase_time)),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])])])]),t.showChart?a("div",{staticClass:"chart"},[a("div",{staticClass:"chart-title"},[t._v("单位("+t._s(1==t.where.type?"元":"份")+")")]),a("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA","disable-scroll":"true"},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):t._e(),a("div",{staticClass:"public-wrapper"},[a("div",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-xiangxishuju"}),t._v("详细数据")]),a("div",{staticClass:"nav acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v("日期")]),a("div",{staticClass:"browse"},[t._v("订单量")]),a("div",{staticClass:"turnover"},[t._v("成交额")])]),a("div",{staticClass:"conter"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v(t._s(e.day))]),a("div",{staticClass:"browse"},[t._v(t._s(e.total))]),a("div",{staticClass:"turnover"},[t._v(t._s(e.pay_price))])])})),0)])]),a("uni-calendar",{ref:"calendar",attrs:{date:t.info.date,insert:t.info.insert,lunar:t.info.lunar,startDate:t.info.startDate,endDate:t.info.endDate,range:t.info.range,showMonth:t.info.showMonth},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.current,expression:"current === true"}],staticClass:"mask",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},r=[]},a556:function(t,e,a){"use strict";a.r(e);var i=a("8857"),n=a("0e4d");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("c687");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"7c21cec8",null,!1,i["a"],void 0);e["default"]=s.exports},b058:function(t,e,a){"use strict";a.r(e);var i=a("5b0e"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},b560:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d401"),a("d3b7"),a("25f0"),a("e25e");var i={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(t){var e,a=348;for(e=32768;e>8;e>>=1)a+=this.lunarInfo[t-1900]&e?1:0;return a+this.leapDays(t)},leapMonth:function(t){return 15&this.lunarInfo[t-1900]},leapDays:function(t){return this.leapMonth(t)?65536&this.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:this.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var a=e-1;return 1==a?t%4==0&&t%100!=0||t%400==0?29:28:this.solarMonth[a]},toGanZhiYear:function(t){var e=(t-3)%10,a=(t-3)%12;return 0==e&&(e=10),0==a&&(a=12),this.Gan[e-1]+this.Zhi[a-1]},toAstro:function(t,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*t-(e<[20,19,21,21,21,22,23,23,23,23,22,22][t-1]?2:0),2)+"座"},toGanZhi:function(t){return this.Gan[t%10]+this.Zhi[t%12]},getTerm:function(t,e){if(t<1900||t>2100)return-1;if(e<1||e>24)return-1;var a=this.sTermInfo[t-1900],i=[parseInt("0x"+a.substr(0,5)).toString(),parseInt("0x"+a.substr(5,5)).toString(),parseInt("0x"+a.substr(10,5)).toString(),parseInt("0x"+a.substr(15,5)).toString(),parseInt("0x"+a.substr(20,5)).toString(),parseInt("0x"+a.substr(25,5)).toString()],n=[i[0].substr(0,1),i[0].substr(1,2),i[0].substr(3,1),i[0].substr(4,2),i[1].substr(0,1),i[1].substr(1,2),i[1].substr(3,1),i[1].substr(4,2),i[2].substr(0,1),i[2].substr(1,2),i[2].substr(3,1),i[2].substr(4,2),i[3].substr(0,1),i[3].substr(1,2),i[3].substr(3,1),i[3].substr(4,2),i[4].substr(0,1),i[4].substr(1,2),i[4].substr(3,1),i[4].substr(4,2),i[5].substr(0,1),i[5].substr(1,2),i[5].substr(3,1),i[5].substr(4,2)];return parseInt(n[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=this.nStr3[t-1];return e+="月",e},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=this.nStr2[Math.floor(t/10)],e+=this.nStr1[t%10]}return e},getAnimal:function(t){return this.Animals[(t-4)%12]},solar2lunar:function(t,e,a){if(t<1900||t>2100)return-1;if(1900==t&&1==e&&a<31)return-1;if(t)i=new Date(t,parseInt(e)-1,a);else var i=new Date;var n,r=0,o=(t=i.getFullYear(),e=i.getMonth()+1,a=i.getDate(),(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate())-Date.UTC(1900,0,31))/864e5);for(n=1900;n<2101&&o>0;n++)r=this.lYearDays(n),o-=r;o<0&&(o+=r,n--);var s=new Date,l=!1;s.getFullYear()==t&&s.getMonth()+1==e&&s.getDate()==a&&(l=!0);var c=i.getDay(),h=this.nStr1[c];0==c&&(c=7);var d=n,f=this.leapMonth(n),u=!1;for(n=1;n<13&&o>0;n++)f>0&&n==f+1&&0==u?(--n,u=!0,r=this.leapDays(d)):r=this.monthDays(d,n),1==u&&n==f+1&&(u=!1),o-=r;0==o&&f>0&&n==f+1&&(u?u=!1:(u=!0,--n)),o<0&&(o+=r,--n);var p=n,x=o+1,g=e-1,b=this.toGanZhiYear(d),v=this.getTerm(t,2*e-1),y=this.getTerm(t,2*e),m=this.toGanZhi(12*(t-1900)+e+11);a>=v&&(m=this.toGanZhi(12*(t-1900)+e+12));var w=!1,_=null;v==a&&(w=!0,_=this.solarTerm[2*e-2]),y==a&&(w=!0,_=this.solarTerm[2*e-1]);var D=Date.UTC(t,g,1,0,0,0,0)/864e5+25567+10,S=this.toGanZhi(D+a-1),A=this.toAstro(e,a);return{lYear:d,lMonth:p,lDay:x,Animal:this.getAnimal(d),IMonthCn:(u?"闰":"")+this.toChinaMonth(p),IDayCn:this.toChinaDay(x),cYear:t,cMonth:e,cDay:a,gzYear:b,gzMonth:m,gzDay:S,isToday:l,isLeap:u,nWeek:c,ncWeek:"星期"+h,isTerm:w,Term:_,astro:A}},lunar2solar:function(t,e,a,i){i=!!i;var n=this.leapMonth(t);this.leapDays(t);if(i&&n!=e)return-1;if(2100==t&&12==e&&a>1||1900==t&&1==e&&a<31)return-1;var r=this.monthDays(t,e),o=r;if(i&&(o=this.leapDays(t,e)),t<1900||t>2100||a>o)return-1;for(var s=0,l=1900;l0&&(s+=this.leapDays(t),h=!0),s+=this.monthDays(t,l);i&&(s+=r);var d=Date.UTC(1900,1,30,0,0,0),f=new Date(864e5*(s+a-31)+d),u=f.getUTCFullYear(),p=f.getUTCMonth()+1,x=f.getUTCDate();return this.solar2lunar(u,p,x)}},n=i;e.default=n},c687:function(t,e,a){"use strict";var i=a("84cd"),n=a.n(i);n.a},c6e2:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-calendar",on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}},[!t.insert&&t.show?a("v-uni-view",{staticClass:"uni-calendar__mask",class:{"uni-calendar--mask-show":t.aniMaskShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clean.apply(void 0,arguments)}}}):t._e(),t.insert||t.show?a("v-uni-view",{staticClass:"uni-calendar__content",class:{"uni-calendar--fixed":!t.insert,"uni-calendar--ani-show":t.aniMaskShow}},[t.insert?t._e():a("v-uni-view",{staticClass:"uni-calendar__header uni-calendar--fixed-top"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("取消")])],1),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"uni-calendar__header-text uni-calendar--fixed-width"},[t._v("确定")])],1)],1),a("v-uni-view",{staticClass:"uni-calendar__header"},[a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.pre.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--left"})],1),a("v-uni-text",{staticClass:"uni-calendar__header-text"},[t._v(t._s((t.nowDate.year||"")+"年"+(t.nowDate.month||"")+"月"))]),a("v-uni-view",{staticClass:"uni-calendar__header-btn-box",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.next.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-calendar__header-btn uni-calendar--right"})],1),a("v-uni-text",{staticClass:"uni-calendar__backtoday",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backtoday.apply(void 0,arguments)}}},[t._v("回到今天")])],1),a("v-uni-view",{staticClass:"uni-calendar__box"},[t.showMonth?a("v-uni-view",{staticClass:"uni-calendar__box-bg"},[a("v-uni-text",{staticClass:"uni-calendar__box-bg-text"},[t._v(t._s(t.nowDate.month))])],1):t._e(),a("v-uni-view",{staticClass:"uni-calendar__weeks"},[a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("日")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("一")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("二")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("三")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("四")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("五")])],1),a("v-uni-view",{staticClass:"uni-calendar__weeks-day"},[a("v-uni-text",{staticClass:"uni-calendar__weeks-day-text"},[t._v("六")])],1)],1),t._l(t.weeks,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks"},t._l(e,(function(e,i){return a("v-uni-view",{key:i,staticClass:"uni-calendar__weeks-item"},[a("uni-calendar-item",{attrs:{weeks:e,calendar:t.calendar,selected:t.selected,lunar:t.lunar},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.choiceDate.apply(void 0,arguments)}}})],1)})),1)}))],2)],1):t._e()],1)},n=[]},e55b:function(t,e,a){"use strict";var i=a("f750"),n=a.n(i);n.a},ed0f:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getAdminOrderDelivery=function(t){return n.default.get("admin/order/delivery/gain/"+t,{},{login:!0})},e.getAdminOrderDetail=function(t,e){return n.default.get("admin/"+t+"/order/"+e,{},{login:!0})},e.getAdminOrderList=function(t){return n.default.get("admin/order/list",t,{login:!0})},e.getDeliveryStoreLst=function(t){return n.default.get("admin/".concat(t,"/delivery_options"))},e.getLogistics=function(){return n.default.get("logistics",{},{login:!1})},e.getOrderList=function(t,e){return n.default.get("admin/".concat(e,"/order_list"),t,{login:!0})},e.getRefundOrderDetail=function(t,e){return n.default.get("server/".concat(t,"/refund/detail/").concat(e),{},{login:!0})},e.getRefundOrderInfo=function(t,e){return n.default.get("server/".concat(t,"/refund/get/").concat(e))},e.getRefundOrderList=function(t,e){return n.default.get("server/".concat(e,"/refund/lst"),t,{login:!0})},e.getStatisticsInfo=function(){return n.default.get("admin/order/statistics",{},{login:!0})},e.getStatisticsMonth=function(t){return n.default.get("admin/order/data",t,{login:!0})},e.getStatisticsTime=function(t){return n.default.get("admin/order/time",t,{login:!0})},e.getTempAndDelivery=function(t){return n.default.get("admin/".concat(t,"/delivery_config"))},e.orderCancellation=function(t,e){return n.default.post("admin/".concat(t,"/verify/").concat(e))},e.orderDeliveryInfo=function(t){return n.default.get("admin/".concat(t,"/mer_form"))},e.orderExportTemp=function(t){return n.default.get("store/expr/temps",t)},e.orderNumberStatistics=function(t,e){return n.default.get("admin/".concat(e,"/pay_number"),t,{login:!0})},e.orderPrice=function(t,e){return n.default.get("admin/"+e+"/order_price",t,{login:!0})},e.orderStatistics=function(t){return n.default.get("admin/"+t+"/statistics")},e.orderVerific=function(t,e,a){return n.default.post("verifier/".concat(t,"/").concat(e),a)},e.refundOrderReceive=function(t,e){return n.default.post("server/".concat(t,"/refund/confirm/").concat(e),{},{login:!0})},e.refundOrderSubmit=function(t,e,a){return n.default.post("server/".concat(t,"/refund/status/").concat(e),a,{login:!0})},e.setAdminOrderDelivery=function(t,e,a){return n.default.post("admin/"+t+"/delivery/"+e,a,{login:!0})},e.setAdminOrderPrice=function(t,e,a){return n.default.post("admin/"+t+"/price/"+e,a,{login:!0})},e.setAdminOrderRemark=function(t,e,a){return n.default.post("admin/"+t+"/mark/"+e,a,{login:!0})},e.setOfflinePay=function(t,e){return n.default.post("admin/"+t+"/order/offline",e,{login:!0})},e.setOrderRefund=function(t,e){return n.default.post("admin/"+t+"/order/refund",e,{login:!0})},e.setRefundMark=function(t,e,a){return n.default.post("server/".concat(t,"/refund/mark/").concat(e),a,{login:!0})},e.turnoverStatistics=function(t,e){return n.default.get("admin/".concat(e,"/pay_price"),t,{login:!0})},e.verifierOrder=function(t,e){return n.default.get("verifier/"+t+"/order/"+e)},a("99af");var n=i(a("b5ef"))},f01d:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("ac1f"),a("5319"),a("14d9"),a("7db0"),a("d3b7"),a("c740"),a("a9e3"),a("e25e"),a("99af");var n=i(a("53ca")),r=i(a("d4ec")),o=i(a("bee2")),s=i(a("b560")),l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.date,i=e.selected,n=e.startDate,o=e.endDate,s=e.range;(0,r.default)(this,t),this.date=this.getDate(a),this.selected=i||[],this.startDate=n,this.endDate=o,this.range=s,this.multipleStatus={before:"",after:"",data:[]},this.weeks={},this._getWeek(this.date.fullDate)}return(0,o.default)(t,[{key:"getDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";t||(t=new Date),"object"!==(0,n.default)(t)&&(t=t.replace(/-/g,"/"));var i=new Date(t);switch(a){case"day":i.setDate(i.getDate()+e);break;case"month":31===i.getDate()?i.setDate(i.getDate()+e):i.setMonth(i.getMonth()+e);break;case"year":i.setFullYear(i.getFullYear()+e);break}var r=i.getFullYear(),o=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,s=i.getDate()<10?"0"+i.getDate():i.getDate();return{fullDate:r+"-"+o+"-"+s,year:r,month:o,date:s,day:i.getDay()}}},{key:"_getLastMonthDays",value:function(t,e){for(var a=[],i=t;i>0;i--){var n=new Date(e.year,e.month-1,1-i).getDate();a.push({date:n,month:e.month-1,lunar:this.getlunar(e.year,e.month-1,n),disable:!0})}return a}},{key:"_currentMonthDys",value:function(t,e){for(var a=this,i=[],n=this.date.fullDate,r=function(t){var r=e.year+"-"+(e.month,e.month+"-")+(t<10?"0"+t:t),o=n===r,s=a.selected&&a.selected.find((function(t){if(a.dateEqual(r,t.date))return t})),l=!0,c=!0;if(a.startDate){var h=a.dateCompare(a.startDate,n);l=a.dateCompare(h?a.startDate:n,r)}if(a.endDate){var d=a.dateCompare(n,a.endDate);c=a.dateCompare(r,d?a.endDate:n)}var f=a.multipleStatus.data,u=!1,p=-1;a.range&&(f&&(p=f.findIndex((function(t){return a.dateEqual(t,r)}))),-1!==p&&(u=!0));var x={fullDate:r,year:e.year,date:t,multiple:!!a.range&&u,month:e.month,lunar:a.getlunar(e.year,e.month,t),disable:!l||!c,isDay:o};s&&(x.extraInfo=s),i.push(x)},o=1;o<=t;o++)r(o);return i}},{key:"_getNextMonthDays",value:function(t,e){for(var a=[],i=1;i