/*! For license information please see API.js.LICENSE.txt */ !function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=392)}({0:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},1:function(e,t,n){"use strict";function i(e,t,n,i,a,r,o,s,u,c){var l,p="function"==typeof e?e.options:e;if(u){p.components||(p.components={});var d=Object.prototype.hasOwnProperty;for(var f in u)d.call(u,f)&&!d.call(p.components,f)&&(p.components[f]=u[f])}if(c&&("function"==typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(p.mixins||(p.mixins=[])).push(c)),t&&(p.render=t,p.staticRenderFns=n,p._compiled=!0),i&&(p.functional=!0),r&&(p._scopeId="data-v-"+r),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},p._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(p.functional){p._injectStyles=l;var g=p.render;p.render=function(e,t){return l.call(t),g(e,t)}}else{var h=p.beforeCreate;p.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:p}}n.d(t,"a",(function(){return i}))},10:function(e,t,n){var i=n(11);e.exports=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},106:function(e,t,n){"use strict";var i=n(290),a=n(151),r=n(1);var o=Object(r.a)(a.default,i.b,i.c,!1,null,null,"a4a64092",!1,i.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(345).default,this.options.style):Object.assign(this.options.style,n(345).default)}).call(o),t.default=o.exports},11:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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 r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n>>2]>>>24-r%4*8&255;t[i+r>>>2]|=o<<24-(i+r)%4*8}else for(r=0;r>>2]=n[r>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],a=function(t){t=t;var n=987654321,i=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},r=0;r>>2]>>>24-a%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new o.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new o.init(n,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)))}},p=a.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.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 n=this._data,i=n.words,a=n.sigBytes,r=this.blockSize,s=a/(4*r),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,c=e.min(4*u,a);if(u){for(var l=0;l>>24)|4278255360&(a<<24|a>>>8)}var r=this._hash.words,o=e[t+0],u=e[t+1],f=e[t+2],g=e[t+3],h=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],T=e[t+9],x=e[t+10],_=e[t+11],w=e[t+12],k=e[t+13],B=e[t+14],R=e[t+15],S=r[0],L=r[1],P=r[2],I=r[3];S=c(S,L,P,I,o,7,s[0]),I=c(I,S,L,P,u,12,s[1]),P=c(P,I,S,L,f,17,s[2]),L=c(L,P,I,S,g,22,s[3]),S=c(S,L,P,I,h,7,s[4]),I=c(I,S,L,P,m,12,s[5]),P=c(P,I,S,L,v,17,s[6]),L=c(L,P,I,S,y,22,s[7]),S=c(S,L,P,I,b,7,s[8]),I=c(I,S,L,P,T,12,s[9]),P=c(P,I,S,L,x,17,s[10]),L=c(L,P,I,S,_,22,s[11]),S=c(S,L,P,I,w,7,s[12]),I=c(I,S,L,P,k,12,s[13]),P=c(P,I,S,L,B,17,s[14]),S=l(S,L=c(L,P,I,S,R,22,s[15]),P,I,u,5,s[16]),I=l(I,S,L,P,v,9,s[17]),P=l(P,I,S,L,_,14,s[18]),L=l(L,P,I,S,o,20,s[19]),S=l(S,L,P,I,m,5,s[20]),I=l(I,S,L,P,x,9,s[21]),P=l(P,I,S,L,R,14,s[22]),L=l(L,P,I,S,h,20,s[23]),S=l(S,L,P,I,T,5,s[24]),I=l(I,S,L,P,B,9,s[25]),P=l(P,I,S,L,g,14,s[26]),L=l(L,P,I,S,b,20,s[27]),S=l(S,L,P,I,k,5,s[28]),I=l(I,S,L,P,f,9,s[29]),P=l(P,I,S,L,y,14,s[30]),S=p(S,L=l(L,P,I,S,w,20,s[31]),P,I,m,4,s[32]),I=p(I,S,L,P,b,11,s[33]),P=p(P,I,S,L,_,16,s[34]),L=p(L,P,I,S,B,23,s[35]),S=p(S,L,P,I,u,4,s[36]),I=p(I,S,L,P,h,11,s[37]),P=p(P,I,S,L,y,16,s[38]),L=p(L,P,I,S,x,23,s[39]),S=p(S,L,P,I,k,4,s[40]),I=p(I,S,L,P,o,11,s[41]),P=p(P,I,S,L,g,16,s[42]),L=p(L,P,I,S,v,23,s[43]),S=p(S,L,P,I,T,4,s[44]),I=p(I,S,L,P,w,11,s[45]),P=p(P,I,S,L,R,16,s[46]),S=d(S,L=p(L,P,I,S,f,23,s[47]),P,I,o,6,s[48]),I=d(I,S,L,P,y,10,s[49]),P=d(P,I,S,L,B,15,s[50]),L=d(L,P,I,S,m,21,s[51]),S=d(S,L,P,I,w,6,s[52]),I=d(I,S,L,P,g,10,s[53]),P=d(P,I,S,L,x,15,s[54]),L=d(L,P,I,S,u,21,s[55]),S=d(S,L,P,I,b,6,s[56]),I=d(I,S,L,P,R,10,s[57]),P=d(P,I,S,L,v,15,s[58]),L=d(L,P,I,S,k,21,s[59]),S=d(S,L,P,I,h,6,s[60]),I=d(I,S,L,P,_,10,s[61]),P=d(P,I,S,L,f,15,s[62]),L=d(L,P,I,S,T,21,s[63]),r[0]=r[0]+S|0,r[1]=r[1]+L|0,r[2]=r[2]+P|0,r[3]=r[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var r=e.floor(i/4294967296),o=i;n[15+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(a+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,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=r.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,r,o){var s=e+(t&n|~t&i)+a+o;return(s<>>32-r)+t}function l(e,t,n,i,a,r,o){var s=e+(t&i|n&~i)+a+o;return(s<>>32-r)+t}function p(e,t,n,i,a,r,o){var s=e+(t^n^i)+a+o;return(s<>>32-r)+t}function d(e,t,n,i,a,r,o){var s=e+(n^(t|~i))+a+o;return(s<>>32-r)+t}t.MD5=r._createHelper(u),t.HmacMD5=r._createHmacHelper(u)}(Math),n.MD5)})),w((function(e,t){var n;e.exports=(n=k,void function(){var e=n,t=e.lib.Base,i=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,a=4*n;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),s=r.words,u=o.words,c=0;c>>6-o%4*2;a[r>>>2]|=(s|u)<<24-r%4*8,r++}return t.create(a,r)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],r=0;r>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s>>6*(3-s)&63));var u=i.charAt(64);if(u)for(;a.length%4;)a.push(u);return a.join("")},parse:function(e){var t=e.length,n=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,i=t.retryRule,a=void 0===i?F:i;(0,h.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=a}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case F:return this.status===C;case U:return this.status!==I}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=I,this.promise=this.createPromise().then((function(t){return e.status=A,Promise.resolve(t)}),(function(t){return e.status=C,Promise.reject(t)})),this.promise):this.promise}}]),e}();function j(e){return e&&"string"==typeof e?JSON.parse(e):e}var q=j([]),V="app",$=(j(void 0),j([])||[]);try{(n(15).default||n(15)).appid}catch(we){}var H={};function W(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=H,n=e,Object.prototype.hasOwnProperty.call(t,n)||(H[e]=i),H[e]}"app"===V&&(H=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var K=["invoke","success","fail","complete"],z=W("_globalUniCloudInterceptor");function G(e,t){z[e]||(z[e]={}),O(t)&&Object.keys(t).forEach((function(n){K.indexOf(n)>-1&&function(e,t,n){var i=z[e][t];i||(i=z[e][t]=[]),-1===i.indexOf(n)&&E(n)&&i.push(n)}(e,n,t[n])}))}function J(e,t){z[e]||(z[e]={}),O(t)?Object.keys(t).forEach((function(n){K.indexOf(n)>-1&&function(e,t,n){var i=z[e][t];if(i){var a=i.indexOf(n);a>-1&&i.splice(a,1)}}(e,n,t[n])})):delete z[e]}function Q(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function Y(e,t){return z[e]&&z[e][t]||[]}function X(e){G("callObject",e)}var Z=W("_globalUniCloudListener"),ee="response",te="needLogin",ne="refreshToken",ie="clientdb",ae="cloudfunction",re="cloudobject";function oe(e){return Z[e]||(Z[e]=[]),Z[e]}function se(e,t){var n=oe(e);n.includes(t)||n.push(t)}function ue(e,t){var n=oe(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function ce(e,t){for(var n=oe(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,g.default)(Error)),ve={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}};function ye(){return{token:ve.getStorageSync("uni_id_token")||ve.getStorageSync("uniIdToken"),tokenExpired:ve.getStorageSync("uni_id_token_expired")}}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&ve.setStorageSync("uni_id_token",t),n&&ve.setStorageSync("uni_id_token_expired",n)}function Te(){return ge||(ge=uni.getSystemInfoSync()),ge}function xe(){var e=uni.getLocale&&uni.getLocale()||"en";if(he)return x(x({},he),{},{locale:e,LOCALE:e});for(var t=Te(),n=t.deviceId,i=t.osName,a=t.uniPlatform,r=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s-1)return;var n=uni.getLaunchOptionsSync(),i=n.scene;e=n.channel,t=i}}catch(e){}return{channel:e,scene:t}}()),t),x(x({},he),{},{locale:e,LOCALE:e})}var _e,we,ke=function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),B(n,t).toString()},Be=function(e,t){return new Promise((function(n,i){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var a=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",r=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new me({code:a,message:r,requestId:t}))}var o=e.data;if(o.error)return i(new me({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},Re=function(e){return S.stringify(R.parse(e))},Se=function(){function e(t){var n=this;(0,h.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=ve,this._getAccessTokenPromiseHub=new M({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new me({code:"AUTH_FAILED",message:"\u83b7\u53d6accessToken\u5931\u8d25"});n.setAccessToken(e.result.accessToken)}))},retryRule:U})}var t,n,i;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 Be(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ke(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=ke(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:(i=(0,c.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,i=e.formData,a=e.name,r=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:i,name:a,filePath:r,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){u(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"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:(n=(0,c.default)(a.default.mark((function e(t){var n,i,r,o,s,u,c,l,p,d,f,g,h,m,v,y,b,T,x,_,w,k;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filePath,i=t.cloudPath,r=t.fileType,o=void 0===r?"image":r,s=t.cloudPathAsRealPath,u=void 0!==s&&s,c=t.onUploadProgress,l=t.config,"string"===D(i)){e.next=3;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u5fc5\u987b\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b"});case 3:if(i=i.trim()){e.next=5;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u5408\u6cd5"});case 7:if(p=l&&l.envType||this.config.envType,!(u&&("/"!==i[0]&&(i="/"+i),i.indexOf("\\")>-1))){e.next=10;break}throw new me({code:"INVALID_PARAM",message:"\u4f7f\u7528cloudPath\u4f5c\u4e3a\u8def\u5f84\u65f6\uff0ccloudPath\u4e0d\u53ef\u5305\u542b\u201c\\\u201d"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:p,filename:u?i.split("/").pop():i,fileId:u?i:void 0});case 12:return d=e.sent.result,f="https://"+d.cdnDomain+"/"+d.ossPath,g=d.securityToken,h=d.accessKeyId,m=d.signature,v=d.host,y=d.ossPath,b=d.id,T=d.policy,x=d.ossCallbackUrl,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:h,Signature:m,host:v,id:b,key:y,policy:T,success_action_status:200},g&&(_["x-oss-security-token"]=g),x&&(w=JSON.stringify({callbackUrl:x,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),_.callback=Re(w)),k={url:"https://"+d.host,formData:_,fileName:"file",name:"file",filePath:n,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},k,{onUploadProgress:c}));case 27:if(!x){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:f});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:n,fileID:f});case 33:throw new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"});case 34:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new me({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:(t=(0,c.default)(a.default.mark((function e(){var t,n,i,r=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new me({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"});case 3:return i={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(i));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Le={init:function(e){var t=new Se(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Pe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";(we=_e||(_e={})).local="local",we.none="none",we.session="session";var Ie,Ae=function(){},Ce=w((function(e,t){var n;e.exports=(n=k,function(e){var t=n,i=t.lib,a=i.WordArray,r=i.Hasher,o=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(s[a]=n(e.pow(i,.5))),u[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],l=o.SHA256=r.extend({_doReset:function(){this._hash=new a.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],r=n[2],o=n[3],s=n[4],l=n[5],p=n[6],d=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var g=c[f-15],h=(g<<25|g>>>7)^(g<<14|g>>>18)^g>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=h+c[f-7]+v+c[f-16]}var y=i&a^i&r^a&r,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),T=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&p)+u[f]+c[f];d=p,p=l,l=s,s=o+T|0,o=r,r=a,a=i,i=T+(b+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(l),t.HmacSHA256=r._createHmacHelper(l)}(Math),n.SHA256)})),De=w((function(e,t){e.exports=k.HmacSHA256})),Oe=function(){var e;if(!Promise){(e=function(){}).promise={};var t=function(){throw new me({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var n=new Promise((function(t,n){e=function(e,i){return e?n(e):t(i)}}));return e.promise=n,e};function Ee(e){return void 0===e}function Ne(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ie||(Ie={}));var Fe={adapter:null,runtime:void 0},Ue=["anonymousUuidKey"],Me=function(e){(0,p.default)(n,e);var t=_(n);function n(){var e;return(0,h.default)(this,n),e=t.call(this),Fe.adapter.root.tcbObject||(Fe.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Fe.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Fe.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Fe.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Fe.adapter.root.tcbObject}}]),n}(Ae);function je(e,t){switch(e){case"local":return t.localStorage||new Me;case"none":return new Me;default:return t.sessionStorage||new Me}}var qe=function(){function e(t){if((0,h.default)(this,e),!this._storage){this._persistence=Fe.adapter.primaryStorage||t.persistence,this._storage=je(this._persistence,Fe.adapter);var n="access_token_".concat(t.env),i="access_token_expire_".concat(t.env),a="refresh_token_".concat(t.env),r="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:i,refreshTokenKey:a,anonymousUuidKey:r,loginTypeKey:o,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=je(e,Fe.adapter);for(var i in this.keys){var a=this.keys[i];if(!t||!Ue.includes(i)){var r=this._storage.getItem(a);Ee(r)||Ne(r)||(n.setItem(a,r),this._storage.removeItem(a))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var i={version:n||"localCachev1",content:t},a=JSON.stringify(i);try{this._storage.setItem(e,a)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Ve={},$e={};function He(e){return Ve[e]}var We=(0,m.default)((function e(t,n){(0,h.default)(this,e),this.data=n||null,this.name=t})),Ke=function(e){(0,p.default)(n,e);var t=_(n);function n(e,i){var a;return(0,h.default)(this,n),(a=t.call(this,"error",{error:e,data:i})).error=e,a}return(0,m.default)(n)}(We),ze=new(function(){function e(){(0,h.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ke)return console.error(e.error),this;var n="string"==typeof e?new We(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;var a,r=y(this._listeners[i]?(0,u.default)(this._listeners[i]):[]);try{for(r.s();!(a=r.n()).done;){a.value.call(this,n)}}catch(e){r.e(e)}finally{r.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ge(e,t){ze.on(e,t)}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze.fire(e,t)}function Qe(e,t){ze.off(e,t)}var Ye,Xe="loginStateChanged",Ze="loginStateExpire",et="loginTypeChanged",tt="anonymousConverted",nt="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"}(Ye||(Ye={}));var it=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],at={"X-SDK-Version":"1.3.5"};function rt(e,t,n){var i=e[t];e[t]=function(t){var a={},r={};n.forEach((function(n){var i=n.call(e,t),o=i.data,s=i.headers;Object.assign(a,o),Object.assign(r,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=x(x({},o),a);else for(var n in a)o.append(n,a[n])}(),t.headers=x(x({},t.headers||{}),r),i.call(e,t)}}function ot(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:x(x({},at),{},{"x-seqid":e})}}var st=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,h.default)(this,e),this.config=n,this._reqClass=new Fe.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"\u8bf7\u6c42\u5728".concat(this.config.timeout/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad"),restrictedMethods:["post"]}),this._cache=He(this.config.env),this._localCache=(t=this.config.env,$e[t]),rt(this._reqClass,"post",[ot]),rt(this._reqClass,"upload",[ot]),rt(this._reqClass,"download",[ot])}var t,n,i,r,o,s,u,l;return(0,m.default)(e,[{key:"post",value:(l=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)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(e){return l.apply(this,arguments)})},{key:"upload",value:(u=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)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(e){return u.apply(this,arguments)})},{key:"download",value:(s=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)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(e){return s.apply(this,arguments)})},{key:"refreshAccessToken",value:(o=(0,c.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return o.apply(this,arguments)})},{key:"_refreshAccessToken",value:(r=(0,c.default)(a.default.mark((function e(){var t,n,i,r,o,s,u,c,l,p,d,f,g;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,r=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(i),u=this._cache.getStore(r)){e.next=5;break}throw new me({message:"\u672a\u767b\u5f55CloudBase"});case 5:return c={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(!(l=e.sent).data.code){e.next=21;break}if("SIGN_PARAM_INVALID"!==(p=l.data.code)&&"REFRESH_TOKEN_EXPIRED"!==p&&"INVALID_REFRESH_TOKEN"!==p){e.next=20;break}if(this._cache.getStore(o)!==Ye.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==p){e.next=19;break}return d=this._cache.getStore(s),f=this._cache.getStore(r),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:f});case 17:return g=e.sent,e.abrupt("return",(this.setRefreshToken(g.refresh_token),this._refreshAccessToken()));case 19:Je(Ze),this._cache.removeStore(r);case 20:throw new me({code:l.data.code,message:"\u5237\u65b0access token\u5931\u8d25\uff1a".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Je(nt),this._cache.setStore(n,l.data.access_token),this._cache.setStore(i,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(r),this._cache.setStore(r,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"getAccessToken",value:(i=(0,c.default)(a.default.mark((function e(){var t,n,i,r,o,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,r=t.refreshTokenKey,this._cache.getStore(r)){e.next=3;break}throw new me({message:"refresh token\u4e0d\u5b58\u5728\uff0c\u767b\u5f55\u72b6\u6001\u5f02\u5e38"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(i),u=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,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",(!o||!s||s2&&void 0!==arguments[2]?arguments[2]:{},i=/\?/.test(t),a="";for(var r in n)""===a?!i&&(t+="?"):a+="&",a+="".concat(r,"=").concat(encodeURIComponent(n[r]));return/^http(s)?\:\/\//.test(t+=a)?t:"".concat(e).concat(t)}(Pe,"//tcb-api.tencentcloudapi.com/web",v),m&&(y+=m),e.next=22,this.post(x({url:y,data:c},d));case 22:if(b=e.sent,(T=b.header&&b.header["x-tcb-trace"])&&this._localCache.setStore(r,T),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=26;break}throw new me({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"send",value:(t=(0,c.default)(a.default.mark((function e(t){var n,i,r,o=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if("ACCESS_TOKEN_EXPIRED"!==(i=e.sent).data.code||-1!==it.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(!(r=e.sent).data.code){e.next=12;break}throw new me({code:r.data.code,message:r.data.message});case 12:return e.abrupt("return",r.data);case 13:if(!i.data.code){e.next=15;break}throw new me({code:i.data.code,message:i.data.message});case 15:return e.abrupt("return",i.data);case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(a,e)}}]),e}(),ut={};function ct(e){return ut[e]}var lt=function(){function e(t){(0,h.default)(this,e),this.config=t,this._cache=He(t.env),this._request=ct(t.env)}var t;return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,i=t.accessTokenExpireKey,a=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(i),this._cache.setStore(a,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,i=n.accessTokenKey,a=n.accessTokenExpireKey;this._cache.setStore(i,e),this._cache.setStore(a,t)}},{key:"refreshUserInfo",value:(t=(0,c.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),pt=function(){function e(t){if((0,h.default)(this,e),!t)throw new me({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=He(this._envId),this._request=ct(this._envId),this.setUserInfo()}var t,n,i;return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new me({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 me({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:(i=(0,c.default)(a.default.mark((function e(){var t,n,i,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,i=!1,r=n.users,e.abrupt("return",(r.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(i=!0)})),{users:r,hasPrimaryUid:i}));case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:(n=(0,c.default)(a.default.mark((function e(t){var n,i,r,o,s,u,c,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.nickName,i=t.gender,r=t.avatarUrl,o=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:i,avatarUrl:r,province:o,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(e){return n.apply(this,arguments)})},{key:"refresh",value:(t=(0,c.default)(a.default.mark((function e(){var t,n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),dt=function(){function e(t){if((0,h.default)(this,e),!t)throw new me({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=He(t);var n=this._cache.keys,i=n.refreshTokenKey,a=n.accessTokenKey,r=n.accessTokenExpireKey,o=this._cache.getStore(i),s=this._cache.getStore(a),u=this._cache.getStore(r);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:u},this.user=new pt(t)}return(0,m.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Ye.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Ye.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Ye.WECHAT||this.loginType===Ye.WECHAT_OPEN||this.loginType===Ye.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),ft=function(e){(0,p.default)(r,e);var t,n,i=_(r);function r(){return(0,h.default)(this,r),i.apply(this,arguments)}return(0,m.default)(r,[{key:"signIn",value:(n=(0,c.default)(a.default.mark((function e(){var t,n,i,r,o,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,i=t.refreshTokenKey,r=this._cache.getStore(n)||void 0,o=this._cache.getStore(i)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:r,refresh_token:o});case 8:if(!(s=e.sent).uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Je(Xe),Je(et,{env:this.config.env,loginType:Ye.ANONYMOUS,persistence:"local"}),u=new dt(this.config.env),e.next=19,u.user.refresh();case 19:return e.abrupt("return",u);case 20:throw new me({message:"\u533f\u540d\u767b\u5f55\u5931\u8d25"});case 21:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"linkAndRetrieveDataWithTicket",value:(t=(0,c.default)(a.default.mark((function e(t){var n,i,r,o,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._cache.keys,i=n.anonymousUuidKey,r=n.refreshTokenKey,o=this._cache.getStore(i),s=this._cache.getStore(r),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(!(u=e.sent).refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Je(tt,{env:this.config.env}),Je(et,{loginType:Ye.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new me({message:"\u533f\u540d\u8f6c\u5316\u5931\u8d25"});case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,i=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(i,Ye.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(lt),gt=function(e){(0,p.default)(i,e);var t,n=_(i);function i(){return(0,h.default)(this,i),n.apply(this,arguments)}return(0,m.default)(i,[{key:"signIn",value:(t=(0,c.default)(a.default.mark((function e(t){var n,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new me({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(!(i=e.sent).refresh_token){e.next=15;break}return this.setRefreshToken(i.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Je(Xe),Je(et,{env:this.config.env,loginType:Ye.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new dt(this.config.env));case 15:throw new me({message:"\u81ea\u5b9a\u4e49\u767b\u5f55\u5931\u8d25"});case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),i}(lt),ht=function(e){(0,p.default)(o,e);var t,n,i,r=_(o);function o(){return(0,h.default)(this,o),r.apply(this,arguments)}return(0,m.default)(o,[{key:"signIn",value:(i=(0,c.default)(a.default.mark((function e(t,n){var i,r,o,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new me({code:"PARAM_ERROR",message:"email must be a string"});case 2:return i=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(i)||""});case 5:if(r=e.sent,o=r.refresh_token,s=r.access_token,u=r.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!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 Je(Xe),Je(et,{env:this.config.env,loginType:Ye.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new dt(this.config.env));case 22:throw r.code?new me({code:r.code,message:"\u90ae\u7bb1\u767b\u5f55\u5931\u8d25: ".concat(r.message)}):new me({message:"\u90ae\u7bb1\u767b\u5f55\u5931\u8d25"});case 23:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"activate",value:(n=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)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(e){return n.apply(this,arguments)})},{key:"resetPasswordWithToken",value:(t=(0,c.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),o}(lt),mt=function(e){(0,p.default)(i,e);var t,n=_(i);function i(){return(0,h.default)(this,i),n.apply(this,arguments)}return(0,m.default)(i,[{key:"signIn",value:(t=(0,c.default)(a.default.mark((function e(t,n){var i,r,o,s,u;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new me({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),i=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:Ye.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(i)||""});case 6:if(r=e.sent,o=r.refresh_token,s=r.access_token_expire,u=r.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!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 Je(Xe),Je(et,{env:this.config.env,loginType:Ye.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new dt(this.config.env));case 23:throw r.code?new me({code:r.code,message:"\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25: ".concat(r.message)}):new me({message:"\u7528\u6237\u540d\u5bc6\u7801\u767b\u5f55\u5931\u8d25"});case 24:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),i}(lt),vt=function(){function e(t){(0,h.default)(this,e),this.config=t,this._cache=He(t.env),this._request=ct(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ge(et,this._onLoginTypeChanged)}var t,n,i,r,o,s,u,l,p;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 ft(this.config)}},{key:"customAuthProvider",value:function(){return new gt(this.config)}},{key:"emailAuthProvider",value:function(){return new ht(this.config)}},{key:"usernameAuthProvider",value:function(){return new mt(this.config)}},{key:"signInAnonymously",value:(p=(0,c.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new ft(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"signInWithEmailAndPassword",value:(l=(0,c.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new ht(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"signInWithUsernameAndPassword",value:function(e,t){return new mt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:(u=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ft(this.config)),Ge(tt,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(e){return u.apply(this,arguments)})},{key:"signOut",value:(s=(0,c.default)(a.default.mark((function e(){var t,n,i,r,o,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.loginType!==Ye.ANONYMOUS){e.next=2;break}throw new me({message:"\u533f\u540d\u7528\u6237\u4e0d\u652f\u6301\u767b\u51fa\u64cd\u4f5c"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,i=t.accessTokenKey,r=t.accessTokenExpireKey,o=this._cache.getStore(n)){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(i),this._cache.removeStore(r),Je(Xe),Je(et,{env:this.config.env,loginType:Ye.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"signUpWithEmailAndPassword",value:(o=(0,c.default)(a.default.mark((function e(t,n){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"sendPasswordResetEmail",value:(r=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)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(e){return r.apply(this,arguments)})},{key:"onLoginStateChanged",value:function(e){var t=this;Ge(Xe,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ge(Ze,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ge(nt,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ge(tt,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ge(et,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:(i=(0,c.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)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(){return i.apply(this,arguments)})},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new dt(this.config.env):null}},{key:"isUsernameRegistered",value:(n=(0,c.default)(a.default.mark((function e(t){var n,i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new me({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return n=e.sent,i=n.data,e.abrupt("return",i&&i.isRegistered);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:(t=(0,c.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new gt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:x(x({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,i=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+i}}},{key:"_onAnonymousConverted",value:function(e){e.data.env===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,i=t.persistence;t.env===this.config.env&&(this._cache.updatePersistence(i),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),yt=function(e,t){t=t||Oe();var n=ct(this.config.env),i=e.cloudPath,a=e.filePath,r=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:i}).then((function(e){var o=e.data,u=o.url,c=o.authorization,l=o.token,p=o.fileId,d=o.cosFileId,f=e.requestId,g={key:i,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:g,file:a,name:i,fileType:s,onUploadProgress:r}).then((function(e){201===e.statusCode?t(null,{fileID:p,requestId:f}):t(new me({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},bt=function(e,t){t=t||Oe();var n=ct(this.config.env),i=e.cloudPath;return n.send("storage.getUploadMetadata",{path:i}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Tt=function(e,t){var n=e.fileList;if(t=t||Oe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"};var i,a=y(n);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(!r||"string"!=typeof r)return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}}}catch(e){a.e(e)}finally{a.f()}var o={fileid_list:n};return ct(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},xt=function(e,t){var n=e.fileList;t=t||Oe(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"});var i,a=[],r=y(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;"object"==(0,s.default)(o)?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5305\u542bfileID\u548cmaxAge\u7684\u5bf9\u8c61"}),a.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?a.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5b57\u7b26\u4e32"})}}catch(e){r.e(e)}finally{r.f()}var u={file_list:a};return ct(this.config.env).send("storage.batchGetDownloadUrl",u).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},_t=function(){var e=(0,c.default)(a.default.mark((function e(t,n){var i,r,o,s;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.fileID,e.next=3,xt.call(this,{fileList:[{fileID:i,maxAge:600}]});case 3:if("SUCCESS"===(r=e.sent.fileList[0]).code){e.next=6;break}return e.abrupt("return",n?n(r):new Promise((function(e){e(r)})));case 6:if(o=ct(this.config.env),s=r.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=n,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),wt=function(e,t){var n,i=e.name,a=e.data,r=e.query,o=e.parse,s=e.search,u=t||Oe();try{n=a?JSON.stringify(a):""}catch(i){return Promise.reject(i)}if(!i)return Promise.reject(new me({code:"PARAM_ERROR",message:"\u51fd\u6570\u540d\u4e0d\u80fd\u4e3a\u7a7a"}));var c={inQuery:r,parse:o,search:s,function_name:i,request_data:n};return ct(this.config.env).send("functions.invokeFunction",c).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(o)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new me({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},kt={timeout:15e3,persistence:"session"},Bt={},Rt=new(function(){function e(t){(0,h.default)(this,e),this.config=t||this.config,this.authObj=void 0}var t;return(0,m.default)(e,[{key:"init",value:function(t){switch(Fe.adapter||(this.requestClient=new Fe.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"\u8bf7\u6c42\u5728".concat((t.timeout||5e3)/1e3,"s\u5185\u672a\u5b8c\u6210\uff0c\u5df2\u4e2d\u65ad")})),this.config=x(x({},kt),t),!0){case this.config.timeout>6e5:console.warn("timeout\u5927\u4e8e\u53ef\u914d\u7f6e\u4e0a\u9650[10\u5206\u949f]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0a\u9650\u6570\u503c"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout\u5c0f\u4e8e\u53ef\u914d\u7f6e\u4e0b\u9650[100ms]\uff0c\u5df2\u91cd\u7f6e\u4e3a\u4e0b\u9650\u6570\u503c"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,i=t||Fe.adapter.primaryStorage||kt.persistence;return i!==this.config.persistence&&(this.config.persistence=i),function(e){var t=e.env;Ve[t]=new qe(e),$e[t]=new qe(x(x({},e),{},{persistence:"local"}))}(this.config),n=this.config,ut[n.env]=new st(n),this.authObj=new vt(this.config),this.authObj}},{key:"on",value:function(e,t){return Ge.apply(this,[e,t])}},{key:"off",value:function(e,t){return Qe.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return wt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return xt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return yt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return bt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Bt[e.name]=e}},{key:"invokeExtension",value:(t=(0,c.default)(a.default.mark((function e(t,n){var i;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=Bt[t]){e.next=3;break}throw new me({message:"\u6269\u5c55".concat(t," \u5fc5\u987b\u5148\u6ce8\u518c")});case 3:return e.next=5,i.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"useAdapters",value:function(e){var t=function(e){var t,n,i=y((t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]));try{for(i.s();!(n=i.n()).done;){var a=n.value,r=a.isMatch,o=a.genAdapter,s=a.runtime;if(r())return{adapter:o(),runtime:s}}}catch(e){i.e(e)}finally{i.f()}}(e)||{},n=t.adapter,i=t.runtime;n&&(Fe.adapter=n),i&&(Fe.runtime=i)}}]),e}());function St(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),a="";for(var r in n)""===a?!i&&(t+="?"):a+="&",a+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}var Lt=function(){function e(){(0,h.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,i=e.headers;return new Promise((function(e,a){ve.request({url:St("https:",t),data:n,method:"POST",header:i,success:function(t){e(t)},fail:function(e){a(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var i=e.url,a=e.file,r=e.data,o=e.headers,s=e.fileType,u=ve.uploadFile({url:St("https:",i),name:"file",formData:Object.assign({},r),filePath:a,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail:function(e){n(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}(),Pt={setItem:function(e,t){ve.setStorageSync(e,t)},getItem:function(e){return ve.getStorageSync(e)},removeItem:function(e){ve.removeStorageSync(e)},clear:function(){ve.clearStorageSync()}},It={genAdapter:function(){return{root:{},reqClass:Lt,localStorage:Pt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Rt.useAdapters(It);var At=Rt,Ct=At.init;At.init=function(e){e.env=e.spaceId;var t=Ct.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){var t=fe(e=e||{}),i=t.success,a=t.fail,r=t.complete;if(!(i||a||r))return n.call(this,e);n.call(this,e).then((function(e){i&&i(e),r&&r(e)}),(function(e){a&&a(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Dt=At,Ot=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,h.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var i="Anonymous_Access_token";e.setAccessToken(i),t(i)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=ke(n,this.config.clientSecret);var a=xe();i["x-client-info"]=encodeURIComponent(JSON.stringify(a));var r=ye().token;return i["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,i=e.formData,a=e.name,r=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:i,name:a,filePath:r,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){u(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,i=e.filePath,a=e.cloudPath,r=e.fileType,o=void 0===r?"image":r,s=e.onUploadProgress;if(!a)throw new me({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});return this.getOSSUploadOptionsFromPath({cloudPath:a}).then((function(e){var a=e.result,r=a.url,u=a.formData,c=a.name;t=e.result.fileUrl;var l={url:r,formData:u,name:c,filePath:i,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:a})})).then((function(e){return new Promise((function(n,a){e.success?n({success:!0,filePath:i,fileID:t}):a(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new me({code:"DELETE_FILE_FAILED",message:"\u5220\u9664\u6587\u4ef6\u5931\u8d25"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new me({code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"});var i={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(i)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new me({code:"GET_TEMP_FILE_URL_FAILED",message:"\u83b7\u53d6\u4e34\u65f6\u6587\u4ef6\u94fe\u63a5\u5931\u8d25"})}))}}]),n}(Se),Et={init:function(e){var t=new Ot(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Nt=w((function(e,t){e.exports=k.enc.Hex}));function Ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.functionName,a=t.method,r=t.headers,s=t.signHeaderKeys,u=void 0===s?[]:s,c=t.config,l=Date.now(),p="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)})),d=Object.assign({},r,{"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":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":p,"x-alipay-callid":p,"x-trace-id":p}),f=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(u),g=e.split("?")||[],h=(0,o.default)(g,2),m=h[0],v=void 0===m?"":m,y=h[1],b=void 0===y?"":y,T=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=Ce(e.body).toString(Nt),a="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(i,"\n"),r=Ce(a).toString(Nt),o="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(r,"\n"),s=De(o,e.secretKey).toString(Nt);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:v,query:b,method:a,headers:d,timestamp:l,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:f.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:T})}}function Ut(e){var t=e.url,n=e.data,i=e.method,a=void 0===i?"POST":i,r=e.headers,o=void 0===r?{}:r;return new Promise((function(e,i){ve.request({url:t,method:a,data:n,header:o,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var a=t.data||{},r=a.message,s=a.errMsg,u=a.trace_id;return i(new me({code:"SYS_ERR",message:r||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Mt(e,t){var n=e.path,i=e.data,a=e.method,r=void 0===a?"GET":a,o=Ft(n,{functionName:"",data:i,method:r,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});return Ut({url:o.url,data:i,method:r,headers:o.headers}).then((function(e){var t=e.data||{};if(!t.success)throw new me({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new me({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function jt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new me({code:"INVALID_PARAM",message:"fileID\u4e0d\u5408\u6cd5"});var i=t.substring(0,n),a=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),a}function qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Vt=function(){function e(t){if((0,h.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")})}var t,n;return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,i=e.data,a="POST",r=Ft("/functions/invokeFunction",{functionName:n,data:i,method:a,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Ut({url:r.url,data:i,method:a,headers:r.headers}).then((function(e){return{errCode:0,success:!0,requestId:e.requestId,result:e.data}})).catch((function(e){throw new me({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,i=e.fileType,a=e.formData,r=e.onUploadProgress;return new Promise((function(e,o){var s=ve.uploadFile({url:t,filePath:n,fileType:i,formData:a,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new me({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(e){o(new me({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}});"function"==typeof r&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:(n=(0,c.default)(a.default.mark((function e(t){var n,i,r,o,s,u,c,l,p,d,f;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.filePath,i=t.cloudPath,r=void 0===i?"":i,o=t.fileType,s=void 0===o?"image":o,u=t.onUploadProgress,"string"===D(r)){e.next=3;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u5fc5\u987b\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b"});case 3:if(r=r.trim()){e.next=5;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new me({code:"INVALID_PARAM",message:"cloudPath\u4e0d\u5408\u6cd5"});case 7:return e.next=9,Mt({path:"/".concat(r.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,l=c.file_id,p=c.upload_url,d=c.form_data,f=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:p,filePath:n,fileType:s,formData:f,onUploadProgress:u}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getTempFileURL",value:(t=(0,c.default)(a.default.mark((function e(t){var n,i=this;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new me({errCode:"INVALID_PARAM",errMsg:"fileList\u4e0d\u80fd\u4e3a\u7a7a\u6570\u7ec4"})),n.length>50&&t(new me({errCode:"INVALID_PARAM",errMsg:"fileList\u6570\u7ec4\u957f\u5ea6\u4e0d\u80fd\u8d85\u8fc750"}));var a,r=[],o=y(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;"string"!==D(s)&&t(new me({errCode:"INVALID_PARAM",errMsg:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}));var u=jt.call(i,s);r.push({file_id:u,expire:600})}}catch(e){o.e(e)}finally{o.f()}Mt({path:"/?download_url",data:{file_list:r},method:"POST"},i.config).then((function(t){var n=t.file_list;e({fileList:(void 0===n?[]:n).map((function(e){return{fileID:qt.call(i,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}(),$t={init:function(e){e.provider="alipay";var t=new Vt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Ht(e){var t,n=e.data;t=xe();var i=JSON.parse(JSON.stringify(n||{}));if(Object.assign(i,{clientInfo:t}),!i.uniIdToken){var a=ye().token;a&&(i.uniIdToken=a)}return i}var Wt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"\uff0c\u4e91\u51fd\u6570[{functionName}]\u5728\u4e91\u7aef\u4e0d\u5b58\u5728\uff0c\u8bf7\u68c0\u67e5\u6b64\u4e91\u51fd\u6570\u540d\u79f0\u662f\u5426\u6b63\u786e\u4ee5\u53ca\u8be5\u4e91\u51fd\u6570\u662f\u5426\u5df2\u4e0a\u4f20\u5230\u670d\u52a1\u7a7a\u95f4",mode:"append"}],Kt=/[\\^$.*+?()[\]{}|]/g,zt=RegExp(Kt.source);function Gt(e,t,n){return e.replace(new RegExp((i=t)&&zt.test(i)?i.replace(Kt,"\\$&"):i,"g"),n);var i}var Jt="request",Qt="response";var Yt;Yt="0123456789abcdef";var Xt=2e4,Zt={code:20101,message:"Invalid client"};function en(e){var t=e||{},n=t.errSubject,i=t.subject,a=t.errCode,r=t.errMsg,o=t.code,s=t.message,u=t.cause;return new me({subject:n||i||"uni-secure-network",code:a||o||Xt,message:r||s,cause:u})}var tn;function nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Jt||t===Qt||"both"===t}function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,i=void 0===n?{}:n;return"app"===V&&"DCloud-clientDB"===t&&"encryption"===i.redirectTo&&"getAppClientKey"===i.action}function rn(e){e.functionName,e.result,e.logPvd}function on(e){var t=e.callFunction,n=function(n){var i=this,a=n.name;n.data=Ht.call(e,{data:n.data});var r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=nn(n),s=an(n),u=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&rn.call(i,{functionName:a,result:e,logPvd:r}),Promise.resolve(e)}),(function(e){return!u&&rn.call(i,{functionName:a,result:e,logPvd:r}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,i=e.extraInfo,a=void 0===i?{}:i,r=e.formatter,o=void 0===r?[]:r,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,i=e.functionName,a=Te(),r=a.appId,o=a.uniPlatform,s=a.osName,u=o;"app"===o&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,i=q;if(!i)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var a=i.find((function(e){return e.provider===t&&e.spaceId===n}));return a&&a.config}({provider:t,spaceId:n});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var l=c.accessControl.function||{},p=Object.keys(l);if(0===p.length)return!0;var d=function(e,t){for(var n,i,a,r=0;r-1&&(i=o):a=o:n=o}return n||i||a}(p,i);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===r&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("\u6b64\u5e94\u7528[appId: ".concat(r,", platform: ").concat(u,"]\u4e0d\u5728\u4e91\u7aef\u914d\u7f6e\u7684\u5141\u8bb8\u8bbf\u95ee\u7684\u5e94\u7528\u5217\u8868\u5185\uff0c\u53c2\u8003\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),en(Zt)}({provider:o,spaceId:s,functionName:u})?new tn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(a,"result",{get:function(){return console.warn("\u5f53\u524d\u8fd4\u56de\u7ed3\u679c\u4e3aPromise\u7c7b\u578b\uff0c\u4e0d\u53ef\u76f4\u63a5\u8bbf\u95ee\u5176result\u5c5e\u6027\uff0c\u8be6\u60c5\u8bf7\u53c2\u8003\uff1ahttps://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),a.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}tn="mp-weixin"!==V&&"app"!==V?function(){return(0,m.default)((function e(){throw(0,h.default)(this,e),en({message:"Platform ".concat(V," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,h.default)(this,e),en({message:"Platform ".concat(V," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var sn=Symbol("CLIENT_DB_INTERNAL");function un(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=sn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,i){if("_uniClient"===n)return null;if("symbol"==(0,s.default)(n))return e[n];if(n in e||"string"!=typeof n){var a=e[n];return"function"==typeof a?a.bind(e):a}return t.get(e,n,i)}})}function cn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}var ln=["db.Geo","db.command","command.aggregate"];function pn(e,t){return ln.indexOf("".concat(e,".").concat(t))>-1}function dn(e){switch(D(e)){case"array":return e.map((function(e){return dn(e)}));case"object":return e._internalType===sn||Object.keys(e).forEach((function(t){e[t]=dn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function fn(e){return e&&e.content&&e.content.$method}var gn=function(){function e(t,n,i){(0,h.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=i}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:dn(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=fn(e),n=fn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===fn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=fn(e),n=fn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return hn({$method:e,$param:dn(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\u7981\u6b62\u4f7f\u7528set\u65b9\u6cd5")}}},{key:"_send",value:function(e,t){var n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:dn(t)}),this._database._callCloudFunction({action:n,command:i})}}]),e}();function hn(e,t,n){return un(new gn(e,t,n),{get:function(e,t){var i="db";return e&&e.content&&(i=e.content.$method),pn(i,t)?hn({$method:t},e,n):function(){return hn({$method:t,$param:dn(Array.from(arguments))},e,n)}}})}function mn(e){var t=e.path,n=e.method;return function(){function e(){(0,h.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,u.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return un(new e(t),{get:function(e,t){return pn("db",t)?hn({$method:t},null,e):function(){return hn({$method:t,$param:dn(Array.from(arguments))},null,e)}}})}var yn=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,h.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,i=e.command,a=e.multiCommand,r=e.queryList;function o(e,t){if(a&&r)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,i=void 0===n?{}:n,a=t.isJQL,r=void 0!==a&&a;(0,h.default)(this,e),this._uniClient=i,this._authCallBacks={},this._dbCallBacks={},i._isDefault&&(this._dbCallBacks=W("_globalUniCloudDatabaseCallback")),r||(this.auth=cn(this._authCallBacks)),this._isJQL=r,Object.assign(this,cn(this._dbCallBacks)),this.env=un({},{get:function(e,t){return{$env:t}}}),this.Geo=un({},{get:function(e,t){return mn({path:["Geo"],method:t})}}),this.serverDate=mn({path:[],method:"serverDate"}),this.RegExp=mn({path:[],method:"RegExp"})}return(0,m.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv\u53c2\u6570\u9519\u8bef");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend\u53ea\u652f\u6301\u5b50\u547d\u4ee4\u5185\u4f7f\u7528getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),bn="token\u65e0\u6548\uff0c\u8df3\u8f6c\u767b\u5f55\u9875\u9762",Tn="token\u8fc7\u671f\uff0c\u8df3\u8f6c\u767b\u5f55\u9875\u9762",xn={TOKEN_INVALID_TOKEN_EXPIRED:Tn,TOKEN_INVALID_INVALID_CLIENTID:bn,TOKEN_INVALID:bn,TOKEN_INVALID_WRONG_TOKEN:bn,TOKEN_INVALID_ANONYMOUS_USER:bn},_n={"uni-id-token-expired":Tn,"uni-id-check-token-failed":bn,"uni-id-token-not-exist":bn,"uni-id-check-device-feature-failed":bn};function wn(e,t){return(e?"".concat(e,"/").concat(t):t).replace(/^\//,"")}function kn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=[];return e.forEach((function(e){!0===e.needLogin?n.push(wn(t,e.path)):!1===e.needLogin&&i.push(wn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function Bn(e){return e.split("?")[0].replace(/^\//,"")}function Rn(){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 Sn(){return Bn(Rn())}function Ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,i=Bn(e);return n.some((function(e){return e.pagePath===i}))}var Pn,In=!!v.default.uniIdRouter,An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default,t=e.pages,n=void 0===t?[]:t,i=e.subPackages,a=void 0===i?[]:i,r=e.uniIdRouter,o=void 0===r?{}:r,s=e.tabBar,c=void 0===s?{}:s,l=o.loginPage,p=o.needLogin,d=void 0===p?[]:p,f=o.resToLogin,g=void 0===f||f,h=kn(n),m=h.needLoginPage,y=h.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var i=e.root,a=e.pages,r=kn(void 0===a?[]:a,i),o=r.needLoginPage,s=r.notNeedLoginPage;t.push.apply(t,(0,u.default)(o)),n.push.apply(n,(0,u.default)(s))})),{needLoginPage:t,notNeedLoginPage:n}}(a),T=b.needLoginPage,x=b.notNeedLoginPage;return{loginPage:l,routerNeedLogin:d,resToLogin:g,needLoginPage:[].concat((0,u.default)(m),(0,u.default)(T)),notNeedLoginPage:[].concat((0,u.default)(y),(0,u.default)(x)),loginPageInTabBar:Ln(l,c)}}(),Cn=An.loginPage,Dn=An.routerNeedLogin,On=An.resToLogin,En=An.needLoginPage,Nn=An.notNeedLoginPage,Fn=An.loginPageInTabBar;if(En.indexOf(Cn)>-1)throw new Error("Login page [".concat(Cn,'] should not be "needLogin", please check your pages.json'));function Un(e){var t=Sn();if("/"===e.charAt(0))return e;var n=e.split("?"),i=(0,o.default)(n,2),a=i[0],r=i[1],s=a.replace(/^\//,"").split("/"),u=t.split("/");u.pop();for(var c=0;c-1)&&(En.indexOf(t)>-1||Dn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function jn(e){var t=Bn(e.redirect),n=Bn(Cn);return Sn()!==n&&t!==n}function qn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&jn({redirect:n})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Cn,n);Fn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var a={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){a[t]({url:i})}),0)}}function Vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},i=function(){var e,t=ye(),n=t.token,i=t.tokenExpired;if(n){if(i0)return setTimeout((function(){ce(te,i)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function $n(){!function(){var e=Rn(),t=Vn({url:e}),n=t.abortLoginPageJump,i=t.autoToLoginPage;n||i&&qn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];uni.addInterceptor(n,{invoke:function(e){var t=Vn({url:e.url}),i=t.abortLoginPageJump,a=t.autoToLoginPage;return i?e:a?(qn({api:n,redirect:Un(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=oe(te);de().then((function(){var n=Rn();if(n&&jn({redirect:n}))return t.length>0?ce(te,Object.assign({uniIdRedirectUrl:n},e)):void(Cn&&qn({api:"navigateTo",redirect:n}))}))}(n)}))}function Wn(e){!function(e){e.onResponse=function(e){se(ee,e)},e.offResponse=function(e){ue(ee,e)}}(e),function(e){e.onNeedLogin=function(e){se(te,e)},e.offNeedLogin=function(e){ue(te,e)},In&&(W("_globalUniCloudStatus").needLoginInit||(W("_globalUniCloudStatus").needLoginInit=!0,de().then((function(){$n.call(e)})),On&&Hn.call(e)))}(e),function(e){e.onRefreshToken=function(e){se(ne,e)},e.offRefreshToken=function(e){ue(ne,e)}}(e)}var Kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",zn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Gn(){var e,t,n=ye().token||"",i=n.split(".");if(!n||3!==i.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=i[1],decodeURIComponent(Pn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("\u83b7\u53d6\u5f53\u524d\u7528\u6237\u4fe1\u606f\u51fa\u9519\uff0c\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\u4e3a\uff1a"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Pn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!zn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",r=0;r>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var Jn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(w((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function r(e,t,i){var a=i.onChooseFile,r=i.onUploadProgress;return t.then((function(e){if(a){var t=a(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var r=t.tempFiles,o=r.length,s=0;return new Promise((function(n){for(;s=o)!r.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=r[i];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,a&&a(e)}}).then((function(e){c.url=e.fileID,i0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?r(e,function(e){var t=e.count,n=e.sizeType,r=e.sourceType,o=void 0===r?["album","camera"]:r,s=e.extension;return new Promise((function(e,r){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(a(t,"image"))},fail:function(e){r({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?r(e,function(e){var t=e.camera,n=e.compressed,r=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:s,extension:u,success:function(t){var n=t.tempFilePath,i=t.duration,r=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:r,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):r(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,r){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return r({errMsg:i+" \u8bf7\u6307\u5b9a type \u7c7b\u578b\uff0c\u8be5\u5e73\u53f0\u4ec5\u652f\u6301\u9009\u62e9 image \u6216 video\u3002"});o({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){r({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Qn(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var i=!1,a=[],r=2;r0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,i=void 0!==n&&n,a=t.success,r=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,r=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=r.length0&&void 0!==arguments[0]?arguments[0]:{};i=i||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var a=i.action||this.action;a&&(n=n.action(a));var r=i.collection||this.collection;n=Array.isArray(r)?(t=n).collection.apply(t,(0,u.default)(r)):n.collection(r);var o=i.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=i.field||this.field;s&&(n=n.field(s));var c=i.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var l=i.groupby||this.groupby;l&&(n=n.groupBy(l));var p=i.groupField||this.groupField;p&&(n=n.groupField(p)),!0===(void 0!==i.distinct?i.distinct:this.distinct)&&(n=n.distinct());var d=i.orderby||this.orderby;d&&(n=n.orderBy(d));var f=void 0!==i.pageCurrent?i.pageCurrent:this.mixinDatacomPage.current,g=void 0!==i.pageSize?i.pageSize:this.mixinDatacomPage.size,h=void 0!==i.getcount?i.getcount:this.getcount,m=void 0!==i.gettree?i.gettree:this.gettree,v=void 0!==i.gettreepath?i.gettreepath:this.gettreepath,y={getCount:h},b={limitLevel:void 0!==i.limitlevel?i.limitlevel:this.limitlevel,startWith:void 0!==i.startwith?i.startwith:this.startwith};return m&&(y.getTree=b),v&&(y.getTreePath=b),n=n.skip(g*(f-1)).limit(g).get(y)}}}}function Yn(e){return W("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Xn(){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,c.default)(a.default.mark((function e(){var t,n,i,r,o,s,u,c=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.openid,i=t.callLoginByWeixin,r=void 0!==i&&i,o=Yn(this),"mp-weixin"===V){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(V,"`"));case 4:if(!n||!r){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(o.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){uni.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return s=e.sent,u=this.importObject("uni-id-co",{customUI:!0}),e.next=14,u.secureNetworkHandshakeByWeixin({code:s,callLoginByWeixin:r});case 14:return o.mpWeixinCode=s,e.abrupt("return",{code:s});case 16:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ei(e){return ti.apply(this,arguments)}function ti(){return(ti=(0,c.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Yn(this),e.abrupt("return",(n.initPromise||(n.initPromise=Xn.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ni(e){var t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((function(i,a){t[e](x(x({},n),{},{success:function(e){i(e)},fail:function(e){a(e)}}))}))}}var ii=function(e){(0,p.default)(i,e);var t,n=_(i);function i(){var e;return(0,h.default)(this,i),(e=n.call(this))._uniPushMessageCallback=e._receivePushMessage.bind((0,r.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(i,[{key:"init",value:function(){var e=this;return Promise.all([ni("getSystemInfo")(),ni("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,o.default)(t,2),i=n[0],a=(i=void 0===i?{}:i).appId,r=n[1],s=(r=void 0===r?{}:r).cid;if(!a)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");e._appId=a,e._pushClientId=s,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:(t=(0,c.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,i=t.messageId,a=t.message;this._payloadQueue.push({action:n,messageId:i,message:a}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,i=e.message;"end"===t?this._end({messageId:n,message:i}):"message"===t&&this._appendMessage({messageId:n,message:i})}},{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(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.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")}}]),i}(function(){function e(){(0,h.default)(this,e),this._callback={}}return(0,m.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var i=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(i,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,i=new Array(n>1?n-1:0),a=1;a0)return e.init(t).database();if(this._database)return this._database;var n=vn(yn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=vn(yn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=Gn,e.chooseAndUploadFile=Jn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Qn(e)}}),e.SSEChannel=ii,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,i=t.callLoginByWeixin,a=void 0!==i&&i;return ei.call(e,{openid:n,callLoginByWeixin:a})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,s.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"\u52a0\u8f7d\u4e2d...",mask:!0},errorOptions:{type:"modal",retry:!1}},n),r=i.customUI,o=i.loadingOptions,u=i.errorOptions,l=i.parseSystemError,p=!r;return new Proxy({},{get:function(i,r){switch(r){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,i=e.getCallbackArgs;return(0,c.default)(a.default.mark((function e(){var r,o,s,u,c,l,p=arguments;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=p.length,o=new Array(r),s=0;s0&&void 0!==u[0]?u[0]:{},n=t.title,i=t.content,r=t.showCancel,o=t.cancelText,s=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:i,showCancel:r,cancelText:o,confirmText:s,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"\u63d0\u793a",content:B,showCancel:u.retry,cancelText:"\u53d6\u6d88",confirmText:u.retry?"\u91cd\u8bd5":"\u786e\u5b9a"});case 33:if(R=i.sent,S=R.confirm,!u.retry||!S){i.next=37;break}return i.abrupt("return",d.apply(void 0,h));case 37:throw(L=new me({subject:T,code:_,message:w,requestId:f.requestId})).detail=f.result,ce(ee,{type:re,content:L}),L;case 39:return i.abrupt("return",(ce(ee,{type:re,content:f.result}),f.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function d(){return i.apply(this,arguments)}return d}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:r,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var i=this,a=!1;if("callFunction"===t){var r=n&&n.type||L;a=r!==L}var o="callFunction"===t&&!a,s=this._initPromiseHub.exec(),u=fe(n=n||{}),c=u.success,l=u.fail,p=u.complete,d=s.then((function(){return a?Promise.resolve():Q(Y(t,"invoke"),n)})).then((function(){return e.call(i,n)})).then((function(e){return a?Promise.resolve(e):Q(Y(t,"success"),e).then((function(){return Q(Y(t,"complete"),e)})).then((function(){return o&&ce(ee,{type:ae,content:e}),Promise.resolve(e)}))}),(function(e){return a?Promise.reject(e):Q(Y(t,"fail"),e).then((function(){return Q(Y(t,"complete"),e)})).then((function(){return ce(ee,{type:ae,content:e}),Promise.reject(e)}))}));if(!(c||l||p))return d;d.then((function(e){c&&c(e),p&&p(e),o&&ce(ee,{type:ae,content:e})}),(function(e){l&&l(e),p&&p(e),o&&ce(ee,{type:ae,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());!function(){var e=$,t={};if(e&&1===e.length)t=e[0],(ri=ri.init(t))._isDefault=!0;else{var n;n=e&&e.length>0?"\u5e94\u7528\u6709\u591a\u4e2a\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u901a\u8fc7uniCloud.init\u65b9\u6cd5\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u670d\u52a1\u7a7a\u95f4":"\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u5728uniCloud\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){ri[e]=function(){return console.error(n),Promise.reject(new me({code:"SYS_ERR",message:n}))}}))}Object.assign(ri,{get mixinDatacom(){return Qn(ri)}}),Wn(ri),ri.addInterceptor=G,ri.removeInterceptor=J,ri.interceptObject=X}();var oi=ri;t.default=oi}).call(this,n(26).default)},26:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return weex.requireModule(e)}},27:function(e,t,n){var i=n(34),a=n(35),r=n(10),o=n(36);e.exports=function(e){return i(e)||a(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},28:function(e,t,n){(function(e){var t=n(13),i=n(14),a=n(4),r=n(6),o=n(7),s=n(0),u=n(8);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}var l=uni.getSystemInfoSync(),p="__UNI__5D0ED80",d=function(e,t){var n=uni.getStorageSync("$$STAT__DBDATA:"+p)||{};n||(n={}),n[e]=t,uni.setStorageSync("$$STAT__DBDATA:"+p,n)},f=function(e){var t=uni.getStorageSync("$$STAT__DBDATA:"+p)||{};if(!t[e]){var n=uni.getStorageSync("$$STAT__DBDATA:"+p);if(n||(n={}),!n[e])return;t[e]=n[e]}return t[e]},g=function(e){var t=uni.getStorageSync("$$STAT__DBDATA:"+p)||{};(t[e]||(t=uni.getStorageSync("$$STAT__DBDATA:"+p))[e])&&(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+p,t))},h={version:"2",enable:!0},m={},v=n(44).default.pages;for(var y in v){var b,T=v[y],x=T.navigationBarTitleText||T.defaultTitle||(null===(b=T.navigationBar)||void 0===b?void 0:b.titleText)||"";x&&(m[y]=x)}function _(){var e="";if("n"===R()){try{e=plus.runtime.getDCloudId()}catch(t){e=""}return e}try{e=uni.getStorageSync("__DC_STAT_UUID")}catch(t){e="__DC_UUID_VALUE"}if(!e){e=Date.now()+""+Math.floor(1e7*Math.random());try{uni.setStorageSync("__DC_STAT_UUID",e)}catch(e){uni.setStorageSync("__DC_STAT_UUID","__DC_UUID_VALUE")}}return e}var w,k,B={appid:"__UNI__5D0ED80"},R=function(){var e,t=(u(e={app:"n","app-plus":"n",h5:"h5","mp-weixin":"wx"},["y","a","p","mp-ali"].reverse().join(""),"ali"),u(e,"mp-baidu","bd"),u(e,"mp-toutiao","tt"),u(e,"mp-qq","qq"),u(e,"quickapp-native","qn"),u(e,"mp-kuaishou","ks"),u(e,"mp-lark","lark"),u(e,"quickapp-webview","qw"),e);if("ali"===t["app-plus"]&&my&&my.env){var n=my.env.clientName;if("ap"===n)return"ali";if("dingtalk"===n)return"dt"}return t["app-plus"]},S=function(e){var t=R(),n="";return e||("wx"===t&&(n=uni.getLaunchOptionsSync().scene),n)},L=function(e){var t=e||I();if("bd"===R()){var n=t.$mp&&t.$mp.page&&t.$mp.page.is,i=t.$scope&&t.$scope.is;return n||i||""}return t.route||t.$scope&&t.$scope.route||t.$mp&&t.$mp.page.route},P=function(e){var t=e&&(e.$page||e.$scope&&e.$scope.$page),n=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return t?"/"===t.fullPath?t.route:t.fullPath||t.route:n||""},I=function(){var e=getCurrentPages(),t=e[e.length-1];return t?t.$vm:null},A=function(e){return"page"===e.mpType||"page"===e.$mpType||e.$mp&&"page"===e.$mp.mpType||"page"===e.$options.mpType?"page":"app"===e.mpType||"app"===e.$mpType||e.$mp&&"app"===e.$mp.mpType||"app"===e.$options.mpType?"app":null},C=function(e){var t=[],n=[],i=[],a=function(a){e[a].forEach((function(e){var r;r=e,0===a?t.push(r):3===a?i.push(r):n.push(r)}))};for(var r in e)a(r);return t.push.apply(t,n.concat(i)),JSON.stringify(t)},D=function(e){return m&&m[e]||""},O=function(e){var t={usv:"4.15",conf:JSON.stringify({ak:"__UNI__5D0ED80"})};uni.request({url:"https://tongji.dcloud.io/uni/stat",method:"GET",data:t,success:function(t){var n=t.data;0===n.ret&&"function"==typeof e&&e({enable:n.enable})},fail:function(t){var n=1;try{n=uni.getStorageSync("Report_Status")}catch(t){n=1}""===n&&(n=1),"function"==typeof e&&e({enable:n})}})},E=function(){if(h.collectItems){var e=h.collectItems.uniStatPageLog;return void 0===e||("boolean"!=typeof e||e)}return!0},N=function(){return parseInt((new Date).getTime()/1e3)},F=function(){var e=f("__first__visit__time"),t=0;return e?t=e:(t=N(),d("__first__visit__time",t),g("__last__visit__time")),t},U=0,M=0,j=function(){return U=N(),d("__page__residence__time",U),U},q=function(){var e=f("__total__visit__count"),t=1;return e&&(t=e,t++),d("__total__visit__count",t),t},V=function(){var e=N();return d("__first_time",e)},$=function(e){var t=0,n=f("__first_time"),i=N();return 0!==n&&(t=i-n),t=t<1?1:t,"app"===e?{residenceTime:t,overtime:t>300}:"page"===e?{residenceTime:t,overtime:t>1800}:{residenceTime:t}},H=function(e){var t=h.reportInterval;if(0===Number(t))return 0;return/(^[1-9]\d*$)/.test(t=t||e)?Number(t):e}(10),W={uuid:l.deviceId||_(),ak:B.appid,p:"android"===l.platform?"a":"i",ut:R(),mpn:(k="","wx"!==R()&&"qq"!==R()||uni.canIUse("getAccountInfoSync")&&(k=uni.getAccountInfoSync().miniProgram.appId||""),R(),k),usv:"4.15",v:"n"===R()?plus.runtime.version:"",ch:(w="","n"===R()&&(w=plus.runtime.channel),w),cn:"",pn:"",ct:"",t:N(),tt:"",brand:l.brand||"",md:l.model,sv:l.system.replace(/(Android|iOS)\s/,""),mpsdk:l.SDKVersion||"",mpv:l.version||"",lang:l.language,pr:l.pixelRatio,ww:l.windowWidth,wh:l.windowHeight,sw:l.screenWidth,sh:l.screenHeight},K=function(n){"use strict";t(a,n);var i=c(a);function a(){return r(this,a),i.call(this)}return o(a,[{key:"pushEvent",value:function(e){var t=this,n=function(){if(h.collectItems){var e=h.collectItems.uniPushClientID;return"boolean"==typeof e&&e}return!1}();uni.getPushClientId&&n&&uni.getPushClientId({success:function(n){var i=n.cid||!1;i&&t.sendPushRequest(e,i)}})}},{key:"launch",value:function(e,t){j(),this.__licationShow=!0,d("__launch_options",e),e.cst=1,this.sendReportRequest(e,!0)}},{key:"load",value:function(e,t){this.self=t,this._query=e}},{key:"appHide",value:function(e){this.applicationHide(e,!0)}},{key:"appShow",value:function(e){this.applicationShow(e)}},{key:"show",value:function(e){(this.self=e,"page"===A(e))&&(E()&&this.pageShow(e));"app"===A(e)&&this.appShow()}},{key:"hide",value:function(e){(this.self=e,"page"===A(e))&&(E()&&this.pageHide(e));"app"===A(e)&&this.appHide()}},{key:"error",value:function(e){var t="";t=e.message?e.stack:JSON.stringify(e);var n="";try{n=get_route()}catch(e){n=""}var i={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"31",url:n,ut:this.statData.ut,ch:this.statData.ch,mpsdk:this.statData.mpsdk,mpv:this.statData.mpv,v:this.statData.v,em:t,usv:this.statData.usv,t:parseInt((new Date).getTime()/1e3)};this.request(i)}}],[{key:"getInstance",value:function(){uni.__stat_instance||(uni.__stat_instance=new a);var t,n,i,r,o,s,u,c=(t=e.config,i=(n={}||{}).spaceId,o=n.clientSecret,s=n.secretKey,u=n.secretId,-1!==["tcb","tencent","aliyun","alipay"].indexOf(r=n.provider)&&("aliyun"===r&&i&&o||("tcb"===r||"tencent"===r)&&i||"alipay"===r&&i&&s&&u)?n:t&&t.spaceId?t:null);if(!uni.__stat_uniCloud_space)if(c&&0!==Object.keys(c).length){var l={provider:c.provider,spaceId:c.spaceId,clientSecret:c.clientSecret};c.endpoint&&(l.endpoint=c.endpoint),"alipay"===c.provider&&(l.secretKey=c.secretKey,l.accessKey=c.accessKey||c.secretId,l.spaceAppId=c.spaceAppId||c.appId),uni.__stat_uniCloud_space=e.init(l)}else console.error("\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u5728uniCloud\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4");return uni.__stat_instance}}]),a}(function(){"use strict";function e(){r(this,e),this.self="",this.__licationShow=!1,this.__licationHide=!1,this.statData=W,this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._query={},"function"==typeof uni.addInterceptor&&(this.addInterceptorInit(),this.interceptLogin(),this.interceptShare(!0),this.interceptRequestPayment())}return o(e,[{key:"addInterceptorInit",value:function(){var e=this;uni.addInterceptor("setNavigationBarTitle",{invoke:function(t){e._navigationBarTitle.page=t.title}})}},{key:"interceptLogin",value:function(){var e=this;uni.addInterceptor("login",{complete:function(){e._login()}})}},{key:"interceptShare",value:function(e){var t=this;e?uni.addInterceptor("share",{success:function(){t._share()},fail:function(){t._share()}}):t._share()}},{key:"interceptRequestPayment",value:function(){var e=this;uni.addInterceptor("requestPayment",{success:function(){e._payment("pay_success")},fail:function(){e._payment("pay_fail")}})}},{key:"_login",value:function(){this.sendEventRequest({key:"login"},0)}},{key:"_share",value:function(){this.sendEventRequest({key:"share"},0)}},{key:"_payment",value:function(e){this.sendEventRequest({key:e},0)}},{key:"applicationShow",value:function(){if(this.__licationHide){if($("app").overtime){var e={path:uni.getStorageSync("_STAT_LAST_PAGE_ROUTE"),scene:this.statData.sc,cst:2};this.sendReportRequest(e)}this.__licationHide=!1}}},{key:"applicationHide",value:function(e,t){e||(e=I()),this.__licationHide=!0;var n=$(),i=P(e);uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",i),this.sendHideRequest({urlref:i,urlref_ts:n.residenceTime},t),V()}},{key:"pageShow",value:function(e){this._navigationBarTitle={config:"",page:"",report:"",lt:""};var t=P(e),n=L(e);if(this._navigationBarTitle.config=D(n),this.__licationShow)return V(),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",t),void(this.__licationShow=!1);if($("page").overtime){var i={path:t,scene:this.statData.sc,cst:3};this.sendReportRequest(i)}V()}},{key:"pageHide",value:function(e){if(!this.__licationHide){var t=$("page"),n=P(e),i=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return i||(i=n),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",n),void this.sendPageRequest({url:n,urlref:i,urlref_ts:t.residenceTime})}}},{key:"sendReportRequest",value:function(e,t){this._navigationBarTitle.lt="1",this._navigationBarTitle.config=D(e.path);var n,i,a,r=e.query&&"{}"!==JSON.stringify(e.query)?"?"+JSON.stringify(e.query):"",o=(n=f("__last__visit__time"),i=0,n&&(i=n),d("__last__visit__time",N()),i);if(0!==o||!o){var s=function(e){var t="";if("n"===R()){try{t=plus.device.uuid}catch(e){t=""}return t}return l.deviceId||_()}();(a=f("is_handle_device_id")||"",d("is_handle_device_id","1"),"1"===a)||(this.statData.odid=s)}Object.assign(this.statData,{lt:"1",url:e.path+r||"",t:N(),sc:S(e.scene),fvts:F(),lvts:o,tvc:q(),cst:e.cst||1}),"n"===R()?this.getProperty(t):this.getNetworkInfo(t)}},{key:"sendPageRequest",value:function(e){var t=e.url,n=e.urlref,i=e.urlref_ts;this._navigationBarTitle.lt="11";var a={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"11",ut:this.statData.ut,url:t,tt:this.statData.tt,urlref:n,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:N()};this.request(a)}},{key:"sendHideRequest",value:function(e,t){var n=e.urlref,i=e.urlref_ts,a={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"3",ut:this.statData.ut,urlref:n,urlref_ts:i,ch:this.statData.ch,usv:this.statData.usv,t:N()};this.request(a,t)}},{key:"sendEventRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=void 0===t?"":t,i=e.value,a=void 0===i?"":i,r="";try{r=L()}catch(e){var o=f("__launch_options");r=o.path}this._navigationBarTitle.config=D(r),this._navigationBarTitle.lt="21";var u={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"21",ut:this.statData.ut,url:r,ch:this.statData.ch,e_n:n,e_v:"object"===s(a)?JSON.stringify(a):a.toString(),usv:this.statData.usv,t:N()};this.request(u)}},{key:"sendPushRequest",value:function(e,t){var n=this,i=N(),a={lt:"101",cid:t,t:i,ut:this.statData.ut};var r={usv:"4.15",t:i,requests:C({101:[a]})};"n"!==R()||"a"!==this.statData.p?this.sendRequest(r):setTimeout((function(){n.sendRequest(r)}),200)}},{key:"getProperty",value:function(e){var t=this;plus.runtime.getProperty(plus.runtime.appid,(function(n){t.statData.v=n.version||"",t.getNetworkInfo(e)}))}},{key:"getNetworkInfo",value:function(e){var t=this;uni.getNetworkType({success:function(n){t.statData.net=n.networkType,t.getLocation(e)}})}},{key:"getLocation",value:function(e){var t=this;B.getLocation?uni.getLocation({type:"wgs84",geocode:!0,success:function(n){n.address&&(t.statData.cn=n.address.country,t.statData.pn=n.address.province,t.statData.ct=n.address.city),t.statData.lat=n.latitude,t.statData.lng=n.longitude,t.request(t.statData,e)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData,e))}},{key:"request",value:function(e,t){var n=this,i=N(),a=this._navigationBarTitle;Object.assign(e,{ttn:a.page,ttpj:a.config,ttc:a.report});var r=f("__UNI__STAT__DATA")||{};if(r[e.lt]||(r[e.lt]=[]),r[e.lt].push(e),d("__UNI__STAT__DATA",r),!((M=N(),U=f("__page__residence__time"),M-U)864e5&&O((function(e){var t=e.enable;uni.setStorageSync("Report_Data_Time",i),uni.setStorageSync("Report_Status",t)}))):O((function(t){var n=t.enable;uni.setStorageSync("Report_Data_Time",i),uni.setStorageSync("Report_Status",n),1===n&&e()}))}))}},{key:"sendRequest",value:function(e){uni.__stat_uniCloud_space?uni.__stat_uniCloud_space.importObject("uni-stat-receiver",{customUI:!0}).report(e).then((function(){0})).catch((function(e){0})):console.error("\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u7edf\u8ba1\u4e0a\u62a5\u5931\u8d25\uff0c\u8bf7\u5728uniCloud\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4.")}},{key:"imageRequest",value:function(e){this.getIsReportData().then((function(){var t=new Image,n=function(e){var t=Object.keys(e).sort(),n={},i="";for(var a in t)n[t[a]]=e[t[a]],i+=t[a]+"="+e[t[a]]+"&";return{sign:"",options:i.substr(0,i.length-1)}}(function(e){var t={};for(var n in e)t[n]=encodeURIComponent(e[n]);return t}(e)).options;t.src="https://tongji.dcloud.io/uni/stat.gif?"+n}))}},{key:"sendEvent",value:function(e,t){var n,i;(i=t,(n=e)?"string"!=typeof n?(console.error("uni.report [eventName] Parameter type error, it can only be of type String"),1):n.length>255?(console.error("uni.report [eventName] Parameter length cannot be greater than 255"),1):"string"!=typeof i&&"object"!==s(i)?(console.error("uni.report [options] Parameter type error, Only supports String or Object type"),1):"string"==typeof i&&i.length>255?(console.error("uni.report [options] Parameter length cannot be greater than 255"),1):"title"===n&&"string"!=typeof i?(console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String"),1):void 0:(console.error("uni.report Missing [eventName] parameter"),1))||("title"!==e?this.sendEventRequest({key:e,value:"object"===s(t)?JSON.stringify(t):t},1):this._navigationBarTitle.report=t)}}]),e}()).getInstance(),z=!1,G={onLaunch:function(e){K.launch(e,this),K.pushEvent(e)},onLoad:function(e){if(K.load(e,this),this.$scope&&this.$scope.onShareAppMessage){var t=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(e){return K.interceptShare(!1),t.call(this,e)}}},onShow:function(){z=!1,K.show(this)},onHide:function(){z=!0,K.hide(this)},onUnload:function(){z?z=!1:K.hide(this)},onError:function(e){K.error(e)}};function J(){var e=n(45);(e.default||e).mixin(G),uni.report=function(e,t){K.sendEvent(e,t)}}J()}).call(this,n(25).default)},29:function(e,t,n){var i=n(0),a=n(30)();e.exports=a;try{regeneratorRuntime=a}catch(e){"object"===("undefined"==typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},290:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={uLink:n(92).default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true"}},[n("view",{staticClass:["uni-container"]},[e.showSetTabBarPage?[n("set-tab-bar",{on:{unmount:e.leaveSetTabBarPage}})]:[e.hasLeftWin?e._e():n("view",{staticClass:["uni-header-logo"]},[n("u-image",{staticClass:["uni-header-image"],attrs:{src:"/static/apiIndex.png"}})],1),e.hasLeftWin?e._e():n("view",{staticClass:["uni-hello-text"]},[n("u-text",{staticClass:["hello-text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\u4ee5\u4e0b\u5c06\u6f14\u793auni-app\u63a5\u53e3\u80fd\u529b\uff0c\u8be6\u7ec6\u6587\u6863\u89c1\uff1a")]),n("u-link",{staticClass:["hello-link"],attrs:{href:"https://uniapp.dcloud.io/api/",text:"https://uniapp.dcloud.io/api/",inWhiteList:!0}})],1),e._l(e.list,(function(t,i){return n("view",{key:t.id,staticClass:["uni-panel"]},[n("view",{staticClass:["uni-panel-h"],class:t.open?"uni-panel-h-on":"",on:{click:function(n){e.triggerCollapse(i,t.id)}}},[n("u-text",{staticClass:["uni-panel-text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(t.name))]),n("u-text",{staticClass:["uni-panel-icon","uni-icon"],class:t.open?"uni-panel-icon-on":"",appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(t.pages?"\ue581":"\ue470"))])]),t.open?n("view",{staticClass:["uni-panel-c"]},e._l(t.pages,(function(i,a){return n("view",{key:a,staticClass:["uni-navigate-item"],class:{"left-win-active":e.leftWinActive===i.url&&e.hasLeftWin,"pc-hide":"\u8bbe\u7f6eTabBar"===i.name&&e.hasLeftWin},attrs:{url:t.url},on:{click:function(n){e.goDetailPage(t.id,i.url)}}},[n("u-text",{staticClass:["uni-navigate-text"],appendAsTree:!0,attrs:{append:"tree"}},[e._v(e._s(i.name?i.name:i))]),n("u-text",{staticClass:["uni-navigate-icon","uni-icon"],appendAsTree:!0,attrs:{append:"tree"}},[e._v("\ue470")])])})),0):e._e()])}))]],2)])},r=[]},3:function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},30:function(e,t,n){var i=n(0).default;function a(){"use strict";e.exports=a=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},r=Object.prototype,o=r.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var a=t&&t.prototype instanceof b?t:b,r=Object.create(a.prototype),o=new C(i||[]);return s(r,"_invoke",{value:L(e,n,o)}),r}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var h="suspendedStart",m="executing",v="completed",y={};function b(){}function T(){}function x(){}var _={};d(_,c,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==r&&o.call(k,c)&&(_=k);var B=x.prototype=b.prototype=Object.create(_);function R(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(a,r,s,u){var c=g(e[a],e,r);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==i(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var a;s(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,a){n(e,i,t,a)}))}return a=a?a.then(r,r):r()}})}function L(e,n,i){var a=h;return function(r,o){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===r)throw o;return{value:t,done:!0}}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var u=P(s,i);if(u){if(u===y)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===h)throw a=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=m;var c=g(e,n,i);if("normal"===c.type){if(a=i.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=v,i.method="throw",i.arg=c.arg)}}}function P(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var r=g(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function I(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function n(){for(;++a=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var u=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:D(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},n}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},31:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},317:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}));var i={pageHead:n(394).default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("view",{staticClass:["uni-padding-wrap"]},[n("page-head",{attrs:{title:e.title}}),n("button",{staticClass:["button"],on:{click:e.setTabBarBadge}},[e._v(e._s(e.hasSetTabBarBadge?"\u79fb\u9664tab\u5fbd\u6807":"\u8bbe\u7f6etab\u5fbd\u6807"))]),n("button",{staticClass:["button"],on:{click:e.showTabBarRedDot}},[e._v(e._s(e.hasShownTabBarRedDot?"\u79fb\u9664\u7ea2\u70b9":"\u663e\u793a\u7ea2\u70b9"))]),n("button",{staticClass:["button"],on:{click:e.customStyle}},[e._v(e._s(e.hasCustomedStyle?"\u79fb\u9664\u81ea\u5b9a\u4e49\u6837\u5f0f":"\u81ea\u5b9a\u4e49Tab\u6837\u5f0f"))]),n("button",{staticClass:["button"],on:{click:e.customItem}},[e._v(e._s(e.hasCustomedItem?"\u79fb\u9664\u81ea\u5b9a\u4e49\u4fe1\u606f":"\u81ea\u5b9a\u4e49Tab\u4fe1\u606f"))]),n("button",{staticClass:["button"],on:{click:e.hideTabBar}},[e._v(e._s(e.hasHiddenTabBar?"\u663e\u793aTabBar":"\u9690\u85cfTabBar"))]),n("view",{staticClass:["btn-area"]},[n("button",{staticClass:["button"],attrs:{type:"primary"},on:{click:e.navigateBack}},[e._v("\u8fd4\u56de\u4e0a\u4e00\u7ea7")])],1)],1)},r=[]},32:function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r,o,s=[],u=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},33:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},332:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement,t=this._self._c||e;return t("view",{staticClass:["common-page-head"]},[t("view",{staticClass:["common-page-head-title"]},[t("u-text",[this._v(this._s(this.title))])])])},a=[]},34:function(e,t,n){var i=n(11);e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},344:function(e,t,n){"use strict";n.r(t);var i=n(157),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},345:function(e,t,n){"use strict";n.r(t);var i=n(158),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},35:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},36:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},37:function(e,t){function n(e,t,n,i,a,r,o){try{var s=e[r](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(i,a)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(a,r){var o=e.apply(t,i);function s(e){n(o,a,r,s,u,"next",e)}function u(e){n(o,a,r,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},38:function(e,t,n){var i=n(0).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},39:function(e,t,n){var i=n(4),a=n(3),r=n(40),o=n(41);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!r(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(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},392:function(e,t,n){"use strict";n.r(t);n(28),n(46),n(48);var i=n(106);i.default.mpType="page",i.default.route="pages/tabBar/API/API",i.default.el="#root",new Vue(i.default)},393:function(e,t,n){"use strict";n.r(t);var i=n(317),a=n(155);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n(1);var s=Object(o.a)(a.default,i.b,i.c,!1,null,null,"3c75469e",!1,i.a,void 0);(function(e){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(n(344).default,this.options.style):Object.assign(this.options.style,n(344).default)}).call(s),t.default=s.exports},394:function(e,t,n){"use strict";n.r(t);var i=n(332),a=n(153);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);var o=n(1),s=Object(o.a)(a.default,i.b,i.c,!1,null,null,"2ca972df",!1,i.a,void 0);t.default=s.exports},4:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},40:function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},41:function(e,t,n){var i=n(3),a=n(42);e.exports=function(e,t,n){if(a())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&i(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports},42:function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},43:function(e,t,n){"use strict";n.r(t),t.default={pages:[{path:"pages/advertisement/index/index",style:{navigationBarTitleText:"\u542f\u52a8\u9875",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/homePage/index/index",style:{navigationBarTitleText:"\u9996\u9875",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/advertisement/index/detail",style:{navigationBarTitleText:"\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/user/login/login",style:{navigationBarTitleText:"\u767b\u5f55",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/videoDetail",style:{navigationBarTitleText:"\u89c6\u9891\u4fe1\u606f\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/videoDetailOss",style:{navigationBarTitleText:"\u89c6\u9891\u4fe1\u606f\u8be6\u60c51",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/to",style:{navigationBarTitleText:"\u4e2d\u95f4\u9875\u9762",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/back",style:{navigationBarTitleText:"\u4e2d\u95f4\u8fd4\u56de\u9875\u9762",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/bookShop/orderList",style:{navigationBarTitleText:"\u6211\u7684\u8ba2\u5355",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/bookShop/orderLCont",style:{navigationBarTitleText:"\u6211\u7684\u8ba2\u5355\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/goods/order/index",style:{navigationBarTitleText:"\u786e\u8ba4\u8ba2\u5355",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/component/commonComponents/address/index",style:{navigationBarTitleText:"\u6536\u8d27\u5730\u5740",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/component/commonComponents/address/edit",style:{navigationBarTitleText:"\u6536\u8d27\u5730\u5740\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/mine/index",style:{navigationBarTitleText:"\u6211\u7684",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/userInfo/persData",style:{navigationBarTitleText:"\u4e2a\u4eba\u8d44\u6599",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/aboutUs/index",style:{navigationBarTitleText:"\u5173\u4e8e\u6211\u4eec",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/wallet/recharge/index",style:{navigationBarTitleText:"\u5145\u503c",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/wallet/index/index",style:{navigationBarTitleText:"\u5929\u533b\u5e01",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/wallet/jf/index",style:{navigationBarTitleText:"\u79ef\u5206",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/mine/set/index",style:{navigationBarTitleText:"\u8bbe\u7f6e",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/cate/index",style:{navigationBarTitleText:"\u5206\u7c7b\u8be6\u60c5",enablePullDownRefresh:!0,onReachBottomDistance:100,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/index/index",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8ba2\u5355",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/index",style:{navigationBarTitleText:"\u8bfe\u7a0b\u4fe1\u606f",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/goods/index/index",style:{navigationBarTitleText:"\u5546\u54c1\u4fe1\u606f",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/curriculum/order/curriculum/detail",style:{navigationBarTitleText:"\u8bfe\u7a0b\u4fe1\u606f\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/courseInformation/index/index",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8bbe\u7f6e",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/courseInformation/courseDescription/index",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8bbe\u7f6e\u5217\u8868",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/courseInformation/courseDescription/detail",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8bbe\u7f6e\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/courseInformation/courseDescription/detail",style:{navigationBarTitleText:"\u8bfe\u7a0b\u8bbe\u7f6e\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/medicaldes",style:{navigationBarTitleText:"\u5434\u95e8\u533b\u8ff0",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/zhuanzhuchuban",style:{navigationBarTitleText:"\u4e13\u8457\u51fa\u7248",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/xueshugongxianDetail",style:{navigationBarTitleText:"\u5b66\u672f\u8d21\u732e\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/homePage/index/noticeDetail",style:{navigationBarTitleText:"\u6d88\u606f\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/medicaldesDetail",style:{navigationBarTitleText:"\u533b\u8ff0\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/recordDetail",style:{navigationBarTitleText:"\u7eaa\u5b9e\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/medicaldes/video",style:{navigationBarTitleText:"\u533b\u8ff0\u8be6\u60c5",enablePullDownRefresh:!1,"app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/user/login/forget",style:{navigationBarTitleText:"\u5fd8\u8bb0\u5bc6\u7801","app-plus":{bounce:"none",titleNView:!1,popGesture:"none"}}},{path:"pages/tabBar/component/component",style:{navigationBarTitleText:"\u5185\u7f6e\u7ec4\u4ef6","app-plus":{bounce:"none",titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},nvue:!0},{path:"pages/tabBar/API/API",style:{navigationBarTitleText:"\u63a5\u53e3","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},nvue:!0},{path:"pages/tabBar/template/template",style:{navigationBarTitleText:"\u6a21\u7248","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},nvue:!0},{path:"pages/tabBar/extUI/extUI",style:{navigationBarTitleText:"\u6269\u5c55\u7ec4\u4ef6","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},nvue:!0},{path:"pages/component/view/view",style:{navigationBarTitleText:"view"}},{path:"pages/component/scroll-view/scroll-view",style:{navigationBarTitleText:"scroll-view"}},{path:"pages/component/swiper/swiper",style:{navigationBarTitleText:"swiper"}},{path:"pages/component/cover-view/cover-view",style:{navigationBarTitleText:"cover-view"},nvue:!0},{path:"pages/component/movable-view/movable-view",style:{navigationBarTitleText:"movable-view"}},{path:"pages/component/text/text",style:{navigationBarTitleText:"text"}},{path:"pages/component/rich-text/rich-text",style:{navigationBarTitleText:"rich-text"}},{path:"pages/component/progress/progress",style:{navigationBarTitleText:"progress"}},{path:"pages/component/button/button",style:{navigationBarTitleText:"button"}},{path:"pages/component/checkbox/checkbox",style:{navigationBarTitleText:"checkbox"}},{path:"pages/component/form/form",style:{navigationBarTitleText:"form"}},{path:"pages/component/input/input",style:{navigationBarTitleText:"input","app-plus":{softinputNavBar:"none"}},nvue:!0},{path:"pages/component/label/label",style:{navigationBarTitleText:"label"}},{path:"pages/component/picker/picker",style:{navigationBarTitleText:"picker"}},{path:"pages/component/picker-view/picker-view",style:{navigationBarTitleText:"picker-view"}},{path:"pages/component/radio/radio",style:{navigationBarTitleText:"radio"}},{path:"pages/component/slider/slider",style:{navigationBarTitleText:"slider"}},{path:"pages/component/switch/switch",style:{navigationBarTitleText:"switch"}},{path:"pages/component/textarea/textarea",style:{navigationBarTitleText:"textarea"}},{path:"pages/component/editor/editor",style:{navigationBarTitleText:"editor","app-plus":{softinputMode:"adjustResize"}}},{path:"pages/component/navigator/navigator",style:{navigationBarTitleText:"navigator"}},{path:"pages/component/navigator/navigate/navigate",style:{navigationBarTitleText:"navigatePage"}},{path:"pages/component/navigator/redirect/redirect",style:{navigationBarTitleText:"redirectPage"}},{path:"pages/component/image/image",style:{navigationBarTitleText:"image"}},{path:"pages/component/video/video",style:{navigationBarTitleText:"video"},nvue:!0},{path:"pages/component/map/map",style:{navigationBarTitleText:"map"},nvue:!0},{path:"pages/component/canvas/canvas",style:{navigationBarTitleText:"canvas"}},{path:"pages/component/web-view/web-view",style:{navigationBarTitleText:"web-view"}},{path:"pages/component/ad/ad",style:{navigationBarTitleText:"AD"}},{path:"pages/component/web-view-local/web-view-local",style:{}},{path:"platforms/app-plus/speech/speech",style:{navigationBarTitleText:"\u8bed\u97f3\u8bc6\u522b"}},{path:"platforms/app-plus/orientation/orientation",style:{navigationBarTitleText:"\u65b9\u5411\u4f20\u611f\u5668"}},{path:"platforms/app-plus/proximity/proximity",style:{navigationBarTitleText:"\u8ddd\u79bb\u4f20\u611f\u5668"}},{path:"platforms/app-plus/push/push",style:{navigationBarTitleText:"\u63a8\u9001"}},{path:"platforms/app-plus/shake/shake",style:{navigationBarTitleText:"\u6447\u4e00\u6447"}},{path:"pages/about/about",style:{navigationBarTitleText:"\u5173\u4e8e"}},{path:"platforms/app-plus/feedback/feedback",style:{navigationBarTitleText:"\u95ee\u9898\u53cd\u9988"}},{path:"uni_modules/uni-upgrade-center-app/pages/upgrade-popup",style:{"app-plus":{animationDuration:200,animationType:"fade-in",background:"transparent",backgroundColorTop:"transparent",popGesture:"none",scrollIndicator:!1,titleNView:!1},disableScroll:!0}},{path:"pages/advertisement/advertisement",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}],subPackages:[{root:"pages/API",pages:[{path:"login/login",style:{navigationBarTitleText:"\u6388\u6743\u767b\u5f55"}},{path:"subnvue/subnvue",style:{navigationBarTitleText:"\u539f\u751f\u5b50\u7a97\u4f53","app-plus":{}}},{path:"get-user-info/get-user-info",style:{navigationBarTitleText:"\u83b7\u53d6\u7528\u6237\u4fe1\u606f"}},{path:"request-payment/request-payment",style:{navigationBarTitleText:"\u53d1\u8d77\u652f\u4ed8"}},{path:"share/share",style:{navigationBarTitleText:"\u5206\u4eab"}},{path:"set-navigation-bar-title/set-navigation-bar-title",style:{navigationBarTitleText:"\u8bbe\u7f6e\u754c\u9762\u6807\u9898"}},{path:"show-loading/show-loading",style:{navigationBarTitleText:"\u52a0\u8f7d\u63d0\u793a\u6846"}},{path:"navigator/navigator",style:{navigationBarTitleText:"\u9875\u9762\u8df3\u8f6c"}},{path:"navigator/new-page/new-vue-page-1",style:{navigationBarTitleText:"\u65b0VUE\u9875\u97621"}},{path:"navigator/new-page/new-vue-page-2",style:{navigationBarTitleText:"\u65b0VUE\u9875\u97622"}},{path:"navigator/new-page/new-nvue-page-1",style:{navigationBarTitleText:"\u65b0NVUE\u9875\u97621"},nvue:!0},{path:"navigator/new-page/new-nvue-page-2",style:{navigationBarTitleText:"\u65b0NVUE\u9875\u97622"},nvue:!0},{path:"pull-down-refresh/pull-down-refresh",style:{navigationBarTitleText:"\u4e0b\u62c9\u5237\u65b0",enablePullDownRefresh:!0}},{path:"animation/animation",style:{navigationBarTitleText:"\u521b\u5efa\u52a8\u753b"}},{path:"get-node-info/get-node-info",style:{navigationBarTitleText:"\u8282\u70b9\u4fe1\u606f"}},{path:"intersection-observer/intersection-observer",style:{navigationBarTitleText:"\u8282\u70b9\u5e03\u5c40\u76f8\u4ea4\u72b6\u6001"}},{path:"canvas/canvas",style:{navigationBarTitleText:"\u521b\u5efa\u7ed8\u753b"}},{path:"action-sheet/action-sheet",style:{navigationBarTitleText:"\u64cd\u4f5c\u83dc\u5355"}},{path:"modal/modal",style:{navigationBarTitleText:"\u6a21\u6001\u5f39\u7a97"}},{path:"toast/toast",style:{navigationBarTitleText:"\u6d88\u606f\u63d0\u793a\u6846"}},{path:"get-network-type/get-network-type",style:{navigationBarTitleText:"\u83b7\u53d6\u8bbe\u5907\u7f51\u7edc\u72b6\u6001"}},{path:"get-system-info/get-system-info",style:{navigationBarTitleText:"\u83b7\u53d6\u8bbe\u5907\u7cfb\u7edf\u4fe1\u606f"}},{path:"add-phone-contact/add-phone-contact",style:{navigationBarTitleText:"\u6dfb\u52a0\u624b\u673a\u8054\u7cfb\u4eba"}},{path:"on-accelerometer-change/on-accelerometer-change",style:{navigationBarTitleText:"\u76d1\u542c\u52a0\u901f\u5ea6\u8ba1\u6570\u636e"}},{path:"on-compass-change/on-compass-change",style:{navigationBarTitleText:"\u76d1\u542c\u7f57\u76d8\u6570\u636e"}},{path:"make-phone-call/make-phone-call",style:{navigationBarTitleText:"\u6253\u7535\u8bdd"}},{path:"scan-code/scan-code",style:{navigationBarTitleText:"\u626b\u7801"}},{path:"clipboard/clipboard",style:{navigationBarTitleText:"\u526a\u8d34\u677f"}},{path:"request/request",style:{navigationBarTitleText:"\u7f51\u7edc\u8bf7\u6c42"}},{path:"upload-file/upload-file",style:{navigationBarTitleText:"\u4e0a\u4f20\u6587\u4ef6"}},{path:"download-file/download-file",style:{navigationBarTitleText:"\u4e0b\u8f7d\u6587\u4ef6"}},{path:"image/image",style:{navigationBarTitleText:"\u56fe\u7247"}},{path:"voice/voice",style:{navigationBarTitleText:"\u5f55\u97f3"}},{path:"inner-audio/inner-audio",style:{navigationBarTitleText:"\u97f3\u9891"}},{path:"background-audio/background-audio",style:{navigationBarTitleText:"\u80cc\u666f\u97f3\u9891"}},{path:"video/video",style:{navigationBarTitleText:"\u89c6\u9891"}},{path:"file/file",style:{navigationBarTitleText:"\u6587\u4ef6"}},{path:"map/map",style:{navigationBarTitleText:"map"},nvue:!0},{path:"map-search/map-search",style:{navigationBarTitleText:"map search"},nvue:!0},{path:"get-location/get-location",style:{navigationBarTitleText:"\u83b7\u53d6\u4f4d\u7f6e"}},{path:"open-location/open-location",style:{navigationBarTitleText:"\u67e5\u770b\u4f4d\u7f6e"}},{path:"choose-location/choose-location",style:{navigationBarTitleText:"\u4f7f\u7528\u5730\u56fe\u9009\u62e9\u4f4d\u7f6e"}},{path:"storage/storage",style:{navigationBarTitleText:"\u6570\u636e\u5b58\u50a8"}},{path:"sqlite/sqlite",style:{navigationBarTitleText:"SQLite"}},{path:"rewarded-video-ad/rewarded-video-ad",style:{navigationBarTitleText:"\u6fc0\u52b1\u89c6\u9891\u5e7f\u544a"}},{path:"full-screen-video-ad/full-screen-video-ad",style:{navigationBarTitleText:"\u5168\u5c4f\u89c6\u9891\u5e7f\u544a"}},{path:"brightness/brightness",style:{navigationBarTitleText:"\u5c4f\u5e55\u4eae\u5ea6"}},{path:"save-media/save-media",style:{navigationBarTitleText:"\u4fdd\u5b58\u5a92\u4f53\u5230\u672c\u5730"}},{path:"bluetooth/bluetooth",style:{navigationBarTitleText:"\u84dd\u7259"}},{path:"soter/soter",style:{navigationBarTitleText:"\u751f\u7269\u8ba4\u8bc1"}},{path:"ibeacon/ibeacon",style:{navigationBarTitleText:"iBeacon"}},{path:"vibrate/vibrate",style:{navigationBarTitleText:"\u9707\u52a8"}},{path:"websocket-socketTask/websocket-socketTask",style:{navigationBarTitleText:"websocket-socketTask"}},{path:"websocket-global/websocket-global",style:{navigationBarTitleText:"websocket-global"}}]},{root:"pages/extUI",pages:[{path:"forms/forms",style:{navigationBarTitleText:"Form \u8868\u5355"}},{path:"group/group",style:{navigationBarTitleText:"Group \u5206\u7ec4"}},{path:"badge/badge",style:{navigationBarTitleText:"Badge \u6570\u5b57\u89d2\u6807"}},{path:"breadcrumb/breadcrumb",style:{navigationBarTitleText:"Breadcrumb \u9762\u5305\u5c51"}},{path:"countdown/countdown",style:{navigationBarTitleText:"Countdown \u5012\u8ba1\u65f6"},nvue:!0},{path:"drawer/drawer",style:{navigationBarTitleText:"Drawer \u62bd\u5c49"}},{path:"icons/icons",style:{navigationBarTitleText:"Icons \u56fe\u6807"},nvue:!0},{path:"load-more/load-more",style:{navigationBarTitleText:"LoadMore \u52a0\u8f7d\u66f4\u591a"},nvue:!0},{path:"nav-bar/nav-bar",style:{navigationBarTitleText:"NavBar \u5bfc\u822a\u680f",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}}},nvue:!0},{path:"number-box/number-box",style:{navigationBarTitleText:"NumberBox \u6570\u5b57\u8f93\u5165\u6846"},nvue:!0},{path:"popup/popup",style:{navigationBarTitleText:"Popup \u5f39\u51fa\u5c42","app-plus":{softinputMode:"adjustResize"}}},{path:"segmented-control/segmented-control",style:{navigationBarTitleText:"SegmentedControl \u5206\u6bb5\u5668"}},{path:"tag/tag",style:{navigationBarTitleText:"Tag \u6807\u7b7e"},nvue:!0},{path:"list/list",style:{navigationBarTitleText:"List \u5217\u8868"},nvue:!0},{path:"card/card",style:{navigationBarTitleText:"Card \u5361\u7247"},nvue:!0},{path:"collapse/collapse",style:{navigationBarTitleText:"Collapse \u6298\u53e0\u9762\u677f"}},{path:"pagination/pagination",style:{navigationBarTitleText:"Pagination \u5206\u9875\u5668"}},{path:"swiper-dot/swiper-dot",style:{navigationBarTitleText:"SwiperDot \u8f6e\u64ad\u56fe\u6307\u793a\u70b9","mp-baidu":{disableSwipeBack:!0}},nvue:!0},{path:"grid/grid",style:{navigationBarTitleText:"Grid \u5bab\u683c"},nvue:!0},{path:"rate/rate",style:{navigationBarTitleText:"Rate \u8bc4\u5206"},nvue:!0},{path:"steps/steps",style:{navigationBarTitleText:"Steps \u6b65\u9aa4\u6761"}},{path:"notice-bar/notice-bar",style:{navigationBarTitleText:"NoticeBar \u901a\u544a\u680f"}},{path:"swipe-action/swipe-action",style:{navigationBarTitleText:"SwipeAction \u6ed1\u52a8\u64cd\u4f5c","app-plus":{bounce:"none"}}},{path:"search-bar/search-bar",style:{navigationBarTitleText:"SearchBar \u641c\u7d22\u680f"}},{path:"calendar/calendar",style:{navigationBarTitleText:"Calendar \u65e5\u5386"}},{path:"indexed-list/indexed-list",style:{navigationBarTitleText:"IndexedList \u7d22\u5f15\u5217\u8868","mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0}},nvue:!0},{path:"fab/fab",style:{navigationBarTitleText:"Fab \u60ac\u6d6e\u6309\u94ae"}},{path:"fav/fav",style:{navigationBarTitleText:"Fav \u6536\u85cf\u6309\u94ae"}},{path:"goods-nav/goods-nav",style:{navigationBarTitleText:"GoodsNav \u5546\u54c1\u5bfc\u822a"},nvue:!0},{path:"section/section",style:{navigationBarTitleText:"Section \u6807\u9898\u680f"}},{path:"transition/transition",style:{navigationBarTitleText:"Transition \u8fc7\u6e21\u52a8\u753b"}},{path:"title/title",style:{navigationBarTitleText:"Title \u7ae0\u8282\u6807\u9898"}},{path:"tooltip/tooltip",style:{navigationBarTitleText:"Tooltip \u6587\u5b57\u63d0\u793a"}},{path:"link/link",style:{navigationBarTitleText:"Link \u94fe\u63a5"}},{path:"combox/combox",style:{navigationBarTitleText:"Combox \u7ec4\u5408\u6846"}},{path:"list/chat",style:{}},{path:"table/table",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}},{path:"dateformat/dateformat",style:{navigationBarTitleText:"Dateformat \u65e5\u671f\u683c\u5f0f\u5316",enablePullDownRefresh:!1}},{path:"data-checkbox/data-checkbox",style:{navigationBarTitleText:"DataCheckbox \u5355\u9009\u590d\u9009\u6846",enablePullDownRefresh:!1}},{path:"easyinput/easyinput",style:{navigationBarTitleText:"Easyinput \u589e\u5f3a\u8f93\u5165\u6846",enablePullDownRefresh:!1}},{path:"data-picker/data-picker",style:{navigationBarTitleText:"DataPicker \u7ea7\u8054\u9009\u62e9",enablePullDownRefresh:!1},nvue:!0},{path:"data-select/data-select",style:{navigationBarTitleText:"DataSelect \u4e0b\u62c9\u6846",enablePullDownRefresh:!1}},{path:"datetime-picker/datetime-picker",style:{navigationBarTitleText:"DatetimePicker \u65e5\u671f\u65f6\u95f4",enablePullDownRefresh:!1}},{path:"row/row",style:{navigationBarTitleText:"Layout \u5e03\u5c40",enablePullDownRefresh:!1}},{path:"file-picker/file-picker",style:{navigationBarTitleText:"FilePicker \u6587\u4ef6\u9009\u62e9\u4e0a\u4f20",enablePullDownRefresh:!1}},{path:"space/space",style:{navigationBarTitleText:"\u95f4\u8ddd",enablePullDownRefresh:!1},nvue:!0},{path:"font/font",style:{navigationBarTitleText:"\u5b57\u4f53",enablePullDownRefresh:!1},nvue:!0},{path:"color/color",style:{navigationBarTitleText:"\u989c\u8272",enablePullDownRefresh:!1},nvue:!0},{path:"radius/radius",style:{navigationBarTitleText:"\u5706\u89d2",enablePullDownRefresh:!1},nvue:!0},{path:"button/button",style:{navigationBarTitleText:"",enablePullDownRefresh:!1}}]},{root:"pages/template",pages:[{path:"ucharts/ucharts",style:{navigationBarTitleText:"uCharts \u56fe\u8868"}},{path:"nav-default/nav-default",style:{navigationBarTitleText:"\u9ed8\u8ba4\u5bfc\u822a\u680f"}},{path:"component-communication/component-communication",style:{navigationBarTitleText:"\u7ec4\u4ef6\u901a\u8baf"}},{path:"nav-transparent/nav-transparent",style:{navigationBarTitleText:"\u900f\u660e\u6e10\u53d8\u5bfc\u822a\u680f",transparentTitle:"auto"}},{path:"nav-button/nav-button",style:{navigationBarTitleText:"\u5bfc\u822a\u680f\u5e26\u81ea\u5b9a\u4e49\u6309\u94ae","app-plus":{titleNView:{buttons:[{type:"share"},{type:"favorite"}]}}}},{path:"nav-image/nav-image",style:{navigationBarBackgroundColor:"#FFFFFF",navigationBarTextStyle:"black",titleImage:"https://web-assets.dcloud.net.cn/unidoc/zh/logo1@2x.png"}},{path:"nav-city-dropdown/nav-city-dropdown",style:{navigationBarTitleText:"\u5bfc\u822a\u680f\u5e26\u57ce\u5e02\u9009\u62e9","app-plus":{titleNView:{buttons:[{text:"\u5317\u4eac\u5e02",fontSize:"14",select:!0,width:"auto"}]}}}},{path:"nav-dot/nav-dot",style:{navigationBarTitleText:"\u5bfc\u822a\u680f\u5e26\u7ea2\u70b9\u548c\u89d2\u6807","app-plus":{titleNView:{buttons:[{text:"\u6d88\u606f",fontSize:"14",redDot:!0},{text:"\u5173\u6ce8",fontSize:"14",badgeText:"12"}]}}}},{path:"nav-search-input/nav-search-input",style:{navigationBarTitleText:"\u5bfc\u822a\u680f\u5e26\u641c\u7d22\u6846","app-plus":{titleNView:{type:"transparent",titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\ue537",width:"40px",fontSize:"28px",color:"#fff",background:"rgba(0,0,0,0)"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8bf7\u8f93\u5165\u5730\u5740 \u5982\uff1a\u5927\u949f\u5bfa",disabled:!0}}}}},{path:"nav-search-input/detail/detail",style:{navigationBarTitleText:"\u641c\u7d22","app-plus":{titleNView:{titleColor:"#fff",backgroundColor:"#007AFF",buttons:[{fontSrc:"/static/uni.ttf",text:"\ue537",width:"auto",fontSize:"28px",color:"#fff"}],searchInput:{backgroundColor:"#fff",borderRadius:"6px",placeholder:"\u8bf7\u8f93\u5165\u5730\u5740 \u5982\uff1a\u5927\u949f\u5bfa",autoFocus:!0}}}}},{path:"list2detail-list/list2detail-list",style:{navigationBarTitleText:"\u5217\u8868\u5230\u8be6\u60c5\u793a\u4f8b",enablePullDownRefresh:!0}},{path:"list2detail-detail/list2detail-detail",style:{navigationBarTitleText:"\u8be6\u60c5","app-plus":{titleNView:{type:"transparent",buttons:[{type:"share"}]}},h5:{titleNView:{type:"transparent",buttons:[]}}}},{path:"tabbar/tabbar",style:{navigationBarTitleText:"\u53ef\u62d6\u52a8\u9876\u90e8\u9009\u9879\u5361"},nvue:!0},{path:"tabbar/detail/detail",style:{navigationBarTitleText:"\u8be6\u60c5\u9875\u9762"}},{path:"swiper-vertical/swiper-vertical",style:{navigationBarTitleText:"\u4e0a\u4e0b\u6ed1\u52a8\u5207\u6362\u89c6\u9891","app-plus":{titleNView:!1}},nvue:!0},{path:"swiper-list/swiper-list",style:{navigationBarTitleText:"swiper-list"},nvue:!0},{path:"swiper-list-nvue/swiper-list-nvue",style:{navigationBarTitleText:"swiper-list"},nvue:!0},{path:"scheme/scheme",style:{navigationBarTitleText:"\u6253\u5f00\u5916\u90e8\u5e94\u7528"}},{path:"vant-button/vant-button",style:{navigationBarTitleText:"\u5fae\u4fe1\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u793a\u4f8b",usingComponents:{"van-button":"/wxcomponents/vant/button/index"}}},{path:"global/global",style:{navigationBarTitleText:"GlobalData\u548cvuex"}}]}],globalStyle:{pageOrientation:"portrait",navigationBarTitleText:"Hello uniapp",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#007AFF",backgroundColor:"#d8f8e4",backgroundColorTop:"#F4F5F6",backgroundColorBottom:"#F4F5F6","mp-360":{navigationStyle:"custom"},h5:{maxWidth:1190,navigationBarTextStyle:"black",navigationBarBackgroundColor:"#F1F1F1"},"app-plus":{bounce:"none"}},tabBar:{color:"#444444",selectedColor:"#079307",borderStyle:"black",backgroundColor:"#d8f8e4",list:[{pagePath:"pages/homePage/index/index",iconPath:"static/tab/home.png",selectedIconPath:"static/tab/home_active.png",text:""},{pagePath:"pages/bookShop/orderList",iconPath:"static/tab/order.png",selectedIconPath:"static/tab/order_active.png",text:""},{pagePath:"pages/mine/mine/index",iconPath:"static/tab/mine.png",selectedIconPath:"static/tab/mine_active.png",text:""}]},nvue:{pages:[{path:"pages/component/map/map.html",style:{navigationBarTitleText:"map"}},{path:"pages/component/video/video.html",style:{navigationBarTitleText:"video"}},{path:"pages/component/input/input.html",style:{navigationBarTitleText:"input","app-plus":{softinputNavBar:"none"},softinputNavBar:"none"}},{path:"pages/component/cover-view/cover-view.html",style:{navigationBarTitleText:"cover-view"}},{path:"pages/tabBar/extUI/extUI.html",style:{navigationBarTitleText:"\u6269\u5c55\u7ec4\u4ef6","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}},titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},{path:"pages/tabBar/template/template.html",style:{navigationBarTitleText:"\u6a21\u7248","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}},titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},{path:"pages/tabBar/API/API.html",style:{navigationBarTitleText:"\u63a5\u53e3","app-plus":{titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}},titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},{path:"pages/tabBar/component/component.html",style:{navigationBarTitleText:"\u5185\u7f6e\u7ec4\u4ef6","app-plus":{bounce:"none",titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}},bounce:"none",titleNView:{buttons:[{text:"\ue534",fontSrc:"/static/uni.ttf",fontSize:"22px",color:"#FFFFFF"}]}}},{path:"pages/API/map-search/map-search.html",style:{navigationBarTitleText:"map search"}},{path:"pages/API/map/map.html",style:{navigationBarTitleText:"map"}},{path:"pages/API/navigator/new-page/new-nvue-page-2.html",style:{navigationBarTitleText:"\u65b0NVUE\u9875\u97622"}},{path:"pages/API/navigator/new-page/new-nvue-page-1.html",style:{navigationBarTitleText:"\u65b0NVUE\u9875\u97621"}},{path:"pages/extUI/radius/radius.html",style:{navigationBarTitleText:"\u5706\u89d2",enablePullDownRefresh:!1}},{path:"pages/extUI/color/color.html",style:{navigationBarTitleText:"\u989c\u8272",enablePullDownRefresh:!1}},{path:"pages/extUI/font/font.html",style:{navigationBarTitleText:"\u5b57\u4f53",enablePullDownRefresh:!1}},{path:"pages/extUI/space/space.html",style:{navigationBarTitleText:"\u95f4\u8ddd",enablePullDownRefresh:!1}},{path:"pages/extUI/data-picker/data-picker.html",style:{navigationBarTitleText:"DataPicker \u7ea7\u8054\u9009\u62e9",enablePullDownRefresh:!1}},{path:"pages/extUI/goods-nav/goods-nav.html",style:{navigationBarTitleText:"GoodsNav \u5546\u54c1\u5bfc\u822a"}},{path:"pages/extUI/indexed-list/indexed-list.html",style:{navigationBarTitleText:"IndexedList \u7d22\u5f15\u5217\u8868","mp-weixin":{disableScroll:!0},"app-plus":{bounce:"none"},"mp-alipay":{allowsBounceVertical:"NO"},"mp-baidu":{disableScroll:!0},bounce:"none"}},{path:"pages/extUI/rate/rate.html",style:{navigationBarTitleText:"Rate \u8bc4\u5206"}},{path:"pages/extUI/grid/grid.html",style:{navigationBarTitleText:"Grid \u5bab\u683c"}},{path:"pages/extUI/swiper-dot/swiper-dot.html",style:{navigationBarTitleText:"SwiperDot \u8f6e\u64ad\u56fe\u6307\u793a\u70b9","mp-baidu":{disableSwipeBack:!0}}},{path:"pages/extUI/card/card.html",style:{navigationBarTitleText:"Card \u5361\u7247"}},{path:"pages/extUI/list/list.html",style:{navigationBarTitleText:"List \u5217\u8868"}},{path:"pages/extUI/tag/tag.html",style:{navigationBarTitleText:"Tag \u6807\u7b7e"}},{path:"pages/extUI/number-box/number-box.html",style:{navigationBarTitleText:"NumberBox \u6570\u5b57\u8f93\u5165\u6846"}},{path:"pages/extUI/nav-bar/nav-bar.html",style:{navigationBarTitleText:"NavBar \u5bfc\u822a\u680f",navigationStyle:"custom",enablePullDownRefresh:!0,"app-plus":{titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}},titleNView:!1,bounce:"none",pullToRefresh:{style:"circle",offset:"70px"}}},{path:"pages/extUI/load-more/load-more.html",style:{navigationBarTitleText:"LoadMore \u52a0\u8f7d\u66f4\u591a"}},{path:"pages/extUI/icons/icons.html",style:{navigationBarTitleText:"Icons \u56fe\u6807"}},{path:"pages/extUI/countdown/countdown.html",style:{navigationBarTitleText:"Countdown \u5012\u8ba1\u65f6"}},{path:"pages/template/swiper-list-nvue/swiper-list-nvue.html",style:{navigationBarTitleText:"swiper-list"}},{path:"pages/template/swiper-list/swiper-list.html",style:{navigationBarTitleText:"swiper-list"}},{path:"pages/template/swiper-vertical/swiper-vertical.html",style:{navigationBarTitleText:"\u4e0a\u4e0b\u6ed1\u52a8\u5207\u6362\u89c6\u9891","app-plus":{titleNView:!1},titleNView:!1}},{path:"pages/template/tabbar/tabbar.html",style:{navigationBarTitleText:"\u53ef\u62d6\u52a8\u9876\u90e8\u9009\u9879\u5361"}}]}}},44:function(e,t,n){"use strict";n.r(t),t.default={pages:{},globalStyle:{}}},45:function(e,t){e.exports=Vue},46:function(e,t,n){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(n(47).default,Vue.prototype.__$appStyle__)},47:function(e,t,n){"use strict";n.r(t);var i=n(2),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},48:function(e,t){if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){var n=uni.requireGlobal();ArrayBuffer=n.ArrayBuffer,Int8Array=n.Int8Array,Uint8Array=n.Uint8Array,Uint8ClampedArray=n.Uint8ClampedArray,Int16Array=n.Int16Array,Uint16Array=n.Uint16Array,Int32Array=n.Int32Array,Uint32Array=n.Uint32Array,Float32Array=n.Float32Array,Float64Array=n.Float64Array,BigInt64Array=n.BigInt64Array,BigUint64Array=n.BigUint64Array}},5:function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e,t,n){"use strict";n.r(t);var i=n(66),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t.default=a.a},66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={name:"u-link",props:{href:{type:String,default:""},text:{type:String,default:""},inWhiteList:{type:Boolean,default:!1}},methods:{openURL:function(){plus.runtime.openURL(this.href)}}};t.default=i},7:function(e,t,n){var i=n(12);function a(e,t){for(var n=0;n