(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],o=["lanDebug","router","worklet"],a="undefined"!==typeof globalThis?globalThis:function(){return this}(),i=["w","x"].join(""),s=a[i],u=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function c(e){return(!u||1154!==u.scene||!o.includes(e))&&(n.indexOf(e)>-1||"function"===typeof s[e])}function l(){var e={};for(var t in s)c(t)&&(e[t]=s[t]);return e}a[i]=l();var f=a[i];t.default=f},function(e,t,r){"use strict";(function(e,n){var o=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Lr,t.createComponent=Vr,t.createPage=Gr,t.createPlugin=Jr,t.createSubpackageApp=Kr,t.default=void 0;var a,i=o(r(5)),s=o(r(11)),u=o(r(15)),c=o(r(18)),l=o(r(13)),f=r(22),p=o(r(25));function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t-1},e.prototype.uniIDHasPermission=function(e){var t=m(),r=t.permission;return this.uniIDHasRole("admin")||r.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=m(),t=e.tokenExpired;return t>Date.now()}}a="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!v.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 r,n,o="",a=0;a>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var x=Object.prototype.toString,w=Object.prototype.hasOwnProperty;function A(e){return"function"===typeof e}function S(e){return"string"===typeof e}function k(e){return null!==e&&"object"===(0,l.default)(e)}function T(e){return"[object Object]"===x.call(e)}function P(e,t){return w.call(e,t)}function C(){}function O(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var E=/-(\w)/g,I=O((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))}));function _(e){var t={};return T(e)&&Object.keys(e).sort().forEach((function(r){t[r]=e[r]})),Object.keys(t)?t:e}var D=["invoke","success","fail","complete","returnValue"],j={},M={};function B(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?L(r):r}function L(e){for(var t=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(r){if(Array.isArray(e[r])){var n=t[r];t[r]=function(o){Q(e[r],o,t).then((function(e){return A(n)&&n(e)||e}))}}})),t}function Y(e,t){var r=[];Array.isArray(j.returnValue)&&r.push.apply(r,(0,c.default)(j.returnValue));var n=M[e];return n&&Array.isArray(n.returnValue)&&r.push.apply(r,(0,c.default)(n.returnValue)),r.forEach((function(e){t=e(t)||t})),t}function G(e){var t=Object.create(null);Object.keys(j).forEach((function(e){"returnValue"!==e&&(t[e]=j[e].slice())}));var r=M[e];return r&&Object.keys(r).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))})),t}function V(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),a=1;a-1?ge:e.indexOf("-hant")>-1||Pe(e,["-tw","-hk","-mo","-cht"])?ve:ge;var r=Ce(e,[ye,me,be]);return r||void 0}}function Ee(){if(A(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return Oe(e.getAppBaseInfo().language)||ye}function Ie(e){var t=!!A(getApp)&&getApp();if(!t)return!1;var r=t.$vm.$locale;return r!==e&&(t.$vm.$locale=e,_e.forEach((function(t){return t({locale:e})})),!0)}var _e=[];function De(e){-1===_e.indexOf(e)&&_e.push(e)}"undefined"!==typeof n&&(n.getLocale=Ee);var je={promiseInterceptor:K},Me=Object.freeze({__proto__:null,upx2px:de,rpx2px:de,getLocale:Ee,setLocale:Ie,onLocaleChange:De,addInterceptor:R,removeInterceptor:z,interceptors:je});function Be(e){var t=getCurrentPages(),r=t.length;while(r--){var n=t[r];if(n.$page&&n.$page.fullPath===e)return r}return-1}var Le,Fe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Be(e.url);if(-1!==t){var r=getCurrentPages().length-1-t;r>0&&(e.delta=r)}}}},Ue={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var r=e.urls;if(Array.isArray(r)){var n=r.length;if(n)return t<0?t=0:t>=n&&(t=n-1),t>0?(e.current=r[t],e.urls=r.filter((function(e,n){return!(n2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(T(t)){var a=!0===o?t:{};for(var i in A(r)&&(r=r(t,a)||{}),t)if(P(r,i)){var s=r[i];A(s)&&(s=s(t[i],t,a)),s?S(s)?a[s]=t[i]:T(s)&&(a[s.name?s.name:i]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(i,"'"))}else-1!==nt.indexOf(i)?A(t[i])&&(a[i]=ot(e,t[i],n)):o||(a[i]=t[i]);return a}return A(t)&&(t=ot(e,t,n)),t}function it(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return A(et.returnValue)&&(t=et.returnValue(e,t)),at(e,t,r,{},n)}function st(t,r){if(P(et,t)){var n=et[t];return n?function(r,o){var a=n;A(n)&&(a=n(r)),r=at(t,r,a.args,a.returnValue);var i=[r];"undefined"!==typeof o&&i.push(o),A(a.name)?t=a.name(r):S(a.name)&&(t=a.name);var s=e[t].apply(e,i);return re(t)?it(t,s,a.returnValue,te(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return r}var ut=Object.create(null),ct=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function lt(e){return function(t){var r=t.fail,n=t.complete,o={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};A(r)&&r(o),A(n)&&n(o)}}ct.forEach((function(e){ut[e]=lt(e)}));var ft={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function pt(e){var t=e.service,r=e.success,n=e.fail,o=e.complete,a=!1;ft[t]?(a={errMsg:"getProvider:ok",service:t,provider:ft[t]},A(r)&&r(a)):(a={errMsg:"getProvider:fail service not found"},A(n)&&n(a)),A(o)&&o(a)}var dt=Object.freeze({__proto__:null,getProvider:pt}),ht=function(){var e;return function(){return e||(e=new p.default),e}}();function gt(e,t,r){return e[t].apply(e,r)}function vt(){return gt(ht(),"$on",Array.prototype.slice.call(arguments))}function yt(){return gt(ht(),"$off",Array.prototype.slice.call(arguments))}function mt(){return gt(ht(),"$once",Array.prototype.slice.call(arguments))}function bt(){return gt(ht(),"$emit",Array.prototype.slice.call(arguments))}var xt,wt,At,St=Object.freeze({__proto__:null,$on:vt,$off:yt,$once:mt,$emit:bt});function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Tt(e){var t={};for(var r in e){var n=e[r];A(n)&&(t[r]=kt(n),delete e[r])}return t}function Pt(e){try{return JSON.parse(e)}catch(t){}return e}function Ct(e){if("enabled"===e.type)At=!0;else if("clientId"===e.type)xt=e.cid,wt=e.errMsg,Et(xt,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Pt(e.message)},r=0;r<_t.length;r++){var n=_t[r];if(n(t),t.stopped)break}else"click"===e.type&&_t.forEach((function(t){t({type:"click",data:Pt(e.message)})}))}var Ot=[];function Et(e,t){Ot.forEach((function(r){r(e,t)})),Ot.length=0}function It(e){T(e)||(e={});var t=Tt(e),r=t.success,n=t.fail,o=t.complete,a=A(r),i=A(n),s=A(o);Promise.resolve().then((function(){"undefined"===typeof At&&(At=!1,xt="",wt="uniPush is not enabled"),Ot.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},a&&r(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},i&&n(u)),s&&o(u)})),"undefined"!==typeof xt&&Et(xt,wt)}))}var _t=[],Dt=function(e){-1===_t.indexOf(e)&&_t.push(e)},jt=function(e){if(e){var t=_t.indexOf(e);t>-1&&_t.splice(t,1)}else _t.length=0},Mt=e.getAppBaseInfo&&e.getAppBaseInfo();Mt||(Mt=e.getSystemInfoSync());var Bt=Mt?Mt.host:null,Lt=Bt&&"SAAASDK"===Bt.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ft=Object.freeze({__proto__:null,shareVideoMessage:Lt,getPushClientId:It,onPushMessage:Dt,offPushMessage:jt,invokePushCallback:Ct}),Ut=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Nt(e,t){for(var r,n=e.$children,o=n.length-1;o>=0;o--){var a=n[o];if(a.$scope._$vueId===t)return a}for(var i=n.length-1;i>=0;i--)if(r=Nt(n[i],t),r)return r}function Rt(e){return Behavior(e)}function zt(){return!!this.route}function qt(e){this.triggerEvent("__l",e)}function Ht(e,t,r){var n=e.selectAllComponents(t)||[];n.forEach((function(e){var n=e.dataset.ref;r[n]=e.$vm||Vt(e),"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Ht(e,t,r)}))}))}function Qt(e,t){var r=(0,u.default)(Set,(0,c.default)(Object.keys(e))),n=Object.keys(t);return n.forEach((function(n){var o=e[n],a=t[n];Array.isArray(o)&&Array.isArray(a)&&o.length===a.length&&a.every((function(e){return o.includes(e)}))||(e[n]=a,r.delete(n))})),r.forEach((function(t){delete e[t]})),e}function Wt(e){var t=e.$scope,r={};Object.defineProperty(e,"$refs",{get:function(){var e={};Ht(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for")||[];return n.forEach((function(t){var r=t.dataset.ref;e[r]||(e[r]=[]),e[r].push(t.$vm||Vt(t))})),Qt(r,e)}})}function Yt(e){var t,r=e.detail||e.value,n=r.vuePid,o=r.vueOptions;n&&(t=Nt(this.$vm,n)),t||(t=this.$vm),o.parent=t}function Gt(e){var t="__v_isMPComponent";return Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:!0}),e}function Vt(e){var t="__ob__",r="__v_skip";return k(e)&&Object.isExtensible(e)&&Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:(0,s.default)({},r,!0)}),e}var Kt=/_(.*)_worklet_factory_/;function Jt(e,t){t&&Object.keys(t).forEach((function(r){var n=r.match(Kt);if(n){var o=n[1];e[r]=t[r],e[o]=t[o]}}))}var Xt=Page,$t=Component,Zt=/:/g,er=O((function(e){return I(e.replace(Zt,"-"))}));function tr(e){var t=e.triggerEvent,r=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return rr("onLoad",e),Xt(e)},Page.after=Xt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return rr("created",e),$t(e)});var nr=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function or(e,t){var r=e.$mp[e.mpType];t.forEach((function(t){P(r,t)&&(e[t]=r[t])}))}function ar(e,t){if(!t)return!0;if(p.default.options&&Array.isArray(p.default.options[e]))return!0;if(t=t.default||t,A(t))return!!A(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(A(t[e])||Array.isArray(t[e]))return!0;var r=t.mixins;return Array.isArray(r)?!!r.find((function(t){return ar(e,t)})):void 0}function ir(e,t,r){t.forEach((function(t){ar(t,r)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function sr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ur(t).forEach((function(t){return cr(e,t,r)}))}function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(r){0===r.indexOf("on")&&A(e[r])&&t.push(r)})),t}function cr(e,t,r){-1!==r.indexOf(t)||P(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function lr(e,t){var r;return t=t.default||t,r=A(t)?t:e.extend(t),t=r.options,[r,t]}function fr(e,t){if(Array.isArray(t)&&t.length){var r=Object.create(null);t.forEach((function(e){r[e]=!0})),e.$scopedSlots=e.$slots=r}}function pr(e,t){e=(e||"").split(",");var r=e.length;1===r?t._$vueId=e[0]:2===r&&(t._$vueId=e[0],t._$vuePid=e[1])}function dr(e,t){var r=e.data||{},n=e.methods||{};if("function"===typeof r)try{r=r.call(t)}catch(o){Object({NODE_ENV:"development",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"lookCourse_common_uniapp",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",r)}else try{r=JSON.parse(JSON.stringify(r))}catch(o){}return T(r)||(r={}),Object.keys(n).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||P(r,e)||(r[e]=n[e])})),r}var hr=[String,Number,Boolean,Object,Array,null];function gr(e){return function(t,r){this.$vm&&(this.$vm[e]=t)}}function vr(e,t){var r=e.behaviors,n=e.extends,o=e.mixins,a=e.props;a||(e.props=a=[]);var i=[];return Array.isArray(r)&&r.forEach((function(e){i.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:""}))})),T(n)&&n.props&&i.push(t({properties:mr(n.props,!0)})),Array.isArray(o)&&o.forEach((function(e){T(e)&&e.props&&i.push(t({properties:mr(e.props,!0)}))})),i}function yr(e,t,r,n){return Array.isArray(t)&&1===t.length?t[0]:t}function mr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>3?arguments[3]:void 0,n={};return t||(n.vueId={type:String,value:""},r.virtualHost&&(n.virtualHostStyle={type:null,value:""},n.virtualHostClass={type:null,value:""}),n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(e,t){var r=Object.create(null);e.forEach((function(e){r[e]=!0})),this.setData({$slots:r})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:gr(e)}})):T(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(T(r)){var o=r.default;A(o)&&(o=o()),r.type=yr(t,r.type),n[t]={type:-1!==hr.indexOf(r.type)?r.type:null,value:o,observer:gr(t)}}else{var a=yr(t,r);n[t]={type:-1!==hr.indexOf(a)?a:null,observer:gr(t)}}})),n}function br(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=C,e.preventDefault=C,e.target=e.target||{},P(e,"detail")||(e.detail={}),P(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),T(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function xr(e,t){var r=e;return t.forEach((function(t){var n=t[0],o=t[2];if(n||"undefined"!==typeof o){var a,i=t[1],s=t[3];Number.isInteger(n)?a=n:n?"string"===typeof n&&n&&(a=0===n.indexOf("#s#")?n.substr(3):e.__get_value(n,r)):a=r,Number.isInteger(a)?r=o:i?Array.isArray(a)?r=a.find((function(t){return e.__get_value(i,t)===o})):T(a)?r=Object.keys(a).find((function(t){return e.__get_value(i,a[t])===o})):console.error("v-for 暂不支持循环数据:",a):r=a[o],s&&(r=e.__get_value(s,r))}})),r}function wr(e,t,r,n){var o={};return Array.isArray(t)&&t.length&&t.forEach((function(t,a){"string"===typeof t?t?"$event"===t?o["$"+a]=r:"arguments"===t?o["$"+a]=r.detail&&r.detail.__args__||n:0===t.indexOf("$event.")?o["$"+a]=e.__get_value(t.replace("$event.",""),r):o["$"+a]=e.__get_value(t):o["$"+a]=e:o["$"+a]=xr(e,t)})),o}function Ar(e){for(var t={},r=1;r2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,i=!1,s=T(t.detail)&&t.detail.__args__||[t.detail];if(o&&(i=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!r.length))return i?[t]:s;var u=wr(e,n,t,s),c=[];return r.forEach((function(e){"$event"===e?"__set_model"!==a||o?o&&!i?c.push(s[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(Ar(e)):"string"===typeof e&&P(u,e)?c.push(u[e]):c.push(e)})),c}var kr="~",Tr="^";function Pr(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function Cr(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}function Or(e){var t=this;e=br(e);var r=(e.currentTarget||e.target).dataset;if(!r)return console.warn("事件信息不存在");var n=r.eventOpts||r["event-opts"];if(!n)return console.warn("事件信息不存在");var o=e.type,a=[];return n.forEach((function(r){var n=r[0],i=r[1],s=n.charAt(0)===Tr;n=s?n.slice(1):n;var u=n.charAt(0)===kr;n=u?n.slice(1):n,i&&Pr(o,n)&&i.forEach((function(r){var n=r[0];if(n){var o=t.$vm;if(o.$options.generic&&(o=Cr(o)||o),"$emit"===n)return void o.$emit.apply(o,Sr(t.$vm,e,r[1],r[2],s,n));var i=o[n];if(!A(i)){var c="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(c,' "').concat(l,'" does not have a method "').concat(n,'"'))}if(u){if(i.once)return;i.once=!0}var f=Sr(t.$vm,e,r[1],r[2],s,n);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(i.toString())&&(f=f.concat([,,,,,,,,,,e])),a.push(i.apply(o,f))}}))})),"input"===o&&1===a.length&&"undefined"!==typeof a[0]?a[0]:void 0}var Er={};function Ir(e){var t=Er[e];return delete Er[e],t}var _r=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Dr(){p.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=p.default.prototype.__call_hook;p.default.prototype.__call_hook=function(t,r){return"onLoad"===t&&r&&r.__id__&&(this.__eventChannel__=Ir(r.__id__),delete r.__id__),e.call(this,t,r)}}function jr(){var e={},t={};function r(e){var t=this.$options.propsData.vueId;if(t){var r=t.split(",")[0];e(r)}}p.default.prototype.$hasSSP=function(r){var n=e[r];return n||(t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))),n},p.default.prototype.$getSSP=function(t,r,n){var o=e[t];if(o){var a=o[r]||[];return n?a:a[0]}},p.default.prototype.$setSSP=function(t,n){var o=0;return r.call(this,(function(r){var a=e[r],i=a[t]=a[t]||[];i.push(n),o=i.length-1})),o},p.default.prototype.$initSSP=function(){r.call(this,(function(t){e[t]={}}))},p.default.prototype.$callSSP=function(){r.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},p.default.mixin({destroyed:function(){var r=this.$options.propsData,n=r&&r.vueId;n&&(delete e[n],delete t[n])}})}function Mr(t,r){var n=r.mocks,o=r.initRefs;Dr(),jr(),t.$options.store&&(p.default.prototype.$store=t.$options.store),b(p.default),p.default.prototype.mpHost="mp-weixin",p.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&&(o(this),or(this,n))}}});var a={onLaunch:function(r){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",r),this.$vm.__call_hook("onLaunch",r))}};a.globalData=t.$options.globalData||{};var i=t.$options.methods;return i&&Object.keys(i).forEach((function(e){a[e]=i[e]})),ke(p.default,t,Oe(e.getAppBaseInfo().language)||ye),ir(a,_r),sr(a,t.$options),a}function Br(e){return Mr(e,{mocks:Ut,initRefs:Wt})}function Lr(e){return App(Br(e)),e}var Fr=/[!'()*]/g,Ur=function(e){return"%"+e.charCodeAt(0).toString(16)},Nr=/%2C/g,Rr=function(e){return encodeURIComponent(e).replace(Fr,Ur).replace(Nr,",")};function zr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr,r=e?Object.keys(e).map((function(r){var n=e[r];if(void 0===n)return"";if(null===n)return t(r);if(Array.isArray(n)){var o=[];return n.forEach((function(e){void 0!==e&&(null===e?o.push(t(r)):o.push(t(r)+"="+t(e)))})),o.join("&")}return t(r)+"="+t(n)})).filter((function(e){return e.length>0})).join("&"):null;return r?"?".concat(r):""}function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPage,n=t.initRelation,o=arguments.length>2?arguments[2]:void 0,a=lr(p.default,e),s=(0,i.default)(a,2),u=s[0],c=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},c.options||{});c["mp-weixin"]&&c["mp-weixin"].options&&Object.assign(l,c["mp-weixin"].options);var f={options:l,data:dr(c,p.default.prototype),behaviors:vr(c,Rt),properties:mr(c.props,!1,c.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:r.call(this)?"page":"component",mpInstance:this,propsData:e};pr(e.vueId,this),n.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),fr(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:Yt,__e:Or}};return c.externalClasses&&(f.externalClasses=c.externalClasses),Array.isArray(c.wxsCallMethods)&&c.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),o?[f,c,u]:r?f:[f,u]}function Hr(e,t){return qr(e,{isPage:zt,initRelation:qt},t)}var Qr=["onShow","onHide","onUnload"];function Wr(e){var t=Hr(e,!0),r=(0,i.default)(t,2),n=r[0],o=r[1];return ir(n.methods,Qr,o),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+zr(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},sr(n.methods,e,["onReady"]),Jt(n.methods,o.methods),n}function Yr(e){return Wr(e)}function Gr(e){return Component(Yr(e))}function Vr(e){return Component(Hr(e))}function Kr(t){var r=Br(t),n=getApp({allowDefault:!0});t.$scope=n;var o=n.globalData;if(o&&Object.keys(r.globalData).forEach((function(e){P(o,e)||(o[e]=r.globalData[e])})),Object.keys(r).forEach((function(e){P(n,e)||(n[e]=r[e])})),A(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var n=this._caches[e];return n||(n=h(e,r),this._caches[e]=n),g(n,t)}}]),e}();t.Formatter=f;var p=/^(?:\d)+/,d=/^(?:\w)+/;function h(e,t){var r=(0,a.default)(t,2),n=r[0],o=r[1],i=[],s=0,u="";while(s-1?v:e.indexOf("-hant")>-1||k(e,["-tw","-hk","-mo","-cht"])?y:v;var r=[m,b,x];t&&Object.keys(t).length>0&&(r=Object.keys(t));var n=T(e,r);return n||void 0}}var C=function(){function e(t){var r=t.locale,n=t.fallbackLocale,o=t.messages,a=t.watcher,s=t.formater;(0,i.default)(this,e),this.locale=m,this.fallbackLocale=m,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=s||S,this.messages=o||{},this.setLocale(r||m),a&&this.watchLocale(a)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,r=this.locale;this.locale=P(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach((function(e){e(t.locale,r)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,r=this.watchers.push(e)-1;return function(){t.watchers.splice(r,1)}}},{key:"add",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[e];n?r?Object.assign(n,t):Object.keys(t).forEach((function(e){A(n,e)||(n[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,r){return this.formater.interpolate(e,t,r).join("")}},{key:"t",value:function(e,t,r){var n=this.message;return"string"===typeof t?(t=P(t,this.messages),t&&(n=this.messages[t])):r=t,A(n,e)?this.formater.interpolate(n[e],r).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function O(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function E(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():m}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var o=[t,e];e=o[0],t=o[1]}"string"!==typeof e&&(e=E()),"string"!==typeof r&&(r="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||m);var a=new C({locale:e,fallbackLocale:r,messages:t,watcher:n}),i=function(e,t){if("function"!==typeof getApp)i=function(e,t){return a.t(e,t)};else{var r=!1;i=function(e,t){var n=getApp().$vm;return n&&(n.$locale,r||(r=!0,O(n,a))),a.t(e,t)}}return i(e,t)};return{i18n:a,f:function(e,t,r){return a.f(e,t,r)},t:function(e,t){return i(e,t)},add:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,r)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}}t.I18n=C;var _,D=function(e){return"string"===typeof e};function j(e,t){return _||(_=new f),R(e,(function(e,r){var n=e[r];return D(n)?!!L(n,t)||void 0:j(n,t)}))}function M(e,t,r){return _||(_=new f),R(e,(function(e,n){var o=e[n];D(o)?L(o,r)&&(e[n]=F(o,t,r)):M(o,t,r)})),e}function B(e,t){var r=t.locale,n=t.locales,o=t.delimiters;if(!L(e,o))return e;_||(_=new f);var a=[];Object.keys(n).forEach((function(e){e!==r&&a.push({locale:e,values:n[e]})})),a.unshift({locale:r,values:n[r]});try{return JSON.stringify(N(JSON.parse(e),a,o),null,2)}catch(i){}return e}function L(e,t){return e.indexOf(t[0])>-1}function F(e,t,r){return _.interpolate(e,t,r).join("")}function U(e,t,r,n){var o=e[t];if(D(o)){if(L(o,n)&&(e[t]=F(o,r[0].values,n),r.length>1)){var a=e[t+"Locales"]={};r.forEach((function(e){a[e.locale]=F(o,e.values,n)}))}}else N(o,r,n)}function N(e,t,r){return R(e,(function(e,n){U(e,n,t,r)})),e}function R(e,t){if(Array.isArray(e)){for(var r=0;r-1}))):t}}function q(e){var t=[],r=e.split("-");while(r.length)t.push(r.join("-")),r.pop();return t}t.isString=D}).call(this,r(2)["default"],r(3))},function(e,t){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(12);function o(e,t){for(var r=0;r=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return o(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function g(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var r=Object.create(null),n=e.split(","),o=0;o-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function A(e,t){return w.call(e,t)}function S(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var k=/-(\w)/g,T=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),P=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,O=S((function(e){return e.replace(C,"-$1").toLowerCase()}));function E(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r}function I(e,t){return e.bind(t)}var _=Function.prototype.bind?I:E;function D(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function j(e,t){for(var r in t)e[r]=t[r];return e}function M(e){for(var t={},r=0;r0),ne=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Z),oe=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(X)try{var ae={};Object.defineProperty(ae,"passive",{get:function(){}}),window.addEventListener("test-passive",null,ae)}catch(Ro){}var ie=function(){return void 0===K&&(K=!X&&!$&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},se=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var ce,le="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);ce="undefined"!==typeof Set&&ue(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 fe=B,pe=B,de=B,he=B,ge="undefined"!==typeof console,ve=/(?:^|[-_])(\w)/g,ye=function(e){return e.replace(ve,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};fe=function(e,t){var r=t?de(t):"";H.warnHandler?H.warnHandler.call(null,e,t,r):ge&&!H.silent&&console.error("[Vue warn]: "+e+r)},pe=function(e,t){ge&&!H.silent&&console.warn("[Vue tip]: "+e+(t?de(t):""))},he=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"";var r="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,n=r.name||r._componentTag,o=r.__file;if(!n&&o){var a=o.match(/([^/\\]+)\.vue$/);n=a&&a[1]}return(n?"<"+ye(n)+">":"")+(o&&!1!==t?" at "+o:"")};var me=function(e,t){var r="";while(t)t%2===1&&(r+=e),t>1&&(e+=e),t>>=1;return r};de=function(e){if(e._isVue&&e.$parent){var t=[],r=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var n=t[t.length-1];if(n.constructor===e.constructor){r++,e=e.$parent;continue}r>0&&(t[t.length-1]=[n,r],r=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":me(" ",5+2*t))+(Array.isArray(e)?he(e[0])+"... ("+e[1]+" recursive calls)":he(e))})).join("\n")}return"\n\n(found in "+he(e)+")"};var be=0,xe=function(){this.id=be++,this.subs=[]};function we(e){xe.SharedObject.targetStack.push(e),xe.SharedObject.target=e,xe.target=e}function Ae(){xe.SharedObject.targetStack.pop(),xe.SharedObject.target=xe.SharedObject.targetStack[xe.SharedObject.targetStack.length-1],xe.target=xe.SharedObject.target}xe.prototype.addSub=function(e){this.subs.push(e)},xe.prototype.removeSub=function(e){x(this.subs,e)},xe.prototype.depend=function(){xe.SharedObject.target&&xe.SharedObject.target.addDep(this)},xe.prototype.notify=function(){var e=this.subs.slice();H.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,r=e.length;t-1)if(a&&!A(o,"default"))i=!1;else if(""===i||i===O(e)){var u=lt(String,o.type);(u<0||s0&&(i=Xt(i,(t||"")+"_"+r),Jt(i[0])&&Jt(c)&&(l[u]=Pe(c.text+i[0].text),i.shift()),l.push.apply(l,i)):s(i)?Jt(c)?l[u]=Pe(c.text+i):""!==i&&l.push(Pe(i)):Jt(i)&&Jt(c)?l[u]=Pe(c.text+i.text):(a(e._isVList)&&o(i.tag)&&n(i.key)&&o(t)&&(i.key="__vlist"+t+"_"+r+"__"),l.push(i)));return l}function $t(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Zt(e){var t=er(e.$options.inject,e);t&&(je(!1),Object.keys(t).forEach((function(r){Ue(e,r,t[r],(function(){fe('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+r+'"',e)}))})),je(!0))}function er(e,t){if(e){for(var r=Object.create(null),n=le?Reflect.ownKeys(e):Object.keys(e),o=0;o0,i=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var u in o={},e)e[u]&&"$"!==u[0]&&(o[u]=or(t,u,e[u]))}else o={};for(var c in t)c in o||(o[c]=ar(t,c));return e&&Object.isExtensible(e)&&(e._normalized=o),Y(o,"$stable",i),Y(o,"$key",s),Y(o,"$hasNormal",a),o}function or(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Kt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function ar(e,t){return function(){return e[t]}}function ir(e,t){var r,n,a,i,s;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,a=e.length;n.",e),i=new Se(H.parsePlatformTagName(t),r,n,void 0,void 0,e)):i=r&&r.pre||!o(c=rt(e.$options,"components",t))?new Se(t,r,n,void 0,void 0,e):Cr(c,r,e,n,t)):i=Cr(t,r,e,n);return Array.isArray(i)?i:o(i)?(o(u)&&Lr(i,u),o(r)&&Fr(r),i):Te()}function Lr(e,t,r){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,r=!0),o(e.children))for(var i=0,s=e.children.length;i1?D(n):n;for(var o=D(arguments,1),a='event handler for "'+e+'"',i=0,s=n.length;idocument.createEvent("Event").timeStamp&&(bn=function(){return xn.now()})}function wn(){var e,t;for(bn(),vn=!0,fn.sort((function(e,t){return e.id-t.id})),yn=0;ynln)){fe("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var r=pn.slice(),n=fn.slice();mn(),kn(r),An(n),se&&H.devtools&&se.emit("flush")}function An(e){var t=e.length;while(t--){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&cn(n,"updated")}}function Sn(e){e._inactive=!1,pn.push(e)}function kn(e){for(var t=0;tyn&&fn[r].id>e.id)r--;fn.splice(r+1,0,e)}else fn.push(e);if(!gn){if(gn=!0,!H.async)return void wn();Ot(wn)}}}var Pn=0,Cn=function(e,t,r,n,o){this.vm=e,o&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++Pn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=V(t),this.getter||(this.getter=B,fe('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Cn.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ro){if(!this.user)throw Ro;gt(Ro,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Nt(e),Ae(),this.cleanupDeps()}return e},Cn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Cn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Cn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Tn(this)},Cn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Ro){gt(Ro,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Cn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Cn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Cn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||x(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var On={enumerable:!0,configurable:!0,get:B,set:B};function En(e,t,r){On.get=function(){return this[t][r]},On.set=function(e){this[t][r]=e},Object.defineProperty(e,r,On)}function In(e){e._watchers=[];var t=e.$options;t.props&&_n(e,t.props),t.methods&&Nn(e,t.methods),t.data?Dn(e):Fe(e._data={},!0),t.computed&&Bn(e,t.computed),t.watch&&t.watch!==oe&&Rn(e,t.watch)}function _n(e,t){var r=e.$options.propsData||{},n=e._props={},o=e.$options._propKeys=[],a=!e.$parent;a||je(!1);var i=function(i){o.push(i);var s=nt(i,t,r,e),u=O(i);(b(u)||H.isReservedAttr(u))&&fe('"'+u+'" is a reserved attribute and cannot be used as component prop.',e),Ue(n,i,s,(function(){if(!a&&!en){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===i&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}fe("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+i+'"',e)}})),i in e||En(e,"_props",i)};for(var s in t)i(s);je(!0)}function Dn(e){var t=e.$options.data;t=e._data="function"===typeof t?jn(t,e):t||{},f(t)||(t={},fe("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var r=Object.keys(t),n=e.$options.props,o=e.$options.methods,a=r.length;while(a--){var i=r[a];o&&A(o,i)&&fe('Method "'+i+'" has already been defined as a data property.',e),n&&A(n,i)?fe('The data property "'+i+'" is already declared as a prop. Use prop default value instead.',e):W(i)||En(e,"_data",i)}Fe(t,!0)}function jn(e,t){we();try{return e.call(t,t)}catch(Ro){return gt(Ro,t,"data()"),{}}finally{Ae()}}var Mn={lazy:!0};function Bn(e,t){var r=e._computedWatchers=Object.create(null),n=ie();for(var o in t){var a=t[o],i="function"===typeof a?a:a.get;null==i&&fe('Getter is missing for computed property "'+o+'".',e),n||(r[o]=new Cn(e,i||B,B,Mn)),o in e?o in e.$data?fe('The computed property "'+o+'" is already defined in data.',e):e.$options.props&&o in e.$options.props&&fe('The computed property "'+o+'" is already defined as a prop.',e):Ln(e,o,a)}}function Ln(e,t,r){var n=!ie();"function"===typeof r?(On.get=n?Fn(t):Un(r),On.set=B):(On.get=r.get?n&&!1!==r.cache?Fn(t):Un(r.get):B,On.set=r.set||B),On.set===B&&(On.set=function(){fe('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,On)}function Fn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),xe.SharedObject.target&&t.depend(),t.value}}function Un(e){return function(){return e.call(this,this)}}function Nn(e,t){var r=e.$options.props;for(var n in t)"function"!==typeof t[n]&&fe('Method "'+n+'" has type "'+typeof t[n]+'" in the component definition. Did you reference the function correctly?',e),r&&A(r,n)&&fe('Method "'+n+'" has already been defined as a prop.',e),n in e&&W(n)&&fe('Method "'+n+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[n]="function"!==typeof t[n]?B:_(t[n],e)}function Rn(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var o=0;o-1)return this;var r=D(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}function Jn(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Xn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,o=e._Ctor||(e._Ctor={});if(o[n])return o[n];var a=e.name||r.options.name;a&&Je(a);var i=function(e){this._init(e)};return i.prototype=Object.create(r.prototype),i.prototype.constructor=i,i.cid=t++,i.options=tt(r.options,e),i["super"]=r,i.options.props&&$n(i),i.options.computed&&Zn(i),i.extend=r.extend,i.mixin=r.mixin,i.use=r.use,z.forEach((function(e){i[e]=r[e]})),a&&(i.options.components[a]=i),i.superOptions=r.options,i.extendOptions=e,i.sealedOptions=j({},i.options),o[n]=i,i}}function $n(e){var t=e.options.props;for(var r in t)En(e.prototype,"_props",r)}function Zn(e){var t=e.options.computed;for(var r in t)Ln(e.prototype,r,t[r])}function eo(e){z.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&Je(e),"component"===t&&f(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}function to(e){return e&&(e.Ctor.options.name||e.tag)}function ro(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function no(e,t){var r=e.cache,n=e.keys,o=e._vnode;for(var a in r){var i=r[a];if(i){var s=to(i.componentOptions);s&&!t(s)&&oo(r,a,n,o)}}}function oo(e,t,r,n){var o=e[t];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),e[t]=null,x(r,t)}Qn(Vn),qn(Vn),$r(Vn),nn(Vn),zr(Vn);var ao=[String,RegExp,Array],io={name:"keep-alive",abstract:!0,props:{include:ao,exclude:ao,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)oo(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){no(e,(function(e){return ro(t,e)}))})),this.$watch("exclude",(function(t){no(e,(function(e){return!ro(t,e)}))}))},render:function(){var e=this.$slots.default,t=Yr(e),r=t&&t.componentOptions;if(r){var n=to(r),o=this,a=o.include,i=o.exclude;if(a&&(!n||!ro(a,n))||i&&n&&ro(i,n))return t;var s=this,u=s.cache,c=s.keys,l=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;u[l]?(t.componentInstance=u[l].componentInstance,x(c,l),c.push(l)):(u[l]=t,c.push(l),this.max&&c.length>parseInt(this.max)&&oo(u,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},so={KeepAlive:io};function uo(e){var t={get:function(){return H},set:function(){fe("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:j,mergeOptions:tt,defineReactive:Ue},e.set=Ne,e.delete=Re,e.nextTick=Ot,e.observable=function(e){return Fe(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,j(e.options.components,so),Kn(e),Jn(e),Xn(e),eo(e)}uo(Vn),Object.defineProperty(Vn.prototype,"$isServer",{get:ie}),Object.defineProperty(Vn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vn,"FunctionalRenderContext",{value:wr}),Vn.version="2.6.11";var co="[object Array]",lo="[object Object]",fo="[object Null]",po="[object Undefined]";function ho(e,t){var r={};return go(e,t),yo(e,t,"",r),r}function go(e,t){if(e!==t){var r=bo(e),n=bo(t);if(r==lo&&n==lo){if(Object.keys(e).length>=Object.keys(t).length)for(var o in t){var a=e[o];void 0===a?e[o]=null:go(a,t[o])}}else r==co&&n==co&&e.length>=t.length&&t.forEach((function(t,r){go(e[r],t)}))}}function vo(e,t){return e!==fo&&e!==po||t!==fo&&t!==po}function yo(e,t,r,n){if(e!==t){var o=bo(e),a=bo(t);if(o==lo)if(a!=lo||Object.keys(e).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Mo(e){return Array.isArray(e)?M(e):"string"===typeof e?jo(e):e}var Bo=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Lo(e,t){var r=t.split("."),n=r[0];return 0===n.indexOf("__$n")&&(n=parseInt(n.replace("__$n",""))),1===r.length?e[n]:Lo(e[n],r.slice(1).join("."))}function Fo(e){e.config.errorHandler=function(t,r,n){e.util.warn("Error in "+n+': "'+t.toString()+'"',r),console.error(t);var o="function"===typeof getApp&&getApp();o&&o.onError&&o.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var r=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(r)try{r.call(this.$scope,e,{__args__:D(arguments,1)})}catch(n){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Ao(this,e)},Bo.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=$t,e.prototype.__init_injections=Zt,e.prototype.__call_hook=function(e,t){var r=this;we();var n,o=r.$options[e],a=e+" hook";if(o)for(var i=0,s=o.length;i0&&void 0!==arguments[0]?arguments[0]:"url",r=this[e];r&&t[this.linkType]({url:r})},$uGetRect:function(e,r){var n=this;return new Promise((function(o){t.createSelectorQuery().in(n)[r?"selectAll":"select"](e).boundingClientRect((function(e){r&&Array.isArray(e)&&e.length&&o(e),!r&&e&&o(e)})).exec()}))},getParentData:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=t.$u.$parent.call(this,r),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation()},noop:function(e){this.preventEvent(e)}},onReachBottom:function(){t.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&t.$u.test.array(this.parent.children)){var r=this.parent.children;r.map((function(t,n){t===e&&r.splice(n,1)}))}}}}).call(this,r(2)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={options:{virtualHost:!0}};t.default=n},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(39)),a=o.default;t.default=a},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(11)),a=n(r(23)),i=n(r(24)),s=n(r(40)),u=n(r(48)),c=n(r(49)),l=n(r(50)),f=r(43),p=n(r(51));function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(this,e),(0,f.isPlainObject)(t)||(t={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,p.default)(h(h({},l.default),t)),this.interceptors={request:new u.default,response:new u.default}}return(0,i.default)(e,[{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"middleware",value:function(e){e=(0,c.default)(this.config,e);var t=[s.default,void 0],r=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)r=r.then(t.shift(),t.shift());return r}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(h({url:e,method:"GET"},t))}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"POST"},r))}},{key:"put",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"PUT"},r))}},{key:"delete",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"DELETE"},r))}},{key:"connect",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"CONNECT"},r))}},{key:"head",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"HEAD"},r))}},{key:"options",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"OPTIONS"},r))}},{key:"trace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"TRACE"},r))}},{key:"upload",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="UPLOAD",this.middleware(t)}},{key:"download",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="DOWNLOAD",this.middleware(t)}}]),e}();t.default=g},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(41)),a=function(e){return(0,o.default)(e)};t.default=a},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(11)),a=n(r(42)),i=n(r(44)),s=n(r(47)),u=r(43);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.method||e.method||"GET",n={baseURL:e.baseURL||"",method:r,url:t.url||"",params:t.params||{},custom:s(s({},e.custom||{}),t.custom||{}),header:(0,a.deepMerge)(e.header||{},t.header||{})},o=["getTask","validateStatus"];if(n=s(s({},n),u(o,e,t)),"DOWNLOAD"===r);else if("UPLOAD"===r){delete n.header["content-type"],delete n.header["Content-Type"];var i=["filePath","name","formData"];i.forEach((function(e){(0,a.isUndefined)(t[e])||(n[e]=t[e])}))}else{var c=["data","timeout","dataType","responseType"];n=s(s({},n),u(c,e,t))}return n};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};t.default=n},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(13)),a=function(){function t(e,t){return null!=t&&e instanceof t}var r,n,a;try{r=Map}catch(p){r=function(){}}try{n=Set}catch(p){n=function(){}}try{a=Promise}catch(p){a=function(){}}function i(s,u,c,l,p){"object"===(0,o.default)(u)&&(c=u.depth,l=u.prototype,p=u.includeNonEnumerable,u=u.circular);var d=[],h=[],g="undefined"!=typeof e;function v(s,c){if(null===s)return null;if(0===c)return s;var y,m;if("object"!=(0,o.default)(s))return s;if(t(s,r))y=new r;else if(t(s,n))y=new n;else if(t(s,a))y=new a((function(e,t){s.then((function(t){e(v(t,c-1))}),(function(e){t(v(e,c-1))}))}));else if(i.__isArray(s))y=[];else if(i.__isRegExp(s))y=new RegExp(s.source,f(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(i.__isDate(s))y=new Date(s.getTime());else{if(g&&e.isBuffer(s))return e.from?y=e.from(s):(y=new e(s.length),s.copy(y)),y;t(s,Error)?y=Object.create(s):"undefined"==typeof l?(m=Object.getPrototypeOf(s),y=Object.create(m)):(y=Object.create(l),m=l)}if(u){var b=d.indexOf(s);if(-1!=b)return h[b];d.push(s),h.push(y)}for(var x in t(s,r)&&s.forEach((function(e,t){var r=v(t,c-1),n=v(e,c-1);y.set(r,n)})),t(s,n)&&s.forEach((function(e){var t=v(e,c-1);y.add(t)})),s){var w=Object.getOwnPropertyDescriptor(s,x);w&&(y[x]=v(s[x],c-1));try{var A=Object.getOwnPropertyDescriptor(s,x);if("undefined"===A.set)continue;y[x]=v(s[x],c-1)}catch(O){if(O instanceof TypeError)continue;if(O instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(s);for(x=0;x * @license MIT */ var n=r(53),o=r(54),a=r(55);function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return J(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return B(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,o){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,o);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,o){var a,i=1,s=e.length,u=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;i=2,s/=2,u/=2,r/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var l=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var f=!0,p=0;po&&(n=o)):n=o;var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var i=0;i239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:a=e[o+1],128===(192&a)&&(u=(31&c)<<6|63&a,u>127&&(l=u));break;case 3:a=e[o+1],i=e[o+2],128===(192&a)&&128===(192&i)&&(u=(15&c)<<12|(63&a)<<6|63&i,u>2047&&(u<55296||u>57343)&&(l=u));break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128===(192&a)&&128===(192&i)&&128===(192&s)&&(u=(15&c)<<18|(63&a)<<12|(63&i)<<6|63&s,u>65535&&u<1114112&&(l=u))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return M(n)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:i(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return l(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return p(null,e,t,r)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,a=Math.min(r,n);o0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},c.prototype.compare=function(e,t,r,n,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var a=o-n,i=r-t,s=Math.min(a,i),u=this.slice(n,o),l=e.slice(t,r),f=0;fo)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return T(this,e,t,r);case"utf8":case"utf-8":return P(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var o="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,r,n,o,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function z(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-r,2);o>>8*(n?o:1-o)}function q(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-r,4);o>>8*(n?o:3-o)&255}function H(e,t,r,n,o,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Q(e,t,r,n,a){return a||H(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,a){return a||H(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(o*=256))n+=this[e+--t]*o;return n},c.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=this[e],o=1,a=0;while(++a=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=t,o=1,a=this[e+--n];while(n>0&&(o*=256))a+=this[e+--n]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var o=Math.pow(2,8*r)-1;R(this,e,t,r,o,0)}var a=1,i=0;this[t]=255&e;while(++i=0&&(i*=256))this[t+a]=e/i&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);R(this,e,t,r,o-1,-o)}var a=0,i=1,s=0;this[t]=255&e;while(++a>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);R(this,e,t,r,o-1,-o)}var a=r-1,i=1,s=0;this[t+a]=255&e;while(--a>=0&&(i*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return Q(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return Q(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(a=t;a55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function X(e){for(var t=[],r=0;r>8,o=r%256,a.push(o),a.push(n)}return a}function Z(e){return n.toByteArray(G(e))}function ee(e,t,r,n){for(var o=0;o=t.length||o>=e.length)break;t[o+r]=e[o]}return o}function te(e){return e!==e}}).call(this,r(3))},function(e,t,r){"use strict";t.byteLength=l,t.toByteArray=p,t.fromByteArray=g;for(var n=[],o=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=i.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function l(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function f(e,t,r){return 3*(t+r)/4-r}function p(e){var t,r,n=c(e),i=n[0],s=n[1],u=new a(f(e,i,s)),l=0,p=s>0?i-4:i;for(r=0;r>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,u[l++]=255&t),1===s&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function h(e,t,r){for(var n,o=[],a=t;au?u:s+i));return 1===o?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,r,n,o){var a,i,s=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,a=d&(1<<-l)-1,d>>=-l,l+=s;l>0;a=256*a+e[t+f],f+=p,l-=8);for(i=a&(1<<-l)-1,a>>=-l,l+=n;l>0;i=256*i+e[t+f],f+=p,l-=8);if(0===a)a=1-c;else{if(a===u)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,n),a-=c}return(d?-1:1)*i*Math.pow(2,a-n)},t.write=function(e,t,r,n,o,a){var i,s,u,c=8*a-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),t+=i+f>=1?p/u:p*Math.pow(2,1-f),t*u>=2&&(i++,u/=2),i+f>=l?(s=0,i=l):i+f>=1?(s=(t*u-1)*Math.pow(2,o),i+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+d]=255&s,d+=h,s/=256,o-=8);for(i=i<0;e[r+d]=255&i,d+=h,i/=256,c-=8);e[r+d-h]|=128*g}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(57)),a=n(r(59)),i=n(r(23)),s=n(r(24)),u=function(){function t(){(0,i.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,s.default)(t,[{key:"addRootPath",value:function(e){return"/"===e[0]?e:"/".concat(e)}},{key:"mixinParam",value:function(t,r){t=t&&this.addRootPath(t);var n="";return/.*\/.*\?.*=.*/.test(t)?(n=e.$u.queryParams(r,!1),t+"&".concat(n)):(n=e.$u.queryParams(r),t+n)}},{key:"route",value:function(){var t=(0,a.default)(o.default.mark((function t(){var r,n,a,i,s=arguments;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=s.length>0&&void 0!==s[0]?s[0]:{},n=s.length>1&&void 0!==s[1]?s[1]:{},a={},"string"===typeof r?(a.url=this.mixinParam(r,n),a.type="navigateTo"):(a=e.$u.deepMerge(this.config,r),a.url=this.mixinParam(r.url,r.params)),a.url!==e.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(n.intercept&&(this.config.intercept=n.intercept),a.params=n,a=e.$u.deepMerge(this.config,a),"function"!==typeof e.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,r){e.$u.routeIntercept(a,t)}));case 12:i=t.sent,i&&this.openPage(a),t.next=17;break;case 16:this.openPage(a);case 17:case"end":return t.stop()}}),t,this)})));function r(){return t.apply(this,arguments)}return r}()},{key:"openPage",value:function(t){var r=t.url,n=(t.type,t.delta),o=t.animationType,a=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:r,animationType:o,animationDuration:a}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:r}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:r}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:r}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:n})}}]),t}(),c=(new u).route;t.default=c}).call(this,r(2)["default"])},function(e,t,r){var n=r(58)();e.exports=n},function(e,t,r){var n=r(13)["default"];function o(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof x?t:x,a=Object.create(o.prototype),i=new j(n||[]);return s(a,"_invoke",{value:E(e,r,i)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var g="suspendedStart",v="suspendedYield",y="executing",m="completed",b={};function x(){}function w(){}function A(){}var S={};p(S,c,(function(){return this}));var k=Object.getPrototypeOf,T=k&&k(k(M([])));T&&T!==a&&i.call(T,c)&&(S=T);var P=A.prototype=x.prototype=Object.create(S);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,a,s,u){var c=h(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function E(e,r,n){var o=g;return function(a,i){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var u=I(s,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?m:v,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function I(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,b;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function _(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(e,t,r,n,o,a,i){try{var s=e[a](i),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,u,"next",e)}function u(e){r(i,o,a,s,u,"throw",e)}s(void 0)}))}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";function n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=o(e,!1),i=n[0],s=n[1],u=n[2],c=o(t,!1),l=c[0],f=c[1],p=c[2],d=(l-i)/r,h=(f-s)/r,g=(p-u)/r,v=[],y=0;y1&&void 0!==arguments[1])||arguments[1],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=String(e).toLowerCase(),e&&r.test(e)){if(4===e.length){for(var n="#",o=1;o<4;o+=1)n+=e.slice(o,o+1).concat(e.slice(o,o+1));e=n}for(var a=[],i=1;i<7;i+=2)a.push(parseInt("0x".concat(e.slice(i,i+2))));return t?"rgb(".concat(a[0],",").concat(a[1],",").concat(a[2],")"):a}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function a(e){var t=e,r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var n=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),o="#",a=0;a=0}function x(e,t){return e>=t[0]&&e<=t[1]}function w(e,t){return e.length>=t[0]&&e.length<=t[1]}function A(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function S(e){switch((0,o.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function k(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==(0,o.default)(t)||!t)}catch(r){return!1}return!1}function T(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function P(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}function O(e){return"function"===typeof e}function E(e){return P(e)&&O(e.then)&&O(e.catch)}function I(e){var t=e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return r.test(t)}function _(e){var t=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return t.test(e)}function D(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)}var j={email:a,mobile:i,url:s,date:u,dateISO:c,number:l,digits:p,idCard:d,carNo:h,amount:g,chinese:v,letter:y,enOrNum:m,contains:b,range:x,rangeLength:w,empty:S,isEmpty:S,jsonString:k,landline:A,object:P,array:T,code:C,func:O,promise:E,video:_,image:I,regExp:D,string:f};t.default=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=null;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==n&&clearTimeout(n),r){var o=!n;n=setTimeout((function(){n=null}),t),o&&"function"===typeof e&&e()}else n=setTimeout((function(){"function"===typeof e&&e()}),t)}var a=o;t.default=a},function(e,t,r){"use strict";var n;function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r?n||(n=!0,"function"===typeof e&&e(),setTimeout((function(){n=!1}),t)):n||(n=!0,setTimeout((function(){n=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o;t.default=a},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5)),a=n(r(13)),i=n(r(61)),s=r(65);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(r)))}function c(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return i.default.number(t)?r?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?r?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):r?"".concat(parseInt(t),"px"):parseInt(t)}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))}function f(){return e.getSystemInfoSync().platform.toLowerCase()}function p(){return e.getSystemInfoSync()}function d(e,t){if(e>=0&&t>0&&t>=e){var r=t-e+1;return Math.floor(Math.random()*r+e)}return 0}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(r=r||n.length,e)for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(i.default.empty(e)||"object"===(0,a.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=k(e);for(var r=e.split(";"),n={},o=0;o0&&void 0!==arguments[0]?arguments[0]:"auto",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(r=e)||void 0===r||null===(n=r.$u)||void 0===n||null===(o=n.config)||void 0===o?void 0:o.unit)&&void 0!==t?t:"px";return a=String(a),i.default.number(a)?"".concat(a).concat(s):a}function m(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==(0,a.default)(e))return e;if(r.has(e))return r.get(e);if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e);else if(e instanceof Map)t=new Map(Array.from(e,(function(e){var t=(0,o.default)(e,2),n=t[0],a=t[1];return[n,m(a,r)]})));else if(e instanceof Set)t=new Set(Array.from(e,(function(e){return m(e,r)})));else if(Array.isArray(e))t=e.map((function(e){return m(e,r)}));else if("[object Object]"===Object.prototype.toString.call(e)){t=Object.create(Object.getPrototypeOf(e)),r.set(e,t);for(var n=0,i=Object.entries(e);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=m(e),"object"!==(0,a.default)(e)||null===e||"object"!==(0,a.default)(t)||null===t)return e;var r=Array.isArray(e)?e.slice():Object.assign({},e);for(var n in t)if(t.hasOwnProperty(n)){var o=t[n],i=r[n];o instanceof Date?r[n]=new Date(o):o instanceof RegExp?r[n]=new RegExp(o):o instanceof Map?r[n]=new Map(o):o instanceof Set?r[n]=new Set(o):"object"===(0,a.default)(o)&&null!==o?r[n]=b(i,o):r[n]=o}return r}function x(e){console.error("uView提示:".concat(e))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function A(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e=t?/^\d{10}$/.test(null===t||void 0===t?void 0:t.toString().trim())?new Date(1e3*t):"string"===typeof t&&/^\d+$/.test(t.trim())?new Date(Number(t)):"string"===typeof t&&t.includes("-")&&!t.includes("T")?new Date(t.replace(/-/g,"/")):new Date(t):new Date;var n={y:e.getFullYear().toString(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate().toString().padStart(2,"0"),h:e.getHours().toString().padStart(2,"0"),M:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0")};for(var a in n){var i=new RegExp("".concat(a,"+")).exec(r)||[],s=(0,o.default)(i,1),u=s[0];if(u){var c="y"===a&&2===u.length?2:0;r=r.replace(u,n[a].slice(c))}}return r}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";null==e&&(e=Number(new Date)),e=parseInt(e),10==e.toString().length&&(e*=1e3);var r=(new Date).getTime()-e;r=parseInt(r/1e3);var n="";switch(!0){case r<300:n="刚刚";break;case r>=300&&r<3600:n="".concat(parseInt(r/60),"分钟前");break;case r>=3600&&r<86400:n="".concat(parseInt(r/3600),"小时前");break;case r>=86400&&r<2592e3:n="".concat(parseInt(r/86400),"天前");break;default:n=!1===t?r>=2592e3&&r<31536e3?"".concat(parseInt(r/2592e3),"个月前"):"".concat(parseInt(r/31536e3),"年前"):A(e,t)}return n}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return e=String(e),"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=t?"?":"",o=[];-1==["indices","brackets","repeat","comma"].indexOf(r)&&(r="brackets");var a=function(t){var n=e[t];if(["",void 0,null].indexOf(n)>=0)return"continue";if(n.constructor===Array)switch(r){case"indices":for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:r})}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var r="";switch(e){case"primary":r="info-circle";break;case"info":r="info-circle";break;case"error":r="close-circle";break;case"warning":r="error-circle";break;case"success":r="checkmark-circle";break;default:r="checkmark-circle"}return t&&(r+="-fill"),r}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var o=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,i="undefined"===typeof n?",":n,u="undefined"===typeof r?".":r,c="";c=(a?(0,s.round)(o,a)+"":"".concat(Math.round(o))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(c[0]))c[0]=c[0].replace(l,"$1".concat(i,"$2"));return(c[1]||"").length1&&void 0!==arguments[1])||arguments[1],r=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?r:/s$/.test(e)?r>30?r:1e3*r:r}function I(e){return"00".concat(e).slice(-2)}function _(t,r){var n=e.$u.$parent.call(t,"u-form-item"),o=e.$u.$parent.call(t,"u-form");n&&o&&o.validateField(n.prop,(function(){}),r)}function D(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var r=t.split("."),n=e[r[0]]||{},o=1;o1){var o=r[0];t[o]&&"object"===(0,a.default)(t[o])||(t[o]={});r.shift();e(t[o],r,n)}else t[r[0]]=n};if("string"!==typeof t||""===t);else if(-1!==t.indexOf(".")){var o=t.split(".");n(e,o,r)}else e[t]=r}}function M(){var e,t,r=getCurrentPages();return"/".concat(null!==(e=null===(t=r[r.length-1])||void 0===t?void 0:t.route)&&void 0!==e?e:"")}function B(){var e=getCurrentPages();return e}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=getCurrentPages(),r=t.length;return t[r-1+e]}function F(t){var r=t.props,n=void 0===r?{}:r,o=t.config,a=void 0===o?{}:o,i=t.color,s=void 0===i?{}:i,u=t.zIndex,c=void 0===u?{}:u,l=e.$u.deepMerge;e.$u.config=l(e.$u.config,a),e.$u.props=l(e.$u.props,n),e.$u.color=l(e.$u.color,s),e.$u.zIndex=l(e.$u.zIndex,c)}String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var r=this;if(r.length>=e)return String(r);var n=e-r.length,o=Math.ceil(n/t.length);while(o>>=1)t+=t,1===o&&(t+=t);return t.slice(0,n)+r});var U={range:u,getPx:c,sleep:l,os:f,sys:p,random:d,guid:h,$parent:g,addStyle:v,addUnit:y,deepClone:m,deepMerge:b,error:x,randomArray:w,timeFormat:A,timeFrom:S,trim:k,queryParams:T,toast:P,type2icon:C,priceFormat:O,getDuration:E,padZero:I,formValidate:_,getProperty:D,setProperty:j,page:M,pages:B,getHistoryPage:L,setConfig:F};t.default=U}).call(this,r(2)["default"])},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.divide=h,t.enableBoundaryChecking=v,t.minus=d,t.plus=p,t.round=g,t.times=f;var o=n(r(66)),a=!0;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function s(e){var t=e.toString().split(/[eE]/),r=(t[0].split(".")[1]||"").length-+(t[1]||0);return r>0?r:0}function u(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return t>0?i(Number(e)*Math.pow(10,t)):Number(e)}function c(e){a&&(e>Number.MAX_SAFE_INTEGER||e2)return l(t,f);var n=t[0],o=t[1],a=u(n),i=u(o),p=s(n)+s(o),d=a*i;return c(d),d/Math.pow(10,p)}function p(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,p);var n=t[0],o=t[1],a=Math.pow(10,Math.max(s(n),s(o)));return(f(n,a)+f(o,a))/a}function d(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,d);var n=t[0],o=t[1],a=Math.pow(10,Math.max(s(n),s(o)));return(f(n,a)-f(o,a))/a}function h(){for(var e=arguments.length,t=new Array(e),r=0;r2)return l(t,h);var n=t[0],o=t[1],a=u(n),p=u(o);return c(a),c(p),f(a/p,i(Math.pow(10,s(o)-s(n))))}function g(e,t){var r=Math.pow(10,t),n=h(Math.round(Math.abs(f(e,r))),r);return e<0&&0!==n&&(n=f(n,-1)),n}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a=e}var y={times:f,plus:p,minus:d,divide:h,round:g,enableBoundaryChecking:v};t.default=y},function(e,t,r){var n=r(6),o=r(20),a=r(8),i=r(10);function s(e){return n(e)||o(e)||a(e)||i()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="2.0.37";console.log("\n %c uView V".concat(n," %c https://uviewui.com/ \n\n"),"color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;");var o={v:n,version:n,type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};t.default=o},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(11)),a=n(r(67)),i=n(r(69)),s=n(r(70)),u=n(r(71)),c=n(r(72)),l=n(r(73)),f=n(r(74)),p=n(r(75)),d=n(r(76)),h=n(r(77)),g=n(r(78)),v=n(r(79)),y=n(r(80)),m=n(r(81)),b=n(r(82)),x=n(r(83)),w=n(r(84)),A=n(r(85)),S=n(r(86)),k=n(r(87)),T=n(r(88)),P=n(r(89)),C=n(r(90)),O=n(r(91)),E=n(r(92)),I=n(r(93)),_=n(r(94)),D=n(r(95)),j=n(r(96)),M=n(r(97)),B=n(r(98)),L=n(r(99)),F=n(r(100)),U=n(r(101)),N=n(r(102)),R=n(r(103)),z=n(r(104)),q=n(r(105)),H=n(r(106)),Q=n(r(107)),W=n(r(108)),Y=n(r(109)),G=n(r(110)),V=n(r(111)),K=n(r(112)),J=n(r(113)),X=n(r(114)),$=n(r(115)),Z=n(r(117)),ee=n(r(118)),te=n(r(119)),re=n(r(120)),ne=n(r(121)),oe=n(r(122)),ae=n(r(123)),ie=n(r(124)),se=n(r(125)),ue=n(r(126)),ce=n(r(127)),le=n(r(128)),fe=n(r(129)),pe=n(r(130)),de=n(r(131)),he=n(r(132)),ge=n(r(133)),ve=n(r(134)),ye=n(r(135)),me=n(r(136)),be=n(r(137)),xe=n(r(138)),we=n(r(139)),Ae=n(r(140)),Se=n(r(141)),ke=n(r(142)),Te=n(r(143)),Pe=n(r(144)),Ce=n(r(145)),Oe=n(r(146)),Ee=n(r(147)),Ie=n(r(148)),_e=n(r(149)),De=n(r(150)),je=n(r(151)),Me=n(r(152)),Be=n(r(153)),Le=n(r(154)),Fe=n(r(155)),Ue=n(r(156)),Ne=n(r(157));function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){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)}}var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function i(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var r=i(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=s(e[r],t)})),n}function u(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function c(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}function f(e,t){if(!e)throw new Error("[vuex] "+t)}function p(e,t){return function(){return e(t)}}var d=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},h={namespaced:{configurable:!0}};h.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(e,t){this._children[e]=t},d.prototype.removeChild=function(e){delete this._children[e]},d.prototype.getChild=function(e){return this._children[e]},d.prototype.hasChild=function(e){return e in this._children},d.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)},d.prototype.forEachChild=function(e){u(this._children,e)},d.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},d.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},d.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(d.prototype,h);var g=function(e){this.register([],e,!1)};function v(e,t,r){if(w(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");v(e.concat(n),t.getChild(n),r.modules[n])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},g.prototype.update=function(e){v([],this.root,e)},g.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0),w(e,t);var o=new d(t,r);if(0===e.length)this.root=o;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],o)}t.modules&&u(t.modules,(function(t,o){n.register(e.concat(o),t,r)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n?n.runtime&&t.removeChild(r):console.warn("[vuex] trying to unregister module '"+r+"', which is not registered")},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var y,m={assert:function(e){return"function"===typeof e},expected:"function"},b={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},x={getters:m,mutations:m,actions:b};function w(e,t){Object.keys(x).forEach((function(r){if(t[r]){var n=x[r];u(t[r],(function(t,o){f(n.assert(t),A(e,r,o,t,n.expected))}))}}))}function A(e,t,r,n,o){var a=t+" should be "+o+' but "'+t+"."+r+'"';return e.length>0&&(a+=' in module "'+e.join(".")+'"'),a+=" is "+JSON.stringify(n)+".",a}var S=function e(t){var r=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&F(window.Vue),f(y,"must call Vue.use(Vuex) before creating a store instance."),f("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),f(this instanceof e,"store must be called with the new operator.");var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,s=this,u=s.dispatch,c=s.commit;this.dispatch=function(e,t){return u.call(i,e,t)},this.commit=function(e,t,r){return c.call(i,e,t,r)},this.strict=o;var l=this._modules.root.state;O(this,l,[],this._modules.root),C(this,l),n.forEach((function(e){return e(r)}));var p=void 0!==t.devtools?t.devtools:y.config.devtools;p&&a(this)},k={state:{configurable:!0}};function T(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,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 r=e.state;O(e,r,[],e._modules.root,!0),C(e,r,t)}function C(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};u(o,(function(t,r){a[r]=p(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var i=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:a}),y.config.silent=i,e.strict&&M(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),y.nextTick((function(){return n.$destroy()})))}function O(e,t,r,n,o){var a=!r.length,i=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[i]&&console.error("[vuex] duplicate namespace "+i+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[i]=n),!a&&!o){var s=B(t,r.slice(0,-1)),u=r[r.length-1];e._withCommit((function(){u in s&&console.warn('[vuex] state field "'+u+'" was overridden by a module with the same name at "'+r.join(".")+'"'),y.set(s,u,n.state)}))}var c=n.context=E(e,i,r);n.forEachMutation((function(t,r){var n=i+r;_(e,n,t,c)})),n.forEachAction((function(t,r){var n=t.root?r:i+r,o=t.handler||t;D(e,n,o,c)})),n.forEachGetter((function(t,r){var n=i+r;j(e,n,t,c)})),n.forEachChild((function(n,a){O(e,t,r.concat(a),n,o)}))}function E(e,t,r){var n=""===t,o={dispatch:n?e.dispatch:function(r,n,o){var a=L(r,n,o),i=a.payload,s=a.options,u=a.type;if(s&&s.root||(u=t+u,e._actions[u]))return e.dispatch(u,i);console.error("[vuex] unknown local action type: "+a.type+", global type: "+u)},commit:n?e.commit:function(r,n,o){var a=L(r,n,o),i=a.payload,s=a.options,u=a.type;s&&s.root||(u=t+u,e._mutations[u])?e.commit(u,i,s):console.error("[vuex] unknown local mutation type: "+a.type+", global type: "+u)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return I(e,t)}},state:{get:function(){return B(e.state,r)}}}),o}function I(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){var a=o.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function _(e,t,r,n){var o=e._mutations[t]||(e._mutations[t]=[]);o.push((function(t){r.call(e,n.state,t)}))}function D(e,t,r,n){var o=e._actions[t]||(e._actions[t]=[]);o.push((function(t){var o=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return l(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function j(e,t,r,n){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}function M(e){e._vm.$watch((function(){return this._data.$$state}),(function(){f(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function B(e,t){return t.reduce((function(e,t){return e[t]}),e)}function L(e,t,r){return c(e)&&e.type&&(r=t,t=e,e=e.type),f("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}function F(e){y&&e===y?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(y=e,r(y))}k.state.get=function(){return this._vm._data.$$state},k.state.set=function(e){f(!1,"use store.replaceState() to explicit replace store state.")},S.prototype.commit=function(e,t,r){var n=this,o=L(e,t,r),a=o.type,i=o.payload,s=o.options,u={type:a,payload:i},c=this._mutations[a];c?(this._withCommit((function(){c.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(u,n.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+a)},S.prototype.dispatch=function(e,t){var r=this,n=L(e,t),o=n.type,a=n.payload,i={type:o,payload:a},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,r.state)}))}catch(c){console.warn("[vuex] error in before action subscribers: "),console.error(c)}var u=s.length>1?Promise.all(s.map((function(e){return e(a)}))):s[0](a);return new Promise((function(e,t){u.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,r.state)}))}catch(c){console.warn("[vuex] error in after action subscribers: "),console.error(c)}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,r.state,e)}))}catch(c){console.warn("[vuex] error in error action subscribers: "),console.error(c)}t(e)}))}))}console.error("[vuex] unknown action type: "+o)},S.prototype.subscribe=function(e,t){return T(e,this._subscribers,t)},S.prototype.subscribeAction=function(e,t){var r="function"===typeof e?{before:e}:e;return T(r,this._actionSubscribers,t)},S.prototype.watch=function(e,t,r){var n=this;return f("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},S.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},S.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),f(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),O(this,this.state,e,this._modules.get(e),r.preserveState),C(this,this.state)},S.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var r=B(t.state,e.slice(0,-1));y.delete(r,e[e.length-1])})),P(this)},S.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),f(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},S.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)},S.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(S.prototype,k);var U=W((function(e,t){var r={};return Q(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=Y(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof o?o.call(this,t,r):t[o]},r[n].vuex=!0})),r})),N=W((function(e,t){var r={};return Q(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var a=Y(this.$store,"mapMutations",e);if(!a)return;n=a.context.commit}return"function"===typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),R=W((function(e,t){var r={};return Q(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var n=t.key,o=t.val;o=e+o,r[n]=function(){if(!e||Y(this.$store,"mapGetters",e)){if(o in this.$store.getters)return this.$store.getters[o];console.error("[vuex] unknown getter: "+o)}},r[n].vuex=!0})),r})),z=W((function(e,t){var r={};return Q(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),H(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var a=Y(this.$store,"mapActions",e);if(!a)return;n=a.context.dispatch}return"function"===typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),q=function(e){return{mapState:U.bind(null,e),mapGetters:R.bind(null,e),mapMutations:N.bind(null,e),mapActions:z.bind(null,e)}};function H(e){return Q(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 Q(e){return Array.isArray(e)||c(e)}function W(e){return function(t,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function Y(e,t,r){var n=e._modulesNamespaceMap[r];return n||console.error("[vuex] module namespace not found in "+t+"(): "+r),n}function G(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var u=e.logMutations;void 0===u&&(u=!0);var c=e.logActions;void 0===c&&(c=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=s(e.state);"undefined"!==typeof l&&(u&&e.subscribe((function(e,a){var i=s(a);if(r(e,f,i)){var u=J(),c=o(e),p="mutation "+e.type+u;V(l,p,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",c),l.log("%c next state","color: #4CAF50; font-weight: bold",n(i)),K(l)}f=i})),c&&e.subscribeAction((function(e,r){if(a(e,r)){var n=J(),o=i(e),s="action "+e.type+n;V(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),K(l)}})))}}function V(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(o){e.log(t)}}function K(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function J(){var e=new Date;return" @ "+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)}function X(e,t){return new Array(t+1).join(e)}function $(e,t){return X("0",t-e.toString().length)+e}var Z={Store:S,install:F,version:"3.6.2",mapState:U,mapMutations:N,mapGetters:R,mapActions:z,createNamespacedHelpers:q,createLogger:G};e.exports=Z}).call(this,r(3))},function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.getAdvList=i,t.getConfigByKey=l,t.getenterprise=c,t.privacyPolicy=u,t.userAgreement=s;var o=n(r(163)),a=(new o.default).http;function i(e){return a("/app/adv/getAdvList",e,"GET")}function s(){return a("/web/userAgreement",null,"GET")}function u(){return a("/web/privacyPolicy",null,"GET")}function c(e){return a("/app/index/getConcept",e,"GET")}function l(e){return a("/app/common/getConfigByKey",e,"GET")}},function(e,t,r){"use strict";(function(e){var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(23)),a=n(r(24)),i=r(164),s=function(){function t(){(0,o.default)(this,t)}return(0,a.default)(t,[{key:"http",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=0,s="https://userapp.bjyjbao.com";e.setStorageSync("requestPath",s);var u=e.getStorageSync("AppToken");return-1!=t.indexOf("/companyapp")&&(a=1,u=e.getStorageSync("ManageToken")),-1!=t.indexOf("/course_uniapp")&&(a=2,t=t.replace("/course_uniapp",""),u=e.getStorageSync("TOKEN_WEXIN")),-1!=t.indexOf("/course_auto")&&(a=3,t=t.replace("/course_auto",""),u=e.getStorageSync(i.TOKEN_KEYAuto)),new Promise((function(i,c){var l=e.getStorageSync("UserToken"),f="application/x-www-form-urlencoded";void 0!=o&&(f=o);e.request({header:{"Content-Type":f,AppToken:u,UserToken:l},url:"".concat(s).concat(t),data:r,method:n,success:function(t){if(401==t.data.code){var r=getCurrentPages(),n=r[r.length-1],o="";return o="/pages/enterprise/enterprise",n.route===o.replace(/^\//,"")?void i(t.data):void e.reLaunch({url:o,success:function(){e.hideLoading()},fail:function(){e.hideLoading()}})}t.token&&0==a&&e.setStorageSync(TOKEN_KEY,t.data.token),i(t.data)},fail:function(e){},complete:function(t){if(t.data&&401==t.data.code)return!1;e.hideLoading()}})}))}}]),t}();t.default=s}).call(this,r(2)["default"])},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TOKEN_KEYAuto=void 0,t.generateRandomString=n,t.isLoginCourseAuto=o;var r="AppTokenmini_AutoCourse";function n(e){for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length,o=0;o=t?e:""+Array(t+1-n.length).join(r)+e},b={s:m,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+m(n,2,"0")+":"+m(o,2,"0")},m:function e(t,r){if(t.date()1)return e(i[0])}else{var s=t.name;w[s]=t,o=s}return!n&&o&&(x=o),o||!n&&x},T=function(e,t){if(S(e))return e.clone();var r="object"==a(t)?t:{};return r.date=e,r.args=arguments,new C(r)},P=b;P.l=k,P.i=S,P.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function a(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=a.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(g);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===h)},y.isSame=function(e,t){var r=T(e);return this.startOf(t)<=r&&r<=this.endOf(t)},y.isAfter=function(e,t){return T(e)4?e.slice(0,4)+"...":(console.log("qxj subString:"+e),e)},g=function(e){var t=[];return null!=e&&""!=e&&(t=e.split(",")),t},v=function(e,t){var r,n={"Y+":t.getFullYear().toString(),"m+":(t.getMonth()+1).toString(),"d+":t.getDate().toString(),"H+":t.getHours().toString(),"M+":t.getMinutes().toString(),"S+":t.getSeconds().toString()};for(var o in n)r=new RegExp("("+o+")").exec(e),r&&(e=e.replace(r[1],1==r[1].length?n[o]:n[o].padStart(r[1].length,"0")));return e},y=function(e){return new Promise((function(r,n){t.getProvider({service:e||"oauth",success:function(e){e.provider&&r(e.provider[0])},fail:function(){n("获取环境服务商失败")}})})).catch((function(e){console.log("167",e)}))},m=function(e,t,r,n){t=t||"id",r=r||"parentId",n=n||Math.min.apply(Math,e.map((function(e){return e[r]})))||0;var o=JSON.parse(JSON.stringify(e)),a=o.filter((function(e){var a=o.filter((function(n){return e[t]===n[r]}));return a.length>0&&(e.child=a),e[r]===n}));return""!=a?a:e},b=function(e){var t=e.substr(0,3)+"****"+e.substr(7);return t},x=function(e){var t=e.substr(0,4)+"****"+e.substr(8);return t},w=function(e){var t,r=e.split("-"),n=r[0],o=r[1],a=r[2],i=new Date,s=i.getFullYear(),u=i.getMonth()+1,c=i.getDate();if(s==n)t=0;else{var l=s-n;if(l>0)if(u==o){var f=c-a;t=f<0?l-1:l}else{var p=u-o;t=p<0?l-1:l}else t=-1}return t},A=function(){var e=[];t.setStorageSync("hisSearch",JSON.stringify(e))},S=function(){var e=t.getStorageSync("hisSearch");if(null!=e&&void 0!=e&&""!=e){e=JSON.parse(e);return e}var r=[];return r},k=function(e){var r=t.getStorageSync("hisSearch"),n=[];null!=r&&void 0!=r&&""!=r&&(n=JSON.parse(r)),n.push(e);var a=(0,o.default)(new Set(n));t.setStorageSync("hisSearch",JSON.stringify(a))},T=function(e){var t=new Date(1e3*e),r=t.getFullYear(),n=t.getMonth()+1;n=n<10?"0"+n:n;var o=t.getDate();o=o<10?"0"+o:o;var a=t.getHours();a=a<10?"0"+a:a;var i=t.getMinutes();i=i<10?"0"+i:i;var s=t.getSeconds();return s=s<10?"0"+s:s,r+"-"+n+"-"+o+" "+a+":"+i+":"+s},P=function(e){var t=this,r=function(e,t,r){var n=e;return t=t.split("."),t.forEach((function(t){if(null===e[t]||void 0===e[t]){var o=/^[0-9]+$/;e[t]=o.test(r)?[]:{},n=e[t]}else n=e[t]})),n};Object.keys(e).forEach((function(n){var o,a,i=e[n];n=n.replace(/\]/g,"").replace(/\[/g,".");var s=n.lastIndexOf(".");-1!=s?(a=n.slice(s+1),o=r(t,n.slice(0,s),a)):(a=n,o=t),o.$data&&void 0===o.$data[a]?(Object.defineProperty(o,a,{get:function(){return o.$data[a]},set:function(e){o.$data[a]=e,t.hasOwnProperty("$forceUpdate")&&t.$forceUpdate()},enumerable:!0,configurable:!0}),o[a]=i):t.$set(o,a,i)}))},C=function(e){for(var t={},r=e.slice(e.indexOf("?")+1),n=r.split("&"),o=n.length,a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},,,,,,,,,,,function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.complaintRecord=S,t.courseAnswer=l,t.getComments=x,t.getConcept=w,t.getErrMsg=v,t.getFinishCourseVideo=f,t.getH5CourseByVideoId=u,t.getH5CourseVideoDetails=c,t.getIntegralByH5Video=h,t.getInternetTraffic=d,t.getIsAddKf=p,t.getRealLink=s,t.getTypeTree=A,t.getWxConfig=y,t.loginByMp=i,t.revokeMsg=b,t.saveMsg=m,t.sendReward=g;var o=n(r(163)),a=(new o.default).http;function i(e){return a("/course_auto/app/wx/courseLogin",e,"POST","application/json;charset=UTF-8")}function s(e){return a("/course_auto/app/course/getRealLink",e,"GET","")}function u(e){return a("/course_auto/app/course/getH5CourseByVideoId",e,"GET","")}function c(e){return a("/course_auto/app/course/getH5CourseVideoDetails",e,"GET","")}function l(e){return a("/course_auto/app/course/courseAnswer",e,"POST","application/json;charset=UTF-8")}function f(e){return a("/course_auto/app/course/updateWatchDuration",e,"POST","application/json;charset=UTF-8")}function p(e){return a("/course_auto/app/course/isAddKf",e,"POST","application/json;charset=UTF-8")}function d(e){return a("/course_auto/app/course/getInternetTraffic",e,"POST","application/json;charset=UTF-8")}function h(e){return a("/course_auto/app/course/getIntegralByH5Video",e,"POST","application/json;charset=UTF-8")}function g(e){return a("/course_auto/app/course/sendReward",e,"POST","application/json;charset=UTF-8")}function v(e){return a("/app/course/getErrMsg",e,"POST","application/x-www-form-urlencoded")}function y(e){return a("/course_auto/app/wx/mp/getWxConfig",e,"GET","")}function m(e){return a("/course_auto/app/course/saveMsg",e,"POST","application/json;charset=UTF-8")}function b(e){return a("/course_auto/app/course/revokeMsg",e,"PUT","application/json;charset=UTF-8")}function x(e){return a("/course_auto/app/course/getComments",e,"GET")}function w(){return a("/course_auto/app/index/getConcept",null,"GET")}function A(e){return a("/course_auto/app/user/complaint/getTypeTree",null,"GET")}function S(e){return a("/course_auto/app/user/complaint/record",e,"POST","application/json;charset=UTF-8")}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e,n,o){var a=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var i=a(r(57)),s=a(r(536)),u=a(r(5)),c=a(r(13)),l=a(r(18)),f=a(r(59)),p=a(r(11)),d=a(r(537)),h=a(r(538)),g=a(r(539)),v=a(r(540)),y=a(r(23)),m=a(r(24)),b=a(r(542));function x(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=w(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function w(e,t){if(e){if("string"===typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>2]>>>24-a%4*8&255;t[n+a>>>2]|=i<<24-(n+a)%4*8}else for(a=0;a>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],o=function(t){var r=987654321,n=4294967295;return function(){var o=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-o%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new i.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new i.init(r,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,o);if(u){for(var l=0;l>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,i=e[t+0],u=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],A=e[t+11],S=e[t+12],k=e[t+13],T=e[t+14],P=e[t+15],C=a[0],O=a[1],E=a[2],I=a[3];C=c(C,O,E,I,i,7,s[0]),I=c(I,C,O,E,u,12,s[1]),E=c(E,I,C,O,d,17,s[2]),O=c(O,E,I,C,h,22,s[3]),C=c(C,O,E,I,g,7,s[4]),I=c(I,C,O,E,v,12,s[5]),E=c(E,I,C,O,y,17,s[6]),O=c(O,E,I,C,m,22,s[7]),C=c(C,O,E,I,b,7,s[8]),I=c(I,C,O,E,x,12,s[9]),E=c(E,I,C,O,w,17,s[10]),O=c(O,E,I,C,A,22,s[11]),C=c(C,O,E,I,S,7,s[12]),I=c(I,C,O,E,k,12,s[13]),E=c(E,I,C,O,T,17,s[14]),C=l(C,O=c(O,E,I,C,P,22,s[15]),E,I,u,5,s[16]),I=l(I,C,O,E,y,9,s[17]),E=l(E,I,C,O,A,14,s[18]),O=l(O,E,I,C,i,20,s[19]),C=l(C,O,E,I,v,5,s[20]),I=l(I,C,O,E,w,9,s[21]),E=l(E,I,C,O,P,14,s[22]),O=l(O,E,I,C,g,20,s[23]),C=l(C,O,E,I,x,5,s[24]),I=l(I,C,O,E,T,9,s[25]),E=l(E,I,C,O,h,14,s[26]),O=l(O,E,I,C,b,20,s[27]),C=l(C,O,E,I,k,5,s[28]),I=l(I,C,O,E,d,9,s[29]),E=l(E,I,C,O,m,14,s[30]),C=f(C,O=l(O,E,I,C,S,20,s[31]),E,I,v,4,s[32]),I=f(I,C,O,E,b,11,s[33]),E=f(E,I,C,O,A,16,s[34]),O=f(O,E,I,C,T,23,s[35]),C=f(C,O,E,I,u,4,s[36]),I=f(I,C,O,E,g,11,s[37]),E=f(E,I,C,O,m,16,s[38]),O=f(O,E,I,C,w,23,s[39]),C=f(C,O,E,I,k,4,s[40]),I=f(I,C,O,E,i,11,s[41]),E=f(E,I,C,O,h,16,s[42]),O=f(O,E,I,C,y,23,s[43]),C=f(C,O,E,I,x,4,s[44]),I=f(I,C,O,E,S,11,s[45]),E=f(E,I,C,O,P,16,s[46]),C=p(C,O=f(O,E,I,C,d,23,s[47]),E,I,i,6,s[48]),I=p(I,C,O,E,m,10,s[49]),E=p(E,I,C,O,T,15,s[50]),O=p(O,E,I,C,v,21,s[51]),C=p(C,O,E,I,S,6,s[52]),I=p(I,C,O,E,h,10,s[53]),E=p(E,I,C,O,w,15,s[54]),O=p(O,E,I,C,u,21,s[55]),C=p(C,O,E,I,b,6,s[56]),I=p(I,C,O,E,P,10,s[57]),E=p(E,I,C,O,y,15,s[58]),O=p(O,E,I,C,k,21,s[59]),C=p(C,O,E,I,g,6,s[60]),I=p(I,C,O,E,A,10,s[61]),E=p(E,I,C,O,d,15,s[62]),O=p(O,E,I,C,x,21,s[63]),a[0]=a[0]+C|0,a[1]=a[1]+O|0,a[2]=a[2]+E|0,a[3]=a[3]+I|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var a=e.floor(n/4294967296),i=n;r[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,o,a,i){var s=e+(t&r|~t&n)+o+i;return(s<>>32-a)+t}function l(e,t,r,n,o,a,i){var s=e+(t&n|r&~n)+o+i;return(s<>>32-a)+t}function f(e,t,r,n,o,a,i){var s=e+(t^r^n)+o+i;return(s<>>32-a)+t}function p(e,t,r,n,o,a,i){var s=e+(r^(t|~n))+o+i;return(s<>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),r.MD5)})),O((function(e,t){var r;e.exports=(r=I,void function(){var e=r,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),i=this._iKey=t.clone(),s=a.words,u=i.words,c=0;c>>6-i%4*2;o[a>>>2]|=(s|u)<<24-a%4*8,a++}return t.create(o,a)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],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 u=n.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(e){var t=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},r=t.createPromise,n=t.retryRule,o=void 0===n?W:n;(0,y.default)(this,e),this.createPromise=r,this.status=null,this.promise=null,this.retryRule=o}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case W:return this.status===R;case Y:return this.status!==U}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=U,this.promise=this.createPromise().then((function(t){return e.status=N,Promise.resolve(t)}),(function(t){return e.status=R,Promise.reject(t)})),this.promise):this.promise}}]),e}(),V=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 r=this._callback[e];if(r){var n=function(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}(r,t);r.splice(n,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],r=arguments.length,n=new Array(r>1?r-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};return t=ae,r=e,Object.prototype.hasOwnProperty.call(t,r)||(ae[e]=n),ae[e]}function se(){return oe||(oe=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")()}(),oe)}"app"===ee&&(ae=n._globalUniCloudObj?n._globalUniCloudObj:n._globalUniCloudObj={});var ue=["invoke","success","fail","complete"],ce=ie("_globalUniCloudInterceptor");function le(e,t){ce[e]||(ce[e]={}),q(t)&&Object.keys(t).forEach((function(r){ue.indexOf(r)>-1&&function(e,t,r){var n=ce[e][t];n||(n=ce[e][t]=[]),-1===n.indexOf(r)&&H(r)&&n.push(r)}(e,r,t[r])}))}function fe(e,t){ce[e]||(ce[e]={}),q(t)?Object.keys(t).forEach((function(r){ue.indexOf(r)>-1&&function(e,t,r){var n=ce[e][t];if(n){var o=n.indexOf(r);o>-1&&n.splice(o,1)}}(e,r,t[r])})):delete ce[e]}function pe(e,t){return e&&0!==e.length?e.reduce((function(e,r){return e.then((function(){return r(t)}))}),Promise.resolve()):Promise.resolve()}function de(e,t){return ce[e]&&ce[e][t]||[]}function he(e){le("callObject",e)}var ge=ie("_globalUniCloudListener"),ve={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ye={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function me(e){return ge[e]||(ge[e]=[]),ge[e]}function be(e,t){var r=me(e);r.includes(t)||r.push(t)}function xe(e,t){var r=me(e),n=r.indexOf(t);-1!==n&&r.splice(n,1)}function we(e,t){for(var r=me(e),n=0;n0&&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}}}]),r}((0,v.default)(Error));t.UniCloudError=Pe;var Ce,Oe,Ee={request:function(e){return n.request(e)},uploadFile:function(e){return n.uploadFile(e)},setStorageSync:function(e,t){return n.setStorageSync(e,t)},getStorageSync:function(e){return n.getStorageSync(e)},removeStorageSync:function(e){return n.removeStorageSync(e)},clearStorageSync:function(){return n.clearStorageSync()},connectSocket:function(e){return n.connectSocket(e)}};function Ie(){return{token:Ee.getStorageSync(M)||Ee.getStorageSync(L),tokenExpired:Ee.getStorageSync(B)}}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,r=e.tokenExpired;t&&Ee.setStorageSync(M,t),r&&Ee.setStorageSync(B,r)}function De(){return Ce||(Ce=n.getSystemInfoSync()),Ce}function je(){var e,t;try{if(n.getLaunchOptionsSync){if(n.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var r=n.getLaunchOptionsSync(),o=r.scene,a=r.channel;e=a,t=o}}catch(e){}return{channel:e,scene:t}}var Me={};function Be(){var e=n.getLocale&&n.getLocale()||"en";if(Oe)return k(k(k({},Me),Oe),{},{locale:e,LOCALE:e});var t=De(),r=t.deviceId,o=t.osName,a=t.uniPlatform,i=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 u in t)Object.hasOwnProperty.call(t,u)&&-1===s.indexOf(u)&&delete t[u];return Oe=k(k({PLATFORM:a,OS:o,APPID:i,DEVICEID:r},je()),t),k(k(k({},Me),Oe),{},{locale:e,LOCALE:e})}var Le,Fe={sign:function(e,t){var r="";return Object.keys(e).sort().forEach((function(t){e[t]&&(r=r+"&"+t+"="+e[t])})),r=r.slice(1),_(r,t).toString()},wrappedRequest:function(e,t){return new Promise((function(r,n){t(Object.assign(e,{complete:function(e){e||(e={}),J&&"web"===ee&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");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 o=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 n(new Pe({code:o,message:a,requestId:t}))}var i=e.data;if(i.error)return n(new Pe({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,r(i)}}))}))},toBase64:function(e){return j.stringify(D.parse(e))}},Ue=function(){function e(t){var r=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=Ee,this._getAccessTokenPromiseHub=new G({createPromise:function(){return r.requestAuth(r.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new Pe({code:"AUTH_FAILED",message:"获取accessToken失败"});r.setAccessToken(e.result.accessToken)}))},retryRule:Y})}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 Fe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var r=this;return Promise.resolve().then((function(){return r.hasAccessToken?t?r.requestWrapped(e):r.requestWrapped(e).catch((function(t){return new Promise((function(e,r){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?r(t):e()})).then((function(){return r.getAccessToken()})).then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))})):r.getAccessToken().then((function(){var t=r.rebuildRequest(e);return r.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"]=Fe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=Fe.sign(r,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(i.default.mark((function e(){return i.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)})));function t(){return e.apply(this,arguments)}return t}()},{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,r=e.url,n=e.formData,o=e.name,a=e.filePath,i=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:r,formData:n,name:o,filePath:a,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new Pe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new Pe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.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,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u,c,l,f,p,d,h,g,v,y,m,b,x,w,A,S,k;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,o=t.fileType,a=void 0===o?"image":o,s=t.cloudPathAsRealPath,u=void 0!==s&&s,c=t.onUploadProgress,l=t.config,"string"===z(n)){e.next=3;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(n=n.trim()){e.next=5;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(n)){e.next=7;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(u&&("/"!==n[0]&&(n="/"+n),n.indexOf("\\")>-1))){e.next=10;break}throw new Pe({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:u?n.split("/").pop():n,fileId:u?n:void 0});case 12:return p=e.sent.result,d="https://"+p.cdnDomain+"/"+p.ossPath,h=p.securityToken,g=p.accessKeyId,v=p.signature,y=p.host,m=p.ossPath,b=p.id,x=p.policy,w=p.ossCallbackUrl,A={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:b,key:m,policy:x,success_action_status:200},h&&(A["x-oss-security-token"]=h),w&&(S=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),A.callback=Fe.toBase64(S)),k={url:"https://"+p.host,formData:A,fileName:"file",name:"file",filePath:r,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:c}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:r,fileID:d});case 29:return e.next=31,this.reportOSSUpload({id:b});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:r,fileID:d});case 33:throw new Pe({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,r){Array.isArray(t)&&0!==t.length||r(new Pe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.fileList,Array.isArray(r)&&0!==r.length){e.next=3;break}throw new Pe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return n={method:"serverless.file.resource.info",params:JSON.stringify({id:r.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(n));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),e}(),Ne={init:function(e){var t=new Ue(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},Re="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Le||(Le={}));var ze,qe=function(){},He=O((function(e,t){var r;e.exports=(r=I,function(e){var t=r,n=t.lib,o=n.WordArray,a=n.Hasher,i=t.algo,s=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(s[o]=r(e.pow(n,.5))),u[o]=r(e.pow(n,1/3)),o++),n++}();var c=[],l=i.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],a=r[2],i=r[3],s=r[4],l=r[5],f=r[6],p=r[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var h=c[d-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=c[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[d]=g+c[d-7]+y+c[d-16]}var m=n&o^n&a^o&a,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[d]+c[d];p=f,f=l,l=s,s=i+x|0,i=a,a=o,o=n,n=x+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+a|0,r[3]=r[3]+i|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(l),t.HmacSHA256=a._createHmacHelper(l)}(Math),r.SHA256)})),Qe=He,We=O((function(e,t){e.exports=I.HmacSHA256})),Ye=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new Pe({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 r=new Promise((function(t,r){e=function(e,n){return e?r(e):t(n)}}));return e.promise=r,e};function Ge(e){return void 0===e}function Ve(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Je(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r="",n=0;n=0?JSON.parse(r).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),nt={},ot={};function at(e){return nt[e]}var it=(0,m.default)((function e(t,r){(0,y.default)(this,e),this.data=r||null,this.name=t})),st=function(e){(0,d.default)(r,e);var t=T(r);function r(e,n){var o;return(0,y.default)(this,r),o=t.call(this,"error",{error:e,data:n}),o.error=e,o}return(0,m.default)(r)}(it),ut=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,r){r[e]=r[e]||[],r[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,r){if(r&&r[e]){var n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof st)return console.error(e.error),this;var r="string"==typeof e?new it(e,t||{}):e,n=r.name;if(this._listens(n)){r.target=this;var o,a=this._listeners[n]?(0,l.default)(this._listeners[n]):[],i=x(a);try{for(i.s();!(o=i.n()).done;){var s=o.value;s.call(this,r)}}catch(u){i.e(u)}finally{i.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function ct(e,t){ut.on(e,t)}function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ut.fire(e,t)}function ft(e,t){ut.off(e,t)}var pt,dt="loginStateChanged",ht="loginStateExpire",gt="loginTypeChanged",vt="anonymousConverted",yt="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"}(pt||(pt={}));var mt=function(){function e(){(0,y.default)(this,e),this._fnPromiseMap=new Map}return(0,m.default)(e,[{key:"run",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n,o=this;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._fnPromiseMap.get(t),e.abrupt("return",(n||(n=new Promise(function(){var e=(0,f.default)(i.default.mark((function e(n,a){var s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o._runIdlePromise();case 3:return s=r(),e.t0=n,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,o._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,n)),n));case 2:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),bt=function(){function e(t){(0,y.default)(this,e),this._singlePromise=new mt,this._cache=at(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new $e.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=Je(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n,o,a,s,u,c=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=c.length>2&&void 0!==c[2]?c[2]:{},o={"x-request-id":Je(),"x-device-id":this._getDeviceId()},!n.withAccessToken){e.next=9;break}return a=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,u=this._cache.getStore(a),o.authorization="".concat(u," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===n.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:r,headers:o}));case 10:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"_fetchAccessToken",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o,a,s,u,c,l,p,d=this;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.loginTypeKey,n=t.accessTokenKey,o=t.accessTokenExpireKey,a=t.tokenTypeKey,s=this._cache.getStore(r),!s||s===pt.ANONYMOUS){e.next=3;break}throw new Pe({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,f.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d._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 u=e.sent,c=u.access_token,l=u.expires_in,p=u.token_type,e.abrupt("return",(this._cache.setStore(a,p),this._cache.setStore(n,c),this._cache.setStore(o,Date.now()+1e3*l),c));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"isAccessTokenExpired",value:function(e,t){var r=!0;return e&&t&&(r=t0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=r,this._reqClass=new $e.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=at(this.config.env),this._localCache=(t=this.config.env,ot[t]),this.oauth=new bt(this.config),At(this._reqClass,"post",[St]),At(this._reqClass,"upload",[St]),At(this._reqClass,"download",[St])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r;return i.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),r=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!r){e.next=12;break}throw r;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o,a,s,u,c,l,f,p,d,h;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(r),this._cache.removeStore(n),u=this._cache.getStore(o),u){e.next=5;break}throw new Pe({message:"未登录CloudBase"});case 5:return c={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(a)!==pt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return p=this._cache.getStore(s),d=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:p,refresh_token:d});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:lt(ht),this._cache.removeStore(o);case 20:throw new Pe({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(lt(yt),this._cache.setStore(r,l.data.access_token),this._cache.setStore(n,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o,a,s,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new Pe({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(r),s=this._cache.getStore(n),u=!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}u=!1;case 12:return e.abrupt("return",(!a||!s||s2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(t),o="";for(var a in r)""===o?!n&&(t+="?"):o+="&",o+="".concat(a,"=").concat(encodeURIComponent(r[a]));return/^http(s)?\:\/\//.test(t+=o)?t:"".concat(e).concat(t)}(Re,"//tcb-api.tencentcloudapi.com/web",v),g&&(y+=g),e.next=28,this.post(k({url:y,data:u},f));case 28:if(m=e.sent,b=m.header&&m.header["x-tcb-trace"],b&&this._localCache.setStore(o,b),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=32;break}throw new Pe({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,r,k(k({},n),{},{onUploadProgress:r.onUploadProgress}));case 4:if(o=e.sent,"ACCESS_TOKEN_DISABLED"!==o.data.code&&"ACCESS_TOKEN_EXPIRED"!==o.data.code||-1!==xt.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,r,k(k({},n),{},{onUploadProgress:r.onUploadProgress}));case 10:if(a=e.sent,!a.data.code){e.next=13;break}throw new Pe({code:a.data.code,message:Ke(a.data.message)});case 13:return e.abrupt("return",a.data);case 14:if(!o.data.code){e.next=16;break}throw new Pe({code:o.data.code,message:Ke(o.data.message)});case 16:return e.abrupt("return",o.data);case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(o,e)}}]),e}(),Tt={};function Pt(e){return Tt[e]}var Ct=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=at(t.env),this._request=Pt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(o,e)}},{key:"setAccessToken",value:function(e,t){var r=this._cache.keys,n=r.accessTokenKey,o=r.accessTokenExpireKey;this._cache.setStore(n,e),this._cache.setStore(o,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r;return i.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,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),Ot=function(){function e(t){if((0,y.default)(this,e),!t)throw new Pe({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=at(this._envId),this._request=Pt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new Pe({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 Pe({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o;return i.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,r=t.data,n=!1,o=r.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(n=!0)})),{users:o,hasPrimaryUid:n}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u,c,l;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.nickName,n=t.gender,o=t.avatarUrl,a=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:r,gender:n,avatarUrl:o,province:a,country:s,city:u});case 8:c=e.sent,l=c.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t;return i.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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,r=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=r[t]})),this.location={country:r.country,province:r.province,city:r.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),Et=function(){function e(t){if((0,y.default)(this,e),!t)throw new Pe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=at(t);var r=this._cache.keys,n=r.refreshTokenKey,o=r.accessTokenKey,a=r.accessTokenExpireKey,i=this._cache.getStore(n),s=this._cache.getStore(o),u=this._cache.getStore(a);this.credential={refreshToken:i,accessToken:s,accessTokenExpire:u},this.user=new Ot(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===pt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===pt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===pt.WECHAT||this.loginType===pt.WECHAT_OPEN||this.loginType===pt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),It=function(e){(0,d.default)(r,e);var t=T(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t;return i.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 lt(dt),lt(gt,{env:this.config.env,loginType:pt.ANONYMOUS,persistence:"local"}),t=new Et(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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._cache.keys,n=r.anonymousUuidKey,o=r.refreshTokenKey,a=this._cache.getStore(n),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(u=e.sent,!u.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return lt(vt,{env:this.config.env}),lt(gt,{loginType:pt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new Pe({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,r=t.anonymousUuidKey,n=t.loginTypeKey;this._cache.removeStore(r),this._cache.setStore(r,e),this._cache.setStore(n,pt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(Ct),_t=function(e){(0,d.default)(r,e);var t=T(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Pe({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(r)||""});case 5:if(n=e.sent,!n.refresh_token){e.next=15;break}return this.setRefreshToken(n.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return lt(dt),lt(gt,{env:this.config.env,loginType:pt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new Et(this.config.env));case 15:throw new Pe({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),r}(Ct),Dt=function(e){(0,d.default)(r,e);var t=T(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n,o,a,s,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Pe({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:r,refresh_token:this._cache.getStore(n)||""});case 5:if(o=e.sent,a=o.refresh_token,s=o.access_token,u=o.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!u){e.next=15;break}this.setAccessToken(s,u),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return lt(dt),lt(gt,{env:this.config.env,loginType:pt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new Et(this.config.env));case 22:throw o.code?new Pe({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new Pe({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){return i.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:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(Ct),jt=function(e){(0,d.default)(r,e);var t=T(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n,o,a,s,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Pe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof r&&(r="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:pt.USERNAME,username:t,password:r,refresh_token:this._cache.getStore(n)||""});case 6:if(o=e.sent,a=o.refresh_token,s=o.access_token_expire,u=o.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!u||!s){e.next=16;break}this.setAccessToken(u,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 lt(dt),lt(gt,{env:this.config.env,loginType:pt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new Et(this.config.env));case 23:throw o.code?new Pe({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new Pe({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(Ct),Mt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=at(t.env),this._request=Pt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),ct(gt,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 It(this.config)}},{key:"customAuthProvider",value:function(){return new _t(this.config)}},{key:"emailAuthProvider",value:function(){return new Dt(this.config)}},{key:"usernameAuthProvider",value:function(){return new jt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new It(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Dt(this.config).signIn(t,r));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new jt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new It(this.config)),ct(vt,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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==pt.ANONYMOUS){e.next=2;break}throw new Pe({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,r=t.refreshTokenKey,n=t.accessTokenKey,o=t.accessTokenExpireKey,a=this._cache.getStore(r),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(r),this._cache.removeStore(n),this._cache.removeStore(o),lt(dt),lt(gt,{env:this.config.env,loginType:pt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){return i.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:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;ct(dt,(function(){var r=t.hasLoginState();e.call(t,r)}));var r=this.hasLoginState();e.call(this,r)}},{key:"onLoginStateExpired",value:function(e){ct(ht,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){ct(yt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){ct(vt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;ct(gt,(function(){var r=t.hasLoginState();e.call(t,r)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(i.default.mark((function e(){return i.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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,r=e.accessTokenExpireKey,n=this._cache.getStore(t),o=this._cache.getStore(r);return this._request.oauth.isAccessTokenExpired(n,o)?null:new Et(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new Pe({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 r=e.sent,n=r.data,e.abrupt("return",n&&n.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{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,r=e.accessTokenKey,n=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(r)+"/@@/"+n}}},{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,r=t.loginType,n=t.persistence,o=t.env;o===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,r))}}]),e}(),Bt=function(e,t){t=t||Ye();var r=Pt(this.config.env),n=e.cloudPath,o=e.filePath,a=e.onUploadProgress,i=e.fileType,s=void 0===i?"image":i;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){var i=e.data,u=i.url,c=i.authorization,l=i.token,f=i.fileId,p=i.cosFileId,d=e.requestId,h={key:n,signature:c,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":l};r.upload({url:u,data:h,file:o,name:n,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:d}):t(new Pe({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Lt=function(e,t){t=t||Ye();var r=Pt(this.config.env),n=e.cloudPath;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Ft=function(e,t){var r=e.fileList;if(t=t||Ye(),!r||!Array.isArray(r))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,o=x(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){o.e(s)}finally{o.f()}var i={fileid_list:r};return Pt(this.config.env).send("storage.batchDeleteFile",i).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},Ut=function(e,t){var r=e.fileList;t=t||Ye(),r&&Array.isArray(r)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,o=[],a=x(r);try{for(a.s();!(n=a.n()).done;){var i=n.value;"object"==(0,c.default)(i)?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),o.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?o.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){a.e(u)}finally{a.f()}var s={file_list:o};return Pt(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},Nt=function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileID,e.next=3,Ut.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",r?r(o):new Promise((function(e){e(o)})));case 6:if(a=Pt(this.config.env),s=o.download_url,s=encodeURI(s),r){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=r,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,r){return e.apply(this,arguments)}}(),Rt=function(e,t){var r,n=e.name,o=e.data,a=e.query,i=e.parse,s=e.search,u=e.timeout,c=t||Ye();try{r=o?JSON.stringify(o):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new Pe({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:a,parse:i,search:s,function_name:n,request_data:r};return Pt(this.config.env).send("functions.invokeFunction",l,{timeout:u}).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(i)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new Pe({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},zt={timeout:15e3,persistence:"session"},qt=6e5,Ht={},Qt=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($e.adapter||(this.requestClient=new $e.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=k(k({},zt),t),!0){case this.config.timeout>qt:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=qt;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 r,n=t||$e.adapter.primaryStorage||zt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(e){var t=e.env;nt[t]=new rt(e),ot[t]=new rt(k(k({},e),{},{persistence:"local"}))}(this.config),r=this.config,Tt[r.env]=new kt(r),this.authObj=new Mt(this.config),this.authObj}},{key:"on",value:function(e,t){return ct.apply(this,[e,t])}},{key:"off",value:function(e,t){return ft.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Rt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Ft.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Ut.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Nt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return Bt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Lt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ht[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(i.default.mark((function e(t,r){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Ht[t],n){e.next=3;break}throw new Pe({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,n.invoke(r,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=Xe(e)||{},r=t.adapter,n=t.runtime;r&&($e.adapter=r),n&&($e.runtime=n)}}]),e}(),Wt=new Qt;function Yt(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),o="";for(var a in r)""===o?!n&&(t+="?"):o+="&",o+=a+"="+encodeURIComponent(r[a]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}var Gt=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"get",value:function(e){var t=e.url,r=e.data,n=e.headers,o=e.timeout;return new Promise((function(e,a){Ee.request({url:Yt("https:",t),data:r,method:"GET",header:n,timeout:o,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"post",value:function(e){var t=e.url,r=e.data,n=e.headers,o=e.timeout;return new Promise((function(e,a){Ee.request({url:Yt("https:",t),data:r,method:"POST",header:n,timeout:o,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,r){var n=e.url,o=e.file,a=e.data,i=e.headers,s=e.fileType,u=Ee.uploadFile({url:Yt("https:",n),name:"file",formData:Object.assign({},a),filePath:o,fileType:s,header:i,success:function(e){var r={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(r.statusCode=parseInt(a.success_action_status,10)),t(r)},fail:function(e){r(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Vt={setItem:function(e,t){Ee.setStorageSync(e,t)},getItem:function(e){return Ee.getStorageSync(e)},removeItem:function(e){Ee.removeStorageSync(e)},clear:function(){Ee.clearStorageSync()}},Kt={genAdapter:function(){return{root:{},reqClass:Gt,localStorage:Vt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Wt.useAdapters(Kt);var Jt=Wt,Xt=Jt.init;Jt.init=function(e){e.env=e.spaceId;var t=Xt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var r=t.auth;return t.auth=function(e){var t=r.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var r;t[e]=(r=t[e],function(e){e=e||{};var t=Te(e),n=t.success,o=t.fail,a=t.complete;if(!(n||o||a))return r.call(this,e);r.call(this,e).then((function(e){n&&n(e),a&&a(e)}),(function(e){o&&o(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var $t=Jt;function Zt(e,t){return er.apply(this,arguments)}function er(){return er=(0,f.default)(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="http://".concat(t,":").concat(r,"/system/ping"),e.prev=1,e.next=4,a={url:n,timeout:500},new Promise((function(e,t){Ee.request(k(k({},a),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return o=e.sent,e.abrupt("return",!(!o.data||0!==o.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]])}))),er.apply(this,arguments)}function tr(e,t){return rr.apply(this,arguments)}function rr(){return rr=(0,f.default)(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o1&&void 0!==a[1])||a[1],n=J&&r,!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?o.requestLocal(t):Fe.wrappedRequest(t,o.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(r,n){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",o=e.data&&e.data.message||"request:fail";return n(new Pe({code:t,message:o}))}r({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};r["x-serverless-sign"]=Fe.sign(t,this.config.clientSecret);var n=Be();r["x-client-info"]=encodeURIComponent(JSON.stringify(n));var o=Ie(),a=o.token;return r["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"setupLocalRequest",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u,c,l,f;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Be(),n=Ie(),o=n.token,a=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:r,token:o}),s=this.__dev__&&this.__dev__.debugInfo||{},u=s.address,c=s.servePort,e.next=9,tr(u,c);case 9:return l=e.sent,f=l.address,e.abrupt("return",{url:"http://".concat(f,":").concat(c,"/").concat(nr[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)})));function t(t){return e.apply(this,arguments)}return t}()},{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,r=this,n=e.filePath,o=e.cloudPath,a=e.fileType,i=void 0===a?"image":a,s=e.onUploadProgress;if(!o)throw new Pe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:o}).then((function(e){var o=e.result,a=o.url,u=o.formData,c=o.name;return t=e.result.fileUrl,new Promise((function(e,t){var o=r.adapter.uploadFile({url:a,formData:u,name:c,filePath:n,fileType:i,success:function(r){r&&r.statusCode<400?e(r):t(new Pe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new Pe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return r.reportUploadFile({cloudPath:o})})).then((function(e){return new Promise((function(r,o){e.success?r({success:!0,filePath:n,fileID:t}):o(new Pe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(r).then((function(e){if(e.success)return e.result;throw new Pe({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,r=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new Pe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:r})};return this.request(n).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new Pe({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),ar={init:function(e){var t=new or(e),r={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},ir=O((function(e,t){e.exports=I.enc.Hex}));function sr(){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 ur(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.data,n=t.functionName,o=t.method,a=t.headers,i=t.signHeaderKeys,s=void 0===i?[]:i,c=t.config,l=String(Date.now()),f=sr(),p=Object.assign({},a,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":l,"x-from-function-name":n,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),d=["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),h=e.split("?")||[],g=(0,u.default)(h,2),v=g[0],y=void 0===v?"":v,m=g[1],b=void 0===m?"":m,x=function(e){var t="HMAC-SHA256",r=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),o=Qe(e.body).toString(ir),a="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(r,"\n").concat(o,"\n"),i=Qe(a).toString(ir),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(i,"\n"),u=We(s,e.secretKey).toString(ir);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(r,", Signature=").concat(u)}({path:y,query:b,method:o,headers:p,timestamp:l,body:JSON.stringify(r),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:d.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},p,{Authorization:x})}}function cr(e){var t=e.url,r=e.data,n=e.method,o=void 0===n?"POST":n,a=e.headers,i=void 0===a?{}:a,s=e.timeout;return new Promise((function(e,n){Ee.request({url:t,method:o,data:"object"==(0,c.default)(r)?JSON.stringify(r):r,header:i,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var o=t.data||{},a=o.message,s=o.errMsg,u=o.trace_id;return n(new Pe({code:"SYS_ERR",message:a||s||"request:fail",requestId:u||r}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:r})}})}))}function lr(e,t){var r=e.path,n=e.data,o=e.method,a=void 0===o?"GET":o,i=ur(r,{functionName:"",data:n,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=i.url,u=i.headers;return cr({url:s,data:n,method:a,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new Pe({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new Pe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function fr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),r=t.indexOf("/");if(r<=0)throw new Pe({code:"INVALID_PARAM",message:"fileID不合法"});var n=t.substring(0,r),o=t.substring(r+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var dr=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]:{},r="/ws/function/".concat(e),n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),o=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:sr(),timestamp:""+Date.now()}),a=[r,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return o[e]?"".concat(e,"=").concat(o[e]):null})).filter(Boolean).join("&"),"host:".concat(n)].join("\n"),i=["HMAC-SHA256",Qe(a).toString(ir)].join("\n"),s=We(i,this.config.secretKey).toString(ir),u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(o[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(r,"?").concat(u,"&signature=").concat(s)}}]),e}(),hr=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 dr(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var r=e.name,n=e.data,o=e.async,a=void 0!==o&&o,i=e.timeout,s="POST",u={"x-to-function-name":r};a&&(u["x-function-invoke-type"]="async");var c=ur("/functions/invokeFunction",{functionName:r,data:n,method:s,headers:u,signHeaderKeys:["x-to-function-name"],config:t}),l=c.url,f=c.headers;return cr({url:l,data:n,method:s,headers:f,timeout:i}).then((function(e){var t=0;if(a){var r=e.data||{};t="200"===r.errCode?0:r.errCode,e.data=r.data||{},e.errMsg=r.errMsg}if(0!==t)throw new Pe({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 Pe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,r=e.filePath,n=e.fileType,o=e.formData,a=e.onUploadProgress;return new Promise((function(e,i){var s=Ee.uploadFile({url:t,filePath:r,fileType:n,formData:o,name:"file",success:function(t){t&&t.statusCode<400?e(t):i(new Pe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){i(new Pe({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,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u,c,l,f,p,d;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,o=void 0===n?"":n,a=t.fileType,s=void 0===a?"image":a,u=t.onUploadProgress,"string"===z(o)){e.next=3;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(o=o.trim()){e.next=5;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(o)){e.next=7;break}throw new Pe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,lr({path:"/".concat(o.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,l=c.file_id,f=c.upload_url,p=c.form_data,d=p&&p.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:r,fileType:s,formData:d,onUploadProgress:u}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n=this;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileList,e.abrupt("return",new Promise((function(e,t){(!r||r.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),r.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var o,a=[],i=x(r);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=void 0;"string"!==z(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{u=fr.call(n,s)}catch(e){console.warn(e.errCode,e.errMsg),u=s}a.push({file_id:u,expire:600})}}catch(c){i.e(c)}finally{i.f()}lr({path:"/?download_url",data:{file_list:a},method:"POST"},n.config).then((function(t){var r=t.file_list,o=void 0===r?[]:r;e({fileList:o.map((function(e){return{fileID:pr.call(n,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,e.abrupt("return",Ee.connectSocket({url:this._websocket.signedURL(r,n),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),gr={init:function(e){e.provider="alipay";var t=new hr(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function vr(e){var t,r=e.data;t=Be();var n=JSON.parse(JSON.stringify(r||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){var o=Ie(),a=o.token;a&&(n.uniIdToken=a)}return n}function yr(){return mr.apply(this,arguments)}function mr(){return mr=(0,f.default)(i.default.mark((function e(){var t,r,n,o,a,s,u,c,l=this,f=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=f.length>0&&void 0!==f[0]?f[0]:{},e.next=3,this.__dev__.initLocalNetwork();case 3:return r=this.__dev__,n=r.localAddress,o=r.localPort,a={aliyun:"aliyun",tencent:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],s=this.config.spaceId,u="http://".concat(n,":").concat(o,"/system/check-function"),c="http://".concat(n,":").concat(o,"/cloudfunctions/").concat(t.name),e.abrupt("return",new Promise((function(e,r){Ee.request({method:"POST",url:u,data:{name:t.name,platform:ee,provider:a,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=t||{},n=r.code,o=r.message;return{code:0===n?0:n||"SYS_ERR",message:o||"SYS_ERR"}})).then((function(e){var r=e.code,n=e.message;if(0!==r){switch(r){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(t.name,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(t.name,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(n||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":console.error(n||"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");break;case"SWITCH_TO_CLOUD":break;default:var o="检测本地调试服务出现错误:".concat(n,",请检查网络环境或重启客户端再试");throw console.error(o),new Error(o)}return l._callCloudFunction(t)}return new Promise((function(e,r){var n=vr.call(l,{data:t.data});Ee.request({method:"POST",url:c,data:{provider:a,platform:ee,param:n},timeout:t.timeout,success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.statusCode,o=t.data;return!n||n>=400?r(new Pe({code:o.code||"SYS_ERR",message:o.message||"request:fail"})):e({result:o})},fail:function(e){r(new Pe({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))})));case 5:case"end":return e.stop()}}),e,this)}))),mr.apply(this,arguments)}var br=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],xr=/[\\^$.*+?()[\]{}|]/g,wr=RegExp(xr.source);function Ar(e,t,r){return e.replace(new RegExp((n=t)&&wr.test(n)?n.replace(xr,"\\$&"):n,"g"),r);var n}var Sr={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},kr="_globalUniCloudStatus",Tr="_globalUniCloudSecureNetworkCache__{spaceId}",Pr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.secretType,n=t.uniCloudIns;(0,y.default)(this,e),this.clientType="",this.secretType=r||Sr.NONE,this.uniCloudIns=n;var o,a=this.uniCloudIns.config,i=a.provider,s=a.spaceId;this.provider=i,this.spaceId=s,this.scopedGlobalCache=(o=this.uniCloudIns,ie(Tr.replace("{spaceId}",o.config.spaceId)))}return(0,m.default)(e,[{key:"getSystemInfo",value:function(){return this._systemInfo||(this._systemInfo=De()),this._systemInfo}},{key:"appId",get:function(){return this.getSystemInfo().appId}},{key:"deviceId",get:function(){return this.getSystemInfo().deviceId}},{key:"encryptData",value:function(){var e=(0,f.default)(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.secretType===Sr.NONE?t:this.platformEncryptData(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"decryptResult",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.secretType!==Sr.NONE){e.next=2;break}return e.abrupt("return",t);case 2:return r=t||{},n=r.errCode,o=r.content,e.abrupt("return",n||!o?t:this.secretType===Sr.REQUEST?o:this.platformDecryptResult(t));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"wrapVerifyClientCallFunction",value:function(e){var t=this;return(0,f.default)(i.default.mark((function r(){var n,o,a,s,u,c=arguments;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},o=n.name,a=n.data,s=void 0===a?{}:a,r.next=3,t.prepare();case 3:return r.next=5,t.platformGetSignOption();case 5:return(s=JSON.parse(JSON.stringify(s)))._uniCloudOptions=r.sent,r.next=8,e({name:o,data:s});case 8:if(u=r.sent,r.t0=t.isClientKeyNotFound(u),!r.t0){r.next=19;break}return r.next=13,t.prepare({forceUpdate:!0});case 13:return r.next=15,t.platformGetSignOption();case 15:return s._uniCloudOptions=r.sent,r.next=18,e({name:o,data:s});case 18:u=r.sent;case 19:return r.abrupt("return",u);case 20:case"end":return r.stop()}}),r)})))}},{key:"wrapEncryptDataCallFunction",value:function(e){var t=this;return(0,f.default)(i.default.mark((function r(){var n,o,a,s,u,c,l,f=arguments;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:{},o=n.name,a=n.data,s=void 0===a?{}:a,r.next=3,t.prepare();case 3:return r.next=5,t.encryptData(s);case 5:return u=r.sent,r.next=8,e({name:o,data:u});case 8:if(c=r.sent,!t.isClientKeyNotFound(c)){r.next=21;break}return r.next=12,t.prepare({forceUpdate:!0});case 12:return r.next=14,t.encryptData(s);case 14:return l=r.sent,r.next=17,t.platformGetSignOption();case 17:return s._uniCloudOptions=r.sent,r.next=20,e({name:o,data:l});case 20:c=r.sent;case 21:return r.next=23,t.decryptResult(c.result);case 23:return c.result=r.sent,r.abrupt("return",c);case 25:case"end":return r.stop()}}),r)})))}}]),e}(); /*! MIT License. Copyright 2015-2018 Richard Moore . See LICENSE.txt. */ function Cr(e){return parseInt(e)===e}function Or(e){if(!Cr(e.length))return!1;for(var t=0;t255)return!1;return!0}function Er(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!Or(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(Cr(e.length)&&Or(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function Ir(e){return new Uint8Array(e)}function _r(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var Dr,jr={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},Mr=(Dr="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+Dr[15&n])}return t.join("")}}),Br={16:10,24:12,32:14},Lr=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Fr=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Ur=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],Nr=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Rr=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],zr=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],qr=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Hr=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Qr=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Wr=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],Yr=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],Gr=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Vr=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],Kr=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Jr=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Xr(e){for(var t=[],r=0;r>2,this._Ke[r][t%4]=a[t],this._Kd[e-r][t%4]=a[t];for(var i,s=0,u=o;u>16&255]<<24^Fr[i>>8&255]<<16^Fr[255&i]<<8^Fr[i>>24&255]^Lr[s]<<24,s+=1,8!=o)for(t=1;t>8&255]<<8^Fr[i>>16&255]<<16^Fr[i>>24&255]<<24,t=o/2+1;t>2,l=u%4,this._Ke[c][l]=a[t],this._Kd[e-c][l]=a[t++],u++}for(var c=1;c>24&255]^Vr[i>>16&255]^Kr[i>>8&255]^Jr[255&i]}},{key:"encrypt",value:function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=Xr(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var a=1;a>24&255]^Rr[n[(o+1)%4]>>16&255]^zr[n[(o+2)%4]>>8&255]^qr[255&n[(o+3)%4]]^this._Ke[a][o];n=r.slice()}var i,s=Ir(16);for(o=0;o<4;o++)i=this._Ke[t][o],s[4*o]=255&(Fr[n[o]>>24&255]^i>>24),s[4*o+1]=255&(Fr[n[(o+1)%4]>>16&255]^i>>16),s[4*o+2]=255&(Fr[n[(o+2)%4]>>8&255]^i>>8),s[4*o+3]=255&(Fr[255&n[(o+3)%4]]^i);return s}},{key:"decrypt",value:function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=Xr(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var a=1;a>24&255]^Qr[n[(o+3)%4]>>16&255]^Wr[n[(o+2)%4]>>8&255]^Yr[255&n[(o+1)%4]]^this._Kd[a][o];n=r.slice()}var i,s=Ir(16);for(o=0;o<4;o++)i=this._Kd[t][o],s[4*o]=255&(Ur[n[o]>>24&255]^i>>24),s[4*o+1]=255&(Ur[n[(o+3)%4]>>16&255]^i>>16),s[4*o+2]=255&(Ur[n[(o+2)%4]>>8&255]^i>>8),s[4*o+3]=255&(Ur[255&n[(o+1)%4]]^i);return s}}]),e}(),Zr=function(){function e(t){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new $r(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){if((e=Er(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=Ir(e.length),r=Ir(16),n=0;nNumber.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)}},{key:"setBytes",value:function(e){if(16!=(e=Er(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e}},{key:"increment",value:function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}]),e}(),on=function(){function e(t,r){if((0,y.default)(this,e),!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof nn||(r=new nn(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new $r(t)}return(0,m.default)(e,[{key:"encrypt",value:function(e){for(var t=Er(e,!0),r=0;r16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n0)){e.next=6;break}return e.abrupt("return",(this.userEncryptKey=hn,this.userEncryptKey));case 6:return e.abrupt("return",new Promise((function(e,t){n.getUserCryptoManager().getLatestUserKey({success:function(t){hn=t,r.userEncryptKey=t,e(r.userEncryptKey)},fail:function(e){t(fn(k(k({},cn.GET_ENCRYPT_KEY_FAILED),{},{cause:e})))}})})));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getWxAppId",value:function(){return o.getAccountInfoSync().miniProgram.appId}},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return t=e.sent,r=t.encryptKey,n=t.iv,o=t.version,e.abrupt("return",{verifyClientSign:sn(JSON.stringify({data:JSON.stringify({}),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===De().platform,timestamp:Date.now()}),r,n),encryptKeyId:o,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid});case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getUserEncryptKey();case 2:return r=e.sent,n=r.encryptKey,o=r.iv,a=r.version,s={secretType:this.secretType,encryptKeyId:a,mpWeixinCode:this.scopedGlobalCache.mpWeixinCode,mpWeixinOpenid:this.scopedGlobalCache.mpWeixinOpenid},e.abrupt("return",this.secretType===Sr.RESPONSE?{content:t,_uniCloudOptions:s}:{content:sn(JSON.stringify({data:JSON.stringify(t),appId:this.appId,deviceId:this.deviceId,wxAppId:this.getWxAppId(),simulator:"devtools"===De().platform,timestamp:Date.now()}),n,o),_uniCloudOptions:s});case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.content,e.next=3,this.getUserEncryptKey();case 3:return o=e.sent,a=o.encryptKey,s=o.iv,e.abrupt("return",JSON.parse(function(e,t,r){var o=new Uint8Array(n.base64ToArrayBuffer(e)),a=new Uint8Array(n.base64ToArrayBuffer(t)),i=an.utils.utf8.toBytes(r),s=new an.ModeOfOperation.cbc(a,i),u=an.padding.pkcs7.strip(s.decrypt(o));return an.utils.utf8.fromBytes(u)}(r,a,s)));case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){return!1}}]),r}(Pr);function vn(e){for(var t=["hasClientKey","encryptGetClientKeyPayload","setClientKey","encrypt","decrypt"],r={},n=function(n){var o=t[n];r[o]=function(){for(var t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=e.type,o=e.data,a=e.errCode,i=e.errMsg,s=e.errSubject,u=e.message;"success"===r?t(o):n(fn({errCode:a,errMsg:ln[a]||i||u,errSubject:s}))}])):n(fn({message:"请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"}))}))}},o=0;o0&&void 0!==a[0]?a[0]:{},r=t.forceUpdate,n=void 0!==r&&r,e.t1=!0,e.next=4,this.hasClientKey();case 4:if(e.t2=e.sent,e.t0=e.t1!==e.t2,e.t0){e.next=8;break}e.t0=n;case 8:if(!e.t0){e.next=10;break}return e.abrupt("return",(n&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus===U||!n&&this.scopedGlobalCache.initPromise&&this.scopedGlobalCache.initStatus!==R||(this.scopedGlobalCache.initPromise=this.getAppClientKey(),this.scopedGlobalCache.initPromise.then((function(e){o.scopedGlobalCache.initStatus=N})).catch((function(e){throw o.scopedGlobalCache.initStatus=R,e})),this.scopedGlobalCache.initStatus=U),this.scopedGlobalCache.initPromise));case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"prepare",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n,o=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},r=t.forceUpdate,n=void 0!==r&&r,e.next=3,this.ensureClientKey({forceUpdate:n});case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformGetSignOption",value:function(){var e=(0,f.default)(i.default.mark((function e(){var t,r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify({})});case 2:return t=e.sent,r=t.data,n=t.key,e.abrupt("return",{verifyClientSign:r,encryptKeyId:n});case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"platformEncryptData",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.appUtils.encrypt({provider:this.provider,spaceId:this.spaceId,data:JSON.stringify(t)});case 2:return r=e.sent,n=r.data,o=r.key,a={secretType:this.secretType,encryptKeyId:o},e.abrupt("return",this.secretType===Sr.RESPONSE?{content:t,_uniCloudOptions:a}:{content:n,_uniCloudOptions:a});case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"platformDecryptResult",value:function(){var e=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.content,n=t._uniCloudOptions,o=void 0===n?{}:n,a=o.encryptKeyId,e.next=6,this.appUtils.decrypt({provider:this.provider,spaceId:this.spaceId,data:r,key:a});case 6:return s=e.sent,e.abrupt("return",JSON.parse(s.data));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"isClientKeyNotFound",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.result||{};return 70009===t.errCode&&t.errSubject===un}}]),r}(Pr);function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Sr.REQUEST||t===Sr.RESPONSE||t===Sr.BOTH}function bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.data,n=void 0===r?{}:r;return"app"===ee&&"DCloud-clientDB"===t&&"encryption"===n.redirectTo&&"getAppClientKey"===n.action}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=e.functionName,o=De(),a=o.appId,i=o.uniPlatform,s=o.osName,u=i;"app"===i&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=Z;if(!n)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var o=n.find((function(e){return e.provider===t&&e.spaceId===r}));return o&&o.config}({provider:t,spaceId:r});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var l=c.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var p=function(e,t){for(var r,n,o,a=0;a-1&&(n=i):o=i:r=i}return r||n||o}(f,n);if(!p)return!1;if((l[p]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),fn(cn.APP_INFO_INVALID)}function wn(e){var t=e.functionName,r=e.result,n=e.logPvd;if(J&&this.__dev__.debugLog&&r&&r.requestId){var o=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:r.requestId});console.log("[".concat(n,"-request]").concat(o,"[/").concat(n,"-request]"))}}function An(e){var t=e.callFunction,r=function(r){var n=this,o=r.name;r.data=vr.call(e,{data:r.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],i=mn(r),s=bn(r),u=i||s;return t.call(this,r).then((function(e){return e.errCode=0,!u&&wn.call(n,{functionName:o,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!u&&wn.call(n,{functionName:o,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,r=void 0===t?"":t,n=e.extraInfo,o=void 0===n?{}:n,a=e.formatter,i=void 0===a?[]:a,s=0;s-1||e[t].push(r)},off:function(t,r){e[t]=e[t]||[];var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}}var Pn=["db.Geo","db.command","command.aggregate"];function Cn(e,t){return Pn.indexOf("".concat(e,".").concat(t))>-1}function On(e){switch(z(e)){case"array":return e.map((function(e){return On(e)}));case"object":return e._internalType===Sn||Object.keys(e).forEach((function(t){e[t]=On(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function En(e){return e&&e.content&&e.content.$method}var In=function(){function e(t,r,n){(0,y.default)(this,e),this.content=t,this.prevStage=r||null,this.udb=null,this._database=n}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:On(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=En(e),r=En(e.prevStage);if("aggregate"===t&&"collection"===r||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===En(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=En(e),r=En(e.prevStage);if("aggregate"===t&&"command"===r)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return _n({$method:e,$param:On(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 r=this.getAction(),n=this.getCommand();if(n.$db.push({$method:e,$param:On(t)}),J){var o=n.$db.find((function(e){return"collection"===e.$method})),a=o&&o.$param;a&&1===a.length&&"string"==typeof o.$param[0]&&o.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:r,command:n})}}]),e}();function _n(e,t,r){return kn(new In(e,t,r),{get:function(e,t){var n="db";return e&&e.content&&(n=e.content.$method),Cn(n,t)?_n({$method:t},e,r):function(){return _n({$method:t,$param:On(Array.from(arguments))},e,r)}}})}function Dn(e){var t=e.path,r=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,l.default)(t.map((function(e){return{$method:e}}))),[{$method:r,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}var jn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.uniClient,n=void 0===r?{}:r,o=t.isJQL,a=void 0!==o&&o;(0,y.default)(this,e),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n._isDefault&&(this._dbCallBacks=ie("_globalUniCloudDatabaseCallback")),a||(this.auth=Tn(this._authCallBacks)),this._isJQL=a,Object.assign(this,Tn(this._dbCallBacks)),this.env=kn({},{get:function(e,t){return{$env:t}}}),this.Geo=kn({},{get:function(e,t){return Dn({path:["Geo"],method:t})}}),this.serverDate=Dn({path:[],method:"serverDate"}),this.RegExp=Dn({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 r=this._dbCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var r=this._authCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),r=e.getCommand();if("getTemp"!==r.$db[r.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:r}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}();function Mn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kn(new e(t),{get:function(e,t){return Cn("db",t)?_n({$method:t},null,e):function(){return _n({$method:t,$param:On(Array.from(arguments))},null,e)}}})}var Bn=function(e){(0,d.default)(r,e);var t=T(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,m.default)(r,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,r=e.action,n=e.command,o=e.multiCommand,a=e.queryList;function i(e,t){if(o&&a)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=[];return e.forEach((function(e){!0===e.needLogin?r.push(Rn(t,e.path)):!1===e.needLogin&&n.push(Rn(t,e.path))})),{needLoginPage:r,notNeedLoginPage:n}}function qn(e){return e.split("?")[0].replace(/^\//,"")}function Hn(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function Qn(){return qn(Hn())}function Wn(){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 r=t.list,n=qn(e);return r.some((function(e){return e.pagePath===n}))}var Yn,Gn=!!b.default.uniIdRouter,Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,t=e.pages,r=void 0===t?[]:t,n=e.subPackages,o=void 0===n?[]:n,a=e.uniIdRouter,i=void 0===a?{}:a,s=e.tabBar,u=void 0===s?{}:s,c=i.loginPage,f=i.needLogin,p=void 0===f?[]:f,d=i.resToLogin,h=void 0===d||d,g=zn(r),v=g.needLoginPage,y=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],r=[];return e.forEach((function(e){var n=e.root,o=e.pages,a=void 0===o?[]:o,i=zn(a,n),s=i.needLoginPage,u=i.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),r.push.apply(r,(0,l.default)(u))})),{needLoginPage:t,notNeedLoginPage:r}}(o),x=m.needLoginPage,w=m.notNeedLoginPage;return{loginPage:c,routerNeedLogin:p,resToLogin:h,needLoginPage:[].concat((0,l.default)(v),(0,l.default)(x)),notNeedLoginPage:[].concat((0,l.default)(y),(0,l.default)(w)),loginPageInTabBar:Wn(c,u)}}(),Kn=Vn.loginPage,Jn=Vn.routerNeedLogin,Xn=Vn.resToLogin,$n=Vn.needLoginPage,Zn=Vn.notNeedLoginPage,eo=Vn.loginPageInTabBar;if($n.indexOf(Kn)>-1)throw new Error("Login page [".concat(Kn,'] should not be "needLogin", please check your pages.json'));function to(e){var t=Qn();if("/"===e.charAt(0))return e;var r=e.split("?"),n=(0,u.default)(r,2),o=n[0],a=n[1],i=o.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var c=0;c-1)&&($n.indexOf(t)>-1||Jn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function no(e){var t=e.redirect,r=qn(t),n=qn(Kn);return Qn()!==n&&r!==n}function oo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,r=e.redirect;if(r&&no({redirect:r})){var o=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Kn,r);eo?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var a={navigateTo:n.navigateTo,redirectTo:n.redirectTo,switchTab:n.switchTab,reLaunch:n.reLaunch};setTimeout((function(){a[t]({url:o})}),0)}}function ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){var e,t=Ie(),r=t.token,n=t.tokenExpired;if(r){if(n0)return setTimeout((function(){we(ve.NEED_LOGIN,n)}),0),r.abortLoginPageJump=!0,r;r.autoToLoginPage=!0}return r}function io(){!function(){var e=Hn(),t=ao({url:e}),r=t.abortLoginPageJump,n=t.autoToLoginPage;r||n&&oo({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var r=e[t];n.addInterceptor(r,{invoke:function(e){var t=ao({url:e.url}),n=t.abortLoginPageJump,o=t.autoToLoginPage;return n?e:o?(oo({api:r,redirect:to(e.url)}),!1):e}})},r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=me(ve.NEED_LOGIN);ke().then((function(){var r=Hn();if(r&&no({redirect:r}))return t.length>0?we(ve.NEED_LOGIN,Object.assign({uniIdRedirectUrl:r},e)):void(Kn&&oo({api:"navigateTo",redirect:r}))}))}(r)}))}function uo(e){!function(e){e.onResponse=function(e){be(ve.RESPONSE,e)},e.offResponse=function(e){xe(ve.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){be(ve.NEED_LOGIN,e)},e.offNeedLogin=function(e){xe(ve.NEED_LOGIN,e)},Gn&&(ie(kr).needLoginInit||(ie(kr).needLoginInit=!0,ke().then((function(){io.call(e)})),Xn&&so.call(e)))}(e),function(e){e.onRefreshToken=function(e){be(ve.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){xe(ve.REFRESH_TOKEN,e)}}(e)}var co="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lo=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function fo(){var e,t,r=Ie().token||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=n[1],decodeURIComponent(Yn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Yn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!lo.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 r,n,o="",a=0;a>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var po=O((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach((function(e,r){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+r+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,n){var o=n.onChooseFile,a=n.onUploadProgress;return t.then((function(e){if(o){var t=o(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:r,tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,o=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=r;var a=t.tempFiles,i=a.length,s=0;return new Promise((function(r){for(;s=i)!a.find((function(e){return!e.url&&!e.errMsg}))&&r(t);else{var c=a[n];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,o&&o(e)}}).then((function(e){c.url=e.fileID,n0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,r=e.sizeType,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){n.chooseImage({count:t,sizeType:r,sourceType:s,extension:u,success:function(t){e(i(t,"image"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,r=e.compressed,o=e.maxDuration,s=e.sourceType,u=void 0===s?["album","camera"]:s,c=e.extension;return new Promise((function(e,s){n.chooseVideo({camera:t,compressed:r,maxDuration:o,sourceType:u,extension:c,success:function(t){var r=t.tempFilePath,n=t.duration,o=t.size,a=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[r],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:r,size:o,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:n,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,r=e.extension;return new Promise((function(e,s){var u=n.chooseFile;if("undefined"!=typeof o&&"function"==typeof o.chooseMessageFile&&(u=o.chooseMessageFile),"function"!=typeof u)return s({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});u({type:"all",count:t,extension:r,success:function(t){e(i(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),ho=C(po),go={auto:"auto",onready:"onready",manual:"manual"};function vo(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(r){t.push(e[r])})),t}),(function(t,r){if(e.loadtime!==go.manual){for(var n=!1,o=[],a=2;a0&&void 0!==arguments[0]?arguments[0]:{},r=t.getone,n=void 0!==r&&r,o=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var r=t.result,a=r.data,i=r.count;e.getcount&&(e.mixinDatacomPage.count=i),e.mixinDatacomHasMore=a.length0&&void 0!==arguments[0]?arguments[0]:{};n=n||{},r="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var o=n.action||this.action;o&&(r=r.action(o));var a=n.collection||this.collection;r=Array.isArray(a)?(t=r).collection.apply(t,(0,l.default)(a)):r.collection(a);var i=n.where||this.where;i&&Object.keys(i).length&&(r=r.where(i));var s=n.field||this.field;s&&(r=r.field(s));var u=n.foreignKey||this.foreignKey;u&&(r=r.foreignKey(u));var c=n.groupby||this.groupby;c&&(r=r.groupBy(c));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var p=n.orderby||this.orderby;p&&(r=r.orderBy(p));var d=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,h=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,v=void 0!==n.gettree?n.gettree:this.gettree,y=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,m={getCount:g},b={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return v&&(m.getTree=b),y&&(m.getTreePath=b),r=r.skip(h*(d-1)).limit(h).get(m),r}}}}function yo(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=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,c.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);var o=r,a=o.customUI,s=o.loadingOptions,u=o.errorOptions,l=o.parseSystemError,p=!a;return new Proxy({},{get:function(o,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,r=e.interceptorName,n=e.getCallbackArgs;return(0,f.default)(i.default.mark((function e(){var o,a,s,u,c,l,f=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(o=f.length,a=new Array(o),s=0;s0&&void 0!==c[0]?c[0]:{},r=t.title,o=t.content,a=t.showCancel,s=t.cancelText,u=t.confirmText,e.abrupt("return",new Promise((function(e,t){n.showModal({title:r,content:o,showCancel:a,cancelText:s,confirmText:u,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:P,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 33:if(C=o.sent,O=C.confirm,!u.retry||!O){o.next=37;break}return o.abrupt("return",d.apply(void 0,v));case 37:throw E=new Pe({subject:w,code:A,message:S,requestId:h.requestId}),E.detail=h.result,we(ve.RESPONSE,{type:ye.CLOUD_OBJECT,content:E}),E;case 39:return o.abrupt("return",(we(ve.RESPONSE,{type:ye.CLOUD_OBJECT,content:h.result}),h.result));case 40:case"end":return o.stop()}}),o,null,[[5,11]])})));function d(){return o.apply(this,arguments)}return d}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.params;return{objectName:t,methodName:a,params:r}}})}})}}function mo(e){return ie(Tr.replace("{spaceId}",e.config.spaceId))}function bo(){return xo.apply(this,arguments)}function xo(){return xo=(0,f.default)(i.default.mark((function e(){var t,r,o,a,s,u,c,l=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},r=t.openid,o=t.callLoginByWeixin,a=void 0!==o&&o,s=mo(this),"mp-weixin"===ee){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(ee,"`"));case 4:if(!r||!a){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!r){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=r,{}));case 8:return e.next=10,new Promise((function(e,t){n.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return u=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:u,callLoginByWeixin:a});case 14:return s.mpWeixinCode=u,e.abrupt("return",{code:u});case 16:case"end":return e.stop()}}),e,this)}))),xo.apply(this,arguments)}function wo(e){return Ao.apply(this,arguments)}function Ao(){return Ao=(0,f.default)(i.default.mark((function e(t){var r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=mo(this),e.abrupt("return",(r.initPromise||(r.initPromise=bo.call(this,t).then((function(e){return e})).catch((function(e){throw delete r.initPromise,e}))),r.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Ao.apply(this,arguments)}function So(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.openid,n=t.callLoginByWeixin,o=void 0!==n&&n;return wo.call(e,{openid:r,callLoginByWeixin:o})}}function ko(e){!function(e){Me=e}(e)}function To(e){var t={getSystemInfo:n.getSystemInfo,getPushClientId:n.getPushClientId};return function(r){return new Promise((function(n,o){t[e](k(k({},r),{},{success:function(e){n(e)},fail:function(e){o(e)}}))}))}}var Po=function(e){(0,d.default)(r,e);var t=T(r);function r(){var e;return(0,y.default)(this,r),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(r,[{key:"init",value:function(){var e=this;return Promise.all([To("getSystemInfo")(),To("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,u.default)(t,2),n=r[0];n=void 0===n?{}:n;var o=n.appId,a=r[1];a=void 0===a?{}:a;var i=a.cid;if(!o)throw new Error("Invalid appId, please check the manifest.json file");if(!i)throw new Error("Invalid push client id");e._appId=o,e._pushClientId=i,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,f.default)(i.default.mark((function e(){return i.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)})));function t(){return e.apply(this,arguments)}return t}()},{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,r=t.action,n=t.messageId,o=t.message;this._payloadQueue.push({action:r,messageId:n,message:o}),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,r=e.messageId,n=e.message;"end"===t?this._end({messageId:r,message:n}):"message"===t&&this._appendMessage({messageId:r,message:n})}},{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(){n.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){n.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")}}]),r}(V);function Co(e){return Oo.apply(this,arguments)}function Oo(){return Oo=(0,f.default)(i.default.mark((function e(t){var r,n,o,a,s,u,c,l,f,p,d;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(J){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if("app"===ee&&(r=De(),n=r.osName,o=r.osVersion,"ios"===n&&function(e){if(!e||"string"!=typeof e)return 0;var t=e.match(/^(\d+)./);return t&&t[1]?parseInt(t[1]):0}(o)>=14&&console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)")),a=t.__dev__,a.debugInfo){e.next=6;break}return e.abrupt("return");case 6:return s=a.debugInfo,u=s.address,c=s.servePort,e.next=11,tr(u,c);case 11:if(l=e.sent,f=l.address,!f){e.next=15;break}return e.abrupt("return",(a.localAddress=f,void(a.localPort=c)));case 15:if(p=console["app"===ee?"error":"warn"],d="","remote"===a.debugInfo.initialLaunchType?(a.debugInfo.forceRemote=!0,d="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。"):d="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。",d+="\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数","web"===ee&&(d+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),0===ee.indexOf("mp-")&&(d+="\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"),a.debugInfo.forceRemote){e.next=19;break}throw new Error(d);case 19:p(d);case 20:case"end":return e.stop()}}),e)}))),Oo.apply(this,arguments)}function Eo(e){e._initPromiseHub||(e._initPromiseHub=new G({createPromise:function(){var t,r=Promise.resolve();t=1,r=new Promise((function(e){setTimeout((function(){e()}),t)}));var n=e.auth();return r.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}var Io={tcb:$t,tencent:$t,aliyun:Ne,private:ar,dcloud:ar,alipay:gr},_o=new(function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"init",value:function(e){var t={},r=Io[e.provider];if(!r)throw new Error("未提供正确的provider参数");return t=r.init(e),J&&function(e){if(J){var t={};e.__dev__=t,t.debugLog=J&&("web"===ee&&navigator.userAgent.indexOf("HBuilderX")>0||"app"===ee||"mp-harmony"===ee);var r=te;r&&!r.code&&(t.debugInfo=r);var n=new G({createPromise:function(){return Co(e)}});t.initLocalNetwork=function(){return n.exec()}}}(t),Eo(t),An(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 r=Mn(Bn,{uniClient:e});return this._database=r,r},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var r=Mn(Bn,{uniClient:e,isJQL:!0});return this._databaseForJQL=r,r}}(t),function(e){e.getCurrentUserInfo=fo,e.chooseAndUploadFile=ho.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return vo(e)}}),e.SSEChannel=Po,e.initSecureNetworkByWeixin=So(e),e.setCustomClientInfo=ko,e.importObject=yo(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var r=t[e];t[e]=function(){return r.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(r){var n=this,o=!1;if("callFunction"===t){var a=r&&r.type||F.DEFAULT;o=a!==F.DEFAULT}var i="callFunction"===t&&!o,s=this._initPromiseHub.exec();r=r||{};var u=Te(r),c=u.success,l=u.fail,f=u.complete,p=s.then((function(){return o?Promise.resolve():pe(de(t,"invoke"),r)})).then((function(){return e.call(n,r)})).then((function(e){return o?Promise.resolve(e):pe(de(t,"success"),e).then((function(){return pe(de(t,"complete"),e)})).then((function(){return i&&we(ve.RESPONSE,{type:ye.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return o?Promise.reject(e):pe(de(t,"fail"),e).then((function(){return pe(de(t,"complete"),e)})).then((function(){return we(ve.RESPONSE,{type:ye.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(c||l||f))return p;p.then((function(e){c&&c(e),f&&f(e),i&&we(ve.RESPONSE,{type:ye.CLOUD_FUNCTION,content:e})}),(function(e){l&&l(e),f&&f(e),i&&we(ve.RESPONSE,{type:ye.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=_o,function(){var e=re,r={};if(e&&1===e.length)r=e[0],t.uniCloud=_o=_o.init(r),_o._isDefault=!0;else{var o,a=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];o=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":ne?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",a.forEach((function(e){_o[e]=function(){return console.error(o),Promise.reject(new Pe({code:"SYS_ERR",message:o}))}}))}if(Object.assign(_o,{get mixinDatacom(){return vo(_o)}}),uo(_o),_o.addInterceptor=le,_o.removeInterceptor=fe,_o.interceptObject=he,J&&"web"===ee&&(window.uniCloud=_o),"app"===ee&&(n.__uniCloud=_o),"app"===ee||"web"===ee){var i=se();i.uniCloud=_o,i.UniCloudError=Pe}}();var Do=_o;t.default=Do}).call(this,r(3),r(2)["default"],r(1)["default"])},function(e,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(16);function o(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&&n(e,t)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(13)["default"],o=r(536);function a(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){var n=r(539),o=r(16),a=r(541),i=r(15);function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return i(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t){function r(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={pages:[{path:"pages/about/index",style:{navigationBarTitleText:"工具",navigationStyle:"custom"}},{path:"pages/user/index",style:{navigationBarTitleText:"我的"}},{path:"pages/user/userAgreement",style:{navigationBarTitleText:""}},{path:"pages/course/videovip",style:{navigationBarTitleText:""}},{path:"pages/healthTest/healthTest",style:{navigationBarTitleText:"关于"}},{path:"pages/auth/login",style:{navigationBarTitleText:"登录"}}],subPackages:[{root:"pages_index",pages:[{path:"testDetails",style:{navigationBarTitleText:"自测",enablePullDownRefresh:!1}},{path:"test",style:{navigationBarTitleText:"自测",enablePullDownRefresh:!1}},{path:"patient",style:{navigationBarTitleText:"就诊人管理",enablePullDownRefresh:!1}},{path:"addEditPatient",style:{navigationBarTitleText:"新增就诊人",enablePullDownRefresh:!1}},{path:"testResult",style:{navigationBarTitleText:"新增就诊人",enablePullDownRefresh:!1}},{path:"voice",style:{navigationBarTitleText:"声音采集",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#ffffff",navigationBarTextStyle:"black","app-plus":{bounce:"none"}}},{path:"voiceItem",style:{navigationBarTitleText:"声音录制",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#ffffff",navigationBarTextStyle:"black","app-plus":{bounce:"none"}}},{path:"voiceList",style:{navigationBarTitleText:"声音录制",enablePullDownRefresh:!1,navigationBarBackgroundColor:"#ffffff",navigationBarTextStyle:"black","app-plus":{bounce:"none"}}}]},{root:"pages_manage",pages:[{path:"login",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!1}},{path:"index",style:{navigationBarTitleText:"数据",enablePullDownRefresh:!1}},{path:"dataDetails",style:{navigationBarTitleText:"课程数据详情",enablePullDownRefresh:!1}},{path:"statistic",style:{navigationBarTitleText:"课程统计",enablePullDownRefresh:!1}},{path:"manageDataDetail",style:{navigationBarTitleText:"销售详情",enablePullDownRefresh:!1}}]},{root:"pages_managedata",pages:[{path:"coursedetail",style:{navigationBarTitleText:"课程详情",enablePullDownRefresh:!1}},{path:"vipdetail",style:{navigationBarTitleText:"会员详情",enablePullDownRefresh:!1}},{path:"userInfo",style:{navigationBarTitleText:"用户信息",enablePullDownRefresh:!1}},{path:"editUser",style:{navigationBarTitleText:"设置",enablePullDownRefresh:!1}},{path:"lableSetup",style:{navigationBarTitleText:"标签设置",enablePullDownRefresh:!1}},{path:"about",style:{navigationBarTitleText:"关于我们",enablePullDownRefresh:!1}},{path:"users",style:{navigationBarTitleText:"审核销售",enablePullDownRefresh:!1}},{path:"managedetail",style:{navigationBarTitleText:"审核销售",enablePullDownRefresh:!1}},{path:"exprotList",style:{navigationBarTitleText:"审核列表",enablePullDownRefresh:!1}},{path:"saleInfo",style:{navigationBarTitleText:"员工详情",enablePullDownRefresh:!1}},{path:"changeVip",style:{navigationBarTitleText:"更换会员归属",enablePullDownRefresh:!1}}]},{root:"pages_course",pages:[{path:"reward",style:{navigationBarTitleText:"领取奖励",enablePullDownRefresh:!1}},{path:"H5reward",style:{navigationBarTitleText:"领取奖励",enablePullDownRefresh:!1}},{path:"becomeVIP",style:{navigationBarTitleText:"注册会员",enablePullDownRefresh:!1}},{path:"becomeSale",style:{navigationBarTitleText:"注册销售",enablePullDownRefresh:!1}},{path:"webview",style:{navigationBarTitleText:"授权登录",enablePullDownRefresh:!1}},{path:"videovip",style:{navigationBarTitleText:"看课详情",enablePullDownRefresh:!1}},{path:"video",style:{navigationBarTitleText:"",enablePullDownRefresh:!1,navigationStyle:"custom"}},{path:"learn",style:{navigationBarTitleText:"健康生活方式指导",enablePullDownRefresh:!1}},{path:"teacherClassroom",style:{navigationBarTitleText:"名师课堂",enablePullDownRefresh:!1}},{path:"feedback",style:{navigationBarTitleText:"投诉反馈",scrollIndicator:"none","app-plus":{bounce:"none",softinputMode:"adjustResize"}}}]},{root:"pages_tool",pages:[{path:"pages/historyToday/historyToday",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"历史今天",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/historyToday/details",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"详细信息",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/pinyin/index",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"查拼音",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/christmasHat/index/index",style:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",navigationBarTitleText:"圣诞帽",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/gojuuonn/gojuuonn",style:{navigationBarBackgroundColor:"#e4bfb6",navigationBarTextStyle:"white",navigationBarTitleText:"五十音图",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/figure/figure",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"身材计算",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/cand/index",style:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",navigationBarTitleText:"程序员黄历",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/game/game",style:{navigationBarBackgroundColor:"#1e6d04",navigationBarTextStyle:"white",navigationBarTitleText:"摇骰子",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/support/support",style:{navigationBarTitleText:"关于",navigationBarBackgroundColor:"#FFF",navigationBarTextStyle:"black",backgroundColor:"#fff",backgroundTextStyle:"dark",usingComponents:{}}},{path:"pages/christmasHat/combine/combine",style:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",navigationBarTitleText:"圣诞帽",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/christmasHat/imageeditor/imageeditor",style:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",navigationBarTitleText:"圣诞帽",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/qrcode/index",style:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black",navigationBarTitleText:"二维码生成器",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/IP/IP",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"IP地址查询",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/MobileHome/MobileHome",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"手机归属地",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}},{path:"pages/codePars/codePars",style:{navigationBarBackgroundColor:"#3677f0",navigationBarTextStyle:"white",navigationBarTitleText:"标准电码查询",backgroundColor:"#eeeeee",backgroundTextStyle:"light",usingComponents:{}}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#ffffff",backgroundColor:"#F8F8F8"},tabBar:{color:"#666666",selectedColor:"#008FD3",borderStyle:"white",backgroundColor:"#ffffff",height:"64px",fontSize:"12px",iconWidth:"18px",spacing:"4px",list:[{pagePath:"pages/about/index",iconPath:"/static/tabbar/health.png",selectedIconPath:"/static/tabbar/health_sel.png",text:"工具"},{pagePath:"pages/user/index",iconPath:"/static/tabbar/my.png",selectedIconPath:"/static/tabbar/my_sel.png",text:"我的"}]},uniIdRouter:{}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={appid:"__UNI__F0B9C4D"};t.default=n},,,,,,,,,,,,,,,,,function(e,t){e.exports={seionn:[{hiragana:"あ",katakana:"ア",roomaji:"a"},{hiragana:"い",katakana:"イ",roomaji:"i"},{hiragana:"う",katakana:"ウ",roomaji:"u"},{hiragana:"え",katakana:"エ",roomaji:"e"},{hiragana:"お",katakana:"オ",roomaji:"o"},{hiragana:"か",katakana:"カ",roomaji:"ka"},{hiragana:"き",katakana:"キ",roomaji:"ki"},{hiragana:"く",katakana:"ク",roomaji:"ku"},{hiragana:"け",katakana:"ケ",roomaji:"ke"},{hiragana:"こ",katakana:"コ",roomaji:"ko"},{hiragana:"さ",katakana:"サ",roomaji:"sa"},{hiragana:"し",katakana:"シ",roomaji:"shi"},{hiragana:"す",katakana:"ス",roomaji:"su"},{hiragana:"せ",katakana:"セ",roomaji:"se"},{hiragana:"そ",katakana:"ソ",roomaji:"so"},{hiragana:"た",katakana:"タ",roomaji:"ta"},{hiragana:"ち",katakana:"チ",roomaji:"chi"},{hiragana:"つ",katakana:"ツ",roomaji:"tsu"},{hiragana:"て",katakana:"テ",roomaji:"te"},{hiragana:"と",katakana:"ト",roomaji:"to"},{hiragana:"な",katakana:"ナ",roomaji:"na"},{hiragana:"に",katakana:"ニ",roomaji:"ni"},{hiragana:"ぬ",katakana:"ヌ",roomaji:"nu"},{hiragana:"ね",katakana:"ネ",roomaji:"ne"},{hiragana:"の",katakana:"ノ",roomaji:"no"},{hiragana:"は",katakana:"ハ",roomaji:"ha"},{hiragana:"ひ",katakana:"ヒ",roomaji:"hi"},{hiragana:"ふ",katakana:"フ",roomaji:"fu"},{hiragana:"へ",katakana:"ヘ",roomaji:"he"},{hiragana:"ほ",katakana:"ホ",roomaji:"ho"},{hiragana:"ま",katakana:"マ",roomaji:"ma"},{hiragana:"み",katakana:"ミ",roomaji:"mi"},{hiragana:"む",katakana:"ム",roomaji:"mu"},{hiragana:"め",katakana:"メ",roomaji:"me"},{hiragana:"も",katakana:"モ",roomaji:"mo"},{hiragana:"や",katakana:"ヤ",roomaji:"ya"},{},{hiragana:"ゆ",katakana:"ユ",roomaji:"yu"},{},{hiragana:"よ",katakana:"ヨ",roomaji:"yo"},{hiragana:"ら",katakana:"ラ",roomaji:"ra"},{hiragana:"り",katakana:"リ",roomaji:"ri"},{hiragana:"る",katakana:"ル",roomaji:"ru"},{hiragana:"れ",katakana:"レ",roomaji:"re"},{hiragana:"ろ",katakana:"ロ",roomaji:"ro"},{hiragana:"わ",katakana:"ワ",roomaji:"wa"},{},{},{},{hiragana:"を",katakana:"ヲ",roomaji:"wo"},{hiragana:"ん",katakana:"ン",roomaji:"n"}],dakuonn:[{hiragana:"が",katakana:"ガ",roomaji:"ga"},{hiragana:"ぎ",katakana:"ギ",roomaji:"gi"},{hiragana:"ぐ",katakana:"グ",roomaji:"gu"},{hiragana:"げ",katakana:"ゲ",roomaji:"ge"},{hiragana:"ご",katakana:"ゴ",roomaji:"go"},{hiragana:"ざ",katakana:"ザ",roomaji:"za"},{hiragana:"じ",katakana:"ジ",roomaji:"ji"},{hiragana:"ず",katakana:"ズ",roomaji:"zu"},{hiragana:"ぜ",katakana:"ゼ",roomaji:"ze"},{hiragana:"ぞ",katakana:"ゾ",roomaji:"zo"},{hiragana:"だ",katakana:"ダ",roomaji:"da"},{hiragana:"ぢ",katakana:"ヂ",roomaji:"ji"},{hiragana:"づ",katakana:"ヅ",roomaji:"zu"},{hiragana:"で",katakana:"デ",roomaji:"de"},{hiragana:"ど",katakana:"ド",roomaji:"do"},{hiragana:"ば",katakana:"バ",roomaji:"ba"},{hiragana:"び",katakana:"ビ",roomaji:"bi"},{hiragana:"ぶ",katakana:"ブ",roomaji:"bu"},{hiragana:"べ",katakana:"ベ",roomaji:"be"},{hiragana:"ぼ",katakana:"ボ",roomaji:"bo"},{hiragana:"ぱ",katakana:"パ",roomaji:"pa"},{hiragana:"ぴ",katakana:"ピ",roomaji:"pi"},{hiragana:"ぷ",katakana:"プ",roomaji:"pu"},{hiragana:"ぺ",katakana:"ペ",roomaji:"pe"},{hiragana:"ぽ",katakana:"ポ",roomaji:"po"}],youonn:[{hiragana:"きゃ",katakana:"キャ",roomaji:"kya"},{hiragana:"きゅ",katakana:"キュ",roomaji:"kyu"},{hiragana:"きょ",katakana:"キョ",roomaji:"kyo"},{hiragana:"しゃ",katakana:"シャ",roomaji:"sha"},{hiragana:"しゅ",katakana:"シュ",roomaji:"shu"},{hiragana:"しょ",katakana:"ショ",roomaji:"sho"},{hiragana:"ちゃ",katakana:"チャ",roomaji:"cha"},{hiragana:"ちゅ",katakana:"チュ",roomaji:"chu"},{hiragana:"ちょ",katakana:"チョ",roomaji:"cho"},{hiragana:"にゃ",katakana:"ニャ",roomaji:"nya"},{hiragana:"にゅ",katakana:"ニュ",roomaji:"nyu"},{hiragana:"にょ",katakana:"ニョ",roomaji:"nyo"},{hiragana:"ひゃ",katakana:"ヒャ",roomaji:"hya"},{hiragana:"ひゅ",katakana:"ヒュ",roomaji:"hyu"},{hiragana:"ひょ",katakana:"ヒョ",roomaji:"hyo"},{hiragana:"みゃ",katakana:"ミャ",roomaji:"mya"},{hiragana:"みゅ",katakana:"ミュ",roomaji:"myu"},{hiragana:"みょ",katakana:"ミョ",roomaji:"myo"},{hiragana:"りゃ",katakana:"リャ",roomaji:"rya"},{hiragana:"りゅ",katakana:"リュ",roomaji:"ryu"},{hiragana:"りょ",katakana:"リョ",roomaji:"ryo"},{hiragana:"ぎゃ",katakana:"ギャ",roomaji:"gya"},{hiragana:"ぎゅ",katakana:"ギュ",roomaji:"gyu"},{hiragana:"ぎょ",katakana:"ギョ",roomaji:"gyo"},{hiragana:"じゃ",katakana:"ジャ",roomaji:"ja"},{hiragana:"じゅ",katakana:"ジュ",roomaji:"ju"},{hiragana:"じょ",katakana:"ジョ",roomaji:"jo"},{hiragana:"びゃ",katakana:"ビャ",roomaji:"bya"},{hiragana:"びゅ",katakana:"ビュ",roomaji:"bya"},{hiragana:"びょ",katakana:"ビョ",roomaji:"byo"},{hiragana:"ぴゃ",katakana:"ピャ",roomaji:"pya"},{hiragana:"ぴゅ",katakana:"ピュ",roomaji:"pyu"},{hiragana:"ぴょ",katakana:"ピョ",roomaji:"pyo"}]}},,,,,,,,,,,,,,,,,function(e,t){e.exports={activities:[{name:"写单元测试",good:"写单元测试将减少出错",bad:"写单元测试会降低你的开发效率"},{name:"洗澡",good:"你几天没洗澡了?",bad:"会把设计方面的灵感洗掉",weekend:!0},{name:"锻炼一下身体",good:"强身健体",bad:"能量没消耗多少,吃得却更多",weekend:!0},{name:"抽烟",good:"抽烟有利于提神,增加思维敏捷",bad:"除非你活够了,死得早点没关系",weekend:!0},{name:"白天上线",good:"今天白天上线是安全的",bad:"可能导致灾难性后果"},{name:"重构",good:"代码质量得到提高",bad:"你很有可能会陷入泥潭"},{name:"使用%t",good:"你看起来更有品位",bad:"别人会觉得你在装逼"},{name:"跳槽",good:"该放手时就放手",bad:"鉴于当前,你的下一份工作未必比现在强"},{name:"招人",good:"你面前这位有成为牛人的潜质",bad:"这人会写程序吗?"},{name:"面试",good:"面试官今天心情很好",bad:"面试官不爽,会拿你出气"},{name:"提交辞职申请",good:"巴不得你赶快滚蛋",bad:"鉴于当前,你的下一份工作未必比现在强"},{name:"申请加薪",good:"老板今天心情很好",bad:"公司正在考虑裁员"},{name:"晚上加班",good:"晚上是程序员精神最好的时候",bad:"你白天已经筋疲力尽了",weekend:!0},{name:"在妹子面前吹牛",good:"改善你矮穷挫的形象",bad:"会被识破",weekend:!0},{name:"撸管",good:"避免缓冲区溢出",bad:"强撸灰飞烟灭",weekend:!0},{name:"浏览成人网站",good:"重拾对生活的信心",bad:"你会心神不宁",weekend:!0},{name:'命名变量"%v"',good:"",bad:""},{name:"写超过%l行的方法",good:"你的代码组织的很好,长一点没关系",bad:"你的代码将混乱不堪,你自己都看不懂"},{name:"提交代码",good:"遇到冲突的几率是最低的",bad:"你遇到的一大堆冲突会让你觉得烦"},{name:"代码复审",good:"发现重要问题的几率大大增加",bad:"你什么问题都发现不了,白白浪费时间"},{name:"开会",good:"写代码之余放松一下打个盹,有益健康",bad:"小心被扣屎盆子背黑锅"},{name:"打DOTA",good:"你将有如神助",bad:"你会被虐的很惨",weekend:!0},{name:"晚上上线",good:"晚上是程序员精神最好的时候",bad:"你白天已经筋疲力尽了"},{name:"修复BUG",good:"你今天对BUG的嗅觉大大提高",bad:"新产生的BUG将比修复的更多"},{name:"设计评审",good:"设计评审会议将变成头脑风暴",bad:"人人筋疲力尽,评审就这么过了"},{name:"需求评审",good:"",bad:""},{name:"上微博",good:"今天发生的事不能错过",bad:"今天的微博充满负能量",weekend:!0},{name:"上AB站",good:"还需要理由吗?",bad:"满屏兄贵亮瞎你的眼",weekend:!0},{name:"玩FlappyBird",good:"今天破纪录的几率很高",bad:"除非你想玩到把手机砸了",weekend:!0}],tools:["Eclipse写程序","MSOffice写文档","记事本写程序","Windows8","Linux","MacOS","IE","Android设备","iOS设备"],varNames:["jieguo","huodong","pay","expire","zhangdan","every","free","i1","a","virtual","ad","spider","mima","pass","ui"],drinks:["水","茶","红茶","绿茶","咖啡","奶茶","可乐","鲜奶","豆奶","果汁","果味汽水","苏打水","运动饮料","酸奶","酒"],directions:["北方","东北方","东方","东南方","南方","西南方","西方","西北方"]}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(t){!function(){var r,n,o,a,i,s,u=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],c=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],l=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],f=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],p=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],d=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],h=[],g=[],v=[],y=[],m=[],b=2;function x(e,t){var r;e>t&&(r=e,e=t,t=r),r=t,r*=t,r+=t,r>>=1,y[r+=e]=1}function w(e,t){var r;for(v[e+n*t]=1,r=-2;r<2;r++)v[e+r+n*(t-2)]=1,v[e-2+n*(t+r+1)]=1,v[e+2+n*(t+r)]=1,v[e+r+1+n*(t+2)]=1;for(r=0;r<2;r++)x(e-1,t+r),x(e+1,t-r),x(e-r,t-1),x(e+r,t+1)}function A(e){for(;e>=255;)e=((e-=255)>>8)+(255&e);return e}var S=[];function k(e,t,r,n){var o,a,i;for(o=0;ot&&(r=e,e=t,t=r),r=t,r+=t*t,r>>=1,y[r+=e]}function P(e){var t,r,o,a;switch(e){case 0:for(r=0;r>1&1,t=0;t=5&&(r+=3+m[t]-5);for(t=3;te||3*m[t-3]>=4*m[t]||3*m[t+3]>=4*m[t])&&(r+=40);return r}function O(){var e,t,r,o,a,i=0,s=0;for(t=0;tn*n;)u-=n*n,c++;for(i+=10*c,e=0;e1)for(E=u[r],m=n-7;;){for(t=n-7;t>E-3&&(w(t,m),!(t6)for(E=c[r-7],C=17,t=0;t<6;t++)for(m=0;m<3;m++,C--)1&(C>11?r>>C-12:E>>C)?(v[5-t+n*(2-m+n-11)]=1,v[2-m+n-11+n*(5-t)]=1):(x(5-t,2-m+n-11),x(2-m+n-11,5-t));for(m=0;m=(t=i*(o+a)+a)-2&&(I=t-2,r>9&&I--),_=I,r>9){for(h[_+2]=0,h[_+3]=0;_--;)E=h[_],h[_+3]|=255&E<<4,h[_+2]=E>>4;h[2]|=255&I<<4,h[1]=I>>4,h[0]=64|I>>12}else{for(h[_+1]=0,h[_+2]=0;_--;)E=h[_],h[_+2]|=255&E<<4,h[_+1]=E>>4;h[1]|=255&I<<4,h[0]=64|I>>4}for(_=I+3-(r<10);_0;D--)S[D]=S[D]?S[D-1]^d[A(p[S[D]]+_)]:S[D-1];S[0]=d[A(p[S[0]]+_)]}for(_=0;_<=s;_++)S[_]=p[S[_]];for(C=t,m=0,_=0;_>=1)1&m&&(v[n-1-C+8*n]=1,C<6?v[8+n*C]=1:v[8+n*(C+1)]=1);for(C=0;C<7;C++,m>>=1)1&m&&(v[8+n*(n-7+C)]=1,C?v[6-C+8*n]=1:v[7+8*n]=1);return v}(e)},draw:function(e,r,o,a,i){if(b=i||b,r=r||E){var s=Math.min(o,a),u=this.getFrame(e),c=t.createContext(),l=Math.round(s/(n+8)),f=l*(n+8),p=Math.floor((s-f)/2);s=f,c.clearRect(0,0,o,o),c.setFillStyle("#000000");for(var d=0;d0&&(t.isScrollBody&&r<=0||!t.isScrollBody&&(r<=0||r<=t.optDown.startTop&&r===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){if(t.startAngle||(t.startAngle=t.getAngle(t.lastPoint,n)),t.startAngle0&&n.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var a=n.y-t.lastPoint.y;t.downHight0?a*t.optDown.outOffsetRate:a),t.downHight=Math.round(t.downHight);var i=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,i,t.downHight)}t.lastPoint=n}},a.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var r=this.getAngle(this.getPoint(e),this.startPoint);r>80&&this.triggerUpScroll(!0)}}},a.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},a.prototype.getAngle=function(e,t){var r=Math.abs(e.x-t.x),n=Math.abs(e.y-t.y),o=Math.sqrt(r*r+n*n),a=0;return 0!==o&&(a=Math.asin(n/o)/Math.PI*180),a},a.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},a.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},a.prototype.showDownLoadingCall=function(e){this.optDown.showLoading&&this.optDown.showLoading(this,e),this.optDown.afterLoading&&this.optDown.afterLoading(this,e)},a.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},a.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void e.stopPullDownRefresh();var t=this,r=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},n=0;t.optDown.beforeEndDownScroll&&(n=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(n=0)),"number"===typeof n&&n>0?setTimeout(r,n):r()},a.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},a.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},a.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},a.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},!e.optUp.textColor&&e.hasColor(e.optUp.bgColor)&&(e.optUp.textColor="#fff"),e.extendUpScroll(e.optUp),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},a.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},a.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},a.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},a.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},a.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},a.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},a.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},a.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},a.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},a.prototype.setPageNum=function(e){this.optUp.page.num=e-1},a.prototype.setPageSize=function(e){this.optUp.page.size=e},a.prototype.endByPage=function(e,t,r){var n;this.optUp.use&&null!=t&&(n=this.optUp.page.num=a)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}break;default:return e}})),s=t[n];n()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,a.default)(e)&&!S.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(A.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(A.url)},hex:function(e){return"string"===typeof e&&!!e.match(A.hex)}};function k(e,t,r,n,o){if(e.required&&void 0===t)x(e,t,r,n,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;i.indexOf(s)>-1?S[s](t)||n.push(f(o.messages.types[s],e.fullField,e.type)):s&&(0,a.default)(t)!==e.type&&n.push(f(o.messages.types[s],e.fullField,e.type))}}function T(e,t,r,n,o){var a="number"===typeof e.len,i="number"===typeof e.min,s="number"===typeof e.max,u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,l=null,p="number"===typeof t,d="string"===typeof t,h=Array.isArray(t);if(p?l="number":d?l="string":h&&(l="array"),!l)return!1;h&&(c=t.length),d&&(c=t.replace(u,"_").length),a?c!==e.len&&n.push(f(o.messages[l].len,e.fullField,e.len)):i&&!s&&ce.max?n.push(f(o.messages[l].max,e.fullField,e.max)):i&&s&&(ce.max)&&n.push(f(o.messages[l].range,e.fullField,e.min,e.max))}var P="enum";function C(e,t,r,n,o){e[P]=Array.isArray(e[P])?e[P]:[],-1===e[P].indexOf(t)&&n.push(f(o.messages[P],e.fullField,e[P].join(", ")))}function O(e,t,r,n,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||n.push(f(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var E={required:x,whitespace:w,type:k,range:T,enum:C,pattern:O};function I(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t,"string")&&!e.required)return r();E.required(e,t,n,a,o,"string"),d(t,"string")||(E.type(e,t,n,a,o),E.range(e,t,n,a,o),E.pattern(e,t,n,a,o),!0===e.whitespace&&E.whitespace(e,t,n,a,o))}r(a)}function _(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&E.type(e,t,n,a,o)}r(a)}function D(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(""===t&&(t=void 0),d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&(E.type(e,t,n,a,o),E.range(e,t,n,a,o))}r(a)}function j(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&E.type(e,t,n,a,o)}r(a)}function M(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),d(t)||E.type(e,t,n,a,o)}r(a)}function B(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&(E.type(e,t,n,a,o),E.range(e,t,n,a,o))}r(a)}function L(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&(E.type(e,t,n,a,o),E.range(e,t,n,a,o))}r(a)}function F(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t,"array")&&!e.required)return r();E.required(e,t,n,a,o,"array"),d(t,"array")||(E.type(e,t,n,a,o),E.range(e,t,n,a,o))}r(a)}function U(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&E.type(e,t,n,a,o)}r(a)}var N="enum";function R(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o),void 0!==t&&E[N](e,t,n,a,o)}r(a)}function z(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t,"string")&&!e.required)return r();E.required(e,t,n,a,o),d(t,"string")||E.pattern(e,t,n,a,o)}r(a)}function q(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();var s;if(E.required(e,t,n,a,o),!d(t))s="number"===typeof t?new Date(t):t,E.type(e,s,n,a,o),s&&E.range(e,s.getTime(),n,a,o)}r(a)}function H(e,t,r,n,o){var i=[],s=Array.isArray(t)?"array":(0,a.default)(t);E.required(e,t,n,i,o,s),r(i)}function Q(e,t,r,n,o){var a=e.type,i=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(d(t,a)&&!e.required)return r();E.required(e,t,n,i,o,a),d(t,a)||E.type(e,t,n,i,o)}r(i)}function W(e,t,r,n,o){var a=[],i=e.required||!e.required&&n.hasOwnProperty(e.field);if(i){if(d(t)&&!e.required)return r();E.required(e,t,n,a,o)}r(a)}var Y={string:I,method:_,number:D,boolean:j,regexp:M,integer:B,float:L,array:F,object:U,enum:R,pattern:z,date:q,url:Q,hex:Q,email:Q,required:H,any:W};function G(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var V=G();function K(e){this.rules=null,this._messages=V,this.define(e)}K.prototype={messages:function(e){return e&&(this._messages=b(G(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,a.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,r;for(t in this.rules={},e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var o,i,u=e,c=t,p=r;if("function"===typeof c&&(p=c,c={}),!this.rules||0===Object.keys(this.rules).length)return p&&p(),Promise.resolve();function d(e){var t,r=[],n={};function o(e){var t;Array.isArray(e)?r=(t=r).concat.apply(t,e):r.push(e)}for(t=0;t=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}function o(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;a--){var i=a>=0?arguments[a]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,n="/"===i.charAt(0))}return t=r(o(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===a(e,-1);return e=r(o(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),a=n(r.split("/")),i=Math.min(o.length,a.length),s=i,u=0;u=1;--a)if(t=e.charCodeAt(a),47===t){if(!o){n=a;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,a=0,i=e.length-1;i>=0;--i){var s=e.charCodeAt(i);if(47!==s)-1===n&&(o=!1,n=i+1),46===s?-1===t?t=i:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){r=i+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)};var a="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(958))},,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{label:{type:String,default:e.$u.props.formItem.label},prop:{type:String,default:e.$u.props.formItem.prop},borderBottom:{type:[String,Boolean],default:e.$u.props.formItem.borderBottom},labelPosition:{type:String,default:e.$u.props.formItem.labelPosition},labelWidth:{type:[String,Number],default:e.$u.props.formItem.labelWidth},rightIcon:{type:String,default:e.$u.props.formItem.rightIcon},leftIcon:{type:String,default:e.$u.props.formItem.leftIcon},required:{type:Boolean,default:e.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:e.$u.props.formItem.leftIconStyle}}};t.default=r}).call(this,r(2)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{value:{type:[String,Number],default:e.$u.props.textarea.value},placeholder:{type:[String,Number],default:e.$u.props.textarea.placeholder},placeholderClass:{type:String,default:e.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:e.$u.props.input.placeholderStyle},height:{type:[String,Number],default:e.$u.props.textarea.height},confirmType:{type:String,default:e.$u.props.textarea.confirmType},disabled:{type:Boolean,default:e.$u.props.textarea.disabled},count:{type:Boolean,default:e.$u.props.textarea.count},focus:{type:Boolean,default:e.$u.props.textarea.focus},autoHeight:{type:Boolean,default:e.$u.props.textarea.autoHeight},fixed:{type:Boolean,default:e.$u.props.textarea.fixed},cursorSpacing:{type:Number,default:e.$u.props.textarea.cursorSpacing},cursor:{type:[String,Number],default:e.$u.props.textarea.cursor},showConfirmBar:{type:Boolean,default:e.$u.props.textarea.showConfirmBar},selectionStart:{type:Number,default:e.$u.props.textarea.selectionStart},selectionEnd:{type:Number,default:e.$u.props.textarea.selectionEnd},adjustPosition:{type:Boolean,default:e.$u.props.textarea.adjustPosition},disableDefaultPadding:{type:Boolean,default:e.$u.props.textarea.disableDefaultPadding},holdKeyboard:{type:Boolean,default:e.$u.props.textarea.holdKeyboard},maxlength:{type:[String,Number],default:e.$u.props.textarea.maxlength},border:{type:String,default:e.$u.props.textarea.border},formatter:{type:[Function,null],default:e.$u.props.textarea.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};t.default=r}).call(this,r(2)["default"])},,,,,,function(e,t,r){"use strict";(function(e,n){var o=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.chooseFile=d;var a=o(r(11));function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t=t?e:"".concat(Array(t+1-n.length).join(r)).concat(e)},g={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return"".concat((t<=0?"+":"-")+h(n,2,"0"),":").concat(h(o,2,"0"))},m:function e(t,r){if(t.date()8;t>>=1)r+=this.lunarInfo[e-1900]&t?1:0;return r+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var r=t-1;return 1==r?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[r]},toGanZhiYear:function(e){var t=(e-3)%10,r=(e-3)%12;return 0==t&&(t=10),0==r&&(r=12),this.Gan[t-1]+this.Zhi[r-1]},toAstro:function(e,t){var r="魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯",n=[20,19,21,21,21,22,23,23,23,23,22,22];return r.substr(2*e-(t2100)return-1;if(t<1||t>24)return-1;var r=this.sTermInfo[e-1900],n=[parseInt("0x"+r.substr(0,5)).toString(),parseInt("0x"+r.substr(5,5)).toString(),parseInt("0x"+r.substr(10,5)).toString(),parseInt("0x"+r.substr(15,5)).toString(),parseInt("0x"+r.substr(20,5)).toString(),parseInt("0x"+r.substr(25,5)).toString()],o=[n[0].substr(0,1),n[0].substr(1,2),n[0].substr(3,1),n[0].substr(4,2),n[1].substr(0,1),n[1].substr(1,2),n[1].substr(3,1),n[1].substr(4,2),n[2].substr(0,1),n[2].substr(1,2),n[2].substr(3,1),n[2].substr(4,2),n[3].substr(0,1),n[3].substr(1,2),n[3].substr(3,1),n[3].substr(4,2),n[4].substr(0,1),n[4].substr(1,2),n[4].substr(3,1),n[4].substr(4,2),n[5].substr(0,1),n[5].substr(1,2),n[5].substr(3,1),n[5].substr(4,2)];return parseInt(o[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月",t},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,r){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&r<31)return-1;if(e)n=new Date(e,parseInt(t)-1,r);else var n=new Date;var o,a=0,i=0,s=(e=n.getFullYear(),t=n.getMonth()+1,r=n.getDate(),(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(1900,0,31))/864e5);for(o=1900;o<2101&&s>0;o++)i=this.lYearDays(o),s-=i;s<0&&(s+=i,o--);var u=new Date,c=!1;u.getFullYear()==e&&u.getMonth()+1==t&&u.getDate()==r&&(c=!0);var l=n.getDay(),f=this.nStr1[l];0==l&&(l=7);var p=o,d=(a=this.leapMonth(o),!1);for(o=1;o<13&&s>0;o++)a>0&&o==a+1&&0==d?(--o,d=!0,i=this.leapDays(p)):i=this.monthDays(p,o),1==d&&o==a+1&&(d=!1),s-=i;0==s&&a>0&&o==a+1&&(d?d=!1:(d=!0,--o)),s<0&&(s+=i,--o);var h=o,g=s+1,v=t-1,y=this.toGanZhiYear(p),m=this.getTerm(e,2*t-1),b=this.getTerm(e,2*t),x=this.toGanZhi(12*(e-1900)+t+11);r>=m&&(x=this.toGanZhi(12*(e-1900)+t+12));var w=!1,A=null;m==r&&(w=!0,A=this.solarTerm[2*t-2]),b==r&&(w=!0,A=this.solarTerm[2*t-1]);var S=Date.UTC(e,v,1,0,0,0,0)/864e5+25567+10,k=this.toGanZhi(S+r-1),T=this.toAstro(t,r);return{lYear:p,lMonth:h,lDay:g,Animal:this.getAnimal(p),IMonthCn:(d?"闰":"")+this.toChinaMonth(h),IDayCn:this.toChinaDay(g),cYear:e,cMonth:t,cDay:r,gzYear:y,gzMonth:x,gzDay:k,isToday:c,isLeap:d,nWeek:l,ncWeek:"星期"+f,isTerm:w,Term:A,astro:T}},lunar2solar:function(e,t,r,n){n=!!n;var o=this.leapMonth(e);this.leapDays(e);if(n&&o!=t)return-1;if(2100==e&&12==t&&r>1||1900==e&&1==t&&r<31)return-1;var a=this.monthDays(e,t),i=a;if(n&&(i=this.leapDays(e,t)),e<1900||e>2100||r>i)return-1;for(var s=0,u=1900;u0&&(s+=this.leapDays(e),l=!0),s+=this.monthDays(e,u);n&&(s+=a);var f=Date.UTC(1900,1,30,0,0,0),p=new Date(864e5*(s+r-31)+f),d=p.getUTCFullYear(),h=p.getUTCMonth()+1,g=p.getUTCDate();return this.solar2lunar(d,h,g)}},o=n;t.default=o},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{title:{type:[String,Number],default:e.$u.props.cell.title},label:{type:[String,Number],default:e.$u.props.cell.label},value:{type:[String,Number],default:e.$u.props.cell.value},icon:{type:String,default:e.$u.props.cell.icon},disabled:{type:Boolean,default:e.$u.props.cell.disabled},border:{type:Boolean,default:e.$u.props.cell.border},center:{type:Boolean,default:e.$u.props.cell.center},url:{type:String,default:e.$u.props.cell.url},linkType:{type:String,default:e.$u.props.cell.linkType},clickable:{type:Boolean,default:e.$u.props.cell.clickable},isLink:{type:Boolean,default:e.$u.props.cell.isLink},required:{type:Boolean,default:e.$u.props.cell.required},rightIcon:{type:String,default:e.$u.props.cell.rightIcon},arrowDirection:{type:String,default:e.$u.props.cell.arrowDirection},iconStyle:{type:[Object,String],default:function(){return e.$u.props.cell.iconStyle}},rightIconStyle:{type:[Object,String],default:function(){return e.$u.props.cell.rightIconStyle}},titleStyle:{type:[Object,String],default:function(){return e.$u.props.cell.titleStyle}},size:{type:String,default:e.$u.props.cell.size},stop:{type:Boolean,default:e.$u.props.cell.stop},name:{type:[Number,String],default:e.$u.props.cell.name}}};t.default=r}).call(this,r(2)["default"])},,,,,,,,function(e,t,r){"use strict";var n=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(5)),a=n(r(13)),i={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,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,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.end.x||t.end.xe.start.y||t.start.y1&&(o.extra.mount.widthRatio>2&&(o.extra.mount.widthRatio=2),i+=(o.extra.mount.widthRatio-1)*r.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",o.xAxis.scrollPosition="left"):Math.abs(t)>=i-a?(s=a-i,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",o.xAxis.scrollPosition="right"):(e.scrollOption.position=t,o.xAxis.scrollPosition=t),s}function d(e,t,r){function n(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=n(e),t=n(t),r=n(r),t>r&&(r+=2*Math.PI,e=t&&e<=r}function h(e,t){function r(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 n(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 o=.2,a=.2,i=null,s=null,u=null,c=null;if(t<1?(i=e[0].x+(e[1].x-e[0].x)*o,s=e[0].y+(e[1].y-e[0].y)*o):(i=e[t].x+(e[t+1].x-e[t-1].x)*o,s=e[t].y+(e[t+1].y-e[t-1].y)*o),t>e.length-3){var l=e.length-1;u=e[l].x-(e[l].x-e[l-1].x)*a,c=e[l].y-(e[l].y-e[l-1].y)*a}else u=e[t+1].x-(e[t+2].x-e[t].x)*a,c=e[t+1].y-(e[t+2].y-e[t].y)*a;return r(e,t+1)&&(c=e[t+1].y),r(e,t)&&(s=e[t].y),n(e,t+1)&&(u=e[t+1].x),n(e,t)&&(i=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),(c>=Math.max(e[t].y,e[t+1].y)||c<=Math.min(e[t].y,e[t+1].y))&&(c=e[t+1].y),(i>=Math.max(e[t].x,e[t+1].x)||i<=Math.min(e[t].x,e[t+1].x))&&(i=e[t].x),(u>=Math.max(e[t].x,e[t+1].x)||u<=Math.min(e[t].x,e[t+1].x))&&(u=e[t+1].x),{ctrA:{x:i,y:s},ctrB:{x:u,y:c}}}function g(e,t,r){return{x:r.x+e,y:r.y-t}}function v(e,t){if(t)while(u.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 y(e,t,r){var n=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var o=e[0].data,a=0;a=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:l(e,"lower",r),maxRange:l(t,"upper",r)}}function w(e,t,r){var n=0;if(e=String(e),!1!==r&&void 0!==r&&r.setFontSize&&r.measureText)return r.setFontSize(t),r.measureText(e).width;e=e.split("");for(var o=0;o-1;if(a)for(var i=_(e),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},i=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(n.length>0){for(var u=[],c=0;c0&&(n=o[r]),{text:a.formatter?a.formatter(e,n,r,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),p={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:p}}function E(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t.chartData.xAxisPoints[r]+t.chartData.eachSpacing/2,i=e.map((function(e){return{text:o.formatter?o.formatter(e,n[r],r,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));i=i.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(a),y:0};return{textList:i,offset:s}}function I(e,t,r,n,o,a){var i=r.chartData.calPoints,s=a.color.upFill,u=a.color.downFill,c=[s,s,u,s],l=[];t.map((function(t){0==n?t.data[1]-t.data[0]<0?c[1]=u:c[1]=s:(t.data[0]e[n-1][1]&&(c[2]=s),t.data[3]4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},i=r.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(r.categories){for(var u=1;ut&&(a.index=r)}));else{for(var c=Array(t.length),l=0;l4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},i=r.chartData.eachSpacing/2,s=r.chartData.yAxisPoints;return t&&t.length>0&&L(e,r,n)&&s.forEach((function(t,r){e.y+o+i>t&&(a.index=r)})),a}function M(e,t,r){var n=-1,o=0;if(B(e,t.area)){for(var a=t.points,i=-1,s=0,u=a.length;sf[0]-o&&e.xf[1]-o&&e.yt.start.x&&e.xt.start.y&&e.y=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function F(e,t,r){var n=2*Math.PI/r,o=-1;if(H(e,t.center,t.radius)){var a=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},i=Math.atan2(t.center.y-e.y,e.x-t.center.x);i*=-1,i<0&&(i+=2*Math.PI);var s=t.angleList.map((function(e){return e=a(-1*e),e}));s.forEach((function(e,t){var r=a(e-n/2),s=a(e+n/2);s=r&&i<=s||i+2*Math.PI>=r&&i+2*Math.PI<=s)&&(o=t)}))}return o}function U(e,t){for(var r=-1,n=0,o=t.series.length;na.funnelArea[0]&&e.xa.funnelArea[1]&&e.ya.area[0]&&e.xa.area[1]&&e.yt.width-t.area[1]-t.area[3]?(p.push(g),h.push(d-t.legend.itemGap*t.pix),d=b,g=[y]):(d+=b,g.push(y))}if(g.length){p.push(g),h.push(d-t.legend.itemGap*t.pix),a.widthArr=h;var x=Math.max.apply(null,h);switch(t.legend.float){case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+x+2*i;break;case"right":a.area.start.x=t.width-t.area[1]-x-2*i,a.area.end.x=t.width-t.area[1];break;default:a.area.start.x=(t.width-x)/2-i,a.area.end.x=(t.width+x)/2+i}a.area.width=x+2*i,a.area.wholeWidth=x+2*i,a.area.height=p.length*f+2*i,a.area.wholeHeight=p.length*f+2*i+2*s,a.points=p}}else{var A=e.length,S=t.height-t.area[0]-t.area[2]-2*s-2*i,k=Math.min(Math.floor(S/f),A);switch(a.area.height=k*f+2*i,a.area.wholeHeight=k*f+2*i,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 T=A%k===0?A/k:Math.floor(A/k+1),P=[],C=0;C_&&(_=j)}a.widthArr.push(_),a.heightArr.push(I.length*f+2*i)}for(var M=0,B=0;B4&&void 0!==arguments[4]?arguments[4]:-1;o="stack"==n?S(e,t.categories.length):A(e);var s=[];o=o.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),o.map((function(e){"object"===(0,a.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var u=0,c=0;if(s.length>0&&(u=Math.min.apply(this,s),c=Math.max.apply(this,s)),i>-1?("number"===typeof t.xAxis.data[i].min&&(u=Math.min(t.xAxis.data[i].min,u)),"number"===typeof t.xAxis.data[i].max&&(c=Math.max(t.xAxis.data[i].max,c))):("number"===typeof t.xAxis.min&&(u=Math.min(t.xAxis.min,u)),"number"===typeof t.xAxis.max&&(c=Math.max(t.xAxis.max,c))),u===c){var l=c||10;c+=l}for(var f=u,p=c,d=[],h=(p-f)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)d.push(f+h*g);return d}function V(e,t,r,n){var o=s({},{type:""},t.extra.bar),a={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};a.ranges=G(e,t,r,o.type),a.rangesFormat=a.ranges.map((function(e){return e=u.toFixed(e,2),e}));var i=a.ranges.map((function(e){return e=u.toFixed(e,2),e}));a=Object.assign(a,ce(i,t,r));a.eachSpacing,i.map((function(e){return w(e,t.xAxis.fontSize*t.pix,n)}));return!0===t.xAxis.disabled&&(a.xAxisHeight=0),a}function K(e,t,r,n,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,i=o.extra.radar||{};i.max=i.max||0;for(var s=Math.max(i.max,Math.max.apply(null,A(n))),u=[],c=function(o){var i=n[o],c={};c.color=i.color,c.legendShape=i.legendShape,c.pointShape=i.pointShape,c.data=[],i.data.forEach((function(n,o){var i={};i.angle=e[o],i.proportion=n/s,i.value=n,i.position=g(r*i.proportion*a*Math.cos(i.angle),r*i.proportion*a*Math.sin(i.angle),t),c.data.push(i)})),u.push(c)},l=0;l2&&void 0!==arguments[2]?arguments[2]:1,n=0,o=0,a=0;a4&&void 0!==arguments[4]?arguments[4]:1,a=0;a4&&void 0!==arguments[4]?arguments[4]:1,a=0,i=0,s=[],u=0;u2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n=2&&(o._proportion_=o._proportion_%2)}return e}function ee(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n=2&&(o._proportion_=o._proportion_%2)}return e}function te(e,t,r){var n;n=r=2&&(e[a]._endAngle_=e[a]._endAngle_%2),o=e[a]._endAngle_;return e}function re(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0;o=r.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*n+r.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*n,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return e}function ne(e,t,r,n){e=J(e);for(var o=0,a=0;a0&&(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+=(n+.5-r/2)*(e.width+o),e}))}function ae(e,t,r,n,o,a){return e.map((function(e){if(null===e)return null;var o=0,i=0;return o=a.extra.bar.seriesGap*a.pix||0,i=a.extra.bar.categoryGap*a.pix||0,o=Math.min(o,t/r),i=Math.min(i,t/r),e.width=Math.ceil((t-2*i-o*(r-1))/r),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e.y+=(n+.5-r/2)*(e.width+o),e}))}function ie(e,t,r,n,o,a,i){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e){return null===e?null:(e.width=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)),n>0&&(e.width-=i),e)}))}function se(e,t,r,n,o,a,i){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e,r){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 ue(e,t,r,n,o,a,i){var s=a.extra.bar.categoryGap*a.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function ce(e,t,r){var n=t.width-t.area[1]-t.area[3],o=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&o>1&&"justify"==t.xAxis.boundaryGap&&(o-=1);var a=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),a=t.extra.mount.widthRatio-1,o+=a);var i=n/o,s=[],u=t.area[3],c=t.width-t.area[1];return e.forEach((function(e,t){s.push(u+a/2*i+t*i)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(u+a*i+e.length*i):s.push(c)),{xAxisPoints:s,startX:u,endX:c,eachSpacing:i}}function le(e,t,r,n,o,a,i){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=[],c=a.height-a.area[0]-a.area[2];return e.forEach((function(e,i){if(null===e)u.push(null);else{var l=[];e.forEach((function(e,u){var f={};f.x=n[i]+Math.round(o/2);var p=e.value||e,d=c*(p-t)/(r-t);d*=s,f.y=a.height-Math.round(d)-a.area[2],l.push(f)})),u.push(l)}})),u}function fe(e,t,r,n,o,i,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=i.type&&"area"!=i.type&&"scatter"!=i.type&&"bubble"!=i.type||(c=i.xAxis.boundaryGap);var l=[],f=i.height-i.area[0]-i.area[2],p=i.width-i.area[1]-i.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var d={};d.color=e.color,d.x=n[s];var h,g,v,y=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(i.chartData.xAxisData.ranges),g=h.shift(),v=h.pop(),y=e[1],d.x=i.area[3]+p*(e[0]-g)/(v-g),"bubble"==i.type&&(d.r=e[2],d.t=e[3]);else y=e.value;"center"==c&&(d.x+=o/2);var m=f*(y-t)/(r-t);m*=u,d.y=i.height-m-i.area[2],l.push(d)}})),l}function pe(e,t,r,n,o,i,s,u,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=i.xAxis.boundaryGap,f=[],p=i.height-i.area[0]-i.area[2],d=i.width-i.area[1]-i.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var h={};if(h.color=e.color,"vertical"==u.animation){h.x=n[s];var g,v,y,m=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(i.chartData.xAxisData.ranges),v=g.shift(),y=g.pop(),m=e[1],h.x=i.area[3]+d*(e[0]-v)/(y-v);else m=e.value;"center"==l&&(h.x+=o/2);var b=p*(m-t)/(r-t);b*=c,h.y=i.height-b-i.area[2],f.push(h)}else{h.x=n[0]+o*s*c;m=e;"center"==l&&(h.x+=o/2);b=p*(m-t)/(r-t);h.y=i.height-b-i.area[2],f.push(h)}}})),f}function de(e,t,r,n,o,i,s,u,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=[],f=i.height-i.area[0]-i.area[2],p=i.width-i.area[1]-i.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var u={};u.color=e.color,u.x=n[s];var d,h,g,v=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)d=[].concat(i.chartData.xAxisData.ranges),h=d.shift(),g=d.pop(),v=e[1],u.x=i.area[3]+p*(e[0]-h)/(g-h);else v=e.value;u.x+=o/2;var y=f*(v*c-t)/(r-t);u.y=i.height-y-i.area[2],l.push(u)}})),l}function he(e,t,r,n,o,a,i,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=[],l=a.height-a.area[0]-a.area[2],f=(a.width,a.area[1],a.area[3],o*i.widthRatio);return e.forEach((function(e,i){if(null===e)c.push(null);else{var s={};s.color=e.color,s.x=n[i],s.x+=o/2;var p=e.data,d=l*(p*u-t)/(r-t);s.y=a.height-d-a.area[2],s.value=p,s.width=f,c.push(s)}})),c}function ge(e,t,r,n,o,i,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],l=(i.height,i.area[0],i.area[2],i.width-i.area[1]-i.area[3]);return e.forEach((function(e,o){if(null===e)c.push(null);else{var s={};s.color=e.color,s.y=n[o];var f=e;"object"===(0,a.default)(e)&&null!==e&&(f=e.value);var p=l*(f-t)/(r-t);p*=u,s.height=p,s.value=f,s.x=p+i.area[3],c.push(s)}})),c}function ve(e,t,r,n,o,i,s,u,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],p=i.height-i.area[0]-i.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var d={};if(d.color=e.color,d.x=n[s]+Math.round(o/2),u>0){for(var h=0,g=0;g<=u;g++)h+=c[g].data[s];var v=h-e,y=p*(h-t)/(r-t),m=p*(v-t)/(r-t)}else{h=e;"object"===(0,a.default)(e)&&null!==e&&(h=e.value);y=p*(h-t)/(r-t),m=0}var b=m;y*=l,b*=l,d.y=i.height-Math.round(y)-i.area[2],d.y0=i.height-Math.round(b)-i.area[2],f.push(d)}})),f}function ye(e,t,r,n,o,i,s,u,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],p=i.width-i.area[1]-i.area[3];return e.forEach((function(e,o){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=n[o],u>0){for(var d=0,h=0;h<=u;h++)d+=c[h].data[o];var g=d-e,v=p*(d-t)/(r-t),y=p*(g-t)/(r-t)}else{d=e;"object"===(0,a.default)(e)&&null!==e&&(d=e.value);v=p*(d-t)/(r-t),y=0}var m=y;v*=l,m*=l,s.height=v-m,s.x=i.area[3]+v,s.x0=i.area[3]+m,f.push(s)}})),f}function me(e,t,r,n,o){var i;i="stack"==n?S(e,t.categories.length):A(e);var s=[];i=i.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,a.default)(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 u=o.min||0,c=o.max||0;s.length>0&&(u=Math.min.apply(this,s),c=Math.max.apply(this,s)),u===c&&(0==c?c=10:u=0);for(var l=x(u,c),f=void 0===o.min||null===o.min?l.minRange:o.min,p=void 0===o.max||null===o.max?l.maxRange:o.max,d=(p-f)/t.yAxis.splitNumber,h=[],g=0;g<=t.yAxis.splitNumber;g++)h.push(f+d*g);return h.reverse()}function be(e,t,r,n){var o=s({},{type:""},t.extra.column),a=t.yAxis.data.length,i=new Array(a);if(a>0){for(var c=0;c0&&0==o.tooltip.group.includes(i))){var s="number"===typeof o.tooltip.index?o.tooltip.index:o.tooltip.index[o.tooltip.group.indexOf(i)];if(n.beginPath(),"hollow"==a.activeType?(n.setStrokeStyle(t),n.setFillStyle(o.background),n.setLineWidth(2*o.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*o.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x+2.5*o.pix,e.y),n.arc(e.x,e.y,3*o.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}}function Te(e,t,r,n){var o=e.title.fontSize||t.titleFontSize,a=e.subtitle.fontSize||t.subtitleFontSize,i=e.title.name||"",s=e.subtitle.name||"",u=e.title.color||e.fontColor,c=e.subtitle.color||e.fontColor,l=i?o:0,f=s?a:0,p=5;if(s){var d=w(s,a*e.pix,r),h=n.x-d/2+(e.subtitle.offsetX||0)*e.pix,g=n.y+a*e.pix/2+(e.subtitle.offsetY||0)*e.pix;i&&(g+=(l*e.pix+p)/2),r.beginPath(),r.setFontSize(a*e.pix),r.setFillStyle(c),r.fillText(s,h,g),r.closePath(),r.stroke()}if(i){var v=w(i,o*e.pix,r),y=n.x-v/2+(e.title.offsetX||0),m=n.y+o*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(m-=(f*e.pix+p)/2),r.beginPath(),r.setFontSize(o*e.pix),r.setFillStyle(u),r.fillText(i,y,m),r.closePath(),r.stroke()}}function Pe(e,t,r,n,o){var i=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,u){if(null!==e){n.beginPath();var c=t.textSize?t.textSize*o.pix:r.fontSize;n.setFontSize(c),n.setFillStyle(t.textColor||o.fontColor);var l=i[u];"object"===(0,a.default)(i[u])&&null!==i[u]&&(l=i[u].constructor.toString().indexOf("Array")>-1?i[u][1]:i[u].value);var f=t.formatter?t.formatter(l,u,t,o):l;n.setTextAlign("center"),n.fillText(String(f),e.x,e.y-4+s*o.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Ce(e,t,r,n,o){var i=t.data,s=t.textOffset?t.textOffset:0,u=o.extra.column.labelPosition;e.forEach((function(e,c){if(null!==e){n.beginPath();var l=t.textSize?t.textSize*o.pix:r.fontSize;n.setFontSize(l),n.setFillStyle(t.textColor||o.fontColor);var f=i[c];"object"===(0,a.default)(i[c])&&null!==i[c]&&(f=i[c].constructor.toString().indexOf("Array")>-1?i[c][1]:i[c].value);var p=t.formatter?t.formatter(f,c,t,o):f;n.setTextAlign("center");var d=e.y-4*o.pix+s*o.pix;e.y>t.zeroPoints&&(d=e.y+s*o.pix+l),"insideTop"==u&&(d=e.y+l+s*o.pix,e.y>t.zeroPoints&&(d=e.y-s*o.pix-4*o.pix)),"center"==u&&(d=e.y+s*o.pix+(o.height-o.area[2]-e.y+l)/2,t.zeroPointst.zeroPoints&&(d=e.y-s*o.pix-(e.y-t.zeroPoints-l)/2),"stack"==o.extra.column.type&&(d=e.y+s*o.pix+(e.y0-e.y+l)/2)),"bottom"==u&&(d=o.height-o.area[2]+s*o.pix-4*o.pix,t.zeroPointst.zeroPoints&&(d=t.zeroPoints-s*o.pix+l+2*o.pix),"stack"==o.extra.column.type&&(d=e.y0+s*o.pix-4*o.pix)),n.fillText(String(p),e.x,d),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Oe(e,t,r,n,o,a){t.data;var i=t.textOffset?t.textOffset:0;o.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){n.beginPath();var u=t[s].textSize?t[s].textSize*o.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t[s].textColor||o.fontColor);var c=e.value,l=t[s].formatter?t[s].formatter(c,s,t,o):c;n.setTextAlign("center");var f=e.y-4*o.pix+i*o.pix;e.y>a&&(f=e.y+i*o.pix+u),n.fillText(String(l),e.x,f),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Ee(e,t,r,n,o){var i=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){n.beginPath();var u=t.textSize?t.textSize*o.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t.textColor||o.fontColor);var c=i[s];"object"===(0,a.default)(i[s])&&null!==i[s]&&(c=i[s].value);var l=t.formatter?t.formatter(c,s,t,o):c;n.setTextAlign("left"),n.fillText(String(l),e.x+4*o.pix,e.y+u/2-3),n.closePath(),n.stroke()}}))}function Ie(e,t,r,n,o,a){var i;t-=e.width/2+e.labelOffset*n.pix,t=t<10?10:t,i=e.endAngle=2&&(l%=2),f+=c}}function _e(e,t,r,n,o,a){var i=n.extra.radar||{};e.forEach((function(e,s){if(!0===i.labelPointShow&&""!==n.categories[s]){var c={x:t*Math.cos(e),y:t*Math.sin(e)},l=g(c.x,c.y,r);a.setFillStyle(i.labelPointColor),a.beginPath(),a.arc(l.x,l.y,i.labelPointRadius*n.pix,0,2*Math.PI,!1),a.closePath(),a.fill()}if(!0===i.labelShow){var f={x:(t+o.radarLabelTextMargin*n.pix)*Math.cos(e),y:(t+o.radarLabelTextMargin*n.pix)*Math.sin(e)},p=g(f.x,f.y,r),d=p.x,h=p.y;u.approximatelyEqual(f.x,0)?d-=w(n.categories[s]||"",o.fontSize,a)/2:f.x<0&&(d-=w(n.categories[s]||"",o.fontSize,a)),a.beginPath(),a.setFontSize(o.fontSize),a.setFillStyle(i.labelColor||n.fontColor),a.fillText(n.categories[s]||"",d,h+o.fontSize/2),a.closePath(),a.stroke()}}))}function De(e,t,r,n,o,a){for(var i=r.pieChartLinePadding,s=[],c=null,l=e.map((function(r,n){var o=r.formatter?r.formatter(r,n,e,t):u.toFixed(100*r._proportion_.toFixed(4))+"%";o=r.labelText?r.labelText:o;var a=2*Math.PI-(r._start_+2*Math.PI*r._proportion_/2);r._rose_proportion_&&(a=2*Math.PI-(r._start_+2*Math.PI*r._rose_proportion_/2));var i=r.color,s=r._radius_;return{arc:a,text:o,color:i,radius:s,textColor:r.textColor,textSize:r.textSize,labelShow:r.labelShow}})),f=0;f=0?d+r.pieChartTextPadding:d-r.pieChartTextPadding,x=h,A=w(p.text,p.textSize*t.pix||r.fontSize,n),S=x;c&&u.isSameXCoordinateArea(c.start,{x:b})&&(S=b>0?Math.min(x,c.start.y):d<0||x>0?Math.max(x,c.start.y):Math.min(x,c.start.y)),b<0&&(b-=A);var k={lineStart:{x:y,y:m},lineEnd:{x:d,y:h},start:{x:b,y:S},width:A,height:r.fontSize,text:p.text,color:p.color,textColor:p.textColor,textSize:p.textSize};c=v(k,c),s.push(c)}for(var T=0;To?o:a.activeWidth;var i=t.area[0],u=t.height-t.area[2];n.beginPath(),n.setFillStyle(c(a.activeBgColor,a.activeBgOpacity)),n.rect(e-a.activeWidth/2,i,a.activeWidth,u-i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Fe(e,t,r,n,o){var a=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),i=t.area[3],u=t.width-t.area[1];n.beginPath(),n.setFillStyle(c(a.activeBgColor,a.activeBgOpacity)),n.rect(i,e-o/2,u-i,o),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Ue(e,t,r,n,o,a,i){var u=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},r.extra.tooltip);1==u.showCategory&&r.categories&&e.unshift({text:r.categories[r.tooltip.index],color:null});var l=u.fontSize*r.pix,f=u.lineHeight*r.pix,p=u.boxPadding*r.pix,d=l,h=5*r.pix;0==u.legendShow&&(d=0,h=0);var g=u.showArrow?8*r.pix:0,v=!1;"line"!=r.type&&"mount"!=r.type&&"area"!=r.type&&"candle"!=r.type&&"mix"!=r.type||1==u.splitLine&&je(r.tooltip.offset.x,r,n,o),t=s({x:0,y:0},t),t.y-=8*r.pix;var y=e.map((function(e){return w(e.text,l,o)})),m=d+h+4*p+Math.max.apply(null,y),b=2*p+e.length*f;if(0!=u.showBox){t.x-Math.abs(r._scrollDistance_||0)+g+m>r.width&&(v=!0),b+t.y>r.height&&(t.y=r.height-b),o.beginPath(),o.setFillStyle(c(u.bgColor,u.bgOpacity)),o.setLineWidth(u.borderWidth*r.pix),o.setStrokeStyle(c(u.borderColor,u.borderOpacity));var x=u.borderRadius;v?(m+g>r.width&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(m-r.width)),m>t.x&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(m-r.width)),u.showArrow&&(o.moveTo(t.x,t.y+10*r.pix),o.lineTo(t.x-g,t.y+10*r.pix+5*r.pix)),o.arc(t.x-g-x,t.y+b-x,x,0,Math.PI/2,!1),o.arc(t.x-g-Math.round(m)+x,t.y+b-x,x,Math.PI/2,Math.PI,!1),o.arc(t.x-g-Math.round(m)+x,t.y+x,x,-Math.PI,-Math.PI/2,!1),o.arc(t.x-g-x,t.y+x,x,-Math.PI/2,0,!1),u.showArrow&&(o.lineTo(t.x-g,t.y+10*r.pix-5*r.pix),o.lineTo(t.x,t.y+10*r.pix))):(u.showArrow&&(o.moveTo(t.x,t.y+10*r.pix),o.lineTo(t.x+g,t.y+10*r.pix-5*r.pix)),o.arc(t.x+g+x,t.y+x,x,-Math.PI,-Math.PI/2,!1),o.arc(t.x+g+Math.round(m)-x,t.y+x,x,-Math.PI/2,0,!1),o.arc(t.x+g+Math.round(m)-x,t.y+b-x,x,0,Math.PI/2,!1),o.arc(t.x+g+x,t.y+b-x,x,Math.PI/2,Math.PI,!1),u.showArrow&&(o.lineTo(t.x+g,t.y+10*r.pix+5*r.pix),o.lineTo(t.x,t.y+10*r.pix))),o.closePath(),o.fill(),u.borderWidth>0&&o.stroke(),u.legendShow&&e.forEach((function(e,n){if(null!==e.color){o.beginPath(),o.setFillStyle(e.color);var a=t.x+g+2*p,i=t.y+(f-l)/2+f*n+p+1;switch(v&&(a=t.x-m-g+2*p),e.legendShape){case"line":o.moveTo(a,i+.5*d-2*r.pix),o.fillRect(a,i+.5*d-2*r.pix,d,4*r.pix);break;case"triangle":o.moveTo(a+7.5*r.pix,i+.5*d-5*r.pix),o.lineTo(a+2.5*r.pix,i+.5*d+5*r.pix),o.lineTo(a+12.5*r.pix,i+.5*d+5*r.pix),o.lineTo(a+7.5*r.pix,i+.5*d-5*r.pix);break;case"diamond":o.moveTo(a+7.5*r.pix,i+.5*d-5*r.pix),o.lineTo(a+2.5*r.pix,i+.5*d),o.lineTo(a+7.5*r.pix,i+.5*d+5*r.pix),o.lineTo(a+12.5*r.pix,i+.5*d),o.lineTo(a+7.5*r.pix,i+.5*d-5*r.pix);break;case"circle":o.moveTo(a+7.5*r.pix,i+.5*d),o.arc(a+7.5*r.pix,i+.5*d,5*r.pix,0,2*Math.PI);break;case"rect":o.moveTo(a,i+.5*d-5*r.pix),o.fillRect(a,i+.5*d-5*r.pix,15*r.pix,10*r.pix);break;case"square":o.moveTo(a+2*r.pix,i+.5*d-5*r.pix),o.fillRect(a+2*r.pix,i+.5*d-5*r.pix,10*r.pix,10*r.pix);break;default:o.moveTo(a,i+.5*d-5*r.pix),o.fillRect(a,i+.5*d-5*r.pix,15*r.pix,10*r.pix)}o.closePath(),o.fill()}})),e.forEach((function(e,r){var n=t.x+g+2*p+d+h;v&&(n=t.x-m-g+2*p+d+h);var a=t.y+f*r+(f-l)/2-1+p+l;o.beginPath(),o.setFontSize(l),o.setTextBaseline("normal"),o.setFillStyle(u.fontColor),o.fillText(e.text,n,a),o.closePath(),o.stroke()}))}}function Ne(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),p=[];n.save();var d=-2,h=u.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=Math.floor(-t._scrollDistance_/l)-2,h=d+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&Le(t.tooltip.offset.x,t,r,n,l),f.customColor=b(f.linearType,f.customColor,e,r),e.forEach((function(i,s){var g,v,y;g=[].concat(t.chartData.yAxisData.ranges[i.index]),v=g.pop(),y=g.shift();var m=t.height-t.area[0]-t.area[2],b=m*(0-v)/(y-v),x=t.height-Math.round(b)-t.area[2];i.zeroPoints=x;var w=i.data;switch(f.type){case"group":var A=de(w,v,y,u,l,t,r,x,a),S=ve(w,v,y,u,l,t,r,s,e,a);p.push(S),A=oe(A,l,e.length,s,r,t);for(var k=0;kd&&kx?x:T.y,j=T.width,M=Math.abs(x-T.y);f.barBorderCircle&&(f.barBorderRadius=[j/2,j/2,0,0]),T.y>x&&(f.barBorderRadius=[0,0,j/2,j/2]);var B=(0,o.default)(f.barBorderRadius,4),L=B[0],F=B[1],U=B[2],N=B[3],R=Math.min(j/2,M/2);L=L>R?R:L,F=F>R?R:F,U=U>R?R:U,N=N>R?R:N,L=L<0?0:L,F=F<0?0:F,U=U<0?0:U,N=N<0?0:N,n.arc(_+L,D+L,L,-Math.PI,-Math.PI/2),n.arc(_+j-F,D+F,F,-Math.PI/2,0),n.arc(_+j-U,D+M-U,U,0,Math.PI/2),n.arc(_+N,D+M-N,N,Math.PI/2,Math.PI)}else n.moveTo(P,T.y),n.lineTo(P+T.width,T.y),n.lineTo(P+T.width,x),n.lineTo(P,x),n.lineTo(P,T.y),n.setLineWidth(1),n.setStrokeStyle(E);n.setFillStyle(O),n.closePath(),n.fill()}}break;case"stack":A=ve(w,v,y,u,l,t,r,s,e,a);p.push(A),A=se(A,l,e.length,s,r,t,e);for(var z=0;zd&&z0&&(C-=H),n.setFillStyle(O),n.moveTo(P,q.y),n.fillRect(P,q.y,q.width,C),n.closePath(),n.fill()}}break;case"meter":A=fe(w,v,y,u,l,t,r,a);p.push(A),A=ie(A,l,e.length,s,r,t,f.meterBorder);for(var Q=0;Qd&&Q0&&(n.setStrokeStyle(i.color),n.setLineWidth(f.meterBorder*t.pix)),0==s?n.setFillStyle(f.meterFillColor):n.setFillStyle(W.color||i.color);P=W.x-W.width/2,C=t.height-W.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var Y=P,G=W.y,V=W.width,K=x-W.y;f.barBorderCircle&&(f.barBorderRadius=[V/2,V/2,0,0]);var J=(0,o.default)(f.barBorderRadius,4),X=J[0],$=J[1],Z=J[2],ee=J[3],te=Math.min(V/2,K/2);X=X>te?te:X,$=$>te?te:$,Z=Z>te?te:Z,ee=ee>te?te:ee,X=X<0?0:X,$=$<0?0:$,Z=Z<0?0:Z,ee=ee<0?0:ee,n.arc(Y+X,G+X,X,-Math.PI,-Math.PI/2),n.arc(Y+V-$,G+$,$,-Math.PI/2,0),n.arc(Y+V-Z,G+K-Z,Z,0,Math.PI/2),n.arc(Y+ee,G+K-ee,ee,Math.PI/2,Math.PI),n.fill()}else n.moveTo(P,W.y),n.lineTo(P+W.width,W.y),n.lineTo(P+W.width,x),n.lineTo(P,x),n.lineTo(P,W.y),n.fill();0==s&&f.meterBorder>0&&(n.closePath(),n.stroke())}}break}})),!1!==t.dataLabel&&1===a&&e.forEach((function(o,i){var s,c,p;s=[].concat(t.chartData.yAxisData.ranges[o.index]),c=s.pop(),p=s.shift();var d=o.data;switch(f.type){case"group":var h=de(d,c,p,u,l,t,r,a);h=oe(h,l,e.length,i,r,t),Ce(h,o,r,n,t);break;case"stack":h=ve(d,c,p,u,l,t,r,i,e,a);Ce(h,o,r,n,t);break;case"meter":h=fe(d,c,p,u,l,t,r,a);Ce(h,o,r,n,t);break}})),n.restore(),{xAxisPoints:u,calPoints:p,eachSpacing:l}}function Re(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);f.widthRatio=f.widthRatio<=0?0:f.widthRatio,f.widthRatio=f.widthRatio>=2?2:f.widthRatio;n.save();var p,d,h,g=-2,v=u.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/l)-2,v=g+t.xAxis.itemCount+4),f.customColor=b(f.linearType,f.customColor,e,r),p=[].concat(t.chartData.yAxisData.ranges[0]),d=p.pop(),h=p.shift();var y=t.height-t.area[0]-t.area[2],m=y*(0-d)/(h-d),x=t.height-Math.round(m)-t.area[2],w=he(e,d,h,u,l,t,f,x,a);switch(f.type){case"bar":for(var A=0;Ag&&Ax?x:S.y,_=S.width,D=Math.abs(x-S.y);f.barBorderCircle&&(f.barBorderRadius=[_/2,_/2,0,0]),S.y>x&&(f.barBorderRadius=[0,0,_/2,_/2]);var j=(0,o.default)(f.barBorderRadius,4),M=j[0],B=j[1],L=j[2],F=j[3],U=Math.min(_/2,D/2);M=M>U?U:M,B=B>U?U:B,L=L>U?U:L,F=F>U?U:F,M=M<0?0:M,B=B<0?0:B,L=L<0?0:L,F=F<0?0:F,n.arc(E+M,I+M,M,-Math.PI,-Math.PI/2),n.arc(E+_-B,I+B,B,-Math.PI/2,0),n.arc(E+_-L,I+D-L,L,0,Math.PI/2),n.arc(E+F,I+D-F,F,Math.PI/2,Math.PI)}else n.moveTo(k,S.y),n.lineTo(k+S.width,S.y),n.lineTo(k+S.width,x),n.lineTo(k,x),n.lineTo(k,S.y);n.setStrokeStyle(C),n.setFillStyle(P),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.closePath(),n.stroke()),n.fill()}}break;case"triangle":for(var N=0;Ng&&N0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"mount":for(var z=0;zg&&z0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"sharp":for(var H=0;Hg&&H0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break}if(!1!==t.dataLabel&&1===a){var W,Y,G;W=[].concat(t.chartData.yAxisData.ranges[0]),Y=W.pop(),G=W.shift();w=he(e,Y,G,u,l,t,f,x,a);Oe(w,e,r,n,t,x)}return n.restore(),{xAxisPoints:u,calPoints:w,eachSpacing:l}}function ze(e,t,r,n){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=[],u=(t.height-t.area[0]-t.area[2])/t.categories.length,l=0;ld&&wF?F:j,M=M>F?F:M,B=B>F?F:B,L=L>F?F:L,j=j<0?0:j,M=M<0?0:M,B=B<0?0:B,L=L<0?0:L,n.arc(O+L,I+L,L,-Math.PI,-Math.PI/2),n.arc(A.x-j,I+j,j,-Math.PI/2,0),n.arc(A.x-M,I+E-M,M,0,Math.PI/2),n.arc(O+B,I+E-B,B,Math.PI/2,Math.PI)}else n.moveTo(S,k),n.lineTo(A.x,k),n.lineTo(A.x,k+A.width),n.lineTo(S,k+A.width),n.lineTo(S,k),n.setLineWidth(1),n.setStrokeStyle(P);n.setFillStyle(T),n.closePath(),n.fill()}}break;case"stack":b=ye(m,v,y,i,u,t,r,l,e,a);p.push(b),b=ue(b,u,e.length,l,r,t,e);for(var U=0;Ud&&U5&&void 0!==arguments[5]?arguments[5]:1,i=s({},{color:{},average:{}},r.extra.candle);i.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},i.color),i.average=s({},{show:!1,name:[],day:[],color:n.color},i.average),r.extra.candle=i;var u=r.chartData.xAxisData,c=u.xAxisPoints,l=u.eachSpacing,f=[];o.save();var p=-2,d=c.length+2,g=0,v=r.width+l;return r._scrollDistance_&&0!==r._scrollDistance_&&!0===r.enableScroll&&(o.translate(r._scrollDistance_,0),p=Math.floor(-r._scrollDistance_/l)-2,d=p+r.xAxis.itemCount+4,g=-r._scrollDistance_-2*l+r.area[3],v=g+(r.xAxis.itemCount+4)*l),(i.average.show||t)&&t.forEach((function(e,t){var i,s,u;i=[].concat(r.chartData.yAxisData.ranges[e.index]),s=i.pop(),u=i.shift();for(var f=e.data,p=fe(f,s,u,c,l,r,n,a),d=Q(p,e),y=0;yg&&(o.moveTo(w.x,w.y),b=1),x>0&&w.x>g&&w.xp&&m0?(o.setStrokeStyle(i.color.upLine),o.setFillStyle(i.color.upFill),o.setLineWidth(1*r.pix),o.moveTo(b[3].x,b[3].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[1].x-l/4,b[1].y),o.lineTo(b[0].x-l/4,b[0].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[2].x,b[2].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[0].x+l/4,b[0].y),o.lineTo(b[1].x+l/4,b[1].y),o.lineTo(b[1].x,b[1].y),o.moveTo(b[3].x,b[3].y)):(o.setStrokeStyle(i.color.downLine),o.setFillStyle(i.color.downFill),o.setLineWidth(1*r.pix),o.moveTo(b[3].x,b[3].y),o.lineTo(b[0].x,b[0].y),o.lineTo(b[0].x-l/4,b[0].y),o.lineTo(b[1].x-l/4,b[1].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[2].x,b[2].y),o.lineTo(b[1].x,b[1].y),o.lineTo(b[1].x+l/4,b[1].y),o.lineTo(b[0].x+l/4,b[0].y),o.lineTo(b[0].x,b[0].y),o.moveTo(b[3].x,b[3].y)),o.closePath(),o.fill(),o.stroke()}})),o.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:l}}function He(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=t.height-t.area[2],p=[];n.save();var d=0,g=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],g=d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,i){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var m=e.data,b=fe(m,v,y,u,l,t,r,o);p.push(b);for(var x=Q(b,e),w=0;w1){var k=A[0],T=A[A.length-1];n.moveTo(k.x,k.y);var P=0;if("curve"===a.type)for(var C=0;Cd&&(n.moveTo(O.x,O.y),P=1),C>0&&O.x>d&&O.xd&&(n.moveTo(_.x,_.y),P=1),I>0&&_.x>d&&_.xd&&(n.moveTo(j.x,j.y),P=1),D>0&&j.x>d&&j.xd&&(n.moveTo(U.x,U.y),L=1),F>0&&U.x>d&&U.xd&&(n.moveTo(z.x,z.y),L=1),R>0&&z.x>d&&z.xd&&(n.moveTo(H.x,H.y),L=1),q>0&&H.x>d&&H.x4&&void 0!==arguments[4]?arguments[4]:1,a=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),i=a.xAxisPoints,u=a.eachSpacing,c=[];n.save();var l=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),l=-t._scrollDistance_-2*u+t.area[3],l+(t.xAxis.itemCount+4)*u),e.forEach((function(e,a){var s,c,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),l=s.shift();var f=e.data,p=fe(f,c,l,i,u,t,r,o);n.beginPath(),n.setStrokeStyle(e.color),n.setFillStyle(e.color),n.setLineWidth(1*t.pix);var d=e.pointShape;if("diamond"===d)p.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===d)p.forEach((function(e,r){null!==e&&(n.moveTo(e.x+2.5*t.pix,e.y),n.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===d)p.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===d)p.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("triangle"===d)return;n.closePath(),n.fill(),n.stroke()})),!1!==t.dataLabel&&1===o&&e.forEach((function(e,a){var s,c,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),l=s.shift();var f=e.data,p=fe(f,c,l,i,u,t,r,o);Pe(p,e,r,n,t)})),n.restore(),{xAxisPoints:i,calPoints:c,eachSpacing:u}}function We(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{opacity:1,border:2},t.extra.bubble),i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=[];n.save();var p=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*l+t.area[3],p+(t.xAxis.itemCount+4)*l),e.forEach((function(e,i){var s,f,p;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),p=s.shift();var d=e.data,h=fe(d,f,p,u,l,t,r,o);n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(a.border*t.pix),n.setFillStyle(c(e.color,a.opacity)),h.forEach((function(e,r){n.moveTo(e.x+e.r,e.y),n.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==t.dataLabel&&1===o&&h.forEach((function(o,a){n.beginPath();var i=e.textSize*t.pix||r.fontSize;n.setFontSize(i),n.setFillStyle(e.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(o.t),o.x,o.y+i/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:l}}function Ye(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);a.width*=t.pix;var i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=[];n.save();var p=0,d=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*l+t.area[3],d=p+(t.xAxis.itemCount+4)*l),e.forEach((function(e,i){var s,g,v;n.beginPath(),n.setStrokeStyle(e.color),n.moveTo(-1e4,-1e4),n.lineTo(-10001,-10001),n.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var y=e.data,m=pe(y,g,v,u,l,t,r,a,o);f.push(m);var b=Q(m,e);if("dash"==e.lineType){var x=e.dashLength?e.dashLength:8;x*=t.pix,n.setLineDash([x,x])}n.beginPath();var w=e.color;if("none"!==a.linearType&&e.linearColor&&e.linearColor.length>0){for(var A=n.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),S=0;S0?n.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):n.setShadow(0,0,0,"rgba(0,0,0,0)"),n.setLineWidth(a.width),b.forEach((function(e,t){if(1===e.length)n.moveTo(e[0].x,e[0].y);else{n.moveTo(e[0].x,e[0].y);var r=0;if("curve"===a.type)for(var o=0;op&&(n.moveTo(i.x,i.y),r=1),o>0&&i.x>p&&i.xp&&(n.moveTo(c.x,c.y),r=1),u>0&&c.x>p&&c.xp&&(n.moveTo(f.x,f.y),r=1),l>0&&f.x>p&&f.x4&&void 0!==arguments[4]?arguments[4]:1,i=t.chartData.xAxisData,u=i.xAxisPoints,l=i.eachSpacing,f=s({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),p=s({},{opacity:.2,gradient:!1},t.extra.mix.area),d=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],v=[],y=0,m=0;e.forEach((function(e,t){"column"==e.type&&(m+=1)})),n.save();var x=-2,w=u.length+2,A=0,S=t.width+l;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),x=Math.floor(-t._scrollDistance_/l)-2,w=x+t.xAxis.itemCount+4,A=-t._scrollDistance_-2*l+t.area[3],S=A+(t.xAxis.itemCount+4)*l),f.customColor=b(f.linearType,f.customColor,e,r),e.forEach((function(e,i){var s,b,k;s=[].concat(t.chartData.yAxisData.ranges[e.index]),b=s.pop(),k=s.shift();var T=e.data,P=fe(T,b,k,u,l,t,r,a);if(v.push(P),"column"==e.type){P=oe(P,l,m,y,r,t);for(var C=0;Cx&&Cq?q:U,N=N>q?q:N,R=R>q?q:R,z=z>q?q:z,U=U<0?0:U,N=N<0?0:N,R=R<0?0:R,z=z<0?0:z,n.arc(j+U,M+U,U,-Math.PI,-Math.PI/2),n.arc(j+B-N,M+N,N,-Math.PI/2,0),n.arc(j+B-R,M+L-R,R,0,Math.PI/2),n.arc(j+z,M+L-z,z,Math.PI/2,Math.PI)}else n.moveTo(E,O.y),n.lineTo(E+O.width,O.y),n.lineTo(E+O.width,t.height-t.area[2]),n.lineTo(E,t.height-t.area[2]),n.lineTo(E,O.y),n.setLineWidth(1),n.setStrokeStyle(_);n.setFillStyle(I),n.closePath(),n.fill()}}y+=1}if("area"==e.type)for(var H=Q(P,e),W=0;W1){var V=Y[0],K=Y[Y.length-1];n.moveTo(V.x,V.y);var J=0;if("curve"===e.style)for(var X=0;XA&&(n.moveTo($.x,$.y),J=1),X>0&&$.x>A&&$.xA&&(n.moveTo(te.x,te.y),J=1),ee>0&&te.x>A&&te.xA&&(n.moveTo(u.x,u.y),i=1),s>0&&u.x>A&&u.xA&&(n.moveTo(f.x,f.y),i=1),l>0&&f.x>A&&f.x1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),h+=(t.extra.mount.widthRatio-1)*u);var g=d*d/h,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*d/h),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(i,p),n.lineTo(s,p),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),n.moveTo(i+v,p),n.lineTo(i+v+g,p),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),a.forEach((function(e,r){r>0&&(n.beginPath(),n.moveTo(e-u/2,l),n.lineTo(e-u/2,l+3*t.pix),n.closePath(),n.stroke())}))),!0!==t.xAxis.disableGrid&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&n.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,a.forEach((function(e,r){r%t.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(e,l),n.lineTo(e,f),n.stroke())})),n.setLineDash([])),!0!==t.xAxis.disabled){var y=e.length;t.xAxis.labelCount&&(y=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,y-=1);for(var m=Math.ceil(e.length/y),b=[],x=e.length,A=0;A=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(n.beginPath(),n.setFontSize(S),n.setFillStyle(t.xAxis.fontColor||t.fontColor),n.fillText(String(o),a[r]+i,l+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),n.closePath(),n.stroke())})):b.forEach((function(e,o){var i=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==c?a[o]+u/2:a[o];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){n.save(),n.beginPath(),n.setFontSize(S),n.setFillStyle(t.xAxis.fontColor||t.fontColor);var p=w(String(i),S,n),d=a[o];"center"==c&&(d=a[o]+u/2);t.xAxis.scrollShow&&6*t.pix;var h=l+t.xAxis.marginTop*t.pix+S-S*Math.abs(Math.sin(r._xAxisTextAngle_));t.xAxis.rotateAngle<0?(d-=S/2,p=0):(d+=S/2,p=-p),n.translate(d,h),n.rotate(-1*r._xAxisTextAngle_),n.fillText(String(i),p,0),n.closePath(),n.stroke(),n.restore()}}))}n.restore(),t.xAxis.title&&(n.beginPath(),n.setFontSize(t.xAxis.titleFontSize*t.pix),n.setFillStyle(t.xAxis.titleFontColor),n.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),n.closePath(),n.stroke()),t.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(t.xAxis.axisLineColor),n.setLineWidth(1*t.pix),n.moveTo(i,t.height-t.area[2]),n.lineTo(s,t.height-t.area[2]),n.stroke())}function Je(e,t,r,n){if(!0!==t.yAxis.disableGrid){var o=t.height-t.area[0]-t.area[2],a=o/t.yAxis.splitNumber,i=t.area[3],s=t.chartData.xAxisData.xAxisPoints,u=t.chartData.xAxisData.eachSpacing,c=u*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),c+=(t.extra.mount.widthRatio-1)*u);var l=i+c,f=[],p=1;!1===t.xAxis.axisLine&&(p=0);for(var d=p;d4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{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),i={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==r.pieChartLinePadding&&(r.pieChartLinePadding=a.activeRadius*t.pix);var u=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);u=u<10?10:u,a.customRadius>0&&(u=a.customRadius*t.pix),e=J(e,u,o);var l=a.activeRadius*t.pix;if(a.customColor=b(a.linearType,a.customColor,e,r),e=e.map((function(e){return e._start_+=a.offsetAngle*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(c(e.color,a.activeOpacity||.5)),n.moveTo(i.x,i.y),n.arc(i.x,i.y,e._radius_+l,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var o,s=e.color;"custom"==a.linearType&&(o=n.createCircularGradient?n.createCircularGradient(i.x,i.y,e._radius_):n.createRadialGradient(i.x,i.y,0,i.x,i.y,e._radius_),o.addColorStop(0,c(a.customColor[e.linearIndex],1)),o.addColorStop(1,c(e.color,1)),s=o);n.setFillStyle(s),n.moveTo(i.x,i.y),n.arc(i.x,i.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),"ring"===t.type){var f=.6*u;"number"===typeof a.ringWidth&&a.ringWidth>0&&(f=Math.max(0,u-a.ringWidth*t.pix)),n.beginPath(),n.setFillStyle(a.centerColor),n.moveTo(i.x,i.y),n.arc(i.x,i.y,f,0,2*Math.PI),n.closePath(),n.fill()}return!1!==t.dataLabel&&1===o&&De(e,t,r,n,u,i),1===o&&"ring"===t.type&&Te(t,r,n,i),{center:i,radius:u,series:e}}function et(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==r.pieChartLinePadding&&(r.pieChartLinePadding=a.activeRadius*t.pix);var i={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=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);u=u<10?10:u;var l=a.minRadius||.5*u;u4&&void 0!==arguments[4]?arguments[4]:1,u=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=Z(e,u,i),o=u.centerX||u.centerY?{x:u.centerX?u.centerX:t.width/2,y:u.centerY?u.centerY:t.height/2}:{x:t.width/2,y:t.height/2},u.radius?a=u.radius:(a=Math.min(o.x,o.y),a-=5*t.pix,a-=u.width/2),a=a<10?10:a,u.customColor=b(u.linearType,u.customColor,e,r);for(var l=0;l5&&void 0!==arguments[5]?arguments[5]:1,i=s({},{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"}},r.extra.gauge);void 0==i.oldAngle&&(i.oldAngle=i.startAngle),void 0==i.oldData&&(i.oldData=0),e=te(e,i.startAngle,i.endAngle);var u={x:r.width/2,y:r.height/2},l=Math.min(u.x,u.y);l-=5*r.pix,l-=i.width/2,l=l<10?10:l;var f=l-i.width,p=0;if("progress"==i.type){var d=l-3*i.width;o.beginPath();var h=o.createLinearGradient(u.x,u.y-d,u.x,u.y+d);h.addColorStop("0",c(t[0].color,.3)),h.addColorStop("1.0",c("#FFFFFF",.1)),o.setFillStyle(h),o.arc(u.x,u.y,d,0,2*Math.PI,!1),o.fill(),o.setLineWidth(i.width),o.setStrokeStyle(c(t[0].color,.3)),o.setLineCap("round"),o.beginPath(),o.arc(u.x,u.y,f,i.startAngle*Math.PI,i.endAngle*Math.PI,!1),o.stroke(),p=i.endAnglex/m?o.setStrokeStyle(c(t[0].color,1)):o.setStrokeStyle(c(t[0].color,.3)),o.setLineWidth(3*r.pix),o.moveTo(v,0),o.lineTo(y,0),o.stroke(),o.rotate(g*Math.PI);o.restore(),t=ee(t,i,a),o.setLineWidth(i.width),o.setStrokeStyle(t[0].color),o.setLineCap("round"),o.beginPath(),o.arc(u.x,u.y,f,i.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),o.stroke();var w=l-2.5*i.width;o.save(),o.translate(u.x,u.y),o.rotate((t[0]._proportion_-1)*Math.PI),o.beginPath(),o.setLineWidth(i.width/3);var A=o.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",c("#FFFFFF",0)),A.addColorStop("0.5",c(t[0].color,1)),A.addColorStop("1.0",c("#FFFFFF",0)),o.setStrokeStyle(A),o.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),o.stroke(),o.beginPath(),o.setLineWidth(1),o.setStrokeStyle(t[0].color),o.setFillStyle(t[0].color),o.moveTo(-w-i.width/3/2,-4),o.lineTo(-w-i.width/3/2-4,0),o.lineTo(-w-i.width/3/2,4),o.lineTo(-w-i.width/3/2,-4),o.stroke(),o.fill(),o.restore()}else{o.setLineWidth(i.width),o.setLineCap("butt");for(var S=0;S4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),i=C(t.categories.length),u={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=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,p=Math.min(l-(P(t.categories,r.fontSize,n)+r.radarLabelTextMargin),f-r.radarLabelTextMargin);p-=r.radarLabelTextMargin*t.pix,p=p<10?10:p,p=a.radius?a.radius:p,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(a.gridColor),i.forEach((function(e,t){var r=g(p*Math.cos(e),p*Math.sin(e),u);n.moveTo(u.x,u.y),t%a.gridEval==0&&n.lineTo(r.x,r.y)})),n.stroke(),n.closePath();for(var d=function(e){var r={};if(n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(a.gridColor),"radar"==a.gridType)i.forEach((function(t,o){var i=g(p/a.gridCount*e*Math.cos(t),p/a.gridCount*e*Math.sin(t),u);0===o?(r=i,n.moveTo(i.x,i.y)):n.lineTo(i.x,i.y)})),n.lineTo(r.x,r.y);else{var o=g(p/a.gridCount*e*Math.cos(1.5),p/a.gridCount*e*Math.sin(1.5),u);n.arc(u.x,u.y,u.y-o.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},h=1;h<=a.gridCount;h++)d(h);a.customColor=b(a.linearType,a.customColor,e,r);var v=K(i,u,p,e,t,o);if(v.forEach((function(r,o){n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(r.color);var i,s=c(r.color,a.opacity);"custom"==a.linearType&&(i=n.createCircularGradient?n.createCircularGradient(u.x,u.y,p):n.createRadialGradient(u.x,u.y,0,u.x,u.y,p),i.addColorStop(0,c(a.customColor[e[o].linearIndex],a.opacity)),i.addColorStop(1,c(r.color,a.opacity)),s=i);if(n.setFillStyle(s),r.data.forEach((function(e,t){0===t?n.moveTo(e.position.x,e.position.y):n.lineTo(e.position.x,e.position.y)})),n.closePath(),n.fill(),!0===a.border&&n.stroke(),n.closePath(),!1!==t.dataPointShape){var l=r.data.map((function(e){return e.position}));Se(l,r.color,r.pointShape,n,t)}})),!0===a.axisLabel){var y=Math.max(a.max,Math.max.apply(null,A(e))),m=p/a.gridCount,x=t.fontSize*t.pix;n.setFontSize(x),n.setFillStyle(t.fontColor),n.setTextAlign("left");for(h=0;hc.x?r.xMax:c.x,r.yMin=r.yMinc.y?r.yMax:c.y}}return r}function it(e,t,r,n,o,a){return{x:(t-r.xMin)*n+o,y:(r.yMax-e)*n+a}}function st(e,t,r,n,o,a){return{x:(t-o)/n+r.xMin,y:r.yMax-(e-a)/n}}function ut(e,t,r){if(t[1]==r[1])return!1;if(t[1]>e[1]&&r[1]>e[1])return!1;if(t[1]e[1])return!1;if(r[1]==e[1]&&t[1]>e[1])return!1;if(t[0]t[a].area[2]||e[1]>t[a].area[3]||e[2]r||e[3]>n){o=!0;break}o=!1}return o}function dt(e,t,r){var n=e.series;switch(t){case"normal":for(var o=0;o.7},h=0;h4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=dt(t,a.type,n)),n.beginPath(),n.setFillStyle(t.background),n.rect(0,0,t.width,t.height),n.fill(),n.save();var i=t.chartData.wordCloudData;n.translate(t.width/2,t.height/2);for(var u=0;u0&&(t.tooltip&&t.tooltip.index==u?n.strokeText(c,(i[u].areav[0]+5-t.width/2)*o-f*(1-o)/2,(i[u].areav[1]+5+l-t.height/2)*o):n.fillText(c,(i[u].areav[0]+5-t.width/2)*o-f*(1-o)/2,(i[u].areav[1]+5+l-t.height/2)*o)):i[u].area[0]>0&&(t.tooltip&&t.tooltip.index==u?n.strokeText(c,(i[u].area[0]+5-t.width/2)*o-f*(1-o)/2,(i[u].area[1]+5+l-t.height/2)*o):n.fillText(c,(i[u].area[0]+5-t.width/2)*o-f*(1-o)/2,(i[u].area[1]+5+l-t.height/2)*o)),n.stroke(),n.restore()}n.restore()}function gt(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),i=(t.height-t.area[0]-t.area[2])/e.length,u={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},l=a.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-l,(t.height-t.area[0]-t.area[2])/2-l),p=X(e,f,a,i,o);if(n.save(),n.translate(u.x,u.y),a.customColor=b(a.linearType,a.customColor,e,r),"pyramid"==a.type)for(var d=0;d0?w[P].width+t.yAxis.padding*t.pix:w[P].width,T+=1):"right"==w[P].position&&(t.area[1]+=k>0?w[P].width+t.yAxis.padding*t.pix:w[P].width,k+=1)}else r.yAxisWidth=w;if(t.chartData.yAxisData=x,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=ce(t.categories,t,r);var C=Y(t.categories,t,r,t.chartData.xAxisData.eachSpacing,n),O=C.xAxisHeight,E=C.angle;r.xAxisHeight=O,r._xAxisTextAngle_=E,t.area[2]+=O,t.chartData.categoriesData=C}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=V(i,t,r,n),u=t.chartData.xAxisData.rangesFormat;var I=Y(u,t,r,t.chartData.xAxisData.eachSpacing,n),D=I.xAxisHeight,j=I.angle;r.xAxisHeight=D,r._xAxisTextAngle_=j,t.area[2]+=D,t.chartData.categoriesData=I}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var M=0,B=t.chartData.xAxisData.xAxisPoints,L=t.chartData.xAxisData.startX,F=t.chartData.xAxisData.endX,U=t.chartData.xAxisData.eachSpacing,N=U*(B.length-1),R=F-L;M=R-N,a.scrollOption.currentOffset=M,a.scrollOption.startTouchX=M,a.scrollOption.distance=0,a.scrollOption.lastMoveTime=0,t._scrollDistance_=M}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===t.dataLabel?0:ne(p,r,n,t)),e){case"word":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),ht(i,t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,t.width,t.height),lt(i,t,r,n),setTimeout((function(){o.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.funnelData=gt(i,t,r,n,e),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=Ye(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=Qe(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=We(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=Ge(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=Ne(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=Re(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Ke(u,t,r,n);var o=ze(i,t,r,n,e),a=o.yAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.yAxisPoints=a,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=He(i,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=Ze(i,t,r,n,e),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=Ze(i,t,r,n,e),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.pieData=et(i,t,r,n,e),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.radarData=nt(i,t,r,n,e),$e(t.series,t,r,n,t.chartData),Ve(t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.arcbarData=tt(i,t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),t.chartData.gaugeData=rt(u,i,t,r,n,e),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new xt({timing:t.timing,duration:l,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Ae(n,t),Je(u,t,r,n),Ke(u,t,r,n);var o=qe(i,p,t,r,n,e),a=o.xAxisPoints,s=o.calPoints,c=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=s,t.chartData.eachSpacing=c,Xe(i,t,r,n),!1!==t.enableMarkLine&&1===e&&Me(t,r,n),$e(p||t.series,t,r,n,t.chartData),Ve(t,r,n,e,c,a),mt(t,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break}}function At(){this.events={}}xt.prototype.stop=function(){this.isStop=!0},At.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},At.prototype.delEventListener=function(e){this.events[e]=[]},At.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var r=be(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var o=0,a=ce(this.opts.categories,this.opts,this.config),i=a.xAxisPoints,u=a.startX,c=a.endX,l=a.eachSpacing,f=l*(i.length-1),p=c-u;o=p-f,this.scrollOption={currentOffset:o,startTouchX:o,distance:0,lastMoveTime:0},this.opts._scrollDistance_=o;break}wt.call(this,this.opts.type,this.opts,this.config,this.context)},St.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 r=be(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var o=0,a=ce(this.opts.categories,this.opts,this.config),i=a.xAxisPoints,s=a.startX,u=a.endX,c=a.eachSpacing,l=c*t,f=u-s,d=f-c*(i.length-1);o=f/2-l,o>0&&(o=0),o=this.opts.categories.length?this.opts.categories.length:f,this.opts.animation=!1,this.opts.xAxis.itemCount=f;var d=0,h=ce(this.opts.categories,this.opts,this.config),g=h.xAxisPoints,v=h.startX,y=h.endX,m=h.eachSpacing,b=m*this.scrollOption.moveCurrent1,x=y-v,w=x-m*(g.length-1);d=-b+Math.min(n[0].x,n[1].x)-this.opts.area[3]-m,d>0&&(d=0),d1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r){k(r,this.opts,e);var n=this.getLegendDataIndex(e);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,wt.call(this,this.opts.type,this.opts,this.config,this.context))}},St.prototype.showToolTip=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var o=k(n,this.opts,e),a=this.scrollOption.currentOffset,i=s({},this.opts,{_scrollDistance_:a,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1||c.length>0){var l=T(this.opts.series,c,u.group);if(0!==l.length){var f=O(l,this.opts,c,u.group,this.opts.categories,r),p=f.textList,d=f.offset;d.y=o.y,i.tooltip={textList:void 0!==r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c,group:u.group}}}wt.call(this,i.type,i,this.config,this.context)}if("mount"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e).index:r.index;if(c>-1){i=s({},this.opts,{animation:!1}),l=s({},i._series_[c]),p=[{text:r.formatter?r.formatter(l,void 0,c,i):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.chartData.calPoints[c].x,y:o.y};i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}wt.call(this,i.type,i,this.config,this.context)}if("bar"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1||c.length>0){l=T(this.opts.series,c,u.group);if(0!==l.length){f=O(l,this.opts,c,u.group,this.opts.categories,r),p=f.textList,d=f.offset;d.x=o.x,i.tooltip={textList:void 0!==r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}wt.call(this,i.type,i,this.config,this.context)}if("mix"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1){a=this.scrollOption.currentOffset,i=s({},this.opts,{_scrollDistance_:a,animation:!1}),l=T(this.opts.series,c);if(0!==l.length){var h=E(l,this.opts,c,this.opts.categories,r);p=h.textList,d=h.offset;d.y=o.y,i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}wt.call(this,i.type,i,this.config,this.context)}if("candle"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1){a=this.scrollOption.currentOffset,i=s({},this.opts,{_scrollDistance_:a,animation:!1}),l=T(this.opts.series,c);if(0!==l.length){f=I(this.opts.series[0].data,l,this.opts,c,this.opts.categories,this.opts.extra.candle,r),p=f.textList,d=f.offset;d.y=o.y,i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}wt.call(this,i.type,i,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){i=s({},this.opts,{animation:!1}),l=s({},i._series_[c]),p=[{text:r.formatter?r.formatter(l,void 0,c,i):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],d={x:o.x,y:o.y};i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}wt.call(this,i.type,i,this.config,this.context)}if("map"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){i=s({},this.opts,{animation:!1}),l=s({},this.opts.series[c]);l.name=l.properties.name;p=[{text:r.formatter?r.formatter(l,void 0,c,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],d={x:o.x,y:o.y};i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}i.updateData=!1,wt.call(this,i.type,i,this.config,this.context)}if("word"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){i=s({},this.opts,{animation:!1}),l=s({},this.opts.series[c]),p=[{text:r.formatter?r.formatter(l,void 0,c,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],d={x:o.x,y:o.y};i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}i.updateData=!1,wt.call(this,i.type,i,this.config,this.context)}if("radar"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){i=s({},this.opts,{animation:!1}),l=T(this.opts.series,c);if(0!==l.length){p=l.map((function(e){return{text:r.formatter?r.formatter(e,t.opts.categories[c],c,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),d={x:o.x,y:o.y};i.tooltip={textList:r.textList?r.textList:p,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}wt.call(this,i.type,i,this.config,this.context)}},St.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});wt.call(this,this.opts.type,t,this.config,this.context)},St.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var r=k(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=r.x)},St.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,r=Date.now(),n=r-this.scrollOption.lastMoveTime;if(!(n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.$.$refs["ani"].ref;if(r)return new Promise((function(n,o){nvueAnimation.transition(r,u({styles:e},t),(function(e){n()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,o=e[r];if(o){var a=o.styles,i=o.config;this._animateRun(a,i).then((function(){r+=1,t._nvueNextAnimate(e,r,n)}))}else this.currentStepAnimates={},"function"===typeof n&&n(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"],f=["opacity","backgroundColor"],p=["width","height","left","right","top","bottom"];function d(e,t){if(t)return clearTimeout(t.timer),new c(e,t)}l.concat(f,p).forEach((function(e){c.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,r(2)["default"])},,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={computed:{value:function(){var t=this.text,r=this.mode,n=this.format,o=this.href;return"price"===r?(/^\d+(\.\d+)?$/.test(t)||e.$u.error("金额模式下,text参数需要为金额格式"),e.$u.test.func(n)?n(t):e.$u.priceFormat(t,2)):"date"===r?(!e.$u.test.date(t)&&e.$u.error("日期模式下,text参数需要为日期或时间戳格式"),e.$u.test.func(n)?n(t):n?e.$u.timeFormat(t,n):e.$u.timeFormat(t,"yyyy-mm-dd")):"phone"===r?e.$u.test.func(n)?n(t):"encrypt"===n?"".concat(t.substr(0,3),"****").concat(t.substr(7)):t:"name"===r?("string"!==typeof t&&e.$u.error("姓名模式下,text参数需要为字符串格式"),e.$u.test.func(n)?n(t):"encrypt"===n?this.formatName(t):t):"link"===r?(!e.$u.test.url(o)&&e.$u.error("超链接模式下,href参数需要为URL格式"),t):t}},methods:{formatName:function(e){var t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){for(var r="",n=0,o=e.length-2;n