(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"011a":function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"076d":function(e,t,n){},"0bdb":function(e,t,n){var r=n("d551");function i(e,t){for(var n=0;n-1||"function"===typeof s[e])}a[o]=function(){var e={};for(var t in s)l(t)&&(e[t]=s[t]);return e}(),a[o].canIUse("getAppBaseInfo")||(a[o].getAppBaseInfo=a[o].getSystemInfoSync),a[o].canIUse("getWindowInfo")||(a[o].getWindowInfo=a[o].getSystemInfoSync),a[o].canIUse("getDeviceInfo")||(a[o].getDeviceInfo=a[o].getSystemInfoSync);var u=a[o];t.default=u},3240:function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2024 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function m(e,t){return y.call(e,t)}function x(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var _=/-(\w)/g,b=x((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),w=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,A=x((function(e){return e.replace(k,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function C(e){for(var t={},n=0;n0),X=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===V),Y=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/),{}.watch);if(W)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Rn){}var Z=function(){return void 0===z&&(z=!W&&!H&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),z},ee=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var ne,re="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);ne="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=O,ae=0,oe=function(){this.id=ae++,this.subs=[]};function se(e){oe.SharedObject.targetStack.push(e),oe.SharedObject.target=e,oe.target=e}function ce(){oe.SharedObject.targetStack.pop(),oe.SharedObject.target=oe.SharedObject.targetStack[oe.SharedObject.targetStack.length-1],oe.target=oe.SharedObject.target}oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.SharedObject.target&&oe.SharedObject.target.addDep(this)},oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(a&&!m(i,"default"))o=!1;else if(""===o||o===A(e)){var c=je(String,i.type);(c<0||s0&&(c=e(c,(n||"")+"_"+s),rt(c[0])&&rt(u)&&(d[l]=fe(u.text+c[0].text),c.shift()),d.push.apply(d,c)):o(c)?rt(u)?d[l]=fe(u.text+c):""!==c&&d.push(fe(c)):rt(c)&&rt(u)?d[l]=fe(u.text+c.text):(a(t._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+s+"__"),d.push(c)));return d}(e):void 0}function rt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function it(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function at(e){var t=ot(e.$options.inject,e);t&&(ye(!1),Object.keys(t).forEach((function(n){be(e,n,t[n])})),ye(!0))}function ot(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&r&&r!==n&&s===r.$key&&!a&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=ut(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=dt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),N(i,"$stable",o),N(i,"$key",s),N(i,"$hasNormal",a),i}function ut(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:nt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function dt(e,t){return function(){return e[t]}}function ft(e,t){var n,r,a,o,c;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,a=e.length;rdocument.createEvent("Event").timeStamp&&(Zt=function(){return en.now()})}function tn(){var e,t;for(Zt(),Yt=!0,Gt.sort((function(e,t){return e.id-t.id})),Qt=0;QtQt&&Gt[n].id>e.id)n--;Gt.splice(n+1,0,e)}else Gt.push(e);Xt||(Xt=!0,Je(tn))}}(this)},rn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Rn){Re(Rn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var an={enumerable:!0,configurable:!0,get:O,set:O};function on(e,t,n){an.get=function(){return this[t][n]},an.set=function(e){this[t][n]=e},Object.defineProperty(e,n,an)}function sn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||ye(!1);var o=function(a){i.push(a);var o=De(a,t,n,e);be(r,a,o),a in e||on(e,"_props",a)};for(var s in t)o(s);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?O:S(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Rn){return Re(Rn,t,"data()"),{}}finally{ce()}}(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var a=n[i];0,r&&m(r,a)||B(a)||on(e,"_data",a)}_e(t,!0)}(e):_e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Z();for(var i in t){var a=t[i],o="function"===typeof a?a:a.get;0,r||(n[i]=new rn(e,o||O,O,cn)),i in e||ln(e,i,a)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function xn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=yn(o.componentOptions);s&&!t(s)&&_n(n,a,r,i)}}}function _n(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=hn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Ie(pn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=st(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var a=r&&r.data;be(e,"$attrs",a&&a.attrs||n,null,!0),be(e,"$listeners",t._parentListeners||n,null,!0)}(t),Vt(t,"beforeCreate"),!t._$fallback&&at(t),sn(t),!t._$fallback&&it(t),!t._$fallback&&Vt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(gn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=we,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,n){if(l(t))return fn(this,e,t,n);n=n||{},n.user=!0;var r=new rn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){Re(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(gn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;aparseInt(this.max)&&_n(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},kn={KeepAlive:wn};(function(e){var t={get:function(){return R}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:P,mergeOptions:Ie,defineReactive:be},e.set=we,e.delete=ke,e.nextTick=Je,e.observable=function(e){return _e(e),e},e.options=Object.create(null),M.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,kn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ie(this.options,e),this}}(e),vn(e),function(e){M.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)})(gn),Object.defineProperty(gn.prototype,"$isServer",{get:Z}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Pt}),gn.version="2.6.11";var An="[object Array]",Sn="[object Object]";function Tn(e,t){var n={};return function e(t,n){if(t===n)return;var r=Cn(t),i=Cn(n);if(r==Sn&&i==Sn){if(Object.keys(t).length>=Object.keys(n).length)for(var a in n){var o=t[a];void 0===o?t[a]=null:e(o,n[a])}}else r==An&&i==An&&t.length>=n.length&&n.forEach((function(n,r){e(t[r],n)}))}(e,t),function e(t,n,r,i){if(t===n)return;var a=Cn(t),o=Cn(n);if(a==Sn)if(o!=Sn||Object.keys(t).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));var Mn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var jn=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];gn.prototype.__patch__=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){t[n]=e[n]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,In))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var a=Object.create(null);Object.keys(i).forEach((function(e){a[e]=r.data[e]}));var o=!1===this.$shouldDiffData?i:Tn(i,a);Object.keys(o).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"成人",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(o)),this.__next_tick_pending=!0,r.setData(o,(function(){n.__next_tick_pending=!1,On(n)}))):On(this)}},gn.prototype.$mount=function(e,t){return function(e,t,n){return e.mpType?("app"===e.mpType&&(e.$options.render=En),e.$options.render||(e.$options.render=En),!e._$fallback&&Vt(e,"beforeMount"),new rn(e,(function(){e._update(e._render(),n)}),O,{before:function(){e._isMounted&&!e._isDestroyed&&Vt(e,"beforeUpdate")}},!0),n=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==jn.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;jn.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=jn}(gn),function(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:T(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Ln(this,e)},Mn.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=it,e.prototype.__init_injections=at,e.prototype.__call_hook=function(e,t){var n=this;se();var r,i=n.$options[e],a=e+" hook";if(i)for(var o=0,s=i.length;o1&&void 0!==arguments[1]?arguments[1]:"get",r=arguments.length>2?arguments[2]:void 0,o={url:s+t,data:r,method:n,header:{Authorization:"Bearer "+e.getStorageSync("token"),"X-Authorization":"Bearer "+e.getStorageSync("refreshtoken"),"X-Requested-With":"XMLHttpRequest","content-type":"application/json;charset=UTF-8"}},c=new Promise((function(t,n){-1==o.url.indexOf("/api/device/detail")&&e.showLoading({title:"加载中..."}),e.request(o).then((function(n){if(e.hideLoading(),401==n[1].data.code)return i.default.msg(n[1].data.message),e.clearStorageSync(),e.setStorageSync("token",""),e.setStorageSync("iswxphone",!0),a.default.commit("changeLogout",!1),void setTimeout((function(){e.redirectTo({url:"/pageTwo/login/login"})}),2e3);200==n[1].statusCode?t(n[1].data):i.default.msg(n[1].data.message)})).catch((function(t){e.hideLoading(),n(t)}))}));return c},l={baseUrl:s,get:function(e,t){return t.appid=o.default.appid,c(e,"get",t)},post:function(e,t){return t.appid=o.default.appid,c(e,"post",t)}};t.default=l}).call(this,n("df3c")["default"])},6382:function(e,t,n){var r=n("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},6454:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,i);if(c){for(var u=0;u>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],x=e[t+8],_=e[t+9],b=e[t+10],w=e[t+11],k=e[t+12],A=e[t+13],S=e[t+14],T=e[t+15],P=a[0],C=a[1],O=a[2],L=a[3];P=l(P,C,O,L,o,7,s[0]),L=l(L,P,C,O,c,12,s[1]),O=l(O,L,P,C,h,17,s[2]),C=l(C,O,L,P,p,22,s[3]),P=l(P,C,O,L,g,7,s[4]),L=l(L,P,C,O,v,12,s[5]),O=l(O,L,P,C,y,17,s[6]),C=l(C,O,L,P,m,22,s[7]),P=l(P,C,O,L,x,7,s[8]),L=l(L,P,C,O,_,12,s[9]),O=l(O,L,P,C,b,17,s[10]),C=l(C,O,L,P,w,22,s[11]),P=l(P,C,O,L,k,7,s[12]),L=l(L,P,C,O,A,12,s[13]),O=l(O,L,P,C,S,17,s[14]),P=u(P,C=l(C,O,L,P,T,22,s[15]),O,L,c,5,s[16]),L=u(L,P,C,O,y,9,s[17]),O=u(O,L,P,C,w,14,s[18]),C=u(C,O,L,P,o,20,s[19]),P=u(P,C,O,L,v,5,s[20]),L=u(L,P,C,O,b,9,s[21]),O=u(O,L,P,C,T,14,s[22]),C=u(C,O,L,P,g,20,s[23]),P=u(P,C,O,L,_,5,s[24]),L=u(L,P,C,O,S,9,s[25]),O=u(O,L,P,C,p,14,s[26]),C=u(C,O,L,P,x,20,s[27]),P=u(P,C,O,L,A,5,s[28]),L=u(L,P,C,O,h,9,s[29]),O=u(O,L,P,C,m,14,s[30]),P=d(P,C=u(C,O,L,P,k,20,s[31]),O,L,v,4,s[32]),L=d(L,P,C,O,x,11,s[33]),O=d(O,L,P,C,w,16,s[34]),C=d(C,O,L,P,S,23,s[35]),P=d(P,C,O,L,c,4,s[36]),L=d(L,P,C,O,g,11,s[37]),O=d(O,L,P,C,m,16,s[38]),C=d(C,O,L,P,b,23,s[39]),P=d(P,C,O,L,A,4,s[40]),L=d(L,P,C,O,o,11,s[41]),O=d(O,L,P,C,p,16,s[42]),C=d(C,O,L,P,y,23,s[43]),P=d(P,C,O,L,_,4,s[44]),L=d(L,P,C,O,k,11,s[45]),O=d(O,L,P,C,T,16,s[46]),P=f(P,C=d(C,O,L,P,h,23,s[47]),O,L,o,6,s[48]),L=f(L,P,C,O,m,10,s[49]),O=f(O,L,P,C,S,15,s[50]),C=f(C,O,L,P,v,21,s[51]),P=f(P,C,O,L,k,6,s[52]),L=f(L,P,C,O,p,10,s[53]),O=f(O,L,P,C,b,15,s[54]),C=f(C,O,L,P,c,21,s[55]),P=f(P,C,O,L,x,6,s[56]),L=f(L,P,C,O,T,10,s[57]),O=f(O,L,P,C,y,15,s[58]),C=f(C,O,L,P,A,21,s[59]),P=f(P,C,O,L,g,6,s[60]),L=f(L,P,C,O,w,10,s[61]),O=f(O,L,P,C,h,15,s[62]),C=f(C,O,L,P,_,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+C|0,a[2]=a[2]+O|0,a[3]=a[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.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 e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}t.MD5=a._createHelper(c),t.HmacMD5=a._createHmacHelper(c)}(Math),n.MD5)})),S((function(e,t){var n;e.exports=(n=P,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l>>6-o%4*2;i[a>>>2]|=(s|c)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?U:r;(0,y.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case U:return this.status===j;case z:return this.status!==F}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=F,this.promise=this.createPromise().then((function(t){return e.status=M,Promise.resolve(t)}),(function(t){return e.status=j,Promise.reject(t)})),this.promise):this.promise}}]),e}(),W=function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{};return t=Y,n=e,Object.prototype.hasOwnProperty.call(t,n)||(Y[e]=r),Y[e]}"app"===K&&(Y=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var Z=["invoke","success","fail","complete"],ee=Q("_globalUniCloudInterceptor");function te(e,t){ee[e]||(ee[e]={}),$(t)&&Object.keys(t).forEach((function(n){Z.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];r||(r=ee[e][t]=[]),-1===r.indexOf(n)&&B(n)&&r.push(n)}(e,n,t[n])}))}function ne(e,t){ee[e]||(ee[e]={}),$(t)?Object.keys(t).forEach((function(n){Z.indexOf(n)>-1&&function(e,t,n){var r=ee[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete ee[e]}function re(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function ie(e,t){return ee[e]&&ee[e][t]||[]}function ae(e){te("callObject",e)}var oe=Q("_globalUniCloudListener"),se={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ce={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function le(e){return oe[e]||(oe[e]=[]),oe[e]}function ue(e,t){var n=le(e);n.includes(t)||n.push(t)}function de(e,t){var n=le(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function fe(e,t){for(var n=le(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,v.default)(Error));t.UniCloudError=ye;var me,xe,_e={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function be(){return{token:_e.getStorageSync(I)||_e.getStorageSync("uniIdToken"),tokenExpired:_e.getStorageSync(E)}}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&_e.setStorageSync(I,t),n&&_e.setStorageSync(E,n)}function ke(){return me||(me="mp-weixin"===K&&i.canIUse("getAppBaseInfo")&&i.canIUse("getDeviceInfo")?k(k({},r.getAppBaseInfo()),r.getDeviceInfo()):r.getSystemInfoSync()),me}var Ae={};function Se(){var e=r.getLocale&&r.getLocale()||"en";if(xe)return k(k(k({},Ae),xe),{},{locale:e,LOCALE:e});var t=ke(),n=t.deviceId,i=t.osName,a=t.uniPlatform,o=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return xe=k(k({PLATFORM:a,OS:i,APPID:o,DEVICEID:n},function(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,a=n.channel;e=a,t=i}}catch(e){}return{channel:e,scene:t}}()),t),k(k(k({},Ae),xe),{},{locale:e,LOCALE:e})}var Te,Pe={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),C(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",a=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new ye({code:i,message:a,requestId:t}))}var o=e.data;if(o.error)return r(new ye({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},toBase64:function(e){return L.stringify(O.parse(e))}},Ce=function(){function e(t){var n=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),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=_e,this._getAccessTokenPromiseHub=new q({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new ye({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:z})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Pe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Pe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Pe.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,d.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(k(k({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var l=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new ye({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u,d,f,h,p,g,v,y,m,x,_,b,w,k,A;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,s=t.cloudPathAsRealPath,c=void 0!==s&&s,l=t.onUploadProgress,u=t.config,"string"===R(r)){e.next=3;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(d=u&&u.envType||this.config.envType,!(c&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new ye({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:d,filename:c?r.split("/").pop():r,fileId:c?r:void 0});case 12:return f=e.sent.result,h="https://"+f.cdnDomain+"/"+f.ossPath,p=f.securityToken,g=f.accessKeyId,v=f.signature,y=f.host,m=f.ossPath,x=f.id,_=f.policy,b=f.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:x,key:m,policy:_,success_action_status:200},p&&(w["x-oss-security-token"]=p),b&&(k=JSON.stringify({callbackUrl:b,callbackBody:JSON.stringify({fileId:x,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Pe.toBase64(k)),A={url:"https://"+f.host,formData:w,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},A,{onUploadProgress:l}));case 27:if(!b){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:x});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 33:throw new ye({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.fileList;return new Promise((function(t,r){Array.isArray(n)&&0!==n.length||r(new ye({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e.getFileInfo({fileList:n}).then((function(e){t({fileList:n.map((function(t,n){var r=e.fileList[n];return{fileID:t,tempFileURL:r&&r.url||t}}))})}))}))}},{key:"getFileInfo",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new ye({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Oe={init:function(e){var t=new Ce(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Le="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Te||(Te={}));var Ie,Ee=function(){},De=S((function(e,t){var n;e.exports=(n=P,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)l[h]=0|e[t+h];else{var p=l[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=l[h-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;l[h]=g+l[h-7]+y+l[h-16]}var m=r&i^r&a^i&a,x=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[h]+l[h];f=d,d=u,u=s,s=o+_|0,o=a,a=i,i=r,r=_+(x+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(u),t.HmacSHA256=a._createHmacHelper(u)}(Math),n.SHA256)})),Fe=De,Me=S((function(e,t){e.exports=P.HmacSHA256})),je=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ye({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Re(e){return void 0===e}function $e(e){return"[object Null]"===Object.prototype.toString.call(e)}function Be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ne(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Ve={},Ge={};function Ke(e){return Ve[e]}var Je=(0,m.default)((function e(t,n){(0,y.default)(this,e),this.data=n||null,this.name=t})),Xe=function(e){(0,h.default)(n,e);var t=A(n);function n(e,r){var i;return(0,y.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(Je),Ye=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Xe)return console.error(e.error),this;var n="string"==typeof e?new Je(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,a=this._listeners[r]?(0,u.default)(this._listeners[r]):[],o=_(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.call(this,n)}}catch(c){o.e(c)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Qe(e,t){Ye.on(e,t)}function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ye.fire(e,t)}function et(e,t){Ye.off(e,t)}var tt,nt="loginStateChanged",rt="loginStateExpire",it="loginTypeChanged",at="anonymousConverted",ot="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(tt||(tt={}));var st=function(){function e(){(0,y.default)(this,e),this._fnPromiseMap=new Map}return(0,m.default)(e,[{key:"run",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r,i=this;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._fnPromiseMap.get(t),e.abrupt("return",(r||(r=new Promise(function(){var e=(0,d.default)(o.default.mark((function e(r,a){var s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i._runIdlePromise();case 3:return s=n(),e.t0=r,e.next=7,s;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),a(e.t2);case 14:return e.prev=14,i._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,r)),r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),ct=function(){function e(t){(0,y.default)(this,e),this._singlePromise=new st,this._cache=Ke(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new Ue.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,m.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ne(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r,i,a,s,c,l=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=l.length>2&&void 0!==l[2]?l[2]:{},i={"x-request-id":Ne(),"x-device-id":this._getDeviceId()},!r.withAccessToken){e.next=9;break}return a=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,c=this._cache.getStore(a),i.authorization="".concat(c," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===r.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:n,headers:i}));case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_fetchAccessToken",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i,a,s,c,l,u,f,h=this;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.loginTypeKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=t.tokenTypeKey,s=this._cache.getStore(n),!s||s===tt.ANONYMOUS){e.next=3;break}throw new ye({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,d.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return c=e.sent,l=c.access_token,u=c.expires_in,f=c.token_type,e.abrupt("return",(this._cache.setStore(a,f),this._cache.setStore(r,l),this._cache.setStore(i,Date.now()+1e3*u),l));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isAccessTokenExpired",value:function(e,t){var n=!0;return e&&t&&(n=t0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=n,this._reqClass=new Ue.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ke(this.config.env),this._localCache=(t=this.config.env,Ge[t]),this.oauth=new ct(this.config),dt(this._reqClass,"post",[ft]),dt(this._reqClass,"upload",[ft]),dt(this._reqClass,"download",[ft])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i,a,s,c,l,u,d,f,h,p;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(i),c){e.next=5;break}throw new ye({message:"未登录CloudBase"});case 5:return l={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",l);case 8:if(u=e.sent,!u.data.code){e.next=21;break}if(d=u.data.code,"SIGN_PARAM_INVALID"!==d&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){e.next=20;break}if(this._cache.getStore(a)!==tt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){e.next=19;break}return f=this._cache.getStore(s),h=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Ze(rt),this._cache.removeStore(i);case 20:throw new ye({code:u.data.code,message:"刷新access token失败:".concat(u.data.code)});case 21:if(!u.data.access_token){e.next=23;break}return e.abrupt("return",(Ze(ot),this._cache.setStore(n,u.data.access_token),this._cache.setStore(r,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(i),this._cache.setStore(i,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new ye({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!a||!s||s2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Le,"//tcb-api.tencentcloudapi.com/web",v),g&&(y+=g),e.next=28,this.post(k({url:y,data:c},d));case 28:if(m=e.sent,x=m.header&&m.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=32;break}throw new ye({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==lt.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,n,k(k({},r),{},{onUploadProgress:n.onUploadProgress}));case 10:if(a=e.sent,!a.data.code){e.next=13;break}throw new ye({code:a.data.code,message:Be(a.data.message)});case 13:return e.abrupt("return",a.data);case 14:if(!i.data.code){e.next=16;break}throw new ye({code:i.data.code,message:Be(i.data.message)});case 16:return e.abrupt("return",i.data);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),pt={};function gt(e){return pt[e]}var vt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=gt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),yt=function(){function e(t){if((0,y.default)(this,e),!t)throw new ye({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=gt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ye({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new ye({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:s,city:c});case 8:l=e.sent,u=l.data,this.setLocalUserInfo(u);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),mt=function(){function e(t){if((0,y.default)(this,e),!t)throw new ye({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new yt(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===tt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===tt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===tt.WECHAT||this.loginType===tt.WECHAT_OPEN||this.loginType===tt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),xt=function(e){(0,h.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return Ze(nt),Ze(it,{env:this.config.env,loginType:tt.ANONYMOUS,persistence:"local"}),t=new mt(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Ze(at,{env:this.config.env}),Ze(it,{loginType:tt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new ye({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,tt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(vt),_t=function(e){(0,h.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Ze(nt),Ze(it,{env:this.config.env,loginType:tt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new mt(this.config.env));case 15:throw new ye({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(vt),bt=function(e){(0,h.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,s=i.access_token,c=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Ze(nt),Ze(it,{env:this.config.env,loginType:tt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new mt(this.config.env));case 22:throw i.code?new ye({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new ye({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(vt),wt=function(e){(0,h.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r,i,a,s,c;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:tt.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,s=i.access_token_expire,c=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!c||!s){e.next=16;break}this.setAccessToken(c,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Ze(nt),Ze(it,{env:this.config.env,loginType:tt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new mt(this.config.env));case 23:throw i.code?new ye({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new ye({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(vt),kt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=gt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Qe(it,this._onLoginTypeChanged)}return(0,m.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new xt(this.config)}},{key:"customAuthProvider",value:function(){return new _t(this.config)}},{key:"emailAuthProvider",value:function(){return new bt(this.config)}},{key:"usernameAuthProvider",value:function(){return new wt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,d.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new xt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new bt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new wt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new xt(this.config)),Qe(at,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,d.default)(o.default.mark((function e(){var t,n,r,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==tt.ANONYMOUS){e.next=2;break}throw new ye({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Ze(nt),Ze(it,{env:this.config.env,loginType:tt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Qe(nt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Qe(rt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Qe(ot,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Qe(at,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Qe(it,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,d.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,n=e.accessTokenExpireKey,r=this._cache.getStore(t),i=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(r,i)?null:new mt(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ye({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,d.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new _t(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:k(k({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),At=function(e,t){t=t||je();var n=gt(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,c=o.url,l=o.authorization,u=o.token,d=o.fileId,f=o.cosFileId,h=e.requestId,p={key:r,signature:l,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":u};n.upload({url:c,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:h}):t(new ye({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},St=function(e,t){t=t||je();var n=gt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Tt=function(e,t){var n=e.fileList;if(t=t||je(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=_(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return gt(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Pt=function(e,t){var n=e.fileList;t=t||je(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=_(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;"object"==(0,l.default)(o)?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?i.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){a.e(c)}finally{a.f()}var s={file_list:i};return gt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Ct=function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,Pt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=gt(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=n,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),Ot=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,c=e.timeout,l=t||je();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new ye({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return gt(this.config.env).send("functions.invokeFunction",u,{timeout:c}).then((function(e){if(e.code)l(null,e);else{var t=e.data.response_data;if(o)l(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),l(null,{result:t,requestId:e.requestId})}catch(e){l(new ye({message:"response data must be json"}))}}return l.promise})).catch((function(e){l(e)})),l.promise},Lt={timeout:15e3,persistence:"session"},It={},Et=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Ue.adapter||(this.requestClient=new Ue.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=k(k({},Lt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ue.adapter.primaryStorage||Lt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;Ve[t]=new He(e),Ge[t]=new He(k(k({},e),{},{persistence:"local"}))}(this.config),n=this.config,pt[n.env]=new ht(n),this.authObj=new kt(this.config),this.authObj}},{key:"on",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"off",value:function(e,t){return et.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Pt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Ct.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return At.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return St.apply(this,[e,t])}},{key:"registerExtension",value:function(e){It[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,d.default)(o.default.mark((function e(t,n){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=It[t],r){e.next=3;break}throw new ye({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=_(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ue.adapter=n),r&&(Ue.runtime=r)}}]),e}(),Dt=new Et;function Ft(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Mt=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"get",value:function(e){var t=e.url,n=e.data,r=e.headers,i=e.timeout;return new Promise((function(e,a){_e.request({url:Ft("https:",t),data:n,method:"GET",header:r,timeout:i,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers,i=e.timeout;return new Promise((function(e,a){_e.request({url:Ft("https:",t),data:n,method:"POST",header:r,timeout:i,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,c=_e.uploadFile({url:Ft("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),jt={setItem:function(e,t){_e.setStorageSync(e,t)},getItem:function(e){return _e.getStorageSync(e)},removeItem:function(e){_e.removeStorageSync(e)},clear:function(){_e.clearStorageSync()}},Rt={genAdapter:function(){return{root:{},reqClass:Mt,localStorage:jt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Dt.useAdapters(Rt);var $t=Dt,Bt=$t.init;$t.init=function(e){e.env=e.spaceId;var t=Bt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ve(e),r=t.success,i=t.fail,a=t.complete;if(!(r||i||a))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Nt=$t;function Ut(e,t){return zt.apply(this,arguments)}function zt(){return zt=(0,d.default)(o.default.mark((function e(t,n){var r,i,a;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,a={url:r,timeout:500},new Promise((function(e,t){_e.request(k(k({},a),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),zt.apply(this,arguments)}function qt(e,t){return Wt.apply(this,arguments)}function Wt(){return Wt=(0,d.default)(o.default.mark((function e(t,n){var r,i,a;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i1&&void 0!==i[1])||i[1],n=!1,!n){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return n?r.requestLocal(t):Pe.wrappedRequest(t,r.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,r){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return r(new ye({code:t,message:i}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=Pe.sign(t,this.config.clientSecret);var r=Se();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));var i=be(),a=i.token;return n["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u,d;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Se(),r=be(),i=r.token,a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:i}),s=this.__dev__&&this.__dev__.debugInfo||{},c=s.address,l=s.servePort,e.next=9,qt(c,l);case 9:return u=e.sent,d=u.address,e.abrupt("return",{url:"http://".concat(d,":").concat(l,"/").concat(Ht[t.method]),method:"POST",data:a,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new ye({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,a=i.url,c=i.formData,l=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=n.adapter.uploadFile({url:a,formData:c,name:l,filePath:r,fileType:o,success:function(n){n&&n.statusCode<400?e(n):t(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new ye({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(n).then((function(e){if(e.success)return e.result;throw new ye({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new ye({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(r).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new ye({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),Gt={init:function(e){var t=new Vt(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Kt=S((function(e,t){e.exports=P.enc.Hex}));function Jt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Xt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,a=t.headers,o=t.signHeaderKeys,s=void 0===o?[]:o,l=t.config,u=String(Date.now()),d=Jt(),f=Object.assign({},a,{"x-from-app-id":l.spaceAppId,"x-from-env-id":l.spaceId,"x-to-env-id":l.spaceId,"x-from-instance-id":u,"x-from-function-name":r,"x-client-timestamp":u,"x-alipay-source":"client","x-request-id":d,"x-alipay-callid":d,"x-trace-id":d}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),p=e.split("?")||[],g=(0,c.default)(p,2),v=g[0],y=void 0===v?"":v,m=g[1],x=void 0===m?"":m,_=function(e){var t="HMAC-SHA256",n=e.signedHeaders.join(";"),r=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=Fe(e.body).toString(Kt),a="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(r,"\n").concat(n,"\n").concat(i,"\n"),o=Fe(a).toString(Kt),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(o,"\n"),c=Me(s,e.secretKey).toString(Kt);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(n,", Signature=").concat(c)}({path:y,query:x,method:i,headers:f,timestamp:u,body:JSON.stringify(n),secretId:l.accessKey,secretKey:l.secretKey,signedHeaders:h.sort()});return{url:"".concat(l.endpoint).concat(e),headers:Object.assign({},f,{Authorization:_})}}function Yt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,a=e.headers,o=void 0===a?{}:a,s=e.timeout;return new Promise((function(e,r){_e.request({url:t,method:i,data:"object"==(0,l.default)(n)?JSON.stringify(n):n,header:o,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},a=i.message,s=i.errMsg,c=i.trace_id;return r(new ye({code:"SYS_ERR",message:a||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Qt(e,t){var n=e.path,r=e.data,i=e.method,a=void 0===i?"GET":i,o=Xt(n,{functionName:"",data:r,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=o.url,c=o.headers;return Yt({url:s,data:r,method:a,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new ye({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new ye({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new ye({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function en(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var tn=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Jt(),timestamp:""+Date.now()}),a=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),o=["HMAC-SHA256",Fe(a).toString(Kt)].join("\n"),s=Me(o,this.config.secretKey).toString(Kt),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),nn=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new tn(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i=e.async,a=void 0!==i&&i,o=e.timeout,s="POST",c={"x-to-function-name":n};a&&(c["x-function-invoke-type"]="async");var l=Xt("/functions/invokeFunction",{functionName:n,data:r,method:s,headers:c,signHeaderKeys:["x-to-function-name"],config:t}),u=l.url,d=l.headers;return Yt({url:u,data:r,method:s,headers:d,timeout:o}).then((function(e){var t=0;if(a){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new ye({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new ye({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,a=e.onUploadProgress;return new Promise((function(e,o){var s=_e.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new ye({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new ye({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r,i,a,s,c,l,u,d,f,h;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,a=t.fileType,s=void 0===a?"image":a,c=t.onUploadProgress,"string"===R(i)){e.next=3;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new ye({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Qt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return l=e.sent,u=l.file_id,d=l.upload_url,f=l.form_data,h=f&&f.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:d,filePath:n,fileType:s,formData:h,onUploadProgress:c}).then((function(){return{fileID:u}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r=this;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),n.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,a=[],o=_(n);try{for(o.s();!(i=o.n()).done;){var s=i.value,c=void 0;"string"!==R(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{c=Zt.call(r,s)}catch(e){console.warn(e.errCode,e.errMsg),c=s}a.push({file_id:c,expire:600})}}catch(l){o.e(l)}finally{o.f()}Qt({path:"/?download_url",data:{file_list:a},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:en.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,d.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",_e.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),rn={init:function(e){e.provider="alipay";var t=new nn(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function an(e){var t,n=e.data;t=Se();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=be(),a=i.token;a&&(r.uniIdToken=a)}return r}var on=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],sn=/[\\^$.*+?()[\]{}|]/g,cn=RegExp(sn.source);function ln(e,t,n){return e.replace(new RegExp((r=t)&&cn.test(r)?r.replace(sn,"\\$&"):r,"g"),n);var r}var un={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},dn="_globalUniCloudStatus",fn="_globalUniCloudSecureNetworkCache__{spaceId}",hn="uni-secure-network",pn={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function gn(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,c=t.cause;return new ye({subject:n||r||hn,code:i||o||pn.SYSTEM_ERROR.code,message:a||s,cause:c})}var vn;vn="0123456789abcdef";var yn;function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===un.REQUEST||t===un.RESPONSE||t===un.BOTH}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===K&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function _n(e){e.functionName,e.result,e.logPvd}function bn(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=an.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=mn(n),s=xn(n),c=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&_n.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!c&&_n.call(r,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=ke(),a=i.appId,o=i.uniPlatform,s=i.osName,c=o;"app"===o&&(c=s);var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=G;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!l||!l.accessControl||!l.accessControl.enable)return!1;var u=l.accessControl.function||{},d=Object.keys(u);if(0===d.length)return!0;var f=function(e,t){for(var n,r,i,a=0;a-1&&(r=o):i=o:n=o}return n||r||i}(d,r);if(!f)return!1;if((u[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),gn(pn.APP_INFO_INVALID)}({provider:o,spaceId:s,functionName:c})?new yn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return e}))}}yn="mp-weixin"!==K&&"app"!==K?function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),gn({message:"Platform ".concat(K," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),gn({message:"Platform ".concat(K," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var wn=Symbol("CLIENT_DB_INTERNAL");function kn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=wn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,l.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function An(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var Sn=["db.Geo","db.command","command.aggregate"];function Tn(e,t){return Sn.indexOf("".concat(e,".").concat(t))>-1}function Pn(e){switch(R(e)){case"array":return e.map((function(e){return Pn(e)}));case"object":return e._internalType===wn||Object.keys(e).forEach((function(t){e[t]=Pn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Cn(e){return e&&e.content&&e.content.$method}var On=function(){function e(t,n,r){(0,y.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Pn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Cn(e),n=Cn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Cn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Cn(e),n=Cn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Ln({$method:e,$param:Pn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",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",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:Pn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function Ln(e,t,n){return kn(new On(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),Tn(r,t)?Ln({$method:t},e,n):function(){return Ln({$method:t,$param:Pn(Array.from(arguments))},e,n)}}})}function In(e){var t=e.path,n=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,u.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}var En=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,a=void 0!==i&&i;(0,y.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=Q("_globalUniCloudDatabaseCallback")),a||(this.auth=An(this._authCallBacks)),this._isJQL=a,Object.assign(this,An(this._dbCallBacks)),this.env=kn({},{get:function(e,t){return{$env:t}}}),this.Geo=kn({},{get:function(e,t){return In({path:["Geo"],method:t})}}),this.serverDate=In({path:[],method:"serverDate"}),this.RegExp=In({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}();function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kn(new e(t),{get:function(e,t){return Tn("db",t)?Ln({$method:t},null,e):function(){return Ln({$method:t,$param:Pn(Array.from(arguments))},null,e)}}})}var Fn=function(e){(0,h.default)(n,e);var t=A(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Nn(t,e.path)):!1===e.needLogin&&r.push(Nn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function zn(e){return e.split("?")[0].replace(/^\//,"")}function qn(){return function(e){var t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){var e=getCurrentPages();return e[e.length-1]}())}function Wn(){return zn(qn())}function Hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=zn(e);return n.some((function(e){return e.pagePath===r}))}var Vn,Gn=!!x.default.uniIdRouter,Kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,a=e.uniIdRouter,o=void 0===a?{}:a,s=e.tabBar,c=void 0===s?{}:s,l=o.loginPage,d=o.needLogin,f=void 0===d?[]:d,h=o.resToLogin,p=void 0===h||h,g=Un(n),v=g.needLoginPage,y=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,a=void 0===i?[]:i,o=Un(a,r),s=o.needLoginPage,c=o.notNeedLoginPage;t.push.apply(t,(0,u.default)(s)),n.push.apply(n,(0,u.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),_=m.needLoginPage,b=m.notNeedLoginPage;return{loginPage:l,routerNeedLogin:f,resToLogin:p,needLoginPage:[].concat((0,u.default)(v),(0,u.default)(_)),notNeedLoginPage:[].concat((0,u.default)(y),(0,u.default)(b)),loginPageInTabBar:Hn(l,c)}}(),Jn=Kn.loginPage,Xn=Kn.routerNeedLogin,Yn=Kn.resToLogin,Qn=Kn.needLoginPage,Zn=Kn.notNeedLoginPage,er=Kn.loginPageInTabBar;if(Qn.indexOf(Jn)>-1)throw new Error("Login page [".concat(Jn,'] should not be "needLogin", please check your pages.json'));function tr(e){var t=Wn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,c.default)(n,2),i=r[0],a=r[1],o=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var l=0;l-1)&&(Qn.indexOf(t)>-1||Xn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function rr(e){var t=e.redirect,n=zn(t),r=zn(Jn);return Wn()!==r&&n!==r}function ir(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&rr({redirect:n})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Jn,n);er?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var a={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){a[t]({url:i})}),0)}}function ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=be(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){fe(se.NEED_LOGIN,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function or(){!function(){var e=qn(),t=ar({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&ir({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=ar({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(ir({api:n,redirect:tr(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=le(se.NEED_LOGIN);ge().then((function(){var n=qn();if(n&&rr({redirect:n}))return t.length>0?fe(se.NEED_LOGIN,Object.assign({uniIdRedirectUrl:n},e)):void(Jn&&ir({api:"navigateTo",redirect:n}))}))}(n)}))}function cr(e){!function(e){e.onResponse=function(e){ue(se.RESPONSE,e)},e.offResponse=function(e){de(se.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){ue(se.NEED_LOGIN,e)},e.offNeedLogin=function(e){de(se.NEED_LOGIN,e)},Gn&&(Q(dn).needLoginInit||(Q(dn).needLoginInit=!0,ge().then((function(){or.call(e)})),Yn&&sr.call(e)))}(e),function(e){e.onRefreshToken=function(e){ue(se.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){de(se.REFRESH_TOKEN,e)}}(e)}var lr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ur=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function dr(){var e,t,n=be().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Vn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Vn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ur.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var fr=S((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var l=a[r];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=l,e.tempFilePath=l.path,i&&i(e)}}).then((function(e){l.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(o(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,l=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:l,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var c=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(c=i.chooseMessageFile),"function"!=typeof c)return s({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:n,success:function(t){e(o(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),hr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(fr),pr={auto:"auto",onready:"onready",manual:"manual"};function gr(e){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:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==pr.manual){for(var r=!1,i=[],a=2;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=r.action||this.action;i&&(n=n.action(i));var a=r.collection||this.collection;n=Array.isArray(a)?(t=n).collection.apply(t,(0,u.default)(a)):n.collection(a);var o=r.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=r.field||this.field;s&&(n=n.field(s));var c=r.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var l=r.groupby||this.groupby;l&&(n=n.groupBy(l));var d=r.groupField||this.groupField;d&&(n=n.groupField(d)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var f=r.orderby||this.orderby;f&&(n=n.orderBy(f));var h=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,g=void 0!==r.getcount?r.getcount:this.getcount,v=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,m={getCount:g},x={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return v&&(m.getTree=x),y&&(m.getTreePath=x),n=n.skip(p*(h-1)).limit(p).get(m),n}}}}function vr(e){return Q(fn.replace("{spaceId}",e.config.spaceId))}function yr(){return mr.apply(this,arguments)}function mr(){return mr=(0,d.default)(o.default.mark((function e(){var t,n,i,a,s,c,l,u=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,i=t.callLoginByWeixin,a=void 0!==i&&i,s=vr(this),"mp-weixin"===K){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(K,"`"));case 4:if(!n||!a){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,l=this.importObject("uni-id-co",{customUI:!0}),e.next=14,l.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:a});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),mr.apply(this,arguments)}function xr(e){return _r.apply(this,arguments)}function _r(){return _r=(0,d.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=vr(this),e.abrupt("return",(n.initPromise||(n.initPromise=yr.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),_r.apply(this,arguments)}function br(e){!function(e){Ae=e}(e)}function wr(e){var t="mp-weixin"===K&&i.canIUse("getAppBaseInfo"),n={getAppBaseInfo:t?r.getAppBaseInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(r){return new Promise((function(i,a){t&&"getAppBaseInfo"===e?i(n[e]()):n[e](k(k({},r),{},{success:function(e){i(e)},fail:function(e){a(e)}}))}))}}var kr=function(e){(0,h.default)(n,e);var t=A(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([wr("getAppBaseInfo")(),wr("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,a=n[1];a=void 0===a?{}:a;var o=a.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!o)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=o,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,d.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(W);var Ar={tcb:Nt,tencent:Nt,aliyun:Oe,private:Gt,dcloud:Gt,alipay:rn},Sr=new(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},n=Ar[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new q({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t),bn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Dn(Fn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=Dn(Fn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=dr,e.chooseAndUploadFile=hr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return gr(e)}}),e.SSEChannel=kr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return xr.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.setCustomClientInfo=br,e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,l.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,a=i.customUI,s=i.loadingOptions,c=i.errorOptions,u=i.parseSystemError,f=!a;return new Proxy({},{get:function(i,a){switch(a){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,d.default)(o.default.mark((function e(){var i,a,s,c,l,u,d=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=d.length,a=new Array(i),s=0;s0&&void 0!==l[0]?l[0]:{},n=t.title,i=t.content,a=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:a,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:T,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(P=i.sent,C=P.confirm,!c.retry||!C){i.next=37;break}return i.abrupt("return",h.apply(void 0,v));case 37:throw O=new ye({subject:b,code:w,message:A,requestId:p.requestId}),O.detail=p.result,fe(se.RESPONSE,{type:ce.CLOUD_OBJECT,content:O}),O;case 39:return i.abrupt("return",(fe(se.RESPONSE,{type:ce.CLOUD_OBJECT,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function h(){return i.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:a,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||D.DEFAULT;i=a!==D.DEFAULT}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=ve(n),l=c.success,u=c.fail,d=c.complete,f=s.then((function(){return i?Promise.resolve():re(ie(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):re(ie(t,"success"),e).then((function(){return re(ie(t,"complete"),e)})).then((function(){return o&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):re(ie(t,"fail"),e).then((function(){return re(ie(t,"complete"),e)})).then((function(){return fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(l||u||d))return f;f.then((function(e){l&&l(e),d&&d(e),o&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e})}),(function(e){u&&u(e),d&&d(e),o&&fe(se.RESPONSE,{type:ce.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=Sr,function(){var e=J,n={};if(e&&1===e.length)n=e[0],t.uniCloud=Sr=Sr.init(n),Sr._isDefault=!0;else{var i,a=["database","getCurrentUserInfo","importObject"];i=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[].concat(["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],a).forEach((function(e){Sr[e]=function(){if(console.error(i),-1===a.indexOf(e))return Promise.reject(new ye({code:"SYS_ERR",message:i}));console.error(i)}}))}if(Object.assign(Sr,{get mixinDatacom(){return gr(Sr)}}),cr(Sr),Sr.addInterceptor=te,Sr.removeInterceptor=ne,Sr.interceptObject=ae,"app"===K&&(r.__uniCloud=Sr),"app"===K||"web"===K){var o=function(){return X||(X=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),X)}();o.uniCloud=Sr,o.UniCloudError=ye}}();var Tr=Sr;t.default=Tr}).call(this,n("0ee4"),n("df3c")["default"],n("3223")["default"])},"8f59":function(e,t,n){"use strict";(function(t){var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},r=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=i(e[n],t)})),r}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"===typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){a(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},l.prototype.update=function(e){(function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}})([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new s(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var u;var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!==typeof window&&window.Vue&&x(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var a=this,o=this.dispatch,s=this.commit;this.dispatch=function(e,t){return o.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=i;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),n.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:u.config.devtools;d&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function p(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:o}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=y(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,c=a.type;return s&&s.root||(c=t+c),e.dispatch(c,o)},commit:r?e.commit:function(n,r,i){var a=m(n,r,i),o=a.payload,s=a.options,c=a.type;s&&s.root||(c=t+c),e.commit(c,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,n)}}}),i}(e,o,n);r.forEachMutation((function(t,n){var r=o+n;(function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))})(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:o+n,i=t.handler||t;(function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))})(e,r,i,l)})),r.forEachGetter((function(t,n){var r=o+n;(function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}})(e,r,t,l)})),r.forEachChild((function(r,a){v(e,t,n.concat(a),r,i)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function x(e){u&&e===u||(u=e, /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u))}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){0},d.prototype.commit=function(e,t,n){var r=this,i=m(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),c=this._mutations[a];c&&(this._withCommit((function(){c.forEach((function(e){e(o)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},d.prototype.dispatch=function(e,t){var n=this,r=m(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(o,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(o,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(o,n.state,e)}))}catch(l){0}t(e)}))}))}},d.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return h(n,this._actionSubscribers,t)},d.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=y(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),p(this)},d.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),p(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var _=S((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=S((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=T(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),w=S((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||T(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),k=S((function(e,t){var n={};return A(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=T(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function A(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function S(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){var r=e._modulesNamespaceMap[n];return r}function P(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function C(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function O(){var e=new Date;return" @ "+L(e.getHours(),2)+":"+L(e.getMinutes(),2)+":"+L(e.getSeconds(),2)+"."+L(e.getMilliseconds(),3)}function L(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var I={Store:d,install:x,version:"3.6.2",mapState:_,mapMutations:b,mapGetters:w,mapActions:k,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:w.bind(null,e),mapMutations:b.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var a=e.mutationTransformer;void 0===a&&(a=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=i(e.state);"undefined"!==typeof u&&(c&&e.subscribe((function(e,o){var s=i(o);if(n(e,d,s)){var c=O(),l=a(e),f="mutation "+e.type+c;P(u,f,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),C(u)}d=s})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=O(),i=s(e),a="action "+e.type+r;P(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),C(u)}})))}}};e.exports=I}).call(this,n("0ee4"))},"8ffa":function(e,t,n){var r=n("7647");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},9008:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"931d":function(e,t,n){var r=n("7647"),i=n("011a");e.exports=function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var o=new(e.bind.apply(e,a));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports["default"]=e.exports},"94cf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r;r={data:function(){return{is_show:"none"}},watch:{show:function(e){this.is_show=this.show}},created:function(){this.swipeaction=this.getSwipeAction(),this.swipeaction&&Array.isArray(this.swipeaction.children)&&this.swipeaction.children.push(this)},mounted:function(){this.is_show=this.show},methods:{closeSwipe:function(e){this.autoClose&&this.swipeaction&&this.swipeaction.closeOther(this)},change:function(e){this.$emit("change",e.open),this.is_show!==e.open&&(this.is_show=e.open)},appTouchStart:function(e){var t=e.changedTouches[0].clientX;this.clientX=t,this.timestamp=(new Date).getTime()},appTouchEnd:function(e,t,n,r){var i=e.changedTouches[0].clientX,a=Math.abs(this.clientX-i),o=(new Date).getTime()-this.timestamp;a<40&&o<300&&this.$emit("click",{content:n,index:t,position:r})},onClickForPC:function(e,t,n){}}};var i=r;t.default=i},"9fc1":function(e,t,n){var r=n("3b2d")["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},a=Object.prototype,o=a.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,a=Object.create(i.prototype),o=new E(r||[]);return s(a,"_invoke",{value:C(e,n,o)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var g="suspendedStart",v="executing",y="completed",m={};function x(){}function _(){}function b(){}var w={};f(w,l,(function(){return this}));var k=Object.getPrototypeOf,A=k&&k(k(D([])));A&&A!==a&&o.call(A,l)&&(w=A);var S=b.prototype=x.prototype=Object.create(w);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function n(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;s(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function C(e,n,r){var i=g;return function(a,o){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=p(e,n,r);if("normal"===l.type){if(i=r.done?y:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=y,r.method="throw",r.arg=l.arg)}}}function O(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var a=p(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,m;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a708:function(e,t,n){var r=n("6454");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z0-9_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,i=/^<\/([-A-Za-z0-9_]+)[^>]*>/,a=/([a-zA-Z0-9_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;function o(e){for(var t={},n=e.split(","),r=0;r=0;r-=1)if(p[r]===n)break}else r=0;if(r>=0){for(var i=p.length-1;i>=r;i-=1)t.end&&t.end(p[i]);p.length=r}}function v(e,n,r,i){if(n=n.toLowerCase(),c[n])while(p.last()&&l[p.last()])g(0,p.last());if(u[n]&&p.last()===n&&g(0,n),i=s[n]||!!i,i||p.push(n),t.start){var o=[];r.replace(a,(function(e,t){var n=arguments[2]||arguments[3]||arguments[4]||(d[t]?t:"");o.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,o,i)}}p.last=function(){return p[p.length-1]};while(e){if(o=!0,0===e.indexOf("1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=w());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var a=new _({locale:e,fallbackLocale:n,messages:t,watcher:r}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return a.t(e,t)};else{var n=!1;o=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,b(r,a))),a.t(e,t)}}return o(e,t)};return{i18n:a,f:function(e,t,n){return a.f(e,t,n)},t:function(e,t){return o(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,n)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}},t.isI18nStr=S,t.isString=void 0,t.normalizeLocale=x,t.parseI18nJson=function e(t,n,r){k||(k=new d);return C(t,(function(t,i){var a=t[i];A(a)?S(a,r)&&(t[i]=T(a,n,r)):e(a,n,r)})),t},t.resolveLocale=function(e){return function(t){return t?(t=x(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var a=i(n("34cf")),o=i(n("67ad")),s=i(n("0bdb")),c=i(n("3b2d")),l=function(e){return null!==e&&"object"===(0,c.default)(e)},u=["{","}"],d=function(){function e(){(0,o.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!t)return[e];var r=this._caches[e];return r||(r=p(e,n),this._caches[e]=r),g(r,t)}}]),e}();t.Formatter=d;var f=/^(?:\d)+/,h=/^(?:\w)+/;function p(e,t){var n=(0,a.default)(t,2),r=n[0],i=n[1],o=[],s=0,c="";while(s-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=["en","fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,n);return r||void 0}}var _=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,a=t.watcher,s=t.formater;(0,o.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),a&&this.watchLocale(a)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=x(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){y(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=x(t,this.messages),t&&(r=this.messages[t])):n=t,y(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function b(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function w(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}t.I18n=_;var k,A=function(e){return"string"===typeof e};function S(e,t){return e.indexOf(t[0])>-1}function T(e,t,n){return k.interpolate(e,t,n).join("")}function P(e,t,n){return C(e,(function(e,r){(function(e,t,n,r){var i=e[t];if(A(i)){if(S(i,r)&&(e[t]=T(i,n[0].values,r),n.length>1)){var a=e[t+"Locales"]={};n.forEach((function(e){a[e.locale]=T(i,e.values,r)}))}}else P(i,n,r)})(e,r,t,n)})),e}function C(e,t){if(Array.isArray(e)){for(var n=0;n"),e=e.replace(/•/g,"•"),e}(e),e=function(e){return e=e.replace(/Œ/g,"Œ"),e=e.replace(/œ/g,"œ"),e=e.replace(/Š/g,"Š"),e=e.replace(/š/g,"š"),e=e.replace(/Ÿ/g,"Ÿ"),e=e.replace(/ƒ/g,"ƒ"),e=e.replace(/ˆ/g,"ˆ"),e=e.replace(/˜/g,"˜"),e=e.replace(/ /g,""),e=e.replace(/ /g,""),e=e.replace(/ /g,""),e=e.replace(/‌/g,""),e=e.replace(/‍/g,""),e=e.replace(/‎/g,""),e=e.replace(/‏/g,""),e=e.replace(/–/g,"–"),e=e.replace(/—/g,"—"),e=e.replace(/‘/g,"‘"),e=e.replace(/’/g,"’"),e=e.replace(/‚/g,"‚"),e=e.replace(/“/g,"“"),e=e.replace(/”/g,"”"),e=e.replace(/„/g,"„"),e=e.replace(/†/g,"†"),e=e.replace(/‡/g,"‡"),e=e.replace(/•/g,"•"),e=e.replace(/…/g,"…"),e=e.replace(/‰/g,"‰"),e=e.replace(/′/g,"′"),e=e.replace(/″/g,"″"),e=e.replace(/‹/g,"‹"),e=e.replace(/›/g,"›"),e=e.replace(/‾/g,"‾"),e=e.replace(/€/g,"€"),e=e.replace(/™/g,"™"),e=e.replace(/←/g,"←"),e=e.replace(/↑/g,"↑"),e=e.replace(/→/g,"→"),e=e.replace(/↓/g,"↓"),e=e.replace(/↔/g,"↔"),e=e.replace(/↵/g,"↵"),e=e.replace(/⌈/g,"⌈"),e=e.replace(/⌉/g,"⌉"),e=e.replace(/⌊/g,"⌊"),e=e.replace(/⌋/g,"⌋"),e=e.replace(/◊/g,"◊"),e=e.replace(/♠/g,"♠"),e=e.replace(/♣/g,"♣"),e=e.replace(/♥/g,"♥"),e=e.replace(/♦/g,"♦"),e=e.replace(/'/g,"'"),e}(e),e},urlToHttpUrl:function(e,t){return/^\/\//.test(e)?"https:".concat(e):/^\//.test(e)?"https://".concat(t).concat(e):e}};t.default=r},d551:function(e,t,n){var r=n("3b2d")["default"],i=n("e6db");e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports["default"]=e.exports},d887:function(e,t,n){"use strict";(function(e){var t=n("34cf"),r=n("3b2d"),i={version:"v2.1.5-20210517",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},a=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.end.x||t.end.xe.start.y||t.start.y2*Math.PI)e-=2*Math.PI;return e}return e=r(e),t=r(t),n=r(n),t>n&&(n+=2*Math.PI,e=t&&e<=n}function d(e,t){function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,a=.2,o=null,s=null,c=null,l=null;if(t<1?(o=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(o=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var u=e.length-1;c=e[u].x-(e[u].x-e[u-1].x)*a,l=e[u].y-(e[u].y-e[u-1].y)*a}else c=e[t+1].x-(e[t+2].x-e[t].x)*a,l=e[t+1].y-(e[t+2].y-e[t].y)*a;return n(e,t+1)&&(l=e[t+1].y),n(e,t)&&(s=e[t].y),r(e,t+1)&&(c=e[t+1].x),r(e,t)&&(o=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(l>=Math.max(e[t].y,e[t+1].y)||l<=Math.min(e[t].y,e[t+1].y))&&(l=e[t+1].y),(o>=Math.max(e[t].x,e[t+1].x)||o<=Math.min(e[t].x,e[t+1].x))&&(o=e[t].x),(c>=Math.max(e[t].x,e[t+1].x)||c<=Math.min(e[t].x,e[t+1].x))&&(c=e[t+1].x),{ctrA:{x:o,y:s},ctrB:{x:c,y:l}}}function f(e,t,n){return{x:n.x+e,y:n.y-t}}function h(e,t){if(t)while(o.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function p(e,t,n){for(var r=0,i=0;i=1e4?1e3:r>=1e3?100:r>=100?10:r>=10?5:r>=1?1:r>=.1?.1:r>=.01?.01:r>=.001?.001:r>=1e-4?1e-4:r>=1e-5?1e-5:1e-6,{minRange:l(e,"lower",n),maxRange:l(t,"upper",n)}}function y(e,t,n){var r=0;if(e=String(e),!1!==n&&void 0!==n&&n.setFontSize&&n.measureText)return n.setFontSize(t),n.measureText(e).width;e=e.split("");for(var i=0;i-1;if(a)for(var o=P(e),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},o=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(r.length>0){for(var c=[],l=0;l0&&(r=i[n]),{text:a.formatter?a.formatter(e,r,n,t):e.name+": "+e.data,color:e.color}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:u,offset:d}}function S(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t.chartData.xAxisPoints[n]+t.chartData.eachSpacing/2,o=e.map((function(e){return{text:i.formatter?i.formatter(e,r[n],n,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend}}));o=o.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(a),y:0};return{textList:o,offset:s}}function T(e,t,n,r,i,a){var o=n.chartData.calPoints,s=a.color.upFill,c=a.color.downFill,l=[s,s,c,s],u=[];t.map((function(t){0==r?t.data[1]-t.data[0]<0?l[1]=c:l[1]=s:(t.data[0]e[r-1][1]&&(l[2]=s),t.data[3]=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function O(e,t,n){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n,2)}function L(e,t){var n=[],r=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&r.push(e):null!==e?r.push(e):(r.length&&n.push(r),r=[])})),r.length&&n.push(r),n}function I(e,t,n,r,i){var a={angle:0,xAxisHeight:n.xAxisHeight},o=e.map((function(e){return y(e,t.xAxis.fontSize*t.pix||n.fontSize,i)})),s=Math.max.apply(this,o);return 1==t.xAxis.rotateLabel&&s+2*n.xAxisTextPadding>r&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*n.xAxisTextPadding+s*Math.sin(a.angle)),a}function E(e,t,n,i){var a={angle:0,xAxisHeight:n.xAxisHeight};a.ranges=function(e,t,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=m(e),o=[];a=a.filter((function(e){return"object"===r(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),a.map((function(e){"object"===r(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){o.push(e)})):o.push(e[0]):o.push(e.value):o.push(e)}));var s=0,c=0;if(o.length>0&&(s=Math.min.apply(this,o),c=Math.max.apply(this,o)),i>-1?("number"===typeof t.xAxis.data[i].min&&(s=Math.min(t.xAxis.data[i].min,s)),"number"===typeof t.xAxis.data[i].max&&(c=Math.max(t.xAxis.data[i].max,c))):("number"===typeof t.xAxis.min&&(s=Math.min(t.xAxis.min,s)),"number"===typeof t.xAxis.max&&(c=Math.max(t.xAxis.max,c))),s===c){var l=c||10;c+=l}for(var u=s,d=c,f=[],h=(d-u)/t.xAxis.splitNumber,p=0;p<=t.xAxis.splitNumber;p++)f.push(u+h*p);return f}(e,t,n),a.rangesFormat=a.ranges.map((function(e){return e=o.toFixed(e,2),e}));var s=a.ranges.map((function(e){return e=o.toFixed(e,2),e}));a=Object.assign(a,q(s,t,n));var c=a.eachSpacing,l=s.map((function(e){return y(e,t.xAxis.fontSize*t.pix||n.fontSize,i)})),u=Math.max.apply(this,l);return u+2*n.xAxisTextPadding>c&&(a.angle=45*Math.PI/180,a.xAxisHeight=2*n.xAxisTextPadding+u*Math.sin(a.angle)),!0===t.xAxis.disabled&&(a.xAxisHeight=0),a}function D(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=i.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,m(r))),c=[],l=function(i){var o=r[i],l={};l.color=o.color,l.legendShape=o.legendShape,l.pointShape=o.pointShape,l.data=[],o.data.forEach((function(r,i){var o={};o.angle=e[i],o.proportion=r/s,o.position=f(n*o.proportion*a*Math.cos(o.angle),n*o.proportion*a*Math.sin(o.angle),t),l.data.push(o)})),c.push(l)},u=0;u2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,a=0;a4&&void 0!==arguments[4]?arguments[4]:1;e=e.sort((function(e,t){return parseInt(t.data)-parseInt(e.data)}));for(var a=0;a4&&void 0!==arguments[4]?arguments[4]:1,a=0,o=0,s=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r=2&&(i._proportion_=i._proportion_%2)}return e}function $(e,t,n){for(var r=t-n+1,i=t,a=0;a=2&&(e[a]._endAngle_=e[a]._endAngle_%2),i=e[a]._endAngle_;return e}function B(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i=n.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*r+n.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*r,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return e}function N(e,t,n,r,i,a){return e.map((function(e){if(null===e)return null;var i=0,o=0;return"mix"==a.type?(i=a.extra.mix.column.seriesGap*a.pix||0,o=a.extra.mix.column.categoryGap*a.pix||0):(i=a.extra.column.seriesGap*a.pix||0,o=a.extra.column.categoryGap*a.pix||0),i=Math.min(i,t/n),o=Math.min(o,t/n),e.width=Math.ceil((t-2*o-i*(n-1))/n),a.extra.mix&&a.extra.mix.column.width&&+a.extra.mix.column.width>0&&(e.width=Math.min(e.width,+a.extra.mix.column.width*a.pix)),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e.x+=(r+.5-n/2)*(e.width+i),e}))}function U(e,t,n,r,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),r>0&&(e.width-=2*o),e)}))}function z(e,t,n,r,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function q(e,t,n){var r=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var a=r/i,o=[],s=t.area[3],c=t.width-t.area[1];return e.forEach((function(e,t){o.push(s+t*a)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?o.push(s+e.length*a):o.push(c)),{xAxisPoints:o,startX:s,endX:c,eachSpacing:a}}function W(e,t,n,r,i,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 e.forEach((function(e,o){if(null===e)c.push(null);else{var u=[];e.forEach((function(e,c){var d={};d.x=r[o]+Math.round(i/2);var f=e.value||e,h=l*(f-t)/(n-t);h*=s,d.y=a.height-Math.round(h)-a.area[2],u.push(d)})),c.push(u)}})),c}function H(e,t,n,i,a,o,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(l=o.xAxis.boundaryGap);var u=[],d=o.height-o.area[0]-o.area[2],f=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)u.push(null);else{var h={};h.color=e.color,h.x=i[s];var p,g,v,y=e;if("object"===r(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),g=p.shift(),v=p.pop(),y=e[1],h.x=o.area[3]+f*(e[0]-g)/(v-g),"bubble"==o.type&&(h.r=e[2],h.t=e[3]);else y=e.value;"center"==l&&(h.x+=Math.round(a/2));var m=d*(y-t)/(n-t);m*=c,h.y=o.height-Math.round(m)-o.area[2],u.push(h)}})),u}function V(e,t,n,r,i,a,o,s,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,u=[],d=a.height-a.area[0]-a.area[2];return e.forEach((function(e,o){if(null===e)u.push(null);else{var f={};if(f.color=e.color,f.x=r[o]+Math.round(i/2),s>0){for(var h=0,p=0;p<=s;p++)h+=c[p].data[o];var g=h-e,v=d*(h-t)/(n-t),y=d*(g-t)/(n-t)}else h=e,v=d*(h-t)/(n-t),y=0;var m=y;v*=l,m*=l,f.y=a.height-Math.round(v)-a.area[2],f.y0=a.height-Math.round(m)-a.area[2],u.push(f)}})),u}function G(e,t,n,i,a){var o;o="stack"==i?x(e,t.categories.length):m(e);var s=[];o=o.filter((function(e){return"object"===r(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),o.map((function(e){"object"===r(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var c=a.min||0,l=a.max||0;if(s.length>0&&(c=Math.min.apply(this,s),l=Math.max.apply(this,s)),c===l){var u=l||10;l+=u}for(var d=v(c,l),f=void 0===a.min?d.minRange:a.min,h=void 0===a.max?d.maxRange:a.max,p=[],g=(h-f)/t.yAxis.splitNumber,y=0;y<=t.yAxis.splitNumber;y++)p.push(f+g*y);return p.reverse()}function K(e,t,n,r){var i=a({},{type:""},t.extra.column),o=t.yAxis.data.length,s=new Array(o);if(o>0){for(var c=0;c-1?o[c][1]:o[c].value);var d=t.formatter?t.formatter(u,c):u;i.setTextAlign("center"),i.fillText(String(d),e.x,e.y-4+s*a.pix),i.closePath(),i.stroke(),i.setTextAlign("left")}}))}function Z(e,t,n,r,i,a){t-=e.width/2+e.labelOffset*r.pix;for(var o=e.startAngle-e.endAngle+1,s=o/e.splitLine.splitNumber,c=e.endNumber-e.startNumber,l=c/e.splitLine.splitNumber,u=e.startAngle,d=e.startNumber,f=0;f=2&&(u%=2),d+=l}}function ee(e,t,n,r,i,a){var s=r.extra.radar||{};t+=i.radarLabelTextMargin*r.pix,e.forEach((function(e,c){var l={x:t*Math.cos(e),y:t*Math.sin(e)},u=f(l.x,l.y,n),d=u.x,h=u.y;o.approximatelyEqual(l.x,0)?d-=y(r.categories[c]||"",i.fontSize,a)/2:l.x<0&&(d-=y(r.categories[c]||"",i.fontSize,a)),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(s.labelColor||r.fontColor),a.fillText(r.categories[c]||"",d,h+i.fontSize/2),a.closePath(),a.stroke()}))}function te(e,t,n,r,i,a){for(var s=n.pieChartLinePadding,c=[],l=null,u=e.map((function(e,t,n){var r=e.formatter?e.formatter(e,t,n):o.toFixed(100*e._proportion_.toFixed(4))+"%",i=2*Math.PI-(e._start_+2*Math.PI*e._proportion_/2);e._rose_proportion_&&(i=2*Math.PI-(e._start_+2*Math.PI*e._rose_proportion_/2));var a=e.color,s=e._radius_;return{arc:i,text:r,color:a,radius:s,textColor:e.textColor,textSize:e.textSize}})),d=0;d=0?g+n.pieChartTextPadding:g-n.pieChartTextPadding,b=v,w=y(p.text,p.textSize*t.pix||n.fontSize,r),k=b;l&&o.isSameXCoordinateArea(l.start,{x:_})&&(k=_>0?Math.min(b,l.start.y):g<0||b>0?Math.max(b,l.start.y):Math.min(b,l.start.y)),_<0&&(_-=w);var A={lineStart:{x:m,y:x},lineEnd:{x:g,y:v},start:{x:_,y:k},width:w,height:n.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};l=h(A,l),c.push(l)}for(var S=0;Sn.width&&(h=!0),v+t.y>n.height&&(t.y=n.height-v),i.beginPath(),i.setFillStyle(c(l.bgColor||r.toolTipBackground,l.bgOpacity||r.toolTipOpacity)),i.setLineWidth(l.borderWidth*n.pix),i.setStrokeStyle(c(l.borderColor,l.borderOpacity));var m=l.borderRadius;h?(l.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x-f,t.y+10*n.pix+5*n.pix)),i.arc(t.x-f-m,t.y+v-m,m,0,Math.PI/2,!1),i.arc(t.x-f-Math.round(g)+m,t.y+v-m,m,Math.PI/2,Math.PI,!1),i.arc(t.x-f-Math.round(g)+m,t.y+m,m,-Math.PI,-Math.PI/2,!1),i.arc(t.x-f-m,t.y+m,m,-Math.PI/2,0,!1),l.showArrow&&(i.lineTo(t.x-f,t.y+10*n.pix-5*n.pix),i.lineTo(t.x,t.y+10*n.pix))):(l.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x+f,t.y+10*n.pix-5*n.pix)),i.arc(t.x+f+m,t.y+m,m,-Math.PI,-Math.PI/2,!1),i.arc(t.x+f+Math.round(g)-m,t.y+m,m,-Math.PI/2,0,!1),i.arc(t.x+f+Math.round(g)-m,t.y+v-m,m,0,Math.PI/2,!1),i.arc(t.x+f+m,t.y+v-m,m,Math.PI/2,Math.PI,!1),l.showArrow&&(i.lineTo(t.x+f,t.y+10*n.pix+5*n.pix),i.lineTo(t.x,t.y+10*n.pix))),i.closePath(),i.fill(),l.borderWidth>0&&i.stroke(),e.forEach((function(e,n){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var a=t.x+f+2*r.toolTipPadding,o=t.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*n+r.toolTipPadding+1;h&&(a=t.x-g-f+2*r.toolTipPadding),i.fillRect(a,o,u,r.fontSize),i.closePath()}})),e.forEach((function(e,n){var a=t.x+f+2*r.toolTipPadding+u+d;h&&(a=t.x-g-f+2*r.toolTipPadding+ +u+d);var o=t.y+(r.toolTipLineHeight-r.fontSize)/2+r.toolTipLineHeight*n+r.toolTipPadding;i.beginPath(),i.setFontSize(r.fontSize),i.setFillStyle(l.fontColor),i.fillText(e.text,a,o+r.fontSize),i.closePath(),i.stroke()}))}}function oe(e,t,n,r,i,a){var o=e.extra.tooltip||{};o.horizentalLine&&e.tooltip&&1===r&&("line"==e.type||"area"==e.type||"column"==e.type||"candle"==e.type||"mix"==e.type)&&re(e,t,n),n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&n.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&ae(e.tooltip.textList,e.tooltip.offset,e,t,n),n.restore()}function se(e,t,n,r){var i=t.chartData.xAxisData,a=i.xAxisPoints,o=i.startX,s=i.endX,c=i.eachSpacing,l="center";"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(l=t.xAxis.boundaryGap);var u=t.height-t.area[2],d=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var f=t.height-t.area[2]+n.xAxisHeight,h=s-o,p=c*(a.length-1),g=h*h/p,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*h/p),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),r.moveTo(o,f),r.lineTo(s,f),r.stroke(),r.closePath(),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),r.moveTo(o+v,f),r.lineTo(o+v+g,f),r.stroke(),r.closePath(),r.setLineCap("butt")}if(r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),a.forEach((function(e,n){n>0&&(r.beginPath(),r.moveTo(e-c/2,u),r.lineTo(e-c/2,u+3*t.pix),r.closePath(),r.stroke())}))),!0!==t.xAxis.disableGrid&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&r.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,a.forEach((function(e,n){n%t.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(e,u),r.lineTo(e,d),r.stroke())})),r.setLineDash([])),!0!==t.xAxis.disabled){var m=e.length;t.xAxis.labelCount&&(m=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,m-=1);for(var x=Math.ceil(e.length/m),_=[],b=e.length,w=0;wt[a].area[2]||e[1]>t[a].area[3]||e[2]n||e[3]>r){i=!0;break}i=!1}return i}function he(e,t,n,r,i,a){return{x:(t-n.xMin)*r+i,y:(n.yMax-e)*r+a}}function pe(e,t,n){if(t[1]==n[1])return!1;if(t[1]>e[1]&&n[1]>e[1])return!1;if(t[1]e[1])return!1;if(n[1]==e[1]&&t[1]>e[1])return!1;if(t[0].7},p=0;p0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,a=0;at.width-t.area[1]-t.area[3]?(f.push(g),p.push(h-t.legend.itemGap*t.pix),h=x,g=[m]):(h+=x,g.push(m))}if(g.length){f.push(g),p.push(h-t.legend.itemGap*t.pix),a.widthArr=p;var _=Math.max.apply(null,p);switch(t.legend.float){case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+_+2*o;break;case"right":a.area.start.x=t.width-t.area[1]-_-2*o,a.area.end.x=t.width-t.area[1];break;default:a.area.start.x=(t.width-_)/2-o,a.area.end.x=(t.width+_)/2+o}a.area.width=_+2*o,a.area.wholeWidth=_+2*o,a.area.height=f.length*d+2*o,a.area.wholeHeight=f.length*d+2*o+2*s,a.points=f}}else{var b=e.length,w=t.height-t.area[0]-t.area[2]-2*s-2*o,k=Math.min(Math.floor(w/d),b);switch(a.area.height=k*d+2*o,a.area.wholeHeight=k*d+2*o,t.legend.float){case"top":a.area.start.y=t.area[0]+s,a.area.end.y=t.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=t.height-t.area[2]-s-a.area.height,a.area.end.y=t.height-t.area[2]-s;break;default:a.area.start.y=(t.height-a.area.height)/2,a.area.end.y=(t.height+a.area.height)/2}for(var A=b%k===0?b/k:Math.floor(b/k+1),S=[],T=0;TL&&(L=E)}a.widthArr.push(L),a.heightArr.push(O.length*d+2*o)}for(var D=0,F=0;F0?C[de].width+n.yAxis.padding*n.pix:C[de].width,ae+=1):(n.area[1]+=re>0?C[de].width+n.yAxis.padding*n.pix:C[de].width,re+=1)}else r.yAxisWidth=C;if(n.chartData.yAxisData=T,n.categories&&n.categories.length&&"radar"!==n.type&&"gauge"!==n.type){n.chartData.xAxisData=q(n.categories,n);var fe=I(n.categories,n,r,n.chartData.xAxisData.eachSpacing,i),pe=fe.xAxisHeight,ge=fe.angle;r.xAxisHeight=pe,r._xAxisTextAngle_=ge,n.area[2]+=pe,n.chartData.categoriesData=fe}else if("line"===n.type||"area"===n.type||"scatter"===n.type||"bubble"===n.type){n.chartData.xAxisData=E(u,n,r,i),h=n.chartData.xAxisData.rangesFormat;var xe=I(h,n,r,n.chartData.xAxisData.eachSpacing,i),be=xe.xAxisHeight,we=xe.angle;r.xAxisHeight=be,r._xAxisTextAngle_=we,n.area[2]+=be,n.chartData.categoriesData=xe}else n.chartData.xAxisData={xAxisPoints:[]};if(n.enableScroll&&"right"==n.xAxis.scrollAlign&&void 0===n._scrollDistance_){var ke,Ae=n.chartData.xAxisData.xAxisPoints,Se=n.chartData.xAxisData.startX,Te=n.chartData.xAxisData.endX,Pe=n.chartData.xAxisData.eachSpacing,Ce=Pe*(Ae.length-1),Oe=Te-Se;ke=Oe-Ce,l.scrollOption={currentOffset:ke,startTouchX:ke,distance:0,lastMoveTime:0},n._scrollDistance_=ke}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===n.dataLabel?0:function(e,t,n,r){e=F(e);for(var i=0,a=0;a4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=ve(t,o.type,r)),r.beginPath(),r.setFillStyle(t.background),r.rect(0,0,t.width,t.height),r.fill(),r.save();var s=t.chartData.wordCloudData;r.translate(t.width/2,t.height/2);for(var c=0;c0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(l,(s[c].areav[0]+5-t.width/2)*i-d*(1-i)/2,(s[c].areav[1]+5+u-t.height/2)*i):r.fillText(l,(s[c].areav[0]+5-t.width/2)*i-d*(1-i)/2,(s[c].areav[1]+5+u-t.height/2)*i)):s[c].area[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(l,(s[c].area[0]+5-t.width/2)*i-d*(1-i)/2,(s[c].area[1]+5+u-t.height/2)*i):r.fillText(l,(s[c].area[0]+5-t.width/2)*i-d*(1-i)/2,(s[c].area[1]+5+u-t.height/2)*i)),r.stroke(),r.restore()}r.restore()}(u,n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,n.width,n.height),function(e,t,n,r){var i,o,l=a({},{border:!0,mercator:!1,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),u=e,d=function(e){for(var t,n={xMin:180,xMax:0,yMin:90,yMax:0},r=0;rl.x?n.xMax:l.x,n.yMin=n.yMinl.y?n.yMax:l.y}}return n}(u);if(l.mercator){var f=s(d.xMax,d.yMax),h=s(d.xMin,d.yMin);d.xMax=f[0],d.yMax=f[1],d.xMin=h[0],d.yMin=h[1]}for(var p=t.width/Math.abs(d.xMax-d.xMin),g=t.height/Math.abs(d.yMax-d.yMin),v=p4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),s=(t.height-t.area[0]-t.area[2])/e.length,l={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},u=o.activeWidth*t.pix,d=Math.min((t.width-t.area[1]-t.area[3])/2-u,(t.height-t.area[0]-t.area[2])/2-u);if(e=M(e,d,o.type,s,i),r.save(),r.translate(l.x,l.y),o.customColor=g(o.linearType,o.customColor,e,n),"pyramid"==o.type)for(var f=0;f4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"straight",width:2},t.extra.line);o.width*=t.pix;var s=t.chartData.xAxisData,c=s.xAxisPoints,l=s.eachSpacing,u=[];r.save();var f=0,h=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),f=-t._scrollDistance_-2*l+t.area[3],h=f+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,p,g;s=[].concat(t.chartData.yAxisData.ranges[e.index]),p=s.pop(),g=s.shift();var v=e.data,y=H(v,p,g,c,l,t,n,i);u.push(y);var m=L(y,e);if("dash"==e.lineType){var x=e.dashLength?e.dashLength:8;x*=t.pix,r.setLineDash([x,x])}r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(o.width),m.forEach((function(e,t){if(1===e.length)r.moveTo(e[0].x,e[0].y),r.arc(e[0].x,e[0].y,1,0,2*Math.PI);else{r.moveTo(e[0].x,e[0].y);var n=0;if("curve"===o.type)for(var i=0;if&&(r.moveTo(a.x,a.y),n=1),i>0&&a.x>f&&a.xf&&(r.moveTo(l.x,l.y),n=1),c>0&&l.x>f&&l.xf&&(r.moveTo(p.x,p.y),n=1),u>0&&p.x>f&&p.x4&&void 0!==arguments[4]?arguments[4]:1,o=(a({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),s=o.xAxisPoints,c=o.eachSpacing,l=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*c+t.area[3],t.xAxis.itemCount),e.forEach((function(e,a){var o,l,u;o=[].concat(t.chartData.yAxisData.ranges[e.index]),l=o.pop(),u=o.shift();var d=e.data,f=H(d,l,u,s,c,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setFillStyle(e.color),r.setLineWidth(1*t.pix);var h=e.pointShape;if("diamond"===h)f.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===h)f.forEach((function(e,n){null!==e&&(r.moveTo(e.x+2.5*t.pix,e.y),r.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===h)f.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===h)f.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("triangle"===h)return;r.closePath(),r.fill(),r.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var o,l,u;o=[].concat(t.chartData.yAxisData.ranges[e.index]),l=o.pop(),u=o.shift();var d=e.data,f=H(d,l,u,s,c,t,n,i);Q(f,e,n,r,t)})),r.restore(),{xAxisPoints:s,calPoints:l,eachSpacing:c}}(u,n,r,i,e),o=t.xAxisPoints,s=t.calPoints,c=t.eachSpacing;n.chartData.xAxisPoints=o,n.chartData.calPoints=s,n.chartData.eachSpacing=c,le(0,n,r,i),!1!==n.enableMarkLine&&1===e&&ne(n,r,i),ue(n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new _e({timing:n.timing,duration:v,onProcess:function(e){i.clearRect(0,0,n.width,n.height),n.rotate&&J(i,n),ce(0,n,0,i),se(h,n,r,i);var t=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{opacity:1,border:2},t.extra.bubble),s=t.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*u+t.area[3],t.xAxis.itemCount),e.forEach((function(a,s){var d,f,h;d=[].concat(t.chartData.yAxisData.ranges[a.index]),f=d.pop(),h=d.shift();var p=a.data,g=H(p,f,h,l,u,t,n,i);r.beginPath(),r.setStrokeStyle(a.color),r.setLineWidth(o.border*t.pix),r.setFillStyle(c(a.color,o.opacity)),g.forEach((function(e,n){r.moveTo(e.x+e.r,e.y),r.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),r.closePath(),r.fill(),r.stroke(),!1!==t.dataLabel&&1===i&&g.forEach((function(i,a){r.beginPath();var o=e.textSize*t.pix||n.fontSize;r.setFontSize(o),r.setFillStyle(e.textColor||"#FFFFFF"),r.setTextAlign("center"),r.fillText(String(i.t),i.x,i.y+o/2),r.closePath(),r.stroke(),r.setTextAlign("left")}))})),r.restore(),{xAxisPoints:l,calPoints:d,eachSpacing:u}}(u,n,r,i,e),o=t.xAxisPoints,s=t.calPoints,l=t.eachSpacing;n.chartData.xAxisPoints=o,n.chartData.calPoints=s,n.chartData.eachSpacing=l,le(0,n,r,i),!1!==n.enableMarkLine&&1===e&&ne(n,r,i),ue(n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new _e({timing:n.timing,duration:v,onProcess:function(e){i.clearRect(0,0,n.width,n.height),n.rotate&&J(i,n),ce(0,n,0,i),se(h,n,r,i);var o=function(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=a({},{width:f/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},n.extra.mix.column),l=n.chartData.xAxisData,u=l.xAxisPoints,f=l.eachSpacing,h=n.height-n.area[2],p=[],v=0,y=0;e.forEach((function(e,t){"column"==e.type&&(y+=1)})),i.save();var m=-2,x=u.length+2,_=0,b=n.width+f;if(n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),m=Math.floor(-n._scrollDistance_/f)-2,x=m+n.xAxis.itemCount+4,_=-n._scrollDistance_-2*f+n.area[3],b=_+(n.xAxis.itemCount+4)*f),s.customColor=g(s.linearType,s.customColor,e,r),e.forEach((function(e,a){var l,g,w;l=[].concat(n.chartData.yAxisData.ranges[e.index]),g=l.pop(),w=l.shift();var k=e.data,A=H(k,g,w,u,f,n,r,o);if(p.push(A),"column"==e.type){A=N(A,f,y,v,0,n);for(var S=0;Sm&&SM&&(R=M,B=0,$=M,U=0),R+B>F/2&&(R=F/2,B=0,$=F/2,U=0),R=R<0?0:R,$=$<0?0:$,B=B<0?0:B,U=U<0?0:U,i.arc(E+R,D+R,R,-Math.PI,-Math.PI/2),i.arc(E+F-$,D+$,$,-Math.PI/2,0),i.arc(E+F-B,D+M-B,B,0,Math.PI/2),i.arc(E+U,D+M-U,U,Math.PI/2,Math.PI)}else i.moveTo(P,T.y),i.lineTo(P+T.width-2,T.y),i.lineTo(P+T.width-2,n.height-n.area[2]),i.lineTo(P,n.height-n.area[2]),i.lineTo(P,T.y),i.setLineWidth(1),i.setStrokeStyle(O);i.setFillStyle(C),i.closePath(),i.fill()}}v+=1}if("area"==e.type)for(var z=L(A,e),q=0;q1){var V=W[0],G=W[W.length-1];i.moveTo(V.x,V.y);var K=0;if("curve"===e.style)for(var J=0;J_&&(i.moveTo(Y.x,Y.y),K=1),J>0&&Y.x>_&&Y.x_&&(i.moveTo(ee.x,ee.y),K=1),Z>0&&ee.x>_&&ee.x_&&(i.moveTo(c.x,c.y),o=1),s>0&&c.x>_&&c.x_&&(i.moveTo(f.x,f.y),o=1),u>0&&f.x>_&&f.x4&&void 0!==arguments[4]?arguments[4]:1,s=n.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,d=a({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},n.extra.column),f=[];i.save();var h=-2,p=l.length+2;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),h=Math.floor(-n._scrollDistance_/u)-2,p=h+n.xAxis.itemCount+4),n.tooltip&&n.tooltip.textList&&n.tooltip.textList.length&&1===o&&ie(n.tooltip.offset.x,n,0,i,u),d.customColor=g(d.linearType,d.customColor,e,r),e.forEach((function(a,s){var g,v,y;g=[].concat(n.chartData.yAxisData.ranges[a.index]),v=g.pop(),y=g.shift();var m=a.data;switch(d.type){case"group":var x=H(m,v,y,l,u,n,r,o),_=V(m,v,y,l,u,n,r,s,e,o);f.push(_),x=N(x,u,e.length,s,0,n);for(var b=0;bh&&bI&&(D=I,M=0,F=I,j=0),D+M>L/2&&(D=L/2,M=0,F=L/2,j=0),D=D<0?0:D,F=F<0?0:F,M=M<0?0:M,j=j<0?0:j,i.arc(C+D,O+D,D,-Math.PI,-Math.PI/2),i.arc(C+L-F,O+F,F,-Math.PI/2,0),i.arc(C+L-M,O+I-M,M,0,Math.PI/2),i.arc(C+j,O+I-j,j,Math.PI/2,Math.PI)}else i.moveTo(k,w.y),i.lineTo(k+w.width-2,w.y),i.lineTo(k+w.width-2,n.height-n.area[2]),i.lineTo(k,n.height-n.area[2]),i.lineTo(k,w.y),i.setLineWidth(1),i.setStrokeStyle(T);i.setFillStyle(S),i.closePath(),i.fill()}}break;case"stack":x=V(m,v,y,l,u,n,r,s,e,o);f.push(x),x=z(x,u,e.length,0,0,n);for(var R=0;Rh&&R0&&(A-=B),i.setFillStyle(S),i.moveTo(k,$.y),i.fillRect(k,$.y,$.width-2,A),i.closePath(),i.fill()}}break;case"meter":x=H(m,v,y,l,u,n,r,o);if(f.push(x),x=U(x,u,e.length,s,0,n,d.meterBorder),0==s)for(var q=0;qh&&q0&&(i.beginPath(),i.setStrokeStyle(a.color),i.setLineWidth(d.meterBorder*n.pix),i.moveTo(k+.5*d.meterBorder,W.y+A),i.lineTo(k+.5*d.meterBorder,W.y+.5*d.meterBorder),i.lineTo(k+W.width-.5*d.meterBorder,W.y+.5*d.meterBorder),i.lineTo(k+W.width-.5*d.meterBorder,W.y+A),i.stroke())}}else for(var G=0;Gh&&G4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},t.extra.area),s=t.chartData.xAxisData,l=s.xAxisPoints,u=s.eachSpacing,f=t.height-t.area[2],h=[];r.save();var p=0,g=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*u+t.area[3],g=p+(t.xAxis.itemCount+4)*u),e.forEach((function(e,a){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var m=e.data,x=H(m,v,y,l,u,t,n,i);h.push(x);for(var _=L(x,e),b=0;b<_.length;b++){var w=_[b];if(r.beginPath(),r.setStrokeStyle(c(e.color,o.opacity)),o.gradient){var k=r.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);k.addColorStop("0",c(e.color,o.opacity)),k.addColorStop("1.0",c("#FFFFFF",.1)),r.setFillStyle(k)}else r.setFillStyle(c(e.color,o.opacity));if(r.setLineWidth(o.width*t.pix),w.length>1){var A=w[0],S=w[w.length-1];r.moveTo(A.x,A.y);var T=0;if("curve"===o.type)for(var P=0;Pp&&(r.moveTo(C.x,C.y),T=1),P>0&&C.x>p&&C.xp&&(r.moveTo(E.x,E.y),T=1),I>0&&E.x>p&&E.xp&&(r.moveTo(F.x,F.y),T=1),D>0&&F.x>p&&F.xp&&(r.moveTo(B.x,B.y),R=1),$>0&&B.x>p&&B.xp&&(r.moveTo(z.x,z.y),R=1),U>0&&z.x>p&&z.xp&&(r.moveTo(W.x,W.y),R=1),q>0&&W.x>p&&W.x4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),s={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var l=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);o.customRadius>0&&(l=o.customRadius*t.pix),e=F(e,l,i);var u=o.activeRadius*t.pix;if(o.customColor=g(o.linearType,o.customColor,e,n),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(c(e.color,o.activeOpacity||.5)),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_+u,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(o.borderColor);var i,a=e.color;"custom"==o.linearType&&(i=r.createCircularGradient?r.createCircularGradient(s.x,s.y,e._radius_):r.createRadialGradient(s.x,s.y,0,s.x,s.y,e._radius_),i.addColorStop(0,c(o.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),a=i);r.setFillStyle(a),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill(),1==o.border&&r.stroke()})),"ring"===t.type){var d=.6*l;"number"===typeof o.ringWidth&&o.ringWidth>0&&(d=Math.max(0,l-o.ringWidth*t.pix)),r.beginPath(),r.setFillStyle(o.centerColor),r.moveTo(s.x,s.y),r.arc(s.x,s.y,d,0,2*Math.PI),r.closePath(),r.fill()}if(!1!==t.dataLabel&&1===i){for(var f=!1,h=0,p=e.length;h0){f=!0;break}f&&te(e,t,n,r,0,s)}return 1===i&&"ring"===t.type&&Y(t,n,r,s),{center:s,radius:l,series:e}}(u,n,r,i,e),ue(n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new _e({timing:n.timing,duration:v,onProcess:function(e){i.clearRect(0,0,n.width,n.height),n.rotate&&J(i,n),n.chartData.pieData=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var s={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},l=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding),u=o.minRadius||.5*l;e=j(e,o.type,u,l,i);var d=o.activeRadius*t.pix;if(o.customColor=g(o.linearType,o.customColor,e,n),e=e.map((function(e){return e._start_+=(o.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(c(e.color,o.activeOpacity||.5)),r.moveTo(s.x,s.y),r.arc(s.x,s.y,d+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(o.borderColor);var i,a=e.color;"custom"==o.linearType&&(i=r.createCircularGradient?r.createCircularGradient(s.x,s.y,e._radius_):r.createRadialGradient(s.x,s.y,0,s.x,s.y,e._radius_),i.addColorStop(0,c(o.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),a=i);r.setFillStyle(a),r.moveTo(s.x,s.y),r.arc(s.x,s.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),r.closePath(),r.fill(),1==o.border&&r.stroke()})),!1!==t.dataLabel&&1===i){for(var f=!1,h=0,p=e.length;h0){f=!0;break}f&&te(e,t,n,r,0,s)}return{center:s,radius:l,series:e}}(u,n,r,i,e),ue(n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new _e({timing:n.timing,duration:v,onProcess:function(e){i.clearRect(0,0,n.width,n.height),n.rotate&&J(i,n),n.chartData.radarData=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=a({},{gridColor:"#cccccc",gridType:"radar",opacity:.2,gridCount:3,border:!1,borderWidth:2},t.extra.radar),s=k(t.categories.length),l={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},u=(t.width-t.area[1]-t.area[3])/2,d=(t.height-t.area[0]-t.area[2])/2,h=Math.min(u-(w(t.categories,n.fontSize,r)+n.radarLabelTextMargin),d-n.radarLabelTextMargin);h-=n.radarLabelTextMargin*t.pix,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),s.forEach((function(e){var t=f(h*Math.cos(e),h*Math.sin(e),l);r.moveTo(l.x,l.y),r.lineTo(t.x,t.y)})),r.stroke(),r.closePath();for(var p=function(e){var n={};if(r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),"radar"==o.gridType)s.forEach((function(t,i){var a=f(h/o.gridCount*e*Math.cos(t),h/o.gridCount*e*Math.sin(t),l);0===i?(n=a,r.moveTo(a.x,a.y)):r.lineTo(a.x,a.y)})),r.lineTo(n.x,n.y);else{var i=f(h/o.gridCount*e*Math.cos(1.5),h/o.gridCount*e*Math.sin(1.5),l);r.arc(l.x,l.y,l.y-i.y,0,2*Math.PI,!1)}r.stroke(),r.closePath()},g=1;g<=o.gridCount;g++)p(g);var v=D(s,l,h,e,t,i);return v.forEach((function(e,n){if(r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(e.color),r.setFillStyle(c(e.color,o.opacity)),e.data.forEach((function(e,t){0===t?r.moveTo(e.position.x,e.position.y):r.lineTo(e.position.x,e.position.y)})),r.closePath(),r.fill(),!0===o.border&&r.stroke(),r.closePath(),!1!==t.dataPointShape){var i=e.data.map((function(e){return e.position}));X(i,e.color,e.pointShape,r,t)}})),ee(s,h,l,t,n,r),{center:l,radius:h,angleList:s}}(u,n,r,i,e),ue(n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new _e({timing:n.timing,duration:v,onProcess:function(e){i.clearRect(0,0,n.width,n.height),n.rotate&&J(i,n),n.chartData.arcbarData=function(e,t,n,r){var i,o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=a({},{startAngle:.75,endAngle:.25,type:"default",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=R(e,l,s),i=l.centerX||l.centerY?{x:l.centerX?l.centerX:t.width/2,y:l.centerY?l.centerY:t.height/2}:{x:t.width/2,y:t.height/2},l.radius?o=l.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=l.width/2),l.customColor=g(l.linearType,l.customColor,e,n);for(var u=0;u5&&void 0!==arguments[5]?arguments[5]:1,s=a({},{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"}},n.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),e=$(e,s.startAngle,s.endAngle);var l={x:n.width/2,y:n.height/2},u=Math.min(l.x,l.y);u-=5*n.pix,u-=s.width/2;var d=u-s.width,f=0;if("progress"==s.type){var h=u-3*s.width;i.beginPath();var p=i.createLinearGradient(l.x,l.y-h,l.x,l.y+h);p.addColorStop("0",c(t[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),i.setFillStyle(p),i.arc(l.x,l.y,h,0,2*Math.PI,!1),i.fill(),i.setLineWidth(s.width),i.setStrokeStyle(c(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,d,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),i.stroke(),f=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var g=f/s.splitLine.splitNumber/s.splitLine.childNumber,v=-u-.5*s.width-s.splitLine.fixRadius,y=-u-s.width-s.splitLine.fixRadius+s.splitLine.width;i.save(),i.translate(l.x,l.y),i.rotate((s.startAngle-1)*Math.PI);for(var m=s.splitLine.splitNumber*s.splitLine.childNumber+1,x=t[0].data*o,_=0;__/m?i.setStrokeStyle(c(t[0].color,1)):i.setStrokeStyle(c(t[0].color,.3)),i.setLineWidth(3*n.pix),i.moveTo(v,0),i.lineTo(y,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=R(t,s,o),i.setLineWidth(s.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,d,s.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var b=u-2.5*s.width;i.save(),i.translate(l.x,l.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(s.width/3);var w=i.createLinearGradient(0,.6*-b,0,.6*b);w.addColorStop("0",c("#FFFFFF",0)),w.addColorStop("0.5",c(t[0].color,1)),w.addColorStop("1.0",c("#FFFFFF",0)),i.setStrokeStyle(w),i.arc(0,0,b,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-b-s.width/3/2,-4),i.lineTo(-b-s.width/3/2-4,0),i.lineTo(-b-s.width/3/2,4),i.lineTo(-b-s.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(s.width),i.setLineCap("butt");for(var k=0;k5&&void 0!==arguments[5]?arguments[5]:1,s=a({},{color:{},average:{}},n.extra.candle);s.color=a({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},s.color),s.average=a({},{show:!1,name:[],day:[],color:r.color},s.average),n.extra.candle=s;var c=n.chartData.xAxisData,l=c.xAxisPoints,u=c.eachSpacing,f=[];i.save();var h=-2,p=l.length+2,g=0,v=n.width+u;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),h=Math.floor(-n._scrollDistance_/u)-2,p=h+n.xAxis.itemCount+4,g=-n._scrollDistance_-2*u+n.area[3],v=g+(n.xAxis.itemCount+4)*u),(s.average.show||t)&&t.forEach((function(e,t){var a,s,c;a=[].concat(n.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();for(var f=e.data,h=H(f,s,c,l,u,n,r,o),p=L(h,e),y=0;yg&&(i.moveTo(b.x,b.y),x=1),_>0&&b.x>g&&b.xh&&m0?(i.setStrokeStyle(s.color.upLine),i.setFillStyle(s.color.upFill),i.setLineWidth(1*n.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.moveTo(x[3].x,x[3].y)):(i.setStrokeStyle(s.color.downLine),i.setFillStyle(s.color.downFill),i.setLineWidth(1*n.pix),i.moveTo(x[3].x,x[3].y),i.lineTo(x[0].x,x[0].y),i.lineTo(x[0].x-u/4,x[0].y),i.lineTo(x[1].x-u/4,x[1].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[2].x,x[2].y),i.lineTo(x[1].x,x[1].y),i.lineTo(x[1].x+u/4,x[1].y),i.lineTo(x[0].x+u/4,x[0].y),i.lineTo(x[0].x,x[0].y),i.moveTo(x[3].x,x[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,m,n,r,i,e),o=t.xAxisPoints,s=t.calPoints,c=t.eachSpacing;n.chartData.xAxisPoints=o,n.chartData.calPoints=s,n.chartData.eachSpacing=c,le(0,n,r,i),!1!==n.enableMarkLine&&1===e&&ne(n,r,i),ue(m?0:n.series,n,r,i,n.chartData),oe(n,r,i,e),me(0,i)},onAnimationFinish:function(){l.uevent.trigger("renderComplete")}});break}}function we(){this.events={}}_e.prototype.stop=function(){this.isStop=!0},we.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},we.prototype.delEventListener=function(e){this.events[e]=[]},we.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.opts=a({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var n=K(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=q(this.opts.categories,this.opts,this.config),s=o.xAxisPoints,c=o.startX,l=o.endX,u=o.eachSpacing,d=u*(s.length-1),f=l-c;i=f-d,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}be.call(this,this.opts.type,this.opts,this.config,this.context)},ke.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=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=K(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,a=q(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,s=a.startX,c=a.endX,l=a.eachSpacing,u=l*t,d=c-s,f=d-l*(o.length-1);i=d/2-u,i>0&&(i=0),i2*Math.PI&&(e-=2*Math.PI),e},o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=t.angleList.map((function(e){return e=a(-1*e),e}));s.forEach((function(e,t){var n=a(e-r/2),s=a(e+r/2);s=n&&o<=s||o+2*Math.PI>=n&&o+2*Math.PI<=s)&&(i=t)}))}return i}({x:n.x,y:n.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(e,t){for(var n=-1,r=0,i=t.series.length;ra.funnelArea[0]&&e.xa.funnelArea[1]&&e.ya.area[0]&&e.xa.area[1]&&e.y4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=n.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(n.categories){for(var c=1;ct&&(a.index=n)}));else{for(var l=Array(t.length),u=0;ut.start.x&&e.xt.start.y&&e.yu[0]-0&&e.xu[1]-0&&e.y1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n){_(n,this.opts,e);var r=this.getLegendDataIndex(e);r>=0&&("candle"==this.opts.type?this.opts.seriesMA[r].show=!this.opts.seriesMA[r].show:this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,be.call(this,this.opts.type,this.opts,this.config,this.context))}},ke.prototype.showToolTip=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||console.log("[uCharts] 未获取到event坐标信息");var i=_(r,this.opts,e),o=this.scrollOption.currentOffset,s=a({},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),l=void 0==n.index?c.index:n.index;if(l>-1||l.length>0){var u=b(this.opts.series,l,c.group);if(0!==u.length){var d=A(u,this.opts,l,c.group,this.opts.categories,n),f=d.textList,h=d.offset;h.y=i.y,s.tooltip={textList:void 0!==n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}}be.call(this,s.type,s,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),u=b(this.opts.series,l);if(0!==u.length){var p=S(u,this.opts,l,this.opts.categories,n);f=p.textList,h=p.offset;h.y=i.y,s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}}be.call(this,s.type,s,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),l=void 0==n.index?c.index:n.index;if(l>-1){o=this.scrollOption.currentOffset,s=a({},this.opts,{_scrollDistance_:o,animation:!1}),u=b(this.opts.series,l);if(0!==u.length){d=T(this.opts.series[0].data,u,this.opts,l,this.opts.categories,this.opts.extra.candle,n),f=d.textList,h=d.offset;h.y=i.y,s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}}be.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){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){s=a({},this.opts,{animation:!1}),u=a({},s._series_[l]),f=[{text:n.formatter?n.formatter(u,void 0,l,s):u.name+": "+u.data,color:u.color}],h={x:i.x,y:i.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}be.call(this,s.type,s,this.config,this.context)}if("map"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){s=a({},this.opts,{animation:!1}),u=a({},this.opts.series[l]);u.name=u.properties.name;f=[{text:n.formatter?n.formatter(u,void 0,l,this.opts):u.name,color:u.color}],h={x:i.x,y:i.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}s.updateData=!1,be.call(this,s.type,s,this.config,this.context)}if("word"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){s=a({},this.opts,{animation:!1}),u=a({},this.opts.series[l]),f=[{text:n.formatter?n.formatter(u,void 0,l,this.opts):u.name,color:u.color}],h={x:i.x,y:i.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}s.updateData=!1,be.call(this,s.type,s,this.config,this.context)}if("radar"===this.opts.type){l=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(l>-1){s=a({},this.opts,{animation:!1}),u=b(this.opts.series,l);if(0!==u.length){f=u.map((function(e){return{text:n.formatter?n.formatter(e,t.opts.categories[l],l,t.opts):e.name+": "+e.data,color:e.color}})),h={x:i.x,y:i.y};s.tooltip={textList:n.textList?n.textList:f,offset:void 0!==n.offset?n.offset:h,option:n,index:l}}}be.call(this,s.type,s,this.config,this.context)}},ke.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=a({},this.opts,{_scrollDistance_:e,animation:!1});be.call(this,this.opts.type,t,this.config,this.context)},ke.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var n=_(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},ke.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,n=Date.now(),r=n-this.scrollOption.lastMoveTime;if(!(r=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=o-a?(s=a-o,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}(this,c+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=l-c;var u=a({},this.opts,{_scrollDistance_:c+o,animation:!1});return this.opts=u,be.call(this,u.type,u,this.config,this.context),c+o}}},ke.prototype.scrollEnd=function(e){if(!0===this.opts.enableScroll){var t=this.scrollOption,n=t.currentOffset,r=t.distance;this.scrollOption.currentOffset=n+r,this.scrollOption.distance=0}},"object"===r(e)&&"object"===r(e.exports)&&(e.exports=ke)}).call(this,n("dc84")(e))},dc84:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},dd3e:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},df3c:function(e,t,n){"use strict";(function(e,r){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Ft,t.createComponent=Wt,t.createPage=qt,t.createPlugin=Vt,t.createSubpackageApp=Ht,t.default=void 0;var a,o=i(n("34cf")),s=i(n("7ca3")),c=i(n("931d")),l=i(n("af34")),u=i(n("3b2d")),d=n("d3b4"),f=i(n("3240"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var m=Object.prototype.toString,x=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function b(e){return"string"===typeof e}function w(e){return"[object Object]"===m.call(e)}function k(e,t){return x.call(e,t)}function A(){}function S(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var T=/-(\w)/g,P=S((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))}));function C(e){var t={};return w(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var O=["invoke","success","fail","complete","returnValue"],L={},I={};function E(e,t){Object.keys(t).forEach((function(n){-1!==O.indexOf(n)&&_(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(i){j(e[n],i,t).then((function(e){return _(r)&&r(e)||e}))}}})),t}function $(e,t){var n=[];Array.isArray(L.returnValue)&&n.push.apply(n,(0,l.default)(L.returnValue));var r=I[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,l.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function B(e){var t=Object.create(null);Object.keys(L).forEach((function(e){"returnValue"!==e&&(t[e]=L[e].slice())}));var n=I[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function N(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),a=1;a-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}function ce(){if(_(getApp)){var e=getApp({allowDefault:!0});if(e&&e.$vm)return e.$vm.$locale}return ie()}var le=[];"undefined"!==typeof r&&(r.getLocale=ce);var ue={promiseInterceptor:U},de=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:ce,setLocale:function(e){var t=!!_(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==e&&(t.$vm.$locale=e,le.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===le.indexOf(e)&&le.push(e)},addInterceptor:function(e,t){"string"===typeof e&&w(t)?E(I[e]||(I[e]={}),t):w(e)&&E(L,e)},removeInterceptor:function(e,t){"string"===typeof e?w(t)?D(I[e],t):delete I[e]:w(e)&&D(L,e)},interceptors:ue});var fe,he={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},pe={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(t)){var a=!0===i?t:{};for(var o in _(n)&&(n=n(t,a)||{}),t)if(k(n,o)){var s=n[o];_(s)&&(s=s(t[o],t,a)),s?b(s)?a[s]=t[o]:w(s)&&(a[s.name?s.name:o]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==Ce.indexOf(o)?_(t[o])&&(a[o]=Oe(e,t[o],r)):i||(a[o]=t[o]);return a}return _(t)&&(t=Oe(e,t,r)),t}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(Pe.returnValue)&&(t=Pe.returnValue(e,t)),Le(e,t,n,{},r)}function Ee(t,n){if(k(Pe,t)){var r=Pe[t];return r?function(n,i){var a=r;_(r)&&(a=r(n)),n=Le(t,n,a.args,a.returnValue);var o=[n];"undefined"!==typeof i&&o.push(i),_(a.name)?t=a.name(n):b(a.name)&&(t=a.name);var s=e[t].apply(e,o);return K(t)?Ie(t,s,a.returnValue,G(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var De=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){De[e]=function(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};_(n)&&n(i),_(r)&&r(i)}}(e)}));var Fe={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Me=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,a=!1;Fe[t]?(a={errMsg:"getProvider:ok",service:t,provider:Fe[t]},_(n)&&n(a)):(a={errMsg:"getProvider:fail service not found"},_(r)&&r(a)),_(i)&&i(a)}}),je=function(){var e;return function(){return e||(e=new f.default),e}}();function Re(e,t,n){return e[t].apply(e,n)}var $e,Be,Ne,Ue=Object.freeze({__proto__:null,$on:function(){return Re(je(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Re(je(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Re(je(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Re(je(),"$emit",Array.prototype.slice.call(arguments))}});function ze(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function qe(e){try{return JSON.parse(e)}catch(t){}return e}var We=[];function He(e,t){We.forEach((function(n){n(e,t)})),We.length=0}var Ve=[];var Ge=e.getAppBaseInfo&&e.getAppBaseInfo();Ge||(Ge=e.getSystemInfoSync());var Ke=Ge?Ge.host:null,Je=Ke&&"SAAASDK"===Ke.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Xe=Object.freeze({__proto__:null,shareVideoMessage:Je,getPushClientId:function(e){w(e)||(e={});var t=function(e){var t={};for(var n in e){var r=e[n];_(r)&&(t[n]=ze(r),delete e[n])}return t}(e),n=t.success,r=t.fail,i=t.complete,a=_(n),o=_(r),s=_(i);Promise.resolve().then((function(){"undefined"===typeof Ne&&(Ne=!1,$e="",Be="uniPush is not enabled"),We.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},a&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&r(c)),s&&i(c)})),"undefined"!==typeof $e&&He($e,Be)}))},onPushMessage:function(e){-1===Ve.indexOf(e)&&Ve.push(e)},offPushMessage:function(e){if(e){var t=Ve.indexOf(e);t>-1&&Ve.splice(t,1)}else Ve.length=0},invokePushCallback:function(e){if("enabled"===e.type)Ne=!0;else if("clientId"===e.type)$e=e.cid,Be=e.errMsg,He($e,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:qe(e.message)},n=0;n1?t-1:0),r=1;r=0;a--){var o=i[a];if(o.$scope._$vueId===n)return o}for(var s=i.length-1;s>=0;s--)if(r=e(i[s],n),r)return r}(this.$vm,r)),t||(t=this.$vm),i.parent=t}function rt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function it(e){return function(e){return null!==e&&"object"===(0,u.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var at=/_(.*)_worklet_factory_/;var ot=Page,st=Component,ct=/:/g,lt=S((function(e){return P(e.replace(ct,"-"))}));function ut(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return dt("onLoad",e),ot(e)},Page.after=ot.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return dt("created",e),st(e)});function ft(e,t,n){t.forEach((function(t){(function e(t,n){if(!n)return!0;if(f.default.options&&Array.isArray(f.default.options[t]))return!0;if(n=n.default||n,_(n))return!!_(n.extendOptions[t])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[t]));if(_(n[t])||Array.isArray(n[t]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return e(t,n)})):void 0})(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];pt(t).forEach((function(t){return gt(e,t,n)}))}function pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&_(e[n])&&t.push(n)})),t}function gt(e,t,n){-1!==n.indexOf(t)||k(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function vt(e,t){var n;return t=t.default||t,n=_(t)?t:e.extend(t),t=n.options,[n,t]}function yt(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function mt(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function xt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"成人",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return w(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||k(n,e)||(n[e]=r[e])})),n}var _t=[String,Number,Boolean,Object,Array,null];function bt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function wt(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,a=e.props;a||(e.props=a=[]);var o=[];return Array.isArray(n)&&n.forEach((function(e){o.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(a)?(a.push("name"),a.push("value")):(a.name={type:String,default:""},a.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(r)&&r.props&&o.push(t({properties:At(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){w(e)&&e.props&&o.push(t({properties:At(e.props,!0)}))})),o}function kt(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function At(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:bt(e)}})):w(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(w(n)){var i=n.default;_(i)&&(i=i()),n.type=kt(0,n.type),r[t]={type:-1!==_t.indexOf(n.type)?n.type:null,value:i,observer:bt(t)}}else{var a=kt(0,n);r[t]={type:-1!==_t.indexOf(a)?a:null,observer:bt(t)}}})),r}function St(e,t,n,r){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,a){"string"===typeof t?t?"$event"===t?i["$"+a]=n:"arguments"===t?i["$"+a]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?i["$"+a]=e.__get_value(t.replace("$event.",""),n):i["$"+a]=e.__get_value(t):i["$"+a]=e:i["$"+a]=function(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var a,o=t[1],s=t[3];Number.isInteger(r)?a=r:r?"string"===typeof r&&r&&(a=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):a=n,Number.isInteger(a)?n=i:o?Array.isArray(a)?n=a.find((function(t){return e.__get_value(o,t)===i})):w(a)?n=Object.keys(a).find((function(t){return e.__get_value(o,a[t])===i})):console.error("v-for 暂不支持循环数据:",a):n=a[i],s&&(n=e.__get_value(s,n))}})),n}(e,t)})),i}function Tt(e){for(var t={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=!1,s=w(t.detail)&&t.detail.__args__||[t.detail];if(i&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return o?[t]:s;var c=St(e,r,t,s),l=[];return n.forEach((function(e){"$event"===e?"__set_model"!==a||i?i&&!o?l.push(s[0]):l.push(t):l.push(t.target.value):Array.isArray(e)&&"o"===e[0]?l.push(Tt(e)):"string"===typeof e&&k(c,e)?l.push(c[e]):l.push(e)})),l}function Ct(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=A,e.preventDefault=A,e.target=e.target||{},k(e,"detail")||(e.detail={}),k(e,"markerId")&&(e.detail="object"===(0,u.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),w(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=e.type,a=[];return r.forEach((function(n){var r=n[0],o=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var c="~"===r.charAt(0);r=c?r.slice(1):r,o&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(i,r)&&o.forEach((function(n){var r=n[0];if(r){var i=t.$vm;if(i.$options.generic&&(i=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(i)||i),"$emit"===r)return void i.$emit.apply(i,Pt(t.$vm,e,n[1],n[2],s,r));var o=i[r];if(!_(o)){var l="page"===t.$vm.mpType?"Page":"Component",u=t.route||t.is;throw new Error("".concat(l,' "').concat(u,'" does not have a method "').concat(r,'"'))}if(c){if(o.once)return;o.once=!0}var d=Pt(t.$vm,e,n[1],n[2],s,r);d=Array.isArray(d)?d:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(d=d.concat([,,,,,,,,,,e])),a.push(o.apply(i,d))}}))})),"input"===i&&1===a.length&&"undefined"!==typeof a[0]?a[0]:void 0}var Ot={};var Lt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function It(){f.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=f.default.prototype.__call_hook;f.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=function(e){var t=Ot[e];return delete Ot[e],t}(n.__id__),delete n.__id__),e.call(this,t,n)}}function Et(t,n){var r=n.mocks,i=n.initRefs;It(),function(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}f.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},f.default.prototype.$getSSP=function(t,n,r){var i=e[t];if(i){var a=i[n]||[];return r?a:a[0]}},f.default.prototype.$setSSP=function(t,r){var i=0;return n.call(this,(function(n){var a=e[n],o=a[t]=a[t]||[];o.push(r),i=o.length-1})),i},f.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},f.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},f.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}(),t.$options.store&&(f.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=y(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}(f.default),f.default.prototype.mpHost="mp-weixin",f.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(e,t){var n=e.$mp[e.mpType];t.forEach((function(t){k(n,t)&&(e[t]=n[t])}))}(this,r))}}});var a={onLaunch:function(n){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",n),this.$vm.__call_hook("onLaunch",n))}};a.globalData=t.$options.globalData||{};var o=t.$options.methods;return o&&Object.keys(o).forEach((function(e){a[e]=o[e]})),function(e,t,n){var r=e.observable({locale:n||ae.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}(f.default,t,function(){var t,n=e.getAppBaseInfo(),r=n&&n.language?n.language:"en";return t=se(r)||"en",t}()),ft(a,Lt),ht(a,t.$options),a}function Dt(e){return Et(e,{mocks:Ye,initRefs:tt})}function Ft(e){return App(Dt(e)),e}var Mt=/[!'()*]/g,jt=function(e){return"%"+e.charCodeAt(0).toString(16)},Rt=/%2C/g,$t=function(e){return encodeURIComponent(e).replace(Mt,jt).replace(Rt,",")};function Bt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$t,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Nt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=arguments.length>2?arguments[2]:void 0,a=vt(f.default,e),s=(0,o.default)(a,2),c=s[0],l=s[1],u=p({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(u,l["mp-weixin"].options);var d={options:u,data:xt(l,f.default.prototype),behaviors:wt(l,Qe),properties:At(l.props,!1,l.__file,u),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};mt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),yt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:nt,__e:Ct}};return l.externalClasses&&(d.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){d.methods[e]=function(t){return this.$vm[e](t)}})),i?[d,l,c]:n?d:[d,c]}(e,{isPage:Ze,initRelation:et},t)}var Ut=["onShow","onHide","onUnload"];function zt(e){var t=Nt(e,!0),n=(0,o.default)(t,2),r=n[0],i=n[1];return ft(r.methods,Ut,i),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Bt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},ht(r.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(at);if(r){var i=r[1];e[n]=t[n],e[i]=t[i]}}))}(r.methods,i.methods),r}function qt(e){return Component(function(e){return zt(e)}(e))}function Wt(e){return Component(Nt(e))}function Ht(t){var n=Dt(t),r=getApp({allowDefault:!0});t.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){k(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){k(r,e)||(r[e]=n[e])})),_(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r0?o-1:12,l=!1,u=0;(a%4===0&&a%100!==0||a%400===0)&&(l=!0),u=[1,3,5,7,8,10,12].indexOf(c)>-1?31:2===c?l?29:28:30;var d=a-parseInt(t[1]),f=o-parseInt(t[3]),h=s-parseInt(t[4]);h<0&&(h+=u,f--),f<0&&(d--,f+=12),r=d<0?"出生日期有误!":0===d?0===f?h+"天":f+"个月":0===f?d+"岁":d+"岁"+f+"个月"}return r},getTime:function(){var e=new Date,t=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"月"+(e.getDate()<10?"0"+e.getDate():e.getDate()+"日");return t},getDate:function(e){var t=new Date,n=t.getFullYear(),r=t.getMonth()+1,i=t.getDate();if(r=r>9?r:"0"+r,i=i>9?i:"0"+i,"tow"===e)return n-=2,"".concat(n,"-").concat(r,"-").concat(i);if("start"===e)return n=n,"".concat(n,"-").concat(r,"-").concat(i);if("end"===e)return n+=60,"".concat(n,"-").concat(r,"-").concat(i);if("m"==e)return"01"==r||"03"==r||"05"==r||"07"==r||"08"==r||"10"==r||"12"==r?n+"/"+r+"/01~"+n+"/"+r+"/31":"02"==r?n%4==0&&n%100!=0||n%100==0&&n%400==0?n+"/"+r+"/01~"+n+"/"+r+"/29":n+"/"+r+"/01~"+n+"/"+r+"/28":n+"/"+r+"/01~"+n+"/"+r+"/30"},getMonth:function(e,t){var n=new Date(e.substring(0,10)),r=n.getFullYear(),i=n.getMonth()+1;Math.abs(t)>12&&(t%=12);0!=t&&(i+t>12?(r++,i=(i+t)%12):i+t<1?(r--,i=12+i+t):i+=t);i=i<10?"0"+i:i;n.getDate();return"01"==i||"03"==i||"05"==i||"07"==i||"08"==i||"10"==i||"12"==i?r+"/"+i+"/01~"+r+"/"+i+"/31":"02"==i?r%4==0&&r%100!=0||r%100==0&&r%400==0?r+"/"+i+"/01~"+r+"/"+i+"/29":r+"/"+i+"/01~"+r+"/"+i+"/28":r+"/"+i+"/01~"+r+"/"+i+"/30"},GetDateStr:function(e){var t=new Date;t.setDate(t.getDate()+e);var n=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,i=t.getDate()<10?"0"+t.getDate():t.getDate();return n+"-"+r+"-"+i},handlePages:function(t,n){if(1==t)return void e.navigateTo({url:"/BLEPages/adult/PCD01pro?deviceId="+n});if(4==t||16==t)return void e.navigateTo({url:"/BLEPages/adult/PCL01?deviceId="+n});if(7==t)return void e.navigateTo({url:"/BLEPages/adult/F01PRO?deviceId="+n});if(8==t)return void e.navigateTo({url:"/BLEPages/adult/H01pro?deviceId="+n});if(14==t)return void e.navigateTo({url:"/BLEPages/adult/F01B?deviceId="+n});if(21==t)return void e.navigateTo({url:"/BLEPages/adult/H09B?deviceId="+n})},PrefixZero:function(e,t){return(Array(t).join(0)+e).slice(-t)},getBluetoothAdapter:function(t){"openBluetoothAdapter:fail auth denied"==t.errMsg||"openBluetoothAdapter:fail auth deny"===t.errMsg||"openBluetoothAdapter:fail authorize no response"===t.errMsg?e.showModal({title:"提示",content:"需要您授权使用手机蓝牙",showCancel:!1,success:function(t){e.openSetting({success:function(t){t.authSetting["scope.bluetooth"]?e.openBluetoothAdapter({success:function(t){e.showToast({title:"获取权限成功,请继续去测量",icon:"none"}),a.default.commit("changeBluetooth",!0)},fail:function(t){e.showToast({title:"请打开手机蓝牙",icon:"none",duration:1e3}),console.log("初始化蓝牙失败:"+t.errMsg)}}):e.showToast({title:"获取权限失败,将无法使用手机蓝牙进行测量",icon:"none"})}})}}):e.showToast({title:"请打开手机蓝牙",icon:"none",duration:1e3})}};t.default=o}).call(this,n("df3c")["default"])},ee10:function(e,t){function n(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,c,"next",e)}function c(e){n(o,i,a,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},f439:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=r},f756:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("d4c8")),a=r(n("a7ca"));function o(e){for(var t={},n=e.split(","),r=0;r([^]*)<\/body>/.test(e);return t?RegExp.$1:e}(t),t=function(e){return e.replace(//gi,"").replace(/\/\*.*?\*\//gi,"").replace(/[ ]+/gi,"").replace(//gi,"")}(t),t=i.default.strDiscode(t);var u=[],d={nodes:[],imageUrls:[]},f=function(){var t={};return e.getSystemInfo({success:function(e){t.width=e.windowWidth,t.height=e.windowHeight}}),t}();function h(e){this.node="element",this.tag=e,this.$screen=f}return(0,a.default)(t,{start:function(e,t,a){var o=new h(e);if(0!==u.length){var f=u[0];void 0===f.nodes&&(f.nodes=[])}if(s[e]?o.tagType="block":c[e]?o.tagType="inline":l[e]&&(o.tagType="closeSelf"),o.attr=t.reduce((function(e,t){var n=t.name,r=t.value;return"class"===n&&(o.classStr=r),"style"===n&&(o.styleStr=r),r.match(/ /)&&(r=r.split(" ")),e[n]?Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]:e[n]=r,e}),{}),o.classStr?o.classStr+=" ".concat(o.tag):o.classStr=o.tag,"inline"===o.tagType&&(o.classStr+=" inline"),"img"===o.tag){var p=o.attr.src;p=i.default.urlToHttpUrl(p,r.domain),Object.assign(o.attr,r,{src:p||""}),p&&d.imageUrls.push(p)}if("a"===o.tag&&(o.attr.href=o.attr.href||""),"font"===o.tag){var g=["x-small","small","medium","large","x-large","xx-large","-webkit-xxx-large"],v={color:"color",face:"font-family",size:"font-size"};o.styleStr||(o.styleStr=""),Object.keys(v).forEach((function(e){if(o.attr[e]){var t="size"===e?g[o.attr[e]-1]:o.attr[e];o.styleStr+="".concat(v[e],": ").concat(t,";")}}))}if("source"===o.tag&&(d.source=o.attr.src),n.start&&n.start(o,d),a){var y=u[0]||d;void 0===y.nodes&&(y.nodes=[]),y.nodes.push(o)}else u.unshift(o)},end:function(e){var t=u.shift();if(t.tag!==e&&console.error("invalid state: mismatch end tag"),"video"===t.tag&&d.source&&(t.attr.src=d.source,delete d.source),n.end&&n.end(t,d),0===u.length)d.nodes.push(t);else{var r=u[0];r.nodes||(r.nodes=[]),r.nodes.push(t)}},chars:function(e){if(e.trim()){var t={node:"text",text:e};if(n.chars&&n.chars(t,d),0===u.length)d.nodes.push(t);else{var r=u[0];void 0===r.nodes&&(r.nodes=[]),r.nodes.push(t)}}}}),d};t.default=u}).call(this,n("3223")["default"])},f77a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={id:"2852637",name:"uniui图标库",font_family:"uniicons",css_prefix_text:"uniui-",description:"",glyphs:[{icon_id:"25027049",name:"yanse",font_class:"color",unicode:"e6cf",unicode_decimal:59087},{icon_id:"25027048",name:"wallet",font_class:"wallet",unicode:"e6b1",unicode_decimal:59057},{icon_id:"25015720",name:"settings-filled",font_class:"settings-filled",unicode:"e6ce",unicode_decimal:59086},{icon_id:"25015434",name:"shimingrenzheng-filled",font_class:"auth-filled",unicode:"e6cc",unicode_decimal:59084},{icon_id:"24934246",name:"shop-filled",font_class:"shop-filled",unicode:"e6cd",unicode_decimal:59085},{icon_id:"24934159",name:"staff-filled-01",font_class:"staff-filled",unicode:"e6cb",unicode_decimal:59083},{icon_id:"24932461",name:"VIP-filled",font_class:"vip-filled",unicode:"e6c6",unicode_decimal:59078},{icon_id:"24932462",name:"plus_circle_fill",font_class:"plus-filled",unicode:"e6c7",unicode_decimal:59079},{icon_id:"24932463",name:"folder_add-filled",font_class:"folder-add-filled",unicode:"e6c8",unicode_decimal:59080},{icon_id:"24932464",name:"yanse-filled",font_class:"color-filled",unicode:"e6c9",unicode_decimal:59081},{icon_id:"24932465",name:"tune-filled",font_class:"tune-filled",unicode:"e6ca",unicode_decimal:59082},{icon_id:"24932455",name:"a-rilidaka-filled",font_class:"calendar-filled",unicode:"e6c0",unicode_decimal:59072},{icon_id:"24932456",name:"notification-filled",font_class:"notification-filled",unicode:"e6c1",unicode_decimal:59073},{icon_id:"24932457",name:"wallet-filled",font_class:"wallet-filled",unicode:"e6c2",unicode_decimal:59074},{icon_id:"24932458",name:"paihangbang-filled",font_class:"medal-filled",unicode:"e6c3",unicode_decimal:59075},{icon_id:"24932459",name:"gift-filled",font_class:"gift-filled",unicode:"e6c4",unicode_decimal:59076},{icon_id:"24932460",name:"fire-filled",font_class:"fire-filled",unicode:"e6c5",unicode_decimal:59077},{icon_id:"24928001",name:"refreshempty",font_class:"refreshempty",unicode:"e6bf",unicode_decimal:59071},{icon_id:"24926853",name:"location-ellipse",font_class:"location-filled",unicode:"e6af",unicode_decimal:59055},{icon_id:"24926735",name:"person-filled",font_class:"person-filled",unicode:"e69d",unicode_decimal:59037},{icon_id:"24926703",name:"personadd-filled",font_class:"personadd-filled",unicode:"e698",unicode_decimal:59032},{icon_id:"24923351",name:"back",font_class:"back",unicode:"e6b9",unicode_decimal:59065},{icon_id:"24923352",name:"forward",font_class:"forward",unicode:"e6ba",unicode_decimal:59066},{icon_id:"24923353",name:"arrowthinright",font_class:"arrow-right",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923353",name:"arrowthinright",font_class:"arrowthinright",unicode:"e6bb",unicode_decimal:59067},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrow-left",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923354",name:"arrowthinleft",font_class:"arrowthinleft",unicode:"e6bc",unicode_decimal:59068},{icon_id:"24923355",name:"arrowthinup",font_class:"arrow-up",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923355",name:"arrowthinup",font_class:"arrowthinup",unicode:"e6bd",unicode_decimal:59069},{icon_id:"24923356",name:"arrowthindown",font_class:"arrow-down",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923356",name:"arrowthindown",font_class:"arrowthindown",unicode:"e6be",unicode_decimal:59070},{icon_id:"24923349",name:"arrowdown",font_class:"bottom",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923349",name:"arrowdown",font_class:"arrowdown",unicode:"e6b8",unicode_decimal:59064},{icon_id:"24923346",name:"arrowright",font_class:"right",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923346",name:"arrowright",font_class:"arrowright",unicode:"e6b5",unicode_decimal:59061},{icon_id:"24923347",name:"arrowup",font_class:"top",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923347",name:"arrowup",font_class:"arrowup",unicode:"e6b6",unicode_decimal:59062},{icon_id:"24923348",name:"arrowleft",font_class:"left",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923348",name:"arrowleft",font_class:"arrowleft",unicode:"e6b7",unicode_decimal:59063},{icon_id:"24923334",name:"eye",font_class:"eye",unicode:"e651",unicode_decimal:58961},{icon_id:"24923335",name:"eye-filled",font_class:"eye-filled",unicode:"e66a",unicode_decimal:58986},{icon_id:"24923336",name:"eye-slash",font_class:"eye-slash",unicode:"e6b3",unicode_decimal:59059},{icon_id:"24923337",name:"eye-slash-filled",font_class:"eye-slash-filled",unicode:"e6b4",unicode_decimal:59060},{icon_id:"24923305",name:"info-filled",font_class:"info-filled",unicode:"e649",unicode_decimal:58953},{icon_id:"24923299",name:"reload-01",font_class:"reload",unicode:"e6b2",unicode_decimal:59058},{icon_id:"24923195",name:"mic_slash_fill",font_class:"micoff-filled",unicode:"e6b0",unicode_decimal:59056},{icon_id:"24923165",name:"map-pin-ellipse",font_class:"map-pin-ellipse",unicode:"e6ac",unicode_decimal:59052},{icon_id:"24923166",name:"map-pin",font_class:"map-pin",unicode:"e6ad",unicode_decimal:59053},{icon_id:"24923167",name:"location",font_class:"location",unicode:"e6ae",unicode_decimal:59054},{icon_id:"24923064",name:"starhalf",font_class:"starhalf",unicode:"e683",unicode_decimal:59011},{icon_id:"24923065",name:"star",font_class:"star",unicode:"e688",unicode_decimal:59016},{icon_id:"24923066",name:"star-filled",font_class:"star-filled",unicode:"e68f",unicode_decimal:59023},{icon_id:"24899646",name:"a-rilidaka",font_class:"calendar",unicode:"e6a0",unicode_decimal:59040},{icon_id:"24899647",name:"fire",font_class:"fire",unicode:"e6a1",unicode_decimal:59041},{icon_id:"24899648",name:"paihangbang",font_class:"medal",unicode:"e6a2",unicode_decimal:59042},{icon_id:"24899649",name:"font",font_class:"font",unicode:"e6a3",unicode_decimal:59043},{icon_id:"24899650",name:"gift",font_class:"gift",unicode:"e6a4",unicode_decimal:59044},{icon_id:"24899651",name:"link",font_class:"link",unicode:"e6a5",unicode_decimal:59045},{icon_id:"24899652",name:"notification",font_class:"notification",unicode:"e6a6",unicode_decimal:59046},{icon_id:"24899653",name:"staff",font_class:"staff",unicode:"e6a7",unicode_decimal:59047},{icon_id:"24899654",name:"VIP",font_class:"vip",unicode:"e6a8",unicode_decimal:59048},{icon_id:"24899655",name:"folder_add",font_class:"folder-add",unicode:"e6a9",unicode_decimal:59049},{icon_id:"24899656",name:"tune",font_class:"tune",unicode:"e6aa",unicode_decimal:59050},{icon_id:"24899657",name:"shimingrenzheng",font_class:"auth",unicode:"e6ab",unicode_decimal:59051},{icon_id:"24899565",name:"person",font_class:"person",unicode:"e699",unicode_decimal:59033},{icon_id:"24899566",name:"email-filled",font_class:"email-filled",unicode:"e69a",unicode_decimal:59034},{icon_id:"24899567",name:"phone-filled",font_class:"phone-filled",unicode:"e69b",unicode_decimal:59035},{icon_id:"24899568",name:"phone",font_class:"phone",unicode:"e69c",unicode_decimal:59036},{icon_id:"24899570",name:"email",font_class:"email",unicode:"e69e",unicode_decimal:59038},{icon_id:"24899571",name:"personadd",font_class:"personadd",unicode:"e69f",unicode_decimal:59039},{icon_id:"24899558",name:"chatboxes-filled",font_class:"chatboxes-filled",unicode:"e692",unicode_decimal:59026},{icon_id:"24899559",name:"contact",font_class:"contact",unicode:"e693",unicode_decimal:59027},{icon_id:"24899560",name:"chatbubble-filled",font_class:"chatbubble-filled",unicode:"e694",unicode_decimal:59028},{icon_id:"24899561",name:"contact-filled",font_class:"contact-filled",unicode:"e695",unicode_decimal:59029},{icon_id:"24899562",name:"chatboxes",font_class:"chatboxes",unicode:"e696",unicode_decimal:59030},{icon_id:"24899563",name:"chatbubble",font_class:"chatbubble",unicode:"e697",unicode_decimal:59031},{icon_id:"24881290",name:"upload-filled",font_class:"upload-filled",unicode:"e68e",unicode_decimal:59022},{icon_id:"24881292",name:"upload",font_class:"upload",unicode:"e690",unicode_decimal:59024},{icon_id:"24881293",name:"weixin",font_class:"weixin",unicode:"e691",unicode_decimal:59025},{icon_id:"24881274",name:"compose",font_class:"compose",unicode:"e67f",unicode_decimal:59007},{icon_id:"24881275",name:"qq",font_class:"qq",unicode:"e680",unicode_decimal:59008},{icon_id:"24881276",name:"download-filled",font_class:"download-filled",unicode:"e681",unicode_decimal:59009},{icon_id:"24881277",name:"pengyouquan",font_class:"pyq",unicode:"e682",unicode_decimal:59010},{icon_id:"24881279",name:"sound",font_class:"sound",unicode:"e684",unicode_decimal:59012},{icon_id:"24881280",name:"trash-filled",font_class:"trash-filled",unicode:"e685",unicode_decimal:59013},{icon_id:"24881281",name:"sound-filled",font_class:"sound-filled",unicode:"e686",unicode_decimal:59014},{icon_id:"24881282",name:"trash",font_class:"trash",unicode:"e687",unicode_decimal:59015},{icon_id:"24881284",name:"videocam-filled",font_class:"videocam-filled",unicode:"e689",unicode_decimal:59017},{icon_id:"24881285",name:"spinner-cycle",font_class:"spinner-cycle",unicode:"e68a",unicode_decimal:59018},{icon_id:"24881286",name:"weibo",font_class:"weibo",unicode:"e68b",unicode_decimal:59019},{icon_id:"24881288",name:"videocam",font_class:"videocam",unicode:"e68c",unicode_decimal:59020},{icon_id:"24881289",name:"download",font_class:"download",unicode:"e68d",unicode_decimal:59021},{icon_id:"24879601",name:"help",font_class:"help",unicode:"e679",unicode_decimal:59001},{icon_id:"24879602",name:"navigate-filled",font_class:"navigate-filled",unicode:"e67a",unicode_decimal:59002},{icon_id:"24879603",name:"plusempty",font_class:"plusempty",unicode:"e67b",unicode_decimal:59003},{icon_id:"24879604",name:"smallcircle",font_class:"smallcircle",unicode:"e67c",unicode_decimal:59004},{icon_id:"24879605",name:"minus-filled",font_class:"minus-filled",unicode:"e67d",unicode_decimal:59005},{icon_id:"24879606",name:"micoff",font_class:"micoff",unicode:"e67e",unicode_decimal:59006},{icon_id:"24879588",name:"closeempty",font_class:"closeempty",unicode:"e66c",unicode_decimal:58988},{icon_id:"24879589",name:"clear",font_class:"clear",unicode:"e66d",unicode_decimal:58989},{icon_id:"24879590",name:"navigate",font_class:"navigate",unicode:"e66e",unicode_decimal:58990},{icon_id:"24879591",name:"minus",font_class:"minus",unicode:"e66f",unicode_decimal:58991},{icon_id:"24879592",name:"image",font_class:"image",unicode:"e670",unicode_decimal:58992},{icon_id:"24879593",name:"mic",font_class:"mic",unicode:"e671",unicode_decimal:58993},{icon_id:"24879594",name:"paperplane",font_class:"paperplane",unicode:"e672",unicode_decimal:58994},{icon_id:"24879595",name:"close",font_class:"close",unicode:"e673",unicode_decimal:58995},{icon_id:"24879596",name:"help-filled",font_class:"help-filled",unicode:"e674",unicode_decimal:58996},{icon_id:"24879597",name:"plus-filled",font_class:"paperplane-filled",unicode:"e675",unicode_decimal:58997},{icon_id:"24879598",name:"plus",font_class:"plus",unicode:"e676",unicode_decimal:58998},{icon_id:"24879599",name:"mic-filled",font_class:"mic-filled",unicode:"e677",unicode_decimal:58999},{icon_id:"24879600",name:"image-filled",font_class:"image-filled",unicode:"e678",unicode_decimal:59e3},{icon_id:"24855900",name:"locked-filled",font_class:"locked-filled",unicode:"e668",unicode_decimal:58984},{icon_id:"24855901",name:"info",font_class:"info",unicode:"e669",unicode_decimal:58985},{icon_id:"24855903",name:"locked",font_class:"locked",unicode:"e66b",unicode_decimal:58987},{icon_id:"24855884",name:"camera-filled",font_class:"camera-filled",unicode:"e658",unicode_decimal:58968},{icon_id:"24855885",name:"chat-filled",font_class:"chat-filled",unicode:"e659",unicode_decimal:58969},{icon_id:"24855886",name:"camera",font_class:"camera",unicode:"e65a",unicode_decimal:58970},{icon_id:"24855887",name:"circle",font_class:"circle",unicode:"e65b",unicode_decimal:58971},{icon_id:"24855888",name:"checkmarkempty",font_class:"checkmarkempty",unicode:"e65c",unicode_decimal:58972},{icon_id:"24855889",name:"chat",font_class:"chat",unicode:"e65d",unicode_decimal:58973},{icon_id:"24855890",name:"circle-filled",font_class:"circle-filled",unicode:"e65e",unicode_decimal:58974},{icon_id:"24855891",name:"flag",font_class:"flag",unicode:"e65f",unicode_decimal:58975},{icon_id:"24855892",name:"flag-filled",font_class:"flag-filled",unicode:"e660",unicode_decimal:58976},{icon_id:"24855893",name:"gear-filled",font_class:"gear-filled",unicode:"e661",unicode_decimal:58977},{icon_id:"24855894",name:"home",font_class:"home",unicode:"e662",unicode_decimal:58978},{icon_id:"24855895",name:"home-filled",font_class:"home-filled",unicode:"e663",unicode_decimal:58979},{icon_id:"24855896",name:"gear",font_class:"gear",unicode:"e664",unicode_decimal:58980},{icon_id:"24855897",name:"smallcircle-filled",font_class:"smallcircle-filled",unicode:"e665",unicode_decimal:58981},{icon_id:"24855898",name:"map-filled",font_class:"map-filled",unicode:"e666",unicode_decimal:58982},{icon_id:"24855899",name:"map",font_class:"map",unicode:"e667",unicode_decimal:58983},{icon_id:"24855825",name:"refresh-filled",font_class:"refresh-filled",unicode:"e656",unicode_decimal:58966},{icon_id:"24855826",name:"refresh",font_class:"refresh",unicode:"e657",unicode_decimal:58967},{icon_id:"24855808",name:"cloud-upload",font_class:"cloud-upload",unicode:"e645",unicode_decimal:58949},{icon_id:"24855809",name:"cloud-download-filled",font_class:"cloud-download-filled",unicode:"e646",unicode_decimal:58950},{icon_id:"24855810",name:"cloud-download",font_class:"cloud-download",unicode:"e647",unicode_decimal:58951},{icon_id:"24855811",name:"cloud-upload-filled",font_class:"cloud-upload-filled",unicode:"e648",unicode_decimal:58952},{icon_id:"24855813",name:"redo",font_class:"redo",unicode:"e64a",unicode_decimal:58954},{icon_id:"24855814",name:"images-filled",font_class:"images-filled",unicode:"e64b",unicode_decimal:58955},{icon_id:"24855815",name:"undo-filled",font_class:"undo-filled",unicode:"e64c",unicode_decimal:58956},{icon_id:"24855816",name:"more",font_class:"more",unicode:"e64d",unicode_decimal:58957},{icon_id:"24855817",name:"more-filled",font_class:"more-filled",unicode:"e64e",unicode_decimal:58958},{icon_id:"24855818",name:"undo",font_class:"undo",unicode:"e64f",unicode_decimal:58959},{icon_id:"24855819",name:"images",font_class:"images",unicode:"e650",unicode_decimal:58960},{icon_id:"24855821",name:"paperclip",font_class:"paperclip",unicode:"e652",unicode_decimal:58962},{icon_id:"24855822",name:"settings",font_class:"settings",unicode:"e653",unicode_decimal:58963},{icon_id:"24855823",name:"search",font_class:"search",unicode:"e654",unicode_decimal:58964},{icon_id:"24855824",name:"redo-filled",font_class:"redo-filled",unicode:"e655",unicode_decimal:58965},{icon_id:"24841702",name:"list",font_class:"list",unicode:"e644",unicode_decimal:58948},{icon_id:"24841489",name:"mail-open-filled",font_class:"mail-open-filled",unicode:"e63a",unicode_decimal:58938},{icon_id:"24841491",name:"hand-thumbsdown-filled",font_class:"hand-down-filled",unicode:"e63c",unicode_decimal:58940},{icon_id:"24841492",name:"hand-thumbsdown",font_class:"hand-down",unicode:"e63d",unicode_decimal:58941},{icon_id:"24841493",name:"hand-thumbsup-filled",font_class:"hand-up-filled",unicode:"e63e",unicode_decimal:58942},{icon_id:"24841494",name:"hand-thumbsup",font_class:"hand-up",unicode:"e63f",unicode_decimal:58943},{icon_id:"24841496",name:"heart-filled",font_class:"heart-filled",unicode:"e641",unicode_decimal:58945},{icon_id:"24841498",name:"mail-open",font_class:"mail-open",unicode:"e643",unicode_decimal:58947},{icon_id:"24841488",name:"heart",font_class:"heart",unicode:"e639",unicode_decimal:58937},{icon_id:"24839963",name:"loop",font_class:"loop",unicode:"e633",unicode_decimal:58931},{icon_id:"24839866",name:"pulldown",font_class:"pulldown",unicode:"e632",unicode_decimal:58930},{icon_id:"24813798",name:"scan",font_class:"scan",unicode:"e62a",unicode_decimal:58922},{icon_id:"24813786",name:"bars",font_class:"bars",unicode:"e627",unicode_decimal:58919},{icon_id:"24813788",name:"cart-filled",font_class:"cart-filled",unicode:"e629",unicode_decimal:58921},{icon_id:"24813790",name:"checkbox",font_class:"checkbox",unicode:"e62b",unicode_decimal:58923},{icon_id:"24813791",name:"checkbox-filled",font_class:"checkbox-filled",unicode:"e62c",unicode_decimal:58924},{icon_id:"24813794",name:"shop",font_class:"shop",unicode:"e62f",unicode_decimal:58927},{icon_id:"24813795",name:"headphones",font_class:"headphones",unicode:"e630",unicode_decimal:58928},{icon_id:"24813796",name:"cart",font_class:"cart",unicode:"e631",unicode_decimal:58929}]}},f7cd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={};t.default=r}}]);