#
whycq
2022-05-16 23324388eb3c0ba6cfb70de3a98eb8795f3d3eae
#
4个文件已修改
12 ■■■■ 已修改文件
Monitor-APP/pages/index/data.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/index/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/unpackage/dist/build/app-plus/app-service.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/unpackage/dist/build/app-plus/app-view.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/index/data.js
@@ -75,7 +75,8 @@
        var newsData = ''
        var str = ''
        let res = result.data
        if (res.data[0].matDtos.length > 0) {
        if (res.data[0].matDtos) {
            alert(12)
            if (res.data[0].matDtos.length <= 8) {
                that.pakinShow = true
            }
Monitor-APP/pages/index/index.vue
@@ -312,6 +312,7 @@
                    },
                    method:'GET',
                    success(result) {
                        console.log(result)
                        let res = result.data 
                        if (res.data) {
                            that.title = ''
@@ -320,6 +321,7 @@
                            that.newspaper = res.data
                            that.move = false
                        } else {
                            that.newspaper = ''
                            that.errorShow = false
                        }
                    }
@@ -338,6 +340,7 @@
                        var newsData = ''
                        var str = ''
                        let res = result.data
                        if(res.data) {
                        if (res.data[0].matDtos) {
                            if (res.data[0].matDtos.length <= 8) {
                                that.pakinShow = true
@@ -362,6 +365,8 @@
                            that.move = true
                        }
                    }
                    }
                })
            },
            animation() {
Monitor-APP/unpackage/dist/build/app-plus/app-service.js
@@ -1 +1 @@
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00bf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("322f")),r=i("37dc"),a=o(i("b657"));function o(t){return t&&t.__esModule?t:{default:t}}var s=(0,r.initVueI18n)(a.default),c=s.t,l={name:"uniPopupDialog",mixins:[n.default],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:function(){return{dialogType:"error",focus:!1,val:""}},computed:{okText:function(){return this.confirmText||c("uni-popup.ok")},closeText:function(){return this.cancelText||c("uni-popup.cancel")},placeholderText:function(){return this.placeholder||c("uni-popup.placeholder")},titleText:function(){return this.title||c("uni-popup.title")}},watch:{type:function(t){this.dialogType=t},mode:function(t){"input"===t&&(this.dialogType="info")},value:function(t){this.val=t}},created:function(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted:function(){this.focus=!0},methods:{onOk:function(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog:function(){this.$emit("close"),this.beforeClose||this.popup.close()},close:function(){this.popup.close()}}};e.default=l},"01cc":function(t,e,i){"use strict";i.r(e);var n=i("765e"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"095e":function(t,e,i){"use strict";i.r(e);var n=i("a2d5"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"0d3e":function(t,e,i){"use strict";i.r(e);var n=i("5cb4"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"0de9":function(t,e,i){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];console[t].apply(console,i)}function s(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var i=n(t).toUpperCase();t="NUMBER"===i||"BOOLEAN"===i?"---BEGIN:"+i+"---"+t+"---END:"+i+"---":String(t)}return t})),c="";if(s.length>1){var l=s.pop();c=s.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=s[0];console[o](c)}i.r(e),i.d(e,"log",(function(){return o})),i.d(e,"default",(function(){return s}))},"0e5f":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading5"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},1233:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={qiunLoading:i("973e").default,qiunError:i("b72d").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","chartsview"),attrs:{id:t._$s(0,"a-id","ChartBoxId"+t.cid),_i:0}},[t._$s(1,"i",t.mixinDatacomLoading)?i("view",[i("qiun-loading",{attrs:{loadingType:t.loadingType,_i:2}})],1):t._e(),t._$s(3,"i",t.mixinDatacomErrorMessage&&t.errorShow)?i("view",{attrs:{_i:3},on:{click:t.reloading}},[i("qiun-error",{attrs:{errorMessage:t.errorMessage,_i:4}})],1):t._e(),t._$s(5,"i",t.echarts)?[i("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(6,"v-show",t.showchart),expression:"_$s(6,'v-show',showchart)"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},style:t._$s(6,"s",{background:t.background}),attrs:{"data-directory":t._$s(6,"a-data-directory",t.directory),id:t._$s(6,"a-id","EC"+t.cid),prop:t._$s(6,"change:echartsOpts",t.echartsOpts),resize:t._$s(6,"change:echartsResize",t.echartsResize),_i:6}})]:[i("view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:t._$s(8,"a-id","UC"+t.cid),prop:t._$s(8,"change:uchartsOpts",t.uchartsOpts),_i:8},on:{}},[i("canvas",{directives:[{name:"show",rawName:"v-show",value:t._$s(9,"v-show",t.showchart),expression:"_$s(9,'v-show',showchart)"}],style:t._$s(9,"s",{width:t.cWidth+"px",height:t.cHeight+"px",background:t.background}),attrs:{id:t._$s(9,"a-id",t.cid),canvasId:t._$s(9,"a-canvasId",t.cid),"disable-scroll":t._$s(9,"a-disable-scroll",t.disableScroll),_i:9},on:{error:t._error}})])]],2)},a=[]},"136b":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading6"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"14af":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"\u53d6\u6d88","uni-popup.ok":"\u786e\u5b9a","uni-popup.placeholder":"\u8bf7\u8f93\u5165","uni-popup.title":"\u63d0\u793a","uni-popup.shareTitle":"\u5206\u4eab\u5230"}')},1533:function(t,e,i){"use strict";i.r(e);var n=i("306c"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"2b52":function(t,e,i){"use strict";i.r(e);var n=i("1233"),r=i("3ecb");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"67b7668b",null,!1,n["a"],o);e["default"]=c.exports},"2c81":function(t,e,i){"use strict";i.r(e);var n=i("aa9b"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"306c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:function(){return{}}};e.default=n},"322f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",e=this.$parent,i=e.$options.name;while(i!==t){if(e=e.$parent,!e)return!1;i=e.$options.name}return e}}};e.default=n},3563:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("e204"));function n(t){return t&&t.__esModule?t:{default:t}}var r={data:function(){return{show:!0,modeClass:"fade",styles:{},baseUrl:"192.168.2.20",baseLedId:"",value:"",xDistance:0,yDistance:0,xDuration:0,yDuration:0,used:317,usedPr:90,stockCount:0,emptyCount:0,noneCount:0,chartsData:{Line:{categories:[],series:[]},Pie:{series:[{data:[]}]}},chartsDataLine1:{},chartsDataPie2:{},ringOpts:{},year:2022,month:4,day:14,hours:13,minutes:38,seconds:13,week:"\u661f\u671f\u56db",ani:"",move:!0,topMove:"topUp",floorMove:"",version:"",newspaper:"\u62e3\u6599\u51fa\u5e93\uff084426)\n\u6e90\u5e93\u4f4d\uff1a1200101\n\u76ee\u6807\u7ad9\uff1a186\n1101842-10000-22047518501\n1101842-10000-22047518502\n1101842-10000-22047518503\n1101842-10000-22047518504\n1101842-10000-22047518505\n1101842-10000-22047518506\n1101842-10000-22047518507\n1101842-10000-22047518508\n1101842-10000-22047518509\n1101842-10000-22047518510\n1101842-10000-22047518511\n1101842-10000-22047518512\n1101842-10000-22047518513\n1101842-10000-22047518514\n1101842-10000-22047518515"}},mounted:function(){var t=this,e=uni.getStorageSync("BaseUrl"),i=uni.getStorageSync("BaseLedId");e&&i?(t.baseUrl=e,t.baseLedId=i):(t.baseUrl="",t.baseLedId="")},onLoad:function(){var t=this;plus.runtime.getProperty(plus.runtime.appid,(function(e){t.version=e.version}))},onReady:function(){var t=this;setTimeout((function(){}),0),setTimeout((function(){}),1e3),setInterval((function(){t.getDate(),t.getPakin(),t.animation()}),1e3)},methods:{getPakin:function(){var t=this;uni.request({url:"http://"+t.baseUrl+":9090/jkwcs/monitor/led",data:{ledId:t.baseLedId},method:"GET",success:function(e){var i=e.data;i.data?(t.newspaper=i.data,t.move=!1):(t.newspaper="",t.move=!0)}})},animation:function(){this.move?(this.topMove="topUp",this.floorMove="floorUp"):(this.topMove="topDown",this.floorMove="floorDown")},getDateFormat:function(t){var e=new Date;e.setDate(e.getDate()+t);var i=e.getMonth()+1,n=e.getDate(),r=i+"-"+n;return r},initlineChart:function(){var t=this;uni.request({url:"http://10.10.0.222:9090/jswcs/monitor/line/charts",method:"GET",success:function(e){var i=e.data;200===i.code&&(t.chartsData.Line.categories=[t.getDateFormat(-11),t.getDateFormat(-10),t.getDateFormat(-9),t.getDateFormat(-8),t.getDateFormat(-7),t.getDateFormat(-6),t.getDateFormat(-5),t.getDateFormat(-4),t.getDateFormat(-3),t.getDateFormat(-2),t.getDateFormat(-1),t.getDateFormat(0)],t.chartsData.Line.series=i.data.rows)}})},initPieChart:function(){var t=this;uni.request({url:"http://10.10.0.222:9090/jswcs/monitor/loc/rep",method:"GET",success:function(e){var i=e.data;200===i.code&&(t.chartsData.Pie.series[0].data=i.data.pie,t.stockCount=i.data.stockCount,t.emptyCount=i.data.emptyCount,t.noneCount=i.data.noneCount,t.used=i.data.used,t.usedPr=i.data.usedPr)}})},getOther:function(){var e=this;uni.request({url:"http://"+e.baseUrl+":9090/jswcs/monitor/other",data:{crnId:1,ledId:this.baseLedId},success:function(i){var n=i.data;200===n.code?(e.xDistance=n.data.xDistance,e.yDistance=n.data.yDistance,e.xDuration=n.data.xDuration,e.yDuration=n.data.yDuration,t("log",n," at pages/index/index.vue:370")):n.code}})},url:function(){this.$refs.url.open()},ledId:function(){this.$refs.ledId.open()},baseUrlConfirm:function(t){this.baseUrl=t,uni.setStorageSync("BaseUrl",this.baseUrl)},ledIdConfirm:function(t){this.baseLedId=t,uni.setStorageSync("BaseLedId",this.baseLedId)},getServerData:function(){this.chartsDataLine1=JSON.parse(JSON.stringify(this.chartsData.Line)),this.chartsDataPie2=JSON.parse(JSON.stringify(this.chartsData.Pie))},complete:function(e){t("log","\u6e32\u67d3\u5b8c\u6210\u4e8b\u4ef6",e," at pages/index/index.vue:399")},getDate:function(){var t=new Date;switch(this.year=t.getFullYear(),this.month=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,this.day=t.getDate()<10?"0"+t.getDate():t.getDate(),this.hours=t.getHours()<10?"0"+t.getHours():t.getHours(),this.minutes=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),this.seconds=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),this.weeks=t.getDay(),this.weeks){case 0:this.week="\u661f\u671f\u65e5";break;case 1:this.week="\u661f\u671f\u4e00";break;case 2:this.week="\u661f\u671f\u4e8c";break;case 3:this.week="\u661f\u671f\u4e09";break;case 4:this.week="\u661f\u671f\u56db";break;case 5:this.week="\u661f\u671f\u4e94";break;default:this.week="\u661f\u671f\u516d"}}}};e.default=r}).call(this,i("0de9")["default"])},"366d":function(t,e,i){"use strict";i.r(e);var n=i("80e0"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"37dc":function(t,e,i){"use strict";(function(t){function i(t,e){return s(t)||o(t,e)||r(t,e)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function s(t){if(Array.isArray(t))return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.compileI18nJsonStr=R,e.hasI18nJson=$,e.initVueI18n=F,e.isI18nStr=z,e.normalizeLocale=D,e.parseI18nJson=j,e.resolveLocale=q,e.isString=e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0;var h=Array.isArray,f=function(t){return null!==t&&"object"===typeof t},d=["{","}"],p=function(){function t(){c(this,t),this._caches=Object.create(null)}return u(t,[{key:"interpolate",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;if(!e)return[t];var n=this._caches[t];return n||(n=y(t,i),this._caches[t]=n),x(n,e)}}]),t}();e.Formatter=p;var g=/^(?:\d)+/,v=/^(?:\w)+/;function y(t,e){var n=i(e,2),r=n[0],a=n[1],o=[],s=0,c="";while(s<t.length){var l=t[s++];if(l===r){c&&o.push({type:"text",value:c}),c="";var u="";l=t[s++];while(void 0!==l&&l!==a)u+=l,l=t[s++];var h=l===a,f=g.test(u)?"list":h&&v.test(u)?"named":"unknown";o.push({value:u,type:f})}else c+=l}return c&&o.push({type:"text",value:c}),o}function x(t,e){var i=[],n=0,r=h(e)?"list":f(e)?"named":"unknown";if("unknown"===r)return i;while(n<t.length){var a=t[n];switch(a.type){case"text":i.push(a.value);break;case"list":i.push(e[parseInt(a.value,10)]);break;case"named":"named"===r&&i.push(e[a.value]);break;case"unknown":0;break}n++}return i}var m="zh-Hans";e.LOCALE_ZH_HANS=m;var b="zh-Hant";e.LOCALE_ZH_HANT=b;var _="en";e.LOCALE_EN=_;var w="fr";e.LOCALE_FR=w;var S="es";e.LOCALE_ES=S;var k=Object.prototype.hasOwnProperty,A=function(t,e){return k.call(t,e)},T=new p;function C(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}function P(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}function D(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),0===t.indexOf("zh"))return t.indexOf("-hans")>-1?m:t.indexOf("-hant")>-1||C(t,["-tw","-hk","-mo","-cht"])?b:m;var i=P(t,[_,w,S]);return i||void 0}}var O=function(){function t(e){var i=e.locale,n=e.fallbackLocale,r=e.messages,a=e.watcher,o=e.formater;c(this,t),this.locale=_,this.fallbackLocale=_,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=o||T,this.messages=r||{},this.setLocale(i||_),a&&this.watchLocale(a)}return u(t,[{key:"setLocale",value:function(t){var e=this,i=this.locale;this.locale=D(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],i!==this.locale&&this.watchers.forEach((function(t){t(e.locale,i)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,i=this.watchers.push(t)-1;return function(){e.watchers.splice(i,1)}}},{key:"add",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[t];n?i?Object.assign(n,e):Object.keys(e).forEach((function(t){A(n,t)||(n[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,i){return this.formater.interpolate(t,e,i).join("")}},{key:"t",value:function(t,e,i){var n=this.message;return"string"===typeof e?(e=D(e,this.messages),e&&(n=this.messages[e])):i=e,A(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function L(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function M(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof t&&t.getLocale?t.getLocale():_}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var r=[e,t];t=r[0],e=r[1]}"string"!==typeof t&&(t=M()),"string"!==typeof i&&(i="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||_);var a=new O({locale:t,fallbackLocale:i,messages:e,watcher:n}),o=function(t,e){if("function"!==typeof getApp)o=function(t,e){return a.t(t,e)};else{var i=!1;o=function(t,e){var n=getApp().$vm;return n&&(n.$locale,i||(i=!0,L(n,a))),a.t(t,e)}}return o(t,e)};return{i18n:a,f:function(t,e,i){return a.f(t,e,i)},t:function(t,e){return o(t,e)},add:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(t,e,i)},watch:function(t){return a.watchLocale(t)},getLocale:function(){return a.getLocale()},setLocale:function(t){return a.setLocale(t)}}}e.I18n=O;var I,E=function(t){return"string"===typeof t};function $(t,e){return I||(I=new p),W(t,(function(t,i){var n=t[i];return E(n)?!!z(n,e)||void 0:$(n,e)}))}function j(t,e,i){return I||(I=new p),W(t,(function(t,n){var r=t[n];E(r)?z(r,i)&&(t[n]=B(r,e,i)):j(r,e,i)})),t}function R(t,e){var i=e.locale,n=e.locales,r=e.delimiters;if(!z(t,r))return t;I||(I=new p);var a=[];Object.keys(n).forEach((function(t){t!==i&&a.push({locale:t,values:n[t]})})),a.unshift({locale:i,values:n[i]});try{return JSON.stringify(U(JSON.parse(t),a,r),null,2)}catch(o){}return t}function z(t,e){return t.indexOf(e[0])>-1}function B(t,e,i){return I.interpolate(t,e,i).join("")}function N(t,e,i,n){var r=t[e];if(E(r)){if(z(r,n)&&(t[e]=B(r,i[0].values,n),i.length>1)){var a=t[e+"Locales"]={};i.forEach((function(t){a[t.locale]=B(r,t.values,n)}))}}else U(r,i,n)}function U(t,e,i){return W(t,(function(t,n){N(t,n,e,i)})),t}function W(t,e){if(h(t)){for(var i=0;i<t.length;i++)if(e(t,i))return!0}else if(f(t))for(var n in t)if(e(t,n))return!0;return!1}function q(t){return function(e){return e?(e=D(e)||e,H(e).find((function(e){return t.indexOf(e)>-1}))):e}}function H(t){var e=[],i=t.split("-");while(i.length)e.push(i.join("-")),i.pop();return e}e.isString=E}).call(this,i("c8ba"))},3836:function(t,e,i){"use strict";i.r(e);var n=i("e3e8"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"3ecb":function(t,e,i){"use strict";i.r(e);var n=i("a207"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"3fb3":function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={qiunDataCharts:i("2b52").default,uniPopup:i("d44b").default,uniPopupDialog:i("848c").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","floor-screen"),class:t._$s(1,"c",t.floorMove),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","head"),attrs:{_i:2}},[n("text"),n("view",{staticClass:t._$s(4,"sc","time-tools"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.year))+t._$s(4,"t0-1",t._s(t.month))+t._$s(4,"t0-2",t._s(t.day))+t._$s(4,"t0-3",t._s(t.hours))+t._$s(4,"t0-4",t._s(t.minutes))+t._$s(4,"t0-5",t._s(t.seconds))+t._$s(4,"t0-6",t._s(t.week)))]),n("view",{staticClass:t._$s(5,"sc","button-left"),attrs:{_i:5},on:{click:function(e){return t.url()}}}),n("view",{staticClass:t._$s(6,"sc","button-right"),attrs:{_i:6},on:{click:function(e){return t.ledId()}}})]),n("view",{staticClass:t._$s(7,"sc","main"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","main-sides"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","box"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","box-border box-border1"),attrs:{_i:10}}),n("view",{staticClass:t._$s(11,"sc","box-border box-border2"),attrs:{_i:11}}),n("view",{staticClass:t._$s(12,"sc","box-border box-border3"),attrs:{_i:12}}),n("view",{staticClass:t._$s(13,"sc","box-border box-border4"),attrs:{_i:13}}),n("view",[n("text",{staticClass:t._$s(15,"sc","animate"),attrs:{_i:15}},[t._v(t._$s(15,"t0-0",t._s(t.newspaper)))])])])])])]),n("view",{staticClass:t._$s(16,"sc","top-screen"),class:t._$s(16,"c",t.topMove),attrs:{_i:16}},[n("view",{staticClass:t._$s(17,"sc","head"),attrs:{_i:17}},[n("text"),n("view",{staticClass:t._$s(19,"sc","time-tools"),attrs:{_i:19}},[t._v(t._$s(19,"t0-0",t._s(t.year))+t._$s(19,"t0-1",t._s(t.month))+t._$s(19,"t0-2",t._s(t.day))+t._$s(19,"t0-3",t._s(t.hours))+t._$s(19,"t0-4",t._s(t.minutes))+t._$s(19,"t0-5",t._s(t.seconds))+t._$s(19,"t0-6",t._s(t.week)))]),n("view",{staticClass:t._$s(20,"sc","button-left"),attrs:{_i:20},on:{click:function(e){return t.url()}}}),n("view",{staticClass:t._$s(21,"sc","button-right"),attrs:{_i:21},on:{click:function(e){return t.ledId()}}})]),n("view",{staticClass:t._$s(22,"sc","main"),attrs:{_i:22}},[n("view",{staticClass:t._$s(23,"sc","main-sides"),attrs:{_i:23}},[n("view",{staticClass:t._$s(24,"sc","box box-lg"),attrs:{_i:24}},[n("view",{staticClass:t._$s(25,"sc","box-border box-border1"),attrs:{_i:25}}),n("view",{staticClass:t._$s(26,"sc","box-border box-border2"),attrs:{_i:26}}),n("view",{staticClass:t._$s(27,"sc","box-border box-border3"),attrs:{_i:27}}),n("view",{staticClass:t._$s(28,"sc","box-border box-border4"),attrs:{_i:28}}),n("view",{staticClass:t._$s(29,"sc","box-item introduce"),attrs:{_i:29}},[n("h3"),n("p",{staticClass:t._$s(31,"sc","english"),attrs:{_i:31}}),n("p",{staticClass:t._$s(32,"sc","introduce-content"),attrs:{_i:32}})]),n("view",{staticClass:t._$s(33,"sc","box-item charge-info"),attrs:{_i:33}},[n("h3"),n("p",{staticClass:t._$s(35,"sc","english"),attrs:{_i:35}}),n("view",{staticClass:t._$s(36,"sc","charge-info-item"),attrs:{_i:36}},[n("image",{attrs:{src:t._$s(37,"a-src",i("e06a")),_i:37}}),n("view",[n("text",{staticClass:t._$s(39,"sc","count"),attrs:{_i:39}},[t._v(t._$s(39,"t0-0",t._s(t.xDistance)))]),n("text",{staticClass:t._$s(40,"sc","unit"),attrs:{_i:40}})]),n("view")]),n("view",{staticClass:t._$s(42,"sc","charge-info-item"),attrs:{_i:42}},[n("image",{attrs:{src:t._$s(43,"a-src",i("92cb")),_i:43}}),n("view",[n("text",{staticClass:t._$s(45,"sc","count"),attrs:{_i:45}},[t._v(t._$s(45,"t0-0",t._s(t.yDistance)))]),n("text",{staticClass:t._$s(46,"sc","unit"),attrs:{_i:46}})]),n("view")]),n("view",{staticClass:t._$s(48,"sc","charge-info-item"),attrs:{_i:48}},[n("image",{attrs:{src:t._$s(49,"a-src",i("460c")),_i:49}}),n("view",[n("text",{staticClass:t._$s(51,"sc","count"),attrs:{_i:51}},[t._v(t._$s(51,"t0-0",t._s(t.xDuration)))]),n("text",{staticClass:t._$s(52,"sc","unit"),attrs:{_i:52}})]),n("view")]),n("view",{staticClass:t._$s(54,"sc","charge-info-item"),attrs:{_i:54}},[n("image",{attrs:{src:t._$s(55,"a-src",i("af18")),_i:55}}),n("view",[n("text",{staticClass:t._$s(57,"sc","count"),attrs:{_i:57}},[t._v(t._$s(57,"t0-0",t._s(t.yDuration)))]),n("text",{staticClass:t._$s(58,"sc","unit"),attrs:{_i:58}})]),n("view")])]),n("view",{staticClass:t._$s(60,"sc","box-item use-info"),attrs:{_i:60}},[n("view",{staticClass:t._$s(61,"sc","use-left"),attrs:{_i:61}},[n("h3"),n("p",{staticClass:t._$s(63,"sc","english"),attrs:{_i:63}})]),n("view",{staticClass:t._$s(64,"sc","use-right"),attrs:{_i:64}},[n("h3"),n("p",{staticClass:t._$s(66,"sc","english"),attrs:{_i:66}})]),n("view",{staticClass:t._$s(67,"sc","use-main"),attrs:{_i:67}},[n("view",{staticClass:t._$s(68,"sc","left"),attrs:{_i:68}},[n("view",{staticClass:t._$s(69,"sc","progressBar"),attrs:{_i:69}},[n("view",{staticClass:t._$s(70,"sc","progress"),style:t._$s(70,"s","width:"+t.usedPr+"%"),attrs:{_i:70}})])]),n("view",{staticClass:t._$s(71,"sc","right"),attrs:{_i:71}},[t._v(t._$s(71,"t0-0",t._s(t.used)))])])])])]),n("view",{staticClass:t._$s(72,"sc","main-sides"),attrs:{_i:72}},[n("view",{staticClass:t._$s(73,"sc","box box-tp"),attrs:{_i:73}},[n("view",{staticClass:t._$s(74,"sc","box-border box-border1"),attrs:{_i:74}}),n("view",{staticClass:t._$s(75,"sc","box-border box-border2"),attrs:{_i:75}}),n("view",{staticClass:t._$s(76,"sc","box-border box-border3"),attrs:{_i:76}}),n("view",{staticClass:t._$s(77,"sc","box-border box-border4"),attrs:{_i:77}}),n("view",{staticClass:t._$s(78,"sc","box-item right-item"),attrs:{_i:78}},[n("view",{staticClass:t._$s(79,"sc","sub-left"),attrs:{_i:79}},[n("h3"),n("p",{staticClass:t._$s(81,"sc","english"),attrs:{_i:81}})]),n("view",{staticClass:t._$s(82,"sc","sub-right"),attrs:{_i:82}},[n("h3"),n("p",{staticClass:t._$s(84,"sc","english"),attrs:{_i:84}})]),n("view",{staticClass:t._$s(85,"sc","sub-main"),attrs:{_i:85}},[n("view",{staticClass:t._$s(86,"sc","charts-box"),attrs:{_i:86}},[n("qiun-data-charts",{attrs:{type:"line",chartData:t.chartsDataLine1,echartsH5:!0,echartsApp:!0,_i:87}})],1)])])]),n("view",{staticClass:t._$s(88,"sc","box box-md"),attrs:{_i:88}},[n("view",{staticClass:t._$s(89,"sc","box-border box-border1"),attrs:{_i:89}}),n("view",{staticClass:t._$s(90,"sc","box-border box-border2"),attrs:{_i:90}}),n("view",{staticClass:t._$s(91,"sc","box-border box-border3"),attrs:{_i:91}}),n("view",{staticClass:t._$s(92,"sc","box-border box-border4"),attrs:{_i:92}}),n("view",{staticClass:t._$s(93,"sc","box-item right-item"),attrs:{_i:93}},[n("view",{staticClass:t._$s(94,"sc","sub-left"),attrs:{_i:94}},[n("h3"),n("p",{staticClass:t._$s(96,"sc","english"),attrs:{_i:96}})]),n("view",{staticClass:t._$s(97,"sc","sub-right"),attrs:{_i:97}},[n("h3"),n("p",{staticClass:t._$s(99,"sc","english"),attrs:{_i:99}})]),n("view",{staticClass:t._$s(100,"sc","sub-main"),attrs:{_i:100}},[n("view",{staticClass:t._$s(101,"sc","charts-box ring"),attrs:{_i:101}},[n("qiun-data-charts",{attrs:{type:"ring",opts:{legend:{position:"bottom"}},eopts:t.ringOpts,chartData:t.chartsDataPie2,echartsH5:!0,echartsApp:!0,_i:102}})],1),n("view",{staticClass:t._$s(103,"sc","sub-main-right"),attrs:{_i:103}},[n("view",{staticClass:t._$s(104,"sc","sub-info"),attrs:{_i:104}},[n("image",{attrs:{src:t._$s(105,"a-src",i("bc8f")),_i:105}}),n("text"),n("text",[t._v(t._$s(107,"t0-0",t._s(t.stockCount)))])]),n("view",{staticClass:t._$s(108,"sc","sub-info"),attrs:{_i:108}},[n("image",{attrs:{src:t._$s(109,"a-src",i("97a1")),_i:109}}),n("text"),n("text",[t._v(t._$s(111,"t0-0",t._s(t.emptyCount)))])]),n("view",{staticClass:t._$s(112,"sc","sub-info"),attrs:{_i:112}},[n("image",{attrs:{src:t._$s(113,"a-src",i("8c8a")),_i:113}}),n("text"),n("text",[t._v(t._$s(115,"t0-0",t._s(t.noneCount)))])])])])])]),n("view",{staticClass:t._$s(116,"sc","box box-bt"),attrs:{_i:116}},[n("view",{staticClass:t._$s(117,"sc","box-border box-border1"),attrs:{_i:117}}),n("view",{staticClass:t._$s(118,"sc","box-border box-border2"),attrs:{_i:118}}),n("view",{staticClass:t._$s(119,"sc","box-border box-border3"),attrs:{_i:119}}),n("view",{staticClass:t._$s(120,"sc","box-border box-border4"),attrs:{_i:120}}),n("view"),n("image",{attrs:{src:t._$s(122,"a-src",i("f2a4")),_i:122}})])])])]),n("view",[n("uni-popup",{ref:"url",attrs:{type:"dialog",_i:124}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u914d\u7f6eurl",value:"",placeholder:"\u793a\u4f8b:192.168.1.1",_i:125},on:{confirm:t.baseUrlConfirm}})],1)],1),n("view",[n("uni-popup",{ref:"ledId",attrs:{type:"dialog",_i:127}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u914d\u7f6eledId",value:"",placeholder:"\u793a\u4f8b:188",_i:128},on:{confirm:t.ledIdConfirm}})],1)],1)])},a=[]},"400e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var i=new Date;i.setTime(1e3*t);var n=i.getFullYear(),r=i.getMonth()+1;r=r<10?"0"+r:r;var a=i.getDate();a=a<10?"0"+a:a;var o=i.getHours();o=o<10?"0"+o:o;var s=i.getMinutes(),c=i.getSeconds();return s=s<10?"0"+s:s,c=c<10?"0"+c:c,"full"==e?n+"-"+r+"-"+a+" "+o+":"+s+":"+c:"y-m-d"==e?n+"-"+r+"-"+a:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+c:[n,r,a,o,s,c]},a={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["\u997c\u72b6\u56fe","\u5706\u73af\u56fe","\u73ab\u7470\u56fe","\u8bcd\u4e91\u56fe","\u6f0f\u6597\u56fe","\u5730\u56fe","\u5706\u5f27\u8fdb\u5ea6\u6761","\u6298\u7ebf\u56fe","\u67f1\u72b6\u56fe","\u6761\u72b6\u56fe","\u533a\u57df\u56fe","\u96f7\u8fbe\u56fe","\u4eea\u8868\u76d8","K\u7ebf\u56fe","\u6df7\u5408\u56fe","\u65f6\u95f4\u8f74\u6298\u7ebf","\u65f6\u95f4\u8f74\u533a\u57df","\u6563\u70b9\u56fe","\u6c14\u6ce1\u56fe","\u81ea\u5b9a\u4e49\u7c7b\u578b"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"\u5143"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"\u5e74"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"\u5143"},tooltipDemo1:function(t,e,i,n){return 0==i?"\u968f\u4fbf\u7528"+t.data+"\u5e74":"\u5176\u4ed6\u6211\u6ca1\u6539"+t.data+"\u5929"},pieDemo:function(t,e,i){if(void 0!==e)return i[e].name+"\uff1a"+i[e].data+"\u5143"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"\u6536\u76ca\u7387",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"\u767e\u5206\u6bd4",fontSize:25,color:"#00FF00"},subtitle:{name:"\u9ed8\u8ba4\u6807\u9898",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"\u5b9e\u65f6\u901f\u5ea6",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},o=a;e.default=o},"43dd":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-popup-dialog"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","uni-dialog-title"),attrs:{_i:1}},[i("text",{staticClass:t._$s(2,"sc","uni-dialog-title-text"),class:t._$s(2,"c",["uni-popup__"+t.dialogType]),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.titleText)))])]),t._$s(3,"i","base"===t.mode)?i("view",{staticClass:t._$s(3,"sc","uni-dialog-content"),attrs:{_i:3}},[t._t("default",[i("text",{staticClass:t._$s(5,"sc","uni-dialog-content-text"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.content)))])],{_i:4})],2):i("view",{staticClass:t._$s(6,"sc","uni-dialog-content"),attrs:{_i:6}},[t._t("default",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:t._$s(8,"sc","uni-dialog-input"),attrs:{placeholder:t._$s(8,"a-placeholder",t.placeholderText),focus:t._$s(8,"a-focus",t.focus),_i:8},domProps:{value:t._$s(8,"v-model",t.val)},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})],{_i:7})],2),i("view",{staticClass:t._$s(9,"sc","uni-dialog-button-group"),attrs:{_i:9}},[i("view",{staticClass:t._$s(10,"sc","uni-dialog-button"),attrs:{_i:10},on:{click:t.closeDialog}},[i("text",{staticClass:t._$s(11,"sc","uni-dialog-button-text"),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.closeText)))])]),i("view",{staticClass:t._$s(12,"sc","uni-dialog-button uni-border-left"),attrs:{_i:12},on:{click:t.onOk}},[i("text",{staticClass:t._$s(13,"sc","uni-dialog-button-text uni-button-color"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.okText)))])])])])},a=[]},"460c":function(t,e){t.exports="/static/c1.png"},"53ae":function(t,e,i){"use strict";i.r(e);var n=i("136b"),r=i("01cc");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"21f077a2",null,!1,n["a"],o);e["default"]=c.exports},5493:function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=d;var l=function(){function t(e,i){o(this,t),this.options=e,this.animation=uni.createAnimation(e),this.currentStepAnimates={},this.next=0,this.$=i}return c(t,[{key:"_nvuePushAnimates",value:function(t,e){var i=this.currentStepAnimates[this.next],n={};if(n=i||{styles:{},config:{}},u.includes(t)){n.styles.transform||(n.styles.transform="");var r="";"rotate"===t&&(r="deg"),n.styles.transform+="".concat(t,"(").concat(e+r,") ")}else n.styles[t]="".concat(e);this.currentStepAnimates[this.next]=n}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$.$refs["ani"].ref;if(i)return new Promise((function(n,a){nvueAnimation.transition(i,r({styles:t},e),(function(t){n()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=t[i];if(r){var a=r.styles,o=r.config;this._animateRun(a,o).then((function(){i+=1,e._nvueNextAnimate(t,i,n)}))}else this.currentStepAnimates={},"function"===typeof n&&n(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),u=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],h=["opacity","backgroundColor"],f=["width","height","left","right","top","bottom"];function d(t,e){if(e)return clearTimeout(e.timer),new l(t,e)}u.concat(h,f).forEach((function(t){l.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},"591b":function(t,e,i){"use strict";i.r(e);var n=i("0e5f"),r=i("6fe6");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"33929875",null,!1,n["a"],o);e["default"]=c.exports},"5a16":function(t,e,i){"use strict";i.r(e);var n=i("366d");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var a,o,s,c,l=i("f0c5"),u=Object(l["a"])(n["default"],a,o,!1,null,null,null,!1,s,c);e["default"]=u.exports},"5cb4":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading1",data:function(){return{}}};e.default=n},6502:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"\u53d6\u6d88","uni-popup.ok":"\u78ba\u5b9a","uni-popup.placeholder":"\u8acb\u8f38\u5165","uni-popup.title":"\u63d0\u793a","uni-popup.shareTitle":"\u5206\u4eab\u5230"}')},"681b":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading2"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"6fe6":function(t,e,i){"use strict";i.r(e);var n=i("9d2f"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},7120:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uniTransition:i("9e6c").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._$s(0,"i",t.showPopup)?i("view",{staticClass:t._$s(0,"sc","uni-popup"),class:t._$s(0,"c",[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]),attrs:{_i:0},on:{touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.clear(e)}}},[i("view",{attrs:{_i:1},on:{touchstart:t.touchstart}},[t._$s(2,"i",t.maskShow)?i("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:t.maskClass,duration:t.duration,show:t.showTrans,_i:2},on:{click:t.onTap}}):t._e(),i("uni-transition",{key:"2",attrs:{"mode-class":t.ani,name:"content",styles:t.transClass,duration:t.duration,show:t.showTrans,_i:3},on:{click:t.onTap}},[i("view",{staticClass:t._$s(4,"sc","uni-popup__wrapper"),class:t._$s(4,"c",[t.popupstyle]),style:t._$s(4,"s",{backgroundColor:t.bg}),attrs:{_i:4},on:{click:t.clear}},[t._t("default",null,{_i:5})],2)])],1)]):t._e()},a=[]},"765e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading6",data:function(){return{}}};e.default=n},"7ac3":function(t,e,i){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(i("c6b4").default)}))},"80e0":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=i}).call(this,i("0de9")["default"])},8215:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._$s(1,"i",1==t.loadingType)?i("Loading1",{attrs:{_i:1}}):t._e(),t._$s(2,"i",2==t.loadingType)?i("Loading2",{attrs:{_i:2}}):t._e(),t._$s(3,"i",3==t.loadingType)?i("Loading3",{attrs:{_i:3}}):t._e(),t._$s(4,"i",4==t.loadingType)?i("Loading4",{attrs:{_i:4}}):t._e(),t._$s(5,"i",5==t.loadingType)?i("Loading5",{attrs:{_i:5}}):t._e()],1)},a=[]},"83fc":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},"848c":function(t,e,i){"use strict";i.r(e);var n=i("43dd"),r=i("857d");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},"855c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(i("de4d")),r=c(i("e891")),a=c(i("b59e")),o=c(i("591b")),s=c(i("53ae"));function c(t){return t&&t.__esModule?t:{default:t}}var l={components:{Loading1:n.default,Loading2:r.default,Loading3:a.default,Loading4:o.default,Loading5:s.default},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:function(){return{}}};e.default=l},"857d":function(t,e,i){"use strict";i.r(e);var n=i("00bf"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},8640:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading3"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"86ed":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={appid:"__UNI__CA903B7"};e.default=n},"8bbf":function(t,e){t.exports=Vue},"8c8a":function(t,e){t.exports="/static/e1.png"},"92cb":function(t,e){t.exports="/static/b1.png"},"965e":function(t,e,i){"use strict";i.r(e);var n=i("3563"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"96cf":function(t,e){!function(e){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"===typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{u=e.regeneratorRuntime=l?t.exports:{},u.wrap=b;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",g={},v={};v[o]=function(){return this};var y=Object.getPrototypeOf,x=y&&y(y(M([])));x&&x!==n&&r.call(x,o)&&(v=x);var m=k.prototype=w.prototype=Object.create(v);S.prototype=m.constructor=k,k.constructor=S,k[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},u.awrap=function(t){return{__await:t}},A(T.prototype),T.prototype[s]=function(){return this},u.AsyncIterator=T,u.async=function(t,e,i,n){var r=new T(b(t,e,i,n));return u.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},A(m),m[c]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){while(e.length){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=M,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=i),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;O(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=i),g}}}function b(t,e,i,n){var r=e&&e.prototype instanceof w?e:w,a=Object.create(r.prototype),o=new L(n||[]);return a._invoke=C(t,i,o),a}function _(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function S(){}function k(){}function A(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){function e(i,n,a,o){var s=_(t[i],t,n);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,a,o)}),(function(t){e("throw",t,a,o)})):Promise.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return e("throw",t,a,o)}))}o(s.arg)}var i;function n(t,n){function r(){return new Promise((function(i,r){e(t,n,i,r)}))}return i=i?i.then(r,r):r()}this._invoke=n}function C(t,e,i){var n=h;return function(r,a){if(n===d)throw new Error("Generator is already running");if(n===p){if("throw"===r)throw a;return F()}i.method=r,i.arg=a;while(1){var o=i.delegate;if(o){var s=P(o,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===h)throw n=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=d;var c=_(t,e,i);if("normal"===c.type){if(n=i.done?p:f,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n=p,i.method="throw",i.arg=c.arg)}}}function P(t,e){var n=t.iterator[e.method];if(n===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=i,P(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=_(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=i),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function M(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){while(++n<t.length)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=i,e.done=!0,e};return a.next=a}}return{next:F}}function F(){return{value:i,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"973e":function(t,e,i){"use strict";i.r(e);var n=i("8215"),r=i("aafe");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},"97a1":function(t,e){t.exports="/static/f1.png"},"9d2f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading5",data:function(){return{}}};e.default=n},"9e6c":function(t,e,i){"use strict";i.r(e);var n=i("c578"),r=i("d868");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},a0a3:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("5493");function r(t){return c(t)||s(t)||o(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"===typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){f(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function f(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var d={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var t=h(h({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),e="";for(var i in t){var n=this.toLine(i);e+=n+":"+t[i]+";"}return e},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,n.createAnimation)(Object.assign(this.config,t),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in e)try{var a;if("object"===typeof e[n])(a=this.animation)[n].apply(a,r(e[n]));else this.animation[n](e[n])}catch(o){t("error","\u65b9\u6cd5 ".concat(n," \u4e0d\u5b58\u5728")," at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:139")}return this.animation.step(i),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),i=e.opacity,r=e.transform;"undefined"!==typeof i&&(this.opacity=i),this.transform=r,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,n.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),i=t.opacity,n=t.transform;e.opacity=i||1,e.transform=n,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,i={transform:""},n=function(t,n){"fade"===n?i.opacity=e.animationType(t)[n]:i.transform+=e.animationType(t)[n]+" "};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(e){n(t,e)})),i},tranfromInit:function(t){var e=this,i=function(t,i){var n=null;"fade"===i?n=t?0:1:(n=t?"-100%":"0","zoom-in"===i&&(n=t?.8:1),"zoom-out"===i&&(n=t?1.2:1),"slide-right"===i&&(n=t?"100%":"0"),"slide-bottom"===i&&(n=t?"100%":"0")),e.animation[e.animationMode()[i]](n)};return"string"===typeof this.modeClass?i(t,this.modeClass):this.modeClass.forEach((function(e){i(t,e)})),this.animation},animationType:function(t){return{fade:t?1:0,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=d}).call(this,i("0de9")["default"])},a207:function(t,e,i){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(i("b3df"));var r=o(i("400e")),a=o(i("f27d"));function o(t){return t&&t.__esModule?t:{default:t}}function s(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r in i)for(var a in i[r])i[r].hasOwnProperty(a)&&(t[a]=i[r][a]&&"object"===typeof i[r][a]?s(Array.isArray(i[r][a])?[]:{},t[a],i[r][a]):i[r][a]);return t}function c(t,e){for(var i in t)null!==t[i]&&"object"===typeof t[i]?c(t[i],e):"format"===i&&"string"===typeof t[i]&&(t["formatter"]=e[t[i]]?e[t[i]]:void 0);return t}function l(t){var e="-",i=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var a=i+e+n+e+r;return a}var u={name:"qiun-data-charts",mixins:[t.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:function(){return{categories:[],series:[]}}},opts:{type:Object,default:function(){return{}}},eopts:{type:Object,default:function(){return{}}},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:function(){return[]}},groupEnum:{type:Array,default:function(){return[]}},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:function(){return[]}}},data:function(){return{cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:!1,uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}},created:function(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e=t.length,i="",n=0;n<32;n++)i+=t.charAt(Math.floor(Math.random()*e));this.cid=i}var r=uni.getSystemInfoSync();"windows"!==r.platform&&"mac"!==r.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted:function(){var t=this;this.inApp=!0,!0===this.echartsApp&&(this.echarts=!0,this.openmouse=!1),this.$nextTick((function(){t.beforeInit()}))},destroyed:function(){!0===this.echarts?(delete a.default.option[this.cid],delete a.default.instance[this.cid]):(delete r.default.option[this.cid],delete r.default.instance[this.cid]),uni.offWindowResize((function(){}))},watch:{chartDataProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&(t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1achartData\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},localdata:{handler:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aopts\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},eoptsProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aeopts\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},reshow:function(t,e){var i=this;!0===t&&!1===this.mixinDatacomLoading&&setTimeout((function(){i.mixinDatacomErrorMessage=null,i.echartsResize=!i.echartsResize,i.checkData(i.drawData)}),200)},reload:function(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage:function(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow&&n("log","[\u79cb\u4e91\u56fe\u8868\u7ec4\u4ef6]"+t," at uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue:600"))},errorMessage:function(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps:function(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps:function(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps:function(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit:function(){this.mixinDatacomErrorMessage=null,"object"===typeof this.chartData&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=s({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit:function(t){if(this.groupEnum.length>0)for(var e=0;e<t.length;e++)for(var i=0;i<this.groupEnum.length;i++)t[e].group===this.groupEnum[i].value&&(t[e].group=this.groupEnum[i].text);if(this.textEnum.length>0)for(var n=0;n<t.length;n++)for(var o=0;o<this.textEnum.length;o++)t[n].text===this.textEnum[o].value&&(t[n].text=this.textEnum[o].text);var c=!1,u={categories:[],series:[]},h=[],f=[];if(c=!0===this.echarts?a.default.categories.includes(this.type):r.default.categories.includes(this.type),!0===c){if(this.chartData&&this.chartData.categories&&this.chartData.categories.length>0)h=this.chartData.categories;else if(this.startDate&&this.endDate){var d=new Date(this.startDate),p=new Date(this.endDate);while(d<=p)h.push(l(d)),d=d.setDate(d.getDate()+1),d=new Date(d)}else{var g={};t.map((function(t,e){void 0==t.text||g[t.text]||(h.push(t.text),g[t.text]=!0)}))}u.categories=h}var v={};if(t.map((function(t,e){void 0==t.group||v[t.group]||(f.push({name:t.group,data:[]}),v[t.group]=!0)})),0==f.length)if(f=[{name:"\u9ed8\u8ba4\u5206\u7ec4",data:[]}],!0===c)for(var y=0;y<h.length;y++){for(var x=0,m=0;m<t.length;m++)t[m].text==h[y]&&(x=t[m].value);f[0].data.push(x)}else for(var b=0;b<t.length;b++)f[0].data.push({name:t[b].text,value:t[b].value});else for(var _=0;_<f.length;_++)if(h.length>0)for(var w=0;w<h.length;w++){for(var S=0,k=0;k<t.length;k++)f[_].name==t[k].group&&t[k].text==h[w]&&(S=t[k].value);f[_].data.push(S)}else for(var A=0;A<t.length;A++)f[_].name==t[A].group&&f[_].data.push(t[A].value);u.series=f,this.drawData=s({},u),this.checkData(u)},reloading:function(){!1!==this.errorReload&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,""!==this.collection?(this.mixinDatacomLoading=!1,this.onMixinDatacomPropsChange(!0)):this.beforeInit())},checkData:function(t){var e=this,i=this.cid;!0===this.echarts?(a.default.option[i]=s({},this.eopts),a.default.option[i].id=i,a.default.option[i].type=this.type):this.type&&r.default.type.includes(this.type)?(r.default.option[i]=s({},r.default[this.type],this.opts),r.default.option[i].canvasId=i):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aprops\u53c2\u6570\u4e2dtype\u7c7b\u578b\u4e0d\u6b63\u786e");var n=s({},t);void 0!==n.series&&n.series.length>0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(a.default.option[i].chartData=n,this.$nextTick((function(){e.init()}))):(r.default.option[i].categories=n.categories,r.default.option[i].series=n.series,this.$nextTick((function(){e.init()}))))},resizeHandler:function(){var t=this,e=Date.now(),i=this.lastDrawTime?this.lastDrawTime:e-3e3,n=e-i;if(!(n<1e3))uni.createSelectorQuery().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((function(e){t.showchart=!0,e.width>0&&e.height>0&&(e.width===t.cWidth&&e.height===t.cHeight||t.checkData(t.drawData))})).exec()},getCloudData:function(){var t=this;1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((function(e){t.mixinDatacomResData=e.result.data,t.localdataInit(t.mixinDatacomResData)})).catch((function(e){t.mixinDatacomLoading=!1,t.showchart=!1,t.mixinDatacomErrorMessage="\u8bf7\u6c42\u9519\u8bef\uff1a"+e})))},onMixinDatacomPropsChange:function(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart:function(){var t=this.cid;if(!0!==this.echrts){var e=uni.createCanvasContext(t,this);e.clearRect(0,0,this.cWidth,this.cHeight),e.draw()}},init:function(){var t=this,e=this.cid;uni.createSelectorQuery().in(this).select("#ChartBoxId"+e).boundingClientRect((function(i){i.width>0&&i.height>0?(t.mixinDatacomLoading=!1,t.showchart=!0,t.lastDrawTime=Date.now(),t.cWidth=i.width,t.cHeight=i.height,!0!==t.echarts&&(r.default.option[e].background="rgba(0,0,0,0)"==t.background?"#FFFFFF":t.background,r.default.option[e].canvas2d=t.type2d,r.default.option[e].pixelRatio=t.pixel,r.default.option[e].animation=t.animation,r.default.option[e].width=i.width*t.pixel,r.default.option[e].height=i.height*t.pixel,r.default.option[e].ontap=t.ontap,r.default.option[e].ontouch=t.ontouch,r.default.option[e].onmouse=t.openmouse,r.default.option[e].onmovetip=t.onmovetip,r.default.option[e].tooltipShow=t.tooltipShow,r.default.option[e].tooltipFormat=t.tooltipFormat,r.default.option[e].tooltipCustom=t.tooltipCustom,r.default.option[e].inScrollView=t.inScrollView,r.default.option[e].lastDrawTime=t.lastDrawTime,r.default.option[e].tapLegend=t.tapLegend),t.inH5||t.inApp?1==t.echarts?(a.default.option[e].ontap=t.ontap,a.default.option[e].onmouse=t.openmouse,a.default.option[e].tooltipShow=t.tooltipShow,a.default.option[e].tooltipFormat=t.tooltipFormat,a.default.option[e].tooltipCustom=t.tooltipCustom,a.default.option[e].lastDrawTime=t.lastDrawTime,t.echartsOpts=s({},a.default.option[e])):(r.default.option[e].rotateLock=r.default.option[e].rotate,t.uchartsOpts=s({},r.default.option[e])):(r.default.option[e]=c(r.default.option[e],r.default.formatter),t.mixinDatacomErrorMessage=null,t.mixinDatacomLoading=!1,t.showchart=!0,t.$nextTick((function(){if(!0===t.type2d){var n=uni.createSelectorQuery().in(t);n.select("#"+e).fields({node:!0,size:!0}).exec((function(n){if(n[0]){var a=n[0].node,o=a.getContext("2d");r.default.option[e].context=o,a.width=i.width*t.pixel,a.height=i.height*t.pixel,a._width=i.width*t.pixel,a._height=i.height*t.pixel,r.default.option[e].rotateLock=r.default.option[e].rotate,r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100)}else t.showchart=!1,t.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1a\u5f00\u542f2d\u6a21\u5f0f\u540e\uff0c\u672a\u83b7\u53d6\u5230dom\u8282\u70b9\uff0ccanvas-id:"+e}))}else t.inAli&&(r.default.option[e].rotateLock=r.default.option[e].rotate),r.default.option[e].context=uni.createCanvasContext(e,t),r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100)})))):(t.mixinDatacomLoading=!1,t.showchart=!1,1==t.reshow&&(t.mixinDatacomErrorMessage="\u5e03\u5c40\u9519\u8bef\uff1a\u672a\u83b7\u53d6\u5230\u7236\u5143\u7d20\u5bbd\u9ad8\u5c3a\u5bf8\uff01canvas-id:"+e))})).exec()},saveImage:function(){uni.canvasToTempFilePath({canvasId:this.cid,success:function(t){uni.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){uni.showToast({title:"\u4fdd\u5b58\u6210\u529f",duration:2e3})}})}},this)},_error:function(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg:function(t){this.$emit(t.name,t.params)},getRenderType:function(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON:function(){return this}}};e.default=u}).call(this,i("a9ff")["default"],i("0de9")["default"])},a2d5:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup:function(t){}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),i=e.windowWidth,n=e.windowHeight,r=e.windowTop,a=e.safeArea,o=(e.screenHeight,e.safeAreaInsets);t.popupWidth=i,t.popupHeight=n+r,t.safeAreaInsets=a?o.bottom:0};e()},created:function(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(t){t.stopPropagation(),this.clearPropagation=!0},open:function(e){var i=["top","center","bottom","left","right","message","dialog","share"];e&&-1!==i.indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","\u7f3a\u5c11\u7c7b\u578b\uff1a",e," at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:246")},close:function(t){var e=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){e.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(t){var e=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){e.messageChild&&"message"===e.type&&e.messageChild.timerClose()})))},bottom:function(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0)},center:function(t){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},t||(this.showPopup=!0,this.showTrans=!0)},left:function(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right:function(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}};e.default=i}).call(this,i("0de9")["default"])},a34a:function(t,e,i){t.exports=i("bbdd")},a768:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","chartsview"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","charts-error"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","charts-font"),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(null==t.errorMessage?"\u8bf7\u70b9\u51fb\u91cd\u8bd5":t.errorMessage)))])])},a=[]},a9ff:function(t,e,i){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(i("a34a")),a=i("37dc");function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e,i,n,r,a,o){try{var s=t[a](o),c=s.value}catch(l){return void i(l)}s.done?e(c):Promise.resolve(c).then(n,r)}function c(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var a=t.apply(e,i);function o(t){s(a,n,r,o,c,"next",t)}function c(t){s(a,n,r,o,c,"throw",t)}o(void 0)}))}}function l(t){return f(t)||h(t)||p(t)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function f(t){if(Array.isArray(t))return g(t)}function d(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=p(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}function p(t,e){if(t){if("string"===typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e,i){return e&&v(t.prototype,e),i&&v(t,i),t}function x(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?x(Object(i),!0).forEach((function(e){b(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function b(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}function S(t){var e=P();return function(){var i,n=L(t);if(e){var r=L(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return k(this,i)}}function k(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?A(t):e}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){var e="function"===typeof Map?new Map:void 0;return T=function(t){if(null===t||!D(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return C(t,arguments,L(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),O(i,t)},T(t)}function C(t,e,i){return C=P()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=Function.bind.apply(t,n),a=new r;return i&&O(a,i.prototype),a},C.apply(null,arguments)}function P(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function D(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function O(t,e){return O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},O(t,e)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function M(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t||"undefined"!=typeof self&&self;var I=F((function(t,e){var i;t.exports=(i=i||function(t,e){var i=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),n={},r=n.lib={},a=r.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=a.extend({init:function(t,i){t=this.words=t||[],this.sigBytes=i!=e?i:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var a=0;a<r;a++){var o=i[a>>>2]>>>24-a%4*8&255;e[n+a>>>2]|=o<<24-(n+a)%4*8}else for(a=0;a<r;a+=4)e[n+a>>>2]=i[a>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],r=function(e){e=e;var i=987654321,n=4294967295;return function(){var r=((i=36969*(65535&i)+(i>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},a=0;a<e;a+=4){var s=r(4294967296*(i||t.random()));i=987654071*s(),n.push(4294967296*s()|0)}return new o.init(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var a=e[r>>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(i,e/2)}},l=s.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var a=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(i,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,r=i.sigBytes,a=this.blockSize,s=r/(4*a),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,l=t.min(4*c,r);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(n,u);var h=n.splice(0,c);i.sigBytes-=l}return new o.init(h,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new f.HMAC.init(t,i).finalize(e)}}});var f=n.algo={};return n}(Math),i)})),E=(F((function(t,e){var i;t.exports=(i=I,function(t){var e=i,n=e.lib,r=n.WordArray,a=n.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var i=0;i<16;i++){var n=e+i,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,o=t[e+0],c=t[e+1],d=t[e+2],p=t[e+3],g=t[e+4],v=t[e+5],y=t[e+6],x=t[e+7],m=t[e+8],b=t[e+9],_=t[e+10],w=t[e+11],S=t[e+12],k=t[e+13],A=t[e+14],T=t[e+15],C=a[0],P=a[1],D=a[2],O=a[3];C=l(C,P,D,O,o,7,s[0]),O=l(O,C,P,D,c,12,s[1]),D=l(D,O,C,P,d,17,s[2]),P=l(P,D,O,C,p,22,s[3]),C=l(C,P,D,O,g,7,s[4]),O=l(O,C,P,D,v,12,s[5]),D=l(D,O,C,P,y,17,s[6]),P=l(P,D,O,C,x,22,s[7]),C=l(C,P,D,O,m,7,s[8]),O=l(O,C,P,D,b,12,s[9]),D=l(D,O,C,P,_,17,s[10]),P=l(P,D,O,C,w,22,s[11]),C=l(C,P,D,O,S,7,s[12]),O=l(O,C,P,D,k,12,s[13]),D=l(D,O,C,P,A,17,s[14]),C=u(C,P=l(P,D,O,C,T,22,s[15]),D,O,c,5,s[16]),O=u(O,C,P,D,y,9,s[17]),D=u(D,O,C,P,w,14,s[18]),P=u(P,D,O,C,o,20,s[19]),C=u(C,P,D,O,v,5,s[20]),O=u(O,C,P,D,_,9,s[21]),D=u(D,O,C,P,T,14,s[22]),P=u(P,D,O,C,g,20,s[23]),C=u(C,P,D,O,b,5,s[24]),O=u(O,C,P,D,A,9,s[25]),D=u(D,O,C,P,p,14,s[26]),P=u(P,D,O,C,m,20,s[27]),C=u(C,P,D,O,k,5,s[28]),O=u(O,C,P,D,d,9,s[29]),D=u(D,O,C,P,x,14,s[30]),C=h(C,P=u(P,D,O,C,S,20,s[31]),D,O,v,4,s[32]),O=h(O,C,P,D,m,11,s[33]),D=h(D,O,C,P,w,16,s[34]),P=h(P,D,O,C,A,23,s[35]),C=h(C,P,D,O,c,4,s[36]),O=h(O,C,P,D,g,11,s[37]),D=h(D,O,C,P,x,16,s[38]),P=h(P,D,O,C,_,23,s[39]),C=h(C,P,D,O,k,4,s[40]),O=h(O,C,P,D,o,11,s[41]),D=h(D,O,C,P,p,16,s[42]),P=h(P,D,O,C,y,23,s[43]),C=h(C,P,D,O,b,4,s[44]),O=h(O,C,P,D,S,11,s[45]),D=h(D,O,C,P,T,16,s[46]),C=f(C,P=h(P,D,O,C,d,23,s[47]),D,O,o,6,s[48]),O=f(O,C,P,D,x,10,s[49]),D=f(D,O,C,P,A,15,s[50]),P=f(P,D,O,C,v,21,s[51]),C=f(C,P,D,O,S,6,s[52]),O=f(O,C,P,D,p,10,s[53]),D=f(D,O,C,P,_,15,s[54]),P=f(P,D,O,C,c,21,s[55]),C=f(C,P,D,O,m,6,s[56]),O=f(O,C,P,D,T,10,s[57]),D=f(D,O,C,P,y,15,s[58]),P=f(P,D,O,C,k,21,s[59]),C=f(C,P,D,O,g,6,s[60]),O=f(O,C,P,D,w,10,s[61]),D=f(D,O,C,P,d,15,s[62]),P=f(P,D,O,C,b,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+P|0,a[2]=a[2]+D|0,a[3]=a[3]+O|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;i[r>>>5]|=128<<24-r%32;var a=t.floor(n/4294967296),o=n;i[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,i,n,r,a,o){var s=t+(e&i|~e&n)+r+o;return(s<<a|s>>>32-a)+e}function u(t,e,i,n,r,a,o){var s=t+(e&n|i&~n)+r+o;return(s<<a|s>>>32-a)+e}function h(t,e,i,n,r,a,o){var s=t+(e^i^n)+r+o;return(s<<a|s>>>32-a)+e}function f(t,e,i,n,r,a,o){var s=t+(i^(e|~n))+r+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(c),e.HmacMD5=a._createHmacHelper(c)}(Math),i.MD5)})),F((function(t,e){var i,n,r;t.exports=(n=(i=I).lib.Base,r=i.enc.Utf8,void(i.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),o=this._iKey=e.clone(),s=a.words,c=o.words,l=0;l<i;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,i=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(i))}})))})),F((function(t,e){t.exports=I.HmacMD5})));function $(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function j(t){return"object"===$(t)}var R=function(t){w(i,t);var e=S(i);function i(t,n){var r;return _(this,i),r=e.call(this,t),r.code=n,r}return i}(T(Error));function z(t){return t&&"string"==typeof t?JSON.parse(t):t}var B=!1,N="app-plus",U=z(void 0),W=z([]),q=!0,H="";try{var G=i("86ed").default||i("86ed");H=G.appid}catch(Qe){}var K={};function J(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=K,i=t,Object.prototype.hasOwnProperty.call(e,i)||(K[t]=n),K[t]}"app-plus"===N&&(K=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var X=["invoke","success","fail","complete"],Y=J("_globalUniCloudInterceptor");function V(t,e){Y[t]||(Y[t]={}),j(e)&&Object.keys(e).forEach((function(i){X.indexOf(i)>-1&&function(t,e,i){var n=Y[t][e];n||(n=Y[t][e]=[]),-1===n.indexOf(i)&&"function"==typeof i&&n.push(i)}(t,i,e[i])}))}function Z(t,e){Y[t]||(Y[t]={}),j(e)?Object.keys(e).forEach((function(i){X.indexOf(i)>-1&&function(t,e,i){var n=Y[t][e];if(n){var r=n.indexOf(i);r>-1&&n.splice(r,1)}}(t,i,e[i])})):delete Y[t]}function Q(t,e){return t&&0!==t.length?t.reduce((function(t,i){return t.then((function(){return i(e)}))}),Promise.resolve()):Promise.resolve()}function tt(t,e){return Y[t]&&Y[t][e]||[]}function et(t,e){return e?function(i){var n,r=this,a="callFunction"===e&&"DCloud-clientDB"===(i&&i.name);n=this.isReady?Promise.resolve():this.initUniCloud,i=i||{};var o=n.then((function(){return a?Promise.resolve():Q(tt(e,"invoke"),i)})).then((function(){return t.call(r,i)})).then((function(t){return a?Promise.resolve(t):Q(tt(e,"success"),t).then((function(){return Q(tt(e,"complete"),t)})).then((function(){return Promise.resolve(t)}))}),(function(t){return a?Promise.reject(t):Q(tt(e,"fail"),t).then((function(){return Q(tt(e,"complete"),t)})).then((function(){return Promise.reject(t)}))}));if(!(i.success||i.fail||i.complete))return o;o.then((function(t){i.success&&i.success(t),i.complete&&i.complete(t)}),(function(t){i.fail&&i.fail(t),i.complete&&i.complete(t)}))}:function(e){if(!((e=e||{}).success||e.fail||e.complete))return t.call(this,e);t.call(this,e).then((function(t){e.success&&e.success(t),e.complete&&e.complete(t)}),(function(t){e.fail&&e.fail(t),e.complete&&e.complete(t)}))}}var it,nt=function(t){w(i,t);var e=S(i);function i(t){var n;return _(this,i),n=e.call(this,t.message),n.errMsg=t.message||"",Object.defineProperties(A(n),{code:{get:function(){return t.code}},requestId:{get:function(){return t.requestId}},message:{get:function(){return this.errMsg},set:function(t){this.errMsg=t}}}),n}return i}(T(Error));function rt(){var t=uni.getLocale&&uni.getLocale()||"en";if(it)return m(m({},it),{},{LOCALE:t});var e=uni.getSystemInfoSync(),i=e.deviceId,n=e.platform;return it={PLATFORM:N,OS:n,APPID:H,DEVICEID:i,CLIENT_SDK_VERSION:"1.0.21"},m(m({},it),{},{LOCALE:t})}var at,ot={sign:function(t,e){var i="";return Object.keys(t).sort().forEach((function(e){t[e]&&(i=i+"&"+e+"="+t[e])})),i=i.slice(1),E(i,e).toString()},wrappedRequest:function(t,e){return new Promise((function(i,n){e(Object.assign(t,{complete:function(t){t||(t={}),B&&"h5"===N&&t.errMsg&&0===t.errMsg.indexOf("request:fail")&&console.warn("\u53d1\u5e03H5\uff0c\u9700\u8981\u5728uniCloud\u540e\u53f0\u64cd\u4f5c\uff0c\u7ed1\u5b9a\u5b89\u5168\u57df\u540d\uff0c\u5426\u5219\u4f1a\u56e0\u4e3a\u8de8\u57df\u95ee\u9898\u800c\u65e0\u6cd5\u8bbf\u95ee\u3002\u6559\u7a0b\u53c2\u8003\uff1ahttps://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400)return n(new nt({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var r=t.data;if(r.error)return n(new nt({code:r.error.code,message:r.error.message,requestId:e}));r.result=r.data,r.requestId=e,delete r.data,i(r)}}))}))}},st={request:function(t){return uni.request(t)},uploadFile:function(t){return uni.uploadFile(t)},setStorageSync:function(t,e){return uni.setStorageSync(t,e)},getStorageSync:function(t){return uni.getStorageSync(t)},removeStorageSync:function(t){return uni.removeStorageSync(t)},clearStorageSync:function(){return uni.clearStorageSync()}},ct={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},lt=(0,a.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"\u7f3a\u5c11\u53c2\u6570\uff1a{param}","uniCloud.uploadFile.fileError":"filePath\u5e94\u4e3aFile\u5bf9\u8c61"},"zh-Hant":{"uniCloud.init.paramRequired":"\u7f3a\u5c11\u53c2\u6570\uff1a{param}","uniCloud.uploadFile.fileError":"filePath\u5e94\u4e3aFile\u5bf9\u8c61"},en:ct,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:ct},"zh-Hans"),ut=lt.t,ht=function(){function t(e){_(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(ut("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=st,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return y(t,[{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return ot.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var i=this;return Promise.resolve().then((function(){return i.hasAccessToken?e?i.requestWrapped(t):i.requestWrapped(t).catch((function(e){return new Promise((function(t,i){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?i(e):t()})).then((function(){return i.getAccessToken()})).then((function(){var e=i.rebuildRequest(t);return i.request(e,!0)}))})):i.getAccessToken().then((function(){var e=i.rebuildRequest(t);return i.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=ot.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==e&&(i.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ot.sign(i,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){var t=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){return new Promise((function(i,n){e.result&&e.result.accessToken?(t.setAccessToken(e.result.accessToken),t._getAccessTokenPromiseStatus="fulfilled",i(t.accessToken)):(t._getAccessTokenPromiseStatus="rejected",n(new nt({code:"AUTH_FAILED",message:"\u83b7\u53d6accessToken\u5931\u8d25"})))}))}),(function(e){return t._getAccessTokenPromiseStatus="rejected",Promise.reject(e)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,i=t.url,n=t.formData,r=t.name,a=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,c){var l=e.adapter.uploadFile({url:i,formData:n,name:r,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):c(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(t){c(new nt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(t){var e=this,i=t.filePath,n=t.cloudPath,r=t.fileType,a=void 0===r?"image":r,o=t.onUploadProgress,s=t.config;if("string"!==$(n))throw new nt({code:"INVALID_PARAM",message:"cloudPath\u5fc5\u987b\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b"});if(!(n=n.trim()))throw new nt({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});if(/:\/\//.test(n))throw new nt({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u5408\u6cd5"});var c,l,u=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:u,filename:n}).then((function(t){var n=t.result;c=n.id,l="https://"+n.cdnDomain+"/"+n.ossPath;var r={url:"https://"+n.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:n.accessKeyId,Signature:n.signature,host:n.host,id:c,key:n.ossPath,policy:n.policy,success_action_status:200},fileName:"file",name:"file",filePath:i,fileType:a};return e.uploadFileToOSS(Object.assign({},r,{onUploadProgress:o}))})).then((function(){return e.reportOSSUpload({id:c})})).then((function(t){return new Promise((function(e,n){t.success?e({success:!0,filePath:i,fileID:l}):n(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,i={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(i))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,i){Array.isArray(e)&&0!==e.length||i(new nt({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),t}(),ft={init:function(t){var e=new ht(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}},dt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(t){t.local="local",t.none="none",t.session="session"}(at||(at={}));var pt,gt=function(){},vt=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var i=new Promise((function(e,i){t=function(t,n){return t?i(t):e(n)}}));return t.promise=i,t};function yt(t){return void 0===t}function xt(t){return"[object Null]"===Object.prototype.toString.call(t)}function mt(t){var e,i,n=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),r=d(n);try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){r.e(l)}finally{r.f()}}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(pt||(pt={}));var bt={adapter:null,runtime:void 0},_t=["anonymousUuidKey"],wt=function(t){w(i,t);var e=S(i);function i(){var t;return _(this,i),t=e.call(this),bt.adapter.root.tcbObject||(bt.adapter.root.tcbObject={}),t}return y(i,[{key:"setItem",value:function(t,e){bt.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return bt.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete bt.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete bt.adapter.root.tcbObject}}]),i}(gt);function St(t,e){switch(t){case"local":return e.localStorage||new wt;case"none":return new wt;default:return e.sessionStorage||new wt}}var kt=function(){function t(e){if(_(this,t),!this._storage){this._persistence=bt.adapter.primaryStorage||e.persistence,this._storage=St(this._persistence,bt.adapter);var i="access_token_".concat(e.env),n="access_token_expire_".concat(e.env),r="refresh_token_".concat(e.env),a="anonymous_uuid_".concat(e.env),o="login_type_".concat(e.env),s="user_info_".concat(e.env);this.keys={accessTokenKey:i,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return y(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var i=St(t,bt.adapter);for(var n in this.keys){var r=this.keys[n];if(!e||!_t.includes(n)){var a=this._storage.getItem(r);yt(a)||xt(a)||(i.setItem(r,a),this._storage.removeItem(r))}}this._storage=i}}},{key:"setStore",value:function(t,e,i){if(this._storage){var n={version:i||"localCachev1",content:e},r=JSON.stringify(n);try{this._storage.setItem(t,r)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var i=this._storage.getItem(t);return i&&i.indexOf(e)>=0?JSON.parse(i).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),At={},Tt={};function Ct(t){return At[t]}var Pt=function t(e,i){_(this,t),this.data=i||null,this.name=e},Dt=function(t){w(i,t);var e=S(i);function i(t,n){var r;return _(this,i),r=e.call(this,"error",{error:t,data:n}),r.error=t,r}return i}(Pt),Ot=new(function(){function t(){_(this,t),this._listeners={}}return y(t,[{key:"on",value:function(t,e){return function(t,e,i){i[t]=i[t]||[],i[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,i){if(i&&i[t]){var n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof Dt)return console.error(t.error),this;var i="string"==typeof t?new Pt(t,e||{}):t,n=i.name;if(this._listens(n)){i.target=this;var r,a=this._listeners[n]?l(this._listeners[n]):[],o=d(a);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.call(this,i)}}catch(c){o.e(c)}finally{o.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function Lt(t,e){Ot.on(t,e)}function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ot.fire(t,e)}function Ft(t,e){Ot.off(t,e)}var It,Et="loginStateChanged",$t="loginStateExpire",jt="loginTypeChanged",Rt="anonymousConverted",zt="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(It||(It={}));var Bt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Nt={"X-SDK-Version":"1.3.5"};function Ut(t,e,i){var n=t[e];t[e]=function(e){var r={},a={};i.forEach((function(i){var n=i.call(t,e),o=n.data,s=n.headers;Object.assign(r,o),Object.assign(a,s)}));var o=e.data;return o&&function(){var t;if(t=o,"[object FormData]"!==Object.prototype.toString.call(t))e.data=m(m({},o),r);else for(var i in r)o.append(i,r[i])}(),e.headers=m(m({},e.headers||{}),a),n.call(t,e)}}function Wt(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:m(m({},Nt),{},{"x-seqid":t})}}var qt=function(){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,t),this.config=i,this._reqClass=new bt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"\u8bf7\u6c42\u5728".concat(this.config.timeout/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad"),restrictedMethods:["post"]}),this._cache=Ct(this.config.env),this._localCache=(e=this.config.env,Tt[e]),Ut(this._reqClass,"post",[Wt]),Ut(this._reqClass,"upload",[Wt]),Ut(this._reqClass,"download",[Wt])}return y(t,[{key:"post",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"upload",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"download",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refreshAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),i=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!i){t.next=12;break}throw i;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"_refreshAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c,l,u,h,f,d,p;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,a=e.refreshTokenKey,o=e.loginTypeKey,s=e.anonymousUuidKey,this._cache.removeStore(i),this._cache.removeStore(n),c=this._cache.getStore(a),c){t.next=5;break}throw new Error("\u672a\u767b\u5f55CloudBase");case 5:return l={refresh_token:c},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(u=t.sent,!u.data.code){t.next=21;break}if(h=u.data.code,"SIGN_PARAM_INVALID"!==h&&"REFRESH_TOKEN_EXPIRED"!==h&&"INVALID_REFRESH_TOKEN"!==h){t.next=20;break}if(this._cache.getStore(o)!==It.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==h){t.next=19;break}return f=this._cache.getStore(s),d=this._cache.getStore(a),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:d});case 17:return p=t.sent,t.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Mt($t),this._cache.removeStore(a);case 20:throw new Error("\u5237\u65b0access token\u5931\u8d25\uff1a".concat(u.data.code));case 21:if(!u.data.access_token){t.next=23;break}return t.abrupt("return",(Mt(zt),this._cache.setStore(i,u.data.access_token),this._cache.setStore(n,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}));case 23:u.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,a=e.refreshTokenKey,this._cache.getStore(a)){t.next=3;break}throw new Error("refresh token\u4e0d\u5b58\u5728\uff0c\u767b\u5f55\u72b6\u6001\u5f02\u5e38");case 3:if(o=this._cache.getStore(i),s=this._cache.getStore(n),c=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}c=!1;case 12:return t.abrupt("return",(!o||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"request",value:function(){var t=c(r.default.mark((function t(e,i,n){var a,o,s,c,l,u,h,f,d,p,g,v,y,x,b,_;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=m({action:e,env:this.config.env,dataVersion:"2019-08-16"},i),-1!==Bt.indexOf(e)){t.next=10;break}if(c=this._cache.keys.refreshTokenKey,t.t0=this._cache.getStore(c),!t.t0){t.next=10;break}return t.next=9,this.getAccessToken();case 9:s.access_token=t.sent.accessToken;case 10:if("storage.uploadFile"===e){for(u in l=new FormData,l)l.hasOwnProperty(u)&&void 0!==l[u]&&l.append(u,s[u]);o="multipart/form-data"}else for(h in o="application/json",l={},s)void 0!==s[h]&&(l[h]=s[h]);return f={headers:{"content-type":o}},n&&n.onUploadProgress&&(f.onUploadProgress=n.onUploadProgress),d=this._localCache.getStore(a),d&&(f.headers["X-TCB-Trace"]=d),p=i.parse,g=i.inQuery,v=i.search,y={env:this.config.env},p&&(y.parse=!0),g&&(y=m(m({},g),y)),x=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(e),r="";for(var a in i)""===r?!n&&(e+="?"):r+="&",r+="".concat(a,"=").concat(encodeURIComponent(i[a]));return/^http(s)?\:\/\//.test(e+=r)?e:"".concat(t).concat(e)}(dt,"//tcb-api.tencentcloudapi.com/web",y),v&&(x+=v),t.next=22,this.post(m({url:x,data:l},f));case 22:if(b=t.sent,_=b.header&&b.header["x-tcb-trace"],_&&this._localCache.setStore(a,_),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){t.next=26;break}throw new Error("network request error");case 26:return t.abrupt("return",b);case 27:case"end":return t.stop()}}),t,this)})));function e(e,i,n){return t.apply(this,arguments)}return e}()},{key:"send",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o=arguments;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=o.length>1&&void 0!==o[1]?o[1]:{},t.next=3,this.request(e,i,{onUploadProgress:i.onUploadProgress});case 3:if(n=t.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==Bt.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,i,{onUploadProgress:i.onUploadProgress});case 9:if(a=t.sent,!a.data.code){t.next=12;break}throw new Error("[".concat(a.data.code,"] ").concat(a.data.message));case 12:return t.abrupt("return",a.data);case 13:if(!n.data.code){t.next=15;break}throw new Error("[".concat(n.data.code,"] ").concat(n.data.message));case 15:return t.abrupt("return",n.data);case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(i),this._cache.removeStore(n),this._cache.setStore(r,t)}}]),t}(),Ht={};function Gt(t){return Ht[t]}var Kt=function(){function t(e){_(this,t),this.config=e,this._cache=Ct(e.env),this._request=Gt(e.env)}return y(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(i),this._cache.removeStore(n),this._cache.setStore(r,t)}},{key:"setAccessToken",value:function(t,e){var i=this._cache.keys,n=i.accessTokenKey,r=i.accessTokenExpireKey;this._cache.setStore(n,t),this._cache.setStore(r,e)}},{key:"refreshUserInfo",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,i=e.data,t.abrupt("return",(this.setLocalUserInfo(i),i));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),Jt=function(){function t(e){if(_(this,t),!e)throw new Error("envId is not defined");this._envId=e,this._cache=Ct(this._envId),this._request=Gt(this._envId),this.setUserInfo()}return y(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new Error("ticket must be string");return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new Error("username must be a string");return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,i=e.data,n=!1,a=i.users,t.abrupt("return",(a.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(n=!0)})),{users:a,hasPrimaryUid:n}));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o,s,c,l,u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.nickName,n=e.gender,a=e.avatarUrl,o=e.province,s=e.country,c=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:i,gender:n,avatarUrl:a,province:o,country:s,city:c});case 8:l=t.sent,u=l.data,this.setLocalUserInfo(u);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refresh",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,i=e.data,t.abrupt("return",(this.setLocalUserInfo(i),i));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,i=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=i[e]})),this.location={country:i.country,province:i.province,city:i.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),Xt=function(){function t(e){if(_(this,t),!e)throw new Error("envId is not defined");this._cache=Ct(e);var i=this._cache.keys,n=i.refreshTokenKey,r=i.accessTokenKey,a=i.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(r),c=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new Jt(e)}return y(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===It.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===It.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===It.WECHAT||this.loginType===It.WECHAT_OPEN||this.loginType===It.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),Yt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,i=e.anonymousUuidKey,n=e.refreshTokenKey,a=this._cache.getStore(i)||void 0,o=this._cache.getStore(n)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:o});case 8:if(s=t.sent,!s.uuid||!s.refresh_token){t.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.ANONYMOUS,persistence:"local"}),c=new Xt(this.config.env),t.next=19,c.user.refresh();case 19:return t.abrupt("return",c);case 20:throw new Error("\u533f\u540d\u767b\u5f55\u5931\u8d25");case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=this._cache.keys,n=i.anonymousUuidKey,a=i.refreshTokenKey,o=this._cache.getStore(n),s=this._cache.getStore(a),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:e});case 7:if(c=t.sent,!c.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return Mt(Rt,{env:this.config.env}),Mt(jt,{loginType:It.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new Error("\u533f\u540d\u8f6c\u5316\u5931\u8d25");case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,i=e.anonymousUuidKey,n=e.loginTypeKey;this._cache.removeStore(i),this._cache.setStore(i,t),this._cache.setStore(n,It.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),i}(Kt),Vt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e){var i,n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("ticket must be a string");case 2:return i=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(i)||""});case 5:if(n=t.sent,!n.refresh_token){t.next=15;break}return this.setRefreshToken(n.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new Xt(this.config.env));case 15:throw new Error("\u81ea\u5b9a\u4e49\u767b\u5f55\u5931\u8d25");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),i}(Kt),Zt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("email must be a string");case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:i,refresh_token:this._cache.getStore(n)||""});case 5:if(a=t.sent,o=a.refresh_token,s=a.access_token,c=a.access_token_expire,!o){t.next=22;break}if(this.setRefreshToken(o),!s||!c){t.next=15;break}this.setAccessToken(s,c),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new Xt(this.config.env));case 22:throw a.code?new Error("\u90ae\u7bb1\u767b\u5f55\u5931\u8d25: [".concat(a.code,"] ").concat(a.message)):new Error("\u90ae\u7bb1\u767b\u5f55\u5931\u8d25");case 23:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"activate",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"resetPasswordWithToken",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:i}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()}]),i}(Kt),Qt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return"string"!=typeof i&&(i="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:It.USERNAME,username:e,password:i,refresh_token:this._cache.getStore(n)||""});case 6:if(a=t.sent,o=a.refresh_token,s=a.access_token_expire,c=a.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!c||!s){t.next=16;break}this.setAccessToken(c,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new Xt(this.config.env));case 23:throw a.code?new Error("\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25: [".concat(a.code,"] ").concat(a.message)):new Error("\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25");case 24:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()}]),i}(Kt),te=function(){function t(e){_(this,t),this.config=e,this._cache=Ct(e.env),this._request=Gt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Lt(jt,this._onLoginTypeChanged)}return y(t,[{key:"anonymousAuthProvider",value:function(){return new Yt(this.config)}},{key:"customAuthProvider",value:function(){return new Vt(this.config)}},{key:"emailAuthProvider",value:function(){return new Zt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Qt(this.config)}},{key:"signInAnonymously",value:function(){var t=c(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Yt(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signInWithEmailAndPassword",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Zt(this.config).signIn(e,i));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new Qt(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Yt(this.config)),Lt(Rt,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signOut",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==It.ANONYMOUS){t.next=2;break}throw new Error("\u533f\u540d\u7528\u6237\u4e0d\u652f\u6301\u767b\u51fa\u64cd\u4f5c");case 2:if(e=this._cache.keys,i=e.refreshTokenKey,n=e.accessTokenKey,a=e.accessTokenExpireKey,o=this._cache.getStore(i),o){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=t.sent,t.abrupt("return",(this._cache.removeStore(i),this._cache.removeStore(n),this._cache.removeStore(a),Mt(Et),Mt(jt,{env:this.config.env,loginType:It.NULL,persistence:this.config.persistence}),s));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signUpWithEmailAndPassword",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:i}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"sendPasswordResetEmail",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"onLoginStateChanged",value:function(t){var e=this;Lt(Et,(function(){var i=e.hasLoginState();t.call(e,i)}));var i=this.hasLoginState();t.call(this,i)}},{key:"onLoginStateExpired",value:function(t){Lt($t,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){Lt(zt,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){Lt(Rt,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;Lt(jt,(function(){var i=e.hasLoginState();t.call(e,i)}))}},{key:"getAccessToken",value:function(){var t=c(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new Xt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=c(r.default.mark((function t(e){var i,n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return i=t.sent,n=i.data,t.abrupt("return",n&&n.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Vt(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:m(m({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,i=t.accessTokenKey,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(i)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,i=e.loginType,n=e.persistence,r=e.env;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,i))}},{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),ee=function(t,e){e=e||vt();var i=Gt(this.config.env),n=t.cloudPath,r=t.filePath,a=t.onUploadProgress,o=t.fileType,s=void 0===o?"image":o;return i.send("storage.getUploadMetadata",{path:n}).then((function(t){var o=t.data,c=o.url,l=o.authorization,u=o.token,h=o.fileId,f=o.cosFileId,d=t.requestId,p={key:n,signature:l,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":u};i.upload({url:c,data:p,file:r,name:n,fileType:s,onUploadProgress:a}).then((function(t){201===t.statusCode?e(null,{fileID:h,requestId:d}):e(new Error("STORAGE_REQUEST_FAIL: ".concat(t.data)))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},ie=function(t,e){e=e||vt();var i=Gt(this.config.env),n=t.cloudPath;return i.send("storage.getUploadMetadata",{path:n}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},ne=function(t,e){var i=t.fileList;if(e=e||vt(),!i||!Array.isArray(i))return{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"};var n,r=d(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}}}catch(s){r.e(s)}finally{r.f()}var o={fileid_list:i};return Gt(this.config.env).send("storage.batchDeleteFile",o).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},re=function(t,e){var i=t.fileList;e=e||vt(),i&&Array.isArray(i)||e(null,{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"});var n,r=[],a=d(i);try{for(a.s();!(n=a.n()).done;){var o=n.value;"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5305\u542bfileID\u548cmaxAge\u7684\u5bf9\u8c61"}),r.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?r.push({fileid:o}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5b57\u7b26\u4e32"})}}catch(c){a.e(c)}finally{a.f()}var s={file_list:r};return Gt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},ae=function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileID,t.next=3,re.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(a=t.sent.fileList[0],"SUCCESS"===a.code){t.next=6;break}return t.abrupt("return",i?i(a):new Promise((function(t){t(a)})));case 6:if(o=Gt(this.config.env),s=a.download_url,s=encodeURI(s),i){t.next=10;break}return t.abrupt("return",o.download({url:s}));case 10:return t.t0=i,t.next=13,o.download({url:s});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),oe=function(t,e){var i,n=t.name,r=t.data,a=t.query,o=t.parse,s=t.search,c=e||vt();try{i=r?JSON.stringify(r):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Error("\u51fd\u6570\u540d\u4e0d\u80fd\u4e3a\u7a7a"));var l={inQuery:a,parse:o,search:s,function_name:n,request_data:i};return Gt(this.config.env).send("functions.invokeFunction",l).then((function(t){if(t.code)c(null,t);else{var e=t.data.response_data;if(o)c(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),c(null,{result:e,requestId:t.requestId})}catch(t){c(new Error("response data must be json"))}}return c.promise})).catch((function(t){c(t)})),c.promise},se={timeout:15e3,persistence:"session"},ce={},le=function(){function t(e){_(this,t),this.config=e||this.config,this.authObj=void 0}return y(t,[{key:"init",value:function(e){switch(bt.adapter||(this.requestClient=new bt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"\u8bf7\u6c42\u5728".concat((e.timeout||5e3)/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad")})),this.config=m(m({},se),e),!0){case this.config.timeout>6e5:console.warn("timeout\u5927\u4e8e\u53ef\u914d\u7f6e\u4e0a\u9650[10\u5206\u949f]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0a\u9650\u6570\u503c"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout\u5c0f\u4e8e\u53ef\u914d\u7f6e\u4e0b\u9650[100ms]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0b\u9650\u6570\u503c"),this.config.timeout=100}return new t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var i,n=e||bt.adapter.primaryStorage||se.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(t){var e=t.env;At[e]=new kt(t),Tt[e]=new kt(m(m({},t),{},{persistence:"local"}))}(this.config),i=this.config,Ht[i.env]=new qt(i),this.authObj=new te(this.config),this.authObj}},{key:"on",value:function(t,e){return Lt.apply(this,[t,e])}},{key:"off",value:function(t,e){return Ft.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return oe.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return ne.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return re.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return ae.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return ee.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return ie.apply(this,[t,e])}},{key:"registerExtension",value:function(t){ce[t.name]=t}},{key:"invokeExtension",value:function(){var t=c(r.default.mark((function t(e,i){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=ce[e],n){t.next=3;break}throw Error("\u6269\u5c55".concat(e," \u5fc5\u987b\u5148\u6ce8\u518c"));case 3:return t.next=5,n.invoke(i,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"useAdapters",value:function(t){var e=mt(t)||{},i=e.adapter,n=e.runtime;i&&(bt.adapter=i),n&&(bt.runtime=n)}}]),t}(),ue=new le;function he(t,e,i){void 0===i&&(i={});var n=/\?/.test(e),r="";for(var a in i)""===r?!n&&(e+="?"):r+="&",r+=a+"="+encodeURIComponent(i[a]);return/^http(s)?:\/\//.test(e+=r)?e:""+t+e}var fe=function(){function t(){_(this,t)}return y(t,[{key:"post",value:function(t){var e=t.url,i=t.data,n=t.headers;return new Promise((function(t,r){st.request({url:he("https:",e),data:i,method:"POST",header:n,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,i){var n=t.url,r=t.file,a=t.data,o=t.headers,s=t.fileType,c=st.uploadFile({url:he("https:",n),name:"file",formData:Object.assign({},a),filePath:r,fileType:s,header:o,success:function(t){var i={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&a.success_action_status&&(i.statusCode=parseInt(a.success_action_status,10)),e(i)},fail:function(t){B&&"mp-alipay"===N&&console.warn("\u652f\u4ed8\u5b9d\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u4e0a\u4f20\u817e\u8baf\u4e91\u65f6\u65e0\u6cd5\u51c6\u786e\u5224\u65ad\u662f\u5426\u4e0a\u4f20\u6210\u529f\uff0c\u8bf7\u4f7f\u7528\u771f\u673a\u6d4b\u8bd5"),i(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),de={setItem:function(t,e){st.setStorageSync(t,e)},getItem:function(t){return st.getStorageSync(t)},removeItem:function(t){st.removeStorageSync(t)},clear:function(){st.clearStorageSync()}},pe={genAdapter:function(){return{root:{},reqClass:fe,localStorage:de,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ue.useAdapters(pe);var ge=ue,ve=ge.init;ge.init=function(t){t.env=t.spaceId;var e=ve.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var i=e.auth;return e.auth=function(t){var e=i.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){e[t]=et(e[t]).bind(e)})),e},e.customAuth=e.auth,e};var ye=ge;function xe(){return{token:st.getStorageSync("uni_id_token")||st.getStorageSync("uniIdToken"),tokenExpired:st.getStorageSync("uni_id_token_expired")}}function me(){B&&"h5"===N&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==H&&(uni.setStorageSync("__LAST_DCLOUD_APPID",H),console.warn("\u68c0\u6d4b\u5230\u5f53\u524d\u9879\u76ee\u4e0e\u4e0a\u6b21\u8fd0\u884c\u5230\u6b64\u7aef\u53e3\u7684\u9879\u76ee\u4e0d\u4e00\u81f4\uff0c\u81ea\u52a8\u6e05\u7406uni-id\u4fdd\u5b58\u7684token\u4fe1\u606f\uff08\u4ec5\u5f00\u53d1\u8c03\u8bd5\u65f6\u751f\u6548\uff09"),st.removeStorageSync("uni_id_token"),st.removeStorageSync("uniIdToken"),st.removeStorageSync("uni_id_token_expired"))}var be=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,i){var n="Anonymous_Access_token";t.setAccessToken(n),e(n)}))}},{key:"setupRequest",value:function(t,e){var i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==e&&(i.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ot.sign(i,this.config.clientSecret);var r=rt();n["x-client-info"]=JSON.stringify(r);var a=xe(),o=a.token;return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(t){var e=this,i=t.url,n=t.formData,r=t.name,a=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,c){var l=e.adapter.uploadFile({url:i,formData:n,name:r,filePath:a,fileType:o,success:function(e){e&&e.statusCode<400?t(e):c(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(t){c(new nt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(t){var e,i=this,n=t.filePath,r=t.cloudPath,a=t.fileType,o=void 0===a?"image":a,s=t.onUploadProgress;if(!r)throw new nt({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(t){var r=t.result,a=r.url,c=r.formData,l=r.name;e=t.result.fileUrl;var u={url:a,formData:c,name:l,filePath:n,fileType:o};return i.uploadFileToOSS(Object.assign({},u,{onUploadProgress:s}))})).then((function(){return i.reportOSSUpload({cloudPath:r})})).then((function(t){return new Promise((function(i,r){t.success?i({success:!0,filePath:n,fileID:e}):r(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,i={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(i))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList,i={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(i))}}]),i}(ht),_e={init:function(t){var e=new be(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}};function we(t){var e,i=t.data;e=rt();var n=JSON.parse(JSON.stringify(i||{}));if(Object.assign(n,{clientInfo:e}),!n.uniIdToken){var r=xe(),a=r.token;a&&(n.uniIdToken=a)}return n}function Se(t){var e=this,i=t.name,n=t.data,r=this.localAddress,a=this.localPort,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],s=this.config.spaceId,c="http://".concat(r,":").concat(a,"/system/check-function"),l="http://".concat(r,":").concat(a,"/cloudfunctions/").concat(i);return new Promise((function(t,e){st.request({method:"POST",url:c,data:{name:i,platform:N,provider:o,spaceId:s},timeout:3e3,success:function(e){t(e)},fail:function(){t({data:{code:"NETWORK_ERROR",message:"\u8fde\u63a5\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u5ba2\u6237\u7aef\u662f\u5426\u548c\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570\u3002"}})}})})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,i=e||{},n=i.code,r=i.message;return{code:0===n?0:n||"SYS_ERR",message:r||"SYS_ERR"}})).then((function(t){var r=t.code,a=t.message;if(0!==r){switch(r){case"MODULE_ENCRYPTED":console.error("\u6b64\u4e91\u51fd\u6570\uff08".concat(i,"\uff09\u4f9d\u8d56\u52a0\u5bc6\u516c\u5171\u6a21\u5757\u4e0d\u53ef\u672c\u5730\u8c03\u8bd5\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570"));break;case"FUNCTION_ENCRYPTED":console.error("\u6b64\u4e91\u51fd\u6570\uff08".concat(i,"\uff09\u5df2\u52a0\u5bc6\u4e0d\u53ef\u672c\u5730\u8c03\u8bd5\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570"));break;case"ACTION_ENCRYPTED":console.error(a||"\u9700\u8981\u8bbf\u95ee\u52a0\u5bc6\u7684uni-clientDB-action\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u73af\u5883");break;case"NETWORK_ERROR":var s="\u8fde\u63a5\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u5ba2\u6237\u7aef\u662f\u5426\u548c\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b";throw console.error(s),new Error(s);case"SWITCH_TO_CLOUD":break;default:var c="\u68c0\u6d4b\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u51fa\u73b0\u9519\u8bef\uff1a".concat(a,"\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\u6216\u91cd\u542f\u5ba2\u6237\u7aef\u518d\u8bd5");throw console.error(c),new Error(c)}return e._originCallFunction({name:i,data:n})}return new Promise((function(t,i){var r=we.call(e,{data:n});st.request({method:"POST",url:l,data:{provider:o,platform:N,param:r},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.statusCode,r=e.data;return!n||n>=400?i(new nt({code:r.code||"SYS_ERR",message:r.message||"request:fail"})):t({result:r})},fail:function(t){i(new nt({code:t.code||t.errCode||"SYS_ERR",message:t.message||t.errMsg||"request:fail"}))}})}))}))}var ke=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"\uff0c\u4e91\u51fd\u6570[{functionName}]\u5728\u4e91\u7aef\u4e0d\u5b58\u5728\uff0c\u8bf7\u68c0\u67e5\u6b64\u4e91\u51fd\u6570\u540d\u79f0\u662f\u5426\u6b63\u786e\u4ee5\u53ca\u8be5\u4e91\u51fd\u6570\u662f\u5426\u5df2\u4e0a\u4f20\u5230\u670d\u52a1\u7a7a\u95f4",mode:"append"}],Ae=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Ae.source);function Ce(t,e,i){return t.replace(new RegExp((n=e)&&Te.test(n)?n.replace(Ae,"\\$&"):n,"g"),i);var n}function Pe(t){var e=t.functionName,i=t.result,n=t.logPvd;if(this.config.useDebugFunction&&i&&i.requestId){var r=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:i.requestId});console.log("[".concat(n,"-request]").concat(r,"[/").concat(n,"-request]"))}}function De(t){var e=t.callFunction,i=function(i){var n=this,r=i.name;i.data=we.call(t,{data:i.data});var a={aliyun:"aliyun",tencent:"tcb"}[this.config.provider];return e.call(this,i).then((function(t){return Pe.call(n,{functionName:r,result:t,logPvd:a}),Promise.resolve(t)}),(function(t){return Pe.call(n,{functionName:r,result:t,logPvd:a}),t&&t.message&&(t.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,i=void 0===e?"":e,n=t.extraInfo,r=void 0===n?{}:n,a=t.formatter,o=void 0===a?[]:a,s=0;s<o.length;s++){var c=o[s],l=c.rule,u=c.content,h=c.mode,f=i.match(l);if(f){for(var d=u,p=1;p<f.length;p++)d=Ce(d,"{$".concat(p,"}"),f[p]);for(var g in r)d=Ce(d,"{".concat(g,"}"),r[g]);return"replace"===h?d:i+d}}return i}({message:"[".concat(i.name,"]: ").concat(t.message),formatter:ke,extraInfo:{functionName:r}})),Promise.reject(t)}))};t.callFunction=function(e){var n;return B&&t.debugInfo&&!t.debugInfo.forceRemote&&W?(t._originCallFunction||(t._originCallFunction=i),n=Se.call(this,e)):n=i.call(this,e),Object.defineProperty(n,"result",{get:function(){return console.warn("\u5f53\u524d\u8fd4\u56de\u7ed3\u679c\u4e3aPromise\u7c7b\u578b\uff0c\u4e0d\u53ef\u76f4\u63a5\u8bbf\u95ee\u5176result\u5c5e\u6027\uff0c\u8be6\u60c5\u8bf7\u53c2\u8003\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),n}}var Oe=Symbol("CLIENT_DB_INTERNAL");function Le(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=Oe,t.__ob__=void 0,new Proxy(t,{get:function(t,i,n){if("_uniClient"===i)return null;if(i in t||"string"!=typeof i){var r=t[i];return"function"==typeof r?r.bind(t):r}return e.get(t,i,n)}})}function Me(t){return{on:function(e,i){t[e]=t[e]||[],t[e].indexOf(i)>-1||t[e].push(i)},off:function(e,i){t[e]=t[e]||[];var n=t[e].indexOf(i);-1!==n&&t[e].splice(n,1)}}}var Fe=["db.Geo","db.command","command.aggregate"];function Ie(t,e){return Fe.indexOf("".concat(t,".").concat(e))>-1}function Ee(t){switch($(t)){case"array":return t.map((function(t){return Ee(t)}));case"object":return t._internalType===Oe||Object.keys(t).forEach((function(e){t[e]=Ee(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}var $e=function(){function t(e,i,n){_(this,t),this.content=e,this.prevStage=i||null,this.udb=null,this._database=n}return y(t,[{key:"toJSON",value:function(){for(var t=this,e=[t.content];t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((function(t){return{$method:t.$method,$param:Ee(t.$param)}}))}}},{key:"getAction",value:function(){var t=this.toJSON().$db.find((function(t){return"action"===t.$method}));return t&&t.$param&&t.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(t){return"action"!==t.$method}))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value:function(){return this._send("add",Array.from(arguments))}},{key:"remove",value:function(){return this._send("remove",Array.from(arguments))}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",value:function(){throw new Error("clientDB\u7981\u6b62\u4f7f\u7528set\u65b9\u6cd5")}},{key:"_send",value:function(t,e){var i=this.getAction(),n=this.getCommand();if(n.$db.push({$method:t,$param:Ee(e)}),B){var r=n.$db.find((function(t){return"collection"===t.$method})),a=r&&r.$param;a&&1===a.length&&"string"==typeof r.$param[0]&&r.$param[0].indexOf(",")>-1&&console.warn("\u68c0\u6d4b\u5230\u4f7f\u7528JQL\u8bed\u6cd5\u8054\u8868\u67e5\u8be2\u65f6\uff0c\u672a\u4f7f\u7528getTemp\u5148\u8fc7\u6ee4\u4e3b\u8868\u6570\u636e\uff0c\u5728\u4e3b\u8868\u6570\u636e\u91cf\u5927\u7684\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u67e5\u8be2\u7f13\u6162\u3002\n- \u5982\u4f55\u4f18\u5316\u8bf7\u53c2\u8003\u6b64\u6587\u6863\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- \u5982\u679c\u4e3b\u8868\u6570\u636e\u91cf\u5f88\u5c0f\u8bf7\u5ffd\u7565\u6b64\u4fe1\u606f\uff0c\u9879\u76ee\u53d1\u884c\u65f6\u4e0d\u4f1a\u51fa\u73b0\u6b64\u63d0\u793a\u3002")}return this._database._callCloudFunction({action:i,command:n})}},{key:"useAggregate",get:function(){for(var t=this,e=!1;t.prevStage;){t=t.prevStage;var i=t.content.$method;if("aggregate"===i||"pipeline"===i){e=!0;break}}return e}},{key:"count",get:function(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};var t=this;return function(){return je({$method:"count",$param:Ee(Array.from(arguments))},t,this._database)}}}]),t}();function je(t,e,i){return Le(new $e(t,e,i),{get:function(t,e){var n="db";return t&&t.content&&(n=t.content.$method),Ie(n,e)?je({$method:e},t,i):function(){return je({$method:e,$param:Ee(Array.from(arguments))},t,i)}}})}function Re(t){var e=t.path,i=t.method;return function(){function t(){_(this,t),this.param=Array.from(arguments)}return y(t,[{key:"toJSON",value:function(){return{$newDb:[].concat(l(e.map((function(t){return{$method:t}}))),[{$method:i,$param:this.param}])}}}]),t}()}var ze,Be=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return y(i,[{key:"_callCloudFunction",value:function(t){var e=this,i=t.action,n=t.command,r=t.multiCommand,a=t.queryList;function o(t,e){if(r&&a)for(var i=0;i<a.length;i++){var n=a[i];n.udb&&"function"==typeof n.udb.setResult&&(e?n.udb.setResult(e):n.udb.setResult(t.result.dataList[i]))}}var s=Q(tt("database","invoke")),c=this._uniClient;return s.then((function(){return c.callFunction({name:"DCloud-clientDB",data:{action:i,command:n,multiCommand:r}})})).then((function(t){var i=t.result,n=i.code,r=i.message,a=i.token,s=i.tokenExpired,c=i.systemInfo,l=void 0===c?[]:c;if(l)for(var u=0;u<l.length;u++){var h=l[u],f=h.level,d=h.message,p=h.detail,g=console["app-plus"===N&&"warn"===f?"error":f]||console.log,v="[System Info]"+d;p&&(v="".concat(v,"\n\u8be6\u7ec6\u4fe1\u606f\uff1a").concat(p)),g(v)}if(n){var y=new R(r,n);return e._callback("error",[y]),Promise.reject(y)}a&&s&&(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.token,i=t.tokenExpired;e&&st.setStorageSync("uni_id_token",e),i&&st.setStorageSync("uni_id_token_expired",i)}({token:a,tokenExpired:s}),e._callbackAuth("refreshToken",[{token:a,tokenExpired:s}]),e._callback("refreshToken",[{token:a,tokenExpired:s}]));var x=t.result.affectedDocs;return"number"==typeof x&&Object.defineProperty(t.result,"affectedDocs",{get:function(){return console.warn("affectedDocs\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528inserted/deleted/updated/data.length\u66ff\u4ee3"),x}}),Q(tt("database","success"),t).then((function(){return Q(tt("database","complete"),t)})).then((function(){return o(t,null),Promise.resolve(t)}))}),(function(t){var i=new R(t.message,t.code||"SYSTEM_ERROR");return e._callback("error",[i]),/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&console.warn("clientDB\u672a\u521d\u59cb\u5316\uff0c\u8bf7\u5728web\u63a7\u5236\u53f0\u4fdd\u5b58\u4e00\u6b21schema\u4ee5\u5f00\u542fclientDB"),Q(tt("database","fail"),t).then((function(){return Q(tt("database","complete"),t)})).then((function(){return o(null,t),Promise.reject(t)}))}))}}]),i}(function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.uniClient,n=void 0===i?{}:i;_(this,t),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n.isDefault&&(this._dbCallBacks=J("_globalUniCloudDatabaseCallback")),this.auth=Me(this._authCallBacks),Object.assign(this,Me(this._dbCallBacks)),this.env=Le({},{get:function(t,e){return{$env:e}}}),this.Geo=Le({},{get:function(t,e){return Re({path:["Geo"],method:e})}}),this.serverDate=Re({path:[],method:"serverDate"}),this.RegExp=Re({path:[],method:"RegExp"})}return y(t,[{key:"getCloudEnv",value:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv\u53c2\u6570\u9519\u8bef");return{$env:t.replace("$cloudEnv_","")}}},{key:"_callback",value:function(t,e){var i=this._dbCallBacks;i[t]&&i[t].forEach((function(t){t.apply(void 0,l(e))}))}},{key:"_callbackAuth",value:function(t,e){var i=this._authCallBacks;i[t]&&i[t].forEach((function(t){t.apply(void 0,l(e))}))}},{key:"multiSend",value:function(){var t=Array.from(arguments),e=t.map((function(t){var e=t.getAction(),i=t.getCommand();if("getTemp"!==i.$db[i.$db.length-1].$method)throw new Error("multiSend\u53ea\u652f\u6301\u5b50\u547d\u4ee4\u5185\u4f7f\u7528getTemp");return{action:e,command:i}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}]),t}());function Ne(t){t.database=function(e){if(e&&Object.keys(e).length>0)return t.init(e).database();if(this._database)return this._database;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Le(new t(e),{get:function(t,e){return Ie("db",e)?je({$method:e},null,t):function(){return je({$method:e,$param:Ee(Array.from(arguments))},null,t)}}})}(Be,{uniClient:t});return this._database=i,i}}var Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function qe(){var t,e,i=xe().token||"",n=i.split(".");if(!i||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=n[1],decodeURIComponent(ze(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("\u83b7\u53d6\u5f53\u524d\u7528\u6237\u4fe1\u606f\u51fa\u9519\uff0c\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\u4e3a\uff1a"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}ze="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!We.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var i,n,r="",a=0;a<t.length;)e=Ue.indexOf(t.charAt(a++))<<18|Ue.indexOf(t.charAt(a++))<<12|(i=Ue.indexOf(t.charAt(a++)))<<6|(n=Ue.indexOf(t.charAt(a++))),r+=64===i?String.fromCharCode(e>>16&255):64===n?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return r}:atob;var He=M(F((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function a(t,e){return t.tempFiles.forEach((function(t,i){t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+i+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((function(t){return t.path}))),t}function o(t,e,n){var r=n.onChooseFile,a=n.onUploadProgress;return e.then((function(t){if(r){var e=r(t);if(void 0!==e)return Promise.resolve(e).then((function(e){return void 0===e?t:e}))}return t})).then((function(e){return!1===e?{errMsg:i,tempFilePaths:[],tempFiles:[]}:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg=i;var a=e.tempFiles,o=a.length,s=0;return new Promise((function(i){for(;s<n;)c();function c(){var n=s++;if(n>=o)!a.find((function(t){return!t.url&&!t.errMsg}))&&i(e);else{var l=a[n];t.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:function(t){t.index=n,t.tempFile=l,t.tempFilePath=l.path,r&&r(t)}}).then((function(t){l.url=t.fileID,n<o&&c()})).catch((function(t){l.errMsg=t.errMsg||t.message,n<o&&c()}))}}}))}(t,e,5,a)}))}e.initChooseAndUploadFile=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?o(t,function(t){var e=t.count,i=t.sizeType,n=t.sourceType,o=void 0===n?["album","camera"]:n,s=t.extension;return new Promise((function(t,n){uni.chooseImage({count:e,sizeType:i,sourceType:o,extension:s,success:function(e){t(a(e,"image"))},fail:function(t){n({errMsg:t.errMsg.replace("chooseImage:fail",r)})}})}))}(e),e):"video"===e.type?o(t,function(t){var e=t.camera,i=t.compressed,n=t.maxDuration,o=t.sourceType,s=void 0===o?["album","camera"]:o,c=t.extension;return new Promise((function(t,o){uni.chooseVideo({camera:e,compressed:i,maxDuration:n,sourceType:s,extension:c,success:function(e){var i=e.tempFilePath,n=e.duration,r=e.size,o=e.height,s=e.width;t(a({errMsg:"chooseVideo:ok",tempFilePaths:[i],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:i,size:r,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){o({errMsg:t.errMsg.replace("chooseVideo:fail",r)})}})}))}(e),e):o(t,function(t){var e=t.count,i=t.extension;return new Promise((function(t,o){var s=uni.chooseFile;if("undefined"!=typeof n&&"function"==typeof n.chooseMessageFile&&(s=n.chooseMessageFile),"function"!=typeof s)return o({errMsg:r+" \u8bf7\u6307\u5b9a type \u7c7b\u578b\uff0c\u8be5\u5e73\u53f0\u4ec5\u652f\u6301\u9009\u62e9 image \u6216 video\u3002"});s({type:"all",count:e,extension:i,success:function(e){t(a(e))},fail:function(t){o({errMsg:t.errMsg.replace("chooseFile:fail",r)})}})}))}(e),e)}}}))),Ge="manual";function Ke(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(i){e.push(t[i])})),e}),(function(e,i){if(t.loadtime!==Ge){for(var n=!1,r=[],a=2;a<e.length;a++)e[a]!==i[a]&&(r.push(e[a]),n=!0);e[0]!==i[0]&&(t.mixinDatacomPage.current=t.pageCurrent),t.mixinDatacomPage.size=t.pageSize,t.onMixinDatacomPropsChange(n,r)}}))},methods:{onMixinDatacomPropsChange:function(t,e){},mixinDatacomEasyGet:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.getone,n=void 0!==i&&i,r=e.success,a=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var i=e.result,a=i.data,o=i.count;t.getcount&&(t.mixinDatacomPage.count=o),t.mixinDatacomHasMore=a.length<t.pageSize;var s=n?a.length?a[0]:void 0:a;t.mixinDatacomResData=s,r&&r(s)})).catch((function(e){t.mixinDatacomLoading=!1,t.mixinDatacomErrorMessage=e,a&&a(e)})))},mixinDatacomGet:function(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.database(this.spaceInfo),r=i.action||this.action;r&&(n=n.action(r));var a=i.collection||this.collection;n=Array.isArray(a)?(e=n).collection.apply(e,l(a)):n.collection(a);var o=i.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=i.field||this.field;s&&(n=n.field(s));var c=i.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var u=i.groupby||this.groupby;u&&(n=n.groupBy(u));var h=i.groupField||this.groupField;h&&(n=n.groupField(h)),!0===(void 0!==i.distinct?i.distinct:this.distinct)&&(n=n.distinct());var f=i.orderby||this.orderby;f&&(n=n.orderBy(f));var d=void 0!==i.pageCurrent?i.pageCurrent:this.mixinDatacomPage.current,p=void 0!==i.pageSize?i.pageSize:this.mixinDatacomPage.size,g=void 0!==i.getcount?i.getcount:this.getcount,v=void 0!==i.gettree?i.gettree:this.gettree,y=void 0!==i.gettreepath?i.gettreepath:this.gettreepath,x={getCount:g},m={limitLevel:void 0!==i.limitlevel?i.limitlevel:this.limitlevel,startWith:void 0!==i.startwith?i.startwith:this.startwith};return v&&(x.getTree=m),y&&(x.getTreePath=m),n=n.skip(p*(d-1)).limit(p).get(x),n}}}}function Je(t,e){return Xe.apply(this,arguments)}function Xe(){return Xe=c(r.default.mark((function t(e,i){var n,a,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="http://".concat(e,":").concat(i,"/system/ping"),t.prev=1,t.next=4,o={url:n,timeout:500},new Promise((function(t,e){st.request(m(m({},o),{},{success:function(e){t(e)},fail:function(t){e(t)}}))}));case 4:return a=t.sent,t.abrupt("return",!(!a.data||0!==a.data.code));case 8:return t.prev=8,t.t0=t["catch"](1),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,8]])}))),Xe.apply(this,arguments)}function Ye(t){if(!t.initUniCloudStatus||"rejected"===t.initUniCloudStatus){var e,i=Promise.resolve();e=1,i=new Promise((function(t,i){setTimeout((function(){t()}),e)})),t.isReady=!1,t.isDefault=!1;var n=t.auth();t.initUniCloudStatus="pending",t.initUniCloud=i.then((function(){return n.getLoginState()})).then((function(t){return t?Promise.resolve():n.signInAnonymously()})).then((function(){if(!B)return Promise.resolve();if(B&&t.debugInfo){var e=t.debugInfo,i=e.address,n=e.servePort;return function(){var t=c(r.default.mark((function t(e,i){var n,a,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<e.length)){t.next=11;break}return o=e[a],t.next=5,Je(o,i);case 5:if(!t.sent){t.next=8;break}return n=o,t.abrupt("break",11);case 8:a++,t.next=1;break;case 11:return t.abrupt("return",{address:n,port:i});case 12:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()(i,n)}})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.address,n=e.port;if(!B)return Promise.resolve();if(i)t.localAddress=i,t.localPort=n;else if(t.debugInfo){var r=console["app-plus"===N?"error":"warn"],a="";"remote"===t.debugInfo.initialLaunchType?(t.debugInfo.forceRemote=!0,a="\u5f53\u524d\u5ba2\u6237\u7aef\u548cHBuilderX\u4e0d\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\uff08\u6216\u5176\u4ed6\u7f51\u7edc\u539f\u56e0\u65e0\u6cd5\u8fde\u63a5HBuilderX\uff09\uff0cuniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u4e0d\u5bf9\u5f53\u524d\u5ba2\u6237\u7aef\u751f\u6548\u3002\n- \u5982\u679c\u4e0d\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u76f4\u63a5\u5ffd\u7565\u6b64\u4fe1\u606f\u3002\n- \u5982\u9700\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u5c06\u5ba2\u6237\u7aef\u4e0e\u4e3b\u673a\u8fde\u63a5\u5230\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u5e76\u91cd\u65b0\u8fd0\u884c\u5230\u5ba2\u6237\u7aef\u3002\n- \u5982\u679c\u5728HBuilderX\u5f00\u542f\u7684\u72b6\u6001\u4e0b\u5207\u6362\u8fc7\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u91cd\u542fHBuilderX\u540e\u518d\u8bd5\n- \u68c0\u67e5\u7cfb\u7edf\u9632\u706b\u5899\u662f\u5426\u62e6\u622a\u4e86HBuilderX\u81ea\u5e26\u7684nodejs"):a="\u65e0\u6cd5\u8fde\u63a5uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u68c0\u67e5\u5f53\u524d\u5ba2\u6237\u7aef\u662f\u5426\u4e0e\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u3002\n- \u5982\u9700\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u5c06\u5ba2\u6237\u7aef\u4e0e\u4e3b\u673a\u8fde\u63a5\u5230\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u5e76\u91cd\u65b0\u8fd0\u884c\u5230\u5ba2\u6237\u7aef\u3002\n- \u5982\u679c\u5728HBuilderX\u5f00\u542f\u7684\u72b6\u6001\u4e0b\u5207\u6362\u8fc7\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u91cd\u542fHBuilderX\u540e\u518d\u8bd5\n- \u68c0\u67e5\u7cfb\u7edf\u9632\u706b\u5899\u662f\u5426\u62e6\u622a\u4e86HBuilderX\u81ea\u5e26\u7684nodejs","h5"===N&&(a+="\n- \u90e8\u5206\u6d4f\u89c8\u5668\u5f00\u542f\u8282\u6d41\u6a21\u5f0f\u4e4b\u540e\u8bbf\u95ee\u672c\u5730\u5730\u5740\u53d7\u9650\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u542f\u7528\u4e86\u8282\u6d41\u6a21\u5f0f"),r(a)}})).then((function(){me(),t.isReady=!0,t.initUniCloudStatus="fulfilled"})).catch((function(e){console.error(e),t.initUniCloudStatus="rejected"}))}}var Ve=new(function(){function t(){_(this,t)}return y(t,[{key:"init",value:function(t){var e={},i=!1!==t.debugFunction&&B&&("h5"===N&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===N);switch(t.provider){case"tencent":e=ye.init(Object.assign(t,{useDebugFunction:i}));break;case"aliyun":e=ft.init(Object.assign(t,{useDebugFunction:i}));break;case"private":e=_e.init(Object.assign(t,{useDebugFunction:i}));break;default:throw new Error("\u672a\u63d0\u4f9b\u6b63\u786e\u7684provider\u53c2\u6570")}var n=U;return B&&n&&!n.code&&(e.debugInfo=n),Ye(e),e.reInit=function(){Ye(this)},De(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){return e.call(this,t)}}(e),Ne(e),function(t){t.getCurrentUserInfo=qe,t.chooseAndUploadFile=He.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return Ke(t)}})}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){if(e[t]){var i=e[t];e[t]=function(){return e.reInit(),i.apply(e,Array.from(arguments))},e[t]=et(e[t],t).bind(e)}})),e.init=this.init,e}}]),t}());(function(){var t=W,e={};if(1===t.length)e=t[0],Ve=Ve.init(e),Ve.isDefault=!0;else{var i,n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo"];i=t&&t.length>0?"\u5e94\u7528\u6709\u591a\u4e2a\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u901a\u8fc7uniCloud.init\u65b9\u6cd5\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u670d\u52a1\u7a7a\u95f4":q?"\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u5728uniCloud\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4":"uni-app cli\u9879\u76ee\u5185\u4f7f\u7528uniCloud\u9700\u8981\u4f7f\u7528HBuilderX\u7684\u8fd0\u884c\u83dc\u5355\u8fd0\u884c\u9879\u76ee\uff0c\u4e14\u9700\u8981\u5728uniCloud\u76ee\u5f55\u5173\u8054\u670d\u52a1\u7a7a\u95f4",n.forEach((function(t){Ve[t]=function(){return console.error(i),Promise.reject(new nt({code:"SYS_ERR",message:i}))}}))}Object.assign(Ve,{get mixinDatacom(){return Ke(Ve)}}),Ve.addInterceptor=V,Ve.removeInterceptor=Z,B&&"h5"===N&&(window.uniCloud=Ve)})();var Ze=Ve;e.default=Ze}).call(this,i("c8ba"),i("fe07")["default"])},aa9b:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading2",data:function(){return{}}};e.default=n},aafe:function(t,e,i){"use strict";i.r(e);var n=i("855c"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},af18:function(t,e){t.exports="/static/d1.png"},b3df:function(t,e,i){"use strict";(function(t){function i(t,e){return s(t)||o(t,e)||r(t,e)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function s(t){if(Array.isArray(t))return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c={version:"v2.3.7-20220122",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},l=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!i||i.length<=0)return t;function r(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?r(t[i],e[i]):t[i]=e[i];return t}return i.forEach((function(e){t=r(t,e)})),t},u={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var 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 h(t,e){var i=Array(2),n=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,i[0]=n,i[1]=r,i}function f(t,e){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=t.replace(i,(function(t,e,i,n){return e+e+i+i+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),a=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+a+","+o+","+s+","+e+")"}function d(t,e,i){if(isNaN(t))throw new Error("[uCharts] series\u6570\u636e\u9700\u4e3aNumber\u683c\u5f0f");i=i||10,e=e||"upper";var n=1;while(i<1)i*=10,n*=10;t="upper"===e?Math.ceil(t*n):Math.floor(t*n);while(t%i!==0)"upper"===e?t++:t--;return t/n}function p(t,e,i,n){for(var r=[],a=0;a<t.length;a++){for(var o={data:[],name:e[a],color:i[a]},s=0,c=n.length;s<c;s++)if(s<t[a])o.data.push(null);else{for(var l=0,u=0;u<t[a];u++)l+=n[s-u][1];o.data.push(+(l/t[a]).toFixed(3))}r.push(o)}return r}function g(t,e,i,n,r){var a=r.width-r.area[1]-r.area[3],o=i.eachSpacing*(r.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-a?(s=a-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function v(t,e,i){function n(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=n(t),e=n(e),i=n(i),e>i&&(i+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=i}function y(t,e,i){var n=t,r=i-e,a=n+(i-r-n)/Math.sqrt(2);a*=-1;var o=(i-r)*(Math.sqrt(2)-1)-(i-r-n)/Math.sqrt(2);return{transX:a,transY:o}}function x(t,e){function i(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 n(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,a=.2,o=null,s=null,c=null,l=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var u=t.length-1;c=t[u].x-(t[u].x-t[u-1].x)*a,l=t[u].y-(t[u].y-t[u-1].y)*a}else c=t[e+1].x-(t[e+2].x-t[e].x)*a,l=t[e+1].y-(t[e+2].y-t[e].y)*a;return i(t,e+1)&&(l=t[e+1].y),i(t,e)&&(s=t[e].y),n(t,e+1)&&(c=t[e+1].x),n(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),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=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),(c>=Math.max(t[e].x,t[e+1].x)||c<=Math.min(t[e].x,t[e+1].x))&&(c=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:c,y:l}}}function m(t,e,i){return{x:i.x+t,y:i.y-e}}function b(t,e){if(e)while(u.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 _(t,e,i){var n=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,a=0;a<r.length;a++)r[a].formatter=t[0].formatter,r[a].data=r[a].value,n.push(r[a]);e.series=n}else n=t;return n}function w(t,e,i){for(var n=0,r=0;r<t.length;r++){var a=t[r];if(a.color||(a.color=i.color[n],n=(n+1)%i.color.length),a.linearIndex||(a.linearIndex=r),a.index||(a.index=0),a.type||(a.type=e.type),"undefined"==typeof a.show&&(a.show=!0),a.type||(a.type=e.type),a.pointShape||(a.pointShape="circle"),!a.legendShape)switch(a.type){case"line":a.legendShape="line";break;case"column":a.legendShape="rect";break;case"area":a.legendShape="triangle";break;case"bar":a.legendShape="rect";break;default:a.legendShape="circle"}}return t}function S(t,e,i,n){var r=e||[];if("custom"==t&&0==r.length&&(r=n.linearColor),"custom"==t&&r.length<i.length)for(var a=i.length-r.length,o=0;o<a;o++)r.push(n.linearColor[(o+1)%n.linearColor.length]);return r}function k(t,e){var i=0,n=e-t;return i=n>=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:d(t,"lower",i),maxRange:d(e,"upper",i)}}function A(t,e,i){var n=0;if(t=String(t),!1!==i&&void 0!==i&&i.setFontSize&&i.measureText)return i.setFontSize(e),i.measureText(t).width;t=t.split("");for(var r=0;r<t.length;r++){var a=t[r];/[a-zA-Z]/.test(a)?n+=7:/[0-9]/.test(a)?n+=5.5:/\./.test(a)?n+=2.7:/-/.test(a)?n+=3.25:/:/.test(a)?n+=2.5:/[\u4e00-\u9fa5]/.test(a)?n+=10:/\(|\)/.test(a)?n+=3.73:/\s/.test(a)?n+=2.5:/%/.test(a)?n+=8:n+=10}return n*e/10}function T(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function C(t,e){for(var i=new Array(e),n=0;n<i.length;n++)i[n]=0;for(var r=0;r<t.length;r++)for(n=0;n<i.length;n++)i[n]+=t[r].data[n];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function P(t,e,i){var n,r;return t.clientX?e.rotate?(r=e.height-t.clientX*e.pix,n=(t.pageY-i.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):(n=t.clientX*e.pix,r=(t.pageY-i.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(r=e.height-t.x*e.pix,n=t.y*e.pix):(n=t.x*e.pix,r=t.y*e.pix),{x:n,y:r}}function D(t,e,i){var n=[],r=[],a=e.constructor.toString().indexOf("Array")>-1;if(a)for(var o=E(t),s=0;s<i.length;s++)r.push(o[i[s]]);else r=t;for(var c=0;c<r.length;c++){var l=r[c],u=-1;if(u=a?e[c]:e,null!==l.data[u]&&"undefined"!==typeof l.data[u]&&l.show){var h={};h.color=l.color,h.type=l.type,h.style=l.style,h.pointShape=l.pointShape,h.disableLegend=l.disableLegend,h.name=l.name,h.show=l.show,h.data=l.formatter?l.formatter(l.data[u]):l.data[u],n.push(h)}}return n}function O(t,e,i){var n=t.map((function(t){return A(t,e,i)}));return Math.max.apply(null,n)}function L(t){for(var e=2*Math.PI/t,i=[],n=0;n<t;n++)i.push(e*n);return i.map((function(t){return-1*t+Math.PI/2}))}function M(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(n.length>0){for(var c=[],l=0;l<n.length;l++)c.push(o[n[l]]);s=c[0][i[0]]}else s=o[0][i];var u=t.map((function(t){var n=null;return e.categories&&e.categories.length>0&&(n=r[i]),{text:a.formatter?a.formatter(t,n,i,e):t.name+": "+t.data,color:t.color}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:u,offset:h}}function F(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.chartData.xAxisPoints[i]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,n[i],i,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(a),y:0};return{textList:o,offset:s}}function I(t,e,i,n,r,a){var o=i.chartData.calPoints,s=a.color.upFill,c=a.color.downFill,l=[s,s,c,s],u=[];e.map((function(e){0==n?e.data[1]-e.data[0]<0?l[1]=c:l[1]=s:(e.data[0]<t[n-1][1]&&(l[0]=c),e.data[1]<e.data[0]&&(l[1]=c),e.data[2]>t[n-1][1]&&(l[2]=s),e.data[3]<t[n-1][1]&&(l[3]=c));var i={text:"\u5f00\u76d8\uff1a"+e.data[0],color:l[0]},r={text:"\u6536\u76d8\uff1a"+e.data[1],color:l[1]},a={text:"\u6700\u4f4e\uff1a"+e.data[2],color:l[2]},o={text:"\u6700\u9ad8\uff1a"+e.data[3],color:l[3]};u.push(i,r,a,o)}));for(var h=[],f={x:0,y:0},d=0;d<o.length;d++){var p=o[d];"undefined"!==typeof p[n]&&null!==p[n]&&h.push(p[n])}return f.x=Math.round(h[0][0].x),{textList:u,offset:f}}function E(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function $(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=i.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(i.categories){for(var c=1;c<i.chartData.xAxisPoints.length;c++)s.push(i.chartData.xAxisPoints[c]-o);"line"!=i.type&&"area"!=i.type||"justify"!=i.xAxis.boundaryGap||(s=i.chartData.xAxisPoints)}else o=0;if(B(t,i,n))if(i.categories)s.forEach((function(e,i){t.x+r+o>e&&(a.index=i)}));else{for(var l=Array(e.length),u=0;u<e.length;u++){l[u]=Array(e[u].length);for(var h=0;h<e[u].length;h++)l[u][h]=Math.abs(e[u][h].x-t.x)}for(var f=Array(l.length),d=Array(l.length),p=0;p<l.length;p++)f[p]=Math.min.apply(null,l[p]),d[p]=l[p].indexOf(f[p]);var g=Math.min.apply(null,f);a.index=[];for(var v=0;v<f.length;v++)f[v]==g&&(a.group.push(v),a.index.push(d[v]))}}return a}function j(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=i.chartData.eachSpacing/2,s=i.chartData.yAxisPoints;return e&&e.length>0&&B(t,i,n)&&s.forEach((function(e,i){t.y+r+o>e&&(a.index=i)})),a}function R(t,e,i){var n=-1,r=0;if(z(t,e.area)){for(var a=e.points,o=-1,s=0,c=a.length;s<c;s++)for(var l=a[s],u=0;u<l.length;u++){o+=1;var h=l[u]["area"];if(h&&t.x>h[0]-r&&t.x<h[2]+r&&t.y>h[1]-r&&t.y<h[3]+r){n=o;break}}return n}return n}function z(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function B(t,e,i){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 N(t,e,i){var n=2*Math.PI/i,r=-1;if(K(t,e.center,e.radius)){var a=function(t){return t<0&&(t+=2*Math.PI),t>2*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=a(-1*t),t}));s.forEach((function(t,e){var i=a(t-n/2),s=a(t+n/2);s<i&&(s+=2*Math.PI),(o>=i&&o<=s||o+2*Math.PI>=i&&o+2*Math.PI<=s)&&(r=e)}))}return r}function U(t,e){for(var i=-1,n=0,r=e.series.length;n<r;n++){var a=e.series[n];if(t.x>a.funnelArea[0]&&t.x<a.funnelArea[2]&&t.y>a.funnelArea[1]&&t.y<a.funnelArea[3]){i=n;break}}return i}function W(t,e){for(var i=-1,n=0,r=e.length;n<r;n++){var a=e[n];if(t.x>a.area[0]&&t.x<a.area[2]&&t.y>a.area[1]&&t.y<a.area[3]){i=n;break}}return i}function q(t,e){for(var i=-1,n=e.chartData.mapData,r=e.series,a=re(t.y,t.x,n.bounds,n.scale,n.xoffset,n.yoffset),o=[a.x,a.y],s=0,c=r.length;s<c;s++){var l=r[s].geometry.coordinates;if(oe(o,l,e.chartData.mapData.mercator)){i=s;break}}return i}function H(t,e,i){var n=-1,r=it(i._series_,i.extra.rose.type,e.radius,e.radius);if(e&&e.center&&K(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a,i.extra.rose&&i.extra.rose.offsetAngle&&(a-=i.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(v(a,r[o]._start_,r[o]._start_+2*r[o]._rose_proportion_*Math.PI)){n=o;break}}return n}function G(t,e,i){var n=-1,r=tt(e.series);if(e&&e.center&&K(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a,i.extra.pie&&i.extra.pie.offsetAngle&&(a-=i.extra.pie.offsetAngle*Math.PI/180),i.extra.ring&&i.extra.ring.offsetAngle&&(a-=i.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(v(a,r[o]._start_,r[o]._start_+2*r[o]._proportion_*Math.PI)){n=o;break}}return n}function K(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function J(t,e){var i=[],n=[];return t.forEach((function(t,r){e.connectNulls?null!==t&&n.push(t):null!==t?n.push(t):(n.length&&i.push(n),n=[])})),n.length&&i.push(n),i}function X(t,e,i,n,r){var a={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 n.legendData=a,a;var o=e.legend.padding*e.pix,s=e.legend.margin*e.pix,c=e.legend.fontSize?e.legend.fontSize*e.pix:i.fontSize,l=15*e.pix,u=5*e.pix,h=Math.max(e.legend.lineHeight*e.pix,c);if("top"==e.legend.position||"bottom"==e.legend.position){for(var f=[],d=0,p=[],g=[],v=0;v<t.length;v++){var y=t[v],x=l+u+A(y.name||"undefined",c,r)+e.legend.itemGap*e.pix;d+x>e.width-e.area[1]-e.area[3]?(f.push(g),p.push(d-e.legend.itemGap*e.pix),d=x,g=[y]):(d+=x,g.push(y))}if(g.length){f.push(g),p.push(d-e.legend.itemGap*e.pix),a.widthArr=p;var m=Math.max.apply(null,p);switch(e.legend.float){case"left":a.area.start.x=e.area[3],a.area.end.x=e.area[3]+m+2*o;break;case"right":a.area.start.x=e.width-e.area[1]-m-2*o,a.area.end.x=e.width-e.area[1];break;default:a.area.start.x=(e.width-m)/2-o,a.area.end.x=(e.width+m)/2+o}a.area.width=m+2*o,a.area.wholeWidth=m+2*o,a.area.height=f.length*h+2*o,a.area.wholeHeight=f.length*h+2*o+2*s,a.points=f}}else{var b=t.length,_=e.height-e.area[0]-e.area[2]-2*s-2*o,w=Math.min(Math.floor(_/h),b);switch(a.area.height=w*h+2*o,a.area.wholeHeight=w*h+2*o,e.legend.float){case"top":a.area.start.y=e.area[0]+s,a.area.end.y=e.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=e.height-e.area[2]-s-a.area.height,a.area.end.y=e.height-e.area[2]-s;break;default:a.area.start.y=(e.height-a.area.height)/2,a.area.end.y=(e.height+a.area.height)/2}for(var S=b%w===0?b/w:Math.floor(b/w+1),k=[],T=0;T<S;T++){var C=t.slice(T*w,T*w+w);k.push(C)}if(a.points=k,k.length){for(var P=0;P<k.length;P++){for(var D=k[P],O=0,L=0;L<D.length;L++){var M=l+u+A(D[L].name||"undefined",c,r)+e.legend.itemGap*e.pix;M>O&&(O=M)}a.widthArr.push(O),a.heightArr.push(D.length*h+2*o)}for(var F=0,I=0;I<a.widthArr.length;I++)F+=a.widthArr[I];a.area.width=F-e.legend.itemGap*e.pix+2*o,a.area.wholeWidth=a.area.width+o}}switch(e.legend.position){case"top":a.area.start.y=e.area[0]+s,a.area.end.y=e.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=e.height-e.area[2]-a.area.height-s,a.area.end.y=e.height-e.area[2]-s;break;case"left":a.area.start.x=e.area[3],a.area.end.x=e.area[3]+a.area.width;break;case"right":a.area.start.x=e.width-e.area[1]-a.area.width,a.area.end.x=e.width-e.area[1];break}return n.legendData=a,a}function Y(t,e,i,n,r){var a={angle:0,xAxisHeight:i.xAxisHeight},o=t.map((function(t){return A(t,e.xAxis.fontSize*e.pix||i.fontSize,r)})),s=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&s+2*i.xAxisTextPadding>n&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+s*Math.sin(a.angle)),a}function V(t,e,i,n){var r,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==n?C(t,e.categories.length):T(t);var o=[];r=r.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var s=0,c=0;if(o.length>0&&(s=Math.min.apply(this,o),c=Math.max.apply(this,o)),a>-1?("number"===typeof e.xAxis.data[a].min&&(s=Math.min(e.xAxis.data[a].min,s)),"number"===typeof e.xAxis.data[a].max&&(c=Math.max(e.xAxis.data[a].max,c))):("number"===typeof e.xAxis.min&&(s=Math.min(e.xAxis.min,s)),"number"===typeof e.xAxis.max&&(c=Math.max(e.xAxis.max,c))),s===c){var l=c||10;c+=l}for(var u=s,h=c,f=[],d=(h-u)/e.xAxis.splitNumber,p=0;p<=e.xAxis.splitNumber;p++)f.push(u+d*p);return f}function Z(t,e,i,n){var r=l({},{type:""},e.extra.bar),a={angle:0,xAxisHeight:i.xAxisHeight};a.ranges=V(t,e,i,r.type),a.rangesFormat=a.ranges.map((function(t){return t=u.toFixed(t,2),t}));var o=a.ranges.map((function(t){return t=u.toFixed(t,2),t}));a=Object.assign(a,ft(o,e,i));var s=a.eachSpacing,c=o.map((function(t){return A(t,e.xAxis.fontSize*e.pix||i.fontSize,n)})),h=Math.max.apply(this,c);return h+2*i.xAxisTextPadding>s&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+h*Math.sin(a.angle)),!0===e.xAxis.disabled&&(a.xAxisHeight=0),a}function Q(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,T(n))),c=[],l=function(r){var o=n[r],l={};l.color=o.color,l.legendShape=o.legendShape,l.pointShape=o.pointShape,l.data=[],o.data.forEach((function(n,r){var o={};o.angle=t[r],o.proportion=n/s,o.value=n,o.position=m(i*o.proportion*a*Math.cos(o.angle),i*o.proportion*a*Math.sin(o.angle),e),l.data.push(o)})),c.push(l)},u=0;u<n.length;u++)l(u);return c}function tt(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,r=0,a=0;a<t.length;a++){var o=t[a];o.data=null===o.data?0:o.data,n+=o.data}for(var s=0;s<t.length;s++){var c=t[s];c.data=null===c.data?0:c.data,c._proportion_=0===n?1/t.length*i:c.data/n*i,c._radius_=e}for(var l=0;l<t.length;l++){var u=t[l];u._start_=r,r+=2*u._proportion_*Math.PI}return t}function et(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]: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="funnel"==i?t[a].data/t[0].data*e*r:n*(t.length-a)/(n*t.length)*e*r,t[a]._proportion_=t[a].data/t[0].data;return"pyramid"!==i&&t.reverse(),t}function it(t,e,i,n){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0,o=0,s=[],c=0;c<t.length;c++){var l=t[c];l.data=null===l.data?0:l.data,a+=l.data,s.push(l.data)}for(var u=Math.min.apply(null,s),h=Math.max.apply(null,s),f=n-i,d=0;d<t.length;d++){var p=t[d];p.data=null===p.data?0:p.data,0===a?(p._proportion_=1/t.length*r,p._rose_proportion_=1/t.length*r):(p._proportion_=p.data/a*r,p._rose_proportion_="area"==e?1/t.length*r:p.data/a*r),p._radius_=i+f*((p.data-u)/(h-u))||n}for(var g=0;g<t.length;g++){var v=t[g];v._start_=o,o+=2*v._rose_proportion_*Math.PI}return t}function nt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var n=0;n<t.length;n++){var r=t[n];r.data=null===r.data?0:r.data;var a=void 0;a="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,r._proportion_=a*r.data*i+e.startAngle,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function rt(t,e,i){for(var n=e-i+1,r=e,a=0;a<t.length;a++)t[a].value=null===t[a].value?0:t[a].value,t[a]._startAngle_=r,t[a]._endAngle_=n*t[a].value+e,t[a]._endAngle_>=2&&(t[a]._endAngle_=t[a]._endAngle_%2),r=t[a]._endAngle_;return t}function at(t,e,i){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){var a=t[r];if(a.data=null===a.data?0:a.data,"auto"==i.pointer.color){for(var o=0;o<e.length;o++)if(a.data<=e[o].value){a.color=e[o].color;break}}else a.color=i.pointer.color;var s=i.startAngle-i.endAngle+1;a._endAngle_=s*a.data+i.startAngle,a._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(a._oldAngle_+=2),a.data>=i.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*n+i.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*n,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return t}function ot(t,e,i,n){t=tt(t);for(var r=0,a=0;a<t.length;a++){var o=t[a],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):u.toFixed(100*o._proportion_)+"%";r=Math.max(r,A(s,o.textSize*n.pix||e.fontSize,i))}return r}function st(t,e,i,n,r,a){return t.map((function(t){if(null===t)return null;var r=0,o=0;return"mix"==a.type?(r=a.extra.mix.column.seriesGap*a.pix||0,o=a.extra.mix.column.categoryGap*a.pix||0):(r=a.extra.column.seriesGap*a.pix||0,o=a.extra.column.categoryGap*a.pix||0),r=Math.min(r,e/i),o=Math.min(o,e/i),t.width=Math.ceil((e-2*o-r*(i-1))/i),a.extra.mix&&a.extra.mix.column.width&&+a.extra.mix.column.width>0&&(t.width=Math.min(t.width,+a.extra.mix.column.width*a.pix)),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),t.width<=0&&(t.width=1),t.x+=(n+.5-i/2)*(t.width+r),t}))}function ct(t,e,i,n,r,a){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=a.extra.bar.seriesGap*a.pix||0,o=a.extra.bar.categoryGap*a.pix||0,r=Math.min(r,e/i),o=Math.min(o,e/i),t.width=Math.ceil((e-2*o-r*(i-1))/i),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(t.width=Math.min(t.width,+a.extra.bar.width*a.pix)),t.width<=0&&(t.width=1),t.y+=(n+.5-i/2)*(t.width+r),t}))}function lt(t,e,i,n,r,a,o){var s=a.extra.column.categoryGap*a.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),n>0&&(t.width-=2*o),t)}))}function ut(t,e,i,n,r,a,o){var s=a.extra.column.categoryGap*a.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),t.width<=0&&(t.width=1),t)}))}function ht(t,e,i,n,r,a,o){var s=a.extra.bar.categoryGap*a.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(t.width=Math.min(t.width,+a.extra.bar.width*a.pix)),t.width<=0&&(t.width=1),t)}))}function ft(t,e,i){var n=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var a=n/r,o=[],s=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*a)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*a):o.push(c)),{xAxisPoints:o,startX:s,endX:c,eachSpacing:a}}function dt(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=a.height-a.area[0]-a.area[2];return t.forEach((function(t,o){if(null===t)c.push(null);else{var u=[];t.forEach((function(t,c){var h={};h.x=n[o]+Math.round(r/2);var f=t.value||t,d=l*(f-e)/(i-e);d*=s,h.y=a.height-Math.round(d)-a.area[2],u.push(h)})),c.push(u)}})),c}function pt(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(c=a.xAxis.boundaryGap);var l=[],u=a.height-a.area[0]-a.area[2],h=a.width-a.area[1]-a.area[3];return t.forEach((function(t,o){if(null===t)l.push(null);else{var f={};f.color=t.color,f.x=n[o];var d,p,g,v=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)d=[].concat(a.chartData.xAxisData.ranges),p=d.shift(),g=d.pop(),v=t[1],f.x=a.area[3]+h*(t[0]-p)/(g-p),"bubble"==a.type&&(f.r=t[2],f.t=t[3]);else v=t.value;"center"==c&&(f.x+=r/2);var y=u*(v-e)/(i-e);y*=s,f.y=a.height-y-a.area[2],l.push(f)}})),l}function gt(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return t.forEach((function(t,r){if(null===t)c.push(null);else{var o={};o.color=t.color,o.y=n[r];var u=t;"object"===typeof t&&null!==t&&(u=t.value);var h=l*(u-e)/(i-e);h*=s,o.height=h,o.value=u,o.x=h+a.area[3],c.push(o)}})),c}function vt(t,e,i,n,r,a,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=a.height-a.area[0]-a.area[2];return t.forEach((function(t,o){if(null===t)u.push(null);else{var f={};if(f.color=t.color,f.x=n[o]+Math.round(r/2),s>0){for(var d=0,p=0;p<=s;p++)d+=c[p].data[o];var g=d-t,v=h*(d-e)/(i-e),y=h*(g-e)/(i-e)}else d=t,v=h*(d-e)/(i-e),y=0;var x=y;v*=l,x*=l,f.y=a.height-Math.round(v)-a.area[2],f.y0=a.height-Math.round(x)-a.area[2],u.push(f)}})),u}function yt(t,e,i,n,r,a,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=a.width-a.area[1]-a.area[3];return t.forEach((function(t,r){if(null===t)u.push(null);else{var o={};if(o.color=t.color,o.y=n[r],s>0){for(var f=0,d=0;d<=s;d++)f+=c[d].data[r];var p=f-t,g=h*(f-e)/(i-e),v=h*(p-e)/(i-e)}else f=t,g=h*(f-e)/(i-e),v=0;var y=v;g*=l,y*=l,o.height=g-y,o.x=a.area[3]+g,o.x0=a.area[3]+y,u.push(o)}})),u}function xt(t,e,i,n,r){var a;a="stack"==n?C(t,e.categories.length):T(t);var o=[];a=a.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),a.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=r.min||0,c=r.max||0;if(o.length>0&&(s=Math.min.apply(this,o),c=Math.max.apply(this,o)),s===c){var l=c||10;c+=l}for(var u=k(s,c),h=void 0===r.min||null===r.min?u.minRange:r.min,f=void 0===r.max||null===r.min?u.maxRange:r.max,d=[],p=(f-h)/e.yAxis.splitNumber,g=0;g<=e.yAxis.splitNumber;g++)d.push(h+p*g);return d.reverse()}function mt(t,e,i,n){var r=l({},{type:""},e.extra.column),a=e.yAxis.data.length,o=new Array(a);if(a>0){for(var s=0;s<a;s++){o[s]=[];for(var c=0;c<t.length;c++)t[c].index==s&&o[s].push(t[c])}for(var u=new Array(a),h=new Array(a),f=new Array(a),d=function(t){var a=e.yAxis.data[t];1==e.yAxis.disabled&&(a.disabled=!0),"categories"===a.type?(a.formatter||(a.formatter=function(t){return t+(a.unit||"")}),a.categories=a.categories||e.categories,u[t]=a.categories):(a.formatter||(a.formatter=function(t){return t.toFixed(a.tofix)+(a.unit||"")}),u[t]=xt(o[t],e,i,r.type,a,t));var s=a.fontSize*e.pix||i.fontSize;f[t]={position:a.position?a.position:"left",width:0},h[t]=u[t].map((function(e){return e=a.formatter(e),f[t].width=Math.max(f[t].width,A(e,s,n)+5),e}));var c=a.calibration?4*e.pix:0;f[t].width+=c+3*e.pix,!0===a.disabled&&(f[t].width=0)},p=0;p<a;p++)d(p)}else{u=new Array(1),h=new Array(1),f=new Array(1);"bar"===e.type?(u[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t){return t+(e.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t){return t.toFixed(e.yAxis.tofix)+(e.yAxis.unit||"")}),u[0]=xt(t,e,i,r.type,{})),f[0]={position:"left",width:0};var g=e.yAxis.fontSize*e.pix||i.fontSize;h[0]=u[0].map((function(t){return t=e.yAxis.formatter(t),f[0].width=Math.max(f[0].width,A(t,g,n)+5),t})),f[0].width+=3*e.pix,!0===e.yAxis.disabled?(f[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):(e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:u,yAxisWidth:f}}function bt(t,e,i,n,r){for(var a=[].concat(i.chartData.yAxisData.ranges),o=i.height-i.area[0]-i.area[2],s=i.area[0],c=[],l=0;l<a.length;l++){var u=a[l].shift(),h=a[l].pop(),f=u-(u-h)*(t-s)/o;f=i.yAxis.data[l].formatter?i.yAxis.data[l].formatter(f):f.toFixed(0),c.push(String(f))}return c}function _t(t,e){for(var i,n,r=e.height-e.area[0]-e.area[2],a=0;a<t.length;a++){t[a].yAxisIndex=t[a].yAxisIndex?t[a].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[a].yAxisIndex]);i=o.pop(),n=o.shift();var s=r*(t[a].value-i)/(n-i);t[a].y=e.height-Math.round(s)-e.area[2]}return t}function wt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function St(t,e,i,n,r){if(n.beginPath(),"hollow"==r.dataPointShapeType?(n.setStrokeStyle(e),n.setFillStyle(r.background),n.setLineWidth(2*r.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(e),n.setLineWidth(1*r.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x+2.5*r.pix,t.y),n.arc(t.x,t.y,3*r.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===i)return;n.closePath(),n.fill(),n.stroke()}function kt(t,e,i,n){var r=t.title.fontSize||e.titleFontSize,a=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",c=t.title.color||t.fontColor,l=t.subtitle.color||t.fontColor,u=o?r:0,h=s?a:0,f=5;if(s){var d=A(s,a*t.pix,i),p=n.x-d/2+(t.subtitle.offsetX||0)*t.pix,g=n.y+a*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(g+=(u*t.pix+f)/2),i.beginPath(),i.setFontSize(a*t.pix),i.setFillStyle(l),i.fillText(s,p,g),i.closePath(),i.stroke()}if(o){var v=A(o,r*t.pix,i),y=n.x-v/2+(t.title.offsetX||0),x=n.y+r*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(x-=(h*t.pix+f)/2),i.beginPath(),i.setFontSize(r*t.pix),i.setFillStyle(c),i.fillText(o,y,x),i.closePath(),i.stroke()}}function At(t,e,i,n,r){var a=e.data,o=e.textOffset?e.textOffset:0;t.forEach((function(t,s){if(null!==t){n.beginPath();var c=e.textSize?e.textSize*r.pix:i.fontSize;n.setFontSize(c),n.setFillStyle(e.textColor||r.fontColor);var l=a[s];"object"===typeof a[s]&&null!==a[s]&&(l=a[s].constructor.toString().indexOf("Array")>-1?a[s][1]:a[s].value);var u=e.formatter?e.formatter(l,s):l;n.setTextAlign("center"),n.fillText(String(u),t.x,t.y-4+o*r.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Tt(t,e,i,n,r){var a=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,o){if(null!==t){n.beginPath();var s=e.textSize?e.textSize*r.pix:i.fontSize;n.setFontSize(s),n.setFillStyle(e.textColor||r.fontColor);var c=a[o];"object"===typeof a[o]&&null!==a[o]&&(c=a[o].value);var l=e.formatter?e.formatter(c,o):c;n.setTextAlign("left"),n.fillText(String(l),t.x+4*r.pix,t.y+s/2-3),n.closePath(),n.stroke()}}))}function Ct(t,e,i,n,r,a){e-=t.width/2+t.labelOffset*n.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,c=t.endNumber-t.startNumber,l=c/t.splitLine.splitNumber,u=t.startAngle,h=t.startNumber,f=0;f<t.splitLine.splitNumber+1;f++){var d={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.formatter?t.formatter(h):h;d.x+=i.x-A(p,r.fontSize,a)/2,d.y+=i.y;var g=d.x,v=d.y;a.beginPath(),a.setFontSize(r.fontSize),a.setFillStyle(t.labelColor||n.fontColor),a.fillText(p,g,v+r.fontSize/2),a.closePath(),a.stroke(),u+=s,u>=2&&(u%=2),h+=l}}function Pt(t,e,i,n,r,a){var o=n.extra.radar||{};e+=r.radarLabelTextMargin*n.pix,t.forEach((function(t,s){var c={x:e*Math.cos(t),y:e*Math.sin(t)},l=m(c.x,c.y,i),h=l.x,f=l.y;u.approximatelyEqual(c.x,0)?h-=A(n.categories[s]||"",r.fontSize,a)/2:c.x<0&&(h-=A(n.categories[s]||"",r.fontSize,a)),a.beginPath(),a.setFontSize(r.fontSize),a.setFillStyle(o.labelColor||n.fontColor),a.fillText(n.categories[s]||"",h,f+r.fontSize/2),a.closePath(),a.stroke()}))}function Dt(t,e,i,n,r,a){for(var o=i.pieChartLinePadding,s=[],c=null,l=t.map((function(t,e,i){var n=t.formatter?t.formatter(t,e,i):u.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var a=t.color,o=t._radius_;return{arc:r,text:n,color:a,radius:o,textColor:t.textColor,textSize:t.textSize}})),h=0;h<l.length;h++){var f=l[h],d=Math.cos(f.arc)*(f.radius+o),p=Math.sin(f.arc)*(f.radius+o),g=Math.cos(f.arc)*f.radius,v=Math.sin(f.arc)*f.radius,y=d>=0?d+i.pieChartTextPadding:d-i.pieChartTextPadding,x=p,_=A(f.text,f.textSize*e.pix||i.fontSize,n),w=x;c&&u.isSameXCoordinateArea(c.start,{x:y})&&(w=y>0?Math.min(x,c.start.y):d<0||x>0?Math.max(x,c.start.y):Math.min(x,c.start.y)),y<0&&(y-=_);var S={lineStart:{x:g,y:v},lineEnd:{x:d,y:p},start:{x:y,y:w},width:_,height:i.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};c=b(S,c),s.push(c)}for(var k=0;k<s.length;k++){var T=s[k],C=m(T.lineStart.x,T.lineStart.y,a),P=m(T.lineEnd.x,T.lineEnd.y,a),D=m(T.start.x,T.start.y,a);n.setLineWidth(1*e.pix),n.setFontSize(T.textSize*e.pix||i.fontSize),n.beginPath(),n.setStrokeStyle(T.color),n.setFillStyle(T.color),n.moveTo(C.x,C.y);var O=T.start.x<0?D.x+T.width:D.x,L=T.start.x<0?D.x-5:D.x+5;n.quadraticCurveTo(P.x,P.y,O,D.y),n.moveTo(C.x,C.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(D.x+T.width,D.y),n.arc(O,D.y,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(T.textSize*e.pix||i.fontSize),n.setFillStyle(T.textColor||e.fontColor),n.fillText(T.text,L,D.y+3),n.closePath(),n.stroke(),n.closePath()}}function Ot(t,e,i,n){var r=e.extra.tooltip||{};r.gridType=void 0==r.gridType?"solid":r.gridType,r.dashLength=void 0==r.dashLength?4:r.dashLength;var a=e.area[0],o=e.height-e.area[2];if("dash"==r.gridType&&n.setLineDash([r.dashLength,r.dashLength]),n.setStrokeStyle(r.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(t,a),n.lineTo(t,o),n.stroke(),n.setLineDash([]),r.xAxisLabel){var s=e.categories[e.tooltip.index];n.setFontSize(i.fontSize);var c=A(s,i.fontSize,n),l=t-.5*c,u=o;n.beginPath(),n.setFillStyle(f(r.labelBgColor||i.toolTipBackground,r.labelBgOpacity||i.toolTipOpacity)),n.setStrokeStyle(r.labelBgColor||i.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(l-i.toolTipPadding,u,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(i.fontSize),n.setFillStyle(r.labelFontColor||e.fontColor),n.fillText(String(s),l,u+i.toolTipPadding+i.fontSize),n.closePath(),n.stroke()}}function Lt(t,e,i){for(var n=l({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],a=t.width-t.area[1],o=_t(n.data,t),s=0;s<o.length;s++){var c=l({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},o[s]);if("dash"==n.type&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(c.lineColor),i.setLineWidth(1*t.pix),i.beginPath(),i.moveTo(r,c.y),i.lineTo(a,c.y),i.stroke(),i.setLineDash([]),c.showLabel){var u=t.yAxis.formatter?t.yAxis.formatter(c.value):c.value;i.setFontSize(e.fontSize);var h=A(u,e.fontSize,i),d=(t.chartData.yAxisData.yAxisWidth[0].width,t.area[3]-h-2*e.toolTipPadding),p=t.area[3],g=p-d,v=p-e.toolTipPadding,y=c.y;i.setFillStyle(f(c.labelBgColor,c.labelBgOpacity)),i.setStrokeStyle(c.labelBgColor),i.setLineWidth(1*t.pix),i.beginPath(),i.rect(d,y-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.setFontSize(e.fontSize),i.setTextAlign("right"),i.setFillStyle(c.labelFontColor),i.fillText(String(u),v,y+.5*e.fontSize),i.stroke(),i.setTextAlign("left")}}}function Mt(t,e,i,n,r){var a=l({},{gridType:"solid",dashLength:4},t.extra.tooltip),o=t.area[3],s=t.width-t.area[1];if("dash"==a.gridType&&i.setLineDash([a.dashLength,a.dashLength]),i.setStrokeStyle(a.gridColor||"#cccccc"),i.setLineWidth(1*t.pix),i.beginPath(),i.moveTo(o,t.tooltip.offset.y),i.lineTo(s,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),a.yAxisLabel)for(var c=bt(t.tooltip.offset.y,t.series,t,e,n),u=t.chartData.yAxisData.yAxisWidth,h=t.area[3],d=t.width-t.area[1],p=0;p<c.length;p++){i.setFontSize(e.fontSize);var g=A(c[p],e.fontSize,i),v=void 0,y=void 0,x=void 0;"left"==u[p].position?(v=h-u[p].width,y=Math.max(v,v+g+2*e.toolTipPadding)):(v=d,y=Math.max(v+u[p].width,v+g+2*e.toolTipPadding)),x=y-v;var m=v+(x-g)/2,b=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(f(a.labelBgColor||e.toolTipBackground,a.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(a.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pix),i.rect(v,b-.5*e.fontSize-e.toolTipPadding,x,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(a.labelFontColor||t.fontColor),i.fillText(c[p],m,b+.5*e.fontSize),i.closePath(),i.stroke(),"left"==u[p].position?h-=u[p].width+t.yAxis.padding*t.pix:d+=u[p].width+t.yAxis.padding*t.pix}}function Ft(t,e,i,n,r){var a=l({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.column),o=e.area[0],s=e.height-e.area[2];n.beginPath(),n.setFillStyle(f(a.activeBgColor,a.activeBgOpacity)),n.rect(t-r/2,o,r,s-o),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function It(t,e,i,n,r){var a=l({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),o=e.area[3],s=e.width-e.area[1];n.beginPath(),n.setFillStyle(f(a.activeBgColor,a.activeBgOpacity)),n.rect(o,t-r/2,s-o,r),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Et(t,e,i,n,r,a,o){var s=l({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},i.extra.tooltip);1==s.showCategory&&i.categories&&t.unshift({text:i.categories[i.tooltip.index],color:null});var c=4*i.pix,u=5*i.pix,h=s.showArrow?8*i.pix:0,d=!1;"line"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||1==s.splitLine&&Ot(i.tooltip.offset.x,i,n,r),e=l({x:0,y:0},e),e.y-=8*i.pix;var p=t.map((function(t){return A(t.text,n.fontSize,r)})),g=c+u+4*n.toolTipPadding+Math.max.apply(null,p),v=2*n.toolTipPadding+t.length*n.toolTipLineHeight;if(0!=s.showBox){e.x-Math.abs(i._scrollDistance_||0)+h+g>i.width&&(d=!0),v+e.y>i.height&&(e.y=i.height-v),r.beginPath(),r.setFillStyle(f(s.bgColor||n.toolTipBackground,s.bgOpacity||n.toolTipOpacity)),r.setLineWidth(s.borderWidth*i.pix),r.setStrokeStyle(f(s.borderColor,s.borderOpacity));var y=s.borderRadius;d?(s.showArrow&&(r.moveTo(e.x,e.y+10*i.pix),r.lineTo(e.x-h,e.y+10*i.pix+5*i.pix)),r.arc(e.x-h-y,e.y+v-y,y,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(g)+y,e.y+v-y,y,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(g)+y,e.y+y,y,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-y,e.y+y,y,-Math.PI/2,0,!1),s.showArrow&&(r.lineTo(e.x-h,e.y+10*i.pix-5*i.pix),r.lineTo(e.x,e.y+10*i.pix))):(s.showArrow&&(r.moveTo(e.x,e.y+10*i.pix),r.lineTo(e.x+h,e.y+10*i.pix-5*i.pix)),r.arc(e.x+h+y,e.y+y,y,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(g)-y,e.y+y,y,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(g)-y,e.y+v-y,y,0,Math.PI/2,!1),r.arc(e.x+h+y,e.y+v-y,y,Math.PI/2,Math.PI,!1),s.showArrow&&(r.lineTo(e.x+h,e.y+10*i.pix+5*i.pix),r.lineTo(e.x,e.y+10*i.pix))),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke(),t.forEach((function(t,i){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var a=e.x+h+2*n.toolTipPadding,o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding+1;d&&(a=e.x-g-h+2*n.toolTipPadding),r.fillRect(a,o,c,n.fontSize),r.closePath()}})),t.forEach((function(t,i){var a=e.x+h+2*n.toolTipPadding+c+u;d&&(a=e.x-g-h+2*n.toolTipPadding+ +c+u);var o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(s.fontColor),r.fillText(t.text,a,o+n.fontSize),r.closePath(),r.stroke()}))}}function $t(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=l({},{type:"group",width:c/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var d=-2,p=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/c)-2,p=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===a&&Ft(e.tooltip.offset.x,e,n,r,c),u.customColor=S(u.linearType,u.customColor,t,n),t.forEach((function(o,l){var g,v,y;g=[].concat(e.chartData.yAxisData.ranges[o.index]),v=g.pop(),y=g.shift();var x=o.data;switch(u.type){case"group":var m=pt(x,v,y,s,c,e,n,a),b=vt(x,v,y,s,c,e,n,l,t,a);h.push(b),m=st(m,c,t.length,l,n,e);for(var _=0;_<m.length;_++){var w=m[_];if(null!==w&&_>d&&_<p){var S=w.x-w.width/2,k=e.height-w.y-e.area[2];r.beginPath();var A=w.color||o.color,T=w.color||o.color;if("none"!==u.linearType){var C=r.createLinearGradient(S,w.y,S,e.height-e.area[2]);"opacity"==u.linearType?(C.addColorStop(0,f(A,u.linearOpacity)),C.addColorStop(1,f(A,1))):(C.addColorStop(0,f(u.customColor[o.linearIndex],u.linearOpacity)),C.addColorStop(u.colorStop,f(u.customColor[o.linearIndex],u.linearOpacity)),C.addColorStop(1,f(A,1))),A=C}if(u.barBorderRadius&&4===u.barBorderRadius.length||!0===u.barBorderCircle){var P=S,D=w.y,O=w.width,L=e.height-e.area[2]-w.y;u.barBorderCircle&&(u.barBorderRadius=[O/2,O/2,0,0]);var M=i(u.barBorderRadius,4),F=M[0],I=M[1],E=M[2],$=M[3],j=Math.min(O/2,L/2);F=F>j?j:F,I=I>j?j:I,E=E>j?j:E,$=$>j?j:$,F=F<0?0:F,I=I<0?0:I,E=E<0?0:E,$=$<0?0:$,r.arc(P+F,D+F,F,-Math.PI,-Math.PI/2),r.arc(P+O-I,D+I,I,-Math.PI/2,0),r.arc(P+O-E,D+L-E,E,0,Math.PI/2),r.arc(P+$,D+L-$,$,Math.PI/2,Math.PI)}else r.moveTo(S,w.y),r.lineTo(S+w.width-2,w.y),r.lineTo(S+w.width-2,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,w.y),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":m=vt(x,v,y,s,c,e,n,l,t,a);h.push(m),m=ut(m,c,t.length,l,n,e,t);for(var R=0;R<m.length;R++){var z=m[R];if(null!==z&&R>d&&R<p){r.beginPath();A=z.color||o.color,S=z.x-z.width/2+1,k=e.height-z.y-e.area[2];var B=e.height-z.y0-e.area[2];l>0&&(k-=B),r.setFillStyle(A),r.moveTo(S,z.y),r.fillRect(S,z.y,z.width-2,k),r.closePath(),r.fill()}}break;case"meter":m=pt(x,v,y,s,c,e,n,a);if(h.push(m),m=lt(m,c,t.length,l,n,e,u.meterBorder),0==l)for(var N=0;N<m.length;N++){var U=m[N];if(null!==U&&N>d&&N<p){r.beginPath(),r.setFillStyle(u.meterFillColor);S=U.x-U.width/2,k=e.height-U.y-e.area[2];if(u.barBorderCircle){var W=(U.width-2*u.meterBorder)/2;W>k&&(W=k),r.moveTo(S+u.meterBorder,e.height-e.area[2]),r.lineTo(S+u.meterBorder,U.y+W),r.arc(S+U.width/2,U.y+W,W,-Math.PI,0),r.lineTo(S+U.width-u.meterBorder,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,U.y),r.fillRect(S,U.y,U.width,k),r.closePath(),r.fill();if(u.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(u.meterBorder*e.pix),u.barBorderCircle){W=(U.width-u.meterBorder)/2;W>k&&(W=k),r.moveTo(S+.5*u.meterBorder,e.height-e.area[2]),r.lineTo(S+.5*u.meterBorder,U.y+W),r.arc(S+U.width/2,U.y+W-.5*u.meterBorder,W,-Math.PI,0),r.lineTo(S+U.width-.5*u.meterBorder,e.height-e.area[2])}else r.moveTo(S+.5*u.meterBorder,U.y+k),r.lineTo(S+.5*u.meterBorder,U.y+.5*u.meterBorder),r.lineTo(S+U.width-.5*u.meterBorder,U.y+.5*u.meterBorder),r.lineTo(S+U.width-.5*u.meterBorder,U.y+k);r.stroke()}}}else for(var q=0;q<m.length;q++){var H=m[q];if(null!==H&&q>d&&q<p){r.beginPath(),r.setFillStyle(H.color||o.color);S=H.x-H.width/2,k=e.height-H.y-e.area[2];if(u.barBorderCircle){W=H.width/2;W>k&&(W=k),r.moveTo(S,e.height-e.area[2]),r.arc(S+W,H.y+W,W,-Math.PI,-Math.PI/2),r.arc(S+H.width-W,H.y+W,W,-Math.PI/2,0),r.lineTo(S+H.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,H.y),r.fillRect(S,H.y,H.width,k),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===a&&t.forEach((function(i,o){var l,h,f;l=[].concat(e.chartData.yAxisData.ranges[i.index]),h=l.pop(),f=l.shift();var d=i.data;switch(u.type){case"group":var p=pt(d,h,f,s,c,e,n,a);p=st(p,c,t.length,o,n,e),At(p,i,n,r,e);break;case"stack":p=vt(d,h,f,s,c,e,n,o,t,a);At(p,i,n,r,e);break;case"meter":p=pt(d,h,f,s,c,e,n,a);At(p,i,n,r,e);break}})),r.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:c}}function jt(t,e,n,r){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length,c=0;c<e.categories.length;c++)o.push(e.area[0]+s/2+s*c);var u=l({},{type:"group",width:s/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),h=[];r.save();var d=-2,p=o.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===a&&It(e.tooltip.offset.y,e,n,r,s),u.customColor=S(u.linearType,u.customColor,t,n),t.forEach((function(c,l){var g,v,y;g=[].concat(e.chartData.xAxisData.ranges),y=g.pop(),v=g.shift();var x=c.data;switch(u.type){case"group":var m=gt(x,v,y,o,s,e,n,a),b=yt(x,v,y,o,s,e,n,l,t,a);h.push(b),m=ct(m,s,t.length,l,n,e);for(var _=0;_<m.length;_++){var w=m[_];if(null!==w&&_>d&&_<p){var S=e.area[3],k=w.y-w.width/2;w.height;r.beginPath();var A=w.color||c.color,T=w.color||c.color;if("none"!==u.linearType){var C=r.createLinearGradient(S,w.y,w.x,w.y);"opacity"==u.linearType?(C.addColorStop(0,f(A,u.linearOpacity)),C.addColorStop(1,f(A,1))):(C.addColorStop(0,f(u.customColor[c.linearIndex],u.linearOpacity)),C.addColorStop(u.colorStop,f(u.customColor[c.linearIndex],u.linearOpacity)),C.addColorStop(1,f(A,1))),A=C}if(u.barBorderRadius&&4===u.barBorderRadius.length||!0===u.barBorderCircle){var P=S,D=w.width,O=w.y-w.width/2,L=w.heigh;u.barBorderCircle&&(u.barBorderRadius=[D/2,D/2,0,0]);var M=i(u.barBorderRadius,4),F=M[0],I=M[1],E=M[2],$=M[3],j=Math.min(D/2,L/2);F=F>j?j:F,I=I>j?j:I,E=E>j?j:E,$=$>j?j:$,F=F<0?0:F,I=I<0?0:I,E=E<0?0:E,$=$<0?0:$,r.arc(P+$,O+$,$,-Math.PI,-Math.PI/2),r.arc(w.x-F,O+F,F,-Math.PI/2,0),r.arc(w.x-I,O+D-I,I,0,Math.PI/2),r.arc(P+E,O+D-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,k),r.lineTo(w.x,k),r.lineTo(w.x,k+w.width-2),r.lineTo(S,k+w.width-2),r.lineTo(S,k),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":m=yt(x,v,y,o,s,e,n,l,t,a);h.push(m),m=ht(m,s,t.length,l,n,e,t);for(var R=0;R<m.length;R++){var z=m[R];if(null!==z&&R>d&&R<p){r.beginPath();A=z.color||c.color,S=z.x0;r.setFillStyle(A),r.moveTo(S,z.y-z.width/2),r.fillRect(S,z.y-z.width/2,z.height,z.width-2),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===a&&t.forEach((function(i,c){var l,h,f;l=[].concat(e.chartData.xAxisData.ranges),f=l.pop(),h=l.shift();var d=i.data;switch(u.type){case"group":var p=gt(d,h,f,o,s,e,n,a);p=ct(p,s,t.length,c,n,e),Tt(p,i,n,r,e);break;case"stack":p=yt(d,h,f,o,s,e,n,c,t,a);Tt(p,i,n,r,e);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:s}}function Rt(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=l({},{color:{},average:{}},i.extra.candle);o.color=l({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=l({},{show:!1,name:[],day:[],color:n.color},o.average),i.extra.candle=o;var s=i.chartData.xAxisData,c=s.xAxisPoints,u=s.eachSpacing,h=[];r.save();var f=-2,d=c.length+2,p=0,g=i.width+u;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(r.translate(i._scrollDistance_,0),f=Math.floor(-i._scrollDistance_/u)-2,d=f+i.xAxis.itemCount+4,p=-i._scrollDistance_-2*u+i.area[3],g=p+(i.xAxis.itemCount+4)*u),(o.average.show||e)&&e.forEach((function(t,e){var o,s,l;o=[].concat(i.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();for(var h=t.data,f=pt(h,s,l,c,u,i,n,a),d=J(f,t),v=0;v<d.length;v++){var y=d[v];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===y.length)r.moveTo(y[0].x,y[0].y),r.arc(y[0].x,y[0].y,1,0,2*Math.PI);else{r.moveTo(y[0].x,y[0].y);for(var m=0,b=0;b<y.length;b++){var _=y[b];if(0==m&&_.x>p&&(r.moveTo(_.x,_.y),m=1),b>0&&_.x>p&&_.x<g){var w=x(y,b-1);r.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,_.x,_.y)}}r.moveTo(y[0].x,y[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var s,l,p;s=[].concat(i.chartData.yAxisData.ranges[t.index]),l=s.pop(),p=s.shift();var g=t.data,v=dt(g,l,p,c,u,i,n,a);h.push(v);for(var y=J(v,t),x=0;x<y[0].length;x++)if(x>f&&x<d){var m=y[0][x];r.beginPath(),g[x][1]-g[x][0]>0?(r.setStrokeStyle(o.color.upLine),r.setFillStyle(o.color.upFill),r.setLineWidth(1*i.pix),r.moveTo(m[3].x,m[3].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[1].x-u/4,m[1].y),r.lineTo(m[0].x-u/4,m[0].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[2].x,m[2].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[0].x+u/4,m[0].y),r.lineTo(m[1].x+u/4,m[1].y),r.lineTo(m[1].x,m[1].y),r.moveTo(m[3].x,m[3].y)):(r.setStrokeStyle(o.color.downLine),r.setFillStyle(o.color.downFill),r.setLineWidth(1*i.pix),r.moveTo(m[3].x,m[3].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[0].x-u/4,m[0].y),r.lineTo(m[1].x-u/4,m[1].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[2].x,m[2].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[1].x+u/4,m[1].y),r.lineTo(m[0].x+u/4,m[0].y),r.lineTo(m[0].x,m[0].y),r.moveTo(m[3].x,m[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:u}}function zt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=e.height-e.area[2],h=[];n.save();var d=0,p=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*c+e.area[3],p=d+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var l,g,v;l=[].concat(e.chartData.yAxisData.ranges[t.index]),g=l.pop(),v=l.shift();var y=t.data,m=pt(y,g,v,s,c,e,i,r);h.push(m);for(var b=J(m,t),_=0;_<b.length;_++){var w=b[_];if(n.beginPath(),n.setStrokeStyle(f(t.color,a.opacity)),a.gradient){var S=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);S.addColorStop("0",f(t.color,a.opacity)),S.addColorStop("1.0",f("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(f(t.color,a.opacity));if(n.setLineWidth(a.width*e.pix),w.length>1){var k=w[0],A=w[w.length-1];n.moveTo(k.x,k.y);var T=0;if("curve"===a.type)for(var C=0;C<w.length;C++){var P=w[C];if(0==T&&P.x>d&&(n.moveTo(P.x,P.y),T=1),C>0&&P.x>d&&P.x<p){var D=x(w,C-1);n.bezierCurveTo(D.ctrA.x,D.ctrA.y,D.ctrB.x,D.ctrB.y,P.x,P.y)}}if("straight"===a.type)for(var O=0;O<w.length;O++){var L=w[O];0==T&&L.x>d&&(n.moveTo(L.x,L.y),T=1),O>0&&L.x>d&&L.x<p&&n.lineTo(L.x,L.y)}if("step"===a.type)for(var M=0;M<w.length;M++){var F=w[M];0==T&&F.x>d&&(n.moveTo(F.x,F.y),T=1),M>0&&F.x>d&&F.x<p&&(n.lineTo(F.x,w[M-1].y),n.lineTo(F.x,F.y))}n.lineTo(A.x,u),n.lineTo(k.x,u),n.lineTo(k.x,k.y)}else{var I=w[0];n.moveTo(I.x-c/2,I.y),n.lineTo(I.x+c/2,I.y),n.lineTo(I.x+c/2,u),n.lineTo(I.x-c/2,u),n.moveTo(I.x-c/2,I.y)}if(n.closePath(),n.fill(),a.addLine){if("dash"==t.lineType){var E=t.dashLength?t.dashLength:8;E*=e.pix,n.setLineDash([E,E])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(a.width*e.pix),1===w.length)n.moveTo(w[0].x,w[0].y),n.arc(w[0].x,w[0].y,1,0,2*Math.PI);else{n.moveTo(w[0].x,w[0].y);var $=0;if("curve"===a.type)for(var j=0;j<w.length;j++){var R=w[j];if(0==$&&R.x>d&&(n.moveTo(R.x,R.y),$=1),j>0&&R.x>d&&R.x<p){var z=x(w,j-1);n.bezierCurveTo(z.ctrA.x,z.ctrA.y,z.ctrB.x,z.ctrB.y,R.x,R.y)}}if("straight"===a.type)for(var B=0;B<w.length;B++){var N=w[B];0==$&&N.x>d&&(n.moveTo(N.x,N.y),$=1),B>0&&N.x>d&&N.x<p&&n.lineTo(N.x,N.y)}if("step"===a.type)for(var U=0;U<w.length;U++){var W=w[U];0==$&&W.x>d&&(n.moveTo(W.x,W.y),$=1),U>0&&W.x>d&&W.x<p&&(n.lineTo(W.x,w[U-1].y),n.lineTo(W.x,W.y))}n.moveTo(w[0].x,w[0].y)}n.stroke(),n.setLineDash([])}}!1!==e.dataPointShape&&St(m,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var o,l,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),l=o.pop(),u=o.shift();var h=t.data,f=pt(h,l,u,s,c,e,i,r);At(f,t,i,n,e)})),n.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:c}}function Bt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=(l({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),o=a.xAxisPoints,s=a.eachSpacing,c=[];n.save();var u=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),u=-e._scrollDistance_-2*s+e.area[3],u+(e.xAxis.itemCount+4)*s),t.forEach((function(t,a){var c,l,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),l=c.pop(),u=c.shift();var h=t.data,f=pt(h,l,u,o,s,e,i,r);n.beginPath(),n.setStrokeStyle(t.color),n.setFillStyle(t.color),n.setLineWidth(1*e.pix);var d=t.pointShape;if("diamond"===d)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===d)f.forEach((function(t,i){null!==t&&(n.moveTo(t.x+2.5*e.pix,t.y),n.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===d)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===d)f.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===d)return;n.closePath(),n.fill(),n.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var c,l,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),l=c.pop(),u=c.shift();var h=t.data,f=pt(h,l,u,o,s,e,i,r);At(f,t,i,n,e)})),n.restore(),{xAxisPoints:o,calPoints:c,eachSpacing:s}}function Nt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{opacity:1,border:2},e.extra.bubble),o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=[];n.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*c+e.area[3],h+(e.xAxis.itemCount+4)*c),t.forEach((function(o,l){var u,h,d;u=[].concat(e.chartData.yAxisData.ranges[o.index]),h=u.pop(),d=u.shift();var p=o.data,g=pt(p,h,d,s,c,e,i,r);n.beginPath(),n.setStrokeStyle(o.color),n.setLineWidth(a.border*e.pix),n.setFillStyle(f(o.color,a.opacity)),g.forEach((function(t,i){n.moveTo(t.x+t.r,t.y),n.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==e.dataLabel&&1===r&&g.forEach((function(r,a){n.beginPath();var o=t.textSize*e.pix||i.fontSize;n.setFontSize(o),n.setFillStyle(t.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(r.t),r.x,r.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:c}}function Ut(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"straight",width:2},e.extra.line);a.width*=e.pix;var o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=[];n.save();var h=0,f=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*c+e.area[3],f=h+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var l,d,p;l=[].concat(e.chartData.yAxisData.ranges[t.index]),d=l.pop(),p=l.shift();var g=t.data,v=pt(g,d,p,s,c,e,i,r);u.push(v);var y=J(v,t);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pix,n.setLineDash([m,m])}n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(a.width),y.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y),n.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{n.moveTo(t[0].x,t[0].y);var i=0;if("curve"===a.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==i&&o.x>h&&(n.moveTo(o.x,o.y),i=1),r>0&&o.x>h&&o.x<f){var s=x(t,r-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===a.type)for(var c=0;c<t.length;c++){var l=t[c];0==i&&l.x>h&&(n.moveTo(l.x,l.y),i=1),c>0&&l.x>h&&l.x<f&&n.lineTo(l.x,l.y)}if("step"===a.type)for(var u=0;u<t.length;u++){var d=t[u];0==i&&d.x>h&&(n.moveTo(d.x,d.y),i=1),u>0&&d.x>h&&d.x<f&&(n.lineTo(d.x,t[u-1].y),n.lineTo(d.x,d.y))}n.moveTo(t[0].x,t[0].y)}})),n.stroke(),n.setLineDash([]),!1!==e.dataPointShape&&St(v,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var o,l,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),l=o.pop(),u=o.shift();var h=t.data,f=pt(h,l,u,s,c,e,i,r);At(f,t,i,n,e)})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:c}}function Wt(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=l({},{width:u/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),s=e.chartData.xAxisData,c=s.xAxisPoints,u=s.eachSpacing,h=e.height-e.area[2],d=[],p=0,g=0;t.forEach((function(t,e){"column"==t.type&&(g+=1)})),r.save();var v=-2,y=c.length+2,m=0,b=e.width+u;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),v=Math.floor(-e._scrollDistance_/u)-2,y=v+e.xAxis.itemCount+4,m=-e._scrollDistance_-2*u+e.area[3],b=m+(e.xAxis.itemCount+4)*u),o.customColor=S(o.linearType,o.customColor,t,n),t.forEach((function(t,s){var l,_,w;l=[].concat(e.chartData.yAxisData.ranges[t.index]),_=l.pop(),w=l.shift();var S=t.data,k=pt(S,_,w,c,u,e,n,a);if(d.push(k),"column"==t.type){k=st(k,u,g,p,n,e);for(var A=0;A<k.length;A++){var T=k[A];if(null!==T&&A>v&&A<y){var C=T.x-T.width/2;e.height,T.y,e.area[2];r.beginPath();var P=T.color||t.color,D=T.color||t.color;if("none"!==o.linearType){var O=r.createLinearGradient(C,T.y,C,e.height-e.area[2]);"opacity"==o.linearType?(O.addColorStop(0,f(P,o.linearOpacity)),O.addColorStop(1,f(P,1))):(O.addColorStop(0,f(o.customColor[t.linearIndex],o.linearOpacity)),O.addColorStop(o.colorStop,f(o.customColor[t.linearIndex],o.linearOpacity)),O.addColorStop(1,f(P,1))),P=O}if(o.barBorderRadius&&4===o.barBorderRadius.length||o.barBorderCircle){var L=C,M=T.y,F=T.width,I=e.height-e.area[2]-T.y;o.barBorderCircle&&(o.barBorderRadius=[F/2,F/2,0,0]);var E=i(o.barBorderRadius,4),$=E[0],j=E[1],R=E[2],z=E[3],B=Math.min(F/2,I/2);$=$>B?B:$,j=j>B?B:j,R=R>B?B:R,z=z>B?B:z,$=$<0?0:$,j=j<0?0:j,R=R<0?0:R,z=z<0?0:z,r.arc(L+$,M+$,$,-Math.PI,-Math.PI/2),r.arc(L+F-j,M+j,j,-Math.PI/2,0),r.arc(L+F-R,M+I-R,R,0,Math.PI/2),r.arc(L+z,M+I-z,z,Math.PI/2,Math.PI)}else r.moveTo(C,T.y),r.lineTo(C+T.width-2,T.y),r.lineTo(C+T.width-2,e.height-e.area[2]),r.lineTo(C,e.height-e.area[2]),r.lineTo(C,T.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(P),r.closePath(),r.fill()}}p+=1}if("area"==t.type)for(var N=J(k,t),U=0;U<N.length;U++){var W=N[U];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(f(t.color,.2)),r.setLineWidth(2*e.pix),W.length>1){var q=W[0],H=W[W.length-1];r.moveTo(q.x,q.y);var G=0;if("curve"===t.style)for(var K=0;K<W.length;K++){var X=W[K];if(0==G&&X.x>m&&(r.moveTo(X.x,X.y),G=1),K>0&&X.x>m&&X.x<b){var Y=x(W,K-1);r.bezierCurveTo(Y.ctrA.x,Y.ctrA.y,Y.ctrB.x,Y.ctrB.y,X.x,X.y)}}else for(var V=0;V<W.length;V++){var Z=W[V];0==G&&Z.x>m&&(r.moveTo(Z.x,Z.y),G=1),V>0&&Z.x>m&&Z.x<b&&r.lineTo(Z.x,Z.y)}r.lineTo(H.x,h),r.lineTo(q.x,h),r.lineTo(q.x,q.y)}else{var Q=W[0];r.moveTo(Q.x-u/2,Q.y),r.lineTo(Q.x+u/2,Q.y),r.lineTo(Q.x+u/2,h),r.lineTo(Q.x-u/2,h),r.moveTo(Q.x-u/2,Q.y)}r.closePath(),r.fill()}if("line"==t.type){var tt=J(k,t);tt.forEach((function(i,n){if("dash"==t.lineType){var a=t.dashLength?t.dashLength:8;a*=e.pix,r.setLineDash([a,a])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pix),1===i.length)r.moveTo(i[0].x,i[0].y),r.arc(i[0].x,i[0].y,1,0,2*Math.PI);else{r.moveTo(i[0].x,i[0].y);var o=0;if("curve"==t.style)for(var s=0;s<i.length;s++){var c=i[s];if(0==o&&c.x>m&&(r.moveTo(c.x,c.y),o=1),s>0&&c.x>m&&c.x<b){var l=x(i,s-1);r.bezierCurveTo(l.ctrA.x,l.ctrA.y,l.ctrB.x,l.ctrB.y,c.x,c.y)}}else for(var u=0;u<i.length;u++){var h=i[u];0==o&&h.x>m&&(r.moveTo(h.x,h.y),o=1),u>0&&h.x>m&&h.x<b&&r.lineTo(h.x,h.y)}r.moveTo(i[0].x,i[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&St(k,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===a){p=0;t.forEach((function(t,i){var o,s,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();var h=t.data,f=pt(h,s,l,c,u,e,n,a);"column"!==t.type?At(f,t,n,r,e):(f=st(f,u,g,p,n,e),At(f,t,n,r,e),p+=1)}))}return r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:u}}function qt(t,e,i,n,r,a){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===n&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&Mt(t,e,i,r,a),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===n&&Et(t.tooltip.textList,t.tooltip.offset,t,e,i,r,a),i.restore()}function Ht(t,e,i,n){var r=e.chartData.xAxisData,a=r.xAxisPoints,o=r.startX,s=r.endX,c=r.eachSpacing,l="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(l=e.xAxis.boundaryGap);var u=e.height-e.area[2],h=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+i.xAxisHeight,d=s-o,p=c*(a.length-1),g=d*d/p,v=0;e._scrollDistance_&&(v=-e._scrollDistance_*d/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(o,f),n.lineTo(s,f),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),n.moveTo(o+v,f),n.lineTo(o+v+g,f),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),a.forEach((function(t,i){i>0&&(n.beginPath(),n.moveTo(t-c/2,u),n.lineTo(t-c/2,u+3*e.pix),n.closePath(),n.stroke())}))),!0!==e.xAxis.disableGrid&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&n.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,a.forEach((function(t,i){i%e.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(t,u),n.lineTo(t,h),n.stroke())})),n.setLineDash([])),!0!==e.xAxis.disabled){var x=t.length;e.xAxis.labelCount&&(x=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,x-=1);for(var m=Math.ceil(t.length/x),b=[],_=t.length,w=0;w<_;w++)w%m!==0?b.push(""):b.push(t[w]);b[_-1]=t[_-1];var S=e.xAxis.fontSize*e.pix||i.fontSize;0===i._xAxisTextAngle_?b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=-A(String(o),S,n)/2;"center"==l&&(s+=c/2);var h=0;e.xAxis.scrollShow&&(h=6*e.pix),n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor),n.fillText(String(o),a[r]+s,u+S+(i.xAxisHeight-h-S)/2),n.closePath(),n.stroke()})):b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t;n.save(),n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor);var s=A(String(o),S,n),h=-s;"center"==l&&(h+=c/2);var f=y(a[r]+c/2,u+S/2+5,e.height),d=f.transX,p=f.transY;n.rotate(-1*i._xAxisTextAngle_),n.translate(d,p),n.fillText(String(o),a[r]+h,u+S+5),n.closePath(),n.stroke(),n.restore()}))}n.restore(),e.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(e.xAxis.axisLineColor),n.setLineWidth(1*e.pix),n.moveTo(o,e.height-e.area[2]),n.lineTo(s,e.height-e.area[2]),n.stroke())}function Gt(t,e,i,n){if(!0!==e.yAxis.disableGrid){var r=e.height-e.area[0]-e.area[2],a=r/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,c=e.chartData.xAxisData.eachSpacing,l=c*(s.length-1),u=o+l,h=[],f=1;!1===e.xAxis.axisLine&&(f=0);for(var d=f;d<e.yAxis.splitNumber+1;d++)h.push(e.height-e.area[2]-a*d);n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&n.setLineDash([e.yAxis.dashLength*e.pix,e.yAxis.dashLength*e.pix]),n.setStrokeStyle(e.yAxis.gridColor),n.setLineWidth(1*e.pix),h.forEach((function(t,e){n.beginPath(),n.moveTo(o,t),n.lineTo(u,t),n.stroke()})),n.setLineDash([]),n.restore()}}function Kt(t,e,i,n){if(!0!==e.yAxis.disabled){var r=e.height-e.area[0]-e.area[2],a=r/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],c=e.height-e.area[2],l=c+i.xAxisHeight;e.xAxis.scrollShow&&(l-=3*e.pix),e.xAxis.rotateLabel&&(l=e.height-e.area[2]+e.fontSize*e.pix/2),n.beginPath(),n.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&n.fillRect(0,0,o,l),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&n.fillRect(s,0,e.width,l),n.closePath(),n.stroke();var u=e.area[3],h=e.width-e.area[1],f=e.area[3]+(e.width-e.area[1]-e.area[3])/2;if(e.yAxis.data)for(var d=function(t){var o=e.yAxis.data[t];if(g=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)g.push(e.area[0]+r/o.categories.length/2+r/o.categories.length*s);else for(var l=0;l<=e.yAxis.splitNumber;l++)g.push(e.area[0]+a*l);if(!0!==o.disabled){var d=e.chartData.yAxisData.rangesFormat[t],p=o.fontSize?o.fontSize*e.pix:i.fontSize,v=e.chartData.yAxisData.yAxisWidth[t],y=o.textAlign||"right";if(d.forEach((function(t,i){var r=g[i]?g[i]:c;n.beginPath(),n.setFontSize(p),n.setLineWidth(1*e.pix),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setFillStyle(o.fontColor||e.fontColor);var a=0,s=4*e.pix;if("left"==v.position){switch(1==o.calibration&&(n.moveTo(u,r),n.lineTo(u-3*e.pix,r),s+=3*e.pix),y){case"left":n.setTextAlign("left"),a=u-v.width;break;case"right":n.setTextAlign("right"),a=u-s;break;default:n.setTextAlign("center"),a=u-v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}else if("right"==v.position){switch(1==o.calibration&&(n.moveTo(h,r),n.lineTo(h+3*e.pix,r),s+=3*e.pix),y){case"left":n.setTextAlign("left"),a=h+s;break;case"right":n.setTextAlign("right"),a=h+v.width;break;default:n.setTextAlign("center"),a=h+v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}else if("center"==v.position){switch(1==o.calibration&&(n.moveTo(f,r),n.lineTo(f-3*e.pix,r),s+=3*e.pix),y){case"left":n.setTextAlign("left"),a=f-v.width;break;case"right":n.setTextAlign("right"),a=f-s;break;default:n.setTextAlign("center"),a=f-v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}n.closePath(),n.stroke(),n.setTextAlign("left")})),!1!==o.axisLine&&(n.beginPath(),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setLineWidth(1*e.pix),"left"==v.position?(n.moveTo(u,e.height-e.area[2]),n.lineTo(u,e.area[0])):"right"==v.position?(n.moveTo(h,e.height-e.area[2]),n.lineTo(h,e.area[0])):"center"==v.position&&(n.moveTo(f,e.height-e.area[2]),n.lineTo(f,e.area[0])),n.stroke()),e.yAxis.showTitle){var x=o.titleFontSize*e.pix||i.fontSize,m=o.title;n.beginPath(),n.setFontSize(x),n.setFillStyle(o.titleFontColor||e.fontColor),"left"==v.position?n.fillText(m,u-A(m,x,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==v.position?n.fillText(m,h-A(m,x,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==v.position&&n.fillText(m,f-A(m,x,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),n.closePath(),n.stroke()}"left"==v.position?u-=v.width+e.yAxis.padding*e.pix:h+=v.width+e.yAxis.padding*e.pix}},p=0;p<e.yAxis.data.length;p++){var g;d(p)}}}function Jt(t,e,i,n,r){if(!1!==e.legend.show){var a=r.legendData,o=a.points,s=a.area,c=e.legend.padding*e.pix,l=e.legend.fontSize*e.pix,u=15*e.pix,h=5*e.pix,f=e.legend.itemGap*e.pix,d=Math.max(e.legend.lineHeight*e.pix,l);n.beginPath(),n.setLineWidth(e.legend.borderWidth*e.pix),n.setStrokeStyle(e.legend.borderColor),n.setFillStyle(e.legend.backgroundColor),n.moveTo(s.start.x,s.start.y),n.rect(s.start.x,s.start.y,s.width,s.height),n.closePath(),n.fill(),n.stroke(),o.forEach((function(t,r){var o=0,p=0;o=a.widthArr[r],p=a.heightArr[r];var g=0,v=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":g=s.start.x+c;break;case"right":g=s.start.x+s.width-o;break;default:g=s.start.x+(s.width-o)/2}v=s.start.y+c+r*d}else o=0==r?0:a.widthArr[r-1],g=s.start.x+c+o,v=s.start.y+c+(s.height-p)/2;n.setFontSize(i.fontSize);for(var y=0;y<t.length;y++){var x=t[y];switch(x.area=[0,0,0,0],x.area[0]=g,x.area[1]=v,x.area[3]=v+d,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(x.show?x.color:e.legend.hiddenColor),n.setFillStyle(x.show?x.color:e.legend.hiddenColor),x.legendShape){case"line":n.moveTo(g,v+.5*d-2*e.pix),n.fillRect(g,v+.5*d-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":n.moveTo(g+7.5*e.pix,v+.5*d-5*e.pix),n.lineTo(g+2.5*e.pix,v+.5*d+5*e.pix),n.lineTo(g+12.5*e.pix,v+.5*d+5*e.pix),n.lineTo(g+7.5*e.pix,v+.5*d-5*e.pix);break;case"diamond":n.moveTo(g+7.5*e.pix,v+.5*d-5*e.pix),n.lineTo(g+2.5*e.pix,v+.5*d),n.lineTo(g+7.5*e.pix,v+.5*d+5*e.pix),n.lineTo(g+12.5*e.pix,v+.5*d),n.lineTo(g+7.5*e.pix,v+.5*d-5*e.pix);break;case"circle":n.moveTo(g+7.5*e.pix,v+.5*d),n.arc(g+7.5*e.pix,v+.5*d,5*e.pix,0,2*Math.PI);break;case"rect":n.moveTo(g,v+.5*d-5*e.pix),n.fillRect(g,v+.5*d-5*e.pix,15*e.pix,10*e.pix);break;case"square":n.moveTo(g+5*e.pix,v+.5*d-5*e.pix),n.fillRect(g+5*e.pix,v+.5*d-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:n.moveTo(g,v+.5*d-5*e.pix),n.fillRect(g,v+.5*d-5*e.pix,15*e.pix,10*e.pix)}n.closePath(),n.fill(),n.stroke(),g+=u+h;var m=.5*d+.5*l-2;n.beginPath(),n.setFontSize(l),n.setFillStyle(x.show?e.legend.fontColor:e.legend.hiddenColor),n.fillText(x.name,g,v+m),n.closePath(),n.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=A(x.name,l,n)+f,x.area[2]=g):(x.area[2]=g+A(x.name,l,n)+f,g-=u+h,v+=d)}}))}}function Xt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),o={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=a.activeRadius*e.pix);var s=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);a.customRadius>0&&(s=a.customRadius*e.pix),t=tt(t,s,r);var c=a.activeRadius*e.pix;if(a.customColor=S(a.linearType,a.customColor,t,i),t=t.map((function(t){return t._start_+=a.offsetAngle*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(f(t.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_+c,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var r,s=t.color;"custom"==a.linearType&&(r=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,f(a.customColor[t.linearIndex],1)),r.addColorStop(1,f(t.color,1)),s=r);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),"ring"===e.type){var u=.6*s;"number"===typeof a.ringWidth&&a.ringWidth>0&&(u=Math.max(0,s-a.ringWidth*e.pix)),n.beginPath(),n.setFillStyle(a.centerColor),n.moveTo(o.x,o.y),n.arc(o.x,o.y,u,0,2*Math.PI),n.closePath(),n.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,d=0,p=t.length;d<p;d++)if(t[d].data>0){h=!0;break}h&&Dt(t,e,i,n,s,o)}return 1===r&&"ring"===e.type&&kt(e,i,n,o),{center:o,radius:s,series:t}}function Yt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=a.activeRadius*e.pix);var o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),c=a.minRadius||.5*s;t=it(t,a.type,c,s,r);var u=a.activeRadius*e.pix;if(a.customColor=S(a.linearType,a.customColor,t,i),t=t.map((function(t){return t._start_+=(a.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(f(t.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,u+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var r,s=t.color;"custom"==a.linearType&&(r=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,f(a.customColor[t.linearIndex],1)),r.addColorStop(1,f(t.color,1)),s=r);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,d=0,p=t.length;d<p;d++)if(t[d].data>0){h=!0;break}h&&Dt(t,e,i,n,s,o)}return{center:o,radius:s,series:t}}function Vt(t,e,i,n){var r,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=l({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=nt(t,s,o),r=s.centerX||s.centerY?{x:s.centerX?s.centerX:e.width/2,y:s.centerY?s.centerY:e.height/2}:{x:e.width/2,y:e.height/2},s.radius?a=s.radius:(a=Math.min(r.x,r.y),a-=5*e.pix,a-=s.width/2),s.customColor=S(s.linearType,s.customColor,t,i);for(var c=0;c<t.length;c++){var u=t[c];n.setLineWidth(s.width*e.pix),n.setStrokeStyle(s.backgroundColor||"#E9E9E9"),n.setLineCap("round"),n.beginPath(),"default"==s.type?n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,s.startAngle*Math.PI,s.endAngle*Math.PI,!1):n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,0,2*Math.PI,!1),n.stroke();var h=u.color;if("custom"==s.linearType){var d=n.createLinearGradient(r.x-a,r.y,r.x+a,r.y);d.addColorStop(1,f(s.customColor[u.linearIndex],1)),d.addColorStop(0,f(u.color,1)),h=d}n.setLineWidth(s.width*e.pix),n.setStrokeStyle(h),n.setLineCap("round"),n.beginPath(),n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,s.startAngle*Math.PI,u._proportion_*Math.PI,!1),n.stroke()}return kt(e,i,n,r),{center:r,radius:a,series:t}}function Zt(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=l({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),t=rt(t,o.startAngle,o.endAngle);var s={x:i.width/2,y:i.height/2},c=Math.min(s.x,s.y);c-=5*i.pix,c-=o.width/2;var u=c-o.width,h=0;if("progress"==o.type){var d=c-3*o.width;r.beginPath();var p=r.createLinearGradient(s.x,s.y-d,s.x,s.y+d);p.addColorStop("0",f(e[0].color,.3)),p.addColorStop("1.0",f("#FFFFFF",.1)),r.setFillStyle(p),r.arc(s.x,s.y,d,0,2*Math.PI,!1),r.fill(),r.setLineWidth(o.width),r.setStrokeStyle(f(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,u,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),r.stroke(),h=o.startAngle-o.endAngle+1;o.splitLine.splitNumber;var g=h/o.splitLine.splitNumber/o.splitLine.childNumber,v=-c-.5*o.width-o.splitLine.fixRadius,y=-c-o.width-o.splitLine.fixRadius+o.splitLine.width;r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var x=o.splitLine.splitNumber*o.splitLine.childNumber+1,m=e[0].data*a,b=0;b<x;b++)r.beginPath(),m>b/x?r.setStrokeStyle(f(e[0].color,1)):r.setStrokeStyle(f(e[0].color,.3)),r.setLineWidth(3*i.pix),r.moveTo(v,0),r.lineTo(y,0),r.stroke(),r.rotate(g*Math.PI);r.restore(),e=nt(e,o,a),r.setLineWidth(o.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,u,o.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var _=c-2.5*o.width;r.save(),r.translate(s.x,s.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(o.width/3);var w=r.createLinearGradient(0,.6*-_,0,.6*_);w.addColorStop("0",f("#FFFFFF",0)),w.addColorStop("0.5",f(e[0].color,1)),w.addColorStop("1.0",f("#FFFFFF",0)),r.setStrokeStyle(w),r.arc(0,0,_,.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(-_-o.width/3/2,-4),r.lineTo(-_-o.width/3/2-4,0),r.lineTo(-_-o.width/3/2,4),r.lineTo(-_-o.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(o.width),r.setLineCap("butt");for(var S=0;S<t.length;S++){var k=t[S];r.beginPath(),r.setStrokeStyle(k.color),r.arc(s.x,s.y,c,k._startAngle_*Math.PI,k._endAngle_*Math.PI,!1),r.stroke()}r.save(),h=o.startAngle-o.endAngle+1;var A=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,C=-c-.5*o.width-o.splitLine.fixRadius,P=-c-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,D=-c-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var O=0;O<o.splitLine.splitNumber+1;O++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(2*i.pix),r.moveTo(C,0),r.lineTo(P,0),r.stroke(),r.rotate(A*Math.PI);r.restore(),r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var L=0;L<o.splitLine.splitNumber*o.splitLine.childNumber+1;L++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(1*i.pix),r.moveTo(C,0),r.lineTo(D,0),r.stroke(),r.rotate(T*Math.PI);r.restore(),e=at(e,t,o,a);for(var M=0;M<e.length;M++){var F=e[M];r.save(),r.translate(s.x,s.y),r.rotate((F._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(F.color),r.moveTo(o.pointer.width,0),r.lineTo(0,-o.pointer.width/2),r.lineTo(-u,0),r.lineTo(0,o.pointer.width/2),r.lineTo(o.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==i.dataLabel&&Ct(o,c,s,i,n,r)}return kt(i,n,r,s),1===a&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:s,radius:c,innerRadius:u,categories:t,totalAngle:h}}function Qt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),o=L(e.categories.length),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=(e.width-e.area[1]-e.area[3])/2,u=(e.height-e.area[0]-e.area[2])/2,h=Math.min(c-(O(e.categories,i.fontSize,n)+i.radarLabelTextMargin),u-i.radarLabelTextMargin);h-=i.radarLabelTextMargin*e.pix,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(a.gridColor),o.forEach((function(t){var e=m(h*Math.cos(t),h*Math.sin(t),s);n.moveTo(s.x,s.y),n.lineTo(e.x,e.y)})),n.stroke(),n.closePath();for(var d=function(t){var i={};if(n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(a.gridColor),"radar"==a.gridType)o.forEach((function(e,r){var o=m(h/a.gridCount*t*Math.cos(e),h/a.gridCount*t*Math.sin(e),s);0===r?(i=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(i.x,i.y);else{var r=m(h/a.gridCount*t*Math.cos(1.5),h/a.gridCount*t*Math.sin(1.5),s);n.arc(s.x,s.y,s.y-r.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},p=1;p<=a.gridCount;p++)d(p);var g=Q(o,s,h,t,e,r);return g.forEach((function(t,i){if(n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(t.color),n.setFillStyle(f(t.color,a.opacity)),t.data.forEach((function(t,e){0===e?n.moveTo(t.position.x,t.position.y):n.lineTo(t.position.x,t.position.y)})),n.closePath(),n.fill(),!0===a.border&&n.stroke(),n.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));St(r,t.color,t.pointShape,n,e)}})),Pt(o,h,s,e,i,n),!1!==e.dataLabel&&1===r&&(g.forEach((function(t,r){n.beginPath();var a=t.textSize*e.pix||i.fontSize;n.setFontSize(a),n.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-s.x)<2?t.position.y<s.y?(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y-4)):(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y+a+2)):t.position.x<s.x?(n.setTextAlign("right"),n.fillText(t.value,t.position.x-4,t.position.y+a/2-2)):(n.setTextAlign("left"),n.fillText(t.value,t.position.x+4,t.position.y+a/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:s,radius:h,angleList:o}}function te(t,e,i){i=0==i?1:i;for(var n=[],r=0;r<i;r++)n[r]=Math.random();return Math.floor(n.reduce((function(t,e){return t+e}))/i*(e-t))+t}function ee(t,e,i,n){for(var r=!1,a=0;a<e.length;a++)if(e[a].area){if(!(t[3]<e[a].area[1]||t[0]>e[a].area[2]||t[1]>e[a].area[3]||t[2]<e[a].area[0])){r=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>n){r=!0;break}r=!1}return r}function ie(t){var e,i={};i.xMin=180,i.xMax=0,i.yMin=90,i.yMax=0;for(var n=0;n<t.length;n++)for(var r=t[n].geometry.coordinates,a=0;a<r.length;a++){e=r[a],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],c=e[o][1],l={x:s,y:c};i.xMin=i.xMin<l.x?i.xMin:l.x,i.xMax=i.xMax>l.x?i.xMax:l.x,i.yMin=i.yMin<l.y?i.yMin:l.y,i.yMax=i.yMax>l.y?i.yMax:l.y}}return i}function ne(t,e,i,n,r,a){return{x:(e-i.xMin)*n+r,y:(i.yMax-t)*n+a}}function re(t,e,i,n,r,a){return{x:(e-r)/n+i.xMin,y:i.yMax-(t-a)/n}}function ae(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 n=i[0]-(i[0]-e[0])*(i[1]-t[1])/(i[1]-e[1]);return!(n<t[0])}function oe(t,e,i){for(var n=0,r=0;r<e.length;r++){var a=e[r][0];1==e.length&&(a=e[r][0]);for(var o=0;o<a.length-1;o++){var s=a[o],c=a[o+1];i&&(s=h(a[o][0],a[o][1]),c=h(a[o+1][0],a[o+1][1])),ae(t,s,c)&&(n+=1)}}return n%2==1}function se(t,e,i,n){var r,a,o=l({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),s=t,c=ie(s);if(o.mercator){var u=h(c.xMax,c.yMax),d=h(c.xMin,c.yMin);c.xMax=u[0],c.yMax=u[1],c.xMin=d[0],c.yMin=d[1]}for(var p=e.width/Math.abs(c.xMax-c.xMin),g=e.height/Math.abs(c.yMax-c.yMin),v=p<g?p:g,y=e.width/2-Math.abs(c.xMax-c.xMin)/2*v,x=e.height/2-Math.abs(c.yMax-c.yMin)/2*v,m=0;m<s.length;m++){n.beginPath(),n.setLineWidth(o.borderWidth*e.pix),n.setStrokeStyle(o.borderColor),n.setFillStyle(f(t[m].color,o.fillOpacity)),e.tooltip&&e.tooltip.index==m&&(n.setStrokeStyle(o.activeBorderColor),n.setFillStyle(f(o.activeFillColor,o.activeFillOpacity)));for(var b=s[m].geometry.coordinates,_=0;_<b.length;_++){r=b[_],1==r.length&&(r=r[0]);for(var w=0;w<r.length;w++){var S=Array(2);S=o.mercator?h(r[w][0],r[w][1]):r[w],a=ne(S[1],S[0],c,v,y,x),0===w?(n.beginPath(),n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)}n.fill(),1==o.border&&n.stroke()}if(1==e.dataLabel){var k=s[m].properties.centroid;if(k){o.mercator&&(k=h(s[m].properties.centroid[0],s[m].properties.centroid[1])),a=ne(k[1],k[0],c,v,y,x);var T=s[m].textSize*e.pix||i.fontSize,C=s[m].properties.name;n.beginPath(),n.setFontSize(T),n.setFillStyle(s[m].textColor||e.fontColor),n.fillText(C,a.x-A(C,T,n)/2,a.y+T/2),n.closePath(),n.stroke()}}}e.chartData.mapData={bounds:c,scale:v,xoffset:y,yoffset:x,mercator:o.mercator},qt(e,i,n,1),n.draw()}function ce(t,e,i){var n=t.series;switch(e){case"normal":for(var r=0;r<n.length;r++){var a=n[r].name,o=n[r].textSize*t.pix,s=A(a,o,i),c=void 0,l=void 0,u=void 0,h=0;while(1){h++,c=te(-t.width/2,t.width/2,5)-s/2,l=te(-t.height/2,t.height/2,5)+o/2,u=[c-5+t.width/2,l-5-o+t.height/2,c+s+5+t.width/2,l+5+t.height/2];var f=ee(u,n,t.width,t.height);if(!f)break;if(1e3==h){u=[-100,-100,-100,-100];break}}n[r].area=u}break;case"vertical":for(var d=function(){return Math.random()>.7},p=0;p<n.length;p++){var g=n[p].name,v=n[p].textSize*t.pix,y=A(g,v,i),x=d(),m=void 0,b=void 0,_=void 0,w=void 0,S=0;while(1){S++;var k=void 0;if(x?(m=te(-t.width/2,t.width/2,5)-y/2,b=te(-t.height/2,t.height/2,5)+v/2,_=[b-5-y+t.width/2,-m-5+t.height/2,b+5+t.width/2,-m+v+5+t.height/2],w=[t.width-(t.width/2-t.height/2)-(-m+v+5+t.height/2)-5,t.height/2-t.width/2+(b-5-y+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+v+5+t.height/2)+v,t.height/2-t.width/2+(b-5-y+t.width/2)+y+5],k=ee(w,n,t.height,t.width)):(m=te(-t.width/2,t.width/2,5)-y/2,b=te(-t.height/2,t.height/2,5)+v/2,_=[m-5+t.width/2,b-5-v+t.height/2,m+y+5+t.width/2,b+5+t.height/2],k=ee(_,n,t.width,t.height)),!k)break;if(1e3==S){_=[-1e3,-1e3,-1e3,-1e3];break}}x?(n[p].area=w,n[p].areav=_):n[p].area=_,n[p].rotate=x}break}return n}function le(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=ce(e,a.type,n)),n.beginPath(),n.setFillStyle(e.background),n.rect(0,0,e.width,e.height),n.fill(),n.save();var o=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var s=0;s<o.length;s++){n.save(),o[s].rotate&&n.rotate(90*Math.PI/180);var c=o[s].name,u=o[s].textSize*e.pix,h=A(c,u,n);n.beginPath(),n.setStrokeStyle(o[s].color),n.setFillStyle(o[s].color),n.setFontSize(u),o[s].rotate?o[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(c,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+u-e.height/2)*r):n.fillText(c,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+u-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(c,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+u-e.height/2)*r):n.fillText(c,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+u-e.height/2)*r)),n.stroke(),n.restore()}n.restore()}function ue(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),o=(e.height-e.area[0]-e.area[2])/t.length,s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=a.activeWidth*e.pix,u=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);if(t=et(t,u,a.type,o,r),n.save(),n.translate(s.x,s.y),a.customColor=S(a.linearType,a.customColor,t,i),"pyramid"==a.type)for(var h=0;h<t.length;h++){if(h==t.length-1){e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(f(t[h].color,a.activeOpacity)),n.moveTo(-c,-o),n.lineTo(-t[h].radius-c,0),n.lineTo(t[h].radius+c,0),n.lineTo(c,-o),n.lineTo(-c,-o),n.closePath(),n.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);var d=f(t[h].color,a.fillOpacity);if("custom"==a.linearType){var p=n.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);p.addColorStop(0,f(t[h].color,a.fillOpacity)),p.addColorStop(.5,f(a.customColor[t[h].linearIndex],a.fillOpacity)),p.addColorStop(1,f(t[h].color,a.fillOpacity)),d=p}n.setFillStyle(d),n.moveTo(0,-o),n.lineTo(-t[h].radius,0),n.lineTo(t[h].radius,0),n.lineTo(0,-o),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(f(t[h].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[h].radius-c,0),n.lineTo(-t[h+1].radius-c,-o),n.lineTo(t[h+1].radius+c,-o),n.lineTo(t[h].radius+c,0),n.lineTo(0,0),n.closePath(),n.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);d=f(t[h].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);p.addColorStop(0,f(t[h].color,a.fillOpacity)),p.addColorStop(.5,f(a.customColor[t[h].linearIndex],a.fillOpacity)),p.addColorStop(1,f(t[h].color,a.fillOpacity)),d=p}n.setFillStyle(d),n.moveTo(0,0),n.lineTo(-t[h].radius,0),n.lineTo(-t[h+1].radius,-o),n.lineTo(t[h+1].radius,-o),n.lineTo(t[h].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,-o)}else for(var g=0;g<t.length;g++){if(0==g){e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(f(t[g].color,a.activeOpacity)),n.moveTo(-c,0),n.lineTo(-t[g].radius-c,-o),n.lineTo(t[g].radius+c,-o),n.lineTo(c,0),n.lineTo(-c,0),n.closePath(),n.fill()),t[g].funnelArea=[s.x-t[g].radius,s.y-o,s.x+t[g].radius,s.y],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);d=f(t[g].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[g].radius,-o,-t[g].radius,-o);p.addColorStop(0,f(t[g].color,a.fillOpacity)),p.addColorStop(.5,f(a.customColor[t[g].linearIndex],a.fillOpacity)),p.addColorStop(1,f(t[g].color,a.fillOpacity)),d=p}n.setFillStyle(d),n.moveTo(0,0),n.lineTo(-t[g].radius,-o),n.lineTo(t[g].radius,-o),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(f(t[g].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[g-1].radius-c,0),n.lineTo(-t[g].radius-c,-o),n.lineTo(t[g].radius+c,-o),n.lineTo(t[g-1].radius+c,0),n.lineTo(0,0),n.closePath(),n.fill()),t[g].funnelArea=[s.x-t[g].radius,s.y-o*(g+1),s.x+t[g].radius,s.y-o*g],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);d=f(t[g].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[g].radius,-o,-t[g].radius,-o);p.addColorStop(0,f(t[g].color,a.fillOpacity)),p.addColorStop(.5,f(a.customColor[t[g].linearIndex],a.fillOpacity)),p.addColorStop(1,f(t[g].color,a.fillOpacity)),d=p}n.setFillStyle(d),n.moveTo(0,0),n.lineTo(-t[g-1].radius,0),n.lineTo(-t[g].radius,-o),n.lineTo(t[g].radius,-o),n.lineTo(t[g-1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,-o)}return n.restore(),!1!==e.dataLabel&&1===r&&he(t,e,n,o,a.labelAlign,c,s),{center:s,radius:u,series:t}}function he(t,e,i,n,r,a,o){for(var s=0;s<t.length;s++){var c=t[s],l=void 0,h=void 0,f=void 0,d=void 0,p=c.formatter?c.formatter(c,s,t):u.toFixed(100*c._proportion_)+"%";"right"==r?(l="pyramid"===e.extra.funnel.type?s==t.length-1?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[s+1].funnelArea[2])/2:0==s?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[s-1].funnelArea[2])/2,h=l+2*a,f=c.funnelArea[1]+n/2,d=c.textSize*e.pix||e.fontSize*e.pix,i.setLineWidth(1*e.pix),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(l,f),i.lineTo(h,f),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,f),i.arc(h,f,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(d),i.setFillStyle(c.textColor||e.fontColor),i.fillText(p,h+5,f+d/2-2),i.closePath(),i.stroke(),i.closePath()):(l="pyramid"===e.extra.funnel.type?s==t.length-1?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[s+1].funnelArea[0])/2:0==s?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[s-1].funnelArea[0])/2,h=l-2*a,f=c.funnelArea[1]+n/2,d=c.textSize*e.pix||e.fontSize*e.pix,i.setLineWidth(1*e.pix),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(l,f),i.lineTo(h,f),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,f),i.arc(h,f,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(d),i.setFillStyle(c.textColor||e.fontColor),i.fillText(p,h-5-A(p,d,i),f+d/2-2),i.closePath(),i.stroke(),i.closePath())}}function fe(t,e){e.draw()}var de={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function pe(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=17;function i(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var n=i(),r=null,a=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===r&&(r=i),i-r<t.duration){var o=(i-r)/t.duration,s=de[t.timing];o=s(o),t.onProcess&&t.onProcess(o),n(a,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};a=a.bind(this),n(a,e)}function ge(t,e,i,n){var r=this,a=e.series;"pie"!==t&&"ring"!==t&&"rose"!==t&&"funnel"!==t||(a=_(a,e,i));var o=e.categories;a=w(a,e,i);var s=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var c=null;if("candle"==t){var u=l({},e.extra.candle.average);u.show?(c=p(u.day,u.name,u.color,a[0].data),c=w(c,e,i),e.seriesMA=c):c=e.seriesMA?e.seriesMA=w(e.seriesMA,e,i):a}else c=a;e._series_=a=E(a),e.area=new Array(4);for(var h=0;h<4;h++)e.area[h]=e.padding[h]*e.pix;var f=X(c,e,i,e.chartData,n),d=f.area.wholeHeight,g=f.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=d;break;case"bottom":e.area[2]+=d;break;case"left":e.area[3]+=g;break;case"right":e.area[1]+=g;break}var v={},y=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(v=mt(a,e,i,n),y=v.yAxisWidth,e.yAxis.showTitle){for(var x=0,m=0;m<e.yAxis.data.length;m++)x=Math.max(x,e.yAxis.data[m].titleFontSize?e.yAxis.data[m].titleFontSize*e.pix:i.fontSize);e.area[0]+=x}for(var b=0,S=0,k=0;k<y.length;k++)"left"==y[k].position?(e.area[3]+=S>0?y[k].width+e.yAxis.padding*e.pix:y[k].width,S+=1):"right"==y[k].position&&(e.area[1]+=b>0?y[k].width+e.yAxis.padding*e.pix:y[k].width,b+=1)}else i.yAxisWidth=y;if(e.chartData.yAxisData=v,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=ft(e.categories,e,i);var A=Y(e.categories,e,i,e.chartData.xAxisData.eachSpacing,n),T=A.xAxisHeight,C=A.angle;i.xAxisHeight=T,i._xAxisTextAngle_=C,e.area[2]+=T,e.chartData.categoriesData=A}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Z(a,e,i,n),o=e.chartData.xAxisData.rangesFormat;var P=Y(o,e,i,e.chartData.xAxisData.eachSpacing,n),D=P.xAxisHeight,O=P.angle;i.xAxisHeight=D,i._xAxisTextAngle_=O,e.area[2]+=D,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,M=e.chartData.xAxisData.xAxisPoints,F=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,$=e.chartData.xAxisData.eachSpacing,j=$*(M.length-1),R=I-F;L=R-j,r.scrollOption={currentOffset:L,startTouchX:L,distance:0,lastMoveTime:0},e._scrollDistance_=L}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:ot(c,i,n,e)),t){case"word":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),le(a,e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),se(a,e,i,n);break;case"funnel":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.funnelData=ue(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Ut(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Bt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Nt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Wt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=$t(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Ht(o,e,i,n);var r=jt(a,e,i,n,t),s=r.yAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.yAxisPoints=s,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=zt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.pieData=Xt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.pieData=Yt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.radarData=Qt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.arcbarData=Vt(a,e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.gaugeData=Zt(o,a,e,i,n,t),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Rt(a,c,e,i,n,t),s=r.xAxisPoints,l=r.calPoints,u=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=u,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(c||e.series,e,i,n,e.chartData),qt(e,i,n,t,u,s),fe(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function ve(){this.events={}}pe.prototype.stop=function(){this.isStop=!0},ve.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},ve.prototype.delEventListener=function(t){this.events[t]=[]},ve.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,r)}catch(e){}}))};var ye=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:c.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=l({},t.title),t.subtitle=l({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=l({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=l({},{rotateLabel:!1,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=l({},{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:t.fontColor,formatter:{},hiddenColor:"#CECECE"},t.legend),t.extra=l({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(c));if(e.color=t.color?t.color:e.color,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"ring"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.ring.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pix||e.pieChartLinePadding*t.pix),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pix,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:c.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,n=t.height;t.width=n,t.height=i}if(t.padding=t.padding?t.padding:e.padding,e.yAxisWidth=c.yAxisWidth*t.pix,e.xAxisHeight=c.xAxisHeight*t.pix,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pix),e.xAxisLineHeight=c.xAxisLineHeight*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=c.titleFontSize*t.pix,e.subtitleFontSize=c.subtitleFontSize*t.pix,e.toolTipPadding=c.toolTipPadding*t.pix,e.toolTipLineHeight=c.toolTipLineHeight*t.pix,e.columePadding=c.columePadding*t.pix,!t.context)throw new Error("[uCharts] \u672a\u83b7\u53d6\u5230context\uff01\u6ce8\u610f\uff1av2.0\u7248\u672c\u540e\uff0c\u9700\u8981\u81ea\u884c\u83b7\u53d6canvas\u7684\u7ed8\u56fe\u4e0a\u4e0b\u6587\u5e76\u4f20\u5165opts.context\uff01");this.context=t.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.setTextAlign=function(t){return this.textAlign=t},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new ve,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,ge.call(this,t.type,t,e,this.context)};ye.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=l({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=mt(this.opts.series,this.opts,this.config,this.context),n=i.yAxisWidth;this.config.yAxisWidth=n;var r=0,a=ft(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,s=a.startX,c=a.endX,u=a.eachSpacing,h=u*(o.length-1),f=c-s;r=f-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}ge.call(this,this.opts.type,this.opts,this.config,this.context)},ye.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var n=mt(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var a=0,o=ft(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,c=o.startX,l=o.endX,u=o.eachSpacing,h=u*i,f=l-c,d=f-u*(s.length-1);a=f/2-h,a>0&&(a=0),a<d&&(a=d),this.scrollOption={currentOffset:a,startTouchX:a,distance:0,lastMoveTime:0},this.opts._scrollDistance_=a,ge.call(this,this.opts.type,this.opts,this.config,this.context)}else t("log","[uCharts] \u8bf7\u542f\u7528\u6eda\u52a8\u6761\u540e\u4f7f\u7528"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6386")},ye.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},ye.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},ye.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},ye.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=P(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?G({x:i.x,y:i.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?H({x:i.x,y:i.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?N({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?U({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?q({x:i.x,y:i.y},this.opts):"word"===this.opts.type?W({x:i.x,y:i.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?j({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):$({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},ye.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=P(e,this.opts,t);return R({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},ye.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){P(i,this.opts,t);var n=this.getLegendDataIndex(t);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,ge.call(this,this.opts.type,this.opts,this.config,this.context))}},ye.prototype.showToolTip=function(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t("log","[uCharts] \u672a\u83b7\u53d6\u5230event\u5750\u6807\u4fe1\u606f"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6540");var a=P(r,this.opts,e),o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var h=D(this.opts.series,u,c.group);if(0!==h.length){var f=M(h,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.y=a.y,s.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){h=D(this.opts.series,u,c.group);if(0!==h.length){f=M(h,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.x=a.x,s.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1}),h=D(this.opts.series,u);if(0!==h.length){var g=F(h,this.opts,u,this.opts.categories,n);d=g.textList,p=g.offset;p.y=a.y,s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1}),h=D(this.opts.series,u);if(0!==h.length){f=I(this.opts.series[0].data,h,this.opts,u,this.opts.categories,this.opts.extra.candle,n),d=f.textList,p=f.offset;p.y=a.y,s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},s._series_[u]),d=[{text:n.formatter?n.formatter(h,void 0,u,s):h.name+": "+h.data,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}ge.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},this.opts.series[u]);h.name=h.properties.name;d=[{text:n.formatter?n.formatter(h,void 0,u,this.opts):h.name,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}s.updateData=!1,ge.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},this.opts.series[u]),d=[{text:n.formatter?n.formatter(h,void 0,u,this.opts):h.name,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}s.updateData=!1,ge.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=D(this.opts.series,u);if(0!==h.length){d=h.map((function(t){return{text:n.formatter?n.formatter(t,i.opts.categories[u],u,i.opts):t.name+": "+t.data,color:t.color}})),p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}},ye.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=l({},this.opts,{_scrollDistance_:t,animation:!1});ge.call(this,this.opts.type,e,this.config,this.context)},ye.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=P(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},ye.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,i=Date.now(),n=i-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var a,o=P(r,this.opts,t);a=o.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,c=g(this,s+a,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=a=c-s;var u=l({},this.opts,{_scrollDistance_:s+a,animation:!1});return this.opts=u,ge.call(this,u.type,u,this.config,this.context),s+a}}},ye.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,i=e.currentOffset,n=e.distance;this.scrollOption.currentOffset=i+n,this.scrollOption.distance=0}};var xe=ye;e.default=xe}).call(this,i("0de9")["default"])},b59e:function(t,e,i){"use strict";i.r(e);var n=i("8640"),r=i("3836");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6b39400e",null,!1,n["a"],o);e["default"]=c.exports},b657:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("83fc")),r=o(i("14af")),a=o(i("6502"));function o(t){return t&&t.__esModule?t:{default:t}}var s={en:n.default,"zh-Hans":r.default,"zh-Hant":a.default};e.default=s},b72d:function(t,e,i){"use strict";i.r(e);var n=i("a768"),r=i("1533");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},bbdd:function(t,e,i){var n=function(){return this||"object"===typeof self&&self}()||Function("return this")(),r=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=r&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=i("96cf"),r)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(o){n.regeneratorRuntime=void 0}},bc8f:function(t,e){t.exports="/static/g1.png"},c578:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._$s(0,"i",t.isShow)?i("view",{ref:"ani",class:t._$s(0,"c",t.customClass),style:t._$s(0,"s",t.transformStyles),attrs:{animation:t._$s(0,"a-animation",t.animationData),_i:0},on:{click:t.onClick}},[t._t("default",null,{_i:1})],2):t._e()},a=[]},c6b4:function(t,e,i){"use strict";i.r(e);var n=i("3fb3"),r=i("965e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},d44b:function(t,e,i){"use strict";i.r(e);var n=i("7120"),r=i("095e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},d868:function(t,e,i){"use strict";i.r(e);var n=i("a0a3"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},dbb8:function(t,e,i){"use strict";i("7ac3");var n=a(i("5a16")),r=a(i("8bbf"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r.default.config.productionTip=!1,n.default.mpType="app";var l=new r.default(s({},n.default));l.$mount()},de4d:function(t,e,i){"use strict";i.r(e);var n=i("ee93"),r=i("0d3e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"0f5ca878",null,!1,n["a"],o);e["default"]=c.exports},e06a:function(t,e){t.exports="/static/a1.png"},e204:function(t){t.exports=JSON.parse('{"localdata":[{"value":35,"text":"2016","group":"\u76ee\u6807\u503c"},{"value":18,"text":"2016","group":"\u5b8c\u6210\u91cf"},{"value":36,"text":"2017","group":"\u76ee\u6807\u503c"},{"value":27,"text":"2017","group":"\u5b8c\u6210\u91cf"},{"value":31,"text":"2018","group":"\u76ee\u6807\u503c"},{"value":21,"text":"2018","group":"\u5b8c\u6210\u91cf"},{"value":33,"text":"2019","group":"\u76ee\u6807\u503c"},{"value":24,"text":"2019","group":"\u5b8c\u6210\u91cf"},{"value":13,"text":"2020","group":"\u76ee\u6807\u503c"},{"value":6,"text":"2020","group":"\u5b8c\u6210\u91cf"},{"value":34,"text":"2021","group":"\u76ee\u6807\u503c"},{"value":28,"text":"2021","group":"\u5b8c\u6210\u91cf"}],"localdataB":[{"value":50,"text":"\u4e00\u73ed"},{"value":30,"text":"\u4e8c\u73ed"},{"value":20,"text":"\u4e09\u73ed"},{"value":18,"text":"\u56db\u73ed"},{"value":8,"text":"\u4e94\u73ed"}],"TLine":{"series":[{"name":"\u65f6\u95f4\u8f741","data":[[10000,55],[30000,25],[50000,55],[70000,25],[90000,55]]},{"name":"\u65f6\u95f4\u8f742","data":[[0,25],[20000,55],[40000,25],[60000,55],[80000,25]]},{"name":"\u65f6\u95f4\u8f743","data":[[0,55],[15000,25],[30000,55],[45000,25],[60000,55]]}]},"Scatter":{"series":[{"name":"\u6563\u70b9\u4e00","data":[[10,8.04],[8.07,6.95],[13,7.58],[9.05,8.81],[11,8.33],[14,7.66],[13.4,6.81],[10,6.33],[14,8.96],[12.5,6.82]]},{"name":"\u6563\u70b9\u4e8c","data":[[9.15,7.2],[11.5,7.2],[3.03,4.23],[12.2,7.83],[2.02,4.47],[1.05,3.33],[4.05,4.96],[6.03,7.24],[12,6.26],[12,8.84],[7.08,5.82],[5.02,5.68]]}]},"Bubble":{"series":[{"name":"\u6c14\u6ce1\u4e00","data":[[95,95,23,"\u6807\u98981"],[30,55,33,"\u6807\u98982"]]},{"name":"\u6c14\u6ce1\u4e8c","data":[[130,30,30,"\u6807\u98983"],[200,90,40,"\u6807\u98984"]]}]},"Column":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u76ee\u6807\u503c","data":[35,36,31,33,13,34]},{"name":"\u5b8c\u6210\u91cf","data":[18,27,21,24,6,28]}]},"ColumnA":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[15,{"value":20,"color":"#f04864"},45,37,43,34]},{"name":"\u6210\u4ea4\u91cf2","data":[30,{"value":40,"color":"#facc14"},25,14,34,18]}]},"Mix":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u66f2\u9762","data":[70,50,85,130,64,88],"type":"area","style":"curve"},{"name":"\u67f11","index":1,"data":[40,{"value":30,"color":"#f04864"},55,110,24,58],"type":"column"},{"name":"\u67f12","index":1,"data":[50,20,75,60,34,38],"type":"column"},{"name":"\u66f2\u7ebf","data":[70,50,85,130,64,88],"type":"line","style":"curve","color":"#1890ff","disableLegend":true},{"name":"\u6298\u7ebf","data":[120,140,105,170,95,160],"type":"line","color":"#2fc25b"},{"name":"\u70b9","index":2,"data":[100,80,125,150,112,132],"type":"point","color":"#f04864"}]},"Line":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u6210\u4ea4\u91cfA","data":[35,8,25,37,4,20]},{"name":"\u6210\u4ea4\u91cfB","data":[70,40,65,100,44,68]}]},"Pie":{"series":[{"name":"\u4e00\u73ed","data":50},{"name":"\u4e8c\u73ed","data":30},{"name":"\u4e09\u73ed","data":20},{"name":"\u56db\u73ed","data":18},{"name":"\u4e94\u73ed","data":8}]},"PieA":{"series":[{"data":[{"name":"\u5728\u5e93","value":314},{"name":"\u7a7a","value":1175},{"name":"\u7981\u7528","value":96}]}]},"Radar":{"categories":["\u7ef4\u5ea61","\u7ef4\u5ea62","\u7ef4\u5ea63","\u7ef4\u5ea64","\u7ef4\u5ea65","\u7ef4\u5ea66"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[90,110,165,195,187,172]},{"name":"\u6210\u4ea4\u91cf2","data":[190,210,105,35,27,102]}]},"Arcbar1":{"series":[{"name":"\u6b63\u786e\u7387","data":0.8,"color":"#2fc25b"}]},"Arcbar2":{"series":[{"name":"\u4e00\u73ed","data":0.8},{"name":"\u4e8c\u73ed","data":0.6},{"name":"\u4e09\u73ed","data":0.45},{"name":"\u56db\u73ed","data":0.3},{"name":"\u4e94\u73ed","data":0.15}]},"Gauge":{"categories":[{"value":0.2,"color":"#1890ff"},{"value":0.8,"color":"#2fc25b"},{"value":1,"color":"#f04864"}],"series":[{"name":"\u5b8c\u6210\u7387","data":0.66}]},"Candle":{"categories":["2020/1/24","2020/1/25","2020/1/28","2020/1/29","2020/1/30","2020/1/31","2020/2/1","2020/2/4","2020/2/5","2020/2/6","2020/2/7","2020/2/8","2020/2/18","2020/2/19","2020/2/20","2020/2/21","2020/2/22","2020/2/25","2020/2/26","2020/2/27","2020/2/28","2020/3/1","2020/3/4","2020/3/5","2020/3/6","2020/3/7","2020/3/8","2020/3/11","2020/3/12","2020/3/13","2020/3/14","2020/3/15","2020/3/18","2020/3/19","2020/3/20","2020/3/21","2020/3/22","2020/3/25","2020/3/26","2020/3/27","2020/3/28","2020/3/29","2020/4/1","2020/4/2","2020/4/3","2020/4/8","2020/4/9","2020/4/10","2020/4/11","2020/4/12","2020/4/15","2020/4/16","2020/4/17","2020/4/18","2020/4/19","2020/4/22","2020/4/23","2020/4/24","2020/4/25","2020/4/26","2020/5/2","2020/5/3","2020/5/6","2020/5/7","2020/5/8","2020/5/9","2020/5/10","2020/5/13","2020/5/14","2020/5/15","2020/5/16","2020/5/17","2020/5/20","2020/5/21","2020/5/22","2020/5/23","2020/5/24","2020/5/27","2020/5/28","2020/5/29","2020/5/30","2020/5/31","2020/6/3","2020/6/4","2020/6/5","2020/6/6","2020/6/7","2020/6/13"],"series":[{"name":"\u4e0a\u8bc1\u6307\u6570","data":[[2320.26,2302.6,2287.3,2362.94],[2300,2291.3,2288.26,2308.38],[2295.35,2346.5,2295.35,2346.92],[2347.22,2358.98,2337.35,2363.8],[2360.75,2382.48,2347.89,2383.76],[2383.43,2385.42,2371.23,2391.82],[2377.41,2419.02,2369.57,2421.15],[2425.92,2428.15,2417.58,2440.38],[2411,2433.13,2403.3,2437.42],[2432.68,2434.48,2427.7,2441.73],[2430.69,2418.53,2394.22,2433.89],[2416.62,2432.4,2414.4,2443.03],[2441.91,2421.56,2415.43,2444.8],[2420.26,2382.91,2373.53,2427.07],[2383.49,2397.18,2370.61,2397.94],[2378.82,2325.95,2309.17,2378.82],[2322.94,2314.16,2308.76,2330.88],[2320.62,2325.82,2315.01,2338.78],[2313.74,2293.34,2289.89,2340.71],[2297.77,2313.22,2292.03,2324.63],[2322.32,2365.59,2308.92,2366.16],[2364.54,2359.51,2330.86,2369.65],[2332.08,2273.4,2259.25,2333.54],[2274.81,2326.31,2270.1,2328.14],[2333.61,2347.18,2321.6,2351.44],[2340.44,2324.29,2304.27,2352.02],[2326.42,2318.61,2314.59,2333.67],[2314.68,2310.59,2296.58,2320.96],[2309.16,2286.6,2264.83,2333.29],[2282.17,2263.97,2253.25,2286.33],[2255.77,2270.28,2253.31,2276.22],[2269.31,2278.4,2250,2312.08],[2267.29,2240.02,2239.21,2276.05],[2244.26,2257.43,2232.02,2261.31],[2257.74,2317.37,2257.42,2317.86],[2318.21,2324.24,2311.6,2330.81],[2321.4,2328.28,2314.97,2332],[2334.74,2326.72,2319.91,2344.89],[2318.58,2297.67,2281.12,2319.99],[2299.38,2301.26,2289,2323.48],[2273.55,2236.3,2232.91,2273.55],[2238.49,2236.62,2228.81,2246.87],[2229.46,2234.4,2227.31,2243.95],[2234.9,2227.74,2220.44,2253.42],[2232.69,2225.29,2217.25,2241.34],[2196.24,2211.59,2180.67,2212.59],[2215.47,2225.77,2215.47,2234.73],[2224.93,2226.13,2212.56,2233.04],[2236.98,2219.55,2217.26,2242.48],[2218.09,2206.78,2204.44,2226.26],[2199.91,2181.94,2177.39,2204.99],[2169.63,2194.85,2165.78,2196.43],[2195.03,2193.8,2178.47,2197.51],[2181.82,2197.6,2175.44,2206.03],[2201.12,2244.64,2200.58,2250.11],[2236.4,2242.17,2232.26,2245.12],[2242.62,2184.54,2182.81,2242.62],[2187.35,2218.32,2184.11,2226.12],[2213.19,2199.31,2191.85,2224.63],[2203.89,2177.91,2173.86,2210.58],[2170.78,2174.12,2161.14,2179.65],[2179.05,2205.5,2179.05,2222.81],[2212.5,2231.17,2212.5,2236.07],[2227.86,2235.57,2219.44,2240.26],[2242.39,2246.3,2235.42,2255.21],[2246.96,2232.97,2221.38,2247.86],[2228.82,2246.83,2225.81,2247.67],[2247.68,2241.92,2231.36,2250.85],[2238.9,2217.01,2205.87,2239.93],[2217.09,2224.8,2213.58,2225.19],[2221.34,2251.81,2210.77,2252.87],[2249.81,2282.87,2248.41,2288.09],[2286.33,2299.99,2281.9,2309.39],[2297.11,2305.11,2290.12,2305.3],[2303.75,2302.4,2292.43,2314.18],[2293.81,2275.67,2274.1,2304.95],[2281.45,2288.53,2270.25,2292.59],[2286.66,2293.08,2283.94,2301.7],[2293.4,2321.32,2281.47,2322.1],[2323.54,2324.02,2321.17,2334.33],[2316.25,2317.75,2310.49,2325.72],[2320.74,2300.59,2299.37,2325.53],[2300.21,2299.25,2294.11,2313.43],[2297.1,2272.42,2264.76,2297.1],[2270.71,2270.93,2260.87,2276.86],[2264.43,2242.11,2240.07,2266.69],[2242.26,2210.9,2205.07,2250.63],[2190.1,2148.35,2126.22,2190.1]]}]},"CandleColumn":{"categories":["2020/1/24","2020/1/25","2020/1/28","2020/1/29","2020/1/30","2020/1/31","2020/2/1","2020/2/4","2020/2/5","2020/2/6","2020/2/7","2020/2/8","2020/2/18","2020/2/19","2020/2/20","2020/2/21","2020/2/22","2020/2/25","2020/2/26","2020/2/27","2020/2/28","2020/3/1","2020/3/4","2020/3/5","2020/3/6","2020/3/7","2020/3/8","2020/3/11","2020/3/12","2020/3/13","2020/3/14","2020/3/15","2020/3/18","2020/3/19","2020/3/20","2020/3/21","2020/3/22","2020/3/25","2020/3/26","2020/3/27","2020/3/28","2020/3/29","2020/4/1","2020/4/2","2020/4/3","2020/4/8","2020/4/9","2020/4/10","2020/4/11","2020/4/12","2020/4/15","2020/4/16","2020/4/17","2020/4/18","2020/4/19","2020/4/22","2020/4/23","2020/4/24","2020/4/25","2020/4/26","2020/5/2","2020/5/3","2020/5/6","2020/5/7","2020/5/8","2020/5/9","2020/5/10","2020/5/13","2020/5/14","2020/5/15","2020/5/16","2020/5/17","2020/5/20","2020/5/21","2020/5/22","2020/5/23","2020/5/24","2020/5/27","2020/5/28","2020/5/29","2020/5/30","2020/5/31","2020/6/3","2020/6/4","2020/6/5","2020/6/6","2020/6/7","2020/6/13"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45]}]},"Word":{"series":[{"name":"\u8de8\u5168\u7aef\u56fe\u8868","textSize":25},{"name":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u652f\u4ed8\u5b9d\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u767e\u5ea6\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"QQ\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u5934\u6761\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u6296\u97f3\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"360\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12}]}}')},e3e8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading3",data:function(){return{}}};e.default=n},e891:function(t,e,i){"use strict";i.r(e);var n=i("681b"),r=i("2c81");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"04ed0f7c",null,!1,n["a"],o);e["default"]=c.exports},ee93:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading1"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},f0c5:function(t,e,i){"use strict";function n(t,e,i,n,r,a,o,s,c,l){var u,h="function"===typeof t?t.options:t;if(c){h.components||(h.components={});var f=Object.prototype.hasOwnProperty;for(var d in c)f.call(c,d)&&!f.call(h.components,d)&&(h.components[d]=c[d])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(h.mixins||(h.mixins=[])).push(l)),e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),a&&(h._scopeId="data-v-"+a),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(h.functional){h._injectStyles=u;var p=h.render;h.render=function(t,e){return u.call(e),p(t,e)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,u):[u]}return{exports:t,options:h}}i.d(e,"a",(function(){return n}))},f27d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var i in t){0==i&&(e+=t[i].axisValueLabel+"\u5e74\u9500\u552e\u989d");var n="--";null!==t[i].data&&(n=t[i].data),e+="<br/>"+t[i].marker+t[i].seriesName+"\uff1a"+n+" \u4e07\u5143"}return e},legendFormat:function(t){return"\u81ea\u5b9a\u4e49\u56fe\u4f8b+"+t},yAxisFormatDemo:function(t,e){return t+"\u5143"},seriesFormatDemo:function(t){return t.name+"\u5e74"+t.value+"\u5143"}},demotype:{color:n},column:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{top:"left",textStyle:{color:"#cccccc"}},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!1,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!1,color:"#666666",position:"top"}}},area:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left",textStyle:{color:"#cccccc"}},seriesTemplate:{name:"",type:"pie",data:[],radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!1,color:"#FFF",position:"top"},labelLine:{show:!0}}},rose:{color:n,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:n,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:n,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"\u4e1a\u52a1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5b8c\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:n,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},a=r;e.default=a},f2a4:function(t,e){t.exports="/static/barcode.png"},fe07:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=Dt,e.Component=Pt,e.Page=Tt,e.nextTick=e.default=void 0;var n,r=a(i("8bbf"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return f(t)||h(t,e)||l(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"===typeof t)return u(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function h(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function f(t){if(Array.isArray(t))return t}function d(t,e){t&&(e.mpOptions.data=t)}function p(e){e.components=t.__wxVueOptions.components}var g=Object.prototype.toString,v=Object.prototype.hasOwnProperty;function y(t){return"function"===typeof t}function x(t){return"[object Object]"===g.call(t)}function m(t,e){return v.call(t,e)}function b(){}function _(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var w=/-(\w)/g,S=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),k="__data__",A={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},T=Object.keys(A),C={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},P=Object.keys(C),D=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function O(t,e){var i=Object.create(null);Object.keys(t).forEach((function(e){var n=t[e];y(n)&&-1===D.indexOf(e)&&(i[e]=n)})),e.methods=i}function L(t,e){Object.keys(t).forEach((function(i){-1!==D.indexOf(i)&&(e[i]=t[i])}))}function M(t){var e={mixins:[],mpOptions:{}};return p(e),d(t.data,e),O(t,e),L(t,e),e}function F(t,e){t&&(e.mpOptions.properties=t)}function I(t,e){t&&(e.mpOptions.options=t)}function E(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function $(t,e){T.forEach((function(i){m(t,i)&&(e[A[i]]||(e[A[i]]=[])).push(t[i])}))}var j={"wx://form-field":{},"wx://component-export":{}};function R(t){var e=t.behaviors,i=t.definitionFilter,n=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?j[e]:e,e.definitionFilter&&(n.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),y(i))return function(t){i(t,n)}}function z(t,e){R(t)}function B(t){var e=t.data,i=t.methods,n=t.behaviors,r=t.properties,a={watch:{},mpOptions:{mpObservers:[]}};return d(e,a),E(i,a),U(n,a),F(r,a),$(t,a),z(t),a}var N={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;m(e,"name")||(e.name={type:String}),m(e,"value")||(e.value={type:String})}}};function U(t,e){t&&t.forEach((function(t){"string"===typeof t?N[t]&&e.mixins.push(N[t]):e.mixins.push(B(t))}))}function W(t){return t.split(".")}function q(t){return t.split(",").map((function(t){return W(t)}))}function H(t,e){if(t){var i=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){i.push({paths:q(e),observer:t[e]})}))}}function G(t,e){0===e.indexOf("/")&&(t="");var i=t.split("/"),n=e.split("/");i.pop();while(n.length){var r=n.shift();""!==r&&"."!==r&&(".."!==r?i.push(r):i.pop())}return i.join("/")}function K(e,i){e&&(Object.keys(e).forEach((function(i){var n=e[i];n.name=i,n.target=n.target?String(n.target):G(t.__wxRoute,i)})),i.mpOptions.relations=e)}function J(t,e){t&&(Array.isArray(t)||(t=[t]),e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null)),t.forEach((function(t){e.mpOptions.properties[S(t)]={type:String,value:""}})))}function X(t,e){t&&$(t,e)}function Y(t,e){t&&P.forEach((function(i){var n=t[i];y(n)&&(e[C[i]]=n)}))}function V(t){var e=t.data,i=t.options,n=t.methods,r=t.behaviors,a=t.lifetimes,o=t.observers,s=t.relations,c=t.properties,l=t.pageLifetimes,u=t.externalClasses,h={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return p(h),d(e,h),I(i,h),E(n,h),U(r,h),X(a,h),H(o,h),K(s,h),F(c,h),Y(l,h),J(u,h),$(t,h),z(t),h}function Z(t,e,i,n){if(e){var r="_$".concat(t,"Handlers");(n[r]||(n[r]=[])).push((function(){e.call(n,i)}))}}function Q(t,e,i){var n="linked",r=t.name,a=i._$relationNodes||(i._$relationNodes=Object.create(null));(a[r]||(a[r]=[])).push(e),Z(n,t[n],e,i)}function tt(t,e,i){var n="unlinked";Z(n,t[n],e,i)}function et(t,e,i){var n=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!n)return[];var r=Object.keys(n).find((function(t){var r=n[t];return r.target===e&&r.type===i}));return r?[n[r],t]:[]}function it(t,e,i){var n=i(t,t.$options.mpOptions.path),r=s(n,2),a=r[0],o=r[1];a&&(Q(a,t,o),Q(e,o,t),tt(a,t,o),tt(e,o,t))}function nt(t,e){var i=t.type;"parent"===i?it(e,t,(function(t,e){return et(t.$parent,e,"child")})):"ancestor"===i&&it(e,t,(function(t,e){var i=t.$parent;while(i){var n=et(i,e,"descendant");if(n.length)return n;i=i.$parent}return[]}))}function rt(t){var e=t.$options.mpOptions||{},i=e.relations;i&&Object.keys(i).forEach((function(e){nt(i[e],t)}))}function at(t,e){var i=t["_$".concat(e,"Handlers")];i&&i.forEach((function(t){return t()}))}var ot={enumerable:!0,configurable:!0,get:b,set:b};function st(t,e,i){ot.get=function(){return this[e][i]},ot.set=function(t){this[e][i]=t},Object.defineProperty(t,i,ot)}function ct(t,e,i){var n=t.replace(/\[(\d+?)\]/g,".$1").split(".");return n.reduce((function(t,i,r){if(r!==n.length-1)return"undefined"===typeof t[i]&&(t[i]={}),t[i];t[i]=e}),i),1===n.length}function lt(t,e){var i=this;x(t)&&(Object.keys(t).forEach((function(e){ct(e,t[e],i.data)&&!m(i,e)&&st(i,k,e)})),this.$forceUpdate(),y(e)&&this.$nextTick(e))}var ut=Object.prototype.toString,ht=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=ut.call(i);if("[object Array]"===n)return e=i.slice(0),e;if("[object Object]"===n){for(var r in i)e[r]=t(e[r],i[r]);return e}if("[object Date]"===n)return new Date(i.getTime());if("[object RegExp]"===n){var a=String(i),o=a.lastIndexOf("/");return new RegExp(a.slice(1,o),a.slice(o+1))}return i},ft=function(t){return ht("[object Array]"===ut.call(t)?[]:{},t)},dt=(n={},o(n,String,""),o(n,Number,0),o(n,Boolean,!1),o(n,Object,null),o(n,Array,[]),o(n,null,null),n);function pt(t){return dt[t]}function gt(t){return x(t)?m(t,"value")?t.value:pt(t.type):pt(t)}function vt(t){return x(t)?t.type:t}function yt(t,e,i,n){var r=i[t];if(void 0!==r){var a=e[t],o=vt(a);r=xt(r,o);var s=a&&a.observer;return s&&setTimeout((function(){mt(s,n,r)}),4),r}return gt(e[t])}function xt(t,e){return e===Boolean?!!t:e===String?String(t):t}function mt(t,e,i,n){try{"function"===typeof t?t.call(e,i,n):"string"===typeof t&&"function"===typeof e[t]&&e[t](i,n)}catch(r){console.error("execute observer ".concat(t," callback fail! err: ").concat(r))}}function bt(t,e){var i=t.$options.mpOptions.properties;if(i){var n=ft(t.$options.propsData)||{},r=function(r){var a=!!x(i[r])&&i[r].observer,o=yt(r,i,n,t);Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){var i=o;e===o||e!==e&&o!==o||(o=Array.isArray(e)?e.slice(0):e,a&&mt(a,t,e,i),t.$forceUpdate())}})};for(var a in i)r(a)}}function _t(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,i=t.$options.propsData;i&&e&&Object.keys(e).forEach((function(n){m(i,n)&&(t[n]=xt(i[n],vt(e[n])))}))}function wt(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t[k]=e;var i={get:function(){return t[k]},set:function(e){t[k]=e}};Object.defineProperties(t,{data:i,properties:i}),t.setData=lt,bt(t,e),Object.keys(e).forEach((function(e){st(t,k,e)}))}function St(t){var e=t.$emit;t.triggerEvent=function(i,n,r){var a={dataset:t.$el.dataset},o={target:a,currentTarget:a,detail:n,preventDefault:b,stopPropagation:b};e.call(t,i,o)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=_t}function kt(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(i){var n=e[i];if(n.mounted){var r=t[i],a=n.handler;"string"===typeof a&&(a=t[a]),a&&a.call(t,r,r)}}))}var At={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=b},created:function(){wt(this),St(this),rt(this)},mounted:function(){kt(this)},destroyed:function(){at(this,"unlinked")}};function Tt(e){var i=M(e);i.mixins.unshift(At),i.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=i}function Ct(t){t.onServiceAttached||(t.onServiceAttached=[]),t.onServiceAttached.push((function(){at(this,"linked")}))}function Pt(e){var i=V(e);i.mixins.unshift(At),i.mpOptions.path=t.__wxRoute,Ct(i),t.__wxComponents[t.__wxRoute]=i}function Dt(t){return t}t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var Ot=r.default.nextTick;e.nextTick=Ot;var Lt=uni.__$wx__,Mt=Lt;e.default=Mt}).call(this,i("c8ba"))}},[["dbb8","app-config"]]]);
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"00bf":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("322f")),r=i("37dc"),a=o(i("b657"));function o(t){return t&&t.__esModule?t:{default:t}}var s=(0,r.initVueI18n)(a.default),c=s.t,l={name:"uniPopupDialog",mixins:[n.default],emits:["confirm","close"],props:{value:{type:[String,Number],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""}},data:function(){return{dialogType:"error",focus:!1,val:""}},computed:{okText:function(){return this.confirmText||c("uni-popup.ok")},closeText:function(){return this.cancelText||c("uni-popup.cancel")},placeholderText:function(){return this.placeholder||c("uni-popup.placeholder")},titleText:function(){return this.title||c("uni-popup.title")}},watch:{type:function(t){this.dialogType=t},mode:function(t){"input"===t&&(this.dialogType="info")},value:function(t){this.val=t}},created:function(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value):this.dialogType=this.type},mounted:function(){this.focus=!0},methods:{onOk:function(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog:function(){this.$emit("close"),this.beforeClose||this.popup.close()},close:function(){this.popup.close()}}};e.default=l},"01cc":function(t,e,i){"use strict";i.r(e);var n=i("765e"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"095e":function(t,e,i){"use strict";i.r(e);var n=i("a2d5"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"0d3e":function(t,e,i){"use strict";i.r(e);var n=i("5cb4"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"0de9":function(t,e,i){"use strict";function n(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function a(t,e){switch(n(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];console[t].apply(console,i)}function s(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var o=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,a)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var i=n(t).toUpperCase();t="NUMBER"===i||"BOOLEAN"===i?"---BEGIN:"+i+"---"+t+"---END:"+i+"---":String(t)}return t})),c="";if(s.length>1){var l=s.pop();c=s.join("---COMMA---"),0===l.indexOf(" at ")?c+=l:c+="---COMMA---"+l}else c=s[0];console[o](c)}i.r(e),i.d(e,"log",(function(){return o})),i.d(e,"default",(function(){return s}))},"0e5f":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading5"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},1233:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={qiunLoading:i("973e").default,qiunError:i("b72d").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","chartsview"),attrs:{id:t._$s(0,"a-id","ChartBoxId"+t.cid),_i:0}},[t._$s(1,"i",t.mixinDatacomLoading)?i("view",[i("qiun-loading",{attrs:{loadingType:t.loadingType,_i:2}})],1):t._e(),t._$s(3,"i",t.mixinDatacomErrorMessage&&t.errorShow)?i("view",{attrs:{_i:3},on:{click:t.reloading}},[i("qiun-error",{attrs:{errorMessage:t.errorMessage,_i:4}})],1):t._e(),t._$s(5,"i",t.echarts)?[i("view",{directives:[{name:"show",rawName:"v-show",value:t._$s(6,"v-show",t.showchart),expression:"_$s(6,'v-show',showchart)"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},style:t._$s(6,"s",{background:t.background}),attrs:{"data-directory":t._$s(6,"a-data-directory",t.directory),id:t._$s(6,"a-id","EC"+t.cid),prop:t._$s(6,"change:echartsOpts",t.echartsOpts),resize:t._$s(6,"change:echartsResize",t.echartsResize),_i:6}})]:[i("view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:t._$s(8,"a-id","UC"+t.cid),prop:t._$s(8,"change:uchartsOpts",t.uchartsOpts),_i:8},on:{}},[i("canvas",{directives:[{name:"show",rawName:"v-show",value:t._$s(9,"v-show",t.showchart),expression:"_$s(9,'v-show',showchart)"}],style:t._$s(9,"s",{width:t.cWidth+"px",height:t.cHeight+"px",background:t.background}),attrs:{id:t._$s(9,"a-id",t.cid),canvasId:t._$s(9,"a-canvasId",t.cid),"disable-scroll":t._$s(9,"a-disable-scroll",t.disableScroll),_i:9},on:{error:t._error}})])]],2)},a=[]},"136b":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading6"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"14af":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"\u53d6\u6d88","uni-popup.ok":"\u786e\u5b9a","uni-popup.placeholder":"\u8bf7\u8f93\u5165","uni-popup.title":"\u63d0\u793a","uni-popup.shareTitle":"\u5206\u4eab\u5230"}')},1533:function(t,e,i){"use strict";i.r(e);var n=i("306c"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"2b52":function(t,e,i){"use strict";i.r(e);var n=i("1233"),r=i("3ecb");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"67b7668b",null,!1,n["a"],o);e["default"]=c.exports},"2c81":function(t,e,i){"use strict";i.r(e);var n=i("aa9b"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"306c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"qiun-error",props:{errorMessage:{type:String,default:null}},data:function(){return{}}};e.default=n},"322f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{}},created:function(){this.popup=this.getParent()},methods:{getParent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniPopup",e=this.$parent,i=e.$options.name;while(i!==t){if(e=e.$parent,!e)return!1;i=e.$options.name}return e}}};e.default=n},3563:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;n(i("e204"));function n(t){return t&&t.__esModule?t:{default:t}}var r={data:function(){return{show:!0,modeClass:"fade",styles:{},baseUrl:"10.10.0.200",baseLedId:"",basePort:"",value:"",xDistance:0,yDistance:0,xDuration:0,yDuration:0,used:317,usedPr:90,stockCount:0,emptyCount:0,noneCount:0,chartsData:{Line:{categories:[],series:[]},Pie:{series:[{data:[]}]}},chartsDataLine1:{},chartsDataPie2:{},ringOpts:{},year:2022,month:4,day:14,hours:13,minutes:38,seconds:13,week:"\u661f\u671f\u56db",ani:"",move:!0,topMove:"topUp",floorMove:"",version:"",newspaper:"",title:"",staNo:"",errorShow:"",pakinShow:""}},mounted:function(){var t=this,e=uni.getStorageSync("BaseUrl"),i=uni.getStorageSync("BaseLedId"),n=uni.getStorageSync("BasePort");e&&i?(t.baseUrl=e,t.baseLedId=i,t.basePort=n):(t.baseUrl="",t.baseLedId="")},onReady:function(){var t=this;setTimeout((function(){}),0),setTimeout((function(){}),1e3),setInterval((function(){t.getDate(),t.getPakin(),t.getError(),t.animation()}),1500)},onLoad:function(){},methods:{getError:function(){var t=this;uni.request({url:"http://"+t.baseUrl+":"+t.basePort+"/jkwcs/monitor/led/error",data:{ledId:t.baseLedId},method:"GET",success:function(e){var i=e.data;i.data?(t.title="",t.staNo="",t.errorShow=!0,t.newspaper=i.data,t.move=!1):t.errorShow=!1}})},getPakin:function(){var e=this;uni.request({url:"http://"+e.baseUrl+":"+e.basePort+"/jkwcs/monitor/led",data:{ledId:e.baseLedId},method:"GET",success:function(i){t("log",i," at pages/index/index.vue:337");var n="",r="",a=i.data;if(a.data[0].matDtos){a.data[0].matDtos.length<=8&&(e.pakinShow=!0),101===a.data[0].ioType?e.title="\u5168\u677f\u51fa\u5e93":103===a.data[0].ioType&&(e.title="\u68c0\u6599\u51fa\u5e93"),e.staNo="\u76ee\u6807\u7ad9"+a.data[0].staNo;for(var o=0;o<a.data[0].matDtos.length;o++)r=a.data[0].matDtos[o].matnr+" - "+a.data[0].matDtos[o].batch+"\n",n+=r;if(e.errorShow)return;e.newspaper=n,e.move=!1}else e.move=!0}})},animation:function(){this.move?(this.topMove="topUp",this.floorMove="floorUp"):(this.topMove="topDown",this.floorMove="floorDown")},getDateFormat:function(t){var e=new Date;e.setDate(e.getDate()+t);var i=e.getMonth()+1,n=e.getDate(),r=i+"-"+n;return r},initlineChart:function(){var t=this;uni.request({url:"http://10.10.0.222:9090/jswcs/monitor/line/charts",method:"GET",success:function(e){var i=e.data;200===i.code&&(t.chartsData.Line.categories=[t.getDateFormat(-11),t.getDateFormat(-10),t.getDateFormat(-9),t.getDateFormat(-8),t.getDateFormat(-7),t.getDateFormat(-6),t.getDateFormat(-5),t.getDateFormat(-4),t.getDateFormat(-3),t.getDateFormat(-2),t.getDateFormat(-1),t.getDateFormat(0)],t.chartsData.Line.series=i.data.rows)}})},initPieChart:function(){var t=this;uni.request({url:"http://10.10.0.222:9090/jswcs/monitor/loc/rep",method:"GET",success:function(e){var i=e.data;200===i.code&&(t.chartsData.Pie.series[0].data=i.data.pie,t.stockCount=i.data.stockCount,t.emptyCount=i.data.emptyCount,t.noneCount=i.data.noneCount,t.used=i.data.used,t.usedPr=i.data.usedPr)}})},getOther:function(){var e=this;uni.request({url:"http://"+e.baseUrl+":9090/jswcs/monitor/other",data:{crnId:1,ledId:this.baseLedId},success:function(i){var n=i.data;200===n.code?(e.xDistance=n.data.xDistance,e.yDistance=n.data.yDistance,e.xDuration=n.data.xDuration,e.yDuration=n.data.yDuration,t("log",n," at pages/index/index.vue:434")):n.code}})},port:function(){this.$refs.port.open()},url:function(){this.$refs.url.open()},ledId:function(){this.$refs.ledId.open()},baseUrlConfirm:function(t){this.baseUrl=t,uni.setStorageSync("BaseUrl",this.baseUrl)},ledIdConfirm:function(t){this.baseLedId=t,uni.setStorageSync("BaseLedId",this.baseLedId)},portConfirm:function(t){this.basePort=t,uni.setStorageSync("BasePort",this.basePort)},getServerData:function(){this.chartsDataLine1=JSON.parse(JSON.stringify(this.chartsData.Line)),this.chartsDataPie2=JSON.parse(JSON.stringify(this.chartsData.Pie))},complete:function(e){t("log","\u6e32\u67d3\u5b8c\u6210\u4e8b\u4ef6",e," at pages/index/index.vue:469")},getDate:function(){var t=new Date;switch(this.year=t.getFullYear(),this.month=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,this.day=t.getDate()<10?"0"+t.getDate():t.getDate(),this.hours=t.getHours()<10?"0"+t.getHours():t.getHours(),this.minutes=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),this.seconds=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),this.weeks=t.getDay(),this.weeks){case 0:this.week="\u661f\u671f\u65e5";break;case 1:this.week="\u661f\u671f\u4e00";break;case 2:this.week="\u661f\u671f\u4e8c";break;case 3:this.week="\u661f\u671f\u4e09";break;case 4:this.week="\u661f\u671f\u56db";break;case 5:this.week="\u661f\u671f\u4e94";break;default:this.week="\u661f\u671f\u516d"}}}};e.default=r}).call(this,i("0de9")["default"])},"366d":function(t,e,i){"use strict";i.r(e);var n=i("80e0"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"37dc":function(t,e,i){"use strict";(function(t){function i(t,e){return s(t)||o(t,e)||r(t,e)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function s(t){if(Array.isArray(t))return t}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.compileI18nJsonStr=R,e.hasI18nJson=$,e.initVueI18n=F,e.isI18nStr=z,e.normalizeLocale=D,e.parseI18nJson=j,e.resolveLocale=q,e.isString=e.LOCALE_ZH_HANT=e.LOCALE_ZH_HANS=e.LOCALE_FR=e.LOCALE_ES=e.LOCALE_EN=e.I18n=e.Formatter=void 0;var h=Array.isArray,d=function(t){return null!==t&&"object"===typeof t},f=["{","}"],p=function(){function t(){c(this,t),this._caches=Object.create(null)}return u(t,[{key:"interpolate",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(!e)return[t];var n=this._caches[t];return n||(n=x(t,i),this._caches[t]=n),y(n,e)}}]),t}();e.Formatter=p;var g=/^(?:\d)+/,v=/^(?:\w)+/;function x(t,e){var n=i(e,2),r=n[0],a=n[1],o=[],s=0,c="";while(s<t.length){var l=t[s++];if(l===r){c&&o.push({type:"text",value:c}),c="";var u="";l=t[s++];while(void 0!==l&&l!==a)u+=l,l=t[s++];var h=l===a,d=g.test(u)?"list":h&&v.test(u)?"named":"unknown";o.push({value:u,type:d})}else c+=l}return c&&o.push({type:"text",value:c}),o}function y(t,e){var i=[],n=0,r=h(e)?"list":d(e)?"named":"unknown";if("unknown"===r)return i;while(n<t.length){var a=t[n];switch(a.type){case"text":i.push(a.value);break;case"list":i.push(e[parseInt(a.value,10)]);break;case"named":"named"===r&&i.push(e[a.value]);break;case"unknown":0;break}n++}return i}var m="zh-Hans";e.LOCALE_ZH_HANS=m;var b="zh-Hant";e.LOCALE_ZH_HANT=b;var _="en";e.LOCALE_EN=_;var w="fr";e.LOCALE_FR=w;var S="es";e.LOCALE_ES=S;var k=Object.prototype.hasOwnProperty,A=function(t,e){return k.call(t,e)},T=new p;function C(t,e){return!!e.find((function(e){return-1!==t.indexOf(e)}))}function P(t,e){return e.find((function(e){return 0===t.indexOf(e)}))}function D(t,e){if(t){if(t=t.trim().replace(/_/g,"-"),e&&e[t])return t;if(t=t.toLowerCase(),0===t.indexOf("zh"))return t.indexOf("-hans")>-1?m:t.indexOf("-hant")>-1||C(t,["-tw","-hk","-mo","-cht"])?b:m;var i=P(t,[_,w,S]);return i||void 0}}var O=function(){function t(e){var i=e.locale,n=e.fallbackLocale,r=e.messages,a=e.watcher,o=e.formater;c(this,t),this.locale=_,this.fallbackLocale=_,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=o||T,this.messages=r||{},this.setLocale(i||_),a&&this.watchLocale(a)}return u(t,[{key:"setLocale",value:function(t){var e=this,i=this.locale;this.locale=D(t,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],i!==this.locale&&this.watchers.forEach((function(t){t(e.locale,i)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(t){var e=this,i=this.watchers.push(t)-1;return function(){e.watchers.splice(i,1)}}},{key:"add",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[t];n?i?Object.assign(n,e):Object.keys(e).forEach((function(t){A(n,t)||(n[t]=e[t])})):this.messages[t]=e}},{key:"f",value:function(t,e,i){return this.formater.interpolate(t,e,i).join("")}},{key:"t",value:function(t,e,i){var n=this.message;return"string"===typeof e?(e=D(e,this.messages),e&&(n=this.messages[e])):i=e,A(n,t)?this.formater.interpolate(n[t],i).join(""):(console.warn("Cannot translate the value of keypath ".concat(t,". Use the value of keypath as default.")),t)}}]),t}();function L(t,e){t.$watchLocale?t.$watchLocale((function(t){e.setLocale(t)})):t.$watch((function(){return t.$locale}),(function(t){e.setLocale(t)}))}function M(){return"undefined"!==typeof uni&&uni.getLocale?uni.getLocale():"undefined"!==typeof t&&t.getLocale?t.getLocale():_}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof t){var r=[e,t];t=r[0],e=r[1]}"string"!==typeof t&&(t=M()),"string"!==typeof i&&(i="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||_);var a=new O({locale:t,fallbackLocale:i,messages:e,watcher:n}),o=function(t,e){if("function"!==typeof getApp)o=function(t,e){return a.t(t,e)};else{var i=!1;o=function(t,e){var n=getApp().$vm;return n&&(n.$locale,i||(i=!0,L(n,a))),a.t(t,e)}}return o(t,e)};return{i18n:a,f:function(t,e,i){return a.f(t,e,i)},t:function(t,e){return o(t,e)},add:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(t,e,i)},watch:function(t){return a.watchLocale(t)},getLocale:function(){return a.getLocale()},setLocale:function(t){return a.setLocale(t)}}}e.I18n=O;var I,E=function(t){return"string"===typeof t};function $(t,e){return I||(I=new p),W(t,(function(t,i){var n=t[i];return E(n)?!!z(n,e)||void 0:$(n,e)}))}function j(t,e,i){return I||(I=new p),W(t,(function(t,n){var r=t[n];E(r)?z(r,i)&&(t[n]=N(r,e,i)):j(r,e,i)})),t}function R(t,e){var i=e.locale,n=e.locales,r=e.delimiters;if(!z(t,r))return t;I||(I=new p);var a=[];Object.keys(n).forEach((function(t){t!==i&&a.push({locale:t,values:n[t]})})),a.unshift({locale:i,values:n[i]});try{return JSON.stringify(U(JSON.parse(t),a,r),null,2)}catch(o){}return t}function z(t,e){return t.indexOf(e[0])>-1}function N(t,e,i){return I.interpolate(t,e,i).join("")}function B(t,e,i,n){var r=t[e];if(E(r)){if(z(r,n)&&(t[e]=N(r,i[0].values,n),i.length>1)){var a=t[e+"Locales"]={};i.forEach((function(t){a[t.locale]=N(r,t.values,n)}))}}else U(r,i,n)}function U(t,e,i){return W(t,(function(t,n){B(t,n,e,i)})),t}function W(t,e){if(h(t)){for(var i=0;i<t.length;i++)if(e(t,i))return!0}else if(d(t))for(var n in t)if(e(t,n))return!0;return!1}function q(t){return function(e){return e?(e=D(e)||e,H(e).find((function(e){return t.indexOf(e)>-1}))):e}}function H(t){var e=[],i=t.split("-");while(i.length)e.push(i.join("-")),i.pop();return e}e.isString=E}).call(this,i("c8ba"))},3836:function(t,e,i){"use strict";i.r(e);var n=i("e3e8"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"3ecb":function(t,e,i){"use strict";i.r(e);var n=i("a207"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"400e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var i=new Date;i.setTime(1e3*t);var n=i.getFullYear(),r=i.getMonth()+1;r=r<10?"0"+r:r;var a=i.getDate();a=a<10?"0"+a:a;var o=i.getHours();o=o<10?"0"+o:o;var s=i.getMinutes(),c=i.getSeconds();return s=s<10?"0"+s:s,c=c<10?"0"+c:c,"full"==e?n+"-"+r+"-"+a+" "+o+":"+s+":"+c:"y-m-d"==e?n+"-"+r+"-"+a:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+c:[n,r,a,o,s,c]},a={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["\u997c\u72b6\u56fe","\u5706\u73af\u56fe","\u73ab\u7470\u56fe","\u8bcd\u4e91\u56fe","\u6f0f\u6597\u56fe","\u5730\u56fe","\u5706\u5f27\u8fdb\u5ea6\u6761","\u6298\u7ebf\u56fe","\u67f1\u72b6\u56fe","\u6761\u72b6\u56fe","\u533a\u57df\u56fe","\u96f7\u8fbe\u56fe","\u4eea\u8868\u76d8","K\u7ebf\u56fe","\u6df7\u5408\u56fe","\u65f6\u95f4\u8f74\u6298\u7ebf","\u65f6\u95f4\u8f74\u533a\u57df","\u6563\u70b9\u56fe","\u6c14\u6ce1\u56fe","\u81ea\u5b9a\u4e49\u7c7b\u578b"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"\u5143"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"\u5e74"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"\u5143"},tooltipDemo1:function(t,e,i,n){return 0==i?"\u968f\u4fbf\u7528"+t.data+"\u5e74":"\u5176\u4ed6\u6211\u6ca1\u6539"+t.data+"\u5929"},pieDemo:function(t,e,i){if(void 0!==e)return i[e].name+"\uff1a"+i[e].data+"\u5143"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"\u6536\u76ca\u7387",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"\u767e\u5206\u6bd4",fontSize:25,color:"#00FF00"},subtitle:{name:"\u9ed8\u8ba4\u6807\u9898",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"\u5b9e\u65f6\u901f\u5ea6",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},o=a;e.default=o},"43dd":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","uni-popup-dialog"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","uni-dialog-title"),attrs:{_i:1}},[i("text",{staticClass:t._$s(2,"sc","uni-dialog-title-text"),class:t._$s(2,"c",["uni-popup__"+t.dialogType]),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.titleText)))])]),t._$s(3,"i","base"===t.mode)?i("view",{staticClass:t._$s(3,"sc","uni-dialog-content"),attrs:{_i:3}},[t._t("default",[i("text",{staticClass:t._$s(5,"sc","uni-dialog-content-text"),attrs:{_i:5}},[t._v(t._$s(5,"t0-0",t._s(t.content)))])],{_i:4})],2):i("view",{staticClass:t._$s(6,"sc","uni-dialog-content"),attrs:{_i:6}},[t._t("default",[i("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],staticClass:t._$s(8,"sc","uni-dialog-input"),attrs:{placeholder:t._$s(8,"a-placeholder",t.placeholderText),focus:t._$s(8,"a-focus",t.focus),_i:8},domProps:{value:t._$s(8,"v-model",t.val)},on:{input:function(e){e.target.composing||(t.val=e.target.value)}}})],{_i:7})],2),i("view",{staticClass:t._$s(9,"sc","uni-dialog-button-group"),attrs:{_i:9}},[i("view",{staticClass:t._$s(10,"sc","uni-dialog-button"),attrs:{_i:10},on:{click:t.closeDialog}},[i("text",{staticClass:t._$s(11,"sc","uni-dialog-button-text"),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.closeText)))])]),i("view",{staticClass:t._$s(12,"sc","uni-dialog-button uni-border-left"),attrs:{_i:12},on:{click:t.onOk}},[i("text",{staticClass:t._$s(13,"sc","uni-dialog-button-text uni-button-color"),attrs:{_i:13}},[t._v(t._$s(13,"t0-0",t._s(t.okText)))])])])])},a=[]},"460c":function(t,e){t.exports="/static/c1.png"},"53ae":function(t,e,i){"use strict";i.r(e);var n=i("136b"),r=i("01cc");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"21f077a2",null,!1,n["a"],o);e["default"]=c.exports},5493:function(t,e,i){"use strict";function n(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function r(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?n(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimation=f;var l=function(){function t(e,i){o(this,t),this.options=e,this.animation=uni.createAnimation(e),this.currentStepAnimates={},this.next=0,this.$=i}return c(t,[{key:"_nvuePushAnimates",value:function(t,e){var i=this.currentStepAnimates[this.next],n={};if(n=i||{styles:{},config:{}},u.includes(t)){n.styles.transform||(n.styles.transform="");var r="";"rotate"===t&&(r="deg"),n.styles.transform+="".concat(t,"(").concat(e+r,") ")}else n.styles[t]="".concat(e);this.currentStepAnimates[this.next]=n}},{key:"_animateRun",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.$.$refs["ani"].ref;if(i)return new Promise((function(n,a){nvueAnimation.transition(i,r({styles:t},e),(function(t){n()}))}))}},{key:"_nvueNextAnimate",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=t[i];if(r){var a=r.styles,o=r.config;this._animateRun(a,o).then((function(){i+=1,e._nvueNextAnimate(t,i,n)}))}else this.currentStepAnimates={},"function"===typeof n&&n(),this.isEnd=!0}},{key:"step",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(t),this}},{key:"run",value:function(t){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof t&&t()}),this.$.durationTime)}}]),t}(),u=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],h=["opacity","backgroundColor"],d=["width","height","left","right","top","bottom"];function f(t,e){if(e)return clearTimeout(e.timer),new l(t,e)}u.concat(h,d).forEach((function(t){l.prototype[t]=function(){var e;return(e=this.animation)[t].apply(e,arguments),this}}))},"591b":function(t,e,i){"use strict";i.r(e);var n=i("0e5f"),r=i("6fe6");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"33929875",null,!1,n["a"],o);e["default"]=c.exports},"5a16":function(t,e,i){"use strict";i.r(e);var n=i("366d");for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var a,o,s,c,l=i("f0c5"),u=Object(l["a"])(n["default"],a,o,!1,null,null,null,!1,s,c);e["default"]=u.exports},"5cb4":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading1",data:function(){return{}}};e.default=n},6502:function(t){t.exports=JSON.parse('{"uni-popup.cancel":"\u53d6\u6d88","uni-popup.ok":"\u78ba\u5b9a","uni-popup.placeholder":"\u8acb\u8f38\u5165","uni-popup.title":"\u63d0\u793a","uni-popup.shareTitle":"\u5206\u4eab\u5230"}')},"681b":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading2"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"6fe6":function(t,e,i){"use strict";i.r(e);var n=i("9d2f"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},7120:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uniTransition:i("9e6c").default},r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._$s(0,"i",t.showPopup)?i("view",{staticClass:t._$s(0,"sc","uni-popup"),class:t._$s(0,"c",[t.popupstyle,t.isDesktop?"fixforpc-z-index":""]),attrs:{_i:0},on:{touchmove:function(e){return e.stopPropagation(),e.preventDefault(),t.clear(e)}}},[i("view",{attrs:{_i:1},on:{touchstart:t.touchstart}},[t._$s(2,"i",t.maskShow)?i("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:t.maskClass,duration:t.duration,show:t.showTrans,_i:2},on:{click:t.onTap}}):t._e(),i("uni-transition",{key:"2",attrs:{"mode-class":t.ani,name:"content",styles:t.transClass,duration:t.duration,show:t.showTrans,_i:3},on:{click:t.onTap}},[i("view",{staticClass:t._$s(4,"sc","uni-popup__wrapper"),class:t._$s(4,"c",[t.popupstyle]),style:t._$s(4,"s",{backgroundColor:t.bg}),attrs:{_i:4},on:{click:t.clear}},[t._t("default",null,{_i:5})],2)])],1)]):t._e()},a=[]},"765e":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading6",data:function(){return{}}};e.default=n},"7ac3":function(t,e,i){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(i){return e.resolve(t()).then((function(){return i}))}),(function(i){return e.resolve(t()).then((function(){throw i}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(i("c6b4").default)}))},"80e0":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={onLaunch:function(){t("log","App Launch"," at App.vue:4")},onShow:function(){t("log","App Show"," at App.vue:7")},onHide:function(){t("log","App Hide"," at App.vue:10")}};e.default=i}).call(this,i("0de9")["default"])},8215:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",[t._$s(1,"i",1==t.loadingType)?i("Loading1",{attrs:{_i:1}}):t._e(),t._$s(2,"i",2==t.loadingType)?i("Loading2",{attrs:{_i:2}}):t._e(),t._$s(3,"i",3==t.loadingType)?i("Loading3",{attrs:{_i:3}}):t._e(),t._$s(4,"i",4==t.loadingType)?i("Loading4",{attrs:{_i:4}}):t._e(),t._$s(5,"i",5==t.loadingType)?i("Loading5",{attrs:{_i:5}}):t._e()],1)},a=[]},"83fc":function(t){t.exports=JSON.parse('{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"}')},"848c":function(t,e,i){"use strict";i.r(e);var n=i("43dd"),r=i("857d");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},"855c":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(i("de4d")),r=c(i("e891")),a=c(i("b59e")),o=c(i("591b")),s=c(i("53ae"));function c(t){return t&&t.__esModule?t:{default:t}}var l={components:{Loading1:n.default,Loading2:r.default,Loading3:a.default,Loading4:o.default,Loading5:s.default},name:"qiun-loading",props:{loadingType:{type:Number,default:2}},data:function(){return{}}};e.default=l},"857d":function(t,e,i){"use strict";i.r(e);var n=i("00bf"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},8640:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading3"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},"86ed":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={appid:"__UNI__CA903B7"};e.default=n},"8bbf":function(t,e){t.exports=Vue},"8c8a":function(t,e){t.exports="/static/e1.png"},"92cb":function(t,e){t.exports="/static/b1.png"},"965e":function(t,e,i){"use strict";i.r(e);var n=i("3563"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"96cf":function(t,e){!function(e){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"===typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{u=e.regeneratorRuntime=l?t.exports:{},u.wrap=b;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={},v={};v[o]=function(){return this};var x=Object.getPrototypeOf,y=x&&x(x(M([])));y&&y!==n&&r.call(y,o)&&(v=y);var m=k.prototype=w.prototype=Object.create(v);S.prototype=m.constructor=k,k.constructor=S,k[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},u.awrap=function(t){return{__await:t}},A(T.prototype),T.prototype[s]=function(){return this},u.AsyncIterator=T,u.async=function(t,e,i,n){var r=new T(b(t,e,i,n));return u.isGeneratorFunction(e)?r:r.next().then((function(t){return t.done?t.value:r.next()}))},A(m),m[c]="Generator",m[o]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){while(e.length){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},u.values=M,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=i),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),O(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;O(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=i),g}}}function b(t,e,i,n){var r=e&&e.prototype instanceof w?e:w,a=Object.create(r.prototype),o=new L(n||[]);return a._invoke=C(t,i,o),a}function _(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(n){return{type:"throw",arg:n}}}function w(){}function S(){}function k(){}function A(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){function e(i,n,a,o){var s=_(t[i],t,n);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,a,o)}),(function(t){e("throw",t,a,o)})):Promise.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return e("throw",t,a,o)}))}o(s.arg)}var i;function n(t,n){function r(){return new Promise((function(i,r){e(t,n,i,r)}))}return i=i?i.then(r,r):r()}this._invoke=n}function C(t,e,i){var n=h;return function(r,a){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===r)throw a;return F()}i.method=r,i.arg=a;while(1){var o=i.delegate;if(o){var s=P(o,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===h)throw n=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=f;var c=_(t,e,i);if("normal"===c.type){if(n=i.done?p:d,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n=p,i.method="throw",i.arg=c.arg)}}}function P(t,e){var n=t.iterator[e.method];if(n===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=i,P(t,e),"throw"===e.method))return g;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=_(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,g;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=i),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function M(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){while(++n<t.length)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=i,e.done=!0,e};return a.next=a}}return{next:F}}function F(){return{value:i,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},"973e":function(t,e,i){"use strict";i.r(e);var n=i("8215"),r=i("aafe");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},"97a1":function(t,e){t.exports="/static/f1.png"},"9d2f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading5",data:function(){return{}}};e.default=n},"9e6c":function(t,e,i){"use strict";i.r(e);var n=i("c578"),r=i("d868");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},a0a3:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("5493");function r(t){return c(t)||s(t)||o(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"===typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t){if(Array.isArray(t))return l(t)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function u(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u(Object(i),!0).forEach((function(e){d(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function d(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var f={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(t){t?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var t=h(h({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),e="";for(var i in t){var n=this.toLine(i);e+=n+":"+t[i]+";"}return e},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.duration&&(this.durationTime=t.duration),this.animation=(0,n.createAnimation)(Object.assign(this.config,t),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in e)try{var a;if("object"===typeof e[n])(a=this.animation)[n].apply(a,r(e[n]));else this.animation[n](e[n])}catch(o){t("error","\u65b9\u6cd5 ".concat(n," \u4e0d\u5b58\u5728")," at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:139")}return this.animation.step(i),this}},run:function(t){this.animation&&this.animation.run(t)},open:function(){var t=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var e=this.styleInit(!1),i=e.opacity,r=e.transform;"undefined"!==typeof i&&(this.opacity=i),this.transform=r,this.$nextTick((function(){t.timer=setTimeout((function(){t.animation=(0,n.createAnimation)(t.config,t),t.tranfromInit(!1).step(),t.animation.run(),t.$emit("change",{detail:t.isShow})}),20)}))},close:function(t){var e=this;this.animation&&this.tranfromInit(!0).step().run((function(){e.isShow=!1,e.animationData=null,e.animation=null;var t=e.styleInit(!1),i=t.opacity,n=t.transform;e.opacity=i||1,e.transform=n,e.$emit("change",{detail:e.isShow})}))},styleInit:function(t){var e=this,i={transform:""},n=function(t,n){"fade"===n?i.opacity=e.animationType(t)[n]:i.transform+=e.animationType(t)[n]+" "};return"string"===typeof this.modeClass?n(t,this.modeClass):this.modeClass.forEach((function(e){n(t,e)})),i},tranfromInit:function(t){var e=this,i=function(t,i){var n=null;"fade"===i?n=t?0:1:(n=t?"-100%":"0","zoom-in"===i&&(n=t?.8:1),"zoom-out"===i&&(n=t?1.2:1),"slide-right"===i&&(n=t?"100%":"0"),"slide-bottom"===i&&(n=t?"100%":"0")),e.animation[e.animationMode()[i]](n)};return"string"===typeof this.modeClass?i(t,this.modeClass):this.modeClass.forEach((function(e){i(t,e)})),this.animation},animationType:function(t){return{fade:t?1:0,"slide-top":"translateY(".concat(t?"0":"-100%",")"),"slide-right":"translateX(".concat(t?"0":"100%",")"),"slide-bottom":"translateY(".concat(t?"0":"100%",")"),"slide-left":"translateX(".concat(t?"0":"-100%",")"),"zoom-in":"scaleX(".concat(t?1:.8,") scaleY(").concat(t?1:.8,")"),"zoom-out":"scaleX(".concat(t?1:1.2,") scaleY(").concat(t?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};e.default=f}).call(this,i("0de9")["default"])},a207:function(t,e,i){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(i("b3df"));var r=o(i("400e")),a=o(i("f27d"));function o(t){return t&&t.__esModule?t:{default:t}}function s(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];for(var r in i)for(var a in i[r])i[r].hasOwnProperty(a)&&(t[a]=i[r][a]&&"object"===typeof i[r][a]?s(Array.isArray(i[r][a])?[]:{},t[a],i[r][a]):i[r][a]);return t}function c(t,e){for(var i in t)null!==t[i]&&"object"===typeof t[i]?c(t[i],e):"format"===i&&"string"===typeof t[i]&&(t["formatter"]=e[t[i]]?e[t[i]]:void 0);return t}function l(t){var e="-",i=t.getFullYear(),n=t.getMonth()+1,r=t.getDate();n>=1&&n<=9&&(n="0"+n),r>=0&&r<=9&&(r="0"+r);var a=i+e+n+e+r;return a}var u={name:"qiun-data-charts",mixins:[t.mixinDatacom],props:{type:{type:String,default:null},canvasId:{type:String,default:"uchartsid"},canvas2d:{type:Boolean,default:!1},background:{type:String,default:"rgba(0,0,0,0)"},animation:{type:Boolean,default:!0},chartData:{type:Object,default:function(){return{categories:[],series:[]}}},opts:{type:Object,default:function(){return{}}},eopts:{type:Object,default:function(){return{}}},loadingType:{type:Number,default:2},errorShow:{type:Boolean,default:!0},errorReload:{type:Boolean,default:!0},errorMessage:{type:String,default:null},inScrollView:{type:Boolean,default:!1},reshow:{type:Boolean,default:!1},reload:{type:Boolean,default:!1},disableScroll:{type:Boolean,default:!1},ontap:{type:Boolean,default:!0},ontouch:{type:Boolean,default:!1},onmouse:{type:Boolean,default:!0},onmovetip:{type:Boolean,default:!1},echartsH5:{type:Boolean,default:!1},echartsApp:{type:Boolean,default:!1},tooltipShow:{type:Boolean,default:!0},tooltipFormat:{type:String,default:void 0},tooltipCustom:{type:Object,default:void 0},startDate:{type:String,default:void 0},endDate:{type:String,default:void 0},textEnum:{type:Array,default:function(){return[]}},groupEnum:{type:Array,default:function(){return[]}},pageScrollTop:{type:Number,default:0},directory:{type:String,default:"/"},tapLegend:{type:Boolean,default:!0},menus:{type:Array,default:function(){return[]}}},data:function(){return{cid:"uchartsid",inWx:!1,inAli:!1,inTt:!1,inBd:!1,inH5:!1,inApp:!1,inWin:!1,type2d:!0,disScroll:!1,openmouse:!1,pixel:1,cWidth:375,cHeight:250,showchart:!1,echarts:!1,echartsResize:!1,uchartsOpts:{},echartsOpts:{},drawData:{},lastDrawTime:null}},created:function(){if(this.cid=this.canvasId,"uchartsid"==this.canvasId||""==this.canvasId){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",e=t.length,i="",n=0;n<32;n++)i+=t.charAt(Math.floor(Math.random()*e));this.cid=i}var r=uni.getSystemInfoSync();"windows"!==r.platform&&"mac"!==r.platform||(this.inWin=!0),this.type2d=!1,this.disScroll=this.disableScroll},mounted:function(){var t=this;this.inApp=!0,!0===this.echartsApp&&(this.echarts=!0,this.openmouse=!1),this.$nextTick((function(){t.beforeInit()}))},destroyed:function(){!0===this.echarts?(delete a.default.option[this.cid],delete a.default.instance[this.cid]):(delete r.default.option[this.cid],delete r.default.instance[this.cid]),uni.offWindowResize((function(){}))},watch:{chartDataProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&(t.series&&t.series.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null)):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1achartData\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},localdata:{handler:function(t,e){JSON.stringify(t)!==JSON.stringify(e)&&(t.length>0?this.beforeInit():(this.mixinDatacomLoading=!0,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage=null))},immediate:!1,deep:!0},optsProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!1===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this._clearChart(),this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aopts\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},eoptsProps:{handler:function(t,e){"object"===typeof t?JSON.stringify(t)!==JSON.stringify(e)&&!0===this.echarts&&this.checkData(this.drawData):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aeopts\u6570\u636e\u7c7b\u578b\u9519\u8bef")},immediate:!1,deep:!0},reshow:function(t,e){var i=this;!0===t&&!1===this.mixinDatacomLoading&&setTimeout((function(){i.mixinDatacomErrorMessage=null,i.echartsResize=!i.echartsResize,i.checkData(i.drawData)}),200)},reload:function(t,e){!0===t&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())},mixinDatacomErrorMessage:function(t,e){t&&(this.emitMsg({name:"error",params:{type:"error",errorShow:this.errorShow,msg:t,id:this.cid}}),this.errorShow&&n("log","[\u79cb\u4e91\u56fe\u8868\u7ec4\u4ef6]"+t," at uni_modules/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue:600"))},errorMessage:function(t,e){t&&this.errorShow&&null!==t&&"null"!==t&&""!==t?(this.showchart=!1,this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=t):(this.showchart=!1,this.mixinDatacomErrorMessage=null,this.reloading())}},computed:{optsProps:function(){return JSON.parse(JSON.stringify(this.opts))},eoptsProps:function(){return JSON.parse(JSON.stringify(this.eopts))},chartDataProps:function(){return JSON.parse(JSON.stringify(this.chartData))}},methods:{beforeInit:function(){this.mixinDatacomErrorMessage=null,"object"===typeof this.chartData&&null!=this.chartData&&void 0!==this.chartData.series&&this.chartData.series.length>0?(this.drawData=s({},this.chartData),this.mixinDatacomLoading=!1,this.showchart=!0,this.checkData(this.chartData)):this.localdata.length>0?(this.mixinDatacomLoading=!1,this.showchart=!0,this.localdataInit(this.localdata)):""!==this.collection?(this.mixinDatacomLoading=!1,this.getCloudData()):this.mixinDatacomLoading=!0},localdataInit:function(t){if(this.groupEnum.length>0)for(var e=0;e<t.length;e++)for(var i=0;i<this.groupEnum.length;i++)t[e].group===this.groupEnum[i].value&&(t[e].group=this.groupEnum[i].text);if(this.textEnum.length>0)for(var n=0;n<t.length;n++)for(var o=0;o<this.textEnum.length;o++)t[n].text===this.textEnum[o].value&&(t[n].text=this.textEnum[o].text);var c=!1,u={categories:[],series:[]},h=[],d=[];if(c=!0===this.echarts?a.default.categories.includes(this.type):r.default.categories.includes(this.type),!0===c){if(this.chartData&&this.chartData.categories&&this.chartData.categories.length>0)h=this.chartData.categories;else if(this.startDate&&this.endDate){var f=new Date(this.startDate),p=new Date(this.endDate);while(f<=p)h.push(l(f)),f=f.setDate(f.getDate()+1),f=new Date(f)}else{var g={};t.map((function(t,e){void 0==t.text||g[t.text]||(h.push(t.text),g[t.text]=!0)}))}u.categories=h}var v={};if(t.map((function(t,e){void 0==t.group||v[t.group]||(d.push({name:t.group,data:[]}),v[t.group]=!0)})),0==d.length)if(d=[{name:"\u9ed8\u8ba4\u5206\u7ec4",data:[]}],!0===c)for(var x=0;x<h.length;x++){for(var y=0,m=0;m<t.length;m++)t[m].text==h[x]&&(y=t[m].value);d[0].data.push(y)}else for(var b=0;b<t.length;b++)d[0].data.push({name:t[b].text,value:t[b].value});else for(var _=0;_<d.length;_++)if(h.length>0)for(var w=0;w<h.length;w++){for(var S=0,k=0;k<t.length;k++)d[_].name==t[k].group&&t[k].text==h[w]&&(S=t[k].value);d[_].data.push(S)}else for(var A=0;A<t.length;A++)d[_].name==t[A].group&&d[_].data.push(t[A].value);u.series=d,this.drawData=s({},u),this.checkData(u)},reloading:function(){!1!==this.errorReload&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,""!==this.collection?(this.mixinDatacomLoading=!1,this.onMixinDatacomPropsChange(!0)):this.beforeInit())},checkData:function(t){var e=this,i=this.cid;!0===this.echarts?(a.default.option[i]=s({},this.eopts),a.default.option[i].id=i,a.default.option[i].type=this.type):this.type&&r.default.type.includes(this.type)?(r.default.option[i]=s({},r.default[this.type],this.opts),r.default.option[i].canvasId=i):(this.mixinDatacomLoading=!1,this.showchart=!1,this.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1aprops\u53c2\u6570\u4e2dtype\u7c7b\u578b\u4e0d\u6b63\u786e");var n=s({},t);void 0!==n.series&&n.series.length>0&&(this.mixinDatacomErrorMessage=null,!0===this.echarts?(a.default.option[i].chartData=n,this.$nextTick((function(){e.init()}))):(r.default.option[i].categories=n.categories,r.default.option[i].series=n.series,this.$nextTick((function(){e.init()}))))},resizeHandler:function(){var t=this,e=Date.now(),i=this.lastDrawTime?this.lastDrawTime:e-3e3,n=e-i;if(!(n<1e3))uni.createSelectorQuery().in(this).select("#ChartBoxId"+this.cid).boundingClientRect((function(e){t.showchart=!0,e.width>0&&e.height>0&&(e.width===t.cWidth&&e.height===t.cHeight||t.checkData(t.drawData))})).exec()},getCloudData:function(){var t=this;1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((function(e){t.mixinDatacomResData=e.result.data,t.localdataInit(t.mixinDatacomResData)})).catch((function(e){t.mixinDatacomLoading=!1,t.showchart=!1,t.mixinDatacomErrorMessage="\u8bf7\u6c42\u9519\u8bef\uff1a"+e})))},onMixinDatacomPropsChange:function(t,e){1==t&&""!==this.collection&&(this.showchart=!1,this.mixinDatacomErrorMessage=null,this._clearChart(),this.getCloudData())},_clearChart:function(){var t=this.cid;if(!0!==this.echrts){var e=uni.createCanvasContext(t,this);e.clearRect(0,0,this.cWidth,this.cHeight),e.draw()}},init:function(){var t=this,e=this.cid;uni.createSelectorQuery().in(this).select("#ChartBoxId"+e).boundingClientRect((function(i){i.width>0&&i.height>0?(t.mixinDatacomLoading=!1,t.showchart=!0,t.lastDrawTime=Date.now(),t.cWidth=i.width,t.cHeight=i.height,!0!==t.echarts&&(r.default.option[e].background="rgba(0,0,0,0)"==t.background?"#FFFFFF":t.background,r.default.option[e].canvas2d=t.type2d,r.default.option[e].pixelRatio=t.pixel,r.default.option[e].animation=t.animation,r.default.option[e].width=i.width*t.pixel,r.default.option[e].height=i.height*t.pixel,r.default.option[e].ontap=t.ontap,r.default.option[e].ontouch=t.ontouch,r.default.option[e].onmouse=t.openmouse,r.default.option[e].onmovetip=t.onmovetip,r.default.option[e].tooltipShow=t.tooltipShow,r.default.option[e].tooltipFormat=t.tooltipFormat,r.default.option[e].tooltipCustom=t.tooltipCustom,r.default.option[e].inScrollView=t.inScrollView,r.default.option[e].lastDrawTime=t.lastDrawTime,r.default.option[e].tapLegend=t.tapLegend),t.inH5||t.inApp?1==t.echarts?(a.default.option[e].ontap=t.ontap,a.default.option[e].onmouse=t.openmouse,a.default.option[e].tooltipShow=t.tooltipShow,a.default.option[e].tooltipFormat=t.tooltipFormat,a.default.option[e].tooltipCustom=t.tooltipCustom,a.default.option[e].lastDrawTime=t.lastDrawTime,t.echartsOpts=s({},a.default.option[e])):(r.default.option[e].rotateLock=r.default.option[e].rotate,t.uchartsOpts=s({},r.default.option[e])):(r.default.option[e]=c(r.default.option[e],r.default.formatter),t.mixinDatacomErrorMessage=null,t.mixinDatacomLoading=!1,t.showchart=!0,t.$nextTick((function(){if(!0===t.type2d){var n=uni.createSelectorQuery().in(t);n.select("#"+e).fields({node:!0,size:!0}).exec((function(n){if(n[0]){var a=n[0].node,o=a.getContext("2d");r.default.option[e].context=o,a.width=i.width*t.pixel,a.height=i.height*t.pixel,a._width=i.width*t.pixel,a._height=i.height*t.pixel,r.default.option[e].rotateLock=r.default.option[e].rotate,r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100)}else t.showchart=!1,t.mixinDatacomErrorMessage="\u53c2\u6570\u9519\u8bef\uff1a\u5f00\u542f2d\u6a21\u5f0f\u540e\uff0c\u672a\u83b7\u53d6\u5230dom\u8282\u70b9\uff0ccanvas-id:"+e}))}else t.inAli&&(r.default.option[e].rotateLock=r.default.option[e].rotate),r.default.option[e].context=uni.createCanvasContext(e,t),r.default.instance[e]&&r.default.option[e]&&!0===r.default.option[e].update?t._updataUChart(e):setTimeout((function(){r.default.option[e].context.restore(),r.default.option[e].context.save(),t._newChart(e)}),100)})))):(t.mixinDatacomLoading=!1,t.showchart=!1,1==t.reshow&&(t.mixinDatacomErrorMessage="\u5e03\u5c40\u9519\u8bef\uff1a\u672a\u83b7\u53d6\u5230\u7236\u5143\u7d20\u5bbd\u9ad8\u5c3a\u5bf8\uff01canvas-id:"+e))})).exec()},saveImage:function(){uni.canvasToTempFilePath({canvasId:this.cid,success:function(t){uni.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(){uni.showToast({title:"\u4fdd\u5b58\u6210\u529f",duration:2e3})}})}},this)},_error:function(t){this.mixinDatacomErrorMessage=t.detail.errMsg},emitMsg:function(t){this.$emit(t.name,t.params)},getRenderType:function(){!0===this.echarts&&!1===this.mixinDatacomLoading&&this.beforeInit()},toJSON:function(){return this}}};e.default=u}).call(this,i("a9ff")["default"],i("0de9")["default"])},a2d5:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"}},watch:{type:{handler:function(t){this.config[t]&&this[this.config[t]](!0)},immediate:!0},isDesktop:{handler:function(t){this.config[t]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(t){this.mkclick=t},immediate:!0},isMaskClick:{handler:function(t){this.mkclick=t},immediate:!0},showPopup:function(t){}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:this.isDesktop?"fixforpc-top":"top"}},computed:{isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var t=this,e=function(){var e=uni.getSystemInfoSync(),i=e.windowWidth,n=e.windowHeight,r=e.windowTop,a=e.safeArea,o=(e.screenHeight,e.safeAreaInsets);t.popupWidth=i,t.popupHeight=n+r,t.safeAreaInsets=a?o.bottom:0};e()},created:function(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(t){t.stopPropagation(),this.clearPropagation=!0},open:function(e){var i=["top","center","bottom","left","right","message","dialog","share"];e&&-1!==i.indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","\u7f3a\u5c11\u7c7b\u578b\uff1a",e," at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:246")},close:function(t){var e=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){e.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(t){var e=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){e.messageChild&&"message"===e.type&&e.messageChild.timerClose()})))},bottom:function(t){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg},t||(this.showPopup=!0,this.showTrans=!0)},center:function(t){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"},t||(this.showPopup=!0,this.showTrans=!0)},left:function(t){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)},right:function(t){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,display:"flex",flexDirection:"column"},t||(this.showPopup=!0,this.showTrans=!0)}}};e.default=i}).call(this,i("0de9")["default"])},a34a:function(t,e,i){t.exports=i("bbdd")},a768:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","chartsview"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","charts-error"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","charts-font"),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(null==t.errorMessage?"\u8bf7\u70b9\u51fb\u91cd\u8bd5":t.errorMessage)))])])},a=[]},a9ff:function(t,e,i){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(i("a34a")),a=i("37dc");function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e,i,n,r,a,o){try{var s=t[a](o),c=s.value}catch(l){return void i(l)}s.done?e(c):Promise.resolve(c).then(n,r)}function c(t){return function(){var e=this,i=arguments;return new Promise((function(n,r){var a=t.apply(e,i);function o(t){s(a,n,r,o,c,"next",t)}function c(t){s(a,n,r,o,c,"throw",t)}o(void 0)}))}}function l(t){return d(t)||h(t)||p(t)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(t){if(Array.isArray(t))return g(t)}function f(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=p(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}function p(t,e){if(t){if("string"===typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x(t,e,i){return e&&v(t.prototype,e),i&&v(t,i),t}function y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?y(Object(i),!0).forEach((function(e){b(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function b(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}function S(t){var e=P();return function(){var i,n=L(t);if(e){var r=L(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return k(this,i)}}function k(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?A(t):e}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){var e="function"===typeof Map?new Map:void 0;return T=function(t){if(null===t||!D(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return C(t,arguments,L(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),O(i,t)},T(t)}function C(t,e,i){return C=P()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=Function.bind.apply(t,n),a=new r;return i&&O(a,i.prototype),a},C.apply(null,arguments)}function P(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function D(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function O(t,e){return O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},O(t,e)}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},L(t)}function M(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t||"undefined"!=typeof self&&self;var I=F((function(t,e){var i;t.exports=(i=i||function(t,e){var i=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),n={},r=n.lib={},a=r.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=a.extend({init:function(t,i){t=this.words=t||[],this.sigBytes=i!=e?i:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,r=t.sigBytes;if(this.clamp(),n%4)for(var a=0;a<r;a++){var o=i[a>>>2]>>>24-a%4*8&255;e[n+a>>>2]|=o<<24-(n+a)%4*8}else for(a=0;a<r;a+=4)e[n+a>>>2]=i[a>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],r=function(e){e=e;var i=987654321,n=4294967295;return function(){var r=((i=36969*(65535&i)+(i>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},a=0;a<e;a+=4){var s=r(4294967296*(i||t.random()));i=987654071*s(),n.push(4294967296*s()|0)}return new o.init(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var a=e[r>>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n+=2)i[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(i,e/2)}},l=s.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],r=0;r<i;r++){var a=e[r>>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(i,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,r=i.sigBytes,a=this.blockSize,s=r/(4*a),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,l=t.min(4*c,r);if(c){for(var u=0;u<c;u+=a)this._doProcessBlock(n,u);var h=n.splice(0,c);i.sigBytes-=l}return new o.init(h,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new d.HMAC.init(t,i).finalize(e)}}});var d=n.algo={};return n}(Math),i)})),E=(F((function(t,e){var i;t.exports=(i=I,function(t){var e=i,n=e.lib,r=n.WordArray,a=n.Hasher,o=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=o.MD5=a.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var i=0;i<16;i++){var n=e+i,r=t[n];t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,o=t[e+0],c=t[e+1],f=t[e+2],p=t[e+3],g=t[e+4],v=t[e+5],x=t[e+6],y=t[e+7],m=t[e+8],b=t[e+9],_=t[e+10],w=t[e+11],S=t[e+12],k=t[e+13],A=t[e+14],T=t[e+15],C=a[0],P=a[1],D=a[2],O=a[3];C=l(C,P,D,O,o,7,s[0]),O=l(O,C,P,D,c,12,s[1]),D=l(D,O,C,P,f,17,s[2]),P=l(P,D,O,C,p,22,s[3]),C=l(C,P,D,O,g,7,s[4]),O=l(O,C,P,D,v,12,s[5]),D=l(D,O,C,P,x,17,s[6]),P=l(P,D,O,C,y,22,s[7]),C=l(C,P,D,O,m,7,s[8]),O=l(O,C,P,D,b,12,s[9]),D=l(D,O,C,P,_,17,s[10]),P=l(P,D,O,C,w,22,s[11]),C=l(C,P,D,O,S,7,s[12]),O=l(O,C,P,D,k,12,s[13]),D=l(D,O,C,P,A,17,s[14]),C=u(C,P=l(P,D,O,C,T,22,s[15]),D,O,c,5,s[16]),O=u(O,C,P,D,x,9,s[17]),D=u(D,O,C,P,w,14,s[18]),P=u(P,D,O,C,o,20,s[19]),C=u(C,P,D,O,v,5,s[20]),O=u(O,C,P,D,_,9,s[21]),D=u(D,O,C,P,T,14,s[22]),P=u(P,D,O,C,g,20,s[23]),C=u(C,P,D,O,b,5,s[24]),O=u(O,C,P,D,A,9,s[25]),D=u(D,O,C,P,p,14,s[26]),P=u(P,D,O,C,m,20,s[27]),C=u(C,P,D,O,k,5,s[28]),O=u(O,C,P,D,f,9,s[29]),D=u(D,O,C,P,y,14,s[30]),C=h(C,P=u(P,D,O,C,S,20,s[31]),D,O,v,4,s[32]),O=h(O,C,P,D,m,11,s[33]),D=h(D,O,C,P,w,16,s[34]),P=h(P,D,O,C,A,23,s[35]),C=h(C,P,D,O,c,4,s[36]),O=h(O,C,P,D,g,11,s[37]),D=h(D,O,C,P,y,16,s[38]),P=h(P,D,O,C,_,23,s[39]),C=h(C,P,D,O,k,4,s[40]),O=h(O,C,P,D,o,11,s[41]),D=h(D,O,C,P,p,16,s[42]),P=h(P,D,O,C,x,23,s[43]),C=h(C,P,D,O,b,4,s[44]),O=h(O,C,P,D,S,11,s[45]),D=h(D,O,C,P,T,16,s[46]),C=d(C,P=h(P,D,O,C,f,23,s[47]),D,O,o,6,s[48]),O=d(O,C,P,D,y,10,s[49]),D=d(D,O,C,P,A,15,s[50]),P=d(P,D,O,C,v,21,s[51]),C=d(C,P,D,O,S,6,s[52]),O=d(O,C,P,D,p,10,s[53]),D=d(D,O,C,P,_,15,s[54]),P=d(P,D,O,C,c,21,s[55]),C=d(C,P,D,O,m,6,s[56]),O=d(O,C,P,D,T,10,s[57]),D=d(D,O,C,P,x,15,s[58]),P=d(P,D,O,C,k,21,s[59]),C=d(C,P,D,O,g,6,s[60]),O=d(O,C,P,D,w,10,s[61]),D=d(D,O,C,P,f,15,s[62]),P=d(P,D,O,C,b,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+P|0,a[2]=a[2]+D|0,a[3]=a[3]+O|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;i[r>>>5]|=128<<24-r%32;var a=t.floor(n/4294967296),o=n;i[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,i,n,r,a,o){var s=t+(e&i|~e&n)+r+o;return(s<<a|s>>>32-a)+e}function u(t,e,i,n,r,a,o){var s=t+(e&n|i&~n)+r+o;return(s<<a|s>>>32-a)+e}function h(t,e,i,n,r,a,o){var s=t+(e^i^n)+r+o;return(s<<a|s>>>32-a)+e}function d(t,e,i,n,r,a,o){var s=t+(i^(e|~n))+r+o;return(s<<a|s>>>32-a)+e}e.MD5=a._createHelper(c),e.HmacMD5=a._createHmacHelper(c)}(Math),i.MD5)})),F((function(t,e){var i,n,r;t.exports=(n=(i=I).lib.Base,r=i.enc.Utf8,void(i.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),o=this._iKey=e.clone(),s=a.words,c=o.words,l=0;l<i;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,i=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(i))}})))})),F((function(t,e){t.exports=I.HmacMD5})));function $(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function j(t){return"object"===$(t)}var R=function(t){w(i,t);var e=S(i);function i(t,n){var r;return _(this,i),r=e.call(this,t),r.code=n,r}return i}(T(Error));function z(t){return t&&"string"==typeof t?JSON.parse(t):t}var N=!1,B="app-plus",U=z(void 0),W=z([]),q=!0,H="";try{var G=i("86ed").default||i("86ed");H=G.appid}catch(Qe){}var K={};function J(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=K,i=t,Object.prototype.hasOwnProperty.call(e,i)||(K[t]=n),K[t]}"app-plus"===B&&(K=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var X=["invoke","success","fail","complete"],Y=J("_globalUniCloudInterceptor");function V(t,e){Y[t]||(Y[t]={}),j(e)&&Object.keys(e).forEach((function(i){X.indexOf(i)>-1&&function(t,e,i){var n=Y[t][e];n||(n=Y[t][e]=[]),-1===n.indexOf(i)&&"function"==typeof i&&n.push(i)}(t,i,e[i])}))}function Z(t,e){Y[t]||(Y[t]={}),j(e)?Object.keys(e).forEach((function(i){X.indexOf(i)>-1&&function(t,e,i){var n=Y[t][e];if(n){var r=n.indexOf(i);r>-1&&n.splice(r,1)}}(t,i,e[i])})):delete Y[t]}function Q(t,e){return t&&0!==t.length?t.reduce((function(t,i){return t.then((function(){return i(e)}))}),Promise.resolve()):Promise.resolve()}function tt(t,e){return Y[t]&&Y[t][e]||[]}function et(t,e){return e?function(i){var n,r=this,a="callFunction"===e&&"DCloud-clientDB"===(i&&i.name);n=this.isReady?Promise.resolve():this.initUniCloud,i=i||{};var o=n.then((function(){return a?Promise.resolve():Q(tt(e,"invoke"),i)})).then((function(){return t.call(r,i)})).then((function(t){return a?Promise.resolve(t):Q(tt(e,"success"),t).then((function(){return Q(tt(e,"complete"),t)})).then((function(){return Promise.resolve(t)}))}),(function(t){return a?Promise.reject(t):Q(tt(e,"fail"),t).then((function(){return Q(tt(e,"complete"),t)})).then((function(){return Promise.reject(t)}))}));if(!(i.success||i.fail||i.complete))return o;o.then((function(t){i.success&&i.success(t),i.complete&&i.complete(t)}),(function(t){i.fail&&i.fail(t),i.complete&&i.complete(t)}))}:function(e){if(!((e=e||{}).success||e.fail||e.complete))return t.call(this,e);t.call(this,e).then((function(t){e.success&&e.success(t),e.complete&&e.complete(t)}),(function(t){e.fail&&e.fail(t),e.complete&&e.complete(t)}))}}var it,nt=function(t){w(i,t);var e=S(i);function i(t){var n;return _(this,i),n=e.call(this,t.message),n.errMsg=t.message||"",Object.defineProperties(A(n),{code:{get:function(){return t.code}},requestId:{get:function(){return t.requestId}},message:{get:function(){return this.errMsg},set:function(t){this.errMsg=t}}}),n}return i}(T(Error));function rt(){var t=uni.getLocale&&uni.getLocale()||"en";if(it)return m(m({},it),{},{LOCALE:t});var e=uni.getSystemInfoSync(),i=e.deviceId,n=e.platform;return it={PLATFORM:B,OS:n,APPID:H,DEVICEID:i,CLIENT_SDK_VERSION:"1.0.21"},m(m({},it),{},{LOCALE:t})}var at,ot={sign:function(t,e){var i="";return Object.keys(t).sort().forEach((function(e){t[e]&&(i=i+"&"+e+"="+t[e])})),i=i.slice(1),E(i,e).toString()},wrappedRequest:function(t,e){return new Promise((function(i,n){e(Object.assign(t,{complete:function(t){t||(t={}),N&&"h5"===B&&t.errMsg&&0===t.errMsg.indexOf("request:fail")&&console.warn("\u53d1\u5e03H5\uff0c\u9700\u8981\u5728uniCloud\u540e\u53f0\u64cd\u4f5c\uff0c\u7ed1\u5b9a\u5b89\u5168\u57df\u540d\uff0c\u5426\u5219\u4f1a\u56e0\u4e3a\u8de8\u57df\u95ee\u9898\u800c\u65e0\u6cd5\u8bbf\u95ee\u3002\u6559\u7a0b\u53c2\u8003\uff1ahttps://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400)return n(new nt({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var r=t.data;if(r.error)return n(new nt({code:r.error.code,message:r.error.message,requestId:e}));r.result=r.data,r.requestId=e,delete r.data,i(r)}}))}))}},st={request:function(t){return uni.request(t)},uploadFile:function(t){return uni.uploadFile(t)},setStorageSync:function(t,e){return uni.setStorageSync(t,e)},getStorageSync:function(t){return uni.getStorageSync(t)},removeStorageSync:function(t){return uni.removeStorageSync(t)},clearStorageSync:function(){return uni.clearStorageSync()}},ct={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},lt=(0,a.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"\u7f3a\u5c11\u53c2\u6570\uff1a{param}","uniCloud.uploadFile.fileError":"filePath\u5e94\u4e3aFile\u5bf9\u8c61"},"zh-Hant":{"uniCloud.init.paramRequired":"\u7f3a\u5c11\u53c2\u6570\uff1a{param}","uniCloud.uploadFile.fileError":"filePath\u5e94\u4e3aFile\u5bf9\u8c61"},en:ct,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:ct},"zh-Hans"),ut=lt.t,ht=function(){function t(e){_(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(ut("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=st,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return x(t,[{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return ot.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var i=this;return Promise.resolve().then((function(){return i.hasAccessToken?e?i.requestWrapped(t):i.requestWrapped(t).catch((function(e){return new Promise((function(t,i){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?i(e):t()})).then((function(){return i.getAccessToken()})).then((function(){var e=i.rebuildRequest(t);return i.request(e,!0)}))})):i.getAccessToken().then((function(){var e=i.rebuildRequest(t);return i.request(e,!0)}))}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=ot.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==e&&(i.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ot.sign(i,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){var t=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){return new Promise((function(i,n){e.result&&e.result.accessToken?(t.setAccessToken(e.result.accessToken),t._getAccessTokenPromiseStatus="fulfilled",i(t.accessToken)):(t._getAccessTokenPromiseStatus="rejected",n(new nt({code:"AUTH_FAILED",message:"\u83b7\u53d6accessToken\u5931\u8d25"})))}))}),(function(e){return t._getAccessTokenPromiseStatus="rejected",Promise.reject(e)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,i=t.url,n=t.formData,r=t.name,a=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,c){var l=e.adapter.uploadFile({url:i,formData:n,name:r,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):c(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(t){c(new nt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(t){var e=this,i=t.filePath,n=t.cloudPath,r=t.fileType,a=void 0===r?"image":r,o=t.onUploadProgress,s=t.config;if("string"!==$(n))throw new nt({code:"INVALID_PARAM",message:"cloudPath\u5fc5\u987b\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b"});if(!(n=n.trim()))throw new nt({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});if(/:\/\//.test(n))throw new nt({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u5408\u6cd5"});var c,l,u=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:u,filename:n}).then((function(t){var n=t.result;c=n.id,l="https://"+n.cdnDomain+"/"+n.ossPath;var r={url:"https://"+n.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:n.accessKeyId,Signature:n.signature,host:n.host,id:c,key:n.ossPath,policy:n.policy,success_action_status:200},fileName:"file",name:"file",filePath:i,fileType:a};return e.uploadFileToOSS(Object.assign({},r,{onUploadProgress:o}))})).then((function(){return e.reportOSSUpload({id:c})})).then((function(t){return new Promise((function(e,n){t.success?e({success:!0,filePath:i,fileID:l}):n(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,i={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(i))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList;return new Promise((function(t,i){Array.isArray(e)&&0!==e.length||i(new nt({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"})),t({fileList:e.map((function(t){return{fileID:t,tempFileURL:t}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),t}(),dt={init:function(t){var e=new ht(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}},ft="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(t){t.local="local",t.none="none",t.session="session"}(at||(at={}));var pt,gt=function(){},vt=function(){var t;if(!Promise){t=function(){},t.promise={};var e=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var i=new Promise((function(e,i){t=function(t,n){return t?i(t):e(n)}}));return t.promise=i,t};function xt(t){return void 0===t}function yt(t){return"[object Null]"===Object.prototype.toString.call(t)}function mt(t){var e,i,n=(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]),r=f(n);try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){r.e(l)}finally{r.f()}}!function(t){t.WEB="web",t.WX_MP="wx_mp"}(pt||(pt={}));var bt={adapter:null,runtime:void 0},_t=["anonymousUuidKey"],wt=function(t){w(i,t);var e=S(i);function i(){var t;return _(this,i),t=e.call(this),bt.adapter.root.tcbObject||(bt.adapter.root.tcbObject={}),t}return x(i,[{key:"setItem",value:function(t,e){bt.adapter.root.tcbObject[t]=e}},{key:"getItem",value:function(t){return bt.adapter.root.tcbObject[t]}},{key:"removeItem",value:function(t){delete bt.adapter.root.tcbObject[t]}},{key:"clear",value:function(){delete bt.adapter.root.tcbObject}}]),i}(gt);function St(t,e){switch(t){case"local":return e.localStorage||new wt;case"none":return new wt;default:return e.sessionStorage||new wt}}var kt=function(){function t(e){if(_(this,t),!this._storage){this._persistence=bt.adapter.primaryStorage||e.persistence,this._storage=St(this._persistence,bt.adapter);var i="access_token_".concat(e.env),n="access_token_expire_".concat(e.env),r="refresh_token_".concat(e.env),a="anonymous_uuid_".concat(e.env),o="login_type_".concat(e.env),s="user_info_".concat(e.env);this.keys={accessTokenKey:i,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return x(t,[{key:"updatePersistence",value:function(t){if(t!==this._persistence){var e="local"===this._persistence;this._persistence=t;var i=St(t,bt.adapter);for(var n in this.keys){var r=this.keys[n];if(!e||!_t.includes(n)){var a=this._storage.getItem(r);xt(a)||yt(a)||(i.setItem(r,a),this._storage.removeItem(r))}}this._storage=i}}},{key:"setStore",value:function(t,e,i){if(this._storage){var n={version:i||"localCachev1",content:e},r=JSON.stringify(n);try{this._storage.setItem(t,r)}catch(t){throw t}}}},{key:"getStore",value:function(t,e){try{if(!this._storage)return}catch(t){return""}e=e||"localCachev1";var i=this._storage.getItem(t);return i&&i.indexOf(e)>=0?JSON.parse(i).content:""}},{key:"removeStore",value:function(t){this._storage.removeItem(t)}}]),t}(),At={},Tt={};function Ct(t){return At[t]}var Pt=function t(e,i){_(this,t),this.data=i||null,this.name=e},Dt=function(t){w(i,t);var e=S(i);function i(t,n){var r;return _(this,i),r=e.call(this,"error",{error:t,data:n}),r.error=t,r}return i}(Pt),Ot=new(function(){function t(){_(this,t),this._listeners={}}return x(t,[{key:"on",value:function(t,e){return function(t,e,i){i[t]=i[t]||[],i[t].push(e)}(t,e,this._listeners),this}},{key:"off",value:function(t,e){return function(t,e,i){if(i&&i[t]){var n=i[t].indexOf(e);-1!==n&&i[t].splice(n,1)}}(t,e,this._listeners),this}},{key:"fire",value:function(t,e){if(t instanceof Dt)return console.error(t.error),this;var i="string"==typeof t?new Pt(t,e||{}):t,n=i.name;if(this._listens(n)){i.target=this;var r,a=this._listeners[n]?l(this._listeners[n]):[],o=f(a);try{for(o.s();!(r=o.n()).done;){var s=r.value;s.call(this,i)}}catch(c){o.e(c)}finally{o.f()}}return this}},{key:"_listens",value:function(t){return this._listeners[t]&&this._listeners[t].length>0}}]),t}());function Lt(t,e){Ot.on(t,e)}function Mt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ot.fire(t,e)}function Ft(t,e){Ot.off(t,e)}var It,Et="loginStateChanged",$t="loginStateExpire",jt="loginTypeChanged",Rt="anonymousConverted",zt="refreshAccessToken";!function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.WECHAT_PUBLIC="WECHAT-PUBLIC",t.WECHAT_OPEN="WECHAT-OPEN",t.CUSTOM="CUSTOM",t.EMAIL="EMAIL",t.USERNAME="USERNAME",t.NULL="NULL"}(It||(It={}));var Nt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Bt={"X-SDK-Version":"1.3.5"};function Ut(t,e,i){var n=t[e];t[e]=function(e){var r={},a={};i.forEach((function(i){var n=i.call(t,e),o=n.data,s=n.headers;Object.assign(r,o),Object.assign(a,s)}));var o=e.data;return o&&function(){var t;if(t=o,"[object FormData]"!==Object.prototype.toString.call(t))e.data=m(m({},o),r);else for(var i in r)o.append(i,r[i])}(),e.headers=m(m({},e.headers||{}),a),n.call(t,e)}}function Wt(){var t=Math.random().toString(16).slice(2);return{data:{seqId:t},headers:m(m({},Bt),{},{"x-seqid":t})}}var qt=function(){function t(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,t),this.config=i,this._reqClass=new bt.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"\u8bf7\u6c42\u5728".concat(this.config.timeout/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad"),restrictedMethods:["post"]}),this._cache=Ct(this.config.env),this._localCache=(e=this.config.env,Tt[e]),Ut(this._reqClass,"post",[Wt]),Ut(this._reqClass,"upload",[Wt]),Ut(this._reqClass,"download",[Wt])}return x(t,[{key:"post",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.post(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"upload",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.upload(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"download",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._reqClass.download(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refreshAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),t.prev=1,t.next=4,this._refreshAccessTokenPromise;case 4:e=t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),i=t.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!i){t.next=12;break}throw i;case 12:return t.abrupt("return",e);case 13:case"end":return t.stop()}}),t,this,[[1,7]])})));function e(){return t.apply(this,arguments)}return e}()},{key:"_refreshAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c,l,u,h,d,f,p;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,a=e.refreshTokenKey,o=e.loginTypeKey,s=e.anonymousUuidKey,this._cache.removeStore(i),this._cache.removeStore(n),c=this._cache.getStore(a),c){t.next=5;break}throw new Error("\u672a\u767b\u5f55CloudBase");case 5:return l={refresh_token:c},t.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(u=t.sent,!u.data.code){t.next=21;break}if(h=u.data.code,"SIGN_PARAM_INVALID"!==h&&"REFRESH_TOKEN_EXPIRED"!==h&&"INVALID_REFRESH_TOKEN"!==h){t.next=20;break}if(this._cache.getStore(o)!==It.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==h){t.next=19;break}return d=this._cache.getStore(s),f=this._cache.getStore(a),t.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:f});case 17:return p=t.sent,t.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Mt($t),this._cache.removeStore(a);case 20:throw new Error("\u5237\u65b0access token\u5931\u8d25\uff1a".concat(u.data.code));case 21:if(!u.data.access_token){t.next=23;break}return t.abrupt("return",(Mt(zt),this._cache.setStore(i,u.data.access_token),this._cache.setStore(n,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}));case 23:u.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"getAccessToken",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,a=e.refreshTokenKey,this._cache.getStore(a)){t.next=3;break}throw new Error("refresh token\u4e0d\u5b58\u5728\uff0c\u767b\u5f55\u72b6\u6001\u5f02\u5e38");case 3:if(o=this._cache.getStore(i),s=this._cache.getStore(n),c=!0,t.t0=this._shouldRefreshAccessTokenHook,!t.t0){t.next=9;break}return t.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:t.t0=!t.sent;case 9:if(t.t1=t.t0,!t.t1){t.next=12;break}c=!1;case 12:return t.abrupt("return",(!o||!s||s<Date.now())&&c?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"request",value:function(){var t=c(r.default.mark((function t(e,i,n){var a,o,s,c,l,u,h,d,f,p,g,v,x,y,b,_;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=m({action:e,env:this.config.env,dataVersion:"2019-08-16"},i),-1!==Nt.indexOf(e)){t.next=10;break}if(c=this._cache.keys.refreshTokenKey,t.t0=this._cache.getStore(c),!t.t0){t.next=10;break}return t.next=9,this.getAccessToken();case 9:s.access_token=t.sent.accessToken;case 10:if("storage.uploadFile"===e){for(u in l=new FormData,l)l.hasOwnProperty(u)&&void 0!==l[u]&&l.append(u,s[u]);o="multipart/form-data"}else for(h in o="application/json",l={},s)void 0!==s[h]&&(l[h]=s[h]);return d={headers:{"content-type":o}},n&&n.onUploadProgress&&(d.onUploadProgress=n.onUploadProgress),f=this._localCache.getStore(a),f&&(d.headers["X-TCB-Trace"]=f),p=i.parse,g=i.inQuery,v=i.search,x={env:this.config.env},p&&(x.parse=!0),g&&(x=m(m({},g),x)),y=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(e),r="";for(var a in i)""===r?!n&&(e+="?"):r+="&",r+="".concat(a,"=").concat(encodeURIComponent(i[a]));return/^http(s)?\:\/\//.test(e+=r)?e:"".concat(t).concat(e)}(ft,"//tcb-api.tencentcloudapi.com/web",x),v&&(y+=v),t.next=22,this.post(m({url:y,data:l},d));case 22:if(b=t.sent,_=b.header&&b.header["x-tcb-trace"],_&&this._localCache.setStore(a,_),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){t.next=26;break}throw new Error("network request error");case 26:return t.abrupt("return",b);case 27:case"end":return t.stop()}}),t,this)})));function e(e,i,n){return t.apply(this,arguments)}return e}()},{key:"send",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o=arguments;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=o.length>1&&void 0!==o[1]?o[1]:{},t.next=3,this.request(e,i,{onUploadProgress:i.onUploadProgress});case 3:if(n=t.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==Nt.indexOf(e)){t.next=13;break}return t.next=7,this.refreshAccessToken();case 7:return t.next=9,this.request(e,i,{onUploadProgress:i.onUploadProgress});case 9:if(a=t.sent,!a.data.code){t.next=12;break}throw new Error("[".concat(a.data.code,"] ").concat(a.data.message));case 12:return t.abrupt("return",a.data);case 13:if(!n.data.code){t.next=15;break}throw new Error("[".concat(n.data.code,"] ").concat(n.data.message));case 15:return t.abrupt("return",n.data);case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"setRefreshToken",value:function(t){var e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(i),this._cache.removeStore(n),this._cache.setStore(r,t)}}]),t}(),Ht={};function Gt(t){return Ht[t]}var Kt=function(){function t(e){_(this,t),this.config=e,this._cache=Ct(e.env),this._request=Gt(e.env)}return x(t,[{key:"setRefreshToken",value:function(t){var e=this._cache.keys,i=e.accessTokenKey,n=e.accessTokenExpireKey,r=e.refreshTokenKey;this._cache.removeStore(i),this._cache.removeStore(n),this._cache.setStore(r,t)}},{key:"setAccessToken",value:function(t,e){var i=this._cache.keys,n=i.accessTokenKey,r=i.accessTokenExpireKey;this._cache.setStore(n,t),this._cache.setStore(r,e)}},{key:"refreshUserInfo",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,i=e.data,t.abrupt("return",(this.setLocalUserInfo(i),i));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t)}}]),t}(),Jt=function(){function t(e){if(_(this,t),!e)throw new Error("envId is not defined");this._envId=e,this._cache=Ct(this._envId),this._request=Gt(this._envId),this.setUserInfo()}return x(t,[{key:"linkWithTicket",value:function(t){if("string"!=typeof t)throw new Error("ticket must be string");return this._request.send("auth.linkWithTicket",{ticket:t})}},{key:"linkWithRedirect",value:function(t){t.signInWithRedirect()}},{key:"updatePassword",value:function(t,e){return this._request.send("auth.updatePassword",{oldPassword:e,newPassword:t})}},{key:"updateEmail",value:function(t){return this._request.send("auth.updateEmail",{newEmail:t})}},{key:"updateUsername",value:function(t){if("string"!=typeof t)throw new Error("username must be a string");return this._request.send("auth.updateUsername",{username:t})}},{key:"getLinkedUidList",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return e=t.sent,i=e.data,n=!1,a=i.users,t.abrupt("return",(a.forEach((function(t){t.wxOpenId&&t.wxPublicId&&(n=!0)})),{users:a,hasPrimaryUid:n}));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setPrimaryUid",value:function(t){return this._request.send("auth.setPrimaryUid",{uid:t})}},{key:"unlink",value:function(t){return this._request.send("auth.unlink",{platform:t})}},{key:"update",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o,s,c,l,u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.nickName,n=e.gender,a=e.avatarUrl,o=e.province,s=e.country,c=e.city,t.next=8,this._request.send("auth.updateUserInfo",{nickName:i,gender:n,avatarUrl:a,province:o,country:s,city:c});case 8:l=t.sent,u=l.data,this.setLocalUserInfo(u);case 11:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"refresh",value:function(){var t=c(r.default.mark((function t(){var e,i;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.send("auth.getUserInfo",{});case 2:return e=t.sent,i=e.data,t.abrupt("return",(this.setLocalUserInfo(i),i));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"setUserInfo",value:function(){var t=this,e=this._cache.keys.userInfoKey,i=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(e){t[e]=i[e]})),this.location={country:i.country,province:i.province,city:i.city}}},{key:"setLocalUserInfo",value:function(t){var e=this._cache.keys.userInfoKey;this._cache.setStore(e,t),this.setUserInfo()}}]),t}(),Xt=function(){function t(e){if(_(this,t),!e)throw new Error("envId is not defined");this._cache=Ct(e);var i=this._cache.keys,n=i.refreshTokenKey,r=i.accessTokenKey,a=i.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(r),c=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new Jt(e)}return x(t,[{key:"isAnonymousAuth",get:function(){return this.loginType===It.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===It.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===It.WECHAT||this.loginType===It.WECHAT_OPEN||this.loginType===It.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),Yt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._cache.updatePersistence("local"),e=this._cache.keys,i=e.anonymousUuidKey,n=e.refreshTokenKey,a=this._cache.getStore(i)||void 0,o=this._cache.getStore(n)||void 0,t.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:a,refresh_token:o});case 8:if(s=t.sent,!s.uuid||!s.refresh_token){t.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),t.next=14,this._request.refreshAccessToken();case 14:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.ANONYMOUS,persistence:"local"}),c=new Xt(this.config.env),t.next=19,c.user.refresh();case 19:return t.abrupt("return",c);case 20:throw new Error("\u533f\u540d\u767b\u5f55\u5931\u8d25");case 21:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=c(r.default.mark((function t(e){var i,n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=this._cache.keys,n=i.anonymousUuidKey,a=i.refreshTokenKey,o=this._cache.getStore(n),s=this._cache.getStore(a),t.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:e});case 7:if(c=t.sent,!c.refresh_token){t.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),t.next=13,this._request.refreshAccessToken();case 13:return Mt(Rt,{env:this.config.env}),Mt(jt,{loginType:It.CUSTOM,persistence:"local"}),t.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new Error("\u533f\u540d\u8f6c\u5316\u5931\u8d25");case 17:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"_setAnonymousUUID",value:function(t){var e=this._cache.keys,i=e.anonymousUuidKey,n=e.loginTypeKey;this._cache.removeStore(i),this._cache.setStore(i,t),this._cache.setStore(n,It.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),i}(Kt),Vt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e){var i,n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("ticket must be a string");case 2:return i=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(i)||""});case 5:if(n=t.sent,!n.refresh_token){t.next=15;break}return this.setRefreshToken(n.refresh_token),t.next=10,this._request.refreshAccessToken();case 10:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.CUSTOM,persistence:this.config.persistence}),t.next=14,this.refreshUserInfo();case 14:return t.abrupt("return",new Xt(this.config.env));case 15:throw new Error("\u81ea\u5b9a\u4e49\u767b\u5f55\u5931\u8d25");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}]),i}(Kt),Zt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("email must be a string");case 2:return n=this._cache.keys.refreshTokenKey,t.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:i,refresh_token:this._cache.getStore(n)||""});case 5:if(a=t.sent,o=a.refresh_token,s=a.access_token,c=a.access_token_expire,!o){t.next=22;break}if(this.setRefreshToken(o),!s||!c){t.next=15;break}this.setAccessToken(s,c),t.next=17;break;case 15:return t.next=17,this._request.refreshAccessToken();case 17:return t.next=19,this.refreshUserInfo();case 19:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.EMAIL,persistence:this.config.persistence}),t.abrupt("return",new Xt(this.config.env));case 22:throw a.code?new Error("\u90ae\u7bb1\u767b\u5f55\u5931\u8d25: [".concat(a.code,"] ").concat(a.message)):new Error("\u90ae\u7bb1\u767b\u5f55\u5931\u8d25");case 23:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"activate",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.activateEndUserMail",{token:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"resetPasswordWithToken",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:i}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()}]),i}(Kt),Qt=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"signIn",value:function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return"string"!=typeof i&&(i="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,t.next=6,this._request.send("auth.signIn",{loginType:It.USERNAME,username:e,password:i,refresh_token:this._cache.getStore(n)||""});case 6:if(a=t.sent,o=a.refresh_token,s=a.access_token_expire,c=a.access_token,!o){t.next=23;break}if(this.setRefreshToken(o),!c||!s){t.next=16;break}this.setAccessToken(c,s),t.next=18;break;case 16:return t.next=18,this._request.refreshAccessToken();case 18:return t.next=20,this.refreshUserInfo();case 20:return Mt(Et),Mt(jt,{env:this.config.env,loginType:It.USERNAME,persistence:this.config.persistence}),t.abrupt("return",new Xt(this.config.env));case 23:throw a.code?new Error("\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25: [".concat(a.code,"] ").concat(a.message)):new Error("\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25");case 24:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()}]),i}(Kt),te=function(){function t(e){_(this,t),this.config=e,this._cache=Ct(e.env),this._request=Gt(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Lt(jt,this._onLoginTypeChanged)}return x(t,[{key:"anonymousAuthProvider",value:function(){return new Yt(this.config)}},{key:"customAuthProvider",value:function(){return new Vt(this.config)}},{key:"emailAuthProvider",value:function(){return new Zt(this.config)}},{key:"usernameAuthProvider",value:function(){return new Qt(this.config)}},{key:"signInAnonymously",value:function(){var t=c(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Yt(this.config).signIn());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signInWithEmailAndPassword",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Zt(this.config).signIn(e,i));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"signInWithUsernameAndPassword",value:function(t,e){return new Qt(this.config).signIn(t,e)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Yt(this.config)),Lt(Rt,this._onAnonymousConverted),t.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"signOut",value:function(){var t=c(r.default.mark((function t(){var e,i,n,a,o,s;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.loginType!==It.ANONYMOUS){t.next=2;break}throw new Error("\u533f\u540d\u7528\u6237\u4e0d\u652f\u6301\u767b\u51fa\u64cd\u4f5c");case 2:if(e=this._cache.keys,i=e.refreshTokenKey,n=e.accessTokenKey,a=e.accessTokenExpireKey,o=this._cache.getStore(i),o){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=t.sent,t.abrupt("return",(this._cache.removeStore(i),this._cache.removeStore(n),this._cache.removeStore(a),Mt(Et),Mt(jt,{env:this.config.env,loginType:It.NULL,persistence:this.config.persistence}),s));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"signUpWithEmailAndPassword",value:function(){var t=c(r.default.mark((function t(e,i){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:i}));case 1:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"sendPasswordResetEmail",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:e}));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"onLoginStateChanged",value:function(t){var e=this;Lt(Et,(function(){var i=e.hasLoginState();t.call(e,i)}));var i=this.hasLoginState();t.call(this,i)}},{key:"onLoginStateExpired",value:function(t){Lt($t,t.bind(this))}},{key:"onAccessTokenRefreshed",value:function(t){Lt(zt,t.bind(this))}},{key:"onAnonymousConverted",value:function(t){Lt(Rt,t.bind(this))}},{key:"onLoginTypeChanged",value:function(t){var e=this;Lt(jt,(function(){var i=e.hasLoginState();t.call(e,i)}))}},{key:"getAccessToken",value:function(){var t=c(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this._request.getAccessToken();case 2:return t.t0=t.sent.accessToken,t.t1=this.config.env,t.abrupt("return",{accessToken:t.t0,env:t.t1});case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"hasLoginState",value:function(){var t=this._cache.keys.refreshTokenKey;return this._cache.getStore(t)?new Xt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var t=c(r.default.mark((function t(e){var i,n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("string"==typeof e){t.next=2;break}throw new Error("username must be a string");case 2:return t.next=4,this._request.send("auth.isUsernameRegistered",{username:e});case 4:return i=t.sent,n=i.data,t.abrupt("return",n&&n.isRegistered);case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var t=c(r.default.mark((function t(e){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Vt(this.config).signIn(e));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"shouldRefreshAccessToken",value:function(t){this._request._shouldRefreshAccessTokenHook=t.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(t){return t.code?t:m(m({},t.data),{},{requestId:t.seqId})}))}},{key:"getAuthHeader",value:function(){var t=this._cache.keys,e=t.refreshTokenKey,i=t.accessTokenKey,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(i)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(t){var e=t.data.env;e===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(t){var e=t.data,i=e.loginType,n=e.persistence,r=e.env;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,i))}},{key:"currentUser",get:function(){var t=this.hasLoginState();return t&&t.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),t}(),ee=function(t,e){e=e||vt();var i=Gt(this.config.env),n=t.cloudPath,r=t.filePath,a=t.onUploadProgress,o=t.fileType,s=void 0===o?"image":o;return i.send("storage.getUploadMetadata",{path:n}).then((function(t){var o=t.data,c=o.url,l=o.authorization,u=o.token,h=o.fileId,d=o.cosFileId,f=t.requestId,p={key:n,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":u};i.upload({url:c,data:p,file:r,name:n,fileType:s,onUploadProgress:a}).then((function(t){201===t.statusCode?e(null,{fileID:h,requestId:f}):e(new Error("STORAGE_REQUEST_FAIL: ".concat(t.data)))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},ie=function(t,e){e=e||vt();var i=Gt(this.config.env),n=t.cloudPath;return i.send("storage.getUploadMetadata",{path:n}).then((function(t){e(null,t)})).catch((function(t){e(t)})),e.promise},ne=function(t,e){var i=t.fileList;if(e=e||vt(),!i||!Array.isArray(i))return{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"};var n,r=f(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}}}catch(s){r.e(s)}finally{r.f()}var o={fileid_list:i};return Gt(this.config.env).send("storage.batchDeleteFile",o).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},re=function(t,e){var i=t.fileList;e=e||vt(),i&&Array.isArray(i)||e(null,{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"});var n,r=[],a=f(i);try{for(a.s();!(n=a.n()).done;){var o=n.value;"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5305\u542bfileID\u548cmaxAge\u7684\u5bf9\u8c61"}),r.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?r.push({fileid:o}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5b57\u7b26\u4e32"})}}catch(c){a.e(c)}finally{a.f()}var s={file_list:r};return Gt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},ae=function(){var t=c(r.default.mark((function t(e,i){var n,a,o,s;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.fileID,t.next=3,re.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(a=t.sent.fileList[0],"SUCCESS"===a.code){t.next=6;break}return t.abrupt("return",i?i(a):new Promise((function(t){t(a)})));case 6:if(o=Gt(this.config.env),s=a.download_url,s=encodeURI(s),i){t.next=10;break}return t.abrupt("return",o.download({url:s}));case 10:return t.t0=i,t.next=13,o.download({url:s});case 13:t.t1=t.sent,(0,t.t0)(t.t1);case 15:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),oe=function(t,e){var i,n=t.name,r=t.data,a=t.query,o=t.parse,s=t.search,c=e||vt();try{i=r?JSON.stringify(r):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Error("\u51fd\u6570\u540d\u4e0d\u80fd\u4e3a\u7a7a"));var l={inQuery:a,parse:o,search:s,function_name:n,request_data:i};return Gt(this.config.env).send("functions.invokeFunction",l).then((function(t){if(t.code)c(null,t);else{var e=t.data.response_data;if(o)c(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),c(null,{result:e,requestId:t.requestId})}catch(t){c(new Error("response data must be json"))}}return c.promise})).catch((function(t){c(t)})),c.promise},se={timeout:15e3,persistence:"session"},ce={},le=function(){function t(e){_(this,t),this.config=e||this.config,this.authObj=void 0}return x(t,[{key:"init",value:function(e){switch(bt.adapter||(this.requestClient=new bt.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:"\u8bf7\u6c42\u5728".concat((e.timeout||5e3)/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad")})),this.config=m(m({},se),e),!0){case this.config.timeout>6e5:console.warn("timeout\u5927\u4e8e\u53ef\u914d\u7f6e\u4e0a\u9650[10\u5206\u949f]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0a\u9650\u6570\u503c"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout\u5c0f\u4e8e\u53ef\u914d\u7f6e\u4e0b\u9650[100ms]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0b\u9650\u6570\u503c"),this.config.timeout=100}return new t(this.config)}},{key:"auth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.persistence;if(this.authObj)return this.authObj;var i,n=e||bt.adapter.primaryStorage||se.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(t){var e=t.env;At[e]=new kt(t),Tt[e]=new kt(m(m({},t),{},{persistence:"local"}))}(this.config),i=this.config,Ht[i.env]=new qt(i),this.authObj=new te(this.config),this.authObj}},{key:"on",value:function(t,e){return Lt.apply(this,[t,e])}},{key:"off",value:function(t,e){return Ft.apply(this,[t,e])}},{key:"callFunction",value:function(t,e){return oe.apply(this,[t,e])}},{key:"deleteFile",value:function(t,e){return ne.apply(this,[t,e])}},{key:"getTempFileURL",value:function(t,e){return re.apply(this,[t,e])}},{key:"downloadFile",value:function(t,e){return ae.apply(this,[t,e])}},{key:"uploadFile",value:function(t,e){return ee.apply(this,[t,e])}},{key:"getUploadMetadata",value:function(t,e){return ie.apply(this,[t,e])}},{key:"registerExtension",value:function(t){ce[t.name]=t}},{key:"invokeExtension",value:function(){var t=c(r.default.mark((function t(e,i){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=ce[e],n){t.next=3;break}throw Error("\u6269\u5c55".concat(e," \u5fc5\u987b\u5148\u6ce8\u518c"));case 3:return t.next=5,n.invoke(i,this);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));function e(e,i){return t.apply(this,arguments)}return e}()},{key:"useAdapters",value:function(t){var e=mt(t)||{},i=e.adapter,n=e.runtime;i&&(bt.adapter=i),n&&(bt.runtime=n)}}]),t}(),ue=new le;function he(t,e,i){void 0===i&&(i={});var n=/\?/.test(e),r="";for(var a in i)""===r?!n&&(e+="?"):r+="&",r+=a+"="+encodeURIComponent(i[a]);return/^http(s)?:\/\//.test(e+=r)?e:""+t+e}var de=function(){function t(){_(this,t)}return x(t,[{key:"post",value:function(t){var e=t.url,i=t.data,n=t.headers;return new Promise((function(t,r){st.request({url:he("https:",e),data:i,method:"POST",header:n,success:function(e){t(e)},fail:function(t){r(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,i){var n=t.url,r=t.file,a=t.data,o=t.headers,s=t.fileType,c=st.uploadFile({url:he("https:",n),name:"file",formData:Object.assign({},a),filePath:r,fileType:s,header:o,success:function(t){var i={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&a.success_action_status&&(i.statusCode=parseInt(a.success_action_status,10)),e(i)},fail:function(t){N&&"mp-alipay"===B&&console.warn("\u652f\u4ed8\u5b9d\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5de5\u5177\u4e0a\u4f20\u817e\u8baf\u4e91\u65f6\u65e0\u6cd5\u51c6\u786e\u5224\u65ad\u662f\u5426\u4e0a\u4f20\u6210\u529f\uff0c\u8bf7\u4f7f\u7528\u771f\u673a\u6d4b\u8bd5"),i(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),fe={setItem:function(t,e){st.setStorageSync(t,e)},getItem:function(t){return st.getStorageSync(t)},removeItem:function(t){st.removeStorageSync(t)},clear:function(){st.clearStorageSync()}},pe={genAdapter:function(){return{root:{},reqClass:de,localStorage:fe,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ue.useAdapters(pe);var ge=ue,ve=ge.init;ge.init=function(t){t.env=t.spaceId;var e=ve.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var i=e.auth;return e.auth=function(t){var e=i.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){e[t]=et(e[t]).bind(e)})),e},e.customAuth=e.auth,e};var xe=ge;function ye(){return{token:st.getStorageSync("uni_id_token")||st.getStorageSync("uniIdToken"),tokenExpired:st.getStorageSync("uni_id_token_expired")}}function me(){N&&"h5"===B&&uni.getStorageSync("__LAST_DCLOUD_APPID")!==H&&(uni.setStorageSync("__LAST_DCLOUD_APPID",H),console.warn("\u68c0\u6d4b\u5230\u5f53\u524d\u9879\u76ee\u4e0e\u4e0a\u6b21\u8fd0\u884c\u5230\u6b64\u7aef\u53e3\u7684\u9879\u76ee\u4e0d\u4e00\u81f4\uff0c\u81ea\u52a8\u6e05\u7406uni-id\u4fdd\u5b58\u7684token\u4fe1\u606f\uff08\u4ec5\u5f00\u53d1\u8c03\u8bd5\u65f6\u751f\u6548\uff09"),st.removeStorageSync("uni_id_token"),st.removeStorageSync("uniIdToken"),st.removeStorageSync("uni_id_token_expired"))}var be=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"getAccessToken",value:function(){var t=this;return new Promise((function(e,i){var n="Anonymous_Access_token";t.setAccessToken(n),e(n)}))}},{key:"setupRequest",value:function(t,e){var i=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==e&&(i.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ot.sign(i,this.config.clientSecret);var r=rt();n["x-client-info"]=JSON.stringify(r);var a=ye(),o=a.token;return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:i,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(t){var e=this,i=t.url,n=t.formData,r=t.name,a=t.filePath,o=t.fileType,s=t.onUploadProgress;return new Promise((function(t,c){var l=e.adapter.uploadFile({url:i,formData:n,name:r,filePath:a,fileType:o,success:function(e){e&&e.statusCode<400?t(e):c(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(t){c(new nt({code:t.code||"UPLOAD_FAILED",message:t.message||t.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(t){var e,i=this,n=t.filePath,r=t.cloudPath,a=t.fileType,o=void 0===a?"image":a,s=t.onUploadProgress;if(!r)throw new nt({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});return this.getOSSUploadOptionsFromPath({cloudPath:r}).then((function(t){var r=t.result,a=r.url,c=r.formData,l=r.name;e=t.result.fileUrl;var u={url:a,formData:c,name:l,filePath:n,fileType:o};return i.uploadFileToOSS(Object.assign({},u,{onUploadProgress:s}))})).then((function(){return i.reportOSSUpload({cloudPath:r})})).then((function(t){return new Promise((function(i,r){t.success?i({success:!0,filePath:n,fileID:e}):r(new nt({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,i={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(i))}},{key:"getTempFileURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fileList,i={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(i))}}]),i}(ht),_e={init:function(t){var e=new be(t),i={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return i},e.customAuth=e.auth,e}};function we(t){var e,i=t.data;e=rt();var n=JSON.parse(JSON.stringify(i||{}));if(Object.assign(n,{clientInfo:e}),!n.uniIdToken){var r=ye(),a=r.token;a&&(n.uniIdToken=a)}return n}function Se(t){var e=this,i=t.name,n=t.data,r=this.localAddress,a=this.localPort,o={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],s=this.config.spaceId,c="http://".concat(r,":").concat(a,"/system/check-function"),l="http://".concat(r,":").concat(a,"/cloudfunctions/").concat(i);return new Promise((function(t,e){st.request({method:"POST",url:c,data:{name:i,platform:B,provider:o,spaceId:s},timeout:3e3,success:function(e){t(e)},fail:function(){t({data:{code:"NETWORK_ERROR",message:"\u8fde\u63a5\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u5ba2\u6237\u7aef\u662f\u5426\u548c\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570\u3002"}})}})})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.data,i=e||{},n=i.code,r=i.message;return{code:0===n?0:n||"SYS_ERR",message:r||"SYS_ERR"}})).then((function(t){var r=t.code,a=t.message;if(0!==r){switch(r){case"MODULE_ENCRYPTED":console.error("\u6b64\u4e91\u51fd\u6570\uff08".concat(i,"\uff09\u4f9d\u8d56\u52a0\u5bc6\u516c\u5171\u6a21\u5757\u4e0d\u53ef\u672c\u5730\u8c03\u8bd5\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570"));break;case"FUNCTION_ENCRYPTED":console.error("\u6b64\u4e91\u51fd\u6570\uff08".concat(i,"\uff09\u5df2\u52a0\u5bc6\u4e0d\u53ef\u672c\u5730\u8c03\u8bd5\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u5df2\u90e8\u7f72\u7684\u4e91\u51fd\u6570"));break;case"ACTION_ENCRYPTED":console.error(a||"\u9700\u8981\u8bbf\u95ee\u52a0\u5bc6\u7684uni-clientDB-action\uff0c\u81ea\u52a8\u5207\u6362\u4e3a\u4e91\u7aef\u73af\u5883");break;case"NETWORK_ERROR":var s="\u8fde\u63a5\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u5ba2\u6237\u7aef\u662f\u5426\u548c\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b";throw console.error(s),new Error(s);case"SWITCH_TO_CLOUD":break;default:var c="\u68c0\u6d4b\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u51fa\u73b0\u9519\u8bef\uff1a".concat(a,"\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u73af\u5883\u6216\u91cd\u542f\u5ba2\u6237\u7aef\u518d\u8bd5");throw console.error(c),new Error(c)}return e._originCallFunction({name:i,data:n})}return new Promise((function(t,i){var r=we.call(e,{data:n});st.request({method:"POST",url:l,data:{provider:o,platform:B,param:r},success:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.statusCode,r=e.data;return!n||n>=400?i(new nt({code:r.code||"SYS_ERR",message:r.message||"request:fail"})):t({result:r})},fail:function(t){i(new nt({code:t.code||t.errCode||"SYS_ERR",message:t.message||t.errMsg||"request:fail"}))}})}))}))}var ke=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"\uff0c\u4e91\u51fd\u6570[{functionName}]\u5728\u4e91\u7aef\u4e0d\u5b58\u5728\uff0c\u8bf7\u68c0\u67e5\u6b64\u4e91\u51fd\u6570\u540d\u79f0\u662f\u5426\u6b63\u786e\u4ee5\u53ca\u8be5\u4e91\u51fd\u6570\u662f\u5426\u5df2\u4e0a\u4f20\u5230\u670d\u52a1\u7a7a\u95f4",mode:"append"}],Ae=/[\\^$.*+?()[\]{}|]/g,Te=RegExp(Ae.source);function Ce(t,e,i){return t.replace(new RegExp((n=e)&&Te.test(n)?n.replace(Ae,"\\$&"):n,"g"),i);var n}function Pe(t){var e=t.functionName,i=t.result,n=t.logPvd;if(this.config.useDebugFunction&&i&&i.requestId){var r=JSON.stringify({spaceId:this.config.spaceId,functionName:e,requestId:i.requestId});console.log("[".concat(n,"-request]").concat(r,"[/").concat(n,"-request]"))}}function De(t){var e=t.callFunction,i=function(i){var n=this,r=i.name;i.data=we.call(t,{data:i.data});var a={aliyun:"aliyun",tencent:"tcb"}[this.config.provider];return e.call(this,i).then((function(t){return Pe.call(n,{functionName:r,result:t,logPvd:a}),Promise.resolve(t)}),(function(t){return Pe.call(n,{functionName:r,result:t,logPvd:a}),t&&t.message&&(t.message=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.message,i=void 0===e?"":e,n=t.extraInfo,r=void 0===n?{}:n,a=t.formatter,o=void 0===a?[]:a,s=0;s<o.length;s++){var c=o[s],l=c.rule,u=c.content,h=c.mode,d=i.match(l);if(d){for(var f=u,p=1;p<d.length;p++)f=Ce(f,"{$".concat(p,"}"),d[p]);for(var g in r)f=Ce(f,"{".concat(g,"}"),r[g]);return"replace"===h?f:i+f}}return i}({message:"[".concat(i.name,"]: ").concat(t.message),formatter:ke,extraInfo:{functionName:r}})),Promise.reject(t)}))};t.callFunction=function(e){var n;return N&&t.debugInfo&&!t.debugInfo.forceRemote&&W?(t._originCallFunction||(t._originCallFunction=i),n=Se.call(this,e)):n=i.call(this,e),Object.defineProperty(n,"result",{get:function(){return console.warn("\u5f53\u524d\u8fd4\u56de\u7ed3\u679c\u4e3aPromise\u7c7b\u578b\uff0c\u4e0d\u53ef\u76f4\u63a5\u8bbf\u95ee\u5176result\u5c5e\u6027\uff0c\u8be6\u60c5\u8bf7\u53c2\u8003\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),n}}var Oe=Symbol("CLIENT_DB_INTERNAL");function Le(t,e){return t.then="DoNotReturnProxyWithAFunctionNamedThen",t._internalType=Oe,t.__ob__=void 0,new Proxy(t,{get:function(t,i,n){if("_uniClient"===i)return null;if(i in t||"string"!=typeof i){var r=t[i];return"function"==typeof r?r.bind(t):r}return e.get(t,i,n)}})}function Me(t){return{on:function(e,i){t[e]=t[e]||[],t[e].indexOf(i)>-1||t[e].push(i)},off:function(e,i){t[e]=t[e]||[];var n=t[e].indexOf(i);-1!==n&&t[e].splice(n,1)}}}var Fe=["db.Geo","db.command","command.aggregate"];function Ie(t,e){return Fe.indexOf("".concat(t,".").concat(e))>-1}function Ee(t){switch($(t)){case"array":return t.map((function(t){return Ee(t)}));case"object":return t._internalType===Oe||Object.keys(t).forEach((function(e){t[e]=Ee(t[e])})),t;case"regexp":return{$regexp:{source:t.source,flags:t.flags}};case"date":return{$date:t.toISOString()};default:return t}}var $e=function(){function t(e,i,n){_(this,t),this.content=e,this.prevStage=i||null,this.udb=null,this._database=n}return x(t,[{key:"toJSON",value:function(){for(var t=this,e=[t.content];t.prevStage;)t=t.prevStage,e.push(t.content);return{$db:e.reverse().map((function(t){return{$method:t.$method,$param:Ee(t.$param)}}))}}},{key:"getAction",value:function(){var t=this.toJSON().$db.find((function(t){return"action"===t.$method}));return t&&t.$param&&t.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(t){return"action"!==t.$method}))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value:function(){return this._send("add",Array.from(arguments))}},{key:"remove",value:function(){return this._send("remove",Array.from(arguments))}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",value:function(){throw new Error("clientDB\u7981\u6b62\u4f7f\u7528set\u65b9\u6cd5")}},{key:"_send",value:function(t,e){var i=this.getAction(),n=this.getCommand();if(n.$db.push({$method:t,$param:Ee(e)}),N){var r=n.$db.find((function(t){return"collection"===t.$method})),a=r&&r.$param;a&&1===a.length&&"string"==typeof r.$param[0]&&r.$param[0].indexOf(",")>-1&&console.warn("\u68c0\u6d4b\u5230\u4f7f\u7528JQL\u8bed\u6cd5\u8054\u8868\u67e5\u8be2\u65f6\uff0c\u672a\u4f7f\u7528getTemp\u5148\u8fc7\u6ee4\u4e3b\u8868\u6570\u636e\uff0c\u5728\u4e3b\u8868\u6570\u636e\u91cf\u5927\u7684\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u67e5\u8be2\u7f13\u6162\u3002\n- \u5982\u4f55\u4f18\u5316\u8bf7\u53c2\u8003\u6b64\u6587\u6863\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- \u5982\u679c\u4e3b\u8868\u6570\u636e\u91cf\u5f88\u5c0f\u8bf7\u5ffd\u7565\u6b64\u4fe1\u606f\uff0c\u9879\u76ee\u53d1\u884c\u65f6\u4e0d\u4f1a\u51fa\u73b0\u6b64\u63d0\u793a\u3002")}return this._database._callCloudFunction({action:i,command:n})}},{key:"useAggregate",get:function(){for(var t=this,e=!1;t.prevStage;){t=t.prevStage;var i=t.content.$method;if("aggregate"===i||"pipeline"===i){e=!0;break}}return e}},{key:"count",get:function(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};var t=this;return function(){return je({$method:"count",$param:Ee(Array.from(arguments))},t,this._database)}}}]),t}();function je(t,e,i){return Le(new $e(t,e,i),{get:function(t,e){var n="db";return t&&t.content&&(n=t.content.$method),Ie(n,e)?je({$method:e},t,i):function(){return je({$method:e,$param:Ee(Array.from(arguments))},t,i)}}})}function Re(t){var e=t.path,i=t.method;return function(){function t(){_(this,t),this.param=Array.from(arguments)}return x(t,[{key:"toJSON",value:function(){return{$newDb:[].concat(l(e.map((function(t){return{$method:t}}))),[{$method:i,$param:this.param}])}}}]),t}()}var ze,Ne=function(t){w(i,t);var e=S(i);function i(){return _(this,i),e.apply(this,arguments)}return x(i,[{key:"_callCloudFunction",value:function(t){var e=this,i=t.action,n=t.command,r=t.multiCommand,a=t.queryList;function o(t,e){if(r&&a)for(var i=0;i<a.length;i++){var n=a[i];n.udb&&"function"==typeof n.udb.setResult&&(e?n.udb.setResult(e):n.udb.setResult(t.result.dataList[i]))}}var s=Q(tt("database","invoke")),c=this._uniClient;return s.then((function(){return c.callFunction({name:"DCloud-clientDB",data:{action:i,command:n,multiCommand:r}})})).then((function(t){var i=t.result,n=i.code,r=i.message,a=i.token,s=i.tokenExpired,c=i.systemInfo,l=void 0===c?[]:c;if(l)for(var u=0;u<l.length;u++){var h=l[u],d=h.level,f=h.message,p=h.detail,g=console["app-plus"===B&&"warn"===d?"error":d]||console.log,v="[System Info]"+f;p&&(v="".concat(v,"\n\u8be6\u7ec6\u4fe1\u606f\uff1a").concat(p)),g(v)}if(n){var x=new R(r,n);return e._callback("error",[x]),Promise.reject(x)}a&&s&&(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.token,i=t.tokenExpired;e&&st.setStorageSync("uni_id_token",e),i&&st.setStorageSync("uni_id_token_expired",i)}({token:a,tokenExpired:s}),e._callbackAuth("refreshToken",[{token:a,tokenExpired:s}]),e._callback("refreshToken",[{token:a,tokenExpired:s}]));var y=t.result.affectedDocs;return"number"==typeof y&&Object.defineProperty(t.result,"affectedDocs",{get:function(){return console.warn("affectedDocs\u4e0d\u518d\u63a8\u8350\u4f7f\u7528\uff0c\u8bf7\u4f7f\u7528inserted/deleted/updated/data.length\u66ff\u4ee3"),y}}),Q(tt("database","success"),t).then((function(){return Q(tt("database","complete"),t)})).then((function(){return o(t,null),Promise.resolve(t)}))}),(function(t){var i=new R(t.message,t.code||"SYSTEM_ERROR");return e._callback("error",[i]),/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(t.message)&&console.warn("clientDB\u672a\u521d\u59cb\u5316\uff0c\u8bf7\u5728web\u63a7\u5236\u53f0\u4fdd\u5b58\u4e00\u6b21schema\u4ee5\u5f00\u542fclientDB"),Q(tt("database","fail"),t).then((function(){return Q(tt("database","complete"),t)})).then((function(){return o(null,t),Promise.reject(t)}))}))}}]),i}(function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.uniClient,n=void 0===i?{}:i;_(this,t),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n.isDefault&&(this._dbCallBacks=J("_globalUniCloudDatabaseCallback")),this.auth=Me(this._authCallBacks),Object.assign(this,Me(this._dbCallBacks)),this.env=Le({},{get:function(t,e){return{$env:e}}}),this.Geo=Le({},{get:function(t,e){return Re({path:["Geo"],method:e})}}),this.serverDate=Re({path:[],method:"serverDate"}),this.RegExp=Re({path:[],method:"RegExp"})}return x(t,[{key:"getCloudEnv",value:function(t){if("string"!=typeof t||!t.trim())throw new Error("getCloudEnv\u53c2\u6570\u9519\u8bef");return{$env:t.replace("$cloudEnv_","")}}},{key:"_callback",value:function(t,e){var i=this._dbCallBacks;i[t]&&i[t].forEach((function(t){t.apply(void 0,l(e))}))}},{key:"_callbackAuth",value:function(t,e){var i=this._authCallBacks;i[t]&&i[t].forEach((function(t){t.apply(void 0,l(e))}))}},{key:"multiSend",value:function(){var t=Array.from(arguments),e=t.map((function(t){var e=t.getAction(),i=t.getCommand();if("getTemp"!==i.$db[i.$db.length-1].$method)throw new Error("multiSend\u53ea\u652f\u6301\u5b50\u547d\u4ee4\u5185\u4f7f\u7528getTemp");return{action:e,command:i}}));return this._callCloudFunction({multiCommand:e,queryList:t})}}]),t}());function Be(t){t.database=function(e){if(e&&Object.keys(e).length>0)return t.init(e).database();if(this._database)return this._database;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Le(new t(e),{get:function(t,e){return Ie("db",e)?je({$method:e},null,t):function(){return je({$method:e,$param:Ee(Array.from(arguments))},null,t)}}})}(Ne,{uniClient:t});return this._database=i,i}}var Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function qe(){var t,e,i=ye().token||"",n=i.split(".");if(!i||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse((e=n[1],decodeURIComponent(ze(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(i){throw new Error("\u83b7\u53d6\u5f53\u524d\u7528\u6237\u4fe1\u606f\u51fa\u9519\uff0c\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\u4e3a\uff1a"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}ze="function"!=typeof atob?function(t){if(t=String(t).replace(/[\t\n\f\r ]+/g,""),!We.test(t))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var e;t+="==".slice(2-(3&t.length));for(var i,n,r="",a=0;a<t.length;)e=Ue.indexOf(t.charAt(a++))<<18|Ue.indexOf(t.charAt(a++))<<12|(i=Ue.indexOf(t.charAt(a++)))<<6|(n=Ue.indexOf(t.charAt(a++))),r+=64===i?String.fromCharCode(e>>16&255):64===n?String.fromCharCode(e>>16&255,e>>8&255):String.fromCharCode(e>>16&255,e>>8&255,255&e);return r}:atob;var He=M(F((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function a(t,e){return t.tempFiles.forEach((function(t,i){t.name||(t.name=t.path.substring(t.path.lastIndexOf("/")+1)),e&&(t.fileType=e),t.cloudPath=Date.now()+"_"+i+t.name.substring(t.name.lastIndexOf("."))})),t.tempFilePaths||(t.tempFilePaths=t.tempFiles.map((function(t){return t.path}))),t}function o(t,e,n){var r=n.onChooseFile,a=n.onUploadProgress;return e.then((function(t){if(r){var e=r(t);if(void 0!==e)return Promise.resolve(e).then((function(e){return void 0===e?t:e}))}return t})).then((function(e){return!1===e?{errMsg:i,tempFilePaths:[],tempFiles:[]}:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3?arguments[3]:void 0;(e=Object.assign({},e)).errMsg=i;var a=e.tempFiles,o=a.length,s=0;return new Promise((function(i){for(;s<n;)c();function c(){var n=s++;if(n>=o)!a.find((function(t){return!t.url&&!t.errMsg}))&&i(e);else{var l=a[n];t.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:function(t){t.index=n,t.tempFile=l,t.tempFilePath=l.path,r&&r(t)}}).then((function(t){l.url=t.fileID,n<o&&c()})).catch((function(t){l.errMsg=t.errMsg||t.message,n<o&&c()}))}}}))}(t,e,5,a)}))}e.initChooseAndUploadFile=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===e.type?o(t,function(t){var e=t.count,i=t.sizeType,n=t.sourceType,o=void 0===n?["album","camera"]:n,s=t.extension;return new Promise((function(t,n){uni.chooseImage({count:e,sizeType:i,sourceType:o,extension:s,success:function(e){t(a(e,"image"))},fail:function(t){n({errMsg:t.errMsg.replace("chooseImage:fail",r)})}})}))}(e),e):"video"===e.type?o(t,function(t){var e=t.camera,i=t.compressed,n=t.maxDuration,o=t.sourceType,s=void 0===o?["album","camera"]:o,c=t.extension;return new Promise((function(t,o){uni.chooseVideo({camera:e,compressed:i,maxDuration:n,sourceType:s,extension:c,success:function(e){var i=e.tempFilePath,n=e.duration,r=e.size,o=e.height,s=e.width;t(a({errMsg:"chooseVideo:ok",tempFilePaths:[i],tempFiles:[{name:e.tempFile&&e.tempFile.name||"",path:i,size:r,type:e.tempFile&&e.tempFile.type||"",width:s,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(t){o({errMsg:t.errMsg.replace("chooseVideo:fail",r)})}})}))}(e),e):o(t,function(t){var e=t.count,i=t.extension;return new Promise((function(t,o){var s=uni.chooseFile;if("undefined"!=typeof n&&"function"==typeof n.chooseMessageFile&&(s=n.chooseMessageFile),"function"!=typeof s)return o({errMsg:r+" \u8bf7\u6307\u5b9a type \u7c7b\u578b\uff0c\u8be5\u5e73\u53f0\u4ec5\u652f\u6301\u9009\u62e9 image \u6216 video\u3002"});s({type:"all",count:e,extension:i,success:function(e){t(a(e))},fail:function(t){o({errMsg:t.errMsg.replace("chooseFile:fail",r)})}})}))}(e),e)}}}))),Ge="manual";function Ke(t){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var t=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(i){e.push(t[i])})),e}),(function(e,i){if(t.loadtime!==Ge){for(var n=!1,r=[],a=2;a<e.length;a++)e[a]!==i[a]&&(r.push(e[a]),n=!0);e[0]!==i[0]&&(t.mixinDatacomPage.current=t.pageCurrent),t.mixinDatacomPage.size=t.pageSize,t.onMixinDatacomPropsChange(n,r)}}))},methods:{onMixinDatacomPropsChange:function(t,e){},mixinDatacomEasyGet:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.getone,n=void 0!==i&&i,r=e.success,a=e.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(e){t.mixinDatacomLoading=!1;var i=e.result,a=i.data,o=i.count;t.getcount&&(t.mixinDatacomPage.count=o),t.mixinDatacomHasMore=a.length<t.pageSize;var s=n?a.length?a[0]:void 0:a;t.mixinDatacomResData=s,r&&r(s)})).catch((function(e){t.mixinDatacomLoading=!1,t.mixinDatacomErrorMessage=e,a&&a(e)})))},mixinDatacomGet:function(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.database(this.spaceInfo),r=i.action||this.action;r&&(n=n.action(r));var a=i.collection||this.collection;n=Array.isArray(a)?(e=n).collection.apply(e,l(a)):n.collection(a);var o=i.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=i.field||this.field;s&&(n=n.field(s));var c=i.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var u=i.groupby||this.groupby;u&&(n=n.groupBy(u));var h=i.groupField||this.groupField;h&&(n=n.groupField(h)),!0===(void 0!==i.distinct?i.distinct:this.distinct)&&(n=n.distinct());var d=i.orderby||this.orderby;d&&(n=n.orderBy(d));var f=void 0!==i.pageCurrent?i.pageCurrent:this.mixinDatacomPage.current,p=void 0!==i.pageSize?i.pageSize:this.mixinDatacomPage.size,g=void 0!==i.getcount?i.getcount:this.getcount,v=void 0!==i.gettree?i.gettree:this.gettree,x=void 0!==i.gettreepath?i.gettreepath:this.gettreepath,y={getCount:g},m={limitLevel:void 0!==i.limitlevel?i.limitlevel:this.limitlevel,startWith:void 0!==i.startwith?i.startwith:this.startwith};return v&&(y.getTree=m),x&&(y.getTreePath=m),n=n.skip(p*(f-1)).limit(p).get(y),n}}}}function Je(t,e){return Xe.apply(this,arguments)}function Xe(){return Xe=c(r.default.mark((function t(e,i){var n,a,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n="http://".concat(e,":").concat(i,"/system/ping"),t.prev=1,t.next=4,o={url:n,timeout:500},new Promise((function(t,e){st.request(m(m({},o),{},{success:function(e){t(e)},fail:function(t){e(t)}}))}));case 4:return a=t.sent,t.abrupt("return",!(!a.data||0!==a.data.code));case 8:return t.prev=8,t.t0=t["catch"](1),t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t,null,[[1,8]])}))),Xe.apply(this,arguments)}function Ye(t){if(!t.initUniCloudStatus||"rejected"===t.initUniCloudStatus){var e,i=Promise.resolve();e=1,i=new Promise((function(t,i){setTimeout((function(){t()}),e)})),t.isReady=!1,t.isDefault=!1;var n=t.auth();t.initUniCloudStatus="pending",t.initUniCloud=i.then((function(){return n.getLoginState()})).then((function(t){return t?Promise.resolve():n.signInAnonymously()})).then((function(){if(!N)return Promise.resolve();if(N&&t.debugInfo){var e=t.debugInfo,i=e.address,n=e.servePort;return function(){var t=c(r.default.mark((function t(e,i){var n,a,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<e.length)){t.next=11;break}return o=e[a],t.next=5,Je(o,i);case 5:if(!t.sent){t.next=8;break}return n=o,t.abrupt("break",11);case 8:a++,t.next=1;break;case 11:return t.abrupt("return",{address:n,port:i});case 12:case"end":return t.stop()}}),t)})));return function(e,i){return t.apply(this,arguments)}}()(i,n)}})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.address,n=e.port;if(!N)return Promise.resolve();if(i)t.localAddress=i,t.localPort=n;else if(t.debugInfo){var r=console["app-plus"===B?"error":"warn"],a="";"remote"===t.debugInfo.initialLaunchType?(t.debugInfo.forceRemote=!0,a="\u5f53\u524d\u5ba2\u6237\u7aef\u548cHBuilderX\u4e0d\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\uff08\u6216\u5176\u4ed6\u7f51\u7edc\u539f\u56e0\u65e0\u6cd5\u8fde\u63a5HBuilderX\uff09\uff0cuniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\u4e0d\u5bf9\u5f53\u524d\u5ba2\u6237\u7aef\u751f\u6548\u3002\n- \u5982\u679c\u4e0d\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u76f4\u63a5\u5ffd\u7565\u6b64\u4fe1\u606f\u3002\n- \u5982\u9700\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u5c06\u5ba2\u6237\u7aef\u4e0e\u4e3b\u673a\u8fde\u63a5\u5230\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u5e76\u91cd\u65b0\u8fd0\u884c\u5230\u5ba2\u6237\u7aef\u3002\n- \u5982\u679c\u5728HBuilderX\u5f00\u542f\u7684\u72b6\u6001\u4e0b\u5207\u6362\u8fc7\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u91cd\u542fHBuilderX\u540e\u518d\u8bd5\n- \u68c0\u67e5\u7cfb\u7edf\u9632\u706b\u5899\u662f\u5426\u62e6\u622a\u4e86HBuilderX\u81ea\u5e26\u7684nodejs"):a="\u65e0\u6cd5\u8fde\u63a5uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u68c0\u67e5\u5f53\u524d\u5ba2\u6237\u7aef\u662f\u5426\u4e0e\u4e3b\u673a\u5728\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u3002\n- \u5982\u9700\u4f7f\u7528uniCloud\u672c\u5730\u8c03\u8bd5\u670d\u52a1\uff0c\u8bf7\u5c06\u5ba2\u6237\u7aef\u4e0e\u4e3b\u673a\u8fde\u63a5\u5230\u540c\u4e00\u5c40\u57df\u7f51\u4e0b\u5e76\u91cd\u65b0\u8fd0\u884c\u5230\u5ba2\u6237\u7aef\u3002\n- \u5982\u679c\u5728HBuilderX\u5f00\u542f\u7684\u72b6\u6001\u4e0b\u5207\u6362\u8fc7\u7f51\u7edc\u73af\u5883\uff0c\u8bf7\u91cd\u542fHBuilderX\u540e\u518d\u8bd5\n- \u68c0\u67e5\u7cfb\u7edf\u9632\u706b\u5899\u662f\u5426\u62e6\u622a\u4e86HBuilderX\u81ea\u5e26\u7684nodejs","h5"===B&&(a+="\n- \u90e8\u5206\u6d4f\u89c8\u5668\u5f00\u542f\u8282\u6d41\u6a21\u5f0f\u4e4b\u540e\u8bbf\u95ee\u672c\u5730\u5730\u5740\u53d7\u9650\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u542f\u7528\u4e86\u8282\u6d41\u6a21\u5f0f"),r(a)}})).then((function(){me(),t.isReady=!0,t.initUniCloudStatus="fulfilled"})).catch((function(e){console.error(e),t.initUniCloudStatus="rejected"}))}}var Ve=new(function(){function t(){_(this,t)}return x(t,[{key:"init",value:function(t){var e={},i=!1!==t.debugFunction&&N&&("h5"===B&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===B);switch(t.provider){case"tencent":e=xe.init(Object.assign(t,{useDebugFunction:i}));break;case"aliyun":e=dt.init(Object.assign(t,{useDebugFunction:i}));break;case"private":e=_e.init(Object.assign(t,{useDebugFunction:i}));break;default:throw new Error("\u672a\u63d0\u4f9b\u6b63\u786e\u7684provider\u53c2\u6570")}var n=U;return N&&n&&!n.code&&(e.debugInfo=n),Ye(e),e.reInit=function(){Ye(this)},De(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){return e.call(this,t)}}(e),Be(e),function(t){t.getCurrentUserInfo=qe,t.chooseAndUploadFile=He.initChooseAndUploadFile(t),Object.assign(t,{get mixinDatacom(){return Ke(t)}})}(e),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(t){if(e[t]){var i=e[t];e[t]=function(){return e.reInit(),i.apply(e,Array.from(arguments))},e[t]=et(e[t],t).bind(e)}})),e.init=this.init,e}}]),t}());(function(){var t=W,e={};if(1===t.length)e=t[0],Ve=Ve.init(e),Ve.isDefault=!0;else{var i,n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo"];i=t&&t.length>0?"\u5e94\u7528\u6709\u591a\u4e2a\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u901a\u8fc7uniCloud.init\u65b9\u6cd5\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u670d\u52a1\u7a7a\u95f4":q?"\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u5728uniCloud\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4":"uni-app cli\u9879\u76ee\u5185\u4f7f\u7528uniCloud\u9700\u8981\u4f7f\u7528HBuilderX\u7684\u8fd0\u884c\u83dc\u5355\u8fd0\u884c\u9879\u76ee\uff0c\u4e14\u9700\u8981\u5728uniCloud\u76ee\u5f55\u5173\u8054\u670d\u52a1\u7a7a\u95f4",n.forEach((function(t){Ve[t]=function(){return console.error(i),Promise.reject(new nt({code:"SYS_ERR",message:i}))}}))}Object.assign(Ve,{get mixinDatacom(){return Ke(Ve)}}),Ve.addInterceptor=V,Ve.removeInterceptor=Z,N&&"h5"===B&&(window.uniCloud=Ve)})();var Ze=Ve;e.default=Ze}).call(this,i("c8ba"),i("fe07")["default"])},aa9b:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading2",data:function(){return{}}};e.default=n},aafe:function(t,e,i){"use strict";i.r(e);var n=i("855c"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},af18:function(t,e){t.exports="/static/d1.png"},b3df:function(t,e,i){"use strict";(function(t){function i(t,e){return s(t)||o(t,e)||r(t,e)||n()}function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function s(t){if(Array.isArray(t))return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c={version:"v2.3.7-20220122",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},l=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!i||i.length<=0)return t;function r(t,e){for(var i in e)t[i]=t[i]&&"[object Object]"===t[i].toString()?r(t[i],e[i]):t[i]=e[i];return t}return i.forEach((function(e){t=r(t,e)})),t},u={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var 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 h(t,e){var i=Array(2),n=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,i[0]=n,i[1]=r,i}function d(t,e){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=t.replace(i,(function(t,e,i,n){return e+e+i+i+n+n})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),a=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+a+","+o+","+s+","+e+")"}function f(t,e,i){if(isNaN(t))throw new Error("[uCharts] series\u6570\u636e\u9700\u4e3aNumber\u683c\u5f0f");i=i||10,e=e||"upper";var n=1;while(i<1)i*=10,n*=10;t="upper"===e?Math.ceil(t*n):Math.floor(t*n);while(t%i!==0)"upper"===e?t++:t--;return t/n}function p(t,e,i,n){for(var r=[],a=0;a<t.length;a++){for(var o={data:[],name:e[a],color:i[a]},s=0,c=n.length;s<c;s++)if(s<t[a])o.data.push(null);else{for(var l=0,u=0;u<t[a];u++)l+=n[s-u][1];o.data.push(+(l/t[a]).toFixed(3))}r.push(o)}return r}function g(t,e,i,n,r){var a=r.width-r.area[1]-r.area[3],o=i.eachSpacing*(r.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-a?(s=a-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function v(t,e,i){function n(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=n(t),e=n(e),i=n(i),e>i&&(i+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=i}function x(t,e,i){var n=t,r=i-e,a=n+(i-r-n)/Math.sqrt(2);a*=-1;var o=(i-r)*(Math.sqrt(2)-1)-(i-r-n)/Math.sqrt(2);return{transX:a,transY:o}}function y(t,e){function i(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 n(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,a=.2,o=null,s=null,c=null,l=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var u=t.length-1;c=t[u].x-(t[u].x-t[u-1].x)*a,l=t[u].y-(t[u].y-t[u-1].y)*a}else c=t[e+1].x-(t[e+2].x-t[e].x)*a,l=t[e+1].y-(t[e+2].y-t[e].y)*a;return i(t,e+1)&&(l=t[e+1].y),i(t,e)&&(s=t[e].y),n(t,e+1)&&(c=t[e+1].x),n(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),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=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),(c>=Math.max(t[e].x,t[e+1].x)||c<=Math.min(t[e].x,t[e+1].x))&&(c=t[e+1].x),{ctrA:{x:o,y:s},ctrB:{x:c,y:l}}}function m(t,e,i){return{x:i.x+t,y:i.y-e}}function b(t,e){if(e)while(u.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 _(t,e,i){var n=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,a=0;a<r.length;a++)r[a].formatter=t[0].formatter,r[a].data=r[a].value,n.push(r[a]);e.series=n}else n=t;return n}function w(t,e,i){for(var n=0,r=0;r<t.length;r++){var a=t[r];if(a.color||(a.color=i.color[n],n=(n+1)%i.color.length),a.linearIndex||(a.linearIndex=r),a.index||(a.index=0),a.type||(a.type=e.type),"undefined"==typeof a.show&&(a.show=!0),a.type||(a.type=e.type),a.pointShape||(a.pointShape="circle"),!a.legendShape)switch(a.type){case"line":a.legendShape="line";break;case"column":a.legendShape="rect";break;case"area":a.legendShape="triangle";break;case"bar":a.legendShape="rect";break;default:a.legendShape="circle"}}return t}function S(t,e,i,n){var r=e||[];if("custom"==t&&0==r.length&&(r=n.linearColor),"custom"==t&&r.length<i.length)for(var a=i.length-r.length,o=0;o<a;o++)r.push(n.linearColor[(o+1)%n.linearColor.length]);return r}function k(t,e){var i=0,n=e-t;return i=n>=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:f(t,"lower",i),maxRange:f(e,"upper",i)}}function A(t,e,i){var n=0;if(t=String(t),!1!==i&&void 0!==i&&i.setFontSize&&i.measureText)return i.setFontSize(e),i.measureText(t).width;t=t.split("");for(var r=0;r<t.length;r++){var a=t[r];/[a-zA-Z]/.test(a)?n+=7:/[0-9]/.test(a)?n+=5.5:/\./.test(a)?n+=2.7:/-/.test(a)?n+=3.25:/:/.test(a)?n+=2.5:/[\u4e00-\u9fa5]/.test(a)?n+=10:/\(|\)/.test(a)?n+=3.73:/\s/.test(a)?n+=2.5:/%/.test(a)?n+=8:n+=10}return n*e/10}function T(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function C(t,e){for(var i=new Array(e),n=0;n<i.length;n++)i[n]=0;for(var r=0;r<t.length;r++)for(n=0;n<i.length;n++)i[n]+=t[r].data[n];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(i)}),[])}function P(t,e,i){var n,r;return t.clientX?e.rotate?(r=e.height-t.clientX*e.pix,n=(t.pageY-i.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):(n=t.clientX*e.pix,r=(t.pageY-i.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(r=e.height-t.x*e.pix,n=t.y*e.pix):(n=t.x*e.pix,r=t.y*e.pix),{x:n,y:r}}function D(t,e,i){var n=[],r=[],a=e.constructor.toString().indexOf("Array")>-1;if(a)for(var o=E(t),s=0;s<i.length;s++)r.push(o[i[s]]);else r=t;for(var c=0;c<r.length;c++){var l=r[c],u=-1;if(u=a?e[c]:e,null!==l.data[u]&&"undefined"!==typeof l.data[u]&&l.show){var h={};h.color=l.color,h.type=l.type,h.style=l.style,h.pointShape=l.pointShape,h.disableLegend=l.disableLegend,h.name=l.name,h.show=l.show,h.data=l.formatter?l.formatter(l.data[u]):l.data[u],n.push(h)}}return n}function O(t,e,i){var n=t.map((function(t){return A(t,e,i)}));return Math.max.apply(null,n)}function L(t){for(var e=2*Math.PI/t,i=[],n=0;n<t;n++)i.push(e*n);return i.map((function(t){return-1*t+Math.PI/2}))}function M(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(n.length>0){for(var c=[],l=0;l<n.length;l++)c.push(o[n[l]]);s=c[0][i[0]]}else s=o[0][i];var u=t.map((function(t){var n=null;return e.categories&&e.categories.length>0&&(n=r[i]),{text:a.formatter?a.formatter(t,n,i,e):t.name+": "+t.data,color:t.color}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:u,offset:h}}function F(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.chartData.xAxisPoints[i]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,n[i],i,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(a),y:0};return{textList:o,offset:s}}function I(t,e,i,n,r,a){var o=i.chartData.calPoints,s=a.color.upFill,c=a.color.downFill,l=[s,s,c,s],u=[];e.map((function(e){0==n?e.data[1]-e.data[0]<0?l[1]=c:l[1]=s:(e.data[0]<t[n-1][1]&&(l[0]=c),e.data[1]<e.data[0]&&(l[1]=c),e.data[2]>t[n-1][1]&&(l[2]=s),e.data[3]<t[n-1][1]&&(l[3]=c));var i={text:"\u5f00\u76d8\uff1a"+e.data[0],color:l[0]},r={text:"\u6536\u76d8\uff1a"+e.data[1],color:l[1]},a={text:"\u6700\u4f4e\uff1a"+e.data[2],color:l[2]},o={text:"\u6700\u9ad8\uff1a"+e.data[3],color:l[3]};u.push(i,r,a,o)}));for(var h=[],d={x:0,y:0},f=0;f<o.length;f++){var p=o[f];"undefined"!==typeof p[n]&&null!==p[n]&&h.push(p[n])}return d.x=Math.round(h[0][0].x),{textList:u,offset:d}}function E(t){for(var e=[],i=0;i<t.length;i++)1==t[i].show&&e.push(t[i]);return e}function $(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=i.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(i.categories){for(var c=1;c<i.chartData.xAxisPoints.length;c++)s.push(i.chartData.xAxisPoints[c]-o);"line"!=i.type&&"area"!=i.type||"justify"!=i.xAxis.boundaryGap||(s=i.chartData.xAxisPoints)}else o=0;if(N(t,i,n))if(i.categories)s.forEach((function(e,i){t.x+r+o>e&&(a.index=i)}));else{for(var l=Array(e.length),u=0;u<e.length;u++){l[u]=Array(e[u].length);for(var h=0;h<e[u].length;h++)l[u][h]=Math.abs(e[u][h].x-t.x)}for(var d=Array(l.length),f=Array(l.length),p=0;p<l.length;p++)d[p]=Math.min.apply(null,l[p]),f[p]=l[p].indexOf(d[p]);var g=Math.min.apply(null,d);a.index=[];for(var v=0;v<d.length;v++)d[v]==g&&(a.group.push(v),a.index.push(f[v]))}}return a}function j(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=i.chartData.eachSpacing/2,s=i.chartData.yAxisPoints;return e&&e.length>0&&N(t,i,n)&&s.forEach((function(e,i){t.y+r+o>e&&(a.index=i)})),a}function R(t,e,i){var n=-1,r=0;if(z(t,e.area)){for(var a=e.points,o=-1,s=0,c=a.length;s<c;s++)for(var l=a[s],u=0;u<l.length;u++){o+=1;var h=l[u]["area"];if(h&&t.x>h[0]-r&&t.x<h[2]+r&&t.y>h[1]-r&&t.y<h[3]+r){n=o;break}}return n}return n}function z(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function N(t,e,i){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 B(t,e,i){var n=2*Math.PI/i,r=-1;if(K(t,e.center,e.radius)){var a=function(t){return t<0&&(t+=2*Math.PI),t>2*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=a(-1*t),t}));s.forEach((function(t,e){var i=a(t-n/2),s=a(t+n/2);s<i&&(s+=2*Math.PI),(o>=i&&o<=s||o+2*Math.PI>=i&&o+2*Math.PI<=s)&&(r=e)}))}return r}function U(t,e){for(var i=-1,n=0,r=e.series.length;n<r;n++){var a=e.series[n];if(t.x>a.funnelArea[0]&&t.x<a.funnelArea[2]&&t.y>a.funnelArea[1]&&t.y<a.funnelArea[3]){i=n;break}}return i}function W(t,e){for(var i=-1,n=0,r=e.length;n<r;n++){var a=e[n];if(t.x>a.area[0]&&t.x<a.area[2]&&t.y>a.area[1]&&t.y<a.area[3]){i=n;break}}return i}function q(t,e){for(var i=-1,n=e.chartData.mapData,r=e.series,a=re(t.y,t.x,n.bounds,n.scale,n.xoffset,n.yoffset),o=[a.x,a.y],s=0,c=r.length;s<c;s++){var l=r[s].geometry.coordinates;if(oe(o,l,e.chartData.mapData.mercator)){i=s;break}}return i}function H(t,e,i){var n=-1,r=it(i._series_,i.extra.rose.type,e.radius,e.radius);if(e&&e.center&&K(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a,i.extra.rose&&i.extra.rose.offsetAngle&&(a-=i.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(v(a,r[o]._start_,r[o]._start_+2*r[o]._rose_proportion_*Math.PI)){n=o;break}}return n}function G(t,e,i){var n=-1,r=tt(e.series);if(e&&e.center&&K(t,e.center,e.radius)){var a=Math.atan2(e.center.y-t.y,t.x-e.center.x);a=-a,i.extra.pie&&i.extra.pie.offsetAngle&&(a-=i.extra.pie.offsetAngle*Math.PI/180),i.extra.ring&&i.extra.ring.offsetAngle&&(a-=i.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(v(a,r[o]._start_,r[o]._start_+2*r[o]._proportion_*Math.PI)){n=o;break}}return n}function K(t,e,i){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i,2)}function J(t,e){var i=[],n=[];return t.forEach((function(t,r){e.connectNulls?null!==t&&n.push(t):null!==t?n.push(t):(n.length&&i.push(n),n=[])})),n.length&&i.push(n),i}function X(t,e,i,n,r){var a={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 n.legendData=a,a;var o=e.legend.padding*e.pix,s=e.legend.margin*e.pix,c=e.legend.fontSize?e.legend.fontSize*e.pix:i.fontSize,l=15*e.pix,u=5*e.pix,h=Math.max(e.legend.lineHeight*e.pix,c);if("top"==e.legend.position||"bottom"==e.legend.position){for(var d=[],f=0,p=[],g=[],v=0;v<t.length;v++){var x=t[v],y=l+u+A(x.name||"undefined",c,r)+e.legend.itemGap*e.pix;f+y>e.width-e.area[1]-e.area[3]?(d.push(g),p.push(f-e.legend.itemGap*e.pix),f=y,g=[x]):(f+=y,g.push(x))}if(g.length){d.push(g),p.push(f-e.legend.itemGap*e.pix),a.widthArr=p;var m=Math.max.apply(null,p);switch(e.legend.float){case"left":a.area.start.x=e.area[3],a.area.end.x=e.area[3]+m+2*o;break;case"right":a.area.start.x=e.width-e.area[1]-m-2*o,a.area.end.x=e.width-e.area[1];break;default:a.area.start.x=(e.width-m)/2-o,a.area.end.x=(e.width+m)/2+o}a.area.width=m+2*o,a.area.wholeWidth=m+2*o,a.area.height=d.length*h+2*o,a.area.wholeHeight=d.length*h+2*o+2*s,a.points=d}}else{var b=t.length,_=e.height-e.area[0]-e.area[2]-2*s-2*o,w=Math.min(Math.floor(_/h),b);switch(a.area.height=w*h+2*o,a.area.wholeHeight=w*h+2*o,e.legend.float){case"top":a.area.start.y=e.area[0]+s,a.area.end.y=e.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=e.height-e.area[2]-s-a.area.height,a.area.end.y=e.height-e.area[2]-s;break;default:a.area.start.y=(e.height-a.area.height)/2,a.area.end.y=(e.height+a.area.height)/2}for(var S=b%w===0?b/w:Math.floor(b/w+1),k=[],T=0;T<S;T++){var C=t.slice(T*w,T*w+w);k.push(C)}if(a.points=k,k.length){for(var P=0;P<k.length;P++){for(var D=k[P],O=0,L=0;L<D.length;L++){var M=l+u+A(D[L].name||"undefined",c,r)+e.legend.itemGap*e.pix;M>O&&(O=M)}a.widthArr.push(O),a.heightArr.push(D.length*h+2*o)}for(var F=0,I=0;I<a.widthArr.length;I++)F+=a.widthArr[I];a.area.width=F-e.legend.itemGap*e.pix+2*o,a.area.wholeWidth=a.area.width+o}}switch(e.legend.position){case"top":a.area.start.y=e.area[0]+s,a.area.end.y=e.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=e.height-e.area[2]-a.area.height-s,a.area.end.y=e.height-e.area[2]-s;break;case"left":a.area.start.x=e.area[3],a.area.end.x=e.area[3]+a.area.width;break;case"right":a.area.start.x=e.width-e.area[1]-a.area.width,a.area.end.x=e.width-e.area[1];break}return n.legendData=a,a}function Y(t,e,i,n,r){var a={angle:0,xAxisHeight:i.xAxisHeight},o=t.map((function(t){return A(t,e.xAxis.fontSize*e.pix||i.fontSize,r)})),s=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&s+2*i.xAxisTextPadding>n&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+s*Math.sin(a.angle)),a}function V(t,e,i,n){var r,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==n?C(t,e.categories.length):T(t);var o=[];r=r.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[0]):o.push(t.value):o.push(t)}));var s=0,c=0;if(o.length>0&&(s=Math.min.apply(this,o),c=Math.max.apply(this,o)),a>-1?("number"===typeof e.xAxis.data[a].min&&(s=Math.min(e.xAxis.data[a].min,s)),"number"===typeof e.xAxis.data[a].max&&(c=Math.max(e.xAxis.data[a].max,c))):("number"===typeof e.xAxis.min&&(s=Math.min(e.xAxis.min,s)),"number"===typeof e.xAxis.max&&(c=Math.max(e.xAxis.max,c))),s===c){var l=c||10;c+=l}for(var u=s,h=c,d=[],f=(h-u)/e.xAxis.splitNumber,p=0;p<=e.xAxis.splitNumber;p++)d.push(u+f*p);return d}function Z(t,e,i,n){var r=l({},{type:""},e.extra.bar),a={angle:0,xAxisHeight:i.xAxisHeight};a.ranges=V(t,e,i,r.type),a.rangesFormat=a.ranges.map((function(t){return t=u.toFixed(t,2),t}));var o=a.ranges.map((function(t){return t=u.toFixed(t,2),t}));a=Object.assign(a,dt(o,e,i));var s=a.eachSpacing,c=o.map((function(t){return A(t,e.xAxis.fontSize*e.pix||i.fontSize,n)})),h=Math.max.apply(this,c);return h+2*i.xAxisTextPadding>s&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*i.xAxisTextPadding+h*Math.sin(a.angle)),!0===e.xAxis.disabled&&(a.xAxisHeight=0),a}function Q(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,T(n))),c=[],l=function(r){var o=n[r],l={};l.color=o.color,l.legendShape=o.legendShape,l.pointShape=o.pointShape,l.data=[],o.data.forEach((function(n,r){var o={};o.angle=t[r],o.proportion=n/s,o.value=n,o.position=m(i*o.proportion*a*Math.cos(o.angle),i*o.proportion*a*Math.sin(o.angle),e),l.data.push(o)})),c.push(l)},u=0;u<n.length;u++)l(u);return c}function tt(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,r=0,a=0;a<t.length;a++){var o=t[a];o.data=null===o.data?0:o.data,n+=o.data}for(var s=0;s<t.length;s++){var c=t[s];c.data=null===c.data?0:c.data,c._proportion_=0===n?1/t.length*i:c.data/n*i,c._radius_=e}for(var l=0;l<t.length;l++){var u=t[l];u._start_=r,r+=2*u._proportion_*Math.PI}return t}function et(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]: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="funnel"==i?t[a].data/t[0].data*e*r:n*(t.length-a)/(n*t.length)*e*r,t[a]._proportion_=t[a].data/t[0].data;return"pyramid"!==i&&t.reverse(),t}function it(t,e,i,n){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0,o=0,s=[],c=0;c<t.length;c++){var l=t[c];l.data=null===l.data?0:l.data,a+=l.data,s.push(l.data)}for(var u=Math.min.apply(null,s),h=Math.max.apply(null,s),d=n-i,f=0;f<t.length;f++){var p=t[f];p.data=null===p.data?0:p.data,0===a?(p._proportion_=1/t.length*r,p._rose_proportion_=1/t.length*r):(p._proportion_=p.data/a*r,p._rose_proportion_="area"==e?1/t.length*r:p.data/a*r),p._radius_=i+d*((p.data-u)/(h-u))||n}for(var g=0;g<t.length;g++){var v=t[g];v._start_=o,o+=2*v._rose_proportion_*Math.PI}return t}function nt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==i&&(i=.999999);for(var n=0;n<t.length;n++){var r=t[n];r.data=null===r.data?0:r.data;var a=void 0;a="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,r._proportion_=a*r.data*i+e.startAngle,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function rt(t,e,i){for(var n=e-i+1,r=e,a=0;a<t.length;a++)t[a].value=null===t[a].value?0:t[a].value,t[a]._startAngle_=r,t[a]._endAngle_=n*t[a].value+e,t[a]._endAngle_>=2&&(t[a]._endAngle_=t[a]._endAngle_%2),r=t[a]._endAngle_;return t}function at(t,e,i){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){var a=t[r];if(a.data=null===a.data?0:a.data,"auto"==i.pointer.color){for(var o=0;o<e.length;o++)if(a.data<=e[o].value){a.color=e[o].color;break}}else a.color=i.pointer.color;var s=i.startAngle-i.endAngle+1;a._endAngle_=s*a.data+i.startAngle,a._oldAngle_=i.oldAngle,i.oldAngle<i.endAngle&&(a._oldAngle_+=2),a.data>=i.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*n+i.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*n,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return t}function ot(t,e,i,n){t=tt(t);for(var r=0,a=0;a<t.length;a++){var o=t[a],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):u.toFixed(100*o._proportion_)+"%";r=Math.max(r,A(s,o.textSize*n.pix||e.fontSize,i))}return r}function st(t,e,i,n,r,a){return t.map((function(t){if(null===t)return null;var r=0,o=0;return"mix"==a.type?(r=a.extra.mix.column.seriesGap*a.pix||0,o=a.extra.mix.column.categoryGap*a.pix||0):(r=a.extra.column.seriesGap*a.pix||0,o=a.extra.column.categoryGap*a.pix||0),r=Math.min(r,e/i),o=Math.min(o,e/i),t.width=Math.ceil((e-2*o-r*(i-1))/i),a.extra.mix&&a.extra.mix.column.width&&+a.extra.mix.column.width>0&&(t.width=Math.min(t.width,+a.extra.mix.column.width*a.pix)),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),t.width<=0&&(t.width=1),t.x+=(n+.5-i/2)*(t.width+r),t}))}function ct(t,e,i,n,r,a){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=a.extra.bar.seriesGap*a.pix||0,o=a.extra.bar.categoryGap*a.pix||0,r=Math.min(r,e/i),o=Math.min(o,e/i),t.width=Math.ceil((e-2*o-r*(i-1))/i),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(t.width=Math.min(t.width,+a.extra.bar.width*a.pix)),t.width<=0&&(t.width=1),t.y+=(n+.5-i/2)*(t.width+r),t}))}function lt(t,e,i,n,r,a,o){var s=a.extra.column.categoryGap*a.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),n>0&&(t.width-=2*o),t)}))}function ut(t,e,i,n,r,a,o){var s=a.extra.column.categoryGap*a.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(t.width=Math.min(t.width,+a.extra.column.width*a.pix)),t.width<=0&&(t.width=1),t)}))}function ht(t,e,i,n,r,a,o){var s=a.extra.bar.categoryGap*a.pix||0;return t.map((function(t,i){return null===t?null:(t.width=Math.ceil(e-2*s),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(t.width=Math.min(t.width,+a.extra.bar.width*a.pix)),t.width<=0&&(t.width=1),t)}))}function dt(t,e,i){var n=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var a=n/r,o=[],s=e.area[3],c=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*a)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*a):o.push(c)),{xAxisPoints:o,startX:s,endX:c,eachSpacing:a}}function ft(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=a.height-a.area[0]-a.area[2];return t.forEach((function(t,o){if(null===t)c.push(null);else{var u=[];t.forEach((function(t,c){var h={};h.x=n[o]+Math.round(r/2);var d=t.value||t,f=l*(d-e)/(i-e);f*=s,h.y=a.height-Math.round(f)-a.area[2],u.push(h)})),c.push(u)}})),c}function pt(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(c=a.xAxis.boundaryGap);var l=[],u=a.height-a.area[0]-a.area[2],h=a.width-a.area[1]-a.area[3];return t.forEach((function(t,o){if(null===t)l.push(null);else{var d={};d.color=t.color,d.x=n[o];var f,p,g,v=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)f=[].concat(a.chartData.xAxisData.ranges),p=f.shift(),g=f.pop(),v=t[1],d.x=a.area[3]+h*(t[0]-p)/(g-p),"bubble"==a.type&&(d.r=t[2],d.t=t[3]);else v=t.value;"center"==c&&(d.x+=r/2);var x=u*(v-e)/(i-e);x*=s,d.y=a.height-x-a.area[2],l.push(d)}})),l}function gt(t,e,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return t.forEach((function(t,r){if(null===t)c.push(null);else{var o={};o.color=t.color,o.y=n[r];var u=t;"object"===typeof t&&null!==t&&(u=t.value);var h=l*(u-e)/(i-e);h*=s,o.height=h,o.value=u,o.x=h+a.area[3],c.push(o)}})),c}function vt(t,e,i,n,r,a,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=a.height-a.area[0]-a.area[2];return t.forEach((function(t,o){if(null===t)u.push(null);else{var d={};if(d.color=t.color,d.x=n[o]+Math.round(r/2),s>0){for(var f=0,p=0;p<=s;p++)f+=c[p].data[o];var g=f-t,v=h*(f-e)/(i-e),x=h*(g-e)/(i-e)}else f=t,v=h*(f-e)/(i-e),x=0;var y=x;v*=l,y*=l,d.y=a.height-Math.round(v)-a.area[2],d.y0=a.height-Math.round(y)-a.area[2],u.push(d)}})),u}function xt(t,e,i,n,r,a,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],h=a.width-a.area[1]-a.area[3];return t.forEach((function(t,r){if(null===t)u.push(null);else{var o={};if(o.color=t.color,o.y=n[r],s>0){for(var d=0,f=0;f<=s;f++)d+=c[f].data[r];var p=d-t,g=h*(d-e)/(i-e),v=h*(p-e)/(i-e)}else d=t,g=h*(d-e)/(i-e),v=0;var x=v;g*=l,x*=l,o.height=g-x,o.x=a.area[3]+g,o.x0=a.area[3]+x,u.push(o)}})),u}function yt(t,e,i,n,r){var a;a="stack"==n?C(t,e.categories.length):T(t);var o=[];a=a.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),a.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=r.min||0,c=r.max||0;if(o.length>0&&(s=Math.min.apply(this,o),c=Math.max.apply(this,o)),s===c){var l=c||10;c+=l}for(var u=k(s,c),h=void 0===r.min||null===r.min?u.minRange:r.min,d=void 0===r.max||null===r.min?u.maxRange:r.max,f=[],p=(d-h)/e.yAxis.splitNumber,g=0;g<=e.yAxis.splitNumber;g++)f.push(h+p*g);return f.reverse()}function mt(t,e,i,n){var r=l({},{type:""},e.extra.column),a=e.yAxis.data.length,o=new Array(a);if(a>0){for(var s=0;s<a;s++){o[s]=[];for(var c=0;c<t.length;c++)t[c].index==s&&o[s].push(t[c])}for(var u=new Array(a),h=new Array(a),d=new Array(a),f=function(t){var a=e.yAxis.data[t];1==e.yAxis.disabled&&(a.disabled=!0),"categories"===a.type?(a.formatter||(a.formatter=function(t){return t+(a.unit||"")}),a.categories=a.categories||e.categories,u[t]=a.categories):(a.formatter||(a.formatter=function(t){return t.toFixed(a.tofix)+(a.unit||"")}),u[t]=yt(o[t],e,i,r.type,a,t));var s=a.fontSize*e.pix||i.fontSize;d[t]={position:a.position?a.position:"left",width:0},h[t]=u[t].map((function(e){return e=a.formatter(e),d[t].width=Math.max(d[t].width,A(e,s,n)+5),e}));var c=a.calibration?4*e.pix:0;d[t].width+=c+3*e.pix,!0===a.disabled&&(d[t].width=0)},p=0;p<a;p++)f(p)}else{u=new Array(1),h=new Array(1),d=new Array(1);"bar"===e.type?(u[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t){return t+(e.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t){return t.toFixed(e.yAxis.tofix)+(e.yAxis.unit||"")}),u[0]=yt(t,e,i,r.type,{})),d[0]={position:"left",width:0};var g=e.yAxis.fontSize*e.pix||i.fontSize;h[0]=u[0].map((function(t){return t=e.yAxis.formatter(t),d[0].width=Math.max(d[0].width,A(t,g,n)+5),t})),d[0].width+=3*e.pix,!0===e.yAxis.disabled?(d[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,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:u,yAxisWidth:d}}function bt(t,e,i,n,r){for(var a=[].concat(i.chartData.yAxisData.ranges),o=i.height-i.area[0]-i.area[2],s=i.area[0],c=[],l=0;l<a.length;l++){var u=a[l].shift(),h=a[l].pop(),d=u-(u-h)*(t-s)/o;d=i.yAxis.data[l].formatter?i.yAxis.data[l].formatter(d):d.toFixed(0),c.push(String(d))}return c}function _t(t,e){for(var i,n,r=e.height-e.area[0]-e.area[2],a=0;a<t.length;a++){t[a].yAxisIndex=t[a].yAxisIndex?t[a].yAxisIndex:0;var o=[].concat(e.chartData.yAxisData.ranges[t[a].yAxisIndex]);i=o.pop(),n=o.shift();var s=r*(t[a].value-i)/(n-i);t[a].y=e.height-Math.round(s)-e.area[2]}return t}function wt(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function St(t,e,i,n,r){if(n.beginPath(),"hollow"==r.dataPointShapeType?(n.setStrokeStyle(e),n.setFillStyle(r.background),n.setLineWidth(2*r.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(e),n.setLineWidth(1*r.pix)),"diamond"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x+2.5*r.pix,t.y),n.arc(t.x,t.y,3*r.pix,0,2*Math.PI,!1))}));else if("square"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===i)t.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===i)return;n.closePath(),n.fill(),n.stroke()}function kt(t,e,i,n){var r=t.title.fontSize||e.titleFontSize,a=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",c=t.title.color||t.fontColor,l=t.subtitle.color||t.fontColor,u=o?r:0,h=s?a:0,d=5;if(s){var f=A(s,a*t.pix,i),p=n.x-f/2+(t.subtitle.offsetX||0)*t.pix,g=n.y+a*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(g+=(u*t.pix+d)/2),i.beginPath(),i.setFontSize(a*t.pix),i.setFillStyle(l),i.fillText(s,p,g),i.closePath(),i.stroke()}if(o){var v=A(o,r*t.pix,i),x=n.x-v/2+(t.title.offsetX||0),y=n.y+r*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(y-=(h*t.pix+d)/2),i.beginPath(),i.setFontSize(r*t.pix),i.setFillStyle(c),i.fillText(o,x,y),i.closePath(),i.stroke()}}function At(t,e,i,n,r){var a=e.data,o=e.textOffset?e.textOffset:0;t.forEach((function(t,s){if(null!==t){n.beginPath();var c=e.textSize?e.textSize*r.pix:i.fontSize;n.setFontSize(c),n.setFillStyle(e.textColor||r.fontColor);var l=a[s];"object"===typeof a[s]&&null!==a[s]&&(l=a[s].constructor.toString().indexOf("Array")>-1?a[s][1]:a[s].value);var u=e.formatter?e.formatter(l,s):l;n.setTextAlign("center"),n.fillText(String(u),t.x,t.y-4+o*r.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Tt(t,e,i,n,r){var a=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,o){if(null!==t){n.beginPath();var s=e.textSize?e.textSize*r.pix:i.fontSize;n.setFontSize(s),n.setFillStyle(e.textColor||r.fontColor);var c=a[o];"object"===typeof a[o]&&null!==a[o]&&(c=a[o].value);var l=e.formatter?e.formatter(c,o):c;n.setTextAlign("left"),n.fillText(String(l),t.x+4*r.pix,t.y+s/2-3),n.closePath(),n.stroke()}}))}function Ct(t,e,i,n,r,a){e-=t.width/2+t.labelOffset*n.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,c=t.endNumber-t.startNumber,l=c/t.splitLine.splitNumber,u=t.startAngle,h=t.startNumber,d=0;d<t.splitLine.splitNumber+1;d++){var f={x:e*Math.cos(u*Math.PI),y:e*Math.sin(u*Math.PI)},p=t.formatter?t.formatter(h):h;f.x+=i.x-A(p,r.fontSize,a)/2,f.y+=i.y;var g=f.x,v=f.y;a.beginPath(),a.setFontSize(r.fontSize),a.setFillStyle(t.labelColor||n.fontColor),a.fillText(p,g,v+r.fontSize/2),a.closePath(),a.stroke(),u+=s,u>=2&&(u%=2),h+=l}}function Pt(t,e,i,n,r,a){var o=n.extra.radar||{};e+=r.radarLabelTextMargin*n.pix,t.forEach((function(t,s){var c={x:e*Math.cos(t),y:e*Math.sin(t)},l=m(c.x,c.y,i),h=l.x,d=l.y;u.approximatelyEqual(c.x,0)?h-=A(n.categories[s]||"",r.fontSize,a)/2:c.x<0&&(h-=A(n.categories[s]||"",r.fontSize,a)),a.beginPath(),a.setFontSize(r.fontSize),a.setFillStyle(o.labelColor||n.fontColor),a.fillText(n.categories[s]||"",h,d+r.fontSize/2),a.closePath(),a.stroke()}))}function Dt(t,e,i,n,r,a){for(var o=i.pieChartLinePadding,s=[],c=null,l=t.map((function(t,e,i){var n=t.formatter?t.formatter(t,e,i):u.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var a=t.color,o=t._radius_;return{arc:r,text:n,color:a,radius:o,textColor:t.textColor,textSize:t.textSize}})),h=0;h<l.length;h++){var d=l[h],f=Math.cos(d.arc)*(d.radius+o),p=Math.sin(d.arc)*(d.radius+o),g=Math.cos(d.arc)*d.radius,v=Math.sin(d.arc)*d.radius,x=f>=0?f+i.pieChartTextPadding:f-i.pieChartTextPadding,y=p,_=A(d.text,d.textSize*e.pix||i.fontSize,n),w=y;c&&u.isSameXCoordinateArea(c.start,{x:x})&&(w=x>0?Math.min(y,c.start.y):f<0||y>0?Math.max(y,c.start.y):Math.min(y,c.start.y)),x<0&&(x-=_);var S={lineStart:{x:g,y:v},lineEnd:{x:f,y:p},start:{x:x,y:w},width:_,height:i.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};c=b(S,c),s.push(c)}for(var k=0;k<s.length;k++){var T=s[k],C=m(T.lineStart.x,T.lineStart.y,a),P=m(T.lineEnd.x,T.lineEnd.y,a),D=m(T.start.x,T.start.y,a);n.setLineWidth(1*e.pix),n.setFontSize(T.textSize*e.pix||i.fontSize),n.beginPath(),n.setStrokeStyle(T.color),n.setFillStyle(T.color),n.moveTo(C.x,C.y);var O=T.start.x<0?D.x+T.width:D.x,L=T.start.x<0?D.x-5:D.x+5;n.quadraticCurveTo(P.x,P.y,O,D.y),n.moveTo(C.x,C.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(D.x+T.width,D.y),n.arc(O,D.y,2,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(T.textSize*e.pix||i.fontSize),n.setFillStyle(T.textColor||e.fontColor),n.fillText(T.text,L,D.y+3),n.closePath(),n.stroke(),n.closePath()}}function Ot(t,e,i,n){var r=e.extra.tooltip||{};r.gridType=void 0==r.gridType?"solid":r.gridType,r.dashLength=void 0==r.dashLength?4:r.dashLength;var a=e.area[0],o=e.height-e.area[2];if("dash"==r.gridType&&n.setLineDash([r.dashLength,r.dashLength]),n.setStrokeStyle(r.gridColor||"#cccccc"),n.setLineWidth(1*e.pix),n.beginPath(),n.moveTo(t,a),n.lineTo(t,o),n.stroke(),n.setLineDash([]),r.xAxisLabel){var s=e.categories[e.tooltip.index];n.setFontSize(i.fontSize);var c=A(s,i.fontSize,n),l=t-.5*c,u=o;n.beginPath(),n.setFillStyle(d(r.labelBgColor||i.toolTipBackground,r.labelBgOpacity||i.toolTipOpacity)),n.setStrokeStyle(r.labelBgColor||i.toolTipBackground),n.setLineWidth(1*e.pix),n.rect(l-i.toolTipPadding,u,c+2*i.toolTipPadding,i.fontSize+2*i.toolTipPadding),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(i.fontSize),n.setFillStyle(r.labelFontColor||e.fontColor),n.fillText(String(s),l,u+i.toolTipPadding+i.fontSize),n.closePath(),n.stroke()}}function Lt(t,e,i){for(var n=l({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],a=t.width-t.area[1],o=_t(n.data,t),s=0;s<o.length;s++){var c=l({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},o[s]);if("dash"==n.type&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(c.lineColor),i.setLineWidth(1*t.pix),i.beginPath(),i.moveTo(r,c.y),i.lineTo(a,c.y),i.stroke(),i.setLineDash([]),c.showLabel){var u=t.yAxis.formatter?t.yAxis.formatter(c.value):c.value;i.setFontSize(e.fontSize);var h=A(u,e.fontSize,i),f=(t.chartData.yAxisData.yAxisWidth[0].width,t.area[3]-h-2*e.toolTipPadding),p=t.area[3],g=p-f,v=p-e.toolTipPadding,x=c.y;i.setFillStyle(d(c.labelBgColor,c.labelBgOpacity)),i.setStrokeStyle(c.labelBgColor),i.setLineWidth(1*t.pix),i.beginPath(),i.rect(f,x-.5*e.fontSize-e.toolTipPadding,g,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.setFontSize(e.fontSize),i.setTextAlign("right"),i.setFillStyle(c.labelFontColor),i.fillText(String(u),v,x+.5*e.fontSize),i.stroke(),i.setTextAlign("left")}}}function Mt(t,e,i,n,r){var a=l({},{gridType:"solid",dashLength:4},t.extra.tooltip),o=t.area[3],s=t.width-t.area[1];if("dash"==a.gridType&&i.setLineDash([a.dashLength,a.dashLength]),i.setStrokeStyle(a.gridColor||"#cccccc"),i.setLineWidth(1*t.pix),i.beginPath(),i.moveTo(o,t.tooltip.offset.y),i.lineTo(s,t.tooltip.offset.y),i.stroke(),i.setLineDash([]),a.yAxisLabel)for(var c=bt(t.tooltip.offset.y,t.series,t,e,n),u=t.chartData.yAxisData.yAxisWidth,h=t.area[3],f=t.width-t.area[1],p=0;p<c.length;p++){i.setFontSize(e.fontSize);var g=A(c[p],e.fontSize,i),v=void 0,x=void 0,y=void 0;"left"==u[p].position?(v=h-u[p].width,x=Math.max(v,v+g+2*e.toolTipPadding)):(v=f,x=Math.max(v+u[p].width,v+g+2*e.toolTipPadding)),y=x-v;var m=v+(y-g)/2,b=t.tooltip.offset.y;i.beginPath(),i.setFillStyle(d(a.labelBgColor||e.toolTipBackground,a.labelBgOpacity||e.toolTipOpacity)),i.setStrokeStyle(a.labelBgColor||e.toolTipBackground),i.setLineWidth(1*t.pix),i.rect(v,b-.5*e.fontSize-e.toolTipPadding,y,e.fontSize+2*e.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(e.fontSize),i.setFillStyle(a.labelFontColor||t.fontColor),i.fillText(c[p],m,b+.5*e.fontSize),i.closePath(),i.stroke(),"left"==u[p].position?h-=u[p].width+t.yAxis.padding*t.pix:f+=u[p].width+t.yAxis.padding*t.pix}}function Ft(t,e,i,n,r){var a=l({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.column),o=e.area[0],s=e.height-e.area[2];n.beginPath(),n.setFillStyle(d(a.activeBgColor,a.activeBgOpacity)),n.rect(t-r/2,o,r,s-o),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function It(t,e,i,n,r){var a=l({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),o=e.area[3],s=e.width-e.area[1];n.beginPath(),n.setFillStyle(d(a.activeBgColor,a.activeBgOpacity)),n.rect(o,t-r/2,s-o,r),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Et(t,e,i,n,r,a,o){var s=l({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},i.extra.tooltip);1==s.showCategory&&i.categories&&t.unshift({text:i.categories[i.tooltip.index],color:null});var c=4*i.pix,u=5*i.pix,h=s.showArrow?8*i.pix:0,f=!1;"line"!=i.type&&"area"!=i.type&&"candle"!=i.type&&"mix"!=i.type||1==s.splitLine&&Ot(i.tooltip.offset.x,i,n,r),e=l({x:0,y:0},e),e.y-=8*i.pix;var p=t.map((function(t){return A(t.text,n.fontSize,r)})),g=c+u+4*n.toolTipPadding+Math.max.apply(null,p),v=2*n.toolTipPadding+t.length*n.toolTipLineHeight;if(0!=s.showBox){e.x-Math.abs(i._scrollDistance_||0)+h+g>i.width&&(f=!0),v+e.y>i.height&&(e.y=i.height-v),r.beginPath(),r.setFillStyle(d(s.bgColor||n.toolTipBackground,s.bgOpacity||n.toolTipOpacity)),r.setLineWidth(s.borderWidth*i.pix),r.setStrokeStyle(d(s.borderColor,s.borderOpacity));var x=s.borderRadius;f?(s.showArrow&&(r.moveTo(e.x,e.y+10*i.pix),r.lineTo(e.x-h,e.y+10*i.pix+5*i.pix)),r.arc(e.x-h-x,e.y+v-x,x,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(g)+x,e.y+v-x,x,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(g)+x,e.y+x,x,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-x,e.y+x,x,-Math.PI/2,0,!1),s.showArrow&&(r.lineTo(e.x-h,e.y+10*i.pix-5*i.pix),r.lineTo(e.x,e.y+10*i.pix))):(s.showArrow&&(r.moveTo(e.x,e.y+10*i.pix),r.lineTo(e.x+h,e.y+10*i.pix-5*i.pix)),r.arc(e.x+h+x,e.y+x,x,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(g)-x,e.y+x,x,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(g)-x,e.y+v-x,x,0,Math.PI/2,!1),r.arc(e.x+h+x,e.y+v-x,x,Math.PI/2,Math.PI,!1),s.showArrow&&(r.lineTo(e.x+h,e.y+10*i.pix+5*i.pix),r.lineTo(e.x,e.y+10*i.pix))),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke(),t.forEach((function(t,i){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var a=e.x+h+2*n.toolTipPadding,o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding+1;f&&(a=e.x-g-h+2*n.toolTipPadding),r.fillRect(a,o,c,n.fontSize),r.closePath()}})),t.forEach((function(t,i){var a=e.x+h+2*n.toolTipPadding+c+u;f&&(a=e.x-g-h+2*n.toolTipPadding+ +c+u);var o=e.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*i+n.toolTipPadding;r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(s.fontColor),r.fillText(t.text,a,o+n.fontSize),r.closePath(),r.stroke()}))}}function $t(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=l({},{type:"group",width:c/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var f=-2,p=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/c)-2,p=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===a&&Ft(e.tooltip.offset.x,e,n,r,c),u.customColor=S(u.linearType,u.customColor,t,n),t.forEach((function(o,l){var g,v,x;g=[].concat(e.chartData.yAxisData.ranges[o.index]),v=g.pop(),x=g.shift();var y=o.data;switch(u.type){case"group":var m=pt(y,v,x,s,c,e,n,a),b=vt(y,v,x,s,c,e,n,l,t,a);h.push(b),m=st(m,c,t.length,l,n,e);for(var _=0;_<m.length;_++){var w=m[_];if(null!==w&&_>f&&_<p){var S=w.x-w.width/2,k=e.height-w.y-e.area[2];r.beginPath();var A=w.color||o.color,T=w.color||o.color;if("none"!==u.linearType){var C=r.createLinearGradient(S,w.y,S,e.height-e.area[2]);"opacity"==u.linearType?(C.addColorStop(0,d(A,u.linearOpacity)),C.addColorStop(1,d(A,1))):(C.addColorStop(0,d(u.customColor[o.linearIndex],u.linearOpacity)),C.addColorStop(u.colorStop,d(u.customColor[o.linearIndex],u.linearOpacity)),C.addColorStop(1,d(A,1))),A=C}if(u.barBorderRadius&&4===u.barBorderRadius.length||!0===u.barBorderCircle){var P=S,D=w.y,O=w.width,L=e.height-e.area[2]-w.y;u.barBorderCircle&&(u.barBorderRadius=[O/2,O/2,0,0]);var M=i(u.barBorderRadius,4),F=M[0],I=M[1],E=M[2],$=M[3],j=Math.min(O/2,L/2);F=F>j?j:F,I=I>j?j:I,E=E>j?j:E,$=$>j?j:$,F=F<0?0:F,I=I<0?0:I,E=E<0?0:E,$=$<0?0:$,r.arc(P+F,D+F,F,-Math.PI,-Math.PI/2),r.arc(P+O-I,D+I,I,-Math.PI/2,0),r.arc(P+O-E,D+L-E,E,0,Math.PI/2),r.arc(P+$,D+L-$,$,Math.PI/2,Math.PI)}else r.moveTo(S,w.y),r.lineTo(S+w.width-2,w.y),r.lineTo(S+w.width-2,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.lineTo(S,w.y),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":m=vt(y,v,x,s,c,e,n,l,t,a);h.push(m),m=ut(m,c,t.length,l,n,e,t);for(var R=0;R<m.length;R++){var z=m[R];if(null!==z&&R>f&&R<p){r.beginPath();A=z.color||o.color,S=z.x-z.width/2+1,k=e.height-z.y-e.area[2];var N=e.height-z.y0-e.area[2];l>0&&(k-=N),r.setFillStyle(A),r.moveTo(S,z.y),r.fillRect(S,z.y,z.width-2,k),r.closePath(),r.fill()}}break;case"meter":m=pt(y,v,x,s,c,e,n,a);if(h.push(m),m=lt(m,c,t.length,l,n,e,u.meterBorder),0==l)for(var B=0;B<m.length;B++){var U=m[B];if(null!==U&&B>f&&B<p){r.beginPath(),r.setFillStyle(u.meterFillColor);S=U.x-U.width/2,k=e.height-U.y-e.area[2];if(u.barBorderCircle){var W=(U.width-2*u.meterBorder)/2;W>k&&(W=k),r.moveTo(S+u.meterBorder,e.height-e.area[2]),r.lineTo(S+u.meterBorder,U.y+W),r.arc(S+U.width/2,U.y+W,W,-Math.PI,0),r.lineTo(S+U.width-u.meterBorder,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,U.y),r.fillRect(S,U.y,U.width,k),r.closePath(),r.fill();if(u.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(u.meterBorder*e.pix),u.barBorderCircle){W=(U.width-u.meterBorder)/2;W>k&&(W=k),r.moveTo(S+.5*u.meterBorder,e.height-e.area[2]),r.lineTo(S+.5*u.meterBorder,U.y+W),r.arc(S+U.width/2,U.y+W-.5*u.meterBorder,W,-Math.PI,0),r.lineTo(S+U.width-.5*u.meterBorder,e.height-e.area[2])}else r.moveTo(S+.5*u.meterBorder,U.y+k),r.lineTo(S+.5*u.meterBorder,U.y+.5*u.meterBorder),r.lineTo(S+U.width-.5*u.meterBorder,U.y+.5*u.meterBorder),r.lineTo(S+U.width-.5*u.meterBorder,U.y+k);r.stroke()}}}else for(var q=0;q<m.length;q++){var H=m[q];if(null!==H&&q>f&&q<p){r.beginPath(),r.setFillStyle(H.color||o.color);S=H.x-H.width/2,k=e.height-H.y-e.area[2];if(u.barBorderCircle){W=H.width/2;W>k&&(W=k),r.moveTo(S,e.height-e.area[2]),r.arc(S+W,H.y+W,W,-Math.PI,-Math.PI/2),r.arc(S+H.width-W,H.y+W,W,-Math.PI/2,0),r.lineTo(S+H.width,e.height-e.area[2]),r.lineTo(S,e.height-e.area[2]),r.fill()}else r.moveTo(S,H.y),r.fillRect(S,H.y,H.width,k),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===a&&t.forEach((function(i,o){var l,h,d;l=[].concat(e.chartData.yAxisData.ranges[i.index]),h=l.pop(),d=l.shift();var f=i.data;switch(u.type){case"group":var p=pt(f,h,d,s,c,e,n,a);p=st(p,c,t.length,o,n,e),At(p,i,n,r,e);break;case"stack":p=vt(f,h,d,s,c,e,n,o,t,a);At(p,i,n,r,e);break;case"meter":p=pt(f,h,d,s,c,e,n,a);At(p,i,n,r,e);break}})),r.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:c}}function jt(t,e,n,r){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length,c=0;c<e.categories.length;c++)o.push(e.area[0]+s/2+s*c);var u=l({},{type:"group",width:s/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),h=[];r.save();var f=-2,p=o.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===a&&It(e.tooltip.offset.y,e,n,r,s),u.customColor=S(u.linearType,u.customColor,t,n),t.forEach((function(c,l){var g,v,x;g=[].concat(e.chartData.xAxisData.ranges),x=g.pop(),v=g.shift();var y=c.data;switch(u.type){case"group":var m=gt(y,v,x,o,s,e,n,a),b=xt(y,v,x,o,s,e,n,l,t,a);h.push(b),m=ct(m,s,t.length,l,n,e);for(var _=0;_<m.length;_++){var w=m[_];if(null!==w&&_>f&&_<p){var S=e.area[3],k=w.y-w.width/2;w.height;r.beginPath();var A=w.color||c.color,T=w.color||c.color;if("none"!==u.linearType){var C=r.createLinearGradient(S,w.y,w.x,w.y);"opacity"==u.linearType?(C.addColorStop(0,d(A,u.linearOpacity)),C.addColorStop(1,d(A,1))):(C.addColorStop(0,d(u.customColor[c.linearIndex],u.linearOpacity)),C.addColorStop(u.colorStop,d(u.customColor[c.linearIndex],u.linearOpacity)),C.addColorStop(1,d(A,1))),A=C}if(u.barBorderRadius&&4===u.barBorderRadius.length||!0===u.barBorderCircle){var P=S,D=w.width,O=w.y-w.width/2,L=w.heigh;u.barBorderCircle&&(u.barBorderRadius=[D/2,D/2,0,0]);var M=i(u.barBorderRadius,4),F=M[0],I=M[1],E=M[2],$=M[3],j=Math.min(D/2,L/2);F=F>j?j:F,I=I>j?j:I,E=E>j?j:E,$=$>j?j:$,F=F<0?0:F,I=I<0?0:I,E=E<0?0:E,$=$<0?0:$,r.arc(P+$,O+$,$,-Math.PI,-Math.PI/2),r.arc(w.x-F,O+F,F,-Math.PI/2,0),r.arc(w.x-I,O+D-I,I,0,Math.PI/2),r.arc(P+E,O+D-E,E,Math.PI/2,Math.PI)}else r.moveTo(S,k),r.lineTo(w.x,k),r.lineTo(w.x,k+w.width-2),r.lineTo(S,k+w.width-2),r.lineTo(S,k),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(A),r.closePath(),r.fill()}}break;case"stack":m=xt(y,v,x,o,s,e,n,l,t,a);h.push(m),m=ht(m,s,t.length,l,n,e,t);for(var R=0;R<m.length;R++){var z=m[R];if(null!==z&&R>f&&R<p){r.beginPath();A=z.color||c.color,S=z.x0;r.setFillStyle(A),r.moveTo(S,z.y-z.width/2),r.fillRect(S,z.y-z.width/2,z.height,z.width-2),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===a&&t.forEach((function(i,c){var l,h,d;l=[].concat(e.chartData.xAxisData.ranges),d=l.pop(),h=l.shift();var f=i.data;switch(u.type){case"group":var p=gt(f,h,d,o,s,e,n,a);p=ct(p,s,t.length,c,n,e),Tt(p,i,n,r,e);break;case"stack":p=xt(f,h,d,o,s,e,n,c,t,a);Tt(p,i,n,r,e);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:s}}function Rt(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=l({},{color:{},average:{}},i.extra.candle);o.color=l({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=l({},{show:!1,name:[],day:[],color:n.color},o.average),i.extra.candle=o;var s=i.chartData.xAxisData,c=s.xAxisPoints,u=s.eachSpacing,h=[];r.save();var d=-2,f=c.length+2,p=0,g=i.width+u;return i._scrollDistance_&&0!==i._scrollDistance_&&!0===i.enableScroll&&(r.translate(i._scrollDistance_,0),d=Math.floor(-i._scrollDistance_/u)-2,f=d+i.xAxis.itemCount+4,p=-i._scrollDistance_-2*u+i.area[3],g=p+(i.xAxis.itemCount+4)*u),(o.average.show||e)&&e.forEach((function(t,e){var o,s,l;o=[].concat(i.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();for(var h=t.data,d=pt(h,s,l,c,u,i,n,a),f=J(d,t),v=0;v<f.length;v++){var x=f[v];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===x.length)r.moveTo(x[0].x,x[0].y),r.arc(x[0].x,x[0].y,1,0,2*Math.PI);else{r.moveTo(x[0].x,x[0].y);for(var m=0,b=0;b<x.length;b++){var _=x[b];if(0==m&&_.x>p&&(r.moveTo(_.x,_.y),m=1),b>0&&_.x>p&&_.x<g){var w=y(x,b-1);r.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,_.x,_.y)}}r.moveTo(x[0].x,x[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var s,l,p;s=[].concat(i.chartData.yAxisData.ranges[t.index]),l=s.pop(),p=s.shift();var g=t.data,v=ft(g,l,p,c,u,i,n,a);h.push(v);for(var x=J(v,t),y=0;y<x[0].length;y++)if(y>d&&y<f){var m=x[0][y];r.beginPath(),g[y][1]-g[y][0]>0?(r.setStrokeStyle(o.color.upLine),r.setFillStyle(o.color.upFill),r.setLineWidth(1*i.pix),r.moveTo(m[3].x,m[3].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[1].x-u/4,m[1].y),r.lineTo(m[0].x-u/4,m[0].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[2].x,m[2].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[0].x+u/4,m[0].y),r.lineTo(m[1].x+u/4,m[1].y),r.lineTo(m[1].x,m[1].y),r.moveTo(m[3].x,m[3].y)):(r.setStrokeStyle(o.color.downLine),r.setFillStyle(o.color.downFill),r.setLineWidth(1*i.pix),r.moveTo(m[3].x,m[3].y),r.lineTo(m[0].x,m[0].y),r.lineTo(m[0].x-u/4,m[0].y),r.lineTo(m[1].x-u/4,m[1].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[2].x,m[2].y),r.lineTo(m[1].x,m[1].y),r.lineTo(m[1].x+u/4,m[1].y),r.lineTo(m[0].x+u/4,m[0].y),r.lineTo(m[0].x,m[0].y),r.moveTo(m[3].x,m[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:c,calPoints:h,eachSpacing:u}}function zt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=e.height-e.area[2],h=[];n.save();var f=0,p=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),f=-e._scrollDistance_-2*c+e.area[3],p=f+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var l,g,v;l=[].concat(e.chartData.yAxisData.ranges[t.index]),g=l.pop(),v=l.shift();var x=t.data,m=pt(x,g,v,s,c,e,i,r);h.push(m);for(var b=J(m,t),_=0;_<b.length;_++){var w=b[_];if(n.beginPath(),n.setStrokeStyle(d(t.color,a.opacity)),a.gradient){var S=n.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);S.addColorStop("0",d(t.color,a.opacity)),S.addColorStop("1.0",d("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(d(t.color,a.opacity));if(n.setLineWidth(a.width*e.pix),w.length>1){var k=w[0],A=w[w.length-1];n.moveTo(k.x,k.y);var T=0;if("curve"===a.type)for(var C=0;C<w.length;C++){var P=w[C];if(0==T&&P.x>f&&(n.moveTo(P.x,P.y),T=1),C>0&&P.x>f&&P.x<p){var D=y(w,C-1);n.bezierCurveTo(D.ctrA.x,D.ctrA.y,D.ctrB.x,D.ctrB.y,P.x,P.y)}}if("straight"===a.type)for(var O=0;O<w.length;O++){var L=w[O];0==T&&L.x>f&&(n.moveTo(L.x,L.y),T=1),O>0&&L.x>f&&L.x<p&&n.lineTo(L.x,L.y)}if("step"===a.type)for(var M=0;M<w.length;M++){var F=w[M];0==T&&F.x>f&&(n.moveTo(F.x,F.y),T=1),M>0&&F.x>f&&F.x<p&&(n.lineTo(F.x,w[M-1].y),n.lineTo(F.x,F.y))}n.lineTo(A.x,u),n.lineTo(k.x,u),n.lineTo(k.x,k.y)}else{var I=w[0];n.moveTo(I.x-c/2,I.y),n.lineTo(I.x+c/2,I.y),n.lineTo(I.x+c/2,u),n.lineTo(I.x-c/2,u),n.moveTo(I.x-c/2,I.y)}if(n.closePath(),n.fill(),a.addLine){if("dash"==t.lineType){var E=t.dashLength?t.dashLength:8;E*=e.pix,n.setLineDash([E,E])}if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(a.width*e.pix),1===w.length)n.moveTo(w[0].x,w[0].y),n.arc(w[0].x,w[0].y,1,0,2*Math.PI);else{n.moveTo(w[0].x,w[0].y);var $=0;if("curve"===a.type)for(var j=0;j<w.length;j++){var R=w[j];if(0==$&&R.x>f&&(n.moveTo(R.x,R.y),$=1),j>0&&R.x>f&&R.x<p){var z=y(w,j-1);n.bezierCurveTo(z.ctrA.x,z.ctrA.y,z.ctrB.x,z.ctrB.y,R.x,R.y)}}if("straight"===a.type)for(var N=0;N<w.length;N++){var B=w[N];0==$&&B.x>f&&(n.moveTo(B.x,B.y),$=1),N>0&&B.x>f&&B.x<p&&n.lineTo(B.x,B.y)}if("step"===a.type)for(var U=0;U<w.length;U++){var W=w[U];0==$&&W.x>f&&(n.moveTo(W.x,W.y),$=1),U>0&&W.x>f&&W.x<p&&(n.lineTo(W.x,w[U-1].y),n.lineTo(W.x,W.y))}n.moveTo(w[0].x,w[0].y)}n.stroke(),n.setLineDash([])}}!1!==e.dataPointShape&&St(m,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var o,l,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),l=o.pop(),u=o.shift();var h=t.data,d=pt(h,l,u,s,c,e,i,r);At(d,t,i,n,e)})),n.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:c}}function Nt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=(l({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),o=a.xAxisPoints,s=a.eachSpacing,c=[];n.save();var u=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),u=-e._scrollDistance_-2*s+e.area[3],u+(e.xAxis.itemCount+4)*s),t.forEach((function(t,a){var c,l,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),l=c.pop(),u=c.shift();var h=t.data,d=pt(h,l,u,o,s,e,i,r);n.beginPath(),n.setStrokeStyle(t.color),n.setFillStyle(t.color),n.setLineWidth(1*e.pix);var f=t.pointShape;if("diamond"===f)d.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y),n.lineTo(t.x,t.y+4.5),n.lineTo(t.x+4.5,t.y),n.lineTo(t.x,t.y-4.5))}));else if("circle"===f)d.forEach((function(t,i){null!==t&&(n.moveTo(t.x+2.5*e.pix,t.y),n.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===f)d.forEach((function(t,e){null!==t&&(n.moveTo(t.x-3.5,t.y-3.5),n.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===f)d.forEach((function(t,e){null!==t&&(n.moveTo(t.x,t.y-4.5),n.lineTo(t.x-4.5,t.y+4.5),n.lineTo(t.x+4.5,t.y+4.5),n.lineTo(t.x,t.y-4.5))}));else if("triangle"===f)return;n.closePath(),n.fill(),n.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var c,l,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),l=c.pop(),u=c.shift();var h=t.data,d=pt(h,l,u,o,s,e,i,r);At(d,t,i,n,e)})),n.restore(),{xAxisPoints:o,calPoints:c,eachSpacing:s}}function Bt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{opacity:1,border:2},e.extra.bubble),o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=[];n.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*c+e.area[3],h+(e.xAxis.itemCount+4)*c),t.forEach((function(o,l){var u,h,f;u=[].concat(e.chartData.yAxisData.ranges[o.index]),h=u.pop(),f=u.shift();var p=o.data,g=pt(p,h,f,s,c,e,i,r);n.beginPath(),n.setStrokeStyle(o.color),n.setLineWidth(a.border*e.pix),n.setFillStyle(d(o.color,a.opacity)),g.forEach((function(t,i){n.moveTo(t.x+t.r,t.y),n.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==e.dataLabel&&1===r&&g.forEach((function(r,a){n.beginPath();var o=t.textSize*e.pix||i.fontSize;n.setFontSize(o),n.setFillStyle(t.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(r.t),r.x,r.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:c}}function Ut(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"straight",width:2},e.extra.line);a.width*=e.pix;var o=e.chartData.xAxisData,s=o.xAxisPoints,c=o.eachSpacing,u=[];n.save();var h=0,d=e.width+c;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(n.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*c+e.area[3],d=h+(e.xAxis.itemCount+4)*c),t.forEach((function(t,o){var l,f,p;l=[].concat(e.chartData.yAxisData.ranges[t.index]),f=l.pop(),p=l.shift();var g=t.data,v=pt(g,f,p,s,c,e,i,r);u.push(v);var x=J(v,t);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pix,n.setLineDash([m,m])}n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(a.width),x.forEach((function(t,e){if(1===t.length)n.moveTo(t[0].x,t[0].y),n.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{n.moveTo(t[0].x,t[0].y);var i=0;if("curve"===a.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==i&&o.x>h&&(n.moveTo(o.x,o.y),i=1),r>0&&o.x>h&&o.x<d){var s=y(t,r-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===a.type)for(var c=0;c<t.length;c++){var l=t[c];0==i&&l.x>h&&(n.moveTo(l.x,l.y),i=1),c>0&&l.x>h&&l.x<d&&n.lineTo(l.x,l.y)}if("step"===a.type)for(var u=0;u<t.length;u++){var f=t[u];0==i&&f.x>h&&(n.moveTo(f.x,f.y),i=1),u>0&&f.x>h&&f.x<d&&(n.lineTo(f.x,t[u-1].y),n.lineTo(f.x,f.y))}n.moveTo(t[0].x,t[0].y)}})),n.stroke(),n.setLineDash([]),!1!==e.dataPointShape&&St(v,t.color,t.pointShape,n,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,a){var o,l,u;o=[].concat(e.chartData.yAxisData.ranges[t.index]),l=o.pop(),u=o.shift();var h=t.data,d=pt(h,l,u,s,c,e,i,r);At(d,t,i,n,e)})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:c}}function Wt(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=l({},{width:u/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),s=e.chartData.xAxisData,c=s.xAxisPoints,u=s.eachSpacing,h=e.height-e.area[2],f=[],p=0,g=0;t.forEach((function(t,e){"column"==t.type&&(g+=1)})),r.save();var v=-2,x=c.length+2,m=0,b=e.width+u;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),v=Math.floor(-e._scrollDistance_/u)-2,x=v+e.xAxis.itemCount+4,m=-e._scrollDistance_-2*u+e.area[3],b=m+(e.xAxis.itemCount+4)*u),o.customColor=S(o.linearType,o.customColor,t,n),t.forEach((function(t,s){var l,_,w;l=[].concat(e.chartData.yAxisData.ranges[t.index]),_=l.pop(),w=l.shift();var S=t.data,k=pt(S,_,w,c,u,e,n,a);if(f.push(k),"column"==t.type){k=st(k,u,g,p,n,e);for(var A=0;A<k.length;A++){var T=k[A];if(null!==T&&A>v&&A<x){var C=T.x-T.width/2;e.height,T.y,e.area[2];r.beginPath();var P=T.color||t.color,D=T.color||t.color;if("none"!==o.linearType){var O=r.createLinearGradient(C,T.y,C,e.height-e.area[2]);"opacity"==o.linearType?(O.addColorStop(0,d(P,o.linearOpacity)),O.addColorStop(1,d(P,1))):(O.addColorStop(0,d(o.customColor[t.linearIndex],o.linearOpacity)),O.addColorStop(o.colorStop,d(o.customColor[t.linearIndex],o.linearOpacity)),O.addColorStop(1,d(P,1))),P=O}if(o.barBorderRadius&&4===o.barBorderRadius.length||o.barBorderCircle){var L=C,M=T.y,F=T.width,I=e.height-e.area[2]-T.y;o.barBorderCircle&&(o.barBorderRadius=[F/2,F/2,0,0]);var E=i(o.barBorderRadius,4),$=E[0],j=E[1],R=E[2],z=E[3],N=Math.min(F/2,I/2);$=$>N?N:$,j=j>N?N:j,R=R>N?N:R,z=z>N?N:z,$=$<0?0:$,j=j<0?0:j,R=R<0?0:R,z=z<0?0:z,r.arc(L+$,M+$,$,-Math.PI,-Math.PI/2),r.arc(L+F-j,M+j,j,-Math.PI/2,0),r.arc(L+F-R,M+I-R,R,0,Math.PI/2),r.arc(L+z,M+I-z,z,Math.PI/2,Math.PI)}else r.moveTo(C,T.y),r.lineTo(C+T.width-2,T.y),r.lineTo(C+T.width-2,e.height-e.area[2]),r.lineTo(C,e.height-e.area[2]),r.lineTo(C,T.y),r.setLineWidth(1),r.setStrokeStyle(D);r.setFillStyle(P),r.closePath(),r.fill()}}p+=1}if("area"==t.type)for(var B=J(k,t),U=0;U<B.length;U++){var W=B[U];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(d(t.color,.2)),r.setLineWidth(2*e.pix),W.length>1){var q=W[0],H=W[W.length-1];r.moveTo(q.x,q.y);var G=0;if("curve"===t.style)for(var K=0;K<W.length;K++){var X=W[K];if(0==G&&X.x>m&&(r.moveTo(X.x,X.y),G=1),K>0&&X.x>m&&X.x<b){var Y=y(W,K-1);r.bezierCurveTo(Y.ctrA.x,Y.ctrA.y,Y.ctrB.x,Y.ctrB.y,X.x,X.y)}}else for(var V=0;V<W.length;V++){var Z=W[V];0==G&&Z.x>m&&(r.moveTo(Z.x,Z.y),G=1),V>0&&Z.x>m&&Z.x<b&&r.lineTo(Z.x,Z.y)}r.lineTo(H.x,h),r.lineTo(q.x,h),r.lineTo(q.x,q.y)}else{var Q=W[0];r.moveTo(Q.x-u/2,Q.y),r.lineTo(Q.x+u/2,Q.y),r.lineTo(Q.x+u/2,h),r.lineTo(Q.x-u/2,h),r.moveTo(Q.x-u/2,Q.y)}r.closePath(),r.fill()}if("line"==t.type){var tt=J(k,t);tt.forEach((function(i,n){if("dash"==t.lineType){var a=t.dashLength?t.dashLength:8;a*=e.pix,r.setLineDash([a,a])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pix),1===i.length)r.moveTo(i[0].x,i[0].y),r.arc(i[0].x,i[0].y,1,0,2*Math.PI);else{r.moveTo(i[0].x,i[0].y);var o=0;if("curve"==t.style)for(var s=0;s<i.length;s++){var c=i[s];if(0==o&&c.x>m&&(r.moveTo(c.x,c.y),o=1),s>0&&c.x>m&&c.x<b){var l=y(i,s-1);r.bezierCurveTo(l.ctrA.x,l.ctrA.y,l.ctrB.x,l.ctrB.y,c.x,c.y)}}else for(var u=0;u<i.length;u++){var h=i[u];0==o&&h.x>m&&(r.moveTo(h.x,h.y),o=1),u>0&&h.x>m&&h.x<b&&r.lineTo(h.x,h.y)}r.moveTo(i[0].x,i[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&St(k,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===a){p=0;t.forEach((function(t,i){var o,s,l;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),l=o.shift();var h=t.data,d=pt(h,s,l,c,u,e,n,a);"column"!==t.type?At(d,t,n,r,e):(d=st(d,u,g,p,n,e),At(d,t,n,r,e),p+=1)}))}return r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}function qt(t,e,i,n,r,a){var o=t.extra.tooltip||{};o.horizentalLine&&t.tooltip&&1===n&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&Mt(t,e,i,r,a),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===n&&Et(t.tooltip.textList,t.tooltip.offset,t,e,i,r,a),i.restore()}function Ht(t,e,i,n){var r=e.chartData.xAxisData,a=r.xAxisPoints,o=r.startX,s=r.endX,c=r.eachSpacing,l="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(l=e.xAxis.boundaryGap);var u=e.height-e.area[2],h=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var d=e.height-e.area[2]+i.xAxisHeight,f=s-o,p=c*(a.length-1),g=f*f/p,v=0;e._scrollDistance_&&(v=-e._scrollDistance_*f/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(o,d),n.lineTo(s,d),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*e.pix),n.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),n.moveTo(o+v,d),n.lineTo(o+v+g,d),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),a.forEach((function(t,i){i>0&&(n.beginPath(),n.moveTo(t-c/2,u),n.lineTo(t-c/2,u+3*e.pix),n.closePath(),n.stroke())}))),!0!==e.xAxis.disableGrid&&(n.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&n.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,a.forEach((function(t,i){i%e.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(t,u),n.lineTo(t,h),n.stroke())})),n.setLineDash([])),!0!==e.xAxis.disabled){var y=t.length;e.xAxis.labelCount&&(y=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,y-=1);for(var m=Math.ceil(t.length/y),b=[],_=t.length,w=0;w<_;w++)w%m!==0?b.push(""):b.push(t[w]);b[_-1]=t[_-1];var S=e.xAxis.fontSize*e.pix||i.fontSize;0===i._xAxisTextAngle_?b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=-A(String(o),S,n)/2;"center"==l&&(s+=c/2);var h=0;e.xAxis.scrollShow&&(h=6*e.pix),n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor),n.fillText(String(o),a[r]+s,u+S+(i.xAxisHeight-h-S)/2),n.closePath(),n.stroke()})):b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t;n.save(),n.beginPath(),n.setFontSize(S),n.setFillStyle(e.xAxis.fontColor||e.fontColor);var s=A(String(o),S,n),h=-s;"center"==l&&(h+=c/2);var d=x(a[r]+c/2,u+S/2+5,e.height),f=d.transX,p=d.transY;n.rotate(-1*i._xAxisTextAngle_),n.translate(f,p),n.fillText(String(o),a[r]+h,u+S+5),n.closePath(),n.stroke(),n.restore()}))}n.restore(),e.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(e.xAxis.axisLineColor),n.setLineWidth(1*e.pix),n.moveTo(o,e.height-e.area[2]),n.lineTo(s,e.height-e.area[2]),n.stroke())}function Gt(t,e,i,n){if(!0!==e.yAxis.disableGrid){var r=e.height-e.area[0]-e.area[2],a=r/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,c=e.chartData.xAxisData.eachSpacing,l=c*(s.length-1),u=o+l,h=[],d=1;!1===e.xAxis.axisLine&&(d=0);for(var f=d;f<e.yAxis.splitNumber+1;f++)h.push(e.height-e.area[2]-a*f);n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&n.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&n.setLineDash([e.yAxis.dashLength*e.pix,e.yAxis.dashLength*e.pix]),n.setStrokeStyle(e.yAxis.gridColor),n.setLineWidth(1*e.pix),h.forEach((function(t,e){n.beginPath(),n.moveTo(o,t),n.lineTo(u,t),n.stroke()})),n.setLineDash([]),n.restore()}}function Kt(t,e,i,n){if(!0!==e.yAxis.disabled){var r=e.height-e.area[0]-e.area[2],a=r/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],c=e.height-e.area[2],l=c+i.xAxisHeight;e.xAxis.scrollShow&&(l-=3*e.pix),e.xAxis.rotateLabel&&(l=e.height-e.area[2]+e.fontSize*e.pix/2),n.beginPath(),n.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&n.fillRect(0,0,o,l),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&n.fillRect(s,0,e.width,l),n.closePath(),n.stroke();var u=e.area[3],h=e.width-e.area[1],d=e.area[3]+(e.width-e.area[1]-e.area[3])/2;if(e.yAxis.data)for(var f=function(t){var o=e.yAxis.data[t];if(g=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)g.push(e.area[0]+r/o.categories.length/2+r/o.categories.length*s);else for(var l=0;l<=e.yAxis.splitNumber;l++)g.push(e.area[0]+a*l);if(!0!==o.disabled){var f=e.chartData.yAxisData.rangesFormat[t],p=o.fontSize?o.fontSize*e.pix:i.fontSize,v=e.chartData.yAxisData.yAxisWidth[t],x=o.textAlign||"right";if(f.forEach((function(t,i){var r=g[i]?g[i]:c;n.beginPath(),n.setFontSize(p),n.setLineWidth(1*e.pix),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setFillStyle(o.fontColor||e.fontColor);var a=0,s=4*e.pix;if("left"==v.position){switch(1==o.calibration&&(n.moveTo(u,r),n.lineTo(u-3*e.pix,r),s+=3*e.pix),x){case"left":n.setTextAlign("left"),a=u-v.width;break;case"right":n.setTextAlign("right"),a=u-s;break;default:n.setTextAlign("center"),a=u-v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}else if("right"==v.position){switch(1==o.calibration&&(n.moveTo(h,r),n.lineTo(h+3*e.pix,r),s+=3*e.pix),x){case"left":n.setTextAlign("left"),a=h+s;break;case"right":n.setTextAlign("right"),a=h+v.width;break;default:n.setTextAlign("center"),a=h+v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}else if("center"==v.position){switch(1==o.calibration&&(n.moveTo(d,r),n.lineTo(d-3*e.pix,r),s+=3*e.pix),x){case"left":n.setTextAlign("left"),a=d-v.width;break;case"right":n.setTextAlign("right"),a=d-s;break;default:n.setTextAlign("center"),a=d-v.width/2}n.fillText(String(t),a,r+p/2-3*e.pix)}n.closePath(),n.stroke(),n.setTextAlign("left")})),!1!==o.axisLine&&(n.beginPath(),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setLineWidth(1*e.pix),"left"==v.position?(n.moveTo(u,e.height-e.area[2]),n.lineTo(u,e.area[0])):"right"==v.position?(n.moveTo(h,e.height-e.area[2]),n.lineTo(h,e.area[0])):"center"==v.position&&(n.moveTo(d,e.height-e.area[2]),n.lineTo(d,e.area[0])),n.stroke()),e.yAxis.showTitle){var y=o.titleFontSize*e.pix||i.fontSize,m=o.title;n.beginPath(),n.setFontSize(y),n.setFillStyle(o.titleFontColor||e.fontColor),"left"==v.position?n.fillText(m,u-A(m,y,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==v.position?n.fillText(m,h-A(m,y,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==v.position&&n.fillText(m,d-A(m,y,n)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),n.closePath(),n.stroke()}"left"==v.position?u-=v.width+e.yAxis.padding*e.pix:h+=v.width+e.yAxis.padding*e.pix}},p=0;p<e.yAxis.data.length;p++){var g;f(p)}}}function Jt(t,e,i,n,r){if(!1!==e.legend.show){var a=r.legendData,o=a.points,s=a.area,c=e.legend.padding*e.pix,l=e.legend.fontSize*e.pix,u=15*e.pix,h=5*e.pix,d=e.legend.itemGap*e.pix,f=Math.max(e.legend.lineHeight*e.pix,l);n.beginPath(),n.setLineWidth(e.legend.borderWidth*e.pix),n.setStrokeStyle(e.legend.borderColor),n.setFillStyle(e.legend.backgroundColor),n.moveTo(s.start.x,s.start.y),n.rect(s.start.x,s.start.y,s.width,s.height),n.closePath(),n.fill(),n.stroke(),o.forEach((function(t,r){var o=0,p=0;o=a.widthArr[r],p=a.heightArr[r];var g=0,v=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":g=s.start.x+c;break;case"right":g=s.start.x+s.width-o;break;default:g=s.start.x+(s.width-o)/2}v=s.start.y+c+r*f}else o=0==r?0:a.widthArr[r-1],g=s.start.x+c+o,v=s.start.y+c+(s.height-p)/2;n.setFontSize(i.fontSize);for(var x=0;x<t.length;x++){var y=t[x];switch(y.area=[0,0,0,0],y.area[0]=g,y.area[1]=v,y.area[3]=v+f,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(y.show?y.color:e.legend.hiddenColor),n.setFillStyle(y.show?y.color:e.legend.hiddenColor),y.legendShape){case"line":n.moveTo(g,v+.5*f-2*e.pix),n.fillRect(g,v+.5*f-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":n.moveTo(g+7.5*e.pix,v+.5*f-5*e.pix),n.lineTo(g+2.5*e.pix,v+.5*f+5*e.pix),n.lineTo(g+12.5*e.pix,v+.5*f+5*e.pix),n.lineTo(g+7.5*e.pix,v+.5*f-5*e.pix);break;case"diamond":n.moveTo(g+7.5*e.pix,v+.5*f-5*e.pix),n.lineTo(g+2.5*e.pix,v+.5*f),n.lineTo(g+7.5*e.pix,v+.5*f+5*e.pix),n.lineTo(g+12.5*e.pix,v+.5*f),n.lineTo(g+7.5*e.pix,v+.5*f-5*e.pix);break;case"circle":n.moveTo(g+7.5*e.pix,v+.5*f),n.arc(g+7.5*e.pix,v+.5*f,5*e.pix,0,2*Math.PI);break;case"rect":n.moveTo(g,v+.5*f-5*e.pix),n.fillRect(g,v+.5*f-5*e.pix,15*e.pix,10*e.pix);break;case"square":n.moveTo(g+5*e.pix,v+.5*f-5*e.pix),n.fillRect(g+5*e.pix,v+.5*f-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:n.moveTo(g,v+.5*f-5*e.pix),n.fillRect(g,v+.5*f-5*e.pix,15*e.pix,10*e.pix)}n.closePath(),n.fill(),n.stroke(),g+=u+h;var m=.5*f+.5*l-2;n.beginPath(),n.setFontSize(l),n.setFillStyle(y.show?e.legend.fontColor:e.legend.hiddenColor),n.fillText(y.name,g,v+m),n.closePath(),n.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(g+=A(y.name,l,n)+d,y.area[2]=g):(y.area[2]=g+A(y.name,l,n)+d,g-=u+h,v+=f)}}))}}function Xt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),o={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=a.activeRadius*e.pix);var s=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);a.customRadius>0&&(s=a.customRadius*e.pix),t=tt(t,s,r);var c=a.activeRadius*e.pix;if(a.customColor=S(a.linearType,a.customColor,t,i),t=t.map((function(t){return t._start_+=a.offsetAngle*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(d(t.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_+c,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var r,s=t.color;"custom"==a.linearType&&(r=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,d(a.customColor[t.linearIndex],1)),r.addColorStop(1,d(t.color,1)),s=r);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),"ring"===e.type){var u=.6*s;"number"===typeof a.ringWidth&&a.ringWidth>0&&(u=Math.max(0,s-a.ringWidth*e.pix)),n.beginPath(),n.setFillStyle(a.centerColor),n.moveTo(o.x,o.y),n.arc(o.x,o.y,u,0,2*Math.PI),n.closePath(),n.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){h=!0;break}h&&Dt(t,e,i,n,s,o)}return 1===r&&"ring"===e.type&&kt(e,i,n,o),{center:o,radius:s,series:t}}function Yt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==i.pieChartLinePadding&&(i.pieChartLinePadding=a.activeRadius*e.pix);var o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=Math.min((e.width-e.area[1]-e.area[3])/2-i.pieChartLinePadding-i.pieChartTextPadding-i._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-i.pieChartLinePadding-i.pieChartTextPadding),c=a.minRadius||.5*s;t=it(t,a.type,c,s,r);var u=a.activeRadius*e.pix;if(a.customColor=S(a.linearType,a.customColor,t,i),t=t.map((function(t){return t._start_+=(a.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,i){e.tooltip&&e.tooltip.index==i&&(n.beginPath(),n.setFillStyle(d(t.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,u+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var r,s=t.color;"custom"==a.linearType&&(r=n.createCircularGradient?n.createCircularGradient(o.x,o.y,t._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,d(a.customColor[t.linearIndex],1)),r.addColorStop(1,d(t.color,1)),s=r);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,f=0,p=t.length;f<p;f++)if(t[f].data>0){h=!0;break}h&&Dt(t,e,i,n,s,o)}return{center:o,radius:s,series:t}}function Vt(t,e,i,n){var r,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=l({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=nt(t,s,o),r=s.centerX||s.centerY?{x:s.centerX?s.centerX:e.width/2,y:s.centerY?s.centerY:e.height/2}:{x:e.width/2,y:e.height/2},s.radius?a=s.radius:(a=Math.min(r.x,r.y),a-=5*e.pix,a-=s.width/2),s.customColor=S(s.linearType,s.customColor,t,i);for(var c=0;c<t.length;c++){var u=t[c];n.setLineWidth(s.width*e.pix),n.setStrokeStyle(s.backgroundColor||"#E9E9E9"),n.setLineCap("round"),n.beginPath(),"default"==s.type?n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,s.startAngle*Math.PI,s.endAngle*Math.PI,!1):n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,0,2*Math.PI,!1),n.stroke();var h=u.color;if("custom"==s.linearType){var f=n.createLinearGradient(r.x-a,r.y,r.x+a,r.y);f.addColorStop(1,d(s.customColor[u.linearIndex],1)),f.addColorStop(0,d(u.color,1)),h=f}n.setLineWidth(s.width*e.pix),n.setStrokeStyle(h),n.setLineCap("round"),n.beginPath(),n.arc(r.x,r.y,a-(s.width*e.pix+s.gap*e.pix)*c,s.startAngle*Math.PI,u._proportion_*Math.PI,!1),n.stroke()}return kt(e,i,n,r),{center:r,radius:a,series:t}}function Zt(t,e,i,n,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=l({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},i.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),t=rt(t,o.startAngle,o.endAngle);var s={x:i.width/2,y:i.height/2},c=Math.min(s.x,s.y);c-=5*i.pix,c-=o.width/2;var u=c-o.width,h=0;if("progress"==o.type){var f=c-3*o.width;r.beginPath();var p=r.createLinearGradient(s.x,s.y-f,s.x,s.y+f);p.addColorStop("0",d(e[0].color,.3)),p.addColorStop("1.0",d("#FFFFFF",.1)),r.setFillStyle(p),r.arc(s.x,s.y,f,0,2*Math.PI,!1),r.fill(),r.setLineWidth(o.width),r.setStrokeStyle(d(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,u,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),r.stroke(),h=o.startAngle-o.endAngle+1;o.splitLine.splitNumber;var g=h/o.splitLine.splitNumber/o.splitLine.childNumber,v=-c-.5*o.width-o.splitLine.fixRadius,x=-c-o.width-o.splitLine.fixRadius+o.splitLine.width;r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var y=o.splitLine.splitNumber*o.splitLine.childNumber+1,m=e[0].data*a,b=0;b<y;b++)r.beginPath(),m>b/y?r.setStrokeStyle(d(e[0].color,1)):r.setStrokeStyle(d(e[0].color,.3)),r.setLineWidth(3*i.pix),r.moveTo(v,0),r.lineTo(x,0),r.stroke(),r.rotate(g*Math.PI);r.restore(),e=nt(e,o,a),r.setLineWidth(o.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,u,o.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var _=c-2.5*o.width;r.save(),r.translate(s.x,s.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(o.width/3);var w=r.createLinearGradient(0,.6*-_,0,.6*_);w.addColorStop("0",d("#FFFFFF",0)),w.addColorStop("0.5",d(e[0].color,1)),w.addColorStop("1.0",d("#FFFFFF",0)),r.setStrokeStyle(w),r.arc(0,0,_,.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(-_-o.width/3/2,-4),r.lineTo(-_-o.width/3/2-4,0),r.lineTo(-_-o.width/3/2,4),r.lineTo(-_-o.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(o.width),r.setLineCap("butt");for(var S=0;S<t.length;S++){var k=t[S];r.beginPath(),r.setStrokeStyle(k.color),r.arc(s.x,s.y,c,k._startAngle_*Math.PI,k._endAngle_*Math.PI,!1),r.stroke()}r.save(),h=o.startAngle-o.endAngle+1;var A=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,C=-c-.5*o.width-o.splitLine.fixRadius,P=-c-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,D=-c-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var O=0;O<o.splitLine.splitNumber+1;O++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(2*i.pix),r.moveTo(C,0),r.lineTo(P,0),r.stroke(),r.rotate(A*Math.PI);r.restore(),r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var L=0;L<o.splitLine.splitNumber*o.splitLine.childNumber+1;L++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(1*i.pix),r.moveTo(C,0),r.lineTo(D,0),r.stroke(),r.rotate(T*Math.PI);r.restore(),e=at(e,t,o,a);for(var M=0;M<e.length;M++){var F=e[M];r.save(),r.translate(s.x,s.y),r.rotate((F._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(F.color),r.moveTo(o.pointer.width,0),r.lineTo(0,-o.pointer.width/2),r.lineTo(-u,0),r.lineTo(0,o.pointer.width/2),r.lineTo(o.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==i.dataLabel&&Ct(o,c,s,i,n,r)}return kt(i,n,r,s),1===a&&"gauge"===i.type&&(i.extra.gauge.oldAngle=e[0]._proportion_,i.extra.gauge.oldData=e[0].data),{center:s,radius:c,innerRadius:u,categories:t,totalAngle:h}}function Qt(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),o=L(e.categories.length),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=(e.width-e.area[1]-e.area[3])/2,u=(e.height-e.area[0]-e.area[2])/2,h=Math.min(c-(O(e.categories,i.fontSize,n)+i.radarLabelTextMargin),u-i.radarLabelTextMargin);h-=i.radarLabelTextMargin*e.pix,n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(a.gridColor),o.forEach((function(t){var e=m(h*Math.cos(t),h*Math.sin(t),s);n.moveTo(s.x,s.y),n.lineTo(e.x,e.y)})),n.stroke(),n.closePath();for(var f=function(t){var i={};if(n.beginPath(),n.setLineWidth(1*e.pix),n.setStrokeStyle(a.gridColor),"radar"==a.gridType)o.forEach((function(e,r){var o=m(h/a.gridCount*t*Math.cos(e),h/a.gridCount*t*Math.sin(e),s);0===r?(i=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(i.x,i.y);else{var r=m(h/a.gridCount*t*Math.cos(1.5),h/a.gridCount*t*Math.sin(1.5),s);n.arc(s.x,s.y,s.y-r.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},p=1;p<=a.gridCount;p++)f(p);var g=Q(o,s,h,t,e,r);return g.forEach((function(t,i){if(n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(t.color),n.setFillStyle(d(t.color,a.opacity)),t.data.forEach((function(t,e){0===e?n.moveTo(t.position.x,t.position.y):n.lineTo(t.position.x,t.position.y)})),n.closePath(),n.fill(),!0===a.border&&n.stroke(),n.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));St(r,t.color,t.pointShape,n,e)}})),Pt(o,h,s,e,i,n),!1!==e.dataLabel&&1===r&&(g.forEach((function(t,r){n.beginPath();var a=t.textSize*e.pix||i.fontSize;n.setFontSize(a),n.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-s.x)<2?t.position.y<s.y?(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y-4)):(n.setTextAlign("center"),n.fillText(t.value,t.position.x,t.position.y+a+2)):t.position.x<s.x?(n.setTextAlign("right"),n.fillText(t.value,t.position.x-4,t.position.y+a/2-2)):(n.setTextAlign("left"),n.fillText(t.value,t.position.x+4,t.position.y+a/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:s,radius:h,angleList:o}}function te(t,e,i){i=0==i?1:i;for(var n=[],r=0;r<i;r++)n[r]=Math.random();return Math.floor(n.reduce((function(t,e){return t+e}))/i*(e-t))+t}function ee(t,e,i,n){for(var r=!1,a=0;a<e.length;a++)if(e[a].area){if(!(t[3]<e[a].area[1]||t[0]>e[a].area[2]||t[1]>e[a].area[3]||t[2]<e[a].area[0])){r=!0;break}if(t[0]<0||t[1]<0||t[2]>i||t[3]>n){r=!0;break}r=!1}return r}function ie(t){var e,i={};i.xMin=180,i.xMax=0,i.yMin=90,i.yMax=0;for(var n=0;n<t.length;n++)for(var r=t[n].geometry.coordinates,a=0;a<r.length;a++){e=r[a],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],c=e[o][1],l={x:s,y:c};i.xMin=i.xMin<l.x?i.xMin:l.x,i.xMax=i.xMax>l.x?i.xMax:l.x,i.yMin=i.yMin<l.y?i.yMin:l.y,i.yMax=i.yMax>l.y?i.yMax:l.y}}return i}function ne(t,e,i,n,r,a){return{x:(e-i.xMin)*n+r,y:(i.yMax-t)*n+a}}function re(t,e,i,n,r,a){return{x:(e-r)/n+i.xMin,y:i.yMax-(t-a)/n}}function ae(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 n=i[0]-(i[0]-e[0])*(i[1]-t[1])/(i[1]-e[1]);return!(n<t[0])}function oe(t,e,i){for(var n=0,r=0;r<e.length;r++){var a=e[r][0];1==e.length&&(a=e[r][0]);for(var o=0;o<a.length-1;o++){var s=a[o],c=a[o+1];i&&(s=h(a[o][0],a[o][1]),c=h(a[o+1][0],a[o+1][1])),ae(t,s,c)&&(n+=1)}}return n%2==1}function se(t,e,i,n){var r,a,o=l({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),s=t,c=ie(s);if(o.mercator){var u=h(c.xMax,c.yMax),f=h(c.xMin,c.yMin);c.xMax=u[0],c.yMax=u[1],c.xMin=f[0],c.yMin=f[1]}for(var p=e.width/Math.abs(c.xMax-c.xMin),g=e.height/Math.abs(c.yMax-c.yMin),v=p<g?p:g,x=e.width/2-Math.abs(c.xMax-c.xMin)/2*v,y=e.height/2-Math.abs(c.yMax-c.yMin)/2*v,m=0;m<s.length;m++){n.beginPath(),n.setLineWidth(o.borderWidth*e.pix),n.setStrokeStyle(o.borderColor),n.setFillStyle(d(t[m].color,o.fillOpacity)),e.tooltip&&e.tooltip.index==m&&(n.setStrokeStyle(o.activeBorderColor),n.setFillStyle(d(o.activeFillColor,o.activeFillOpacity)));for(var b=s[m].geometry.coordinates,_=0;_<b.length;_++){r=b[_],1==r.length&&(r=r[0]);for(var w=0;w<r.length;w++){var S=Array(2);S=o.mercator?h(r[w][0],r[w][1]):r[w],a=ne(S[1],S[0],c,v,x,y),0===w?(n.beginPath(),n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)}n.fill(),1==o.border&&n.stroke()}if(1==e.dataLabel){var k=s[m].properties.centroid;if(k){o.mercator&&(k=h(s[m].properties.centroid[0],s[m].properties.centroid[1])),a=ne(k[1],k[0],c,v,x,y);var T=s[m].textSize*e.pix||i.fontSize,C=s[m].properties.name;n.beginPath(),n.setFontSize(T),n.setFillStyle(s[m].textColor||e.fontColor),n.fillText(C,a.x-A(C,T,n)/2,a.y+T/2),n.closePath(),n.stroke()}}}e.chartData.mapData={bounds:c,scale:v,xoffset:x,yoffset:y,mercator:o.mercator},qt(e,i,n,1),n.draw()}function ce(t,e,i){var n=t.series;switch(e){case"normal":for(var r=0;r<n.length;r++){var a=n[r].name,o=n[r].textSize*t.pix,s=A(a,o,i),c=void 0,l=void 0,u=void 0,h=0;while(1){h++,c=te(-t.width/2,t.width/2,5)-s/2,l=te(-t.height/2,t.height/2,5)+o/2,u=[c-5+t.width/2,l-5-o+t.height/2,c+s+5+t.width/2,l+5+t.height/2];var d=ee(u,n,t.width,t.height);if(!d)break;if(1e3==h){u=[-100,-100,-100,-100];break}}n[r].area=u}break;case"vertical":for(var f=function(){return Math.random()>.7},p=0;p<n.length;p++){var g=n[p].name,v=n[p].textSize*t.pix,x=A(g,v,i),y=f(),m=void 0,b=void 0,_=void 0,w=void 0,S=0;while(1){S++;var k=void 0;if(y?(m=te(-t.width/2,t.width/2,5)-x/2,b=te(-t.height/2,t.height/2,5)+v/2,_=[b-5-x+t.width/2,-m-5+t.height/2,b+5+t.width/2,-m+v+5+t.height/2],w=[t.width-(t.width/2-t.height/2)-(-m+v+5+t.height/2)-5,t.height/2-t.width/2+(b-5-x+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+v+5+t.height/2)+v,t.height/2-t.width/2+(b-5-x+t.width/2)+x+5],k=ee(w,n,t.height,t.width)):(m=te(-t.width/2,t.width/2,5)-x/2,b=te(-t.height/2,t.height/2,5)+v/2,_=[m-5+t.width/2,b-5-v+t.height/2,m+x+5+t.width/2,b+5+t.height/2],k=ee(_,n,t.width,t.height)),!k)break;if(1e3==S){_=[-1e3,-1e3,-1e3,-1e3];break}}y?(n[p].area=w,n[p].areav=_):n[p].area=_,n[p].rotate=y}break}return n}function le(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=ce(e,a.type,n)),n.beginPath(),n.setFillStyle(e.background),n.rect(0,0,e.width,e.height),n.fill(),n.save();var o=e.chartData.wordCloudData;n.translate(e.width/2,e.height/2);for(var s=0;s<o.length;s++){n.save(),o[s].rotate&&n.rotate(90*Math.PI/180);var c=o[s].name,u=o[s].textSize*e.pix,h=A(c,u,n);n.beginPath(),n.setStrokeStyle(o[s].color),n.setFillStyle(o[s].color),n.setFontSize(u),o[s].rotate?o[s].areav[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(c,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+u-e.height/2)*r):n.fillText(c,(o[s].areav[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].areav[1]+5+u-e.height/2)*r)):o[s].area[0]>0&&(e.tooltip&&e.tooltip.index==s?n.strokeText(c,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+u-e.height/2)*r):n.fillText(c,(o[s].area[0]+5-e.width/2)*r-h*(1-r)/2,(o[s].area[1]+5+u-e.height/2)*r)),n.stroke(),n.restore()}n.restore()}function ue(t,e,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=l({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),o=(e.height-e.area[0]-e.area[2])/t.length,s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=a.activeWidth*e.pix,u=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);if(t=et(t,u,a.type,o,r),n.save(),n.translate(s.x,s.y),a.customColor=S(a.linearType,a.customColor,t,i),"pyramid"==a.type)for(var h=0;h<t.length;h++){if(h==t.length-1){e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(d(t[h].color,a.activeOpacity)),n.moveTo(-c,-o),n.lineTo(-t[h].radius-c,0),n.lineTo(t[h].radius+c,0),n.lineTo(c,-o),n.lineTo(-c,-o),n.closePath(),n.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);var f=d(t[h].color,a.fillOpacity);if("custom"==a.linearType){var p=n.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);p.addColorStop(0,d(t[h].color,a.fillOpacity)),p.addColorStop(.5,d(a.customColor[t[h].linearIndex],a.fillOpacity)),p.addColorStop(1,d(t[h].color,a.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,-o),n.lineTo(-t[h].radius,0),n.lineTo(t[h].radius,0),n.lineTo(0,-o),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==h&&(n.beginPath(),n.setFillStyle(d(t[h].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[h].radius-c,0),n.lineTo(-t[h+1].radius-c,-o),n.lineTo(t[h+1].radius+c,-o),n.lineTo(t[h].radius+c,0),n.lineTo(0,0),n.closePath(),n.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);f=d(t[h].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);p.addColorStop(0,d(t[h].color,a.fillOpacity)),p.addColorStop(.5,d(a.customColor[t[h].linearIndex],a.fillOpacity)),p.addColorStop(1,d(t[h].color,a.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[h].radius,0),n.lineTo(-t[h+1].radius,-o),n.lineTo(t[h+1].radius,-o),n.lineTo(t[h].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,-o)}else for(var g=0;g<t.length;g++){if(0==g){e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(d(t[g].color,a.activeOpacity)),n.moveTo(-c,0),n.lineTo(-t[g].radius-c,-o),n.lineTo(t[g].radius+c,-o),n.lineTo(c,0),n.lineTo(-c,0),n.closePath(),n.fill()),t[g].funnelArea=[s.x-t[g].radius,s.y-o,s.x+t[g].radius,s.y],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);f=d(t[g].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[g].radius,-o,-t[g].radius,-o);p.addColorStop(0,d(t[g].color,a.fillOpacity)),p.addColorStop(.5,d(a.customColor[t[g].linearIndex],a.fillOpacity)),p.addColorStop(1,d(t[g].color,a.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[g].radius,-o),n.lineTo(t[g].radius,-o),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{e.tooltip&&e.tooltip.index==g&&(n.beginPath(),n.setFillStyle(d(t[g].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-t[g-1].radius-c,0),n.lineTo(-t[g].radius-c,-o),n.lineTo(t[g].radius+c,-o),n.lineTo(t[g-1].radius+c,0),n.lineTo(0,0),n.closePath(),n.fill()),t[g].funnelArea=[s.x-t[g].radius,s.y-o*(g+1),s.x+t[g].radius,s.y-o*g],n.beginPath(),n.setLineWidth(a.borderWidth*e.pix),n.setStrokeStyle(a.borderColor);f=d(t[g].color,a.fillOpacity);if("custom"==a.linearType){p=n.createLinearGradient(t[g].radius,-o,-t[g].radius,-o);p.addColorStop(0,d(t[g].color,a.fillOpacity)),p.addColorStop(.5,d(a.customColor[t[g].linearIndex],a.fillOpacity)),p.addColorStop(1,d(t[g].color,a.fillOpacity)),f=p}n.setFillStyle(f),n.moveTo(0,0),n.lineTo(-t[g-1].radius,0),n.lineTo(-t[g].radius,-o),n.lineTo(t[g].radius,-o),n.lineTo(t[g-1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,-o)}return n.restore(),!1!==e.dataLabel&&1===r&&he(t,e,n,o,a.labelAlign,c,s),{center:s,radius:u,series:t}}function he(t,e,i,n,r,a,o){for(var s=0;s<t.length;s++){var c=t[s],l=void 0,h=void 0,d=void 0,f=void 0,p=c.formatter?c.formatter(c,s,t):u.toFixed(100*c._proportion_)+"%";"right"==r?(l="pyramid"===e.extra.funnel.type?s==t.length-1?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[s+1].funnelArea[2])/2:0==s?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+t[s-1].funnelArea[2])/2,h=l+2*a,d=c.funnelArea[1]+n/2,f=c.textSize*e.pix||e.fontSize*e.pix,i.setLineWidth(1*e.pix),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(l,d),i.lineTo(h,d),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,d),i.arc(h,d,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(f),i.setFillStyle(c.textColor||e.fontColor),i.fillText(p,h+5,d+f/2-2),i.closePath(),i.stroke(),i.closePath()):(l="pyramid"===e.extra.funnel.type?s==t.length-1?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[s+1].funnelArea[0])/2:0==s?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+t[s-1].funnelArea[0])/2,h=l-2*a,d=c.funnelArea[1]+n/2,f=c.textSize*e.pix||e.fontSize*e.pix,i.setLineWidth(1*e.pix),i.setStrokeStyle(c.color),i.setFillStyle(c.color),i.beginPath(),i.moveTo(l,d),i.lineTo(h,d),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(h,d),i.arc(h,d,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(f),i.setFillStyle(c.textColor||e.fontColor),i.fillText(p,h-5-A(p,f,i),d+f/2-2),i.closePath(),i.stroke(),i.closePath())}}function de(t,e){e.draw()}var fe={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function pe(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=17;function i(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var n=i(),r=null,a=function(i){if(null===i||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===r&&(r=i),i-r<t.duration){var o=(i-r)/t.duration,s=fe[t.timing];o=s(o),t.onProcess&&t.onProcess(o),n(a,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};a=a.bind(this),n(a,e)}function ge(t,e,i,n){var r=this,a=e.series;"pie"!==t&&"ring"!==t&&"rose"!==t&&"funnel"!==t||(a=_(a,e,i));var o=e.categories;a=w(a,e,i);var s=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var c=null;if("candle"==t){var u=l({},e.extra.candle.average);u.show?(c=p(u.day,u.name,u.color,a[0].data),c=w(c,e,i),e.seriesMA=c):c=e.seriesMA?e.seriesMA=w(e.seriesMA,e,i):a}else c=a;e._series_=a=E(a),e.area=new Array(4);for(var h=0;h<4;h++)e.area[h]=e.padding[h]*e.pix;var d=X(c,e,i,e.chartData,n),f=d.area.wholeHeight,g=d.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=f;break;case"bottom":e.area[2]+=f;break;case"left":e.area[3]+=g;break;case"right":e.area[1]+=g;break}var v={},x=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(v=mt(a,e,i,n),x=v.yAxisWidth,e.yAxis.showTitle){for(var y=0,m=0;m<e.yAxis.data.length;m++)y=Math.max(y,e.yAxis.data[m].titleFontSize?e.yAxis.data[m].titleFontSize*e.pix:i.fontSize);e.area[0]+=y}for(var b=0,S=0,k=0;k<x.length;k++)"left"==x[k].position?(e.area[3]+=S>0?x[k].width+e.yAxis.padding*e.pix:x[k].width,S+=1):"right"==x[k].position&&(e.area[1]+=b>0?x[k].width+e.yAxis.padding*e.pix:x[k].width,b+=1)}else i.yAxisWidth=x;if(e.chartData.yAxisData=v,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=dt(e.categories,e,i);var A=Y(e.categories,e,i,e.chartData.xAxisData.eachSpacing,n),T=A.xAxisHeight,C=A.angle;i.xAxisHeight=T,i._xAxisTextAngle_=C,e.area[2]+=T,e.chartData.categoriesData=A}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Z(a,e,i,n),o=e.chartData.xAxisData.rangesFormat;var P=Y(o,e,i,e.chartData.xAxisData.eachSpacing,n),D=P.xAxisHeight,O=P.angle;i.xAxisHeight=D,i._xAxisTextAngle_=O,e.area[2]+=D,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var L=0,M=e.chartData.xAxisData.xAxisPoints,F=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,$=e.chartData.xAxisData.eachSpacing,j=$*(M.length-1),R=I-F;L=R-j,r.scrollOption={currentOffset:L,startTouchX:L,distance:0,lastMoveTime:0},e._scrollDistance_=L}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(i._pieTextMaxLength_=!1===e.dataLabel?0:ot(c,i,n,e)),t){case"word":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),le(a,e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,e.width,e.height),se(a,e,i,n);break;case"funnel":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.funnelData=ue(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Ut(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Nt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Bt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Wt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=$t(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Ht(o,e,i,n);var r=jt(a,e,i,n,t),s=r.yAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.yAxisPoints=s,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=zt(a,e,i,n,t),s=r.xAxisPoints,c=r.calPoints,l=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=l,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t,l,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.pieData=Xt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.pieData=Yt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.radarData=Qt(a,e,i,n,t),Jt(e.series,e,i,n,e.chartData),qt(e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.arcbarData=Vt(a,e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),e.chartData.gaugeData=Zt(o,a,e,i,n,t),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new pe({timing:e.timing,duration:s,onProcess:function(t){n.clearRect(0,0,e.width,e.height),e.rotate&&wt(n,e),Gt(o,e,i,n),Ht(o,e,i,n);var r=Rt(a,c,e,i,n,t),s=r.xAxisPoints,l=r.calPoints,u=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=u,Kt(a,e,i,n),!1!==e.enableMarkLine&&1===t&&Lt(e,i,n),Jt(c||e.series,e,i,n,e.chartData),qt(e,i,n,t,u,s),de(e,n)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function ve(){this.events={}}pe.prototype.stop=function(){this.isStop=!0},ve.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},ve.prototype.delEventListener=function(t){this.events[t]=[]},ve.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e.slice(1);this.events[n]&&this.events[n].forEach((function(t){try{t.apply(null,r)}catch(e){}}))};var xe=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:c.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=l({},t.title),t.subtitle=l({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=l({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=l({},{rotateLabel:!1,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=l({},{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:t.fontColor,formatter:{},hiddenColor:"#CECECE"},t.legend),t.extra=l({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(c));if(e.color=t.color?t.color:e.color,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"ring"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.ring.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pix||e.pieChartLinePadding*t.pix),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pix,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:c.yAxisSplit,e.rotate=t.rotate,t.rotate){var i=t.width,n=t.height;t.width=n,t.height=i}if(t.padding=t.padding?t.padding:e.padding,e.yAxisWidth=c.yAxisWidth*t.pix,e.xAxisHeight=c.xAxisHeight*t.pix,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pix),e.xAxisLineHeight=c.xAxisLineHeight*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=c.titleFontSize*t.pix,e.subtitleFontSize=c.subtitleFontSize*t.pix,e.toolTipPadding=c.toolTipPadding*t.pix,e.toolTipLineHeight=c.toolTipLineHeight*t.pix,e.columePadding=c.columePadding*t.pix,!t.context)throw new Error("[uCharts] \u672a\u83b7\u53d6\u5230context\uff01\u6ce8\u610f\uff1av2.0\u7248\u672c\u540e\uff0c\u9700\u8981\u81ea\u884c\u83b7\u53d6canvas\u7684\u7ed8\u56fe\u4e0a\u4e0b\u6587\u5e76\u4f20\u5165opts.context\uff01");this.context=t.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.setTextAlign=function(t){return this.textAlign=t},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new ve,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,ge.call(this,t.type,t,e,this.context)};xe.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=l({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var i=mt(this.opts.series,this.opts,this.config,this.context),n=i.yAxisWidth;this.config.yAxisWidth=n;var r=0,a=dt(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,s=a.startX,c=a.endX,u=a.eachSpacing,h=u*(o.length-1),d=c-s;r=d-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}ge.call(this,this.opts.type,this.opts,this.config,this.context)},xe.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var i=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var n=mt(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var a=0,o=dt(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,c=o.startX,l=o.endX,u=o.eachSpacing,h=u*i,d=l-c,f=d-u*(s.length-1);a=d/2-h,a>0&&(a=0),a<f&&(a=f),this.scrollOption={currentOffset:a,startTouchX:a,distance:0,lastMoveTime:0},this.opts._scrollDistance_=a,ge.call(this,this.opts.type,this.opts,this.config,this.context)}else t("log","[uCharts] \u8bf7\u542f\u7528\u6eda\u52a8\u6761\u540e\u4f7f\u7528"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6386")},xe.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},xe.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},xe.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},xe.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=P(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?G({x:i.x,y:i.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?H({x:i.x,y:i.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?B({x:i.x,y:i.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?U({x:i.x,y:i.y},this.opts.chartData.funnelData):"map"===this.opts.type?q({x:i.x,y:i.y},this.opts):"word"===this.opts.type?W({x:i.x,y:i.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?j({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):$({x:i.x,y:i.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},xe.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var i=P(e,this.opts,t);return R({x:i.x,y:i.y},this.opts.chartData.legendData)}return-1},xe.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null;if(i=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],i){P(i,this.opts,t);var n=this.getLegendDataIndex(t);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,ge.call(this,this.opts.type,this.opts,this.config,this.context))}},xe.prototype.showToolTip=function(e){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t("log","[uCharts] \u672a\u83b7\u53d6\u5230event\u5750\u6807\u4fe1\u606f"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6540");var a=P(r,this.opts,e),o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var h=D(this.opts.series,u,c.group);if(0!==h.length){var d=M(h,this.opts,u,c.group,this.opts.categories,n),f=d.textList,p=d.offset;p.y=a.y,s.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){h=D(this.opts.series,u,c.group);if(0!==h.length){d=M(h,this.opts,u,c.group,this.opts.categories,n),f=d.textList,p=d.offset;p.x=a.x,s.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1}),h=D(this.opts.series,u);if(0!==h.length){var g=F(h,this.opts,u,this.opts.categories,n);f=g.textList,p=g.offset;p.y=a.y,s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,s=l({},this.opts,{_scrollDistance_:o,animation:!1}),h=D(this.opts.series,u);if(0!==h.length){d=I(this.opts.series[0].data,h,this.opts,u,this.opts.categories,this.opts.extra.candle,n),f=d.textList,p=d.offset;p.y=a.y,s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},s._series_[u]),f=[{text:n.formatter?n.formatter(h,void 0,u,s):h.name+": "+h.data,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}ge.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},this.opts.series[u]);h.name=h.properties.name;f=[{text:n.formatter?n.formatter(h,void 0,u,this.opts):h.name,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}s.updateData=!1,ge.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=l({},this.opts.series[u]),f=[{text:n.formatter?n.formatter(h,void 0,u,this.opts):h.name,color:h.color}],p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}s.updateData=!1,ge.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){s=l({},this.opts,{animation:!1}),h=D(this.opts.series,u);if(0!==h.length){f=h.map((function(t){return{text:n.formatter?n.formatter(t,i.opts.categories[u],u,i.opts):t.name+": "+t.data,color:t.color}})),p={x:a.x,y:a.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}ge.call(this,s.type,s,this.config,this.context)}},xe.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=l({},this.opts,{_scrollDistance_:t,animation:!1});ge.call(this,this.opts.type,e,this.config,this.context)},xe.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=P(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=i.x)},xe.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,i=Date.now(),n=i-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=i;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var a,o=P(r,this.opts,t);a=o.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,c=g(this,s+a,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=a=c-s;var u=l({},this.opts,{_scrollDistance_:s+a,animation:!1});return this.opts=u,ge.call(this,u.type,u,this.config,this.context),s+a}}},xe.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,i=e.currentOffset,n=e.distance;this.scrollOption.currentOffset=i+n,this.scrollOption.distance=0}};var ye=xe;e.default=ye}).call(this,i("0de9")["default"])},b59e:function(t,e,i){"use strict";i.r(e);var n=i("8640"),r=i("3836");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"6b39400e",null,!1,n["a"],o);e["default"]=c.exports},b657:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("83fc")),r=o(i("14af")),a=o(i("6502"));function o(t){return t&&t.__esModule?t:{default:t}}var s={en:n.default,"zh-Hans":r.default,"zh-Hant":a.default};e.default=s},b72d:function(t,e,i){"use strict";i.r(e);var n=i("a768"),r=i("1533");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},bbdd:function(t,e,i){var n=function(){return this||"object"===typeof self&&self}()||Function("return this")(),r=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=r&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=i("96cf"),r)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(o){n.regeneratorRuntime=void 0}},bc8f:function(t,e){t.exports="/static/g1.png"},c578:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t._$s(0,"i",t.isShow)?i("view",{ref:"ani",class:t._$s(0,"c",t.customClass),style:t._$s(0,"s",t.transformStyles),attrs:{animation:t._$s(0,"a-animation",t.animationData),_i:0},on:{click:t.onClick}},[t._t("default",null,{_i:1})],2):t._e()},a=[]},c6b4:function(t,e,i){"use strict";i.r(e);var n=i("fb25"),r=i("965e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},d44b:function(t,e,i){"use strict";i.r(e);var n=i("7120"),r=i("095e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},d868:function(t,e,i){"use strict";i.r(e);var n=i("a0a3"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},dbb8:function(t,e,i){"use strict";i("7ac3");var n=a(i("5a16")),r=a(i("8bbf"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}r.default.config.productionTip=!1,n.default.mpType="app";var l=new r.default(s({},n.default));l.$mount()},de4d:function(t,e,i){"use strict";i.r(e);var n=i("ee93"),r=i("0d3e");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"0f5ca878",null,!1,n["a"],o);e["default"]=c.exports},e06a:function(t,e){t.exports="/static/a1.png"},e204:function(t){t.exports=JSON.parse('{"localdata":[{"value":35,"text":"2016","group":"\u76ee\u6807\u503c"},{"value":18,"text":"2016","group":"\u5b8c\u6210\u91cf"},{"value":36,"text":"2017","group":"\u76ee\u6807\u503c"},{"value":27,"text":"2017","group":"\u5b8c\u6210\u91cf"},{"value":31,"text":"2018","group":"\u76ee\u6807\u503c"},{"value":21,"text":"2018","group":"\u5b8c\u6210\u91cf"},{"value":33,"text":"2019","group":"\u76ee\u6807\u503c"},{"value":24,"text":"2019","group":"\u5b8c\u6210\u91cf"},{"value":13,"text":"2020","group":"\u76ee\u6807\u503c"},{"value":6,"text":"2020","group":"\u5b8c\u6210\u91cf"},{"value":34,"text":"2021","group":"\u76ee\u6807\u503c"},{"value":28,"text":"2021","group":"\u5b8c\u6210\u91cf"}],"localdataB":[{"value":50,"text":"\u4e00\u73ed"},{"value":30,"text":"\u4e8c\u73ed"},{"value":20,"text":"\u4e09\u73ed"},{"value":18,"text":"\u56db\u73ed"},{"value":8,"text":"\u4e94\u73ed"}],"TLine":{"series":[{"name":"\u65f6\u95f4\u8f741","data":[[10000,55],[30000,25],[50000,55],[70000,25],[90000,55]]},{"name":"\u65f6\u95f4\u8f742","data":[[0,25],[20000,55],[40000,25],[60000,55],[80000,25]]},{"name":"\u65f6\u95f4\u8f743","data":[[0,55],[15000,25],[30000,55],[45000,25],[60000,55]]}]},"Scatter":{"series":[{"name":"\u6563\u70b9\u4e00","data":[[10,8.04],[8.07,6.95],[13,7.58],[9.05,8.81],[11,8.33],[14,7.66],[13.4,6.81],[10,6.33],[14,8.96],[12.5,6.82]]},{"name":"\u6563\u70b9\u4e8c","data":[[9.15,7.2],[11.5,7.2],[3.03,4.23],[12.2,7.83],[2.02,4.47],[1.05,3.33],[4.05,4.96],[6.03,7.24],[12,6.26],[12,8.84],[7.08,5.82],[5.02,5.68]]}]},"Bubble":{"series":[{"name":"\u6c14\u6ce1\u4e00","data":[[95,95,23,"\u6807\u98981"],[30,55,33,"\u6807\u98982"]]},{"name":"\u6c14\u6ce1\u4e8c","data":[[130,30,30,"\u6807\u98983"],[200,90,40,"\u6807\u98984"]]}]},"Column":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u76ee\u6807\u503c","data":[35,36,31,33,13,34]},{"name":"\u5b8c\u6210\u91cf","data":[18,27,21,24,6,28]}]},"ColumnA":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[15,{"value":20,"color":"#f04864"},45,37,43,34]},{"name":"\u6210\u4ea4\u91cf2","data":[30,{"value":40,"color":"#facc14"},25,14,34,18]}]},"Mix":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u66f2\u9762","data":[70,50,85,130,64,88],"type":"area","style":"curve"},{"name":"\u67f11","index":1,"data":[40,{"value":30,"color":"#f04864"},55,110,24,58],"type":"column"},{"name":"\u67f12","index":1,"data":[50,20,75,60,34,38],"type":"column"},{"name":"\u66f2\u7ebf","data":[70,50,85,130,64,88],"type":"line","style":"curve","color":"#1890ff","disableLegend":true},{"name":"\u6298\u7ebf","data":[120,140,105,170,95,160],"type":"line","color":"#2fc25b"},{"name":"\u70b9","index":2,"data":[100,80,125,150,112,132],"type":"point","color":"#f04864"}]},"Line":{"categories":["2016","2017","2018","2019","2020","2021"],"series":[{"name":"\u6210\u4ea4\u91cfA","data":[35,8,25,37,4,20]},{"name":"\u6210\u4ea4\u91cfB","data":[70,40,65,100,44,68]}]},"Pie":{"series":[{"name":"\u4e00\u73ed","data":50},{"name":"\u4e8c\u73ed","data":30},{"name":"\u4e09\u73ed","data":20},{"name":"\u56db\u73ed","data":18},{"name":"\u4e94\u73ed","data":8}]},"PieA":{"series":[{"data":[{"name":"\u5728\u5e93","value":314},{"name":"\u7a7a","value":1175},{"name":"\u7981\u7528","value":96}]}]},"Radar":{"categories":["\u7ef4\u5ea61","\u7ef4\u5ea62","\u7ef4\u5ea63","\u7ef4\u5ea64","\u7ef4\u5ea65","\u7ef4\u5ea66"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[90,110,165,195,187,172]},{"name":"\u6210\u4ea4\u91cf2","data":[190,210,105,35,27,102]}]},"Arcbar1":{"series":[{"name":"\u6b63\u786e\u7387","data":0.8,"color":"#2fc25b"}]},"Arcbar2":{"series":[{"name":"\u4e00\u73ed","data":0.8},{"name":"\u4e8c\u73ed","data":0.6},{"name":"\u4e09\u73ed","data":0.45},{"name":"\u56db\u73ed","data":0.3},{"name":"\u4e94\u73ed","data":0.15}]},"Gauge":{"categories":[{"value":0.2,"color":"#1890ff"},{"value":0.8,"color":"#2fc25b"},{"value":1,"color":"#f04864"}],"series":[{"name":"\u5b8c\u6210\u7387","data":0.66}]},"Candle":{"categories":["2020/1/24","2020/1/25","2020/1/28","2020/1/29","2020/1/30","2020/1/31","2020/2/1","2020/2/4","2020/2/5","2020/2/6","2020/2/7","2020/2/8","2020/2/18","2020/2/19","2020/2/20","2020/2/21","2020/2/22","2020/2/25","2020/2/26","2020/2/27","2020/2/28","2020/3/1","2020/3/4","2020/3/5","2020/3/6","2020/3/7","2020/3/8","2020/3/11","2020/3/12","2020/3/13","2020/3/14","2020/3/15","2020/3/18","2020/3/19","2020/3/20","2020/3/21","2020/3/22","2020/3/25","2020/3/26","2020/3/27","2020/3/28","2020/3/29","2020/4/1","2020/4/2","2020/4/3","2020/4/8","2020/4/9","2020/4/10","2020/4/11","2020/4/12","2020/4/15","2020/4/16","2020/4/17","2020/4/18","2020/4/19","2020/4/22","2020/4/23","2020/4/24","2020/4/25","2020/4/26","2020/5/2","2020/5/3","2020/5/6","2020/5/7","2020/5/8","2020/5/9","2020/5/10","2020/5/13","2020/5/14","2020/5/15","2020/5/16","2020/5/17","2020/5/20","2020/5/21","2020/5/22","2020/5/23","2020/5/24","2020/5/27","2020/5/28","2020/5/29","2020/5/30","2020/5/31","2020/6/3","2020/6/4","2020/6/5","2020/6/6","2020/6/7","2020/6/13"],"series":[{"name":"\u4e0a\u8bc1\u6307\u6570","data":[[2320.26,2302.6,2287.3,2362.94],[2300,2291.3,2288.26,2308.38],[2295.35,2346.5,2295.35,2346.92],[2347.22,2358.98,2337.35,2363.8],[2360.75,2382.48,2347.89,2383.76],[2383.43,2385.42,2371.23,2391.82],[2377.41,2419.02,2369.57,2421.15],[2425.92,2428.15,2417.58,2440.38],[2411,2433.13,2403.3,2437.42],[2432.68,2434.48,2427.7,2441.73],[2430.69,2418.53,2394.22,2433.89],[2416.62,2432.4,2414.4,2443.03],[2441.91,2421.56,2415.43,2444.8],[2420.26,2382.91,2373.53,2427.07],[2383.49,2397.18,2370.61,2397.94],[2378.82,2325.95,2309.17,2378.82],[2322.94,2314.16,2308.76,2330.88],[2320.62,2325.82,2315.01,2338.78],[2313.74,2293.34,2289.89,2340.71],[2297.77,2313.22,2292.03,2324.63],[2322.32,2365.59,2308.92,2366.16],[2364.54,2359.51,2330.86,2369.65],[2332.08,2273.4,2259.25,2333.54],[2274.81,2326.31,2270.1,2328.14],[2333.61,2347.18,2321.6,2351.44],[2340.44,2324.29,2304.27,2352.02],[2326.42,2318.61,2314.59,2333.67],[2314.68,2310.59,2296.58,2320.96],[2309.16,2286.6,2264.83,2333.29],[2282.17,2263.97,2253.25,2286.33],[2255.77,2270.28,2253.31,2276.22],[2269.31,2278.4,2250,2312.08],[2267.29,2240.02,2239.21,2276.05],[2244.26,2257.43,2232.02,2261.31],[2257.74,2317.37,2257.42,2317.86],[2318.21,2324.24,2311.6,2330.81],[2321.4,2328.28,2314.97,2332],[2334.74,2326.72,2319.91,2344.89],[2318.58,2297.67,2281.12,2319.99],[2299.38,2301.26,2289,2323.48],[2273.55,2236.3,2232.91,2273.55],[2238.49,2236.62,2228.81,2246.87],[2229.46,2234.4,2227.31,2243.95],[2234.9,2227.74,2220.44,2253.42],[2232.69,2225.29,2217.25,2241.34],[2196.24,2211.59,2180.67,2212.59],[2215.47,2225.77,2215.47,2234.73],[2224.93,2226.13,2212.56,2233.04],[2236.98,2219.55,2217.26,2242.48],[2218.09,2206.78,2204.44,2226.26],[2199.91,2181.94,2177.39,2204.99],[2169.63,2194.85,2165.78,2196.43],[2195.03,2193.8,2178.47,2197.51],[2181.82,2197.6,2175.44,2206.03],[2201.12,2244.64,2200.58,2250.11],[2236.4,2242.17,2232.26,2245.12],[2242.62,2184.54,2182.81,2242.62],[2187.35,2218.32,2184.11,2226.12],[2213.19,2199.31,2191.85,2224.63],[2203.89,2177.91,2173.86,2210.58],[2170.78,2174.12,2161.14,2179.65],[2179.05,2205.5,2179.05,2222.81],[2212.5,2231.17,2212.5,2236.07],[2227.86,2235.57,2219.44,2240.26],[2242.39,2246.3,2235.42,2255.21],[2246.96,2232.97,2221.38,2247.86],[2228.82,2246.83,2225.81,2247.67],[2247.68,2241.92,2231.36,2250.85],[2238.9,2217.01,2205.87,2239.93],[2217.09,2224.8,2213.58,2225.19],[2221.34,2251.81,2210.77,2252.87],[2249.81,2282.87,2248.41,2288.09],[2286.33,2299.99,2281.9,2309.39],[2297.11,2305.11,2290.12,2305.3],[2303.75,2302.4,2292.43,2314.18],[2293.81,2275.67,2274.1,2304.95],[2281.45,2288.53,2270.25,2292.59],[2286.66,2293.08,2283.94,2301.7],[2293.4,2321.32,2281.47,2322.1],[2323.54,2324.02,2321.17,2334.33],[2316.25,2317.75,2310.49,2325.72],[2320.74,2300.59,2299.37,2325.53],[2300.21,2299.25,2294.11,2313.43],[2297.1,2272.42,2264.76,2297.1],[2270.71,2270.93,2260.87,2276.86],[2264.43,2242.11,2240.07,2266.69],[2242.26,2210.9,2205.07,2250.63],[2190.1,2148.35,2126.22,2190.1]]}]},"CandleColumn":{"categories":["2020/1/24","2020/1/25","2020/1/28","2020/1/29","2020/1/30","2020/1/31","2020/2/1","2020/2/4","2020/2/5","2020/2/6","2020/2/7","2020/2/8","2020/2/18","2020/2/19","2020/2/20","2020/2/21","2020/2/22","2020/2/25","2020/2/26","2020/2/27","2020/2/28","2020/3/1","2020/3/4","2020/3/5","2020/3/6","2020/3/7","2020/3/8","2020/3/11","2020/3/12","2020/3/13","2020/3/14","2020/3/15","2020/3/18","2020/3/19","2020/3/20","2020/3/21","2020/3/22","2020/3/25","2020/3/26","2020/3/27","2020/3/28","2020/3/29","2020/4/1","2020/4/2","2020/4/3","2020/4/8","2020/4/9","2020/4/10","2020/4/11","2020/4/12","2020/4/15","2020/4/16","2020/4/17","2020/4/18","2020/4/19","2020/4/22","2020/4/23","2020/4/24","2020/4/25","2020/4/26","2020/5/2","2020/5/3","2020/5/6","2020/5/7","2020/5/8","2020/5/9","2020/5/10","2020/5/13","2020/5/14","2020/5/15","2020/5/16","2020/5/17","2020/5/20","2020/5/21","2020/5/22","2020/5/23","2020/5/24","2020/5/27","2020/5/28","2020/5/29","2020/5/30","2020/5/31","2020/6/3","2020/6/4","2020/6/5","2020/6/6","2020/6/7","2020/6/13"],"series":[{"name":"\u6210\u4ea4\u91cf1","data":[15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45,37,43,15,20,45]}]},"Word":{"series":[{"name":"\u8de8\u5168\u7aef\u56fe\u8868","textSize":25},{"name":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u652f\u4ed8\u5b9d\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u767e\u5ea6\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"QQ\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u5934\u6761\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u6296\u97f3\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"360\u5c0f\u7a0b\u5e8f","textSize":20},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12},{"name":"\u8de8\u5168\u7aef","textSize":10},{"name":"\u8de8\u5168\u7aef","textSize":12}]}}')},e3e8:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"loading3",data:function(){return{}}};e.default=n},e891:function(t,e,i){"use strict";i.r(e);var n=i("681b"),r=i("2c81");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"04ed0f7c",null,!1,n["a"],o);e["default"]=c.exports},ee93:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","container loading1"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","shape shape1"),attrs:{_i:1}}),i("view",{staticClass:t._$s(2,"sc","shape shape2"),attrs:{_i:2}}),i("view",{staticClass:t._$s(3,"sc","shape shape3"),attrs:{_i:3}}),i("view",{staticClass:t._$s(4,"sc","shape shape4"),attrs:{_i:4}})])},a=[]},f0c5:function(t,e,i){"use strict";function n(t,e,i,n,r,a,o,s,c,l){var u,h="function"===typeof t?t.options:t;if(c){h.components||(h.components={});var d=Object.prototype.hasOwnProperty;for(var f in c)d.call(c,f)&&!d.call(h.components,f)&&(h.components[f]=c[f])}if(l&&((l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(h.mixins||(h.mixins=[])).push(l)),e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),n&&(h.functional=!0),a&&(h._scopeId="data-v-"+a),o?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(h.functional){h._injectStyles=u;var p=h.render;h.render=function(t,e){return u.call(e),p(t,e)}}else{var g=h.beforeCreate;h.beforeCreate=g?[].concat(g,u):[u]}return{exports:t,options:h}}i.d(e,"a",(function(){return n}))},f27d:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var i in t){0==i&&(e+=t[i].axisValueLabel+"\u5e74\u9500\u552e\u989d");var n="--";null!==t[i].data&&(n=t[i].data),e+="<br/>"+t[i].marker+t[i].seriesName+"\uff1a"+n+" \u4e07\u5143"}return e},legendFormat:function(t){return"\u81ea\u5b9a\u4e49\u56fe\u4f8b+"+t},yAxisFormatDemo:function(t,e){return t+"\u5143"},seriesFormatDemo:function(t){return t.name+"\u5e74"+t.value+"\u5143"}},demotype:{color:n},column:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{top:"left",textStyle:{color:"#cccccc"}},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!1,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!1,color:"#666666",position:"top"}}},area:{color:n,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:n,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left",textStyle:{color:"#cccccc"}},seriesTemplate:{name:"",type:"pie",data:[],radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!1,color:"#FFF",position:"top"},labelLine:{show:!0}}},rose:{color:n,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:n,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:n,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"\u4e1a\u52a1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5b8c\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:n,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},a=r;e.default=a},f2a4:function(t,e){t.exports="/static/barcode.png"},fb25:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={qiunDataCharts:i("2b52").default,uniPopup:i("d44b").default,uniPopupDialog:i("848c").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","container"),attrs:{_i:0}},[n("view",{staticClass:t._$s(1,"sc","floor-screen"),class:t._$s(1,"c",t.floorMove),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","head"),attrs:{_i:2}},[n("text",{attrs:{_i:3},on:{click:function(e){return t.port()}}}),n("view",{staticClass:t._$s(4,"sc","time-tools"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.year))+t._$s(4,"t0-1",t._s(t.month))+t._$s(4,"t0-2",t._s(t.day))+t._$s(4,"t0-3",t._s(t.hours))+t._$s(4,"t0-4",t._s(t.minutes))+t._$s(4,"t0-5",t._s(t.seconds))+t._$s(4,"t0-6",t._s(t.week)))]),n("view",{staticClass:t._$s(5,"sc","button-left"),attrs:{_i:5},on:{click:function(e){return t.url()}}}),n("view",{staticClass:t._$s(6,"sc","button-right"),attrs:{_i:6},on:{click:function(e){return t.ledId()}}})]),n("view",{staticClass:t._$s(7,"sc","main"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","main-sides"),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","box"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","box-border box-border1"),attrs:{_i:10}}),n("view",{staticClass:t._$s(11,"sc","box-border box-border2"),attrs:{_i:11}}),n("view",{staticClass:t._$s(12,"sc","box-border box-border3"),attrs:{_i:12}}),n("view",{staticClass:t._$s(13,"sc","box-border box-border4"),attrs:{_i:13}}),n("view",[n("text",[t._v(t._$s(15,"t0-0",t._s(t.title)))])]),n("view",[n("text",{directives:[{name:"show",rawName:"v-show",value:t._$s(17,"v-show",!t.errorShow&&!t.pakinShow),expression:"_$s(17,'v-show',!errorShow && !pakinShow)"}],staticClass:t._$s(17,"sc","animate"),attrs:{_i:17}},[t._v(t._$s(17,"t0-0",t._s(t.newspaper)))]),n("text",{directives:[{name:"show",rawName:"v-show",value:t._$s(18,"v-show",t.errorShow),expression:"_$s(18,'v-show',errorShow)"}],attrs:{_i:18}},[t._v(t._$s(18,"t0-0",t._s(t.newspaper)))]),n("text",{directives:[{name:"show",rawName:"v-show",value:t._$s(19,"v-show",t.pakinShow),expression:"_$s(19,'v-show',pakinShow)"}],attrs:{_i:19}},[t._v(t._$s(19,"t0-0",t._s(t.newspaper)))])]),n("view",[n("text",[t._v(t._$s(21,"t0-0",t._s(t.staNo)))])])])])])]),n("view",{staticClass:t._$s(22,"sc","top-screen"),class:t._$s(22,"c",t.topMove),attrs:{_i:22}},[n("view",{staticClass:t._$s(23,"sc","head"),attrs:{_i:23}},[n("text",{attrs:{_i:24},on:{click:function(e){return t.port()}}}),n("view",{staticClass:t._$s(25,"sc","time-tools"),attrs:{_i:25}},[t._v(t._$s(25,"t0-0",t._s(t.year))+t._$s(25,"t0-1",t._s(t.month))+t._$s(25,"t0-2",t._s(t.day))+t._$s(25,"t0-3",t._s(t.hours))+t._$s(25,"t0-4",t._s(t.minutes))+t._$s(25,"t0-5",t._s(t.seconds))+t._$s(25,"t0-6",t._s(t.week)))]),n("view",{staticClass:t._$s(26,"sc","button-left"),attrs:{_i:26},on:{click:function(e){return t.url()}}}),n("view",{staticClass:t._$s(27,"sc","button-right"),attrs:{_i:27},on:{click:function(e){return t.ledId()}}})]),n("view",{staticClass:t._$s(28,"sc","main"),attrs:{_i:28}},[n("view",{staticClass:t._$s(29,"sc","main-sides"),attrs:{_i:29}},[n("view",{staticClass:t._$s(30,"sc","box box-lg"),attrs:{_i:30}},[n("view",{staticClass:t._$s(31,"sc","box-border box-border1"),attrs:{_i:31}}),n("view",{staticClass:t._$s(32,"sc","box-border box-border2"),attrs:{_i:32}}),n("view",{staticClass:t._$s(33,"sc","box-border box-border3"),attrs:{_i:33}}),n("view",{staticClass:t._$s(34,"sc","box-border box-border4"),attrs:{_i:34}}),n("view",{staticClass:t._$s(35,"sc","box-item introduce"),attrs:{_i:35}},[n("h3"),n("p",{staticClass:t._$s(37,"sc","english"),attrs:{_i:37}}),n("p",{staticClass:t._$s(38,"sc","introduce-content"),attrs:{_i:38}})]),n("view",{staticClass:t._$s(39,"sc","box-item charge-info"),attrs:{_i:39}},[n("h3"),n("p",{staticClass:t._$s(41,"sc","english"),attrs:{_i:41}}),n("view",{staticClass:t._$s(42,"sc","charge-info-item"),attrs:{_i:42}},[n("image",{attrs:{src:t._$s(43,"a-src",i("e06a")),_i:43}}),n("view",[n("text",{staticClass:t._$s(45,"sc","count"),attrs:{_i:45}},[t._v(t._$s(45,"t0-0",t._s(t.xDistance)))]),n("text",{staticClass:t._$s(46,"sc","unit"),attrs:{_i:46}})]),n("view")]),n("view",{staticClass:t._$s(48,"sc","charge-info-item"),attrs:{_i:48}},[n("image",{attrs:{src:t._$s(49,"a-src",i("92cb")),_i:49}}),n("view",[n("text",{staticClass:t._$s(51,"sc","count"),attrs:{_i:51}},[t._v(t._$s(51,"t0-0",t._s(t.yDistance)))]),n("text",{staticClass:t._$s(52,"sc","unit"),attrs:{_i:52}})]),n("view")]),n("view",{staticClass:t._$s(54,"sc","charge-info-item"),attrs:{_i:54}},[n("image",{attrs:{src:t._$s(55,"a-src",i("460c")),_i:55}}),n("view",[n("text",{staticClass:t._$s(57,"sc","count"),attrs:{_i:57}},[t._v(t._$s(57,"t0-0",t._s(t.xDuration)))]),n("text",{staticClass:t._$s(58,"sc","unit"),attrs:{_i:58}})]),n("view")]),n("view",{staticClass:t._$s(60,"sc","charge-info-item"),attrs:{_i:60}},[n("image",{attrs:{src:t._$s(61,"a-src",i("af18")),_i:61}}),n("view",[n("text",{staticClass:t._$s(63,"sc","count"),attrs:{_i:63}},[t._v(t._$s(63,"t0-0",t._s(t.yDuration)))]),n("text",{staticClass:t._$s(64,"sc","unit"),attrs:{_i:64}})]),n("view")])]),n("view",{staticClass:t._$s(66,"sc","box-item use-info"),attrs:{_i:66}},[n("view",{staticClass:t._$s(67,"sc","use-left"),attrs:{_i:67}},[n("h3"),n("p",{staticClass:t._$s(69,"sc","english"),attrs:{_i:69}})]),n("view",{staticClass:t._$s(70,"sc","use-right"),attrs:{_i:70}},[n("h3"),n("p",{staticClass:t._$s(72,"sc","english"),attrs:{_i:72}})]),n("view",{staticClass:t._$s(73,"sc","use-main"),attrs:{_i:73}},[n("view",{staticClass:t._$s(74,"sc","left"),attrs:{_i:74}},[n("view",{staticClass:t._$s(75,"sc","progressBar"),attrs:{_i:75}},[n("view",{staticClass:t._$s(76,"sc","progress"),style:t._$s(76,"s","width:"+t.usedPr+"%"),attrs:{_i:76}})])]),n("view",{staticClass:t._$s(77,"sc","right"),attrs:{_i:77}},[t._v(t._$s(77,"t0-0",t._s(t.used)))])])])])]),n("view",{staticClass:t._$s(78,"sc","main-sides"),attrs:{_i:78}},[n("view",{staticClass:t._$s(79,"sc","box box-tp"),attrs:{_i:79}},[n("view",{staticClass:t._$s(80,"sc","box-border box-border1"),attrs:{_i:80}}),n("view",{staticClass:t._$s(81,"sc","box-border box-border2"),attrs:{_i:81}}),n("view",{staticClass:t._$s(82,"sc","box-border box-border3"),attrs:{_i:82}}),n("view",{staticClass:t._$s(83,"sc","box-border box-border4"),attrs:{_i:83}}),n("view",{staticClass:t._$s(84,"sc","box-item right-item"),attrs:{_i:84}},[n("view",{staticClass:t._$s(85,"sc","sub-left"),attrs:{_i:85}},[n("h3"),n("p",{staticClass:t._$s(87,"sc","english"),attrs:{_i:87}})]),n("view",{staticClass:t._$s(88,"sc","sub-right"),attrs:{_i:88}},[n("h3"),n("p",{staticClass:t._$s(90,"sc","english"),attrs:{_i:90}})]),n("view",{staticClass:t._$s(91,"sc","sub-main"),attrs:{_i:91}},[n("view",{staticClass:t._$s(92,"sc","charts-box"),attrs:{_i:92}},[n("qiun-data-charts",{attrs:{type:"line",chartData:t.chartsDataLine1,echartsH5:!0,echartsApp:!0,_i:93}})],1)])])]),n("view",{staticClass:t._$s(94,"sc","box box-md"),attrs:{_i:94}},[n("view",{staticClass:t._$s(95,"sc","box-border box-border1"),attrs:{_i:95}}),n("view",{staticClass:t._$s(96,"sc","box-border box-border2"),attrs:{_i:96}}),n("view",{staticClass:t._$s(97,"sc","box-border box-border3"),attrs:{_i:97}}),n("view",{staticClass:t._$s(98,"sc","box-border box-border4"),attrs:{_i:98}}),n("view",{staticClass:t._$s(99,"sc","box-item right-item"),attrs:{_i:99}},[n("view",{staticClass:t._$s(100,"sc","sub-left"),attrs:{_i:100}},[n("h3"),n("p",{staticClass:t._$s(102,"sc","english"),attrs:{_i:102}})]),n("view",{staticClass:t._$s(103,"sc","sub-right"),attrs:{_i:103}},[n("h3"),n("p",{staticClass:t._$s(105,"sc","english"),attrs:{_i:105}})]),n("view",{staticClass:t._$s(106,"sc","sub-main"),attrs:{_i:106}},[n("view",{staticClass:t._$s(107,"sc","charts-box ring"),attrs:{_i:107}},[n("qiun-data-charts",{attrs:{type:"ring",opts:{legend:{position:"bottom"}},eopts:t.ringOpts,chartData:t.chartsDataPie2,echartsH5:!0,echartsApp:!0,_i:108}})],1),n("view",{staticClass:t._$s(109,"sc","sub-main-right"),attrs:{_i:109}},[n("view",{staticClass:t._$s(110,"sc","sub-info"),attrs:{_i:110}},[n("image",{attrs:{src:t._$s(111,"a-src",i("bc8f")),_i:111}}),n("text"),n("text",[t._v(t._$s(113,"t0-0",t._s(t.stockCount)))])]),n("view",{staticClass:t._$s(114,"sc","sub-info"),attrs:{_i:114}},[n("image",{attrs:{src:t._$s(115,"a-src",i("97a1")),_i:115}}),n("text"),n("text",[t._v(t._$s(117,"t0-0",t._s(t.emptyCount)))])]),n("view",{staticClass:t._$s(118,"sc","sub-info"),attrs:{_i:118}},[n("image",{attrs:{src:t._$s(119,"a-src",i("8c8a")),_i:119}}),n("text"),n("text",[t._v(t._$s(121,"t0-0",t._s(t.noneCount)))])])])])])]),n("view",{staticClass:t._$s(122,"sc","box box-bt"),attrs:{_i:122}},[n("view",{staticClass:t._$s(123,"sc","box-border box-border1"),attrs:{_i:123}}),n("view",{staticClass:t._$s(124,"sc","box-border box-border2"),attrs:{_i:124}}),n("view",{staticClass:t._$s(125,"sc","box-border box-border3"),attrs:{_i:125}}),n("view",{staticClass:t._$s(126,"sc","box-border box-border4"),attrs:{_i:126}}),n("view"),n("image",{attrs:{src:t._$s(128,"a-src",i("f2a4")),_i:128}})])])])]),n("view",[n("uni-popup",{ref:"url",attrs:{type:"dialog",_i:130}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u914d\u7f6eurl",value:t.baseUrl,placeholder:"\u793a\u4f8b:192.168.1.1",_i:131},on:{confirm:t.baseUrlConfirm}})],1)],1),n("view",[n("uni-popup",{ref:"ledId",attrs:{type:"dialog",_i:133}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u914d\u7f6eledId",value:t.baseLedId,placeholder:"\u793a\u4f8b:188",_i:134},on:{confirm:t.ledIdConfirm}})],1)],1),n("view",[n("uni-popup",{ref:"port",attrs:{type:"dialog",_i:136}},[n("uni-popup-dialog",{ref:"inputClose",attrs:{mode:"input",title:"\u914d\u7f6e\u7aef\u53e3\u53f7",value:t.basePort,placeholder:"\u793a\u4f8b:9090",_i:137},on:{confirm:t.portConfirm}})],1)],1)])},a=[]},fe07:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=Dt,e.Component=Pt,e.Page=Tt,e.nextTick=e.default=void 0;var n,r=a(i("8bbf"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return d(t)||h(t,e)||l(t,e)||c()}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t,e){if(t){if("string"===typeof t)return u(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function h(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0)if(i.push(o.value),e&&i.length===e)break}catch(c){r=!0,a=c}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw a}}return i}}function d(t){if(Array.isArray(t))return t}function f(t,e){t&&(e.mpOptions.data=t)}function p(e){e.components=t.__wxVueOptions.components}var g=Object.prototype.toString,v=Object.prototype.hasOwnProperty;function x(t){return"function"===typeof t}function y(t){return"[object Object]"===g.call(t)}function m(t,e){return v.call(t,e)}function b(){}function _(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var w=/-(\w)/g,S=_((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),k="__data__",A={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},T=Object.keys(A),C={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},P=Object.keys(C),D=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function O(t,e){var i=Object.create(null);Object.keys(t).forEach((function(e){var n=t[e];x(n)&&-1===D.indexOf(e)&&(i[e]=n)})),e.methods=i}function L(t,e){Object.keys(t).forEach((function(i){-1!==D.indexOf(i)&&(e[i]=t[i])}))}function M(t){var e={mixins:[],mpOptions:{}};return p(e),f(t.data,e),O(t,e),L(t,e),e}function F(t,e){t&&(e.mpOptions.properties=t)}function I(t,e){t&&(e.mpOptions.options=t)}function E(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function $(t,e){T.forEach((function(i){m(t,i)&&(e[A[i]]||(e[A[i]]=[])).push(t[i])}))}var j={"wx://form-field":{},"wx://component-export":{}};function R(t){var e=t.behaviors,i=t.definitionFilter,n=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?j[e]:e,e.definitionFilter&&(n.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),x(i))return function(t){i(t,n)}}function z(t,e){R(t)}function N(t){var e=t.data,i=t.methods,n=t.behaviors,r=t.properties,a={watch:{},mpOptions:{mpObservers:[]}};return f(e,a),E(i,a),U(n,a),F(r,a),$(t,a),z(t),a}var B={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;m(e,"name")||(e.name={type:String}),m(e,"value")||(e.value={type:String})}}};function U(t,e){t&&t.forEach((function(t){"string"===typeof t?B[t]&&e.mixins.push(B[t]):e.mixins.push(N(t))}))}function W(t){return t.split(".")}function q(t){return t.split(",").map((function(t){return W(t)}))}function H(t,e){if(t){var i=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){i.push({paths:q(e),observer:t[e]})}))}}function G(t,e){0===e.indexOf("/")&&(t="");var i=t.split("/"),n=e.split("/");i.pop();while(n.length){var r=n.shift();""!==r&&"."!==r&&(".."!==r?i.push(r):i.pop())}return i.join("/")}function K(e,i){e&&(Object.keys(e).forEach((function(i){var n=e[i];n.name=i,n.target=n.target?String(n.target):G(t.__wxRoute,i)})),i.mpOptions.relations=e)}function J(t,e){t&&(Array.isArray(t)||(t=[t]),e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null)),t.forEach((function(t){e.mpOptions.properties[S(t)]={type:String,value:""}})))}function X(t,e){t&&$(t,e)}function Y(t,e){t&&P.forEach((function(i){var n=t[i];x(n)&&(e[C[i]]=n)}))}function V(t){var e=t.data,i=t.options,n=t.methods,r=t.behaviors,a=t.lifetimes,o=t.observers,s=t.relations,c=t.properties,l=t.pageLifetimes,u=t.externalClasses,h={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return p(h),f(e,h),I(i,h),E(n,h),U(r,h),X(a,h),H(o,h),K(s,h),F(c,h),Y(l,h),J(u,h),$(t,h),z(t),h}function Z(t,e,i,n){if(e){var r="_$".concat(t,"Handlers");(n[r]||(n[r]=[])).push((function(){e.call(n,i)}))}}function Q(t,e,i){var n="linked",r=t.name,a=i._$relationNodes||(i._$relationNodes=Object.create(null));(a[r]||(a[r]=[])).push(e),Z(n,t[n],e,i)}function tt(t,e,i){var n="unlinked";Z(n,t[n],e,i)}function et(t,e,i){var n=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!n)return[];var r=Object.keys(n).find((function(t){var r=n[t];return r.target===e&&r.type===i}));return r?[n[r],t]:[]}function it(t,e,i){var n=i(t,t.$options.mpOptions.path),r=s(n,2),a=r[0],o=r[1];a&&(Q(a,t,o),Q(e,o,t),tt(a,t,o),tt(e,o,t))}function nt(t,e){var i=t.type;"parent"===i?it(e,t,(function(t,e){return et(t.$parent,e,"child")})):"ancestor"===i&&it(e,t,(function(t,e){var i=t.$parent;while(i){var n=et(i,e,"descendant");if(n.length)return n;i=i.$parent}return[]}))}function rt(t){var e=t.$options.mpOptions||{},i=e.relations;i&&Object.keys(i).forEach((function(e){nt(i[e],t)}))}function at(t,e){var i=t["_$".concat(e,"Handlers")];i&&i.forEach((function(t){return t()}))}var ot={enumerable:!0,configurable:!0,get:b,set:b};function st(t,e,i){ot.get=function(){return this[e][i]},ot.set=function(t){this[e][i]=t},Object.defineProperty(t,i,ot)}function ct(t,e,i){var n=t.replace(/\[(\d+?)\]/g,".$1").split(".");return n.reduce((function(t,i,r){if(r!==n.length-1)return"undefined"===typeof t[i]&&(t[i]={}),t[i];t[i]=e}),i),1===n.length}function lt(t,e){var i=this;y(t)&&(Object.keys(t).forEach((function(e){ct(e,t[e],i.data)&&!m(i,e)&&st(i,k,e)})),this.$forceUpdate(),x(e)&&this.$nextTick(e))}var ut=Object.prototype.toString,ht=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,n=ut.call(i);if("[object Array]"===n)return e=i.slice(0),e;if("[object Object]"===n){for(var r in i)e[r]=t(e[r],i[r]);return e}if("[object Date]"===n)return new Date(i.getTime());if("[object RegExp]"===n){var a=String(i),o=a.lastIndexOf("/");return new RegExp(a.slice(1,o),a.slice(o+1))}return i},dt=function(t){return ht("[object Array]"===ut.call(t)?[]:{},t)},ft=(n={},o(n,String,""),o(n,Number,0),o(n,Boolean,!1),o(n,Object,null),o(n,Array,[]),o(n,null,null),n);function pt(t){return ft[t]}function gt(t){return y(t)?m(t,"value")?t.value:pt(t.type):pt(t)}function vt(t){return y(t)?t.type:t}function xt(t,e,i,n){var r=i[t];if(void 0!==r){var a=e[t],o=vt(a);r=yt(r,o);var s=a&&a.observer;return s&&setTimeout((function(){mt(s,n,r)}),4),r}return gt(e[t])}function yt(t,e){return e===Boolean?!!t:e===String?String(t):t}function mt(t,e,i,n){try{"function"===typeof t?t.call(e,i,n):"string"===typeof t&&"function"===typeof e[t]&&e[t](i,n)}catch(r){console.error("execute observer ".concat(t," callback fail! err: ").concat(r))}}function bt(t,e){var i=t.$options.mpOptions.properties;if(i){var n=dt(t.$options.propsData)||{},r=function(r){var a=!!y(i[r])&&i[r].observer,o=xt(r,i,n,t);Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:function(){return o},set:function(e){var i=o;e===o||e!==e&&o!==o||(o=Array.isArray(e)?e.slice(0):e,a&&mt(a,t,e,i),t.$forceUpdate())}})};for(var a in i)r(a)}}function _t(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,i=t.$options.propsData;i&&e&&Object.keys(e).forEach((function(n){m(i,n)&&(t[n]=yt(i[n],vt(e[n])))}))}function wt(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t[k]=e;var i={get:function(){return t[k]},set:function(e){t[k]=e}};Object.defineProperties(t,{data:i,properties:i}),t.setData=lt,bt(t,e),Object.keys(e).forEach((function(e){st(t,k,e)}))}function St(t){var e=t.$emit;t.triggerEvent=function(i,n,r){var a={dataset:t.$el.dataset},o={target:a,currentTarget:a,detail:n,preventDefault:b,stopPropagation:b};e.call(t,i,o)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=_t}function kt(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(i){var n=e[i];if(n.mounted){var r=t[i],a=n.handler;"string"===typeof a&&(a=t[a]),a&&a.call(t,r,r)}}))}var At={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=b},created:function(){wt(this),St(this),rt(this)},mounted:function(){kt(this)},destroyed:function(){at(this,"unlinked")}};function Tt(e){var i=M(e);i.mixins.unshift(At),i.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=i}function Ct(t){t.onServiceAttached||(t.onServiceAttached=[]),t.onServiceAttached.push((function(){at(this,"linked")}))}function Pt(e){var i=V(e);i.mixins.unshift(At),i.mpOptions.path=t.__wxRoute,Ct(i),t.__wxComponents[t.__wxRoute]=i}function Dt(t){return t}t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var Ot=r.default.nextTick;e.nextTick=Ot;var Lt=uni.__$wx__,Mt=Lt;e.default=Mt}).call(this,i("c8ba"))}},[["dbb8","app-config"]]]);
Monitor-APP/unpackage/dist/build/app-plus/app-view.js
@@ -1 +1 @@
(function(t){var e={};function a(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(i,r,function(e){return t[e]}.bind(null,r));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s="dbb8")})({"01cc":function(t,e,a){"use strict";a.r(e);var i=a("4b05"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"04b5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading2",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"095e":function(t,e,a){"use strict";a.r(e);var i=a("bdfc"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"0d3e":function(t,e,a){"use strict";a.r(e);var i=a("bfc6"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"0da7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading3",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0de9":function(t,e,a){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function n(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];console[t].apply(console,a)}function s(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var o=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,n)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var a=i(t).toUpperCase();t="NUMBER"===a||"BOOLEAN"===a?"---BEGIN:"+a+"---"+t+"---END:"+a+"---":String(t)}return t})),l="";if(s.length>1){var c=s.pop();l=s.join("---COMMA---"),0===c.indexOf(" at ")?l+=c:l+="---COMMA---"+c}else l=s[0];console[o](l)}a.r(e),a.d(e,"log",(function(){return o})),a.d(e,"default",(function(){return s}))},1195:function(t,e,a){var i=a("24fb"),r=a("b8d8"),n=a("4f93"),o=a("c6e8");e=i(!1);var s=r(n),l=r(o);e.push([t.i,".animate{display:inline-block;-webkit-animation:25s wordsLoop linear infinite normal;animation:25s wordsLoop linear infinite normal}@keyframes wordsLoop{0%{transform:translateY(100px);-webkit-transform:translateY(100px)}100%{transform:translateY(-100%);-webkit-transform:translateY(-100%)}}@-webkit-keyframes wordsLoop{0%{transform:translateY(100px);-webkit-transform:translateY(100px)}100%{transform:translateY(-100%);-webkit-transform:translateY(-100%)}}.topUp{-webkit-animation:topUp 1.5s 1;animation:topUp 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes topUp{from{opacity:.5;top:-1080px}to{opacity:1;top:0}}@keyframes topUp{from{opacity:.5;top:-1080px}to{opacity:1;top:0}}.topDown{-webkit-animation:topDown 1.5s 1;animation:topDown 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes topDown{from{opacity:1;top:0}to{opacity:.5;top:-1080px}}@keyframes topDown{from{opacity:1;top:0}to{opacity:.5;top:-1080px}}.floorUp{-webkit-animation:floorUp 1.5s 1;animation:floorUp 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes floorUp{from{opacity:.5;top:0}to{opacity:1;top:1080px}}@keyframes floorUp{from{opacity:.5;top:0}to{opacity:1;top:1080px}}.floorDown{-webkit-animation:floorDown 1.5s 1;animation:floorDown 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes floorDown{from{opacity:.5;top:1080px}to{opacity:1;top:0}}@keyframes floorDown{from{opacity:.5;top:1080px}to{opacity:1;top:0}}.top-screen{position:fixed;width:1920px;height:1080px;background-image:url("+s+");z-index:999}.floor-screen{width:1920px;height:1080px;position:relative;color:#fff;text-align:center;font-size:200rpx;letter-spacing:5rpx;background-image:url("+s+")}.container{width:1920px;height:1080px;position:relative}.head{width:100%;height:10%;text-align:center;line-height:110px;color:#fff;font-size:40px;font-weight:700;letter-spacing:5px}.head uni-text{-webkit-transform:scaleY(.9);transform:scaleY(.9)}.time-tools{height:5%;position:absolute;top:0;float:right;right:50px;font-size:16px;font-weight:400;line-height:70px;letter-spacing:1px}.button-left{position:absolute;background-image:url("+l+");background-size:100% 100%;top:1.8%;left:21.3%;width:13.5%;height:8.5%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}.button-right{position:absolute;background-image:url("+l+");background-size:100% 100%;top:1.8%;left:65%;width:13.5%;height:8.5%}.main{position:relative;width:100%;height:90%}.main-sides{position:relative;display:inline-block;float:left;width:50%;height:100%}.box{position:relative;margin:3% 2% 0 2%;width:96%;height:30%;border:1px solid #145088;overflow:hidden}.box-lg{height:94%}.box-border{position:absolute;width:10px;height:10px}.box-border1{top:0;left:0;border-left:2px solid #31c4c4;border-top:2px solid #31c4c4}.box-border2{top:0;right:0;border-right:2px solid #31c4c4;border-top:2px solid #31c4c4}.box-border3{bottom:0;left:0;border-bottom:2px solid #31c4c4;border-left:2px solid #31c4c4}.box-border4{bottom:0;right:0;border-right:2px solid #31c4c4;border-bottom:2px solid #31c4c4}.content{display:flex;flex-direction:column;flex:1}.charts-box{width:80%;height:230px;margin-left:10%}.ring{display:inline-block;float:left;width:60%;height:300px;margin-left:-10%}.box-item{width:92%;height:20%;margin-left:4%;padding-top:1em;color:#fff}.introduce{height:30%}.introduce h2{letter-spacing:5px}.english{font-size:14px}.introduce-content{font-size:20px;padding-top:2em;text-indent:2em;line-height:2em}.charge-info{height:45%}.charge-info-item{display:inline-block;width:50%;height:40%}.charge-info-item uni-image{display:inline-block;float:left;height:100%;width:20%}.charge-info-item uni-view{display:inline-block;position:relative;margin-left:10%;width:70%;height:49%}.charge-info-item .count, .charge-info-item .unit{position:absolute;display:inline-block;font-size:32px;bottom:0;padding-left:5%}.charge-info-item .unit{font-size:16px;float:right;right:20%}.footer{position:absolute;border:1px solid #145088;height:15%}.use-info{}.use-left{display:inline-block;width:40%}.use-right{display:inline-block;float:right;width:20%}.use-main{width:100%;height:75%}.use-main .left{display:inline-block;float:left;height:100%;width:70%;line-height:20px}.left .progressBar{margin-top:9%;width:100%;height:20%;background-color:#233751;border-radius:20px}.left .progress{height:100%;background-color:#ff5722;border-radius:20px}.left uni-progress{margin-left:10%;margin-top:10%;display:block}.use-main .right{display:inline-block;float:right;height:100%;width:20%;font-size:40px;color:#ff5722;line-height:130px}.box-tp{height:30%}.box-tp .sub-main{}.box-md{height:43%}.sub-main-right{display:inline-block;height:100%;width:50%}.sub-info{width:100%;height:33%}.sub-info uni-image{display:inline-block;float:left;height:100%;width:15%}.sub-info uni-text{display:inline-block;width:40%;height:100%;text-align:center;line-height:120px;font-size:20px}.box-bt{background-color:#063a7b;border:none;height:15%;color:#fff}.box-bt uni-image{position:absolute;float:right;right:0;top:0;width:20%;height:100%}.box-bt{font-size:36px;line-height:140px;text-indent:5em}.right-item{height:94%}.sub-left{display:inline-block;float:left;width:40%}.sub-right{display:inline-block;float:right;width:20%}.sub-main{position:absolute;width:92%;height:80%;bottom:0}",""]),t.exports=e},1533:function(t,e,a){"use strict";a.r(e);var i=a("869f"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"1c17":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-3b8cb2d8]{width:30px;height:30px;position:relative}.container.loading1[data-v-3b8cb2d8]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.container .shape[data-v-3b8cb2d8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-3b8cb2d8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-3b8cb2d8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-3b8cb2d8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-3b8cb2d8]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-3b8cb2d8]{-webkit-animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}@keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}.loading1 .shape2[data-v-3b8cb2d8]{-webkit-animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}@keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}.loading1 .shape3[data-v-3b8cb2d8]{-webkit-animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}@keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}.loading1 .shape4[data-v-3b8cb2d8]{-webkit-animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}@keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}",""]),t.exports=e},"1f49":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading5",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"1f62":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v(t._$g(2,"t0-0"))])],1)},n=[]},"223c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(a("b3df")),r=o(a("400e")),n=o(a("f27d"));function o(t){return t&&t.__esModule?t:{default:t}}var s={},l=null;function c(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];for(var r in a)for(var n in a[r])a[r].hasOwnProperty(n)&&(t[n]=a[r][n]&&"object"===typeof a[r][n]?c(Array.isArray(a[r][n])?[]:{},t[n],a[r][n]):a[r][n]);return t}function d(t,e){for(var a in t)null!==t[a]&&"object"===typeof t[a]?d(t[a],e):"format"===a&&"string"===typeof t[a]&&(t["formatter"]=e[t[a]]?e[t[a]]:void 0);return t}var h={data:function(){return{rid:null}},mounted:function(){var t=this;l={top:0,left:0},setTimeout((function(){null===t.rid&&t.$ownerInstance&&t.$ownerInstance.callMethod("getRenderType")}),200)},destroyed:function(){delete r.default.option[this.rid],delete r.default.instance[this.rid],delete n.default.option[this.rid],delete n.default.instance[this.rid]},methods:{ecinit:function(t,e,a,i){var r=JSON.stringify(t.id);this.rid=r,s[r]=this.$ownerInstance||i;var o=JSON.parse(JSON.stringify(t)),l=o.type;l&&n.default.type.includes(l)?n.default.option[r]=c({},n.default[l],o):n.default.option[r]=c({},o);var d=o.chartData;n.default.option[r].xAxis&&n.default.option[r].xAxis.type&&"category"===n.default.option[r].xAxis.type&&(n.default.option[r].xAxis.data=d.categories),n.default.option[r].yAxis&&n.default.option[r].yAxis.type&&"category"===n.default.option[r].yAxis.type&&(n.default.option[r].yAxis.data=d.categories),n.default.option[r].series=[];for(var h=0;h<d.series.length;h++){n.default.option[r].seriesTemplate=n.default.option[r].seriesTemplate?n.default.option[r].seriesTemplate:{};var f=c({},n.default.option[r].seriesTemplate,d.series[h]);n.default.option[r].series.push(f)}if("object"===typeof window.echarts)this.newEChart();else{var p=document.createElement("script");p.src="./uni_modules/qiun-data-charts/static/app-plus/echarts.min.js",p.onload=this.newEChart,document.head.appendChild(p)}},ecresize:function(t,e,a,i){n.default.instance[this.rid]&&n.default.instance[this.rid].resize()},newEChart:function(){var t=this.rid;void 0===n.default.instance[t]?(n.default.instance[t]=echarts.init(s[t].$el.children[0]),!0===n.default.option[t].ontap&&(n.default.instance[t].on("click",(function(e){var a=JSON.parse(JSON.stringify({x:e.event.offsetX,y:e.event.offsetY}));s[t].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:a,currentIndex:e.dataIndex,value:e.data,seriesName:e.seriesName,id:t}})})),n.default.instance[t].on("highlight",(function(e){s[t].callMethod("emitMsg",{name:"getHighlight",params:{type:"highlight",dataIndex:e.batch[0].dataIndex,id:t}})}))),this.updataEChart(t,n.default.option[t])):this.updataEChart(t,n.default.option[t])},updataEChart:function(t,e){if(e=d(e,n.default.formatter),e.tooltip&&(e.tooltip.show=!!e.tooltipShow,e.tooltip.position=this.tooltipPosition(),"string"===typeof e.tooltipFormat&&n.default.formatter[e.tooltipFormat]&&(e.tooltip.formatter=e.tooltip.formatter?e.tooltip.formatter:n.default.formatter[e.tooltipFormat])),e.series)for(var a in e.series){var i=e.series[a].linearGradient;i&&(e.series[a].color=new echarts.graphic.LinearGradient(i[0],i[1],i[2],i[3],i[4]))}n.default.instance[t].setOption(e,e.notMerge),n.default.instance[t].on("finished",(function(){s[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),n.default.instance[t]&&n.default.instance[t].off("finished")}))},tooltipPosition:function(){return function(t,e,a,i,r){var n=t[0],o=t[1],s=r.viewSize[0],l=r.viewSize[1],c=r.contentSize[0],d=r.contentSize[1],h=n+30,f=o+30;return h+c>s&&(h=n-c-30),f+d>l&&(f=o-d-30),[h,f]}},ucinit:function(t,e,a,i){var n=this;if(JSON.stringify(t)!=JSON.stringify(e)&&t.canvasId){var o=JSON.parse(JSON.stringify(t.canvasId));this.rid=o,s[o]=this.$ownerInstance||i,r.default.option[o]=JSON.parse(JSON.stringify(t)),r.default.option[o]=d(r.default.option[o],r.default.formatter);var l=document.getElementById(o);l&&l.children[0]&&(r.default.option[o].context=l.children[0].getContext("2d"),r.default.instance[o]&&r.default.option[o]&&!0===r.default.option[o].update?this.updataUChart():setTimeout((function(){r.default.option[o].context.restore(),r.default.option[o].context.save(),n.newUChart()}),100))}},newUChart:function(){var t=this.rid;r.default.instance[t]=new i.default(r.default.option[t]),r.default.instance[t].addEventListener("renderComplete",(function(){s[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),r.default.instance[t].delEventListener("renderComplete")})),r.default.instance[t].addEventListener("scrollLeft",(function(){s[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t}})})),r.default.instance[t].addEventListener("scrollRight",(function(){s[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t}})}))},updataUChart:function(){var t=this.rid;r.default.instance[t].updateData(r.default.option[t])},tooltipDefault:function(t,e,a,i){if(e){var r=t.data;return"object"===typeof t.data&&(r=t.data.value),e+" "+t.name+":"+r}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip:function(t,e){var a=this,i=r.default.option[e].tooltipCustom;if(i&&void 0!==i&&null!==i){var n=void 0;i.x>=0&&i.y>=0&&(n={x:i.x,y:i.y+10}),r.default.instance[e].showToolTip(t,{index:i.index,offset:n,textList:i.textList,formatter:function(t,i,n,o){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,n,o):a.tooltipDefault(t,i,n,o)}})}else r.default.instance[e].showToolTip(t,{formatter:function(t,i,n,o){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,n,o):a.tooltipDefault(t,i,n,o)}})},tap:function(t){var e=this.rid,a=r.default.option[e].ontap,i=r.default.option[e].tooltipShow,n=r.default.option[e].tapLegend;if(0!=a){var o=null,c=null,d=document.getElementById("UC"+e).getBoundingClientRect(),h={};h=t.detail.x?{x:t.detail.x-d.left,y:t.detail.y-d.top+l.top}:{x:t.clientX-d.left,y:t.clientY-d.top+l.top},t.changedTouches=[],t.changedTouches.unshift(h),o=r.default.instance[e].getCurrentDataIndex(t),c=r.default.instance[e].getLegendDataIndex(t),!0===n&&r.default.instance[e].touchLegend(t),1==i&&this.showTooltip(t,e),s[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:h,currentIndex:o,legendIndex:c,id:e,opts:r.default.instance[e].opts}})}},touchStart:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(r.default.instance[e].scrollStart(t),s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e}}))},touchMove:function(t){var e=this.rid,a=r.default.option[e].ontouch;if(0!=a&&(r.default.instance[e].scroll(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e}}),!0===r.default.option[e].ontap&&!1===r.default.option[e].enableScroll&&!0===r.default.option[e].onmovetip)){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={x:t.changedTouches[0].clientX-i.left,y:t.changedTouches[0].clientY-i.top+l.top};t.changedTouches=[],t.changedTouches.unshift(n),!0===r.default.option[e].tooltipShow&&this.showTooltip(t,e)}},touchEnd:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(r.default.instance[e].scrollEnd(t),s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e}}))},mouseDown:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(n),r.default.instance[e].scrollStart(t),r.default.option[e].mousedown=!0,s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:n,id:e}})}},mouseMove:function(t){var e=this.rid,a=r.default.option[e].onmouse,i=r.default.option[e].tooltipShow;if(0!=a){var n=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-n.left,y:t.clientY-n.top+l.top},t.changedTouches=[],t.changedTouches.unshift(o),r.default.option[e].mousedown?(r.default.instance[e].scroll(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:o,id:e}})):r.default.instance[e]&&1==i&&this.showTooltip(t,e)}},mouseUp:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(n),r.default.instance[e].scrollEnd(t),r.default.option[e].mousedown=!1,s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:n,id:e}})}}}};e.default=h},"24fb":function(t,e,a){"use strict";function i(t,e){var a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"===typeof btoa){var n=r(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(o).concat([n]).join("\n")}return[a].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(a," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var n=0;n<this.length;n++){var o=this[n][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(a&&(l[2]?l[2]="".concat(a," and ").concat(l[2]):l[2]=a),e.push(l))}},e}},2662:function(t,e,a){var i=a("6f2f");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7136287c",i,!0,{sourceMap:!1,shadowMode:!1})},"2b2c":function(t,e,a){var i=a("eaa4");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("77bddab0",i,!0,{sourceMap:!1,shadowMode:!1})},"2b52":function(t,e,a){"use strict";a.r(e);var i=a("f49d"),r=a("c8ac");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o=a("3ecb");for(var n in o)"default"!==n&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("3464");var s=a("f0c5");r["default"].__module="rdcharts";var l=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"06c2910e",null,!1,i["a"],r["default"]);e["default"]=l.exports},"2c16":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.chartsview[data-v-fe046e60]{width:100%;height:100%;display:flex;flex-direction:column;flex:1;justify-content:center;align-items:center}.charts-font[data-v-fe046e60]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-fe046e60]{width:128px;height:128px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAUz0lEQVR4Xu1de3Bc1X3+zmp3jYVWfkPAgCWwY8zLEglNQCSW0yT9o2SQaDKdNulUykwfM+k09p+J3ImYIPJXi9yZzDSZZiwyaZuZBCwnNG1DMogEmUAAy7xs/MAyNhCMjWWtsK1deU/n23OvtLu6j3Pv3t29d71nxjOSde455/5+3/m9z7kCjRY4BR7eK7fkcmhrasLT37hbTAY+QYADigDHagwFYGhc7gZwHMAUgG4hMPzNe8RoWInTAECAnHl4r+yREt0DXWIbhx3cJ5fHP8TYjntFR4DTBDqUIwBmMrJDCtyPHDoQw0Q8jkeXinCLtECp43Gwh56R22IxTBbu+KFxOTbQJbo9DlW17rYASGdlNySeKl2JADpbkmKiait0mWhoXHZkmzE52CkocmvavvOsbMvl8MhAl+jlQrg2CQzu6BI9NV2Yw+T2AJiVo+DuL2kSeLQ1KfrC8kLcYbkYBv/pbjEWhjUNjUvSpk9KSAicm2tGXxjAaUcbewBkJAm6xeLBp1PJ2os06ttcDl8H0CEEaGnvGegSg2EAQZTW4B0AEntSS2ov0mhgJc5jmwT6IDEWi2E0zNZ2WEFhC4CZjCRxH7GwAfpbkmIkLC9EFQBg20BXeOySsNBGZx2OXkB6Vg5CgAbMZgD7BTDSkhTDOgM3+kSDAr7iANNz8n4hQRdxojUu9kTjVRurtKKAJwBIKZfPZPOuYWFgY6wlgV4hau+GNVjsnQKeAJDOSIp/Wt6lbSKeQG8jSOSdAbV+wisA7FxDSGAqBmwNS5DIiGIucyNwKiGedutTz3/3BgCb4JBJoGqDIJ2VW4REmxRog0S3lGgT/NlfY3RzCgJjQmJSCkxeDuDwBgCb8HAhvQkCIdCbSgQfmSPDmWGDzHsm1UqwjBEUAMbqERCeAEBGz2RknwR2uW0yAZQdL6DR+WEW90syXLmjtW8So0Jg9MoE9tSD4esZANUAAd1M5NAjGOULaaOkAzCKGEaj7Ar7AoBHEGxrSYqdOnxMZ+W3ZA59ZehxnWkC7yMlJkUMIy1x7IyaVPANAAMEHTlgTACO1rYERlqTot+J8nbp58C5VcEBDftnOEpAKAsAgYPAPgNZQbYFP3QeCAybJ/Bg2CVC2QDwCoJUAtudiJKuExCQLoZbPKirAoOHovuIThVByuXii2jE/C9I2TaXBYsfmThyahMtCWy1A4ERbj7rvvRI9aCa3F7pINm3n5XdXgtjFgHAYCQrW4v8bBo6MYFep5cwmEefuSwQpDNSRoq9+osdrqRaGBqXMhfDVi8gWASAdEbuswuyGCKNSLatBygXBHUqAQohMmHESAKrqzSro4TIS2yOq10dVQQAuyKQUoC7BXnIxHQWwwL4ay/qIM/8DHaFJuijv7M99QzaNmAx6hzQFsvhKSmxvakJo7oHUooA4MUA0wHBTDYfQnVUB6bFnLc1JHqiFgPwxPnSzhKjLUn0B+UpsDoqFkOfLvO5HN8AMN5lOJUU2+2IMD0ne0QOtCcq0k7OANe1VGToag7qaBRXeiFFAJjOyBENsV20Jqcgj2FQHgvyJWYvAQfPAJuvAv7198ADm4DMHJBKAmuag5ypemPpGNiVWk2pDcCDDDQCPTU7EOgmjrxMRgA8dgBYmwJOXwBuWgH87m3gz26OLgDy6q9G9RSLvIAymFZUGsaCjJzE7qB1+vvngXRGQebG5QB/P30eaF2iQBHllk8wxdDfGq/eYVLLQJBfEOQNOpk3/Bg86hbA8iAZwt2/a78asX8zsKRJ/fzYQeDttFIHUbcJqi0JnM4FaOX9g2Sw7lgHTgPTs0DHRxTjT5wDtqzTfTr8/aoJArfTwX055P1519q6apGV4v8/XlU6nzv/vo8CvzwK3L0W2LS6Wquo/DzVAoFrMiivyzVSvpUnycIMVAUU///2kgIC9b+pDqq5jirMVXEX0RUAfMkwgoDrMoFQBUbUcoqxVFJsrdQCtAAQZhBUijChGlfiwdSSypx81gaAAQLLA6OhIlaNF2MGqriMm1cFqJoEtlai0lobAIzqZbPYF7RrV2N+BT79L99c8Eh+dzI474RGYSqB9qDyBuaLawMgnZE8Exjau24C56TPAZ8+vsD0594GPrHW50DWjwVuD2gBwDgm/q1AX6VOB/v5YeDWNerlXnsf+MKGYF/ULQvrdTZXAFQioeN1kVHqTxuAgSo2xiWCdk+DVgWuAEjPyt31XqARJYAZa92ZSqq7CMttjgCoh1r9cgkU1ueDuq7PEQDTs/JY0Nm8sBI0gusKxCCMZDIogsyqzJIDiA3YAqCx+yvDs4BHLVsKBFoPEPDLNYbToUCZUsASAFHY/SfTCxWtq5qBK4ziEB2a1VmfsqTAIgBUupLXL/Evshj0NNCaBM7NAr89sTDSp64HOj/id+ToP1eOR7AYAD4qg6tBwufeARhabV8BfPJaFWxZEgeSMWDTmstaApD8vuMCRQAI47Gs37wFrG4GrksBR882mG212VhW3rpEtPvZiL6OhvmZyOszFPm7D6qqX+76L6xfGIH/l7mkVMGNKy773Z8njIyh1081cfHBkJAEfgqZv2kV8Cmj4HP/H4ADZ1RBqNmYbfvEtV7hVX/9/X7HYR4AYUr6PPmmYjSZ/7kblRT47yOK8Uyu8DxA6xXqHADVw2XsARQhuSWBFV7rBeYBoHsyuNJ7582zwBNHgNVLgb+8TTH/8YOq/o+7ffPVCwynpAiC+W+cUfOcnwOuvlIdO4ti86MG5gGQdrkFtFoE2fUykJ4F+u4AknHgx6+pnf/ZduCW1QD9f3oDPA/A5tcFpA3x8ingxXcVuPJ61Dgt27MRuKG1Wm8c6DyevYE8AMJk/f/nq8BNK5VeN10/k8mvnwZ+ZRw1pfjnYdCOq1VZuJd2/Bzwv0cXGL9hpdr1PGNIgMUF8Oe3AquWehk1FH0nUknR6WUleQCENe37vZeUFOi/AyhUDbQL/JwE5q4ngI4YNxBxl7NiZ5kBoCePAb9/R4mBq64EejcGX9DhhTl++sYTaPdya7sCgPoySM1LvujzM8Dzd3cuMNy08ikZeBqYqoE7njv1t28p3c3f/+hapSLs2jszAI1Luo40JMn4j64s7v3PzympQNeSgLtnLfDxiHkYXkvGFAA0r2Yjsf3sPF0km/r/H+9aEP8P8ORPEhh5ecErIPNpGLJxF7/3oWLcfesV80rboQ+UyDf7f3HTYuPx+XeAX00Ct68BPn0D8O8TasyvbgZakrpvEIp+nuyAPACmM/KsW7k3b+N4/ABA5lSq8cIH0/o39f9f3KoYQYab0uDnR4BjZ4Gv3LYAgB+9qiQB+xe2X0+q4kw22hL8V9roTXz3BTXP1z6mVAJzDfxHqUIDNELN02f9hI7/T6v7zSklbml8MfFCXzzoRp1Pv57n/Wj5M/RrJnn2/QG4rlVJIPM4+DfvWVjB9/YpFfFJIzBEZv7iMHAirUT+59qBO2zcu7zuf1ftfrOKtxAUVElBF3cGTTtzPBaNtiaFhRy0nlHoGIDc/a+fUlez0Dq/ZY26kiXoRoCR0G5WvRkoMnf0/xwFXnwPiAFINgE3LAOmLwKnjPEoKejfW7Xj0+q0Mef92seLVQNLvF95H/iTm4CNJfZC0O8e5HheAkJCNwBkHsv++zuDXKq/sSgd/uu1xf47gfnWOR5mVeNe1Qx8adOClW8l+n8woQzDL9682Cik7fDTg8D1KaD3Zn9rrdRTlHA0mmmvLJJOHopERFg8AK+EIgiomo6dAy7OKdXwNx3AiRngRy8DOQl0XgN8Zp19tJDMJZMLRX/pOh7eqwhMNRCmZtpkVreiePEECADLj0SH6WWd1kIgPP6G2sVty4Av36pE/+43gDMX1K6+b8NiEJhGHqXEV263Bwm9AY731Q6gJVF7qnDnT7ynbCS6zDx8QpXJgNi8JPBwmljouoC1f3X7FdDHH30DmMsBG1YosU+m0Vg8exG4pkV5B2begCFg5htIMCf7gDOadsCXbgGusbEjqkkbMp+iv7QR5POG+eUGADL/rWmgSQBzEui4CvjT9cBUBnjikPqbCYJzF4EfGBdNMW5g5xmYBKY3cOgMsGEVcClXTVY7z+WkArxUCIkoFIA6keLXx4DXTiuDb2ubihdkcsCnDZ+fDPzZIRX+pYvJRBPF6GfbVPRQt124FE4AULJZBOe0YwFUAZG9mv2Fd4G9J4tdOEb0fnNCVQxtuQHoug4gCH5yADgxrdjtZPRZeQqvnFISgEmiMDV6ZjbueP0DgBm9PYes9Tizhr84mr98Ol9Qwps66OszZOyF+WS2GSQKiw2gCcD6BkBMABT9DNLY6XFKgicnVWCIuQR6BMwb0Ojz0hhipg3x5dsilR6ubwA0xwGCgDvaLsJHJtPPP/yBKvQg862SQG5gYByArZI5ELc1+Pi7PgCmM5JfuArNRZBuL0uGMkdg5dsXPktwcPfS4PMq9s1xzDAxS9KZlYxQ0wdAlOIAFOPU5Wxm1s6KKfTzqbvLYT7HNWMANCZZixihVp8AYHSPlrxdWpcMMiN8/Pmua1QW0E+LajbQeNf6A4BZ1MGw5z98bDFLybAnDqvYPptOkMcJGBGuB+BraReFRCYU/OPXgVMfWjOW+p4Gn1nu5RbedZMIHOe7L6pevJa+EqlvtzWU9XdPoeCQ1AM6vbCp+0t3P3c96wJZzMHG6l4WdJR7VuCR54ELc6q4xEu0sCymBfiwp2ygbj1AgOvzPBQjcU8dL9bpNPQops1dT7sgCGYxScSxGURa2+rubXh+mWo84KkeICu7IcFbQEPb6Pqx6mdpXBV9HvlgoRiktLS7nJcw9X4ipuIM9CJWXqHSxVFqXkrDRZgOhdgROZsDvv8ScMnMWgiV9uWOXxfACR6qErp8BJpVY7KF2UW3UrUwgEQC51qTQrtiU1UFz8pJIRDqj67MzAGPva5EPsO7zPkHwXyO98NX1IeomE4myFgnQHAxysiQMkPBLIZlsWoEmrYLyHfxdC6g1i/PxfJkD9O/bOWIf/OaGep7Nur8eEwBoNCFpHQw6wb/9s7yDcwq0FDbBVwAQAQ8gULCUVSPn1y4J4BlX+uWqfIv85iXFaHN4g7uaJ4INr84wtLzrAReeFs99Ve3Fx8O/ZfnVd3hXdeqbxOFuXnxAOYBENaLoZwITWnA3ct6APN0L/tTbFOEXxFXP3OnT11UI5HxhY2HPnjYhCqFpeY8+8BWGGnk89/fB9AOYWPRCXMLYW1eDMB5APCHqBaGEAisDWCI+PDZ4ttDSplEYKxfody79uUKKOapI55J4Glg2gIsJqF6IYAIMvZh/2MGQG5bA3ymLXgI0IATAj3ml0G8VmxLieOtS4SnlYXufoByydoUUwdHeUhkdk6dLqbzwCNndO8KG5nO8DGZblYHs2bwJweLgWQGmFgbyDgBG08OXx+AB1K0IAv/3ctHPP1cExO6G0LKBYDu82Q+q4a52ynSWTlUGEFkKpht+ZJiu4L/T8/g8+1Ac6JY/ejObdcvlRSWRWc8vSUlRt3S9mXdEKJzRrDcFwzL86ynZ7qYzW+tAA3Knx5Qhaa0GcotrHQ706f16T6J0ZYk+r3cE1SEuHRGTgDYHBZGVWIdhcz3WhlcuJ7CdDGDUn/crozJcprbDtYCAeDpY5PFAIiYO+iV2Nz15udcyk0Xc+7CqiPeKPLAxvJAoPO5WOOr7KMugTttEBQBoJ7VQCHzGS9wqiX0AiyCwKxBqBYIjPA9v9LuJK0n4gn0ul0XE5m7gr0wpbSveYqmnDF0nw3qWhm3gI4OCHQkyiIA6NwXoEuMsPSjH8/IX2ausiuiIcjawXJtAXOVgYBAYjKVRKedYWj3vYDQJ4cqy8rwjO4GAq502uWGdyfjsvHFkPDw2n4lAoOphHjQaalOIHACkSUAqF/SWUy6BR6iQLt6WaMERlqTot8rCBheTiTQYWcM2h539BKCrBcih/09dEBAvuWAYW5eMh8x9JnXyBu5hS359xQYa4ljp+N51ygUioSdaUGvjyBIJbDdLdpHKV7YxyqxxNyBIwDq0SMImiE1Gk870GOuz+oEGN1E1xPvUTo6ViNm1GpaTyCwC/O7AoChRwnsq9VbNuZ1pIA2CCy9BIk9rgDg9OmMHAbw9QYzQkkBLRAYkcNRAMoIBPYLoE8LAAYI6j5TGEr26i3KUyFo4ZDaANBMReott9ErUAq41RI4TaYNAA4ShWNkgVI2QoPZVRO5vYItAIbGZYcQWJZZiv2DncIoh8x/XCLSN4u6ESSqfw8UAEPjeaOvj1+kBLCuqQmd37hb8Gfz+0Juueio0jGS6/ZTDGq+6CIJMLhPLk+cx9lYDO1k+kPPyBEhMDnQJQbNh1g4ks1iopErqDhe9scT6JnLYBgC91vN5hbrd1vhIgB851nZlsvhWLYZKyj6DWmAgS6xrXCwhlHoRtry/s4a/1QSHWY4l6FcKbCtcNOxT0ygpyUp6KH5apY2gLHrt1AFCIHOWAwdpgoonKURKvZFc9eHuKtjQHcpY/Mle3NoQw7dsgkTfr4VXDq5rRH48F7Zk8uhrakJo1bMNwdqZA1d+empgx3zPQ3iobMnN9Bu3AYIPFDcoWu1mc+lBAIADsQDpshhpGEY+gNDLZgfCADoNSQvqPLkTSuxfuNq7IwJhODTCv4YUYunsjkc3f8+Bo7M4v8KYy5cixmPKVxXaWymnDWXLQGGxiVjAmaCoZy1XPbPSon9O+4VHSYhaIdJid2lhJESUzvu1f80nBNhywYA3cY5oOhI8uqlaLk+hfWXPUc1CHAijSOnL2CGXePAZKHBzd0PgEG50jZR6pZrTGXZpWwA+J248Vw4KNAAQDj4ULNVBA6Abz8ru8Ul9SVyITCVbUY/DRsjxLxLSmhdYSYEHh3oEiMch2rm0iXssqHSxI57xfZKU/ChZ+QjAOb1c6XnM+g3T4NKzRc4AIbGZR8TSeaCYzH0Ua8ZIeY8QzXbSBEAcvlSZyvwBKYPndb10LjkBQ1a4NV8P51u8zTQ6eynT+AA8LOIxjO1o0ADALWjfShmjhwACgNPoaCgsnWOO+VLwrJOq3VEDgCGLrbMjdeK0EEGZqr9DpEDgFXgqdpEK50vlsPUQJf/nHwt1///89bqDjCPWPAAAAAASUVORK5CYII=");background-position:50%}',""]),t.exports=e},"2c81":function(t,e,a){"use strict";a.r(e);var i=a("04b5"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},3464:function(t,e,a){"use strict";var i=a("85db"),r=a.n(i);r.a},3718:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopupDialog",props:["value","placeholder","type","mode","title","content","beforeClose","cancelText","confirmText"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"37d3":function(t,e,a){"use strict";var i=a("2662"),r=a.n(i);r.a},3836:function(t,e,a){"use strict";a.r(e);var i=a("0da7"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"3ecb":function(t,e,a){"use strict";a.r(e);var i=a("55fd"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"3fb3":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={qiunDataCharts:a("2b52").default,uniPopup:a("d44b").default,uniPopupDialog:a("848c").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),class:t._$g(1,"c"),attrs:{_i:1}},[a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("v-uni-text",{attrs:{_i:3}},[t._v("\u81ea\u52a8\u4ed3\u5e93WCS\u76d1\u63a7\u5e73\u53f0")]),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[t._v(t._$g(4,"t0-0")+"-"+t._$g(4,"t0-1")+"-"+t._$g(4,"t0-2")+"\xa0"+t._$g(4,"t0-3")+":"+t._$g(4,"t0-4")+":"+t._$g(4,"t0-5")+"\xa0"+t._$g(4,"t0-6"))]),a("v-uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{click:function(e){return t.$handleViewEvent(e)}}}),a("v-uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("v-uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("v-uni-view",{staticClass:t._$g(8,"sc"),staticStyle:{width:"100%"},attrs:{_i:8}},[a("v-uni-view",{staticClass:t._$g(9,"sc"),staticStyle:{height:"90%"},attrs:{_i:9}},[a("v-uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}}),a("v-uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}}),a("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}}),a("v-uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}}),a("v-uni-view",{attrs:{_i:14}},[a("v-uni-text",{staticClass:t._$g(15,"sc"),attrs:{_i:15}},[t._v(t._$g(15,"t0-0"))])],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(16,"sc"),class:t._$g(16,"c"),attrs:{_i:16}},[a("v-uni-view",{staticClass:t._$g(17,"sc"),attrs:{_i:17}},[a("v-uni-text",{attrs:{_i:18}},[t._v("\u81ea\u52a8\u4ed3\u5e93WCS\u76d1\u63a7\u5e73\u53f0")]),a("v-uni-view",{staticClass:t._$g(19,"sc"),attrs:{_i:19}},[t._v(t._$g(19,"t0-0")+"-"+t._$g(19,"t0-1")+"-"+t._$g(19,"t0-2")+"\xa0"+t._$g(19,"t0-3")+":"+t._$g(19,"t0-4")+":"+t._$g(19,"t0-5")+"\xa0"+t._$g(19,"t0-6"))]),a("v-uni-view",{staticClass:t._$g(20,"sc"),attrs:{_i:20},on:{click:function(e){return t.$handleViewEvent(e)}}}),a("v-uni-view",{staticClass:t._$g(21,"sc"),attrs:{_i:21},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("v-uni-view",{staticClass:t._$g(22,"sc"),attrs:{_i:22}},[a("v-uni-view",{staticClass:t._$g(23,"sc"),attrs:{_i:23}},[a("v-uni-view",{staticClass:t._$g(24,"sc"),attrs:{_i:24}},[a("v-uni-view",{staticClass:t._$g(25,"sc"),attrs:{_i:25}}),a("v-uni-view",{staticClass:t._$g(26,"sc"),attrs:{_i:26}}),a("v-uni-view",{staticClass:t._$g(27,"sc"),attrs:{_i:27}}),a("v-uni-view",{staticClass:t._$g(28,"sc"),attrs:{_i:28}}),a("v-uni-view",{staticClass:t._$g(29,"sc"),attrs:{_i:29}},[a("h3",{attrs:{_i:30}},[t._v("\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93")]),a("p",{staticClass:t._$g(31,"sc"),attrs:{_i:31}},[t._v("Automatic Storageand Retrieval System")]),a("p",{staticClass:t._$g(32,"sc"),attrs:{_i:32}},[t._v("\u5229\u7528\u7acb\u4f53\u4ed3\u5e93\u8bbe\u5907\u53ef\u5b9e\u73b0\u4ed3\u5e93\u9ad8\u5c42\u5408\u7406\u5316\u3001\u5b58\u53d6\u81ea\u52a8\u5316\u3001\u64cd\u4f5c\u7b80\u4fbf\u5316\uff1b\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93\u662f\u5f53\u524d\u6280\u672f\u6c34\u5e73\u8f83\u9ad8\u7684\u5f62\u5f0f\u3002\n\t\t\t\t\t\t\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93\u7684\u4e3b\u4f53\u7531\u8d27\u67b6\u3001\u5df7\u9053\u5f0f\u5806\u579b\u8d77\u91cd\u673a\u3001\u5165\uff08\u51fa\uff09\u5e93\u5de5\u4f5c\u53f0\u548c\u81ea\u52a8\u8fd0\u8fdb\uff08\u51fa\uff09\u53ca\u64cd\u4f5c\u63a7\u5236\u7cfb\u7edf\u7ec4\u6210\u3002\n\t\t\t\t\t\t\u8d27\u67b6\u662f\u94a2\u7ed3\u6784\u6216\u94a2\u7b4b\u6df7\u51dd\u571f\u7ed3\u6784\u7684\u5efa\u7b51\u7269\u6216\u7ed3\u6784\u4f53\uff0c\u8d27\u67b6\u5185\u662f\u6807\u51c6\u5c3a\u5bf8\u7684\u8d27\u4f4d\u7a7a\u95f4\uff0c\u5df7\u9053\u5806\u579b\u8d77\u91cd\u673a\u7a7f\u884c\u4e8e\u8d27\u67b6\u4e4b\u95f4\u7684\u5df7\u9053\u4e2d\uff0c\u5b8c\u6210\u5b58\u3001\u53d6\u8d27\u7684\u5de5\u4f5c\u3002\u7ba1\u7406\u4e0a\u91c7\u7528\u8ba1\u7b97\u673a\u53ca\u6761\u5f62\u7801\u6280\u672f\u3002")])],1),a("v-uni-view",{staticClass:t._$g(33,"sc"),attrs:{_i:33}},[a("h3",{attrs:{_i:34}},[t._v("\u4ed3\u5e93\u6570\u636e")]),a("p",{staticClass:t._$g(35,"sc"),attrs:{_i:35}},[t._v("warehouse data")]),a("v-uni-view",{staticClass:t._$g(36,"sc"),attrs:{_i:36}},[a("v-uni-image",{attrs:{src:t._$g(37,"a-src"),mode:"aspectFit",_i:37}}),a("v-uni-view",{attrs:{_i:38}},[a("v-uni-text",{staticClass:t._$g(39,"sc"),attrs:{_i:39}},[t._v(t._$g(39,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(40,"sc"),attrs:{_i:40}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:41}},[t._v("\u7d2f\u8ba1\u8d70\u884c\u8ddd\u79bb(\u7c73)")])],1),a("v-uni-view",{staticClass:t._$g(42,"sc"),attrs:{_i:42}},[a("v-uni-image",{attrs:{src:t._$g(43,"a-src"),mode:"aspectFit",_i:43}}),a("v-uni-view",{attrs:{_i:44}},[a("v-uni-text",{staticClass:t._$g(45,"sc"),attrs:{_i:45}},[t._v(t._$g(45,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(46,"sc"),attrs:{_i:46}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:47}},[t._v("\u7d2f\u8ba1\u5347\u964d\u8ddd\u79bb(\u7c73)")])],1),a("v-uni-view",{staticClass:t._$g(48,"sc"),attrs:{_i:48}},[a("v-uni-image",{attrs:{src:t._$g(49,"a-src"),mode:"aspectFit",_i:49}}),a("v-uni-view",{attrs:{_i:50}},[a("v-uni-text",{staticClass:t._$g(51,"sc"),attrs:{_i:51}},[t._v(t._$g(51,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(52,"sc"),attrs:{_i:52}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:53}},[t._v("\u7d2f\u8ba1\u8d70\u884c\u65f6\u957f(\u79d2)")])],1),a("v-uni-view",{staticClass:t._$g(54,"sc"),attrs:{_i:54}},[a("v-uni-image",{attrs:{src:t._$g(55,"a-src"),mode:"aspectFit",_i:55}}),a("v-uni-view",{attrs:{_i:56}},[a("v-uni-text",{staticClass:t._$g(57,"sc"),attrs:{_i:57}},[t._v(t._$g(57,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(58,"sc"),attrs:{_i:58}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:59}},[t._v("\u7d2f\u8ba1\u5347\u964d\u65f6\u957f(\u79d2)")])],1)],1),a("v-uni-view",{staticClass:t._$g(60,"sc"),attrs:{_i:60}},[a("v-uni-view",{staticClass:t._$g(61,"sc"),attrs:{_i:61}},[a("h3",{attrs:{_i:62}},[t._v("\u5e93\u4f4d\u4f7f\u7528\u7387")]),a("p",{staticClass:t._$g(63,"sc"),attrs:{_i:63}},[t._v("EQUIPMENT USAGE THIS MONTH")])],1),a("v-uni-view",{staticClass:t._$g(64,"sc"),attrs:{_i:64}},[a("h3",{attrs:{_i:65}},[t._v("20%")]),a("p",{staticClass:t._$g(66,"sc"),attrs:{_i:66}},[t._v("\u540c\u6bd4\u4e0a\u6708 + 5%")])],1),a("v-uni-view",{staticClass:t._$g(67,"sc"),attrs:{_i:67}},[a("v-uni-view",{staticClass:t._$g(68,"sc"),attrs:{_i:68}},[a("v-uni-view",{staticClass:t._$g(69,"sc"),attrs:{_i:69}},[a("v-uni-view",{staticClass:t._$g(70,"sc"),style:t._$g(70,"s"),attrs:{_i:70}})],1)],1),a("v-uni-view",{staticClass:t._$g(71,"sc"),attrs:{_i:71}},[t._v(t._$g(71,"t0-0"))])],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(72,"sc"),attrs:{_i:72}},[a("v-uni-view",{staticClass:t._$g(73,"sc"),attrs:{_i:73}},[a("v-uni-view",{staticClass:t._$g(74,"sc"),attrs:{_i:74}}),a("v-uni-view",{staticClass:t._$g(75,"sc"),attrs:{_i:75}}),a("v-uni-view",{staticClass:t._$g(76,"sc"),attrs:{_i:76}}),a("v-uni-view",{staticClass:t._$g(77,"sc"),attrs:{_i:77}}),a("v-uni-view",{staticClass:t._$g(78,"sc"),attrs:{_i:78}},[a("v-uni-view",{staticClass:t._$g(79,"sc"),attrs:{_i:79}},[a("h3",{attrs:{_i:80}},[t._v("\u5165\u51fa\u5e93\u7edf\u8ba1")]),a("p",{staticClass:t._$g(81,"sc"),attrs:{_i:81}},[t._v("ORDER STATISTICS")])],1),a("v-uni-view",{staticClass:t._$g(82,"sc"),attrs:{_i:82}},[a("h3",{attrs:{_i:83}},[t._v("31")]),a("p",{staticClass:t._$g(84,"sc"),attrs:{_i:84}},[t._v("\u4eca\u65e5\u8ba2\u5355\u6570")])],1),a("v-uni-view",{staticClass:t._$g(85,"sc"),attrs:{_i:85}},[a("v-uni-view",{staticClass:t._$g(86,"sc"),attrs:{_i:86}},[a("qiun-data-charts",{attrs:{_i:87}})],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(88,"sc"),attrs:{_i:88}},[a("v-uni-view",{staticClass:t._$g(89,"sc"),attrs:{_i:89}}),a("v-uni-view",{staticClass:t._$g(90,"sc"),attrs:{_i:90}}),a("v-uni-view",{staticClass:t._$g(91,"sc"),attrs:{_i:91}}),a("v-uni-view",{staticClass:t._$g(92,"sc"),attrs:{_i:92}}),a("v-uni-view",{staticClass:t._$g(93,"sc"),attrs:{_i:93}},[a("v-uni-view",{staticClass:t._$g(94,"sc"),attrs:{_i:94}},[a("h3",{attrs:{_i:95}},[t._v("\u5e93\u5b58\u7c7b\u578b")]),a("p",{staticClass:t._$g(96,"sc"),attrs:{_i:96}},[t._v("INCOME DATE")])],1),a("v-uni-view",{staticClass:t._$g(97,"sc"),attrs:{_i:97}},[a("h3",{attrs:{_i:98}},[t._v("\u4eca\u5929")]),a("p",{staticClass:t._$g(99,"sc"),attrs:{_i:99}},[t._v("Today")])],1),a("v-uni-view",{staticClass:t._$g(100,"sc"),attrs:{_i:100}},[a("v-uni-view",{staticClass:t._$g(101,"sc"),attrs:{_i:101}},[a("qiun-data-charts",{attrs:{_i:102}})],1),a("v-uni-view",{staticClass:t._$g(103,"sc"),attrs:{_i:103}},[a("v-uni-view",{staticClass:t._$g(104,"sc"),attrs:{_i:104}},[a("v-uni-image",{attrs:{src:t._$g(105,"a-src"),mode:"aspectFit",_i:105}}),a("v-uni-text",{attrs:{_i:106}},[t._v("\u5728\u5e93")]),a("v-uni-text",{attrs:{_i:107}},[t._v(t._$g(107,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(108,"sc"),attrs:{_i:108}},[a("v-uni-image",{attrs:{src:t._$g(109,"a-src"),mode:"aspectFit",_i:109}}),a("v-uni-text",{attrs:{_i:110}},[t._v("\u7a7a\u5e93")]),a("v-uni-text",{attrs:{_i:111}},[t._v(t._$g(111,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(112,"sc"),attrs:{_i:112}},[a("v-uni-image",{attrs:{src:t._$g(113,"a-src"),mode:"aspectFit",_i:113}}),a("v-uni-text",{attrs:{_i:114}},[t._v("\u7981\u7528")]),a("v-uni-text",{attrs:{_i:115}},[t._v(t._$g(115,"t0-0"))])],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(116,"sc"),attrs:{_i:116}},[a("v-uni-view",{staticClass:t._$g(117,"sc"),attrs:{_i:117}}),a("v-uni-view",{staticClass:t._$g(118,"sc"),attrs:{_i:118}}),a("v-uni-view",{staticClass:t._$g(119,"sc"),attrs:{_i:119}}),a("v-uni-view",{staticClass:t._$g(120,"sc"),attrs:{_i:120}}),a("v-uni-view",{attrs:{_i:121}},[t._v("\u6d59\u6c5f\u4e2d\u626c\u7acb\u5e93\u6280\u672f\u6709\u9650\u516c\u53f8")]),a("v-uni-image",{attrs:{src:t._$g(122,"a-src"),mode:"aspectFit",_i:122}})],1)],1)],1)],1),a("v-uni-view",{attrs:{_i:123}},[a("uni-popup",{ref:"url",attrs:{_i:124}},[a("uni-popup-dialog",{ref:"inputClose",attrs:{_i:125},on:{confirm:function(e){return t.$handleViewEvent(e)}}})],1)],1),a("v-uni-view",{attrs:{_i:126}},[a("uni-popup",{ref:"ledId",attrs:{_i:127}},[a("uni-popup-dialog",{ref:"inputClose",attrs:{_i:128},on:{confirm:function(e){return t.$handleViewEvent(e)}}})],1)],1)],1)},n=[]},"400e":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var a=new Date;a.setTime(1e3*t);var i=a.getFullYear(),r=a.getMonth()+1;r=r<10?"0"+r:r;var n=a.getDate();n=n<10?"0"+n:n;var o=a.getHours();o=o<10?"0"+o:o;var s=a.getMinutes(),l=a.getSeconds();return s=s<10?"0"+s:s,l=l<10?"0"+l:l,"full"==e?i+"-"+r+"-"+n+" "+o+":"+s+":"+l:"y-m-d"==e?i+"-"+r+"-"+n:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+l:[i,r,n,o,s,l]},n={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["\u997c\u72b6\u56fe","\u5706\u73af\u56fe","\u73ab\u7470\u56fe","\u8bcd\u4e91\u56fe","\u6f0f\u6597\u56fe","\u5730\u56fe","\u5706\u5f27\u8fdb\u5ea6\u6761","\u6298\u7ebf\u56fe","\u67f1\u72b6\u56fe","\u6761\u72b6\u56fe","\u533a\u57df\u56fe","\u96f7\u8fbe\u56fe","\u4eea\u8868\u76d8","K\u7ebf\u56fe","\u6df7\u5408\u56fe","\u65f6\u95f4\u8f74\u6298\u7ebf","\u65f6\u95f4\u8f74\u533a\u57df","\u6563\u70b9\u56fe","\u6c14\u6ce1\u56fe","\u81ea\u5b9a\u4e49\u7c7b\u578b"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"\u5143"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"\u5e74"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"\u5143"},tooltipDemo1:function(t,e,a,i){return 0==a?"\u968f\u4fbf\u7528"+t.data+"\u5e74":"\u5176\u4ed6\u6211\u6ca1\u6539"+t.data+"\u5929"},pieDemo:function(t,e,a){if(void 0!==e)return a[e].name+"\uff1a"+a[e].data+"\u5143"}},demotype:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:i,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:i,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"\u6536\u76ca\u7387",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:i,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:i,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:i,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:i,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:i,title:{name:"\u767e\u5206\u6bd4",fontSize:25,color:"#00FF00"},subtitle:{name:"\u9ed8\u8ba4\u6807\u9898",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2}}},tline:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2}}},tarea:{type:"area",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0}}},column:{type:"column",color:i,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},bar:{type:"bar",color:i,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},radar:{type:"radar",color:i,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200}}},gauge:{type:"gauge",color:i,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"\u5b9e\u65f6\u901f\u5ea6",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:i,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:i,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},o=n;e.default=o},"4b05":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading6",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"4bda":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},"4eca":function(t,e,a){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(a){return e.resolve(t()).then((function(){return a}))}),(function(a){return e.resolve(t()).then((function(){throw a}))}))}),window.__uniConfig={window:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",pageOrientation:"landscape"}},uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(a("c6b4").default)}))},"4f93":function(t,e){t.exports="/static/background.png"},"52ba":function(t,e,a){"use strict";var i=a("af54"),r=a.n(i);r.a},"52bc":function(t,e,a){"use strict";var i=a("8b85"),r=a.n(i);r.a},"53ae":function(t,e,a){"use strict";a.r(e);var i=a("b161"),r=a("01cc");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("a69a");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"38a0d81e",null,!1,i["a"],o);e["default"]=l.exports},"55fd":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"qiun-data-charts",props:["type","canvasId","canvas2d","background","animation","chartData","opts","eopts","loadingType","errorShow","errorReload","errorMessage","inScrollView","reshow","reload","disableScroll","ontap","ontouch","onmouse","onmovetip","echartsH5","echartsApp","tooltipShow","tooltipFormat","tooltipCustom","startDate","endDate","textEnum","groupEnum","pageScrollTop","directory","tapLegend","menus"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"591b":function(t,e,a){"use strict";a.r(e);var i=a("5c84"),r=a("6fe6");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("52bc");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"44c31eef",null,!1,i["a"],o);e["default"]=l.exports},"5bde":function(t,e,a){var i=a("ba63");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("5a5fc0f0",i,!0,{sourceMap:!1,shadowMode:!1})},"5c59":function(t,e,a){var i=a("c971");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("f6b54866",i,!0,{sourceMap:!1,shadowMode:!1})},"5c84":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},6152:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=l(a("de4d")),r=l(a("e891")),n=l(a("b59e")),o=l(a("591b")),s=l(a("53ae"));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"qiun-loading",props:["loadingType"],data:function(){return{wxsProps:{}}},components:{Loading1:i.default,Loading2:r.default,Loading3:n.default,Loading4:o.default,Loading5:s.default}};e.default=c},"648d":function(t,e,a){"use strict";var i=a("5c59"),r=a.n(i);r.a},"69ae":function(t,e,a){var i=a("1c17");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("0f68b9ac",i,!0,{sourceMap:!1,shadowMode:!1})},"6f2f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.uni-popup[data-v-fe8e381e]{position:fixed;z-index:99}.uni-popup.top[data-v-fe8e381e], .uni-popup.left[data-v-fe8e381e], .uni-popup.right[data-v-fe8e381e]{top:0}.uni-popup .uni-popup__wrapper[data-v-fe8e381e]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-fe8e381e], .uni-popup .uni-popup__wrapper.right[data-v-fe8e381e]{padding-top:0;flex:1}.fixforpc-z-index[data-v-fe8e381e]{z-index:999}.fixforpc-top[data-v-fe8e381e]{top:0}',""]),t.exports=e},"6fe6":function(t,e,a){"use strict";a.r(e);var i=a("1f49"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"70d1":function(t,e,a){var i=a("baba");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("5e03bc2e",i,!0,{sourceMap:!1,shadowMode:!1})},"72c8":function(t,e,a){var i=a("fed7");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7a09fefe",i,!0,{sourceMap:!1,shadowMode:!1})},"7f7e":function(t,e,a){"use strict";function i(t,e){for(var a=[],i={},r=0;r<e.length;r++){var n=e[r],o=n[0],s=n[1],l=n[2],c=n[3],d={id:t+":"+r,css:s,media:l,sourceMap:c};i[o]?i[o].parts.push(d):a.push(i[o]={id:o,parts:[d]})}return a}a.r(e),a.d(e,"default",(function(){return u}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var n={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,d=function(){},h=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function u(t,e,a,r){c=a,h=r||{};var o=i(t,e);return x(o),function(e){for(var a=[],r=0;r<o.length;r++){var s=o[r],l=n[s.id];l.refs--,a.push(l)}e?(o=i(t,e),x(o)):o=[];for(r=0;r<a.length;r++){l=a[r];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete n[l.id]}}}}function x(t){for(var e=0;e<t.length;e++){var a=t[e],i=n[a.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](a.parts[r]);for(;r<a.parts.length;r++)i.parts.push(v(a.parts[r]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{var o=[];for(r=0;r<a.parts.length;r++)o.push(v(a.parts[r]));n[a.id]={id:a.id,refs:1,parts:o}}}}function g(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function v(t){var e,a,i=document.querySelector("style["+f+'~="'+t.id+'"]');if(i){if(c)return d;i.parentNode.removeChild(i)}if(p){var r=l++;i=s||(s=g()),e=y.bind(null,i,r,!1),a=y.bind(null,i,r,!0)}else i=g(),e=b.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}var m=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function y(t,e,a,i){var r=a?"":P(i.css);if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var n=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(n,o[e]):t.appendChild(n)}}function b(t,e){var a=P(e.css),i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(f,e.id),r&&(a+="\n/*# sourceURL="+r.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var w=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,_=/var\(--status-bar-height\)/gi,A=/var\(--window-top\)/gi,C=/var\(--window-bottom\)/gi,S=/var\(--window-left\)/gi,T=/var\(--window-right\)/gi,k=!1;function P(t){if(!uni.canIUse("css.var")){!1===k&&(k=plus.navigator.getStatusbarHeight());var e={statusBarHeight:k,top:window.__WINDOW_TOP||0,bottom:window.__WINDOW_BOTTOM||0};t=t.replace(_,e.statusBarHeight+"px").replace(A,e.top+"px").replace(C,e.bottom+"px").replace(S,"0px").replace(T,"0px")}return t.replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(t){return t.replace(w,(function(t,e){return uni.upx2px(e)+"px"}))}))}},"848c":function(t,e,a){"use strict";a.r(e);var i=a("bafd"),r=a("857d");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("880d");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"f0f7e4d2",null,!1,i["a"],o);e["default"]=l.exports},"857d":function(t,e,a){"use strict";a.r(e);var i=a("3718"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"85db":function(t,e,a){var i=a("9507");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("803b11dc",i,!0,{sourceMap:!1,shadowMode:!1})},"869f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"qiun-error",props:["errorMessage"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"870a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-44c31eef]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-44c31eef]{width:15px;height:15px}.container .shape[data-v-44c31eef]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-44c31eef]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-44c31eef]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-44c31eef]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-44c31eef]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-44c31eef]{animation:animation5shape1-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}@keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}.loading5 .shape2[data-v-44c31eef]{animation:animation5shape2-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}.loading5 .shape3[data-v-44c31eef]{animation:animation5shape3-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}@keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}.loading5 .shape4[data-v-44c31eef]{animation:animation5shape4-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}@keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}",""]),t.exports=e},"880d":function(t,e,a){"use strict";var i=a("72c8"),r=a.n(i);r.a},"8b85":function(t,e,a){var i=a("870a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("2d4d2ade",i,!0,{sourceMap:!1,shadowMode:!1})},9264:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},9507:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".chartsview[data-v-06c2910e]{width:100%;height:100%;display:flex;flex:1;justify-content:center;align-items:center}",""]),t.exports=e},"965e":function(t,e,a){"use strict";a.r(e);var i=a("9c77"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"973e":function(t,e,a){"use strict";a.r(e);var i=a("9eab"),r=a("aafe");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"6dfcfdcc",null,!1,i["a"],o);e["default"]=l.exports},"97ff":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},"9c77":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"9e6c":function(t,e,a){"use strict";a.r(e);var i=a("dbcc"),r=a("d868");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"ff9fa262",null,!1,i["a"],o);e["default"]=l.exports},"9eab":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{attrs:{_i:0}},[t._$g(1,"i")?a("Loading1",{attrs:{_i:1}}):t._e(),t._$g(2,"i")?a("Loading2",{attrs:{_i:2}}):t._e(),t._$g(3,"i")?a("Loading3",{attrs:{_i:3}}):t._e(),t._$g(4,"i")?a("Loading4",{attrs:{_i:4}}):t._e(),t._$g(5,"i")?a("Loading5",{attrs:{_i:5}}):t._e()],1)},n=[]},"9fb2":function(t,e,a){var i=a("1195");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7d0329f4",i,!0,{sourceMap:!1,shadowMode:!1})},a69a:function(t,e,a){"use strict";var i=a("5bde"),r=a.n(i);r.a},aafe:function(t,e,a){"use strict";a.r(e);var i=a("6152"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},af54:function(t,e,a){var i=a("2c16");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("3f344be8",i,!0,{sourceMap:!1,shadowMode:!1})},b161:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},b3df:function(t,e,a){"use strict";(function(t){function a(t,e){return s(t)||o(t,e)||r(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],i=!0,r=!1,n=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){r=!0,n=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw n}}return a}}function s(t){if(Array.isArray(t))return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={version:"v2.3.7-20220122",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},c=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!a||a.length<=0)return t;function r(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?r(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=r(t,e)})),t},d={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var a=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!a}};function h(t,e){var a=Array(2),i=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,a[0]=i,a[1]=r,a}function f(t,e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=t.replace(a,(function(t,e,a,i){return e+e+a+a+i+i})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),n=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+n+","+o+","+s+","+e+")"}function p(t,e,a){if(isNaN(t))throw new Error("[uCharts] series\u6570\u636e\u9700\u4e3aNumber\u683c\u5f0f");a=a||10,e=e||"upper";var i=1;while(a<1)a*=10,i*=10;t="upper"===e?Math.ceil(t*i):Math.floor(t*i);while(t%a!==0)"upper"===e?t++:t--;return t/i}function u(t,e,a,i){for(var r=[],n=0;n<t.length;n++){for(var o={data:[],name:e[n],color:a[n]},s=0,l=i.length;s<l;s++)if(s<t[n])o.data.push(null);else{for(var c=0,d=0;d<t[n];d++)c+=i[s-d][1];o.data.push(+(c/t[n]).toFixed(3))}r.push(o)}return r}function x(t,e,a,i,r){var n=r.width-r.area[1]-r.area[3],o=a.eachSpacing*(r.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-n?(s=n-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function g(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=a}function v(t,e,a){var i=t,r=a-e,n=i+(a-r-i)/Math.sqrt(2);n*=-1;var o=(a-r)*(Math.sqrt(2)-1)-(a-r-i)/Math.sqrt(2);return{transX:n,transY:o}}function m(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,n=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var d=t.length-1;l=t[d].x-(t[d].x-t[d-1].x)*n,c=t[d].y-(t[d].y-t[d-1].y)*n}else l=t[e+1].x-(t[e+2].x-t[e].x)*n,c=t[e+1].y-(t[e+2].y-t[e].y)*n;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 y(t,e,a){return{x:a.x+t,y:a.y-e}}function b(t,e){if(e)while(d.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function w(t,e,a){var i=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,n=0;n<r.length;n++)r[n].formatter=t[0].formatter,r[n].data=r[n].value,i.push(r[n]);e.series=i}else i=t;return i}function _(t,e,a){for(var i=0,r=0;r<t.length;r++){var n=t[r];if(n.color||(n.color=a.color[i],i=(i+1)%a.color.length),n.linearIndex||(n.linearIndex=r),n.index||(n.index=0),n.type||(n.type=e.type),"undefined"==typeof n.show&&(n.show=!0),n.type||(n.type=e.type),n.pointShape||(n.pointShape="circle"),!n.legendShape)switch(n.type){case"line":n.legendShape="line";break;case"column":n.legendShape="rect";break;case"area":n.legendShape="triangle";break;case"bar":n.legendShape="rect";break;default:n.legendShape="circle"}}return t}function A(t,e,a,i){var r=e||[];if("custom"==t&&0==r.length&&(r=i.linearColor),"custom"==t&&r.length<a.length)for(var n=a.length-r.length,o=0;o<n;o++)r.push(i.linearColor[(o+1)%i.linearColor.length]);return r}function C(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:p(t,"lower",a),maxRange:p(e,"upper",a)}}function S(t,e,a){var i=0;if(t=String(t),!1!==a&&void 0!==a&&a.setFontSize&&a.measureText)return a.setFontSize(e),a.measureText(t).width;t=t.split("");for(var r=0;r<t.length;r++){var n=t[r];/[a-zA-Z]/.test(n)?i+=7:/[0-9]/.test(n)?i+=5.5:/\./.test(n)?i+=2.7:/-/.test(n)?i+=3.25:/:/.test(n)?i+=2.5:/[\u4e00-\u9fa5]/.test(n)?i+=10:/\(|\)/.test(n)?i+=3.73:/\s/.test(n)?i+=2.5:/%/.test(n)?i+=8:i+=10}return i*e/10}function T(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function k(t,e){for(var a=new Array(e),i=0;i<a.length;i++)a[i]=0;for(var r=0;r<t.length;r++)for(i=0;i<a.length;i++)a[i]+=t[r].data[i];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function P(t,e,a){var i,r;return t.clientX?e.rotate?(r=e.height-t.clientX*e.pix,i=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):(i=t.clientX*e.pix,r=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(r=e.height-t.x*e.pix,i=t.y*e.pix):(i=t.x*e.pix,r=t.y*e.pix),{x:i,y:r}}function M(t,e,a){var i=[],r=[],n=e.constructor.toString().indexOf("Array")>-1;if(n)for(var o=E(t),s=0;s<a.length;s++)r.push(o[a[s]]);else r=t;for(var l=0;l<r.length;l++){var c=r[l],d=-1;if(d=n?e[l]:e,null!==c.data[d]&&"undefined"!==typeof c.data[d]&&c.show){var h={};h.color=c.color,h.type=c.type,h.style=c.style,h.pointShape=c.pointShape,h.disableLegend=c.disableLegend,h.name=c.name,h.show=c.show,h.data=c.formatter?c.formatter(c.data[d]):c.data[d],i.push(h)}}return i}function D(t,e,a){var i=t.map((function(t){return S(t,e,a)}));return Math.max.apply(null,i)}function F(t){for(var e=2*Math.PI/t,a=[],i=0;i<t;i++)a.push(e*i);return a.map((function(t){return-1*t+Math.PI/2}))}function L(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(i.length>0){for(var l=[],c=0;c<i.length;c++)l.push(o[i[c]]);s=l[0][a[0]]}else s=o[0][a];var d=t.map((function(t){var i=null;return e.categories&&e.categories.length>0&&(i=r[a]),{text:n.formatter?n.formatter(t,i,a,e):t.name+": "+t.data,color:t.color}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:d,offset:h}}function O(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,i[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(n),y:0};return{textList:o,offset:s}}function I(t,e,a,i,r,n){var o=a.chartData.calPoints,s=n.color.upFill,l=n.color.downFill,c=[s,s,l,s],d=[];e.map((function(e){0==i?e.data[1]-e.data[0]<0?c[1]=l:c[1]=s:(e.data[0]<t[i-1][1]&&(c[0]=l),e.data[1]<e.data[0]&&(c[1]=l),e.data[2]>t[i-1][1]&&(c[2]=s),e.data[3]<t[i-1][1]&&(c[3]=l));var a={text:"\u5f00\u76d8\uff1a"+e.data[0],color:c[0]},r={text:"\u6536\u76d8\uff1a"+e.data[1],color:c[1]},n={text:"\u6700\u4f4e\uff1a"+e.data[2],color:c[2]},o={text:"\u6700\u9ad8\uff1a"+e.data[3],color:c[3]};d.push(a,r,n,o)}));for(var h=[],f={x:0,y:0},p=0;p<o.length;p++){var u=o[p];"undefined"!==typeof u[i]&&null!==u[i]&&h.push(u[i])}return f.x=Math.round(h[0][0].x),{textList:d,offset:f}}function E(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}function B(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(a.categories){for(var l=1;l<a.chartData.xAxisPoints.length;l++)s.push(a.chartData.xAxisPoints[l]-o);"line"!=a.type&&"area"!=a.type||"justify"!=a.xAxis.boundaryGap||(s=a.chartData.xAxisPoints)}else o=0;if(R(t,a,i))if(a.categories)s.forEach((function(e,a){t.x+r+o>e&&(n.index=a)}));else{for(var c=Array(e.length),d=0;d<e.length;d++){c[d]=Array(e[d].length);for(var h=0;h<e[d].length;h++)c[d][h]=Math.abs(e[d][h].x-t.x)}for(var f=Array(c.length),p=Array(c.length),u=0;u<c.length;u++)f[u]=Math.min.apply(null,c[u]),p[u]=c[u].indexOf(f[u]);var x=Math.min.apply(null,f);n.index=[];for(var g=0;g<f.length;g++)f[g]==x&&(n.group.push(g),n.index.push(p[g]))}}return n}function z(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&R(t,a,i)&&s.forEach((function(e,a){t.y+r+o>e&&(n.index=a)})),n}function $(t,e,a){var i=-1,r=0;if(W(t,e.area)){for(var n=e.points,o=-1,s=0,l=n.length;s<l;s++)for(var c=n[s],d=0;d<c.length;d++){o+=1;var h=c[d]["area"];if(h&&t.x>h[0]-r&&t.x<h[2]+r&&t.y>h[1]-r&&t.y<h[3]+r){i=o;break}}return i}return i}function W(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function R(t,e,a){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 N(t,e,a){var i=2*Math.PI/a,r=-1;if(U(t,e.center,e.radius)){var n=function(t){return t<0&&(t+=2*Math.PI),t>2*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=n(-1*t),t}));s.forEach((function(t,e){var a=n(t-i/2),s=n(t+i/2);s<a&&(s+=2*Math.PI),(o>=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(r=e)}))}return r}function G(t,e){for(var a=-1,i=0,r=e.series.length;i<r;i++){var n=e.series[i];if(t.x>n.funnelArea[0]&&t.x<n.funnelArea[2]&&t.y>n.funnelArea[1]&&t.y<n.funnelArea[3]){a=i;break}}return a}function j(t,e){for(var a=-1,i=0,r=e.length;i<r;i++){var n=e[i];if(t.x>n.area[0]&&t.x<n.area[2]&&t.y>n.area[1]&&t.y<n.area[3]){a=i;break}}return a}function Y(t,e){for(var a=-1,i=e.chartData.mapData,r=e.series,n=re(t.y,t.x,i.bounds,i.scale,i.xoffset,i.yoffset),o=[n.x,n.y],s=0,l=r.length;s<l;s++){var c=r[s].geometry.coordinates;if(oe(o,c,e.chartData.mapData.mercator)){a=s;break}}return a}function H(t,e,a){var i=-1,r=at(a._series_,a.extra.rose.type,e.radius,e.radius);if(e&&e.center&&U(t,e.center,e.radius)){var n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n=-n,a.extra.rose&&a.extra.rose.offsetAngle&&(n-=a.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(g(n,r[o]._start_,r[o]._start_+2*r[o]._rose_proportion_*Math.PI)){i=o;break}}return i}function X(t,e,a){var i=-1,r=tt(e.series);if(e&&e.center&&U(t,e.center,e.radius)){var n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n=-n,a.extra.pie&&a.extra.pie.offsetAngle&&(n-=a.extra.pie.offsetAngle*Math.PI/180),a.extra.ring&&a.extra.ring.offsetAngle&&(n-=a.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(g(n,r[o]._start_,r[o]._start_+2*r[o]._proportion_*Math.PI)){i=o;break}}return i}function U(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function q(t,e){var a=[],i=[];return t.forEach((function(t,r){e.connectNulls?null!==t&&i.push(t):null!==t?i.push(t):(i.length&&a.push(i),i=[])})),i.length&&a.push(i),a}function J(t,e,a,i,r){var n={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 i.legendData=n,n;var o=e.legend.padding*e.pix,s=e.legend.margin*e.pix,l=e.legend.fontSize?e.legend.fontSize*e.pix:a.fontSize,c=15*e.pix,d=5*e.pix,h=Math.max(e.legend.lineHeight*e.pix,l);if("top"==e.legend.position||"bottom"==e.legend.position){for(var f=[],p=0,u=[],x=[],g=0;g<t.length;g++){var v=t[g],m=c+d+S(v.name||"undefined",l,r)+e.legend.itemGap*e.pix;p+m>e.width-e.area[1]-e.area[3]?(f.push(x),u.push(p-e.legend.itemGap*e.pix),p=m,x=[v]):(p+=m,x.push(v))}if(x.length){f.push(x),u.push(p-e.legend.itemGap*e.pix),n.widthArr=u;var y=Math.max.apply(null,u);switch(e.legend.float){case"left":n.area.start.x=e.area[3],n.area.end.x=e.area[3]+y+2*o;break;case"right":n.area.start.x=e.width-e.area[1]-y-2*o,n.area.end.x=e.width-e.area[1];break;default:n.area.start.x=(e.width-y)/2-o,n.area.end.x=(e.width+y)/2+o}n.area.width=y+2*o,n.area.wholeWidth=y+2*o,n.area.height=f.length*h+2*o,n.area.wholeHeight=f.length*h+2*o+2*s,n.points=f}}else{var b=t.length,w=e.height-e.area[0]-e.area[2]-2*s-2*o,_=Math.min(Math.floor(w/h),b);switch(n.area.height=_*h+2*o,n.area.wholeHeight=_*h+2*o,e.legend.float){case"top":n.area.start.y=e.area[0]+s,n.area.end.y=e.area[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.area[2]-s-n.area.height,n.area.end.y=e.height-e.area[2]-s;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var A=b%_===0?b/_:Math.floor(b/_+1),C=[],T=0;T<A;T++){var k=t.slice(T*_,T*_+_);C.push(k)}if(n.points=C,C.length){for(var P=0;P<C.length;P++){for(var M=C[P],D=0,F=0;F<M.length;F++){var L=c+d+S(M[F].name||"undefined",l,r)+e.legend.itemGap*e.pix;L>D&&(D=L)}n.widthArr.push(D),n.heightArr.push(M.length*h+2*o)}for(var O=0,I=0;I<n.widthArr.length;I++)O+=n.widthArr[I];n.area.width=O-e.legend.itemGap*e.pix+2*o,n.area.wholeWidth=n.area.width+o}}switch(e.legend.position){case"top":n.area.start.y=e.area[0]+s,n.area.end.y=e.area[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.area[2]-n.area.height-s,n.area.end.y=e.height-e.area[2]-s;break;case"left":n.area.start.x=e.area[3],n.area.end.x=e.area[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.area[1]-n.area.width,n.area.end.x=e.width-e.area[1];break}return i.legendData=n,n}function Q(t,e,a,i,r){var n={angle:0,xAxisHeight:a.xAxisHeight},o=t.map((function(t){return S(t,e.xAxis.fontSize*e.pix||a.fontSize,r)})),s=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&s+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+s*Math.sin(n.angle)),n}function V(t,e,a,i){var r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==i?k(t,e.categories.length):T(t);var o=[];r=r.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){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 e.xAxis.data[n].min&&(s=Math.min(e.xAxis.data[n].min,s)),"number"===typeof e.xAxis.data[n].max&&(l=Math.max(e.xAxis.data[n].max,l))):("number"===typeof e.xAxis.min&&(s=Math.min(e.xAxis.min,s)),"number"===typeof e.xAxis.max&&(l=Math.max(e.xAxis.max,l))),s===l){var c=l||10;l+=c}for(var d=s,h=l,f=[],p=(h-d)/e.xAxis.splitNumber,u=0;u<=e.xAxis.splitNumber;u++)f.push(d+p*u);return f}function Z(t,e,a,i){var r=c({},{type:""},e.extra.bar),n={angle:0,xAxisHeight:a.xAxisHeight};n.ranges=V(t,e,a,r.type),n.rangesFormat=n.ranges.map((function(t){return t=d.toFixed(t,2),t}));var o=n.ranges.map((function(t){return t=d.toFixed(t,2),t}));n=Object.assign(n,ft(o,e,a));var s=n.eachSpacing,l=o.map((function(t){return S(t,e.xAxis.fontSize*e.pix||a.fontSize,i)})),h=Math.max.apply(this,l);return h+2*a.xAxisTextPadding>s&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(n.angle)),!0===e.xAxis.disabled&&(n.xAxisHeight=0),n}function K(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,T(i))),l=[],c=function(r){var o=i[r],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(i,r){var o={};o.angle=t[r],o.proportion=i/s,o.value=i,o.position=y(a*o.proportion*n*Math.cos(o.angle),a*o.proportion*n*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},d=0;d<i.length;d++)c(d);return l}function tt(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=0,r=0,n=0;n<t.length;n++){var o=t[n];o.data=null===o.data?0:o.data,i+=o.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===i?1/t.length*a:l.data/i*a,l._radius_=e}for(var c=0;c<t.length;c++){var d=t[c];d._start_=r,r+=2*d._proportion_*Math.PI}return t}function et(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var n=0;n<t.length;n++)t[n].radius="funnel"==a?t[n].data/t[0].data*e*r:i*(t.length-n)/(i*t.length)*e*r,t[n]._proportion_=t[n].data/t[0].data;return"pyramid"!==a&&t.reverse(),t}function at(t,e,a,i){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,n+=c.data,s.push(c.data)}for(var d=Math.min.apply(null,s),h=Math.max.apply(null,s),f=i-a,p=0;p<t.length;p++){var u=t[p];u.data=null===u.data?0:u.data,0===n?(u._proportion_=1/t.length*r,u._rose_proportion_=1/t.length*r):(u._proportion_=u.data/n*r,u._rose_proportion_="area"==e?1/t.length*r:u.data/n*r),u._radius_=a+f*((u.data-d)/(h-d))||i}for(var x=0;x<t.length;x++){var g=t[x];g._start_=o,o+=2*g._rose_proportion_*Math.PI}return t}function it(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i<t.length;i++){var r=t[i];r.data=null===r.data?0:r.data;var n=void 0;n="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,r._proportion_=n*r.data*a+e.startAngle,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function rt(t,e,a){for(var i=e-a+1,r=e,n=0;n<t.length;n++)t[n].value=null===t[n].value?0:t[n].value,t[n]._startAngle_=r,t[n]._endAngle_=i*t[n].value+e,t[n]._endAngle_>=2&&(t[n]._endAngle_=t[n]._endAngle_%2),r=t[n]._endAngle_;return t}function nt(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){var n=t[r];if(n.data=null===n.data?0:n.data,"auto"==a.pointer.color){for(var o=0;o<e.length;o++)if(n.data<=e[o].value){n.color=e[o].color;break}}else n.color=a.pointer.color;var s=a.startAngle-a.endAngle+1;n._endAngle_=s*n.data+a.startAngle,n._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(n._oldAngle_+=2),n.data>=a.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*i+a.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*i,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function ot(t,e,a,i){t=tt(t);for(var r=0,n=0;n<t.length;n++){var o=t[n],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):d.toFixed(100*o._proportion_)+"%";r=Math.max(r,S(s,o.textSize*i.pix||e.fontSize,a))}return r}function st(t,e,a,i,r,n){return t.map((function(t){if(null===t)return null;var r=0,o=0;return"mix"==n.type?(r=n.extra.mix.column.seriesGap*n.pix||0,o=n.extra.mix.column.categoryGap*n.pix||0):(r=n.extra.column.seriesGap*n.pix||0,o=n.extra.column.categoryGap*n.pix||0),r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),n.extra.mix&&n.extra.mix.column.width&&+n.extra.mix.column.width>0&&(t.width=Math.min(t.width,+n.extra.mix.column.width*n.pix)),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*(t.width+r),t}))}function lt(t,e,a,i,r,n){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=n.extra.bar.seriesGap*n.pix||0,o=n.extra.bar.categoryGap*n.pix||0,r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t.y+=(i+.5-a/2)*(t.width+r),t}))}function ct(t,e,a,i,r,n,o){var s=n.extra.column.categoryGap*n.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),i>0&&(t.width-=2*o),t)}))}function dt(t,e,a,i,r,n,o){var s=n.extra.column.categoryGap*n.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function ht(t,e,a,i,r,n,o){var s=n.extra.bar.categoryGap*n.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function ft(t,e,a){var i=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var n=i/r,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*n):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:n}}function pt(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=n.height-n.area[0]-n.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var d=[];t.forEach((function(t,l){var h={};h.x=i[o]+Math.round(r/2);var f=t.value||t,p=c*(f-e)/(a-e);p*=s,h.y=n.height-Math.round(p)-n.area[2],d.push(h)})),l.push(d)}})),l}function ut(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=n.type&&"area"!=n.type&&"scatter"!=n.type&&"bubble"!=n.type||(l=n.xAxis.boundaryGap);var c=[],d=n.height-n.area[0]-n.area[2],h=n.width-n.area[1]-n.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=i[o];var p,u,x,g=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)p=[].concat(n.chartData.xAxisData.ranges),u=p.shift(),x=p.pop(),g=t[1],f.x=n.area[3]+h*(t[0]-u)/(x-u),"bubble"==n.type&&(f.r=t[2],f.t=t[3]);else g=t.value;"center"==l&&(f.x+=r/2);var v=d*(g-e)/(a-e);v*=s,f.y=n.height-v-n.area[2],c.push(f)}})),c}function xt(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=(n.height,n.area[0],n.area[2],n.width-n.area[1]-n.area[3]);return t.forEach((function(t,r){if(null===t)l.push(null);else{var o={};o.color=t.color,o.y=i[r];var d=t;"object"===typeof t&&null!==t&&(d=t.value);var h=c*(d-e)/(a-e);h*=s,o.height=h,o.value=d,o.x=h+n.area[3],l.push(o)}})),l}function gt(t,e,a,i,r,n,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=n.height-n.area[0]-n.area[2];return t.forEach((function(t,o){if(null===t)d.push(null);else{var f={};if(f.color=t.color,f.x=i[o]+Math.round(r/2),s>0){for(var p=0,u=0;u<=s;u++)p+=l[u].data[o];var x=p-t,g=h*(p-e)/(a-e),v=h*(x-e)/(a-e)}else p=t,g=h*(p-e)/(a-e),v=0;var m=v;g*=c,m*=c,f.y=n.height-Math.round(g)-n.area[2],f.y0=n.height-Math.round(m)-n.area[2],d.push(f)}})),d}function vt(t,e,a,i,r,n,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=n.width-n.area[1]-n.area[3];return t.forEach((function(t,r){if(null===t)d.push(null);else{var o={};if(o.color=t.color,o.y=i[r],s>0){for(var f=0,p=0;p<=s;p++)f+=l[p].data[r];var u=f-t,x=h*(f-e)/(a-e),g=h*(u-e)/(a-e)}else f=t,x=h*(f-e)/(a-e),g=0;var v=g;x*=c,v*=c,o.height=x-v,o.x=n.area[3]+x,o.x0=n.area[3]+v,d.push(o)}})),d}function mt(t,e,a,i,r){var n;n="stack"==i?k(t,e.categories.length):T(t);var o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=r.min||0,l=r.max||0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),s===l){var c=l||10;l+=c}for(var d=C(s,l),h=void 0===r.min||null===r.min?d.minRange:r.min,f=void 0===r.max||null===r.min?d.maxRange:r.max,p=[],u=(f-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)p.push(h+u*x);return p.reverse()}function yt(t,e,a,i){var r=c({},{type:""},e.extra.column),n=e.yAxis.data.length,o=new Array(n);if(n>0){for(var s=0;s<n;s++){o[s]=[];for(var l=0;l<t.length;l++)t[l].index==s&&o[s].push(t[l])}for(var d=new Array(n),h=new Array(n),f=new Array(n),p=function(t){var n=e.yAxis.data[t];1==e.yAxis.disabled&&(n.disabled=!0),"categories"===n.type?(n.formatter||(n.formatter=function(t){return t+(n.unit||"")}),n.categories=n.categories||e.categories,d[t]=n.categories):(n.formatter||(n.formatter=function(t){return t.toFixed(n.tofix)+(n.unit||"")}),d[t]=mt(o[t],e,a,r.type,n,t));var s=n.fontSize*e.pix||a.fontSize;f[t]={position:n.position?n.position:"left",width:0},h[t]=d[t].map((function(e){return e=n.formatter(e),f[t].width=Math.max(f[t].width,S(e,s,i)+5),e}));var l=n.calibration?4*e.pix:0;f[t].width+=l+3*e.pix,!0===n.disabled&&(f[t].width=0)},u=0;u<n;u++)p(u)}else{d=new Array(1),h=new Array(1),f=new Array(1);"bar"===e.type?(d[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t){return t+(e.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t){return t.toFixed(e.yAxis.tofix)+(e.yAxis.unit||"")}),d[0]=mt(t,e,a,r.type,{})),f[0]={position:"left",width:0};var x=e.yAxis.fontSize*e.pix||a.fontSize;h[0]=d[0].map((function(t){return t=e.yAxis.formatter(t),f[0].width=Math.max(f[0].width,S(t,x,i)+5),t})),f[0].width+=3*e.pix,!0===e.yAxis.disabled?(f[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):(e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:d,yAxisWidth:f}}function bt(t,e,a,i,r){for(var n=[].concat(a.chartData.yAxisData.ranges),o=a.height-a.area[0]-a.area[2],s=a.area[0],l=[],c=0;c<n.length;c++){var d=n[c].shift(),h=n[c].pop(),f=d-(d-h)*(t-s)/o;f=a.yAxis.data[c].formatter?a.yAxis.data[c].formatter(f):f.toFixed(0),l.push(String(f))}return l}function wt(t,e){for(var a,i,r=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 o=[].concat(e.chartData.yAxisData.ranges[t[n].yAxisIndex]);a=o.pop(),i=o.shift();var s=r*(t[n].value-a)/(i-a);t[n].y=e.height-Math.round(s)-e.area[2]}return t}function _t(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function At(t,e,a,i,r){if(i.beginPath(),"hollow"==r.dataPointShapeType?(i.setStrokeStyle(e),i.setFillStyle(r.background),i.setLineWidth(2*r.pix)):(i.setStrokeStyle("#ffffff"),i.setFillStyle(e),i.setLineWidth(1*r.pix)),"diamond"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))}));else if("circle"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x+2.5*r.pix,t.y),i.arc(t.x,t.y,3*r.pix,0,2*Math.PI,!1))}));else if("square"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))}));else if("triangle"===a)return;i.closePath(),i.fill(),i.stroke()}function Ct(t,e,a,i){var r=t.title.fontSize||e.titleFontSize,n=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||t.fontColor,c=t.subtitle.color||t.fontColor,d=o?r:0,h=s?n:0,f=5;if(s){var p=S(s,n*t.pix,a),u=i.x-p/2+(t.subtitle.offsetX||0)*t.pix,x=i.y+n*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(x+=(d*t.pix+f)/2),a.beginPath(),a.setFontSize(n*t.pix),a.setFillStyle(c),a.fillText(s,u,x),a.closePath(),a.stroke()}if(o){var g=S(o,r*t.pix,a),v=i.x-g/2+(t.title.offsetX||0),m=i.y+r*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(m-=(h*t.pix+f)/2),a.beginPath(),a.setFontSize(r*t.pix),a.setFillStyle(l),a.fillText(o,v,m),a.closePath(),a.stroke()}}function St(t,e,a,i,r){var n=e.data,o=e.textOffset?e.textOffset:0;t.forEach((function(t,s){if(null!==t){i.beginPath();var l=e.textSize?e.textSize*r.pix:a.fontSize;i.setFontSize(l),i.setFillStyle(e.textColor||r.fontColor);var c=n[s];"object"===typeof n[s]&&null!==n[s]&&(c=n[s].constructor.toString().indexOf("Array")>-1?n[s][1]:n[s].value);var d=e.formatter?e.formatter(c,s):c;i.setTextAlign("center"),i.fillText(String(d),t.x,t.y-4+o*r.pix),i.closePath(),i.stroke(),i.setTextAlign("left")}}))}function Tt(t,e,a,i,r){var n=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,o){if(null!==t){i.beginPath();var s=e.textSize?e.textSize*r.pix:a.fontSize;i.setFontSize(s),i.setFillStyle(e.textColor||r.fontColor);var l=n[o];"object"===typeof n[o]&&null!==n[o]&&(l=n[o].value);var c=e.formatter?e.formatter(l,o):l;i.setTextAlign("left"),i.fillText(String(c),t.x+4*r.pix,t.y+s/2-3),i.closePath(),i.stroke()}}))}function kt(t,e,a,i,r,n){e-=t.width/2+t.labelOffset*i.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,d=t.startAngle,h=t.startNumber,f=0;f<t.splitLine.splitNumber+1;f++){var p={x:e*Math.cos(d*Math.PI),y:e*Math.sin(d*Math.PI)},u=t.formatter?t.formatter(h):h;p.x+=a.x-S(u,r.fontSize,n)/2,p.y+=a.y;var x=p.x,g=p.y;n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(t.labelColor||i.fontColor),n.fillText(u,x,g+r.fontSize/2),n.closePath(),n.stroke(),d+=s,d>=2&&(d%=2),h+=c}}function Pt(t,e,a,i,r,n){var o=i.extra.radar||{};e+=r.radarLabelTextMargin*i.pix,t.forEach((function(t,s){var l={x:e*Math.cos(t),y:e*Math.sin(t)},c=y(l.x,l.y,a),h=c.x,f=c.y;d.approximatelyEqual(l.x,0)?h-=S(i.categories[s]||"",r.fontSize,n)/2:l.x<0&&(h-=S(i.categories[s]||"",r.fontSize,n)),n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(o.labelColor||i.fontColor),n.fillText(i.categories[s]||"",h,f+r.fontSize/2),n.closePath(),n.stroke()}))}function Mt(t,e,a,i,r,n){for(var o=a.pieChartLinePadding,s=[],l=null,c=t.map((function(t,e,a){var i=t.formatter?t.formatter(t,e,a):d.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var n=t.color,o=t._radius_;return{arc:r,text:i,color:n,radius:o,textColor:t.textColor,textSize:t.textSize}})),h=0;h<c.length;h++){var f=c[h],p=Math.cos(f.arc)*(f.radius+o),u=Math.sin(f.arc)*(f.radius+o),x=Math.cos(f.arc)*f.radius,g=Math.sin(f.arc)*f.radius,v=p>=0?p+a.pieChartTextPadding:p-a.pieChartTextPadding,m=u,w=S(f.text,f.textSize*e.pix||a.fontSize,i),_=m;l&&d.isSameXCoordinateArea(l.start,{x:v})&&(_=v>0?Math.min(m,l.start.y):p<0||m>0?Math.max(m,l.start.y):Math.min(m,l.start.y)),v<0&&(v-=w);var A={lineStart:{x:x,y:g},lineEnd:{x:p,y:u},start:{x:v,y:_},width:w,height:a.fontSize,text:f.text,color:f.color,textColor:f.textColor,textSize:f.textSize};l=b(A,l),s.push(l)}for(var C=0;C<s.length;C++){var T=s[C],k=y(T.lineStart.x,T.lineStart.y,n),P=y(T.lineEnd.x,T.lineEnd.y,n),M=y(T.start.x,T.start.y,n);i.setLineWidth(1*e.pix),i.setFontSize(T.textSize*e.pix||a.fontSize),i.beginPath(),i.setStrokeStyle(T.color),i.setFillStyle(T.color),i.moveTo(k.x,k.y);var D=T.start.x<0?M.x+T.width:M.x,F=T.start.x<0?M.x-5:M.x+5;i.quadraticCurveTo(P.x,P.y,D,M.y),i.moveTo(k.x,k.y),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(M.x+T.width,M.y),i.arc(D,M.y,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(T.textSize*e.pix||a.fontSize),i.setFillStyle(T.textColor||e.fontColor),i.fillText(T.text,F,M.y+3),i.closePath(),i.stroke(),i.closePath()}}function Dt(t,e,a,i){var r=e.extra.tooltip||{};r.gridType=void 0==r.gridType?"solid":r.gridType,r.dashLength=void 0==r.dashLength?4:r.dashLength;var n=e.area[0],o=e.height-e.area[2];if("dash"==r.gridType&&i.setLineDash([r.dashLength,r.dashLength]),i.setStrokeStyle(r.gridColor||"#cccccc"),i.setLineWidth(1*e.pix),i.beginPath(),i.moveTo(t,n),i.lineTo(t,o),i.stroke(),i.setLineDash([]),r.xAxisLabel){var s=e.categories[e.tooltip.index];i.setFontSize(a.fontSize);var l=S(s,a.fontSize,i),c=t-.5*l,d=o;i.beginPath(),i.setFillStyle(f(r.labelBgColor||a.toolTipBackground,r.labelBgOpacity||a.toolTipOpacity)),i.setStrokeStyle(r.labelBgColor||a.toolTipBackground),i.setLineWidth(1*e.pix),i.rect(c-a.toolTipPadding,d,l+2*a.toolTipPadding,a.fontSize+2*a.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(a.fontSize),i.setFillStyle(r.labelFontColor||e.fontColor),i.fillText(String(s),c,d+a.toolTipPadding+a.fontSize),i.closePath(),i.stroke()}}function Ft(t,e,a){for(var i=c({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],n=t.width-t.area[1],o=wt(i.data,t),s=0;s<o.length;s++){var l=c({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},o[s]);if("dash"==i.type&&a.setLineDash([i.dashLength,i.dashLength]),a.setStrokeStyle(l.lineColor),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(r,l.y),a.lineTo(n,l.y),a.stroke(),a.setLineDash([]),l.showLabel){var d=t.yAxis.formatter?t.yAxis.formatter(l.value):l.value;a.setFontSize(e.fontSize);var h=S(d,e.fontSize,a),p=(t.chartData.yAxisData.yAxisWidth[0].width,t.area[3]-h-2*e.toolTipPadding),u=t.area[3],x=u-p,g=u-e.toolTipPadding,v=l.y;a.setFillStyle(f(l.labelBgColor,l.labelBgOpacity)),a.setStrokeStyle(l.labelBgColor),a.setLineWidth(1*t.pix),a.beginPath(),a.rect(p,v-.5*e.fontSize-e.toolTipPadding,x,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.setFontSize(e.fontSize),a.setTextAlign("right"),a.setFillStyle(l.labelFontColor),a.fillText(String(d),g,v+.5*e.fontSize),a.stroke(),a.setTextAlign("left")}}}function Lt(t,e,a,i,r){var n=c({},{gridType:"solid",dashLength:4},t.extra.tooltip),o=t.area[3],s=t.width-t.area[1];if("dash"==n.gridType&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(n.gridColor||"#cccccc"),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(o,t.tooltip.offset.y),a.lineTo(s,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),n.yAxisLabel)for(var l=bt(t.tooltip.offset.y,t.series,t,e,i),d=t.chartData.yAxisData.yAxisWidth,h=t.area[3],p=t.width-t.area[1],u=0;u<l.length;u++){a.setFontSize(e.fontSize);var x=S(l[u],e.fontSize,a),g=void 0,v=void 0,m=void 0;"left"==d[u].position?(g=h-d[u].width,v=Math.max(g,g+x+2*e.toolTipPadding)):(g=p,v=Math.max(g+d[u].width,g+x+2*e.toolTipPadding)),m=v-g;var y=g+(m-x)/2,b=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(f(n.labelBgColor||e.toolTipBackground,n.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(n.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pix),a.rect(g,b-.5*e.fontSize-e.toolTipPadding,m,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(n.labelFontColor||t.fontColor),a.fillText(l[u],y,b+.5*e.fontSize),a.closePath(),a.stroke(),"left"==d[u].position?h-=d[u].width+t.yAxis.padding*t.pix:p+=d[u].width+t.yAxis.padding*t.pix}}function Ot(t,e,a,i,r){var n=c({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.column),o=e.area[0],s=e.height-e.area[2];i.beginPath(),i.setFillStyle(f(n.activeBgColor,n.activeBgOpacity)),i.rect(t-r/2,o,r,s-o),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function It(t,e,a,i,r){var n=c({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),o=e.area[3],s=e.width-e.area[1];i.beginPath(),i.setFillStyle(f(n.activeBgColor,n.activeBgOpacity)),i.rect(o,t-r/2,s-o,r),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function Et(t,e,a,i,r,n,o){var s=c({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},a.extra.tooltip);1==s.showCategory&&a.categories&&t.unshift({text:a.categories[a.tooltip.index],color:null});var l=4*a.pix,d=5*a.pix,h=s.showArrow?8*a.pix:0,p=!1;"line"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||1==s.splitLine&&Dt(a.tooltip.offset.x,a,i,r),e=c({x:0,y:0},e),e.y-=8*a.pix;var u=t.map((function(t){return S(t.text,i.fontSize,r)})),x=l+d+4*i.toolTipPadding+Math.max.apply(null,u),g=2*i.toolTipPadding+t.length*i.toolTipLineHeight;if(0!=s.showBox){e.x-Math.abs(a._scrollDistance_||0)+h+x>a.width&&(p=!0),g+e.y>a.height&&(e.y=a.height-g),r.beginPath(),r.setFillStyle(f(s.bgColor||i.toolTipBackground,s.bgOpacity||i.toolTipOpacity)),r.setLineWidth(s.borderWidth*a.pix),r.setStrokeStyle(f(s.borderColor,s.borderOpacity));var v=s.borderRadius;p?(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x-h,e.y+10*a.pix+5*a.pix)),r.arc(e.x-h-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(x)+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(x)+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-v,e.y+v,v,-Math.PI/2,0,!1),s.showArrow&&(r.lineTo(e.x-h,e.y+10*a.pix-5*a.pix),r.lineTo(e.x,e.y+10*a.pix))):(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x+h,e.y+10*a.pix-5*a.pix)),r.arc(e.x+h+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(x)-v,e.y+v,v,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(x)-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x+h+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),s.showArrow&&(r.lineTo(e.x+h,e.y+10*a.pix+5*a.pix),r.lineTo(e.x,e.y+10*a.pix))),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var n=e.x+h+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;p&&(n=e.x-x-h+2*i.toolTipPadding),r.fillRect(n,o,l,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var n=e.x+h+2*i.toolTipPadding+l+d;p&&(n=e.x-x-h+2*i.toolTipPadding+ +l+d);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(s.fontColor),r.fillText(t.text,n,o+i.fontSize),r.closePath(),r.stroke()}))}}function Bt(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=c({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var p=-2,u=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),p=Math.floor(-e._scrollDistance_/l)-2,u=p+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&Ot(e.tooltip.offset.x,e,i,r,l),d.customColor=A(d.linearType,d.customColor,t,i),t.forEach((function(o,c){var x,g,v;x=[].concat(e.chartData.yAxisData.ranges[o.index]),g=x.pop(),v=x.shift();var m=o.data;switch(d.type){case"group":var y=ut(m,g,v,s,l,e,i,n),b=gt(m,g,v,s,l,e,i,c,t,n);h.push(b),y=st(y,l,t.length,c,i,e);for(var w=0;w<y.length;w++){var _=y[w];if(null!==_&&w>p&&w<u){var A=_.x-_.width/2,C=e.height-_.y-e.area[2];r.beginPath();var S=_.color||o.color,T=_.color||o.color;if("none"!==d.linearType){var k=r.createLinearGradient(A,_.y,A,e.height-e.area[2]);"opacity"==d.linearType?(k.addColorStop(0,f(S,d.linearOpacity)),k.addColorStop(1,f(S,1))):(k.addColorStop(0,f(d.customColor[o.linearIndex],d.linearOpacity)),k.addColorStop(d.colorStop,f(d.customColor[o.linearIndex],d.linearOpacity)),k.addColorStop(1,f(S,1))),S=k}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var P=A,M=_.y,D=_.width,F=e.height-e.area[2]-_.y;d.barBorderCircle&&(d.barBorderRadius=[D/2,D/2,0,0]);var L=a(d.barBorderRadius,4),O=L[0],I=L[1],E=L[2],B=L[3],z=Math.min(D/2,F/2);O=O>z?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(P+O,M+O,O,-Math.PI,-Math.PI/2),r.arc(P+D-I,M+I,I,-Math.PI/2,0),r.arc(P+D-E,M+F-E,E,0,Math.PI/2),r.arc(P+B,M+F-B,B,Math.PI/2,Math.PI)}else r.moveTo(A,_.y),r.lineTo(A+_.width-2,_.y),r.lineTo(A+_.width-2,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.lineTo(A,_.y),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(S),r.closePath(),r.fill()}}break;case"stack":y=gt(m,g,v,s,l,e,i,c,t,n);h.push(y),y=dt(y,l,t.length,c,i,e,t);for(var $=0;$<y.length;$++){var W=y[$];if(null!==W&&$>p&&$<u){r.beginPath();S=W.color||o.color,A=W.x-W.width/2+1,C=e.height-W.y-e.area[2];var R=e.height-W.y0-e.area[2];c>0&&(C-=R),r.setFillStyle(S),r.moveTo(A,W.y),r.fillRect(A,W.y,W.width-2,C),r.closePath(),r.fill()}}break;case"meter":y=ut(m,g,v,s,l,e,i,n);if(h.push(y),y=ct(y,l,t.length,c,i,e,d.meterBorder),0==c)for(var N=0;N<y.length;N++){var G=y[N];if(null!==G&&N>p&&N<u){r.beginPath(),r.setFillStyle(d.meterFillColor);A=G.x-G.width/2,C=e.height-G.y-e.area[2];if(d.barBorderCircle){var j=(G.width-2*d.meterBorder)/2;j>C&&(j=C),r.moveTo(A+d.meterBorder,e.height-e.area[2]),r.lineTo(A+d.meterBorder,G.y+j),r.arc(A+G.width/2,G.y+j,j,-Math.PI,0),r.lineTo(A+G.width-d.meterBorder,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.fill()}else r.moveTo(A,G.y),r.fillRect(A,G.y,G.width,C),r.closePath(),r.fill();if(d.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(d.meterBorder*e.pix),d.barBorderCircle){j=(G.width-d.meterBorder)/2;j>C&&(j=C),r.moveTo(A+.5*d.meterBorder,e.height-e.area[2]),r.lineTo(A+.5*d.meterBorder,G.y+j),r.arc(A+G.width/2,G.y+j-.5*d.meterBorder,j,-Math.PI,0),r.lineTo(A+G.width-.5*d.meterBorder,e.height-e.area[2])}else r.moveTo(A+.5*d.meterBorder,G.y+C),r.lineTo(A+.5*d.meterBorder,G.y+.5*d.meterBorder),r.lineTo(A+G.width-.5*d.meterBorder,G.y+.5*d.meterBorder),r.lineTo(A+G.width-.5*d.meterBorder,G.y+C);r.stroke()}}}else for(var Y=0;Y<y.length;Y++){var H=y[Y];if(null!==H&&Y>p&&Y<u){r.beginPath(),r.setFillStyle(H.color||o.color);A=H.x-H.width/2,C=e.height-H.y-e.area[2];if(d.barBorderCircle){j=H.width/2;j>C&&(j=C),r.moveTo(A,e.height-e.area[2]),r.arc(A+j,H.y+j,j,-Math.PI,-Math.PI/2),r.arc(A+H.width-j,H.y+j,j,-Math.PI/2,0),r.lineTo(A+H.width,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.fill()}else r.moveTo(A,H.y),r.fillRect(A,H.y,H.width,C),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(a,o){var c,h,f;c=[].concat(e.chartData.yAxisData.ranges[a.index]),h=c.pop(),f=c.shift();var p=a.data;switch(d.type){case"group":var u=ut(p,h,f,s,l,e,i,n);u=st(u,l,t.length,o,i,e),St(u,a,i,r,e);break;case"stack":u=gt(p,h,f,s,l,e,i,o,t,n);St(u,a,i,r,e);break;case"meter":u=ut(p,h,f,s,l,e,i,n);St(u,a,i,r,e);break}})),r.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function zt(t,e,i,r){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length,l=0;l<e.categories.length;l++)o.push(e.area[0]+s/2+s*l);var d=c({},{type:"group",width:s/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),h=[];r.save();var p=-2,u=o.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&It(e.tooltip.offset.y,e,i,r,s),d.customColor=A(d.linearType,d.customColor,t,i),t.forEach((function(l,c){var x,g,v;x=[].concat(e.chartData.xAxisData.ranges),v=x.pop(),g=x.shift();var m=l.data;switch(d.type){case"group":var y=xt(m,g,v,o,s,e,i,n),b=vt(m,g,v,o,s,e,i,c,t,n);h.push(b),y=lt(y,s,t.length,c,i,e);for(var w=0;w<y.length;w++){var _=y[w];if(null!==_&&w>p&&w<u){var A=e.area[3],C=_.y-_.width/2;_.height;r.beginPath();var S=_.color||l.color,T=_.color||l.color;if("none"!==d.linearType){var k=r.createLinearGradient(A,_.y,_.x,_.y);"opacity"==d.linearType?(k.addColorStop(0,f(S,d.linearOpacity)),k.addColorStop(1,f(S,1))):(k.addColorStop(0,f(d.customColor[l.linearIndex],d.linearOpacity)),k.addColorStop(d.colorStop,f(d.customColor[l.linearIndex],d.linearOpacity)),k.addColorStop(1,f(S,1))),S=k}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var P=A,M=_.width,D=_.y-_.width/2,F=_.heigh;d.barBorderCircle&&(d.barBorderRadius=[M/2,M/2,0,0]);var L=a(d.barBorderRadius,4),O=L[0],I=L[1],E=L[2],B=L[3],z=Math.min(M/2,F/2);O=O>z?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(P+B,D+B,B,-Math.PI,-Math.PI/2),r.arc(_.x-O,D+O,O,-Math.PI/2,0),r.arc(_.x-I,D+M-I,I,0,Math.PI/2),r.arc(P+E,D+M-E,E,Math.PI/2,Math.PI)}else r.moveTo(A,C),r.lineTo(_.x,C),r.lineTo(_.x,C+_.width-2),r.lineTo(A,C+_.width-2),r.lineTo(A,C),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(S),r.closePath(),r.fill()}}break;case"stack":y=vt(m,g,v,o,s,e,i,c,t,n);h.push(y),y=ht(y,s,t.length,c,i,e,t);for(var $=0;$<y.length;$++){var W=y[$];if(null!==W&&$>p&&$<u){r.beginPath();S=W.color||l.color,A=W.x0;r.setFillStyle(S),r.moveTo(A,W.y-W.width/2),r.fillRect(A,W.y-W.width/2,W.height,W.width-2),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(a,l){var c,h,f;c=[].concat(e.chartData.xAxisData.ranges),f=c.pop(),h=c.shift();var p=a.data;switch(d.type){case"group":var u=xt(p,h,f,o,s,e,i,n);u=lt(u,s,t.length,l,i,e),Tt(u,a,i,r,e);break;case"stack":u=vt(p,h,f,o,s,e,i,l,t,n);Tt(u,a,i,r,e);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:s}}function $t(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=c({},{color:{},average:{}},a.extra.candle);o.color=c({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=c({},{show:!1,name:[],day:[],color:i.color},o.average),a.extra.candle=o;var s=a.chartData.xAxisData,l=s.xAxisPoints,d=s.eachSpacing,h=[];r.save();var f=-2,p=l.length+2,u=0,x=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),f=Math.floor(-a._scrollDistance_/d)-2,p=f+a.xAxis.itemCount+4,u=-a._scrollDistance_-2*d+a.area[3],x=u+(a.xAxis.itemCount+4)*d),(o.average.show||e)&&e.forEach((function(t,e){var o,s,c;o=[].concat(a.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();for(var h=t.data,f=ut(h,s,c,l,d,a,i,n),p=q(f,t),g=0;g<p.length;g++){var v=p[g];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===v.length)r.moveTo(v[0].x,v[0].y),r.arc(v[0].x,v[0].y,1,0,2*Math.PI);else{r.moveTo(v[0].x,v[0].y);for(var y=0,b=0;b<v.length;b++){var w=v[b];if(0==y&&w.x>u&&(r.moveTo(w.x,w.y),y=1),b>0&&w.x>u&&w.x<x){var _=m(v,b-1);r.bezierCurveTo(_.ctrA.x,_.ctrA.y,_.ctrB.x,_.ctrB.y,w.x,w.y)}}r.moveTo(v[0].x,v[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var s,c,u;s=[].concat(a.chartData.yAxisData.ranges[t.index]),c=s.pop(),u=s.shift();var x=t.data,g=pt(x,c,u,l,d,a,i,n);h.push(g);for(var v=q(g,t),m=0;m<v[0].length;m++)if(m>f&&m<p){var y=v[0][m];r.beginPath(),x[m][1]-x[m][0]>0?(r.setStrokeStyle(o.color.upLine),r.setFillStyle(o.color.upFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(o.color.downLine),r.setFillStyle(o.color.downFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:d}}function Wt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=e.height-e.area[2],h=[];i.save();var p=0,u=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-2*l+e.area[3],u=p+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var c,x,g;c=[].concat(e.chartData.yAxisData.ranges[t.index]),x=c.pop(),g=c.shift();var v=t.data,y=ut(v,x,g,s,l,e,a,r);h.push(y);for(var b=q(y,t),w=0;w<b.length;w++){var _=b[w];if(i.beginPath(),i.setStrokeStyle(f(t.color,n.opacity)),n.gradient){var A=i.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);A.addColorStop("0",f(t.color,n.opacity)),A.addColorStop("1.0",f("#FFFFFF",.1)),i.setFillStyle(A)}else i.setFillStyle(f(t.color,n.opacity));if(i.setLineWidth(n.width*e.pix),_.length>1){var C=_[0],S=_[_.length-1];i.moveTo(C.x,C.y);var T=0;if("curve"===n.type)for(var k=0;k<_.length;k++){var P=_[k];if(0==T&&P.x>p&&(i.moveTo(P.x,P.y),T=1),k>0&&P.x>p&&P.x<u){var M=m(_,k-1);i.bezierCurveTo(M.ctrA.x,M.ctrA.y,M.ctrB.x,M.ctrB.y,P.x,P.y)}}if("straight"===n.type)for(var D=0;D<_.length;D++){var F=_[D];0==T&&F.x>p&&(i.moveTo(F.x,F.y),T=1),D>0&&F.x>p&&F.x<u&&i.lineTo(F.x,F.y)}if("step"===n.type)for(var L=0;L<_.length;L++){var O=_[L];0==T&&O.x>p&&(i.moveTo(O.x,O.y),T=1),L>0&&O.x>p&&O.x<u&&(i.lineTo(O.x,_[L-1].y),i.lineTo(O.x,O.y))}i.lineTo(S.x,d),i.lineTo(C.x,d),i.lineTo(C.x,C.y)}else{var I=_[0];i.moveTo(I.x-l/2,I.y),i.lineTo(I.x+l/2,I.y),i.lineTo(I.x+l/2,d),i.lineTo(I.x-l/2,d),i.moveTo(I.x-l/2,I.y)}if(i.closePath(),i.fill(),n.addLine){if("dash"==t.lineType){var E=t.dashLength?t.dashLength:8;E*=e.pix,i.setLineDash([E,E])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(n.width*e.pix),1===_.length)i.moveTo(_[0].x,_[0].y),i.arc(_[0].x,_[0].y,1,0,2*Math.PI);else{i.moveTo(_[0].x,_[0].y);var B=0;if("curve"===n.type)for(var z=0;z<_.length;z++){var $=_[z];if(0==B&&$.x>p&&(i.moveTo($.x,$.y),B=1),z>0&&$.x>p&&$.x<u){var W=m(_,z-1);i.bezierCurveTo(W.ctrA.x,W.ctrA.y,W.ctrB.x,W.ctrB.y,$.x,$.y)}}if("straight"===n.type)for(var R=0;R<_.length;R++){var N=_[R];0==B&&N.x>p&&(i.moveTo(N.x,N.y),B=1),R>0&&N.x>p&&N.x<u&&i.lineTo(N.x,N.y)}if("step"===n.type)for(var G=0;G<_.length;G++){var j=_[G];0==B&&j.x>p&&(i.moveTo(j.x,j.y),B=1),G>0&&j.x>p&&j.x<u&&(i.lineTo(j.x,_[G-1].y),i.lineTo(j.x,j.y))}i.moveTo(_[0].x,_[0].y)}i.stroke(),i.setLineDash([])}}!1!==e.dataPointShape&&At(y,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,c,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),d=o.shift();var h=t.data,f=ut(h,c,d,s,l,e,a,r);St(f,t,a,i,e)})),i.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function Rt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=(c({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),o=n.xAxisPoints,s=n.eachSpacing,l=[];i.save();var d=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*s+e.area[3],d+(e.xAxis.itemCount+4)*s),t.forEach((function(t,n){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,f=ut(h,c,d,o,s,e,a,r);i.beginPath(),i.setStrokeStyle(t.color),i.setFillStyle(t.color),i.setLineWidth(1*e.pix);var p=t.pointShape;if("diamond"===p)f.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))}));else if("circle"===p)f.forEach((function(t,a){null!==t&&(i.moveTo(t.x+2.5*e.pix,t.y),i.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===p)f.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===p)f.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))}));else if("triangle"===p)return;i.closePath(),i.fill(),i.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,f=ut(h,c,d,o,s,e,a,r);St(f,t,a,i,e)})),i.restore(),{xAxisPoints:o,calPoints:l,eachSpacing:s}}function Nt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{opacity:1,border:2},e.extra.bubble),o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=[];i.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],h+(e.xAxis.itemCount+4)*l),t.forEach((function(o,c){var d,h,p;d=[].concat(e.chartData.yAxisData.ranges[o.index]),h=d.pop(),p=d.shift();var u=o.data,x=ut(u,h,p,s,l,e,a,r);i.beginPath(),i.setStrokeStyle(o.color),i.setLineWidth(n.border*e.pix),i.setFillStyle(f(o.color,n.opacity)),x.forEach((function(t,a){i.moveTo(t.x+t.r,t.y),i.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),i.closePath(),i.fill(),i.stroke(),!1!==e.dataLabel&&1===r&&x.forEach((function(r,n){i.beginPath();var o=t.textSize*e.pix||a.fontSize;i.setFontSize(o),i.setFillStyle(t.textColor||"#FFFFFF"),i.setTextAlign("center"),i.fillText(String(r.t),r.x,r.y+o/2),i.closePath(),i.stroke(),i.setTextAlign("left")}))})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function Gt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"straight",width:2},e.extra.line);n.width*=e.pix;var o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=[];i.save();var h=0,f=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],f=h+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var c,p,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),p=c.pop(),u=c.shift();var x=t.data,g=ut(x,p,u,s,l,e,a,r);d.push(g);var v=q(g,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(n.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"===n.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==a&&o.x>h&&(i.moveTo(o.x,o.y),a=1),r>0&&o.x>h&&o.x<f){var s=m(t,r-1);i.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===n.type)for(var l=0;l<t.length;l++){var c=t[l];0==a&&c.x>h&&(i.moveTo(c.x,c.y),a=1),l>0&&c.x>h&&c.x<f&&i.lineTo(c.x,c.y)}if("step"===n.type)for(var d=0;d<t.length;d++){var p=t[d];0==a&&p.x>h&&(i.moveTo(p.x,p.y),a=1),d>0&&p.x>h&&p.x<f&&(i.lineTo(p.x,t[d-1].y),i.lineTo(p.x,p.y))}i.moveTo(t[0].x,t[0].y)}})),i.stroke(),i.setLineDash([]),!1!==e.dataPointShape&&At(g,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,c,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),d=o.shift();var h=t.data,f=ut(h,c,d,s,l,e,a,r);St(f,t,a,i,e)})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function jt(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{width:d/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),s=e.chartData.xAxisData,l=s.xAxisPoints,d=s.eachSpacing,h=e.height-e.area[2],p=[],u=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),r.save();var g=-2,v=l.length+2,y=0,b=e.width+d;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),g=Math.floor(-e._scrollDistance_/d)-2,v=g+e.xAxis.itemCount+4,y=-e._scrollDistance_-2*d+e.area[3],b=y+(e.xAxis.itemCount+4)*d),o.customColor=A(o.linearType,o.customColor,t,i),t.forEach((function(t,s){var c,w,_;c=[].concat(e.chartData.yAxisData.ranges[t.index]),w=c.pop(),_=c.shift();var A=t.data,C=ut(A,w,_,l,d,e,i,n);if(p.push(C),"column"==t.type){C=st(C,d,x,u,i,e);for(var S=0;S<C.length;S++){var T=C[S];if(null!==T&&S>g&&S<v){var k=T.x-T.width/2;e.height,T.y,e.area[2];r.beginPath();var P=T.color||t.color,M=T.color||t.color;if("none"!==o.linearType){var D=r.createLinearGradient(k,T.y,k,e.height-e.area[2]);"opacity"==o.linearType?(D.addColorStop(0,f(P,o.linearOpacity)),D.addColorStop(1,f(P,1))):(D.addColorStop(0,f(o.customColor[t.linearIndex],o.linearOpacity)),D.addColorStop(o.colorStop,f(o.customColor[t.linearIndex],o.linearOpacity)),D.addColorStop(1,f(P,1))),P=D}if(o.barBorderRadius&&4===o.barBorderRadius.length||o.barBorderCircle){var F=k,L=T.y,O=T.width,I=e.height-e.area[2]-T.y;o.barBorderCircle&&(o.barBorderRadius=[O/2,O/2,0,0]);var E=a(o.barBorderRadius,4),B=E[0],z=E[1],$=E[2],W=E[3],R=Math.min(O/2,I/2);B=B>R?R:B,z=z>R?R:z,$=$>R?R:$,W=W>R?R:W,B=B<0?0:B,z=z<0?0:z,$=$<0?0:$,W=W<0?0:W,r.arc(F+B,L+B,B,-Math.PI,-Math.PI/2),r.arc(F+O-z,L+z,z,-Math.PI/2,0),r.arc(F+O-$,L+I-$,$,0,Math.PI/2),r.arc(F+W,L+I-W,W,Math.PI/2,Math.PI)}else r.moveTo(k,T.y),r.lineTo(k+T.width-2,T.y),r.lineTo(k+T.width-2,e.height-e.area[2]),r.lineTo(k,e.height-e.area[2]),r.lineTo(k,T.y),r.setLineWidth(1),r.setStrokeStyle(M);r.setFillStyle(P),r.closePath(),r.fill()}}u+=1}if("area"==t.type)for(var N=q(C,t),G=0;G<N.length;G++){var j=N[G];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(f(t.color,.2)),r.setLineWidth(2*e.pix),j.length>1){var Y=j[0],H=j[j.length-1];r.moveTo(Y.x,Y.y);var X=0;if("curve"===t.style)for(var U=0;U<j.length;U++){var J=j[U];if(0==X&&J.x>y&&(r.moveTo(J.x,J.y),X=1),U>0&&J.x>y&&J.x<b){var Q=m(j,U-1);r.bezierCurveTo(Q.ctrA.x,Q.ctrA.y,Q.ctrB.x,Q.ctrB.y,J.x,J.y)}}else for(var V=0;V<j.length;V++){var Z=j[V];0==X&&Z.x>y&&(r.moveTo(Z.x,Z.y),X=1),V>0&&Z.x>y&&Z.x<b&&r.lineTo(Z.x,Z.y)}r.lineTo(H.x,h),r.lineTo(Y.x,h),r.lineTo(Y.x,Y.y)}else{var K=j[0];r.moveTo(K.x-d/2,K.y),r.lineTo(K.x+d/2,K.y),r.lineTo(K.x+d/2,h),r.lineTo(K.x-d/2,h),r.moveTo(K.x-d/2,K.y)}r.closePath(),r.fill()}if("line"==t.type){var tt=q(C,t);tt.forEach((function(a,i){if("dash"==t.lineType){var n=t.dashLength?t.dashLength:8;n*=e.pix,r.setLineDash([n,n])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pix),1===a.length)r.moveTo(a[0].x,a[0].y),r.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{r.moveTo(a[0].x,a[0].y);var o=0;if("curve"==t.style)for(var s=0;s<a.length;s++){var l=a[s];if(0==o&&l.x>y&&(r.moveTo(l.x,l.y),o=1),s>0&&l.x>y&&l.x<b){var c=m(a,s-1);r.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var d=0;d<a.length;d++){var h=a[d];0==o&&h.x>y&&(r.moveTo(h.x,h.y),o=1),d>0&&h.x>y&&h.x<b&&r.lineTo(h.x,h.y)}r.moveTo(a[0].x,a[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&At(C,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===n){u=0;t.forEach((function(t,a){var o,s,c;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var h=t.data,f=ut(h,s,c,l,d,e,i,n);"column"!==t.type?St(f,t,i,r,e):(f=st(f,d,x,u,i,e),St(f,t,i,r,e),u+=1)}))}return r.restore(),{xAxisPoints:l,calPoints:p,eachSpacing:d}}function Yt(t,e,a,i,r,n){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)&&Lt(t,e,a,r,n),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,r,n),a.restore()}function Ht(t,e,a,i){var r=e.chartData.xAxisData,n=r.xAxisPoints,o=r.startX,s=r.endX,l=r.eachSpacing,c="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(c=e.xAxis.boundaryGap);var d=e.height-e.area[2],h=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var f=e.height-e.area[2]+a.xAxisHeight,p=s-o,u=l*(n.length-1),x=p*p/u,g=0;e._scrollDistance_&&(g=-e._scrollDistance_*p/u),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pix),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.pix),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(o+g,f),i.lineTo(o+g+x,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.pix),n.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-l/2,d),i.lineTo(t-l/2,d+3*e.pix),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,n.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,d),i.lineTo(t,h),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var y=Math.ceil(t.length/m),b=[],w=t.length,_=0;_<w;_++)_%y!==0?b.push(""):b.push(t[_]);b[w-1]=t[w-1];var A=e.xAxis.fontSize*e.pix||a.fontSize;0===a._xAxisTextAngle_?b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=-S(String(o),A,i)/2;"center"==c&&(s+=l/2);var h=0;e.xAxis.scrollShow&&(h=6*e.pix),i.beginPath(),i.setFontSize(A),i.setFillStyle(e.xAxis.fontColor||e.fontColor),i.fillText(String(o),n[r]+s,d+A+(a.xAxisHeight-h-A)/2),i.closePath(),i.stroke()})):b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t;i.save(),i.beginPath(),i.setFontSize(A),i.setFillStyle(e.xAxis.fontColor||e.fontColor);var s=S(String(o),A,i),h=-s;"center"==c&&(h+=l/2);var f=v(n[r]+l/2,d+A/2+5,e.height),p=f.transX,u=f.transY;i.rotate(-1*a._xAxisTextAngle_),i.translate(p,u),i.fillText(String(o),n[r]+h,d+A+5),i.closePath(),i.stroke(),i.restore()}))}i.restore(),e.xAxis.axisLine&&(i.beginPath(),i.setStrokeStyle(e.xAxis.axisLineColor),i.setLineWidth(1*e.pix),i.moveTo(o,e.height-e.area[2]),i.lineTo(s,e.height-e.area[2]),i.stroke())}function Xt(t,e,a,i){if(!0!==e.yAxis.disableGrid){var r=e.height-e.area[0]-e.area[2],n=r/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),d=o+c,h=[],f=1;!1===e.xAxis.axisLine&&(f=0);for(var p=f;p<e.yAxis.splitNumber+1;p++)h.push(e.height-e.area[2]-n*p);i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&i.setLineDash([e.yAxis.dashLength*e.pix,e.yAxis.dashLength*e.pix]),i.setStrokeStyle(e.yAxis.gridColor),i.setLineWidth(1*e.pix),h.forEach((function(t,e){i.beginPath(),i.moveTo(o,t),i.lineTo(d,t),i.stroke()})),i.setLineDash([]),i.restore()}}function Ut(t,e,a,i){if(!0!==e.yAxis.disabled){var r=e.height-e.area[0]-e.area[2],n=r/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+a.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pix),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+e.fontSize*e.pix/2),i.beginPath(),i.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&i.fillRect(0,0,o,c),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&i.fillRect(s,0,e.width,c),i.closePath(),i.stroke();var d=e.area[3],h=e.width-e.area[1],f=e.area[3]+(e.width-e.area[1]-e.area[3])/2;if(e.yAxis.data)for(var p=function(t){var o=e.yAxis.data[t];if(x=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)x.push(e.area[0]+r/o.categories.length/2+r/o.categories.length*s);else for(var c=0;c<=e.yAxis.splitNumber;c++)x.push(e.area[0]+n*c);if(!0!==o.disabled){var p=e.chartData.yAxisData.rangesFormat[t],u=o.fontSize?o.fontSize*e.pix:a.fontSize,g=e.chartData.yAxisData.yAxisWidth[t],v=o.textAlign||"right";if(p.forEach((function(t,a){var r=x[a]?x[a]:l;i.beginPath(),i.setFontSize(u),i.setLineWidth(1*e.pix),i.setStrokeStyle(o.axisLineColor||"#cccccc"),i.setFillStyle(o.fontColor||e.fontColor);var n=0,s=4*e.pix;if("left"==g.position){switch(1==o.calibration&&(i.moveTo(d,r),i.lineTo(d-3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=d-g.width;break;case"right":i.setTextAlign("right"),n=d-s;break;default:i.setTextAlign("center"),n=d-g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}else if("right"==g.position){switch(1==o.calibration&&(i.moveTo(h,r),i.lineTo(h+3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=h+s;break;case"right":i.setTextAlign("right"),n=h+g.width;break;default:i.setTextAlign("center"),n=h+g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}else if("center"==g.position){switch(1==o.calibration&&(i.moveTo(f,r),i.lineTo(f-3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=f-g.width;break;case"right":i.setTextAlign("right"),n=f-s;break;default:i.setTextAlign("center"),n=f-g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}i.closePath(),i.stroke(),i.setTextAlign("left")})),!1!==o.axisLine&&(i.beginPath(),i.setStrokeStyle(o.axisLineColor||"#cccccc"),i.setLineWidth(1*e.pix),"left"==g.position?(i.moveTo(d,e.height-e.area[2]),i.lineTo(d,e.area[0])):"right"==g.position?(i.moveTo(h,e.height-e.area[2]),i.lineTo(h,e.area[0])):"center"==g.position&&(i.moveTo(f,e.height-e.area[2]),i.lineTo(f,e.area[0])),i.stroke()),e.yAxis.showTitle){var m=o.titleFontSize*e.pix||a.fontSize,y=o.title;i.beginPath(),i.setFontSize(m),i.setFillStyle(o.titleFontColor||e.fontColor),"left"==g.position?i.fillText(y,d-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==g.position?i.fillText(y,h-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==g.position&&i.fillText(y,f-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),i.closePath(),i.stroke()}"left"==g.position?d-=g.width+e.yAxis.padding*e.pix:h+=g.width+e.yAxis.padding*e.pix}},u=0;u<e.yAxis.data.length;u++){var x;p(u)}}}function qt(t,e,a,i,r){if(!1!==e.legend.show){var n=r.legendData,o=n.points,s=n.area,l=e.legend.padding*e.pix,c=e.legend.fontSize*e.pix,d=15*e.pix,h=5*e.pix,f=e.legend.itemGap*e.pix,p=Math.max(e.legend.lineHeight*e.pix,c);i.beginPath(),i.setLineWidth(e.legend.borderWidth*e.pix),i.setStrokeStyle(e.legend.borderColor),i.setFillStyle(e.legend.backgroundColor),i.moveTo(s.start.x,s.start.y),i.rect(s.start.x,s.start.y,s.width,s.height),i.closePath(),i.fill(),i.stroke(),o.forEach((function(t,r){var o=0,u=0;o=n.widthArr[r],u=n.heightArr[r];var x=0,g=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":x=s.start.x+l;break;case"right":x=s.start.x+s.width-o;break;default:x=s.start.x+(s.width-o)/2}g=s.start.y+l+r*p}else o=0==r?0:n.widthArr[r-1],x=s.start.x+l+o,g=s.start.y+l+(s.height-u)/2;i.setFontSize(a.fontSize);for(var v=0;v<t.length;v++){var m=t[v];switch(m.area=[0,0,0,0],m.area[0]=x,m.area[1]=g,m.area[3]=g+p,i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),i.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":i.moveTo(x,g+.5*p-2*e.pix),i.fillRect(x,g+.5*p-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":i.moveTo(x+7.5*e.pix,g+.5*p-5*e.pix),i.lineTo(x+2.5*e.pix,g+.5*p+5*e.pix),i.lineTo(x+12.5*e.pix,g+.5*p+5*e.pix),i.lineTo(x+7.5*e.pix,g+.5*p-5*e.pix);break;case"diamond":i.moveTo(x+7.5*e.pix,g+.5*p-5*e.pix),i.lineTo(x+2.5*e.pix,g+.5*p),i.lineTo(x+7.5*e.pix,g+.5*p+5*e.pix),i.lineTo(x+12.5*e.pix,g+.5*p),i.lineTo(x+7.5*e.pix,g+.5*p-5*e.pix);break;case"circle":i.moveTo(x+7.5*e.pix,g+.5*p),i.arc(x+7.5*e.pix,g+.5*p,5*e.pix,0,2*Math.PI);break;case"rect":i.moveTo(x,g+.5*p-5*e.pix),i.fillRect(x,g+.5*p-5*e.pix,15*e.pix,10*e.pix);break;case"square":i.moveTo(x+5*e.pix,g+.5*p-5*e.pix),i.fillRect(x+5*e.pix,g+.5*p-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:i.moveTo(x,g+.5*p-5*e.pix),i.fillRect(x,g+.5*p-5*e.pix,15*e.pix,10*e.pix)}i.closePath(),i.fill(),i.stroke(),x+=d+h;var y=.5*p+.5*c-2;i.beginPath(),i.setFontSize(c),i.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),i.fillText(m.name,x,g+y),i.closePath(),i.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(x+=S(m.name,c,i)+f,m.area[2]=x):(m.area[2]=x+S(m.name,c,i)+f,x-=d+h,g+=p)}}))}}function Jt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),o={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=n.activeRadius*e.pix);var s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);n.customRadius>0&&(s=n.customRadius*e.pix),t=tt(t,s,r);var l=n.activeRadius*e.pix;if(n.customColor=A(n.linearType,n.customColor,t,a),t=t.map((function(t){return t._start_+=n.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(f(t.color,n.activeOpacity||.5)),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_+l,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(n.borderColor);var r,s=t.color;"custom"==n.linearType&&(r=i.createCircularGradient?i.createCircularGradient(o.x,o.y,t._radius_):i.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,f(n.customColor[t.linearIndex],1)),r.addColorStop(1,f(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),"ring"===e.type){var d=.6*s;"number"===typeof n.ringWidth&&n.ringWidth>0&&(d=Math.max(0,s-n.ringWidth*e.pix)),i.beginPath(),i.setFillStyle(n.centerColor),i.moveTo(o.x,o.y),i.arc(o.x,o.y,d,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,p=0,u=t.length;p<u;p++)if(t[p].data>0){h=!0;break}h&&Mt(t,e,a,i,s,o)}return 1===r&&"ring"===e.type&&Ct(e,a,i,o),{center:o,radius:s,series:t}}function Qt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=n.activeRadius*e.pix);var o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),l=n.minRadius||.5*s;t=at(t,n.type,l,s,r);var d=n.activeRadius*e.pix;if(n.customColor=A(n.linearType,n.customColor,t,a),t=t.map((function(t){return t._start_+=(n.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(f(t.color,n.activeOpacity||.5)),i.moveTo(o.x,o.y),i.arc(o.x,o.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(n.borderColor);var r,s=t.color;"custom"==n.linearType&&(r=i.createCircularGradient?i.createCircularGradient(o.x,o.y,t._radius_):i.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,f(n.customColor[t.linearIndex],1)),r.addColorStop(1,f(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,p=0,u=t.length;p<u;p++)if(t[p].data>0){h=!0;break}h&&Mt(t,e,a,i,s,o)}return{center:o,radius:s,series:t}}function Vt(t,e,a,i){var r,n,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=c({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=it(t,s,o),r=s.centerX||s.centerY?{x:s.centerX?s.centerX:e.width/2,y:s.centerY?s.centerY:e.height/2}:{x:e.width/2,y:e.height/2},s.radius?n=s.radius:(n=Math.min(r.x,r.y),n-=5*e.pix,n-=s.width/2),s.customColor=A(s.linearType,s.customColor,t,a);for(var l=0;l<t.length;l++){var d=t[l];i.setLineWidth(s.width*e.pix),i.setStrokeStyle(s.backgroundColor||"#E9E9E9"),i.setLineCap("round"),i.beginPath(),"default"==s.type?i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,s.startAngle*Math.PI,s.endAngle*Math.PI,!1):i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,0,2*Math.PI,!1),i.stroke();var h=d.color;if("custom"==s.linearType){var p=i.createLinearGradient(r.x-n,r.y,r.x+n,r.y);p.addColorStop(1,f(s.customColor[d.linearIndex],1)),p.addColorStop(0,f(d.color,1)),h=p}i.setLineWidth(s.width*e.pix),i.setStrokeStyle(h),i.setLineCap("round"),i.beginPath(),i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,s.startAngle*Math.PI,d._proportion_*Math.PI,!1),i.stroke()}return Ct(e,a,i,r),{center:r,radius:n,series:t}}function Zt(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=c({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),t=rt(t,o.startAngle,o.endAngle);var s={x:a.width/2,y:a.height/2},l=Math.min(s.x,s.y);l-=5*a.pix,l-=o.width/2;var d=l-o.width,h=0;if("progress"==o.type){var p=l-3*o.width;r.beginPath();var u=r.createLinearGradient(s.x,s.y-p,s.x,s.y+p);u.addColorStop("0",f(e[0].color,.3)),u.addColorStop("1.0",f("#FFFFFF",.1)),r.setFillStyle(u),r.arc(s.x,s.y,p,0,2*Math.PI,!1),r.fill(),r.setLineWidth(o.width),r.setStrokeStyle(f(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),r.stroke(),h=o.startAngle-o.endAngle+1;o.splitLine.splitNumber;var x=h/o.splitLine.splitNumber/o.splitLine.childNumber,g=-l-.5*o.width-o.splitLine.fixRadius,v=-l-o.width-o.splitLine.fixRadius+o.splitLine.width;r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var m=o.splitLine.splitNumber*o.splitLine.childNumber+1,y=e[0].data*n,b=0;b<m;b++)r.beginPath(),y>b/m?r.setStrokeStyle(f(e[0].color,1)):r.setStrokeStyle(f(e[0].color,.3)),r.setLineWidth(3*a.pix),r.moveTo(g,0),r.lineTo(v,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=it(e,o,n),r.setLineWidth(o.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,o.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=l-2.5*o.width;r.save(),r.translate(s.x,s.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(o.width/3);var _=r.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",f("#FFFFFF",0)),_.addColorStop("0.5",f(e[0].color,1)),_.addColorStop("1.0",f("#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-o.width/3/2,-4),r.lineTo(-w-o.width/3/2-4,0),r.lineTo(-w-o.width/3/2,4),r.lineTo(-w-o.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(o.width),r.setLineCap("butt");for(var A=0;A<t.length;A++){var C=t[A];r.beginPath(),r.setStrokeStyle(C.color),r.arc(s.x,s.y,l,C._startAngle_*Math.PI,C._endAngle_*Math.PI,!1),r.stroke()}r.save(),h=o.startAngle-o.endAngle+1;var S=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,k=-l-.5*o.width-o.splitLine.fixRadius,P=-l-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,M=-l-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var D=0;D<o.splitLine.splitNumber+1;D++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(2*a.pix),r.moveTo(k,0),r.lineTo(P,0),r.stroke(),r.rotate(S*Math.PI);r.restore(),r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var F=0;F<o.splitLine.splitNumber*o.splitLine.childNumber+1;F++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(1*a.pix),r.moveTo(k,0),r.lineTo(M,0),r.stroke(),r.rotate(T*Math.PI);r.restore(),e=nt(e,t,o,n);for(var L=0;L<e.length;L++){var O=e[L];r.save(),r.translate(s.x,s.y),r.rotate((O._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(O.color),r.moveTo(o.pointer.width,0),r.lineTo(0,-o.pointer.width/2),r.lineTo(-d,0),r.lineTo(0,o.pointer.width/2),r.lineTo(o.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==a.dataLabel&&kt(o,l,s,a,i,r)}return Ct(a,i,r,s),1===n&&"gauge"===a.type&&(a.extra.gauge.oldAngle=e[0]._proportion_,a.extra.gauge.oldData=e[0].data),{center:s,radius:l,innerRadius:d,categories:t,totalAngle:h}}function Kt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),o=F(e.categories.length),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=(e.width-e.area[1]-e.area[3])/2,d=(e.height-e.area[0]-e.area[2])/2,h=Math.min(l-(D(e.categories,a.fontSize,i)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);h-=a.radarLabelTextMargin*e.pix,i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(n.gridColor),o.forEach((function(t){var e=y(h*Math.cos(t),h*Math.sin(t),s);i.moveTo(s.x,s.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var p=function(t){var a={};if(i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(n.gridColor),"radar"==n.gridType)o.forEach((function(e,r){var o=y(h/n.gridCount*t*Math.cos(e),h/n.gridCount*t*Math.sin(e),s);0===r?(a=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(a.x,a.y);else{var r=y(h/n.gridCount*t*Math.cos(1.5),h/n.gridCount*t*Math.sin(1.5),s);i.arc(s.x,s.y,s.y-r.y,0,2*Math.PI,!1)}i.stroke(),i.closePath()},u=1;u<=n.gridCount;u++)p(u);var x=K(o,s,h,t,e,r);return x.forEach((function(t,a){if(i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(t.color),i.setFillStyle(f(t.color,n.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(),!0===n.border&&i.stroke(),i.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));At(r,t.color,t.pointShape,i,e)}})),Pt(o,h,s,e,a,i),!1!==e.dataLabel&&1===r&&(x.forEach((function(t,r){i.beginPath();var n=t.textSize*e.pix||a.fontSize;i.setFontSize(n),i.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-s.x)<2?t.position.y<s.y?(i.setTextAlign("center"),i.fillText(t.value,t.position.x,t.position.y-4)):(i.setTextAlign("center"),i.fillText(t.value,t.position.x,t.position.y+n+2)):t.position.x<s.x?(i.setTextAlign("right"),i.fillText(t.value,t.position.x-4,t.position.y+n/2-2)):(i.setTextAlign("left"),i.fillText(t.value,t.position.x+4,t.position.y+n/2-2))})),i.closePath(),i.stroke()})),i.setTextAlign("left")),{center:s,radius:h,angleList:o}}function te(t,e,a){a=0==a?1:a;for(var i=[],r=0;r<a;r++)i[r]=Math.random();return Math.floor(i.reduce((function(t,e){return t+e}))/a*(e-t))+t}function ee(t,e,a,i){for(var r=!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])){r=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>i){r=!0;break}r=!1}return r}function ae(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var i=0;i<t.length;i++)for(var r=t[i].geometry.coordinates,n=0;n<r.length;n++){e=r[n],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][1],c={x:s,y:l};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}function ie(t,e,a,i,r,n){return{x:(e-a.xMin)*i+r,y:(a.yMax-t)*i+n}}function re(t,e,a,i,r,n){return{x:(e-r)/i+a.xMin,y:a.yMax-(t-n)/i}}function ne(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]<t[1]&&a[1]<t[1])return!1;if(e[1]==t[1]&&a[1]>t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&a[1]<t[1])return!1;var i=a[0]-(a[0]-e[0])*(a[1]-t[1])/(a[1]-e[1]);return!(i<t[0])}function oe(t,e,a){for(var i=0,r=0;r<e.length;r++){var n=e[r][0];1==e.length&&(n=e[r][0]);for(var o=0;o<n.length-1;o++){var s=n[o],l=n[o+1];a&&(s=h(n[o][0],n[o][1]),l=h(n[o+1][0],n[o+1][1])),ne(t,s,l)&&(i+=1)}}return i%2==1}function se(t,e,a,i){var r,n,o=c({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),s=t,l=ae(s);if(o.mercator){var d=h(l.xMax,l.yMax),p=h(l.xMin,l.yMin);l.xMax=d[0],l.yMax=d[1],l.xMin=p[0],l.yMin=p[1]}for(var u=e.width/Math.abs(l.xMax-l.xMin),x=e.height/Math.abs(l.yMax-l.yMin),g=u<x?u:x,v=e.width/2-Math.abs(l.xMax-l.xMin)/2*g,m=e.height/2-Math.abs(l.yMax-l.yMin)/2*g,y=0;y<s.length;y++){i.beginPath(),i.setLineWidth(o.borderWidth*e.pix),i.setStrokeStyle(o.borderColor),i.setFillStyle(f(t[y].color,o.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(i.setStrokeStyle(o.activeBorderColor),i.setFillStyle(f(o.activeFillColor,o.activeFillOpacity)));for(var b=s[y].geometry.coordinates,w=0;w<b.length;w++){r=b[w],1==r.length&&(r=r[0]);for(var _=0;_<r.length;_++){var A=Array(2);A=o.mercator?h(r[_][0],r[_][1]):r[_],n=ie(A[1],A[0],l,g,v,m),0===_?(i.beginPath(),i.moveTo(n.x,n.y)):i.lineTo(n.x,n.y)}i.fill(),1==o.border&&i.stroke()}if(1==e.dataLabel){var C=s[y].properties.centroid;if(C){o.mercator&&(C=h(s[y].properties.centroid[0],s[y].properties.centroid[1])),n=ie(C[1],C[0],l,g,v,m);var T=s[y].textSize*e.pix||a.fontSize,k=s[y].properties.name;i.beginPath(),i.setFontSize(T),i.setFillStyle(s[y].textColor||e.fontColor),i.fillText(k,n.x-S(k,T,i)/2,n.y+T/2),i.closePath(),i.stroke()}}}e.chartData.mapData={bounds:l,scale:g,xoffset:v,yoffset:m,mercator:o.mercator},Yt(e,a,i,1),i.draw()}function le(t,e,a){var i=t.series;switch(e){case"normal":for(var r=0;r<i.length;r++){var n=i[r].name,o=i[r].textSize*t.pix,s=S(n,o,a),l=void 0,c=void 0,d=void 0,h=0;while(1){h++,l=te(-t.width/2,t.width/2,5)-s/2,c=te(-t.height/2,t.height/2,5)+o/2,d=[l-5+t.width/2,c-5-o+t.height/2,l+s+5+t.width/2,c+5+t.height/2];var f=ee(d,i,t.width,t.height);if(!f)break;if(1e3==h){d=[-100,-100,-100,-100];break}}i[r].area=d}break;case"vertical":for(var p=function(){return Math.random()>.7},u=0;u<i.length;u++){var x=i[u].name,g=i[u].textSize*t.pix,v=S(x,g,a),m=p(),y=void 0,b=void 0,w=void 0,_=void 0,A=0;while(1){A++;var C=void 0;if(m?(y=te(-t.width/2,t.width/2,5)-v/2,b=te(-t.height/2,t.height/2,5)+g/2,w=[b-5-v+t.width/2,-y-5+t.height/2,b+5+t.width/2,-y+g+5+t.height/2],_=[t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)-5,t.height/2-t.width/2+(b-5-v+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)+g,t.height/2-t.width/2+(b-5-v+t.width/2)+v+5],C=ee(_,i,t.height,t.width)):(y=te(-t.width/2,t.width/2,5)-v/2,b=te(-t.height/2,t.height/2,5)+g/2,w=[y-5+t.width/2,b-5-g+t.height/2,y+v+5+t.width/2,b+5+t.height/2],C=ee(w,i,t.width,t.height)),!C)break;if(1e3==A){w=[-1e3,-1e3,-1e3,-1e3];break}}m?(i[u].area=_,i[u].areav=w):i[u].area=w,i[u].rotate=m}break}return i}function ce(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=le(e,n.type,i)),i.beginPath(),i.setFillStyle(e.background),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;s<o.length;s++){i.save(),o[s].rotate&&i.rotate(90*Math.PI/180);var l=o[s].name,d=o[s].textSize*e.pix,h=S(l,d,i);i.beginPath(),i.setStrokeStyle(o[s].color),i.setFillStyle(o[s].color),i.setFontSize(d),o[s].rotate?o[s].areav[0]>0&&(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+d-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+d-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+d-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+d-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}function de(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),o=(e.height-e.area[0]-e.area[2])/t.length,s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},l=n.activeWidth*e.pix,d=Math.min((e.width-e.area[1]-e.area[3])/2-l,(e.height-e.area[0]-e.area[2])/2-l);if(t=et(t,d,n.type,o,r),i.save(),i.translate(s.x,s.y),n.customColor=A(n.linearType,n.customColor,t,a),"pyramid"==n.type)for(var h=0;h<t.length;h++){if(h==t.length-1){e.tooltip&&e.tooltip.index==h&&(i.beginPath(),i.setFillStyle(f(t[h].color,n.activeOpacity)),i.moveTo(-l,-o),i.lineTo(-t[h].radius-l,0),i.lineTo(t[h].radius+l,0),i.lineTo(l,-o),i.lineTo(-l,-o),i.closePath(),i.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);var p=f(t[h].color,n.fillOpacity);if("custom"==n.linearType){var u=i.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);u.addColorStop(0,f(t[h].color,n.fillOpacity)),u.addColorStop(.5,f(n.customColor[t[h].linearIndex],n.fillOpacity)),u.addColorStop(1,f(t[h].color,n.fillOpacity)),p=u}i.setFillStyle(p),i.moveTo(0,-o),i.lineTo(-t[h].radius,0),i.lineTo(t[h].radius,0),i.lineTo(0,-o),i.closePath(),i.fill(),1==n.border&&i.stroke()}else{e.tooltip&&e.tooltip.index==h&&(i.beginPath(),i.setFillStyle(f(t[h].color,n.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[h].radius-l,0),i.lineTo(-t[h+1].radius-l,-o),i.lineTo(t[h+1].radius+l,-o),i.lineTo(t[h].radius+l,0),i.lineTo(0,0),i.closePath(),i.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);p=f(t[h].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);u.addColorStop(0,f(t[h].color,n.fillOpacity)),u.addColorStop(.5,f(n.customColor[t[h].linearIndex],n.fillOpacity)),u.addColorStop(1,f(t[h].color,n.fillOpacity)),p=u}i.setFillStyle(p),i.moveTo(0,0),i.lineTo(-t[h].radius,0),i.lineTo(-t[h+1].radius,-o),i.lineTo(t[h+1].radius,-o),i.lineTo(t[h].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}i.translate(0,-o)}else for(var x=0;x<t.length;x++){if(0==x){e.tooltip&&e.tooltip.index==x&&(i.beginPath(),i.setFillStyle(f(t[x].color,n.activeOpacity)),i.moveTo(-l,0),i.lineTo(-t[x].radius-l,-o),i.lineTo(t[x].radius+l,-o),i.lineTo(l,0),i.lineTo(-l,0),i.closePath(),i.fill()),t[x].funnelArea=[s.x-t[x].radius,s.y-o,s.x+t[x].radius,s.y],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);p=f(t[x].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[x].radius,-o,-t[x].radius,-o);u.addColorStop(0,f(t[x].color,n.fillOpacity)),u.addColorStop(.5,f(n.customColor[t[x].linearIndex],n.fillOpacity)),u.addColorStop(1,f(t[x].color,n.fillOpacity)),p=u}i.setFillStyle(p),i.moveTo(0,0),i.lineTo(-t[x].radius,-o),i.lineTo(t[x].radius,-o),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}else{e.tooltip&&e.tooltip.index==x&&(i.beginPath(),i.setFillStyle(f(t[x].color,n.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[x-1].radius-l,0),i.lineTo(-t[x].radius-l,-o),i.lineTo(t[x].radius+l,-o),i.lineTo(t[x-1].radius+l,0),i.lineTo(0,0),i.closePath(),i.fill()),t[x].funnelArea=[s.x-t[x].radius,s.y-o*(x+1),s.x+t[x].radius,s.y-o*x],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);p=f(t[x].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[x].radius,-o,-t[x].radius,-o);u.addColorStop(0,f(t[x].color,n.fillOpacity)),u.addColorStop(.5,f(n.customColor[t[x].linearIndex],n.fillOpacity)),u.addColorStop(1,f(t[x].color,n.fillOpacity)),p=u}i.setFillStyle(p),i.moveTo(0,0),i.lineTo(-t[x-1].radius,0),i.lineTo(-t[x].radius,-o),i.lineTo(t[x].radius,-o),i.lineTo(t[x-1].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}i.translate(0,-o)}return i.restore(),!1!==e.dataLabel&&1===r&&he(t,e,i,o,n.labelAlign,l,s),{center:s,radius:d,series:t}}function he(t,e,a,i,r,n,o){for(var s=0;s<t.length;s++){var l=t[s],c=void 0,h=void 0,f=void 0,p=void 0,u=l.formatter?l.formatter(l,s,t):d.toFixed(100*l._proportion_)+"%";"right"==r?(c="pyramid"===e.extra.funnel.type?s==t.length-1?(l.funnelArea[2]+o.x)/2:(l.funnelArea[2]+t[s+1].funnelArea[2])/2:0==s?(l.funnelArea[2]+o.x)/2:(l.funnelArea[2]+t[s-1].funnelArea[2])/2,h=c+2*n,f=l.funnelArea[1]+i/2,p=l.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(l.color),a.setFillStyle(l.color),a.beginPath(),a.moveTo(c,f),a.lineTo(h,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,f),a.arc(h,f,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(p),a.setFillStyle(l.textColor||e.fontColor),a.fillText(u,h+5,f+p/2-2),a.closePath(),a.stroke(),a.closePath()):(c="pyramid"===e.extra.funnel.type?s==t.length-1?(l.funnelArea[0]+o.x)/2:(l.funnelArea[0]+t[s+1].funnelArea[0])/2:0==s?(l.funnelArea[0]+o.x)/2:(l.funnelArea[0]+t[s-1].funnelArea[0])/2,h=c-2*n,f=l.funnelArea[1]+i/2,p=l.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(l.color),a.setFillStyle(l.color),a.beginPath(),a.moveTo(c,f),a.lineTo(h,f),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,f),a.arc(h,f,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(p),a.setFillStyle(l.textColor||e.fontColor),a.fillText(u,h-5-S(u,p,a),f+p/2-2),a.closePath(),a.stroke(),a.closePath())}}function fe(t,e){e.draw()}var pe={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function ue(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=17;function a(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var i=a(),r=null,n=function(a){if(null===a||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===r&&(r=a),a-r<t.duration){var o=(a-r)/t.duration,s=pe[t.timing];o=s(o),t.onProcess&&t.onProcess(o),i(n,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};n=n.bind(this),i(n,e)}function xe(t,e,a,i){var r=this,n=e.series;"pie"!==t&&"ring"!==t&&"rose"!==t&&"funnel"!==t||(n=w(n,e,a));var o=e.categories;n=_(n,e,a);var s=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var l=null;if("candle"==t){var d=c({},e.extra.candle.average);d.show?(l=u(d.day,d.name,d.color,n[0].data),l=_(l,e,a),e.seriesMA=l):l=e.seriesMA?e.seriesMA=_(e.seriesMA,e,a):n}else l=n;e._series_=n=E(n),e.area=new Array(4);for(var h=0;h<4;h++)e.area[h]=e.padding[h]*e.pix;var f=J(l,e,a,e.chartData,i),p=f.area.wholeHeight,x=f.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=p;break;case"bottom":e.area[2]+=p;break;case"left":e.area[3]+=x;break;case"right":e.area[1]+=x;break}var g={},v=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(g=yt(n,e,a,i),v=g.yAxisWidth,e.yAxis.showTitle){for(var m=0,y=0;y<e.yAxis.data.length;y++)m=Math.max(m,e.yAxis.data[y].titleFontSize?e.yAxis.data[y].titleFontSize*e.pix:a.fontSize);e.area[0]+=m}for(var b=0,A=0,C=0;C<v.length;C++)"left"==v[C].position?(e.area[3]+=A>0?v[C].width+e.yAxis.padding*e.pix:v[C].width,A+=1):"right"==v[C].position&&(e.area[1]+=b>0?v[C].width+e.yAxis.padding*e.pix:v[C].width,b+=1)}else a.yAxisWidth=v;if(e.chartData.yAxisData=g,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=ft(e.categories,e,a);var S=Q(e.categories,e,a,e.chartData.xAxisData.eachSpacing,i),T=S.xAxisHeight,k=S.angle;a.xAxisHeight=T,a._xAxisTextAngle_=k,e.area[2]+=T,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Z(n,e,a,i),o=e.chartData.xAxisData.rangesFormat;var P=Q(o,e,a,e.chartData.xAxisData.eachSpacing,i),M=P.xAxisHeight,D=P.angle;a.xAxisHeight=M,a._xAxisTextAngle_=D,e.area[2]+=M,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var F=0,L=e.chartData.xAxisData.xAxisPoints,O=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,B=e.chartData.xAxisData.eachSpacing,z=B*(L.length-1),$=I-O;F=$-z,r.scrollOption={currentOffset:F,startTouchX:F,distance:0,lastMoveTime:0},e._scrollDistance_=F}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:ot(l,a,i,e)),t){case"word":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),ce(n,e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),se(n,e,a,i);break;case"funnel":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.funnelData=de(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Gt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Rt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Nt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=jt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Bt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Ht(o,e,a,i);var r=zt(n,e,a,i,t),s=r.yAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.yAxisPoints=s,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Wt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.pieData=Jt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.pieData=Qt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.radarData=Kt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.arcbarData=Vt(n,e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.gaugeData=Zt(o,n,e,a,i,t),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=$t(n,l,e,a,i,t),s=r.xAxisPoints,c=r.calPoints,d=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=d,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(l||e.series,e,a,i,e.chartData),Yt(e,a,i,t,d,s),fe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function ge(){this.events={}}ue.prototype.stop=function(){this.isStop=!0},ge.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},ge.prototype.delEventListener=function(t){this.events[t]=[]},ge.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var i=e[0],r=e.slice(1);this.events[i]&&this.events[i].forEach((function(t){try{t.apply(null,r)}catch(e){}}))};var ve=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:l.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=c({},t.title),t.subtitle=c({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=c({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=c({},{rotateLabel:!1,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=c({},{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:t.fontColor,formatter:{},hiddenColor:"#CECECE"},t.legend),t.extra=c({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(l));if(e.color=t.color?t.color:e.color,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"ring"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.ring.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pix||e.pieChartLinePadding*t.pix),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pix,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:l.yAxisSplit,e.rotate=t.rotate,t.rotate){var a=t.width,i=t.height;t.width=i,t.height=a}if(t.padding=t.padding?t.padding:e.padding,e.yAxisWidth=l.yAxisWidth*t.pix,e.xAxisHeight=l.xAxisHeight*t.pix,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pix),e.xAxisLineHeight=l.xAxisLineHeight*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=l.titleFontSize*t.pix,e.subtitleFontSize=l.subtitleFontSize*t.pix,e.toolTipPadding=l.toolTipPadding*t.pix,e.toolTipLineHeight=l.toolTipLineHeight*t.pix,e.columePadding=l.columePadding*t.pix,!t.context)throw new Error("[uCharts] \u672a\u83b7\u53d6\u5230context\uff01\u6ce8\u610f\uff1av2.0\u7248\u672c\u540e\uff0c\u9700\u8981\u81ea\u884c\u83b7\u53d6canvas\u7684\u7ed8\u56fe\u4e0a\u4e0b\u6587\u5e76\u4f20\u5165opts.context\uff01");this.context=t.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.setTextAlign=function(t){return this.textAlign=t},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new ge,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,xe.call(this,t.type,t,e,this.context)};ve.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=c({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=yt(this.opts.series,this.opts,this.config,this.context),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,n=ft(this.opts.categories,this.opts,this.config),o=n.xAxisPoints,s=n.startX,l=n.endX,d=n.eachSpacing,h=d*(o.length-1),f=l-s;r=f-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}xe.call(this,this.opts.type,this.opts,this.config,this.context)},ve.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var i=yt(this.opts.series,this.opts,this.config,this.context),r=i.yAxisWidth;this.config.yAxisWidth=r;var n=0,o=ft(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,d=o.eachSpacing,h=d*a,f=c-l,p=f-d*(s.length-1);n=f/2-h,n>0&&(n=0),n<p&&(n=p),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,xe.call(this,this.opts.type,this.opts,this.config,this.context)}else t("log","[uCharts] \u8bf7\u542f\u7528\u6eda\u52a8\u6761\u540e\u4f7f\u7528"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6386")},ve.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},ve.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},ve.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},ve.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=P(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?X({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?H({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?N({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?G({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?Y({x:a.x,y:a.y},this.opts):"word"===this.opts.type?j({x:a.x,y:a.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?z({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):B({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},ve.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=P(e,this.opts,t);return $({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},ve.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){P(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&("candle"==this.opts.type?this.opts.seriesMA[i].show=!this.opts.seriesMA[i].show:this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,xe.call(this,this.opts.type,this.opts,this.config,this.context))}},ve.prototype.showToolTip=function(e){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t("log","[uCharts] \u672a\u83b7\u53d6\u5230event\u5750\u6807\u4fe1\u606f"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6540");var n=P(r,this.opts,e),o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){var h=M(this.opts.series,d,l.group);if(0!==h.length){var f=L(h,this.opts,d,l.group,this.opts.categories,i),p=f.textList,u=f.offset;u.y=n.y,s.tooltip={textList:void 0!==i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("bar"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){h=M(this.opts.series,d,l.group);if(0!==h.length){f=L(h,this.opts,d,l.group,this.opts.categories,i),p=f.textList,u=f.offset;u.x=n.x,s.tooltip={textList:void 0!==i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1}),h=M(this.opts.series,d);if(0!==h.length){var x=O(h,this.opts,d,this.opts.categories,i);p=x.textList,u=x.offset;u.y=n.y,s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1}),h=M(this.opts.series,d);if(0!==h.length){f=I(this.opts.series[0].data,h,this.opts,d,this.opts.categories,this.opts.extra.candle,i),p=f.textList,u=f.offset;u.y=n.y,s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},s._series_[d]),p=[{text:i.formatter?i.formatter(h,void 0,d,s):h.name+": "+h.data,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}xe.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]);h.name=h.properties.name;p=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,xe.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]),p=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,xe.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=M(this.opts.series,d);if(0!==h.length){p=h.map((function(t){return{text:i.formatter?i.formatter(t,a.opts.categories[d],d,a.opts):t.name+": "+t.data,color:t.color}})),u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:p,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}},ve.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=c({},this.opts,{_scrollDistance_:t,animation:!1});xe.call(this,this.opts.type,e,this.config,this.context)},ve.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=P(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},ve.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=a;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var n,o=P(r,this.opts,t);n=o.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,l=x(this,s+n,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=n=l-s;var d=c({},this.opts,{_scrollDistance_:s+n,animation:!1});return this.opts=d,xe.call(this,d.type,d,this.config,this.context),s+n}}},ve.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}};var me=ve;e.default=me}).call(this,a("0de9")["default"])},b59e:function(t,e,a){"use strict";a.r(e);var i=a("97ff"),r=a("3836");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("bafa");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe25cc46",null,!1,i["a"],o);e["default"]=l.exports},b72d:function(t,e,a){"use strict";a.r(e);var i=a("1f62"),r=a("1533");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("52ba");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe046e60",null,!1,i["a"],o);e["default"]=l.exports},b8d8:function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):0===t.indexOf("/")?t.substr(1):t)}},ba63:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-38a0d81e]{width:30px;height:30px;position:relative}.container.loading6[data-v-38a0d81e]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading6 .shape[data-v-38a0d81e]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-38a0d81e]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-38a0d81e]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-38a0d81e]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-38a0d81e]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-38a0d81e]{bottom:0;right:0;background-color:#e66}.loading6 .shape1[data-v-38a0d81e]{-webkit-animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}@keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}.loading6 .shape2[data-v-38a0d81e]{-webkit-animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}@keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}.loading6 .shape3[data-v-38a0d81e]{-webkit-animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}@keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}.loading6 .shape4[data-v-38a0d81e]{-webkit-animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}@keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}",""]),t.exports=e},baba:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nbody,\r\nhtml{-webkit-user-select:auto;user-select:auto}\n.uni-nav-menu{height:100vh}\n.pointer{cursor:pointer}.uni-top-window{z-index:998;overflow:visible}.uni-tips{font-size:12px;color:#666}.uni-container{padding:15px;box-sizing:border-box}.uni-header{padding:0 15px;display:flex;height:55px;align-items:center;justify-content:space-between;border-bottom:1px #f5f5f5 solid}.uni-title{margin-right:10px;font-size:16px;font-weight:500;color:#333}.uni-sub-title{margin-top:3px;font-size:14px;color:#999}.uni-link{color:#3a8ee6;cursor:pointer;text-decoration:underline}.uni-group{display:flex;align-items:center;justify-content:center;word-break:keep-all}.uni-button-group{margin-top:30px;display:flex;align-items:center;justify-content:center}.uni-button{padding:10px 20px;font-size:14px;border-radius:4px;line-height:1;margin:0;box-sizing:border-box;overflow:initial}.uni-button+.uni-button{margin-left:10px}.uni-button:hover,\r\n.uni-button:focus{opacity:.9}.uni-button:active{opacity:1}.uni-button-full{width:100%}.uni-search{height:30px;line-height:30px;font-size:12px;padding:0 10px;border:1px #eee solid;margin-right:10px;border-radius:5px}.uni-pagination-box{display:flex;justify-content:center;margin-top:20px}.uni-input-border,\r\n.uni-textarea-border{width:100%;font-size:14px;color:#666;border:1px #e5e5e5 solid;border-radius:5px;box-sizing:border-box}.uni-input-border{padding:0 10px;height:35px}.uni-textarea-border{padding:10px;height:80px}.uni-disabled{background-color:#f5f7fa;color:#c0c4cc}.uni-icon-password-eye{position:absolute;right:8px;top:6px;font-family:uniicons;font-size:20px;font-weight:400;font-style:normal;width:24px;height:24px;line-height:24px;color:#999}.uni-eye-active{color:#007aff}.uni-tabs__header{position:relative;background-color:#f5f7fa;border-bottom:1px solid #e4e7ed}.uni-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.uni-tabs__nav-scroll{overflow:hidden}.uni-tabs__nav{position:relative;white-space:nowrap}.uni-tabs__item{position:relative;padding:0 20px;height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#909399;margin-top:-1px;margin-left:-1px;border:1px solid transparent;cursor:pointer}.uni-tabs__item.is-active{color:#007aff;background-color:#fff;border-right-color:#dcdfe6;border-left-color:#dcdfe6}.uni-form-item-tips{color:#999;font-size:12px;margin-top:3px;position:absolute}.uni-form-item-empty{color:#999;min-height:36px;line-height:36px}",""]),t.exports=e},bafa:function(t,e,a){"use strict";var i=a("2b2c"),r=a.n(i);r.a},bafd:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("v-uni-text",{staticClass:t._$g(2,"sc"),class:t._$g(2,"c"),attrs:{_i:2}},[t._v(t._$g(2,"t0-0"))])],1),t._$g(3,"i")?a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._t("default",[a("v-uni-text",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._v(t._$g(5,"t0-0"))])],{_i:4})],2):a("v-uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._t("default",[a("v-uni-input",{staticClass:t._$g(8,"sc"),attrs:{type:"text",placeholder:t._$g(8,"a-placeholder"),focus:t._$g(8,"a-focus"),_i:8},model:{value:t._$g(8,"v-model"),callback:function(e){t.$handleVModelEvent(8,e)},expression:"val"}})],{_i:7})],2),a("v-uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[a("v-uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-text",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[t._v(t._$g(11,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-text",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))])],1)],1)],1)},n=[]},bb88:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniTransition",props:["show","modeClass","duration","styles","customClass"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},bdfc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopup",props:["animation","type","isMaskClick","maskClick","backgroundColor","safeArea","maskBackgroundColor"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},befa:function(t,e,a){"use strict";var i=a("69ae"),r=a.n(i);r.a},bfc6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading1",data:function(){return{wxsProps:{}}},components:{}};e.default=i},c03d:function(t,e,a){"use strict";a.r(e);var i=a("70d1"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},c4eb:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={uniTransition:a("9e6c").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("v-uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),attrs:{_i:0},on:{touchmove:function(e){return t.$handleViewEvent(e,{stop:!0,prevent:!0})}}},[a("v-uni-view",{attrs:{_i:1},on:{touchstart:function(e){return t.$handleViewEvent(e)}}},[t._$g(2,"i")?a("uni-transition",{key:"1",attrs:{_i:2},on:{click:function(e){return t.$handleViewEvent(e)}}}):t._e(),a("uni-transition",{key:"2",attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-view",{staticClass:t._$g(4,"sc"),class:t._$g(4,"c"),style:t._$g(4,"s"),attrs:{_i:4},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:5})],2)],1)],1)],1):t._e()},n=[]},c6b4:function(t,e,a){"use strict";a.r(e);var i=a("3fb3"),r=a("965e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("f538");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=l.exports},c6e8:function(t,e){t.exports="/static/right.png"},c8ac:function(t,e,a){"use strict";a.r(e);var i=a("223c"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},c971:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-e14678f8]{width:30px;height:30px;position:relative}.container.loading2[data-v-e14678f8]{-webkit-transform:rotate(10deg);transform:rotate(10deg)}.container.loading2 .shape[data-v-e14678f8]{border-radius:5px}.container.loading2[data-v-e14678f8]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container .shape[data-v-e14678f8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-e14678f8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-e14678f8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-e14678f8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-e14678f8]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-e14678f8]{-webkit-animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}@keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}.loading2 .shape2[data-v-e14678f8]{-webkit-animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}@keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}.loading2 .shape3[data-v-e14678f8]{-webkit-animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}@keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}.loading2 .shape4[data-v-e14678f8]{-webkit-animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}@keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}",""]),t.exports=e},d44b:function(t,e,a){"use strict";a.r(e);var i=a("c4eb"),r=a("095e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("37d3");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe8e381e",null,!1,i["a"],o);e["default"]=l.exports},d868:function(t,e,a){"use strict";a.r(e);var i=a("bb88"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},dbb8:function(t,e,a){"use strict";function i(){function t(t){var e=a("c03d");e.__inject__&&e.__inject__(t)}"function"===typeof t&&t(),UniViewJSBridge.publishHandler("webviewReady")}a("4eca"),"undefined"!==typeof plus?i():document.addEventListener("plusready",i)},dbcc:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("v-uni-view",{ref:"ani",class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{animation:t._$g(0,"a-animation"),_i:0},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:1})],2):t._e()},n=[]},de4d:function(t,e,a){"use strict";a.r(e);var i=a("9264"),r=a("0d3e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("befa");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"3b8cb2d8",null,!1,i["a"],o);e["default"]=l.exports},e891:function(t,e,a){"use strict";a.r(e);var i=a("4bda"),r=a("2c81");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("648d");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"e14678f8",null,!1,i["a"],o);e["default"]=l.exports},eaa4:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-fe25cc46]{width:30px;height:30px;position:relative}.container.loading3[data-v-fe25cc46]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading3 .shape1[data-v-fe25cc46]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-fe25cc46]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-fe25cc46]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-fe25cc46]{border-bottom-right-radius:10px}.container .shape[data-v-fe25cc46]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-fe25cc46]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-fe25cc46]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-fe25cc46]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-fe25cc46]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-fe25cc46]{-webkit-animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}@keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}.loading3 .shape2[data-v-fe25cc46]{-webkit-animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}@keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}.loading3 .shape3[data-v-fe25cc46]{-webkit-animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}@keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}.loading3 .shape4[data-v-fe25cc46]{-webkit-animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}@keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}",""]),t.exports=e},f0c5:function(t,e,a){"use strict";function i(t,e,a,i,r,n,o,s,l,c){var d,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var f=Object.prototype.hasOwnProperty;for(var p in l)f.call(l,p)&&!f.call(h.components,p)&&(h.components[p]=l[p])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(h.mixins||(h.mixins=[])).push(c)),e&&(h.render=e,h.staticRenderFns=a,h._compiled=!0),i&&(h.functional=!0),n&&(h._scopeId="data-v-"+n),o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=d):r&&(d=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),d)if(h.functional){h._injectStyles=d;var u=h.render;h.render=function(t,e){return d.call(e),u(t,e)}}else{var x=h.beforeCreate;h.beforeCreate=x?[].concat(x,d):[d]}return{exports:t,options:h}}a.d(e,"a",(function(){return i}))},f27d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var a in t){0==a&&(e+=t[a].axisValueLabel+"\u5e74\u9500\u552e\u989d");var i="--";null!==t[a].data&&(i=t[a].data),e+="<br/>"+t[a].marker+t[a].seriesName+"\uff1a"+i+" \u4e07\u5143"}return e},legendFormat:function(t){return"\u81ea\u5b9a\u4e49\u56fe\u4f8b+"+t},yAxisFormatDemo:function(t,e){return t+"\u5143"},seriesFormatDemo:function(t){return t.name+"\u5e74"+t.value+"\u5143"}},demotype:{color:i},column:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{top:"left",textStyle:{color:"#cccccc"}},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!1,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!1,color:"#666666",position:"top"}}},area:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left",textStyle:{color:"#cccccc"}},seriesTemplate:{name:"",type:"pie",data:[],radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!1,color:"#FFF",position:"top"},labelLine:{show:!0}}},rose:{color:i,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:i,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:i,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"\u4e1a\u52a1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5b8c\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:i,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},n=r;e.default=n},f49d:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={qiunLoading:a("973e").default,qiunError:a("b72d").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{id:t._$g(0,"a-id"),_i:0}},[t._$g(1,"i")?a("v-uni-view",{attrs:{_i:1}},[a("qiun-loading",{attrs:{_i:2}})],1):t._e(),t._$g(3,"i")?a("v-uni-view",{attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("qiun-error",{attrs:{_i:4}})],1):t._e(),t._$g(5,"i")?[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t._$g(6,"v-show"),expression:"_$g(6,'v-show')"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},staticStyle:{width:"100%",height:"100%"},style:t._$g(6,"s"),attrs:{"data-directory":t._$g(6,"a-data-directory"),id:t._$g(6,"a-id"),prop:t._$gc(6,"change:echartsOpts"),"change:prop":t.rdcharts.ecinit,resize:t._$gc(6,"change:echartsResize"),"change:resize":t.rdcharts.ecresize,_i:6}})]:[a("v-uni-view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:t._$g(8,"a-id"),prop:t._$gc(8,"change:uchartsOpts"),"change:prop":t.rdcharts.ucinit,_i:8},on:{mousemove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseMove(e,t.$getComponentDescriptor())},mousedown:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseDown(e,t.$getComponentDescriptor())},mouseup:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseUp(e,t.$getComponentDescriptor())},touchstart:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchStart(e,t.$getComponentDescriptor())},touchmove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchMove(e,t.$getComponentDescriptor())},touchend:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchEnd(e,t.$getComponentDescriptor())},click:function(e){e=t.$handleWxsEvent(e),t.rdcharts.tap(e,t.$getComponentDescriptor())}}},[a("v-uni-canvas",{directives:[{name:"show",rawName:"v-show",value:t._$g(9,"v-show"),expression:"_$g(9,'v-show')"}],style:t._$g(9,"s"),attrs:{id:t._$g(9,"a-id"),canvasId:t._$g(9,"a-canvasId"),"disable-scroll":t._$g(9,"a-disable-scroll"),_i:9},on:{error:function(e){return t.$handleViewEvent(e)}}})],1)]],2)},n=[]},f538:function(t,e,a){"use strict";var i=a("9fb2"),r=a.n(i);r.a},fed7:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.uni-popup-dialog[data-v-f0f7e4d2]{width:300px;border-radius:11px;background-color:#fff}.uni-dialog-title[data-v-f0f7e4d2]{display:flex;flex-direction:row;justify-content:center;padding-top:25px}.uni-dialog-title-text[data-v-f0f7e4d2]{font-size:16px;font-weight:500}.uni-dialog-content[data-v-f0f7e4d2]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:20px}.uni-dialog-content-text[data-v-f0f7e4d2]{font-size:14px;color:#6c6c6c}.uni-dialog-button-group[data-v-f0f7e4d2]{display:flex;flex-direction:row;border-top-color:#f5f5f5;border-top-style:solid;border-top-width:1px}.uni-dialog-button[data-v-f0f7e4d2]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:45px}.uni-border-left[data-v-f0f7e4d2]{border-left-color:#f0f0f0;border-left-style:solid;border-left-width:1px}.uni-dialog-button-text[data-v-f0f7e4d2]{font-size:16px;color:#333}.uni-button-color[data-v-f0f7e4d2]{color:#007aff}.uni-dialog-input[data-v-f0f7e4d2]{flex:1;font-size:14px;border:1px #eee solid;height:40px;padding:0 10px;border-radius:5px;color:#555}.uni-popup__success[data-v-f0f7e4d2]{color:#4cd964}.uni-popup__warn[data-v-f0f7e4d2]{color:#f0ad4e}.uni-popup__error[data-v-f0f7e4d2]{color:#dd524d}.uni-popup__info[data-v-f0f7e4d2]{color:#909399}',""]),t.exports=e}});
(function(t){var e={};function a(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.m=t,a.c=e,a.d=function(t,e,i){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(i,r,function(e){return t[e]}.bind(null,r));return i},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="./",a(a.s="dbb8")})({"01cc":function(t,e,a){"use strict";a.r(e);var i=a("4b05"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"04b5":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading2",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"095e":function(t,e,a){"use strict";a.r(e);var i=a("bdfc"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"0d3e":function(t,e,a){"use strict";a.r(e);var i=a("bfc6"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"0da7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading3",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"0de9":function(t,e,a){"use strict";function i(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function r(){return"string"===typeof __channelId__&&__channelId__}function n(t,e){switch(i(e)){case"Function":return"function() { [native code] }";default:return e}}function o(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];console[t].apply(console,a)}function s(){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];var o=e.shift();if(r())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var s=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t,n)+"---END:JSON---"}catch(r){t=e}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var a=i(t).toUpperCase();t="NUMBER"===a||"BOOLEAN"===a?"---BEGIN:"+a+"---"+t+"---END:"+a+"---":String(t)}return t})),l="";if(s.length>1){var c=s.pop();l=s.join("---COMMA---"),0===c.indexOf(" at ")?l+=c:l+="---COMMA---"+c}else l=s[0];console[o](l)}a.r(e),a.d(e,"log",(function(){return o})),a.d(e,"default",(function(){return s}))},1195:function(t,e,a){var i=a("24fb"),r=a("b8d8"),n=a("4f93"),o=a("c6e8");e=i(!1);var s=r(n),l=r(o);e.push([t.i,".animate{display:inline-block;-webkit-animation:25s wordsLoop linear infinite normal;animation:25s wordsLoop linear infinite normal}@keyframes wordsLoop{0%{transform:translateY(100px);-webkit-transform:translateY(100px)}100%{transform:translateY(-100%);-webkit-transform:translateY(-100%)}}@-webkit-keyframes wordsLoop{0%{transform:translateY(100px);-webkit-transform:translateY(100px)}100%{transform:translateY(-100%);-webkit-transform:translateY(-100%)}}.topUp{-webkit-animation:topUp 1.5s 1;animation:topUp 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes topUp{from{opacity:.5;top:-1080px}to{opacity:1;top:0}}@keyframes topUp{from{opacity:.5;top:-1080px}to{opacity:1;top:0}}.topDown{-webkit-animation:topDown 1.5s 1;animation:topDown 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes topDown{from{opacity:1;top:0}to{opacity:.5;top:-1080px}}@keyframes topDown{from{opacity:1;top:0}to{opacity:.5;top:-1080px}}.floorUp{-webkit-animation:floorUp 1.5s 1;animation:floorUp 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes floorUp{from{opacity:.5;top:0}to{opacity:1;top:1080px}}@keyframes floorUp{from{opacity:.5;top:0}to{opacity:1;top:1080px}}.floorDown{-webkit-animation:floorDown 1.5s 1;animation:floorDown 1.5s 1;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes floorDown{from{opacity:.5;top:1080px}to{opacity:1;top:0}}@keyframes floorDown{from{opacity:.5;top:1080px}to{opacity:1;top:0}}.top-screen{position:fixed;width:1920px;height:1080px;background-image:url("+s+");z-index:999}.floor-screen{width:1920px;height:1080px;position:relative;color:#fff;text-align:center;font-size:200rpx;letter-spacing:5rpx;background-image:url("+s+")}.container{width:1920px;height:1080px;position:relative}.head{width:100%;height:10%;text-align:center;line-height:110px;color:#fff;font-size:40px;font-weight:700;letter-spacing:5px}.head uni-text{-webkit-transform:scaleY(.9);transform:scaleY(.9)}.time-tools{height:5%;position:absolute;top:0;float:right;right:50px;font-size:16px;font-weight:400;line-height:70px;letter-spacing:1px}.button-left{position:absolute;background-image:url("+l+");background-size:100% 100%;top:1.8%;left:21.3%;width:13.5%;height:8.5%;-webkit-transform:scaleX(-1);transform:scaleX(-1)}.button-right{position:absolute;background-image:url("+l+");background-size:100% 100%;top:1.8%;left:65%;width:13.5%;height:8.5%}.main{position:relative;width:100%;height:90%}.main-sides{position:relative;display:inline-block;float:left;width:50%;height:100%}.box{position:relative;margin:3% 2% 0 2%;width:96%;height:30%;border:1px solid #145088;overflow:hidden}.box-lg{height:94%}.box-border{position:absolute;width:10px;height:10px}.box-border1{top:0;left:0;border-left:2px solid #31c4c4;border-top:2px solid #31c4c4}.box-border2{top:0;right:0;border-right:2px solid #31c4c4;border-top:2px solid #31c4c4}.box-border3{bottom:0;left:0;border-bottom:2px solid #31c4c4;border-left:2px solid #31c4c4}.box-border4{bottom:0;right:0;border-right:2px solid #31c4c4;border-bottom:2px solid #31c4c4}.content{display:flex;flex-direction:column;flex:1}.charts-box{width:80%;height:230px;margin-left:10%}.ring{display:inline-block;float:left;width:60%;height:300px;margin-left:-10%}.box-item{width:92%;height:20%;margin-left:4%;padding-top:1em;color:#fff}.introduce{height:30%}.introduce h2{letter-spacing:5px}.english{font-size:14px}.introduce-content{font-size:20px;padding-top:2em;text-indent:2em;line-height:2em}.charge-info{height:45%}.charge-info-item{display:inline-block;width:50%;height:40%}.charge-info-item uni-image{display:inline-block;float:left;height:100%;width:20%}.charge-info-item uni-view{display:inline-block;position:relative;margin-left:10%;width:70%;height:49%}.charge-info-item .count, .charge-info-item .unit{position:absolute;display:inline-block;font-size:32px;bottom:0;padding-left:5%}.charge-info-item .unit{font-size:16px;float:right;right:20%}.footer{position:absolute;border:1px solid #145088;height:15%}.use-info{}.use-left{display:inline-block;width:40%}.use-right{display:inline-block;float:right;width:20%}.use-main{width:100%;height:75%}.use-main .left{display:inline-block;float:left;height:100%;width:70%;line-height:20px}.left .progressBar{margin-top:9%;width:100%;height:20%;background-color:#233751;border-radius:20px}.left .progress{height:100%;background-color:#ff5722;border-radius:20px}.left uni-progress{margin-left:10%;margin-top:10%;display:block}.use-main .right{display:inline-block;float:right;height:100%;width:20%;font-size:40px;color:#ff5722;line-height:130px}.box-tp{height:30%}.box-tp .sub-main{}.box-md{height:43%}.sub-main-right{display:inline-block;height:100%;width:50%}.sub-info{width:100%;height:33%}.sub-info uni-image{display:inline-block;float:left;height:100%;width:15%}.sub-info uni-text{display:inline-block;width:40%;height:100%;text-align:center;line-height:120px;font-size:20px}.box-bt{background-color:#063a7b;border:none;height:15%;color:#fff}.box-bt uni-image{position:absolute;float:right;right:0;top:0;width:20%;height:100%}.box-bt{font-size:36px;line-height:140px;text-indent:5em}.right-item{height:94%}.sub-left{display:inline-block;float:left;width:40%}.sub-right{display:inline-block;float:right;width:20%}.sub-main{position:absolute;width:92%;height:80%;bottom:0}",""]),t.exports=e},1533:function(t,e,a){"use strict";a.r(e);var i=a("869f"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"1c17":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-3b8cb2d8]{width:30px;height:30px;position:relative}.container.loading1[data-v-3b8cb2d8]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.container .shape[data-v-3b8cb2d8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-3b8cb2d8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-3b8cb2d8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-3b8cb2d8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-3b8cb2d8]{bottom:0;right:0;background-color:#e66}.loading1 .shape1[data-v-3b8cb2d8]{-webkit-animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape1-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}@keyframes animation1shape1-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,16px);transform:translate(16px,16px)}}.loading1 .shape2[data-v-3b8cb2d8]{-webkit-animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape2-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}@keyframes animation1shape2-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,16px);transform:translate(-16px,16px)}}.loading1 .shape3[data-v-3b8cb2d8]{-webkit-animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape3-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}@keyframes animation1shape3-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(16px,-16px);transform:translate(16px,-16px)}}.loading1 .shape4[data-v-3b8cb2d8]{-webkit-animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate;animation:animation1shape4-data-v-3b8cb2d8 .5s ease 0s infinite alternate}@-webkit-keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}@keyframes animation1shape4-data-v-3b8cb2d8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-16px,-16px);transform:translate(-16px,-16px)}}",""]),t.exports=e},"1f49":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading5",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"1f62":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[t._v(t._$g(2,"t0-0"))])],1)},n=[]},"223c":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(a("b3df")),r=o(a("400e")),n=o(a("f27d"));function o(t){return t&&t.__esModule?t:{default:t}}var s={},l=null;function c(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];for(var r in a)for(var n in a[r])a[r].hasOwnProperty(n)&&(t[n]=a[r][n]&&"object"===typeof a[r][n]?c(Array.isArray(a[r][n])?[]:{},t[n],a[r][n]):a[r][n]);return t}function d(t,e){for(var a in t)null!==t[a]&&"object"===typeof t[a]?d(t[a],e):"format"===a&&"string"===typeof t[a]&&(t["formatter"]=e[t[a]]?e[t[a]]:void 0);return t}var h={data:function(){return{rid:null}},mounted:function(){var t=this;l={top:0,left:0},setTimeout((function(){null===t.rid&&t.$ownerInstance&&t.$ownerInstance.callMethod("getRenderType")}),200)},destroyed:function(){delete r.default.option[this.rid],delete r.default.instance[this.rid],delete n.default.option[this.rid],delete n.default.instance[this.rid]},methods:{ecinit:function(t,e,a,i){var r=JSON.stringify(t.id);this.rid=r,s[r]=this.$ownerInstance||i;var o=JSON.parse(JSON.stringify(t)),l=o.type;l&&n.default.type.includes(l)?n.default.option[r]=c({},n.default[l],o):n.default.option[r]=c({},o);var d=o.chartData;n.default.option[r].xAxis&&n.default.option[r].xAxis.type&&"category"===n.default.option[r].xAxis.type&&(n.default.option[r].xAxis.data=d.categories),n.default.option[r].yAxis&&n.default.option[r].yAxis.type&&"category"===n.default.option[r].yAxis.type&&(n.default.option[r].yAxis.data=d.categories),n.default.option[r].series=[];for(var h=0;h<d.series.length;h++){n.default.option[r].seriesTemplate=n.default.option[r].seriesTemplate?n.default.option[r].seriesTemplate:{};var p=c({},n.default.option[r].seriesTemplate,d.series[h]);n.default.option[r].series.push(p)}if("object"===typeof window.echarts)this.newEChart();else{var f=document.createElement("script");f.src="./uni_modules/qiun-data-charts/static/app-plus/echarts.min.js",f.onload=this.newEChart,document.head.appendChild(f)}},ecresize:function(t,e,a,i){n.default.instance[this.rid]&&n.default.instance[this.rid].resize()},newEChart:function(){var t=this.rid;void 0===n.default.instance[t]?(n.default.instance[t]=echarts.init(s[t].$el.children[0]),!0===n.default.option[t].ontap&&(n.default.instance[t].on("click",(function(e){var a=JSON.parse(JSON.stringify({x:e.event.offsetX,y:e.event.offsetY}));s[t].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:a,currentIndex:e.dataIndex,value:e.data,seriesName:e.seriesName,id:t}})})),n.default.instance[t].on("highlight",(function(e){s[t].callMethod("emitMsg",{name:"getHighlight",params:{type:"highlight",dataIndex:e.batch[0].dataIndex,id:t}})}))),this.updataEChart(t,n.default.option[t])):this.updataEChart(t,n.default.option[t])},updataEChart:function(t,e){if(e=d(e,n.default.formatter),e.tooltip&&(e.tooltip.show=!!e.tooltipShow,e.tooltip.position=this.tooltipPosition(),"string"===typeof e.tooltipFormat&&n.default.formatter[e.tooltipFormat]&&(e.tooltip.formatter=e.tooltip.formatter?e.tooltip.formatter:n.default.formatter[e.tooltipFormat])),e.series)for(var a in e.series){var i=e.series[a].linearGradient;i&&(e.series[a].color=new echarts.graphic.LinearGradient(i[0],i[1],i[2],i[3],i[4]))}n.default.instance[t].setOption(e,e.notMerge),n.default.instance[t].on("finished",(function(){s[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),n.default.instance[t]&&n.default.instance[t].off("finished")}))},tooltipPosition:function(){return function(t,e,a,i,r){var n=t[0],o=t[1],s=r.viewSize[0],l=r.viewSize[1],c=r.contentSize[0],d=r.contentSize[1],h=n+30,p=o+30;return h+c>s&&(h=n-c-30),p+d>l&&(p=o-d-30),[h,p]}},ucinit:function(t,e,a,i){var n=this;if(JSON.stringify(t)!=JSON.stringify(e)&&t.canvasId){var o=JSON.parse(JSON.stringify(t.canvasId));this.rid=o,s[o]=this.$ownerInstance||i,r.default.option[o]=JSON.parse(JSON.stringify(t)),r.default.option[o]=d(r.default.option[o],r.default.formatter);var l=document.getElementById(o);l&&l.children[0]&&(r.default.option[o].context=l.children[0].getContext("2d"),r.default.instance[o]&&r.default.option[o]&&!0===r.default.option[o].update?this.updataUChart():setTimeout((function(){r.default.option[o].context.restore(),r.default.option[o].context.save(),n.newUChart()}),100))}},newUChart:function(){var t=this.rid;r.default.instance[t]=new i.default(r.default.option[t]),r.default.instance[t].addEventListener("renderComplete",(function(){s[t].callMethod("emitMsg",{name:"complete",params:{type:"complete",complete:!0,id:t}}),r.default.instance[t].delEventListener("renderComplete")})),r.default.instance[t].addEventListener("scrollLeft",(function(){s[t].callMethod("emitMsg",{name:"scrollLeft",params:{type:"scrollLeft",scrollLeft:!0,id:t}})})),r.default.instance[t].addEventListener("scrollRight",(function(){s[t].callMethod("emitMsg",{name:"scrollRight",params:{type:"scrollRight",scrollRight:!0,id:t}})}))},updataUChart:function(){var t=this.rid;r.default.instance[t].updateData(r.default.option[t])},tooltipDefault:function(t,e,a,i){if(e){var r=t.data;return"object"===typeof t.data&&(r=t.data.value),e+" "+t.name+":"+r}return t.properties&&t.properties.name?t.properties.name:t.name+":"+t.data},showTooltip:function(t,e){var a=this,i=r.default.option[e].tooltipCustom;if(i&&void 0!==i&&null!==i){var n=void 0;i.x>=0&&i.y>=0&&(n={x:i.x,y:i.y+10}),r.default.instance[e].showToolTip(t,{index:i.index,offset:n,textList:i.textList,formatter:function(t,i,n,o){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,n,o):a.tooltipDefault(t,i,n,o)}})}else r.default.instance[e].showToolTip(t,{formatter:function(t,i,n,o){return"string"===typeof r.default.option[e].tooltipFormat&&r.default.formatter[r.default.option[e].tooltipFormat]?r.default.formatter[r.default.option[e].tooltipFormat](t,i,n,o):a.tooltipDefault(t,i,n,o)}})},tap:function(t){var e=this.rid,a=r.default.option[e].ontap,i=r.default.option[e].tooltipShow,n=r.default.option[e].tapLegend;if(0!=a){var o=null,c=null,d=document.getElementById("UC"+e).getBoundingClientRect(),h={};h=t.detail.x?{x:t.detail.x-d.left,y:t.detail.y-d.top+l.top}:{x:t.clientX-d.left,y:t.clientY-d.top+l.top},t.changedTouches=[],t.changedTouches.unshift(h),o=r.default.instance[e].getCurrentDataIndex(t),c=r.default.instance[e].getLegendDataIndex(t),!0===n&&r.default.instance[e].touchLegend(t),1==i&&this.showTooltip(t,e),s[e].callMethod("emitMsg",{name:"getIndex",params:{type:"getIndex",event:h,currentIndex:o,legendIndex:c,id:e,opts:r.default.instance[e].opts}})}},touchStart:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(r.default.instance[e].scrollStart(t),s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"touchStart",event:t.changedTouches[0],id:e}}))},touchMove:function(t){var e=this.rid,a=r.default.option[e].ontouch;if(0!=a&&(r.default.instance[e].scroll(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"touchMove",event:t.changedTouches[0],id:e}}),!0===r.default.option[e].ontap&&!1===r.default.option[e].enableScroll&&!0===r.default.option[e].onmovetip)){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={x:t.changedTouches[0].clientX-i.left,y:t.changedTouches[0].clientY-i.top+l.top};t.changedTouches=[],t.changedTouches.unshift(n),!0===r.default.option[e].tooltipShow&&this.showTooltip(t,e)}},touchEnd:function(t){var e=this.rid,a=r.default.option[e].ontouch;0!=a&&(r.default.instance[e].scrollEnd(t),s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"touchEnd",event:t.changedTouches[0],id:e}}))},mouseDown:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(n),r.default.instance[e].scrollStart(t),r.default.option[e].mousedown=!0,s[e].callMethod("emitMsg",{name:"getTouchStart",params:{type:"mouseDown",event:n,id:e}})}},mouseMove:function(t){var e=this.rid,a=r.default.option[e].onmouse,i=r.default.option[e].tooltipShow;if(0!=a){var n=document.getElementById("UC"+e).getBoundingClientRect(),o={};o={x:t.clientX-n.left,y:t.clientY-n.top+l.top},t.changedTouches=[],t.changedTouches.unshift(o),r.default.option[e].mousedown?(r.default.instance[e].scroll(t),s[e].callMethod("emitMsg",{name:"getTouchMove",params:{type:"mouseMove",event:o,id:e}})):r.default.instance[e]&&1==i&&this.showTooltip(t,e)}},mouseUp:function(t){var e=this.rid,a=r.default.option[e].onmouse;if(0!=a){var i=document.getElementById("UC"+e).getBoundingClientRect(),n={};n={x:t.clientX-i.left,y:t.clientY-i.top+l.top},t.changedTouches=[],t.changedTouches.unshift(n),r.default.instance[e].scrollEnd(t),r.default.option[e].mousedown=!1,s[e].callMethod("emitMsg",{name:"getTouchEnd",params:{type:"mouseUp",event:n,id:e}})}}}};e.default=h},"24fb":function(t,e,a){"use strict";function i(t,e){var a=t[1]||"",i=t[3];if(!i)return a;if(e&&"function"===typeof btoa){var n=r(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[a].concat(o).concat([n]).join("\n")}return[a].join("\n")}function r(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(a," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var a=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(a,"}"):a})).join("")},e.i=function(t,a,i){"string"===typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var n=0;n<this.length;n++){var o=this[n][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&r[l[0]]||(a&&(l[2]?l[2]="".concat(a," and ").concat(l[2]):l[2]=a),e.push(l))}},e}},2662:function(t,e,a){var i=a("6f2f");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7136287c",i,!0,{sourceMap:!1,shadowMode:!1})},"2b2c":function(t,e,a){var i=a("eaa4");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("77bddab0",i,!0,{sourceMap:!1,shadowMode:!1})},"2b52":function(t,e,a){"use strict";a.r(e);var i=a("f49d"),r=a("c8ac");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o=a("3ecb");for(var n in o)"default"!==n&&function(t){a.d(e,t,(function(){return o[t]}))}(n);a("3464");var s=a("f0c5");r["default"].__module="rdcharts";var l=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"06c2910e",null,!1,i["a"],r["default"]);e["default"]=l.exports},"2c16":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.chartsview[data-v-fe046e60]{width:100%;height:100%;display:flex;flex-direction:column;flex:1;justify-content:center;align-items:center}.charts-font[data-v-fe046e60]{font-size:14px;color:#ccc;margin-top:10px}.charts-error[data-v-fe046e60]{width:128px;height:128px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAUz0lEQVR4Xu1de3Bc1X3+zmp3jYVWfkPAgCWwY8zLEglNQCSW0yT9o2SQaDKdNulUykwfM+k09p+J3ImYIPJXi9yZzDSZZiwyaZuZBCwnNG1DMogEmUAAy7xs/MAyNhCMjWWtsK1deU/n23OvtLu6j3Pv3t29d71nxjOSde455/5+3/m9z7kCjRY4BR7eK7fkcmhrasLT37hbTAY+QYADigDHagwFYGhc7gZwHMAUgG4hMPzNe8RoWInTAECAnHl4r+yREt0DXWIbhx3cJ5fHP8TYjntFR4DTBDqUIwBmMrJDCtyPHDoQw0Q8jkeXinCLtECp43Gwh56R22IxTBbu+KFxOTbQJbo9DlW17rYASGdlNySeKl2JADpbkmKiait0mWhoXHZkmzE52CkocmvavvOsbMvl8MhAl+jlQrg2CQzu6BI9NV2Yw+T2AJiVo+DuL2kSeLQ1KfrC8kLcYbkYBv/pbjEWhjUNjUvSpk9KSAicm2tGXxjAaUcbewBkJAm6xeLBp1PJ2os06ttcDl8H0CEEaGnvGegSg2EAQZTW4B0AEntSS2ov0mhgJc5jmwT6IDEWi2E0zNZ2WEFhC4CZjCRxH7GwAfpbkmIkLC9EFQBg20BXeOySsNBGZx2OXkB6Vg5CgAbMZgD7BTDSkhTDOgM3+kSDAr7iANNz8n4hQRdxojUu9kTjVRurtKKAJwBIKZfPZPOuYWFgY6wlgV4hau+GNVjsnQKeAJDOSIp/Wt6lbSKeQG8jSOSdAbV+wisA7FxDSGAqBmwNS5DIiGIucyNwKiGedutTz3/3BgCb4JBJoGqDIJ2VW4REmxRog0S3lGgT/NlfY3RzCgJjQmJSCkxeDuDwBgCb8HAhvQkCIdCbSgQfmSPDmWGDzHsm1UqwjBEUAMbqERCeAEBGz2RknwR2uW0yAZQdL6DR+WEW90syXLmjtW8So0Jg9MoE9tSD4esZANUAAd1M5NAjGOULaaOkAzCKGEaj7Ar7AoBHEGxrSYqdOnxMZ+W3ZA59ZehxnWkC7yMlJkUMIy1x7IyaVPANAAMEHTlgTACO1rYERlqTot+J8nbp58C5VcEBDftnOEpAKAsAgYPAPgNZQbYFP3QeCAybJ/Bg2CVC2QDwCoJUAtudiJKuExCQLoZbPKirAoOHovuIThVByuXii2jE/C9I2TaXBYsfmThyahMtCWy1A4ERbj7rvvRI9aCa3F7pINm3n5XdXgtjFgHAYCQrW4v8bBo6MYFep5cwmEefuSwQpDNSRoq9+osdrqRaGBqXMhfDVi8gWASAdEbuswuyGCKNSLatBygXBHUqAQohMmHESAKrqzSro4TIS2yOq10dVQQAuyKQUoC7BXnIxHQWwwL4ay/qIM/8DHaFJuijv7M99QzaNmAx6hzQFsvhKSmxvakJo7oHUooA4MUA0wHBTDYfQnVUB6bFnLc1JHqiFgPwxPnSzhKjLUn0B+UpsDoqFkOfLvO5HN8AMN5lOJUU2+2IMD0ne0QOtCcq0k7OANe1VGToag7qaBRXeiFFAJjOyBENsV20Jqcgj2FQHgvyJWYvAQfPAJuvAv7198ADm4DMHJBKAmuag5ypemPpGNiVWk2pDcCDDDQCPTU7EOgmjrxMRgA8dgBYmwJOXwBuWgH87m3gz26OLgDy6q9G9RSLvIAymFZUGsaCjJzE7qB1+vvngXRGQebG5QB/P30eaF2iQBHllk8wxdDfGq/eYVLLQJBfEOQNOpk3/Bg86hbA8iAZwt2/a78asX8zsKRJ/fzYQeDttFIHUbcJqi0JnM4FaOX9g2Sw7lgHTgPTs0DHRxTjT5wDtqzTfTr8/aoJArfTwX055P1519q6apGV4v8/XlU6nzv/vo8CvzwK3L0W2LS6Wquo/DzVAoFrMiivyzVSvpUnycIMVAUU///2kgIC9b+pDqq5jirMVXEX0RUAfMkwgoDrMoFQBUbUcoqxVFJsrdQCtAAQZhBUijChGlfiwdSSypx81gaAAQLLA6OhIlaNF2MGqriMm1cFqJoEtlai0lobAIzqZbPYF7RrV2N+BT79L99c8Eh+dzI474RGYSqB9qDyBuaLawMgnZE8Exjau24C56TPAZ8+vsD0594GPrHW50DWjwVuD2gBwDgm/q1AX6VOB/v5YeDWNerlXnsf+MKGYF/ULQvrdTZXAFQioeN1kVHqTxuAgSo2xiWCdk+DVgWuAEjPyt31XqARJYAZa92ZSqq7CMttjgCoh1r9cgkU1ueDuq7PEQDTs/JY0Nm8sBI0gusKxCCMZDIogsyqzJIDiA3YAqCx+yvDs4BHLVsKBFoPEPDLNYbToUCZUsASAFHY/SfTCxWtq5qBK4ziEB2a1VmfsqTAIgBUupLXL/Evshj0NNCaBM7NAr89sTDSp64HOj/id+ToP1eOR7AYAD4qg6tBwufeARhabV8BfPJaFWxZEgeSMWDTmstaApD8vuMCRQAI47Gs37wFrG4GrksBR882mG212VhW3rpEtPvZiL6OhvmZyOszFPm7D6qqX+76L6xfGIH/l7mkVMGNKy773Z8njIyh1081cfHBkJAEfgqZv2kV8Cmj4HP/H4ADZ1RBqNmYbfvEtV7hVX/9/X7HYR4AYUr6PPmmYjSZ/7kblRT47yOK8Uyu8DxA6xXqHADVw2XsARQhuSWBFV7rBeYBoHsyuNJ7582zwBNHgNVLgb+8TTH/8YOq/o+7ffPVCwynpAiC+W+cUfOcnwOuvlIdO4ti86MG5gGQdrkFtFoE2fUykJ4F+u4AknHgx6+pnf/ZduCW1QD9f3oDPA/A5tcFpA3x8ingxXcVuPJ61Dgt27MRuKG1Wm8c6DyevYE8AMJk/f/nq8BNK5VeN10/k8mvnwZ+ZRw1pfjnYdCOq1VZuJd2/Bzwv0cXGL9hpdr1PGNIgMUF8Oe3AquWehk1FH0nUknR6WUleQCENe37vZeUFOi/AyhUDbQL/JwE5q4ngI4YNxBxl7NiZ5kBoCePAb9/R4mBq64EejcGX9DhhTl++sYTaPdya7sCgPoySM1LvujzM8Dzd3cuMNy08ikZeBqYqoE7njv1t28p3c3f/+hapSLs2jszAI1Luo40JMn4j64s7v3PzympQNeSgLtnLfDxiHkYXkvGFAA0r2Yjsf3sPF0km/r/H+9aEP8P8ORPEhh5ecErIPNpGLJxF7/3oWLcfesV80rboQ+UyDf7f3HTYuPx+XeAX00Ct68BPn0D8O8TasyvbgZakrpvEIp+nuyAPACmM/KsW7k3b+N4/ABA5lSq8cIH0/o39f9f3KoYQYab0uDnR4BjZ4Gv3LYAgB+9qiQB+xe2X0+q4kw22hL8V9roTXz3BTXP1z6mVAJzDfxHqUIDNELN02f9hI7/T6v7zSklbml8MfFCXzzoRp1Pv57n/Wj5M/RrJnn2/QG4rlVJIPM4+DfvWVjB9/YpFfFJIzBEZv7iMHAirUT+59qBO2zcu7zuf1ftfrOKtxAUVElBF3cGTTtzPBaNtiaFhRy0nlHoGIDc/a+fUlez0Dq/ZY26kiXoRoCR0G5WvRkoMnf0/xwFXnwPiAFINgE3LAOmLwKnjPEoKejfW7Xj0+q0Mef92seLVQNLvF95H/iTm4CNJfZC0O8e5HheAkJCNwBkHsv++zuDXKq/sSgd/uu1xf47gfnWOR5mVeNe1Qx8adOClW8l+n8woQzDL9682Cik7fDTg8D1KaD3Zn9rrdRTlHA0mmmvLJJOHopERFg8AK+EIgiomo6dAy7OKdXwNx3AiRngRy8DOQl0XgN8Zp19tJDMJZMLRX/pOh7eqwhMNRCmZtpkVreiePEECADLj0SH6WWd1kIgPP6G2sVty4Av36pE/+43gDMX1K6+b8NiEJhGHqXEV263Bwm9AY731Q6gJVF7qnDnT7ynbCS6zDx8QpXJgNi8JPBwmljouoC1f3X7FdDHH30DmMsBG1YosU+m0Vg8exG4pkV5B2begCFg5htIMCf7gDOadsCXbgGusbEjqkkbMp+iv7QR5POG+eUGADL/rWmgSQBzEui4CvjT9cBUBnjikPqbCYJzF4EfGBdNMW5g5xmYBKY3cOgMsGEVcClXTVY7z+WkArxUCIkoFIA6keLXx4DXTiuDb2ubihdkcsCnDZ+fDPzZIRX+pYvJRBPF6GfbVPRQt124FE4AULJZBOe0YwFUAZG9mv2Fd4G9J4tdOEb0fnNCVQxtuQHoug4gCH5yADgxrdjtZPRZeQqvnFISgEmiMDV6ZjbueP0DgBm9PYes9Tizhr84mr98Ol9Qwps66OszZOyF+WS2GSQKiw2gCcD6BkBMABT9DNLY6XFKgicnVWCIuQR6BMwb0Ojz0hhipg3x5dsilR6ubwA0xwGCgDvaLsJHJtPPP/yBKvQg862SQG5gYByArZI5ELc1+Pi7PgCmM5JfuArNRZBuL0uGMkdg5dsXPktwcPfS4PMq9s1xzDAxS9KZlYxQ0wdAlOIAFOPU5Wxm1s6KKfTzqbvLYT7HNWMANCZZixihVp8AYHSPlrxdWpcMMiN8/Pmua1QW0E+LajbQeNf6A4BZ1MGw5z98bDFLybAnDqvYPptOkMcJGBGuB+BraReFRCYU/OPXgVMfWjOW+p4Gn1nu5RbedZMIHOe7L6pevJa+EqlvtzWU9XdPoeCQ1AM6vbCp+0t3P3c96wJZzMHG6l4WdJR7VuCR54ELc6q4xEu0sCymBfiwp2ygbj1AgOvzPBQjcU8dL9bpNPQops1dT7sgCGYxScSxGURa2+rubXh+mWo84KkeICu7IcFbQEPb6Pqx6mdpXBV9HvlgoRiktLS7nJcw9X4ipuIM9CJWXqHSxVFqXkrDRZgOhdgROZsDvv8ScMnMWgiV9uWOXxfACR6qErp8BJpVY7KF2UW3UrUwgEQC51qTQrtiU1UFz8pJIRDqj67MzAGPva5EPsO7zPkHwXyO98NX1IeomE4myFgnQHAxysiQMkPBLIZlsWoEmrYLyHfxdC6g1i/PxfJkD9O/bOWIf/OaGep7Nur8eEwBoNCFpHQw6wb/9s7yDcwq0FDbBVwAQAQ8gULCUVSPn1y4J4BlX+uWqfIv85iXFaHN4g7uaJ4INr84wtLzrAReeFs99Ve3Fx8O/ZfnVd3hXdeqbxOFuXnxAOYBENaLoZwITWnA3ct6APN0L/tTbFOEXxFXP3OnT11UI5HxhY2HPnjYhCqFpeY8+8BWGGnk89/fB9AOYWPRCXMLYW1eDMB5APCHqBaGEAisDWCI+PDZ4ttDSplEYKxfody79uUKKOapI55J4Glg2gIsJqF6IYAIMvZh/2MGQG5bA3ymLXgI0IATAj3ml0G8VmxLieOtS4SnlYXufoByydoUUwdHeUhkdk6dLqbzwCNndO8KG5nO8DGZblYHs2bwJweLgWQGmFgbyDgBG08OXx+AB1K0IAv/3ctHPP1cExO6G0LKBYDu82Q+q4a52ynSWTlUGEFkKpht+ZJiu4L/T8/g8+1Ac6JY/ejObdcvlRSWRWc8vSUlRt3S9mXdEKJzRrDcFwzL86ynZ7qYzW+tAA3Knx5Qhaa0GcotrHQ706f16T6J0ZYk+r3cE1SEuHRGTgDYHBZGVWIdhcz3WhlcuJ7CdDGDUn/crozJcprbDtYCAeDpY5PFAIiYO+iV2Nz15udcyk0Xc+7CqiPeKPLAxvJAoPO5WOOr7KMugTttEBQBoJ7VQCHzGS9wqiX0AiyCwKxBqBYIjPA9v9LuJK0n4gn0ul0XE5m7gr0wpbSveYqmnDF0nw3qWhm3gI4OCHQkyiIA6NwXoEuMsPSjH8/IX2ausiuiIcjawXJtAXOVgYBAYjKVRKedYWj3vYDQJ4cqy8rwjO4GAq502uWGdyfjsvHFkPDw2n4lAoOphHjQaalOIHACkSUAqF/SWUy6BR6iQLt6WaMERlqTot8rCBheTiTQYWcM2h539BKCrBcih/09dEBAvuWAYW5eMh8x9JnXyBu5hS359xQYa4ljp+N51ygUioSdaUGvjyBIJbDdLdpHKV7YxyqxxNyBIwDq0SMImiE1Gk870GOuz+oEGN1E1xPvUTo6ViNm1GpaTyCwC/O7AoChRwnsq9VbNuZ1pIA2CCy9BIk9rgDg9OmMHAbw9QYzQkkBLRAYkcNRAMoIBPYLoE8LAAYI6j5TGEr26i3KUyFo4ZDaANBMReott9ErUAq41RI4TaYNAA4ShWNkgVI2QoPZVRO5vYItAIbGZYcQWJZZiv2DncIoh8x/XCLSN4u6ESSqfw8UAEPjeaOvj1+kBLCuqQmd37hb8Gfz+0Juueio0jGS6/ZTDGq+6CIJMLhPLk+cx9lYDO1k+kPPyBEhMDnQJQbNh1g4ks1iopErqDhe9scT6JnLYBgC91vN5hbrd1vhIgB851nZlsvhWLYZKyj6DWmAgS6xrXCwhlHoRtry/s4a/1QSHWY4l6FcKbCtcNOxT0ygpyUp6KH5apY2gLHrt1AFCIHOWAwdpgoonKURKvZFc9eHuKtjQHcpY/Mle3NoQw7dsgkTfr4VXDq5rRH48F7Zk8uhrakJo1bMNwdqZA1d+empgx3zPQ3iobMnN9Bu3AYIPFDcoWu1mc+lBAIADsQDpshhpGEY+gNDLZgfCADoNSQvqPLkTSuxfuNq7IwJhODTCv4YUYunsjkc3f8+Bo7M4v8KYy5cixmPKVxXaWymnDWXLQGGxiVjAmaCoZy1XPbPSon9O+4VHSYhaIdJid2lhJESUzvu1f80nBNhywYA3cY5oOhI8uqlaLk+hfWXPUc1CHAijSOnL2CGXePAZKHBzd0PgEG50jZR6pZrTGXZpWwA+J248Vw4KNAAQDj4ULNVBA6Abz8ru8Ul9SVyITCVbUY/DRsjxLxLSmhdYSYEHh3oEiMch2rm0iXssqHSxI57xfZKU/ChZ+QjAOb1c6XnM+g3T4NKzRc4AIbGZR8TSeaCYzH0Ua8ZIeY8QzXbSBEAcvlSZyvwBKYPndb10LjkBQ1a4NV8P51u8zTQ6eynT+AA8LOIxjO1o0ADALWjfShmjhwACgNPoaCgsnWOO+VLwrJOq3VEDgCGLrbMjdeK0EEGZqr9DpEDgFXgqdpEK50vlsPUQJf/nHwt1///89bqDjCPWPAAAAAASUVORK5CYII=");background-position:50%}',""]),t.exports=e},"2c81":function(t,e,a){"use strict";a.r(e);var i=a("04b5"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},3464:function(t,e,a){"use strict";var i=a("85db"),r=a.n(i);r.a},3718:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopupDialog",props:["value","placeholder","type","mode","title","content","beforeClose","cancelText","confirmText"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"37d3":function(t,e,a){"use strict";var i=a("2662"),r=a.n(i);r.a},3836:function(t,e,a){"use strict";a.r(e);var i=a("0da7"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"3ecb":function(t,e,a){"use strict";a.r(e);var i=a("55fd"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"400e":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r=function(t,e){var a=new Date;a.setTime(1e3*t);var i=a.getFullYear(),r=a.getMonth()+1;r=r<10?"0"+r:r;var n=a.getDate();n=n<10?"0"+n:n;var o=a.getHours();o=o<10?"0"+o:o;var s=a.getMinutes(),l=a.getSeconds();return s=s<10?"0"+s:s,l=l<10?"0"+l:l,"full"==e?i+"-"+r+"-"+n+" "+o+":"+s+":"+l:"y-m-d"==e?i+"-"+r+"-"+n:"h:m"==e?o+":"+s:"h:m:s"==e?o+":"+s+":"+l:[i,r,n,o,s,l]},n={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["\u997c\u72b6\u56fe","\u5706\u73af\u56fe","\u73ab\u7470\u56fe","\u8bcd\u4e91\u56fe","\u6f0f\u6597\u56fe","\u5730\u56fe","\u5706\u5f27\u8fdb\u5ea6\u6761","\u6298\u7ebf\u56fe","\u67f1\u72b6\u56fe","\u6761\u72b6\u56fe","\u533a\u57df\u56fe","\u96f7\u8fbe\u56fe","\u4eea\u8868\u76d8","K\u7ebf\u56fe","\u6df7\u5408\u56fe","\u65f6\u95f4\u8f74\u6298\u7ebf","\u65f6\u95f4\u8f74\u533a\u57df","\u6563\u70b9\u56fe","\u6c14\u6ce1\u56fe","\u81ea\u5b9a\u4e49\u7c7b\u578b"],categories:["line","column","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(t){return t+"\u5143"},yAxisDemo2:function(t){return t.toFixed(2)},xAxisDemo1:function(t){return t+"\u5e74"},xAxisDemo2:function(t){return r(t,"h:m")},seriesDemo1:function(t){return t+"\u5143"},tooltipDemo1:function(t,e,a,i){return 0==a?"\u968f\u4fbf\u7528"+t.data+"\u5e74":"\u5176\u4ed6\u6211\u6ca1\u6539"+t.data+"\u5929"},pieDemo:function(t,e,a){if(void 0!==e)return a[e].name+"\uff1a"+a[e].data+"\u5143"}},demotype:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:i,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:i,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"\u6536\u76ca\u7387",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:i,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:i,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:i,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:i,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:i,title:{name:"\u767e\u5206\u6bd4",fontSize:25,color:"#00FF00"},subtitle:{name:"\u9ed8\u8ba4\u6807\u9898",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2}}},tline:{type:"line",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2}}},tarea:{type:"area",color:i,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0}}},column:{type:"column",color:i,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},bar:{type:"bar",color:i,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1}}},radar:{type:"radar",color:i,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200}}},gauge:{type:"gauge",color:i,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"\u5b9e\u65f6\u901f\u5ea6",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:i,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:i,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:i,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},o=n;e.default=o},"4b05":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading6",data:function(){return{wxsProps:{}}},components:{}};e.default=i},"4bda":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},"4eca":function(t,e,a){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(a){return e.resolve(t()).then((function(){return a}))}),(function(a){return e.resolve(t()).then((function(){throw a}))}))}),window.__uniConfig={window:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",pageOrientation:"landscape"}},uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(a("c6b4").default)}))},"4f93":function(t,e){t.exports="/static/background.png"},"52ba":function(t,e,a){"use strict";var i=a("af54"),r=a.n(i);r.a},"52bc":function(t,e,a){"use strict";var i=a("8b85"),r=a.n(i);r.a},"53ae":function(t,e,a){"use strict";a.r(e);var i=a("b161"),r=a("01cc");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("a69a");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"38a0d81e",null,!1,i["a"],o);e["default"]=l.exports},"55fd":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"qiun-data-charts",props:["type","canvasId","canvas2d","background","animation","chartData","opts","eopts","loadingType","errorShow","errorReload","errorMessage","inScrollView","reshow","reload","disableScroll","ontap","ontouch","onmouse","onmovetip","echartsH5","echartsApp","tooltipShow","tooltipFormat","tooltipCustom","startDate","endDate","textEnum","groupEnum","pageScrollTop","directory","tapLegend","menus"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"591b":function(t,e,a){"use strict";a.r(e);var i=a("5c84"),r=a("6fe6");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("52bc");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"44c31eef",null,!1,i["a"],o);e["default"]=l.exports},"5bde":function(t,e,a){var i=a("ba63");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("5a5fc0f0",i,!0,{sourceMap:!1,shadowMode:!1})},"5c59":function(t,e,a){var i=a("c971");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("f6b54866",i,!0,{sourceMap:!1,shadowMode:!1})},"5c84":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},6152:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=l(a("de4d")),r=l(a("e891")),n=l(a("b59e")),o=l(a("591b")),s=l(a("53ae"));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"qiun-loading",props:["loadingType"],data:function(){return{wxsProps:{}}},components:{Loading1:i.default,Loading2:r.default,Loading3:n.default,Loading4:o.default,Loading5:s.default}};e.default=c},"648d":function(t,e,a){"use strict";var i=a("5c59"),r=a.n(i);r.a},"69ae":function(t,e,a){var i=a("1c17");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("0f68b9ac",i,!0,{sourceMap:!1,shadowMode:!1})},"6f2f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.uni-popup[data-v-fe8e381e]{position:fixed;z-index:99}.uni-popup.top[data-v-fe8e381e], .uni-popup.left[data-v-fe8e381e], .uni-popup.right[data-v-fe8e381e]{top:0}.uni-popup .uni-popup__wrapper[data-v-fe8e381e]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-fe8e381e], .uni-popup .uni-popup__wrapper.right[data-v-fe8e381e]{padding-top:0;flex:1}.fixforpc-z-index[data-v-fe8e381e]{z-index:999}.fixforpc-top[data-v-fe8e381e]{top:0}',""]),t.exports=e},"6fe6":function(t,e,a){"use strict";a.r(e);var i=a("1f49"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"70d1":function(t,e,a){var i=a("baba");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("5e03bc2e",i,!0,{sourceMap:!1,shadowMode:!1})},"72c8":function(t,e,a){var i=a("fed7");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7a09fefe",i,!0,{sourceMap:!1,shadowMode:!1})},"7f7e":function(t,e,a){"use strict";function i(t,e){for(var a=[],i={},r=0;r<e.length;r++){var n=e[r],o=n[0],s=n[1],l=n[2],c=n[3],d={id:t+":"+r,css:s,media:l,sourceMap:c};i[o]?i[o].parts.push(d):a.push(i[o]={id:o,parts:[d]})}return a}a.r(e),a.d(e,"default",(function(){return u}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var n={},o=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,d=function(){},h=null,p="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function u(t,e,a,r){c=a,h=r||{};var o=i(t,e);return x(o),function(e){for(var a=[],r=0;r<o.length;r++){var s=o[r],l=n[s.id];l.refs--,a.push(l)}e?(o=i(t,e),x(o)):o=[];for(r=0;r<a.length;r++){l=a[r];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete n[l.id]}}}}function x(t){for(var e=0;e<t.length;e++){var a=t[e],i=n[a.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](a.parts[r]);for(;r<a.parts.length;r++)i.parts.push(v(a.parts[r]));i.parts.length>a.parts.length&&(i.parts.length=a.parts.length)}else{var o=[];for(r=0;r<a.parts.length;r++)o.push(v(a.parts[r]));n[a.id]={id:a.id,refs:1,parts:o}}}}function g(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function v(t){var e,a,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(c)return d;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=g()),e=y.bind(null,i,r,!1),a=y.bind(null,i,r,!0)}else i=g(),e=b.bind(null,i),a=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else a()}}var m=function(){var t=[];return function(e,a){return t[e]=a,t.filter(Boolean).join("\n")}}();function y(t,e,a,i){var r=a?"":P(i.css);if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var n=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(n,o[e]):t.appendChild(n)}}function b(t,e){var a=P(e.css),i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(p,e.id),r&&(a+="\n/*# sourceURL="+r.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=a;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var w=/\b([+-]?\d+(\.\d+)?)[r|u]px\b/g,_=/var\(--status-bar-height\)/gi,A=/var\(--window-top\)/gi,C=/var\(--window-bottom\)/gi,S=/var\(--window-left\)/gi,T=/var\(--window-right\)/gi,k=!1;function P(t){if(!uni.canIUse("css.var")){!1===k&&(k=plus.navigator.getStatusbarHeight());var e={statusBarHeight:k,top:window.__WINDOW_TOP||0,bottom:window.__WINDOW_BOTTOM||0};t=t.replace(_,e.statusBarHeight+"px").replace(A,e.top+"px").replace(C,e.bottom+"px").replace(S,"0px").replace(T,"0px")}return t.replace(/\{[\s\S]+?\}|@media.+?\{/g,(function(t){return t.replace(w,(function(t,e){return uni.upx2px(e)+"px"}))}))}},"848c":function(t,e,a){"use strict";a.r(e);var i=a("bafd"),r=a("857d");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("880d");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"f0f7e4d2",null,!1,i["a"],o);e["default"]=l.exports},"857d":function(t,e,a){"use strict";a.r(e);var i=a("3718"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"85db":function(t,e,a){var i=a("9507");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("803b11dc",i,!0,{sourceMap:!1,shadowMode:!1})},"869f":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"qiun-error",props:["errorMessage"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},"870a":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-44c31eef]{width:30px;height:30px;position:relative}.container.loading5 .shape[data-v-44c31eef]{width:15px;height:15px}.container .shape[data-v-44c31eef]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-44c31eef]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-44c31eef]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-44c31eef]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-44c31eef]{bottom:0;right:0;background-color:#e66}.loading5 .shape1[data-v-44c31eef]{animation:animation5shape1-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}@keyframes animation5shape1-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(15px);transform:translateY(15px)}50%{-webkit-transform:translate(15px,15px);transform:translate(15px,15px)}75%{-webkit-transform:translate(15px);transform:translate(15px)}}.loading5 .shape2[data-v-44c31eef]{animation:animation5shape2-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}@keyframes animation5shape2-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-15px);transform:translate(-15px)}50%{-webkit-transform:translate(-15px,15px);transform:translate(-15px,15px)}75%{-webkit-transform:translateY(15px);transform:translateY(15px)}}.loading5 .shape3[data-v-44c31eef]{animation:animation5shape3-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}@keyframes animation5shape3-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(15px);transform:translate(15px)}50%{-webkit-transform:translate(15px,-15px);transform:translate(15px,-15px)}75%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}}.loading5 .shape4[data-v-44c31eef]{animation:animation5shape4-data-v-44c31eef 2s ease 0s infinite reverse}@-webkit-keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}@keyframes animation5shape4-data-v-44c31eef{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-15px);transform:translateY(-15px)}50%{-webkit-transform:translate(-15px,-15px);transform:translate(-15px,-15px)}75%{-webkit-transform:translate(-15px);transform:translate(-15px)}}",""]),t.exports=e},"880d":function(t,e,a){"use strict";var i=a("72c8"),r=a.n(i);r.a},"8b85":function(t,e,a){var i=a("870a");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("2d4d2ade",i,!0,{sourceMap:!1,shadowMode:!1})},9264:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},9507:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".chartsview[data-v-06c2910e]{width:100%;height:100%;display:flex;flex:1;justify-content:center;align-items:center}",""]),t.exports=e},"965e":function(t,e,a){"use strict";a.r(e);var i=a("9c77"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"973e":function(t,e,a){"use strict";a.r(e);var i=a("9eab"),r=a("aafe");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"6dfcfdcc",null,!1,i["a"],o);e["default"]=l.exports},"97ff":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},"9c77":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={data:function(){return{wxsProps:{}}},components:{}};e.default=i},"9e6c":function(t,e,a){"use strict";a.r(e);var i=a("dbcc"),r=a("d868");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"ff9fa262",null,!1,i["a"],o);e["default"]=l.exports},"9eab":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{attrs:{_i:0}},[t._$g(1,"i")?a("Loading1",{attrs:{_i:1}}):t._e(),t._$g(2,"i")?a("Loading2",{attrs:{_i:2}}):t._e(),t._$g(3,"i")?a("Loading3",{attrs:{_i:3}}):t._e(),t._$g(4,"i")?a("Loading4",{attrs:{_i:4}}):t._e(),t._$g(5,"i")?a("Loading5",{attrs:{_i:5}}):t._e()],1)},n=[]},"9fb2":function(t,e,a){var i=a("1195");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("7d0329f4",i,!0,{sourceMap:!1,shadowMode:!1})},a69a:function(t,e,a){"use strict";var i=a("5bde"),r=a.n(i);r.a},aafe:function(t,e,a){"use strict";a.r(e);var i=a("6152"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},af54:function(t,e,a){var i=a("2c16");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("7f7e").default;r("3f344be8",i,!0,{sourceMap:!1,shadowMode:!1})},b161:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}}),a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}}),a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}}),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}})],1)},n=[]},b3df:function(t,e,a){"use strict";(function(t){function a(t,e){return s(t)||o(t,e)||r(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var a=[],i=!0,r=!1,n=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(a.push(o.value),e&&a.length===e)break}catch(l){r=!0,n=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw n}}return a}}function s(t){if(Array.isArray(t))return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={version:"v2.3.7-20220122",yAxisWidth:15,yAxisSplit:5,xAxisHeight:22,xAxisLineHeight:22,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:13,gaugeLabelTextMargin:13},c=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];if(null==t)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!a||a.length<=0)return t;function r(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?r(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=r(t,e)})),t},d={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var a=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!a}};function h(t,e){var a=Array(2),i=20037508.34*t/180,r=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return r=20037508.34*r/180,a[0]=i,a[1]=r,a}function p(t,e){var a=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=t.replace(a,(function(t,e,a,i){return e+e+a+a+i+i})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i),n=parseInt(r[1],16),o=parseInt(r[2],16),s=parseInt(r[3],16);return"rgba("+n+","+o+","+s+","+e+")"}function f(t,e,a){if(isNaN(t))throw new Error("[uCharts] series\u6570\u636e\u9700\u4e3aNumber\u683c\u5f0f");a=a||10,e=e||"upper";var i=1;while(a<1)a*=10,i*=10;t="upper"===e?Math.ceil(t*i):Math.floor(t*i);while(t%a!==0)"upper"===e?t++:t--;return t/i}function u(t,e,a,i){for(var r=[],n=0;n<t.length;n++){for(var o={data:[],name:e[n],color:a[n]},s=0,l=i.length;s<l;s++)if(s<t[n])o.data.push(null);else{for(var c=0,d=0;d<t[n];d++)c+=i[s-d][1];o.data.push(+(c/t[n]).toFixed(3))}r.push(o)}return r}function x(t,e,a,i,r){var n=r.width-r.area[1]-r.area[3],o=a.eachSpacing*(r.chartData.xAxisData.xAxisPoints.length-1),s=e;return e>=0?(s=0,t.uevent.trigger("scrollLeft"),t.scrollOption.position="left",r.xAxis.scrollPosition="left"):Math.abs(e)>=o-n?(s=n-o,t.uevent.trigger("scrollRight"),t.scrollOption.position="right",r.xAxis.scrollPosition="right"):(t.scrollOption.position=e,r.xAxis.scrollPosition=e),s}function g(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=a}function v(t,e,a){var i=t,r=a-e,n=i+(a-r-i)/Math.sqrt(2);n*=-1;var o=(a-r)*(Math.sqrt(2)-1)-(a-r-i)/Math.sqrt(2);return{transX:n,transY:o}}function m(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var r=.2,n=.2,o=null,s=null,l=null,c=null;if(e<1?(o=t[0].x+(t[1].x-t[0].x)*r,s=t[0].y+(t[1].y-t[0].y)*r):(o=t[e].x+(t[e+1].x-t[e-1].x)*r,s=t[e].y+(t[e+1].y-t[e-1].y)*r),e>t.length-3){var d=t.length-1;l=t[d].x-(t[d].x-t[d-1].x)*n,c=t[d].y-(t[d].y-t[d-1].y)*n}else l=t[e+1].x-(t[e+2].x-t[e].x)*n,c=t[e+1].y-(t[e+2].y-t[e].y)*n;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 y(t,e,a){return{x:a.x+t,y:a.y-e}}function b(t,e){if(e)while(d.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function w(t,e,a){var i=[];if(t.length>0&&t[0].data.constructor.toString().indexOf("Array")>-1){e._pieSeries_=t;for(var r=t[0].data,n=0;n<r.length;n++)r[n].formatter=t[0].formatter,r[n].data=r[n].value,i.push(r[n]);e.series=i}else i=t;return i}function _(t,e,a){for(var i=0,r=0;r<t.length;r++){var n=t[r];if(n.color||(n.color=a.color[i],i=(i+1)%a.color.length),n.linearIndex||(n.linearIndex=r),n.index||(n.index=0),n.type||(n.type=e.type),"undefined"==typeof n.show&&(n.show=!0),n.type||(n.type=e.type),n.pointShape||(n.pointShape="circle"),!n.legendShape)switch(n.type){case"line":n.legendShape="line";break;case"column":n.legendShape="rect";break;case"area":n.legendShape="triangle";break;case"bar":n.legendShape="rect";break;default:n.legendShape="circle"}}return t}function A(t,e,a,i){var r=e||[];if("custom"==t&&0==r.length&&(r=i.linearColor),"custom"==t&&r.length<a.length)for(var n=a.length-r.length,o=0;o<n;o++)r.push(i.linearColor[(o+1)%i.linearColor.length]);return r}function C(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:f(t,"lower",a),maxRange:f(e,"upper",a)}}function S(t,e,a){var i=0;if(t=String(t),!1!==a&&void 0!==a&&a.setFontSize&&a.measureText)return a.setFontSize(e),a.measureText(t).width;t=t.split("");for(var r=0;r<t.length;r++){var n=t[r];/[a-zA-Z]/.test(n)?i+=7:/[0-9]/.test(n)?i+=5.5:/\./.test(n)?i+=2.7:/-/.test(n)?i+=3.25:/:/.test(n)?i+=2.5:/[\u4e00-\u9fa5]/.test(n)?i+=10:/\(|\)/.test(n)?i+=3.73:/\s/.test(n)?i+=2.5:/%/.test(n)?i+=8:i+=10}return i*e/10}function T(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function k(t,e){for(var a=new Array(e),i=0;i<a.length;i++)a[i]=0;for(var r=0;r<t.length;r++)for(i=0;i<a.length;i++)a[i]+=t[r].data[i];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function P(t,e,a){var i,r;return t.clientX?e.rotate?(r=e.height-t.clientX*e.pix,i=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):(i=t.clientX*e.pix,r=(t.pageY-a.currentTarget.offsetTop-e.height/e.pix/2*(e.pix-1))*e.pix):e.rotate?(r=e.height-t.x*e.pix,i=t.y*e.pix):(i=t.x*e.pix,r=t.y*e.pix),{x:i,y:r}}function M(t,e,a){var i=[],r=[],n=e.constructor.toString().indexOf("Array")>-1;if(n)for(var o=E(t),s=0;s<a.length;s++)r.push(o[a[s]]);else r=t;for(var l=0;l<r.length;l++){var c=r[l],d=-1;if(d=n?e[l]:e,null!==c.data[d]&&"undefined"!==typeof c.data[d]&&c.show){var h={};h.color=c.color,h.type=c.type,h.style=c.style,h.pointShape=c.pointShape,h.disableLegend=c.disableLegend,h.name=c.name,h.show=c.show,h.data=c.formatter?c.formatter(c.data[d]):c.data[d],i.push(h)}}return i}function D(t,e,a){var i=t.map((function(t){return S(t,e,a)}));return Math.max.apply(null,i)}function F(t){for(var e=2*Math.PI/t,a=[],i=0;i<t;i++)a.push(e*i);return a.map((function(t){return-1*t+Math.PI/2}))}function L(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.chartData.calPoints?e.chartData.calPoints:[],s={};if(i.length>0){for(var l=[],c=0;c<i.length;c++)l.push(o[i[c]]);s=l[0][a[0]]}else s=o[0][a];var d=t.map((function(t){var i=null;return e.categories&&e.categories.length>0&&(i=r[a]),{text:n.formatter?n.formatter(t,i,a,e):t.name+": "+t.data,color:t.color}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:d,offset:h}}function O(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},n=e.chartData.xAxisPoints[a]+e.chartData.eachSpacing/2,o=t.map((function(t){return{text:r.formatter?r.formatter(t,i[a],a,e):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));var s={x:Math.round(n),y:0};return{textList:o,offset:s}}function I(t,e,a,i,r,n){var o=a.chartData.calPoints,s=n.color.upFill,l=n.color.downFill,c=[s,s,l,s],d=[];e.map((function(e){0==i?e.data[1]-e.data[0]<0?c[1]=l:c[1]=s:(e.data[0]<t[i-1][1]&&(c[0]=l),e.data[1]<e.data[0]&&(c[1]=l),e.data[2]>t[i-1][1]&&(c[2]=s),e.data[3]<t[i-1][1]&&(c[3]=l));var a={text:"\u5f00\u76d8\uff1a"+e.data[0],color:c[0]},r={text:"\u6536\u76d8\uff1a"+e.data[1],color:c[1]},n={text:"\u6700\u4f4e\uff1a"+e.data[2],color:c[2]},o={text:"\u6700\u9ad8\uff1a"+e.data[3],color:c[3]};d.push(a,r,n,o)}));for(var h=[],p={x:0,y:0},f=0;f<o.length;f++){var u=o[f];"undefined"!==typeof u[i]&&null!==u[i]&&h.push(u[i])}return p.x=Math.round(h[0][0].x),{textList:d,offset:p}}function E(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}function B(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=[];if(e&&e.length>0){if(a.categories){for(var l=1;l<a.chartData.xAxisPoints.length;l++)s.push(a.chartData.xAxisPoints[l]-o);"line"!=a.type&&"area"!=a.type||"justify"!=a.xAxis.boundaryGap||(s=a.chartData.xAxisPoints)}else o=0;if(R(t,a,i))if(a.categories)s.forEach((function(e,a){t.x+r+o>e&&(n.index=a)}));else{for(var c=Array(e.length),d=0;d<e.length;d++){c[d]=Array(e[d].length);for(var h=0;h<e[d].length;h++)c[d][h]=Math.abs(e[d][h].x-t.x)}for(var p=Array(c.length),f=Array(c.length),u=0;u<c.length;u++)p[u]=Math.min.apply(null,c[u]),f[u]=c[u].indexOf(p[u]);var x=Math.min.apply(null,p);n.index=[];for(var g=0;g<p.length;g++)p[g]==x&&(n.group.push(g),n.index.push(f[g]))}}return n}function z(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n={index:-1,group:[]},o=a.chartData.eachSpacing/2,s=a.chartData.yAxisPoints;return e&&e.length>0&&R(t,a,i)&&s.forEach((function(e,a){t.y+r+o>e&&(n.index=a)})),n}function $(t,e,a){var i=-1,r=0;if(W(t,e.area)){for(var n=e.points,o=-1,s=0,l=n.length;s<l;s++)for(var c=n[s],d=0;d<c.length;d++){o+=1;var h=c[d]["area"];if(h&&t.x>h[0]-r&&t.x<h[2]+r&&t.y>h[1]-r&&t.y<h[3]+r){i=o;break}}return i}return i}function W(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}function R(t,e,a){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 N(t,e,a){var i=2*Math.PI/a,r=-1;if(U(t,e.center,e.radius)){var n=function(t){return t<0&&(t+=2*Math.PI),t>2*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=n(-1*t),t}));s.forEach((function(t,e){var a=n(t-i/2),s=n(t+i/2);s<a&&(s+=2*Math.PI),(o>=a&&o<=s||o+2*Math.PI>=a&&o+2*Math.PI<=s)&&(r=e)}))}return r}function G(t,e){for(var a=-1,i=0,r=e.series.length;i<r;i++){var n=e.series[i];if(t.x>n.funnelArea[0]&&t.x<n.funnelArea[2]&&t.y>n.funnelArea[1]&&t.y<n.funnelArea[3]){a=i;break}}return a}function j(t,e){for(var a=-1,i=0,r=e.length;i<r;i++){var n=e[i];if(t.x>n.area[0]&&t.x<n.area[2]&&t.y>n.area[1]&&t.y<n.area[3]){a=i;break}}return a}function Y(t,e){for(var a=-1,i=e.chartData.mapData,r=e.series,n=re(t.y,t.x,i.bounds,i.scale,i.xoffset,i.yoffset),o=[n.x,n.y],s=0,l=r.length;s<l;s++){var c=r[s].geometry.coordinates;if(oe(o,c,e.chartData.mapData.mercator)){a=s;break}}return a}function H(t,e,a){var i=-1,r=at(a._series_,a.extra.rose.type,e.radius,e.radius);if(e&&e.center&&U(t,e.center,e.radius)){var n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n=-n,a.extra.rose&&a.extra.rose.offsetAngle&&(n-=a.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(g(n,r[o]._start_,r[o]._start_+2*r[o]._rose_proportion_*Math.PI)){i=o;break}}return i}function X(t,e,a){var i=-1,r=tt(e.series);if(e&&e.center&&U(t,e.center,e.radius)){var n=Math.atan2(e.center.y-t.y,t.x-e.center.x);n=-n,a.extra.pie&&a.extra.pie.offsetAngle&&(n-=a.extra.pie.offsetAngle*Math.PI/180),a.extra.ring&&a.extra.ring.offsetAngle&&(n-=a.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=r.length;o<s;o++)if(g(n,r[o]._start_,r[o]._start_+2*r[o]._proportion_*Math.PI)){i=o;break}}return i}function U(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function q(t,e){var a=[],i=[];return t.forEach((function(t,r){e.connectNulls?null!==t&&i.push(t):null!==t?i.push(t):(i.length&&a.push(i),i=[])})),i.length&&a.push(i),a}function J(t,e,a,i,r){var n={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 i.legendData=n,n;var o=e.legend.padding*e.pix,s=e.legend.margin*e.pix,l=e.legend.fontSize?e.legend.fontSize*e.pix:a.fontSize,c=15*e.pix,d=5*e.pix,h=Math.max(e.legend.lineHeight*e.pix,l);if("top"==e.legend.position||"bottom"==e.legend.position){for(var p=[],f=0,u=[],x=[],g=0;g<t.length;g++){var v=t[g],m=c+d+S(v.name||"undefined",l,r)+e.legend.itemGap*e.pix;f+m>e.width-e.area[1]-e.area[3]?(p.push(x),u.push(f-e.legend.itemGap*e.pix),f=m,x=[v]):(f+=m,x.push(v))}if(x.length){p.push(x),u.push(f-e.legend.itemGap*e.pix),n.widthArr=u;var y=Math.max.apply(null,u);switch(e.legend.float){case"left":n.area.start.x=e.area[3],n.area.end.x=e.area[3]+y+2*o;break;case"right":n.area.start.x=e.width-e.area[1]-y-2*o,n.area.end.x=e.width-e.area[1];break;default:n.area.start.x=(e.width-y)/2-o,n.area.end.x=(e.width+y)/2+o}n.area.width=y+2*o,n.area.wholeWidth=y+2*o,n.area.height=p.length*h+2*o,n.area.wholeHeight=p.length*h+2*o+2*s,n.points=p}}else{var b=t.length,w=e.height-e.area[0]-e.area[2]-2*s-2*o,_=Math.min(Math.floor(w/h),b);switch(n.area.height=_*h+2*o,n.area.wholeHeight=_*h+2*o,e.legend.float){case"top":n.area.start.y=e.area[0]+s,n.area.end.y=e.area[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.area[2]-s-n.area.height,n.area.end.y=e.height-e.area[2]-s;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var A=b%_===0?b/_:Math.floor(b/_+1),C=[],T=0;T<A;T++){var k=t.slice(T*_,T*_+_);C.push(k)}if(n.points=C,C.length){for(var P=0;P<C.length;P++){for(var M=C[P],D=0,F=0;F<M.length;F++){var L=c+d+S(M[F].name||"undefined",l,r)+e.legend.itemGap*e.pix;L>D&&(D=L)}n.widthArr.push(D),n.heightArr.push(M.length*h+2*o)}for(var O=0,I=0;I<n.widthArr.length;I++)O+=n.widthArr[I];n.area.width=O-e.legend.itemGap*e.pix+2*o,n.area.wholeWidth=n.area.width+o}}switch(e.legend.position){case"top":n.area.start.y=e.area[0]+s,n.area.end.y=e.area[0]+s+n.area.height;break;case"bottom":n.area.start.y=e.height-e.area[2]-n.area.height-s,n.area.end.y=e.height-e.area[2]-s;break;case"left":n.area.start.x=e.area[3],n.area.end.x=e.area[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.area[1]-n.area.width,n.area.end.x=e.width-e.area[1];break}return i.legendData=n,n}function V(t,e,a,i,r){var n={angle:0,xAxisHeight:a.xAxisHeight},o=t.map((function(t){return S(t,e.xAxis.fontSize*e.pix||a.fontSize,r)})),s=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&s+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+s*Math.sin(n.angle)),n}function Q(t,e,a,i){var r,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r="stack"==i?k(t,e.categories.length):T(t);var o=[];r=r.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),r.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){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 e.xAxis.data[n].min&&(s=Math.min(e.xAxis.data[n].min,s)),"number"===typeof e.xAxis.data[n].max&&(l=Math.max(e.xAxis.data[n].max,l))):("number"===typeof e.xAxis.min&&(s=Math.min(e.xAxis.min,s)),"number"===typeof e.xAxis.max&&(l=Math.max(e.xAxis.max,l))),s===l){var c=l||10;l+=c}for(var d=s,h=l,p=[],f=(h-d)/e.xAxis.splitNumber,u=0;u<=e.xAxis.splitNumber;u++)p.push(d+f*u);return p}function Z(t,e,a,i){var r=c({},{type:""},e.extra.bar),n={angle:0,xAxisHeight:a.xAxisHeight};n.ranges=Q(t,e,a,r.type),n.rangesFormat=n.ranges.map((function(t){return t=d.toFixed(t,2),t}));var o=n.ranges.map((function(t){return t=d.toFixed(t,2),t}));n=Object.assign(n,pt(o,e,a));var s=n.eachSpacing,l=o.map((function(t){return S(t,e.xAxis.fontSize*e.pix||a.fontSize,i)})),h=Math.max.apply(this,l);return h+2*a.xAxisTextPadding>s&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(n.angle)),!0===e.xAxis.disabled&&(n.xAxisHeight=0),n}function K(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=r.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,T(i))),l=[],c=function(r){var o=i[r],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(i,r){var o={};o.angle=t[r],o.proportion=i/s,o.value=i,o.position=y(a*o.proportion*n*Math.cos(o.angle),a*o.proportion*n*Math.sin(o.angle),e),c.data.push(o)})),l.push(c)},d=0;d<i.length;d++)c(d);return l}function tt(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=0,r=0,n=0;n<t.length;n++){var o=t[n];o.data=null===o.data?0:o.data,i+=o.data}for(var s=0;s<t.length;s++){var l=t[s];l.data=null===l.data?0:l.data,l._proportion_=0===i?1/t.length*a:l.data/i*a,l._radius_=e}for(var c=0;c<t.length;c++){var d=t[c];d._start_=r,r+=2*d._proportion_*Math.PI}return t}function et(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var n=0;n<t.length;n++)t[n].radius="funnel"==a?t[n].data/t[0].data*e*r:i*(t.length-n)/(i*t.length)*e*r,t[n]._proportion_=t[n].data/t[0].data;return"pyramid"!==a&&t.reverse(),t}function at(t,e,a,i){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=0,o=0,s=[],l=0;l<t.length;l++){var c=t[l];c.data=null===c.data?0:c.data,n+=c.data,s.push(c.data)}for(var d=Math.min.apply(null,s),h=Math.max.apply(null,s),p=i-a,f=0;f<t.length;f++){var u=t[f];u.data=null===u.data?0:u.data,0===n?(u._proportion_=1/t.length*r,u._rose_proportion_=1/t.length*r):(u._proportion_=u.data/n*r,u._rose_proportion_="area"==e?1/t.length*r:u.data/n*r),u._radius_=a+p*((u.data-d)/(h-d))||i}for(var x=0;x<t.length;x++){var g=t[x];g._start_=o,o+=2*g._rose_proportion_*Math.PI}return t}function it(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i<t.length;i++){var r=t[i];r.data=null===r.data?0:r.data;var n=void 0;n="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,r._proportion_=n*r.data*a+e.startAngle,r._proportion_>=2&&(r._proportion_=r._proportion_%2)}return t}function rt(t,e,a){for(var i=e-a+1,r=e,n=0;n<t.length;n++)t[n].value=null===t[n].value?0:t[n].value,t[n]._startAngle_=r,t[n]._endAngle_=i*t[n].value+e,t[n]._endAngle_>=2&&(t[n]._endAngle_=t[n]._endAngle_%2),r=t[n]._endAngle_;return t}function nt(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0;r<t.length;r++){var n=t[r];if(n.data=null===n.data?0:n.data,"auto"==a.pointer.color){for(var o=0;o<e.length;o++)if(n.data<=e[o].value){n.color=e[o].color;break}}else n.color=a.pointer.color;var s=a.startAngle-a.endAngle+1;n._endAngle_=s*n.data+a.startAngle,n._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(n._oldAngle_+=2),n.data>=a.oldData?n._proportion_=(n._endAngle_-n._oldAngle_)*i+a.oldAngle:n._proportion_=n._oldAngle_-(n._oldAngle_-n._endAngle_)*i,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function ot(t,e,a,i){t=tt(t);for(var r=0,n=0;n<t.length;n++){var o=t[n],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):d.toFixed(100*o._proportion_)+"%";r=Math.max(r,S(s,o.textSize*i.pix||e.fontSize,a))}return r}function st(t,e,a,i,r,n){return t.map((function(t){if(null===t)return null;var r=0,o=0;return"mix"==n.type?(r=n.extra.mix.column.seriesGap*n.pix||0,o=n.extra.mix.column.categoryGap*n.pix||0):(r=n.extra.column.seriesGap*n.pix||0,o=n.extra.column.categoryGap*n.pix||0),r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),n.extra.mix&&n.extra.mix.column.width&&+n.extra.mix.column.width>0&&(t.width=Math.min(t.width,+n.extra.mix.column.width*n.pix)),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*(t.width+r),t}))}function lt(t,e,a,i,r,n){return t.map((function(t){if(null===t)return null;var r=0,o=0;return r=n.extra.bar.seriesGap*n.pix||0,o=n.extra.bar.categoryGap*n.pix||0,r=Math.min(r,e/a),o=Math.min(o,e/a),t.width=Math.ceil((e-2*o-r*(a-1))/a),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t.y+=(i+.5-a/2)*(t.width+r),t}))}function ct(t,e,a,i,r,n,o){var s=n.extra.column.categoryGap*n.pix||0;return t.map((function(t){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),i>0&&(t.width-=2*o),t)}))}function dt(t,e,a,i,r,n,o){var s=n.extra.column.categoryGap*n.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.column&&n.extra.column.width&&+n.extra.column.width>0&&(t.width=Math.min(t.width,+n.extra.column.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function ht(t,e,a,i,r,n,o){var s=n.extra.bar.categoryGap*n.pix||0;return t.map((function(t,a){return null===t?null:(t.width=Math.ceil(e-2*s),n.extra.bar&&n.extra.bar.width&&+n.extra.bar.width>0&&(t.width=Math.min(t.width,+n.extra.bar.width*n.pix)),t.width<=0&&(t.width=1),t)}))}function pt(t,e,a){var i=e.width-e.area[1]-e.area[3],r=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type||"scatter"==e.type||"bubble"==e.type||"bar"==e.type)&&r>1&&"justify"==e.xAxis.boundaryGap&&(r-=1);var n=i/r,o=[],s=e.area[3],l=e.width-e.area[1];return t.forEach((function(t,e){o.push(s+e*n)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?o.push(s+t.length*n):o.push(l)),{xAxisPoints:o,startX:s,endX:l,eachSpacing:n}}function ft(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=n.height-n.area[0]-n.area[2];return t.forEach((function(t,o){if(null===t)l.push(null);else{var d=[];t.forEach((function(t,l){var h={};h.x=i[o]+Math.round(r/2);var p=t.value||t,f=c*(p-e)/(a-e);f*=s,h.y=n.height-Math.round(f)-n.area[2],d.push(h)})),l.push(d)}})),l}function ut(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=n.type&&"area"!=n.type&&"scatter"!=n.type&&"bubble"!=n.type||(l=n.xAxis.boundaryGap);var c=[],d=n.height-n.area[0]-n.area[2],h=n.width-n.area[1]-n.area[3];return t.forEach((function(t,o){if(null===t)c.push(null);else{var p={};p.color=t.color,p.x=i[o];var f,u,x,g=t;if("object"===typeof t&&null!==t)if(t.constructor.toString().indexOf("Array")>-1)f=[].concat(n.chartData.xAxisData.ranges),u=f.shift(),x=f.pop(),g=t[1],p.x=n.area[3]+h*(t[0]-u)/(x-u),"bubble"==n.type&&(p.r=t[2],p.t=t[3]);else g=t.value;"center"==l&&(p.x+=r/2);var v=d*(g-e)/(a-e);v*=s,p.y=n.height-v-n.area[2],c.push(p)}})),c}function xt(t,e,a,i,r,n,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=(n.height,n.area[0],n.area[2],n.width-n.area[1]-n.area[3]);return t.forEach((function(t,r){if(null===t)l.push(null);else{var o={};o.color=t.color,o.y=i[r];var d=t;"object"===typeof t&&null!==t&&(d=t.value);var h=c*(d-e)/(a-e);h*=s,o.height=h,o.value=d,o.x=h+n.area[3],l.push(o)}})),l}function gt(t,e,a,i,r,n,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=n.height-n.area[0]-n.area[2];return t.forEach((function(t,o){if(null===t)d.push(null);else{var p={};if(p.color=t.color,p.x=i[o]+Math.round(r/2),s>0){for(var f=0,u=0;u<=s;u++)f+=l[u].data[o];var x=f-t,g=h*(f-e)/(a-e),v=h*(x-e)/(a-e)}else f=t,g=h*(f-e)/(a-e),v=0;var m=v;g*=c,m*=c,p.y=n.height-Math.round(g)-n.area[2],p.y0=n.height-Math.round(m)-n.area[2],d.push(p)}})),d}function vt(t,e,a,i,r,n,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,d=[],h=n.width-n.area[1]-n.area[3];return t.forEach((function(t,r){if(null===t)d.push(null);else{var o={};if(o.color=t.color,o.y=i[r],s>0){for(var p=0,f=0;f<=s;f++)p+=l[f].data[r];var u=p-t,x=h*(p-e)/(a-e),g=h*(u-e)/(a-e)}else p=t,x=h*(p-e)/(a-e),g=0;var v=g;x*=c,v*=c,o.height=x-v,o.x=n.area[3]+x,o.x0=n.area[3]+v,d.push(o)}})),d}function mt(t,e,a,i,r){var n;n="stack"==i?k(t,e.categories.length):T(t);var o=[];n=n.filter((function(t){return"object"===typeof t&&null!==t?t.constructor.toString().indexOf("Array")>-1?null!==t:null!==t.value:null!==t})),n.map((function(t){"object"===typeof t?t.constructor.toString().indexOf("Array")>-1?"candle"==e.type?t.map((function(t){o.push(t)})):o.push(t[1]):o.push(t.value):o.push(t)}));var s=r.min||0,l=r.max||0;if(o.length>0&&(s=Math.min.apply(this,o),l=Math.max.apply(this,o)),s===l){var c=l||10;l+=c}for(var d=C(s,l),h=void 0===r.min||null===r.min?d.minRange:r.min,p=void 0===r.max||null===r.min?d.maxRange:r.max,f=[],u=(p-h)/e.yAxis.splitNumber,x=0;x<=e.yAxis.splitNumber;x++)f.push(h+u*x);return f.reverse()}function yt(t,e,a,i){var r=c({},{type:""},e.extra.column),n=e.yAxis.data.length,o=new Array(n);if(n>0){for(var s=0;s<n;s++){o[s]=[];for(var l=0;l<t.length;l++)t[l].index==s&&o[s].push(t[l])}for(var d=new Array(n),h=new Array(n),p=new Array(n),f=function(t){var n=e.yAxis.data[t];1==e.yAxis.disabled&&(n.disabled=!0),"categories"===n.type?(n.formatter||(n.formatter=function(t){return t+(n.unit||"")}),n.categories=n.categories||e.categories,d[t]=n.categories):(n.formatter||(n.formatter=function(t){return t.toFixed(n.tofix)+(n.unit||"")}),d[t]=mt(o[t],e,a,r.type,n,t));var s=n.fontSize*e.pix||a.fontSize;p[t]={position:n.position?n.position:"left",width:0},h[t]=d[t].map((function(e){return e=n.formatter(e),p[t].width=Math.max(p[t].width,S(e,s,i)+5),e}));var l=n.calibration?4*e.pix:0;p[t].width+=l+3*e.pix,!0===n.disabled&&(p[t].width=0)},u=0;u<n;u++)f(u)}else{d=new Array(1),h=new Array(1),p=new Array(1);"bar"===e.type?(d[0]=e.categories,e.yAxis.formatter||(e.yAxis.formatter=function(t){return t+(e.yAxis.unit||"")})):(e.yAxis.formatter||(e.yAxis.formatter=function(t){return t.toFixed(e.yAxis.tofix)+(e.yAxis.unit||"")}),d[0]=mt(t,e,a,r.type,{})),p[0]={position:"left",width:0};var x=e.yAxis.fontSize*e.pix||a.fontSize;h[0]=d[0].map((function(t){return t=e.yAxis.formatter(t),p[0].width=Math.max(p[0].width,S(t,x,i)+5),t})),p[0].width+=3*e.pix,!0===e.yAxis.disabled?(p[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,formatter:e.yAxis.formatter},"bar"===e.type&&(e.yAxis.data[0].categories=e.categories,e.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:d,yAxisWidth:p}}function bt(t,e,a,i,r){for(var n=[].concat(a.chartData.yAxisData.ranges),o=a.height-a.area[0]-a.area[2],s=a.area[0],l=[],c=0;c<n.length;c++){var d=n[c].shift(),h=n[c].pop(),p=d-(d-h)*(t-s)/o;p=a.yAxis.data[c].formatter?a.yAxis.data[c].formatter(p):p.toFixed(0),l.push(String(p))}return l}function wt(t,e){for(var a,i,r=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 o=[].concat(e.chartData.yAxisData.ranges[t[n].yAxisIndex]);a=o.pop(),i=o.shift();var s=r*(t[n].value-a)/(i-a);t[n].y=e.height-Math.round(s)-e.area[2]}return t}function _t(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function At(t,e,a,i,r){if(i.beginPath(),"hollow"==r.dataPointShapeType?(i.setStrokeStyle(e),i.setFillStyle(r.background),i.setLineWidth(2*r.pix)):(i.setStrokeStyle("#ffffff"),i.setFillStyle(e),i.setLineWidth(1*r.pix)),"diamond"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))}));else if("circle"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x+2.5*r.pix,t.y),i.arc(t.x,t.y,3*r.pix,0,2*Math.PI,!1))}));else if("square"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===a)t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))}));else if("triangle"===a)return;i.closePath(),i.fill(),i.stroke()}function Ct(t,e,a,i){var r=t.title.fontSize||e.titleFontSize,n=t.subtitle.fontSize||e.subtitleFontSize,o=t.title.name||"",s=t.subtitle.name||"",l=t.title.color||t.fontColor,c=t.subtitle.color||t.fontColor,d=o?r:0,h=s?n:0,p=5;if(s){var f=S(s,n*t.pix,a),u=i.x-f/2+(t.subtitle.offsetX||0)*t.pix,x=i.y+n*t.pix/2+(t.subtitle.offsetY||0)*t.pix;o&&(x+=(d*t.pix+p)/2),a.beginPath(),a.setFontSize(n*t.pix),a.setFillStyle(c),a.fillText(s,u,x),a.closePath(),a.stroke()}if(o){var g=S(o,r*t.pix,a),v=i.x-g/2+(t.title.offsetX||0),m=i.y+r*t.pix/2+(t.title.offsetY||0)*t.pix;s&&(m-=(h*t.pix+p)/2),a.beginPath(),a.setFontSize(r*t.pix),a.setFillStyle(l),a.fillText(o,v,m),a.closePath(),a.stroke()}}function St(t,e,a,i,r){var n=e.data,o=e.textOffset?e.textOffset:0;t.forEach((function(t,s){if(null!==t){i.beginPath();var l=e.textSize?e.textSize*r.pix:a.fontSize;i.setFontSize(l),i.setFillStyle(e.textColor||r.fontColor);var c=n[s];"object"===typeof n[s]&&null!==n[s]&&(c=n[s].constructor.toString().indexOf("Array")>-1?n[s][1]:n[s].value);var d=e.formatter?e.formatter(c,s):c;i.setTextAlign("center"),i.fillText(String(d),t.x,t.y-4+o*r.pix),i.closePath(),i.stroke(),i.setTextAlign("left")}}))}function Tt(t,e,a,i,r){var n=e.data;e.textOffset&&e.textOffset;t.forEach((function(t,o){if(null!==t){i.beginPath();var s=e.textSize?e.textSize*r.pix:a.fontSize;i.setFontSize(s),i.setFillStyle(e.textColor||r.fontColor);var l=n[o];"object"===typeof n[o]&&null!==n[o]&&(l=n[o].value);var c=e.formatter?e.formatter(l,o):l;i.setTextAlign("left"),i.fillText(String(c),t.x+4*r.pix,t.y+s/2-3),i.closePath(),i.stroke()}}))}function kt(t,e,a,i,r,n){e-=t.width/2+t.labelOffset*i.pix;for(var o=t.startAngle-t.endAngle+1,s=o/t.splitLine.splitNumber,l=t.endNumber-t.startNumber,c=l/t.splitLine.splitNumber,d=t.startAngle,h=t.startNumber,p=0;p<t.splitLine.splitNumber+1;p++){var f={x:e*Math.cos(d*Math.PI),y:e*Math.sin(d*Math.PI)},u=t.formatter?t.formatter(h):h;f.x+=a.x-S(u,r.fontSize,n)/2,f.y+=a.y;var x=f.x,g=f.y;n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(t.labelColor||i.fontColor),n.fillText(u,x,g+r.fontSize/2),n.closePath(),n.stroke(),d+=s,d>=2&&(d%=2),h+=c}}function Pt(t,e,a,i,r,n){var o=i.extra.radar||{};e+=r.radarLabelTextMargin*i.pix,t.forEach((function(t,s){var l={x:e*Math.cos(t),y:e*Math.sin(t)},c=y(l.x,l.y,a),h=c.x,p=c.y;d.approximatelyEqual(l.x,0)?h-=S(i.categories[s]||"",r.fontSize,n)/2:l.x<0&&(h-=S(i.categories[s]||"",r.fontSize,n)),n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(o.labelColor||i.fontColor),n.fillText(i.categories[s]||"",h,p+r.fontSize/2),n.closePath(),n.stroke()}))}function Mt(t,e,a,i,r,n){for(var o=a.pieChartLinePadding,s=[],l=null,c=t.map((function(t,e,a){var i=t.formatter?t.formatter(t,e,a):d.toFixed(100*t._proportion_.toFixed(4))+"%",r=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2);t._rose_proportion_&&(r=2*Math.PI-(t._start_+2*Math.PI*t._rose_proportion_/2));var n=t.color,o=t._radius_;return{arc:r,text:i,color:n,radius:o,textColor:t.textColor,textSize:t.textSize}})),h=0;h<c.length;h++){var p=c[h],f=Math.cos(p.arc)*(p.radius+o),u=Math.sin(p.arc)*(p.radius+o),x=Math.cos(p.arc)*p.radius,g=Math.sin(p.arc)*p.radius,v=f>=0?f+a.pieChartTextPadding:f-a.pieChartTextPadding,m=u,w=S(p.text,p.textSize*e.pix||a.fontSize,i),_=m;l&&d.isSameXCoordinateArea(l.start,{x:v})&&(_=v>0?Math.min(m,l.start.y):f<0||m>0?Math.max(m,l.start.y):Math.min(m,l.start.y)),v<0&&(v-=w);var A={lineStart:{x:x,y:g},lineEnd:{x:f,y:u},start:{x:v,y:_},width:w,height:a.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};l=b(A,l),s.push(l)}for(var C=0;C<s.length;C++){var T=s[C],k=y(T.lineStart.x,T.lineStart.y,n),P=y(T.lineEnd.x,T.lineEnd.y,n),M=y(T.start.x,T.start.y,n);i.setLineWidth(1*e.pix),i.setFontSize(T.textSize*e.pix||a.fontSize),i.beginPath(),i.setStrokeStyle(T.color),i.setFillStyle(T.color),i.moveTo(k.x,k.y);var D=T.start.x<0?M.x+T.width:M.x,F=T.start.x<0?M.x-5:M.x+5;i.quadraticCurveTo(P.x,P.y,D,M.y),i.moveTo(k.x,k.y),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(M.x+T.width,M.y),i.arc(D,M.y,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(T.textSize*e.pix||a.fontSize),i.setFillStyle(T.textColor||e.fontColor),i.fillText(T.text,F,M.y+3),i.closePath(),i.stroke(),i.closePath()}}function Dt(t,e,a,i){var r=e.extra.tooltip||{};r.gridType=void 0==r.gridType?"solid":r.gridType,r.dashLength=void 0==r.dashLength?4:r.dashLength;var n=e.area[0],o=e.height-e.area[2];if("dash"==r.gridType&&i.setLineDash([r.dashLength,r.dashLength]),i.setStrokeStyle(r.gridColor||"#cccccc"),i.setLineWidth(1*e.pix),i.beginPath(),i.moveTo(t,n),i.lineTo(t,o),i.stroke(),i.setLineDash([]),r.xAxisLabel){var s=e.categories[e.tooltip.index];i.setFontSize(a.fontSize);var l=S(s,a.fontSize,i),c=t-.5*l,d=o;i.beginPath(),i.setFillStyle(p(r.labelBgColor||a.toolTipBackground,r.labelBgOpacity||a.toolTipOpacity)),i.setStrokeStyle(r.labelBgColor||a.toolTipBackground),i.setLineWidth(1*e.pix),i.rect(c-a.toolTipPadding,d,l+2*a.toolTipPadding,a.fontSize+2*a.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(a.fontSize),i.setFillStyle(r.labelFontColor||e.fontColor),i.fillText(String(s),c,d+a.toolTipPadding+a.fontSize),i.closePath(),i.stroke()}}function Ft(t,e,a){for(var i=c({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),r=t.area[3],n=t.width-t.area[1],o=wt(i.data,t),s=0;s<o.length;s++){var l=c({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},o[s]);if("dash"==i.type&&a.setLineDash([i.dashLength,i.dashLength]),a.setStrokeStyle(l.lineColor),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(r,l.y),a.lineTo(n,l.y),a.stroke(),a.setLineDash([]),l.showLabel){var d=t.yAxis.formatter?t.yAxis.formatter(l.value):l.value;a.setFontSize(e.fontSize);var h=S(d,e.fontSize,a),f=(t.chartData.yAxisData.yAxisWidth[0].width,t.area[3]-h-2*e.toolTipPadding),u=t.area[3],x=u-f,g=u-e.toolTipPadding,v=l.y;a.setFillStyle(p(l.labelBgColor,l.labelBgOpacity)),a.setStrokeStyle(l.labelBgColor),a.setLineWidth(1*t.pix),a.beginPath(),a.rect(f,v-.5*e.fontSize-e.toolTipPadding,x,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.setFontSize(e.fontSize),a.setTextAlign("right"),a.setFillStyle(l.labelFontColor),a.fillText(String(d),g,v+.5*e.fontSize),a.stroke(),a.setTextAlign("left")}}}function Lt(t,e,a,i,r){var n=c({},{gridType:"solid",dashLength:4},t.extra.tooltip),o=t.area[3],s=t.width-t.area[1];if("dash"==n.gridType&&a.setLineDash([n.dashLength,n.dashLength]),a.setStrokeStyle(n.gridColor||"#cccccc"),a.setLineWidth(1*t.pix),a.beginPath(),a.moveTo(o,t.tooltip.offset.y),a.lineTo(s,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),n.yAxisLabel)for(var l=bt(t.tooltip.offset.y,t.series,t,e,i),d=t.chartData.yAxisData.yAxisWidth,h=t.area[3],f=t.width-t.area[1],u=0;u<l.length;u++){a.setFontSize(e.fontSize);var x=S(l[u],e.fontSize,a),g=void 0,v=void 0,m=void 0;"left"==d[u].position?(g=h-d[u].width,v=Math.max(g,g+x+2*e.toolTipPadding)):(g=f,v=Math.max(g+d[u].width,g+x+2*e.toolTipPadding)),m=v-g;var y=g+(m-x)/2,b=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(p(n.labelBgColor||e.toolTipBackground,n.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(n.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pix),a.rect(g,b-.5*e.fontSize-e.toolTipPadding,m,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(n.labelFontColor||t.fontColor),a.fillText(l[u],y,b+.5*e.fontSize),a.closePath(),a.stroke(),"left"==d[u].position?h-=d[u].width+t.yAxis.padding*t.pix:f+=d[u].width+t.yAxis.padding*t.pix}}function Ot(t,e,a,i,r){var n=c({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.column),o=e.area[0],s=e.height-e.area[2];i.beginPath(),i.setFillStyle(p(n.activeBgColor,n.activeBgOpacity)),i.rect(t-r/2,o,r,s-o),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function It(t,e,a,i,r){var n=c({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.bar),o=e.area[3],s=e.width-e.area[1];i.beginPath(),i.setFillStyle(p(n.activeBgColor,n.activeBgOpacity)),i.rect(o,t-r/2,s-o,r),i.closePath(),i.fill(),i.setFillStyle("#FFFFFF")}function Et(t,e,a,i,r,n,o){var s=c({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},a.extra.tooltip);1==s.showCategory&&a.categories&&t.unshift({text:a.categories[a.tooltip.index],color:null});var l=4*a.pix,d=5*a.pix,h=s.showArrow?8*a.pix:0,f=!1;"line"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||1==s.splitLine&&Dt(a.tooltip.offset.x,a,i,r),e=c({x:0,y:0},e),e.y-=8*a.pix;var u=t.map((function(t){return S(t.text,i.fontSize,r)})),x=l+d+4*i.toolTipPadding+Math.max.apply(null,u),g=2*i.toolTipPadding+t.length*i.toolTipLineHeight;if(0!=s.showBox){e.x-Math.abs(a._scrollDistance_||0)+h+x>a.width&&(f=!0),g+e.y>a.height&&(e.y=a.height-g),r.beginPath(),r.setFillStyle(p(s.bgColor||i.toolTipBackground,s.bgOpacity||i.toolTipOpacity)),r.setLineWidth(s.borderWidth*a.pix),r.setStrokeStyle(p(s.borderColor,s.borderOpacity));var v=s.borderRadius;f?(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x-h,e.y+10*a.pix+5*a.pix)),r.arc(e.x-h-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x-h-Math.round(x)+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),r.arc(e.x-h-Math.round(x)+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x-h-v,e.y+v,v,-Math.PI/2,0,!1),s.showArrow&&(r.lineTo(e.x-h,e.y+10*a.pix-5*a.pix),r.lineTo(e.x,e.y+10*a.pix))):(s.showArrow&&(r.moveTo(e.x,e.y+10*a.pix),r.lineTo(e.x+h,e.y+10*a.pix-5*a.pix)),r.arc(e.x+h+v,e.y+v,v,-Math.PI,-Math.PI/2,!1),r.arc(e.x+h+Math.round(x)-v,e.y+v,v,-Math.PI/2,0,!1),r.arc(e.x+h+Math.round(x)-v,e.y+g-v,v,0,Math.PI/2,!1),r.arc(e.x+h+v,e.y+g-v,v,Math.PI/2,Math.PI,!1),s.showArrow&&(r.lineTo(e.x+h,e.y+10*a.pix+5*a.pix),r.lineTo(e.x,e.y+10*a.pix))),r.closePath(),r.fill(),s.borderWidth>0&&r.stroke(),t.forEach((function(t,a){if(null!==t.color){r.beginPath(),r.setFillStyle(t.color);var n=e.x+h+2*i.toolTipPadding,o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;f&&(n=e.x-x-h+2*i.toolTipPadding),r.fillRect(n,o,l,i.fontSize),r.closePath()}})),t.forEach((function(t,a){var n=e.x+h+2*i.toolTipPadding+l+d;f&&(n=e.x-x-h+2*i.toolTipPadding+ +l+d);var o=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;r.beginPath(),r.setFontSize(i.fontSize),r.setFillStyle(s.fontColor),r.fillText(t.text,n,o+i.fontSize),r.closePath(),r.stroke()}))}}function Bt(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=c({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.column),h=[];r.save();var f=-2,u=s.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),f=Math.floor(-e._scrollDistance_/l)-2,u=f+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&Ot(e.tooltip.offset.x,e,i,r,l),d.customColor=A(d.linearType,d.customColor,t,i),t.forEach((function(o,c){var x,g,v;x=[].concat(e.chartData.yAxisData.ranges[o.index]),g=x.pop(),v=x.shift();var m=o.data;switch(d.type){case"group":var y=ut(m,g,v,s,l,e,i,n),b=gt(m,g,v,s,l,e,i,c,t,n);h.push(b),y=st(y,l,t.length,c,i,e);for(var w=0;w<y.length;w++){var _=y[w];if(null!==_&&w>f&&w<u){var A=_.x-_.width/2,C=e.height-_.y-e.area[2];r.beginPath();var S=_.color||o.color,T=_.color||o.color;if("none"!==d.linearType){var k=r.createLinearGradient(A,_.y,A,e.height-e.area[2]);"opacity"==d.linearType?(k.addColorStop(0,p(S,d.linearOpacity)),k.addColorStop(1,p(S,1))):(k.addColorStop(0,p(d.customColor[o.linearIndex],d.linearOpacity)),k.addColorStop(d.colorStop,p(d.customColor[o.linearIndex],d.linearOpacity)),k.addColorStop(1,p(S,1))),S=k}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var P=A,M=_.y,D=_.width,F=e.height-e.area[2]-_.y;d.barBorderCircle&&(d.barBorderRadius=[D/2,D/2,0,0]);var L=a(d.barBorderRadius,4),O=L[0],I=L[1],E=L[2],B=L[3],z=Math.min(D/2,F/2);O=O>z?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(P+O,M+O,O,-Math.PI,-Math.PI/2),r.arc(P+D-I,M+I,I,-Math.PI/2,0),r.arc(P+D-E,M+F-E,E,0,Math.PI/2),r.arc(P+B,M+F-B,B,Math.PI/2,Math.PI)}else r.moveTo(A,_.y),r.lineTo(A+_.width-2,_.y),r.lineTo(A+_.width-2,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.lineTo(A,_.y),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(S),r.closePath(),r.fill()}}break;case"stack":y=gt(m,g,v,s,l,e,i,c,t,n);h.push(y),y=dt(y,l,t.length,c,i,e,t);for(var $=0;$<y.length;$++){var W=y[$];if(null!==W&&$>f&&$<u){r.beginPath();S=W.color||o.color,A=W.x-W.width/2+1,C=e.height-W.y-e.area[2];var R=e.height-W.y0-e.area[2];c>0&&(C-=R),r.setFillStyle(S),r.moveTo(A,W.y),r.fillRect(A,W.y,W.width-2,C),r.closePath(),r.fill()}}break;case"meter":y=ut(m,g,v,s,l,e,i,n);if(h.push(y),y=ct(y,l,t.length,c,i,e,d.meterBorder),0==c)for(var N=0;N<y.length;N++){var G=y[N];if(null!==G&&N>f&&N<u){r.beginPath(),r.setFillStyle(d.meterFillColor);A=G.x-G.width/2,C=e.height-G.y-e.area[2];if(d.barBorderCircle){var j=(G.width-2*d.meterBorder)/2;j>C&&(j=C),r.moveTo(A+d.meterBorder,e.height-e.area[2]),r.lineTo(A+d.meterBorder,G.y+j),r.arc(A+G.width/2,G.y+j,j,-Math.PI,0),r.lineTo(A+G.width-d.meterBorder,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.fill()}else r.moveTo(A,G.y),r.fillRect(A,G.y,G.width,C),r.closePath(),r.fill();if(d.meterBorder>0){if(r.beginPath(),r.setStrokeStyle(o.color),r.setLineWidth(d.meterBorder*e.pix),d.barBorderCircle){j=(G.width-d.meterBorder)/2;j>C&&(j=C),r.moveTo(A+.5*d.meterBorder,e.height-e.area[2]),r.lineTo(A+.5*d.meterBorder,G.y+j),r.arc(A+G.width/2,G.y+j-.5*d.meterBorder,j,-Math.PI,0),r.lineTo(A+G.width-.5*d.meterBorder,e.height-e.area[2])}else r.moveTo(A+.5*d.meterBorder,G.y+C),r.lineTo(A+.5*d.meterBorder,G.y+.5*d.meterBorder),r.lineTo(A+G.width-.5*d.meterBorder,G.y+.5*d.meterBorder),r.lineTo(A+G.width-.5*d.meterBorder,G.y+C);r.stroke()}}}else for(var Y=0;Y<y.length;Y++){var H=y[Y];if(null!==H&&Y>f&&Y<u){r.beginPath(),r.setFillStyle(H.color||o.color);A=H.x-H.width/2,C=e.height-H.y-e.area[2];if(d.barBorderCircle){j=H.width/2;j>C&&(j=C),r.moveTo(A,e.height-e.area[2]),r.arc(A+j,H.y+j,j,-Math.PI,-Math.PI/2),r.arc(A+H.width-j,H.y+j,j,-Math.PI/2,0),r.lineTo(A+H.width,e.height-e.area[2]),r.lineTo(A,e.height-e.area[2]),r.fill()}else r.moveTo(A,H.y),r.fillRect(A,H.y,H.width,C),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(a,o){var c,h,p;c=[].concat(e.chartData.yAxisData.ranges[a.index]),h=c.pop(),p=c.shift();var f=a.data;switch(d.type){case"group":var u=ut(f,h,p,s,l,e,i,n);u=st(u,l,t.length,o,i,e),St(u,a,i,r,e);break;case"stack":u=gt(f,h,p,s,l,e,i,o,t,n);St(u,a,i,r,e);break;case"meter":u=ut(f,h,p,s,l,e,i,n);St(u,a,i,r,e);break}})),r.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function zt(t,e,i,r){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],s=(e.height-e.area[0]-e.area[2])/e.categories.length,l=0;l<e.categories.length;l++)o.push(e.area[0]+s/2+s*l);var d=c({},{type:"group",width:s/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.bar),h=[];r.save();var f=-2,u=o.length+2;return e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&It(e.tooltip.offset.y,e,i,r,s),d.customColor=A(d.linearType,d.customColor,t,i),t.forEach((function(l,c){var x,g,v;x=[].concat(e.chartData.xAxisData.ranges),v=x.pop(),g=x.shift();var m=l.data;switch(d.type){case"group":var y=xt(m,g,v,o,s,e,i,n),b=vt(m,g,v,o,s,e,i,c,t,n);h.push(b),y=lt(y,s,t.length,c,i,e);for(var w=0;w<y.length;w++){var _=y[w];if(null!==_&&w>f&&w<u){var A=e.area[3],C=_.y-_.width/2;_.height;r.beginPath();var S=_.color||l.color,T=_.color||l.color;if("none"!==d.linearType){var k=r.createLinearGradient(A,_.y,_.x,_.y);"opacity"==d.linearType?(k.addColorStop(0,p(S,d.linearOpacity)),k.addColorStop(1,p(S,1))):(k.addColorStop(0,p(d.customColor[l.linearIndex],d.linearOpacity)),k.addColorStop(d.colorStop,p(d.customColor[l.linearIndex],d.linearOpacity)),k.addColorStop(1,p(S,1))),S=k}if(d.barBorderRadius&&4===d.barBorderRadius.length||!0===d.barBorderCircle){var P=A,M=_.width,D=_.y-_.width/2,F=_.heigh;d.barBorderCircle&&(d.barBorderRadius=[M/2,M/2,0,0]);var L=a(d.barBorderRadius,4),O=L[0],I=L[1],E=L[2],B=L[3],z=Math.min(M/2,F/2);O=O>z?z:O,I=I>z?z:I,E=E>z?z:E,B=B>z?z:B,O=O<0?0:O,I=I<0?0:I,E=E<0?0:E,B=B<0?0:B,r.arc(P+B,D+B,B,-Math.PI,-Math.PI/2),r.arc(_.x-O,D+O,O,-Math.PI/2,0),r.arc(_.x-I,D+M-I,I,0,Math.PI/2),r.arc(P+E,D+M-E,E,Math.PI/2,Math.PI)}else r.moveTo(A,C),r.lineTo(_.x,C),r.lineTo(_.x,C+_.width-2),r.lineTo(A,C+_.width-2),r.lineTo(A,C),r.setLineWidth(1),r.setStrokeStyle(T);r.setFillStyle(S),r.closePath(),r.fill()}}break;case"stack":y=vt(m,g,v,o,s,e,i,c,t,n);h.push(y),y=ht(y,s,t.length,c,i,e,t);for(var $=0;$<y.length;$++){var W=y[$];if(null!==W&&$>f&&$<u){r.beginPath();S=W.color||l.color,A=W.x0;r.setFillStyle(S),r.moveTo(A,W.y-W.width/2),r.fillRect(A,W.y-W.width/2,W.height,W.width-2),r.closePath(),r.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(a,l){var c,h,p;c=[].concat(e.chartData.xAxisData.ranges),p=c.pop(),h=c.shift();var f=a.data;switch(d.type){case"group":var u=xt(f,h,p,o,s,e,i,n);u=lt(u,s,t.length,l,i,e),Tt(u,a,i,r,e);break;case"stack":u=vt(f,h,p,o,s,e,i,l,t,n);Tt(u,a,i,r,e);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:s}}function $t(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=c({},{color:{},average:{}},a.extra.candle);o.color=c({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=c({},{show:!1,name:[],day:[],color:i.color},o.average),a.extra.candle=o;var s=a.chartData.xAxisData,l=s.xAxisPoints,d=s.eachSpacing,h=[];r.save();var p=-2,f=l.length+2,u=0,x=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(r.translate(a._scrollDistance_,0),p=Math.floor(-a._scrollDistance_/d)-2,f=p+a.xAxis.itemCount+4,u=-a._scrollDistance_-2*d+a.area[3],x=u+(a.xAxis.itemCount+4)*d),(o.average.show||e)&&e.forEach((function(t,e){var o,s,c;o=[].concat(a.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();for(var h=t.data,p=ut(h,s,c,l,d,a,i,n),f=q(p,t),g=0;g<f.length;g++){var v=f[g];if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(1),1===v.length)r.moveTo(v[0].x,v[0].y),r.arc(v[0].x,v[0].y,1,0,2*Math.PI);else{r.moveTo(v[0].x,v[0].y);for(var y=0,b=0;b<v.length;b++){var w=v[b];if(0==y&&w.x>u&&(r.moveTo(w.x,w.y),y=1),b>0&&w.x>u&&w.x<x){var _=m(v,b-1);r.bezierCurveTo(_.ctrA.x,_.ctrA.y,_.ctrB.x,_.ctrB.y,w.x,w.y)}}r.moveTo(v[0].x,v[0].y)}r.closePath(),r.stroke()}})),t.forEach((function(t,e){var s,c,u;s=[].concat(a.chartData.yAxisData.ranges[t.index]),c=s.pop(),u=s.shift();var x=t.data,g=ft(x,c,u,l,d,a,i,n);h.push(g);for(var v=q(g,t),m=0;m<v[0].length;m++)if(m>p&&m<f){var y=v[0][m];r.beginPath(),x[m][1]-x[m][0]>0?(r.setStrokeStyle(o.color.upLine),r.setFillStyle(o.color.upFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.moveTo(y[3].x,y[3].y)):(r.setStrokeStyle(o.color.downLine),r.setFillStyle(o.color.downFill),r.setLineWidth(1*a.pix),r.moveTo(y[3].x,y[3].y),r.lineTo(y[0].x,y[0].y),r.lineTo(y[0].x-d/4,y[0].y),r.lineTo(y[1].x-d/4,y[1].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[2].x,y[2].y),r.lineTo(y[1].x,y[1].y),r.lineTo(y[1].x+d/4,y[1].y),r.lineTo(y[0].x+d/4,y[0].y),r.lineTo(y[0].x,y[0].y),r.moveTo(y[3].x,y[3].y)),r.closePath(),r.fill(),r.stroke()}})),r.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:d}}function Wt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=e.height-e.area[2],h=[];i.save();var f=0,u=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),f=-e._scrollDistance_-2*l+e.area[3],u=f+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var c,x,g;c=[].concat(e.chartData.yAxisData.ranges[t.index]),x=c.pop(),g=c.shift();var v=t.data,y=ut(v,x,g,s,l,e,a,r);h.push(y);for(var b=q(y,t),w=0;w<b.length;w++){var _=b[w];if(i.beginPath(),i.setStrokeStyle(p(t.color,n.opacity)),n.gradient){var A=i.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);A.addColorStop("0",p(t.color,n.opacity)),A.addColorStop("1.0",p("#FFFFFF",.1)),i.setFillStyle(A)}else i.setFillStyle(p(t.color,n.opacity));if(i.setLineWidth(n.width*e.pix),_.length>1){var C=_[0],S=_[_.length-1];i.moveTo(C.x,C.y);var T=0;if("curve"===n.type)for(var k=0;k<_.length;k++){var P=_[k];if(0==T&&P.x>f&&(i.moveTo(P.x,P.y),T=1),k>0&&P.x>f&&P.x<u){var M=m(_,k-1);i.bezierCurveTo(M.ctrA.x,M.ctrA.y,M.ctrB.x,M.ctrB.y,P.x,P.y)}}if("straight"===n.type)for(var D=0;D<_.length;D++){var F=_[D];0==T&&F.x>f&&(i.moveTo(F.x,F.y),T=1),D>0&&F.x>f&&F.x<u&&i.lineTo(F.x,F.y)}if("step"===n.type)for(var L=0;L<_.length;L++){var O=_[L];0==T&&O.x>f&&(i.moveTo(O.x,O.y),T=1),L>0&&O.x>f&&O.x<u&&(i.lineTo(O.x,_[L-1].y),i.lineTo(O.x,O.y))}i.lineTo(S.x,d),i.lineTo(C.x,d),i.lineTo(C.x,C.y)}else{var I=_[0];i.moveTo(I.x-l/2,I.y),i.lineTo(I.x+l/2,I.y),i.lineTo(I.x+l/2,d),i.lineTo(I.x-l/2,d),i.moveTo(I.x-l/2,I.y)}if(i.closePath(),i.fill(),n.addLine){if("dash"==t.lineType){var E=t.dashLength?t.dashLength:8;E*=e.pix,i.setLineDash([E,E])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(n.width*e.pix),1===_.length)i.moveTo(_[0].x,_[0].y),i.arc(_[0].x,_[0].y,1,0,2*Math.PI);else{i.moveTo(_[0].x,_[0].y);var B=0;if("curve"===n.type)for(var z=0;z<_.length;z++){var $=_[z];if(0==B&&$.x>f&&(i.moveTo($.x,$.y),B=1),z>0&&$.x>f&&$.x<u){var W=m(_,z-1);i.bezierCurveTo(W.ctrA.x,W.ctrA.y,W.ctrB.x,W.ctrB.y,$.x,$.y)}}if("straight"===n.type)for(var R=0;R<_.length;R++){var N=_[R];0==B&&N.x>f&&(i.moveTo(N.x,N.y),B=1),R>0&&N.x>f&&N.x<u&&i.lineTo(N.x,N.y)}if("step"===n.type)for(var G=0;G<_.length;G++){var j=_[G];0==B&&j.x>f&&(i.moveTo(j.x,j.y),B=1),G>0&&j.x>f&&j.x<u&&(i.lineTo(j.x,_[G-1].y),i.lineTo(j.x,j.y))}i.moveTo(_[0].x,_[0].y)}i.stroke(),i.setLineDash([])}}!1!==e.dataPointShape&&At(y,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,c,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),d=o.shift();var h=t.data,p=ut(h,c,d,s,l,e,a,r);St(p,t,a,i,e)})),i.restore(),{xAxisPoints:s,calPoints:h,eachSpacing:l}}function Rt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=(c({},{type:"circle"},e.extra.scatter),e.chartData.xAxisData),o=n.xAxisPoints,s=n.eachSpacing,l=[];i.save();var d=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=-e._scrollDistance_-2*s+e.area[3],d+(e.xAxis.itemCount+4)*s),t.forEach((function(t,n){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,p=ut(h,c,d,o,s,e,a,r);i.beginPath(),i.setStrokeStyle(t.color),i.setFillStyle(t.color),i.setLineWidth(1*e.pix);var f=t.pointShape;if("diamond"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))}));else if("circle"===f)p.forEach((function(t,a){null!==t&&(i.moveTo(t.x+2.5*e.pix,t.y),i.arc(t.x,t.y,3*e.pix,0,2*Math.PI,!1))}));else if("square"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))}));else if("triangle"===f)p.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))}));else if("triangle"===f)return;i.closePath(),i.fill(),i.stroke()})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var l,c,d;l=[].concat(e.chartData.yAxisData.ranges[t.index]),c=l.pop(),d=l.shift();var h=t.data,p=ut(h,c,d,o,s,e,a,r);St(p,t,a,i,e)})),i.restore(),{xAxisPoints:o,calPoints:l,eachSpacing:s}}function Nt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{opacity:1,border:2},e.extra.bubble),o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=[];i.save();var h=0;e.width;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],h+(e.xAxis.itemCount+4)*l),t.forEach((function(o,c){var d,h,f;d=[].concat(e.chartData.yAxisData.ranges[o.index]),h=d.pop(),f=d.shift();var u=o.data,x=ut(u,h,f,s,l,e,a,r);i.beginPath(),i.setStrokeStyle(o.color),i.setLineWidth(n.border*e.pix),i.setFillStyle(p(o.color,n.opacity)),x.forEach((function(t,a){i.moveTo(t.x+t.r,t.y),i.arc(t.x,t.y,t.r*e.pix,0,2*Math.PI,!1)})),i.closePath(),i.fill(),i.stroke(),!1!==e.dataLabel&&1===r&&x.forEach((function(r,n){i.beginPath();var o=t.textSize*e.pix||a.fontSize;i.setFontSize(o),i.setFillStyle(t.textColor||"#FFFFFF"),i.setTextAlign("center"),i.fillText(String(r.t),r.x,r.y+o/2),i.closePath(),i.stroke(),i.setTextAlign("left")}))})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function Gt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"straight",width:2},e.extra.line);n.width*=e.pix;var o=e.chartData.xAxisData,s=o.xAxisPoints,l=o.eachSpacing,d=[];i.save();var h=0,p=e.width+l;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),h=-e._scrollDistance_-2*l+e.area[3],p=h+(e.xAxis.itemCount+4)*l),t.forEach((function(t,o){var c,f,u;c=[].concat(e.chartData.yAxisData.ranges[t.index]),f=c.pop(),u=c.shift();var x=t.data,g=ut(x,f,u,s,l,e,a,r);d.push(g);var v=q(g,t);if("dash"==t.lineType){var y=t.dashLength?t.dashLength:8;y*=e.pix,i.setLineDash([y,y])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(n.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"===n.type)for(var r=0;r<t.length;r++){var o=t[r];if(0==a&&o.x>h&&(i.moveTo(o.x,o.y),a=1),r>0&&o.x>h&&o.x<p){var s=m(t,r-1);i.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===n.type)for(var l=0;l<t.length;l++){var c=t[l];0==a&&c.x>h&&(i.moveTo(c.x,c.y),a=1),l>0&&c.x>h&&c.x<p&&i.lineTo(c.x,c.y)}if("step"===n.type)for(var d=0;d<t.length;d++){var f=t[d];0==a&&f.x>h&&(i.moveTo(f.x,f.y),a=1),d>0&&f.x>h&&f.x<p&&(i.lineTo(f.x,t[d-1].y),i.lineTo(f.x,f.y))}i.moveTo(t[0].x,t[0].y)}})),i.stroke(),i.setLineDash([]),!1!==e.dataPointShape&&At(g,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===r&&t.forEach((function(t,n){var o,c,d;o=[].concat(e.chartData.yAxisData.ranges[t.index]),c=o.pop(),d=o.shift();var h=t.data,p=ut(h,c,d,s,l,e,a,r);St(p,t,a,i,e)})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:l}}function jt(t,e,i,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=c({},{width:d/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},e.extra.mix.column),s=e.chartData.xAxisData,l=s.xAxisPoints,d=s.eachSpacing,h=e.height-e.area[2],f=[],u=0,x=0;t.forEach((function(t,e){"column"==t.type&&(x+=1)})),r.save();var g=-2,v=l.length+2,y=0,b=e.width+d;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(r.translate(e._scrollDistance_,0),g=Math.floor(-e._scrollDistance_/d)-2,v=g+e.xAxis.itemCount+4,y=-e._scrollDistance_-2*d+e.area[3],b=y+(e.xAxis.itemCount+4)*d),o.customColor=A(o.linearType,o.customColor,t,i),t.forEach((function(t,s){var c,w,_;c=[].concat(e.chartData.yAxisData.ranges[t.index]),w=c.pop(),_=c.shift();var A=t.data,C=ut(A,w,_,l,d,e,i,n);if(f.push(C),"column"==t.type){C=st(C,d,x,u,i,e);for(var S=0;S<C.length;S++){var T=C[S];if(null!==T&&S>g&&S<v){var k=T.x-T.width/2;e.height,T.y,e.area[2];r.beginPath();var P=T.color||t.color,M=T.color||t.color;if("none"!==o.linearType){var D=r.createLinearGradient(k,T.y,k,e.height-e.area[2]);"opacity"==o.linearType?(D.addColorStop(0,p(P,o.linearOpacity)),D.addColorStop(1,p(P,1))):(D.addColorStop(0,p(o.customColor[t.linearIndex],o.linearOpacity)),D.addColorStop(o.colorStop,p(o.customColor[t.linearIndex],o.linearOpacity)),D.addColorStop(1,p(P,1))),P=D}if(o.barBorderRadius&&4===o.barBorderRadius.length||o.barBorderCircle){var F=k,L=T.y,O=T.width,I=e.height-e.area[2]-T.y;o.barBorderCircle&&(o.barBorderRadius=[O/2,O/2,0,0]);var E=a(o.barBorderRadius,4),B=E[0],z=E[1],$=E[2],W=E[3],R=Math.min(O/2,I/2);B=B>R?R:B,z=z>R?R:z,$=$>R?R:$,W=W>R?R:W,B=B<0?0:B,z=z<0?0:z,$=$<0?0:$,W=W<0?0:W,r.arc(F+B,L+B,B,-Math.PI,-Math.PI/2),r.arc(F+O-z,L+z,z,-Math.PI/2,0),r.arc(F+O-$,L+I-$,$,0,Math.PI/2),r.arc(F+W,L+I-W,W,Math.PI/2,Math.PI)}else r.moveTo(k,T.y),r.lineTo(k+T.width-2,T.y),r.lineTo(k+T.width-2,e.height-e.area[2]),r.lineTo(k,e.height-e.area[2]),r.lineTo(k,T.y),r.setLineWidth(1),r.setStrokeStyle(M);r.setFillStyle(P),r.closePath(),r.fill()}}u+=1}if("area"==t.type)for(var N=q(C,t),G=0;G<N.length;G++){var j=N[G];if(r.beginPath(),r.setStrokeStyle(t.color),r.setFillStyle(p(t.color,.2)),r.setLineWidth(2*e.pix),j.length>1){var Y=j[0],H=j[j.length-1];r.moveTo(Y.x,Y.y);var X=0;if("curve"===t.style)for(var U=0;U<j.length;U++){var J=j[U];if(0==X&&J.x>y&&(r.moveTo(J.x,J.y),X=1),U>0&&J.x>y&&J.x<b){var V=m(j,U-1);r.bezierCurveTo(V.ctrA.x,V.ctrA.y,V.ctrB.x,V.ctrB.y,J.x,J.y)}}else for(var Q=0;Q<j.length;Q++){var Z=j[Q];0==X&&Z.x>y&&(r.moveTo(Z.x,Z.y),X=1),Q>0&&Z.x>y&&Z.x<b&&r.lineTo(Z.x,Z.y)}r.lineTo(H.x,h),r.lineTo(Y.x,h),r.lineTo(Y.x,Y.y)}else{var K=j[0];r.moveTo(K.x-d/2,K.y),r.lineTo(K.x+d/2,K.y),r.lineTo(K.x+d/2,h),r.lineTo(K.x-d/2,h),r.moveTo(K.x-d/2,K.y)}r.closePath(),r.fill()}if("line"==t.type){var tt=q(C,t);tt.forEach((function(a,i){if("dash"==t.lineType){var n=t.dashLength?t.dashLength:8;n*=e.pix,r.setLineDash([n,n])}if(r.beginPath(),r.setStrokeStyle(t.color),r.setLineWidth(2*e.pix),1===a.length)r.moveTo(a[0].x,a[0].y),r.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{r.moveTo(a[0].x,a[0].y);var o=0;if("curve"==t.style)for(var s=0;s<a.length;s++){var l=a[s];if(0==o&&l.x>y&&(r.moveTo(l.x,l.y),o=1),s>0&&l.x>y&&l.x<b){var c=m(a,s-1);r.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var d=0;d<a.length;d++){var h=a[d];0==o&&h.x>y&&(r.moveTo(h.x,h.y),o=1),d>0&&h.x>y&&h.x<b&&r.lineTo(h.x,h.y)}r.moveTo(a[0].x,a[0].y)}r.stroke(),r.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&At(C,t.color,t.pointShape,r,e)})),!1!==e.dataLabel&&1===n){u=0;t.forEach((function(t,a){var o,s,c;o=[].concat(e.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var h=t.data,p=ut(h,s,c,l,d,e,i,n);"column"!==t.type?St(p,t,i,r,e):(p=st(p,d,x,u,i,e),St(p,t,i,r,e),u+=1)}))}return r.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:d}}function Yt(t,e,a,i,r,n){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)&&Lt(t,e,a,r,n),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,r,n),a.restore()}function Ht(t,e,a,i){var r=e.chartData.xAxisData,n=r.xAxisPoints,o=r.startX,s=r.endX,l=r.eachSpacing,c="center";"bar"!=e.type&&"line"!=e.type&&"area"!=e.type&&"scatter"!=e.type&&"bubble"!=e.type||(c=e.xAxis.boundaryGap);var d=e.height-e.area[2],h=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+a.xAxisHeight,f=s-o,u=l*(n.length-1),x=f*f/u,g=0;e._scrollDistance_&&(g=-e._scrollDistance_*f/u),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pix),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(o,p),i.lineTo(s,p),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pix),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(o+g,p),i.lineTo(o+g+x,p),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pix),n.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-l/2,d),i.lineTo(t-l/2,d+3*e.pix),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pix),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength*e.pix,e.xAxis.dashLength*e.pix]),e.xAxis.gridEval=e.xAxis.gridEval||1,n.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,d),i.lineTo(t,h),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var m=t.length;e.xAxis.labelCount&&(m=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,m-=1);for(var y=Math.ceil(t.length/m),b=[],w=t.length,_=0;_<w;_++)_%y!==0?b.push(""):b.push(t[_]);b[w-1]=t[w-1];var A=e.xAxis.fontSize*e.pix||a.fontSize;0===a._xAxisTextAngle_?b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t,s=-S(String(o),A,i)/2;"center"==c&&(s+=l/2);var h=0;e.xAxis.scrollShow&&(h=6*e.pix),i.beginPath(),i.setFontSize(A),i.setFillStyle(e.xAxis.fontColor||e.fontColor),i.fillText(String(o),n[r]+s,d+A+(a.xAxisHeight-h-A)/2),i.closePath(),i.stroke()})):b.forEach((function(t,r){var o=e.xAxis.formatter?e.xAxis.formatter(t):t;i.save(),i.beginPath(),i.setFontSize(A),i.setFillStyle(e.xAxis.fontColor||e.fontColor);var s=S(String(o),A,i),h=-s;"center"==c&&(h+=l/2);var p=v(n[r]+l/2,d+A/2+5,e.height),f=p.transX,u=p.transY;i.rotate(-1*a._xAxisTextAngle_),i.translate(f,u),i.fillText(String(o),n[r]+h,d+A+5),i.closePath(),i.stroke(),i.restore()}))}i.restore(),e.xAxis.axisLine&&(i.beginPath(),i.setStrokeStyle(e.xAxis.axisLineColor),i.setLineWidth(1*e.pix),i.moveTo(o,e.height-e.area[2]),i.lineTo(s,e.height-e.area[2]),i.stroke())}function Xt(t,e,a,i){if(!0!==e.yAxis.disableGrid){var r=e.height-e.area[0]-e.area[2],n=r/e.yAxis.splitNumber,o=e.area[3],s=e.chartData.xAxisData.xAxisPoints,l=e.chartData.xAxisData.eachSpacing,c=l*(s.length-1),d=o+c,h=[],p=1;!1===e.xAxis.axisLine&&(p=0);for(var f=p;f<e.yAxis.splitNumber+1;f++)h.push(e.height-e.area[2]-n*f);i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&i.setLineDash([e.yAxis.dashLength*e.pix,e.yAxis.dashLength*e.pix]),i.setStrokeStyle(e.yAxis.gridColor),i.setLineWidth(1*e.pix),h.forEach((function(t,e){i.beginPath(),i.moveTo(o,t),i.lineTo(d,t),i.stroke()})),i.setLineDash([]),i.restore()}}function Ut(t,e,a,i){if(!0!==e.yAxis.disabled){var r=e.height-e.area[0]-e.area[2],n=r/e.yAxis.splitNumber,o=e.area[3],s=e.width-e.area[1],l=e.height-e.area[2],c=l+a.xAxisHeight;e.xAxis.scrollShow&&(c-=3*e.pix),e.xAxis.rotateLabel&&(c=e.height-e.area[2]+e.fontSize*e.pix/2),i.beginPath(),i.setFillStyle(e.background),1==e.enableScroll&&e.xAxis.scrollPosition&&"left"!==e.xAxis.scrollPosition&&i.fillRect(0,0,o,c),1==e.enableScroll&&e.xAxis.scrollPosition&&"right"!==e.xAxis.scrollPosition&&i.fillRect(s,0,e.width,c),i.closePath(),i.stroke();var d=e.area[3],h=e.width-e.area[1],p=e.area[3]+(e.width-e.area[1]-e.area[3])/2;if(e.yAxis.data)for(var f=function(t){var o=e.yAxis.data[t];if(x=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)x.push(e.area[0]+r/o.categories.length/2+r/o.categories.length*s);else for(var c=0;c<=e.yAxis.splitNumber;c++)x.push(e.area[0]+n*c);if(!0!==o.disabled){var f=e.chartData.yAxisData.rangesFormat[t],u=o.fontSize?o.fontSize*e.pix:a.fontSize,g=e.chartData.yAxisData.yAxisWidth[t],v=o.textAlign||"right";if(f.forEach((function(t,a){var r=x[a]?x[a]:l;i.beginPath(),i.setFontSize(u),i.setLineWidth(1*e.pix),i.setStrokeStyle(o.axisLineColor||"#cccccc"),i.setFillStyle(o.fontColor||e.fontColor);var n=0,s=4*e.pix;if("left"==g.position){switch(1==o.calibration&&(i.moveTo(d,r),i.lineTo(d-3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=d-g.width;break;case"right":i.setTextAlign("right"),n=d-s;break;default:i.setTextAlign("center"),n=d-g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}else if("right"==g.position){switch(1==o.calibration&&(i.moveTo(h,r),i.lineTo(h+3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=h+s;break;case"right":i.setTextAlign("right"),n=h+g.width;break;default:i.setTextAlign("center"),n=h+g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}else if("center"==g.position){switch(1==o.calibration&&(i.moveTo(p,r),i.lineTo(p-3*e.pix,r),s+=3*e.pix),v){case"left":i.setTextAlign("left"),n=p-g.width;break;case"right":i.setTextAlign("right"),n=p-s;break;default:i.setTextAlign("center"),n=p-g.width/2}i.fillText(String(t),n,r+u/2-3*e.pix)}i.closePath(),i.stroke(),i.setTextAlign("left")})),!1!==o.axisLine&&(i.beginPath(),i.setStrokeStyle(o.axisLineColor||"#cccccc"),i.setLineWidth(1*e.pix),"left"==g.position?(i.moveTo(d,e.height-e.area[2]),i.lineTo(d,e.area[0])):"right"==g.position?(i.moveTo(h,e.height-e.area[2]),i.lineTo(h,e.area[0])):"center"==g.position&&(i.moveTo(p,e.height-e.area[2]),i.lineTo(p,e.area[0])),i.stroke()),e.yAxis.showTitle){var m=o.titleFontSize*e.pix||a.fontSize,y=o.title;i.beginPath(),i.setFontSize(m),i.setFillStyle(o.titleFontColor||e.fontColor),"left"==g.position?i.fillText(y,d-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"right"==g.position?i.fillText(y,h-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix):"center"==g.position&&i.fillText(y,p-S(y,m,i)/2+(o.titleOffsetX||0),e.area[0]-(10-(o.titleOffsetY||0))*e.pix),i.closePath(),i.stroke()}"left"==g.position?d-=g.width+e.yAxis.padding*e.pix:h+=g.width+e.yAxis.padding*e.pix}},u=0;u<e.yAxis.data.length;u++){var x;f(u)}}}function qt(t,e,a,i,r){if(!1!==e.legend.show){var n=r.legendData,o=n.points,s=n.area,l=e.legend.padding*e.pix,c=e.legend.fontSize*e.pix,d=15*e.pix,h=5*e.pix,p=e.legend.itemGap*e.pix,f=Math.max(e.legend.lineHeight*e.pix,c);i.beginPath(),i.setLineWidth(e.legend.borderWidth*e.pix),i.setStrokeStyle(e.legend.borderColor),i.setFillStyle(e.legend.backgroundColor),i.moveTo(s.start.x,s.start.y),i.rect(s.start.x,s.start.y,s.width,s.height),i.closePath(),i.fill(),i.stroke(),o.forEach((function(t,r){var o=0,u=0;o=n.widthArr[r],u=n.heightArr[r];var x=0,g=0;if("top"==e.legend.position||"bottom"==e.legend.position){switch(e.legend.float){case"left":x=s.start.x+l;break;case"right":x=s.start.x+s.width-o;break;default:x=s.start.x+(s.width-o)/2}g=s.start.y+l+r*f}else o=0==r?0:n.widthArr[r-1],x=s.start.x+l+o,g=s.start.y+l+(s.height-u)/2;i.setFontSize(a.fontSize);for(var v=0;v<t.length;v++){var m=t[v];switch(m.area=[0,0,0,0],m.area[0]=x,m.area[1]=g,m.area[3]=g+f,i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),i.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":i.moveTo(x,g+.5*f-2*e.pix),i.fillRect(x,g+.5*f-2*e.pix,15*e.pix,4*e.pix);break;case"triangle":i.moveTo(x+7.5*e.pix,g+.5*f-5*e.pix),i.lineTo(x+2.5*e.pix,g+.5*f+5*e.pix),i.lineTo(x+12.5*e.pix,g+.5*f+5*e.pix),i.lineTo(x+7.5*e.pix,g+.5*f-5*e.pix);break;case"diamond":i.moveTo(x+7.5*e.pix,g+.5*f-5*e.pix),i.lineTo(x+2.5*e.pix,g+.5*f),i.lineTo(x+7.5*e.pix,g+.5*f+5*e.pix),i.lineTo(x+12.5*e.pix,g+.5*f),i.lineTo(x+7.5*e.pix,g+.5*f-5*e.pix);break;case"circle":i.moveTo(x+7.5*e.pix,g+.5*f),i.arc(x+7.5*e.pix,g+.5*f,5*e.pix,0,2*Math.PI);break;case"rect":i.moveTo(x,g+.5*f-5*e.pix),i.fillRect(x,g+.5*f-5*e.pix,15*e.pix,10*e.pix);break;case"square":i.moveTo(x+5*e.pix,g+.5*f-5*e.pix),i.fillRect(x+5*e.pix,g+.5*f-5*e.pix,10*e.pix,10*e.pix);break;case"none":break;default:i.moveTo(x,g+.5*f-5*e.pix),i.fillRect(x,g+.5*f-5*e.pix,15*e.pix,10*e.pix)}i.closePath(),i.fill(),i.stroke(),x+=d+h;var y=.5*f+.5*c-2;i.beginPath(),i.setFontSize(c),i.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),i.fillText(m.name,x,g+y),i.closePath(),i.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(x+=S(m.name,c,i)+p,m.area[2]=x):(m.area[2]=x+S(m.name,c,i)+p,x-=d+h,g+=f)}}))}}function Jt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==e.type?e.extra.pie:e.extra.ring),o={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=n.activeRadius*e.pix);var s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);n.customRadius>0&&(s=n.customRadius*e.pix),t=tt(t,s,r);var l=n.activeRadius*e.pix;if(n.customColor=A(n.linearType,n.customColor,t,a),t=t.map((function(t){return t._start_+=n.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(p(t.color,n.activeOpacity||.5)),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_+l,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(n.borderColor);var r,s=t.color;"custom"==n.linearType&&(r=i.createCircularGradient?i.createCircularGradient(o.x,o.y,t._radius_):i.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,p(n.customColor[t.linearIndex],1)),r.addColorStop(1,p(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),"ring"===e.type){var d=.6*s;"number"===typeof n.ringWidth&&n.ringWidth>0&&(d=Math.max(0,s-n.ringWidth*e.pix)),i.beginPath(),i.setFillStyle(n.centerColor),i.moveTo(o.x,o.y),i.arc(o.x,o.y,d,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===r){for(var h=!1,f=0,u=t.length;f<u;f++)if(t[f].data>0){h=!0;break}h&&Mt(t,e,a,i,s,o)}return 1===r&&"ring"===e.type&&Ct(e,a,i,o),{center:o,radius:s,series:t}}function Vt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=n.activeRadius*e.pix);var o={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},s=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),l=n.minRadius||.5*s;t=at(t,n.type,l,s,r);var d=n.activeRadius*e.pix;if(n.customColor=A(n.linearType,n.customColor,t,a),t=t.map((function(t){return t._start_+=(n.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(p(t.color,n.activeOpacity||.5)),i.moveTo(o.x,o.y),i.arc(o.x,o.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.lineJoin="round",i.setStrokeStyle(n.borderColor);var r,s=t.color;"custom"==n.linearType&&(r=i.createCircularGradient?i.createCircularGradient(o.x,o.y,t._radius_):i.createRadialGradient(o.x,o.y,0,o.x,o.y,t._radius_),r.addColorStop(0,p(n.customColor[t.linearIndex],1)),r.addColorStop(1,p(t.color,1)),s=r);i.setFillStyle(s),i.moveTo(o.x,o.y),i.arc(o.x,o.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==n.border&&i.stroke()})),!1!==e.dataLabel&&1===r){for(var h=!1,f=0,u=t.length;f<u;f++)if(t[f].data>0){h=!0;break}h&&Mt(t,e,a,i,s,o)}return{center:o,radius:s,series:t}}function Qt(t,e,a,i){var r,n,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=c({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},e.extra.arcbar);t=it(t,s,o),r=s.centerX||s.centerY?{x:s.centerX?s.centerX:e.width/2,y:s.centerY?s.centerY:e.height/2}:{x:e.width/2,y:e.height/2},s.radius?n=s.radius:(n=Math.min(r.x,r.y),n-=5*e.pix,n-=s.width/2),s.customColor=A(s.linearType,s.customColor,t,a);for(var l=0;l<t.length;l++){var d=t[l];i.setLineWidth(s.width*e.pix),i.setStrokeStyle(s.backgroundColor||"#E9E9E9"),i.setLineCap("round"),i.beginPath(),"default"==s.type?i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,s.startAngle*Math.PI,s.endAngle*Math.PI,!1):i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,0,2*Math.PI,!1),i.stroke();var h=d.color;if("custom"==s.linearType){var f=i.createLinearGradient(r.x-n,r.y,r.x+n,r.y);f.addColorStop(1,p(s.customColor[d.linearIndex],1)),f.addColorStop(0,p(d.color,1)),h=f}i.setLineWidth(s.width*e.pix),i.setStrokeStyle(h),i.setLineCap("round"),i.beginPath(),i.arc(r.x,r.y,n-(s.width*e.pix+s.gap*e.pix)*l,s.startAngle*Math.PI,d._proportion_*Math.PI,!1),i.stroke()}return Ct(e,a,i,r),{center:r,radius:n,series:t}}function Zt(t,e,a,i,r){var n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=c({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),t=rt(t,o.startAngle,o.endAngle);var s={x:a.width/2,y:a.height/2},l=Math.min(s.x,s.y);l-=5*a.pix,l-=o.width/2;var d=l-o.width,h=0;if("progress"==o.type){var f=l-3*o.width;r.beginPath();var u=r.createLinearGradient(s.x,s.y-f,s.x,s.y+f);u.addColorStop("0",p(e[0].color,.3)),u.addColorStop("1.0",p("#FFFFFF",.1)),r.setFillStyle(u),r.arc(s.x,s.y,f,0,2*Math.PI,!1),r.fill(),r.setLineWidth(o.width),r.setStrokeStyle(p(e[0].color,.3)),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),r.stroke(),h=o.startAngle-o.endAngle+1;o.splitLine.splitNumber;var x=h/o.splitLine.splitNumber/o.splitLine.childNumber,g=-l-.5*o.width-o.splitLine.fixRadius,v=-l-o.width-o.splitLine.fixRadius+o.splitLine.width;r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var m=o.splitLine.splitNumber*o.splitLine.childNumber+1,y=e[0].data*n,b=0;b<m;b++)r.beginPath(),y>b/m?r.setStrokeStyle(p(e[0].color,1)):r.setStrokeStyle(p(e[0].color,.3)),r.setLineWidth(3*a.pix),r.moveTo(g,0),r.lineTo(v,0),r.stroke(),r.rotate(x*Math.PI);r.restore(),e=it(e,o,n),r.setLineWidth(o.width),r.setStrokeStyle(e[0].color),r.setLineCap("round"),r.beginPath(),r.arc(s.x,s.y,d,o.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),r.stroke();var w=l-2.5*o.width;r.save(),r.translate(s.x,s.y),r.rotate((e[0]._proportion_-1)*Math.PI),r.beginPath(),r.setLineWidth(o.width/3);var _=r.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",p("#FFFFFF",0)),_.addColorStop("0.5",p(e[0].color,1)),_.addColorStop("1.0",p("#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-o.width/3/2,-4),r.lineTo(-w-o.width/3/2-4,0),r.lineTo(-w-o.width/3/2,4),r.lineTo(-w-o.width/3/2,-4),r.stroke(),r.fill(),r.restore()}else{r.setLineWidth(o.width),r.setLineCap("butt");for(var A=0;A<t.length;A++){var C=t[A];r.beginPath(),r.setStrokeStyle(C.color),r.arc(s.x,s.y,l,C._startAngle_*Math.PI,C._endAngle_*Math.PI,!1),r.stroke()}r.save(),h=o.startAngle-o.endAngle+1;var S=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,k=-l-.5*o.width-o.splitLine.fixRadius,P=-l-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,M=-l-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var D=0;D<o.splitLine.splitNumber+1;D++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(2*a.pix),r.moveTo(k,0),r.lineTo(P,0),r.stroke(),r.rotate(S*Math.PI);r.restore(),r.save(),r.translate(s.x,s.y),r.rotate((o.startAngle-1)*Math.PI);for(var F=0;F<o.splitLine.splitNumber*o.splitLine.childNumber+1;F++)r.beginPath(),r.setStrokeStyle(o.splitLine.color),r.setLineWidth(1*a.pix),r.moveTo(k,0),r.lineTo(M,0),r.stroke(),r.rotate(T*Math.PI);r.restore(),e=nt(e,t,o,n);for(var L=0;L<e.length;L++){var O=e[L];r.save(),r.translate(s.x,s.y),r.rotate((O._proportion_-1)*Math.PI),r.beginPath(),r.setFillStyle(O.color),r.moveTo(o.pointer.width,0),r.lineTo(0,-o.pointer.width/2),r.lineTo(-d,0),r.lineTo(0,o.pointer.width/2),r.lineTo(o.pointer.width,0),r.closePath(),r.fill(),r.beginPath(),r.setFillStyle("#FFFFFF"),r.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),r.fill(),r.restore()}!1!==a.dataLabel&&kt(o,l,s,a,i,r)}return Ct(a,i,r,s),1===n&&"gauge"===a.type&&(a.extra.gauge.oldAngle=e[0]._proportion_,a.extra.gauge.oldData=e[0].data),{center:s,radius:l,innerRadius:d,categories:t,totalAngle:h}}function Kt(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},e.extra.radar),o=F(e.categories.length),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},l=(e.width-e.area[1]-e.area[3])/2,d=(e.height-e.area[0]-e.area[2])/2,h=Math.min(l-(D(e.categories,a.fontSize,i)+a.radarLabelTextMargin),d-a.radarLabelTextMargin);h-=a.radarLabelTextMargin*e.pix,i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(n.gridColor),o.forEach((function(t){var e=y(h*Math.cos(t),h*Math.sin(t),s);i.moveTo(s.x,s.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var f=function(t){var a={};if(i.beginPath(),i.setLineWidth(1*e.pix),i.setStrokeStyle(n.gridColor),"radar"==n.gridType)o.forEach((function(e,r){var o=y(h/n.gridCount*t*Math.cos(e),h/n.gridCount*t*Math.sin(e),s);0===r?(a=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(a.x,a.y);else{var r=y(h/n.gridCount*t*Math.cos(1.5),h/n.gridCount*t*Math.sin(1.5),s);i.arc(s.x,s.y,s.y-r.y,0,2*Math.PI,!1)}i.stroke(),i.closePath()},u=1;u<=n.gridCount;u++)f(u);var x=K(o,s,h,t,e,r);return x.forEach((function(t,a){if(i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(t.color),i.setFillStyle(p(t.color,n.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(),!0===n.border&&i.stroke(),i.closePath(),!1!==e.dataPointShape){var r=t.data.map((function(t){return t.position}));At(r,t.color,t.pointShape,i,e)}})),Pt(o,h,s,e,a,i),!1!==e.dataLabel&&1===r&&(x.forEach((function(t,r){i.beginPath();var n=t.textSize*e.pix||a.fontSize;i.setFontSize(n),i.setFillStyle(t.textColor||e.fontColor),t.data.forEach((function(t,e){Math.abs(t.position.x-s.x)<2?t.position.y<s.y?(i.setTextAlign("center"),i.fillText(t.value,t.position.x,t.position.y-4)):(i.setTextAlign("center"),i.fillText(t.value,t.position.x,t.position.y+n+2)):t.position.x<s.x?(i.setTextAlign("right"),i.fillText(t.value,t.position.x-4,t.position.y+n/2-2)):(i.setTextAlign("left"),i.fillText(t.value,t.position.x+4,t.position.y+n/2-2))})),i.closePath(),i.stroke()})),i.setTextAlign("left")),{center:s,radius:h,angleList:o}}function te(t,e,a){a=0==a?1:a;for(var i=[],r=0;r<a;r++)i[r]=Math.random();return Math.floor(i.reduce((function(t,e){return t+e}))/a*(e-t))+t}function ee(t,e,a,i){for(var r=!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])){r=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>i){r=!0;break}r=!1}return r}function ae(t){var e,a={};a.xMin=180,a.xMax=0,a.yMin=90,a.yMax=0;for(var i=0;i<t.length;i++)for(var r=t[i].geometry.coordinates,n=0;n<r.length;n++){e=r[n],1==e.length&&(e=e[0]);for(var o=0;o<e.length;o++){var s=e[o][0],l=e[o][1],c={x:s,y:l};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}function ie(t,e,a,i,r,n){return{x:(e-a.xMin)*i+r,y:(a.yMax-t)*i+n}}function re(t,e,a,i,r,n){return{x:(e-r)/i+a.xMin,y:a.yMax-(t-n)/i}}function ne(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]<t[1]&&a[1]<t[1])return!1;if(e[1]==t[1]&&a[1]>t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&a[1]<t[1])return!1;var i=a[0]-(a[0]-e[0])*(a[1]-t[1])/(a[1]-e[1]);return!(i<t[0])}function oe(t,e,a){for(var i=0,r=0;r<e.length;r++){var n=e[r][0];1==e.length&&(n=e[r][0]);for(var o=0;o<n.length-1;o++){var s=n[o],l=n[o+1];a&&(s=h(n[o][0],n[o][1]),l=h(n[o+1][0],n[o+1][1])),ne(t,s,l)&&(i+=1)}}return i%2==1}function se(t,e,a,i){var r,n,o=c({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),s=t,l=ae(s);if(o.mercator){var d=h(l.xMax,l.yMax),f=h(l.xMin,l.yMin);l.xMax=d[0],l.yMax=d[1],l.xMin=f[0],l.yMin=f[1]}for(var u=e.width/Math.abs(l.xMax-l.xMin),x=e.height/Math.abs(l.yMax-l.yMin),g=u<x?u:x,v=e.width/2-Math.abs(l.xMax-l.xMin)/2*g,m=e.height/2-Math.abs(l.yMax-l.yMin)/2*g,y=0;y<s.length;y++){i.beginPath(),i.setLineWidth(o.borderWidth*e.pix),i.setStrokeStyle(o.borderColor),i.setFillStyle(p(t[y].color,o.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(i.setStrokeStyle(o.activeBorderColor),i.setFillStyle(p(o.activeFillColor,o.activeFillOpacity)));for(var b=s[y].geometry.coordinates,w=0;w<b.length;w++){r=b[w],1==r.length&&(r=r[0]);for(var _=0;_<r.length;_++){var A=Array(2);A=o.mercator?h(r[_][0],r[_][1]):r[_],n=ie(A[1],A[0],l,g,v,m),0===_?(i.beginPath(),i.moveTo(n.x,n.y)):i.lineTo(n.x,n.y)}i.fill(),1==o.border&&i.stroke()}if(1==e.dataLabel){var C=s[y].properties.centroid;if(C){o.mercator&&(C=h(s[y].properties.centroid[0],s[y].properties.centroid[1])),n=ie(C[1],C[0],l,g,v,m);var T=s[y].textSize*e.pix||a.fontSize,k=s[y].properties.name;i.beginPath(),i.setFontSize(T),i.setFillStyle(s[y].textColor||e.fontColor),i.fillText(k,n.x-S(k,T,i)/2,n.y+T/2),i.closePath(),i.stroke()}}}e.chartData.mapData={bounds:l,scale:g,xoffset:v,yoffset:m,mercator:o.mercator},Yt(e,a,i,1),i.draw()}function le(t,e,a){var i=t.series;switch(e){case"normal":for(var r=0;r<i.length;r++){var n=i[r].name,o=i[r].textSize*t.pix,s=S(n,o,a),l=void 0,c=void 0,d=void 0,h=0;while(1){h++,l=te(-t.width/2,t.width/2,5)-s/2,c=te(-t.height/2,t.height/2,5)+o/2,d=[l-5+t.width/2,c-5-o+t.height/2,l+s+5+t.width/2,c+5+t.height/2];var p=ee(d,i,t.width,t.height);if(!p)break;if(1e3==h){d=[-100,-100,-100,-100];break}}i[r].area=d}break;case"vertical":for(var f=function(){return Math.random()>.7},u=0;u<i.length;u++){var x=i[u].name,g=i[u].textSize*t.pix,v=S(x,g,a),m=f(),y=void 0,b=void 0,w=void 0,_=void 0,A=0;while(1){A++;var C=void 0;if(m?(y=te(-t.width/2,t.width/2,5)-v/2,b=te(-t.height/2,t.height/2,5)+g/2,w=[b-5-v+t.width/2,-y-5+t.height/2,b+5+t.width/2,-y+g+5+t.height/2],_=[t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)-5,t.height/2-t.width/2+(b-5-v+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-y+g+5+t.height/2)+g,t.height/2-t.width/2+(b-5-v+t.width/2)+v+5],C=ee(_,i,t.height,t.width)):(y=te(-t.width/2,t.width/2,5)-v/2,b=te(-t.height/2,t.height/2,5)+g/2,w=[y-5+t.width/2,b-5-g+t.height/2,y+v+5+t.width/2,b+5+t.height/2],C=ee(w,i,t.width,t.height)),!C)break;if(1e3==A){w=[-1e3,-1e3,-1e3,-1e3];break}}m?(i[u].area=_,i[u].areav=w):i[u].area=w,i[u].rotate=m}break}return i}function ce(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"normal",autoColors:!0},e.extra.word);e.chartData.wordCloudData||(e.chartData.wordCloudData=le(e,n.type,i)),i.beginPath(),i.setFillStyle(e.background),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;s<o.length;s++){i.save(),o[s].rotate&&i.rotate(90*Math.PI/180);var l=o[s].name,d=o[s].textSize*e.pix,h=S(l,d,i);i.beginPath(),i.setStrokeStyle(o[s].color),i.setFillStyle(o[s].color),i.setFontSize(d),o[s].rotate?o[s].areav[0]>0&&(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+d-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+d-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+d-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+d-e.height/2)*r)),i.stroke(),i.restore()}i.restore()}function de(t,e,a,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,n=c({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},e.extra.funnel),o=(e.height-e.area[0]-e.area[2])/t.length,s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},l=n.activeWidth*e.pix,d=Math.min((e.width-e.area[1]-e.area[3])/2-l,(e.height-e.area[0]-e.area[2])/2-l);if(t=et(t,d,n.type,o,r),i.save(),i.translate(s.x,s.y),n.customColor=A(n.linearType,n.customColor,t,a),"pyramid"==n.type)for(var h=0;h<t.length;h++){if(h==t.length-1){e.tooltip&&e.tooltip.index==h&&(i.beginPath(),i.setFillStyle(p(t[h].color,n.activeOpacity)),i.moveTo(-l,-o),i.lineTo(-t[h].radius-l,0),i.lineTo(t[h].radius+l,0),i.lineTo(l,-o),i.lineTo(-l,-o),i.closePath(),i.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);var f=p(t[h].color,n.fillOpacity);if("custom"==n.linearType){var u=i.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);u.addColorStop(0,p(t[h].color,n.fillOpacity)),u.addColorStop(.5,p(n.customColor[t[h].linearIndex],n.fillOpacity)),u.addColorStop(1,p(t[h].color,n.fillOpacity)),f=u}i.setFillStyle(f),i.moveTo(0,-o),i.lineTo(-t[h].radius,0),i.lineTo(t[h].radius,0),i.lineTo(0,-o),i.closePath(),i.fill(),1==n.border&&i.stroke()}else{e.tooltip&&e.tooltip.index==h&&(i.beginPath(),i.setFillStyle(p(t[h].color,n.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[h].radius-l,0),i.lineTo(-t[h+1].radius-l,-o),i.lineTo(t[h+1].radius+l,-o),i.lineTo(t[h].radius+l,0),i.lineTo(0,0),i.closePath(),i.fill()),t[h].funnelArea=[s.x-t[h].radius,s.y-o*(h+1),s.x+t[h].radius,s.y-o*h],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);f=p(t[h].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[h].radius,-o,-t[h].radius,-o);u.addColorStop(0,p(t[h].color,n.fillOpacity)),u.addColorStop(.5,p(n.customColor[t[h].linearIndex],n.fillOpacity)),u.addColorStop(1,p(t[h].color,n.fillOpacity)),f=u}i.setFillStyle(f),i.moveTo(0,0),i.lineTo(-t[h].radius,0),i.lineTo(-t[h+1].radius,-o),i.lineTo(t[h+1].radius,-o),i.lineTo(t[h].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}i.translate(0,-o)}else for(var x=0;x<t.length;x++){if(0==x){e.tooltip&&e.tooltip.index==x&&(i.beginPath(),i.setFillStyle(p(t[x].color,n.activeOpacity)),i.moveTo(-l,0),i.lineTo(-t[x].radius-l,-o),i.lineTo(t[x].radius+l,-o),i.lineTo(l,0),i.lineTo(-l,0),i.closePath(),i.fill()),t[x].funnelArea=[s.x-t[x].radius,s.y-o,s.x+t[x].radius,s.y],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);f=p(t[x].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[x].radius,-o,-t[x].radius,-o);u.addColorStop(0,p(t[x].color,n.fillOpacity)),u.addColorStop(.5,p(n.customColor[t[x].linearIndex],n.fillOpacity)),u.addColorStop(1,p(t[x].color,n.fillOpacity)),f=u}i.setFillStyle(f),i.moveTo(0,0),i.lineTo(-t[x].radius,-o),i.lineTo(t[x].radius,-o),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}else{e.tooltip&&e.tooltip.index==x&&(i.beginPath(),i.setFillStyle(p(t[x].color,n.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[x-1].radius-l,0),i.lineTo(-t[x].radius-l,-o),i.lineTo(t[x].radius+l,-o),i.lineTo(t[x-1].radius+l,0),i.lineTo(0,0),i.closePath(),i.fill()),t[x].funnelArea=[s.x-t[x].radius,s.y-o*(x+1),s.x+t[x].radius,s.y-o*x],i.beginPath(),i.setLineWidth(n.borderWidth*e.pix),i.setStrokeStyle(n.borderColor);f=p(t[x].color,n.fillOpacity);if("custom"==n.linearType){u=i.createLinearGradient(t[x].radius,-o,-t[x].radius,-o);u.addColorStop(0,p(t[x].color,n.fillOpacity)),u.addColorStop(.5,p(n.customColor[t[x].linearIndex],n.fillOpacity)),u.addColorStop(1,p(t[x].color,n.fillOpacity)),f=u}i.setFillStyle(f),i.moveTo(0,0),i.lineTo(-t[x-1].radius,0),i.lineTo(-t[x].radius,-o),i.lineTo(t[x].radius,-o),i.lineTo(t[x-1].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==n.border&&i.stroke()}i.translate(0,-o)}return i.restore(),!1!==e.dataLabel&&1===r&&he(t,e,i,o,n.labelAlign,l,s),{center:s,radius:d,series:t}}function he(t,e,a,i,r,n,o){for(var s=0;s<t.length;s++){var l=t[s],c=void 0,h=void 0,p=void 0,f=void 0,u=l.formatter?l.formatter(l,s,t):d.toFixed(100*l._proportion_)+"%";"right"==r?(c="pyramid"===e.extra.funnel.type?s==t.length-1?(l.funnelArea[2]+o.x)/2:(l.funnelArea[2]+t[s+1].funnelArea[2])/2:0==s?(l.funnelArea[2]+o.x)/2:(l.funnelArea[2]+t[s-1].funnelArea[2])/2,h=c+2*n,p=l.funnelArea[1]+i/2,f=l.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(l.color),a.setFillStyle(l.color),a.beginPath(),a.moveTo(c,p),a.lineTo(h,p),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,p),a.arc(h,p,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(l.textColor||e.fontColor),a.fillText(u,h+5,p+f/2-2),a.closePath(),a.stroke(),a.closePath()):(c="pyramid"===e.extra.funnel.type?s==t.length-1?(l.funnelArea[0]+o.x)/2:(l.funnelArea[0]+t[s+1].funnelArea[0])/2:0==s?(l.funnelArea[0]+o.x)/2:(l.funnelArea[0]+t[s-1].funnelArea[0])/2,h=c-2*n,p=l.funnelArea[1]+i/2,f=l.textSize*e.pix||e.fontSize*e.pix,a.setLineWidth(1*e.pix),a.setStrokeStyle(l.color),a.setFillStyle(l.color),a.beginPath(),a.moveTo(c,p),a.lineTo(h,p),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(h,p),a.arc(h,p,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(l.textColor||e.fontColor),a.fillText(u,h-5-S(u,f,a),p+f/2-2),a.closePath(),a.stroke(),a.closePath())}}function pe(t,e){e.draw()}var fe={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function ue(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"easeInOut";var e=17;function a(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}var i=a(),r=null,n=function(a){if(null===a||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===r&&(r=a),a-r<t.duration){var o=(a-r)/t.duration,s=fe[t.timing];o=s(o),t.onProcess&&t.onProcess(o),i(n,e)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};n=n.bind(this),i(n,e)}function xe(t,e,a,i){var r=this,n=e.series;"pie"!==t&&"ring"!==t&&"rose"!==t&&"funnel"!==t||(n=w(n,e,a));var o=e.categories;n=_(n,e,a);var s=e.animation?e.duration:0;r.animationInstance&&r.animationInstance.stop();var l=null;if("candle"==t){var d=c({},e.extra.candle.average);d.show?(l=u(d.day,d.name,d.color,n[0].data),l=_(l,e,a),e.seriesMA=l):l=e.seriesMA?e.seriesMA=_(e.seriesMA,e,a):n}else l=n;e._series_=n=E(n),e.area=new Array(4);for(var h=0;h<4;h++)e.area[h]=e.padding[h]*e.pix;var p=J(l,e,a,e.chartData,i),f=p.area.wholeHeight,x=p.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=f;break;case"bottom":e.area[2]+=f;break;case"left":e.area[3]+=x;break;case"right":e.area[1]+=x;break}var g={},v=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){if(g=yt(n,e,a,i),v=g.yAxisWidth,e.yAxis.showTitle){for(var m=0,y=0;y<e.yAxis.data.length;y++)m=Math.max(m,e.yAxis.data[y].titleFontSize?e.yAxis.data[y].titleFontSize*e.pix:a.fontSize);e.area[0]+=m}for(var b=0,A=0,C=0;C<v.length;C++)"left"==v[C].position?(e.area[3]+=A>0?v[C].width+e.yAxis.padding*e.pix:v[C].width,A+=1):"right"==v[C].position&&(e.area[1]+=b>0?v[C].width+e.yAxis.padding*e.pix:v[C].width,b+=1)}else a.yAxisWidth=v;if(e.chartData.yAxisData=g,e.categories&&e.categories.length&&"radar"!==e.type&&"gauge"!==e.type&&"bar"!==e.type){e.chartData.xAxisData=pt(e.categories,e,a);var S=V(e.categories,e,a,e.chartData.xAxisData.eachSpacing,i),T=S.xAxisHeight,k=S.angle;a.xAxisHeight=T,a._xAxisTextAngle_=k,e.area[2]+=T,e.chartData.categoriesData=S}else if("line"===e.type||"area"===e.type||"scatter"===e.type||"bubble"===e.type||"bar"===e.type){e.chartData.xAxisData=Z(n,e,a,i),o=e.chartData.xAxisData.rangesFormat;var P=V(o,e,a,e.chartData.xAxisData.eachSpacing,i),M=P.xAxisHeight,D=P.angle;a.xAxisHeight=M,a._xAxisTextAngle_=D,e.area[2]+=M,e.chartData.categoriesData=P}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var F=0,L=e.chartData.xAxisData.xAxisPoints,O=e.chartData.xAxisData.startX,I=e.chartData.xAxisData.endX,B=e.chartData.xAxisData.eachSpacing,z=B*(L.length-1),$=I-O;F=$-z,r.scrollOption={currentOffset:F,startTouchX:F,distance:0,lastMoveTime:0},e._scrollDistance_=F}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:ot(l,a,i,e)),t){case"word":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),ce(n,e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),se(n,e,a,i);break;case"funnel":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.funnelData=de(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Gt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Rt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Nt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=jt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Bt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Ht(o,e,a,i);var r=zt(n,e,a,i,t),s=r.yAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.yAxisPoints=s,e.chartData.xAxisPoints=e.chartData.xAxisData.xAxisPoints,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=Wt(n,e,a,i,t),s=r.xAxisPoints,l=r.calPoints,c=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=l,e.chartData.eachSpacing=c,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t,c,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.pieData=Jt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.pieData=Vt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.radarData=Kt(n,e,a,i,t),qt(e.series,e,a,i,e.chartData),Yt(e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.arcbarData=Qt(n,e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),e.chartData.gaugeData=Zt(o,n,e,a,i,t),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new ue({timing:e.timing,duration:s,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&_t(i,e),Xt(o,e,a,i),Ht(o,e,a,i);var r=$t(n,l,e,a,i,t),s=r.xAxisPoints,c=r.calPoints,d=r.eachSpacing;e.chartData.xAxisPoints=s,e.chartData.calPoints=c,e.chartData.eachSpacing=d,Ut(n,e,a,i),!1!==e.enableMarkLine&&1===t&&Ft(e,a,i),qt(l||e.series,e,a,i,e.chartData),Yt(e,a,i,t,d,s),pe(e,i)},onAnimationFinish:function(){r.uevent.trigger("renderComplete")}});break}}function ge(){this.events={}}ue.prototype.stop=function(){this.isStop=!0},ge.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},ge.prototype.delEventListener=function(t){this.events[t]=[]},ge.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var i=e[0],r=e.slice(1);this.events[i]&&this.events[i].forEach((function(t){try{t.apply(null,r)}catch(e){}}))};var ve=function(t){t.pix=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize:13,t.fontColor=t.fontColor?t.fontColor:l.fontColor,""!=t.background&&"none"!=t.background||(t.background="#FFFFFF"),t.title=c({},t.title),t.subtitle=c({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=c({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.xAxis=c({},{rotateLabel:!1,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.scrollPosition=t.xAxis.scrollAlign,t.legend=c({},{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:t.fontColor,formatter:{},hiddenColor:"#CECECE"},t.legend),t.extra=c({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate,t.canvas2d=!!t.canvas2d;var e=JSON.parse(JSON.stringify(l));if(e.color=t.color?t.color:e.color,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"ring"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.ring.labelWidth*t.pix||e.pieChartLinePadding*t.pix),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pix||e.pieChartLinePadding*t.pix),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pix,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:l.yAxisSplit,e.rotate=t.rotate,t.rotate){var a=t.width,i=t.height;t.width=i,t.height=a}if(t.padding=t.padding?t.padding:e.padding,e.yAxisWidth=l.yAxisWidth*t.pix,e.xAxisHeight=l.xAxisHeight*t.pix,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pix),e.xAxisLineHeight=l.xAxisLineHeight*t.pix,e.fontSize=t.fontSize*t.pix,e.titleFontSize=l.titleFontSize*t.pix,e.subtitleFontSize=l.subtitleFontSize*t.pix,e.toolTipPadding=l.toolTipPadding*t.pix,e.toolTipLineHeight=l.toolTipLineHeight*t.pix,e.columePadding=l.columePadding*t.pix,!t.context)throw new Error("[uCharts] \u672a\u83b7\u53d6\u5230context\uff01\u6ce8\u610f\uff1av2.0\u7248\u672c\u540e\uff0c\u9700\u8981\u81ea\u884c\u83b7\u53d6canvas\u7684\u7ed8\u56fe\u4e0a\u4e0b\u6587\u5e76\u4f20\u5165opts.context\uff01");this.context=t.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(t){return this.strokeStyle=t},this.context.setLineWidth=function(t){return this.lineWidth=t},this.context.setLineCap=function(t){return this.lineCap=t},this.context.setFontSize=function(t){return this.font=t+"px sans-serif"},this.context.setFillStyle=function(t){return this.fillStyle=t},this.context.setTextAlign=function(t){return this.textAlign=t},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(t){}),t.chartData={},this.uevent=new ge,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,xe.call(this,t.type,t,e,this.context)};ve.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=c({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=yt(this.opts.series,this.opts,this.config,this.context),i=a.yAxisWidth;this.config.yAxisWidth=i;var r=0,n=pt(this.opts.categories,this.opts,this.config),o=n.xAxisPoints,s=n.startX,l=n.endX,d=n.eachSpacing,h=d*(o.length-1),p=l-s;r=p-h,this.scrollOption={currentOffset:r,startTouchX:r,distance:0,lastMoveTime:0},this.opts._scrollDistance_=r;break}xe.call(this,this.opts.type,this.opts,this.config,this.context)},ve.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var a=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var i=yt(this.opts.series,this.opts,this.config,this.context),r=i.yAxisWidth;this.config.yAxisWidth=r;var n=0,o=pt(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,l=o.startX,c=o.endX,d=o.eachSpacing,h=d*a,p=c-l,f=p-d*(s.length-1);n=p/2-h,n>0&&(n=0),n<f&&(n=f),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,xe.call(this,this.opts.type,this.opts,this.config,this.context)}else t("log","[uCharts] \u8bf7\u542f\u7528\u6eda\u52a8\u6761\u540e\u4f7f\u7528"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6386")},ve.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},ve.prototype.addEventListener=function(t,e){this.uevent.addEventListener(t,e)},ve.prototype.delEventListener=function(t){this.uevent.delEventListener(t)},ve.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=P(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type?X({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?H({x:a.x,y:a.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?N({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?G({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?Y({x:a.x,y:a.y},this.opts):"word"===this.opts.type?j({x:a.x,y:a.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?z({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):B({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},ve.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=P(e,this.opts,t);return $({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},ve.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){P(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&("candle"==this.opts.type?this.opts.seriesMA[i].show=!this.opts.seriesMA[i].show:this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,xe.call(this,this.opts.type,this.opts,this.config,this.context))}},ve.prototype.showToolTip=function(e){var a=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||t("log","[uCharts] \u672a\u83b7\u53d6\u5230event\u5750\u6807\u4fe1\u606f"," at uni_modules/qiun-data-charts/js_sdk/u-charts/u-charts.js:6540");var n=P(r,this.opts,e),o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){var h=M(this.opts.series,d,l.group);if(0!==h.length){var p=L(h,this.opts,d,l.group,this.opts.categories,i),f=p.textList,u=p.offset;u.y=n.y,s.tooltip={textList:void 0!==i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("bar"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1||d.length>0){h=M(this.opts.series,d,l.group);if(0!==h.length){p=L(h,this.opts,d,l.group,this.opts.categories,i),f=p.textList,u=p.offset;u.x=n.x,s.tooltip={textList:void 0!==i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1}),h=M(this.opts.series,d);if(0!==h.length){var x=O(h,this.opts,d,this.opts.categories,i);f=x.textList,u=x.offset;u.y=n.y,s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(e),d=void 0==i.index?l.index:i.index;if(d>-1){o=this.scrollOption.currentOffset,s=c({},this.opts,{_scrollDistance_:o,animation:!1}),h=M(this.opts.series,d);if(0!==h.length){p=I(this.opts.series[0].data,h,this.opts,d,this.opts.categories,this.opts.extra.candle,i),f=p.textList,u=p.offset;u.y=n.y,s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},s._series_[d]),f=[{text:i.formatter?i.formatter(h,void 0,d,s):h.name+": "+h.data,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}xe.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]);h.name=h.properties.name;f=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,xe.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=c({},this.opts.series[d]),f=[{text:i.formatter?i.formatter(h,void 0,d,this.opts):h.name,color:h.color}],u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}s.updateData=!1,xe.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){d=void 0==i.index?this.getCurrentDataIndex(e):i.index;if(d>-1){s=c({},this.opts,{animation:!1}),h=M(this.opts.series,d);if(0!==h.length){f=h.map((function(t){return{text:i.formatter?i.formatter(t,a.opts.categories[d],d,a.opts):t.name+": "+t.data,color:t.color}})),u={x:n.x,y:n.y};s.tooltip={textList:i.textList?i.textList:f,offset:void 0!==i.offset?i.offset:u,option:i,index:d}}}xe.call(this,s.type,s,this.config,this.context)}},ve.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=c({},this.opts,{_scrollDistance_:t,animation:!1});xe.call(this,this.opts.type,e,this.config,this.context)},ve.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=P(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},ve.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.touchMoveLimit||60,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=a;var r=null;if(r=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],r&&!0===this.opts.enableScroll){var n,o=P(r,this.opts,t);n=o.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,l=x(this,s+n,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=n=l-s;var d=c({},this.opts,{_scrollDistance_:s+n,animation:!1});return this.opts=d,xe.call(this,d.type,d,this.config,this.context),s+n}}},ve.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}};var me=ve;e.default=me}).call(this,a("0de9")["default"])},b59e:function(t,e,a){"use strict";a.r(e);var i=a("97ff"),r=a("3836");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("bafa");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe25cc46",null,!1,i["a"],o);e["default"]=l.exports},b72d:function(t,e,a){"use strict";a.r(e);var i=a("1f62"),r=a("1533");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("52ba");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe046e60",null,!1,i["a"],o);e["default"]=l.exports},b8d8:function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):0===t.indexOf("/")?t.substr(1):t)}},ba63:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-38a0d81e]{width:30px;height:30px;position:relative}.container.loading6[data-v-38a0d81e]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading6 .shape[data-v-38a0d81e]{width:12px;height:12px;border-radius:2px}.container .shape[data-v-38a0d81e]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-38a0d81e]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-38a0d81e]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-38a0d81e]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-38a0d81e]{bottom:0;right:0;background-color:#e66}.loading6 .shape1[data-v-38a0d81e]{-webkit-animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape1-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}@keyframes animation6shape1-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(18px);transform:translateY(18px)}50%{-webkit-transform:translate(18px,18px);transform:translate(18px,18px)}75%{-webkit-transform:translate(18px);transform:translate(18px)}}.loading6 .shape2[data-v-38a0d81e]{-webkit-animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape2-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}@keyframes animation6shape2-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(-18px);transform:translate(-18px)}50%{-webkit-transform:translate(-18px,18px);transform:translate(-18px,18px)}75%{-webkit-transform:translateY(18px);transform:translateY(18px)}}.loading6 .shape3[data-v-38a0d81e]{-webkit-animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape3-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}@keyframes animation6shape3-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translate(18px);transform:translate(18px)}50%{-webkit-transform:translate(18px,-18px);transform:translate(18px,-18px)}75%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}}.loading6 .shape4[data-v-38a0d81e]{-webkit-animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal;animation:animation6shape4-data-v-38a0d81e 2s linear 0s infinite normal}@-webkit-keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}@keyframes animation6shape4-data-v-38a0d81e{0%{-webkit-transform:translate(0);transform:translate(0)}25%{-webkit-transform:translateY(-18px);transform:translateY(-18px)}50%{-webkit-transform:translate(-18px,-18px);transform:translate(-18px,-18px)}75%{-webkit-transform:translate(-18px);transform:translate(-18px)}}",""]),t.exports=e},baba:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nbody,\r\nhtml{-webkit-user-select:auto;user-select:auto}\n.uni-nav-menu{height:100vh}\n.pointer{cursor:pointer}.uni-top-window{z-index:998;overflow:visible}.uni-tips{font-size:12px;color:#666}.uni-container{padding:15px;box-sizing:border-box}.uni-header{padding:0 15px;display:flex;height:55px;align-items:center;justify-content:space-between;border-bottom:1px #f5f5f5 solid}.uni-title{margin-right:10px;font-size:16px;font-weight:500;color:#333}.uni-sub-title{margin-top:3px;font-size:14px;color:#999}.uni-link{color:#3a8ee6;cursor:pointer;text-decoration:underline}.uni-group{display:flex;align-items:center;justify-content:center;word-break:keep-all}.uni-button-group{margin-top:30px;display:flex;align-items:center;justify-content:center}.uni-button{padding:10px 20px;font-size:14px;border-radius:4px;line-height:1;margin:0;box-sizing:border-box;overflow:initial}.uni-button+.uni-button{margin-left:10px}.uni-button:hover,\r\n.uni-button:focus{opacity:.9}.uni-button:active{opacity:1}.uni-button-full{width:100%}.uni-search{height:30px;line-height:30px;font-size:12px;padding:0 10px;border:1px #eee solid;margin-right:10px;border-radius:5px}.uni-pagination-box{display:flex;justify-content:center;margin-top:20px}.uni-input-border,\r\n.uni-textarea-border{width:100%;font-size:14px;color:#666;border:1px #e5e5e5 solid;border-radius:5px;box-sizing:border-box}.uni-input-border{padding:0 10px;height:35px}.uni-textarea-border{padding:10px;height:80px}.uni-disabled{background-color:#f5f7fa;color:#c0c4cc}.uni-icon-password-eye{position:absolute;right:8px;top:6px;font-family:uniicons;font-size:20px;font-weight:400;font-style:normal;width:24px;height:24px;line-height:24px;color:#999}.uni-eye-active{color:#007aff}.uni-tabs__header{position:relative;background-color:#f5f7fa;border-bottom:1px solid #e4e7ed}.uni-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.uni-tabs__nav-scroll{overflow:hidden}.uni-tabs__nav{position:relative;white-space:nowrap}.uni-tabs__item{position:relative;padding:0 20px;height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:500;color:#909399;margin-top:-1px;margin-left:-1px;border:1px solid transparent;cursor:pointer}.uni-tabs__item.is-active{color:#007aff;background-color:#fff;border-right-color:#dcdfe6;border-left-color:#dcdfe6}.uni-form-item-tips{color:#999;font-size:12px;margin-top:3px;position:absolute}.uni-form-item-empty{color:#999;min-height:36px;line-height:36px}",""]),t.exports=e},bafa:function(t,e,a){"use strict";var i=a("2b2c"),r=a.n(i);r.a},bafd:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),attrs:{_i:1}},[a("v-uni-text",{staticClass:t._$g(2,"sc"),class:t._$g(2,"c"),attrs:{_i:2}},[t._v(t._$g(2,"t0-0"))])],1),t._$g(3,"i")?a("v-uni-view",{staticClass:t._$g(3,"sc"),attrs:{_i:3}},[t._t("default",[a("v-uni-text",{staticClass:t._$g(5,"sc"),attrs:{_i:5}},[t._v(t._$g(5,"t0-0"))])],{_i:4})],2):a("v-uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6}},[t._t("default",[a("v-uni-input",{staticClass:t._$g(8,"sc"),attrs:{type:"text",placeholder:t._$g(8,"a-placeholder"),focus:t._$g(8,"a-focus"),_i:8},model:{value:t._$g(8,"v-model"),callback:function(e){t.$handleVModelEvent(8,e)},expression:"val"}})],{_i:7})],2),a("v-uni-view",{staticClass:t._$g(9,"sc"),attrs:{_i:9}},[a("v-uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-text",{staticClass:t._$g(11,"sc"),attrs:{_i:11}},[t._v(t._$g(11,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-text",{staticClass:t._$g(13,"sc"),attrs:{_i:13}},[t._v(t._$g(13,"t0-0"))])],1)],1)],1)},n=[]},bb88:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniTransition",props:["show","modeClass","duration","styles","customClass"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},bdfc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uniPopup",props:["animation","type","isMaskClick","maskClick","backgroundColor","safeArea","maskBackgroundColor"],data:function(){return{wxsProps:{}}},components:{}};e.default=i},befa:function(t,e,a){"use strict";var i=a("69ae"),r=a.n(i);r.a},bfc6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"loading1",data:function(){return{wxsProps:{}}},components:{}};e.default=i},c03d:function(t,e,a){"use strict";a.r(e);var i=a("70d1"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},c4eb:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={uniTransition:a("9e6c").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("v-uni-view",{staticClass:t._$g(0,"sc"),class:t._$g(0,"c"),attrs:{_i:0},on:{touchmove:function(e){return t.$handleViewEvent(e,{stop:!0,prevent:!0})}}},[a("v-uni-view",{attrs:{_i:1},on:{touchstart:function(e){return t.$handleViewEvent(e)}}},[t._$g(2,"i")?a("uni-transition",{key:"1",attrs:{_i:2},on:{click:function(e){return t.$handleViewEvent(e)}}}):t._e(),a("uni-transition",{key:"2",attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("v-uni-view",{staticClass:t._$g(4,"sc"),class:t._$g(4,"c"),style:t._$g(4,"s"),attrs:{_i:4},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:5})],2)],1)],1)],1):t._e()},n=[]},c6b4:function(t,e,a){"use strict";a.r(e);var i=a("fb25"),r=a("965e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("f538");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);e["default"]=l.exports},c6e8:function(t,e){t.exports="/static/right.png"},c8ac:function(t,e,a){"use strict";a.r(e);var i=a("223c"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},c971:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-e14678f8]{width:30px;height:30px;position:relative}.container.loading2[data-v-e14678f8]{-webkit-transform:rotate(10deg);transform:rotate(10deg)}.container.loading2 .shape[data-v-e14678f8]{border-radius:5px}.container.loading2[data-v-e14678f8]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container .shape[data-v-e14678f8]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-e14678f8]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-e14678f8]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-e14678f8]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-e14678f8]{bottom:0;right:0;background-color:#e66}.loading2 .shape1[data-v-e14678f8]{-webkit-animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape1-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}@keyframes animation2shape1-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,20px);transform:translate(20px,20px)}}.loading2 .shape2[data-v-e14678f8]{-webkit-animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape2-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}@keyframes animation2shape2-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,20px);transform:translate(-20px,20px)}}.loading2 .shape3[data-v-e14678f8]{-webkit-animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape3-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}@keyframes animation2shape3-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(20px,-20px);transform:translate(20px,-20px)}}.loading2 .shape4[data-v-e14678f8]{-webkit-animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate;animation:animation2shape4-data-v-e14678f8 .5s ease 0s infinite alternate}@-webkit-keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}@keyframes animation2shape4-data-v-e14678f8{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-20px,-20px);transform:translate(-20px,-20px)}}",""]),t.exports=e},d44b:function(t,e,a){"use strict";a.r(e);var i=a("c4eb"),r=a("095e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("37d3");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"fe8e381e",null,!1,i["a"],o);e["default"]=l.exports},d868:function(t,e,a){"use strict";a.r(e);var i=a("bb88"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},dbb8:function(t,e,a){"use strict";function i(){function t(t){var e=a("c03d");e.__inject__&&e.__inject__(t)}"function"===typeof t&&t(),UniViewJSBridge.publishHandler("webviewReady")}a("4eca"),"undefined"!==typeof plus?i():document.addEventListener("plusready",i)},dbcc:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t._$g(0,"i")?a("v-uni-view",{ref:"ani",class:t._$g(0,"c"),style:t._$g(0,"s"),attrs:{animation:t._$g(0,"a-animation"),_i:0},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._t("default",null,{_i:1})],2):t._e()},n=[]},de4d:function(t,e,a){"use strict";a.r(e);var i=a("9264"),r=a("0d3e");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("befa");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"3b8cb2d8",null,!1,i["a"],o);e["default"]=l.exports},e891:function(t,e,a){"use strict";a.r(e);var i=a("4bda"),r=a("2c81");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("648d");var o,s=a("f0c5"),l=Object(s["a"])(r["default"],i["b"],i["c"],!1,null,"e14678f8",null,!1,i["a"],o);e["default"]=l.exports},eaa4:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".container[data-v-fe25cc46]{width:30px;height:30px;position:relative}.container.loading3[data-v-fe25cc46]{-webkit-animation:rotation 1s infinite;animation:rotation 1s infinite}.container.loading3 .shape1[data-v-fe25cc46]{border-top-left-radius:10px}.container.loading3 .shape2[data-v-fe25cc46]{border-top-right-radius:10px}.container.loading3 .shape3[data-v-fe25cc46]{border-bottom-left-radius:10px}.container.loading3 .shape4[data-v-fe25cc46]{border-bottom-right-radius:10px}.container .shape[data-v-fe25cc46]{position:absolute;width:10px;height:10px;border-radius:1px}.container .shape.shape1[data-v-fe25cc46]{left:0;background-color:#1890ff}.container .shape.shape2[data-v-fe25cc46]{right:0;background-color:#91cb74}.container .shape.shape3[data-v-fe25cc46]{bottom:0;background-color:#fac858}.container .shape.shape4[data-v-fe25cc46]{bottom:0;right:0;background-color:#e66}.loading3 .shape1[data-v-fe25cc46]{-webkit-animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape1-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}@keyframes animation3shape1-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,5px);transform:translate(5px,5px)}}.loading3 .shape2[data-v-fe25cc46]{-webkit-animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape2-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}@keyframes animation3shape2-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,5px);transform:translate(-5px,5px)}}.loading3 .shape3[data-v-fe25cc46]{-webkit-animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape3-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}@keyframes animation3shape3-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(5px,-5px);transform:translate(5px,-5px)}}.loading3 .shape4[data-v-fe25cc46]{-webkit-animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate;animation:animation3shape4-data-v-fe25cc46 .5s ease 0s infinite alternate}@-webkit-keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}@keyframes animation3shape4-data-v-fe25cc46{from{-webkit-transform:translate(0);transform:translate(0)}to{-webkit-transform:translate(-5px,-5px);transform:translate(-5px,-5px)}}",""]),t.exports=e},f0c5:function(t,e,a){"use strict";function i(t,e,a,i,r,n,o,s,l,c){var d,h="function"===typeof t?t.options:t;if(l){h.components||(h.components={});var p=Object.prototype.hasOwnProperty;for(var f in l)p.call(l,f)&&!p.call(h.components,f)&&(h.components[f]=l[f])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(h.mixins||(h.mixins=[])).push(c)),e&&(h.render=e,h.staticRenderFns=a,h._compiled=!0),i&&(h.functional=!0),n&&(h._scopeId="data-v-"+n),o?(d=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},h._ssrRegister=d):r&&(d=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),d)if(h.functional){h._injectStyles=d;var u=h.render;h.render=function(t,e){return d.call(e),u(t,e)}}else{var x=h.beforeCreate;h.beforeCreate=x?[].concat(x,d):[d]}return{exports:t,options:h}}a.d(e,"a",(function(){return i}))},f27d:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],r={type:["pie","ring","rose","funnel","line","column","area","radar","gauge","candle","demotype"],categories:["line","column","area","radar","gauge","candle","demotype"],instance:{},option:{},formatter:{tooltipDemo1:function(t){var e="";for(var a in t){0==a&&(e+=t[a].axisValueLabel+"\u5e74\u9500\u552e\u989d");var i="--";null!==t[a].data&&(i=t[a].data),e+="<br/>"+t[a].marker+t[a].seriesName+"\uff1a"+i+" \u4e07\u5143"}return e},legendFormat:function(t){return"\u81ea\u5b9a\u4e49\u56fe\u4f8b+"+t},yAxisFormatDemo:function(t,e){return t+"\u5143"},seriesFormatDemo:function(t){return t.name+"\u5e74"+t.value+"\u5143"}},demotype:{color:i},column:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{top:"left",textStyle:{color:"#cccccc"}},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!1,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#CCCCCC"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!1,color:"#666666",position:"top"}}},area:{color:i,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:i,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left",textStyle:{color:"#cccccc"}},seriesTemplate:{name:"",type:"pie",data:[],radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!1,color:"#FFF",position:"top"},labelLine:{show:!0}}},rose:{color:i,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:i,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:i,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"\u4e1a\u52a1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5b8c\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:i,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},n=r;e.default=n},f49d:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={qiunLoading:a("973e").default,qiunError:a("b72d").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{id:t._$g(0,"a-id"),_i:0}},[t._$g(1,"i")?a("v-uni-view",{attrs:{_i:1}},[a("qiun-loading",{attrs:{_i:2}})],1):t._e(),t._$g(3,"i")?a("v-uni-view",{attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}}},[a("qiun-error",{attrs:{_i:4}})],1):t._e(),t._$g(5,"i")?[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t._$g(6,"v-show"),expression:"_$g(6,'v-show')"}],wxsProps:{"change:resize":"echartsResize","change:prop":"echartsOpts"},staticStyle:{width:"100%",height:"100%"},style:t._$g(6,"s"),attrs:{"data-directory":t._$g(6,"a-data-directory"),id:t._$g(6,"a-id"),prop:t._$gc(6,"change:echartsOpts"),"change:prop":t.rdcharts.ecinit,resize:t._$gc(6,"change:echartsResize"),"change:resize":t.rdcharts.ecresize,_i:6}})]:[a("v-uni-view",{wxsProps:{"change:prop":"uchartsOpts"},attrs:{id:t._$g(8,"a-id"),prop:t._$gc(8,"change:uchartsOpts"),"change:prop":t.rdcharts.ucinit,_i:8},on:{mousemove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseMove(e,t.$getComponentDescriptor())},mousedown:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseDown(e,t.$getComponentDescriptor())},mouseup:function(e){e=t.$handleWxsEvent(e),t.rdcharts.mouseUp(e,t.$getComponentDescriptor())},touchstart:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchStart(e,t.$getComponentDescriptor())},touchmove:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchMove(e,t.$getComponentDescriptor())},touchend:function(e){e=t.$handleWxsEvent(e),t.rdcharts.touchEnd(e,t.$getComponentDescriptor())},click:function(e){e=t.$handleWxsEvent(e),t.rdcharts.tap(e,t.$getComponentDescriptor())}}},[a("v-uni-canvas",{directives:[{name:"show",rawName:"v-show",value:t._$g(9,"v-show"),expression:"_$g(9,'v-show')"}],style:t._$g(9,"s"),attrs:{id:t._$g(9,"a-id"),canvasId:t._$g(9,"a-canvasId"),"disable-scroll":t._$g(9,"a-disable-scroll"),_i:9},on:{error:function(e){return t.$handleViewEvent(e)}}})],1)]],2)},n=[]},f538:function(t,e,a){"use strict";var i=a("9fb2"),r=a.n(i);r.a},fb25:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={qiunDataCharts:a("2b52").default,uniPopup:a("d44b").default,uniPopupDialog:a("848c").default},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:t._$g(0,"sc"),attrs:{_i:0}},[a("v-uni-view",{staticClass:t._$g(1,"sc"),class:t._$g(1,"c"),attrs:{_i:1}},[a("v-uni-view",{staticClass:t._$g(2,"sc"),attrs:{_i:2}},[a("v-uni-text",{attrs:{_i:3},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("\u81ea\u52a8\u4ed3\u5e93WCS\u76d1\u63a7\u5e73\u53f0")]),a("v-uni-view",{staticClass:t._$g(4,"sc"),attrs:{_i:4}},[t._v(t._$g(4,"t0-0")+"-"+t._$g(4,"t0-1")+"-"+t._$g(4,"t0-2")+"\xa0"+t._$g(4,"t0-3")+":"+t._$g(4,"t0-4")+":"+t._$g(4,"t0-5")+"\xa0"+t._$g(4,"t0-6"))]),a("v-uni-view",{staticClass:t._$g(5,"sc"),attrs:{_i:5},on:{click:function(e){return t.$handleViewEvent(e)}}}),a("v-uni-view",{staticClass:t._$g(6,"sc"),attrs:{_i:6},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("v-uni-view",{staticClass:t._$g(7,"sc"),attrs:{_i:7}},[a("v-uni-view",{staticClass:t._$g(8,"sc"),staticStyle:{width:"100%"},attrs:{_i:8}},[a("v-uni-view",{staticClass:t._$g(9,"sc"),staticStyle:{height:"90%"},attrs:{_i:9}},[a("v-uni-view",{staticClass:t._$g(10,"sc"),attrs:{_i:10}}),a("v-uni-view",{staticClass:t._$g(11,"sc"),attrs:{_i:11}}),a("v-uni-view",{staticClass:t._$g(12,"sc"),attrs:{_i:12}}),a("v-uni-view",{staticClass:t._$g(13,"sc"),attrs:{_i:13}}),a("v-uni-view",{staticStyle:{width:"10%",height:"100%",display:"inline-block",float:"left","text-align":"center","padding-top":"180px"},attrs:{_i:14}},[a("v-uni-text",{attrs:{_i:15}},[t._v(t._$g(15,"t0-0"))])],1),a("v-uni-view",{staticStyle:{width:"80%",height:"100%",display:"inline-block",float:"left","font-size":"160rpx"},attrs:{_i:16}},[a("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t._$g(17,"v-show"),expression:"_$g(17,'v-show')"}],staticClass:t._$g(17,"sc"),attrs:{_i:17}},[t._v(t._$g(17,"t0-0"))]),a("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t._$g(18,"v-show"),expression:"_$g(18,'v-show')"}],attrs:{_i:18}},[t._v(t._$g(18,"t0-0"))]),a("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:t._$g(19,"v-show"),expression:"_$g(19,'v-show')"}],attrs:{_i:19}},[t._v(t._$g(19,"t0-0"))])],1),a("v-uni-view",{staticStyle:{width:"10%",height:"100%",display:"inline-block",float:"right","padding-top":"180px"},attrs:{_i:20}},[a("v-uni-text",{attrs:{_i:21}},[t._v(t._$g(21,"t0-0"))])],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(22,"sc"),class:t._$g(22,"c"),attrs:{_i:22}},[a("v-uni-view",{staticClass:t._$g(23,"sc"),attrs:{_i:23}},[a("v-uni-text",{attrs:{_i:24},on:{click:function(e){return t.$handleViewEvent(e)}}},[t._v("\u81ea\u52a8\u4ed3\u5e93WCS\u76d1\u63a7\u5e73\u53f0")]),a("v-uni-view",{staticClass:t._$g(25,"sc"),attrs:{_i:25}},[t._v(t._$g(25,"t0-0")+"-"+t._$g(25,"t0-1")+"-"+t._$g(25,"t0-2")+"\xa0"+t._$g(25,"t0-3")+":"+t._$g(25,"t0-4")+":"+t._$g(25,"t0-5")+"\xa0"+t._$g(25,"t0-6"))]),a("v-uni-view",{staticClass:t._$g(26,"sc"),attrs:{_i:26},on:{click:function(e){return t.$handleViewEvent(e)}}}),a("v-uni-view",{staticClass:t._$g(27,"sc"),attrs:{_i:27},on:{click:function(e){return t.$handleViewEvent(e)}}})],1),a("v-uni-view",{staticClass:t._$g(28,"sc"),attrs:{_i:28}},[a("v-uni-view",{staticClass:t._$g(29,"sc"),attrs:{_i:29}},[a("v-uni-view",{staticClass:t._$g(30,"sc"),attrs:{_i:30}},[a("v-uni-view",{staticClass:t._$g(31,"sc"),attrs:{_i:31}}),a("v-uni-view",{staticClass:t._$g(32,"sc"),attrs:{_i:32}}),a("v-uni-view",{staticClass:t._$g(33,"sc"),attrs:{_i:33}}),a("v-uni-view",{staticClass:t._$g(34,"sc"),attrs:{_i:34}}),a("v-uni-view",{staticClass:t._$g(35,"sc"),attrs:{_i:35}},[a("h3",{attrs:{_i:36}},[t._v("\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93")]),a("p",{staticClass:t._$g(37,"sc"),attrs:{_i:37}},[t._v("Automatic Storageand Retrieval System")]),a("p",{staticClass:t._$g(38,"sc"),attrs:{_i:38}},[t._v("\u5229\u7528\u7acb\u4f53\u4ed3\u5e93\u8bbe\u5907\u53ef\u5b9e\u73b0\u4ed3\u5e93\u9ad8\u5c42\u5408\u7406\u5316\u3001\u5b58\u53d6\u81ea\u52a8\u5316\u3001\u64cd\u4f5c\u7b80\u4fbf\u5316\uff1b\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93\u662f\u5f53\u524d\u6280\u672f\u6c34\u5e73\u8f83\u9ad8\u7684\u5f62\u5f0f\u3002\n\t\t\t\t\t\t\u81ea\u52a8\u5316\u7acb\u4f53\u4ed3\u5e93\u7684\u4e3b\u4f53\u7531\u8d27\u67b6\u3001\u5df7\u9053\u5f0f\u5806\u579b\u8d77\u91cd\u673a\u3001\u5165\uff08\u51fa\uff09\u5e93\u5de5\u4f5c\u53f0\u548c\u81ea\u52a8\u8fd0\u8fdb\uff08\u51fa\uff09\u53ca\u64cd\u4f5c\u63a7\u5236\u7cfb\u7edf\u7ec4\u6210\u3002\n\t\t\t\t\t\t\u8d27\u67b6\u662f\u94a2\u7ed3\u6784\u6216\u94a2\u7b4b\u6df7\u51dd\u571f\u7ed3\u6784\u7684\u5efa\u7b51\u7269\u6216\u7ed3\u6784\u4f53\uff0c\u8d27\u67b6\u5185\u662f\u6807\u51c6\u5c3a\u5bf8\u7684\u8d27\u4f4d\u7a7a\u95f4\uff0c\u5df7\u9053\u5806\u579b\u8d77\u91cd\u673a\u7a7f\u884c\u4e8e\u8d27\u67b6\u4e4b\u95f4\u7684\u5df7\u9053\u4e2d\uff0c\u5b8c\u6210\u5b58\u3001\u53d6\u8d27\u7684\u5de5\u4f5c\u3002\u7ba1\u7406\u4e0a\u91c7\u7528\u8ba1\u7b97\u673a\u53ca\u6761\u5f62\u7801\u6280\u672f\u3002")])],1),a("v-uni-view",{staticClass:t._$g(39,"sc"),attrs:{_i:39}},[a("h3",{attrs:{_i:40}},[t._v("\u4ed3\u5e93\u6570\u636e")]),a("p",{staticClass:t._$g(41,"sc"),attrs:{_i:41}},[t._v("warehouse data")]),a("v-uni-view",{staticClass:t._$g(42,"sc"),attrs:{_i:42}},[a("v-uni-image",{attrs:{src:t._$g(43,"a-src"),mode:"aspectFit",_i:43}}),a("v-uni-view",{attrs:{_i:44}},[a("v-uni-text",{staticClass:t._$g(45,"sc"),attrs:{_i:45}},[t._v(t._$g(45,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(46,"sc"),attrs:{_i:46}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:47}},[t._v("\u7d2f\u8ba1\u8d70\u884c\u8ddd\u79bb(\u7c73)")])],1),a("v-uni-view",{staticClass:t._$g(48,"sc"),attrs:{_i:48}},[a("v-uni-image",{attrs:{src:t._$g(49,"a-src"),mode:"aspectFit",_i:49}}),a("v-uni-view",{attrs:{_i:50}},[a("v-uni-text",{staticClass:t._$g(51,"sc"),attrs:{_i:51}},[t._v(t._$g(51,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(52,"sc"),attrs:{_i:52}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:53}},[t._v("\u7d2f\u8ba1\u5347\u964d\u8ddd\u79bb(\u7c73)")])],1),a("v-uni-view",{staticClass:t._$g(54,"sc"),attrs:{_i:54}},[a("v-uni-image",{attrs:{src:t._$g(55,"a-src"),mode:"aspectFit",_i:55}}),a("v-uni-view",{attrs:{_i:56}},[a("v-uni-text",{staticClass:t._$g(57,"sc"),attrs:{_i:57}},[t._v(t._$g(57,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(58,"sc"),attrs:{_i:58}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:59}},[t._v("\u7d2f\u8ba1\u8d70\u884c\u65f6\u957f(\u79d2)")])],1),a("v-uni-view",{staticClass:t._$g(60,"sc"),attrs:{_i:60}},[a("v-uni-image",{attrs:{src:t._$g(61,"a-src"),mode:"aspectFit",_i:61}}),a("v-uni-view",{attrs:{_i:62}},[a("v-uni-text",{staticClass:t._$g(63,"sc"),attrs:{_i:63}},[t._v(t._$g(63,"t0-0"))]),a("v-uni-text",{staticClass:t._$g(64,"sc"),attrs:{_i:64}},[t._v("m")])],1),a("v-uni-view",{attrs:{_i:65}},[t._v("\u7d2f\u8ba1\u5347\u964d\u65f6\u957f(\u79d2)")])],1)],1),a("v-uni-view",{staticClass:t._$g(66,"sc"),attrs:{_i:66}},[a("v-uni-view",{staticClass:t._$g(67,"sc"),attrs:{_i:67}},[a("h3",{attrs:{_i:68}},[t._v("\u5e93\u4f4d\u4f7f\u7528\u7387")]),a("p",{staticClass:t._$g(69,"sc"),attrs:{_i:69}},[t._v("EQUIPMENT USAGE THIS MONTH")])],1),a("v-uni-view",{staticClass:t._$g(70,"sc"),attrs:{_i:70}},[a("h3",{attrs:{_i:71}},[t._v("20%")]),a("p",{staticClass:t._$g(72,"sc"),attrs:{_i:72}},[t._v("\u540c\u6bd4\u4e0a\u6708 + 5%")])],1),a("v-uni-view",{staticClass:t._$g(73,"sc"),attrs:{_i:73}},[a("v-uni-view",{staticClass:t._$g(74,"sc"),attrs:{_i:74}},[a("v-uni-view",{staticClass:t._$g(75,"sc"),attrs:{_i:75}},[a("v-uni-view",{staticClass:t._$g(76,"sc"),style:t._$g(76,"s"),attrs:{_i:76}})],1)],1),a("v-uni-view",{staticClass:t._$g(77,"sc"),attrs:{_i:77}},[t._v(t._$g(77,"t0-0"))])],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(78,"sc"),attrs:{_i:78}},[a("v-uni-view",{staticClass:t._$g(79,"sc"),attrs:{_i:79}},[a("v-uni-view",{staticClass:t._$g(80,"sc"),attrs:{_i:80}}),a("v-uni-view",{staticClass:t._$g(81,"sc"),attrs:{_i:81}}),a("v-uni-view",{staticClass:t._$g(82,"sc"),attrs:{_i:82}}),a("v-uni-view",{staticClass:t._$g(83,"sc"),attrs:{_i:83}}),a("v-uni-view",{staticClass:t._$g(84,"sc"),attrs:{_i:84}},[a("v-uni-view",{staticClass:t._$g(85,"sc"),attrs:{_i:85}},[a("h3",{attrs:{_i:86}},[t._v("\u5165\u51fa\u5e93\u7edf\u8ba1")]),a("p",{staticClass:t._$g(87,"sc"),attrs:{_i:87}},[t._v("ORDER STATISTICS")])],1),a("v-uni-view",{staticClass:t._$g(88,"sc"),attrs:{_i:88}},[a("h3",{attrs:{_i:89}},[t._v("31")]),a("p",{staticClass:t._$g(90,"sc"),attrs:{_i:90}},[t._v("\u4eca\u65e5\u8ba2\u5355\u6570")])],1),a("v-uni-view",{staticClass:t._$g(91,"sc"),attrs:{_i:91}},[a("v-uni-view",{staticClass:t._$g(92,"sc"),attrs:{_i:92}},[a("qiun-data-charts",{attrs:{_i:93}})],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(94,"sc"),attrs:{_i:94}},[a("v-uni-view",{staticClass:t._$g(95,"sc"),attrs:{_i:95}}),a("v-uni-view",{staticClass:t._$g(96,"sc"),attrs:{_i:96}}),a("v-uni-view",{staticClass:t._$g(97,"sc"),attrs:{_i:97}}),a("v-uni-view",{staticClass:t._$g(98,"sc"),attrs:{_i:98}}),a("v-uni-view",{staticClass:t._$g(99,"sc"),attrs:{_i:99}},[a("v-uni-view",{staticClass:t._$g(100,"sc"),attrs:{_i:100}},[a("h3",{attrs:{_i:101}},[t._v("\u5e93\u5b58\u7c7b\u578b")]),a("p",{staticClass:t._$g(102,"sc"),attrs:{_i:102}},[t._v("INCOME DATE")])],1),a("v-uni-view",{staticClass:t._$g(103,"sc"),attrs:{_i:103}},[a("h3",{attrs:{_i:104}},[t._v("\u4eca\u5929")]),a("p",{staticClass:t._$g(105,"sc"),attrs:{_i:105}},[t._v("Today")])],1),a("v-uni-view",{staticClass:t._$g(106,"sc"),attrs:{_i:106}},[a("v-uni-view",{staticClass:t._$g(107,"sc"),attrs:{_i:107}},[a("qiun-data-charts",{attrs:{_i:108}})],1),a("v-uni-view",{staticClass:t._$g(109,"sc"),attrs:{_i:109}},[a("v-uni-view",{staticClass:t._$g(110,"sc"),attrs:{_i:110}},[a("v-uni-image",{attrs:{src:t._$g(111,"a-src"),mode:"aspectFit",_i:111}}),a("v-uni-text",{attrs:{_i:112}},[t._v("\u5728\u5e93")]),a("v-uni-text",{attrs:{_i:113}},[t._v(t._$g(113,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(114,"sc"),attrs:{_i:114}},[a("v-uni-image",{attrs:{src:t._$g(115,"a-src"),mode:"aspectFit",_i:115}}),a("v-uni-text",{attrs:{_i:116}},[t._v("\u7a7a\u5e93")]),a("v-uni-text",{attrs:{_i:117}},[t._v(t._$g(117,"t0-0"))])],1),a("v-uni-view",{staticClass:t._$g(118,"sc"),attrs:{_i:118}},[a("v-uni-image",{attrs:{src:t._$g(119,"a-src"),mode:"aspectFit",_i:119}}),a("v-uni-text",{attrs:{_i:120}},[t._v("\u7981\u7528")]),a("v-uni-text",{attrs:{_i:121}},[t._v(t._$g(121,"t0-0"))])],1)],1)],1)],1)],1),a("v-uni-view",{staticClass:t._$g(122,"sc"),attrs:{_i:122}},[a("v-uni-view",{staticClass:t._$g(123,"sc"),attrs:{_i:123}}),a("v-uni-view",{staticClass:t._$g(124,"sc"),attrs:{_i:124}}),a("v-uni-view",{staticClass:t._$g(125,"sc"),attrs:{_i:125}}),a("v-uni-view",{staticClass:t._$g(126,"sc"),attrs:{_i:126}}),a("v-uni-view",{attrs:{_i:127}},[t._v("\u6d59\u6c5f\u4e2d\u626c\u7acb\u5e93\u6280\u672f\u6709\u9650\u516c\u53f8")]),a("v-uni-image",{attrs:{src:t._$g(128,"a-src"),mode:"aspectFit",_i:128}})],1)],1)],1)],1),a("v-uni-view",{attrs:{_i:129}},[a("uni-popup",{ref:"url",attrs:{_i:130}},[a("uni-popup-dialog",{ref:"inputClose",attrs:{_i:131},on:{confirm:function(e){return t.$handleViewEvent(e)}}})],1)],1),a("v-uni-view",{attrs:{_i:132}},[a("uni-popup",{ref:"ledId",attrs:{_i:133}},[a("uni-popup-dialog",{ref:"inputClose",attrs:{_i:134},on:{confirm:function(e){return t.$handleViewEvent(e)}}})],1)],1),a("v-uni-view",{attrs:{_i:135}},[a("uni-popup",{ref:"port",attrs:{_i:136}},[a("uni-popup-dialog",{ref:"inputClose",attrs:{_i:137},on:{confirm:function(e){return t.$handleViewEvent(e)}}})],1)],1)],1)},n=[]},fed7:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";.uni-popup-dialog[data-v-f0f7e4d2]{width:300px;border-radius:11px;background-color:#fff}.uni-dialog-title[data-v-f0f7e4d2]{display:flex;flex-direction:row;justify-content:center;padding-top:25px}.uni-dialog-title-text[data-v-f0f7e4d2]{font-size:16px;font-weight:500}.uni-dialog-content[data-v-f0f7e4d2]{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:20px}.uni-dialog-content-text[data-v-f0f7e4d2]{font-size:14px;color:#6c6c6c}.uni-dialog-button-group[data-v-f0f7e4d2]{display:flex;flex-direction:row;border-top-color:#f5f5f5;border-top-style:solid;border-top-width:1px}.uni-dialog-button[data-v-f0f7e4d2]{display:flex;flex:1;flex-direction:row;justify-content:center;align-items:center;height:45px}.uni-border-left[data-v-f0f7e4d2]{border-left-color:#f0f0f0;border-left-style:solid;border-left-width:1px}.uni-dialog-button-text[data-v-f0f7e4d2]{font-size:16px;color:#333}.uni-button-color[data-v-f0f7e4d2]{color:#007aff}.uni-dialog-input[data-v-f0f7e4d2]{flex:1;font-size:14px;border:1px #eee solid;height:40px;padding:0 10px;border-radius:5px;color:#555}.uni-popup__success[data-v-f0f7e4d2]{color:#4cd964}.uni-popup__warn[data-v-f0f7e4d2]{color:#f0ad4e}.uni-popup__error[data-v-f0f7e4d2]{color:#dd524d}.uni-popup__info[data-v-f0f7e4d2]{color:#909399}',""]),t.exports=e}});